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 +1 -0
- package/dist/tools/merge/index.js +6 -3
- package/dist/tools/review/index.js +6 -3
- package/package.json +1 -1
package/dist/magi.js
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
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-
|
|
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>",
|