opencode-swarm 7.146.2 → 7.146.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 (75) hide show
  1. package/dist/agents/council-prompts.d.ts +3 -3
  2. package/dist/cli/{config-doctor-vstrprja.js → config-doctor-yd866pd5.js} +2 -2
  3. package/dist/cli/{core-3wzpwe5z.js → core-nc9a9g5m.js} +1 -1
  4. package/dist/cli/{curation-policy-x19e8bqc.js → curation-policy-9vv7v5rf.js} +6 -6
  5. package/dist/cli/{curator-cvy1s7wd.js → curator-acp80hpc.js} +27 -27
  6. package/dist/cli/{curator-llm-factory-6bra0bfd.js → curator-llm-factory-ewffa8r1.js} +27 -27
  7. package/dist/cli/{evidence-summary-service-yhap2xph.js → evidence-summary-service-8gw74j8g.js} +11 -11
  8. package/dist/cli/{gate-evidence-vxbyq5sb.js → gate-evidence-jj3zt2x1.js} +6 -6
  9. package/dist/cli/{guardrail-explain-h8cnwa02.js → guardrail-explain-50cp8k3r.js} +28 -28
  10. package/dist/cli/{guardrail-log-syb7tz2w.js → guardrail-log-jazq10gt.js} +3 -3
  11. package/dist/cli/{hive-promoter-3tex870c.js → hive-promoter-qhrngsvb.js} +27 -27
  12. package/dist/cli/{index-z5ppkn8y.js → index-0a4s2803.js} +6 -6
  13. package/dist/cli/{index-qbpxrw95.js → index-1kq3x5q6.js} +2 -2
  14. package/dist/cli/{index-tj861zhd.js → index-262kyrk3.js} +4 -4
  15. package/dist/cli/{index-c9jr4j2q.js → index-3377n9qp.js} +1 -1
  16. package/dist/cli/{index-p0m03xa6.js → index-3gagma8p.js} +4 -4
  17. package/dist/cli/{index-5e5a1y2r.js → index-3p4wgm0d.js} +1 -1
  18. package/dist/cli/{index-e1hjd15c.js → index-463msy1e.js} +1 -1
  19. package/dist/cli/{index-4vwn66wk.js → index-4zevsvaa.js} +3 -3
  20. package/dist/cli/{index-bghwrr59.js → index-6q35swn2.js} +1 -1
  21. package/dist/cli/{index-z9ed68jt.js → index-7ph5pz77.js} +17 -4
  22. package/dist/cli/{index-42nq97rb.js → index-923phxsp.js} +6 -6
  23. package/dist/cli/{index-cr90rcg3.js → index-a7cnyp5e.js} +7 -7
  24. package/dist/cli/{index-cx67qa9g.js → index-bxk21f2w.js} +1 -1
  25. package/dist/cli/{index-97psh79d.js → index-bxs4wkjf.js} +1 -1
  26. package/dist/cli/{index-y3hmyvt6.js → index-bydybrke.js} +2 -2
  27. package/dist/cli/{index-n4k0pt5f.js → index-cgcs823z.js} +4 -4
  28. package/dist/cli/{index-jv9xs6mb.js → index-eybamsqg.js} +2 -2
  29. package/dist/cli/{index-01ybcsa5.js → index-fypq68yn.js} +2 -2
  30. package/dist/cli/{index-yxhcy5cm.js → index-gayh8tmh.js} +55 -1
  31. package/dist/cli/{index-a1febb2k.js → index-gwt7ceh7.js} +2 -2
  32. package/dist/cli/{index-w0cj7zyd.js → index-j2ckvbx7.js} +1 -1
  33. package/dist/cli/{index-rfph0nhf.js → index-n96nt4gb.js} +1235 -589
  34. package/dist/cli/{index-zkaz3fhw.js → index-pc4423w8.js} +2 -2
  35. package/dist/cli/{index-vmfaafte.js → index-pgsvn005.js} +5 -5
  36. package/dist/cli/{index-qyvjp0bq.js → index-q81s0m8k.js} +66 -37
  37. package/dist/cli/{index-w5r84rd1.js → index-qjgg9qzs.js} +1 -1
  38. package/dist/cli/{index-r46q6996.js → index-qqawmxe7.js} +29 -29
  39. package/dist/cli/{index-vj9bba5k.js → index-v2eevdbj.js} +4 -4
  40. package/dist/cli/{index-ycgm9pzg.js → index-xz9w7sa9.js} +3 -2
  41. package/dist/cli/{index-f3x2gsby.js → index-ypwwchs0.js} +1 -1
  42. package/dist/cli/{index-46cypnz3.js → index-yr1aabxa.js} +4 -4
  43. package/dist/cli/index.js +27 -27
  44. package/dist/cli/{knowledge-escalator-mn4sx4qd.js → knowledge-escalator-7zpg79dx.js} +11 -11
  45. package/dist/cli/{knowledge-events-x975ngy4.js → knowledge-events-8abttcnt.js} +9 -9
  46. package/dist/cli/{knowledge-link-8pr02pza.js → knowledge-link-mgg482z6.js} +5 -5
  47. package/dist/cli/{knowledge-store-33p762ey.js → knowledge-store-a5mzf986.js} +6 -6
  48. package/dist/cli/{knowledge-validator-q5jc0scs.js → knowledge-validator-fn2myc73.js} +8 -8
  49. package/dist/cli/{pending-delegations-kkrczqv7.js → pending-delegations-591vme3d.js} +3 -3
  50. package/dist/cli/{pr-subscriptions-2xn238xt.js → pr-subscriptions-js5v2xr6.js} +3 -3
  51. package/dist/cli/{runner-e7z9cf5y.js → runner-rcnpm510.js} +6 -6
  52. package/dist/cli/{scan-cursor-p7t5mb4x.js → scan-cursor-4jv70zwb.js} +7 -7
  53. package/dist/cli/{schema-t8bmshhj.js → schema-jhz9hme9.js} +1 -1
  54. package/dist/cli/{scope-persistence-2kyrgsca.js → scope-persistence-ykswenxj.js} +7 -7
  55. package/dist/cli/{skill-generator-fwvmcv8m.js → skill-generator-k5pxb3w2.js} +13 -13
  56. package/dist/cli/{telemetry-t109dhv7.js → telemetry-xzy0qeap.js} +1 -1
  57. package/dist/cli/{worktree-collision-ownership-2jtg2my1.js → worktree-collision-ownership-vt0jzmdt.js} +3 -3
  58. package/dist/cli/{worktree-isolation-87j70zg1.js → worktree-isolation-443q0pah.js} +27 -27
  59. package/dist/commands/close.d.ts +1 -0
  60. package/dist/commands/context-map-stats.d.ts +5 -0
  61. package/dist/config/schema.d.ts +16 -0
  62. package/dist/context-map/telemetry.d.ts +168 -26
  63. package/dist/council/council-evidence-writer.d.ts +2 -1
  64. package/dist/council/council-freshness.d.ts +49 -0
  65. package/dist/council/council-review-identity.d.ts +133 -0
  66. package/dist/council/council-round-state.d.ts +27 -3
  67. package/dist/council/disagreement-detector.d.ts +12 -2
  68. package/dist/council/general-council-types.d.ts +32 -0
  69. package/dist/council/types.d.ts +43 -7
  70. package/dist/index.js +160 -138
  71. package/dist/observability/catalog.d.ts +7 -5
  72. package/dist/telemetry.d.ts +22 -1
  73. package/dist/tools/phase-complete/gates/types.d.ts +7 -0
  74. package/dist/tools/write-final-council-evidence.d.ts +1 -7
  75. package/package.json +1 -1
