opencode-swarm 7.163.0 → 7.164.0

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 (87) hide show
  1. package/README.md +1 -1
  2. package/dist/cli/{coder-settlement-g2g5kkv5.js → coder-settlement-84je6bza.js} +8 -8
  3. package/dist/cli/{config-doctor-p16xr78z.js → config-doctor-vfze38e1.js} +2 -2
  4. package/dist/cli/{core-g088v0zt.js → core-q5hv8e2w.js} +1 -1
  5. package/dist/cli/{curation-policy-j12j2gvc.js → curation-policy-a2zty4br.js} +5 -5
  6. package/dist/cli/{curator-3m8a8qsn.js → curator-4pckmmyf.js} +32 -32
  7. package/dist/cli/{curator-drift-g6w4ga1q.js → curator-drift-wy7ejcvw.js} +105 -37
  8. package/dist/cli/{curator-llm-factory-p00hks4v.js → curator-llm-factory-msbj3hpn.js} +32 -32
  9. package/dist/cli/{evidence-summary-service-4ghqakhx.js → evidence-summary-service-b15yes21.js} +14 -14
  10. package/dist/cli/{gate-evidence-4v8apasx.js → gate-evidence-70h0w4tb.js} +5 -5
  11. package/dist/cli/{guardrail-explain-smqenqtm.js → guardrail-explain-kksdy032.js} +33 -33
  12. package/dist/cli/{guardrail-log-mmh4b4k4.js → guardrail-log-7rxbd20p.js} +6 -6
  13. package/dist/cli/{guardrail-reset-zge5hg4p.js → guardrail-reset-3b4gs357.js} +32 -32
  14. package/dist/cli/{hive-promoter-vxez5s7m.js → hive-promoter-s80g1gwb.js} +32 -32
  15. package/dist/cli/index-0515j0cz.js +403 -0
  16. package/dist/cli/{index-t4hs3qk6.js → index-12f1tsn2.js} +3 -3
  17. package/dist/cli/{index-2zgjcmmc.js → index-1b1h770t.js} +3 -3
  18. package/dist/cli/{index-9ss2m4rs.js → index-1hpjwz3s.js} +410 -1
  19. package/dist/cli/{index-4t68xs0p.js → index-1z4jzwja.js} +3 -3
  20. package/dist/cli/{index-0103w5pf.js → index-2s4s9n82.js} +2 -2
  21. package/dist/cli/{index-9crtmnqg.js → index-36nt17m8.js} +1 -1
  22. package/dist/cli/{index-qy2rm1f6.js → index-4afh2cz7.js} +5 -5
  23. package/dist/cli/{index-pykfqsk0.js → index-4jersar8.js} +4 -4
  24. package/dist/cli/{index-n67vx5zw.js → index-70bfj3v1.js} +1 -1
  25. package/dist/cli/{index-eqkdjfqa.js → index-7r9vpkwa.js} +4 -4
  26. package/dist/cli/{index-8ada7ag7.js → index-93sepnc9.js} +2 -2
  27. package/dist/cli/{index-s8c6f9rr.js → index-9sy65e94.js} +3 -3
  28. package/dist/cli/{index-ptsmms01.js → index-bm73pych.js} +6 -6
  29. package/dist/cli/{index-xyhmt813.js → index-c4pynht5.js} +1 -1
  30. package/dist/cli/{index-w1mc7gcm.js → index-c69jbpex.js} +2 -2
  31. package/dist/cli/{index-axx3t3k7.js → index-e3hwzcjv.js} +2 -2
  32. package/dist/cli/{index-453tzvkg.js → index-g64154pd.js} +1 -1
  33. package/dist/cli/{index-f7t5fn4z.js → index-gxd8fwyt.js} +4 -4
  34. package/dist/cli/{index-5hgn302x.js → index-hyq20s2v.js} +118 -296
  35. package/dist/cli/{index-7n9jznv0.js → index-ma8w6pfp.js} +3 -3
  36. package/dist/cli/{index-rqh25ns3.js → index-nhxaa9j5.js} +1 -1
  37. package/dist/cli/{index-zgz81a8x.js → index-nzrhw31r.js} +1 -1
  38. package/dist/cli/{index-4xggfhge.js → index-pvgcex0d.js} +3 -3
  39. package/dist/cli/{index-nwa7ctyf.js → index-qkk2skff.js} +34 -34
  40. package/dist/cli/{index-g4bvsapf.js → index-t5t82jy8.js} +5 -5
  41. package/dist/cli/{index-m4nhy4fp.js → index-t90gjc0k.js} +1 -1
  42. package/dist/cli/{index-3rjxbe1p.js → index-t9rhtvy9.js} +2 -2
  43. package/dist/cli/{index-hm239n1p.js → index-tb1k8jya.js} +1 -1
  44. package/dist/cli/{index-m7yt3xmk.js → index-td6n935w.js} +3 -2
  45. package/dist/cli/{index-w0yn4rmh.js → index-v3a9rmyh.js} +3 -3
  46. package/dist/cli/{index-cqgpvx2d.js → index-wdtckfnf.js} +1 -1
  47. package/dist/cli/{index-7wb2v7jg.js → index-xk0kc1py.js} +522 -358
  48. package/dist/cli/{index-n2mhyect.js → index-ynqp3jb6.js} +1 -1
  49. package/dist/cli/{index-n249fbw7.js → index-zaab1wz9.js} +5 -0
  50. package/dist/cli/{index-3ab9tczn.js → index-zbpcpsk0.js} +8 -8
  51. package/dist/cli/index.js +32 -32
  52. package/dist/cli/{knowledge-escalator-91d1n291.js → knowledge-escalator-sttdnwf8.js} +11 -11
  53. package/dist/cli/{knowledge-events-xrd9es3p.js → knowledge-events-4h88stj7.js} +9 -9
  54. package/dist/cli/{knowledge-link-vmdj5e5d.js → knowledge-link-yykmxdyw.js} +4 -4
  55. package/dist/cli/{knowledge-store-2brg88cx.js → knowledge-store-j832fxpx.js} +5 -5
  56. package/dist/cli/{knowledge-validator-s1v7kry2.js → knowledge-validator-edbg761g.js} +7 -7
  57. package/dist/cli/{pending-delegations-b341397j.js → pending-delegations-sphntrs0.js} +4 -4
  58. package/dist/cli/{pr-subscriptions-2mkdt0ak.js → pr-subscriptions-1a4gcnzv.js} +4 -4
  59. package/dist/cli/{runner-3gw2njnx.js → runner-d294h1by.js} +5 -5
  60. package/dist/cli/{scan-cursor-jm7j3w1c.js → scan-cursor-5frvp7nb.js} +6 -6
  61. package/dist/cli/{schema-6cpgnq4s.js → schema-9xkt5hvd.js} +1 -1
  62. package/dist/cli/{scope-persistence-q713ck5n.js → scope-persistence-gk55h3sp.js} +8 -8
  63. package/dist/cli/{skill-generator-z9bs6vdt.js → skill-generator-sxxf7jbb.js} +13 -13
  64. package/dist/cli/{sqlite-loader-c92413n7.js → sqlite-loader-8zefc142.js} +1 -1
  65. package/dist/cli/{telemetry-x4zggfd7.js → telemetry-q51s6tyt.js} +1 -1
  66. package/dist/cli/{worktree-collision-ownership-drtv7jjp.js → worktree-collision-ownership-7kj2ryt1.js} +4 -4
  67. package/dist/cli/{worktree-isolation-534h3c2f.js → worktree-isolation-67fs6rz9.js} +32 -32
  68. package/dist/db/canonical-project.d.ts +31 -0
  69. package/dist/db/db-errors.d.ts +24 -0
  70. package/dist/db/driver-parity.d.ts +31 -0
  71. package/dist/db/durability.d.ts +40 -0
  72. package/dist/db/group-commit-writer.d.ts +117 -0
  73. package/dist/db/health.d.ts +35 -0
  74. package/dist/db/insight-candidate-store.d.ts +61 -0
  75. package/dist/db/legacy-import.d.ts +77 -0
  76. package/dist/db/phase-report-store.d.ts +45 -0
  77. package/dist/db/project-db.d.ts +35 -8
  78. package/dist/db/qa-gate-profile.d.ts +2 -0
  79. package/dist/hooks/curator-drift.d.ts +9 -5
  80. package/dist/hooks/curator-types.d.ts +1 -0
  81. package/dist/hooks/knowledge-curator.d.ts +5 -3
  82. package/dist/hooks/micro-reflector.d.ts +12 -7
  83. package/dist/index.js +619 -567
  84. package/dist/memory/schema.d.ts +4 -4
  85. package/dist/prm/index.d.ts +3 -1
  86. package/package.json +3 -2
  87. package/dist/cli/index-c8s9a3zh.js +0 -73
