mirror of
https://github.com/wassname/pi-plan.git
synced 2026-09-25 14:00:15 +08:00
Allow a local pi-supervise extension for development
Co-Authored-By: PI[gpt-5.6-sol] <288921227+claudypoo@users.noreply.github.com>
This commit is contained in:
co-authored by
PI[gpt-5.6-sol]
parent
7eb8b1f46b
commit
1dc6146874
+1
-1
@@ -58,7 +58,7 @@ export function supervisorCommand(input: LaunchSupervisorInput): string {
|
||||
"--no-extensions",
|
||||
"-e", input.extensionPath,
|
||||
"-e", "npm:pi-intercom",
|
||||
"-e", "npm:@wassname2/pi-supervise@0.0.4",
|
||||
"-e", process.env.PI_GOALS_SUPERVISE_EXTENSION ?? "npm:@wassname2/pi-supervise@0.0.4",
|
||||
"--fork", input.sourceSessionFile,
|
||||
"--name", `goals-supervisor-${input.workerSessionId.slice(0, 8)}`,
|
||||
];
|
||||
|
||||
@@ -31,6 +31,11 @@ describe("supervisor pane command", () => {
|
||||
expect(command).not.toContain("pi-subagents");
|
||||
});
|
||||
|
||||
it("uses a local pi-supervise extension only when explicitly requested", () => {
|
||||
vi.stubEnv("PI_GOALS_SUPERVISE_EXTENSION", "/repo/vendor/pi-supervise/src/index.ts");
|
||||
expect(supervisorCommand(input())).toContain("'-e' '/repo/vendor/pi-supervise/src/index.ts'");
|
||||
});
|
||||
|
||||
it("accepts Herdr's text version output and stale pane cleanup", async () => {
|
||||
const cwd = mkdtempSync(join(tmpdir(), "pi-goals-herdr-"));
|
||||
const bin = join(cwd, "herdr");
|
||||
|
||||
Reference in New Issue
Block a user