@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,88 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
aggregateFromDirectory,
|
|
4
|
-
aggregateFromPremise,
|
|
5
|
-
buildSymbolIndex,
|
|
6
|
-
getSymbolCounts,
|
|
7
|
-
parsePremiseFile
|
|
8
|
-
} from "./chunk-ZGUAAVMA.js";
|
|
9
|
-
import "./chunk-EDOAWN7J.js";
|
|
10
|
-
import "./chunk-IRKUEJVW.js";
|
|
11
|
-
import "./chunk-PDX44BCA.js";
|
|
12
|
-
|
|
13
|
-
// src/commands/premise/aggregate.ts
|
|
14
|
-
import * as fs from "fs";
|
|
15
|
-
import * as path from "path";
|
|
16
|
-
import chalk from "chalk";
|
|
17
|
-
import ora from "ora";
|
|
18
|
-
async function premiseAggregateCommand(targetPath) {
|
|
19
|
-
const cwd = process.cwd();
|
|
20
|
-
const absolutePath = path.resolve(cwd, targetPath);
|
|
21
|
-
console.log(chalk.blue("\n\u{1F52E} Aggregating Premise...\n"));
|
|
22
|
-
const spinner = ora("Loading sources...").start();
|
|
23
|
-
try {
|
|
24
|
-
let result;
|
|
25
|
-
const premisePath = path.join(absolutePath, ".premise");
|
|
26
|
-
if (fs.existsSync(premisePath)) {
|
|
27
|
-
const { data, errors } = parsePremiseFile(premisePath);
|
|
28
|
-
if (errors.length > 0) {
|
|
29
|
-
spinner.warn("Warnings parsing .premise file");
|
|
30
|
-
for (const error of errors) {
|
|
31
|
-
console.log(chalk.yellow(` \u26A0 ${error}`));
|
|
32
|
-
}
|
|
33
|
-
console.log(chalk.gray(" Falling back to directory aggregation...\n"));
|
|
34
|
-
}
|
|
35
|
-
if (data && !errors.some((e) => e.includes("Required"))) {
|
|
36
|
-
try {
|
|
37
|
-
result = await aggregateFromPremise(data, absolutePath);
|
|
38
|
-
} catch (error) {
|
|
39
|
-
console.log(chalk.yellow(` \u26A0 Error using .premise file: ${error.message}`));
|
|
40
|
-
console.log(chalk.gray(" Falling back to directory aggregation...\n"));
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
if (!result) {
|
|
45
|
-
result = await aggregateFromDirectory(absolutePath);
|
|
46
|
-
}
|
|
47
|
-
spinner.succeed("Aggregated all sources");
|
|
48
|
-
const index = buildSymbolIndex(result);
|
|
49
|
-
const counts = getSymbolCounts(index);
|
|
50
|
-
console.log(chalk.white("\nSources"));
|
|
51
|
-
console.log(chalk.gray("\u2500".repeat(40)));
|
|
52
|
-
console.log(` Purpose files: ${chalk.cyan(result.purposeFiles.length.toString())}`);
|
|
53
|
-
console.log(` Gate files: ${chalk.cyan(result.portalFiles.length.toString())}`);
|
|
54
|
-
console.log(chalk.white("\nSymbol Index"));
|
|
55
|
-
console.log(chalk.gray("\u2500".repeat(40)));
|
|
56
|
-
const symbolLines = [
|
|
57
|
-
{ prefix: "#", name: "Components", count: counts.component, color: chalk.green },
|
|
58
|
-
{ prefix: "$", name: "Flows", count: counts.flow, color: chalk.yellow },
|
|
59
|
-
{ prefix: "^", name: "Gates", count: counts.gate, color: chalk.red },
|
|
60
|
-
{ prefix: "!", name: "Signals", count: counts.signal, color: chalk.cyan },
|
|
61
|
-
{ prefix: "~", name: "Aspects", count: counts.aspect, color: chalk.magenta }
|
|
62
|
-
];
|
|
63
|
-
for (const { prefix, name, count, color } of symbolLines) {
|
|
64
|
-
if (count > 0) {
|
|
65
|
-
console.log(` ${color(prefix)} ${name.padEnd(12)} ${chalk.cyan(count.toString())}`);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
const total = Object.values(counts).reduce((a, b) => a + b, 0);
|
|
69
|
-
console.log(chalk.gray("\u2500".repeat(40)));
|
|
70
|
-
console.log(` Total: ${chalk.cyan(total.toString())}`);
|
|
71
|
-
if (result.errors.length > 0) {
|
|
72
|
-
console.log(chalk.yellow("\nErrors"));
|
|
73
|
-
console.log(chalk.gray("\u2500".repeat(40)));
|
|
74
|
-
for (const error of result.errors) {
|
|
75
|
-
console.log(chalk.red(` \u2717 [${error.source}] ${error.filePath}: ${error.message}`));
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
console.log("");
|
|
79
|
-
} catch (error) {
|
|
80
|
-
spinner.fail("Aggregation failed");
|
|
81
|
-
console.log(chalk.red(`Error: ${error.message}
|
|
82
|
-
`));
|
|
83
|
-
process.exit(1);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
export {
|
|
87
|
-
premiseAggregateCommand
|
|
88
|
-
};
|
package/dist/assess-4WVXZLZQ.js
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
addAssessment,
|
|
4
|
-
loadLoreEntry
|
|
5
|
-
} from "./chunk-EKGMAM62.js";
|
|
6
|
-
import "./chunk-PDX44BCA.js";
|
|
7
|
-
|
|
8
|
-
// src/commands/lore/assess.ts
|
|
9
|
-
import chalk from "chalk";
|
|
10
|
-
async function loreAssessCommand(id, verdict, options) {
|
|
11
|
-
const rootDir = process.cwd();
|
|
12
|
-
const validVerdicts = ["correct", "partial", "incorrect"];
|
|
13
|
-
if (!validVerdicts.includes(verdict)) {
|
|
14
|
-
console.error(chalk.red(`
|
|
15
|
-
Invalid verdict: "${verdict}". Must be one of: correct, partial, incorrect
|
|
16
|
-
`));
|
|
17
|
-
process.exit(1);
|
|
18
|
-
}
|
|
19
|
-
const entry = await loadLoreEntry(rootDir, id);
|
|
20
|
-
if (!entry) {
|
|
21
|
-
console.error(chalk.red(`
|
|
22
|
-
Entry not found: ${id}
|
|
23
|
-
`));
|
|
24
|
-
process.exit(1);
|
|
25
|
-
}
|
|
26
|
-
const success = await addAssessment(rootDir, id, {
|
|
27
|
-
verdict,
|
|
28
|
-
assessed_by: options.assessor || "unknown",
|
|
29
|
-
assessed_at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
30
|
-
notes: options.notes
|
|
31
|
-
});
|
|
32
|
-
if (success) {
|
|
33
|
-
const verdictColors = {
|
|
34
|
-
correct: chalk.green,
|
|
35
|
-
partial: chalk.yellow,
|
|
36
|
-
incorrect: chalk.red
|
|
37
|
-
};
|
|
38
|
-
const colorFn = verdictColors[verdict] || chalk.white;
|
|
39
|
-
console.log(chalk.green(`
|
|
40
|
-
Assessment recorded for ${id}`));
|
|
41
|
-
console.log(` Verdict: ${colorFn(verdict)}`);
|
|
42
|
-
if (entry.confidence != null) {
|
|
43
|
-
const impliedScore = verdict === "correct" ? 1 : verdict === "partial" ? 0.5 : 0;
|
|
44
|
-
const delta = impliedScore - entry.confidence;
|
|
45
|
-
const deltaStr = `${delta > 0 ? "+" : ""}${delta.toFixed(2)}`;
|
|
46
|
-
const deltaColor = Math.abs(delta) <= 0.1 ? chalk.green : Math.abs(delta) <= 0.3 ? chalk.yellow : chalk.red;
|
|
47
|
-
console.log(` Confidence: ${entry.confidence.toFixed(2)} | Delta: ${deltaColor(deltaStr)}`);
|
|
48
|
-
if (delta > 0.1) {
|
|
49
|
-
console.log(chalk.gray(" Under-confident (outcome better than predicted)"));
|
|
50
|
-
} else if (delta < -0.1) {
|
|
51
|
-
console.log(chalk.gray(" Over-confident (outcome worse than predicted)"));
|
|
52
|
-
} else {
|
|
53
|
-
console.log(chalk.gray(" Well-calibrated"));
|
|
54
|
-
}
|
|
55
|
-
} else {
|
|
56
|
-
console.log(chalk.gray(" No confidence recorded \u2014 delta not computed"));
|
|
57
|
-
}
|
|
58
|
-
console.log();
|
|
59
|
-
} else {
|
|
60
|
-
console.error(chalk.red(`
|
|
61
|
-
Failed to assess entry: ${id}
|
|
62
|
-
`));
|
|
63
|
-
process.exit(1);
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
export {
|
|
67
|
-
loreAssessCommand
|
|
68
|
-
};
|
package/dist/auto-QFS5NHQU.js
DELETED
|
@@ -1,504 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
getDisciplineScanPatterns
|
|
4
|
-
} from "./chunk-UPLDI7CN.js";
|
|
5
|
-
import "./chunk-PDX44BCA.js";
|
|
6
|
-
|
|
7
|
-
// src/commands/scan/auto.ts
|
|
8
|
-
import * as fs from "fs";
|
|
9
|
-
import * as path from "path";
|
|
10
|
-
import chalk from "chalk";
|
|
11
|
-
import ora from "ora";
|
|
12
|
-
import * as yaml from "js-yaml";
|
|
13
|
-
var SCAN_PATTERNS = {
|
|
14
|
-
components: [
|
|
15
|
-
"**/*.tsx",
|
|
16
|
-
"**/*.jsx",
|
|
17
|
-
"**/*.vue",
|
|
18
|
-
"**/components/**/*.ts",
|
|
19
|
-
"**/components/**/*.js"
|
|
20
|
-
],
|
|
21
|
-
routes: [
|
|
22
|
-
"**/routes.ts",
|
|
23
|
-
"**/routes.tsx",
|
|
24
|
-
"**/router.ts",
|
|
25
|
-
"**/app.ts",
|
|
26
|
-
"**/server.ts",
|
|
27
|
-
"**/api/**/*.ts",
|
|
28
|
-
"**/pages/**/*.tsx",
|
|
29
|
-
"**/app/**/page.tsx"
|
|
30
|
-
// Next.js app router
|
|
31
|
-
],
|
|
32
|
-
auth: [
|
|
33
|
-
"**/middleware/**/*.ts",
|
|
34
|
-
"**/auth/**/*.ts",
|
|
35
|
-
"**/guards/**/*.ts"
|
|
36
|
-
]
|
|
37
|
-
};
|
|
38
|
-
var IGNORE_PATTERNS = [
|
|
39
|
-
"node_modules",
|
|
40
|
-
"dist",
|
|
41
|
-
"build",
|
|
42
|
-
".next",
|
|
43
|
-
".nuxt",
|
|
44
|
-
"coverage",
|
|
45
|
-
"__tests__",
|
|
46
|
-
"*.test.*",
|
|
47
|
-
"*.spec.*"
|
|
48
|
-
];
|
|
49
|
-
function matchesPattern(filePath, pattern) {
|
|
50
|
-
const regexPattern = pattern.replace(/\*\*/g, "{{DOUBLE}}").replace(/\*/g, "[^/]*").replace(/{{DOUBLE}}/g, ".*").replace(/\//g, "\\/");
|
|
51
|
-
return new RegExp(regexPattern).test(filePath);
|
|
52
|
-
}
|
|
53
|
-
function shouldIgnore(filePath) {
|
|
54
|
-
return IGNORE_PATTERNS.some((pattern) => {
|
|
55
|
-
if (pattern.includes("*")) {
|
|
56
|
-
return matchesPattern(filePath, pattern);
|
|
57
|
-
}
|
|
58
|
-
return filePath.includes(pattern);
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
function findFiles(dir, patterns) {
|
|
62
|
-
const results = [];
|
|
63
|
-
function walk(currentDir) {
|
|
64
|
-
try {
|
|
65
|
-
const entries = fs.readdirSync(currentDir, { withFileTypes: true });
|
|
66
|
-
for (const entry of entries) {
|
|
67
|
-
const fullPath = path.join(currentDir, entry.name);
|
|
68
|
-
const relativePath = path.relative(dir, fullPath);
|
|
69
|
-
if (shouldIgnore(relativePath)) continue;
|
|
70
|
-
if (entry.isDirectory()) {
|
|
71
|
-
walk(fullPath);
|
|
72
|
-
} else if (entry.isFile()) {
|
|
73
|
-
for (const pattern of patterns) {
|
|
74
|
-
if (matchesPattern(relativePath, pattern)) {
|
|
75
|
-
results.push(fullPath);
|
|
76
|
-
break;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
} catch {
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
walk(dir);
|
|
85
|
-
return results;
|
|
86
|
-
}
|
|
87
|
-
function extractComponentName(content, filePath) {
|
|
88
|
-
const reactMatch = content.match(/export\s+(?:default\s+)?(?:function|const|class)\s+([A-Z][a-zA-Z0-9]*)/);
|
|
89
|
-
if (reactMatch) return reactMatch[1];
|
|
90
|
-
const vueMatch = content.match(/name:\s*['"]([A-Z][a-zA-Z0-9]*)['"]/);
|
|
91
|
-
if (vueMatch) return vueMatch[1];
|
|
92
|
-
const basename2 = path.basename(filePath, path.extname(filePath));
|
|
93
|
-
if (/^[A-Z]/.test(basename2)) return basename2;
|
|
94
|
-
return null;
|
|
95
|
-
}
|
|
96
|
-
function detectComponents(rootDir) {
|
|
97
|
-
const symbols = [];
|
|
98
|
-
const files = findFiles(rootDir, SCAN_PATTERNS.components);
|
|
99
|
-
for (const filePath of files) {
|
|
100
|
-
try {
|
|
101
|
-
const content = fs.readFileSync(filePath, "utf8");
|
|
102
|
-
const relativePath = path.relative(rootDir, filePath);
|
|
103
|
-
const jsdocMatch = content.match(/@component\s+([^\n]+)/);
|
|
104
|
-
if (jsdocMatch) {
|
|
105
|
-
symbols.push({
|
|
106
|
-
id: jsdocMatch[1].trim().replace(/[^a-zA-Z0-9-]/g, "-").toLowerCase(),
|
|
107
|
-
type: "component",
|
|
108
|
-
description: jsdocMatch[1].trim(),
|
|
109
|
-
source: relativePath,
|
|
110
|
-
confidence: "high"
|
|
111
|
-
});
|
|
112
|
-
continue;
|
|
113
|
-
}
|
|
114
|
-
const componentName = extractComponentName(content, filePath);
|
|
115
|
-
if (componentName) {
|
|
116
|
-
if (["Index", "App", "Main", "Root"].includes(componentName)) continue;
|
|
117
|
-
const id = componentName.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase();
|
|
118
|
-
symbols.push({
|
|
119
|
-
id,
|
|
120
|
-
type: "component",
|
|
121
|
-
description: `${componentName} component`,
|
|
122
|
-
source: relativePath,
|
|
123
|
-
confidence: "medium"
|
|
124
|
-
});
|
|
125
|
-
}
|
|
126
|
-
} catch {
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
return symbols;
|
|
130
|
-
}
|
|
131
|
-
function detectRoutes(rootDir) {
|
|
132
|
-
const symbols = [];
|
|
133
|
-
const files = findFiles(rootDir, SCAN_PATTERNS.routes);
|
|
134
|
-
for (const filePath of files) {
|
|
135
|
-
try {
|
|
136
|
-
const content = fs.readFileSync(filePath, "utf8");
|
|
137
|
-
const relativePath = path.relative(rootDir, filePath);
|
|
138
|
-
if (relativePath.includes("/app/") && relativePath.endsWith("page.tsx")) {
|
|
139
|
-
const routePath = relativePath.replace(/^.*\/app/, "").replace(/\/page\.tsx$/, "").replace(/\[([^\]]+)\]/g, ":$1") || "/";
|
|
140
|
-
const id = routePath.replace(/^\//, "").replace(/\//g, "-").replace(/:/g, "").toLowerCase() || "home";
|
|
141
|
-
symbols.push({
|
|
142
|
-
id: `${id}-page`,
|
|
143
|
-
type: "flow",
|
|
144
|
-
description: `Page route: ${routePath}`,
|
|
145
|
-
source: relativePath,
|
|
146
|
-
confidence: "high"
|
|
147
|
-
});
|
|
148
|
-
continue;
|
|
149
|
-
}
|
|
150
|
-
const expressMatches = content.matchAll(/(?:app|router)\.(get|post|put|patch|delete)\s*\(\s*['"]([^'"]+)['"]/gi);
|
|
151
|
-
for (const match of expressMatches) {
|
|
152
|
-
const [, method, route] = match;
|
|
153
|
-
const id = route.replace(/^\//, "").replace(/\//g, "-").replace(/:/g, "").toLowerCase() || "root";
|
|
154
|
-
symbols.push({
|
|
155
|
-
id: `${method.toLowerCase()}-${id}`,
|
|
156
|
-
type: "flow",
|
|
157
|
-
description: `${method.toUpperCase()} ${route}`,
|
|
158
|
-
source: relativePath,
|
|
159
|
-
confidence: "high"
|
|
160
|
-
});
|
|
161
|
-
}
|
|
162
|
-
const reactRouterMatches = content.matchAll(/<Route[^>]+path=["']([^"']+)["']/gi);
|
|
163
|
-
for (const match of reactRouterMatches) {
|
|
164
|
-
const route = match[1];
|
|
165
|
-
const id = route.replace(/^\//, "").replace(/\//g, "-").replace(/:/g, "").toLowerCase() || "home";
|
|
166
|
-
symbols.push({
|
|
167
|
-
id: `${id}-route`,
|
|
168
|
-
type: "flow",
|
|
169
|
-
description: `Route: ${route}`,
|
|
170
|
-
source: relativePath,
|
|
171
|
-
confidence: "medium"
|
|
172
|
-
});
|
|
173
|
-
}
|
|
174
|
-
} catch {
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
return symbols;
|
|
178
|
-
}
|
|
179
|
-
function detectAuth(rootDir) {
|
|
180
|
-
const symbols = [];
|
|
181
|
-
const authFiles = findFiles(rootDir, SCAN_PATTERNS.auth);
|
|
182
|
-
const allFiles = findFiles(rootDir, ["**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx"]);
|
|
183
|
-
const files = [.../* @__PURE__ */ new Set([...authFiles, ...allFiles.slice(0, 100)])];
|
|
184
|
-
const authPatterns = [
|
|
185
|
-
{ pattern: /isAuthenticated|requireAuth|authMiddleware|withAuth|useAuth/i, id: "authenticated", desc: "User must be authenticated" },
|
|
186
|
-
{ pattern: /isAdmin|requireAdmin|adminOnly|adminRequired/i, id: "admin-only", desc: "Admin access required" },
|
|
187
|
-
{ pattern: /hasRole|requireRole|checkRole|roleGuard/i, id: "role-required", desc: "Specific role required" },
|
|
188
|
-
{ pattern: /hasPermission|requirePermission|checkPermission|canAccess/i, id: "permission-required", desc: "Specific permission required" },
|
|
189
|
-
{ pattern: /isSubscribed|requireSubscription|premiumOnly|subscriptionRequired|isPremium/i, id: "subscription-required", desc: "Subscription required" },
|
|
190
|
-
{ pattern: /isOwner|requireOwner|ownerOnly/i, id: "owner-only", desc: "Resource owner access required" },
|
|
191
|
-
{ pattern: /isVerified|requireVerification|verifiedOnly/i, id: "verified-required", desc: "Email verification required" },
|
|
192
|
-
{ pattern: /rateLimit|rateLimiter|throttle/i, id: "rate-limited", desc: "Rate limiting applied" },
|
|
193
|
-
{ pattern: /csrf|csrfProtection|xsrf/i, id: "csrf-protected", desc: "CSRF protection required" }
|
|
194
|
-
];
|
|
195
|
-
const rlsPatterns = [
|
|
196
|
-
{ pattern: /\.rls\s*\(|enableRLS|row.*level.*security/i, id: "rls-enabled", desc: "Row-level security enabled" },
|
|
197
|
-
{ pattern: /auth\.uid\(\)|current_user|session_user/i, id: "user-scoped", desc: "Data scoped to current user" }
|
|
198
|
-
];
|
|
199
|
-
for (const filePath of files) {
|
|
200
|
-
try {
|
|
201
|
-
const content = fs.readFileSync(filePath, "utf8");
|
|
202
|
-
const relativePath = path.relative(rootDir, filePath);
|
|
203
|
-
for (const { pattern, id, desc } of [...authPatterns, ...rlsPatterns]) {
|
|
204
|
-
if (pattern.test(content)) {
|
|
205
|
-
if (!symbols.find((s) => s.id === id)) {
|
|
206
|
-
symbols.push({
|
|
207
|
-
id,
|
|
208
|
-
type: "gate",
|
|
209
|
-
description: desc,
|
|
210
|
-
source: relativePath,
|
|
211
|
-
confidence: "high"
|
|
212
|
-
});
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
if (/ProtectedRoute|PrivateRoute|AuthRoute|GuardedRoute/i.test(content)) {
|
|
217
|
-
if (!symbols.find((s) => s.id === "route-protected")) {
|
|
218
|
-
symbols.push({
|
|
219
|
-
id: "route-protected",
|
|
220
|
-
type: "gate",
|
|
221
|
-
description: "Route requires authentication",
|
|
222
|
-
source: relativePath,
|
|
223
|
-
confidence: "high"
|
|
224
|
-
});
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
} catch {
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
return symbols;
|
|
231
|
-
}
|
|
232
|
-
function detectSignals(rootDir) {
|
|
233
|
-
const symbols = [];
|
|
234
|
-
const allFiles = findFiles(rootDir, ["**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx"]);
|
|
235
|
-
const signalPatterns = [
|
|
236
|
-
// Event emitters
|
|
237
|
-
{ pattern: /emit\s*\(\s*['"]([^'"]+)['"]/, type: "event", category: "emit" },
|
|
238
|
-
{ pattern: /dispatch\s*\(\s*\{?\s*type:\s*['"]([^'"]+)['"]/, type: "event", category: "redux" },
|
|
239
|
-
{ pattern: /dispatchEvent\s*\(\s*new\s+\w+\s*\(\s*['"]([^'"]+)['"]/, type: "event", category: "dom" },
|
|
240
|
-
// Error types
|
|
241
|
-
{ pattern: /throw\s+new\s+(\w+Error)/, type: "error", category: "exception" },
|
|
242
|
-
{ pattern: /new\s+(ApiError|HttpError|ValidationError|AuthError)\s*\(/, type: "error", category: "api" },
|
|
243
|
-
// Logging
|
|
244
|
-
{ pattern: /log\.(error|warn)\s*\(\s*['"]([^'"]+)['"]/, type: "log", category: "logging" },
|
|
245
|
-
{ pattern: /console\.(error|warn)\s*\(\s*['"]([^'"]+)['"]/, type: "log", category: "console" },
|
|
246
|
-
// Toast/Notifications
|
|
247
|
-
{ pattern: /toast\.(success|error|warning|info)\s*\(\s*['"]([^'"]+)['"]/, type: "notification", category: "toast" },
|
|
248
|
-
{ pattern: /notify\s*\(\s*\{[^}]*message:\s*['"]([^'"]+)['"]/, type: "notification", category: "notify" },
|
|
249
|
-
{ pattern: /showNotification\s*\(\s*['"]([^'"]+)['"]/, type: "notification", category: "notification" },
|
|
250
|
-
// Analytics
|
|
251
|
-
{ pattern: /track\s*\(\s*['"]([^'"]+)['"]/, type: "analytics", category: "tracking" },
|
|
252
|
-
{ pattern: /analytics\.(track|page|identify)\s*\(\s*['"]([^'"]+)['"]/, type: "analytics", category: "analytics" },
|
|
253
|
-
{ pattern: /gtag\s*\(\s*['"]event['"]\s*,\s*['"]([^'"]+)['"]/, type: "analytics", category: "ga" },
|
|
254
|
-
// Paradigm signals (if already using)
|
|
255
|
-
{ pattern: /log\.signal\s*\(\s*['"]!?([^'"]+)['"]/, type: "signal", category: "paradigm" }
|
|
256
|
-
];
|
|
257
|
-
const seen = /* @__PURE__ */ new Set();
|
|
258
|
-
for (const filePath of allFiles.slice(0, 100)) {
|
|
259
|
-
try {
|
|
260
|
-
const content = fs.readFileSync(filePath, "utf8");
|
|
261
|
-
const relativePath = path.relative(rootDir, filePath);
|
|
262
|
-
for (const { pattern, type, category } of signalPatterns) {
|
|
263
|
-
const matches = content.matchAll(new RegExp(pattern, "gi"));
|
|
264
|
-
for (const match of matches) {
|
|
265
|
-
const name = match[1] || match[2];
|
|
266
|
-
if (!name || seen.has(name)) continue;
|
|
267
|
-
if (name.length < 3 || name.length > 50) continue;
|
|
268
|
-
if (/^[a-z]$|^%s|^\$\{/.test(name)) continue;
|
|
269
|
-
seen.add(name);
|
|
270
|
-
const id = name.replace(/([a-z])([A-Z])/g, "$1-$2").replace(/Error$/, "").replace(/[^a-zA-Z0-9-]/g, "-").toLowerCase();
|
|
271
|
-
const confidence = category === "paradigm" ? "high" : type === "error" || type === "event" ? "medium" : "low";
|
|
272
|
-
symbols.push({
|
|
273
|
-
id,
|
|
274
|
-
type: "signal",
|
|
275
|
-
description: `${type === "error" ? "Error: " : type === "analytics" ? "Event: " : ""}${name}`,
|
|
276
|
-
source: relativePath,
|
|
277
|
-
confidence
|
|
278
|
-
});
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
} catch {
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
return symbols;
|
|
285
|
-
}
|
|
286
|
-
function groupSymbolsByDirectory(symbols, _rootDir) {
|
|
287
|
-
const groups = /* @__PURE__ */ new Map();
|
|
288
|
-
for (const symbol of symbols) {
|
|
289
|
-
const sourceDir = path.dirname(symbol.source);
|
|
290
|
-
let targetDir = sourceDir;
|
|
291
|
-
const parts = sourceDir.split(path.sep);
|
|
292
|
-
if (parts.length > 3) {
|
|
293
|
-
targetDir = parts.slice(0, 3).join(path.sep);
|
|
294
|
-
}
|
|
295
|
-
if (targetDir === "." || targetDir === "") {
|
|
296
|
-
targetDir = ".";
|
|
297
|
-
}
|
|
298
|
-
if (!groups.has(targetDir)) {
|
|
299
|
-
groups.set(targetDir, []);
|
|
300
|
-
}
|
|
301
|
-
groups.get(targetDir).push(symbol);
|
|
302
|
-
}
|
|
303
|
-
return groups;
|
|
304
|
-
}
|
|
305
|
-
function generatePurposeContent(symbols, dirPath) {
|
|
306
|
-
const features = symbols.filter((s) => s.type === "feature");
|
|
307
|
-
const components = symbols.filter((s) => s.type === "component");
|
|
308
|
-
const flows = symbols.filter((s) => s.type === "flow");
|
|
309
|
-
const gates = symbols.filter((s) => s.type === "gate");
|
|
310
|
-
const signals = symbols.filter((s) => s.type === "signal");
|
|
311
|
-
const data = {
|
|
312
|
-
description: `Auto-generated purpose file for ${dirPath || "project root"}`
|
|
313
|
-
};
|
|
314
|
-
if (features.length > 0) {
|
|
315
|
-
data.features = Object.fromEntries(
|
|
316
|
-
features.map((f) => [f.id, { description: f.description }])
|
|
317
|
-
);
|
|
318
|
-
}
|
|
319
|
-
if (components.length > 0) {
|
|
320
|
-
data.components = Object.fromEntries(
|
|
321
|
-
components.map((c) => [c.id, { description: c.description }])
|
|
322
|
-
);
|
|
323
|
-
}
|
|
324
|
-
if (flows.length > 0) {
|
|
325
|
-
data.flows = Object.fromEntries(
|
|
326
|
-
flows.map((f) => [f.id, { description: f.description }])
|
|
327
|
-
);
|
|
328
|
-
}
|
|
329
|
-
if (gates.length > 0) {
|
|
330
|
-
data.gates = Object.fromEntries(
|
|
331
|
-
gates.map((g) => [g.id, { description: g.description }])
|
|
332
|
-
);
|
|
333
|
-
}
|
|
334
|
-
if (signals.length > 0) {
|
|
335
|
-
data.signals = Object.fromEntries(
|
|
336
|
-
signals.map((s) => [s.id, { description: s.description, category: "auto-detected" }])
|
|
337
|
-
);
|
|
338
|
-
}
|
|
339
|
-
return yaml.dump(data, { lineWidth: -1, noRefs: true });
|
|
340
|
-
}
|
|
341
|
-
async function autoScanCommand(targetPath, options) {
|
|
342
|
-
const rootDir = targetPath ? path.resolve(targetPath) : process.cwd();
|
|
343
|
-
const spinner = ora();
|
|
344
|
-
if (!options.json) {
|
|
345
|
-
console.log(chalk.blue("\n\u{1F50D} Paradigm Auto-Scan\n"));
|
|
346
|
-
console.log(chalk.gray("Analyzing codebase for symbols...\n"));
|
|
347
|
-
}
|
|
348
|
-
const discipline = loadDisciplineFromConfig(rootDir);
|
|
349
|
-
if (discipline && discipline !== "auto" && discipline !== "custom") {
|
|
350
|
-
const extraPatterns = getDisciplineScanPatterns(discipline);
|
|
351
|
-
for (const p of extraPatterns.components) {
|
|
352
|
-
if (!SCAN_PATTERNS.components.includes(p)) SCAN_PATTERNS.components.push(p);
|
|
353
|
-
}
|
|
354
|
-
for (const p of extraPatterns.routes) {
|
|
355
|
-
if (!SCAN_PATTERNS.routes.includes(p)) SCAN_PATTERNS.routes.push(p);
|
|
356
|
-
}
|
|
357
|
-
for (const p of extraPatterns.auth) {
|
|
358
|
-
if (!SCAN_PATTERNS.auth.includes(p)) SCAN_PATTERNS.auth.push(p);
|
|
359
|
-
}
|
|
360
|
-
if (!options.json) {
|
|
361
|
-
console.log(chalk.gray(` Discipline: ${discipline} (using discipline-specific scan patterns)
|
|
362
|
-
`));
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
spinner.start("Detecting components...");
|
|
366
|
-
const components = detectComponents(rootDir);
|
|
367
|
-
spinner.text = `Found ${components.length} components`;
|
|
368
|
-
spinner.text = "Detecting routes/flows...";
|
|
369
|
-
const routes = detectRoutes(rootDir);
|
|
370
|
-
spinner.text = `Found ${routes.length} routes`;
|
|
371
|
-
spinner.text = "Detecting auth patterns...";
|
|
372
|
-
const gates = detectAuth(rootDir);
|
|
373
|
-
spinner.text = `Found ${gates.length} gates`;
|
|
374
|
-
spinner.text = "Detecting signals...";
|
|
375
|
-
const signals = detectSignals(rootDir);
|
|
376
|
-
spinner.stop();
|
|
377
|
-
const allSymbols = [...components, ...routes, ...gates, ...signals];
|
|
378
|
-
if (!options.json) {
|
|
379
|
-
console.log(chalk.cyan("Detected symbols:"));
|
|
380
|
-
console.log(` Components: ${chalk.yellow(components.length.toString())}`);
|
|
381
|
-
console.log(` Flows: ${chalk.yellow(routes.length.toString())}`);
|
|
382
|
-
console.log(` Gates: ${chalk.yellow(gates.length.toString())}`);
|
|
383
|
-
console.log(` Signals: ${chalk.yellow(signals.length.toString())}`);
|
|
384
|
-
console.log(` Total: ${chalk.yellow(allSymbols.length.toString())}`);
|
|
385
|
-
console.log();
|
|
386
|
-
}
|
|
387
|
-
if (allSymbols.length === 0) {
|
|
388
|
-
if (options.json) {
|
|
389
|
-
console.log(JSON.stringify({ symbols: [], generated: [], skipped: [] }));
|
|
390
|
-
} else {
|
|
391
|
-
console.log(chalk.yellow("No symbols detected. This might be a non-standard project structure.\n"));
|
|
392
|
-
}
|
|
393
|
-
return;
|
|
394
|
-
}
|
|
395
|
-
const groups = groupSymbolsByDirectory(allSymbols, rootDir);
|
|
396
|
-
const generated = [];
|
|
397
|
-
const skipped = [];
|
|
398
|
-
for (const [dir, symbols] of groups) {
|
|
399
|
-
const purposePath = path.join(rootDir, dir, ".purpose");
|
|
400
|
-
const exists = fs.existsSync(purposePath);
|
|
401
|
-
if (exists && !options.force) {
|
|
402
|
-
skipped.push(purposePath);
|
|
403
|
-
continue;
|
|
404
|
-
}
|
|
405
|
-
const content = generatePurposeContent(symbols, dir);
|
|
406
|
-
generated.push({
|
|
407
|
-
path: purposePath,
|
|
408
|
-
content,
|
|
409
|
-
symbols,
|
|
410
|
-
isNew: !exists
|
|
411
|
-
});
|
|
412
|
-
}
|
|
413
|
-
if (options.json) {
|
|
414
|
-
console.log(JSON.stringify({
|
|
415
|
-
symbols: allSymbols,
|
|
416
|
-
generated: generated.map((g) => ({
|
|
417
|
-
path: path.relative(rootDir, g.path),
|
|
418
|
-
symbolCount: g.symbols.length,
|
|
419
|
-
isNew: g.isNew
|
|
420
|
-
})),
|
|
421
|
-
skipped: skipped.map((s) => path.relative(rootDir, s))
|
|
422
|
-
}, null, 2));
|
|
423
|
-
return;
|
|
424
|
-
}
|
|
425
|
-
if (generated.length === 0) {
|
|
426
|
-
console.log(chalk.yellow("All .purpose files already exist. Use --force to overwrite.\n"));
|
|
427
|
-
return;
|
|
428
|
-
}
|
|
429
|
-
console.log(chalk.cyan("Will generate:"));
|
|
430
|
-
for (const g of generated) {
|
|
431
|
-
const relativePath = path.relative(rootDir, g.path);
|
|
432
|
-
const badge = g.isNew ? chalk.green("[new]") : chalk.yellow("[update]");
|
|
433
|
-
console.log(` ${badge} ${relativePath} (${g.symbols.length} symbols)`);
|
|
434
|
-
}
|
|
435
|
-
if (skipped.length > 0) {
|
|
436
|
-
console.log(chalk.gray(`
|
|
437
|
-
Skipped ${skipped.length} existing file(s). Use --force to overwrite.`));
|
|
438
|
-
}
|
|
439
|
-
if (options.dryRun) {
|
|
440
|
-
console.log(chalk.gray("\n[Dry run] No files written.\n"));
|
|
441
|
-
return;
|
|
442
|
-
}
|
|
443
|
-
console.log();
|
|
444
|
-
spinner.start("Writing .purpose files...");
|
|
445
|
-
for (const g of generated) {
|
|
446
|
-
const dir = path.dirname(g.path);
|
|
447
|
-
if (!fs.existsSync(dir)) {
|
|
448
|
-
fs.mkdirSync(dir, { recursive: true });
|
|
449
|
-
}
|
|
450
|
-
fs.writeFileSync(g.path, g.content);
|
|
451
|
-
}
|
|
452
|
-
spinner.succeed(chalk.green(`Generated ${generated.length} .purpose file(s)`));
|
|
453
|
-
if (options.init) {
|
|
454
|
-
const portalPath = path.join(rootDir, "portal.yaml");
|
|
455
|
-
const portalExists = fs.existsSync(portalPath);
|
|
456
|
-
if (portalExists && !options.force) {
|
|
457
|
-
console.log(chalk.gray("\nportal.yaml already exists. Use --force to overwrite."));
|
|
458
|
-
} else {
|
|
459
|
-
const portalGates = {};
|
|
460
|
-
const portalRoutes = {};
|
|
461
|
-
for (const gate of gates) {
|
|
462
|
-
portalGates[`^${gate.id}`] = {
|
|
463
|
-
description: gate.description,
|
|
464
|
-
check: `// TODO: implement ${gate.id} check`,
|
|
465
|
-
prizes: []
|
|
466
|
-
};
|
|
467
|
-
}
|
|
468
|
-
for (const route of routes) {
|
|
469
|
-
if (route.description.startsWith("GET ") || route.description.startsWith("POST ") || route.description.startsWith("PUT ") || route.description.startsWith("PATCH ") || route.description.startsWith("DELETE ")) {
|
|
470
|
-
const routeKey = route.description;
|
|
471
|
-
const gateRefs = gates.length > 0 ? gates.map((g) => `^${g.id}`) : ["# TODO: add gates"];
|
|
472
|
-
portalRoutes[routeKey] = gateRefs;
|
|
473
|
-
}
|
|
474
|
-
}
|
|
475
|
-
if (Object.keys(portalGates).length > 0 || Object.keys(portalRoutes).length > 0) {
|
|
476
|
-
const portalData = { version: "1.0" };
|
|
477
|
-
if (Object.keys(portalGates).length > 0) portalData.gates = portalGates;
|
|
478
|
-
if (Object.keys(portalRoutes).length > 0) portalData.routes = portalRoutes;
|
|
479
|
-
const portalContent = yaml.dump(portalData, { lineWidth: -1, noRefs: true });
|
|
480
|
-
fs.writeFileSync(portalPath, portalContent);
|
|
481
|
-
spinner.succeed(chalk.green(`Generated portal.yaml with ${Object.keys(portalGates).length} gates and ${Object.keys(portalRoutes).length} routes`));
|
|
482
|
-
} else {
|
|
483
|
-
console.log(chalk.gray("\nNo gates or routes detected for portal.yaml."));
|
|
484
|
-
}
|
|
485
|
-
}
|
|
486
|
-
}
|
|
487
|
-
console.log(chalk.gray("\nNext steps:"));
|
|
488
|
-
console.log(chalk.gray(" 1. Review generated files and adjust descriptions"));
|
|
489
|
-
console.log(chalk.gray(" 2. Run `paradigm lint` to validate"));
|
|
490
|
-
console.log(chalk.gray(" 3. Run `paradigm index` to build scan index\n"));
|
|
491
|
-
}
|
|
492
|
-
function loadDisciplineFromConfig(rootDir) {
|
|
493
|
-
const configPath = path.join(rootDir, ".paradigm", "config.yaml");
|
|
494
|
-
try {
|
|
495
|
-
const content = fs.readFileSync(configPath, "utf8");
|
|
496
|
-
const config = yaml.load(content);
|
|
497
|
-
return config?.discipline || null;
|
|
498
|
-
} catch {
|
|
499
|
-
return null;
|
|
500
|
-
}
|
|
501
|
-
}
|
|
502
|
-
export {
|
|
503
|
-
autoScanCommand
|
|
504
|
-
};
|