@rdmind/rdmind 0.1.1-alpha.2 → 0.1.1-alpha.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 +17 -7
- package/package.json +2 -2
package/cli.js
CHANGED
|
@@ -160375,12 +160375,14 @@ var init_geminiContentGenerator = __esm({
|
|
|
160375
160375
|
}
|
|
160376
160376
|
baseUrl;
|
|
160377
160377
|
apiKey;
|
|
160378
|
+
samplingParams;
|
|
160378
160379
|
userTier;
|
|
160379
160380
|
telemetryService;
|
|
160380
160381
|
errorHandler;
|
|
160381
160382
|
constructor(config2, cliConfig) {
|
|
160382
160383
|
this.baseUrl = config2.baseUrl || "https://runway.devops.rednote.life/openai/google/v1";
|
|
160383
160384
|
this.apiKey = config2.apiKey || "";
|
|
160385
|
+
this.samplingParams = config2.samplingParams;
|
|
160384
160386
|
if (!this.apiKey) {
|
|
160385
160387
|
throw new Error("Gemini API key is required");
|
|
160386
160388
|
}
|
|
@@ -160487,12 +160489,13 @@ var init_geminiContentGenerator = __esm({
|
|
|
160487
160489
|
parts: [{ text: systemInstruction }]
|
|
160488
160490
|
};
|
|
160489
160491
|
}
|
|
160492
|
+
const temperature = this.samplingParams?.temperature ?? 1;
|
|
160490
160493
|
return {
|
|
160491
160494
|
body: {
|
|
160492
160495
|
contents: this.sanitizeContents(request4.contents),
|
|
160493
160496
|
generationConfig: {
|
|
160494
160497
|
...generationConfig,
|
|
160495
|
-
temperature
|
|
160498
|
+
temperature
|
|
160496
160499
|
},
|
|
160497
160500
|
tools,
|
|
160498
160501
|
systemInstruction: formattedSystemInstruction
|
|
@@ -160717,7 +160720,7 @@ function createContentGeneratorConfig(config2, authType, generationConfig) {
|
|
|
160717
160720
|
};
|
|
160718
160721
|
}
|
|
160719
160722
|
async function createContentGenerator(config2, gcConfig, sessionId2, isInitialAuth) {
|
|
160720
|
-
const version3 = "0.1.1-alpha.
|
|
160723
|
+
const version3 = "0.1.1-alpha.4";
|
|
160721
160724
|
const userAgent2 = `QwenCode/${version3} (${process.platform}; ${process.arch})`;
|
|
160722
160725
|
const baseHeaders = {
|
|
160723
160726
|
"User-Agent": userAgent2
|
|
@@ -178186,7 +178189,7 @@ var init_turn = __esm({
|
|
|
178186
178189
|
yield { type: "content" /* Content */, value: text };
|
|
178187
178190
|
}
|
|
178188
178191
|
const functionCalls = resp.functionCalls ?? [];
|
|
178189
|
-
if (resp.candidates?.[0]?.content?.parts) {
|
|
178192
|
+
if (functionCalls.length === 0 && resp.candidates?.[0]?.content?.parts) {
|
|
178190
178193
|
for (const part of resp.candidates[0].content.parts) {
|
|
178191
178194
|
if (part.functionCall) {
|
|
178192
178195
|
functionCalls.push(part.functionCall);
|
|
@@ -179454,6 +179457,7 @@ var init_subagent = __esm({
|
|
|
179454
179457
|
if (resp.functionCalls) functionCalls.push(...resp.functionCalls);
|
|
179455
179458
|
const content = resp.candidates?.[0]?.content;
|
|
179456
179459
|
const parts = content?.parts || [];
|
|
179460
|
+
const hadFunctionCallsFromHelper = resp.functionCalls && resp.functionCalls.length > 0;
|
|
179457
179461
|
for (const p of parts) {
|
|
179458
179462
|
const txt = p.text;
|
|
179459
179463
|
if (txt) roundText += txt;
|
|
@@ -179464,6 +179468,12 @@ var init_subagent = __esm({
|
|
|
179464
179468
|
text: txt,
|
|
179465
179469
|
timestamp: Date.now()
|
|
179466
179470
|
});
|
|
179471
|
+
if (!hadFunctionCallsFromHelper) {
|
|
179472
|
+
const partWithFunctionCall = p;
|
|
179473
|
+
if (partWithFunctionCall.functionCall) {
|
|
179474
|
+
functionCalls.push(partWithFunctionCall.functionCall);
|
|
179475
|
+
}
|
|
179476
|
+
}
|
|
179467
179477
|
}
|
|
179468
179478
|
if (resp.usageMetadata) lastUsage = resp.usageMetadata;
|
|
179469
179479
|
}
|
|
@@ -235009,8 +235019,8 @@ var init_git_commit = __esm({
|
|
|
235009
235019
|
"packages/core/src/generated/git-commit.ts"() {
|
|
235010
235020
|
"use strict";
|
|
235011
235021
|
init_esbuild_shims();
|
|
235012
|
-
GIT_COMMIT_INFO = "
|
|
235013
|
-
CLI_VERSION = "0.1.1-alpha.
|
|
235022
|
+
GIT_COMMIT_INFO = "896d0f2";
|
|
235023
|
+
CLI_VERSION = "0.1.1-alpha.4";
|
|
235014
235024
|
}
|
|
235015
235025
|
});
|
|
235016
235026
|
|
|
@@ -345321,7 +345331,7 @@ __name(getPackageJson, "getPackageJson");
|
|
|
345321
345331
|
// packages/cli/src/utils/version.ts
|
|
345322
345332
|
async function getCliVersion() {
|
|
345323
345333
|
const pkgJson = await getPackageJson();
|
|
345324
|
-
return "0.1.1-alpha.
|
|
345334
|
+
return "0.1.1-alpha.4";
|
|
345325
345335
|
}
|
|
345326
345336
|
__name(getCliVersion, "getCliVersion");
|
|
345327
345337
|
|
|
@@ -351607,7 +351617,7 @@ var formatDuration = /* @__PURE__ */ __name((milliseconds) => {
|
|
|
351607
351617
|
|
|
351608
351618
|
// packages/cli/src/generated/git-commit.ts
|
|
351609
351619
|
init_esbuild_shims();
|
|
351610
|
-
var GIT_COMMIT_INFO2 = "
|
|
351620
|
+
var GIT_COMMIT_INFO2 = "896d0f2";
|
|
351611
351621
|
|
|
351612
351622
|
// packages/cli/src/utils/systemInfo.ts
|
|
351613
351623
|
async function getNpmVersion() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rdmind/rdmind",
|
|
3
|
-
"version": "0.1.1-alpha.
|
|
3
|
+
"version": "0.1.1-alpha.4",
|
|
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.1-alpha.
|
|
23
|
+
"sandboxImageUri": "ghcr.io/qwenlm/qwen-code:0.1.1-alpha.4"
|
|
24
24
|
},
|
|
25
25
|
"publishConfig": {
|
|
26
26
|
"access": "public"
|