opencode-swarm 7.5.1 → 7.5.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 (53) hide show
  1. package/dist/agents/critic.d.ts +13 -0
  2. package/dist/background/event-bus.d.ts +8 -0
  3. package/dist/background/manager.d.ts +9 -0
  4. package/dist/build/discovery.d.ts +7 -0
  5. package/dist/cli/index.js +940 -431
  6. package/dist/commands/registry.d.ts +16 -0
  7. package/dist/config/index.d.ts +13 -0
  8. package/dist/config/schema.d.ts +10 -0
  9. package/dist/db/qa-gate-profile.d.ts +13 -0
  10. package/dist/evidence/manager.d.ts +14 -0
  11. package/dist/git/branch.d.ts +19 -0
  12. package/dist/hooks/curator-drift.d.ts +6 -0
  13. package/dist/hooks/curator.d.ts +13 -0
  14. package/dist/hooks/extractors.d.ts +11 -0
  15. package/dist/hooks/knowledge-curator.d.ts +6 -0
  16. package/dist/hooks/knowledge-migrator.d.ts +52 -1
  17. package/dist/hooks/knowledge-reader.d.ts +4 -0
  18. package/dist/hooks/knowledge-store.d.ts +21 -0
  19. package/dist/hooks/knowledge-validator.d.ts +6 -0
  20. package/dist/hooks/utils.d.ts +14 -0
  21. package/dist/index.js +971 -570
  22. package/dist/lang/detector.d.ts +4 -0
  23. package/dist/lang/index.d.ts +3 -2
  24. package/dist/lang/registry.d.ts +6 -0
  25. package/dist/mutation/engine.d.ts +5 -0
  26. package/dist/mutation/equivalence.d.ts +5 -0
  27. package/dist/mutation/gate.d.ts +8 -0
  28. package/dist/parallel/file-locks.d.ts +15 -0
  29. package/dist/plan/checkpoint.d.ts +4 -0
  30. package/dist/plan/ledger.d.ts +36 -0
  31. package/dist/plan/manager.d.ts +13 -0
  32. package/dist/sast/rules/index.d.ts +14 -0
  33. package/dist/sast/semgrep.d.ts +8 -0
  34. package/dist/services/evidence-summary-service.d.ts +51 -1
  35. package/dist/services/handoff-service.d.ts +68 -0
  36. package/dist/services/preflight-service.d.ts +67 -0
  37. package/dist/services/run-memory.d.ts +22 -0
  38. package/dist/session/snapshot-writer.d.ts +9 -0
  39. package/dist/state.d.ts +26 -0
  40. package/dist/telemetry.d.ts +12 -0
  41. package/dist/test-impact/analyzer.d.ts +20 -0
  42. package/dist/tools/co-change-analyzer.d.ts +12 -0
  43. package/dist/tools/knowledge-recall.d.ts +7 -0
  44. package/dist/tools/lint.d.ts +10 -0
  45. package/dist/tools/quality-budget.d.ts +7 -0
  46. package/dist/tools/sast-baseline.d.ts +10 -0
  47. package/dist/tools/sast-scan.d.ts +8 -0
  48. package/dist/tools/secretscan.d.ts +8 -0
  49. package/dist/tools/write-retro.d.ts +9 -0
  50. package/dist/utils/logger.d.ts +12 -0
  51. package/dist/utils/path-security.d.ts +10 -0
  52. package/dist/utils/spec-hash.d.ts +8 -0
  53. package/package.json +2 -2
@@ -85,3 +85,11 @@ export declare function sastScan(input: SastScanInput, directory: string, config
85
85
  * - Tier B: Semgrep (optional, if available on PATH)
86
86
  */
87
87
  export declare const sast_scan: ToolDefinition;
88
+ /**
89
+ * DI seam for testability. Contains all test-mocked exports.
90
+ * Internal calls should use _internals.fn() instead of fn() directly.
91
+ */
92
+ export declare const _internals: {
93
+ sastScan: typeof sastScan;
94
+ sast_scan: typeof sast_scan;
95
+ };
@@ -32,4 +32,12 @@ export declare const secretscan: ReturnType<typeof createSwarmTool>;
32
32
  * Run secretscan programmatically
33
33
  */
34
34
  export declare function runSecretscan(directory: string): Promise<SecretscanResult | SecretscanErrorResult>;
35
+ /**
36
+ * DI seam for testability. Contains all test-mocked exports.
37
+ * Internal calls should use _internals.fn() instead of fn() directly.
38
+ */
39
+ export declare const _internals: {
40
+ secretscan: typeof secretscan;
41
+ runSecretscan: typeof runSecretscan;
42
+ };
35
43
  export {};
@@ -53,3 +53,12 @@ export declare function executeWriteRetro(args: WriteRetroArgs, directory: strin
53
53
  * Tool definition for write_retro
54
54
  */
55
55
  export declare const write_retro: ToolDefinition;
56
+ /**
57
+ * DI seam for testability. Contains all test-mocked exports.
58
+ * Internal calls should use _internals.fn() instead of fn() directly.
59
+ * Uses getter for write_retro to avoid circular reference at module load time.
60
+ */
61
+ export declare const _internals: {
62
+ executeWriteRetro: typeof executeWriteRetro;
63
+ write_retro: typeof write_retro;
64
+ };
@@ -1,3 +1,15 @@
1
+ declare function isDebug(): boolean;
1
2
  export declare function log(message: string, data?: unknown): void;
2
3
  export declare function warn(message: string, data?: unknown): void;
3
4
  export declare function error(message: string, data?: unknown): void;
5
+ /**
6
+ * DI seam for testability. Contains all test-mocked exports.
7
+ * Internal calls should use _internals.fn() instead of fn() directly.
8
+ */
9
+ export declare const _internals: {
10
+ isDebug: typeof isDebug;
11
+ log: typeof log;
12
+ warn: typeof warn;
13
+ error: typeof error;
14
+ };
15
+ export {};
@@ -34,3 +34,13 @@ export declare function validateDirectory(directory: string): void;
34
34
  * @throws Error if the resolved target escapes the root boundary
35
35
  */
36
36
  export declare function validateSymlinkBoundary(targetPath: string, rootPath: string): void;
37
+ /**
38
+ * DI seam for testability. Contains all test-mocked exports.
39
+ * Internal calls should use _internals.fn() instead of fn() directly.
40
+ */
41
+ export declare const _internals: {
42
+ containsPathTraversal: typeof containsPathTraversal;
43
+ containsControlChars: typeof containsControlChars;
44
+ validateDirectory: typeof validateDirectory;
45
+ validateSymlinkBoundary: typeof validateSymlinkBoundary;
46
+ };
@@ -13,3 +13,11 @@ export declare function isSpecStale(directory: string, plan: Plan): Promise<{
13
13
  reason?: string;
14
14
  currentHash?: string | null;
15
15
  }>;
16
+ /**
17
+ * DI seam for testability. Contains all test-mocked exports.
18
+ * Internal calls should use _internals.fn() instead of fn() directly.
19
+ */
20
+ export declare const _internals: {
21
+ computeSpecHash: typeof computeSpecHash;
22
+ isSpecStale: typeof isSpecStale;
23
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-swarm",
3
- "version": "7.5.1",
3
+ "version": "7.5.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",
@@ -9,7 +9,7 @@
9
9
  },
10
10
  "type": "module",
11
11
  "engines": {
12
- "bun": ">=1.0.0"
12
+ "bun": ">=1.3.13"
13
13
  },
14
14
  "license": "MIT",
15
15
  "repository": {