opencode-swarm 3.3.1 → 3.4.0
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 +18 -13
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -46,13 +46,13 @@ var CATEGORY_PREFIXES = {
|
|
|
46
46
|
qa: "_qa"
|
|
47
47
|
};
|
|
48
48
|
var DEFAULT_MODELS = {
|
|
49
|
-
architect: "
|
|
50
|
-
explorer: "
|
|
51
|
-
coder: "
|
|
52
|
-
test_engineer: "
|
|
53
|
-
_sme: "
|
|
54
|
-
_qa: "
|
|
55
|
-
default: "google/gemini-2.
|
|
49
|
+
architect: "anthropic/claude-sonnet-4-5",
|
|
50
|
+
explorer: "google/gemini-2.0-flash",
|
|
51
|
+
coder: "anthropic/claude-sonnet-4-5",
|
|
52
|
+
test_engineer: "google/gemini-2.0-flash",
|
|
53
|
+
_sme: "google/gemini-2.0-flash",
|
|
54
|
+
_qa: "google/gemini-2.0-flash",
|
|
55
|
+
default: "google/gemini-2.0-flash"
|
|
56
56
|
};
|
|
57
57
|
var DOMAIN_PATTERNS = {
|
|
58
58
|
windows: [
|
|
@@ -14674,8 +14674,15 @@ function createSwarmAgents(swarmId, swarmConfig, isDefault, pluginConfig) {
|
|
|
14674
14674
|
architect.description = `[${swarmName}] ${architect.description}`;
|
|
14675
14675
|
const swarmHeader = `## \u26A0\uFE0F YOU ARE THE ${swarmName.toUpperCase()} SWARM ARCHITECT
|
|
14676
14676
|
|
|
14677
|
-
Your
|
|
14678
|
-
|
|
14677
|
+
Your swarm ID is "${swarmId}". ALL your agents have the "${swarmId}_" prefix:
|
|
14678
|
+
- @${swarmId}_explorer (not @explorer)
|
|
14679
|
+
- @${swarmId}_coder (not @coder)
|
|
14680
|
+
- @${swarmId}_sme_security (not @sme_security)
|
|
14681
|
+
- @${swarmId}_auditor (not @auditor)
|
|
14682
|
+
- etc.
|
|
14683
|
+
|
|
14684
|
+
CRITICAL: Agents without the "${swarmId}_" prefix DO NOT EXIST or belong to a DIFFERENT swarm.
|
|
14685
|
+
If you call @coder instead of @${swarmId}_coder, the call will FAIL or go to the wrong swarm.
|
|
14679
14686
|
|
|
14680
14687
|
`;
|
|
14681
14688
|
architect.config.prompt = swarmHeader + architect.config.prompt;
|
|
@@ -14726,11 +14733,9 @@ function createAgents(config2) {
|
|
|
14726
14733
|
const allAgents = [];
|
|
14727
14734
|
const swarms = config2?.swarms;
|
|
14728
14735
|
if (swarms && Object.keys(swarms).length > 0) {
|
|
14729
|
-
const
|
|
14730
|
-
const defaultSwarmId = swarmIds.includes("default") ? "default" : swarmIds[0];
|
|
14731
|
-
for (const swarmId of swarmIds) {
|
|
14736
|
+
for (const swarmId of Object.keys(swarms)) {
|
|
14732
14737
|
const swarmConfig = swarms[swarmId];
|
|
14733
|
-
const isDefault = swarmId ===
|
|
14738
|
+
const isDefault = swarmId === "default";
|
|
14734
14739
|
const swarmAgents = createSwarmAgents(swarmId, swarmConfig, isDefault, config2);
|
|
14735
14740
|
allAgents.push(...swarmAgents);
|
|
14736
14741
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-swarm",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.0",
|
|
4
4
|
"description": "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|