opencode-magi 0.3.0 → 0.5.0

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.
@@ -10,4 +10,8 @@ Request changes if a closing issue requirement is missing, only documented, only
10
10
  Do not approve solely because the PR improves the codebase if it claims to close an issue that remains incomplete.
11
11
  For referenced non-closing issues, use them as context only unless the PR body explicitly claims to complete them.
12
12
 
13
+ Every finding must target a valid right-side line in the PR diff.
14
+ If the problem itself does not have an exact changed line, choose the nearest changed line that represents the cause, responsibility, missing implementation, or affected behavior. This includes but is not limited to missing validation, missing wiring, missing requirements, missing tests, missing documentation, affected configuration, or relevant call sites.
15
+ Do not omit line. Do not create file-level or body-only findings.
16
+
13
17
  {ciFailureContextBlock}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-magi",
3
- "version": "0.3.0",
3
+ "version": "0.5.0",
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
@@ -9,7 +9,11 @@
9
9
  "type": "object",
10
10
  "additionalProperties": false,
11
11
  "properties": {
12
- "permissions": { "$ref": "#/$defs/permissions" }
12
+ "permissions": { "$ref": "#/$defs/permissions" },
13
+ "refs": {
14
+ "type": "object",
15
+ "additionalProperties": { "$ref": "#/$defs/agentRef" }
16
+ }
13
17
  }
14
18
  },
15
19
  "clear": {
@@ -51,11 +55,33 @@
51
55
  "triage": { "$ref": "#/$defs/triage" }
52
56
  },
53
57
  "$defs": {
58
+ "agentRef": {
59
+ "type": "object",
60
+ "additionalProperties": false,
61
+ "properties": {
62
+ "id": { "type": "string", "pattern": "^[A-Za-z0-9_-]+$" },
63
+ "model": { "type": "string", "minLength": 1 },
64
+ "options": { "type": "object", "additionalProperties": true },
65
+ "account": { "type": "string", "minLength": 1 },
66
+ "author": {
67
+ "type": "object",
68
+ "additionalProperties": false,
69
+ "properties": {
70
+ "name": { "type": "string", "minLength": 1 },
71
+ "email": { "type": "string", "minLength": 1 }
72
+ }
73
+ },
74
+ "permissions": { "$ref": "#/$defs/permissions" },
75
+ "persona": { "type": "string" }
76
+ }
77
+ },
54
78
  "reviewer": {
55
79
  "type": "object",
56
- "required": ["model", "account"],
80
+ "if": { "not": { "required": ["ref"] } },
81
+ "then": { "required": ["model", "account"] },
57
82
  "additionalProperties": false,
58
83
  "properties": {
84
+ "ref": { "type": "string", "minLength": 1 },
59
85
  "id": { "type": "string", "pattern": "^[A-Za-z0-9_-]+$" },
60
86
  "model": { "type": "string", "minLength": 1 },
61
87
  "options": { "type": "object", "additionalProperties": true },
@@ -66,9 +92,11 @@
66
92
  },
67
93
  "editor": {
68
94
  "type": "object",
69
- "required": ["model", "account", "author"],
95
+ "if": { "not": { "required": ["ref"] } },
96
+ "then": { "required": ["model", "account", "author"] },
70
97
  "additionalProperties": false,
71
98
  "properties": {
99
+ "ref": { "type": "string", "minLength": 1 },
72
100
  "model": { "type": "string", "minLength": 1 },
73
101
  "options": { "type": "object", "additionalProperties": true },
74
102
  "account": { "type": "string", "minLength": 1 },
@@ -87,9 +115,11 @@
87
115
  },
88
116
  "triageAgent": {
89
117
  "type": "object",
90
- "required": ["model"],
118
+ "if": { "not": { "required": ["ref"] } },
119
+ "then": { "required": ["model"] },
91
120
  "additionalProperties": false,
92
121
  "properties": {
122
+ "ref": { "type": "string", "minLength": 1 },
93
123
  "id": { "type": "string", "pattern": "^[A-Za-z0-9_-]+$" },
94
124
  "model": { "type": "string", "minLength": 1 },
95
125
  "options": { "type": "object", "additionalProperties": true },
@@ -99,9 +129,11 @@
99
129
  },
100
130
  "triageCreator": {
101
131
  "type": "object",
102
- "required": ["model", "author"],
132
+ "if": { "not": { "required": ["ref"] } },
133
+ "then": { "required": ["model", "author"] },
103
134
  "additionalProperties": false,
104
135
  "properties": {
136
+ "ref": { "type": "string", "minLength": 1 },
105
137
  "account": { "type": "string", "minLength": 1 },
106
138
  "model": { "type": "string", "minLength": 1 },
107
139
  "options": { "type": "object", "additionalProperties": true },