@eleboucher/opencode-memini 0.4.10 → 0.4.12

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 -2
  2. package/package.json +1 -1
package/memini.js CHANGED
@@ -410,10 +410,10 @@ export const MeminiPlugin = async ({ client, worktree, directory }, options) =>
410
410
  if (!userText || !assistantText) return;
411
411
  if (assistantID && captured.has(assistantID)) return;
412
412
  const stored = await rest.postJson("/v1/memories", {
413
- content: `User: ${userText.slice(0, 1000)}\nAssistant: ${assistantText.slice(0, 3000)}`,
413
+ content: `${userText.slice(0, 1000)}\n\n${assistantText.slice(0, 3000)}`,
414
414
  tier: "episodic",
415
415
  tags: ["opencode"],
416
- metadata: { source: "opencode", session_id: sessionID },
416
+ metadata: { source: "opencode", session_id: sessionID, format: "turn" },
417
417
  });
418
418
  if (stored !== null && assistantID) captured.add(assistantID);
419
419
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eleboucher/opencode-memini",
3
- "version": "0.4.10",
3
+ "version": "0.4.12",
4
4
  "description": "Automatic cross-session memory for opencode via memini — recall before each turn, capture after.",
5
5
  "keywords": [
6
6
  "memini",