agent-swarm-kit 1.0.209 → 1.0.210

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 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,7 +10611,7 @@ class DocService {
10611
10611
  const result = [];
10612
10612
  {
10613
10613
  result.push("---");
10614
- result.push(`title: ${swarmSchema.swarmName}.md`);
10614
+ result.push(`title: ${prefix}/${swarmSchema.swarmName}`);
10615
10615
  result.push(`children:`);
10616
10616
  swarmSchema.agentList.forEach((agentName) => {
10617
10617
  result.push(` - ./agent/${agentName}.md`);
@@ -10706,7 +10706,7 @@ class DocService {
10706
10706
  * @returns {Promise<void>} A promise resolving when the agent documentation file is written.
10707
10707
  * @private
10708
10708
  */
10709
- this.writeAgentDoc = functoolsKit.execpool(async (agentSchema, dirName) => {
10709
+ this.writeAgentDoc = functoolsKit.execpool(async (agentSchema, prefix, dirName) => {
10710
10710
  GLOBAL_CONFIG.CC_LOGGER_ENABLE_INFO &&
10711
10711
  this.loggerService.info("docService writeAgentDoc", {
10712
10712
  agentSchema,
@@ -10714,7 +10714,7 @@ class DocService {
10714
10714
  const result = [];
10715
10715
  {
10716
10716
  result.push("---");
10717
- result.push(`title: ${agentSchema.agentName}.md`);
10717
+ result.push(`title: ${prefix}/${agentSchema.agentName}.md`);
10718
10718
  result.push("---");
10719
10719
  result.push("");
10720
10720
  }
@@ -10929,7 +10929,7 @@ class DocService {
10929
10929
  * @param {string} [dirName=join(process.cwd(), "docs/chat")] - The base directory for documentation output, defaults to "docs/chat" in the current working directory.
10930
10930
  * @returns {Promise<void>} A promise resolving when all documentation files are written.
10931
10931
  */
10932
- this.dumpDocs = async (dirName = path.join(process.cwd(), "docs/chat")) => {
10932
+ this.dumpDocs = async (prefix = "swarm", dirName = path.join(process.cwd(), "docs/chat")) => {
10933
10933
  GLOBAL_CONFIG.CC_LOGGER_ENABLE_INFO &&
10934
10934
  this.loggerService.info("docService dumpDocs", {
10935
10935
  dirName,
@@ -10944,13 +10944,13 @@ class DocService {
10944
10944
  this.loggerService.info("docService dumpDocs building swarm docs");
10945
10945
  await Promise.all(this.swarmValidationService.getSwarmList().map(async (swarmName) => {
10946
10946
  const swarmSchema = this.swarmSchemaService.get(swarmName);
10947
- await this.writeSwarmDoc(swarmSchema, dirName);
10947
+ await this.writeSwarmDoc(swarmSchema, prefix, dirName);
10948
10948
  }));
10949
10949
  GLOBAL_CONFIG.CC_LOGGER_ENABLE_INFO &&
10950
10950
  this.loggerService.info("docService dumpDocs building agent docs");
10951
10951
  await Promise.all(this.agentValidationService.getAgentList().map(async (agentName) => {
10952
10952
  const agentSchema = this.agentSchemaService.get(agentName);
10953
- await this.writeAgentDoc(agentSchema, dirName);
10953
+ await this.writeAgentDoc(agentSchema, prefix, dirName);
10954
10954
  }));
10955
10955
  };
10956
10956
  /**
@@ -13179,7 +13179,7 @@ const METHOD_NAME$U = "cli.dumpDocs";
13179
13179
  * @param {function} [PlantUML] - An optional function to process PlantUML diagrams.
13180
13180
  * @returns {Promise<void>} - A promise that resolves when the documentation has been dumped.
13181
13181
  */
13182
- const dumpDocs = beginContext((dirName = "./docs/chat", PlantUML) => {
13182
+ const dumpDocs = beginContext((prefix = "swarm", dirName = "./docs/chat", PlantUML) => {
13183
13183
  GLOBAL_CONFIG.CC_LOGGER_ENABLE_LOG &&
13184
13184
  swarm$1.loggerService.log(METHOD_NAME$U, {
13185
13185
  dirName,
@@ -13201,7 +13201,7 @@ const dumpDocs = beginContext((dirName = "./docs/chat", PlantUML) => {
13201
13201
  console.error(`agent-swarm missing dependsOn for agentName=${agentName}`);
13202
13202
  }
13203
13203
  });
13204
- return swarm$1.docService.dumpDocs(dirName);
13204
+ return swarm$1.docService.dumpDocs(prefix, dirName);
13205
13205
  });
13206
13206
 
13207
13207
  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,7 +10609,7 @@ class DocService {
10609
10609
  const result = [];
10610
10610
  {
10611
10611
  result.push("---");
10612
- result.push(`title: ${swarmSchema.swarmName}.md`);
10612
+ result.push(`title: ${prefix}/${swarmSchema.swarmName}`);
10613
10613
  result.push(`children:`);
10614
10614
  swarmSchema.agentList.forEach((agentName) => {
10615
10615
  result.push(` - ./agent/${agentName}.md`);
@@ -10704,7 +10704,7 @@ class DocService {
10704
10704
  * @returns {Promise<void>} A promise resolving when the agent documentation file is written.
10705
10705
  * @private
10706
10706
  */
10707
- this.writeAgentDoc = execpool(async (agentSchema, dirName) => {
10707
+ this.writeAgentDoc = execpool(async (agentSchema, prefix, dirName) => {
10708
10708
  GLOBAL_CONFIG.CC_LOGGER_ENABLE_INFO &&
10709
10709
  this.loggerService.info("docService writeAgentDoc", {
10710
10710
  agentSchema,
@@ -10712,7 +10712,7 @@ class DocService {
10712
10712
  const result = [];
10713
10713
  {
10714
10714
  result.push("---");
10715
- result.push(`title: ${agentSchema.agentName}.md`);
10715
+ result.push(`title: ${prefix}/${agentSchema.agentName}.md`);
10716
10716
  result.push("---");
10717
10717
  result.push("");
10718
10718
  }
@@ -10927,7 +10927,7 @@ class DocService {
10927
10927
  * @param {string} [dirName=join(process.cwd(), "docs/chat")] - The base directory for documentation output, defaults to "docs/chat" in the current working directory.
10928
10928
  * @returns {Promise<void>} A promise resolving when all documentation files are written.
10929
10929
  */
10930
- this.dumpDocs = async (dirName = join(process.cwd(), "docs/chat")) => {
10930
+ this.dumpDocs = async (prefix = "swarm", dirName = join(process.cwd(), "docs/chat")) => {
10931
10931
  GLOBAL_CONFIG.CC_LOGGER_ENABLE_INFO &&
10932
10932
  this.loggerService.info("docService dumpDocs", {
10933
10933
  dirName,
@@ -10942,13 +10942,13 @@ class DocService {
10942
10942
  this.loggerService.info("docService dumpDocs building swarm docs");
10943
10943
  await Promise.all(this.swarmValidationService.getSwarmList().map(async (swarmName) => {
10944
10944
  const swarmSchema = this.swarmSchemaService.get(swarmName);
10945
- await this.writeSwarmDoc(swarmSchema, dirName);
10945
+ await this.writeSwarmDoc(swarmSchema, prefix, dirName);
10946
10946
  }));
10947
10947
  GLOBAL_CONFIG.CC_LOGGER_ENABLE_INFO &&
10948
10948
  this.loggerService.info("docService dumpDocs building agent docs");
10949
10949
  await Promise.all(this.agentValidationService.getAgentList().map(async (agentName) => {
10950
10950
  const agentSchema = this.agentSchemaService.get(agentName);
10951
- await this.writeAgentDoc(agentSchema, dirName);
10951
+ await this.writeAgentDoc(agentSchema, prefix, dirName);
10952
10952
  }));
10953
10953
  };
10954
10954
  /**
@@ -13177,7 +13177,7 @@ const METHOD_NAME$U = "cli.dumpDocs";
13177
13177
  * @param {function} [PlantUML] - An optional function to process PlantUML diagrams.
13178
13178
  * @returns {Promise<void>} - A promise that resolves when the documentation has been dumped.
13179
13179
  */
13180
- const dumpDocs = beginContext((dirName = "./docs/chat", PlantUML) => {
13180
+ const dumpDocs = beginContext((prefix = "swarm", dirName = "./docs/chat", PlantUML) => {
13181
13181
  GLOBAL_CONFIG.CC_LOGGER_ENABLE_LOG &&
13182
13182
  swarm$1.loggerService.log(METHOD_NAME$U, {
13183
13183
  dirName,
@@ -13199,7 +13199,7 @@ const dumpDocs = beginContext((dirName = "./docs/chat", PlantUML) => {
13199
13199
  console.error(`agent-swarm missing dependsOn for agentName=${agentName}`);
13200
13200
  }
13201
13201
  });
13202
- return swarm$1.docService.dumpDocs(dirName);
13202
+ return swarm$1.docService.dumpDocs(prefix, dirName);
13203
13203
  });
13204
13204
 
13205
13205
  const METHOD_NAME$T = "cli.dumpAgent";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-swarm-kit",
3
- "version": "1.0.209",
3
+ "version": "1.0.210",
4
4
  "description": "A TypeScript library for building orchestrated framework-agnostic multi-agent AI systems",
5
5
  "author": {
6
6
  "name": "Petr Tripolsky",
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