opencode-swarm 7.77.1 → 7.77.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/.opencode/skills/swarm-pr-review/SKILL.md +6 -8
- package/dist/cli/index.js +6 -2
- package/dist/commands/registry.d.ts +1 -1
- package/dist/index.js +713 -278
- package/dist/tools/dispatch-lanes.d.ts +107 -0
- package/dist/tools/index.d.ts +1 -0
- package/dist/tools/manifest.d.ts +1 -0
- package/dist/tools/tool-metadata.d.ts +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { createParallelDispatcher } from '../parallel/dispatcher/parallel-dispatcher.js';
|
|
3
|
+
import { createSwarmTool } from './create-tool.js';
|
|
4
|
+
declare const LaneSchema: z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
agent: z.ZodString;
|
|
7
|
+
prompt: z.ZodString;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const DispatchLanesArgsSchema: z.ZodObject<{
|
|
10
|
+
lanes: z.ZodArray<z.ZodObject<{
|
|
11
|
+
id: z.ZodString;
|
|
12
|
+
agent: z.ZodString;
|
|
13
|
+
prompt: z.ZodString;
|
|
14
|
+
}, z.core.$strip>>;
|
|
15
|
+
max_concurrent: z.ZodOptional<z.ZodNumber>;
|
|
16
|
+
timeout_ms: z.ZodOptional<z.ZodNumber>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
export type DispatchLaneSpec = z.infer<typeof LaneSchema>;
|
|
19
|
+
export type DispatchLanesArgs = z.infer<typeof DispatchLanesArgsSchema>;
|
|
20
|
+
export type DispatchLaneStatus = 'completed' | 'failed' | 'rejected';
|
|
21
|
+
export interface DispatchLaneResult {
|
|
22
|
+
id: string;
|
|
23
|
+
agent: string;
|
|
24
|
+
role: string;
|
|
25
|
+
status: DispatchLaneStatus;
|
|
26
|
+
session_id?: string;
|
|
27
|
+
slot_id?: string;
|
|
28
|
+
run_id?: string;
|
|
29
|
+
started_at: string;
|
|
30
|
+
completed_at: string;
|
|
31
|
+
output?: string;
|
|
32
|
+
output_chars?: number;
|
|
33
|
+
output_truncated?: boolean;
|
|
34
|
+
error?: string;
|
|
35
|
+
}
|
|
36
|
+
export interface DispatchLanesResult {
|
|
37
|
+
success: boolean;
|
|
38
|
+
failure_class?: 'invalid_args' | 'no_client';
|
|
39
|
+
message?: string;
|
|
40
|
+
dispatched: number;
|
|
41
|
+
completed: number;
|
|
42
|
+
failed: number;
|
|
43
|
+
rejected: number;
|
|
44
|
+
max_concurrent: number;
|
|
45
|
+
timeout_ms: number;
|
|
46
|
+
lane_results: DispatchLaneResult[];
|
|
47
|
+
errors?: string[];
|
|
48
|
+
}
|
|
49
|
+
export interface SessionOps {
|
|
50
|
+
create(args: {
|
|
51
|
+
query: {
|
|
52
|
+
directory: string;
|
|
53
|
+
};
|
|
54
|
+
}): Promise<{
|
|
55
|
+
data?: {
|
|
56
|
+
id?: string;
|
|
57
|
+
} | null;
|
|
58
|
+
error?: unknown;
|
|
59
|
+
}>;
|
|
60
|
+
prompt(args: {
|
|
61
|
+
path: {
|
|
62
|
+
id: string;
|
|
63
|
+
};
|
|
64
|
+
body: {
|
|
65
|
+
agent: string;
|
|
66
|
+
tools: ReadOnlyToolPermissions;
|
|
67
|
+
parts: Array<{
|
|
68
|
+
type: 'text';
|
|
69
|
+
text: string;
|
|
70
|
+
}>;
|
|
71
|
+
};
|
|
72
|
+
}): Promise<{
|
|
73
|
+
data?: {
|
|
74
|
+
parts?: Array<{
|
|
75
|
+
type: string;
|
|
76
|
+
text?: string;
|
|
77
|
+
}>;
|
|
78
|
+
} | null;
|
|
79
|
+
error?: unknown;
|
|
80
|
+
}>;
|
|
81
|
+
delete(args: {
|
|
82
|
+
path: {
|
|
83
|
+
id: string;
|
|
84
|
+
};
|
|
85
|
+
}): Promise<unknown>;
|
|
86
|
+
}
|
|
87
|
+
export declare const _internals: {
|
|
88
|
+
getSessionOps: () => SessionOps | null;
|
|
89
|
+
getGeneratedAgentNames: () => readonly string[];
|
|
90
|
+
createParallelDispatcher: typeof createParallelDispatcher;
|
|
91
|
+
now: () => number;
|
|
92
|
+
};
|
|
93
|
+
export declare const _test_exports: {
|
|
94
|
+
formatError: typeof formatError;
|
|
95
|
+
};
|
|
96
|
+
type ReadOnlyToolPermissions = Record<string, false> & {
|
|
97
|
+
write: false;
|
|
98
|
+
edit: false;
|
|
99
|
+
patch: false;
|
|
100
|
+
};
|
|
101
|
+
interface DispatchLanesExecutionContext {
|
|
102
|
+
callerAgent?: string;
|
|
103
|
+
}
|
|
104
|
+
export declare function executeDispatchLanes(args: unknown, directory: string, context?: DispatchLanesExecutionContext): Promise<DispatchLanesResult>;
|
|
105
|
+
declare function formatError(error: unknown): string;
|
|
106
|
+
export declare const dispatch_lanes: ReturnType<typeof createSwarmTool>;
|
|
107
|
+
export {};
|
package/dist/tools/index.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export { declare_council_criteria } from './declare-council-criteria';
|
|
|
15
15
|
export { declare_scope } from './declare-scope';
|
|
16
16
|
export { type DiffErrorResult, type DiffResult, diff } from './diff';
|
|
17
17
|
export { diff_summary } from './diff-summary';
|
|
18
|
+
export { dispatch_lanes } from './dispatch-lanes';
|
|
18
19
|
export { doc_extract, doc_scan } from './doc-scan';
|
|
19
20
|
export { detect_domains } from './domain-detector';
|
|
20
21
|
export { evidence_check } from './evidence-check';
|
package/dist/tools/manifest.d.ts
CHANGED
|
@@ -100,6 +100,7 @@ export declare const TOOL_MANIFEST: {
|
|
|
100
100
|
swarm_memory_recall: () => ToolDefinition;
|
|
101
101
|
swarm_memory_propose: () => ToolDefinition;
|
|
102
102
|
swarm_command: () => ToolDefinition;
|
|
103
|
+
dispatch_lanes: () => ToolDefinition;
|
|
103
104
|
summarize_work: () => ToolDefinition;
|
|
104
105
|
write_architecture_supervisor_evidence: () => ToolDefinition;
|
|
105
106
|
lean_turbo_plan_lanes: () => ToolDefinition;
|
|
@@ -331,6 +331,10 @@ export declare const TOOL_METADATA: {
|
|
|
331
331
|
description: string;
|
|
332
332
|
agents: ("reviewer" | "test_engineer" | "coder" | "docs" | "designer" | "explorer" | "sme" | "critic" | "architect" | "researcher" | "docs_design")[];
|
|
333
333
|
};
|
|
334
|
+
dispatch_lanes: {
|
|
335
|
+
description: string;
|
|
336
|
+
agents: "architect"[];
|
|
337
|
+
};
|
|
334
338
|
summarize_work: {
|
|
335
339
|
description: string;
|
|
336
340
|
agents: ("test_engineer" | "coder" | "docs" | "designer" | "explorer" | "sme" | "architect" | "researcher" | "docs_design")[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-swarm",
|
|
3
|
-
"version": "7.77.
|
|
3
|
+
"version": "7.77.2",
|
|
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",
|