codemax-pro 1.2.0 → 1.2.1

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.
Files changed (2) hide show
  1. package/index.js +17 -14
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -129,20 +129,20 @@ const DESKTOP_MODELS = [
129
129
  { name: "claude-haiku-4-5-20251001" },
130
130
  ];
131
131
 
132
- /* Hosts the agent's own web tools may reach from inside the sandbox. This is a separate, stricter
133
- * boundary than the machine's firewall: an unlisted host is refused even when the machine can
134
- * reach it. Web SEARCH does not need anything here — search runs server-side and arrives as part
135
- * of the response — but WebFetch, npm, pip and git all run on the device and do. */
136
- const EGRESS_HOSTS = [
137
- "api.codemax.pro",
138
- "github.com", "raw.githubusercontent.com", "objects.githubusercontent.com",
139
- "gist.github.com", "codeload.github.com",
140
- "registry.npmjs.org", "npmjs.com", "www.npmjs.com",
141
- "pypi.org", "files.pythonhosted.org",
142
- "crates.io", "static.crates.io",
143
- "proxy.golang.org", "sum.golang.org",
144
- "developer.mozilla.org", "stackoverflow.com", "api.stackexchange.com",
145
- ];
132
+ /* What the agent's own tools may reach from inside the sandbox — a separate, stricter boundary
133
+ * than the machine's firewall: an unlisted host is refused even when the machine itself can reach
134
+ * it, and the default is nothing at all except the API endpoint.
135
+ *
136
+ * "*" rather than a curated list, deliberately. A first attempt named the usual suspects — GitHub,
137
+ * npm, PyPI, MDN — which is fine right up until someone pastes a link to a blog post, a vendor's
138
+ * docs, or their own staging site, and the fetch fails with no obvious cause. A developer tool
139
+ * cannot know in advance which host the next question is about, and this matches what the same
140
+ * tools do outside this setup.
141
+ *
142
+ * An organisation that wants the sandbox locked down should replace this with its own list; that
143
+ * is a deployment policy decision, and it belongs with whoever manages those machines rather than
144
+ * baked into a one-command installer. */
145
+ const EGRESS_HOSTS = ["*"];
146
146
 
147
147
  function desktopPolicyValues(apiKey) {
148
148
  return {
@@ -344,6 +344,9 @@ async function main() {
344
344
  const settings = readJson(settingsPath);
345
345
  if (!settings.env) settings.env = {};
346
346
 
347
+ /* These five belong together and were established by testing against the CLI. Removing
348
+ * any one of them changes behaviour in a way that is easy to miss, because nothing
349
+ * errors — it just quietly settles on different defaults. Treat them as a set. */
347
350
  Object.assign(settings.env, {
348
351
  ANTHROPIC_AUTH_TOKEN: apiKey,
349
352
  ANTHROPIC_BASE_URL: API_ENDPOINT,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codemax-pro",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "One-command setup for CodeMax — configures Claude Code CLI, VS Code extension, and Claude Desktop automatically",
5
5
  "main": "index.js",
6
6
  "bin": {