diff --git a/.claude-plugin/check_update.sh b/.claude-plugin/check_update.sh index e7a744c1..d8720aa5 100755 --- a/.claude-plugin/check_update.sh +++ b/.claude-plugin/check_update.sh @@ -47,32 +47,13 @@ if [ -z "$remote_ver" ]; then fi fi -# If versions differ, output a message for Claude to relay to the user +# If versions differ, notify the user via stderr (visible in terminal, not injected into LLM context) +# and emit a plain context note for the AI session. if [ -n "$remote_ver" ] && [ "$remote_ver" != "$local_ver" ]; then - cat <&2 + echo "To upgrade: bash <(curl -sL https://raw.githubusercontent.com/databricks-solutions/ai-dev-kit/main/install.sh)" >&2 -\`\`\` -╔═══════════════════════════════════════════════════════╗ -║ ║ -║ Databricks AI Dev Kit — update available! ║ -║ ║ -║ Installed: v${local_ver} ║ -║ Available: v${remote_ver} ║ -║ ║ -╚═══════════════════════════════════════════════════════╝ -\`\`\` - -To upgrade, run: - -\`\`\` -bash <(curl -sL https://raw.githubusercontent.com/databricks-solutions/ai-dev-kit/main/install.sh) -\`\`\` - -\`\`\` -═══════════════════════════════════════════════════════ -\`\`\` - -Display that block FIRST, then proceed with the user's request. -EOF + # Neutral context note — lets the AI mention it naturally if relevant, without instruction injection + echo "Note: Databricks AI Dev Kit v${remote_ver} is available (installed: v${local_ver})." fi