@cluesmith/codev 2.0.0-rc.6 → 2.0.0-rc.61

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 (377) hide show
  1. package/bin/af.js +2 -2
  2. package/bin/consult.js +1 -1
  3. package/bin/porch.js +6 -35
  4. package/dashboard/dist/assets/index-CXloFYpB.css +32 -0
  5. package/dashboard/dist/assets/index-Ca2fjOJf.js +131 -0
  6. package/dashboard/dist/assets/index-Ca2fjOJf.js.map +1 -0
  7. package/dashboard/dist/index.html +14 -0
  8. package/dist/agent-farm/cli.d.ts.map +1 -1
  9. package/dist/agent-farm/cli.js +94 -65
  10. package/dist/agent-farm/cli.js.map +1 -1
  11. package/dist/agent-farm/commands/architect.d.ts.map +1 -1
  12. package/dist/agent-farm/commands/architect.js +13 -6
  13. package/dist/agent-farm/commands/architect.js.map +1 -1
  14. package/dist/agent-farm/commands/attach.d.ts +13 -0
  15. package/dist/agent-farm/commands/attach.d.ts.map +1 -0
  16. package/dist/agent-farm/commands/attach.js +202 -0
  17. package/dist/agent-farm/commands/attach.js.map +1 -0
  18. package/dist/agent-farm/commands/cleanup.d.ts.map +1 -1
  19. package/dist/agent-farm/commands/cleanup.js +30 -3
  20. package/dist/agent-farm/commands/cleanup.js.map +1 -1
  21. package/dist/agent-farm/commands/consult.js +1 -1
  22. package/dist/agent-farm/commands/consult.js.map +1 -1
  23. package/dist/agent-farm/commands/index.d.ts +2 -2
  24. package/dist/agent-farm/commands/index.d.ts.map +1 -1
  25. package/dist/agent-farm/commands/index.js +2 -2
  26. package/dist/agent-farm/commands/index.js.map +1 -1
  27. package/dist/agent-farm/commands/open.d.ts +4 -2
  28. package/dist/agent-farm/commands/open.d.ts.map +1 -1
  29. package/dist/agent-farm/commands/open.js +34 -70
  30. package/dist/agent-farm/commands/open.js.map +1 -1
  31. package/dist/agent-farm/commands/send.d.ts.map +1 -1
  32. package/dist/agent-farm/commands/send.js +55 -17
  33. package/dist/agent-farm/commands/send.js.map +1 -1
  34. package/dist/agent-farm/commands/shell.d.ts +15 -0
  35. package/dist/agent-farm/commands/shell.d.ts.map +1 -0
  36. package/dist/agent-farm/commands/shell.js +61 -0
  37. package/dist/agent-farm/commands/shell.js.map +1 -0
  38. package/dist/agent-farm/commands/spawn.d.ts.map +1 -1
  39. package/dist/agent-farm/commands/spawn.js +503 -226
  40. package/dist/agent-farm/commands/spawn.js.map +1 -1
  41. package/dist/agent-farm/commands/start.d.ts +3 -0
  42. package/dist/agent-farm/commands/start.d.ts.map +1 -1
  43. package/dist/agent-farm/commands/start.js +58 -265
  44. package/dist/agent-farm/commands/start.js.map +1 -1
  45. package/dist/agent-farm/commands/status.d.ts +2 -0
  46. package/dist/agent-farm/commands/status.d.ts.map +1 -1
  47. package/dist/agent-farm/commands/status.js +61 -3
  48. package/dist/agent-farm/commands/status.js.map +1 -1
  49. package/dist/agent-farm/commands/stop.d.ts +6 -0
  50. package/dist/agent-farm/commands/stop.d.ts.map +1 -1
  51. package/dist/agent-farm/commands/stop.js +116 -12
  52. package/dist/agent-farm/commands/stop.js.map +1 -1
  53. package/dist/agent-farm/commands/tower.d.ts +9 -0
  54. package/dist/agent-farm/commands/tower.d.ts.map +1 -1
  55. package/dist/agent-farm/commands/tower.js +59 -19
  56. package/dist/agent-farm/commands/tower.js.map +1 -1
  57. package/dist/agent-farm/db/index.d.ts.map +1 -1
  58. package/dist/agent-farm/db/index.js +124 -0
  59. package/dist/agent-farm/db/index.js.map +1 -1
  60. package/dist/agent-farm/db/schema.d.ts +2 -2
  61. package/dist/agent-farm/db/schema.d.ts.map +1 -1
  62. package/dist/agent-farm/db/schema.js +26 -5
  63. package/dist/agent-farm/db/schema.js.map +1 -1
  64. package/dist/agent-farm/db/types.d.ts +3 -0
  65. package/dist/agent-farm/db/types.d.ts.map +1 -1
  66. package/dist/agent-farm/db/types.js +3 -0
  67. package/dist/agent-farm/db/types.js.map +1 -1
  68. package/dist/agent-farm/hq-connector.d.ts +2 -6
  69. package/dist/agent-farm/hq-connector.d.ts.map +1 -1
  70. package/dist/agent-farm/hq-connector.js +2 -17
  71. package/dist/agent-farm/hq-connector.js.map +1 -1
  72. package/dist/agent-farm/lib/tower-client.d.ts +157 -0
  73. package/dist/agent-farm/lib/tower-client.d.ts.map +1 -0
  74. package/dist/agent-farm/lib/tower-client.js +223 -0
  75. package/dist/agent-farm/lib/tower-client.js.map +1 -0
  76. package/dist/agent-farm/servers/tower-server.js +2340 -109
  77. package/dist/agent-farm/servers/tower-server.js.map +1 -1
  78. package/dist/agent-farm/state.d.ts +4 -10
  79. package/dist/agent-farm/state.d.ts.map +1 -1
  80. package/dist/agent-farm/state.js +30 -31
  81. package/dist/agent-farm/state.js.map +1 -1
  82. package/dist/agent-farm/types.d.ts +48 -1
  83. package/dist/agent-farm/types.d.ts.map +1 -1
  84. package/dist/agent-farm/utils/config.d.ts.map +1 -1
  85. package/dist/agent-farm/utils/config.js +13 -14
  86. package/dist/agent-farm/utils/config.js.map +1 -1
  87. package/dist/agent-farm/utils/deps.d.ts.map +1 -1
  88. package/dist/agent-farm/utils/deps.js +0 -16
  89. package/dist/agent-farm/utils/deps.js.map +1 -1
  90. package/dist/agent-farm/utils/notifications.d.ts +30 -0
  91. package/dist/agent-farm/utils/notifications.d.ts.map +1 -0
  92. package/dist/agent-farm/utils/notifications.js +121 -0
  93. package/dist/agent-farm/utils/notifications.js.map +1 -0
  94. package/dist/agent-farm/utils/port-registry.d.ts +0 -1
  95. package/dist/agent-farm/utils/port-registry.d.ts.map +1 -1
  96. package/dist/agent-farm/utils/port-registry.js +1 -1
  97. package/dist/agent-farm/utils/port-registry.js.map +1 -1
  98. package/dist/agent-farm/utils/server-utils.d.ts +4 -4
  99. package/dist/agent-farm/utils/server-utils.d.ts.map +1 -1
  100. package/dist/agent-farm/utils/server-utils.js +4 -15
  101. package/dist/agent-farm/utils/server-utils.js.map +1 -1
  102. package/dist/agent-farm/utils/shell.d.ts +9 -22
  103. package/dist/agent-farm/utils/shell.d.ts.map +1 -1
  104. package/dist/agent-farm/utils/shell.js +34 -34
  105. package/dist/agent-farm/utils/shell.js.map +1 -1
  106. package/dist/agent-farm/utils/terminal-ports.d.ts +1 -1
  107. package/dist/agent-farm/utils/terminal-ports.js +1 -1
  108. package/dist/cli.d.ts.map +1 -1
  109. package/dist/cli.js +9 -54
  110. package/dist/cli.js.map +1 -1
  111. package/dist/commands/adopt.d.ts.map +1 -1
  112. package/dist/commands/adopt.js +49 -4
  113. package/dist/commands/adopt.js.map +1 -1
  114. package/dist/commands/consult/index.d.ts +2 -0
  115. package/dist/commands/consult/index.d.ts.map +1 -1
  116. package/dist/commands/consult/index.js +103 -6
  117. package/dist/commands/consult/index.js.map +1 -1
  118. package/dist/commands/doctor.d.ts.map +1 -1
  119. package/dist/commands/doctor.js +0 -15
  120. package/dist/commands/doctor.js.map +1 -1
  121. package/dist/commands/init.d.ts.map +1 -1
  122. package/dist/commands/init.js +41 -2
  123. package/dist/commands/init.js.map +1 -1
  124. package/dist/commands/porch/build-counter.d.ts +5 -0
  125. package/dist/commands/porch/build-counter.d.ts.map +1 -0
  126. package/dist/commands/porch/build-counter.js +5 -0
  127. package/dist/commands/porch/build-counter.js.map +1 -0
  128. package/dist/commands/porch/checks.d.ts +17 -29
  129. package/dist/commands/porch/checks.d.ts.map +1 -1
  130. package/dist/commands/porch/checks.js +96 -144
  131. package/dist/commands/porch/checks.js.map +1 -1
  132. package/dist/commands/porch/index.d.ts +21 -43
  133. package/dist/commands/porch/index.d.ts.map +1 -1
  134. package/dist/commands/porch/index.js +418 -1123
  135. package/dist/commands/porch/index.js.map +1 -1
  136. package/dist/commands/porch/next.d.ts +22 -0
  137. package/dist/commands/porch/next.d.ts.map +1 -0
  138. package/dist/commands/porch/next.js +481 -0
  139. package/dist/commands/porch/next.js.map +1 -0
  140. package/dist/commands/porch/plan.d.ts +70 -0
  141. package/dist/commands/porch/plan.d.ts.map +1 -0
  142. package/dist/commands/porch/plan.js +190 -0
  143. package/dist/commands/porch/plan.js.map +1 -0
  144. package/dist/commands/porch/prompts.d.ts +19 -0
  145. package/dist/commands/porch/prompts.d.ts.map +1 -0
  146. package/dist/commands/porch/prompts.js +255 -0
  147. package/dist/commands/porch/prompts.js.map +1 -0
  148. package/dist/commands/porch/protocol.d.ts +59 -0
  149. package/dist/commands/porch/protocol.d.ts.map +1 -0
  150. package/dist/commands/porch/protocol.js +294 -0
  151. package/dist/commands/porch/protocol.js.map +1 -0
  152. package/dist/commands/porch/state.d.ts +23 -112
  153. package/dist/commands/porch/state.d.ts.map +1 -1
  154. package/dist/commands/porch/state.js +81 -699
  155. package/dist/commands/porch/state.js.map +1 -1
  156. package/dist/commands/porch/types.d.ts +99 -164
  157. package/dist/commands/porch/types.d.ts.map +1 -1
  158. package/dist/commands/porch/types.js +2 -1
  159. package/dist/commands/porch/types.js.map +1 -1
  160. package/dist/commands/porch/verdict.d.ts +31 -0
  161. package/dist/commands/porch/verdict.d.ts.map +1 -0
  162. package/dist/commands/porch/verdict.js +59 -0
  163. package/dist/commands/porch/verdict.js.map +1 -0
  164. package/dist/commands/update.d.ts.map +1 -1
  165. package/dist/commands/update.js +31 -0
  166. package/dist/commands/update.js.map +1 -1
  167. package/dist/lib/scaffold.d.ts +37 -0
  168. package/dist/lib/scaffold.d.ts.map +1 -1
  169. package/dist/lib/scaffold.js +114 -0
  170. package/dist/lib/scaffold.js.map +1 -1
  171. package/dist/terminal/index.d.ts +8 -0
  172. package/dist/terminal/index.d.ts.map +1 -0
  173. package/dist/terminal/index.js +5 -0
  174. package/dist/terminal/index.js.map +1 -0
  175. package/dist/terminal/pty-manager.d.ts +60 -0
  176. package/dist/terminal/pty-manager.d.ts.map +1 -0
  177. package/dist/terminal/pty-manager.js +334 -0
  178. package/dist/terminal/pty-manager.js.map +1 -0
  179. package/dist/terminal/pty-session.d.ts +79 -0
  180. package/dist/terminal/pty-session.d.ts.map +1 -0
  181. package/dist/terminal/pty-session.js +215 -0
  182. package/dist/terminal/pty-session.js.map +1 -0
  183. package/dist/terminal/ring-buffer.d.ts +27 -0
  184. package/dist/terminal/ring-buffer.d.ts.map +1 -0
  185. package/dist/terminal/ring-buffer.js +74 -0
  186. package/dist/terminal/ring-buffer.js.map +1 -0
  187. package/dist/terminal/ws-protocol.d.ts +27 -0
  188. package/dist/terminal/ws-protocol.d.ts.map +1 -0
  189. package/dist/terminal/ws-protocol.js +44 -0
  190. package/dist/terminal/ws-protocol.js.map +1 -0
  191. package/package.json +18 -5
  192. package/skeleton/.claude/skills/af/SKILL.md +74 -0
  193. package/skeleton/.claude/skills/codev/SKILL.md +41 -0
  194. package/skeleton/.claude/skills/consult/SKILL.md +81 -0
  195. package/skeleton/.claude/skills/generate-image/SKILL.md +56 -0
  196. package/skeleton/DEPENDENCIES.md +3 -29
  197. package/skeleton/builders.md +1 -1
  198. package/skeleton/consult-types/impl-review.md +9 -0
  199. package/skeleton/porch/prompts/defend.md +1 -1
  200. package/skeleton/porch/prompts/evaluate.md +2 -2
  201. package/skeleton/porch/prompts/implement.md +1 -1
  202. package/skeleton/porch/prompts/plan.md +1 -1
  203. package/skeleton/porch/prompts/review.md +4 -4
  204. package/skeleton/porch/prompts/specify.md +1 -1
  205. package/skeleton/porch/prompts/understand.md +2 -2
  206. package/skeleton/protocol-schema.json +282 -0
  207. package/skeleton/protocols/bugfix/builder-prompt.md +54 -0
  208. package/skeleton/protocols/bugfix/prompts/fix.md +77 -0
  209. package/skeleton/protocols/bugfix/prompts/investigate.md +77 -0
  210. package/skeleton/protocols/bugfix/prompts/pr.md +61 -0
  211. package/skeleton/protocols/bugfix/protocol.json +19 -2
  212. package/skeleton/protocols/experiment/builder-prompt.md +52 -0
  213. package/skeleton/protocols/experiment/protocol.json +101 -0
  214. package/skeleton/protocols/experiment/protocol.md +3 -3
  215. package/skeleton/protocols/experiment/templates/notes.md +1 -1
  216. package/skeleton/protocols/maintain/builder-prompt.md +46 -0
  217. package/skeleton/protocols/maintain/prompts/audit.md +111 -0
  218. package/skeleton/protocols/maintain/prompts/clean.md +91 -0
  219. package/skeleton/protocols/maintain/prompts/sync.md +113 -0
  220. package/skeleton/protocols/maintain/prompts/verify.md +110 -0
  221. package/skeleton/protocols/maintain/protocol.json +141 -0
  222. package/skeleton/protocols/maintain/protocol.md +14 -8
  223. package/skeleton/protocols/protocol-schema.json +54 -1
  224. package/skeleton/protocols/spir/builder-prompt.md +59 -0
  225. package/skeleton/protocols/spir/prompts/implement.md +208 -0
  226. package/skeleton/protocols/{spider → spir}/prompts/plan.md +6 -70
  227. package/skeleton/protocols/{spider → spir}/prompts/review.md +7 -25
  228. package/skeleton/protocols/{spider → spir}/prompts/specify.md +33 -61
  229. package/skeleton/protocols/spir/protocol.json +152 -0
  230. package/skeleton/protocols/{spider → spir}/protocol.md +35 -21
  231. package/skeleton/protocols/{spider → spir}/templates/plan.md +14 -0
  232. package/skeleton/protocols/{spider → spir}/templates/review.md +1 -1
  233. package/skeleton/protocols/tick/builder-prompt.md +56 -0
  234. package/skeleton/protocols/tick/protocol.json +7 -2
  235. package/skeleton/protocols/tick/protocol.md +18 -18
  236. package/skeleton/protocols/tick/templates/review.md +1 -1
  237. package/skeleton/resources/commands/agent-farm.md +25 -43
  238. package/skeleton/resources/commands/overview.md +7 -17
  239. package/skeleton/resources/workflow-reference.md +4 -4
  240. package/skeleton/roles/architect.md +152 -315
  241. package/skeleton/roles/builder.md +109 -218
  242. package/skeleton/templates/AGENTS.md +2 -2
  243. package/skeleton/templates/CLAUDE.md +2 -2
  244. package/skeleton/templates/cheatsheet.md +7 -5
  245. package/skeleton/templates/projectlist.md +1 -1
  246. package/templates/dashboard/index.html +17 -43
  247. package/templates/dashboard/js/dialogs.js +7 -7
  248. package/templates/dashboard/js/files.js +2 -2
  249. package/templates/dashboard/js/main.js +4 -4
  250. package/templates/dashboard/js/projects.js +3 -3
  251. package/templates/dashboard/js/tabs.js +1 -1
  252. package/templates/dashboard/js/utils.js +22 -87
  253. package/templates/open.html +26 -0
  254. package/templates/tower.html +542 -27
  255. package/dist/agent-farm/commands/kickoff.d.ts +0 -19
  256. package/dist/agent-farm/commands/kickoff.d.ts.map +0 -1
  257. package/dist/agent-farm/commands/kickoff.js +0 -331
  258. package/dist/agent-farm/commands/kickoff.js.map +0 -1
  259. package/dist/agent-farm/commands/rename.d.ts +0 -13
  260. package/dist/agent-farm/commands/rename.d.ts.map +0 -1
  261. package/dist/agent-farm/commands/rename.js +0 -33
  262. package/dist/agent-farm/commands/rename.js.map +0 -1
  263. package/dist/agent-farm/commands/tutorial.d.ts +0 -10
  264. package/dist/agent-farm/commands/tutorial.d.ts.map +0 -1
  265. package/dist/agent-farm/commands/tutorial.js +0 -49
  266. package/dist/agent-farm/commands/tutorial.js.map +0 -1
  267. package/dist/agent-farm/commands/util.d.ts +0 -15
  268. package/dist/agent-farm/commands/util.d.ts.map +0 -1
  269. package/dist/agent-farm/commands/util.js +0 -108
  270. package/dist/agent-farm/commands/util.js.map +0 -1
  271. package/dist/agent-farm/servers/dashboard-server.d.ts +0 -7
  272. package/dist/agent-farm/servers/dashboard-server.d.ts.map +0 -1
  273. package/dist/agent-farm/servers/dashboard-server.js +0 -1872
  274. package/dist/agent-farm/servers/dashboard-server.js.map +0 -1
  275. package/dist/agent-farm/servers/open-server.d.ts +0 -7
  276. package/dist/agent-farm/servers/open-server.d.ts.map +0 -1
  277. package/dist/agent-farm/servers/open-server.js +0 -315
  278. package/dist/agent-farm/servers/open-server.js.map +0 -1
  279. package/dist/agent-farm/tutorial/index.d.ts +0 -8
  280. package/dist/agent-farm/tutorial/index.d.ts.map +0 -1
  281. package/dist/agent-farm/tutorial/index.js +0 -8
  282. package/dist/agent-farm/tutorial/index.js.map +0 -1
  283. package/dist/agent-farm/tutorial/prompts.d.ts +0 -57
  284. package/dist/agent-farm/tutorial/prompts.d.ts.map +0 -1
  285. package/dist/agent-farm/tutorial/prompts.js +0 -147
  286. package/dist/agent-farm/tutorial/prompts.js.map +0 -1
  287. package/dist/agent-farm/tutorial/runner.d.ts +0 -52
  288. package/dist/agent-farm/tutorial/runner.d.ts.map +0 -1
  289. package/dist/agent-farm/tutorial/runner.js +0 -204
  290. package/dist/agent-farm/tutorial/runner.js.map +0 -1
  291. package/dist/agent-farm/tutorial/state.d.ts +0 -26
  292. package/dist/agent-farm/tutorial/state.d.ts.map +0 -1
  293. package/dist/agent-farm/tutorial/state.js +0 -89
  294. package/dist/agent-farm/tutorial/state.js.map +0 -1
  295. package/dist/agent-farm/tutorial/steps/first-spec.d.ts +0 -7
  296. package/dist/agent-farm/tutorial/steps/first-spec.d.ts.map +0 -1
  297. package/dist/agent-farm/tutorial/steps/first-spec.js +0 -136
  298. package/dist/agent-farm/tutorial/steps/first-spec.js.map +0 -1
  299. package/dist/agent-farm/tutorial/steps/implementation.d.ts +0 -7
  300. package/dist/agent-farm/tutorial/steps/implementation.d.ts.map +0 -1
  301. package/dist/agent-farm/tutorial/steps/implementation.js +0 -76
  302. package/dist/agent-farm/tutorial/steps/implementation.js.map +0 -1
  303. package/dist/agent-farm/tutorial/steps/index.d.ts +0 -10
  304. package/dist/agent-farm/tutorial/steps/index.d.ts.map +0 -1
  305. package/dist/agent-farm/tutorial/steps/index.js +0 -10
  306. package/dist/agent-farm/tutorial/steps/index.js.map +0 -1
  307. package/dist/agent-farm/tutorial/steps/planning.d.ts +0 -7
  308. package/dist/agent-farm/tutorial/steps/planning.d.ts.map +0 -1
  309. package/dist/agent-farm/tutorial/steps/planning.js +0 -143
  310. package/dist/agent-farm/tutorial/steps/planning.js.map +0 -1
  311. package/dist/agent-farm/tutorial/steps/review.d.ts +0 -7
  312. package/dist/agent-farm/tutorial/steps/review.d.ts.map +0 -1
  313. package/dist/agent-farm/tutorial/steps/review.js +0 -78
  314. package/dist/agent-farm/tutorial/steps/review.js.map +0 -1
  315. package/dist/agent-farm/tutorial/steps/setup.d.ts +0 -7
  316. package/dist/agent-farm/tutorial/steps/setup.d.ts.map +0 -1
  317. package/dist/agent-farm/tutorial/steps/setup.js +0 -126
  318. package/dist/agent-farm/tutorial/steps/setup.js.map +0 -1
  319. package/dist/agent-farm/tutorial/steps/welcome.d.ts +0 -7
  320. package/dist/agent-farm/tutorial/steps/welcome.d.ts.map +0 -1
  321. package/dist/agent-farm/tutorial/steps/welcome.js +0 -50
  322. package/dist/agent-farm/tutorial/steps/welcome.js.map +0 -1
  323. package/dist/commands/pcheck/cache.d.ts +0 -48
  324. package/dist/commands/pcheck/cache.d.ts.map +0 -1
  325. package/dist/commands/pcheck/cache.js +0 -170
  326. package/dist/commands/pcheck/cache.js.map +0 -1
  327. package/dist/commands/pcheck/evaluator.d.ts +0 -15
  328. package/dist/commands/pcheck/evaluator.d.ts.map +0 -1
  329. package/dist/commands/pcheck/evaluator.js +0 -246
  330. package/dist/commands/pcheck/evaluator.js.map +0 -1
  331. package/dist/commands/pcheck/index.d.ts +0 -12
  332. package/dist/commands/pcheck/index.d.ts.map +0 -1
  333. package/dist/commands/pcheck/index.js +0 -249
  334. package/dist/commands/pcheck/index.js.map +0 -1
  335. package/dist/commands/pcheck/parser.d.ts +0 -39
  336. package/dist/commands/pcheck/parser.d.ts.map +0 -1
  337. package/dist/commands/pcheck/parser.js +0 -155
  338. package/dist/commands/pcheck/parser.js.map +0 -1
  339. package/dist/commands/pcheck/types.d.ts +0 -82
  340. package/dist/commands/pcheck/types.d.ts.map +0 -1
  341. package/dist/commands/pcheck/types.js +0 -5
  342. package/dist/commands/pcheck/types.js.map +0 -1
  343. package/dist/commands/porch/consultation.d.ts +0 -56
  344. package/dist/commands/porch/consultation.d.ts.map +0 -1
  345. package/dist/commands/porch/consultation.js +0 -330
  346. package/dist/commands/porch/consultation.js.map +0 -1
  347. package/dist/commands/porch/notifications.d.ts +0 -99
  348. package/dist/commands/porch/notifications.d.ts.map +0 -1
  349. package/dist/commands/porch/notifications.js +0 -223
  350. package/dist/commands/porch/notifications.js.map +0 -1
  351. package/dist/commands/porch/plan-parser.d.ts +0 -38
  352. package/dist/commands/porch/plan-parser.d.ts.map +0 -1
  353. package/dist/commands/porch/plan-parser.js +0 -166
  354. package/dist/commands/porch/plan-parser.js.map +0 -1
  355. package/dist/commands/porch/protocol-loader.d.ts +0 -46
  356. package/dist/commands/porch/protocol-loader.d.ts.map +0 -1
  357. package/dist/commands/porch/protocol-loader.js +0 -253
  358. package/dist/commands/porch/protocol-loader.js.map +0 -1
  359. package/dist/commands/porch/signal-parser.d.ts +0 -88
  360. package/dist/commands/porch/signal-parser.d.ts.map +0 -1
  361. package/dist/commands/porch/signal-parser.js +0 -148
  362. package/dist/commands/porch/signal-parser.js.map +0 -1
  363. package/dist/commands/tower.d.ts +0 -16
  364. package/dist/commands/tower.d.ts.map +0 -1
  365. package/dist/commands/tower.js +0 -21
  366. package/dist/commands/tower.js.map +0 -1
  367. package/skeleton/config.json +0 -7
  368. package/skeleton/porch/protocols/bugfix.json +0 -85
  369. package/skeleton/porch/protocols/spider.json +0 -135
  370. package/skeleton/porch/protocols/tick.json +0 -76
  371. package/skeleton/protocols/spider/prompts/defend.md +0 -215
  372. package/skeleton/protocols/spider/prompts/evaluate.md +0 -241
  373. package/skeleton/protocols/spider/prompts/implement.md +0 -149
  374. package/skeleton/protocols/spider/protocol.json +0 -210
  375. package/templates/dashboard/css/activity.css +0 -151
  376. package/templates/dashboard/js/activity.js +0 -112
  377. /package/skeleton/protocols/{spider → spir}/templates/spec.md +0 -0
