@qwen-code/qwen-code 0.12.2-preview.0 → 0.12.2
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 +27 -22
- package/package.json +2 -2
package/cli.js
CHANGED
|
@@ -157712,7 +157712,7 @@ __export(geminiContentGenerator_exports, {
|
|
|
157712
157712
|
createGeminiContentGenerator: () => createGeminiContentGenerator
|
|
157713
157713
|
});
|
|
157714
157714
|
function createGeminiContentGenerator(config2, gcConfig) {
|
|
157715
|
-
const version2 = "0.12.2
|
|
157715
|
+
const version2 = "0.12.2";
|
|
157716
157716
|
const userAgent2 = config2.userAgent || `QwenCode/${version2} (${process.platform}; ${process.arch})`;
|
|
157717
157717
|
const baseHeaders = {
|
|
157718
157718
|
"User-Agent": userAgent2
|
|
@@ -220932,7 +220932,7 @@ var init_grep2 = __esm({
|
|
|
220932
220932
|
// packages/core/dist/src/tools/ls.js
|
|
220933
220933
|
import fs37 from "node:fs/promises";
|
|
220934
220934
|
import path38 from "node:path";
|
|
220935
|
-
var debugLogger40, LSToolInvocation, LSTool;
|
|
220935
|
+
var debugLogger40, MAX_ENTRY_COUNT, LSToolInvocation, LSTool;
|
|
220936
220936
|
var init_ls = __esm({
|
|
220937
220937
|
"packages/core/dist/src/tools/ls.js"() {
|
|
220938
220938
|
"use strict";
|
|
@@ -220945,6 +220945,7 @@ var init_ls = __esm({
|
|
|
220945
220945
|
init_tool_names();
|
|
220946
220946
|
init_debugLogger();
|
|
220947
220947
|
debugLogger40 = createDebugLogger("LS");
|
|
220948
|
+
MAX_ENTRY_COUNT = 100;
|
|
220948
220949
|
LSToolInvocation = class extends BaseToolInvocation {
|
|
220949
220950
|
static {
|
|
220950
220951
|
__name(this, "LSToolInvocation");
|
|
@@ -221046,9 +221047,21 @@ var init_ls = __esm({
|
|
|
221046
221047
|
return 1;
|
|
221047
221048
|
return a2.name.localeCompare(b2.name);
|
|
221048
221049
|
});
|
|
221049
|
-
const
|
|
221050
|
-
|
|
221050
|
+
const totalEntryCount = entries.length;
|
|
221051
|
+
const entryLimit = Math.min(MAX_ENTRY_COUNT, this.config.getTruncateToolOutputLines());
|
|
221052
|
+
const truncated = totalEntryCount > entryLimit;
|
|
221053
|
+
const entriesToShow = truncated ? entries.slice(0, entryLimit) : entries;
|
|
221054
|
+
const directoryContent = entriesToShow.map((entry) => `${entry.isDirectory ? "[DIR] " : ""}${entry.name}`).join("\n");
|
|
221055
|
+
let resultMessage = `Listed ${totalEntryCount} item(s) in ${this.params.path}:
|
|
221056
|
+
---
|
|
221051
221057
|
${directoryContent}`;
|
|
221058
|
+
if (truncated) {
|
|
221059
|
+
const omittedEntries = totalEntryCount - entryLimit;
|
|
221060
|
+
const entryTerm = omittedEntries === 1 ? "item" : "items";
|
|
221061
|
+
resultMessage += `
|
|
221062
|
+
---
|
|
221063
|
+
[${omittedEntries} ${entryTerm} truncated] ...`;
|
|
221064
|
+
}
|
|
221052
221065
|
const ignoredMessages = [];
|
|
221053
221066
|
if (gitIgnoredCount > 0) {
|
|
221054
221067
|
ignoredMessages.push(`${gitIgnoredCount} git-ignored`);
|
|
@@ -221061,10 +221074,13 @@ ${directoryContent}`;
|
|
|
221061
221074
|
|
|
221062
221075
|
(${ignoredMessages.join(", ")})`;
|
|
221063
221076
|
}
|
|
221064
|
-
let displayMessage = `Listed ${
|
|
221077
|
+
let displayMessage = `Listed ${totalEntryCount} item(s)`;
|
|
221065
221078
|
if (ignoredMessages.length > 0) {
|
|
221066
221079
|
displayMessage += ` (${ignoredMessages.join(", ")})`;
|
|
221067
221080
|
}
|
|
221081
|
+
if (truncated) {
|
|
221082
|
+
displayMessage += " (truncated)";
|
|
221083
|
+
}
|
|
221068
221084
|
return {
|
|
221069
221085
|
llmContent: resultMessage,
|
|
221070
221086
|
returnDisplay: displayMessage
|
|
@@ -389435,7 +389451,7 @@ __name(getPackageJson, "getPackageJson");
|
|
|
389435
389451
|
// packages/cli/src/utils/version.ts
|
|
389436
389452
|
async function getCliVersion() {
|
|
389437
389453
|
const pkgJson = await getPackageJson();
|
|
389438
|
-
return "0.12.2
|
|
389454
|
+
return "0.12.2";
|
|
389439
389455
|
}
|
|
389440
389456
|
__name(getCliVersion, "getCliVersion");
|
|
389441
389457
|
|
|
@@ -396996,7 +397012,7 @@ var formatDuration = /* @__PURE__ */ __name((milliseconds) => {
|
|
|
396996
397012
|
|
|
396997
397013
|
// packages/cli/src/generated/git-commit.ts
|
|
396998
397014
|
init_esbuild_shims();
|
|
396999
|
-
var GIT_COMMIT_INFO = "
|
|
397015
|
+
var GIT_COMMIT_INFO = "f660357b";
|
|
397000
397016
|
|
|
397001
397017
|
// packages/cli/src/utils/systemInfo.ts
|
|
397002
397018
|
async function getNpmVersion() {
|
|
@@ -445553,7 +445569,7 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
|
|
|
445553
445569
|
}
|
|
445554
445570
|
if (event.retryInfo) {
|
|
445555
445571
|
startRetryCountdown(event.retryInfo);
|
|
445556
|
-
} else
|
|
445572
|
+
} else {
|
|
445557
445573
|
clearRetryCountdown();
|
|
445558
445574
|
}
|
|
445559
445575
|
break;
|
|
@@ -445590,8 +445606,7 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
|
|
|
445590
445606
|
clearRetryCountdown,
|
|
445591
445607
|
setThought,
|
|
445592
445608
|
pendingHistoryItemRef,
|
|
445593
|
-
setPendingHistoryItem
|
|
445594
|
-
pendingRetryCountdownItemRef
|
|
445609
|
+
setPendingHistoryItem
|
|
445595
445610
|
]
|
|
445596
445611
|
);
|
|
445597
445612
|
const submitQuery = (0, import_react125.useCallback)(
|
|
@@ -445742,22 +445757,12 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
|
|
|
445742
445757
|
);
|
|
445743
445758
|
return;
|
|
445744
445759
|
}
|
|
445745
|
-
const errorItem = pendingRetryErrorItemRef.current;
|
|
445746
|
-
if (errorItem) {
|
|
445747
|
-
addItem({ type: errorItem.type, text: errorItem.text }, Date.now());
|
|
445748
|
-
}
|
|
445749
445760
|
clearRetryCountdown();
|
|
445750
445761
|
await submitQuery(lastPrompt, {
|
|
445751
445762
|
isContinuation: false,
|
|
445752
445763
|
skipPreparation: true
|
|
445753
445764
|
});
|
|
445754
|
-
}, [
|
|
445755
|
-
streamingState,
|
|
445756
|
-
addItem,
|
|
445757
|
-
clearRetryCountdown,
|
|
445758
|
-
submitQuery,
|
|
445759
|
-
pendingRetryErrorItemRef
|
|
445760
|
-
]);
|
|
445765
|
+
}, [streamingState, addItem, clearRetryCountdown, submitQuery]);
|
|
445761
445766
|
const handleApprovalModeChange = (0, import_react125.useCallback)(
|
|
445762
445767
|
async (newApprovalMode) => {
|
|
445763
445768
|
if (newApprovalMode === ApprovalMode.YOLO || newApprovalMode === ApprovalMode.AUTO_EDIT) {
|
|
@@ -455570,7 +455575,7 @@ var QwenAgent = class {
|
|
|
455570
455575
|
async initialize(args) {
|
|
455571
455576
|
this.clientCapabilities = args.clientCapabilities;
|
|
455572
455577
|
const authMethods = buildAuthMethods();
|
|
455573
|
-
const version2 = "0.12.2
|
|
455578
|
+
const version2 = "0.12.2";
|
|
455574
455579
|
return {
|
|
455575
455580
|
protocolVersion: PROTOCOL_VERSION,
|
|
455576
455581
|
agentInfo: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qwen-code/qwen-code",
|
|
3
|
-
"version": "0.12.2
|
|
3
|
+
"version": "0.12.2",
|
|
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.12.2
|
|
23
|
+
"sandboxImageUri": "ghcr.io/qwenlm/qwen-code:0.12.2"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {},
|
|
26
26
|
"optionalDependencies": {
|