@a5c-ai/babysitter-codex 5.0.1-staging.76116f66 → 5.0.1-staging.7e55da10

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.
@@ -20,7 +20,7 @@
20
20
  "LLM"
21
21
  ],
22
22
  "skills": "./skills/",
23
- "hooks": "./hooks/hooks.json",
23
+ "hooks": "./hooks.json",
24
24
  "apps": "./.app.json",
25
25
  "interface": {
26
26
  "displayName": "Babysitter",
package/bin/cli.js CHANGED
@@ -5,6 +5,8 @@ const path = require('path');
5
5
  const { spawnSync } = require('child_process');
6
6
 
7
7
  const PACKAGE_ROOT = path.resolve(__dirname, '..');
8
+ let shared;
9
+ try { shared = require('./install-shared'); } catch {}
8
10
 
9
11
  function printUsage() {
10
12
  console.error([
@@ -61,6 +63,9 @@ function main() {
61
63
  }
62
64
 
63
65
  if (command === 'install') {
66
+ if (shared && typeof shared.harnessCliRoute === 'function' && shared.harnessCliRoute(rest, PACKAGE_ROOT, runNodeScript)) {
67
+ return;
68
+ }
64
69
  const parsed = parseInstallArgs(rest);
65
70
  if (parsed.scope === 'workspace') {
66
71
  const args = [];
@@ -13,16 +13,16 @@ function getUserHome() {
13
13
  }
14
14
 
15
15
  function getHarnessHome() {
16
- return path.join(os.homedir(), '.codex');
16
+ return path.join(os.homedir(), ".codex");
17
17
  }
18
18
 
19
19
  function getHomePluginRoot(scope) {
20
20
  if (scope === 'workspace') return path.join(process.cwd(), '.a5c', 'plugins', PLUGIN_NAME);
21
- return path.join(path.join(os.homedir(), '.agents', 'plugins'), PLUGIN_NAME);
21
+ return path.join(path.join(os.homedir(), ".agents/plugins"), PLUGIN_NAME);
22
22
  }
23
23
 
24
24
  function getHomeMarketplacePath() {
25
- return path.join(os.homedir(), '.agents', 'plugins', 'marketplace.json');
25
+ return path.join(os.homedir(), ".agents/plugins/marketplace.json");
26
26
  }
27
27
 
28
28
  function writeFileIfChanged(filePath, contents) {
@@ -749,6 +749,9 @@ function warnWindowsHooks() {
749
749
  if (process.platform !== 'win32') {
750
750
  return;
751
751
  }
752
+ // Codex enabled Windows hooks in v0.119.0 (2026-04-10, openai/codex#17268).
753
+ // Older Codex CLIs still skip hook execution on Windows; warn so users on
754
+ // pinned/older versions know to upgrade.
752
755
  console.warn('[babysitter] Note: Codex hooks on Windows require Codex CLI >= 0.119.0.');
753
756
  console.warn('[babysitter] If hooks do not fire, run `codex --version` and upgrade if you are below 0.119.0.');
754
757
  }
@@ -768,21 +771,28 @@ module.exports = {
768
771
  resolveCliCommand,
769
772
  runCli,
770
773
  ensureGlobalProcessLibrary,
774
+ PLUGIN_BUNDLE_ENTRIES,
775
+ copyRecursive,
776
+ copyPluginBundle,
777
+ DEFAULT_MARKETPLACE,
778
+ normalizeMarketplaceSourcePath,
779
+ ensureMarketplaceEntry,
780
+ removeMarketplaceEntry,
781
+ installManagedSkills,
782
+ mergeManagedHooksConfig,
783
+ installManagedHooks,
784
+ warnWindowsHooks,
771
785
  LEGACY_MARKETPLACE_PLUGIN_NAMES,
772
786
  LEGACY_SKILL_NAMES,
773
787
  LEGACY_PROMPT_NAMES,
774
788
  LEGACY_HOOK_SCRIPT_NAMES,
775
789
  MANAGED_HOOK_SCRIPT_NAMES,
776
- DEFAULT_MARKETPLACE,
777
- PLUGIN_BUNDLE_ENTRIES,
778
790
  getCodexHome,
779
791
  getHomePluginRoot,
780
792
  getHomeMarketplacePath,
781
793
  getWorkspacePluginRoot,
782
794
  getWorkspaceMarketplacePath,
783
795
  renderCodexConfigToml,
784
- copyRecursive,
785
- copyPluginBundle,
786
796
  insertRootKey,
787
797
  ensureSectionLine,
788
798
  ensureWritableRoots,
@@ -792,15 +802,8 @@ module.exports = {
792
802
  runBabysitterCli,
793
803
  ensureGlobalProcessLibrary,
794
804
  getMarketplaceRootDir,
795
- normalizeMarketplaceSourcePath,
796
- ensureMarketplaceEntry,
797
- removeMarketplaceEntry,
798
805
  removeLegacyCodexSurface,
799
- installManagedSkills,
800
- mergeManagedHooksConfig,
801
- installManagedHooks,
802
806
  installCodexSurface,
803
807
  harnessInstall,
804
808
  harnessTeamInstall,
805
- warnWindowsHooks,
806
809
  };
package/bin/uninstall.js CHANGED
@@ -1,7 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  'use strict';
3
3
 
4
- const path = require('path');
5
4
  const fs = require('fs');
6
5
  const shared = require('./install-shared');
7
6
 
package/hooks.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "hooks": [
7
7
  {
8
8
  "type": "command",
9
- "command": "npx -y @a5c-ai/hooks-mux-cli invoke --adapter codex --handler \"bash ./hooks/babysitter-proxied-session-start.sh\" --json"
9
+ "command": "npx -y -p @a5c-ai/hooks-mux-cli -c \"a5c-hooks-mux invoke --adapter codex --handler 'bash ./hooks/babysitter-proxied-session-start.sh' --json\""
10
10
  }
11
11
  ]
12
12
  }
@@ -17,7 +17,7 @@
17
17
  "hooks": [
18
18
  {
19
19
  "type": "command",
20
- "command": "npx -y @a5c-ai/hooks-mux-cli invoke --adapter codex --handler \"bash ./hooks/babysitter-proxied-stop.sh\" --json"
20
+ "command": "npx -y -p @a5c-ai/hooks-mux-cli -c \"a5c-hooks-mux invoke --adapter codex --handler 'bash ./hooks/babysitter-proxied-stop.sh' --json\""
21
21
  }
22
22
  ]
23
23
  }
@@ -28,7 +28,7 @@
28
28
  "hooks": [
29
29
  {
30
30
  "type": "command",
31
- "command": "npx -y @a5c-ai/hooks-mux-cli invoke --adapter codex --handler \"bash ./hooks/babysitter-proxied-user-prompt-submit.sh\" --json"
31
+ "command": "npx -y -p @a5c-ai/hooks-mux-cli -c \"a5c-hooks-mux invoke --adapter codex --handler 'bash ./hooks/babysitter-proxied-user-prompt-submit.sh' --json\""
32
32
  }
33
33
  ]
34
34
  }
package/package.json CHANGED
@@ -1,13 +1,15 @@
1
1
  {
2
2
  "name": "@a5c-ai/babysitter-codex",
3
- "version": "5.0.1-staging.76116f66",
3
+ "version": "5.0.1-staging.7e55da10",
4
4
  "description": "Orchestrate complex, multi-step workflows with event-sourced state management, hook-based extensibility, and human-in-the-loop approval",
5
5
  "scripts": {
6
- "test": "node test/integration.test.js && node test/packaged-install.test.js",
7
- "sync:commands": "node scripts/sync-command-skills.js",
6
+ "test": "npm run validate:ci",
7
+ "test:integration": "node test/integration.test.js",
8
+ "test:packaged-install": "node test/packaged-install.test.js",
9
+ "validate:ci": "npm run test:integration && npm run test:packaged-install",
10
+ "team:install": "node scripts/team-install.js",
8
11
  "deploy": "npm publish --access public",
9
- "deploy:staging": "npm publish --access public --tag staging",
10
- "sync:skills": "node scripts/sync-command-skills.js"
12
+ "deploy:staging": "npm publish --access public --tag staging"
11
13
  },
12
14
  "bin": {
13
15
  "babysitter-codex": "bin/cli.js"
@@ -36,9 +38,11 @@
36
38
  },
37
39
  "repository": {
38
40
  "type": "git",
39
- "url": "https://github.com/a5c-ai/babysitter"
41
+ "url": "git+https://github.com/a5c-ai/babysitter.git",
42
+ "directory": "plugins/babysitter-codex"
40
43
  },
41
- "dependencies": {
42
- "@a5c-ai/babysitter-sdk": "5.0.1-staging.76116f66"
44
+ "homepage": "https://github.com/a5c-ai/babysitter/tree/main/plugins/babysitter-codex#readme",
45
+ "bugs": {
46
+ "url": "https://github.com/a5c-ai/babysitter/issues"
43
47
  }
44
48
  }
@@ -1,3 +1,4 @@
1
+ #!/usr/bin/env node
1
2
  'use strict';
2
3
 
3
4
  const fs = require('fs');
package/hooks/hooks.json DELETED
@@ -1,37 +0,0 @@
1
- {
2
- "hooks": {
3
- "SessionStart": [
4
- {
5
- "matcher": ".*",
6
- "hooks": [
7
- {
8
- "type": "command",
9
- "command": "npx -y @a5c-ai/hooks-mux-cli invoke --adapter codex --handler \"bash ./hooks/babysitter-proxied-session-start.sh\" --json"
10
- }
11
- ]
12
- }
13
- ],
14
- "Stop": [
15
- {
16
- "matcher": ".*",
17
- "hooks": [
18
- {
19
- "type": "command",
20
- "command": "npx -y @a5c-ai/hooks-mux-cli invoke --adapter codex --handler \"bash ./hooks/babysitter-proxied-stop.sh\" --json"
21
- }
22
- ]
23
- }
24
- ],
25
- "UserPromptSubmit": [
26
- {
27
- "matcher": ".*",
28
- "hooks": [
29
- {
30
- "type": "command",
31
- "command": "npx -y @a5c-ai/hooks-mux-cli invoke --adapter codex --handler \"bash ./hooks/babysitter-proxied-user-prompt-submit.sh\" --json"
32
- }
33
- ]
34
- }
35
- ]
36
- }
37
- }