@rdmind/rdmind 0.1.8-alpha.5 → 0.1.8-alpha.6

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 +49 -30
  2. package/package.json +2 -2
package/cli.js CHANGED
@@ -130671,7 +130671,7 @@ __export(geminiContentGenerator_exports, {
130671
130671
  createGeminiContentGenerator: () => createGeminiContentGenerator
130672
130672
  });
130673
130673
  function createGeminiContentGenerator(config2, gcConfig) {
130674
- const version2 = "0.1.8-alpha.5";
130674
+ const version2 = "0.1.8-alpha.6";
130675
130675
  const userAgent2 = config2.userAgent || `QwenCode/${version2} (${process.platform}; ${process.arch})`;
130676
130676
  const baseHeaders = {
130677
130677
  "User-Agent": userAgent2
@@ -199650,6 +199650,19 @@ var init_sse = __esm({
199650
199650
  }
199651
199651
  });
199652
199652
 
199653
+ // packages/core/src/mcp/constants.ts
199654
+ var MCP_OAUTH_CLIENT_NAME, MCP_SA_IMPERSONATION_CLIENT_NAME, OAUTH_REDIRECT_PORT, OAUTH_REDIRECT_PATH;
199655
+ var init_constants5 = __esm({
199656
+ "packages/core/src/mcp/constants.ts"() {
199657
+ "use strict";
199658
+ init_esbuild_shims();
199659
+ MCP_OAUTH_CLIENT_NAME = "Gemini CLI MCP Client";
199660
+ MCP_SA_IMPERSONATION_CLIENT_NAME = "Gemini CLI (Service Account Impersonation)";
199661
+ OAUTH_REDIRECT_PORT = 7777;
199662
+ OAUTH_REDIRECT_PATH = "/oauth/callback";
199663
+ }
199664
+ });
199665
+
199653
199666
  // packages/core/src/mcp/google-auth-provider.ts
199654
199667
  var import_google_auth_library2, ALLOWED_HOSTS, GoogleCredentialProvider;
199655
199668
  var init_google_auth_provider = __esm({
@@ -199657,6 +199670,7 @@ var init_google_auth_provider = __esm({
199657
199670
  "use strict";
199658
199671
  init_esbuild_shims();
199659
199672
  import_google_auth_library2 = __toESM(require_src6(), 1);
199673
+ init_constants5();
199660
199674
  ALLOWED_HOSTS = [/^.+\.googleapis\.com$/, /^(.*\.)?luci\.app$/];
199661
199675
  GoogleCredentialProvider = class {
199662
199676
  constructor(config2) {
@@ -199690,7 +199704,7 @@ var init_google_auth_provider = __esm({
199690
199704
  // Properties required by OAuthClientProvider, with no-op values
199691
199705
  redirectUrl = "";
199692
199706
  clientMetadata = {
199693
- client_name: "Gemini CLI (Google ADC)",
199707
+ client_name: MCP_OAUTH_CLIENT_NAME,
199694
199708
  redirect_uris: [],
199695
199709
  grant_types: [],
199696
199710
  response_types: [],
@@ -199739,6 +199753,7 @@ var init_sa_impersonation_provider = __esm({
199739
199753
  "use strict";
199740
199754
  init_esbuild_shims();
199741
199755
  import_google_auth_library3 = __toESM(require_src6(), 1);
199756
+ init_constants5();
199742
199757
  fiveMinBufferMs = 5 * 60 * 1e3;
199743
199758
  __name(createIamApiUrl, "createIamApiUrl");
199744
199759
  ServiceAccountImpersonationProvider = class {
@@ -199775,7 +199790,7 @@ var init_sa_impersonation_provider = __esm({
199775
199790
  // Properties required by OAuthClientProvider, with no-op values
199776
199791
  redirectUrl = "";
199777
199792
  clientMetadata = {
199778
- client_name: "Gemini CLI (Service Account Impersonation)",
199793
+ client_name: MCP_SA_IMPERSONATION_CLIENT_NAME,
199779
199794
  redirect_uris: [],
199780
199795
  grant_types: [],
199781
199796
  response_types: [],
@@ -201046,7 +201061,7 @@ var init_oauth_utils = __esm({
201046
201061
  import * as http4 from "node:http";
201047
201062
  import * as crypto11 from "node:crypto";
201048
201063
  import { URL as URL3 } from "node:url";
201049
- var OAUTH_DISPLAY_MESSAGE_EVENT, REDIRECT_PORT, REDIRECT_PATH, HTTP_OK, MCPOAuthProvider;
201064
+ var OAUTH_DISPLAY_MESSAGE_EVENT, HTTP_OK, MCPOAuthProvider;
201050
201065
  var init_oauth_provider = __esm({
201051
201066
  "packages/core/src/mcp/oauth-provider.ts"() {
201052
201067
  "use strict";
@@ -201055,9 +201070,8 @@ var init_oauth_provider = __esm({
201055
201070
  init_oauth_token_storage();
201056
201071
  init_errors();
201057
201072
  init_oauth_utils();
201073
+ init_constants5();
201058
201074
  OAUTH_DISPLAY_MESSAGE_EVENT = "oauth-display-message";
201059
- REDIRECT_PORT = 7777;
201060
- REDIRECT_PATH = "/oauth/callback";
201061
201075
  HTTP_OK = 200;
201062
201076
  MCPOAuthProvider = class {
201063
201077
  static {
@@ -201075,9 +201089,9 @@ var init_oauth_provider = __esm({
201075
201089
  * @returns The registered client information
201076
201090
  */
201077
201091
  async registerClient(registrationUrl, config2) {
201078
- const redirectUri = config2.redirectUri || `http://localhost:${REDIRECT_PORT}${REDIRECT_PATH}`;
201092
+ const redirectUri = config2.redirectUri || `http://localhost:${OAUTH_REDIRECT_PORT}${OAUTH_REDIRECT_PATH}`;
201079
201093
  const registrationRequest = {
201080
- client_name: "Gemini CLI (Google ADC)",
201094
+ client_name: MCP_OAUTH_CLIENT_NAME,
201081
201095
  redirect_uris: [redirectUri],
201082
201096
  grant_types: ["authorization_code", "refresh_token"],
201083
201097
  response_types: ["code"],
@@ -201132,8 +201146,11 @@ var init_oauth_provider = __esm({
201132
201146
  const server = http4.createServer(
201133
201147
  async (req, res) => {
201134
201148
  try {
201135
- const url2 = new URL3(req.url, `http://localhost:${REDIRECT_PORT}`);
201136
- if (url2.pathname !== REDIRECT_PATH) {
201149
+ const url2 = new URL3(
201150
+ req.url,
201151
+ `http://localhost:${OAUTH_REDIRECT_PORT}`
201152
+ );
201153
+ if (url2.pathname !== OAUTH_REDIRECT_PATH) {
201137
201154
  res.writeHead(404);
201138
201155
  res.end("Not found");
201139
201156
  return;
@@ -201188,8 +201205,10 @@ var init_oauth_provider = __esm({
201188
201205
  }
201189
201206
  );
201190
201207
  server.on("error", reject);
201191
- server.listen(REDIRECT_PORT, () => {
201192
- console.log(`OAuth callback server listening on port ${REDIRECT_PORT}`);
201208
+ server.listen(OAUTH_REDIRECT_PORT, () => {
201209
+ console.log(
201210
+ `OAuth callback server listening on port ${OAUTH_REDIRECT_PORT}`
201211
+ );
201193
201212
  });
201194
201213
  setTimeout(
201195
201214
  () => {
@@ -201209,7 +201228,7 @@ var init_oauth_provider = __esm({
201209
201228
  * @returns The authorization URL
201210
201229
  */
201211
201230
  buildAuthorizationUrl(config2, pkceParams, mcpServerUrl) {
201212
- const redirectUri = config2.redirectUri || `http://localhost:${REDIRECT_PORT}${REDIRECT_PATH}`;
201231
+ const redirectUri = config2.redirectUri || `http://localhost:${OAUTH_REDIRECT_PORT}${OAUTH_REDIRECT_PATH}`;
201213
201232
  const params = new URLSearchParams({
201214
201233
  client_id: config2.clientId,
201215
201234
  response_type: "code",
@@ -201252,7 +201271,7 @@ var init_oauth_provider = __esm({
201252
201271
  * @returns The token response
201253
201272
  */
201254
201273
  async exchangeCodeForToken(config2, code2, codeVerifier, mcpServerUrl) {
201255
- const redirectUri = config2.redirectUri || `http://localhost:${REDIRECT_PORT}${REDIRECT_PATH}`;
201274
+ const redirectUri = config2.redirectUri || `http://localhost:${OAUTH_REDIRECT_PORT}${OAUTH_REDIRECT_PATH}`;
201256
201275
  const params = new URLSearchParams({
201257
201276
  grant_type: "authorization_code",
201258
201277
  code: code2,
@@ -221659,8 +221678,8 @@ var init_git_commit = __esm({
221659
221678
  "packages/core/src/generated/git-commit.ts"() {
221660
221679
  "use strict";
221661
221680
  init_esbuild_shims();
221662
- GIT_COMMIT_INFO = "3f561959";
221663
- CLI_VERSION = "0.1.8-alpha.5";
221681
+ GIT_COMMIT_INFO = "07a52a0d";
221682
+ CLI_VERSION = "0.1.8-alpha.6";
221664
221683
  }
221665
221684
  });
221666
221685
 
@@ -271595,7 +271614,7 @@ var init_make_command = __esm({
271595
271614
  // node_modules/minizlib/dist/esm/constants.js
271596
271615
  import realZlib from "zlib";
271597
271616
  var realZlibConstants, constants3;
271598
- var init_constants5 = __esm({
271617
+ var init_constants6 = __esm({
271599
271618
  "node_modules/minizlib/dist/esm/constants.js"() {
271600
271619
  init_esbuild_shims();
271601
271620
  realZlibConstants = realZlib.constants || { ZLIB_VERNUM: 4736 };
@@ -271719,8 +271738,8 @@ var init_esm19 = __esm({
271719
271738
  "node_modules/minizlib/dist/esm/index.js"() {
271720
271739
  init_esbuild_shims();
271721
271740
  init_esm7();
271722
- init_constants5();
271723
- init_constants5();
271741
+ init_constants6();
271742
+ init_constants6();
271724
271743
  OriginalBufferConcat = Buffer6.concat;
271725
271744
  desc = Object.getOwnPropertyDescriptor(Buffer6, "concat");
271726
271745
  noop5 = /* @__PURE__ */ __name((args) => args, "noop");
@@ -319959,7 +319978,7 @@ var patchConsole = /* @__PURE__ */ __name((callback) => {
319959
319978
  var dist_default2 = patchConsole;
319960
319979
 
319961
319980
  // node_modules/ink/build/ink.js
319962
- var import_constants21 = __toESM(require_constants11(), 1);
319981
+ var import_constants24 = __toESM(require_constants11(), 1);
319963
319982
 
319964
319983
  // node_modules/yoga-layout/dist/src/index.js
319965
319984
  init_esbuild_shims();
@@ -322022,7 +322041,7 @@ __name(wrapAnsi, "wrapAnsi");
322022
322041
  // node_modules/ink/build/reconciler.js
322023
322042
  init_esbuild_shims();
322024
322043
  var import_react_reconciler = __toESM(require_react_reconciler(), 1);
322025
- var import_constants20 = __toESM(require_constants11(), 1);
322044
+ var import_constants23 = __toESM(require_constants11(), 1);
322026
322045
  import process15 from "node:process";
322027
322046
  var import_react = __toESM(require_react(), 1);
322028
322047
 
@@ -322993,7 +323012,7 @@ var cleanupYogaNode = /* @__PURE__ */ __name((node) => {
322993
323012
  node?.unsetMeasureFunc();
322994
323013
  node?.freeRecursive();
322995
323014
  }, "cleanupYogaNode");
322996
- var currentUpdatePriority = import_constants20.NoEventPriority;
323015
+ var currentUpdatePriority = import_constants23.NoEventPriority;
322997
323016
  var currentRootNode;
322998
323017
  var reconciler_default = (0, import_react_reconciler.default)({
322999
323018
  getRootHostContext: /* @__PURE__ */ __name(() => ({
@@ -323150,10 +323169,10 @@ var reconciler_default = (0, import_react_reconciler.default)({
323150
323169
  },
323151
323170
  getCurrentUpdatePriority: /* @__PURE__ */ __name(() => currentUpdatePriority, "getCurrentUpdatePriority"),
323152
323171
  resolveUpdatePriority() {
323153
- if (currentUpdatePriority !== import_constants20.NoEventPriority) {
323172
+ if (currentUpdatePriority !== import_constants23.NoEventPriority) {
323154
323173
  return currentUpdatePriority;
323155
323174
  }
323156
- return import_constants20.DefaultEventPriority;
323175
+ return import_constants23.DefaultEventPriority;
323157
323176
  },
323158
323177
  maySuspendCommit() {
323159
323178
  return false;
@@ -325671,7 +325690,7 @@ var Ink = class {
325671
325690
  this.fullStaticOutput = "";
325672
325691
  this.container = reconciler_default.createContainer(
325673
325692
  this.rootNode,
325674
- import_constants21.LegacyRoot,
325693
+ import_constants24.LegacyRoot,
325675
325694
  null,
325676
325695
  false,
325677
325696
  null,
@@ -332068,7 +332087,7 @@ __name(getPackageJson, "getPackageJson");
332068
332087
  // packages/cli/src/utils/version.ts
332069
332088
  async function getCliVersion() {
332070
332089
  const pkgJson = await getPackageJson();
332071
- return "0.1.8-alpha.5";
332090
+ return "0.1.8-alpha.6";
332072
332091
  }
332073
332092
  __name(getCliVersion, "getCliVersion");
332074
332093
 
@@ -339833,7 +339852,7 @@ var formatDuration = /* @__PURE__ */ __name((milliseconds) => {
339833
339852
 
339834
339853
  // packages/cli/src/generated/git-commit.ts
339835
339854
  init_esbuild_shims();
339836
- var GIT_COMMIT_INFO2 = "3f561959";
339855
+ var GIT_COMMIT_INFO2 = "07a52a0d";
339837
339856
 
339838
339857
  // packages/cli/src/utils/systemInfo.ts
339839
339858
  async function getNpmVersion() {
@@ -340368,7 +340387,7 @@ function validateProjectName(name3) {
340368
340387
  }
340369
340388
  __name(validateProjectName, "validateProjectName");
340370
340389
  function validateIdlProjectName(name3) {
340371
- return /^[a-z][a-z0-9]*$/.test(name3);
340390
+ return /^[a-z][a-z0-9-]*[a-z0-9]$|^[a-z]$/.test(name3);
340372
340391
  }
340373
340392
  __name(validateIdlProjectName, "validateIdlProjectName");
340374
340393
  function getIdlExamplePath() {
@@ -340820,7 +340839,7 @@ async function createIdlCommand(context2, projectName) {
340820
340839
  context2.ui.addItem(
340821
340840
  {
340822
340841
  type: "error" /* ERROR */,
340823
- text: "\u274C IDL\u9879\u76EE\u540D\u79F0\u65E0\u6548\u3002\n\u2022 \u53EA\u80FD\u5305\u542B\u5C0F\u5199\u5B57\u6BCD\u548C\u6570\u5B57\n\u2022 \u4E0D\u80FD\u5305\u542B\u4EFB\u4F55\u7279\u6B8A\u7B26\u53F7\uFF08\u8FDE\u5B57\u7B26\u3001\u4E0B\u5212\u7EBF\u3001\u70B9\u7B49\uFF09\n\u2022 \u4E0D\u80FD\u4EE5\u6570\u5B57\u5F00\u5934"
340842
+ text: "\u274C IDL\u9879\u76EE\u540D\u79F0\u65E0\u6548\u3002\n\u2022 \u53EA\u80FD\u5305\u542B\u5C0F\u5199\u5B57\u6BCD\u3001\u6570\u5B57\u548C\u8FDE\u5B57\u7B26\n\u2022 \u4E0D\u80FD\u5305\u542B\u5176\u4ED6\u7279\u6B8A\u7B26\u53F7\uFF08\u4E0B\u5212\u7EBF\u3001\u70B9\u7B49\uFF09\n\u2022 \u4E0D\u80FD\u4EE5\u6570\u5B57\u6216\u8FDE\u5B57\u7B26\u5F00\u5934\n\u2022 \u4E0D\u80FD\u4EE5\u8FDE\u5B57\u7B26\u7ED3\u5C3E"
340824
340843
  },
340825
340844
  Date.now()
340826
340845
  );
@@ -395753,7 +395772,7 @@ var GeminiAgent = class {
395753
395772
  name: APPROVAL_MODE_INFO[mode].name,
395754
395773
  description: APPROVAL_MODE_INFO[mode].description
395755
395774
  }));
395756
- const version2 = "0.1.8-alpha.5";
395775
+ const version2 = "0.1.8-alpha.6";
395757
395776
  return {
395758
395777
  protocolVersion: PROTOCOL_VERSION,
395759
395778
  agentInfo: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rdmind/rdmind",
3
- "version": "0.1.8-alpha.5",
3
+ "version": "0.1.8-alpha.6",
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.8-alpha.5"
23
+ "sandboxImageUri": "ghcr.io/qwenlm/qwen-code:0.1.8-alpha.6"
24
24
  },
25
25
  "publishConfig": {
26
26
  "access": "public"