@rdmind/rdmind 0.2.0-alpha.3 → 0.2.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.
Files changed (2) hide show
  1. package/cli.js +18 -17
  2. package/package.json +2 -2
package/cli.js CHANGED
@@ -157111,7 +157111,7 @@ __export(geminiContentGenerator_exports2, {
157111
157111
  createGeminiContentGenerator: () => createGeminiContentGenerator
157112
157112
  });
157113
157113
  function createGeminiContentGenerator(config2, gcConfig) {
157114
- const version2 = "0.2.0-alpha.3";
157114
+ const version2 = "0.2.0";
157115
157115
  const userAgent2 = config2.userAgent || `QwenCode/${version2} (${process.platform}; ${process.arch})`;
157116
157116
  const baseHeaders = {
157117
157117
  "User-Agent": userAgent2
@@ -237077,8 +237077,8 @@ var init_git_commit = __esm({
237077
237077
  "packages/core/src/generated/git-commit.ts"() {
237078
237078
  "use strict";
237079
237079
  init_esbuild_shims();
237080
- GIT_COMMIT_INFO = "d7d328bf";
237081
- CLI_VERSION = "0.2.0-alpha.3";
237080
+ GIT_COMMIT_INFO = "e9b780db";
237081
+ CLI_VERSION = "0.2.0";
237082
237082
  }
237083
237083
  });
237084
237084
 
@@ -347877,7 +347877,7 @@ __name(getPackageJson, "getPackageJson");
347877
347877
  // packages/cli/src/utils/version.ts
347878
347878
  async function getCliVersion() {
347879
347879
  const pkgJson = await getPackageJson();
347880
- return "0.2.0-alpha.3";
347880
+ return "0.2.0";
347881
347881
  }
347882
347882
  __name(getCliVersion, "getCliVersion");
347883
347883
 
@@ -355979,7 +355979,7 @@ var formatDuration = /* @__PURE__ */ __name((milliseconds) => {
355979
355979
 
355980
355980
  // packages/cli/src/generated/git-commit.ts
355981
355981
  init_esbuild_shims();
355982
- var GIT_COMMIT_INFO2 = "d7d328bf";
355982
+ var GIT_COMMIT_INFO2 = "e9b780db";
355983
355983
 
355984
355984
  // packages/cli/src/utils/systemInfo.ts
355985
355985
  async function getNpmVersion() {
@@ -393681,11 +393681,12 @@ function AuthDialog() {
393681
393681
  label: t4("\u5C0F\u7EA2\u4E66 SSO"),
393682
393682
  value: "xhs-sso" /* XHS_SSO */
393683
393683
  },
393684
- {
393685
- key: "qwen-oauth" /* QWEN_OAUTH */,
393686
- label: t4("Qwen OAuth"),
393687
- value: "qwen-oauth" /* QWEN_OAUTH */
393688
- },
393684
+ // 暂时隐藏 Qwen OAuth
393685
+ // {
393686
+ // key: AuthType.QWEN_OAUTH,
393687
+ // label: t('Qwen OAuth'),
393688
+ // value: AuthType.QWEN_OAUTH,
393689
+ // },
393689
393690
  {
393690
393691
  key: "openai" /* USE_OPENAI */,
393691
393692
  label: t4("OpenAI"),
@@ -393708,11 +393709,9 @@ function AuthDialog() {
393708
393709
  if (defaultAuthType) {
393709
393710
  return item.value === defaultAuthType;
393710
393711
  }
393711
- return item.value === "qwen-oauth" /* QWEN_OAUTH */;
393712
+ return item.value === "xhs-sso" /* XHS_SSO */;
393712
393713
  })
393713
393714
  );
393714
- const hasApiKey = Boolean(config2.getContentGeneratorConfig()?.apiKey);
393715
- const currentSelectedAuthType = selectedIndex !== null ? items[selectedIndex]?.value : items[initialAuthIndex]?.value;
393716
393715
  const handleAuthSelect = /* @__PURE__ */ __name(async (authMethod) => {
393717
393716
  setErrorMessage(null);
393718
393717
  await onAuthSelect(authMethod);
@@ -393762,9 +393761,6 @@ function AuthDialog() {
393762
393761
  ) }),
393763
393762
  (authError || errorMessage) && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(Box_default, { marginTop: 1, children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(Text3, { color: Colors.AccentRed, children: authError || errorMessage }) }),
393764
393763
  /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(Box_default, { marginTop: 1, children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(Text3, { color: Colors.AccentPurple, children: t4("(Use Enter to Set Auth)") }) }),
393765
- hasApiKey && currentSelectedAuthType === "qwen-oauth" /* QWEN_OAUTH */ && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(Box_default, { marginTop: 1, children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(Text3, { color: Colors.Gray, children: t4(
393766
- "Note: Your existing API key in settings.json will not be cleared when using Qwen OAuth. You can switch back to OpenAI authentication later if needed."
393767
- ) }) }),
393768
393764
  /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(Box_default, { marginTop: 1, children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(Text3, { children: t4("Welcome to RDMind") }) }),
393769
393765
  /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(Box_default, { marginTop: 1, children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(Text3, { color: Colors.AccentBlue, children: "https://docs.xiaohongshu.com/doc/03040f132e7201a6b8e95806118a11f3" }) })
393770
393766
  ]
@@ -399179,6 +399175,11 @@ var useAuthCommand = /* @__PURE__ */ __name((settings, config2, addItem) => {
399179
399175
  settings.setValue(scope, "security.auth.baseUrl", void 0);
399180
399176
  settings.setValue(scope, "model.name", void 0);
399181
399177
  }
399178
+ if (previousAuthType && previousAuthType !== "xhs-sso" /* XHS_SSO */ && authType === "xhs-sso" /* XHS_SSO */) {
399179
+ settings.setValue(scope, "security.auth.apiKey", void 0);
399180
+ settings.setValue(scope, "security.auth.baseUrl", void 0);
399181
+ settings.setValue(scope, "model.name", void 0);
399182
+ }
399182
399183
  if (authType === "xhs-sso" /* XHS_SSO */) {
399183
399184
  const creds = readSSOCredentialsSync();
399184
399185
  if (!creds || !creds.rdmind_sso_id) {
@@ -412438,7 +412439,7 @@ var GeminiAgent = class {
412438
412439
  name: APPROVAL_MODE_INFO[mode].name,
412439
412440
  description: APPROVAL_MODE_INFO[mode].description
412440
412441
  }));
412441
- const version2 = "0.2.0-alpha.3";
412442
+ const version2 = "0.2.0";
412442
412443
  return {
412443
412444
  protocolVersion: PROTOCOL_VERSION,
412444
412445
  agentInfo: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rdmind/rdmind",
3
- "version": "0.2.0-alpha.3",
3
+ "version": "0.2.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.2.0-alpha.3"
23
+ "sandboxImageUri": "ghcr.io/qwenlm/qwen-code:0.2.0"
24
24
  },
25
25
  "publishConfig": {
26
26
  "access": "public"