pi-crew 0.3.2 → 0.3.3

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.2",
3
+ "version": "0.3.3",
4
4
  "description": "Pi extension for coordinated AI teams, workflows, worktrees, and async task orchestration",
5
5
  "author": "baphuongna",
6
6
  "license": "MIT",
@@ -69,7 +69,10 @@ const HOOK_TIMEOUT_MS = 30_000;
69
69
  export function isAllowedHookPath(hookPath: string): boolean {
70
70
  if (!hookPath || hookPath.trim().length === 0) return false;
71
71
  if (!path.isAbsolute(hookPath)) {
72
- const normalized = path.normalize(hookPath);
72
+ // Use path.posix.normalize to ensure forward-slash normalization on all platforms.
73
+ // On Windows, path.normalize converts .hooks/hook.sh to .hooks\hook.sh (backslash),
74
+ // breaking the startsWith(".hooks/") check. path.posix.normalize always uses /.
75
+ const normalized = path.posix.normalize(hookPath);
73
76
  return normalized === ".hooks" || normalized.startsWith(".hooks/");
74
77
  }
75
78
  // Normalize to forward slashes for consistent cross-platform comparison.