@@ -1,16 +1,18 @@
1
1
  /**
2
2
  * The event catalog (issue #2029).
3
3
  *
4
- * Exactly 45 entries, matching the `TelemetryEvent` union at
5
- * `src/telemetry.ts:15-92`. Thirty-eight predate the #2029 contract; the 39th is
4
+ * Exactly 46 entries, matching the `TelemetryEvent` union at
5
+ * `src/telemetry.ts:15-109`. Thirty-eight predate the #2029 contract; the 39th is
6
6
  * `agent_conflict_detected` (previously emitted through a force-cast past the
7
7
  * type system), the 40th is `close_archive_result` (issue #2030 — the
8
8
  * structured close/archive result event), the 41st is the bounded diagnostic
9
9
  * projection of authoritative knowledge-receipt transitions (issue #2031).
10
10
  * The 42nd is the human-only `knowledge_maintenance` quarantine audit
11
11
  * (issue #2033), the 43rd is the aggregate `context_pruned` transcript
12
- * mutation audit, and the 44th is the bounded `residue_health` atomic-write
13
- * residue audit (issue #2035). These late additions are instances of
12
+ * mutation audit, the 44th is the bounded `residue_health` atomic-write
13
+ * residue audit (issue #2035), and the 46th is the bounded
14
+ * `context_telemetry_health` storage audit for the issue-#2037
15
+ * `.swarm/context-telemetry.jsonl` store. These late additions are instances of
14
16
  * the defect class this contract exists to close: an event kind entering the
15
17
  * stream with no registration.
16
18
  *
@@ -65,7 +67,7 @@ export interface CatalogEntry {
65
67
  /**
66
68
  * Whether an event of this kind must carry `trace.parentSpanId`.
67
69
  *
68
- * `false` for all 45 entries today, and that is a truthful statement about
70
+ * `false` for all 46 entries today, and that is a truthful statement about
69
71
  * the current system rather than a placeholder: no producer supplies a
70
72
  * parent span, so `createObservation` never sets one. Setting this to `true`
71
73
  * for a kind whose producer cannot supply a parent would make every
@@ -32,7 +32,7 @@ export type TelemetryEvent = 'session_started' | 'session_ended' | 'agent_activa
32
32
  * `prm_hard_stop` TRIGGER emitted by `src/prm/escalation.ts`. A trigger with
33
33
  * no matching delivery means the containment never reached the agent.
34
34
  */
