@qwen-code/qwen-code 0.23.1 → 0.23.2-nightly.20260909.2e212144d3
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/README.md +35 -15
- package/bundled/computer-use/SKILL.md +1 -1
- package/bundled/qc-helper/docs/configuration/auth.md +1 -1
- package/bundled/qc-helper/docs/configuration/model-providers.md +19 -15
- package/bundled/qc-helper/docs/configuration/settings.md +1 -1
- package/bundled/qc-helper/docs/features/_meta.ts +1 -0
- package/bundled/qc-helper/docs/features/channels/dingtalk.md +1 -1
- package/bundled/qc-helper/docs/features/channels/github.md +1 -9
- package/bundled/qc-helper/docs/features/channels/overview.md +26 -51
- package/bundled/qc-helper/docs/features/channels/qqbot.md +1 -2
- package/bundled/qc-helper/docs/features/commands.md +79 -17
- package/bundled/qc-helper/docs/features/computer-use.md +1 -1
- package/bundled/qc-helper/docs/features/cross-session-protocol.md +291 -0
- package/bundled/qc-helper/docs/features/goals.md +3 -1
- package/bundled/qc-helper/docs/features/sub-agents.md +8 -0
- package/bundled/qc-helper/docs/qwen-serve.md +62 -48
- package/chunks/{MaxSizedBox-UDO6Y7RB.js → MaxSizedBox-ZBGWYJZW.js} +20 -19
- package/chunks/{StandaloneSessionPicker-D4CUOO4H.js → StandaloneSessionPicker-NR5ACIJZ.js} +35 -34
- package/chunks/{acpAgent-KWLJFADK.js → acpAgent-DM6XRCDQ.js} +307 -183
- package/chunks/{agent-GSUPGEOL.js → agent-EF3IIYE3.js} +13 -13
- package/chunks/{agent-headless-HNYCQUJB.js → agent-headless-5J2KFYR4.js} +13 -13
- package/chunks/{anthropicContentGenerator-I7LQZH26.js → anthropicContentGenerator-VIW2FG7G.js} +4 -4
- package/chunks/{artifact-tool-P52OKKEF.js → artifact-tool-G5LHNECG.js} +1 -1
- package/chunks/{askUserQuestion-I5W5S3D6.js → askUserQuestion-R3TXY77M.js} +1 -1
- package/chunks/{bridge-B7CV6RVI.js → bridge-LEMQM6QE.js} +21 -20
- package/chunks/{channel-management-service-TRTLQTSV.js → channel-management-service-TGF6XFXT.js} +4 -4
- package/chunks/{channel-settings-store-FW45IRUP.js → channel-settings-store-FV365JSF.js} +29 -28
- package/chunks/{channel-worker-group-PIYPVCTF.js → channel-worker-group-SQ5FRWOH.js} +5 -5
- package/chunks/{channel-worker-manager-FQHEDTD2.js → channel-worker-manager-TU4ZNWOE.js} +5 -5
- package/chunks/{channel-worker-supervisor-XJPZZ3VK.js → channel-worker-supervisor-EMITFMCP.js} +4 -4
- package/chunks/{chunk-3SH53ANB.js → chunk-22GORRNY.js} +12 -0
- package/chunks/{chunk-3LPJ776W.js → chunk-2HYOOFDS.js} +9 -6
- package/chunks/{chunk-S6QVI3MV.js → chunk-34VPADLG.js} +2 -2
- package/chunks/{chunk-WJDXKQIO.js → chunk-3A2IMUDH.js} +14 -2
- package/chunks/{chunk-DXQ6Z7AH.js → chunk-3O77M472.js} +224 -84
- package/chunks/{chunk-5CVY5Q2P.js → chunk-43EUMPKQ.js} +1 -1
- package/chunks/{chunk-ZNO5BUAD.js → chunk-4DIMJKWU.js} +46 -37
- package/chunks/{chunk-O2JBJQCF.js → chunk-5HV2HPO7.js} +1 -1
- package/chunks/{chunk-RXT4QBDX.js → chunk-5WBA3DEF.js} +1 -1
- package/chunks/{chunk-ARYNBBBM.js → chunk-6GAYNM3F.js} +3 -3
- package/chunks/{chunk-EEKU6COG.js → chunk-6S7YYUUH.js} +3 -3
- package/chunks/{chunk-OPMKGOLD.js → chunk-6VIATHL7.js} +1 -1
- package/chunks/{chunk-ENZDGHGJ.js → chunk-76I36BEM.js} +3 -3
- package/chunks/{chunk-B54PFQS5.js → chunk-7CLLH5TI.js} +1 -1
- package/chunks/{chunk-UHUT4IDM.js → chunk-7IDZFJAV.js} +9 -9
- package/chunks/{chunk-5Z4FCEPY.js → chunk-7K4GGN3D.js} +606 -109
- package/chunks/{chunk-ZPL2TZNA.js → chunk-7KZVXJ4U.js} +1 -1
- package/chunks/{chunk-FWRRUITH.js → chunk-7WCJEY3A.js} +4 -4
- package/chunks/{chunk-MFYH2VXV.js → chunk-A7QZIGRB.js} +2 -2
- package/chunks/{chunk-27LTEY6D.js → chunk-ATBLEXXV.js} +7 -2
- package/chunks/{chunk-3BTHHXXE.js → chunk-AUTUFD5X.js} +1 -1
- package/chunks/chunk-AXMWHKXA.js +42 -0
- package/chunks/{chunk-QZOXVQPK.js → chunk-AXWTG6R7.js} +2 -5
- package/chunks/{chunk-PDUMGZ2P.js → chunk-BDAVT6K2.js} +486 -409
- package/chunks/{chunk-2YS3NU4A.js → chunk-BDP3NTWD.js} +3 -3
- package/chunks/{chunk-IKG2YVRZ.js → chunk-BZUHZCUO.js} +2 -2
- package/chunks/{chunk-USN6VNTO.js → chunk-C24ZDDNY.js} +1 -1
- package/chunks/{chunk-RPFJJ33Z.js → chunk-CALTQWTZ.js} +1 -1
- package/chunks/{chunk-BF3RUIVP.js → chunk-CH2YDT6X.js} +36 -38
- package/chunks/{chunk-3VDLQUR2.js → chunk-D6AGS266.js} +1 -1
- package/chunks/{chunk-DO5SMV52.js → chunk-D7DFZAK2.js} +17 -11
- package/chunks/{chunk-GM44O6F7.js → chunk-DARWOZY6.js} +1 -1
- package/chunks/{chunk-HUX2DOTF.js → chunk-DGNRLJ6S.js} +3 -3
- package/chunks/{chunk-FW4E4QPG.js → chunk-DVOCOIS5.js} +1 -1
- package/chunks/{chunk-OESZTXTG.js → chunk-E4LXNQAK.js} +1 -1
- package/chunks/{chunk-TWAMIEQ2.js → chunk-EATP5QCN.js} +16 -18
- package/chunks/{chunk-DZ6D4B3K.js → chunk-EDSU3VUG.js} +12 -5
- package/chunks/{chunk-EOET4H7C.js → chunk-EE5ZD4XU.js} +3 -3
- package/chunks/{chunk-B3EL44K3.js → chunk-EN3Q2S3J.js} +3 -3
- package/chunks/{chunk-N7YQEKGX.js → chunk-EOLGAQ25.js} +16 -15
- package/chunks/{chunk-3YQMUBTS.js → chunk-EYCW6UF2.js} +7 -7
- package/chunks/{chunk-ZELCTN6Y.js → chunk-F23YN37B.js} +10 -0
- package/chunks/{chunk-FPGTNKCP.js → chunk-F3M6P6IQ.js} +199 -1
- package/chunks/{chunk-B44JBZBB.js → chunk-F4SAL7WM.js} +91 -3
- package/chunks/{chunk-XZ3Z43XL.js → chunk-FEEVHJOR.js} +3 -3
- package/chunks/{chunk-CHVU543W.js → chunk-FN4KHWCL.js} +1 -1
- package/chunks/{chunk-6QV7Z74P.js → chunk-FRS3P7MQ.js} +15 -2
- package/chunks/{chunk-FDOGGKAA.js → chunk-GSFV5RQW.js} +2 -0
- package/chunks/{chunk-XBVNNDPK.js → chunk-GSYD7MYP.js} +8 -3
- package/chunks/{chunk-VF6D6EGV.js → chunk-HSO6D4KX.js} +82 -25
- package/chunks/{chunk-L7V52QEZ.js → chunk-HUJJFSMO.js} +10 -10
- package/chunks/{chunk-CIKL2DQP.js → chunk-HW4MRP4V.js} +1 -1
- package/chunks/{chunk-TWWS7XUW.js → chunk-HWLLUDIA.js} +108 -16
- package/chunks/{chunk-75LBC7SV.js → chunk-IKK6NNS6.js} +32 -29
- package/chunks/{chunk-UXDVUFKU.js → chunk-JFAGT5YG.js} +2 -2
- package/chunks/{chunk-6SADVYQQ.js → chunk-JGTMTJSQ.js} +1 -1
- package/chunks/{chunk-45ROPFQY.js → chunk-JYGIJA4W.js} +1 -1
- package/chunks/{chunk-5WC2ECUK.js → chunk-KECCLCXM.js} +42 -8
- package/chunks/{chunk-CABDNUJ4.js → chunk-KEPC5BOL.js} +5 -5
- package/chunks/{chunk-WNISCNTA.js → chunk-L5VHJYHH.js} +2 -2
- package/chunks/{chunk-25CBAK3H.js → chunk-LKBOBUA2.js} +2 -2
- package/chunks/{chunk-6QILGINT.js → chunk-LOBKNYPR.js} +2 -2
- package/chunks/{chunk-2ZFO5JD7.js → chunk-LOVGQ3HZ.js} +9 -9
- package/chunks/{chunk-QK4K76T6.js → chunk-MUF4UGPB.js} +2 -2
- package/chunks/{chunk-JGDRB4FP.js → chunk-N3Z6Q7KC.js} +125 -10
- package/chunks/chunk-NFXXBWSE.js +463 -0
- package/chunks/{chunk-PQSCGZT2.js → chunk-NPKCVSXX.js} +26 -2
- package/chunks/{chunk-YCEKI7QX.js → chunk-NV4YYXFT.js} +1 -1
- package/chunks/{chunk-5IL2BZHW.js → chunk-O6BFERWN.js} +3 -3
- package/chunks/{chunk-TGC4264Q.js → chunk-OVTPETDL.js} +5 -5
- package/chunks/chunk-PLEBBGHL.js +1401 -0
- package/chunks/{chunk-3VWPPK5Q.js → chunk-PWR6BQ3U.js} +4 -4
- package/chunks/{chunk-D6AQNMUA.js → chunk-QA2B26PL.js} +3 -3
- package/chunks/{chunk-NFIDVZND.js → chunk-QB3KS3N3.js} +2 -21
- package/chunks/{chunk-LNCNUMJ5.js → chunk-SK6VACCM.js} +558 -158
- package/chunks/{chunk-YAC7H4K3.js → chunk-SM66GFKJ.js} +1 -1
- package/chunks/{chunk-MA5OUNN6.js → chunk-SNMUO5Z7.js} +1 -1
- package/chunks/{chunk-IRKQ4YYX.js → chunk-SVWWF5TZ.js} +29 -1
- package/chunks/{chunk-6JXHO7LG.js → chunk-SYKPMH2X.js} +3 -3
- package/chunks/{chunk-5HBA2Z7V.js → chunk-TGNNLRC3.js} +2 -3
- package/chunks/{chunk-EHTKOO6W.js → chunk-TRQNRP2H.js} +2 -2
- package/chunks/{chunk-LZGFVUWZ.js → chunk-UQOP2APG.js} +4 -24
- package/chunks/{chunk-T2IHCZLS.js → chunk-VAWM3A5N.js} +1 -1
- package/chunks/{chunk-M73KHGNR.js → chunk-VJJXG73H.js} +404 -226
- package/chunks/{chunk-WAASYFPK.js → chunk-VJWJOKOQ.js} +2 -2
- package/chunks/{chunk-WQMUGQ6G.js → chunk-VR6Y23FW.js} +1 -1
- package/chunks/{chunk-E7XSUYCZ.js → chunk-VX2NR3SD.js} +19 -4
- package/chunks/{chunk-XVTCSVBK.js → chunk-WDVV3LRM.js} +193 -169
- package/chunks/{chunk-RNYENHN5.js → chunk-WEU6O6VN.js} +2 -2
- package/chunks/{chunk-YHDGABDC.js → chunk-XKBFYTCD.js} +1 -1
- package/chunks/{chunk-66JBCTJF.js → chunk-Y7YHAY32.js} +23 -6
- package/chunks/{chunk-7SL55L5H.js → chunk-YIE6REQ5.js} +20 -15
- package/chunks/{chunk-ZU2T5JIS.js → chunk-ZEFWBG2C.js} +736 -1148
- package/chunks/{chunk-6TPVIESH.js → chunk-ZM2TCZZ7.js} +3 -3
- package/chunks/{chunk-2TMJRF46.js → chunk-ZZ7RVOTU.js} +50 -18
- package/chunks/{config-utils-KTDSQ4MU.js → config-utils-SXFK3G4X.js} +24 -23
- package/chunks/{contextCommand-UQ3KRYGK.js → contextCommand-QFPD26QO.js} +21 -20
- package/chunks/{core-runtime-JR34JAFH.js → core-runtime-VXKNBODM.js} +26 -24
- package/chunks/{create-sub-session-RGPJOI4S.js → create-sub-session-7WSQETFR.js} +20 -19
- package/chunks/{daemon-UI6SQSBV.js → daemon-U2456K5H.js} +2 -2
- package/chunks/{daemon-git-worktree-guard-H3OA26KQ.js → daemon-git-worktree-guard-I4DCSDUS.js} +20 -19
- package/chunks/{daemon-status-provider-6WZLKSZU.js → daemon-status-provider-5UV56RI4.js} +25 -24
- package/chunks/{daemon-trust-policy-3EDP2BYD.js → daemon-trust-policy-DKIBWTKU.js} +25 -24
- package/chunks/{daemon-trust-policy-monitor-CRHZPK52.js → daemon-trust-policy-monitor-CPSD7UKT.js} +25 -24
- package/chunks/{deferred-core-runtime-LO5NTQQ4.js → deferred-core-runtime-D2RF35BL.js} +20 -19
- package/chunks/{dist-STAGIFNB.js → dist-6YDUH3BB.js} +388 -102
- package/chunks/{dist-XJ25G6OH.js → dist-BNQVF565.js} +2 -8
- package/chunks/{dist-NQ2636VT.js → dist-F34J4FZX.js} +1 -1
- package/chunks/{dist-OR2ZQTXZ.js → dist-F6JLAJLE.js} +1 -1
- package/chunks/{dist-24TCWK5H.js → dist-K5GHMXIG.js} +2 -2
- package/chunks/{dist-WZTUKIDR.js → dist-NP7QKLVG.js} +2 -2
- package/chunks/{dist-M4CBX53H.js → dist-UFTFGI6I.js} +1 -1
- package/chunks/{dist-5I4HLUTO.js → dist-XLV33CLY.js} +1 -2
- package/chunks/{dist-FDISN4AK.js → dist-ZDNJK74R.js} +3 -7
- package/chunks/{edit-LB7Z7XK5.js → edit-4IBADZ3O.js} +13 -13
- package/chunks/{enterPlanMode-P6TVUFIY.js → enterPlanMode-YN3GPQU5.js} +13 -13
- package/chunks/{environment-QATJNNKI.js → environment-E272IJMF.js} +22 -21
- package/chunks/{errors-3XJ37PS2.js → errors-CVAH3RWQ.js} +22 -21
- package/chunks/{exitPlanMode-A3OKL5UO.js → exitPlanMode-24J5IHGC.js} +13 -13
- package/chunks/{fast-path-DBIT5YQQ.js → fast-path-M5IDBMXF.js} +3 -3
- package/chunks/{glob-73EDTXUE.js → glob-ERBD7JYP.js} +13 -13
- package/chunks/{goal-tools-DFI6YMSD.js → goal-tools-245ULLQT.js} +13 -13
- package/chunks/{handleAutoUpdate-2FUNJO3B.js → handleAutoUpdate-JDZHHZKK.js} +22 -21
- package/chunks/{i18n-FDIA6KFI.js → i18n-LA4D5IXM.js} +20 -19
- package/chunks/{initializer-4MJTJOTW.js → initializer-SHPTSWUZ.js} +25 -24
- package/chunks/{installationInfo-232RA2OK.js → installationInfo-QEQEPB3G.js} +20 -19
- package/chunks/{list-WN6WSGEB.js → list-IBHCQWTF.js} +28 -27
- package/chunks/{list-agents-I5TRH3J7.js → list-agents-EDPZCGKN.js} +5 -4
- package/chunks/{llm-UDFWQWZA.js → llm-JAWCQLA4.js} +68 -62
- package/chunks/{llm-content-generator-VLMZ2A7A.js → llm-content-generator-GOV3A23T.js} +2 -2
- package/chunks/{loadedSettingsAdapter-OBQEIXM7.js → loadedSettingsAdapter-RVE2GNVU.js} +25 -24
- package/chunks/{loggingContentGenerator-RGVUMUVX.js → loggingContentGenerator-SSHNN5YW.js} +15 -15
- package/chunks/{managed-npm-update-QBAJYCFU.js → managed-npm-update-BHSTITQO.js} +20 -19
- package/chunks/{mcp-OTIZZCPY.js → mcp-6ZZ7P2HU.js} +25 -24
- package/chunks/{monitor-BV5XF6LL.js → monitor-RKK6GSHG.js} +13 -13
- package/chunks/{nonInteractiveCli-W6MUKDVJ.js → nonInteractiveCli-UQHP3G6P.js} +58 -57
- package/chunks/{notebook-edit-HGBEKGTE.js → notebook-edit-YM47A7WO.js} +13 -13
- package/chunks/{open-with-auth-D6JD6LDS.js → open-with-auth-6MVIHMXB.js} +1 -1
- package/chunks/{openaiContentGenerator-NSU3ERBH.js → openaiContentGenerator-FHKDWNI2.js} +9 -9
- package/chunks/{pidfile-LE3TU4GE.js → pidfile-SIIEJEEH.js} +23 -20
- package/chunks/{processUtils-YFBGJK67.js → processUtils-JF7CWBJC.js} +2 -2
- package/chunks/{prompt-terminal-ledger-4W4W7DSO.js → prompt-terminal-ledger-FXXHAEQU.js} +21 -20
- package/chunks/{qwenContentGenerator-HTA57WFC.js → qwenContentGenerator-KFJ77JP6.js} +16 -16
- package/chunks/{read-file-KHPQ2MB6.js → read-file-S2NOCBIL.js} +4 -4
- package/chunks/{resumeHistoryUtils-K7RV3QBN.js → resumeHistoryUtils-QHHPSQWU.js} +22 -21
- package/chunks/{ripGrep-NBBVCMG4.js → ripGrep-F6TNOJUO.js} +5 -5
- package/chunks/{run-qwen-serve-A3JBOZCM.js → run-qwen-serve-KYBDQRDD.js} +216 -64
- package/chunks/{runtime-7YOU2KJ3.js → runtime-3WNOFLCR.js} +32 -29
- package/chunks/{scheduled-tasks-52LXK7LN.js → scheduled-tasks-RNBH56DJ.js} +23 -22
- package/chunks/{scheduler-J44M72VM.js → scheduler-ERMW7Q7B.js} +22 -21
- package/chunks/{send-message-AWKUDJBH.js → send-message-V5T3NMFM.js} +3 -3
- package/chunks/{serve-TRC6XJUB.js → serve-7NV46RMP.js} +25 -24
- package/chunks/{server-YPNTJLX2.js → server-6RZJR5QF.js} +106 -154
- package/chunks/{session-FMMIBFYX.js → session-Z4EV7NVV.js} +91 -63
- package/chunks/{session-attachments-root-LDJMNK7K.js → session-attachments-root-SG5FC52X.js} +20 -19
- package/chunks/{session-pr-refresh-NLR4EK2J.js → session-pr-refresh-ILC4Z3ZM.js} +22 -21
- package/chunks/{settings-A46L577J.js → settings-Y47SPE3X.js} +24 -23
- package/chunks/{shell-Q5LSQPPY.js → shell-YBVCOPVO.js} +13 -13
- package/chunks/{skill-75KPJRCM.js → skill-AXC63EBA.js} +4 -4
- package/chunks/{skill-settings-775YT4YR.js → skill-settings-AFPAYGLO.js} +24 -23
- package/chunks/{spawnChannel-XY73I5CU.js → spawnChannel-ZFL4J2V3.js} +20 -19
- package/chunks/{standalone-update-L46XXNQ2.js → standalone-update-Y2OZPLNJ.js} +21 -20
- package/chunks/{start-opentui-ui-WLV43247.js → start-opentui-ui-G6TKT4LI.js} +449 -210
- package/chunks/{startInteractiveUI-F5DKMLOV.js → startInteractiveUI-YTNDPW7J.js} +1182 -1245
- package/chunks/{task-create-PMAFST2T.js → task-create-MWXJFRRM.js} +3 -3
- package/chunks/{task-list-R2HSY2NC.js → task-list-EYO3FE57.js} +2 -2
- package/chunks/{task-update-JYC57USF.js → task-update-2JJJRHMT.js} +3 -3
- package/chunks/{team-create-2PATB77U.js → team-create-BUFLGGSH.js} +13 -13
- package/chunks/{team-delete-CBHVBTPB.js → team-delete-IQZ6XGFI.js} +2 -2
- package/chunks/{team-plan-approval-QTANEWOS.js → team-plan-approval-OUWWM42U.js} +13 -13
- package/chunks/{terminal-image-renderer-OGULCFNF.js → terminal-image-renderer-WH2WV5ES.js} +20 -19
- package/chunks/{theme-manager-CNO3QERP.js → theme-manager-5UDRARM2.js} +20 -19
- package/chunks/{tool-search-VXWEOZE7.js → tool-search-MCDIRPHN.js} +4 -4
- package/chunks/{total-session-admission-4KAADZPB.js → total-session-admission-VL27U74Z.js} +21 -20
- package/chunks/{trustedFolders-PPJSOPOT.js → trustedFolders-MSXT4VDD.js} +21 -20
- package/chunks/{update-relaunch-4PT4MW7B.js → update-relaunch-JKLEWVCB.js} +5 -5
- package/chunks/{updateCheck-WAVFLWNG.js → updateCheck-ARTHAJT2.js} +20 -19
- package/chunks/{useAutoAcceptIndicator-XNED4NRB.js → useAutoAcceptIndicator-YEAAGYVU.js} +26 -25
- package/chunks/{validateNonInterActiveAuth-J676DUQ2.js → validateNonInterActiveAuth-EMRQKH5S.js} +56 -55
- package/chunks/{version-J6SRRQB2.js → version-HFQU35WD.js} +3 -1
- package/chunks/{web-fetch-FMZZYX44.js → web-fetch-QBXAO6VF.js} +4 -4
- package/chunks/{web-search-3G2KXCX5.js → web-search-2URQXA3A.js} +186 -9
- package/chunks/{web-shell-static-POZHGGXE.js → web-shell-static-BFDESDD4.js} +5 -4
- package/chunks/{workflow-PPZZICQ7.js → workflow-JDD6WDAH.js} +204 -68
- package/chunks/{workspace-providers-status-IIYTAQST.js → workspace-providers-status-B4IKR6YJ.js} +27 -26
- package/chunks/{workspace-registration-store-VHCDXAV7.js → workspace-registration-store-PJ3YHR45.js} +1 -2
- package/chunks/{workspace-registry-I7VQIPS2.js → workspace-registry-WVYJ5UGB.js} +21 -20
- package/chunks/{workspace-runtime-coordinator-DBGNY32G.js → workspace-runtime-coordinator-DXL5YVAG.js} +21 -20
- package/chunks/{workspace-service-QSKB2T54.js → workspace-service-QNGAMVH7.js} +26 -25
- package/chunks/{workspace-skills-status-T7GPT65J.js → workspace-skills-status-BEISJIII.js} +25 -24
- package/chunks/{workspace-trust-reconciler-2PKRDAU4.js → workspace-trust-reconciler-ORYJF5L4.js} +26 -25
- package/chunks/{write-file-L76CGFTQ.js → write-file-DWLKFBTJ.js} +14 -14
- package/chunks/{zoom-image-TDJJY2VZ.js → zoom-image-BYVIXSNQ.js} +4 -4
- package/cli.js +12 -12
- package/export-transcript-document.js +106 -106
- package/package.json +4 -4
- package/web-shell/assets/{abnfDiagram-VCTEODGH-DHc6plZn.js → abnfDiagram-VCTEODGH-C_8kzsly.js} +1 -1
- package/web-shell/assets/{arc-BQ9m8TDV.js → arc-CDg7Zfpm.js} +1 -1
- package/web-shell/assets/{architectureDiagram-5GKGNRK7-D5ap3oVB.js → architectureDiagram-5GKGNRK7-DZzdCWyF.js} +1 -1
- package/web-shell/assets/{blockDiagram-NRAW4CY4-BIbnyNph.js → blockDiagram-NRAW4CY4-DI3B4gyR.js} +1 -1
- package/web-shell/assets/{c4Diagram-UCG6FXSJ-BRsdx_iG.js → c4Diagram-UCG6FXSJ-CfOgwHZW.js} +1 -1
- package/web-shell/assets/channel-e4xwS72w.js +1 -0
- package/web-shell/assets/{chunk-2Q5K7J3B-3lf1fNlx.js → chunk-2Q5K7J3B-B_PUth0g.js} +1 -1
- package/web-shell/assets/{chunk-5VM5RSS4-DP8VNRc4.js → chunk-5VM5RSS4-CrKtvBIL.js} +1 -1
- package/web-shell/assets/{chunk-F27PBJKO-DrohDmZ6.js → chunk-F27PBJKO-B4z2n8Py.js} +1 -1
- package/web-shell/assets/{chunk-G27WJ6UU-UZ2QhSx6.js → chunk-G27WJ6UU-BUtrFEO8.js} +1 -1
- package/web-shell/assets/{chunk-JWPE2WC7-BIMHVcZK.js → chunk-JWPE2WC7-Cqw3aXW0.js} +1 -1
- package/web-shell/assets/{chunk-LCL6LL3I-izRxdSDd.js → chunk-LCL6LL3I-CZolnvls.js} +1 -1
- package/web-shell/assets/{chunk-POPQ4Y6H-CXADD4PP.js → chunk-POPQ4Y6H-DivgasCa.js} +1 -1
- package/web-shell/assets/{chunk-SVP7TREG-B96d8Y_1.js → chunk-SVP7TREG--seyb1B6.js} +1 -1
- package/web-shell/assets/{chunk-XXDRQBXY-CF2sVQpv.js → chunk-XXDRQBXY-D7pHtuVM.js} +1 -1
- package/web-shell/assets/classDiagram-DTDB5LWJ-CzXfUUOt.js +1 -0
- package/web-shell/assets/classDiagram-v2-JRS7N3AN-CzXfUUOt.js +1 -0
- package/web-shell/assets/{cose-bilkent-JH36ORCC-CT6tXVAS.js → cose-bilkent-JH36ORCC-4MWaRF_3.js} +1 -1
- package/web-shell/assets/{cynefin-OW5HDTMX-X1NS4vtV.js → cynefin-OW5HDTMX-nhJhAjgD.js} +1 -1
- package/web-shell/assets/{cynefinDiagram-5FMLGOSQ-DNsKNOT4.js → cynefinDiagram-5FMLGOSQ-NF-PwXlq.js} +1 -1
- package/web-shell/assets/{dagre-3AP2YEHR-9-AHKqsb.js → dagre-3AP2YEHR-Bu0ncdWP.js} +1 -1
- package/web-shell/assets/{diagram-S7CK7UJ4-Bjgms7j6.js → diagram-S7CK7UJ4-CsvhFHZC.js} +1 -1
- package/web-shell/assets/{diagram-UQ7AKVKN-h6bCprbE.js → diagram-UQ7AKVKN-Ck61sIB3.js} +1 -1
- package/web-shell/assets/{diagram-VSXAHHWV-4SbQXVLt.js → diagram-VSXAHHWV-D0171zrb.js} +1 -1
- package/web-shell/assets/{diagram-VX7I27RA-B5gPCzzB.js → diagram-VX7I27RA-DvdxY4UL.js} +1 -1
- package/web-shell/assets/{diagram-Z3DM3KII-DFJXIA3A.js → diagram-Z3DM3KII-CGGpseiB.js} +1 -1
- package/web-shell/assets/{ebnfDiagram-PWID7BFC-FwyaU7VY.js → ebnfDiagram-PWID7BFC-K8-QMvY8.js} +1 -1
- package/web-shell/assets/{erDiagram-SSCWMZ5O-8vJQh2te.js → erDiagram-SSCWMZ5O-D316nAem.js} +1 -1
- package/web-shell/assets/{flowDiagram-A5DVABFB-BzA_1gMN.js → flowDiagram-A5DVABFB-B7siy_mn.js} +1 -1
- package/web-shell/assets/{ganttDiagram-EL5Y4UJY-Co-ABbVX.js → ganttDiagram-EL5Y4UJY-BZQDxzTu.js} +1 -1
- package/web-shell/assets/{gitGraphDiagram-WWUBYQGX-DW_FcyrX.js → gitGraphDiagram-WWUBYQGX-DZynLCSV.js} +1 -1
- package/web-shell/assets/{index-BbMXfhNG.js → index-9ie6xLTM.js} +1 -1
- package/web-shell/assets/{index-Bu-rZoJ-.js → index-DirkXQEg.js} +488 -474
- package/web-shell/assets/index-DzdST_7L.css +36 -0
- package/web-shell/assets/{infoDiagram-RXCK75RN-BEgfhUFN.js → infoDiagram-RXCK75RN-B0gr769A.js} +1 -1
- package/web-shell/assets/{ishikawaDiagram-5VMMS53U-DCsMxQmc.js → ishikawaDiagram-5VMMS53U-0pQFfjvX.js} +1 -1
- package/web-shell/assets/{journeyDiagram-EYS64GPL-DyIEYoHz.js → journeyDiagram-EYS64GPL-DEGtClWb.js} +1 -1
- package/web-shell/assets/{kanban-definition-3QL26DDD-CkxjqCNr.js → kanban-definition-3QL26DDD-CnN8gPzw.js} +1 -1
- package/web-shell/assets/{layout-BEWc0Al9.js → layout-C_70RhaT.js} +1 -1
- package/web-shell/assets/{linear-CNuNxirL.js → linear-BJ2ZLmcq.js} +1 -1
- package/web-shell/assets/{mermaid.core-DZBre674.js → mermaid.core-RlY0zPNC.js} +6 -6
- package/web-shell/assets/{mindmap-definition-FBJOCRG2-CpafFz_F.js → mindmap-definition-FBJOCRG2-CpVAxTNl.js} +1 -1
- package/web-shell/assets/{pegDiagram-XKGWAZYB-DfZqk_dq.js → pegDiagram-XKGWAZYB-DmrSv3hD.js} +1 -1
- package/web-shell/assets/{pieDiagram-E7YTZNPT-S0UWXlgC.js → pieDiagram-E7YTZNPT-CJmgp8KJ.js} +1 -1
- package/web-shell/assets/{quadrantDiagram-AXDQQJYC-dd37_Ohj.js → quadrantDiagram-AXDQQJYC-UsgOyNco.js} +1 -1
- package/web-shell/assets/{railroadDiagram-O6MQD6OU-CH8NJZ7u.js → railroadDiagram-O6MQD6OU-DQ6gMs_W.js} +1 -1
- package/web-shell/assets/{requirementDiagram-EFPCY7ZU-CFdqWYih.js → requirementDiagram-EFPCY7ZU-DhqadamF.js} +1 -1
- package/web-shell/assets/{sankeyDiagram-P5KCCOFB-CsddcEGD.js → sankeyDiagram-P5KCCOFB-R4WnURaE.js} +1 -1
- package/web-shell/assets/{sequenceDiagram-WJ2MYXX4-BZ270mGw.js → sequenceDiagram-WJ2MYXX4-D7BwMi_D.js} +1 -1
- package/web-shell/assets/{sizeCapture-X5ZJPWSS-CGaS4DBV.js → sizeCapture-X5ZJPWSS-Bqngz088.js} +1 -1
- package/web-shell/assets/{stateDiagram-HBIQ2CUA-COpIzMu6.js → stateDiagram-HBIQ2CUA-DwaXPGqn.js} +1 -1
- package/web-shell/assets/stateDiagram-v2-4QOOHH4V-8GCQZAvv.js +1 -0
- package/web-shell/assets/{swimlanes-XN3QIQJK-CMF889m3.js → swimlanes-XN3QIQJK-BsaLeRDY.js} +1 -1
- package/web-shell/assets/swimlanesDiagram-VK2B7HYN-BoRBF2Yw.js +8 -0
- package/web-shell/assets/{timeline-definition-24CTP7MA-BelnxYz5.js → timeline-definition-24CTP7MA-NJ9G-NUU.js} +1 -1
- package/web-shell/assets/{vennDiagram-4TSXK5OY-CU-NRqIB.js → vennDiagram-4TSXK5OY-Ca3W4rSq.js} +1 -1
- package/web-shell/assets/{wardleyDiagram-VM6X3IG4-CDNKqWh-.js → wardleyDiagram-VM6X3IG4-OabvjC-6.js} +1 -1
- package/web-shell/assets/{xychartDiagram-S5SC5T6Z-CLqguL5D.js → xychartDiagram-S5SC5T6Z-C7rbjvpc.js} +1 -1
- package/web-shell/index.html +2 -2
- package/chunks/chunk-6YEOCHSE.js +0 -142
- package/chunks/chunk-X35VIWWJ.js +0 -276
- package/web-shell/assets/channel-uMMdTrYk.js +0 -1
- package/web-shell/assets/classDiagram-DTDB5LWJ-DcY-26Ig.js +0 -1
- package/web-shell/assets/classDiagram-v2-JRS7N3AN-DcY-26Ig.js +0 -1
- package/web-shell/assets/index-CsPwZ1ut.css +0 -36
- package/web-shell/assets/stateDiagram-v2-4QOOHH4V-D6qEVAji.js +0 -1
- package/web-shell/assets/swimlanesDiagram-VK2B7HYN-mem5Jj4m.js +0 -8
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
// Force strict mode and setup for ESM
|
|
2
2
|
"use strict";
|
|
3
|
+
import {
|
|
4
|
+
ALL_PROVIDERS,
|
|
5
|
+
findProviderByCredentials
|
|
6
|
+
} from "./chunk-PLEBBGHL.js";
|
|
3
7
|
import {
|
|
4
8
|
buildModelIdContext,
|
|
5
9
|
resolveModelId
|
|
@@ -7,21 +11,23 @@ import {
|
|
|
7
11
|
import {
|
|
8
12
|
DASHSCOPE_REGIONAL_HOSTS,
|
|
9
13
|
OpenAI
|
|
10
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-HSO6D4KX.js";
|
|
11
15
|
import {
|
|
12
16
|
delay
|
|
13
17
|
} from "./chunk-HNLMYDQE.js";
|
|
14
18
|
import {
|
|
15
19
|
DEFAULT_DASHSCOPE_BASE_URL,
|
|
16
20
|
resolveRequestTimeout
|
|
17
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-AXMWHKXA.js";
|
|
18
22
|
import "./chunk-4ALNJDHL.js";
|
|
19
23
|
import {
|
|
20
24
|
buildSessionAwareFetch
|
|
21
25
|
} from "./chunk-NOO4QFXM.js";
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import
|
|
26
|
+
import "./chunk-GSYD7MYP.js";
|
|
27
|
+
import "./chunk-F3M6P6IQ.js";
|
|
28
|
+
import {
|
|
29
|
+
getDefaultApiKeyEnvVar
|
|
30
|
+
} from "./chunk-EOLGAQ25.js";
|
|
25
31
|
import {
|
|
26
32
|
buildRuntimeFetchOptions,
|
|
27
33
|
preloadRuntimeFetchModule
|
|
@@ -53,6 +59,7 @@ var MAX_CANDIDATE_URLS = 25;
|
|
|
53
59
|
var MAX_OPENED_URLS = 25;
|
|
54
60
|
var NO_SEARCH_RETRY_BASE_DELAY_MS = 750;
|
|
55
61
|
var NO_SEARCH_RETRY_JITTER_MS = 500;
|
|
62
|
+
var DEFAULT_WEB_SEARCH_MODEL = "qwen3.8-flash";
|
|
56
63
|
function classifyDashScopeBaseUrl(baseUrl) {
|
|
57
64
|
let url;
|
|
58
65
|
try {
|
|
@@ -79,13 +86,183 @@ function isDashScopeCompatibleBaseUrl(baseUrl) {
|
|
|
79
86
|
return classifyDashScopeBaseUrl(baseUrl) === null;
|
|
80
87
|
}
|
|
81
88
|
__name(isDashScopeCompatibleBaseUrl, "isDashScopeCompatibleBaseUrl");
|
|
89
|
+
function safeUrlHost(baseUrl) {
|
|
90
|
+
try {
|
|
91
|
+
return new URL(baseUrl).hostname || "[invalid]";
|
|
92
|
+
} catch {
|
|
93
|
+
return "[invalid]";
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
__name(safeUrlHost, "safeUrlHost");
|
|
97
|
+
function normalizedBaseUrl(baseUrl) {
|
|
98
|
+
return baseUrl.replace(/\/+$/, "");
|
|
99
|
+
}
|
|
100
|
+
__name(normalizedBaseUrl, "normalizedBaseUrl");
|
|
101
|
+
function findProviderByEndpoint(baseUrl) {
|
|
102
|
+
const normalized = normalizedBaseUrl(baseUrl);
|
|
103
|
+
return ALL_PROVIDERS.find((provider) => {
|
|
104
|
+
const configured = provider.baseUrl;
|
|
105
|
+
if (typeof configured === "string") {
|
|
106
|
+
return normalizedBaseUrl(configured) === normalized;
|
|
107
|
+
}
|
|
108
|
+
return configured?.some(
|
|
109
|
+
(option) => normalizedBaseUrl(option.url) === normalized
|
|
110
|
+
);
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
__name(findProviderByEndpoint, "findProviderByEndpoint");
|
|
114
|
+
var gateDebugLogger = createDebugLogger("WEB_SEARCH");
|
|
115
|
+
function isUsableSearchEntry(entry) {
|
|
116
|
+
return entry.authType !== "qwen-oauth" /* QWEN_OAUTH */ && !!entry.baseUrl && isDashScopeCompatibleBaseUrl(entry.baseUrl) && (!!entry.apiKey?.trim() || !!entry.envKey && !!process.env[entry.envKey]?.trim());
|
|
117
|
+
}
|
|
118
|
+
__name(isUsableSearchEntry, "isUsableSearchEntry");
|
|
119
|
+
function isAutoEligibleDashScopeHost(baseUrl) {
|
|
120
|
+
if (classifyDashScopeBaseUrl(baseUrl) !== null) {
|
|
121
|
+
return false;
|
|
122
|
+
}
|
|
123
|
+
let hostname;
|
|
124
|
+
try {
|
|
125
|
+
hostname = new URL(baseUrl).hostname.toLowerCase();
|
|
126
|
+
} catch {
|
|
127
|
+
return false;
|
|
128
|
+
}
|
|
129
|
+
return !hostname.startsWith("coding.") && !hostname.startsWith("coding-intl.");
|
|
130
|
+
}
|
|
131
|
+
__name(isAutoEligibleDashScopeHost, "isAutoEligibleDashScopeHost");
|
|
132
|
+
function findPrimaryModelEntry(config) {
|
|
133
|
+
const modelId = config.getModel();
|
|
134
|
+
const authType = config.getCurrentAuthType();
|
|
135
|
+
const registryBaseUrl = config.getCurrentModelRegistryBaseUrl();
|
|
136
|
+
const matches = authType ? config.getAllConfiguredModels([authType]).filter((m) => m.id === modelId) : [];
|
|
137
|
+
const selected = registryBaseUrl ? matches.find(
|
|
138
|
+
(m) => m.registryBaseUrl === registryBaseUrl || m.baseUrl === registryBaseUrl
|
|
139
|
+
) : void 0;
|
|
140
|
+
const entry = selected ? isUsableSearchEntry(selected) ? selected : void 0 : matches.find(isUsableSearchEntry);
|
|
141
|
+
if (entry?.baseUrl && entry.envKey) {
|
|
142
|
+
return {
|
|
143
|
+
authType: entry.authType,
|
|
144
|
+
modelId: entry.id,
|
|
145
|
+
baseUrl: entry.baseUrl,
|
|
146
|
+
envKey: entry.envKey,
|
|
147
|
+
registryBaseUrl: entry.registryBaseUrl
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
const modelsConfig = config.getModelsConfig();
|
|
151
|
+
const generation = modelsConfig.getGenerationConfig();
|
|
152
|
+
if (generation.baseUrl && generation.authType) {
|
|
153
|
+
const apiKeySource = modelsConfig.getGenerationConfigSources()["apiKey"];
|
|
154
|
+
const sourceEnvKey = apiKeySource?.kind === "env" ? apiKeySource.envKey : void 0;
|
|
155
|
+
const declaredEnvKey = generation.apiKeyEnvKey;
|
|
156
|
+
const envKey = sourceEnvKey ?? (!apiKeySource && declaredEnvKey && process.env[declaredEnvKey]?.trim() ? declaredEnvKey : void 0);
|
|
157
|
+
const apiKey = envKey ? void 0 : generation.apiKey;
|
|
158
|
+
const fallbackEnvKey = getDefaultApiKeyEnvVar(generation.authType);
|
|
159
|
+
if (apiKey?.trim() || envKey && process.env[envKey]?.trim() || !envKey && !apiKey && process.env[fallbackEnvKey]?.trim()) {
|
|
160
|
+
return {
|
|
161
|
+
authType: generation.authType,
|
|
162
|
+
modelId: generation.model ?? modelId,
|
|
163
|
+
baseUrl: generation.baseUrl,
|
|
164
|
+
envKey: envKey ?? (apiKey ? void 0 : fallbackEnvKey),
|
|
165
|
+
apiKey,
|
|
166
|
+
customHeaders: generation.customHeaders
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
return void 0;
|
|
171
|
+
}
|
|
172
|
+
__name(findPrimaryModelEntry, "findPrimaryModelEntry");
|
|
173
|
+
function resolveAutoBackend(config, settings) {
|
|
174
|
+
const unavailable = /* @__PURE__ */ __name((reason) => {
|
|
175
|
+
gateDebugLogger.debug(`[WebSearch] auto backend unavailable: ${reason}`);
|
|
176
|
+
return {
|
|
177
|
+
ok: false,
|
|
178
|
+
silent: true,
|
|
179
|
+
notice: `WebSearch is not configured and no backend could be derived automatically: ${reason}.`
|
|
180
|
+
};
|
|
181
|
+
}, "unavailable");
|
|
182
|
+
const entry = findPrimaryModelEntry(config);
|
|
183
|
+
if (!entry) {
|
|
184
|
+
return unavailable(
|
|
185
|
+
"the selected model has no provider entry carrying both a baseUrl and a usable direct credential"
|
|
186
|
+
);
|
|
187
|
+
}
|
|
188
|
+
if (entry.authType !== "openai" /* USE_OPENAI */) {
|
|
189
|
+
return unavailable(
|
|
190
|
+
`the selected model uses the ${entry.authType} protocol, but the search side request requires an OpenAI-compatible provider`
|
|
191
|
+
);
|
|
192
|
+
}
|
|
193
|
+
const credentialMatchedPreset = findProviderByCredentials(
|
|
194
|
+
entry.baseUrl,
|
|
195
|
+
entry.envKey
|
|
196
|
+
);
|
|
197
|
+
const preset = credentialMatchedPreset?.baseUrl !== void 0 ? credentialMatchedPreset : findProviderByEndpoint(entry.baseUrl);
|
|
198
|
+
const presetKnowsEndpoint = preset?.baseUrl !== void 0;
|
|
199
|
+
if (presetKnowsEndpoint) {
|
|
200
|
+
if (preset?.webSearch?.backend !== "dashscope") {
|
|
201
|
+
return unavailable(
|
|
202
|
+
`provider "${preset?.id}" declares no built-in web search backend`
|
|
203
|
+
);
|
|
204
|
+
}
|
|
205
|
+
} else if (!isAutoEligibleDashScopeHost(entry.baseUrl)) {
|
|
206
|
+
return unavailable(
|
|
207
|
+
`endpoint host ${safeUrlHost(entry.baseUrl)} is not known to serve the DashScope search tools`
|
|
208
|
+
);
|
|
209
|
+
}
|
|
210
|
+
if (!isUsableSearchEntry(entry)) {
|
|
211
|
+
return unavailable(
|
|
212
|
+
"the selected model has no usable direct credential, or the entry cannot back a side request"
|
|
213
|
+
);
|
|
214
|
+
}
|
|
215
|
+
const resolvedEntry = config.getResolvedModelConfig(
|
|
216
|
+
entry.authType,
|
|
217
|
+
entry.modelId,
|
|
218
|
+
entry.registryBaseUrl
|
|
219
|
+
);
|
|
220
|
+
return {
|
|
221
|
+
ok: true,
|
|
222
|
+
backend: {
|
|
223
|
+
modelId: DEFAULT_WEB_SEARCH_MODEL,
|
|
224
|
+
apiKeyEnvKey: entry.envKey,
|
|
225
|
+
apiKey: entry.apiKey,
|
|
226
|
+
baseUrl: entry.baseUrl,
|
|
227
|
+
webExtractor: settings?.webExtractor !== false,
|
|
228
|
+
customHeaders: entry.customHeaders ?? resolvedEntry?.generationConfig?.customHeaders
|
|
229
|
+
}
|
|
230
|
+
};
|
|
231
|
+
}
|
|
232
|
+
__name(resolveAutoBackend, "resolveAutoBackend");
|
|
82
233
|
function evaluateWebSearchGate(config) {
|
|
83
234
|
const settings = config.getWebSearchSettings();
|
|
235
|
+
if (settings?.enabled === false) {
|
|
236
|
+
return {
|
|
237
|
+
ok: false,
|
|
238
|
+
silent: true,
|
|
239
|
+
notice: "WebSearch is disabled by configuration."
|
|
240
|
+
};
|
|
241
|
+
}
|
|
84
242
|
const selector = settings?.model?.trim();
|
|
85
243
|
if (!selector) {
|
|
244
|
+
if (!settings?.baseUrl) {
|
|
245
|
+
try {
|
|
246
|
+
const derived = resolveAutoBackend(config, settings);
|
|
247
|
+
if (derived.ok || settings?.enabled !== true) {
|
|
248
|
+
return derived;
|
|
249
|
+
}
|
|
250
|
+
} catch (e) {
|
|
251
|
+
gateDebugLogger.debug(
|
|
252
|
+
`[WebSearch] auto backend derivation threw: ${e instanceof Error ? e.message : String(e)}`
|
|
253
|
+
);
|
|
254
|
+
if (settings?.enabled !== true) {
|
|
255
|
+
return {
|
|
256
|
+
ok: false,
|
|
257
|
+
silent: true,
|
|
258
|
+
notice: "WebSearch is not configured and no backend could be derived automatically."
|
|
259
|
+
};
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
}
|
|
86
263
|
return {
|
|
87
264
|
ok: false,
|
|
88
|
-
notice: 'WebSearch is enabled but no search model is configured.\nAdd a search model to settings.json (recommended: qwen3.
|
|
265
|
+
notice: 'WebSearch is enabled but no search model is configured.\nAdd a search model to settings.json (recommended: qwen3.8-flash):\n {\n "tools": { "webSearch": { "enabled": true, "model": "qwen3.8-flash" } },\n "modelProviders": {\n "openai": [{ "id": "qwen3.8-flash",\n "baseUrl": "' + DEFAULT_DASHSCOPE_BASE_URL + '",\n "envKey": "DASHSCOPE_API_KEY" }]\n }\n }\nOr via env: ENABLE_WEB_SEARCH=true WEB_SEARCH_MODEL=qwen3.8-flash\nWEB_SEARCH_BASE_URL=' + DEFAULT_DASHSCOPE_BASE_URL + " (plus WEB_SEARCH_API_KEY)."
|
|
89
266
|
};
|
|
90
267
|
}
|
|
91
268
|
let resolved;
|
|
@@ -150,8 +327,7 @@ function evaluateWebSearchGate(config) {
|
|
|
150
327
|
notice: `WebSearch is enabled but the search model "${selector}" does not match any model declared under modelProviders.`
|
|
151
328
|
};
|
|
152
329
|
}
|
|
153
|
-
const
|
|
154
|
-
const entry = matches.find(isUsableEntry) ?? matches[0];
|
|
330
|
+
const entry = matches.find(isUsableSearchEntry) ?? matches[0];
|
|
155
331
|
if (entry.authType === "qwen-oauth" /* QWEN_OAUTH */) {
|
|
156
332
|
return {
|
|
157
333
|
ok: false,
|
|
@@ -368,7 +544,7 @@ var WebSearchToolInvocation = class extends BaseToolInvocation {
|
|
|
368
544
|
const backend = gate.backend;
|
|
369
545
|
await preloadRuntimeFetchModule();
|
|
370
546
|
const startedAt = Date.now();
|
|
371
|
-
const apiKey = process.env[backend.apiKeyEnvKey];
|
|
547
|
+
const apiKey = backend.apiKey ?? (backend.apiKeyEnvKey ? process.env[backend.apiKeyEnvKey] : void 0);
|
|
372
548
|
const runtimeOptions = buildRuntimeFetchOptions(
|
|
373
549
|
"openai",
|
|
374
550
|
this.config.getProxy()
|
|
@@ -721,6 +897,7 @@ var WebSearchTool = class _WebSearchTool extends BaseDeclarativeTool {
|
|
|
721
897
|
}
|
|
722
898
|
};
|
|
723
899
|
export {
|
|
900
|
+
DEFAULT_WEB_SEARCH_MODEL,
|
|
724
901
|
WebSearchTool,
|
|
725
902
|
evaluateWebSearchGate
|
|
726
903
|
};
|
|
@@ -4,14 +4,15 @@ import {
|
|
|
4
4
|
WEB_SHELL_CSP,
|
|
5
5
|
buildWebShellCsp,
|
|
6
6
|
buildWebShellPermissionsPolicy,
|
|
7
|
-
isDocumentNavigation,
|
|
8
|
-
isPreAuthWebShellRequest,
|
|
9
7
|
loopbackSandboxOrigins,
|
|
10
8
|
mountWebShellAssets,
|
|
11
9
|
mountWebShellSpaFallback,
|
|
12
10
|
portFromHostHeader
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import
|
|
11
|
+
} from "./chunk-QB3KS3N3.js";
|
|
12
|
+
import {
|
|
13
|
+
isDocumentNavigation,
|
|
14
|
+
isPreAuthWebShellRequest
|
|
15
|
+
} from "./chunk-SVWWF5TZ.js";
|
|
15
16
|
import {
|
|
16
17
|
resolveWebShellDir
|
|
17
18
|
} from "./chunk-FBX2SDQ4.js";
|