Compare commits
5 Commits
3db8b2211f
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| bd0a67de44 | |||
| 81ddcb97bd | |||
| cc0062434c | |||
| dc8f834942 | |||
| 9175d32599 |
9
.gitignore
vendored
9
.gitignore
vendored
@@ -1,9 +0,0 @@
|
||||
## IntelliJ IDEA
|
||||
.idea/
|
||||
*.iml
|
||||
|
||||
## Maven
|
||||
target/
|
||||
|
||||
## System
|
||||
.DS_Store
|
||||
1
template/.gitignore
vendored
1
template/.gitignore
vendored
@@ -37,5 +37,6 @@ _FOSSIL_
|
||||
_FOSSIL_-journal
|
||||
.fslckout
|
||||
.fslckout-journal
|
||||
.toco/branch_map.json
|
||||
|
||||
*.pem
|
||||
@@ -1,8 +1,9 @@
|
||||
The .toco directory is used to store rules (supporting .md files only). The internal structure is defined as follows:
|
||||
The `.toco` directory is used to store agent rules. Only `.md` files are supported. The internal structure is defined as follows:
|
||||
|
||||
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.
|
||||
`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. Typically, no new rules need to be added here.
|
||||
`domain_architect/` Contains rules specific to the Domain Architect Agent, used during the domain modeling phase.
|
||||
`planner/` Contains rules specific to the Planner Agent, used during the planning and analysis phase.
|
||||
`designer/` Contains rules specific to the Designer Agent, used for TOCO design work.
|
||||
`developer/` Contains rules specific to the Developer Agent, used during code implementation.
|
||||
`tester/` Contains rules specific to the Tester Agent, used during testing and quality assurance.
|
||||
|
||||
1
template/.toco/tester/README
Normal file
1
template/.toco/tester/README
Normal file
@@ -0,0 +1 @@
|
||||
This directory is used to store rules specific to the Tester Agent for testing and quality assurance. Only .md files are supported.
|
||||
@@ -1,11 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
<groupId>{{ .groupId }}</groupId>
|
||||
<artifactId>{{ .artifactId }}</artifactId>
|
||||
<version>${revision}</version>
|
||||
</parent>
|
||||
<artifactId>{{ .artifactId }}-client</artifactId>
|
||||
</project>
|
||||
@@ -19,4 +19,4 @@
|
||||
<modules>
|
||||
<module>web</module>
|
||||
</modules>
|
||||
</project>
|
||||
</project>
|
||||
@@ -20,27 +20,11 @@
|
||||
<maven.compiler.target>11</maven.compiler.target>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<revision>3.0-SNAPSHOT</revision>
|
||||
{{- if eq .microserviceFrameworkType "SPRING_CLOUD" }}
|
||||
<spring.cloud.version>{{ default "2021.0.9" .microserviceFrameworkVersion }}</spring.cloud.version>
|
||||
{{- end }}
|
||||
{{- if eq .dbType "dm" }}
|
||||
<dm.driver.version>18</dm.driver.version>
|
||||
<db.hiernate.dialect.version>8.1.3.140</db.hiernate.dialect.version>
|
||||
{{- end }}
|
||||
</properties>
|
||||
{{- if eq .microserviceFrameworkType "SPRING_CLOUD" }}
|
||||
<dependencyManagement>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<artifactId>spring-cloud-dependencies</artifactId>
|
||||
<version>${spring.cloud.version}</version>
|
||||
<type>pom</type>
|
||||
<scope>import</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</dependencyManagement>
|
||||
{{- end }}
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>cn.hutool</groupId>
|
||||
@@ -168,6 +152,11 @@
|
||||
<artifactId>javax.annotation-api</artifactId>
|
||||
<version>1.3.2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>cn.hutool</groupId>
|
||||
<artifactId>hutool-all</artifactId>
|
||||
<version>5.7.4</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok</artifactId>
|
||||
@@ -236,13 +225,6 @@
|
||||
<artifactId>transmittable-thread-local</artifactId>
|
||||
<version>2.12.3</version>
|
||||
</dependency>
|
||||
{{- if and (eq .microserviceFrameworkType "DUBBO") .microserviceFrameworkVersion }}
|
||||
<dependency>
|
||||
<groupId>org.apache.dubbo</groupId>
|
||||
<artifactId>dubbo-spring-boot-starter</artifactId>
|
||||
<version>{{ .microserviceFrameworkVersion }}</version>
|
||||
</dependency>
|
||||
{{- end }}
|
||||
{{- if eq .dbType "dm" }}
|
||||
<dependency>
|
||||
<groupId>dm</groupId>
|
||||
@@ -318,11 +300,8 @@
|
||||
</plugins>
|
||||
</build>
|
||||
<modules>
|
||||
<module>remote_contract/types</module>
|
||||
<module>remote_contract/interfaces</module>
|
||||
<module>public_service</module>
|
||||
<module>entrance</module>
|
||||
<module>common</module>
|
||||
<module>client</module>
|
||||
<module>public_service</module>
|
||||
</modules>
|
||||
</project>
|
||||
</project>
|
||||
@@ -8,12 +8,4 @@
|
||||
<version>${revision}</version>
|
||||
</parent>
|
||||
<artifactId>{{ .artifactId }}-public-service</artifactId>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>{{ .groupId }}</groupId>
|
||||
<artifactId>{{ .artifactId }}-remote-contract-types</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
|
||||
113
template/remote_contract/dist/pom.xml
vendored
113
template/remote_contract/dist/pom.xml
vendored
@@ -1,113 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<groupId>{{ .groupId }}</groupId>
|
||||
<artifactId>{{ .artifactId }}-api</artifactId>
|
||||
<version>3.0-SNAPSHOT</version>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>{{ .groupId }}</groupId>
|
||||
<artifactId>{{ .artifactId }}-remote-contract-interfaces</artifactId>
|
||||
<version>3.0-SNAPSHOT</version>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>{{ .groupId }}</groupId>
|
||||
<artifactId>{{ .artifactId }}-remote-contract-types</artifactId>
|
||||
<version>3.0-SNAPSHOT</version>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.github.think-1024</groupId>
|
||||
<artifactId>toco-all-spring5-springboot2-community</artifactId>
|
||||
<version>2.0</version>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<finalName>{{ .artifactId }}-api</finalName>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-shade-plugin</artifactId>
|
||||
<version>3.5.1</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>shade</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<artifactSet>
|
||||
<includes>
|
||||
<include>{{ .groupId }}:{{ .artifactId }}-remote-contract-interfaces</include>
|
||||
<include>{{ .groupId }}:{{ .artifactId }}-remote-contract-types</include>
|
||||
<include>io.github.think-1024:toco-all-spring5-springboot2-community</include>
|
||||
</includes>
|
||||
</artifactSet>
|
||||
|
||||
<filters>
|
||||
<filter>
|
||||
<artifact>io.github.think-1024:toco-all-spring5-springboot2-community</artifact>
|
||||
<includes>
|
||||
<include>com/vs/query/QueryResult.class</include>
|
||||
<include>com/vs/code/TocoGenerated.class</include>
|
||||
<include>com/vs/code/TocoGenerated$LockLevel.class</include>
|
||||
</includes>
|
||||
</filter>
|
||||
</filters>
|
||||
<shadedArtifactAttached>false</shadedArtifactAttached>
|
||||
<createDependencyReducedPom>false</createDependencyReducedPom>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-resources-plugin</artifactId>
|
||||
<version>3.3.1</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>copy-api-sources</id>
|
||||
<phase>generate-sources</phase>
|
||||
<goals>
|
||||
<goal>copy-resources</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<outputDirectory>${project.build.directory}/api-sources</outputDirectory>
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>${project.basedir}/../types/src/main/java</directory>
|
||||
</resource>
|
||||
<resource>
|
||||
<directory>${project.basedir}/../interfaces/src/main/java</directory>
|
||||
</resource>
|
||||
</resources>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
<version>3.3.0</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>attach-api-sources</id>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>jar</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<classesDirectory>${project.build.directory}/api-sources</classesDirectory>
|
||||
<classifier>sources</classifier>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
||||
@@ -1,20 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
<groupId>{{ .groupId }}</groupId>
|
||||
<artifactId>{{ .artifactId }}-remote-contract</artifactId>
|
||||
<version>${revision}</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
<artifactId>{{ .artifactId }}-remote-contract-interfaces</artifactId>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>{{ .groupId }}</groupId>
|
||||
<artifactId>{{ .artifactId }}-remote-contract-types</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
@@ -1,61 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<groupId>{{ .groupId }}</groupId>
|
||||
<artifactId>{{ .artifactId }}-remote-contract</artifactId>
|
||||
<version>${revision}</version>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<maven.compiler.source>11</maven.compiler.source>
|
||||
<maven.compiler.target>11</maven.compiler.target>
|
||||
<revision>3.0-SNAPSHOT</revision>
|
||||
<lombok.version>1.18.20</lombok.version>
|
||||
<validation-api.version>2.0.1.Final</validation-api.version>
|
||||
<toco.version>2.0</toco.version>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>io.github.think-1024</groupId>
|
||||
<artifactId>toco-all-spring5-springboot2-community</artifactId>
|
||||
<version>${toco.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>javax.validation</groupId>
|
||||
<artifactId>validation-api</artifactId>
|
||||
<version>${validation-api.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok</artifactId>
|
||||
<version>${lombok.version}</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<pluginManagement>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>3.11.0</version>
|
||||
<configuration>
|
||||
<source>${maven.compiler.source}</source>
|
||||
<target>${maven.compiler.target}</target>
|
||||
<encoding>${project.build.sourceEncoding}</encoding>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</pluginManagement>
|
||||
</build>
|
||||
|
||||
<modules>
|
||||
<module>types</module>
|
||||
<module>interfaces</module>
|
||||
<module>dist</module>
|
||||
</modules>
|
||||
</project>
|
||||
@@ -1,12 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
<groupId>{{ .groupId }}</groupId>
|
||||
<artifactId>{{ .artifactId }}-remote-contract</artifactId>
|
||||
<version>${revision}</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
<artifactId>{{ .artifactId }}-remote-contract-types</artifactId>
|
||||
</project>
|
||||
@@ -6,8 +6,6 @@ version: 1.0-SNAPSHOT
|
||||
vsVersion: 1.0.0
|
||||
projectId: 3fdc654b-feb2-4d4a-be19-e9ca2998b5d6
|
||||
dbType: mysql
|
||||
microserviceFrameworkType: ""
|
||||
microserviceFrameworkVersion: ""
|
||||
dbHost: 10.0.2.201
|
||||
dbPort: 3306
|
||||
package: "{{ .groupId }}.{{ .artifactId }}"
|
||||
|
||||
Reference in New Issue
Block a user