opencode-magi 0.0.0-dev-20260520185509 → 0.0.0-dev-20260520190626

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.
@@ -183,7 +183,7 @@ export function resolveRepository(config) {
183
183
  automation: {
184
184
  clear: config.triage?.automation?.clear ?? ["triage"],
185
185
  close: config.triage?.automation?.close ?? false,
186
- pr: config.triage?.automation?.pr ?? false,
186
+ create: config.triage?.automation?.create ?? false,
187
187
  },
188
188
  categories: resolveTriageCategories(config),
189
189
  concurrency: {
@@ -99,7 +99,7 @@ const AUTOMATION_KEYS = new Set(["close", "merge"]);
99
99
  const CLEAR_KEYS = new Set(["branch", "output", "session", "worktree"]);
100
100
  const CONCURRENCY_KEYS = new Set(["reviewers", "runs"]);
101
101
  const OUTPUT_KEYS = new Set(["repairAttempts"]);
102
- const TRIAGE_AUTOMATION_KEYS = new Set(["clear", "close", "pr"]);
102
+ const TRIAGE_AUTOMATION_KEYS = new Set(["clear", "close", "create"]);
103
103
  const TRIAGE_CATEGORY_KEYS = new Set(["description", "id", "labels", "types"]);
104
104
  const TRIAGE_CONCURRENCY_KEYS = new Set(["runs"]);
105
105
  const TRIAGE_SAFETY_KEYS = new Set([
@@ -626,14 +626,14 @@ function validateTriage(config, errors, options) {
626
626
  validateResolvedAgentKeys(resolveAgents(config).triage ?? [], "triage.resolvedAgents", errors);
627
627
  }
628
628
  validateTriageCreator(triage.creator, "triage.creator", errors, options.modelCatalog);
629
- if (automation?.pr && !triage.creator)
630
- errors.push("triage.creator is required when triage.automation.pr is true");
629
+ if (automation?.create && !triage.creator)
630
+ errors.push("triage.creator is required when triage.automation.create is true");
631
631
  if (automation != null && !isPlainObject(automation)) {
632
632
  errors.push("triage.automation must be an object");
633
633
  }
634
634
  validateKnownKeys(automation, "triage.automation", TRIAGE_AUTOMATION_KEYS, errors);
635
635
  validateBoolean(automation?.close, "triage.automation.close", errors);
636
- validateBoolean(automation?.pr, "triage.automation.pr", errors);
636
+ validateBoolean(automation?.create, "triage.automation.create", errors);
637
637
  validateStringArray(automation?.clear, "triage.automation.clear", errors);
638
638
  validateKnownKeys(concurrency, "triage.concurrency", TRIAGE_CONCURRENCY_KEYS, errors);
639
639
  if (concurrency?.runs != null &&
@@ -703,7 +703,7 @@ async function fetchPermissions(config, exec, account) {
703
703
  async function validateWorktreeConfig(config, exec, options, errors) {
704
704
  const agents = resolveAgents(config);
705
705
  const checkEditor = Boolean(agents.editor && (options.requireEditor || options.requireWorktreeConfig));
706
- const checkTriageCreator = Boolean(config.triage?.automation?.pr &&
706
+ const checkTriageCreator = Boolean(config.triage?.automation?.create &&
707
707
  agents.triageCreator &&
708
708
  (options.requireTriage || options.requireWorktreeConfig));
709
709
  if (!checkEditor && !checkTriageCreator)
package/dist/index.js CHANGED
@@ -137,8 +137,8 @@ export function parseRunArguments(value, dryRun = false, command = "review") {
137
137
  throw unsupportedFlag(token, command);
138
138
  setConfigOverride(configOverrides, ["merge", "checks", "wait"], token === "--wait-checks-after-edit");
139
139
  break;
140
- case "--pr":
141
- case "--no-pr":
140
+ case "--create":
141
+ case "--no-create":
142
142
  throw unsupportedFlag(token, command);
143
143
  default:
144
144
  if (token.startsWith("--"))
@@ -166,9 +166,9 @@ export function parseIssueRunArguments(value, dryRun = false) {
166
166
  case "--no-close":
167
167
  setConfigOverride(configOverrides, ["triage", "automation", "close"], token === "--close");
168
168
  break;
169
- case "--pr":
170
- case "--no-pr":
171
- setConfigOverride(configOverrides, ["triage", "automation", "pr"], token === "--pr");
169
+ case "--create":
170
+ case "--no-create":
171
+ setConfigOverride(configOverrides, ["triage", "automation", "create"], token === "--create");
172
172
  break;
173
173
  case "--run-concurrency":
174
174
  setConfigOverride(configOverrides, ["triage", "concurrency", "runs"], parseIntegerFlag(nextFlagValue(tokens, ++index, token), token, 1));
@@ -416,7 +416,7 @@ function actionPlan(input) {
416
416
  const closeIssue = input.triage.automation.close &&
417
417
  (input.result.disposition === "rejected" ||
418
418
  input.result.disposition === "duplicate");
419
- const createPr = input.triage.automation.pr && input.result.disposition === "accepted";
419
+ const createPr = input.triage.automation.create && input.result.disposition === "accepted";
420
420
  return {
421
421
  action: closeIssue ? "CLOSE" : createPr ? "PR" : "COMMENT",
422
422
  allowedActions: [closeIssue ? "CLOSE" : createPr ? "PR" : "COMMENT"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-magi",
3
- "version": "0.0.0-dev-20260520185509",
3
+ "version": "0.0.0-dev-20260520190626",
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>",
package/schema.json CHANGED
@@ -224,7 +224,7 @@
224
224
  "additionalProperties": false,
225
225
  "properties": {
226
226
  "close": { "type": "boolean", "default": false },
227
- "pr": { "type": "boolean", "default": false },
227
+ "create": { "type": "boolean", "default": false },
228
228
  "clear": {
229
229
  "type": "array",
230
230
  "items": { "type": "string" },