codemax-pro 1.4.3 → 1.4.5

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/lib.js +11 -0
  2. package/package.json +30 -30
package/lib.js CHANGED
@@ -68,6 +68,13 @@ function cliEnvVars(apiKey) {
68
68
  CLAUDE_CODE_OAUTH_TOKEN: apiKey,
69
69
  CLAUDE_CODE_SUBSCRIPTION_TYPE: 'max',
70
70
  CLAUDE_CODE_REMOTE: '1',
71
+ /* 2026-11-29: the gateway folds a long conversation itself at ~170K of the client's tokens on the
72
+ * Opus/Sonnet engine, while Claude Code believes it has 1M and compacts near 967K — so long sessions
73
+ * ran on our fold, and the client's own compaction later summarised an already-folded context. With
74
+ * the window at 180K the client compacts first (~147K), from its full history, the way real Claude
75
+ * does on a 200K model. The hint headers tell the gateway which requests are compactions. */
76
+ CLAUDE_CODE_AUTO_COMPACT_WINDOW: '180000',
77
+ CLAUDE_CODE_GATEWAY_HINT_HEADERS: '1',
71
78
  };
72
79
  }
73
80
 
@@ -386,6 +393,10 @@ function configureDesktop(apiKey) {
386
393
  coworkEgressAllowedHosts: EGRESS_HOSTS,
387
394
  skipWebFetchPreflight: true,
388
395
  disableNonessentialTelemetry: true,
396
+ // Claude Desktop asks the provider behind a gateway to review Auto mode actions (the request carries a
397
+ // `safeguards` field and expects a verdict in the stream). The gateway answers that review itself, so the
398
+ // check stays ON — written explicitly, so a profile that ever got `false` is put back.
399
+ inferenceGatewayAutoModeServerChecks: true,
389
400
  });
390
401
  writeJson(metaPath, meta);
391
402
  written.push(profile);
package/package.json CHANGED
@@ -1,30 +1,30 @@
1
- {
2
- "name": "codemax-pro",
3
- "version": "1.4.3",
4
- "description": "Setup for CodeMax — configures Claude Code CLI, VS Code, and Claude Desktop, with a doctor and reset",
5
- "main": "index.js",
6
- "bin": {
7
- "codemax-pro": "index.js"
8
- },
9
- "keywords": [
10
- "codemax",
11
- "codemax-pro",
12
- "claude",
13
- "claude-code",
14
- "claude-desktop",
15
- "setup",
16
- "anthropic",
17
- "ai",
18
- "coding-assistant"
19
- ],
20
- "author": "CodeMax <support@codemax.pro>",
21
- "license": "MIT",
22
- "engines": {
23
- "node": ">=18"
24
- },
25
- "files": [
26
- "index.js",
27
- "lib.js",
28
- "README.md"
29
- ]
30
- }
1
+ {
2
+ "name": "codemax-pro",
3
+ "version": "1.4.5",
4
+ "description": "Setup for CodeMax — configures Claude Code CLI, VS Code, and Claude Desktop, with a doctor and reset",
5
+ "main": "index.js",
6
+ "bin": {
7
+ "codemax-pro": "index.js"
8
+ },
9
+ "keywords": [
10
+ "codemax",
11
+ "codemax-pro",
12
+ "claude",
13
+ "claude-code",
14
+ "claude-desktop",
15
+ "setup",
16
+ "anthropic",
17
+ "ai",
18
+ "coding-assistant"
19
+ ],
20
+ "author": "CodeMax <support@codemax.pro>",
21
+ "license": "MIT",
22
+ "engines": {
23
+ "node": ">=18"
24
+ },
25
+ "files": [
26
+ "index.js",
27
+ "lib.js",
28
+ "README.md"
29
+ ]
30
+ }