@rdmind/rdmind 0.1.1-alpha.1 → 0.1.1-alpha.2
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 +16 -22
- package/package.json +2 -2
package/cli.js
CHANGED
|
@@ -160490,7 +160490,10 @@ var init_geminiContentGenerator = __esm({
|
|
|
160490
160490
|
return {
|
|
160491
160491
|
body: {
|
|
160492
160492
|
contents: this.sanitizeContents(request4.contents),
|
|
160493
|
-
generationConfig
|
|
160493
|
+
generationConfig: {
|
|
160494
|
+
...generationConfig,
|
|
160495
|
+
temperature: 1
|
|
160496
|
+
},
|
|
160494
160497
|
tools,
|
|
160495
160498
|
systemInstruction: formattedSystemInstruction
|
|
160496
160499
|
},
|
|
@@ -160714,7 +160717,7 @@ function createContentGeneratorConfig(config2, authType, generationConfig) {
|
|
|
160714
160717
|
};
|
|
160715
160718
|
}
|
|
160716
160719
|
async function createContentGenerator(config2, gcConfig, sessionId2, isInitialAuth) {
|
|
160717
|
-
const version3 = "0.1.1-alpha.
|
|
160720
|
+
const version3 = "0.1.1-alpha.2";
|
|
160718
160721
|
const userAgent2 = `QwenCode/${version3} (${process.platform}; ${process.arch})`;
|
|
160719
160722
|
const baseHeaders = {
|
|
160720
160723
|
"User-Agent": userAgent2
|
|
@@ -235006,8 +235009,8 @@ var init_git_commit = __esm({
|
|
|
235006
235009
|
"packages/core/src/generated/git-commit.ts"() {
|
|
235007
235010
|
"use strict";
|
|
235008
235011
|
init_esbuild_shims();
|
|
235009
|
-
GIT_COMMIT_INFO = "
|
|
235010
|
-
CLI_VERSION = "0.1.1-alpha.
|
|
235012
|
+
GIT_COMMIT_INFO = "004a3e7";
|
|
235013
|
+
CLI_VERSION = "0.1.1-alpha.2";
|
|
235011
235014
|
}
|
|
235012
235015
|
});
|
|
235013
235016
|
|
|
@@ -345318,7 +345321,7 @@ __name(getPackageJson, "getPackageJson");
|
|
|
345318
345321
|
// packages/cli/src/utils/version.ts
|
|
345319
345322
|
async function getCliVersion() {
|
|
345320
345323
|
const pkgJson = await getPackageJson();
|
|
345321
|
-
return "0.1.1-alpha.
|
|
345324
|
+
return "0.1.1-alpha.2";
|
|
345322
345325
|
}
|
|
345323
345326
|
__name(getCliVersion, "getCliVersion");
|
|
345324
345327
|
|
|
@@ -351604,7 +351607,7 @@ var formatDuration = /* @__PURE__ */ __name((milliseconds) => {
|
|
|
351604
351607
|
|
|
351605
351608
|
// packages/cli/src/generated/git-commit.ts
|
|
351606
351609
|
init_esbuild_shims();
|
|
351607
|
-
var GIT_COMMIT_INFO2 = "
|
|
351610
|
+
var GIT_COMMIT_INFO2 = "004a3e7";
|
|
351608
351611
|
|
|
351609
351612
|
// packages/cli/src/utils/systemInfo.ts
|
|
351610
351613
|
async function getNpmVersion() {
|
|
@@ -389408,14 +389411,14 @@ var XHS_SSO_MODELS = [
|
|
|
389408
389411
|
displayName: "gemini-3-pro-preview(low)",
|
|
389409
389412
|
baseUrl: "https://runway.devops.rednote.life/openai/google/v1",
|
|
389410
389413
|
contextWindow: "1M",
|
|
389411
|
-
description: "
|
|
389414
|
+
description: "Google\u8FC4\u4ECA\u4E3A\u6B62\u6700\u667A\u80FD\u7684\u6A21\u578B(\u601D\u8003\u65F6\u95F4\u77ED)"
|
|
389412
389415
|
},
|
|
389413
389416
|
{
|
|
389414
389417
|
id: "gemini-3-pro-preview(high)",
|
|
389415
389418
|
displayName: "gemini-3-pro-preview(high)",
|
|
389416
389419
|
baseUrl: "https://runway.devops.rednote.life/openai/google/v1",
|
|
389417
389420
|
contextWindow: "1M",
|
|
389418
|
-
description: "
|
|
389421
|
+
description: "Google\u8FC4\u4ECA\u4E3A\u6B62\u6700\u667A\u80FD\u7684\u6A21\u578B(\u601D\u8003\u65F6\u95F4\u957F)"
|
|
389419
389422
|
}
|
|
389420
389423
|
];
|
|
389421
389424
|
|
|
@@ -401409,7 +401412,7 @@ function setDebugMode2(enabled) {
|
|
|
401409
401412
|
}
|
|
401410
401413
|
__name(setDebugMode2, "setDebugMode");
|
|
401411
401414
|
function isDebugEnabled3() {
|
|
401412
|
-
return globalDebugMode3 || process.env["
|
|
401415
|
+
return globalDebugMode3 || process.env["RDMIND_DEBUG_PLUGIN_SYNC"] === "1";
|
|
401413
401416
|
}
|
|
401414
401417
|
__name(isDebugEnabled3, "isDebugEnabled");
|
|
401415
401418
|
function debugLog3(message, ...args) {
|
|
@@ -401421,14 +401424,12 @@ __name(debugLog3, "debugLog");
|
|
|
401421
401424
|
function getSsoCredentials() {
|
|
401422
401425
|
try {
|
|
401423
401426
|
const credsPath = path117.join(os42.homedir(), ".rdmind", "xhs_sso_creds.json");
|
|
401424
|
-
debugLog3(`\u5C1D\u8BD5\u4ECE\u8DEF\u5F84\u8BFB\u53D6SSO\u51ED\u8BC1: ${credsPath}`);
|
|
401425
401427
|
if (fs103.existsSync(credsPath)) {
|
|
401426
401428
|
const content = fs103.readFileSync(credsPath, "utf-8");
|
|
401427
401429
|
const parsed = JSON.parse(content);
|
|
401428
401430
|
const rdmindSsoId = parsed?.["rdmind_sso_id"];
|
|
401429
401431
|
const ssoName = parsed?.["sso_name"];
|
|
401430
401432
|
if (typeof rdmindSsoId === "string" && rdmindSsoId && typeof ssoName === "string" && ssoName) {
|
|
401431
|
-
debugLog3("\u6210\u529F\u8BFB\u53D6rdmind_sso_id\u548Csso_name");
|
|
401432
401433
|
return {
|
|
401433
401434
|
rdmind_sso_id: rdmindSsoId,
|
|
401434
401435
|
sso_name: ssoName
|
|
@@ -401440,13 +401441,12 @@ function getSsoCredentials() {
|
|
|
401440
401441
|
debugLog3("SSO\u51ED\u8BC1\u6587\u4EF6\u4E0D\u5B58\u5728");
|
|
401441
401442
|
}
|
|
401442
401443
|
} catch (error2) {
|
|
401443
|
-
|
|
401444
|
+
debugLog3("\u8BFB\u53D6 xhs_sso_creds.json \u4E2D\u7684\u51ED\u8BC1\u4FE1\u606F\u5931\u8D25:", error2);
|
|
401444
401445
|
}
|
|
401445
401446
|
return null;
|
|
401446
401447
|
}
|
|
401447
401448
|
__name(getSsoCredentials, "getSsoCredentials");
|
|
401448
401449
|
function getClientPlugins() {
|
|
401449
|
-
debugLog3("\u83B7\u53D6\u5BA2\u6237\u7AEF\u63D2\u4EF6\u5217\u8868");
|
|
401450
401450
|
const plugins = [];
|
|
401451
401451
|
try {
|
|
401452
401452
|
const rdmindDir = path117.join(os42.homedir(), ".rdmind");
|
|
@@ -401454,7 +401454,6 @@ function getClientPlugins() {
|
|
|
401454
401454
|
for (const pluginType of pluginTypes) {
|
|
401455
401455
|
const pluginTypeDir = path117.join(rdmindDir, pluginType);
|
|
401456
401456
|
if (!fs103.existsSync(pluginTypeDir)) {
|
|
401457
|
-
debugLog3(`\u63D2\u4EF6\u7C7B\u578B\u76EE\u5F55\u4E0D\u5B58\u5728: ${pluginTypeDir}`);
|
|
401458
401457
|
continue;
|
|
401459
401458
|
}
|
|
401460
401459
|
const idDirs = fs103.readdirSync(pluginTypeDir);
|
|
@@ -401482,15 +401481,13 @@ function getClientPlugins() {
|
|
|
401482
401481
|
}
|
|
401483
401482
|
}
|
|
401484
401483
|
} catch (error2) {
|
|
401485
|
-
|
|
401484
|
+
debugLog3("\u8BFB\u53D6\u5BA2\u6237\u7AEF\u63D2\u4EF6\u5217\u8868\u5931\u8D25:", error2);
|
|
401486
401485
|
}
|
|
401487
|
-
debugLog3(`\u627E\u5230 ${plugins.length} \u4E2A\u63D2\u4EF6`);
|
|
401488
401486
|
return plugins;
|
|
401489
401487
|
}
|
|
401490
401488
|
__name(getClientPlugins, "getClientPlugins");
|
|
401491
401489
|
async function syncPlugins() {
|
|
401492
401490
|
try {
|
|
401493
|
-
debugLog3("\u5F00\u59CB\u63D2\u4EF6\u540C\u6B65\u6D41\u7A0B");
|
|
401494
401491
|
const credentials = getSsoCredentials();
|
|
401495
401492
|
if (!credentials) {
|
|
401496
401493
|
debugLog3("\u672A\u627E\u5230\u6709\u6548\u7684SSO\u51ED\u8BC1\uFF0C\u8DF3\u8FC7\u63D2\u4EF6\u540C\u6B65");
|
|
@@ -401501,10 +401498,8 @@ async function syncPlugins() {
|
|
|
401501
401498
|
rdmindSsoId: credentials.rdmind_sso_id,
|
|
401502
401499
|
clientPlugins
|
|
401503
401500
|
};
|
|
401504
|
-
debugLog3("\u6784\u5EFA\u540C\u6B65\u8BF7\u6C42", request4);
|
|
401505
401501
|
const apiBaseUrl = process.env["RDMIND_API_BASE_URL"]?.trim() || PALLAS_HTTP_BASE;
|
|
401506
401502
|
const url3 = `${apiBaseUrl}/pallas/rdmind/cli/sync`;
|
|
401507
|
-
debugLog3(`\u51C6\u5907\u53D1\u9001POST\u8BF7\u6C42\u5230: ${url3}`);
|
|
401508
401503
|
const response = await fetch(url3, {
|
|
401509
401504
|
method: "POST",
|
|
401510
401505
|
headers: {
|
|
@@ -401514,9 +401509,8 @@ async function syncPlugins() {
|
|
|
401514
401509
|
},
|
|
401515
401510
|
body: JSON.stringify(request4)
|
|
401516
401511
|
});
|
|
401517
|
-
debugLog3(`\u6536\u5230\u54CD\u5E94\u72B6\u6001: ${response.status}`);
|
|
401518
401512
|
if (!response.ok) {
|
|
401519
|
-
|
|
401513
|
+
debugLog3(
|
|
401520
401514
|
`\u63D2\u4EF6\u540C\u6B65\u5931\u8D25\uFF0CHTTP ${response.status}: ${response.statusText}`
|
|
401521
401515
|
);
|
|
401522
401516
|
return;
|
|
@@ -401524,7 +401518,7 @@ async function syncPlugins() {
|
|
|
401524
401518
|
const result = await response.json();
|
|
401525
401519
|
debugLog3("\u63D2\u4EF6\u540C\u6B65\u6210\u529F\uFF0C\u670D\u52A1\u5668\u54CD\u5E94:", result);
|
|
401526
401520
|
} catch (error2) {
|
|
401527
|
-
|
|
401521
|
+
debugLog3("\u63D2\u4EF6\u540C\u6B65\u5F02\u5E38:", error2);
|
|
401528
401522
|
}
|
|
401529
401523
|
}
|
|
401530
401524
|
__name(syncPlugins, "syncPlugins");
|
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.2",
|
|
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.2"
|
|
24
24
|
},
|
|
25
25
|
"publishConfig": {
|
|
26
26
|
"access": "public"
|