@qwen-code/qwen-code 0.17.0-preview.0 → 0.17.1
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-ZJHHICAC.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-7JHNICSJ.js → chunk-2KEXT6RB.js} +643 -136
- package/chunks/{chunk-J5VCSWPA.js → chunk-3PJXIDKI.js} +1153 -103
- package/chunks/{chunk-BF5WTWOH.js → chunk-5JBZM7FZ.js} +3 -3
- 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-OXXOAIGT.js → chunk-C5CUHYSM.js} +333 -1162
- package/chunks/{chunk-V7LMZR76.js → chunk-JBSYXHJF.js} +1 -1
- package/chunks/{chunk-R2B65CAN.js → chunk-JKUAX6UT.js} +0 -1
- package/chunks/{chunk-4Q4IDQE5.js → chunk-NJJER6E2.js} +4 -4
- package/chunks/{chunk-ZWH2TVVN.js → chunk-PLYRQYKC.js} +10 -10
- 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-MJCO2CPA.js → chunk-X2474BTT.js} +45 -6
- package/chunks/{computer-use-2J5ZXEER.js → computer-use-NAHQPV2L.js} +24 -6
- package/chunks/{contextCommand-FU55EUOH.js → contextCommand-7KJT3UJS.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-JWXCQ4KK.js} +10 -10
- package/chunks/{en-2IFZ5THF.js → en-FYO57HJW.js} +3 -1
- package/chunks/{enter-worktree-VZT6JX45.js → enter-worktree-G4CJXPT4.js} +10 -10
- package/chunks/{exit-worktree-JETQQ26R.js → exit-worktree-MYZ2FGU2.js} +10 -10
- package/chunks/{exitPlanMode-SFNBASAU.js → exitPlanMode-ELJ6FSMU.js} +10 -10
- package/chunks/{fr-PVELSHTV.js → fr-32YHQZIS.js} +2 -1
- package/chunks/{geminiContentGenerator-XWUW7B7J.js → geminiContentGenerator-3LR7MKCQ.js} +2 -2
- package/chunks/{glob-34CPYA2M.js → glob-CANUAUTC.js} +10 -10
- package/chunks/{grep-4RXPZUYZ.js → grep-WZWNJRDX.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-CCKNOUFG.js} +10 -10
- package/chunks/{multipart-parser-IXGBIOIN.js → multipart-parser-AJ4WASWR.js} +2 -2
- package/chunks/{notebook-edit-I2MBTWI6.js → notebook-edit-XDUY5Q4I.js} +10 -10
- package/chunks/{openaiContentGenerator-VNQUJIG5.js → openaiContentGenerator-N3O3MYIT.js} +8 -8
- package/chunks/{pt-A5GHG66T.js → pt-2INS7YVC.js} +2 -1
- package/chunks/{qwenContentGenerator-LICFK2K7.js → qwenContentGenerator-DEOIWKVH.js} +12 -12
- package/chunks/{read-file-N2YTOQ2U.js → read-file-BRNXGILN.js} +5 -5
- package/chunks/{ripGrep-NBWBOVPW.js → ripGrep-ZRY5PKUZ.js} +10 -10
- package/chunks/{ru-66XKB4QX.js → ru-6CQ5HNHB.js} +2 -1
- package/chunks/{scheduler-XHHMN7TA.js → scheduler-SSFABMN5.js} +10 -10
- package/chunks/{send-message-ZL7CDM7K.js → send-message-GFYV7WLL.js} +1 -1
- package/chunks/{serve-HESJL2FH.js → serve-B5O72CRN.js} +12 -12
- package/chunks/{shell-V7PVS7O7.js → shell-SGYNBVMK.js} +10 -10
- package/chunks/{skill-6LP5ANRL.js → skill-V7Y6DOFB.js} +6 -6
- package/chunks/{src-TMOD5X6F.js → src-7XL4G4DC.js} +88 -46
- package/chunks/{src-4TLZBCTV.js → src-OKFFQGXB.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-7MHT3HGM.js} +5 -5
- package/chunks/{web-fetch-LGLGFGGT.js → web-fetch-SZIV74ZX.js} +2 -2
- package/chunks/{write-file-CCMVL5Q7.js → write-file-ARS2Z6BJ.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
|
@@ -14840,7 +14840,6 @@ export {
|
|
|
14840
14840
|
ToolErrorType,
|
|
14841
14841
|
require_fast_deep_equal,
|
|
14842
14842
|
require_fast_uri,
|
|
14843
|
-
require_ajv,
|
|
14844
14843
|
require_dist,
|
|
14845
14844
|
SchemaValidator,
|
|
14846
14845
|
AgentStatistics,
|
|
@@ -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-C5CUHYSM.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
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
resolveBundleDir
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-2KEXT6RB.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
|
|
@@ -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,
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
getLanguageSettingsOptions,
|
|
7
7
|
t,
|
|
8
8
|
writeStderrLine
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-PLYRQYKC.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-2KEXT6RB.js";
|
|
19
19
|
import {
|
|
20
20
|
isWithinRoot
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-C5CUHYSM.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";
|
|
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 = "09d0faf6b";
|
|
19072
19111
|
|
|
19073
19112
|
// packages/cli/src/utils/systemInfo.ts
|
|
19074
19113
|
var debugLogger4 = createDebugLogger("STATUS");
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import {
|
|
4
4
|
Client,
|
|
5
5
|
StdioClientTransport
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-7TQVELRB.js";
|
|
7
7
|
import "./chunk-AKBFRR6J.js";
|
|
8
8
|
import {
|
|
9
9
|
safeJsonStringify
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
import {
|
|
12
12
|
BaseDeclarativeTool,
|
|
13
13
|
BaseToolInvocation
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-JKUAX6UT.js";
|
|
15
15
|
import "./chunk-ACBGEKB7.js";
|
|
16
16
|
import "./chunk-QWSRH265.js";
|
|
17
17
|
import {
|
|
@@ -32,9 +32,10 @@ init_esbuild_shims();
|
|
|
32
32
|
|
|
33
33
|
// packages/core/src/tools/computer-use/constants.ts
|
|
34
34
|
init_esbuild_shims();
|
|
35
|
-
var
|
|
35
|
+
var PINNED_OPEN_COMPUTER_USE_PACKAGE_NAME = "@qwen-code/open-computer-use";
|
|
36
|
+
var PINNED_OPEN_COMPUTER_USE_VERSION = "0.2.3";
|
|
36
37
|
function resolveComputerUsePackageSpec() {
|
|
37
|
-
return process.env["QWEN_COMPUTER_USE_PACKAGE"] ??
|
|
38
|
+
return process.env["QWEN_COMPUTER_USE_PACKAGE"] ?? `${PINNED_OPEN_COMPUTER_USE_PACKAGE_NAME}@${PINNED_OPEN_COMPUTER_USE_VERSION}`;
|
|
38
39
|
}
|
|
39
40
|
__name(resolveComputerUsePackageSpec, "resolveComputerUsePackageSpec");
|
|
40
41
|
|
|
@@ -241,6 +242,22 @@ async function probePermissionsViaDoctor(packageSpec) {
|
|
|
241
242
|
}
|
|
242
243
|
}
|
|
243
244
|
__name(probePermissionsViaDoctor, "probePermissionsViaDoctor");
|
|
245
|
+
async function probePermissionStatusViaCLI(packageSpec) {
|
|
246
|
+
try {
|
|
247
|
+
const { stdout } = await execFileAsync(
|
|
248
|
+
"npx",
|
|
249
|
+
["-y", packageSpec, "permission-status"],
|
|
250
|
+
{
|
|
251
|
+
timeout: 3e4,
|
|
252
|
+
env: process.env
|
|
253
|
+
}
|
|
254
|
+
);
|
|
255
|
+
return parseDoctorStdout(stdout);
|
|
256
|
+
} catch {
|
|
257
|
+
return "other";
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
__name(probePermissionStatusViaCLI, "probePermissionStatusViaCLI");
|
|
244
261
|
function defaultDeps() {
|
|
245
262
|
const packageSpec = resolveComputerUsePackageSpec();
|
|
246
263
|
return {
|
|
@@ -260,7 +277,8 @@ Set QWEN_COMPUTER_USE_AUTO_APPROVE=1 to skip this prompt.
|
|
|
260
277
|
);
|
|
261
278
|
return process.env["QWEN_COMPUTER_USE_AUTO_APPROVE"] === "1";
|
|
262
279
|
}, "promptInstallApproval"),
|
|
263
|
-
probePermissions: probePermissionsViaDoctor
|
|
280
|
+
probePermissions: probePermissionsViaDoctor,
|
|
281
|
+
probePermissionStatus: probePermissionStatusViaCLI
|
|
264
282
|
};
|
|
265
283
|
}
|
|
266
284
|
__name(defaultDeps, "defaultDeps");
|
|
@@ -307,7 +325,7 @@ async function runBootstrap(client, ctx, depsOverride) {
|
|
|
307
325
|
);
|
|
308
326
|
}
|
|
309
327
|
await new Promise((resolve) => setTimeout(resolve, pollIntervalMs));
|
|
310
|
-
const next = await deps.
|
|
328
|
+
const next = await deps.probePermissionStatus(deps.packageSpec);
|
|
311
329
|
if (next === "ok" || next === "other") return;
|
|
312
330
|
if (next !== lastProbeKind) {
|
|
313
331
|
ctx.updateOutput?.(
|
|
@@ -4,36 +4,36 @@ import {
|
|
|
4
4
|
collectContextData,
|
|
5
5
|
contextCommand,
|
|
6
6
|
formatContextUsageText
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-5JBZM7FZ.js";
|
|
8
|
+
import "./chunk-PLYRQYKC.js";
|
|
9
|
+
import "./chunk-2KEXT6RB.js";
|
|
10
10
|
import "./chunk-24YKA2DA.js";
|
|
11
11
|
import "./chunk-O4PICXES.js";
|
|
12
12
|
import "./chunk-TW522KN6.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-7TQVELRB.js";
|
|
14
14
|
import "./chunk-AKBFRR6J.js";
|
|
15
15
|
import "./chunk-MLZQVCF3.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-6O244QKR.js";
|
|
17
17
|
import "./chunk-EY6BDW7Y.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-RQW7WUJR.js";
|
|
19
19
|
import "./chunk-77WXWU44.js";
|
|
20
20
|
import "./chunk-GVWPJCXU.js";
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-C5CUHYSM.js";
|
|
22
|
+
import "./chunk-3PJXIDKI.js";
|
|
23
23
|
import "./chunk-UWCTAVOD.js";
|
|
24
24
|
import "./chunk-W57YDFU5.js";
|
|
25
25
|
import "./chunk-OFEVLU4C.js";
|
|
26
26
|
import "./chunk-NQ3E7YLD.js";
|
|
27
27
|
import "./chunk-OJFMTECH.js";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-SOGUPKP6.js";
|
|
29
29
|
import "./chunk-6RQTH7UQ.js";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-JKUAX6UT.js";
|
|
31
31
|
import "./chunk-G4K6P5KN.js";
|
|
32
32
|
import "./chunk-OIL7KDWV.js";
|
|
33
33
|
import "./chunk-HX3JRTWL.js";
|
|
34
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-QVJ33ZBG.js";
|
|
35
35
|
import "./chunk-TDZCEIK6.js";
|
|
36
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-BNESGOSJ.js";
|
|
37
37
|
import "./chunk-SZOEIL6S.js";
|
|
38
38
|
import "./chunk-5IFG2VC4.js";
|
|
39
39
|
import "./chunk-ACBGEKB7.js";
|
|
@@ -22,6 +22,7 @@ var de_default = {
|
|
|
22
22
|
"@src/myFile.ts": "@src/myFile.ts",
|
|
23
23
|
"Shell mode": "Shell-Modus",
|
|
24
24
|
"YOLO mode": "YOLO-Modus",
|
|
25
|
+
"Auto mode": "Auto-Modus",
|
|
25
26
|
"plan mode": "Planungsmodus",
|
|
26
27
|
"auto-accept edits": "\xC4nderungen automatisch akzeptieren",
|
|
27
28
|
"Accepting edits": "\xC4nderungen werden akzeptiert",
|
|
@@ -297,7 +298,7 @@ var de_default = {
|
|
|
297
298
|
Text: "Text",
|
|
298
299
|
JSON: "JSON",
|
|
299
300
|
Plan: "Plan",
|
|
300
|
-
|
|
301
|
+
"Ask permissions": "Berechtigung anfragen",
|
|
301
302
|
"Auto Edit": "Automatisch bearbeiten",
|
|
302
303
|
YOLO: "YOLO",
|
|
303
304
|
"toggle vim mode on/off": "Vim-Modus ein-/ausschalten",
|
|
@@ -13,16 +13,16 @@ import {
|
|
|
13
13
|
getDiffStat,
|
|
14
14
|
needsUtf8Bom,
|
|
15
15
|
safeLiteralReplace
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-2KEXT6RB.js";
|
|
17
17
|
import "./chunk-24YKA2DA.js";
|
|
18
18
|
import "./chunk-O4PICXES.js";
|
|
19
19
|
import "./chunk-TW522KN6.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-7TQVELRB.js";
|
|
21
21
|
import "./chunk-AKBFRR6J.js";
|
|
22
22
|
import "./chunk-MLZQVCF3.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-6O244QKR.js";
|
|
24
24
|
import "./chunk-EY6BDW7Y.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-RQW7WUJR.js";
|
|
26
26
|
import "./chunk-77WXWU44.js";
|
|
27
27
|
import "./chunk-GVWPJCXU.js";
|
|
28
28
|
import {
|
|
@@ -32,8 +32,8 @@ import {
|
|
|
32
32
|
getLanguageFromFilePath,
|
|
33
33
|
getSpecificMimeType,
|
|
34
34
|
logFileOperation
|
|
35
|
-
} from "./chunk-
|
|
36
|
-
import "./chunk-
|
|
35
|
+
} from "./chunk-C5CUHYSM.js";
|
|
36
|
+
import "./chunk-3PJXIDKI.js";
|
|
37
37
|
import "./chunk-UWCTAVOD.js";
|
|
38
38
|
import "./chunk-W57YDFU5.js";
|
|
39
39
|
import "./chunk-OFEVLU4C.js";
|
|
@@ -41,20 +41,20 @@ import {
|
|
|
41
41
|
isAutoMemPath
|
|
42
42
|
} from "./chunk-NQ3E7YLD.js";
|
|
43
43
|
import "./chunk-OJFMTECH.js";
|
|
44
|
-
import "./chunk-
|
|
44
|
+
import "./chunk-SOGUPKP6.js";
|
|
45
45
|
import {
|
|
46
46
|
ToolDisplayNames,
|
|
47
47
|
ToolNames
|
|
48
48
|
} from "./chunk-6RQTH7UQ.js";
|
|
49
49
|
import {
|
|
50
50
|
BaseDeclarativeTool
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-JKUAX6UT.js";
|
|
52
52
|
import "./chunk-G4K6P5KN.js";
|
|
53
53
|
import "./chunk-OIL7KDWV.js";
|
|
54
54
|
import "./chunk-HX3JRTWL.js";
|
|
55
|
-
import "./chunk-
|
|
55
|
+
import "./chunk-QVJ33ZBG.js";
|
|
56
56
|
import "./chunk-TDZCEIK6.js";
|
|
57
|
-
import "./chunk-
|
|
57
|
+
import "./chunk-BNESGOSJ.js";
|
|
58
58
|
import "./chunk-SZOEIL6S.js";
|
|
59
59
|
import "./chunk-5IFG2VC4.js";
|
|
60
60
|
import {
|
|
@@ -22,6 +22,7 @@ var en_default = {
|
|
|
22
22
|
"@src/myFile.ts": "@src/myFile.ts",
|
|
23
23
|
"Shell mode": "Shell mode",
|
|
24
24
|
"YOLO mode": "YOLO mode",
|
|
25
|
+
"Auto mode": "Auto mode",
|
|
25
26
|
"plan mode": "plan mode",
|
|
26
27
|
"auto-accept edits": "auto-accept edits",
|
|
27
28
|
"Accepting edits": "Accepting edits",
|
|
@@ -384,7 +385,7 @@ var en_default = {
|
|
|
384
385
|
Text: "Text",
|
|
385
386
|
JSON: "JSON",
|
|
386
387
|
Plan: "Plan",
|
|
387
|
-
|
|
388
|
+
"Ask permissions": "Ask permissions",
|
|
388
389
|
"Auto Edit": "Auto Edit",
|
|
389
390
|
YOLO: "YOLO",
|
|
390
391
|
"toggle vim mode on/off": "toggle vim mode on/off",
|
|
@@ -1459,6 +1460,7 @@ var en_default = {
|
|
|
1459
1460
|
// === Core: added from PR #3328 ===
|
|
1460
1461
|
"Open the memory manager.": "Open the memory manager.",
|
|
1461
1462
|
"Show current process memory diagnostics": "Show current process memory diagnostics",
|
|
1463
|
+
"Record a CPU profile for Chrome DevTools analysis": "Record a CPU profile for Chrome DevTools analysis",
|
|
1462
1464
|
"Save a durable memory to the memory system.": "Save a durable memory to the memory system.",
|
|
1463
1465
|
"Ask a quick side question without affecting the main conversation": "Ask a quick side question without affecting the main conversation",
|
|
1464
1466
|
"Manage Arena sessions": "Manage Arena sessions",
|
|
@@ -4,26 +4,26 @@ import {
|
|
|
4
4
|
GitWorktreeService,
|
|
5
5
|
writeWorktreeSession,
|
|
6
6
|
writeWorktreeSessionMarker
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-2KEXT6RB.js";
|
|
8
8
|
import "./chunk-24YKA2DA.js";
|
|
9
9
|
import "./chunk-O4PICXES.js";
|
|
10
10
|
import "./chunk-TW522KN6.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-7TQVELRB.js";
|
|
12
12
|
import "./chunk-AKBFRR6J.js";
|
|
13
13
|
import "./chunk-MLZQVCF3.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-6O244QKR.js";
|
|
15
15
|
import "./chunk-EY6BDW7Y.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-RQW7WUJR.js";
|
|
17
17
|
import "./chunk-77WXWU44.js";
|
|
18
18
|
import "./chunk-GVWPJCXU.js";
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-C5CUHYSM.js";
|
|
20
|
+
import "./chunk-3PJXIDKI.js";
|
|
21
21
|
import "./chunk-UWCTAVOD.js";
|
|
22
22
|
import "./chunk-W57YDFU5.js";
|
|
23
23
|
import "./chunk-OFEVLU4C.js";
|
|
24
24
|
import "./chunk-NQ3E7YLD.js";
|
|
25
25
|
import "./chunk-OJFMTECH.js";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-SOGUPKP6.js";
|
|
27
27
|
import {
|
|
28
28
|
ToolDisplayNames,
|
|
29
29
|
ToolNames
|
|
@@ -31,13 +31,13 @@ import {
|
|
|
31
31
|
import {
|
|
32
32
|
BaseDeclarativeTool,
|
|
33
33
|
BaseToolInvocation
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-JKUAX6UT.js";
|
|
35
35
|
import "./chunk-G4K6P5KN.js";
|
|
36
36
|
import "./chunk-OIL7KDWV.js";
|
|
37
37
|
import "./chunk-HX3JRTWL.js";
|
|
38
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-QVJ33ZBG.js";
|
|
39
39
|
import "./chunk-TDZCEIK6.js";
|
|
40
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-BNESGOSJ.js";
|
|
41
41
|
import "./chunk-SZOEIL6S.js";
|
|
42
42
|
import "./chunk-5IFG2VC4.js";
|
|
43
43
|
import {
|