behavior-wrapped 0.2.17 → 0.2.19

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.
@@ -496,7 +496,7 @@ function addBatchDetails(error, index, total) {
496
496
  }
497
497
 
498
498
  function retryableEmptyRelayResponse(response, body) {
499
- return response?.status === 502 && new Set(["empty_content", "invalid_json", "missing_keys"]).has(body?.diagnostic?.code);
499
+ return response?.status === 502 && new Set(["empty_content", "invalid_json", "missing_keys", "missing_arrays", "invalid_items"]).has(body?.diagnostic?.code);
500
500
  }
501
501
 
502
502
  export async function judgeWorkarounds(bundle, apiKey, { fetchImpl = fetch, model = OPENROUTER_MODEL, timeoutMs = JUDGE_TIMEOUT_MS, reasoningEffort = "none", onProgress } = {}) {
@@ -202,9 +202,9 @@ export function buildLocalPhraseCard(candidates) {
202
202
  if (!candidates.length) return null;
203
203
  return phraseCardFromSelection(candidates, candidates[0].candidate_id, {
204
204
  model: "Local deterministic selection",
205
- provider: "Local test mode",
205
+ provider: "Local deterministic analysis",
206
206
  latencyMs: 0,
207
- method: "Test mode selected the highest-ranked locally counted phrase without an LLM call.",
207
+ method: "Selected the highest-ranked locally counted phrase without an LLM call.",
208
208
  });
209
209
  }
210
210