codemax-pro 1.4.2 → 1.4.3

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 (4) hide show
  1. package/README.md +93 -85
  2. package/index.js +339 -301
  3. package/lib.js +509 -487
  4. package/package.json +1 -1
package/README.md CHANGED
@@ -1,85 +1,93 @@
1
- # ⚡ codemax-pro
2
-
3
- Setup for **CodeMax** (`api.codemax.pro`) — configures **Claude Code CLI**, the **VS Code
4
- extension**, and the **Claude Desktop app**.
5
-
6
- ```bash
7
- npx codemax-pro
8
- ```
9
-
10
- Or pass the key directly:
11
-
12
- ```bash
13
- npx codemax-pro sk-cp-your-key-here
14
- ```
15
-
16
- ---
17
-
18
- ## Commands
19
-
20
- | | |
21
- | --- | --- |
22
- | `codemax-pro [key]` | Configure everything |
23
- | `codemax-pro doctor` | Report what is actually configured, and what is fighting it |
24
- | `codemax-pro reset` | Remove what this tool set, and nothing else |
25
-
26
- | Flag | |
27
- | --- | --- |
28
- | `--yes` | Never prompt |
29
- | `--only cli` / `--only desktop` | Configure one surface only |
30
-
31
- The key can also come from `CODEMAX_API_KEY`.
32
-
33
- ---
34
-
35
- ## `doctor`
36
-
37
- Run this first when something isn't working. It only reads — it changes nothing.
38
-
39
- ```
40
- Claude Code CLI
41
- ✓ endpoint https://api.codemax.pro
42
- ✓ key sk-cp-a1b2…9f3c
43
- ✓ default model settings present
44
- ✓ claude CLI installed 2.1.81
45
-
46
- Claude Desktop
47
- ✓ policy gateway → https://api.codemax.pro
48
- ✓ auth x-api-key
49
- ✓ models 4 configured, 3 at 1M
50
-
51
- Conflicts
52
- ✓ no environment variables competing with the settings file
53
-
54
- Connection
55
- ✓ endpoint reachable, key accepted 412ms
56
- ```
57
-
58
- It exists because the failures here are quiet ones. Each of these looks identical to "the setup
59
- didn't work", and none of them produces an error:
60
-
61
- - an environment variable that outranks the settings file
62
- - a machine-wide policy that outranks the per-user one
63
- - an app still running with the configuration it read at launch
64
- - a key that was rotated
65
-
66
- ---
67
-
68
- > ### ⚠️ Quit Claude Desktop fully, then reopen it
69
- > It reads its configuration **once, at launch**. Closing the window leaves the process running, so
70
- > a reopened window keeps the old settings — and it looks exactly like setup failed. Quit from the
71
- > system tray (Windows) or menu bar (macOS).
72
-
73
- ---
74
-
75
- ## Safety
76
-
77
- - Existing settings are backed up beside the original as `*.codemax-backup` before being changed.
78
- - Files are written atomically — an interrupted run cannot leave a half-written settings file.
79
- - `reset` removes only the keys this tool set; anything else in those files is left alone.
80
-
81
- ---
82
-
83
- ## 📖 License
84
-
85
- MIT © [CodeMax](https://codemax.pro)
1
+ # ⚡ codemax-pro
2
+
3
+ Setup for **CodeMax** (`api.codemax.pro`) — configures **Claude Code CLI**, the **VS Code
4
+ extension**, and the **Claude Desktop app**.
5
+
6
+ ```bash
7
+ npx codemax-pro
8
+ ```
9
+
10
+ Or pass the key directly:
11
+
12
+ ```bash
13
+ npx codemax-pro sk-cp-your-key-here
14
+ ```
15
+
16
+ ---
17
+
18
+ ## Commands
19
+
20
+ | | |
21
+ | --- | --- |
22
+ | `codemax-pro [key]` | Configure everything |
23
+ | `codemax-pro doctor` | Report what is actually configured, and what is fighting it |
24
+ | `codemax-pro reset` | Remove what this tool set, and nothing else |
25
+
26
+ | Flag | |
27
+ | --- | --- |
28
+ | `--yes` | Never prompt |
29
+ | `--only cli` / `--only desktop` | Configure one surface only |
30
+
31
+ The key can also come from `CODEMAX_API_KEY`.
32
+
33
+ ---
34
+
35
+ ## `doctor`
36
+
37
+ Run this first when something isn't working. It only reads — it changes nothing.
38
+
39
+ ```
40
+ Claude Code CLI
41
+ ✓ endpoint https://api.codemax.pro
42
+ ✓ key sk-cp-a1b2…9f3c
43
+ ✓ default model settings present
44
+ ✓ claude CLI installed 2.1.81
45
+
46
+ Claude Desktop
47
+ ✓ provider gateway → https://api.codemax.pro
48
+ ✓ auth x-api-key
49
+ ✓ models 4 configured, 3 at 1M
50
+
51
+ Conflicts
52
+ ✓ no environment variables competing with the settings file
53
+
54
+ Connection
55
+ ✓ endpoint reachable, key accepted 412ms
56
+ ```
57
+
58
+ It exists because the failures here are quiet ones. Each of these looks identical to "the setup
59
+ didn't work", and none of them produces an error:
60
+
61
+ - an environment variable that outranks the settings file
62
+ - a Windows policy that locks Claude Desktop ("Organization-managed") and overrides this setup
63
+ - an app still running with the configuration it read at launch
64
+ - a key that was rotated
65
+
66
+ ---
67
+
68
+ > ### 🔒 Claude Desktop says "Organization-managed"
69
+ > A Windows policy (`SOFTWARE\Policies\Claude`) is overriding this setup, so every field is locked
70
+ > and new models never appear. If an earlier CodeMax setup left it, open **PowerShell as
71
+ > Administrator**, run `npx codemax-pro@latest` once — it removes that policy — then quit Claude
72
+ > Desktop from the system tray and reopen it. `doctor` tells you which case you are in.
73
+
74
+ ---
75
+
76
+ > ### ⚠️ Quit Claude Desktop fully, then reopen it
77
+ > It reads its configuration **once, at launch**. Closing the window leaves the process running, so
78
+ > a reopened window keeps the old settings — and it looks exactly like setup failed. Quit from the
79
+ > system tray (Windows) or menu bar (macOS).
80
+
81
+ ---
82
+
83
+ ## Safety
84
+
85
+ - Existing settings are backed up beside the original as `*.codemax-backup` before being changed.
86
+ - Files are written atomically — an interrupted run cannot leave a half-written settings file.
87
+ - `reset` removes only the keys this tool set; anything else in those files is left alone.
88
+
89
+ ---
90
+
91
+ ## 📖 License
92
+
93
+ MIT © [CodeMax](https://codemax.pro)