opencode-swarm 7.5.0 → 7.5.2
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.
- package/dist/agents/critic.d.ts +13 -0
- package/dist/background/event-bus.d.ts +8 -0
- package/dist/background/manager.d.ts +9 -0
- package/dist/build/discovery.d.ts +7 -0
- package/dist/cli/index.js +931 -430
- package/dist/commands/registry.d.ts +16 -0
- package/dist/config/index.d.ts +13 -0
- package/dist/config/schema.d.ts +10 -0
- package/dist/db/qa-gate-profile.d.ts +13 -0
- package/dist/evidence/manager.d.ts +14 -0
- package/dist/git/branch.d.ts +19 -0
- package/dist/hooks/curator-drift.d.ts +6 -0
- package/dist/hooks/curator.d.ts +13 -0
- package/dist/hooks/extractors.d.ts +11 -0
- package/dist/hooks/knowledge-curator.d.ts +6 -0
- package/dist/hooks/knowledge-migrator.d.ts +52 -1
- package/dist/hooks/knowledge-reader.d.ts +4 -0
- package/dist/hooks/knowledge-store.d.ts +21 -0
- package/dist/hooks/knowledge-validator.d.ts +6 -0
- package/dist/hooks/utils.d.ts +14 -0
- package/dist/index.js +979 -579
- package/dist/lang/detector.d.ts +4 -0
- package/dist/lang/index.d.ts +3 -2
- package/dist/lang/registry.d.ts +6 -0
- package/dist/mutation/engine.d.ts +5 -0
- package/dist/mutation/equivalence.d.ts +5 -0
- package/dist/mutation/gate.d.ts +8 -0
- package/dist/parallel/file-locks.d.ts +15 -0
- package/dist/plan/checkpoint.d.ts +4 -0
- package/dist/plan/ledger.d.ts +36 -0
- package/dist/plan/manager.d.ts +13 -0
- package/dist/sast/rules/index.d.ts +14 -0
- package/dist/sast/semgrep.d.ts +8 -0
- package/dist/services/evidence-summary-service.d.ts +51 -1
- package/dist/services/handoff-service.d.ts +68 -0
- package/dist/services/preflight-service.d.ts +67 -0
- package/dist/services/run-memory.d.ts +22 -0
- package/dist/session/snapshot-writer.d.ts +9 -0
- package/dist/state.d.ts +26 -0
- package/dist/telemetry.d.ts +12 -0
- package/dist/test-impact/analyzer.d.ts +20 -0
- package/dist/tools/co-change-analyzer.d.ts +12 -0
- package/dist/tools/knowledge-recall.d.ts +7 -0
- package/dist/tools/lint.d.ts +10 -0
- package/dist/tools/quality-budget.d.ts +7 -0
- package/dist/tools/sast-baseline.d.ts +10 -0
- package/dist/tools/sast-scan.d.ts +8 -0
- package/dist/tools/secretscan.d.ts +8 -0
- package/dist/tools/write-retro.d.ts +9 -0
- package/dist/utils/logger.d.ts +12 -0
- package/dist/utils/path-security.d.ts +10 -0
- package/dist/utils/spec-hash.d.ts +8 -0
- package/package.json +2 -2
package/dist/agents/critic.d.ts
CHANGED
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
import type { AgentDefinition } from './architect';
|
|
2
|
+
/**
|
|
3
|
+
* Test-only dependency-injection seam. Production code calls
|
|
4
|
+
* `_internals.createCriticAgent(...)` etc. so tests can replace the functions
|
|
5
|
+
* on this object without touching the real module — `mock.module` from
|
|
6
|
+
* `bun:test` leaks across files in Bun's shared test-runner process, which
|
|
7
|
+
* would corrupt unrelated suites. Mutating this local object is file-scoped
|
|
8
|
+
* and trivially restorable via `afterEach`.
|
|
9
|
+
*/
|
|
10
|
+
export declare const _internals: {
|
|
11
|
+
createCriticAgent: typeof createCriticAgent;
|
|
12
|
+
createCriticDriftVerifierAgent: typeof createCriticDriftVerifierAgent;
|
|
13
|
+
createCriticAutonomousOversightAgent: typeof createCriticAutonomousOversightAgent;
|
|
14
|
+
};
|
|
2
15
|
export type CriticRole = 'plan_critic' | 'sounding_board' | 'phase_drift_verifier' | 'hallucination_verifier';
|
|
3
16
|
export type SoundingBoardVerdict = 'UNNECESSARY' | 'REPHRASE' | 'APPROVED' | 'RESOLVE';
|
|
4
17
|
export interface SoundingBoardResponse {
|
|
@@ -58,3 +58,11 @@ export declare function getGlobalEventBus(): AutomationEventBus;
|
|
|
58
58
|
* Reset the global event bus (for testing)
|
|
59
59
|
*/
|
|
60
60
|
export declare function resetGlobalEventBus(): void;
|
|
61
|
+
/**
|
|
62
|
+
* DI seam for testability. Contains all test-mocked exports.
|
|
63
|
+
* Internal calls should use _internals.fn() instead of fn() directly.
|
|
64
|
+
*/
|
|
65
|
+
export declare const _internals: {
|
|
66
|
+
getGlobalEventBus: typeof getGlobalEventBus;
|
|
67
|
+
resetGlobalEventBus: typeof resetGlobalEventBus;
|
|
68
|
+
};
|
|
@@ -120,3 +120,12 @@ export declare function createAutomationManager(automationConfig: AutomationConf
|
|
|
120
120
|
* Reset the global manager (for testing)
|
|
121
121
|
*/
|
|
122
122
|
export declare function resetAutomationManager(): void;
|
|
123
|
+
/**
|
|
124
|
+
* DI seam for testability. Contains all test-mocked exports.
|
|
125
|
+
* Internal calls should use _internals.fn() instead of fn() directly.
|
|
126
|
+
*/
|
|
127
|
+
export declare const _internals: {
|
|
128
|
+
getAutomationManager: typeof getAutomationManager;
|
|
129
|
+
createAutomationManager: typeof createAutomationManager;
|
|
130
|
+
resetAutomationManager: typeof resetAutomationManager;
|
|
131
|
+
};
|
|
@@ -24,6 +24,13 @@ export declare function isCommandAvailable(command: string): boolean;
|
|
|
24
24
|
/**
|
|
25
25
|
* Discover build commands using language profiles (primary detection path)
|
|
26
26
|
*/
|
|
27
|
+
export declare const _internals: {
|
|
28
|
+
isCommandAvailable: typeof isCommandAvailable;
|
|
29
|
+
discoverBuildCommandsFromProfiles: typeof discoverBuildCommandsFromProfiles;
|
|
30
|
+
discoverBuildCommands: typeof discoverBuildCommands;
|
|
31
|
+
clearToolchainCache: typeof clearToolchainCache;
|
|
32
|
+
getEcosystems: typeof getEcosystems;
|
|
33
|
+
};
|
|
27
34
|
export declare function discoverBuildCommandsFromProfiles(workingDir: string): Promise<BuildDiscoveryResult>;
|
|
28
35
|
/**
|
|
29
36
|
* Discover build commands for a given working directory
|