@cluesmith/codev 3.2.4 → 3.3.1

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 (394) hide show
  1. package/dashboard-dist/assets/index-BZRTEMtH.css +32 -0
  2. package/dashboard-dist/assets/{index-BZ1x7x1X.js → index-D3XaKpZW.js} +46 -44
  3. package/dashboard-dist/assets/index-D3XaKpZW.js.map +1 -0
  4. package/dashboard-dist/index.html +2 -2
  5. package/dist/agent-farm/cli.d.ts.map +1 -1
  6. package/dist/agent-farm/cli.js +154 -0
  7. package/dist/agent-farm/cli.js.map +1 -1
  8. package/dist/agent-farm/commands/cleanup.d.ts.map +1 -1
  9. package/dist/agent-farm/commands/cleanup.js +16 -0
  10. package/dist/agent-farm/commands/cleanup.js.map +1 -1
  11. package/dist/agent-farm/commands/inbox.d.ts +42 -0
  12. package/dist/agent-farm/commands/inbox.d.ts.map +1 -0
  13. package/dist/agent-farm/commands/inbox.js +129 -0
  14. package/dist/agent-farm/commands/inbox.js.map +1 -0
  15. package/dist/agent-farm/commands/interrupt.d.ts +20 -0
  16. package/dist/agent-farm/commands/interrupt.d.ts.map +1 -0
  17. package/dist/agent-farm/commands/interrupt.js +65 -0
  18. package/dist/agent-farm/commands/interrupt.js.map +1 -0
  19. package/dist/agent-farm/commands/reset/constants.d.ts +52 -0
  20. package/dist/agent-farm/commands/reset/constants.d.ts.map +1 -0
  21. package/dist/agent-farm/commands/reset/constants.js +52 -0
  22. package/dist/agent-farm/commands/reset/constants.js.map +1 -0
  23. package/dist/agent-farm/commands/reset/context.d.ts +230 -0
  24. package/dist/agent-farm/commands/reset/context.d.ts.map +1 -0
  25. package/dist/agent-farm/commands/reset/context.js +428 -0
  26. package/dist/agent-farm/commands/reset/context.js.map +1 -0
  27. package/dist/agent-farm/commands/reset/index.d.ts +192 -0
  28. package/dist/agent-farm/commands/reset/index.d.ts.map +1 -0
  29. package/dist/agent-farm/commands/reset/index.js +488 -0
  30. package/dist/agent-farm/commands/reset/index.js.map +1 -0
  31. package/dist/agent-farm/commands/reset/receipt.d.ts +97 -0
  32. package/dist/agent-farm/commands/reset/receipt.d.ts.map +1 -0
  33. package/dist/agent-farm/commands/reset/receipt.js +149 -0
  34. package/dist/agent-farm/commands/reset/receipt.js.map +1 -0
  35. package/dist/agent-farm/commands/reset/reorient.d.ts +117 -0
  36. package/dist/agent-farm/commands/reset/reorient.d.ts.map +1 -0
  37. package/dist/agent-farm/commands/reset/reorient.js +313 -0
  38. package/dist/agent-farm/commands/reset/reorient.js.map +1 -0
  39. package/dist/agent-farm/commands/reset.d.ts +34 -0
  40. package/dist/agent-farm/commands/reset.d.ts.map +1 -0
  41. package/dist/agent-farm/commands/reset.js +309 -0
  42. package/dist/agent-farm/commands/reset.js.map +1 -0
  43. package/dist/agent-farm/commands/send.d.ts.map +1 -1
  44. package/dist/agent-farm/commands/send.js +49 -8
  45. package/dist/agent-farm/commands/send.js.map +1 -1
  46. package/dist/agent-farm/commands/spawn-worktree.d.ts +105 -6
  47. package/dist/agent-farm/commands/spawn-worktree.d.ts.map +1 -1
  48. package/dist/agent-farm/commands/spawn-worktree.js +289 -66
  49. package/dist/agent-farm/commands/spawn-worktree.js.map +1 -1
  50. package/dist/agent-farm/commands/spawn.d.ts.map +1 -1
  51. package/dist/agent-farm/commands/spawn.js +13 -1
  52. package/dist/agent-farm/commands/spawn.js.map +1 -1
  53. package/dist/agent-farm/commands/status.d.ts.map +1 -1
  54. package/dist/agent-farm/commands/status.js +80 -8
  55. package/dist/agent-farm/commands/status.js.map +1 -1
  56. package/dist/agent-farm/commands/tower.d.ts.map +1 -1
  57. package/dist/agent-farm/commands/tower.js +13 -0
  58. package/dist/agent-farm/commands/tower.js.map +1 -1
  59. package/dist/agent-farm/db/index.d.ts +1 -1
  60. package/dist/agent-farm/db/index.d.ts.map +1 -1
  61. package/dist/agent-farm/db/index.js +80 -1
  62. package/dist/agent-farm/db/index.js.map +1 -1
  63. package/dist/agent-farm/db/mailbox.d.ts +222 -0
  64. package/dist/agent-farm/db/mailbox.d.ts.map +1 -0
  65. package/dist/agent-farm/db/mailbox.js +304 -0
  66. package/dist/agent-farm/db/mailbox.js.map +1 -0
  67. package/dist/agent-farm/db/schema.d.ts +1 -1
  68. package/dist/agent-farm/db/schema.d.ts.map +1 -1
  69. package/dist/agent-farm/db/schema.js +35 -0
  70. package/dist/agent-farm/db/schema.js.map +1 -1
  71. package/dist/agent-farm/db/types.d.ts +45 -0
  72. package/dist/agent-farm/db/types.d.ts.map +1 -1
  73. package/dist/agent-farm/db/types.js.map +1 -1
  74. package/dist/agent-farm/lib/builder-lookup.d.ts +1 -1
  75. package/dist/agent-farm/lib/builder-lookup.js +2 -2
  76. package/dist/agent-farm/lib/builder-lookup.js.map +1 -1
  77. package/dist/agent-farm/lib/reconnect-backoff.d.ts +64 -0
  78. package/dist/agent-farm/lib/reconnect-backoff.d.ts.map +1 -0
  79. package/dist/agent-farm/lib/reconnect-backoff.js +57 -0
  80. package/dist/agent-farm/lib/reconnect-backoff.js.map +1 -0
  81. package/dist/agent-farm/lib/tower-client.d.ts +16 -6
  82. package/dist/agent-farm/lib/tower-client.d.ts.map +1 -1
  83. package/dist/agent-farm/lib/tower-client.js +37 -6
  84. package/dist/agent-farm/lib/tower-client.js.map +1 -1
  85. package/dist/agent-farm/lib/tunnel-client.d.ts +69 -1
  86. package/dist/agent-farm/lib/tunnel-client.d.ts.map +1 -1
  87. package/dist/agent-farm/lib/tunnel-client.js +225 -30
  88. package/dist/agent-farm/lib/tunnel-client.js.map +1 -1
  89. package/dist/agent-farm/servers/canvas-relay.d.ts +60 -0
  90. package/dist/agent-farm/servers/canvas-relay.d.ts.map +1 -0
  91. package/dist/agent-farm/servers/canvas-relay.js +376 -0
  92. package/dist/agent-farm/servers/canvas-relay.js.map +1 -0
  93. package/dist/agent-farm/servers/cron-delivery.d.ts +72 -0
  94. package/dist/agent-farm/servers/cron-delivery.d.ts.map +1 -0
  95. package/dist/agent-farm/servers/cron-delivery.js +80 -0
  96. package/dist/agent-farm/servers/cron-delivery.js.map +1 -0
  97. package/dist/agent-farm/servers/delayed-send.d.ts +85 -0
  98. package/dist/agent-farm/servers/delayed-send.d.ts.map +1 -0
  99. package/dist/agent-farm/servers/delayed-send.js +165 -0
  100. package/dist/agent-farm/servers/delayed-send.js.map +1 -0
  101. package/dist/agent-farm/servers/gate-profiles.d.ts +67 -0
  102. package/dist/agent-farm/servers/gate-profiles.d.ts.map +1 -0
  103. package/dist/agent-farm/servers/gate-profiles.js +113 -0
  104. package/dist/agent-farm/servers/gate-profiles.js.map +1 -0
  105. package/dist/agent-farm/servers/mailbox-delivery.d.ts +370 -0
  106. package/dist/agent-farm/servers/mailbox-delivery.d.ts.map +1 -0
  107. package/dist/agent-farm/servers/mailbox-delivery.js +617 -0
  108. package/dist/agent-farm/servers/mailbox-delivery.js.map +1 -0
  109. package/dist/agent-farm/servers/mailbox-wiring.d.ts +125 -0
  110. package/dist/agent-farm/servers/mailbox-wiring.d.ts.map +1 -0
  111. package/dist/agent-farm/servers/mailbox-wiring.js +425 -0
  112. package/dist/agent-farm/servers/mailbox-wiring.js.map +1 -0
  113. package/dist/agent-farm/servers/message-write.d.ts +53 -1
  114. package/dist/agent-farm/servers/message-write.d.ts.map +1 -1
  115. package/dist/agent-farm/servers/message-write.js +63 -0
  116. package/dist/agent-farm/servers/message-write.js.map +1 -1
  117. package/dist/agent-farm/servers/overview.d.ts +19 -0
  118. package/dist/agent-farm/servers/overview.d.ts.map +1 -1
  119. package/dist/agent-farm/servers/overview.js +100 -4
  120. package/dist/agent-farm/servers/overview.js.map +1 -1
  121. package/dist/agent-farm/servers/render-gate.d.ts +141 -0
  122. package/dist/agent-farm/servers/render-gate.d.ts.map +1 -0
  123. package/dist/agent-farm/servers/render-gate.js +251 -0
  124. package/dist/agent-farm/servers/render-gate.js.map +1 -0
  125. package/dist/agent-farm/servers/session-submit.d.ts +90 -0
  126. package/dist/agent-farm/servers/session-submit.d.ts.map +1 -0
  127. package/dist/agent-farm/servers/session-submit.js +127 -0
  128. package/dist/agent-farm/servers/session-submit.js.map +1 -0
  129. package/dist/agent-farm/servers/tower-cron.d.ts +10 -7
  130. package/dist/agent-farm/servers/tower-cron.d.ts.map +1 -1
  131. package/dist/agent-farm/servers/tower-cron.js +58 -53
  132. package/dist/agent-farm/servers/tower-cron.js.map +1 -1
  133. package/dist/agent-farm/servers/tower-instances.d.ts +14 -2
  134. package/dist/agent-farm/servers/tower-instances.d.ts.map +1 -1
  135. package/dist/agent-farm/servers/tower-instances.js +78 -16
  136. package/dist/agent-farm/servers/tower-instances.js.map +1 -1
  137. package/dist/agent-farm/servers/tower-messages.d.ts +38 -1
  138. package/dist/agent-farm/servers/tower-messages.d.ts.map +1 -1
  139. package/dist/agent-farm/servers/tower-messages.js +106 -1
  140. package/dist/agent-farm/servers/tower-messages.js.map +1 -1
  141. package/dist/agent-farm/servers/tower-routes.d.ts +16 -4
  142. package/dist/agent-farm/servers/tower-routes.d.ts.map +1 -1
  143. package/dist/agent-farm/servers/tower-routes.js +826 -145
  144. package/dist/agent-farm/servers/tower-routes.js.map +1 -1
  145. package/dist/agent-farm/servers/tower-server.js +188 -34
  146. package/dist/agent-farm/servers/tower-server.js.map +1 -1
  147. package/dist/agent-farm/servers/tower-terminals.d.ts +23 -2
  148. package/dist/agent-farm/servers/tower-terminals.d.ts.map +1 -1
  149. package/dist/agent-farm/servers/tower-terminals.js +134 -127
  150. package/dist/agent-farm/servers/tower-terminals.js.map +1 -1
  151. package/dist/agent-farm/servers/tower-tunnel.d.ts.map +1 -1
  152. package/dist/agent-farm/servers/tower-tunnel.js +63 -4
  153. package/dist/agent-farm/servers/tower-tunnel.js.map +1 -1
  154. package/dist/agent-farm/servers/tower-types.d.ts +2 -1
  155. package/dist/agent-farm/servers/tower-types.d.ts.map +1 -1
  156. package/dist/agent-farm/servers/tower-utils.d.ts +64 -1
  157. package/dist/agent-farm/servers/tower-utils.d.ts.map +1 -1
  158. package/dist/agent-farm/servers/tower-utils.js +168 -1
  159. package/dist/agent-farm/servers/tower-utils.js.map +1 -1
  160. package/dist/agent-farm/servers/tower-websocket.d.ts +6 -1
  161. package/dist/agent-farm/servers/tower-websocket.d.ts.map +1 -1
  162. package/dist/agent-farm/servers/tower-websocket.js +95 -57
  163. package/dist/agent-farm/servers/tower-websocket.js.map +1 -1
  164. package/dist/agent-farm/servers/write-queue.d.ts +35 -0
  165. package/dist/agent-farm/servers/write-queue.d.ts.map +1 -0
  166. package/dist/agent-farm/servers/write-queue.js +56 -0
  167. package/dist/agent-farm/servers/write-queue.js.map +1 -0
  168. package/dist/agent-farm/types.d.ts +39 -0
  169. package/dist/agent-farm/types.d.ts.map +1 -1
  170. package/dist/agent-farm/utils/agent-names.d.ts +2 -2
  171. package/dist/agent-farm/utils/agent-names.d.ts.map +1 -1
  172. package/dist/agent-farm/utils/agent-names.js +3 -3
  173. package/dist/agent-farm/utils/agent-names.js.map +1 -1
  174. package/dist/agent-farm/utils/architect-name.d.ts +2 -2
  175. package/dist/agent-farm/utils/architect-name.d.ts.map +1 -1
  176. package/dist/agent-farm/utils/architect-name.js +3 -3
  177. package/dist/agent-farm/utils/architect-name.js.map +1 -1
  178. package/dist/agent-farm/utils/config.d.ts +13 -0
  179. package/dist/agent-farm/utils/config.d.ts.map +1 -1
  180. package/dist/agent-farm/utils/config.js +33 -1
  181. package/dist/agent-farm/utils/config.js.map +1 -1
  182. package/dist/agent-farm/utils/harness.d.ts +103 -7
  183. package/dist/agent-farm/utils/harness.d.ts.map +1 -1
  184. package/dist/agent-farm/utils/harness.js +126 -19
  185. package/dist/agent-farm/utils/harness.js.map +1 -1
  186. package/dist/agent-farm/utils/message-format.d.ts +8 -0
  187. package/dist/agent-farm/utils/message-format.d.ts.map +1 -1
  188. package/dist/agent-farm/utils/message-format.js +20 -0
  189. package/dist/agent-farm/utils/message-format.js.map +1 -1
  190. package/dist/agent-farm/utils/server-utils.d.ts +80 -4
  191. package/dist/agent-farm/utils/server-utils.d.ts.map +1 -1
  192. package/dist/agent-farm/utils/server-utils.js +286 -5
  193. package/dist/agent-farm/utils/server-utils.js.map +1 -1
  194. package/dist/cli.d.ts.map +1 -1
  195. package/dist/cli.js +6 -32
  196. package/dist/cli.js.map +1 -1
  197. package/dist/commands/consult/cli-options.d.ts +34 -0
  198. package/dist/commands/consult/cli-options.d.ts.map +1 -0
  199. package/dist/commands/consult/cli-options.js +67 -0
  200. package/dist/commands/consult/cli-options.js.map +1 -0
  201. package/dist/commands/consult/index.d.ts +56 -2
  202. package/dist/commands/consult/index.d.ts.map +1 -1
  203. package/dist/commands/consult/index.js +272 -28
  204. package/dist/commands/consult/index.js.map +1 -1
  205. package/dist/commands/consult/metrics.d.ts +42 -0
  206. package/dist/commands/consult/metrics.d.ts.map +1 -1
  207. package/dist/commands/consult/metrics.js +129 -9
  208. package/dist/commands/consult/metrics.js.map +1 -1
  209. package/dist/commands/doctor.d.ts.map +1 -1
  210. package/dist/commands/doctor.js +71 -19
  211. package/dist/commands/doctor.js.map +1 -1
  212. package/dist/commands/porch/checks.d.ts +23 -0
  213. package/dist/commands/porch/checks.d.ts.map +1 -1
  214. package/dist/commands/porch/checks.js +60 -0
  215. package/dist/commands/porch/checks.js.map +1 -1
  216. package/dist/commands/porch/config.d.ts +20 -0
  217. package/dist/commands/porch/config.d.ts.map +1 -1
  218. package/dist/commands/porch/config.js +20 -0
  219. package/dist/commands/porch/config.js.map +1 -1
  220. package/dist/commands/porch/index.js +21 -28
  221. package/dist/commands/porch/index.js.map +1 -1
  222. package/dist/commands/porch/next.d.ts.map +1 -1
  223. package/dist/commands/porch/next.js +2 -41
  224. package/dist/commands/porch/next.js.map +1 -1
  225. package/dist/lib/config.d.ts +69 -3
  226. package/dist/lib/config.d.ts.map +1 -1
  227. package/dist/lib/config.js +67 -3
  228. package/dist/lib/config.js.map +1 -1
  229. package/dist/lib/consult-lanes.d.ts +149 -0
  230. package/dist/lib/consult-lanes.d.ts.map +1 -0
  231. package/dist/lib/consult-lanes.js +360 -0
  232. package/dist/lib/consult-lanes.js.map +1 -0
  233. package/dist/lib/forge-contracts.d.ts +9 -0
  234. package/dist/lib/forge-contracts.d.ts.map +1 -1
  235. package/dist/lib/forge-contracts.js.map +1 -1
  236. package/dist/lib/github.d.ts +15 -1
  237. package/dist/lib/github.d.ts.map +1 -1
  238. package/dist/lib/github.js +18 -1
  239. package/dist/lib/github.js.map +1 -1
  240. package/dist/lib/prompt-behavior-metrics.d.ts +67 -0
  241. package/dist/lib/prompt-behavior-metrics.d.ts.map +1 -0
  242. package/dist/lib/prompt-behavior-metrics.js +290 -0
  243. package/dist/lib/prompt-behavior-metrics.js.map +1 -0
  244. package/dist/lib/skeleton.d.ts +22 -1
  245. package/dist/lib/skeleton.d.ts.map +1 -1
  246. package/dist/lib/skeleton.js +120 -0
  247. package/dist/lib/skeleton.js.map +1 -1
  248. package/dist/lib/test-env.d.ts +74 -0
  249. package/dist/lib/test-env.d.ts.map +1 -0
  250. package/dist/lib/test-env.js +92 -0
  251. package/dist/lib/test-env.js.map +1 -0
  252. package/dist/terminal/attach-replay.d.ts +39 -0
  253. package/dist/terminal/attach-replay.d.ts.map +1 -0
  254. package/dist/terminal/attach-replay.js +76 -0
  255. package/dist/terminal/attach-replay.js.map +1 -0
  256. package/dist/terminal/pty-manager.d.ts +2 -0
  257. package/dist/terminal/pty-manager.d.ts.map +1 -1
  258. package/dist/terminal/pty-manager.js +51 -23
  259. package/dist/terminal/pty-manager.js.map +1 -1
  260. package/dist/terminal/pty-session.d.ts +201 -1
  261. package/dist/terminal/pty-session.d.ts.map +1 -1
  262. package/dist/terminal/pty-session.js +327 -46
  263. package/dist/terminal/pty-session.js.map +1 -1
  264. package/dist/terminal/ring-buffer.d.ts +39 -6
  265. package/dist/terminal/ring-buffer.d.ts.map +1 -1
  266. package/dist/terminal/ring-buffer.js +74 -6
  267. package/dist/terminal/ring-buffer.js.map +1 -1
  268. package/dist/terminal/session-manager.d.ts +53 -0
  269. package/dist/terminal/session-manager.d.ts.map +1 -1
  270. package/dist/terminal/session-manager.js +94 -9
  271. package/dist/terminal/session-manager.js.map +1 -1
  272. package/dist/terminal/session-screen.d.ts +116 -0
  273. package/dist/terminal/session-screen.d.ts.map +1 -0
  274. package/dist/terminal/session-screen.js +180 -0
  275. package/dist/terminal/session-screen.js.map +1 -0
  276. package/dist/terminal/shellper-main.js +2 -1
  277. package/dist/terminal/shellper-main.js.map +1 -1
  278. package/dist/terminal/shellper-process.d.ts +1 -1
  279. package/dist/terminal/shellper-process.d.ts.map +1 -1
  280. package/dist/terminal/shellper-process.js +17 -8
  281. package/dist/terminal/shellper-process.js.map +1 -1
  282. package/dist/terminal/shellper-replay-buffer.d.ts +69 -7
  283. package/dist/terminal/shellper-replay-buffer.d.ts.map +1 -1
  284. package/dist/terminal/shellper-replay-buffer.js +167 -31
  285. package/dist/terminal/shellper-replay-buffer.js.map +1 -1
  286. package/package.json +13 -8
  287. package/scripts/forge/gitea/pr-view.sh +4 -1
  288. package/scripts/forge/github/pr-view.sh +1 -1
  289. package/scripts/forge/gitlab/pr-view.sh +4 -1
  290. package/skeleton/.claude/skills/afx/SKILL.md +68 -1
  291. package/skeleton/.claude/skills/arch-init/SKILL.md +22 -9
  292. package/skeleton/.claude/skills/arch-save/SKILL.md +183 -0
  293. package/skeleton/.claude/skills/codev/SKILL.md +31 -0
  294. package/skeleton/.claude/skills/runnable-worktrees/SKILL.md +119 -0
  295. package/skeleton/.codex/skills/afx/SKILL.md +68 -1
  296. package/skeleton/.codex/skills/arch-init/SKILL.md +22 -9
  297. package/skeleton/.codex/skills/arch-save/SKILL.md +183 -0
  298. package/skeleton/.codex/skills/codev/SKILL.md +31 -0
  299. package/skeleton/.codex/skills/runnable-worktrees/SKILL.md +119 -0
  300. package/skeleton/protocols/air/builder-prompt.md +28 -47
  301. package/skeleton/protocols/air/consult-types/impl-review.md +17 -34
  302. package/skeleton/protocols/air/consult-types/pr-review.md +14 -37
  303. package/skeleton/protocols/air/prompts/implement.md +20 -73
  304. package/skeleton/protocols/air/prompts/pr.md +22 -54
  305. package/skeleton/protocols/air/protocol.md +40 -71
  306. package/skeleton/protocols/aspir/builder-prompt.md +29 -66
  307. package/skeleton/protocols/aspir/consult-types/impl-review.md +17 -44
  308. package/skeleton/protocols/aspir/consult-types/phase-review.md +17 -44
  309. package/skeleton/protocols/aspir/consult-types/plan-review.md +14 -38
  310. package/skeleton/protocols/aspir/consult-types/pr-review.md +13 -39
  311. package/skeleton/protocols/aspir/consult-types/spec-review.md +13 -33
  312. package/skeleton/protocols/aspir/prompts/implement.md +27 -196
  313. package/skeleton/protocols/aspir/prompts/plan.md +21 -85
  314. package/skeleton/protocols/aspir/prompts/review.md +29 -228
  315. package/skeleton/protocols/aspir/prompts/specify.md +25 -111
  316. package/skeleton/protocols/aspir/protocol.json +10 -0
  317. package/skeleton/protocols/aspir/protocol.md +36 -82
  318. package/skeleton/protocols/bugfix/builder-prompt.md +23 -45
  319. package/skeleton/protocols/bugfix/consult-types/impl-review.md +21 -45
  320. package/skeleton/protocols/bugfix/consult-types/pr-review.md +18 -52
  321. package/skeleton/protocols/bugfix/prompts/fix.md +16 -61
  322. package/skeleton/protocols/bugfix/prompts/investigate.md +18 -62
  323. package/skeleton/protocols/bugfix/prompts/pr.md +22 -57
  324. package/skeleton/protocols/bugfix/protocol.md +44 -50
  325. package/skeleton/protocols/experiment/builder-prompt.md +25 -58
  326. package/skeleton/protocols/experiment/protocol.md +22 -188
  327. package/skeleton/protocols/experiment/templates/notes.md +11 -71
  328. package/skeleton/protocols/maintain/builder-prompt.md +24 -45
  329. package/skeleton/protocols/maintain/consult-types/impl-review.md +17 -44
  330. package/skeleton/protocols/maintain/consult-types/pr-review.md +13 -39
  331. package/skeleton/protocols/maintain/prompts/maintain.md +1 -1
  332. package/skeleton/protocols/maintain/protocol.md +32 -266
  333. package/skeleton/protocols/maintain/templates/maintenance-run.md +11 -0
  334. package/skeleton/protocols/pir/builder-prompt.md +31 -64
  335. package/skeleton/protocols/pir/consult-types/impl-review.md +17 -50
  336. package/skeleton/protocols/pir/consult-types/pr-review.md +11 -40
  337. package/skeleton/protocols/pir/prompts/implement.md +2 -3
  338. package/skeleton/protocols/pir/prompts/plan.md +1 -4
  339. package/skeleton/protocols/pir/prompts/review.md +2 -2
  340. package/skeleton/protocols/pir/protocol.md +54 -177
  341. package/skeleton/protocols/research/builder-prompt.md +27 -58
  342. package/skeleton/protocols/research/protocol.md +28 -153
  343. package/skeleton/protocols/spike/builder-prompt.md +30 -48
  344. package/skeleton/protocols/spike/protocol.md +24 -107
  345. package/skeleton/protocols/spike/templates/findings.md +9 -39
  346. package/skeleton/protocols/spir/builder-prompt.md +33 -62
  347. package/skeleton/protocols/spir/consult-types/impl-review.md +17 -44
  348. package/skeleton/protocols/spir/consult-types/phase-review.md +17 -44
  349. package/skeleton/protocols/spir/consult-types/plan-review.md +14 -38
  350. package/skeleton/protocols/spir/consult-types/pr-review.md +13 -39
  351. package/skeleton/protocols/spir/consult-types/spec-review.md +13 -33
  352. package/skeleton/protocols/spir/prompts/implement.md +26 -195
  353. package/skeleton/protocols/spir/prompts/plan.md +20 -84
  354. package/skeleton/protocols/spir/prompts/review.md +28 -227
  355. package/skeleton/protocols/spir/prompts/specify.md +24 -110
  356. package/skeleton/protocols/spir/protocol.json +10 -0
  357. package/skeleton/protocols/spir/protocol.md +84 -633
  358. package/skeleton/protocols/spir/templates/plan.md +28 -147
  359. package/skeleton/protocols/spir/templates/review.md +21 -80
  360. package/skeleton/protocols/spir/templates/spec.md +24 -118
  361. package/skeleton/resources/commands/agent-farm.md +262 -0
  362. package/skeleton/resources/commands/consult.md +236 -8
  363. package/skeleton/resources/commands/overview.md +1 -0
  364. package/skeleton/roles/architect.md +67 -317
  365. package/skeleton/roles/builder.md +76 -191
  366. package/skeleton/templates/AGENTS.md +2 -0
  367. package/skeleton/templates/CLAUDE.md +2 -0
  368. package/templates/3d-viewer.html +32 -4
  369. package/templates/open.html +58 -12
  370. package/templates/tower.html +65 -9
  371. package/templates/vendor/three-3MFLoader.js +1478 -0
  372. package/templates/vendor/three-STLLoader.js +410 -0
  373. package/templates/vendor/three-TrackballControls.js +828 -0
  374. package/templates/vendor/three-fflate.module.js +2474 -0
  375. package/templates/vendor/three.module.js +53044 -0
  376. package/dashboard-dist/assets/index-BZ1x7x1X.js.map +0 -1
  377. package/dashboard-dist/assets/index-DB1KBSNE.css +0 -32
  378. package/dist/agent-farm/servers/send-buffer.d.ts +0 -59
  379. package/dist/agent-farm/servers/send-buffer.d.ts.map +0 -1
  380. package/dist/agent-farm/servers/send-buffer.js +0 -116
  381. package/dist/agent-farm/servers/send-buffer.js.map +0 -1
  382. package/skeleton/porch/prompts/defend.md +0 -108
  383. package/skeleton/porch/prompts/diagnose.md +0 -70
  384. package/skeleton/porch/prompts/evaluate.md +0 -132
  385. package/skeleton/porch/prompts/fix.md +0 -59
  386. package/skeleton/porch/prompts/implement.md +0 -88
  387. package/skeleton/porch/prompts/plan.md +0 -74
  388. package/skeleton/porch/prompts/pr.md +0 -84
  389. package/skeleton/porch/prompts/review.md +0 -249
  390. package/skeleton/porch/prompts/specify.md +0 -53
  391. package/skeleton/porch/prompts/test.md +0 -63
  392. package/skeleton/protocols/aspir/templates/plan.md +0 -184
  393. package/skeleton/protocols/aspir/templates/review.md +0 -120
  394. package/skeleton/protocols/aspir/templates/spec.md +0 -154
