@qwen-code/qwen-code 0.20.0 → 0.20.1-jobbench-claude-prompt.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/chunks/{MaxSizedBox-B5YGZSYE.js → MaxSizedBox-BGLP6FQT.js} +15 -12
- package/chunks/{StandaloneSessionPicker-CEGO2AZX.js → StandaloneSessionPicker-K6I4ZEHD.js} +33 -30
- package/chunks/{acpAgent-YUR43TLG.js → acpAgent-PKKBOEP4.js} +79 -71
- package/chunks/{agent-H4JIDL7S.js → agent-Y7XOSZY5.js} +15 -12
- package/chunks/{agent-headless-TTBEREQV.js → agent-headless-NXRPEYGF.js} +15 -12
- package/chunks/{anthropicContentGenerator-HVKLXOOU.js → anthropicContentGenerator-BWBAZGTW.js} +3 -2
- package/chunks/{artifact-tool-WBCAMD3O.js → artifact-tool-IUJ7QWCX.js} +1 -1
- package/chunks/{askUserQuestion-6DZC4UV5.js → askUserQuestion-IUMUUTDQ.js} +1 -1
- package/chunks/{bridge-VL7ITBU5.js → bridge-DCMYGFJ2.js} +18 -15
- package/chunks/{chunk-FLSVD6BS.js → chunk-26LLB6FM.js} +1 -1
- package/chunks/{chunk-NDMQLV4Y.js → chunk-2F7HITKF.js} +3 -3
- package/chunks/{chunk-4N3KMAIL.js → chunk-2R7OXGYM.js} +13 -13
- package/chunks/{chunk-7SXZC7ID.js → chunk-2RDNKVZ2.js} +4 -4
- package/chunks/{chunk-PBWEWI4N.js → chunk-2T2FG7OX.js} +29 -27
- package/chunks/{chunk-O3OCNYY5.js → chunk-3P4TUBON.js} +1 -1
- package/chunks/{chunk-MJ6S23WZ.js → chunk-3PG4G7SK.js} +4 -4
- package/chunks/{chunk-NGFEPAE6.js → chunk-3XZIXCJY.js} +6 -4
- package/chunks/{chunk-EZVDJFZ7.js → chunk-467G3SV5.js} +1 -1
- package/chunks/{chunk-CV63PP6U.js → chunk-4E33SVWA.js} +1 -1
- package/chunks/{chunk-S2W2LVDU.js → chunk-5244PA32.js} +2 -2
- package/chunks/{chunk-CB2HFGRV.js → chunk-6UTNZOZG.js} +4 -4
- package/chunks/{chunk-PGEPSDJI.js → chunk-6UTRTWUF.js} +7 -7
- package/chunks/{chunk-SEKHYHMS.js → chunk-6YS6TQB3.js} +1 -1
- package/chunks/{chunk-TMQ6XQCX.js → chunk-7AB5URLY.js} +36 -36
- package/chunks/chunk-7H2JMOPS.js +391 -0
- package/chunks/{chunk-SJMV7ZBK.js → chunk-7YK65ZFC.js} +6 -6
- package/chunks/{chunk-7PZ2ATFZ.js → chunk-A2F633L4.js} +13 -13
- package/chunks/{chunk-6AFUCL3D.js → chunk-AU2GX7QQ.js} +1 -1
- package/chunks/{chunk-DBE4QFZS.js → chunk-BL7EEZ4Y.js} +10 -10
- package/chunks/{chunk-HZPN55E5.js → chunk-C44MIZ2K.js} +1 -1
- package/chunks/{chunk-OWCALFEG.js → chunk-C5L66QPF.js} +1 -1
- package/chunks/chunk-C5Z652G4.js +121 -0
- package/chunks/{chunk-2LL7TXB4.js → chunk-CAKC64KX.js} +2 -2
- package/chunks/{chunk-4ILMYHEI.js → chunk-CMFMPPKV.js} +3 -3
- package/chunks/{chunk-KG3XV6FH.js → chunk-D742634K.js} +1 -1
- package/chunks/{chunk-AJSJ5TTU.js → chunk-DFQGFXMQ.js} +1 -1
- package/chunks/{chunk-S2PD3EZD.js → chunk-E6XTP5ZF.js} +1 -1
- package/chunks/{chunk-FQD7GFSV.js → chunk-EELSDL62.js} +3 -3
- package/chunks/{chunk-TIH2ZTOC.js → chunk-EKVLDUP4.js} +1 -1
- package/chunks/{chunk-CZF3E5GF.js → chunk-EMMNRTQX.js} +1 -1
- package/chunks/{chunk-CPCVCKKF.js → chunk-ETD6K42I.js} +1 -1
- package/chunks/{chunk-XVVH63JG.js → chunk-FNGK2Z5B.js} +2 -2
- package/chunks/{chunk-FEOZBUMT.js → chunk-FODK6UMO.js} +0 -27
- package/chunks/chunk-GLNBDYUX.js +38 -0
- package/chunks/{chunk-ZFKNWQGQ.js → chunk-HAL7YT4M.js} +7 -7
- package/chunks/{chunk-TKLLK6XQ.js → chunk-IMVIN5UC.js} +1 -1
- package/chunks/{chunk-KQNM4EO7.js → chunk-J5CK6QYL.js} +1 -1
- package/chunks/{chunk-EAUYY7SS.js → chunk-JDI67JFB.js} +1 -1
- package/chunks/{chunk-OYZWQNWG.js → chunk-JXWFXSLN.js} +1 -1
- package/chunks/{chunk-BRRF37CO.js → chunk-L4BZXQR3.js} +1 -1
- package/chunks/{chunk-4EP2PYYL.js → chunk-L4PEDXOX.js} +3 -3
- package/chunks/{chunk-VEXFOTEO.js → chunk-LB7ZIQ6C.js} +2 -2
- package/chunks/{chunk-VDWBQ5AW.js → chunk-M2DASLLB.js} +1 -1
- package/chunks/{chunk-A5LYNIW7.js → chunk-MEDHWB34.js} +4 -4
- package/chunks/{chunk-BMWMT5Y2.js → chunk-NL37SKPP.js} +2 -372
- package/chunks/{chunk-IR46U7RB.js → chunk-NNDKJNCC.js} +1 -1
- package/chunks/{chunk-7RMOXZTC.js → chunk-NRPP5TOB.js} +4 -4
- package/chunks/{chunk-5JBR5XIK.js → chunk-NYMHN4ZK.js} +2 -2
- package/chunks/{chunk-PF4CHQOJ.js → chunk-ORDXX5SE.js} +4 -4
- package/chunks/{chunk-DP5GXXNZ.js → chunk-P5OX37TK.js} +1 -1
- package/chunks/chunk-PC2QR5QO.js +1768 -0
- package/chunks/{chunk-D22SX43D.js → chunk-PXVAFBEI.js} +1 -1
- package/chunks/{chunk-33XUAINQ.js → chunk-QCCOKIGW.js} +46 -6
- package/chunks/{chunk-KX6UK4VJ.js → chunk-RTEHQUAD.js} +266 -840
- package/chunks/{chunk-OP4MOGXF.js → chunk-S35ZDXOS.js} +6 -0
- package/chunks/{chunk-O3Z73NBP.js → chunk-SKQD5RCT.js} +4 -4
- package/chunks/{chunk-OEO2ERWK.js → chunk-SMR34EQM.js} +3 -3
- package/chunks/{chunk-S2XVRHDN.js → chunk-SWRMKMVY.js} +1 -1
- package/chunks/{chunk-AQIEINAY.js → chunk-UJEZQ562.js} +25 -1763
- package/chunks/{chunk-ANPINBOF.js → chunk-UNIQ7KNW.js} +3 -3
- package/chunks/{chunk-KDC6GNQR.js → chunk-UTBTCPKF.js} +4 -4
- package/chunks/{chunk-VZQUV7VK.js → chunk-VT3KBCIU.js} +1 -1
- package/chunks/{chunk-4XNLIGVA.js → chunk-W2LKWG6I.js} +43 -26
- package/chunks/{chunk-542SK7KV.js → chunk-WCPQTUDI.js} +4 -4
- package/chunks/{chunk-KOR3XKCA.js → chunk-WJYCCJ3Q.js} +3 -3
- package/chunks/{chunk-I2PYAYFM.js → chunk-XBAYQWDL.js} +1 -1
- package/chunks/{chunk-333CXMNJ.js → chunk-XSSAJZXG.js} +4 -4
- package/chunks/{chunk-IVPSS6EL.js → chunk-YHRBVZ53.js} +3 -3
- package/chunks/{chunk-AKX4WPPP.js → chunk-YXBZOR3D.js} +4 -4
- package/chunks/{computer-use-NIWQNUZF.js → computer-use-KQVQD3IW.js} +15 -12
- package/chunks/{config-utils-AHQ6YZ66.js → config-utils-6FXFJUYB.js} +1 -1
- package/chunks/{contextCommand-L2COEUHS.js → contextCommand-IOC5HY6R.js} +17 -14
- package/chunks/{create-sub-session-MGNX52P3.js → create-sub-session-IOAGEN3O.js} +15 -12
- package/chunks/{create-sub-session-P26FE5GG.js → create-sub-session-X5RVIHCK.js} +1 -1
- package/chunks/{cron-create-JWFHBDRQ.js → cron-create-AC5FFLN7.js} +1 -1
- package/chunks/{cron-delete-GDX4E26G.js → cron-delete-JEB3FAHA.js} +1 -1
- package/chunks/{cron-list-USMAIWPT.js → cron-list-NBYPCNIB.js} +1 -1
- package/chunks/{daemon-status-provider-NL4IAG7B.js → daemon-status-provider-DYDVT4S5.js} +22 -19
- package/chunks/{earlyInputCapture-L6I2A22T.js → earlyInputCapture-7AA4D4RF.js} +15 -12
- package/chunks/{edit-3QV3JZJL.js → edit-RQXZUTEU.js} +16 -13
- package/chunks/{enter-worktree-4GMMF7EG.js → enter-worktree-BPYKHGTX.js} +15 -12
- package/chunks/{enterPlanMode-L5UWBAUC.js → enterPlanMode-VJ3KR5HM.js} +15 -12
- package/chunks/{environment-3OV7UQOT.js → environment-PZYHWWG5.js} +17 -14
- package/chunks/{errors-LEOF5QG4.js → errors-NZ6JOKJB.js} +17 -14
- package/chunks/{exit-worktree-DDP57JLV.js → exit-worktree-TZNABJPX.js} +15 -12
- package/chunks/{exitPlanMode-CJBLGPIP.js → exitPlanMode-RZMERKLI.js} +15 -12
- package/chunks/{fast-path-M6RP2ING.js → fast-path-F5UWH7GI.js} +2 -2
- package/chunks/{gemini-H4PHBJTL.js → gemini-2QJRGIKD.js} +56 -53
- package/chunks/{geminiContentGenerator-VURJYPWP.js → geminiContentGenerator-Q7IAYVM4.js} +1 -1
- package/chunks/{glob-2KUSRAVQ.js → glob-MP7IPPNS.js} +15 -12
- package/chunks/{grep-B5RXVESV.js → grep-OHN54Z7A.js} +15 -12
- package/chunks/{handleAutoUpdate-QQVIWXKT.js → handleAutoUpdate-EGCO46FV.js} +19 -16
- package/chunks/{i18n-N6OBDORT.js → i18n-4LK42EK5.js} +16 -13
- package/chunks/{initializer-6WCFNDLL.js → initializer-DAL5QAZU.js} +20 -17
- package/chunks/{installationInfo-6J3WPXNS.js → installationInfo-HOKGVMMQ.js} +16 -13
- package/chunks/{list-HOWQSWP6.js → list-M5NNXMQQ.js} +23 -20
- package/chunks/{loadedSettingsAdapter-AO4YBRXZ.js → loadedSettingsAdapter-I42UOUE7.js} +20 -17
- package/chunks/{loop-wakeup-5GLTUBHA.js → loop-wakeup-HMHCT5GU.js} +2 -2
- package/chunks/{ls-FHBY3Y7I.js → ls-IW5HYDG4.js} +1 -1
- package/chunks/{lsp-B6VMEW6Y.js → lsp-4RL52YIZ.js} +1 -1
- package/chunks/{mcp-QH7QNXOH.js → mcp-62XOYOXZ.js} +20 -17
- package/chunks/{monitor-GLJZDNPS.js → monitor-YIHFTVM7.js} +15 -12
- package/chunks/{nonInteractiveCli-TI7EMPXD.js → nonInteractiveCli-Z73R2B3B.js} +47 -44
- package/chunks/{notebook-edit-AVCIWS4F.js → notebook-edit-XK4J36D3.js} +16 -13
- package/chunks/{openaiContentGenerator-B7W24G3D.js → openaiContentGenerator-OEIKDARY.js} +10 -7
- package/chunks/{pidfile-UEHAT6DH.js → pidfile-2XVZMMKS.js} +15 -12
- package/chunks/{processUtils-XZPY2PBB.js → processUtils-SYFMMDPV.js} +2 -2
- package/chunks/{qwenContentGenerator-6GUTWJIC.js → qwenContentGenerator-LTTPUWV3.js} +20 -15
- package/chunks/{qwenOAuth2-GASEEWGU.js → qwenOAuth2-U3X6UBDP.js} +6 -5
- package/chunks/{read-file-SQJONF6A.js → read-file-P6IEAOBS.js} +3 -3
- package/chunks/{read-mcp-resource-AKCL7I43.js → read-mcp-resource-OIBCNIX7.js} +1 -1
- package/chunks/{record-artifact-PEUB7727.js → record-artifact-HDMK4LHG.js} +1 -1
- package/chunks/{resumeHistoryUtils-PFQ2A23X.js → resumeHistoryUtils-WMJ5TUPF.js} +19 -16
- package/chunks/{ripGrep-QCK22GDU.js → ripGrep-US5HKBSM.js} +15 -12
- package/chunks/{run-qwen-serve-OZGR3FQA.js → run-qwen-serve-MIFJODT4.js} +24 -24
- package/chunks/{runtime-SNVAP6EH.js → runtime-SK5QH53T.js} +22 -19
- package/chunks/{scheduler-Z7QLMUWA.js → scheduler-4TIUONHH.js} +15 -12
- package/chunks/{send-message-3RHE7HSM.js → send-message-WXVVK4DB.js} +2 -2
- package/chunks/{serve-BT7KS6SC.js → serve-F6VZULAL.js} +20 -17
- package/chunks/{server-SO64U3X5.js → server-UJEZDWGO.js} +70 -67
- package/chunks/{session-2KL2WQAH.js → session-PFCYZOZJ.js} +48 -45
- package/chunks/{settings-KITVOUSV.js → settings-7UHALRNO.js} +19 -16
- package/chunks/{shell-BITUVH2R.js → shell-DY7EASPT.js} +15 -12
- package/chunks/{skill-SOQHY455.js → skill-DOZBVXRT.js} +3 -3
- package/chunks/{spawnChannel-2BU3AULL.js → spawnChannel-HT7EQ4SL.js} +17 -14
- package/chunks/{src-43LM7JLB.js → src-VJO75DQQ.js} +50 -46
- package/chunks/{standalone-update-YG5JUYCM.js → standalone-update-5ERAJGLE.js} +17 -14
- package/chunks/{startInteractiveUI-3RGTGEX5.js → startInteractiveUI-HYMIOBH7.js} +144 -140
- package/chunks/{syntheticOutput-FG5PQKIR.js → syntheticOutput-HCUFXSIA.js} +2 -2
- package/chunks/{task-create-HX32YXO7.js → task-create-RIY5JTFC.js} +3 -3
- package/chunks/{task-list-QWSY4ZIU.js → task-list-XBUCV3CO.js} +1 -1
- package/chunks/{task-stop-GWC6UWAL.js → task-stop-QDFCCYR5.js} +1 -1
- package/chunks/{task-update-NCTAB73Q.js → task-update-7PXKJQOI.js} +3 -3
- package/chunks/{team-create-FXN3PEBP.js → team-create-NF3FCZE2.js} +18 -15
- package/chunks/{team-delete-KK37HTOG.js → team-delete-TNSSE2S5.js} +1 -1
- package/chunks/{team-plan-approval-GEIZ356Q.js → team-plan-approval-P5U7U4NW.js} +15 -12
- package/chunks/{theme-manager-IAETOI25.js → theme-manager-WD73RXOX.js} +15 -12
- package/chunks/{todoWrite-ERCAMLFS.js → todoWrite-OMAIGB6V.js} +1 -1
- package/chunks/{tool-search-XKK7DNOK.js → tool-search-TDMA733L.js} +4 -4
- package/chunks/{total-session-admission-BJLDHKJN.js → total-session-admission-H3XZPCNC.js} +18 -15
- package/chunks/{tree-sitter-4D7QS7F6.js → tree-sitter-VJEPTDMU.js} +1 -1
- package/chunks/{tree-sitter-bash-VEJGF5XF.js → tree-sitter-bash-WFKBO43W.js} +1 -1
- package/chunks/{trustedFolders-5XCVNEUU.js → trustedFolders-NEFWXHU2.js} +16 -13
- package/chunks/{update-relaunch-FMVZK6XF.js → update-relaunch-T2XQQC4W.js} +5 -5
- package/chunks/{updateCheck-YZZB7YBU.js → updateCheck-G5JYMVJZ.js} +18 -15
- package/chunks/{useAutoAcceptIndicator-ZSQX4I2H.js → useAutoAcceptIndicator-5FLFR3BY.js} +23 -20
- package/chunks/{validateNonInterActiveAuth-PRVEB6GG.js → validateNonInterActiveAuth-Z23SJ4D4.js} +44 -41
- package/chunks/{version-AZMG6KWL.js → version-PLKW23RX.js} +1 -1
- package/chunks/{web-fetch-EPGJ5OQQ.js → web-fetch-QNI3EEXN.js} +5 -4
- package/chunks/web-search-DLYTQBNN.js +680 -0
- package/chunks/{workflow-UTNVPW22.js → workflow-A3WFSQKU.js} +16 -13
- package/chunks/{workspace-providers-status-EADV364W.js → workspace-providers-status-6K34OJLQ.js} +23 -20
- package/chunks/{workspace-registration-store-F3ZX3YHT.js → workspace-registration-store-6FPLTQG3.js} +1 -1
- package/chunks/{workspace-registry-W6VMFYZU.js → workspace-registry-JZRIJXJS.js} +18 -15
- package/chunks/{workspace-service-F3KIN2UN.js → workspace-service-PQDLBZV3.js} +25 -22
- package/chunks/{workspace-skills-status-YVICUR5Y.js → workspace-skills-status-RKCPZVT2.js} +21 -18
- package/chunks/{write-file-CVGF2OKV.js → write-file-LHZENZ2A.js} +16 -13
- package/cli.js +11 -11
- package/package.json +3 -3
- package/chunks/{chunk-B3KGZCQN.js → chunk-7YBZGNEC.js} +3 -3
- /package/chunks/{chunk-YWEW33JY.js → chunk-OMH3276Y.js} +0 -0
|
@@ -1,33 +1,12 @@
|
|
|
1
1
|
// Force strict mode and setup for ESM
|
|
2
2
|
"use strict";
|
|
3
|
-
import {
|
|
4
|
-
CompactToolGroupDisplay,
|
|
5
|
-
SCREEN_READER_MODEL_PREFIX,
|
|
6
|
-
SCREEN_READER_USER_PREFIX,
|
|
7
|
-
SHELL_COMMAND_NAME,
|
|
8
|
-
SHELL_NAME,
|
|
9
|
-
STATUS_INDICATOR_WIDTH,
|
|
10
|
-
ToolElapsedTime,
|
|
11
|
-
ToolStatusIndicator,
|
|
12
|
-
buildResumedHistoryItems,
|
|
13
|
-
build_default,
|
|
14
|
-
estimateCompactToolGroupHeight,
|
|
15
|
-
isCollapsibleTool,
|
|
16
|
-
wrapAnsi
|
|
17
|
-
} from "./chunk-PF4CHQOJ.js";
|
|
18
|
-
import {
|
|
19
|
-
disableMouseEvents,
|
|
20
|
-
enableMouseEvents,
|
|
21
|
-
useKeypress,
|
|
22
|
-
useKeypressContext
|
|
23
|
-
} from "./chunk-O3Z73NBP.js";
|
|
24
3
|
import {
|
|
25
4
|
formatSupportedModes,
|
|
26
5
|
getCommandDisplayName,
|
|
27
6
|
getCommandSourceBadge,
|
|
28
7
|
getCommandSourceGroup,
|
|
29
8
|
getCommandSubcommandNames
|
|
30
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-C44MIZ2K.js";
|
|
31
10
|
import {
|
|
32
11
|
calculateAverageLatency,
|
|
33
12
|
calculateCacheHitRate,
|
|
@@ -37,17 +16,38 @@ import {
|
|
|
37
16
|
computeSessionStats,
|
|
38
17
|
getSystemInfoFields,
|
|
39
18
|
levelLabel
|
|
40
|
-
} from "./chunk-
|
|
41
|
-
import {
|
|
42
|
-
wrapForMultiplexer
|
|
43
|
-
} from "./chunk-QKYTTBYW.js";
|
|
19
|
+
} from "./chunk-CAKC64KX.js";
|
|
44
20
|
import {
|
|
45
21
|
MINIMUM_MAX_HEIGHT,
|
|
46
22
|
MaxSizedBox
|
|
47
23
|
} from "./chunk-JNWZQ27S.js";
|
|
24
|
+
import {
|
|
25
|
+
CompactToolGroupDisplay,
|
|
26
|
+
SCREEN_READER_MODEL_PREFIX,
|
|
27
|
+
SCREEN_READER_USER_PREFIX,
|
|
28
|
+
SHELL_COMMAND_NAME,
|
|
29
|
+
SHELL_NAME,
|
|
30
|
+
STATUS_INDICATOR_WIDTH,
|
|
31
|
+
ToolElapsedTime,
|
|
32
|
+
ToolStatusIndicator,
|
|
33
|
+
buildResumedHistoryItems,
|
|
34
|
+
build_default,
|
|
35
|
+
estimateCompactToolGroupHeight,
|
|
36
|
+
isCollapsibleTool,
|
|
37
|
+
wrapAnsi
|
|
38
|
+
} from "./chunk-ORDXX5SE.js";
|
|
48
39
|
import {
|
|
49
40
|
theme
|
|
50
41
|
} from "./chunk-GMGDLUC7.js";
|
|
42
|
+
import {
|
|
43
|
+
disableMouseEvents,
|
|
44
|
+
enableMouseEvents,
|
|
45
|
+
useKeypress,
|
|
46
|
+
useKeypressContext
|
|
47
|
+
} from "./chunk-SKQD5RCT.js";
|
|
48
|
+
import {
|
|
49
|
+
wrapForMultiplexer
|
|
50
|
+
} from "./chunk-QKYTTBYW.js";
|
|
51
51
|
import {
|
|
52
52
|
require_jsx_runtime
|
|
53
53
|
} from "./chunk-SV5PQVQE.js";
|
|
@@ -69,7 +69,7 @@ import {
|
|
|
69
69
|
} from "./chunk-5QWWOFGG.js";
|
|
70
70
|
import {
|
|
71
71
|
relaunchApp
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-DFQGFXMQ.js";
|
|
73
73
|
import {
|
|
74
74
|
cpLen,
|
|
75
75
|
cpSlice,
|
|
@@ -90,6 +90,9 @@ import {
|
|
|
90
90
|
import {
|
|
91
91
|
isTerminalGoalStatusKind
|
|
92
92
|
} from "./chunk-QTERJVPZ.js";
|
|
93
|
+
import {
|
|
94
|
+
createLoadedSettingsAdapter
|
|
95
|
+
} from "./chunk-EMMNRTQX.js";
|
|
93
96
|
import {
|
|
94
97
|
formatDuration,
|
|
95
98
|
formatMemoryUsage,
|
|
@@ -100,20 +103,17 @@ import {
|
|
|
100
103
|
require_has_flag,
|
|
101
104
|
require_source
|
|
102
105
|
} from "./chunk-57OAHC2Y.js";
|
|
103
|
-
import {
|
|
104
|
-
createLoadedSettingsAdapter
|
|
105
|
-
} from "./chunk-CZF3E5GF.js";
|
|
106
106
|
import {
|
|
107
107
|
getPersistScopeForModelSelection
|
|
108
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-QCCOKIGW.js";
|
|
109
109
|
import {
|
|
110
110
|
getCurrentLanguage,
|
|
111
111
|
localizeToolDisplayName,
|
|
112
112
|
t
|
|
113
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-IMVIN5UC.js";
|
|
114
114
|
import {
|
|
115
115
|
isWorkspaceTrusted
|
|
116
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-XBAYQWDL.js";
|
|
117
117
|
import {
|
|
118
118
|
ALL_PROVIDERS,
|
|
119
119
|
IdeClient,
|
|
@@ -134,7 +134,7 @@ import {
|
|
|
134
134
|
resolveBaseUrl,
|
|
135
135
|
resolveMetadataKey,
|
|
136
136
|
resolveOwnsModel
|
|
137
|
-
} from "./chunk-
|
|
137
|
+
} from "./chunk-RTEHQUAD.js";
|
|
138
138
|
import {
|
|
139
139
|
stripAnsi
|
|
140
140
|
} from "./chunk-T4TZQJ7W.js";
|
|
@@ -144,12 +144,12 @@ import {
|
|
|
144
144
|
getMCPServerStatus,
|
|
145
145
|
isVisionBridgeNoticeDisplay,
|
|
146
146
|
uiTelemetryService
|
|
147
|
-
} from "./chunk-
|
|
147
|
+
} from "./chunk-HAL7YT4M.js";
|
|
148
148
|
import {
|
|
149
149
|
ToolDisplayNames,
|
|
150
150
|
ToolNames,
|
|
151
151
|
ToolNamesMigration
|
|
152
|
-
} from "./chunk-
|
|
152
|
+
} from "./chunk-S35ZDXOS.js";
|
|
153
153
|
import {
|
|
154
154
|
createDebugLogger,
|
|
155
155
|
escapePath,
|
|
@@ -0,0 +1,391 @@
|
|
|
1
|
+
// Force strict mode and setup for ESM
|
|
2
|
+
"use strict";
|
|
3
|
+
import {
|
|
4
|
+
delay
|
|
5
|
+
} from "./chunk-NL37SKPP.js";
|
|
6
|
+
import {
|
|
7
|
+
isTlsVerificationDisabled
|
|
8
|
+
} from "./chunk-6EFTQYW7.js";
|
|
9
|
+
import {
|
|
10
|
+
getErrorMessage
|
|
11
|
+
} from "./chunk-C27BYUX6.js";
|
|
12
|
+
import {
|
|
13
|
+
init_esbuild_shims
|
|
14
|
+
} from "./chunk-5O2XNYP6.js";
|
|
15
|
+
import {
|
|
16
|
+
__name
|
|
17
|
+
} from "./chunk-J2S4EL5Y.js";
|
|
18
|
+
|
|
19
|
+
// packages/core/src/utils/fetch.ts
|
|
20
|
+
init_esbuild_shims();
|
|
21
|
+
import { URL } from "node:url";
|
|
22
|
+
var PRIVATE_IP_RANGES = [
|
|
23
|
+
/^10\./,
|
|
24
|
+
/^127\./,
|
|
25
|
+
/^172\.(1[6-9]|2[0-9]|3[0-1])\./,
|
|
26
|
+
/^192\.168\./,
|
|
27
|
+
// IPv4 link-local (incl. cloud metadata endpoints) and CGNAT 100.64.0.0/10.
|
|
28
|
+
/^169\.254\./,
|
|
29
|
+
/^100\.(6[4-9]|[7-9][0-9]|1[01][0-9]|12[0-7])\./,
|
|
30
|
+
/^0\.0\.0\.0$/,
|
|
31
|
+
/^::1$/,
|
|
32
|
+
/^::$/,
|
|
33
|
+
// ULA fc00::/7 covers fc00: through fdff: (fd00: is the common prefix in
|
|
34
|
+
// practice); link-local fe80::/10 covers fe80: through febf:.
|
|
35
|
+
/^f[cd][0-9a-f]{2}:/i,
|
|
36
|
+
/^fe[89ab][0-9a-f]:/i
|
|
37
|
+
];
|
|
38
|
+
var TLS_ERROR_CODES = /* @__PURE__ */ new Set([
|
|
39
|
+
"UNABLE_TO_GET_ISSUER_CERT_LOCALLY",
|
|
40
|
+
"UNABLE_TO_VERIFY_LEAF_SIGNATURE",
|
|
41
|
+
"SELF_SIGNED_CERT_IN_CHAIN",
|
|
42
|
+
"DEPTH_ZERO_SELF_SIGNED_CERT",
|
|
43
|
+
"CERT_HAS_EXPIRED",
|
|
44
|
+
"ERR_TLS_CERT_ALTNAME_INVALID"
|
|
45
|
+
]);
|
|
46
|
+
var FETCH_TROUBLESHOOTING_ERROR_CODES = /* @__PURE__ */ new Set([
|
|
47
|
+
...TLS_ERROR_CODES,
|
|
48
|
+
"ECONNRESET",
|
|
49
|
+
"ETIMEDOUT",
|
|
50
|
+
"ECONNREFUSED",
|
|
51
|
+
"ENOTFOUND",
|
|
52
|
+
"EAI_AGAIN",
|
|
53
|
+
"EHOSTUNREACH",
|
|
54
|
+
"ENETUNREACH"
|
|
55
|
+
]);
|
|
56
|
+
var FetchError = class extends Error {
|
|
57
|
+
constructor(message, code) {
|
|
58
|
+
super(message);
|
|
59
|
+
this.code = code;
|
|
60
|
+
this.name = "FetchError";
|
|
61
|
+
}
|
|
62
|
+
static {
|
|
63
|
+
__name(this, "FetchError");
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
var CONNECTION_LEVEL_ERROR_CODES = /* @__PURE__ */ new Set([
|
|
67
|
+
...TLS_ERROR_CODES,
|
|
68
|
+
"ECONNREFUSED",
|
|
69
|
+
"EPROTO",
|
|
70
|
+
"ERR_SSL_WRONG_VERSION_NUMBER",
|
|
71
|
+
// Servers that don't speak TLS on 443 often reset during the handshake
|
|
72
|
+
// rather than refusing the connection. Safe to include: the http fallback
|
|
73
|
+
// only ever fires for URLs the caller requested as http.
|
|
74
|
+
"ECONNRESET",
|
|
75
|
+
"UND_ERR_SOCKET",
|
|
76
|
+
// Filtered port 443 (silent drop): undici's own bounded connect timeout.
|
|
77
|
+
// Deliberately NOT the full-budget ETIMEDOUT — that can fire mid-body on
|
|
78
|
+
// a healthy https server, and a fallback there would double a worst-case
|
|
79
|
+
// 60s wait for an ambiguous gain.
|
|
80
|
+
"UND_ERR_CONNECT_TIMEOUT"
|
|
81
|
+
]);
|
|
82
|
+
function isConnectionLevelError(error) {
|
|
83
|
+
return error instanceof FetchError && error.code !== void 0 && CONNECTION_LEVEL_ERROR_CODES.has(error.code);
|
|
84
|
+
}
|
|
85
|
+
__name(isConnectionLevelError, "isConnectionLevelError");
|
|
86
|
+
function mappedIpv4(hostname) {
|
|
87
|
+
const match = /^::ffff:(.+)$/i.exec(hostname);
|
|
88
|
+
if (!match) return void 0;
|
|
89
|
+
const tail = match[1];
|
|
90
|
+
if (tail.includes(".")) return tail;
|
|
91
|
+
const groups = tail.split(":");
|
|
92
|
+
if (groups.length !== 2) return void 0;
|
|
93
|
+
const hi = Number.parseInt(groups[0], 16);
|
|
94
|
+
const lo = Number.parseInt(groups[1], 16);
|
|
95
|
+
if (Number.isNaN(hi) || Number.isNaN(lo)) return void 0;
|
|
96
|
+
return `${hi >> 8}.${hi & 255}.${lo >> 8}.${lo & 255}`;
|
|
97
|
+
}
|
|
98
|
+
__name(mappedIpv4, "mappedIpv4");
|
|
99
|
+
function isPrivateIp(url) {
|
|
100
|
+
try {
|
|
101
|
+
const hostname = new URL(url).hostname.replace(/^\[|\]$/g, "");
|
|
102
|
+
const target = mappedIpv4(hostname) ?? hostname;
|
|
103
|
+
return PRIVATE_IP_RANGES.some((range) => range.test(target));
|
|
104
|
+
} catch (_e) {
|
|
105
|
+
return false;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
__name(isPrivateIp, "isPrivateIp");
|
|
109
|
+
var INTERNAL_HOST_SUFFIXES = [".local", ".internal", ".lan", ".home.arpa"];
|
|
110
|
+
function isPrivateHost(url) {
|
|
111
|
+
try {
|
|
112
|
+
const hostname = new URL(url).hostname.toLowerCase();
|
|
113
|
+
return hostname === "localhost" || hostname.endsWith(".localhost") || hostname === "host.docker.internal" || // Single-label hostnames (intranet, ci, printserver) are never public.
|
|
114
|
+
// IPv6 literals are bracketed and dot-free but CAN be public — they
|
|
115
|
+
// are classified by isPrivateIp below, not by this heuristic.
|
|
116
|
+
!hostname.includes(".") && !hostname.startsWith("[") || INTERNAL_HOST_SUFFIXES.some((suffix) => hostname.endsWith(suffix)) || isPrivateIp(url);
|
|
117
|
+
} catch {
|
|
118
|
+
return false;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
__name(isPrivateHost, "isPrivateHost");
|
|
122
|
+
var REDIRECT_STATUSES = /* @__PURE__ */ new Set([301, 302, 303, 307, 308]);
|
|
123
|
+
function isPermittedRedirect(originalUrl, redirectUrl) {
|
|
124
|
+
try {
|
|
125
|
+
const original = new URL(originalUrl);
|
|
126
|
+
const redirect = new URL(redirectUrl);
|
|
127
|
+
if (redirect.protocol !== original.protocol) return false;
|
|
128
|
+
if (redirect.port !== original.port) return false;
|
|
129
|
+
if (redirect.username || redirect.password) return false;
|
|
130
|
+
const stripWww = /* @__PURE__ */ __name((hostname) => hostname.replace(/^www\./, ""), "stripWww");
|
|
131
|
+
return stripWww(original.hostname) === stripWww(redirect.hostname);
|
|
132
|
+
} catch {
|
|
133
|
+
return false;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
__name(isPermittedRedirect, "isPermittedRedirect");
|
|
137
|
+
var RETRYABLE_STATUSES = /* @__PURE__ */ new Set([403, 429]);
|
|
138
|
+
var RETRYABLE_ERROR_CODES = /* @__PURE__ */ new Set([
|
|
139
|
+
"ECONNRESET",
|
|
140
|
+
"EAI_AGAIN",
|
|
141
|
+
"UND_ERR_SOCKET"
|
|
142
|
+
]);
|
|
143
|
+
var RETRY_DELAY_MS = 500;
|
|
144
|
+
async function fetchWithPolicy(url, options) {
|
|
145
|
+
const timeoutSignal = AbortSignal.timeout(options.timeoutMs);
|
|
146
|
+
const signal = options.signal ? AbortSignal.any([options.signal, timeoutSignal]) : timeoutSignal;
|
|
147
|
+
const abortError = /* @__PURE__ */ __name(() => {
|
|
148
|
+
if (options.signal?.aborted) {
|
|
149
|
+
return options.signal.reason instanceof Error ? options.signal.reason : new FetchError("Request aborted", "ABORT_ERR");
|
|
150
|
+
}
|
|
151
|
+
if (timeoutSignal.aborted) {
|
|
152
|
+
return new FetchError(
|
|
153
|
+
`Request timed out after ${options.timeoutMs}ms`,
|
|
154
|
+
"ETIMEDOUT"
|
|
155
|
+
);
|
|
156
|
+
}
|
|
157
|
+
return void 0;
|
|
158
|
+
}, "abortError");
|
|
159
|
+
let first;
|
|
160
|
+
try {
|
|
161
|
+
first = await fetchPolicyAttempt(url, options, signal, timeoutSignal);
|
|
162
|
+
} catch (error) {
|
|
163
|
+
if (error instanceof FetchError && error.code !== void 0 && RETRYABLE_ERROR_CODES.has(error.code) && !signal.aborted) {
|
|
164
|
+
try {
|
|
165
|
+
await delay(RETRY_DELAY_MS, signal);
|
|
166
|
+
} catch {
|
|
167
|
+
throw abortError() ?? error;
|
|
168
|
+
}
|
|
169
|
+
return fetchPolicyAttempt(url, options, signal, timeoutSignal);
|
|
170
|
+
}
|
|
171
|
+
throw error;
|
|
172
|
+
}
|
|
173
|
+
if (first.kind === "response" && RETRYABLE_STATUSES.has(first.status) && !signal.aborted) {
|
|
174
|
+
try {
|
|
175
|
+
await delay(RETRY_DELAY_MS, signal);
|
|
176
|
+
return await fetchPolicyAttempt(url, options, signal, timeoutSignal);
|
|
177
|
+
} catch {
|
|
178
|
+
const aborted = abortError();
|
|
179
|
+
if (aborted) throw aborted;
|
|
180
|
+
return first;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
return first;
|
|
184
|
+
}
|
|
185
|
+
__name(fetchWithPolicy, "fetchWithPolicy");
|
|
186
|
+
async function fetchPolicyAttempt(url, options, signal, timeoutSignal) {
|
|
187
|
+
const wrapAbort = /* @__PURE__ */ __name((error) => {
|
|
188
|
+
if (options.signal?.aborted) {
|
|
189
|
+
throw options.signal.reason instanceof Error ? options.signal.reason : new FetchError("Request aborted", "ABORT_ERR");
|
|
190
|
+
}
|
|
191
|
+
if (timeoutSignal.aborted) {
|
|
192
|
+
throw new FetchError(
|
|
193
|
+
`Request timed out after ${options.timeoutMs}ms`,
|
|
194
|
+
"ETIMEDOUT"
|
|
195
|
+
);
|
|
196
|
+
}
|
|
197
|
+
if (error instanceof FetchError) throw error;
|
|
198
|
+
const code = getErrorCode(error) ?? (error instanceof Error ? getErrorCode(error.cause) : void 0);
|
|
199
|
+
throw new FetchError(getErrorMessage(error), code);
|
|
200
|
+
}, "wrapAbort");
|
|
201
|
+
let currentUrl = url;
|
|
202
|
+
for (let hop = 0; hop <= options.maxRedirects; hop++) {
|
|
203
|
+
let response;
|
|
204
|
+
try {
|
|
205
|
+
response = await fetch(currentUrl, {
|
|
206
|
+
signal,
|
|
207
|
+
headers: options.headers,
|
|
208
|
+
redirect: "manual"
|
|
209
|
+
});
|
|
210
|
+
} catch (error) {
|
|
211
|
+
return wrapAbort(error);
|
|
212
|
+
}
|
|
213
|
+
if (REDIRECT_STATUSES.has(response.status)) {
|
|
214
|
+
const location = response.headers.get("location");
|
|
215
|
+
await response.body?.cancel().catch(() => {
|
|
216
|
+
});
|
|
217
|
+
if (!location) {
|
|
218
|
+
throw new FetchError("Redirect response missing Location header");
|
|
219
|
+
}
|
|
220
|
+
let redirectUrl;
|
|
221
|
+
try {
|
|
222
|
+
redirectUrl = new URL(location, currentUrl).toString();
|
|
223
|
+
} catch {
|
|
224
|
+
throw new FetchError(
|
|
225
|
+
`Redirect response has a malformed Location header: ${location}`
|
|
226
|
+
);
|
|
227
|
+
}
|
|
228
|
+
if (!isPermittedRedirect(currentUrl, redirectUrl)) {
|
|
229
|
+
return {
|
|
230
|
+
kind: "cross-host-redirect",
|
|
231
|
+
originalUrl: currentUrl,
|
|
232
|
+
redirectUrl,
|
|
233
|
+
status: response.status
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
currentUrl = redirectUrl;
|
|
237
|
+
continue;
|
|
238
|
+
}
|
|
239
|
+
if (response.status < 200 || response.status >= 300) {
|
|
240
|
+
await response.body?.cancel().catch(() => {
|
|
241
|
+
});
|
|
242
|
+
return {
|
|
243
|
+
kind: "response",
|
|
244
|
+
status: response.status,
|
|
245
|
+
statusText: response.statusText,
|
|
246
|
+
contentType: response.headers.get("content-type") ?? "",
|
|
247
|
+
contentDisposition: response.headers.get("content-disposition") ?? "",
|
|
248
|
+
body: Buffer.alloc(0),
|
|
249
|
+
finalUrl: currentUrl
|
|
250
|
+
};
|
|
251
|
+
}
|
|
252
|
+
const contentLength = Number(response.headers.get("content-length"));
|
|
253
|
+
if (Number.isFinite(contentLength) && contentLength > options.maxBytes) {
|
|
254
|
+
await response.body?.cancel().catch(() => {
|
|
255
|
+
});
|
|
256
|
+
throw new FetchError(
|
|
257
|
+
`Response too large: ${contentLength} bytes exceeds the ${options.maxBytes}-byte limit`,
|
|
258
|
+
"EMSGSIZE"
|
|
259
|
+
);
|
|
260
|
+
}
|
|
261
|
+
const chunks = [];
|
|
262
|
+
let total = 0;
|
|
263
|
+
if (response.body) {
|
|
264
|
+
const reader = response.body.getReader();
|
|
265
|
+
try {
|
|
266
|
+
for (; ; ) {
|
|
267
|
+
const { done, value } = await reader.read();
|
|
268
|
+
if (done) break;
|
|
269
|
+
total += value.byteLength;
|
|
270
|
+
if (total > options.maxBytes) {
|
|
271
|
+
throw new FetchError(
|
|
272
|
+
`Response too large: exceeded the ${options.maxBytes}-byte limit while streaming`,
|
|
273
|
+
"EMSGSIZE"
|
|
274
|
+
);
|
|
275
|
+
}
|
|
276
|
+
chunks.push(value);
|
|
277
|
+
}
|
|
278
|
+
} catch (error) {
|
|
279
|
+
await reader.cancel().catch(() => {
|
|
280
|
+
});
|
|
281
|
+
if (error instanceof FetchError) throw error;
|
|
282
|
+
return wrapAbort(error);
|
|
283
|
+
} finally {
|
|
284
|
+
reader.releaseLock();
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
return {
|
|
288
|
+
kind: "response",
|
|
289
|
+
status: response.status,
|
|
290
|
+
statusText: response.statusText,
|
|
291
|
+
contentType: response.headers.get("content-type") ?? "",
|
|
292
|
+
contentDisposition: response.headers.get("content-disposition") ?? "",
|
|
293
|
+
body: Buffer.concat(chunks, total),
|
|
294
|
+
finalUrl: currentUrl
|
|
295
|
+
};
|
|
296
|
+
}
|
|
297
|
+
throw new FetchError(
|
|
298
|
+
`Too many redirects (exceeded ${options.maxRedirects})`,
|
|
299
|
+
"EMAXREDIRECTS"
|
|
300
|
+
);
|
|
301
|
+
}
|
|
302
|
+
__name(fetchPolicyAttempt, "fetchPolicyAttempt");
|
|
303
|
+
function getErrorCode(error) {
|
|
304
|
+
if (!error || typeof error !== "object") {
|
|
305
|
+
return void 0;
|
|
306
|
+
}
|
|
307
|
+
if ("code" in error && typeof error["code"] === "string") {
|
|
308
|
+
return error["code"];
|
|
309
|
+
}
|
|
310
|
+
return void 0;
|
|
311
|
+
}
|
|
312
|
+
__name(getErrorCode, "getErrorCode");
|
|
313
|
+
function formatUnknownErrorMessage(error) {
|
|
314
|
+
if (typeof error === "string") {
|
|
315
|
+
return error;
|
|
316
|
+
}
|
|
317
|
+
if (typeof error === "number" || typeof error === "boolean" || typeof error === "bigint") {
|
|
318
|
+
return String(error);
|
|
319
|
+
}
|
|
320
|
+
if (error instanceof Error) {
|
|
321
|
+
return error.message;
|
|
322
|
+
}
|
|
323
|
+
if (!error || typeof error !== "object") {
|
|
324
|
+
return void 0;
|
|
325
|
+
}
|
|
326
|
+
const message = error["message"];
|
|
327
|
+
if (typeof message === "string") {
|
|
328
|
+
return message;
|
|
329
|
+
}
|
|
330
|
+
return void 0;
|
|
331
|
+
}
|
|
332
|
+
__name(formatUnknownErrorMessage, "formatUnknownErrorMessage");
|
|
333
|
+
function formatErrorCause(error) {
|
|
334
|
+
if (!(error instanceof Error)) {
|
|
335
|
+
return void 0;
|
|
336
|
+
}
|
|
337
|
+
const cause = error.cause;
|
|
338
|
+
if (!cause) {
|
|
339
|
+
return void 0;
|
|
340
|
+
}
|
|
341
|
+
const causeCode = getErrorCode(cause);
|
|
342
|
+
const causeMessage = formatUnknownErrorMessage(cause);
|
|
343
|
+
if (!causeCode && !causeMessage) {
|
|
344
|
+
return void 0;
|
|
345
|
+
}
|
|
346
|
+
if (causeCode && causeMessage && !causeMessage.includes(causeCode)) {
|
|
347
|
+
return `${causeCode}: ${causeMessage}`;
|
|
348
|
+
}
|
|
349
|
+
return causeMessage ?? causeCode;
|
|
350
|
+
}
|
|
351
|
+
__name(formatErrorCause, "formatErrorCause");
|
|
352
|
+
function formatFetchErrorForUser(error, options = {}) {
|
|
353
|
+
const errorMessage = getErrorMessage(error);
|
|
354
|
+
const code = error instanceof Error ? getErrorCode(error.cause) ?? getErrorCode(error) : getErrorCode(error);
|
|
355
|
+
const cause = formatErrorCause(error);
|
|
356
|
+
const fullErrorMessage = [
|
|
357
|
+
errorMessage,
|
|
358
|
+
cause ? `(cause: ${cause})` : void 0
|
|
359
|
+
].filter(Boolean).join(" ");
|
|
360
|
+
const shouldShowFetchHints = errorMessage.toLowerCase().includes("fetch failed") || code != null && FETCH_TROUBLESHOOTING_ERROR_CODES.has(code);
|
|
361
|
+
const shouldShowTlsHint = code != null && TLS_ERROR_CODES.has(code);
|
|
362
|
+
if (!shouldShowFetchHints) {
|
|
363
|
+
return fullErrorMessage;
|
|
364
|
+
}
|
|
365
|
+
const hintLines = [
|
|
366
|
+
"",
|
|
367
|
+
"Troubleshooting:",
|
|
368
|
+
...options.url ? [`- Confirm you can reach ${options.url} from this machine.`] : [],
|
|
369
|
+
"- If you are behind a proxy, pass `--proxy <url>` (or set `proxy` in settings).",
|
|
370
|
+
...shouldShowTlsHint ? isTlsVerificationDisabled() ? [
|
|
371
|
+
"- TLS verification is already disabled (`--insecure` / `QWEN_TLS_INSECURE`), so this is likely a network or protocol issue rather than a certificate trust problem."
|
|
372
|
+
] : [
|
|
373
|
+
"- If your network uses a corporate TLS inspection CA, set `NODE_EXTRA_CA_CERTS` to your CA bundle.",
|
|
374
|
+
"- For a trusted self-signed endpoint, pass `--insecure` (or set `QWEN_TLS_INSECURE=1`) to skip certificate verification."
|
|
375
|
+
] : []
|
|
376
|
+
];
|
|
377
|
+
return `${fullErrorMessage}${hintLines.join("\n")}`;
|
|
378
|
+
}
|
|
379
|
+
__name(formatFetchErrorForUser, "formatFetchErrorForUser");
|
|
380
|
+
|
|
381
|
+
export {
|
|
382
|
+
isConnectionLevelError,
|
|
383
|
+
isPrivateHost,
|
|
384
|
+
fetchWithPolicy,
|
|
385
|
+
formatFetchErrorForUser
|
|
386
|
+
};
|
|
387
|
+
/**
|
|
388
|
+
* @license
|
|
389
|
+
* Copyright 2025 Google LLC
|
|
390
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
391
|
+
*/
|
|
@@ -7,22 +7,22 @@ import {
|
|
|
7
7
|
parseAcpBaseModelId,
|
|
8
8
|
resolveCliGenerationConfig,
|
|
9
9
|
sanitizeProviderBaseUrl
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-3XZIXCJY.js";
|
|
11
11
|
import {
|
|
12
12
|
snapshotProcessEnv
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-JXWFXSLN.js";
|
|
14
14
|
import {
|
|
15
15
|
STATUS_SCHEMA_VERSION
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-M2DASLLB.js";
|
|
17
17
|
import {
|
|
18
18
|
loadSettings
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-QCCOKIGW.js";
|
|
20
20
|
import {
|
|
21
21
|
ModelsConfig
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-RTEHQUAD.js";
|
|
23
23
|
import {
|
|
24
24
|
APPROVAL_MODES
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-ETD6K42I.js";
|
|
26
26
|
import {
|
|
27
27
|
tokenLimit
|
|
28
28
|
} from "./chunk-MAQQGNQ5.js";
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
buildPermissionSettings
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-SWRMKMVY.js";
|
|
6
6
|
import {
|
|
7
7
|
resolveVoiceStreamConfig,
|
|
8
8
|
resolveVoiceTranscriptionConfig,
|
|
9
9
|
transcribeVoiceAudio
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-NNDKJNCC.js";
|
|
11
11
|
import {
|
|
12
12
|
getVoiceSettingsScope,
|
|
13
13
|
isSelectableVoiceModel,
|
|
@@ -16,13 +16,7 @@ import {
|
|
|
16
16
|
readVoiceMode,
|
|
17
17
|
readVoiceModel,
|
|
18
18
|
resolveVoiceTransport
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import {
|
|
21
|
-
WorkspacePermissionRulesSessionRequiredError,
|
|
22
|
-
WorkspaceSettingsPartialPersistError,
|
|
23
|
-
WorkspaceSkillNotFoundError,
|
|
24
|
-
WorkspaceSkillNotToggleableError
|
|
25
|
-
} from "./chunk-OA4JVLSA.js";
|
|
19
|
+
} from "./chunk-E6XTP5ZF.js";
|
|
26
20
|
import {
|
|
27
21
|
MCP_RESTART_SERVER_DEADLINE_MS,
|
|
28
22
|
McpServerNotFoundError,
|
|
@@ -46,14 +40,20 @@ import {
|
|
|
46
40
|
createIdleWorkspaceProvidersStatus,
|
|
47
41
|
createIdleWorkspaceSkillsStatus,
|
|
48
42
|
mapDomainErrorToErrorKind
|
|
49
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-M2DASLLB.js";
|
|
44
|
+
import {
|
|
45
|
+
WorkspacePermissionRulesSessionRequiredError,
|
|
46
|
+
WorkspaceSettingsPartialPersistError,
|
|
47
|
+
WorkspaceSkillNotFoundError,
|
|
48
|
+
WorkspaceSkillNotToggleableError
|
|
49
|
+
} from "./chunk-OA4JVLSA.js";
|
|
50
50
|
import {
|
|
51
51
|
getPersistScopeForModelSelection,
|
|
52
52
|
loadSettings
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-QCCOKIGW.js";
|
|
54
54
|
import {
|
|
55
55
|
getWorkspaceTrustStatus
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-XBAYQWDL.js";
|
|
57
57
|
import {
|
|
58
58
|
writeStderrLine
|
|
59
59
|
} from "./chunk-OWAK7LMW.js";
|
|
@@ -61,7 +61,7 @@ import {
|
|
|
61
61
|
ModelsConfig,
|
|
62
62
|
SkillManager,
|
|
63
63
|
require_yauzl
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-RTEHQUAD.js";
|
|
65
65
|
import {
|
|
66
66
|
Storage,
|
|
67
67
|
createDebugLogger
|
|
@@ -2,23 +2,23 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
appEvents
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-W2LKWG6I.js";
|
|
6
6
|
import {
|
|
7
7
|
CUSTOM_SANDBOX_IMAGE_ENV_VAR,
|
|
8
8
|
HOST_UPDATE_RELAUNCH_ENV_VAR,
|
|
9
9
|
SKIP_UPDATE_CHECK_ENV_VAR,
|
|
10
10
|
requestUpdateOnExit
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-DFQGFXMQ.js";
|
|
12
12
|
import {
|
|
13
13
|
require_undici
|
|
14
14
|
} from "./chunk-L573Z2QZ.js";
|
|
15
15
|
import {
|
|
16
16
|
IdeClient,
|
|
17
17
|
getAllProviderBaseUrls
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-RTEHQUAD.js";
|
|
19
19
|
import {
|
|
20
20
|
initializeTelemetry
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-HAL7YT4M.js";
|
|
22
22
|
import {
|
|
23
23
|
detectRuntime,
|
|
24
24
|
getOrCreateSharedDispatcher,
|
|
@@ -233,11 +233,11 @@ function startPostRenderPrefetches(config, settings, options = {}) {
|
|
|
233
233
|
{ updateEventEmitter },
|
|
234
234
|
{ t }
|
|
235
235
|
] = await Promise.all([
|
|
236
|
-
import("./updateCheck-
|
|
237
|
-
import("./handleAutoUpdate-
|
|
238
|
-
import("./installationInfo-
|
|
236
|
+
import("./updateCheck-G5JYMVJZ.js"),
|
|
237
|
+
import("./handleAutoUpdate-EGCO46FV.js"),
|
|
238
|
+
import("./installationInfo-HOKGVMMQ.js"),
|
|
239
239
|
import("./updateEventEmitter-5MKC7BLQ.js"),
|
|
240
|
-
import("./i18n-
|
|
240
|
+
import("./i18n-4LK42EK5.js")
|
|
241
241
|
]);
|
|
242
242
|
const updateFailedMessage = t(
|
|
243
243
|
"Failed to check for updates. Please check your network or registry configuration."
|
|
@@ -304,7 +304,7 @@ ${t(
|
|
|
304
304
|
state: "connecting"
|
|
305
305
|
});
|
|
306
306
|
try {
|
|
307
|
-
const { connectIdeForStartup } = await import("./initializer-
|
|
307
|
+
const { connectIdeForStartup } = await import("./initializer-DAL5QAZU.js");
|
|
308
308
|
await withTimeout(
|
|
309
309
|
connectIdeForStartup(config),
|
|
310
310
|
"ide_connect",
|
|
@@ -330,7 +330,7 @@ ${t(
|
|
|
330
330
|
}
|
|
331
331
|
if (config.isInteractive()) {
|
|
332
332
|
runDeferredTask("background_housekeeping", async () => {
|
|
333
|
-
const { startBackgroundHousekeeping } = await import("./scheduler-
|
|
333
|
+
const { startBackgroundHousekeeping } = await import("./scheduler-4TIUONHH.js");
|
|
334
334
|
startBackgroundHousekeeping(config, settings);
|
|
335
335
|
});
|
|
336
336
|
}
|