opencode-swarm 7.77.4 → 7.77.6

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.
@@ -5,14 +5,21 @@
5
5
  * writes. Reads validate schema and content before updating the in-memory
6
6
  * cache. Symlink resolution guards against workspace-escape attacks.
7
7
  */
8
+ import * as fsPromises from 'node:fs/promises';
8
9
  import { safeRealpathSync } from './safe-realpath';
9
10
  import type { RepoGraph } from './types';
10
11
  /**
11
12
  * Internal function references for testability.
12
13
  * Replace _internals.safeRealpathSync in tests to mock symlink resolution.
14
+ * Replace _internals.fsRename to exercise the rename retry path (e.g. EPERM).
15
+ * Set _internals.retryDelayMs = 0 in tests to skip real sleeps while still
16
+ * exercising multi-retry paths.
17
+ * Restore each entry in afterEach via the saved original reference.
13
18
  */
14
19
  export declare const _internals: {
15
20
  safeRealpathSync: typeof safeRealpathSync;
21
+ fsRename: typeof fsPromises.rename;
22
+ retryDelayMs: number;
16
23
  };
17
24
  /**
18
25
  * Get the validated path for the repo-graph.json file.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-swarm",
3
- "version": "7.77.4",
3
+ "version": "7.77.6",
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",