opencode-swarm 7.121.4 → 7.122.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 (37) hide show
  1. package/dist/cli/{curation-policy-10wnhpwn.js → curation-policy-cj1tpzr5.js} +2 -2
  2. package/dist/cli/{curator-3azybqrw.js → curator-3rze3pd4.js} +8 -8
  3. package/dist/cli/{curator-llm-factory-6rafny5e.js → curator-llm-factory-8rg0f77t.js} +8 -8
  4. package/dist/cli/{guardrail-explain-d1m747g5.js → guardrail-explain-hdsxa2c5.js} +9 -9
  5. package/dist/cli/{hive-promoter-4xnj3fdk.js → hive-promoter-dh38qd9m.js} +8 -8
  6. package/dist/cli/{index-5a3xsnzg.js → index-3r1w7xky.js} +1 -1
  7. package/dist/cli/{index-35xyj7gn.js → index-3sx27bxt.js} +26 -3
  8. package/dist/cli/{index-982hhpcm.js → index-68aggz0v.js} +1 -1
  9. package/dist/cli/{index-q0fv0xec.js → index-ahxrne50.js} +143 -84
  10. package/dist/cli/{index-x4fwtd59.js → index-gr7ssnj9.js} +3 -3
  11. package/dist/cli/{index-db82jxt7.js → index-j33zb3cx.js} +2 -2
  12. package/dist/cli/{index-2k6z335c.js → index-jzpv74mq.js} +9 -9
  13. package/dist/cli/{index-0f800qg7.js → index-ny13nr0x.js} +2 -2
  14. package/dist/cli/{index-j8349ac0.js → index-rkd6qwjh.js} +1 -1
  15. package/dist/cli/{index-ft6jw816.js → index-xdsj4qtd.js} +3 -3
  16. package/dist/cli/index.js +8 -8
  17. package/dist/cli/{knowledge-escalator-8ajq1fhb.js → knowledge-escalator-sya06p12.js} +3 -3
  18. package/dist/cli/{knowledge-events-2sjy3aa7.js → knowledge-events-xzps61a9.js} +3 -1
  19. package/dist/cli/{knowledge-store-27cesthc.js → knowledge-store-qg66a93n.js} +1 -1
  20. package/dist/cli/{knowledge-validator-9keh3p8j.js → knowledge-validator-gar6wv4f.js} +4 -4
  21. package/dist/cli/{scan-cursor-qmsmmg1b.js → scan-cursor-nx5y5k7r.js} +2 -2
  22. package/dist/cli/{skill-generator-hkyxdc3j.js → skill-generator-nt5qxafq.js} +5 -5
  23. package/dist/hooks/cohort-cache.d.ts +44 -0
  24. package/dist/hooks/hive-promoter.d.ts +4 -3
  25. package/dist/hooks/host-boundary.d.ts +147 -0
  26. package/dist/hooks/incremental-verify.d.ts +3 -0
  27. package/dist/hooks/knowledge-events.d.ts +25 -2
  28. package/dist/hooks/knowledge-injector.d.ts +9 -1
  29. package/dist/hooks/knowledge-receipt-validator.d.ts +98 -0
  30. package/dist/hooks/micro-reflector.d.ts +3 -0
  31. package/dist/hooks/pr-auto-subscribe.d.ts +3 -0
  32. package/dist/hooks/promotion-evidence-store.d.ts +33 -0
  33. package/dist/index.js +237 -230
  34. package/dist/services/knowledge-diagnostics.d.ts +12 -0
  35. package/dist/session/snapshot-writer.d.ts +5 -0
  36. package/dist/state.d.ts +11 -0
  37. package/package.json +1 -1
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Promotion-evidence store (issue #1849 §B2).
3
+ *
4
+ * Append-only, FIFO-bounded JSONL store for {@link PromotionEvidenceRecord}s
5
+ * produced when a validated terminal receipt (applied/violated/contradicted) is
6
+ * filed. This is the wiring that finally feeds #1847's
7
+ * {@link evaluatePromotionPolicy} consumer (previously inert "until #1849
8
+ * produces real receipts").
9
+ *
10
+ * Per-worktree by design: promotion evidence records THIS worktree's observed
11
+ * applications. It is intentionally NOT a member of `KNOWLEDGE_FAMILY` (the
12
+ * linked-cohort shared-artifact manifest), matching the precedent set by
13
+ * `src/turbo/epic/promotion-evidence.ts`. It lives under the project-root
14
+ * `.swarm/` (via {@link validateSwarmPath}), NOT the link-aware shared store
15
+ * dir, so it stays per-worktree.
16
+ */
17
+ import type { PromotionEvidenceRecord } from './knowledge-types.js';
18
+ /** Resolve the promotion-evidence log path under the project-root `.swarm/`. */
19
+ export declare function resolvePromotionEvidencePath(directory: string): string;
20
+ /**
21
+ * Append validated promotion-evidence records. Fail-open + bounded: a write
22
+ * error logs and continues (the receipt event itself is the authoritative
23
+ * record; promotion evidence is a derived consumer). FIFO-trims the log when it
24
+ * exceeds {@link MAX_PROMOTION_EVIDENCE_ENTRIES}.
25
+ */
26
+ export declare function appendPromotionEvidence(directory: string, records: PromotionEvidenceRecord[]): Promise<void>;
27
+ /**
28
+ * Load all promotion-evidence records, grouped by entry_id. This is the loader
29
+ * that replaces the inert stub at `hive-promoter.ts:loadPromotionEvidence`.
30
+ * Returns an empty object when the file is absent (no evidence yet — the
31
+ * conservative default). Never throws.
32
+ */
33
+ export declare function loadPromotionEvidenceByEntry(directory: string): Promise<Record<string, PromotionEvidenceRecord[]>>;