Skip to content

Commit cd59eaf

Browse files
committed
feat: auto-refresh tensory package in plugin hooks
Add --refresh-package tensory to uvx calls so hooks always use the latest PyPI version. Minimal overhead since session-start and stop run infrequently.
1 parent c570a72 commit cd59eaf

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

plugins/claude-code/scripts/session-start.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,6 @@ After creating .env, restart the session — memory will activate automatically.
5151
fi
5252

5353
# ── Normal run: recall memories ──────────────────────────────────────────
54-
echo "$INPUT" | uvx --from "tensory[mcp,claude-code]" tensory-hook recall 2>/dev/null
54+
echo "$INPUT" | uvx --refresh-package tensory --from "tensory[mcp,claude-code]" tensory-hook recall 2>/dev/null
5555

5656
exit 0

plugins/claude-code/scripts/stop.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ if [ "$STOP_ACTIVE" = "true" ]; then
1919
fi
2020

2121
# Pass hook input to tensory-hook save (it reads last_assistant_message from JSON)
22-
echo "$INPUT" | uvx --from "tensory[mcp,claude-code]" tensory-hook save 2>/dev/null
22+
echo "$INPUT" | uvx --refresh-package tensory --from "tensory[mcp,claude-code]" tensory-hook save 2>/dev/null
2323

2424
exit 0

0 commit comments

Comments
 (0)