@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,248 +0,0 @@
1
- #!/usr/bin/env node
2
- import {
3
- log
4
- } from "./chunk-4NCFWYGG.js";
5
- import "./chunk-PDX44BCA.js";
6
-
7
- // src/commands/echo.ts
8
- import * as fs from "fs";
9
- import * as path from "path";
10
- import chalk from "chalk";
11
- var ECHOES_TEMPLATE = `# Echoes - Error to Symbol Mapping
12
- # When errors occur, they echo back to their source symbol.
13
- # Run \`paradigm echo ERROR_CODE\` to look up context.
14
-
15
- version: "1.0"
16
-
17
- errors:
18
- # Example error mapping
19
- AUTH_REQUIRED:
20
- symbol: "^authenticated"
21
- location: "src/middleware/auth.ts"
22
- ripple:
23
- - "@checkout"
24
- - "@profile"
25
- - "@settings"
26
- resolution: "Ensure user token is passed in request headers"
27
-
28
- # Add your error mappings below
29
- # ERROR_CODE:
30
- # symbol: "^portal-name" # or signal: "!signal-name"
31
- # location: "path/to/file.ts"
32
- # ripple:
33
- # - "@feature1"
34
- # - "@feature2"
35
- # resolution: "How to fix this error"
36
- `;
37
- function parseEchoes(content) {
38
- const data = {
39
- version: "1.0",
40
- errors: {}
41
- };
42
- const lines = content.split("\n");
43
- let currentError = null;
44
- let currentEntry = {};
45
- let inRipple = false;
46
- for (const line of lines) {
47
- if (line.trim().startsWith("#") || line.trim() === "") continue;
48
- const versionMatch = line.match(/^version:\s*"?([^"]+)"?/);
49
- if (versionMatch) {
50
- data.version = versionMatch[1];
51
- continue;
52
- }
53
- if (line.match(/^errors:\s*$/)) continue;
54
- const errorKeyMatch = line.match(/^ ([A-Z_][A-Z0-9_]*):\s*$/);
55
- if (errorKeyMatch) {
56
- if (currentError && Object.keys(currentEntry).length > 0) {
57
- data.errors[currentError] = currentEntry;
58
- }
59
- currentError = errorKeyMatch[1];
60
- currentEntry = {};
61
- inRipple = false;
62
- continue;
63
- }
64
- if (currentError) {
65
- const symbolMatch = line.match(/^\s{4}symbol:\s*"?([^"]+)"?/);
66
- if (symbolMatch) {
67
- currentEntry.symbol = symbolMatch[1];
68
- inRipple = false;
69
- continue;
70
- }
71
- const signalMatch = line.match(/^\s{4}signal:\s*"?([^"]+)"?/);
72
- if (signalMatch) {
73
- currentEntry.signal = signalMatch[1];
74
- inRipple = false;
75
- continue;
76
- }
77
- const locationMatch = line.match(/^\s{4}location:\s*"?([^"]+)"?/);
78
- if (locationMatch) {
79
- currentEntry.location = locationMatch[1];
80
- inRipple = false;
81
- continue;
82
- }
83
- const resolutionMatch = line.match(/^\s{4}resolution:\s*"?([^"]+)"?/);
84
- if (resolutionMatch) {
85
- currentEntry.resolution = resolutionMatch[1];
86
- inRipple = false;
87
- continue;
88
- }
89
- if (line.match(/^\s{4}ripple:\s*$/)) {
90
- currentEntry.ripple = [];
91
- inRipple = true;
92
- continue;
93
- }
94
- if (inRipple) {
95
- const rippleMatch = line.match(/^\s{6}-\s*"?([^"]+)"?/);
96
- if (rippleMatch) {
97
- if (!currentEntry.ripple) currentEntry.ripple = [];
98
- currentEntry.ripple.push(rippleMatch[1]);
99
- continue;
100
- }
101
- }
102
- }
103
- }
104
- if (currentError && Object.keys(currentEntry).length > 0) {
105
- data.errors[currentError] = currentEntry;
106
- }
107
- return data;
108
- }
109
- async function echoCommand(errorCode, targetPath, options = {}) {
110
- const cwd = process.cwd();
111
- const absolutePath = targetPath ? path.resolve(cwd, targetPath) : cwd;
112
- const echoesPath = path.join(absolutePath, ".paradigm", "echoes.yaml");
113
- log.command("echo").debug("Looking up error code", { errorCode });
114
- if (!fs.existsSync(echoesPath)) {
115
- if (options.json) {
116
- console.log(JSON.stringify({ found: false, error: "No echoes.yaml found" }, null, 2));
117
- return;
118
- }
119
- log.command("echo").warn("No echoes.yaml found");
120
- console.log(chalk.yellow("\n\u{1F4E2} No echoes.yaml found.\n"));
121
- console.log(chalk.gray(" Run `paradigm echo --init` to create one.\n"));
122
- return;
123
- }
124
- const content = fs.readFileSync(echoesPath, "utf8");
125
- const data = parseEchoes(content);
126
- log.component("echoes-parser").debug("Echoes file parsed", { count: Object.keys(data.errors).length });
127
- const entry = data.errors[errorCode.toUpperCase()];
128
- if (!entry) {
129
- log.command("echo").warn("Error code not found", { errorCode });
130
- if (options.json) {
131
- console.log(JSON.stringify({
132
- found: false,
133
- errorCode: errorCode.toUpperCase(),
134
- available: Object.keys(data.errors)
135
- }, null, 2));
136
- return;
137
- }
138
- console.log(chalk.yellow(`
139
- \u{1F4E2} No echo found for: ${errorCode}
140
- `));
141
- const available = Object.keys(data.errors);
142
- if (available.length > 0) {
143
- console.log(chalk.gray(" Available error codes:"));
144
- for (const code of available.slice(0, 10)) {
145
- const e = data.errors[code];
146
- const symbolInfo = e.symbol || e.signal || "";
147
- console.log(chalk.gray(` ${code} \u2192 ${symbolInfo}`));
148
- }
149
- if (available.length > 10) {
150
- console.log(chalk.gray(` ... and ${available.length - 10} more`));
151
- }
152
- }
153
- console.log("");
154
- return;
155
- }
156
- log.command("echo").success("Error code found", { errorCode, hasSymbol: !!entry.symbol, hasResolution: !!entry.resolution });
157
- if (options.json) {
158
- console.log(JSON.stringify({
159
- found: true,
160
- errorCode: errorCode.toUpperCase(),
161
- ...entry
162
- }, null, 2));
163
- return;
164
- }
165
- console.log(chalk.blue(`
166
- \u{1F4E2} Echo: ${chalk.cyan(errorCode)}
167
- `));
168
- console.log(chalk.gray("\u2500".repeat(50)));
169
- if (entry.symbol) {
170
- console.log(` Symbol: ${chalk.red(entry.symbol)}`);
171
- }
172
- if (entry.signal) {
173
- console.log(` Signal: ${chalk.yellow(entry.signal)}`);
174
- }
175
- if (entry.location) {
176
- console.log(` Location: ${chalk.gray(entry.location)}`);
177
- }
178
- if (entry.ripple && entry.ripple.length > 0) {
179
- console.log(` Ripple: ${entry.ripple.map((r) => {
180
- if (r.startsWith("@")) return chalk.blue(r);
181
- if (r.startsWith("#")) return chalk.green(r);
182
- if (r.startsWith("^")) return chalk.red(r);
183
- return chalk.gray(r);
184
- }).join(", ")}`);
185
- }
186
- console.log("");
187
- if (entry.resolution) {
188
- console.log(chalk.white("Resolution:"));
189
- console.log(chalk.gray("\u2500".repeat(50)));
190
- console.log(chalk.green(` ${entry.resolution}`));
191
- console.log("");
192
- }
193
- console.log(chalk.gray("Tip: Run `paradigm ripple " + (entry.symbol || entry.signal || "") + "` for full impact analysis.\n"));
194
- }
195
- async function echoInitCommand(targetPath, options = {}) {
196
- const cwd = process.cwd();
197
- const absolutePath = targetPath ? path.resolve(cwd, targetPath) : cwd;
198
- const paradigmDir = path.join(absolutePath, ".paradigm");
199
- const echoesPath = path.join(paradigmDir, "echoes.yaml");
200
- if (!fs.existsSync(paradigmDir)) {
201
- fs.mkdirSync(paradigmDir, { recursive: true });
202
- }
203
- if (fs.existsSync(echoesPath) && !options.quiet) {
204
- console.log(chalk.yellow("\n\u26A0\uFE0F echoes.yaml already exists.\n"));
205
- console.log(chalk.gray(` Path: ${echoesPath}
206
- `));
207
- return;
208
- }
209
- fs.writeFileSync(echoesPath, ECHOES_TEMPLATE, "utf8");
210
- if (!options.quiet) {
211
- console.log(chalk.green("\n\u2713 Created .paradigm/echoes.yaml\n"));
212
- console.log(chalk.gray(" Edit this file to add error-to-symbol mappings."));
213
- console.log(chalk.gray(" Then use `paradigm echo ERROR_CODE` to look them up.\n"));
214
- }
215
- }
216
- async function echoListCommand(targetPath, _options = {}) {
217
- const cwd = process.cwd();
218
- const absolutePath = targetPath ? path.resolve(cwd, targetPath) : cwd;
219
- const echoesPath = path.join(absolutePath, ".paradigm", "echoes.yaml");
220
- if (!fs.existsSync(echoesPath)) {
221
- console.log(chalk.yellow("\n\u{1F4E2} No echoes.yaml found.\n"));
222
- console.log(chalk.gray(" Run `paradigm echo --init` to create one.\n"));
223
- return;
224
- }
225
- const content = fs.readFileSync(echoesPath, "utf8");
226
- const data = parseEchoes(content);
227
- console.log(chalk.blue("\n\u{1F4E2} All Echoes\n"));
228
- console.log(chalk.gray("\u2500".repeat(50)));
229
- const codes = Object.keys(data.errors);
230
- if (codes.length === 0) {
231
- console.log(chalk.gray(" No error mappings defined yet.\n"));
232
- return;
233
- }
234
- for (const code of codes) {
235
- const entry = data.errors[code];
236
- const symbol = entry.symbol || entry.signal || "";
237
- const location = entry.location ? chalk.gray(` @ ${entry.location}`) : "";
238
- console.log(` ${chalk.cyan(code.padEnd(20))} \u2192 ${symbol}${location}`);
239
- }
240
- console.log(chalk.gray(`
241
- Total: ${codes.length} error mappings
242
- `));
243
- }
244
- export {
245
- echoCommand,
246
- echoInitCommand,
247
- echoListCommand
248
- };
@@ -1,63 +0,0 @@
1
- #!/usr/bin/env node
2
- import {
3
- loadLoreEntry,
4
- updateLoreEntry
5
- } from "./chunk-EKGMAM62.js";
6
- import "./chunk-PDX44BCA.js";
7
-
8
- // src/commands/lore/edit.ts
9
- import chalk from "chalk";
10
- async function loreEditCommand(id, options) {
11
- const rootDir = process.cwd();
12
- const entry = await loadLoreEntry(rootDir, id);
13
- if (!entry) {
14
- console.error(chalk.red(`
15
- Entry not found: ${id}
16
- `));
17
- process.exitCode = 1;
18
- return;
19
- }
20
- const partial = {};
21
- if (options.title) partial.title = options.title;
22
- if (options.summary) partial.summary = options.summary;
23
- if (options.type) {
24
- const validTypes = ["agent-session", "human-note", "decision", "review", "incident", "milestone"];
25
- if (!validTypes.includes(options.type)) {
26
- console.error(chalk.red(`Invalid type: ${options.type}. Valid: ${validTypes.join(", ")}`));
27
- process.exitCode = 1;
28
- return;
29
- }
30
- partial.type = options.type;
31
- }
32
- if (options.symbols) {
33
- partial.symbols_touched = options.symbols.split(",").map((s) => s.trim());
34
- }
35
- if (options.tags) {
36
- partial.tags = options.tags.split(",").map((t) => t.trim());
37
- }
38
- if (options.learnings) {
39
- partial.learnings = options.learnings.split(",").map((l) => l.trim());
40
- }
41
- if (Object.keys(partial).length === 0) {
42
- console.log(chalk.yellow("\n No changes specified. Use --title, --summary, --type, --symbols, --tags, or --learnings.\n"));
43
- return;
44
- }
45
- const success = await updateLoreEntry(rootDir, id, partial);
46
- if (success) {
47
- console.log(chalk.green(`
48
- Updated lore entry: ${id}`));
49
- for (const [key, value] of Object.entries(partial)) {
50
- const display = Array.isArray(value) ? value.join(", ") : String(value);
51
- console.log(chalk.gray(` ${key}: ${display}`));
52
- }
53
- console.log();
54
- } else {
55
- console.error(chalk.red(`
56
- Failed to update: ${id}
57
- `));
58
- process.exitCode = 1;
59
- }
60
- }
61
- export {
62
- loreEditCommand
63
- };
@@ -1,31 +0,0 @@
1
- #!/usr/bin/env node
2
- import "./chunk-PDX44BCA.js";
3
-
4
- // src/commands/event.ts
5
- import * as fs from "fs";
6
- import * as path from "path";
7
- async function eventEmitCommand(options) {
8
- const cwd = process.cwd();
9
- const eventsDir = path.join(cwd, ".paradigm", "events");
10
- const streamFile = path.join(eventsDir, "stream.jsonl");
11
- const now = Date.now();
12
- const rand = Math.floor(Math.random() * 9999).toString().padStart(4, "0");
13
- const event = {
14
- id: `ev-${now}-${rand}`,
15
- type: options.type,
16
- source: options.source,
17
- timestamp: (/* @__PURE__ */ new Date()).toISOString(),
18
- ...options.path ? { path: options.path } : {},
19
- ...options.symbols?.length ? { symbols: options.symbols } : {},
20
- ...options.context ? { context: options.context } : {},
21
- ...options.severity ? { severity: options.severity } : {}
22
- };
23
- try {
24
- fs.mkdirSync(eventsDir, { recursive: true });
25
- fs.appendFileSync(streamFile, JSON.stringify(event) + "\n", "utf8");
26
- } catch {
27
- }
28
- }
29
- export {
30
- eventEmitCommand
31
- };
@@ -1,38 +0,0 @@
1
- #!/usr/bin/env node
2
- import {
3
- AuditLogger
4
- } from "./chunk-PBHIFAL4.js";
5
- import "./chunk-PDX44BCA.js";
6
-
7
- // src/commands/team/export.ts
8
- import * as path from "path";
9
- import chalk from "chalk";
10
- async function teamExportCommand(targetPath, options) {
11
- const rootDir = targetPath ? path.resolve(targetPath) : process.cwd();
12
- let from;
13
- let to;
14
- if (options.from) {
15
- from = new Date(options.from);
16
- }
17
- if (options.to) {
18
- to = new Date(options.to);
19
- }
20
- const auditLogger = new AuditLogger(rootDir);
21
- const format = options.format || "json";
22
- let output;
23
- if (format === "csv") {
24
- output = auditLogger.exportToCsv({ from, to });
25
- } else {
26
- output = auditLogger.exportToJson({ from, to });
27
- }
28
- if (options.output) {
29
- const fs = await import("fs");
30
- fs.writeFileSync(options.output, output);
31
- console.log(chalk.green(`\u2713 Exported to ${options.output}`));
32
- } else {
33
- console.log(output);
34
- }
35
- }
36
- export {
37
- teamExportCommand
38
- };
@@ -1,185 +0,0 @@
1
- #!/usr/bin/env node
2
- import {
3
- log
4
- } from "./chunk-4NCFWYGG.js";
5
- import "./chunk-YMDLDELF.js";
6
- import "./chunk-PDX44BCA.js";
7
-
8
- // src/commands/flow.ts
9
- import * as fs2 from "fs";
10
- import * as path2 from "path";
11
- import chalk from "chalk";
12
-
13
- // src/core/flow-validator.ts
14
- import * as fs from "fs";
15
- import * as path from "path";
16
- import * as yaml from "js-yaml";
17
- import { execSync } from "child_process";
18
-
19
- // src/core/flow-schema.ts
20
- function configToFlowDefinitions(config) {
21
- return Object.entries(config.flows).map(([id, flow]) => ({
22
- id,
23
- ...flow
24
- }));
25
- }
26
-
27
- // src/core/flow-validator.ts
28
- function loadFlowsConfig(rootDir) {
29
- const flowsPath = path.join(rootDir, ".paradigm", "flows.yaml");
30
- if (!fs.existsSync(flowsPath)) {
31
- return null;
32
- }
33
- try {
34
- const content = fs.readFileSync(flowsPath, "utf-8");
35
- return yaml.load(content);
36
- } catch {
37
- return null;
38
- }
39
- }
40
- function loadFlowsFromPurpose(rootDir) {
41
- const flows = [];
42
- try {
43
- const result = execSync(
44
- `find "${rootDir}" -name ".purpose" -not -path "*/node_modules/*" -not -path "*/.git/*" 2>/dev/null || true`,
45
- { encoding: "utf-8" }
46
- );
47
- for (const purposePath of result.split("\n").filter(Boolean)) {
48
- try {
49
- const content = fs.readFileSync(purposePath, "utf-8");
50
- const flowsMatch = content.match(/flows:\s*\n([\s\S]*?)(?=\n[a-z_]+:|$)/);
51
- if (flowsMatch) {
52
- const flowsYaml = yaml.load(`flows:
53
- ${flowsMatch[1]}`);
54
- if (flowsYaml && typeof flowsYaml === "object" && "flows" in flowsYaml) {
55
- const flowsData = flowsYaml.flows;
56
- for (const [id, flow] of Object.entries(flowsData)) {
57
- flows.push({
58
- id,
59
- ...flow,
60
- definedIn: path.relative(rootDir, purposePath)
61
- });
62
- }
63
- }
64
- }
65
- } catch {
66
- }
67
- }
68
- } catch {
69
- }
70
- return flows;
71
- }
72
- function getAllFlows(rootDir) {
73
- const flows = [];
74
- const config = loadFlowsConfig(rootDir);
75
- if (config) {
76
- const configFlows = configToFlowDefinitions(config);
77
- for (const flow of configFlows) {
78
- flow.definedIn = ".paradigm/flows.yaml";
79
- flows.push(flow);
80
- }
81
- }
82
- const purposeFlows = loadFlowsFromPurpose(rootDir);
83
- for (const flow of purposeFlows) {
84
- if (!flows.some((f) => f.id === flow.id)) {
85
- flows.push(flow);
86
- }
87
- }
88
- return flows;
89
- }
90
- function generateMermaidDiagram(flow) {
91
- const lines = [];
92
- lines.push("```mermaid");
93
- lines.push("flowchart TD");
94
- lines.push(` START([${escapeLabel(flow.trigger)}])`);
95
- let prevId = "START";
96
- for (let i = 0; i < flow.steps.length; i++) {
97
- const step = flow.steps[i];
98
- const nodeId = `S${i}`;
99
- const label = escapeLabel(step.symbol);
100
- switch (step.type) {
101
- case "gate": {
102
- const gateStep = step;
103
- lines.push(` ${nodeId}{${label}}`);
104
- lines.push(` ${prevId} --> ${nodeId}`);
105
- if (gateStep.failResponse || step.errorSignal) {
106
- const denyId = `DENY${i}`;
107
- const denyLabel = gateStep.failResponse || step.errorSignal || "Denied";
108
- lines.push(` ${denyId}[/${escapeLabel(denyLabel)}/]`);
109
- lines.push(` ${nodeId} -->|deny| ${denyId}`);
110
- }
111
- break;
112
- }
113
- case "action":
114
- lines.push(` ${nodeId}[${label}]`);
115
- lines.push(` ${prevId} -->|${step.optional ? "optional" : "allow"}| ${nodeId}`);
116
- break;
117
- case "signal":
118
- lines.push(` ${nodeId}([${label}])`);
119
- lines.push(` ${prevId} --> ${nodeId}`);
120
- break;
121
- }
122
- prevId = nodeId;
123
- }
124
- if (flow.successSignal) {
125
- lines.push(` SUCCESS([${escapeLabel(flow.successSignal)}])`);
126
- lines.push(` ${prevId} --> SUCCESS`);
127
- }
128
- lines.push("");
129
- lines.push(" classDef gate fill:#f9d71c,stroke:#333,color:#000");
130
- lines.push(" classDef action fill:#4a90d9,stroke:#333,color:#fff");
131
- lines.push(" classDef signal fill:#50c878,stroke:#333,color:#fff");
132
- for (let i = 0; i < flow.steps.length; i++) {
133
- const step = flow.steps[i];
134
- lines.push(` class S${i} ${step.type}`);
135
- }
136
- lines.push("```");
137
- return lines.join("\n");
138
- }
139
- function escapeLabel(text) {
140
- return text.replace(/"/g, '\\"').replace(/[[\]{}()]/g, "");
141
- }
142
-
143
- // src/commands/flow.ts
144
- async function flowDiagramCommand(flowId, options) {
145
- const rootDir = process.cwd();
146
- const config = loadFlowsConfig(rootDir);
147
- if (!config) {
148
- console.log(chalk.red("\n\u274C No flows.yaml found"));
149
- console.log(chalk.gray("Create .paradigm/flows.yaml to define flows.\n"));
150
- process.exit(1);
151
- }
152
- const flows = getAllFlows(rootDir);
153
- const normalizedId = flowId.startsWith("$") ? flowId : `$${flowId}`;
154
- const flow = flows.find((f) => f.id === normalizedId || f.id === flowId);
155
- if (!flow) {
156
- console.log(chalk.red(`
157
- \u274C Flow not found: ${flowId}`));
158
- console.log(chalk.gray(`
159
- Available flows:`));
160
- for (const f of flows) {
161
- console.log(chalk.gray(` ${f.id} \u2014 ${f.name}`));
162
- }
163
- console.log("");
164
- process.exit(1);
165
- }
166
- log.command("flow-diagram").info("Generating Mermaid diagram", { flowId: flow.id });
167
- const diagram = generateMermaidDiagram(flow);
168
- if (options.output) {
169
- const outputPath = path2.resolve(rootDir, options.output);
170
- fs2.writeFileSync(outputPath, diagram, "utf-8");
171
- console.log(chalk.green(`
172
- \u2713 Diagram written to ${path2.relative(rootDir, outputPath)}
173
- `));
174
- } else {
175
- console.log("");
176
- console.log(chalk.blue(`Flow: ${flow.name} (${flow.id})`));
177
- console.log(chalk.gray(`Trigger: ${flow.trigger}`));
178
- console.log("");
179
- console.log(diagram);
180
- console.log("");
181
- }
182
- }
183
- export {
184
- flowDiagramCommand
185
- };
@@ -1,136 +0,0 @@
1
- #!/usr/bin/env node
2
- import {
3
- log
4
- } from "./chunk-4NCFWYGG.js";
5
- import "./chunk-PDX44BCA.js";
6
-
7
- // src/commands/global.ts
8
- import * as fs from "fs";
9
- import * as path from "path";
10
- import chalk from "chalk";
11
- import ora from "ora";
12
- function parseDuration(duration) {
13
- const match = duration.match(/^(\d+)(d|h|m)$/);
14
- if (!match) return null;
15
- const [, num, unit] = match;
16
- const value = parseInt(num, 10);
17
- switch (unit) {
18
- case "d":
19
- return value * 24 * 60 * 60 * 1e3;
20
- case "h":
21
- return value * 60 * 60 * 1e3;
22
- case "m":
23
- return value * 60 * 1e3;
24
- default:
25
- return null;
26
- }
27
- }
28
- function findOldFiles(dir, cutoffMs) {
29
- const results = [];
30
- if (!fs.existsSync(dir)) return results;
31
- const entries = fs.readdirSync(dir, { withFileTypes: true });
32
- for (const entry of entries) {
33
- const fullPath = path.join(dir, entry.name);
34
- if (entry.isDirectory()) {
35
- results.push(...findOldFiles(fullPath, cutoffMs));
36
- } else if (entry.isFile()) {
37
- try {
38
- const stat = fs.statSync(fullPath);
39
- const age = Date.now() - stat.mtimeMs;
40
- if (age > cutoffMs) {
41
- const days = Math.floor(age / (24 * 60 * 60 * 1e3));
42
- results.push({ path: fullPath, age: `${days}d` });
43
- }
44
- } catch {
45
- }
46
- }
47
- }
48
- return results;
49
- }
50
- async function globalCleanCommand(options) {
51
- const homeDir = process.env.HOME || process.env.USERPROFILE || "~";
52
- const globalDir = path.join(homeDir, ".paradigm");
53
- const spinner = ora();
54
- if (!fs.existsSync(globalDir)) {
55
- console.log(chalk.yellow("\nNo ~/.paradigm/ directory found.\n"));
56
- return;
57
- }
58
- const durationStr = options.olderThan || "90d";
59
- const durationMs = parseDuration(durationStr);
60
- if (!durationMs) {
61
- console.log(chalk.red(`
62
- Invalid duration: ${durationStr}`));
63
- console.log(chalk.gray("Use format: 90d, 30d, 7d, 24h, etc.\n"));
64
- process.exit(1);
65
- }
66
- console.log(chalk.blue(`
67
- Global Brain Rotation
68
- `));
69
- console.log(chalk.gray(` Scanning ~/.paradigm/ for files older than ${durationStr}...
70
- `));
71
- spinner.start("Scanning...");
72
- const cleanableDirs = ["wisdom", "lore", "history", "cache"];
73
- const allOldFiles = [];
74
- for (const sub of cleanableDirs) {
75
- const subDir = path.join(globalDir, sub);
76
- const oldFiles = findOldFiles(subDir, durationMs);
77
- allOldFiles.push(...oldFiles);
78
- }
79
- spinner.stop();
80
- if (allOldFiles.length === 0) {
81
- console.log(chalk.green(` No files older than ${durationStr} found.
82
- `));
83
- return;
84
- }
85
- console.log(chalk.gray(` Found ${allOldFiles.length} files older than ${durationStr}:
86
- `));
87
- for (const file of allOldFiles.slice(0, 20)) {
88
- const relPath = path.relative(globalDir, file.path);
89
- console.log(chalk.gray(` ${file.age} old - ${relPath}`));
90
- }
91
- if (allOldFiles.length > 20) {
92
- console.log(chalk.gray(` ... and ${allOldFiles.length - 20} more`));
93
- }
94
- if (options.dryRun) {
95
- console.log(chalk.yellow(`
96
- Dry run - no files deleted.
97
- `));
98
- log.command("global-clean").info("Dry run completed", { count: allOldFiles.length, olderThan: durationStr });
99
- return;
100
- }
101
- spinner.start(`Deleting ${allOldFiles.length} files...`);
102
- let deleted = 0;
103
- for (const file of allOldFiles) {
104
- try {
105
- fs.unlinkSync(file.path);
106
- deleted++;
107
- } catch {
108
- }
109
- }
110
- spinner.succeed(`Deleted ${deleted} files older than ${durationStr}`);
111
- for (const sub of cleanableDirs) {
112
- const subDir = path.join(globalDir, sub);
113
- cleanEmptyDirs(subDir);
114
- }
115
- console.log("");
116
- log.command("global-clean").success("Global brain rotation completed", { deleted, olderThan: durationStr });
117
- }
118
- function cleanEmptyDirs(dir) {
119
- if (!fs.existsSync(dir)) return;
120
- const entries = fs.readdirSync(dir);
121
- for (const entry of entries) {
122
- const fullPath = path.join(dir, entry);
123
- if (fs.statSync(fullPath).isDirectory()) {
124
- cleanEmptyDirs(fullPath);
125
- }
126
- }
127
- if (fs.readdirSync(dir).length === 0) {
128
- try {
129
- fs.rmdirSync(dir);
130
- } catch {
131
- }
132
- }
133
- }
134
- export {
135
- globalCleanCommand
136
- };