opencode-swarm 6.44.3 → 6.45.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.
@@ -0,0 +1,24 @@
1
+ import { type ToolDefinition } from '@opencode-ai/plugin/tool';
2
+ export interface SymbolInfo {
3
+ name: string;
4
+ kind: 'function' | 'class' | 'interface' | 'type' | 'enum' | 'const' | 'variable' | 'method' | 'property';
5
+ exported: boolean;
6
+ signature: string;
7
+ line: number;
8
+ jsdoc?: string;
9
+ }
10
+ export type FileErrorType = 'file-not-found' | 'parse-error' | 'empty-file' | 'unsupported-language' | 'path-traversal' | 'path-outside-workspace' | 'invalid-path';
11
+ export interface FileSymbolResult {
12
+ file: string;
13
+ success: boolean;
14
+ symbols?: SymbolInfo[];
15
+ error?: string;
16
+ errorType?: FileErrorType;
17
+ }
18
+ export interface BatchSymbolsResult {
19
+ results: FileSymbolResult[];
20
+ totalFiles: number;
21
+ successCount: number;
22
+ failureCount: number;
23
+ }
24
+ export declare const batch_symbols: ToolDefinition;
@@ -0,0 +1 @@
1
+ export {};
@@ -1,3 +1,4 @@
1
+ export { batch_symbols } from './batch-symbols';
1
2
  export { build_check } from './build-check';
2
3
  export { check_gate_status } from './check-gate-status';
3
4
  export { checkpoint } from './checkpoint';
@@ -29,7 +30,9 @@ export type { SavePlanArgs, SavePlanResult } from './save-plan';
29
30
  export { save_plan } from './save-plan';
30
31
  export { type SbomGenerateInput, type SbomGenerateResult, sbom_generate, } from './sbom-generate';
31
32
  export { schema_drift } from './schema-drift';
33
+ export { search } from './search';
32
34
  export { type SecretFinding, type SecretscanResult, secretscan, } from './secretscan';
35
+ export { suggestPatch } from './suggest-patch';
33
36
  export { symbols } from './symbols';
34
37
  export { type SyntaxCheckFileResult, type SyntaxCheckInput, type SyntaxCheckResult, syntaxCheck, } from './syntax-check';
35
38
  export { test_runner } from './test-runner';
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,29 @@
1
+ import { type ToolDefinition } from '@opencode-ai/plugin/tool';
2
+ export interface SearchMatch {
3
+ file: string;
4
+ lineNumber: number;
5
+ lineText: string;
6
+ context?: string[];
7
+ }
8
+ export interface SearchResult {
9
+ matches: SearchMatch[];
10
+ truncated: boolean;
11
+ total: number;
12
+ query: string;
13
+ mode: 'literal' | 'regex';
14
+ maxResults: number;
15
+ }
16
+ export interface SearchError {
17
+ error: true;
18
+ type: 'rg-not-found' | 'regex-timeout' | 'path-escape' | 'invalid-query' | 'unknown';
19
+ message: string;
20
+ }
21
+ export interface SearchArgs {
22
+ query: string;
23
+ mode?: 'literal' | 'regex';
24
+ include?: string;
25
+ exclude?: string;
26
+ max_results?: number;
27
+ max_lines?: number;
28
+ }
29
+ export declare const search: ToolDefinition;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,37 @@
1
+ import { type ToolDefinition } from '@opencode-ai/plugin/tool';
2
+ export interface PatchHunk {
3
+ file: string;
4
+ originalContext: string[];
5
+ newContent: string;
6
+ hunkIndex: number;
7
+ }
8
+ export interface PatchSuggestion {
9
+ success: true;
10
+ patches: PatchHunk[];
11
+ filesModified: string[];
12
+ errors?: PatchError[];
13
+ }
14
+ export interface PatchError {
15
+ success: false;
16
+ error: true;
17
+ type: 'context-mismatch' | 'file-not-found' | 'parse-error' | 'unknown';
18
+ message: string;
19
+ details?: {
20
+ expected?: string;
21
+ actual?: string;
22
+ location?: string;
23
+ };
24
+ errors?: PatchError[];
25
+ }
26
+ export interface ChangeDescription {
27
+ file: string;
28
+ contextBefore?: string[];
29
+ contextAfter?: string[];
30
+ oldContent?: string;
31
+ newContent: string;
32
+ }
33
+ export interface SuggestPatchArgs {
34
+ targetFiles: string[];
35
+ changes: ChangeDescription[];
36
+ }
37
+ export declare const suggestPatch: ToolDefinition;
@@ -0,0 +1 @@
1
+ export {};
@@ -1,2 +1,21 @@
1
1
  import { type ToolDefinition } from '@opencode-ai/plugin/tool';
