arkaos 2.20.0-beta.1 → 2.20.1

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/VERSION CHANGED
@@ -1 +1 @@
1
- 2.20.0-beta.1
1
+ 2.20.1
@@ -62,7 +62,19 @@ const checks = [
62
62
  name: "hooks-dir",
63
63
  description: "Hook scripts installed",
64
64
  severity: "fail",
65
- check: () => existsSync(join(INSTALL_DIR, "config", "hooks", `user-prompt-submit${HOOK_EXT}`)),
65
+ check: () => {
66
+ const required = [
67
+ "session-start",
68
+ "user-prompt-submit",
69
+ "post-tool-use",
70
+ "pre-compact",
71
+ "cwd-changed",
72
+ "pre-tool-use",
73
+ "stop",
74
+ ];
75
+ const hooksDir = join(INSTALL_DIR, "config", "hooks");
76
+ return required.every((h) => existsSync(join(hooksDir, `${h}${HOOK_EXT}`)));
77
+ },
66
78
  fix: () => "Run: npx arkaos install --force",
67
79
  },
68
80
  {
@@ -450,6 +450,8 @@ function installHooks(installDir) {
450
450
  "post-tool-use",
451
451
  "pre-compact",
452
452
  "cwd-changed",
453
+ "pre-tool-use",
454
+ "stop",
453
455
  ];
454
456
  const hookExt = HOOK_EXT;
455
457
 
@@ -481,6 +483,19 @@ function installHooks(installDir) {
481
483
  ok(`Hook: ${filename}`);
482
484
  }
483
485
  }
486
+
487
+ const srcLibDir = join(srcHooksDir, "_lib");
488
+ if (existsSync(srcLibDir)) {
489
+ const destLibDir = join(hooksDir, "_lib");
490
+ ensureDir(destLibDir);
491
+ cpSync(srcLibDir, destLibDir, { recursive: true });
492
+ try {
493
+ for (const f of readdirSync(destLibDir)) {
494
+ if (f.endsWith(".sh")) chmodSync(join(destLibDir, f), 0o755);
495
+ }
496
+ } catch {}
497
+ ok("Hook lib: _lib/");
498
+ }
484
499
  }
485
500
 
486
501
  // Safe directory iteration. Returns an empty array instead of throwing
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arkaos",
3
- "version": "2.20.0-beta.1",
3
+ "version": "2.20.1",
4
4
  "description": "The Operating System for AI Agent Teams",
5
5
  "type": "module",
6
6
  "bin": {
package/pyproject.toml CHANGED
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "arkaos-core"
3
- version = "2.20.0-beta.1"
3
+ version = "2.20.1"
4
4
  description = "Core engine for ArkaOS — The Operating System for AI Agent Teams"
5
5
  readme = "README.md"
6
6
  license = {text = "MIT"}