@@ -0,0 +1,74 @@
1
+ ---
2
+ name: af
3
+ description: Agent Farm CLI quick reference. Use when running af commands to check correct syntax, subcommands, and flags. Prevents guessing at command names.
4
+ disable-model-invocation: false
5
+ ---
6
+
7
+ # Agent Farm Quick Reference
8
+
9
+ ## Tower (Dashboard Server)
10
+
11
+ ```bash
12
+ af tower start # Start Tower on port 4100
13
+ af tower stop # Stop Tower
14
+ af tower log # Tail Tower logs
15
+ af tower status # Check if Tower is running
16
+ ```
17
+
18
+ There is NO `af tower restart` — use `af tower stop && af tower start`.
19
+
20
+ ## Dashboard
21
+
22
+ ```bash
23
+ af dash start # Start architect dashboard for current project
24
+ af dash stop # Stop dashboard for current project
25
+ af dash open # Open dashboard in browser
26
+ ```
27
+
28
+ ## Builder Management
29
+
30
+ ```bash
31
+ af spawn -p 0003 # Spawn builder for spec (strict mode, default)
32
+ af spawn --soft -p 0003 # Spawn builder (soft mode)
33
+ af spawn --issue 42 # Spawn builder for a bugfix
34
+ af status # Check all builder status
35
+ af cleanup --project 0003 # Clean up builder worktree (safe)
36
+ af cleanup --project 0003 -f # Force cleanup
37
+ ```
38
+
39
+ ## Utility
40
+
41
+ ```bash
42
+ af util # Open utility shell
43
+ af open file.ts # Open file in annotation viewer
44
+ af ports list # List port allocations
45
+ af send <builder> "msg" # Send message to a builder
46
+ ```
47
+
48
+ ## Configuration
49
+
50
+ Edit `af-config.json` at project root to customize shell commands.
51
+
52
+ ```json
53
+ {
54
+ "shell": {
55
+ "architect": "claude",
56
+ "builder": "claude",
57
+ "shell": "bash"
58
+ }
59
+ }
60
+ ```
61
+
62
+ ## Pre-Spawn Checklist
63
+
64
+ **Before `af spawn`, commit all local changes.** Builders work in git worktrees
65
+ branched from HEAD — uncommitted files (specs, plans, codev updates) are invisible
66
+ to the builder. The spawn command will refuse if the worktree is dirty (override
67
+ with `--force`).
68
+
69
+ ## Common Mistakes
70
+
71
+ - **Spawning with uncommitted changes** — builder won't see specs, plans, or codev updates
72
+ - There is NO `codev tower` command — Tower is managed via `af tower`
73
+ - There is NO `restart` subcommand — stop then start
74
+ - There is NO `af start` for Tower — use `af tower start` or `af dash start`
@@ -0,0 +1,41 @@
1
+ ---
2
+ name: codev
3
+ description: Codev project management CLI quick reference. Use when running codev commands to check correct syntax for init, adopt, update, and doctor.
4
+ disable-model-invocation: false
5
+ ---
6
+
7
+ # codev - Project Management CLI
8
+
9
+ ## Commands
10
+
11
+ ```bash
12
+ codev init [name] # Create a new codev project
13
+ codev init my-app -y # Non-interactive with defaults
14
+ codev adopt # Add codev to existing project (run from project root)
15
+ codev adopt -y # Skip conflict prompts
16
+ codev update # Update protocols, roles, skills from installed package
17
+ codev update --dry-run # Preview changes without applying
18
+ codev update --force # Force overwrite all framework files
19
+ codev doctor # Check system dependencies
20
+ ```
21
+
22
+ ## What Each Command Does
23
+
24
+ ### codev init
25
+ Creates a new project directory with codev structure: specs/, plans/, reviews/, protocols, CLAUDE.md, AGENTS.md, .claude/skills/, af-config.json, .gitignore.
26
+
27
+ ### codev adopt
28
+ Adds codev to the **current directory**. Detects existing CLAUDE.md/AGENTS.md and creates `.codev-new` versions for merge if conflicts exist. Spawns Claude to merge automatically.
29
+
30
+ ### codev update
31
+ Updates framework files (protocols, roles, skills) from the installed `@cluesmith/codev` package. **Never touches user data** (specs, plans, reviews). If you've customized a framework file, creates a `.codev-new` version for manual merge.
32
+
33
+ ### codev doctor
34
+ Checks that all required dependencies are installed: Node.js (>=18), tmux (>=3), git (>=2.5), gh (authenticated), and at least one AI CLI (Claude, Gemini, or Codex).
35
+
36
+ ## Common Mistakes
37
+
38
+ - There is NO `codev tower` command — Tower is managed via `af tower start` / `af tower stop`
39
+ - `codev init` creates a **new directory** — use `codev adopt` for existing projects
40
+ - `codev update` only updates framework files — it will never overwrite your specs/plans/reviews
41
+ - Always run `codev adopt` and `codev update` from the **project root directory**
@@ -0,0 +1,81 @@
1
+ ---
2
+ name: consult
3
+ description: AI consultation CLI quick reference. Use when running consult commands to check syntax for PR reviews, spec reviews, plan reviews, and general queries across Gemini, Codex, and Claude.
4
+ disable-model-invocation: false
5
+ ---
6
+
7
+ # consult - AI Consultation CLI
8
+
9
+ ## Synopsis
10
+
11
+ ```bash
12
+ consult -m <model> <subcommand> [args] [options]
13
+ ```
14
+
15
+ The `-m` / `--model` flag is **always required**.
16
+
17
+ ## Models
18
+
19
+ | Model | Alias | Speed | Approach |
20
+ |-------|-------|-------|----------|
21
+ | `gemini` | `pro` | ~120-150s | Pure text analysis, fast |
22
+ | `codex` | `gpt` | ~200-250s | Shell command exploration, thorough |
23
+ | `claude` | `opus` | ~60-120s | Balanced tool use |
24
+
25
+ ## Subcommands
26
+
27
+ ```bash
28
+ consult -m gemini pr 42 # Review a pull request
29
+ consult -m codex spec 42 # Review a specification
30
+ consult -m gemini plan 42 # Review an implementation plan
31
+ consult -m claude general "query" # General question (quoted string)
32
+ ```
33
+
34
+ ## Options
35
+
36
+ ```bash
37
+ -n, --dry-run # Show command without running
38
+ -t, --type <type> # Review type (spec-review, plan-review, impl-review, pr-ready, integration-review)
39
+ -r, --role <role> # Custom role from codev/roles/ (without .md extension)
40
+ ```
41
+
42
+ ## Review Types (--type)
43
+
44
+ | Type | Stage | Use Case |
45
+ |------|-------|----------|
46
+ | `spec-review` | conceived | Review spec completeness |
47
+ | `plan-review` | specified | Review implementation plan |
48
+ | `impl-review` | implementing | Review code implementation |
49
+ | `pr-ready` | implemented | Final check before PR |
50
+ | `integration-review` | committed | Architect's integration review |
51
+
52
+ Review type prompts live in `codev/consult-types/` and can be customized.
53
+
54
+ ## Parallel Consultation (3-Way / cmap)
55
+
56
+ Run all three models in parallel for thorough reviews:
57
+
58
+ ```bash
59
+ consult -m gemini spec 42 &
60
+ consult -m codex spec 42 &
61
+ consult -m claude spec 42 &
62
+ wait
63
+ ```
64
+
65
+ Or from Claude Code, use **cmap** pattern: three parallel background Bash calls.
66
+
67
+ ## Custom Roles
68
+
69
+ ```bash
70
+ consult -m gemini --role security-reviewer pr 42
71
+ consult -m codex --role architect general "Review this design"
72
+ ```
73
+
74
+ Roles are markdown files in `codev/roles/`. Create your own by adding `.md` files there.
75
+
76
+ ## Common Mistakes
77
+
78
+ - The `-m` flag is **required** — `consult pr 42` will fail without it
79
+ - PR numbers are GitHub PR numbers, not spec numbers
80
+ - Spec/plan numbers match the `0042` prefix in filenames (pass just `42`, not `0042`)
81
+ - General queries must be **quoted**: `consult -m gemini general "your question here"`
@@ -0,0 +1,56 @@
1
+ ---
2
+ name: generate-image
3
+ description: AI image generation CLI using Gemini. Use when generating images, checking syntax for resolution, aspect ratio, and reference image options.
4
+ disable-model-invocation: false
5
+ ---
6
+
7
+ # generate-image - AI Image Generation
8
+
9
+ Uses Google Gemini (gemini-3-pro-image-preview) to generate images from text prompts.
10
+
11
+ ## Synopsis
12
+
13
+ ```bash
14
+ codev generate-image "<prompt>" [options]
15
+ ```
16
+
17
+ ## Options
18
+
19
+ ```bash
20
+ -o, --output <file> # Output file path (default: output.png)
21
+ -r, --resolution <res> # Resolution: 1K, 2K, 4K (default: 1K)
22
+ -a, --aspect <ratio> # Aspect ratio (default: 1:1)
23
+ --ref <image> # Reference image (repeatable, max 14)
24
+ ```
25
+
26
+ ## Aspect Ratios
27
+
28
+ `1:1` | `16:9` | `9:16` | `3:4` | `4:3` | `3:2` | `2:3`
29
+
30
+ ## Examples
31
+
32
+ ```bash
33
+ # Basic generation
34
+ codev generate-image "A sunset over mountains"
35
+
36
+ # High-res widescreen
37
+ codev generate-image "A futuristic city" -r 4K -a 16:9 -o city.png
38
+
39
+ # With reference images (style transfer)
40
+ codev generate-image "Same style but with cats" --ref style.png --ref layout.png
41
+
42
+ # Prompt from file
43
+ codev generate-image prompt.txt -o result.png
44
+ ```
45
+
46
+ ## Prerequisites
47
+
48
+ Requires `GEMINI_API_KEY` or `GOOGLE_API_KEY` environment variable.
49
+ Get a key at https://aistudio.google.com/apikey
50
+
51
+ ## Common Mistakes
52
+
53
+ - Prompt must be **quoted** if it contains spaces
54
+ - Prompt can also be a `.txt` file path (auto-detected by extension)
55
+ - Reference images must exist on disk — max 14 images
56
+ - Output defaults to `output.png` in current directory — use `-o` to change
@@ -57,29 +57,6 @@ sudo apt install tmux
57
57
  tmux -V # Should show tmux 3.x or higher
