create-ai-memory 0.2.0 → 0.2.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/README.md +8 -7
- package/package.json +1 -1
- package/shell/ai-mem.zsh +5 -0
package/README.md
CHANGED
|
@@ -224,13 +224,6 @@ auto-scaffolds from the shipped templates on first use, so `install.sh` is
|
|
|
224
224
|
optional. Set `AI_MEM_ROOT` in `~/.zshrc` first if you do not want the default
|
|
225
225
|
`~/.ai-memory/_Ai_Memory`.
|
|
226
226
|
|
|
227
|
-
**Clone and run** (the source of truth all paths reuse):
|
|
228
|
-
|
|
229
|
-
```sh
|
|
230
|
-
git clone https://github.com/rambaarde/create-ai-memory.git ~/ai-memory
|
|
231
|
-
~/ai-memory/install.sh
|
|
232
|
-
```
|
|
233
|
-
|
|
234
227
|
> **zsh only.** The module uses `print -r`, `${(s:|:)}`, and associative arrays. A bash
|
|
235
228
|
> port is welcome as a PR; see [Roadmap](#roadmap).
|
|
236
229
|
|
|
@@ -457,6 +450,14 @@ lines.
|
|
|
457
450
|
|
|
458
451
|
## Contributing
|
|
459
452
|
|
|
453
|
+
Clone the repo and run `install.sh` from the checkout — that's the source of
|
|
454
|
+
truth every other install path (npm, plugin managers) reuses:
|
|
455
|
+
|
|
456
|
+
```sh
|
|
457
|
+
git clone https://github.com/rambaarde/create-ai-memory.git ~/ai-memory
|
|
458
|
+
~/ai-memory/install.sh
|
|
459
|
+
```
|
|
460
|
+
|
|
460
461
|
Issues and PRs are welcome. Good first areas: a bash port, new agent adapters, and
|
|
461
462
|
docs. Run `zsh tests/run.sh` before opening a PR; keep changes additive and the
|
|
462
463
|
vault path-guarded.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-ai-memory",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.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
|
@@ -459,6 +459,11 @@ source "$AI_MEM_HOME/adapters.zsh"
|
|
|
459
459
|
: "${AI_MEM_AGENTS:=claude codex gemini cursor opencode}"
|
|
460
460
|
for _ai_agent in ${(z)AI_MEM_AGENTS}; do
|
|
461
461
|
if typeset -f "_ai_adapter_$_ai_agent" >/dev/null; then
|
|
462
|
+
# A same-named alias (e.g. from another plugin) makes zsh refuse to
|
|
463
|
+
# `eval` a function definition of that name at all -- "defining
|
|
464
|
+
# function based on alias", parse error near '()'. Clear it first;
|
|
465
|
+
# the function this defines is what should win.
|
|
466
|
+
unalias "${_ai_agent}-start" 2>/dev/null
|
|
462
467
|
eval "${_ai_agent}-start() { _ai_session_start ${_ai_agent} \"\$@\"; }"
|
|
463
468
|
fi
|
|
464
469
|
done
|