@aiden-ade/sandbox-agent 0.1.39 → 0.1.40

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 +10 -3
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -15840,20 +15840,27 @@ function classifyCliErrorDetailed(stderr, _exitCode, opts) {
15840
15840
  }
15841
15841
  const haystack = [stderr, ...opts?.extraSignals ?? []].join("\n").toLowerCase();
15842
15842
  const has = (...needles) => needles.some((n) => haystack.includes(n));
15843
+ if (has("codex cli connection expired", "reconnect openai codex"))
15844
+ return specForErrorKind("auth_expired");
15845
+ if (has("codex connection to openai timed out")) return specForErrorKind("provider_timeout");
15843
15846
  if (has("authentication required", "not authenticated"))
15844
15847
  return specForErrorKind("not_authenticated");
15845
15848
  if (has("out of usage", "increase your limit")) return specForErrorKind("usage_limit");
15846
15849
  if (has("no chat found", "chat not found", "session not found", "could not resume"))
15847
15850
  return specForErrorKind("resume_failed");
15848
15851
  if (has("rate_limit", "rate limit", "429")) return specForErrorKind("rate_limited");
15849
- if (isLikelyProviderAuthError(haystack)) return specForErrorKind("auth_invalid");
15852
+ if (has("authentication_failed", "authentication error", "authentication failed") || isLikelyProviderAuthError(haystack))
15853
+ return specForErrorKind("auth_invalid");
15850
15854
  if (has(
15851
15855
  "not logged in",
15852
15856
  "login required",
15853
15857
  "please sign in",
15854
15858
  "please log in",
15855
15859
  "sign in to",
15856
- "log in to"
15860
+ "log in to",
15861
+ // Claude prompts the user to re-auth with the /login slash command.
15862
+ "run /login",
15863
+ "please run /login"
15857
15864
  ))
15858
15865
  return specForErrorKind("not_logged_in");
15859
15866
  if (has(
@@ -22436,7 +22443,7 @@ var RunStartGate = class {
22436
22443
  };
22437
22444
 
22438
22445
  // src/version.ts
22439
- var AGENT_VERSION = "0.1.39";
22446
+ var AGENT_VERSION = "0.1.40";
22440
22447
 
22441
22448
  // src/workspace-relocation.ts
22442
22449
  var import_node_child_process3 = require("child_process");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiden-ade/sandbox-agent",
3
- "version": "0.1.39",
3
+ "version": "0.1.40",
4
4
  "type": "module",
5
5
  "description": "Alan agent runtime — cloud sandbox and local daemon (alan-agent CLI)",
6
6
  "bin": {