@openspoon/subtask2 0.1.9 → 0.1.11
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 +57 -18
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +37 -30
- package/dist/index.js.map +1 -1
- package/package.json +7 -6
package/README.md
CHANGED
|
@@ -12,12 +12,11 @@ This plugin replaces that "summarize" message with the instructions you want to
|
|
|
12
12
|
|
|
13
13
|
Tell the main agent exactly what to do after a command completes:
|
|
14
14
|
|
|
15
|
-
```
|
|
15
|
+
```yaml
|
|
16
16
|
---
|
|
17
17
|
subtask: true
|
|
18
18
|
return: Assess the code review. Challenge the findings, then implement the valid fixes.
|
|
19
19
|
---
|
|
20
|
-
|
|
21
20
|
Review this PR for bugs.
|
|
22
21
|
```
|
|
23
22
|
|
|
@@ -30,13 +29,12 @@ Review this PR for bugs.
|
|
|
30
29
|
|
|
31
30
|
Spawn additional command subtasks alongside the main one:
|
|
32
31
|
|
|
33
|
-
```
|
|
32
|
+
```yaml
|
|
34
33
|
---
|
|
35
34
|
subtask: true
|
|
36
35
|
parallel: security-review, perf-review
|
|
37
36
|
return: Synthesize all review results and create a unified action plan.
|
|
38
37
|
---
|
|
39
|
-
|
|
40
38
|
Review this code for correctness.
|
|
41
39
|
```
|
|
42
40
|
|
|
@@ -48,15 +46,41 @@ This runs 3 subtasks in parallel:
|
|
|
48
46
|
|
|
49
47
|
When ALL complete, the main agent gets the `return` prompt.
|
|
50
48
|
|
|
51
|
-
**
|
|
49
|
+
**With custom arguments per command:**
|
|
50
|
+
|
|
51
|
+
```yaml
|
|
52
|
+
---
|
|
53
|
+
subtask: true
|
|
54
|
+
parallel:
|
|
55
|
+
- command: research-docs
|
|
56
|
+
arguments: authentication flow
|
|
57
|
+
- command: research-codebase
|
|
58
|
+
arguments: auth middleware implementation
|
|
59
|
+
- security-audit
|
|
60
|
+
return: Synthesize all findings into an implementation plan.
|
|
61
|
+
---
|
|
62
|
+
Design a new auth system for $ARGUMENTS
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
- `research-docs` gets "authentication flow" as `$ARGUMENTS`
|
|
66
|
+
- `research-codebase` gets "auth middleware implementation"
|
|
67
|
+
- `security-audit` inherits the main command's `$ARGUMENTS`
|
|
68
|
+
|
|
69
|
+
**Note:** Parallel commands are forced into subtasks regardless of their own `subtask` setting. Their `return`/`chain` are ignored — only the parent's `return`/`chain` applies.
|
|
70
|
+
|
|
71
|
+
**Tip:** If all commands share the same arguments, use the simple syntax:
|
|
72
|
+
|
|
73
|
+
```yaml
|
|
74
|
+
parallel: research-docs, research-codebase, security-audit
|
|
75
|
+
```
|
|
52
76
|
|
|
53
|
-
|
|
77
|
+
All three inherit the main command's `$ARGUMENTS`.
|
|
54
78
|
|
|
55
79
|
### 3. `chain` — Sequential follow-up prompts
|
|
56
80
|
|
|
57
81
|
Queue user messages that fire after the command completes:
|
|
58
82
|
|
|
59
|
-
```
|
|
83
|
+
```yaml
|
|
60
84
|
---
|
|
61
85
|
subtask: true
|
|
62
86
|
return: Implement the fix.
|
|
@@ -64,7 +88,6 @@ chain:
|
|
|
64
88
|
- Now write tests for the fix.
|
|
65
89
|
- Run the tests and fix any failures.
|
|
66
90
|
---
|
|
67
|
-
|
|
68
91
|
Find the bug in auth.ts
|
|
69
92
|
```
|
|
70
93
|
|
|
@@ -111,37 +134,53 @@ When a subtask completes, what message does the main agent see?
|
|
|
111
134
|
|
|
112
135
|
**Simple: Make the agent act on results**
|
|
113
136
|
|
|
114
|
-
```
|
|
137
|
+
```yaml
|
|
115
138
|
---
|
|
116
139
|
return: Implement the suggested improvements.
|
|
117
140
|
---
|
|
118
|
-
|
|
119
141
|
Analyze this function for performance issues.
|
|
120
142
|
```
|
|
121
143
|
|
|
122
144
|
**Parallel: Multiple perspectives at once**
|
|
123
145
|
|
|
124
|
-
```
|
|
146
|
+
```yaml
|
|
125
147
|
---
|
|
126
148
|
subtask: true
|
|
127
149
|
parallel: brainstorm-solutions, research-prior-art
|
|
128
150
|
return: Evaluate all ideas and create an implementation plan.
|
|
129
151
|
---
|
|
130
|
-
|
|
131
152
|
Identify the core problem in our auth flow.
|
|
132
153
|
```
|
|
133
154
|
|
|
134
|
-
**
|
|
155
|
+
**Parallel: Same task, different models**
|
|
135
156
|
|
|
136
|
-
```
|
|
157
|
+
```yaml
|
|
137
158
|
---
|
|
138
|
-
|
|
159
|
+
description: multi-model ensemble, 3 models plan in parallel, best ideas unified
|
|
160
|
+
agent: build
|
|
161
|
+
model: github-copilot/gpt-5.2
|
|
162
|
+
subtask: true
|
|
163
|
+
parallel: plan-gemini, plan-opus
|
|
164
|
+
return: Compare all 3 plans and validate each directly against the codebase. Pick the best ideas from each and create a unified implementation plan.
|
|
139
165
|
chain:
|
|
140
|
-
-
|
|
141
|
-
- Update the documentation.
|
|
166
|
+
- feed the implementation plan to a @review subagent and have it critically review it.
|
|
142
167
|
---
|
|
168
|
+
Plan the implementation for the following feature: $ARGUMENTS
|
|
169
|
+
```
|
|
143
170
|
|
|
144
|
-
|
|
171
|
+
**Chain: Multi-step workflow**
|
|
172
|
+
|
|
173
|
+
```yaml
|
|
174
|
+
---
|
|
175
|
+
description: design, implement, test, document
|
|
176
|
+
subtask: true
|
|
177
|
+
return: Implement the component following the conceptual design specifications.
|
|
178
|
+
chain:
|
|
179
|
+
- Write comprehensive unit tests for all edge cases.
|
|
180
|
+
- Update the documentation and add usage examples.
|
|
181
|
+
- Run the test suite and fix any failures.
|
|
182
|
+
---
|
|
183
|
+
Conceptually design a React modal component with the following requirements: $ARGUMENTS
|
|
145
184
|
```
|
|
146
185
|
|
|
147
186
|
## License
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,qBAAqB,CAAC;AAmKhD,QAAA,MAAM,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,qBAAqB,CAAC;AAmKhD,QAAA,MAAM,MAAM,EAAE,MAqHb,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import YAML from "yaml";
|
|
1
2
|
const DEFAULT_PROMPT = "Challenge and validate the task tool output above. Verify assumptions, identify gaps or errors, then continue with the next logical step.";
|
|
2
3
|
const CONFIG_PATH = `${Bun.env.HOME ?? ""}/.config/opencode/subtask2.jsonc`;
|
|
3
4
|
function isValidConfig(obj) {
|
|
@@ -42,28 +43,12 @@ function parseFrontmatter(content) {
|
|
|
42
43
|
const match = content.match(/^---\n([\s\S]*?)\n---/);
|
|
43
44
|
if (!match)
|
|
44
45
|
return {};
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
if (!keyMatch)
|
|
51
|
-
continue;
|
|
52
|
-
const [, key, value] = keyMatch;
|
|
53
|
-
if (!value.trim()) {
|
|
54
|
-
const items = [];
|
|
55
|
-
while (i + 1 < lines.length && lines[i + 1].match(/^\s+-\s+/)) {
|
|
56
|
-
i++;
|
|
57
|
-
items.push(lines[i].replace(/^\s+-\s+/, "").trim());
|
|
58
|
-
}
|
|
59
|
-
if (items.length) {
|
|
60
|
-
fm[key] = items;
|
|
61
|
-
continue;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
fm[key] = value.trim();
|
|
46
|
+
try {
|
|
47
|
+
return YAML.parse(match[1]) ?? {};
|
|
48
|
+
}
|
|
49
|
+
catch {
|
|
50
|
+
return {};
|
|
65
51
|
}
|
|
66
|
-
return fm;
|
|
67
52
|
}
|
|
68
53
|
function getTemplateBody(content) {
|
|
69
54
|
const match = content.match(/^---\n[\s\S]*?\n---\n([\s\S]*)$/);
|
|
@@ -104,11 +89,23 @@ async function buildManifest() {
|
|
|
104
89
|
const chain = fm.chain;
|
|
105
90
|
const chainArr = chain ? (Array.isArray(chain) ? chain : [chain]) : [];
|
|
106
91
|
const parallel = fm.parallel;
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
92
|
+
let parallelArr = [];
|
|
93
|
+
if (parallel) {
|
|
94
|
+
if (Array.isArray(parallel)) {
|
|
95
|
+
parallelArr = parallel.map((p) => {
|
|
96
|
+
if (typeof p === "string") {
|
|
97
|
+
return { command: p.trim() };
|
|
98
|
+
}
|
|
99
|
+
if (typeof p === "object" && p.command) {
|
|
100
|
+
return { command: p.command, arguments: p.arguments };
|
|
101
|
+
}
|
|
102
|
+
return null;
|
|
103
|
+
}).filter((p) => p !== null);
|
|
104
|
+
}
|
|
105
|
+
else if (typeof parallel === "string") {
|
|
106
|
+
parallelArr = parallel.split(",").map((s) => ({ command: s.trim() })).filter((p) => p.command);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
112
109
|
manifest[name] = {
|
|
113
110
|
return: fm.return,
|
|
114
111
|
chain: chainArr,
|
|
@@ -153,16 +150,26 @@ const plugin = async (ctx) => {
|
|
|
153
150
|
if (!config?.parallel?.length)
|
|
154
151
|
return;
|
|
155
152
|
for (const parallelCmd of config.parallel) {
|
|
156
|
-
const cmdFile = await loadCommandFile(parallelCmd);
|
|
153
|
+
const cmdFile = await loadCommandFile(parallelCmd.command);
|
|
157
154
|
if (!cmdFile)
|
|
158
155
|
continue;
|
|
159
156
|
const fm = parseFrontmatter(cmdFile.content);
|
|
160
|
-
|
|
157
|
+
let template = getTemplateBody(cmdFile.content);
|
|
158
|
+
// Replace $ARGUMENTS with parallel-specific args or inherit from main command
|
|
159
|
+
const args = parallelCmd.arguments ?? input.arguments;
|
|
160
|
+
template = template.replace(/\$ARGUMENTS/g, args);
|
|
161
|
+
// Parse model string "provider/model" into {providerID, modelID}
|
|
162
|
+
let model;
|
|
163
|
+
if (typeof fm.model === "string" && fm.model.includes("/")) {
|
|
164
|
+
const [providerID, ...rest] = fm.model.split("/");
|
|
165
|
+
model = { providerID, modelID: rest.join("/") };
|
|
166
|
+
}
|
|
161
167
|
output.parts.push({
|
|
162
168
|
type: "subtask",
|
|
163
169
|
agent: fm.agent || "general",
|
|
164
|
-
|
|
165
|
-
|
|
170
|
+
model,
|
|
171
|
+
description: fm.description || `Parallel: ${parallelCmd.command}`,
|
|
172
|
+
command: parallelCmd.command,
|
|
166
173
|
prompt: template,
|
|
167
174
|
});
|
|
168
175
|
}
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AACA,OAAO,IAAI,MAAM,MAAM,CAAC;AAqBxB,MAAM,cAAc,GAClB,2IAA2I,CAAC;AAE9I,MAAM,WAAW,GAAG,GAAG,GAAG,CAAC,GAAG,CAAC,IAAI,IAAI,EAAE,kCAAkC,CAAC;AAE5E,SAAS,aAAa,CAAC,GAAY;IACjC,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,GAAG,KAAK,IAAI;QAAE,OAAO,KAAK,CAAC;IAC1D,MAAM,GAAG,GAAG,GAA8B,CAAC;IAC3C,IAAI,OAAO,GAAG,CAAC,eAAe,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC3D,IAAI,GAAG,CAAC,cAAc,KAAK,SAAS,IAAI,OAAO,GAAG,CAAC,cAAc,KAAK,QAAQ;QAAE,OAAO,KAAK,CAAC;IAC7F,OAAO,IAAI,CAAC;AACd,CAAC;AAED,KAAK,UAAU,UAAU;IACvB,MAAM,aAAa,GAAmB;QACpC,eAAe,EAAE,IAAI;KACtB,CAAC;IAEF,IAAI,CAAC;QACH,MAAM,IAAI,GAAG,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,C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YACpE,IAAI,aAAa,IAAI,MAAM,EAAE,CAAC;gBAC5B,wBAAwB,CAAC,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;gBACjD,MAAM,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC;oBAC/B,IAAI,EAAE,EAAC,EAAE,EAAE,KAAK,CAAC,SAAS,EAAC;oBAC3B,IAAI,EAAE,EAAC,KAAK,EAAE,CAAC,EAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,aAAa,EAAC,CAAC,EAAC;iBACrD,CAAC,CAAC;gBACH,OAAO;YACT,CAAC;YAED,eAAe;YACf,MAAM,KAAK,GAAG,UAAU,CAAC,GAAG,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;YAC9C,IAAI,CAAC,KAAK,EAAE,MAAM,IAAI,CAAC,MAAM;gBAAE,OAAO;YACtC,MAAM,IAAI,GAAG,KAAK,CAAC,KAAK,EAAG,CAAC;YAC5B,IAAI,CAAC,KAAK,CAAC,MAAM;gBAAE,UAAU,CAAC,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;YACtD,MAAM,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC;gBAC/B,IAAI,EAAE,EAAC,EAAE,EAAE,KAAK,CAAC,SAAS,EAAC;gBAC3B,IAAI,EAAE,EAAC,KAAK,EAAE,CAAC,EAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAC,CAAC,EAAC;aAC5C,CAAC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@openspoon/subtask2",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.11",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Opencode plugin for enhanced subtask control with return context and prompt chaining",
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -29,15 +29,16 @@
|
|
|
29
29
|
"access": "public"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
|
-
"@opencode-ai/plugin": "
|
|
32
|
+
"@opencode-ai/plugin": "^1.0.216"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@opencode-ai/sdk": "latest"
|
|
35
|
+
"@opencode-ai/sdk": "latest",
|
|
36
|
+
"yaml": "^2.8.2"
|
|
36
37
|
},
|
|
37
38
|
"devDependencies": {
|
|
38
|
-
"@opencode-ai/plugin": "^1.0.
|
|
39
|
-
"@types/node": "^
|
|
40
|
-
"bun-types": "^1.3.
|
|
39
|
+
"@opencode-ai/plugin": "^1.0.217",
|
|
40
|
+
"@types/node": "^25.0.3",
|
|
41
|
+
"bun-types": "^1.3.5",
|
|
41
42
|
"typescript": "^5.9.3"
|
|
42
43
|
},
|
|
43
44
|
"files": [
|