@rdmind/rdmind 0.1.9-alpha.0 → 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 +23 -16
- package/package.json +2 -2
- package/template/sns-demo-start/src/main/resources/logback-spring.xml +15 -15
- package/templates/idl-template/wiki/example/maven_project/pom.xml +98 -98
- package/template/sns-demo-start/src/main/java/com/xiaohongshu/sns/demo/start/provider/.gitkeep +0 -0
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,13 +353081,15 @@ function getTemplatePath() {
|
|
|
353081
353081
|
}
|
|
353082
353082
|
__name(getTemplatePath, "getTemplatePath");
|
|
353083
353083
|
function replaceIdlProjectNames(content, oldName, newName) {
|
|
353084
|
-
|
|
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(
|
|
353085
353087
|
new RegExp(`com\\.xiaohongshu\\.sns\\.demo`, "g"),
|
|
353086
|
-
`com.xiaohongshu.sns.${
|
|
353087
|
-
).replace(new RegExp(`/demo/`, "g"), `/${
|
|
353088
|
+
`com.xiaohongshu.sns.${packageName}`
|
|
353089
|
+
).replace(new RegExp(`/demo/`, "g"), `/${packageName}/`).replace(
|
|
353088
353090
|
new RegExp(`com\\.xiaohongshu\\.sns\\.rpc\\.${oldName}`, "g"),
|
|
353089
|
-
`com.xiaohongshu.sns.rpc.${
|
|
353090
|
-
).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);
|
|
353091
353093
|
}
|
|
353092
353094
|
__name(replaceIdlProjectNames, "replaceIdlProjectNames");
|
|
353093
353095
|
function replaceProjectNames(content, oldName, newName, businessModule) {
|
|
@@ -353241,13 +353243,10 @@ async function copyAndReplaceDir(srcDir, destDir, oldName, newName, businessModu
|
|
|
353241
353243
|
}
|
|
353242
353244
|
} else if (item === "sns") {
|
|
353243
353245
|
destItemName = businessModule;
|
|
353244
|
-
} else if (item === "service.thrift" && isIdlProject) {
|
|
353245
|
-
destItemName = `${newName}.thrift`;
|
|
353246
|
-
} else if (item === "hello.thrift") {
|
|
353247
|
-
destItemName = `${newName}.thrift`;
|
|
353248
353246
|
} else {
|
|
353249
353247
|
if (isIdlProject) {
|
|
353250
|
-
|
|
353248
|
+
const packageName = newName.replace(/[-_]idl$/, "");
|
|
353249
|
+
destItemName = item.replace(/demo/g, packageName);
|
|
353251
353250
|
} else {
|
|
353252
353251
|
destItemName = item.replace(/sns-demo/g, newName);
|
|
353253
353252
|
}
|
|
@@ -353469,6 +353468,7 @@ async function createIdlProject(context2, projectName) {
|
|
|
353469
353468
|
true
|
|
353470
353469
|
// 标记为IDL项目
|
|
353471
353470
|
);
|
|
353471
|
+
const searchKeyword = projectName.replace(/[-_]idl$/, "").replace(/_/g, "-");
|
|
353472
353472
|
context2.ui.addItem(
|
|
353473
353473
|
{
|
|
353474
353474
|
type: "info" /* INFO */,
|
|
@@ -353482,8 +353482,15 @@ ${projectDirectoryName}/
|
|
|
353482
353482
|
\u251C\u2500\u2500 .gitignore
|
|
353483
353483
|
\u251C\u2500\u2500 .gitlab-ci.yml
|
|
353484
353484
|
\u251C\u2500\u2500 gen-java.sh
|
|
353485
|
-
\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
|
|
353486
353492
|
\u251C\u2500\u2500 maven_project/
|
|
353493
|
+
\u2502 \u2514\u2500\u2500 pom.xml
|
|
353487
353494
|
\u251C\u2500\u2500 sdk-spec.yml
|
|
353488
353495
|
\u2514\u2500\u2500 README.md
|
|
353489
353496
|
|
|
@@ -353493,7 +353500,7 @@ ${projectDirectoryName}/
|
|
|
353493
353500
|
2. \u53C2\u8003\u6587\u6863\u914D\u7F6E\u6D41\u6C34\u7EBF: https://docs.xiaohongshu.com/doc/57be8d2fb7c584798d5b6135060b2c94
|
|
353494
353501
|
3. \u8FD0\u884C\u6D41\u6C34\u7EBF\u6210\u529F\u540E\u53EF\u5728\u4EE5\u4E0B\u5730\u5740\u641C\u7D22\u83B7\u53D6maven\u5305:
|
|
353495
353502
|
https://artifactory.devops.xiaohongshu.com/ui/packages/
|
|
353496
|
-
\u641C\u7D22\u5173\u952E\u8BCD: "${
|
|
353503
|
+
\u641C\u7D22\u5173\u952E\u8BCD: "${searchKeyword}-sdk"
|
|
353497
353504
|
\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500`
|
|
353498
353505
|
},
|
|
353499
353506
|
Date.now()
|
|
@@ -408400,7 +408407,7 @@ var GeminiAgent = class {
|
|
|
408400
408407
|
name: APPROVAL_MODE_INFO[mode].name,
|
|
408401
408408
|
description: APPROVAL_MODE_INFO[mode].description
|
|
408402
408409
|
}));
|
|
408403
|
-
const version2 = "0.1.9-alpha.
|
|
408410
|
+
const version2 = "0.1.9-alpha.2";
|
|
408404
408411
|
return {
|
|
408405
408412
|
protocolVersion: PROTOCOL_VERSION,
|
|
408406
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"
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<configuration>
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
<property name="LOG_LEVEL" value="INFO"/>
|
|
4
|
+
<include resource="logback-xray-base.xml"/>
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
6
|
+
<logger name="org.apache.ibatis" level="INFO"></logger>
|
|
7
|
+
<logger name="org.apache.catalina" level="ERROR"></logger>
|
|
8
|
+
<logger name="org.apache.zookeeper" level="INFO"></logger>
|
|
9
|
+
<logger name="org.springframework" level="INFO"></logger>
|
|
10
|
+
<logger name="com.xiaohongshu.infra" level="ERROR"></logger>
|
|
11
|
+
<logger name="com.xiaohongshu.racing" level="WARN"></logger>
|
|
12
|
+
<logger name="com.dianping.cat" level="INFO"></logger>
|
|
13
|
+
<logger name="red.midware.shaded" level="INFO"></logger>
|
|
14
|
+
<logger name="com.xiaohongshu.infra.xds.cds.CDSSharedStubWrapper" level="ERROR"></logger>
|
|
15
|
+
<logger name="events" level="INFO"></logger>
|
|
16
|
+
<logger name="com.zaxxer.hikari.HikariConfig" level="WARN"></logger>
|
|
17
|
+
<logger name="com.zaxxer.hikari.HikariDataSource" level="WARN"></logger>
|
|
18
|
+
<logger name="com.xiaohongshu.infra.rpc.core.registry.eds.MultiRegionsEdsThriftAddressSubscriberProvider" level="off"/>
|
|
19
19
|
</configuration>
|
|
@@ -1,114 +1,114 @@
|
|
|
1
1
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
|
2
2
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
3
3
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
|
4
|
-
|
|
4
|
+
<modelVersion>4.0.0</modelVersion>
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
<groupId>com.xiaohongshu.sns</groupId>
|
|
7
|
+
<artifactId>demo-api</artifactId>
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
<!-- 无须动,ci的时候会自动覆盖的 -->
|
|
10
|
+
<version>${sdk.version}</version>
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
12
|
+
<properties>
|
|
13
|
+
<midware.version>3.3.11-RELEASE</midware.version>
|
|
14
|
+
<spring-boot.version>2.1.6.RELEASE</spring-boot.version>
|
|
15
|
+
<!--这里换成jdk11 david解析不了,不支持-->
|
|
16
|
+
<maven.compiler.source>8</maven.compiler.source>
|
|
17
|
+
<maven.compiler.target>8</maven.compiler.target>
|
|
18
|
+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
19
|
+
</properties>
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
21
|
+
<dependencyManagement>
|
|
22
|
+
<dependencies>
|
|
23
|
+
<dependency>
|
|
24
|
+
<groupId>com.xiaohongshu</groupId>
|
|
25
|
+
<artifactId>midware-dependencies</artifactId>
|
|
26
|
+
<version>${midware.version}</version>
|
|
27
|
+
<type>pom</type>
|
|
28
|
+
<scope>import</scope>
|
|
29
|
+
</dependency>
|
|
30
|
+
<dependency>
|
|
31
|
+
<groupId>org.springframework.boot</groupId>
|
|
32
|
+
<artifactId>spring-boot-dependencies</artifactId>
|
|
33
|
+
<version>${spring-boot.version}</version>
|
|
34
|
+
<type>pom</type>
|
|
35
|
+
<scope>import</scope>
|
|
36
|
+
</dependency>
|
|
37
37
|
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
</dependencies>
|
|
39
|
+
</dependencyManagement>
|
|
40
40
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
41
|
+
<dependencies>
|
|
42
|
+
<dependency>
|
|
43
|
+
<groupId>com.xiaohongshu</groupId>
|
|
44
|
+
<artifactId>rpc-context</artifactId>
|
|
45
|
+
</dependency>
|
|
46
46
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
47
|
+
<dependency>
|
|
48
|
+
<groupId>com.xiaohongshu</groupId>
|
|
49
|
+
<artifactId>thrift-springboot</artifactId>
|
|
50
|
+
<optional>true</optional>
|
|
51
|
+
</dependency>
|
|
52
52
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
53
|
+
<dependency>
|
|
54
|
+
<groupId>org.springframework.boot</groupId>
|
|
55
|
+
<artifactId>spring-boot-autoconfigure</artifactId>
|
|
56
|
+
<optional>true</optional>
|
|
57
|
+
</dependency>
|
|
58
58
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
59
|
+
<dependency>
|
|
60
|
+
<groupId>org.apache.thrift</groupId>
|
|
61
|
+
<artifactId>libthrift</artifactId>
|
|
62
|
+
</dependency>
|
|
63
63
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
64
|
+
<dependency>
|
|
65
|
+
<groupId>org.springframework.boot</groupId>
|
|
66
|
+
<artifactId>spring-boot-configuration-processor</artifactId>
|
|
67
|
+
<optional>true</optional>
|
|
68
|
+
</dependency>
|
|
69
69
|
|
|
70
|
-
|
|
70
|
+
</dependencies>
|
|
71
71
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
72
|
+
<build>
|
|
73
|
+
<plugins>
|
|
74
|
+
<plugin>
|
|
75
|
+
<groupId>org.apache.maven.plugins</groupId>
|
|
76
|
+
<artifactId>maven-compiler-plugin</artifactId>
|
|
77
|
+
<version>3.8.1</version>
|
|
78
|
+
<configuration>
|
|
79
|
+
<source>1.8</source>
|
|
80
|
+
<target>1.8</target>
|
|
81
|
+
</configuration>
|
|
82
|
+
</plugin>
|
|
83
|
+
<plugin>
|
|
84
|
+
<groupId>org.apache.maven.plugins</groupId>
|
|
85
|
+
<artifactId>maven-source-plugin</artifactId>
|
|
86
|
+
<version>2.1.1</version>
|
|
87
|
+
<executions>
|
|
88
|
+
<execution>
|
|
89
|
+
<id>attach-sources</id>
|
|
90
|
+
<goals>
|
|
91
|
+
<goal>jar-no-fork</goal>
|
|
92
|
+
</goals>
|
|
93
|
+
</execution>
|
|
94
|
+
</executions>
|
|
95
|
+
</plugin>
|
|
96
|
+
</plugins>
|
|
97
|
+
</build>
|
|
98
|
+
<distributionManagement>
|
|
99
|
+
<snapshotRepository>
|
|
100
|
+
<id>snapshots</id>
|
|
101
|
+
<name>nexus snapshot repository</name>
|
|
102
|
+
<url>
|
|
103
|
+
https://artifactory.devops.xiaohongshu.com/artifactory/maven-snapshots/
|
|
104
|
+
</url>
|
|
105
|
+
</snapshotRepository>
|
|
106
|
+
<repository>
|
|
107
|
+
<id>releases</id>
|
|
108
|
+
<name>nexus repository</name>
|
|
109
|
+
<url>
|
|
110
|
+
https://artifactory.devops.xiaohongshu.com/artifactory/maven-releases/
|
|
111
|
+
</url>
|
|
112
|
+
</repository>
|
|
113
|
+
</distributionManagement>
|
|
114
114
|
</project>
|
package/template/sns-demo-start/src/main/java/com/xiaohongshu/sns/demo/start/provider/.gitkeep
DELETED
|
File without changes
|