@a-company/paradigm 5.11.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 (408) 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 -20529
  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/plsat/.purpose +3 -2
  195. package/dist/university-ui/assets/{index-BjewBB6s.js → index-CGFJczb1.js} +2 -2
  196. package/dist/university-ui/assets/{index-BjewBB6s.js.map → index-CGFJczb1.js.map} +1 -1
  197. package/dist/university-ui/index.html +1 -1
  198. package/dist/upgrade-B4IOLZYK.js +53 -0
  199. package/dist/validate-C6SMKGYD.js +9 -0
  200. package/dist/validate-LSCDOLBO.js +13 -0
  201. package/dist/validate-VZXTJHGO.js +6 -0
  202. package/dist/watch-LRM5XD46.js +8 -0
  203. package/dist/watch-PZCCUP6K.js +9 -0
  204. package/dist/wisdom-XZ3QKPNP.js +7 -0
  205. package/dist/work-log-loader-DL5GZ2BQ.js +2 -0
  206. package/dist/workspace-2ODL5WLY.js +2 -0
  207. package/package.json +1 -1
  208. package/platform-ui/dist/assets/AmbientSection-DqQ2mfCO.js +1 -0
  209. package/platform-ui/dist/assets/{CanvasSection-DwPTRdIN.js → CanvasSection-DLW0s-Bu.js} +1 -1
  210. package/platform-ui/dist/assets/{DocsSection-BJc_ws4I.js → DocsSection-BQ9Hi51g.js} +1 -1
  211. package/platform-ui/dist/assets/{GitSection-DhqBo1xc.js → GitSection-QQeUX6o3.js} +1 -1
  212. package/platform-ui/dist/assets/{GraphSection-D9fhVnZ0.js → GraphSection-0c9C-w7K.js} +2 -2
  213. package/platform-ui/dist/assets/{GraphSection-BlgXTl53.css → GraphSection-Bbs2a8sC.css} +1 -1
  214. package/platform-ui/dist/assets/LoreSection--t56kCj2.js +1 -0
  215. package/platform-ui/dist/assets/LoreSection-qnmm3o4y.css +1 -0
  216. package/platform-ui/dist/assets/SentinelSection-C4OoME9U.js +1 -0
  217. package/platform-ui/dist/assets/{SymphonySection-BRoBaUSS.js → SymphonySection-B-rvsLxq.js} +1 -1
  218. package/platform-ui/dist/assets/TeamSection-CBFmNEEo.js +1 -0
  219. package/platform-ui/dist/assets/index-Bxp0TVaf.css +1 -0
  220. package/platform-ui/dist/assets/index-DPpOdAtC.js +57 -0
  221. package/platform-ui/dist/index.html +2 -2
  222. package/dist/accept-orchestration-UQLM7PTQ.js +0 -189
  223. package/dist/add-FZRKEGH4.js +0 -81
  224. package/dist/agent-WERIO2XV.js +0 -523
  225. package/dist/agent-loader-TFIANSF4.js +0 -44
  226. package/dist/agent-state-S5DAWPTF.js +0 -24
  227. package/dist/agents-suggest-DNSYJ6IA.js +0 -83
  228. package/dist/aggregate-H57K7PNV.js +0 -88
  229. package/dist/assess-4WVXZLZQ.js +0 -68
  230. package/dist/auto-QFS5NHQU.js +0 -504
  231. package/dist/beacon-KXZXYQHX.js +0 -251
  232. package/dist/calibration-V46G7JTY.js +0 -135
  233. package/dist/check-OWAIWV23.js +0 -175
  234. package/dist/chunk-2IO7JAG2.js +0 -148
  235. package/dist/chunk-2T6BTYBN.js +0 -712
  236. package/dist/chunk-36TKPM5Z.js +0 -400
  237. package/dist/chunk-45MUDW6E.js +0 -804
  238. package/dist/chunk-4BLYIB7J.js +0 -5701
  239. package/dist/chunk-4L3UTYQX.js +0 -677
  240. package/dist/chunk-4NCFWYGG.js +0 -110
  241. package/dist/chunk-54LTTQBH.js +0 -138
  242. package/dist/chunk-5EWAQHFY.js +0 -269
  243. package/dist/chunk-5JGJACDU.js +0 -37
  244. package/dist/chunk-5OUOLN6M.js +0 -659
  245. package/dist/chunk-5VKJBNJL.js +0 -444
  246. package/dist/chunk-6N3JTACN.js +0 -2260
  247. package/dist/chunk-6QC3YGB6.js +0 -114
  248. package/dist/chunk-7N7GSU6K.js +0 -34
  249. package/dist/chunk-ABVQGRF7.js +0 -268
  250. package/dist/chunk-CL7JSK52.js +0 -129
  251. package/dist/chunk-CSD7IHSN.js +0 -152
  252. package/dist/chunk-EDOAWN7J.js +0 -717
  253. package/dist/chunk-EKGMAM62.js +0 -525
  254. package/dist/chunk-EZ3GOCYC.js +0 -132
  255. package/dist/chunk-F3BCHPYT.js +0 -143
  256. package/dist/chunk-FKJUBQU3.js +0 -3081
  257. package/dist/chunk-GT5QGC2H.js +0 -253
  258. package/dist/chunk-GZDFVP2N.js +0 -540
  259. package/dist/chunk-IRKUEJVW.js +0 -405
  260. package/dist/chunk-J2JEQRT3.js +0 -164
  261. package/dist/chunk-JASGXLK3.js +0 -679
  262. package/dist/chunk-KVDYJLTC.js +0 -121
  263. package/dist/chunk-L27I3CPZ.js +0 -357
  264. package/dist/chunk-LHLIAYQ3.js +0 -185
  265. package/dist/chunk-MCMOGQMU.js +0 -145
  266. package/dist/chunk-NQKQG45G.js +0 -688
  267. package/dist/chunk-PBHIFAL4.js +0 -259
  268. package/dist/chunk-PDX44BCA.js +0 -11
  269. package/dist/chunk-PMXRGPRQ.js +0 -305
  270. package/dist/chunk-RAB5IKPR.js +0 -487
  271. package/dist/chunk-RJE5G7WO.js +0 -590
  272. package/dist/chunk-RTHA3XRE.js +0 -880
  273. package/dist/chunk-S2HO5MLR.js +0 -621
  274. package/dist/chunk-S3ORKP3V.js +0 -716
  275. package/dist/chunk-TAIJOFOE.js +0 -124
  276. package/dist/chunk-TXESEO7Y.js +0 -245
  277. package/dist/chunk-UPLDI7CN.js +0 -1334
  278. package/dist/chunk-VL67H5IC.js +0 -506
  279. package/dist/chunk-VPPK3SY4.js +0 -1136
  280. package/dist/chunk-YMDLDELF.js +0 -314
  281. package/dist/chunk-YO6DVTL7.js +0 -99
  282. package/dist/chunk-YRZ5RPEB.js +0 -1561
  283. package/dist/chunk-ZDHLG5VP.js +0 -5676
  284. package/dist/chunk-ZGUAAVMA.js +0 -756
  285. package/dist/chunk-ZSYVKSY6.js +0 -2602
  286. package/dist/claude-FRRWJSTJ.js +0 -362
  287. package/dist/claude-cli-XJLK2X4L.js +0 -276
  288. package/dist/claude-code-HTBA4XRB.js +0 -126
  289. package/dist/claude-code-teams-T4SP24MD.js +0 -199
  290. package/dist/commands-5N4ILTPH.js +0 -5859
  291. package/dist/conductor-CQVGTEQN.js +0 -161
  292. package/dist/config-schema-EA4XALGG.js +0 -154
  293. package/dist/constellation-A26CCGQS.js +0 -225
  294. package/dist/context-audit-RLO3ETRP.js +0 -682
  295. package/dist/cost-BGM32XJU.js +0 -93
  296. package/dist/cost-VI46A4XL.js +0 -174
  297. package/dist/cursor-cli-JVEZGHWQ.js +0 -269
  298. package/dist/cursorrules-HLIKJJZT.js +0 -84
  299. package/dist/decision-loader-WWCLIQPJ.js +0 -20
  300. package/dist/delete-KBRPQLPC.js +0 -56
  301. package/dist/diff-D4X53HAC.js +0 -126
  302. package/dist/discipline-FA4OZXIS.js +0 -24
  303. package/dist/dist-34NA5RS5.js +0 -74
  304. package/dist/dist-5QE2BB2B-5S3T6Y3T.js +0 -6919
  305. package/dist/dist-77JDTVAY.js +0 -62
  306. package/dist/dist-OGTSAZ55.js +0 -1358
  307. package/dist/dist-QK4SQAK7.js +0 -64
  308. package/dist/dist-TA6LSC2Q.js +0 -20
  309. package/dist/docs-PBZB7LYP.js +0 -89
  310. package/dist/docs-QIYKO3BR.js +0 -155
  311. package/dist/doctor-ULBOHEIC.js +0 -11
  312. package/dist/drift-R5NRKFHI.js +0 -251
  313. package/dist/echo-O2LY7CC2.js +0 -248
  314. package/dist/edit-R2HNLMOG.js +0 -63
  315. package/dist/event-25OJKDCE.js +0 -31
  316. package/dist/export-IWVL7XLF.js +0 -38
  317. package/dist/flow-CRRVV3O3.js +0 -185
  318. package/dist/global-3NG5JXUB.js +0 -136
  319. package/dist/graduate-USAWGBJM.js +0 -160
  320. package/dist/graph-VHUMAAS6.js +0 -12
  321. package/dist/graph-server-YL22VBBN.js +0 -116
  322. package/dist/habits-OL5NGPXO.js +0 -1405
  323. package/dist/history-WOWC573W.js +0 -277
  324. package/dist/hooks-HFWSCGPV.js +0 -12
  325. package/dist/integrity-IHO4FZTS.js +0 -194
  326. package/dist/integrity-checker-PSKJA5SB.js +0 -12
  327. package/dist/journal-loader-5EYSBFFY.js +0 -18
  328. package/dist/lint-K6CJGGPH.js +0 -456
  329. package/dist/list-4YK7QKFF.js +0 -57
  330. package/dist/list-ENR7Q4CR.js +0 -56
  331. package/dist/lore-loader-7NO6N6FT.js +0 -26
  332. package/dist/lore-server-UNJY5KC3.js +0 -118
  333. package/dist/manual-G6FISID5.js +0 -204
  334. package/dist/migrate-LS45DNEV.js +0 -889
  335. package/dist/migrate-assessments-RGH4O6IX.js +0 -97
  336. package/dist/model-discovery-D2H3VBGC.js +0 -8
  337. package/dist/nomination-engine-RV5CNO5B.js +0 -42
  338. package/dist/notebook-YWIYGEHV.js +0 -155
  339. package/dist/orchestrate-JLILBBJE.js +0 -324
  340. package/dist/peers-DEOUIZM6.js +0 -82
  341. package/dist/persona-UHAHIVST.js +0 -390
  342. package/dist/pipeline-L4HCSBGN.js +0 -263
  343. package/dist/platform-server-H5YO3DQD.js +0 -1475
  344. package/dist/plugin-update-checker-KRRSGXMV.js +0 -12
  345. package/dist/portal-check-NPYGII2D.js +0 -42
  346. package/dist/portal-compliance-J7DGAPFX.js +0 -18
  347. package/dist/probe-MHL5HQZ2.js +0 -167
  348. package/dist/promote-F6ZYZZAL.js +0 -182
  349. package/dist/providers-GK7PB2OL.js +0 -104
  350. package/dist/quiz-M66SC7F7.js +0 -99
  351. package/dist/record-RA4WR2BO.js +0 -49
  352. package/dist/reindex-5LTD53ZC.js +0 -16
  353. package/dist/remember-HBWJ655S.js +0 -77
  354. package/dist/retag-3OLCVDEQ.js +0 -62
  355. package/dist/review-27ATYTD2.js +0 -33
  356. package/dist/review-57QMURZV.js +0 -334
  357. package/dist/ripple-JPBXP5I3.js +0 -215
  358. package/dist/sentinel-4XIG4STA.js +0 -63
  359. package/dist/sentinel-bridge-MDUXTQRL.js +0 -109
  360. package/dist/serve-CAH3PHE7.js +0 -33
  361. package/dist/serve-INL7SNBK.js +0 -36
  362. package/dist/serve-KBSE36PL.js +0 -49
  363. package/dist/server-54SKYFFY.js +0 -1647
  364. package/dist/server-XUOIO7E6.js +0 -338
  365. package/dist/session-tracker-C4BMD5WG.js +0 -13
  366. package/dist/session-work-log-MZ47OAPB.js +0 -20
  367. package/dist/setup-EDS27WUR.js +0 -25
  368. package/dist/setup-KO5AFC4K.js +0 -296
  369. package/dist/shift-D2JOHHBF.js +0 -668
  370. package/dist/show-5PV5KFJE.js +0 -176
  371. package/dist/show-NQKYX6WQ.js +0 -82
  372. package/dist/snapshot-BK4RBPCG.js +0 -62
  373. package/dist/spawn-RCHNXDHE.js +0 -196
  374. package/dist/status-WGIAQODY.js +0 -71
  375. package/dist/summary-NIRABMF5.js +0 -140
  376. package/dist/sweep-QMHNSIY5.js +0 -934
  377. package/dist/switch-6EJPZDIA.js +0 -232
  378. package/dist/symphony-4OCY36AI.js +0 -791
  379. package/dist/symphony-B75X2MME.js +0 -326
  380. package/dist/symphony-loader-UZGON56V.js +0 -90
  381. package/dist/symphony-peers-2ZQYLRNI.js +0 -34
  382. package/dist/symphony-peers-OL7F6M5S.js +0 -121
  383. package/dist/symphony-relay-UJYUXN65.js +0 -710
  384. package/dist/sync-VEHUH4OA.js +0 -11
  385. package/dist/sync-llms-YHCFIE6X.js +0 -166
  386. package/dist/task-loader-LDYWQSLM.js +0 -20
  387. package/dist/team-O5MIIFMA.js +0 -34
  388. package/dist/test-566CP5KC.js +0 -1017
  389. package/dist/thread-N754I4D5.js +0 -274
  390. package/dist/timeline-M3CICQFE.js +0 -112
  391. package/dist/triage-HHYGT3HY.js +0 -671
  392. package/dist/tutorial-KD22SUNO.js +0 -666
  393. package/dist/upgrade-H5PF32BW.js +0 -551
  394. package/dist/validate-CNKEKO6A.js +0 -134
  395. package/dist/validate-MB5ULIHS.js +0 -39
  396. package/dist/validate-QH3LADM6.js +0 -64
  397. package/dist/watch-2TKP5PVL.js +0 -199
  398. package/dist/watch-ZF4ML6CD.js +0 -111
  399. package/dist/wisdom-AATMGNFA.js +0 -319
  400. package/dist/work-log-loader-5L45XNYZ.js +0 -14
  401. package/dist/workspace-6E6OSRNU.js +0 -21
  402. package/platform-ui/dist/assets/AmbientSection-WtHfNedO.js +0 -1
  403. package/platform-ui/dist/assets/LoreSection-C3EixkjW.css +0 -1
  404. package/platform-ui/dist/assets/LoreSection-CwDDHrz9.js +0 -1
  405. package/platform-ui/dist/assets/SentinelSection-Cl7e5oZ6.js +0 -1
  406. package/platform-ui/dist/assets/TeamSection-CqSIMrKz.js +0 -1
  407. package/platform-ui/dist/assets/index-CfpZFjea.css +0 -1
  408. package/platform-ui/dist/assets/index-F0KL9xrN.js +0 -57
