opencastle 1.3.0 → 1.4.0

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 (577) hide show
  1. package/README.md +102 -131
  2. package/bin/cli.mjs +20 -10
  3. package/dist/cli/adapters/claude-code.d.ts +5 -3
  4. package/dist/cli/adapters/claude-code.d.ts.map +1 -1
  5. package/dist/cli/adapters/claude-code.js +7 -3
  6. package/dist/cli/adapters/claude-code.js.map +1 -1
  7. package/dist/cli/adapters/single-file-base.d.ts +18 -0
  8. package/dist/cli/adapters/single-file-base.d.ts.map +1 -1
  9. package/dist/cli/adapters/single-file-base.js +29 -4
  10. package/dist/cli/adapters/single-file-base.js.map +1 -1
  11. package/dist/cli/agent-plugin.test.js +12 -0
  12. package/dist/cli/agent-plugin.test.js.map +1 -1
  13. package/dist/cli/agent-roster.test.js +0 -48
  14. package/dist/cli/agent-roster.test.js.map +1 -1
  15. package/dist/cli/bootstrap.d.ts.map +1 -1
  16. package/dist/cli/bootstrap.js +20 -0
  17. package/dist/cli/bootstrap.js.map +1 -1
  18. package/dist/cli/boundary.test.js +9 -7
  19. package/dist/cli/boundary.test.js.map +1 -1
  20. package/dist/cli/ci.d.ts.map +1 -1
  21. package/dist/cli/ci.js +6 -4
  22. package/dist/cli/ci.js.map +1 -1
  23. package/dist/cli/command-namespace.test.js +33 -0
  24. package/dist/cli/command-namespace.test.js.map +1 -1
  25. package/dist/cli/convoy/artifacts.d.ts +9 -2
  26. package/dist/cli/convoy/artifacts.d.ts.map +1 -1
  27. package/dist/cli/convoy/artifacts.js +13 -10
  28. package/dist/cli/convoy/artifacts.js.map +1 -1
  29. package/dist/cli/convoy/artifacts.test.js +4 -2
  30. package/dist/cli/convoy/artifacts.test.js.map +1 -1
  31. package/dist/cli/convoy/engine.d.ts +53 -23
  32. package/dist/cli/convoy/engine.d.ts.map +1 -1
  33. package/dist/cli/convoy/engine.git.test.d.ts +2 -0
  34. package/dist/cli/convoy/engine.git.test.d.ts.map +1 -0
  35. package/dist/cli/convoy/engine.git.test.js +435 -0
  36. package/dist/cli/convoy/engine.git.test.js.map +1 -0
  37. package/dist/cli/convoy/engine.js +1746 -2305
  38. package/dist/cli/convoy/engine.js.map +1 -1
  39. package/dist/cli/convoy/engine.test.js +698 -678
  40. package/dist/cli/convoy/engine.test.js.map +1 -1
  41. package/dist/cli/convoy/event-schemas.d.ts +2 -0
  42. package/dist/cli/convoy/event-schemas.d.ts.map +1 -1
  43. package/dist/cli/convoy/event-schemas.js +59 -57
  44. package/dist/cli/convoy/event-schemas.js.map +1 -1
  45. package/dist/cli/convoy/events.d.ts +4 -1
  46. package/dist/cli/convoy/events.d.ts.map +1 -1
  47. package/dist/cli/convoy/events.js +69 -84
  48. package/dist/cli/convoy/events.js.map +1 -1
  49. package/dist/cli/convoy/events.test.js +50 -9
  50. package/dist/cli/convoy/events.test.js.map +1 -1
  51. package/dist/cli/convoy/gates.d.ts +9 -4
  52. package/dist/cli/convoy/gates.d.ts.map +1 -1
  53. package/dist/cli/convoy/gates.js +29 -14
  54. package/dist/cli/convoy/gates.js.map +1 -1
  55. package/dist/cli/convoy/isolation.d.ts +32 -6
  56. package/dist/cli/convoy/isolation.d.ts.map +1 -1
  57. package/dist/cli/convoy/isolation.js +72 -34
  58. package/dist/cli/convoy/isolation.js.map +1 -1
  59. package/dist/cli/convoy/isolation.test.js +66 -42
  60. package/dist/cli/convoy/isolation.test.js.map +1 -1
  61. package/dist/cli/convoy/lock.d.ts.map +1 -1
  62. package/dist/cli/convoy/lock.js +25 -10
  63. package/dist/cli/convoy/lock.js.map +1 -1
  64. package/dist/cli/convoy/lock.test.js +12 -0
  65. package/dist/cli/convoy/lock.test.js.map +1 -1
  66. package/dist/cli/convoy/merge.d.ts +21 -4
  67. package/dist/cli/convoy/merge.d.ts.map +1 -1
  68. package/dist/cli/convoy/merge.js +69 -53
  69. package/dist/cli/convoy/merge.js.map +1 -1
  70. package/dist/cli/convoy/merge.test.js +23 -1
  71. package/dist/cli/convoy/merge.test.js.map +1 -1
  72. package/dist/cli/convoy/progress.d.ts +35 -0
  73. package/dist/cli/convoy/progress.d.ts.map +1 -0
  74. package/dist/cli/convoy/progress.js +103 -0
  75. package/dist/cli/convoy/progress.js.map +1 -0
  76. package/dist/cli/convoy/progress.test.d.ts +2 -0
  77. package/dist/cli/convoy/progress.test.d.ts.map +1 -0
  78. package/dist/cli/convoy/progress.test.js +53 -0
  79. package/dist/cli/convoy/progress.test.js.map +1 -0
  80. package/dist/cli/convoy/read-model.d.ts +468 -0
  81. package/dist/cli/convoy/read-model.d.ts.map +1 -0
  82. package/dist/cli/convoy/read-model.js +1132 -0
  83. package/dist/cli/convoy/read-model.js.map +1 -0
  84. package/dist/cli/convoy/read-model.test.d.ts +2 -0
  85. package/dist/cli/convoy/read-model.test.d.ts.map +1 -0
  86. package/dist/cli/convoy/read-model.test.js +609 -0
  87. package/dist/cli/convoy/read-model.test.js.map +1 -0
  88. package/dist/cli/convoy/redact.d.ts +34 -0
  89. package/dist/cli/convoy/redact.d.ts.map +1 -0
  90. package/dist/cli/convoy/redact.js +66 -0
  91. package/dist/cli/convoy/redact.js.map +1 -0
  92. package/dist/cli/convoy/redact.test.d.ts +2 -0
  93. package/dist/cli/convoy/redact.test.d.ts.map +1 -0
  94. package/dist/cli/convoy/redact.test.js +43 -0
  95. package/dist/cli/convoy/redact.test.js.map +1 -0
  96. package/dist/cli/convoy/reviewer.d.ts +65 -0
  97. package/dist/cli/convoy/reviewer.d.ts.map +1 -0
  98. package/dist/cli/convoy/reviewer.js +141 -0
  99. package/dist/cli/convoy/reviewer.js.map +1 -0
  100. package/dist/cli/convoy/reviewer.test.d.ts +2 -0
  101. package/dist/cli/convoy/reviewer.test.d.ts.map +1 -0
  102. package/dist/cli/convoy/reviewer.test.js +96 -0
  103. package/dist/cli/convoy/reviewer.test.js.map +1 -0
  104. package/dist/cli/convoy/schedule.d.ts +30 -0
  105. package/dist/cli/convoy/schedule.d.ts.map +1 -0
  106. package/dist/cli/convoy/schedule.js +111 -0
  107. package/dist/cli/convoy/schedule.js.map +1 -0
  108. package/dist/cli/convoy/schedule.test.d.ts +2 -0
  109. package/dist/cli/convoy/schedule.test.d.ts.map +1 -0
  110. package/dist/cli/convoy/schedule.test.js +45 -0
  111. package/dist/cli/convoy/schedule.test.js.map +1 -0
  112. package/dist/cli/convoy/spec-builder.d.ts +120 -30
  113. package/dist/cli/convoy/spec-builder.d.ts.map +1 -1
  114. package/dist/cli/convoy/spec-builder.js +438 -114
  115. package/dist/cli/convoy/spec-builder.js.map +1 -1
  116. package/dist/cli/convoy/spec-builder.test.js +419 -435
  117. package/dist/cli/convoy/spec-builder.test.js.map +1 -1
  118. package/dist/cli/convoy/spec-types.d.ts +46 -92
  119. package/dist/cli/convoy/spec-types.d.ts.map +1 -1
  120. package/dist/cli/convoy/store.d.ts +6 -1
  121. package/dist/cli/convoy/store.d.ts.map +1 -1
  122. package/dist/cli/convoy/store.js +111 -15
  123. package/dist/cli/convoy/store.js.map +1 -1
  124. package/dist/cli/convoy/store.test.js +59 -13
  125. package/dist/cli/convoy/store.test.js.map +1 -1
  126. package/dist/cli/convoy/types.d.ts +76 -113
  127. package/dist/cli/convoy/types.d.ts.map +1 -1
  128. package/dist/cli/convoy/types.js +6 -13
  129. package/dist/cli/convoy/types.js.map +1 -1
  130. package/dist/cli/convoy/worktree.d.ts +88 -3
  131. package/dist/cli/convoy/worktree.d.ts.map +1 -1
  132. package/dist/cli/convoy/worktree.js +282 -56
  133. package/dist/cli/convoy/worktree.js.map +1 -1
  134. package/dist/cli/convoy/worktree.test.js +132 -1
  135. package/dist/cli/convoy/worktree.test.js.map +1 -1
  136. package/dist/cli/convoy-args.test.js +9 -27
  137. package/dist/cli/convoy-args.test.js.map +1 -1
  138. package/dist/cli/convoy-cmd.d.ts +31 -6
  139. package/dist/cli/convoy-cmd.d.ts.map +1 -1
  140. package/dist/cli/convoy-cmd.js +150 -200
  141. package/dist/cli/convoy-cmd.js.map +1 -1
  142. package/dist/cli/convoy-cmd.test.d.ts +2 -0
  143. package/dist/cli/convoy-cmd.test.d.ts.map +1 -0
  144. package/dist/cli/convoy-cmd.test.js +144 -0
  145. package/dist/cli/convoy-cmd.test.js.map +1 -0
  146. package/dist/cli/dashboard.d.ts +24 -11
  147. package/dist/cli/dashboard.d.ts.map +1 -1
  148. package/dist/cli/dashboard.js +241 -303
  149. package/dist/cli/dashboard.js.map +1 -1
  150. package/dist/cli/dashboard.test.d.ts +2 -0
  151. package/dist/cli/dashboard.test.d.ts.map +1 -0
  152. package/dist/cli/dashboard.test.js +340 -0
  153. package/dist/cli/dashboard.test.js.map +1 -0
  154. package/dist/cli/dispatcher.test.js +41 -2
  155. package/dist/cli/dispatcher.test.js.map +1 -1
  156. package/dist/cli/docs-accuracy.test.js +36 -11
  157. package/dist/cli/docs-accuracy.test.js.map +1 -1
  158. package/dist/cli/doctor.d.ts.map +1 -1
  159. package/dist/cli/doctor.js +9 -6
  160. package/dist/cli/doctor.js.map +1 -1
  161. package/dist/cli/init-own-files.test.d.ts +2 -0
  162. package/dist/cli/init-own-files.test.d.ts.map +1 -0
  163. package/dist/cli/init-own-files.test.js +133 -0
  164. package/dist/cli/init-own-files.test.js.map +1 -0
  165. package/dist/cli/init.d.ts.map +1 -1
  166. package/dist/cli/init.js +106 -7
  167. package/dist/cli/init.js.map +1 -1
  168. package/dist/cli/init.test.js +5 -4
  169. package/dist/cli/init.test.js.map +1 -1
  170. package/dist/cli/layers.d.ts.map +1 -1
  171. package/dist/cli/layers.js +13 -4
  172. package/dist/cli/layers.js.map +1 -1
  173. package/dist/cli/lesson.d.ts.map +1 -1
  174. package/dist/cli/lesson.js +6 -5
  175. package/dist/cli/lesson.js.map +1 -1
  176. package/dist/cli/log.d.ts +39 -0
  177. package/dist/cli/log.d.ts.map +1 -1
  178. package/dist/cli/log.js +267 -93
  179. package/dist/cli/log.js.map +1 -1
  180. package/dist/cli/log.test.d.ts +2 -0
  181. package/dist/cli/log.test.d.ts.map +1 -0
  182. package/dist/cli/log.test.js +208 -0
  183. package/dist/cli/log.test.js.map +1 -0
  184. package/dist/cli/nearest.d.ts +18 -0
  185. package/dist/cli/nearest.d.ts.map +1 -0
  186. package/dist/cli/nearest.js +38 -0
  187. package/dist/cli/nearest.js.map +1 -0
  188. package/dist/cli/nearest.test.d.ts +2 -0
  189. package/dist/cli/nearest.test.d.ts.map +1 -0
  190. package/dist/cli/nearest.test.js +24 -0
  191. package/dist/cli/nearest.test.js.map +1 -0
  192. package/dist/cli/pipeline.d.ts +61 -0
  193. package/dist/cli/pipeline.d.ts.map +1 -1
  194. package/dist/cli/pipeline.flow.test.d.ts +2 -0
  195. package/dist/cli/pipeline.flow.test.d.ts.map +1 -0
  196. package/dist/cli/pipeline.flow.test.js +524 -0
  197. package/dist/cli/pipeline.flow.test.js.map +1 -0
  198. package/dist/cli/pipeline.js +471 -690
  199. package/dist/cli/pipeline.js.map +1 -1
  200. package/dist/cli/plan.d.ts +82 -31
  201. package/dist/cli/plan.d.ts.map +1 -1
  202. package/dist/cli/plan.js +167 -507
  203. package/dist/cli/plan.js.map +1 -1
  204. package/dist/cli/plan.test.d.ts +2 -0
  205. package/dist/cli/plan.test.d.ts.map +1 -0
  206. package/dist/cli/plan.test.js +158 -0
  207. package/dist/cli/plan.test.js.map +1 -0
  208. package/dist/cli/prompt.d.ts.map +1 -1
  209. package/dist/cli/prompt.js +9 -7
  210. package/dist/cli/prompt.js.map +1 -1
  211. package/dist/cli/prompt.test.js +20 -2
  212. package/dist/cli/prompt.test.js.map +1 -1
  213. package/dist/cli/remove.d.ts.map +1 -1
  214. package/dist/cli/remove.js +3 -1
  215. package/dist/cli/remove.js.map +1 -1
  216. package/dist/cli/review.d.ts.map +1 -1
  217. package/dist/cli/review.js +7 -1
  218. package/dist/cli/review.js.map +1 -1
  219. package/dist/cli/run/adapters/agent-process.d.ts +82 -0
  220. package/dist/cli/run/adapters/agent-process.d.ts.map +1 -0
  221. package/dist/cli/run/adapters/agent-process.js +224 -0
  222. package/dist/cli/run/adapters/agent-process.js.map +1 -0
  223. package/dist/cli/run/adapters/agent-process.test.d.ts +2 -0
  224. package/dist/cli/run/adapters/agent-process.test.d.ts.map +1 -0
  225. package/dist/cli/run/adapters/agent-process.test.js +159 -0
  226. package/dist/cli/run/adapters/agent-process.test.js.map +1 -0
  227. package/dist/cli/run/adapters/claude.d.ts +53 -2
  228. package/dist/cli/run/adapters/claude.d.ts.map +1 -1
  229. package/dist/cli/run/adapters/claude.js +147 -171
  230. package/dist/cli/run/adapters/claude.js.map +1 -1
  231. package/dist/cli/run/adapters/claude.test.js +197 -254
  232. package/dist/cli/run/adapters/claude.test.js.map +1 -1
  233. package/dist/cli/run/adapters/codex.d.ts +25 -2
  234. package/dist/cli/run/adapters/codex.d.ts.map +1 -1
  235. package/dist/cli/run/adapters/codex.js +113 -81
  236. package/dist/cli/run/adapters/codex.js.map +1 -1
  237. package/dist/cli/run/adapters/codex.test.js +116 -95
  238. package/dist/cli/run/adapters/codex.test.js.map +1 -1
  239. package/dist/cli/run/adapters/copilot.d.ts +35 -1
  240. package/dist/cli/run/adapters/copilot.d.ts.map +1 -1
  241. package/dist/cli/run/adapters/copilot.js +104 -287
  242. package/dist/cli/run/adapters/copilot.js.map +1 -1
  243. package/dist/cli/run/adapters/copilot.test.js +122 -282
  244. package/dist/cli/run/adapters/copilot.test.js.map +1 -1
  245. package/dist/cli/run/adapters/cursor.d.ts +25 -7
  246. package/dist/cli/run/adapters/cursor.d.ts.map +1 -1
  247. package/dist/cli/run/adapters/cursor.js +103 -156
  248. package/dist/cli/run/adapters/cursor.js.map +1 -1
  249. package/dist/cli/run/adapters/cursor.test.js +106 -218
  250. package/dist/cli/run/adapters/cursor.test.js.map +1 -1
  251. package/dist/cli/run/adapters/index.d.ts +34 -5
  252. package/dist/cli/run/adapters/index.d.ts.map +1 -1
  253. package/dist/cli/run/adapters/index.js +147 -21
  254. package/dist/cli/run/adapters/index.js.map +1 -1
  255. package/dist/cli/run/adapters/index.test.d.ts +2 -0
  256. package/dist/cli/run/adapters/index.test.d.ts.map +1 -0
  257. package/dist/cli/run/adapters/index.test.js +129 -0
  258. package/dist/cli/run/adapters/index.test.js.map +1 -0
  259. package/dist/cli/run/adapters/opencode.d.ts +25 -9
  260. package/dist/cli/run/adapters/opencode.d.ts.map +1 -1
  261. package/dist/cli/run/adapters/opencode.js +136 -152
  262. package/dist/cli/run/adapters/opencode.js.map +1 -1
  263. package/dist/cli/run/adapters/opencode.test.js +99 -218
  264. package/dist/cli/run/adapters/opencode.test.js.map +1 -1
  265. package/dist/cli/run/adapters/permission-modes.d.ts +47 -4
  266. package/dist/cli/run/adapters/permission-modes.d.ts.map +1 -1
  267. package/dist/cli/run/adapters/permission-modes.js +113 -37
  268. package/dist/cli/run/adapters/permission-modes.js.map +1 -1
  269. package/dist/cli/run/adapters/permission-modes.test.js +55 -40
  270. package/dist/cli/run/adapters/permission-modes.test.js.map +1 -1
  271. package/dist/cli/run/adapters/stub-cli.test-helper.d.ts +22 -0
  272. package/dist/cli/run/adapters/stub-cli.test-helper.d.ts.map +1 -0
  273. package/dist/cli/run/adapters/stub-cli.test-helper.js +73 -0
  274. package/dist/cli/run/adapters/stub-cli.test-helper.js.map +1 -0
  275. package/dist/cli/run/platform.d.ts +52 -0
  276. package/dist/cli/run/platform.d.ts.map +1 -0
  277. package/dist/cli/run/platform.js +207 -0
  278. package/dist/cli/run/platform.js.map +1 -0
  279. package/dist/cli/run/platform.test.d.ts +2 -0
  280. package/dist/cli/run/platform.test.d.ts.map +1 -0
  281. package/dist/cli/run/platform.test.js +119 -0
  282. package/dist/cli/run/platform.test.js.map +1 -0
  283. package/dist/cli/run/schema.d.ts +6 -8
  284. package/dist/cli/run/schema.d.ts.map +1 -1
  285. package/dist/cli/run/schema.js +44 -68
  286. package/dist/cli/run/schema.js.map +1 -1
  287. package/dist/cli/run/schema.test.js +59 -279
  288. package/dist/cli/run/schema.test.js.map +1 -1
  289. package/dist/cli/run.d.ts +34 -56
  290. package/dist/cli/run.d.ts.map +1 -1
  291. package/dist/cli/run.js +379 -1132
  292. package/dist/cli/run.js.map +1 -1
  293. package/dist/cli/run.test.d.ts +2 -0
  294. package/dist/cli/run.test.d.ts.map +1 -0
  295. package/dist/cli/run.test.js +318 -0
  296. package/dist/cli/run.test.js.map +1 -0
  297. package/dist/cli/sync-check.d.ts.map +1 -1
  298. package/dist/cli/sync-check.js +12 -3
  299. package/dist/cli/sync-check.js.map +1 -1
  300. package/dist/cli/sync.d.ts.map +1 -1
  301. package/dist/cli/sync.js +3 -2
  302. package/dist/cli/sync.js.map +1 -1
  303. package/dist/cli/team-config.d.ts.map +1 -1
  304. package/dist/cli/team-config.js +2 -21
  305. package/dist/cli/team-config.js.map +1 -1
  306. package/dist/cli/tiers.test.js +4 -13
  307. package/dist/cli/tiers.test.js.map +1 -1
  308. package/dist/cli/update.d.ts.map +1 -1
  309. package/dist/cli/update.js +4 -3
  310. package/dist/cli/update.js.map +1 -1
  311. package/dist/cli/website-plugins.test.js +51 -2
  312. package/dist/cli/website-plugins.test.js.map +1 -1
  313. package/dist/orchestrator/plugins/coolify/config.d.ts.map +1 -1
  314. package/dist/orchestrator/plugins/coolify/config.js +13 -0
  315. package/dist/orchestrator/plugins/coolify/config.js.map +1 -1
  316. package/dist/orchestrator/plugins/sentry/config.d.ts.map +1 -1
  317. package/dist/orchestrator/plugins/sentry/config.js +13 -0
  318. package/dist/orchestrator/plugins/sentry/config.js.map +1 -1
  319. package/package.json +3 -10
  320. package/src/cli/adapters/claude-code.ts +7 -3
  321. package/src/cli/adapters/single-file-base.ts +47 -4
  322. package/src/cli/agent-plugin.test.ts +14 -0
  323. package/src/cli/agent-roster.test.ts +0 -55
  324. package/src/cli/bootstrap.ts +23 -0
  325. package/src/cli/boundary.test.ts +9 -7
  326. package/src/cli/ci.ts +6 -4
  327. package/src/cli/command-namespace.test.ts +35 -0
  328. package/src/cli/convoy/TELEMETRY.md +138 -130
  329. package/src/cli/convoy/artifacts.test.ts +4 -2
  330. package/src/cli/convoy/artifacts.ts +13 -12
  331. package/src/cli/convoy/engine.git.test.ts +462 -0
  332. package/src/cli/convoy/engine.test.ts +817 -850
  333. package/src/cli/convoy/engine.ts +1864 -2596
  334. package/src/cli/convoy/event-schemas.ts +63 -59
  335. package/src/cli/convoy/events.test.ts +58 -9
  336. package/src/cli/convoy/events.ts +69 -91
  337. package/src/cli/convoy/gates.ts +31 -12
  338. package/src/cli/convoy/isolation.test.ts +76 -43
  339. package/src/cli/convoy/isolation.ts +100 -38
  340. package/src/cli/convoy/lock.test.ts +16 -0
  341. package/src/cli/convoy/lock.ts +25 -8
  342. package/src/cli/convoy/merge.test.ts +25 -1
  343. package/src/cli/convoy/merge.ts +74 -61
  344. package/src/cli/convoy/progress.test.ts +59 -0
  345. package/src/cli/convoy/progress.ts +121 -0
  346. package/src/cli/convoy/read-model.test.ts +685 -0
  347. package/src/cli/convoy/read-model.ts +1469 -0
  348. package/src/cli/convoy/redact.test.ts +49 -0
  349. package/src/cli/convoy/redact.ts +73 -0
  350. package/src/cli/convoy/reviewer.test.ts +112 -0
  351. package/src/cli/convoy/reviewer.ts +196 -0
  352. package/src/cli/convoy/schedule.test.ts +56 -0
  353. package/src/cli/convoy/schedule.ts +109 -0
  354. package/src/cli/convoy/spec-builder.test.ts +460 -464
  355. package/src/cli/convoy/spec-builder.ts +460 -129
  356. package/src/cli/convoy/spec-types.ts +46 -108
  357. package/src/cli/convoy/store.test.ts +64 -13
  358. package/src/cli/convoy/store.ts +143 -33
  359. package/src/cli/convoy/types.ts +59 -71
  360. package/src/cli/convoy/worktree.test.ts +140 -1
  361. package/src/cli/convoy/worktree.ts +311 -61
  362. package/src/cli/convoy-args.test.ts +10 -30
  363. package/src/cli/convoy-cmd.test.ts +163 -0
  364. package/src/cli/convoy-cmd.ts +173 -215
  365. package/src/cli/dashboard/dashboard.css +2086 -0
  366. package/src/cli/dashboard/dashboard.js +1687 -0
  367. package/src/cli/dashboard/index.html +307 -0
  368. package/src/cli/dashboard.test.ts +382 -0
  369. package/src/cli/dashboard.ts +243 -339
  370. package/src/cli/dispatcher.test.ts +43 -2
  371. package/src/cli/docs-accuracy.test.ts +37 -10
  372. package/src/cli/doctor.ts +9 -6
  373. package/src/cli/init-own-files.test.ts +156 -0
  374. package/src/cli/init.test.ts +5 -4
  375. package/src/cli/init.ts +104 -7
  376. package/src/cli/layers.ts +13 -4
  377. package/src/cli/lesson.ts +6 -5
  378. package/src/cli/log.test.ts +228 -0
  379. package/src/cli/log.ts +302 -83
  380. package/src/cli/nearest.test.ts +27 -0
  381. package/src/cli/nearest.ts +38 -0
  382. package/src/cli/pipeline.flow.test.ts +607 -0
  383. package/src/cli/pipeline.ts +544 -759
  384. package/src/cli/plan.test.ts +193 -0
  385. package/src/cli/plan.ts +209 -545
  386. package/src/cli/prompt.test.ts +21 -2
  387. package/src/cli/prompt.ts +11 -7
  388. package/src/cli/remove.ts +3 -0
  389. package/src/cli/review.ts +7 -1
  390. package/src/cli/run/adapters/agent-process.test.ts +175 -0
  391. package/src/cli/run/adapters/agent-process.ts +252 -0
  392. package/src/cli/run/adapters/claude.test.ts +205 -260
  393. package/src/cli/run/adapters/claude.ts +151 -162
  394. package/src/cli/run/adapters/codex.test.ts +120 -100
  395. package/src/cli/run/adapters/codex.ts +115 -91
  396. package/src/cli/run/adapters/copilot.test.ts +135 -306
  397. package/src/cli/run/adapters/copilot.ts +105 -274
  398. package/src/cli/run/adapters/cursor.test.ts +111 -220
  399. package/src/cli/run/adapters/cursor.ts +105 -156
  400. package/src/cli/run/adapters/index.test.ts +148 -0
  401. package/src/cli/run/adapters/index.ts +168 -20
  402. package/src/cli/run/adapters/opencode.test.ts +106 -227
  403. package/src/cli/run/adapters/opencode.ts +139 -151
  404. package/src/cli/run/adapters/permission-modes.test.ts +63 -41
  405. package/src/cli/run/adapters/permission-modes.ts +118 -37
  406. package/src/cli/run/adapters/stub-cli.test-helper.ts +88 -0
  407. package/src/cli/run/platform.test.ts +128 -0
  408. package/src/cli/run/platform.ts +213 -0
  409. package/src/cli/run/schema.test.ts +62 -344
  410. package/src/cli/run/schema.ts +48 -78
  411. package/src/cli/run.test.ts +351 -0
  412. package/src/cli/run.ts +366 -1151
  413. package/src/cli/sync-check.ts +12 -3
  414. package/src/cli/sync.ts +3 -2
  415. package/src/cli/team-config.ts +2 -21
  416. package/src/cli/tiers.test.ts +4 -17
  417. package/src/cli/update.ts +4 -3
  418. package/src/cli/website-plugins.test.ts +55 -5
  419. package/src/orchestrator/agents/team-lead.agent.md +2 -2
  420. package/src/orchestrator/customizations/README.md +58 -13
  421. package/src/orchestrator/customizations/logs/README.md +23 -18
  422. package/src/orchestrator/instructions/general.instructions.md +1 -1
  423. package/src/orchestrator/plugins/coolify/config.ts +13 -0
  424. package/src/orchestrator/plugins/sentry/config.ts +13 -0
  425. package/src/orchestrator/prompts/assess-complexity.prompt.md +43 -26
  426. package/src/orchestrator/prompts/bootstrap-customizations.prompt.md +44 -49
  427. package/src/orchestrator/prompts/brainstorm.prompt.md +2 -2
  428. package/src/orchestrator/prompts/bug-fix.prompt.md +5 -4
  429. package/src/orchestrator/prompts/create-skill.prompt.md +29 -39
  430. package/src/orchestrator/prompts/fix-convoy.prompt.md +43 -29
  431. package/src/orchestrator/prompts/fix-prd.prompt.md +26 -22
  432. package/src/orchestrator/prompts/generate-convoy.prompt.md +139 -147
  433. package/src/orchestrator/prompts/generate-prd.prompt.md +75 -68
  434. package/src/orchestrator/prompts/implement-feature.prompt.md +7 -6
  435. package/src/orchestrator/prompts/validate-convoy.prompt.md +29 -28
  436. package/src/orchestrator/prompts/validate-prd.prompt.md +28 -21
  437. package/src/orchestrator/skills/agent-hooks/HOOKS-REFERENCE.md +3 -3
  438. package/src/orchestrator/skills/agent-hooks/SKILL.md +1 -1
  439. package/src/orchestrator/skills/fast-review/SKILL.md +3 -1
  440. package/src/orchestrator/skills/orchestration-protocols/SKILL.md +7 -8
  441. package/dist/cli/convoy/dag-analysis.d.ts +0 -39
  442. package/dist/cli/convoy/dag-analysis.d.ts.map +0 -1
  443. package/dist/cli/convoy/dag-analysis.js +0 -279
  444. package/dist/cli/convoy/dag-analysis.js.map +0 -1
  445. package/dist/cli/convoy/dag-analysis.test.d.ts +0 -2
  446. package/dist/cli/convoy/dag-analysis.test.d.ts.map +0 -1
  447. package/dist/cli/convoy/dag-analysis.test.js +0 -289
  448. package/dist/cli/convoy/dag-analysis.test.js.map +0 -1
  449. package/dist/cli/convoy/formula.d.ts +0 -19
  450. package/dist/cli/convoy/formula.d.ts.map +0 -1
  451. package/dist/cli/convoy/formula.js +0 -142
  452. package/dist/cli/convoy/formula.js.map +0 -1
  453. package/dist/cli/convoy/formula.test.d.ts +0 -2
  454. package/dist/cli/convoy/formula.test.d.ts.map +0 -1
  455. package/dist/cli/convoy/formula.test.js +0 -342
  456. package/dist/cli/convoy/formula.test.js.map +0 -1
  457. package/dist/cli/convoy/health.d.ts +0 -34
  458. package/dist/cli/convoy/health.d.ts.map +0 -1
  459. package/dist/cli/convoy/health.js +0 -123
  460. package/dist/cli/convoy/health.js.map +0 -1
  461. package/dist/cli/convoy/health.test.d.ts +0 -2
  462. package/dist/cli/convoy/health.test.d.ts.map +0 -1
  463. package/dist/cli/convoy/health.test.js +0 -448
  464. package/dist/cli/convoy/health.test.js.map +0 -1
  465. package/dist/cli/convoy/last-run.d.ts +0 -53
  466. package/dist/cli/convoy/last-run.d.ts.map +0 -1
  467. package/dist/cli/convoy/last-run.js +0 -54
  468. package/dist/cli/convoy/last-run.js.map +0 -1
  469. package/dist/cli/convoy/last-run.test.d.ts +0 -2
  470. package/dist/cli/convoy/last-run.test.d.ts.map +0 -1
  471. package/dist/cli/convoy/last-run.test.js +0 -110
  472. package/dist/cli/convoy/last-run.test.js.map +0 -1
  473. package/dist/cli/convoy/pipeline.d.ts +0 -41
  474. package/dist/cli/convoy/pipeline.d.ts.map +0 -1
  475. package/dist/cli/convoy/pipeline.js +0 -414
  476. package/dist/cli/convoy/pipeline.js.map +0 -1
  477. package/dist/cli/convoy/pipeline.test.d.ts +0 -2
  478. package/dist/cli/convoy/pipeline.test.d.ts.map +0 -1
  479. package/dist/cli/convoy/pipeline.test.js +0 -837
  480. package/dist/cli/convoy/pipeline.test.js.map +0 -1
  481. package/dist/cli/convoy/review-stages.d.ts +0 -9
  482. package/dist/cli/convoy/review-stages.d.ts.map +0 -1
  483. package/dist/cli/convoy/review-stages.js +0 -134
  484. package/dist/cli/convoy/review-stages.js.map +0 -1
  485. package/dist/cli/convoy/review-stages.test.d.ts +0 -2
  486. package/dist/cli/convoy/review-stages.test.d.ts.map +0 -1
  487. package/dist/cli/convoy/review-stages.test.js +0 -197
  488. package/dist/cli/convoy/review-stages.test.js.map +0 -1
  489. package/dist/cli/run/executor.d.ts +0 -15
  490. package/dist/cli/run/executor.d.ts.map +0 -1
  491. package/dist/cli/run/executor.js +0 -249
  492. package/dist/cli/run/executor.js.map +0 -1
  493. package/dist/cli/run/executor.test.d.ts +0 -2
  494. package/dist/cli/run/executor.test.d.ts.map +0 -1
  495. package/dist/cli/run/executor.test.js +0 -297
  496. package/dist/cli/run/executor.test.js.map +0 -1
  497. package/dist/cli/run/reporter.d.ts +0 -10
  498. package/dist/cli/run/reporter.d.ts.map +0 -1
  499. package/dist/cli/run/reporter.js +0 -142
  500. package/dist/cli/run/reporter.js.map +0 -1
  501. package/dist/cli/run-dry-run.test.d.ts +0 -2
  502. package/dist/cli/run-dry-run.test.d.ts.map +0 -1
  503. package/dist/cli/run-dry-run.test.js +0 -83
  504. package/dist/cli/run-dry-run.test.js.map +0 -1
  505. package/dist/cli/run-executor-flags.test.d.ts +0 -2
  506. package/dist/cli/run-executor-flags.test.d.ts.map +0 -1
  507. package/dist/cli/run-executor-flags.test.js +0 -31
  508. package/dist/cli/run-executor-flags.test.js.map +0 -1
  509. package/dist/cli/run-finish.test.d.ts +0 -2
  510. package/dist/cli/run-finish.test.d.ts.map +0 -1
  511. package/dist/cli/run-finish.test.js +0 -77
  512. package/dist/cli/run-finish.test.js.map +0 -1
  513. package/dist/cli/watch.d.ts +0 -15
  514. package/dist/cli/watch.d.ts.map +0 -1
  515. package/dist/cli/watch.js +0 -277
  516. package/dist/cli/watch.js.map +0 -1
  517. package/dist/dashboard/scripts/etl.d.ts +0 -10
  518. package/dist/dashboard/scripts/etl.d.ts.map +0 -1
  519. package/dist/dashboard/scripts/etl.js +0 -141
  520. package/dist/dashboard/scripts/etl.js.map +0 -1
  521. package/src/cli/convoy/dag-analysis.test.ts +0 -349
  522. package/src/cli/convoy/dag-analysis.ts +0 -367
  523. package/src/cli/convoy/formula.test.ts +0 -404
  524. package/src/cli/convoy/formula.ts +0 -174
  525. package/src/cli/convoy/health.test.ts +0 -519
  526. package/src/cli/convoy/health.ts +0 -189
  527. package/src/cli/convoy/last-run.test.ts +0 -130
  528. package/src/cli/convoy/last-run.ts +0 -87
  529. package/src/cli/convoy/pipeline.test.ts +0 -999
  530. package/src/cli/convoy/pipeline.ts +0 -492
  531. package/src/cli/convoy/review-stages.test.ts +0 -235
  532. package/src/cli/convoy/review-stages.ts +0 -166
  533. package/src/cli/run/executor.test.ts +0 -338
  534. package/src/cli/run/executor.ts +0 -292
  535. package/src/cli/run/reporter.ts +0 -160
  536. package/src/cli/run-dry-run.test.ts +0 -97
  537. package/src/cli/run-executor-flags.test.ts +0 -38
  538. package/src/cli/run-finish.test.ts +0 -91
  539. package/src/cli/watch.ts +0 -295
  540. package/src/dashboard/astro.config.mjs +0 -6
  541. package/src/dashboard/dist/_astro/index.CADNhRPS.css +0 -1
  542. package/src/dashboard/dist/data/.gitkeep +0 -0
  543. package/src/dashboard/dist/data/convoy-list.json +0 -1
  544. package/src/dashboard/dist/data/overall-stats.json +0 -29
  545. package/src/dashboard/dist/index.html +0 -1963
  546. package/src/dashboard/node_modules/.vite/deps/_metadata.json +0 -31
  547. package/src/dashboard/node_modules/.vite/deps/astro___aria-query.js +0 -6776
  548. package/src/dashboard/node_modules/.vite/deps/astro___aria-query.js.map +0 -7
  549. package/src/dashboard/node_modules/.vite/deps/astro___axobject-query.js +0 -3754
  550. package/src/dashboard/node_modules/.vite/deps/astro___axobject-query.js.map +0 -7
  551. package/src/dashboard/node_modules/.vite/deps/astro___cssesc.js +0 -99
  552. package/src/dashboard/node_modules/.vite/deps/astro___cssesc.js.map +0 -7
  553. package/src/dashboard/node_modules/.vite/deps/chunk-BUSYA2B4.js +0 -8
  554. package/src/dashboard/node_modules/.vite/deps/chunk-BUSYA2B4.js.map +0 -7
  555. package/src/dashboard/node_modules/.vite/deps/package.json +0 -3
  556. package/src/dashboard/package-lock.json +0 -6
  557. package/src/dashboard/public/data/.gitkeep +0 -0
  558. package/src/dashboard/public/data/convoy-list.json +0 -1
  559. package/src/dashboard/public/data/overall-stats.json +0 -29
  560. package/src/dashboard/public/icon-192.png +0 -0
  561. package/src/dashboard/scripts/etl.test.ts +0 -166
  562. package/src/dashboard/scripts/etl.ts +0 -170
  563. package/src/dashboard/scripts/generate-demo-db.test.ts +0 -30
  564. package/src/dashboard/scripts/generate-demo-db.ts +0 -529
  565. package/src/dashboard/scripts/integration-test.ts +0 -504
  566. package/src/dashboard/scripts/verify-demo-data.sh +0 -51
  567. package/src/dashboard/seed-data/delegations.ndjson +0 -35
  568. package/src/dashboard/seed-data/events.ndjson +0 -104
  569. package/src/dashboard/seed-data/panels.ndjson +0 -13
  570. package/src/dashboard/seed-data/reviews.ndjson +0 -6
  571. package/src/dashboard/seed-data/sessions.ndjson +0 -50
  572. package/src/dashboard/src/env.d.ts +0 -1
  573. package/src/dashboard/src/layouts/Layout.astro +0 -25
  574. package/src/dashboard/src/pages/index.astro +0 -2313
  575. package/src/dashboard/src/styles/dashboard.css +0 -2943
  576. package/src/dashboard/tsconfig.json +0 -6
  577. /package/src/{dashboard/dist → cli/dashboard}/icon-192.png +0 -0
