toon-memory 2.4.4 → 2.4.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/cli/setup.js +9 -9
- package/package.json +1 -1
- package/src/cli/setup.ts +9 -9
package/dist/cli/setup.js
CHANGED
|
@@ -947,13 +947,13 @@ function dumpMemoryMarkdown() {
|
|
|
947
947
|
const entries = lines.map((line) => {
|
|
948
948
|
const parts = line.trim().split("|");
|
|
949
949
|
return {
|
|
950
|
-
id: parts[0],
|
|
951
|
-
category: parts[1],
|
|
952
|
-
key: parts[2],
|
|
953
|
-
content: parts[3],
|
|
954
|
-
file: parts[4],
|
|
950
|
+
id: parts[0] ?? "",
|
|
951
|
+
category: parts[1] ?? "",
|
|
952
|
+
key: parts[2] ?? "",
|
|
953
|
+
content: parts[3] ?? "",
|
|
954
|
+
file: parts[4] ?? "",
|
|
955
955
|
tags: parts[5] ? parts[5].split(";").filter(Boolean) : [],
|
|
956
|
-
date: parts[6]
|
|
956
|
+
date: parts[6] ?? ""
|
|
957
957
|
};
|
|
958
958
|
});
|
|
959
959
|
const allLines = data.split("\n");
|
|
@@ -975,9 +975,9 @@ function dumpMemoryMarkdown() {
|
|
|
975
975
|
for (const e of entries) {
|
|
976
976
|
out.push(`## ${e.category}: ${e.key}`);
|
|
977
977
|
out.push(e.content);
|
|
978
|
-
out.push(`- file: ${e.file}`);
|
|
979
|
-
out.push(`- tags: ${e.tags.join(", ")}`);
|
|
980
|
-
out.push(`- date: ${e.date}`);
|
|
978
|
+
if (e.file) out.push(`- file: ${e.file}`);
|
|
979
|
+
if (e.tags.length) out.push(`- tags: ${e.tags.join(", ")}`);
|
|
980
|
+
if (e.date) out.push(`- date: ${e.date}`);
|
|
981
981
|
out.push("");
|
|
982
982
|
}
|
|
983
983
|
if (summaries.length > 0) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "toon-memory",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.5",
|
|
4
4
|
"description": "MCP server giving AI coding agents offline, token-efficient persistent memory — recall decisions, patterns, and bugs across sessions with 68.5% fewer tokens than re-reading context. No LLM, no server; works with 15+ agents.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
package/src/cli/setup.ts
CHANGED
|
@@ -1231,13 +1231,13 @@ function dumpMemoryMarkdown(): string {
|
|
|
1231
1231
|
const entries = lines.map((line: string) => {
|
|
1232
1232
|
const parts = line.trim().split("|")
|
|
1233
1233
|
return {
|
|
1234
|
-
id: parts[0],
|
|
1235
|
-
category: parts[1],
|
|
1236
|
-
key: parts[2],
|
|
1237
|
-
content: parts[3],
|
|
1238
|
-
file: parts[4],
|
|
1234
|
+
id: parts[0] ?? "",
|
|
1235
|
+
category: parts[1] ?? "",
|
|
1236
|
+
key: parts[2] ?? "",
|
|
1237
|
+
content: parts[3] ?? "",
|
|
1238
|
+
file: parts[4] ?? "",
|
|
1239
1239
|
tags: parts[5] ? parts[5].split(";").filter(Boolean) : [],
|
|
1240
|
-
date: parts[6],
|
|
1240
|
+
date: parts[6] ?? "",
|
|
1241
1241
|
}
|
|
1242
1242
|
})
|
|
1243
1243
|
|
|
@@ -1264,9 +1264,9 @@ function dumpMemoryMarkdown(): string {
|
|
|
1264
1264
|
for (const e of entries) {
|
|
1265
1265
|
out.push(`## ${e.category}: ${e.key}`)
|
|
1266
1266
|
out.push(e.content)
|
|
1267
|
-
out.push(`- file: ${e.file}`)
|
|
1268
|
-
out.push(`- tags: ${e.tags.join(", ")}`)
|
|
1269
|
-
out.push(`- date: ${e.date}`)
|
|
1267
|
+
if (e.file) out.push(`- file: ${e.file}`)
|
|
1268
|
+
if (e.tags.length) out.push(`- tags: ${e.tags.join(", ")}`)
|
|
1269
|
+
if (e.date) out.push(`- date: ${e.date}`)
|
|
1270
1270
|
out.push("")
|
|
1271
1271
|
}
|
|
1272
1272
|
|