codemax-pro 1.3.0 → 1.3.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/README.md +1 -37
- package/lib.js +12 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -47,7 +47,6 @@ Claude Desktop
|
|
|
47
47
|
✓ policy gateway → https://api.codemax.pro
|
|
48
48
|
✓ auth x-api-key
|
|
49
49
|
✓ models 4 configured
|
|
50
|
-
✓ fetch egress ["*"], preflight off
|
|
51
50
|
|
|
52
51
|
Conflicts
|
|
53
52
|
✓ no environment variables competing with the settings file
|
|
@@ -66,46 +65,11 @@ didn't work", and none of them produces an error:
|
|
|
66
65
|
|
|
67
66
|
---
|
|
68
67
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
The desktop app is not the CLI. It doesn't read `~/.claude/settings.json`, and setting
|
|
72
|
-
`ANTHROPIC_BASE_URL` in the environment does nothing to it — it's a separate application that talks
|
|
73
|
-
to whichever inference endpoint it's configured with.
|
|
74
|
-
|
|
75
|
-
So this uses Anthropic's supported **third-party inference** mode, with the provider set to
|
|
76
|
-
`gateway`. It writes to both places the app looks:
|
|
77
|
-
|
|
78
|
-
| Platform | Written to |
|
|
79
|
-
| --- | --- |
|
|
80
|
-
| Windows | `HKCU\SOFTWARE\Policies\Claude` **and** `%LOCALAPPDATA%\Claude-3p\configLibrary\` |
|
|
81
|
-
| macOS | `~/Library/Application Support/Claude-3p/configLibrary/` |
|
|
82
|
-
| Linux | `~/.config/Claude-3p/configLibrary/` |
|
|
83
|
-
|
|
84
|
-
Along with the endpoint and key it sets the model list, the credential header, the sandbox egress
|
|
85
|
-
allowlist, and turns off the fetch-domain preflight.
|
|
86
|
-
|
|
87
|
-
> ### ⚠️ Quit the desktop app fully, then reopen it
|
|
68
|
+
> ### ⚠️ Quit Claude Desktop fully, then reopen it
|
|
88
69
|
> It reads its configuration **once, at launch**. Closing the window leaves the process running, so
|
|
89
70
|
> a reopened window keeps the old settings — and it looks exactly like setup failed. Quit from the
|
|
90
71
|
> system tray (Windows) or menu bar (macOS).
|
|
91
72
|
|
|
92
|
-
**Web search** needs no setup — it is handled at the endpoint. **Web fetch** works on any host by
|
|
93
|
-
default; an organisation that wants the sandbox restricted should set its own allowlist through MDM.
|
|
94
|
-
|
|
95
|
-
---
|
|
96
|
-
|
|
97
|
-
## Models
|
|
98
|
-
|
|
99
|
-
| Model | Best for |
|
|
100
|
-
| --- | --- |
|
|
101
|
-
| `claude-opus-5` | Complex architecture and hard coding problems |
|
|
102
|
-
| `claude-fable-5` | Extended reasoning, long-running work |
|
|
103
|
-
| `claude-sonnet-5` | Fast, capable general-purpose work |
|
|
104
|
-
| `claude-haiku-4-5` | Quick turnarounds and background tasks |
|
|
105
|
-
|
|
106
|
-
Legacy names (`claude-opus-4-8`, `claude-sonnet-4-6`, `claude-3-5-sonnet` and others) are accepted
|
|
107
|
-
and map onto the current lineup.
|
|
108
|
-
|
|
109
73
|
---
|
|
110
74
|
|
|
111
75
|
## Safety
|
package/lib.js
CHANGED
|
@@ -20,11 +20,19 @@ const IS_MAC = process.platform === 'darwin';
|
|
|
20
20
|
const HOME = process.env.HOME || process.env.USERPROFILE || os.homedir();
|
|
21
21
|
|
|
22
22
|
/* The tiers this endpoint serves. Written out rather than discovered so the desktop model picker
|
|
23
|
-
* is populated even before the app has talked to the endpoint once.
|
|
23
|
+
* is populated even before the app has talked to the endpoint once.
|
|
24
|
+
*
|
|
25
|
+
* `supports1m` adds a second picker entry for that model, labelled as the 1M context window. It is
|
|
26
|
+
* an assertion the app cannot check: claim it on a model the endpoint will not take a 1M request
|
|
27
|
+
* for, and every request made from that entry fails at inference time — so it is set per model
|
|
28
|
+
* against what each one actually advertises, not switched on across the board.
|
|
29
|
+
*
|
|
30
|
+
* Haiku is deliberately absent from that list: it serves a 200K window, and giving it a 1M entry
|
|
31
|
+
* would offer the customer something that cannot work. */
|
|
24
32
|
const MODELS = [
|
|
25
|
-
{ name: 'claude-opus-5' },
|
|
26
|
-
{ name: 'claude-fable-5' },
|
|
27
|
-
{ name: 'claude-sonnet-5' },
|
|
33
|
+
{ name: 'claude-opus-5', supports1m: true },
|
|
34
|
+
{ name: 'claude-fable-5', supports1m: true },
|
|
35
|
+
{ name: 'claude-sonnet-5', supports1m: true },
|
|
28
36
|
{ name: 'claude-haiku-4-5-20251001' },
|
|
29
37
|
];
|
|
30
38
|
|