opencode-swarm 7.143.1 → 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.
Files changed (43) hide show
  1. package/dist/cli/{config-doctor-ajq3sts3.js → config-doctor-ddbwxt14.js} +2 -2
  2. package/dist/cli/{core-0jn7sk7t.js → core-gfk2tsre.js} +1 -1
  3. package/dist/cli/{curator-ff53rwz5.js → curator-hkcd03bx.js} +17 -17
  4. package/dist/cli/{curator-llm-factory-2mz7fgd1.js → curator-llm-factory-z23scnwb.js} +17 -17
  5. package/dist/cli/{evidence-summary-service-08zcq836.js → evidence-summary-service-cbhsye6e.js} +6 -6
  6. package/dist/cli/{gate-evidence-2r7n4qjv.js → gate-evidence-5xd9j34y.js} +2 -2
  7. package/dist/cli/{guardrail-explain-cm5je07b.js → guardrail-explain-49vn7rv6.js} +18 -18
  8. package/dist/cli/{guardrail-log-jf4430p5.js → guardrail-log-ghymef5s.js} +3 -3
  9. package/dist/cli/{hive-promoter-738bf1fj.js → hive-promoter-akf3x240.js} +17 -17
  10. package/dist/cli/{index-mpw32szm.js → index-1et48zgf.js} +1 -1
  11. package/dist/cli/{index-zgq25ze6.js → index-1y0rggw0.js} +1 -1
  12. package/dist/cli/{index-awzwmx8p.js → index-30yyh3m0.js} +3 -3
  13. package/dist/cli/{index-n48cwf1a.js → index-3qw0bsgr.js} +50 -15
  14. package/dist/cli/{index-cfwdm1dx.js → index-4mr3ga48.js} +1 -1
  15. package/dist/cli/{index-crt7xw29.js → index-64pk7525.js} +1 -1
  16. package/dist/cli/{index-254xf5y6.js → index-6cgp4ska.js} +2 -2
  17. package/dist/cli/{index-0kqs2fbm.js → index-86tn52b3.js} +1 -1
  18. package/dist/cli/{index-91dz0zct.js → index-9py8e0dk.js} +3 -3
  19. package/dist/cli/{index-3fg8kx7n.js → index-a6rnw33a.js} +2 -2
  20. package/dist/cli/{index-qmfzfh7m.js → index-ds7j4hth.js} +3 -3
  21. package/dist/cli/{index-q68a8h37.js → index-e1feasna.js} +1 -1
  22. package/dist/cli/{index-zky3vt90.js → index-e3g0t29w.js} +1 -1
  23. package/dist/cli/{index-srd87kxc.js → index-etxy4vz9.js} +4 -4
  24. package/dist/cli/{index-q7jv0c8e.js → index-m7gss7zy.js} +181 -120
  25. package/dist/cli/{index-cz9tc0h8.js → index-qykq6vge.js} +3 -3
  26. package/dist/cli/{index-wnj1d1es.js → index-tj18fe58.js} +19 -19
  27. package/dist/cli/{index-x10a9cz6.js → index-vatqcjnd.js} +5 -5
  28. package/dist/cli/{index-7317fvce.js → index-vdkywste.js} +1 -1
  29. package/dist/cli/{index-n2jk8ajv.js → index-x90gktjx.js} +1 -1
  30. package/dist/cli/{index-a5rky7fv.js → index-xq2effek.js} +2 -2
  31. package/dist/cli/index.js +17 -17
  32. package/dist/cli/{knowledge-escalator-9mdajq4s.js → knowledge-escalator-mgg6kvva.js} +6 -6
  33. package/dist/cli/{knowledge-events-pz58s2r1.js → knowledge-events-yjmkrrv2.js} +4 -4
  34. package/dist/cli/{knowledge-store-sz8vat89.js → knowledge-store-647twyjp.js} +1 -1
  35. package/dist/cli/{knowledge-validator-w5vmvf0a.js → knowledge-validator-0nsax3n6.js} +2 -2
  36. package/dist/cli/{scan-cursor-p54xsx41.js → scan-cursor-vgmzg5ys.js} +2 -2
  37. package/dist/cli/{schema-p74hnrfz.js → schema-mzh2tam4.js} +1 -1
  38. package/dist/cli/{scope-persistence-1fc2ncsk.js → scope-persistence-m4ah4fay.js} +4 -4
  39. package/dist/cli/{skill-generator-yv46bt1a.js → skill-generator-eyf32w7h.js} +7 -7
  40. package/dist/cli/{worktree-isolation-qfgc3vma.js → worktree-isolation-grxn94v9.js} +17 -17
  41. package/dist/index.js +72 -64
  42. package/dist/session/snapshot-writer.d.ts +12 -0
  43. 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.1",
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",