Compare commits

113 Commits

Author SHA1 Message Date
oyo
7dc36f83dd homestay 2025-11-24 10:02:55 +08:00
oyo
f77282c141 homestay 2025-11-24 10:02:41 +08:00
oyo
74bb71ff96 homestay 2025-11-24 10:02:32 +08:00
oyo
def68e0818 添加 template/.toco/global/global.md 2025-11-20 16:27:47 +08:00
oyo
47c6129c76 添加 template/.toco/plan/plan.md 2025-11-20 16:27:10 +08:00
oyo
2e6c87e576 添加 template/.toco/modeling/modeling.md 2025-11-20 16:26:41 +08:00
oyo
e18e0d5dee 删除 template/.toco/plan/plan.md 2025-11-13 10:43:34 +08:00
oyo
5da7b47bb4 删除 template/.toco/modeling/modeling.md 2025-11-13 10:43:28 +08:00
oyo
8b1b5e5f0b 删除 template/.toco/global/global.md 2025-11-13 10:43:21 +08:00
oyo
a0f9276f46 删除 template/.toco/design/design.md 2025-11-13 10:43:14 +08:00
oyo
6c8159a0bc 删除 template/.toco/coding/coding.md 2025-11-13 10:42:59 +08:00
oyo
a2ab31d6d5 更新 template/.toco/design/design.md 2025-11-11 21:21:15 +08:00
oyo
3b76066be3 更新 template/.toco/design/design.md 2025-11-11 21:18:24 +08:00
oyo
76e43b88a2 更新 template/.toco/design/design.md 2025-11-11 21:17:30 +08:00
oyo
cf009a876b 更新 template/.toco/design/design.md 2025-11-11 20:33:28 +08:00
oyo
4151d83956 更新 template/.toco/global/global.md 2025-11-11 19:56:26 +08:00
oyo
4d8465b123 更新 template/.toco/coding/coding.md 2025-11-11 19:54:41 +08:00
oyo
6e77493617 更新 template/.toco/modeling/modeling.md 2025-11-11 19:42:58 +08:00
oyo
815fb55873 更新 template/.toco/coding/coding.md 2025-11-11 19:39:51 +08:00
oyo
d03ebdcc57 更新 template/.toco/plan/plan.md 2025-11-11 19:39:21 +08:00
oyo
188dd7d6f0 更新 template/.toco/design/design.md 2025-11-11 19:36:43 +08:00
oyo
eb258bea11 更新 template/.toco/design/design.md 2025-11-11 19:34:56 +08:00
oyo
e1d108f879 更新 template/.toco/design/design.md 2025-11-11 19:34:32 +08:00
oyo
7087df8968 更新 template/.toco/coding/coding.md 2025-11-11 19:33:57 +08:00
oyo
22cdfe69c1 更新 template/.toco/global/global.md 2025-11-11 19:23:59 +08:00
oyo
c2fa840624 添加 template/.toco/global/global.md 2025-11-11 19:23:41 +08:00
oyo
3a3776043a 添加 template/.toco/coding/coding.md 2025-11-11 19:19:53 +08:00
oyo
f182e68987 添加 template/.toco/plan/plan.md 2025-11-11 19:19:14 +08:00
oyo
a60cde2621 添加 template/.toco/design/design.md 2025-11-11 19:18:02 +08:00
oyo
f3cd51f118 添加 template/.toco/modeling/modeling.md 2025-11-11 19:16:33 +08:00
oyo
abb94e4f67 删除 template/.toco/plan/plan.md 2025-10-17 14:01:00 +08:00
oyo
c875b0c163 删除 template/.toco/modeling/modeling.md 2025-10-17 14:00:52 +08:00
oyo
0e502a1be9 删除 template/.toco/global/global.md 2025-10-17 14:00:44 +08:00
oyo
fb78f6692e 删除 template/.toco/design/design.md 2025-10-17 14:00:37 +08:00
oyo
e457fc9719 删除 template/.toco/coding/coding.md 2025-10-17 14:00:29 +08:00
oyo
d5954347fb 更新 template/.toco/coding/coding.md 2025-10-15 20:28:00 +08:00
oyo
3f304cd002 更新 template/.toco/coding/coding.md 2025-10-15 20:21:23 +08:00
oyo
5359e65650 更新 template/.toco/coding/coding.md 2025-10-15 20:18:00 +08:00
oyo
0b2abc26f6 更新 template/.toco/coding/coding.md 2025-10-15 19:57:10 +08:00
oyo
e86cd38c89 更新 template/.toco/modeling/modeling.md 2025-10-15 16:38:22 +08:00
oyo
0d6d6379ff 删除 template/.toco/toco/toco.md 2025-10-15 16:15:23 +08:00
oyo
6889769f0f 添加 template/.toco/toco/toco.md 2025-10-15 16:14:03 +08:00
oyo
c8ce30af92 添加 template/.toco/plan/plan.md 2025-10-15 16:13:45 +08:00
oyo
35504f4677 添加 template/.toco/modeling/modeling.md 2025-10-15 16:13:30 +08:00
oyo
f2b9c8d1f5 添加 template/.toco/global/global.md 2025-10-15 16:13:10 +08:00
oyo
f582467a0f 添加 template/.toco/design/design.md 2025-10-15 16:12:42 +08:00
oyo
7cd8fecbc1 添加 template/.toco/coding/coding.md 2025-10-15 16:12:23 +08:00
oyo
46a76dc52e 删除 template/TOCO.md 2025-10-14 11:38:16 +08:00
oyo
75adc8d474 更新 template/.toco/README 2025-10-14 11:36:48 +08:00
oyo
48b1f4696c 添加 template/.toco/README 2025-10-14 11:36:06 +08:00
oyo
751d4ea211 更新 template/.toco/toco/README 2025-10-14 11:21:52 +08:00
oyo
d81dc3a77b 添加 template/.toco/toco/README 2025-10-14 11:20:12 +08:00
oyo
d5481c234f 更新 template/.toco/plan/README 2025-10-14 11:14:08 +08:00
oyo
206620b46b 更新 template/.toco/modeling/README 2025-10-14 11:13:50 +08:00
oyo
d230f235dc 更新 template/.toco/global/README 2025-10-14 11:13:28 +08:00
oyo
6552dfe31c 更新 template/.toco/design/README 2025-10-14 11:13:06 +08:00
oyo
218ccecce6 更新 template/.toco/coding/README 2025-10-14 11:12:17 +08:00
oyo
5c286b0900 更新 template/.toco/plan/README 2025-10-14 11:02:13 +08:00
oyo
7ab055c016 更新 template/.toco/modeling/README 2025-10-14 11:01:51 +08:00
oyo
80e3d33d07 更新 template/.toco/global/README 2025-10-14 11:01:21 +08:00
oyo
06d0503ef6 更新 template/.toco/modeling/README 2025-10-14 11:00:58 +08:00
oyo
37bc7579ad 更新 template/.toco/coding/README 2025-10-14 10:59:41 +08:00
oyo
b41e4b82b2 更新 template/.toco/design/README 2025-10-14 10:59:33 +08:00
oyo
cfc058c268 更新 template/.toco/coding/README 2025-10-14 10:59:15 +08:00
oyo
38eb659749 更新 template/.toco/coding/README 2025-10-14 10:47:57 +08:00
oyo
89f39074bd 更新 template/.toco/design/README 2025-10-14 10:47:50 +08:00
oyo
1092c0b710 更新 template/.toco/global/README 2025-10-14 10:47:44 +08:00
oyo
83a01a99dc 更新 template/.toco/modeling/README 2025-10-14 10:47:36 +08:00
oyo
20af473d61 更新 template/.toco/plan/README 2025-10-14 10:47:26 +08:00
oyo
13683c6990 更新 template/.toco/plan/README 2025-10-14 10:47:11 +08:00
oyo
67de47a0f4 更新 template/.toco/modeling/README 2025-10-14 10:46:20 +08:00
oyo
f85c9830cb 更新 template/.toco/coding/README 2025-10-14 10:45:45 +08:00
oyo
bd8095ce98 更新 template/.toco/global/README 2025-10-14 10:45:29 +08:00
oyo
5e042a898c 更新 template/.toco/coding/README 2025-10-14 10:44:56 +08:00
oyo
a3ed9aa129 更新 template/.toco/design/README 2025-10-14 10:44:46 +08:00
oyo
57bfaabc86 更新 template/.toco/coding/README 2025-10-14 10:44:01 +08:00
oyo
bc4771ac9c 更新 template/.toco/coding/coding.md 2025-10-14 10:43:09 +08:00
oyo
3800797ee8 更新 template/.toco/plan/plan.md 2025-10-14 10:42:27 +08:00
oyo
e9135efc69 更新 template/.toco/modeling/modeling.md 2025-10-14 10:42:15 +08:00
oyo
7a0054c21a 更新 template/.toco/global/global.md 2025-10-14 10:41:59 +08:00
oyo
b40717e148 更新 template/.toco/design/design.md 2025-10-14 10:41:33 +08:00
oyo
27f97b26d2 更新 template/.toco/coding/coding.md 2025-10-14 10:40:39 +08:00
oyo
18de98037d 添加 template/.toco/global/global.md 2025-10-14 10:39:22 +08:00
oyo
38e3fb5cd8 添加 template/.toco/coding/coding.md 2025-10-14 10:37:38 +08:00
oyo
22b66cb2b0 删除 template/.toco/coding/coding.md 2025-10-14 10:37:28 +08:00
oyo
441f696af2 添加 template/.toco/coding/coding.md 2025-10-14 10:37:20 +08:00
oyo
6b41af6717 添加 template/.toco/design/design.md 2025-10-14 10:36:24 +08:00
oyo
a30288d151 添加 template/.toco/plan/plan.md 2025-10-14 10:35:15 +08:00
oyo
c6cba363cd 添加 template/.toco/modeling/modeling.md 2025-10-14 10:34:54 +08:00
oyo
08d2e3f5df 更新 template/common/pom.xml 2025-09-29 15:17:01 +08:00
oyo
219199ed69 更新 template/pom.xml 2025-09-29 15:16:32 +08:00
oyo
ce4f035583 更新 template/TOCO.md 2025-09-14 13:49:02 +08:00
oyo
1c7cf53ec0 更新 template/TOCO.md 2025-09-08 16:53:58 +08:00
oyo
2aa56d059e 更新 template/TOCO.md 2025-09-03 13:57:22 +08:00
oyo
64b2a78add 更新 template/TOCO.md 2025-09-02 14:25:11 +08:00
oyo
c3f33f6a94 更新 template/TOCO.md 2025-09-01 20:03:48 +08:00
oyo
b04b11beca 更新 template/TOCO.md 2025-09-01 16:05:35 +08:00
oyo
5a8e4da5a3 更新 template/TOCO.md 2025-09-01 16:02:21 +08:00
oyo
33dd98f157 更新 template/TOCO.md 2025-09-01 13:10:17 +08:00
oyo
3db0bf8bcc 更新 template/TOCO.md 2025-09-01 12:11:21 +08:00
oyo
b868dbc393 更新 template/TOCO.md 2025-09-01 11:07:36 +08:00
oyo
5938c0b20f 更新 template/TOCO.md 2025-09-01 11:04:31 +08:00
oyo
4097acc7ca 更新 template/TOCO.md 2025-09-01 10:29:44 +08:00
oyo
d53db5dff0 更新 template/entrance/web/src/main/resources/application-local.properties 2025-08-29 11:45:44 +08:00
oyo
68470b84fa 更新 template/entrance/web/src/main/resources/application.properties 2025-08-29 11:45:34 +08:00
oyo
3aa2d11963 更新 template/entrance/web/src/main/resources/application.properties 2025-08-29 11:09:56 +08:00
oyo
2667b8c00c 更新 template/TOCO.md 2025-08-26 19:15:03 +08:00
oyo
628ce032b3 添加 template/toco.md 2025-08-22 16:01:34 +08:00
oyo
c7f31e959d 添加 template/entrance/web/src/main/java/{{.packagePath}}/entrance/web/config/SSLConfig.java 2025-07-25 15:37:20 +08:00
oyo
8d1988a876 更新 template/.gitignore 2025-07-25 15:35:48 +08:00
d29c2e9eb1 Update template/pom.xml 2025-06-18 14:53:55 +08:00
28a0ed18e2 Update template/.gitignore 2025-06-12 16:12:49 +08:00
b2fecf3e65 Update template/.gitignore 2025-04-24 15:38:17 +08:00
12 changed files with 104 additions and 17 deletions

