create-ai-memory 0.1.1 → 0.1.2
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/install.sh +6 -4
- package/package.json +1 -1
package/install.sh
CHANGED
|
@@ -98,13 +98,15 @@ fi
|
|
|
98
98
|
LINES="$LINES
|
|
99
99
|
source \"$HERE/shell/ai-mem.zsh\""
|
|
100
100
|
|
|
101
|
-
|
|
101
|
+
# Honor ZDOTDIR: power users relocate their zsh config, and zsh reads
|
|
102
|
+
# $ZDOTDIR/.zshrc, not ~/.zshrc, when ZDOTDIR is set.
|
|
103
|
+
RC="${ZDOTDIR:-$HOME}/.zshrc"
|
|
102
104
|
SOURCE_LINE="source \"$HERE/shell/ai-mem.zsh\""
|
|
103
105
|
|
|
104
106
|
echo
|
|
105
107
|
if [ -f "$RC" ] && grep -qF "$SOURCE_LINE" "$RC"; then
|
|
106
|
-
echo "
|
|
107
|
-
elif confirm "Append the setup lines to
|
|
108
|
+
echo " $RC already sources ai-memory; leaving it untouched."
|
|
109
|
+
elif confirm "Append the setup lines to $RC now?"; then
|
|
108
110
|
{ printf '\n# ai-memory (https://github.com/rambaarde/create-ai-memory)\n'; printf '%s\n' "$LINES"; } >> "$RC"
|
|
109
111
|
echo " added to $RC"
|
|
110
112
|
echo
|
|
@@ -112,7 +114,7 @@ elif confirm "Append the setup lines to ~/.zshrc now?"; then
|
|
|
112
114
|
else
|
|
113
115
|
cat <<EOF
|
|
114
116
|
|
|
115
|
-
Add these lines to your
|
|
117
|
+
Add these lines to your $RC yourself:
|
|
116
118
|
|
|
117
119
|
$(printf '%s\n' "$LINES" | sed 's/^/ /')
|
|
118
120
|
EOF
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-ai-memory",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
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"
|