@a-company/paradigm 5.10.0 → 5.21.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 (409) hide show
  1. package/dist/accept-orchestration-IUAWQZUN.js +18 -0
  2. package/dist/add-P76GEMGF.js +8 -0
  3. package/dist/agent-UUTYOFTH.js +33 -0
  4. package/dist/agent-loader-EPXURMO7.js +2 -0
  5. package/dist/agent-loader-PYGPX6D2.js +2 -0
  6. package/dist/agent-state-KSQ3S7OB.js +2 -0
  7. package/dist/agents-suggest-HYTFMQD3.js +10 -0
  8. package/dist/aggregate-W66DM3GA.js +10 -0
  9. package/dist/ambient-HYZR42NX.js +35 -0
  10. package/dist/assess-UFPYEJKP.js +9 -0
  11. package/dist/auto-RHJXOZFL.js +14 -0
  12. package/dist/beacon-5QVYV5DF.js +13 -0
  13. package/dist/calibration-OLJYB5HN.js +7 -0
  14. package/dist/check-THVGY4R5.js +14 -0
  15. package/dist/chunk-22ISTMKI.js +31 -0
  16. package/dist/chunk-2QO33NYK.js +3 -0
  17. package/dist/chunk-33LKBMVK.js +134 -0
  18. package/dist/chunk-4QADCWPU.js +7 -0
  19. package/dist/chunk-4TXOVRWD.js +3 -0
  20. package/dist/chunk-4UJ4NIEQ.js +4 -0
  21. package/dist/chunk-4ZGGWZ32.js +3 -0
  22. package/dist/chunk-5TAVYPOV.js +2 -0
  23. package/dist/chunk-6EX37L4Q.js +8 -0
  24. package/dist/chunk-AD5TAD2A.js +5 -0
  25. package/dist/chunk-AGVAHVUA.js +2 -0
  26. package/dist/chunk-AO7ZSRME.js +13 -0
  27. package/dist/chunk-BFD3GFRK.js +2 -0
  28. package/dist/chunk-D34YFK4M.js +6 -0
  29. package/dist/chunk-DVZWCXB6.js +2 -0
  30. package/dist/chunk-EKZDFEJW.js +2 -0
  31. package/dist/chunk-ET5XJTSX.js +2 -0
  32. package/dist/chunk-FYDRENK7.js +3 -0
  33. package/dist/chunk-HMQ5BHP2.js +743 -0
  34. package/dist/chunk-HXKWL3VK.js +29 -0
  35. package/dist/chunk-IZSBGW6E.js +2 -0
  36. package/dist/chunk-J32OPJEX.js +2 -0
  37. package/dist/chunk-JBDMCRPP.js +7 -0
  38. package/dist/chunk-JIXHEBGK.js +7 -0
  39. package/dist/chunk-JNSJVCTU.js +2 -0
  40. package/dist/chunk-JQKKVAAN.js +2 -0
  41. package/dist/chunk-KLBH26PA.js +429 -0
  42. package/dist/chunk-L6K5HNDL.js +24 -0
  43. package/dist/chunk-LKAT7IAK.js +2 -0
  44. package/dist/chunk-M4UMM6DC.js +5 -0
  45. package/dist/chunk-NKYNHSA5.js +424 -0
  46. package/dist/chunk-NW6OKHE6.js +5 -0
  47. package/dist/chunk-NXRVR37G.js +60 -0
  48. package/dist/chunk-ODVKPZZ4.js +2 -0
  49. package/dist/chunk-PUBB7LIT.js +5 -0
  50. package/dist/chunk-Q2J542ST.js +2 -0
  51. package/dist/chunk-QGZRM6ZB.js +2 -0
  52. package/dist/chunk-QNZEG7IT.js +13 -0
  53. package/dist/chunk-QT2LKB3P.js +7 -0
  54. package/dist/chunk-RVRARWSY.js +9 -0
  55. package/dist/chunk-T6IDXUUA.js +2 -0
  56. package/dist/chunk-TYWB5IQJ.js +3 -0
  57. package/dist/chunk-UIKLE3WD.js +2 -0
  58. package/dist/chunk-V7K6CQVX.js +111 -0
  59. package/dist/chunk-VCKKJDLP.js +8 -0
  60. package/dist/chunk-VG7FN2TU.js +4 -0
  61. package/dist/chunk-W5IWDW4Y.js +16 -0
  62. package/dist/chunk-W7C6FFMO.js +8 -0
  63. package/dist/chunk-WESTEMIM.js +10 -0
  64. package/dist/chunk-WR6D3SC6.js +5 -0
  65. package/dist/chunk-WS2N27RX.js +3 -0
  66. package/dist/chunk-XMAV5AG6.js +2 -0
  67. package/dist/chunk-XROULIQN.js +2 -0
  68. package/dist/chunk-XUFYOXOU.js +3 -0
  69. package/dist/chunk-Y4XFVDZC.js +3 -0
  70. package/dist/chunk-Y6KXTQBG.js +2 -0
  71. package/dist/{chunk-GTR2TBIJ.js → chunk-Z2UZUCY6.js} +237 -1047
  72. package/dist/chunk-Z34K6GY2.js +8 -0
  73. package/dist/claude-4LR3LJQZ.js +13 -0
  74. package/dist/claude-cli-UP6HGH7C.js +6 -0
  75. package/dist/claude-code-RLJ4GX77.js +11 -0
  76. package/dist/claude-code-teams-R37HJY3Y.js +29 -0
  77. package/dist/commands-LMUD5L6R.js +455 -0
  78. package/dist/compliance-GZ7UAOG3.js +6 -0
  79. package/dist/conductor-Y5IXELTL.js +4 -0
  80. package/dist/config-schema-HR7LDEQ6.js +2 -0
  81. package/dist/constellation-CG7C4WFE.js +13 -0
  82. package/dist/context-audit-RSSRX6XC.js +6 -0
  83. package/dist/cost-IDNVMAEV.js +10 -0
  84. package/dist/cost-PK4KIF7R.js +2 -0
  85. package/dist/cursor-cli-QKF7Z6M2.js +4 -0
  86. package/dist/cursorrules-U5O4G5T4.js +14 -0
  87. package/dist/decision-loader-2XPZE4EZ.js +2 -0
  88. package/dist/delete-P5VULXR4.js +14 -0
  89. package/dist/diff-RTFUKJHF.js +9 -0
  90. package/dist/discipline-H7LDI6NT.js +2 -0
  91. package/dist/dist-3ZCH25SG.js +2 -0
  92. package/dist/dist-KGRCLBJP-2QAPFYNF.js +39 -0
  93. package/dist/dist-R3RWD35F.js +2 -0
  94. package/dist/dist-VGFSP3XM.js +2 -0
  95. package/dist/dist-VXCZWVVJ.js +2 -0
  96. package/dist/dist-W3XCATBJ.js +2 -0
  97. package/dist/docs-EDQ2STFK.js +2 -0
  98. package/dist/docs-RXPN6CK7.js +12 -0
  99. package/dist/doctor-2T2QL6VM.js +2 -0
  100. package/dist/drift-ILZE5BFJ.js +13 -0
  101. package/dist/echo-UPTQUEDU.js +46 -0
  102. package/dist/edit-GUU3HBVW.js +9 -0
  103. package/dist/event-Y3VXC2RV.js +3 -0
  104. package/dist/explain-files-3GPZUETV.js +4 -0
  105. package/dist/export-CV5KCTPS.js +2 -0
  106. package/dist/flow-S3RQ4YPY.js +11 -0
  107. package/dist/global-C44FW4G2.js +13 -0
  108. package/dist/graduate-3BBSC27A.js +5 -0
  109. package/dist/graph-CNDE5TAT.js +2 -0
  110. package/dist/graph-server-COZR5C3Z.js +14 -0
  111. package/dist/habits-4J2KRYUL.js +42 -0
  112. package/dist/history-UW454SDP.js +12 -0
  113. package/dist/hooks-XH52VGOU.js +2 -0
  114. package/dist/index.js +15 -1039
  115. package/dist/init-24MAQJFM.js +2 -0
  116. package/dist/integrity-UYDOOJDP.js +7 -0
  117. package/dist/integrity-checker-DHGMZQDG.js +2 -0
  118. package/dist/journal-loader-GLH7XFTK.js +2 -0
  119. package/dist/lint-IGKE6UPS.js +26 -0
  120. package/dist/list-5IUGP3ZB.js +7 -0
  121. package/dist/list-YKIQNKGB.js +6 -0
  122. package/dist/lore-loader-RVQI5GXL.js +2 -0
  123. package/dist/lore-loader-XY5MZRR2.js +2 -0
  124. package/dist/lore-server-FC2GMDLT.js +14 -0
  125. package/dist/manual-RXSPSFLL.js +20 -0
  126. package/dist/mcp.js +93 -20484
  127. package/dist/migrate-X5OMAFAQ.js +59 -0
  128. package/dist/migrate-assessments-GEI5WMI2.js +4 -0
  129. package/dist/model-discovery-HMB3YI4L.js +2 -0
  130. package/dist/nomination-engine-XF7TWPAP.js +2 -0
  131. package/dist/notebook-PE3JSYZI.js +11 -0
  132. package/dist/notebook-loader-CENTDDUJ.js +2 -0
  133. package/dist/orchestrate-35HBQ3O3.js +8 -0
  134. package/dist/peers-P2KXU7ZK.js +5 -0
  135. package/dist/persona-STQWZH5P.js +29 -0
  136. package/dist/pipeline-MZUITRVN.js +4 -0
  137. package/dist/platform-server-2KXHGHFV.js +25 -0
  138. package/dist/plugin-update-checker-M7PW434O.js +2 -0
  139. package/dist/portal-check-3JVNLOEP.js +8 -0
  140. package/dist/portal-compliance-2UG4VKWH.js +2 -0
  141. package/dist/probe-5L5BQDGE.js +6 -0
  142. package/dist/project-type-SURTOIG7.js +2 -0
  143. package/dist/promote-NJQDZBZA.js +8 -0
  144. package/dist/providers-4PXMWA7V.js +8 -0
  145. package/dist/quiz-FE5UGAY2.js +10 -0
  146. package/dist/record-YXPB34MY.js +6 -0
  147. package/dist/reindex-PGDQSM42.js +2 -0
  148. package/dist/remember-MJRNTXYS.js +14 -0
  149. package/dist/retag-N5XF3KXP.js +6 -0
  150. package/dist/review-6UAH6V3R.js +11 -0
  151. package/dist/review-77QI6VOC.js +6 -0
  152. package/dist/ripple-ZGDITCGB.js +10 -0
  153. package/dist/roster-FLRZ5J42.js +2 -0
  154. package/dist/sentinel-HYAZ3CO5.js +19 -0
  155. package/dist/sentinel-bridge-VR357PKL.js +2 -0
  156. package/dist/sentinel-mcp.js +38 -3808
  157. package/dist/sentinel.js +1 -34
  158. package/dist/serve-JE6UF5P2.js +8 -0
  159. package/dist/serve-L52ZUTU6.js +10 -0
  160. package/dist/serve-OY6XYL7F.js +12 -0
  161. package/dist/server-2MNROHF6.js +7 -0
  162. package/dist/server-4YNUIK4W.js +8 -0
  163. package/dist/session-tracker-SKOMBDOW.js +2 -0
  164. package/dist/session-work-log-3MNUDEZ6.js +2 -0
  165. package/dist/session-work-log-J2H5OZBR.js +2 -0
  166. package/dist/setup-3F5IK7MO.js +31 -0
  167. package/dist/setup-KPIMRZ4Q.js +2 -0
  168. package/dist/shift-6GCNH666.js +11 -0
  169. package/dist/show-BOAVWZPZ.js +7 -0
  170. package/dist/show-PJ5LFLIL.js +5 -0
  171. package/dist/snapshot-L2G56RPL.js +8 -0
  172. package/dist/spawn-UH5RENSE.js +12 -0
  173. package/dist/status-77M3SDIF.js +8 -0
  174. package/dist/status-A37ECYNJ.js +6 -0
  175. package/dist/summary-ZJLQ6KHB.js +7 -0
  176. package/dist/sweep-HU74OPVW.js +17 -0
  177. package/dist/switch-CTW4PDGI.js +17 -0
  178. package/dist/symphony-3QMBGCZY.js +2 -0
  179. package/dist/symphony-QI63XL62.js +53 -0
  180. package/dist/symphony-loader-XACVV2E3.js +2 -0
  181. package/dist/symphony-peers-U4KHMKGI.js +2 -0
  182. package/dist/symphony-peers-X5NGWXFP.js +2 -0
  183. package/dist/symphony-relay-5GY5JIPT.js +3 -0
  184. package/dist/sync-QRDSFETO.js +2 -0
  185. package/dist/sync-llms-HL5PPW3M.js +15 -0
  186. package/dist/task-loader-NZFDTUQ5.js +2 -0
  187. package/dist/team-WGERKGNP.js +2 -0
  188. package/dist/test-BQJMS4Y2.js +111 -0
  189. package/dist/thread-HFXK65D4.js +41 -0
  190. package/dist/timeline-K3ZFKJ3R.js +6 -0
  191. package/dist/triage-FCWOZASE.js +18 -0
  192. package/dist/tutorial-UC6YQMNN.js +305 -0
  193. package/dist/university-content/courses/.purpose +74 -5
  194. package/dist/university-content/courses/para-701.json +807 -0
  195. package/dist/university-content/plsat/.purpose +3 -2
  196. package/dist/university-ui/assets/{index-BjewBB6s.js → index-CGFJczb1.js} +2 -2
  197. package/dist/university-ui/assets/{index-BjewBB6s.js.map → index-CGFJczb1.js.map} +1 -1
  198. package/dist/university-ui/index.html +1 -1
  199. package/dist/upgrade-B4IOLZYK.js +53 -0
  200. package/dist/validate-C6SMKGYD.js +9 -0
  201. package/dist/validate-LSCDOLBO.js +13 -0
  202. package/dist/validate-VZXTJHGO.js +6 -0
  203. package/dist/watch-LRM5XD46.js +8 -0
  204. package/dist/watch-PZCCUP6K.js +9 -0
  205. package/dist/wisdom-XZ3QKPNP.js +7 -0
  206. package/dist/work-log-loader-DL5GZ2BQ.js +2 -0
  207. package/dist/workspace-2ODL5WLY.js +2 -0
  208. package/package.json +1 -1
  209. package/platform-ui/dist/assets/AmbientSection-DqQ2mfCO.js +1 -0
  210. package/platform-ui/dist/assets/{CanvasSection-DwPTRdIN.js → CanvasSection-DLW0s-Bu.js} +1 -1
  211. package/platform-ui/dist/assets/{DocsSection-BJc_ws4I.js → DocsSection-BQ9Hi51g.js} +1 -1
  212. package/platform-ui/dist/assets/{GitSection-DhqBo1xc.js → GitSection-QQeUX6o3.js} +1 -1
  213. package/platform-ui/dist/assets/{GraphSection-D9fhVnZ0.js → GraphSection-0c9C-w7K.js} +2 -2
  214. package/platform-ui/dist/assets/{GraphSection-BlgXTl53.css → GraphSection-Bbs2a8sC.css} +1 -1
  215. package/platform-ui/dist/assets/LoreSection--t56kCj2.js +1 -0
  216. package/platform-ui/dist/assets/LoreSection-qnmm3o4y.css +1 -0
  217. package/platform-ui/dist/assets/SentinelSection-C4OoME9U.js +1 -0
  218. package/platform-ui/dist/assets/{SymphonySection-BRoBaUSS.js → SymphonySection-B-rvsLxq.js} +1 -1
  219. package/platform-ui/dist/assets/TeamSection-CBFmNEEo.js +1 -0
  220. package/platform-ui/dist/assets/index-Bxp0TVaf.css +1 -0
  221. package/platform-ui/dist/assets/index-DPpOdAtC.js +57 -0
  222. package/platform-ui/dist/index.html +2 -2
  223. package/dist/accept-orchestration-UQLM7PTQ.js +0 -189
  224. package/dist/add-FZRKEGH4.js +0 -81
  225. package/dist/agent-WERIO2XV.js +0 -523
  226. package/dist/agent-loader-TFIANSF4.js +0 -44
  227. package/dist/agent-state-S5DAWPTF.js +0 -24
  228. package/dist/agents-suggest-DNSYJ6IA.js +0 -83
  229. package/dist/aggregate-H57K7PNV.js +0 -88
  230. package/dist/assess-4WVXZLZQ.js +0 -68
  231. package/dist/auto-QFS5NHQU.js +0 -504
  232. package/dist/beacon-KXZXYQHX.js +0 -251
  233. package/dist/calibration-V46G7JTY.js +0 -135
  234. package/dist/check-OWAIWV23.js +0 -175
  235. package/dist/chunk-2IO7JAG2.js +0 -148
  236. package/dist/chunk-2T6BTYBN.js +0 -712
  237. package/dist/chunk-36TKPM5Z.js +0 -400
  238. package/dist/chunk-45MUDW6E.js +0 -804
  239. package/dist/chunk-4BLYIB7J.js +0 -5701
  240. package/dist/chunk-4L3UTYQX.js +0 -677
  241. package/dist/chunk-4NCFWYGG.js +0 -110
  242. package/dist/chunk-54LTTQBH.js +0 -138
  243. package/dist/chunk-5EWAQHFY.js +0 -269
  244. package/dist/chunk-5JGJACDU.js +0 -37
  245. package/dist/chunk-5OUOLN6M.js +0 -659
  246. package/dist/chunk-5VKJBNJL.js +0 -444
  247. package/dist/chunk-6N3JTACN.js +0 -2260
  248. package/dist/chunk-6QC3YGB6.js +0 -114
  249. package/dist/chunk-7N7GSU6K.js +0 -34
  250. package/dist/chunk-ABVQGRF7.js +0 -268
  251. package/dist/chunk-CL7JSK52.js +0 -129
  252. package/dist/chunk-CSD7IHSN.js +0 -152
  253. package/dist/chunk-EDOAWN7J.js +0 -717
  254. package/dist/chunk-EKGMAM62.js +0 -525
  255. package/dist/chunk-EZ3GOCYC.js +0 -132
  256. package/dist/chunk-F3BCHPYT.js +0 -143
  257. package/dist/chunk-FKJUBQU3.js +0 -3081
  258. package/dist/chunk-GT5QGC2H.js +0 -253
  259. package/dist/chunk-GZDFVP2N.js +0 -540
  260. package/dist/chunk-IRKUEJVW.js +0 -405
  261. package/dist/chunk-J2JEQRT3.js +0 -164
  262. package/dist/chunk-JASGXLK3.js +0 -679
  263. package/dist/chunk-KVDYJLTC.js +0 -121
  264. package/dist/chunk-L27I3CPZ.js +0 -357
  265. package/dist/chunk-LHLIAYQ3.js +0 -185
  266. package/dist/chunk-MCMOGQMU.js +0 -145
  267. package/dist/chunk-NQKQG45G.js +0 -688
  268. package/dist/chunk-PBHIFAL4.js +0 -259
  269. package/dist/chunk-PDX44BCA.js +0 -11
  270. package/dist/chunk-PMXRGPRQ.js +0 -305
  271. package/dist/chunk-RAB5IKPR.js +0 -487
  272. package/dist/chunk-RJE5G7WO.js +0 -590
  273. package/dist/chunk-RTHA3XRE.js +0 -880
  274. package/dist/chunk-S2HO5MLR.js +0 -621
  275. package/dist/chunk-S3ORKP3V.js +0 -716
  276. package/dist/chunk-TAIJOFOE.js +0 -124
  277. package/dist/chunk-TXESEO7Y.js +0 -245
  278. package/dist/chunk-UPLDI7CN.js +0 -1334
  279. package/dist/chunk-VL67H5IC.js +0 -506
  280. package/dist/chunk-VPPK3SY4.js +0 -1136
  281. package/dist/chunk-YMDLDELF.js +0 -314
  282. package/dist/chunk-YO6DVTL7.js +0 -99
  283. package/dist/chunk-YRZ5RPEB.js +0 -1561
  284. package/dist/chunk-ZDHLG5VP.js +0 -5676
  285. package/dist/chunk-ZGUAAVMA.js +0 -756
  286. package/dist/chunk-ZSYVKSY6.js +0 -2602
  287. package/dist/claude-FRRWJSTJ.js +0 -362
  288. package/dist/claude-cli-XJLK2X4L.js +0 -276
  289. package/dist/claude-code-HTBA4XRB.js +0 -126
  290. package/dist/claude-code-teams-T4SP24MD.js +0 -199
  291. package/dist/commands-5N4ILTPH.js +0 -5859
  292. package/dist/conductor-CQVGTEQN.js +0 -161
  293. package/dist/config-schema-EA4XALGG.js +0 -154
  294. package/dist/constellation-A26CCGQS.js +0 -225
  295. package/dist/context-audit-RLO3ETRP.js +0 -682
  296. package/dist/cost-BGM32XJU.js +0 -93
  297. package/dist/cost-VI46A4XL.js +0 -174
  298. package/dist/cursor-cli-JVEZGHWQ.js +0 -269
  299. package/dist/cursorrules-HLIKJJZT.js +0 -84
  300. package/dist/decision-loader-WWCLIQPJ.js +0 -20
  301. package/dist/delete-KBRPQLPC.js +0 -56
  302. package/dist/diff-D4X53HAC.js +0 -126
  303. package/dist/discipline-FA4OZXIS.js +0 -24
  304. package/dist/dist-34NA5RS5.js +0 -74
  305. package/dist/dist-5QE2BB2B-5S3T6Y3T.js +0 -6919
  306. package/dist/dist-77JDTVAY.js +0 -62
  307. package/dist/dist-OGTSAZ55.js +0 -1358
  308. package/dist/dist-QK4SQAK7.js +0 -64
  309. package/dist/dist-TA6LSC2Q.js +0 -20
  310. package/dist/docs-PBZB7LYP.js +0 -89
  311. package/dist/docs-QIYKO3BR.js +0 -155
  312. package/dist/doctor-ULBOHEIC.js +0 -11
  313. package/dist/drift-R5NRKFHI.js +0 -251
  314. package/dist/echo-O2LY7CC2.js +0 -248
  315. package/dist/edit-R2HNLMOG.js +0 -63
  316. package/dist/event-25OJKDCE.js +0 -31
  317. package/dist/export-IWVL7XLF.js +0 -38
  318. package/dist/flow-CRRVV3O3.js +0 -185
  319. package/dist/global-3NG5JXUB.js +0 -136
  320. package/dist/graduate-USAWGBJM.js +0 -160
  321. package/dist/graph-VHUMAAS6.js +0 -12
  322. package/dist/graph-server-YL22VBBN.js +0 -116
  323. package/dist/habits-OL5NGPXO.js +0 -1405
  324. package/dist/history-WOWC573W.js +0 -277
  325. package/dist/hooks-HFWSCGPV.js +0 -12
  326. package/dist/integrity-IHO4FZTS.js +0 -194
  327. package/dist/integrity-checker-PSKJA5SB.js +0 -12
  328. package/dist/journal-loader-5EYSBFFY.js +0 -18
  329. package/dist/lint-K6CJGGPH.js +0 -456
  330. package/dist/list-4YK7QKFF.js +0 -57
  331. package/dist/list-ENR7Q4CR.js +0 -56
  332. package/dist/lore-loader-7NO6N6FT.js +0 -26
  333. package/dist/lore-server-UNJY5KC3.js +0 -118
  334. package/dist/manual-G6FISID5.js +0 -204
  335. package/dist/migrate-LS45DNEV.js +0 -889
  336. package/dist/migrate-assessments-RGH4O6IX.js +0 -97
  337. package/dist/model-discovery-D2H3VBGC.js +0 -8
  338. package/dist/nomination-engine-RV5CNO5B.js +0 -42
  339. package/dist/notebook-YWIYGEHV.js +0 -155
  340. package/dist/orchestrate-JLILBBJE.js +0 -324
  341. package/dist/peers-DEOUIZM6.js +0 -82
  342. package/dist/persona-UHAHIVST.js +0 -390
  343. package/dist/pipeline-L4HCSBGN.js +0 -263
  344. package/dist/platform-server-H5YO3DQD.js +0 -1475
  345. package/dist/plugin-update-checker-KRRSGXMV.js +0 -12
  346. package/dist/portal-check-NPYGII2D.js +0 -42
  347. package/dist/portal-compliance-J7DGAPFX.js +0 -18
  348. package/dist/probe-MHL5HQZ2.js +0 -167
  349. package/dist/promote-F6ZYZZAL.js +0 -182
  350. package/dist/providers-GK7PB2OL.js +0 -104
  351. package/dist/quiz-M66SC7F7.js +0 -99
  352. package/dist/record-RA4WR2BO.js +0 -49
  353. package/dist/reindex-5LTD53ZC.js +0 -16
  354. package/dist/remember-HBWJ655S.js +0 -77
  355. package/dist/retag-3OLCVDEQ.js +0 -62
  356. package/dist/review-27ATYTD2.js +0 -33
  357. package/dist/review-57QMURZV.js +0 -334
  358. package/dist/ripple-JPBXP5I3.js +0 -215
  359. package/dist/sentinel-4XIG4STA.js +0 -63
  360. package/dist/sentinel-bridge-MDUXTQRL.js +0 -109
  361. package/dist/serve-CAH3PHE7.js +0 -33
  362. package/dist/serve-INL7SNBK.js +0 -36
  363. package/dist/serve-KBSE36PL.js +0 -49
  364. package/dist/server-54SKYFFY.js +0 -1647
  365. package/dist/server-XUOIO7E6.js +0 -338
  366. package/dist/session-tracker-C4BMD5WG.js +0 -13
  367. package/dist/session-work-log-MZ47OAPB.js +0 -20
  368. package/dist/setup-EDS27WUR.js +0 -25
  369. package/dist/setup-KO5AFC4K.js +0 -296
  370. package/dist/shift-D2JOHHBF.js +0 -668
  371. package/dist/show-5PV5KFJE.js +0 -176
  372. package/dist/show-NQKYX6WQ.js +0 -82
  373. package/dist/snapshot-BK4RBPCG.js +0 -62
  374. package/dist/spawn-RCHNXDHE.js +0 -196
  375. package/dist/status-WGIAQODY.js +0 -71
  376. package/dist/summary-NIRABMF5.js +0 -140
  377. package/dist/sweep-QMHNSIY5.js +0 -934
  378. package/dist/switch-6EJPZDIA.js +0 -232
  379. package/dist/symphony-4OCY36AI.js +0 -791
  380. package/dist/symphony-B75X2MME.js +0 -326
  381. package/dist/symphony-loader-UZGON56V.js +0 -90
  382. package/dist/symphony-peers-2ZQYLRNI.js +0 -34
  383. package/dist/symphony-peers-OL7F6M5S.js +0 -121
  384. package/dist/symphony-relay-UJYUXN65.js +0 -710
  385. package/dist/sync-VEHUH4OA.js +0 -11
  386. package/dist/sync-llms-YHCFIE6X.js +0 -166
  387. package/dist/task-loader-LDYWQSLM.js +0 -20
  388. package/dist/team-O5MIIFMA.js +0 -34
  389. package/dist/test-566CP5KC.js +0 -1017
  390. package/dist/thread-N754I4D5.js +0 -274
  391. package/dist/timeline-M3CICQFE.js +0 -112
  392. package/dist/triage-HHYGT3HY.js +0 -671
  393. package/dist/tutorial-KD22SUNO.js +0 -666
  394. package/dist/upgrade-H5PF32BW.js +0 -551
  395. package/dist/validate-CNKEKO6A.js +0 -134
  396. package/dist/validate-MB5ULIHS.js +0 -39
  397. package/dist/validate-QH3LADM6.js +0 -64
  398. package/dist/watch-2TKP5PVL.js +0 -199
  399. package/dist/watch-ZF4ML6CD.js +0 -111
  400. package/dist/wisdom-AATMGNFA.js +0 -319
  401. package/dist/work-log-loader-5L45XNYZ.js +0 -14
  402. package/dist/workspace-6E6OSRNU.js +0 -21
  403. package/platform-ui/dist/assets/AmbientSection-WtHfNedO.js +0 -1
  404. package/platform-ui/dist/assets/LoreSection-C3EixkjW.css +0 -1
  405. package/platform-ui/dist/assets/LoreSection-CwDDHrz9.js +0 -1
  406. package/platform-ui/dist/assets/SentinelSection-Cl7e5oZ6.js +0 -1
  407. package/platform-ui/dist/assets/TeamSection-CqSIMrKz.js +0 -1
  408. package/platform-ui/dist/assets/index-CfpZFjea.css +0 -1
  409. package/platform-ui/dist/assets/index-F0KL9xrN.js +0 -57
