opencode-swarm-plugin 0.12.18 → 0.12.19
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/index.js +8 -8
- package/dist/plugin.js +8 -8
- package/package.json +1 -1
- package/src/schemas/bead.ts +2 -3
- package/src/schemas/task.ts +2 -2
- package/src/swarm.ts +4 -4
package/dist/index.js
CHANGED
|
@@ -21608,7 +21608,7 @@ var BeadTreeSchema = exports_external.object({
|
|
|
21608
21608
|
title: exports_external.string().min(1),
|
|
21609
21609
|
description: exports_external.string().optional().default("")
|
|
21610
21610
|
}),
|
|
21611
|
-
subtasks: exports_external.array(SubtaskSpecSchema).min(1)
|
|
21611
|
+
subtasks: exports_external.array(SubtaskSpecSchema).min(1)
|
|
21612
21612
|
});
|
|
21613
21613
|
var EpicCreateArgsSchema = exports_external.object({
|
|
21614
21614
|
epic_title: exports_external.string().min(1),
|
|
@@ -21617,7 +21617,7 @@ var EpicCreateArgsSchema = exports_external.object({
|
|
|
21617
21617
|
title: exports_external.string().min(1),
|
|
21618
21618
|
priority: exports_external.number().int().min(0).max(3).default(2),
|
|
21619
21619
|
files: exports_external.array(exports_external.string()).optional().default([])
|
|
21620
|
-
})).min(1)
|
|
21620
|
+
})).min(1)
|
|
21621
21621
|
});
|
|
21622
21622
|
var EpicCreateResultSchema = exports_external.object({
|
|
21623
21623
|
success: exports_external.boolean(),
|
|
@@ -21720,13 +21720,13 @@ var SubtaskDependencySchema = exports_external.object({
|
|
|
21720
21720
|
var TaskDecompositionSchema = exports_external.object({
|
|
21721
21721
|
task: exports_external.string(),
|
|
21722
21722
|
reasoning: exports_external.string().optional(),
|
|
21723
|
-
subtasks: exports_external.array(DecomposedSubtaskSchema).min(1)
|
|
21723
|
+
subtasks: exports_external.array(DecomposedSubtaskSchema).min(1),
|
|
21724
21724
|
dependencies: exports_external.array(SubtaskDependencySchema).optional().default([]),
|
|
21725
21725
|
shared_context: exports_external.string().optional()
|
|
21726
21726
|
});
|
|
21727
21727
|
var DecomposeArgsSchema = exports_external.object({
|
|
21728
21728
|
task: exports_external.string().min(1),
|
|
21729
|
-
max_subtasks: exports_external.number().int().min(1).
|
|
21729
|
+
max_subtasks: exports_external.number().int().min(1).default(5),
|
|
21730
21730
|
context: exports_external.string().optional()
|
|
21731
21731
|
});
|
|
21732
21732
|
var SpawnedAgentSchema = exports_external.object({
|
|
@@ -24928,10 +24928,10 @@ var swarm_plan_prompt = tool({
|
|
|
24928
24928
|
args: {
|
|
24929
24929
|
task: tool.schema.string().min(1).describe("Task description to decompose"),
|
|
24930
24930
|
strategy: tool.schema.enum(["file-based", "feature-based", "risk-based", "auto"]).optional().describe("Decomposition strategy (default: auto-detect)"),
|
|
24931
|
-
max_subtasks: tool.schema.number().int().min(2).
|
|
24931
|
+
max_subtasks: tool.schema.number().int().min(2).default(5).describe("Maximum number of subtasks (default: 5)"),
|
|
24932
24932
|
context: tool.schema.string().optional().describe("Additional context (codebase info, constraints, etc.)"),
|
|
24933
24933
|
query_cass: tool.schema.boolean().optional().describe("Query CASS for similar past tasks (default: true)"),
|
|
24934
|
-
cass_limit: tool.schema.number().int().min(1).
|
|
24934
|
+
cass_limit: tool.schema.number().int().min(1).optional().describe("Max CASS results to include (default: 3)")
|
|
24935
24935
|
},
|
|
24936
24936
|
async execute(args) {
|
|
24937
24937
|
let selectedStrategy;
|
|
@@ -25001,10 +25001,10 @@ var swarm_decompose = tool({
|
|
|
25001
25001
|
description: "Generate decomposition prompt for breaking task into parallelizable subtasks. Optionally queries CASS for similar past tasks.",
|
|
25002
25002
|
args: {
|
|
25003
25003
|
task: tool.schema.string().min(1).describe("Task description to decompose"),
|
|
25004
|
-
max_subtasks: tool.schema.number().int().min(2).
|
|
25004
|
+
max_subtasks: tool.schema.number().int().min(2).default(5).describe("Maximum number of subtasks (default: 5)"),
|
|
25005
25005
|
context: tool.schema.string().optional().describe("Additional context (codebase info, constraints, etc.)"),
|
|
25006
25006
|
query_cass: tool.schema.boolean().optional().describe("Query CASS for similar past tasks (default: true)"),
|
|
25007
|
-
cass_limit: tool.schema.number().int().min(1).
|
|
25007
|
+
cass_limit: tool.schema.number().int().min(1).optional().describe("Max CASS results to include (default: 3)")
|
|
25008
25008
|
},
|
|
25009
25009
|
async execute(args) {
|
|
25010
25010
|
let cassContext = "";
|
package/dist/plugin.js
CHANGED
|
@@ -21608,7 +21608,7 @@ var BeadTreeSchema = exports_external.object({
|
|
|
21608
21608
|
title: exports_external.string().min(1),
|
|
21609
21609
|
description: exports_external.string().optional().default("")
|
|
21610
21610
|
}),
|
|
21611
|
-
subtasks: exports_external.array(SubtaskSpecSchema).min(1)
|
|
21611
|
+
subtasks: exports_external.array(SubtaskSpecSchema).min(1)
|
|
21612
21612
|
});
|
|
21613
21613
|
var EpicCreateArgsSchema = exports_external.object({
|
|
21614
21614
|
epic_title: exports_external.string().min(1),
|
|
@@ -21617,7 +21617,7 @@ var EpicCreateArgsSchema = exports_external.object({
|
|
|
21617
21617
|
title: exports_external.string().min(1),
|
|
21618
21618
|
priority: exports_external.number().int().min(0).max(3).default(2),
|
|
21619
21619
|
files: exports_external.array(exports_external.string()).optional().default([])
|
|
21620
|
-
})).min(1)
|
|
21620
|
+
})).min(1)
|
|
21621
21621
|
});
|
|
21622
21622
|
var EpicCreateResultSchema = exports_external.object({
|
|
21623
21623
|
success: exports_external.boolean(),
|
|
@@ -21720,13 +21720,13 @@ var SubtaskDependencySchema = exports_external.object({
|
|
|
21720
21720
|
var TaskDecompositionSchema = exports_external.object({
|
|
21721
21721
|
task: exports_external.string(),
|
|
21722
21722
|
reasoning: exports_external.string().optional(),
|
|
21723
|
-
subtasks: exports_external.array(DecomposedSubtaskSchema).min(1)
|
|
21723
|
+
subtasks: exports_external.array(DecomposedSubtaskSchema).min(1),
|
|
21724
21724
|
dependencies: exports_external.array(SubtaskDependencySchema).optional().default([]),
|
|
21725
21725
|
shared_context: exports_external.string().optional()
|
|
21726
21726
|
});
|
|
21727
21727
|
var DecomposeArgsSchema = exports_external.object({
|
|
21728
21728
|
task: exports_external.string().min(1),
|
|
21729
|
-
max_subtasks: exports_external.number().int().min(1).
|
|
21729
|
+
max_subtasks: exports_external.number().int().min(1).default(5),
|
|
21730
21730
|
context: exports_external.string().optional()
|
|
21731
21731
|
});
|
|
21732
21732
|
var SpawnedAgentSchema = exports_external.object({
|
|
@@ -24867,10 +24867,10 @@ var swarm_plan_prompt = tool({
|
|
|
24867
24867
|
args: {
|
|
24868
24868
|
task: tool.schema.string().min(1).describe("Task description to decompose"),
|
|
24869
24869
|
strategy: tool.schema.enum(["file-based", "feature-based", "risk-based", "auto"]).optional().describe("Decomposition strategy (default: auto-detect)"),
|
|
24870
|
-
max_subtasks: tool.schema.number().int().min(2).
|
|
24870
|
+
max_subtasks: tool.schema.number().int().min(2).default(5).describe("Maximum number of subtasks (default: 5)"),
|
|
24871
24871
|
context: tool.schema.string().optional().describe("Additional context (codebase info, constraints, etc.)"),
|
|
24872
24872
|
query_cass: tool.schema.boolean().optional().describe("Query CASS for similar past tasks (default: true)"),
|
|
24873
|
-
cass_limit: tool.schema.number().int().min(1).
|
|
24873
|
+
cass_limit: tool.schema.number().int().min(1).optional().describe("Max CASS results to include (default: 3)")
|
|
24874
24874
|
},
|
|
24875
24875
|
async execute(args) {
|
|
24876
24876
|
let selectedStrategy;
|
|
@@ -24940,10 +24940,10 @@ var swarm_decompose = tool({
|
|
|
24940
24940
|
description: "Generate decomposition prompt for breaking task into parallelizable subtasks. Optionally queries CASS for similar past tasks.",
|
|
24941
24941
|
args: {
|
|
24942
24942
|
task: tool.schema.string().min(1).describe("Task description to decompose"),
|
|
24943
|
-
max_subtasks: tool.schema.number().int().min(2).
|
|
24943
|
+
max_subtasks: tool.schema.number().int().min(2).default(5).describe("Maximum number of subtasks (default: 5)"),
|
|
24944
24944
|
context: tool.schema.string().optional().describe("Additional context (codebase info, constraints, etc.)"),
|
|
24945
24945
|
query_cass: tool.schema.boolean().optional().describe("Query CASS for similar past tasks (default: true)"),
|
|
24946
|
-
cass_limit: tool.schema.number().int().min(1).
|
|
24946
|
+
cass_limit: tool.schema.number().int().min(1).optional().describe("Max CASS results to include (default: 3)")
|
|
24947
24947
|
},
|
|
24948
24948
|
async execute(args) {
|
|
24949
24949
|
let cassContext = "";
|
package/package.json
CHANGED
package/src/schemas/bead.ts
CHANGED
|
@@ -117,7 +117,7 @@ export const BeadTreeSchema = z.object({
|
|
|
117
117
|
title: z.string().min(1),
|
|
118
118
|
description: z.string().optional().default(""),
|
|
119
119
|
}),
|
|
120
|
-
subtasks: z.array(SubtaskSpecSchema).min(1)
|
|
120
|
+
subtasks: z.array(SubtaskSpecSchema).min(1),
|
|
121
121
|
});
|
|
122
122
|
export type BeadTree = z.infer<typeof BeadTreeSchema>;
|
|
123
123
|
|
|
@@ -133,8 +133,7 @@ export const EpicCreateArgsSchema = z.object({
|
|
|
133
133
|
files: z.array(z.string()).optional().default([]),
|
|
134
134
|
}),
|
|
135
135
|
)
|
|
136
|
-
.min(1)
|
|
137
|
-
.max(10),
|
|
136
|
+
.min(1),
|
|
138
137
|
});
|
|
139
138
|
export type EpicCreateArgs = z.infer<typeof EpicCreateArgsSchema>;
|
|
140
139
|
|
package/src/schemas/task.ts
CHANGED
|
@@ -57,7 +57,7 @@ export type SubtaskDependency = z.infer<typeof SubtaskDependencySchema>;
|
|
|
57
57
|
export const TaskDecompositionSchema = z.object({
|
|
58
58
|
task: z.string(), // Original task description
|
|
59
59
|
reasoning: z.string().optional(), // Why this decomposition
|
|
60
|
-
subtasks: z.array(DecomposedSubtaskSchema).min(1)
|
|
60
|
+
subtasks: z.array(DecomposedSubtaskSchema).min(1),
|
|
61
61
|
dependencies: z.array(SubtaskDependencySchema).optional().default([]),
|
|
62
62
|
shared_context: z.string().optional(), // Context to pass to all agents
|
|
63
63
|
});
|
|
@@ -68,7 +68,7 @@ export type TaskDecomposition = z.infer<typeof TaskDecompositionSchema>;
|
|
|
68
68
|
*/
|
|
69
69
|
export const DecomposeArgsSchema = z.object({
|
|
70
70
|
task: z.string().min(1),
|
|
71
|
-
max_subtasks: z.number().int().min(1).
|
|
71
|
+
max_subtasks: z.number().int().min(1).default(5),
|
|
72
72
|
context: z.string().optional(),
|
|
73
73
|
});
|
|
74
74
|
export type DecomposeArgs = z.infer<typeof DecomposeArgsSchema>;
|
package/src/swarm.ts
CHANGED
|
@@ -1222,7 +1222,7 @@ export const swarm_plan_prompt = tool({
|
|
|
1222
1222
|
.number()
|
|
1223
1223
|
.int()
|
|
1224
1224
|
.min(2)
|
|
1225
|
-
|
|
1225
|
+
|
|
1226
1226
|
.default(5)
|
|
1227
1227
|
.describe("Maximum number of subtasks (default: 5)"),
|
|
1228
1228
|
context: tool.schema
|
|
@@ -1237,7 +1237,7 @@ export const swarm_plan_prompt = tool({
|
|
|
1237
1237
|
.number()
|
|
1238
1238
|
.int()
|
|
1239
1239
|
.min(1)
|
|
1240
|
-
|
|
1240
|
+
|
|
1241
1241
|
.optional()
|
|
1242
1242
|
.describe("Max CASS results to include (default: 3)"),
|
|
1243
1243
|
},
|
|
@@ -1352,7 +1352,7 @@ export const swarm_decompose = tool({
|
|
|
1352
1352
|
.number()
|
|
1353
1353
|
.int()
|
|
1354
1354
|
.min(2)
|
|
1355
|
-
|
|
1355
|
+
|
|
1356
1356
|
.default(5)
|
|
1357
1357
|
.describe("Maximum number of subtasks (default: 5)"),
|
|
1358
1358
|
context: tool.schema
|
|
@@ -1367,7 +1367,7 @@ export const swarm_decompose = tool({
|
|
|
1367
1367
|
.number()
|
|
1368
1368
|
.int()
|
|
1369
1369
|
.min(1)
|
|
1370
|
-
|
|
1370
|
+
|
|
1371
1371
|
.optional()
|
|
1372
1372
|
.describe("Max CASS results to include (default: 3)"),
|
|
1373
1373
|
},
|