@1presence/bridge 0.58.0 → 0.59.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 +7 -5
- package/package.json +1 -1
package/dist/config.js
CHANGED
|
@@ -79,8 +79,8 @@ function detectClaudeDefaultModel() {
|
|
|
79
79
|
// NB on `[1m]` (1M-context Opus): the bridge always runs on the user's claude.ai
|
|
80
80
|
// subscription (it strips ANTHROPIC_API_KEY — see claude.ts), and it is UNCONFIRMED
|
|
81
81
|
// whether the 1M context window (a tier-gated API beta) is servable on subscription
|
|
82
|
-
// auth. It is
|
|
83
|
-
//
|
|
82
|
+
// auth. It is the default (see DEFAULT_OPTION_NUM below); if it proves unservable on
|
|
83
|
+
// a given plan, the user can arrow to option 2 for the plain variant. (An earlier
|
|
84
84
|
// every-turn `400 / "unknown"` was first blamed on this but was actually a tool-schema
|
|
85
85
|
// bug that hit every model — see vault/Bugs.md.) `num` must stay contiguous 1..N in
|
|
86
86
|
// array order — the jump-key handler maps a typed digit `n` to `idx = n - 1`.
|
|
@@ -93,9 +93,11 @@ const MODEL_OPTIONS = [
|
|
|
93
93
|
{ num: 6, model: 'claude-haiku-4-5', label: 'claude-haiku-4-5' },
|
|
94
94
|
];
|
|
95
95
|
const PROMPT_TIMEOUT_MS = 10_000;
|
|
96
|
-
// Default to
|
|
97
|
-
//
|
|
98
|
-
|
|
96
|
+
// Default to the 1M-context Opus (`claude-opus-4-8[1m]`). The `[1m]` window is a
|
|
97
|
+
// tier-gated API beta whose availability on subscription auth is unconfirmed (see
|
|
98
|
+
// the NB above), but it's our preferred default — anyone can arrow to option 2 for
|
|
99
|
+
// the plain variant if `[1m]` proves unservable on their plan.
|
|
100
|
+
const DEFAULT_OPTION_NUM = 3;
|
|
99
101
|
function promptForModel(defaultModel) {
|
|
100
102
|
return new Promise((resolve) => {
|
|
101
103
|
const initialIdx = Math.max(0, MODEL_OPTIONS.findIndex((o) => o.num === DEFAULT_OPTION_NUM));
|