claude-cac 1.3.2 → 1.3.3
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.
- package/README.md +6 -2
- package/cac +10 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
<div align="center">
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
<picture>
|
|
4
|
+
<source media="(prefers-color-scheme: dark)" srcset="docs/images/logo-dark.svg">
|
|
5
|
+
<source media="(prefers-color-scheme: light)" srcset="docs/images/logo-light.svg">
|
|
6
|
+
<img alt="cac" src="docs/images/logo-light.svg" width="200">
|
|
7
|
+
</picture>
|
|
4
8
|
|
|
5
|
-
**Claude Code
|
|
9
|
+
**Claude Code 小雨衣** — Isolate, protect, and manage your Claude Code.
|
|
6
10
|
|
|
7
11
|
*Run Claude Code your way — isolated, protected, managed.*
|
|
8
12
|
|
package/cac
CHANGED
|
@@ -11,7 +11,7 @@ VERSIONS_DIR="$CAC_DIR/versions"
|
|
|
11
11
|
# ── utils: colors, read/write, UUID, proxy parsing ───────────────────────
|
|
12
12
|
|
|
13
13
|
# shellcheck disable=SC2034 # used in build-concatenated cac script
|
|
14
|
-
CAC_VERSION="1.3.
|
|
14
|
+
CAC_VERSION="1.3.3"
|
|
15
15
|
|
|
16
16
|
_read() { [[ -f "$1" ]] && tr -d '[:space:]' < "$1" || echo "${2:-}"; }
|
|
17
17
|
_die() { printf '%b\n' "$(_red "error:") $*" >&2; exit 1; }
|
|
@@ -1161,6 +1161,10 @@ if [[ -f "$CAC_DIR/cac-dns-guard.js" ]]; then
|
|
|
1161
1161
|
*cac-dns-guard.js*) ;; # already injected, skip
|
|
1162
1162
|
*) export NODE_OPTIONS="${NODE_OPTIONS:-} --require $CAC_DIR/cac-dns-guard.js" ;;
|
|
1163
1163
|
esac
|
|
1164
|
+
case "${BUN_OPTIONS:-}" in
|
|
1165
|
+
*cac-dns-guard.js*) ;;
|
|
1166
|
+
*) export BUN_OPTIONS="${BUN_OPTIONS:-} --preload $CAC_DIR/cac-dns-guard.js" ;;
|
|
1167
|
+
esac
|
|
1164
1168
|
fi
|
|
1165
1169
|
# fallback layer: HOSTALIASES (gethostbyname level)
|
|
1166
1170
|
[[ -f "$CAC_DIR/blocked_hosts" ]] && export HOSTALIASES="$CAC_DIR/blocked_hosts"
|
|
@@ -1192,9 +1196,13 @@ fi
|
|
|
1192
1196
|
export CAC_USERNAME="user-$(echo "$_name" | cut -c1-8)"
|
|
1193
1197
|
if [[ -f "$CAC_DIR/fingerprint-hook.js" ]]; then
|
|
1194
1198
|
case "${NODE_OPTIONS:-}" in
|
|
1195
|
-
*fingerprint-hook.js*) ;;
|
|
1199
|
+
*fingerprint-hook.js*) ;;
|
|
1196
1200
|
*) export NODE_OPTIONS="--require $CAC_DIR/fingerprint-hook.js ${NODE_OPTIONS:-}" ;;
|
|
1197
1201
|
esac
|
|
1202
|
+
case "${BUN_OPTIONS:-}" in
|
|
1203
|
+
*fingerprint-hook.js*) ;;
|
|
1204
|
+
*) export BUN_OPTIONS="--preload $CAC_DIR/fingerprint-hook.js ${BUN_OPTIONS:-}" ;;
|
|
1205
|
+
esac
|
|
1198
1206
|
fi
|
|
1199
1207
|
|
|
1200
1208
|
# exec real claude — versioned binary or system fallback
|