opencode-swarm 7.46.1 → 7.46.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.
@@ -10,7 +10,17 @@
10
10
  * Also exports upsertNode, addEdge, and resolveModuleSpecifier which are
11
11
  * used by both the builder and the incremental updater.
12
12
  */
13
+ import { safeRealpathSync } from './safe-realpath';
13
14
  import type { BuildWorkspaceGraphOptions, GraphEdge, GraphNode, RepoGraph } from './types';
15
+ /**
16
+ * _internals DI seam for safeRealpathSync.
17
+ * Defaults to the real implementation. Tests can override this to inject
18
+ * mock behavior without calling mock.module(...) which leaks across test files
19
+ * in Bun's shared test-runner process.
20
+ */
21
+ export declare const _internals: {
22
+ safeRealpathSync: typeof safeRealpathSync;
23
+ };
14
24
  /**
15
25
  * Add or update a node in the graph.
16
26
  * @param graph - The graph to modify
@@ -0,0 +1 @@
1
+ export declare function safeRealpathSync(targetPath: string, fallback: string, realpathResolver?: (targetPath: string) => string): string | null;
@@ -5,7 +5,15 @@
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 { safeRealpathSync } from './safe-realpath';
8
9
  import type { RepoGraph } from './types';
10
+ /**
11
+ * Internal function references for testability.
12
+ * Replace _internals.safeRealpathSync in tests to mock symlink resolution.
13
+ */
14
+ export declare const _internals: {
15
+ safeRealpathSync: typeof safeRealpathSync;
16
+ };
9
17
  /**
10
18
  * Get the validated path for the repo-graph.json file.
11
19
  * Resolves symlinks via realpath before validation to prevent
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-swarm",
3
- "version": "7.46.1",
3
+ "version": "7.46.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",