replicas-cli 0.3.213 → 0.3.215

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.cjs +5 -3
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -474,11 +474,12 @@ var init_agent_availability = __esm({
474
474
  function isAgentFallbackReason(value) {
475
475
  return AGENT_FALLBACK_REASONS.some((reason) => reason === value);
476
476
  }
477
- var AGENT_FALLBACK_REASONS;
477
+ var AGENT_FALLBACK_REASONS, EXHAUSTED_COOLDOWN_MS;
478
478
  var init_agent_quota = __esm({
479
479
  "../shared/src/agent-quota.ts"() {
480
480
  "use strict";
481
- AGENT_FALLBACK_REASONS = ["rate_limit", "out_of_credits", "credits_required", "auth_failed"];
481
+ AGENT_FALLBACK_REASONS = ["rate_limit", "out_of_credits", "credits_required", "auth_failed", "model_unavailable"];
482
+ EXHAUSTED_COOLDOWN_MS = 60 * 60 * 1e3;
482
483
  }
483
484
  });
484
485
 
@@ -29894,6 +29895,7 @@ function coerceClaudeResultPayload(payload) {
29894
29895
  is_error: typeof payload.is_error === "boolean" ? payload.is_error : void 0,
29895
29896
  subtype: typeof payload.subtype === "string" ? payload.subtype : void 0,
29896
29897
  errors: Array.isArray(payload.errors) ? payload.errors.filter((e) => typeof e === "string") : void 0,
29898
+ result: typeof payload.result === "string" ? payload.result : void 0,
29897
29899
  terminal_reason: typeof payload.terminal_reason === "string" ? payload.terminal_reason : void 0
29898
29900
  };
29899
29901
  }
@@ -30246,7 +30248,7 @@ function parseClaudeEvents(events, parentToolUseId) {
30246
30248
  messages.push({
30247
30249
  id: `error-${event.timestamp}`,
30248
30250
  type: "error",
30249
- message: genuineErrors.length > 0 ? genuineErrors.join("\n") : "Claude session encountered an unexpected error.",
30251
+ message: genuineErrors.length > 0 ? genuineErrors.join("\n") : payload.result || "Claude session encountered an unexpected error.",
30250
30252
  timestamp: event.timestamp
30251
30253
  });
30252
30254
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-cli",
3
- "version": "0.3.213",
3
+ "version": "0.3.215",
4
4
  "description": "CLI for managing Replicas workspaces - SSH into cloud dev environments with automatic port forwarding",
5
5
  "main": "dist/index.cjs",
6
6
  "bin": {