opencode-claude-memory 1.7.4 → 1.7.5
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/memory.js +3 -0
- package/package.json +1 -1
package/dist/memory.js
CHANGED
|
@@ -98,6 +98,9 @@ export function readMemory(worktree, fileName) {
|
|
|
98
98
|
}
|
|
99
99
|
export function saveMemory(worktree, fileName, name, description, type, content) {
|
|
100
100
|
const safeName = validateMemoryFileName(fileName);
|
|
101
|
+
if (typeof name !== "string" || !name.trim()) {
|
|
102
|
+
throw new Error("Memory name is required");
|
|
103
|
+
}
|
|
101
104
|
const memDir = getMemoryDir(worktree);
|
|
102
105
|
const filePath = join(memDir, safeName);
|
|
103
106
|
const fileContent = `${buildFrontmatter(name, description, type)}\n\n${content.trim()}\n`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-claude-memory",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "OpenCode plugin for Claude Code memory: persistent, local-first shared memory with Claude Code-compatible Markdown files, auto extraction, and auto-dream",
|
|
6
6
|
"main": "dist/index.js",
|