opencode-magi 0.0.0-dev-20260522092014 → 0.0.0-dev-20260522101732
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/index.js +6 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -306,6 +306,10 @@ function prMarkdownLink(repository, pr) {
|
|
|
306
306
|
const url = `https://${host}/${repository.github.owner}/${repository.github.repo}/pull/${pr}`;
|
|
307
307
|
return `[#${pr}](${url})`;
|
|
308
308
|
}
|
|
309
|
+
export function formatRunStartMessage(command, repository, pr) {
|
|
310
|
+
const action = command === "merge" ? "merge flow" : "reviewing";
|
|
311
|
+
return `Started ${action} ${prMarkdownLink(repository, pr)}.`;
|
|
312
|
+
}
|
|
309
313
|
function issueMarkdownLink(repository, issue) {
|
|
310
314
|
const host = repository.github.host || "github.com";
|
|
311
315
|
const url = `https://${host}/${repository.github.owner}/${repository.github.repo}/issues/${issue}`;
|
|
@@ -490,7 +494,7 @@ export const MagiPlugin = async ({ client, directory }) => {
|
|
|
490
494
|
if (sync)
|
|
491
495
|
return syncResult(runManager, states);
|
|
492
496
|
return states
|
|
493
|
-
.map((state) =>
|
|
497
|
+
.map((state) => formatRunStartMessage("merge", repository, state.pr))
|
|
494
498
|
.join("\n");
|
|
495
499
|
},
|
|
496
500
|
}),
|
|
@@ -535,7 +539,7 @@ export const MagiPlugin = async ({ client, directory }) => {
|
|
|
535
539
|
if (sync)
|
|
536
540
|
return syncResult(runManager, states);
|
|
537
541
|
return states
|
|
538
|
-
.map((state) =>
|
|
542
|
+
.map((state) => formatRunStartMessage("review", repository, state.pr))
|
|
539
543
|
.join("\n");
|
|
540
544
|
},
|
|
541
545
|
}),
|
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-20260522101732",
|
|
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>",
|