@qwen-code/qwen-code 0.7.1-preview.0 → 0.7.1-preview.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/cli.js +77 -28
- package/package.json +2 -2
package/cli.js
CHANGED
|
@@ -132355,14 +132355,14 @@ var init_constants3 = __esm({
|
|
|
132355
132355
|
QWEN_OAUTH_MODELS = [
|
|
132356
132356
|
{
|
|
132357
132357
|
id: "coder-model",
|
|
132358
|
-
name: "
|
|
132359
|
-
description: "The latest Qwen Coder model from Alibaba Cloud ModelStudio
|
|
132358
|
+
name: "coder-model",
|
|
132359
|
+
description: "The latest Qwen Coder model from Alibaba Cloud ModelStudio",
|
|
132360
132360
|
capabilities: { vision: false }
|
|
132361
132361
|
},
|
|
132362
132362
|
{
|
|
132363
132363
|
id: "vision-model",
|
|
132364
|
-
name: "
|
|
132365
|
-
description: "The latest Qwen Vision model from Alibaba Cloud ModelStudio
|
|
132364
|
+
name: "vision-model",
|
|
132365
|
+
description: "The latest Qwen Vision model from Alibaba Cloud ModelStudio",
|
|
132366
132366
|
capabilities: { vision: true }
|
|
132367
132367
|
}
|
|
132368
132368
|
];
|
|
@@ -155538,7 +155538,7 @@ __export(geminiContentGenerator_exports, {
|
|
|
155538
155538
|
createGeminiContentGenerator: () => createGeminiContentGenerator
|
|
155539
155539
|
});
|
|
155540
155540
|
function createGeminiContentGenerator(config2, gcConfig) {
|
|
155541
|
-
const version2 = "0.7.1-preview.
|
|
155541
|
+
const version2 = "0.7.1-preview.1";
|
|
155542
155542
|
const userAgent2 = config2.userAgent || `QwenCode/${version2} (${process.platform}; ${process.arch})`;
|
|
155543
155543
|
const baseHeaders = {
|
|
155544
155544
|
"User-Agent": userAgent2
|
|
@@ -360023,7 +360023,7 @@ __name(getPackageJson, "getPackageJson");
|
|
|
360023
360023
|
// packages/cli/src/utils/version.ts
|
|
360024
360024
|
async function getCliVersion() {
|
|
360025
360025
|
const pkgJson = await getPackageJson();
|
|
360026
|
-
return "0.7.1-preview.
|
|
360026
|
+
return "0.7.1-preview.1";
|
|
360027
360027
|
}
|
|
360028
360028
|
__name(getCliVersion, "getCliVersion");
|
|
360029
360029
|
|
|
@@ -367920,7 +367920,7 @@ var formatDuration = /* @__PURE__ */ __name((milliseconds) => {
|
|
|
367920
367920
|
|
|
367921
367921
|
// packages/cli/src/generated/git-commit.ts
|
|
367922
367922
|
init_esbuild_shims();
|
|
367923
|
-
var GIT_COMMIT_INFO2 = "
|
|
367923
|
+
var GIT_COMMIT_INFO2 = "f40e78e0";
|
|
367924
367924
|
|
|
367925
367925
|
// packages/cli/src/utils/systemInfo.ts
|
|
367926
367926
|
async function getNpmVersion() {
|
|
@@ -417680,6 +417680,25 @@ var agentRequestSchema = external_exports.union([
|
|
|
417680
417680
|
setModelRequestSchema
|
|
417681
417681
|
]);
|
|
417682
417682
|
|
|
417683
|
+
// packages/cli/src/acp-integration/errorCodes.ts
|
|
417684
|
+
init_esbuild_shims();
|
|
417685
|
+
var ACP_ERROR_CODES = {
|
|
417686
|
+
// Parse error: invalid JSON received by server.
|
|
417687
|
+
PARSE_ERROR: -32700,
|
|
417688
|
+
// Invalid request: JSON is not a valid Request object.
|
|
417689
|
+
INVALID_REQUEST: -32600,
|
|
417690
|
+
// Method not found: method does not exist or is unavailable.
|
|
417691
|
+
METHOD_NOT_FOUND: -32601,
|
|
417692
|
+
// Invalid params: invalid method parameter(s).
|
|
417693
|
+
INVALID_PARAMS: -32602,
|
|
417694
|
+
// Internal error: implementation-defined server error.
|
|
417695
|
+
INTERNAL_ERROR: -32603,
|
|
417696
|
+
// Authentication required: must authenticate before operation.
|
|
417697
|
+
AUTH_REQUIRED: -32e3,
|
|
417698
|
+
// Resource not found: e.g. missing file.
|
|
417699
|
+
RESOURCE_NOT_FOUND: -32002
|
|
417700
|
+
};
|
|
417701
|
+
|
|
417683
417702
|
// packages/cli/src/acp-integration/acp.ts
|
|
417684
417703
|
var AgentSideConnection = class {
|
|
417685
417704
|
static {
|
|
@@ -417921,22 +417940,46 @@ var RequestError = class _RequestError extends Error {
|
|
|
417921
417940
|
}
|
|
417922
417941
|
data;
|
|
417923
417942
|
static parseError(details) {
|
|
417924
|
-
return new _RequestError(
|
|
417943
|
+
return new _RequestError(
|
|
417944
|
+
ACP_ERROR_CODES.PARSE_ERROR,
|
|
417945
|
+
"Parse error",
|
|
417946
|
+
details
|
|
417947
|
+
);
|
|
417925
417948
|
}
|
|
417926
417949
|
static invalidRequest(details) {
|
|
417927
|
-
return new _RequestError(
|
|
417950
|
+
return new _RequestError(
|
|
417951
|
+
ACP_ERROR_CODES.INVALID_REQUEST,
|
|
417952
|
+
"Invalid request",
|
|
417953
|
+
details
|
|
417954
|
+
);
|
|
417928
417955
|
}
|
|
417929
417956
|
static methodNotFound(details) {
|
|
417930
|
-
return new _RequestError(
|
|
417957
|
+
return new _RequestError(
|
|
417958
|
+
ACP_ERROR_CODES.METHOD_NOT_FOUND,
|
|
417959
|
+
"Method not found",
|
|
417960
|
+
details
|
|
417961
|
+
);
|
|
417931
417962
|
}
|
|
417932
417963
|
static invalidParams(details) {
|
|
417933
|
-
return new _RequestError(
|
|
417964
|
+
return new _RequestError(
|
|
417965
|
+
ACP_ERROR_CODES.INVALID_PARAMS,
|
|
417966
|
+
"Invalid params",
|
|
417967
|
+
details
|
|
417968
|
+
);
|
|
417934
417969
|
}
|
|
417935
417970
|
static internalError(details) {
|
|
417936
|
-
return new _RequestError(
|
|
417971
|
+
return new _RequestError(
|
|
417972
|
+
ACP_ERROR_CODES.INTERNAL_ERROR,
|
|
417973
|
+
"Internal error",
|
|
417974
|
+
details
|
|
417975
|
+
);
|
|
417937
417976
|
}
|
|
417938
417977
|
static authRequired(details) {
|
|
417939
|
-
return new _RequestError(
|
|
417978
|
+
return new _RequestError(
|
|
417979
|
+
ACP_ERROR_CODES.AUTH_REQUIRED,
|
|
417980
|
+
"Authentication required",
|
|
417981
|
+
details
|
|
417982
|
+
);
|
|
417940
417983
|
}
|
|
417941
417984
|
toResult() {
|
|
417942
417985
|
return {
|
|
@@ -417965,20 +418008,26 @@ var AcpFileSystemService = class {
|
|
|
417965
418008
|
if (!this.capabilities.readTextFile) {
|
|
417966
418009
|
return this.fallback.readTextFile(filePath);
|
|
417967
418010
|
}
|
|
417968
|
-
|
|
417969
|
-
|
|
417970
|
-
|
|
417971
|
-
|
|
417972
|
-
|
|
417973
|
-
|
|
417974
|
-
|
|
417975
|
-
|
|
417976
|
-
|
|
417977
|
-
|
|
417978
|
-
|
|
417979
|
-
|
|
417980
|
-
|
|
417981
|
-
|
|
418011
|
+
let response;
|
|
418012
|
+
try {
|
|
418013
|
+
response = await this.client.readTextFile({
|
|
418014
|
+
path: filePath,
|
|
418015
|
+
sessionId: this.sessionId,
|
|
418016
|
+
line: null,
|
|
418017
|
+
limit: null
|
|
418018
|
+
});
|
|
418019
|
+
} catch (error2) {
|
|
418020
|
+
const errorCode = typeof error2 === "object" && error2 !== null && "code" in error2 ? error2.code : void 0;
|
|
418021
|
+
if (errorCode === ACP_ERROR_CODES.RESOURCE_NOT_FOUND) {
|
|
418022
|
+
const err = new Error(
|
|
418023
|
+
`File not found: ${filePath}`
|
|
418024
|
+
);
|
|
418025
|
+
err.code = "ENOENT";
|
|
418026
|
+
err.errno = -2;
|
|
418027
|
+
err.path = filePath;
|
|
418028
|
+
throw err;
|
|
418029
|
+
}
|
|
418030
|
+
throw error2;
|
|
417982
418031
|
}
|
|
417983
418032
|
return response.content;
|
|
417984
418033
|
}
|
|
@@ -419594,7 +419643,7 @@ var GeminiAgent = class {
|
|
|
419594
419643
|
name: APPROVAL_MODE_INFO[mode].name,
|
|
419595
419644
|
description: APPROVAL_MODE_INFO[mode].description
|
|
419596
419645
|
}));
|
|
419597
|
-
const version2 = "0.7.1-preview.
|
|
419646
|
+
const version2 = "0.7.1-preview.1";
|
|
419598
419647
|
return {
|
|
419599
419648
|
protocolVersion: PROTOCOL_VERSION,
|
|
419600
419649
|
agentInfo: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qwen-code/qwen-code",
|
|
3
|
-
"version": "0.7.1-preview.
|
|
3
|
+
"version": "0.7.1-preview.1",
|
|
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.7.1-preview.
|
|
23
|
+
"sandboxImageUri": "ghcr.io/qwenlm/qwen-code:0.7.1-preview.1"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"tiktoken": "^1.0.21"
|