@@ -1,504 +0,0 @@
1
- /**
2
- * Integration test for the dashboard ETL → Astro build → HTML pipeline.
3
- * Usage: npx tsx src/dashboard/scripts/integration-test.ts
4
- * Exit 0 if all tests pass, exit 1 if any fail.
5
- */
6
-
7
- import { mkdtempSync, rmSync, realpathSync, readFileSync, existsSync } from 'node:fs'
8
- import { tmpdir } from 'node:os'
9
- import { join, resolve, dirname } from 'node:path'
10
- import { execSync } from 'node:child_process'
11
- import { fileURLToPath } from 'node:url'
12
- import type { ConvoyTaskStatus, ConvoyStatus } from '../../cli/convoy/types.js'
13
-
14
- const __filename = fileURLToPath(import.meta.url)
15
- const __dirname = dirname(__filename)
16
- const WORKSPACE_ROOT = resolve(__dirname, '..', '..', '..')
17
-
18
- // ── Colours ───────────────────────────────────────────────────────────────────
19
- const c = {
20
- green: (s: string) => `\x1b[32m${s}\x1b[0m`,
21
- red: (s: string) => `\x1b[31m${s}\x1b[0m`,
22
- bold: (s: string) => `\x1b[1m${s}\x1b[0m`,
23
- dim: (s: string) => `\x1b[2m${s}\x1b[0m`,
24
- }
25
-
26
- // ── Test runner ───────────────────────────────────────────────────────────────
27
- let passed = 0
28
- let failed = 0
29
-
30
- async function test(name: string, fn: () => void | Promise<void>): Promise<void> {
31
- try {
32
- await fn()
33
- passed++
34
- console.log(` ${c.green('✓')} ${name}`)
35
- } catch (err) {
36
- failed++
37
- console.error(` ${c.red('✗')} ${name}`)
38
- const msg = (err as Error).message ?? String(err)
39
- msg.split('\n').slice(0, 6).forEach((line) => console.error(` ${c.dim(line)}`))
40
- }
41
- }
42
-
43
- function assert(condition: boolean, message: string): void {
44
- if (!condition) throw new Error(message)
45
- }
46
-
47
- function execCmd(cmd: string, timeoutMs = 120_000): void {
48
- try {
49
- execSync(cmd, { cwd: WORKSPACE_ROOT, stdio: 'pipe', timeout: timeoutMs })
50
- } catch (err) {
51
- const e = err as { stderr?: Buffer; stdout?: Buffer; message?: string }
52
- const detail =
53
- e.stderr?.toString().trim() ?? e.stdout?.toString().trim() ?? String(e.message ?? '')
54
- throw new Error(`Command failed: ${cmd}\n${detail.slice(0, 600)}`)
55
- }
56
- }
57
-
58
- // ── Fixtures ──────────────────────────────────────────────────────────────────
59
- interface TaskFixture {
60
- id: string
61
- agent: string
62
- model: string
63
- phase: number
64
- status: ConvoyTaskStatus
65
- retries: number
66
- }
67
-
68
- interface ConvoyFixture {
69
- id: string
70
- name: string
71
- status: ConvoyStatus
72
- startedAt: string
73
- finishedAt: string | null
74
- tasks: TaskFixture[]
75
- }
76
-
77
- const FIXTURES: ConvoyFixture[] = [
78
- {
79
- id: 'c-done-001',
80
- name: 'Feature: Authentication',
81
- status: 'done',
82
- startedAt: '2026-03-01T09:01:00.000Z',
83
- finishedAt: '2026-03-01T11:30:00.000Z',
84
- tasks: [
85
- { id: 'c-done-t-1', agent: 'developer', model: 'claude-opus-4-6', phase: 1, status: 'done', retries: 0 },
86
- { id: 'c-done-t-2', agent: 'reviewer', model: 'claude-sonnet-4-5', phase: 1, status: 'done', retries: 0 },
87
- { id: 'c-done-t-3', agent: 'architect', model: 'gpt-4o', phase: 2, status: 'done', retries: 0 },
88
- { id: 'c-done-t-4', agent: 'developer', model: 'claude-opus-4-6', phase: 2, status: 'done', retries: 0 },
89
- { id: 'c-done-t-5', agent: 'reviewer', model: 'claude-sonnet-4-5', phase: 3, status: 'done', retries: 0 },
90
- { id: 'c-done-t-6', agent: 'architect', model: 'gpt-4o', phase: 3, status: 'failed', retries: 2 },
91
- { id: 'c-done-t-7', agent: 'developer', model: 'claude-opus-4-6', phase: 4, status: 'running', retries: 0 },
92
- ],
93
- },
94
- {
95
- id: 'c-fail-001',
96
- name: 'Feature: Payment Integration',
97
- status: 'failed',
98
- startedAt: '2026-03-02T10:01:00.000Z',
99
- finishedAt: '2026-03-02T12:00:00.000Z',
100
- tasks: [
101
- { id: 'c-fail-t-1', agent: 'developer', model: 'claude-opus-4-6', phase: 1, status: 'done', retries: 0 },
102
- { id: 'c-fail-t-2', agent: 'reviewer', model: 'claude-sonnet-4-5', phase: 1, status: 'done', retries: 0 },
103
- { id: 'c-fail-t-3', agent: 'architect', model: 'gpt-4o', phase: 2, status: 'done', retries: 0 },
104
- { id: 'c-fail-t-4', agent: 'developer', model: 'claude-opus-4-6', phase: 2, status: 'failed', retries: 3 },
105
- { id: 'c-fail-t-5', agent: 'reviewer', model: 'claude-sonnet-4-5', phase: 3, status: 'failed', retries: 3 },
106
- ],
107
- },
108
- {
109
- id: 'c-run-001',
110
- name: 'Refactor: Database Layer',
111
- status: 'running',
112
- startedAt: '2026-03-03T08:01:00.000Z',
113
- finishedAt: null,
114
- tasks: [
115
- { id: 'c-run-t-1', agent: 'developer', model: 'claude-opus-4-6', phase: 1, status: 'done', retries: 0 },
116
- { id: 'c-run-t-2', agent: 'reviewer', model: 'claude-sonnet-4-5', phase: 1, status: 'done', retries: 0 },
117
- { id: 'c-run-t-3', agent: 'architect', model: 'gpt-4o', phase: 2, status: 'running', retries: 0 },
118
- ],
119
- },
120
- ]
121
-
122
- const TOTAL_CONVOYS = FIXTURES.length // 3
123
- const TOTAL_TASKS = FIXTURES.reduce((sum, f) => sum + f.tasks.length, 0) // 15
124
-
125
- // ── Main ──────────────────────────────────────────────────────────────────────
126
- const tmpDir = realpathSync(mkdtempSync(join(tmpdir(), 'dash-int-')))
127
-
128
- try {
129
- // ── Phase A: ETL Smoke Test ────────────────────────────────────────────────
130
- console.log(c.bold('\n Phase A: ETL Smoke Test with Realistic Data\n'))
131
-
132
- const dbPath = join(tmpDir, 'test.db')
133
- const etlOutDir = join(tmpDir, 'etl-out')
134
- let etlResult: { convoyCount: number; taskCount: number } | null = null
135
-
136
- await test('seed database and run ETL', async () => {
137
- const { createConvoyStore } = await import('../../cli/convoy/store.js')
138
- const store = createConvoyStore(dbPath)
139
- try {
140
- for (const [i, f] of FIXTURES.entries()) {
141
- const createdAt = `2026-03-0${i + 1}T09:00:00.000Z`
142
- store.insertConvoy({
143
- id: f.id,
144
- name: f.name,
145
- spec_hash: `hash-${f.id}`,
146
- status: f.status,
147
- branch: f.status === 'done' ? 'main' : null,
148
- created_at: createdAt,
149
- spec_yaml: 'tasks: []',
150
- })
151
- const extra: { started_at: string; finished_at?: string; total_tokens: number; total_cost_usd: number } = {
152
- started_at: f.startedAt,
153
- total_tokens: 30_000 * (i + 1),
154
- total_cost_usd: 0.95 * (i + 1),
155
- }
156
- if (f.finishedAt) extra.finished_at = f.finishedAt
157
- store.updateConvoyStatus(f.id, f.status, extra)
158
-
159
- for (const t of f.tasks) {
160
- store.insertTask({
161
- id: t.id,
162
- convoy_id: f.id,
163
- phase: t.phase,
164
- prompt: `Prompt for ${t.id}`,
165
- agent: t.agent,
166
- adapter: null,
167
- model: t.model,
168
- timeout_ms: 1_800_000,
169
- status: t.status,
170
- retries: t.retries,
171
- depends_on: null,
172
- files: null,
173
- gates: null,
174
- max_retries: 3,
175
- })
176
- }
177
- }
178
-
179
- // DLQ entries for the failed convoy
180
- store.insertDlqEntry({
181
- id: 'dlq-001',
182
- convoy_id: 'c-fail-001',
183
- task_id: 'c-fail-t-4',
184
- agent: 'developer',
185
- failure_type: 'timeout',
186
- error_output: 'Task timed out after 30 minutes',
187
- attempts: 3,
188
- tokens_spent: null,
189
- escalation_task_id: null,
190
- resolved: 0,
191
- resolution: null,
192
- created_at: '2026-03-02T10:30:00.000Z',
193
- resolved_at: null,
194
- })
195
- store.insertDlqEntry({
196
- id: 'dlq-002',
197
- convoy_id: 'c-fail-001',
198
- task_id: 'c-fail-t-5',
199
- agent: 'reviewer',
200
- failure_type: 'gate_failure',
201
- error_output: 'Secret scan found potential leak',
202
- attempts: 2,
203
- tokens_spent: null,
204
- escalation_task_id: null,
205
- resolved: 0,
206
- resolution: null,
207
- created_at: '2026-03-02T11:00:00.000Z',
208
- resolved_at: null,
209
- })
210
-
211
- // Events for the done convoy
212
- store.insertEvent({
213
- convoy_id: 'c-done-001',
214
- task_id: null,
215
- worker_id: null,
216
- type: 'convoy_started',
217
- data: JSON.stringify({ name: 'Feature: Authentication' }),
218
- created_at: '2026-03-01T09:01:00.000Z',
219
- })
220
- store.insertEvent({
221
- convoy_id: 'c-done-001',
222
- task_id: 'c-done-t-1',
223
- worker_id: null,
224
- type: 'task_done',
225
- data: JSON.stringify({ phase: 1, agent: 'developer' }),
226
- created_at: '2026-03-01T10:00:00.000Z',
227
- })
228
- store.insertEvent({
229
- convoy_id: 'c-done-001',
230
- task_id: null,
231
- worker_id: null,
232
- type: 'convoy_finished',
233
- data: JSON.stringify({ status: 'done', total_tokens: 30_000 }),
234
- created_at: '2026-03-01T11:30:00.000Z',
235
- })
236
- } finally {
237
- store.close()
238
- }
239
-
240
- const { runEtl } = await import('./etl.js')
241
- etlResult = await runEtl({ dbPath, outputDir: etlOutDir })
242
- })
243
-
244
- await test(`ETL convoyCount === ${TOTAL_CONVOYS}`, () => {
245
- assert(etlResult !== null, 'seed/ETL test failed — skipping')
246
- assert(etlResult!.convoyCount === TOTAL_CONVOYS, `Expected ${TOTAL_CONVOYS}, got ${etlResult!.convoyCount}`)
247
- })
248
-
249
- await test(`ETL taskCount === ${TOTAL_TASKS}`, () => {
250
- assert(etlResult !== null, 'seed/ETL test failed — skipping')
251
- assert(etlResult!.taskCount === TOTAL_TASKS, `Expected ${TOTAL_TASKS}, got ${etlResult!.taskCount}`)
252
- })
253
-
254
- await test('overall-stats.json: total convoy count is 3', () => {
255
- const stats = JSON.parse(readFileSync(join(etlOutDir, 'overall-stats.json'), 'utf8'))
256
- assert(stats.convoyCounts.total === 3, `Expected 3, got ${stats.convoyCounts.total}`)
257
- })
258
-
259
- await test('overall-stats.json: 1 done, 1 failed, 1 running', () => {
260
- const stats = JSON.parse(readFileSync(join(etlOutDir, 'overall-stats.json'), 'utf8'))
261
- assert(stats.convoyCounts.done === 1, `done: expected 1, got ${stats.convoyCounts.done}`)
262
- assert(stats.convoyCounts.failed === 1, `failed: expected 1, got ${stats.convoyCounts.failed}`)
263
- assert(stats.convoyCounts.running === 1, `running: expected 1, got ${stats.convoyCounts.running}`)
264
- })
265
-
266
- await test('convoy-list.json has 3 entries', () => {
267
- const list = JSON.parse(readFileSync(join(etlOutDir, 'convoy-list.json'), 'utf8'))
268
- assert(list.length === 3, `Expected 3, got ${list.length}`)
269
- })
270
-
271
- await test('per-convoy detail files exist for all 3 convoys', () => {
272
- for (const f of FIXTURES) {
273
- assert(
274
- existsSync(join(etlOutDir, 'convoys', `${f.id}.json`)),
275
- `Missing convoys/${f.id}.json`,
276
- )
277
- }
278
- })
279
-
280
- await test('c-done-001 detail has 7 tasks', () => {
281
- const detail = JSON.parse(readFileSync(join(etlOutDir, 'convoys', 'c-done-001.json'), 'utf8'))
282
- assert(detail.tasks.length === 7, `Expected 7 tasks, got ${detail.tasks.length}`)
283
- })
284
-
285
- await test('c-fail-001 detail has 5 tasks', () => {
286
- const detail = JSON.parse(readFileSync(join(etlOutDir, 'convoys', 'c-fail-001.json'), 'utf8'))
287
- assert(detail.tasks.length === 5, `Expected 5 tasks, got ${detail.tasks.length}`)
288
- })
289
-
290
- await test('c-run-001 detail has 3 tasks', () => {
291
- const detail = JSON.parse(readFileSync(join(etlOutDir, 'convoys', 'c-run-001.json'), 'utf8'))
292
- assert(detail.tasks.length === 3, `Expected 3 tasks, got ${detail.tasks.length}`)
293
- })
294
-
295
- await test('c-fail-001 detail has 2 DLQ entries', () => {
296
- const detail = JSON.parse(readFileSync(join(etlOutDir, 'convoys', 'c-fail-001.json'), 'utf8'))
297
- assert(detail.dlq_count === 2, `Expected 2 DLQ entries, got ${detail.dlq_count}`)
298
- })
299
-
300
- await test('c-done-001 detail has at least 3 events', () => {
301
- const detail = JSON.parse(readFileSync(join(etlOutDir, 'convoys', 'c-done-001.json'), 'utf8'))
302
- assert(detail.events.length >= 3, `Expected >= 3 events, got ${detail.events.length}`)
303
- })
304
-
305
- await test('overall-stats.json has required top-level keys', () => {
306
- const stats = JSON.parse(readFileSync(join(etlOutDir, 'overall-stats.json'), 'utf8'))
307
- for (const key of ['convoyCounts', 'durationStats', 'tokenCostTotals', 'topAgents', 'topModels', 'dlqSummary']) {
308
- assert(key in stats, `Missing key "${key}" in overall-stats.json`)
309
- }
310
- })
311
-
312
- // ── Phase B: Astro Build Verification ─────────────────────────────────────
313
- console.log(c.bold('\n Phase B: Astro Build Verification\n'))
314
-
315
- await test('npm run dashboard:etl exits with code 0', () => {
316
- execCmd('npm run dashboard:etl', 60_000)
317
- })
318
-
319
- await test('npx astro build --root src/dashboard exits with code 0', () => {
320
- execCmd('npx astro build --root src/dashboard', 180_000)
321
- })
322
-
323
- const distHtmlPath = join(WORKSPACE_ROOT, 'src', 'dashboard', 'dist', 'index.html')
324
-
325
- await test('src/dashboard/dist/index.html exists', () => {
326
- assert(existsSync(distHtmlPath), `HTML not found at ${distHtmlPath}`)
327
- })
328
-
329
- // ── Phase C: Content Verification ─────────────────────────────────────────
330
- console.log(c.bold('\n Phase C: Content Verification\n'))
331
-
332
- let html = ''
333
- await test('read dist/index.html (non-empty)', () => {
334
- assert(existsSync(distHtmlPath), 'dist/index.html missing — Phase B may have failed')
335
- html = readFileSync(distHtmlPath, 'utf8')
336
- assert(html.length > 2000, `HTML suspiciously small: ${html.length} bytes`)
337
- })
338
-
339
- const requiredIds: Array<[string, string]> = [
340
- ['convoy-select', 'id="convoy-select"'],
341
- ['overall-section', 'id="overall-section"'],
342
- ['overall-total-runs KPI', 'id="overall-total-runs"'],
343
- ['overall-running KPI', 'id="overall-running"'],
344
- ['overall-success-rate KPI', 'id="overall-success-rate"'],
345
- ['overall-avg-duration KPI', 'id="overall-avg-duration"'],
346
- ['overall-total-tokens KPI', 'id="overall-total-tokens"'],
347
- ['overall-total-cost KPI', 'id="overall-total-cost"'],
348
- ['tasks-section', 'id="tasks-section"'],
349
- ['quality-section', 'id="quality-section"'],
350
- ['reliability-section', 'id="reliability-section"'],
351
- ['drift-section', 'id="drift-section"'],
352
- ['outputs-section', 'id="outputs-section"'],
353
- ['event-timeline-section', 'id="event-timeline-section"'],
354
- ['export-btn', 'id="export-btn"'],
355
- ['selected-convoy-name', 'id="selected-convoy-name"'],
356
- ['selected-convoy-status', 'id="selected-convoy-status"'],
357
- ]
358
-
359
- for (const [label, needle] of requiredIds) {
360
- await test(`HTML contains ${label}`, () => {
361
- assert(html.includes(needle), `Missing element: ${needle}`)
362
- })
363
- }
364
-
365
- // ── Phase C2: Data Population Verification ──────────────────────────────────────
366
- console.log(c.bold('\n Phase C2: Data Population Verification\n'))
367
-
368
- await test('HTML contains __DASHBOARD_DATA__ script block', () => {
369
- assert(html.includes('__DASHBOARD_DATA__'), 'Missing __DASHBOARD_DATA__ injection in HTML')
370
- })
371
-
372
- await test('HTML contains overall stats data (convoyCounts)', () => {
373
- assert(html.includes('convoyCounts'), 'Missing convoyCounts in rendered HTML data')
374
- })
375
-
376
- await test('HTML contains convoy list data (convoy-list)', () => {
377
- // The convoy selector should have convoy names populated
378
- assert(
379
- html.includes('convoy-list') || html.includes('convoyList'),
380
- 'Missing convoy list data reference in rendered HTML',
381
- )
382
- })
383
-
384
- // ── Phase D: Accessibility Audit ──────────────────────────────────────────
385
- console.log(c.bold('\n Phase D: Accessibility Audit\n'))
386
-
387
- // Strip <script> blocks so JS template strings don't produce false positives
388
- const htmlNoScripts = html.replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi, '')
389
-
390
- await test('all <img> elements have alt attribute', () => {
391
- const imgRe = /<img\s[^>]*>/gi
392
- const imgs = htmlNoScripts.match(imgRe) ?? []
393
- const missing = imgs.filter((tag) => !/\balt\s*=/.test(tag))
394
- assert(
395
- missing.length === 0,
396
- `${missing.length} <img> without alt attribute:\n${missing.join('\n')}`,
397
- )
398
- })
399
-
400
- await test('all <th> elements have scope attribute', () => {
401
- const thRe = /<th\b[^>]*>/gi
402
- const ths = htmlNoScripts.match(thRe) ?? []
403
- const missing = ths.filter((tag) => !/\bscope\s*=/.test(tag))
404
- assert(
405
- missing.length === 0,
406
- `${missing.length} <th> without scope attribute:\n${missing.join('\n')}`,
407
- )
408
- })
409
-
410
- await test('all <button> elements have accessible label (text or aria-label or title)', () => {
411
- // Match opening tag + content + closing tag across lines (non-greedy)
412
- const btnRe = /<button([^>]*)>([\s\S]*?)<\/button>/gi
413
- const violations: string[] = []
414
- let m: RegExpExecArray | null
415
- while ((m = btnRe.exec(htmlNoScripts)) !== null) {
416
- const attrs = m[1]
417
- const textContent = m[2].replace(/<[^>]+>/g, '').trim()
418
- const hasAriaLabel = /\baria-label\s*=\s*["'][^"']+["']/.test(attrs)
419
- const hasTitle = /\btitle\s*=\s*["'][^"']+["']/.test(attrs)
420
- if (!hasAriaLabel && !hasTitle && textContent.length === 0) {
421
- violations.push(`<button${attrs.slice(0, 100)}>`)
422
- }
423
- }
424
- assert(
425
- violations.length === 0,
426
- `${violations.length} <button> without accessible text:\n${violations.join('\n')}`,
427
- )
428
- })
429
-
430
- await test('sidebar navigation links have aria-label attributes', () => {
431
- // Sidebar <a> elements should have aria-label="...section"
432
- const count = (htmlNoScripts.match(/aria-label="[^"]*section[^"]*"/g) ?? []).length
433
- assert(count >= 5, `Expected at least 5 nav aria-label="...section" attributes, found ${count}`)
434
- })
435
-
436
- await test('status-badge element has role attribute', () => {
437
- assert(
438
- htmlNoScripts.includes('id="selected-convoy-status"'),
439
- 'Missing status badge element',
440
- )
441
- // The status badge should have role="status" for screen readers
442
- const badgeRe = /<[^>]+id="selected-convoy-status"[^>]*>/
443
- const match = htmlNoScripts.match(badgeRe)
444
- if (match) {
445
- assert(/\brole\s*=/.test(match[0]), 'Status badge is missing role attribute')
446
- }
447
- })
448
-
449
- // ── Phase E: Empty Data Edge Case ─────────────────────────────────────────
450
- console.log(c.bold('\n Phase E: Empty Data Edge Case\n'))
451
-
452
- const emptyOutDir = join(tmpDir, 'empty-etl-out')
453
- let emptyResult: { convoyCount: number; taskCount: number } | null = null
454
-
455
- await test('ETL with non-existent DB returns convoyCount 0 and taskCount 0', async () => {
456
- const { runEtl } = await import('./etl.js')
457
- emptyResult = await runEtl({
458
- dbPath: join(tmpDir, 'nonexistent.db'),
459
- outputDir: emptyOutDir,
460
- })
461
- assert(emptyResult.convoyCount === 0, `Expected 0 convoys, got ${emptyResult.convoyCount}`)
462
- assert(emptyResult.taskCount === 0, `Expected 0 tasks, got ${emptyResult.taskCount}`)
463
- })
464
-
465
- await test('empty overall-stats.json has zero counts', () => {
466
- const stats = JSON.parse(readFileSync(join(emptyOutDir, 'overall-stats.json'), 'utf8'))
467
- assert(stats.convoyCounts.total === 0, `total: expected 0, got ${stats.convoyCounts.total}`)
468
- assert(stats.convoyCounts.running === 0, `running: expected 0, got ${stats.convoyCounts.running}`)
469
- assert(stats.convoyCounts.done === 0, `done: expected 0, got ${stats.convoyCounts.done}`)
470
- assert(stats.convoyCounts.failed === 0, `failed: expected 0, got ${stats.convoyCounts.failed}`)
471
- })
472
-
473
- await test('empty convoy-list.json is an empty array', () => {
474
- const list = JSON.parse(readFileSync(join(emptyOutDir, 'convoy-list.json'), 'utf8'))
475
- assert(Array.isArray(list) && list.length === 0, `Expected [], got ${JSON.stringify(list)}`)
476
- })
477
-
478
- await test('dashboard Astro build succeeds with empty data', async () => {
479
- // Write empty JSON to public/data so the build uses empty state
480
- const publicDataDir = join(WORKSPACE_ROOT, 'src', 'dashboard', 'public', 'data')
481
- const { runEtl } = await import('./etl.js')
482
- await runEtl({
483
- dbPath: join(tmpDir, 'nonexistent.db'),
484
- outputDir: publicDataDir,
485
- })
486
- execCmd('npx astro build --root src/dashboard', 180_000)
487
- const builtHtml = readFileSync(distHtmlPath, 'utf8')
488
- assert(builtHtml.includes('id="convoy-select"'), 'convoy-select missing in empty-data build')
489
- assert(builtHtml.includes('id="overall-section"'), 'overall-section missing in empty-data build')
490
- assert(builtHtml.includes('id="tasks-section"'), 'tasks-section missing in empty-data build')
491
- })
492
-
493
- } finally {
494
- // Best-effort restore of public/data
495
- try {
496
- execSync('npm run dashboard:etl', { cwd: WORKSPACE_ROOT, stdio: 'pipe', timeout: 60_000 })
497
- } catch { /* no real DB present — that's fine */ }
498
-
499
- rmSync(tmpDir, { recursive: true, force: true })
500
- }
501
-
502
- const failStr = failed > 0 ? c.red(String(failed)) : String(0)
503
- console.log(`\n ${c.bold('Results:')} ${c.green(String(passed))} passed, ${failStr} failed\n`)
504
- process.exit(failed > 0 ? 1 : 0)
@@ -1,51 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
-
4
- echo "Generating demo DB..."
5
- npm run dashboard:generate-demo-db
6
-
7
- echo "Running ETL..."
8
- npm run dashboard:etl
9
-
10
- OUT_DIR=src/dashboard/public/data
11
-
12
- # --- file existence checks ---
13
- if [[ ! -f "$OUT_DIR/overall-stats.json" ]]; then
14
- echo "ERROR: Missing overall-stats.json"
15
- exit 2
16
- fi
17
- if [[ ! -f "$OUT_DIR/convoy-list.json" ]]; then
18
- echo "ERROR: Missing convoy-list.json"
19
- exit 2
20
- fi
21
-
22
- # --- content quality checks via node ---
23
- node - << 'EOF'
24
- const fs = require('node:fs')
25
- const outDir = 'src/dashboard/public/data'
26
-
27
- const stats = JSON.parse(fs.readFileSync(`${outDir}/overall-stats.json`, 'utf8'))
28
- const list = JSON.parse(fs.readFileSync(`${outDir}/convoy-list.json`, 'utf8'))
29
-
30
- const errors = []
31
-
32
- if (!stats.convoyCounts || stats.convoyCounts.total === 0)
33
- errors.push('overall-stats.json: convoyCounts.total is 0 — did generate-demo-db run?')
34
-
35
- if (stats.durationStats?.avg_sec == null)
36
- errors.push('overall-stats.json: durationStats.avg_sec is null — completed convoy needs started_at + finished_at')
37
-
38
- if (!stats.tokenCostTotals || stats.tokenCostTotals.total_tokens === 0)
39
- errors.push('overall-stats.json: total_tokens is 0 — tasks need token data')
40
-
41
- if (!Array.isArray(list) || list.length === 0)
42
- errors.push('convoy-list.json: array is empty')
43
-
44
- if (errors.length > 0) {
45
- for (const e of errors) console.error('ERROR:', e)
46
- process.exit(2)
47
- }
48
- console.log(`OK: ${list.length} convoy(s), avg_sec=${stats.durationStats.avg_sec}, tokens=${stats.tokenCostTotals.total_tokens}`)
49
- EOF
50
-
51
- echo "OK: demo data verified in $OUT_DIR"
@@ -1,35 +0,0 @@
1
- {"timestamp": "2026-02-20T08:00:00.000Z", "session_id": "feat/tas-43", "agent": "DevOps & Release", "model": "codex", "tier": "standard", "mechanism": "sub-agent", "tracker_issue": "TAS-43", "outcome": "success", "retries": 1, "phase": 1, "file_partition": ["libs/queries/", "libs/server-utils/"]}
2
- {"timestamp": "2026-02-20T11:38:52.677Z", "session_id": "feat/tas-31", "agent": "Architect", "model": "codex", "tier": "premium", "mechanism": "sub-agent", "tracker_issue": "TAS-31", "outcome": "success", "retries": 0, "phase": 2, "file_partition": ["libs/data-pipeline/"]}
3
- {"timestamp": "2026-02-20T15:37:40.293Z", "session_id": "feat/tas-59", "agent": "Writer", "model": "antigravity", "tier": "economy", "mechanism": "background", "tracker_issue": "TAS-59", "outcome": "success", "retries": 0, "phase": 2, "file_partition": ["libs/data-pipeline/"]}
4
- {"timestamp": "2026-02-20T19:36:10.946Z", "session_id": "feat/tas-49", "agent": "Data Engineer", "model": "antigravity", "tier": "standard", "mechanism": "sub-agent", "tracker_issue": "TAS-49", "outcome": "partial", "retries": 0, "phase": 3, "file_partition": ["libs/queries/", "libs/server-utils/"]}
5
- {"timestamp": "2026-02-20T23:09:18.799Z", "session_id": "feat/tas-49", "agent": "Data Engineer", "model": "codex", "tier": "standard", "mechanism": "background", "tracker_issue": "TAS-49", "outcome": "failed", "retries": 1, "phase": 3, "file_partition": ["libs/ui-kit/", "apps/web-app/"]}
6
- {"timestamp": "2026-02-21T02:23:04.138Z", "session_id": "feat/tas-32", "agent": "Security Expert", "model": "codex", "tier": "premium", "mechanism": "sub-agent", "tracker_issue": "TAS-32", "outcome": "success", "retries": 0, "phase": 1, "file_partition": ["apps/web-app/", "apps/admin-panel/"]}
7
- {"timestamp": "2026-02-21T05:52:23.451Z", "session_id": "feat/tas-39", "agent": "Developer", "model": "codex", "tier": "standard", "mechanism": "sub-agent", "tracker_issue": "TAS-39", "outcome": "success", "retries": 0, "phase": 4, "file_partition": ["apps/cms-studio/"]}
8
- {"timestamp": "2026-02-21T10:29:16.394Z", "session_id": "feat/tas-41", "agent": "Testing Expert", "model": "claude", "tier": "standard", "mechanism": "background", "tracker_issue": "TAS-41", "outcome": "success", "retries": 1, "phase": 2, "file_partition": ["libs/data-pipeline/", "libs/queries/"]}
9
- {"timestamp": "2026-02-21T14:00:03.752Z", "session_id": "feat/tas-50", "agent": "Developer", "model": "codex", "tier": "standard", "mechanism": "sub-agent", "tracker_issue": "TAS-50", "outcome": "success", "retries": 0, "phase": 1, "file_partition": ["libs/supabase-auth/"]}
10
- {"timestamp": "2026-02-21T17:10:13.592Z", "session_id": "feat/tas-41", "agent": "UI/UX Expert", "model": "codex", "tier": "standard", "mechanism": "sub-agent", "tracker_issue": "TAS-41", "outcome": "success", "retries": 1, "phase": 1, "file_partition": ["apps/admin-panel/"]}
11
- {"timestamp": "2026-02-21T21:26:17.711Z", "session_id": "feat/tas-58", "agent": "Content Engineer", "model": "codex", "tier": "standard", "mechanism": "background", "tracker_issue": "TAS-58", "outcome": "success", "retries": 1, "phase": 1, "file_partition": ["libs/ui-kit/", "apps/web-app/"]}
12
- {"timestamp": "2026-02-22T00:51:23.821Z", "session_id": "feat/tas-33", "agent": "DevOps & Release", "model": "codex", "tier": "standard", "mechanism": "background", "tracker_issue": "TAS-33", "outcome": "failed", "retries": 2, "phase": 1, "file_partition": ["apps/web-app/", "apps/admin-panel/"]}
13
- {"timestamp": "2026-02-22T04:53:39.261Z", "session_id": "feat/tas-35", "agent": "Writer", "model": "codex", "tier": "economy", "mechanism": "background", "tracker_issue": "TAS-35", "outcome": "success", "retries": 1, "phase": 1, "file_partition": ["libs/server-utils/"]}
14
- {"timestamp": "2026-02-22T08:20:53.525Z", "session_id": "feat/tas-59", "agent": "DevOps & Release", "model": "claude", "tier": "standard", "mechanism": "sub-agent", "tracker_issue": "TAS-59", "outcome": "success", "retries": 0, "phase": 4, "file_partition": ["libs/queries/"]}
15
- {"timestamp": "2026-02-22T11:43:14.243Z", "session_id": "feat/tas-36", "agent": "Developer", "model": "codex", "tier": "standard", "mechanism": "sub-agent", "tracker_issue": "TAS-36", "outcome": "success", "retries": 0, "phase": 1, "file_partition": ["libs/server-utils/"]}
16
- {"timestamp": "2026-02-22T15:29:36.510Z", "session_id": "feat/tas-54", "agent": "Data Engineer", "model": "codex", "tier": "standard", "mechanism": "background", "tracker_issue": "TAS-54", "outcome": "success", "retries": 0, "phase": 4, "file_partition": ["apps/cms-studio/"]}
17
- {"timestamp": "2026-02-22T19:18:04.518Z", "session_id": "feat/tas-41", "agent": "DevOps & Release", "model": "antigravity", "tier": "standard", "mechanism": "background", "tracker_issue": "TAS-41", "outcome": "success", "retries": 1, "phase": 3, "file_partition": ["libs/server-utils/"]}
18
- {"timestamp": "2026-02-22T23:18:07.164Z", "session_id": "feat/tas-44", "agent": "Developer", "model": "claude", "tier": "standard", "mechanism": "sub-agent", "tracker_issue": "TAS-44", "outcome": "success", "retries": 1, "phase": 2, "file_partition": ["libs/server-utils/"]}
19
- {"timestamp": "2026-02-23T02:34:46.644Z", "session_id": "feat/tas-30", "agent": "Content Engineer", "model": "antigravity", "tier": "standard", "mechanism": "sub-agent", "tracker_issue": "TAS-30", "outcome": "failed", "retries": 2, "phase": 4, "file_partition": ["apps/web-app/", "apps/admin-panel/"]}
20
- {"timestamp": "2026-02-23T06:21:11.926Z", "session_id": "feat/tas-45", "agent": "Performance Expert", "model": "codex", "tier": "standard", "mechanism": "sub-agent", "tracker_issue": "TAS-45", "outcome": "success", "retries": 1, "phase": 4, "file_partition": ["libs/ui-kit/", "apps/web-app/"]}
21
- {"timestamp": "2026-02-23T09:50:56.855Z", "session_id": "feat/tas-50", "agent": "Data Engineer", "model": "antigravity", "tier": "standard", "mechanism": "background", "tracker_issue": "TAS-50", "outcome": "success", "retries": 1, "phase": 2, "file_partition": ["libs/supabase-auth/"]}
22
- {"timestamp": "2026-02-23T14:28:33.926Z", "session_id": "feat/tas-55", "agent": "UI/UX Expert", "model": "codex", "tier": "standard", "mechanism": "background", "tracker_issue": "TAS-55", "outcome": "success", "retries": 1, "phase": 3, "file_partition": ["libs/ui-kit/", "apps/web-app/"]}
23
- {"timestamp": "2026-02-23T17:21:16.023Z", "session_id": "feat/tas-34", "agent": "Data Engineer", "model": "claude", "tier": "standard", "mechanism": "sub-agent", "tracker_issue": "TAS-34", "outcome": "partial", "retries": 1, "phase": 4, "file_partition": ["libs/ui-kit/", "apps/web-app/"]}
24
- {"timestamp": "2026-02-23T21:23:59.785Z", "session_id": "feat/tas-54", "agent": "Data Engineer", "model": "claude", "tier": "standard", "mechanism": "background", "tracker_issue": "TAS-54", "outcome": "success", "retries": 0, "phase": 1, "file_partition": ["apps/web-app/"]}
25
- {"timestamp": "2026-02-24T01:37:32.832Z", "session_id": "feat/tas-45", "agent": "UI/UX Expert", "model": "antigravity", "tier": "standard", "mechanism": "background", "tracker_issue": "TAS-45", "outcome": "success", "retries": 1, "phase": 1, "file_partition": ["libs/ui-kit/", "apps/web-app/"]}
26
- {"timestamp": "2026-02-24T04:36:24.219Z", "session_id": "feat/tas-32", "agent": "Data Engineer", "model": "codex", "tier": "standard", "mechanism": "sub-agent", "tracker_issue": "TAS-32", "outcome": "success", "retries": 1, "phase": 4, "file_partition": ["libs/data-pipeline/", "libs/queries/"]}
27
- {"timestamp": "2026-02-24T08:15:17.039Z", "session_id": "feat/tas-49", "agent": "Data Engineer", "model": "codex", "tier": "standard", "mechanism": "sub-agent", "tracker_issue": "TAS-49", "outcome": "success", "retries": 1, "phase": 3, "file_partition": ["libs/data-pipeline/"]}
28
- {"timestamp": "2026-02-24T12:28:28.251Z", "session_id": "feat/tas-31", "agent": "DevOps & Release", "model": "claude", "tier": "standard", "mechanism": "background", "tracker_issue": "TAS-31", "outcome": "partial", "retries": 0, "phase": 4, "file_partition": ["libs/ui-kit/", "apps/web-app/"]}
29
- {"timestamp": "2026-02-24T16:03:58.674Z", "session_id": "feat/tas-51", "agent": "Data Engineer", "model": "codex", "tier": "standard", "mechanism": "sub-agent", "tracker_issue": "TAS-51", "outcome": "success", "retries": 0, "phase": 2, "file_partition": ["libs/queries/"]}
30
- {"timestamp": "2026-02-24T19:36:47.295Z", "session_id": "feat/tas-45", "agent": "Security Expert", "model": "codex", "tier": "premium", "mechanism": "sub-agent", "tracker_issue": "TAS-45", "outcome": "success", "retries": 0, "phase": 1, "file_partition": ["apps/admin-panel/"]}
31
- {"timestamp": "2026-02-24T23:22:20.331Z", "session_id": "feat/tas-54", "agent": "Writer", "model": "codex", "tier": "economy", "mechanism": "sub-agent", "tracker_issue": "TAS-54", "outcome": "success", "retries": 0, "phase": 1, "file_partition": ["apps/web-app/", "apps/admin-panel/"]}
32
- {"timestamp": "2026-02-25T03:04:08.793Z", "session_id": "feat/tas-42", "agent": "Developer", "model": "codex", "tier": "standard", "mechanism": "sub-agent", "tracker_issue": "TAS-42", "outcome": "success", "retries": 1, "phase": 4, "file_partition": ["apps/cms-studio/"]}
33
- {"timestamp": "2026-02-25T06:35:46.724Z", "session_id": "feat/tas-38", "agent": "DevOps & Release", "model": "codex", "tier": "standard", "mechanism": "sub-agent", "tracker_issue": "TAS-38", "outcome": "success", "retries": 1, "phase": 4, "file_partition": ["libs/server-utils/"]}
34
- {"timestamp": "2026-02-25T10:39:46.727Z", "session_id": "feat/tas-38", "agent": "Content Engineer", "model": "antigravity", "tier": "standard", "mechanism": "sub-agent", "tracker_issue": "TAS-38", "outcome": "success", "retries": 0, "phase": 3, "file_partition": ["libs/ui-kit/"]}
35
- {"timestamp": "2026-02-25T14:30:07.967Z", "session_id": "feat/tas-46", "agent": "Content Engineer", "model": "antigravity", "tier": "standard", "mechanism": "sub-agent", "tracker_issue": "TAS-46", "outcome": "success", "retries": 1, "phase": 4, "file_partition": ["apps/web-app/", "apps/admin-panel/"]}