@1presence/bridge 0.56.0 → 0.57.0
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/dist/config.js +14 -12
- package/package.json +1 -1
package/dist/config.js
CHANGED
|
@@ -76,23 +76,25 @@ function detectClaudeDefaultModel() {
|
|
|
76
76
|
// The fixed menu — keep the option count small so the timeout default is easy
|
|
77
77
|
// to glance at. Option 1's `model: null` means "let Claude Code pick" (no
|
|
78
78
|
// `--model` flag passed to the subprocess).
|
|
79
|
-
// NB
|
|
80
|
-
//
|
|
81
|
-
//
|
|
82
|
-
//
|
|
83
|
-
//
|
|
84
|
-
//
|
|
85
|
-
//
|
|
86
|
-
// order — the jump-key handler maps a typed digit `n` to `idx = n - 1`.
|
|
79
|
+
// NB on `[1m]` (1M-context Opus): the bridge always runs on the user's claude.ai
|
|
80
|
+
// subscription (it strips ANTHROPIC_API_KEY — see claude.ts), and it is UNCONFIRMED
|
|
81
|
+
// whether the 1M context window (a tier-gated API beta) is servable on subscription
|
|
82
|
+
// auth. It is offered but is NOT the default — auto-selecting a maybe-unsupported
|
|
83
|
+
// variant is the risk we avoid; deliberately picking it to test is fine. (An earlier
|
|
84
|
+
// every-turn `400 / "unknown"` was first blamed on this but was actually a tool-schema
|
|
85
|
+
// bug that hit every model — see vault/Bugs.md.) `num` must stay contiguous 1..N in
|
|
86
|
+
// array order — the jump-key handler maps a typed digit `n` to `idx = n - 1`.
|
|
87
87
|
const MODEL_OPTIONS = [
|
|
88
88
|
{ num: 1, model: null, label: 'Use Claude Code default' },
|
|
89
89
|
{ num: 2, model: 'claude-opus-4-8', label: 'claude-opus-4-8' },
|
|
90
|
-
{ num: 3, model: 'claude-opus-4-
|
|
91
|
-
{ num: 4, model: 'claude-
|
|
92
|
-
{ num: 5, model: 'claude-
|
|
90
|
+
{ num: 3, model: 'claude-opus-4-8[1m]', label: 'claude-opus-4-8[1m] (1M context — experimental on subscription)' },
|
|
91
|
+
{ num: 4, model: 'claude-opus-4-7', label: 'claude-opus-4-7' },
|
|
92
|
+
{ num: 5, model: 'claude-sonnet-4-6', label: 'claude-sonnet-4-6' },
|
|
93
|
+
{ num: 6, model: 'claude-haiku-4-5', label: 'claude-haiku-4-5' },
|
|
93
94
|
];
|
|
94
95
|
const PROMPT_TIMEOUT_MS = 10_000;
|
|
95
|
-
// Default to claude-opus-4-8 (
|
|
96
|
+
// Default to plain claude-opus-4-8 (definitely servable on a subscription), not
|
|
97
|
+
// the experimental `[1m]` variant.
|
|
96
98
|
const DEFAULT_OPTION_NUM = 2;
|
|
97
99
|
function promptForModel(defaultModel) {
|
|
98
100
|
return new Promise((resolve) => {
|