@a5c-ai/babysitter-github 0.1.5-staging.d89c1dea → 0.1.5-staging.dbfc37c4
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/package.json +2 -2
- package/skills/babysit/SKILL.md +8 -11
- package/versions.json +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@a5c-ai/babysitter-github",
|
|
3
|
-
"version": "0.1.5-staging.
|
|
3
|
+
"version": "0.1.5-staging.dbfc37c4",
|
|
4
4
|
"description": "Babysitter orchestration plugin for GitHub Copilot CLI with lifecycle hooks and SDK-managed process-library bootstrapping",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "node scripts/sync-command-surfaces.js --check && node test/cloud-agent-install.test.js",
|
|
@@ -45,6 +45,6 @@
|
|
|
45
45
|
},
|
|
46
46
|
"homepage": "https://github.com/a5c-ai/babysitter/tree/main/plugins/babysitter-github#readme",
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@a5c-ai/babysitter-sdk": "0.0.188-staging.
|
|
48
|
+
"@a5c-ai/babysitter-sdk": "0.0.188-staging.dbfc37c4"
|
|
49
49
|
}
|
|
50
50
|
}
|
package/skills/babysit/SKILL.md
CHANGED
|
@@ -18,24 +18,21 @@ Read the SDK version from `versions.json` to ensure version compatibility:
|
|
|
18
18
|
|
|
19
19
|
```bash
|
|
20
20
|
SDK_VERSION=$(node -e "try{console.log(JSON.parse(require('fs').readFileSync('${PLUGIN_ROOT}/versions.json','utf8')).sdkVersion||'latest')}catch{console.log('latest')}")
|
|
21
|
-
|
|
22
|
-
# sudo is depending on the env and system
|
|
21
|
+
CLI="npx -y @a5c-ai/babysitter-sdk@$SDK_VERSION"
|
|
23
22
|
```
|
|
24
23
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
**Alternatively, use the CLI alias:** `CLI="npx -y @a5c-ai/babysitter-sdk@$SDK_VERSION"`
|
|
24
|
+
If `babysitter` is already installed globally at the correct version, you may use `CLI="babysitter"` instead.
|
|
28
25
|
|
|
29
26
|
### jq
|
|
30
27
|
|
|
31
|
-
|
|
28
|
+
Make sure `jq` is installed and available in the path. If not, install it.
|
|
32
29
|
|
|
33
30
|
## Instructions
|
|
34
31
|
|
|
35
32
|
Run the following command to get full orchestration instructions:
|
|
36
33
|
|
|
37
34
|
```bash
|
|
38
|
-
|
|
35
|
+
$CLI instructions:babysit-skill --harness github-copilot --json
|
|
39
36
|
```
|
|
40
37
|
|
|
41
38
|
Follow the instructions returned by the command above to orchestrate the run.
|
|
@@ -49,9 +46,9 @@ is ignored and cannot block or restart the session.
|
|
|
49
46
|
Therefore, you MUST use **in-turn iteration**: run the full orchestration loop
|
|
50
47
|
within a single session turn. The pattern is:
|
|
51
48
|
|
|
52
|
-
1.
|
|
49
|
+
1. `$CLI run:iterate --json` -- get pending actions
|
|
53
50
|
2. For each pending action: execute it (run tasks, post results via `task:post`)
|
|
54
|
-
3.
|
|
51
|
+
3. `$CLI run:iterate --json` -- check for more pending actions
|
|
55
52
|
4. Repeat steps 2-3 until run completes or reaches a breakpoint requiring user input
|
|
56
53
|
5. If a breakpoint requires user input, ask the user and post the response, then continue iterating
|
|
57
54
|
|
|
@@ -63,7 +60,7 @@ the orchestration loop. The agent drives the loop directly by calling
|
|
|
63
60
|
|
|
64
61
|
```bash
|
|
65
62
|
# Initial iterate
|
|
66
|
-
RESULT=$(
|
|
63
|
+
RESULT=$($CLI run:iterate --run-id "$RUN_ID" --json)
|
|
67
64
|
STATUS=$(echo "$RESULT" | jq -r '.status')
|
|
68
65
|
|
|
69
66
|
while [ "$STATUS" != "completed" ] && [ "$STATUS" != "failed" ]; do
|
|
@@ -71,7 +68,7 @@ while [ "$STATUS" != "completed" ] && [ "$STATUS" != "failed" ]; do
|
|
|
71
68
|
# ... execute tasks, post results ...
|
|
72
69
|
|
|
73
70
|
# Iterate again
|
|
74
|
-
RESULT=$(
|
|
71
|
+
RESULT=$($CLI run:iterate --run-id "$RUN_ID" --json)
|
|
75
72
|
STATUS=$(echo "$RESULT" | jq -r '.status')
|
|
76
73
|
done
|
|
77
74
|
```
|
package/versions.json
CHANGED