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.
- package/README.md +8 -8
- package/bin/swarm.ts +16 -16
- 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/
|
|
49
|
-
◆ Command: ~/.config/opencode/
|
|
50
|
-
◆ Agent: ~/.config/opencode/
|
|
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/
|
|
93
|
+
~/.config/opencode/plugin/swarm.ts
|
|
94
94
|
|
|
95
95
|
📜 /swarm command prompt
|
|
96
|
-
~/.config/opencode/
|
|
96
|
+
~/.config/opencode/command/swarm.md
|
|
97
97
|
|
|
98
98
|
🤖 @swarm-planner agent
|
|
99
|
-
~/.config/opencode/
|
|
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/
|
|
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/
|
|
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
|
|
639
|
-
const
|
|
640
|
-
const
|
|
638
|
+
const pluginDir = join(configDir, "plugin");
|
|
639
|
+
const commandDir = join(configDir, "command");
|
|
640
|
+
const agentDir = join(configDir, "agent");
|
|
641
641
|
|
|
642
|
-
const pluginPath = join(
|
|
643
|
-
const commandPath = join(
|
|
644
|
-
const plannerAgentPath = join(
|
|
645
|
-
const workerAgentPath = join(
|
|
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 [
|
|
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, "
|
|
1084
|
-
const commandPath = join(configDir, "
|
|
1085
|
-
const plannerAgentPath = join(configDir, "
|
|
1086
|
-
const workerAgentPath = join(configDir, "
|
|
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/
|
|
1193
|
-
${dim("~/.config/opencode/
|
|
1194
|
-
${dim("~/.config/opencode/
|
|
1195
|
-
${dim("~/.config/opencode/
|
|
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