pi-crew 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-crew",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "Pi extension for coordinated AI teams, workflows, worktrees, and async task orchestration",
|
|
5
5
|
"author": "baphuongna",
|
|
6
6
|
"license": "MIT",
|
|
@@ -88,6 +88,7 @@
|
|
|
88
88
|
"@mariozechner/pi-agent-core": "^0.65.0",
|
|
89
89
|
"@mariozechner/pi-ai": "^0.65.0",
|
|
90
90
|
"@mariozechner/pi-coding-agent": "^0.65.0",
|
|
91
|
+
"@mariozechner/pi-tui": "^0.65.0",
|
|
91
92
|
"esbuild": "^0.28.0",
|
|
92
93
|
"typescript": "^5.9.3"
|
|
93
94
|
},
|
|
@@ -459,6 +459,7 @@ export function registerPiTeams(pi: ExtensionAPI): void {
|
|
|
459
459
|
if (manifest) void import("../state/event-log.ts").then(({ appendEventFireAndForget }) => appendEventFireAndForget(manifest.eventsPath, event as Parameters<typeof appendEventFireAndForget>[1]));
|
|
460
460
|
};
|
|
461
461
|
registry.waitForAll = async (runId: string) => {
|
|
462
|
+
// LAZY: state-store only needed for post-completion polling (waitForAll) and sync hasRunning check; avoid at startup.
|
|
462
463
|
const { loadRunManifestById } = await import("../state/state-store.ts");
|
|
463
464
|
const check = (): boolean => {
|
|
464
465
|
const loaded = loadRunManifestById(currentCtx?.cwd ?? process.cwd(), runId);
|
|
@@ -470,6 +471,7 @@ export function registerPiTeams(pi: ExtensionAPI): void {
|
|
|
470
471
|
registry.hasRunning = (runId: string) => {
|
|
471
472
|
const manifest = manifestCacheForRegistry.get(runId);
|
|
472
473
|
if (!manifest) return false;
|
|
474
|
+
// LAZY: state-store only needed in hasRunning; avoid at startup.
|
|
473
475
|
const { loadRunManifestById } = require("../state/state-store.ts");
|
|
474
476
|
const loaded = loadRunManifestById(currentCtx?.cwd ?? process.cwd(), runId);
|
|
475
477
|
if (!loaded) return false;
|
|
@@ -72,8 +72,12 @@ export function isAllowedHookPath(hookPath: string): boolean {
|
|
|
72
72
|
const normalized = path.normalize(hookPath);
|
|
73
73
|
return normalized === ".hooks" || normalized.startsWith(".hooks/");
|
|
74
74
|
}
|
|
75
|
-
|
|
76
|
-
|
|
75
|
+
// Normalize to forward slashes for consistent cross-platform comparison.
|
|
76
|
+
// e.g., "C:\\Users\\runner\\.pi\\hooks\\hook.sh" matches
|
|
77
|
+
// "C:\\Users\\runner\\.pi\\hooks/hook.sh" from path.join.
|
|
78
|
+
const normalizedHookPath = hookPath.replace(/\\/g, "/");
|
|
79
|
+
const homeHooksNormalized = (process.env.HOME ?? "").replace(/\\/g, "/") + "/.pi/hooks";
|
|
80
|
+
return normalizedHookPath === homeHooksNormalized || normalizedHookPath.startsWith(homeHooksNormalized + "/");
|
|
77
81
|
}
|
|
78
82
|
|
|
79
83
|
/**
|