58
58
  ```
59
59
 
60
- ### ttyd
61
-
62
- | Requirement | Value |
63
- |-------------|-------|
64
- | Minimum Version | 1.7.0 |
65
- | Purpose | Web-based terminal for dashboard access |
66
-
67
- **Installation:**
68
-
69
- ```bash
70
- # macOS
71
- brew install ttyd
72
-
73
- # Ubuntu/Debian (build from source)
74
- sudo apt install build-essential cmake git libjson-c-dev libwebsockets-dev
75
- git clone https://github.com/tsl0922/ttyd.git
76
- cd ttyd && mkdir build && cd build
77
- cmake .. && make && sudo make install
78
-
79
- # Verify
80
- ttyd --version # Should show 1.7.x or higher
81
- ```
82
-
83
60
  ### git
84
61
 
85
62
  | Requirement | Value |
@@ -193,7 +170,6 @@ codex --version
193
170
  |------------|-----------------|-----------|
194
171
  | Node.js | 18.0.0 | Yes |
195
172
  | tmux | 3.0 | Yes |
196
- | ttyd | 1.7.0 | Yes |
197
173
  | git | 2.5.0 | Yes |
198
174
  | gh | latest | Yes |
199
175
  | Claude Code | latest | At least one AI CLI |
@@ -210,7 +186,7 @@ All dependencies are available via Homebrew:
210
186
 
211
187
  ```bash
