@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.
Files changed (2) hide show
  1. package/memini.js +2 -1
  2. 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: `mem-recall-${messageID || sessionID}`,
220
+ id: `prt_${crypto.randomUUID()}`,
220
221
  sessionID,
221
222
  messageID,
222
223
  type: "text",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eleboucher/opencode-memini",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "Automatic cross-session memory for opencode via memini — recall before each turn, capture after.",
5
5
  "keywords": [
6
6
  "memini",