@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.
- package/dist/accept-orchestration-IUAWQZUN.js +18 -0
- package/dist/add-P76GEMGF.js +8 -0
- package/dist/agent-UUTYOFTH.js +33 -0
- package/dist/agent-loader-EPXURMO7.js +2 -0
- package/dist/agent-loader-PYGPX6D2.js +2 -0
- package/dist/agent-state-KSQ3S7OB.js +2 -0
- package/dist/agents-suggest-HYTFMQD3.js +10 -0
- package/dist/aggregate-W66DM3GA.js +10 -0
- package/dist/ambient-HYZR42NX.js +35 -0
- package/dist/assess-UFPYEJKP.js +9 -0
- package/dist/auto-RHJXOZFL.js +14 -0
- package/dist/beacon-5QVYV5DF.js +13 -0
- package/dist/calibration-OLJYB5HN.js +7 -0
- package/dist/check-THVGY4R5.js +14 -0
- package/dist/chunk-22ISTMKI.js +31 -0
- package/dist/chunk-2QO33NYK.js +3 -0
- package/dist/chunk-33LKBMVK.js +134 -0
- package/dist/chunk-4QADCWPU.js +7 -0
- package/dist/chunk-4TXOVRWD.js +3 -0
- package/dist/chunk-4UJ4NIEQ.js +4 -0
- package/dist/chunk-4ZGGWZ32.js +3 -0
- package/dist/chunk-5TAVYPOV.js +2 -0
- package/dist/chunk-6EX37L4Q.js +8 -0
- package/dist/chunk-AD5TAD2A.js +5 -0
- package/dist/chunk-AGVAHVUA.js +2 -0
- package/dist/chunk-AO7ZSRME.js +13 -0
- package/dist/chunk-BFD3GFRK.js +2 -0
- package/dist/chunk-D34YFK4M.js +6 -0
- package/dist/chunk-DVZWCXB6.js +2 -0
- package/dist/chunk-EKZDFEJW.js +2 -0
- package/dist/chunk-ET5XJTSX.js +2 -0
- package/dist/chunk-FYDRENK7.js +3 -0
- package/dist/chunk-HMQ5BHP2.js +743 -0
- package/dist/chunk-HXKWL3VK.js +29 -0
- package/dist/chunk-IZSBGW6E.js +2 -0
- package/dist/chunk-J32OPJEX.js +2 -0
- package/dist/chunk-JBDMCRPP.js +7 -0
- package/dist/chunk-JIXHEBGK.js +7 -0
- package/dist/chunk-JNSJVCTU.js +2 -0
- package/dist/chunk-JQKKVAAN.js +2 -0
- package/dist/chunk-KLBH26PA.js +429 -0
- package/dist/chunk-L6K5HNDL.js +24 -0
- package/dist/chunk-LKAT7IAK.js +2 -0
- package/dist/chunk-M4UMM6DC.js +5 -0
- package/dist/chunk-NKYNHSA5.js +424 -0
- package/dist/chunk-NW6OKHE6.js +5 -0
- package/dist/chunk-NXRVR37G.js +60 -0
- package/dist/chunk-ODVKPZZ4.js +2 -0
- package/dist/chunk-PUBB7LIT.js +5 -0
- package/dist/chunk-Q2J542ST.js +2 -0
- package/dist/chunk-QGZRM6ZB.js +2 -0
- package/dist/chunk-QNZEG7IT.js +13 -0
- package/dist/chunk-QT2LKB3P.js +7 -0
- package/dist/chunk-RVRARWSY.js +9 -0
- package/dist/chunk-T6IDXUUA.js +2 -0
- package/dist/chunk-TYWB5IQJ.js +3 -0
- package/dist/chunk-UIKLE3WD.js +2 -0
- package/dist/chunk-V7K6CQVX.js +111 -0
- package/dist/chunk-VCKKJDLP.js +8 -0
- package/dist/chunk-VG7FN2TU.js +4 -0
- package/dist/chunk-W5IWDW4Y.js +16 -0
- package/dist/chunk-W7C6FFMO.js +8 -0
- package/dist/chunk-WESTEMIM.js +10 -0
- package/dist/chunk-WR6D3SC6.js +5 -0
- package/dist/chunk-WS2N27RX.js +3 -0
- package/dist/chunk-XMAV5AG6.js +2 -0
- package/dist/chunk-XROULIQN.js +2 -0
- package/dist/chunk-XUFYOXOU.js +3 -0
- package/dist/chunk-Y4XFVDZC.js +3 -0
- package/dist/chunk-Y6KXTQBG.js +2 -0
- package/dist/{chunk-GTR2TBIJ.js → chunk-Z2UZUCY6.js} +237 -1047
- package/dist/chunk-Z34K6GY2.js +8 -0
- package/dist/claude-4LR3LJQZ.js +13 -0
- package/dist/claude-cli-UP6HGH7C.js +6 -0
- package/dist/claude-code-RLJ4GX77.js +11 -0
- package/dist/claude-code-teams-R37HJY3Y.js +29 -0
- package/dist/commands-LMUD5L6R.js +455 -0
- package/dist/compliance-GZ7UAOG3.js +6 -0
- package/dist/conductor-Y5IXELTL.js +4 -0
- package/dist/config-schema-HR7LDEQ6.js +2 -0
- package/dist/constellation-CG7C4WFE.js +13 -0
- package/dist/context-audit-RSSRX6XC.js +6 -0
- package/dist/cost-IDNVMAEV.js +10 -0
- package/dist/cost-PK4KIF7R.js +2 -0
- package/dist/cursor-cli-QKF7Z6M2.js +4 -0
- package/dist/cursorrules-U5O4G5T4.js +14 -0
- package/dist/decision-loader-2XPZE4EZ.js +2 -0
- package/dist/delete-P5VULXR4.js +14 -0
- package/dist/diff-RTFUKJHF.js +9 -0
- package/dist/discipline-H7LDI6NT.js +2 -0
- package/dist/dist-3ZCH25SG.js +2 -0
- package/dist/dist-KGRCLBJP-2QAPFYNF.js +39 -0
- package/dist/dist-R3RWD35F.js +2 -0
- package/dist/dist-VGFSP3XM.js +2 -0
- package/dist/dist-VXCZWVVJ.js +2 -0
- package/dist/dist-W3XCATBJ.js +2 -0
- package/dist/docs-EDQ2STFK.js +2 -0
- package/dist/docs-RXPN6CK7.js +12 -0
- package/dist/doctor-2T2QL6VM.js +2 -0
- package/dist/drift-ILZE5BFJ.js +13 -0
- package/dist/echo-UPTQUEDU.js +46 -0
- package/dist/edit-GUU3HBVW.js +9 -0
- package/dist/event-Y3VXC2RV.js +3 -0
- package/dist/explain-files-3GPZUETV.js +4 -0
- package/dist/export-CV5KCTPS.js +2 -0
- package/dist/flow-S3RQ4YPY.js +11 -0
- package/dist/global-C44FW4G2.js +13 -0
- package/dist/graduate-3BBSC27A.js +5 -0
- package/dist/graph-CNDE5TAT.js +2 -0
- package/dist/graph-server-COZR5C3Z.js +14 -0
- package/dist/habits-4J2KRYUL.js +42 -0
- package/dist/history-UW454SDP.js +12 -0
- package/dist/hooks-XH52VGOU.js +2 -0
- package/dist/index.js +15 -1039
- package/dist/init-24MAQJFM.js +2 -0
- package/dist/integrity-UYDOOJDP.js +7 -0
- package/dist/integrity-checker-DHGMZQDG.js +2 -0
- package/dist/journal-loader-GLH7XFTK.js +2 -0
- package/dist/lint-IGKE6UPS.js +26 -0
- package/dist/list-5IUGP3ZB.js +7 -0
- package/dist/list-YKIQNKGB.js +6 -0
- package/dist/lore-loader-RVQI5GXL.js +2 -0
- package/dist/lore-loader-XY5MZRR2.js +2 -0
- package/dist/lore-server-FC2GMDLT.js +14 -0
- package/dist/manual-RXSPSFLL.js +20 -0
- package/dist/mcp.js +93 -20484
- package/dist/migrate-X5OMAFAQ.js +59 -0
- package/dist/migrate-assessments-GEI5WMI2.js +4 -0
- package/dist/model-discovery-HMB3YI4L.js +2 -0
- package/dist/nomination-engine-XF7TWPAP.js +2 -0
- package/dist/notebook-PE3JSYZI.js +11 -0
- package/dist/notebook-loader-CENTDDUJ.js +2 -0
- package/dist/orchestrate-35HBQ3O3.js +8 -0
- package/dist/peers-P2KXU7ZK.js +5 -0
- package/dist/persona-STQWZH5P.js +29 -0
- package/dist/pipeline-MZUITRVN.js +4 -0
- package/dist/platform-server-2KXHGHFV.js +25 -0
- package/dist/plugin-update-checker-M7PW434O.js +2 -0
- package/dist/portal-check-3JVNLOEP.js +8 -0
- package/dist/portal-compliance-2UG4VKWH.js +2 -0
- package/dist/probe-5L5BQDGE.js +6 -0
- package/dist/project-type-SURTOIG7.js +2 -0
- package/dist/promote-NJQDZBZA.js +8 -0
- package/dist/providers-4PXMWA7V.js +8 -0
- package/dist/quiz-FE5UGAY2.js +10 -0
- package/dist/record-YXPB34MY.js +6 -0
- package/dist/reindex-PGDQSM42.js +2 -0
- package/dist/remember-MJRNTXYS.js +14 -0
- package/dist/retag-N5XF3KXP.js +6 -0
- package/dist/review-6UAH6V3R.js +11 -0
- package/dist/review-77QI6VOC.js +6 -0
- package/dist/ripple-ZGDITCGB.js +10 -0
- package/dist/roster-FLRZ5J42.js +2 -0
- package/dist/sentinel-HYAZ3CO5.js +19 -0
- package/dist/sentinel-bridge-VR357PKL.js +2 -0
- package/dist/sentinel-mcp.js +38 -3808
- package/dist/sentinel.js +1 -34
- package/dist/serve-JE6UF5P2.js +8 -0
- package/dist/serve-L52ZUTU6.js +10 -0
- package/dist/serve-OY6XYL7F.js +12 -0
- package/dist/server-2MNROHF6.js +7 -0
- package/dist/server-4YNUIK4W.js +8 -0
- package/dist/session-tracker-SKOMBDOW.js +2 -0
- package/dist/session-work-log-3MNUDEZ6.js +2 -0
- package/dist/session-work-log-J2H5OZBR.js +2 -0
- package/dist/setup-3F5IK7MO.js +31 -0
- package/dist/setup-KPIMRZ4Q.js +2 -0
- package/dist/shift-6GCNH666.js +11 -0
- package/dist/show-BOAVWZPZ.js +7 -0
- package/dist/show-PJ5LFLIL.js +5 -0
- package/dist/snapshot-L2G56RPL.js +8 -0
- package/dist/spawn-UH5RENSE.js +12 -0
- package/dist/status-77M3SDIF.js +8 -0
- package/dist/status-A37ECYNJ.js +6 -0
- package/dist/summary-ZJLQ6KHB.js +7 -0
- package/dist/sweep-HU74OPVW.js +17 -0
- package/dist/switch-CTW4PDGI.js +17 -0
- package/dist/symphony-3QMBGCZY.js +2 -0
- package/dist/symphony-QI63XL62.js +53 -0
- package/dist/symphony-loader-XACVV2E3.js +2 -0
- package/dist/symphony-peers-U4KHMKGI.js +2 -0
- package/dist/symphony-peers-X5NGWXFP.js +2 -0
- package/dist/symphony-relay-5GY5JIPT.js +3 -0
- package/dist/sync-QRDSFETO.js +2 -0
- package/dist/sync-llms-HL5PPW3M.js +15 -0
- package/dist/task-loader-NZFDTUQ5.js +2 -0
- package/dist/team-WGERKGNP.js +2 -0
- package/dist/test-BQJMS4Y2.js +111 -0
- package/dist/thread-HFXK65D4.js +41 -0
- package/dist/timeline-K3ZFKJ3R.js +6 -0
- package/dist/triage-FCWOZASE.js +18 -0
- package/dist/tutorial-UC6YQMNN.js +305 -0
- package/dist/university-content/courses/.purpose +74 -5
- package/dist/university-content/courses/para-701.json +807 -0
- package/dist/university-content/plsat/.purpose +3 -2
- package/dist/university-ui/assets/{index-BjewBB6s.js → index-CGFJczb1.js} +2 -2
- package/dist/university-ui/assets/{index-BjewBB6s.js.map → index-CGFJczb1.js.map} +1 -1
- package/dist/university-ui/index.html +1 -1
- package/dist/upgrade-B4IOLZYK.js +53 -0
- package/dist/validate-C6SMKGYD.js +9 -0
- package/dist/validate-LSCDOLBO.js +13 -0
- package/dist/validate-VZXTJHGO.js +6 -0
- package/dist/watch-LRM5XD46.js +8 -0
- package/dist/watch-PZCCUP6K.js +9 -0
- package/dist/wisdom-XZ3QKPNP.js +7 -0
- package/dist/work-log-loader-DL5GZ2BQ.js +2 -0
- package/dist/workspace-2ODL5WLY.js +2 -0
- package/package.json +1 -1
- package/platform-ui/dist/assets/AmbientSection-DqQ2mfCO.js +1 -0
- package/platform-ui/dist/assets/{CanvasSection-DwPTRdIN.js → CanvasSection-DLW0s-Bu.js} +1 -1
- package/platform-ui/dist/assets/{DocsSection-BJc_ws4I.js → DocsSection-BQ9Hi51g.js} +1 -1
- package/platform-ui/dist/assets/{GitSection-DhqBo1xc.js → GitSection-QQeUX6o3.js} +1 -1
- package/platform-ui/dist/assets/{GraphSection-D9fhVnZ0.js → GraphSection-0c9C-w7K.js} +2 -2
- package/platform-ui/dist/assets/{GraphSection-BlgXTl53.css → GraphSection-Bbs2a8sC.css} +1 -1
- package/platform-ui/dist/assets/LoreSection--t56kCj2.js +1 -0
- package/platform-ui/dist/assets/LoreSection-qnmm3o4y.css +1 -0
- package/platform-ui/dist/assets/SentinelSection-C4OoME9U.js +1 -0
- package/platform-ui/dist/assets/{SymphonySection-BRoBaUSS.js → SymphonySection-B-rvsLxq.js} +1 -1
- package/platform-ui/dist/assets/TeamSection-CBFmNEEo.js +1 -0
- package/platform-ui/dist/assets/index-Bxp0TVaf.css +1 -0
- package/platform-ui/dist/assets/index-DPpOdAtC.js +57 -0
- package/platform-ui/dist/index.html +2 -2
- package/dist/accept-orchestration-UQLM7PTQ.js +0 -189
- package/dist/add-FZRKEGH4.js +0 -81
- package/dist/agent-WERIO2XV.js +0 -523
- package/dist/agent-loader-TFIANSF4.js +0 -44
- package/dist/agent-state-S5DAWPTF.js +0 -24
- package/dist/agents-suggest-DNSYJ6IA.js +0 -83
- package/dist/aggregate-H57K7PNV.js +0 -88
- package/dist/assess-4WVXZLZQ.js +0 -68
- package/dist/auto-QFS5NHQU.js +0 -504
- package/dist/beacon-KXZXYQHX.js +0 -251
- package/dist/calibration-V46G7JTY.js +0 -135
- package/dist/check-OWAIWV23.js +0 -175
- package/dist/chunk-2IO7JAG2.js +0 -148
- package/dist/chunk-2T6BTYBN.js +0 -712
- package/dist/chunk-36TKPM5Z.js +0 -400
- package/dist/chunk-45MUDW6E.js +0 -804
- package/dist/chunk-4BLYIB7J.js +0 -5701
- package/dist/chunk-4L3UTYQX.js +0 -677
- package/dist/chunk-4NCFWYGG.js +0 -110
- package/dist/chunk-54LTTQBH.js +0 -138
- package/dist/chunk-5EWAQHFY.js +0 -269
- package/dist/chunk-5JGJACDU.js +0 -37
- package/dist/chunk-5OUOLN6M.js +0 -659
- package/dist/chunk-5VKJBNJL.js +0 -444
- package/dist/chunk-6N3JTACN.js +0 -2260
- package/dist/chunk-6QC3YGB6.js +0 -114
- package/dist/chunk-7N7GSU6K.js +0 -34
- package/dist/chunk-ABVQGRF7.js +0 -268
- package/dist/chunk-CL7JSK52.js +0 -129
- package/dist/chunk-CSD7IHSN.js +0 -152
- package/dist/chunk-EDOAWN7J.js +0 -717
- package/dist/chunk-EKGMAM62.js +0 -525
- package/dist/chunk-EZ3GOCYC.js +0 -132
- package/dist/chunk-F3BCHPYT.js +0 -143
- package/dist/chunk-FKJUBQU3.js +0 -3081
- package/dist/chunk-GT5QGC2H.js +0 -253
- package/dist/chunk-GZDFVP2N.js +0 -540
- package/dist/chunk-IRKUEJVW.js +0 -405
- package/dist/chunk-J2JEQRT3.js +0 -164
- package/dist/chunk-JASGXLK3.js +0 -679
- package/dist/chunk-KVDYJLTC.js +0 -121
- package/dist/chunk-L27I3CPZ.js +0 -357
- package/dist/chunk-LHLIAYQ3.js +0 -185
- package/dist/chunk-MCMOGQMU.js +0 -145
- package/dist/chunk-NQKQG45G.js +0 -688
- package/dist/chunk-PBHIFAL4.js +0 -259
- package/dist/chunk-PDX44BCA.js +0 -11
- package/dist/chunk-PMXRGPRQ.js +0 -305
- package/dist/chunk-RAB5IKPR.js +0 -487
- package/dist/chunk-RJE5G7WO.js +0 -590
- package/dist/chunk-RTHA3XRE.js +0 -880
- package/dist/chunk-S2HO5MLR.js +0 -621
- package/dist/chunk-S3ORKP3V.js +0 -716
- package/dist/chunk-TAIJOFOE.js +0 -124
- package/dist/chunk-TXESEO7Y.js +0 -245
- package/dist/chunk-UPLDI7CN.js +0 -1334
- package/dist/chunk-VL67H5IC.js +0 -506
- package/dist/chunk-VPPK3SY4.js +0 -1136
- package/dist/chunk-YMDLDELF.js +0 -314
- package/dist/chunk-YO6DVTL7.js +0 -99
- package/dist/chunk-YRZ5RPEB.js +0 -1561
- package/dist/chunk-ZDHLG5VP.js +0 -5676
- package/dist/chunk-ZGUAAVMA.js +0 -756
- package/dist/chunk-ZSYVKSY6.js +0 -2602
- package/dist/claude-FRRWJSTJ.js +0 -362
- package/dist/claude-cli-XJLK2X4L.js +0 -276
- package/dist/claude-code-HTBA4XRB.js +0 -126
- package/dist/claude-code-teams-T4SP24MD.js +0 -199
- package/dist/commands-5N4ILTPH.js +0 -5859
- package/dist/conductor-CQVGTEQN.js +0 -161
- package/dist/config-schema-EA4XALGG.js +0 -154
- package/dist/constellation-A26CCGQS.js +0 -225
- package/dist/context-audit-RLO3ETRP.js +0 -682
- package/dist/cost-BGM32XJU.js +0 -93
- package/dist/cost-VI46A4XL.js +0 -174
- package/dist/cursor-cli-JVEZGHWQ.js +0 -269
- package/dist/cursorrules-HLIKJJZT.js +0 -84
- package/dist/decision-loader-WWCLIQPJ.js +0 -20
- package/dist/delete-KBRPQLPC.js +0 -56
- package/dist/diff-D4X53HAC.js +0 -126
- package/dist/discipline-FA4OZXIS.js +0 -24
- package/dist/dist-34NA5RS5.js +0 -74
- package/dist/dist-5QE2BB2B-5S3T6Y3T.js +0 -6919
- package/dist/dist-77JDTVAY.js +0 -62
- package/dist/dist-OGTSAZ55.js +0 -1358
- package/dist/dist-QK4SQAK7.js +0 -64
- package/dist/dist-TA6LSC2Q.js +0 -20
- package/dist/docs-PBZB7LYP.js +0 -89
- package/dist/docs-QIYKO3BR.js +0 -155
- package/dist/doctor-ULBOHEIC.js +0 -11
- package/dist/drift-R5NRKFHI.js +0 -251
- package/dist/echo-O2LY7CC2.js +0 -248
- package/dist/edit-R2HNLMOG.js +0 -63
- package/dist/event-25OJKDCE.js +0 -31
- package/dist/export-IWVL7XLF.js +0 -38
- package/dist/flow-CRRVV3O3.js +0 -185
- package/dist/global-3NG5JXUB.js +0 -136
- package/dist/graduate-USAWGBJM.js +0 -160
- package/dist/graph-VHUMAAS6.js +0 -12
- package/dist/graph-server-YL22VBBN.js +0 -116
- package/dist/habits-OL5NGPXO.js +0 -1405
- package/dist/history-WOWC573W.js +0 -277
- package/dist/hooks-HFWSCGPV.js +0 -12
- package/dist/integrity-IHO4FZTS.js +0 -194
- package/dist/integrity-checker-PSKJA5SB.js +0 -12
- package/dist/journal-loader-5EYSBFFY.js +0 -18
- package/dist/lint-K6CJGGPH.js +0 -456
- package/dist/list-4YK7QKFF.js +0 -57
- package/dist/list-ENR7Q4CR.js +0 -56
- package/dist/lore-loader-7NO6N6FT.js +0 -26
- package/dist/lore-server-UNJY5KC3.js +0 -118
- package/dist/manual-G6FISID5.js +0 -204
- package/dist/migrate-LS45DNEV.js +0 -889
- package/dist/migrate-assessments-RGH4O6IX.js +0 -97
- package/dist/model-discovery-D2H3VBGC.js +0 -8
- package/dist/nomination-engine-RV5CNO5B.js +0 -42
- package/dist/notebook-YWIYGEHV.js +0 -155
- package/dist/orchestrate-JLILBBJE.js +0 -324
- package/dist/peers-DEOUIZM6.js +0 -82
- package/dist/persona-UHAHIVST.js +0 -390
- package/dist/pipeline-L4HCSBGN.js +0 -263
- package/dist/platform-server-H5YO3DQD.js +0 -1475
- package/dist/plugin-update-checker-KRRSGXMV.js +0 -12
- package/dist/portal-check-NPYGII2D.js +0 -42
- package/dist/portal-compliance-J7DGAPFX.js +0 -18
- package/dist/probe-MHL5HQZ2.js +0 -167
- package/dist/promote-F6ZYZZAL.js +0 -182
- package/dist/providers-GK7PB2OL.js +0 -104
- package/dist/quiz-M66SC7F7.js +0 -99
- package/dist/record-RA4WR2BO.js +0 -49
- package/dist/reindex-5LTD53ZC.js +0 -16
- package/dist/remember-HBWJ655S.js +0 -77
- package/dist/retag-3OLCVDEQ.js +0 -62
- package/dist/review-27ATYTD2.js +0 -33
- package/dist/review-57QMURZV.js +0 -334
- package/dist/ripple-JPBXP5I3.js +0 -215
- package/dist/sentinel-4XIG4STA.js +0 -63
- package/dist/sentinel-bridge-MDUXTQRL.js +0 -109
- package/dist/serve-CAH3PHE7.js +0 -33
- package/dist/serve-INL7SNBK.js +0 -36
- package/dist/serve-KBSE36PL.js +0 -49
- package/dist/server-54SKYFFY.js +0 -1647
- package/dist/server-XUOIO7E6.js +0 -338
- package/dist/session-tracker-C4BMD5WG.js +0 -13
- package/dist/session-work-log-MZ47OAPB.js +0 -20
- package/dist/setup-EDS27WUR.js +0 -25
- package/dist/setup-KO5AFC4K.js +0 -296
- package/dist/shift-D2JOHHBF.js +0 -668
- package/dist/show-5PV5KFJE.js +0 -176
- package/dist/show-NQKYX6WQ.js +0 -82
- package/dist/snapshot-BK4RBPCG.js +0 -62
- package/dist/spawn-RCHNXDHE.js +0 -196
- package/dist/status-WGIAQODY.js +0 -71
- package/dist/summary-NIRABMF5.js +0 -140
- package/dist/sweep-QMHNSIY5.js +0 -934
- package/dist/switch-6EJPZDIA.js +0 -232
- package/dist/symphony-4OCY36AI.js +0 -791
- package/dist/symphony-B75X2MME.js +0 -326
- package/dist/symphony-loader-UZGON56V.js +0 -90
- package/dist/symphony-peers-2ZQYLRNI.js +0 -34
- package/dist/symphony-peers-OL7F6M5S.js +0 -121
- package/dist/symphony-relay-UJYUXN65.js +0 -710
- package/dist/sync-VEHUH4OA.js +0 -11
- package/dist/sync-llms-YHCFIE6X.js +0 -166
- package/dist/task-loader-LDYWQSLM.js +0 -20
- package/dist/team-O5MIIFMA.js +0 -34
- package/dist/test-566CP5KC.js +0 -1017
- package/dist/thread-N754I4D5.js +0 -274
- package/dist/timeline-M3CICQFE.js +0 -112
- package/dist/triage-HHYGT3HY.js +0 -671
- package/dist/tutorial-KD22SUNO.js +0 -666
- package/dist/upgrade-H5PF32BW.js +0 -551
- package/dist/validate-CNKEKO6A.js +0 -134
- package/dist/validate-MB5ULIHS.js +0 -39
- package/dist/validate-QH3LADM6.js +0 -64
- package/dist/watch-2TKP5PVL.js +0 -199
- package/dist/watch-ZF4ML6CD.js +0 -111
- package/dist/wisdom-AATMGNFA.js +0 -319
- package/dist/work-log-loader-5L45XNYZ.js +0 -14
- package/dist/workspace-6E6OSRNU.js +0 -21
- package/platform-ui/dist/assets/AmbientSection-WtHfNedO.js +0 -1
- package/platform-ui/dist/assets/LoreSection-C3EixkjW.css +0 -1
- package/platform-ui/dist/assets/LoreSection-CwDDHrz9.js +0 -1
- package/platform-ui/dist/assets/SentinelSection-Cl7e5oZ6.js +0 -1
- package/platform-ui/dist/assets/TeamSection-CqSIMrKz.js +0 -1
- package/platform-ui/dist/assets/index-CfpZFjea.css +0 -1
- package/platform-ui/dist/assets/index-F0KL9xrN.js +0 -57
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
log
|
|
4
|
-
} from "./chunk-4NCFWYGG.js";
|
|
5
|
-
import "./chunk-PDX44BCA.js";
|
|
6
|
-
|
|
7
|
-
// src/commands/conductor.ts
|
|
8
|
-
import { execSync, spawn } from "child_process";
|
|
9
|
-
import * as fs from "fs";
|
|
10
|
-
import * as path from "path";
|
|
11
|
-
import * as os from "os";
|
|
12
|
-
import { fileURLToPath } from "url";
|
|
13
|
-
import chalk from "chalk";
|
|
14
|
-
var __filename = fileURLToPath(import.meta.url);
|
|
15
|
-
var __dirname = path.dirname(__filename);
|
|
16
|
-
var INSTALLED_BINARY = path.join(os.homedir(), ".paradigm", "conductor", "bin", "conductor");
|
|
17
|
-
async function conductorCommand(options) {
|
|
18
|
-
const cmdLog = log.command("conductor");
|
|
19
|
-
if (options.install) {
|
|
20
|
-
await installConductor(options, cmdLog);
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
23
|
-
const binaryPath = resolveBinary(options, cmdLog);
|
|
24
|
-
if (!binaryPath) {
|
|
25
|
-
return;
|
|
26
|
-
}
|
|
27
|
-
if (options.build) {
|
|
28
|
-
const conductorDir = findConductorDir();
|
|
29
|
-
if (conductorDir) {
|
|
30
|
-
buildFromSource(conductorDir, options, cmdLog);
|
|
31
|
-
const devBinary = path.join(conductorDir, ".build", "release", "conductor");
|
|
32
|
-
launchBinary(devBinary, cmdLog);
|
|
33
|
-
return;
|
|
34
|
-
} else {
|
|
35
|
-
cmdLog.error("--build requires the Paradigm monorepo");
|
|
36
|
-
console.log(chalk.gray(" Run from inside the a-paradigm repo, or use --install to update the global binary."));
|
|
37
|
-
process.exit(1);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
launchBinary(binaryPath, cmdLog);
|
|
41
|
-
}
|
|
42
|
-
function resolveBinary(options, cmdLog) {
|
|
43
|
-
if (fs.existsSync(INSTALLED_BINARY)) {
|
|
44
|
-
return INSTALLED_BINARY;
|
|
45
|
-
}
|
|
46
|
-
const conductorDir = findConductorDir();
|
|
47
|
-
if (conductorDir) {
|
|
48
|
-
const devBinary = path.join(conductorDir, ".build", "release", "conductor");
|
|
49
|
-
if (fs.existsSync(devBinary)) {
|
|
50
|
-
return devBinary;
|
|
51
|
-
}
|
|
52
|
-
cmdLog.info("Dev binary not found, building\u2026");
|
|
53
|
-
buildFromSource(conductorDir, options, cmdLog);
|
|
54
|
-
if (fs.existsSync(devBinary)) {
|
|
55
|
-
return devBinary;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
cmdLog.error("Conductor binary not found");
|
|
59
|
-
console.log("");
|
|
60
|
-
console.log(chalk.white(" To install Conductor:"));
|
|
61
|
-
console.log(chalk.cyan(" cd <paradigm-repo> && paradigm conductor --install"));
|
|
62
|
-
console.log("");
|
|
63
|
-
console.log(chalk.gray(" This builds the native binary and installs it to ~/.paradigm/conductor/bin/"));
|
|
64
|
-
console.log(chalk.gray(" After that, `paradigm conductor` works from any directory."));
|
|
65
|
-
console.log("");
|
|
66
|
-
process.exit(1);
|
|
67
|
-
return null;
|
|
68
|
-
}
|
|
69
|
-
async function installConductor(options, cmdLog) {
|
|
70
|
-
const conductorDir = findConductorDir();
|
|
71
|
-
if (!conductorDir) {
|
|
72
|
-
cmdLog.error("Cannot install \u2014 not in the Paradigm monorepo");
|
|
73
|
-
console.log(chalk.gray(" Run this command from inside the a-paradigm repository."));
|
|
74
|
-
process.exit(1);
|
|
75
|
-
}
|
|
76
|
-
const devBinary = path.join(conductorDir, ".build", "release", "conductor");
|
|
77
|
-
if (!fs.existsSync(devBinary) || options.build) {
|
|
78
|
-
buildFromSource(conductorDir, options, cmdLog);
|
|
79
|
-
}
|
|
80
|
-
if (!fs.existsSync(devBinary)) {
|
|
81
|
-
cmdLog.error("Build did not produce a binary");
|
|
82
|
-
process.exit(1);
|
|
83
|
-
}
|
|
84
|
-
const installDir = path.dirname(INSTALLED_BINARY);
|
|
85
|
-
fs.mkdirSync(installDir, { recursive: true });
|
|
86
|
-
fs.copyFileSync(devBinary, INSTALLED_BINARY);
|
|
87
|
-
fs.chmodSync(INSTALLED_BINARY, 493);
|
|
88
|
-
const size = (fs.statSync(INSTALLED_BINARY).size / (1024 * 1024)).toFixed(1);
|
|
89
|
-
cmdLog.success(`Conductor installed (${size} MB)`);
|
|
90
|
-
console.log("");
|
|
91
|
-
console.log(chalk.green(" \u2713 ") + chalk.white("Installed to ") + chalk.cyan("~/.paradigm/conductor/bin/conductor"));
|
|
92
|
-
console.log(chalk.green(" \u2713 ") + chalk.white("Run ") + chalk.cyan("paradigm conductor") + chalk.white(" from any directory"));
|
|
93
|
-
console.log("");
|
|
94
|
-
}
|
|
95
|
-
function buildFromSource(conductorDir, options, cmdLog) {
|
|
96
|
-
cmdLog.info("Building Conductor\u2026");
|
|
97
|
-
try {
|
|
98
|
-
execSync("swift build -c release", {
|
|
99
|
-
cwd: conductorDir,
|
|
100
|
-
stdio: options.verbose ? "inherit" : "pipe"
|
|
101
|
-
});
|
|
102
|
-
cmdLog.success("Build complete");
|
|
103
|
-
} catch (error) {
|
|
104
|
-
cmdLog.error("Build failed");
|
|
105
|
-
const errMsg = error.message || "";
|
|
106
|
-
if (errMsg.includes("xcode-select")) {
|
|
107
|
-
console.log(chalk.gray(" Xcode Command Line Tools are required."));
|
|
108
|
-
console.log(chalk.gray(" Install with: xcode-select --install"));
|
|
109
|
-
} else {
|
|
110
|
-
console.log(chalk.gray(` ${errMsg.slice(0, 200)}`));
|
|
111
|
-
}
|
|
112
|
-
process.exit(1);
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
function launchBinary(binaryPath, cmdLog) {
|
|
116
|
-
cmdLog.info("Launching Conductor\u2026");
|
|
117
|
-
const child = spawn(binaryPath, [], {
|
|
118
|
-
detached: true,
|
|
119
|
-
stdio: "ignore"
|
|
120
|
-
});
|
|
121
|
-
child.unref();
|
|
122
|
-
const isInstalled = binaryPath === INSTALLED_BINARY;
|
|
123
|
-
console.log(chalk.cyan("\n Paradigm Conductor is running."));
|
|
124
|
-
if (isInstalled) {
|
|
125
|
-
console.log(chalk.gray(" Binary: ~/.paradigm/conductor/bin/conductor"));
|
|
126
|
-
}
|
|
127
|
-
console.log(chalk.gray(" Look for the waveform icon in your menu bar."));
|
|
128
|
-
console.log(chalk.gray(" Quit via the menu bar icon or Cmd+Q.\n"));
|
|
129
|
-
}
|
|
130
|
-
function findConductorDir() {
|
|
131
|
-
let dir = path.resolve(__dirname, "..");
|
|
132
|
-
for (let i = 0; i < 5; i++) {
|
|
133
|
-
const candidate = path.join(dir, "packages", "conductor");
|
|
134
|
-
if (fs.existsSync(path.join(candidate, "Package.swift"))) {
|
|
135
|
-
return candidate;
|
|
136
|
-
}
|
|
137
|
-
dir = path.dirname(dir);
|
|
138
|
-
}
|
|
139
|
-
const cwdCandidate = path.join(process.cwd(), "packages", "conductor");
|
|
140
|
-
if (fs.existsSync(path.join(cwdCandidate, "Package.swift"))) {
|
|
141
|
-
return cwdCandidate;
|
|
142
|
-
}
|
|
143
|
-
if (fs.existsSync(path.join(process.cwd(), "Package.swift"))) {
|
|
144
|
-
const basename2 = path.basename(process.cwd());
|
|
145
|
-
if (basename2 === "conductor") {
|
|
146
|
-
return process.cwd();
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
let cwdDir = process.cwd();
|
|
150
|
-
for (let i = 0; i < 5; i++) {
|
|
151
|
-
cwdDir = path.dirname(cwdDir);
|
|
152
|
-
const candidate = path.join(cwdDir, "packages", "conductor");
|
|
153
|
-
if (fs.existsSync(path.join(candidate, "Package.swift"))) {
|
|
154
|
-
return candidate;
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
return null;
|
|
158
|
-
}
|
|
159
|
-
export {
|
|
160
|
-
conductorCommand
|
|
161
|
-
};
|
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import "./chunk-PDX44BCA.js";
|
|
3
|
-
|
|
4
|
-
// src/core/config-schema.ts
|
|
5
|
-
import { z } from "zod";
|
|
6
|
-
import * as yaml from "js-yaml";
|
|
7
|
-
var disciplineEnum = z.enum([
|
|
8
|
-
"web",
|
|
9
|
-
"backend",
|
|
10
|
-
"fullstack",
|
|
11
|
-
"api",
|
|
12
|
-
"cli",
|
|
13
|
-
"ml",
|
|
14
|
-
"mobile",
|
|
15
|
-
"game",
|
|
16
|
-
"embedded",
|
|
17
|
-
"devops",
|
|
18
|
-
"data",
|
|
19
|
-
"library",
|
|
20
|
-
"monorepo",
|
|
21
|
-
"custom"
|
|
22
|
-
]);
|
|
23
|
-
var agentProviderEnum = z.enum([
|
|
24
|
-
"auto",
|
|
25
|
-
"claude",
|
|
26
|
-
"claude-code",
|
|
27
|
-
"cursor-cli",
|
|
28
|
-
"claude-cli",
|
|
29
|
-
"manual"
|
|
30
|
-
]);
|
|
31
|
-
var symbolDefinitionSchema = z.object({
|
|
32
|
-
name: z.string(),
|
|
33
|
-
description: z.string(),
|
|
34
|
-
examples: z.array(z.string()).optional()
|
|
35
|
-
}).passthrough();
|
|
36
|
-
var tagBankSchema = z.object({
|
|
37
|
-
file: z.string().optional(),
|
|
38
|
-
"core-tags": z.array(z.string()).optional(),
|
|
39
|
-
"allow-suggestions": z.boolean().optional()
|
|
40
|
-
}).passthrough();
|
|
41
|
-
var agentGuidelinesSchema = z.object({
|
|
42
|
-
overview: z.string().optional(),
|
|
43
|
-
"how-to-use": z.array(z.string()).optional(),
|
|
44
|
-
"update-rules": z.array(z.string()).optional()
|
|
45
|
-
}).passthrough();
|
|
46
|
-
var loggingSchema = z.object({
|
|
47
|
-
enforce: z.boolean().optional(),
|
|
48
|
-
"default-level": z.enum(["debug", "info", "warn", "error"]).optional(),
|
|
49
|
-
"symbol-mapping": z.record(z.string(), z.string()).optional()
|
|
50
|
-
}).passthrough();
|
|
51
|
-
var purposeRequiredEntry = z.object({
|
|
52
|
-
pattern: z.string(),
|
|
53
|
-
depth: z.number().optional()
|
|
54
|
-
});
|
|
55
|
-
var limitsSchema = z.object({
|
|
56
|
-
toolCacheTtlMs: z.number().optional()
|
|
57
|
-
}).passthrough();
|
|
58
|
-
var aiAgentSchema = z.object({
|
|
59
|
-
model: z.string().optional(),
|
|
60
|
-
"context-window": z.number().optional()
|
|
61
|
-
}).passthrough();
|
|
62
|
-
var contextSchema = z.object({
|
|
63
|
-
enabled: z.boolean().optional(),
|
|
64
|
-
"index-file": z.string().optional(),
|
|
65
|
-
"docs-path": z.string().optional()
|
|
66
|
-
}).passthrough();
|
|
67
|
-
var probeSchema = z.object({
|
|
68
|
-
enabled: z.boolean().optional(),
|
|
69
|
-
"auto-include": z.boolean().optional()
|
|
70
|
-
}).passthrough();
|
|
71
|
-
var paradigmConfigSchema = z.object({
|
|
72
|
-
version: z.string(),
|
|
73
|
-
project: z.string(),
|
|
74
|
-
discipline: disciplineEnum.optional(),
|
|
75
|
-
"agent-provider": agentProviderEnum.optional(),
|
|
76
|
-
"agent-guidelines": agentGuidelinesSchema.optional(),
|
|
77
|
-
"symbol-system": z.record(z.string(), symbolDefinitionSchema).optional(),
|
|
78
|
-
"tag-bank": tagBankSchema.optional(),
|
|
79
|
-
component_types: z.record(z.string(), z.string()).optional(),
|
|
80
|
-
logging: loggingSchema.optional(),
|
|
81
|
-
"purpose-required": z.array(purposeRequiredEntry).optional(),
|
|
82
|
-
conventions: z.array(z.string()).optional(),
|
|
83
|
-
workspace: z.string().optional(),
|
|
84
|
-
limits: limitsSchema.optional(),
|
|
85
|
-
"ai-agent": aiAgentSchema.optional(),
|
|
86
|
-
context: contextSchema.optional(),
|
|
87
|
-
probe: probeSchema.optional(),
|
|
88
|
-
states: z.record(z.string(), z.unknown()).optional(),
|
|
89
|
-
"custom-symbols": z.record(z.string(), symbolDefinitionSchema).optional()
|
|
90
|
-
}).passthrough();
|
|
91
|
-
var KNOWN_TOP_LEVEL_KEYS = /* @__PURE__ */ new Set([
|
|
92
|
-
"version",
|
|
93
|
-
"project",
|
|
94
|
-
"discipline",
|
|
95
|
-
"agent-provider",
|
|
96
|
-
"agent-guidelines",
|
|
97
|
-
"symbol-system",
|
|
98
|
-
"tag-bank",
|
|
99
|
-
"component_types",
|
|
100
|
-
"logging",
|
|
101
|
-
"purpose-required",
|
|
102
|
-
"conventions",
|
|
103
|
-
"workspace",
|
|
104
|
-
"limits",
|
|
105
|
-
"ai-agent",
|
|
106
|
-
"context",
|
|
107
|
-
"probe",
|
|
108
|
-
"states",
|
|
109
|
-
"custom-symbols",
|
|
110
|
-
"docs",
|
|
111
|
-
"features"
|
|
112
|
-
]);
|
|
113
|
-
function validateConfig(content) {
|
|
114
|
-
const warnings = [];
|
|
115
|
-
const errors = [];
|
|
116
|
-
let parsed;
|
|
117
|
-
try {
|
|
118
|
-
parsed = yaml.load(content);
|
|
119
|
-
} catch (e) {
|
|
120
|
-
return {
|
|
121
|
-
valid: false,
|
|
122
|
-
warnings: [],
|
|
123
|
-
errors: [`YAML parse error: ${e.message}`]
|
|
124
|
-
};
|
|
125
|
-
}
|
|
126
|
-
if (!parsed || typeof parsed !== "object") {
|
|
127
|
-
return {
|
|
128
|
-
valid: false,
|
|
129
|
-
warnings: [],
|
|
130
|
-
errors: ["Config must be a YAML object"]
|
|
131
|
-
};
|
|
132
|
-
}
|
|
133
|
-
for (const key of Object.keys(parsed)) {
|
|
134
|
-
if (!KNOWN_TOP_LEVEL_KEYS.has(key)) {
|
|
135
|
-
warnings.push(`Unrecognized config key: "${key}"`);
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
const result = paradigmConfigSchema.safeParse(parsed);
|
|
139
|
-
if (!result.success) {
|
|
140
|
-
for (const issue of result.error.issues) {
|
|
141
|
-
const path = issue.path.join(".");
|
|
142
|
-
errors.push(`${path}: ${issue.message}`);
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
return {
|
|
146
|
-
valid: errors.length === 0,
|
|
147
|
-
warnings,
|
|
148
|
-
errors
|
|
149
|
-
};
|
|
150
|
-
}
|
|
151
|
-
export {
|
|
152
|
-
paradigmConfigSchema,
|
|
153
|
-
validateConfig
|
|
154
|
-
};
|
|
@@ -1,225 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
aggregateFromDirectory,
|
|
4
|
-
buildSymbolIndex,
|
|
5
|
-
getAllSymbols,
|
|
6
|
-
getSymbolCounts,
|
|
7
|
-
getSymbolsByType
|
|
8
|
-
} from "./chunk-ZGUAAVMA.js";
|
|
9
|
-
import "./chunk-EDOAWN7J.js";
|
|
10
|
-
import "./chunk-IRKUEJVW.js";
|
|
11
|
-
import {
|
|
12
|
-
log
|
|
13
|
-
} from "./chunk-4NCFWYGG.js";
|
|
14
|
-
import "./chunk-PDX44BCA.js";
|
|
15
|
-
|
|
16
|
-
// src/commands/constellation.ts
|
|
17
|
-
import * as fs from "fs";
|
|
18
|
-
import * as path from "path";
|
|
19
|
-
import chalk from "chalk";
|
|
20
|
-
import ora from "ora";
|
|
21
|
-
function categorizeReferences(refs) {
|
|
22
|
-
const categories = {
|
|
23
|
-
gates: [],
|
|
24
|
-
signals: [],
|
|
25
|
-
components: [],
|
|
26
|
-
flows: [],
|
|
27
|
-
aspects: []
|
|
28
|
-
};
|
|
29
|
-
for (const ref of refs) {
|
|
30
|
-
if (!ref || ref.length < 2) continue;
|
|
31
|
-
const prefix = ref[0];
|
|
32
|
-
switch (prefix) {
|
|
33
|
-
case "^":
|
|
34
|
-
categories.gates.push(ref);
|
|
35
|
-
break;
|
|
36
|
-
case "!":
|
|
37
|
-
categories.signals.push(ref);
|
|
38
|
-
break;
|
|
39
|
-
case "#":
|
|
40
|
-
categories.components.push(ref);
|
|
41
|
-
break;
|
|
42
|
-
case "$":
|
|
43
|
-
categories.flows.push(ref);
|
|
44
|
-
break;
|
|
45
|
-
case "~":
|
|
46
|
-
categories.aspects.push(ref);
|
|
47
|
-
break;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
return categories;
|
|
51
|
-
}
|
|
52
|
-
function buildConstellation(index, projectName) {
|
|
53
|
-
const stars = {};
|
|
54
|
-
const orbits = {};
|
|
55
|
-
const counts = getSymbolCounts(index);
|
|
56
|
-
const allSymbols = getAllSymbols(index);
|
|
57
|
-
for (const entry of allSymbols) {
|
|
58
|
-
const categories = categorizeReferences(entry.references);
|
|
59
|
-
const star = {
|
|
60
|
-
type: entry.type,
|
|
61
|
-
path: entry.filePath,
|
|
62
|
-
references: entry.references,
|
|
63
|
-
referencedBy: entry.referencedBy
|
|
64
|
-
};
|
|
65
|
-
if (entry.description) star.description = entry.description;
|
|
66
|
-
if (entry.tags && entry.tags.length > 0) star.tags = entry.tags;
|
|
67
|
-
if (categories.gates.length > 0) star.gates = categories.gates;
|
|
68
|
-
if (categories.signals.length > 0) star.signals = categories.signals;
|
|
69
|
-
if (categories.components.length > 0) star.components = categories.components;
|
|
70
|
-
if (categories.flows.length > 0) star.flows = categories.flows;
|
|
71
|
-
if (categories.aspects.length > 0) star.aspects = categories.aspects;
|
|
72
|
-
stars[entry.symbol] = star;
|
|
73
|
-
}
|
|
74
|
-
const flowSymbols = getSymbolsByType(index, "flow");
|
|
75
|
-
for (const flow of flowSymbols) {
|
|
76
|
-
const data = flow.data;
|
|
77
|
-
const sequence = data?.sequence || data?.gates || flow.references;
|
|
78
|
-
orbits[flow.symbol] = {
|
|
79
|
-
description: flow.description,
|
|
80
|
-
sequence
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
return {
|
|
84
|
-
version: "1.0",
|
|
85
|
-
generated: (/* @__PURE__ */ new Date()).toISOString(),
|
|
86
|
-
project: projectName,
|
|
87
|
-
stats: {
|
|
88
|
-
components: counts.component,
|
|
89
|
-
flows: counts.flow,
|
|
90
|
-
gates: counts.gate,
|
|
91
|
-
signals: counts.signal,
|
|
92
|
-
aspects: counts.aspect,
|
|
93
|
-
total: Object.values(counts).reduce((a, b) => a + b, 0)
|
|
94
|
-
},
|
|
95
|
-
stars,
|
|
96
|
-
orbits
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
|
-
async function constellationCommand(targetPath, options = {}) {
|
|
100
|
-
const cwd = process.cwd();
|
|
101
|
-
const absolutePath = targetPath ? path.resolve(cwd, targetPath) : cwd;
|
|
102
|
-
const projectName = path.basename(absolutePath);
|
|
103
|
-
const format = options.format || "json";
|
|
104
|
-
if (!options.quiet) {
|
|
105
|
-
console.log(chalk.blue("\n\u2728 Building Constellation...\n"));
|
|
106
|
-
}
|
|
107
|
-
const spinner = ora("Aggregating symbols...").start();
|
|
108
|
-
const tracker = log.command("constellation").start("Building constellation", { project: projectName });
|
|
109
|
-
try {
|
|
110
|
-
const result = await aggregateFromDirectory(absolutePath);
|
|
111
|
-
const index = buildSymbolIndex(result);
|
|
112
|
-
log.operation("aggregate").debug("Symbols aggregated", { count: getAllSymbols(index).length });
|
|
113
|
-
spinner.text = "Building constellation...";
|
|
114
|
-
const constellation = buildConstellation(index, projectName);
|
|
115
|
-
const paradigmDir = path.join(absolutePath, ".paradigm");
|
|
116
|
-
if (!fs.existsSync(paradigmDir)) {
|
|
117
|
-
fs.mkdirSync(paradigmDir, { recursive: true });
|
|
118
|
-
}
|
|
119
|
-
const outputPath = options.output || path.join(paradigmDir, `constellation.${format}`);
|
|
120
|
-
let content;
|
|
121
|
-
if (format === "yaml") {
|
|
122
|
-
content = serializeToYaml(constellation);
|
|
123
|
-
} else {
|
|
124
|
-
content = JSON.stringify(constellation, null, 2);
|
|
125
|
-
}
|
|
126
|
-
fs.writeFileSync(outputPath, content, "utf8");
|
|
127
|
-
log.component("constellation-file").success("Constellation written", { path: outputPath, format });
|
|
128
|
-
spinner.succeed("Constellation built");
|
|
129
|
-
tracker.success("Constellation built", { path: outputPath, stars: Object.keys(constellation.stars).length });
|
|
130
|
-
if (!options.quiet) {
|
|
131
|
-
console.log(chalk.white("\nConstellation Stats"));
|
|
132
|
-
console.log(chalk.gray("\u2500".repeat(40)));
|
|
133
|
-
const stats = constellation.stats;
|
|
134
|
-
const statLines = [
|
|
135
|
-
{ symbol: "#", name: "Components", count: stats.components, color: chalk.green },
|
|
136
|
-
{ symbol: "$", name: "Flows", count: stats.flows, color: chalk.yellow },
|
|
137
|
-
{ symbol: "^", name: "Gates", count: stats.gates, color: chalk.red },
|
|
138
|
-
{ symbol: "!", name: "Signals", count: stats.signals, color: chalk.cyan },
|
|
139
|
-
{ symbol: "~", name: "Aspects", count: stats.aspects, color: chalk.magenta }
|
|
140
|
-
];
|
|
141
|
-
for (const { symbol, name, count, color } of statLines) {
|
|
142
|
-
if (count > 0) {
|
|
143
|
-
console.log(` ${color(symbol)} ${name.padEnd(12)} ${chalk.cyan(count.toString())}`);
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
console.log(chalk.gray("\u2500".repeat(40)));
|
|
147
|
-
console.log(` Total stars: ${chalk.cyan(stats.total.toString())}`);
|
|
148
|
-
console.log(` Total orbits: ${chalk.cyan(Object.keys(constellation.orbits).length.toString())}`);
|
|
149
|
-
console.log(chalk.gray(`
|
|
150
|
-
Output: ${outputPath}
|
|
151
|
-
`));
|
|
152
|
-
const sampleStar = Object.entries(constellation.stars).find(
|
|
153
|
-
([, star]) => star.references.length > 0 || star.referencedBy.length > 0
|
|
154
|
-
);
|
|
155
|
-
if (sampleStar) {
|
|
156
|
-
console.log(chalk.white("Sample Star"));
|
|
157
|
-
console.log(chalk.gray("\u2500".repeat(40)));
|
|
158
|
-
console.log(chalk.cyan(` ${sampleStar[0]}`));
|
|
159
|
-
const star = sampleStar[1];
|
|
160
|
-
if (star.gates?.length) console.log(chalk.gray(` gates: ${star.gates.join(", ")}`));
|
|
161
|
-
if (star.components?.length) console.log(chalk.gray(` components: ${star.components.join(", ")}`));
|
|
162
|
-
if (star.signals?.length) console.log(chalk.gray(` signals: ${star.signals.join(", ")}`));
|
|
163
|
-
if (star.referencedBy.length) console.log(chalk.gray(` referencedBy: ${star.referencedBy.join(", ")}`));
|
|
164
|
-
console.log("");
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
if (result.errors.length > 0 && !options.quiet) {
|
|
168
|
-
console.log(chalk.yellow("Warnings"));
|
|
169
|
-
console.log(chalk.gray("\u2500".repeat(40)));
|
|
170
|
-
for (const error of result.errors.slice(0, 5)) {
|
|
171
|
-
console.log(chalk.yellow(` \u26A0 ${error.filePath}: ${error.message}`));
|
|
172
|
-
}
|
|
173
|
-
if (result.errors.length > 5) {
|
|
174
|
-
console.log(chalk.gray(` ... and ${result.errors.length - 5} more`));
|
|
175
|
-
}
|
|
176
|
-
console.log("");
|
|
177
|
-
}
|
|
178
|
-
return constellation;
|
|
179
|
-
} catch (error) {
|
|
180
|
-
spinner.fail("Failed to build constellation");
|
|
181
|
-
tracker.error("Constellation build failed", { error: error.message });
|
|
182
|
-
console.log(chalk.red(`Error: ${error.message}
|
|
183
|
-
`));
|
|
184
|
-
process.exit(1);
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
function serializeToYaml(obj, indent = 0) {
|
|
188
|
-
const spaces = " ".repeat(indent);
|
|
189
|
-
if (obj === null || obj === void 0) {
|
|
190
|
-
return "null";
|
|
191
|
-
}
|
|
192
|
-
if (typeof obj === "string") {
|
|
193
|
-
if (obj.includes(":") || obj.includes("#") || obj.includes("\n") || obj.startsWith("@") || obj.startsWith("^")) {
|
|
194
|
-
return `"${obj.replace(/"/g, '\\"')}"`;
|
|
195
|
-
}
|
|
196
|
-
return obj;
|
|
197
|
-
}
|
|
198
|
-
if (typeof obj === "number" || typeof obj === "boolean") {
|
|
199
|
-
return String(obj);
|
|
200
|
-
}
|
|
201
|
-
if (Array.isArray(obj)) {
|
|
202
|
-
if (obj.length === 0) return "[]";
|
|
203
|
-
return obj.map((item) => `${spaces}- ${serializeToYaml(item, indent)}`).join("\n");
|
|
204
|
-
}
|
|
205
|
-
if (typeof obj === "object") {
|
|
206
|
-
const entries = Object.entries(obj);
|
|
207
|
-
if (entries.length === 0) return "{}";
|
|
208
|
-
return entries.map(([key, value]) => {
|
|
209
|
-
if (typeof value === "object" && value !== null && !Array.isArray(value)) {
|
|
210
|
-
return `${spaces}${key}:
|
|
211
|
-
${serializeToYaml(value, indent + 1)}`;
|
|
212
|
-
}
|
|
213
|
-
if (Array.isArray(value)) {
|
|
214
|
-
if (value.length === 0) return `${spaces}${key}: []`;
|
|
215
|
-
return `${spaces}${key}:
|
|
216
|
-
${serializeToYaml(value, indent + 1)}`;
|
|
217
|
-
}
|
|
218
|
-
return `${spaces}${key}: ${serializeToYaml(value, indent)}`;
|
|
219
|
-
}).join("\n");
|
|
220
|
-
}
|
|
221
|
-
return String(obj);
|
|
222
|
-
}
|
|
223
|
-
export {
|
|
224
|
-
constellationCommand
|
|
225
|
-
};
|