@os-eco/overstory-cli 0.6.5 → 0.6.7
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 +60 -60
- package/agents/builder.md +16 -16
- package/agents/coordinator.md +57 -57
- package/agents/issue-reviews.md +71 -0
- package/agents/lead.md +43 -42
- package/agents/merger.md +15 -15
- package/agents/monitor.md +37 -37
- package/agents/pr-reviews.md +60 -0
- package/agents/prioritize.md +110 -0
- package/agents/release.md +56 -0
- package/agents/reviewer.md +15 -15
- package/agents/scout.md +18 -18
- package/agents/supervisor.md +78 -78
- package/package.json +1 -1
- package/src/agents/hooks-deployer.test.ts +23 -26
- package/src/agents/hooks-deployer.ts +9 -5
- package/src/agents/overlay.test.ts +5 -5
- package/src/agents/overlay.ts +11 -11
- package/src/commands/agents.ts +7 -6
- package/src/commands/clean.ts +5 -5
- package/src/commands/completions.test.ts +10 -10
- package/src/commands/completions.ts +26 -28
- package/src/commands/coordinator.test.ts +2 -2
- package/src/commands/coordinator.ts +15 -15
- package/src/commands/costs.ts +1 -1
- package/src/commands/dashboard.ts +8 -8
- package/src/commands/doctor.ts +4 -4
- package/src/commands/errors.ts +1 -1
- package/src/commands/feed.ts +1 -1
- package/src/commands/group.ts +3 -3
- package/src/commands/hooks.test.ts +7 -7
- package/src/commands/hooks.ts +7 -7
- package/src/commands/init.test.ts +6 -2
- package/src/commands/init.ts +19 -19
- package/src/commands/inspect.ts +19 -19
- package/src/commands/log.ts +3 -3
- package/src/commands/logs.ts +1 -1
- package/src/commands/mail.test.ts +2 -2
- package/src/commands/mail.ts +28 -11
- package/src/commands/merge.ts +7 -7
- package/src/commands/metrics.test.ts +1 -1
- package/src/commands/metrics.ts +2 -2
- package/src/commands/monitor.test.ts +5 -5
- package/src/commands/monitor.ts +6 -6
- package/src/commands/nudge.ts +1 -1
- package/src/commands/prime.test.ts +1 -1
- package/src/commands/prime.ts +2 -2
- package/src/commands/replay.ts +1 -1
- package/src/commands/run.ts +2 -2
- package/src/commands/sling.test.ts +84 -2
- package/src/commands/sling.ts +100 -12
- package/src/commands/spec.ts +8 -9
- package/src/commands/status.test.ts +2 -2
- package/src/commands/status.ts +11 -10
- package/src/commands/stop.ts +2 -2
- package/src/commands/supervisor.test.ts +1 -1
- package/src/commands/supervisor.ts +7 -7
- package/src/commands/trace.test.ts +2 -2
- package/src/commands/trace.ts +4 -4
- package/src/commands/watch.ts +5 -5
- package/src/commands/worktree.test.ts +3 -3
- package/src/commands/worktree.ts +11 -11
- package/src/doctor/dependencies.test.ts +5 -5
- package/src/doctor/dependencies.ts +2 -2
- package/src/doctor/logs.ts +1 -1
- package/src/doctor/structure.test.ts +1 -1
- package/src/doctor/structure.ts +1 -1
- package/src/doctor/version.test.ts +3 -3
- package/src/doctor/version.ts +1 -1
- package/src/e2e/init-sling-lifecycle.test.ts +6 -2
- package/src/index.ts +11 -9
- package/src/mail/client.test.ts +1 -1
- package/src/mail/client.ts +2 -2
- package/src/mulch/client.ts +1 -1
- package/src/worktree/tmux.test.ts +11 -6
- package/src/worktree/tmux.ts +21 -20
- package/templates/CLAUDE.md.tmpl +27 -27
- package/templates/hooks.json.tmpl +15 -11
- package/templates/overlay.md.tmpl +7 -7
|
@@ -6,7 +6,11 @@
|
|
|
6
6
|
"hooks": [
|
|
7
7
|
{
|
|
8
8
|
"type": "command",
|
|
9
|
-
"command": "[ -z \"$OVERSTORY_AGENT_NAME\" ] && exit 0;
|
|
9
|
+
"command": "[ -z \"$OVERSTORY_AGENT_NAME\" ] && exit 0; ov prime --agent {{AGENT_NAME}}"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"type": "command",
|
|
13
|
+
"command": "[ -z \"$OVERSTORY_AGENT_NAME\" ] && exit 0; ov mail check --inject --agent {{AGENT_NAME}}"
|
|
10
14
|
}
|
|
11
15
|
]
|
|
12
16
|
}
|
|
@@ -17,7 +21,7 @@
|
|
|
17
21
|
"hooks": [
|
|
18
22
|
{
|
|
19
23
|
"type": "command",
|
|
20
|
-
"command": "[ -z \"$OVERSTORY_AGENT_NAME\" ] && exit 0;
|
|
24
|
+
"command": "[ -z \"$OVERSTORY_AGENT_NAME\" ] && exit 0; ov mail check --inject --agent {{AGENT_NAME}}"
|
|
21
25
|
}
|
|
22
26
|
]
|
|
23
27
|
}
|
|
@@ -28,7 +32,7 @@
|
|
|
28
32
|
"hooks": [
|
|
29
33
|
{
|
|
30
34
|
"type": "command",
|
|
31
|
-
"command": "[ -z \"$OVERSTORY_AGENT_NAME\" ] && exit 0;
|
|
35
|
+
"command": "[ -z \"$OVERSTORY_AGENT_NAME\" ] && exit 0; ov log tool-start --agent {{AGENT_NAME}} --stdin"
|
|
32
36
|
}
|
|
33
37
|
]
|
|
34
38
|
},
|
|
@@ -37,7 +41,7 @@
|
|
|
37
41
|
"hooks": [
|
|
38
42
|
{
|
|
39
43
|
"type": "command",
|
|
40
|
-
"command": "read -r INPUT; CMD=$(echo \"$INPUT\" | sed 's/.*\"command\": *\"\\([^\"]*\\)\".*/\\1/'); if echo \"$CMD\" | grep -qE '\\bgit\\s+push\\b'; then echo '{\"decision\":\"block\",\"reason\":\"git push is blocked — use
|
|
44
|
+
"command": "read -r INPUT; CMD=$(echo \"$INPUT\" | sed 's/.*\"command\": *\"\\([^\"]*\\)\".*/\\1/'); if echo \"$CMD\" | grep -qE '\\bgit\\s+push\\b'; then echo '{\"decision\":\"block\",\"reason\":\"git push is blocked — use ov merge to integrate changes, push manually when ready\"}'; exit 0; fi;"
|
|
41
45
|
}
|
|
42
46
|
]
|
|
43
47
|
}
|
|
@@ -48,11 +52,11 @@
|
|
|
48
52
|
"hooks": [
|
|
49
53
|
{
|
|
50
54
|
"type": "command",
|
|
51
|
-
"command": "[ -z \"$OVERSTORY_AGENT_NAME\" ] && exit 0;
|
|
55
|
+
"command": "[ -z \"$OVERSTORY_AGENT_NAME\" ] && exit 0; ov log tool-end --agent {{AGENT_NAME}} --stdin"
|
|
52
56
|
},
|
|
53
57
|
{
|
|
54
58
|
"type": "command",
|
|
55
|
-
"command": "[ -z \"$OVERSTORY_AGENT_NAME\" ] && exit 0;
|
|
59
|
+
"command": "[ -z \"$OVERSTORY_AGENT_NAME\" ] && exit 0; ov mail check --inject --agent {{AGENT_NAME}} --debounce 500"
|
|
56
60
|
}
|
|
57
61
|
]
|
|
58
62
|
},
|
|
@@ -61,7 +65,7 @@
|
|
|
61
65
|
"hooks": [
|
|
62
66
|
{
|
|
63
67
|
"type": "command",
|
|
64
|
-
"command": "[ -z \"$OVERSTORY_AGENT_NAME\" ] && exit 0;
|
|
68
|
+
"command": "[ -z \"$OVERSTORY_AGENT_NAME\" ] && exit 0; ov mail check --inject --agent {{AGENT_NAME}} --debounce 30000"
|
|
65
69
|
}
|
|
66
70
|
]
|
|
67
71
|
},
|
|
@@ -70,7 +74,7 @@
|
|
|
70
74
|
"hooks": [
|
|
71
75
|
{
|
|
72
76
|
"type": "command",
|
|
73
|
-
"command": "[ -z \"$OVERSTORY_AGENT_NAME\" ] && exit 0; read -r INPUT; if echo \"$INPUT\" | grep -qE '\\bgit\\s+commit\\b'; then
|
|
77
|
+
"command": "[ -z \"$OVERSTORY_AGENT_NAME\" ] && exit 0; read -r INPUT; if echo \"$INPUT\" | grep -qE '\\bgit\\s+commit\\b'; then ml diff HEAD~1 >/dev/null 2>&1 || true; fi; exit 0;"
|
|
74
78
|
}
|
|
75
79
|
]
|
|
76
80
|
}
|
|
@@ -81,11 +85,11 @@
|
|
|
81
85
|
"hooks": [
|
|
82
86
|
{
|
|
83
87
|
"type": "command",
|
|
84
|
-
"command": "[ -z \"$OVERSTORY_AGENT_NAME\" ] && exit 0;
|
|
88
|
+
"command": "[ -z \"$OVERSTORY_AGENT_NAME\" ] && exit 0; ov log session-end --agent {{AGENT_NAME}} --stdin"
|
|
85
89
|
},
|
|
86
90
|
{
|
|
87
91
|
"type": "command",
|
|
88
|
-
"command": "[ -z \"$OVERSTORY_AGENT_NAME\" ] && exit 0;
|
|
92
|
+
"command": "[ -z \"$OVERSTORY_AGENT_NAME\" ] && exit 0; ml learn"
|
|
89
93
|
}
|
|
90
94
|
]
|
|
91
95
|
}
|
|
@@ -96,7 +100,7 @@
|
|
|
96
100
|
"hooks": [
|
|
97
101
|
{
|
|
98
102
|
"type": "command",
|
|
99
|
-
"command": "[ -z \"$OVERSTORY_AGENT_NAME\" ] && exit 0;
|
|
103
|
+
"command": "[ -z \"$OVERSTORY_AGENT_NAME\" ] && exit 0; ov prime --agent {{AGENT_NAME}} --compact"
|
|
100
104
|
}
|
|
101
105
|
]
|
|
102
106
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# DO NOT EDIT — Auto-generated by overstory
|
|
2
|
-
# This overlay was written by `
|
|
2
|
+
# This overlay was written by `ov sling`. Manual edits will be
|
|
3
3
|
# overwritten on the next spawn. Modify the template at
|
|
4
4
|
# templates/overlay.md.tmpl in the overstory repo instead.
|
|
5
5
|
|
|
@@ -50,26 +50,26 @@ Prime relevant domain knowledge before starting work:
|
|
|
50
50
|
|
|
51
51
|
## Communication
|
|
52
52
|
|
|
53
|
-
Use `
|
|
53
|
+
Use `ov mail` for all communication. Your address is **{{AGENT_NAME}}**.
|
|
54
54
|
|
|
55
55
|
```bash
|
|
56
56
|
# Check your inbox (do this regularly)
|
|
57
|
-
|
|
57
|
+
ov mail check --agent {{AGENT_NAME}}
|
|
58
58
|
|
|
59
59
|
# Send a status update to your parent
|
|
60
|
-
|
|
60
|
+
ov mail send --to {{PARENT_AGENT}} --subject "status" \
|
|
61
61
|
--body "Progress update here" --type status --agent {{AGENT_NAME}}
|
|
62
62
|
|
|
63
63
|
# Ask a question
|
|
64
|
-
|
|
64
|
+
ov mail send --to {{PARENT_AGENT}} --subject "question" \
|
|
65
65
|
--body "Your question here" --type question --priority high --agent {{AGENT_NAME}}
|
|
66
66
|
|
|
67
67
|
# Report completion
|
|
68
|
-
|
|
68
|
+
ov mail send --to {{PARENT_AGENT}} --subject "done" \
|
|
69
69
|
--body "Summary of what was done" --type result --agent {{AGENT_NAME}}
|
|
70
70
|
|
|
71
71
|
# Reply to a message
|
|
72
|
-
|
|
72
|
+
ov mail reply <message-id> --body "Your reply" --agent {{AGENT_NAME}}
|
|
73
73
|
```
|
|
74
74
|
|
|
75
75
|
## Spawning Sub-Workers
|