opencode-swarm 6.35.0 → 6.35.1

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -50951,7 +50951,9 @@ function createGuardrailsHooks(directory, directoryOrConfig, config3) {
50951
50951
  const baseAgentName = session.agentName ? session.agentName.replace(/^[^_]+[_]/, "") : "";
50952
50952
  const fallbackModel = resolveFallbackModel(baseAgentName, session.model_fallback_index, getSwarmAgents());
50953
50953
  if (fallbackModel) {
50954
- telemetry.modelFallback(input.sessionID, session.agentName, "primary", fallbackModel, "transient_model_error");
50954
+ const swarmAgents = getSwarmAgents();
50955
+ const primaryModel = swarmAgents?.[baseAgentName]?.model ?? "default";
50956
+ telemetry.modelFallback(input.sessionID, session.agentName, primaryModel, fallbackModel, "transient_model_error");
50955
50957
  session.pendingAdvisoryMessages ??= [];
50956
50958
  session.pendingAdvisoryMessages.push(`MODEL FALLBACK: Transient model error detected (attempt ${session.model_fallback_index}). ` + `Configured fallback model: "${fallbackModel}". ` + `Consider retrying with this model or using /swarm handoff to reset.`);
50957
50959
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-swarm",
3
- "version": "6.35.0",
3
+ "version": "6.35.1",
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",