@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,77 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
aggregatePurposes,
|
|
4
|
-
getAllPurposeFiles
|
|
5
|
-
} from "./chunk-EDOAWN7J.js";
|
|
6
|
-
import "./chunk-PDX44BCA.js";
|
|
7
|
-
|
|
8
|
-
// src/commands/purpose/remember.ts
|
|
9
|
-
import * as path from "path";
|
|
10
|
-
import chalk from "chalk";
|
|
11
|
-
import ora from "ora";
|
|
12
|
-
async function purposeRememberCommand(targetPath) {
|
|
13
|
-
const cwd = process.cwd();
|
|
14
|
-
const absolutePath = path.resolve(cwd, targetPath);
|
|
15
|
-
console.log(chalk.blue("\n\u{1F4D6} Remembering Purpose...\n"));
|
|
16
|
-
const spinner = ora("Aggregating purpose files...").start();
|
|
17
|
-
try {
|
|
18
|
-
const files = await getAllPurposeFiles(absolutePath);
|
|
19
|
-
const aggregated = aggregatePurposes(files);
|
|
20
|
-
spinner.succeed(`Found ${files.length} purpose file(s)`);
|
|
21
|
-
console.log(chalk.white("\n" + "\u2550".repeat(50)));
|
|
22
|
-
if (aggregated.description) {
|
|
23
|
-
console.log(chalk.white("\nDescription"));
|
|
24
|
-
console.log(chalk.gray("\u2500".repeat(50)));
|
|
25
|
-
console.log(chalk.cyan(aggregated.description));
|
|
26
|
-
}
|
|
27
|
-
if (aggregated.context.length > 0) {
|
|
28
|
-
console.log(chalk.white("\nContext"));
|
|
29
|
-
console.log(chalk.gray("\u2500".repeat(50)));
|
|
30
|
-
for (const ctx of aggregated.context) {
|
|
31
|
-
console.log(chalk.gray(" \u2022 ") + ctx);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
if (Object.keys(aggregated.rules).length > 0) {
|
|
35
|
-
console.log(chalk.white("\nRules"));
|
|
36
|
-
console.log(chalk.gray("\u2500".repeat(50)));
|
|
37
|
-
for (const [key, value] of Object.entries(aggregated.rules)) {
|
|
38
|
-
console.log(chalk.gray(" ") + chalk.yellow(key) + chalk.gray(": ") + String(value));
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
if (Object.keys(aggregated.features).length > 0) {
|
|
42
|
-
console.log(chalk.white("\nFeatures"));
|
|
43
|
-
console.log(chalk.gray("\u2500".repeat(50)));
|
|
44
|
-
for (const [id, feature] of Object.entries(aggregated.features)) {
|
|
45
|
-
console.log(chalk.blue(" @" + id));
|
|
46
|
-
if (feature.description) {
|
|
47
|
-
console.log(chalk.gray(" " + feature.description));
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
if (Object.keys(aggregated.components).length > 0) {
|
|
52
|
-
console.log(chalk.white("\nComponents"));
|
|
53
|
-
console.log(chalk.gray("\u2500".repeat(50)));
|
|
54
|
-
for (const [id, component] of Object.entries(aggregated.components)) {
|
|
55
|
-
console.log(chalk.green(" #" + id));
|
|
56
|
-
if (component.description) {
|
|
57
|
-
console.log(chalk.gray(" " + component.description));
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
if (aggregated.ruleConflicts.length > 0) {
|
|
62
|
-
console.log(chalk.yellow("\nWarnings"));
|
|
63
|
-
console.log(chalk.gray("\u2500".repeat(50)));
|
|
64
|
-
for (const conflict of aggregated.ruleConflicts) {
|
|
65
|
-
console.log(chalk.yellow(" \u26A0 " + conflict));
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
console.log(chalk.white("\n" + "\u2550".repeat(50) + "\n"));
|
|
69
|
-
} catch (error) {
|
|
70
|
-
spinner.fail("Failed to aggregate");
|
|
71
|
-
console.log(chalk.red(`Error: ${error.message}
|
|
72
|
-
`));
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
export {
|
|
76
|
-
purposeRememberCommand
|
|
77
|
-
};
|
package/dist/retag-3OLCVDEQ.js
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
loadLoreEntries,
|
|
4
|
-
updateLoreEntry
|
|
5
|
-
} from "./chunk-EKGMAM62.js";
|
|
6
|
-
import "./chunk-PDX44BCA.js";
|
|
7
|
-
|
|
8
|
-
// src/commands/lore/retag.ts
|
|
9
|
-
import chalk from "chalk";
|
|
10
|
-
async function loreRetagCommand(options) {
|
|
11
|
-
const rootDir = process.cwd();
|
|
12
|
-
const addTag = options.add;
|
|
13
|
-
const removeTag = options.remove;
|
|
14
|
-
if (!addTag && !removeTag) {
|
|
15
|
-
console.error(chalk.red("\n Must specify --add <tag> or --remove <tag>\n"));
|
|
16
|
-
process.exit(1);
|
|
17
|
-
}
|
|
18
|
-
const filter = {};
|
|
19
|
-
if (options.type) filter.type = options.type;
|
|
20
|
-
if (options.symbol) filter.symbol = options.symbol;
|
|
21
|
-
if (options.author) filter.author = options.author;
|
|
22
|
-
if (options.from) filter.dateFrom = options.from;
|
|
23
|
-
if (options.to) filter.dateTo = options.to;
|
|
24
|
-
if (options.tags) filter.tags = options.tags.split(",").map((t) => t.trim());
|
|
25
|
-
const entries = await loadLoreEntries(rootDir, filter);
|
|
26
|
-
if (entries.length === 0) {
|
|
27
|
-
console.log(chalk.yellow("\n No matching entries found\n"));
|
|
28
|
-
return;
|
|
29
|
-
}
|
|
30
|
-
const dryRun = !!options.dryRun;
|
|
31
|
-
let updated = 0;
|
|
32
|
-
for (const entry of entries) {
|
|
33
|
-
const currentTags = entry.tags || [];
|
|
34
|
-
let newTags;
|
|
35
|
-
if (addTag) {
|
|
36
|
-
if (currentTags.includes(addTag)) continue;
|
|
37
|
-
newTags = [...currentTags, addTag];
|
|
38
|
-
} else {
|
|
39
|
-
if (!currentTags.includes(removeTag)) continue;
|
|
40
|
-
newTags = currentTags.filter((t) => t !== removeTag);
|
|
41
|
-
}
|
|
42
|
-
if (dryRun) {
|
|
43
|
-
const action = addTag ? chalk.green(`+${addTag}`) : chalk.red(`-${removeTag}`);
|
|
44
|
-
console.log(chalk.gray(` [dry-run] ${entry.id}: ${action}`));
|
|
45
|
-
} else {
|
|
46
|
-
await updateLoreEntry(rootDir, entry.id, { tags: newTags });
|
|
47
|
-
const action = addTag ? chalk.green(`+${addTag}`) : chalk.red(`-${removeTag}`);
|
|
48
|
-
console.log(` ${entry.id}: ${action}`);
|
|
49
|
-
}
|
|
50
|
-
updated++;
|
|
51
|
-
}
|
|
52
|
-
console.log();
|
|
53
|
-
if (dryRun) {
|
|
54
|
-
console.log(chalk.yellow(` Dry run: ${updated} entries would be updated`));
|
|
55
|
-
} else {
|
|
56
|
-
console.log(chalk.green(` Updated ${updated} entries`));
|
|
57
|
-
}
|
|
58
|
-
console.log();
|
|
59
|
-
}
|
|
60
|
-
export {
|
|
61
|
-
loreRetagCommand
|
|
62
|
-
};
|
package/dist/review-27ATYTD2.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
addReview
|
|
4
|
-
} from "./chunk-EKGMAM62.js";
|
|
5
|
-
import "./chunk-PDX44BCA.js";
|
|
6
|
-
|
|
7
|
-
// src/commands/lore/review.ts
|
|
8
|
-
import chalk from "chalk";
|
|
9
|
-
async function loreReviewCommand(id, options) {
|
|
10
|
-
const rootDir = process.cwd();
|
|
11
|
-
const completeness = parseInt(options.completeness || "3", 10);
|
|
12
|
-
const quality = parseInt(options.quality || "3", 10);
|
|
13
|
-
const success = await addReview(rootDir, id, {
|
|
14
|
-
reviewer: options.reviewer || "unknown",
|
|
15
|
-
completeness,
|
|
16
|
-
quality,
|
|
17
|
-
notes: options.notes,
|
|
18
|
-
reviewed_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
19
|
-
});
|
|
20
|
-
if (success) {
|
|
21
|
-
console.log(chalk.green(`
|
|
22
|
-
\u2713 Review added to ${id}
|
|
23
|
-
`));
|
|
24
|
-
} else {
|
|
25
|
-
console.error(chalk.red(`
|
|
26
|
-
Entry not found: ${id}
|
|
27
|
-
`));
|
|
28
|
-
process.exit(1);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
export {
|
|
32
|
-
loreReviewCommand
|
|
33
|
-
};
|
package/dist/review-57QMURZV.js
DELETED
|
@@ -1,334 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
aggregateFromDirectory,
|
|
4
|
-
buildSymbolIndex,
|
|
5
|
-
createSymbolIndex,
|
|
6
|
-
getSymbolsByType,
|
|
7
|
-
searchSymbols
|
|
8
|
-
} from "./chunk-ZGUAAVMA.js";
|
|
9
|
-
import "./chunk-EDOAWN7J.js";
|
|
10
|
-
import "./chunk-IRKUEJVW.js";
|
|
11
|
-
import {
|
|
12
|
-
log
|
|
13
|
-
} from "./chunk-4NCFWYGG.js";
|
|
14
|
-
import "./chunk-PDX44BCA.js";
|
|
15
|
-
|
|
16
|
-
// src/commands/review/index.ts
|
|
17
|
-
import * as fs from "fs";
|
|
18
|
-
import * as path from "path";
|
|
19
|
-
import chalk from "chalk";
|
|
20
|
-
import { execSync } from "child_process";
|
|
21
|
-
import * as yaml from "js-yaml";
|
|
22
|
-
var SYMBOL_PATTERN = /[@#$%^!?&~][a-zA-Z][a-zA-Z0-9_-]*/g;
|
|
23
|
-
var ROUTE_FILE_PATTERNS = [
|
|
24
|
-
/\.(get|post|put|patch|delete)\s*\(\s*['"`]([^'"`]+)['"`]/gi,
|
|
25
|
-
/export\s+(async\s+)?function\s+(GET|POST|PUT|PATCH|DELETE)/gi
|
|
26
|
-
];
|
|
27
|
-
async function reviewCommand(options = {}) {
|
|
28
|
-
const cwd = process.cwd();
|
|
29
|
-
const tracker = log.command("review").start("Running review pipeline", { cwd });
|
|
30
|
-
let filesModified = [];
|
|
31
|
-
let symbolsTouched = [];
|
|
32
|
-
try {
|
|
33
|
-
if (options.pr) {
|
|
34
|
-
const prFiles = execSync(`gh pr diff ${options.pr} --name-only`, {
|
|
35
|
-
cwd,
|
|
36
|
-
encoding: "utf8",
|
|
37
|
-
timeout: 15e3
|
|
38
|
-
}).trim();
|
|
39
|
-
filesModified = prFiles.split("\n").filter(Boolean);
|
|
40
|
-
} else {
|
|
41
|
-
const staged = execSync("git diff --cached --name-only", {
|
|
42
|
-
cwd,
|
|
43
|
-
encoding: "utf8",
|
|
44
|
-
timeout: 5e3
|
|
45
|
-
}).trim();
|
|
46
|
-
const unstaged = execSync("git diff --name-only", {
|
|
47
|
-
cwd,
|
|
48
|
-
encoding: "utf8",
|
|
49
|
-
timeout: 5e3
|
|
50
|
-
}).trim();
|
|
51
|
-
filesModified = [.../* @__PURE__ */ new Set([
|
|
52
|
-
...staged.split("\n").filter(Boolean),
|
|
53
|
-
...unstaged.split("\n").filter(Boolean)
|
|
54
|
-
])];
|
|
55
|
-
}
|
|
56
|
-
} catch (e) {
|
|
57
|
-
const errorMsg = e.message;
|
|
58
|
-
if (!options.json) {
|
|
59
|
-
log.command("review").error(`Failed to get changed files: ${errorMsg}`);
|
|
60
|
-
}
|
|
61
|
-
tracker.error("Failed to get changed files");
|
|
62
|
-
if (options.ci) process.exit(1);
|
|
63
|
-
return;
|
|
64
|
-
}
|
|
65
|
-
if (filesModified.length === 0) {
|
|
66
|
-
if (options.json) {
|
|
67
|
-
console.log(JSON.stringify({ findings: [], summary: { total: 0, blocking: 0, improvements: 0, notes: 0 } }));
|
|
68
|
-
} else {
|
|
69
|
-
console.log(chalk.green("\n No modified files to review.\n"));
|
|
70
|
-
}
|
|
71
|
-
tracker.success("No files to review");
|
|
72
|
-
return;
|
|
73
|
-
}
|
|
74
|
-
try {
|
|
75
|
-
for (const file of filesModified) {
|
|
76
|
-
if (file.endsWith(".purpose")) {
|
|
77
|
-
const absPath = path.join(cwd, file);
|
|
78
|
-
if (fs.existsSync(absPath)) {
|
|
79
|
-
const content = fs.readFileSync(absPath, "utf-8");
|
|
80
|
-
const matches = content.match(SYMBOL_PATTERN) || [];
|
|
81
|
-
symbolsTouched.push(...matches);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
symbolsTouched = [...new Set(symbolsTouched)];
|
|
86
|
-
} catch {
|
|
87
|
-
}
|
|
88
|
-
const findings = [];
|
|
89
|
-
let index = createSymbolIndex();
|
|
90
|
-
try {
|
|
91
|
-
const aggregation = await aggregateFromDirectory(cwd);
|
|
92
|
-
index = buildSymbolIndex(aggregation);
|
|
93
|
-
} catch {
|
|
94
|
-
}
|
|
95
|
-
const portalPath = path.join(cwd, "portal.yaml");
|
|
96
|
-
let gateConfig = null;
|
|
97
|
-
if (fs.existsSync(portalPath)) {
|
|
98
|
-
try {
|
|
99
|
-
gateConfig = yaml.load(fs.readFileSync(portalPath, "utf-8"));
|
|
100
|
-
} catch {
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
for (const symbol of symbolsTouched) {
|
|
104
|
-
const results = searchSymbols(index, symbol);
|
|
105
|
-
if (results.length === 0) {
|
|
106
|
-
findings.push({
|
|
107
|
-
type: "blocking",
|
|
108
|
-
category: "purpose-coverage",
|
|
109
|
-
message: `Symbol "${symbol}" is not registered in any .purpose file`,
|
|
110
|
-
suggestion: "Add to nearest .purpose file using paradigm_purpose_add_component."
|
|
111
|
-
});
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
const declaredRoutes = gateConfig?.routes ? Object.keys(gateConfig.routes) : [];
|
|
115
|
-
for (const file of filesModified) {
|
|
116
|
-
const absPath = path.isAbsolute(file) ? file : path.join(cwd, file);
|
|
117
|
-
if (!fs.existsSync(absPath)) continue;
|
|
118
|
-
let content;
|
|
119
|
-
try {
|
|
120
|
-
content = fs.readFileSync(absPath, "utf-8");
|
|
121
|
-
} catch {
|
|
122
|
-
continue;
|
|
123
|
-
}
|
|
124
|
-
for (const pattern of ROUTE_FILE_PATTERNS) {
|
|
125
|
-
pattern.lastIndex = 0;
|
|
126
|
-
let match;
|
|
127
|
-
while ((match = pattern.exec(content)) !== null) {
|
|
128
|
-
const routePath = match[2] || match[0];
|
|
129
|
-
if (routePath && routePath.startsWith("/")) {
|
|
130
|
-
const isKnown = declaredRoutes.some((r) => {
|
|
131
|
-
const normalized = r.replace(/\s+(GET|POST|PUT|PATCH|DELETE)\s*$/, "").trim();
|
|
132
|
-
return normalized === routePath;
|
|
133
|
-
});
|
|
134
|
-
if (!isKnown) {
|
|
135
|
-
findings.push({
|
|
136
|
-
type: gateConfig ? "blocking" : "improvement",
|
|
137
|
-
category: "route-coverage",
|
|
138
|
-
message: `Route "${routePath}" in ${file} not in portal.yaml`,
|
|
139
|
-
file,
|
|
140
|
-
suggestion: "Add route to portal.yaml with ^gates."
|
|
141
|
-
});
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
const declaredGateNames = gateConfig ? Object.keys(gateConfig.gates || {}).map(
|
|
148
|
-
(g) => g.startsWith("^") ? g.slice(1) : g
|
|
149
|
-
) : [];
|
|
150
|
-
for (const symbol of symbolsTouched) {
|
|
151
|
-
if (symbol.startsWith("^")) {
|
|
152
|
-
const gateName = symbol.slice(1);
|
|
153
|
-
if (!declaredGateNames.includes(gateName)) {
|
|
154
|
-
findings.push({
|
|
155
|
-
type: "blocking",
|
|
156
|
-
category: "portal-compliance",
|
|
157
|
-
message: `Gate "${symbol}" referenced but not declared in portal.yaml`,
|
|
158
|
-
suggestion: `Add ${symbol} to portal.yaml with description and check expression.`
|
|
159
|
-
});
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
try {
|
|
164
|
-
const aspects = getSymbolsByType(index, "aspect");
|
|
165
|
-
for (const aspect of aspects) {
|
|
166
|
-
const appliesTo = aspect.appliesTo || [];
|
|
167
|
-
if (appliesTo.length === 0) continue;
|
|
168
|
-
for (const pattern of appliesTo) {
|
|
169
|
-
for (const symbol of symbolsTouched) {
|
|
170
|
-
const matches = matchPattern(pattern, symbol);
|
|
171
|
-
if (matches) {
|
|
172
|
-
const anchors = aspect.anchors || [];
|
|
173
|
-
if (anchors.length === 0) {
|
|
174
|
-
findings.push({
|
|
175
|
-
type: "improvement",
|
|
176
|
-
category: "aspect-anchors",
|
|
177
|
-
message: `Aspect "${aspect.symbol}" applies to "${symbol}" but has no code anchors`,
|
|
178
|
-
suggestion: `Add anchors to ${aspect.symbol} in .purpose file.`
|
|
179
|
-
});
|
|
180
|
-
} else {
|
|
181
|
-
for (const anchor of anchors) {
|
|
182
|
-
const filePath = path.isAbsolute(anchor.path) ? anchor.path : path.join(cwd, anchor.path);
|
|
183
|
-
if (!fs.existsSync(filePath)) {
|
|
184
|
-
findings.push({
|
|
185
|
-
type: "improvement",
|
|
186
|
-
category: "aspect-anchors",
|
|
187
|
-
message: `Aspect "${aspect.symbol}" anchor "${anchor.raw}" points to missing file`,
|
|
188
|
-
suggestion: `Update anchors for ${aspect.symbol} in .purpose file.`
|
|
189
|
-
});
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
} catch {
|
|
198
|
-
}
|
|
199
|
-
for (const symbol of symbolsTouched) {
|
|
200
|
-
const results = searchSymbols(index, symbol);
|
|
201
|
-
if (results.length === 0) continue;
|
|
202
|
-
const sym = results[0];
|
|
203
|
-
if (sym.parentSymbol) {
|
|
204
|
-
const parentResults = searchSymbols(index, sym.parentSymbol);
|
|
205
|
-
if (parentResults.length === 0) {
|
|
206
|
-
findings.push({
|
|
207
|
-
type: "improvement",
|
|
208
|
-
category: "broken-reference",
|
|
209
|
-
message: `Symbol "${symbol}" references parent "${sym.parentSymbol}" which does not exist`,
|
|
210
|
-
suggestion: `Create the parent symbol or update the parent reference.`
|
|
211
|
-
});
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
if (options.deep) {
|
|
216
|
-
for (const file of filesModified) {
|
|
217
|
-
const absPath = path.isAbsolute(file) ? file : path.join(cwd, file);
|
|
218
|
-
if (!fs.existsSync(absPath)) continue;
|
|
219
|
-
const ext = path.extname(file);
|
|
220
|
-
if (![".ts", ".tsx", ".js", ".jsx", ".py", ".rs"].includes(ext)) continue;
|
|
221
|
-
let content;
|
|
222
|
-
try {
|
|
223
|
-
content = fs.readFileSync(absPath, "utf-8");
|
|
224
|
-
} catch {
|
|
225
|
-
continue;
|
|
226
|
-
}
|
|
227
|
-
const lines = content.split("\n");
|
|
228
|
-
for (let i = 0; i < lines.length; i++) {
|
|
229
|
-
const line = lines[i];
|
|
230
|
-
const lineNum = i + 1;
|
|
231
|
-
if (/\beval\s*\(/.test(line) && !line.trimStart().startsWith("//")) {
|
|
232
|
-
findings.push({
|
|
233
|
-
type: "blocking",
|
|
234
|
-
category: "security",
|
|
235
|
-
message: `eval() detected \u2014 potential code injection risk`,
|
|
236
|
-
file,
|
|
237
|
-
line: lineNum,
|
|
238
|
-
suggestion: "Replace eval() with a safer alternative."
|
|
239
|
-
});
|
|
240
|
-
}
|
|
241
|
-
if (/(?:password|secret|api_key|apikey|token)\s*[:=]\s*['"][^'"]{8,}['"]/i.test(line)) {
|
|
242
|
-
if (!line.trimStart().startsWith("//") && !line.trimStart().startsWith("#")) {
|
|
243
|
-
findings.push({
|
|
244
|
-
type: "blocking",
|
|
245
|
-
category: "security",
|
|
246
|
-
message: `Possible hardcoded secret detected`,
|
|
247
|
-
file,
|
|
248
|
-
line: lineNum,
|
|
249
|
-
suggestion: "Move secrets to environment variables or a secrets manager."
|
|
250
|
-
});
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
if (/\bconsole\.(log|debug|info|warn)\b/.test(line) && !file.includes("test") && !file.includes("spec")) {
|
|
254
|
-
if (!line.trimStart().startsWith("//")) {
|
|
255
|
-
findings.push({
|
|
256
|
-
type: "note",
|
|
257
|
-
category: "convention",
|
|
258
|
-
message: `console.log detected \u2014 use Paradigm logger instead`,
|
|
259
|
-
file,
|
|
260
|
-
line: lineNum,
|
|
261
|
-
suggestion: "Use log.component(), log.gate(), etc. from the Paradigm logger."
|
|
262
|
-
});
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
const blocking = findings.filter((f) => f.type === "blocking");
|
|
269
|
-
const improvements = findings.filter((f) => f.type === "improvement");
|
|
270
|
-
const notes = findings.filter((f) => f.type === "note");
|
|
271
|
-
if (options.json) {
|
|
272
|
-
console.log(JSON.stringify({
|
|
273
|
-
findings,
|
|
274
|
-
summary: {
|
|
275
|
-
total: findings.length,
|
|
276
|
-
blocking: blocking.length,
|
|
277
|
-
improvements: improvements.length,
|
|
278
|
-
notes: notes.length,
|
|
279
|
-
filesReviewed: filesModified.length,
|
|
280
|
-
symbolsChecked: symbolsTouched.length
|
|
281
|
-
}
|
|
282
|
-
}, null, 2));
|
|
283
|
-
} else {
|
|
284
|
-
console.log(chalk.blue("\n\u250C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510"));
|
|
285
|
-
console.log(chalk.blue("\u2502") + chalk.white.bold(" paradigm review ") + chalk.blue("\u2502"));
|
|
286
|
-
console.log(chalk.blue("\u2502") + chalk.gray(` ${filesModified.length} files, ${symbolsTouched.length} symbols${options.deep ? ", deep mode" : ""}`.padEnd(50)) + chalk.blue("\u2502"));
|
|
287
|
-
console.log(chalk.blue("\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518\n"));
|
|
288
|
-
if (findings.length === 0) {
|
|
289
|
-
console.log(chalk.green(" All checks passed \u2014 no findings.\n"));
|
|
290
|
-
} else {
|
|
291
|
-
if (blocking.length > 0) {
|
|
292
|
-
console.log(chalk.red.bold(` Blocking (${blocking.length})`));
|
|
293
|
-
for (const f of blocking) {
|
|
294
|
-
console.log(` ${chalk.red("x")} ${f.message}`);
|
|
295
|
-
if (f.file) console.log(` ${chalk.gray(f.file)}${f.line ? `:${f.line}` : ""}`);
|
|
296
|
-
if (f.suggestion) console.log(` ${chalk.yellow("->")} ${f.suggestion}`);
|
|
297
|
-
}
|
|
298
|
-
console.log("");
|
|
299
|
-
}
|
|
300
|
-
if (improvements.length > 0) {
|
|
301
|
-
console.log(chalk.yellow(` Improvements (${improvements.length})`));
|
|
302
|
-
for (const f of improvements) {
|
|
303
|
-
console.log(` ${chalk.yellow("*")} ${f.message}`);
|
|
304
|
-
if (f.file) console.log(` ${chalk.gray(f.file)}${f.line ? `:${f.line}` : ""}`);
|
|
305
|
-
if (f.suggestion) console.log(` ${chalk.yellow("->")} ${f.suggestion}`);
|
|
306
|
-
}
|
|
307
|
-
console.log("");
|
|
308
|
-
}
|
|
309
|
-
if (notes.length > 0) {
|
|
310
|
-
console.log(chalk.gray(` Notes (${notes.length})`));
|
|
311
|
-
for (const f of notes) {
|
|
312
|
-
console.log(` ${chalk.gray("o")} ${f.message}`);
|
|
313
|
-
if (f.file) console.log(` ${chalk.gray(f.file)}${f.line ? `:${f.line}` : ""}`);
|
|
314
|
-
}
|
|
315
|
-
console.log("");
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
if (options.ci && blocking.length > 0) {
|
|
320
|
-
tracker.error(`${blocking.length} blocking findings`);
|
|
321
|
-
process.exit(1);
|
|
322
|
-
}
|
|
323
|
-
tracker.success(`Review complete: ${findings.length} findings`);
|
|
324
|
-
}
|
|
325
|
-
function matchPattern(pattern, value) {
|
|
326
|
-
if (!pattern.includes("*")) return pattern === value;
|
|
327
|
-
const regex = new RegExp(
|
|
328
|
-
"^" + pattern.replace(/[.*+?^${}()|[\]\\]/g, "\\$&").replace(/\\\*/g, ".*") + "$"
|
|
329
|
-
);
|
|
330
|
-
return regex.test(value);
|
|
331
|
-
}
|
|
332
|
-
export {
|
|
333
|
-
reviewCommand
|
|
334
|
-
};
|