@@ -1,880 +0,0 @@
1
- #!/usr/bin/env node
2
- import {
3
- BackgroundOrchestrator
4
- } from "./chunk-YRZ5RPEB.js";
5
- import {
6
- AGENT_MODEL_RECOMMENDATIONS,
7
- addActivity,
8
- agentsConfigured,
9
- clearCurrentAgent,
10
- generateDefaultManifest,
11
- getAgentsPath,
12
- getParadigmDir,
13
- getPendingHandoffs,
14
- listHandoffs,
15
- loadAgentsManifest,
16
- loadTeamState,
17
- saveAgentsManifest,
18
- saveHandoff,
19
- saveTeamState,
20
- setCurrentAgent
21
- } from "./chunk-PMXRGPRQ.js";
22
- import {
23
- ModelDiscovery
24
- } from "./chunk-5OUOLN6M.js";
25
-
26
- // src/commands/team/index.ts
27
- import * as fs from "fs";
28
- import * as path2 from "path";
29
- import chalk2 from "chalk";
30
-
31
- // src/commands/team/configure-models.ts
32
- import prompts from "prompts";
33
- import chalk from "chalk";
34
- import * as path from "path";
35
- function shouldPromptForModels() {
36
- if (process.env.CLAUDE_CODE === "1" || process.env.TERM_PROGRAM === "claude") {
37
- return false;
38
- }
39
- if (process.env.TERM_PROGRAM === "cursor" || process.env.CURSOR_SESSION || process.env.CURSOR_TRACE_ID || process.env.VSCODE_CWD && process.env.VSCODE_CWD.toLowerCase().includes("cursor") || process.env.VSCODE_NLS_CONFIG && process.env.VSCODE_NLS_CONFIG.toLowerCase().includes("cursor") || process.env.TERM_PROGRAM === "vscode" && process.env.VSCODE_GIT_ASKPASS_NODE?.toLowerCase().includes("cursor")) {
40
- return true;
41
- }
42
- if (process.stdin.isTTY) {
43
- return true;
44
- }
45
- return false;
46
- }
47
- async function promptForAgentModels(rootDir) {
48
- const discovery = new ModelDiscovery(rootDir);
49
- const result = await discovery.discover();
50
- console.log(chalk.cyan("\n Configure Agent Models\n"));
51
- console.log(chalk.gray(` Environment: ${result.source}`));
52
- console.log(chalk.gray(` Available: ${result.models.length} models
53
- `));
54
- const models = {};
55
- const tiers = discovery.groupByTier(result.models);
56
- const buildChoices = (agent) => {
57
- const rec = AGENT_MODEL_RECOMMENDATIONS[agent];
58
- const recommended = rec.tier === "high" ? tiers.high : rec.tier === "medium" ? tiers.medium : tiers.low;
59
- const choices = [];
60
- for (const model of recommended) {
61
- const isFirst = choices.length === 0;
62
- choices.push({
63
- title: isFirst ? `${model.name} (recommended)` : model.name,
64
- value: model.id,
65
- description: `${model.provider} - ${rec.tier} tier`
66
- });
67
- }
68
- const otherHigh = tiers.high.filter((m) => !recommended.includes(m));
69
- const otherMedium = tiers.medium.filter((m) => !recommended.includes(m));
70
- const otherLow = tiers.low.filter((m) => !recommended.includes(m));
71
- for (const model of otherHigh) {
72
- choices.push({
73
- title: model.name,
74
- value: model.id,
75
- description: `${model.provider} - high tier`
76
- });
77
- }
78
- for (const model of otherMedium) {
79
- choices.push({
80
- title: model.name,
81
- value: model.id,
82
- description: `${model.provider} - medium tier`
83
- });
84
- }
85
- for (const model of otherLow) {
86
- choices.push({
87
- title: model.name,
88
- value: model.id,
89
- description: `${model.provider} - low tier`
90
- });
91
- }
92
- return choices;
93
- };
94
- for (const agent of ["architect", "builder", "tester", "reviewer", "security"]) {
95
- const rec = AGENT_MODEL_RECOMMENDATIONS[agent];
96
- const label = agent.charAt(0).toUpperCase() + agent.slice(1);
97
- const choices = buildChoices(agent);
98
- const response = await prompts({
99
- type: "select",
100
- name: "model",
101
- message: `${label} (${rec.description})`,
102
- choices,
103
- initial: 0
104
- }, {
105
- onCancel: () => {
106
- console.log(chalk.yellow("\n Cancelled. Using defaults.\n"));
107
- process.exit(0);
108
- }
109
- });
110
- models[agent] = { id: response.model };
111
- console.log(chalk.green(` \u2713 ${label}: ${response.model}
112
- `));
113
- }
114
- return models;
115
- }
116
- async function teamModelsCommand(targetPath, options) {
117
- const rootDir = targetPath ? path.resolve(targetPath) : process.cwd();
118
- const manifest = loadAgentsManifest(rootDir);
119
- const discovery = new ModelDiscovery(rootDir);
120
- if (options.refresh) {
121
- discovery.clearCache();
122
- }
123
- const available = await discovery.discover();
124
- if (options.json) {
125
- const agentModels = {};
126
- if (manifest?.agents) {
127
- for (const [name, agent] of Object.entries(manifest.agents)) {
128
- agentModels[name] = agent.defaultModel || "default";
129
- }
130
- }
131
- console.log(JSON.stringify({
132
- environment: available.source,
133
- cached: available.cached,
134
- agents: agentModels,
135
- available: available.models
136
- }, null, 2));
137
- return;
138
- }
139
- console.log(chalk.cyan("\n Agent Model Configuration\n"));
140
- console.log(chalk.gray(` Environment: ${available.source}${available.cached ? " (cached)" : ""}`));
141
- console.log(chalk.gray(` Available models: ${available.models.length}
142
- `));
143
- console.log(" Current assignments:");
144
- console.log(chalk.gray(" \u250C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510"));
145
- console.log(chalk.gray(" \u2502 Agent \u2502 Model \u2502"));
146
- console.log(chalk.gray(" \u251C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u253C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524"));
147
- if (manifest?.agents) {
148
- for (const [name, agent] of Object.entries(manifest.agents)) {
149
- const model = agent.defaultModel || "default";
150
- const paddedName = name.padEnd(11);
151
- const paddedModel = model.padEnd(21);
152
- console.log(chalk.gray(" \u2502 ") + chalk.white(paddedName) + chalk.gray(" \u2502 ") + chalk.yellow(paddedModel) + chalk.gray(" \u2502"));
153
- }
154
- } else {
155
- console.log(chalk.gray(" \u2502 (no agents configured) \u2502"));
156
- }
157
- console.log(chalk.gray(" \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518\n"));
158
- const tiers = discovery.groupByTier(available.models);
159
- console.log(chalk.cyan(" Available models by tier:\n"));
160
- if (tiers.high.length > 0) {
161
- console.log(chalk.yellow(" High (complex reasoning):"));
162
- for (const m of tiers.high.slice(0, 5)) {
163
- console.log(chalk.gray(` - ${m.name} (${m.provider})`));
164
- }
165
- if (tiers.high.length > 5) {
166
- console.log(chalk.gray(` ... and ${tiers.high.length - 5} more`));
167
- }
168
- console.log();
169
- }
170
- if (tiers.medium.length > 0) {
171
- console.log(chalk.blue(" Medium (balanced):"));
172
- for (const m of tiers.medium.slice(0, 5)) {
173
- console.log(chalk.gray(` - ${m.name} (${m.provider})`));
174
- }
175
- if (tiers.medium.length > 5) {
176
- console.log(chalk.gray(` ... and ${tiers.medium.length - 5} more`));
177
- }
178
- console.log();
179
- }
180
- if (tiers.low.length > 0) {
181
- console.log(chalk.green(" Low (fast & cheap):"));
182
- for (const m of tiers.low.slice(0, 5)) {
183
- console.log(chalk.gray(` - ${m.name} (${m.provider})`));
184
- }
185
- if (tiers.low.length > 5) {
186
- console.log(chalk.gray(` ... and ${tiers.low.length - 5} more`));
187
- }
188
- console.log();
189
- }
190
- if (process.stdin.isTTY && !options.json) {
191
- console.log(chalk.gray(" \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"));
192
- const { action } = await prompts({
193
- type: "select",
194
- name: "action",
195
- message: "What would you like to do?",
196
- choices: [
197
- { title: "Reconfigure all models", value: "all" },
198
- { title: "Exit", value: "exit" }
199
- ],
200
- initial: 1
201
- });
202
- if (action === "all" && manifest) {
203
- const models = await promptForAgentModels(rootDir);
204
- for (const [agentName, config] of Object.entries(models)) {
205
- if (manifest.agents[agentName]) {
206
- manifest.agents[agentName].defaultModel = mapToSimpleModel(config.id);
207
- }
208
- }
209
- saveAgentsManifest(rootDir, manifest);
210
- console.log(chalk.green("\n \u2713 Model configuration updated.\n"));
211
- }
212
- }
213
- }
214
- function mapToSimpleModel(modelId) {
215
- const id = modelId.toLowerCase();
216
- if (id.includes("opus") || id.includes("gpt-4") && !id.includes("mini") && !id.includes("nano") || (id === "o3" || id.includes("o3") && !id.includes("mini")) || id.includes("o1") && !id.includes("mini") || id.includes("-pro") && !id.includes("mini") || id.includes("large") || id.includes("maverick") || id.includes("deepseek-r1") || id.includes("grok-3") && !id.includes("mini") || id.includes("grok-2") && !id.includes("mini")) {
217
- return "opus";
218
- }
219
- if (id.includes("haiku") || id.includes("mini") || id.includes("nano") || id.includes("flash") || id.includes("scout") || id.includes("small")) {
220
- return "haiku";
221
- }
222
- return "sonnet";
223
- }
224
-
225
- // src/commands/team/index.ts
226
- async function teamInitCommand(targetPath, options) {
227
- const rootDir = targetPath ? path2.resolve(targetPath) : process.cwd();
228
- const projectName = path2.basename(rootDir);
229
- const agentsPath = getAgentsPath(rootDir);
230
- if (!options.json) {
231
- console.log(chalk2.blue("\n Initialize Paradigm Team\n"));
232
- }
233
- if (agentsConfigured(rootDir) && !options.force) {
234
- if (options.json) {
235
- console.log(JSON.stringify({ error: "Team already configured", path: agentsPath }));
236
- } else {
237
- console.log(chalk2.yellow(` Team already configured at ${agentsPath}`));
238
- console.log(chalk2.gray(" Use --force to reinitialize.\n"));
239
- }
240
- return;
241
- }
242
- let modelOverrides;
243
- const shouldConfigure = options.configureModels || shouldPromptForModels() && options.noConfigureModels !== true;
244
- if (shouldConfigure && !options.json) {
245
- try {
246
- modelOverrides = await promptForAgentModels(rootDir);
247
- } catch {
248
- }
249
- }
250
- const manifest = generateDefaultManifest(projectName, modelOverrides);
251
- saveAgentsManifest(rootDir, manifest);
252
- const state = {
253
- current: null,
254
- queue: [],
255
- recent: [],
256
- blocked: []
257
- };
258
- saveTeamState(rootDir, state);
259
- if (options.json) {
260
- const agentModels = {};
261
- for (const [name, agent] of Object.entries(manifest.agents)) {
262
- agentModels[name] = agent.defaultModel || "default";
263
- }
264
- console.log(JSON.stringify({
265
- success: true,
266
- path: agentsPath,
267
- agents: Object.keys(manifest.agents),
268
- models: agentModels
269
- }));
270
- return;
271
- }
272
- console.log(chalk2.green(" \u2713 Team configuration created\n"));
273
- console.log(chalk2.gray(` ${agentsPath}
274
- `));
275
- console.log(chalk2.cyan(" Available agents:"));
276
- for (const [name, agent] of Object.entries(manifest.agents)) {
277
- const model = agent.defaultModel || "default";
278
- console.log(` ${chalk2.yellow(name.padEnd(12))} ${chalk2.gray(`(${model})`)} ${agent.role.split("\n")[0]}`);
279
- }
280
- console.log(chalk2.cyan("\n Next steps:"));
281
- console.log(chalk2.gray(" 1. Review .paradigm/agents.yaml and customize roles"));
282
- console.log(chalk2.gray(" 2. Run `paradigm team models` to reconfigure models"));
283
- console.log(chalk2.gray(" 3. Run `paradigm team status` to see team state"));
284
- console.log(chalk2.gray(" 4. Use `paradigm team handoff --to <agent>` to hand off work\n"));
285
- }
286
- async function teamStatusCommand(targetPath, options) {
287
- const rootDir = targetPath ? path2.resolve(targetPath) : process.cwd();
288
- if (options.id) {
289
- return showOrchestrationStatus(rootDir, options.id, options);
290
- }
291
- if (options.running) {
292
- return showRunningOrchestrations(rootDir, options);
293
- }
294
- const manifest = loadAgentsManifest(rootDir);
295
- if (!manifest) {
296
- if (options.json) {
297
- console.log(JSON.stringify({ error: "Team not configured" }));
298
- } else {
299
- console.log(chalk2.yellow("\nTeam not configured. Run `paradigm team init` first.\n"));
300
- }
301
- return;
302
- }
303
- const state = loadTeamState(rootDir);
304
- const pending = getPendingHandoffs(rootDir);
305
- const bgOrchestrator = new BackgroundOrchestrator(rootDir);
306
- const running = bgOrchestrator.getRunning();
307
- if (options.json) {
308
- console.log(JSON.stringify({
309
- team: manifest.team,
310
- agents: Object.keys(manifest.agents),
311
- current: state.current,
312
- queue: state.queue,
313
- pending_handoffs: pending.length,
314
- running_orchestrations: running.length,
315
- recent: state.recent.slice(0, 5)
316
- }, null, 2));
317
- return;
318
- }
319
- console.log(chalk2.blue("\n\u{1F465} Paradigm Team Status\n"));
320
- console.log(chalk2.gray("\u2500".repeat(50)));
321
- console.log(chalk2.white(`Team: ${manifest.team.name}`));
322
- console.log(chalk2.gray(`Agents: ${Object.keys(manifest.agents).join(", ")}`));
323
- console.log();
324
- if (running.length > 0) {
325
- console.log(chalk2.cyan("Running Orchestrations:"));
326
- for (const orch of running) {
327
- const elapsed = orch.started ? Math.floor((Date.now() - new Date(orch.started).getTime()) / 6e4) : 0;
328
- console.log(` ${chalk2.yellow("\u25B6")} ${orch.id}`);
329
- console.log(chalk2.gray(` ${orch.task.slice(0, 40)}${orch.task.length > 40 ? "..." : ""}`));
330
- console.log(chalk2.gray(` Running for ${elapsed}m | Mode: ${orch.mode}`));
331
- }
332
- console.log(chalk2.gray(`
333
- Use --running to see details, or \`tail -f <output_file>\` for logs`));
334
- console.log();
335
- }
336
- if (state.current) {
337
- const elapsed = Date.now() - new Date(state.current.started).getTime();
338
- const mins = Math.floor(elapsed / 6e4);
339
- console.log(chalk2.cyan("Current Agent:"));
340
- console.log(` ${chalk2.yellow(state.current.agent.toUpperCase())} - ${state.current.task}`);
341
- console.log(chalk2.gray(` Started ${mins}m ago`));
342
- if (state.current.symbols_touched.length > 0) {
343
- console.log(chalk2.gray(` Touched: ${state.current.symbols_touched.join(", ")}`));
344
- }
345
- console.log();
346
- } else {
347
- console.log(chalk2.cyan("Current Agent:"));
348
- console.log(chalk2.gray(" No active agent"));
349
- console.log();
350
- }
351
- if (pending.length > 0) {
352
- console.log(chalk2.cyan("Pending Handoffs:"));
353
- for (const h of pending) {
354
- console.log(` ${chalk2.yellow(h.from)} \u2192 ${chalk2.green(h.to)}: ${h.context.summary.substring(0, 50)}...`);
355
- }
356
- console.log(chalk2.gray(`
357
- Run \`paradigm team accept\` to accept a handoff`));
358
- console.log();
359
- }
360
- if (state.queue.length > 0) {
361
- console.log(chalk2.cyan("Queue:"));
362
- for (const q of state.queue) {
363
- console.log(` ${chalk2.yellow(q.agent)} waiting for ${q.waiting_for}: ${q.task}`);
364
- }
365
- console.log();
366
- }
367
- if (state.blocked.length > 0) {
368
- console.log(chalk2.red("Blocked:"));
369
- for (const b of state.blocked) {
370
- console.log(` ${chalk2.yellow(b.agent)}: ${b.reason}`);
371
- }
372
- console.log();
373
- }
374
- if (state.recent.length > 0) {
375
- console.log(chalk2.cyan("Recent Activity:"));
376
- for (const a of state.recent.slice(0, 5)) {
377
- const time = new Date(a.timestamp).toLocaleTimeString();
378
- const status = a.result === "success" ? chalk2.green("\u2713") : a.result === "failed" ? chalk2.red("\u2717") : a.result === "blocked" ? chalk2.yellow("\u2298") : chalk2.gray("\u25CB");
379
- const handoff = a.handed_to ? ` \u2192 ${a.handed_to}` : "";
380
- console.log(` ${status} ${time} ${chalk2.gray(a.agent)}: ${a.task}${handoff}`);
381
- }
382
- console.log();
383
- }
384
- console.log(chalk2.gray("\u2500".repeat(50)));
385
- console.log(chalk2.gray("Commands: team status | team status --running | team diff <id> | team accept <id>"));
386
- console.log();
387
- }
388
- async function showRunningOrchestrations(rootDir, options) {
389
- const bgOrchestrator = new BackgroundOrchestrator(rootDir);
390
- const running = bgOrchestrator.listOrchestrations({ status: ["running", "pending"] });
391
- const completed = bgOrchestrator.listOrchestrations({ status: "completed", limit: 5 });
392
- if (options.json) {
393
- console.log(JSON.stringify({
394
- running,
395
- recently_completed: completed
396
- }, null, 2));
397
- return;
398
- }
399
- console.log(chalk2.blue("\n\u{1F504} Running Orchestrations\n"));
400
- console.log(chalk2.gray("\u2500".repeat(60)));
401
- if (running.length === 0) {
402
- console.log(chalk2.gray(" No orchestrations currently running."));
403
- console.log();
404
- } else {
405
- for (const orch of running) {
406
- const elapsed = orch.started ? Math.floor((Date.now() - new Date(orch.started).getTime()) / 6e4) : 0;
407
- const statusIcon = orch.status === "running" ? chalk2.yellow("\u25B6") : chalk2.gray("\u25CB");
408
- console.log(` ${statusIcon} ${chalk2.cyan(orch.id)}`);
409
- console.log(chalk2.white(` Task: ${orch.task.slice(0, 50)}${orch.task.length > 50 ? "..." : ""}`));
410
- console.log(chalk2.gray(` Status: ${orch.status} | Mode: ${orch.mode} | Duration: ${elapsed}m`));
411
- console.log(chalk2.gray(` Output: ${orch.outputFile}`));
412
- console.log();
413
- }
414
- }
415
- if (completed.length > 0) {
416
- console.log(chalk2.cyan("Recently Completed:"));
417
- for (const orch of completed) {
418
- const statusIcon = orch.status === "completed" ? chalk2.green("\u2713") : orch.status === "failed" ? chalk2.red("\u2717") : orch.status === "accepted" ? chalk2.green("\u2713\u2713") : chalk2.gray("\u25CB");
419
- console.log(` ${statusIcon} ${orch.id} - ${orch.task.slice(0, 40)}${orch.task.length > 40 ? "..." : ""}`);
420
- }
421
- console.log();
422
- }
423
- console.log(chalk2.gray("\u2500".repeat(60)));
424
- console.log(chalk2.gray("Commands: team status <id> | team diff <id> | team accept <id>"));
425
- console.log();
426
- }
427
- async function showOrchestrationStatus(rootDir, id, options) {
428
- const bgOrchestrator = new BackgroundOrchestrator(rootDir);
429
- const orch = bgOrchestrator.getOrchestration(id);
430
- if (!orch) {
431
- if (options.json) {
432
- console.log(JSON.stringify({ error: "Orchestration not found", id }));
433
- } else {
434
- console.log(chalk2.red(`
435
- Orchestration not found: ${id}
436
- `));
437
- }
438
- return;
439
- }
440
- if (options.json) {
441
- console.log(JSON.stringify(orch, null, 2));
442
- return;
443
- }
444
- const statusIcon = orch.status === "running" ? chalk2.yellow("\u25B6") : orch.status === "completed" ? chalk2.green("\u2713") : orch.status === "failed" ? chalk2.red("\u2717") : orch.status === "accepted" ? chalk2.green("\u2713\u2713") : orch.status === "rejected" ? chalk2.red("\u2717\u2717") : chalk2.gray("\u25CB");
445
- console.log();
446
- console.log(chalk2.blue("\u2501".repeat(60)));
447
- console.log(chalk2.blue(` Orchestration: ${orch.id}`));
448
- console.log(chalk2.blue("\u2501".repeat(60)));
449
- console.log();
450
- console.log(` Status: ${statusIcon} ${orch.status}`);
451
- console.log(chalk2.gray(` Task: ${orch.task}`));
452
- console.log(chalk2.gray(` Mode: ${orch.mode}`));
453
- console.log(chalk2.gray(` Created: ${orch.created}`));
454
- if (orch.started) {
455
- console.log(chalk2.gray(` Started: ${orch.started}`));
456
- }
457
- if (orch.completed) {
458
- console.log(chalk2.gray(` Completed: ${orch.completed}`));
459
- }
460
- console.log();
461
- if (orch.parallelBuilderStats) {
462
- console.log(chalk2.cyan(" Parallel Builders:"));
463
- console.log(chalk2.gray(` Used file plan: ${orch.parallelBuilderStats.usedFilePlan ? "Yes" : "No"}`));
464
- console.log(chalk2.gray(` Sub-phases: ${orch.parallelBuilderStats.totalSubPhases}`));
465
- console.log(chalk2.gray(` Parallel builders: ${orch.parallelBuilderStats.totalParallelBuilders}`));
466
- console.log(chalk2.gray(` Files created: ${orch.parallelBuilderStats.filesCreated}`));
467
- console.log();
468
- }
469
- if (orch.artifacts.length > 0) {
470
- console.log(chalk2.cyan(" Artifacts:"));
471
- for (const artifact of orch.artifacts) {
472
- const icon = artifact.action === "created" ? chalk2.green("+") : artifact.action === "modified" ? chalk2.yellow("~") : chalk2.red("-");
473
- console.log(` ${icon} ${artifact.path}`);
474
- }
475
- console.log();
476
- }
477
- if (orch.result) {
478
- console.log(chalk2.cyan(" Result:"));
479
- console.log(chalk2.gray(` Agents spawned: ${orch.result.agentsSpawned}`));
480
- console.log(chalk2.gray(` Total tokens: ${orch.result.totalTokens.total}`));
481
- console.log(chalk2.gray(` Total cost: $${orch.result.totalCost.toFixed(4)}`));
482
- console.log(chalk2.gray(` Duration: ${(orch.result.duration_ms / 1e3).toFixed(1)}s`));
483
- console.log();
484
- }
485
- if (orch.error) {
486
- console.log(chalk2.red(` Error: ${orch.error}`));
487
- console.log();
488
- }
489
- console.log(chalk2.gray(` Output file: ${orch.outputFile}`));
490
- console.log();
491
- if (orch.status === "completed") {
492
- console.log(chalk2.cyan(" Actions:"));
493
- console.log(chalk2.gray(` paradigm team diff ${orch.id} # View changes`));
494
- console.log(chalk2.gray(` paradigm team accept ${orch.id} # Accept changes`));
495
- console.log(chalk2.gray(` paradigm team reject ${orch.id} # Reject changes`));
496
- console.log();
497
- }
498
- }
499
- async function teamHandoffCommand(targetPath, options) {
500
- const rootDir = targetPath ? path2.resolve(targetPath) : process.cwd();
501
- const manifest = loadAgentsManifest(rootDir);
502
- if (!manifest) {
503
- if (options.json) {
504
- console.log(JSON.stringify({ error: "Team not configured" }));
505
- } else {
506
- console.log(chalk2.yellow("\nTeam not configured. Run `paradigm team init` first.\n"));
507
- }
508
- return;
509
- }
510
- const state = loadTeamState(rootDir);
511
- if (!manifest.agents[options.to]) {
512
- if (options.json) {
513
- console.log(JSON.stringify({
514
- error: "Unknown agent",
515
- agent: options.to,
516
- available: Object.keys(manifest.agents)
517
- }));
518
- } else {
519
- console.log(chalk2.red(`
520
- Unknown agent: ${options.to}`));
521
- console.log(chalk2.gray(`Available agents: ${Object.keys(manifest.agents).join(", ")}
522
- `));
523
- }
524
- return;
525
- }
526
- const fromAgent = state.current?.agent || manifest.team.default_agent;
527
- const handoffId = `${Date.now()}-${fromAgent}-${options.to}`;
528
- const handoff = {
529
- id: handoffId,
530
- from: fromAgent,
531
- to: options.to,
532
- timestamp: (/* @__PURE__ */ new Date()).toISOString(),
533
- status: "pending",
534
- completed: {
535
- symbols: state.current?.symbols_touched || [],
536
- artifacts: []
537
- },
538
- context: {
539
- summary: options.summary || `Task handed off from ${fromAgent} to ${options.to}`,
540
- key_symbols: [],
541
- warnings: []
542
- }
543
- };
544
- saveHandoff(rootDir, handoff);
545
- addActivity(rootDir, {
546
- agent: fromAgent,
547
- task: state.current?.task || "Unknown task",
548
- result: "success",
549
- handed_to: options.to
550
- });
551
- clearCurrentAgent(rootDir);
552
- if (options.json) {
553
- console.log(JSON.stringify({
554
- success: true,
555
- handoff_id: handoffId,
556
- from: fromAgent,
557
- to: options.to
558
- }));
559
- return;
560
- }
561
- console.log(chalk2.blue("\n\u270B Handoff Created\n"));
562
- console.log(chalk2.gray("\u2500".repeat(50)));
563
- console.log(` From: ${chalk2.yellow(fromAgent)}`);
564
- console.log(` To: ${chalk2.green(options.to)}`);
565
- console.log(` ID: ${chalk2.gray(handoffId)}`);
566
- console.log(chalk2.gray("\u2500".repeat(50)));
567
- const targetAgent = manifest.agents[options.to];
568
- console.log(chalk2.cyan("\nTarget agent role:"));
569
- for (const line of targetAgent.role.split("\n")) {
570
- console.log(chalk2.gray(` ${line}`));
571
- }
572
- console.log(chalk2.cyan("\nNext steps:"));
573
- console.log(chalk2.gray(` 1. The ${options.to} agent will see this handoff`));
574
- console.log(chalk2.gray(` 2. Run \`paradigm team accept\` as ${options.to} to accept`));
575
- console.log();
576
- }
577
- async function teamAcceptCommand(handoffId, targetPath, options) {
578
- const rootDir = targetPath ? path2.resolve(targetPath) : process.cwd();
579
- const manifest = loadAgentsManifest(rootDir);
580
- if (!manifest) {
581
- if (options.json) {
582
- console.log(JSON.stringify({ error: "Team not configured" }));
583
- } else {
584
- console.log(chalk2.yellow("\nTeam not configured. Run `paradigm team init` first.\n"));
585
- }
586
- return;
587
- }
588
- const pending = getPendingHandoffs(rootDir);
589
- if (pending.length === 0) {
590
- if (options.json) {
591
- console.log(JSON.stringify({ error: "No pending handoffs" }));
592
- } else {
593
- console.log(chalk2.yellow("\nNo pending handoffs to accept.\n"));
594
- }
595
- return;
596
- }
597
- let handoff;
598
- if (handoffId) {
599
- handoff = pending.find((h) => h.id === handoffId);
600
- if (!handoff) {
601
- if (options.json) {
602
- console.log(JSON.stringify({ error: "Handoff not found", id: handoffId }));
603
- } else {
604
- console.log(chalk2.red(`
605
- Handoff not found: ${handoffId}
606
- `));
607
- }
608
- return;
609
- }
610
- } else {
611
- handoff = pending[0];
612
- }
613
- handoff.status = "accepted";
614
- handoff.accepted_at = (/* @__PURE__ */ new Date()).toISOString();
615
- handoff.acceptance_note = options.note;
616
- saveHandoff(rootDir, handoff);
617
- setCurrentAgent(rootDir, handoff.to, `Accepted from ${handoff.from}: ${handoff.context.summary}`);
618
- if (options.json) {
619
- console.log(JSON.stringify({
620
- success: true,
621
- handoff_id: handoff.id,
622
- agent: handoff.to,
623
- from: handoff.from,
624
- context: handoff.context
625
- }));
626
- return;
627
- }
628
- console.log(chalk2.blue("\n\u2713 Handoff Accepted\n"));
629
- console.log(chalk2.gray("\u2500".repeat(50)));
630
- console.log(` You are now: ${chalk2.green(handoff.to.toUpperCase())}`);
631
- console.log(` From: ${chalk2.yellow(handoff.from)}`);
632
- console.log(chalk2.gray("\u2500".repeat(50)));
633
- console.log(chalk2.cyan("\nContext from previous agent:"));
634
- console.log(chalk2.white(` ${handoff.context.summary}`));
635
- if (handoff.completed.symbols.length > 0) {
636
- console.log(chalk2.cyan("\nSymbols touched:"));
637
- for (const sym of handoff.completed.symbols) {
638
- console.log(chalk2.gray(` \u2022 ${sym}`));
639
- }
640
- }
641
- if (handoff.context.warnings.length > 0) {
642
- console.log(chalk2.yellow("\nWarnings:"));
643
- for (const warn of handoff.context.warnings) {
644
- console.log(chalk2.yellow(` \u26A0 ${warn}`));
645
- }
646
- }
647
- const agent = manifest.agents[handoff.to];
648
- console.log(chalk2.cyan("\nYour role:"));
649
- for (const line of agent.role.split("\n")) {
650
- console.log(chalk2.gray(` ${line}`));
651
- }
652
- console.log();
653
- }
654
- async function teamCheckCommand(targetPath, options) {
655
- const rootDir = targetPath ? path2.resolve(targetPath) : process.cwd();
656
- const manifest = loadAgentsManifest(rootDir);
657
- if (!manifest) {
658
- if (options.json) {
659
- console.log(JSON.stringify({ error: "Team not configured" }));
660
- } else {
661
- console.log(chalk2.yellow("\nTeam not configured. Run `paradigm team init` first.\n"));
662
- }
663
- return;
664
- }
665
- const state = loadTeamState(rootDir);
666
- const pending = getPendingHandoffs(rootDir);
667
- const issues = [];
668
- for (const h of pending) {
669
- const age = Date.now() - new Date(h.timestamp).getTime();
670
- const hours = Math.floor(age / 36e5);
671
- if (hours > 24) {
672
- issues.push({
673
- type: "stale_handoff",
674
- message: `Handoff from ${h.from} to ${h.to} pending for ${hours}h`,
675
- severity: "warning"
676
- });
677
- }
678
- }
679
- for (const b of state.blocked) {
680
- issues.push({
681
- type: "blocked_agent",
682
- message: `${b.agent} blocked: ${b.reason}`,
683
- severity: "error"
684
- });
685
- }
686
- if (state.current) {
687
- const elapsed = Date.now() - new Date(state.current.started).getTime();
688
- const hours = Math.floor(elapsed / 36e5);
689
- if (hours > 8) {
690
- issues.push({
691
- type: "long_task",
692
- message: `Current task running for ${hours}h - consider handing off`,
693
- severity: "warning"
694
- });
695
- }
696
- }
697
- for (const [name, agent] of Object.entries(manifest.agents)) {
698
- for (const target of agent.handoff_to) {
699
- if (!manifest.agents[target]) {
700
- issues.push({
701
- type: "invalid_handoff",
702
- message: `${name} can handoff to unknown agent: ${target}`,
703
- severity: "error"
704
- });
705
- }
706
- }
707
- }
708
- if (options.json) {
709
- console.log(JSON.stringify({
710
- issues,
711
- current: state.current,
712
- pending_count: pending.length
713
- }, null, 2));
714
- return;
715
- }
716
- console.log(chalk2.blue("\n\u{1F50D} Team Health Check\n"));
717
- console.log(chalk2.gray("\u2500".repeat(50)));
718
- if (issues.length === 0) {
719
- console.log(chalk2.green("\u2713 No issues found\n"));
720
- } else {
721
- console.log(chalk2.yellow(`Found ${issues.length} issue(s):
722
- `));
723
- for (const issue of issues) {
724
- const icon = issue.severity === "error" ? chalk2.red("\u2717") : chalk2.yellow("\u26A0");
725
- console.log(` ${icon} ${issue.message}`);
726
- }
727
- console.log();
728
- }
729
- console.log(chalk2.cyan("Status:"));
730
- console.log(` Current agent: ${state.current ? chalk2.green(state.current.agent) : chalk2.gray("none")}`);
731
- console.log(` Pending handoffs: ${pending.length}`);
732
- console.log(` Blocked agents: ${state.blocked.length}`);
733
- console.log();
734
- }
735
- async function teamHistoryCommand(targetPath, options) {
736
- const rootDir = targetPath ? path2.resolve(targetPath) : process.cwd();
737
- const manifest = loadAgentsManifest(rootDir);
738
- if (!manifest) {
739
- if (options.json) {
740
- console.log(JSON.stringify({ error: "Team not configured" }));
741
- } else {
742
- console.log(chalk2.yellow("\nTeam not configured. Run `paradigm team init` first.\n"));
743
- }
744
- return;
745
- }
746
- const state = loadTeamState(rootDir);
747
- const handoffs = listHandoffs(rootDir);
748
- const limit = options.limit || 50;
749
- const timeline = [];
750
- for (const activity of state.recent) {
751
- timeline.push({
752
- timestamp: activity.timestamp,
753
- type: "activity",
754
- agent: activity.agent,
755
- description: activity.task,
756
- details: {
757
- result: activity.result,
758
- handed_to: activity.handed_to,
759
- artifacts: activity.artifacts
760
- }
761
- });
762
- }
763
- for (const handoff of handoffs) {
764
- timeline.push({
765
- timestamp: handoff.timestamp,
766
- type: "handoff",
767
- agent: handoff.from,
768
- description: `Handoff to ${handoff.to}: ${handoff.context.summary}`,
769
- details: {
770
- to: handoff.to,
771
- status: handoff.status,
772
- symbols: handoff.completed.symbols
773
- }
774
- });
775
- }
776
- timeline.sort((a, b) => new Date(b.timestamp).getTime() - new Date(a.timestamp).getTime());
777
- const limited = timeline.slice(0, limit);
778
- if (options.json) {
779
- console.log(JSON.stringify({
780
- total: timeline.length,
781
- showing: limited.length,
782
- timeline: limited
783
- }, null, 2));
784
- return;
785
- }
786
- console.log(chalk2.blue("\n\u{1F4DC} Team History\n"));
787
- console.log(chalk2.gray("\u2500".repeat(60)));
788
- if (limited.length === 0) {
789
- console.log(chalk2.gray("No activity recorded yet.\n"));
790
- return;
791
- }
792
- for (const entry of limited) {
793
- const time = new Date(entry.timestamp).toLocaleString();
794
- const icon = entry.type === "handoff" ? "\u270B" : entry.details?.result === "success" ? "\u2713" : entry.details?.result === "failed" ? "\u2717" : "\u25CB";
795
- const color = entry.type === "handoff" ? chalk2.cyan : entry.details?.result === "success" ? chalk2.green : entry.details?.result === "failed" ? chalk2.red : chalk2.gray;
796
- console.log(`${color(icon)} ${chalk2.gray(time)}`);
797
- console.log(` ${chalk2.yellow(entry.agent)}: ${entry.description}`);
798
- if (entry.details?.handed_to) {
799
- console.log(chalk2.gray(` \u2192 handed to ${entry.details.handed_to}`));
800
- }
801
- if (entry.details?.symbols && entry.details.symbols.length > 0) {
802
- console.log(chalk2.gray(` symbols: ${entry.details.symbols.join(", ")}`));
803
- }
804
- console.log();
805
- }
806
- if (timeline.length > limit) {
807
- console.log(chalk2.gray(`Showing ${limit} of ${timeline.length} entries. Use --limit to see more.
808
- `));
809
- }
810
- }
811
- async function teamResetCommand(targetPath, options) {
812
- const rootDir = targetPath ? path2.resolve(targetPath) : process.cwd();
813
- const manifest = loadAgentsManifest(rootDir);
814
- if (!manifest) {
815
- if (options.json) {
816
- console.log(JSON.stringify({ error: "Team not configured" }));
817
- } else {
818
- console.log(chalk2.yellow("\nTeam not configured. Run `paradigm team init` first.\n"));
819
- }
820
- return;
821
- }
822
- const state = loadTeamState(rootDir);
823
- const pending = getPendingHandoffs(rootDir);
824
- if (!options.force && (state.current || pending.length > 0)) {
825
- if (options.json) {
826
- console.log(JSON.stringify({
827
- error: "Has pending work",
828
- current: state.current,
829
- pending_handoffs: pending.length
830
- }));
831
- } else {
832
- console.log(chalk2.yellow("\n\u26A0 Cannot reset - there is pending work:\n"));
833
- if (state.current) {
834
- console.log(` Current: ${state.current.agent} working on "${state.current.task}"`);
835
- }
836
- if (pending.length > 0) {
837
- console.log(` Pending handoffs: ${pending.length}`);
838
- }
839
- console.log(chalk2.gray("\nUse --force to reset anyway.\n"));
840
- }
841
- return;
842
- }
843
- const newState = {
844
- current: null,
845
- queue: [],
846
- recent: [],
847
- blocked: []
848
- };
849
- saveTeamState(rootDir, newState);
850
- const handoffsDir = path2.join(getParadigmDir(rootDir), "handoffs");
851
- if (options.force && fs.existsSync(handoffsDir)) {
852
- const files = fs.readdirSync(handoffsDir);
853
- for (const file of files) {
854
- fs.unlinkSync(path2.join(handoffsDir, file));
855
- }
856
- }
857
- if (options.json) {
858
- console.log(JSON.stringify({ success: true, cleared_handoffs: options.force }));
859
- return;
860
- }
861
- console.log(chalk2.green("\n\u2713 Team state reset\n"));
862
- console.log(chalk2.gray(" Current agent: cleared"));
863
- console.log(chalk2.gray(" Activity log: cleared"));
864
- console.log(chalk2.gray(" Queue: cleared"));
865
- if (options.force) {
866
- console.log(chalk2.gray(" Handoff files: deleted"));
867
- }
868
- console.log(chalk2.gray("\nReady for fresh start. Run `paradigm team status` to verify.\n"));
869
- }
870
-
871
- export {
872
- teamModelsCommand,
873
- teamInitCommand,
874
- teamStatusCommand,
875
- teamHandoffCommand,
876
- teamAcceptCommand,
877
- teamCheckCommand,
878
- teamHistoryCommand,
879
- teamResetCommand
880
- };