@eleboucher/opencode-memini 0.3.1 → 0.3.2
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.
- package/memini.js +2 -1
- package/package.json +1 -1
package/memini.js
CHANGED
|
@@ -215,8 +215,9 @@ export const MeminiPlugin = async ({ client, worktree, directory }, options) =>
|
|
|
215
215
|
const sibling = output.parts.find((p) => p && p.type === "text") || {};
|
|
216
216
|
const sessionID = input.sessionID || sibling.sessionID;
|
|
217
217
|
const messageID = input.messageID || sibling.messageID;
|
|
218
|
+
// opencode's part schema requires ids to start with `prt`.
|
|
218
219
|
output.parts.unshift({
|
|
219
|
-
id: `
|
|
220
|
+
id: `prt_${crypto.randomUUID()}`,
|
|
220
221
|
sessionID,
|
|
221
222
|
messageID,
|
|
222
223
|
type: "text",
|