codemax-pro 1.4.0 → 1.4.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/lib.js +5 -5
- package/package.json +1 -1
package/lib.js
CHANGED
|
@@ -27,8 +27,8 @@ const HOME = process.env.HOME || process.env.USERPROFILE || os.homedir();
|
|
|
27
27
|
* for, and every request made from that entry fails at inference time — so it is set per model
|
|
28
28
|
* against what each one actually advertises, not switched on across the board.
|
|
29
29
|
*
|
|
30
|
-
* Haiku is deliberately absent from that list: it serves a 200K window,
|
|
31
|
-
* would offer the customer something that cannot work. */
|
|
30
|
+
* Haiku is deliberately absent from that list: it serves a 200K window (operator, 2026-10-25: there is no
|
|
31
|
+
* official 1M Haiku), and giving it a 1M entry would offer the customer something that cannot work. */
|
|
32
32
|
/* 🔴 These must be the ids `GET /v1/models` advertises TODAY, not the ones that merely still work.
|
|
33
33
|
* Every legacy id folds in at the router, so shipping `claude-opus-5` here broke nothing and was
|
|
34
34
|
* therefore invisible — the picker simply showed names the product had stopped using, contradicting
|
|
@@ -37,8 +37,8 @@ const HOME = process.env.HOME || process.env.USERPROFILE || os.homedir();
|
|
|
37
37
|
const MODELS = [
|
|
38
38
|
{ name: 'claude-opus-5-5', supports1m: true },
|
|
39
39
|
{ name: 'claude-fable-5-1', supports1m: true },
|
|
40
|
-
{ name: 'claude-sonnet-5', supports1m: true },
|
|
41
|
-
{ name: 'claude-haiku-
|
|
40
|
+
{ name: 'claude-sonnet-5-5', supports1m: true },
|
|
41
|
+
{ name: 'claude-haiku-5-5' },
|
|
42
42
|
];
|
|
43
43
|
|
|
44
44
|
/* What the agent's own tools may reach from inside the sandbox — a stricter boundary than the
|
|
@@ -156,7 +156,7 @@ const redact = (s) => (typeof s === 'string' && s.length > 12 ? `${s.slice(0, 10
|
|
|
156
156
|
* question that matters, and the cheap checks all pass in situations where that one fails. */
|
|
157
157
|
async function checkKey(apiKey, timeoutMs = 30000) {
|
|
158
158
|
const body = JSON.stringify({
|
|
159
|
-
model: 'claude-haiku-
|
|
159
|
+
model: 'claude-haiku-5-5',
|
|
160
160
|
max_tokens: 8,
|
|
161
161
|
messages: [{ role: 'user', content: 'hi' }],
|
|
162
162
|
});
|