opencode-swarm-plugin 0.11.1 → 0.11.3

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 (3) hide show
  1. package/README.md +8 -8
  2. package/bin/swarm.ts +16 -16
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -45,9 +45,9 @@ The setup wizard handles everything:
45
45
 
46
46
  ◇ Setting up OpenCode integration...
47
47
 
48
- ◆ Plugin: ~/.config/opencode/plugins/swarm.ts
49
- ◆ Command: ~/.config/opencode/commands/swarm.md
50
- ◆ Agent: ~/.config/opencode/agents/swarm-planner.md
48
+ ◆ Plugin: ~/.config/opencode/plugin/swarm.ts
49
+ ◆ Command: ~/.config/opencode/command/swarm.md
50
+ ◆ Agent: ~/.config/opencode/agent/swarm-planner.md
51
51
 
52
52
  └ Setup complete!
53
53
  ```
@@ -90,18 +90,18 @@ Run `swarm config` to see your config file paths:
90
90
 
91
91
  ```
92
92
  🔌 Plugin loader
93
- ~/.config/opencode/plugins/swarm.ts
93
+ ~/.config/opencode/plugin/swarm.ts
94
94
 
95
95
  📜 /swarm command prompt
96
- ~/.config/opencode/commands/swarm.md
96
+ ~/.config/opencode/command/swarm.md
97
97
 
98
98
  🤖 @swarm-planner agent
99
- ~/.config/opencode/agents/swarm-planner.md
99
+ ~/.config/opencode/agent/swarm-planner.md
100
100
  ```
101
101
 
102
102
  ### /swarm Command
103
103
 
104
- The `/swarm` command is defined in `~/.config/opencode/commands/swarm.md`:
104
+ The `/swarm` command is defined in `~/.config/opencode/command/swarm.md`:
105
105
 
106
106
  ```markdown
107
107
  ---
@@ -138,7 +138,7 @@ Begin decomposition now.
138
138
 
139
139
  ### @swarm-planner Agent
140
140
 
141
- The `@swarm-planner` agent is defined in `~/.config/opencode/agents/swarm-planner.md`:
141
+ The `@swarm-planner` agent is defined in `~/.config/opencode/agent/swarm-planner.md`:
142
142
 
143
143
  ````markdown
144
144
  ---
package/bin/swarm.ts CHANGED
@@ -635,14 +635,14 @@ async function setup() {
635
635
 
636
636
  // Check if already configured FIRST
637
637
  const configDir = join(homedir(), ".config", "opencode");
638
- const pluginsDir = join(configDir, "plugins");
639
- const commandsDir = join(configDir, "commands");
640
- const agentsDir = join(configDir, "agents");
638
+ const pluginDir = join(configDir, "plugin");
639
+ const commandDir = join(configDir, "command");
640
+ const agentDir = join(configDir, "agent");
641
641
 
642
- const pluginPath = join(pluginsDir, "swarm.ts");
643
- const commandPath = join(commandsDir, "swarm.md");
644
- const plannerAgentPath = join(agentsDir, "swarm-planner.md");
645
- const workerAgentPath = join(agentsDir, "swarm-worker.md");
642
+ const pluginPath = join(pluginDir, "swarm.ts");
643
+ const commandPath = join(commandDir, "swarm.md");
644
+ const plannerAgentPath = join(agentDir, "swarm-planner.md");
645
+ const workerAgentPath = join(agentDir, "swarm-worker.md");
646
646
 
647
647
  const existingFiles = [
648
648
  pluginPath,
@@ -955,7 +955,7 @@ async function setup() {
955
955
  p.log.step("Setting up OpenCode integration...");
956
956
 
957
957
  // Create directories if needed
958
- for (const dir of [pluginsDir, commandsDir, agentsDir]) {
958
+ for (const dir of [pluginDir, commandDir, agentDir]) {
959
959
  if (!existsSync(dir)) {
960
960
  mkdirSync(dir, { recursive: true });
961
961
  }
@@ -1080,10 +1080,10 @@ async function version() {
1080
1080
 
1081
1081
  function config() {
1082
1082
  const configDir = join(homedir(), ".config", "opencode");
1083
- const pluginPath = join(configDir, "plugins", "swarm.ts");
1084
- const commandPath = join(configDir, "commands", "swarm.md");
1085
- const plannerAgentPath = join(configDir, "agents", "swarm-planner.md");
1086
- const workerAgentPath = join(configDir, "agents", "swarm-worker.md");
1083
+ const pluginPath = join(configDir, "plugin", "swarm.ts");
1084
+ const commandPath = join(configDir, "command", "swarm.md");
1085
+ const plannerAgentPath = join(configDir, "agent", "swarm-planner.md");
1086
+ const workerAgentPath = join(configDir, "agent", "swarm-worker.md");
1087
1087
 
1088
1088
  console.log(yellow(BANNER));
1089
1089
  console.log(dim(" " + TAGLINE + " v" + VERSION));
@@ -1189,10 +1189,10 @@ ${cyan("Usage in OpenCode:")}
1189
1189
 
1190
1190
  ${cyan("Customization:")}
1191
1191
  Edit the generated files to customize behavior:
1192
- ${dim("~/.config/opencode/commands/swarm.md")} - /swarm command prompt
1193
- ${dim("~/.config/opencode/agents/swarm-planner.md")} - @swarm-planner (coordinator)
1194
- ${dim("~/.config/opencode/agents/swarm-worker.md")} - @swarm-worker (fast executor)
1195
- ${dim("~/.config/opencode/plugins/swarm.ts")} - Plugin loader
1192
+ ${dim("~/.config/opencode/command/swarm.md")} - /swarm command prompt
1193
+ ${dim("~/.config/opencode/agent/swarm-planner.md")} - @swarm-planner (coordinator)
1194
+ ${dim("~/.config/opencode/agent/swarm-worker.md")} - @swarm-worker (fast executor)
1195
+ ${dim("~/.config/opencode/plugin/swarm.ts")} - Plugin loader
1196
1196
 
1197
1197
  ${dim("Docs: https://github.com/joelhooks/opencode-swarm-plugin")}
1198
1198
  `);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-swarm-plugin",
3
- "version": "0.11.1",
3
+ "version": "0.11.3",
4
4
  "description": "Multi-agent swarm coordination for OpenCode with learning capabilities, beads integration, and Agent Mail",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",