@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/history-WOWC573W.js
DELETED
|
@@ -1,277 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import "./chunk-PDX44BCA.js";
|
|
3
|
-
|
|
4
|
-
// src/commands/history/index.ts
|
|
5
|
-
import * as fs from "fs";
|
|
6
|
-
import * as path from "path";
|
|
7
|
-
import chalk from "chalk";
|
|
8
|
-
import * as yaml from "js-yaml";
|
|
9
|
-
var HISTORY_DIR = ".paradigm/history";
|
|
10
|
-
async function historyShowCommand(symbol, options = {}) {
|
|
11
|
-
const rootDir = process.cwd();
|
|
12
|
-
const historyPath = path.join(rootDir, HISTORY_DIR);
|
|
13
|
-
if (!fs.existsSync(historyPath)) {
|
|
14
|
-
console.log(chalk.yellow("No history directory found."));
|
|
15
|
-
console.log(chalk.gray(`Run \`paradigm history init\` to create .paradigm/history/`));
|
|
16
|
-
return;
|
|
17
|
-
}
|
|
18
|
-
const index = loadYaml(path.join(historyPath, "index.yaml"));
|
|
19
|
-
const entries = loadLog(path.join(historyPath, "log.jsonl"));
|
|
20
|
-
if (options.json) {
|
|
21
|
-
if (symbol) {
|
|
22
|
-
const symbolData = index?.by_symbol?.[symbol];
|
|
23
|
-
const symbolEntries = entries.filter((e) => e.symbols.includes(symbol));
|
|
24
|
-
console.log(JSON.stringify({ symbol, summary: symbolData, entries: symbolEntries }, null, 2));
|
|
25
|
-
} else {
|
|
26
|
-
console.log(JSON.stringify({ index, entries: entries.slice(-(options.limit || 20)) }, null, 2));
|
|
27
|
-
}
|
|
28
|
-
return;
|
|
29
|
-
}
|
|
30
|
-
console.log(chalk.magenta("\n History\n"));
|
|
31
|
-
if (symbol) {
|
|
32
|
-
const summary = index?.by_symbol?.[symbol];
|
|
33
|
-
const symbolEntries = entries.filter((e) => e.symbols.includes(symbol)).slice(-(options.limit || 10));
|
|
34
|
-
console.log(chalk.cyan(` Symbol: ${symbol}
|
|
35
|
-
`));
|
|
36
|
-
if (summary) {
|
|
37
|
-
const fragilityColor = summary.fragility === "critical" || summary.fragility === "high" ? chalk.red : summary.fragility === "medium" ? chalk.yellow : chalk.green;
|
|
38
|
-
console.log(chalk.white(" Summary:"));
|
|
39
|
-
console.log(chalk.gray(` Total changes: ${summary.total_changes}`));
|
|
40
|
-
console.log(chalk.gray(` Last modified: ${summary.last_modified}`));
|
|
41
|
-
console.log(chalk.gray(` Stability: ${(summary.stability_score * 100).toFixed(0)}%`));
|
|
42
|
-
console.log(fragilityColor(` Fragility: ${summary.fragility}`));
|
|
43
|
-
console.log();
|
|
44
|
-
}
|
|
45
|
-
if (symbolEntries.length > 0) {
|
|
46
|
-
console.log(chalk.white(" Recent changes:"));
|
|
47
|
-
symbolEntries.forEach((e) => {
|
|
48
|
-
const typeColor = e.type === "rollback" ? chalk.red : e.type === "validate" ? e.result === "pass" ? chalk.green : chalk.red : chalk.blue;
|
|
49
|
-
console.log(
|
|
50
|
-
typeColor(` [${e.type}] ${e.description || e.id}`) + chalk.gray(` - ${e.author.id} @ ${e.ts.split("T")[0]}`)
|
|
51
|
-
);
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
return;
|
|
55
|
-
}
|
|
56
|
-
const symbols = Object.keys(index?.by_symbol || {});
|
|
57
|
-
console.log(chalk.white(` Tracked symbols: ${symbols.length}`));
|
|
58
|
-
console.log(chalk.white(` Total entries: ${entries.length}`));
|
|
59
|
-
console.log();
|
|
60
|
-
const fragile = index?.fragile_symbols || [];
|
|
61
|
-
if (fragile.length > 0) {
|
|
62
|
-
console.log(chalk.red(" Fragile symbols:"));
|
|
63
|
-
fragile.slice(0, 5).forEach((f) => {
|
|
64
|
-
console.log(chalk.gray(` [${f.fragility}] ${f.symbol}`));
|
|
65
|
-
});
|
|
66
|
-
console.log();
|
|
67
|
-
}
|
|
68
|
-
const recent = entries.slice(-10);
|
|
69
|
-
if (recent.length > 0) {
|
|
70
|
-
console.log(chalk.white(" Recent entries:"));
|
|
71
|
-
recent.reverse().forEach((e) => {
|
|
72
|
-
const typeColor = e.type === "rollback" ? chalk.red : e.type === "validate" ? e.result === "pass" ? chalk.green : chalk.red : chalk.blue;
|
|
73
|
-
console.log(
|
|
74
|
-
typeColor(` [${e.type}] ${e.symbols.join(", ")}`) + chalk.gray(` - ${e.ts.split("T")[0]}`)
|
|
75
|
-
);
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
async function historyInitCommand(options = {}) {
|
|
80
|
-
const rootDir = process.cwd();
|
|
81
|
-
const historyPath = path.join(rootDir, HISTORY_DIR);
|
|
82
|
-
if (fs.existsSync(historyPath) && !options.force) {
|
|
83
|
-
console.log(chalk.yellow("History directory already exists."));
|
|
84
|
-
console.log(chalk.gray("Use --force to reinitialize"));
|
|
85
|
-
return;
|
|
86
|
-
}
|
|
87
|
-
fs.mkdirSync(historyPath, { recursive: true });
|
|
88
|
-
fs.writeFileSync(path.join(historyPath, "log.jsonl"), "");
|
|
89
|
-
const index = {
|
|
90
|
-
version: "1.0",
|
|
91
|
-
generated: (/* @__PURE__ */ new Date()).toISOString(),
|
|
92
|
-
by_symbol: {},
|
|
93
|
-
co_changes: [],
|
|
94
|
-
fragile_symbols: []
|
|
95
|
-
};
|
|
96
|
-
fs.writeFileSync(path.join(historyPath, "index.yaml"), yaml.dump(index, { lineWidth: -1 }));
|
|
97
|
-
const validation = {
|
|
98
|
-
version: "1.0",
|
|
99
|
-
total_validations: 0,
|
|
100
|
-
pass_rate: 0,
|
|
101
|
-
by_symbol: {}
|
|
102
|
-
};
|
|
103
|
-
fs.writeFileSync(path.join(historyPath, "validation.yaml"), yaml.dump(validation, { lineWidth: -1 }));
|
|
104
|
-
console.log(chalk.green("History directory initialized!"));
|
|
105
|
-
console.log(chalk.gray(` ${historyPath}/`));
|
|
106
|
-
console.log(chalk.gray(" log.jsonl"));
|
|
107
|
-
console.log(chalk.gray(" index.yaml"));
|
|
108
|
-
console.log(chalk.gray(" validation.yaml"));
|
|
109
|
-
}
|
|
110
|
-
async function historyFragileCommand(options = {}) {
|
|
111
|
-
const rootDir = process.cwd();
|
|
112
|
-
const indexPath = path.join(rootDir, HISTORY_DIR, "index.yaml");
|
|
113
|
-
if (!fs.existsSync(indexPath)) {
|
|
114
|
-
console.log(chalk.yellow("No history index found."));
|
|
115
|
-
console.log(chalk.gray("Run `paradigm history reindex` to generate"));
|
|
116
|
-
return;
|
|
117
|
-
}
|
|
118
|
-
const index = loadYaml(indexPath);
|
|
119
|
-
const fragile = index?.fragile_symbols || [];
|
|
120
|
-
if (options.json) {
|
|
121
|
-
console.log(JSON.stringify({ fragile }, null, 2));
|
|
122
|
-
return;
|
|
123
|
-
}
|
|
124
|
-
console.log(chalk.magenta("\n Fragile Symbols\n"));
|
|
125
|
-
if (fragile.length === 0) {
|
|
126
|
-
console.log(chalk.green(" No fragile symbols detected!"));
|
|
127
|
-
return;
|
|
128
|
-
}
|
|
129
|
-
fragile.forEach((f) => {
|
|
130
|
-
const color = f.fragility === "critical" ? chalk.red : chalk.yellow;
|
|
131
|
-
console.log(color(` [${f.fragility}] ${f.symbol}`));
|
|
132
|
-
console.log(chalk.gray(` ${f.reason}`));
|
|
133
|
-
});
|
|
134
|
-
console.log();
|
|
135
|
-
console.log(chalk.gray(" Recommendation: Add extra test coverage before modifying these symbols"));
|
|
136
|
-
}
|
|
137
|
-
async function historyReindexCommand() {
|
|
138
|
-
const rootDir = process.cwd();
|
|
139
|
-
const historyPath = path.join(rootDir, HISTORY_DIR);
|
|
140
|
-
const logPath = path.join(historyPath, "log.jsonl");
|
|
141
|
-
if (!fs.existsSync(logPath)) {
|
|
142
|
-
console.log(chalk.yellow("No history log found."));
|
|
143
|
-
return;
|
|
144
|
-
}
|
|
145
|
-
const entries = loadLog(logPath);
|
|
146
|
-
const index = buildIndex(entries);
|
|
147
|
-
const indexPath = path.join(historyPath, "index.yaml");
|
|
148
|
-
fs.writeFileSync(indexPath, yaml.dump(index, { lineWidth: -1 }));
|
|
149
|
-
console.log(chalk.green("History index regenerated!"));
|
|
150
|
-
console.log(chalk.gray(` Symbols: ${Object.keys(index.by_symbol).length}`));
|
|
151
|
-
console.log(chalk.gray(` Entries: ${entries.length}`));
|
|
152
|
-
console.log(chalk.gray(` Fragile: ${index.fragile_symbols.length}`));
|
|
153
|
-
}
|
|
154
|
-
async function historyRecordCommand(options) {
|
|
155
|
-
const rootDir = process.cwd();
|
|
156
|
-
const logPath = path.join(rootDir, HISTORY_DIR, "log.jsonl");
|
|
157
|
-
fs.mkdirSync(path.join(rootDir, HISTORY_DIR), { recursive: true });
|
|
158
|
-
let count = 1;
|
|
159
|
-
if (fs.existsSync(logPath)) {
|
|
160
|
-
const content = fs.readFileSync(logPath, "utf8");
|
|
161
|
-
count = content.split("\n").filter((l) => l.trim()).length + 1;
|
|
162
|
-
}
|
|
163
|
-
const entry = {
|
|
164
|
-
id: `h${String(count).padStart(4, "0")}`,
|
|
165
|
-
ts: (/* @__PURE__ */ new Date()).toISOString(),
|
|
166
|
-
type: options.type,
|
|
167
|
-
symbols: options.symbols.split(",").map((s) => s.trim()),
|
|
168
|
-
author: { type: "human", id: process.env.USER || "unknown" },
|
|
169
|
-
description: options.description,
|
|
170
|
-
intent: options.intent,
|
|
171
|
-
commit: options.commit,
|
|
172
|
-
reason: options.reason
|
|
173
|
-
};
|
|
174
|
-
fs.appendFileSync(logPath, JSON.stringify(entry) + "\n");
|
|
175
|
-
console.log(chalk.green(`Entry ${entry.id} recorded!`));
|
|
176
|
-
}
|
|
177
|
-
async function historyValidateCommand(options) {
|
|
178
|
-
const rootDir = process.cwd();
|
|
179
|
-
const logPath = path.join(rootDir, HISTORY_DIR, "log.jsonl");
|
|
180
|
-
fs.mkdirSync(path.join(rootDir, HISTORY_DIR), { recursive: true });
|
|
181
|
-
let count = 1;
|
|
182
|
-
if (fs.existsSync(logPath)) {
|
|
183
|
-
const content = fs.readFileSync(logPath, "utf8");
|
|
184
|
-
count = content.split("\n").filter((l) => l.trim()).length + 1;
|
|
185
|
-
}
|
|
186
|
-
const entry = {
|
|
187
|
-
id: `h${String(count).padStart(4, "0")}`,
|
|
188
|
-
ts: (/* @__PURE__ */ new Date()).toISOString(),
|
|
189
|
-
type: "validate",
|
|
190
|
-
symbols: [],
|
|
191
|
-
author: { type: "agent", id: "cli" },
|
|
192
|
-
ref: options.ref,
|
|
193
|
-
result: options.result,
|
|
194
|
-
tests: options.passed !== void 0 ? { passed: options.passed, failed: options.failed || 0 } : void 0
|
|
195
|
-
};
|
|
196
|
-
fs.appendFileSync(logPath, JSON.stringify(entry) + "\n");
|
|
197
|
-
console.log(chalk.green(`Validation ${entry.id} recorded: ${options.result}`));
|
|
198
|
-
}
|
|
199
|
-
function loadYaml(filePath) {
|
|
200
|
-
if (!fs.existsSync(filePath)) return null;
|
|
201
|
-
try {
|
|
202
|
-
const content = fs.readFileSync(filePath, "utf8");
|
|
203
|
-
return yaml.load(content);
|
|
204
|
-
} catch {
|
|
205
|
-
return null;
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
function loadLog(logPath) {
|
|
209
|
-
if (!fs.existsSync(logPath)) return [];
|
|
210
|
-
const content = fs.readFileSync(logPath, "utf8");
|
|
211
|
-
return content.split("\n").filter((l) => l.trim()).map((l) => {
|
|
212
|
-
try {
|
|
213
|
-
return JSON.parse(l);
|
|
214
|
-
} catch {
|
|
215
|
-
return null;
|
|
216
|
-
}
|
|
217
|
-
}).filter(Boolean);
|
|
218
|
-
}
|
|
219
|
-
function buildIndex(entries) {
|
|
220
|
-
const bySymbol = {};
|
|
221
|
-
const symbolChanges = {};
|
|
222
|
-
for (const entry of entries) {
|
|
223
|
-
for (const symbol of entry.symbols) {
|
|
224
|
-
if (!symbolChanges[symbol]) symbolChanges[symbol] = [];
|
|
225
|
-
symbolChanges[symbol].push(entry);
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
for (const [symbol, changes] of Object.entries(symbolChanges)) {
|
|
229
|
-
const sorted = changes.sort((a, b) => new Date(b.ts).getTime() - new Date(a.ts).getTime());
|
|
230
|
-
const rollbacks = changes.filter((c) => c.type === "rollback").length;
|
|
231
|
-
const failures = changes.filter((c) => c.type === "validate" && c.result === "fail").length;
|
|
232
|
-
const total = changes.length;
|
|
233
|
-
const stabilityScore = Math.max(0, 1 - (rollbacks * 0.2 + failures * 0.1) / Math.max(1, total / 10));
|
|
234
|
-
let fragility = "low";
|
|
235
|
-
if (stabilityScore < 0.5) fragility = "critical";
|
|
236
|
-
else if (stabilityScore < 0.7) fragility = "high";
|
|
237
|
-
else if (stabilityScore < 0.85) fragility = "medium";
|
|
238
|
-
const humanContributors = /* @__PURE__ */ new Set();
|
|
239
|
-
const agentContributors = /* @__PURE__ */ new Set();
|
|
240
|
-
for (const change of changes) {
|
|
241
|
-
if (change.author.type === "human") humanContributors.add(change.author.id);
|
|
242
|
-
else agentContributors.add(change.author.id);
|
|
243
|
-
}
|
|
244
|
-
bySymbol[symbol] = {
|
|
245
|
-
symbol,
|
|
246
|
-
total_changes: total,
|
|
247
|
-
last_modified: sorted[0]?.ts || (/* @__PURE__ */ new Date()).toISOString(),
|
|
248
|
-
stability_score: stabilityScore,
|
|
249
|
-
fragility,
|
|
250
|
-
recent: sorted.slice(0, 5),
|
|
251
|
-
contributors: {
|
|
252
|
-
human: Array.from(humanContributors),
|
|
253
|
-
agent: Array.from(agentContributors)
|
|
254
|
-
}
|
|
255
|
-
};
|
|
256
|
-
}
|
|
257
|
-
const fragileSymbols = Object.values(bySymbol).filter((s) => s.fragility === "high" || s.fragility === "critical").map((s) => ({
|
|
258
|
-
symbol: s.symbol,
|
|
259
|
-
fragility: s.fragility,
|
|
260
|
-
reason: `Stability score: ${(s.stability_score * 100).toFixed(0)}%`
|
|
261
|
-
}));
|
|
262
|
-
return {
|
|
263
|
-
version: "1.0",
|
|
264
|
-
generated: (/* @__PURE__ */ new Date()).toISOString(),
|
|
265
|
-
by_symbol: bySymbol,
|
|
266
|
-
co_changes: [],
|
|
267
|
-
fragile_symbols: fragileSymbols
|
|
268
|
-
};
|
|
269
|
-
}
|
|
270
|
-
export {
|
|
271
|
-
historyFragileCommand,
|
|
272
|
-
historyInitCommand,
|
|
273
|
-
historyRecordCommand,
|
|
274
|
-
historyReindexCommand,
|
|
275
|
-
historyShowCommand,
|
|
276
|
-
historyValidateCommand
|
|
277
|
-
};
|
package/dist/hooks-HFWSCGPV.js
DELETED
|
@@ -1,194 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
aggregateFromDirectory
|
|
4
|
-
} from "./chunk-ZGUAAVMA.js";
|
|
5
|
-
import "./chunk-EDOAWN7J.js";
|
|
6
|
-
import "./chunk-IRKUEJVW.js";
|
|
7
|
-
import "./chunk-PDX44BCA.js";
|
|
8
|
-
|
|
9
|
-
// src/commands/integrity.ts
|
|
10
|
-
import * as fs from "fs";
|
|
11
|
-
import * as path from "path";
|
|
12
|
-
import chalk from "chalk";
|
|
13
|
-
async function integrityCommand(options = {}) {
|
|
14
|
-
const cwd = process.cwd();
|
|
15
|
-
const aggregation = await aggregateFromDirectory(cwd);
|
|
16
|
-
const symbols = aggregation.symbols;
|
|
17
|
-
const brokenRefs = findBrokenReferences(symbols);
|
|
18
|
-
const duplicates = findDuplicateSymbols(symbols);
|
|
19
|
-
const orphaned = findOrphanedSymbols(symbols);
|
|
20
|
-
const missingAnchors = findMissingAnchors(symbols, cwd);
|
|
21
|
-
const outOfBounds = findAnchorOutOfBounds(symbols, cwd);
|
|
22
|
-
const brokenCount = brokenRefs.length;
|
|
23
|
-
const duplicateCount = duplicates.length;
|
|
24
|
-
const orphanedCount = orphaned.length;
|
|
25
|
-
const missingAnchorCount = missingAnchors.length;
|
|
26
|
-
const outOfBoundsCount = outOfBounds.length;
|
|
27
|
-
if (options.json) {
|
|
28
|
-
const result = {
|
|
29
|
-
brokenCount,
|
|
30
|
-
duplicateCount,
|
|
31
|
-
orphanedCount,
|
|
32
|
-
missingAnchors: missingAnchorCount,
|
|
33
|
-
outOfBoundsAnchors: outOfBoundsCount,
|
|
34
|
-
details: {
|
|
35
|
-
brokenReferences: brokenRefs,
|
|
36
|
-
duplicateSymbols: duplicates,
|
|
37
|
-
orphanedSymbols: orphaned.slice(0, 20),
|
|
38
|
-
missingAnchorFiles: missingAnchors,
|
|
39
|
-
anchorOutOfBounds: outOfBounds
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
console.log(JSON.stringify(result));
|
|
43
|
-
return;
|
|
44
|
-
}
|
|
45
|
-
console.log(chalk.blue("\n\u{1F50D} Paradigm Integrity Check\n"));
|
|
46
|
-
if (brokenCount > 0) {
|
|
47
|
-
console.log(chalk.red(` \u2717 ${brokenCount} broken reference${brokenCount > 1 ? "s" : ""}`));
|
|
48
|
-
for (const ref of brokenRefs.slice(0, 10)) {
|
|
49
|
-
console.log(chalk.gray(` \u2502 ${ref.from} \u2192 ${ref.to} (${ref.refType}) in ${ref.file}`));
|
|
50
|
-
}
|
|
51
|
-
if (brokenCount > 10) {
|
|
52
|
-
console.log(chalk.gray(` \u2502 ... and ${brokenCount - 10} more`));
|
|
53
|
-
}
|
|
54
|
-
} else {
|
|
55
|
-
console.log(chalk.green(" \u2713 No broken references"));
|
|
56
|
-
}
|
|
57
|
-
if (duplicateCount > 0) {
|
|
58
|
-
console.log(chalk.red(` \u2717 ${duplicateCount} duplicate symbol${duplicateCount > 1 ? "s" : ""}`));
|
|
59
|
-
for (const dup of duplicates.slice(0, 10)) {
|
|
60
|
-
console.log(chalk.gray(` \u2502 ${dup.symbol} defined in: ${dup.files.join(", ")}`));
|
|
61
|
-
}
|
|
62
|
-
} else {
|
|
63
|
-
console.log(chalk.green(" \u2713 No duplicate symbols"));
|
|
64
|
-
}
|
|
65
|
-
if (orphanedCount > 0) {
|
|
66
|
-
console.log(chalk.yellow(` \u26A0 ${orphanedCount} isolated symbol${orphanedCount > 1 ? "s" : ""} (no connections to other symbols)`));
|
|
67
|
-
for (const orph of orphaned.slice(0, 5)) {
|
|
68
|
-
console.log(chalk.gray(` \u2502 ${orph.symbol} in ${orph.file}`));
|
|
69
|
-
}
|
|
70
|
-
if (orphanedCount > 5) {
|
|
71
|
-
console.log(chalk.gray(` \u2502 ... and ${orphanedCount - 5} more`));
|
|
72
|
-
}
|
|
73
|
-
} else {
|
|
74
|
-
console.log(chalk.green(" \u2713 All symbols are connected"));
|
|
75
|
-
}
|
|
76
|
-
if (missingAnchorCount > 0) {
|
|
77
|
-
console.log(chalk.red(` \u2717 ${missingAnchorCount} anchor${missingAnchorCount > 1 ? "s" : ""} pointing to missing files`));
|
|
78
|
-
for (const a of missingAnchors.slice(0, 5)) {
|
|
79
|
-
console.log(chalk.gray(` \u2502 ${a.symbol}: ${a.anchor}`));
|
|
80
|
-
}
|
|
81
|
-
} else {
|
|
82
|
-
console.log(chalk.green(" \u2713 All anchor files exist"));
|
|
83
|
-
}
|
|
84
|
-
if (outOfBoundsCount > 0) {
|
|
85
|
-
console.log(chalk.yellow(` \u26A0 ${outOfBoundsCount} anchor${outOfBoundsCount > 1 ? "s" : ""} with line ranges exceeding file length`));
|
|
86
|
-
for (const a of outOfBounds.slice(0, 5)) {
|
|
87
|
-
console.log(chalk.gray(` \u2502 ${a.symbol}: ${a.anchor} (file has ${a.fileLines} lines)`));
|
|
88
|
-
}
|
|
89
|
-
} else {
|
|
90
|
-
console.log(chalk.green(" \u2713 All anchor line ranges valid"));
|
|
91
|
-
}
|
|
92
|
-
const totalIssues = brokenCount + duplicateCount + missingAnchorCount + outOfBoundsCount;
|
|
93
|
-
console.log("");
|
|
94
|
-
if (totalIssues === 0) {
|
|
95
|
-
console.log(chalk.green("\u2728 All integrity checks passed!\n"));
|
|
96
|
-
} else {
|
|
97
|
-
console.log(`${totalIssues} issue${totalIssues > 1 ? "s" : ""} found. Run 'paradigm doctor' for full diagnostics.
|
|
98
|
-
`);
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
function findBrokenReferences(symbols) {
|
|
102
|
-
const broken = [];
|
|
103
|
-
const definedIds = new Set(symbols.map((s) => s.symbol));
|
|
104
|
-
for (const sym of symbols) {
|
|
105
|
-
if (sym.parentSymbol) {
|
|
106
|
-
const parentRef = sym.parentSymbol.trim();
|
|
107
|
-
const normalized = /^[#$^!~]/.test(parentRef) ? parentRef : `#${parentRef}`;
|
|
108
|
-
if (!definedIds.has(normalized)) {
|
|
109
|
-
broken.push({ from: sym.symbol, to: normalized, file: sym.filePath, refType: "parent" });
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
const seen = /* @__PURE__ */ new Set();
|
|
114
|
-
return broken.filter((b) => {
|
|
115
|
-
const key = `${b.from}->${b.to}`;
|
|
116
|
-
if (seen.has(key)) return false;
|
|
117
|
-
seen.add(key);
|
|
118
|
-
return true;
|
|
119
|
-
});
|
|
120
|
-
}
|
|
121
|
-
function findDuplicateSymbols(symbols) {
|
|
122
|
-
const bySymbol = /* @__PURE__ */ new Map();
|
|
123
|
-
for (const sym of symbols) {
|
|
124
|
-
const entries = bySymbol.get(sym.symbol) || [];
|
|
125
|
-
if (!entries.find((e) => e.file === sym.filePath)) {
|
|
126
|
-
entries.push({ file: sym.filePath, source: sym.source });
|
|
127
|
-
}
|
|
128
|
-
bySymbol.set(sym.symbol, entries);
|
|
129
|
-
}
|
|
130
|
-
const dupes = [];
|
|
131
|
-
for (const [symbol, entries] of bySymbol) {
|
|
132
|
-
if (entries.length <= 1) continue;
|
|
133
|
-
if (entries.length === 2) {
|
|
134
|
-
const sources = entries.map((e) => e.source).sort();
|
|
135
|
-
if (sources[0] === "portal" && sources[1] === "purpose") continue;
|
|
136
|
-
}
|
|
137
|
-
dupes.push({ symbol, files: entries.map((e) => e.file) });
|
|
138
|
-
}
|
|
139
|
-
return dupes;
|
|
140
|
-
}
|
|
141
|
-
function findOrphanedSymbols(symbols) {
|
|
142
|
-
return symbols.filter((s) => s.referencedBy.length === 0 && s.references.length === 0).map((s) => ({ symbol: s.symbol, file: s.filePath }));
|
|
143
|
-
}
|
|
144
|
-
function resolveAnchorPath(anchorPath, rootDir, purposeFilePath) {
|
|
145
|
-
if (path.isAbsolute(anchorPath)) return anchorPath;
|
|
146
|
-
if (purposeFilePath) {
|
|
147
|
-
const purposeDir = path.dirname(purposeFilePath);
|
|
148
|
-
const relativePath = path.join(purposeDir, anchorPath);
|
|
149
|
-
if (fs.existsSync(relativePath)) return relativePath;
|
|
150
|
-
}
|
|
151
|
-
return path.join(rootDir, anchorPath);
|
|
152
|
-
}
|
|
153
|
-
function findMissingAnchors(symbols, rootDir) {
|
|
154
|
-
const missing = [];
|
|
155
|
-
for (const sym of symbols) {
|
|
156
|
-
if (!sym.anchors || sym.anchors.length === 0) continue;
|
|
157
|
-
for (const anchor of sym.anchors) {
|
|
158
|
-
const filePath = resolveAnchorPath(anchor.path, rootDir, sym.filePath);
|
|
159
|
-
if (!fs.existsSync(filePath)) {
|
|
160
|
-
missing.push({ symbol: sym.symbol, anchor: anchor.raw });
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
return missing;
|
|
165
|
-
}
|
|
166
|
-
function findAnchorOutOfBounds(symbols, rootDir) {
|
|
167
|
-
const oob = [];
|
|
168
|
-
for (const sym of symbols) {
|
|
169
|
-
if (!sym.anchors || sym.anchors.length === 0) continue;
|
|
170
|
-
for (const anchor of sym.anchors) {
|
|
171
|
-
const filePath = resolveAnchorPath(anchor.path, rootDir, sym.filePath);
|
|
172
|
-
if (!fs.existsSync(filePath)) continue;
|
|
173
|
-
const maxLine = getMaxLine(anchor);
|
|
174
|
-
if (maxLine <= 0) continue;
|
|
175
|
-
try {
|
|
176
|
-
const content = fs.readFileSync(filePath, "utf8");
|
|
177
|
-
const lineCount = content.split("\n").length;
|
|
178
|
-
if (maxLine > lineCount) {
|
|
179
|
-
oob.push({ symbol: sym.symbol, anchor: anchor.raw, fileLines: lineCount });
|
|
180
|
-
}
|
|
181
|
-
} catch {
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
return oob;
|
|
186
|
-
}
|
|
187
|
-
function getMaxLine(anchor) {
|
|
188
|
-
if (typeof anchor.lines === "number") return anchor.lines;
|
|
189
|
-
if (Array.isArray(anchor.lines)) return Math.max(...anchor.lines);
|
|
190
|
-
return 0;
|
|
191
|
-
}
|
|
192
|
-
export {
|
|
193
|
-
integrityCommand
|
|
194
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
getJournalStats,
|
|
4
|
-
init_journal_loader,
|
|
5
|
-
loadAllJournalEntries,
|
|
6
|
-
loadJournalEntries,
|
|
7
|
-
loadJournalEntry,
|
|
8
|
-
recordJournalEntry
|
|
9
|
-
} from "./chunk-MCMOGQMU.js";
|
|
10
|
-
import "./chunk-7N7GSU6K.js";
|
|
11
|
-
init_journal_loader();
|
|
12
|
-
export {
|
|
13
|
-
getJournalStats,
|
|
14
|
-
loadAllJournalEntries,
|
|
15
|
-
loadJournalEntries,
|
|
16
|
-
loadJournalEntry,
|
|
17
|
-
recordJournalEntry
|
|
18
|
-
};
|