@rdmind/rdmind 0.0.18 → 0.0.19-alpha.1

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.
Files changed (2) hide show
  1. package/cli.js +27 -19
  2. package/package.json +2 -2
package/cli.js CHANGED
@@ -183747,7 +183747,7 @@ function createContentGeneratorConfig(config, authType, generationConfig) {
183747
183747
  };
183748
183748
  }
183749
183749
  async function createContentGenerator(config, gcConfig, sessionId2) {
183750
- const version2 = "0.0.18";
183750
+ const version2 = "0.0.19-alpha.1";
183751
183751
  const userAgent2 = `QwenCode/${version2} (${process.platform}; ${process.arch})`;
183752
183752
  const baseHeaders = {
183753
183753
  "User-Agent": userAgent2
@@ -245081,10 +245081,19 @@ var init_redoc_fetch = __esm({
245081
245081
  console.error(`[RedocFetchTool] ${errorMessage}`, responseData);
245082
245082
  throw new Error(errorMessage);
245083
245083
  }
245084
- if (!responseData.data?.content) {
245085
- throw new Error(
245086
- "Redoc API response does not contain content field in data"
245087
- );
245084
+ if (!responseData.data) {
245085
+ const errorMessage = "Redoc API response does not contain data field";
245086
+ console.error(`[RedocFetchTool] ${errorMessage}`);
245087
+ console.error(`[RedocFetchTool] \u5B8C\u6574\u54CD\u5E94\u6570\u636E:`, JSON.stringify(responseData, null, 2));
245088
+ throw new Error(errorMessage);
245089
+ }
245090
+ if (!responseData.data.content) {
245091
+ const errorMessage = "Redoc API response does not contain content field in data";
245092
+ console.error(`[RedocFetchTool] ${errorMessage}`);
245093
+ console.error(`[RedocFetchTool] \u5B8C\u6574\u54CD\u5E94\u6570\u636E:`, JSON.stringify(responseData, null, 2));
245094
+ console.error(`[RedocFetchTool] data \u5B57\u6BB5\u5185\u5BB9:`, JSON.stringify(responseData.data, null, 2));
245095
+ console.error(`[RedocFetchTool] data \u5B57\u6BB5\u7684\u6240\u6709\u952E:`, Object.keys(responseData.data));
245096
+ throw new Error(`${errorMessage}. \u53EF\u7528\u5B57\u6BB5: ${Object.keys(responseData.data).join(", ")}`);
245088
245097
  }
245089
245098
  console.debug(
245090
245099
  `[RedocFetchTool] Successfully fetched content for doc_id: ${docId}, title: ${responseData.data.title}`
@@ -245096,7 +245105,7 @@ var init_redoc_fetch = __esm({
245096
245105
  }
245097
245106
  getDescription() {
245098
245107
  const displayPrompt = this.params.prompt.length > 100 ? this.params.prompt.substring(0, 97) + "..." : this.params.prompt;
245099
- return `Fetching Redoc document from ${this.params.url} and processing with prompt: "${displayPrompt}"`;
245108
+ return `\u83B7\u53D6 Redoc \u6587\u6863\u5E76\u5206\u6790\uFF1A${displayPrompt}`;
245100
245109
  }
245101
245110
  async shouldConfirmExecute() {
245102
245111
  const approvalMode = this.config.getApprovalMode();
@@ -245105,8 +245114,8 @@ var init_redoc_fetch = __esm({
245105
245114
  }
245106
245115
  const confirmationDetails = {
245107
245116
  type: "info",
245108
- title: `Confirm Redoc Document Fetch`,
245109
- prompt: `Fetch Redoc document from ${this.params.url} and process with: ${this.params.prompt}`,
245117
+ title: `\u786E\u8BA4\u83B7\u53D6 Redoc \u6587\u6863`,
245118
+ prompt: `\u4ECE ${this.params.url} \u83B7\u53D6\u6587\u6863\u5E76\u5206\u6790\uFF1A${this.params.prompt}`,
245110
245119
  urls: [this.params.url],
245111
245120
  onConfirm: /* @__PURE__ */ __name(async (outcome) => {
245112
245121
  if (outcome === "proceed_always" /* ProceedAlways */) {
@@ -245142,15 +245151,18 @@ ${content}`;
245142
245151
  } catch (_e) {
245143
245152
  processedContent = content;
245144
245153
  }
245145
- const fallbackPrompt = `${this.params.prompt}
245154
+ const fallbackPrompt = `\u8BF7\u6839\u636E\u7528\u6237\u7684\u95EE\u9898\u5206\u6790\u4EE5\u4E0B\u6587\u6863\u5185\u5BB9\uFF1A
245146
245155
 
245147
- \u4EE5\u4E0B\u662F\u4ECE ${this.params.url} \u83B7\u53D6\u7684\u5C0F\u7EA2\u4E66 Redoc \u6587\u6863\u5185\u5BB9\uFF1A
245156
+ \u7528\u6237\u95EE\u9898\uFF1A${this.params.prompt}
245148
245157
 
245158
+ \u6587\u6863\u6765\u6E90\uFF1A${this.params.url}
245159
+
245160
+ \u6587\u6863\u5185\u5BB9\uFF1A
245149
245161
  ---
245150
245162
  ${processedContent}
245151
245163
  ---
245152
245164
 
245153
- \u8BF7\u6839\u636E\u4E0A\u8FF0\u6587\u6863\u5185\u5BB9\uFF0C\u5B8C\u6210\u7528\u6237\u7684\u8BF7\u6C42\u3002`;
245165
+ \u8BF7\u6839\u636E\u4E0A\u8FF0\u6587\u6863\u5185\u5BB9\u56DE\u7B54\u7528\u6237\u7684\u95EE\u9898\u3002`;
245154
245166
  const result = await geminiClient.generateContent(
245155
245167
  [{ role: "user", parts: [{ text: fallbackPrompt }] }],
245156
245168
  {},
@@ -245181,7 +245193,7 @@ ${processedContent}
245181
245193
  super(
245182
245194
  _RedocFetchTool.Name,
245183
245195
  "RedocFetch",
245184
- "\u4ECE\u5C0F\u7EA2\u4E66 Redoc \u6587\u6863\u83B7\u53D6\u5185\u5BB9\u5E76\u4F7F\u7528 AI \u6A21\u578B\u5904\u7406\n- \u63A5\u53D7 Redoc \u6587\u6863 URL \u548C\u63D0\u793A\u8BCD\u4F5C\u4E3A\u8F93\u5165\n- \u4ECE URL \u4E2D\u63D0\u53D6\u6587\u6863 ID \u5E76\u901A\u8FC7 Redoc API \u83B7\u53D6\u5185\u5BB9\n- \u4F7F\u7528\u5C0F\u578B\u5FEB\u901F\u6A21\u578B\u5904\u7406\u5185\u5BB9\u548C\u63D0\u793A\u8BCD\n- \u8FD4\u56DE\u6A21\u578B\u5BF9\u5185\u5BB9\u7684\u54CD\u5E94\n- \u4E13\u95E8\u7528\u4E8E\u5C0F\u7EA2\u4E66 Redoc \u6587\u6863\n\n\u4F7F\u7528\u8BF4\u660E:\n - \u6B64\u5DE5\u5177\u4E13\u95E8\u9488\u5BF9\u683C\u5F0F\u4E3A https://docs.xiaohongshu.com/doc/{doc_id} \u7684 URL\n - URL \u5FC5\u987B\u5305\u542B\u6709\u6548\u7684\u6587\u6863 ID\uFF0832 \u4F4D\u5341\u516D\u8FDB\u5236\u5B57\u7B26\u4E32\uFF09\n - \u63D0\u793A\u8BCD\u5E94\u63CF\u8FF0\u60A8\u60F3\u4ECE\u6587\u6863\u4E2D\u63D0\u53D6\u7684\u4FE1\u606F\n - \u6B64\u5DE5\u5177\u4E3A\u53EA\u8BFB\u5DE5\u5177\uFF0C\u4E0D\u4F1A\u4FEE\u6539\u4EFB\u4F55\u6587\u4EF6\n - \u5982\u679C\u5185\u5BB9\u5F88\u5927\uFF0C\u7ED3\u679C\u53EF\u80FD\u4F1A\u88AB\u6458\u8981",
245196
+ "\u4ECE\u5C0F\u7EA2\u4E66 Redoc \u6587\u6863\u83B7\u53D6\u5185\u5BB9\u5E76\u4F7F\u7528 AI \u6A21\u578B\u5904\u7406\n- \u63A5\u53D7 Redoc \u6587\u6863 URL \u548C\u63D0\u793A\u8BCD\u4F5C\u4E3A\u8F93\u5165\n- \u4ECE URL \u4E2D\u63D0\u53D6\u6587\u6863 ID \u5E76\u901A\u8FC7 Redoc API \u83B7\u53D6\u5185\u5BB9\n- \u4F7F\u7528 AI \u6A21\u578B\u5904\u7406\u6587\u6863\u5185\u5BB9\u5E76\u56DE\u7B54\u7528\u6237\u95EE\u9898\n- \u8FD4\u56DE\u6A21\u578B\u5BF9\u5185\u5BB9\u7684\u54CD\u5E94\n- \u9002\u7528\u4E8E\u5404\u79CD\u7C7B\u578B\u7684\u5C0F\u7EA2\u4E66 Redoc \u6587\u6863\uFF08\u6280\u672F\u6587\u6863\u3001\u4EA7\u54C1\u6587\u6863\u3001\u8BBE\u8BA1\u6587\u6863\u7B49\uFF09\n\n\u4F7F\u7528\u8BF4\u660E:\n - \u6B64\u5DE5\u5177\u4E13\u95E8\u9488\u5BF9\u683C\u5F0F\u4E3A https://docs.xiaohongshu.com/doc/{doc_id} \u7684 URL\n - URL \u5FC5\u987B\u5305\u542B\u6709\u6548\u7684\u6587\u6863 ID\uFF0832 \u4F4D\u5341\u516D\u8FDB\u5236\u5B57\u7B26\u4E32\uFF09\n - \u63D0\u793A\u8BCD\u5E94\u8BE5\u6E05\u6670\u63CF\u8FF0\u7528\u6237\u60F3\u4E86\u89E3\u6587\u6863\u7684\u54EA\u4E9B\u65B9\u9762\n - \u6B64\u5DE5\u5177\u4E3A\u53EA\u8BFB\u5DE5\u5177\uFF0C\u4E0D\u4F1A\u4FEE\u6539\u4EFB\u4F55\u6587\u4EF6\n - \u5982\u679C\u5185\u5BB9\u5F88\u5927\uFF0C\u7ED3\u679C\u53EF\u80FD\u4F1A\u88AB\u6458\u8981",
245185
245197
  "fetch" /* Fetch */,
245186
245198
  {
245187
245199
  properties: {
@@ -245190,7 +245202,7 @@ ${processedContent}
245190
245202
  type: "string"
245191
245203
  },
245192
245204
  prompt: {
245193
- description: "\u7528\u4E8E\u5904\u7406\u83B7\u53D6\u5185\u5BB9\u7684\u63D0\u793A\u8BCD",
245205
+ description: "\u63CF\u8FF0\u7528\u6237\u60F3\u4ECE\u6587\u6863\u4E2D\u4E86\u89E3\u4EC0\u4E48\u4FE1\u606F\uFF0C\u4F8B\u5982\uFF1A\u603B\u7ED3\u6587\u6863\u4E3B\u8981\u5185\u5BB9\u3001\u89E3\u91CA\u67D0\u4E2A\u6982\u5FF5\u3001\u67E5\u627E\u7279\u5B9A\u4FE1\u606F\u7B49\u3002\u5E94\u8BE5\u6839\u636E\u7528\u6237\u7684\u539F\u59CB\u95EE\u9898\u76F4\u63A5\u8F6C\u8FF0\uFF0C\u4E0D\u8981\u5047\u8BBE\u6587\u6863\u7C7B\u578B",
245194
245206
  type: "string"
245195
245207
  }
245196
245208
  },
@@ -319931,7 +319943,7 @@ init_esbuild_shims();
319931
319943
 
319932
319944
  // packages/cli/src/generated/git-commit.ts
319933
319945
  init_esbuild_shims();
319934
- var GIT_COMMIT_INFO2 = "6e2a664f";
319946
+ var GIT_COMMIT_INFO2 = "76e30f19";
319935
319947
 
319936
319948
  // packages/cli/src/ui/components/AboutBox.tsx
319937
319949
  var import_jsx_runtime43 = __toESM(require_jsx_runtime(), 1);
@@ -342033,7 +342045,7 @@ __name(getPackageJson, "getPackageJson");
342033
342045
  // packages/cli/src/utils/version.ts
342034
342046
  async function getCliVersion() {
342035
342047
  const pkgJson = await getPackageJson();
342036
- return "0.0.18";
342048
+ return "0.0.19-alpha.1";
342037
342049
  }
342038
342050
  __name(getCliVersion, "getCliVersion");
342039
342051
 
@@ -348242,10 +348254,6 @@ __name(isGitRepository2, "isGitRepository");
348242
348254
  function readTemplate() {
348243
348255
  const templatePath = path90.join(
348244
348256
  __dirname10,
348245
- "..",
348246
- "..",
348247
- "..",
348248
- "..",
348249
348257
  "templates",
348250
348258
  "tech-design-template.md"
348251
348259
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rdmind/rdmind",
3
- "version": "0.0.18",
3
+ "version": "0.0.19-alpha.1",
4
4
  "description": "RDMind - AI-powered coding assistant",
5
5
  "type": "module",
6
6
  "main": "cli.js",
@@ -18,7 +18,7 @@
18
18
  "LICENSE"
19
19
  ],
20
20
  "config": {
21
- "sandboxImageUri": "ghcr.io/qwenlm/qwen-code:0.0.18"
21
+ "sandboxImageUri": "ghcr.io/qwenlm/qwen-code:0.0.19-alpha.1"
22
22
  },
23
23
  "publishConfig": {
24
24
  "access": "public"