opencode-swarm 7.167.1 → 7.167.2

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 (105) hide show
  1. package/binaries/win32-arm64/swarm-sandbox-runner.exe +0 -0
  2. package/binaries/win32-x64/swarm-sandbox-runner.exe +0 -0
  3. package/dist/agents/project-context.d.ts +12 -8
  4. package/dist/cli/{coder-settlement-2ye4s5xr.js → coder-settlement-jy9rad28.js} +16 -16
  5. package/dist/cli/{config-doctor-b0k8eyd6.js → config-doctor-p66vnpy3.js} +3 -3
  6. package/dist/cli/{core-xgzgjk8s.js → core-tw0wtntz.js} +4 -4
  7. package/dist/cli/{curation-policy-bvxf5pxv.js → curation-policy-ndp27v0c.js} +7 -7
  8. package/dist/cli/{curator-jpvzrxcv.js → curator-5nzde80g.js} +45 -45
  9. package/dist/cli/{curator-drift-20m2ab5w.js → curator-drift-gb651hcw.js} +8 -8
  10. package/dist/cli/curator-llm-factory-xy96x5x8.js +71 -0
  11. package/dist/cli/{dispatch-tmb929w8.js → dispatch-8ks9dyk5.js} +244 -70
  12. package/dist/cli/{evidence-summary-service-74az43cb.js → evidence-summary-service-bzpfaypy.js} +22 -22
  13. package/dist/cli/{explorer-zvk5kbcb.js → explorer-2cv64zfj.js} +1 -1
  14. package/dist/cli/{gate-evidence-f26h2gn3.js → gate-evidence-wa8cj8h6.js} +11 -11
  15. package/dist/cli/guardrail-explain-1ef5he6j.js +72 -0
  16. package/dist/cli/{guardrail-log-pnye3xw8.js → guardrail-log-7dv73e0q.js} +9 -9
  17. package/dist/cli/{guardrail-reset-0da7q8ap.js → guardrail-reset-1kng6y8x.js} +44 -44
  18. package/dist/cli/hive-promoter-87kk2pg5.js +86 -0
  19. package/dist/cli/{index-fmzz6aw7.js → index-09gv90d7.js} +4 -4
  20. package/dist/cli/{index-9e6fdz2h.js → index-0mhftbpp.js} +1 -1
  21. package/dist/cli/{index-t8tw1bhs.js → index-0q839sg6.js} +2 -2
  22. package/dist/cli/{index-9bhzbwa4.js → index-18rfc7qv.js} +9 -9
  23. package/dist/cli/{index-7qefgq4j.js → index-1xnse449.js} +11 -1
  24. package/dist/cli/index-25xeyjfx.js +116 -0
  25. package/dist/cli/{index-87agfprq.js → index-2b1hd1fx.js} +2 -2
  26. package/dist/cli/{index-bv8ha57q.js → index-3r6k6qa7.js} +6 -6
  27. package/dist/cli/{index-69y9p6dh.js → index-3ws11dq0.js} +2 -2
  28. package/dist/cli/{index-eretcr6t.js → index-5sjq3shs.js} +11 -11
  29. package/dist/cli/{index-8x4zwk0t.js → index-65s0vgb1.js} +47 -47
  30. package/dist/cli/{index-es13aqdb.js → index-79234evf.js} +1 -1
  31. package/dist/cli/{index-5bd84nxc.js → index-83r0v5tn.js} +1 -1
  32. package/dist/cli/{index-sahf5yz3.js → index-8vbahc4c.js} +1 -1
  33. package/dist/cli/{index-6d4dc99f.js → index-962qme08.js} +1 -1
  34. package/dist/cli/{index-9ss2m4rs.js → index-9br68j86.js} +1 -1
  35. package/dist/cli/{index-4rhhvd1a.js → index-a1w58b47.js} +1 -1
  36. package/dist/cli/{index-qyr17fbz.js → index-arqv4psy.js} +16 -16
  37. package/dist/cli/{index-qtd3hrk8.js → index-ce8p9t28.js} +5 -5
  38. package/dist/cli/{index-q265ytw6.js → index-dme7wvwg.js} +4 -4
  39. package/dist/cli/{index-54vzqy47.js → index-ehq2vtkq.js} +6 -6
  40. package/dist/cli/{index-1aex5zd9.js → index-f8cc92g7.js} +2 -2
  41. package/dist/cli/{index-bzdc4b7t.js → index-f91fhch0.js} +6 -6
  42. package/dist/cli/{index-70ha9e09.js → index-fyfbpz4f.js} +1 -1
  43. package/dist/cli/{index-75f9jj3h.js → index-g409c7ke.js} +2 -2
  44. package/dist/cli/{index-0tc0pcmh.js → index-g5m43paw.js} +37 -2
  45. package/dist/cli/{index-9wv6a3jx.js → index-gmjg65tm.js} +2 -2
  46. package/dist/cli/{index-qd726agw.js → index-gs12223x.js} +3 -3
  47. package/dist/cli/{index-rk10x4zr.js → index-hhkm64wh.js} +5 -5
  48. package/dist/cli/{index-mgc3c483.js → index-jhd3pmd1.js} +10 -10
  49. package/dist/cli/{index-m3tx1q9v.js → index-k73ehxa1.js} +1 -1
  50. package/dist/cli/{index-z5gdgdkp.js → index-m3z83nhs.js} +12 -12
  51. package/dist/cli/{index-251vrmge.js → index-m7cwnt9r.js} +4 -4
  52. package/dist/cli/{index-3nm1b3t2.js → index-mtepgqan.js} +8 -8
  53. package/dist/cli/{index-79wnzc8q.js → index-pdcperq5.js} +3 -3
  54. package/dist/cli/{index-bf6zx8cq.js → index-rrne6g2m.js} +2 -2
  55. package/dist/cli/{index-hdsg7yf6.js → index-s7a9dqtb.js} +3 -3
  56. package/dist/cli/{index-f8xk5q5j.js → index-shrf0wt3.js} +4 -4
  57. package/dist/cli/{index-zwsbegc1.js → index-sjkg2hc4.js} +7 -7
  58. package/dist/cli/{index-qww0h314.js → index-syedr4e3.js} +1 -1
  59. package/dist/cli/{index-f6zgz02s.js → index-tcj8v6my.js} +3 -3
  60. package/dist/cli/{index-2w0beg3s.js → index-vgpedapd.js} +5 -5
  61. package/dist/cli/{index-emwezg3y.js → index-wjet7x0a.js} +3 -3
  62. package/dist/cli/{index-m21x1bkx.js → index-x7pm61wk.js} +2 -0
  63. package/dist/cli/{index-32bxwzw0.js → index-y1sj2e1n.js} +92719 -90312
  64. package/dist/cli/{index-qd619x3r.js → index-z6we1abx.js} +2 -2
  65. package/dist/cli/{index-fenasyvr.js → index-z7z3g5wt.js} +62 -12
  66. package/dist/cli/index.js +44 -44
  67. package/dist/cli/{knowledge-escalator-p2a8xh8x.js → knowledge-escalator-5e4zxan5.js} +17 -17
  68. package/dist/cli/{knowledge-events-jmh28m8d.js → knowledge-events-abzm5vfh.js} +15 -15
  69. package/dist/cli/{knowledge-link-w1fwqts4.js → knowledge-link-9ga6hyd5.js} +6 -6
  70. package/dist/cli/{knowledge-store-8gmabtsn.js → knowledge-store-q4a92eq7.js} +7 -7
  71. package/dist/cli/{knowledge-validator-yk579vs4.js → knowledge-validator-pn3m5r41.js} +9 -9
  72. package/dist/cli/{model-preflight-b3b5pgsc.js → model-preflight-mw895vgt.js} +1 -1
  73. package/dist/cli/{pending-delegations-nw7ph53z.js → pending-delegations-3z0xjppd.js} +14 -14
  74. package/dist/cli/{pr-subscriptions-9815fxbc.js → pr-subscriptions-h7mwnp62.js} +14 -14
  75. package/dist/cli/{pr-workflow-gate-98a7b6py.js → pr-workflow-gate-fec04fa0.js} +44 -44
  76. package/dist/cli/{runner-nmrjv7te.js → runner-d9833azt.js} +7 -7
  77. package/dist/cli/{scan-cursor-6zcs0frg.js → scan-cursor-ymfvzdkz.js} +10 -10
  78. package/dist/cli/{schema-warvhy9h.js → schema-chc4aez6.js} +2 -2
  79. package/dist/cli/{scope-persistence-c2ck77cv.js → scope-persistence-3xnr59y8.js} +20 -20
  80. package/dist/cli/{skill-generator-jamm1cna.js → skill-generator-3mvaghxk.js} +19 -19
  81. package/dist/cli/{snapshot-coordination-init-st0xsn3f.js → snapshot-coordination-init-arnc77r9.js} +44 -44
  82. package/dist/cli/{telemetry-ce0tx41h.js → telemetry-g9pppt9e.js} +2 -2
  83. package/dist/cli/{workspace-snapshot-0kxj2grt.js → workspace-snapshot-hvsjtepd.js} +6 -6
  84. package/dist/cli/{worktree-collision-ownership-qra7r8pw.js → worktree-collision-ownership-vj8anvb7.js} +17 -17
  85. package/dist/cli/{worktree-isolation-yr9gnf64.js → worktree-isolation-mt7z75hz.js} +45 -45
  86. package/dist/commands/close/align-stage.d.ts +10 -0
  87. package/dist/commands/close/archive-stage.d.ts +34 -0
  88. package/dist/commands/close/clean-stage.d.ts +2 -0
  89. package/dist/commands/close/constants.d.ts +122 -0
  90. package/dist/commands/close/context.d.ts +129 -0
  91. package/dist/commands/close/db-helpers.d.ts +10 -0
  92. package/dist/commands/close/dry-run.d.ts +12 -0
  93. package/dist/commands/close/finalize-stage.d.ts +44 -0
  94. package/dist/commands/close/fs-helpers.d.ts +17 -0
  95. package/dist/commands/close/internals.d.ts +55 -0
  96. package/dist/commands/close/orchestrator.d.ts +32 -0
  97. package/dist/commands/close/wiring.d.ts +2 -0
  98. package/dist/commands/close.d.ts +10 -402
  99. package/dist/index.js +485 -485
  100. package/dist/lang/dispatch.d.ts +6 -6
  101. package/dist/utils/canonical-root.d.ts +19 -0
  102. package/package.json +1 -1
  103. package/dist/cli/curator-llm-factory-zeb0pe2j.js +0 -71
  104. package/dist/cli/guardrail-explain-5vhveypz.js +0 -72
  105. package/dist/cli/hive-promoter-2vj54xc4.js +0 -86
