@a5c-ai/babysitter-omp 5.0.1-staging.d7c7b44ac4e1 → 5.0.1-staging.d8bdfcceaf4a
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 +20 -3
- package/bin/install-shared.cjs +1 -1
- package/commands/call.md +5 -1
- package/commands/cleanup.md +30 -8
- package/commands/help.md +2 -1
- package/commands/observe.md +6 -1
- package/commands/yolo.md +11 -7
- package/extensions/i18n.ts +45 -0
- package/extensions/index.ts +9 -2
- package/package.json +1 -1
- package/scripts/team-install.cjs +1 -1
- package/skills/babysit/SKILL.md +3 -2
- package/skills/call/SKILL.md +5 -1
- package/skills/cleanup/SKILL.md +30 -8
- package/skills/help/SKILL.md +2 -1
- package/skills/observe/SKILL.md +6 -1
- package/skills/yolo/SKILL.md +5 -1
- package/versions.json +2 -2
package/README.md
CHANGED
|
@@ -10,7 +10,23 @@ This is a thin oh-my-pi package:
|
|
|
10
10
|
|
|
11
11
|
## Installation
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
Install the Babysitter CLI once when using the SDK helper:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npm install -g @a5c-ai/babysitter
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Recommended for automation:
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
# Global install
|
|
23
|
+
babysitter harness:install-plugin oh-my-pi
|
|
24
|
+
|
|
25
|
+
# Workspace install
|
|
26
|
+
babysitter harness:install-plugin oh-my-pi --workspace /path/to/repo
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Native oh-my-pi plugin install:
|
|
14
30
|
|
|
15
31
|
```bash
|
|
16
32
|
omp plugin install @a5c-ai/babysitter-omp
|
|
@@ -22,10 +38,11 @@ Verify the plugin is available:
|
|
|
22
38
|
babysitter harness:discover --json
|
|
23
39
|
```
|
|
24
40
|
|
|
25
|
-
|
|
41
|
+
Published package installer:
|
|
26
42
|
|
|
27
43
|
```bash
|
|
28
|
-
npx @a5c-ai/babysitter-omp install --
|
|
44
|
+
npx --yes @a5c-ai/babysitter-omp install --global
|
|
45
|
+
npx --yes @a5c-ai/babysitter-omp install --workspace /path/to/repo
|
|
29
46
|
```
|
|
30
47
|
|
|
31
48
|
Removal:
|
package/bin/install-shared.cjs
CHANGED
|
@@ -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.d8bdfcceaf4a",
|
|
108
108
|
author: { name: "a5c.ai" },
|
|
109
109
|
};
|
|
110
110
|
if (idx >= 0) marketplace.plugins[idx] = entry;
|
package/commands/call.md
CHANGED
|
@@ -4,4 +4,8 @@ argument-hint: Specific instructions for the run.
|
|
|
4
4
|
allowed-tools: Read, Grep, Write, Task, Bash, Edit, Grep, Glob, WebFetch, WebSearch, Search, AskUserQuestion, TodoWrite, TodoRead, Skill, BashOutput, KillShell, MultiEdit, LS
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
Invoke the babysitter:babysit skill (using the Skill tool) and follow its instructions (SKILL.md).
|
|
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
|
+
|
|
9
|
+
User arguments for this command:
|
|
10
|
+
|
|
11
|
+
$ARGUMENTS
|
package/commands/cleanup.md
CHANGED
|
@@ -10,11 +10,33 @@ Create and run a cleanup process using the process at `skills\babysit\process\cr
|
|
|
10
10
|
|
|
11
11
|
Implementation notes (for the process):
|
|
12
12
|
- Parse arguments for `--dry-run` flag (if present, set dryRun: true in inputs) and `--keep-days N` (default: 7)
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
-
|
|
18
|
-
-
|
|
19
|
-
-
|
|
20
|
-
-
|
|
13
|
+
|
|
14
|
+
CRITICAL: The cleanup MUST follow this exact phase order. Do NOT delete any run before Phase 2 completes.
|
|
15
|
+
|
|
16
|
+
Phase 1 — Scan:
|
|
17
|
+
- Scan .a5c/runs/ for all runs
|
|
18
|
+
- Classify each as terminal (completed/failed) or active (in-progress/created)
|
|
19
|
+
- Identify terminal runs older than the keep-days threshold as removal candidates
|
|
20
|
+
- Never mark active/in-progress runs for removal
|
|
21
|
+
- Count and report: total runs, terminal, active, removal candidates, disk usage
|
|
22
|
+
|
|
23
|
+
Phase 2 — Aggregate insights (BEFORE any deletion):
|
|
24
|
+
- For EVERY removal candidate, read its run.json and journal/ events
|
|
25
|
+
- Extract: processId, prompt, status, event count, created date, task summaries
|
|
26
|
+
- Group by process type and extract patterns (retry counts, convergence behavior, failure modes)
|
|
27
|
+
- Append a new dated section to docs/run-history-insights.md with:
|
|
28
|
+
- Summary statistics (runs removed, disk freed, runs retained)
|
|
29
|
+
- Run categories with counts and descriptions
|
|
30
|
+
- Key patterns observed (multi-batch convergence, retry behavior, etc.)
|
|
31
|
+
- What worked well / what didn't from the run data
|
|
32
|
+
- This file MUST be written and verified before proceeding to Phase 3
|
|
33
|
+
|
|
34
|
+
Phase 3 — Confirm removal:
|
|
35
|
+
- In interactive mode, show the user what will be removed via a breakpoint
|
|
36
|
+
- In non-interactive mode (yolo), proceed with defaults
|
|
37
|
+
- In dry-run mode, stop here and show what would be removed
|
|
38
|
+
|
|
39
|
+
Phase 4 — Remove:
|
|
40
|
+
- Delete the terminal runs older than keep-days threshold
|
|
41
|
+
- Identify and remove orphaned process files not referenced by remaining runs
|
|
42
|
+
- Show remaining run count and disk usage after cleanup
|
package/commands/help.md
CHANGED
|
@@ -233,7 +233,8 @@ SECONDARY COMMANDS
|
|
|
233
233
|
How it works: Runs npx @a5c-ai/babysitter-observer-dashboard@latest which watches
|
|
234
234
|
the .a5c/runs/ directory (or a parent directory containing multiple projects) and
|
|
235
235
|
serves a live dashboard. The process is blocking -- it runs until you stop it, and
|
|
236
|
-
it prints the local URL to share with the user.
|
|
236
|
+
it prints the local URL to share with the user. Do not use `babysitter observe`
|
|
237
|
+
as a fallback; the core Babysitter CLI does not expose that subcommand.
|
|
237
238
|
|
|
238
239
|
Example: /babysitter:observe
|
|
239
240
|
(opens browser showing all runs with live-updating task
|
package/commands/observe.md
CHANGED
|
@@ -7,6 +7,11 @@ allowed-tools: Read, Grep, Write, Task, Bash
|
|
|
7
7
|
Run the babysitter observer dashboard:
|
|
8
8
|
|
|
9
9
|
1. Determine the watch directory — this is usually the project's container directory (the parent of the project dir), or the current working directory if not specified.
|
|
10
|
-
2. Launch the dashboard: `npx -y @a5c-ai/babysitter-observer-dashboard@latest --watch-dir <dir
|
|
10
|
+
2. Launch the standalone dashboard package: `npx -y @a5c-ai/babysitter-observer-dashboard@latest --watch-dir <dir>`.
|
|
11
11
|
3. This is a blocking process — it will keep running until stopped.
|
|
12
12
|
4. Report the URL printed by the dashboard to the user, then open it in the browser.
|
|
13
|
+
|
|
14
|
+
Do not fall back to `babysitter observe`; the core Babysitter CLI does not expose
|
|
15
|
+
that subcommand. Some harness runtimes may provide a separate
|
|
16
|
+
`agent-platform observe` surface, but this skill uses the verified standalone
|
|
17
|
+
dashboard package.
|
package/commands/yolo.md
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Orchestrate a babysitter run. use this command to start babysitting a complex workflow in a non-interactive mode, without any user interaction or breakpoints in the 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
|
-
|
|
1
|
+
---
|
|
2
|
+
description: Orchestrate a babysitter run. use this command to start babysitting a complex workflow in a non-interactive mode, without any user interaction or breakpoints in the 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
|
+
Run the Babysitter orchestration instructions directly through the CLI, without any user interaction or breakpoints. In Claude Code, use Bash to run `babysitter instructions:babysit-skill --harness claude-code --no-interactive`; in Codex, run `babysitter instructions:babysit-skill --harness codex --no-interactive`; in other harnesses, use the same command with that harness id. 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.
|
|
8
|
+
|
|
9
|
+
User arguments for this command:
|
|
10
|
+
|
|
11
|
+
$ARGUMENTS
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
type Locale = "en" | "es" | "fr" | "pt-BR";
|
|
2
|
+
type Params = Record<string, string | number>;
|
|
3
|
+
|
|
4
|
+
const translations: Record<Exclude<Locale, "en">, Record<string, string>> = {
|
|
5
|
+
es: {
|
|
6
|
+
"command.doctor.description": "Abrir el diagnóstico de Babysitter",
|
|
7
|
+
"command.doctor.aliasDescription": "Alias de /doctor",
|
|
8
|
+
},
|
|
9
|
+
fr: {
|
|
10
|
+
"command.doctor.description": "Ouvrir le diagnostic Babysitter",
|
|
11
|
+
"command.doctor.aliasDescription": "Alias de /doctor",
|
|
12
|
+
},
|
|
13
|
+
"pt-BR": {
|
|
14
|
+
"command.doctor.description": "Abrir o diagnóstico do Babysitter",
|
|
15
|
+
"command.doctor.aliasDescription": "Alias para /doctor",
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
let currentLocale: Locale = "en";
|
|
20
|
+
|
|
21
|
+
export function initI18n(pi: { events?: { emit?: (event: string, payload: unknown) => void } }): void {
|
|
22
|
+
pi.events?.emit?.("pi-core/i18n/registerBundle", {
|
|
23
|
+
namespace: "babysitter-pi",
|
|
24
|
+
defaultLocale: "en",
|
|
25
|
+
locales: translations,
|
|
26
|
+
});
|
|
27
|
+
pi.events?.emit?.("pi-core/i18n/requestApi", {
|
|
28
|
+
onReady: (api: { getLocale?: () => string; onLocaleChange?: (cb: (locale: string) => void) => void }) => {
|
|
29
|
+
const locale = api.getLocale?.();
|
|
30
|
+
if (isLocale(locale)) currentLocale = locale;
|
|
31
|
+
api.onLocaleChange?.((next) => {
|
|
32
|
+
if (isLocale(next)) currentLocale = next;
|
|
33
|
+
});
|
|
34
|
+
},
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function t(key: string, fallback: string, params: Params = {}): string {
|
|
39
|
+
const template = currentLocale === "en" ? fallback : translations[currentLocale]?.[key] ?? fallback;
|
|
40
|
+
return template.replace(/\{(\w+)\}/g, (_, name) => String(params[name] ?? `{${name}}`));
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
function isLocale(locale: string | undefined): locale is Locale {
|
|
44
|
+
return locale === "en" || locale === "es" || locale === "fr" || locale === "pt-BR";
|
|
45
|
+
}
|
package/extensions/index.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ExtensionAPI } from "@oh-my-pi/pi-coding-agent";
|
|
2
2
|
import { execSync } from "child_process";
|
|
3
3
|
import * as path from "path";
|
|
4
|
+
import { initI18n, t } from "./extensions-i18n.js";
|
|
4
5
|
|
|
5
6
|
const PLUGIN_ROOT = path.resolve(__dirname, "..");
|
|
6
7
|
|
|
@@ -53,6 +54,8 @@ function runProxiedHook(
|
|
|
53
54
|
}
|
|
54
55
|
|
|
55
56
|
export default function activate(pi: ExtensionAPI): void {
|
|
57
|
+
initI18n(pi);
|
|
58
|
+
|
|
56
59
|
// ---------------------------------------------------------------------------
|
|
57
60
|
// Trigger session-start hook on activation
|
|
58
61
|
// ---------------------------------------------------------------------------
|
|
@@ -84,12 +87,16 @@ export default function activate(pi: ExtensionAPI): void {
|
|
|
84
87
|
};
|
|
85
88
|
|
|
86
89
|
pi.registerCommand(name, {
|
|
87
|
-
description:
|
|
90
|
+
description: name === "doctor"
|
|
91
|
+
? t("command.doctor.description", "Open the Babysitter doctor skill")
|
|
92
|
+
: `Open the Babysitter ${name} skill`,
|
|
88
93
|
handler: forward,
|
|
89
94
|
});
|
|
90
95
|
|
|
91
96
|
pi.registerCommand(`babysitter:${name}`, {
|
|
92
|
-
description:
|
|
97
|
+
description: name === "doctor"
|
|
98
|
+
? t("command.doctor.aliasDescription", "Alias for /doctor")
|
|
99
|
+
: `Alias for /${name}`,
|
|
93
100
|
handler: forward,
|
|
94
101
|
});
|
|
95
102
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@a5c-ai/babysitter-omp",
|
|
3
|
-
"version": "5.0.1-staging.
|
|
3
|
+
"version": "5.0.1-staging.d8bdfcceaf4a",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Orchestrate complex, multi-step workflows with event-sourced state management, hook-based extensibility, and human-in-the-loop approval — oh-my-pi",
|
|
6
6
|
"keywords": [
|
package/scripts/team-install.cjs
CHANGED
package/skills/babysit/SKILL.md
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: babysit
|
|
3
|
-
description:
|
|
3
|
+
description: >-
|
|
4
|
+
Execute via @babysitter. Use this skill when asked to babysit a task, do anything that is structured process-driven (even a loop) or whenever it is called explicitly. (babysit, babysitter, with a process, orchestrate, orchestrate a run, workflow, loop until, etc.)
|
|
4
5
|
---
|
|
5
6
|
|
|
6
7
|
# babysit
|
|
7
8
|
|
|
8
|
-
|
|
9
|
+
Follow the commands below exactly. but apply judgement and creativity to get the job done. no matter how small or simple the task may seem, you must use the babysitter SDK and run lifecycle to execute it. This is non-negotiable. If you are asked to do something that seems like it could be done with a simple tool call, you must still use the babysitter SDK to create a run, define tasks, execute them, and complete the run. This is how you will learn and demonstrate mastery of the babysitter system. Always follow the full process, even for trivial tasks.
|
|
9
10
|
|
|
10
11
|
## Dependencies
|
|
11
12
|
|
package/skills/call/SKILL.md
CHANGED
|
@@ -5,4 +5,8 @@ description: Orchestrate a babysitter run. use this command to start babysitting
|
|
|
5
5
|
|
|
6
6
|
# call
|
|
7
7
|
|
|
8
|
-
Invoke the babysitter:babysit skill (using the Skill tool) and follow its instructions (SKILL.md).
|
|
8
|
+
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.
|
|
9
|
+
|
|
10
|
+
User arguments for this command:
|
|
11
|
+
|
|
12
|
+
$ARGUMENTS
|
package/skills/cleanup/SKILL.md
CHANGED
|
@@ -11,11 +11,33 @@ Create and run a cleanup process using the process at `skills\babysit\process\cr
|
|
|
11
11
|
|
|
12
12
|
Implementation notes (for the process):
|
|
13
13
|
- Parse arguments for `--dry-run` flag (if present, set dryRun: true in inputs) and `--keep-days N` (default: 7)
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
-
|
|
19
|
-
-
|
|
20
|
-
-
|
|
21
|
-
-
|
|
14
|
+
|
|
15
|
+
CRITICAL: The cleanup MUST follow this exact phase order. Do NOT delete any run before Phase 2 completes.
|
|
16
|
+
|
|
17
|
+
Phase 1 — Scan:
|
|
18
|
+
- Scan .a5c/runs/ for all runs
|
|
19
|
+
- Classify each as terminal (completed/failed) or active (in-progress/created)
|
|
20
|
+
- Identify terminal runs older than the keep-days threshold as removal candidates
|
|
21
|
+
- Never mark active/in-progress runs for removal
|
|
22
|
+
- Count and report: total runs, terminal, active, removal candidates, disk usage
|
|
23
|
+
|
|
24
|
+
Phase 2 — Aggregate insights (BEFORE any deletion):
|
|
25
|
+
- For EVERY removal candidate, read its run.json and journal/ events
|
|
26
|
+
- Extract: processId, prompt, status, event count, created date, task summaries
|
|
27
|
+
- Group by process type and extract patterns (retry counts, convergence behavior, failure modes)
|
|
28
|
+
- Append a new dated section to docs/run-history-insights.md with:
|
|
29
|
+
- Summary statistics (runs removed, disk freed, runs retained)
|
|
30
|
+
- Run categories with counts and descriptions
|
|
31
|
+
- Key patterns observed (multi-batch convergence, retry behavior, etc.)
|
|
32
|
+
- What worked well / what didn't from the run data
|
|
33
|
+
- This file MUST be written and verified before proceeding to Phase 3
|
|
34
|
+
|
|
35
|
+
Phase 3 — Confirm removal:
|
|
36
|
+
- In interactive mode, show the user what will be removed via a breakpoint
|
|
37
|
+
- In non-interactive mode (yolo), proceed with defaults
|
|
38
|
+
- In dry-run mode, stop here and show what would be removed
|
|
39
|
+
|
|
40
|
+
Phase 4 — Remove:
|
|
41
|
+
- Delete the terminal runs older than keep-days threshold
|
|
42
|
+
- Identify and remove orphaned process files not referenced by remaining runs
|
|
43
|
+
- Show remaining run count and disk usage after cleanup
|
package/skills/help/SKILL.md
CHANGED
|
@@ -234,7 +234,8 @@ SECONDARY COMMANDS
|
|
|
234
234
|
How it works: Runs npx @a5c-ai/babysitter-observer-dashboard@latest which watches
|
|
235
235
|
the .a5c/runs/ directory (or a parent directory containing multiple projects) and
|
|
236
236
|
serves a live dashboard. The process is blocking -- it runs until you stop it, and
|
|
237
|
-
it prints the local URL to share with the user.
|
|
237
|
+
it prints the local URL to share with the user. Do not use `babysitter observe`
|
|
238
|
+
as a fallback; the core Babysitter CLI does not expose that subcommand.
|
|
238
239
|
|
|
239
240
|
Example: /babysitter:observe
|
|
240
241
|
(opens browser showing all runs with live-updating task
|
package/skills/observe/SKILL.md
CHANGED
|
@@ -8,6 +8,11 @@ description: Launch the babysitter observer dashboard. Installs and runs the rea
|
|
|
8
8
|
Run the babysitter observer dashboard:
|
|
9
9
|
|
|
10
10
|
1. Determine the watch directory — this is usually the project's container directory (the parent of the project dir), or the current working directory if not specified.
|
|
11
|
-
2. Launch the dashboard: `npx -y @a5c-ai/babysitter-observer-dashboard@latest --watch-dir <dir
|
|
11
|
+
2. Launch the standalone dashboard package: `npx -y @a5c-ai/babysitter-observer-dashboard@latest --watch-dir <dir>`.
|
|
12
12
|
3. This is a blocking process — it will keep running until stopped.
|
|
13
13
|
4. Report the URL printed by the dashboard to the user, then open it in the browser.
|
|
14
|
+
|
|
15
|
+
Do not fall back to `babysitter observe`; the core Babysitter CLI does not expose
|
|
16
|
+
that subcommand. Some harness runtimes may provide a separate
|
|
17
|
+
`agent-platform observe` surface, but this skill uses the verified standalone
|
|
18
|
+
dashboard package.
|
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. In Claude Code, use Bash to run `babysitter instructions:babysit-skill --harness claude-code --no-interactive`; in Codex, run `babysitter instructions:babysit-skill --harness codex --no-interactive`; in other harnesses, use the same command with that harness id. 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