35
- | 'prm_hard_stop_delivered' | 'agent_conflict_detected' | 'close_archive_result' | 'knowledge_receipt_transition' | 'knowledge_maintenance' | 'residue_health';
35
+ | 'prm_hard_stop_delivered' | 'agent_conflict_detected' | 'close_archive_result' | 'knowledge_receipt_transition' | 'knowledge_maintenance' | 'residue_health' | 'context_telemetry_health';
36
36
  /** Stable classification for how a reviewer-gate decision was established. */
37
37
  export type ReviewerGateEvidenceKind = 'genuine' | 'fallback' | 'data_quality' | 'block';
38
38
  /**
@@ -236,6 +236,27 @@ export declare const telemetry: {
236
236
  oldest_age_ms: number;
237
237
  grammar_counts: Record<string, number>;
238
238
  }): void;
239
+ /**
240
+ * Context-map telemetry storage health (issue #2037). Emitted after a
241
+ * compaction or close cut for the bounded `.swarm/context-telemetry.jsonl`
242
+ * store. Bounded payload: accepted/compacted/retained/dropped/corrupt
243
+ * counts, oldest/newest timestamps, and byte figures. Counts ONLY — no
244
+ * capsule/query content and no filesystem paths, matching the observability
245
+ * contract's no-content-in-metrics rule. Enables PR 16 to alarm and PR 20 to
246
+ * report without leaking workspace layout or capsule contents.
247
+ */
248
+ contextTelemetryHealth(data: {
249
+ trigger: "compaction" | "close";
250
+ accepted_count: number;
251
+ compacted_count: number;
252
+ retained_count: number;
253
+ dropped_count: number;
254
+ corrupt_count: number;
255
+ oldest_timestamp: string | null;
256
+ newest_timestamp: string | null;
257
+ bytes: number;
258
+ limit_bytes: number;
259
+ }): void;
239
260
  /**
240
261
  * Issue #2063 C2 — the PRM hard-stop DENIAL was actually delivered to the
241
262
  * agent (thrown by the guardrails `toolBefore` consumer). `prm_hard_stop`
@@ -50,4 +50,11 @@ export interface GateContext {
50
50
  autoReviewBlocked?: boolean;
51
51
  /** Machine-readable reason from the current review run, when blocked. */
52
52
  autoReviewBlockReason?: import('../../../review/engine').ReviewEngineResult['blockReason'];
53
+ /**
54
+ * Single clock captured once for the whole aggregate phase preflight
55
+ * (issue #2102 contract D). All freshness-sensitive gates must evaluate
56
+ * against this timestamp instead of calling Date.now()/new Date() so
57
+ * their verdicts stay mutually consistent across an age boundary.
58
+ */
59
+ preflightNowMs: number;
53
60
  }
@@ -7,13 +7,7 @@ export declare const ArgsSchema: z.ZodObject<{
7
7
  projectSummary: z.ZodString;
8
8
  roundNumber: z.ZodOptional<z.ZodNumber>;
9
9
  verdicts: z.ZodArray<z.ZodObject<{
10
- agent: z.ZodEnum<{
11
- reviewer: "reviewer";
12
- test_engineer: "test_engineer";
13
- critic: "critic";
14
- explorer: "explorer";
15
- sme: "sme";
16
- }>;
10
+ agent: z.ZodString;
17
11
  verdict: z.ZodEnum<{
18
12
  APPROVE: "APPROVE";
19
13
  CONCERNS: "CONCERNS";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-swarm",
3
- "version": "7.146.2",
3
+ "version": "7.146.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",