@@ -4,13 +4,12 @@
4
4
  * `pickBackend(dir)` walks up from `dir` to find the nearest project
5
5
  * manifest, runs language detection on that root, and returns the
6
6
  * registered (or defaulted) backend for the dominant language. Caches
7
- * results in a bounded LRU keyed by (dir, manifest-hash) so repeated calls
7
+ * results in a bounded insertion-order cache keyed by (dir, manifest-hash) so repeated calls
8
8
  * during a session do not re-walk the filesystem.
9
9
  *
10
- * Per the language-agnostic plan, hot-path callers (hooks, tools) wrap
11
- * this in `withTimeout(200ms)` and fail open on the cache miss; session-
12
- * start callers use `withTimeout(2000ms)`. Both budgets are caller-set —
13
- * the dispatch function itself does not impose timeouts.
10
+ * Callers supply any timeout policy. Plugin initialization wraps this in
11
+ * `withTimeoutSignal(300ms)` and fails open on timeout; the dispatch function
12
+ * itself does not impose a separate deadline.
14
13
  *
15
14
  * Invariant 4: this module never writes to `.swarm/`. All caching is
16
15
  * in-process. `dir` is treated as caller-supplied and not validated as a
@@ -22,6 +21,7 @@ import { detectProjectLanguages } from './detector';
22
21
  declare const _internals: {
23
22
  detectProjectLanguages: typeof detectProjectLanguages;
24
23
  cacheCapacity: number;
24
+ readonly manifestRootCacheSize: number;
25
25
  };
