@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,716 +0,0 @@
1
- #!/usr/bin/env node
2
- import {
3
- detectIDE,
4
- getAdapter
5
- } from "./chunk-6N3JTACN.js";
6
- import {
7
- parseParadigmConfig
8
- } from "./chunk-YO6DVTL7.js";
9
- import {
10
- log
11
- } from "./chunk-4NCFWYGG.js";
12
-
13
- // src/commands/doctor/index.ts
14
- import * as fs from "fs";
15
- import * as path from "path";
16
- import * as yaml from "js-yaml";
17
- import chalk from "chalk";
18
- async function doctorCommand(options = {}) {
19
- const cwd = options.rootDir || process.cwd();
20
- const results = [];
21
- const quiet = options.quiet;
22
- const contextOnly = options.context;
23
- if (!quiet) {
24
- console.log(chalk.blue("\n\u{1FA7A} Paradigm Doctor\n"));
25
- if (contextOnly) {
26
- console.log(chalk.gray("Running context audit checks...\n"));
27
- } else {
28
- console.log(chalk.gray("Checking Paradigm setup...\n"));
29
- }
30
- }
31
- const tracker = log.command("doctor").start("Running health checks");
32
- if (!contextOnly) {
33
- let findPurposeFilesRecursive2 = function(dir) {
34
- const found = [];
35
- try {
36
- const entries = fs.readdirSync(dir, { withFileTypes: true });
37
- for (const entry of entries) {
38
- if (entry.name === "node_modules" || entry.name === "dist" || entry.name === ".git") continue;
39
- const fullPath = path.join(dir, entry.name);
40
- if (entry.isDirectory()) {
41
- found.push(...findPurposeFilesRecursive2(fullPath));
42
- } else if (entry.name === ".purpose") {
43
- found.push(fullPath);
44
- }
45
- }
46
- } catch {
47
- }
48
- return found;
49
- };
50
- var findPurposeFilesRecursive = findPurposeFilesRecursive2;
51
- const paradigmDir = path.join(cwd, ".paradigm");
52
- if (fs.existsSync(paradigmDir)) {
53
- const stat = fs.statSync(paradigmDir);
54
- if (stat.isFile()) {
55
- results.push({
56
- name: ".paradigm",
57
- status: "warn",
58
- message: "Legacy file format (should be directory)",
59
- fix: "paradigm upgrade --all"
60
- });
61
- } else {
62
- results.push({
63
- name: ".paradigm/",
64
- status: "ok",
65
- message: "Directory exists"
66
- });
67
- const configPath2 = path.join(paradigmDir, "config.yaml");
68
- if (fs.existsSync(configPath2)) {
69
- try {
70
- const content = fs.readFileSync(configPath2, "utf8");
71
- parseParadigmConfig(content);
72
- results.push({
73
- name: ".paradigm/config.yaml",
74
- status: "ok",
75
- message: "Valid YAML"
76
- });
77
- } catch (e) {
78
- results.push({
79
- name: ".paradigm/config.yaml",
80
- status: "error",
81
- message: `Invalid YAML: ${e.message}`,
82
- fix: "Check YAML syntax"
83
- });
84
- }
85
- } else {
86
- results.push({
87
- name: ".paradigm/config.yaml",
88
- status: "missing",
89
- message: "Config file not found",
90
- fix: "paradigm init --force"
91
- });
92
- }
93
- const specs = ["logger.md", "scan.md", "symbols.md"];
94
- const specsDir = path.join(paradigmDir, "specs");
95
- if (fs.existsSync(specsDir)) {
96
- for (const spec of specs) {
97
- const specPath = path.join(specsDir, spec);
98
- if (fs.existsSync(specPath)) {
99
- results.push({
100
- name: `.paradigm/specs/${spec}`,
101
- status: "ok",
102
- message: "Present"
103
- });
104
- } else {
105
- results.push({
106
- name: `.paradigm/specs/${spec}`,
107
- status: "missing",
108
- message: "Spec file not found",
109
- fix: "paradigm upgrade --all"
110
- });
111
- }
112
- }
113
- } else {
114
- results.push({
115
- name: ".paradigm/specs/",
116
- status: "missing",
117
- message: "Specs directory not found",
118
- fix: "paradigm upgrade --all"
119
- });
120
- }
121
- const docsDir = path.join(paradigmDir, "docs");
122
- if (fs.existsSync(docsDir)) {
123
- results.push({
124
- name: ".paradigm/docs/",
125
- status: "ok",
126
- message: "Directory exists"
127
- });
128
- } else {
129
- results.push({
130
- name: ".paradigm/docs/",
131
- status: "missing",
132
- message: "Docs directory not found",
133
- fix: "paradigm upgrade --all"
134
- });
135
- }
136
- const promptsDir = path.join(paradigmDir, "prompts");
137
- if (fs.existsSync(promptsDir)) {
138
- results.push({
139
- name: ".paradigm/prompts/",
140
- status: "ok",
141
- message: "Directory exists"
142
- });
143
- } else {
144
- results.push({
145
- name: ".paradigm/prompts/",
146
- status: "missing",
147
- message: "Prompts directory not found",
148
- fix: "paradigm upgrade --all"
149
- });
150
- }
151
- const scanIndexPath = path.join(paradigmDir, "scan-index.json");
152
- const legacyScanIndex = path.join(cwd, ".paradigm-scan-index.json");
153
- if (fs.existsSync(scanIndexPath)) {
154
- const stat2 = fs.statSync(scanIndexPath);
155
- const ageMs = Date.now() - stat2.mtime.getTime();
156
- const ageHours = Math.floor(ageMs / (1e3 * 60 * 60));
157
- if (ageHours > 24) {
158
- results.push({
159
- name: ".paradigm/scan-index.json",
160
- status: "warn",
161
- message: `Stale (${ageHours} hours old)`,
162
- fix: "paradigm index"
163
- });
164
- } else {
165
- results.push({
166
- name: ".paradigm/scan-index.json",
167
- status: "ok",
168
- message: ageHours > 0 ? `${ageHours} hours old` : "Fresh"
169
- });
170
- }
171
- } else if (fs.existsSync(legacyScanIndex)) {
172
- results.push({
173
- name: "scan-index",
174
- status: "warn",
175
- message: "Using legacy location",
176
- fix: "paradigm index"
177
- });
178
- } else {
179
- results.push({
180
- name: ".paradigm/scan-index.json",
181
- status: "missing",
182
- message: "Not generated",
183
- fix: "paradigm index"
184
- });
185
- }
186
- }
187
- } else {
188
- results.push({
189
- name: ".paradigm/",
190
- status: "missing",
191
- message: "Not initialized",
192
- fix: "paradigm init"
193
- });
194
- }
195
- const detection = detectIDE(cwd);
196
- if (detection.detected) {
197
- const adapter = getAdapter(detection.detected);
198
- if (adapter) {
199
- const idePath = path.join(cwd, adapter.outputPath);
200
- if (fs.existsSync(idePath)) {
201
- results.push({
202
- name: adapter.outputPath,
203
- status: "ok",
204
- message: `Present (${detection.detected})`
205
- });
206
- } else {
207
- results.push({
208
- name: adapter.outputPath,
209
- status: "missing",
210
- message: `Not generated for ${detection.detected}`,
211
- fix: "paradigm sync"
212
- });
213
- }
214
- }
215
- }
216
- const premisePath = path.join(cwd, ".premise");
217
- if (fs.existsSync(premisePath)) {
218
- results.push({
219
- name: ".premise",
220
- status: "ok",
221
- message: "Present"
222
- });
223
- } else {
224
- results.push({
225
- name: ".premise",
226
- status: "missing",
227
- message: "Not found (optional)"
228
- });
229
- }
230
- const purposePath = path.join(cwd, ".purpose");
231
- if (fs.existsSync(purposePath)) {
232
- results.push({
233
- name: ".purpose",
234
- status: "ok",
235
- message: "Present"
236
- });
237
- } else {
238
- results.push({
239
- name: ".purpose",
240
- status: "warn",
241
- message: "Root .purpose not found",
242
- fix: "paradigm init"
243
- });
244
- }
245
- const configPath = path.join(cwd, ".paradigm", "config.yaml");
246
- if (fs.existsSync(configPath)) {
247
- try {
248
- const configContent = fs.readFileSync(configPath, "utf8");
249
- const config = yaml.load(configContent);
250
- const purposeRequired = config?.["purpose-required"];
251
- if (purposeRequired && Array.isArray(purposeRequired)) {
252
- const missingDirs = [];
253
- for (const entry of purposeRequired) {
254
- if (!entry.pattern) continue;
255
- const { glob } = await import("glob");
256
- const matches = await glob(entry.pattern, { cwd, nodir: false });
257
- for (const match of matches) {
258
- const fullPath = path.join(cwd, match);
259
- try {
260
- const stat = fs.statSync(fullPath);
261
- if (stat.isDirectory() && !fs.existsSync(path.join(fullPath, ".purpose"))) {
262
- missingDirs.push(match);
263
- }
264
- } catch {
265
- }
266
- }
267
- }
268
- if (missingDirs.length > 0) {
269
- results.push({
270
- name: "Purpose-required",
271
- status: "warn",
272
- message: `${missingDirs.length} director${missingDirs.length === 1 ? "y" : "ies"} missing .purpose: ${missingDirs.join(", ")}`,
273
- fix: "Create .purpose files with paradigm_purpose_init + paradigm_purpose_add_component"
274
- });
275
- } else {
276
- results.push({
277
- name: "Purpose-required",
278
- status: "ok",
279
- message: "All required directories have .purpose files"
280
- });
281
- }
282
- }
283
- } catch {
284
- }
285
- }
286
- const clarificationMarkerRegex = /\[NEEDS CLARIFICATION:\s*[^\]]+\]/gi;
287
- let clarificationCount = 0;
288
- const purposeFiles = findPurposeFilesRecursive2(cwd);
289
- for (const pf of purposeFiles) {
290
- try {
291
- const content = fs.readFileSync(pf, "utf8");
292
- const matches = content.match(clarificationMarkerRegex);
293
- if (matches) {
294
- clarificationCount += matches.length;
295
- }
296
- } catch {
297
- }
298
- }
299
- if (clarificationCount > 0) {
300
- results.push({
301
- name: "Clarification markers",
302
- status: "warn",
303
- message: `${clarificationCount} [NEEDS CLARIFICATION] marker${clarificationCount > 1 ? "s" : ""} found in .purpose files`,
304
- fix: "Resolve open clarification markers before shipping"
305
- });
306
- } else if (purposeFiles.length > 0) {
307
- results.push({
308
- name: "Clarification markers",
309
- status: "ok",
310
- message: "No unresolved markers"
311
- });
312
- }
313
- const portalPath = path.join(cwd, "portal.yaml");
314
- if (fs.existsSync(portalPath)) {
315
- try {
316
- const portalContent = fs.readFileSync(portalPath, "utf8");
317
- const portal = yaml.load(portalContent);
318
- if (portal?.version && portal?.gates) {
319
- const gateCount = Object.keys(portal.gates || {}).length;
320
- const routeCount = Object.keys(portal.routes || {}).length;
321
- results.push({
322
- name: "portal.yaml",
323
- status: "ok",
324
- message: `Valid (${gateCount} gates, ${routeCount} routes)`
325
- });
326
- } else {
327
- results.push({
328
- name: "portal.yaml",
329
- status: "warn",
330
- message: "Missing version or gates section",
331
- fix: 'Add version: "1.0" and gates: {} to portal.yaml'
332
- });
333
- }
334
- } catch (e) {
335
- results.push({
336
- name: "portal.yaml",
337
- status: "error",
338
- message: `Invalid YAML: ${e.message}`,
339
- fix: "Check YAML syntax in portal.yaml"
340
- });
341
- }
342
- }
343
- if (fs.existsSync(portalPath)) {
344
- try {
345
- const { checkPortalCompliance, getComplianceSummary } = await import("./portal-compliance-J7DGAPFX.js");
346
- const complianceReport = await checkPortalCompliance(cwd);
347
- const summary = getComplianceSummary(complianceReport);
348
- results.push({
349
- name: "Portal compliance",
350
- status: summary.status,
351
- message: summary.message,
352
- fix: summary.status !== "ok" ? "paradigm portal check" : void 0
353
- });
354
- } catch {
355
- }
356
- }
357
- const flowsPath = path.join(cwd, ".paradigm", "flows.yaml");
358
- if (fs.existsSync(flowsPath)) {
359
- try {
360
- const flowsContent = fs.readFileSync(flowsPath, "utf8");
361
- const flows = yaml.load(flowsContent);
362
- if (flows?.version && flows?.flows) {
363
- const flowCount = Object.keys(flows.flows || {}).length;
364
- const emptyFlows = Object.entries(flows.flows || {}).filter(
365
- ([, f]) => !f?.steps || (f.steps?.length ?? 0) === 0
366
- );
367
- if (emptyFlows.length > 0) {
368
- results.push({
369
- name: ".paradigm/flows.yaml",
370
- status: "warn",
371
- message: `${flowCount} flows defined, ${emptyFlows.length} have no steps`,
372
- fix: "Add steps to empty flow definitions"
373
- });
374
- } else {
375
- results.push({
376
- name: ".paradigm/flows.yaml",
377
- status: "ok",
378
- message: `Valid (${flowCount} flows)`
379
- });
380
- }
381
- } else {
382
- results.push({
383
- name: ".paradigm/flows.yaml",
384
- status: "warn",
385
- message: "Missing version or flows section",
386
- fix: 'Ensure flows.yaml has version: "1.0" and flows: {}'
387
- });
388
- }
389
- } catch (e) {
390
- results.push({
391
- name: ".paradigm/flows.yaml",
392
- status: "error",
393
- message: `Invalid YAML: ${e.message}`,
394
- fix: "Check YAML syntax in flows.yaml"
395
- });
396
- }
397
- }
398
- const loreDir = path.join(cwd, ".paradigm", "lore");
399
- if (fs.existsSync(loreDir)) {
400
- try {
401
- const loreFiles = fs.readdirSync(loreDir).filter((f) => f.endsWith(".yaml"));
402
- if (loreFiles.length === 0) {
403
- results.push({
404
- name: "Lore entries",
405
- status: "warn",
406
- message: "Lore directory exists but no entries found",
407
- fix: "Record a lore entry: paradigm lore record"
408
- });
409
- } else {
410
- results.push({
411
- name: "Lore entries",
412
- status: "ok",
413
- message: `${loreFiles.length} lore file${loreFiles.length > 1 ? "s" : ""}`
414
- });
415
- }
416
- } catch {
417
- results.push({
418
- name: "Lore entries",
419
- status: "warn",
420
- message: "Could not read lore directory"
421
- });
422
- }
423
- }
424
- const universityDir = path.join(cwd, ".paradigm", "university");
425
- if (fs.existsSync(universityDir)) {
426
- try {
427
- const contentDir = path.join(universityDir, "content");
428
- let contentCount = 0;
429
- let issues = 0;
430
- if (fs.existsSync(contentDir)) {
431
- for (const subdir of ["notes", "policies", "quizzes", "paths"]) {
432
- const sd = path.join(contentDir, subdir);
433
- if (fs.existsSync(sd)) {
434
- contentCount += fs.readdirSync(sd).filter((f) => f.endsWith(".md") || f.endsWith(".yaml")).length;
435
- }
436
- }
437
- }
438
- if (contentCount === 0) {
439
- results.push({
440
- name: "University content",
441
- status: "warn",
442
- message: "University directory exists but no content found",
443
- fix: 'Add content: paradigm university add note --title "Getting Started"'
444
- });
445
- } else {
446
- const quizDir = path.join(contentDir, "quizzes");
447
- if (fs.existsSync(quizDir)) {
448
- for (const file of fs.readdirSync(quizDir).filter((f) => f.endsWith(".yaml"))) {
449
- try {
450
- const quiz = yaml.load(fs.readFileSync(path.join(quizDir, file), "utf8"));
451
- if (quiz?.questions) {
452
- for (const q of quiz.questions) {
453
- if (q.choices && q.correct && !(q.correct in q.choices)) {
454
- issues++;
455
- }
456
- }
457
- }
458
- } catch {
459
- }
460
- }
461
- }
462
- const pathDir = path.join(contentDir, "paths");
463
- if (fs.existsSync(pathDir)) {
464
- for (const file of fs.readdirSync(pathDir).filter((f) => f.endsWith(".yaml"))) {
465
- try {
466
- const lp = yaml.load(fs.readFileSync(path.join(pathDir, file), "utf8"));
467
- if (lp?.steps) {
468
- for (const step of lp.steps) {
469
- if (step.content && !step.content.startsWith("plsat:")) {
470
- let found = false;
471
- for (const sd of ["notes", "policies", "quizzes", "paths"]) {
472
- const sdPath = path.join(contentDir, sd);
473
- if (fs.existsSync(sdPath)) {
474
- const files = fs.readdirSync(sdPath);
475
- if (files.some((f) => f.startsWith(step.content))) {
476
- found = true;
477
- break;
478
- }
479
- }
480
- }
481
- if (!found) issues++;
482
- }
483
- }
484
- }
485
- } catch {
486
- }
487
- }
488
- }
489
- if (issues > 0) {
490
- results.push({
491
- name: "University content",
492
- status: "warn",
493
- message: `${contentCount} items, ${issues} issue${issues > 1 ? "s" : ""}`,
494
- fix: "Run: paradigm university validate --deep"
495
- });
496
- } else {
497
- results.push({
498
- name: "University content",
499
- status: "ok",
500
- message: `${contentCount} content item${contentCount > 1 ? "s" : ""}`
501
- });
502
- }
503
- }
504
- } catch {
505
- results.push({
506
- name: "University content",
507
- status: "warn",
508
- message: "Could not read university directory"
509
- });
510
- }
511
- }
512
- const hooksJsonPath = path.join(cwd, ".claude", "hooks.json");
513
- const pluginHooksPath = path.join(cwd, "plugins", "paradigm", "hooks.json");
514
- if (fs.existsSync(hooksJsonPath)) {
515
- const stat = fs.statSync(hooksJsonPath);
516
- const ageMs = Date.now() - stat.mtime.getTime();
517
- const ageDays = Math.floor(ageMs / (1e3 * 60 * 60 * 24));
518
- if (ageDays > 30) {
519
- results.push({
520
- name: "Claude Code hooks",
521
- status: "warn",
522
- message: `Hooks are ${ageDays} days old \u2014 may be outdated`,
523
- fix: "paradigm hooks install"
524
- });
525
- } else {
526
- results.push({
527
- name: "Claude Code hooks",
528
- status: "ok",
529
- message: ageDays > 0 ? `${ageDays} days old` : "Fresh"
530
- });
531
- }
532
- } else if (fs.existsSync(pluginHooksPath)) {
533
- results.push({
534
- name: "Claude Code hooks",
535
- status: "ok",
536
- message: "Using plugin hooks"
537
- });
538
- } else {
539
- results.push({
540
- name: "Claude Code hooks",
541
- status: "missing",
542
- message: "No hooks installed",
543
- fix: "paradigm hooks install"
544
- });
545
- }
546
- const habitsPath = path.join(cwd, ".paradigm", "habits.yaml");
547
- if (fs.existsSync(habitsPath)) {
548
- try {
549
- const habitsContent = fs.readFileSync(habitsPath, "utf8");
550
- const habits = yaml.load(habitsContent);
551
- if (habits?.version && Array.isArray(habits?.habits)) {
552
- const enabled = habits.habits.filter((h) => h.enabled !== false).length;
553
- results.push({
554
- name: "Habits config",
555
- status: "ok",
556
- message: `Valid (${enabled}/${habits.habits.length} enabled)`
557
- });
558
- } else {
559
- results.push({
560
- name: "Habits config",
561
- status: "warn",
562
- message: "Missing version or habits array",
563
- fix: "Regenerate habits.yaml with paradigm habits init"
564
- });
565
- }
566
- } catch (e) {
567
- results.push({
568
- name: "Habits config",
569
- status: "error",
570
- message: `Invalid YAML: ${e.message}`,
571
- fix: "Check YAML syntax in habits.yaml"
572
- });
573
- }
574
- }
575
- const agentsMdPath = path.join(cwd, "AGENTS.md");
576
- if (fs.existsSync(agentsMdPath)) {
577
- const stat = fs.statSync(agentsMdPath);
578
- const ageMs = Date.now() - stat.mtime.getTime();
579
- const ageDays = Math.floor(ageMs / (1e3 * 60 * 60 * 24));
580
- if (ageDays > 60) {
581
- results.push({
582
- name: "AGENTS.md",
583
- status: "warn",
584
- message: `${ageDays} days since last update \u2014 may be stale`,
585
- fix: "paradigm sync"
586
- });
587
- } else {
588
- results.push({
589
- name: "AGENTS.md",
590
- status: "ok",
591
- message: ageDays > 0 ? `Updated ${ageDays} days ago` : "Fresh"
592
- });
593
- }
594
- }
595
- }
596
- let errorCount = 0;
597
- let warnCount = 0;
598
- let missingCount = 0;
599
- for (const result of results) {
600
- let icon;
601
- let color;
602
- switch (result.status) {
603
- case "ok":
604
- icon = "\u2713";
605
- color = chalk.green;
606
- break;
607
- case "warn":
608
- icon = "\u26A0";
609
- color = chalk.yellow;
610
- warnCount++;
611
- break;
612
- case "error":
613
- icon = "\u2717";
614
- color = chalk.red;
615
- errorCount++;
616
- break;
617
- case "missing":
618
- icon = "\u25CB";
619
- color = chalk.gray;
620
- missingCount++;
621
- break;
622
- }
623
- if (!quiet) {
624
- const namePadded = result.name.padEnd(30);
625
- console.log(` ${color(icon)} ${namePadded} ${color(result.message)}`);
626
- if (result.fix) {
627
- console.log(chalk.gray(` \u2514\u2500 Fix: ${result.fix}`));
628
- }
629
- }
630
- }
631
- const { runContextAudit } = await import("./context-audit-RLO3ETRP.js");
632
- const contextResults = await runContextAudit(cwd, { quiet });
633
- let contextErrorCount = 0;
634
- let contextWarnCount = 0;
635
- let contextAdvisoryCount = 0;
636
- if (!quiet && contextResults.length > 0) {
637
- console.log("");
638
- console.log(chalk.blue(" Context Audit"));
639
- console.log(chalk.gray(" \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"));
640
- }
641
- for (const result of contextResults) {
642
- let icon;
643
- let color;
644
- switch (result.status) {
645
- case "ok":
646
- icon = "\u2713";
647
- color = chalk.green;
648
- break;
649
- case "warn":
650
- icon = "\u26A0";
651
- color = chalk.yellow;
652
- contextWarnCount++;
653
- break;
654
- case "error":
655
- icon = "\u2717";
656
- color = chalk.red;
657
- contextErrorCount++;
658
- break;
659
- case "advisory":
660
- icon = "\u2139";
661
- color = chalk.cyan;
662
- contextAdvisoryCount++;
663
- break;
664
- }
665
- if (!quiet) {
666
- const namePadded = result.check.padEnd(30);
667
- console.log(` ${color(icon)} ${namePadded} ${color(result.message)}`);
668
- if (result.details && result.details.length > 0) {
669
- const shown = result.details.slice(0, 5);
670
- for (const detail of shown) {
671
- console.log(chalk.gray(` \u2502 ${detail}`));
672
- }
673
- if (result.details.length > 5) {
674
- console.log(chalk.gray(` \u2502 ... and ${result.details.length - 5} more`));
675
- }
676
- }
677
- if (result.fix) {
678
- console.log(chalk.gray(` \u2514\u2500 Fix: ${result.fix}`));
679
- }
680
- }
681
- }
682
- const totalErrors = errorCount + contextErrorCount;
683
- const totalWarns = warnCount + contextWarnCount;
684
- const issueCount = totalErrors + totalWarns + missingCount;
685
- const healthy = issueCount === 0;
686
- if (!quiet) {
687
- console.log("");
688
- if (healthy) {
689
- console.log(chalk.green("\u2728 All checks passed!\n"));
690
- } else {
691
- const parts = [];
692
- if (totalErrors > 0) parts.push(chalk.red(`${totalErrors} error${totalErrors > 1 ? "s" : ""}`));
693
- if (totalWarns > 0) parts.push(chalk.yellow(`${totalWarns} warning${totalWarns > 1 ? "s" : ""}`));
694
- if (missingCount > 0) parts.push(chalk.gray(`${missingCount} missing`));
695
- if (contextAdvisoryCount > 0) parts.push(chalk.cyan(`${contextAdvisoryCount} advisor${contextAdvisoryCount > 1 ? "ies" : "y"}`));
696
- console.log(`${parts.join(", ")} found.
697
- `);
698
- console.log(chalk.gray("Run the suggested commands to fix issues.\n"));
699
- }
700
- }
701
- if (healthy) {
702
- tracker.success("All health checks passed", { total: results.length + contextResults.length });
703
- } else {
704
- tracker.error("Health checks found issues", {
705
- errors: totalErrors,
706
- warnings: totalWarns,
707
- missing: missingCount,
708
- advisories: contextAdvisoryCount
709
- });
710
- }
711
- return healthy;
712
- }
713
-
714
- export {
715
- doctorCommand
716
- };