opencode-magi 0.0.0-dev-20260630034931 → 0.0.0-dev-20260630052048

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.
Files changed (2) hide show
  1. package/dist/magi.js +15 -8
  2. package/package.json +1 -1
package/dist/magi.js CHANGED
@@ -90,7 +90,18 @@ export class Magi {
90
90
  }
91
91
  async notify(sessionID, text) {
92
92
  await this.input.client.session.promptAsync({
93
- parts: [{ synthetic: true, text, type: "text" }],
93
+ parts: [
94
+ {
95
+ synthetic: true,
96
+ text: [
97
+ "Magi notification:",
98
+ text,
99
+ "",
100
+ "Relay this update to the user immediately.",
101
+ ].join("\n"),
102
+ type: "text",
103
+ },
104
+ ],
94
105
  sessionID,
95
106
  });
96
107
  }
@@ -256,10 +267,8 @@ export class Magi {
256
267
  const path = this.getPath(join(dir, number.toString(), id));
257
268
  try {
258
269
  await mkdir(dirname(path), { recursive: true });
259
- await this.exec(command("git", "worktree", "add", quote(path)), {
260
- signal,
261
- });
262
- await this.exec(command("gh", "pr", "checkout", number), {
270
+ await this.exec(command("git", "worktree", "add", "--detach", quote(path)), { signal });
271
+ await this.exec(command("gh", "pr", "checkout", number, "--detach"), {
263
272
  cwd: path,
264
273
  signal,
265
274
  });
@@ -267,9 +276,7 @@ export class Magi {
267
276
  cwd: path,
268
277
  signal,
269
278
  });
270
- if (!branch)
271
- throw new Error("Failed to determine worktree branch");
272
- return { branch, path };
279
+ return { branch: branch || undefined, path };
273
280
  }
274
281
  catch (e) {
275
282
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-magi",
3
- "version": "0.0.0-dev-20260630034931",
3
+ "version": "0.0.0-dev-20260630052048",
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>",