opencode-swarm 7.50.3 → 7.51.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/README.md +5 -0
- package/dist/cli/index.js +64 -16
- package/dist/index.js +1357 -578
- package/dist/lang/backend.d.ts +1 -0
- package/dist/tools/git-blame.d.ts +21 -0
- package/dist/tools/index.d.ts +1 -0
- package/dist/tools/manifest.d.ts +1 -0
- package/dist/tools/suggest-patch.d.ts +1 -0
- package/dist/tools/test-runner.d.ts +3 -2
- package/dist/tools/tool-metadata.d.ts +4 -0
- package/package.json +1 -1
package/dist/lang/backend.d.ts
CHANGED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { tool } from '@opencode-ai/plugin';
|
|
2
|
+
export interface BlameLine {
|
|
3
|
+
line: number;
|
|
4
|
+
sha: string;
|
|
5
|
+
author: string;
|
|
6
|
+
date: string;
|
|
7
|
+
summary: string;
|
|
8
|
+
content: string;
|
|
9
|
+
}
|
|
10
|
+
export interface GitBlameResult {
|
|
11
|
+
file: string;
|
|
12
|
+
lineCount: number;
|
|
13
|
+
lines: BlameLine[];
|
|
14
|
+
}
|
|
15
|
+
export interface GitBlameError {
|
|
16
|
+
error: string;
|
|
17
|
+
file: string;
|
|
18
|
+
lineCount: 0;
|
|
19
|
+
lines: [];
|
|
20
|
+
}
|
|
21
|
+
export declare const git_blame: ReturnType<typeof tool>;
|
package/dist/tools/index.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ export { evidence_check } from './evidence-check';
|
|
|
19
19
|
export { extract_code_blocks } from './file-extractor';
|
|
20
20
|
export { get_approved_plan } from './get-approved-plan';
|
|
21
21
|
export { get_qa_gate_profile } from './get-qa-gate-profile';
|
|
22
|
+
export { git_blame } from './git-blame';
|
|
22
23
|
export { fetchGitingest, type GitingestArgs, gitingest } from './gitingest';
|
|
23
24
|
export { imports } from './imports';
|
|
24
25
|
export { knowledge_ack } from './knowledge-ack';
|
package/dist/tools/manifest.d.ts
CHANGED
|
@@ -53,6 +53,7 @@ export declare const TOOL_MANIFEST: {
|
|
|
53
53
|
mutation_test: () => ToolDefinition;
|
|
54
54
|
generate_mutants: () => ToolDefinition;
|
|
55
55
|
detect_domains: () => ToolDefinition;
|
|
56
|
+
git_blame: () => ToolDefinition;
|
|
56
57
|
gitingest: () => ToolDefinition;
|
|
57
58
|
retrieve_summary: () => ToolDefinition;
|
|
58
59
|
extract_code_blocks: () => ToolDefinition;
|
|
@@ -25,6 +25,7 @@ export interface TestRunnerArgs {
|
|
|
25
25
|
coverage?: boolean;
|
|
26
26
|
timeout_ms?: number;
|
|
27
27
|
allow_full_suite?: boolean;
|
|
28
|
+
bail?: boolean;
|
|
28
29
|
}
|
|
29
30
|
export type RegressionOutcome = 'pass' | 'skip' | 'regression' | 'scope_exceeded' | 'error';
|
|
30
31
|
export interface TestTotals {
|
|
@@ -83,7 +84,7 @@ export declare function detectTestFrameworkViaDispatch(cwd: string): Promise<Tes
|
|
|
83
84
|
* Returns null on framework=`none` or when dispatch fails — callers (the
|
|
84
85
|
* test-runner) then surface "no test command available".
|
|
85
86
|
*/
|
|
86
|
-
export declare function buildTestCommandViaDispatch(framework: TestFramework, scope: 'all' | 'convention' | 'graph' | 'impact', files: string[], coverage: boolean, baseDir: string): Promise<string[] | null>;
|
|
87
|
+
export declare function buildTestCommandViaDispatch(framework: TestFramework, scope: 'all' | 'convention' | 'graph' | 'impact', files: string[], coverage: boolean, baseDir: string, bail: boolean): Promise<string[] | null>;
|
|
87
88
|
/**
|
|
88
89
|
* Parse test output via the LanguageBackend dispatch path. Calls
|
|
89
90
|
* `backend.parseTestOutput` for the directory's resolved backend and
|
|
@@ -127,7 +128,7 @@ export declare function isLanguageSpecificTestFile(basename: string): boolean;
|
|
|
127
128
|
* Exported for unit tests.
|
|
128
129
|
*/
|
|
129
130
|
export declare function getTestFilesFromConvention(sourceFiles: string[], workingDir?: string): string[];
|
|
130
|
-
export declare function runTests(framework: TestFramework, scope: 'all' | 'convention' | 'graph' | 'impact', files: string[], coverage: boolean, timeout_ms: number, cwd: string): Promise<TestResult>;
|
|
131
|
+
export declare function runTests(framework: TestFramework, scope: 'all' | 'convention' | 'graph' | 'impact', files: string[], coverage: boolean, timeout_ms: number, cwd: string, bail: boolean): Promise<TestResult>;
|
|
131
132
|
declare function selectHistoryForAnalysis(history: ReturnType<typeof getAllHistory>): TestRunRecord[];
|
|
132
133
|
export declare const test_runner: ReturnType<typeof tool>;
|
|
133
134
|
export declare const _internals: {
|
|
@@ -143,6 +143,10 @@ export declare const TOOL_METADATA: {
|
|
|
143
143
|
description: string;
|
|
144
144
|
agents: ("docs" | "explorer" | "sme" | "critic" | "critic_oversight" | "architect" | "docs_design" | "critic_sounding_board" | "critic_drift_verifier" | "critic_hallucination_verifier")[];
|
|
145
145
|
};
|
|
146
|
+
git_blame: {
|
|
147
|
+
description: string;
|
|
148
|
+
agents: ("reviewer" | "explorer" | "architect")[];
|
|
149
|
+
};
|
|
146
150
|
gitingest: {
|
|
147
151
|
description: string;
|
|
148
152
|
agents: ("docs" | "explorer" | "architect")[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-swarm",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.51.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",
|