opencode-magi 0.0.0-dev-20260726070636 → 0.0.0-dev-20260727045328
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.
|
@@ -95,9 +95,7 @@ function createSyntheticThreads() {
|
|
|
95
95
|
}));
|
|
96
96
|
}
|
|
97
97
|
function addSyntheticReplies(threads) {
|
|
98
|
-
const output = this.state.editor
|
|
99
|
-
if (!output)
|
|
100
|
-
throw new MagiError("blocked", "Editor output not found.");
|
|
98
|
+
const output = this.state.editor.outputs.at(-1);
|
|
101
99
|
return threads.map((thread) => ({
|
|
102
100
|
...thread,
|
|
103
101
|
comments: [
|
|
@@ -183,12 +183,6 @@ async function setAccount() {
|
|
|
183
183
|
await this.exec(command("git", "config", "user.email", quote(this.state.editor.author.email)), options);
|
|
184
184
|
}
|
|
185
185
|
async function push() {
|
|
186
|
-
if (!this.state.editor?.account)
|
|
187
|
-
throw new MagiError("blocked", "Editor account not found.");
|
|
188
|
-
if (!this.state.pr?.metadata)
|
|
189
|
-
throw new MagiError("blocked", "PR metadata not found.");
|
|
190
|
-
if (!this.state.worktree)
|
|
191
|
-
throw new MagiError("blocked", "PR worktree not found.");
|
|
192
186
|
const token = await this.magi.getGhToken(this.state.editor.account, this.context.abort);
|
|
193
187
|
const url = `https://${this.config.github.host}/${this.state.pr.metadata.head.repo.owner.login}/${this.state.pr.metadata.head.repo.name}.git`;
|
|
194
188
|
const ref = `HEAD:refs/heads/${this.state.pr.metadata.head.ref}`;
|
|
@@ -208,8 +202,6 @@ async function push() {
|
|
|
208
202
|
return getMetadata.call(this);
|
|
209
203
|
}
|
|
210
204
|
async function getConflictedFiles() {
|
|
211
|
-
if (!this.state.worktree)
|
|
212
|
-
throw new MagiError("blocked", "PR worktree not found.");
|
|
213
205
|
const options = { cwd: this.state.worktree.path, signal: this.context.abort };
|
|
214
206
|
try {
|
|
215
207
|
await this.exec(command("git", "merge", "--no-commit", "--no-ff", "FETCH_HEAD"), options);
|
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-20260727045328",
|
|
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>",
|