@a-company/paradigm 5.10.0 → 5.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (409) hide show
  1. package/dist/accept-orchestration-IUAWQZUN.js +18 -0
  2. package/dist/add-P76GEMGF.js +8 -0
  3. package/dist/agent-UUTYOFTH.js +33 -0
  4. package/dist/agent-loader-EPXURMO7.js +2 -0
  5. package/dist/agent-loader-PYGPX6D2.js +2 -0
  6. package/dist/agent-state-KSQ3S7OB.js +2 -0
  7. package/dist/agents-suggest-HYTFMQD3.js +10 -0
  8. package/dist/aggregate-W66DM3GA.js +10 -0
  9. package/dist/ambient-HYZR42NX.js +35 -0
  10. package/dist/assess-UFPYEJKP.js +9 -0
  11. package/dist/auto-RHJXOZFL.js +14 -0
  12. package/dist/beacon-5QVYV5DF.js +13 -0
  13. package/dist/calibration-OLJYB5HN.js +7 -0
  14. package/dist/check-THVGY4R5.js +14 -0
  15. package/dist/chunk-22ISTMKI.js +31 -0
  16. package/dist/chunk-2QO33NYK.js +3 -0
  17. package/dist/chunk-33LKBMVK.js +134 -0
  18. package/dist/chunk-4QADCWPU.js +7 -0
  19. package/dist/chunk-4TXOVRWD.js +3 -0
  20. package/dist/chunk-4UJ4NIEQ.js +4 -0
  21. package/dist/chunk-4ZGGWZ32.js +3 -0
  22. package/dist/chunk-5TAVYPOV.js +2 -0
  23. package/dist/chunk-6EX37L4Q.js +8 -0
  24. package/dist/chunk-AD5TAD2A.js +5 -0
  25. package/dist/chunk-AGVAHVUA.js +2 -0
  26. package/dist/chunk-AO7ZSRME.js +13 -0
  27. package/dist/chunk-BFD3GFRK.js +2 -0
  28. package/dist/chunk-D34YFK4M.js +6 -0
  29. package/dist/chunk-DVZWCXB6.js +2 -0
  30. package/dist/chunk-EKZDFEJW.js +2 -0
  31. package/dist/chunk-ET5XJTSX.js +2 -0
  32. package/dist/chunk-FYDRENK7.js +3 -0
  33. package/dist/chunk-HMQ5BHP2.js +743 -0
  34. package/dist/chunk-HXKWL3VK.js +29 -0
  35. package/dist/chunk-IZSBGW6E.js +2 -0
  36. package/dist/chunk-J32OPJEX.js +2 -0
  37. package/dist/chunk-JBDMCRPP.js +7 -0
  38. package/dist/chunk-JIXHEBGK.js +7 -0
  39. package/dist/chunk-JNSJVCTU.js +2 -0
  40. package/dist/chunk-JQKKVAAN.js +2 -0
  41. package/dist/chunk-KLBH26PA.js +429 -0
  42. package/dist/chunk-L6K5HNDL.js +24 -0
  43. package/dist/chunk-LKAT7IAK.js +2 -0
  44. package/dist/chunk-M4UMM6DC.js +5 -0
  45. package/dist/chunk-NKYNHSA5.js +424 -0
  46. package/dist/chunk-NW6OKHE6.js +5 -0
  47. package/dist/chunk-NXRVR37G.js +60 -0
  48. package/dist/chunk-ODVKPZZ4.js +2 -0
  49. package/dist/chunk-PUBB7LIT.js +5 -0
  50. package/dist/chunk-Q2J542ST.js +2 -0
  51. package/dist/chunk-QGZRM6ZB.js +2 -0
  52. package/dist/chunk-QNZEG7IT.js +13 -0
  53. package/dist/chunk-QT2LKB3P.js +7 -0
  54. package/dist/chunk-RVRARWSY.js +9 -0
  55. package/dist/chunk-T6IDXUUA.js +2 -0
  56. package/dist/chunk-TYWB5IQJ.js +3 -0
  57. package/dist/chunk-UIKLE3WD.js +2 -0
  58. package/dist/chunk-V7K6CQVX.js +111 -0
  59. package/dist/chunk-VCKKJDLP.js +8 -0
  60. package/dist/chunk-VG7FN2TU.js +4 -0
  61. package/dist/chunk-W5IWDW4Y.js +16 -0
  62. package/dist/chunk-W7C6FFMO.js +8 -0
  63. package/dist/chunk-WESTEMIM.js +10 -0
  64. package/dist/chunk-WR6D3SC6.js +5 -0
  65. package/dist/chunk-WS2N27RX.js +3 -0
  66. package/dist/chunk-XMAV5AG6.js +2 -0
  67. package/dist/chunk-XROULIQN.js +2 -0
  68. package/dist/chunk-XUFYOXOU.js +3 -0
  69. package/dist/chunk-Y4XFVDZC.js +3 -0
  70. package/dist/chunk-Y6KXTQBG.js +2 -0
  71. package/dist/{chunk-GTR2TBIJ.js → chunk-Z2UZUCY6.js} +237 -1047
  72. package/dist/chunk-Z34K6GY2.js +8 -0
  73. package/dist/claude-4LR3LJQZ.js +13 -0
  74. package/dist/claude-cli-UP6HGH7C.js +6 -0
  75. package/dist/claude-code-RLJ4GX77.js +11 -0
  76. package/dist/claude-code-teams-R37HJY3Y.js +29 -0
  77. package/dist/commands-LMUD5L6R.js +455 -0
  78. package/dist/compliance-GZ7UAOG3.js +6 -0
  79. package/dist/conductor-Y5IXELTL.js +4 -0
  80. package/dist/config-schema-HR7LDEQ6.js +2 -0
  81. package/dist/constellation-CG7C4WFE.js +13 -0
  82. package/dist/context-audit-RSSRX6XC.js +6 -0
  83. package/dist/cost-IDNVMAEV.js +10 -0
  84. package/dist/cost-PK4KIF7R.js +2 -0
  85. package/dist/cursor-cli-QKF7Z6M2.js +4 -0
  86. package/dist/cursorrules-U5O4G5T4.js +14 -0
  87. package/dist/decision-loader-2XPZE4EZ.js +2 -0
  88. package/dist/delete-P5VULXR4.js +14 -0
  89. package/dist/diff-RTFUKJHF.js +9 -0
  90. package/dist/discipline-H7LDI6NT.js +2 -0
  91. package/dist/dist-3ZCH25SG.js +2 -0
  92. package/dist/dist-KGRCLBJP-2QAPFYNF.js +39 -0
  93. package/dist/dist-R3RWD35F.js +2 -0
  94. package/dist/dist-VGFSP3XM.js +2 -0
  95. package/dist/dist-VXCZWVVJ.js +2 -0
  96. package/dist/dist-W3XCATBJ.js +2 -0
  97. package/dist/docs-EDQ2STFK.js +2 -0
  98. package/dist/docs-RXPN6CK7.js +12 -0
  99. package/dist/doctor-2T2QL6VM.js +2 -0
  100. package/dist/drift-ILZE5BFJ.js +13 -0
  101. package/dist/echo-UPTQUEDU.js +46 -0
  102. package/dist/edit-GUU3HBVW.js +9 -0
  103. package/dist/event-Y3VXC2RV.js +3 -0
  104. package/dist/explain-files-3GPZUETV.js +4 -0
  105. package/dist/export-CV5KCTPS.js +2 -0
  106. package/dist/flow-S3RQ4YPY.js +11 -0
  107. package/dist/global-C44FW4G2.js +13 -0
  108. package/dist/graduate-3BBSC27A.js +5 -0
  109. package/dist/graph-CNDE5TAT.js +2 -0
  110. package/dist/graph-server-COZR5C3Z.js +14 -0
  111. package/dist/habits-4J2KRYUL.js +42 -0
  112. package/dist/history-UW454SDP.js +12 -0
  113. package/dist/hooks-XH52VGOU.js +2 -0
  114. package/dist/index.js +15 -1039
  115. package/dist/init-24MAQJFM.js +2 -0
  116. package/dist/integrity-UYDOOJDP.js +7 -0
  117. package/dist/integrity-checker-DHGMZQDG.js +2 -0
  118. package/dist/journal-loader-GLH7XFTK.js +2 -0
  119. package/dist/lint-IGKE6UPS.js +26 -0
  120. package/dist/list-5IUGP3ZB.js +7 -0
  121. package/dist/list-YKIQNKGB.js +6 -0
  122. package/dist/lore-loader-RVQI5GXL.js +2 -0
  123. package/dist/lore-loader-XY5MZRR2.js +2 -0
  124. package/dist/lore-server-FC2GMDLT.js +14 -0
  125. package/dist/manual-RXSPSFLL.js +20 -0
  126. package/dist/mcp.js +93 -20484
  127. package/dist/migrate-X5OMAFAQ.js +59 -0
  128. package/dist/migrate-assessments-GEI5WMI2.js +4 -0
  129. package/dist/model-discovery-HMB3YI4L.js +2 -0
  130. package/dist/nomination-engine-XF7TWPAP.js +2 -0
  131. package/dist/notebook-PE3JSYZI.js +11 -0
  132. package/dist/notebook-loader-CENTDDUJ.js +2 -0
  133. package/dist/orchestrate-35HBQ3O3.js +8 -0
  134. package/dist/peers-P2KXU7ZK.js +5 -0
  135. package/dist/persona-STQWZH5P.js +29 -0
  136. package/dist/pipeline-MZUITRVN.js +4 -0
  137. package/dist/platform-server-2KXHGHFV.js +25 -0
  138. package/dist/plugin-update-checker-M7PW434O.js +2 -0
  139. package/dist/portal-check-3JVNLOEP.js +8 -0
  140. package/dist/portal-compliance-2UG4VKWH.js +2 -0
  141. package/dist/probe-5L5BQDGE.js +6 -0
  142. package/dist/project-type-SURTOIG7.js +2 -0
  143. package/dist/promote-NJQDZBZA.js +8 -0
  144. package/dist/providers-4PXMWA7V.js +8 -0
  145. package/dist/quiz-FE5UGAY2.js +10 -0
  146. package/dist/record-YXPB34MY.js +6 -0
  147. package/dist/reindex-PGDQSM42.js +2 -0
  148. package/dist/remember-MJRNTXYS.js +14 -0
  149. package/dist/retag-N5XF3KXP.js +6 -0
  150. package/dist/review-6UAH6V3R.js +11 -0
  151. package/dist/review-77QI6VOC.js +6 -0
  152. package/dist/ripple-ZGDITCGB.js +10 -0
  153. package/dist/roster-FLRZ5J42.js +2 -0
  154. package/dist/sentinel-HYAZ3CO5.js +19 -0
  155. package/dist/sentinel-bridge-VR357PKL.js +2 -0
  156. package/dist/sentinel-mcp.js +38 -3808
  157. package/dist/sentinel.js +1 -34
  158. package/dist/serve-JE6UF5P2.js +8 -0
  159. package/dist/serve-L52ZUTU6.js +10 -0
  160. package/dist/serve-OY6XYL7F.js +12 -0
  161. package/dist/server-2MNROHF6.js +7 -0
  162. package/dist/server-4YNUIK4W.js +8 -0
  163. package/dist/session-tracker-SKOMBDOW.js +2 -0
  164. package/dist/session-work-log-3MNUDEZ6.js +2 -0
  165. package/dist/session-work-log-J2H5OZBR.js +2 -0
  166. package/dist/setup-3F5IK7MO.js +31 -0
  167. package/dist/setup-KPIMRZ4Q.js +2 -0
  168. package/dist/shift-6GCNH666.js +11 -0
  169. package/dist/show-BOAVWZPZ.js +7 -0
  170. package/dist/show-PJ5LFLIL.js +5 -0
  171. package/dist/snapshot-L2G56RPL.js +8 -0
  172. package/dist/spawn-UH5RENSE.js +12 -0
  173. package/dist/status-77M3SDIF.js +8 -0
  174. package/dist/status-A37ECYNJ.js +6 -0
  175. package/dist/summary-ZJLQ6KHB.js +7 -0
  176. package/dist/sweep-HU74OPVW.js +17 -0
  177. package/dist/switch-CTW4PDGI.js +17 -0
  178. package/dist/symphony-3QMBGCZY.js +2 -0
  179. package/dist/symphony-QI63XL62.js +53 -0
  180. package/dist/symphony-loader-XACVV2E3.js +2 -0
  181. package/dist/symphony-peers-U4KHMKGI.js +2 -0
  182. package/dist/symphony-peers-X5NGWXFP.js +2 -0
  183. package/dist/symphony-relay-5GY5JIPT.js +3 -0
  184. package/dist/sync-QRDSFETO.js +2 -0
  185. package/dist/sync-llms-HL5PPW3M.js +15 -0
  186. package/dist/task-loader-NZFDTUQ5.js +2 -0
  187. package/dist/team-WGERKGNP.js +2 -0
  188. package/dist/test-BQJMS4Y2.js +111 -0
  189. package/dist/thread-HFXK65D4.js +41 -0
  190. package/dist/timeline-K3ZFKJ3R.js +6 -0
  191. package/dist/triage-FCWOZASE.js +18 -0
  192. package/dist/tutorial-UC6YQMNN.js +305 -0
  193. package/dist/university-content/courses/.purpose +74 -5
  194. package/dist/university-content/courses/para-701.json +807 -0
  195. package/dist/university-content/plsat/.purpose +3 -2
  196. package/dist/university-ui/assets/{index-BjewBB6s.js → index-CGFJczb1.js} +2 -2
  197. package/dist/university-ui/assets/{index-BjewBB6s.js.map → index-CGFJczb1.js.map} +1 -1
  198. package/dist/university-ui/index.html +1 -1
  199. package/dist/upgrade-B4IOLZYK.js +53 -0
  200. package/dist/validate-C6SMKGYD.js +9 -0
  201. package/dist/validate-LSCDOLBO.js +13 -0
  202. package/dist/validate-VZXTJHGO.js +6 -0
  203. package/dist/watch-LRM5XD46.js +8 -0
  204. package/dist/watch-PZCCUP6K.js +9 -0
  205. package/dist/wisdom-XZ3QKPNP.js +7 -0
  206. package/dist/work-log-loader-DL5GZ2BQ.js +2 -0
  207. package/dist/workspace-2ODL5WLY.js +2 -0
  208. package/package.json +1 -1
  209. package/platform-ui/dist/assets/AmbientSection-DqQ2mfCO.js +1 -0
  210. package/platform-ui/dist/assets/{CanvasSection-DwPTRdIN.js → CanvasSection-DLW0s-Bu.js} +1 -1
  211. package/platform-ui/dist/assets/{DocsSection-BJc_ws4I.js → DocsSection-BQ9Hi51g.js} +1 -1
  212. package/platform-ui/dist/assets/{GitSection-DhqBo1xc.js → GitSection-QQeUX6o3.js} +1 -1
  213. package/platform-ui/dist/assets/{GraphSection-D9fhVnZ0.js → GraphSection-0c9C-w7K.js} +2 -2
  214. package/platform-ui/dist/assets/{GraphSection-BlgXTl53.css → GraphSection-Bbs2a8sC.css} +1 -1
  215. package/platform-ui/dist/assets/LoreSection--t56kCj2.js +1 -0
  216. package/platform-ui/dist/assets/LoreSection-qnmm3o4y.css +1 -0
  217. package/platform-ui/dist/assets/SentinelSection-C4OoME9U.js +1 -0
  218. package/platform-ui/dist/assets/{SymphonySection-BRoBaUSS.js → SymphonySection-B-rvsLxq.js} +1 -1
  219. package/platform-ui/dist/assets/TeamSection-CBFmNEEo.js +1 -0
  220. package/platform-ui/dist/assets/index-Bxp0TVaf.css +1 -0
  221. package/platform-ui/dist/assets/index-DPpOdAtC.js +57 -0
  222. package/platform-ui/dist/index.html +2 -2
  223. package/dist/accept-orchestration-UQLM7PTQ.js +0 -189
  224. package/dist/add-FZRKEGH4.js +0 -81
  225. package/dist/agent-WERIO2XV.js +0 -523
  226. package/dist/agent-loader-TFIANSF4.js +0 -44
  227. package/dist/agent-state-S5DAWPTF.js +0 -24
  228. package/dist/agents-suggest-DNSYJ6IA.js +0 -83
  229. package/dist/aggregate-H57K7PNV.js +0 -88
  230. package/dist/assess-4WVXZLZQ.js +0 -68
  231. package/dist/auto-QFS5NHQU.js +0 -504
  232. package/dist/beacon-KXZXYQHX.js +0 -251
  233. package/dist/calibration-V46G7JTY.js +0 -135
  234. package/dist/check-OWAIWV23.js +0 -175
  235. package/dist/chunk-2IO7JAG2.js +0 -148
  236. package/dist/chunk-2T6BTYBN.js +0 -712
  237. package/dist/chunk-36TKPM5Z.js +0 -400
  238. package/dist/chunk-45MUDW6E.js +0 -804
  239. package/dist/chunk-4BLYIB7J.js +0 -5701
  240. package/dist/chunk-4L3UTYQX.js +0 -677
  241. package/dist/chunk-4NCFWYGG.js +0 -110
  242. package/dist/chunk-54LTTQBH.js +0 -138
  243. package/dist/chunk-5EWAQHFY.js +0 -269
  244. package/dist/chunk-5JGJACDU.js +0 -37
  245. package/dist/chunk-5OUOLN6M.js +0 -659
  246. package/dist/chunk-5VKJBNJL.js +0 -444
  247. package/dist/chunk-6N3JTACN.js +0 -2260
  248. package/dist/chunk-6QC3YGB6.js +0 -114
  249. package/dist/chunk-7N7GSU6K.js +0 -34
  250. package/dist/chunk-ABVQGRF7.js +0 -268
  251. package/dist/chunk-CL7JSK52.js +0 -129
  252. package/dist/chunk-CSD7IHSN.js +0 -152
  253. package/dist/chunk-EDOAWN7J.js +0 -717
  254. package/dist/chunk-EKGMAM62.js +0 -525
  255. package/dist/chunk-EZ3GOCYC.js +0 -132
  256. package/dist/chunk-F3BCHPYT.js +0 -143
  257. package/dist/chunk-FKJUBQU3.js +0 -3081
  258. package/dist/chunk-GT5QGC2H.js +0 -253
  259. package/dist/chunk-GZDFVP2N.js +0 -540
  260. package/dist/chunk-IRKUEJVW.js +0 -405
  261. package/dist/chunk-J2JEQRT3.js +0 -164
  262. package/dist/chunk-JASGXLK3.js +0 -679
  263. package/dist/chunk-KVDYJLTC.js +0 -121
  264. package/dist/chunk-L27I3CPZ.js +0 -357
  265. package/dist/chunk-LHLIAYQ3.js +0 -185
  266. package/dist/chunk-MCMOGQMU.js +0 -145
  267. package/dist/chunk-NQKQG45G.js +0 -688
  268. package/dist/chunk-PBHIFAL4.js +0 -259
  269. package/dist/chunk-PDX44BCA.js +0 -11
  270. package/dist/chunk-PMXRGPRQ.js +0 -305
  271. package/dist/chunk-RAB5IKPR.js +0 -487
  272. package/dist/chunk-RJE5G7WO.js +0 -590
  273. package/dist/chunk-RTHA3XRE.js +0 -880
  274. package/dist/chunk-S2HO5MLR.js +0 -621
  275. package/dist/chunk-S3ORKP3V.js +0 -716
  276. package/dist/chunk-TAIJOFOE.js +0 -124
  277. package/dist/chunk-TXESEO7Y.js +0 -245
  278. package/dist/chunk-UPLDI7CN.js +0 -1334
  279. package/dist/chunk-VL67H5IC.js +0 -506
  280. package/dist/chunk-VPPK3SY4.js +0 -1136
  281. package/dist/chunk-YMDLDELF.js +0 -314
  282. package/dist/chunk-YO6DVTL7.js +0 -99
  283. package/dist/chunk-YRZ5RPEB.js +0 -1561
  284. package/dist/chunk-ZDHLG5VP.js +0 -5676
  285. package/dist/chunk-ZGUAAVMA.js +0 -756
  286. package/dist/chunk-ZSYVKSY6.js +0 -2602
  287. package/dist/claude-FRRWJSTJ.js +0 -362
  288. package/dist/claude-cli-XJLK2X4L.js +0 -276
  289. package/dist/claude-code-HTBA4XRB.js +0 -126
  290. package/dist/claude-code-teams-T4SP24MD.js +0 -199
  291. package/dist/commands-5N4ILTPH.js +0 -5859
  292. package/dist/conductor-CQVGTEQN.js +0 -161
  293. package/dist/config-schema-EA4XALGG.js +0 -154
  294. package/dist/constellation-A26CCGQS.js +0 -225
  295. package/dist/context-audit-RLO3ETRP.js +0 -682
  296. package/dist/cost-BGM32XJU.js +0 -93
  297. package/dist/cost-VI46A4XL.js +0 -174
  298. package/dist/cursor-cli-JVEZGHWQ.js +0 -269
  299. package/dist/cursorrules-HLIKJJZT.js +0 -84
  300. package/dist/decision-loader-WWCLIQPJ.js +0 -20
  301. package/dist/delete-KBRPQLPC.js +0 -56
  302. package/dist/diff-D4X53HAC.js +0 -126
  303. package/dist/discipline-FA4OZXIS.js +0 -24
  304. package/dist/dist-34NA5RS5.js +0 -74
  305. package/dist/dist-5QE2BB2B-5S3T6Y3T.js +0 -6919
  306. package/dist/dist-77JDTVAY.js +0 -62
  307. package/dist/dist-OGTSAZ55.js +0 -1358
  308. package/dist/dist-QK4SQAK7.js +0 -64
  309. package/dist/dist-TA6LSC2Q.js +0 -20
  310. package/dist/docs-PBZB7LYP.js +0 -89
  311. package/dist/docs-QIYKO3BR.js +0 -155
  312. package/dist/doctor-ULBOHEIC.js +0 -11
  313. package/dist/drift-R5NRKFHI.js +0 -251
  314. package/dist/echo-O2LY7CC2.js +0 -248
  315. package/dist/edit-R2HNLMOG.js +0 -63
  316. package/dist/event-25OJKDCE.js +0 -31
  317. package/dist/export-IWVL7XLF.js +0 -38
  318. package/dist/flow-CRRVV3O3.js +0 -185
  319. package/dist/global-3NG5JXUB.js +0 -136
  320. package/dist/graduate-USAWGBJM.js +0 -160
  321. package/dist/graph-VHUMAAS6.js +0 -12
  322. package/dist/graph-server-YL22VBBN.js +0 -116
  323. package/dist/habits-OL5NGPXO.js +0 -1405
  324. package/dist/history-WOWC573W.js +0 -277
  325. package/dist/hooks-HFWSCGPV.js +0 -12
  326. package/dist/integrity-IHO4FZTS.js +0 -194
  327. package/dist/integrity-checker-PSKJA5SB.js +0 -12
  328. package/dist/journal-loader-5EYSBFFY.js +0 -18
  329. package/dist/lint-K6CJGGPH.js +0 -456
  330. package/dist/list-4YK7QKFF.js +0 -57
  331. package/dist/list-ENR7Q4CR.js +0 -56
  332. package/dist/lore-loader-7NO6N6FT.js +0 -26
  333. package/dist/lore-server-UNJY5KC3.js +0 -118
  334. package/dist/manual-G6FISID5.js +0 -204
  335. package/dist/migrate-LS45DNEV.js +0 -889
  336. package/dist/migrate-assessments-RGH4O6IX.js +0 -97
  337. package/dist/model-discovery-D2H3VBGC.js +0 -8
  338. package/dist/nomination-engine-RV5CNO5B.js +0 -42
  339. package/dist/notebook-YWIYGEHV.js +0 -155
  340. package/dist/orchestrate-JLILBBJE.js +0 -324
  341. package/dist/peers-DEOUIZM6.js +0 -82
  342. package/dist/persona-UHAHIVST.js +0 -390
  343. package/dist/pipeline-L4HCSBGN.js +0 -263
  344. package/dist/platform-server-H5YO3DQD.js +0 -1475
  345. package/dist/plugin-update-checker-KRRSGXMV.js +0 -12
  346. package/dist/portal-check-NPYGII2D.js +0 -42
  347. package/dist/portal-compliance-J7DGAPFX.js +0 -18
  348. package/dist/probe-MHL5HQZ2.js +0 -167
  349. package/dist/promote-F6ZYZZAL.js +0 -182
  350. package/dist/providers-GK7PB2OL.js +0 -104
  351. package/dist/quiz-M66SC7F7.js +0 -99
  352. package/dist/record-RA4WR2BO.js +0 -49
  353. package/dist/reindex-5LTD53ZC.js +0 -16
  354. package/dist/remember-HBWJ655S.js +0 -77
  355. package/dist/retag-3OLCVDEQ.js +0 -62
  356. package/dist/review-27ATYTD2.js +0 -33
  357. package/dist/review-57QMURZV.js +0 -334
  358. package/dist/ripple-JPBXP5I3.js +0 -215
  359. package/dist/sentinel-4XIG4STA.js +0 -63
  360. package/dist/sentinel-bridge-MDUXTQRL.js +0 -109
  361. package/dist/serve-CAH3PHE7.js +0 -33
  362. package/dist/serve-INL7SNBK.js +0 -36
  363. package/dist/serve-KBSE36PL.js +0 -49
  364. package/dist/server-54SKYFFY.js +0 -1647
  365. package/dist/server-XUOIO7E6.js +0 -338
  366. package/dist/session-tracker-C4BMD5WG.js +0 -13
  367. package/dist/session-work-log-MZ47OAPB.js +0 -20
  368. package/dist/setup-EDS27WUR.js +0 -25
  369. package/dist/setup-KO5AFC4K.js +0 -296
  370. package/dist/shift-D2JOHHBF.js +0 -668
  371. package/dist/show-5PV5KFJE.js +0 -176
  372. package/dist/show-NQKYX6WQ.js +0 -82
  373. package/dist/snapshot-BK4RBPCG.js +0 -62
  374. package/dist/spawn-RCHNXDHE.js +0 -196
  375. package/dist/status-WGIAQODY.js +0 -71
  376. package/dist/summary-NIRABMF5.js +0 -140
  377. package/dist/sweep-QMHNSIY5.js +0 -934
  378. package/dist/switch-6EJPZDIA.js +0 -232
  379. package/dist/symphony-4OCY36AI.js +0 -791
  380. package/dist/symphony-B75X2MME.js +0 -326
  381. package/dist/symphony-loader-UZGON56V.js +0 -90
  382. package/dist/symphony-peers-2ZQYLRNI.js +0 -34
  383. package/dist/symphony-peers-OL7F6M5S.js +0 -121
  384. package/dist/symphony-relay-UJYUXN65.js +0 -710
  385. package/dist/sync-VEHUH4OA.js +0 -11
  386. package/dist/sync-llms-YHCFIE6X.js +0 -166
  387. package/dist/task-loader-LDYWQSLM.js +0 -20
  388. package/dist/team-O5MIIFMA.js +0 -34
  389. package/dist/test-566CP5KC.js +0 -1017
  390. package/dist/thread-N754I4D5.js +0 -274
  391. package/dist/timeline-M3CICQFE.js +0 -112
  392. package/dist/triage-HHYGT3HY.js +0 -671
  393. package/dist/tutorial-KD22SUNO.js +0 -666
  394. package/dist/upgrade-H5PF32BW.js +0 -551
  395. package/dist/validate-CNKEKO6A.js +0 -134
  396. package/dist/validate-MB5ULIHS.js +0 -39
  397. package/dist/validate-QH3LADM6.js +0 -64
  398. package/dist/watch-2TKP5PVL.js +0 -199
  399. package/dist/watch-ZF4ML6CD.js +0 -111
  400. package/dist/wisdom-AATMGNFA.js +0 -319
  401. package/dist/work-log-loader-5L45XNYZ.js +0 -14
  402. package/dist/workspace-6E6OSRNU.js +0 -21
  403. package/platform-ui/dist/assets/AmbientSection-WtHfNedO.js +0 -1
  404. package/platform-ui/dist/assets/LoreSection-C3EixkjW.css +0 -1
  405. package/platform-ui/dist/assets/LoreSection-CwDDHrz9.js +0 -1
  406. package/platform-ui/dist/assets/SentinelSection-Cl7e5oZ6.js +0 -1
  407. package/platform-ui/dist/assets/TeamSection-CqSIMrKz.js +0 -1
  408. package/platform-ui/dist/assets/index-CfpZFjea.css +0 -1
  409. package/platform-ui/dist/assets/index-F0KL9xrN.js +0 -57
