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.
- package/index.js +17 -14
- 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
|
-
/*
|
|
133
|
-
*
|
|
134
|
-
*
|
|
135
|
-
*
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
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,
|