Compare commits
18 Commits
a31d02392d
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 2513838909 | |||
| 4d6d435c27 | |||
| ea3b1676ad | |||
| 838743948d | |||
| 71e331a5fb | |||
| 6017a6fdc4 | |||
| c693565ba1 | |||
| a6a87332c9 | |||
| 52a808ff83 | |||
| beb77ce1aa | |||
| 19b132b126 | |||
| 6e2138f065 | |||
| 169cd7196f | |||
| 06f4cf79bf | |||
| 89fa1f7f6b | |||
| 341bed2182 | |||
| 00c4b6e68d | |||
| 2b99015622 |
2
template/.gitignore
vendored
2
template/.gitignore
vendored
@@ -33,8 +33,6 @@ logs/
|
||||
!modules/.gitkeep
|
||||
.gitattributes
|
||||
.toco/config.local.yml
|
||||
|
||||
## fossil
|
||||
_FOSSIL_
|
||||
_FOSSIL_-journal
|
||||
.fslckout
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
目录用于存放rules,只支持.md文件。
|
||||
The .toco directory is used to store rules (supporting .md files only). The internal structure is defined as follows:
|
||||
|
||||
global: 目录用于存放所有agent通用rules
|
||||
toco: 目录用于存放Toco Agent专用rules,用于外层流程整体控制
|
||||
modeling:目录用于存放Modeling Agent专用rules,用于领域建模阶段
|
||||
plan: 目录用于存放Plan Agent专用rules,用于整体规划阶段
|
||||
design:目录用于存放Design Agent专用rules,用于TOCO设计元素设计
|
||||
coding:目录用于存放Coding Agent专用rules,用于编码阶段
|
||||
global/ Contains general rules applicable to all Agents. These rules take effect globally across the entire system.
|
||||
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/ Contains rules specific to the Domain Architect Agent, used during the domain modeling phase.
|
||||
plan/ Contains rules specific to the Planner Agent, used during the planning and analysis phase.
|
||||
design/ Contains rules specific to the Designer Agent, used for operating and managing TOCO design elements.
|
||||
coding/ Contains rules specific to the Developer Agent, used during the code implementation phase.
|
||||
1
template/.toco/coding/README
Normal file
1
template/.toco/coding/README
Normal file
@@ -0,0 +1 @@
|
||||
This directory is used to store rules specific to the Developer Agent for code implementation. Only .md files are supported.
|
||||
@@ -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.
|
||||
@@ -1 +1 @@
|
||||
目录用于存放所有agent通用rules,只支持.md文件
|
||||
This directory is used to store general rules applicable to all agents. Only .md files are supported.
|
||||
@@ -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.
|
||||
@@ -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.
|
||||
@@ -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.
|
||||
@@ -5,6 +5,9 @@ import com.fasterxml.jackson.core.JsonParser.Feature;
|
||||
import com.fasterxml.jackson.databind.DeserializationFeature;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
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 {
|
||||
private static final ObjectMapper objectMapper = new ObjectMapper();
|
||||
@@ -18,6 +21,9 @@ public class ObjectMapperFactory {
|
||||
|
||||
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);
|
||||
SimpleModule bigDecimalModule = new SimpleModule();
|
||||
bigDecimalModule.addSerializer(BigDecimal.class, new ToStringSerializer());
|
||||
objectMapper.registerModule(bigDecimalModule);
|
||||
objectMapper.setDateFormat(new MyDateFormat());
|
||||
}
|
||||
}
|
||||
@@ -203,7 +203,7 @@
|
||||
<dependency>
|
||||
<groupId>io.github.think-1024</groupId>
|
||||
<artifactId>toco-all-spring5-springboot2-community</artifactId>
|
||||
<version>1.5</version>
|
||||
<version>2.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.tomcat.embed</groupId>
|
||||
|
||||
Reference in New Issue
Block a user