opencode-swarm 7.148.0 → 7.148.1

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 (71) hide show
  1. package/dist/background/pr-review-collection-receipt.d.ts +2 -2
  2. package/dist/cli/{config-doctor-z2wam5wn.js → config-doctor-w6zphy4w.js} +2 -2
  3. package/dist/cli/{core-k7m76ce0.js → core-65qyqw2f.js} +1 -1
  4. package/dist/cli/{curation-policy-kd8j8cne.js → curation-policy-166wdjs4.js} +6 -6
  5. package/dist/cli/{curator-jwpm52kg.js → curator-2jhdfjqg.js} +27 -27
  6. package/dist/cli/{curator-llm-factory-4qt8b15s.js → curator-llm-factory-y43mx297.js} +27 -27
  7. package/dist/cli/{evidence-summary-service-90z295j3.js → evidence-summary-service-7qpganmn.js} +11 -11
  8. package/dist/cli/{gate-evidence-3q6q71fw.js → gate-evidence-p79xv25a.js} +6 -6
  9. package/dist/cli/{guardrail-explain-44xt373y.js → guardrail-explain-76sy950j.js} +28 -28
  10. package/dist/cli/{guardrail-log-kbp5jztb.js → guardrail-log-pm0w6ney.js} +3 -3
  11. package/dist/cli/{guardrail-reset-vpazhh8k.js → guardrail-reset-tkkg0bfz.js} +27 -27
  12. package/dist/cli/{hive-promoter-tdrkz9nh.js → hive-promoter-w4batwr6.js} +27 -27
  13. package/dist/cli/{index-jpa03jcc.js → index-2bsnwcmp.js} +1 -1
  14. package/dist/cli/{index-pgvx3rkq.js → index-2n9rwvcc.js} +1 -1
  15. package/dist/cli/{index-2y14mjfn.js → index-3yh2e5ca.js} +4 -2
  16. package/dist/cli/{index-9pmmexsd.js → index-5wypz451.js} +1 -1
  17. package/dist/cli/{index-x4rxh8j9.js → index-627mz27c.js} +3 -3
  18. package/dist/cli/{index-016708th.js → index-81n4ky69.js} +2 -2
  19. package/dist/cli/{index-52gnz782.js → index-c23yxr1s.js} +4 -4
  20. package/dist/cli/{index-d3bdr78h.js → index-ch6sjm8q.js} +1 -1
  21. package/dist/cli/{index-n96wwf56.js → index-dwg0z10h.js} +4 -4
  22. package/dist/cli/{index-sycndcwd.js → index-e9d2829t.js} +1 -1
  23. package/dist/cli/{index-h879g4r4.js → index-f115c8y6.js} +3 -3
  24. package/dist/cli/{index-y586zet4.js → index-fv5cc1rd.js} +2 -2
  25. package/dist/cli/{index-q81s0m8k.js → index-ghbkknjz.js} +79 -38
  26. package/dist/cli/{index-dmbaaz6d.js → index-hxqjf4me.js} +4 -4
  27. package/dist/cli/{index-zwpttdgn.js → index-jtnk7k6w.js} +1 -1
  28. package/dist/cli/{index-ffevkn7k.js → index-k5ze5v89.js} +1 -1
  29. package/dist/cli/{index-p62we2ar.js → index-kpgj4ha6.js} +1 -1
  30. package/dist/cli/{index-crpb0qke.js → index-kztxn1ww.js} +4034 -2834
  31. package/dist/cli/{index-qwj7qjjp.js → index-m97qwwrk.js} +2 -2
  32. package/dist/cli/{index-7ac5z627.js → index-mfhpk4c6.js} +1 -1
  33. package/dist/cli/{index-n0fpefqx.js → index-py2rsw1a.js} +4 -4
  34. package/dist/cli/{index-k6h5yc1j.js → index-q0gfmyzx.js} +5 -5
  35. package/dist/cli/{index-702zx3rk.js → index-qwzpsh3w.js} +1 -1
  36. package/dist/cli/{index-qcm97jfh.js → index-qzstn430.js} +1 -1
  37. package/dist/cli/{index-6q35swn2.js → index-rsn4jm90.js} +1 -1
  38. package/dist/cli/{index-dfvh1r8g.js → index-s3s2egzn.js} +29 -29
  39. package/dist/cli/{index-7hctrdk8.js → index-shazb5b6.js} +2 -2
  40. package/dist/cli/{index-rcjq8dm4.js → index-shm69en5.js} +2 -2
  41. package/dist/cli/{index-ykjjqg79.js → index-t6ys1386.js} +6 -6
  42. package/dist/cli/{index-gwrv6c56.js → index-w49v4xd6.js} +7 -7
  43. package/dist/cli/{index-07zgs6y0.js → index-x46mmaep.js} +14 -10
  44. package/dist/cli/index.js +27 -27
  45. package/dist/cli/{knowledge-escalator-0qnm48g8.js → knowledge-escalator-21n4ztqx.js} +11 -11
  46. package/dist/cli/{knowledge-events-3zv81nzp.js → knowledge-events-h5d5eayv.js} +9 -9
  47. package/dist/cli/{knowledge-link-w91bcyx2.js → knowledge-link-vgxe7gz9.js} +5 -5
  48. package/dist/cli/{knowledge-store-njtx6wj1.js → knowledge-store-y10m7x4f.js} +8 -6
  49. package/dist/cli/{knowledge-validator-7eqj5afv.js → knowledge-validator-dzm9sg0f.js} +8 -8
  50. package/dist/cli/{pending-delegations-k4x00mqc.js → pending-delegations-78zaaxz4.js} +3 -3
  51. package/dist/cli/{pr-subscriptions-x2mqc3f1.js → pr-subscriptions-9mg6mwc0.js} +3 -3
  52. package/dist/cli/{runner-gfzkp9nv.js → runner-rarzeth8.js} +6 -6
  53. package/dist/cli/{scan-cursor-a6dhyf55.js → scan-cursor-zn2qf06a.js} +7 -7
  54. package/dist/cli/{schema-p0vn1zgh.js → schema-ynwy7abm.js} +1 -1
  55. package/dist/cli/{scope-persistence-zs97zkt7.js → scope-persistence-sh30937s.js} +7 -7
  56. package/dist/cli/{skill-generator-5qg15q1j.js → skill-generator-r3knfwrp.js} +13 -13
  57. package/dist/cli/{telemetry-xzy0qeap.js → telemetry-1pnsftp0.js} +1 -1
  58. package/dist/cli/{worktree-collision-ownership-q2gswg16.js → worktree-collision-ownership-29md3k1n.js} +3 -3
  59. package/dist/cli/{worktree-isolation-ndb5fwys.js → worktree-isolation-yj7ssh24.js} +27 -27
  60. package/dist/consensus/contracts.d.ts +5 -1
  61. package/dist/consensus/corpus.d.ts +26 -3
  62. package/dist/consensus/miner.d.ts +5 -1
  63. package/dist/hooks/curator.d.ts +41 -1
  64. package/dist/hooks/knowledge-store.d.ts +26 -2
  65. package/dist/hooks/skill-scoring.d.ts +13 -3
  66. package/dist/hooks/skill-usage-log.d.ts +140 -17
  67. package/dist/hooks/skill-usage-pending.d.ts +392 -0
  68. package/dist/index.js +500 -499
  69. package/dist/observability/catalog.d.ts +6 -4
  70. package/dist/telemetry.d.ts +35 -1
  71. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * The event catalog (issue #2029).
3
3
  *
4
- * Exactly 46 entries, matching the `TelemetryEvent` union at
4
+ * Exactly 47 entries, matching the `TelemetryEvent` union at
5
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
@@ -10,9 +10,11 @@
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
12
  * mutation audit, the 44th is the bounded `residue_health` atomic-write
13
- * residue audit (issue #2035), and the 46th is the bounded
13
+ * residue audit (issue #2035), the 46th is the bounded
14
14
  * `context_telemetry_health` storage audit for the issue-#2037
15
- * `.swarm/context-telemetry.jsonl` store. These late additions are instances of
15
+ * `.swarm/context-telemetry.jsonl` store, and the 47th is the counts-only
16
+ * `skill_usage_health` storage audit for the issue-#2038
17
+ * `.swarm/skill-usage.jsonl` store and its authoritative pending sidecar. These late additions are instances of
16
18
  * the defect class this contract exists to close: an event kind entering the
17
19
  * stream with no registration.
18
20
  *
@@ -67,7 +69,7 @@ export interface CatalogEntry {
67
69
  /**
68
70
  * Whether an event of this kind must carry `trace.parentSpanId`.
69
71
  *
70
- * `false` for all 46 entries today, and that is a truthful statement about
72
+ * `false` for all 47 entries today, and that is a truthful statement about
71
73
  * the current system rather than a placeholder: no producer supplies a
72
74
  * parent span, so `createObservation` never sets one. Setting this to `true`
73
75
  * 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' | 'context_telemetry_health';
35
+ | 'prm_hard_stop_delivered' | 'agent_conflict_detected' | 'close_archive_result' | 'knowledge_receipt_transition' | 'knowledge_maintenance' | 'residue_health' | 'context_telemetry_health' | 'skill_usage_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
  /**
@@ -257,6 +257,40 @@ export declare const telemetry: {
257
257
  bytes: number;
258
258
  limit_bytes: number;
259
259
  }): void;
260
+ /**
261
+ * Skill-usage health (issue #2038). Emitted on compaction, migration,
262
+ * consumption, and pressure events for skill-usage tracking. Bounded
263
+ * payload: accepted/compacted/dropped/corrupt/retained counts, retry and
264
+ * curator figures, oldest/newest timestamps, and byte figures. Counts
265
+ * ONLY — no skill path, no per-skill identifier, no content, matching the
266
+ * observability contract's no-content-in-metrics rule. The adversarial
267
+ * case is thousands of distinct skill IDs, so a per-skill label would be
268
+ * an unbounded label set.
269
+ */
270
+ skillUsageHealth(data: {
271
+ trigger: "compaction" | "migration" | "consumption" | "pressure";
272
+ accepted: number;
273
+ compacted: number;
274
+ dropped: number;
275
+ skills_dropped: number;
276
+ corrupt: number;
277
+ pending_retained: number;
278
+ uncertain_retained: number;
279
+ uncertain_expired: number;
280
+ pending_evicted: number;
281
+ no_source_knowledge: number;
282
+ no_matching_knowledge: number;
283
+ bump_retry: number;
284
+ bump_unrecoverable: number;
285
+ bump_applied_zero: number;
286
+ pressure: number;
287
+ curator_skipped: number;
288
+ bytes: number;
289
+ limit_bytes: number;
290
+ oldest_timestamp: string | null;
291
+ newest_timestamp: string | null;
292
+ coverage: boolean;
293
+ }): void;
260
294
  /**
261
295
  * Issue #2063 C2 — the PRM hard-stop DENIAL was actually delivered to the
262
296
  * agent (thrown by the guardrails `toolBefore` consumer). `prm_hard_stop`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-swarm",
3
- "version": "7.148.0",
3
+ "version": "7.148.1",
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",