@hung319/opencode-hive 1.3.8 → 1.3.9
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/dist/index.js +25 -28
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -25705,36 +25705,33 @@ ${Object.entries(customAgentConfigs).sort(([left], [right]) => left.localeCompar
|
|
|
25705
25705
|
agentConfig.mode = "subagent";
|
|
25706
25706
|
}
|
|
25707
25707
|
}
|
|
25708
|
-
const configAgent = opencodeConfig.agent;
|
|
25709
|
-
|
|
25710
|
-
|
|
25711
|
-
|
|
25712
|
-
|
|
25713
|
-
|
|
25714
|
-
|
|
25715
|
-
|
|
25716
|
-
|
|
25717
|
-
|
|
25718
|
-
|
|
25719
|
-
|
|
25720
|
-
|
|
25721
|
-
|
|
25722
|
-
|
|
25723
|
-
|
|
25724
|
-
|
|
25725
|
-
|
|
25726
|
-
|
|
25727
|
-
|
|
25728
|
-
|
|
25729
|
-
|
|
25730
|
-
|
|
25731
|
-
|
|
25732
|
-
if (agentName !== primaryAgent && agentConfig && typeof agentConfig === "object") {
|
|
25733
|
-
agentConfig.mode = "subagent";
|
|
25734
|
-
}
|
|
25708
|
+
const configAgent = opencodeConfig.agent ??= {};
|
|
25709
|
+
delete configAgent.hive;
|
|
25710
|
+
delete configAgent.architect;
|
|
25711
|
+
delete configAgent.swarm;
|
|
25712
|
+
delete configAgent.scout;
|
|
25713
|
+
delete configAgent.forager;
|
|
25714
|
+
delete configAgent.hygienic;
|
|
25715
|
+
delete configAgent.receiver;
|
|
25716
|
+
delete configAgent["hive"];
|
|
25717
|
+
delete configAgent["architect-planner"];
|
|
25718
|
+
delete configAgent["swarm-orchestrator"];
|
|
25719
|
+
delete configAgent["scout-researcher"];
|
|
25720
|
+
delete configAgent["forager-worker"];
|
|
25721
|
+
delete configAgent["hygienic-reviewer"];
|
|
25722
|
+
const opencodeBuiltInAgents = ["build", "plan", "triage", "docs", "ask", "claude-code"];
|
|
25723
|
+
for (const agentName of opencodeBuiltInAgents) {
|
|
25724
|
+
if (!configAgent[agentName]) {
|
|
25725
|
+
configAgent[agentName] = {};
|
|
25726
|
+
}
|
|
25727
|
+
configAgent[agentName].mode = "subagent";
|
|
25728
|
+
}
|
|
25729
|
+
for (const [agentName, agentConfig] of Object.entries(allAgents)) {
|
|
25730
|
+
if (agentName !== primaryAgent && agentConfig && typeof agentConfig === "object") {
|
|
25731
|
+
agentConfig.mode = "subagent";
|
|
25735
25732
|
}
|
|
25736
|
-
Object.assign(configAgent, allAgents);
|
|
25737
25733
|
}
|
|
25734
|
+
Object.assign(configAgent, allAgents);
|
|
25738
25735
|
opencodeConfig.default_agent = primaryAgent;
|
|
25739
25736
|
const configMcp = opencodeConfig.mcp;
|
|
25740
25737
|
const mcpToAdd = builtinMcps;
|