opencode-swarm-plugin 0.11.1 → 0.11.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.
- package/bin/swarm.ts +5 -5
- package/package.json +1 -1
package/bin/swarm.ts
CHANGED
|
@@ -635,11 +635,11 @@ async function setup() {
|
|
|
635
635
|
|
|
636
636
|
// Check if already configured FIRST
|
|
637
637
|
const configDir = join(homedir(), ".config", "opencode");
|
|
638
|
-
const
|
|
638
|
+
const pluginDir = join(configDir, "plugin");
|
|
639
639
|
const commandsDir = join(configDir, "commands");
|
|
640
640
|
const agentsDir = join(configDir, "agents");
|
|
641
641
|
|
|
642
|
-
const pluginPath = join(
|
|
642
|
+
const pluginPath = join(pluginDir, "swarm.ts");
|
|
643
643
|
const commandPath = join(commandsDir, "swarm.md");
|
|
644
644
|
const plannerAgentPath = join(agentsDir, "swarm-planner.md");
|
|
645
645
|
const workerAgentPath = join(agentsDir, "swarm-worker.md");
|
|
@@ -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, commandsDir, agentsDir]) {
|
|
959
959
|
if (!existsSync(dir)) {
|
|
960
960
|
mkdirSync(dir, { recursive: true });
|
|
961
961
|
}
|
|
@@ -1080,7 +1080,7 @@ async function version() {
|
|
|
1080
1080
|
|
|
1081
1081
|
function config() {
|
|
1082
1082
|
const configDir = join(homedir(), ".config", "opencode");
|
|
1083
|
-
const pluginPath = join(configDir, "
|
|
1083
|
+
const pluginPath = join(configDir, "plugin", "swarm.ts");
|
|
1084
1084
|
const commandPath = join(configDir, "commands", "swarm.md");
|
|
1085
1085
|
const plannerAgentPath = join(configDir, "agents", "swarm-planner.md");
|
|
1086
1086
|
const workerAgentPath = join(configDir, "agents", "swarm-worker.md");
|
|
@@ -1192,7 +1192,7 @@ ${cyan("Customization:")}
|
|
|
1192
1192
|
${dim("~/.config/opencode/commands/swarm.md")} - /swarm command prompt
|
|
1193
1193
|
${dim("~/.config/opencode/agents/swarm-planner.md")} - @swarm-planner (coordinator)
|
|
1194
1194
|
${dim("~/.config/opencode/agents/swarm-worker.md")} - @swarm-worker (fast executor)
|
|
1195
|
-
${dim("~/.config/opencode/
|
|
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