@saadnvd1/agent-os 0.3.734 → 0.3.735

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.
@@ -365,6 +365,13 @@ export async function hooksPaths(repos: string[]): Promise<string[]> {
365
365
  repos.map(async (r) => {
366
366
  // A project whose folder is gone has no hooks to run.
367
367
  if (!fs.existsSync(r)) return "";
368
+ // A task worktree always has .git at its root; a folder there without
369
+ // one is what a removal left behind (a cache dir), not a repository.
370
+ if (
371
+ path.dirname(path.resolve(r)) === path.resolve(WORKTREES_DIR) &&
372
+ !fs.existsSync(path.join(r, ".git"))
373
+ )
374
+ return "";
368
375
  const dir = await run(r, [
369
376
  "rev-parse",
370
377
  "--path-format=absolute",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saadnvd1/agent-os",
3
- "version": "0.3.734",
3
+ "version": "0.3.735",
4
4
  "description": "Self-hosted web UI for managing Claude Code sessions",
5
5
  "bin": {
6
6
  "agent-os": "scripts/agent-os"