@dougbots/avenor-opencode 0.3.3 → 0.3.5
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 +1 -1
- package/dist/index.js +12 -4
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -132,7 +132,7 @@ Shut down the avenor supervisor process and clean up temp files. Call this when
|
|
|
132
132
|
**Parallel / fire-and-forget (`wait=false`):**
|
|
133
133
|
```
|
|
134
134
|
1. avenor_spawn × N → each returns run_id immediately
|
|
135
|
-
2.
|
|
135
|
+
2. plugin starts monitoring each run immediately
|
|
136
136
|
3. (sub-agent finishes) → plugin re-prompts this session automatically
|
|
137
137
|
4. avenor_answer_permission → if a permission was routed here mid-run
|
|
138
138
|
5. avenor_events → inspect output
|
package/dist/index.js
CHANGED
|
@@ -100,6 +100,7 @@ const AvenorPlugin = async (ctx) => {
|
|
|
100
100
|
text: lines.join("\n")
|
|
101
101
|
}] }
|
|
102
102
|
}).catch(() => {});
|
|
103
|
+
run.monitoring = false;
|
|
103
104
|
return;
|
|
104
105
|
}
|
|
105
106
|
}
|
|
@@ -249,10 +250,17 @@ const AvenorPlugin = async (ctx) => {
|
|
|
249
250
|
monitoring: args.wait
|
|
250
251
|
});
|
|
251
252
|
if (result.runtime_id) runtimeIdToRunId.set(result.runtime_id, result.run_id);
|
|
252
|
-
if (!args.wait)
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
253
|
+
if (!args.wait) {
|
|
254
|
+
const run = trackedRuns.get(result.run_id);
|
|
255
|
+
if (run) {
|
|
256
|
+
run.monitoring = true;
|
|
257
|
+
monitorRun(run).catch(console.error);
|
|
258
|
+
}
|
|
259
|
+
return {
|
|
260
|
+
title: `${result.label} — dispatched`,
|
|
261
|
+
output: `Dispatched "${result.label}" (run_id: ${result.run_id}). Call avenor_status with run_id to check progress, or wait for the completion notification.`
|
|
262
|
+
};
|
|
263
|
+
}
|
|
256
264
|
context.metadata({ title: `Starting ${result.label}…` });
|
|
257
265
|
let firstPoll = true;
|
|
258
266
|
while (!context.abort.aborted) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dougbots/avenor-opencode",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"dev": "tsdown --watch"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@dougbots/avenor-core": "^0.3.
|
|
30
|
+
"@dougbots/avenor-core": "^0.3.5"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"@opencode-ai/plugin": "1.15.3"
|