@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,64 +0,0 @@
1
- #!/usr/bin/env node
2
- import {
3
- ContextEnricher,
4
- FlowTracker,
5
- IncidentGrouper,
6
- PatternImporter,
7
- PatternMatcher,
8
- PatternSuggester,
9
- Sentinel,
10
- SentinelClient,
11
- SentinelTransport,
12
- StatsCalculator,
13
- TimelineBuilder,
14
- createSentinelClient,
15
- createSentinelTransport,
16
- detectSymbols,
17
- enableSentinel,
18
- generateConfig,
19
- loadAllSeedPatterns,
20
- loadParadigmPatterns,
21
- loadUniversalPatterns
22
- } from "./chunk-ZSYVKSY6.js";
23
- import {
24
- DEFAULT_AUTH_CONFIG,
25
- DEFAULT_RATE_LIMIT_CONFIG,
26
- DEFAULT_SERVER_CONFIG,
27
- PARADIGM_SCHEMA,
28
- SYMPHONY_SCHEMA,
29
- SentinelStorage,
30
- loadConfig,
31
- loadServerConfig,
32
- writeConfig
33
- } from "./chunk-FKJUBQU3.js";
34
- import "./chunk-PDX44BCA.js";
35
- export {
36
- ContextEnricher,
37
- DEFAULT_AUTH_CONFIG,
38
- DEFAULT_RATE_LIMIT_CONFIG,
39
- DEFAULT_SERVER_CONFIG,
40
- FlowTracker,
41
- IncidentGrouper,
42
- PARADIGM_SCHEMA,
43
- PatternImporter,
44
- PatternMatcher,
45
- PatternSuggester,
46
- SYMPHONY_SCHEMA,
47
- Sentinel,
48
- SentinelClient,
49
- SentinelStorage,
50
- SentinelTransport,
51
- StatsCalculator,
52
- TimelineBuilder,
53
- createSentinelClient,
54
- createSentinelTransport,
55
- detectSymbols,
56
- enableSentinel,
57
- generateConfig,
58
- loadAllSeedPatterns,
59
- loadConfig,
60
- loadParadigmPatterns,
61
- loadServerConfig,
62
- loadUniversalPatterns,
63
- writeConfig
64
- };
@@ -1,20 +0,0 @@
1
- #!/usr/bin/env node
2
- import {
3
- findGateFiles,
4
- formatValidationResult,
5
- getDefaultGateConfig,
6
- parseGateConfig,
7
- parseGateFile,
8
- serializeGateConfig,
9
- validateGateConfig
10
- } from "./chunk-IRKUEJVW.js";
11
- import "./chunk-PDX44BCA.js";
12
- export {
13
- findGateFiles,
14
- formatValidationResult,
15
- getDefaultGateConfig,
16
- parseGateConfig,
17
- parseGateFile,
18
- serializeGateConfig,
19
- validateGateConfig
20
- };
@@ -1,89 +0,0 @@
1
- #!/usr/bin/env node
2
- import {
3
- buildDocsManifest,
4
- buildFlowPage,
5
- buildPortalPage,
6
- buildSymbolPage,
7
- loadCustomPage,
8
- loadDocsConfig,
9
- searchDocs
10
- } from "./chunk-2T6BTYBN.js";
11
- import "./chunk-PDX44BCA.js";
12
-
13
- // src/platform-server/routes/docs.ts
14
- import { Router } from "express";
15
- function createDocsRouter(projectDir) {
16
- const router = Router();
17
- router.get("/manifest", (_req, res) => {
18
- try {
19
- const config = loadDocsConfig(projectDir);
20
- const manifest = buildDocsManifest(projectDir, config);
21
- res.json(manifest);
22
- } catch (err) {
23
- res.status(500).json({ error: "Failed to build docs manifest", detail: String(err) });
24
- }
25
- });
26
- router.get("/symbol/:id", (req, res) => {
27
- try {
28
- const page = buildSymbolPage(projectDir, req.params.id);
29
- if (!page) {
30
- res.status(404).json({ error: `Symbol "${req.params.id}" not found` });
31
- return;
32
- }
33
- res.json(page);
34
- } catch (err) {
35
- res.status(500).json({ error: "Failed to build symbol page", detail: String(err) });
36
- }
37
- });
38
- router.get("/flow/:id", (req, res) => {
39
- try {
40
- const page = buildFlowPage(projectDir, req.params.id);
41
- if (!page) {
42
- res.status(404).json({ error: `Flow "${req.params.id}" not found` });
43
- return;
44
- }
45
- res.json(page);
46
- } catch (err) {
47
- res.status(500).json({ error: "Failed to build flow page", detail: String(err) });
48
- }
49
- });
50
- router.get("/portal", (_req, res) => {
51
- try {
52
- const page = buildPortalPage(projectDir);
53
- res.json(page);
54
- } catch (err) {
55
- res.status(500).json({ error: "Failed to build portal page", detail: String(err) });
56
- }
57
- });
58
- router.get("/page/:slug", (req, res) => {
59
- try {
60
- const config = loadDocsConfig(projectDir);
61
- const page = loadCustomPage(projectDir, req.params.slug, config);
62
- if (!page) {
63
- res.status(404).json({ error: `Page "${req.params.slug}" not found` });
64
- return;
65
- }
66
- res.json(page);
67
- } catch (err) {
68
- res.status(500).json({ error: "Failed to load custom page", detail: String(err) });
69
- }
70
- });
71
- router.get("/search", (req, res) => {
72
- try {
73
- const q = req.query.q || "";
74
- if (!q) {
75
- res.json({ count: 0, results: [] });
76
- return;
77
- }
78
- const limit = req.query.limit ? parseInt(req.query.limit, 10) : 20;
79
- const results = searchDocs(projectDir, q, limit);
80
- res.json({ count: results.length, results });
81
- } catch (err) {
82
- res.status(500).json({ error: "Failed to search docs", detail: String(err) });
83
- }
84
- });
85
- return router;
86
- }
87
- export {
88
- createDocsRouter
89
- };
@@ -1,155 +0,0 @@
1
- #!/usr/bin/env node
2
- import {
3
- buildDocsManifest,
4
- buildFlowPage,
5
- buildPortalPage,
6
- buildSymbolPage,
7
- loadCustomPages,
8
- loadDocsConfig
9
- } from "./chunk-2T6BTYBN.js";
10
- import "./chunk-PDX44BCA.js";
11
-
12
- // src/commands/docs/serve.ts
13
- import chalk from "chalk";
14
- async function docsServeCommand(options) {
15
- const projectDir = process.cwd();
16
- const port = parseInt(options.port || "3850", 10);
17
- const shouldOpen = options.open !== false;
18
- console.log(chalk.cyan("\n Starting Paradigm Docs...\n"));
19
- try {
20
- const { startPlatformServer } = await import("./platform-server-H5YO3DQD.js");
21
- await startPlatformServer({
22
- projectDir,
23
- port,
24
- open: shouldOpen,
25
- sections: ["overview", "docs"]
26
- });
27
- console.log(chalk.green(` Docs running at ${chalk.bold(`http://localhost:${port}`)}`));
28
- console.log(chalk.gray(" Press Ctrl+C to stop\n"));
29
- await new Promise(() => {
30
- });
31
- } catch (error) {
32
- if (error.code === "EADDRINUSE") {
33
- console.error(chalk.red(`
34
- Error: Port ${port} is already in use.`));
35
- console.log(chalk.gray(` Try: paradigm docs serve --port ${port + 1}
36
- `));
37
- } else {
38
- console.error(chalk.red("\n Failed to start Paradigm Docs:"), error);
39
- }
40
- process.exit(1);
41
- }
42
- }
43
-
44
- // src/commands/docs/build.ts
45
- import * as fs from "fs";
46
- import * as path from "path";
47
- import { fileURLToPath } from "url";
48
- import chalk2 from "chalk";
49
- var __filename = fileURLToPath(import.meta.url);
50
- var __dirname = path.dirname(__filename);
51
- async function docsBuildCommand(options) {
52
- let rootDir = process.cwd();
53
- while (rootDir !== "/") {
54
- if (fs.existsSync(path.join(rootDir, ".paradigm"))) break;
55
- rootDir = path.dirname(rootDir);
56
- }
57
- if (rootDir === "/") {
58
- console.error(chalk2.red(" Not in a Paradigm project (no .paradigm/ directory found)"));
59
- process.exit(1);
60
- }
61
- const config = loadDocsConfig(rootDir);
62
- const outputDir = options.output || config.output || ".paradigm/docs-site";
63
- const outputPath = path.resolve(rootDir, outputDir);
64
- const dataDir = path.join(outputPath, "_data");
65
- console.log(chalk2.cyan(`
66
- Building docs to ${chalk2.white(outputPath)}...
67
- `));
68
- fs.mkdirSync(path.join(dataDir, "symbols"), { recursive: true });
69
- fs.mkdirSync(path.join(dataDir, "flows"), { recursive: true });
70
- fs.mkdirSync(path.join(dataDir, "pages"), { recursive: true });
71
- const manifest = buildDocsManifest(rootDir, config);
72
- fs.writeFileSync(
73
- path.join(dataDir, "manifest.json"),
74
- JSON.stringify(manifest, null, 2),
75
- "utf8"
76
- );
77
- console.log(chalk2.gray(` manifest.json (${manifest.totalSymbols} symbols)`));
78
- let symbolCount = 0;
79
- for (const group of manifest.groups) {
80
- const items = [...group.items];
81
- if (group.subgroups) {
82
- for (const sg of group.subgroups) {
83
- items.push(...sg.items);
84
- }
85
- }
86
- for (const item of items) {
87
- if (["component", "signal", "aspect", "gate"].includes(item.kind)) {
88
- const page = buildSymbolPage(rootDir, item.id);
89
- if (page) {
90
- fs.writeFileSync(
91
- path.join(dataDir, "symbols", `${item.id}.json`),
92
- JSON.stringify(page, null, 2),
93
- "utf8"
94
- );
95
- symbolCount++;
96
- }
97
- } else if (item.kind === "flow") {
98
- const page = buildFlowPage(rootDir, item.id);
99
- if (page) {
100
- fs.writeFileSync(
101
- path.join(dataDir, "flows", `${item.id}.json`),
102
- JSON.stringify(page, null, 2),
103
- "utf8"
104
- );
105
- }
106
- }
107
- }
108
- }
109
- const portal = buildPortalPage(rootDir);
110
- fs.writeFileSync(
111
- path.join(dataDir, "portal.json"),
112
- JSON.stringify(portal, null, 2),
113
- "utf8"
114
- );
115
- const customPages = loadCustomPages(rootDir, config.customContent);
116
- for (const page of customPages) {
117
- fs.writeFileSync(
118
- path.join(dataDir, "pages", `${page.slug}.json`),
119
- JSON.stringify(page, null, 2),
120
- "utf8"
121
- );
122
- }
123
- let uiDistPath = path.join(__dirname, "..", "..", "platform-ui", "dist");
124
- if (!fs.existsSync(uiDistPath)) {
125
- uiDistPath = path.join(__dirname, "..", "..", "..", "platform-ui", "dist");
126
- }
127
- if (fs.existsSync(uiDistPath)) {
128
- copyDir(uiDistPath, outputPath);
129
- console.log(chalk2.gray(" Copied SPA shell"));
130
- }
131
- console.log(chalk2.gray(` ${symbolCount} symbol pages`));
132
- console.log(chalk2.gray(` ${customPages.length} custom pages`));
133
- console.log(chalk2.gray(" portal.json"));
134
- console.log(chalk2.green(`
135
- Docs built to ${outputPath}
136
- `));
137
- }
138
- function copyDir(src, dest) {
139
- fs.mkdirSync(dest, { recursive: true });
140
- for (const entry of fs.readdirSync(src, { withFileTypes: true })) {
141
- const srcPath = path.join(src, entry.name);
142
- const destPath = path.join(dest, entry.name);
143
- if (entry.isDirectory()) {
144
- if (entry.name !== "_data") {
145
- copyDir(srcPath, destPath);
146
- }
147
- } else {
148
- fs.copyFileSync(srcPath, destPath);
149
- }
150
- }
151
- }
152
- export {
153
- docsBuildCommand,
154
- docsServeCommand
155
- };
@@ -1,11 +0,0 @@
1
- #!/usr/bin/env node
2
- import {
3
- doctorCommand
4
- } from "./chunk-S3ORKP3V.js";
5
- import "./chunk-6N3JTACN.js";
6
- import "./chunk-YO6DVTL7.js";
7
- import "./chunk-4NCFWYGG.js";
8
- import "./chunk-PDX44BCA.js";
9
- export {
10
- doctorCommand
11
- };
@@ -1,251 +0,0 @@
1
- #!/usr/bin/env node
2
- import "./chunk-PDX44BCA.js";
3
-
4
- // src/commands/drift.ts
5
- import * as fs from "fs";
6
- import * as path from "path";
7
- import * as crypto from "crypto";
8
- import { execSync } from "child_process";
9
- import chalk from "chalk";
10
- function normalizeForHash(content) {
11
- return content.split("\n").map((l) => l.trimEnd()).filter((l) => l.trim().length > 0).join("\n").replace(/\s+/g, " ").trim();
12
- }
13
- function parseHunks(diff) {
14
- const hunks = [];
15
- const pattern = /^@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/gm;
16
- let match;
17
- while ((match = pattern.exec(diff)) !== null) {
18
- hunks.push({
19
- oldStart: parseInt(match[1], 10),
20
- oldCount: match[2] !== void 0 ? parseInt(match[2], 10) : 1,
21
- newCount: match[4] !== void 0 ? parseInt(match[4], 10) : 1
22
- });
23
- }
24
- return hunks;
25
- }
26
- function computeShift(rootDir, filePath, fromCommit, startLine, endLine) {
27
- let diff;
28
- try {
29
- diff = execSync(
30
- `git diff ${fromCommit}..HEAD --unified=0 -- "${filePath}"`,
31
- { cwd: rootDir, encoding: "utf8", timeout: 5e3 }
32
- );
33
- } catch {
34
- return null;
35
- }
36
- if (!diff.trim()) {
37
- return null;
38
- }
39
- const hunks = parseHunks(diff);
40
- let offset = 0;
41
- for (const hunk of hunks) {
42
- const hunkEnd = hunk.oldStart + hunk.oldCount;
43
- if (hunkEnd <= startLine) {
44
- offset += hunk.newCount - hunk.oldCount;
45
- continue;
46
- }
47
- if (hunk.oldStart < endLine) {
48
- return null;
49
- }
50
- break;
51
- }
52
- if (offset === 0) return null;
53
- return { newStart: startLine + offset, newEnd: endLine + offset };
54
- }
55
- function healPurposeFile(rootDir, purposePath, anchorFile, oldStart, oldEnd, newStart, newEnd) {
56
- const absPath = path.isAbsolute(purposePath) ? purposePath : path.join(rootDir, purposePath);
57
- if (!fs.existsSync(absPath)) return false;
58
- try {
59
- const content = fs.readFileSync(absPath, "utf8");
60
- const oldRef = oldStart === oldEnd ? `${anchorFile}:${oldStart}` : `${anchorFile}:${oldStart}-${oldEnd}`;
61
- const newRef = newStart === newEnd ? `${anchorFile}:${newStart}` : `${anchorFile}:${newStart}-${newEnd}`;
62
- if (!content.includes(oldRef)) return false;
63
- fs.writeFileSync(absPath, content.replace(oldRef, newRef), "utf8");
64
- return true;
65
- } catch {
66
- return false;
67
- }
68
- }
69
- async function driftCheckCommand(options) {
70
- const rootDir = process.cwd();
71
- const dbPath = path.join(rootDir, ".paradigm", "aspect-graph.db");
72
- if (!fs.existsSync(dbPath)) {
73
- if (options.json) {
74
- console.log(JSON.stringify({ driftedCount: 0, healedCount: 0, cleanCount: 0, missingCount: 0, details: [] }));
75
- } else {
76
- console.log(chalk.gray("No aspect-graph.db found. Run paradigm_aspect_check to initialize."));
77
- }
78
- return;
79
- }
80
- const autoHeal = options.autoHeal !== false;
81
- try {
82
- const initSqlJs = (await import("sql.js")).default;
83
- const SQL = await initSqlJs();
84
- const buffer = fs.readFileSync(dbPath);
85
- const db = new SQL.Database(buffer);
86
- const results = [];
87
- try {
88
- const stmt = db.prepare("SELECT id, aspect_id, file_path, start_line, end_line, content_hash, normalized_hash, materialized_at_commit, drifted FROM anchors");
89
- const anchors = [];
90
- while (stmt.step()) {
91
- const row = stmt.getAsObject();
92
- anchors.push(row);
93
- }
94
- stmt.free();
95
- for (const anchor of anchors) {
96
- const absFile = path.isAbsolute(anchor.file_path) ? anchor.file_path : path.join(rootDir, anchor.file_path);
97
- if (!fs.existsSync(absFile)) {
98
- results.push({
99
- aspectId: anchor.aspect_id,
100
- path: anchor.file_path,
101
- startLine: anchor.start_line,
102
- endLine: anchor.end_line,
103
- status: "missing"
104
- });
105
- continue;
106
- }
107
- const fileContent = fs.readFileSync(absFile, "utf8");
108
- const lines = fileContent.split("\n");
109
- const startIdx = Math.max(0, anchor.start_line - 1);
110
- const endIdx = Math.min(lines.length, anchor.end_line);
111
- const slice = lines.slice(startIdx, endIdx).join("\n");
112
- const exactHash = crypto.createHash("sha256").update(slice).digest("hex");
113
- if (anchor.content_hash != null && exactHash === anchor.content_hash) {
114
- if (anchor.drifted === 1) {
115
- db.run("UPDATE anchors SET drifted = 0 WHERE id = ?", [anchor.id]);
116
- }
117
- results.push({
118
- aspectId: anchor.aspect_id,
119
- path: anchor.file_path,
120
- startLine: anchor.start_line,
121
- endLine: anchor.end_line,
122
- status: "clean"
123
- });
124
- continue;
125
- }
126
- const normHash = crypto.createHash("sha256").update(normalizeForHash(slice)).digest("hex");
127
- if (anchor.normalized_hash != null && normHash === anchor.normalized_hash) {
128
- db.run("UPDATE anchors SET content_hash = ?, drifted = 0 WHERE id = ?", [exactHash, anchor.id]);
129
- results.push({
130
- aspectId: anchor.aspect_id,
131
- path: anchor.file_path,
132
- startLine: anchor.start_line,
133
- endLine: anchor.end_line,
134
- status: "cosmetic"
135
- });
136
- continue;
137
- }
138
- if (anchor.content_hash == null && anchor.normalized_hash == null) {
139
- db.run(
140
- "UPDATE anchors SET content_hash = ?, normalized_hash = ?, drifted = 0 WHERE id = ?",
141
- [exactHash, normHash, anchor.id]
142
- );
143
- results.push({
144
- aspectId: anchor.aspect_id,
145
- path: anchor.file_path,
146
- startLine: anchor.start_line,
147
- endLine: anchor.end_line,
148
- status: "clean"
149
- });
150
- continue;
151
- }
152
- let resolved = false;
153
- if (anchor.materialized_at_commit) {
154
- const shift = computeShift(rootDir, anchor.file_path, anchor.materialized_at_commit, anchor.start_line, anchor.end_line);
155
- if (shift) {
156
- const shiftedSlice = lines.slice(Math.max(0, shift.newStart - 1), Math.min(lines.length, shift.newEnd)).join("\n");
157
- const shiftedHash = crypto.createHash("sha256").update(shiftedSlice).digest("hex");
158
- if (anchor.content_hash != null && shiftedHash === anchor.content_hash || anchor.normalized_hash != null && crypto.createHash("sha256").update(normalizeForHash(shiftedSlice)).digest("hex") === anchor.normalized_hash) {
159
- if (autoHeal) {
160
- const newHash = crypto.createHash("sha256").update(shiftedSlice).digest("hex");
161
- db.run(
162
- "UPDATE anchors SET start_line = ?, end_line = ?, content_hash = ?, drifted = 0 WHERE id = ?",
163
- [shift.newStart, shift.newEnd, newHash, anchor.id]
164
- );
165
- const aspectStmt = db.prepare("SELECT defined_in FROM aspects WHERE id = ?");
166
- aspectStmt.bind([anchor.aspect_id]);
167
- if (aspectStmt.step()) {
168
- const aspectRow = aspectStmt.getAsObject();
169
- healPurposeFile(
170
- rootDir,
171
- aspectRow.defined_in,
172
- anchor.file_path,
173
- anchor.start_line,
174
- anchor.end_line,
175
- shift.newStart,
176
- shift.newEnd
177
- );
178
- }
179
- aspectStmt.free();
180
- }
181
- results.push({
182
- aspectId: anchor.aspect_id,
183
- path: anchor.file_path,
184
- startLine: autoHeal ? shift.newStart : anchor.start_line,
185
- endLine: autoHeal ? shift.newEnd : anchor.end_line,
186
- status: "shifted",
187
- autoHealed: autoHeal
188
- });
189
- resolved = true;
190
- }
191
- }
192
- }
193
- if (!resolved) {
194
- db.run("UPDATE anchors SET drifted = 1 WHERE id = ?", [anchor.id]);
195
- results.push({
196
- aspectId: anchor.aspect_id,
197
- path: anchor.file_path,
198
- startLine: anchor.start_line,
199
- endLine: anchor.end_line,
200
- status: "modified"
201
- });
202
- }
203
- }
204
- const data = db.export();
205
- fs.writeFileSync(dbPath, Buffer.from(data));
206
- } finally {
207
- db.close();
208
- }
209
- const summary = {
210
- driftedCount: results.filter((r) => r.status === "modified").length,
211
- healedCount: results.filter((r) => r.status === "shifted" && r.autoHealed).length,
212
- cleanCount: results.filter((r) => r.status === "clean" || r.status === "cosmetic").length,
213
- missingCount: results.filter((r) => r.status === "missing").length,
214
- details: results
215
- };
216
- if (options.json) {
217
- console.log(JSON.stringify(summary));
218
- } else {
219
- console.log(chalk.blue("\nAspect Drift Check\n"));
220
- if (summary.healedCount > 0) {
221
- console.log(chalk.green(` Auto-healed: ${summary.healedCount} shifted anchor(s)`));
222
- }
223
- if (summary.cleanCount > 0) {
224
- console.log(chalk.green(` Clean: ${summary.cleanCount} anchor(s)`));
225
- }
226
- if (summary.driftedCount > 0) {
227
- console.log(chalk.red(` Drifted: ${summary.driftedCount} anchor(s) (content changed)`));
228
- for (const d of results.filter((d2) => d2.status === "modified")) {
229
- console.log(chalk.red(` ${d.aspectId}: ${d.path}:${d.startLine}-${d.endLine}`));
230
- }
231
- }
232
- if (summary.missingCount > 0) {
233
- console.log(chalk.yellow(` Missing: ${summary.missingCount} anchor file(s) deleted`));
234
- }
235
- if (summary.driftedCount === 0 && summary.missingCount === 0) {
236
- console.log(chalk.green("\n All anchors are clean.\n"));
237
- } else {
238
- console.log(chalk.gray("\n Run paradigm_aspect_check to review and fix.\n"));
239
- }
240
- }
241
- } catch (err) {
242
- if (options.json) {
243
- console.log(JSON.stringify({ driftedCount: 0, healedCount: 0, cleanCount: 0, missingCount: 0, details: [], error: String(err) }));
244
- } else {
245
- console.log(chalk.red(`Drift check failed: ${err}`));
246
- }
247
- }
248
- }
249
- export {
250
- driftCheckCommand
251
- };