@@ -1,184 +0,0 @@
1
- # Plan: [Title]
2
-
3
- ## Metadata
4
- - **ID**: plan-[YYYY-MM-DD]-[short-name]
5
- - **Status**: draft
6
- - **Specification**: [Link to codev/specs/spec-file.md]
7
- - **Created**: [YYYY-MM-DD]
8
-
9
- ## Executive Summary
10
- [Brief overview of the implementation approach chosen and why. Reference the specification's selected approach.]
11
-
12
- ## Success Metrics
13
- [Copy from specification and add implementation-specific metrics]
14
- - [ ] All specification criteria met
15
- - [ ] Test coverage >90%
16
- - [ ] Performance benchmarks achieved
17
- - [ ] Zero critical security issues
18
- - [ ] Documentation complete
19
-
20
- ## Phases (Machine Readable)
21
-
22
- <!-- REQUIRED: porch uses this JSON to track phase progress. Update this when adding/removing phases. -->
23
-
24
- ```json
25
- {
26
- "phases": [
27
- {"id": "phase_1", "title": "Phase 1 Title Here"},
28
- {"id": "phase_2", "title": "Phase 2 Title Here"},
29
- {"id": "phase_3", "title": "Phase 3 Title Here"}
30
- ]
31
- }
32
- ```
33
-
34
- ## Phase Breakdown
35
-
36
- ### Phase 1: [Descriptive Name]
37
- **Dependencies**: None
38
-
39
- #### Objectives
40
- - [Clear, single objective for this phase]
41
- - [What value does this phase deliver?]
42
-
43
- #### Deliverables
44
- - [ ] [Specific deliverable 1]
45
- - [ ] [Specific deliverable 2]
46
- - [ ] [Tests for this phase]
47
- - [ ] [Documentation updates]
48
-
49
- #### Implementation Details
50
- [Specific technical approach for this phase. Include:
51
- - Key files/modules to create or modify
52
- - Architectural decisions
53
- - API contracts
54
- - Data models]
55
-
56
- #### Acceptance Criteria
57
- - [ ] [Testable criterion 1]
58
- - [ ] [Testable criterion 2]
59
- - [ ] All tests pass
60
- - [ ] Code review completed
61
-
62
- #### Test Plan
63
- - **Unit Tests**: [What to test]
64
- - **Integration Tests**: [What to test]
65
- - **Manual Testing**: [Scenarios to verify]
66
-
67
- #### Rollback Strategy
68
- [How to revert this phase if issues arise]
69
-
70
- #### Risks
71
- - **Risk**: [Specific risk for this phase]
72
- - **Mitigation**: [How to address]
73
-
74
- ---
75
-
76
- ### Phase 2: [Descriptive Name]
77
- **Dependencies**: Phase 1
78
-
79
- [Repeat structure for each phase]
80
-
81
- ---
82
-
83
- ### Phase 3: [Descriptive Name]
84
- **Dependencies**: Phase 2
85
-
86
- [Continue for all phases]
87
-
88
- ## Dependency Map
89
- ```
90
- Phase 1 ──→ Phase 2 ──→ Phase 3
91
- ↓
92
- Phase 4 (optional)
93
- ```
94
-
95
- ## Resource Requirements
96
- ### Development Resources
97
- - **Engineers**: [Expertise needed]
98
- - **Environment**: [Dev/staging requirements]
99
-
100
- ### Infrastructure
101
- - [Database changes]
102
- - [New services]
103
- - [Configuration updates]
104
- - [Monitoring additions]
105
-
106
- ## Integration Points
107
- ### External Systems
108
- - **System**: [Name]
109
- - **Integration Type**: [API/Database/Message Queue]
110
- - **Phase**: [Which phase needs this]
111
- - **Fallback**: [What if unavailable]
112
-
113
- ### Internal Systems
114
- [Repeat structure]
115
-
116
- ## Risk Analysis
117
- ### Technical Risks
118
- | Risk | Probability | Impact | Mitigation | Owner |
119
- |------|------------|--------|------------|-------|
120
- | [Risk 1] | L/M/H | L/M/H | [Strategy] | [Name] |
121
-
122
- ### Schedule Risks
123
- | Risk | Probability | Impact | Mitigation | Owner |
124
- |------|------------|--------|------------|-------|
125
- | [Risk 1] | L/M/H | L/M/H | [Strategy] | [Name] |
126
-
127
- ## Validation Checkpoints
128
- 1. **After Phase 1**: [What to validate]
129
- 2. **After Phase 2**: [What to validate]
130
- 3. **Before Production**: [Final checks]
131
-
132
- ## Monitoring and Observability
133
- ### Metrics to Track
134
- - [Metric 1: Description and threshold]
135
- - [Metric 2: Description and threshold]
136
-
137
- ### Logging Requirements
138
- - [What to log and at what level]
139
- - [Retention requirements]
140
-
141
- ### Alerting
142
- - [Alert condition and severity]
143
- - [Who to notify]
144
-
145
- ## Documentation Updates Required
146
- - [ ] API documentation
147
- - [ ] Architecture diagrams
148
- - [ ] Runbooks
149
- - [ ] User guides
150
- - [ ] Configuration guides
151
-
152
- ## Post-Implementation Tasks
153
- - [ ] Performance validation
154
- - [ ] Security audit
155
- - [ ] Load testing
156
- - [ ] User acceptance testing
157
- - [ ] Monitoring validation
158
-
159
- ## Expert Review
160
- **Date**: [YYYY-MM-DD]
161
- **Model**: [Model consulted]
162
- **Key Feedback**:
163
- - [Feasibility assessment]
164
- - [Missing considerations]
165
- - [Risk identification]
166
- - [Alternative suggestions]
167
-
168
- **Plan Adjustments**:
169
- - [How the plan was modified based on feedback]
170
-
171
- ## Approval
172
- - [ ] Technical Lead Review
173
- - [ ] Engineering Manager Approval
174
- - [ ] Resource Allocation Confirmed
175
- - [ ] Expert AI Consultation Complete
176
-
177
- ## Change Log
178
- | Date | Change | Reason | Author |
179
- |------|--------|--------|--------|
180
- | [Date] | [What changed] | [Why] | [Who] |
181
-
182
- ## Notes
183
- [Additional context, assumptions, or considerations]
184
-
@@ -1,120 +0,0 @@
1
- # Review: [Feature/Project Name]
2
-
3
- ## Summary
4
-
5
- [1-3 sentences: what was built, how many phases, net outcome.]
6
-
7
- ## Spec Compliance
8
-
9
- - [x] AC1: [Description] (Phase N)
10
- - [x] AC2: [Description] (Phase N)
11
- - [ ] ACn: [Not met — reason]
12
-
13
- ## Deviations from Plan
14
-
15
- - **Phase N**: [What changed and why]
16
-
17
- ## Key Metrics
18
-
19
- - **Commits**: [N] on the branch
20
- - **Tests**: [N] passing ([N] existing + [N] new)
21
- - **Files created**: [list]
22
- - **Files deleted**: [list]
23
- - **Net LOC impact**: [+/-N lines]
24
-
25
- ## Timelog
26
-
27
- All times [timezone], [date range].
28
-
29
- | Time | Event |
30
- |------|-------|
31
- | HH:MM | First commit: [description] |
32
- | HH:MM | [Phase/milestone] |
33
- | — | **GATE: [gate-name]** (human approval required) |
34
- | HH:MM | Implementation begins |
35
- | HH:MM | Phase N complete after N iterations |
36
- | HH:MM | **GATE: pr** |
37
-
38
- ### Autonomous Operation
39
-
40
- | Period | Duration | Activity |
41
- |--------|----------|----------|
42
- | Spec + Plan | ~Nm | [Summary] |
43
- | Human gate wait | ~Nh Nm | Idle — waiting for approval |
44
- | Implementation → PR | ~Nh Nm | N phases, N consultation rounds |
45
-
46
- **Total wall clock** (first commit to pr): **Xh Ym**
47
- **Total autonomous work time** (excluding gate waits): **~Xh Ym**
48
- **Context window resets**: [N] (resumed automatically / required manual restart)
49
-
50
- ## Consultation Iteration Summary
51
-
52
- [N] consultation files produced ([N] rounds x [N] models). [N] APPROVE, [N] REQUEST_CHANGES, [N] COMMENT.
53
-
54
- | Phase | Iters | Who Blocked | What They Caught |
55
- |-------|-------|-------------|------------------|
56
- | Specify | N | [Model] | [Brief description] |
57
- | Plan | N | [Model] | [Brief description] |
58
- | Phase 1 | N | [Model] | [Brief description] |
59
- | Phase N | N | [Model] | [Brief description] |
60
- | Review | N | [Model] | [Brief description] |
61
-
62
- **Most frequent blocker**: [Model] — blocked in N of N rounds, focused on: [pattern].
63
-
64
- ### Avoidable Iterations
65
-
66
- Iterations that could have been prevented with better builder behavior:
67
-
68
- 1. **[Pattern]**: [Specific thing the builder should have done without needing reviewer feedback. E.g., "Run exhaustive grep before claiming all instances fixed."]
69
-
70
- 2. **[Pattern]**: [Another avoidable iteration pattern.]
71
-
72
- ## Consultation Feedback
73
-
74
- [For each phase that had consultation, summarize every reviewer's concerns and how the builder responded. Use **Addressed** (fixed), **Rebutted** (disagreed with reasoning), or **N/A** (out of scope/moot) for each concern. If all reviewers approved with no concerns: "No concerns raised — all consultations approved."]
75
-
76
- ### [Phase] Phase (Round N)
77
-
78
- #### Gemini
79
- - **Concern**: [Summary of concern]
80
- - **Addressed**: [What was changed]
81
-
82
- #### Codex
83
- - **Concern**: [Summary of concern]
84
- - **Rebutted**: [Why current approach is correct]
85
-
86
- #### Claude
87
- - No concerns raised (APPROVE)
88
-
89
- ## Lessons Learned
90
-
91
- ### What Went Well
92
- - [Specific positive observation — what worked and why]
93
-
94
- ### Challenges Encountered
95
- - **[Challenge]**: [How it was resolved. How many iterations it cost.]
96
-
97
- ### What Would Be Done Differently
98
- - [Actionable improvement for future builders]
99
-
100
- ## Architecture Updates
101
-
102
- [What you routed where — HOT `codev/resources/arch-critical.md` (tiny, capped, always-injected) vs COLD `codev/resources/arch.md` (reference) — or why no changes were needed.]
103
-
104
- - Routed: [hot | cold] — [fact/section] — [what was added/changed; note any demotion if the hot file was full]
105
- - Or: "No architecture updates needed — [brief reason]"
106
-
107
- ## Lessons Learned Updates
108
-
109
- [What you routed where — HOT `codev/resources/lessons-critical.md` (capped) vs COLD `codev/resources/lessons-learned.md` (reference) — or why no changes were needed.]
110
-
111
- - Routed: [hot | cold] — [category] — [lesson summary]
112
- - Or: "No lessons learned updates needed — [brief reason]"
113
-
114
- ## Technical Debt
115
-
116
- - [Any shortcuts taken or inconsistencies introduced]
117
-
118
- ## Follow-up Items
119
-
120
- - [Items identified for future work, outside this spec's scope]
@@ -1,154 +0,0 @@
1
- # Specification: [Title]
2
-
3
- <!--
4
- SPEC vs PLAN BOUNDARY:
5
- This spec defines WHAT and WHY. The plan defines HOW and WHEN.
6
-
7
- DO NOT include in this spec:
8
- - Implementation phases or steps
9
- - File paths to modify
10
- - Code examples or pseudocode
11
- - "First we will... then we will..."
12
-
13
- These belong in codev/plans/XXXX-*.md
14
- -->
15
-
16
- ## Metadata
17
- - **ID**: spec-[YYYY-MM-DD]-[short-name]
18
- - **Status**: draft
19
- - **Created**: [YYYY-MM-DD]
20
-
21
- ## Clarifying Questions Asked
22
- <!-- Document the questions you asked the user/stakeholder and their answers -->
23
- [List the questions you asked to understand the problem better and the responses received. This shows the discovery process.]
24
-
25
- ## Problem Statement
26
- [Clearly articulate the problem being solved. Include context about why this is important, who is affected, and what the current pain points are.]
27
-
28
- ## Current State
29
- [Describe how things work today. What are the limitations? What workarounds exist? Include specific examples.]
30
-
31
- ## Desired State
32
- [Describe the ideal solution. How should things work after implementation? What specific improvements will users see?]
33
-
34
- ## Stakeholders
35
- - **Primary Users**: [Who will directly use this feature?]
36
- - **Secondary Users**: [Who else is affected?]
37
- - **Technical Team**: [Who will implement and maintain this?]
38
- - **Business Owners**: [Who has decision authority?]
39
-
40
- ## Success Criteria
41
- - [ ] [Specific, measurable criterion 1]
42
- - [ ] [Specific, measurable criterion 2]
43
- - [ ] [Specific, measurable criterion 3]
44
- - [ ] All tests pass with >90% coverage
45
- - [ ] Performance benchmarks met (specify below)
46
- - [ ] Documentation updated
47
-
48
- ## Constraints
49
- ### Technical Constraints
50
- - [Existing system limitations]
51
- - [Technology stack requirements]
52
- - [Integration points]
53
-
54
- ### Business Constraints
55
- - [Timeline requirements]
56
- - [Budget considerations]
57
- - [Compliance requirements]
58
-
59
- ## Assumptions
60
- - [List assumptions being made]
61
- - [Include dependencies on other work]
62
- - [Note any prerequisites]
63
-
64
- ## Solution Approaches
65
-
66
- ### Approach 1: [Name]
67
- **Description**: [Brief overview of this approach]
68
-
69
- **Pros**:
70
- - [Advantage 1]
71
- - [Advantage 2]
72
-
73
- **Cons**:
74
- - [Disadvantage 1]
75
- - [Disadvantage 2]
76
-
77
- **Estimated Complexity**: [Low/Medium/High]
78
- **Risk Level**: [Low/Medium/High]
79
-
80
- ### Approach 2: [Name]
81
- [Repeat structure for additional approaches]
82
-
83
- [Add as many approaches as appropriate for the problem]
84
-
85
- ## Open Questions
86
-
87
- ### Critical (Blocks Progress)
88
- - [ ] [Question that must be answered before proceeding]
89
-
90
- ### Important (Affects Design)
91
- - [ ] [Question that influences technical decisions]
92
-
93
- ### Nice-to-Know (Optimization)
94
- - [ ] [Question that could improve the solution]
95
-
96
- ## Performance Requirements
97
- - **Response Time**: [e.g., <200ms p95]
98
- - **Throughput**: [e.g., 1000 requests/second]
99
- - **Resource Usage**: [e.g., <500MB memory]
100
- - **Availability**: [e.g., 99.9% uptime]
101
-
102
- ## Security Considerations
103
- - [Authentication requirements]
104
- - [Authorization model]
105
- - [Data privacy concerns]
106
- - [Audit requirements]
107
-
108
- ## Test Scenarios
109
- ### Functional Tests
110
- 1. [Scenario 1: Happy path]
111
- 2. [Scenario 2: Edge case]
112
- 3. [Scenario 3: Error condition]
113
-
114
- ### Non-Functional Tests
115
- 1. [Performance test scenario]
116
- 2. [Security test scenario]
117
- 3. [Load test scenario]
118
-
119
- ## Dependencies
120
- - **External Services**: [List any external APIs or services]
121
- - **Internal Systems**: [List internal dependencies]
122
- - **Libraries/Frameworks**: [List required libraries]
123
-
124
- ## References
125
- - [Link to relevant documentation in codev/ref/]
126
- - [Link to related specifications]
127
- - [Link to architectural diagrams]
128
- - [Link to research materials]
129
-
130
- ## Risks and Mitigation
131
- | Risk | Probability | Impact | Mitigation Strategy |
132
- |------|------------|--------|-------------------|
133
- | [Risk 1] | Low/Med/High | Low/Med/High | [How to address] |
134
- | [Risk 2] | Low/Med/High | Low/Med/High | [How to address] |
135
-
136
- ## Expert Consultation
137
- <!-- Only if user requested multi-agent consultation -->
138
- **Date**: [YYYY-MM-DD]
139
- **Models Consulted**: [e.g., GPT-5 and Gemini Pro]
140
- **Sections Updated**:
141
- - [Section name]: [Brief description of change based on consultation]
142
- - [Section name]: [Brief description of change based on consultation]
143
-
144
- Note: All consultation feedback has been incorporated directly into the relevant sections above.
145
-
146
- ## Approval
147
- - [ ] Technical Lead Review
148
- - [ ] Product Owner Review
149
- - [ ] Stakeholder Sign-off
150
- - [ ] Expert AI Consultation Complete
151
-
152
- ## Notes
153
- [Any additional context or considerations not covered above]
154
-