opencode-magi 0.0.0-dev-20260523052407 → 0.0.0-dev-20260524020129
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/orchestrator/triage.js +22 -3
- package/package.json +1 -1
|
@@ -518,10 +518,29 @@ function triageReporter(repository, issue) {
|
|
|
518
518
|
}
|
|
519
519
|
function decisionCommentBody(input) {
|
|
520
520
|
const reason = input.reason?.trim();
|
|
521
|
-
const result = JSON.stringify(input.result);
|
|
522
521
|
return reason
|
|
523
|
-
?
|
|
524
|
-
:
|
|
522
|
+
? reason
|
|
523
|
+
: decisionCommentFallback({ action: input.action, result: input.result });
|
|
524
|
+
}
|
|
525
|
+
function decisionCommentFallback(input) {
|
|
526
|
+
if (input.result.disposition === "accepted") {
|
|
527
|
+
const category = input.result.category
|
|
528
|
+
? `${input.result.category} issue`
|
|
529
|
+
: "issue";
|
|
530
|
+
return input.action === "PR"
|
|
531
|
+
? `Magi accepted this ${category} and will prepare an implementation pull request.`
|
|
532
|
+
: `Magi accepted this ${category}.`;
|
|
533
|
+
}
|
|
534
|
+
if (input.result.disposition === "rejected") {
|
|
535
|
+
const category = input.result.category
|
|
536
|
+
? `${input.result.category} issue`
|
|
537
|
+
: "issue";
|
|
538
|
+
return `Magi does not plan to act on this ${category}.`;
|
|
539
|
+
}
|
|
540
|
+
if (input.result.disposition === "duplicate") {
|
|
541
|
+
return "Magi marked this issue as a duplicate.";
|
|
542
|
+
}
|
|
543
|
+
return "Magi completed triage for this issue.";
|
|
525
544
|
}
|
|
526
545
|
function agentForKey(repository, key) {
|
|
527
546
|
const agent = repository.agents.triage?.find((item) => item.key === key);
|
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-20260524020129",
|
|
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>",
|