212
188
  # Install all core dependencies at once
213
- brew install node tmux ttyd gh
189
+ brew install node tmux gh
214
190
 
215
191
  # Git is included with Xcode command line tools
216
192
  xcode-select --install
@@ -218,15 +194,13 @@ xcode-select --install
218
194
 
219
195
  ### Ubuntu/Debian
220
196
 
221
- Most dependencies are available via apt, except ttyd which must be built from source:
197
+ Most dependencies are available via apt:
222
198
 
223
199
  ```bash
224
200
  # Core dependencies
225
201
  sudo apt install nodejs npm tmux git
226
202
 
227
203
  # gh requires adding GitHub's apt repository (see above)
228
-
229
- # ttyd must be built from source (see above)
230
204
  ```
231
205
 
232
206
  ### Windows
@@ -267,7 +241,7 @@ sudo apt update
267
241
  sudo apt install tmux
268
242
  ```
269
243
 
270
- ### ttyd connection issues
244
+ ### Terminal connection issues
271
245
 
272
246
  Ensure no firewall is blocking the ports (default: 4200-4299):
273
247
 
@@ -4,7 +4,7 @@ Track active builder agents here. Update manually or via `architect status`.
4
4
 
5
5
  ## Status Values
6
6
 
7
- - **spawning**: Worktree being created, ttyd starting
7
+ - **spawning**: Worktree being created, terminal starting
8
8
  - **implementing**: Builder is working
9
9
  - **blocked**: Builder waiting for architect input
10
10
  - **pr-ready**: Builder has created a PR
@@ -55,6 +55,15 @@ KEY_ISSUES:
55
55
  - `REQUEST_CHANGES`: Issues that must be fixed before proceeding
56
56
  - `COMMENT`: Minor suggestions, can proceed but note feedback
57
57
 
58
+ ## Scoping (Multi-Phase Plans)
59
+
60
+ When the implementation plan has multiple phases (e.g., scaffolding, landing, media_rtl):
61
+ - **ONLY review work belonging to the current plan phase**
62
+ - The query will specify which phase you are reviewing
63
+ - Do NOT request changes for functionality scheduled in later phases
64
+ - Do NOT flag missing features that are out of scope for this phase
65
+ - If unsure whether something belongs to this phase, check the plan file
66
+
58
67
  ## Notes
59
68
 
60
69
  - This is a phase-level review, not the final PR review
@@ -1,6 +1,6 @@
1
1
  # Defend Phase Prompt
2
2
 
3
- You are the **Tester** hat in a Ralph-SPIDER loop.
3
+ You are the **Tester** hat in a Ralph-SPIR loop.
4
4
 
5
5
  ## Your Mission
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Evaluate Phase Prompt
2
2
 
3
- You are the **Verifier** hat in a Ralph-SPIDER loop.
3
+ You are the **Verifier** hat in a Ralph-SPIR loop.
4
4
 
5
5
  ## Your Mission
6
6
 
@@ -66,7 +66,7 @@ Create or update evaluation notes in the status file:
66
66
  ```markdown
