create-ai-memory 0.9.0 → 0.9.1

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-ai-memory",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "description": "Persistent, agent-agnostic session memory for AI coding CLIs (Claude Code, Codex, Gemini, Cursor, opencode). One Markdown vault, any agent.",
5
5
  "bin": {
6
6
  "create-ai-memory": "bin/create-ai-memory.js"
package/shell/ai-mem.zsh CHANGED
@@ -584,7 +584,8 @@ ai-lesson() {
584
584
  mkdir -p "$AI_MEM_ROOT/_lessons"
585
585
  local lesson_template="$AI_MEM_ROOT/_lessons/_lesson_template.md"
586
586
  if [[ -f "$lesson_template" ]]; then
587
- TOPIC="$slug" perl -0pe 's/\{\{topic\}\}/$ENV{TOPIC}/g' "$lesson_template" > "$lesson_file"
587
+ TOPIC="$slug" perl -0pe 's/\{\{topic\}\}/$ENV{TOPIC}/g' "$lesson_template" \
588
+ | awk '/^# /{print; exit} {print}' > "$lesson_file"
588
589
  else
589
590
  printf -- '---\ntype: ai-lesson\ntopic: %s\n---\n\n# %s\n' "$slug" "$slug" > "$lesson_file"
590
591
  fi
@@ -4,3 +4,11 @@ topic: "{{topic}}"
4
4
  ---
5
5
 
6
6
  # {{topic}}
7
+
8
+ ## [Date] [Project]
9
+
10
+ ### Problem
11
+ [What went wrong]
12
+
13
+ ### Solution
14
+ [What fixed it]