cc-safe-setup 11.4.0 → 11.5.0

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.
@@ -0,0 +1,15 @@
1
+ #!/bin/bash
2
+ # aws-region-guard.sh — Warn when AWS commands target unexpected regions
3
+ # TRIGGER: PreToolUse MATCHER: "Bash"
4
+ COMMAND=$(cat | jq -r '.tool_input.command // empty' 2>/dev/null)
5
+ [ -z "$COMMAND" ] && exit 0
6
+ echo "$COMMAND" | grep -qE '^\s*aws\s' || exit 0
7
+ EXPECTED="${CC_AWS_REGION:-us-east-1}"
8
+ if echo "$COMMAND" | grep -qE '\-\-region\s+(\S+)'; then
9
+ REGION=$(echo "$COMMAND" | grep -oE '\-\-region\s+(\S+)' | awk '{print $2}')
10
+ if [ "$REGION" != "$EXPECTED" ]; then
11
+ echo "WARNING: AWS command targeting $REGION (expected: $EXPECTED)." >&2
12
+ echo "Verify this is the correct region." >&2
13
+ fi
14
+ fi
15
+ exit 0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-safe-setup",
3
- "version": "11.4.0",
3
+ "version": "11.5.0",
4
4
  "description": "One command to make Claude Code safe. 59 hooks (8 built-in + 51 examples). 26 CLI commands: dashboard, create, audit, lint, diff, migrate, compare, generate-ci. 284 tests.",
5
5
  "main": "index.mjs",
6
6
  "bin": {