@rdmind/rdmind 0.0.28-alpha.4 → 0.0.28-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.
Files changed (2) hide show
  1. package/cli.js +40 -9
  2. package/package.json +2 -2
package/cli.js CHANGED
@@ -26795,7 +26795,7 @@ var require_backend = __commonJS({
26795
26795
  });
26796
26796
  return a;
26797
26797
  }, "useCallback"),
26798
- useContext: /* @__PURE__ */ __name(function useContext22(a) {
26798
+ useContext: /* @__PURE__ */ __name(function useContext23(a) {
26799
26799
  x.push({
26800
26800
  primitive: "Context",
26801
26801
  stackError: Error(),
@@ -184661,7 +184661,7 @@ function createContentGeneratorConfig(config, authType, generationConfig) {
184661
184661
  };
184662
184662
  }
184663
184663
  async function createContentGenerator(config, gcConfig, sessionId2, isInitialAuth) {
184664
- const version2 = "0.0.28-alpha.4";
184664
+ const version2 = "0.0.28-alpha.5";
184665
184665
  const userAgent2 = `QwenCode/${version2} (${process.platform}; ${process.arch})`;
184666
184666
  const baseHeaders = {
184667
184667
  "User-Agent": userAgent2
@@ -251332,8 +251332,8 @@ var init_xhsSSOAuth = __esm({
251332
251332
  DEFAULT_TIMEOUT_MS = 1e4;
251333
251333
  DEFAULT_API_TIMEOUT_MS = 5e3;
251334
251334
  COMPANY_DEFAULT_CONFIG = {
251335
- baseUrl: "https://runway.devops.xiaohongshu.com/openai/moonshot/v1",
251336
- model: "kimi-k2-turbo-preview"
251335
+ baseUrl: "https://runway.devops.xiaohongshu.com/openai/qwen/v1",
251336
+ model: "qwen3-coder-plus"
251337
251337
  };
251338
251338
  ssoAuthEvents = new EventEmitter8();
251339
251339
  __name(getRequestSSOId, "getRequestSSOId");
@@ -259069,8 +259069,8 @@ var init_git_commit = __esm({
259069
259069
  "packages/core/src/generated/git-commit.ts"() {
259070
259070
  "use strict";
259071
259071
  init_esbuild_shims();
259072
- GIT_COMMIT_INFO = "a0e0781";
259073
- CLI_VERSION = "0.0.28-alpha.4";
259072
+ GIT_COMMIT_INFO = "6276d44";
259073
+ CLI_VERSION = "0.0.28-alpha.5";
259074
259074
  }
259075
259075
  });
259076
259076
 
@@ -337237,7 +337237,7 @@ function AuthDialog() {
337237
337237
  (authError || errorMessage) && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Box_default, { marginTop: 1, children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Text, { color: Colors.AccentRed, children: authError || errorMessage }) }),
337238
337238
  /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Box_default, { marginTop: 1, children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Text, { color: Colors.AccentPurple, children: "(Use Enter to Set Auth)" }) }),
337239
337239
  hasApiKey && currentSelectedAuthType === "qwen-oauth" /* QWEN_OAUTH */ && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Box_default, { marginTop: 1, children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Text, { color: Colors.Gray, children: "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." }) }),
337240
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Box_default, { marginTop: 1, children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Text, { children: "Terms of Services and Privacy Notice for RDMind" }) }),
337240
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Box_default, { marginTop: 1, children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Text, { children: "Welcome to RDMind" }) }),
337241
337241
  /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Box_default, { marginTop: 1, children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Text, { color: Colors.AccentBlue, children: "https://docs.xiaohongshu.com/doc/03040f132e7201a6b8e95806118a11f3" }) })
337242
337242
  ]
337243
337243
  }
