@rdmind/rdmind 0.1.4-alpha.9 → 0.1.5-alpha.0
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 +28 -28
- package/package.json +2 -2
package/cli.js
CHANGED
|
@@ -96838,7 +96838,8 @@ var init_qwen_logger = __esm({
|
|
|
96838
96838
|
properties: {
|
|
96839
96839
|
auth_type: authType,
|
|
96840
96840
|
model: this.config?.getModel(),
|
|
96841
|
-
base_url: authType === "openai" /* USE_OPENAI */ ? this.config?.getContentGeneratorConfig().baseUrl || "" : ""
|
|
96841
|
+
base_url: authType === "openai" /* USE_OPENAI */ ? this.config?.getContentGeneratorConfig().baseUrl || "" : "",
|
|
96842
|
+
...this.config?.getChannel?.() ? { channel: this.config.getChannel() } : {}
|
|
96842
96843
|
},
|
|
96843
96844
|
_v: `qwen-code@${version3}`
|
|
96844
96845
|
};
|
|
@@ -156589,10 +156590,12 @@ var init_dashscope = __esm({
|
|
|
156589
156590
|
};
|
|
156590
156591
|
}
|
|
156591
156592
|
buildMetadata(userPromptId) {
|
|
156593
|
+
const channel = this.cliConfig.getChannel?.();
|
|
156592
156594
|
return {
|
|
156593
156595
|
metadata: {
|
|
156594
156596
|
sessionId: this.cliConfig.getSessionId?.(),
|
|
156595
|
-
promptId: userPromptId
|
|
156597
|
+
promptId: userPromptId,
|
|
156598
|
+
...channel ? { channel } : {}
|
|
156596
156599
|
}
|
|
156597
156600
|
};
|
|
156598
156601
|
}
|
|
@@ -158001,20 +158004,6 @@ var init_converter2 = __esm({
|
|
|
158001
158004
|
resetStreamingToolCalls() {
|
|
158002
158005
|
this.streamingToolCallParser.reset();
|
|
158003
158006
|
}
|
|
158004
|
-
/**
|
|
158005
|
-
* Unescape newline sequences in reasoning content from Gemini models.
|
|
158006
|
-
* Gemini sometimes returns reasoning_content with escaped newlines (\\n)
|
|
158007
|
-
* that need to be converted to actual newline characters.
|
|
158008
|
-
*
|
|
158009
|
-
* @param text The text with potential escaped newlines
|
|
158010
|
-
* @returns The text with escaped newlines converted to actual newlines
|
|
158011
|
-
*/
|
|
158012
|
-
unescapeReasoningContent(text) {
|
|
158013
|
-
if (!text) return text;
|
|
158014
|
-
let result = text.replace(/\\n/g, "\n");
|
|
158015
|
-
result = result.replace(/\n{4,}/g, "\n\n\n");
|
|
158016
|
-
return result;
|
|
158017
|
-
}
|
|
158018
158007
|
/**
|
|
158019
158008
|
* Convert Gemini tool parameters to OpenAI JSON Schema format
|
|
158020
158009
|
*/
|
|
@@ -158367,8 +158356,7 @@ var init_converter2 = __esm({
|
|
|
158367
158356
|
const parts = [];
|
|
158368
158357
|
const reasoningText = choice2.message.reasoning_content;
|
|
158369
158358
|
if (reasoningText) {
|
|
158370
|
-
|
|
158371
|
-
parts.push({ text: unescapedReasoningText, thought: true });
|
|
158359
|
+
parts.push({ text: reasoningText, thought: true });
|
|
158372
158360
|
}
|
|
158373
158361
|
if (choice2.message.content) {
|
|
158374
158362
|
parts.push({ text: choice2.message.content });
|
|
@@ -158439,8 +158427,7 @@ var init_converter2 = __esm({
|
|
|
158439
158427
|
const parts = [];
|
|
158440
158428
|
const reasoningText = choice2.delta.reasoning_content;
|
|
158441
158429
|
if (reasoningText) {
|
|
158442
|
-
|
|
158443
|
-
parts.push({ text: unescapedReasoningText, thought: true });
|
|
158430
|
+
parts.push({ text: reasoningText, thought: true });
|
|
158444
158431
|
}
|
|
158445
158432
|
if (choice2.delta?.content) {
|
|
158446
158433
|
if (typeof choice2.delta.content === "string") {
|
|
@@ -160679,7 +160666,7 @@ var init_geminiContentGenerator = __esm({
|
|
|
160679
160666
|
config: {
|
|
160680
160667
|
...request4.config,
|
|
160681
160668
|
thinkingConfig: {
|
|
160682
|
-
includeThoughts:
|
|
160669
|
+
includeThoughts: false,
|
|
160683
160670
|
thinkingLevel
|
|
160684
160671
|
}
|
|
160685
160672
|
}
|
|
@@ -160826,7 +160813,7 @@ function createContentGeneratorConfig(config2, authType, generationConfig) {
|
|
|
160826
160813
|
};
|
|
160827
160814
|
}
|
|
160828
160815
|
async function createContentGenerator(config2, gcConfig, isInitialAuth) {
|
|
160829
|
-
const version3 = "0.1.
|
|
160816
|
+
const version3 = "0.1.5-alpha.0";
|
|
160830
160817
|
const userAgent2 = `QwenCode/${version3} (${process.platform}; ${process.arch})`;
|
|
160831
160818
|
const baseHeaders = {
|
|
160832
160819
|
"User-Agent": userAgent2
|
|
@@ -226046,6 +226033,7 @@ var init_config3 = __esm({
|
|
|
226046
226033
|
enableToolOutputTruncation;
|
|
226047
226034
|
eventEmitter;
|
|
226048
226035
|
useSmartEdit;
|
|
226036
|
+
channel;
|
|
226049
226037
|
constructor(params) {
|
|
226050
226038
|
this.sessionId = params.sessionId ?? randomUUID6();
|
|
226051
226039
|
this.sessionData = params.sessionData;
|
|
@@ -226147,6 +226135,7 @@ var init_config3 = __esm({
|
|
|
226147
226135
|
this.enableToolOutputTruncation = params.enableToolOutputTruncation ?? true;
|
|
226148
226136
|
this.useSmartEdit = params.useSmartEdit ?? false;
|
|
226149
226137
|
this.extensionManagement = params.extensionManagement ?? true;
|
|
226138
|
+
this.channel = params.channel;
|
|
226150
226139
|
this.storage = new Storage(this.targetDir);
|
|
226151
226140
|
this.vlmSwitchMode = params.vlmSwitchMode;
|
|
226152
226141
|
this.inputFormat = params.inputFormat ?? "text" /* TEXT */;
|
|
@@ -226544,6 +226533,9 @@ var init_config3 = __esm({
|
|
|
226544
226533
|
getCliVersion() {
|
|
226545
226534
|
return this.cliVersion;
|
|
226546
226535
|
}
|
|
226536
|
+
getChannel() {
|
|
226537
|
+
return this.channel;
|
|
226538
|
+
}
|
|
226547
226539
|
/**
|
|
226548
226540
|
* Get the current FileSystemService
|
|
226549
226541
|
*/
|
|
@@ -235991,8 +235983,8 @@ var init_git_commit = __esm({
|
|
|
235991
235983
|
"packages/core/src/generated/git-commit.ts"() {
|
|
235992
235984
|
"use strict";
|
|
235993
235985
|
init_esbuild_shims();
|
|
235994
|
-
GIT_COMMIT_INFO = "
|
|
235995
|
-
CLI_VERSION = "0.1.
|
|
235986
|
+
GIT_COMMIT_INFO = "af537553";
|
|
235987
|
+
CLI_VERSION = "0.1.5-alpha.0";
|
|
235996
235988
|
}
|
|
235997
235989
|
});
|
|
235998
235990
|
|
|
@@ -346351,7 +346343,7 @@ __name(getPackageJson, "getPackageJson");
|
|
|
346351
346343
|
// packages/cli/src/utils/version.ts
|
|
346352
346344
|
async function getCliVersion() {
|
|
346353
346345
|
const pkgJson = await getPackageJson();
|
|
346354
|
-
return "0.1.
|
|
346346
|
+
return "0.1.5-alpha.0";
|
|
346355
346347
|
}
|
|
346356
346348
|
__name(getCliVersion, "getCliVersion");
|
|
346357
346349
|
|
|
@@ -349254,6 +349246,10 @@ async function parseArguments(settings) {
|
|
|
349254
349246
|
}).option("experimental-acp", {
|
|
349255
349247
|
type: "boolean",
|
|
349256
349248
|
description: "Starts the agent in ACP mode"
|
|
349249
|
+
}).option("channel", {
|
|
349250
|
+
type: "string",
|
|
349251
|
+
choices: ["VSCode", "ACP", "SDK", "CI"],
|
|
349252
|
+
description: "Channel identifier (VSCode, ACP, SDK, CI)"
|
|
349257
349253
|
}).option("allowed-mcp-server-names", {
|
|
349258
349254
|
type: "array",
|
|
349259
349255
|
string: true,
|
|
@@ -349433,6 +349429,9 @@ async function parseArguments(settings) {
|
|
|
349433
349429
|
}
|
|
349434
349430
|
}
|
|
349435
349431
|
result["query"] = q || void 0;
|
|
349432
|
+
if (result["experimentalAcp"] && !result["channel"]) {
|
|
349433
|
+
result["channel"] = "ACP";
|
|
349434
|
+
}
|
|
349436
349435
|
return result;
|
|
349437
349436
|
}
|
|
349438
349437
|
__name(parseArguments, "parseArguments");
|
|
@@ -349728,7 +349727,8 @@ async function loadCliConfig(settings, extensions, extensionEnablementManager, a
|
|
|
349728
349727
|
useSmartEdit: argv.useSmartEdit ?? settings.useSmartEdit,
|
|
349729
349728
|
output: {
|
|
349730
349729
|
format: outputSettingsFormat
|
|
349731
|
-
}
|
|
349730
|
+
},
|
|
349731
|
+
channel: argv.channel
|
|
349732
349732
|
});
|
|
349733
349733
|
}
|
|
349734
349734
|
__name(loadCliConfig, "loadCliConfig");
|
|
@@ -352881,7 +352881,7 @@ var formatDuration = /* @__PURE__ */ __name((milliseconds) => {
|
|
|
352881
352881
|
|
|
352882
352882
|
// packages/cli/src/generated/git-commit.ts
|
|
352883
352883
|
init_esbuild_shims();
|
|
352884
|
-
var GIT_COMMIT_INFO2 = "
|
|
352884
|
+
var GIT_COMMIT_INFO2 = "af537553";
|
|
352885
352885
|
|
|
352886
352886
|
// packages/cli/src/utils/systemInfo.ts
|
|
352887
352887
|
async function getNpmVersion() {
|
|
@@ -408687,7 +408687,7 @@ var GeminiAgent = class {
|
|
|
408687
408687
|
name: APPROVAL_MODE_INFO[mode].name,
|
|
408688
408688
|
description: APPROVAL_MODE_INFO[mode].description
|
|
408689
408689
|
}));
|
|
408690
|
-
const version3 = "0.1.
|
|
408690
|
+
const version3 = "0.1.5-alpha.0";
|
|
408691
408691
|
return {
|
|
408692
408692
|
protocolVersion: PROTOCOL_VERSION,
|
|
408693
408693
|
agentInfo: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rdmind/rdmind",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5-alpha.0",
|
|
4
4
|
"description": "RDMind - AI-powered coding assistant",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "cli.js",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"locales"
|
|
21
21
|
],
|
|
22
22
|
"config": {
|
|
23
|
-
"sandboxImageUri": "ghcr.io/qwenlm/qwen-code:0.1.
|
|
23
|
+
"sandboxImageUri": "ghcr.io/qwenlm/qwen-code:0.1.5-alpha.0"
|
|
24
24
|
},
|
|
25
25
|
"publishConfig": {
|
|
26
26
|
"access": "public"
|