@hung319/opencode-hive 1.3.7 → 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 +34 -32
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -25699,38 +25699,40 @@ ${Object.entries(customAgentConfigs).sort(([left], [right]) => left.localeCompar
|
|
|
25699
25699
|
allAgents["hygienic-reviewer"] = builtInAgentConfigs["hygienic-reviewer"];
|
|
25700
25700
|
}
|
|
25701
25701
|
Object.assign(allAgents, customSubagents);
|
|
25702
|
-
const
|
|
25703
|
-
|
|
25704
|
-
|
|
25705
|
-
|
|
25706
|
-
|
|
25707
|
-
|
|
25708
|
-
|
|
25709
|
-
|
|
25710
|
-
|
|
25711
|
-
|
|
25712
|
-
|
|
25713
|
-
|
|
25714
|
-
|
|
25715
|
-
|
|
25716
|
-
|
|
25717
|
-
|
|
25718
|
-
|
|
25719
|
-
|
|
25720
|
-
|
|
25721
|
-
|
|
25722
|
-
|
|
25723
|
-
|
|
25724
|
-
|
|
25725
|
-
|
|
25726
|
-
|
|
25727
|
-
|
|
25728
|
-
|
|
25729
|
-
|
|
25730
|
-
|
|
25731
|
-
|
|
25732
|
-
|
|
25733
|
-
|
|
25702
|
+
const primaryAgent = agentMode === "unified" ? "zetta" : "architect-planner";
|
|
25703
|
+
for (const [agentName, agentConfig] of Object.entries(allAgents)) {
|
|
25704
|
+
if (agentName !== primaryAgent && agentConfig && typeof agentConfig === "object") {
|
|
25705
|
+
agentConfig.mode = "subagent";
|
|
25706
|
+
}
|
|
25707
|
+
}
|
|
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";
|
|
25732
|
+
}
|
|
25733
|
+
}
|
|
25734
|
+
Object.assign(configAgent, allAgents);
|
|
25735
|
+
opencodeConfig.default_agent = primaryAgent;
|
|
25734
25736
|
const configMcp = opencodeConfig.mcp;
|
|
25735
25737
|
const mcpToAdd = builtinMcps;
|
|
25736
25738
|
if (!configMcp) {
|