@qwen-code/qwen-code 0.13.0-preview.3 → 0.13.0-preview.4
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 +31 -6
- package/package.json +2 -2
package/cli.js
CHANGED
|
@@ -171203,7 +171203,7 @@ __export(geminiContentGenerator_exports, {
|
|
|
171203
171203
|
createGeminiContentGenerator: () => createGeminiContentGenerator
|
|
171204
171204
|
});
|
|
171205
171205
|
function createGeminiContentGenerator(config2, gcConfig) {
|
|
171206
|
-
const version2 = "0.13.0-preview.
|
|
171206
|
+
const version2 = "0.13.0-preview.4";
|
|
171207
171207
|
const userAgent2 = config2.userAgent || `QwenCode/${version2} (${process.platform}; ${process.arch})`;
|
|
171208
171208
|
const baseHeaders = {
|
|
171209
171209
|
"User-Agent": userAgent2
|
|
@@ -178377,6 +178377,15 @@ function splitCommands(command2) {
|
|
|
178377
178377
|
let inSingleQuotes = false;
|
|
178378
178378
|
let inDoubleQuotes = false;
|
|
178379
178379
|
let i4 = 0;
|
|
178380
|
+
const previousNonWhitespaceChar = /* @__PURE__ */ __name((index) => {
|
|
178381
|
+
for (let j2 = index - 1; j2 >= 0; j2--) {
|
|
178382
|
+
const ch = command2[j2];
|
|
178383
|
+
if (ch && !/\s/.test(ch)) {
|
|
178384
|
+
return ch;
|
|
178385
|
+
}
|
|
178386
|
+
}
|
|
178387
|
+
return void 0;
|
|
178388
|
+
}, "previousNonWhitespaceChar");
|
|
178380
178389
|
while (i4 < command2.length) {
|
|
178381
178390
|
const char = command2[i4];
|
|
178382
178391
|
const nextChar = command2[i4 + 1];
|
|
@@ -178391,13 +178400,29 @@ function splitCommands(command2) {
|
|
|
178391
178400
|
inDoubleQuotes = !inDoubleQuotes;
|
|
178392
178401
|
}
|
|
178393
178402
|
if (!inSingleQuotes && !inDoubleQuotes) {
|
|
178394
|
-
if (char === "&" && nextChar === "&" || char === "|" && nextChar === "|") {
|
|
178403
|
+
if (char === "&" && nextChar === "&" || char === "|" && (nextChar === "|" || nextChar === "&")) {
|
|
178395
178404
|
commands.push(currentCommand.trim());
|
|
178396
178405
|
currentCommand = "";
|
|
178397
178406
|
i4++;
|
|
178398
|
-
} else if (char === ";"
|
|
178407
|
+
} else if (char === ";") {
|
|
178399
178408
|
commands.push(currentCommand.trim());
|
|
178400
178409
|
currentCommand = "";
|
|
178410
|
+
} else if (char === "&") {
|
|
178411
|
+
const prevChar = previousNonWhitespaceChar(i4);
|
|
178412
|
+
if (prevChar === ">" || prevChar === "<") {
|
|
178413
|
+
currentCommand += char;
|
|
178414
|
+
} else {
|
|
178415
|
+
commands.push(currentCommand.trim());
|
|
178416
|
+
currentCommand = "";
|
|
178417
|
+
}
|
|
178418
|
+
} else if (char === "|") {
|
|
178419
|
+
const prevChar = previousNonWhitespaceChar(i4);
|
|
178420
|
+
if (prevChar === ">") {
|
|
178421
|
+
currentCommand += char;
|
|
178422
|
+
} else {
|
|
178423
|
+
commands.push(currentCommand.trim());
|
|
178424
|
+
currentCommand = "";
|
|
178425
|
+
}
|
|
178401
178426
|
} else if (char === "\r" && nextChar === "\n") {
|
|
178402
178427
|
commands.push(currentCommand.trim());
|
|
178403
178428
|
currentCommand = "";
|
|
@@ -405768,7 +405793,7 @@ __name(getPackageJson, "getPackageJson");
|
|
|
405768
405793
|
// packages/cli/src/utils/version.ts
|
|
405769
405794
|
async function getCliVersion() {
|
|
405770
405795
|
const pkgJson = await getPackageJson();
|
|
405771
|
-
return "0.13.0-preview.
|
|
405796
|
+
return "0.13.0-preview.4";
|
|
405772
405797
|
}
|
|
405773
405798
|
__name(getCliVersion, "getCliVersion");
|
|
405774
405799
|
|
|
@@ -413398,7 +413423,7 @@ var formatDuration = /* @__PURE__ */ __name((milliseconds) => {
|
|
|
413398
413423
|
|
|
413399
413424
|
// packages/cli/src/generated/git-commit.ts
|
|
413400
413425
|
init_esbuild_shims();
|
|
413401
|
-
var GIT_COMMIT_INFO = "
|
|
413426
|
+
var GIT_COMMIT_INFO = "49cf030d1";
|
|
413402
413427
|
|
|
413403
413428
|
// packages/cli/src/utils/systemInfo.ts
|
|
413404
413429
|
async function getNpmVersion() {
|
|
@@ -476768,7 +476793,7 @@ var QwenAgent = class {
|
|
|
476768
476793
|
async initialize(args2) {
|
|
476769
476794
|
this.clientCapabilities = args2.clientCapabilities;
|
|
476770
476795
|
const authMethods = buildAuthMethods();
|
|
476771
|
-
const version2 = "0.13.0-preview.
|
|
476796
|
+
const version2 = "0.13.0-preview.4";
|
|
476772
476797
|
return {
|
|
476773
476798
|
protocolVersion: PROTOCOL_VERSION,
|
|
476774
476799
|
agentInfo: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qwen-code/qwen-code",
|
|
3
|
-
"version": "0.13.0-preview.
|
|
3
|
+
"version": "0.13.0-preview.4",
|
|
4
4
|
"description": "Qwen Code - AI-powered coding assistant",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"bundled"
|
|
22
22
|
],
|
|
23
23
|
"config": {
|
|
24
|
-
"sandboxImageUri": "ghcr.io/qwenlm/qwen-code:0.13.0-preview.
|
|
24
|
+
"sandboxImageUri": "ghcr.io/qwenlm/qwen-code:0.13.0-preview.4"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {},
|
|
27
27
|
"optionalDependencies": {
|