@@ -1,121 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- // ../paradigm-mcp/src/utils/symphony-peers.ts
4
- import * as fs from "fs";
5
- import * as path from "path";
6
- import * as os from "os";
7
- import * as crypto from "crypto";
8
- var SCORE_DIR = path.join(os.homedir(), ".paradigm", "score");
9
- var PEERS_FILE = path.join(SCORE_DIR, "peers.json");
10
- var PAIRING_TTL_MS = 5 * 60 * 1e3;
11
- function loadPeers() {
12
- try {
13
- if (!fs.existsSync(PEERS_FILE)) return [];
14
- const content = fs.readFileSync(PEERS_FILE, "utf-8");
15
- const parsed = JSON.parse(content);
16
- if (!Array.isArray(parsed)) return [];
17
- return parsed;
18
- } catch {
19
- return [];
20
- }
21
- }
22
- function savePeers(peers) {
23
- if (!fs.existsSync(SCORE_DIR)) {
24
- fs.mkdirSync(SCORE_DIR, { recursive: true });
25
- }
26
- fs.writeFileSync(PEERS_FILE, JSON.stringify(peers, null, 2), { mode: 384 });
27
- }
28
- function findPeer(id) {
29
- const peers = loadPeers();
30
- return peers.find((p) => p.id === id) ?? null;
31
- }
32
- function addPeer(peer) {
33
- const peers = loadPeers();
34
- const idx = peers.findIndex((p) => p.id === peer.id);
35
- if (idx >= 0) {
36
- peers[idx] = peer;
37
- } else {
38
- peers.push(peer);
39
- }
40
- savePeers(peers);
41
- }
42
- function revokePeer(id) {
43
- const peers = loadPeers();
44
- const peer = peers.find((p) => p.id === id);
45
- if (!peer) return false;
46
- peer.revoked = true;
47
- savePeers(peers);
48
- return true;
49
- }
50
- function forgetAllPeers() {
51
- const peers = loadPeers();
52
- const count = peers.length;
53
- if (fs.existsSync(PEERS_FILE)) {
54
- fs.unlinkSync(PEERS_FILE);
55
- }
56
- return count;
57
- }
58
- function updatePeerLastSeen(id) {
59
- const peers = loadPeers();
60
- const peer = peers.find((p) => p.id === id);
61
- if (!peer) return;
62
- peer.lastSeen = (/* @__PURE__ */ new Date()).toISOString();
63
- savePeers(peers);
64
- }
65
- function updatePeerAgents(id, agents) {
66
- const peers = loadPeers();
67
- const peer = peers.find((p) => p.id === id);
68
- if (!peer) return;
69
- peer.agents = agents;
70
- savePeers(peers);
71
- }
72
- function generatePairing() {
73
- const sharedSecret = crypto.randomBytes(32).toString("hex");
74
- const code = (parseInt(crypto.randomBytes(3).toString("hex"), 16) % 1e6).toString().padStart(6, "0");
75
- const codeHash = crypto.createHash("sha256").update(code).digest("hex");
76
- return {
77
- code,
78
- codeHash,
79
- sharedSecret,
80
- createdAt: Date.now()
81
- };
82
- }
83
- function verifyPairingCode(state, code) {
84
- if (Date.now() - state.createdAt > PAIRING_TTL_MS) {
85
- return false;
86
- }
87
- const hash = crypto.createHash("sha256").update(code).digest("hex");
88
- return hash === state.codeHash;
89
- }
90
- function computeHmacProof(challenge, codeHash) {
91
- return crypto.createHmac("sha256", codeHash).update(challenge).digest("hex");
92
- }
93
- function verifyHmacProof(challenge, codeHash, proof) {
94
- const expected = computeHmacProof(challenge, codeHash);
95
- if (expected.length !== proof.length) return false;
96
- try {
97
- return crypto.timingSafeEqual(
98
- Buffer.from(expected, "hex"),
99
- Buffer.from(proof, "hex")
100
- );
101
- } catch {
102
- return false;
103
- }
104
- }
105
-
106
- export {
107
- PEERS_FILE,
108
- PAIRING_TTL_MS,
109
- loadPeers,
110
- savePeers,
111
- findPeer,
112
- addPeer,
113
- revokePeer,
114
- forgetAllPeers,
115
- updatePeerLastSeen,
116
- updatePeerAgents,
117
- generatePairing,
118
- verifyPairingCode,
119
- computeHmacProof,
120
- verifyHmacProof
121
- };
@@ -1,357 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- // ../paradigm-mcp/src/utils/integrity-checker.ts
4
- import * as fs from "fs";
5
- import * as path from "path";
6
- function checkIntegrity(aggregation, rootDir) {
7
- const symbols = aggregation.symbols;
8
- return {
9
- brokenReferences: findBrokenReferences(symbols),
10
- duplicateSymbols: findDuplicateSymbols(symbols),
11
- orphanedSymbols: findOrphanedSymbols(symbols),
12
- missingAnchorFiles: findMissingAnchors(symbols, rootDir),
13
- anchorOutOfBounds: findAnchorOutOfBounds(symbols, rootDir),
14
- timestamp: (/* @__PURE__ */ new Date()).toISOString()
15
- };
16
- }
17
- function findBrokenReferences(symbols) {
18
- const broken = [];
19
- const definedIds = new Set(symbols.map((s) => s.symbol));
20
- for (const sym of symbols) {
21
- if (sym.parentSymbol) {
22
- const parentRef = normalizeSymbolRef(sym.parentSymbol);
23
- if (parentRef && !definedIds.has(parentRef)) {
24
- broken.push({
25
- from: sym.symbol,
26
- to: parentRef,
27
- file: sym.filePath,
28
- refType: "parent"
29
- });
30
- }
31
- }
32
- const data = sym.data;
33
- if (data && typeof data === "object") {
34
- if (sym.type === "flow") {
35
- const steps = data.steps || [];
36
- for (const step of steps) {
37
- const ref = step.symbol || step.component;
38
- if (ref) {
39
- const normalized = normalizeSymbolRef(ref);
40
- if (normalized && !definedIds.has(normalized)) {
41
- broken.push({
42
- from: sym.symbol,
43
- to: normalized,
44
- file: sym.filePath,
45
- refType: "flow"
46
- });
47
- }
48
- }
49
- }
50
- const gates = data.gates || [];
51
- for (const gate of gates) {
52
- const normalized = normalizeSymbolRef(gate);
53
- if (normalized && !definedIds.has(normalized)) {
54
- broken.push({
55
- from: sym.symbol,
56
- to: normalized,
57
- file: sym.filePath,
58
- refType: "gate"
59
- });
60
- }
61
- }
62
- const signals = data.signals || [];
63
- for (const signal of signals) {
64
- const normalized = normalizeSymbolRef(signal);
65
- if (normalized && !definedIds.has(normalized)) {
66
- broken.push({
67
- from: sym.symbol,
68
- to: normalized,
69
- file: sym.filePath,
70
- refType: "signal"
71
- });
72
- }
73
- }
74
- const components = data.components || [];
75
- for (const comp of components) {
76
- const normalized = normalizeSymbolRef(comp);
77
- if (normalized && !definedIds.has(normalized)) {
78
- broken.push({
79
- from: sym.symbol,
80
- to: normalized,
81
- file: sym.filePath,
82
- refType: "component"
83
- });
84
- }
85
- }
86
- }
87
- }
88
- }
89
- const seen = /* @__PURE__ */ new Set();
90
- return broken.filter((b) => {
91
- const key = `${b.from}->${b.to}@${b.file}`;
92
- if (seen.has(key)) return false;
93
- seen.add(key);
94
- return true;
95
- });
96
- }
97
- function normalizeSymbolRef(ref) {
98
- if (!ref || typeof ref !== "string") return null;
99
- const trimmed = ref.trim();
100
- if (!trimmed) return null;
101
- if (/^[#$^!~@%?&]/.test(trimmed)) {
102
- return trimmed;
103
- }
104
- return `#${trimmed}`;
105
- }
106
- function findDuplicateSymbols(symbols) {
107
- const bySymbol = /* @__PURE__ */ new Map();
108
- for (const sym of symbols) {
109
- const entries = bySymbol.get(sym.symbol) || [];
110
- const existing = entries.find((e) => e.file === sym.filePath);
111
- if (!existing) {
112
- entries.push({ file: sym.filePath, source: sym.source });
113
- }
114
- bySymbol.set(sym.symbol, entries);
115
- }
116
- const duplicates = [];
117
- for (const [symbol, entries] of bySymbol) {
118
- if (entries.length <= 1) continue;
119
- if (entries.length === 2) {
120
- const sources = entries.map((e) => e.source).sort();
121
- if (sources[0] === "portal" && sources[1] === "purpose") continue;
122
- }
123
- duplicates.push({ symbol, files: entries.map((e) => e.file) });
124
- }
125
- return duplicates;
126
- }
127
- function findOrphanedSymbols(symbols) {
128
- const orphaned = [];
129
- for (const sym of symbols) {
130
- if (sym.referencedBy.length === 0 && sym.references.length === 0) {
131
- orphaned.push({
132
- symbol: sym.symbol,
133
- file: sym.filePath,
134
- referenceCount: 0
135
- });
136
- }
137
- }
138
- return orphaned;
139
- }
140
- function findMissingAnchors(symbols, rootDir) {
141
- const missing = [];
142
- for (const sym of symbols) {
143
- if (!sym.anchors || sym.anchors.length === 0) continue;
144
- for (const anchor of sym.anchors) {
145
- const filePath = resolveAnchorPath(anchor.path, rootDir, sym.filePath);
146
- if (!fs.existsSync(filePath)) {
147
- missing.push({
148
- symbol: sym.symbol,
149
- anchor: anchor.raw
150
- });
151
- }
152
- }
153
- }
154
- return missing;
155
- }
156
- function findAnchorOutOfBounds(symbols, rootDir) {
157
- const outOfBounds = [];
158
- for (const sym of symbols) {
159
- if (!sym.anchors || sym.anchors.length === 0) continue;
160
- for (const anchor of sym.anchors) {
161
- const filePath = resolveAnchorPath(anchor.path, rootDir, sym.filePath);
162
- if (!fs.existsSync(filePath)) continue;
163
- const maxLine = getMaxLine(anchor);
164
- if (maxLine <= 0) continue;
165
- try {
166
- const content = fs.readFileSync(filePath, "utf8");
167
- const lineCount = content.split("\n").length;
168
- if (maxLine > lineCount) {
169
- outOfBounds.push({
170
- symbol: sym.symbol,
171
- anchor: anchor.raw,
172
- fileLines: lineCount
173
- });
174
- }
175
- } catch {
176
- }
177
- }
178
- }
179
- return outOfBounds;
180
- }
181
- function checkComponentAnchors(symbols, rootDir) {
182
- const report = {
183
- valid: 0,
184
- missing: 0,
185
- outOfBounds: 0,
186
- issues: []
187
- };
188
- for (const sym of symbols) {
189
- if (!sym.anchors || sym.anchors.length === 0) continue;
190
- for (const anchor of sym.anchors) {
191
- const filePath = resolveAnchorPath(anchor.path, rootDir, sym.filePath);
192
- if (!fs.existsSync(filePath)) {
193
- report.missing++;
194
- report.issues.push({
195
- symbol: sym.symbol,
196
- anchor: anchor.raw,
197
- status: "missing"
198
- });
199
- continue;
200
- }
201
- const maxLine = getMaxLine(anchor);
202
- if (maxLine > 0) {
203
- try {
204
- const content = fs.readFileSync(filePath, "utf8");
205
- const lineCount = content.split("\n").length;
206
- if (maxLine > lineCount) {
207
- report.outOfBounds++;
208
- report.issues.push({
209
- symbol: sym.symbol,
210
- anchor: anchor.raw,
211
- status: "out-of-bounds"
212
- });
213
- continue;
214
- }
215
- } catch {
216
- report.missing++;
217
- report.issues.push({
218
- symbol: sym.symbol,
219
- anchor: anchor.raw,
220
- status: "missing"
221
- });
222
- continue;
223
- }
224
- }
225
- report.valid++;
226
- report.issues.push({
227
- symbol: sym.symbol,
228
- anchor: anchor.raw,
229
- status: "ok"
230
- });
231
- }
232
- }
233
- return report;
234
- }
235
- var SKIP_DIRS = /* @__PURE__ */ new Set([
236
- "node_modules",
237
- "dist",
238
- ".git",
239
- ".paradigm",
240
- "coverage",
241
- "build",
242
- "__pycache__",
243
- "target",
244
- ".next",
245
- ".nuxt"
246
- ]);
247
- var SOURCE_EXTENSIONS = /* @__PURE__ */ new Set([
248
- ".ts",
249
- ".js",
250
- ".tsx",
251
- ".jsx",
252
- ".py",
253
- ".rs",
254
- ".go",
255
- ".swift"
256
- ]);
257
- function checkPurposeHealth(purposeFiles, rootDir) {
258
- const oversized = [];
259
- const stale = [];
260
- for (const filePath of purposeFiles) {
261
- const absPath = path.isAbsolute(filePath) ? filePath : path.join(rootDir, filePath);
262
- if (!fs.existsSync(absPath)) continue;
263
- let content;
264
- try {
265
- content = fs.readFileSync(absPath, "utf8");
266
- } catch {
267
- continue;
268
- }
269
- const lines = content.split("\n").length;
270
- const symbolMatches = content.match(/^ [A-Za-z][A-Za-z0-9_-]*:/gm) || [];
271
- const symbolCount = symbolMatches.length;
272
- if (lines > 500) {
273
- const severity = lines > 1e3 ? "strongly recommend" : "consider";
274
- let suggestion;
275
- if (symbolCount >= 10) {
276
- suggestion = `${severity} splitting: ${symbolCount} top-level symbols across ${lines} lines. Split by component type or subdirectory.`;
277
- } else {
278
- suggestion = `${severity} splitting: ${lines} lines. Reduce descriptions or extract sub-components.`;
279
- }
280
- oversized.push({
281
- file: path.relative(rootDir, absPath),
282
- lines,
283
- symbolCount,
284
- suggestion
285
- });
286
- }
287
- try {
288
- const purposeStat = fs.statSync(absPath);
289
- const purposeDir = path.dirname(absPath);
290
- const newestSource = findNewestSourceFile(purposeDir, rootDir);
291
- if (newestSource) {
292
- const sourceStat = fs.statSync(newestSource.path);
293
- const daysDiff = Math.floor(
294
- (sourceStat.mtime.getTime() - purposeStat.mtime.getTime()) / (1e3 * 60 * 60 * 24)
295
- );
296
- if (daysDiff >= 7) {
297
- stale.push({
298
- file: path.relative(rootDir, absPath),
299
- lastModified: purposeStat.mtime.toISOString(),
300
- daysSinceUpdate: daysDiff,
301
- newestSourceFile: path.relative(rootDir, newestSource.path)
302
- });
303
- }
304
- }
305
- } catch {
306
- }
307
- }
308
- const score = Math.max(0, 100 - oversized.length * 10 - stale.length * 5);
309
- return { oversized, stale, healthScore: score };
310
- }
311
- function resolveAnchorPath(anchorPath, rootDir, purposeFilePath) {
312
- if (path.isAbsolute(anchorPath)) return anchorPath;
313
- if (purposeFilePath) {
314
- const purposeDir = path.dirname(purposeFilePath);
315
- const relativePath = path.join(purposeDir, anchorPath);
316
- if (fs.existsSync(relativePath)) return relativePath;
317
- }
318
- return path.join(rootDir, anchorPath);
319
- }
320
- function getMaxLine(anchor) {
321
- if (typeof anchor.lines === "number") {
322
- return anchor.lines;
323
- }
324
- if (Array.isArray(anchor.lines)) {
325
- return Math.max(...anchor.lines);
326
- }
327
- return 0;
328
- }
329
- function findNewestSourceFile(dir, _rootDir) {
330
- let newest = null;
331
- try {
332
- const entries = fs.readdirSync(dir, { withFileTypes: true });
333
- for (const entry of entries) {
334
- if (!entry.isFile()) continue;
335
- if (SKIP_DIRS.has(entry.name)) continue;
336
- const ext = path.extname(entry.name);
337
- if (!SOURCE_EXTENSIONS.has(ext)) continue;
338
- const fullPath = path.join(dir, entry.name);
339
- try {
340
- const stat = fs.statSync(fullPath);
341
- if (!newest || stat.mtime.getTime() > newest.mtime) {
342
- newest = { path: fullPath, mtime: stat.mtime.getTime() };
343
- }
344
- } catch {
345
- continue;
346
- }
347
- }
348
- } catch {
349
- }
350
- return newest;
351
- }
352
-
353
- export {
354
- checkIntegrity,
355
- checkComponentAnchors,
356
- checkPurposeHealth
357
- };
@@ -1,185 +0,0 @@
1
- #!/usr/bin/env node
2
- import {
3
- getScanProtocol
4
- } from "./chunk-36TKPM5Z.js";
5
-
6
- // src/core/cursorrules.ts
7
- import * as fs from "fs";
8
- import * as path from "path";
9
- var START_MARKER = "<!-- HORIZON:START -->";
10
- var END_MARKER = "<!-- HORIZON:END -->";
11
- function generateCursorrules(config, projectName, options = {}) {
12
- const lines = [];
13
- lines.push("# Project Context (via Paradigm)");
14
- lines.push("");
15
- if (projectName) {
16
- lines.push(`Project: ${projectName}`);
17
- lines.push("");
18
- }
19
- if (config["agent-guidelines"]?.overview) {
20
- lines.push(config["agent-guidelines"].overview);
21
- lines.push("");
22
- }
23
- lines.push("This project uses Paradigm for structured AI context:");
24
- lines.push("- `.purpose` files define features, components, and context");
25
- lines.push("- `portal.yaml` files define authorization topology");
26
- lines.push("- `.premise` files aggregate the project symbol graph");
27
- lines.push("");
28
- if (config["agent-guidelines"]?.["how-to-use"]?.length) {
29
- lines.push("## How to Use Paradigm");
30
- lines.push("");
31
- for (const instruction of config["agent-guidelines"]["how-to-use"]) {
32
- lines.push(`- ${instruction}`);
33
- }
34
- lines.push("");
35
- }
36
- lines.push("## Symbol System");
37
- lines.push("");
38
- lines.push("Use these prefixes to reference project elements:");
39
- lines.push("");
40
- lines.push("| Symbol | Name | Owner | Examples |");
41
- lines.push("|--------|------|-------|----------|");
42
- const symbolSystem = config["symbol-system"];
43
- if (symbolSystem) {
44
- for (const [prefix, def] of Object.entries(symbolSystem)) {
45
- const examples = def.examples?.slice(0, 2).join(", ") || "";
46
- lines.push(`| \`${prefix}\` | ${def.name} | ${def.owner} | ${examples} |`);
47
- }
48
- }
49
- lines.push("");
50
- lines.push("### Symbol Details");
51
- lines.push("");
52
- if (symbolSystem) {
53
- for (const [prefix, def] of Object.entries(symbolSystem)) {
54
- lines.push(`- **\`${prefix}\` ${def.name}** (${def.owner}): ${def.description}`);
55
- }
56
- }
57
- lines.push("");
58
- if (config.states && Object.keys(config.states).length > 0) {
59
- lines.push("## Defined States");
60
- lines.push("");
61
- for (const [category, states] of Object.entries(config.states)) {
62
- if (typeof states === "object" && states !== null) {
63
- for (const [stateName, stateValue] of Object.entries(states)) {
64
- const description = getStateDescription(stateValue);
65
- lines.push(`- \`%${category}.${stateName}\` - ${description}`);
66
- }
67
- }
68
- }
69
- lines.push("");
70
- }
71
- if (config["agent-guidelines"]?.["update-rules"]?.length) {
72
- lines.push("## When to Update Paradigm Files");
73
- lines.push("");
74
- for (const rule of config["agent-guidelines"]["update-rules"]) {
75
- lines.push(`- ${rule}`);
76
- }
77
- lines.push("");
78
- }
79
- if (config.conventions?.length) {
80
- lines.push("## Conventions");
81
- lines.push("");
82
- for (const convention of config.conventions) {
83
- lines.push(`- ${convention}`);
84
- }
85
- lines.push("");
86
- }
87
- lines.push("## Paradigm Commands");
88
- lines.push("");
89
- lines.push("| Command | Description |");
90
- lines.push("|---------|-------------|");
91
- lines.push("| `paradigm init` | Initialize Paradigm in a project |");
92
- lines.push("| `paradigm status` | Show project symbol status |");
93
- lines.push("| `paradigm visualize` | Open the Dreamscape visualizer |");
94
- lines.push("| `paradigm purpose validate` | Validate .purpose files |");
95
- lines.push("| `paradigm gate validate` | Validate portal.yaml files |");
96
- lines.push("| `paradigm premise aggregate` | Aggregate all symbols |");
97
- lines.push("| `paradigm cursorrules` | Regenerate this .cursorrules file |");
98
- lines.push("");
99
- if (config["purpose-required"]?.length) {
100
- lines.push("## Purpose File Locations");
101
- lines.push("");
102
- lines.push("`.purpose` files should exist in:");
103
- for (const req of config["purpose-required"]) {
104
- lines.push(`- \`${req.pattern}\` (depth: ${req.depth})`);
105
- }
106
- lines.push("");
107
- }
108
- if (options.withScan) {
109
- lines.push("");
110
- lines.push(getScanProtocol({
111
- projectName,
112
- customInstructions: options.scanInstructions
113
- }));
114
- lines.push("");
115
- }
116
- lines.push("---");
117
- lines.push("*Generated by Paradigm. Update `.paradigm` config and run `paradigm cursorrules` to regenerate.*");
118
- return lines.join("\n");
119
- }
120
- function getStateDescription(state) {
121
- if (typeof state === "boolean") {
122
- return "Boolean state";
123
- }
124
- if (typeof state === "object" && state !== null) {
125
- const s = state;
126
- if (s.description) {
127
- return String(s.description);
128
- }
129
- if (s.type) {
130
- if (s.type === "enum" && Array.isArray(s.values)) {
131
- return `${s.type} (${s.values.join(", ")})`;
132
- }
133
- return String(s.type);
134
- }
135
- }
136
- return "State";
137
- }
138
- function writeCursorrules(rootDir, config, mode, projectName, options = {}) {
139
- if (mode === "skip") {
140
- return { success: true, path: "", message: "Skipped .cursorrules generation" };
141
- }
142
- const cursorrrulesPath = path.join(rootDir, ".cursorrules");
143
- const content = generateCursorrules(config, projectName, options);
144
- if (mode === "append" && fs.existsSync(cursorrrulesPath)) {
145
- let existing = fs.readFileSync(cursorrrulesPath, "utf8");
146
- const startIdx = existing.indexOf(START_MARKER);
147
- const endIdx = existing.indexOf(END_MARKER);
148
- const wrappedContent = `
149
- ${START_MARKER}
150
- ${content}
151
- ${END_MARKER}
152
- `;
153
- if (startIdx !== -1 && endIdx !== -1) {
154
- existing = existing.substring(0, startIdx) + wrappedContent + existing.substring(endIdx + END_MARKER.length);
155
- } else {
156
- existing = existing.trimEnd() + "\n" + wrappedContent;
157
- }
158
- fs.writeFileSync(cursorrrulesPath, existing, "utf8");
159
- return {
160
- success: true,
161
- path: cursorrrulesPath,
162
- message: "Updated .cursorrules with Paradigm section"
163
- };
164
- } else {
165
- fs.writeFileSync(cursorrrulesPath, content, "utf8");
166
- return {
167
- success: true,
168
- path: cursorrrulesPath,
169
- message: "Created .cursorrules"
170
- };
171
- }
172
- }
173
- function cursorrrulesExists(rootDir) {
174
- return fs.existsSync(path.join(rootDir, ".cursorrules"));
175
- }
176
- function paradigmConfigExists(rootDir) {
177
- return fs.existsSync(path.join(rootDir, ".paradigm"));
178
- }
179
-
180
- export {
181
- generateCursorrules,
182
- writeCursorrules,
183
- cursorrrulesExists,
184
- paradigmConfigExists
185
- };