@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
package/dist/chunk-IRKUEJVW.js
DELETED
|
@@ -1,405 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
// ../portal/core/dist/index.js
|
|
4
|
-
import * as fs from "fs";
|
|
5
|
-
import * as path from "path";
|
|
6
|
-
import * as yaml from "js-yaml";
|
|
7
|
-
import { glob } from "glob";
|
|
8
|
-
var DEFAULT_DEV_SETTINGS = {
|
|
9
|
-
visualizerPort: 42195,
|
|
10
|
-
// Marathon: 42.195km
|
|
11
|
-
watcherPort: 42196,
|
|
12
|
-
// Marathon + 1
|
|
13
|
-
autoConnect: true
|
|
14
|
-
};
|
|
15
|
-
async function parseGateConfig(configPath) {
|
|
16
|
-
const absolutePath = path.resolve(configPath);
|
|
17
|
-
const rootDir = path.dirname(absolutePath);
|
|
18
|
-
if (!fs.existsSync(absolutePath)) {
|
|
19
|
-
throw new Error(`Gate config not found: ${absolutePath}`);
|
|
20
|
-
}
|
|
21
|
-
const content = fs.readFileSync(absolutePath, "utf8");
|
|
22
|
-
const config = yaml.load(content);
|
|
23
|
-
if (!config.version) {
|
|
24
|
-
throw new Error('Gate config missing required "version" field');
|
|
25
|
-
}
|
|
26
|
-
const gates = [];
|
|
27
|
-
const configAny = config;
|
|
28
|
-
const gatesSource = config.gates || configAny.portals;
|
|
29
|
-
if (gatesSource) {
|
|
30
|
-
for (const [id, gateDef] of Object.entries(gatesSource)) {
|
|
31
|
-
gates.push(normalizeGate(id, gateDef));
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
if (config.include) {
|
|
35
|
-
for (const pattern of config.include) {
|
|
36
|
-
const fullPattern = path.join(rootDir, pattern);
|
|
37
|
-
const files = await glob(fullPattern.replace(/\\/g, "/"));
|
|
38
|
-
for (const file of files) {
|
|
39
|
-
const additionalGates = await parseGateFile(file);
|
|
40
|
-
gates.push(...additionalGates);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
const flows = [];
|
|
45
|
-
if (config.flows) {
|
|
46
|
-
for (const [id, flowDef] of Object.entries(config.flows)) {
|
|
47
|
-
flows.push(normalizeFlow(id, flowDef));
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
return {
|
|
51
|
-
version: config.version,
|
|
52
|
-
gates,
|
|
53
|
-
flows,
|
|
54
|
-
settings: {
|
|
55
|
-
dev: {
|
|
56
|
-
...DEFAULT_DEV_SETTINGS,
|
|
57
|
-
...config.settings?.dev
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
async function parseGateFile(filePath) {
|
|
63
|
-
const content = fs.readFileSync(filePath, "utf8");
|
|
64
|
-
const data = yaml.load(content);
|
|
65
|
-
if (data.id) {
|
|
66
|
-
return [normalizeGate(data.id, data)];
|
|
67
|
-
}
|
|
68
|
-
if (data.gates) {
|
|
69
|
-
const gates = [];
|
|
70
|
-
for (const [id, gateDef] of Object.entries(data.gates)) {
|
|
71
|
-
gates.push(normalizeGate(id, gateDef));
|
|
72
|
-
}
|
|
73
|
-
return gates;
|
|
74
|
-
}
|
|
75
|
-
return [];
|
|
76
|
-
}
|
|
77
|
-
function normalizeGate(id, def) {
|
|
78
|
-
const locks = [];
|
|
79
|
-
if (def.locks) {
|
|
80
|
-
for (const lockDef of def.locks) {
|
|
81
|
-
locks.push(normalizeLock(lockDef));
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
const prizes = [];
|
|
85
|
-
if (def.prizes) {
|
|
86
|
-
for (const prizeDef of def.prizes) {
|
|
87
|
-
prizes.push(normalizePrize(prizeDef));
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
return {
|
|
91
|
-
id,
|
|
92
|
-
description: def.description,
|
|
93
|
-
locks,
|
|
94
|
-
prizes,
|
|
95
|
-
position: def.position
|
|
96
|
-
};
|
|
97
|
-
}
|
|
98
|
-
function normalizeLock(def) {
|
|
99
|
-
const lockDef = def;
|
|
100
|
-
const keys = [];
|
|
101
|
-
if (lockDef.keys) {
|
|
102
|
-
for (const keyDef of lockDef.keys) {
|
|
103
|
-
if (typeof keyDef === "string") {
|
|
104
|
-
keys.push({ expression: keyDef });
|
|
105
|
-
} else if (keyDef.expression) {
|
|
106
|
-
const k = keyDef;
|
|
107
|
-
keys.push({
|
|
108
|
-
expression: k.expression,
|
|
109
|
-
description: k.description
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
return {
|
|
115
|
-
id: lockDef.id,
|
|
116
|
-
description: lockDef.description,
|
|
117
|
-
keys,
|
|
118
|
-
mode: lockDef.mode || "all"
|
|
119
|
-
};
|
|
120
|
-
}
|
|
121
|
-
function normalizePrize(def) {
|
|
122
|
-
const prizeDef = def;
|
|
123
|
-
return {
|
|
124
|
-
id: prizeDef.id,
|
|
125
|
-
oneTime: prizeDef.oneTime ?? false,
|
|
126
|
-
metadata: prizeDef.metadata
|
|
127
|
-
};
|
|
128
|
-
}
|
|
129
|
-
function normalizeFlow(id, def) {
|
|
130
|
-
return {
|
|
131
|
-
id,
|
|
132
|
-
description: def.description,
|
|
133
|
-
gates: def.gates || [],
|
|
134
|
-
forkable: def.forkable
|
|
135
|
-
};
|
|
136
|
-
}
|
|
137
|
-
function serializeGateConfig(config) {
|
|
138
|
-
const output = {
|
|
139
|
-
version: config.version,
|
|
140
|
-
gates: {},
|
|
141
|
-
flows: {},
|
|
142
|
-
settings: {
|
|
143
|
-
dev: config.settings.dev
|
|
144
|
-
}
|
|
145
|
-
};
|
|
146
|
-
for (const gate of config.gates) {
|
|
147
|
-
const { id, ...rest } = gate;
|
|
148
|
-
output.gates[id] = rest;
|
|
149
|
-
}
|
|
150
|
-
for (const flow of config.flows) {
|
|
151
|
-
const { id, ...rest } = flow;
|
|
152
|
-
output.flows[id] = rest;
|
|
153
|
-
}
|
|
154
|
-
return yaml.dump(output, {
|
|
155
|
-
indent: 2,
|
|
156
|
-
lineWidth: -1,
|
|
157
|
-
noRefs: true,
|
|
158
|
-
sortKeys: false
|
|
159
|
-
});
|
|
160
|
-
}
|
|
161
|
-
function getDefaultGateConfig() {
|
|
162
|
-
const config = {
|
|
163
|
-
version: "1.0.0",
|
|
164
|
-
gates: {
|
|
165
|
-
"example-gate": {
|
|
166
|
-
description: "An example gate to get you started",
|
|
167
|
-
locks: [
|
|
168
|
-
{
|
|
169
|
-
id: "example-lock",
|
|
170
|
-
description: "Requires user to be authenticated",
|
|
171
|
-
keys: [{ expression: "user.isAuthenticated === true" }]
|
|
172
|
-
}
|
|
173
|
-
],
|
|
174
|
-
prizes: [
|
|
175
|
-
{
|
|
176
|
-
id: "example-prize",
|
|
177
|
-
oneTime: true,
|
|
178
|
-
metadata: { event: "first_access" }
|
|
179
|
-
}
|
|
180
|
-
]
|
|
181
|
-
}
|
|
182
|
-
},
|
|
183
|
-
flows: {
|
|
184
|
-
"example-flow": {
|
|
185
|
-
description: "An example user journey",
|
|
186
|
-
gates: ["example-gate"]
|
|
187
|
-
}
|
|
188
|
-
},
|
|
189
|
-
settings: {
|
|
190
|
-
dev: {
|
|
191
|
-
visualizerPort: 42195,
|
|
192
|
-
// Marathon: 42.195km
|
|
193
|
-
watcherPort: 42196,
|
|
194
|
-
// Marathon + 1
|
|
195
|
-
autoConnect: true
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
};
|
|
199
|
-
return yaml.dump(config, {
|
|
200
|
-
indent: 2,
|
|
201
|
-
lineWidth: -1,
|
|
202
|
-
noRefs: true,
|
|
203
|
-
sortKeys: false
|
|
204
|
-
});
|
|
205
|
-
}
|
|
206
|
-
async function findGateFiles(rootDir) {
|
|
207
|
-
const absoluteRoot = path.resolve(rootDir);
|
|
208
|
-
const files = await glob("**/portal.yaml", {
|
|
209
|
-
cwd: absoluteRoot,
|
|
210
|
-
absolute: true,
|
|
211
|
-
ignore: ["**/node_modules/**", "**/dist/**", "**/.git/**"]
|
|
212
|
-
});
|
|
213
|
-
return files;
|
|
214
|
-
}
|
|
215
|
-
function validateGateConfig(config) {
|
|
216
|
-
const issues = [];
|
|
217
|
-
if (!config.version) {
|
|
218
|
-
issues.push({
|
|
219
|
-
type: "error",
|
|
220
|
-
message: 'Missing required "version" field',
|
|
221
|
-
path: "version"
|
|
222
|
-
});
|
|
223
|
-
}
|
|
224
|
-
const gateIds = /* @__PURE__ */ new Set();
|
|
225
|
-
for (const gate of config.gates) {
|
|
226
|
-
validateGate(gate, gateIds, issues);
|
|
227
|
-
gateIds.add(gate.id);
|
|
228
|
-
}
|
|
229
|
-
for (const flow of config.flows) {
|
|
230
|
-
validateFlow(flow, gateIds, issues);
|
|
231
|
-
}
|
|
232
|
-
return {
|
|
233
|
-
valid: issues.filter((i) => i.type === "error").length === 0,
|
|
234
|
-
issues
|
|
235
|
-
};
|
|
236
|
-
}
|
|
237
|
-
function validateGate(gate, existingIds, issues) {
|
|
238
|
-
const path2 = `gates.${gate.id}`;
|
|
239
|
-
if (existingIds.has(gate.id)) {
|
|
240
|
-
issues.push({
|
|
241
|
-
type: "error",
|
|
242
|
-
message: `Duplicate gate ID: "${gate.id}"`,
|
|
243
|
-
path: path2
|
|
244
|
-
});
|
|
245
|
-
}
|
|
246
|
-
if (!/^[a-z][a-z0-9-]*$/.test(gate.id)) {
|
|
247
|
-
issues.push({
|
|
248
|
-
type: "warning",
|
|
249
|
-
message: `Gate ID "${gate.id}" should use kebab-case (e.g., "my-gate")`,
|
|
250
|
-
path: path2
|
|
251
|
-
});
|
|
252
|
-
}
|
|
253
|
-
const lockIds = /* @__PURE__ */ new Set();
|
|
254
|
-
for (const lock of gate.locks) {
|
|
255
|
-
validateLock(lock, lockIds, `${path2}.locks`, issues);
|
|
256
|
-
lockIds.add(lock.id);
|
|
257
|
-
}
|
|
258
|
-
const prizeIds = /* @__PURE__ */ new Set();
|
|
259
|
-
for (const prize of gate.prizes) {
|
|
260
|
-
if (prizeIds.has(prize.id)) {
|
|
261
|
-
issues.push({
|
|
262
|
-
type: "error",
|
|
263
|
-
message: `Duplicate prize ID "${prize.id}" in gate "${gate.id}"`,
|
|
264
|
-
path: `${path2}.prizes`
|
|
265
|
-
});
|
|
266
|
-
}
|
|
267
|
-
prizeIds.add(prize.id);
|
|
268
|
-
if (!/^[a-z][a-z0-9-]*$/.test(prize.id)) {
|
|
269
|
-
issues.push({
|
|
270
|
-
type: "warning",
|
|
271
|
-
message: `Prize ID "${prize.id}" should use kebab-case`,
|
|
272
|
-
path: `${path2}.prizes`
|
|
273
|
-
});
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
if (gate.locks.length === 0) {
|
|
277
|
-
issues.push({
|
|
278
|
-
type: "warning",
|
|
279
|
-
message: `Gate "${gate.id}" has no locks - any entity can pass through`,
|
|
280
|
-
path: path2
|
|
281
|
-
});
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
function validateLock(lock, existingIds, basePath, issues) {
|
|
285
|
-
const path2 = `${basePath}.${lock.id}`;
|
|
286
|
-
if (existingIds.has(lock.id)) {
|
|
287
|
-
issues.push({
|
|
288
|
-
type: "error",
|
|
289
|
-
message: `Duplicate lock ID: "${lock.id}"`,
|
|
290
|
-
path: path2
|
|
291
|
-
});
|
|
292
|
-
}
|
|
293
|
-
if (!/^[a-z][a-z0-9-]*$/.test(lock.id)) {
|
|
294
|
-
issues.push({
|
|
295
|
-
type: "warning",
|
|
296
|
-
message: `Lock ID "${lock.id}" should use kebab-case`,
|
|
297
|
-
path: path2
|
|
298
|
-
});
|
|
299
|
-
}
|
|
300
|
-
if (lock.keys.length === 0) {
|
|
301
|
-
issues.push({
|
|
302
|
-
type: "error",
|
|
303
|
-
message: `Lock "${lock.id}" has no keys - it can never be opened`,
|
|
304
|
-
path: path2
|
|
305
|
-
});
|
|
306
|
-
}
|
|
307
|
-
for (const key of lock.keys) {
|
|
308
|
-
if (!key.expression || key.expression.trim() === "") {
|
|
309
|
-
issues.push({
|
|
310
|
-
type: "error",
|
|
311
|
-
message: `Key in lock "${lock.id}" has empty expression`,
|
|
312
|
-
path: `${path2}.keys`
|
|
313
|
-
});
|
|
314
|
-
}
|
|
315
|
-
if (key.expression.includes("==") && !key.expression.includes("===")) {
|
|
316
|
-
issues.push({
|
|
317
|
-
type: "warning",
|
|
318
|
-
message: `Key expression uses "==" instead of "===" - consider using strict equality`,
|
|
319
|
-
path: `${path2}.keys`
|
|
320
|
-
});
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
if (lock.mode && !["all", "any"].includes(lock.mode)) {
|
|
324
|
-
issues.push({
|
|
325
|
-
type: "error",
|
|
326
|
-
message: `Invalid lock mode "${lock.mode}" - must be "all" or "any"`,
|
|
327
|
-
path: path2
|
|
328
|
-
});
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
function validateFlow(flow, gateIds, issues) {
|
|
332
|
-
const path2 = `flows.${flow.id}`;
|
|
333
|
-
if (!/^[a-z][a-z0-9-]*$/.test(flow.id)) {
|
|
334
|
-
issues.push({
|
|
335
|
-
type: "warning",
|
|
336
|
-
message: `Flow ID "${flow.id}" should use kebab-case`,
|
|
337
|
-
path: path2
|
|
338
|
-
});
|
|
339
|
-
}
|
|
340
|
-
for (const gateId of flow.gates) {
|
|
341
|
-
if (!gateIds.has(gateId)) {
|
|
342
|
-
issues.push({
|
|
343
|
-
type: "error",
|
|
344
|
-
message: `Flow "${flow.id}" references unknown gate "${gateId}"`,
|
|
345
|
-
path: `${path2}.gates`
|
|
346
|
-
});
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
if (flow.gates.length === 0) {
|
|
350
|
-
issues.push({
|
|
351
|
-
type: "warning",
|
|
352
|
-
message: `Flow "${flow.id}" has no gates`,
|
|
353
|
-
path: path2
|
|
354
|
-
});
|
|
355
|
-
}
|
|
356
|
-
const seen = /* @__PURE__ */ new Set();
|
|
357
|
-
for (const gateId of flow.gates) {
|
|
358
|
-
if (seen.has(gateId)) {
|
|
359
|
-
issues.push({
|
|
360
|
-
type: "warning",
|
|
361
|
-
message: `Flow "${flow.id}" contains duplicate gate "${gateId}"`,
|
|
362
|
-
path: `${path2}.gates`
|
|
363
|
-
});
|
|
364
|
-
}
|
|
365
|
-
seen.add(gateId);
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
function formatValidationResult(result) {
|
|
369
|
-
if (result.valid && result.issues.length === 0) {
|
|
370
|
-
return "\u2705 Configuration is valid";
|
|
371
|
-
}
|
|
372
|
-
const lines = [];
|
|
373
|
-
const errors = result.issues.filter((i) => i.type === "error");
|
|
374
|
-
const warnings = result.issues.filter((i) => i.type === "warning");
|
|
375
|
-
if (errors.length > 0) {
|
|
376
|
-
lines.push(`
|
|
377
|
-
\u274C ${errors.length} error(s):`);
|
|
378
|
-
for (const issue of errors) {
|
|
379
|
-
lines.push(` \u2022 ${issue.message}${issue.path ? ` (${issue.path})` : ""}`);
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
if (warnings.length > 0) {
|
|
383
|
-
lines.push(`
|
|
384
|
-
\u26A0\uFE0F ${warnings.length} warning(s):`);
|
|
385
|
-
for (const issue of warnings) {
|
|
386
|
-
lines.push(` \u2022 ${issue.message}${issue.path ? ` (${issue.path})` : ""}`);
|
|
387
|
-
}
|
|
388
|
-
}
|
|
389
|
-
if (result.valid) {
|
|
390
|
-
lines.push("\n\u2705 Configuration is valid (with warnings)");
|
|
391
|
-
} else {
|
|
392
|
-
lines.push("\n\u274C Configuration is invalid");
|
|
393
|
-
}
|
|
394
|
-
return lines.join("\n");
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
export {
|
|
398
|
-
parseGateConfig,
|
|
399
|
-
parseGateFile,
|
|
400
|
-
serializeGateConfig,
|
|
401
|
-
getDefaultGateConfig,
|
|
402
|
-
findGateFiles,
|
|
403
|
-
validateGateConfig,
|
|
404
|
-
formatValidationResult
|
|
405
|
-
};
|
package/dist/chunk-J2JEQRT3.js
DELETED
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
// src/commands/graph.ts
|
|
4
|
-
import chalk from "chalk";
|
|
5
|
-
import * as fs from "fs";
|
|
6
|
-
import * as pathMod from "path";
|
|
7
|
-
async function graphCommand(path, options) {
|
|
8
|
-
const projectDir = path || process.cwd();
|
|
9
|
-
const port = parseInt(options.port || "3841", 10);
|
|
10
|
-
const shouldOpen = options.open !== false;
|
|
11
|
-
console.log(chalk.cyan("\nStarting Symbol Graph...\n"));
|
|
12
|
-
try {
|
|
13
|
-
const { startGraphServer } = await import("./graph-server-YL22VBBN.js");
|
|
14
|
-
console.log(chalk.gray(`Project: ${projectDir}`));
|
|
15
|
-
console.log(chalk.gray(`Port: ${port}`));
|
|
16
|
-
console.log();
|
|
17
|
-
await startGraphServer({ port, projectDir, open: shouldOpen });
|
|
18
|
-
console.log(chalk.green(`
|
|
19
|
-
Symbol Graph is running at http://localhost:${port}`));
|
|
20
|
-
console.log(chalk.gray("\nPress Ctrl+C to stop\n"));
|
|
21
|
-
await new Promise(() => {
|
|
22
|
-
});
|
|
23
|
-
} catch (error) {
|
|
24
|
-
if (error.code === "EADDRINUSE") {
|
|
25
|
-
console.error(chalk.red(`
|
|
26
|
-
Error: Port ${port} is already in use.`));
|
|
27
|
-
console.log(chalk.gray(`Try: paradigm graph --port ${port + 1}
|
|
28
|
-
`));
|
|
29
|
-
} else {
|
|
30
|
-
console.error(chalk.red("\nFailed to start Symbol Graph:"), error);
|
|
31
|
-
}
|
|
32
|
-
process.exit(1);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
var GRAPHS_DIR = ".paradigm/graphs";
|
|
36
|
-
var CATEGORY_PREFIXES = {
|
|
37
|
-
component: "#",
|
|
38
|
-
flow: "$",
|
|
39
|
-
gate: "^",
|
|
40
|
-
signal: "!",
|
|
41
|
-
aspect: "~"
|
|
42
|
-
};
|
|
43
|
-
var NODE_W = 200;
|
|
44
|
-
var NODE_H = 60;
|
|
45
|
-
var NODE_GAP = 20;
|
|
46
|
-
var GPAD = 40;
|
|
47
|
-
var GHEADER = 50;
|
|
48
|
-
var GGAP = 60;
|
|
49
|
-
var SCAN_CATEGORY_MAP = {
|
|
50
|
-
components: "component",
|
|
51
|
-
flows: "flow",
|
|
52
|
-
gates: "gate",
|
|
53
|
-
signals: "signal",
|
|
54
|
-
aspects: "aspect"
|
|
55
|
-
};
|
|
56
|
-
function loadSymbolsFromIndex(projectDir) {
|
|
57
|
-
const indexPath = pathMod.join(projectDir, ".paradigm", "scan-index.json");
|
|
58
|
-
if (!fs.existsSync(indexPath)) return [];
|
|
59
|
-
const raw = JSON.parse(fs.readFileSync(indexPath, "utf8"));
|
|
60
|
-
const out = [];
|
|
61
|
-
for (const [sectionKey, categoryName] of Object.entries(SCAN_CATEGORY_MAP)) {
|
|
62
|
-
const section = raw[sectionKey];
|
|
63
|
-
if (!section || typeof section !== "object") continue;
|
|
64
|
-
for (const [id, sym] of Object.entries(section)) {
|
|
65
|
-
const s = sym;
|
|
66
|
-
out.push({ id, name: id, category: categoryName, prefix: CATEGORY_PREFIXES[categoryName] || "#", description: s.description, path: s.path });
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
return out;
|
|
70
|
-
}
|
|
71
|
-
function resolveSymbol(name, all) {
|
|
72
|
-
const stripped = name.replace(/^[#$^!~]/, "");
|
|
73
|
-
return all.find((s) => s.id === stripped || s.name === stripped || s.id === name || s.name === name);
|
|
74
|
-
}
|
|
75
|
-
function cliBuildGraphState(projectDir, symbolFilter, groups, links, graphName = "Generated Graph") {
|
|
76
|
-
const allSymbols = loadSymbolsFromIndex(projectDir);
|
|
77
|
-
let included = symbolFilter && symbolFilter.length > 0 ? symbolFilter.map((n) => resolveSymbol(n, allSymbols)).filter(Boolean) : allSymbols;
|
|
78
|
-
const nodes = [];
|
|
79
|
-
const edges = [];
|
|
80
|
-
const groupIdMap = /* @__PURE__ */ new Map();
|
|
81
|
-
const assigned = /* @__PURE__ */ new Set();
|
|
82
|
-
let nextX = 0;
|
|
83
|
-
if (groups && groups.length > 0) {
|
|
84
|
-
for (const g of groups) {
|
|
85
|
-
const gid = `group-${Date.now()}-${Math.random().toString(36).slice(2, 6)}`;
|
|
86
|
-
groupIdMap.set(g.label, gid);
|
|
87
|
-
const members = g.symbols.map((n) => resolveSymbol(n, included)).filter(Boolean);
|
|
88
|
-
const cols = Math.max(Math.ceil(Math.sqrt(members.length)), 1);
|
|
89
|
-
const rows = Math.max(Math.ceil(members.length / cols), 1);
|
|
90
|
-
for (let i = 0; i < members.length; i++) {
|
|
91
|
-
const sym = members[i];
|
|
92
|
-
const c = i % cols, r = Math.floor(i / cols);
|
|
93
|
-
nodes.push({ id: `sym-${sym.id}`, type: "symbolNode", position: { x: GPAD + c * (NODE_W + NODE_GAP), y: GHEADER + GPAD + r * (NODE_H + NODE_GAP) }, parentId: gid, data: { type: "symbol", symbol: sym, label: `${CATEGORY_PREFIXES[sym.category] || "#"}${sym.name}` } });
|
|
94
|
-
assigned.add(sym.id);
|
|
95
|
-
}
|
|
96
|
-
const gw = GPAD * 2 + cols * NODE_W + (cols - 1) * NODE_GAP;
|
|
97
|
-
const gh = GHEADER + GPAD * 2 + rows * NODE_H + (rows - 1) * NODE_GAP;
|
|
98
|
-
nodes.unshift({ id: gid, type: "groupNode", position: { x: nextX, y: 0 }, style: { width: gw, height: gh }, data: { type: "group", label: g.label } });
|
|
99
|
-
nextX += gw + GGAP;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
const ungrouped = included.filter((s) => !assigned.has(s.id));
|
|
103
|
-
if (ungrouped.length > 0) {
|
|
104
|
-
const startY = groups && groups.length > 0 ? 400 : 0;
|
|
105
|
-
const cols = Math.max(Math.ceil(Math.sqrt(ungrouped.length)), 1);
|
|
106
|
-
for (let i = 0; i < ungrouped.length; i++) {
|
|
107
|
-
const sym = ungrouped[i];
|
|
108
|
-
const c = i % cols, r = Math.floor(i / cols);
|
|
109
|
-
nodes.push({ id: `sym-${sym.id}`, type: "symbolNode", position: { x: c * (NODE_W + NODE_GAP), y: startY + r * (NODE_H + NODE_GAP) }, data: { type: "symbol", symbol: sym, label: `${CATEGORY_PREFIXES[sym.category] || "#"}${sym.name}` } });
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
if (links && links.length > 0) {
|
|
113
|
-
for (const l of links) {
|
|
114
|
-
const src = groupIdMap.get(l.source), tgt = groupIdMap.get(l.target);
|
|
115
|
-
if (src && tgt) edges.push({ id: `e-${src}-${tgt}`, source: src, target: tgt, type: "default", label: l.label, data: { label: l.label } });
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
return { version: "1.0", name: graphName, projectId: pathMod.basename(projectDir), lastModified: (/* @__PURE__ */ new Date()).toISOString(), nodes, edges };
|
|
119
|
-
}
|
|
120
|
-
async function graphGenerateCommand(name, path, options) {
|
|
121
|
-
const projectDir = path || process.cwd();
|
|
122
|
-
const slug = name.toLowerCase().replace(/[^a-z0-9-]+/g, "-").replace(/-+/g, "-").replace(/^-|-$/g, "");
|
|
123
|
-
try {
|
|
124
|
-
const symbolFilter = options.symbols ? options.symbols.split(",").map((s) => s.trim()) : void 0;
|
|
125
|
-
const groups = options.group?.map((g) => {
|
|
126
|
-
const colonIdx = g.indexOf(":");
|
|
127
|
-
if (colonIdx === -1) {
|
|
128
|
-
console.error(chalk.red(`Invalid group format: "${g}". Expected "Label:#sym1,#sym2"`));
|
|
129
|
-
process.exit(1);
|
|
130
|
-
}
|
|
131
|
-
return { label: g.slice(0, colonIdx), symbols: g.slice(colonIdx + 1).split(",").map((s) => s.trim()) };
|
|
132
|
-
});
|
|
133
|
-
const links = options.link?.map((l) => {
|
|
134
|
-
const arrowIdx = l.indexOf(">");
|
|
135
|
-
if (arrowIdx === -1) {
|
|
136
|
-
console.error(chalk.red(`Invalid link format: "${l}". Expected "Source>Target:label"`));
|
|
137
|
-
process.exit(1);
|
|
138
|
-
}
|
|
139
|
-
const source = l.slice(0, arrowIdx);
|
|
140
|
-
const rest = l.slice(arrowIdx + 1);
|
|
141
|
-
const colonIdx = rest.indexOf(":");
|
|
142
|
-
return { source, target: colonIdx === -1 ? rest : rest.slice(0, colonIdx), label: colonIdx === -1 ? void 0 : rest.slice(colonIdx + 1) };
|
|
143
|
-
});
|
|
144
|
-
const state = cliBuildGraphState(projectDir, symbolFilter, groups, links, name);
|
|
145
|
-
const json = JSON.stringify(state, null, 2);
|
|
146
|
-
const graphsDir = pathMod.join(projectDir, GRAPHS_DIR);
|
|
147
|
-
if (!fs.existsSync(graphsDir)) fs.mkdirSync(graphsDir, { recursive: true });
|
|
148
|
-
const outPath = pathMod.join(graphsDir, `${slug}.graph.json`);
|
|
149
|
-
fs.writeFileSync(outPath, json, "utf8");
|
|
150
|
-
console.log(chalk.green(`Graph saved to ${outPath}`));
|
|
151
|
-
console.log(chalk.gray(`${state.nodes.length} nodes, ${state.edges.length} edges, ${(json.length / 1024).toFixed(1)} KB`));
|
|
152
|
-
console.log(chalk.gray(`
|
|
153
|
-
View: paradigm graph`));
|
|
154
|
-
} catch (error) {
|
|
155
|
-
console.error(chalk.red("Failed to generate graph:"), error.message);
|
|
156
|
-
process.exit(1);
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
export {
|
|
161
|
-
graphCommand,
|
|
162
|
-
cliBuildGraphState,
|
|
163
|
-
graphGenerateCommand
|
|
164
|
-
};
|