opencode-magi 0.0.0-dev-20260524221727 → 0.0.0-dev-20260525005102
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 +7 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import { loadConfig, mergeMagiConfig } from "./config/load";
|
|
|
9
9
|
import { outputBaseDirs } from "./config/output";
|
|
10
10
|
import { worktreeBaseDirs } from "./config/worktree";
|
|
11
11
|
import { resolveRepository } from "./config/resolve";
|
|
12
|
-
import { validateConfig } from "./config/validate";
|
|
12
|
+
import { validateConfig, } from "./config/validate";
|
|
13
13
|
import { withGitHubApiRetry } from "./github/retry";
|
|
14
14
|
import { mapPool } from "./orchestrator/pool";
|
|
15
15
|
import { MagiRunManager } from "./orchestrator/run-manager";
|
|
@@ -317,6 +317,9 @@ function issueMarkdownLink(repository, issue) {
|
|
|
317
317
|
const url = `https://${host}/${repository.github.owner}/${repository.github.repo}/issues/${issue}`;
|
|
318
318
|
return `[#${issue}](${url})`;
|
|
319
319
|
}
|
|
320
|
+
function validationError(validation) {
|
|
321
|
+
return new Error(JSON.stringify(validation, null, 2));
|
|
322
|
+
}
|
|
320
323
|
function isPlainObject(value) {
|
|
321
324
|
return Boolean(value) && typeof value === "object" && !Array.isArray(value);
|
|
322
325
|
}
|
|
@@ -480,7 +483,7 @@ export const MagiPlugin = async ({ client, directory }) => {
|
|
|
480
483
|
requireModelCatalog: true,
|
|
481
484
|
});
|
|
482
485
|
if (!validation.ok)
|
|
483
|
-
|
|
486
|
+
throw validationError(validation);
|
|
484
487
|
const repository = resolveRepository(config);
|
|
485
488
|
const sync = parsed.sync || args.sync === true;
|
|
486
489
|
const states = await mapPool(parsed.prs, repository.concurrency.runs, (pr) => runManager.startMerge({
|
|
@@ -523,7 +526,7 @@ export const MagiPlugin = async ({ client, directory }) => {
|
|
|
523
526
|
requireModelCatalog: true,
|
|
524
527
|
});
|
|
525
528
|
if (!validation.ok)
|
|
526
|
-
|
|
529
|
+
throw validationError(validation);
|
|
527
530
|
const repository = resolveRepository(config);
|
|
528
531
|
const sync = parsed.sync || args.sync === true;
|
|
529
532
|
const states = await mapPool(parsed.prs, repository.concurrency.runs, (pr) => runManager.startReview({
|
|
@@ -567,7 +570,7 @@ export const MagiPlugin = async ({ client, directory }) => {
|
|
|
567
570
|
requireTriage: true,
|
|
568
571
|
});
|
|
569
572
|
if (!validation.ok)
|
|
570
|
-
|
|
573
|
+
throw validationError(validation);
|
|
571
574
|
const repository = resolveRepository(config);
|
|
572
575
|
if (!repository.triage)
|
|
573
576
|
return JSON.stringify({ errors: ["triage configuration is required"], ok: false }, null, 2);
|
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-20260525005102",
|
|
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>",
|