@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,791 +0,0 @@
1
- #!/usr/bin/env node
2
- import {
3
- acknowledgeMessages,
4
- approveFileRequest,
5
- buildMessage,
6
- cleanStaleAgents,
7
- createFileRequest,
8
- createThread,
9
- denyFileRequest,
10
- discoverClaudeCodeSessions,
11
- garbageCollect,
12
- getMyIdentity,
13
- getThreadMessages,
14
- isAgentAsleep,
15
- isPathDenied,
16
- listAgents,
17
- listFileRequests,
18
- listThreads,
19
- loadThread,
20
- loadTrustConfig,
21
- markAgentPollTime,
22
- readInbox,
23
- registerAgent,
24
- resolveAgentIdentity,
25
- resolveThread,
26
- routeMessage,
27
- unregisterAgent
28
- } from "./chunk-S2HO5MLR.js";
29
- import "./chunk-PDX44BCA.js";
30
-
31
- // src/commands/symphony/index.ts
32
- import chalk from "chalk";
33
- import * as path from "path";
34
- import * as fs from "fs";
35
- import * as os from "os";
36
- async function symphonyJoinCommand(options) {
37
- const rootDir = process.cwd();
38
- if (options.remote) {
39
- await symphonyJoinRemote(rootDir, options.remote);
40
- return;
41
- }
42
- const identity = registerAgent(rootDir);
43
- console.log(chalk.green(`\u2713 Joined as ${chalk.bold(identity.id)}`));
44
- const sessions = discoverClaudeCodeSessions();
45
- const others = sessions.filter((s) => s.id !== identity.id);
46
- if (others.length > 0) {
47
- console.log(chalk.cyan(`
48
- Found ${others.length} other session${others.length !== 1 ? "s" : ""}:`));
49
- for (const s of others) {
50
- const status = isAgentAsleep(s) ? chalk.yellow("asleep") : chalk.green("awake");
51
- console.log(` ${chalk.white(s.id)} \u2014 ${s.name} [${status}]`);
52
- }
53
- } else {
54
- console.log(chalk.gray('\n No other sessions found. Open another terminal and run "paradigm symphony join".'));
55
- }
56
- console.log(chalk.gray(`
57
- Tip: Set up polling with: /loop 10s paradigm_symphony_poll`));
58
- }
59
- async function symphonyJoinRemote(rootDir, remote) {
60
- const { SymphonyRelay } = await import("./symphony-relay-UJYUXN65.js");
61
- let address;
62
- let embeddedCode;
63
- if (remote.includes("#")) {
64
- const parts = remote.split("#");
65
- address = parts[0];
66
- embeddedCode = parts[1];
67
- } else {
68
- address = remote;
69
- }
70
- if (!address.includes(":")) {
71
- address = `${address}:3939`;
72
- }
73
- let identity = getMyIdentity(rootDir);
74
- if (!identity) {
75
- identity = registerAgent(rootDir);
76
- }
77
- let code;
78
- if (embeddedCode) {
79
- code = embeddedCode;
80
- console.log(chalk.cyan(`
81
- Connecting to ${address} with embedded pairing code...`));
82
- } else {
83
- console.log(chalk.cyan(`
84
- Connecting to ${address}...`));
85
- console.log(chalk.white(" Enter the 6-digit pairing code shown on the host:"));
86
- code = await readLineFromStdin(" Code: ");
87
- code = code.trim();
88
- if (!/^\d{6}$/.test(code)) {
89
- console.log(chalk.red(" Invalid code. Must be 6 digits."));
90
- return;
91
- }
92
- }
93
- const relay = new SymphonyRelay({
94
- mode: "client",
95
- peerId: identity.id,
96
- events: {
97
- onPeerConnected: (peerId, displayName) => {
98
- console.log(chalk.green(` \u2713 Connected to ${chalk.bold(displayName)} (${peerId})`));
99
- },
100
- onPeerDisconnected: (peerId) => {
101
- console.log(chalk.yellow(` Peer ${peerId} disconnected. Reconnecting...`));
102
- },
103
- onMessageRelayed: (messageId, from, to) => {
104
- console.log(chalk.gray(` \u2190 Message ${messageId.slice(0, 8)} from ${from} \u2192 ${to}`));
105
- },
106
- onError: (err) => {
107
- console.log(chalk.red(` Error: ${err.message}`));
108
- }
109
- }
110
- });
111
- try {
112
- await relay.connectToServer(address, code);
113
- console.log(chalk.green("\n \u2713 Paired and connected!"));
114
- console.log(chalk.gray(" Messages from remote agents will appear in your inbox."));
115
- console.log(chalk.gray(" Press Ctrl+C to disconnect.\n"));
116
- process.on("SIGINT", () => {
117
- console.log(chalk.yellow("\n Disconnecting..."));
118
- relay.stop();
119
- process.exit(0);
120
- });
121
- await new Promise(() => {
122
- });
123
- } catch (err) {
124
- console.log(chalk.red(` Failed to connect: ${err.message}`));
125
- relay.stop();
126
- }
127
- }
128
- function readLineFromStdin(prompt) {
129
- return new Promise((resolve) => {
130
- process.stdout.write(prompt);
131
- let data = "";
132
- process.stdin.setEncoding("utf-8");
133
- process.stdin.resume();
134
- process.stdin.once("data", (chunk) => {
135
- data = chunk.toString();
136
- process.stdin.pause();
137
- resolve(data);
138
- });
139
- });
140
- }
141
- async function symphonyLeaveCommand() {
142
- const rootDir = process.cwd();
143
- const agentId = resolveAgentIdentity(rootDir);
144
- const success = unregisterAgent(agentId);
145
- if (success) {
146
- console.log(chalk.green(`\u2713 Left the score: ${agentId}`));
147
- } else {
148
- console.log(chalk.yellow(`No active part found for this project.`));
149
- }
150
- }
151
- async function symphonyWhoamiCommand() {
152
- const rootDir = process.cwd();
153
- const identity = getMyIdentity(rootDir);
154
- if (!identity) {
155
- console.log(chalk.yellow('Not joined. Run "paradigm symphony join" first.'));
156
- return;
157
- }
158
- const agents = listAgents();
159
- const others = agents.filter((a) => a.id !== identity.id);
160
- const threads = listThreads("active");
161
- const unread = readInbox(identity.id);
162
- console.log(chalk.cyan(`
163
- ${chalk.bold(identity.id)}`));
164
- console.log(chalk.gray(` Project: ${identity.project}`));
165
- console.log(chalk.gray(` Role: ${identity.role}`));
166
- console.log(chalk.gray(` PID: ${identity.pid}`));
167
- console.log(chalk.gray(` Started: ${identity.startedAt}`));
168
- if (identity.statusBlurb) {
169
- console.log(chalk.white(` Status: ${identity.statusBlurb}`));
170
- }
171
- console.log(`
172
- ${chalk.white(`${others.length} linked peer${others.length !== 1 ? "s" : ""}`)} \u2014 ${chalk.white(`${threads.length} active thread${threads.length !== 1 ? "s" : ""}`)} \u2014 ${chalk.white(`${unread.length} unread`)}`);
173
- }
174
- async function symphonyListCommand(options) {
175
- cleanStaleAgents();
176
- const agents = listAgents();
177
- const { loadPeers } = await import("./symphony-peers-2ZQYLRNI.js");
178
- const peers = loadPeers();
179
- const remoteAgents = [];
180
- for (const peer of peers) {
181
- if (peer.revoked) continue;
182
- for (const agent of peer.agents || []) {
183
- remoteAgents.push({ ...agent, peerId: peer.id });
184
- }
185
- }
186
- const totalCount = agents.length + remoteAgents.length;
187
- if (options.json) {
188
- console.log(JSON.stringify({
189
- local: agents,
190
- remote: remoteAgents
191
- }, null, 2));
192
- return;
193
- }
194
- if (totalCount === 0) {
195
- console.log(chalk.yellow('No agents joined. Run "paradigm symphony join" in each terminal.'));
196
- return;
197
- }
198
- console.log(chalk.cyan(`
199
- Symphony Agents (${totalCount})
200
- `));
201
- console.log(chalk.gray(` ${"AGENT ID".padEnd(30)} ${"PROJECT".padEnd(15)} ${"ROLE".padEnd(10)} STATUS`));
202
- console.log(chalk.gray(` ${"\u2500".repeat(30)} ${"\u2500".repeat(15)} ${"\u2500".repeat(10)} ${"\u2500".repeat(8)}`));
203
- for (const agent of agents) {
204
- const status = isAgentAsleep(agent) ? chalk.yellow("asleep") : chalk.green("awake");
205
- console.log(` ${chalk.white(agent.id.padEnd(30))} ${agent.project.padEnd(15)} ${agent.role.padEnd(10)} ${status}`);
206
- if (agent.statusBlurb) {
207
- console.log(` ${chalk.gray(` \u2514 ${agent.statusBlurb}`)}`);
208
- }
209
- }
210
- if (remoteAgents.length > 0) {
211
- console.log(chalk.gray(`
212
- ${"\u2500".repeat(65)}`));
213
- console.log(chalk.cyan(` Remote Agents (${remoteAgents.length})
214
- `));
215
- for (const agent of remoteAgents) {
216
- const status = agent.status === "awake" ? chalk.green("awake") : chalk.yellow("asleep");
217
- const tag = chalk.magenta(`(remote: ${agent.peerId})`);
218
- console.log(` ${chalk.white(agent.id.padEnd(30))} ${agent.project.padEnd(15)} ${agent.role.padEnd(10)} ${status} ${tag}`);
219
- }
220
- }
221
- console.log();
222
- }
223
- async function symphonySendCommand(messageText, options) {
224
- const rootDir = process.cwd();
225
- let identity = getMyIdentity(rootDir);
226
- if (!identity) {
227
- identity = registerAgent(rootDir);
228
- console.log(chalk.gray(`Auto-joined as ${identity.id}`));
229
- }
230
- const sender = {
231
- id: identity.id,
232
- name: identity.name,
233
- type: "human",
234
- // CLI notes come from the human
235
- project: identity.project,
236
- role: identity.role
237
- };
238
- let recipients;
239
- if (options.to) {
240
- recipients = [{ id: options.to, name: options.to, type: "agent" }];
241
- }
242
- let threadRoot = options.thread;
243
- if (!threadRoot) {
244
- const topic = messageText.length > 60 ? messageText.slice(0, 60) + "..." : messageText;
245
- const thread = createThread(topic, sender);
246
- threadRoot = thread.id;
247
- }
248
- const message = buildMessage({
249
- sender,
250
- recipients,
251
- intent: "context",
252
- text: messageText,
253
- threadRoot
254
- });
255
- const deliveryCount = routeMessage(message);
256
- console.log(chalk.green(`\u2713 Sent to ${deliveryCount} agent${deliveryCount !== 1 ? "s" : ""}`));
257
- console.log(chalk.gray(` Thread: ${threadRoot}`));
258
- console.log(chalk.gray(` Note: ${message.id}`));
259
- }
260
- async function symphonyReadCommand() {
261
- const rootDir = process.cwd();
262
- const identity = getMyIdentity(rootDir);
263
- if (!identity) {
264
- console.log(chalk.yellow('Not joined. Run "paradigm symphony join" first.'));
265
- return;
266
- }
267
- markAgentPollTime(identity.id);
268
- const messages = readInbox(identity.id);
269
- if (messages.length === 0) {
270
- console.log(chalk.gray("\n No unread notes.\n"));
271
- return;
272
- }
273
- const byThread = /* @__PURE__ */ new Map();
274
- for (const msg of messages) {
275
- const tid = msg.threadRoot || "direct";
276
- if (!byThread.has(tid)) byThread.set(tid, []);
277
- byThread.get(tid).push(msg);
278
- }
279
- console.log(chalk.cyan(`
280
- ${messages.length} unread note${messages.length !== 1 ? "s" : ""}
281
- `));
282
- for (const [threadId, msgs] of byThread) {
283
- let threadLabel = threadId;
284
- if (threadId !== "direct") {
285
- const thread = loadThread(threadId);
286
- if (thread) threadLabel = `${thread.topic} (${threadId})`;
287
- }
288
- console.log(chalk.white(` \u250C\u2500 ${threadLabel}`));
289
- for (let i = 0; i < msgs.length; i++) {
290
- const msg = msgs[i];
291
- const isLast = i === msgs.length - 1;
292
- const prefix = isLast ? " \u2514\u2500" : " \u251C\u2500";
293
- const time = new Date(msg.timestamp).toLocaleTimeString(void 0, { hour: "numeric", minute: "2-digit" });
294
- console.log(`${prefix} ${chalk.cyan(msg.sender.name)} ${chalk.gray(`[${msg.intent}]`)} ${chalk.gray(time)}`);
295
- const textLines = msg.content.text.split("\n");
296
- const indent = isLast ? " " : " \u2502 ";
297
- for (const line of textLines) {
298
- console.log(`${indent}${line}`);
299
- }
300
- if (msg.symbols.length > 0) {
301
- console.log(`${indent}${chalk.gray(`Symbols: ${msg.symbols.join(", ")}`)}`);
302
- }
303
- }
304
- console.log();
305
- }
306
- const lastId = messages[messages.length - 1].id;
307
- acknowledgeMessages(identity.id, lastId);
308
- garbageCollect(identity.id);
309
- }
310
- async function symphonyThreadsCommand(options) {
311
- const threads = listThreads();
312
- if (options.json) {
313
- console.log(JSON.stringify(threads, null, 2));
314
- return;
315
- }
316
- if (threads.length === 0) {
317
- console.log(chalk.gray("\n No threads.\n"));
318
- return;
319
- }
320
- console.log(chalk.cyan(`
321
- Threads (${threads.length})
322
- `));
323
- console.log(chalk.gray(` ${"ID".padEnd(14)} ${"TOPIC".padEnd(35)} ${"MSGS".padEnd(6)} ${"STATUS".padEnd(10)} LAST ACTIVITY`));
324
- console.log(chalk.gray(` ${"\u2500".repeat(14)} ${"\u2500".repeat(35)} ${"\u2500".repeat(6)} ${"\u2500".repeat(10)} ${"\u2500".repeat(20)}`));
325
- for (const thread of threads) {
326
- const topic = thread.topic.length > 33 ? thread.topic.slice(0, 33) + ".." : thread.topic;
327
- const status = thread.status === "active" ? chalk.green("active") : chalk.gray("resolved");
328
- const lastAct = new Date(thread.lastActivity).toLocaleString(void 0, {
329
- month: "short",
330
- day: "numeric",
331
- hour: "numeric",
332
- minute: "2-digit"
333
- });
334
- console.log(` ${chalk.white(thread.id.padEnd(14))} ${topic.padEnd(35)} ${String(thread.messageCount).padEnd(6)} ${status.padEnd(10)} ${chalk.gray(lastAct)}`);
335
- }
336
- console.log();
337
- }
338
- async function symphonyThreadCommand(threadId) {
339
- const thread = loadThread(threadId);
340
- if (!thread) {
341
- console.log(chalk.red(`Thread not found: ${threadId}`));
342
- return;
343
- }
344
- const messages = getThreadMessages(threadId);
345
- console.log(chalk.cyan(`
346
- Thread: ${thread.topic}`));
347
- console.log(chalk.gray(` ID: ${thread.id} | Status: ${thread.status} | Notes: ${thread.messageCount}`));
348
- console.log(chalk.gray(` Participants: ${thread.participants.map((p) => p.name).join(", ")}`));
349
- if (thread.decision) {
350
- console.log(chalk.green(` Decision: ${thread.decision}`));
351
- }
352
- console.log(chalk.gray(`
353
- ${"\u2500".repeat(60)}
354
- `));
355
- for (const msg of messages) {
356
- const time = new Date(msg.timestamp).toLocaleString(void 0, {
357
- month: "short",
358
- day: "numeric",
359
- hour: "numeric",
360
- minute: "2-digit"
361
- });
362
- console.log(` ${chalk.cyan(msg.sender.name)} ${chalk.gray(`[${msg.intent}]`)} ${chalk.gray(time)}`);
363
- const textLines = msg.content.text.split("\n");
364
- for (const line of textLines) {
365
- console.log(` ${line}`);
366
- }
367
- if (msg.symbols.length > 0) {
368
- console.log(` ${chalk.gray(`Symbols: ${msg.symbols.join(", ")}`)}`);
369
- }
370
- if (msg.content.decision) {
371
- console.log(` ${chalk.green(`Decision: ${msg.content.decision}`)}`);
372
- }
373
- console.log();
374
- }
375
- }
376
- async function symphonyResolveCommand(threadId, options) {
377
- const thread = loadThread(threadId);
378
- if (!thread) {
379
- console.log(chalk.red(`Thread not found: ${threadId}`));
380
- return;
381
- }
382
- const success = resolveThread(threadId, options.decision);
383
- if (success) {
384
- console.log(chalk.green(`\u2713 Thread resolved: ${thread.topic}`));
385
- if (options.decision) {
386
- console.log(chalk.gray(` Decision: ${options.decision}`));
387
- }
388
- console.log(chalk.gray(` Tip: Record this as lore with "paradigm lore record --title 'Thread: ${thread.topic}'"`));
389
- } else {
390
- console.log(chalk.red("Failed to resolve thread."));
391
- }
392
- }
393
- async function symphonyStatusCommand(options) {
394
- cleanStaleAgents();
395
- const rootDir = process.cwd();
396
- const identity = getMyIdentity(rootDir);
397
- const agents = listAgents();
398
- const threads = listThreads("active");
399
- const pendingRequests = listFileRequests("pending");
400
- const unread = identity ? readInbox(identity.id) : [];
401
- const { loadPeers } = await import("./symphony-peers-2ZQYLRNI.js");
402
- const peers = loadPeers();
403
- const activePeers = peers.filter((p) => !p.revoked);
404
- if (options.json) {
405
- console.log(JSON.stringify({
406
- identity: identity ? { id: identity.id, project: identity.project, role: identity.role } : null,
407
- agents: agents.map((a) => ({ id: a.id, status: isAgentAsleep(a) ? "asleep" : "awake", statusBlurb: a.statusBlurb })),
408
- peers: activePeers.map((p) => ({ id: p.id, address: p.address, agents: p.agents?.length ?? 0, lastSeen: p.lastSeen })),
409
- activeThreads: threads.length,
410
- unreadMessages: unread.length,
411
- pendingFileRequests: pendingRequests.length
412
- }, null, 2));
413
- return;
414
- }
415
- console.log(chalk.cyan("\n Symphony Status\n"));
416
- if (identity) {
417
- console.log(` ${chalk.white("Identity:")} ${identity.id}`);
418
- } else {
419
- console.log(` ${chalk.yellow("Not joined.")} Run "paradigm symphony join" to join.`);
420
- }
421
- const awake = agents.filter((a) => !isAgentAsleep(a)).length;
422
- console.log(` ${chalk.white("Agents:")} ${agents.length} joined (${awake} awake)`);
423
- for (const a of agents) {
424
- const st = isAgentAsleep(a) ? chalk.yellow("asleep") : chalk.green("awake");
425
- const blurb = a.statusBlurb ? chalk.gray(` \u2014 ${a.statusBlurb}`) : "";
426
- console.log(` ${chalk.white(a.id)} [${st}]${blurb}`);
427
- }
428
- if (activePeers.length > 0) {
429
- const totalRemoteAgents = activePeers.reduce((sum, p) => sum + (p.agents?.length ?? 0), 0);
430
- console.log(` ${chalk.white("Peers:")} ${activePeers.length} connected (${totalRemoteAgents} remote agents)`);
431
- for (const p of activePeers) {
432
- const agentCount = p.agents?.length ?? 0;
433
- console.log(` ${chalk.white(p.id)} at ${p.address} (${agentCount} agent${agentCount !== 1 ? "s" : ""})`);
434
- }
435
- } else {
436
- console.log(` ${chalk.white("Peers:")} ${chalk.gray('none (run "paradigm symphony serve" to accept connections)')}`);
437
- }
438
- console.log(` ${chalk.white("Threads:")} ${threads.length} active`);
439
- console.log(` ${chalk.white("Unread:")} ${unread.length} note${unread.length !== 1 ? "s" : ""}`);
440
- console.log(` ${chalk.white("File Requests:")} ${pendingRequests.length} pending`);
441
- console.log();
442
- }
443
- async function symphonyServeCommand(options) {
444
- const port = parseInt(options.port || "3939", 10);
445
- const rootDir = process.cwd();
446
- const { SymphonyRelay } = await import("./symphony-relay-UJYUXN65.js");
447
- let identity = getMyIdentity(rootDir);
448
- if (!identity) {
449
- identity = registerAgent(rootDir);
450
- }
451
- console.log(chalk.cyan("\n Starting Symphony relay server...\n"));
452
- const relay = new SymphonyRelay({
453
- mode: "server",
454
- peerId: identity.id,
455
- port,
456
- events: {
457
- onPeerConnected: (peerId, displayName) => {
458
- console.log(chalk.green(` \u2713 Peer connected: ${chalk.bold(displayName)} (${peerId})`));
459
- const remoteAgents = relay.getRemoteAgents();
460
- if (remoteAgents.length > 0) {
461
- console.log(chalk.gray(` Remote agents: ${remoteAgents.map((a) => a.id).join(", ")}`));
462
- }
463
- },
464
- onPeerDisconnected: (peerId) => {
465
- console.log(chalk.yellow(` Peer disconnected: ${peerId}`));
466
- },
467
- onPeerAuthFailed: (address, reason) => {
468
- console.log(chalk.red(` Auth failed from ${address}: ${reason}`));
469
- },
470
- onMessageRelayed: (messageId, from, to) => {
471
- console.log(chalk.gray(` \u2194 Relayed ${messageId.slice(0, 8)} from ${from} to ${to}`));
472
- },
473
- onError: (err) => {
474
- console.log(chalk.red(` Error: ${err.message}`));
475
- }
476
- }
477
- });
478
- try {
479
- const pairing = await relay.startServer();
480
- const localIp = getLocalIpAddress();
481
- console.log(chalk.green(` \u2713 Symphony relay listening on port ${port}`));
482
- console.log();
483
- console.log(chalk.white(" Pairing Code:"));
484
- console.log();
485
- console.log(chalk.bold.cyan(` ${pairing.code.slice(0, 3)} ${pairing.code.slice(3)}`));
486
- console.log();
487
- console.log(chalk.gray(" Share this code with the person connecting."));
488
- console.log(chalk.gray(` Code rotates every 5 minutes.
489
- `));
490
- console.log(chalk.white(" LAN connect:"));
491
- console.log(chalk.gray(` paradigm symphony join --remote ${localIp}:${port}`));
492
- if (options.public) {
493
- const connectionString = `${localIp}:${port}#${pairing.code}`;
494
- console.log();
495
- console.log(chalk.white(" Internet connect (connection string):"));
496
- console.log(chalk.cyan(` paradigm symphony join --remote ${connectionString}`));
497
- console.log(chalk.gray(" (Requires port 3939 reachable: port forward, VPN, or SSH tunnel)"));
498
- }
499
- console.log(chalk.gray("\n Press Ctrl+C to stop.\n"));
500
- const rotateInterval = setInterval(() => {
501
- const newPairing = relay.rotatePairingCode();
502
- console.log(chalk.cyan(` Code rotated: ${newPairing.code.slice(0, 3)} ${newPairing.code.slice(3)}`));
503
- }, 5 * 60 * 1e3);
504
- process.on("SIGINT", () => {
505
- console.log(chalk.yellow("\n Shutting down relay..."));
506
- clearInterval(rotateInterval);
507
- relay.stop();
508
- process.exit(0);
509
- });
510
- await new Promise(() => {
511
- });
512
- } catch (err) {
513
- console.log(chalk.red(` Failed to start server: ${err.message}`));
514
- relay.stop();
515
- }
516
- }
517
- function getLocalIpAddress() {
518
- const interfaces = os.networkInterfaces();
519
- for (const name of Object.keys(interfaces)) {
520
- for (const iface of interfaces[name] || []) {
521
- if (iface.family === "IPv4" && !iface.internal) {
522
- return iface.address;
523
- }
524
- }
525
- }
526
- return "127.0.0.1";
527
- }
528
- async function symphonyRequestCommand(file, options) {
529
- const rootDir = process.cwd();
530
- let identity = getMyIdentity(rootDir);
531
- if (!identity) {
532
- identity = registerAgent(rootDir);
533
- }
534
- const from = options.from;
535
- const reason = options.reason || "Needed for current task";
536
- if (!from) {
537
- console.log(chalk.red("--from is required. Specify which agent to request from."));
538
- const agents = listAgents().filter((a) => a.id !== identity.id);
539
- if (agents.length > 0) {
540
- console.log(chalk.gray("\nAvailable agents:"));
541
- for (const a of agents) {
542
- console.log(chalk.gray(` ${a.id}`));
543
- }
544
- }
545
- return;
546
- }
547
- const trust = loadTrustConfig();
548
- if (isPathDenied(file, trust)) {
549
- console.log(chalk.red(`\u2717 "${file}" is on the hard-deny list and cannot be requested.`));
550
- return;
551
- }
552
- const record = createFileRequest({
553
- filePath: file,
554
- requester: {
555
- id: identity.id,
556
- name: identity.name,
557
- type: "agent",
558
- project: identity.project,
559
- role: identity.role
560
- },
561
- reason
562
- });
563
- const msg = buildMessage({
564
- sender: {
565
- id: identity.id,
566
- name: identity.name,
567
- type: "agent",
568
- project: identity.project,
569
- role: identity.role
570
- },
571
- recipients: [{ id: from, name: from, type: "agent" }],
572
- intent: "fileRequest",
573
- text: `File request: ${file}
574
- Reason: ${reason}`,
575
- symbols: []
576
- });
577
- routeMessage(msg);
578
- console.log(chalk.green(`\u2713 File request created: ${record.request.requestId}`));
579
- console.log(chalk.gray(` File: ${file}`));
580
- console.log(chalk.gray(` From: ${from}`));
581
- console.log(chalk.gray(` Reason: ${reason}`));
582
- console.log(chalk.gray(`
583
- The owning agent's human must approve with:`));
584
- console.log(chalk.white(` paradigm symphony approve ${record.request.requestId}`));
585
- }
586
- async function symphonyRequestsCommand() {
587
- const requests = listFileRequests("pending");
588
- if (requests.length === 0) {
589
- console.log(chalk.gray("\n No pending file requests.\n"));
590
- return;
591
- }
592
- console.log(chalk.cyan(`
593
- Pending File Requests (${requests.length})
594
- `));
595
- for (const req of requests) {
596
- const age = Date.now() - new Date(req.createdAt).getTime();
597
- const ageMin = Math.round(age / 6e4);
598
- console.log(` ${chalk.white(req.request.requestId)}`);
599
- console.log(` File: ${req.request.filePath}`);
600
- console.log(` From: ${req.request.requester.name} (${req.request.requester.id})`);
601
- console.log(` Reason: ${req.request.reason}`);
602
- console.log(chalk.gray(` ${ageMin}m ago`));
603
- console.log(chalk.gray(` \u2192 paradigm symphony approve ${req.request.requestId}`));
604
- console.log(chalk.gray(` \u2192 paradigm symphony deny ${req.request.requestId}`));
605
- console.log();
606
- }
607
- }
608
- async function symphonyApproveCommand(requestId, options) {
609
- const rootDir = process.cwd();
610
- const result = approveFileRequest(requestId, rootDir, options.redact);
611
- if (!result.success) {
612
- console.log(chalk.red(`\u2717 ${result.error}`));
613
- return;
614
- }
615
- const label = options.redact ? "approved (redacted)" : "approved";
616
- console.log(chalk.green(`\u2713 File request ${label}`));
617
- console.log(chalk.gray(` File: ${result.delivery?.filePath}`));
618
- console.log(chalk.gray(` Size: ${result.delivery?.size} bytes`));
619
- console.log(chalk.gray(` SHA-256: ${result.delivery?.hash?.slice(0, 16)}...`));
620
- }
621
- async function symphonyDenyCommand(requestId, options) {
622
- const success = denyFileRequest(requestId, options.reason);
623
- if (success) {
624
- console.log(chalk.green(`\u2713 File request denied: ${requestId}`));
625
- if (options.reason) {
626
- console.log(chalk.gray(` Reason: ${options.reason}`));
627
- }
628
- } else {
629
- console.log(chalk.red(`\u2717 File request not found or already resolved: ${requestId}`));
630
- }
631
- }
632
- var INTENT_COLORS = {
633
- question: chalk.blue,
634
- context: chalk.gray,
635
- clarification: chalk.blue,
636
- proposal: chalk.cyan,
637
- verification: chalk.blue,
638
- action: chalk.cyan,
639
- decision: chalk.yellow,
640
- alert: chalk.red,
641
- approval: chalk.green,
642
- rejection: chalk.red,
643
- reference: chalk.gray,
644
- handoff: chalk.magenta,
645
- fileRequest: chalk.green,
646
- fileApproved: chalk.green,
647
- fileDenied: chalk.red,
648
- fileDelivery: chalk.green
649
- };
650
- function formatWatchMessage(msg) {
651
- const time = new Date(msg.timestamp).toLocaleTimeString(void 0, {
652
- hour: "numeric",
653
- minute: "2-digit",
654
- second: "2-digit"
655
- });
656
- const colorFn = INTENT_COLORS[msg.intent] || chalk.white;
657
- const intentLabel = colorFn(`[${msg.intent}]`);
658
- const sender = chalk.cyan(msg.sender.name);
659
- const threadLabel = msg.threadRoot ? chalk.gray(` (${msg.threadRoot})`) : "";
660
- const lines = [];
661
- lines.push(` ${chalk.gray(time)} ${sender} ${intentLabel}${threadLabel}`);
662
- const textLines = msg.content.text.split("\n");
663
- for (const line of textLines) {
664
- lines.push(` ${line}`);
665
- }
666
- if (msg.symbols.length > 0) {
667
- lines.push(` ${chalk.gray(`Symbols: ${msg.symbols.join(", ")}`)}`);
668
- }
669
- if (msg.content.decision) {
670
- lines.push(` ${chalk.yellow(`Decision: ${msg.content.decision}`)}`);
671
- }
672
- if (msg.content.diff) {
673
- lines.push(` ${chalk.gray("[diff attached]")}`);
674
- }
675
- return lines.join("\n");
676
- }
677
- async function symphonyWatchCommand(options) {
678
- const rootDir = process.cwd();
679
- let identity = getMyIdentity(rootDir);
680
- if (!identity) {
681
- identity = registerAgent(rootDir);
682
- console.log(chalk.gray(`Auto-joined as ${identity.id}`));
683
- }
684
- const intervalMs = parseInt(options.interval || "2000", 10);
685
- const threadFilter = options.thread;
686
- const quiet = options.quiet;
687
- const scoreDir = path.join(os.homedir(), ".paradigm", "score");
688
- const inboxPath = path.join(scoreDir, "agents", ...identity.id.split("/"), "inbox.jsonl");
689
- let lastLineCount = 0;
690
- let lastSize = 0;
691
- if (fs.existsSync(inboxPath)) {
692
- const content = fs.readFileSync(inboxPath, "utf-8");
693
- lastLineCount = content.split("\n").filter((l) => l.trim().length > 0).length;
694
- lastSize = fs.statSync(inboxPath).size;
695
- }
696
- if (!quiet) {
697
- console.log(chalk.cyan("\n Symphony Watch"));
698
- console.log(chalk.gray(` Agent: ${identity.id}`));
699
- console.log(chalk.gray(` Inbox: ${inboxPath}`));
700
- console.log(chalk.gray(` Poll: ${intervalMs}ms`));
701
- if (threadFilter) {
702
- console.log(chalk.gray(` Filter: thread ${threadFilter}`));
703
- }
704
- console.log(chalk.gray(` Press Ctrl+C to stop
705
- `));
706
- console.log(chalk.gray(` ${"\u2500".repeat(60)}
707
- `));
708
- }
709
- const threadsDir = path.join(scoreDir, "threads");
710
- let knownThreads = /* @__PURE__ */ new Set();
711
- if (fs.existsSync(threadsDir)) {
712
- for (const f of fs.readdirSync(threadsDir)) {
713
- knownThreads.add(f);
714
- }
715
- }
716
- const poll = () => {
717
- try {
718
- if (fs.existsSync(inboxPath)) {
719
- const stat = fs.statSync(inboxPath);
720
- if (stat.size > lastSize) {
721
- const content = fs.readFileSync(inboxPath, "utf-8");
722
- const lines = content.split("\n").filter((l) => l.trim().length > 0);
723
- if (lines.length > lastLineCount) {
724
- const newLines = lines.slice(lastLineCount);
725
- for (const line of newLines) {
726
- try {
727
- const msg = JSON.parse(line);
728
- if (threadFilter && msg.threadRoot !== threadFilter) continue;
729
- console.log(formatWatchMessage(msg));
730
- console.log();
731
- } catch {
732
- }
733
- }
734
- lastLineCount = lines.length;
735
- }
736
- lastSize = stat.size;
737
- }
738
- }
739
- if (fs.existsSync(threadsDir)) {
740
- const currentFiles = fs.readdirSync(threadsDir);
741
- for (const f of currentFiles) {
742
- if (!knownThreads.has(f)) {
743
- knownThreads.add(f);
744
- try {
745
- const threadData = JSON.parse(
746
- fs.readFileSync(path.join(threadsDir, f), "utf-8")
747
- );
748
- if (!quiet) {
749
- console.log(` ${chalk.green("+")} ${chalk.white("New thread:")} ${threadData.topic || threadData.id}`);
750
- console.log(` ${chalk.gray(`by ${threadData.initiator?.name || "unknown"} \u2014 ${threadData.id}`)}`);
751
- console.log();
752
- }
753
- } catch {
754
- }
755
- }
756
- }
757
- }
758
- markAgentPollTime(identity.id);
759
- } catch {
760
- }
761
- };
762
- poll();
763
- const timer = setInterval(poll, intervalMs);
764
- process.on("SIGINT", () => {
765
- clearInterval(timer);
766
- if (!quiet) {
767
- console.log(chalk.gray("\n Watch stopped.\n"));
768
- }
769
- process.exit(0);
770
- });
771
- await new Promise(() => {
772
- });
773
- }
774
- export {
775
- symphonyApproveCommand,
776
- symphonyDenyCommand,
777
- symphonyJoinCommand,
778
- symphonyLeaveCommand,
779
- symphonyListCommand,
780
- symphonyReadCommand,
781
- symphonyRequestCommand,
782
- symphonyRequestsCommand,
783
- symphonyResolveCommand,
784
- symphonySendCommand,
785
- symphonyServeCommand,
786
- symphonyStatusCommand,
787
- symphonyThreadCommand,
788
- symphonyThreadsCommand,
789
- symphonyWatchCommand,
790
- symphonyWhoamiCommand
791
- };