opencode-swarm 6.86.10 → 6.86.11

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/cli/index.js CHANGED
@@ -18580,7 +18580,7 @@ import * as path33 from "path";
18580
18580
  // package.json
18581
18581
  var package_default = {
18582
18582
  name: "opencode-swarm",
18583
- version: "6.86.10",
18583
+ version: "6.86.11",
18584
18584
  description: "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
18585
18585
  main: "dist/index.js",
18586
18586
  types: "dist/index.d.ts",
@@ -19091,13 +19091,6 @@ var AgentOverrideConfigSchema = exports_external.object({
19091
19091
  temperature: exports_external.number().min(0).max(2).optional(),
19092
19092
  disabled: exports_external.boolean().optional(),
19093
19093
  fallback_models: exports_external.array(exports_external.string()).max(3).optional()
19094
- }).refine((data) => {
19095
- if (data.model && !data.fallback_models) {
19096
- console.warn(`[opencode-swarm] WARNING: Agent configured with custom model "${data.model}" but no fallback_models. This means if the custom model fails, there is no fallback protection. Consider adding fallback_models for reliability.`);
19097
- }
19098
- return true;
19099
- }, {
19100
- message: "Agent configuration warning: Custom model without fallback protection"
19101
19094
  });
19102
19095
  var SwarmConfigSchema = exports_external.object({
19103
19096
  name: exports_external.string().optional(),
package/dist/index.js CHANGED
@@ -33,7 +33,7 @@ var package_default;
33
33
  var init_package = __esm(() => {
34
34
  package_default = {
35
35
  name: "opencode-swarm",
36
- version: "6.86.10",
36
+ version: "6.86.11",
37
37
  description: "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
38
38
  main: "dist/index.js",
39
39
  types: "dist/index.d.ts",
@@ -14798,13 +14798,6 @@ var init_schema = __esm(() => {
14798
14798
  temperature: exports_external.number().min(0).max(2).optional(),
14799
14799
  disabled: exports_external.boolean().optional(),
14800
14800
  fallback_models: exports_external.array(exports_external.string()).max(3).optional()
14801
- }).refine((data) => {
14802
- if (data.model && !data.fallback_models) {
14803
- console.warn(`[opencode-swarm] WARNING: Agent configured with custom model "${data.model}" but no fallback_models. This means if the custom model fails, there is no fallback protection. Consider adding fallback_models for reliability.`);
14804
- }
14805
- return true;
14806
- }, {
14807
- message: "Agent configuration warning: Custom model without fallback protection"
14808
14801
  });
14809
14802
  SwarmConfigSchema = exports_external.object({
14810
14803
  name: exports_external.string().optional(),
@@ -88776,6 +88769,34 @@ async function initializeOpenCodeSwarm(ctx) {
88776
88769
  }
88777
88770
  }
88778
88771
  }
88772
+ {
88773
+ const noFallback = [];
88774
+ const hasNoFallback = (cfg) => cfg.model && (!cfg.fallback_models || cfg.fallback_models.length === 0);
88775
+ if (config3.agents) {
88776
+ for (const [name2, cfg] of Object.entries(config3.agents)) {
88777
+ if (hasNoFallback(cfg))
88778
+ noFallback.push(`${name2}(${cfg.model})`);
88779
+ }
88780
+ }
88781
+ if (config3.swarms) {
88782
+ for (const [swarmId, swarm] of Object.entries(config3.swarms)) {
88783
+ if (swarm.agents) {
88784
+ for (const [name2, cfg] of Object.entries(swarm.agents)) {
88785
+ if (hasNoFallback(cfg))
88786
+ noFallback.push(`${swarmId}/${name2}(${cfg.model})`);
88787
+ }
88788
+ }
88789
+ }
88790
+ }
88791
+ if (noFallback.length > 0) {
88792
+ const msg = `[opencode-swarm] WARNING: ${noFallback.length} agent(s) use a custom model without fallback_models: ` + noFallback.join(", ") + '. Add "fallback_models": ["model-a"] to each agent config for reliability.';
88793
+ if (!config3.quiet) {
88794
+ console.warn(msg);
88795
+ } else {
88796
+ addDeferredWarning(msg);
88797
+ }
88798
+ }
88799
+ }
88779
88800
  swarmState.fullAutoEnabledInConfig = config3.full_auto?.enabled === true;
88780
88801
  swarmState.opencodeClient = ctx.client;
88781
88802
  await loadSnapshot(ctx.directory);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-swarm",
3
- "version": "6.86.10",
3
+ "version": "6.86.11",
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",