From db105080f616ec652478c44ac902de11efb909ce Mon Sep 17 00:00:00 2001 From: Noah Brier Date: Sat, 13 Sep 2025 21:17:35 -0400 Subject: [PATCH] fix: improve SessionStart hook formatting and update notifications --- .claude/settings.json | 5 ++--- package.json | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.claude/settings.json b/.claude/settings.json index d7045cb..9e30f7d 100644 --- a/.claude/settings.json +++ b/.claude/settings.json @@ -2,15 +2,14 @@ "hooks": { "SessionStart": [ { - "matcher": "startup", "hooks": [ { "type": "command", - "command": "[ -f FIRST_RUN ] && echo '{\"hookSpecificOutput\":{\"hookEventName\":\"SessionStart\",\"additionalContext\":\"# šŸš€ Welcome to Claudesidian!\\n\\n**This appears to be your first time using this vault.**\\n\\n## Quick Start\\n\\nRun the setup wizard:\\n\\n```\\n/init-bootstrap\\n```\\n\\n## What this will do:\\n\\nāœ… Set up your personalized configuration\\nāœ… Disconnect from the original repository \\nāœ… Help you import any existing Obsidian vault\\nāœ… Configure your preferred workflow\\nāœ… Create your PARA folder structure\\n\\nThe setup wizard will guide you through everything!\"}}' || true" + "command": "[ -f FIRST_RUN ] && echo '{\"hookSpecificOutput\":{\"hookEventName\":\"SessionStart\",\"additionalContext\":\"\\n\\n# šŸš€ Welcome to Claudesidian!\\n\\n**This appears to be your first time using this vault.**\\n\\n## Quick Start\\n\\nRun the setup wizard:\\n\\n⬇\\n/init-bootstrap\\n⬆\\n\\n## What this will do:\\n\\nāœ… Set up your personalized configuration\\nāœ… Disconnect from the original repository\\nāœ… Help you import any existing Obsidian vault\\nāœ… Configure your preferred workflow\\nāœ… Create your PARA folder structure\\n\\nThe setup wizard will guide you through everything!\\n\\n\"}}' || true" }, { "type": "command", - "command": "npm run check-updates 2>/dev/null || true" + "command": "npm run check-updates --silent 2>/dev/null || true" } ] } diff --git a/package.json b/package.json index cacc524..4fca510 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "attachments:recent": "find 05_Attachments -type f -mtime -7 -exec ls -la {} \\;", "attachments:create-organized": "mkdir -p 05_Attachments/Organized", "vault:stats": ".scripts/vault-stats.sh", - "check-updates": "REMOTE=$(curl -s https://raw.githubusercontent.com/heyitsnoah/claudesidian/main/package.json | grep version | head -1 | sed 's/.*: \"\\(.*\\)\".*/\\1/') && LOCAL=$(grep version package.json | head -1 | sed 's/.*: \"\\(.*\\)\".*/\\1/') && if [ \"$LOCAL\" != \"$REMOTE\" ]; then echo \"{\\\"hookSpecificOutput\\\":{\\\"hookEventName\\\":\\\"SessionStart\\\",\\\"additionalContext\\\":\\\"šŸ“¦ Update available! Latest: $REMOTE (you have: $LOCAL)\\\\nRun /upgrade to update.\\\"}}\"; fi" + "check-updates": "REMOTE=$(curl -s https://raw.githubusercontent.com/heyitsnoah/claudesidian/main/package.json | grep version | head -1 | sed 's/.*: \"\\(.*\\)\".*/\\1/') && LOCAL=$(grep version package.json | head -1 | sed 's/.*: \"\\(.*\\)\".*/\\1/') && if [ \"$LOCAL\" != \"$REMOTE\" ]; then echo -e \"šŸ“¦ Update available! Latest: $REMOTE (you have: $LOCAL)\\n\\n⬇\\n/upgrade\\n⬆\\n\\n## What will this do\\n\\nāœ… Update to the latest version of Claudesidian\\nāœ… Get new features and improvements\\nāœ… Preserve your vault content and settings\\n\\n\"; fi" }, "keywords": [ "obsidian",