@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.
Files changed (79) hide show
  1. package/README.md +60 -60
  2. package/agents/builder.md +16 -16
  3. package/agents/coordinator.md +57 -57
  4. package/agents/issue-reviews.md +71 -0
  5. package/agents/lead.md +43 -42
  6. package/agents/merger.md +15 -15
  7. package/agents/monitor.md +37 -37
  8. package/agents/pr-reviews.md +60 -0
  9. package/agents/prioritize.md +110 -0
  10. package/agents/release.md +56 -0
  11. package/agents/reviewer.md +15 -15
  12. package/agents/scout.md +18 -18
  13. package/agents/supervisor.md +78 -78
  14. package/package.json +1 -1
  15. package/src/agents/hooks-deployer.test.ts +23 -26
  16. package/src/agents/hooks-deployer.ts +9 -5
  17. package/src/agents/overlay.test.ts +5 -5
  18. package/src/agents/overlay.ts +11 -11
  19. package/src/commands/agents.ts +7 -6
  20. package/src/commands/clean.ts +5 -5
  21. package/src/commands/completions.test.ts +10 -10
  22. package/src/commands/completions.ts +26 -28
  23. package/src/commands/coordinator.test.ts +2 -2
  24. package/src/commands/coordinator.ts +15 -15
  25. package/src/commands/costs.ts +1 -1
  26. package/src/commands/dashboard.ts +8 -8
  27. package/src/commands/doctor.ts +4 -4
  28. package/src/commands/errors.ts +1 -1
  29. package/src/commands/feed.ts +1 -1
  30. package/src/commands/group.ts +3 -3
  31. package/src/commands/hooks.test.ts +7 -7
  32. package/src/commands/hooks.ts +7 -7
  33. package/src/commands/init.test.ts +6 -2
  34. package/src/commands/init.ts +19 -19
  35. package/src/commands/inspect.ts +19 -19
  36. package/src/commands/log.ts +3 -3
  37. package/src/commands/logs.ts +1 -1
  38. package/src/commands/mail.test.ts +2 -2
  39. package/src/commands/mail.ts +28 -11
  40. package/src/commands/merge.ts +7 -7
  41. package/src/commands/metrics.test.ts +1 -1
  42. package/src/commands/metrics.ts +2 -2
  43. package/src/commands/monitor.test.ts +5 -5
  44. package/src/commands/monitor.ts +6 -6
  45. package/src/commands/nudge.ts +1 -1
  46. package/src/commands/prime.test.ts +1 -1
  47. package/src/commands/prime.ts +2 -2
  48. package/src/commands/replay.ts +1 -1
  49. package/src/commands/run.ts +2 -2
  50. package/src/commands/sling.test.ts +84 -2
  51. package/src/commands/sling.ts +100 -12
  52. package/src/commands/spec.ts +8 -9
  53. package/src/commands/status.test.ts +2 -2
  54. package/src/commands/status.ts +11 -10
  55. package/src/commands/stop.ts +2 -2
  56. package/src/commands/supervisor.test.ts +1 -1
  57. package/src/commands/supervisor.ts +7 -7
  58. package/src/commands/trace.test.ts +2 -2
  59. package/src/commands/trace.ts +4 -4
  60. package/src/commands/watch.ts +5 -5
  61. package/src/commands/worktree.test.ts +3 -3
  62. package/src/commands/worktree.ts +11 -11
  63. package/src/doctor/dependencies.test.ts +5 -5
  64. package/src/doctor/dependencies.ts +2 -2
  65. package/src/doctor/logs.ts +1 -1
  66. package/src/doctor/structure.test.ts +1 -1
  67. package/src/doctor/structure.ts +1 -1
  68. package/src/doctor/version.test.ts +3 -3
  69. package/src/doctor/version.ts +1 -1
  70. package/src/e2e/init-sling-lifecycle.test.ts +6 -2
  71. package/src/index.ts +11 -9
  72. package/src/mail/client.test.ts +1 -1
  73. package/src/mail/client.ts +2 -2
  74. package/src/mulch/client.ts +1 -1
  75. package/src/worktree/tmux.test.ts +11 -6
  76. package/src/worktree/tmux.ts +21 -20
  77. package/templates/CLAUDE.md.tmpl +27 -27
  78. package/templates/hooks.json.tmpl +15 -11
  79. 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; overstory prime --agent {{AGENT_NAME}}"
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; overstory mail check --inject --agent {{AGENT_NAME}}"
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; overstory log tool-start --agent {{AGENT_NAME}} --stdin"
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 overstory merge to integrate changes, push manually when ready\"}'; exit 0; fi;"
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; overstory log tool-end --agent {{AGENT_NAME}} --stdin"
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; overstory mail check --inject --agent {{AGENT_NAME}} --debounce 500"
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; overstory mail check --inject --agent {{AGENT_NAME}} --debounce 30000"
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 mulch diff HEAD~1 >/dev/null 2>&1 || true; fi; exit 0;"
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; overstory log session-end --agent {{AGENT_NAME}} --stdin"
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; mulch learn"
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; overstory prime --agent {{AGENT_NAME}} --compact"
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 `overstory sling`. Manual edits will be
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 `overstory mail` for all communication. Your address is **{{AGENT_NAME}}**.
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
- overstory mail check --agent {{AGENT_NAME}}
57
+ ov mail check --agent {{AGENT_NAME}}
58
58
 
59
59
  # Send a status update to your parent
60
- overstory mail send --to {{PARENT_AGENT}} --subject "status" \
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
- overstory mail send --to {{PARENT_AGENT}} --subject "question" \
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
- overstory mail send --to {{PARENT_AGENT}} --subject "done" \
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
- overstory mail reply <message-id> --body "Your reply" --agent {{AGENT_NAME}}
72
+ ov mail reply <message-id> --body "Your reply" --agent {{AGENT_NAME}}
73
73
  ```
74
74
 
75
75
  ## Spawning Sub-Workers