claude-init 1.0.28 → 1.0.30
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/CLAUDE.md
CHANGED
|
@@ -1,6 +1 @@
|
|
|
1
1
|
+ During you interaction with the user, if you find anything reusable in this project (e.g. version of a library, model name), especially about a fix to a mistake you made or a correction you received, you should take note in the `Lessons` section in the `CLAUDE.md` file so you will not make the same mistake again.
|
|
2
|
-
|
|
3
|
-
## Lessons
|
|
4
|
-
|
|
5
|
-
### Test Maintenance
|
|
6
|
-
- When tests fail after removing template files, update the test assertions to reference existing template files. For example, after removing `.claude/commands/commit.md`, the test was updated to check for `simple-planning.md` instead (commit 348f79d removed the custom commit command).
|