@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.
Files changed (64) hide show
  1. package/README.md +29 -16
  2. package/bin/install-shared.cjs +6 -6
  3. package/bin/uninstall.cjs +0 -1
  4. package/commands/blueprints.md +64 -0
  5. package/commands/call.md +11 -7
  6. package/commands/check-forbidden-markers.md +68 -0
  7. package/commands/cleanup.md +37 -9
  8. package/commands/contrib.md +31 -31
  9. package/commands/doctor.md +2 -3
  10. package/commands/forever.md +6 -6
  11. package/commands/help.md +11 -10
  12. package/commands/observe.md +6 -1
  13. package/commands/plan.md +17 -7
  14. package/commands/plugins.md +22 -255
  15. package/commands/project-install.md +10 -10
  16. package/commands/resume.md +8 -8
  17. package/commands/retrospect.md +55 -55
  18. package/commands/user-install.md +10 -10
  19. package/commands/yolo.md +11 -7
  20. package/extensions/hooks/gateway-request-completed.ts +20 -0
  21. package/extensions/hooks/gateway-request-received.ts +20 -0
  22. package/extensions/hooks/{session-start.ts → gateway-request-routed.ts} +4 -4
  23. package/extensions/hooks/{before-prompt-build.ts → plugin-tool-after.ts} +4 -4
  24. package/extensions/hooks/{session-end.ts → plugin-tool-before.ts} +4 -4
  25. package/extensions/hooks/{agent-end.ts → plugin-turn-stop.ts} +4 -4
  26. package/hooks/{babysitter-proxied-session-end.js → babysitter-proxied-gateway-request-completed.js} +6 -3
  27. package/hooks/{babysitter-proxied-session-end.sh → babysitter-proxied-gateway-request-completed.sh} +0 -0
  28. package/hooks/{babysitter-proxied-session-start.js → babysitter-proxied-gateway-request-received.js} +6 -3
  29. package/hooks/{babysitter-proxied-session-start.sh → babysitter-proxied-gateway-request-received.sh} +1 -1
  30. package/hooks/babysitter-proxied-gateway-request-routed.js +27 -0
  31. package/hooks/babysitter-proxied-gateway-request-routed.sh +3 -0
  32. package/hooks/babysitter-proxied-plugin-tool-after.js +27 -0
  33. package/hooks/babysitter-proxied-plugin-tool-after.sh +3 -0
  34. package/hooks/{babysitter-proxied-before-prompt-build.js → babysitter-proxied-plugin-tool-before.js} +7 -4
  35. package/hooks/babysitter-proxied-plugin-tool-before.sh +3 -0
  36. package/hooks/{babysitter-proxied-agent-end.js → babysitter-proxied-plugin-turn-stop.js} +7 -4
  37. package/hooks.json +1 -24
  38. package/openclaw.plugin.json +7 -5
  39. package/package.json +10 -9
  40. package/plugin.json +1 -1
  41. package/scripts/create-release-tag.mjs +18 -0
  42. package/scripts/publish-from-tag.mjs +41 -0
  43. package/scripts/team-install.cjs +1 -1
  44. package/skills/babysit/SKILL.md +35 -10
  45. package/skills/blueprints/SKILL.md +66 -0
  46. package/skills/call/SKILL.md +5 -1
  47. package/skills/check-forbidden-markers/SKILL.md +69 -0
  48. package/skills/cleanup/SKILL.md +37 -9
  49. package/skills/contrib/SKILL.md +25 -25
  50. package/skills/doctor/SKILL.md +2 -3
  51. package/skills/help/SKILL.md +11 -10
  52. package/skills/observe/SKILL.md +6 -1
  53. package/skills/plan/SKILL.md +11 -1
  54. package/skills/plugins/SKILL.md +18 -251
  55. package/skills/project-install/SKILL.md +3 -3
  56. package/skills/resume/SKILL.md +1 -1
  57. package/skills/retrospect/SKILL.md +48 -48
  58. package/skills/user-install/SKILL.md +3 -3
  59. package/skills/yolo/SKILL.md +5 -1
  60. package/versions.json +2 -1
  61. package/hooks/babysitter-proxied-agent-end.sh +0 -3
  62. package/hooks/babysitter-proxied-before-prompt-build.sh +0 -3
  63. package/scripts/sync-command-docs.cjs +0 -107
  64. /package/hooks/{babysitter-proxied-stop-hook.sh → babysitter-proxied-plugin-turn-stop.sh} +0 -0
@@ -5,4 +5,8 @@ description: Orchestrate a babysitter run. use this command to start babysitting
5
5
 
6
6
  # yolo
7
7
 
8
- Invoke the babysitter:babysit skill (using the Skill tool) and follow its instructions (SKILL.md). but without any user interaction or breakpoints in the run.
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,3 +1,4 @@
1
1
  {
2
- "sdkVersion": "5.0.1-staging.ff2c19f9"
2
+ "sdkVersion": "5.1.1-staging.00ceebd28cf2",
3
+ "extensionVersion": "5.1.1-staging.00ceebd28cf2"
3
4
  }
@@ -1,3 +0,0 @@
1
- #!/bin/bash
2
- set -euo pipefail
3
- babysitter hook:run --harness unified --hook-type after-agent --json
@@ -1,3 +0,0 @@
1
- #!/bin/bash
2
- set -euo pipefail
3
- babysitter hook:run --harness unified --hook-type before-prompt-build --json
@@ -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();