create-ai-memory 0.16.4 → 0.16.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/package.json +1 -1
- package/shell/ai-mem.zsh +4 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-ai-memory",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.5",
|
|
4
4
|
"description": "Persistent, harness-agnostic session memory for AI coding CLIs (Claude Code, Codex, Gemini, Cursor, opencode, omp). One Markdown vault, any harness.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"create-ai-memory": "bin/create-ai-memory.js",
|
package/shell/ai-mem.zsh
CHANGED
|
@@ -1543,7 +1543,10 @@ __ai_mem_unfilled_logs() {
|
|
|
1543
1543
|
function flush() { if (cur != "" && !content) print cur }
|
|
1544
1544
|
FNR == 1 { flush(); cur = FILENAME; content = 0; fm = ($0 == "---"); if (fm) next }
|
|
1545
1545
|
content { next }
|
|
1546
|
-
|
|
1546
|
+
# Frontmatter holds only "key: value" lines. A fence that never closes
|
|
1547
|
+
# must not hide the body, so the first other line ends frontmatter and
|
|
1548
|
+
# is read as body: a broken log is kept, never called unfilled.
|
|
1549
|
+
fm { if ($0 == "---") { fm = 0; next } if ($0 ~ /^[A-Za-z_][A-Za-z0-9_-]*:/) next; fm = 0 }
|
|
1547
1550
|
/^[[:space:]]*$/ || $0 == "# Session Outcome" || $0 == "# Global Session Notes" { next }
|
|
1548
1551
|
/^\* \*\*[^*]+:\*\*[[:space:]]*\[.*\]$/ && !/\[\[/ { next }
|
|
1549
1552
|
$0 == "## Auto Session Log" || /^_Auto-generated .*_$/ || /^\* \*\*(Repo|Branch):\*\* / { next }
|