@qwen-code/qwen-code 0.3.0-nightly.20251202.c9af7481 → 0.3.0-nightly.20251203.a7abd8d0
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 -18
- package/package.json +2 -2
package/cli.js
CHANGED
|
@@ -145670,7 +145670,7 @@ function createContentGeneratorConfig(config, authType, generationConfig) {
|
|
|
145670
145670
|
};
|
|
145671
145671
|
}
|
|
145672
145672
|
async function createContentGenerator(config, gcConfig, sessionId2, isInitialAuth) {
|
|
145673
|
-
const version2 = "0.3.0-nightly.
|
|
145673
|
+
const version2 = "0.3.0-nightly.20251203.a7abd8d0";
|
|
145674
145674
|
const userAgent2 = `QwenCode/${version2} (${process.platform}; ${process.arch})`;
|
|
145675
145675
|
const baseHeaders = {
|
|
145676
145676
|
"User-Agent": userAgent2
|
|
@@ -159990,23 +159990,36 @@ function execCommand(command2, args, options2 = {}) {
|
|
|
159990
159990
|
function resolveCommandPath(command2) {
|
|
159991
159991
|
try {
|
|
159992
159992
|
const isWin = process.platform === "win32";
|
|
159993
|
-
|
|
159994
|
-
|
|
159995
|
-
|
|
159996
|
-
|
|
159997
|
-
|
|
159998
|
-
|
|
159999
|
-
|
|
160000
|
-
|
|
160001
|
-
|
|
160002
|
-
|
|
160003
|
-
|
|
160004
|
-
|
|
160005
|
-
return { path:
|
|
160006
|
-
|
|
159993
|
+
if (isWin) {
|
|
159994
|
+
const checkCommand = "where.exe";
|
|
159995
|
+
const checkArgs = [command2];
|
|
159996
|
+
let result = null;
|
|
159997
|
+
try {
|
|
159998
|
+
result = execFileSync2(checkCommand, checkArgs, {
|
|
159999
|
+
encoding: "utf8",
|
|
160000
|
+
shell: false
|
|
160001
|
+
}).trim();
|
|
160002
|
+
} catch {
|
|
160003
|
+
return { path: null, error: void 0 };
|
|
160004
|
+
}
|
|
160005
|
+
return result ? { path: result } : { path: null };
|
|
160006
|
+
} else {
|
|
160007
|
+
const shell2 = "/bin/sh";
|
|
160008
|
+
const checkArgs = ["-c", `command -v ${escapeShellArg(command2, "bash")}`];
|
|
160009
|
+
let result = null;
|
|
160010
|
+
try {
|
|
160011
|
+
result = execFileSync2(shell2, checkArgs, {
|
|
160012
|
+
encoding: "utf8",
|
|
160013
|
+
shell: false
|
|
160014
|
+
}).trim();
|
|
160015
|
+
} catch {
|
|
160016
|
+
return { path: null, error: void 0 };
|
|
160017
|
+
}
|
|
160018
|
+
if (!result)
|
|
160019
|
+
return { path: null, error: void 0 };
|
|
160007
160020
|
accessSync(result, fsConstants2.X_OK);
|
|
160021
|
+
return { path: result, error: void 0 };
|
|
160008
160022
|
}
|
|
160009
|
-
return { path: result, error: void 0 };
|
|
160010
160023
|
} catch (error) {
|
|
160011
160024
|
return {
|
|
160012
160025
|
path: null,
|
|
@@ -308208,7 +308221,7 @@ __name(getPackageJson, "getPackageJson");
|
|
|
308208
308221
|
// packages/cli/src/utils/version.ts
|
|
308209
308222
|
async function getCliVersion() {
|
|
308210
308223
|
const pkgJson = await getPackageJson();
|
|
308211
|
-
return "0.3.0-nightly.
|
|
308224
|
+
return "0.3.0-nightly.20251203.a7abd8d0";
|
|
308212
308225
|
}
|
|
308213
308226
|
__name(getCliVersion, "getCliVersion");
|
|
308214
308227
|
|
|
@@ -312193,7 +312206,7 @@ var formatDuration = /* @__PURE__ */ __name((milliseconds) => {
|
|
|
312193
312206
|
|
|
312194
312207
|
// packages/cli/src/generated/git-commit.ts
|
|
312195
312208
|
init_esbuild_shims();
|
|
312196
|
-
var GIT_COMMIT_INFO2 = "
|
|
312209
|
+
var GIT_COMMIT_INFO2 = "0065aae6";
|
|
312197
312210
|
|
|
312198
312211
|
// packages/cli/src/utils/systemInfo.ts
|
|
312199
312212
|
async function getNpmVersion() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qwen-code/qwen-code",
|
|
3
|
-
"version": "0.3.0-nightly.
|
|
3
|
+
"version": "0.3.0-nightly.20251203.a7abd8d0",
|
|
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.3.0-nightly.
|
|
23
|
+
"sandboxImageUri": "ghcr.io/qwenlm/qwen-code:0.3.0-nightly.20251203.a7abd8d0"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"tiktoken": "^1.0.21"
|