26
26
  export { _internals };
27
27
  /**
@@ -33,7 +33,7 @@ export { _internals };
33
33
  * The dispatch is cached by `(manifestRoot, manifestHash)`; cache entries
34
34
  * are invalidated automatically when any manifest's size or mtime changes.
35
35
  */
36
- export declare function pickBackend(dir: string): Promise<LanguageBackend | null>;
36
+ export declare function pickBackend(dir: string, signal?: AbortSignal): Promise<LanguageBackend | null>;
37
37
  /**
38
38
  * Return the ranked language profile list `pickBackend` last detected for
39
39
  * `dir`. Used by `buildProjectContext` to populate
@@ -38,6 +38,25 @@ export declare const _internals: {
38
38
  * {@link canonicalRootKeyFresh} instead.
39
39
  */
40
40
  export declare function lexicalRootAliasKey(directory: string): string;
41
+ /**
42
+ * Return a bounded, filesystem-free key for a caller's lexical root spelling.
43
+ *
44
+ * This is intentionally separate from `canonicalRootKeyFresh*`: dispatch uses
45
+ * it for a synchronous input-alias table immediately after an async lookup has
46
+ * populated the real cache. It is not a physical project-root identity.
47
+ */
48
+ export declare function canonicalRootKeyLexical(directory: string): string;
49
+ /**
50
+ * Resolve a physical root identity without blocking the event loop.
51
+ *
52
+ * Init-path callers must use this form when their work is governed by an
53
+ * AbortSignal deadline. `fs.promises.realpath` lets the timeout race settle
54
+ * while slow network filesystems, antivirus hooks, or junction resolution are
55
+ * still pending; a later caller-side abort check prevents the late result from
56
+ * publishing cache state. The synchronous helpers above remain necessary for
57
+ * existing synchronous authority and persistence call sites.
58
+ */
59
+ export declare function canonicalRootKeyFreshAsync(directory: string): Promise<string>;
41
60
  export declare function canonicalRootKey(directory: string): string;
