@a5c-ai/babysitter-openclaw 5.0.1-staging.ff2c19f9 → 5.1.1-staging.00ceebd28cf2
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/README.md +29 -16
- package/bin/install-shared.cjs +6 -6
- package/bin/uninstall.cjs +0 -1
- package/commands/blueprints.md +64 -0
- package/commands/call.md +11 -7
- package/commands/check-forbidden-markers.md +68 -0
- package/commands/cleanup.md +37 -9
- package/commands/contrib.md +31 -31
- package/commands/doctor.md +2 -3
- package/commands/forever.md +6 -6
- package/commands/help.md +11 -10
- package/commands/observe.md +6 -1
- package/commands/plan.md +17 -7
- package/commands/plugins.md +22 -255
- package/commands/project-install.md +10 -10
- package/commands/resume.md +8 -8
- package/commands/retrospect.md +55 -55
- package/commands/user-install.md +10 -10
- package/commands/yolo.md +11 -7
- package/extensions/hooks/gateway-request-completed.ts +20 -0
- package/extensions/hooks/gateway-request-received.ts +20 -0
- package/extensions/hooks/{session-start.ts → gateway-request-routed.ts} +4 -4
- package/extensions/hooks/{before-prompt-build.ts → plugin-tool-after.ts} +4 -4
- package/extensions/hooks/{session-end.ts → plugin-tool-before.ts} +4 -4
- package/extensions/hooks/{agent-end.ts → plugin-turn-stop.ts} +4 -4
- package/hooks/{babysitter-proxied-session-end.js → babysitter-proxied-gateway-request-completed.js} +6 -3
- package/hooks/{babysitter-proxied-session-end.sh → babysitter-proxied-gateway-request-completed.sh} +0 -0
- package/hooks/{babysitter-proxied-session-start.js → babysitter-proxied-gateway-request-received.js} +6 -3
- package/hooks/{babysitter-proxied-session-start.sh → babysitter-proxied-gateway-request-received.sh} +1 -1
- package/hooks/babysitter-proxied-gateway-request-routed.js +27 -0
- package/hooks/babysitter-proxied-gateway-request-routed.sh +3 -0
- package/hooks/babysitter-proxied-plugin-tool-after.js +27 -0
- package/hooks/babysitter-proxied-plugin-tool-after.sh +3 -0
- package/hooks/{babysitter-proxied-before-prompt-build.js → babysitter-proxied-plugin-tool-before.js} +7 -4
- package/hooks/babysitter-proxied-plugin-tool-before.sh +3 -0
- package/hooks/{babysitter-proxied-agent-end.js → babysitter-proxied-plugin-turn-stop.js} +7 -4
- package/hooks.json +1 -24
- package/openclaw.plugin.json +7 -5
- package/package.json +10 -9
- package/plugin.json +1 -1
- package/scripts/create-release-tag.mjs +18 -0
- package/scripts/publish-from-tag.mjs +41 -0
- package/scripts/team-install.cjs +1 -1
- package/skills/babysit/SKILL.md +35 -10
- package/skills/blueprints/SKILL.md +66 -0
- package/skills/call/SKILL.md +5 -1
- package/skills/check-forbidden-markers/SKILL.md +69 -0
- package/skills/cleanup/SKILL.md +37 -9
- package/skills/contrib/SKILL.md +25 -25
- package/skills/doctor/SKILL.md +2 -3
- package/skills/help/SKILL.md +11 -10
- package/skills/observe/SKILL.md +6 -1
- package/skills/plan/SKILL.md +11 -1
- package/skills/plugins/SKILL.md +18 -251
- package/skills/project-install/SKILL.md +3 -3
- package/skills/resume/SKILL.md +1 -1
- package/skills/retrospect/SKILL.md +48 -48
- package/skills/user-install/SKILL.md +3 -3
- package/skills/yolo/SKILL.md +5 -1
- package/versions.json +2 -1
- package/hooks/babysitter-proxied-agent-end.sh +0 -3
- package/hooks/babysitter-proxied-before-prompt-build.sh +0 -3
- package/scripts/sync-command-docs.cjs +0 -107
- /package/hooks/{babysitter-proxied-stop-hook.sh → babysitter-proxied-plugin-turn-stop.sh} +0 -0
package/skills/yolo/SKILL.md
CHANGED
|
@@ -5,4 +5,8 @@ description: Orchestrate a babysitter run. use this command to start babysitting
|
|
|
5
5
|
|
|
6
6
|
# yolo
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
Run the Babysitter orchestration instructions directly through the CLI, without any user interaction or breakpoints. Use Bash to run `babysitter instructions:babysit-skill --harness openclaw --no-interactive`, then follow the returned instructions in this same turn until completion proof is produced. Do not stop after reading the instructions, do not invoke the Skill tool first, and use the non-interactive/no-breakpoints path when the instructions offer a mode choice.
|
|
9
|
+
|
|
10
|
+
User arguments for this command:
|
|
11
|
+
|
|
12
|
+
$ARGUMENTS
|
package/versions.json
CHANGED
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const path = require('path');
|
|
4
|
-
const {
|
|
5
|
-
listMarkdownBasenames,
|
|
6
|
-
reportCheckResult,
|
|
7
|
-
syncCommandMirrors,
|
|
8
|
-
syncSkillsFromCommands,
|
|
9
|
-
writeFileIfChanged,
|
|
10
|
-
} = require('../../../scripts/plugin-command-sync-lib.cjs');
|
|
11
|
-
|
|
12
|
-
const PACKAGE_ROOT = path.resolve(__dirname, '..');
|
|
13
|
-
const REPO_ROOT = path.resolve(PACKAGE_ROOT, '..', '..');
|
|
14
|
-
const ROOT_COMMANDS = path.join(REPO_ROOT, 'plugins', 'babysitter', 'commands');
|
|
15
|
-
const COMMANDS_ROOT = path.join(PACKAGE_ROOT, 'commands');
|
|
16
|
-
const SKILLS_ROOT = path.join(PACKAGE_ROOT, 'skills');
|
|
17
|
-
const LABEL = 'babysitter-openclaw sync';
|
|
18
|
-
|
|
19
|
-
const BABYSIT_SKILL = `---
|
|
20
|
-
name: babysit
|
|
21
|
-
description: Orchestrate via @babysitter. Use this skill when asked to babysit a run, orchestrate a process or whenever it is called explicitly. (babysit, babysitter, orchestrate, orchestrate a run, workflow, etc.)
|
|
22
|
-
---
|
|
23
|
-
|
|
24
|
-
# babysit
|
|
25
|
-
|
|
26
|
-
Orchestrate \`.a5c/runs/<runId>/\` through iterative execution.
|
|
27
|
-
|
|
28
|
-
## Dependencies
|
|
29
|
-
|
|
30
|
-
### Babysitter SDK and CLI
|
|
31
|
-
|
|
32
|
-
Read the SDK version from \`versions.json\` to ensure version compatibility:
|
|
33
|
-
|
|
34
|
-
\`\`\`bash
|
|
35
|
-
PLUGIN_ROOT="\${OPENCLAW_PLUGIN_ROOT:-\$(pwd)}"
|
|
36
|
-
SDK_VERSION=$(node -e "try{const fs=require('fs');const path=require('path');const pluginRoot=process.env.OPENCLAW_PLUGIN_ROOT||process.env.PLUGIN_ROOT||process.cwd();const probes=[path.join(pluginRoot,'versions.json'),path.join(pluginRoot,'plugins','babysitter-openclaw','versions.json'),path.join(pluginRoot,'node_modules','@a5c-ai','babysitter-openclaw','versions.json'),path.join(process.cwd(),'node_modules','@a5c-ai','babysitter-openclaw','versions.json')];for(const probe of probes){if(fs.existsSync(probe)){console.log(JSON.parse(fs.readFileSync(probe,'utf8')).sdkVersion||'latest');process.exit(0)}}console.log('latest')}catch{console.log('latest')}")
|
|
37
|
-
npm i -g @a5c-ai/babysitter-sdk@$SDK_VERSION
|
|
38
|
-
CLI="npx -y @a5c-ai/babysitter-sdk@$SDK_VERSION"
|
|
39
|
-
\`\`\`
|
|
40
|
-
|
|
41
|
-
## Instructions
|
|
42
|
-
|
|
43
|
-
Run the following command to get full orchestration instructions:
|
|
44
|
-
|
|
45
|
-
\`\`\`bash
|
|
46
|
-
babysitter instructions:babysit-skill --harness openclaw --interactive
|
|
47
|
-
\`\`\`
|
|
48
|
-
|
|
49
|
-
For non-interactive mode:
|
|
50
|
-
|
|
51
|
-
\`\`\`bash
|
|
52
|
-
babysitter instructions:babysit-skill --harness openclaw --no-interactive
|
|
53
|
-
\`\`\`
|
|
54
|
-
|
|
55
|
-
Follow the instructions returned by the command above to orchestrate the run.
|
|
56
|
-
`;
|
|
57
|
-
|
|
58
|
-
function getCommandNames() {
|
|
59
|
-
return listMarkdownBasenames(ROOT_COMMANDS);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
function main() {
|
|
63
|
-
const check = process.argv.includes('--check');
|
|
64
|
-
const commandNames = getCommandNames();
|
|
65
|
-
const mirrorResult = syncCommandMirrors({
|
|
66
|
-
label: LABEL,
|
|
67
|
-
sourceRoot: ROOT_COMMANDS,
|
|
68
|
-
targetRoot: COMMANDS_ROOT,
|
|
69
|
-
names: commandNames,
|
|
70
|
-
check,
|
|
71
|
-
cwd: PACKAGE_ROOT,
|
|
72
|
-
});
|
|
73
|
-
const skillsResult = syncSkillsFromCommands({
|
|
74
|
-
label: LABEL,
|
|
75
|
-
sourceRoot: COMMANDS_ROOT,
|
|
76
|
-
skillsRoot: SKILLS_ROOT,
|
|
77
|
-
names: commandNames,
|
|
78
|
-
check,
|
|
79
|
-
cwd: PACKAGE_ROOT,
|
|
80
|
-
});
|
|
81
|
-
|
|
82
|
-
const babysitSkillPath = path.join(SKILLS_ROOT, 'babysit', 'SKILL.md');
|
|
83
|
-
if (check) {
|
|
84
|
-
const fs = require('fs');
|
|
85
|
-
const stale = [...mirrorResult.stale, ...skillsResult.stale];
|
|
86
|
-
const current = fs.existsSync(babysitSkillPath)
|
|
87
|
-
? fs.readFileSync(babysitSkillPath, 'utf8')
|
|
88
|
-
: null;
|
|
89
|
-
if (current !== BABYSIT_SKILL) {
|
|
90
|
-
stale.push(path.relative(PACKAGE_ROOT, babysitSkillPath));
|
|
91
|
-
}
|
|
92
|
-
reportCheckResult(LABEL, stale);
|
|
93
|
-
return;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
const babysitUpdated = writeFileIfChanged(babysitSkillPath, BABYSIT_SKILL) ? 1 : 0;
|
|
97
|
-
const updated = mirrorResult.updated + skillsResult.updated + babysitUpdated;
|
|
98
|
-
|
|
99
|
-
if (updated === 0) {
|
|
100
|
-
console.log(`[${LABEL}] no openclaw command or skill changes were needed.`);
|
|
101
|
-
return;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
console.log(`[${LABEL}] updated ${updated} openclaw command/skill file(s).`);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
main();
|
|
File without changes
|