@@ -337867,6 +337867,7 @@ function XhsSsoModelConfigFlow({
337867
337867
  onCancel,
337868
337868
  rdmindSsoId
337869
337869
  }) {
337870
+ const config = (0, import_react81.useContext)(ConfigContext);
337870
337871
  const [isLoading, setIsLoading] = (0, import_react81.useState)(false);
337871
337872
  const [error, setError] = (0, import_react81.useState)(null);
337872
337873
  useKeypress(
@@ -337886,6 +337887,19 @@ function XhsSsoModelConfigFlow({
337886
337887
  })),
337887
337888
  []
337888
337889
  );
337890
+ const currentModel = config?.getModel();
337891
+ const initialIndex = (0, import_react81.useMemo)(
337892
+ () => {
337893
+ if (!currentModel) {
337894
+ return 0;
337895
+ }
337896
+ const index = XHS_SSO_MODELS.findIndex(
337897
+ (model) => model.id === currentModel
337898
+ );
337899
+ return index >= 0 ? index : 0;
337900
+ },
337901
+ [currentModel]
337902
+ );
337889
337903
  if (!rdmindSsoId) {
337890
337904
  return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
337891
337905
  Box_default,
@@ -337946,6 +337960,7 @@ function XhsSsoModelConfigFlow({
337946
337960
  {
337947
337961
  items: modelItems,
337948
337962
  onSelect: handleModelSelect,
337963
+ initialIndex,
337949
337964
  isFocused: true
337950
337965
  }
337951
337966
  ),
@@ -347350,7 +347365,7 @@ __name(getPackageJson, "getPackageJson");
347350
347365
  // packages/cli/src/utils/version.ts
347351
347366
  async function getCliVersion() {
347352
347367
  const pkgJson = await getPackageJson();
347353
- return "0.0.28-alpha.4";
347368
+ return "0.0.28-alpha.5";
347354
347369
  }
347355
347370
  __name(getCliVersion, "getCliVersion");
347356
347371
 
@@ -348841,6 +348856,15 @@ var useAuthCommand = /* @__PURE__ */ __name((settings, config, addItem) => {
348841
348856
  onSuccess: /* @__PURE__ */ __name(() => {
348842
348857
  setPendingAuthType(void 0);
348843
348858
  setIsAuthenticating(false);
348859
+ const authEvent = new AuthEvent(authType, "manual", "success");
348860
+ logAuth(config, authEvent);
348861
+ addItem(
348862
+ {
348863
+ type: "info" /* INFO */,
348864
+ text: `Authenticated successfully with ${authType} credentials.`
348865
+ },
348866
+ Date.now()
348867
+ );
348844
348868
  }, "onSuccess")
348845
348869
  });
348846
348870
  } catch (error) {
@@ -348877,6 +348901,13 @@ var useAuthCommand = /* @__PURE__ */ __name((settings, config, addItem) => {
348877
348901
  setIsAuthenticating(false);
348878
348902
  const authEvent = new AuthEvent(authType, "manual", "success");
348879
348903
  logAuth(config, authEvent);
348904
+ addItem(
348905
+ {
348906
+ type: "info" /* INFO */,
348907
+ text: `Authenticated successfully with ${authType} credentials.`
348908
+ },
348909
+ Date.now()
348910
+ );
348880
348911
  } catch (error) {
348881
348912
  handleAuthFailure(error);
348882
348913
  }
@@ -349667,7 +349698,7 @@ init_core2();
349667
349698
 
349668
349699
  // packages/cli/src/generated/git-commit.ts
349669
349700
  init_esbuild_shims();
349670
- var GIT_COMMIT_INFO2 = "a0e0781";
349701
+ var GIT_COMMIT_INFO2 = "6276d44";
349671
349702
 
349672
349703
  // packages/cli/src/utils/systemInfo.ts
349673
349704
  async function getNpmVersion() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rdmind/rdmind",
3
- "version": "0.0.28-alpha.4",
3
+ "version": "0.0.28-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
  "LICENSE"
20
20
  ],
21
21
  "config": {
22
- "sandboxImageUri": "ghcr.io/qwenlm/qwen-code:0.0.28-alpha.4"
22
+ "sandboxImageUri": "ghcr.io/qwenlm/qwen-code:0.0.28-alpha.5"
23
23
  },
24
24
  "publishConfig": {
25
25
  "access": "public"