opencode-swarm 7.87.1 → 7.87.2

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.
@@ -8,5 +8,6 @@ export declare function saveCheckpointRecord(label: string, directory: string):
8
8
  success: boolean;
9
9
  sha?: string;
10
10
  error?: string;
11
+ warning?: string;
11
12
  };
12
13
  export declare const checkpoint: ToolDefinition;
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Maximum number of transient retries for spawn/subprocess calls.
3
+ * Mirrors the guardrails `max_transient_retries` default (invariant 9).
4
+ */
5
+ export declare const MAX_TRANSIENT_RETRIES = 5;
6
+ /**
7
+ * Base backoff delay in milliseconds for exponential transient-retry.
8
+ * Actual delay = RETRY_BASE_DELAY_MS * 2^attempt.
9
+ */
10
+ export declare const RETRY_BASE_DELAY_MS = 200;
11
+ /**
12
+ * Returns true only for ETIMEDOUT spawn errors — the only error class
13
+ * considered transient (retryable) in this codebase.
14
+ *
15
+ * ENOENT is intentionally excluded: it means "binary not at this candidate
16
+ * path," which is handled by the caller's candidate-iteration loop, not by
17
+ * retrying the same path.
18
+ */
19
+ export declare function isTransientSpawnError(error: unknown): boolean;
20
+ /**
21
+ * Blocking exponential backoff for use inside synchronous retry loops
22
+ * (e.g. spawnSync call sites).
23
+ *
24
+ * Uses Atomics.wait on a SharedArrayBuffer for an efficient sleep; falls
25
+ * back to a busy-wait loop on platforms/threads where Atomics.wait is not
26
+ * available (e.g. the main thread on some Node.js builds).
27
+ *
28
+ * @param attempt Zero-based retry attempt index. Delay = RETRY_BASE_DELAY_MS * 2^attempt.
29
+ */
30
+ export declare function transientBackoff(attempt: number): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-swarm",
3
- "version": "7.87.1",
3
+ "version": "7.87.2",
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",