@tryarcanist/cli 0.1.351 → 0.1.353

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 +24 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -7409,7 +7409,7 @@ function isTerminalPhase(phase, _sessionKind) {
7409
7409
  // package.json
7410
7410
  var package_default = {
7411
7411
  name: "@tryarcanist/cli",
7412
- version: "0.1.351",
7412
+ version: "0.1.353",
7413
7413
  description: "Command-line interface for Arcanist: inspect sessions, prepare Zeus environments, and trigger reviews",
7414
7414
  type: "module",
7415
7415
  bin: {
@@ -25586,10 +25586,30 @@ function projectRetryStatus(data, index) {
25586
25586
  ...typeof data?.fallbackModel === "string" ? { fallbackModel: data.fallbackModel } : {}
25587
25587
  };
25588
25588
  }
25589
+ function promptRetryingPresentation(reason) {
25590
+ if (reason === "spawn_provider_error") {
25591
+ return {
25592
+ message: "Sandbox failed to start; retrying on a fresh sandbox",
25593
+ scope: "sandbox_spawn"
25594
+ };
25595
+ }
25596
+ if (reason === "spawn_deadline_no_object" || reason === "spawn_deadline_no_bridge" || reason === "spawn_timeout") {
25597
+ return {
25598
+ message: "Sandbox did not start in time; retrying on a fresh sandbox",
25599
+ scope: "sandbox_spawn"
25600
+ };
25601
+ }
25602
+ return {
25603
+ message: "Sandbox dropped mid-task; retrying on a fresh sandbox",
25604
+ scope: "sandbox_disconnect"
25605
+ };
25606
+ }
25589
25607
  function projectPromptRetrying(data, index) {
25590
25608
  const attempt = typeof data?.attempt === "number" ? data.attempt : Number(data?.attempt ?? 0);
25591
25609
  const cap = typeof data?.cap === "number" ? data.cap : void 0;
25592
25610
  const retryPromptId = typeof data?.retryPromptId === "string" ? data.retryPromptId : resolvePromptId(data);
25611
+ const reason = typeof data?.reason === "string" ? data.reason : void 0;
25612
+ const { message, scope } = promptRetryingPresentation(reason);
25593
25613
  return {
25594
25614
  type: "retry_status",
25595
25615
  // Key off retryPromptId (always present in the emitted payload, unique per
@@ -25598,10 +25618,10 @@ function projectPromptRetrying(data, index) {
25598
25618
  id: `pr-retry-${retryPromptId ?? index}`,
25599
25619
  ...retryPromptId ? { promptId: retryPromptId } : {},
25600
25620
  attempt,
25601
- message: "Sandbox dropped mid-task; retrying on a fresh sandbox",
25602
- scope: "sandbox_disconnect",
25621
+ message,
25622
+ scope,
25603
25623
  ...cap !== void 0 ? { maxAttempts: cap } : {},
25604
- ...typeof data?.reason === "string" ? { reason: data.reason } : {}
25624
+ ...reason ? { reason } : {}
25605
25625
  };
25606
25626
  }
25607
25627
  function projectZeusTelemetry(data, index) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryarcanist/cli",
3
- "version": "0.1.351",
3
+ "version": "0.1.353",
4
4
  "description": "Command-line interface for Arcanist: inspect sessions, prepare Zeus environments, and trigger reviews",
5
5
  "type": "module",
6
6
  "bin": {