7
template/.gitignore vendored
View File

@@ -33,3 +33,10 @@ logs/
!modules/.gitkeep
.gitattributes
.toco/config.local.yml
.fslckout
_FOSSIL_
_FOSSIL_-journal
.fslckout
.fslckout-journal
*.pem

8
template/.toco/README Normal file
View File

@@ -0,0 +1,8 @@
目录用于存放rules只支持.md文件。
global: 目录用于存放所有agent通用rules
toco: 目录用于存放Toco Agent专用rules用于外层流程整体控制
modeling:目录用于存放Modeling Agent专用rules用于领域建模阶段
plan: 目录用于存放Plan Agent专用rules用于整体规划阶段
design:目录用于存放Design Agent专用rules用于TOCO设计元素设计
coding:目录用于存放Coding Agent专用rules用于编码阶段

View File

@@ -0,0 +1 @@
目录用于存放Coding Agent专用rules用于编码阶段只支持.md文件

View File

@@ -0,0 +1 @@
目录用于存放Design Agent专用rules用于TOCO设计元素设计只支持.md文件

View File

@@ -0,0 +1 @@
目录用于存放所有agent通用rules只支持.md文件

View File

@@ -0,0 +1 @@
目录用于存放Modeling Agent专用rules用于领域建模阶段只支持.md文件

