@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-VL67H5IC.js
DELETED
|
@@ -1,506 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
generateScanIndex,
|
|
4
|
-
serializeScanIndex
|
|
5
|
-
} from "./chunk-36TKPM5Z.js";
|
|
6
|
-
import {
|
|
7
|
-
aggregateFromDirectory
|
|
8
|
-
} from "./chunk-ZGUAAVMA.js";
|
|
9
|
-
import {
|
|
10
|
-
cliBuildGraphState
|
|
11
|
-
} from "./chunk-J2JEQRT3.js";
|
|
12
|
-
|
|
13
|
-
// src/commands/scan/navigator.ts
|
|
14
|
-
import * as fs from "fs";
|
|
15
|
-
import * as path from "path";
|
|
16
|
-
import * as yaml from "js-yaml";
|
|
17
|
-
import chalk from "chalk";
|
|
18
|
-
import ora from "ora";
|
|
19
|
-
var SYMBOL_CATEGORIES = {
|
|
20
|
-
"@": { category: "features", prefix: "@" },
|
|
21
|
-
"#": { category: "components", prefix: "#" },
|
|
22
|
-
"^": { category: "gates", prefix: "^" },
|
|
23
|
-
"$": { category: "flows", prefix: "$" },
|
|
24
|
-
"&": { category: "integrations", prefix: "&" },
|
|
25
|
-
"!": { category: "signals", prefix: "!" },
|
|
26
|
-
"%": { category: "state", prefix: "%" }
|
|
27
|
-
};
|
|
28
|
-
var DIRECTORY_PATTERNS = {
|
|
29
|
-
features: ["src/features/", "features/", "app/", "src/app/", "src/modules/", "modules/"],
|
|
30
|
-
components: ["src/components/", "components/", "src/lib/", "lib/", "src/ui/", "ui/"],
|
|
31
|
-
gates: ["middleware/", "src/middleware/", "auth/", "src/auth/", "guards/", "src/guards/"],
|
|
32
|
-
flows: ["flows/", "src/flows/", "workflows/", "src/workflows/", "sagas/", "src/sagas/"],
|
|
33
|
-
integrations: ["integrations/", "src/integrations/", "external/", "src/external/", "vendors/"],
|
|
34
|
-
signals: ["events/", "src/events/", "handlers/", "src/handlers/"],
|
|
35
|
-
state: ["stores/", "src/stores/", "state/", "src/state/", "reducers/", "src/reducers/"]
|
|
36
|
-
};
|
|
37
|
-
var KEY_FILE_PATTERNS = {
|
|
38
|
-
config: [
|
|
39
|
-
".paradigm/config.yaml",
|
|
40
|
-
"package.json",
|
|
41
|
-
"tsconfig.json",
|
|
42
|
-
".env.example"
|
|
43
|
-
],
|
|
44
|
-
entry: [
|
|
45
|
-
"src/index.ts",
|
|
46
|
-
"src/index.tsx",
|
|
47
|
-
"src/main.ts",
|
|
48
|
-
"src/main.tsx",
|
|
49
|
-
"index.ts",
|
|
50
|
-
"main.ts",
|
|
51
|
-
"src/app.ts",
|
|
52
|
-
"src/app.tsx"
|
|
53
|
-
],
|
|
54
|
-
types: [
|
|
55
|
-
"src/types/",
|
|
56
|
-
"types/",
|
|
57
|
-
"src/types.ts",
|
|
58
|
-
"types.ts"
|
|
59
|
-
]
|
|
60
|
-
};
|
|
61
|
-
var DEFAULT_SKIP_PATTERNS = {
|
|
62
|
-
always: [
|
|
63
|
-
"node_modules/",
|
|
64
|
-
"dist/",
|
|
65
|
-
"build/",
|
|
66
|
-
".git/",
|
|
67
|
-
".next/",
|
|
68
|
-
".nuxt/",
|
|
69
|
-
".cache/",
|
|
70
|
-
"*.lock",
|
|
71
|
-
"*.log"
|
|
72
|
-
],
|
|
73
|
-
unless_testing: [
|
|
74
|
-
"**/*.test.ts",
|
|
75
|
-
"**/*.test.tsx",
|
|
76
|
-
"**/*.spec.ts",
|
|
77
|
-
"**/*.spec.tsx",
|
|
78
|
-
"__tests__/",
|
|
79
|
-
"test/",
|
|
80
|
-
"tests/"
|
|
81
|
-
],
|
|
82
|
-
unless_docs: [
|
|
83
|
-
"docs/",
|
|
84
|
-
"*.md",
|
|
85
|
-
"README*",
|
|
86
|
-
"CHANGELOG*"
|
|
87
|
-
]
|
|
88
|
-
};
|
|
89
|
-
async function generateNavigator(rootDir, aggregation, options = {}) {
|
|
90
|
-
const spinner = options.quiet ? null : ora();
|
|
91
|
-
spinner?.start("Generating navigator.yaml...");
|
|
92
|
-
const structure = buildStructure(rootDir);
|
|
93
|
-
const keyFiles = buildKeyFiles(rootDir);
|
|
94
|
-
const skipPatterns = buildSkipPatterns(rootDir);
|
|
95
|
-
const symbols = buildSymbolMap(aggregation.symbols, aggregation.purposeFiles, rootDir);
|
|
96
|
-
const navigatorConfig = {
|
|
97
|
-
version: "1.0",
|
|
98
|
-
generated: (/* @__PURE__ */ new Date()).toISOString(),
|
|
99
|
-
structure,
|
|
100
|
-
key_files: keyFiles,
|
|
101
|
-
skip_patterns: skipPatterns,
|
|
102
|
-
symbols
|
|
103
|
-
};
|
|
104
|
-
const outputDir = path.join(rootDir, ".paradigm");
|
|
105
|
-
const outputPath = path.join(outputDir, "navigator.yaml");
|
|
106
|
-
if (!fs.existsSync(outputDir)) {
|
|
107
|
-
fs.mkdirSync(outputDir, { recursive: true });
|
|
108
|
-
}
|
|
109
|
-
fs.writeFileSync(
|
|
110
|
-
outputPath,
|
|
111
|
-
yaml.dump(navigatorConfig, {
|
|
112
|
-
indent: 2,
|
|
113
|
-
lineWidth: 120,
|
|
114
|
-
noRefs: true,
|
|
115
|
-
sortKeys: false
|
|
116
|
-
}),
|
|
117
|
-
"utf8"
|
|
118
|
-
);
|
|
119
|
-
spinner?.succeed(chalk.green("Navigator generated"));
|
|
120
|
-
if (!options.quiet) {
|
|
121
|
-
console.log(chalk.gray(` Output: ${outputPath}`));
|
|
122
|
-
console.log(chalk.gray(` Structure categories: ${Object.keys(structure).length}`));
|
|
123
|
-
console.log(chalk.gray(` Symbol mappings: ${Object.keys(symbols).length}`));
|
|
124
|
-
console.log();
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
function buildStructure(rootDir) {
|
|
128
|
-
const structure = {};
|
|
129
|
-
for (const [category, patterns] of Object.entries(DIRECTORY_PATTERNS)) {
|
|
130
|
-
const existingPaths = patterns.filter((p) => {
|
|
131
|
-
const fullPath = path.join(rootDir, p);
|
|
132
|
-
return fs.existsSync(fullPath);
|
|
133
|
-
});
|
|
134
|
-
if (existingPaths.length > 0) {
|
|
135
|
-
const symbolInfo = Object.values(SYMBOL_CATEGORIES).find(
|
|
136
|
-
(s) => s.category === category
|
|
137
|
-
);
|
|
138
|
-
structure[category] = {
|
|
139
|
-
paths: existingPaths,
|
|
140
|
-
symbol: symbolInfo?.prefix || "@"
|
|
141
|
-
};
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
return structure;
|
|
145
|
-
}
|
|
146
|
-
function buildKeyFiles(rootDir) {
|
|
147
|
-
const keyFiles = {};
|
|
148
|
-
for (const [category, patterns] of Object.entries(KEY_FILE_PATTERNS)) {
|
|
149
|
-
const existingPaths = patterns.filter((p) => {
|
|
150
|
-
const fullPath = path.join(rootDir, p);
|
|
151
|
-
return fs.existsSync(fullPath);
|
|
152
|
-
});
|
|
153
|
-
if (existingPaths.length > 0) {
|
|
154
|
-
keyFiles[category] = existingPaths;
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
if (!keyFiles.config) keyFiles.config = [];
|
|
158
|
-
if (!keyFiles.entry) keyFiles.entry = [];
|
|
159
|
-
if (!keyFiles.types) keyFiles.types = [];
|
|
160
|
-
return keyFiles;
|
|
161
|
-
}
|
|
162
|
-
function buildSkipPatterns(rootDir) {
|
|
163
|
-
const patterns = { ...DEFAULT_SKIP_PATTERNS };
|
|
164
|
-
const gitignorePath = path.join(rootDir, ".gitignore");
|
|
165
|
-
if (fs.existsSync(gitignorePath)) {
|
|
166
|
-
try {
|
|
167
|
-
const content = fs.readFileSync(gitignorePath, "utf8");
|
|
168
|
-
const gitignorePatterns = content.split("\n").map((line) => line.trim()).filter((line) => line && !line.startsWith("#")).filter((line) => {
|
|
169
|
-
return line.endsWith("/") || line.includes("*") || ["node_modules", "dist", "build", ".cache"].some(
|
|
170
|
-
(p) => line.includes(p)
|
|
171
|
-
);
|
|
172
|
-
}).slice(0, 20);
|
|
173
|
-
for (const pattern of gitignorePatterns) {
|
|
174
|
-
if (!patterns.always.includes(pattern)) {
|
|
175
|
-
patterns.always.push(pattern);
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
} catch {
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
return patterns;
|
|
182
|
-
}
|
|
183
|
-
function buildSymbolMap(symbols, purposeFiles, _rootDir) {
|
|
184
|
-
const symbolMap = {};
|
|
185
|
-
const purposeDirs = /* @__PURE__ */ new Map();
|
|
186
|
-
for (const pf of purposeFiles) {
|
|
187
|
-
const dir = path.dirname(pf);
|
|
188
|
-
purposeDirs.set(pf, dir);
|
|
189
|
-
}
|
|
190
|
-
for (const symbol of symbols) {
|
|
191
|
-
const prefix = getSymbolPrefix(symbol.type);
|
|
192
|
-
const symbolId = `${prefix}${symbol.id}`;
|
|
193
|
-
if (symbol.path) {
|
|
194
|
-
symbolMap[symbolId] = symbol.path;
|
|
195
|
-
} else if (symbol.directory) {
|
|
196
|
-
symbolMap[symbolId] = symbol.directory;
|
|
197
|
-
} else {
|
|
198
|
-
const matchingPurpose = purposeFiles.find((pf) => {
|
|
199
|
-
const dir = path.dirname(pf);
|
|
200
|
-
const symbolLower = symbol.id.toLowerCase();
|
|
201
|
-
return dir.toLowerCase().includes(symbolLower);
|
|
202
|
-
});
|
|
203
|
-
if (matchingPurpose) {
|
|
204
|
-
symbolMap[symbolId] = path.dirname(matchingPurpose) + "/";
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
return symbolMap;
|
|
209
|
-
}
|
|
210
|
-
function getSymbolPrefix(type) {
|
|
211
|
-
switch (type) {
|
|
212
|
-
case "feature":
|
|
213
|
-
return "@";
|
|
214
|
-
case "component":
|
|
215
|
-
return "#";
|
|
216
|
-
case "gate":
|
|
217
|
-
return "^";
|
|
218
|
-
case "flow":
|
|
219
|
-
return "$";
|
|
220
|
-
case "integration":
|
|
221
|
-
return "&";
|
|
222
|
-
case "signal":
|
|
223
|
-
return "!";
|
|
224
|
-
case "state":
|
|
225
|
-
return "%";
|
|
226
|
-
case "idea":
|
|
227
|
-
return "?";
|
|
228
|
-
case "deprecated":
|
|
229
|
-
return "~";
|
|
230
|
-
default:
|
|
231
|
-
return "@";
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
// src/commands/scan/index.ts
|
|
236
|
-
import * as fs2 from "fs";
|
|
237
|
-
import * as path2 from "path";
|
|
238
|
-
import chalk2 from "chalk";
|
|
239
|
-
import ora2 from "ora";
|
|
240
|
-
import * as yaml3 from "js-yaml";
|
|
241
|
-
|
|
242
|
-
// src/core/legacy-config.ts
|
|
243
|
-
import * as yaml2 from "js-yaml";
|
|
244
|
-
function parseHorizonConfig(content) {
|
|
245
|
-
return yaml2.load(content);
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
// src/commands/scan/index.ts
|
|
249
|
-
async function indexCommand(targetPath, options) {
|
|
250
|
-
const rootDir = targetPath ? path2.resolve(targetPath) : process.cwd();
|
|
251
|
-
const projectName = path2.basename(rootDir);
|
|
252
|
-
const spinner = ora2();
|
|
253
|
-
const paradigmPath = path2.join(rootDir, ".paradigm");
|
|
254
|
-
const paradigmIsFile = fs2.existsSync(paradigmPath) && fs2.statSync(paradigmPath).isFile();
|
|
255
|
-
let outputPath;
|
|
256
|
-
if (options.output) {
|
|
257
|
-
outputPath = path2.resolve(options.output);
|
|
258
|
-
} else if (paradigmIsFile) {
|
|
259
|
-
outputPath = path2.join(rootDir, ".paradigm-scan-index.json");
|
|
260
|
-
} else {
|
|
261
|
-
outputPath = path2.join(rootDir, ".paradigm", "scan-index.json");
|
|
262
|
-
if (!fs2.existsSync(path2.dirname(outputPath))) {
|
|
263
|
-
fs2.mkdirSync(path2.dirname(outputPath), { recursive: true });
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
if (!options.quiet) {
|
|
267
|
-
console.log(chalk2.blue("\n\u{1F52D} Generating Paradigm Scan Index\n"));
|
|
268
|
-
}
|
|
269
|
-
let scanConfig;
|
|
270
|
-
let graphConfig;
|
|
271
|
-
let tierConfig;
|
|
272
|
-
const configPaths = [
|
|
273
|
-
path2.join(rootDir, ".paradigm"),
|
|
274
|
-
path2.join(rootDir, ".paradigm", "config.yaml")
|
|
275
|
-
];
|
|
276
|
-
for (const configPath of configPaths) {
|
|
277
|
-
if (fs2.existsSync(configPath) && fs2.statSync(configPath).isFile()) {
|
|
278
|
-
try {
|
|
279
|
-
const content = fs2.readFileSync(configPath, "utf8");
|
|
280
|
-
const config = parseHorizonConfig(content);
|
|
281
|
-
const typedConfig = config;
|
|
282
|
-
scanConfig = typedConfig.scan;
|
|
283
|
-
graphConfig = typedConfig.graph;
|
|
284
|
-
const contextConfig = typedConfig.context;
|
|
285
|
-
tierConfig = contextConfig?.tiers;
|
|
286
|
-
break;
|
|
287
|
-
} catch {
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
spinner.start("Aggregating symbols from purpose and portal files...");
|
|
292
|
-
let aggregation;
|
|
293
|
-
try {
|
|
294
|
-
aggregation = await aggregateFromDirectory(rootDir);
|
|
295
|
-
} catch (err) {
|
|
296
|
-
spinner.fail(chalk2.red("Failed to aggregate symbols"));
|
|
297
|
-
console.error(chalk2.gray(err.message));
|
|
298
|
-
process.exit(1);
|
|
299
|
-
}
|
|
300
|
-
spinner.succeed(`Found ${aggregation.symbols.length} symbols`);
|
|
301
|
-
if (!options.quiet) {
|
|
302
|
-
const breakdown = {
|
|
303
|
-
components: aggregation.symbols.filter((s) => s.type === "component").length,
|
|
304
|
-
flows: aggregation.symbols.filter((s) => s.type === "flow").length,
|
|
305
|
-
gates: aggregation.symbols.filter((s) => s.type === "gate").length,
|
|
306
|
-
signals: aggregation.symbols.filter((s) => s.type === "signal").length,
|
|
307
|
-
aspects: aggregation.symbols.filter((s) => s.type === "aspect").length
|
|
308
|
-
};
|
|
309
|
-
console.log(chalk2.gray(" Breakdown:"));
|
|
310
|
-
for (const [type, count] of Object.entries(breakdown)) {
|
|
311
|
-
if (count > 0) {
|
|
312
|
-
console.log(chalk2.gray(` ${type}: ${count}`));
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
console.log();
|
|
316
|
-
}
|
|
317
|
-
spinner.start("Generating scan index...");
|
|
318
|
-
const index = generateScanIndex(
|
|
319
|
-
{
|
|
320
|
-
symbols: aggregation.symbols,
|
|
321
|
-
purposeFiles: aggregation.purposeFiles,
|
|
322
|
-
portalFiles: aggregation.portalFiles
|
|
323
|
-
},
|
|
324
|
-
{
|
|
325
|
-
projectName,
|
|
326
|
-
visualTagMappings: scanConfig?.visualTagMappings,
|
|
327
|
-
screenDefinitions: scanConfig?.screens
|
|
328
|
-
}
|
|
329
|
-
);
|
|
330
|
-
classifyTiers(index, { hot: tierConfig?.["hot-threshold"], warm: tierConfig?.["warm-threshold"] });
|
|
331
|
-
try {
|
|
332
|
-
fs2.writeFileSync(outputPath, serializeScanIndex(index), "utf8");
|
|
333
|
-
spinner.succeed(chalk2.green("Scan index generated"));
|
|
334
|
-
} catch (err) {
|
|
335
|
-
spinner.fail(chalk2.red("Failed to write scan index"));
|
|
336
|
-
console.error(chalk2.gray(err.message));
|
|
337
|
-
process.exit(1);
|
|
338
|
-
}
|
|
339
|
-
await generateNavigator(rootDir, aggregation, { quiet: options.quiet });
|
|
340
|
-
const flowIndex = await generateFlowIndex(rootDir, aggregation.purposeFiles, { quiet: options.quiet });
|
|
341
|
-
if (flowIndex && Object.keys(flowIndex.flows).length > 0) {
|
|
342
|
-
const flowIndexPath = path2.join(rootDir, ".paradigm", "flow-index.json");
|
|
343
|
-
fs2.writeFileSync(flowIndexPath, JSON.stringify(flowIndex, null, 2), "utf8");
|
|
344
|
-
if (!options.quiet) {
|
|
345
|
-
spinner.succeed(chalk2.green(`Flow index generated (${Object.keys(flowIndex.flows).length} flows)`));
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
const autoGenerate = graphConfig?.["auto-generate"] !== false;
|
|
349
|
-
if (autoGenerate) {
|
|
350
|
-
try {
|
|
351
|
-
const graphState = cliBuildGraphState(rootDir);
|
|
352
|
-
const graphsDir = path2.join(rootDir, ".paradigm", "graphs");
|
|
353
|
-
if (!fs2.existsSync(graphsDir)) fs2.mkdirSync(graphsDir, { recursive: true });
|
|
354
|
-
const graphPath = path2.join(graphsDir, "auto.graph.json");
|
|
355
|
-
fs2.writeFileSync(graphPath, JSON.stringify(graphState, null, 2), "utf8");
|
|
356
|
-
if (!options.quiet) {
|
|
357
|
-
spinner.succeed(chalk2.green(`Symbol graph updated (${graphState.nodes.length} nodes)`));
|
|
358
|
-
}
|
|
359
|
-
} catch {
|
|
360
|
-
if (!options.quiet) {
|
|
361
|
-
spinner.warn(chalk2.yellow("Could not auto-generate symbol graph"));
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
if (!options.quiet) {
|
|
366
|
-
console.log(chalk2.gray(`
|
|
367
|
-
Output: ${outputPath}`));
|
|
368
|
-
console.log(chalk2.gray(` Components: ${Object.keys(index.components).length}`));
|
|
369
|
-
console.log(chalk2.gray(` Features: ${Object.keys(index.features).length}`));
|
|
370
|
-
console.log(chalk2.gray(` Flows: ${Object.keys(index.flows).length}`));
|
|
371
|
-
console.log(chalk2.gray(` State: ${Object.keys(index.state).length}`));
|
|
372
|
-
console.log(chalk2.gray(` Gates: ${Object.keys(index.gates).length}`));
|
|
373
|
-
console.log(chalk2.gray(` Signals: ${Object.keys(index.signals).length}`));
|
|
374
|
-
console.log();
|
|
375
|
-
console.log(chalk2.blue('\u2728 Scan index ready for "paradigm probe" queries'));
|
|
376
|
-
console.log(chalk2.gray(' Attach an image and say "paradigm probe" to map UI to code\n'));
|
|
377
|
-
}
|
|
378
|
-
return index;
|
|
379
|
-
}
|
|
380
|
-
function classifyTiers(index, config) {
|
|
381
|
-
const hotThreshold = config?.hot ?? 15;
|
|
382
|
-
const warmThreshold = config?.warm ?? 5;
|
|
383
|
-
const refCounts = /* @__PURE__ */ new Map();
|
|
384
|
-
const allSections = ["components", "flows", "gates", "signals", "aspects", "features", "state"];
|
|
385
|
-
for (const section of allSections) {
|
|
386
|
-
const entries = index[section];
|
|
387
|
-
if (!entries) continue;
|
|
388
|
-
for (const [, entry] of Object.entries(entries)) {
|
|
389
|
-
const refs = entry.related;
|
|
390
|
-
if (refs) {
|
|
391
|
-
for (const ref of refs) {
|
|
392
|
-
const stripped = ref.replace(/^[#$^!~]/, "");
|
|
393
|
-
refCounts.set(stripped, (refCounts.get(stripped) || 0) + 1);
|
|
394
|
-
}
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
for (const section of allSections) {
|
|
399
|
-
const entries = index[section];
|
|
400
|
-
if (!entries) continue;
|
|
401
|
-
for (const [id, entry] of Object.entries(entries)) {
|
|
402
|
-
const refs = refCounts.get(id) || 0;
|
|
403
|
-
const visualTags = entry.visualTags || [];
|
|
404
|
-
const centrality = visualTags.length;
|
|
405
|
-
const score = refs * 3 + centrality;
|
|
406
|
-
entry.tier = score > hotThreshold ? "hot" : score > warmThreshold ? "warm" : "cold";
|
|
407
|
-
}
|
|
408
|
-
}
|
|
409
|
-
}
|
|
410
|
-
async function generateFlowIndex(rootDir, purposeFiles, options) {
|
|
411
|
-
const flows = {};
|
|
412
|
-
const symbolToFlows = {};
|
|
413
|
-
for (const filePath of purposeFiles) {
|
|
414
|
-
try {
|
|
415
|
-
const content = fs2.readFileSync(filePath, "utf8");
|
|
416
|
-
const data = yaml3.load(content);
|
|
417
|
-
if (!data?.flows) continue;
|
|
418
|
-
if (Array.isArray(data.flows)) {
|
|
419
|
-
for (const flowItem of data.flows) {
|
|
420
|
-
const flow = flowItem;
|
|
421
|
-
if (!flow.name) continue;
|
|
422
|
-
const flowId = `$${flow.name}`;
|
|
423
|
-
const steps = parseFlowSteps(flow.steps);
|
|
424
|
-
if (steps.length > 0) {
|
|
425
|
-
const testableFlow = {
|
|
426
|
-
id: flowId,
|
|
427
|
-
description: flow.description || "",
|
|
428
|
-
steps,
|
|
429
|
-
definedIn: path2.relative(rootDir, filePath)
|
|
430
|
-
};
|
|
431
|
-
flows[flowId] = testableFlow;
|
|
432
|
-
indexFlowSymbols(flowId, steps, symbolToFlows);
|
|
433
|
-
}
|
|
434
|
-
}
|
|
435
|
-
} else {
|
|
436
|
-
for (const [name, flowDef] of Object.entries(data.flows)) {
|
|
437
|
-
const flowId = name.startsWith("$") ? name : `$${name}`;
|
|
438
|
-
const steps = parseFlowSteps(flowDef.steps);
|
|
439
|
-
if (steps.length > 0) {
|
|
440
|
-
const testableFlow = {
|
|
441
|
-
id: flowId,
|
|
442
|
-
description: flowDef.description || "",
|
|
443
|
-
trigger: flowDef.trigger,
|
|
444
|
-
steps,
|
|
445
|
-
validation: flowDef.validation,
|
|
446
|
-
definedIn: path2.relative(rootDir, filePath)
|
|
447
|
-
};
|
|
448
|
-
flows[flowId] = testableFlow;
|
|
449
|
-
indexFlowSymbols(flowId, steps, symbolToFlows);
|
|
450
|
-
}
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
} catch (err) {
|
|
454
|
-
if (!options.quiet) {
|
|
455
|
-
console.warn(chalk2.yellow(` Warning: Could not parse flows from ${filePath}: ${err.message}`));
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
|
-
}
|
|
459
|
-
if (Object.keys(flows).length === 0) {
|
|
460
|
-
return null;
|
|
461
|
-
}
|
|
462
|
-
return {
|
|
463
|
-
version: "1.0",
|
|
464
|
-
generatedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
465
|
-
flows,
|
|
466
|
-
symbolToFlows
|
|
467
|
-
};
|
|
468
|
-
}
|
|
469
|
-
function parseFlowSteps(steps) {
|
|
470
|
-
if (!steps || !Array.isArray(steps)) return [];
|
|
471
|
-
const result = [];
|
|
472
|
-
for (let index = 0; index < steps.length; index++) {
|
|
473
|
-
const step = steps[index];
|
|
474
|
-
if (typeof step === "object" && step !== null) {
|
|
475
|
-
const s = step;
|
|
476
|
-
const action = s.action || s.description || s.component || "";
|
|
477
|
-
if (action) {
|
|
478
|
-
result.push({
|
|
479
|
-
id: s.id || `step-${index + 1}`,
|
|
480
|
-
action,
|
|
481
|
-
symbol: s.symbol || s.component,
|
|
482
|
-
expect: s.expect
|
|
483
|
-
});
|
|
484
|
-
}
|
|
485
|
-
}
|
|
486
|
-
}
|
|
487
|
-
return result;
|
|
488
|
-
}
|
|
489
|
-
function indexFlowSymbols(flowId, steps, symbolToFlows) {
|
|
490
|
-
for (const step of steps) {
|
|
491
|
-
if (step.symbol) {
|
|
492
|
-
if (!symbolToFlows[step.symbol]) {
|
|
493
|
-
symbolToFlows[step.symbol] = [];
|
|
494
|
-
}
|
|
495
|
-
if (!symbolToFlows[step.symbol].includes(flowId)) {
|
|
496
|
-
symbolToFlows[step.symbol].push(flowId);
|
|
497
|
-
}
|
|
498
|
-
}
|
|
499
|
-
}
|
|
500
|
-
}
|
|
501
|
-
|
|
502
|
-
export {
|
|
503
|
-
generateNavigator,
|
|
504
|
-
indexCommand,
|
|
505
|
-
generateFlowIndex
|
|
506
|
-
};
|