opencode-swarm 7.143.2 → 7.143.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.
- package/dist/cli/{config-doctor-xadt4kv5.js → config-doctor-ddbwxt14.js} +2 -2
- package/dist/cli/{core-vpefadja.js → core-gfk2tsre.js} +1 -1
- package/dist/cli/{curator-wahbxxw9.js → curator-hkcd03bx.js} +17 -17
- package/dist/cli/{curator-llm-factory-xjw5j2jj.js → curator-llm-factory-z23scnwb.js} +17 -17
- package/dist/cli/{evidence-summary-service-m0jes2yb.js → evidence-summary-service-cbhsye6e.js} +6 -6
- package/dist/cli/{gate-evidence-sf9hbhm0.js → gate-evidence-5xd9j34y.js} +2 -2
- package/dist/cli/{guardrail-explain-9vdjkz5x.js → guardrail-explain-49vn7rv6.js} +18 -18
- package/dist/cli/{guardrail-log-xr0cv07v.js → guardrail-log-ghymef5s.js} +3 -3
- package/dist/cli/{hive-promoter-ften3m3h.js → hive-promoter-akf3x240.js} +17 -17
- package/dist/cli/{index-6q3wx600.js → index-1et48zgf.js} +1 -1
- package/dist/cli/{index-qswsp6s3.js → index-1y0rggw0.js} +1 -1
- package/dist/cli/{index-jvbqryky.js → index-30yyh3m0.js} +3 -3
- package/dist/cli/{index-nvt1152n.js → index-3qw0bsgr.js} +1 -1
- package/dist/cli/{index-yw4atzww.js → index-4mr3ga48.js} +1 -1
- package/dist/cli/{index-2pxq133w.js → index-64pk7525.js} +1 -1
- package/dist/cli/{index-x0ja3n3g.js → index-6cgp4ska.js} +2 -2
- package/dist/cli/{index-700yppfy.js → index-86tn52b3.js} +1 -1
- package/dist/cli/{index-6hwedxn7.js → index-9py8e0dk.js} +3 -3
- package/dist/cli/{index-4g1bnzma.js → index-a6rnw33a.js} +2 -2
- package/dist/cli/{index-je3jmcc1.js → index-ds7j4hth.js} +3 -3
- package/dist/cli/{index-kjgma6hg.js → index-e1feasna.js} +1 -1
- package/dist/cli/{index-yr997mhn.js → index-e3g0t29w.js} +1 -1
- package/dist/cli/{index-fq0b44vq.js → index-etxy4vz9.js} +4 -4
- package/dist/cli/{index-6f80e8r5.js → index-m7gss7zy.js} +167 -118
- package/dist/cli/{index-kc9tfc7e.js → index-qykq6vge.js} +3 -3
- package/dist/cli/{index-h5fmwg5b.js → index-tj18fe58.js} +19 -19
- package/dist/cli/{index-7e91cs99.js → index-vatqcjnd.js} +5 -5
- package/dist/cli/{index-8hxbjgyk.js → index-vdkywste.js} +1 -1
- package/dist/cli/{index-r0j1sh38.js → index-x90gktjx.js} +1 -1
- package/dist/cli/{index-xacfcpyn.js → index-xq2effek.js} +2 -2
- package/dist/cli/index.js +17 -17
- package/dist/cli/{knowledge-escalator-9xesv2xx.js → knowledge-escalator-mgg6kvva.js} +6 -6
- package/dist/cli/{knowledge-events-s8nvbdyk.js → knowledge-events-yjmkrrv2.js} +4 -4
- package/dist/cli/{knowledge-store-2zt0b10b.js → knowledge-store-647twyjp.js} +1 -1
- package/dist/cli/{knowledge-validator-nt955tw0.js → knowledge-validator-0nsax3n6.js} +2 -2
- package/dist/cli/{scan-cursor-emrg35t0.js → scan-cursor-vgmzg5ys.js} +2 -2
- package/dist/cli/{schema-tpbz8f0x.js → schema-mzh2tam4.js} +1 -1
- package/dist/cli/{scope-persistence-1hf839ys.js → scope-persistence-m4ah4fay.js} +4 -4
- package/dist/cli/{skill-generator-fja22m4q.js → skill-generator-eyf32w7h.js} +7 -7
- package/dist/cli/{worktree-isolation-gnqvy10j.js → worktree-isolation-grxn94v9.js} +17 -17
- package/dist/index.js +67 -59
- package/dist/session/snapshot-writer.d.ts +12 -0
- package/package.json +1 -1
|
@@ -2,9 +2,20 @@
|
|
|
2
2
|
* Session snapshot writer for OpenCode Swarm plugin.
|
|
3
3
|
* Serializes swarmState to .swarm/session/state.json using atomic write (temp-file + rename).
|
|
4
4
|
*/
|
|
5
|
+
import { rename as fsRename } from 'node:fs/promises';
|
|
5
6
|
import { TASK_WORKFLOW_SCHEMA_MARKER } from '../gate-evidence.js';
|
|
6
7
|
import type { AgentSessionState, DelegationEntry, ToolAggregate } from '../state';
|
|
7
8
|
import { swarmState } from '../state';
|
|
9
|
+
/**
|
|
10
|
+
* Windows can transiently fail a rename with EEXIST/EBUSY/EPERM while another
|
|
11
|
+
* process (an external snapshot reader, an AV scanner) briefly holds the
|
|
12
|
+
* target open. Same codes, budget, and delay as the retry policy in `bunWrite`
|
|
13
|
+
* (src/utils/bun-compat.ts:36) — except this loop skips the sleep after the
|
|
14
|
+
* final attempt, which bunWrite still takes. Kept local rather than imported
|
|
15
|
+
* so this module adds no new bun-compat exports for existing non-spread
|
|
16
|
+
* `mock.module('../utils/bun-compat', ...)` test factories to miss.
|
|
17
|
+
*/
|
|
18
|
+
export declare const SNAPSHOT_RENAME_MAX_ATTEMPTS = 3;
|
|
8
19
|
/**
|
|
9
20
|
* Serialized form of AgentSessionState with Map/Set fields converted to plain arrays/objects
|
|
10
21
|
*/
|
|
@@ -153,4 +164,5 @@ export declare const _internals: {
|
|
|
153
164
|
writeSnapshot: typeof writeSnapshot;
|
|
154
165
|
createSnapshotWriterHook: typeof createSnapshotWriterHook;
|
|
155
166
|
flushPendingSnapshot: typeof flushPendingSnapshot;
|
|
167
|
+
rename: typeof fsRename;
|
|
156
168
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-swarm",
|
|
3
|
-
"version": "7.143.
|
|
3
|
+
"version": "7.143.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",
|