Compare commits

...

14 Commits

Author SHA1 Message Date
oyo
2513838909 更新 template/.toco/README 2026-02-08 10:36:05 +08:00
oyo
4d6d435c27 更新 template/.toco/toco/README 2026-02-06 10:41:28 +08:00
oyo
ea3b1676ad 更新 template/.toco/plan/README 2026-02-06 10:40:43 +08:00
oyo
838743948d 更新 template/.toco/modeling/README 2026-02-06 10:40:15 +08:00
oyo
71e331a5fb 更新 template/.toco/global/README 2026-02-06 10:39:50 +08:00
oyo
6017a6fdc4 更新 template/.toco/design/README 2026-02-06 10:39:15 +08:00
oyo
c693565ba1 更新 template/.toco/coding/README 2026-02-06 10:38:09 +08:00
oyo
a6a87332c9 更新 template/.toco/coding/README 2026-02-06 10:37:24 +08:00
oyo
52a808ff83 变英文 2026-02-06 10:35:51 +08:00
oyo
beb77ce1aa 添加 template/.toco/coding/README.md 2026-02-06 10:32:11 +08:00
ycl
19b132b126 更新 template/pom.xml
升级jar包
2026-01-30 10:50:41 +08:00
ycl
6e2138f065 更新 template/pom.xml 2026-01-27 15:13:55 +08:00
oyo
169cd7196f SimpleModule 2026-01-26 19:57:30 +08:00
oyo
06f4cf79bf 增加bigDecimalModule 2026-01-26 19:50:52 +08:00
9 changed files with 20 additions and 13 deletions

View File

@@ -1,8 +1,8 @@
.toco 目录用于存放rules只支持.md文件。内部结构如下 The .toco directory is used to store rules (supporting .md files only). The internal structure is defined as follows:
global: 目录用于存放所有Agent通用rules对所有Agent生效 global/ Contains general rules applicable to all Agents. These rules take effect globally across the entire system.
toco: 目录用于存放Toco Agent专用rules用于外层流程整体控制如禁止进入建模必须进行Plan等通常无需新增rules toco/ Contains rules specific to the Toco Agent. These are used for high-level process control (e.g., "modeling prohibited," "planning mandatory"). Typically, no new rules need to be added here.
modeling: 目录用于存放Domain Architect Agent专用rules用于领域建模阶段 modeling/ Contains rules specific to the Domain Architect Agent, used during the domain modeling phase.
plan: 目录用于存放Planner Agent专用rules用于规划分析阶段 plan/ Contains rules specific to the Planner Agent, used during the planning and analysis phase.
design: 目录用于存放Designer Agent专用rules用于TOCO设计元素操作 design/ Contains rules specific to the Designer Agent, used for operating and managing TOCO design elements.
coding: 目录用于存放Developer Agent专用rules用于编写代码阶段 coding/ Contains rules specific to the Developer Agent, used during the code implementation phase.

View File

@@ -0,0 +1 @@
This directory is used to store rules specific to the Developer Agent for code implementation. Only .md files are supported.

View File

@@ -1 +1 @@
目录用于存放Design Agent专用rules用于TOCO设计元素设计只支持.md文件 This directory is used to store rules specific to the Design Agent for designing TOCO design elements. Only .md files are supported.

View File

@@ -1 +1 @@
目录用于存放所有agent通用rules只支持.md文件 This directory is used to store general rules applicable to all agents. Only .md files are supported.

View File

@@ -1 +1 @@
目录用于存放Modeling Agent专用rules用于领域建模阶段只支持.md文件 This directory is used to store rules specific to the Modeling Agent for the domain modeling phase. Only .md files are supported.

View File

@@ -1 +1 @@
目录用于存放Plan Agent专用rules用于整体规划阶段只支持.md文件 This directory is used to store rules specific to the Plan Agent for the overall planning phase. Only .md files are supported.

View File

@@ -1 +1 @@
目录用于存放Toco Agent专用rules用于外层流程整体控制只支持.md文件 This directory is used to store rules specific to the Toco Agent for overall high-level process control. Only .md files are supported. Adding new rules here is generally not recommended.

View File

@@ -5,6 +5,9 @@ import com.fasterxml.jackson.core.JsonParser.Feature;
import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature; import com.fasterxml.jackson.databind.SerializationFeature;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.fasterxml.jackson.databind.module.SimpleModule;
import java.math.BigDecimal;
public class ObjectMapperFactory { public class ObjectMapperFactory {
private static final ObjectMapper objectMapper = new ObjectMapper(); private static final ObjectMapper objectMapper = new ObjectMapper();
@@ -18,6 +21,9 @@ public class ObjectMapperFactory {
static { static {
objectMapper.disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES).disable(SerializationFeature.FAIL_ON_EMPTY_BEANS).disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS).configure(Feature.ALLOW_SINGLE_QUOTES, true); objectMapper.disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES).disable(SerializationFeature.FAIL_ON_EMPTY_BEANS).disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS).configure(Feature.ALLOW_SINGLE_QUOTES, true);
SimpleModule bigDecimalModule = new SimpleModule();
bigDecimalModule.addSerializer(BigDecimal.class, new ToStringSerializer());
objectMapper.registerModule(bigDecimalModule);
objectMapper.setDateFormat(new MyDateFormat()); objectMapper.setDateFormat(new MyDateFormat());
} }
} }

View File

@@ -203,7 +203,7 @@
<dependency> <dependency>
<groupId>io.github.think-1024</groupId> <groupId>io.github.think-1024</groupId>
<artifactId>toco-all-spring5-springboot2-community</artifactId> <artifactId>toco-all-spring5-springboot2-community</artifactId>
<version>1.8</version> <version>2.0</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.tomcat.embed</groupId> <groupId>org.apache.tomcat.embed</groupId>