@qwen-code/qwen-code 0.6.0-nightly.20260106.b19bb6cb → 0.6.0-nightly.20260107.b95d9a8d
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/cli.js +53 -14
- package/package.json +2 -2
package/cli.js
CHANGED
|
@@ -154435,7 +154435,7 @@ __export(geminiContentGenerator_exports, {
|
|
|
154435
154435
|
createGeminiContentGenerator: () => createGeminiContentGenerator
|
|
154436
154436
|
});
|
|
154437
154437
|
function createGeminiContentGenerator(config2, gcConfig) {
|
|
154438
|
-
const version2 = "0.6.0-nightly.
|
|
154438
|
+
const version2 = "0.6.0-nightly.20260107.b95d9a8d";
|
|
154439
154439
|
const userAgent2 = config2.userAgent || `QwenCode/${version2} (${process.platform}; ${process.arch})`;
|
|
154440
154440
|
const baseHeaders = {
|
|
154441
154441
|
"User-Agent": userAgent2
|
|
@@ -343418,7 +343418,18 @@ function handleError(error2, config2, customErrorCode) {
|
|
|
343418
343418
|
}
|
|
343419
343419
|
}
|
|
343420
343420
|
__name(handleError, "handleError");
|
|
343421
|
-
function handleToolError(toolName, toolError, config2,
|
|
343421
|
+
function handleToolError(toolName, toolError, config2, errorCode, resultDisplay) {
|
|
343422
|
+
const isExecutionDenied = errorCode === ToolErrorType.EXECUTION_DENIED;
|
|
343423
|
+
const isNonInteractive = !config2.isInteractive();
|
|
343424
|
+
const isTextMode = config2.getOutputFormat() === OutputFormat.TEXT;
|
|
343425
|
+
if (isExecutionDenied && isNonInteractive && isTextMode) {
|
|
343426
|
+
const warningMessage = `Warning: Tool "${toolName}" requires user approval but cannot execute in non-interactive mode.
|
|
343427
|
+
To enable automatic tool execution, use the -y flag (YOLO mode):
|
|
343428
|
+
Example: qwen -p 'your prompt' -y
|
|
343429
|
+
|
|
343430
|
+
`;
|
|
343431
|
+
process.stderr.write(warningMessage);
|
|
343432
|
+
}
|
|
343422
343433
|
if (config2.getDebugMode()) {
|
|
343423
343434
|
console.error(
|
|
343424
343435
|
`Error executing tool ${toolName}: ${resultDisplay || toolError.message}`
|
|
@@ -356253,7 +356264,7 @@ __name(getPackageJson, "getPackageJson");
|
|
|
356253
356264
|
// packages/cli/src/utils/version.ts
|
|
356254
356265
|
async function getCliVersion() {
|
|
356255
356266
|
const pkgJson = await getPackageJson();
|
|
356256
|
-
return "0.6.0-nightly.
|
|
356267
|
+
return "0.6.0-nightly.20260107.b95d9a8d";
|
|
356257
356268
|
}
|
|
356258
356269
|
__name(getCliVersion, "getCliVersion");
|
|
356259
356270
|
|
|
@@ -360351,9 +360362,13 @@ async function parseArguments(settings) {
|
|
|
360351
360362
|
type: "boolean",
|
|
360352
360363
|
description: "Enables checkpointing of file edits",
|
|
360353
360364
|
default: false
|
|
360354
|
-
}).option("
|
|
360365
|
+
}).option("acp", {
|
|
360355
360366
|
type: "boolean",
|
|
360356
360367
|
description: "Starts the agent in ACP mode"
|
|
360368
|
+
}).option("experimental-acp", {
|
|
360369
|
+
type: "boolean",
|
|
360370
|
+
description: "Starts the agent in ACP mode (deprecated, use --acp instead)",
|
|
360371
|
+
hidden: true
|
|
360357
360372
|
}).option("experimental-skills", {
|
|
360358
360373
|
type: "boolean",
|
|
360359
360374
|
description: "Enable experimental Skills feature",
|
|
@@ -360549,7 +360564,15 @@ async function parseArguments(settings) {
|
|
|
360549
360564
|
}
|
|
360550
360565
|
}
|
|
360551
360566
|
result["query"] = q2 || void 0;
|
|
360552
|
-
if (result["experimentalAcp"]
|
|
360567
|
+
if (result["experimentalAcp"]) {
|
|
360568
|
+
console.warn(
|
|
360569
|
+
"\x1B[33m\u26A0 Warning: --experimental-acp is deprecated and will be removed in a future release. Please use --acp instead.\x1B[0m"
|
|
360570
|
+
);
|
|
360571
|
+
if (!result["acp"]) {
|
|
360572
|
+
result["acp"] = true;
|
|
360573
|
+
}
|
|
360574
|
+
}
|
|
360575
|
+
if ((result["acp"] || result["experimentalAcp"]) && !result["channel"]) {
|
|
360553
360576
|
result["channel"] = "ACP";
|
|
360554
360577
|
}
|
|
360555
360578
|
return result;
|
|
@@ -360800,7 +360823,7 @@ async function loadCliConfig(settings, extensions, extensionEnablementManager, a
|
|
|
360800
360823
|
extensionContextFilePaths,
|
|
360801
360824
|
sessionTokenLimit: settings.model?.sessionTokenLimit ?? -1,
|
|
360802
360825
|
maxSessionTurns: argv.maxSessionTurns ?? settings.model?.maxSessionTurns ?? -1,
|
|
360803
|
-
experimentalZedIntegration: argv.experimentalAcp || false,
|
|
360826
|
+
experimentalZedIntegration: argv.acp || argv.experimentalAcp || false,
|
|
360804
360827
|
experimentalSkills: argv.experimentalSkills || false,
|
|
360805
360828
|
listExtensions: argv.listExtensions || false,
|
|
360806
360829
|
extensions: allExtensions,
|
|
@@ -364302,7 +364325,7 @@ var formatDuration = /* @__PURE__ */ __name((milliseconds) => {
|
|
|
364302
364325
|
|
|
364303
364326
|
// packages/cli/src/generated/git-commit.ts
|
|
364304
364327
|
init_esbuild_shims();
|
|
364305
|
-
var GIT_COMMIT_INFO2 = "
|
|
364328
|
+
var GIT_COMMIT_INFO2 = "bd733e8e";
|
|
364306
364329
|
|
|
364307
364330
|
// packages/cli/src/utils/systemInfo.ts
|
|
364308
364331
|
async function getNpmVersion() {
|
|
@@ -369051,7 +369074,14 @@ ${event.value}`, null);
|
|
|
369051
369074
|
*/
|
|
369052
369075
|
appendThinking(state, subject, description, parentToolUseId) {
|
|
369053
369076
|
const actualParentToolUseId = parentToolUseId ?? null;
|
|
369054
|
-
const
|
|
369077
|
+
const parts = [];
|
|
369078
|
+
if (subject && subject.length > 0) {
|
|
369079
|
+
parts.push(subject);
|
|
369080
|
+
}
|
|
369081
|
+
if (description && description.length > 0) {
|
|
369082
|
+
parts.push(description);
|
|
369083
|
+
}
|
|
369084
|
+
const fragment = parts.join(": ");
|
|
369055
369085
|
if (!fragment) {
|
|
369056
369086
|
return;
|
|
369057
369087
|
}
|
|
@@ -370152,6 +370182,7 @@ async function runNonInteractive(config2, settings, input, prompt_id, options2 =
|
|
|
370152
370182
|
);
|
|
370153
370183
|
process.stderr.write(`${errorText}
|
|
370154
370184
|
`);
|
|
370185
|
+
throw new Error(errorText);
|
|
370155
370186
|
}
|
|
370156
370187
|
}
|
|
370157
370188
|
}
|
|
@@ -370172,15 +370203,23 @@ async function runNonInteractive(config2, settings, input, prompt_id, options2 =
|
|
|
370172
370203
|
adapter
|
|
370173
370204
|
) : void 0;
|
|
370174
370205
|
const taskToolProgressHandler = taskToolProgress?.handler;
|
|
370206
|
+
const nonTaskOutputHandler = !isTaskTool && !adapter ? (callId, outputChunk) => {
|
|
370207
|
+
if (typeof outputChunk === "string") {
|
|
370208
|
+
process.stdout.write(outputChunk);
|
|
370209
|
+
} else if (outputChunk && typeof outputChunk === "object" && "ansiOutput" in outputChunk) {
|
|
370210
|
+
process.stdout.write(String(outputChunk.ansiOutput));
|
|
370211
|
+
}
|
|
370212
|
+
} : void 0;
|
|
370213
|
+
const outputUpdateHandler = taskToolProgressHandler || nonTaskOutputHandler;
|
|
370175
370214
|
const toolResponse = await executeToolCall(
|
|
370176
370215
|
config2,
|
|
370177
370216
|
finalRequestInfo,
|
|
370178
370217
|
abortController.signal,
|
|
370179
|
-
|
|
370180
|
-
outputUpdateHandler
|
|
370181
|
-
|
|
370182
|
-
|
|
370183
|
-
|
|
370218
|
+
outputUpdateHandler || toolCallUpdateCallback ? {
|
|
370219
|
+
...outputUpdateHandler && { outputUpdateHandler },
|
|
370220
|
+
...toolCallUpdateCallback && {
|
|
370221
|
+
onToolCallsUpdate: toolCallUpdateCallback
|
|
370222
|
+
}
|
|
370184
370223
|
} : void 0
|
|
370185
370224
|
);
|
|
370186
370225
|
if (toolResponse.error) {
|
|
@@ -415241,7 +415280,7 @@ var GeminiAgent = class {
|
|
|
415241
415280
|
name: APPROVAL_MODE_INFO[mode].name,
|
|
415242
415281
|
description: APPROVAL_MODE_INFO[mode].description
|
|
415243
415282
|
}));
|
|
415244
|
-
const version2 = "0.6.0-nightly.
|
|
415283
|
+
const version2 = "0.6.0-nightly.20260107.b95d9a8d";
|
|
415245
415284
|
return {
|
|
415246
415285
|
protocolVersion: PROTOCOL_VERSION,
|
|
415247
415286
|
agentInfo: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qwen-code/qwen-code",
|
|
3
|
-
"version": "0.6.0-nightly.
|
|
3
|
+
"version": "0.6.0-nightly.20260107.b95d9a8d",
|
|
4
4
|
"description": "Qwen Code - AI-powered coding assistant",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"locales"
|
|
21
21
|
],
|
|
22
22
|
"config": {
|
|
23
|
-
"sandboxImageUri": "ghcr.io/qwenlm/qwen-code:0.6.0-nightly.
|
|
23
|
+
"sandboxImageUri": "ghcr.io/qwenlm/qwen-code:0.6.0-nightly.20260107.b95d9a8d"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"tiktoken": "^1.0.21"
|