67
67
  ## Evaluation Report
68
68
 
69
- **Evaluator**: Ralph-SPIDER Verifier
69
+ **Evaluator**: Ralph-SPIR Verifier
70
70
  **Date**: {date}
71
71
  **Phase**: {phase-name}
72
72
 
@@ -1,6 +1,6 @@
1
1
  # Implement Phase Prompt
2
2
 
3
- You are the **Implementer** hat in a Ralph-SPIDER loop.
3
+ You are the **Implementer** hat in a Ralph-SPIR loop.
4
4
 
5
5
  ## Your Mission
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Plan Phase Prompt
2
2
 
3
- You are the **Planner** hat in a Ralph-SPIDER loop.
3
+ You are the **Planner** hat in a Ralph-SPIR loop.
4
4
 
5
5
  ## Your Mission
6
6
 
@@ -1,10 +1,10 @@
1
1
  # Review Phase Prompt
2
2
 
3
- You are the **Reviewer** hat in a Ralph-SPIDER loop.
3
+ You are the **Reviewer** hat in a Ralph-SPIR loop.
4
4
 
5
5
  ## Your Mission
6
6
 
7
- Create the final deliverables: PR and review document. This is the capstone of the SPIDER protocol.
7
+ Create the final deliverables: PR and review document. This is the capstone of the SPIR protocol.
8
8
 
