@sjawhar/opencode-legion-envoy 8.7.0 → 8.8.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/dist/dispatch.js CHANGED
@@ -19251,9 +19251,17 @@ async function runDispatchCli(argv, rawEnv, io) {
19251
19251
 
19252
19252
  // ../envoy-client/bin/dispatch.ts
19253
19253
  var readText = (path2) => readFileSync4(path2 === "-" ? 0 : path2, "utf-8");
19254
- process.exit(await runDispatchCli(Bun.argv.slice(2), process.env, {
19255
- stdout: (text) => process.stdout.write(text),
19256
- stderr: (text) => process.stderr.write(text),
19254
+ var pending = [];
19255
+ var writeTo = (stream) => (text) => {
19256
+ const { promise: promise2, resolve: resolve2 } = Promise.withResolvers();
19257
+ stream.write(text, () => resolve2());
19258
+ pending.push(promise2);
19259
+ };
19260
+ var code = await runDispatchCli(Bun.argv.slice(2), process.env, {
19261
+ stdout: writeTo(process.stdout),
19262
+ stderr: writeTo(process.stderr),
19257
19263
  readText,
19258
19264
  cwd: process.cwd()
19259
- }));
19265
+ });
19266
+ await Promise.all(pending);
19267
+ process.exit(code);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjawhar/opencode-legion-envoy",
3
- "version": "8.7.0",
3
+ "version": "8.8.0",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "main": "dist/src/server.js",
@@ -15,7 +15,7 @@ Three facts govern every thread, whoever opened it.
15
15
  - **Resolve each thread you have answered, one thread per call, never in bulk, never a thread you
16
16
  have not read.** GitHub grants `resolveReviewThread` to the pull request's author, and the
17
17
  implementer opens every Legion pull request (`docs/site/src/content/docs/legion/running-legion.md`,
18
- "The two GitHub Apps"), so the implementer resolves every thread, its own and the ones the
18
+ "The GitHub Apps"), so the implementer resolves every thread, its own and the ones the
19
19
  reviewer accepted:
20
20
  - The **implementer**, after every push that answers a review and before its `handoff_complete`,
21
21
  resolves each thread it answered with its own `gh`, one thread per call: