opencode-magi 0.0.0-dev-20260630082946 → 0.0.0-dev-20260630230943

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 +6 -13
  2. package/package.json +1 -1
package/dist/magi.js CHANGED
@@ -90,19 +90,9 @@ export class Magi {
90
90
  }
91
91
  async notify(sessionID, text) {
92
92
  await this.input.client.session.promptAsync({
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
- ],
93
+ parts: [{ synthetic: true, text, type: "text" }],
105
94
  sessionID,
95
+ system: "Report the update to the user immediately.",
106
96
  });
107
97
  }
108
98
  async clear(config) {
@@ -188,7 +178,10 @@ export class Magi {
188
178
  updatedAt: createdAt,
189
179
  ...initialState,
190
180
  };
191
- await this.createStateFile(state);
181
+ const values = [this.createStateFile(state)];
182
+ if (!state.sync && state.text)
183
+ values.push(this.notify(state.sessionId, state.text));
184
+ await Promise.all(values);
192
185
  return state;
193
186
  }
194
187
  async createStateFile(state) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-magi",
3
- "version": "0.0.0-dev-20260630082946",
3
+ "version": "0.0.0-dev-20260630230943",
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>",