mirror of
https://github.com/wassname/pi-plan.git
synced 2026-10-03 12:42:00 +08:00
Revert bundled supervisor extensions
Co-Authored-By: PI[Kimi K3] <288921227+claudypoo@users.noreply.github.com>
This commit is contained in:
1 parent
fc321a90fc
commit
2b620a0334
6 files changed
+15
-2097
No files matched your search
+2
-7
@@ -1,5 +1,4 @@
|
||||
import { execFile } from "node:child_process";
|
||||
import { fileURLToPath } from "node:url";
|
||||
import { promisify } from "node:util";
|
||||
|
||||
const execFileAsync = promisify(execFile);
|
||||
@@ -39,10 +38,6 @@ async function herdr(args: string[], json = true): Promise<unknown> {
|
||||
return stdout.trim() ? JSON.parse(stdout) : {};
|
||||
}
|
||||
|
||||
function bundledExtension(path: string): string {
|
||||
return fileURLToPath(new URL(path, import.meta.url));
|
||||
}
|
||||
|
||||
function stalePaneError(error: unknown): boolean {
|
||||
const record = error as { stdout?: unknown; stderr?: unknown; message?: unknown };
|
||||
const text = [record.stdout, record.stderr, record.message].filter((value): value is string => typeof value === "string").join("\n");
|
||||
@@ -61,8 +56,8 @@ export function supervisorCommand(input: LaunchSupervisorInput): string {
|
||||
const args = [
|
||||
"pi",
|
||||
"--no-extensions",
|
||||
"-e", process.env.PI_GOALS_INTERCOM_EXTENSION ?? bundledExtension("../node_modules/pi-intercom/index.ts"),
|
||||
"-e", process.env.PI_GOALS_SUPERVISE_EXTENSION ?? bundledExtension("../node_modules/@wassname2/pi-supervise/src/index.ts"),
|
||||
"-e", "npm:pi-intercom",
|
||||
"-e", process.env.PI_GOALS_SUPERVISE_EXTENSION ?? "npm:@wassname2/pi-supervise@0.0.4",
|
||||
"-e", input.extensionPath,
|
||||
"--fork", input.sourceSessionFile,
|
||||
"--name", `goals-supervisor-${input.workerSessionId.slice(0, 8)}`,
|
||||
|
||||
Reference in new issue
Block a user