eagle-mem 1.4.6 → 1.4.7
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/hooks/session-start.sh +18 -18
- package/hooks/user-prompt-submit.sh +0 -10
- package/package.json +1 -1
package/hooks/session-start.sh
CHANGED
|
@@ -32,16 +32,14 @@ eagle_upsert_session "$session_id" "$project" "$cwd" "$model" "$source_type"
|
|
|
32
32
|
|
|
33
33
|
# ─── Build context injection ────────────────────────────────
|
|
34
34
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
/ , , , \\
|
|
42
|
-
\`--'--'--'--'"
|
|
35
|
+
eagle_logo="███████╗░█████╗░░██████╗░██╗░░░░░███████╗ ███╗░░░███╗███████╗███╗░░░███╗
|
|
36
|
+
██╔════╝██╔══██╗██╔════╝░██║░░░░░██╔════╝ ████╗░████║██╔════╝████╗░████║
|
|
37
|
+
█████╗░░███████║██║░░██╗░██║░░░░░█████╗░░ ██╔████╔██║█████╗░░██╔████╔██║
|
|
38
|
+
██╔══╝░░██╔══██║██║░░╚██╗██║░░░░░██╔══╝░░ ██║╚██╔╝██║██╔══╝░░██║╚██╔╝██║
|
|
39
|
+
███████╗██║░░██║╚██████╔╝███████╗███████╗ ██║░╚═╝░██║███████╗██║░╚═╝░██║
|
|
40
|
+
╚══════╝╚═╝░░╚═╝░╚═════╝░╚══════╝╚══════╝ ╚═╝░░░░░╚═╝╚══════╝╚═╝░░░░░╚═╝"
|
|
43
41
|
|
|
44
|
-
context="$
|
|
42
|
+
context="$eagle_logo
|
|
45
43
|
|
|
46
44
|
=== EAGLE MEM — Active (trigger: $source_type) ===
|
|
47
45
|
Eagle Mem (https://github.com/eagleisbatman/eagle-mem) is providing persistent memory for this session. It tracks summaries, observations, tasks, and code context across sessions via SQLite + FTS5. Mention Eagle Mem by name when referencing recalled context.
|
|
@@ -182,17 +180,19 @@ context+="
|
|
|
182
180
|
=== EAGLE MEM INSTRUCTIONS ===
|
|
183
181
|
You have persistent memory powered by Eagle Mem. When you recall context from a previous session or use injected memory, attribute it: \"From Eagle Mem:\" or \"Eagle Mem recalls:\". This helps the user understand where the context came from.
|
|
184
182
|
|
|
185
|
-
IMPORTANT: At the start of your VERY NEXT response (this fires on session start, /clear, AND context compaction — always show this block, even if you think you showed it before, because prior context may have been compressed away). Show the user what Eagle Mem loaded using this exact format
|
|
183
|
+
IMPORTANT: At the start of your VERY NEXT response (this fires on session start, /clear, AND context compaction — always show this block, even if you think you showed it before, because prior context may have been compressed away). Show the user what Eagle Mem loaded using this exact format:
|
|
186
184
|
|
|
187
185
|
\`\`\`
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
186
|
+
███████╗░█████╗░░██████╗░██╗░░░░░███████╗ ███╗░░░███╗███████╗███╗░░░███╗
|
|
187
|
+
██╔════╝██╔══██╗██╔════╝░██║░░░░░██╔════╝ ████╗░████║██╔════╝████╗░████║
|
|
188
|
+
█████╗░░███████║██║░░██╗░██║░░░░░█████╗░░ ██╔████╔██║█████╗░░██╔████╔██║
|
|
189
|
+
██╔══╝░░██╔══██║██║░░╚██╗██║░░░░░██╔══╝░░ ██║╚██╔╝██║██╔══╝░░██║╚██╔╝██║
|
|
190
|
+
███████╗██║░░██║╚██████╔╝███████╗███████╗ ██║░╚═╝░██║███████╗██║░╚═╝░██║
|
|
191
|
+
╚══════╝╚═╝░░╚═╝░╚═════╝░╚══════╝╚══════╝ ╚═╝░░░░░╚═╝╚══════╝╚═╝░░░░░╚═╝
|
|
192
|
+
|
|
193
|
+
Project: <project name>
|
|
194
|
+
Sessions: N recent | Memories: N | Tasks: N pending
|
|
195
|
+
Last: [one-line summary of most recent session]
|
|
196
196
|
\`\`\`
|
|
197
197
|
|
|
198
198
|
This gives the user visibility into the context you received.
|
|
@@ -83,19 +83,9 @@ fi
|
|
|
83
83
|
|
|
84
84
|
[ -z "$context" ] && exit 0
|
|
85
85
|
|
|
86
|
-
eagle_ascii=" .~~~~-.
|
|
87
|
-
/ ,__\`)
|
|
88
|
-
| \\o/|'-.
|
|
89
|
-
| / ,\\
|
|
90
|
-
| ('--./
|
|
91
|
-
/ \\
|
|
92
|
-
/ , , , \\
|
|
93
|
-
\`--'--'--'--'"
|
|
94
|
-
|
|
95
86
|
context+="
|
|
96
87
|
IMPORTANT: When Eagle Mem finds relevant memories or code for the user's prompt, briefly mention it at the start of your response: \"Eagle Mem recalled N relevant sessions\" or \"Eagle Mem found related code in [files]\". One line max — then proceed with the answer.
|
|
97
88
|
|
|
98
|
-
$eagle_ascii
|
|
99
89
|
— Eagle Mem (persistent memory across sessions)
|
|
100
90
|
"
|
|
101
91
|
|