@a-company/paradigm 5.10.0 → 5.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accept-orchestration-IUAWQZUN.js +18 -0
- package/dist/add-P76GEMGF.js +8 -0
- package/dist/agent-UUTYOFTH.js +33 -0
- package/dist/agent-loader-EPXURMO7.js +2 -0
- package/dist/agent-loader-PYGPX6D2.js +2 -0
- package/dist/agent-state-KSQ3S7OB.js +2 -0
- package/dist/agents-suggest-HYTFMQD3.js +10 -0
- package/dist/aggregate-W66DM3GA.js +10 -0
- package/dist/ambient-HYZR42NX.js +35 -0
- package/dist/assess-UFPYEJKP.js +9 -0
- package/dist/auto-RHJXOZFL.js +14 -0
- package/dist/beacon-5QVYV5DF.js +13 -0
- package/dist/calibration-OLJYB5HN.js +7 -0
- package/dist/check-THVGY4R5.js +14 -0
- package/dist/chunk-22ISTMKI.js +31 -0
- package/dist/chunk-2QO33NYK.js +3 -0
- package/dist/chunk-33LKBMVK.js +134 -0
- package/dist/chunk-4QADCWPU.js +7 -0
- package/dist/chunk-4TXOVRWD.js +3 -0
- package/dist/chunk-4UJ4NIEQ.js +4 -0
- package/dist/chunk-4ZGGWZ32.js +3 -0
- package/dist/chunk-5TAVYPOV.js +2 -0
- package/dist/chunk-6EX37L4Q.js +8 -0
- package/dist/chunk-AD5TAD2A.js +5 -0
- package/dist/chunk-AGVAHVUA.js +2 -0
- package/dist/chunk-AO7ZSRME.js +13 -0
- package/dist/chunk-BFD3GFRK.js +2 -0
- package/dist/chunk-D34YFK4M.js +6 -0
- package/dist/chunk-DVZWCXB6.js +2 -0
- package/dist/chunk-EKZDFEJW.js +2 -0
- package/dist/chunk-ET5XJTSX.js +2 -0
- package/dist/chunk-FYDRENK7.js +3 -0
- package/dist/chunk-HMQ5BHP2.js +743 -0
- package/dist/chunk-HXKWL3VK.js +29 -0
- package/dist/chunk-IZSBGW6E.js +2 -0
- package/dist/chunk-J32OPJEX.js +2 -0
- package/dist/chunk-JBDMCRPP.js +7 -0
- package/dist/chunk-JIXHEBGK.js +7 -0
- package/dist/chunk-JNSJVCTU.js +2 -0
- package/dist/chunk-JQKKVAAN.js +2 -0
- package/dist/chunk-KLBH26PA.js +429 -0
- package/dist/chunk-L6K5HNDL.js +24 -0
- package/dist/chunk-LKAT7IAK.js +2 -0
- package/dist/chunk-M4UMM6DC.js +5 -0
- package/dist/chunk-NKYNHSA5.js +424 -0
- package/dist/chunk-NW6OKHE6.js +5 -0
- package/dist/chunk-NXRVR37G.js +60 -0
- package/dist/chunk-ODVKPZZ4.js +2 -0
- package/dist/chunk-PUBB7LIT.js +5 -0
- package/dist/chunk-Q2J542ST.js +2 -0
- package/dist/chunk-QGZRM6ZB.js +2 -0
- package/dist/chunk-QNZEG7IT.js +13 -0
- package/dist/chunk-QT2LKB3P.js +7 -0
- package/dist/chunk-RVRARWSY.js +9 -0
- package/dist/chunk-T6IDXUUA.js +2 -0
- package/dist/chunk-TYWB5IQJ.js +3 -0
- package/dist/chunk-UIKLE3WD.js +2 -0
- package/dist/chunk-V7K6CQVX.js +111 -0
- package/dist/chunk-VCKKJDLP.js +8 -0
- package/dist/chunk-VG7FN2TU.js +4 -0
- package/dist/chunk-W5IWDW4Y.js +16 -0
- package/dist/chunk-W7C6FFMO.js +8 -0
- package/dist/chunk-WESTEMIM.js +10 -0
- package/dist/chunk-WR6D3SC6.js +5 -0
- package/dist/chunk-WS2N27RX.js +3 -0
- package/dist/chunk-XMAV5AG6.js +2 -0
- package/dist/chunk-XROULIQN.js +2 -0
- package/dist/chunk-XUFYOXOU.js +3 -0
- package/dist/chunk-Y4XFVDZC.js +3 -0
- package/dist/chunk-Y6KXTQBG.js +2 -0
- package/dist/{chunk-GTR2TBIJ.js → chunk-Z2UZUCY6.js} +237 -1047
- package/dist/chunk-Z34K6GY2.js +8 -0
- package/dist/claude-4LR3LJQZ.js +13 -0
- package/dist/claude-cli-UP6HGH7C.js +6 -0
- package/dist/claude-code-RLJ4GX77.js +11 -0
- package/dist/claude-code-teams-R37HJY3Y.js +29 -0
- package/dist/commands-LMUD5L6R.js +455 -0
- package/dist/compliance-GZ7UAOG3.js +6 -0
- package/dist/conductor-Y5IXELTL.js +4 -0
- package/dist/config-schema-HR7LDEQ6.js +2 -0
- package/dist/constellation-CG7C4WFE.js +13 -0
- package/dist/context-audit-RSSRX6XC.js +6 -0
- package/dist/cost-IDNVMAEV.js +10 -0
- package/dist/cost-PK4KIF7R.js +2 -0
- package/dist/cursor-cli-QKF7Z6M2.js +4 -0
- package/dist/cursorrules-U5O4G5T4.js +14 -0
- package/dist/decision-loader-2XPZE4EZ.js +2 -0
- package/dist/delete-P5VULXR4.js +14 -0
- package/dist/diff-RTFUKJHF.js +9 -0
- package/dist/discipline-H7LDI6NT.js +2 -0
- package/dist/dist-3ZCH25SG.js +2 -0
- package/dist/dist-KGRCLBJP-2QAPFYNF.js +39 -0
- package/dist/dist-R3RWD35F.js +2 -0
- package/dist/dist-VGFSP3XM.js +2 -0
- package/dist/dist-VXCZWVVJ.js +2 -0
- package/dist/dist-W3XCATBJ.js +2 -0
- package/dist/docs-EDQ2STFK.js +2 -0
- package/dist/docs-RXPN6CK7.js +12 -0
- package/dist/doctor-2T2QL6VM.js +2 -0
- package/dist/drift-ILZE5BFJ.js +13 -0
- package/dist/echo-UPTQUEDU.js +46 -0
- package/dist/edit-GUU3HBVW.js +9 -0
- package/dist/event-Y3VXC2RV.js +3 -0
- package/dist/explain-files-3GPZUETV.js +4 -0
- package/dist/export-CV5KCTPS.js +2 -0
- package/dist/flow-S3RQ4YPY.js +11 -0
- package/dist/global-C44FW4G2.js +13 -0
- package/dist/graduate-3BBSC27A.js +5 -0
- package/dist/graph-CNDE5TAT.js +2 -0
- package/dist/graph-server-COZR5C3Z.js +14 -0
- package/dist/habits-4J2KRYUL.js +42 -0
- package/dist/history-UW454SDP.js +12 -0
- package/dist/hooks-XH52VGOU.js +2 -0
- package/dist/index.js +15 -1039
- package/dist/init-24MAQJFM.js +2 -0
- package/dist/integrity-UYDOOJDP.js +7 -0
- package/dist/integrity-checker-DHGMZQDG.js +2 -0
- package/dist/journal-loader-GLH7XFTK.js +2 -0
- package/dist/lint-IGKE6UPS.js +26 -0
- package/dist/list-5IUGP3ZB.js +7 -0
- package/dist/list-YKIQNKGB.js +6 -0
- package/dist/lore-loader-RVQI5GXL.js +2 -0
- package/dist/lore-loader-XY5MZRR2.js +2 -0
- package/dist/lore-server-FC2GMDLT.js +14 -0
- package/dist/manual-RXSPSFLL.js +20 -0
- package/dist/mcp.js +93 -20484
- package/dist/migrate-X5OMAFAQ.js +59 -0
- package/dist/migrate-assessments-GEI5WMI2.js +4 -0
- package/dist/model-discovery-HMB3YI4L.js +2 -0
- package/dist/nomination-engine-XF7TWPAP.js +2 -0
- package/dist/notebook-PE3JSYZI.js +11 -0
- package/dist/notebook-loader-CENTDDUJ.js +2 -0
- package/dist/orchestrate-35HBQ3O3.js +8 -0
- package/dist/peers-P2KXU7ZK.js +5 -0
- package/dist/persona-STQWZH5P.js +29 -0
- package/dist/pipeline-MZUITRVN.js +4 -0
- package/dist/platform-server-2KXHGHFV.js +25 -0
- package/dist/plugin-update-checker-M7PW434O.js +2 -0
- package/dist/portal-check-3JVNLOEP.js +8 -0
- package/dist/portal-compliance-2UG4VKWH.js +2 -0
- package/dist/probe-5L5BQDGE.js +6 -0
- package/dist/project-type-SURTOIG7.js +2 -0
- package/dist/promote-NJQDZBZA.js +8 -0
- package/dist/providers-4PXMWA7V.js +8 -0
- package/dist/quiz-FE5UGAY2.js +10 -0
- package/dist/record-YXPB34MY.js +6 -0
- package/dist/reindex-PGDQSM42.js +2 -0
- package/dist/remember-MJRNTXYS.js +14 -0
- package/dist/retag-N5XF3KXP.js +6 -0
- package/dist/review-6UAH6V3R.js +11 -0
- package/dist/review-77QI6VOC.js +6 -0
- package/dist/ripple-ZGDITCGB.js +10 -0
- package/dist/roster-FLRZ5J42.js +2 -0
- package/dist/sentinel-HYAZ3CO5.js +19 -0
- package/dist/sentinel-bridge-VR357PKL.js +2 -0
- package/dist/sentinel-mcp.js +38 -3808
- package/dist/sentinel.js +1 -34
- package/dist/serve-JE6UF5P2.js +8 -0
- package/dist/serve-L52ZUTU6.js +10 -0
- package/dist/serve-OY6XYL7F.js +12 -0
- package/dist/server-2MNROHF6.js +7 -0
- package/dist/server-4YNUIK4W.js +8 -0
- package/dist/session-tracker-SKOMBDOW.js +2 -0
- package/dist/session-work-log-3MNUDEZ6.js +2 -0
- package/dist/session-work-log-J2H5OZBR.js +2 -0
- package/dist/setup-3F5IK7MO.js +31 -0
- package/dist/setup-KPIMRZ4Q.js +2 -0
- package/dist/shift-6GCNH666.js +11 -0
- package/dist/show-BOAVWZPZ.js +7 -0
- package/dist/show-PJ5LFLIL.js +5 -0
- package/dist/snapshot-L2G56RPL.js +8 -0
- package/dist/spawn-UH5RENSE.js +12 -0
- package/dist/status-77M3SDIF.js +8 -0
- package/dist/status-A37ECYNJ.js +6 -0
- package/dist/summary-ZJLQ6KHB.js +7 -0
- package/dist/sweep-HU74OPVW.js +17 -0
- package/dist/switch-CTW4PDGI.js +17 -0
- package/dist/symphony-3QMBGCZY.js +2 -0
- package/dist/symphony-QI63XL62.js +53 -0
- package/dist/symphony-loader-XACVV2E3.js +2 -0
- package/dist/symphony-peers-U4KHMKGI.js +2 -0
- package/dist/symphony-peers-X5NGWXFP.js +2 -0
- package/dist/symphony-relay-5GY5JIPT.js +3 -0
- package/dist/sync-QRDSFETO.js +2 -0
- package/dist/sync-llms-HL5PPW3M.js +15 -0
- package/dist/task-loader-NZFDTUQ5.js +2 -0
- package/dist/team-WGERKGNP.js +2 -0
- package/dist/test-BQJMS4Y2.js +111 -0
- package/dist/thread-HFXK65D4.js +41 -0
- package/dist/timeline-K3ZFKJ3R.js +6 -0
- package/dist/triage-FCWOZASE.js +18 -0
- package/dist/tutorial-UC6YQMNN.js +305 -0
- package/dist/university-content/courses/.purpose +74 -5
- package/dist/university-content/courses/para-701.json +807 -0
- package/dist/university-content/plsat/.purpose +3 -2
- package/dist/university-ui/assets/{index-BjewBB6s.js → index-CGFJczb1.js} +2 -2
- package/dist/university-ui/assets/{index-BjewBB6s.js.map → index-CGFJczb1.js.map} +1 -1
- package/dist/university-ui/index.html +1 -1
- package/dist/upgrade-B4IOLZYK.js +53 -0
- package/dist/validate-C6SMKGYD.js +9 -0
- package/dist/validate-LSCDOLBO.js +13 -0
- package/dist/validate-VZXTJHGO.js +6 -0
- package/dist/watch-LRM5XD46.js +8 -0
- package/dist/watch-PZCCUP6K.js +9 -0
- package/dist/wisdom-XZ3QKPNP.js +7 -0
- package/dist/work-log-loader-DL5GZ2BQ.js +2 -0
- package/dist/workspace-2ODL5WLY.js +2 -0
- package/package.json +1 -1
- package/platform-ui/dist/assets/AmbientSection-DqQ2mfCO.js +1 -0
- package/platform-ui/dist/assets/{CanvasSection-DwPTRdIN.js → CanvasSection-DLW0s-Bu.js} +1 -1
- package/platform-ui/dist/assets/{DocsSection-BJc_ws4I.js → DocsSection-BQ9Hi51g.js} +1 -1
- package/platform-ui/dist/assets/{GitSection-DhqBo1xc.js → GitSection-QQeUX6o3.js} +1 -1
- package/platform-ui/dist/assets/{GraphSection-D9fhVnZ0.js → GraphSection-0c9C-w7K.js} +2 -2
- package/platform-ui/dist/assets/{GraphSection-BlgXTl53.css → GraphSection-Bbs2a8sC.css} +1 -1
- package/platform-ui/dist/assets/LoreSection--t56kCj2.js +1 -0
- package/platform-ui/dist/assets/LoreSection-qnmm3o4y.css +1 -0
- package/platform-ui/dist/assets/SentinelSection-C4OoME9U.js +1 -0
- package/platform-ui/dist/assets/{SymphonySection-BRoBaUSS.js → SymphonySection-B-rvsLxq.js} +1 -1
- package/platform-ui/dist/assets/TeamSection-CBFmNEEo.js +1 -0
- package/platform-ui/dist/assets/index-Bxp0TVaf.css +1 -0
- package/platform-ui/dist/assets/index-DPpOdAtC.js +57 -0
- package/platform-ui/dist/index.html +2 -2
- package/dist/accept-orchestration-UQLM7PTQ.js +0 -189
- package/dist/add-FZRKEGH4.js +0 -81
- package/dist/agent-WERIO2XV.js +0 -523
- package/dist/agent-loader-TFIANSF4.js +0 -44
- package/dist/agent-state-S5DAWPTF.js +0 -24
- package/dist/agents-suggest-DNSYJ6IA.js +0 -83
- package/dist/aggregate-H57K7PNV.js +0 -88
- package/dist/assess-4WVXZLZQ.js +0 -68
- package/dist/auto-QFS5NHQU.js +0 -504
- package/dist/beacon-KXZXYQHX.js +0 -251
- package/dist/calibration-V46G7JTY.js +0 -135
- package/dist/check-OWAIWV23.js +0 -175
- package/dist/chunk-2IO7JAG2.js +0 -148
- package/dist/chunk-2T6BTYBN.js +0 -712
- package/dist/chunk-36TKPM5Z.js +0 -400
- package/dist/chunk-45MUDW6E.js +0 -804
- package/dist/chunk-4BLYIB7J.js +0 -5701
- package/dist/chunk-4L3UTYQX.js +0 -677
- package/dist/chunk-4NCFWYGG.js +0 -110
- package/dist/chunk-54LTTQBH.js +0 -138
- package/dist/chunk-5EWAQHFY.js +0 -269
- package/dist/chunk-5JGJACDU.js +0 -37
- package/dist/chunk-5OUOLN6M.js +0 -659
- package/dist/chunk-5VKJBNJL.js +0 -444
- package/dist/chunk-6N3JTACN.js +0 -2260
- package/dist/chunk-6QC3YGB6.js +0 -114
- package/dist/chunk-7N7GSU6K.js +0 -34
- package/dist/chunk-ABVQGRF7.js +0 -268
- package/dist/chunk-CL7JSK52.js +0 -129
- package/dist/chunk-CSD7IHSN.js +0 -152
- package/dist/chunk-EDOAWN7J.js +0 -717
- package/dist/chunk-EKGMAM62.js +0 -525
- package/dist/chunk-EZ3GOCYC.js +0 -132
- package/dist/chunk-F3BCHPYT.js +0 -143
- package/dist/chunk-FKJUBQU3.js +0 -3081
- package/dist/chunk-GT5QGC2H.js +0 -253
- package/dist/chunk-GZDFVP2N.js +0 -540
- package/dist/chunk-IRKUEJVW.js +0 -405
- package/dist/chunk-J2JEQRT3.js +0 -164
- package/dist/chunk-JASGXLK3.js +0 -679
- package/dist/chunk-KVDYJLTC.js +0 -121
- package/dist/chunk-L27I3CPZ.js +0 -357
- package/dist/chunk-LHLIAYQ3.js +0 -185
- package/dist/chunk-MCMOGQMU.js +0 -145
- package/dist/chunk-NQKQG45G.js +0 -688
- package/dist/chunk-PBHIFAL4.js +0 -259
- package/dist/chunk-PDX44BCA.js +0 -11
- package/dist/chunk-PMXRGPRQ.js +0 -305
- package/dist/chunk-RAB5IKPR.js +0 -487
- package/dist/chunk-RJE5G7WO.js +0 -590
- package/dist/chunk-RTHA3XRE.js +0 -880
- package/dist/chunk-S2HO5MLR.js +0 -621
- package/dist/chunk-S3ORKP3V.js +0 -716
- package/dist/chunk-TAIJOFOE.js +0 -124
- package/dist/chunk-TXESEO7Y.js +0 -245
- package/dist/chunk-UPLDI7CN.js +0 -1334
- package/dist/chunk-VL67H5IC.js +0 -506
- package/dist/chunk-VPPK3SY4.js +0 -1136
- package/dist/chunk-YMDLDELF.js +0 -314
- package/dist/chunk-YO6DVTL7.js +0 -99
- package/dist/chunk-YRZ5RPEB.js +0 -1561
- package/dist/chunk-ZDHLG5VP.js +0 -5676
- package/dist/chunk-ZGUAAVMA.js +0 -756
- package/dist/chunk-ZSYVKSY6.js +0 -2602
- package/dist/claude-FRRWJSTJ.js +0 -362
- package/dist/claude-cli-XJLK2X4L.js +0 -276
- package/dist/claude-code-HTBA4XRB.js +0 -126
- package/dist/claude-code-teams-T4SP24MD.js +0 -199
- package/dist/commands-5N4ILTPH.js +0 -5859
- package/dist/conductor-CQVGTEQN.js +0 -161
- package/dist/config-schema-EA4XALGG.js +0 -154
- package/dist/constellation-A26CCGQS.js +0 -225
- package/dist/context-audit-RLO3ETRP.js +0 -682
- package/dist/cost-BGM32XJU.js +0 -93
- package/dist/cost-VI46A4XL.js +0 -174
- package/dist/cursor-cli-JVEZGHWQ.js +0 -269
- package/dist/cursorrules-HLIKJJZT.js +0 -84
- package/dist/decision-loader-WWCLIQPJ.js +0 -20
- package/dist/delete-KBRPQLPC.js +0 -56
- package/dist/diff-D4X53HAC.js +0 -126
- package/dist/discipline-FA4OZXIS.js +0 -24
- package/dist/dist-34NA5RS5.js +0 -74
- package/dist/dist-5QE2BB2B-5S3T6Y3T.js +0 -6919
- package/dist/dist-77JDTVAY.js +0 -62
- package/dist/dist-OGTSAZ55.js +0 -1358
- package/dist/dist-QK4SQAK7.js +0 -64
- package/dist/dist-TA6LSC2Q.js +0 -20
- package/dist/docs-PBZB7LYP.js +0 -89
- package/dist/docs-QIYKO3BR.js +0 -155
- package/dist/doctor-ULBOHEIC.js +0 -11
- package/dist/drift-R5NRKFHI.js +0 -251
- package/dist/echo-O2LY7CC2.js +0 -248
- package/dist/edit-R2HNLMOG.js +0 -63
- package/dist/event-25OJKDCE.js +0 -31
- package/dist/export-IWVL7XLF.js +0 -38
- package/dist/flow-CRRVV3O3.js +0 -185
- package/dist/global-3NG5JXUB.js +0 -136
- package/dist/graduate-USAWGBJM.js +0 -160
- package/dist/graph-VHUMAAS6.js +0 -12
- package/dist/graph-server-YL22VBBN.js +0 -116
- package/dist/habits-OL5NGPXO.js +0 -1405
- package/dist/history-WOWC573W.js +0 -277
- package/dist/hooks-HFWSCGPV.js +0 -12
- package/dist/integrity-IHO4FZTS.js +0 -194
- package/dist/integrity-checker-PSKJA5SB.js +0 -12
- package/dist/journal-loader-5EYSBFFY.js +0 -18
- package/dist/lint-K6CJGGPH.js +0 -456
- package/dist/list-4YK7QKFF.js +0 -57
- package/dist/list-ENR7Q4CR.js +0 -56
- package/dist/lore-loader-7NO6N6FT.js +0 -26
- package/dist/lore-server-UNJY5KC3.js +0 -118
- package/dist/manual-G6FISID5.js +0 -204
- package/dist/migrate-LS45DNEV.js +0 -889
- package/dist/migrate-assessments-RGH4O6IX.js +0 -97
- package/dist/model-discovery-D2H3VBGC.js +0 -8
- package/dist/nomination-engine-RV5CNO5B.js +0 -42
- package/dist/notebook-YWIYGEHV.js +0 -155
- package/dist/orchestrate-JLILBBJE.js +0 -324
- package/dist/peers-DEOUIZM6.js +0 -82
- package/dist/persona-UHAHIVST.js +0 -390
- package/dist/pipeline-L4HCSBGN.js +0 -263
- package/dist/platform-server-H5YO3DQD.js +0 -1475
- package/dist/plugin-update-checker-KRRSGXMV.js +0 -12
- package/dist/portal-check-NPYGII2D.js +0 -42
- package/dist/portal-compliance-J7DGAPFX.js +0 -18
- package/dist/probe-MHL5HQZ2.js +0 -167
- package/dist/promote-F6ZYZZAL.js +0 -182
- package/dist/providers-GK7PB2OL.js +0 -104
- package/dist/quiz-M66SC7F7.js +0 -99
- package/dist/record-RA4WR2BO.js +0 -49
- package/dist/reindex-5LTD53ZC.js +0 -16
- package/dist/remember-HBWJ655S.js +0 -77
- package/dist/retag-3OLCVDEQ.js +0 -62
- package/dist/review-27ATYTD2.js +0 -33
- package/dist/review-57QMURZV.js +0 -334
- package/dist/ripple-JPBXP5I3.js +0 -215
- package/dist/sentinel-4XIG4STA.js +0 -63
- package/dist/sentinel-bridge-MDUXTQRL.js +0 -109
- package/dist/serve-CAH3PHE7.js +0 -33
- package/dist/serve-INL7SNBK.js +0 -36
- package/dist/serve-KBSE36PL.js +0 -49
- package/dist/server-54SKYFFY.js +0 -1647
- package/dist/server-XUOIO7E6.js +0 -338
- package/dist/session-tracker-C4BMD5WG.js +0 -13
- package/dist/session-work-log-MZ47OAPB.js +0 -20
- package/dist/setup-EDS27WUR.js +0 -25
- package/dist/setup-KO5AFC4K.js +0 -296
- package/dist/shift-D2JOHHBF.js +0 -668
- package/dist/show-5PV5KFJE.js +0 -176
- package/dist/show-NQKYX6WQ.js +0 -82
- package/dist/snapshot-BK4RBPCG.js +0 -62
- package/dist/spawn-RCHNXDHE.js +0 -196
- package/dist/status-WGIAQODY.js +0 -71
- package/dist/summary-NIRABMF5.js +0 -140
- package/dist/sweep-QMHNSIY5.js +0 -934
- package/dist/switch-6EJPZDIA.js +0 -232
- package/dist/symphony-4OCY36AI.js +0 -791
- package/dist/symphony-B75X2MME.js +0 -326
- package/dist/symphony-loader-UZGON56V.js +0 -90
- package/dist/symphony-peers-2ZQYLRNI.js +0 -34
- package/dist/symphony-peers-OL7F6M5S.js +0 -121
- package/dist/symphony-relay-UJYUXN65.js +0 -710
- package/dist/sync-VEHUH4OA.js +0 -11
- package/dist/sync-llms-YHCFIE6X.js +0 -166
- package/dist/task-loader-LDYWQSLM.js +0 -20
- package/dist/team-O5MIIFMA.js +0 -34
- package/dist/test-566CP5KC.js +0 -1017
- package/dist/thread-N754I4D5.js +0 -274
- package/dist/timeline-M3CICQFE.js +0 -112
- package/dist/triage-HHYGT3HY.js +0 -671
- package/dist/tutorial-KD22SUNO.js +0 -666
- package/dist/upgrade-H5PF32BW.js +0 -551
- package/dist/validate-CNKEKO6A.js +0 -134
- package/dist/validate-MB5ULIHS.js +0 -39
- package/dist/validate-QH3LADM6.js +0 -64
- package/dist/watch-2TKP5PVL.js +0 -199
- package/dist/watch-ZF4ML6CD.js +0 -111
- package/dist/wisdom-AATMGNFA.js +0 -319
- package/dist/work-log-loader-5L45XNYZ.js +0 -14
- package/dist/workspace-6E6OSRNU.js +0 -21
- package/platform-ui/dist/assets/AmbientSection-WtHfNedO.js +0 -1
- package/platform-ui/dist/assets/LoreSection-C3EixkjW.css +0 -1
- package/platform-ui/dist/assets/LoreSection-CwDDHrz9.js +0 -1
- package/platform-ui/dist/assets/SentinelSection-Cl7e5oZ6.js +0 -1
- package/platform-ui/dist/assets/TeamSection-CqSIMrKz.js +0 -1
- package/platform-ui/dist/assets/index-CfpZFjea.css +0 -1
- package/platform-ui/dist/assets/index-F0KL9xrN.js +0 -57
package/dist/chunk-5VKJBNJL.js
DELETED
|
@@ -1,444 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
__esm
|
|
4
|
-
} from "./chunk-7N7GSU6K.js";
|
|
5
|
-
|
|
6
|
-
// ../paradigm-mcp/src/utils/lore-loader.ts
|
|
7
|
-
import * as fs from "fs";
|
|
8
|
-
import * as path from "path";
|
|
9
|
-
import * as yaml from "js-yaml";
|
|
10
|
-
import { execSync } from "child_process";
|
|
11
|
-
function inferProvider(model) {
|
|
12
|
-
const lower = model.toLowerCase();
|
|
13
|
-
if (lower.includes("claude") || lower.includes("anthropic")) return "anthropic";
|
|
14
|
-
if (lower.includes("gpt") || lower.includes("openai") || lower.includes("o1") || lower.includes("o3")) return "openai";
|
|
15
|
-
if (lower.includes("gemini") || lower.includes("google") || lower.includes("palm")) return "google";
|
|
16
|
-
if (lower.includes("llama") || lower.includes("meta")) return "meta";
|
|
17
|
-
if (lower.includes("mistral") || lower.includes("mixtral")) return "mistral";
|
|
18
|
-
if (lower.includes("deepseek")) return "deepseek";
|
|
19
|
-
if (lower.includes("cohere") || lower.includes("command")) return "cohere";
|
|
20
|
-
return "unknown";
|
|
21
|
-
}
|
|
22
|
-
function normalizeLoreEntry(raw) {
|
|
23
|
-
const entry = raw;
|
|
24
|
-
const author = entry.author;
|
|
25
|
-
if (!entry.type) {
|
|
26
|
-
entry.type = "agent-session";
|
|
27
|
-
}
|
|
28
|
-
if (typeof author === "string") {
|
|
29
|
-
return raw;
|
|
30
|
-
}
|
|
31
|
-
if (author && typeof author === "object" && !Array.isArray(author)) {
|
|
32
|
-
const old = author;
|
|
33
|
-
if (old.type === "agent") {
|
|
34
|
-
entry.author = "unknown";
|
|
35
|
-
entry.agent = {
|
|
36
|
-
provider: old.model ? inferProvider(old.model) : inferProvider(old.id),
|
|
37
|
-
model: old.model || old.id
|
|
38
|
-
};
|
|
39
|
-
} else {
|
|
40
|
-
entry.author = old.id || "unknown";
|
|
41
|
-
}
|
|
42
|
-
delete entry.assistedBy;
|
|
43
|
-
}
|
|
44
|
-
return entry;
|
|
45
|
-
}
|
|
46
|
-
function sanitizeAuthor(name) {
|
|
47
|
-
return name.toLowerCase().replace(/[^a-z0-9-]/g, "-").replace(/-+/g, "-").replace(/^-|-$/g, "").slice(0, 20) || "unknown";
|
|
48
|
-
}
|
|
49
|
-
function resolveAuthor() {
|
|
50
|
-
const envAuthor = process.env.PARADIGM_AUTHOR;
|
|
51
|
-
if (envAuthor) return sanitizeAuthor(envAuthor);
|
|
52
|
-
try {
|
|
53
|
-
const gitName = execSync("git config user.name", { encoding: "utf-8", timeout: 3e3 }).trim();
|
|
54
|
-
if (gitName) return sanitizeAuthor(gitName);
|
|
55
|
-
} catch {
|
|
56
|
-
}
|
|
57
|
-
try {
|
|
58
|
-
const username = os.userInfo().username;
|
|
59
|
-
if (username) return sanitizeAuthor(username);
|
|
60
|
-
} catch {
|
|
61
|
-
}
|
|
62
|
-
return "unknown";
|
|
63
|
-
}
|
|
64
|
-
function isLoreFile(filename) {
|
|
65
|
-
return filename.endsWith(".yaml") || filename.endsWith(".lore");
|
|
66
|
-
}
|
|
67
|
-
function resolveEntryPath(rootDir, dateStr, entryId) {
|
|
68
|
-
const dirPath = path.join(rootDir, LORE_DIR, ENTRIES_DIR, dateStr);
|
|
69
|
-
const lorePath = path.join(dirPath, `${entryId}.lore`);
|
|
70
|
-
if (fs.existsSync(lorePath)) return lorePath;
|
|
71
|
-
const yamlPath = path.join(dirPath, `${entryId}.yaml`);
|
|
72
|
-
if (fs.existsSync(yamlPath)) return yamlPath;
|
|
73
|
-
return null;
|
|
74
|
-
}
|
|
75
|
-
async function loadLoreEntries(rootDir, filter) {
|
|
76
|
-
const entriesPath = path.join(rootDir, LORE_DIR, ENTRIES_DIR);
|
|
77
|
-
if (!fs.existsSync(entriesPath)) {
|
|
78
|
-
return [];
|
|
79
|
-
}
|
|
80
|
-
migrateLegacyEntries(rootDir);
|
|
81
|
-
const entries = [];
|
|
82
|
-
const dateDirs = fs.readdirSync(entriesPath).filter((d) => /^\d{4}-\d{2}-\d{2}$/.test(d)).sort().reverse();
|
|
83
|
-
for (const dateDir of dateDirs) {
|
|
84
|
-
if (filter?.dateFrom && dateDir < filter.dateFrom.slice(0, 10)) continue;
|
|
85
|
-
if (filter?.dateTo && dateDir > filter.dateTo.slice(0, 10)) continue;
|
|
86
|
-
const dirPath = path.join(entriesPath, dateDir);
|
|
87
|
-
const files = fs.readdirSync(dirPath).filter(isLoreFile).sort();
|
|
88
|
-
for (const file of files) {
|
|
89
|
-
try {
|
|
90
|
-
const content = fs.readFileSync(path.join(dirPath, file), "utf8");
|
|
91
|
-
const raw = yaml.load(content);
|
|
92
|
-
entries.push(normalizeLoreEntry(raw));
|
|
93
|
-
} catch {
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
return filter ? applyFilter(entries, filter) : entries;
|
|
98
|
-
}
|
|
99
|
-
async function loadLoreEntry(rootDir, entryId) {
|
|
100
|
-
const dateMatch = entryId.match(/^L-(\d{4}-\d{2}-\d{2})-/);
|
|
101
|
-
if (dateMatch) {
|
|
102
|
-
const dateStr = dateMatch[1];
|
|
103
|
-
const entryPath = resolveEntryPath(rootDir, dateStr, entryId);
|
|
104
|
-
if (entryPath) {
|
|
105
|
-
try {
|
|
106
|
-
const content = fs.readFileSync(entryPath, "utf8");
|
|
107
|
-
const raw = yaml.load(content);
|
|
108
|
-
return normalizeLoreEntry(raw);
|
|
109
|
-
} catch {
|
|
110
|
-
return null;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
const entries = await loadLoreEntries(rootDir);
|
|
115
|
-
return entries.find((e) => e.id === entryId) || null;
|
|
116
|
-
}
|
|
117
|
-
async function loadLoreTimeline(rootDir) {
|
|
118
|
-
const timelinePath = path.join(rootDir, LORE_DIR, TIMELINE_FILE);
|
|
119
|
-
if (!fs.existsSync(timelinePath)) {
|
|
120
|
-
return null;
|
|
121
|
-
}
|
|
122
|
-
try {
|
|
123
|
-
const content = fs.readFileSync(timelinePath, "utf8");
|
|
124
|
-
return yaml.load(content);
|
|
125
|
-
} catch {
|
|
126
|
-
return null;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
function captureGitContext(cwd) {
|
|
130
|
-
try {
|
|
131
|
-
const ref = execSync("git rev-parse HEAD", { cwd, encoding: "utf8", stdio: ["pipe", "pipe", "pipe"] }).trim();
|
|
132
|
-
const branch = execSync("git rev-parse --abbrev-ref HEAD", { cwd, encoding: "utf8", stdio: ["pipe", "pipe", "pipe"] }).trim();
|
|
133
|
-
const status = execSync("git status --porcelain", { cwd, encoding: "utf8", stdio: ["pipe", "pipe", "pipe"] }).trim();
|
|
134
|
-
return { ref, branch, dirty: status.length > 0 };
|
|
135
|
-
} catch {
|
|
136
|
-
return void 0;
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
async function recordLoreEntry(rootDir, entry) {
|
|
140
|
-
const lorePath = path.join(rootDir, LORE_DIR);
|
|
141
|
-
const dateStr = entry.timestamp.slice(0, 10);
|
|
142
|
-
const datePath = path.join(lorePath, ENTRIES_DIR, dateStr);
|
|
143
|
-
if (!fs.existsSync(datePath)) {
|
|
144
|
-
fs.mkdirSync(datePath, { recursive: true });
|
|
145
|
-
}
|
|
146
|
-
if (!entry.author) {
|
|
147
|
-
entry.author = resolveAuthor();
|
|
148
|
-
}
|
|
149
|
-
if (!entry.git_context) {
|
|
150
|
-
entry.git_context = captureGitContext(rootDir);
|
|
151
|
-
}
|
|
152
|
-
if (!entry.id) {
|
|
153
|
-
entry.id = generateLoreId(rootDir, dateStr, entry.author, entry.timestamp);
|
|
154
|
-
}
|
|
155
|
-
const entryPath = path.join(datePath, `${entry.id}.lore`);
|
|
156
|
-
fs.writeFileSync(entryPath, yaml.dump(entry, { lineWidth: -1, noRefs: true }));
|
|
157
|
-
await rebuildTimeline(rootDir);
|
|
158
|
-
return entry.id;
|
|
159
|
-
}
|
|
160
|
-
async function addLoreReview(rootDir, entryId, review) {
|
|
161
|
-
const entry = await loadLoreEntry(rootDir, entryId);
|
|
162
|
-
if (!entry) return false;
|
|
163
|
-
const dateStr = entry.timestamp.slice(0, 10);
|
|
164
|
-
const entryPath = resolveEntryPath(rootDir, dateStr, entryId);
|
|
165
|
-
if (!entryPath) return false;
|
|
166
|
-
entry.review = review;
|
|
167
|
-
fs.writeFileSync(entryPath, yaml.dump(entry, { lineWidth: -1, noRefs: true }));
|
|
168
|
-
return true;
|
|
169
|
-
}
|
|
170
|
-
async function rebuildTimeline(rootDir) {
|
|
171
|
-
const lorePath = path.join(rootDir, LORE_DIR);
|
|
172
|
-
const entriesPath = path.join(lorePath, ENTRIES_DIR);
|
|
173
|
-
if (!fs.existsSync(entriesPath)) return;
|
|
174
|
-
migrateLegacyEntries(rootDir);
|
|
175
|
-
const authors = /* @__PURE__ */ new Set();
|
|
176
|
-
let entryCount = 0;
|
|
177
|
-
let lastUpdated = "";
|
|
178
|
-
const dateDirs = fs.readdirSync(entriesPath).filter((d) => /^\d{4}-\d{2}-\d{2}$/.test(d));
|
|
179
|
-
for (const dateDir of dateDirs) {
|
|
180
|
-
const dirPath = path.join(entriesPath, dateDir);
|
|
181
|
-
const files = fs.readdirSync(dirPath).filter(isLoreFile);
|
|
182
|
-
for (const file of files) {
|
|
183
|
-
try {
|
|
184
|
-
const content = fs.readFileSync(path.join(dirPath, file), "utf8");
|
|
185
|
-
const raw = yaml.load(content);
|
|
186
|
-
const entry = normalizeLoreEntry(raw);
|
|
187
|
-
authors.add(entry.author);
|
|
188
|
-
entryCount++;
|
|
189
|
-
if (!lastUpdated || entry.timestamp > lastUpdated) {
|
|
190
|
-
lastUpdated = entry.timestamp;
|
|
191
|
-
}
|
|
192
|
-
} catch {
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
let project = "unknown";
|
|
197
|
-
const configPath = path.join(rootDir, ".paradigm", "config.yaml");
|
|
198
|
-
if (fs.existsSync(configPath)) {
|
|
199
|
-
try {
|
|
200
|
-
const config = yaml.load(fs.readFileSync(configPath, "utf8"));
|
|
201
|
-
project = config.project || config.name || "unknown";
|
|
202
|
-
} catch {
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
const timeline = {
|
|
206
|
-
version: "1.0",
|
|
207
|
-
project,
|
|
208
|
-
entries: entryCount,
|
|
209
|
-
last_updated: lastUpdated || (/* @__PURE__ */ new Date()).toISOString(),
|
|
210
|
-
authors: Array.from(authors)
|
|
211
|
-
};
|
|
212
|
-
if (!fs.existsSync(lorePath)) {
|
|
213
|
-
fs.mkdirSync(lorePath, { recursive: true });
|
|
214
|
-
}
|
|
215
|
-
fs.writeFileSync(
|
|
216
|
-
path.join(lorePath, TIMELINE_FILE),
|
|
217
|
-
yaml.dump(timeline, { lineWidth: -1, noRefs: true })
|
|
218
|
-
);
|
|
219
|
-
}
|
|
220
|
-
function migrateLegacyEntries(rootDir) {
|
|
221
|
-
const entriesPath = path.join(rootDir, LORE_DIR, ENTRIES_DIR);
|
|
222
|
-
if (!fs.existsSync(entriesPath)) return 0;
|
|
223
|
-
const rootFiles = fs.readdirSync(entriesPath).filter((f) => isLoreFile(f) && !f.startsWith("."));
|
|
224
|
-
let migrated = 0;
|
|
225
|
-
for (const file of rootFiles) {
|
|
226
|
-
const filePath = path.join(entriesPath, file);
|
|
227
|
-
const stat = fs.statSync(filePath);
|
|
228
|
-
if (!stat.isFile()) continue;
|
|
229
|
-
try {
|
|
230
|
-
const content = fs.readFileSync(filePath, "utf8");
|
|
231
|
-
const raw = yaml.load(content);
|
|
232
|
-
if (raw.author && typeof raw.author === "object") continue;
|
|
233
|
-
if (typeof raw.author === "string" && raw.timestamp) continue;
|
|
234
|
-
const dateStr = typeof raw.date === "string" ? raw.date.slice(0, 10) : (/* @__PURE__ */ new Date()).toISOString().slice(0, 10);
|
|
235
|
-
const datePath = path.join(entriesPath, dateStr);
|
|
236
|
-
if (!fs.existsSync(datePath)) {
|
|
237
|
-
fs.mkdirSync(datePath, { recursive: true });
|
|
238
|
-
}
|
|
239
|
-
const author = resolveAuthor();
|
|
240
|
-
const timestamp = `${dateStr}T00:00:00.000Z`;
|
|
241
|
-
const id = generateLoreId(rootDir, dateStr, author, timestamp);
|
|
242
|
-
const oldType = String(raw.type || "agent-session");
|
|
243
|
-
const v2Type = ["agent-session", "human-note", "decision", "review", "incident", "milestone"].includes(oldType) ? oldType : "agent-session";
|
|
244
|
-
let verification;
|
|
245
|
-
if (raw.test_results && typeof raw.test_results === "object") {
|
|
246
|
-
const tr = raw.test_results;
|
|
247
|
-
verification = {
|
|
248
|
-
status: tr.total === tr.passed ? "pass" : "partial",
|
|
249
|
-
details: { tests: tr.total === tr.passed ? "pass" : "fail" }
|
|
250
|
-
};
|
|
251
|
-
}
|
|
252
|
-
const v2Entry = {
|
|
253
|
-
id,
|
|
254
|
-
type: v2Type,
|
|
255
|
-
timestamp,
|
|
256
|
-
author: "unknown",
|
|
257
|
-
agent: { provider: "unknown", model: "unknown" },
|
|
258
|
-
title: String(raw.title || file.replace(/\.(yaml|lore)$/, "")),
|
|
259
|
-
summary: String(raw.summary || ""),
|
|
260
|
-
symbols_touched: Array.isArray(raw.symbols_touched) ? raw.symbols_touched : [],
|
|
261
|
-
files_modified: Array.isArray(raw.files_modified) ? raw.files_modified : void 0,
|
|
262
|
-
...verification ? { verification } : {},
|
|
263
|
-
tags: ["migrated", oldType]
|
|
264
|
-
};
|
|
265
|
-
fs.writeFileSync(
|
|
266
|
-
path.join(datePath, `${id}.lore`),
|
|
267
|
-
yaml.dump(v2Entry, { lineWidth: -1, noRefs: true })
|
|
268
|
-
);
|
|
269
|
-
fs.unlinkSync(filePath);
|
|
270
|
-
migrated++;
|
|
271
|
-
} catch {
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
return migrated;
|
|
275
|
-
}
|
|
276
|
-
async function updateLoreEntry(rootDir, entryId, partial) {
|
|
277
|
-
const entry = await loadLoreEntry(rootDir, entryId);
|
|
278
|
-
if (!entry) return false;
|
|
279
|
-
const dateStr = entry.timestamp.slice(0, 10);
|
|
280
|
-
const entryPath = resolveEntryPath(rootDir, dateStr, entryId);
|
|
281
|
-
if (!entryPath) return false;
|
|
282
|
-
if (partial.title !== void 0) entry.title = partial.title;
|
|
283
|
-
if (partial.summary !== void 0) entry.summary = partial.summary;
|
|
284
|
-
if (partial.type !== void 0) entry.type = partial.type;
|
|
285
|
-
if (partial.duration_minutes !== void 0) entry.duration_minutes = partial.duration_minutes;
|
|
286
|
-
if (partial.symbols_touched !== void 0) entry.symbols_touched = partial.symbols_touched;
|
|
287
|
-
if (partial.symbols_created !== void 0) entry.symbols_created = partial.symbols_created;
|
|
288
|
-
if (partial.files_created !== void 0) entry.files_created = partial.files_created;
|
|
289
|
-
if (partial.files_modified !== void 0) entry.files_modified = partial.files_modified;
|
|
290
|
-
if (partial.lines_added !== void 0) entry.lines_added = partial.lines_added;
|
|
291
|
-
if (partial.lines_removed !== void 0) entry.lines_removed = partial.lines_removed;
|
|
292
|
-
if (partial.commit !== void 0) entry.commit = partial.commit;
|
|
293
|
-
if (partial.decisions !== void 0) entry.decisions = partial.decisions;
|
|
294
|
-
if (partial.errors_encountered !== void 0) entry.errors_encountered = partial.errors_encountered;
|
|
295
|
-
if (partial.learnings !== void 0) entry.learnings = partial.learnings;
|
|
296
|
-
if (partial.verification !== void 0) entry.verification = partial.verification;
|
|
297
|
-
if (partial.tags !== void 0) entry.tags = partial.tags;
|
|
298
|
-
if (partial.body !== void 0) entry.body = partial.body;
|
|
299
|
-
if (partial.linked_lore !== void 0) entry.linked_lore = partial.linked_lore;
|
|
300
|
-
if (partial.linked_tasks !== void 0) entry.linked_tasks = partial.linked_tasks;
|
|
301
|
-
if (partial.linked_commits !== void 0) entry.linked_commits = partial.linked_commits;
|
|
302
|
-
if (partial.confidence !== void 0) entry.confidence = partial.confidence;
|
|
303
|
-
if (partial.assessment !== void 0) entry.assessment = partial.assessment;
|
|
304
|
-
if (partial.assessment_delta !== void 0) entry.assessment_delta = partial.assessment_delta;
|
|
305
|
-
fs.writeFileSync(entryPath, yaml.dump(entry, { lineWidth: -1, noRefs: true }));
|
|
306
|
-
await rebuildTimeline(rootDir);
|
|
307
|
-
return true;
|
|
308
|
-
}
|
|
309
|
-
function verdictToScore(verdict) {
|
|
310
|
-
switch (verdict) {
|
|
311
|
-
case "correct":
|
|
312
|
-
return 1;
|
|
313
|
-
case "partial":
|
|
314
|
-
return 0.5;
|
|
315
|
-
case "incorrect":
|
|
316
|
-
return 0;
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
async function addLoreAssessment(rootDir, entryId, assessment) {
|
|
320
|
-
const entry = await loadLoreEntry(rootDir, entryId);
|
|
321
|
-
if (!entry) return false;
|
|
322
|
-
const dateStr = entry.timestamp.slice(0, 10);
|
|
323
|
-
const entryPath = resolveEntryPath(rootDir, dateStr, entryId);
|
|
324
|
-
if (!entryPath) return false;
|
|
325
|
-
entry.assessment = assessment;
|
|
326
|
-
if (entry.confidence != null) {
|
|
327
|
-
entry.assessment_delta = verdictToScore(assessment.verdict) - entry.confidence;
|
|
328
|
-
}
|
|
329
|
-
fs.writeFileSync(entryPath, yaml.dump(entry, { lineWidth: -1, noRefs: true }));
|
|
330
|
-
return true;
|
|
331
|
-
}
|
|
332
|
-
async function deleteLoreEntry(rootDir, entryId) {
|
|
333
|
-
const entry = await loadLoreEntry(rootDir, entryId);
|
|
334
|
-
if (!entry) return false;
|
|
335
|
-
const dateStr = entry.timestamp.slice(0, 10);
|
|
336
|
-
const entryPath = resolveEntryPath(rootDir, dateStr, entryId);
|
|
337
|
-
if (!entryPath) return false;
|
|
338
|
-
fs.unlinkSync(entryPath);
|
|
339
|
-
const dateDir = path.dirname(entryPath);
|
|
340
|
-
const remaining = fs.readdirSync(dateDir).filter(isLoreFile);
|
|
341
|
-
if (remaining.length === 0) {
|
|
342
|
-
fs.rmdirSync(dateDir);
|
|
343
|
-
}
|
|
344
|
-
await rebuildTimeline(rootDir);
|
|
345
|
-
return true;
|
|
346
|
-
}
|
|
347
|
-
function applyFilter(entries, filter) {
|
|
348
|
-
let result = entries;
|
|
349
|
-
if (filter.author) {
|
|
350
|
-
result = result.filter((e) => e.author === filter.author);
|
|
351
|
-
}
|
|
352
|
-
if (filter.hasAgent !== void 0) {
|
|
353
|
-
result = result.filter(
|
|
354
|
-
(e) => filter.hasAgent ? e.agent != null : e.agent == null
|
|
355
|
-
);
|
|
356
|
-
} else if (filter.authorType) {
|
|
357
|
-
result = result.filter(
|
|
358
|
-
(e) => filter.authorType === "agent" ? e.agent != null : e.agent == null
|
|
359
|
-
);
|
|
360
|
-
}
|
|
361
|
-
if (filter.symbol) {
|
|
362
|
-
result = result.filter(
|
|
363
|
-
(e) => e.symbols_touched.includes(filter.symbol) || e.symbols_created?.includes(filter.symbol)
|
|
364
|
-
);
|
|
365
|
-
}
|
|
366
|
-
if (filter.dateFrom) {
|
|
367
|
-
const from = new Date(filter.dateFrom).getTime();
|
|
368
|
-
result = result.filter((e) => new Date(e.timestamp).getTime() >= from);
|
|
369
|
-
}
|
|
370
|
-
if (filter.dateTo) {
|
|
371
|
-
const to = new Date(filter.dateTo).getTime();
|
|
372
|
-
result = result.filter((e) => new Date(e.timestamp).getTime() <= to);
|
|
373
|
-
}
|
|
374
|
-
if (filter.type) {
|
|
375
|
-
result = result.filter((e) => e.type === filter.type);
|
|
376
|
-
}
|
|
377
|
-
if (filter.tag) {
|
|
378
|
-
const prefix = filter.tag;
|
|
379
|
-
result = result.filter(
|
|
380
|
-
(e) => e.tags?.some((t) => t === prefix || t.startsWith(prefix + ":") || prefix.includes(":") && t === prefix)
|
|
381
|
-
);
|
|
382
|
-
}
|
|
383
|
-
if (filter.tags && filter.tags.length > 0) {
|
|
384
|
-
result = result.filter((e) => filter.tags.some((tag) => e.tags?.includes(tag)));
|
|
385
|
-
}
|
|
386
|
-
if (filter.hasBody !== void 0) {
|
|
387
|
-
result = result.filter(
|
|
388
|
-
(e) => filter.hasBody ? e.body != null && e.body.length > 0 : !e.body || e.body.length === 0
|
|
389
|
-
);
|
|
390
|
-
}
|
|
391
|
-
if (filter.hasReview !== void 0) {
|
|
392
|
-
result = result.filter((e) => filter.hasReview ? e.review != null : e.review == null);
|
|
393
|
-
}
|
|
394
|
-
if (filter.hasConfidence !== void 0) {
|
|
395
|
-
result = result.filter((e) => filter.hasConfidence ? e.confidence != null : e.confidence == null);
|
|
396
|
-
}
|
|
397
|
-
if (filter.hasAssessment !== void 0) {
|
|
398
|
-
result = result.filter((e) => filter.hasAssessment ? e.assessment != null : e.assessment == null);
|
|
399
|
-
}
|
|
400
|
-
result.sort((a, b) => new Date(b.timestamp).getTime() - new Date(a.timestamp).getTime());
|
|
401
|
-
if (filter.offset) result = result.slice(filter.offset);
|
|
402
|
-
if (filter.limit) result = result.slice(0, filter.limit);
|
|
403
|
-
return result;
|
|
404
|
-
}
|
|
405
|
-
function generateLoreId(rootDir, dateStr, author, timestamp) {
|
|
406
|
-
const sanitized = sanitizeAuthor(author);
|
|
407
|
-
const ts = new Date(timestamp);
|
|
408
|
-
const hh = String(ts.getUTCHours()).padStart(2, "0");
|
|
409
|
-
const mm = String(ts.getUTCMinutes()).padStart(2, "0");
|
|
410
|
-
const ss = String(ts.getUTCSeconds()).padStart(2, "0");
|
|
411
|
-
const timeStr = `${hh}${mm}${ss}`;
|
|
412
|
-
const prefix = `L-${dateStr}-${sanitized}-${timeStr}`;
|
|
413
|
-
const datePath = path.join(rootDir, LORE_DIR, ENTRIES_DIR, dateStr);
|
|
414
|
-
if (!fs.existsSync(datePath)) {
|
|
415
|
-
return `${prefix}-001`;
|
|
416
|
-
}
|
|
417
|
-
const existing = fs.readdirSync(datePath).filter((f) => f.startsWith(prefix) && isLoreFile(f)).map((f) => {
|
|
418
|
-
const match = f.match(/-(\d{3})\.(yaml|lore)$/);
|
|
419
|
-
return match ? parseInt(match[1], 10) : 0;
|
|
420
|
-
});
|
|
421
|
-
const next = existing.length > 0 ? Math.max(...existing) + 1 : 1;
|
|
422
|
-
return `${prefix}-${String(next).padStart(3, "0")}`;
|
|
423
|
-
}
|
|
424
|
-
var LORE_DIR, ENTRIES_DIR, TIMELINE_FILE;
|
|
425
|
-
var init_lore_loader = __esm({
|
|
426
|
-
"../paradigm-mcp/src/utils/lore-loader.ts"() {
|
|
427
|
-
LORE_DIR = ".paradigm/lore";
|
|
428
|
-
ENTRIES_DIR = "entries";
|
|
429
|
-
TIMELINE_FILE = "timeline.yaml";
|
|
430
|
-
}
|
|
431
|
-
});
|
|
432
|
-
|
|
433
|
-
export {
|
|
434
|
-
loadLoreEntries,
|
|
435
|
-
loadLoreEntry,
|
|
436
|
-
loadLoreTimeline,
|
|
437
|
-
recordLoreEntry,
|
|
438
|
-
addLoreReview,
|
|
439
|
-
rebuildTimeline,
|
|
440
|
-
updateLoreEntry,
|
|
441
|
-
addLoreAssessment,
|
|
442
|
-
deleteLoreEntry,
|
|
443
|
-
init_lore_loader
|
|
444
|
-
};
|