opencode-swarm 7.79.6 → 7.80.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/.opencode/skills/brainstorm/SKILL.md +1 -1
- package/.opencode/skills/codebase-review-swarm/SKILL.md +6 -0
- package/.opencode/skills/codebase-review-swarm/references/review-protocol-v8.2.md +5 -5
- package/.opencode/skills/council/SKILL.md +10 -3
- package/.opencode/skills/deep-dive/SKILL.md +4 -2
- package/.opencode/skills/deep-research/SKILL.md +13 -5
- package/.opencode/skills/plan/SKILL.md +1 -1
- package/.opencode/skills/specify/SKILL.md +1 -1
- package/.opencode/skills/swarm-pr-feedback/SKILL.md +18 -0
- package/.opencode/skills/swarm-pr-review/SKILL.md +5 -5
- package/dist/background/completion-observer.d.ts +5 -5
- package/dist/background/pending-delegations.d.ts +58 -17
- package/dist/background/task-envelope.d.ts +5 -0
- package/dist/cli/index.js +187 -18
- package/dist/config/schema.d.ts +2 -0
- package/dist/hooks/knowledge-curator.d.ts +2 -0
- package/dist/hooks/knowledge-types.d.ts +1 -0
- package/dist/index.js +889 -69
- package/dist/memory/schema.d.ts +4 -4
- package/dist/tools/dispatch-lanes.d.ts +118 -1
- package/dist/tools/index.d.ts +1 -1
- package/dist/tools/manifest.d.ts +2 -0
- package/dist/tools/tool-metadata.d.ts +8 -0
- package/package.json +1 -1
package/dist/memory/schema.d.ts
CHANGED
|
@@ -3,18 +3,18 @@ import type { CuratorMemoryDecision, MemoryKind, MemoryPatch, MemoryProposal, Me
|
|
|
3
3
|
export declare const MemoryScopeTypeSchema: z.ZodEnum<{
|
|
4
4
|
agent: "agent";
|
|
5
5
|
project: "project";
|
|
6
|
+
workspace: "workspace";
|
|
6
7
|
run: "run";
|
|
7
8
|
global_user: "global_user";
|
|
8
|
-
workspace: "workspace";
|
|
9
9
|
repository: "repository";
|
|
10
10
|
}>;
|
|
11
11
|
export declare const MemoryScopeRefSchema: z.ZodObject<{
|
|
12
12
|
type: z.ZodEnum<{
|
|
13
13
|
agent: "agent";
|
|
14
14
|
project: "project";
|
|
15
|
+
workspace: "workspace";
|
|
15
16
|
run: "run";
|
|
16
17
|
global_user: "global_user";
|
|
17
|
-
workspace: "workspace";
|
|
18
18
|
repository: "repository";
|
|
19
19
|
}>;
|
|
20
20
|
userId: z.ZodOptional<z.ZodString>;
|
|
@@ -63,9 +63,9 @@ export declare const MemoryRecordSchema: z.ZodObject<{
|
|
|
63
63
|
type: z.ZodEnum<{
|
|
64
64
|
agent: "agent";
|
|
65
65
|
project: "project";
|
|
66
|
+
workspace: "workspace";
|
|
66
67
|
run: "run";
|
|
67
68
|
global_user: "global_user";
|
|
68
|
-
workspace: "workspace";
|
|
69
69
|
repository: "repository";
|
|
70
70
|
}>;
|
|
71
71
|
userId: z.ZodOptional<z.ZodString>;
|
|
@@ -141,9 +141,9 @@ export declare const MemoryProposalSchema: z.ZodObject<{
|
|
|
141
141
|
type: z.ZodEnum<{
|
|
142
142
|
agent: "agent";
|
|
143
143
|
project: "project";
|
|
144
|
+
workspace: "workspace";
|
|
144
145
|
run: "run";
|
|
145
146
|
global_user: "global_user";
|
|
146
|
-
workspace: "workspace";
|
|
147
147
|
repository: "repository";
|
|
148
148
|
}>;
|
|
149
149
|
userId: z.ZodOptional<z.ZodString>;
|
|
@@ -15,9 +15,31 @@ declare const DispatchLanesArgsSchema: z.ZodObject<{
|
|
|
15
15
|
max_concurrent: z.ZodOptional<z.ZodNumber>;
|
|
16
16
|
timeout_ms: z.ZodOptional<z.ZodNumber>;
|
|
17
17
|
}, z.core.$strip>;
|
|
18
|
+
declare const DispatchLanesAsyncArgsSchema: z.ZodObject<{
|
|
19
|
+
lanes: z.ZodArray<z.ZodObject<{
|
|
20
|
+
id: z.ZodString;
|
|
21
|
+
agent: z.ZodString;
|
|
22
|
+
prompt: z.ZodString;
|
|
23
|
+
}, z.core.$strip>>;
|
|
24
|
+
max_concurrent: z.ZodOptional<z.ZodNumber>;
|
|
25
|
+
timeout_ms: z.ZodOptional<z.ZodNumber>;
|
|
26
|
+
batch_id: z.ZodOptional<z.ZodString>;
|
|
27
|
+
mode: z.ZodOptional<z.ZodString>;
|
|
28
|
+
pr_head_sha: z.ZodOptional<z.ZodString>;
|
|
29
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
declare const CollectLaneResultsArgsSchema: z.ZodObject<{
|
|
32
|
+
batch_id: z.ZodString;
|
|
33
|
+
wait: z.ZodOptional<z.ZodBoolean>;
|
|
34
|
+
timeout_ms: z.ZodOptional<z.ZodNumber>;
|
|
35
|
+
include_pending: z.ZodOptional<z.ZodBoolean>;
|
|
36
|
+
cancel_pending: z.ZodOptional<z.ZodBoolean>;
|
|
37
|
+
}, z.core.$strip>;
|
|
18
38
|
export type DispatchLaneSpec = z.infer<typeof LaneSchema>;
|
|
19
39
|
export type DispatchLanesArgs = z.infer<typeof DispatchLanesArgsSchema>;
|
|
20
|
-
export type
|
|
40
|
+
export type DispatchLanesAsyncArgs = z.infer<typeof DispatchLanesAsyncArgsSchema>;
|
|
41
|
+
export type CollectLaneResultsArgs = z.infer<typeof CollectLaneResultsArgsSchema>;
|
|
42
|
+
export type DispatchLaneStatus = 'pending' | 'completed' | 'failed' | 'rejected' | 'cancelled' | 'stale' | 'consumed';
|
|
21
43
|
export interface DispatchLaneResult {
|
|
22
44
|
id: string;
|
|
23
45
|
agent: string;
|
|
@@ -46,6 +68,36 @@ export interface DispatchLanesResult {
|
|
|
46
68
|
lane_results: DispatchLaneResult[];
|
|
47
69
|
errors?: string[];
|
|
48
70
|
}
|
|
71
|
+
export interface DispatchLanesAsyncResult {
|
|
72
|
+
success: boolean;
|
|
73
|
+
failure_class?: 'invalid_args' | 'no_client';
|
|
74
|
+
message?: string;
|
|
75
|
+
batch_id: string | null;
|
|
76
|
+
dispatched: number;
|
|
77
|
+
pending: number;
|
|
78
|
+
failed: number;
|
|
79
|
+
rejected: number;
|
|
80
|
+
max_concurrent: number;
|
|
81
|
+
timeout_ms: number;
|
|
82
|
+
lane_results: DispatchLaneResult[];
|
|
83
|
+
errors?: string[];
|
|
84
|
+
}
|
|
85
|
+
export interface CollectLaneResultsResult {
|
|
86
|
+
success: boolean;
|
|
87
|
+
failure_class?: 'invalid_args' | 'not_found' | 'no_client';
|
|
88
|
+
message?: string;
|
|
89
|
+
batch_id: string;
|
|
90
|
+
total: number;
|
|
91
|
+
completed: number;
|
|
92
|
+
failed: number;
|
|
93
|
+
cancelled: number;
|
|
94
|
+
stale: number;
|
|
95
|
+
pending: number;
|
|
96
|
+
consumed: number;
|
|
97
|
+
all_settled: boolean;
|
|
98
|
+
lane_results: DispatchLaneResult[];
|
|
99
|
+
errors?: string[];
|
|
100
|
+
}
|
|
49
101
|
export interface SessionOps {
|
|
50
102
|
create(args: {
|
|
51
103
|
query: {
|
|
@@ -79,6 +131,51 @@ export interface SessionOps {
|
|
|
79
131
|
} | null;
|
|
80
132
|
error?: unknown;
|
|
81
133
|
}>;
|
|
134
|
+
promptAsync?: (args: {
|
|
135
|
+
path: {
|
|
136
|
+
id: string;
|
|
137
|
+
};
|
|
138
|
+
query?: {
|
|
139
|
+
directory?: string;
|
|
140
|
+
};
|
|
141
|
+
body: {
|
|
142
|
+
agent: string;
|
|
143
|
+
tools: ReadOnlyToolPermissions;
|
|
144
|
+
parts: Array<{
|
|
145
|
+
type: 'text';
|
|
146
|
+
text: string;
|
|
147
|
+
}>;
|
|
148
|
+
};
|
|
149
|
+
signal?: AbortSignal;
|
|
150
|
+
}) => Promise<{
|
|
151
|
+
data?: unknown;
|
|
152
|
+
error?: unknown;
|
|
153
|
+
}>;
|
|
154
|
+
messages?: (args: {
|
|
155
|
+
path: {
|
|
156
|
+
id: string;
|
|
157
|
+
};
|
|
158
|
+
query?: {
|
|
159
|
+
directory?: string;
|
|
160
|
+
limit?: number;
|
|
161
|
+
};
|
|
162
|
+
}) => Promise<{
|
|
163
|
+
data?: Array<{
|
|
164
|
+
info?: {
|
|
165
|
+
role?: string;
|
|
166
|
+
};
|
|
167
|
+
parts?: Array<{
|
|
168
|
+
type: string;
|
|
169
|
+
text?: string;
|
|
170
|
+
}>;
|
|
171
|
+
}> | null;
|
|
172
|
+
error?: unknown;
|
|
173
|
+
}>;
|
|
174
|
+
abort?: (args: {
|
|
175
|
+
path: {
|
|
176
|
+
id: string;
|
|
177
|
+
};
|
|
178
|
+
}) => Promise<unknown>;
|
|
82
179
|
delete(args: {
|
|
83
180
|
path: {
|
|
84
181
|
id: string;
|
|
@@ -90,9 +187,13 @@ export declare const _internals: {
|
|
|
90
187
|
getGeneratedAgentNames: () => readonly string[];
|
|
91
188
|
createParallelDispatcher: typeof createParallelDispatcher;
|
|
92
189
|
now: () => number;
|
|
190
|
+
sleep: (ms: number) => Promise<void>;
|
|
93
191
|
};
|
|
94
192
|
export declare const _test_exports: {
|
|
193
|
+
extractLastAssistantText: typeof extractLastAssistantText;
|
|
95
194
|
formatError: typeof formatError;
|
|
195
|
+
nextCollectPollInterval: typeof nextCollectPollInterval;
|
|
196
|
+
promptHash: typeof promptHash;
|
|
96
197
|
};
|
|
97
198
|
type ReadOnlyToolPermissions = Record<string, false> & {
|
|
98
199
|
write: false;
|
|
@@ -101,8 +202,24 @@ type ReadOnlyToolPermissions = Record<string, false> & {
|
|
|
101
202
|
};
|
|
102
203
|
interface DispatchLanesExecutionContext {
|
|
103
204
|
callerAgent?: string;
|
|
205
|
+
sessionID?: string;
|
|
104
206
|
}
|
|
105
207
|
export declare function executeDispatchLanes(args: unknown, directory: string, context?: DispatchLanesExecutionContext): Promise<DispatchLanesResult>;
|
|
208
|
+
export declare function executeDispatchLanesAsync(args: unknown, directory: string, context?: DispatchLanesExecutionContext): Promise<DispatchLanesAsyncResult>;
|
|
209
|
+
export declare function executeCollectLaneResults(args: unknown, directory: string, context?: Pick<DispatchLanesExecutionContext, 'sessionID'>): Promise<CollectLaneResultsResult>;
|
|
210
|
+
declare function extractLastAssistantText(messages: Array<{
|
|
211
|
+
info?: {
|
|
212
|
+
role?: string;
|
|
213
|
+
};
|
|
214
|
+
parts?: Array<{
|
|
215
|
+
type: string;
|
|
216
|
+
text?: string;
|
|
217
|
+
}>;
|
|
218
|
+
}>): string;
|
|
219
|
+
declare function nextCollectPollInterval(currentMs: number): number;
|
|
106
220
|
declare function formatError(error: unknown): string;
|
|
221
|
+
declare function promptHash(lane: DispatchLaneSpec, directory: string, batchId: string): string;
|
|
107
222
|
export declare const dispatch_lanes: ReturnType<typeof createSwarmTool>;
|
|
223
|
+
export declare const dispatch_lanes_async: ReturnType<typeof createSwarmTool>;
|
|
224
|
+
export declare const collect_lane_results: ReturnType<typeof createSwarmTool>;
|
|
108
225
|
export {};
|
package/dist/tools/index.d.ts
CHANGED
|
@@ -15,7 +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
|
+
export { collect_lane_results, dispatch_lanes, dispatch_lanes_async, } from './dispatch-lanes';
|
|
19
19
|
export { doc_extract, doc_scan } from './doc-scan';
|
|
20
20
|
export { detect_domains } from './domain-detector';
|
|
21
21
|
export { evidence_check } from './evidence-check';
|
package/dist/tools/manifest.d.ts
CHANGED
|
@@ -100,6 +100,8 @@ export declare const TOOL_MANIFEST: {
|
|
|
100
100
|
swarm_memory_propose: () => ToolDefinition;
|
|
101
101
|
swarm_command: () => ToolDefinition;
|
|
102
102
|
dispatch_lanes: () => ToolDefinition;
|
|
103
|
+
dispatch_lanes_async: () => ToolDefinition;
|
|
104
|
+
collect_lane_results: () => ToolDefinition;
|
|
103
105
|
summarize_work: () => ToolDefinition;
|
|
104
106
|
write_architecture_supervisor_evidence: () => ToolDefinition;
|
|
105
107
|
lean_turbo_plan_lanes: () => ToolDefinition;
|
|
@@ -331,6 +331,14 @@ export declare const TOOL_METADATA: {
|
|
|
331
331
|
description: string;
|
|
332
332
|
agents: "architect"[];
|
|
333
333
|
};
|
|
334
|
+
dispatch_lanes_async: {
|
|
335
|
+
description: string;
|
|
336
|
+
agents: "architect"[];
|
|
337
|
+
};
|
|
338
|
+
collect_lane_results: {
|
|
339
|
+
description: string;
|
|
340
|
+
agents: "architect"[];
|
|
341
|
+
};
|
|
334
342
|
summarize_work: {
|
|
335
343
|
description: string;
|
|
336
344
|
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.
|
|
3
|
+
"version": "7.80.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",
|