@@ -1,551 +0,0 @@
1
- #!/usr/bin/env node
2
- import {
3
- detectIDE,
4
- loadParadigmFiles,
5
- syncToIDE
6
- } from "./chunk-6N3JTACN.js";
7
- import {
8
- parseParadigmConfig,
9
- serializeParadigmConfig
10
- } from "./chunk-YO6DVTL7.js";
11
- import "./chunk-PDX44BCA.js";
12
-
13
- // src/commands/upgrade.ts
14
- import * as fs from "fs";
15
- import * as path from "path";
16
- import { fileURLToPath } from "url";
17
- import chalk from "chalk";
18
- import ora from "ora";
19
- var AVAILABLE_FEATURES = ["scan", "logger", "migrate"];
20
- function getTemplatesDir() {
21
- const __filename = fileURLToPath(import.meta.url);
22
- const __dirname = path.dirname(__filename);
23
- const possiblePaths = [
24
- path.join(__dirname, "..", "..", "templates", "paradigm"),
25
- path.join(__dirname, "..", "templates", "paradigm")
26
- ];
27
- for (const p of possiblePaths) {
28
- if (fs.existsSync(p)) {
29
- return p;
30
- }
31
- }
32
- return path.join(__dirname, "..", "templates", "paradigm");
33
- }
34
- async function upgradeCommand(targetPath, options) {
35
- const rootDir = targetPath ? path.resolve(targetPath) : process.cwd();
36
- const projectName = path.basename(rootDir);
37
- const spinner = ora();
38
- console.log(chalk.yellow("\n `paradigm upgrade` is deprecated. Use `paradigm migrate` instead.\n"));
39
- console.log(chalk.blue("\n\u{1F504} Paradigm Upgrade\n"));
40
- if (options.fromHorizon) {
41
- const result = await migrateFromHorizon(rootDir, projectName, options, spinner);
42
- console.log(chalk.blue("\n\u{1F4CB} Migration Summary\n"));
43
- const icon = result.status === "added" || result.status === "updated" ? chalk.green("\u2713") : result.status === "skipped" ? chalk.yellow("\u25CB") : chalk.red("\u2717");
44
- console.log(` ${icon} ${chalk.bold(result.feature)}: ${result.message}`);
45
- console.log();
46
- if (result.status === "updated" || result.status === "added") {
47
- console.log(chalk.blue("Next steps:\n"));
48
- console.log(chalk.gray(" \u2022 Verify the migration:"));
49
- console.log(chalk.cyan(" paradigm doctor\n"));
50
- console.log(chalk.gray(" \u2022 Regenerate IDE files:"));
51
- console.log(chalk.cyan(" paradigm sync\n"));
52
- }
53
- return;
54
- }
55
- let features = [];
56
- if (options.all) {
57
- features = ["migrate", "scan", "logger"];
58
- } else if (options.features && options.features.length > 0) {
59
- features = options.features.filter(
60
- (f) => AVAILABLE_FEATURES.includes(f)
61
- );
62
- } else {
63
- console.log(chalk.yellow("No features specified. Available upgrades:\n"));
64
- console.log(chalk.cyan(" migrate") + chalk.gray(" - Migrate from .paradigm file to .paradigm/ directory"));
65
- console.log(chalk.cyan(" scan") + chalk.gray(" - Add visual discovery (paradigm probe) support"));
66
- console.log(chalk.cyan(" logger") + chalk.gray(" - Add Paradigm logger specification"));
67
- console.log(chalk.cyan(" all") + chalk.gray(" - Apply all available upgrades"));
68
- console.log(chalk.cyan(" --from-horizon") + chalk.gray(" - Migrate from Horizon to Paradigm"));
69
- console.log();
70
- console.log(chalk.gray("Usage:"));
71
- console.log(chalk.gray(" paradigm upgrade --features scan"));
72
- console.log(chalk.gray(" paradigm upgrade --features logger"));
73
- console.log(chalk.gray(" paradigm upgrade --all"));
74
- console.log(chalk.gray(" paradigm upgrade --from-horizon"));
75
- console.log();
76
- return;
77
- }
78
- const results = [];
79
- const paradigmPath = path.join(rootDir, ".paradigm");
80
- const exists = fs.existsSync(paradigmPath);
81
- const isLegacyFile = exists && fs.statSync(paradigmPath).isFile();
82
- const isDirectory = exists && fs.statSync(paradigmPath).isDirectory();
83
- if (features.includes("migrate") || isLegacyFile && options.all) {
84
- if (isLegacyFile) {
85
- results.push(await migrateLegacy(rootDir, projectName, options, spinner));
86
- } else if (isDirectory) {
87
- results.push({
88
- feature: "migrate",
89
- status: "skipped",
90
- message: "Already using .paradigm/ directory format"
91
- });
92
- } else {
93
- results.push({
94
- feature: "migrate",
95
- status: "error",
96
- message: "No .paradigm found to migrate"
97
- });
98
- }
99
- }
100
- const paradigmDir = path.join(rootDir, ".paradigm");
101
- const hasParadigmDir = fs.existsSync(paradigmDir) && fs.statSync(paradigmDir).isDirectory();
102
- if (!hasParadigmDir && !options.dryRun) {
103
- if (!isLegacyFile) {
104
- console.log(chalk.yellow("\u26A0\uFE0F No .paradigm/ directory found."));
105
- console.log(chalk.gray(" Run `paradigm init` first to initialize Paradigm.\n"));
106
- return;
107
- }
108
- }
109
- for (const feature of features) {
110
- if (feature === "migrate") continue;
111
- switch (feature) {
112
- case "scan":
113
- results.push(await upgradeScan(rootDir, projectName, options, spinner));
114
- break;
115
- case "logger":
116
- results.push(await upgradeLogger(rootDir, options, spinner));
117
- break;
118
- }
119
- }
120
- if (!options.dryRun && results.some((r) => r.status === "added" || r.status === "updated")) {
121
- spinner.start("Re-syncing IDE files...");
122
- const files = loadParadigmFiles(rootDir);
123
- if (files) {
124
- const detection = detectIDE(rootDir);
125
- if (detection.detected) {
126
- const result = syncToIDE(rootDir, detection.detected, files, true);
127
- if (result.success) {
128
- spinner.succeed(`IDE files synced (${detection.detected})`);
129
- } else {
130
- spinner.warn("Could not sync IDE files");
131
- }
132
- } else {
133
- spinner.info("No IDE detected, run `paradigm sync` to generate IDE files");
134
- }
135
- }
136
- }
137
- console.log(chalk.blue("\n\u{1F4CB} Upgrade Summary\n"));
138
- for (const result of results) {
139
- const icon = result.status === "added" || result.status === "updated" ? chalk.green("\u2713") : result.status === "skipped" ? chalk.yellow("\u25CB") : chalk.red("\u2717");
140
- console.log(` ${icon} ${chalk.bold(result.feature)}: ${result.message}`);
141
- }
142
- console.log();
143
- const addedFeatures = results.filter((r) => r.status === "added" || r.status === "updated");
144
- if (addedFeatures.length > 0) {
145
- console.log(chalk.blue("Next steps:\n"));
146
- if (addedFeatures.some((f) => f.feature === "scan")) {
147
- console.log(chalk.gray(" \u2022 Generate the scan index:"));
148
- console.log(chalk.cyan(" paradigm index\n"));
149
- }
150
- if (addedFeatures.some((f) => f.feature === "logger")) {
151
- console.log(chalk.gray(" \u2022 Review the logger spec:"));
152
- console.log(chalk.cyan(" .paradigm/specs/logger.md\n"));
153
- }
154
- console.log(chalk.gray(" \u2022 Verify setup:"));
155
- console.log(chalk.cyan(" paradigm doctor\n"));
156
- }
157
- }
158
- async function migrateLegacy(rootDir, projectName, options, spinner) {
159
- const paradigmFile = path.join(rootDir, ".paradigm");
160
- const paradigmDir = path.join(rootDir, ".paradigm");
161
- const templatesDir = getTemplatesDir();
162
- if (options.dryRun) {
163
- return {
164
- feature: "migrate",
165
- status: "updated",
166
- message: "Would migrate .paradigm file to .paradigm/ directory"
167
- };
168
- }
169
- spinner.start("Migrating .paradigm file to directory...");
170
- try {
171
- const existingContent = fs.readFileSync(paradigmFile, "utf8");
172
- let existingConfig = null;
173
- try {
174
- existingConfig = parseParadigmConfig(existingContent);
175
- } catch {
176
- }
177
- const backupPath = path.join(rootDir, ".paradigm.backup");
178
- fs.copyFileSync(paradigmFile, backupPath);
179
- fs.unlinkSync(paradigmFile);
180
- fs.mkdirSync(paradigmDir, { recursive: true });
181
- fs.mkdirSync(path.join(paradigmDir, "specs"), { recursive: true });
182
- fs.mkdirSync(path.join(paradigmDir, "docs"), { recursive: true });
183
- fs.mkdirSync(path.join(paradigmDir, "prompts"), { recursive: true });
184
- if (fs.existsSync(templatesDir)) {
185
- copyTemplates(templatesDir, paradigmDir, projectName);
186
- } else {
187
- const config = existingConfig || parseParadigmConfig(`
188
- version: "1.0"
189
- project: "${projectName}"
190
- agent-guidelines:
191
- overview: |
192
- This project uses Paradigm for structured AI-assisted development.
193
- symbol-system:
194
- "@": { name: Feature, description: User-facing capabilities, owner: purpose, examples: ["@login"] }
195
- logging:
196
- enforce: true
197
- scan:
198
- enabled: true
199
- conventions: []
200
- `);
201
- fs.writeFileSync(
202
- path.join(paradigmDir, "config.yaml"),
203
- serializeParadigmConfig(config),
204
- "utf8"
205
- );
206
- }
207
- const oldScanIndex = path.join(rootDir, ".paradigm-scan-index.json");
208
- const newScanIndex = path.join(paradigmDir, "scan-index.json");
209
- if (fs.existsSync(oldScanIndex)) {
210
- fs.renameSync(oldScanIndex, newScanIndex);
211
- }
212
- spinner.succeed(chalk.green("Migrated to .paradigm/ directory"));
213
- return {
214
- feature: "migrate",
215
- status: "updated",
216
- message: "Converted to directory format (backup at .paradigm.backup)"
217
- };
218
- } catch (err) {
219
- spinner.fail(chalk.red("Migration failed"));
220
- return {
221
- feature: "migrate",
222
- status: "error",
223
- message: err.message
224
- };
225
- }
226
- }
227
- async function upgradeScan(rootDir, projectName, options, spinner) {
228
- const paradigmDir = path.join(rootDir, ".paradigm");
229
- const scanIndexPath = path.join(paradigmDir, "scan-index.json");
230
- const scanSpecPath = path.join(paradigmDir, "specs", "scan.md");
231
- const templatesDir = getTemplatesDir();
232
- if (fs.existsSync(scanIndexPath) && fs.existsSync(scanSpecPath) && !options.force) {
233
- return {
234
- feature: "scan",
235
- status: "skipped",
236
- message: "Already configured (use --force to reconfigure)"
237
- };
238
- }
239
- if (options.dryRun) {
240
- return {
241
- feature: "scan",
242
- status: "added",
243
- message: "Would add scan spec and index placeholder"
244
- };
245
- }
246
- spinner.start("Setting up paradigm scan...");
247
- try {
248
- fs.mkdirSync(path.join(paradigmDir, "specs"), { recursive: true });
249
- const templateScanSpec = path.join(templatesDir, "specs", "scan.md");
250
- if (fs.existsSync(templateScanSpec)) {
251
- fs.copyFileSync(templateScanSpec, scanSpecPath);
252
- }
253
- if (!fs.existsSync(scanIndexPath)) {
254
- const placeholderIndex = {
255
- $meta: {
256
- version: "1.0.0",
257
- project: projectName,
258
- generatedAt: (/* @__PURE__ */ new Date()).toISOString(),
259
- paradigmVersion: "0.2.0",
260
- sources: { purposeFiles: 0, portalFiles: 0, premiseFiles: 0 }
261
- },
262
- components: {},
263
- features: {},
264
- flows: {},
265
- state: {},
266
- gates: {},
267
- signals: {},
268
- screens: {},
269
- symbolMap: {},
270
- _placeholder: true,
271
- _message: "Run `paradigm index` to populate this index"
272
- };
273
- fs.writeFileSync(scanIndexPath, JSON.stringify(placeholderIndex, null, 2), "utf8");
274
- }
275
- spinner.succeed(chalk.green("Scan feature configured"));
276
- return {
277
- feature: "scan",
278
- status: "added",
279
- message: "Added scan spec and index placeholder"
280
- };
281
- } catch (err) {
282
- spinner.fail(chalk.red("Failed to configure scan"));
283
- return {
284
- feature: "scan",
285
- status: "error",
286
- message: err.message
287
- };
288
- }
289
- }
290
- async function upgradeLogger(rootDir, options, spinner) {
291
- const paradigmDir = path.join(rootDir, ".paradigm");
292
- const loggerSpecPath = path.join(paradigmDir, "specs", "logger.md");
293
- const templatesDir = getTemplatesDir();
294
- if (fs.existsSync(loggerSpecPath) && !options.force) {
295
- return {
296
- feature: "logger",
297
- status: "skipped",
298
- message: "Already configured (use --force to reconfigure)"
299
- };
300
- }
301
- if (options.dryRun) {
302
- return {
303
- feature: "logger",
304
- status: "added",
305
- message: "Would add logger specification"
306
- };
307
- }
308
- spinner.start("Setting up logger spec...");
309
- try {
310
- fs.mkdirSync(path.join(paradigmDir, "specs"), { recursive: true });
311
- const templateLoggerSpec = path.join(templatesDir, "specs", "logger.md");
312
- if (fs.existsSync(templateLoggerSpec)) {
313
- fs.copyFileSync(templateLoggerSpec, loggerSpecPath);
314
- } else {
315
- const minimalSpec = `# Paradigm Logger Specification
316
-
317
- Use the Paradigm logger instead of raw console.log/print statements.
318
-
319
- ## API
320
-
321
- \`\`\`
322
- log.component('#login-handler').info('Starting login', { email })
323
- log.component('#database').debug('Query executed', { duration })
324
- log.gate('^authenticated').warn('Access denied', { userId })
325
- log.signal('!login-success').info('User authenticated')
326
- \`\`\`
327
-
328
- ## Log Levels
329
-
330
- - \`debug\` - Verbose debugging info
331
- - \`info\` - General information
332
- - \`warn\` - Warning conditions
333
- - \`error\` - Error conditions
334
-
335
- See full specification for implementation details.
336
- `;
337
- fs.writeFileSync(loggerSpecPath, minimalSpec, "utf8");
338
- }
339
- spinner.succeed(chalk.green("Logger spec configured"));
340
- return {
341
- feature: "logger",
342
- status: "added",
343
- message: "Added logger specification"
344
- };
345
- } catch (err) {
346
- spinner.fail(chalk.red("Failed to configure logger"));
347
- return {
348
- feature: "logger",
349
- status: "error",
350
- message: err.message
351
- };
352
- }
353
- }
354
- function copyTemplates(src, dest, projectName) {
355
- const entries = fs.readdirSync(src, { withFileTypes: true });
356
- for (const entry of entries) {
357
- const srcPath = path.join(src, entry.name);
358
- const destPath = path.join(dest, entry.name);
359
- if (entry.isDirectory()) {
360
- if (!fs.existsSync(destPath)) {
361
- fs.mkdirSync(destPath, { recursive: true });
362
- }
363
- copyTemplates(srcPath, destPath, projectName);
364
- } else {
365
- if (!fs.existsSync(destPath)) {
366
- let content = fs.readFileSync(srcPath, "utf8");
367
- content = content.replace(/\{\{PROJECT_NAME\}\}/g, projectName);
368
- fs.writeFileSync(destPath, content, "utf8");
369
- }
370
- }
371
- }
372
- }
373
- async function migrateFromHorizon(rootDir, _projectName, options, spinner) {
374
- const horizonDir = path.join(rootDir, ".horizon");
375
- const paradigmDir = path.join(rootDir, ".paradigm");
376
- if (!fs.existsSync(horizonDir)) {
377
- return {
378
- feature: "from-horizon",
379
- status: "skipped",
380
- message: "No .horizon directory found to migrate"
381
- };
382
- }
383
- if (fs.existsSync(paradigmDir) && !options.force) {
384
- return {
385
- feature: "from-horizon",
386
- status: "skipped",
387
- message: ".paradigm already exists (use --force to overwrite)"
388
- };
389
- }
390
- if (options.dryRun) {
391
- console.log(chalk.cyan("\nDry run - would perform the following:\n"));
392
- console.log(chalk.gray(" \u2022 Rename .horizon/ \u2192 .paradigm/"));
393
- const gateFiles = findFiles(rootDir, "gate.yaml");
394
- if (gateFiles.length > 0) {
395
- console.log(chalk.gray(` \u2022 Rename ${gateFiles.length} gate.yaml \u2192 portal.yaml`));
396
- }
397
- const dreamFiles = findFiles(rootDir, ".dream");
398
- if (dreamFiles.length > 0) {
399
- console.log(chalk.gray(` \u2022 Rename ${dreamFiles.length} .dream \u2192 .premise`));
400
- }
401
- console.log(chalk.gray(" \u2022 Update content references (horizon\u2192paradigm, gate\u2192portal, dream\u2192premise)"));
402
- console.log();
403
- return {
404
- feature: "from-horizon",
405
- status: "updated",
406
- message: "Would migrate Horizon to Paradigm (dry run)"
407
- };
408
- }
409
- spinner.start("Migrating from Horizon to Paradigm...");
410
- try {
411
- if (fs.existsSync(horizonDir)) {
412
- if (fs.existsSync(paradigmDir)) {
413
- const backupDir = path.join(rootDir, ".paradigm.backup-" + Date.now());
414
- fs.renameSync(paradigmDir, backupDir);
415
- spinner.text = "Backed up existing .paradigm...";
416
- }
417
- fs.renameSync(horizonDir, paradigmDir);
418
- spinner.text = "Renamed .horizon to .paradigm...";
419
- }
420
- spinner.text = "Renaming gate.yaml files...";
421
- const gateFiles = findFiles(rootDir, "gate.yaml");
422
- for (const gateFile of gateFiles) {
423
- const dir = path.dirname(gateFile);
424
- const newPath = path.join(dir, "portal.yaml");
425
- fs.renameSync(gateFile, newPath);
426
- let content = fs.readFileSync(newPath, "utf8");
427
- content = updateContent(content);
428
- fs.writeFileSync(newPath, content, "utf8");
429
- }
430
- spinner.text = "Renaming .dream files...";
431
- const dreamFiles = findFiles(rootDir, ".dream");
432
- for (const dreamFile of dreamFiles) {
433
- const dir = path.dirname(dreamFile);
434
- const newPath = path.join(dir, ".premise");
435
- fs.renameSync(dreamFile, newPath);
436
- let content = fs.readFileSync(newPath, "utf8");
437
- content = updateContent(content);
438
- fs.writeFileSync(newPath, content, "utf8");
439
- }
440
- spinner.text = "Updating file contents...";
441
- if (fs.existsSync(paradigmDir)) {
442
- updateDirectoryContents(paradigmDir);
443
- }
444
- const scanIndex = path.join(paradigmDir, "scan-index.json");
445
- const probeIndex = path.join(paradigmDir, "probe-index.json");
446
- if (fs.existsSync(scanIndex)) {
447
- let content = fs.readFileSync(scanIndex, "utf8");
448
- content = updateContent(content);
449
- fs.writeFileSync(probeIndex, content, "utf8");
450
- fs.unlinkSync(scanIndex);
451
- }
452
- spinner.text = "Updating .purpose file contents...";
453
- const purposeFiles = findFiles(rootDir, ".purpose");
454
- for (const purposeFile of purposeFiles) {
455
- let content = fs.readFileSync(purposeFile, "utf8");
456
- const updated = updateContent(content);
457
- if (updated !== content) {
458
- fs.writeFileSync(purposeFile, updated, "utf8");
459
- }
460
- }
461
- spinner.text = "Updating IDE instruction files...";
462
- const ideFiles = [".cursorrules", ".windsurfrules", ".github/copilot-instructions.md"];
463
- for (const ideFile of ideFiles) {
464
- const fullPath = path.join(rootDir, ideFile);
465
- if (fs.existsSync(fullPath)) {
466
- let content = fs.readFileSync(fullPath, "utf8");
467
- content = updateContent(content);
468
- fs.writeFileSync(fullPath, content, "utf8");
469
- }
470
- }
471
- spinner.succeed(chalk.green("Migration complete!"));
472
- return {
473
- feature: "from-horizon",
474
- status: "updated",
475
- message: `Migrated: ${gateFiles.length} portal files, ${dreamFiles.length} premise files`
476
- };
477
- } catch (err) {
478
- spinner.fail(chalk.red("Migration failed"));
479
- return {
480
- feature: "from-horizon",
481
- status: "error",
482
- message: err.message
483
- };
484
- }
485
- }
486
- function findFiles(dir, filename) {
487
- const results = [];
488
- const skipDirs = ["node_modules", ".git", "dist", "build", ".paradigm"];
489
- function walk(currentDir) {
490
- try {
491
- const entries = fs.readdirSync(currentDir, { withFileTypes: true });
492
- for (const entry of entries) {
493
- const fullPath = path.join(currentDir, entry.name);
494
- if (entry.isDirectory()) {
495
- if (!skipDirs.includes(entry.name) && !entry.name.startsWith(".")) {
496
- walk(fullPath);
497
- }
498
- } else if (entry.name === filename) {
499
- results.push(fullPath);
500
- }
501
- }
502
- } catch {
503
- }
504
- }
505
- walk(dir);
506
- return results;
507
- }
508
- function updateContent(content) {
509
- return content.replace(/Horizon/g, "Paradigm").replace(/horizon/g, "paradigm").replace(/Dreamscape/g, "Prism").replace(/dreamscape/g, "prism").replace(/Dream\b/g, "Premise").replace(/dream\b/g, "premise").replace(/\bGate\b/g, "Portal").replace(/\bgate\b/g, "portal").replace(/\bScan\b/g, "Probe").replace(/\bscan\b/g, "probe").replace(/gate\.yaml/g, "portal.yaml").replace(/\.dream\b/g, ".premise").replace(/scan-index\.json/g, "probe-index.json").replace(/\.horizon\//g, ".paradigm/").replace(/\.horizon$/g, ".paradigm").replace(/HORIZON_SYMBOLS/g, "PARADIGM_SYMBOLS");
510
- }
511
- function updateDirectoryContents(dir) {
512
- const entries = fs.readdirSync(dir, { withFileTypes: true });
513
- for (const entry of entries) {
514
- const fullPath = path.join(dir, entry.name);
515
- if (entry.isDirectory()) {
516
- updateDirectoryContents(fullPath);
517
- } else if (entry.name.endsWith(".yaml") || entry.name.endsWith(".md") || entry.name.endsWith(".json")) {
518
- let content = fs.readFileSync(fullPath, "utf8");
519
- const updated = updateContent(content);
520
- if (updated !== content) {
521
- fs.writeFileSync(fullPath, updated, "utf8");
522
- }
523
- }
524
- }
525
- }
526
- function getAvailableUpgrades(rootDir) {
527
- const available = [];
528
- const paradigmPath = path.join(rootDir, ".paradigm");
529
- if (!fs.existsSync(paradigmPath)) {
530
- return available;
531
- }
532
- const isLegacyFile = fs.statSync(paradigmPath).isFile();
533
- if (isLegacyFile) {
534
- available.push("migrate");
535
- return available;
536
- }
537
- const paradigmDir = paradigmPath;
538
- const scanIndexPath = path.join(paradigmDir, "scan-index.json");
539
- if (!fs.existsSync(scanIndexPath)) {
540
- available.push("scan");
541
- }
542
- const loggerSpecPath = path.join(paradigmDir, "specs", "logger.md");
543
- if (!fs.existsSync(loggerSpecPath)) {
544
- available.push("logger");
545
- }
546
- return available;
547
- }
548
- export {
549
- getAvailableUpgrades,
550
- upgradeCommand
551
- };
@@ -1,134 +0,0 @@
1
- #!/usr/bin/env node
2
- import {
3
- loadPath,
4
- loadQuiz,
5
- loadUniversityIndex
6
- } from "./chunk-GT5QGC2H.js";
7
- import "./chunk-PDX44BCA.js";
8
-
9
- // src/commands/university/validate.ts
10
- import chalk from "chalk";
11
- import * as fs from "fs";
12
- import * as path from "path";
13
- async function universityValidateCommand(options) {
14
- const rootDir = process.cwd();
15
- const index = loadUniversityIndex(rootDir);
16
- if (!index || index.totalContent === 0) {
17
- console.log(chalk.yellow("\n No university content to validate.\n"));
18
- return;
19
- }
20
- const issues = [];
21
- let entriesToCheck = index.entries;
22
- if (options.id) {
23
- entriesToCheck = entriesToCheck.filter((e) => e.id === options.id);
24
- if (entriesToCheck.length === 0) {
25
- console.error(chalk.red(`
26
- Content "${options.id}" not found
27
- `));
28
- process.exit(1);
29
- }
30
- }
31
- let knownSymbols = null;
32
- if (options.deep) {
33
- knownSymbols = /* @__PURE__ */ new Set();
34
- const scanIndexPath = path.join(rootDir, ".paradigm", "scan-index.json");
35
- if (fs.existsSync(scanIndexPath)) {
36
- try {
37
- const raw = JSON.parse(fs.readFileSync(scanIndexPath, "utf8"));
38
- if (raw.symbols && Array.isArray(raw.symbols)) {
39
- for (const sym of raw.symbols) {
40
- if (sym.symbol) knownSymbols.add(sym.symbol);
41
- }
42
- }
43
- } catch {
44
- }
45
- }
46
- }
47
- const allContentIds = new Set(index.entries.map((e) => e.id));
48
- for (const entry of entriesToCheck) {
49
- if (!entry.title) {
50
- issues.push({ contentId: entry.id, severity: "error", check: "missing-title", message: "Content is missing a title" });
51
- }
52
- if (entry.type === "quiz") {
53
- const quiz = loadQuiz(rootDir, entry.id);
54
- if (!quiz) {
55
- issues.push({ contentId: entry.id, severity: "error", check: "unreadable-quiz", message: "Quiz file could not be parsed" });
56
- } else {
57
- for (const q of quiz.questions) {
58
- if (!q.choices || !(q.correct in q.choices)) {
59
- issues.push({
60
- contentId: entry.id,
61
- severity: "error",
62
- check: "invalid-quiz-answer",
63
- message: `Question ${q.id}: correct "${q.correct}" not in choices [${Object.keys(q.choices || {}).join(", ")}]`,
64
- fix: `Set correct to one of: ${Object.keys(q.choices || {}).join(", ")}`
65
- });
66
- }
67
- }
68
- }
69
- }
70
- if (entry.type === "path") {
71
- const lp = loadPath(rootDir, entry.id);
72
- if (!lp) {
73
- issues.push({ contentId: entry.id, severity: "error", check: "unreadable-path", message: "Learning path file could not be parsed" });
74
- } else {
75
- for (const step of lp.steps) {
76
- if (!step.content.startsWith("plsat:") && !allContentIds.has(step.content)) {
77
- issues.push({
78
- contentId: entry.id,
79
- severity: "error",
80
- check: "broken-path-step",
81
- message: `Step references "${step.content}" which doesn't exist`,
82
- fix: `Create content with id "${step.content}"`
83
- });
84
- }
85
- }
86
- }
87
- }
88
- if (knownSymbols && entry.symbols.length > 0) {
89
- for (const sym of entry.symbols) {
90
- if (!knownSymbols.has(sym)) {
91
- issues.push({
92
- contentId: entry.id,
93
- severity: "warning",
94
- check: "broken-symbol-ref",
95
- message: `Symbol "${sym}" not found in scan-index`
96
- });
97
- }
98
- }
99
- }
100
- }
101
- if (options.json) {
102
- console.log(JSON.stringify({
103
- status: issues.some((i) => i.severity === "error") ? "errors" : issues.length > 0 ? "warnings" : "healthy",
104
- totalContent: index.totalContent,
105
- checked: entriesToCheck.length,
106
- issues
107
- }, null, 2));
108
- return;
109
- }
110
- console.log(chalk.blue(`
111
- University Validation (${entriesToCheck.length} items${options.deep ? ", deep mode" : ""})
112
- `));
113
- if (issues.length === 0) {
114
- console.log(chalk.green(" All checks passed.\n"));
115
- return;
116
- }
117
- const errors = issues.filter((i) => i.severity === "error");
118
- const warnings = issues.filter((i) => i.severity === "warning");
119
- for (const issue of errors) {
120
- console.log(chalk.red(` x ${issue.contentId}: ${issue.message}`));
121
- if (issue.fix) console.log(chalk.gray(` Fix: ${issue.fix}`));
122
- }
123
- for (const issue of warnings) {
124
- console.log(chalk.yellow(` ! ${issue.contentId}: ${issue.message}`));
125
- if (issue.fix) console.log(chalk.gray(` Fix: ${issue.fix}`));
126
- }
127
- console.log();
128
- if (errors.length > 0) console.log(chalk.red(` ${errors.length} error${errors.length > 1 ? "s" : ""}`));
129
- if (warnings.length > 0) console.log(chalk.yellow(` ${warnings.length} warning${warnings.length > 1 ? "s" : ""}`));
130
- console.log();
131
- }
132
- export {
133
- universityValidateCommand
134
- };