agent-swarm-kit 1.0.209 → 1.0.211
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/build/index.cjs +11 -13
- package/build/index.mjs +11 -13
- package/package.json +1 -1
- package/types.d.ts +2 -2
package/build/index.cjs
CHANGED
|
@@ -10603,7 +10603,7 @@ class DocService {
|
|
|
10603
10603
|
* @returns {Promise<void>} A promise resolving when the swarm documentation file is written.
|
|
10604
10604
|
* @private
|
|
10605
10605
|
*/
|
|
10606
|
-
this.writeSwarmDoc = functoolsKit.execpool(async (swarmSchema, dirName) => {
|
|
10606
|
+
this.writeSwarmDoc = functoolsKit.execpool(async (swarmSchema, prefix, dirName) => {
|
|
10607
10607
|
GLOBAL_CONFIG.CC_LOGGER_ENABLE_INFO &&
|
|
10608
10608
|
this.loggerService.info("docService writeSwarmDoc", {
|
|
10609
10609
|
swarmSchema,
|
|
@@ -10611,11 +10611,8 @@ class DocService {
|
|
|
10611
10611
|
const result = [];
|
|
10612
10612
|
{
|
|
10613
10613
|
result.push("---");
|
|
10614
|
-
result.push(`title: ${swarmSchema.swarmName}
|
|
10615
|
-
result.push(`
|
|
10616
|
-
swarmSchema.agentList.forEach((agentName) => {
|
|
10617
|
-
result.push(` - ./agent/${agentName}.md`);
|
|
10618
|
-
});
|
|
10614
|
+
result.push(`title: ${prefix}/${swarmSchema.swarmName}`);
|
|
10615
|
+
result.push(`group: ${prefix}`);
|
|
10619
10616
|
result.push("---");
|
|
10620
10617
|
result.push("");
|
|
10621
10618
|
}
|
|
@@ -10706,7 +10703,7 @@ class DocService {
|
|
|
10706
10703
|
* @returns {Promise<void>} A promise resolving when the agent documentation file is written.
|
|
10707
10704
|
* @private
|
|
10708
10705
|
*/
|
|
10709
|
-
this.writeAgentDoc = functoolsKit.execpool(async (agentSchema, dirName) => {
|
|
10706
|
+
this.writeAgentDoc = functoolsKit.execpool(async (agentSchema, prefix, dirName) => {
|
|
10710
10707
|
GLOBAL_CONFIG.CC_LOGGER_ENABLE_INFO &&
|
|
10711
10708
|
this.loggerService.info("docService writeAgentDoc", {
|
|
10712
10709
|
agentSchema,
|
|
@@ -10714,7 +10711,8 @@ class DocService {
|
|
|
10714
10711
|
const result = [];
|
|
10715
10712
|
{
|
|
10716
10713
|
result.push("---");
|
|
10717
|
-
result.push(`title: ${agentSchema.agentName}.md`);
|
|
10714
|
+
result.push(`title: ${prefix}/${agentSchema.agentName}.md`);
|
|
10715
|
+
result.push(`group: ${prefix}`);
|
|
10718
10716
|
result.push("---");
|
|
10719
10717
|
result.push("");
|
|
10720
10718
|
}
|
|
@@ -10929,7 +10927,7 @@ class DocService {
|
|
|
10929
10927
|
* @param {string} [dirName=join(process.cwd(), "docs/chat")] - The base directory for documentation output, defaults to "docs/chat" in the current working directory.
|
|
10930
10928
|
* @returns {Promise<void>} A promise resolving when all documentation files are written.
|
|
10931
10929
|
*/
|
|
10932
|
-
this.dumpDocs = async (dirName = path.join(process.cwd(), "docs/chat")) => {
|
|
10930
|
+
this.dumpDocs = async (prefix = "swarm", dirName = path.join(process.cwd(), "docs/chat")) => {
|
|
10933
10931
|
GLOBAL_CONFIG.CC_LOGGER_ENABLE_INFO &&
|
|
10934
10932
|
this.loggerService.info("docService dumpDocs", {
|
|
10935
10933
|
dirName,
|
|
@@ -10944,13 +10942,13 @@ class DocService {
|
|
|
10944
10942
|
this.loggerService.info("docService dumpDocs building swarm docs");
|
|
10945
10943
|
await Promise.all(this.swarmValidationService.getSwarmList().map(async (swarmName) => {
|
|
10946
10944
|
const swarmSchema = this.swarmSchemaService.get(swarmName);
|
|
10947
|
-
await this.writeSwarmDoc(swarmSchema, dirName);
|
|
10945
|
+
await this.writeSwarmDoc(swarmSchema, prefix, dirName);
|
|
10948
10946
|
}));
|
|
10949
10947
|
GLOBAL_CONFIG.CC_LOGGER_ENABLE_INFO &&
|
|
10950
10948
|
this.loggerService.info("docService dumpDocs building agent docs");
|
|
10951
10949
|
await Promise.all(this.agentValidationService.getAgentList().map(async (agentName) => {
|
|
10952
10950
|
const agentSchema = this.agentSchemaService.get(agentName);
|
|
10953
|
-
await this.writeAgentDoc(agentSchema, dirName);
|
|
10951
|
+
await this.writeAgentDoc(agentSchema, prefix, dirName);
|
|
10954
10952
|
}));
|
|
10955
10953
|
};
|
|
10956
10954
|
/**
|
|
@@ -13179,7 +13177,7 @@ const METHOD_NAME$U = "cli.dumpDocs";
|
|
|
13179
13177
|
* @param {function} [PlantUML] - An optional function to process PlantUML diagrams.
|
|
13180
13178
|
* @returns {Promise<void>} - A promise that resolves when the documentation has been dumped.
|
|
13181
13179
|
*/
|
|
13182
|
-
const dumpDocs = beginContext((dirName = "./docs/chat", PlantUML) => {
|
|
13180
|
+
const dumpDocs = beginContext((prefix = "swarm", dirName = "./docs/chat", PlantUML) => {
|
|
13183
13181
|
GLOBAL_CONFIG.CC_LOGGER_ENABLE_LOG &&
|
|
13184
13182
|
swarm$1.loggerService.log(METHOD_NAME$U, {
|
|
13185
13183
|
dirName,
|
|
@@ -13201,7 +13199,7 @@ const dumpDocs = beginContext((dirName = "./docs/chat", PlantUML) => {
|
|
|
13201
13199
|
console.error(`agent-swarm missing dependsOn for agentName=${agentName}`);
|
|
13202
13200
|
}
|
|
13203
13201
|
});
|
|
13204
|
-
return swarm$1.docService.dumpDocs(dirName);
|
|
13202
|
+
return swarm$1.docService.dumpDocs(prefix, dirName);
|
|
13205
13203
|
});
|
|
13206
13204
|
|
|
13207
13205
|
const METHOD_NAME$T = "cli.dumpAgent";
|
package/build/index.mjs
CHANGED
|
@@ -10601,7 +10601,7 @@ class DocService {
|
|
|
10601
10601
|
* @returns {Promise<void>} A promise resolving when the swarm documentation file is written.
|
|
10602
10602
|
* @private
|
|
10603
10603
|
*/
|
|
10604
|
-
this.writeSwarmDoc = execpool(async (swarmSchema, dirName) => {
|
|
10604
|
+
this.writeSwarmDoc = execpool(async (swarmSchema, prefix, dirName) => {
|
|
10605
10605
|
GLOBAL_CONFIG.CC_LOGGER_ENABLE_INFO &&
|
|
10606
10606
|
this.loggerService.info("docService writeSwarmDoc", {
|
|
10607
10607
|
swarmSchema,
|
|
@@ -10609,11 +10609,8 @@ class DocService {
|
|
|
10609
10609
|
const result = [];
|
|
10610
10610
|
{
|
|
10611
10611
|
result.push("---");
|
|
10612
|
-
result.push(`title: ${swarmSchema.swarmName}
|
|
10613
|
-
result.push(`
|
|
10614
|
-
swarmSchema.agentList.forEach((agentName) => {
|
|
10615
|
-
result.push(` - ./agent/${agentName}.md`);
|
|
10616
|
-
});
|
|
10612
|
+
result.push(`title: ${prefix}/${swarmSchema.swarmName}`);
|
|
10613
|
+
result.push(`group: ${prefix}`);
|
|
10617
10614
|
result.push("---");
|
|
10618
10615
|
result.push("");
|
|
10619
10616
|
}
|
|
@@ -10704,7 +10701,7 @@ class DocService {
|
|
|
10704
10701
|
* @returns {Promise<void>} A promise resolving when the agent documentation file is written.
|
|
10705
10702
|
* @private
|
|
10706
10703
|
*/
|
|
10707
|
-
this.writeAgentDoc = execpool(async (agentSchema, dirName) => {
|
|
10704
|
+
this.writeAgentDoc = execpool(async (agentSchema, prefix, dirName) => {
|
|
10708
10705
|
GLOBAL_CONFIG.CC_LOGGER_ENABLE_INFO &&
|
|
10709
10706
|
this.loggerService.info("docService writeAgentDoc", {
|
|
10710
10707
|
agentSchema,
|
|
@@ -10712,7 +10709,8 @@ class DocService {
|
|
|
10712
10709
|
const result = [];
|
|
10713
10710
|
{
|
|
10714
10711
|
result.push("---");
|
|
10715
|
-
result.push(`title: ${agentSchema.agentName}.md`);
|
|
10712
|
+
result.push(`title: ${prefix}/${agentSchema.agentName}.md`);
|
|
10713
|
+
result.push(`group: ${prefix}`);
|
|
10716
10714
|
result.push("---");
|
|
10717
10715
|
result.push("");
|
|
10718
10716
|
}
|
|
@@ -10927,7 +10925,7 @@ class DocService {
|
|
|
10927
10925
|
* @param {string} [dirName=join(process.cwd(), "docs/chat")] - The base directory for documentation output, defaults to "docs/chat" in the current working directory.
|
|
10928
10926
|
* @returns {Promise<void>} A promise resolving when all documentation files are written.
|
|
10929
10927
|
*/
|
|
10930
|
-
this.dumpDocs = async (dirName = join(process.cwd(), "docs/chat")) => {
|
|
10928
|
+
this.dumpDocs = async (prefix = "swarm", dirName = join(process.cwd(), "docs/chat")) => {
|
|
10931
10929
|
GLOBAL_CONFIG.CC_LOGGER_ENABLE_INFO &&
|
|
10932
10930
|
this.loggerService.info("docService dumpDocs", {
|
|
10933
10931
|
dirName,
|
|
@@ -10942,13 +10940,13 @@ class DocService {
|
|
|
10942
10940
|
this.loggerService.info("docService dumpDocs building swarm docs");
|
|
10943
10941
|
await Promise.all(this.swarmValidationService.getSwarmList().map(async (swarmName) => {
|
|
10944
10942
|
const swarmSchema = this.swarmSchemaService.get(swarmName);
|
|
10945
|
-
await this.writeSwarmDoc(swarmSchema, dirName);
|
|
10943
|
+
await this.writeSwarmDoc(swarmSchema, prefix, dirName);
|
|
10946
10944
|
}));
|
|
10947
10945
|
GLOBAL_CONFIG.CC_LOGGER_ENABLE_INFO &&
|
|
10948
10946
|
this.loggerService.info("docService dumpDocs building agent docs");
|
|
10949
10947
|
await Promise.all(this.agentValidationService.getAgentList().map(async (agentName) => {
|
|
10950
10948
|
const agentSchema = this.agentSchemaService.get(agentName);
|
|
10951
|
-
await this.writeAgentDoc(agentSchema, dirName);
|
|
10949
|
+
await this.writeAgentDoc(agentSchema, prefix, dirName);
|
|
10952
10950
|
}));
|
|
10953
10951
|
};
|
|
10954
10952
|
/**
|
|
@@ -13177,7 +13175,7 @@ const METHOD_NAME$U = "cli.dumpDocs";
|
|
|
13177
13175
|
* @param {function} [PlantUML] - An optional function to process PlantUML diagrams.
|
|
13178
13176
|
* @returns {Promise<void>} - A promise that resolves when the documentation has been dumped.
|
|
13179
13177
|
*/
|
|
13180
|
-
const dumpDocs = beginContext((dirName = "./docs/chat", PlantUML) => {
|
|
13178
|
+
const dumpDocs = beginContext((prefix = "swarm", dirName = "./docs/chat", PlantUML) => {
|
|
13181
13179
|
GLOBAL_CONFIG.CC_LOGGER_ENABLE_LOG &&
|
|
13182
13180
|
swarm$1.loggerService.log(METHOD_NAME$U, {
|
|
13183
13181
|
dirName,
|
|
@@ -13199,7 +13197,7 @@ const dumpDocs = beginContext((dirName = "./docs/chat", PlantUML) => {
|
|
|
13199
13197
|
console.error(`agent-swarm missing dependsOn for agentName=${agentName}`);
|
|
13200
13198
|
}
|
|
13201
13199
|
});
|
|
13202
|
-
return swarm$1.docService.dumpDocs(dirName);
|
|
13200
|
+
return swarm$1.docService.dumpDocs(prefix, dirName);
|
|
13203
13201
|
});
|
|
13204
13202
|
|
|
13205
13203
|
const METHOD_NAME$T = "cli.dumpAgent";
|
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -6893,7 +6893,7 @@ declare class DocService {
|
|
|
6893
6893
|
* @param {string} [dirName=join(process.cwd(), "docs/chat")] - The base directory for documentation output, defaults to "docs/chat" in the current working directory.
|
|
6894
6894
|
* @returns {Promise<void>} A promise resolving when all documentation files are written.
|
|
6895
6895
|
*/
|
|
6896
|
-
dumpDocs: (dirName?: string) => Promise<void>;
|
|
6896
|
+
dumpDocs: (prefix?: string, dirName?: string) => Promise<void>;
|
|
6897
6897
|
/**
|
|
6898
6898
|
* Dumps system-wide performance data to a JSON file using PerfService.toRecord.
|
|
6899
6899
|
* Ensures the output directory exists, then writes a timestamped file, logging the process if GLOBAL_CONFIG.CC_LOGGER_ENABLE_INFO is enabled.
|
|
@@ -8197,7 +8197,7 @@ declare const swarm: {
|
|
|
8197
8197
|
* @param {function} [PlantUML] - An optional function to process PlantUML diagrams.
|
|
8198
8198
|
* @returns {Promise<void>} - A promise that resolves when the documentation has been dumped.
|
|
8199
8199
|
*/
|
|
8200
|
-
declare const dumpDocs: (dirName?: any, PlantUML?: (uml: string) => Promise<string>) => Promise<void>;
|
|
8200
|
+
declare const dumpDocs: (prefix?: any, dirName?: any, PlantUML?: (uml: string) => Promise<string>) => Promise<void>;
|
|
8201
8201
|
|
|
8202
8202
|
/**
|
|
8203
8203
|
* The config for UML generation
|