opencode-swarm 7.126.2 → 7.126.3

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.
@@ -16,12 +16,13 @@ import { extractFileOntology } from './ontology';
16
16
  import { safeRealpathSync } from './safe-realpath';
17
17
  import type { BuildWorkspaceGraphOptions, GraphEdge, GraphNode, RepoGraph, RepoGraphDiagnostics, SymbolEdge } from './types';
18
18
  /**
19
- * _internals DI seam for safeRealpathSync.
20
- * Defaults to the real implementation. Tests can override this to inject
21
- * mock behavior without calling mock.module(...) which leaks across test files
22
- * in Bun's shared test-runner process.
19
+ * _internals DI seam for the walk clock and graph helpers.
20
+ * Defaults to the real implementations. Tests can override these to inject
21
+ * deterministic behavior without calling mock.module(...) which leaks across
22
+ * test files in Bun's shared test-runner process.
23
23
  */
24
24
  export declare const _internals: {
25
+ now: () => number;
25
26
  safeRealpathSync: typeof safeRealpathSync;
26
27
  extractTSSymbols: typeof extractTSSymbols;
27
28
  extractPythonSymbols: typeof extractPythonSymbols;
@@ -1,9 +1,10 @@
1
1
  /**
2
2
  * Timeout primitives used by the plugin init path.
3
3
  *
4
- * Hard rule: every timer scheduled here must call `unref()` so it never holds
5
- * the process open, and every Promise.race must clear the timer in `finally`
6
- * so it does not leak the timer reference after the racer settles.
4
+ * Deadline timers must call `unref()` and every Promise.race must clear its
5
+ * timer in `finally`, so timeouts never pin or leak a process handle. Awaited
6
+ * cooperative-yield timers are deliberately ref'ed: unref'ing the only handle
7
+ * can strand their caller before the awaited promise resolves.
7
8
  */
8
9
  /**
9
10
  * Race a promise against a timeout. The timer is cleared in `finally` so the
@@ -18,6 +19,9 @@
18
19
  export declare function withTimeout<T>(promise: Promise<T>, ms: number, timeoutError: Error): Promise<T>;
19
20
  /**
20
21
  * Yield to the macrotask queue. Works under both Node and Bun runtimes,
21
- * unlike `setImmediate` which is Node-only.
22
+ * unlike `setImmediate` which is Node-only. The timer intentionally remains
23
+ * ref'ed: callers await this promise, so unref'ing its only handle can strand a
24
+ * direct async caller when no unrelated host handle is active. Detached startup
25
+ * work is made non-pinning at its outer scheduling boundary instead.
22
26
  */
23
27
  export declare function yieldToEventLoop(): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-swarm",
3
- "version": "7.126.2",
3
+ "version": "7.126.3",
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",