Compare commits

...

2 commits
v0.2.2 ... main

Author SHA1 Message Date
pyr0ball
a6c1d23c81 chore: bump version to 0.2.3 2026-04-12 19:29:06 -07:00
pyr0ball
1edbfb9007 fix: sync cache on install, copy all hook files to live 0.1.0 cache
install.sh now copies hooks-handlers/*.py and hooks.json into the live
cache dir after symlinking — ensures edits take effect in the running
session without a CC restart for hook scripts, and on next session start
for hooks.json changes.

Also manually synced 0.1.0 cache to unblock current session:
- post-tool-use.py: find_catalog + already-owned spawn guard
- user-prompt-submit.py: null buddymon_id fallback
- roster-stop.py: reads roster_output.txt (no recursive CLI call)
- hooks.json: roster-stop.py Stop hook entry
2026-04-12 19:28:59 -07:00
2 changed files with 11 additions and 1 deletions

View file

@ -1,7 +1,7 @@
{ {
"name": "buddymon", "name": "buddymon",
"description": "Collectible creatures discovered through coding \u2014 commit streaks, bug fights, and session challenges", "description": "Collectible creatures discovered through coding \u2014 commit streaks, bug fights, and session challenges",
"version": "0.2.2", "version": "0.2.3",
"author": { "author": {
"name": "CircuitForge LLC", "name": "CircuitForge LLC",
"email": "hello@circuitforge.tech" "email": "hello@circuitforge.tech"

View file

@ -290,6 +290,16 @@ PYEOF
cp "${REPO_DIR}/lib/catalog.json" "${BUDDYMON_DIR}/catalog.json" cp "${REPO_DIR}/lib/catalog.json" "${BUDDYMON_DIR}/catalog.json"
ok "Installed catalog.json → ${BUDDYMON_DIR}/catalog.json" ok "Installed catalog.json → ${BUDDYMON_DIR}/catalog.json"
# Sync hooks-handlers and hooks.json into the live cache so edits take effect
# without waiting for a CC plugin-cache refresh. CC re-reads hook scripts on
# every invocation but only reads hooks.json at session start.
if [[ -d "${CACHE_DIR}/hooks-handlers" ]]; then
cp "${REPO_DIR}/hooks-handlers/"*.py "${CACHE_DIR}/hooks-handlers/"
cp "${REPO_DIR}/hooks-handlers/"*.sh "${CACHE_DIR}/hooks-handlers/" 2>/dev/null || true
cp "${REPO_DIR}/hooks/hooks.json" "${CACHE_DIR}/hooks/hooks.json"
ok "Synced hooks-handlers + hooks.json → ${CACHE_DIR}/"
fi
# Install statusline into settings.json if not already configured # Install statusline into settings.json if not already configured
python3 << PYEOF python3 << PYEOF
import json import json