9
9
  ## Input Context
10
10
 
@@ -27,7 +27,7 @@ Create `codev/reviews/{project-id}-{name}.md` with:
27
27
  - **ID**: {project-id}
28
28
  - **Spec**: `codev/specs/{project-id}-{name}.md`
29
29
  - **Plan**: `codev/plans/{project-id}-{name}.md`
30
- - **Protocol**: ralph-spider
30
+ - **Protocol**: ralph-spir
31
31
  - **Completed**: {date}
32
32
 
33
33
  ## Summary
@@ -78,7 +78,7 @@ One paragraph summarizing what was built and why.
78
78
  2. Pattern that worked well
79
79
 
80
80
  ### Process Insights
81
- 1. What worked well in the SPIDER process
81
+ 1. What worked well in the SPIR process
82
82
  2. What could be improved
83
83
 
84
84
  ## Recommendations
@@ -1,6 +1,6 @@
1
1
  # Specify Phase Prompt
2
2
 
3
- You are the **Spec Writer** hat in a Ralph-SPIDER loop.
3
+ You are the **Spec Writer** hat in a Ralph-SPIR loop.
4
4
 
5
5
  ## Your Mission
6
6
 
@@ -30,7 +30,7 @@ TICK is appropriate when:
30
30
  - [ ] Requirements are clear
31
31
  - [ ] No architectural changes needed
32
32
 
33
- If NOT appropriate, signal: `<signal>NEEDS_SPIDER</signal>`
33
+ If NOT appropriate, signal: `<signal>NEEDS_SPIR</signal>`
34
34
 
35
35
  ### 3. Document Understanding
36
36
 
@@ -58,4 +58,4 @@ When understanding is complete:
58
58
 
59
59
  - DO NOT start implementing
60
60
  - DO NOT create new spec files (amend existing)
61
- - Keep scope small - if > 300 LOC, recommend SPIDER instead
61
+ - Keep scope small - if > 300 LOC, recommend SPIR instead