@@ -8,8 +8,8 @@ export declare const MAX_OUTCOME_QUESTION_LENGTH: number;
8
8
  export declare const MemoryScopeTypeSchema: z.ZodEnum<{
9
9
  agent: "agent";
10
10
  project: "project";
11
- workspace: "workspace";
12
11
  run: "run";
12
+ workspace: "workspace";
13
13
  repository: "repository";
14
14
  global_user: "global_user";
15
15
  cohort: "cohort";
@@ -18,8 +18,8 @@ export declare const MemoryScopeRefSchema: z.ZodObject<{
18
18
  type: z.ZodEnum<{
19
19
  agent: "agent";
20
20
  project: "project";
21
- workspace: "workspace";
22
21
  run: "run";
22
+ workspace: "workspace";
23
23
  repository: "repository";
24
24
  global_user: "global_user";
25
25
  cohort: "cohort";
@@ -75,8 +75,8 @@ export declare const MemoryRecordSchema: z.ZodObject<{
75
75
  type: z.ZodEnum<{
76
76
  agent: "agent";
77
77
  project: "project";
78
- workspace: "workspace";
79
78
  run: "run";
79
+ workspace: "workspace";
80
80
  repository: "repository";
81
81
  global_user: "global_user";
82
82
  cohort: "cohort";
@@ -173,8 +173,8 @@ export declare const MemoryProposalSchema: z.ZodObject<{
173
173
  type: z.ZodEnum<{
174
174
  agent: "agent";
175
175
  project: "project";
176
- workspace: "workspace";
177
176
  run: "run";
177
+ workspace: "workspace";
178
178
  repository: "repository";
179
179
  global_user: "global_user";
180
180
  cohort: "cohort";
@@ -126,7 +126,9 @@ export interface PrmPatternPersistenceOptions {
126
126
  *
127
127
  * It must never gate the durable append (issue #1821 F3): AC8 says disabled
128
128
  * or crashed real-time work loses nothing, and the phase-boundary backstop
129
- * can only see candidates that reached `.swarm/insight-candidates.jsonl`.
129
+ * can only see candidates that reached the durable insight stream
130
+ * (`insight_candidate` in `.swarm/swarm.db` since #2480; previously
131
+ * `.swarm/insight-candidates.jsonl`).
130
132
  * ANDing the two flags at the call site made `realtime_admission.enabled=false`
131
133
  * silently discard every PRM candidate. Mirrors `micro-reflector.ts`, which
132
134
  * appends unconditionally and gates only its enqueue.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-swarm",
3
- "version": "7.163.0",
3
+ "version": "7.164.0",
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",
@@ -16,7 +16,8 @@
16
16
  },
17
17
  "type": "module",
18
18
  "engines": {
19
- "bun": ">=1.3.13"
19
+ "bun": ">=1.3.13",
20
+ "node": ">=22.13"
20
21
  },
21
22
  "license": "MIT",
22
23
  "repository": {
@@ -1,73 +0,0 @@
1
- // @bun
2
- import {
3
- log
4
- } from "./index-zgwm4ryv.js";
5
-
6
- // src/background/event-bus.ts
7
- class AutomationEventBus {
8
- listeners = new Map;
9
- eventHistory = [];
10
- maxHistorySize;
11
- constructor(options) {
12
- this.maxHistorySize = options?.maxHistorySize ?? 100;
13
- }
14
- subscribe(type, listener) {
15
- if (!this.listeners.has(type)) {
16
- this.listeners.set(type, new Set);
17
- }
18
- this.listeners.get(type).add(listener);
19
- return () => {
20
- this.listeners.get(type)?.delete(listener);
21
- };
22
- }
23
- async publish(type, payload, source) {
24
- const event = {
25
- type,
26
- timestamp: Date.now(),
27
- payload,
28
- source
29
- };
30
- this.eventHistory.push(event);
31
- if (this.eventHistory.length > this.maxHistorySize) {
32
- this.eventHistory.shift();
33
- }
34
- log(`[EventBus] ${type}`, {
35
- source,
36
- payload: typeof payload === "object" ? "..." : payload
37
- });
38
- const listeners = this.listeners.get(type);
39
- if (listeners) {
40
- await Promise.all(Array.from(listeners).map(async (listener) => {
41
- try {
42
- await listener(event);
43
- } catch (error) {
44
- log(`[EventBus] Listener error for ${type}`, { error });
45
- }
46
- }));
47
- }
48
- }
49
- getHistory(types) {
50
- if (!types || types.length === 0) {
51
- return [...this.eventHistory];
52
- }
53
- return this.eventHistory.filter((e) => types.includes(e.type));
54
- }
55
- clearHistory() {
56
- this.eventHistory = [];
57
- }
58
- getListenerCount(type) {
59
- return this.listeners.get(type)?.size ?? 0;
60
- }
61
- hasListeners(type) {
62
- return this.getListenerCount(type) > 0;
63
- }
64
- }
65
- var globalEventBus = null;
66
- function getGlobalEventBus() {
67
- if (!globalEventBus) {
68
- globalEventBus = new AutomationEventBus;
69
- }
70
- return globalEventBus;
71
- }
72
-
73
- export { getGlobalEventBus };