View File

@@ -0,0 +1 @@
目录用于存放Plan Agent专用rules用于整体规划阶段只支持.md文件

View File

@@ -0,0 +1 @@
目录用于存放Toco Agent专用rules用于外层流程整体控制只支持.md文件

View File

@@ -63,6 +63,11 @@
<artifactId>rocketmq-client</artifactId>
</dependency>
<dependency>
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt</artifactId>
</dependency>
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-core</artifactId>

View File

@@ -0,0 +1,71 @@
package {{ .package }}.entrance.web.config;
import org.apache.catalina.connector.Connector;
import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory;
import org.springframework.boot.web.servlet.server.ServletWebServerFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.env.Environment;
import org.springframework.core.io.ClassPathResource;
import java.io.IOException;
@Configuration
public class SSLConfig {
@Bean
public ServletWebServerFactory servletContainer(Environment env) {
TomcatServletWebServerFactory tomcat = new TomcatServletWebServerFactory();
// 禁用自动配置的SSL如果存在
tomcat.setRegisterDefaultServlet(false);
if (hasSslConfig(env)) {
tomcat.addAdditionalTomcatConnectors(createSslConnector(env));
}
return tomcat;
}
private boolean hasSslConfig(Environment env) {
return env.containsProperty("ssl_certificate")
&& env.containsProperty("ssl_certificate-private-key");
}
private Connector createSslConnector(Environment env) {
String certPath = env.getProperty("ssl_certificate");
String keyPath = env.getProperty("ssl_certificate-private-key");
String httpsPort = env.getProperty("server.https.port", "8443");
Connector connector = new Connector("org.apache.coyote.http11.Http11NioProtocol");
connector.setScheme("https");
connector.setSecure(true);
connector.setPort(Integer.parseInt(httpsPort));
// 明确设置SSL配置
connector.setProperty("SSLEnabled", "true");
connector.setProperty("sslProtocol", "TLS");
connector.setProperty("clientAuth", "false");
connector.setProperty("sslEnabledProtocols", "TLSv1.2,TLSv1.3");
// 处理证书路径
connector.setProperty("certificateFile", extractFilePath(certPath));
connector.setProperty("certificateKeyFile", extractFilePath(keyPath));
return connector;
}
private String extractFilePath(String classpathResource) {
if (classpathResource == null) return null;
if (classpathResource.startsWith("classpath:")) {
String resource = classpathResource.substring("classpath:".length());
try {
return new ClassPathResource(resource).getFile().getAbsolutePath();
} catch (IOException e) {
throw new RuntimeException("Failed to locate SSL certificate file", e);
}
}
return classpathResource;
}
}

