opencode-swarm 2.0.1 → 2.0.2

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.
Files changed (2) hide show
  1. package/dist/index.js +12 -1
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -26822,7 +26822,8 @@ var OpenCodeSwarm = async (ctx) => {
26822
26822
  log("Plugin initialized", {
26823
26823
  directory: ctx.directory,
26824
26824
  maxIterations: config3.max_iterations,
26825
- agentCount: Object.keys(agents).length
26825
+ agentCount: Object.keys(agents).length,
26826
+ agentNames: Object.keys(agents)
26826
26827
  });
26827
26828
  return {
26828
26829
  name: "opencode-swarm",
@@ -26831,6 +26832,16 @@ var OpenCodeSwarm = async (ctx) => {
26831
26832
  detect_domains,
26832
26833
  extract_code_blocks
26833
26834
  },
26835
+ config: async (opencodeConfig) => {
26836
+ if (!opencodeConfig.agent) {
26837
+ opencodeConfig.agent = { ...agents };
26838
+ } else {
26839
+ Object.assign(opencodeConfig.agent, agents);
26840
+ }
26841
+ log("Config applied", {
26842
+ agents: Object.keys(agents)
26843
+ });
26844
+ },
26834
26845
  "experimental.chat.messages.transform": pipelineHook["experimental.chat.messages.transform"]
26835
26846
  };
26836
26847
  };
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "opencode-swarm",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
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",
7
7
  "bin": {
8
- "opencode-swarm": "dist/cli/index.js"
8
+ "opencode-swarm": "./dist/cli/index.js"
9
9
  },
10
10
  "type": "module",
11
11
  "license": "MIT",