opencode-mem 2.11.11 → 2.11.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/dist/index.js +2 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -160,7 +160,7 @@ export const OpenCodeMemPlugin = async (ctx) => {
160
160
  const memoryContext = formatContextForPrompt(userId, projectMemories);
161
161
  if (memoryContext) {
162
162
  const contextPart = {
163
- id: `memory-context-${Date.now()}`,
163
+ id: `prt-memory-context-${Date.now()}`,
164
164
  sessionID: input.sessionID,
165
165
  messageID: output.message.id,
166
166
  type: "text",
@@ -355,7 +355,7 @@ export const OpenCodeMemPlugin = async (ctx) => {
355
355
  await ctx.client.session.prompt({
356
356
  path: { id: sessionID },
357
357
  body: {
358
- parts: [{ type: "text", text: memoryContext }],
358
+ parts: [{ id: `prt-compaction-${Date.now()}`, type: "text", text: memoryContext }],
359
359
  noReply: true,
360
360
  },
361
361
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-mem",
3
- "version": "2.11.11",
3
+ "version": "2.11.12",
4
4
  "description": "OpenCode plugin that gives coding agents persistent memory using local vector database",
5
5
  "type": "module",
6
6
  "main": "dist/plugin.js",