opencode-swarm 7.77.5 → 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.
- package/dist/cli/index.js +1 -1
- package/dist/index.js +18 -12
- package/dist/tools/repo-graph/storage.d.ts +7 -0
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -52,7 +52,7 @@ var package_default;
|
|
|
52
52
|
var init_package = __esm(() => {
|
|
53
53
|
package_default = {
|
|
54
54
|
name: "opencode-swarm",
|
|
55
|
-
version: "7.77.
|
|
55
|
+
version: "7.77.6",
|
|
56
56
|
description: "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
|
|
57
57
|
main: "dist/index.js",
|
|
58
58
|
types: "dist/index.d.ts",
|
package/dist/index.js
CHANGED
|
@@ -69,7 +69,7 @@ var package_default;
|
|
|
69
69
|
var init_package = __esm(() => {
|
|
70
70
|
package_default = {
|
|
71
71
|
name: "opencode-swarm",
|
|
72
|
-
version: "7.77.
|
|
72
|
+
version: "7.77.6",
|
|
73
73
|
description: "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
|
|
74
74
|
main: "dist/index.js",
|
|
75
75
|
types: "dist/index.d.ts",
|
|
@@ -110351,11 +110351,13 @@ init_path_security();
|
|
|
110351
110351
|
import { constants as constants5, existsSync as existsSync64, readFileSync as readFileSync44, statSync as statSync24 } from "node:fs";
|
|
110352
110352
|
import * as fsPromises6 from "node:fs/promises";
|
|
110353
110353
|
import * as path111 from "node:path";
|
|
110354
|
+
var WINDOWS_RENAME_MAX_RETRIES2 = 5;
|
|
110355
|
+
var WINDOWS_RENAME_RETRY_DELAY_MS2 = 100;
|
|
110354
110356
|
var _internals68 = {
|
|
110355
|
-
safeRealpathSync
|
|
110357
|
+
safeRealpathSync,
|
|
110358
|
+
fsRename: fsPromises6.rename.bind(fsPromises6),
|
|
110359
|
+
retryDelayMs: WINDOWS_RENAME_RETRY_DELAY_MS2
|
|
110356
110360
|
};
|
|
110357
|
-
var WINDOWS_RENAME_MAX_RETRIES2 = 3;
|
|
110358
|
-
var WINDOWS_RENAME_RETRY_DELAY_MS2 = 50;
|
|
110359
110361
|
function validateLoadedGraph(parsed) {
|
|
110360
110362
|
if (!parsed.schema_version) {
|
|
110361
110363
|
throw Object.assign(new Error("repo-graph.json missing schema_version"), {
|
|
@@ -110537,21 +110539,25 @@ async function saveGraph(workspace, graph, options) {
|
|
|
110537
110539
|
throw lastError;
|
|
110538
110540
|
}
|
|
110539
110541
|
} else {
|
|
110540
|
-
let
|
|
110541
|
-
while (retries < WINDOWS_RENAME_MAX_RETRIES2) {
|
|
110542
|
+
for (let attempt = 0;attempt < WINDOWS_RENAME_MAX_RETRIES2; attempt++) {
|
|
110542
110543
|
try {
|
|
110543
|
-
await
|
|
110544
|
+
await _internals68.fsRename(tempPath, graphPath);
|
|
110545
|
+
lastError = null;
|
|
110544
110546
|
break;
|
|
110545
110547
|
} catch (error93) {
|
|
110546
110548
|
lastError = error93 instanceof Error ? error93 : new Error(String(error93));
|
|
110547
|
-
|
|
110548
|
-
|
|
110549
|
-
|
|
110550
|
-
|
|
110549
|
+
const code = lastError.code;
|
|
110550
|
+
if (code !== "EEXIST" && code !== "EPERM" && code !== "EBUSY") {
|
|
110551
|
+
break;
|
|
110552
|
+
}
|
|
110553
|
+
if (attempt < WINDOWS_RENAME_MAX_RETRIES2 - 1) {
|
|
110554
|
+
await new Promise((resolve41) => setTimeout(resolve41, _internals68.retryDelayMs));
|
|
110551
110555
|
}
|
|
110552
|
-
throw lastError;
|
|
110553
110556
|
}
|
|
110554
110557
|
}
|
|
110558
|
+
if (lastError) {
|
|
110559
|
+
throw lastError;
|
|
110560
|
+
}
|
|
110555
110561
|
}
|
|
110556
110562
|
} finally {
|
|
110557
110563
|
try {
|
|
@@ -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.
|
|
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",
|