2
+ interface SymbolInfo {
3
+ name: string;
4
+ kind: 'function' | 'class' | 'interface' | 'type' | 'enum' | 'const' | 'variable' | 'method' | 'property';
5
+ exported: boolean;
6
+ signature: string;
7
+ line: number;
8
+ jsdoc?: string;
9
+ }
10
+ /**
11
+ * Extract symbols from a TypeScript/JavaScript file using regex-based parsing.
12
+ * Handles: export function, export const, export class, export interface,
13
+ * export type, export enum, export default, and class members.
14
+ */
15
+ export declare function extractTSSymbols(filePath: string, cwd: string): SymbolInfo[];
16
+ /**
17
+ * Extract symbols from a Python file.
18
+ */
19
+ export declare function extractPythonSymbols(filePath: string, cwd: string): SymbolInfo[];
2
20
  export declare const symbols: ToolDefinition;
21
+ export {};
@@ -3,7 +3,7 @@
3
3
  * Used for constants and agent setup references.
4
4
  */
5
5
  /** Union type of all valid tool names */
6
- export type ToolName = 'diff' | 'syntax_check' | 'placeholder_scan' | 'imports' | 'lint' | 'secretscan' | 'sast_scan' | 'build_check' | 'pre_check_batch' | 'quality_budget' | 'symbols' | 'complexity_hotspots' | 'schema_drift' | 'todo_extract' | 'evidence_check' | 'check_gate_status' | 'completion_verify' | 'sbom_generate' | 'checkpoint' | 'pkg_audit' | 'test_runner' | 'detect_domains' | 'gitingest' | 'retrieve_summary' | 'extract_code_blocks' | 'phase_complete' | 'save_plan' | 'update_task_status' | 'write_retro' | 'write_drift_evidence' | 'declare_scope' | 'knowledge_query' | 'doc_scan' | 'doc_extract' | 'curator_analyze' | 'knowledgeAdd' | 'knowledgeRecall' | 'knowledgeRemove' | 'co_change_analyzer';
6
+ export type ToolName = 'diff' | 'syntax_check' | 'placeholder_scan' | 'imports' | 'lint' | 'secretscan' | 'sast_scan' | 'build_check' | 'pre_check_batch' | 'quality_budget' | 'symbols' | 'complexity_hotspots' | 'schema_drift' | 'todo_extract' | 'evidence_check' | 'check_gate_status' | 'completion_verify' | 'sbom_generate' | 'checkpoint' | 'pkg_audit' | 'test_runner' | 'detect_domains' | 'gitingest' | 'retrieve_summary' | 'extract_code_blocks' | 'phase_complete' | 'save_plan' | 'update_task_status' | 'write_retro' | 'write_drift_evidence' | 'declare_scope' | 'knowledge_query' | 'doc_scan' | 'doc_extract' | 'curator_analyze' | 'knowledgeAdd' | 'knowledgeRecall' | 'knowledgeRemove' | 'co_change_analyzer' | 'search' | 'batch_symbols' | 'suggest_patch';
7
7
  /** Readonly array of all tool names */
8
8
  export declare const TOOL_NAMES: readonly ToolName[];
9
9
  /** Set for O(1) tool name validation */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-swarm",
3
- "version": "6.44.3",
3
+ "version": "6.45.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",