create-ai-memory 0.8.1 → 0.8.3

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.8.1",
3
+ "version": "0.8.3",
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
@@ -262,7 +262,7 @@ Use the Obsidian vault as the persistent memory layer.
262
262
  Treat the global profile and standards note as the shared baseline for every run.
263
263
  Keep durable preferences and project facts in the vault, and keep the active session log updated with decisions, blockers, and next steps.
264
264
  For anything not covered above -- a decision from further back, a different project, a health check on the vault's links -- run \`ai-mem-search <term> [project]\` or \`ai-mem-lint\` yourself; both are plain shell commands already on PATH.
265
- When you hit a mistake, decision, or solution worth remembering across projects (not just this one), run \`ai-lesson <topic-slug> <text>\` -- e.g. \`ai-lesson rate-limiting "used a token bucket, fixed window kept losing bursts"\`. It appends to a cross-project note at _lessons/<topic-slug>.md; ai-mem-search already covers it.
265
+ When you hit a mistake, decision, or solution worth remembering across projects (not just this one), run \`ai-lesson <topic-slug> <text>\`. State the problem first, then the fix -- e.g. \`ai-lesson rate-limiting "a fixed-window limiter kept losing bursts of legitimate traffic; switched to a token bucket, which absorbs bursts correctly"\`, not just the fix alone. It appends to a cross-project note at _lessons/<topic-slug>.md; ai-mem-search already covers it.
266
266
  EOF
267
267
  }
268
268
 
@@ -596,7 +596,7 @@ ai-lesson() {
596
596
  fi
597
597
  fi
598
598
 
599
- printf -- '\n- %s [%s] %s\n' "$timestamp" "$project_name" "$text" >> "$lesson_file"
599
+ printf -- '\n- %s [[%s]] %s\n' "$timestamp" "$project_name" "$text" >> "$lesson_file"
600
600
  printf 'Appended to %s\n' "$lesson_file"
601
601
  }
602
602
  # Lints the vault's links: session logs missing a project wikilink, previous
@@ -1,6 +1,8 @@
1
1
  ---
2
2
  type: ai-lesson
3
- topic: {{topic}}
3
+ topic: "{{topic}}"
4
4
  ---
5
5
 
6
6
  # {{topic}}
7
+
8
+ _Each entry: state the problem first, then the fix -- not just the fix alone._