@a5c-ai/babysitter-opencode 5.0.1-staging.3e9ebe56e689 → 5.0.1-staging.3edc9d7b8d6f
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/bin/install-shared.js +4 -4
- package/commands/blueprints.md +64 -0
- package/commands/call.md +6 -6
- package/commands/check-forbidden-markers.md +68 -0
- package/commands/cleanup.md +7 -1
- package/commands/contrib.md +31 -31
- package/commands/forever.md +6 -6
- package/commands/help.md +9 -9
- package/commands/observe.md +1 -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 +1 -1
- package/hooks/babysitter-proxied-session-created.js +4 -2
- package/hooks/babysitter-proxied-shell-env.js +4 -2
- package/hooks/babysitter-proxied-tool-execute-after.js +4 -2
- package/hooks/babysitter-proxied-tool-execute-before.js +4 -2
- package/package.json +2 -2
- package/plugin.json +1 -1
- package/skills/accomplish-status/SKILL.md +7 -1
- package/skills/babysit/SKILL.md +34 -10
- package/skills/blueprints/SKILL.md +66 -0
- package/skills/check-forbidden-markers/SKILL.md +69 -0
- package/skills/cleanup/SKILL.md +7 -1
- package/skills/contrib/SKILL.md +25 -25
- package/skills/help/SKILL.md +9 -9
- package/skills/observe/SKILL.md +1 -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 +1 -1
- package/versions.json +2 -2
package/bin/install-shared.js
CHANGED
|
@@ -29,7 +29,7 @@ function writeFileIfChanged(filePath, contents) {
|
|
|
29
29
|
try {
|
|
30
30
|
const existing = fs.readFileSync(filePath, 'utf8');
|
|
31
31
|
if (existing === contents) return false;
|
|
32
|
-
} catch {}
|
|
32
|
+
} catch (e) { process.stderr.write('[extension-mux] file read failed for ' + filePath + ', overwriting: ' + (e instanceof Error ? e.message : String(e)) + '\n'); }
|
|
33
33
|
fs.mkdirSync(path.dirname(filePath), { recursive: true });
|
|
34
34
|
fs.writeFileSync(filePath, contents);
|
|
35
35
|
return true;
|
|
@@ -82,7 +82,7 @@ function writeJson(filePath, value) {
|
|
|
82
82
|
function ensureExecutable(filePath) {
|
|
83
83
|
try {
|
|
84
84
|
fs.chmodSync(filePath, 0o755);
|
|
85
|
-
} catch {}
|
|
85
|
+
} catch (e) { process.stderr.write('[extension-mux] chmod failed for ' + filePath + ': ' + (e instanceof Error ? e.message : String(e)) + '\n'); }
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
function normalizeMarketplaceSourcePath(source, marketplacePath) {
|
|
@@ -104,7 +104,7 @@ function ensureMarketplaceEntry(marketplacePath, pluginRoot) {
|
|
|
104
104
|
name: PLUGIN_NAME,
|
|
105
105
|
source: relSource,
|
|
106
106
|
description: "Orchestrate complex, multi-step workflows with event-sourced state management, hook-based extensibility, and human-in-the-loop approval",
|
|
107
|
-
version: "5.0.1-staging.
|
|
107
|
+
version: "5.0.1-staging.3edc9d7b8d6f",
|
|
108
108
|
author: { name: "a5c.ai" },
|
|
109
109
|
};
|
|
110
110
|
if (idx >= 0) marketplace.plugins[idx] = entry;
|
|
@@ -147,7 +147,7 @@ function resolveCliCommand(packageRoot) {
|
|
|
147
147
|
const versionsPath = path.join(packageRoot, 'versions.json');
|
|
148
148
|
const versions = readJson(versionsPath) || {};
|
|
149
149
|
const ver = versions.sdkVersion || 'latest';
|
|
150
|
-
return `
|
|
150
|
+
return `npm exec --yes --package @a5c-ai/babysitter-sdk@${ver} -- babysitter`;
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
function runCli(packageRoot, cliArgs, options = {}) {
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: manage Babysitter blueprints. Use this command to list installed blueprints, browse marketplaces, install, update, uninstall, configure, or create a new blueprint.
|
|
3
|
+
argument-hint: Blueprint action and options.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
This command installs and manages Babysitter blueprints. A blueprint is a version-managed package of contextual instructions or deterministic Babysitter processes, not a conventional software plugin.
|
|
7
|
+
|
|
8
|
+
If the command is run without arguments, list installed blueprints with their name, version, marketplace, installation date, and last update date. Also list configured marketplaces and show how to add the default marketplace when none exist.
|
|
9
|
+
|
|
10
|
+
Blueprints can be installed at two scopes:
|
|
11
|
+
|
|
12
|
+
- **global** (`--global`): stored under `~/.a5c/`, available for all projects
|
|
13
|
+
- **project** (`--project`): stored under `<projectDir>/.a5c/`, project-specific
|
|
14
|
+
|
|
15
|
+
## Marketplace Management
|
|
16
|
+
|
|
17
|
+
Marketplaces are git repositories containing a `marketplace.json` manifest and blueprint package directories. The SDK clones new marketplaces to `.a5c/blueprints/marketplaces/` for the selected scope and reads legacy `.a5c/marketplaces/` clones for compatibility.
|
|
18
|
+
|
|
19
|
+
### Add a marketplace
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
babysitter blueprint:add-marketplace --marketplace-url <url> [--marketplace-path <relative-path>] [--marketplace-branch <ref>] [--force] --global|--project [--json]
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### Update a marketplace
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
babysitter blueprint:update-marketplace --marketplace-name <name> [--marketplace-branch <ref>] --global|--project [--json]
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### List blueprints in a marketplace
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
babysitter blueprint:list-plugins --marketplace-name <name> --global|--project [--json]
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Blueprint Lifecycle
|
|
38
|
+
|
|
39
|
+
For `blueprint:install`, `blueprint:update`, `blueprint:configure`, and `blueprint:list-plugins`, the `--marketplace-name` flag is auto-detected when only one marketplace is cloned for the selected scope.
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
babysitter blueprint:install --plugin-name <name> [--marketplace-name <mp>] --global|--project [--json]
|
|
43
|
+
babysitter blueprint:update --plugin-name <name> --marketplace-name <mp> --global|--project [--json]
|
|
44
|
+
babysitter blueprint:configure --plugin-name <name> --marketplace-name <mp> --global|--project [--json]
|
|
45
|
+
babysitter blueprint:uninstall --plugin-name <name> --marketplace-name <mp> --global|--project [--json]
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
The `--plugin-name` flag is preserved for CLI compatibility with existing marketplace manifests. User-facing docs should call the installable a blueprint.
|
|
49
|
+
|
|
50
|
+
## Registry Management
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
babysitter blueprint:list-installed --global|--project [--json]
|
|
54
|
+
babysitter blueprint:update-registry --plugin-name <name> --plugin-version <ver> --marketplace-name <mp> --global|--project [--json]
|
|
55
|
+
babysitter blueprint:remove-from-registry --plugin-name <name> --global|--project [--json]
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## Deprecated Aliases
|
|
59
|
+
|
|
60
|
+
The old `plugin:*` commands remain available as deprecated aliases for one release. Prefer `blueprint:*` in new docs, skills, and process instructions.
|
|
61
|
+
|
|
62
|
+
## Agent Plugins Are Separate
|
|
63
|
+
|
|
64
|
+
Do not rename or reinterpret agent harness plugins while handling blueprints. `CLAUDE_PLUGIN_ROOT`, `PI_PLUGIN_ROOT`, `.claude/plugins/`, hooks-mux, extension-mux, and agent plugin manifests stay plugin-specific.
|
package/commands/call.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Orchestrate a babysitter run. use this command to start babysitting a complex workflow.
|
|
3
|
-
argument-hint: Specific instructions for the run.
|
|
4
|
-
allowed-tools: Read, Grep, Write, Task, Bash, Edit, Grep, Glob, WebFetch, WebSearch, Search, AskUserQuestion, TodoWrite, TodoRead, Skill, BashOutput, KillShell, MultiEdit, LS
|
|
5
|
-
---
|
|
6
|
-
|
|
1
|
+
---
|
|
2
|
+
description: Orchestrate a babysitter run. use this command to start babysitting a complex workflow.
|
|
3
|
+
argument-hint: Specific instructions for the run.
|
|
4
|
+
allowed-tools: Read, Grep, Write, Task, Bash, Edit, Grep, Glob, WebFetch, WebSearch, Search, AskUserQuestion, TodoWrite, TodoRead, Skill, BashOutput, KillShell, MultiEdit, LS
|
|
5
|
+
---
|
|
6
|
+
|
|
7
7
|
Invoke the babysitter:babysit skill (using the Skill tool) and follow its instructions (SKILL.md). Then continue executing the returned instructions in this same turn. Do not stop after the Skill tool returns; carry the requested run through to completion proof.
|
|
8
8
|
|
|
9
9
|
User arguments for this command:
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Pre-deploy gate that scans built JS chunks for forbidden substring markers (saga-era / obsolete code paths) listed in a project-local forbidden-markers.txt
|
|
3
|
+
argument-hint: "[--markers-file <path>] [--chunks-dir <path>] [--json] Optional overrides; defaults are project-relative."
|
|
4
|
+
allowed-tools: Read, Grep, Write, Task, Bash, Edit, Grep, Glob, WebFetch, WebSearch, Search, AskUserQuestion, TodoWrite, TodoRead, Skill, BashOutput, KillShell, MultiEdit, LS
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Invoke the babysitter:babysit skill (using the Skill tool) and follow its instructions (SKILL.md). Compose the gate from the shared helper at `library/processes/shared/forbidden-markers-scanner.js` (issue #477).
|
|
8
|
+
|
|
9
|
+
## What this gate does
|
|
10
|
+
|
|
11
|
+
Reads a list of literal substring markers from `scripts/forbidden-markers.txt` (blank lines and `#`-prefixed comments stripped) and greps every `.js` chunk under `.vercel/output/static/_next/static/chunks/` (Next.js / Vercel default; configurable) for any occurrence. Reports structured hits per `(marker, chunk)` pair with occurrence counts. Designed to chain between `vercel build --prod` and `vercel deploy --prod`.
|
|
12
|
+
|
|
13
|
+
Use this gate when a refactor or restart-from-baseline replaced load-bearing code paths and you need a structural guarantee the obsolete symbols never re-ship. Burned-in evidence: cookbook VI-9 / VI-12 near-miss revivals during the 2026-05 iOS-Safari saga; the prototype lives at `cookbook/scripts/check-no-forbidden.mjs` and shipped two upstream contributions before being generalized as this gate.
|
|
14
|
+
|
|
15
|
+
## When to use
|
|
16
|
+
|
|
17
|
+
- **Pre-deploy.** Insert after build, before deploy. Block the deploy when `ok: false`.
|
|
18
|
+
- **Post-restart.** After a baseline rollback + step-by-step re-add, snapshot the saga-era markers in `forbidden-markers.txt` and let CI hold the line.
|
|
19
|
+
- **Post-refactor.** When old helper / handler / module names must not coexist with the new ones in the same bundle.
|
|
20
|
+
|
|
21
|
+
## Expected config locations
|
|
22
|
+
|
|
23
|
+
- `scripts/forbidden-markers.txt` — one marker per line, `#` for comments. The list is the contract; the gate is mechanical. Commit this file to source control.
|
|
24
|
+
- `.vercel/output/static/_next/static/chunks/` — default scan target. Override for non-Vercel frameworks via the `--chunks-dir` flag or the `chunksDir` task input.
|
|
25
|
+
|
|
26
|
+
A missing markers file is a no-op (`ok: true`, `reason: 'missing-markers-file'`) — misconfiguration is never a deploy block. A missing chunks directory is likewise a no-op (`reason: 'missing-chunks-dir'`) so the gate is safe to chain into `check:all` before the build runs.
|
|
27
|
+
|
|
28
|
+
## Exit semantics
|
|
29
|
+
|
|
30
|
+
| Reason | `ok` | Deploy decision |
|
|
31
|
+
|-------------------------|--------|--------------------------------|
|
|
32
|
+
| `missing-markers-file` | true | Pass (no gate active) |
|
|
33
|
+
| `missing-chunks-dir` | true | Pass (run before build) |
|
|
34
|
+
| `empty-markers` | true | Pass (list is empty) |
|
|
35
|
+
| `no-chunks` | true | Pass (nothing to scan) |
|
|
36
|
+
| `clean` | true | Pass — proceed to deploy |
|
|
37
|
+
| `hits` | false | **BLOCK** — surface hits, ask for triage |
|
|
38
|
+
|
|
39
|
+
For each hit, the gate emits `{ marker, chunk, count }` so the operator sees the exact marker string, the absolute chunk path, and the number of occurrences in that chunk. Multiple hits across chunks for the same marker are reported separately.
|
|
40
|
+
|
|
41
|
+
## Programmatic surface
|
|
42
|
+
|
|
43
|
+
```js
|
|
44
|
+
import { scanForbiddenMarkers, checkForbiddenMarkersTask } from '@a5c-ai/babysitter-library/processes/shared';
|
|
45
|
+
|
|
46
|
+
// Direct call:
|
|
47
|
+
const result = await scanForbiddenMarkers({
|
|
48
|
+
markersFile: 'scripts/forbidden-markers.txt',
|
|
49
|
+
chunksDir: '.vercel/output/static/_next/static/chunks',
|
|
50
|
+
});
|
|
51
|
+
if (!result.ok) {
|
|
52
|
+
// result.hits: Array<{ marker, chunk, count }>
|
|
53
|
+
// result.reason === 'hits'
|
|
54
|
+
process.exit(1);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// Or dispatched as a babysitter task:
|
|
58
|
+
const gate = await ctx.task(checkForbiddenMarkersTask, {
|
|
59
|
+
projectDir: '.',
|
|
60
|
+
// markersFile / chunksDir are inferred from projectDir if omitted
|
|
61
|
+
});
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## Reference
|
|
65
|
+
|
|
66
|
+
- Issue: https://github.com/a5c-ai/babysitter/issues/477
|
|
67
|
+
- Helper module: `library/processes/shared/forbidden-markers-scanner.js`
|
|
68
|
+
- Origin (cookbook prototype): `cookbook/scripts/check-no-forbidden.mjs` (81 lines)
|
package/commands/cleanup.md
CHANGED
|
@@ -6,7 +6,13 @@ allowed-tools: Read, Grep, Write, Task, Bash, Edit, Grep, Glob, WebFetch, WebSea
|
|
|
6
6
|
|
|
7
7
|
Invoke the babysitter:babysit skill (using the Skill tool) and follow its instructions (SKILL.md).
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Resolve the active process library with:
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
babysitter process-library:active --json
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Read `binding.dir` from that JSON and create/run the cleanup process from `cradle/cleanup-runs.js#process` relative to that active library root. Do not use plugin-cache-relative cradle paths.
|
|
10
16
|
|
|
11
17
|
Implementation notes (for the process):
|
|
12
18
|
- Parse arguments for `--dry-run` flag (if present, set dryRun: true in inputs) and `--keep-days N` (default: 7)
|
package/commands/contrib.md
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Submit feedback or contribute to babysitter project
|
|
3
|
-
argument-hint: Specific instructions for the run.
|
|
4
|
-
allowed-tools: Read, Grep, Write, Task, Bash, Edit, Grep, Glob, WebFetch, WebSearch, Search, AskUserQuestion, TodoWrite, TodoRead, Skill, BashOutput, KillShell, MultiEdit, LS
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
Invoke the babysitter:babysit skill (using the Skill tool) and follow its instructions (SKILL.md).
|
|
8
|
-
|
|
9
|
-
## Process Routing
|
|
10
|
-
|
|
1
|
+
---
|
|
2
|
+
description: Submit feedback or contribute to babysitter project
|
|
3
|
+
argument-hint: Specific instructions for the run.
|
|
4
|
+
allowed-tools: Read, Grep, Write, Task, Bash, Edit, Grep, Glob, WebFetch, WebSearch, Search, AskUserQuestion, TodoWrite, TodoRead, Skill, BashOutput, KillShell, MultiEdit, LS
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Invoke the babysitter:babysit skill (using the Skill tool) and follow its instructions (SKILL.md).
|
|
8
|
+
|
|
9
|
+
## Process Routing
|
|
10
|
+
|
|
11
11
|
Contribution processes live under the active process library's `cradle/` directory. Resolve the active library root with `babysitter process-library:active --json` and route based on arguments:
|
|
12
|
-
|
|
13
|
-
### Issue-based (opens a GitHub issue in a5c-ai/babysitter)
|
|
14
|
-
* **Bug report** → `cradle/bug-report.js#process` — Report a bug in the SDK, CLI, process library, etc.
|
|
15
|
-
* **Feature request** → `cradle/feature-request.js#process` — Request a new feature or enhancement
|
|
16
|
-
* **Documentation question** → `cradle/documentation-question.js#process` — Ask about undocumented behavior or missing docs
|
|
17
|
-
|
|
18
|
-
### PR-based (forks repo, creates branch, submits PR to a5c-ai/babysitter)
|
|
19
|
-
* **Bugfix** → `cradle/bugfix.js#process` — User already has the fix for a bug
|
|
20
|
-
* **Feature implementation** → `cradle/feature-implementation-contribute.js#process` — User already has a feature implementation
|
|
21
|
-
* **Harness integration** → `cradle/feature-harness-integration-contribute.js#process` — User has a harness (CI/CD, IDE, editor) integration
|
|
22
|
-
* **Library contribution** → `cradle/library-contribution.js#process` — New or improved process/skill/subagent for the library
|
|
23
|
-
* **Documentation answer** → `cradle/documentation-contribute-answer.js#process` — User has an answer for an unanswered docs question
|
|
24
|
-
|
|
25
|
-
### Router (when arguments are empty or general)
|
|
26
|
-
* **Contribute** → `cradle/contribute.js#process` — Explains contribution types and routes to the specific process
|
|
27
|
-
|
|
28
|
-
## Contribution Rules
|
|
29
|
-
|
|
30
|
-
* PR-based contributions: fork the babysitter repo (a5c-ai/babysitter) for the user, ask to star if not already starred, perform changes, submit PR
|
|
31
|
-
* Issue-based contributions: gather details, search for duplicates, review, then open an issue in a5c-ai/babysitter
|
|
32
|
-
* Add breakpoints (permissions) before ALL gh actions (fork, star, submit PR/issue) to allow user review and cancellation
|
|
12
|
+
|
|
13
|
+
### Issue-based (opens a GitHub issue in a5c-ai/babysitter)
|
|
14
|
+
* **Bug report** → `cradle/bug-report.js#process` — Report a bug in the SDK, CLI, process library, etc.
|
|
15
|
+
* **Feature request** → `cradle/feature-request.js#process` — Request a new feature or enhancement
|
|
16
|
+
* **Documentation question** → `cradle/documentation-question.js#process` — Ask about undocumented behavior or missing docs
|
|
17
|
+
|
|
18
|
+
### PR-based (forks repo, creates branch, submits PR to a5c-ai/babysitter)
|
|
19
|
+
* **Bugfix** → `cradle/bugfix.js#process` — User already has the fix for a bug
|
|
20
|
+
* **Feature implementation** → `cradle/feature-implementation-contribute.js#process` — User already has a feature implementation
|
|
21
|
+
* **Harness integration** → `cradle/feature-harness-integration-contribute.js#process` — User has a harness (CI/CD, IDE, editor) integration
|
|
22
|
+
* **Library contribution** → `cradle/library-contribution.js#process` — New or improved process/skill/subagent for the library
|
|
23
|
+
* **Documentation answer** → `cradle/documentation-contribute-answer.js#process` — User has an answer for an unanswered docs question
|
|
24
|
+
|
|
25
|
+
### Router (when arguments are empty or general)
|
|
26
|
+
* **Contribute** → `cradle/contribute.js#process` — Explains contribution types and routes to the specific process
|
|
27
|
+
|
|
28
|
+
## Contribution Rules
|
|
29
|
+
|
|
30
|
+
* PR-based contributions: fork the babysitter repo (a5c-ai/babysitter) for the user, ask to star if not already starred, perform changes, submit PR
|
|
31
|
+
* Issue-based contributions: gather details, search for duplicates, review, then open an issue in a5c-ai/babysitter
|
|
32
|
+
* Add breakpoints (permissions) before ALL gh actions (fork, star, submit PR/issue) to allow user review and cancellation
|
|
33
33
|
* If arguments are empty: use the `contribute.js` router process to show options and route accordingly
|
package/commands/forever.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Use this command to start babysitting a never-ending babysitter run.
|
|
3
|
-
argument-hint: Specific instructions for the run.
|
|
4
|
-
allowed-tools: Read, Grep, Write, Task, Bash, Edit, Grep, Glob, WebFetch, WebSearch, Search, AskUserQuestion, TodoWrite, TodoRead, Skill, BashOutput, KillShell, MultiEdit, LS
|
|
5
|
-
---
|
|
6
|
-
|
|
1
|
+
---
|
|
2
|
+
description: Use this command to start babysitting a never-ending babysitter run.
|
|
3
|
+
argument-hint: Specific instructions for the run.
|
|
4
|
+
allowed-tools: Read, Grep, Write, Task, Bash, Edit, Grep, Glob, WebFetch, WebSearch, Search, AskUserQuestion, TodoWrite, TodoRead, Skill, BashOutput, KillShell, MultiEdit, LS
|
|
5
|
+
---
|
|
6
|
+
|
|
7
7
|
Invoke the babysitter:babysit skill (using the Skill tool) and follow its instructions (SKILL.md). but create a process that uses an infinte loop and a ctx.sleep to create a never-ending babysitter loop. an example of such process is a daily process that reads new support ticket every day and tries to resolve them, then sleeps for 4 hours and repeats the process.
|
package/commands/help.md
CHANGED
|
@@ -179,13 +179,13 @@ SECONDARY COMMANDS
|
|
|
179
179
|
a fuzzy comparison step before strict assertion. Implement this fix?")
|
|
180
180
|
|
|
181
181
|
|
|
182
|
-
/babysitter:
|
|
183
|
-
Manage
|
|
184
|
-
update, configure, uninstall, or create new
|
|
185
|
-
instruction packages
|
|
186
|
-
configure, and uninstall steps
|
|
182
|
+
/babysitter:blueprints [action]
|
|
183
|
+
Manage Babysitter blueprints: list installed blueprints, browse marketplaces,
|
|
184
|
+
install, update, configure, uninstall, or create new blueprints. Blueprints are
|
|
185
|
+
version-managed instruction packages or process bundles that guide the agent
|
|
186
|
+
through install, configure, and uninstall steps.
|
|
187
187
|
|
|
188
|
-
Without arguments: shows installed
|
|
188
|
+
Without arguments: shows installed blueprints (name, version, marketplace, dates) and
|
|
189
189
|
available marketplaces. With arguments: routes to the specific action.
|
|
190
190
|
|
|
191
191
|
Key actions:
|
|
@@ -193,11 +193,11 @@ SECONDARY COMMANDS
|
|
|
193
193
|
- configure <name> --global|--project: fetch configure.md and walk through options
|
|
194
194
|
- update <name> --global|--project: resolve migration chain via BFS and apply steps
|
|
195
195
|
- uninstall <name> --global|--project: fetch uninstall.md and execute removal
|
|
196
|
-
- create: scaffold a new
|
|
196
|
+
- create: scaffold a new blueprint package
|
|
197
197
|
|
|
198
|
-
Example: /babysitter:
|
|
198
|
+
Example: /babysitter:blueprints install sound-hooks --project
|
|
199
199
|
(fetches sound-hooks from marketplace, reads install.md, walks you through player
|
|
200
|
-
detection, sound selection, hook configuration, and registers
|
|
200
|
+
detection, sound selection, hook configuration, and registers the blueprint)
|
|
201
201
|
|
|
202
202
|
|
|
203
203
|
/babysitter:contrib [feedback]
|
package/commands/observe.md
CHANGED
|
@@ -13,5 +13,5 @@ Run the babysitter observer dashboard:
|
|
|
13
13
|
|
|
14
14
|
Do not fall back to `babysitter observe`; the core Babysitter CLI does not expose
|
|
15
15
|
that subcommand. Some harness runtimes may provide a separate
|
|
16
|
-
`
|
|
16
|
+
`agent-platform observe` surface, but this skill uses the verified standalone
|
|
17
17
|
dashboard package.
|
package/commands/plan.md
CHANGED
|
@@ -1,7 +1,17 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Plan a babysitter run. use this command to plan a complex workflow, without actually running it.
|
|
3
|
-
argument-hint: Specific instructions for the run.
|
|
4
|
-
allowed-tools: Read, Grep, Write, Task, Bash, Edit, Grep, Glob, WebFetch, WebSearch, Search, AskUserQuestion, TodoWrite, TodoRead, Skill, BashOutput, KillShell, MultiEdit, LS
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
Invoke the babysitter:babysit skill (using the Skill tool) and follow its instructions (SKILL.md).
|
|
1
|
+
---
|
|
2
|
+
description: Plan a babysitter run. use this command to plan a complex workflow, without actually running it.
|
|
3
|
+
argument-hint: Specific instructions for the run.
|
|
4
|
+
allowed-tools: Read, Grep, Write, Task, Bash, Edit, Grep, Glob, WebFetch, WebSearch, Search, AskUserQuestion, TodoWrite, TodoRead, Skill, BashOutput, KillShell, MultiEdit, LS
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Invoke the babysitter:babysit skill (using the Skill tool) and follow its instructions (SKILL.md). Focus on creating the best process possible, but without creating and running the actual run.
|
|
8
|
+
|
|
9
|
+
Before drafting the process, run Phase 0 -- REUSE-AUDIT: extract keyword nouns and verbs from the request, scan for matching existing migrations, API routes, environment variables, SDK dependencies, and imports, honor `.a5c/reuse-audit.json` when present, and put a `Reuse-audit findings (REVIEW BEFORE PROCEEDING)` block before Phase 1 of the plan.
|
|
10
|
+
|
|
11
|
+
## Process Shape Selection
|
|
12
|
+
|
|
13
|
+
Choose the process shape before authoring `process.js`:
|
|
14
|
+
|
|
15
|
+
- Use a flat phase list when the spec is well-defined, the work is wiring or composition, the bug class is already known if this is a fix, and execution should proceed sequentially through clear phases.
|
|
16
|
+
- Use a HYPOTHESES tree when the bug class is unknown, forensics are required, multiple causal models compete, and each hypothesis needs its own observations, falsifying observations, and follow-up phases.
|
|
17
|
+
- Rule of thumb: if the first phase is "investigate", use HYPOTHESES-tree mode. If the first phase is "implement X", use flat-phase-list mode.
|
package/commands/plugins.md
CHANGED
|
@@ -1,255 +1,22 @@
|
|
|
1
|
-
---
|
|
2
|
-
description:
|
|
3
|
-
argument-hint:
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
This command
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
```bash
|
|
11
|
-
babysitter
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
- Global: `~/.a5c/marketplaces/<name>/`
|
|
24
|
-
- Project: `<projectDir>/.a5c/marketplaces/<name>/`
|
|
25
|
-
|
|
26
|
-
The marketplace name is derived from the git URL's last path segment (stripping `.git` suffix and trailing slashes).
|
|
27
|
-
|
|
28
|
-
### Adding a marketplace
|
|
29
|
-
|
|
30
|
-
```bash
|
|
31
|
-
babysitter plugin:add-marketplace --marketplace-url <url> [--marketplace-path <relative-path>] [--marketplace-branch <ref>] [--force] --global|--project [--json]
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
Clones the marketplace repository to the local marketplaces directory. Use `--marketplace-path` to specify the relative path to `marketplace.json` within the repo (for monorepos or repos where the manifest is not at the root). Use `--marketplace-branch` to clone a specific branch, tag, or ref (defaults to the repo's default branch). Use `--force` to replace an existing marketplace clone (deletes and re-clones).
|
|
35
|
-
|
|
36
|
-
### Updating a marketplace
|
|
37
|
-
|
|
38
|
-
```bash
|
|
39
|
-
babysitter plugin:update-marketplace --marketplace-name <name> [--marketplace-branch <ref>] --global|--project [--json]
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
Runs `git pull` on the local marketplace clone to fetch latest changes. Use `--marketplace-branch` to switch to a different branch before pulling (works even with shallow clones).
|
|
43
|
-
|
|
44
|
-
### Listing plugins in a marketplace
|
|
45
|
-
|
|
46
|
-
```bash
|
|
47
|
-
babysitter plugin:list-plugins --marketplace-name <name> --global|--project [--json]
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
Reads the `marketplace.json` manifest and returns all available plugins sorted alphabetically by name. Each entry includes: name, description, latestVersion, versions array, packagePath, tags, and author.
|
|
51
|
-
|
|
52
|
-
## Plugin Installation
|
|
53
|
-
|
|
54
|
-
**Note:** For `plugin:install`, `plugin:update`, `plugin:configure`, and `plugin:list-plugins`, the `--marketplace-name` flag is auto-detected when only one marketplace is cloned for the given scope. You can omit it if there's only one marketplace.
|
|
55
|
-
|
|
56
|
-
### Flow
|
|
57
|
-
|
|
58
|
-
1. Update the marketplace: `babysitter plugin:update-marketplace --marketplace-name <name> --global|--project`
|
|
59
|
-
2. Check current state: `babysitter plugin:list-installed --global|--project` to see installed plugins and versions
|
|
60
|
-
3. Install the plugin:
|
|
61
|
-
|
|
62
|
-
```bash
|
|
63
|
-
babysitter plugin:install --plugin-name <name> [--marketplace-name <mp>] --global|--project [--json]
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
This command resolves the plugin package path from the marketplace manifest, reads `install.md` from the plugin package directory, and returns the installation instructions. If an `install-process.js` file exists, the instructions may reference it as an automated install process.
|
|
67
|
-
|
|
68
|
-
4. The agent performs the installation steps as defined in `install.md`
|
|
69
|
-
5. The agent updates the registry:
|
|
70
|
-
|
|
71
|
-
```bash
|
|
72
|
-
babysitter plugin:update-registry --plugin-name <name> --plugin-version <ver> --marketplace-name <mp> --global|--project [--json]
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
## Plugin Update (with migrations)
|
|
76
|
-
|
|
77
|
-
```bash
|
|
78
|
-
babysitter plugin:update --plugin-name <name> --marketplace-name <mp> --global|--project [--json]
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
This command:
|
|
82
|
-
1. Reads the currently installed version from the registry
|
|
83
|
-
2. Resolves the latest version from the marketplace manifest
|
|
84
|
-
3. Looks in the plugin package's `migrations/` directory for migration files
|
|
85
|
-
4. Uses BFS over the migration graph to find the shortest path from the installed version to the target version
|
|
86
|
-
5. Returns the ordered migration instructions (content of each migration file in sequence)
|
|
87
|
-
|
|
88
|
-
**Migration filename format:** `<fromVersion>_to_<toVersion>.<ext>` where:
|
|
89
|
-
- Versions may contain alphanumerics, dots, dashes (e.g. `1.0.0`, `2.0.0-beta`)
|
|
90
|
-
- Extensions: `.md` for markdown instructions, `.js` for executable process files
|
|
91
|
-
- Examples: `1.0.0_to_1.1.0.md`, `2.0.0-beta_to_2.0.0.js`
|
|
92
|
-
|
|
93
|
-
After performing the migration steps, update the registry:
|
|
94
|
-
|
|
95
|
-
```bash
|
|
96
|
-
babysitter plugin:update-registry --plugin-name <name> --plugin-version <new-ver> --marketplace-name <mp> --global|--project [--json]
|
|
97
|
-
```
|
|
98
|
-
|
|
99
|
-
## Plugin Uninstallation
|
|
100
|
-
|
|
101
|
-
```bash
|
|
102
|
-
babysitter plugin:uninstall --plugin-name <name> --marketplace-name <mp> --global|--project [--json]
|
|
103
|
-
```
|
|
104
|
-
|
|
105
|
-
Reads `uninstall.md` from the plugin package directory and returns the uninstall instructions. After performing the uninstall steps, remove from registry:
|
|
106
|
-
|
|
107
|
-
```bash
|
|
108
|
-
babysitter plugin:remove-from-registry --plugin-name <name> --global|--project [--json]
|
|
109
|
-
```
|
|
110
|
-
|
|
111
|
-
## Plugin Configuration
|
|
112
|
-
|
|
113
|
-
```bash
|
|
114
|
-
babysitter plugin:configure --plugin-name <name> --marketplace-name <mp> --global|--project [--json]
|
|
115
|
-
```
|
|
116
|
-
|
|
117
|
-
Reads `configure.md` from the plugin package directory and returns configuration instructions.
|
|
118
|
-
|
|
119
|
-
## Registry Management
|
|
120
|
-
|
|
121
|
-
The plugin registry (`plugin-registry.json`) tracks installed plugins with schema version `2026.01.plugin-registry-v1`. Writes use atomic file operations (temp + rename) for crash safety.
|
|
122
|
-
|
|
123
|
-
**Storage locations:**
|
|
124
|
-
- Global: `~/.a5c/plugin-registry.json`
|
|
125
|
-
- Project: `<projectDir>/.a5c/plugin-registry.json`
|
|
126
|
-
|
|
127
|
-
### List installed plugins
|
|
128
|
-
|
|
129
|
-
```bash
|
|
130
|
-
babysitter plugin:list-installed --global|--project [--json]
|
|
131
|
-
```
|
|
132
|
-
|
|
133
|
-
Returns all installed plugins sorted alphabetically. In `--json` mode, returns an array of registry entries. In human mode, displays a formatted table with name, version, marketplace, and timestamps.
|
|
134
|
-
|
|
135
|
-
### Remove from registry
|
|
136
|
-
|
|
137
|
-
```bash
|
|
138
|
-
babysitter plugin:remove-from-registry --plugin-name <name> --global|--project [--json]
|
|
139
|
-
```
|
|
140
|
-
|
|
141
|
-
Removes a plugin entry from the registry. Returns error if the plugin is not present.
|
|
142
|
-
|
|
143
|
-
## Plugin Creation
|
|
144
|
-
|
|
145
|
-
To create a new plugin package from scratch, use the `meta/plugin-creation` babysitter process. This process guides you through requirements analysis, structure design, instruction authoring, optional process file generation, validation, and marketplace integration.
|
|
146
|
-
|
|
147
|
-
### Using the plugin creation process
|
|
148
|
-
|
|
149
|
-
Orchestrate a babysitter run with the plugin creation process:
|
|
150
|
-
|
|
151
|
-
```bash
|
|
152
|
-
# Create inputs file
|
|
153
|
-
cat > /tmp/plugin-inputs.json << 'EOF'
|
|
154
|
-
{
|
|
155
|
-
"pluginName": "my-plugin",
|
|
156
|
-
"description": "What the plugin does — be specific about install/configure/uninstall behavior",
|
|
157
|
-
"scope": "project",
|
|
158
|
-
"outputDir": "./plugins",
|
|
159
|
-
"components": {
|
|
160
|
-
"installProcess": false,
|
|
161
|
-
"configureProcess": false,
|
|
162
|
-
"uninstallProcess": false,
|
|
163
|
-
"migrations": false,
|
|
164
|
-
"processFiles": false
|
|
165
|
-
},
|
|
166
|
-
"marketplace": {
|
|
167
|
-
"name": "my-marketplace",
|
|
168
|
-
"author": "my-org",
|
|
169
|
-
"tags": ["category1", "category2"]
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
EOF
|
|
173
|
-
|
|
174
|
-
# Create and run
|
|
175
|
-
babysitter run:create \
|
|
176
|
-
--process-id meta/plugin-creation \
|
|
177
|
-
--entry library/specializations/meta/plugin-creation.js#process \
|
|
178
|
-
--inputs /tmp/plugin-inputs.json \
|
|
179
|
-
--prompt "Create a new babysitter plugin package" \
|
|
180
|
-
--json
|
|
181
|
-
```
|
|
182
|
-
|
|
183
|
-
### What the process generates
|
|
184
|
-
|
|
185
|
-
The process creates a complete plugin package directory:
|
|
186
|
-
|
|
187
|
-
| File | Description |
|
|
188
|
-
|------|-------------|
|
|
189
|
-
| `install.md` | Agent-readable installation instructions with numbered steps |
|
|
190
|
-
| `uninstall.md` | Reversal instructions for clean removal |
|
|
191
|
-
| `configure.md` | Configuration options table and adjustment instructions |
|
|
192
|
-
| `install-process.js` | *(optional)* Automated babysitter process for complex install steps |
|
|
193
|
-
| `configure-process.js` | *(optional)* Automated configuration process |
|
|
194
|
-
| `process/main.js` | *(optional)* Main process the plugin contributes |
|
|
195
|
-
| `marketplace-entry.json` | Ready-to-use marketplace.json entry for publishing |
|
|
196
|
-
|
|
197
|
-
### Process phases
|
|
198
|
-
|
|
199
|
-
1. **Requirements Analysis** — Analyzes plugin purpose, prerequisites, config options, file structure
|
|
200
|
-
2. **Structure Design** — Plans directory layout and file inventory (with review breakpoint)
|
|
201
|
-
3. **Instruction Authoring** — Writes install.md, uninstall.md, configure.md
|
|
202
|
-
4. **Process Files** — Creates optional babysitter process files (install-process.js, configure-process.js, process/main.js)
|
|
203
|
-
5. **Validation** — Verifies package completeness, instruction quality, path correctness
|
|
204
|
-
6. **Marketplace Integration** — Generates marketplace.json entry for publishing
|
|
205
|
-
|
|
206
|
-
### Quick creation (without orchestration)
|
|
207
|
-
|
|
208
|
-
For simple plugins that only need instruction files, you can create the package manually following the structure below and the [Plugin Author Guide](docs/plugins/plugin-author-guide.md).
|
|
209
|
-
|
|
210
|
-
## Plugin Package Structure
|
|
211
|
-
|
|
212
|
-
```
|
|
213
|
-
my-plugin/
|
|
214
|
-
package.json # Optional (name field used as plugin ID, falls back to directory name)
|
|
215
|
-
install.md # Markdown instructions for installation
|
|
216
|
-
uninstall.md # Markdown instructions for removal
|
|
217
|
-
configure.md # Markdown instructions for configuration
|
|
218
|
-
install-process.js # Optional automated install process
|
|
219
|
-
uninstall-process.js # Optional automated uninstall process
|
|
220
|
-
configure-process.js # Optional automated configure process
|
|
221
|
-
migrations/ # Version migration files
|
|
222
|
-
1.0.0_to_1.1.0.md
|
|
223
|
-
1.1.0_to_2.0.0.js
|
|
224
|
-
process/ # Process definition files (collected recursively)
|
|
225
|
-
main.js
|
|
226
|
-
```
|
|
227
|
-
|
|
228
|
-
## All CLI Commands Summary
|
|
229
|
-
|
|
230
|
-
All commands accept `--json` for machine-readable output and `--global|--project`.
|
|
231
|
-
|
|
232
|
-
| Command | Required Flags | Description |
|
|
233
|
-
|---------|---------------|-------------|
|
|
234
|
-
| `plugin:add-marketplace` | `--marketplace-url`, `--global\|--project` [`--marketplace-path`, `--marketplace-branch`, `--force`] | Clone a marketplace repository |
|
|
235
|
-
| `plugin:update-marketplace` | `--marketplace-name`, `--global\|--project` [`--marketplace-branch`] | Pull latest marketplace changes (optionally switch branch) |
|
|
236
|
-
| `plugin:list-plugins` | `--marketplace-name`, `--global\|--project` | List available plugins in a marketplace |
|
|
237
|
-
| `plugin:install` | `--plugin-name`, `--marketplace-name`, `--global\|--project` | Get install instructions for a plugin |
|
|
238
|
-
| `plugin:uninstall` | `--plugin-name`, `--marketplace-name`, `--global\|--project` | Get uninstall instructions for a plugin |
|
|
239
|
-
| `plugin:update` | `--plugin-name`, `--marketplace-name`, `--global\|--project` | Resolve migration chain and get update instructions |
|
|
240
|
-
| `plugin:configure` | `--plugin-name`, `--marketplace-name`, `--global\|--project` | Get configuration instructions for a plugin |
|
|
241
|
-
| `plugin:list-installed` | `--global\|--project` | List all installed plugins |
|
|
242
|
-
| `plugin:update-registry` | `--plugin-name`, `--plugin-version`, `--marketplace-name`, `--global\|--project` | Register or update a plugin entry |
|
|
243
|
-
| `plugin:remove-from-registry` | `--plugin-name`, `--global\|--project` | Remove a plugin entry from the registry |
|
|
244
|
-
|
|
245
|
-
## After Plugin Work: Contribute Back
|
|
246
|
-
|
|
247
|
-
After working with plugins, prompt the user to share improvements or report issues:
|
|
248
|
-
|
|
249
|
-
- **Improved a plugin's install/configure/uninstall instructions**: `/babysitter:contrib library contribution: improved [plugin-name] [install|configure|uninstall] instructions`
|
|
250
|
-
- **Created a new plugin**: `/babysitter:contrib library contribution: new plugin [plugin-name] -- [description]`
|
|
251
|
-
- **Found a bug in a plugin or the plugin system**: `/babysitter:contrib bug report: [description, e.g. "plugin:update-registry fails when marketplace hasn't been cloned"]`
|
|
252
|
-
- **Plugin install/configure instructions were confusing or wrong**: `/babysitter:contrib bug report: [plugin-name] install instructions [description of what was wrong]`
|
|
253
|
-
- **Have an idea for a new plugin**: `/babysitter:contrib feature request: plugin idea -- [description]`
|
|
254
|
-
|
|
255
|
-
Even reporting that a plugin's instructions were unclear helps improve it for the next user.
|
|
1
|
+
---
|
|
2
|
+
description: deprecated alias for the Babysitter blueprints command. Use /babysitter:blueprints for marketplace installables.
|
|
3
|
+
argument-hint: Blueprint action and options.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
This command is a deprecated alias for `/babysitter:blueprints`.
|
|
7
|
+
|
|
8
|
+
For Babysitter marketplace installables, use blueprints terminology and the `babysitter blueprint:*` CLI command family:
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
babysitter blueprint:list-installed --global|--project [--json]
|
|
12
|
+
babysitter blueprint:add-marketplace --marketplace-url <url> [--marketplace-path <relative-path>] --global|--project [--json]
|
|
13
|
+
babysitter blueprint:list-plugins --marketplace-name <name> --global|--project [--json]
|
|
14
|
+
babysitter blueprint:install --plugin-name <name> [--marketplace-name <mp>] --global|--project [--json]
|
|
15
|
+
babysitter blueprint:update --plugin-name <name> [--marketplace-name <mp>] --global|--project [--json]
|
|
16
|
+
babysitter blueprint:configure --plugin-name <name> [--marketplace-name <mp>] --global|--project [--json]
|
|
17
|
+
babysitter blueprint:uninstall --plugin-name <name> [--marketplace-name <mp>] --global|--project [--json]
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
The `--plugin-name` flag remains for CLI compatibility with existing marketplace manifests. Describe the installable as a blueprint in user-facing text.
|
|
21
|
+
|
|
22
|
+
Agent harness plugins are not renamed. `CLAUDE_PLUGIN_ROOT`, `PI_PLUGIN_ROOT`, `.claude/plugins/`, hooks-mux, extension-mux, and agent plugin manifests remain plugin concepts.
|