@rdmind/rdmind 0.2.7-alpha.3 → 0.2.7-alpha.5
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 +35 -7
- package/package.json +2 -2
package/cli.js
CHANGED
|
@@ -134827,6 +134827,22 @@ var init_tokenLimits = __esm({
|
|
|
134827
134827
|
// MiniMax-M2.1: 200K context
|
|
134828
134828
|
];
|
|
134829
134829
|
OUTPUT_PATTERNS = [
|
|
134830
|
+
// -------------------
|
|
134831
|
+
// OpenAI / Codex
|
|
134832
|
+
// -------------------
|
|
134833
|
+
// GPT-5.3 Codex: 128K max output tokens
|
|
134834
|
+
[/^gpt-?(?:5\.3|5)-codex(?:\(.*\))?.*$/, LIMITS["128k"]],
|
|
134835
|
+
[/^.*codex.*$/, LIMITS["128k"]],
|
|
134836
|
+
// -------------------
|
|
134837
|
+
// Google Gemini
|
|
134838
|
+
// -------------------
|
|
134839
|
+
// Gemini series: 64K max output tokens
|
|
134840
|
+
[/^gemini-.*$/, LIMITS["64k"]],
|
|
134841
|
+
// -------------------
|
|
134842
|
+
// Moonshot / Kimi
|
|
134843
|
+
// -------------------
|
|
134844
|
+
// Kimi-k2.5: 64K max output tokens
|
|
134845
|
+
[/^kimi-k2\.5.*$/, LIMITS["64k"]],
|
|
134830
134846
|
// -------------------
|
|
134831
134847
|
// Alibaba / Qwen - DashScope Models
|
|
134832
134848
|
// -------------------
|
|
@@ -148988,7 +149004,7 @@ var init_codexContentGenerator = __esm({
|
|
|
148988
149004
|
max_output_tokens: this.samplingParams?.max_tokens,
|
|
148989
149005
|
reasoning: {
|
|
148990
149006
|
effort: reasoningEffort,
|
|
148991
|
-
summary: "
|
|
149007
|
+
summary: "none"
|
|
148992
149008
|
},
|
|
148993
149009
|
text: {
|
|
148994
149010
|
verbosity: "medium"
|
|
@@ -160760,7 +160776,7 @@ __export(geminiContentGenerator_exports2, {
|
|
|
160760
160776
|
createGeminiContentGenerator: () => createGeminiContentGenerator
|
|
160761
160777
|
});
|
|
160762
160778
|
function createGeminiContentGenerator(config2, gcConfig) {
|
|
160763
|
-
const version2 = "0.2.7-alpha.
|
|
160779
|
+
const version2 = "0.2.7-alpha.5";
|
|
160764
160780
|
const userAgent2 = config2.userAgent || `QwenCode/${version2} (${process.platform}; ${process.arch})`;
|
|
160765
160781
|
const baseHeaders = {
|
|
160766
160782
|
"User-Agent": userAgent2
|
|
@@ -224702,7 +224718,7 @@ Usage notes:
|
|
|
224702
224718
|
});
|
|
224703
224719
|
|
|
224704
224720
|
// packages/core/src/tools/redoc-fetch.ts
|
|
224705
|
-
var debugLogger59, REDOC_API_TIMEOUT_MS, REDOC_API_URL, REDOC_URL_PATTERN, IMAGE_DOWNLOAD_TIMEOUT_MS, MAX_IMAGE_SIZE_MB, RedocFetchToolInvocation, RedocFetchTool;
|
|
224721
|
+
var debugLogger59, REDOC_API_TIMEOUT_MS, REDOC_API_URL, REDOC_URL_PATTERN, IMAGE_DOWNLOAD_TIMEOUT_MS, MAX_IMAGE_SIZE_MB, REDOC_PERMISSION_DOC_URL, RedocFetchToolInvocation, RedocFetchTool;
|
|
224706
224722
|
var init_redoc_fetch = __esm({
|
|
224707
224723
|
"packages/core/src/tools/redoc-fetch.ts"() {
|
|
224708
224724
|
"use strict";
|
|
@@ -224719,6 +224735,7 @@ var init_redoc_fetch = __esm({
|
|
|
224719
224735
|
REDOC_URL_PATTERN = /^https:\/\/docs\.xiaohongshu\.com\/doc\/([a-f0-9]+)$/;
|
|
224720
224736
|
IMAGE_DOWNLOAD_TIMEOUT_MS = 3e4;
|
|
224721
224737
|
MAX_IMAGE_SIZE_MB = 20;
|
|
224738
|
+
REDOC_PERMISSION_DOC_URL = "https://docs.xiaohongshu.com/doc/f41a8036eb3f98a2ce0ec26c2dbb8e91";
|
|
224722
224739
|
RedocFetchToolInvocation = class extends BaseToolInvocation {
|
|
224723
224740
|
constructor(config2, params) {
|
|
224724
224741
|
super(params);
|
|
@@ -225097,6 +225114,17 @@ ${this.extractTextFromChildren(containerNode.children)}
|
|
|
225097
225114
|
};
|
|
225098
225115
|
return confirmationDetails;
|
|
225099
225116
|
}
|
|
225117
|
+
formatUserFriendlyError(error2) {
|
|
225118
|
+
const rawMessage = error2.message || "";
|
|
225119
|
+
if (rawMessage.includes("does not contain content field in data")) {
|
|
225120
|
+
return [
|
|
225121
|
+
`\u65E0\u6CD5\u8BFB\u53D6 Redoc \u6587\u6863\uFF1A${this.params.url}`,
|
|
225122
|
+
"\u53EF\u80FD\u539F\u56E0\uFF1A\u5F53\u524D\u6587\u6863\u5C1A\u672A\u5411 RDMind \u5F00\u901A\u8BBF\u95EE\u6743\u9650\u3002",
|
|
225123
|
+
`\u8BF7\u5148\u6309\u6307\u5F15\u4E3A\u6587\u6863\u6DFB\u52A0 RDMind \u6743\u9650\uFF1A${REDOC_PERMISSION_DOC_URL}`
|
|
225124
|
+
].join("\n");
|
|
225125
|
+
}
|
|
225126
|
+
return `Error during Redoc fetch for ${this.params.url}: ${rawMessage}`;
|
|
225127
|
+
}
|
|
225100
225128
|
async execute(signal) {
|
|
225101
225129
|
const docId = this.extractDocIdFromUrl(this.params.url);
|
|
225102
225130
|
if (!docId) {
|
|
@@ -225154,7 +225182,7 @@ ${imageInfo}
|
|
|
225154
225182
|
};
|
|
225155
225183
|
} catch (e4) {
|
|
225156
225184
|
const error2 = e4;
|
|
225157
|
-
const errorMessage =
|
|
225185
|
+
const errorMessage = this.formatUserFriendlyError(error2);
|
|
225158
225186
|
debugLogger59.error(`[RedocFetchTool] ${errorMessage}`, error2);
|
|
225159
225187
|
return {
|
|
225160
225188
|
llmContent: `Error: ${errorMessage}`,
|
|
@@ -361531,7 +361559,7 @@ __name(getPackageJson, "getPackageJson");
|
|
|
361531
361559
|
// packages/cli/src/utils/version.ts
|
|
361532
361560
|
async function getCliVersion() {
|
|
361533
361561
|
const pkgJson = await getPackageJson();
|
|
361534
|
-
return "0.2.7-alpha.
|
|
361562
|
+
return "0.2.7-alpha.5";
|
|
361535
361563
|
}
|
|
361536
361564
|
__name(getCliVersion, "getCliVersion");
|
|
361537
361565
|
|
|
@@ -369273,7 +369301,7 @@ var formatDuration = /* @__PURE__ */ __name((milliseconds) => {
|
|
|
369273
369301
|
|
|
369274
369302
|
// packages/cli/src/generated/git-commit.ts
|
|
369275
369303
|
init_esbuild_shims();
|
|
369276
|
-
var GIT_COMMIT_INFO = "
|
|
369304
|
+
var GIT_COMMIT_INFO = "f2f87a7dc";
|
|
369277
369305
|
|
|
369278
369306
|
// packages/cli/src/utils/systemInfo.ts
|
|
369279
369307
|
async function getNpmVersion() {
|
|
@@ -429066,7 +429094,7 @@ var GeminiAgent = class {
|
|
|
429066
429094
|
name: APPROVAL_MODE_INFO[mode].name,
|
|
429067
429095
|
description: APPROVAL_MODE_INFO[mode].description
|
|
429068
429096
|
}));
|
|
429069
|
-
const version2 = "0.2.7-alpha.
|
|
429097
|
+
const version2 = "0.2.7-alpha.5";
|
|
429070
429098
|
return {
|
|
429071
429099
|
protocolVersion: PROTOCOL_VERSION,
|
|
429072
429100
|
agentInfo: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rdmind/rdmind",
|
|
3
|
-
"version": "0.2.7-alpha.
|
|
3
|
+
"version": "0.2.7-alpha.5",
|
|
4
4
|
"description": "RDMind - AI-powered coding assistant",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "cli.js",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"locales"
|
|
20
20
|
],
|
|
21
21
|
"config": {
|
|
22
|
-
"sandboxImageUri": "ghcr.io/qwenlm/qwen-code:0.2.7-alpha.
|
|
22
|
+
"sandboxImageUri": "ghcr.io/qwenlm/qwen-code:0.2.7-alpha.5"
|
|
23
23
|
},
|
|
24
24
|
"publishConfig": {
|
|
25
25
|
"access": "public"
|