create-claude-workspace 1.1.105 → 1.1.106
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.
|
@@ -41,6 +41,22 @@ if [[ -n "${GITLAB_TOKEN:-}" ]]; then
|
|
|
41
41
|
gosu claude glab auth login --hostname gitlab.com --token "$GITLAB_TOKEN" 2>/dev/null || true
|
|
42
42
|
fi
|
|
43
43
|
|
|
44
|
+
# Bun scoped registries — propagate project .bunfig.toml or create from env var
|
|
45
|
+
# Bun reads ~/.bunfig.toml (global) and $PWD/bunfig.toml (project). Docker volume
|
|
46
|
+
# mounts can break project-level discovery, so we always copy to home as fallback.
|
|
47
|
+
if [[ -f /project/.bunfig.toml ]]; then
|
|
48
|
+
cp /project/.bunfig.toml /home/claude/.bunfig.toml
|
|
49
|
+
chown claude:claude /home/claude/.bunfig.toml
|
|
50
|
+
echo "Copied project .bunfig.toml to claude home."
|
|
51
|
+
elif [[ -n "${FONTAWESOME_TOKEN:-}" ]]; then
|
|
52
|
+
cat > /home/claude/.bunfig.toml <<BUNEOF
|
|
53
|
+
[install.scopes]
|
|
54
|
+
"@fortawesome" = { token = "${FONTAWESOME_TOKEN}", url = "https://npm.fontawesome.com/" }
|
|
55
|
+
BUNEOF
|
|
56
|
+
chown claude:claude /home/claude/.bunfig.toml
|
|
57
|
+
echo "Created .bunfig.toml from FONTAWESOME_TOKEN."
|
|
58
|
+
fi
|
|
59
|
+
|
|
44
60
|
# Auth pre-check — fail fast if no credentials available
|
|
45
61
|
if [[ -z "${ANTHROPIC_API_KEY:-}" ]]; then
|
|
46
62
|
creds="/home/claude/.claude/.credentials.json"
|