@cluesmith/codev 3.0.0-rc.8 → 3.0.0-rc.9

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 (188) hide show
  1. package/bin/af.js +2 -2
  2. package/bin/afx.js +8 -0
  3. package/bin/consult.js +2 -1
  4. package/bin/team.js +2 -1
  5. package/dashboard/dist/assets/{index-nr0cXxtf.css → index-Bs8I7N2s.css} +1 -1
  6. package/dashboard/dist/assets/{index-CTrlY11L.js → index-DleIqu7L.js} +32 -32
  7. package/dashboard/dist/assets/index-DleIqu7L.js.map +1 -0
  8. package/dashboard/dist/index.html +2 -2
  9. package/dist/agent-farm/cli.js +12 -12
  10. package/dist/agent-farm/cli.js.map +1 -1
  11. package/dist/agent-farm/commands/architect.d.ts +4 -4
  12. package/dist/agent-farm/commands/architect.d.ts.map +1 -1
  13. package/dist/agent-farm/commands/architect.js +23 -12
  14. package/dist/agent-farm/commands/architect.js.map +1 -1
  15. package/dist/agent-farm/commands/attach.js +8 -8
  16. package/dist/agent-farm/commands/attach.js.map +1 -1
  17. package/dist/agent-farm/commands/cron.js +1 -1
  18. package/dist/agent-farm/commands/cron.js.map +1 -1
  19. package/dist/agent-farm/commands/db.d.ts +3 -3
  20. package/dist/agent-farm/commands/db.js +4 -4
  21. package/dist/agent-farm/commands/db.js.map +1 -1
  22. package/dist/agent-farm/commands/open.js +2 -2
  23. package/dist/agent-farm/commands/open.js.map +1 -1
  24. package/dist/agent-farm/commands/rename.js +1 -1
  25. package/dist/agent-farm/commands/rename.js.map +1 -1
  26. package/dist/agent-farm/commands/send.js +3 -3
  27. package/dist/agent-farm/commands/send.js.map +1 -1
  28. package/dist/agent-farm/commands/shell.js +3 -3
  29. package/dist/agent-farm/commands/shell.js.map +1 -1
  30. package/dist/agent-farm/commands/spawn-roles.d.ts +1 -1
  31. package/dist/agent-farm/commands/spawn-roles.js +1 -1
  32. package/dist/agent-farm/commands/spawn-worktree.d.ts +1 -1
  33. package/dist/agent-farm/commands/spawn-worktree.d.ts.map +1 -1
  34. package/dist/agent-farm/commands/spawn-worktree.js +80 -13
  35. package/dist/agent-farm/commands/spawn-worktree.js.map +1 -1
  36. package/dist/agent-farm/commands/spawn.d.ts +6 -6
  37. package/dist/agent-farm/commands/spawn.d.ts.map +1 -1
  38. package/dist/agent-farm/commands/spawn.js +42 -23
  39. package/dist/agent-farm/commands/spawn.js.map +1 -1
  40. package/dist/agent-farm/commands/status.d.ts.map +1 -1
  41. package/dist/agent-farm/commands/status.js +43 -2
  42. package/dist/agent-farm/commands/status.js.map +1 -1
  43. package/dist/agent-farm/commands/team-update.d.ts +1 -1
  44. package/dist/agent-farm/commands/team-update.js +1 -1
  45. package/dist/agent-farm/commands/team.d.ts +1 -1
  46. package/dist/agent-farm/commands/team.js +1 -1
  47. package/dist/agent-farm/commands/tower-cloud.d.ts +2 -2
  48. package/dist/agent-farm/commands/tower-cloud.js +3 -3
  49. package/dist/agent-farm/commands/tower-cloud.js.map +1 -1
  50. package/dist/agent-farm/commands/tower.js +2 -2
  51. package/dist/agent-farm/commands/tower.js.map +1 -1
  52. package/dist/agent-farm/lib/cloud-config.js +2 -2
  53. package/dist/agent-farm/lib/cloud-config.js.map +1 -1
  54. package/dist/agent-farm/lib/tunnel-client.js +1 -1
  55. package/dist/agent-farm/lib/tunnel-client.js.map +1 -1
  56. package/dist/agent-farm/servers/message-write.d.ts +24 -0
  57. package/dist/agent-farm/servers/message-write.d.ts.map +1 -0
  58. package/dist/agent-farm/servers/message-write.js +63 -0
  59. package/dist/agent-farm/servers/message-write.js.map +1 -0
  60. package/dist/agent-farm/servers/overview.d.ts +2 -0
  61. package/dist/agent-farm/servers/overview.d.ts.map +1 -1
  62. package/dist/agent-farm/servers/overview.js +2 -0
  63. package/dist/agent-farm/servers/overview.js.map +1 -1
  64. package/dist/agent-farm/servers/send-buffer.d.ts +4 -3
  65. package/dist/agent-farm/servers/send-buffer.d.ts.map +1 -1
  66. package/dist/agent-farm/servers/send-buffer.js +7 -4
  67. package/dist/agent-farm/servers/send-buffer.js.map +1 -1
  68. package/dist/agent-farm/servers/tower-cron-parser.js +1 -1
  69. package/dist/agent-farm/servers/tower-cron-parser.js.map +1 -1
  70. package/dist/agent-farm/servers/tower-cron.d.ts.map +1 -1
  71. package/dist/agent-farm/servers/tower-cron.js +4 -5
  72. package/dist/agent-farm/servers/tower-cron.js.map +1 -1
  73. package/dist/agent-farm/servers/tower-instances.js +3 -3
  74. package/dist/agent-farm/servers/tower-instances.js.map +1 -1
  75. package/dist/agent-farm/servers/tower-routes.d.ts.map +1 -1
  76. package/dist/agent-farm/servers/tower-routes.js +9 -16
  77. package/dist/agent-farm/servers/tower-routes.js.map +1 -1
  78. package/dist/agent-farm/servers/tower-terminals.d.ts +2 -2
  79. package/dist/agent-farm/servers/tower-terminals.d.ts.map +1 -1
  80. package/dist/agent-farm/servers/tower-terminals.js +47 -18
  81. package/dist/agent-farm/servers/tower-terminals.js.map +1 -1
  82. package/dist/agent-farm/servers/tower-tunnel.js +2 -2
  83. package/dist/agent-farm/servers/tower-tunnel.js.map +1 -1
  84. package/dist/agent-farm/servers/tower-utils.d.ts +9 -6
  85. package/dist/agent-farm/servers/tower-utils.d.ts.map +1 -1
  86. package/dist/agent-farm/servers/tower-utils.js +12 -6
  87. package/dist/agent-farm/servers/tower-utils.js.map +1 -1
  88. package/dist/agent-farm/types.d.ts +9 -0
  89. package/dist/agent-farm/types.d.ts.map +1 -1
  90. package/dist/agent-farm/utils/config.d.ts +11 -0
  91. package/dist/agent-farm/utils/config.d.ts.map +1 -1
  92. package/dist/agent-farm/utils/config.js +21 -0
  93. package/dist/agent-farm/utils/config.js.map +1 -1
  94. package/dist/agent-farm/utils/harness.d.ts +85 -0
  95. package/dist/agent-farm/utils/harness.d.ts.map +1 -0
  96. package/dist/agent-farm/utils/harness.js +212 -0
  97. package/dist/agent-farm/utils/harness.js.map +1 -0
  98. package/dist/cli.d.ts +1 -1
  99. package/dist/cli.d.ts.map +1 -1
  100. package/dist/cli.js +17 -3
  101. package/dist/cli.js.map +1 -1
  102. package/dist/commands/adopt.js +2 -2
  103. package/dist/commands/adopt.js.map +1 -1
  104. package/dist/commands/consult/index.d.ts +6 -2
  105. package/dist/commands/consult/index.d.ts.map +1 -1
  106. package/dist/commands/consult/index.js +114 -131
  107. package/dist/commands/consult/index.js.map +1 -1
  108. package/dist/commands/doctor.d.ts.map +1 -1
  109. package/dist/commands/doctor.js +54 -3
  110. package/dist/commands/doctor.js.map +1 -1
  111. package/dist/commands/init.js +1 -1
  112. package/dist/commands/init.js.map +1 -1
  113. package/dist/commands/porch/artifacts.d.ts +59 -0
  114. package/dist/commands/porch/artifacts.d.ts.map +1 -0
  115. package/dist/commands/porch/artifacts.js +358 -0
  116. package/dist/commands/porch/artifacts.js.map +1 -0
  117. package/dist/commands/porch/checks.d.ts +8 -1
  118. package/dist/commands/porch/checks.d.ts.map +1 -1
  119. package/dist/commands/porch/checks.js +98 -1
  120. package/dist/commands/porch/checks.js.map +1 -1
  121. package/dist/commands/porch/index.d.ts +8 -7
  122. package/dist/commands/porch/index.d.ts.map +1 -1
  123. package/dist/commands/porch/index.js +49 -45
  124. package/dist/commands/porch/index.js.map +1 -1
  125. package/dist/commands/porch/next.d.ts.map +1 -1
  126. package/dist/commands/porch/next.js +18 -46
  127. package/dist/commands/porch/next.js.map +1 -1
  128. package/dist/commands/porch/notify.d.ts +2 -2
  129. package/dist/commands/porch/notify.js +5 -5
  130. package/dist/commands/porch/notify.js.map +1 -1
  131. package/dist/commands/porch/prompts.d.ts +2 -1
  132. package/dist/commands/porch/prompts.d.ts.map +1 -1
  133. package/dist/commands/porch/prompts.js +19 -7
  134. package/dist/commands/porch/prompts.js.map +1 -1
  135. package/dist/commands/porch/state.d.ts +5 -2
  136. package/dist/commands/porch/state.d.ts.map +1 -1
  137. package/dist/commands/porch/state.js +38 -6
  138. package/dist/commands/porch/state.js.map +1 -1
  139. package/dist/lib/config.d.ts +14 -0
  140. package/dist/lib/config.d.ts.map +1 -1
  141. package/dist/lib/config.js +7 -0
  142. package/dist/lib/config.js.map +1 -1
  143. package/dist/lib/forge-contracts.d.ts +6 -0
  144. package/dist/lib/forge-contracts.d.ts.map +1 -1
  145. package/dist/lib/forge-contracts.js.map +1 -1
  146. package/dist/lib/team-github.d.ts +2 -0
  147. package/dist/lib/team-github.d.ts.map +1 -1
  148. package/dist/lib/team-github.js +4 -4
  149. package/dist/lib/team-github.js.map +1 -1
  150. package/dist/terminal/pty-manager.d.ts.map +1 -1
  151. package/dist/terminal/pty-manager.js +2 -0
  152. package/dist/terminal/pty-manager.js.map +1 -1
  153. package/package.json +2 -1
  154. package/scripts/forge/github/issue-list.sh +2 -2
  155. package/scripts/forge/github/pr-list.sh +2 -2
  156. package/skeleton/.claude/skills/afx/SKILL.md +146 -0
  157. package/skeleton/.claude/skills/codev/SKILL.md +3 -3
  158. package/skeleton/DEPENDENCIES.md +1 -1
  159. package/skeleton/builders.md +4 -4
  160. package/skeleton/protocols/air/builder-prompt.md +6 -6
  161. package/skeleton/protocols/air/prompts/pr.md +2 -2
  162. package/skeleton/protocols/air/protocol.md +1 -1
  163. package/skeleton/protocols/aspir/builder-prompt.md +6 -6
  164. package/skeleton/protocols/aspir/protocol.json +1 -1
  165. package/skeleton/protocols/aspir/protocol.md +1 -1
  166. package/skeleton/protocols/bugfix/builder-prompt.md +6 -6
  167. package/skeleton/protocols/bugfix/prompts/pr.md +1 -1
  168. package/skeleton/protocols/maintain/protocol.md +1 -1
  169. package/skeleton/protocols/spike/builder-prompt.md +1 -1
  170. package/skeleton/protocols/spike/protocol.md +3 -3
  171. package/skeleton/protocols/spir/builder-prompt.md +5 -5
  172. package/skeleton/protocols/spir/protocol.json +1 -1
  173. package/skeleton/protocols/spir/protocol.md +2 -2
  174. package/skeleton/resources/commands/agent-farm.md +82 -82
  175. package/skeleton/resources/commands/codev.md +1 -1
  176. package/skeleton/resources/commands/consult.md +1 -1
  177. package/skeleton/resources/commands/overview.md +14 -14
  178. package/skeleton/resources/risk-triage.md +1 -1
  179. package/skeleton/resources/workflow-reference.md +14 -14
  180. package/skeleton/roles/architect.md +39 -39
  181. package/skeleton/roles/builder.md +13 -13
  182. package/skeleton/templates/AGENTS.md +2 -2
  183. package/skeleton/templates/CLAUDE.md +2 -2
  184. package/skeleton/templates/cheatsheet.md +10 -10
  185. package/templates/3d-viewer.html +16 -18
  186. package/templates/tower.html +1 -1
  187. package/dashboard/dist/assets/index-CTrlY11L.js.map +0 -1
  188. package/skeleton/.claude/skills/af/SKILL.md +0 -146
