claude-init 1.0.29 → 1.0.31
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/.devcontainer/Dockerfile
CHANGED
|
@@ -71,8 +71,8 @@ ENV PATH=$PATH:/usr/local/share/npm-global/bin
|
|
|
71
71
|
ENV SHELL=/bin/zsh
|
|
72
72
|
|
|
73
73
|
# Set the default editor and visual
|
|
74
|
-
ENV EDITOR
|
|
75
|
-
ENV VISUAL
|
|
74
|
+
ENV EDITOR=nano
|
|
75
|
+
ENV VISUAL=nano
|
|
76
76
|
|
|
77
77
|
# Default powerline10k theme
|
|
78
78
|
ARG ZSH_IN_DOCKER_VERSION=1.2.0
|
|
@@ -54,5 +54,6 @@
|
|
|
54
54
|
},
|
|
55
55
|
"workspaceMount": "source=${localWorkspaceFolder},target=/workspace,type=bind,consistency=delegated",
|
|
56
56
|
"workspaceFolder": "/workspace",
|
|
57
|
-
"
|
|
57
|
+
"postStartCommand": "sudo /usr/local/bin/init-firewall.sh",
|
|
58
|
+
"waitFor": "postStartCommand"
|
|
58
59
|
}
|
|
@@ -69,7 +69,10 @@ for domain in \
|
|
|
69
69
|
"api.anthropic.com" \
|
|
70
70
|
"sentry.io" \
|
|
71
71
|
"statsig.anthropic.com" \
|
|
72
|
-
"statsig.com"
|
|
72
|
+
"statsig.com" \
|
|
73
|
+
"marketplace.visualstudio.com" \
|
|
74
|
+
"vscode.blob.core.windows.net" \
|
|
75
|
+
"update.code.visualstudio.com"; do
|
|
73
76
|
echo "Resolving $domain..."
|
|
74
77
|
ips=$(dig +noall +answer A "$domain" | awk '$4 == "A" {print $5}')
|
|
75
78
|
if [ -z "$ips" ]; then
|
|
@@ -113,6 +116,9 @@ iptables -A OUTPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
|
|
|
113
116
|
# Then allow only specific outbound traffic to allowed domains
|
|
114
117
|
iptables -A OUTPUT -m set --match-set allowed-domains dst -j ACCEPT
|
|
115
118
|
|
|
119
|
+
# Explicitly REJECT all other outbound traffic for immediate feedback
|
|
120
|
+
iptables -A OUTPUT -j REJECT --reject-with icmp-admin-prohibited
|
|
121
|
+
|
|
116
122
|
echo "Firewall configuration complete"
|
|
117
123
|
echo "Verifying firewall rules..."
|
|
118
124
|
if curl --connect-timeout 5 https://example.com >/dev/null 2>&1; then
|
package/package.json
CHANGED
package/src/cli.js
CHANGED
|
@@ -58,7 +58,7 @@ export async function cli() {
|
|
|
58
58
|
if (await fs.pathExists(settingsPath)) {
|
|
59
59
|
overwriteSettings = await promptYesNo(
|
|
60
60
|
'Overwrite existing .claude/settings.json with template version?',
|
|
61
|
-
|
|
61
|
+
true
|
|
62
62
|
);
|
|
63
63
|
}
|
|
64
64
|
|
|
@@ -78,7 +78,7 @@ export async function cli() {
|
|
|
78
78
|
if (hasOverlappingMd) {
|
|
79
79
|
overwriteCommandsMd = await promptYesNo(
|
|
80
80
|
'Overwrite existing .claude/commands/*.md with template versions?',
|
|
81
|
-
|
|
81
|
+
true
|
|
82
82
|
);
|
|
83
83
|
}
|
|
84
84
|
}
|
|
@@ -86,7 +86,7 @@ export async function cli() {
|
|
|
86
86
|
// Determine if we should install .claude/agents
|
|
87
87
|
const includeAgents = await promptYesNo(
|
|
88
88
|
'Install .claude/agents files?',
|
|
89
|
-
|
|
89
|
+
false
|
|
90
90
|
);
|
|
91
91
|
|
|
92
92
|
const tasks = [
|