@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-PBHIFAL4.js
DELETED
|
@@ -1,259 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
// src/core/audit-logger.ts
|
|
4
|
-
import * as fs from "fs";
|
|
5
|
-
import * as path from "path";
|
|
6
|
-
import * as yaml from "js-yaml";
|
|
7
|
-
var AuditLogger = class {
|
|
8
|
-
logsDir;
|
|
9
|
-
currentLog = null;
|
|
10
|
-
constructor(_rootDir) {
|
|
11
|
-
this.logsDir = path.join(_rootDir, ".paradigm", "orchestrations");
|
|
12
|
-
}
|
|
13
|
-
// ==========================================================================
|
|
14
|
-
// Orchestration Lifecycle
|
|
15
|
-
// ==========================================================================
|
|
16
|
-
/**
|
|
17
|
-
* Start logging a new orchestration
|
|
18
|
-
*/
|
|
19
|
-
startOrchestration(id, task, mode) {
|
|
20
|
-
this.ensureLogsDir();
|
|
21
|
-
this.currentLog = {
|
|
22
|
-
id,
|
|
23
|
-
task,
|
|
24
|
-
mode,
|
|
25
|
-
started: (/* @__PURE__ */ new Date()).toISOString(),
|
|
26
|
-
status: "running",
|
|
27
|
-
agents: [],
|
|
28
|
-
totals: {
|
|
29
|
-
duration_ms: 0,
|
|
30
|
-
tokens: 0,
|
|
31
|
-
cost_usd: 0,
|
|
32
|
-
agents_spawned: 0,
|
|
33
|
-
files_created: 0,
|
|
34
|
-
files_modified: 0
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
return this.currentLog;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Log an agent completion
|
|
41
|
-
*/
|
|
42
|
-
logAgentCompletion(orchestrationId, agent) {
|
|
43
|
-
if (this.currentLog && this.currentLog.id === orchestrationId) {
|
|
44
|
-
this.currentLog.agents.push(agent);
|
|
45
|
-
this.currentLog.totals.agents_spawned++;
|
|
46
|
-
this.currentLog.totals.tokens += agent.tokens.total;
|
|
47
|
-
this.currentLog.totals.cost_usd += agent.cost_usd;
|
|
48
|
-
for (const artifact of agent.artifacts) {
|
|
49
|
-
if (artifact.action === "created") {
|
|
50
|
-
this.currentLog.totals.files_created++;
|
|
51
|
-
} else if (artifact.action === "modified") {
|
|
52
|
-
this.currentLog.totals.files_modified++;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Complete and save the orchestration log
|
|
59
|
-
*/
|
|
60
|
-
completeOrchestration(status, duration_ms) {
|
|
61
|
-
if (!this.currentLog) return null;
|
|
62
|
-
this.currentLog.completed = (/* @__PURE__ */ new Date()).toISOString();
|
|
63
|
-
this.currentLog.status = status;
|
|
64
|
-
this.currentLog.totals.duration_ms = duration_ms;
|
|
65
|
-
this.saveOrchestration(this.currentLog);
|
|
66
|
-
const log = this.currentLog;
|
|
67
|
-
this.currentLog = null;
|
|
68
|
-
return log;
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* Save an orchestration log
|
|
72
|
-
*/
|
|
73
|
-
saveOrchestration(log) {
|
|
74
|
-
this.ensureLogsDir();
|
|
75
|
-
const filename = `${log.started.slice(0, 10)}-${this.sanitizeFilename(log.task)}.yaml`;
|
|
76
|
-
const filepath = path.join(this.logsDir, filename);
|
|
77
|
-
const content = yaml.dump(log, {
|
|
78
|
-
lineWidth: -1,
|
|
79
|
-
noRefs: true,
|
|
80
|
-
quotingType: '"'
|
|
81
|
-
});
|
|
82
|
-
fs.writeFileSync(filepath, content);
|
|
83
|
-
}
|
|
84
|
-
// ==========================================================================
|
|
85
|
-
// Reading Logs
|
|
86
|
-
// ==========================================================================
|
|
87
|
-
/**
|
|
88
|
-
* Load an orchestration log by ID
|
|
89
|
-
*/
|
|
90
|
-
loadOrchestration(id) {
|
|
91
|
-
const files = this.listLogFiles();
|
|
92
|
-
for (const file of files) {
|
|
93
|
-
try {
|
|
94
|
-
const content = fs.readFileSync(file, "utf-8");
|
|
95
|
-
const log = yaml.load(content);
|
|
96
|
-
if (log.id === id) {
|
|
97
|
-
return log;
|
|
98
|
-
}
|
|
99
|
-
} catch {
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
return null;
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
* List all orchestrations
|
|
106
|
-
*/
|
|
107
|
-
listOrchestrations(options) {
|
|
108
|
-
const files = this.listLogFiles();
|
|
109
|
-
const summaries = [];
|
|
110
|
-
for (const file of files) {
|
|
111
|
-
try {
|
|
112
|
-
const content = fs.readFileSync(file, "utf-8");
|
|
113
|
-
const log = yaml.load(content);
|
|
114
|
-
if (options?.from && new Date(log.started) < options.from) continue;
|
|
115
|
-
if (options?.to && new Date(log.started) > options.to) continue;
|
|
116
|
-
if (options?.status && log.status !== options.status) continue;
|
|
117
|
-
summaries.push({
|
|
118
|
-
id: log.id,
|
|
119
|
-
task: log.task,
|
|
120
|
-
mode: log.mode,
|
|
121
|
-
started: log.started,
|
|
122
|
-
status: log.status,
|
|
123
|
-
agents_spawned: log.totals.agents_spawned,
|
|
124
|
-
tokens: log.totals.tokens,
|
|
125
|
-
cost_usd: log.totals.cost_usd,
|
|
126
|
-
duration_ms: log.totals.duration_ms
|
|
127
|
-
});
|
|
128
|
-
} catch {
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
summaries.sort((a, b) => new Date(b.started).getTime() - new Date(a.started).getTime());
|
|
132
|
-
if (options?.limit) {
|
|
133
|
-
return summaries.slice(0, options.limit);
|
|
134
|
-
}
|
|
135
|
-
return summaries;
|
|
136
|
-
}
|
|
137
|
-
/**
|
|
138
|
-
* Get cost summary for a date range
|
|
139
|
-
*/
|
|
140
|
-
getCostSummary(from, to) {
|
|
141
|
-
const summaries = this.listOrchestrations({ from, to });
|
|
142
|
-
const files = this.listLogFiles();
|
|
143
|
-
let totalCost = 0;
|
|
144
|
-
let totalTokens = 0;
|
|
145
|
-
const byAgent = {};
|
|
146
|
-
const byModel = {};
|
|
147
|
-
const byDayMap = {};
|
|
148
|
-
for (const file of files) {
|
|
149
|
-
try {
|
|
150
|
-
const content = fs.readFileSync(file, "utf-8");
|
|
151
|
-
const log = yaml.load(content);
|
|
152
|
-
const logDate = new Date(log.started);
|
|
153
|
-
if (from && logDate < from) continue;
|
|
154
|
-
if (to && logDate > to) continue;
|
|
155
|
-
totalCost += log.totals.cost_usd;
|
|
156
|
-
totalTokens += log.totals.tokens;
|
|
157
|
-
const day = log.started.slice(0, 10);
|
|
158
|
-
if (!byDayMap[day]) {
|
|
159
|
-
byDayMap[day] = { cost: 0, tokens: 0 };
|
|
160
|
-
}
|
|
161
|
-
byDayMap[day].cost += log.totals.cost_usd;
|
|
162
|
-
byDayMap[day].tokens += log.totals.tokens;
|
|
163
|
-
for (const agent of log.agents) {
|
|
164
|
-
if (!byAgent[agent.name]) {
|
|
165
|
-
byAgent[agent.name] = { tokens: 0, cost: 0, count: 0 };
|
|
166
|
-
}
|
|
167
|
-
byAgent[agent.name].tokens += agent.tokens.total;
|
|
168
|
-
byAgent[agent.name].cost += agent.cost_usd;
|
|
169
|
-
byAgent[agent.name].count++;
|
|
170
|
-
if (!byModel[agent.model]) {
|
|
171
|
-
byModel[agent.model] = { tokens: 0, cost: 0, count: 0 };
|
|
172
|
-
}
|
|
173
|
-
byModel[agent.model].tokens += agent.tokens.total;
|
|
174
|
-
byModel[agent.model].cost += agent.cost_usd;
|
|
175
|
-
byModel[agent.model].count++;
|
|
176
|
-
}
|
|
177
|
-
} catch {
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
const byDay = Object.entries(byDayMap).map(([date, data]) => ({ date, ...data })).sort((a, b) => a.date.localeCompare(b.date));
|
|
181
|
-
return {
|
|
182
|
-
totalCost,
|
|
183
|
-
totalTokens,
|
|
184
|
-
orchestrationCount: summaries.length,
|
|
185
|
-
byAgent,
|
|
186
|
-
byModel,
|
|
187
|
-
byDay
|
|
188
|
-
};
|
|
189
|
-
}
|
|
190
|
-
/**
|
|
191
|
-
* Export orchestrations to JSON
|
|
192
|
-
*/
|
|
193
|
-
exportToJson(options) {
|
|
194
|
-
const files = this.listLogFiles();
|
|
195
|
-
const logs = [];
|
|
196
|
-
for (const file of files) {
|
|
197
|
-
try {
|
|
198
|
-
const content = fs.readFileSync(file, "utf-8");
|
|
199
|
-
const log = yaml.load(content);
|
|
200
|
-
const logDate = new Date(log.started);
|
|
201
|
-
if (options?.from && logDate < options.from) continue;
|
|
202
|
-
if (options?.to && logDate > options.to) continue;
|
|
203
|
-
logs.push(log);
|
|
204
|
-
} catch {
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
return JSON.stringify(logs, null, 2);
|
|
208
|
-
}
|
|
209
|
-
/**
|
|
210
|
-
* Export to CSV for analysis
|
|
211
|
-
*/
|
|
212
|
-
exportToCsv(options) {
|
|
213
|
-
const summaries = this.listOrchestrations(options);
|
|
214
|
-
const headers = [
|
|
215
|
-
"id",
|
|
216
|
-
"task",
|
|
217
|
-
"mode",
|
|
218
|
-
"started",
|
|
219
|
-
"status",
|
|
220
|
-
"agents_spawned",
|
|
221
|
-
"tokens",
|
|
222
|
-
"cost_usd",
|
|
223
|
-
"duration_ms"
|
|
224
|
-
];
|
|
225
|
-
const rows = summaries.map((s) => [
|
|
226
|
-
s.id,
|
|
227
|
-
`"${s.task.replace(/"/g, '""')}"`,
|
|
228
|
-
s.mode,
|
|
229
|
-
s.started,
|
|
230
|
-
s.status,
|
|
231
|
-
s.agents_spawned,
|
|
232
|
-
s.tokens,
|
|
233
|
-
s.cost_usd.toFixed(4),
|
|
234
|
-
s.duration_ms
|
|
235
|
-
]);
|
|
236
|
-
return [headers.join(","), ...rows.map((r) => r.join(","))].join("\n");
|
|
237
|
-
}
|
|
238
|
-
// ==========================================================================
|
|
239
|
-
// Private Methods
|
|
240
|
-
// ==========================================================================
|
|
241
|
-
ensureLogsDir() {
|
|
242
|
-
if (!fs.existsSync(this.logsDir)) {
|
|
243
|
-
fs.mkdirSync(this.logsDir, { recursive: true });
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
listLogFiles() {
|
|
247
|
-
if (!fs.existsSync(this.logsDir)) {
|
|
248
|
-
return [];
|
|
249
|
-
}
|
|
250
|
-
return fs.readdirSync(this.logsDir).filter((f) => f.endsWith(".yaml")).map((f) => path.join(this.logsDir, f));
|
|
251
|
-
}
|
|
252
|
-
sanitizeFilename(task) {
|
|
253
|
-
return task.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "").slice(0, 50);
|
|
254
|
-
}
|
|
255
|
-
};
|
|
256
|
-
|
|
257
|
-
export {
|
|
258
|
-
AuditLogger
|
|
259
|
-
};
|
package/dist/chunk-PDX44BCA.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
3
|
-
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
4
|
-
}) : x)(function(x) {
|
|
5
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
6
|
-
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
7
|
-
});
|
|
8
|
-
|
|
9
|
-
export {
|
|
10
|
-
__require
|
|
11
|
-
};
|
package/dist/chunk-PMXRGPRQ.js
DELETED
|
@@ -1,305 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
// src/commands/team/loader.ts
|
|
4
|
-
import * as fs from "fs";
|
|
5
|
-
import * as path from "path";
|
|
6
|
-
import * as yaml from "js-yaml";
|
|
7
|
-
|
|
8
|
-
// src/commands/team/types.ts
|
|
9
|
-
var AGENT_MODEL_RECOMMENDATIONS = {
|
|
10
|
-
architect: { tier: "high", description: "Complex planning needs best reasoning" },
|
|
11
|
-
security: { tier: "high", description: "Deep security analysis" },
|
|
12
|
-
reviewer: { tier: "medium", description: "Balanced critique" },
|
|
13
|
-
builder: { tier: "low", description: "Fast implementation, lower cost" },
|
|
14
|
-
tester: { tier: "low", description: "Quick validation" }
|
|
15
|
-
};
|
|
16
|
-
var DEFAULT_AGENTS = {
|
|
17
|
-
architect: {
|
|
18
|
-
role: `You design system architecture, write specifications, and plan features.
|
|
19
|
-
You do NOT write implementation code - that's the Builder's job.
|
|
20
|
-
When your spec is ready, hand off to Builder with 'paradigm team handoff --to builder'.`,
|
|
21
|
-
focus: {
|
|
22
|
-
reads: ["@features", "$flows", "specs/*.md", "health.yaml"],
|
|
23
|
-
writes: ["specs/*.md", ".purpose"]
|
|
24
|
-
},
|
|
25
|
-
triggers: [
|
|
26
|
-
{ type: "keyword", match: ["design", "architect", "plan", "spec"] },
|
|
27
|
-
{ type: "symbol", match: ["@*", "$*"] }
|
|
28
|
-
],
|
|
29
|
-
handoff_to: ["builder", "reviewer"],
|
|
30
|
-
defaultModel: "opus",
|
|
31
|
-
context: {
|
|
32
|
-
include: ["specs/*.md", ".purpose", "**/.purpose", "portal.yaml"],
|
|
33
|
-
exclude: ["src/**", "tests/**", "node_modules/**"]
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
builder: {
|
|
37
|
-
role: `You implement code based on specifications from the Architect.
|
|
38
|
-
Follow the spec exactly. If spec is unclear, hand back to Architect.
|
|
39
|
-
When implementation is ready, hand off to Reviewer with 'paradigm team handoff --to reviewer'.`,
|
|
40
|
-
focus: {
|
|
41
|
-
reads: ["#components", "specs/*.md", "src/**", "tests/**"],
|
|
42
|
-
writes: ["src/**", "tests/**"]
|
|
43
|
-
},
|
|
44
|
-
triggers: [
|
|
45
|
-
{ type: "keyword", match: ["implement", "build", "code", "fix"] },
|
|
46
|
-
{ type: "handoff", from: "architect" }
|
|
47
|
-
],
|
|
48
|
-
handoff_to: ["reviewer", "architect"],
|
|
49
|
-
defaultModel: "haiku",
|
|
50
|
-
context: {
|
|
51
|
-
include: ["src/**", "tests/**", "{feature}.purpose"],
|
|
52
|
-
exclude: ["specs/*.md", "node_modules/**"]
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
reviewer: {
|
|
56
|
-
role: `You review code for correctness, security, and adherence to specs.
|
|
57
|
-
Check all ^gate requirements are met.
|
|
58
|
-
Approve or request changes. Do NOT implement fixes yourself.
|
|
59
|
-
Hand back to Builder for fixes, or to Tester when approved.`,
|
|
60
|
-
focus: {
|
|
61
|
-
reads: ["^gates", "!signals", "portal.yaml", "src/**", "specs/*.md"],
|
|
62
|
-
writes: ["reviews/*.md"]
|
|
63
|
-
},
|
|
64
|
-
triggers: [
|
|
65
|
-
{ type: "keyword", match: ["review", "check", "audit", "approve"] },
|
|
66
|
-
{ type: "handoff", from: "builder" }
|
|
67
|
-
],
|
|
68
|
-
handoff_to: ["builder", "tester"],
|
|
69
|
-
defaultModel: "sonnet",
|
|
70
|
-
context: {
|
|
71
|
-
include: ["src/**", "specs/*.md", "portal.yaml", ".purpose"],
|
|
72
|
-
exclude: ["tests/**", "node_modules/**"]
|
|
73
|
-
}
|
|
74
|
-
},
|
|
75
|
-
tester: {
|
|
76
|
-
role: `You verify implementations work correctly.
|
|
77
|
-
Run tests, check portal validations, verify health status.
|
|
78
|
-
Report issues back to Builder. Update health.yaml when verified.`,
|
|
79
|
-
focus: {
|
|
80
|
-
reads: ["tests/**", "portal.yaml", "health.yaml", "#components"],
|
|
81
|
-
writes: ["tests/**", "health.yaml"]
|
|
82
|
-
},
|
|
83
|
-
triggers: [
|
|
84
|
-
{ type: "keyword", match: ["test", "verify", "qa", "validate"] },
|
|
85
|
-
{ type: "handoff", from: "reviewer" }
|
|
86
|
-
],
|
|
87
|
-
handoff_to: ["builder", "architect"],
|
|
88
|
-
defaultModel: "haiku",
|
|
89
|
-
context: {
|
|
90
|
-
include: ["tests/**", "health.yaml", "{feature}.purpose"],
|
|
91
|
-
exclude: ["src/**", "specs/**", "node_modules/**"]
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
|
-
security: {
|
|
95
|
-
role: `You audit for security issues, especially around ^gates.
|
|
96
|
-
Review auth flows, check for vulnerabilities.
|
|
97
|
-
Flag issues but do NOT implement fixes - hand to Builder for that.`,
|
|
98
|
-
focus: {
|
|
99
|
-
reads: ["^gates", "!signals", "portal.yaml", "src/**"],
|
|
100
|
-
writes: ["security/*.md"]
|
|
101
|
-
},
|
|
102
|
-
triggers: [
|
|
103
|
-
{ type: "keyword", match: ["security", "audit", "vulnerability", "auth"] }
|
|
104
|
-
],
|
|
105
|
-
handoff_to: ["builder", "architect"],
|
|
106
|
-
defaultModel: "opus",
|
|
107
|
-
context: {
|
|
108
|
-
include: ["portal.yaml", "src/middleware/**", "src/auth/**"],
|
|
109
|
-
exclude: ["src/routes/**", "tests/**", "node_modules/**"]
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
};
|
|
113
|
-
|
|
114
|
-
// src/commands/team/loader.ts
|
|
115
|
-
function getParadigmDir(rootDir) {
|
|
116
|
-
return path.join(rootDir, ".paradigm");
|
|
117
|
-
}
|
|
118
|
-
function getAgentsPath(rootDir) {
|
|
119
|
-
return path.join(getParadigmDir(rootDir), "agents.yaml");
|
|
120
|
-
}
|
|
121
|
-
function getTeamStatePath(rootDir) {
|
|
122
|
-
return path.join(getParadigmDir(rootDir), "team-state.yaml");
|
|
123
|
-
}
|
|
124
|
-
function getHandoffsDir(rootDir) {
|
|
125
|
-
return path.join(getParadigmDir(rootDir), "handoffs");
|
|
126
|
-
}
|
|
127
|
-
function agentsConfigured(rootDir) {
|
|
128
|
-
return fs.existsSync(getAgentsPath(rootDir));
|
|
129
|
-
}
|
|
130
|
-
function loadAgentsManifest(rootDir) {
|
|
131
|
-
const agentsPath = getAgentsPath(rootDir);
|
|
132
|
-
if (!fs.existsSync(agentsPath)) {
|
|
133
|
-
return null;
|
|
134
|
-
}
|
|
135
|
-
try {
|
|
136
|
-
const content = fs.readFileSync(agentsPath, "utf8");
|
|
137
|
-
return yaml.load(content);
|
|
138
|
-
} catch {
|
|
139
|
-
return null;
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
function saveAgentsManifest(rootDir, manifest) {
|
|
143
|
-
const agentsPath = getAgentsPath(rootDir);
|
|
144
|
-
const paradigmDir = getParadigmDir(rootDir);
|
|
145
|
-
if (!fs.existsSync(paradigmDir)) {
|
|
146
|
-
fs.mkdirSync(paradigmDir, { recursive: true });
|
|
147
|
-
}
|
|
148
|
-
const content = yaml.dump(manifest, {
|
|
149
|
-
lineWidth: -1,
|
|
150
|
-
noRefs: true,
|
|
151
|
-
quotingType: '"'
|
|
152
|
-
});
|
|
153
|
-
fs.writeFileSync(agentsPath, content);
|
|
154
|
-
}
|
|
155
|
-
function loadTeamState(rootDir) {
|
|
156
|
-
const statePath = getTeamStatePath(rootDir);
|
|
157
|
-
if (!fs.existsSync(statePath)) {
|
|
158
|
-
return {
|
|
159
|
-
current: null,
|
|
160
|
-
queue: [],
|
|
161
|
-
recent: [],
|
|
162
|
-
blocked: []
|
|
163
|
-
};
|
|
164
|
-
}
|
|
165
|
-
try {
|
|
166
|
-
const content = fs.readFileSync(statePath, "utf8");
|
|
167
|
-
return yaml.load(content);
|
|
168
|
-
} catch {
|
|
169
|
-
return {
|
|
170
|
-
current: null,
|
|
171
|
-
queue: [],
|
|
172
|
-
recent: [],
|
|
173
|
-
blocked: []
|
|
174
|
-
};
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
function saveTeamState(rootDir, state) {
|
|
178
|
-
const statePath = getTeamStatePath(rootDir);
|
|
179
|
-
const paradigmDir = getParadigmDir(rootDir);
|
|
180
|
-
if (!fs.existsSync(paradigmDir)) {
|
|
181
|
-
fs.mkdirSync(paradigmDir, { recursive: true });
|
|
182
|
-
}
|
|
183
|
-
const content = yaml.dump(state, {
|
|
184
|
-
lineWidth: -1,
|
|
185
|
-
noRefs: true,
|
|
186
|
-
quotingType: '"'
|
|
187
|
-
});
|
|
188
|
-
fs.writeFileSync(statePath, content);
|
|
189
|
-
}
|
|
190
|
-
function loadHandoff(rootDir, handoffId) {
|
|
191
|
-
const handoffPath = path.join(getHandoffsDir(rootDir), `${handoffId}.yaml`);
|
|
192
|
-
if (!fs.existsSync(handoffPath)) {
|
|
193
|
-
return null;
|
|
194
|
-
}
|
|
195
|
-
try {
|
|
196
|
-
const content = fs.readFileSync(handoffPath, "utf8");
|
|
197
|
-
return yaml.load(content);
|
|
198
|
-
} catch {
|
|
199
|
-
return null;
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
function saveHandoff(rootDir, handoff) {
|
|
203
|
-
const handoffsDir = getHandoffsDir(rootDir);
|
|
204
|
-
if (!fs.existsSync(handoffsDir)) {
|
|
205
|
-
fs.mkdirSync(handoffsDir, { recursive: true });
|
|
206
|
-
}
|
|
207
|
-
const handoffPath = path.join(handoffsDir, `${handoff.id}.yaml`);
|
|
208
|
-
const content = yaml.dump(handoff, {
|
|
209
|
-
lineWidth: -1,
|
|
210
|
-
noRefs: true,
|
|
211
|
-
quotingType: '"'
|
|
212
|
-
});
|
|
213
|
-
fs.writeFileSync(handoffPath, content);
|
|
214
|
-
}
|
|
215
|
-
function listHandoffs(rootDir) {
|
|
216
|
-
const handoffsDir = getHandoffsDir(rootDir);
|
|
217
|
-
if (!fs.existsSync(handoffsDir)) {
|
|
218
|
-
return [];
|
|
219
|
-
}
|
|
220
|
-
const files = fs.readdirSync(handoffsDir).filter((f) => f.endsWith(".yaml"));
|
|
221
|
-
const handoffs = [];
|
|
222
|
-
for (const file of files) {
|
|
223
|
-
const handoffId = file.replace(".yaml", "");
|
|
224
|
-
const handoff = loadHandoff(rootDir, handoffId);
|
|
225
|
-
if (handoff) {
|
|
226
|
-
handoffs.push(handoff);
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
return handoffs.sort(
|
|
230
|
-
(a, b) => new Date(b.timestamp).getTime() - new Date(a.timestamp).getTime()
|
|
231
|
-
);
|
|
232
|
-
}
|
|
233
|
-
function getPendingHandoffs(rootDir) {
|
|
234
|
-
return listHandoffs(rootDir).filter((h) => h.status === "pending");
|
|
235
|
-
}
|
|
236
|
-
function generateDefaultManifest(projectName = "project", modelOverrides) {
|
|
237
|
-
const agents = {};
|
|
238
|
-
for (const [name, def] of Object.entries(DEFAULT_AGENTS)) {
|
|
239
|
-
agents[name] = {
|
|
240
|
-
name,
|
|
241
|
-
...def
|
|
242
|
-
};
|
|
243
|
-
if (modelOverrides && modelOverrides[name]) {
|
|
244
|
-
const modelId = modelOverrides[name].id.toLowerCase();
|
|
245
|
-
if (modelId.includes("opus") || modelId.includes("gpt-4") && !modelId.includes("mini") || modelId.includes("o1") && !modelId.includes("mini") || modelId.includes("pro") && !modelId.includes("mini") || modelId.includes("large")) {
|
|
246
|
-
agents[name].defaultModel = "opus";
|
|
247
|
-
} else if (modelId.includes("haiku") || modelId.includes("mini") || modelId.includes("flash") || modelId.includes("small")) {
|
|
248
|
-
agents[name].defaultModel = "haiku";
|
|
249
|
-
} else {
|
|
250
|
-
agents[name].defaultModel = "sonnet";
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
return {
|
|
255
|
-
version: "1.0.0",
|
|
256
|
-
team: {
|
|
257
|
-
name: `${projectName}-team`,
|
|
258
|
-
default_agent: "architect",
|
|
259
|
-
require_handoff: false
|
|
260
|
-
},
|
|
261
|
-
agents
|
|
262
|
-
};
|
|
263
|
-
}
|
|
264
|
-
function addActivity(rootDir, activity) {
|
|
265
|
-
const state = loadTeamState(rootDir);
|
|
266
|
-
state.recent.unshift({
|
|
267
|
-
...activity,
|
|
268
|
-
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
269
|
-
});
|
|
270
|
-
state.recent = state.recent.slice(0, 20);
|
|
271
|
-
saveTeamState(rootDir, state);
|
|
272
|
-
}
|
|
273
|
-
function setCurrentAgent(rootDir, agent, task) {
|
|
274
|
-
const state = loadTeamState(rootDir);
|
|
275
|
-
state.current = {
|
|
276
|
-
agent,
|
|
277
|
-
task,
|
|
278
|
-
started: (/* @__PURE__ */ new Date()).toISOString(),
|
|
279
|
-
symbols_touched: []
|
|
280
|
-
};
|
|
281
|
-
saveTeamState(rootDir, state);
|
|
282
|
-
}
|
|
283
|
-
function clearCurrentAgent(rootDir) {
|
|
284
|
-
const state = loadTeamState(rootDir);
|
|
285
|
-
state.current = null;
|
|
286
|
-
saveTeamState(rootDir, state);
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
export {
|
|
290
|
-
AGENT_MODEL_RECOMMENDATIONS,
|
|
291
|
-
getParadigmDir,
|
|
292
|
-
getAgentsPath,
|
|
293
|
-
agentsConfigured,
|
|
294
|
-
loadAgentsManifest,
|
|
295
|
-
saveAgentsManifest,
|
|
296
|
-
loadTeamState,
|
|
297
|
-
saveTeamState,
|
|
298
|
-
saveHandoff,
|
|
299
|
-
listHandoffs,
|
|
300
|
-
getPendingHandoffs,
|
|
301
|
-
generateDefaultManifest,
|
|
302
|
-
addActivity,
|
|
303
|
-
setCurrentAgent,
|
|
304
|
-
clearCurrentAgent
|
|
305
|
-
};
|