@@ -1,146 +0,0 @@
1
- ---
2
- name: af
3
- description: Agent Farm CLI — the tool for spawning builders, managing Tower, workspaces, and cron tasks. ALWAYS consult this skill BEFORE running any `af` command to get the exact syntax. This prevents wasting time guessing flags that don't exist. Use this whenever you need to spawn a builder, check status, send messages, clean up worktrees, manage Tower, or run cron tasks. If you're about to type `af` followed by anything, check here first.
4
- ---
5
-
6
- # Agent Farm CLI
7
-
8
- ## af spawn
9
-
10
- Spawns a new builder in an isolated git worktree.
11
-
12
- ```
13
- af spawn [number] [options]
14
- ```
15
-
16
- **The ONLY flags that exist:**
17
-
18
- | Flag | Description |
19
- |------|-------------|
20
- | `--protocol <name>` | Protocol: spir, aspir, air, bugfix, tick, maintain, experiment. **Required for numbered spawns.** |
21
- | `--task <text>` | Ad-hoc task (no issue number needed) |
22
- | `--shell` | Bare Claude session |
23
- | `--worktree` | Bare worktree session |
24
- | `--amends <number>` | Original spec number (TICK only) |
25
- | `--files <files>` | Context files, comma-separated. **Requires `--task`.** |
26
- | `--no-comment` | Skip commenting on the GitHub issue |
27
- | `--force` | Skip dirty-worktree and collision checks |
28
- | `--soft` | Soft mode (AI follows protocol, you verify) |
29
- | `--strict` | Strict mode (porch orchestrates) — this is the default |
30
- | `--resume` | Resume builder in existing worktree |
31
- | `--no-role` | Skip loading role prompt |
32
-
33
- **There is NO `-t`, `--title`, `--name`, or `--branch` flag.** The branch name is auto-generated from the issue title.
34
-
35
- **Examples:**
36
- ```bash
37
- af spawn 42 --protocol spir # SPIR builder for issue #42
38
- af spawn 42 --protocol aspir # ASPIR (autonomous, no human gates)
39
- af spawn 42 --protocol air # AIR (small features)
40
- af spawn 42 --protocol bugfix # Bugfix
41
- af spawn 42 --protocol tick --amends 30 # TICK amendment to spec 30
42
- af spawn 42 --protocol spir --soft # Soft mode
43
- af spawn 42 --resume # Resume existing builder
44
- af spawn --task "fix the flaky test" # Ad-hoc task (no issue)
45
- af spawn 42 --protocol spir --force # Skip dirty-worktree check
46
- ```
47
-
48
- **Pre-spawn checklist:**
49
- 1. `git status` — worktree must be clean (or use `--force`)
50
- 2. Commit specs/plans first — builders branch from HEAD and can't see uncommitted files
51
- 3. `--protocol` is required for numbered spawns
52
-
53
- ## af send
54
-
55
- Sends a message to a running builder.
56
-
57
- ```
58
- af send [builder] [message]
59
- ```
60
-
61
- | Flag | Description |
62
- |------|-------------|
63
- | `--all` | Send to all builders |
64
- | `--file <path>` | Include file content |
65
- | `--interrupt` | Send Ctrl+C first |
66
- | `--raw` | Skip structured formatting |
67
- | `--no-enter` | Don't press Enter after message |
68
-
69
- ```bash
70
- af send 0042 "PR approved, please merge"
71
- af send 0585 "check the test output" --file /tmp/test-results.txt
72
- ```
73
-
74
- ## af cleanup
75
-
76
- Removes a builder's worktree and branch after work is done.
77
-
78
- ```
79
- af cleanup [options]
80
- ```
81
-
82
- | Flag | Description |
83
- |------|-------------|
84
- | `-p, --project <id>` | Builder project ID (no leading zeros: `585` not `0585`) |
85
- | `-i, --issue <number>` | Cleanup bugfix builder by issue number |
86
- | `-t, --task <id>` | Cleanup task builder (e.g., `task-bEPd`) |
87
- | `-f, --force` | Force cleanup even if branch not merged |
88
-
89
- ```bash
90
- af cleanup -p 585 # Clean up project 585
91
- af cleanup -p 585 -f # Force (unmerged branch)
92
- ```
93
-
94
- **Note:** `af cleanup` uses plain numbers (`585`), not zero-padded (`0585`). But `af send` uses zero-padded IDs (`0585`).
95
-
96
- ## af status
97
-
98
- ```bash
99
- af status # Show all builders and workspace status
100
- ```
101
-
102
- No flags needed. Shows Tower status, workspace, and all active builders.
103
-
104
- ## af tower
105
-
106
- ```bash
107
- af tower start # Start Tower on port 4100
108
- af tower stop # Stop Tower
109
- af tower log # Tail Tower logs
110
- af tower status # Check daemon and cloud connection status
111
- af tower connect # Connect to Codev Cloud
112
- af tower disconnect # Disconnect from Codev Cloud
113
- ```
114
-
115
- There is NO `af tower restart` — use `af tower stop && af tower start`.
116
-
117
- ## af workspace
118
-
119
- ```bash
120
- af workspace start # Start workspace for current project
121
- af workspace stop # Stop workspace processes
122
- ```
123
-
124
- `af dash` is a deprecated alias — use `af workspace` instead.
125
-
126
- ## af cron
127
-
128
- ```bash
129
- af cron list # List all cron tasks
130
- af cron status <name> # Check task status
131
- af cron run <name> # Run immediately
132
- af cron enable <name> # Enable
133
- af cron disable <name> # Disable
134
- ```
135
-
136
- There is NO `af cron add` — create YAML files in `.af-cron/` directly.
137
-
138
- ## Other commands
139
-
140
- ```bash
141
- af open <file> # Open file in annotation viewer (NOT system open)
142
- af shell # Spawn utility shell
143
- af attach # Attach to running builder terminal
144
- af rename <name> # Rename current shell session
145
- af architect # Start architect session in current terminal
146
- ```