claude-init 1.0.42 → 1.0.45
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/init-firewall.sh +2 -2
- package/CLAUDE.md +1 -4
- package/package.json +1 -1
|
@@ -60,7 +60,7 @@ while read -r cidr; do
|
|
|
60
60
|
exit 1
|
|
61
61
|
fi
|
|
62
62
|
echo "Adding GitHub range $cidr"
|
|
63
|
-
ipset add allowed-domains "$cidr"
|
|
63
|
+
ipset add -exist allowed-domains "$cidr"
|
|
64
64
|
done < <(echo "$gh_ranges" | jq -r '(.web + .api + .git)[]' | aggregate -q)
|
|
65
65
|
|
|
66
66
|
# Resolve and add other allowed domains
|
|
@@ -86,7 +86,7 @@ for domain in \
|
|
|
86
86
|
exit 1
|
|
87
87
|
fi
|
|
88
88
|
echo "Adding $ip for $domain"
|
|
89
|
-
ipset add allowed-domains "$ip"
|
|
89
|
+
ipset add -exist allowed-domains "$ip"
|
|
90
90
|
done < <(echo "$ips")
|
|
91
91
|
done
|
|
92
92
|
|
package/CLAUDE.md
CHANGED
|
@@ -1,5 +1,2 @@
|
|
|
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
|
-
- When using `ipset add` commands, always use the `-exist` flag to prevent errors when adding duplicate entries (e.g., `ipset add allowed-domains "$ip" -exist`). DNS resolution can return duplicate IPs or the same IP may be shared across domains.
|
|
2
|
+
+ use `env.example` for `.env` example/template, instead of `.env.example`
|