@a5c-ai/babysitter-codex 5.0.1-staging.ae07dd8d → 5.0.1-staging.aedcb38c
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/install-shared.js +14 -14
- package/bin/uninstall.js +0 -1
- package/hooks.json +3 -3
- package/package.json +12 -8
- package/scripts/sync-command-skills.js +1 -0
- package/hooks/hooks.json +0 -37
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) {
|
|
@@ -771,21 +771,28 @@ module.exports = {
|
|
|
771
771
|
resolveCliCommand,
|
|
772
772
|
runCli,
|
|
773
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,
|
|
774
785
|
LEGACY_MARKETPLACE_PLUGIN_NAMES,
|
|
775
786
|
LEGACY_SKILL_NAMES,
|
|
776
787
|
LEGACY_PROMPT_NAMES,
|
|
777
788
|
LEGACY_HOOK_SCRIPT_NAMES,
|
|
778
789
|
MANAGED_HOOK_SCRIPT_NAMES,
|
|
779
|
-
DEFAULT_MARKETPLACE,
|
|
780
|
-
PLUGIN_BUNDLE_ENTRIES,
|
|
781
790
|
getCodexHome,
|
|
782
791
|
getHomePluginRoot,
|
|
783
792
|
getHomeMarketplacePath,
|
|
784
793
|
getWorkspacePluginRoot,
|
|
785
794
|
getWorkspaceMarketplacePath,
|
|
786
795
|
renderCodexConfigToml,
|
|
787
|
-
copyRecursive,
|
|
788
|
-
copyPluginBundle,
|
|
789
796
|
insertRootKey,
|
|
790
797
|
ensureSectionLine,
|
|
791
798
|
ensureWritableRoots,
|
|
@@ -795,15 +802,8 @@ module.exports = {
|
|
|
795
802
|
runBabysitterCli,
|
|
796
803
|
ensureGlobalProcessLibrary,
|
|
797
804
|
getMarketplaceRootDir,
|
|
798
|
-
normalizeMarketplaceSourcePath,
|
|
799
|
-
ensureMarketplaceEntry,
|
|
800
|
-
removeMarketplaceEntry,
|
|
801
805
|
removeLegacyCodexSurface,
|
|
802
|
-
installManagedSkills,
|
|
803
|
-
mergeManagedHooksConfig,
|
|
804
|
-
installManagedHooks,
|
|
805
806
|
installCodexSurface,
|
|
806
807
|
harnessInstall,
|
|
807
808
|
harnessTeamInstall,
|
|
808
|
-
warnWindowsHooks,
|
|
809
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.aedcb38c",
|
|
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,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
|
-
"
|
|
42
|
-
|
|
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
|
}
|
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
|
-
}
|