42
61
  /** Resolve a root without consulting the bounded memoized cache. */
43
62
  export declare function canonicalRootKeyFresh(directory: string): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-swarm",
3
- "version": "7.167.1",
3
+ "version": "7.167.2",
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",
@@ -1,71 +0,0 @@
1
- // @bun
2
- import {
3
- createCuratorLLMDelegate
4
- } from "./index-32bxwzw0.js";
5
- import"./index-d5qf7hvh.js";
6
- import"./index-m3tx1q9v.js";
7
- import"./index-q265ytw6.js";
8
- import"./index-bf6zx8cq.js";
9
- import"./index-qyr17fbz.js";
10
- import"./index-5bd84nxc.js";
11
- import"./index-txdagbh7.js";
12
- import"./index-cw912re7.js";
13
- import"./index-bzdc4b7t.js";
14
- import"./index-qtd3hrk8.js";
15
- import"./index-79wnzc8q.js";
16
- import"./index-70ha9e09.js";
17
- import"./index-1aex5zd9.js";
18
- import"./index-9ss2m4rs.js";
19
- import"./index-3nm1b3t2.js";
20
- import"./index-zsrtt42s.js";
21
- import"./index-eretcr6t.js";
22
- import"./index-251vrmge.js";
23
- import"./index-9wv6a3jx.js";
24
- import"./index-b43rt5ph.js";
25
- import"./index-q7sjgr1y.js";
26
- import"./index-bv8ha57q.js";
27
- import"./index-fmzz6aw7.js";
28
- import"./index-zwsbegc1.js";
29
- import"./index-z5gdgdkp.js";
30
- import"./index-sahf5yz3.js";
31
- import"./index-p612v1mv.js";
32
- import"./index-f8xk5q5j.js";
33
- import"./index-qww0h314.js";
34
- import"./index-rtry5xyf.js";
35
- import"./index-hdsg7yf6.js";
36
- import"./index-3qf1vxtb.js";
37
- import"./index-n832052r.js";
38
- import"./index-mgc3c483.js";
39
- import"./index-fenasyvr.js";
40
- import"./index-qd619x3r.js";
41
- import"./index-75f9jj3h.js";
42
- import"./index-6d4dc99f.js";
43
- import"./index-rk10x4zr.js";
44
- import"./index-ry16d01s.js";
45
- import"./index-n4fzmqz8.js";
46
- import"./index-qd726agw.js";
47
- import"./index-9bhzbwa4.js";
48
- import"./index-vzm6zre7.js";
49
- import"./index-ae75rja9.js";
50
- import"./index-t8tw1bhs.js";
51
- import"./index-2w0beg3s.js";
52
- import"./index-m21x1bkx.js";
53
- import"./index-f6zgz02s.js";
54
- import"./index-7qefgq4j.js";
55
- import"./index-ee6ydtfe.js";
56
- import"./index-7g4c7s5r.js";
57
- import"./index-emwezg3y.js";
58
- import"./index-9e6fdz2h.js";
59
- import"./index-4rhhvd1a.js";
60
- import"./index-87agfprq.js";
61
- import"./index-0tc0pcmh.js";
62
- import"./index-bk5tah7q.js";
63
- import"./index-bpmtbmy9.js";
64
- import"./index-zpsr8rpc.js";
65
- import"./index-q1r1cfww.js";
66
- import"./index-yzjaj53h.js";
67
- import"./index-zgwm4ryv.js";
68
- import"./index-a76rekgs.js";
69
- export {
70
- createCuratorLLMDelegate
71
- };
@@ -1,72 +0,0 @@
1
- // @bun
2
- import {
3
- handleGuardrailExplain
4
- } from "./index-69y9p6dh.js";
5
- import"./index-32bxwzw0.js";
6
- import"./index-d5qf7hvh.js";
7
- import"./index-m3tx1q9v.js";
8
- import"./index-q265ytw6.js";
9
- import"./index-bf6zx8cq.js";
10
- import"./index-qyr17fbz.js";
11
- import"./index-5bd84nxc.js";
12
- import"./index-txdagbh7.js";
13
- import"./index-cw912re7.js";
14
- import"./index-bzdc4b7t.js";
15
- import"./index-qtd3hrk8.js";
16
- import"./index-79wnzc8q.js";
17
- import"./index-70ha9e09.js";
18
- import"./index-1aex5zd9.js";
19
- import"./index-9ss2m4rs.js";
20
- import"./index-3nm1b3t2.js";
21
- import"./index-zsrtt42s.js";
22
- import"./index-eretcr6t.js";
23
- import"./index-251vrmge.js";
24
- import"./index-9wv6a3jx.js";
25
- import"./index-b43rt5ph.js";
26
- import"./index-q7sjgr1y.js";
27
- import"./index-bv8ha57q.js";
28
- import"./index-fmzz6aw7.js";
29
- import"./index-zwsbegc1.js";
30
- import"./index-z5gdgdkp.js";
31
- import"./index-sahf5yz3.js";
32
- import"./index-p612v1mv.js";
33
- import"./index-f8xk5q5j.js";
34
- import"./index-qww0h314.js";
35
- import"./index-rtry5xyf.js";
36
- import"./index-hdsg7yf6.js";
37
- import"./index-3qf1vxtb.js";
38
- import"./index-n832052r.js";
39
- import"./index-mgc3c483.js";
40
- import"./index-fenasyvr.js";
41
- import"./index-qd619x3r.js";
42
- import"./index-75f9jj3h.js";
43
- import"./index-6d4dc99f.js";
44
- import"./index-rk10x4zr.js";
45
- import"./index-ry16d01s.js";
46
- import"./index-n4fzmqz8.js";
47
- import"./index-qd726agw.js";
48
- import"./index-9bhzbwa4.js";
49
- import"./index-vzm6zre7.js";
50
- import"./index-ae75rja9.js";
51
- import"./index-t8tw1bhs.js";
52
- import"./index-2w0beg3s.js";
53
- import"./index-m21x1bkx.js";
54
- import"./index-f6zgz02s.js";
55
- import"./index-7qefgq4j.js";
56
- import"./index-ee6ydtfe.js";
57
- import"./index-7g4c7s5r.js";
58
- import"./index-emwezg3y.js";
59
- import"./index-9e6fdz2h.js";
60
- import"./index-4rhhvd1a.js";
61
- import"./index-87agfprq.js";
62
- import"./index-0tc0pcmh.js";
63
- import"./index-bk5tah7q.js";
64
- import"./index-bpmtbmy9.js";
65
- import"./index-zpsr8rpc.js";
66
- import"./index-q1r1cfww.js";
67
- import"./index-yzjaj53h.js";
68
- import"./index-zgwm4ryv.js";
69
- import"./index-a76rekgs.js";
70
- export {
71
- handleGuardrailExplain
72
- };
@@ -1,86 +0,0 @@
1
- // @bun
2
- import {
3
- _internals2 as _internals,
4
- checkHivePromotions,
5
- countDistinctProjects,
6
- createHivePromoterHook,
7
- isHiveEligible,
8
- promoteFromSwarm,
9
- promoteToHive
10
- } from "./index-32bxwzw0.js";
11
- import"./index-d5qf7hvh.js";
12
- import"./index-m3tx1q9v.js";
13
- import"./index-q265ytw6.js";
14
- import"./index-bf6zx8cq.js";
15
- import"./index-qyr17fbz.js";
16
- import"./index-5bd84nxc.js";
17
- import"./index-txdagbh7.js";
18
- import"./index-cw912re7.js";
19
- import"./index-bzdc4b7t.js";
20
- import"./index-qtd3hrk8.js";
21
- import"./index-79wnzc8q.js";
22
- import"./index-70ha9e09.js";
23
- import"./index-1aex5zd9.js";
24
- import"./index-9ss2m4rs.js";
25
- import"./index-3nm1b3t2.js";
26
- import"./index-zsrtt42s.js";
27
- import"./index-eretcr6t.js";
28
- import"./index-251vrmge.js";
29
- import"./index-9wv6a3jx.js";
30
- import"./index-b43rt5ph.js";
31
- import"./index-q7sjgr1y.js";
32
- import"./index-bv8ha57q.js";
33
- import"./index-fmzz6aw7.js";
34
- import"./index-zwsbegc1.js";
35
- import"./index-z5gdgdkp.js";
36
- import"./index-sahf5yz3.js";
37
- import"./index-p612v1mv.js";
38
- import"./index-f8xk5q5j.js";
39
- import"./index-qww0h314.js";
40
- import"./index-rtry5xyf.js";
41
- import"./index-hdsg7yf6.js";
42
- import"./index-3qf1vxtb.js";
43
- import"./index-n832052r.js";
44
- import"./index-mgc3c483.js";
45
- import"./index-fenasyvr.js";
46
- import"./index-qd619x3r.js";
47
- import"./index-75f9jj3h.js";
48
- import"./index-6d4dc99f.js";
49
- import"./index-rk10x4zr.js";
50
- import"./index-ry16d01s.js";
51
- import"./index-n4fzmqz8.js";
52
- import"./index-qd726agw.js";
53
- import {
54
- resolveHiveKnowledgePath
55
- } from "./index-9bhzbwa4.js";
56
- import"./index-vzm6zre7.js";
57
- import"./index-ae75rja9.js";
58
- import"./index-t8tw1bhs.js";
59
- import"./index-2w0beg3s.js";
60
- import"./index-m21x1bkx.js";
61
- import"./index-f6zgz02s.js";
62
- import"./index-7qefgq4j.js";
63
- import"./index-ee6ydtfe.js";
64
- import"./index-7g4c7s5r.js";
65
- import"./index-emwezg3y.js";
66
- import"./index-9e6fdz2h.js";
67
- import"./index-4rhhvd1a.js";
68
- import"./index-87agfprq.js";
69
- import"./index-0tc0pcmh.js";
70
- import"./index-bk5tah7q.js";
71
- import"./index-bpmtbmy9.js";
72
- import"./index-zpsr8rpc.js";
73
- import"./index-q1r1cfww.js";
74
- import"./index-yzjaj53h.js";
75
- import"./index-zgwm4ryv.js";
76
- import"./index-a76rekgs.js";
77
- export {
78
- resolveHiveKnowledgePath,
79
- promoteToHive,
80
- promoteFromSwarm,
81
- isHiveEligible,
82
- createHivePromoterHook,
83
- countDistinctProjects,
84
- checkHivePromotions,
85
- _internals
86
- };