@jaydennleemc/qwen-code-local 0.12.3-beta1 → 0.12.3-beta2
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/dist/cli.js +17 -12
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -157729,7 +157729,7 @@ __export(geminiContentGenerator_exports, {
|
|
|
157729
157729
|
createGeminiContentGenerator: () => createGeminiContentGenerator
|
|
157730
157730
|
});
|
|
157731
157731
|
function createGeminiContentGenerator(config2, gcConfig) {
|
|
157732
|
-
const version2 = "0.12.3-
|
|
157732
|
+
const version2 = "0.12.3-beta2";
|
|
157733
157733
|
const userAgent2 = config2.userAgent || `QwenCode/${version2} (${process.platform}; ${process.arch})`;
|
|
157734
157734
|
const baseHeaders = {
|
|
157735
157735
|
"User-Agent": userAgent2
|
|
@@ -389669,7 +389669,7 @@ __name(getPackageJson, "getPackageJson");
|
|
|
389669
389669
|
// packages/cli/src/utils/version.ts
|
|
389670
389670
|
async function getCliVersion() {
|
|
389671
389671
|
const pkgJson = await getPackageJson();
|
|
389672
|
-
return "0.12.3-
|
|
389672
|
+
return "0.12.3-beta2";
|
|
389673
389673
|
}
|
|
389674
389674
|
__name(getCliVersion, "getCliVersion");
|
|
389675
389675
|
|
|
@@ -397233,7 +397233,7 @@ var formatDuration = /* @__PURE__ */ __name((milliseconds) => {
|
|
|
397233
397233
|
|
|
397234
397234
|
// packages/cli/src/generated/git-commit.ts
|
|
397235
397235
|
init_esbuild_shims();
|
|
397236
|
-
var GIT_COMMIT_INFO = "
|
|
397236
|
+
var GIT_COMMIT_INFO = "927ad2e0";
|
|
397237
397237
|
|
|
397238
397238
|
// packages/cli/src/utils/systemInfo.ts
|
|
397239
397239
|
async function getNpmVersion() {
|
|
@@ -423920,19 +423920,24 @@ function getPrefixWidth(prefix) {
|
|
|
423920
423920
|
__name(getPrefixWidth, "getPrefixWidth");
|
|
423921
423921
|
function parseThinkingContent(text) {
|
|
423922
423922
|
const thinkPattern = /<think(ing)?>([\s\S]*?)<\/think(ing)?>/g;
|
|
423923
|
-
|
|
423923
|
+
const matches = [...text.matchAll(thinkPattern)];
|
|
423924
|
+
if (matches.length === 0) {
|
|
423925
|
+
return { thinkingContent: "", mainContent: text, hasThinking: false };
|
|
423926
|
+
}
|
|
423924
423927
|
const thinkingParts = [];
|
|
423925
|
-
|
|
423926
|
-
|
|
423927
|
-
|
|
423928
|
-
|
|
423929
|
-
|
|
423930
|
-
lastIndex = match2.index + match2[0].length;
|
|
423928
|
+
for (const match2 of matches) {
|
|
423929
|
+
const content = match2[2]?.trim();
|
|
423930
|
+
if (content) {
|
|
423931
|
+
thinkingParts.push(content);
|
|
423932
|
+
}
|
|
423931
423933
|
}
|
|
423934
|
+
const hasThinking = thinkingParts.length > 0;
|
|
423932
423935
|
if (!hasThinking) {
|
|
423933
423936
|
return { thinkingContent: "", mainContent: text, hasThinking: false };
|
|
423934
423937
|
}
|
|
423935
|
-
const
|
|
423938
|
+
const lastMatch = matches[matches.length - 1];
|
|
423939
|
+
const lastIndex = lastMatch.index + lastMatch[0].length;
|
|
423940
|
+
const thinkingContent = thinkingParts.join("\n") + "\n";
|
|
423936
423941
|
const mainContent = text.slice(lastIndex).trim();
|
|
423937
423942
|
return { thinkingContent, mainContent, hasThinking };
|
|
423938
423943
|
}
|
|
@@ -456124,7 +456129,7 @@ var QwenAgent = class {
|
|
|
456124
456129
|
async initialize(args) {
|
|
456125
456130
|
this.clientCapabilities = args.clientCapabilities;
|
|
456126
456131
|
const authMethods = buildAuthMethods();
|
|
456127
|
-
const version2 = "0.12.3-
|
|
456132
|
+
const version2 = "0.12.3-beta2";
|
|
456128
456133
|
return {
|
|
456129
456134
|
protocolVersion: PROTOCOL_VERSION,
|
|
456130
456135
|
agentInfo: {
|