@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/dist-QK4SQAK7.js
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
ContextEnricher,
|
|
4
|
-
FlowTracker,
|
|
5
|
-
IncidentGrouper,
|
|
6
|
-
PatternImporter,
|
|
7
|
-
PatternMatcher,
|
|
8
|
-
PatternSuggester,
|
|
9
|
-
Sentinel,
|
|
10
|
-
SentinelClient,
|
|
11
|
-
SentinelTransport,
|
|
12
|
-
StatsCalculator,
|
|
13
|
-
TimelineBuilder,
|
|
14
|
-
createSentinelClient,
|
|
15
|
-
createSentinelTransport,
|
|
16
|
-
detectSymbols,
|
|
17
|
-
enableSentinel,
|
|
18
|
-
generateConfig,
|
|
19
|
-
loadAllSeedPatterns,
|
|
20
|
-
loadParadigmPatterns,
|
|
21
|
-
loadUniversalPatterns
|
|
22
|
-
} from "./chunk-ZSYVKSY6.js";
|
|
23
|
-
import {
|
|
24
|
-
DEFAULT_AUTH_CONFIG,
|
|
25
|
-
DEFAULT_RATE_LIMIT_CONFIG,
|
|
26
|
-
DEFAULT_SERVER_CONFIG,
|
|
27
|
-
PARADIGM_SCHEMA,
|
|
28
|
-
SYMPHONY_SCHEMA,
|
|
29
|
-
SentinelStorage,
|
|
30
|
-
loadConfig,
|
|
31
|
-
loadServerConfig,
|
|
32
|
-
writeConfig
|
|
33
|
-
} from "./chunk-FKJUBQU3.js";
|
|
34
|
-
import "./chunk-PDX44BCA.js";
|
|
35
|
-
export {
|
|
36
|
-
ContextEnricher,
|
|
37
|
-
DEFAULT_AUTH_CONFIG,
|
|
38
|
-
DEFAULT_RATE_LIMIT_CONFIG,
|
|
39
|
-
DEFAULT_SERVER_CONFIG,
|
|
40
|
-
FlowTracker,
|
|
41
|
-
IncidentGrouper,
|
|
42
|
-
PARADIGM_SCHEMA,
|
|
43
|
-
PatternImporter,
|
|
44
|
-
PatternMatcher,
|
|
45
|
-
PatternSuggester,
|
|
46
|
-
SYMPHONY_SCHEMA,
|
|
47
|
-
Sentinel,
|
|
48
|
-
SentinelClient,
|
|
49
|
-
SentinelStorage,
|
|
50
|
-
SentinelTransport,
|
|
51
|
-
StatsCalculator,
|
|
52
|
-
TimelineBuilder,
|
|
53
|
-
createSentinelClient,
|
|
54
|
-
createSentinelTransport,
|
|
55
|
-
detectSymbols,
|
|
56
|
-
enableSentinel,
|
|
57
|
-
generateConfig,
|
|
58
|
-
loadAllSeedPatterns,
|
|
59
|
-
loadConfig,
|
|
60
|
-
loadParadigmPatterns,
|
|
61
|
-
loadServerConfig,
|
|
62
|
-
loadUniversalPatterns,
|
|
63
|
-
writeConfig
|
|
64
|
-
};
|
package/dist/dist-TA6LSC2Q.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
findGateFiles,
|
|
4
|
-
formatValidationResult,
|
|
5
|
-
getDefaultGateConfig,
|
|
6
|
-
parseGateConfig,
|
|
7
|
-
parseGateFile,
|
|
8
|
-
serializeGateConfig,
|
|
9
|
-
validateGateConfig
|
|
10
|
-
} from "./chunk-IRKUEJVW.js";
|
|
11
|
-
import "./chunk-PDX44BCA.js";
|
|
12
|
-
export {
|
|
13
|
-
findGateFiles,
|
|
14
|
-
formatValidationResult,
|
|
15
|
-
getDefaultGateConfig,
|
|
16
|
-
parseGateConfig,
|
|
17
|
-
parseGateFile,
|
|
18
|
-
serializeGateConfig,
|
|
19
|
-
validateGateConfig
|
|
20
|
-
};
|
package/dist/docs-PBZB7LYP.js
DELETED
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
buildDocsManifest,
|
|
4
|
-
buildFlowPage,
|
|
5
|
-
buildPortalPage,
|
|
6
|
-
buildSymbolPage,
|
|
7
|
-
loadCustomPage,
|
|
8
|
-
loadDocsConfig,
|
|
9
|
-
searchDocs
|
|
10
|
-
} from "./chunk-2T6BTYBN.js";
|
|
11
|
-
import "./chunk-PDX44BCA.js";
|
|
12
|
-
|
|
13
|
-
// src/platform-server/routes/docs.ts
|
|
14
|
-
import { Router } from "express";
|
|
15
|
-
function createDocsRouter(projectDir) {
|
|
16
|
-
const router = Router();
|
|
17
|
-
router.get("/manifest", (_req, res) => {
|
|
18
|
-
try {
|
|
19
|
-
const config = loadDocsConfig(projectDir);
|
|
20
|
-
const manifest = buildDocsManifest(projectDir, config);
|
|
21
|
-
res.json(manifest);
|
|
22
|
-
} catch (err) {
|
|
23
|
-
res.status(500).json({ error: "Failed to build docs manifest", detail: String(err) });
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
router.get("/symbol/:id", (req, res) => {
|
|
27
|
-
try {
|
|
28
|
-
const page = buildSymbolPage(projectDir, req.params.id);
|
|
29
|
-
if (!page) {
|
|
30
|
-
res.status(404).json({ error: `Symbol "${req.params.id}" not found` });
|
|
31
|
-
return;
|
|
32
|
-
}
|
|
33
|
-
res.json(page);
|
|
34
|
-
} catch (err) {
|
|
35
|
-
res.status(500).json({ error: "Failed to build symbol page", detail: String(err) });
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
router.get("/flow/:id", (req, res) => {
|
|
39
|
-
try {
|
|
40
|
-
const page = buildFlowPage(projectDir, req.params.id);
|
|
41
|
-
if (!page) {
|
|
42
|
-
res.status(404).json({ error: `Flow "${req.params.id}" not found` });
|
|
43
|
-
return;
|
|
44
|
-
}
|
|
45
|
-
res.json(page);
|
|
46
|
-
} catch (err) {
|
|
47
|
-
res.status(500).json({ error: "Failed to build flow page", detail: String(err) });
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
router.get("/portal", (_req, res) => {
|
|
51
|
-
try {
|
|
52
|
-
const page = buildPortalPage(projectDir);
|
|
53
|
-
res.json(page);
|
|
54
|
-
} catch (err) {
|
|
55
|
-
res.status(500).json({ error: "Failed to build portal page", detail: String(err) });
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
router.get("/page/:slug", (req, res) => {
|
|
59
|
-
try {
|
|
60
|
-
const config = loadDocsConfig(projectDir);
|
|
61
|
-
const page = loadCustomPage(projectDir, req.params.slug, config);
|
|
62
|
-
if (!page) {
|
|
63
|
-
res.status(404).json({ error: `Page "${req.params.slug}" not found` });
|
|
64
|
-
return;
|
|
65
|
-
}
|
|
66
|
-
res.json(page);
|
|
67
|
-
} catch (err) {
|
|
68
|
-
res.status(500).json({ error: "Failed to load custom page", detail: String(err) });
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
router.get("/search", (req, res) => {
|
|
72
|
-
try {
|
|
73
|
-
const q = req.query.q || "";
|
|
74
|
-
if (!q) {
|
|
75
|
-
res.json({ count: 0, results: [] });
|
|
76
|
-
return;
|
|
77
|
-
}
|
|
78
|
-
const limit = req.query.limit ? parseInt(req.query.limit, 10) : 20;
|
|
79
|
-
const results = searchDocs(projectDir, q, limit);
|
|
80
|
-
res.json({ count: results.length, results });
|
|
81
|
-
} catch (err) {
|
|
82
|
-
res.status(500).json({ error: "Failed to search docs", detail: String(err) });
|
|
83
|
-
}
|
|
84
|
-
});
|
|
85
|
-
return router;
|
|
86
|
-
}
|
|
87
|
-
export {
|
|
88
|
-
createDocsRouter
|
|
89
|
-
};
|
package/dist/docs-QIYKO3BR.js
DELETED
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
buildDocsManifest,
|
|
4
|
-
buildFlowPage,
|
|
5
|
-
buildPortalPage,
|
|
6
|
-
buildSymbolPage,
|
|
7
|
-
loadCustomPages,
|
|
8
|
-
loadDocsConfig
|
|
9
|
-
} from "./chunk-2T6BTYBN.js";
|
|
10
|
-
import "./chunk-PDX44BCA.js";
|
|
11
|
-
|
|
12
|
-
// src/commands/docs/serve.ts
|
|
13
|
-
import chalk from "chalk";
|
|
14
|
-
async function docsServeCommand(options) {
|
|
15
|
-
const projectDir = process.cwd();
|
|
16
|
-
const port = parseInt(options.port || "3850", 10);
|
|
17
|
-
const shouldOpen = options.open !== false;
|
|
18
|
-
console.log(chalk.cyan("\n Starting Paradigm Docs...\n"));
|
|
19
|
-
try {
|
|
20
|
-
const { startPlatformServer } = await import("./platform-server-H5YO3DQD.js");
|
|
21
|
-
await startPlatformServer({
|
|
22
|
-
projectDir,
|
|
23
|
-
port,
|
|
24
|
-
open: shouldOpen,
|
|
25
|
-
sections: ["overview", "docs"]
|
|
26
|
-
});
|
|
27
|
-
console.log(chalk.green(` Docs running at ${chalk.bold(`http://localhost:${port}`)}`));
|
|
28
|
-
console.log(chalk.gray(" Press Ctrl+C to stop\n"));
|
|
29
|
-
await new Promise(() => {
|
|
30
|
-
});
|
|
31
|
-
} catch (error) {
|
|
32
|
-
if (error.code === "EADDRINUSE") {
|
|
33
|
-
console.error(chalk.red(`
|
|
34
|
-
Error: Port ${port} is already in use.`));
|
|
35
|
-
console.log(chalk.gray(` Try: paradigm docs serve --port ${port + 1}
|
|
36
|
-
`));
|
|
37
|
-
} else {
|
|
38
|
-
console.error(chalk.red("\n Failed to start Paradigm Docs:"), error);
|
|
39
|
-
}
|
|
40
|
-
process.exit(1);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
// src/commands/docs/build.ts
|
|
45
|
-
import * as fs from "fs";
|
|
46
|
-
import * as path from "path";
|
|
47
|
-
import { fileURLToPath } from "url";
|
|
48
|
-
import chalk2 from "chalk";
|
|
49
|
-
var __filename = fileURLToPath(import.meta.url);
|
|
50
|
-
var __dirname = path.dirname(__filename);
|
|
51
|
-
async function docsBuildCommand(options) {
|
|
52
|
-
let rootDir = process.cwd();
|
|
53
|
-
while (rootDir !== "/") {
|
|
54
|
-
if (fs.existsSync(path.join(rootDir, ".paradigm"))) break;
|
|
55
|
-
rootDir = path.dirname(rootDir);
|
|
56
|
-
}
|
|
57
|
-
if (rootDir === "/") {
|
|
58
|
-
console.error(chalk2.red(" Not in a Paradigm project (no .paradigm/ directory found)"));
|
|
59
|
-
process.exit(1);
|
|
60
|
-
}
|
|
61
|
-
const config = loadDocsConfig(rootDir);
|
|
62
|
-
const outputDir = options.output || config.output || ".paradigm/docs-site";
|
|
63
|
-
const outputPath = path.resolve(rootDir, outputDir);
|
|
64
|
-
const dataDir = path.join(outputPath, "_data");
|
|
65
|
-
console.log(chalk2.cyan(`
|
|
66
|
-
Building docs to ${chalk2.white(outputPath)}...
|
|
67
|
-
`));
|
|
68
|
-
fs.mkdirSync(path.join(dataDir, "symbols"), { recursive: true });
|
|
69
|
-
fs.mkdirSync(path.join(dataDir, "flows"), { recursive: true });
|
|
70
|
-
fs.mkdirSync(path.join(dataDir, "pages"), { recursive: true });
|
|
71
|
-
const manifest = buildDocsManifest(rootDir, config);
|
|
72
|
-
fs.writeFileSync(
|
|
73
|
-
path.join(dataDir, "manifest.json"),
|
|
74
|
-
JSON.stringify(manifest, null, 2),
|
|
75
|
-
"utf8"
|
|
76
|
-
);
|
|
77
|
-
console.log(chalk2.gray(` manifest.json (${manifest.totalSymbols} symbols)`));
|
|
78
|
-
let symbolCount = 0;
|
|
79
|
-
for (const group of manifest.groups) {
|
|
80
|
-
const items = [...group.items];
|
|
81
|
-
if (group.subgroups) {
|
|
82
|
-
for (const sg of group.subgroups) {
|
|
83
|
-
items.push(...sg.items);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
for (const item of items) {
|
|
87
|
-
if (["component", "signal", "aspect", "gate"].includes(item.kind)) {
|
|
88
|
-
const page = buildSymbolPage(rootDir, item.id);
|
|
89
|
-
if (page) {
|
|
90
|
-
fs.writeFileSync(
|
|
91
|
-
path.join(dataDir, "symbols", `${item.id}.json`),
|
|
92
|
-
JSON.stringify(page, null, 2),
|
|
93
|
-
"utf8"
|
|
94
|
-
);
|
|
95
|
-
symbolCount++;
|
|
96
|
-
}
|
|
97
|
-
} else if (item.kind === "flow") {
|
|
98
|
-
const page = buildFlowPage(rootDir, item.id);
|
|
99
|
-
if (page) {
|
|
100
|
-
fs.writeFileSync(
|
|
101
|
-
path.join(dataDir, "flows", `${item.id}.json`),
|
|
102
|
-
JSON.stringify(page, null, 2),
|
|
103
|
-
"utf8"
|
|
104
|
-
);
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
const portal = buildPortalPage(rootDir);
|
|
110
|
-
fs.writeFileSync(
|
|
111
|
-
path.join(dataDir, "portal.json"),
|
|
112
|
-
JSON.stringify(portal, null, 2),
|
|
113
|
-
"utf8"
|
|
114
|
-
);
|
|
115
|
-
const customPages = loadCustomPages(rootDir, config.customContent);
|
|
116
|
-
for (const page of customPages) {
|
|
117
|
-
fs.writeFileSync(
|
|
118
|
-
path.join(dataDir, "pages", `${page.slug}.json`),
|
|
119
|
-
JSON.stringify(page, null, 2),
|
|
120
|
-
"utf8"
|
|
121
|
-
);
|
|
122
|
-
}
|
|
123
|
-
let uiDistPath = path.join(__dirname, "..", "..", "platform-ui", "dist");
|
|
124
|
-
if (!fs.existsSync(uiDistPath)) {
|
|
125
|
-
uiDistPath = path.join(__dirname, "..", "..", "..", "platform-ui", "dist");
|
|
126
|
-
}
|
|
127
|
-
if (fs.existsSync(uiDistPath)) {
|
|
128
|
-
copyDir(uiDistPath, outputPath);
|
|
129
|
-
console.log(chalk2.gray(" Copied SPA shell"));
|
|
130
|
-
}
|
|
131
|
-
console.log(chalk2.gray(` ${symbolCount} symbol pages`));
|
|
132
|
-
console.log(chalk2.gray(` ${customPages.length} custom pages`));
|
|
133
|
-
console.log(chalk2.gray(" portal.json"));
|
|
134
|
-
console.log(chalk2.green(`
|
|
135
|
-
Docs built to ${outputPath}
|
|
136
|
-
`));
|
|
137
|
-
}
|
|
138
|
-
function copyDir(src, dest) {
|
|
139
|
-
fs.mkdirSync(dest, { recursive: true });
|
|
140
|
-
for (const entry of fs.readdirSync(src, { withFileTypes: true })) {
|
|
141
|
-
const srcPath = path.join(src, entry.name);
|
|
142
|
-
const destPath = path.join(dest, entry.name);
|
|
143
|
-
if (entry.isDirectory()) {
|
|
144
|
-
if (entry.name !== "_data") {
|
|
145
|
-
copyDir(srcPath, destPath);
|
|
146
|
-
}
|
|
147
|
-
} else {
|
|
148
|
-
fs.copyFileSync(srcPath, destPath);
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
export {
|
|
153
|
-
docsBuildCommand,
|
|
154
|
-
docsServeCommand
|
|
155
|
-
};
|
package/dist/doctor-ULBOHEIC.js
DELETED
package/dist/drift-R5NRKFHI.js
DELETED
|
@@ -1,251 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import "./chunk-PDX44BCA.js";
|
|
3
|
-
|
|
4
|
-
// src/commands/drift.ts
|
|
5
|
-
import * as fs from "fs";
|
|
6
|
-
import * as path from "path";
|
|
7
|
-
import * as crypto from "crypto";
|
|
8
|
-
import { execSync } from "child_process";
|
|
9
|
-
import chalk from "chalk";
|
|
10
|
-
function normalizeForHash(content) {
|
|
11
|
-
return content.split("\n").map((l) => l.trimEnd()).filter((l) => l.trim().length > 0).join("\n").replace(/\s+/g, " ").trim();
|
|
12
|
-
}
|
|
13
|
-
function parseHunks(diff) {
|
|
14
|
-
const hunks = [];
|
|
15
|
-
const pattern = /^@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/gm;
|
|
16
|
-
let match;
|
|
17
|
-
while ((match = pattern.exec(diff)) !== null) {
|
|
18
|
-
hunks.push({
|
|
19
|
-
oldStart: parseInt(match[1], 10),
|
|
20
|
-
oldCount: match[2] !== void 0 ? parseInt(match[2], 10) : 1,
|
|
21
|
-
newCount: match[4] !== void 0 ? parseInt(match[4], 10) : 1
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
return hunks;
|
|
25
|
-
}
|
|
26
|
-
function computeShift(rootDir, filePath, fromCommit, startLine, endLine) {
|
|
27
|
-
let diff;
|
|
28
|
-
try {
|
|
29
|
-
diff = execSync(
|
|
30
|
-
`git diff ${fromCommit}..HEAD --unified=0 -- "${filePath}"`,
|
|
31
|
-
{ cwd: rootDir, encoding: "utf8", timeout: 5e3 }
|
|
32
|
-
);
|
|
33
|
-
} catch {
|
|
34
|
-
return null;
|
|
35
|
-
}
|
|
36
|
-
if (!diff.trim()) {
|
|
37
|
-
return null;
|
|
38
|
-
}
|
|
39
|
-
const hunks = parseHunks(diff);
|
|
40
|
-
let offset = 0;
|
|
41
|
-
for (const hunk of hunks) {
|
|
42
|
-
const hunkEnd = hunk.oldStart + hunk.oldCount;
|
|
43
|
-
if (hunkEnd <= startLine) {
|
|
44
|
-
offset += hunk.newCount - hunk.oldCount;
|
|
45
|
-
continue;
|
|
46
|
-
}
|
|
47
|
-
if (hunk.oldStart < endLine) {
|
|
48
|
-
return null;
|
|
49
|
-
}
|
|
50
|
-
break;
|
|
51
|
-
}
|
|
52
|
-
if (offset === 0) return null;
|
|
53
|
-
return { newStart: startLine + offset, newEnd: endLine + offset };
|
|
54
|
-
}
|
|
55
|
-
function healPurposeFile(rootDir, purposePath, anchorFile, oldStart, oldEnd, newStart, newEnd) {
|
|
56
|
-
const absPath = path.isAbsolute(purposePath) ? purposePath : path.join(rootDir, purposePath);
|
|
57
|
-
if (!fs.existsSync(absPath)) return false;
|
|
58
|
-
try {
|
|
59
|
-
const content = fs.readFileSync(absPath, "utf8");
|
|
60
|
-
const oldRef = oldStart === oldEnd ? `${anchorFile}:${oldStart}` : `${anchorFile}:${oldStart}-${oldEnd}`;
|
|
61
|
-
const newRef = newStart === newEnd ? `${anchorFile}:${newStart}` : `${anchorFile}:${newStart}-${newEnd}`;
|
|
62
|
-
if (!content.includes(oldRef)) return false;
|
|
63
|
-
fs.writeFileSync(absPath, content.replace(oldRef, newRef), "utf8");
|
|
64
|
-
return true;
|
|
65
|
-
} catch {
|
|
66
|
-
return false;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
async function driftCheckCommand(options) {
|
|
70
|
-
const rootDir = process.cwd();
|
|
71
|
-
const dbPath = path.join(rootDir, ".paradigm", "aspect-graph.db");
|
|
72
|
-
if (!fs.existsSync(dbPath)) {
|
|
73
|
-
if (options.json) {
|
|
74
|
-
console.log(JSON.stringify({ driftedCount: 0, healedCount: 0, cleanCount: 0, missingCount: 0, details: [] }));
|
|
75
|
-
} else {
|
|
76
|
-
console.log(chalk.gray("No aspect-graph.db found. Run paradigm_aspect_check to initialize."));
|
|
77
|
-
}
|
|
78
|
-
return;
|
|
79
|
-
}
|
|
80
|
-
const autoHeal = options.autoHeal !== false;
|
|
81
|
-
try {
|
|
82
|
-
const initSqlJs = (await import("sql.js")).default;
|
|
83
|
-
const SQL = await initSqlJs();
|
|
84
|
-
const buffer = fs.readFileSync(dbPath);
|
|
85
|
-
const db = new SQL.Database(buffer);
|
|
86
|
-
const results = [];
|
|
87
|
-
try {
|
|
88
|
-
const stmt = db.prepare("SELECT id, aspect_id, file_path, start_line, end_line, content_hash, normalized_hash, materialized_at_commit, drifted FROM anchors");
|
|
89
|
-
const anchors = [];
|
|
90
|
-
while (stmt.step()) {
|
|
91
|
-
const row = stmt.getAsObject();
|
|
92
|
-
anchors.push(row);
|
|
93
|
-
}
|
|
94
|
-
stmt.free();
|
|
95
|
-
for (const anchor of anchors) {
|
|
96
|
-
const absFile = path.isAbsolute(anchor.file_path) ? anchor.file_path : path.join(rootDir, anchor.file_path);
|
|
97
|
-
if (!fs.existsSync(absFile)) {
|
|
98
|
-
results.push({
|
|
99
|
-
aspectId: anchor.aspect_id,
|
|
100
|
-
path: anchor.file_path,
|
|
101
|
-
startLine: anchor.start_line,
|
|
102
|
-
endLine: anchor.end_line,
|
|
103
|
-
status: "missing"
|
|
104
|
-
});
|
|
105
|
-
continue;
|
|
106
|
-
}
|
|
107
|
-
const fileContent = fs.readFileSync(absFile, "utf8");
|
|
108
|
-
const lines = fileContent.split("\n");
|
|
109
|
-
const startIdx = Math.max(0, anchor.start_line - 1);
|
|
110
|
-
const endIdx = Math.min(lines.length, anchor.end_line);
|
|
111
|
-
const slice = lines.slice(startIdx, endIdx).join("\n");
|
|
112
|
-
const exactHash = crypto.createHash("sha256").update(slice).digest("hex");
|
|
113
|
-
if (anchor.content_hash != null && exactHash === anchor.content_hash) {
|
|
114
|
-
if (anchor.drifted === 1) {
|
|
115
|
-
db.run("UPDATE anchors SET drifted = 0 WHERE id = ?", [anchor.id]);
|
|
116
|
-
}
|
|
117
|
-
results.push({
|
|
118
|
-
aspectId: anchor.aspect_id,
|
|
119
|
-
path: anchor.file_path,
|
|
120
|
-
startLine: anchor.start_line,
|
|
121
|
-
endLine: anchor.end_line,
|
|
122
|
-
status: "clean"
|
|
123
|
-
});
|
|
124
|
-
continue;
|
|
125
|
-
}
|
|
126
|
-
const normHash = crypto.createHash("sha256").update(normalizeForHash(slice)).digest("hex");
|
|
127
|
-
if (anchor.normalized_hash != null && normHash === anchor.normalized_hash) {
|
|
128
|
-
db.run("UPDATE anchors SET content_hash = ?, drifted = 0 WHERE id = ?", [exactHash, anchor.id]);
|
|
129
|
-
results.push({
|
|
130
|
-
aspectId: anchor.aspect_id,
|
|
131
|
-
path: anchor.file_path,
|
|
132
|
-
startLine: anchor.start_line,
|
|
133
|
-
endLine: anchor.end_line,
|
|
134
|
-
status: "cosmetic"
|
|
135
|
-
});
|
|
136
|
-
continue;
|
|
137
|
-
}
|
|
138
|
-
if (anchor.content_hash == null && anchor.normalized_hash == null) {
|
|
139
|
-
db.run(
|
|
140
|
-
"UPDATE anchors SET content_hash = ?, normalized_hash = ?, drifted = 0 WHERE id = ?",
|
|
141
|
-
[exactHash, normHash, anchor.id]
|
|
142
|
-
);
|
|
143
|
-
results.push({
|
|
144
|
-
aspectId: anchor.aspect_id,
|
|
145
|
-
path: anchor.file_path,
|
|
146
|
-
startLine: anchor.start_line,
|
|
147
|
-
endLine: anchor.end_line,
|
|
148
|
-
status: "clean"
|
|
149
|
-
});
|
|
150
|
-
continue;
|
|
151
|
-
}
|
|
152
|
-
let resolved = false;
|
|
153
|
-
if (anchor.materialized_at_commit) {
|
|
154
|
-
const shift = computeShift(rootDir, anchor.file_path, anchor.materialized_at_commit, anchor.start_line, anchor.end_line);
|
|
155
|
-
if (shift) {
|
|
156
|
-
const shiftedSlice = lines.slice(Math.max(0, shift.newStart - 1), Math.min(lines.length, shift.newEnd)).join("\n");
|
|
157
|
-
const shiftedHash = crypto.createHash("sha256").update(shiftedSlice).digest("hex");
|
|
158
|
-
if (anchor.content_hash != null && shiftedHash === anchor.content_hash || anchor.normalized_hash != null && crypto.createHash("sha256").update(normalizeForHash(shiftedSlice)).digest("hex") === anchor.normalized_hash) {
|
|
159
|
-
if (autoHeal) {
|
|
160
|
-
const newHash = crypto.createHash("sha256").update(shiftedSlice).digest("hex");
|
|
161
|
-
db.run(
|
|
162
|
-
"UPDATE anchors SET start_line = ?, end_line = ?, content_hash = ?, drifted = 0 WHERE id = ?",
|
|
163
|
-
[shift.newStart, shift.newEnd, newHash, anchor.id]
|
|
164
|
-
);
|
|
165
|
-
const aspectStmt = db.prepare("SELECT defined_in FROM aspects WHERE id = ?");
|
|
166
|
-
aspectStmt.bind([anchor.aspect_id]);
|
|
167
|
-
if (aspectStmt.step()) {
|
|
168
|
-
const aspectRow = aspectStmt.getAsObject();
|
|
169
|
-
healPurposeFile(
|
|
170
|
-
rootDir,
|
|
171
|
-
aspectRow.defined_in,
|
|
172
|
-
anchor.file_path,
|
|
173
|
-
anchor.start_line,
|
|
174
|
-
anchor.end_line,
|
|
175
|
-
shift.newStart,
|
|
176
|
-
shift.newEnd
|
|
177
|
-
);
|
|
178
|
-
}
|
|
179
|
-
aspectStmt.free();
|
|
180
|
-
}
|
|
181
|
-
results.push({
|
|
182
|
-
aspectId: anchor.aspect_id,
|
|
183
|
-
path: anchor.file_path,
|
|
184
|
-
startLine: autoHeal ? shift.newStart : anchor.start_line,
|
|
185
|
-
endLine: autoHeal ? shift.newEnd : anchor.end_line,
|
|
186
|
-
status: "shifted",
|
|
187
|
-
autoHealed: autoHeal
|
|
188
|
-
});
|
|
189
|
-
resolved = true;
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
if (!resolved) {
|
|
194
|
-
db.run("UPDATE anchors SET drifted = 1 WHERE id = ?", [anchor.id]);
|
|
195
|
-
results.push({
|
|
196
|
-
aspectId: anchor.aspect_id,
|
|
197
|
-
path: anchor.file_path,
|
|
198
|
-
startLine: anchor.start_line,
|
|
199
|
-
endLine: anchor.end_line,
|
|
200
|
-
status: "modified"
|
|
201
|
-
});
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
const data = db.export();
|
|
205
|
-
fs.writeFileSync(dbPath, Buffer.from(data));
|
|
206
|
-
} finally {
|
|
207
|
-
db.close();
|
|
208
|
-
}
|
|
209
|
-
const summary = {
|
|
210
|
-
driftedCount: results.filter((r) => r.status === "modified").length,
|
|
211
|
-
healedCount: results.filter((r) => r.status === "shifted" && r.autoHealed).length,
|
|
212
|
-
cleanCount: results.filter((r) => r.status === "clean" || r.status === "cosmetic").length,
|
|
213
|
-
missingCount: results.filter((r) => r.status === "missing").length,
|
|
214
|
-
details: results
|
|
215
|
-
};
|
|
216
|
-
if (options.json) {
|
|
217
|
-
console.log(JSON.stringify(summary));
|
|
218
|
-
} else {
|
|
219
|
-
console.log(chalk.blue("\nAspect Drift Check\n"));
|
|
220
|
-
if (summary.healedCount > 0) {
|
|
221
|
-
console.log(chalk.green(` Auto-healed: ${summary.healedCount} shifted anchor(s)`));
|
|
222
|
-
}
|
|
223
|
-
if (summary.cleanCount > 0) {
|
|
224
|
-
console.log(chalk.green(` Clean: ${summary.cleanCount} anchor(s)`));
|
|
225
|
-
}
|
|
226
|
-
if (summary.driftedCount > 0) {
|
|
227
|
-
console.log(chalk.red(` Drifted: ${summary.driftedCount} anchor(s) (content changed)`));
|
|
228
|
-
for (const d of results.filter((d2) => d2.status === "modified")) {
|
|
229
|
-
console.log(chalk.red(` ${d.aspectId}: ${d.path}:${d.startLine}-${d.endLine}`));
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
if (summary.missingCount > 0) {
|
|
233
|
-
console.log(chalk.yellow(` Missing: ${summary.missingCount} anchor file(s) deleted`));
|
|
234
|
-
}
|
|
235
|
-
if (summary.driftedCount === 0 && summary.missingCount === 0) {
|
|
236
|
-
console.log(chalk.green("\n All anchors are clean.\n"));
|
|
237
|
-
} else {
|
|
238
|
-
console.log(chalk.gray("\n Run paradigm_aspect_check to review and fix.\n"));
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
} catch (err) {
|
|
242
|
-
if (options.json) {
|
|
243
|
-
console.log(JSON.stringify({ driftedCount: 0, healedCount: 0, cleanCount: 0, missingCount: 0, details: [], error: String(err) }));
|
|
244
|
-
} else {
|
|
245
|
-
console.log(chalk.red(`Drift check failed: ${err}`));
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
export {
|
|
250
|
-
driftCheckCommand
|
|
251
|
-
};
|