@organizaone/o1-code 0.8.0 → 0.10.4
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/bundled/qc-helper/docs/configuration/settings.md +34 -7
- package/bundled/qc-helper/docs/features/commands.md +4 -4
- package/bundled/qc-helper/docs/reference/keyboard-shortcuts.md +6 -0
- package/chunks/{MaxSizedBox-MPKA4H3S.js → MaxSizedBox-VHZXGVLW.js} +46 -45
- package/chunks/{StandaloneSessionPicker-UVCAOTZY.js → StandaloneSessionPicker-3EROWATU.js} +62 -61
- package/chunks/{acp-subagent-executor-Z7DCA5XD.js → acp-subagent-executor-GWQKAEPB.js} +47 -46
- package/chunks/{acpAgent-XD4HSG4S.js → acpAgent-AL6KTCSY.js} +94 -93
- package/chunks/{agent-4PIKN4KJ.js → agent-RU7E6G34.js} +32 -31
- package/chunks/{agent-headless-DE5JTWFJ.js → agent-headless-M4PN25BD.js} +32 -31
- package/chunks/{anthropicContentGenerator-LYCMWQZM.js → anthropicContentGenerator-6TKL2GXG.js} +8 -8
- package/chunks/{bridge-CDYVSTRW.js → bridge-SEYIHH6G.js} +47 -46
- package/chunks/{build-HLEIVF4Y.js → build-QRER4J4E.js} +2 -1
- package/chunks/{bwrap-execution-QFG5RQSP.js → bwrap-execution-UZAMPG6F.js} +3 -3
- package/chunks/{chunk-KCFOR2YE.js → chunk-2VE7AXYY.js} +11 -11
- package/chunks/{chunk-CMZHL55Y.js → chunk-3KUQCZUE.js} +2 -2
- package/chunks/{chunk-HD6YZF4W.js → chunk-3PVG3FQN.js} +7 -7
- package/chunks/{chunk-ZZRKSYC2.js → chunk-43427ZT3.js} +1 -1
- package/chunks/{chunk-OBPGYMIV.js → chunk-4ESI3MQ5.js} +43 -22
- package/chunks/{chunk-B64XOQ4T.js → chunk-4EYPKVHD.js} +5 -5
- package/chunks/{chunk-ZFZB6WC5.js → chunk-4LCUE7BN.js} +3 -198
- package/chunks/{chunk-Z6I4GSXT.js → chunk-4XS46ASJ.js} +2 -2
- package/chunks/{chunk-JOAJ57HE.js → chunk-545ROI6V.js} +1 -1
- package/chunks/{chunk-UWIT4O2Y.js → chunk-5CB4U6DS.js} +2 -2
- package/chunks/{chunk-46DFZOLD.js → chunk-5E373J3N.js} +1 -1
- package/chunks/{chunk-GHVRSKPO.js → chunk-5Y44KHOU.js} +1 -1
- package/chunks/{chunk-HNYPLSAN.js → chunk-67LZSGOU.js} +1 -1
- package/chunks/{chunk-BPVDOEUQ.js → chunk-6NXC4BI5.js} +3 -3
- package/chunks/{chunk-K5SPVYI4.js → chunk-7DQWDZUQ.js} +1 -1
- package/chunks/{chunk-SYCNHXV2.js → chunk-7GSPYBET.js} +1 -1
- package/chunks/{chunk-GNUA6XPQ.js → chunk-7H3GWNGJ.js} +1 -1
- package/chunks/{chunk-6IB7ZLX6.js → chunk-7JG3HELJ.js} +4 -4
- package/chunks/{chunk-TCME6IG6.js → chunk-7LFCBMVX.js} +1 -1
- package/chunks/{chunk-ZQPD7WDS.js → chunk-7M4NSLWM.js} +2 -2
- package/chunks/{chunk-B2FLT75F.js → chunk-7ODOX4UM.js} +2 -1
- package/chunks/{chunk-V5OSSYNA.js → chunk-7PYXIRCE.js} +2 -2
- package/chunks/{chunk-WUKHAI4J.js → chunk-7USF7X6U.js} +1 -1
- package/chunks/{chunk-5C5U56Q3.js → chunk-ADBL3IRA.js} +5 -5
- package/chunks/{chunk-L4PQEMAM.js → chunk-AGMYBSIU.js} +8 -5
- package/chunks/{chunk-ZFFHT6AU.js → chunk-AIGLVHBV.js} +3 -3
- package/chunks/{chunk-ZHTRFFVQ.js → chunk-ALIO4STD.js} +1 -1
- package/chunks/{chunk-ZXMW3YT5.js → chunk-BAGPD67C.js} +1 -1
- package/chunks/{chunk-7W7I5SEW.js → chunk-BEI5P3M7.js} +7 -7
- package/chunks/{chunk-OMTAQ5EZ.js → chunk-BKKZR7X4.js} +2 -2
- package/chunks/{chunk-APE4IW2O.js → chunk-CF5SF4G5.js} +6 -6
- package/chunks/{chunk-YIDTDNOF.js → chunk-CKKPLKIP.js} +1 -1
- package/chunks/{chunk-CVMZXRZS.js → chunk-CNOWGY7D.js} +6 -6
- package/chunks/{chunk-B43A45RP.js → chunk-CPWPD6SR.js} +5 -5
- package/chunks/{chunk-JVJT5UI7.js → chunk-CS4CELQI.js} +2 -2
- package/chunks/{chunk-D33JAHZW.js → chunk-DHPOSTBT.js} +24 -5
- package/chunks/{chunk-EHRBJ5RM.js → chunk-DVJZ2C55.js} +2 -2
- package/chunks/{chunk-6TWJYLJE.js → chunk-DVRWYOU6.js} +1 -1
- package/chunks/{chunk-773IX2FW.js → chunk-EHYUNTVE.js} +7 -7
- package/chunks/{chunk-TQI6ULGQ.js → chunk-ER3EHNTV.js} +1 -1
- package/chunks/{chunk-4LZRIWVH.js → chunk-EZCJ26MU.js} +4 -4
- package/chunks/{chunk-QCXAYVHY.js → chunk-FHXZKNON.js} +2 -2
- package/chunks/{chunk-3CVLYID6.js → chunk-FII3ST7W.js} +3 -3
- package/chunks/{chunk-QDZTSZTF.js → chunk-FJHDFJVI.js} +1 -1
- package/chunks/{chunk-FVPKPSA3.js → chunk-GGUL6GZ5.js} +1 -1
- package/chunks/{chunk-JS4EYSJA.js → chunk-H2DCMLIK.js} +4 -4
- package/chunks/{chunk-YDM2USQE.js → chunk-H75LW27M.js} +4 -4
- package/chunks/{chunk-EDDKKBIT.js → chunk-H7LYSOSQ.js} +1 -1
- package/chunks/{chunk-POHJY7RJ.js → chunk-HCE5HUQG.js} +1 -1
- package/chunks/{chunk-XRF3D35U.js → chunk-HD3KYIZP.js} +3 -3
- package/chunks/{chunk-PLWOHBC7.js → chunk-HDGYCLNB.js} +1 -1
- package/chunks/{chunk-4PE4SRQM.js → chunk-HDVJIXPT.js} +3 -3
- package/chunks/{chunk-YSNEIJMX.js → chunk-HFXEXI4S.js} +49 -40
- package/chunks/{chunk-XLLMQVGN.js → chunk-HOLP2BCW.js} +1 -1
- package/chunks/{chunk-DEULKIEJ.js → chunk-HWIVKRK4.js} +1 -1
- package/chunks/{chunk-4ALTAZNE.js → chunk-IK7Y64IL.js} +2 -2
- package/chunks/{chunk-V23Q4GBY.js → chunk-J5UW3SF4.js} +1 -1
- package/chunks/{chunk-DZPGLX7M.js → chunk-JQPMOOCH.js} +1 -1
- package/chunks/{chunk-G5L3QNEI.js → chunk-KGDJZNQC.js} +3 -3
- package/chunks/{chunk-VMDI4JJ3.js → chunk-KMTAGPIN.js} +2 -2
- package/chunks/{chunk-TEX55VSH.js → chunk-KPRPJMSP.js} +1 -1
- package/chunks/{chunk-YKJL5SJA.js → chunk-L4XP2BXW.js} +13 -13
- package/chunks/{chunk-3QJQWI46.js → chunk-LIAMHIGS.js} +2 -2
- package/chunks/{chunk-ZRB6OWYJ.js → chunk-ME5CDTOQ.js} +3 -3
- package/chunks/{chunk-NGE3GHMN.js → chunk-MWFHMYVA.js} +1 -1
- package/chunks/{chunk-CWDGOQ42.js → chunk-N5MLNIET.js} +44 -44
- package/chunks/{chunk-XKOGHPWS.js → chunk-N7NBYHMJ.js} +1 -1
- package/chunks/{chunk-ZBXTBSTM.js → chunk-NAKKROMI.js} +2 -2
- package/chunks/{chunk-3ZZ62DW7.js → chunk-NDK2PD5Y.js} +1 -1
- package/chunks/{chunk-BH3ZYKWI.js → chunk-NHRB3THC.js} +2 -2
- package/chunks/{chunk-JIE2LIL5.js → chunk-NKHM3QSK.js} +5 -5
- package/chunks/{chunk-4P7BNWDO.js → chunk-NSH5JHZH.js} +91 -26
- package/chunks/{chunk-74Q7U3NS.js → chunk-OCTSNICG.js} +2 -2
- package/chunks/{chunk-2USNAY6D.js → chunk-ODYKSVON.js} +1 -1
- package/chunks/{chunk-NGPEFWU4.js → chunk-OJSW65PQ.js} +1 -1
- package/chunks/{chunk-LQLXIPYI.js → chunk-OVTUMTW6.js} +4 -4
- package/chunks/{chunk-EEQPRAGR.js → chunk-P35MCCDH.js} +2 -2
- package/chunks/{chunk-MSVH2BBU.js → chunk-PF7G5TYG.js} +17 -17
- package/chunks/{chunk-BPYLGORC.js → chunk-PYIWZPBY.js} +6 -6
- package/chunks/{chunk-QBVSXKVU.js → chunk-QATTWMLJ.js} +8 -8
- package/chunks/{chunk-FZUEC7ES.js → chunk-QCONHGJR.js} +1 -1
- package/chunks/{chunk-UAFSY3G5.js → chunk-QFPNGX7U.js} +1 -1
- package/chunks/{chunk-V7SQBCBF.js → chunk-QLP5B3HQ.js} +1 -1
- package/chunks/{chunk-G2I75T4C.js → chunk-QYUMJTBP.js} +2 -2
- package/chunks/{chunk-DVDWT5I5.js → chunk-R7SPXY4A.js} +1 -1
- package/chunks/{chunk-PBD5EUD6.js → chunk-RCBGIDZU.js} +1 -1
- package/chunks/chunk-RIN7SNJN.js +212 -0
- package/chunks/{chunk-4J2EVRIE.js → chunk-RJUVWCC5.js} +1 -1
- package/chunks/{chunk-6QG24XPQ.js → chunk-RMWEXCAN.js} +3 -3
- package/chunks/{chunk-ZLKDL25I.js → chunk-RUPTHAC7.js} +3 -3
- package/chunks/{chunk-G5Q6NMUW.js → chunk-RX5J7HHZ.js} +2 -2
- package/chunks/{chunk-GELXLAFP.js → chunk-SKU7JRIS.js} +2 -2
- package/chunks/{chunk-AZY4TCZ7.js → chunk-SOWXEFJH.js} +492 -242
- package/chunks/{chunk-7QM44EGU.js → chunk-SPLQKNEP.js} +1 -1
- package/chunks/{chunk-BWWYSCS6.js → chunk-SWJZH7BK.js} +6 -6
- package/chunks/{chunk-YICEY4QV.js → chunk-T7M2HD7D.js} +1 -1
- package/chunks/{chunk-C656OW55.js → chunk-TAFMMFLK.js} +3 -3
- package/chunks/{chunk-45P7VYH4.js → chunk-TBSUV4QV.js} +2 -2
- package/chunks/{chunk-TNG42Z7B.js → chunk-TI76PXY3.js} +3 -3
- package/chunks/{chunk-C4LQ2SEV.js → chunk-TUTCCLI7.js} +3 -3
- package/chunks/{chunk-IBPY5AJI.js → chunk-U5KZBWKF.js} +4 -397
- package/chunks/{chunk-JL3XSVHA.js → chunk-UFXAWOXR.js} +1 -1
- package/chunks/{chunk-D37ZUISY.js → chunk-UX6ZDNDO.js} +2 -2
- package/chunks/{chunk-O6SXVQIJ.js → chunk-V7NIAOMT.js} +5 -5
- package/chunks/{chunk-DKGZJFEL.js → chunk-VCNQFVKJ.js} +9 -9
- package/chunks/{chunk-WDPFG2UH.js → chunk-VHIYZGUD.js} +2 -2
- package/chunks/{chunk-SQX3PXHY.js → chunk-VIAJ74X3.js} +2 -2
- package/chunks/{chunk-H73FHD45.js → chunk-VLALIFPR.js} +13 -13
- package/chunks/{chunk-YO5ABP3C.js → chunk-VOETOZWN.js} +1 -1
- package/chunks/{chunk-ELVKWFRK.js → chunk-VVF2QVSN.js} +2 -2
- package/chunks/{chunk-QN7NIHRH.js → chunk-VVRQLG57.js} +1 -1
- package/chunks/{chunk-XK4OF3J4.js → chunk-W2SFVYBK.js} +7 -7
- package/chunks/{chunk-S7GI7ORV.js → chunk-WCWPITU4.js} +2 -2
- package/chunks/{chunk-3NAWLMIE.js → chunk-WQBWL6YE.js} +10 -10
- package/chunks/{chunk-XCVOM2VI.js → chunk-WS3L2RKL.js} +5 -5
- package/chunks/{chunk-FAFSNEV5.js → chunk-WUP5273H.js} +3 -3
- package/chunks/{chunk-LYER2K7O.js → chunk-WWNTQFH7.js} +2 -2
- package/chunks/{chunk-HLWXBJCH.js → chunk-WZCKDUBO.js} +131 -15
- package/chunks/{chunk-Y37FNMS7.js → chunk-X427DWFD.js} +1 -1
- package/chunks/{chunk-35RKSP4A.js → chunk-XHYWPHWN.js} +1 -1
- package/chunks/{chunk-OMJU4YIQ.js → chunk-XOVXSDNN.js} +1 -1
- package/chunks/{chunk-W5NM2DOQ.js → chunk-XRY6XLJD.js} +16 -0
- package/chunks/{chunk-ZXWZU5JK.js → chunk-Y6AFQKTE.js} +14 -3
- package/chunks/{chunk-HQ5DN5W7.js → chunk-Y75AMWDB.js} +1 -1
- package/chunks/{chunk-V7HMP3JJ.js → chunk-YHWOPL2T.js} +100 -29
- package/chunks/{chunk-TUQW42RF.js → chunk-YXR7EEJO.js} +2 -2
- package/chunks/{chunk-FFMBJQC4.js → chunk-ZDBDDHSP.js} +1 -1
- package/chunks/{chunk-5S6C2QM3.js → chunk-ZHMOCPV6.js} +3 -3
- package/chunks/{chunk-UFJZ2C4R.js → chunk-ZSP6FDZ2.js} +5 -5
- package/chunks/{codex-subagent-executor-QPQRH7VF.js → codex-subagent-executor-UGS4BKXM.js} +47 -46
- package/chunks/{container-execution-environment-PO7I26HR.js → container-execution-environment-INYC74GN.js} +1 -1
- package/chunks/{contextCommand-MUYCLXI2.js → contextCommand-ADTFEKEK.js} +46 -45
- package/chunks/{core-runtime-K375FMVY.js → core-runtime-QIWPENIC.js} +44 -43
- package/chunks/{create-sub-session-ETVNIXD4.js → create-sub-session-IU3OMOYV.js} +45 -44
- package/chunks/{daemon-git-worktree-guard-URKE4X7B.js → daemon-git-worktree-guard-BLBIBY4P.js} +44 -43
- package/chunks/{daemon-status-provider-KBJMZ5VU.js → daemon-status-provider-QQYQA54F.js} +53 -52
- package/chunks/{daemon-trust-policy-5K5J5KAL.js → daemon-trust-policy-RL42K32W.js} +50 -49
- package/chunks/{daemon-trust-policy-monitor-KOMAIXNG.js → daemon-trust-policy-monitor-W6A2KI3R.js} +50 -49
- package/chunks/{deferred-core-runtime-QNITNKSR.js → deferred-core-runtime-7IMZJYKO.js} +44 -43
- package/chunks/dist-ID6B4BSH.js +3901 -0
- package/chunks/{edit-NWFXC7XD.js → edit-XEHFRLTK.js} +34 -33
- package/chunks/{en-HPW4HDED.js → en-2EMGSVEU.js} +106 -0
- package/chunks/{enter-worktree-53CUMISV.js → enter-worktree-A2WD27HQ.js} +4 -4
- package/chunks/{enterPlanMode-QDDMKHKN.js → enterPlanMode-TJNAVH6W.js} +32 -31
- package/chunks/{environment-U5DQC4TM.js → environment-EINU6SZC.js} +46 -45
- package/chunks/{errors-5LSM7QXJ.js → errors-2IFCUYY5.js} +46 -45
- package/chunks/{execution-sandbox-config-7UDTKDKF.js → execution-sandbox-config-YE2XOT56.js} +4 -4
- package/chunks/{execution-tool-E56GOUSU.js → execution-tool-SZ4AURPN.js} +34 -33
- package/chunks/{execution-worker-Z5BHN5K5.js → execution-worker-WHSC3ZGX.js} +39 -38
- package/chunks/{exit-worktree-CZUYCPZ3.js → exit-worktree-S7KUQ4HO.js} +4 -4
- package/chunks/{exitPlanMode-KGJAK2Y4.js → exitPlanMode-PAZMVUS6.js} +32 -31
- package/chunks/{fast-path-PJGTPCNM.js → fast-path-W6DEVJVB.js} +2 -2
- package/chunks/{glob-EVTXD6VF.js → glob-WJQOKIRP.js} +33 -32
- package/chunks/{goal-tools-AGBJACM2.js → goal-tools-CDMDPDOI.js} +32 -31
- package/chunks/{grep-ENZEP6KL.js → grep-VO76ZOXG.js} +4 -4
- package/chunks/{handleAutoUpdate-43BIPZWM.js → handleAutoUpdate-JRPITHAS.js} +48 -47
- package/chunks/{i18n-24CRZK22.js → i18n-4PMXKRMM.js} +45 -44
- package/chunks/{image-gen-72F4XQEU.js → image-gen-GRJ73O3N.js} +6 -6
- package/chunks/{initializer-4DVR3OFQ.js → initializer-NHTBAZUN.js} +50 -49
- package/chunks/{installationInfo-ZUYQ74QC.js → installationInfo-OTUBAVXR.js} +44 -43
- package/chunks/{list-D4DH2YUE.js → list-OIRYDK5J.js} +52 -51
- package/chunks/{llm-7O2S5FZZ.js → llm-CWNQ7Z4U.js} +81 -80
- package/chunks/{llm-content-generator-EYG44T5V.js → llm-content-generator-5662XHRK.js} +4 -4
- package/chunks/{loadedSettingsAdapter-6SDUBKWT.js → loadedSettingsAdapter-E7AA2YEL.js} +50 -49
- package/chunks/{local-execution-environment-T3BRDBZD.js → local-execution-environment-HRGLGYYE.js} +39 -38
- package/chunks/{loggingContentGenerator-Y4TPIBBN.js → loggingContentGenerator-S434PEH5.js} +33 -32
- package/chunks/{managed-npm-update-ZWNMNX4Z.js → managed-npm-update-OLKKN32W.js} +44 -43
- package/chunks/{mcp-7D3UDC46.js → mcp-HHJNHR4Y.js} +50 -49
- package/chunks/{model-call-collection-KCCY7UXB.js → model-call-collection-CQDJ77VA.js} +1 -1
- package/chunks/{model-configuration-6CBTIRM4.js → model-configuration-K26C67NU.js} +51 -50
- package/chunks/{modelConfigUtils-CPCJMZL2.js → modelConfigUtils-OME5BXU4.js} +46 -45
- package/chunks/{monitor-YVEEBOJ2.js → monitor-YAWMJU7P.js} +32 -31
- package/chunks/{nonInteractiveCli-JUQU6XOW.js → nonInteractiveCli-MPZIO64Q.js} +84 -83
- package/chunks/{nonInteractiveToolExecutor-7E2KS5G3.js → nonInteractiveToolExecutor-AIM44M2P.js} +33 -32
- package/chunks/{notebook-edit-RKCHUGBX.js → notebook-edit-FTYD3OR2.js} +33 -32
- package/chunks/{omni-TBNGAJHP.js → omni-RULYOVJP.js} +14 -14
- package/chunks/{openaiContentGenerator-W5HZYWHH.js → openaiContentGenerator-HYNXDAHQ.js} +11 -11
- package/chunks/{openaiResponsesContentGenerator-XFY7636U.js → openaiResponsesContentGenerator-TK2Y64AP.js} +5 -5
- package/chunks/{processUtils-AKEG25VQ.js → processUtils-VKDQXNAC.js} +2 -2
- package/chunks/{prompt-terminal-ledger-FSAFESTR.js → prompt-terminal-ledger-BAOIS32T.js} +45 -44
- package/chunks/{proper-lockfile-YMJYGVGR.js → proper-lockfile-IRPL2CNM.js} +2 -1
- package/chunks/{pt-6FF6V764.js → pt-BM6ETOUU.js} +287 -4
- package/chunks/{reactive-degrade-PKHNF3KO.js → reactive-degrade-L6W5KNGV.js} +9 -9
- package/chunks/{read-file-E57BEGBG.js → read-file-G4G5LOGO.js} +4 -4
- package/chunks/{read-package-up-BNFTU7FA.js → read-package-up-MAONTKXW.js} +1 -1
- package/chunks/{record-source-PHBQTGL4.js → record-source-ANENC5K7.js} +3 -3
- package/chunks/{request-shutdown-OMWHNC3R.js → request-shutdown-LRWCJOEG.js} +2 -2
- package/chunks/{resumeHistoryUtils-HPJKUBOD.js → resumeHistoryUtils-ECDR2CS2.js} +49 -48
- package/chunks/{ripGrep-EX2NI7O3.js → ripGrep-2MEBBDSU.js} +8 -8
- package/chunks/{run-o1-code-serve-NOBIE4OX.js → run-o1-code-serve-PH2GYSP2.js} +37 -36
- package/chunks/{runtime-shell-policy-QXWSET5W.js → runtime-shell-policy-Y3TGAQLT.js} +1 -1
- package/chunks/{sandboxConfig-A3IJTTT4.js → sandboxConfig-ZA5EE5YP.js} +46 -45
- package/chunks/{scheduled-tasks-2PZSPNSI.js → scheduled-tasks-MU2VVZZA.js} +50 -49
- package/chunks/{scheduler-CJCTKITE.js → scheduler-3GBVAF3D.js} +46 -45
- package/chunks/{sdk-exporters-grpc-Q2GND2QR.js → sdk-exporters-grpc-J2ILXEUS.js} +377 -127
- package/chunks/{sdk-exporters-http-ALEY7IPF.js → sdk-exporters-http-HGBOA62S.js} +1 -1
- package/chunks/{sdk-impl-CFBASVEM.js → sdk-impl-G2NWB5MF.js} +4 -4
- package/chunks/{send-message-NATKTKQZ.js → send-message-QOWWQKZJ.js} +2 -2
- package/chunks/{serve-EWPAQLW6.js → serve-2AICGZTS.js} +50 -49
- package/chunks/{server-NGE2FORR.js → server-2TVKATWR.js} +92 -84
- package/chunks/{session-PVLA7F4T.js → session-NQKO6WQB.js} +85 -84
- package/chunks/{session-attachments-root-JWDXTWCG.js → session-attachments-root-SSB5ARJJ.js} +44 -43
- package/chunks/{session-pr-refresh-KSA4SOPP.js → session-pr-refresh-YMET6WC7.js} +49 -48
- package/chunks/{settings-D52DDJD6.js → settings-L3QP6XRJ.js} +49 -48
- package/chunks/{shell-WXVQNSMT.js → shell-BUXOKE4X.js} +32 -31
- package/chunks/{skill-AMXJBJ77.js → skill-Y4TKTJS7.js} +8 -7
- package/chunks/{skill-settings-HK2TQVCB.js → skill-settings-MRFNTHGU.js} +50 -49
- package/chunks/{spawnChannel-2BKO2JU3.js → spawnChannel-6YZABREF.js} +46 -45
- package/chunks/{standalone-update-FAISIFXV.js → standalone-update-NPL3226O.js} +47 -46
- package/chunks/{startInteractiveUI-GGN2B6OO.js → startInteractiveUI-SK5FABV5.js} +4408 -3325
- package/chunks/{task-create-A3FAT34J.js → task-create-2BHPJUF3.js} +6 -5
- package/chunks/{task-list-FGRDSMJZ.js → task-list-6LPOL5UB.js} +3 -2
- package/chunks/{task-update-BE27HYCU.js → task-update-NGKKBFU5.js} +6 -5
- package/chunks/{team-create-YTQ2D6AQ.js → team-create-2M2ZEJK3.js} +32 -31
- package/chunks/{team-delete-6T2NMHDV.js → team-delete-WBSKRFVF.js} +3 -2
- package/chunks/{team-plan-approval-5I5VH4DM.js → team-plan-approval-AHSBAARB.js} +32 -31
- package/chunks/{terminal-image-renderer-PLNIOAID.js → terminal-image-renderer-6DD2LV7J.js} +44 -43
- package/chunks/{theme-manager-NARRJWQY.js → theme-manager-IDMOY52V.js} +44 -43
- package/chunks/{tool-call-7HZFNB7J.js → tool-call-GVZHLCX6.js} +3 -3
- package/chunks/{tool-result-media-SVT627AG.js → tool-result-media-5BM7EQS2.js} +14 -14
- package/chunks/{tool-search-YFKQ6DHN.js → tool-search-MCB74V2Z.js} +6 -6
- package/chunks/{total-session-admission-LS7DR34W.js → total-session-admission-65EGYQPO.js} +47 -46
- package/chunks/{trustedFolders-GDOE6W5P.js → trustedFolders-B2SE4YQI.js} +45 -44
- package/chunks/{undici-5EUQ6VID.js → undici-I7LHD7IT.js} +457 -166
- package/chunks/{update-relaunch-FEKGARQ5.js → update-relaunch-BI3KOPOU.js} +5 -5
- package/chunks/{updateCheck-BKJJHSTQ.js → updateCheck-KVUQB3UY.js} +47 -46
- package/chunks/{upload-config-2NB472QI.js → upload-config-EALPYJRO.js} +7 -7
- package/chunks/{useAutoAcceptIndicator-7OUYCX3A.js → useAutoAcceptIndicator-Z2DHJUGG.js} +53 -52
- package/chunks/{validateNonInterActiveAuth-IRRCBNZX.js → validateNonInterActiveAuth-6TSH6F5D.js} +81 -80
- package/chunks/{version-J4YMGCW6.js → version-T3ODOQJ3.js} +2 -2
- package/chunks/{web-fetch-HMJ5ZCBP.js → web-fetch-B4MFZK5W.js} +8 -8
- package/chunks/{web-search-7JL754Q6.js → web-search-R3JBN6A5.js} +11 -11
- package/chunks/{web-shell-static-3BG3MTI5.js → web-shell-static-OOIIII74.js} +2 -2
- package/chunks/{workflow-L2WL3ZDX.js → workflow-WUNSCM5D.js} +33 -32
- package/chunks/{workspace-providers-status-BDNAQ7FG.js → workspace-providers-status-LSYGM3QX.js} +56 -55
- package/chunks/{workspace-registration-store-BJMDZRJN.js → workspace-registration-store-XF5KJWQP.js} +3 -2
- package/chunks/{workspace-registry-TYAN4F7B.js → workspace-registry-JPCXXXJR.js} +47 -46
- package/chunks/{workspace-runtime-coordinator-ST75S32T.js → workspace-runtime-coordinator-VEVP44OL.js} +48 -47
- package/chunks/{workspace-service-NXC5LXSU.js → workspace-service-VCWHIBVD.js} +55 -54
- package/chunks/{workspace-skills-status-CXJVMP4H.js → workspace-skills-status-TVSCRWXV.js} +53 -52
- package/chunks/{workspace-trust-reconciler-ZPGBWKCS.js → workspace-trust-reconciler-FP7NYY7Z.js} +53 -52
- package/chunks/{write-file-IRIAC5H3.js → write-file-6FNRAYPO.js} +34 -33
- package/chunks/{zoom-image-I26GRMX4.js → zoom-image-UOWJTYWI.js} +4 -4
- package/cli.js +12 -12
- package/execution-worker.js +1 -1
- package/export-transcript-document.css +1 -1
- package/export-transcript-document.js +3 -3
- package/locales/en.js +117 -0
- package/locales/pt.js +387 -4
- package/package.json +3 -3
- package/release-notes.json +30 -0
- package/vendor/o1-connect/README.md +9 -4
- package/vendor/o1-connect/VENDOR.json +4 -4
- package/vendor/o1-connect/lib.d.mts +7 -1
- package/vendor/o1-connect/lib.mjs +4 -3
- package/web-shell/assets/{abnfDiagram-VCTEODGH-Bk3CX78A.js → abnfDiagram-VCTEODGH-hPR_hq_-.js} +1 -1
- package/web-shell/assets/{arc-BR_nvNsB.js → arc-DBIKDXMV.js} +1 -1
- package/web-shell/assets/architectureDiagram-5GKGNRK7-DF6ToCyK.js +36 -0
- package/web-shell/assets/{blockDiagram-NRAW4CY4-BtrdWykE.js → blockDiagram-NRAW4CY4-D-3ZOodq.js} +3 -3
- package/web-shell/assets/c4Diagram-UCG6FXSJ-Dlgo5UYL.js +38 -0
- package/web-shell/assets/channel-aWi28RPH.js +1 -0
- package/web-shell/assets/{chunk-2Q5K7J3B-Bwd9bma4.js → chunk-2Q5K7J3B-BupVKi2M.js} +1 -1
- package/web-shell/assets/{chunk-5VM5RSS4-DXDhytPU.js → chunk-5VM5RSS4-I7UXEM7J.js} +1 -1
- package/web-shell/assets/chunk-F27PBJKO-HQNLQQK-.js +1 -0
- package/web-shell/assets/chunk-G27WJ6UU-1o4xDSX9.js +231 -0
- package/web-shell/assets/{chunk-JWPE2WC7-D4UNrq92.js → chunk-JWPE2WC7-AkJIcBLE.js} +1 -1
- package/web-shell/assets/chunk-LCL6LL3I-nfbDS7iE.js +206 -0
- package/web-shell/assets/{chunk-POPQ4Y6H-DTgfcLRJ.js → chunk-POPQ4Y6H-DtEE_OdH.js} +1 -1
- package/web-shell/assets/{chunk-SVP7TREG-izf3rZJp.js → chunk-SVP7TREG-Cj9Lw3Gx.js} +1 -1
- package/web-shell/assets/{chunk-XXDRQBXY-DljhFpef.js → chunk-XXDRQBXY-CUDuWpdQ.js} +1 -1
- package/web-shell/assets/classDiagram-DTDB5LWJ-fHMqSd3A.js +1 -0
- package/web-shell/assets/classDiagram-v2-JRS7N3AN-fHMqSd3A.js +1 -0
- package/web-shell/assets/cose-bilkent-JH36ORCC-DQx9CBLc.js +1 -0
- package/web-shell/assets/{cynefin-OW5HDTMX-Dd_PEuNo.js → cynefin-OW5HDTMX-B3kEpThT.js} +8 -8
- package/web-shell/assets/{cynefinDiagram-5FMLGOSQ-B1iPtQOd.js → cynefinDiagram-5FMLGOSQ-Sv-FRvME.js} +1 -1
- package/web-shell/assets/cytoscape.esm-OyMbaexL.js +331 -0
- package/web-shell/assets/{dagre-3AP2YEHR-BrvQN_6z.js → dagre-3AP2YEHR-CH_Z8-Kk.js} +1 -1
- package/web-shell/assets/{diagram-S7CK7UJ4-PDnxya9q.js → diagram-S7CK7UJ4-C0oToNP-.js} +1 -1
- package/web-shell/assets/{diagram-UQ7AKVKN-BkRMXeTB.js → diagram-UQ7AKVKN-BrSK_nkR.js} +1 -1
- package/web-shell/assets/{diagram-VSXAHHWV-lAiZzifg.js → diagram-VSXAHHWV-Dqa3JxKx.js} +1 -1
- package/web-shell/assets/diagram-VX7I27RA-CMxI_svo.js +24 -0
- package/web-shell/assets/{diagram-Z3DM3KII-CUjAutSP.js → diagram-Z3DM3KII-ms16iRjT.js} +1 -1
- package/web-shell/assets/{ebnfDiagram-PWID7BFC-ByDyIWnZ.js → ebnfDiagram-PWID7BFC-DlnqAdIV.js} +1 -1
- package/web-shell/assets/erDiagram-SSCWMZ5O-DLsbP_rs.js +99 -0
- package/web-shell/assets/{flowDiagram-A5DVABFB-Cvwsq1Bo.js → flowDiagram-A5DVABFB-CUi1Sjog.js} +4 -4
- package/web-shell/assets/ganttDiagram-EL5Y4UJY-CE_JUTUJ.js +292 -0
- package/web-shell/assets/{gitGraphDiagram-WWUBYQGX-DEEdlWcc.js → gitGraphDiagram-WWUBYQGX-B5AAvDsM.js} +1 -1
- package/web-shell/assets/index-70D1m6Hg.js +2276 -0
- package/web-shell/assets/{index-CGrLBpT2.js → index-BHiSoADm.js} +1 -1
- package/web-shell/assets/index-CL4z8Fsq.js +74 -0
- package/web-shell/assets/index-CNsJ4Mpd.css +36 -0
- package/web-shell/assets/{infoDiagram-RXCK75RN-D1VQ_kZI.js → infoDiagram-RXCK75RN-pBmlQkcV.js} +1 -1
- package/web-shell/assets/ishikawaDiagram-5VMMS53U-BauoqPoz.js +70 -0
- package/web-shell/assets/journeyDiagram-EYS64GPL-2bt-6t-1.js +139 -0
- package/web-shell/assets/{kanban-definition-3QL26DDD-BUVwFNEo.js → kanban-definition-3QL26DDD-BxxoBXaj.js} +3 -3
- package/web-shell/assets/layout-CHPDwyF0.js +1 -0
- package/web-shell/assets/{linear-C4Wpe0iD.js → linear-DNvAHeqC.js} +1 -1
- package/web-shell/assets/mermaid.core-fypPA9cT.js +312 -0
- package/web-shell/assets/{mindmap-definition-FBJOCRG2-BGrDRA57.js → mindmap-definition-FBJOCRG2-6QjAwCGs.js} +3 -3
- package/web-shell/assets/{pegDiagram-XKGWAZYB-CXhAo2be.js → pegDiagram-XKGWAZYB-CVntv99C.js} +1 -1
- package/web-shell/assets/{pieDiagram-E7YTZNPT-BNPT9sa7.js → pieDiagram-E7YTZNPT-BfhvtHAE.js} +1 -1
- package/web-shell/assets/quadrantDiagram-AXDQQJYC-MiVxa2Zt.js +7 -0
- package/web-shell/assets/{railroadDiagram-O6MQD6OU-CmEaRU9P.js → railroadDiagram-O6MQD6OU-BwHFJs0H.js} +1 -1
- package/web-shell/assets/requirementDiagram-EFPCY7ZU-CEJ6r2cM.js +84 -0
- package/web-shell/assets/{sankeyDiagram-P5KCCOFB-BoAEtGxz.js → sankeyDiagram-P5KCCOFB-D7uTdG-j.js} +3 -3
- package/web-shell/assets/sequenceDiagram-WJ2MYXX4-CyW16H7w.js +162 -0
- package/web-shell/assets/{sizeCapture-X5ZJPWSS-EAmGoIFW.js → sizeCapture-X5ZJPWSS-zoBxvlxI.js} +1 -1
- package/web-shell/assets/{stateDiagram-HBIQ2CUA-BDNlELRq.js → stateDiagram-HBIQ2CUA-BceIC-cJ.js} +1 -1
- package/web-shell/assets/stateDiagram-v2-4QOOHH4V-BsJAvg6i.js +1 -0
- package/web-shell/assets/swimlanes-XN3QIQJK-QgaLP8Xo.js +1 -0
- package/web-shell/assets/swimlanesDiagram-VK2B7HYN-DdMnIIJX.js +8 -0
- package/web-shell/assets/timeline-definition-24CTP7MA-pz8DGpLO.js +120 -0
- package/web-shell/assets/{vennDiagram-4TSXK5OY-DF4g99lN.js → vennDiagram-4TSXK5OY-BoMnG3o9.js} +4 -4
- package/web-shell/assets/{wardleyDiagram-VM6X3IG4-eonsHLeg.js → wardleyDiagram-VM6X3IG4-Bkr9hvxi.js} +2 -2
- package/web-shell/assets/xychartDiagram-S5SC5T6Z-Ca7YvQrU.js +7 -0
- package/web-shell/index.html +2 -2
- package/web-shell/sw.js +1 -1
- package/chunks/esm-QGHTLT3P.js +0 -5549
- package/web-shell/assets/architectureDiagram-5GKGNRK7-9N6jxIjW.js +0 -36
- package/web-shell/assets/c4Diagram-UCG6FXSJ-D12hT1cu.js +0 -38
- package/web-shell/assets/channel-CBirg-LI.js +0 -1
- package/web-shell/assets/chunk-F27PBJKO-D2so4bRw.js +0 -1
- package/web-shell/assets/chunk-G27WJ6UU-QMGf_hdg.js +0 -231
- package/web-shell/assets/chunk-LCL6LL3I-DvzcfF9r.js +0 -206
- package/web-shell/assets/classDiagram-DTDB5LWJ-OPWv8k1L.js +0 -1
- package/web-shell/assets/classDiagram-v2-JRS7N3AN-OPWv8k1L.js +0 -1
- package/web-shell/assets/cose-bilkent-JH36ORCC-CpIh97Lb.js +0 -1
- package/web-shell/assets/cytoscape.esm-DJK6lGiH.js +0 -331
- package/web-shell/assets/diagram-VX7I27RA-B6MvRJIJ.js +0 -24
- package/web-shell/assets/erDiagram-SSCWMZ5O-CMF9JtS6.js +0 -99
- package/web-shell/assets/ganttDiagram-EL5Y4UJY-BDfktaDD.js +0 -292
- package/web-shell/assets/index-C08mPO2E.js +0 -2276
- package/web-shell/assets/index-DfyXIq26.css +0 -36
- package/web-shell/assets/index-DohPy72Z.js +0 -74
- package/web-shell/assets/ishikawaDiagram-5VMMS53U-C7_B_Tul.js +0 -70
- package/web-shell/assets/journeyDiagram-EYS64GPL-Dzeh8Ykq.js +0 -139
- package/web-shell/assets/layout-CHOKfXHU.js +0 -1
- package/web-shell/assets/mermaid.core-m4gQMm4Q.js +0 -312
- package/web-shell/assets/quadrantDiagram-AXDQQJYC-DiLNHUaM.js +0 -7
- package/web-shell/assets/requirementDiagram-EFPCY7ZU-CTiKG6rg.js +0 -84
- package/web-shell/assets/sequenceDiagram-WJ2MYXX4-GBchxwdW.js +0 -162
- package/web-shell/assets/stateDiagram-v2-4QOOHH4V-CQuU4s5n.js +0 -1
- package/web-shell/assets/swimlanes-XN3QIQJK-CBOzrWrz.js +0 -1
- package/web-shell/assets/swimlanesDiagram-VK2B7HYN-Bf4cDpVo.js +0 -8
- package/web-shell/assets/timeline-definition-24CTP7MA-0zGAApyZ.js +0 -120
- package/web-shell/assets/xychartDiagram-S5SC5T6Z-Cq-H1yjY.js +0 -7
|
@@ -27,13 +27,13 @@ import {
|
|
|
27
27
|
sendStructuredMessage,
|
|
28
28
|
wrapConfirmWithBadge,
|
|
29
29
|
writeMessage
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-7H3GWNGJ.js";
|
|
31
31
|
import {
|
|
32
32
|
claimTask,
|
|
33
33
|
listTasks,
|
|
34
34
|
onTasksUpdated,
|
|
35
35
|
unassignTeammateTasks
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-X427DWFD.js";
|
|
37
37
|
import {
|
|
38
38
|
SessionArtifactSnapshotAccumulator,
|
|
39
39
|
aggregateTranscriptRecordFragments,
|
|
@@ -121,10 +121,10 @@ import {
|
|
|
121
121
|
stringify,
|
|
122
122
|
validateGoalProposalReason,
|
|
123
123
|
validateSkillName
|
|
124
|
-
} from "./chunk-
|
|
124
|
+
} from "./chunk-TAFMMFLK.js";
|
|
125
125
|
import {
|
|
126
126
|
canUseRipgrep
|
|
127
|
-
} from "./chunk-
|
|
127
|
+
} from "./chunk-XHYWPHWN.js";
|
|
128
128
|
import {
|
|
129
129
|
AGENT_WORKTREE_SLUG_PATTERN,
|
|
130
130
|
GitWorktreeService,
|
|
@@ -138,7 +138,7 @@ import {
|
|
|
138
138
|
worktreeHasWork,
|
|
139
139
|
writeRuntimeStatus,
|
|
140
140
|
writeWorktreeSessionMarker
|
|
141
|
-
} from "./chunk-
|
|
141
|
+
} from "./chunk-3KUQCZUE.js";
|
|
142
142
|
import {
|
|
143
143
|
hasVerifiableInode,
|
|
144
144
|
openSyncNoFollow
|
|
@@ -168,17 +168,17 @@ import {
|
|
|
168
168
|
import {
|
|
169
169
|
buildModelIdContext,
|
|
170
170
|
resolveModelId
|
|
171
|
-
} from "./chunk-
|
|
171
|
+
} from "./chunk-67LZSGOU.js";
|
|
172
172
|
import {
|
|
173
173
|
glob,
|
|
174
174
|
globSync
|
|
175
|
-
} from "./chunk-
|
|
175
|
+
} from "./chunk-4ESI3MQ5.js";
|
|
176
176
|
import {
|
|
177
177
|
isTruthy
|
|
178
178
|
} from "./chunk-SYMKXR42.js";
|
|
179
179
|
import {
|
|
180
180
|
normalizeImageGenerationBaseUrl
|
|
181
|
-
} from "./chunk-
|
|
181
|
+
} from "./chunk-7M4NSLWM.js";
|
|
182
182
|
import {
|
|
183
183
|
restoreSessionSources
|
|
184
184
|
} from "./chunk-CDYMT4OZ.js";
|
|
@@ -194,7 +194,7 @@ import {
|
|
|
194
194
|
getShellPagerEnv,
|
|
195
195
|
isSignalTermination,
|
|
196
196
|
normalizePathEnvForWindows
|
|
197
|
-
} from "./chunk-
|
|
197
|
+
} from "./chunk-QCONHGJR.js";
|
|
198
198
|
import {
|
|
199
199
|
stripAnsi
|
|
200
200
|
} from "./chunk-WU3R2YUE.js";
|
|
@@ -219,7 +219,7 @@ import {
|
|
|
219
219
|
shouldDefaultToNodePty,
|
|
220
220
|
splitCommands,
|
|
221
221
|
stripShellWrapper
|
|
222
|
-
} from "./chunk-
|
|
222
|
+
} from "./chunk-J5UW3SF4.js";
|
|
223
223
|
import {
|
|
224
224
|
resolveBundleDir
|
|
225
225
|
} from "./chunk-Z2IHOXIK.js";
|
|
@@ -235,7 +235,7 @@ import {
|
|
|
235
235
|
admitShellSandbox,
|
|
236
236
|
assertShellSandboxCwd,
|
|
237
237
|
probeShellSandbox
|
|
238
|
-
} from "./chunk-
|
|
238
|
+
} from "./chunk-N7NBYHMJ.js";
|
|
239
239
|
import {
|
|
240
240
|
resolveNetworkTarget
|
|
241
241
|
} from "./chunk-HPQNI3OQ.js";
|
|
@@ -243,10 +243,10 @@ import {
|
|
|
243
243
|
delay,
|
|
244
244
|
isUnattendedMode,
|
|
245
245
|
retryWithBackoff
|
|
246
|
-
} from "./chunk-
|
|
246
|
+
} from "./chunk-VIAJ74X3.js";
|
|
247
247
|
import {
|
|
248
248
|
isOmniDeliveryActive
|
|
249
|
-
} from "./chunk-
|
|
249
|
+
} from "./chunk-VOETOZWN.js";
|
|
250
250
|
import {
|
|
251
251
|
MediaResourceRegistry,
|
|
252
252
|
evaluateMediaPolicyToolCall,
|
|
@@ -255,12 +255,12 @@ import {
|
|
|
255
255
|
} from "./chunk-CI2ZHR5C.js";
|
|
256
256
|
import {
|
|
257
257
|
require_proper_lockfile
|
|
258
|
-
} from "./chunk-
|
|
258
|
+
} from "./chunk-4LCUE7BN.js";
|
|
259
259
|
import {
|
|
260
260
|
DEFERRED_TOOL_CALL_CANCELLATION_PREFIX,
|
|
261
261
|
DEFERRED_TOOL_CALL_REFUSAL_PREFIX,
|
|
262
262
|
resolveDeferredToolCall
|
|
263
|
-
} from "./chunk-
|
|
263
|
+
} from "./chunk-7LFCBMVX.js";
|
|
264
264
|
import {
|
|
265
265
|
EXCLUDED_TOOLS_FOR_SUBAGENTS,
|
|
266
266
|
READ_ONLY_INSPECTION_TOOLS,
|
|
@@ -289,13 +289,13 @@ import {
|
|
|
289
289
|
splitCompoundCommand,
|
|
290
290
|
splitCompoundCommandSegments,
|
|
291
291
|
toolMatchesRuleToolName
|
|
292
|
-
} from "./chunk-
|
|
292
|
+
} from "./chunk-OJSW65PQ.js";
|
|
293
293
|
import {
|
|
294
294
|
APPROVAL_MODES
|
|
295
295
|
} from "./chunk-KQAVEXYD.js";
|
|
296
296
|
import {
|
|
297
297
|
require_shell_quote
|
|
298
|
-
} from "./chunk-
|
|
298
|
+
} from "./chunk-WZCKDUBO.js";
|
|
299
299
|
import {
|
|
300
300
|
AskUserQuestionTool,
|
|
301
301
|
TrustedUserAnswers,
|
|
@@ -336,7 +336,7 @@ import {
|
|
|
336
336
|
import {
|
|
337
337
|
DashScopeOpenAICompatibleProvider,
|
|
338
338
|
selectDashScopeThinkingKnob
|
|
339
|
-
} from "./chunk-
|
|
339
|
+
} from "./chunk-CPWPD6SR.js";
|
|
340
340
|
import {
|
|
341
341
|
childLaunchDepth,
|
|
342
342
|
getCurrentAgentConfiguredToolAllowlist,
|
|
@@ -382,7 +382,7 @@ import {
|
|
|
382
382
|
isRateLimitError,
|
|
383
383
|
isRetryableUpstreamError,
|
|
384
384
|
isStructuredError
|
|
385
|
-
} from "./chunk-
|
|
385
|
+
} from "./chunk-7USF7X6U.js";
|
|
386
386
|
import {
|
|
387
387
|
combineAbortSignals,
|
|
388
388
|
createAbortController,
|
|
@@ -390,7 +390,7 @@ import {
|
|
|
390
390
|
} from "./chunk-O4IWNFDK.js";
|
|
391
391
|
import {
|
|
392
392
|
ResponsesHttpError
|
|
393
|
-
} from "./chunk-
|
|
393
|
+
} from "./chunk-MWFHMYVA.js";
|
|
394
394
|
import {
|
|
395
395
|
getThoughtSummary
|
|
396
396
|
} from "./chunk-CP63SY5N.js";
|
|
@@ -408,14 +408,14 @@ import {
|
|
|
408
408
|
resolveSavedModelApiKey,
|
|
409
409
|
stripRuntimeSnapshotPrefix,
|
|
410
410
|
validateReasoningCapabilities
|
|
411
|
-
} from "./chunk-
|
|
411
|
+
} from "./chunk-7ODOX4UM.js";
|
|
412
412
|
import {
|
|
413
413
|
BaseTokenStorage,
|
|
414
414
|
KeychainTokenStorage
|
|
415
415
|
} from "./chunk-RS2LNQEC.js";
|
|
416
416
|
import {
|
|
417
417
|
addDaemonRequestAttribute
|
|
418
|
-
} from "./chunk-
|
|
418
|
+
} from "./chunk-HCE5HUQG.js";
|
|
419
419
|
import {
|
|
420
420
|
ApiRetryEvent,
|
|
421
421
|
COMBINED_PASS_TOLERANCE_FACTOR,
|
|
@@ -508,7 +508,7 @@ import {
|
|
|
508
508
|
updateMCPServerStatus,
|
|
509
509
|
writeLine,
|
|
510
510
|
writeLineSync
|
|
511
|
-
} from "./chunk-
|
|
511
|
+
} from "./chunk-RX5J7HHZ.js";
|
|
512
512
|
import {
|
|
513
513
|
Mutex
|
|
514
514
|
} from "./chunk-242JUBPM.js";
|
|
@@ -599,14 +599,14 @@ import {
|
|
|
599
599
|
resolveContentGeneratorConfigWithSources,
|
|
600
600
|
setGeneratorReasoningEffort,
|
|
601
601
|
tokenLimit
|
|
602
|
-
} from "./chunk-
|
|
602
|
+
} from "./chunk-CF5SF4G5.js";
|
|
603
603
|
import {
|
|
604
604
|
getOrCreateMcpDispatcher,
|
|
605
605
|
loadUndici,
|
|
606
606
|
preloadRuntimeFetchModule,
|
|
607
607
|
redactProxyError,
|
|
608
608
|
setResolvedProxyUrlForRuntimeFetch
|
|
609
|
-
} from "./chunk-
|
|
609
|
+
} from "./chunk-HDGYCLNB.js";
|
|
610
610
|
import {
|
|
611
611
|
DEFAULT_O1CODE_MODEL
|
|
612
612
|
} from "./chunk-LEXKU5FI.js";
|
|
@@ -758,7 +758,7 @@ import {
|
|
|
758
758
|
startToolExecutionSpan,
|
|
759
759
|
startToolSpan,
|
|
760
760
|
truncateSpanError
|
|
761
|
-
} from "./chunk-
|
|
761
|
+
} from "./chunk-ER3EHNTV.js";
|
|
762
762
|
import {
|
|
763
763
|
normalizeContent,
|
|
764
764
|
stripAnsiAndControl,
|
|
@@ -11225,7 +11225,7 @@ async function startTunnelSession(o) {
|
|
|
11225
11225
|
return { agent, pinSync, server, target, port: server.address().port, close };
|
|
11226
11226
|
}
|
|
11227
11227
|
__name(startTunnelSession, "startTunnelSession");
|
|
11228
|
-
var VERSION = true ? "9.
|
|
11228
|
+
var VERSION = true ? "9.4.0" : "dev";
|
|
11229
11229
|
var O1ConnectError = class extends Error {
|
|
11230
11230
|
static {
|
|
11231
11231
|
__name(this, "O1ConnectError");
|
|
@@ -11344,7 +11344,8 @@ async function open(opts) {
|
|
|
11344
11344
|
transport: cfg.transport,
|
|
11345
11345
|
port,
|
|
11346
11346
|
localKeyHash: hashLocalKey(apiKey),
|
|
11347
|
-
|
|
11347
|
+
// Only when the app asks (like the CLI's identify): absent, nothing about the client goes on the wire.
|
|
11348
|
+
userAgent: opts.identify === true ? `o1-connect-lib/${VERSION}` : void 0,
|
|
11348
11349
|
log,
|
|
11349
11350
|
onMismatch: /* @__PURE__ */ __name((received) => {
|
|
11350
11351
|
log?.(`TUNNEL IDENTITY MISMATCH: received ${received}; possible interception`);
|
|
@@ -36460,7 +36461,7 @@ var LlmChat = class {
|
|
|
36460
36461
|
const degradeAttempt = omniMediaDegradeAttempts++;
|
|
36461
36462
|
let degradeOutcome;
|
|
36462
36463
|
try {
|
|
36463
|
-
const { degradeOmniMediaAfterServerReject } = await import("./reactive-degrade-
|
|
36464
|
+
const { degradeOmniMediaAfterServerReject } = await import("./reactive-degrade-L6W5KNGV.js");
|
|
36464
36465
|
degradeOutcome = await degradeOmniMediaAfterServerReject(
|
|
36465
36466
|
self2.config,
|
|
36466
36467
|
self2.history,
|
|
@@ -70353,7 +70354,12 @@ var OAuthTokensSchema = object2({
|
|
|
70353
70354
|
token_type: string2(),
|
|
70354
70355
|
expires_in: coerce_exports.number().optional(),
|
|
70355
70356
|
scope: string2().optional(),
|
|
70356
|
-
refresh_token: string2().optional()
|
|
70357
|
+
refresh_token: string2().optional(),
|
|
70358
|
+
/**
|
|
70359
|
+
* Not part of the wire format: the authorization server this value was obtained from, added by
|
|
70360
|
+
* the client's `auth()` before it is stored and compared when it is read back.
|
|
70361
|
+
*/
|
|
70362
|
+
issuer: string2().optional().catch(void 0)
|
|
70357
70363
|
}).strip();
|
|
70358
70364
|
var OAuthErrorResponseSchema = object2({
|
|
70359
70365
|
error: string2(),
|
|
@@ -70383,7 +70389,12 @@ var OAuthClientInformationSchema = object2({
|
|
|
70383
70389
|
client_id: string2(),
|
|
70384
70390
|
client_secret: string2().optional(),
|
|
70385
70391
|
client_id_issued_at: number2().optional(),
|
|
70386
|
-
client_secret_expires_at: number2().optional()
|
|
70392
|
+
client_secret_expires_at: number2().optional(),
|
|
70393
|
+
/**
|
|
70394
|
+
* Not part of the wire format: the authorization server this value was obtained from, added by
|
|
70395
|
+
* the client's `auth()` before it is stored and compared when it is read back.
|
|
70396
|
+
*/
|
|
70397
|
+
issuer: string2().optional().catch(void 0)
|
|
70387
70398
|
}).strip();
|
|
70388
70399
|
var OAuthClientInformationFullSchema = OAuthClientMetadataSchema.merge(OAuthClientInformationSchema);
|
|
70389
70400
|
var OAuthClientRegistrationErrorSchema = object2({
|
|
@@ -70653,6 +70664,29 @@ async function parseErrorResponse(input) {
|
|
|
70653
70664
|
}
|
|
70654
70665
|
}
|
|
70655
70666
|
__name(parseErrorResponse, "parseErrorResponse");
|
|
70667
|
+
function issuersMatch(a, b2) {
|
|
70668
|
+
let [x, y] = [a, b2];
|
|
70669
|
+
try {
|
|
70670
|
+
[x, y] = [new URL(a).href, new URL(b2).href];
|
|
70671
|
+
} catch {
|
|
70672
|
+
}
|
|
70673
|
+
return x === y || x.endsWith("/") && x.slice(0, -1) === y || y.endsWith("/") && y.slice(0, -1) === x;
|
|
70674
|
+
}
|
|
70675
|
+
__name(issuersMatch, "issuersMatch");
|
|
70676
|
+
function discardIfIssuerMismatch(stored, issuer) {
|
|
70677
|
+
if (!stored)
|
|
70678
|
+
return void 0;
|
|
70679
|
+
if (typeof stored.issuer !== "string")
|
|
70680
|
+
return stored.issuer == null ? stored : { ...stored, issuer: void 0 };
|
|
70681
|
+
return issuersMatch(stored.issuer, issuer) ? stored : void 0;
|
|
70682
|
+
}
|
|
70683
|
+
__name(discardIfIssuerMismatch, "discardIfIssuerMismatch");
|
|
70684
|
+
var TokenResponseSchema = OAuthTokensSchema.omit({ issuer: true });
|
|
70685
|
+
var RegistrationResponseSchema = OAuthClientInformationFullSchema.omit({ issuer: true });
|
|
70686
|
+
function boundElsewhereError(stored, issuer) {
|
|
70687
|
+
return new Error(`OAuth client information is bound to authorization server ${stored.issuer} and is not presented to ${issuer}. Clear the stored client information, or correct \`expectedIssuer\`, if the authorization server has moved.`);
|
|
70688
|
+
}
|
|
70689
|
+
__name(boundElsewhereError, "boundElsewhereError");
|
|
70656
70690
|
async function auth(provider, options2) {
|
|
70657
70691
|
try {
|
|
70658
70692
|
return await authInternal(provider, options2);
|
|
@@ -70707,9 +70741,24 @@ async function authInternal(provider, { serverUrl, authorizationCode, scope, res
|
|
|
70707
70741
|
authorizationServerMetadata: metadata
|
|
70708
70742
|
});
|
|
70709
70743
|
}
|
|
70710
|
-
const
|
|
70744
|
+
const issuer = String(authorizationServerUrl);
|
|
70745
|
+
const selectedResource = await selectResourceURL(serverUrl, provider, resourceMetadata);
|
|
70746
|
+
const resource = selectedResource && resourceMetadata && !provider.validateResourceURL ? resourceMetadata.resource : selectedResource;
|
|
70711
70747
|
const resolvedScope = scope || resourceMetadata?.scopes_supported?.join(" ") || provider.clientMetadata.scope;
|
|
70712
|
-
|
|
70748
|
+
const storedClientInformation = await Promise.resolve(provider.clientInformation());
|
|
70749
|
+
let clientInformation = discardIfIssuerMismatch(storedClientInformation, issuer);
|
|
70750
|
+
const canRegisterAgain = provider.saveClientInformation !== void 0 && !!provider.redirectUrl;
|
|
70751
|
+
if (storedClientInformation && !clientInformation && !canRegisterAgain) {
|
|
70752
|
+
throw boundElsewhereError(storedClientInformation, issuer);
|
|
70753
|
+
}
|
|
70754
|
+
const unstampedClientInformation = clientInformation?.issuer == null ? clientInformation : void 0;
|
|
70755
|
+
const bindClientInformation = /* @__PURE__ */ __name(async () => {
|
|
70756
|
+
try {
|
|
70757
|
+
if (unstampedClientInformation)
|
|
70758
|
+
await provider.saveClientInformation?.({ ...unstampedClientInformation, issuer });
|
|
70759
|
+
} catch {
|
|
70760
|
+
}
|
|
70761
|
+
}, "bindClientInformation");
|
|
70713
70762
|
if (!clientInformation) {
|
|
70714
70763
|
if (authorizationCode !== void 0) {
|
|
70715
70764
|
throw new Error("Existing OAuth client information is required when exchanging an authorization code");
|
|
@@ -70721,9 +70770,7 @@ async function authInternal(provider, { serverUrl, authorizationCode, scope, res
|
|
|
70721
70770
|
}
|
|
70722
70771
|
const shouldUseUrlBasedClientId = supportsUrlBasedClientId && clientMetadataUrl;
|
|
70723
70772
|
if (shouldUseUrlBasedClientId) {
|
|
70724
|
-
clientInformation = {
|
|
70725
|
-
client_id: clientMetadataUrl
|
|
70726
|
-
};
|
|
70773
|
+
clientInformation = { client_id: clientMetadataUrl, issuer };
|
|
70727
70774
|
await provider.saveClientInformation?.(clientInformation);
|
|
70728
70775
|
} else {
|
|
70729
70776
|
if (!provider.saveClientInformation) {
|
|
@@ -70735,8 +70782,8 @@ async function authInternal(provider, { serverUrl, authorizationCode, scope, res
|
|
|
70735
70782
|
scope: resolvedScope,
|
|
70736
70783
|
fetchFn
|
|
70737
70784
|
});
|
|
70738
|
-
|
|
70739
|
-
clientInformation
|
|
70785
|
+
clientInformation = { ...fullInformation, issuer };
|
|
70786
|
+
await provider.saveClientInformation(clientInformation);
|
|
70740
70787
|
}
|
|
70741
70788
|
}
|
|
70742
70789
|
const nonInteractiveFlow = !provider.redirectUrl;
|
|
@@ -70747,10 +70794,14 @@ async function authInternal(provider, { serverUrl, authorizationCode, scope, res
|
|
|
70747
70794
|
authorizationCode,
|
|
70748
70795
|
fetchFn
|
|
70749
70796
|
});
|
|
70750
|
-
await
|
|
70797
|
+
await bindClientInformation();
|
|
70798
|
+
await provider.saveTokens({ ...tokens2, issuer });
|
|
70751
70799
|
return "AUTHORIZED";
|
|
70752
70800
|
}
|
|
70753
|
-
const tokens = await provider.tokens();
|
|
70801
|
+
const tokens = discardIfIssuerMismatch(await provider.tokens(), issuer);
|
|
70802
|
+
if (tokens?.refresh_token && tokens.issuer == null) {
|
|
70803
|
+
console.warn("[mcp-sdk] stored OAuth tokens have no 'issuer' property (saved by an earlier version, or by a provider that does not keep it) and are used as-is; make sure your OAuthClientProvider stores what saveTokens() and saveClientInformation() receive unchanged.");
|
|
70804
|
+
}
|
|
70754
70805
|
if (tokens?.refresh_token) {
|
|
70755
70806
|
try {
|
|
70756
70807
|
const newTokens = await refreshAuthorization(authorizationServerUrl, {
|
|
@@ -70761,7 +70812,8 @@ async function authInternal(provider, { serverUrl, authorizationCode, scope, res
|
|
|
70761
70812
|
addClientAuthentication: provider.addClientAuthentication,
|
|
70762
70813
|
fetchFn
|
|
70763
70814
|
});
|
|
70764
|
-
await
|
|
70815
|
+
await bindClientInformation();
|
|
70816
|
+
await provider.saveTokens({ ...newTokens, issuer });
|
|
70765
70817
|
return "AUTHORIZED";
|
|
70766
70818
|
} catch (error42) {
|
|
70767
70819
|
if (!(error42 instanceof OAuthError) || error42 instanceof ServerError) {
|
|
@@ -70998,6 +71050,10 @@ async function discoverOAuthServerInfo(serverUrl, opts) {
|
|
|
70998
71050
|
};
|
|
70999
71051
|
}
|
|
71000
71052
|
__name(discoverOAuthServerInfo, "discoverOAuthServerInfo");
|
|
71053
|
+
function resourceIndicatorToString(resource) {
|
|
71054
|
+
return typeof resource === "string" ? resource : resource.href;
|
|
71055
|
+
}
|
|
71056
|
+
__name(resourceIndicatorToString, "resourceIndicatorToString");
|
|
71001
71057
|
async function startAuthorization(authorizationServerUrl, { metadata, clientInformation, redirectUrl, scope, state, resource }) {
|
|
71002
71058
|
let authorizationUrl;
|
|
71003
71059
|
if (metadata) {
|
|
@@ -71029,7 +71085,7 @@ async function startAuthorization(authorizationServerUrl, { metadata, clientInfo
|
|
|
71029
71085
|
authorizationUrl.searchParams.append("prompt", "consent");
|
|
71030
71086
|
}
|
|
71031
71087
|
if (resource) {
|
|
71032
|
-
authorizationUrl.searchParams.set("resource", resource
|
|
71088
|
+
authorizationUrl.searchParams.set("resource", resourceIndicatorToString(resource));
|
|
71033
71089
|
}
|
|
71034
71090
|
return { authorizationUrl, codeVerifier };
|
|
71035
71091
|
}
|
|
@@ -71050,7 +71106,7 @@ async function executeTokenRequest(authorizationServerUrl, { metadata, tokenRequ
|
|
|
71050
71106
|
Accept: "application/json"
|
|
71051
71107
|
});
|
|
71052
71108
|
if (resource) {
|
|
71053
|
-
tokenRequestParams.set("resource", resource
|
|
71109
|
+
tokenRequestParams.set("resource", resourceIndicatorToString(resource));
|
|
71054
71110
|
}
|
|
71055
71111
|
if (addClientAuthentication) {
|
|
71056
71112
|
await addClientAuthentication(headers, tokenRequestParams, tokenUrl, metadata);
|
|
@@ -71067,7 +71123,7 @@ async function executeTokenRequest(authorizationServerUrl, { metadata, tokenRequ
|
|
|
71067
71123
|
if (!response.ok) {
|
|
71068
71124
|
throw await parseErrorResponse(response);
|
|
71069
71125
|
}
|
|
71070
|
-
return
|
|
71126
|
+
return TokenResponseSchema.parse(await response.json());
|
|
71071
71127
|
}
|
|
71072
71128
|
__name(executeTokenRequest, "executeTokenRequest");
|
|
71073
71129
|
async function refreshAuthorization(authorizationServerUrl, { metadata, clientInformation, refreshToken, resource, addClientAuthentication, fetchFn }) {
|
|
@@ -71087,6 +71143,15 @@ async function refreshAuthorization(authorizationServerUrl, { metadata, clientIn
|
|
|
71087
71143
|
}
|
|
71088
71144
|
__name(refreshAuthorization, "refreshAuthorization");
|
|
71089
71145
|
async function fetchToken(provider, authorizationServerUrl, { metadata, resource, authorizationCode, fetchFn } = {}) {
|
|
71146
|
+
const readClientInformation = /* @__PURE__ */ __name(async () => {
|
|
71147
|
+
const storedClientInformation = await provider.clientInformation();
|
|
71148
|
+
const checked = discardIfIssuerMismatch(storedClientInformation, String(authorizationServerUrl));
|
|
71149
|
+
if (storedClientInformation && !checked) {
|
|
71150
|
+
throw boundElsewhereError(storedClientInformation, String(authorizationServerUrl));
|
|
71151
|
+
}
|
|
71152
|
+
return checked;
|
|
71153
|
+
}, "readClientInformation");
|
|
71154
|
+
let clientInformation = await readClientInformation();
|
|
71090
71155
|
const scope = provider.clientMetadata.scope;
|
|
71091
71156
|
let tokenRequestParams;
|
|
71092
71157
|
if (provider.prepareTokenRequest) {
|
|
@@ -71102,11 +71167,11 @@ async function fetchToken(provider, authorizationServerUrl, { metadata, resource
|
|
|
71102
71167
|
const codeVerifier = await provider.codeVerifier();
|
|
71103
71168
|
tokenRequestParams = prepareAuthorizationCodeRequest(authorizationCode, codeVerifier, provider.redirectUrl);
|
|
71104
71169
|
}
|
|
71105
|
-
|
|
71170
|
+
clientInformation ?? (clientInformation = await readClientInformation());
|
|
71106
71171
|
return executeTokenRequest(authorizationServerUrl, {
|
|
71107
71172
|
metadata,
|
|
71108
71173
|
tokenRequestParams,
|
|
71109
|
-
clientInformation
|
|
71174
|
+
clientInformation,
|
|
71110
71175
|
addClientAuthentication: provider.addClientAuthentication,
|
|
71111
71176
|
resource,
|
|
71112
71177
|
fetchFn
|
|
@@ -71136,7 +71201,7 @@ async function registerClient(authorizationServerUrl, { metadata, clientMetadata
|
|
|
71136
71201
|
if (!response.ok) {
|
|
71137
71202
|
throw await parseErrorResponse(response);
|
|
71138
71203
|
}
|
|
71139
|
-
return
|
|
71204
|
+
return RegistrationResponseSchema.parse(await response.json());
|
|
71140
71205
|
}
|
|
71141
71206
|
__name(registerClient, "registerClient");
|
|
71142
71207
|
|
|
@@ -74114,7 +74179,7 @@ var CoreToolScheduler = class _CoreToolScheduler {
|
|
|
74114
74179
|
const notices = [];
|
|
74115
74180
|
let omniProcessed = responseParts;
|
|
74116
74181
|
if (this.config.isOmniEnabled?.()) {
|
|
74117
|
-
const { processToolResultOmniMedia } = await import("./tool-result-media-
|
|
74182
|
+
const { processToolResultOmniMedia } = await import("./tool-result-media-5BM7EQS2.js");
|
|
74118
74183
|
omniProcessed = await processToolResultOmniMedia(
|
|
74119
74184
|
responseParts,
|
|
74120
74185
|
this.config,
|
|
@@ -77272,7 +77337,7 @@ ${body}
|
|
|
77272
77337
|
artifacts: toolResult.artifacts
|
|
77273
77338
|
} : void 0;
|
|
77274
77339
|
if (policyArtifacts && policyArtifacts.executionOrigin.kind !== "fixed_policy" && scheduledCall.tool.mediaPolicyDescriptor) {
|
|
77275
|
-
const { collectModelPolicyCall } = await import("./model-call-collection-
|
|
77340
|
+
const { collectModelPolicyCall } = await import("./model-call-collection-CQDJ77VA.js");
|
|
77276
77341
|
await collectModelPolicyCall({
|
|
77277
77342
|
config: this.config,
|
|
77278
77343
|
batch: policyArtifacts,
|
|
@@ -101292,7 +101357,7 @@ init_esbuild_shims();
|
|
|
101292
101357
|
// node_modules/@modelcontextprotocol/client/dist/index.mjs
|
|
101293
101358
|
init_esbuild_shims();
|
|
101294
101359
|
|
|
101295
|
-
// node_modules/@modelcontextprotocol/client/dist/src-
|
|
101360
|
+
// node_modules/@modelcontextprotocol/client/dist/src-xKF0PJN-.mjs
|
|
101296
101361
|
init_esbuild_shims();
|
|
101297
101362
|
|
|
101298
101363
|
// node_modules/@modelcontextprotocol/client/dist/chunk-Br0eD_fh.mjs
|
|
@@ -101359,7 +101424,7 @@ __name(declaredDialect, "declaredDialect");
|
|
|
101359
101424
|
// node_modules/@modelcontextprotocol/core/dist/internal.mjs
|
|
101360
101425
|
init_esbuild_shims();
|
|
101361
101426
|
|
|
101362
|
-
// node_modules/@modelcontextprotocol/core/dist/auth-
|
|
101427
|
+
// node_modules/@modelcontextprotocol/core/dist/auth-BNDyLTqp.mjs
|
|
101363
101428
|
init_esbuild_shims();
|
|
101364
101429
|
|
|
101365
101430
|
// node_modules/@modelcontextprotocol/core/node_modules/zod/v4/classic/external.js
|
|
@@ -107042,7 +107107,7 @@ __name(date7, "date");
|
|
|
107042
107107
|
// node_modules/@modelcontextprotocol/core/node_modules/zod/v4/classic/external.js
|
|
107043
107108
|
config2(en_default3());
|
|
107044
107109
|
|
|
107045
|
-
// node_modules/@modelcontextprotocol/core/dist/auth-
|
|
107110
|
+
// node_modules/@modelcontextprotocol/core/dist/auth-BNDyLTqp.mjs
|
|
107046
107111
|
var LATEST_PROTOCOL_VERSION2 = "2025-11-25";
|
|
107047
107112
|
var SUPPORTED_PROTOCOL_VERSIONS2 = [
|
|
107048
107113
|
LATEST_PROTOCOL_VERSION2,
|
|
@@ -107879,7 +107944,8 @@ var OAuthMetadataSchema2 = looseObject2({
|
|
|
107879
107944
|
introspection_endpoint_auth_signing_alg_values_supported: array2(string5()).optional(),
|
|
107880
107945
|
code_challenge_methods_supported: array2(string5()).optional(),
|
|
107881
107946
|
client_id_metadata_document_supported: boolean5().optional(),
|
|
107882
|
-
authorization_response_iss_parameter_supported: boolean5().optional().catch(void 0)
|
|
107947
|
+
authorization_response_iss_parameter_supported: boolean5().optional().catch(void 0),
|
|
107948
|
+
dpop_signing_alg_values_supported: array2(string5()).optional()
|
|
107883
107949
|
});
|
|
107884
107950
|
var OpenIdProviderMetadataSchema2 = looseObject2({
|
|
107885
107951
|
issuer: string5(),
|
|
@@ -107930,7 +107996,8 @@ var OAuthTokensSchema2 = object3({
|
|
|
107930
107996
|
token_type: string5(),
|
|
107931
107997
|
expires_in: coerce_exports2.number().optional(),
|
|
107932
107998
|
scope: string5().optional(),
|
|
107933
|
-
refresh_token: string5().optional()
|
|
107999
|
+
refresh_token: string5().optional(),
|
|
108000
|
+
issuer: string5().optional().catch(void 0)
|
|
107934
108001
|
}).strip();
|
|
107935
108002
|
var IdJagTokenExchangeResponseSchema = object3({
|
|
107936
108003
|
issued_token_type: literal3("urn:ietf:params:oauth:token-type:id-jag"),
|
|
@@ -107968,7 +108035,8 @@ var OAuthClientInformationSchema2 = object3({
|
|
|
107968
108035
|
client_id: string5(),
|
|
107969
108036
|
client_secret: string5().optional(),
|
|
107970
108037
|
client_id_issued_at: number5().optional(),
|
|
107971
|
-
client_secret_expires_at: number5().optional()
|
|
108038
|
+
client_secret_expires_at: number5().optional(),
|
|
108039
|
+
issuer: string5().optional().catch(void 0)
|
|
107972
108040
|
}).strip();
|
|
107973
108041
|
var OAuthClientInformationFullSchema2 = OAuthClientMetadataSchema2.merge(OAuthClientInformationSchema2);
|
|
107974
108042
|
var OAuthClientRegistrationErrorSchema2 = object3({
|
|
@@ -113662,7 +113730,7 @@ __name(preprocess3, "preprocess");
|
|
|
113662
113730
|
// node_modules/@modelcontextprotocol/client/node_modules/zod/v4/classic/external.js
|
|
113663
113731
|
config3(en_default4());
|
|
113664
113732
|
|
|
113665
|
-
// node_modules/@modelcontextprotocol/client/dist/src-
|
|
113733
|
+
// node_modules/@modelcontextprotocol/client/dist/src-xKF0PJN-.mjs
|
|
113666
113734
|
var BRANDS = Symbol.for("mcp.sdk.errorBrands");
|
|
113667
113735
|
function stampErrorBrands(instance, ctor) {
|
|
113668
113736
|
const brands = /* @__PURE__ */ new Set();
|
|
@@ -113710,6 +113778,8 @@ var OAuthErrorCode = /* @__PURE__ */ (function(OAuthErrorCode$1) {
|
|
|
113710
113778
|
OAuthErrorCode$1["InvalidRedirectUri"] = "invalid_redirect_uri";
|
|
113711
113779
|
OAuthErrorCode$1["InsufficientScope"] = "insufficient_scope";
|
|
113712
113780
|
OAuthErrorCode$1["InvalidTarget"] = "invalid_target";
|
|
113781
|
+
OAuthErrorCode$1["InvalidDpopProof"] = "invalid_dpop_proof";
|
|
113782
|
+
OAuthErrorCode$1["UseDpopNonce"] = "use_dpop_nonce";
|
|
113713
113783
|
return OAuthErrorCode$1;
|
|
113714
113784
|
})({});
|
|
113715
113785
|
var OAuthError2 = class OAuthError3 extends Error {
|
|
@@ -113805,8 +113875,18 @@ var SdkError = class extends Error {
|
|
|
113805
113875
|
if (typeof this !== "function") throw new TypeError("isInstance must be called on the class (e.g. `SdkError.isInstance(value)`); for callbacks use `v => SdkError.isInstance(v)`");
|
|
113806
113876
|
return brandedHasInstance(this, value);
|
|
113807
113877
|
}
|
|
113808
|
-
|
|
113809
|
-
|
|
113878
|
+
/**
|
|
113879
|
+
* @param code - Stable string code identifying the failure ({@linkcode SdkErrorCode}).
|
|
113880
|
+
* @param message - Human-readable description.
|
|
113881
|
+
* @param data - Optional structured payload (for example the HTTP status carried by
|
|
113882
|
+
* {@linkcode SdkHttpError}). Opaque to the SDK: a `cause` key inside `data` is not
|
|
113883
|
+
* promoted to `Error.cause`.
|
|
113884
|
+
* @param options - Standard `ErrorOptions`, forwarded to `Error`. Pass the underlying
|
|
113885
|
+
* failure as `{ cause }` so it is reachable through the `Error.cause` chain that
|
|
113886
|
+
* loggers and error trackers walk.
|
|
113887
|
+
*/
|
|
113888
|
+
constructor(code, message, data, options2) {
|
|
113889
|
+
super(message, options2);
|
|
113810
113890
|
this.code = code;
|
|
113811
113891
|
this.data = data;
|
|
113812
113892
|
this.name = "SdkError";
|
|
@@ -113820,8 +113900,11 @@ var SdkHttpError = class extends SdkError {
|
|
|
113820
113900
|
static {
|
|
113821
113901
|
Object.defineProperty(this, "mcpBrand", { value: "mcp.SdkHttpError" });
|
|
113822
113902
|
}
|
|
113823
|
-
|
|
113824
|
-
|
|
113903
|
+
/**
|
|
113904
|
+
* @param options - Standard `ErrorOptions`, forwarded to `Error` (see {@linkcode SdkError}).
|
|
113905
|
+
*/
|
|
113906
|
+
constructor(code, message, data, options2) {
|
|
113907
|
+
super(code, message, data, options2);
|
|
113825
113908
|
this.name = "SdkHttpError";
|
|
113826
113909
|
}
|
|
113827
113910
|
get status() {
|
|
@@ -113837,6 +113920,13 @@ function resourceUrlFromServerUrl2(url4) {
|
|
|
113837
113920
|
return resourceURL;
|
|
113838
113921
|
}
|
|
113839
113922
|
__name(resourceUrlFromServerUrl2, "resourceUrlFromServerUrl");
|
|
113923
|
+
function withoutIssuer(body) {
|
|
113924
|
+
if (typeof body !== "object" || body === null || Array.isArray(body)) return body;
|
|
113925
|
+
const copy = { ...body };
|
|
113926
|
+
delete copy.issuer;
|
|
113927
|
+
return copy;
|
|
113928
|
+
}
|
|
113929
|
+
__name(withoutIssuer, "withoutIssuer");
|
|
113840
113930
|
function checkResourceAllowed2({ requestedResource, configuredResource }) {
|
|
113841
113931
|
const requested = typeof requestedResource === "string" ? new URL(requestedResource) : new URL(requestedResource.href);
|
|
113842
113932
|
const configured = typeof configuredResource === "string" ? new URL(configuredResource) : new URL(configuredResource.href);
|
|
@@ -114964,10 +115054,10 @@ function getNotificationSchema(method) {
|
|
|
114964
115054
|
__name(getNotificationSchema, "getNotificationSchema");
|
|
114965
115055
|
var rev2025RequestMethods = Object.keys(requestMethodKeys$1);
|
|
114966
115056
|
var rev2025NotificationMethods = Object.keys(notificationMethodKeys$1);
|
|
114967
|
-
function isPlainObject$
|
|
115057
|
+
function isPlainObject$5(value) {
|
|
114968
115058
|
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
114969
115059
|
}
|
|
114970
|
-
__name(isPlainObject$
|
|
115060
|
+
__name(isPlainObject$5, "isPlainObject$5");
|
|
114971
115061
|
function triState$1(schema, raw) {
|
|
114972
115062
|
if (schema === void 0) return {
|
|
114973
115063
|
ok: false,
|
|
@@ -114989,7 +115079,7 @@ var NOT_IN_ERA$1 = {
|
|
|
114989
115079
|
reason: "not-in-era"
|
|
114990
115080
|
};
|
|
114991
115081
|
function toolNeedsLegacyWrap(t) {
|
|
114992
|
-
return isPlainObject$
|
|
115082
|
+
return isPlainObject$5(t) && isPlainObject$5(t["outputSchema"]) && isNonObjectJsonSchemaRoot(t["outputSchema"]);
|
|
114993
115083
|
}
|
|
114994
115084
|
__name(toolNeedsLegacyWrap, "toolNeedsLegacyWrap");
|
|
114995
115085
|
function toNeutralResult(value) {
|
|
@@ -115025,7 +115115,7 @@ var rev2025Codec = {
|
|
|
115025
115115
|
};
|
|
115026
115116
|
},
|
|
115027
115117
|
decodeResult(_method, raw) {
|
|
115028
|
-
if (isPlainObject$
|
|
115118
|
+
if (isPlainObject$5(raw) && "resultType" in raw) {
|
|
115029
115119
|
const stripped = { ...raw };
|
|
115030
115120
|
delete stripped["resultType"];
|
|
115031
115121
|
return {
|
|
@@ -116131,10 +116221,10 @@ function fillCacheFields(method, result) {
|
|
|
116131
116221
|
return filled;
|
|
116132
116222
|
}
|
|
116133
116223
|
__name(fillCacheFields, "fillCacheFields");
|
|
116134
|
-
function isPlainObject$
|
|
116224
|
+
function isPlainObject$4(value) {
|
|
116135
116225
|
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
116136
116226
|
}
|
|
116137
|
-
__name(isPlainObject$
|
|
116227
|
+
__name(isPlainObject$4, "isPlainObject$4");
|
|
116138
116228
|
function stampServerInfoMeta(result, serverInfo) {
|
|
116139
116229
|
if (serverInfo === void 0) return result;
|
|
116140
116230
|
const meta4 = result["_meta"];
|
|
@@ -116142,7 +116232,7 @@ function stampServerInfoMeta(result, serverInfo) {
|
|
|
116142
116232
|
...result,
|
|
116143
116233
|
_meta: { [SERVER_INFO_META_KEY]: serverInfo }
|
|
116144
116234
|
};
|
|
116145
|
-
if (!isPlainObject$
|
|
116235
|
+
if (!isPlainObject$4(meta4)) return result;
|
|
116146
116236
|
if (meta4[SERVER_INFO_META_KEY] !== void 0) return result;
|
|
116147
116237
|
return {
|
|
116148
116238
|
...result,
|
|
@@ -116260,10 +116350,10 @@ function getNotificationSchema2026(method) {
|
|
|
116260
116350
|
__name(getNotificationSchema2026, "getNotificationSchema2026");
|
|
116261
116351
|
var rev2026RequestMethods = Object.keys(requestMethodKeys);
|
|
116262
116352
|
var rev2026NotificationMethods = Object.keys(notificationMethodKeys);
|
|
116263
|
-
function isPlainObject$
|
|
116353
|
+
function isPlainObject$3(value) {
|
|
116264
116354
|
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
116265
116355
|
}
|
|
116266
|
-
__name(isPlainObject$
|
|
116356
|
+
__name(isPlainObject$3, "isPlainObject$3");
|
|
116267
116357
|
function triState(schema, raw) {
|
|
116268
116358
|
if (schema === void 0) return {
|
|
116269
116359
|
ok: false,
|
|
@@ -116296,14 +116386,14 @@ function enforceDeletedFields(method, result) {
|
|
|
116296
116386
|
return next;
|
|
116297
116387
|
}, "copy");
|
|
116298
116388
|
const tools = result.tools;
|
|
116299
|
-
if (method === "tools/list" && Array.isArray(tools) && tools.some((tool) => isPlainObject$
|
|
116300
|
-
if (!isPlainObject$
|
|
116389
|
+
if (method === "tools/list" && Array.isArray(tools) && tools.some((tool) => isPlainObject$3(tool) && "execution" in tool)) copy().tools = tools.map((tool) => {
|
|
116390
|
+
if (!isPlainObject$3(tool) || !("execution" in tool)) return tool;
|
|
116301
116391
|
const rest = { ...tool };
|
|
116302
116392
|
delete rest["execution"];
|
|
116303
116393
|
return rest;
|
|
116304
116394
|
});
|
|
116305
116395
|
const capabilities = result.capabilities;
|
|
116306
|
-
if (isPlainObject$
|
|
116396
|
+
if (isPlainObject$3(capabilities) && "tasks" in capabilities) {
|
|
116307
116397
|
const rest = { ...capabilities };
|
|
116308
116398
|
delete rest["tasks"];
|
|
116309
116399
|
copy().capabilities = rest;
|
|
@@ -116351,7 +116441,7 @@ var rev2026Codec = {
|
|
|
116351
116441
|
projectCallToolResult: /* @__PURE__ */ __name((result) => appendTextFallbackForNonObject(result), "projectCallToolResult"),
|
|
116352
116442
|
inputRequestSchema: getInputRequestSchema2026,
|
|
116353
116443
|
decodeResult(method, raw) {
|
|
116354
|
-
if (!isPlainObject$
|
|
116444
|
+
if (!isPlainObject$3(raw)) return {
|
|
116355
116445
|
kind: "invalid",
|
|
116356
116446
|
error: new SdkError(SdkErrorCode.InvalidResult, `Invalid result for ${method}: not an object`, { method })
|
|
116357
116447
|
};
|
|
@@ -116372,8 +116462,10 @@ var rev2026Codec = {
|
|
|
116372
116462
|
};
|
|
116373
116463
|
if (rawResultType === "input_required") {
|
|
116374
116464
|
const rawInputRequests = raw["inputRequests"];
|
|
116375
|
-
const inputRequests = isPlainObject$
|
|
116465
|
+
const inputRequests = isPlainObject$3(rawInputRequests) ? rawInputRequests : {};
|
|
116376
116466
|
const requestState = raw["requestState"];
|
|
116467
|
+
const metaParse = raw["_meta"] === void 0 ? void 0 : buildSchemas2026().ResultMetaSchema.safeParse(raw["_meta"]);
|
|
116468
|
+
const meta4 = metaParse?.success ? metaParse.data : void 0;
|
|
116377
116469
|
if (Object.keys(inputRequests).length === 0 && typeof requestState !== "string") return {
|
|
116378
116470
|
kind: "invalid",
|
|
116379
116471
|
error: new SdkError(SdkErrorCode.InvalidResult, `Invalid result for ${method}: input_required carries neither inputRequests nor requestState (every input_required result must include at least one of the two)`, {
|
|
@@ -116384,7 +116476,8 @@ var rev2026Codec = {
|
|
|
116384
116476
|
return {
|
|
116385
116477
|
kind: "input_required",
|
|
116386
116478
|
inputRequests,
|
|
116387
|
-
...typeof requestState === "string" && { requestState }
|
|
116479
|
+
...typeof requestState === "string" && { requestState },
|
|
116480
|
+
...meta4 !== void 0 && { _meta: meta4 }
|
|
116388
116481
|
};
|
|
116389
116482
|
}
|
|
116390
116483
|
if (rawResultType !== "complete") return {
|
|
@@ -116835,7 +116928,7 @@ var INBOUND_VALIDATION_LADDER = [
|
|
|
116835
116928
|
evaluatedAt: "pre-dispatch",
|
|
116836
116929
|
codes: [HEADER_MISMATCH_ERROR_CODE],
|
|
116837
116930
|
conformance: ["http-header-validation"],
|
|
116838
|
-
rationale: "SEP-2243 standard `Mcp-Method` / `Mcp-Name` headers \u2014 presence, sentinel decoding, and `Mcp-Name` \u2194 body cross-check \u2014 are validated by the HTTP entry on a modern-classified request after the supported-revision gate and before dispatch. The classifier\u2019s own header-mismatch cells (protocol-version, `Mcp-Method` mismatch) stay on the edge `era-classification` rung; this rung carries the entry-layer presence/`Mcp-Name` half. Evaluated before the capability gate, the factory call, and the `Mcp-Param-*` rung so a request that fails several rungs is answered by the standard-header rung first. The documented order (after method-registry 5 and request-params 6) is NOT the observed precedence: serveModern evaluates this rung immediately after the supported-revision gate, so a request that also fails a dispatch rung is answered here before the dispatch rungs (5\u20136) are consulted."
|
|
116931
|
+
rationale: "SEP-2243 standard `MCP-Protocol-Version` / `Mcp-Method` / `Mcp-Name` headers \u2014 presence, sentinel decoding, and `Mcp-Name` \u2194 body cross-check \u2014 are validated by the HTTP entry on a modern-classified request after the supported-revision gate and before dispatch. The spec requires `MCP-Protocol-Version` and `Mcp-Method` on every modern *request* POST (`Mcp-Name` only for the methods that mirror `params.name` / `params.uri` / `params.taskId`, see `MCP_NAME_HEADER_SOURCE`) and names them in that order, so a request missing several is answered by the earliest. Notification POSTs are exempt: the presence half runs on requests only, so a modern-enveloped notification is dispatched even with no standard headers at all. The classifier\u2019s own header-mismatch cells (protocol-version, `Mcp-Method` mismatch) stay on the edge `era-classification` rung; this rung carries the entry-layer presence/`Mcp-Name` half \u2014 including the missing `MCP-Protocol-Version` cell, which cannot live on the edge rung without breaking body-primary classification. Evaluated before the capability gate, the factory call, and the `Mcp-Param-*` rung so a request that fails several rungs is answered by the standard-header rung first. The documented order (after method-registry 5 and request-params 6) is NOT the observed precedence: serveModern evaluates this rung immediately after the supported-revision gate, so a request that also fails a dispatch rung is answered here before the dispatch rungs (5\u20136) are consulted."
|
|
116839
116932
|
},
|
|
116840
116933
|
{
|
|
116841
116934
|
rung: "client-capabilities",
|
|
@@ -116862,6 +116955,28 @@ var LADDER_ERROR_HTTP_STATUS = {
|
|
|
116862
116955
|
[ProtocolErrorCode.MissingRequiredClientCapability]: 400,
|
|
116863
116956
|
[HEADER_MISMATCH_ERROR_CODE]: 400
|
|
116864
116957
|
};
|
|
116958
|
+
var MCP_NAME_HEADER_SOURCE = {
|
|
116959
|
+
"tools/call": "name",
|
|
116960
|
+
"prompts/get": "name",
|
|
116961
|
+
"resources/read": "uri",
|
|
116962
|
+
"tasks/get": "taskId",
|
|
116963
|
+
"tasks/update": "taskId",
|
|
116964
|
+
"tasks/cancel": "taskId"
|
|
116965
|
+
};
|
|
116966
|
+
function mcpNameSource(method, params) {
|
|
116967
|
+
const field = Object.hasOwn(MCP_NAME_HEADER_SOURCE, method) ? MCP_NAME_HEADER_SOURCE[method] : void 0;
|
|
116968
|
+
if (field === void 0) return;
|
|
116969
|
+
const raw = isPlainObject$2(params) ? params[field] : void 0;
|
|
116970
|
+
return {
|
|
116971
|
+
field,
|
|
116972
|
+
value: typeof raw === "string" ? raw : void 0
|
|
116973
|
+
};
|
|
116974
|
+
}
|
|
116975
|
+
__name(mcpNameSource, "mcpNameSource");
|
|
116976
|
+
function isPlainObject$2(value) {
|
|
116977
|
+
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
116978
|
+
}
|
|
116979
|
+
__name(isPlainObject$2, "isPlainObject$2");
|
|
116865
116980
|
function parseSchema(schema, data) {
|
|
116866
116981
|
return safeParse7(schema, data);
|
|
116867
116982
|
}
|
|
@@ -117652,7 +117767,7 @@ var Protocol2 = class {
|
|
|
117652
117767
|
return this._requestHandlers.get(method);
|
|
117653
117768
|
}
|
|
117654
117769
|
async _oncancel(notification) {
|
|
117655
|
-
if (
|
|
117770
|
+
if (notification.params.requestId === void 0) return;
|
|
117656
117771
|
this._requestHandlerAbortControllers.get(notification.params.requestId)?.abort(notification.params.reason);
|
|
117657
117772
|
}
|
|
117658
117773
|
_setupTimeout(messageId, timeout, maxTotalTimeout, onTimeout, resetTimeoutOnProgress = false) {
|
|
@@ -118051,19 +118166,20 @@ var Protocol2 = class {
|
|
|
118051
118166
|
const cancel = /* @__PURE__ */ __name((reason) => {
|
|
118052
118167
|
if (responseReceived) return;
|
|
118053
118168
|
this._progressHandlers.delete(messageId);
|
|
118054
|
-
if (requestAbort === void 0)
|
|
118055
|
-
|
|
118056
|
-
|
|
118057
|
-
|
|
118058
|
-
|
|
118059
|
-
|
|
118060
|
-
|
|
118061
|
-
|
|
118062
|
-
|
|
118063
|
-
|
|
118064
|
-
|
|
118065
|
-
|
|
118066
|
-
|
|
118169
|
+
if (requestAbort === void 0) {
|
|
118170
|
+
if (request.method !== "initialize") this._transport?.send(this._envelopeOutbound({
|
|
118171
|
+
jsonrpc: "2.0",
|
|
118172
|
+
method: "notifications/cancelled",
|
|
118173
|
+
params: {
|
|
118174
|
+
requestId: messageId,
|
|
118175
|
+
reason: String(reason)
|
|
118176
|
+
}
|
|
118177
|
+
}), {
|
|
118178
|
+
relatedRequestId,
|
|
118179
|
+
resumptionToken,
|
|
118180
|
+
onresumptiontoken
|
|
118181
|
+
}).catch((error42) => this._onerror(/* @__PURE__ */ new Error(`Failed to send cancellation: ${error42}`)));
|
|
118182
|
+
} else requestAbort.abort();
|
|
118067
118183
|
reject(reason instanceof SdkError ? reason : new SdkError(SdkErrorCode.RequestTimeout, String(reason)));
|
|
118068
118184
|
}, "cancel");
|
|
118069
118185
|
this._responseHandlers.set(messageId, (response) => {
|
|
@@ -118125,7 +118241,7 @@ var Protocol2 = class {
|
|
|
118125
118241
|
* Emits a notification, which is a one-way message that does not expect a response.
|
|
118126
118242
|
*/
|
|
118127
118243
|
async notification(notification, options2) {
|
|
118128
|
-
return this._notificationViaCodec(this._resolveOutboundCodec(notification.method), notification, options2);
|
|
118244
|
+
return await this._notificationViaCodec(this._resolveOutboundCodec(notification.method), notification, options2);
|
|
118129
118245
|
}
|
|
118130
118246
|
/**
|
|
118131
118247
|
* The notification funnel proper, keyed by the resolved era codec —
|
|
@@ -118143,7 +118259,7 @@ var Protocol2 = class {
|
|
|
118143
118259
|
jsonrpc: "2.0",
|
|
118144
118260
|
...notification
|
|
118145
118261
|
});
|
|
118146
|
-
if ((this._options?.debouncedNotificationMethods ?? []).includes(notification.method) && !notification.params &&
|
|
118262
|
+
if ((this._options?.debouncedNotificationMethods ?? []).includes(notification.method) && !notification.params && options2?.relatedRequestId === void 0) {
|
|
118147
118263
|
if (this._pendingDebouncedNotifications.has(notification.method)) return;
|
|
118148
118264
|
this._pendingDebouncedNotifications.add(notification.method);
|
|
118149
118265
|
Promise.resolve().then(() => {
|
|
@@ -118364,7 +118480,8 @@ function manualInputRequiredValue(decoded) {
|
|
|
118364
118480
|
return {
|
|
118365
118481
|
resultType: "input_required",
|
|
118366
118482
|
inputRequests: decoded.inputRequests,
|
|
118367
|
-
...decoded.requestState !== void 0 && { requestState: decoded.requestState }
|
|
118483
|
+
...decoded.requestState !== void 0 && { requestState: decoded.requestState },
|
|
118484
|
+
...decoded._meta !== void 0 && { _meta: decoded._meta }
|
|
118368
118485
|
};
|
|
118369
118486
|
}
|
|
118370
118487
|
__name(manualInputRequiredValue, "manualInputRequiredValue");
|
|
@@ -126316,7 +126433,7 @@ var InsecureTokenEndpointError = class extends OAuthClientFlowError {
|
|
|
126316
126433
|
/** The token endpoint URL that was rejected. */
|
|
126317
126434
|
tokenEndpoint;
|
|
126318
126435
|
constructor(tokenEndpoint) {
|
|
126319
|
-
super(`Refusing to send credentials to non-https token endpoint '${tokenEndpoint}'. OAuth token requests MUST use TLS (localhost / 127.0.0.1 / ::1 are exempt).`);
|
|
126436
|
+
super(`Refusing to send credentials to non-https token endpoint '${tokenEndpoint}'. OAuth token requests MUST use TLS (localhost / *.localhost / 127.0.0.1 / ::1 are exempt).`);
|
|
126320
126437
|
this.tokenEndpoint = tokenEndpoint;
|
|
126321
126438
|
}
|
|
126322
126439
|
};
|
|
@@ -126328,7 +126445,7 @@ var AuthorizationServerMismatchError = class extends OAuthClientFlowError {
|
|
|
126328
126445
|
Object.defineProperty(this, "mcpBrand", { value: "mcp.AuthorizationServerMismatchError" });
|
|
126329
126446
|
}
|
|
126330
126447
|
constructor(recordedIssuer, currentIssuer) {
|
|
126331
|
-
super(`Authorization server
|
|
126448
|
+
super(`Authorization server mismatch: credentials are bound to ${JSON.stringify(recordedIssuer)} but this call resolved ${JSON.stringify(currentIssuer)}; refusing to present them to a different authorization server`);
|
|
126332
126449
|
this.recordedIssuer = recordedIssuer;
|
|
126333
126450
|
this.currentIssuer = currentIssuer;
|
|
126334
126451
|
}
|
|
@@ -126353,19 +126470,22 @@ var InsufficientScopeError2 = class extends OAuthClientFlowError {
|
|
|
126353
126470
|
this.errorDescription = init.errorDescription;
|
|
126354
126471
|
}
|
|
126355
126472
|
};
|
|
126356
|
-
function
|
|
126357
|
-
if (stored
|
|
126358
|
-
if (stored.issuer
|
|
126473
|
+
function discardIfIssuerMismatch2(stored, issuer, opts) {
|
|
126474
|
+
if (!stored) return void 0;
|
|
126475
|
+
if (typeof stored.issuer !== "string") {
|
|
126359
126476
|
if (opts?.canPersistStamp !== false) console.warn("[mcp-sdk] SEP-2352: stored OAuth credential has no 'issuer' stamp (pre-upgrade storage or provider not round-tripping the value). SEP-2352 isolation is inactive for this read; ensure your provider round-trips the issuer field.");
|
|
126360
|
-
return stored
|
|
126477
|
+
return stored.issuer === void 0 ? stored : {
|
|
126478
|
+
...stored,
|
|
126479
|
+
issuer: void 0
|
|
126480
|
+
};
|
|
126361
126481
|
}
|
|
126362
|
-
return
|
|
126482
|
+
return issuersMatch2(stored.issuer, issuer) ? stored : void 0;
|
|
126363
126483
|
}
|
|
126364
|
-
__name(
|
|
126365
|
-
function
|
|
126484
|
+
__name(discardIfIssuerMismatch2, "discardIfIssuerMismatch");
|
|
126485
|
+
function issuersMatch2(a, b2) {
|
|
126366
126486
|
return a === b2 || a.endsWith("/") && a.slice(0, -1) === b2 || b2.endsWith("/") && b2.slice(0, -1) === a;
|
|
126367
126487
|
}
|
|
126368
|
-
__name(
|
|
126488
|
+
__name(issuersMatch2, "issuersMatch");
|
|
126369
126489
|
function isOAuthClientProvider(provider) {
|
|
126370
126490
|
if (provider == null) return false;
|
|
126371
126491
|
const p2 = provider;
|
|
@@ -126531,7 +126651,7 @@ function applyPublicAuth2(clientId, params) {
|
|
|
126531
126651
|
}
|
|
126532
126652
|
__name(applyPublicAuth2, "applyPublicAuth");
|
|
126533
126653
|
function isLoopbackHost2(hostname4) {
|
|
126534
|
-
return hostname4 === "localhost" || hostname4 === "127.0.0.1" || hostname4 === "[::1]" || hostname4 === "::1";
|
|
126654
|
+
return hostname4 === "localhost" || hostname4.endsWith(".localhost") || hostname4 === "127.0.0.1" || hostname4 === "[::1]" || hostname4 === "::1";
|
|
126535
126655
|
}
|
|
126536
126656
|
__name(isLoopbackHost2, "isLoopbackHost");
|
|
126537
126657
|
function assertSecureTokenEndpoint(tokenEndpoint) {
|
|
@@ -126575,16 +126695,23 @@ async function parseErrorResponse2(input) {
|
|
|
126575
126695
|
}
|
|
126576
126696
|
}
|
|
126577
126697
|
__name(parseErrorResponse2, "parseErrorResponse");
|
|
126698
|
+
function warnCredentialInvalidation(provider, error42, invalidated) {
|
|
126699
|
+
const action = provider.invalidateCredentials === void 0 ? `retrying authorization without discarding the stored ${invalidated} (provider implements no invalidateCredentials())` : `invalidating the stored ${invalidated} and retrying authorization`;
|
|
126700
|
+
console.warn(`[mcp-sdk] OAuth ${JSON.stringify(error42.code)} \u2014 ${action}. Cause: ${JSON.stringify(error42.message)}`);
|
|
126701
|
+
}
|
|
126702
|
+
__name(warnCredentialInvalidation, "warnCredentialInvalidation");
|
|
126578
126703
|
async function auth2(provider, options2) {
|
|
126579
126704
|
try {
|
|
126580
126705
|
return await authInternal2(provider, options2);
|
|
126581
126706
|
} catch (error42) {
|
|
126582
126707
|
if (error42 instanceof OAuthError2) {
|
|
126583
126708
|
if (error42.code === OAuthErrorCode.InvalidClient || error42.code === OAuthErrorCode.UnauthorizedClient) {
|
|
126709
|
+
warnCredentialInvalidation(provider, error42, "client credentials and tokens");
|
|
126584
126710
|
await provider.invalidateCredentials?.("client");
|
|
126585
126711
|
await provider.invalidateCredentials?.("tokens");
|
|
126586
126712
|
return await authInternal2(provider, options2);
|
|
126587
|
-
} else if (error42.code === OAuthErrorCode.InvalidGrant) {
|
|
126713
|
+
} else if (error42.code === OAuthErrorCode.InvalidGrant || error42.code === OAuthErrorCode.InvalidDpopProof) {
|
|
126714
|
+
warnCredentialInvalidation(provider, error42, "tokens");
|
|
126588
126715
|
await provider.invalidateCredentials?.("tokens");
|
|
126589
126716
|
return await authInternal2(provider, options2);
|
|
126590
126717
|
}
|
|
@@ -126651,11 +126778,12 @@ async function authInternal2(provider, { serverUrl, authorizationCode, iss, scop
|
|
|
126651
126778
|
if (recordedIssuer === void 0) {
|
|
126652
126779
|
if (provider.saveDiscoveryState !== void 0) throw new AuthorizationServerMismatchError("discoveryState was not available on the callback leg; ensure your provider persists discoveryState alongside codeVerifier", issuer);
|
|
126653
126780
|
console.warn("[mcp-sdk] OAuthClientProvider does not implement saveDiscoveryState()/discoveryState(); the SEP-2352 callback-leg authorization-server binding cannot be checked. Implement discoveryState (persist alongside codeVerifier) \u2014 see docs/migration/upgrade-to-v2.md \xA7SEP-2352.");
|
|
126654
|
-
} else if (!
|
|
126781
|
+
} else if (!issuersMatch2(recordedIssuer, issuer)) throw new AuthorizationServerMismatchError(recordedIssuer, issuer);
|
|
126655
126782
|
}
|
|
126656
126783
|
if (freshDiscoveryState) await provider.saveDiscoveryState?.(freshDiscoveryState);
|
|
126657
|
-
const
|
|
126658
|
-
|
|
126784
|
+
const selectedResource = await selectResourceURL2(serverUrl, provider, resourceMetadata);
|
|
126785
|
+
const resource = selectedResource && resourceMetadata && !provider.validateResourceURL ? resourceMetadata.resource : selectedResource;
|
|
126786
|
+
if (resource) await provider.saveResourceUrl?.(resourceIndicatorToString2(resource));
|
|
126659
126787
|
const resolvedScope = determineScope({
|
|
126660
126788
|
requestedScope: scope,
|
|
126661
126789
|
resourceMetadata,
|
|
@@ -126663,7 +126791,7 @@ async function authInternal2(provider, { serverUrl, authorizationCode, iss, scop
|
|
|
126663
126791
|
clientMetadata: provider.clientMetadata
|
|
126664
126792
|
});
|
|
126665
126793
|
const rawClientInfo = await Promise.resolve(provider.clientInformation(infoCtx));
|
|
126666
|
-
let clientInformation =
|
|
126794
|
+
let clientInformation = discardIfIssuerMismatch2(rawClientInfo, issuer, { canPersistStamp: provider.saveClientInformation !== void 0 });
|
|
126667
126795
|
if (clientInformation === void 0 && rawClientInfo?.issuer && provider.saveClientInformation === void 0) throw new AuthorizationServerMismatchError(rawClientInfo.issuer, issuer);
|
|
126668
126796
|
if (clientInformation && clientInformation.issuer === void 0) {
|
|
126669
126797
|
clientInformation = {
|
|
@@ -126718,7 +126846,7 @@ async function authInternal2(provider, { serverUrl, authorizationCode, iss, scop
|
|
|
126718
126846
|
}, infoCtx);
|
|
126719
126847
|
return "AUTHORIZED";
|
|
126720
126848
|
}
|
|
126721
|
-
let tokens =
|
|
126849
|
+
let tokens = discardIfIssuerMismatch2(await provider.tokens(infoCtx), issuer);
|
|
126722
126850
|
if (tokens && tokens.issuer === void 0) {
|
|
126723
126851
|
tokens = {
|
|
126724
126852
|
...tokens,
|
|
@@ -126726,24 +126854,30 @@ async function authInternal2(provider, { serverUrl, authorizationCode, iss, scop
|
|
|
126726
126854
|
};
|
|
126727
126855
|
await provider.saveTokens(tokens, infoCtx);
|
|
126728
126856
|
}
|
|
126729
|
-
if (tokens?.refresh_token && !forceReauthorization)
|
|
126730
|
-
|
|
126731
|
-
|
|
126732
|
-
|
|
126733
|
-
|
|
126734
|
-
|
|
126735
|
-
|
|
126736
|
-
|
|
126737
|
-
|
|
126738
|
-
|
|
126739
|
-
|
|
126740
|
-
|
|
126741
|
-
}
|
|
126742
|
-
|
|
126743
|
-
|
|
126744
|
-
|
|
126745
|
-
|
|
126746
|
-
|
|
126857
|
+
if (tokens?.refresh_token && !forceReauthorization) {
|
|
126858
|
+
let newTokens;
|
|
126859
|
+
try {
|
|
126860
|
+
newTokens = await refreshAuthorization2(authorizationServerUrl, {
|
|
126861
|
+
metadata,
|
|
126862
|
+
clientInformation,
|
|
126863
|
+
refreshToken: tokens.refresh_token,
|
|
126864
|
+
resource,
|
|
126865
|
+
addClientAuthentication: provider.addClientAuthentication,
|
|
126866
|
+
dpop: await provider.dpop?.(),
|
|
126867
|
+
fetchFn
|
|
126868
|
+
});
|
|
126869
|
+
} catch (error42) {
|
|
126870
|
+
if (error42 instanceof InsecureTokenEndpointError) throw error42;
|
|
126871
|
+
if (!(error42 instanceof OAuthError2) || error42.code === OAuthErrorCode.ServerError) console.warn(`[mcp-sdk] Could not refresh OAuth tokens; falling back to a new authorization request. Cause: ${JSON.stringify(error42 instanceof Error ? error42.message : String(error42))}`);
|
|
126872
|
+
else throw error42;
|
|
126873
|
+
}
|
|
126874
|
+
if (newTokens) {
|
|
126875
|
+
await provider.saveTokens({
|
|
126876
|
+
...newTokens,
|
|
126877
|
+
issuer
|
|
126878
|
+
}, infoCtx);
|
|
126879
|
+
return "AUTHORIZED";
|
|
126880
|
+
}
|
|
126747
126881
|
}
|
|
126748
126882
|
const state = provider.state ? await provider.state() : void 0;
|
|
126749
126883
|
const { authorizationUrl, codeVerifier } = await startAuthorization2(authorizationServerUrl, {
|
|
@@ -126780,11 +126914,12 @@ async function selectResourceURL2(serverUrl, provider, resourceMetadata) {
|
|
|
126780
126914
|
return new URL(resourceMetadata.resource);
|
|
126781
126915
|
}
|
|
126782
126916
|
__name(selectResourceURL2, "selectResourceURL");
|
|
126917
|
+
var RECOGNIZED_CHALLENGE_SCHEMES = /* @__PURE__ */ new Set(["bearer", "dpop"]);
|
|
126783
126918
|
function extractWWWAuthenticateParams2(res) {
|
|
126784
126919
|
const authenticateHeader = res.headers.get("WWW-Authenticate");
|
|
126785
126920
|
if (!authenticateHeader) return {};
|
|
126786
126921
|
const [type, scheme] = authenticateHeader.split(" ");
|
|
126787
|
-
if (type
|
|
126922
|
+
if (!type || !RECOGNIZED_CHALLENGE_SCHEMES.has(type.toLowerCase()) || !scheme) return {};
|
|
126788
126923
|
const resourceMetadataMatch = extractFieldFromWwwAuth2(res, "resource_metadata") || void 0;
|
|
126789
126924
|
let resourceMetadataUrl;
|
|
126790
126925
|
if (resourceMetadataMatch) try {
|
|
@@ -126952,6 +127087,10 @@ async function discoverOAuthServerInfo2(serverUrl, opts) {
|
|
|
126952
127087
|
};
|
|
126953
127088
|
}
|
|
126954
127089
|
__name(discoverOAuthServerInfo2, "discoverOAuthServerInfo");
|
|
127090
|
+
function resourceIndicatorToString2(resource) {
|
|
127091
|
+
return typeof resource === "string" ? resource : resource.href;
|
|
127092
|
+
}
|
|
127093
|
+
__name(resourceIndicatorToString2, "resourceIndicatorToString");
|
|
126955
127094
|
async function startAuthorization2(authorizationServerUrl, { metadata, clientInformation, redirectUrl, scope, state, resource }) {
|
|
126956
127095
|
let authorizationUrl;
|
|
126957
127096
|
if (metadata) {
|
|
@@ -126970,7 +127109,7 @@ async function startAuthorization2(authorizationServerUrl, { metadata, clientInf
|
|
|
126970
127109
|
if (state) authorizationUrl.searchParams.set("state", state);
|
|
126971
127110
|
if (scope) authorizationUrl.searchParams.set("scope", scope);
|
|
126972
127111
|
if (scope?.split(" ").includes("offline_access")) authorizationUrl.searchParams.append("prompt", "consent");
|
|
126973
|
-
if (resource) authorizationUrl.searchParams.set("resource", resource
|
|
127112
|
+
if (resource) authorizationUrl.searchParams.set("resource", resourceIndicatorToString2(resource));
|
|
126974
127113
|
return {
|
|
126975
127114
|
authorizationUrl,
|
|
126976
127115
|
codeVerifier
|
|
@@ -126986,31 +127125,47 @@ function prepareAuthorizationCodeRequest2(authorizationCode, codeVerifier, redir
|
|
|
126986
127125
|
});
|
|
126987
127126
|
}
|
|
126988
127127
|
__name(prepareAuthorizationCodeRequest2, "prepareAuthorizationCodeRequest");
|
|
126989
|
-
async function executeTokenRequest2(authorizationServerUrl, { metadata, tokenRequestParams, clientInformation, addClientAuthentication, resource, fetchFn }) {
|
|
127128
|
+
async function executeTokenRequest2(authorizationServerUrl, { metadata, tokenRequestParams, clientInformation, addClientAuthentication, resource, dpop, fetchFn }) {
|
|
126990
127129
|
const tokenUrl = assertSecureTokenEndpoint(metadata?.token_endpoint ?? new URL("/token", authorizationServerUrl));
|
|
126991
127130
|
const headers = new Headers({
|
|
126992
127131
|
"Content-Type": "application/x-www-form-urlencoded",
|
|
126993
127132
|
Accept: "application/json"
|
|
126994
127133
|
});
|
|
126995
|
-
if (resource) tokenRequestParams.set("resource", resource
|
|
126996
|
-
if (addClientAuthentication)
|
|
126997
|
-
|
|
126998
|
-
|
|
126999
|
-
|
|
127000
|
-
|
|
127001
|
-
|
|
127002
|
-
|
|
127134
|
+
if (resource) tokenRequestParams.set("resource", resourceIndicatorToString2(resource));
|
|
127135
|
+
if (!addClientAuthentication && clientInformation) applyClientAuthentication2(selectClientAuthMethod2(clientInformation, metadata?.token_endpoint_auth_methods_supported ?? []), clientInformation, headers, tokenRequestParams);
|
|
127136
|
+
const requestOnce = /* @__PURE__ */ __name(async () => {
|
|
127137
|
+
const requestHeaders = new Headers(headers);
|
|
127138
|
+
if (addClientAuthentication) await addClientAuthentication(requestHeaders, tokenRequestParams, tokenUrl, metadata);
|
|
127139
|
+
if (dpop) requestHeaders.set("DPoP", await dpop.buildProof({
|
|
127140
|
+
htm: "POST",
|
|
127141
|
+
htu: tokenUrl
|
|
127142
|
+
}));
|
|
127143
|
+
return (fetchFn ?? fetch)(tokenUrl, {
|
|
127144
|
+
method: "POST",
|
|
127145
|
+
headers: requestHeaders,
|
|
127146
|
+
body: tokenRequestParams
|
|
127147
|
+
});
|
|
127148
|
+
}, "requestOnce");
|
|
127149
|
+
let response = await requestOnce();
|
|
127150
|
+
if (dpop && response.status === 400) {
|
|
127151
|
+
if ((await response.clone().json().catch(() => {
|
|
127152
|
+
}))?.error === OAuthErrorCode.UseDpopNonce) {
|
|
127153
|
+
dpop.observeNonce(response, tokenUrl);
|
|
127154
|
+
response = await requestOnce();
|
|
127155
|
+
}
|
|
127156
|
+
}
|
|
127157
|
+
dpop?.observeNonce(response, tokenUrl);
|
|
127003
127158
|
if (!response.ok) throw await parseErrorResponse2(response);
|
|
127004
127159
|
const json2 = await response.json();
|
|
127005
127160
|
try {
|
|
127006
|
-
return OAuthTokensSchema2.parse(json2);
|
|
127161
|
+
return OAuthTokensSchema2.parse(withoutIssuer(json2));
|
|
127007
127162
|
} catch (parseError) {
|
|
127008
127163
|
if (typeof json2 === "object" && json2 !== null && "error" in json2) throw await parseErrorResponse2(JSON.stringify(json2));
|
|
127009
127164
|
throw parseError;
|
|
127010
127165
|
}
|
|
127011
127166
|
}
|
|
127012
127167
|
__name(executeTokenRequest2, "executeTokenRequest");
|
|
127013
|
-
async function refreshAuthorization2(authorizationServerUrl, { metadata, clientInformation, refreshToken, resource, addClientAuthentication, fetchFn }) {
|
|
127168
|
+
async function refreshAuthorization2(authorizationServerUrl, { metadata, clientInformation, refreshToken, resource, addClientAuthentication, dpop, fetchFn }) {
|
|
127014
127169
|
return {
|
|
127015
127170
|
refresh_token: refreshToken,
|
|
127016
127171
|
...await executeTokenRequest2(authorizationServerUrl, {
|
|
@@ -127022,6 +127177,7 @@ async function refreshAuthorization2(authorizationServerUrl, { metadata, clientI
|
|
|
127022
127177
|
clientInformation,
|
|
127023
127178
|
addClientAuthentication,
|
|
127024
127179
|
resource,
|
|
127180
|
+
dpop,
|
|
127025
127181
|
fetchFn
|
|
127026
127182
|
})
|
|
127027
127183
|
};
|
|
@@ -127033,6 +127189,14 @@ async function fetchToken2(provider, authorizationServerUrl, { metadata, resourc
|
|
|
127033
127189
|
expectedIssuer: metadata?.issuer,
|
|
127034
127190
|
issParameterSupported: isIssParameterSupported(metadata)
|
|
127035
127191
|
});
|
|
127192
|
+
const issuer = metadata?.issuer ?? String(authorizationServerUrl);
|
|
127193
|
+
const readClientInformation = /* @__PURE__ */ __name(async () => {
|
|
127194
|
+
const rawClientInfo = await provider.clientInformation({ issuer });
|
|
127195
|
+
const checked = discardIfIssuerMismatch2(rawClientInfo, issuer, { canPersistStamp: false });
|
|
127196
|
+
if (rawClientInfo && checked === void 0) throw new AuthorizationServerMismatchError(String(rawClientInfo.issuer), issuer);
|
|
127197
|
+
return checked;
|
|
127198
|
+
}, "readClientInformation");
|
|
127199
|
+
let clientInformation = await readClientInformation();
|
|
127036
127200
|
const effectiveScope = scope ?? provider.clientMetadata.scope;
|
|
127037
127201
|
let tokenRequestParams;
|
|
127038
127202
|
if (provider.prepareTokenRequest) tokenRequestParams = await provider.prepareTokenRequest(effectiveScope);
|
|
@@ -127041,13 +127205,14 @@ async function fetchToken2(provider, authorizationServerUrl, { metadata, resourc
|
|
|
127041
127205
|
if (!provider.redirectUrl) throw new Error("redirectUrl is required for authorization_code flow");
|
|
127042
127206
|
tokenRequestParams = prepareAuthorizationCodeRequest2(authorizationCode, await provider.codeVerifier(), provider.redirectUrl);
|
|
127043
127207
|
}
|
|
127044
|
-
|
|
127208
|
+
clientInformation ??= await readClientInformation();
|
|
127045
127209
|
return executeTokenRequest2(authorizationServerUrl, {
|
|
127046
127210
|
metadata,
|
|
127047
127211
|
tokenRequestParams,
|
|
127048
|
-
clientInformation
|
|
127212
|
+
clientInformation,
|
|
127049
127213
|
addClientAuthentication: provider.addClientAuthentication,
|
|
127050
127214
|
resource,
|
|
127215
|
+
dpop: await provider.dpop?.(),
|
|
127051
127216
|
fetchFn
|
|
127052
127217
|
});
|
|
127053
127218
|
}
|
|
@@ -127072,7 +127237,7 @@ async function registerClient2(authorizationServerUrl, { metadata, clientMetadat
|
|
|
127072
127237
|
body: await response.text(),
|
|
127073
127238
|
submittedMetadata
|
|
127074
127239
|
});
|
|
127075
|
-
return OAuthClientInformationFullSchema2.parse(await response.json());
|
|
127240
|
+
return OAuthClientInformationFullSchema2.parse(withoutIssuer(await response.json()));
|
|
127076
127241
|
}
|
|
127077
127242
|
__name(registerClient2, "registerClient");
|
|
127078
127243
|
var CAP_EXEMPT_METHODS = /* @__PURE__ */ new Set([
|
|
@@ -127674,7 +127839,7 @@ function classifyNetworkError(error42, context2) {
|
|
|
127674
127839
|
if (context2.environment === "browser" && isOpaqueFetchTypeError(error42)) return { kind: "legacy" };
|
|
127675
127840
|
return {
|
|
127676
127841
|
kind: "error",
|
|
127677
|
-
error: new SdkError(SdkErrorCode.EraNegotiationFailed, `Version negotiation probe failed: ${describeError3(error42)}`, { cause: error42 })
|
|
127842
|
+
error: new SdkError(SdkErrorCode.EraNegotiationFailed, `Version negotiation probe failed: ${describeError3(error42)}`, { cause: error42 }, { cause: error42 })
|
|
127678
127843
|
};
|
|
127679
127844
|
}
|
|
127680
127845
|
__name(classifyNetworkError, "classifyNetworkError");
|
|
@@ -128735,7 +128900,7 @@ var Client2 = class extends Protocol2 {
|
|
|
128735
128900
|
}, options2);
|
|
128736
128901
|
const hit = await this._serveFromCache("prompts/list", void 0, options2);
|
|
128737
128902
|
if (hit !== void 0) return hit;
|
|
128738
|
-
return this._listAllPages("prompts/list", params, options2, (
|
|
128903
|
+
return this._listAllPages("prompts/list", params, options2, (r) => r.prompts);
|
|
128739
128904
|
}
|
|
128740
128905
|
/**
|
|
128741
128906
|
* Lists available resources.
|
|
@@ -128774,7 +128939,7 @@ var Client2 = class extends Protocol2 {
|
|
|
128774
128939
|
}, options2);
|
|
128775
128940
|
const hit = await this._serveFromCache("resources/list", void 0, options2);
|
|
128776
128941
|
if (hit !== void 0) return hit;
|
|
128777
|
-
return this._listAllPages("resources/list", params, options2, (
|
|
128942
|
+
return this._listAllPages("resources/list", params, options2, (r) => r.resources);
|
|
128778
128943
|
}
|
|
128779
128944
|
/**
|
|
128780
128945
|
* Lists available resource URI templates for dynamic resources.
|
|
@@ -128799,7 +128964,7 @@ var Client2 = class extends Protocol2 {
|
|
|
128799
128964
|
}, options2);
|
|
128800
128965
|
const hit = await this._serveFromCache("resources/templates/list", void 0, options2);
|
|
128801
128966
|
if (hit !== void 0) return hit;
|
|
128802
|
-
return this._listAllPages("resources/templates/list", params, options2, (
|
|
128967
|
+
return this._listAllPages("resources/templates/list", params, options2, (r) => r.resourceTemplates);
|
|
128803
128968
|
}
|
|
128804
128969
|
/**
|
|
128805
128970
|
* Walk every page of a paginated list verb, aggregate, and write ONE
|
|
@@ -128807,8 +128972,7 @@ var Client2 = class extends Protocol2 {
|
|
|
128807
128972
|
* methods' no-`cursor` auto-aggregate path. Page 1's result object is
|
|
128808
128973
|
* mutated in place (its items array is extended; `nextCursor` is
|
|
128809
128974
|
* cleared); page-1 metadata (`ttlMs`, `cacheScope`, `_meta`) is preserved.
|
|
128810
|
-
* A `nextCursor`
|
|
128811
|
-
* non-converging server, mcp.d's `drainList` guard);
|
|
128975
|
+
* A page with the same items and `nextCursor` as the previous page ends the walk;
|
|
128812
128976
|
* {@linkcode ClientOptions.listMaxPages} is a hard cap — hitting it
|
|
128813
128977
|
* throws, so a partial aggregate is never cached. The
|
|
128814
128978
|
* captured-generation guard skips the write when a `list_changed` landed
|
|
@@ -128823,7 +128987,7 @@ var Client2 = class extends Protocol2 {
|
|
|
128823
128987
|
* trace context) supplied to the public `list*()` reaches every wire
|
|
128824
128988
|
* request the walk issues.
|
|
128825
128989
|
*/
|
|
128826
|
-
async _listAllPages(method, baseParams, options2,
|
|
128990
|
+
async _listAllPages(method, baseParams, options2, items, finalize3) {
|
|
128827
128991
|
const bypass = options2?.cacheMode === "bypass";
|
|
128828
128992
|
const generation = this._cache.captureGeneration(method);
|
|
128829
128993
|
const acc = await this.request({
|
|
@@ -128831,14 +128995,13 @@ var Client2 = class extends Protocol2 {
|
|
|
128831
128995
|
...baseParams && { params: { ...baseParams } }
|
|
128832
128996
|
}, options2);
|
|
128833
128997
|
let cursor = acc.nextCursor;
|
|
128834
|
-
|
|
128998
|
+
let previous = acc;
|
|
128835
128999
|
let pages = 1;
|
|
128836
|
-
while (cursor !== void 0
|
|
129000
|
+
while (cursor !== void 0) {
|
|
128837
129001
|
if (this._listMaxPages !== 0 && pages >= this._listMaxPages) throw new SdkError(SdkErrorCode.ListPaginationExceeded, `${method}: exceeded listMaxPages (${this._listMaxPages}); server pagination did not terminate`, {
|
|
128838
129002
|
method,
|
|
128839
129003
|
listMaxPages: this._listMaxPages
|
|
128840
129004
|
});
|
|
128841
|
-
seen2.add(cursor);
|
|
128842
129005
|
const page = await this.request({
|
|
128843
129006
|
method,
|
|
128844
129007
|
params: {
|
|
@@ -128846,7 +129009,9 @@ var Client2 = class extends Protocol2 {
|
|
|
128846
129009
|
cursor
|
|
128847
129010
|
}
|
|
128848
129011
|
}, options2);
|
|
128849
|
-
|
|
129012
|
+
if (page.nextCursor === cursor && JSON.stringify(items(page)) === JSON.stringify(items(previous))) break;
|
|
129013
|
+
items(acc).push(...items(page));
|
|
129014
|
+
previous = page;
|
|
128850
129015
|
cursor = page.nextCursor;
|
|
128851
129016
|
pages++;
|
|
128852
129017
|
}
|
|
@@ -129110,19 +129275,22 @@ var Client2 = class extends Protocol2 {
|
|
|
129110
129275
|
notifications: filter
|
|
129111
129276
|
}
|
|
129112
129277
|
};
|
|
129278
|
+
const routeSendFailure = /* @__PURE__ */ __name((error42) => {
|
|
129279
|
+
settle({
|
|
129280
|
+
cause: "remote",
|
|
129281
|
+
error: error42 instanceof Error ? error42 : new Error(String(error42))
|
|
129282
|
+
});
|
|
129283
|
+
}, "routeSendFailure");
|
|
129113
129284
|
try {
|
|
129114
|
-
|
|
129285
|
+
this.transport.send(jsonrpcRequest, {
|
|
129115
129286
|
requestSignal: requestAbort.signal,
|
|
129116
129287
|
onRequestStreamEnd: /* @__PURE__ */ __name(() => settle({
|
|
129117
129288
|
cause: "remote",
|
|
129118
129289
|
error: /* @__PURE__ */ new Error("subscriptions/listen: stream ended")
|
|
129119
129290
|
}), "onRequestStreamEnd")
|
|
129120
|
-
});
|
|
129291
|
+
}).catch(routeSendFailure);
|
|
129121
129292
|
} catch (error42) {
|
|
129122
|
-
|
|
129123
|
-
cause: "remote",
|
|
129124
|
-
error: error42 instanceof Error ? error42 : new Error(String(error42))
|
|
129125
|
-
});
|
|
129293
|
+
routeSendFailure(error42);
|
|
129126
129294
|
}
|
|
129127
129295
|
return {
|
|
129128
129296
|
honoredFilter: await opening,
|
|
@@ -129374,7 +129542,7 @@ var Client2 = class extends Protocol2 {
|
|
|
129374
129542
|
}
|
|
129375
129543
|
const hit = await this._serveFromCache("tools/list", void 0, options2);
|
|
129376
129544
|
if (hit !== void 0) return hit;
|
|
129377
|
-
return this._listAllPages("tools/list", params, options2, (
|
|
129545
|
+
return this._listAllPages("tools/list", params, options2, (r) => r.tools, (acc) => this._excludeInvalidXMcpHeaderTools(acc));
|
|
129378
129546
|
}
|
|
129379
129547
|
/**
|
|
129380
129548
|
* SEP-2243 (protocol revision 2026-07-28): a Streamable HTTP client MUST
|
|
@@ -129445,6 +129613,65 @@ var Client2 = class extends Protocol2 {
|
|
|
129445
129613
|
return this.notification({ method: "notifications/roots/list_changed" });
|
|
129446
129614
|
}
|
|
129447
129615
|
};
|
|
129616
|
+
function hasDpopChallenge(wwwAuthenticate) {
|
|
129617
|
+
return /(?:^|,)\s*dpop(?:\s|$|,)/i.test(wwwAuthenticate);
|
|
129618
|
+
}
|
|
129619
|
+
__name(hasDpopChallenge, "hasDpopChallenge");
|
|
129620
|
+
function isDpopNonceChallenge(response) {
|
|
129621
|
+
if (response.status !== 401) return false;
|
|
129622
|
+
const wwwAuthenticate = response.headers.get("www-authenticate") ?? "";
|
|
129623
|
+
return hasDpopChallenge(wwwAuthenticate) && /use_dpop_nonce/i.test(wwwAuthenticate);
|
|
129624
|
+
}
|
|
129625
|
+
__name(isDpopNonceChallenge, "isDpopNonceChallenge");
|
|
129626
|
+
var withDpop = /* @__PURE__ */ __name((session, getToken) => (next) => {
|
|
129627
|
+
const resolveSession = typeof session === "function" ? session : () => session;
|
|
129628
|
+
return async (input, init) => {
|
|
129629
|
+
const method = (init?.method ?? "GET").toUpperCase();
|
|
129630
|
+
const url4 = new URL(input.toString());
|
|
129631
|
+
const activeSession = await resolveSession();
|
|
129632
|
+
if (!activeSession) return next(input, init);
|
|
129633
|
+
const makeRequest = /* @__PURE__ */ __name(async () => {
|
|
129634
|
+
const accessToken = await getToken();
|
|
129635
|
+
if (!accessToken) return next(input, init);
|
|
129636
|
+
const headers = new Headers(init?.headers);
|
|
129637
|
+
const proof = await activeSession.buildProof({
|
|
129638
|
+
htm: method,
|
|
129639
|
+
htu: url4,
|
|
129640
|
+
accessToken
|
|
129641
|
+
});
|
|
129642
|
+
headers.set("Authorization", `DPoP ${accessToken}`);
|
|
129643
|
+
headers.set("DPoP", proof);
|
|
129644
|
+
return next(input, {
|
|
129645
|
+
...init,
|
|
129646
|
+
headers
|
|
129647
|
+
});
|
|
129648
|
+
}, "makeRequest");
|
|
129649
|
+
let response = await makeRequest();
|
|
129650
|
+
if (isDpopNonceChallenge(response) && response.headers.has("dpop-nonce")) {
|
|
129651
|
+
activeSession.observeNonce(response, url4);
|
|
129652
|
+
await response.text?.().catch(() => {
|
|
129653
|
+
});
|
|
129654
|
+
response = await makeRequest();
|
|
129655
|
+
}
|
|
129656
|
+
activeSession.observeNonce(response, url4);
|
|
129657
|
+
return response;
|
|
129658
|
+
};
|
|
129659
|
+
}, "withDpop");
|
|
129660
|
+
var withDpopFromProvider = /* @__PURE__ */ __name((provider) => withDpop(async () => {
|
|
129661
|
+
try {
|
|
129662
|
+
return await provider.dpop?.();
|
|
129663
|
+
} catch (error42) {
|
|
129664
|
+
throw markAuthSeamEscape(error42);
|
|
129665
|
+
}
|
|
129666
|
+
}, async () => {
|
|
129667
|
+
let tokens;
|
|
129668
|
+
try {
|
|
129669
|
+
tokens = await provider.tokens();
|
|
129670
|
+
} catch (error42) {
|
|
129671
|
+
throw markAuthSeamEscape(error42);
|
|
129672
|
+
}
|
|
129673
|
+
return tokens?.token_type?.toLowerCase() === "dpop" ? tokens.access_token : void 0;
|
|
129674
|
+
}), "withDpopFromProvider");
|
|
129448
129675
|
var SseError = class extends Error {
|
|
129449
129676
|
static {
|
|
129450
129677
|
__name(this, "SseError");
|
|
@@ -129492,6 +129719,7 @@ var SSEClientTransport = class {
|
|
|
129492
129719
|
_skipIssuerMetadataValidation;
|
|
129493
129720
|
_fetch;
|
|
129494
129721
|
_fetchWithInit;
|
|
129722
|
+
_dpop;
|
|
129495
129723
|
_protocolVersion;
|
|
129496
129724
|
onclose;
|
|
129497
129725
|
onerror;
|
|
@@ -129503,32 +129731,33 @@ var SSEClientTransport = class {
|
|
|
129503
129731
|
this._eventSourceInit = opts?.eventSourceInit;
|
|
129504
129732
|
this._requestInit = opts?.requestInit;
|
|
129505
129733
|
this._skipIssuerMetadataValidation = opts?.skipIssuerMetadataValidation;
|
|
129734
|
+
this._fetch = opts?.fetch;
|
|
129506
129735
|
if (isOAuthClientProvider(opts?.authProvider)) {
|
|
129507
129736
|
this._oauthProvider = opts.authProvider;
|
|
129508
129737
|
this._authProvider = adaptOAuthProvider(opts.authProvider, { skipIssuerMetadataValidation: opts.skipIssuerMetadataValidation });
|
|
129738
|
+
if (opts.authProvider.dpop) {
|
|
129739
|
+
this._dpop = withDpopFromProvider(opts.authProvider);
|
|
129740
|
+
this._fetch = this._dpop(opts.fetch ?? fetch);
|
|
129741
|
+
}
|
|
129509
129742
|
} else this._authProvider = opts?.authProvider;
|
|
129510
|
-
this._fetch = opts?.fetch;
|
|
129511
129743
|
this._fetchWithInit = createFetchWithInit2(opts?.fetch, opts?.requestInit);
|
|
129512
129744
|
}
|
|
129513
129745
|
_last401Response;
|
|
129514
129746
|
async _commonHeaders() {
|
|
129515
|
-
const headers =
|
|
129747
|
+
const headers = new Headers(this._requestInit?.headers || void 0);
|
|
129516
129748
|
let token;
|
|
129517
129749
|
try {
|
|
129518
129750
|
token = await this._authProvider?.token();
|
|
129519
129751
|
} catch (error42) {
|
|
129520
129752
|
throw markAuthSeamEscape(error42);
|
|
129521
129753
|
}
|
|
129522
|
-
if (token) headers
|
|
129523
|
-
if (this._protocolVersion) headers
|
|
129524
|
-
|
|
129525
|
-
return new Headers({
|
|
129526
|
-
...headers,
|
|
129527
|
-
...extraHeaders
|
|
129528
|
-
});
|
|
129754
|
+
if (token) headers.set("Authorization", `Bearer ${token}`);
|
|
129755
|
+
if (this._protocolVersion) headers.set("mcp-protocol-version", this._protocolVersion);
|
|
129756
|
+
return headers;
|
|
129529
129757
|
}
|
|
129530
129758
|
_startOrAuth() {
|
|
129531
|
-
const
|
|
129759
|
+
const eventSourceFetch = this._eventSourceInit?.fetch;
|
|
129760
|
+
const fetchImpl = eventSourceFetch ? this._dpop?.(eventSourceFetch) ?? eventSourceFetch : this._fetch ?? fetch;
|
|
129532
129761
|
return new Promise((resolve34, reject) => {
|
|
129533
129762
|
this._eventSource = new EventSource(this._url.href, {
|
|
129534
129763
|
...this._eventSourceInit,
|
|
@@ -129698,6 +129927,7 @@ var DEFAULT_STREAMABLE_HTTP_RECONNECTION_OPTIONS2 = {
|
|
|
129698
129927
|
};
|
|
129699
129928
|
var RESERVED_REQUEST_HEADER_NAMES = /* @__PURE__ */ new Set([
|
|
129700
129929
|
"authorization",
|
|
129930
|
+
"dpop",
|
|
129701
129931
|
"content-type",
|
|
129702
129932
|
"mcp-protocol-version",
|
|
129703
129933
|
"mcp-method",
|
|
@@ -129766,11 +129996,12 @@ var StreamableHTTPClientTransport2 = class {
|
|
|
129766
129996
|
this._scope = void 0;
|
|
129767
129997
|
this._requestInit = opts?.requestInit;
|
|
129768
129998
|
this._skipIssuerMetadataValidation = opts?.skipIssuerMetadataValidation;
|
|
129999
|
+
this._fetch = opts?.fetch;
|
|
129769
130000
|
if (isOAuthClientProvider(opts?.authProvider)) {
|
|
129770
130001
|
this._oauthProvider = opts.authProvider;
|
|
129771
130002
|
this._authProvider = adaptOAuthProvider(opts.authProvider, { skipIssuerMetadataValidation: opts.skipIssuerMetadataValidation });
|
|
130003
|
+
if (opts.authProvider.dpop) this._fetch = withDpopFromProvider(opts.authProvider)(opts.fetch ?? fetch);
|
|
129772
130004
|
} else this._authProvider = opts?.authProvider;
|
|
129773
|
-
this._fetch = opts?.fetch;
|
|
129774
130005
|
this._fetchWithInit = createFetchWithInit2(opts?.fetch, opts?.requestInit);
|
|
129775
130006
|
this._sessionId = opts?.sessionId;
|
|
129776
130007
|
this._protocolVersion = opts?.protocolVersion;
|
|
@@ -129824,21 +130055,17 @@ var StreamableHTTPClientTransport2 = class {
|
|
|
129824
130055
|
});
|
|
129825
130056
|
}
|
|
129826
130057
|
async _commonHeaders() {
|
|
129827
|
-
const headers =
|
|
130058
|
+
const headers = new Headers(this._requestInit?.headers || void 0);
|
|
129828
130059
|
let token;
|
|
129829
130060
|
try {
|
|
129830
130061
|
token = await this._authProvider?.token();
|
|
129831
130062
|
} catch (error42) {
|
|
129832
130063
|
throw markAuthSeamEscape(error42);
|
|
129833
130064
|
}
|
|
129834
|
-
if (token) headers
|
|
129835
|
-
if (this._sessionId) headers
|
|
129836
|
-
if (this._protocolVersion) headers
|
|
129837
|
-
|
|
129838
|
-
return new Headers({
|
|
129839
|
-
...headers,
|
|
129840
|
-
...extraHeaders
|
|
129841
|
-
});
|
|
130065
|
+
if (token) headers.set("Authorization", `Bearer ${token}`);
|
|
130066
|
+
if (this._sessionId) headers.set("mcp-session-id", this._sessionId);
|
|
130067
|
+
if (this._protocolVersion) headers.set("mcp-protocol-version", this._protocolVersion);
|
|
130068
|
+
return headers;
|
|
129842
130069
|
}
|
|
129843
130070
|
/**
|
|
129844
130071
|
* Body-derived per-request headers: when an outgoing request carries a
|
|
@@ -129854,9 +130081,8 @@ var StreamableHTTPClientTransport2 = class {
|
|
|
129854
130081
|
if (typeof envelopeVersion !== "string") return;
|
|
129855
130082
|
headers.set("mcp-protocol-version", envelopeVersion);
|
|
129856
130083
|
headers.set("mcp-method", message.method);
|
|
129857
|
-
const
|
|
129858
|
-
|
|
129859
|
-
if (nameHeader !== void 0) headers.set("mcp-name", encodeMcpParamValue(nameHeader));
|
|
130084
|
+
const source = mcpNameSource(message.method, message.params);
|
|
130085
|
+
if (source?.value !== void 0) headers.set("mcp-name", encodeMcpParamValue(source.value));
|
|
129860
130086
|
}
|
|
129861
130087
|
/**
|
|
129862
130088
|
* `true` when the outbound message is a single request carrying a
|
|
@@ -130278,17 +130504,23 @@ import process7 from "node:process";
|
|
|
130278
130504
|
import { PassThrough as PassThrough2 } from "node:stream";
|
|
130279
130505
|
var DEFAULT_INHERITED_ENV_VARS2 = process7.platform === "win32" ? [
|
|
130280
130506
|
"APPDATA",
|
|
130507
|
+
"COMSPEC",
|
|
130281
130508
|
"HOMEDRIVE",
|
|
130282
130509
|
"HOMEPATH",
|
|
130283
130510
|
"LOCALAPPDATA",
|
|
130284
130511
|
"PATH",
|
|
130512
|
+
"PATHEXT",
|
|
130285
130513
|
"PROCESSOR_ARCHITECTURE",
|
|
130514
|
+
"PROGRAMDATA",
|
|
130515
|
+
"PROGRAMFILES",
|
|
130516
|
+
"PROGRAMFILES(X86)",
|
|
130517
|
+
"PROGRAMW6432",
|
|
130286
130518
|
"SYSTEMDRIVE",
|
|
130287
130519
|
"SYSTEMROOT",
|
|
130288
130520
|
"TEMP",
|
|
130289
130521
|
"USERNAME",
|
|
130290
130522
|
"USERPROFILE",
|
|
130291
|
-
"
|
|
130523
|
+
"WINDIR"
|
|
130292
130524
|
] : [
|
|
130293
130525
|
"HOME",
|
|
130294
130526
|
"LOGNAME",
|
|
@@ -151809,18 +152041,29 @@ var generatedConfigKeyAllowances = [
|
|
|
151809
152041
|
[/credential(..+)?.helper/, "allowUnsafeCredentialHelper"],
|
|
151810
152042
|
[/diff(..+)?.command/, "allowUnsafeDiffExternal"],
|
|
151811
152043
|
[/diff.external/, "allowUnsafeDiffExternal"],
|
|
152044
|
+
[/difftool(..+)?.cmd/, "allowUnsafeDiffExternal"],
|
|
151812
152045
|
[/diff(..+)?.textconv/, "allowUnsafeDiffTextConv"],
|
|
151813
152046
|
[/filter(..+)?.clean/, "allowUnsafeFilter"],
|
|
152047
|
+
[/filter(..+)?.process/, "allowUnsafeFilter"],
|
|
151814
152048
|
[/filter(..+)?.smudge/, "allowUnsafeFilter"],
|
|
151815
152049
|
[/gpg(..+)?.program/, "allowUnsafeGpgProgram"],
|
|
152050
|
+
[/include.path/, "allowUnsafeInclude"],
|
|
152051
|
+
[/includeif/, "allowUnsafeInclude"],
|
|
151816
152052
|
[/init.templatedir/, "allowUnsafeTemplateDir"],
|
|
152053
|
+
[/pager(..+)?./, "allowUnsafePager"],
|
|
151817
152054
|
[/merge(..+)?.driver/, "allowUnsafeMergeDriver"],
|
|
151818
152055
|
[/mergetool(..+)?.path/, "allowUnsafeMergeDriver"],
|
|
151819
152056
|
[/mergetool(..+)?.cmd/, "allowUnsafeMergeDriver"],
|
|
151820
152057
|
[/protocol(..+)?.allow/, "allowUnsafeProtocolOverride"],
|
|
151821
152058
|
[/remote(..+)?.receivepack/, "allowUnsafePack"],
|
|
151822
152059
|
[/remote(..+)?.uploadpack/, "allowUnsafePack"],
|
|
151823
|
-
[/
|
|
152060
|
+
[/uploadpack.packobjectshook/, "allowUnsafePack"],
|
|
152061
|
+
[/sequence.editor/, "allowUnsafeEditor"],
|
|
152062
|
+
[/submodule(..+)?.update/, "allowUnsafeSubmodule"],
|
|
152063
|
+
[/tar(..+)?.command/, "allowUnsafeCommandBinaries"],
|
|
152064
|
+
[/trailer(..+)?.cmd/, "allowUnsafeCommandBinaries"],
|
|
152065
|
+
[/trailer(..+)?.command/, "allowUnsafeCommandBinaries"],
|
|
152066
|
+
[/url(..+)?.insteadof/, "allowUnsafeUrlRewrite"]
|
|
151824
152067
|
];
|
|
151825
152068
|
function allowGeneratedConfigKeyFalsePositives(unsafe, key) {
|
|
151826
152069
|
const normalizedKey = key.toLowerCase().trim();
|
|
@@ -151852,7 +152095,14 @@ function createExtensionGitClient(simpleGit, {
|
|
|
151852
152095
|
const git = simpleGit(baseDir, {
|
|
151853
152096
|
...signal ? { abort: signal } : {},
|
|
151854
152097
|
...hasNetworkConfig ? { config: networkConfig } : {},
|
|
151855
|
-
...restrictEnvironment || hasNetworkConfig ? { unsafe } : {}
|
|
152098
|
+
...restrictEnvironment || hasNetworkConfig ? { unsafe } : {},
|
|
152099
|
+
...restrictEnvironment ? {
|
|
152100
|
+
allowEnvironment: [
|
|
152101
|
+
"GIT_CONFIG_NOSYSTEM",
|
|
152102
|
+
"GIT_CONFIG_GLOBAL",
|
|
152103
|
+
...authentication ? ["GIT_CONFIG_COUNT", "GIT_CONFIG_KEY_0", "GIT_CONFIG_VALUE_0"] : []
|
|
152104
|
+
]
|
|
152105
|
+
} : {}
|
|
151856
152106
|
});
|
|
151857
152107
|
if (!restrictEnvironment) return git;
|
|
151858
152108
|
const environment = {
|
|
@@ -171224,7 +171474,7 @@ var Config = class _Config {
|
|
|
171224
171474
|
await this.proxyDispatcherReady;
|
|
171225
171475
|
options2?.signal?.throwIfAborted();
|
|
171226
171476
|
if (this.isOmniEnabled()) {
|
|
171227
|
-
const { normalizeDedicatedOmniUploadConfig } = await import("./upload-config-
|
|
171477
|
+
const { normalizeDedicatedOmniUploadConfig } = await import("./upload-config-EALPYJRO.js");
|
|
171228
171478
|
this.omniUploadConfig = normalizeDedicatedOmniUploadConfig({
|
|
171229
171479
|
baseUrl: this.omniUploadBaseUrl,
|
|
171230
171480
|
apiKeyEnv: this.omniUploadApiKeyEnv,
|
|
@@ -175124,7 +175374,7 @@ var Config = class _Config {
|
|
|
175124
175374
|
return this.omniPolicyTools;
|
|
175125
175375
|
}
|
|
175126
175376
|
async loadOmniMediaReader() {
|
|
175127
|
-
return import("./omni-
|
|
175377
|
+
return import("./omni-RULYOVJP.js");
|
|
175128
175378
|
}
|
|
175129
175379
|
/** Normalized `omni.processing` view. Undefined until tool warmup
|
|
175130
175380
|
* completes (or when omni is disabled). */
|
|
@@ -176700,7 +176950,7 @@ var Config = class _Config {
|
|
|
176700
176950
|
async registerWorkflowTool(registry4) {
|
|
176701
176951
|
if (registry4.getAllToolNames().includes(ToolNames.WORKFLOW)) return true;
|
|
176702
176952
|
await this.registerLazyTool(registry4, ToolNames.WORKFLOW, async () => {
|
|
176703
|
-
const { WorkflowTool } = await import("./workflow-
|
|
176953
|
+
const { WorkflowTool } = await import("./workflow-WUNSCM5D.js");
|
|
176704
176954
|
return new WorkflowTool(this);
|
|
176705
176955
|
});
|
|
176706
176956
|
return registry4.getAllToolNames().includes(ToolNames.WORKFLOW);
|
|
@@ -176722,7 +176972,7 @@ var Config = class _Config {
|
|
|
176722
176972
|
}
|
|
176723
176973
|
if (status === "disabled") return;
|
|
176724
176974
|
const factory = /* @__PURE__ */ __name(async () => {
|
|
176725
|
-
const { ImageGenTool } = await import("./image-gen-
|
|
176975
|
+
const { ImageGenTool } = await import("./image-gen-GRJ73O3N.js");
|
|
176726
176976
|
return new ImageGenTool(this);
|
|
176727
176977
|
}, "factory");
|
|
176728
176978
|
if (status === "deferred") {
|
|
@@ -176749,7 +176999,7 @@ var Config = class _Config {
|
|
|
176749
176999
|
return;
|
|
176750
177000
|
}
|
|
176751
177001
|
const factory = /* @__PURE__ */ __name(async () => {
|
|
176752
|
-
const { RecordSourceTool } = await import("./record-source-
|
|
177002
|
+
const { RecordSourceTool } = await import("./record-source-ANENC5K7.js");
|
|
176753
177003
|
return new RecordSourceTool(this);
|
|
176754
177004
|
}, "factory");
|
|
176755
177005
|
if (status === "deferred") {
|
|
@@ -176780,16 +177030,16 @@ var Config = class _Config {
|
|
|
176780
177030
|
const registerGoalWorkerTools = /* @__PURE__ */ __name(async () => {
|
|
176781
177031
|
if (options2?.forSubAgent) return;
|
|
176782
177032
|
await registerLazy(ToolNames.GET_GOAL, async () => {
|
|
176783
|
-
const { GetGoalTool: GetGoalTool2 } = await import("./goal-tools-
|
|
177033
|
+
const { GetGoalTool: GetGoalTool2 } = await import("./goal-tools-CDMDPDOI.js");
|
|
176784
177034
|
return new GetGoalTool2(this);
|
|
176785
177035
|
});
|
|
176786
177036
|
await registerLazy(ToolNames.UPDATE_GOAL, async () => {
|
|
176787
|
-
const { UpdateGoalTool: UpdateGoalTool2 } = await import("./goal-tools-
|
|
177037
|
+
const { UpdateGoalTool: UpdateGoalTool2 } = await import("./goal-tools-CDMDPDOI.js");
|
|
176788
177038
|
return new UpdateGoalTool2(this);
|
|
176789
177039
|
});
|
|
176790
177040
|
if (this.getModelProposedGoals() !== "disabled" && (resolveInteractionMode(this) === "interactive" || this.goalProposalHostSupported)) {
|
|
176791
177041
|
await registerLazy(ToolNames.PROPOSE_GOAL, async () => {
|
|
176792
|
-
const { ProposeGoalTool: ProposeGoalTool2 } = await import("./goal-tools-
|
|
177042
|
+
const { ProposeGoalTool: ProposeGoalTool2 } = await import("./goal-tools-CDMDPDOI.js");
|
|
176793
177043
|
return new ProposeGoalTool2(this);
|
|
176794
177044
|
});
|
|
176795
177045
|
}
|
|
@@ -176809,16 +177059,16 @@ var Config = class _Config {
|
|
|
176809
177059
|
});
|
|
176810
177060
|
}
|
|
176811
177061
|
await registerLazy(ToolNames.WEB_FETCH, async () => {
|
|
176812
|
-
const { WebFetchTool } = await import("./web-fetch-
|
|
177062
|
+
const { WebFetchTool } = await import("./web-fetch-B4MFZK5W.js");
|
|
176813
177063
|
return new WebFetchTool(this);
|
|
176814
177064
|
});
|
|
176815
177065
|
const hasExplicitWebSearchBackend = !!this.webSearchSettings?.model?.trim() || !!this.webSearchSettings?.baseUrl;
|
|
176816
177066
|
if (!this.getBareMode() && !this.isSafeMode() && this.webSearchSettings?.enabled !== false && (this.webSearchSettings?.enabled === true || !hasExplicitWebSearchBackend)) {
|
|
176817
|
-
const { evaluateWebSearchGate } = await import("./web-search-
|
|
177067
|
+
const { evaluateWebSearchGate } = await import("./web-search-R3JBN6A5.js");
|
|
176818
177068
|
const gate = evaluateWebSearchGate(this);
|
|
176819
177069
|
if (gate.ok) {
|
|
176820
177070
|
await registerLazy(ToolNames.WEB_SEARCH, async () => {
|
|
176821
|
-
const { WebSearchTool } = await import("./web-search-
|
|
177071
|
+
const { WebSearchTool } = await import("./web-search-R3JBN6A5.js");
|
|
176822
177072
|
return new WebSearchTool(this);
|
|
176823
177073
|
});
|
|
176824
177074
|
} else if (!gate.silent && !this.webSearchNoticeEmitted && !options2?.forSubAgent) {
|
|
@@ -176835,8 +177085,8 @@ var Config = class _Config {
|
|
|
176835
177085
|
);
|
|
176836
177086
|
}
|
|
176837
177087
|
const [{ createExecutionTools }, { wrapExecutionTool }] = await Promise.all([
|
|
176838
|
-
import("./local-execution-environment-
|
|
176839
|
-
import("./execution-tool-
|
|
177088
|
+
import("./local-execution-environment-HRGLGYYE.js"),
|
|
177089
|
+
import("./execution-tool-SZ4AURPN.js")
|
|
176840
177090
|
]);
|
|
176841
177091
|
for (const [name, tool] of createExecutionTools(this)) {
|
|
176842
177092
|
if (environment.toolNames && !environment.toolNames.has(name)) continue;
|
|
@@ -176847,11 +177097,11 @@ var Config = class _Config {
|
|
|
176847
177097
|
);
|
|
176848
177098
|
}
|
|
176849
177099
|
await registerLazy(ToolNames.TOOL_CALL, async () => {
|
|
176850
|
-
const { ToolCallTool } = await import("./tool-call-
|
|
177100
|
+
const { ToolCallTool } = await import("./tool-call-GVZHLCX6.js");
|
|
176851
177101
|
return new ToolCallTool(registry4);
|
|
176852
177102
|
});
|
|
176853
177103
|
await registerLazy(ToolNames.TOOL_SEARCH, async () => {
|
|
176854
|
-
const { ToolSearchTool } = await import("./tool-search-
|
|
177104
|
+
const { ToolSearchTool } = await import("./tool-search-MCB74V2Z.js");
|
|
176855
177105
|
return new ToolSearchTool(this);
|
|
176856
177106
|
});
|
|
176857
177107
|
if (this.executionEnvironment && !options2?.forSubAgent) {
|
|
@@ -176863,7 +177113,7 @@ var Config = class _Config {
|
|
|
176863
177113
|
}
|
|
176864
177114
|
if (this.shellExecutionSandbox) {
|
|
176865
177115
|
await registerLazy(ToolNames.SHELL, async () => {
|
|
176866
|
-
const { ShellTool: ShellTool2 } = await import("./shell-
|
|
177116
|
+
const { ShellTool: ShellTool2 } = await import("./shell-BUXOKE4X.js");
|
|
176867
177117
|
return new ShellTool2(this);
|
|
176868
177118
|
});
|
|
176869
177119
|
await registerLazy(ToolNames.TASK_STOP, async () => {
|
|
@@ -176871,27 +177121,27 @@ var Config = class _Config {
|
|
|
176871
177121
|
return new TaskStopTool(this);
|
|
176872
177122
|
});
|
|
176873
177123
|
await registerLazy(ToolNames.READ_FILE, async () => {
|
|
176874
|
-
const { ReadFileTool } = await import("./read-file-
|
|
177124
|
+
const { ReadFileTool } = await import("./read-file-G4G5LOGO.js");
|
|
176875
177125
|
return new ReadFileTool(this);
|
|
176876
177126
|
});
|
|
176877
177127
|
await registerLazy(ToolNames.WRITE_FILE, async () => {
|
|
176878
|
-
const { WriteFileTool } = await import("./write-file-
|
|
177128
|
+
const { WriteFileTool } = await import("./write-file-6FNRAYPO.js");
|
|
176879
177129
|
return new WriteFileTool(this);
|
|
176880
177130
|
});
|
|
176881
177131
|
await registerLazy(ToolNames.EDIT, async () => {
|
|
176882
|
-
const { EditTool } = await import("./edit-
|
|
177132
|
+
const { EditTool } = await import("./edit-XEHFRLTK.js");
|
|
176883
177133
|
return new EditTool(this);
|
|
176884
177134
|
});
|
|
176885
177135
|
await registerLazy(ToolNames.MONITOR, async () => {
|
|
176886
|
-
const { MonitorTool } = await import("./monitor-
|
|
177136
|
+
const { MonitorTool } = await import("./monitor-YAWMJU7P.js");
|
|
176887
177137
|
return new MonitorTool(this);
|
|
176888
177138
|
});
|
|
176889
177139
|
await registerLazy(ToolNames.AGENT, async () => {
|
|
176890
|
-
const { AgentTool: AgentTool2 } = await import("./agent-
|
|
177140
|
+
const { AgentTool: AgentTool2 } = await import("./agent-RU7E6G34.js");
|
|
176891
177141
|
return new AgentTool2(this);
|
|
176892
177142
|
});
|
|
176893
177143
|
await registerLazy(ToolNames.GLOB, async () => {
|
|
176894
|
-
const { GlobTool } = await import("./glob-
|
|
177144
|
+
const { GlobTool } = await import("./glob-WJQOKIRP.js");
|
|
176895
177145
|
return new GlobTool(this);
|
|
176896
177146
|
});
|
|
176897
177147
|
await registerLazy(ToolNames.LS, async () => {
|
|
@@ -176910,19 +177160,19 @@ var Config = class _Config {
|
|
|
176910
177160
|
}
|
|
176911
177161
|
if (this.getBareMode()) {
|
|
176912
177162
|
await registerLazy(ToolNames.READ_FILE, async () => {
|
|
176913
|
-
const { ReadFileTool } = await import("./read-file-
|
|
177163
|
+
const { ReadFileTool } = await import("./read-file-G4G5LOGO.js");
|
|
176914
177164
|
return new ReadFileTool(this);
|
|
176915
177165
|
});
|
|
176916
177166
|
await registerLazy(ToolNames.EDIT, async () => {
|
|
176917
|
-
const { EditTool } = await import("./edit-
|
|
177167
|
+
const { EditTool } = await import("./edit-XEHFRLTK.js");
|
|
176918
177168
|
return new EditTool(this);
|
|
176919
177169
|
});
|
|
176920
177170
|
await registerLazy(ToolNames.NOTEBOOK_EDIT, async () => {
|
|
176921
|
-
const { NotebookEditTool } = await import("./notebook-edit-
|
|
177171
|
+
const { NotebookEditTool } = await import("./notebook-edit-FTYD3OR2.js");
|
|
176922
177172
|
return new NotebookEditTool(this);
|
|
176923
177173
|
});
|
|
176924
177174
|
await registerLazy(ToolNames.SHELL, async () => {
|
|
176925
|
-
const { ShellTool: ShellTool2 } = await import("./shell-
|
|
177175
|
+
const { ShellTool: ShellTool2 } = await import("./shell-BUXOKE4X.js");
|
|
176926
177176
|
return new ShellTool2(this);
|
|
176927
177177
|
});
|
|
176928
177178
|
await registerGoalWorkerTools();
|
|
@@ -176937,11 +177187,11 @@ var Config = class _Config {
|
|
|
176937
177187
|
await registerExecIfEnabled();
|
|
176938
177188
|
await registerGoalWorkerTools();
|
|
176939
177189
|
await registerLazy(ToolNames.TOOL_CALL, async () => {
|
|
176940
|
-
const { ToolCallTool } = await import("./tool-call-
|
|
177190
|
+
const { ToolCallTool } = await import("./tool-call-GVZHLCX6.js");
|
|
176941
177191
|
return new ToolCallTool(registry4);
|
|
176942
177192
|
});
|
|
176943
177193
|
await registerLazy(ToolNames.TOOL_SEARCH, async () => {
|
|
176944
|
-
const { ToolSearchTool } = await import("./tool-search-
|
|
177194
|
+
const { ToolSearchTool } = await import("./tool-search-MCB74V2Z.js");
|
|
176945
177195
|
return new ToolSearchTool(this);
|
|
176946
177196
|
});
|
|
176947
177197
|
await registerLazy(ToolNames.READ_MCP_RESOURCE, async () => {
|
|
@@ -176949,7 +177199,7 @@ var Config = class _Config {
|
|
|
176949
177199
|
return new ReadMcpResourceTool(this);
|
|
176950
177200
|
});
|
|
176951
177201
|
await registerLazy(ToolNames.AGENT, async () => {
|
|
176952
|
-
const { AgentTool: AgentTool2 } = await import("./agent-
|
|
177202
|
+
const { AgentTool: AgentTool2 } = await import("./agent-RU7E6G34.js");
|
|
176953
177203
|
return new AgentTool2(this);
|
|
176954
177204
|
});
|
|
176955
177205
|
await registerLazy(ToolNames.LIST_AGENTS, async () => {
|
|
@@ -176961,11 +177211,11 @@ var Config = class _Config {
|
|
|
176961
177211
|
return new TaskStopTool(this);
|
|
176962
177212
|
});
|
|
176963
177213
|
await registerLazy(ToolNames.SEND_MESSAGE, async () => {
|
|
176964
|
-
const { SendMessageTool } = await import("./send-message-
|
|
177214
|
+
const { SendMessageTool } = await import("./send-message-QOWWQKZJ.js");
|
|
176965
177215
|
return new SendMessageTool(this);
|
|
176966
177216
|
});
|
|
176967
177217
|
await registerLazy(ToolNames.SKILL, async () => {
|
|
176968
|
-
const { SkillTool } = await import("./skill-
|
|
177218
|
+
const { SkillTool } = await import("./skill-Y4TKTJS7.js");
|
|
176969
177219
|
return new SkillTool(this);
|
|
176970
177220
|
});
|
|
176971
177221
|
if (this.isLsToolEnabled()) {
|
|
@@ -176975,11 +177225,11 @@ var Config = class _Config {
|
|
|
176975
177225
|
});
|
|
176976
177226
|
}
|
|
176977
177227
|
await registerLazy(ToolNames.READ_FILE, async () => {
|
|
176978
|
-
const { ReadFileTool } = await import("./read-file-
|
|
177228
|
+
const { ReadFileTool } = await import("./read-file-G4G5LOGO.js");
|
|
176979
177229
|
return new ReadFileTool(this);
|
|
176980
177230
|
});
|
|
176981
177231
|
await registerLazy(ToolNames.ZOOM_IMAGE, async () => {
|
|
176982
|
-
const { ZoomImageTool } = await import("./zoom-image-
|
|
177232
|
+
const { ZoomImageTool } = await import("./zoom-image-UOWJTYWI.js");
|
|
176983
177233
|
return new ZoomImageTool(this);
|
|
176984
177234
|
});
|
|
176985
177235
|
if (this.getUseRipgrep()) {
|
|
@@ -176994,7 +177244,7 @@ var Config = class _Config {
|
|
|
176994
177244
|
recordStartupEvent("config_initialize_ripgrep_probe_end");
|
|
176995
177245
|
if (useRipgrep) {
|
|
176996
177246
|
await registerLazy(ToolNames.GREP, async () => {
|
|
176997
|
-
const { RipGrepTool } = await import("./ripGrep-
|
|
177247
|
+
const { RipGrepTool } = await import("./ripGrep-2MEBBDSU.js");
|
|
176998
177248
|
return new RipGrepTool(this);
|
|
176999
177249
|
});
|
|
177000
177250
|
} else {
|
|
@@ -177007,7 +177257,7 @@ var Config = class _Config {
|
|
|
177007
177257
|
)
|
|
177008
177258
|
);
|
|
177009
177259
|
await registerLazy(ToolNames.GREP, async () => {
|
|
177010
|
-
const { GrepTool } = await import("./grep-
|
|
177260
|
+
const { GrepTool } = await import("./grep-VO76ZOXG.js");
|
|
177011
177261
|
return new GrepTool(this);
|
|
177012
177262
|
});
|
|
177013
177263
|
}
|
|
@@ -177015,28 +177265,28 @@ var Config = class _Config {
|
|
|
177015
177265
|
recordStartupEvent("config_initialize_ripgrep_probe_start");
|
|
177016
177266
|
recordStartupEvent("config_initialize_ripgrep_probe_end");
|
|
177017
177267
|
await registerLazy(ToolNames.GREP, async () => {
|
|
177018
|
-
const { GrepTool } = await import("./grep-
|
|
177268
|
+
const { GrepTool } = await import("./grep-VO76ZOXG.js");
|
|
177019
177269
|
return new GrepTool(this);
|
|
177020
177270
|
});
|
|
177021
177271
|
}
|
|
177022
177272
|
await registerLazy(ToolNames.GLOB, async () => {
|
|
177023
|
-
const { GlobTool } = await import("./glob-
|
|
177273
|
+
const { GlobTool } = await import("./glob-WJQOKIRP.js");
|
|
177024
177274
|
return new GlobTool(this);
|
|
177025
177275
|
});
|
|
177026
177276
|
await registerLazy(ToolNames.EDIT, async () => {
|
|
177027
|
-
const { EditTool } = await import("./edit-
|
|
177277
|
+
const { EditTool } = await import("./edit-XEHFRLTK.js");
|
|
177028
177278
|
return new EditTool(this);
|
|
177029
177279
|
});
|
|
177030
177280
|
await registerLazy(ToolNames.NOTEBOOK_EDIT, async () => {
|
|
177031
|
-
const { NotebookEditTool } = await import("./notebook-edit-
|
|
177281
|
+
const { NotebookEditTool } = await import("./notebook-edit-FTYD3OR2.js");
|
|
177032
177282
|
return new NotebookEditTool(this);
|
|
177033
177283
|
});
|
|
177034
177284
|
await registerLazy(ToolNames.WRITE_FILE, async () => {
|
|
177035
|
-
const { WriteFileTool } = await import("./write-file-
|
|
177285
|
+
const { WriteFileTool } = await import("./write-file-6FNRAYPO.js");
|
|
177036
177286
|
return new WriteFileTool(this);
|
|
177037
177287
|
});
|
|
177038
177288
|
await registerLazy(ToolNames.SHELL, async () => {
|
|
177039
|
-
const { ShellTool: ShellTool2 } = await import("./shell-
|
|
177289
|
+
const { ShellTool: ShellTool2 } = await import("./shell-BUXOKE4X.js");
|
|
177040
177290
|
return new ShellTool2(this);
|
|
177041
177291
|
});
|
|
177042
177292
|
await registerLazy(ToolNames.REPORT_FINDINGS, async () => {
|
|
@@ -177052,22 +177302,22 @@ var Config = class _Config {
|
|
|
177052
177302
|
}
|
|
177053
177303
|
if (!this.sdkMode && (supportsUserInteraction || options2?.forSubAgent)) {
|
|
177054
177304
|
await registerLazy(ToolNames.EXIT_PLAN_MODE, async () => {
|
|
177055
|
-
const { ExitPlanModeTool: ExitPlanModeTool2 } = await import("./exitPlanMode-
|
|
177305
|
+
const { ExitPlanModeTool: ExitPlanModeTool2 } = await import("./exitPlanMode-PAZMVUS6.js");
|
|
177056
177306
|
return new ExitPlanModeTool2(this);
|
|
177057
177307
|
});
|
|
177058
177308
|
}
|
|
177059
177309
|
if (!this.sdkMode && supportsUserInteraction) {
|
|
177060
177310
|
await registerLazy(ToolNames.ENTER_PLAN_MODE, async () => {
|
|
177061
|
-
const { EnterPlanModeTool } = await import("./enterPlanMode-
|
|
177311
|
+
const { EnterPlanModeTool } = await import("./enterPlanMode-TJNAVH6W.js");
|
|
177062
177312
|
return new EnterPlanModeTool(this);
|
|
177063
177313
|
});
|
|
177064
177314
|
}
|
|
177065
177315
|
await registerLazy(ToolNames.ENTER_WORKTREE, async () => {
|
|
177066
|
-
const { EnterWorktreeTool } = await import("./enter-worktree-
|
|
177316
|
+
const { EnterWorktreeTool } = await import("./enter-worktree-A2WD27HQ.js");
|
|
177067
177317
|
return new EnterWorktreeTool(this);
|
|
177068
177318
|
});
|
|
177069
177319
|
await registerLazy(ToolNames.EXIT_WORKTREE, async () => {
|
|
177070
|
-
const { ExitWorktreeTool } = await import("./exit-worktree-
|
|
177320
|
+
const { ExitWorktreeTool } = await import("./exit-worktree-S7KUQ4HO.js");
|
|
177071
177321
|
return new ExitWorktreeTool(this);
|
|
177072
177322
|
});
|
|
177073
177323
|
if (resolveInteractionMode(this) === "interactive" && !this.sdkMode && !this.getScreenReader() && !options2?.forSubAgent) {
|
|
@@ -177125,33 +177375,33 @@ var Config = class _Config {
|
|
|
177125
177375
|
}
|
|
177126
177376
|
if (this.isAgentTeamEnabled()) {
|
|
177127
177377
|
await registerLazy(ToolNames.TEAM_CREATE, async () => {
|
|
177128
|
-
const { TeamCreateTool } = await import("./team-create-
|
|
177378
|
+
const { TeamCreateTool } = await import("./team-create-2M2ZEJK3.js");
|
|
177129
177379
|
return new TeamCreateTool(this);
|
|
177130
177380
|
});
|
|
177131
177381
|
await registerLazy(ToolNames.TEAM_DELETE, async () => {
|
|
177132
|
-
const { TeamDeleteTool } = await import("./team-delete-
|
|
177382
|
+
const { TeamDeleteTool } = await import("./team-delete-WBSKRFVF.js");
|
|
177133
177383
|
return new TeamDeleteTool(this);
|
|
177134
177384
|
});
|
|
177135
177385
|
await registerLazy(ToolNames.TEAM_PLAN_APPROVAL, async () => {
|
|
177136
|
-
const { TeamPlanApprovalTool } = await import("./team-plan-approval-
|
|
177386
|
+
const { TeamPlanApprovalTool } = await import("./team-plan-approval-AHSBAARB.js");
|
|
177137
177387
|
return new TeamPlanApprovalTool(this);
|
|
177138
177388
|
});
|
|
177139
177389
|
if (!options2?.forSubAgent) {
|
|
177140
177390
|
await registerLazy(ToolNames.REQUEST_SHUTDOWN, async () => {
|
|
177141
|
-
const { RequestShutdownTool } = await import("./request-shutdown-
|
|
177391
|
+
const { RequestShutdownTool } = await import("./request-shutdown-LRWCJOEG.js");
|
|
177142
177392
|
return new RequestShutdownTool(this);
|
|
177143
177393
|
});
|
|
177144
177394
|
}
|
|
177145
177395
|
await registerLazy(ToolNames.TASK_CREATE, async () => {
|
|
177146
|
-
const { TaskCreateTool } = await import("./task-create-
|
|
177396
|
+
const { TaskCreateTool } = await import("./task-create-2BHPJUF3.js");
|
|
177147
177397
|
return new TaskCreateTool(this);
|
|
177148
177398
|
});
|
|
177149
177399
|
await registerLazy(ToolNames.TASK_UPDATE, async () => {
|
|
177150
|
-
const { TaskUpdateTool } = await import("./task-update-
|
|
177400
|
+
const { TaskUpdateTool } = await import("./task-update-NGKKBFU5.js");
|
|
177151
177401
|
return new TaskUpdateTool(this);
|
|
177152
177402
|
});
|
|
177153
177403
|
await registerLazy(ToolNames.TASK_LIST, async () => {
|
|
177154
|
-
const { TaskListTool } = await import("./task-list-
|
|
177404
|
+
const { TaskListTool } = await import("./task-list-6LPOL5UB.js");
|
|
177155
177405
|
return new TaskListTool(this);
|
|
177156
177406
|
});
|
|
177157
177407
|
}
|
|
@@ -177229,7 +177479,7 @@ var Config = class _Config {
|
|
|
177229
177479
|
}
|
|
177230
177480
|
}
|
|
177231
177481
|
await registerLazy(ToolNames.MONITOR, async () => {
|
|
177232
|
-
const { MonitorTool } = await import("./monitor-
|
|
177482
|
+
const { MonitorTool } = await import("./monitor-YAWMJU7P.js");
|
|
177233
177483
|
return new MonitorTool(this);
|
|
177234
177484
|
});
|
|
177235
177485
|
if (this.pendingMcpBudgetCallback) {
|
|
@@ -178487,7 +178737,7 @@ export {
|
|
|
178487
178737
|
*/
|
|
178488
178738
|
/*! Bundled license information:
|
|
178489
178739
|
|
|
178490
|
-
@modelcontextprotocol/client/dist/src-
|
|
178740
|
+
@modelcontextprotocol/client/dist/src-xKF0PJN-.mjs:
|
|
178491
178741
|
(*!
|
|
178492
178742
|
* content-type
|
|
178493
178743
|
* Copyright(c) 2015 Douglas Christopher Wilson
|