@rdmind/rdmind 0.1.9-alpha.1 → 0.1.9-alpha.2
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 +22 -17
- package/package.json +2 -2
package/cli.js
CHANGED
|
@@ -156107,7 +156107,7 @@ __export(geminiContentGenerator_exports2, {
|
|
|
156107
156107
|
createGeminiContentGenerator: () => createGeminiContentGenerator
|
|
156108
156108
|
});
|
|
156109
156109
|
function createGeminiContentGenerator(config2, gcConfig) {
|
|
156110
|
-
const version2 = "0.1.9-alpha.
|
|
156110
|
+
const version2 = "0.1.9-alpha.2";
|
|
156111
156111
|
const userAgent2 = config2.userAgent || `QwenCode/${version2} (${process.platform}; ${process.arch})`;
|
|
156112
156112
|
const baseHeaders = {
|
|
156113
156113
|
"User-Agent": userAgent2
|
|
@@ -233811,7 +233811,7 @@ var init_git_commit = __esm({
|
|
|
233811
233811
|
"use strict";
|
|
233812
233812
|
init_esbuild_shims();
|
|
233813
233813
|
GIT_COMMIT_INFO = "94f47fed";
|
|
233814
|
-
CLI_VERSION = "0.1.9-alpha.
|
|
233814
|
+
CLI_VERSION = "0.1.9-alpha.2";
|
|
233815
233815
|
}
|
|
233816
233816
|
});
|
|
233817
233817
|
|
|
@@ -344140,7 +344140,7 @@ __name(getPackageJson, "getPackageJson");
|
|
|
344140
344140
|
// packages/cli/src/utils/version.ts
|
|
344141
344141
|
async function getCliVersion() {
|
|
344142
344142
|
const pkgJson = await getPackageJson();
|
|
344143
|
-
return "0.1.9-alpha.
|
|
344143
|
+
return "0.1.9-alpha.2";
|
|
344144
344144
|
}
|
|
344145
344145
|
__name(getCliVersion, "getCliVersion");
|
|
344146
344146
|
|
|
@@ -353081,14 +353081,15 @@ function getTemplatePath() {
|
|
|
353081
353081
|
}
|
|
353082
353082
|
__name(getTemplatePath, "getTemplatePath");
|
|
353083
353083
|
function replaceIdlProjectNames(content, oldName, newName) {
|
|
353084
|
-
const artifactId = newName.replace(/
|
|
353085
|
-
|
|
353084
|
+
const artifactId = newName.replace(/[-_]idl$/, "").replace(/_/g, "-");
|
|
353085
|
+
const packageName = newName.replace(/[-_]idl$/, "");
|
|
353086
|
+
return content.replace(new RegExp(`<artifactId>${oldName}-api</artifactId>`, "g"), `<artifactId>${artifactId}-api</artifactId>`).replace(new RegExp(`<artifactId>${oldName}</artifactId>`, "g"), `<artifactId>${artifactId}</artifactId>`).replace(
|
|
353086
353087
|
new RegExp(`com\\.xiaohongshu\\.sns\\.demo`, "g"),
|
|
353087
|
-
`com.xiaohongshu.sns.${
|
|
353088
|
-
).replace(new RegExp(`/demo/`, "g"), `/${
|
|
353088
|
+
`com.xiaohongshu.sns.${packageName}`
|
|
353089
|
+
).replace(new RegExp(`/demo/`, "g"), `/${packageName}/`).replace(
|
|
353089
353090
|
new RegExp(`com\\.xiaohongshu\\.sns\\.rpc\\.${oldName}`, "g"),
|
|
353090
|
-
`com.xiaohongshu.sns.rpc.${
|
|
353091
|
-
).replace(new RegExp(`${oldName}Service`, "g"), `${
|
|
353091
|
+
`com.xiaohongshu.sns.rpc.${packageName}`
|
|
353092
|
+
).replace(new RegExp(`${oldName}Service`, "g"), `${packageName}Service`).replace(new RegExp(`${oldName}Request`, "g"), `${packageName}Request`).replace(new RegExp(`${oldName}Response`, "g"), `${packageName}Response`).replace(new RegExp(oldName, "g"), packageName);
|
|
353092
353093
|
}
|
|
353093
353094
|
__name(replaceIdlProjectNames, "replaceIdlProjectNames");
|
|
353094
353095
|
function replaceProjectNames(content, oldName, newName, businessModule) {
|
|
@@ -353242,13 +353243,10 @@ async function copyAndReplaceDir(srcDir, destDir, oldName, newName, businessModu
|
|
|
353242
353243
|
}
|
|
353243
353244
|
} else if (item === "sns") {
|
|
353244
353245
|
destItemName = businessModule;
|
|
353245
|
-
} else if (item === "service.thrift" && isIdlProject) {
|
|
353246
|
-
destItemName = `${newName}.thrift`;
|
|
353247
|
-
} else if (item === "hello.thrift") {
|
|
353248
|
-
destItemName = `${newName}.thrift`;
|
|
353249
353246
|
} else {
|
|
353250
353247
|
if (isIdlProject) {
|
|
353251
|
-
|
|
353248
|
+
const packageName = newName.replace(/[-_]idl$/, "");
|
|
353249
|
+
destItemName = item.replace(/demo/g, packageName);
|
|
353252
353250
|
} else {
|
|
353253
353251
|
destItemName = item.replace(/sns-demo/g, newName);
|
|
353254
353252
|
}
|
|
@@ -353470,7 +353468,7 @@ async function createIdlProject(context2, projectName) {
|
|
|
353470
353468
|
true
|
|
353471
353469
|
// 标记为IDL项目
|
|
353472
353470
|
);
|
|
353473
|
-
const searchKeyword = projectName.replace(/
|
|
353471
|
+
const searchKeyword = projectName.replace(/[-_]idl$/, "").replace(/_/g, "-");
|
|
353474
353472
|
context2.ui.addItem(
|
|
353475
353473
|
{
|
|
353476
353474
|
type: "info" /* INFO */,
|
|
@@ -353484,8 +353482,15 @@ ${projectDirectoryName}/
|
|
|
353484
353482
|
\u251C\u2500\u2500 .gitignore
|
|
353485
353483
|
\u251C\u2500\u2500 .gitlab-ci.yml
|
|
353486
353484
|
\u251C\u2500\u2500 gen-java.sh
|
|
353487
|
-
\u251C\u2500\u2500
|
|
353485
|
+
\u251C\u2500\u2500 base.thrift
|
|
353486
|
+
\u251C\u2500\u2500 common.thrift
|
|
353487
|
+
\u251C\u2500\u2500 dto.thrift
|
|
353488
|
+
\u251C\u2500\u2500 enum.thrift
|
|
353489
|
+
\u251C\u2500\u2500 req.thrift
|
|
353490
|
+
\u251C\u2500\u2500 res.thrift
|
|
353491
|
+
\u251C\u2500\u2500 service.thrift
|
|
353488
353492
|
\u251C\u2500\u2500 maven_project/
|
|
353493
|
+
\u2502 \u2514\u2500\u2500 pom.xml
|
|
353489
353494
|
\u251C\u2500\u2500 sdk-spec.yml
|
|
353490
353495
|
\u2514\u2500\u2500 README.md
|
|
353491
353496
|
|
|
@@ -408402,7 +408407,7 @@ var GeminiAgent = class {
|
|
|
408402
408407
|
name: APPROVAL_MODE_INFO[mode].name,
|
|
408403
408408
|
description: APPROVAL_MODE_INFO[mode].description
|
|
408404
408409
|
}));
|
|
408405
|
-
const version2 = "0.1.9-alpha.
|
|
408410
|
+
const version2 = "0.1.9-alpha.2";
|
|
408406
408411
|
return {
|
|
408407
408412
|
protocolVersion: PROTOCOL_VERSION,
|
|
408408
408413
|
agentInfo: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rdmind/rdmind",
|
|
3
|
-
"version": "0.1.9-alpha.
|
|
3
|
+
"version": "0.1.9-alpha.2",
|
|
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.9-alpha.
|
|
23
|
+
"sandboxImageUri": "ghcr.io/qwenlm/qwen-code:0.1.9-alpha.2"
|
|
24
24
|
},
|
|
25
25
|
"publishConfig": {
|
|
26
26
|
"access": "public"
|