@a5c-ai/babysitter-codex 5.0.1-staging.76116f66 → 5.0.1-staging.89ec25ae
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/.codex-plugin/plugin.json +1 -1
- package/bin/cli.js +5 -0
- package/bin/install-shared.js +17 -14
- package/bin/uninstall.js +0 -1
- package/hooks.json +3 -3
- package/package.json +14 -7
- package/scripts/sync-command-skills.js +1 -0
- package/hooks/hooks.json +0 -37
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 = [];
|
package/bin/install-shared.js
CHANGED
|
@@ -13,16 +13,16 @@ function getUserHome() {
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
function getHarnessHome() {
|
|
16
|
-
return path.join(os.homedir(),
|
|
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(),
|
|
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(),
|
|
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
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
|
|
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
|
|
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
|
|
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.
|
|
3
|
+
"version": "5.0.1-staging.89ec25ae",
|
|
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": "
|
|
7
|
-
"
|
|
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,14 @@
|
|
|
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"
|
|
43
|
+
},
|
|
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"
|
|
40
47
|
},
|
|
41
48
|
"dependencies": {
|
|
42
|
-
"@a5c-ai/babysitter-sdk": "5.0.1-staging.
|
|
49
|
+
"@a5c-ai/babysitter-sdk": "5.0.1-staging.89ec25ae"
|
|
43
50
|
}
|
|
44
51
|
}
|
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
|
-
}
|