@qwen-code/qwen-code 0.17.0-preview.0 → 0.17.1-nightly.20260604.16dd99fa3
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/features/approval-mode.md +26 -22
- package/bundled/qc-helper/docs/features/commands.md +12 -10
- package/bundled/qc-helper/docs/features/status-line.md +161 -27
- package/chunks/{agent-Z7O3I6MY.js → agent-GNHB6UIW.js} +10 -10
- package/chunks/{anthropicContentGenerator-UCGOKLGC.js → anthropicContentGenerator-M45RXZVS.js} +3 -3
- package/chunks/{askUserQuestion-DC6OWQIL.js → askUserQuestion-TGRD7FNQ.js} +1 -1
- package/chunks/{ca-NMZFEGAU.js → ca-6RSCDYUS.js} +2 -1
- package/chunks/{chunk-J5VCSWPA.js → chunk-3PJXIDKI.js} +1153 -103
- package/chunks/{chunk-FEENTAB2.js → chunk-6O244QKR.js} +1 -1
- package/chunks/chunk-7TQVELRB.js +10412 -0
- package/chunks/{chunk-HCSJIOLR.js → chunk-BNESGOSJ.js} +7450 -3516
- package/chunks/{chunk-V7LMZR76.js → chunk-JBSYXHJF.js} +1 -1
- package/chunks/{chunk-R2B65CAN.js → chunk-JKUAX6UT.js} +0 -1
- package/chunks/{chunk-7JHNICSJ.js → chunk-JR346RJ5.js} +643 -136
- package/chunks/{chunk-4Q4IDQE5.js → chunk-K3VUDSWM.js} +4 -4
- package/chunks/{chunk-MJCO2CPA.js → chunk-NDZEP7SA.js} +45 -6
- package/chunks/{chunk-BF5WTWOH.js → chunk-NJY4F5NM.js} +3 -3
- package/chunks/{chunk-U2K6HDUJ.js → chunk-QVJ33ZBG.js} +23 -13
- package/chunks/{chunk-HAQCNXSG.js → chunk-RQW7WUJR.js} +15 -0
- package/chunks/{chunk-UQRYJQBE.js → chunk-SOGUPKP6.js} +1 -1
- package/chunks/{chunk-ZWH2TVVN.js → chunk-XK4IGU5E.js} +10 -10
- package/chunks/{chunk-OXXOAIGT.js → chunk-YVGIQ2CS.js} +333 -1162
- package/chunks/{computer-use-2J5ZXEER.js → computer-use-NAHQPV2L.js} +24 -6
- package/chunks/{contextCommand-FU55EUOH.js → contextCommand-VKNIA257.js} +12 -12
- package/chunks/{cron-create-FXRORK2U.js → cron-create-V3UK2SJN.js} +1 -1
- package/chunks/{cron-delete-D24IN6CA.js → cron-delete-MANALPCP.js} +1 -1
- package/chunks/{cron-list-SMOX26SL.js → cron-list-UDIYK3B3.js} +1 -1
- package/chunks/{de-OIMT3OMI.js → de-APURNJ3I.js} +2 -1
- package/chunks/{dist-GRQVFL3G.js → dist-ATAKC63R.js} +1 -1
- package/chunks/{edit-UQFK25NR.js → edit-YP22XCVA.js} +10 -10
- package/chunks/{en-2IFZ5THF.js → en-FYO57HJW.js} +3 -1
- package/chunks/{enter-worktree-VZT6JX45.js → enter-worktree-BD7UFMUZ.js} +10 -10
- package/chunks/{exit-worktree-JETQQ26R.js → exit-worktree-AVWBCQWY.js} +10 -10
- package/chunks/{exitPlanMode-SFNBASAU.js → exitPlanMode-2D6EGF76.js} +10 -10
- package/chunks/{fr-PVELSHTV.js → fr-32YHQZIS.js} +2 -1
- package/chunks/{geminiContentGenerator-XWUW7B7J.js → geminiContentGenerator-YFVW6DXY.js} +2 -2
- package/chunks/{glob-34CPYA2M.js → glob-NZWP66L5.js} +10 -10
- package/chunks/{grep-4RXPZUYZ.js → grep-RFEZDGI4.js} +10 -10
- package/chunks/{ja-P5TK5GNN.js → ja-PEUXN4XT.js} +2 -1
- package/chunks/{ls-7FYQHPWF.js → ls-T4SVZWR6.js} +1 -1
- package/chunks/{lsp-DKG34USR.js → lsp-U4ZQLNIS.js} +1 -1
- package/chunks/{monitor-QCNAUO75.js → monitor-OHKCQLFQ.js} +10 -10
- package/chunks/{multipart-parser-IXGBIOIN.js → multipart-parser-AJ4WASWR.js} +2 -2
- package/chunks/{notebook-edit-I2MBTWI6.js → notebook-edit-AFRICVUX.js} +10 -10
- package/chunks/{openaiContentGenerator-VNQUJIG5.js → openaiContentGenerator-47KB64GP.js} +8 -8
- package/chunks/{pt-A5GHG66T.js → pt-2INS7YVC.js} +2 -1
- package/chunks/{qwenContentGenerator-LICFK2K7.js → qwenContentGenerator-7BC2OW3T.js} +12 -12
- package/chunks/{read-file-N2YTOQ2U.js → read-file-MXUW3RUF.js} +5 -5
- package/chunks/{ripGrep-NBWBOVPW.js → ripGrep-AHBINNF3.js} +10 -10
- package/chunks/{ru-66XKB4QX.js → ru-6CQ5HNHB.js} +2 -1
- package/chunks/{scheduler-XHHMN7TA.js → scheduler-KBRJ3LFC.js} +10 -10
- package/chunks/{send-message-ZL7CDM7K.js → send-message-GFYV7WLL.js} +1 -1
- package/chunks/{serve-HESJL2FH.js → serve-PVFP6HD7.js} +12 -12
- package/chunks/{shell-V7PVS7O7.js → shell-JOXQ5PPL.js} +10 -10
- package/chunks/{skill-6LP5ANRL.js → skill-73RYGDJQ.js} +6 -6
- package/chunks/{src-TMOD5X6F.js → src-7XL4G4DC.js} +88 -46
- package/chunks/{src-4TLZBCTV.js → src-DR3Y7J6D.js} +14 -12
- package/chunks/{syntheticOutput-U3YJ3GOO.js → syntheticOutput-DM43O6TY.js} +2 -2
- package/chunks/{task-stop-NPUI3YBA.js → task-stop-WKP5OB3V.js} +1 -1
- package/chunks/{todoWrite-USWGQJ53.js → todoWrite-GHL6DCLP.js} +8 -2
- package/chunks/{tool-search-6CRPUSUB.js → tool-search-DRMR34WX.js} +5 -5
- package/chunks/{web-fetch-LGLGFGGT.js → web-fetch-SZIV74ZX.js} +2 -2
- package/chunks/{write-file-CCMVL5Q7.js → write-file-B45ZAKUJ.js} +12 -12
- package/chunks/{zh-TW-3ND6DQRX.js → zh-TW-SSL3ATVZ.js} +3 -1
- package/chunks/{zh-OB5P2ZDO.js → zh-ZHZCMIRG.js} +3 -1
- package/cli.js +32976 -50717
- package/locales/ca.js +2 -1
- package/locales/de.js +2 -1
- package/locales/en.js +4 -1
- package/locales/fr.js +2 -1
- package/locales/ja.js +2 -1
- package/locales/pt.js +2 -1
- package/locales/ru.js +2 -1
- package/locales/zh-TW.js +4 -1
- package/locales/zh.js +4 -1
- package/package.json +2 -2
- package/chunks/chunk-EM6ETG2K.js +0 -60
- package/chunks/chunk-TI4GXJKO.js +0 -4277
- package/chunks/multipart-parser-3QWGTLK3.js +0 -384
- package/chunks/src-IPWIHNMI.js +0 -1406
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
RequestTokenizer
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-JBSYXHJF.js";
|
|
6
6
|
import {
|
|
7
7
|
OpenAIContentConverter,
|
|
8
8
|
TaggedThinkingParser,
|
|
9
9
|
openaiRequestCaptureContext
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-YVGIQ2CS.js";
|
|
11
11
|
import {
|
|
12
12
|
buildRuntimeFetchOptions,
|
|
13
13
|
redactProxyError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-QVJ33ZBG.js";
|
|
15
15
|
import {
|
|
16
16
|
CAPPED_DEFAULT_MAX_TOKENS,
|
|
17
17
|
DASHSCOPE_PROXY_BASE_URL,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
} from "./chunk-TDZCEIK6.js";
|
|
26
26
|
import {
|
|
27
27
|
GenerateContentResponse
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-BNESGOSJ.js";
|
|
29
29
|
import {
|
|
30
30
|
createDebugLogger,
|
|
31
31
|
isAbortError
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
getLanguageSettingsOptions,
|
|
7
7
|
t,
|
|
8
8
|
writeStderrLine
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-XK4IGU5E.js";
|
|
10
10
|
import {
|
|
11
11
|
DEFAULT_STOP_HOOK_BLOCK_CAP,
|
|
12
12
|
DEFAULT_TRUNCATE_TOOL_OUTPUT_LINES,
|
|
@@ -15,10 +15,10 @@ import {
|
|
|
15
15
|
SkillError,
|
|
16
16
|
ideContextStore,
|
|
17
17
|
require_main
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-JR346RJ5.js";
|
|
19
19
|
import {
|
|
20
20
|
isWithinRoot
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-YVGIQ2CS.js";
|
|
22
22
|
import {
|
|
23
23
|
atomicWriteFileSync
|
|
24
24
|
} from "./chunk-HX3JRTWL.js";
|
|
@@ -16148,7 +16148,7 @@ var SETTINGS_SCHEMA = {
|
|
|
16148
16148
|
showInDialog: true,
|
|
16149
16149
|
options: [
|
|
16150
16150
|
{ value: "plan" /* PLAN */, label: "Plan" },
|
|
16151
|
-
{ value: "default" /* DEFAULT */, label: "
|
|
16151
|
+
{ value: "default" /* DEFAULT */, label: "Ask permissions" },
|
|
16152
16152
|
{ value: "auto-edit" /* AUTO_EDIT */, label: "Auto Edit" },
|
|
16153
16153
|
{ value: "auto" /* AUTO */, label: "Auto" },
|
|
16154
16154
|
{ value: "yolo" /* YOLO */, label: "YOLO" }
|
|
@@ -16622,6 +16622,17 @@ var SETTINGS_SCHEMA = {
|
|
|
16622
16622
|
mergeStrategy: "concat" /* CONCAT */,
|
|
16623
16623
|
items: HOOK_DEFINITION_ITEMS
|
|
16624
16624
|
},
|
|
16625
|
+
PostToolBatch: {
|
|
16626
|
+
type: "array",
|
|
16627
|
+
label: "Post Tool Batch Hooks",
|
|
16628
|
+
category: "Advanced",
|
|
16629
|
+
requiresRestart: false,
|
|
16630
|
+
default: [],
|
|
16631
|
+
description: "Hooks that execute once after all tool calls in a batch resolve.",
|
|
16632
|
+
showInDialog: false,
|
|
16633
|
+
mergeStrategy: "concat" /* CONCAT */,
|
|
16634
|
+
items: HOOK_DEFINITION_ITEMS
|
|
16635
|
+
},
|
|
16625
16636
|
SessionStart: {
|
|
16626
16637
|
type: "array",
|
|
16627
16638
|
label: "Session Start Hooks",
|
|
@@ -18197,6 +18208,34 @@ var LoadedSettings = class {
|
|
|
18197
18208
|
recomputeMerged() {
|
|
18198
18209
|
this._merged = this.computeMergedSettings();
|
|
18199
18210
|
}
|
|
18211
|
+
reloadScopeFromDisk(scope) {
|
|
18212
|
+
const file = this.forScope(scope);
|
|
18213
|
+
try {
|
|
18214
|
+
if (!fs6.existsSync(file.path)) {
|
|
18215
|
+
file.settings = {};
|
|
18216
|
+
file.originalSettings = {};
|
|
18217
|
+
file.rawJson = void 0;
|
|
18218
|
+
this._merged = this.computeMergedSettings();
|
|
18219
|
+
return;
|
|
18220
|
+
}
|
|
18221
|
+
const content = fs6.readFileSync(file.path, "utf-8");
|
|
18222
|
+
const parsed = JSON.parse((0, import_strip_json_comments2.default)(content));
|
|
18223
|
+
if (parsed && typeof parsed === "object" && !Array.isArray(parsed)) {
|
|
18224
|
+
const resolved = resolveEnvVarsInObject(
|
|
18225
|
+
parsed,
|
|
18226
|
+
getHomeEnvFallbackVars()
|
|
18227
|
+
);
|
|
18228
|
+
file.settings = resolved;
|
|
18229
|
+
file.originalSettings = structuredClone(parsed);
|
|
18230
|
+
file.rawJson = content;
|
|
18231
|
+
}
|
|
18232
|
+
} catch (err) {
|
|
18233
|
+
debugLogger3.warn(
|
|
18234
|
+
`reloadScopeFromDisk(${scope}): ${getErrorMessage(err)}`
|
|
18235
|
+
);
|
|
18236
|
+
}
|
|
18237
|
+
this._merged = this.computeMergedSettings();
|
|
18238
|
+
}
|
|
18200
18239
|
/**
|
|
18201
18240
|
* Get user-level hooks from user settings (not merged with workspace).
|
|
18202
18241
|
* These hooks should always be loaded regardless of folder trust.
|
|
@@ -18973,7 +19012,7 @@ __name(getPackageJson, "getPackageJson");
|
|
|
18973
19012
|
// packages/cli/src/utils/version.ts
|
|
18974
19013
|
async function getCliVersion() {
|
|
18975
19014
|
const pkgJson = await getPackageJson();
|
|
18976
|
-
return "0.17.
|
|
19015
|
+
return "0.17.1-nightly.20260604.16dd99fa3";
|
|
18977
19016
|
}
|
|
18978
19017
|
__name(getCliVersion, "getCliVersion");
|
|
18979
19018
|
|
|
@@ -19068,7 +19107,7 @@ var formatDuration = /* @__PURE__ */ __name((milliseconds, options) => {
|
|
|
19068
19107
|
|
|
19069
19108
|
// packages/cli/src/generated/git-commit.ts
|
|
19070
19109
|
init_esbuild_shims();
|
|
19071
|
-
var GIT_COMMIT_INFO = "
|
|
19110
|
+
var GIT_COMMIT_INFO = "b29e672ab";
|
|
19072
19111
|
|
|
19073
19112
|
// packages/cli/src/utils/systemInfo.ts
|
|
19074
19113
|
var debugLogger4 = createDebugLogger("STATUS");
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
t
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-XK4IGU5E.js";
|
|
6
6
|
import {
|
|
7
7
|
computeThresholds,
|
|
8
8
|
getCoreSystemPrompt
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-JR346RJ5.js";
|
|
10
10
|
import {
|
|
11
11
|
buildSkillLlmContent
|
|
12
12
|
} from "./chunk-EY6BDW7Y.js";
|
|
13
13
|
import {
|
|
14
14
|
DiscoveredMCPTool,
|
|
15
15
|
uiTelemetryService
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-YVGIQ2CS.js";
|
|
17
17
|
import {
|
|
18
18
|
ToolNames
|
|
19
19
|
} from "./chunk-6RQTH7UQ.js";
|
|
@@ -8480,7 +8480,7 @@ var require_agent = __commonJS({
|
|
|
8480
8480
|
return opts && opts.connections === 1 ? new Client(origin, opts) : new Pool(origin, opts);
|
|
8481
8481
|
}
|
|
8482
8482
|
__name(defaultFactory, "defaultFactory");
|
|
8483
|
-
var
|
|
8483
|
+
var Agent2 = class extends DispatcherBase {
|
|
8484
8484
|
static {
|
|
8485
8485
|
__name(this, "Agent");
|
|
8486
8486
|
}
|
|
@@ -8555,7 +8555,7 @@ var require_agent = __commonJS({
|
|
|
8555
8555
|
await Promise.all(destroyPromises);
|
|
8556
8556
|
}
|
|
8557
8557
|
};
|
|
8558
|
-
module.exports =
|
|
8558
|
+
module.exports = Agent2;
|
|
8559
8559
|
}
|
|
8560
8560
|
});
|
|
8561
8561
|
|
|
@@ -8566,7 +8566,7 @@ var require_proxy_agent = __commonJS({
|
|
|
8566
8566
|
init_esbuild_shims();
|
|
8567
8567
|
var { kProxy, kClose, kDestroy, kDispatch, kInterceptors } = require_symbols();
|
|
8568
8568
|
var { URL: URL2 } = __require("node:url");
|
|
8569
|
-
var
|
|
8569
|
+
var Agent2 = require_agent();
|
|
8570
8570
|
var Pool = require_pool();
|
|
8571
8571
|
var DispatcherBase = require_dispatcher_base();
|
|
8572
8572
|
var { InvalidArgumentError, RequestAbortedError, SecureProxyConnectionError } = require_errors();
|
|
@@ -8690,7 +8690,7 @@ var require_proxy_agent = __commonJS({
|
|
|
8690
8690
|
return agentFactory(origin2, options);
|
|
8691
8691
|
}, "factory");
|
|
8692
8692
|
this[kClient] = clientFactory(url, { connect });
|
|
8693
|
-
this[kAgent] = new
|
|
8693
|
+
this[kAgent] = new Agent2({
|
|
8694
8694
|
...opts,
|
|
8695
8695
|
factory,
|
|
8696
8696
|
connect: /* @__PURE__ */ __name(async (opts2, callback) => {
|
|
@@ -8802,7 +8802,7 @@ var require_env_http_proxy_agent = __commonJS({
|
|
|
8802
8802
|
var DispatcherBase = require_dispatcher_base();
|
|
8803
8803
|
var { kClose, kDestroy, kClosed, kDestroyed, kDispatch, kNoProxyAgent, kHttpProxyAgent, kHttpsProxyAgent } = require_symbols();
|
|
8804
8804
|
var ProxyAgent2 = require_proxy_agent();
|
|
8805
|
-
var
|
|
8805
|
+
var Agent2 = require_agent();
|
|
8806
8806
|
var DEFAULT_PORTS = {
|
|
8807
8807
|
"http:": 80,
|
|
8808
8808
|
"https:": 443
|
|
@@ -8825,7 +8825,7 @@ var require_env_http_proxy_agent = __commonJS({
|
|
|
8825
8825
|
});
|
|
8826
8826
|
}
|
|
8827
8827
|
const { httpProxy, httpsProxy, noProxy, ...agentOpts } = opts;
|
|
8828
|
-
this[kNoProxyAgent] = new
|
|
8828
|
+
this[kNoProxyAgent] = new Agent2(agentOpts);
|
|
8829
8829
|
const HTTP_PROXY = httpProxy ?? process.env.http_proxy ?? process.env.HTTP_PROXY;
|
|
8830
8830
|
if (HTTP_PROXY) {
|
|
8831
8831
|
this[kHttpProxyAgent] = new ProxyAgent2({ ...agentOpts, uri: HTTP_PROXY });
|
|
@@ -11231,7 +11231,7 @@ var require_mock_agent = __commonJS({
|
|
|
11231
11231
|
"use strict";
|
|
11232
11232
|
init_esbuild_shims();
|
|
11233
11233
|
var { kClients } = require_symbols();
|
|
11234
|
-
var
|
|
11234
|
+
var Agent2 = require_agent();
|
|
11235
11235
|
var {
|
|
11236
11236
|
kAgent,
|
|
11237
11237
|
kMockAgentSet,
|
|
@@ -11261,7 +11261,7 @@ var require_mock_agent = __commonJS({
|
|
|
11261
11261
|
if (opts?.agent && typeof opts.agent.dispatch !== "function") {
|
|
11262
11262
|
throw new InvalidArgumentError("Argument opts.agent must implement Agent");
|
|
11263
11263
|
}
|
|
11264
|
-
const agent = opts?.agent ? opts.agent : new
|
|
11264
|
+
const agent = opts?.agent ? opts.agent : new Agent2(opts);
|
|
11265
11265
|
this[kAgent] = agent;
|
|
11266
11266
|
this[kClients] = agent[kClients];
|
|
11267
11267
|
this[kOptions] = buildMockOptions(opts);
|
|
@@ -11366,9 +11366,9 @@ var require_global2 = __commonJS({
|
|
|
11366
11366
|
init_esbuild_shims();
|
|
11367
11367
|
var globalDispatcher = Symbol.for("undici.globalDispatcher.1");
|
|
11368
11368
|
var { InvalidArgumentError } = require_errors();
|
|
11369
|
-
var
|
|
11369
|
+
var Agent2 = require_agent();
|
|
11370
11370
|
if (getGlobalDispatcher() === void 0) {
|
|
11371
|
-
setGlobalDispatcher(new
|
|
11371
|
+
setGlobalDispatcher(new Agent2());
|
|
11372
11372
|
}
|
|
11373
11373
|
function setGlobalDispatcher(agent) {
|
|
11374
11374
|
if (!agent || typeof agent.dispatch !== "function") {
|
|
@@ -18833,7 +18833,7 @@ var require_undici = __commonJS({
|
|
|
18833
18833
|
var Dispatcher = require_dispatcher();
|
|
18834
18834
|
var Pool = require_pool();
|
|
18835
18835
|
var BalancedPool = require_balanced_pool();
|
|
18836
|
-
var
|
|
18836
|
+
var Agent2 = require_agent();
|
|
18837
18837
|
var ProxyAgent2 = require_proxy_agent();
|
|
18838
18838
|
var EnvHttpProxyAgent = require_env_http_proxy_agent();
|
|
18839
18839
|
var RetryAgent = require_retry_agent();
|
|
@@ -18856,7 +18856,7 @@ var require_undici = __commonJS({
|
|
|
18856
18856
|
module.exports.Client = Client;
|
|
18857
18857
|
module.exports.Pool = Pool;
|
|
18858
18858
|
module.exports.BalancedPool = BalancedPool;
|
|
18859
|
-
module.exports.Agent =
|
|
18859
|
+
module.exports.Agent = Agent2;
|
|
18860
18860
|
module.exports.ProxyAgent = ProxyAgent2;
|
|
18861
18861
|
module.exports.EnvHttpProxyAgent = EnvHttpProxyAgent;
|
|
18862
18862
|
module.exports.RetryAgent = RetryAgent;
|
|
@@ -19273,7 +19273,17 @@ function recordProxyFailure(hostname) {
|
|
|
19273
19273
|
__name(recordProxyFailure, "recordProxyFailure");
|
|
19274
19274
|
function buildFetchOptionsWithDispatcher(sdkType, proxyUrl) {
|
|
19275
19275
|
if (!proxyUrl) {
|
|
19276
|
-
|
|
19276
|
+
const NO_PROXY_KEY = "__no_proxy__";
|
|
19277
|
+
let dispatcher = dispatcherCache.get(NO_PROXY_KEY);
|
|
19278
|
+
if (!dispatcher) {
|
|
19279
|
+
dispatcher = new import_undici.Agent({
|
|
19280
|
+
headersTimeout: 0,
|
|
19281
|
+
bodyTimeout: 0,
|
|
19282
|
+
keepAliveTimeout: 6e4
|
|
19283
|
+
});
|
|
19284
|
+
dispatcherCache.set(NO_PROXY_KEY, dispatcher);
|
|
19285
|
+
}
|
|
19286
|
+
return { fetchOptions: { dispatcher }, fetch: import_undici.fetch };
|
|
19277
19287
|
}
|
|
19278
19288
|
try {
|
|
19279
19289
|
const dispatcher = getOrCreateSharedDispatcher(proxyUrl);
|
|
@@ -25,6 +25,7 @@ var HookEventName = /* @__PURE__ */ ((HookEventName2) => {
|
|
|
25
25
|
HookEventName2["PreToolUse"] = "PreToolUse";
|
|
26
26
|
HookEventName2["PostToolUse"] = "PostToolUse";
|
|
27
27
|
HookEventName2["PostToolUseFailure"] = "PostToolUseFailure";
|
|
28
|
+
HookEventName2["PostToolBatch"] = "PostToolBatch";
|
|
28
29
|
HookEventName2["Notification"] = "Notification";
|
|
29
30
|
HookEventName2["UserPromptSubmit"] = "UserPromptSubmit";
|
|
30
31
|
HookEventName2["SessionStart"] = "SessionStart";
|
|
@@ -78,6 +79,8 @@ function createHookOutput(eventName, data) {
|
|
|
78
79
|
return new PostToolUseHookOutput(data);
|
|
79
80
|
case "PostToolUseFailure" /* PostToolUseFailure */:
|
|
80
81
|
return new PostToolUseFailureHookOutput(data);
|
|
82
|
+
case "PostToolBatch" /* PostToolBatch */:
|
|
83
|
+
return new PostToolBatchHookOutput(data);
|
|
81
84
|
case "Stop" /* Stop */:
|
|
82
85
|
case "SubagentStop" /* SubagentStop */:
|
|
83
86
|
return new StopHookOutput(data);
|
|
@@ -248,6 +251,17 @@ var PostToolUseFailureHookOutput = class extends DefaultHookOutput {
|
|
|
248
251
|
return super.getAdditionalContext();
|
|
249
252
|
}
|
|
250
253
|
};
|
|
254
|
+
var PostToolBatchHookOutput = class extends DefaultHookOutput {
|
|
255
|
+
static {
|
|
256
|
+
__name(this, "PostToolBatchHookOutput");
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* Check if batch processing should stop after the resolved tool calls.
|
|
260
|
+
*/
|
|
261
|
+
shouldStopExecution() {
|
|
262
|
+
return super.shouldStopExecution() || this.isBlockingDecision();
|
|
263
|
+
}
|
|
264
|
+
};
|
|
251
265
|
var StopHookOutput = class extends DefaultHookOutput {
|
|
252
266
|
static {
|
|
253
267
|
__name(this, "StopHookOutput");
|
|
@@ -398,6 +412,7 @@ export {
|
|
|
398
412
|
PreToolUseHookOutput,
|
|
399
413
|
PostToolUseHookOutput,
|
|
400
414
|
PostToolUseFailureHookOutput,
|
|
415
|
+
PostToolBatchHookOutput,
|
|
401
416
|
StopHookOutput,
|
|
402
417
|
PermissionRequestHookOutput,
|
|
403
418
|
NotificationType,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
resolveBundleDir
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-JR346RJ5.js";
|
|
6
6
|
import {
|
|
7
7
|
Storage
|
|
8
8
|
} from "./chunk-ACBGEKB7.js";
|
|
@@ -169,15 +169,15 @@ init_esbuild_shims();
|
|
|
169
169
|
|
|
170
170
|
// import("./locales/**/*.js") in packages/cli/src/i18n/index.ts
|
|
171
171
|
var globImport_locales_js = __glob({
|
|
172
|
-
"./locales/ca.js": () => import("./ca-
|
|
173
|
-
"./locales/de.js": () => import("./de-
|
|
174
|
-
"./locales/en.js": () => import("./en-
|
|
175
|
-
"./locales/fr.js": () => import("./fr-
|
|
176
|
-
"./locales/ja.js": () => import("./ja-
|
|
177
|
-
"./locales/pt.js": () => import("./pt-
|
|
178
|
-
"./locales/ru.js": () => import("./ru-
|
|
179
|
-
"./locales/zh-TW.js": () => import("./zh-TW-
|
|
180
|
-
"./locales/zh.js": () => import("./zh-
|
|
172
|
+
"./locales/ca.js": () => import("./ca-6RSCDYUS.js"),
|
|
173
|
+
"./locales/de.js": () => import("./de-APURNJ3I.js"),
|
|
174
|
+
"./locales/en.js": () => import("./en-FYO57HJW.js"),
|
|
175
|
+
"./locales/fr.js": () => import("./fr-32YHQZIS.js"),
|
|
176
|
+
"./locales/ja.js": () => import("./ja-PEUXN4XT.js"),
|
|
177
|
+
"./locales/pt.js": () => import("./pt-2INS7YVC.js"),
|
|
178
|
+
"./locales/ru.js": () => import("./ru-6CQ5HNHB.js"),
|
|
179
|
+
"./locales/zh-TW.js": () => import("./zh-TW-SSL3ATVZ.js"),
|
|
180
|
+
"./locales/zh.js": () => import("./zh-ZHZCMIRG.js")
|
|
181
181
|
});
|
|
182
182
|
|
|
183
183
|
// packages/cli/src/i18n/index.ts
|