View File

@@ -128,3 +128,4 @@ liteflow.monitor.enable-log=true
#create default table auto
vs.db.basetable.create=true
server.ssl.enabled=false

View File

@@ -80,6 +80,7 @@
<ox.sprintboot.web.starter.version>1.0-SNAPSHOT</ox.sprintboot.web.starter.version>
<ox.basidc.common>1.0-SNAPSHOT</ox.basidc.common>
<vs.sqlmapper.spring>1.0.0-SNAPSHOT</vs.sqlmapper.spring>
<jjwt.version>0.9.1</jjwt.version>
{{- if eq .dbType "dm" }}
<dm.driver.version>18</dm.driver.version>
<db.hiernate.dialect.version>8.1.3.140</db.hiernate.dialect.version>
@@ -371,6 +372,11 @@
<artifactId>opensearch-rest-high-level-client</artifactId>
<version>${opensearch.version}</version>
</dependency>
<dependency>
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt</artifactId>
<version>${jjwt.version}</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
@@ -468,23 +474,6 @@
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<version>2.43.0</version>
<configuration>
<java>
<googleJavaFormat>
<groupArtifact>com.google.googlejavaformat:google-java-format</groupArtifact>
<version>1.22.0</version>
<style>AOSP</style>
<reorderImports>true</reorderImports>
<reflowLongStrings>true</reflowLongStrings>
<formatJavadoc>true</formatJavadoc>
</googleJavaFormat>
</java>
</configuration>
</plugin>
</plugins>
</build>
<modules>