opencode-swarm 3.3.0 → 3.4.0

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.
@@ -1,9 +1,9 @@
1
- export declare const SME_AGENTS: readonly ["sme_windows", "sme_powershell", "sme_python", "sme_oracle", "sme_network", "sme_security", "sme_linux", "sme_vmware", "sme_azure", "sme_active_directory", "sme_ui_ux", "sme_web", "sme_database", "sme_devops", "sme_api"];
1
+ export declare const SME_AGENTS: readonly ["sme_windows", "sme_powershell", "sme_python", "sme_oracle", "sme_network", "sme_security", "sme_linux", "sme_vmware", "sme_azure", "sme_active_directory", "sme_ui_ux", "sme_web", "sme_database", "sme_devops", "sme_api", "sme_ai"];
2
2
  export declare const QA_AGENTS: readonly ["security_reviewer", "auditor"];
3
3
  export declare const PIPELINE_AGENTS: readonly ["explorer", "coder", "test_engineer"];
4
4
  export declare const ORCHESTRATOR_NAME: "architect";
5
- export declare const ALL_SUBAGENT_NAMES: readonly ["sme_windows", "sme_powershell", "sme_python", "sme_oracle", "sme_network", "sme_security", "sme_linux", "sme_vmware", "sme_azure", "sme_active_directory", "sme_ui_ux", "sme_web", "sme_database", "sme_devops", "sme_api", "security_reviewer", "auditor", "explorer", "coder", "test_engineer"];
6
- export declare const ALL_AGENT_NAMES: readonly ["architect", "sme_windows", "sme_powershell", "sme_python", "sme_oracle", "sme_network", "sme_security", "sme_linux", "sme_vmware", "sme_azure", "sme_active_directory", "sme_ui_ux", "sme_web", "sme_database", "sme_devops", "sme_api", "security_reviewer", "auditor", "explorer", "coder", "test_engineer"];
5
+ export declare const ALL_SUBAGENT_NAMES: readonly ["sme_windows", "sme_powershell", "sme_python", "sme_oracle", "sme_network", "sme_security", "sme_linux", "sme_vmware", "sme_azure", "sme_active_directory", "sme_ui_ux", "sme_web", "sme_database", "sme_devops", "sme_api", "sme_ai", "security_reviewer", "auditor", "explorer", "coder", "test_engineer"];
6
+ export declare const ALL_AGENT_NAMES: readonly ["architect", "sme_windows", "sme_powershell", "sme_python", "sme_oracle", "sme_network", "sme_security", "sme_linux", "sme_vmware", "sme_azure", "sme_active_directory", "sme_ui_ux", "sme_web", "sme_database", "sme_devops", "sme_api", "sme_ai", "security_reviewer", "auditor", "explorer", "coder", "test_engineer"];
7
7
  export type SMEAgentName = (typeof SME_AGENTS)[number];
8
8
  export type QAAgentName = (typeof QA_AGENTS)[number];
9
9
  export type PipelineAgentName = (typeof PIPELINE_AGENTS)[number];
package/dist/index.js CHANGED
@@ -26,7 +26,8 @@ var SME_AGENTS = [
26
26
  "sme_web",
27
27
  "sme_database",
28
28
  "sme_devops",
29
- "sme_api"
29
+ "sme_api",
30
+ "sme_ai"
30
31
  ];
31
32
  var QA_AGENTS = ["security_reviewer", "auditor"];
32
33
  var PIPELINE_AGENTS = ["explorer", "coder", "test_engineer"];
@@ -14673,8 +14674,15 @@ function createSwarmAgents(swarmId, swarmConfig, isDefault, pluginConfig) {
14673
14674
  architect.description = `[${swarmName}] ${architect.description}`;
14674
14675
  const swarmHeader = `## \u26A0\uFE0F YOU ARE THE ${swarmName.toUpperCase()} SWARM ARCHITECT
14675
14676
 
14676
- Your agents all have the "${swarmId}_" prefix. You MUST use this prefix when delegating.
14677
- If you call an agent WITHOUT the "${swarmId}_" prefix, you will call the WRONG swarm's agents!
14677
+ Your swarm ID is "${swarmId}". ALL your agents have the "${swarmId}_" prefix:
14678
+ - @${swarmId}_explorer (not @explorer)
14679
+ - @${swarmId}_coder (not @coder)
14680
+ - @${swarmId}_sme_security (not @sme_security)
14681
+ - @${swarmId}_auditor (not @auditor)
14682
+ - etc.
14683
+
14684
+ CRITICAL: Agents without the "${swarmId}_" prefix DO NOT EXIST or belong to a DIFFERENT swarm.
14685
+ If you call @coder instead of @${swarmId}_coder, the call will FAIL or go to the wrong swarm.
14678
14686
 
14679
14687
  `;
14680
14688
  architect.config.prompt = swarmHeader + architect.config.prompt;
@@ -14725,11 +14733,9 @@ function createAgents(config2) {
14725
14733
  const allAgents = [];
14726
14734
  const swarms = config2?.swarms;
14727
14735
  if (swarms && Object.keys(swarms).length > 0) {
14728
- const swarmIds = Object.keys(swarms);
14729
- const defaultSwarmId = swarmIds.includes("default") ? "default" : swarmIds[0];
14730
- for (const swarmId of swarmIds) {
14736
+ for (const swarmId of Object.keys(swarms)) {
14731
14737
  const swarmConfig = swarms[swarmId];
14732
- const isDefault = swarmId === defaultSwarmId;
14738
+ const isDefault = swarmId === "default";
14733
14739
  const swarmAgents = createSwarmAgents(swarmId, swarmConfig, isDefault, config2);
14734
14740
  allAgents.push(...swarmAgents);
14735
14741
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-swarm",
3
- "version": "3.3.0",
3
+ "version": "3.4.0",
4
4
  "description": "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",