opencode-magi 0.0.0-dev-20260720123050 → 0.0.0-dev-20260721030358

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/magi.js CHANGED
@@ -24,6 +24,7 @@ export class Magi {
24
24
  const client = createOpencodeClient({
25
25
  baseUrl: input.serverUrl.toString(),
26
26
  directory: input.directory,
27
+ fetch: input.client.session._client.getConfig().fetch,
27
28
  });
28
29
  this.input = { ...input, client };
29
30
  this.options = options;
@@ -131,17 +131,20 @@ export const merge = function (magi) {
131
131
  await run.editCycles(async (cycle) => editCycle(run, { conflict: true, cycle }));
132
132
  await run.automate();
133
133
  }
134
- return await run.createReport();
134
+ return { error: false, report: await run.createReport() };
135
135
  }
136
136
  catch (e) {
137
- return await run.createReport(e);
137
+ return { error: true, report: await run.createReport(e) };
138
138
  }
139
139
  finally {
140
140
  await run.cleanup();
141
141
  }
142
142
  });
143
143
  }));
144
- return reports.join("\n\n");
144
+ const errors = reports.filter(({ error }) => error);
145
+ if (errors.length)
146
+ throw new Error(errors.map(({ report }) => report).join("\n\n"));
147
+ return reports.map(({ report }) => report).join("\n\n");
145
148
  },
146
149
  }),
147
150
  };
@@ -84,17 +84,20 @@ export const review = function (magi) {
84
84
  if (!skip)
85
85
  await run.postReviews();
86
86
  await run.automate();
87
- return await run.createReport();
87
+ return { error: false, report: await run.createReport() };
88
88
  }
89
89
  catch (e) {
90
- return await run.createReport(e);
90
+ return { error: true, report: await run.createReport(e) };
91
91
  }
92
92
  finally {
93
93
  await run.cleanup();
94
94
  }
95
95
  });
96
96
  }));
97
- return reports.join("\n\n");
97
+ const errors = reports.filter(({ error }) => error);
98
+ if (errors.length)
99
+ throw new Error(errors.map(({ report }) => report).join("\n\n"));
100
+ return reports.map(({ report }) => report).join("\n\n");
98
101
  },
99
102
  }),
100
103
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-magi",
3
- "version": "0.0.0-dev-20260720123050",
3
+ "version": "0.0.0-dev-20260721030358",
4
4
  "description": "Multi-agent PR review and merge orchestration plugin for OpenCode.",
5
5
  "license": "MIT",
6
6
  "author": "Hirotomo Yamada <hirotomo.yamada@avap.co.jp>",