opencode-swarm 7.98.2 → 7.99.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 (46) hide show
  1. package/README.md +6 -3
  2. package/dist/agents/_prompt-helpers.d.ts +1 -0
  3. package/dist/cli/{config-doctor-7yrxfa6b.js → config-doctor-9fhfy6p7.js} +2 -2
  4. package/dist/cli/{evidence-summary-service-559nas1m.js → evidence-summary-service-gvd7mw7v.js} +5 -5
  5. package/dist/cli/{explorer-jc46negv.js → explorer-rwfvbbx5.js} +1 -1
  6. package/dist/cli/{gate-evidence-nphg8hay.js → gate-evidence-ywys9vfs.js} +4 -4
  7. package/dist/cli/guardrail-explain-6g1japmf.js +30 -0
  8. package/dist/cli/{guardrail-log-53z1cf46.js → guardrail-log-ya49kpwn.js} +3 -3
  9. package/dist/cli/{index-91qtsbce.js → index-3naa2ajc.js} +1 -1
  10. package/dist/cli/{index-a0dv2c7k.js → index-5fxjagjt.js} +1 -1
  11. package/dist/cli/{index-471qxz9g.js → index-7hnwnw5g.js} +11 -1
  12. package/dist/cli/{index-kv4dd5c5.js → index-9b7qp18e.js} +1 -1
  13. package/dist/cli/{index-72k57f21.js → index-brpm7xs3.js} +1157 -803
  14. package/dist/cli/{index-hb10a2g8.js → index-f7nma02k.js} +2 -2
  15. package/dist/cli/{index-gnd1280x.js → index-h9ptj4b1.js} +1 -1
  16. package/dist/cli/{index-yrzfbqqh.js → index-qcr60fgm.js} +29 -16
  17. package/dist/cli/{index-mh1ej70w.js → index-r8f89sm9.js} +2 -2
  18. package/dist/cli/{index-zy22fg5h.js → index-svf2zjxs.js} +5 -1
  19. package/dist/cli/{index-rvweaxsd.js → index-sy329dh4.js} +2 -2
  20. package/dist/cli/{index-xchgryg4.js → index-vn263hqt.js} +16 -2
  21. package/dist/cli/{index-fjxjb66n.js → index-vwyjkzgs.js} +3 -3
  22. package/dist/cli/{index-5z2e78tv.js → index-xsswhy6k.js} +1 -1
  23. package/dist/cli/{index-chan9mkv.js → index-xy3gw0rw.js} +17 -15
  24. package/dist/cli/{index-2a6ppa65.js → index-ydgy7vg5.js} +12 -7
  25. package/dist/cli/index.js +13 -13
  26. package/dist/cli/{knowledge-store-pa58msy5.js → knowledge-store-tsa8ezka.js} +4 -4
  27. package/dist/cli/{pending-delegations-8b2js1vq.js → pending-delegations-c785p5n2.js} +2 -2
  28. package/dist/cli/{pr-subscriptions-ttvr1ta9.js → pr-subscriptions-fqrzm0tv.js} +3 -3
  29. package/dist/cli/{schema-mygkbbe9.js → schema-nz638xc3.js} +5 -1
  30. package/dist/cli/{skill-generator-3tkwcg4x.js → skill-generator-99rrfwae.js} +5 -5
  31. package/dist/cli/{telemetry-aa1ma1dr.js → telemetry-jm7t8031.js} +1 -1
  32. package/dist/commands/costs.d.ts +4 -0
  33. package/dist/commands/index.d.ts +1 -0
  34. package/dist/commands/registry.d.ts +9 -2
  35. package/dist/config/evidence-schema.d.ts +44 -44
  36. package/dist/config/index.d.ts +2 -2
  37. package/dist/config/schema.d.ts +24 -0
  38. package/dist/evidence/manager.d.ts +5 -0
  39. package/dist/hooks/knowledge-migrator.d.ts +7 -0
  40. package/dist/index.js +3074 -2478
  41. package/dist/services/cost-accounting.d.ts +65 -0
  42. package/dist/telemetry.d.ts +2 -1
  43. package/dist/turbo/lean/conflicts.d.ts +2 -13
  44. package/dist/utils/path.d.ts +1 -0
  45. package/package.json +1 -1
  46. package/dist/cli/guardrail-explain-xktjjh53.js +0 -30
@@ -93,6 +93,10 @@ export declare function checkRequirementCoverage(phase: number, directory: strin
93
93
  * Returns array of archived (deleted) task IDs.
94
94
  */
95
95
  export declare function archiveEvidence(directory: string, maxAgeDays: number, maxBundles?: number): Promise<string[]>;
96
+ /**
97
+ * Validates evidence through Zod. Exposed via _internals for DI testing.
98
+ */
99
+ declare function validateEvidence(evidence: Evidence): Evidence;
96
100
  /**
97
101
  * DI seam for testability. Contains all test-mocked exports.
98
102
  * Internal calls should use _internals.fn() instead of fn() directly.
@@ -102,5 +106,6 @@ export declare const _internals: {
102
106
  loadEvidence: typeof loadEvidence;
103
107
  listEvidenceTaskIds: typeof listEvidenceTaskIds;
104
108
  validateProjectRoot: typeof validateProjectRoot;
109
+ validateEvidence: typeof validateEvidence;
105
110
  };
106
111
  export {};
@@ -1,4 +1,6 @@
1
1
  /** One-time migration from .swarm/context.md → .swarm/knowledge.jsonl for existing projects. */
2
+ import { existsSync, readFileSync } from 'node:fs';
3
+ import { mkdir, readFile, writeFile } from 'node:fs/promises';
2
4
  import { appendKnowledge } from './knowledge-store.js';
3
5
  import type { KnowledgeCategory, KnowledgeConfig } from './knowledge-types.js';
4
6
  export interface MigrationResult {
@@ -32,6 +34,11 @@ export declare const _internals: {
32
34
  inferProjectName: typeof inferProjectName;
33
35
  writeSentinel: typeof writeSentinel;
34
36
  resolveLegacyHiveKnowledgePath: typeof resolveLegacyHiveKnowledgePath;
37
+ existsSync: typeof existsSync;
38
+ readFileSync: typeof readFileSync;
39
+ readFile: typeof readFile;
40
+ mkdir: typeof mkdir;
41
+ writeFile: typeof writeFile;
35
42
  };
36
43
  export declare function migrateContextToKnowledge(directory: string, config: KnowledgeConfig): Promise<MigrationResult>;
37
44
  /**