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.
- package/dist/index.js +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
|
});
|