opencode-swarm 7.24.0 → 7.25.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.
- package/dist/cli/index.js +343 -65
- package/dist/hooks/hive-promoter.d.ts +12 -0
- package/dist/index.js +391 -107
- package/dist/mutation/engine.d.ts +4 -0
- package/dist/tools/knowledge-query.d.ts +6 -0
- package/dist/tools/test-runner.d.ts +10 -0
- package/package.json +1 -1
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { spawnSync } from 'node:child_process';
|
|
2
|
+
type SpawnSyncFn = typeof spawnSync;
|
|
1
3
|
export type MutationOutcome = 'killed' | 'survived' | 'timeout' | 'error' | 'equivalent' | 'skipped';
|
|
2
4
|
export interface MutationPatch {
|
|
3
5
|
id: string;
|
|
@@ -46,7 +48,9 @@ export declare const _internals: {
|
|
|
46
48
|
executeMutation: typeof executeMutation;
|
|
47
49
|
computeReport: typeof computeReport;
|
|
48
50
|
executeMutationSuite: typeof executeMutationSuite;
|
|
51
|
+
spawnSync: SpawnSyncFn;
|
|
49
52
|
};
|
|
50
53
|
export declare function executeMutation(patch: MutationPatch, testCommand: string[], _testFiles: string[], workingDir: string): Promise<MutationResult>;
|
|
51
54
|
export declare function computeReport(results: MutationResult[], durationMs: number, budgetMs?: number): MutationReport;
|
|
52
55
|
export declare function executeMutationSuite(patches: MutationPatch[], testCommand: string[], testFiles: string[], workingDir: string, budgetMs?: number, onProgress?: (completed: number, total: number, result: MutationResult) => void, sourceFiles?: Map<string, string>): Promise<MutationReport>;
|
|
56
|
+
export {};
|
|
@@ -2,4 +2,10 @@
|
|
|
2
2
|
* Provides filtered, formatted text output for knowledge retrieval.
|
|
3
3
|
*/
|
|
4
4
|
import type { tool } from '@opencode-ai/plugin';
|
|
5
|
+
import type { HiveKnowledgeEntry } from '../hooks/knowledge-types.js';
|
|
6
|
+
declare function formatHiveEntry(entry: HiveKnowledgeEntry): string;
|
|
5
7
|
export declare const knowledge_query: ReturnType<typeof tool>;
|
|
8
|
+
export declare const _test_exports: {
|
|
9
|
+
formatHiveEntry: typeof formatHiveEntry;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
@@ -32,6 +32,14 @@ export interface TestTotals {
|
|
|
32
32
|
skipped: number;
|
|
33
33
|
total: number;
|
|
34
34
|
}
|
|
35
|
+
export interface ParsedTestCaseResult {
|
|
36
|
+
testFile: string;
|
|
37
|
+
testName: string;
|
|
38
|
+
result: 'pass' | 'fail' | 'skip';
|
|
39
|
+
durationMs: number;
|
|
40
|
+
errorMessage?: string;
|
|
41
|
+
stackPrefix?: string;
|
|
42
|
+
}
|
|
35
43
|
export interface TestSuccessResult {
|
|
36
44
|
success: true;
|
|
37
45
|
framework: TestFramework;
|
|
@@ -42,6 +50,7 @@ export interface TestSuccessResult {
|
|
|
42
50
|
totals: TestTotals;
|
|
43
51
|
coveragePercent?: number;
|
|
44
52
|
rawOutput?: string;
|
|
53
|
+
testCases?: ParsedTestCaseResult[];
|
|
45
54
|
message?: string;
|
|
46
55
|
outcome?: RegressionOutcome;
|
|
47
56
|
}
|
|
@@ -56,6 +65,7 @@ export interface TestErrorResult {
|
|
|
56
65
|
coveragePercent?: number;
|
|
57
66
|
error: string;
|
|
58
67
|
rawOutput?: string;
|
|
68
|
+
testCases?: ParsedTestCaseResult[];
|
|
59
69
|
message?: string;
|
|
60
70
|
outcome?: RegressionOutcome;
|
|
61
71
|
attempted_scope?: 'graph';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-swarm",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.25.0",
|
|
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",
|