@usabledev/usable-chat 1.198.2 → 1.198.4

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/cli.js +8 -3
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -136781,11 +136781,15 @@ var init_bedrock_sdk = __esm({
136781
136781
  });
136782
136782
 
136783
136783
  // src/lib/claude-direct.ts
136784
+ function normalizeClaudeModelId(modelId) {
136785
+ return modelId.replace(/(\d)\.(\d)/g, "$1-$2");
136786
+ }
136784
136787
  function usesAdaptiveThinking(modelId) {
136785
- return modelId.includes("claude-opus-4-7") || modelId.includes("claude-opus-5") || modelId.includes("claude-sonnet-5");
136788
+ const id = normalizeClaudeModelId(modelId);
136789
+ return id.includes("claude-opus-4-7") || id.includes("claude-opus-4-8") || id.includes("claude-opus-5") || id.includes("claude-sonnet-5");
136786
136790
  }
136787
136791
  function supportsSamplingParameters(modelId) {
136788
- return !modelId.includes("claude-sonnet-5");
136792
+ return !usesAdaptiveThinking(modelId);
136789
136793
  }
136790
136794
  function prepareClaudeRequestForModel(request) {
136791
136795
  if (supportsSamplingParameters(request.model)) {
@@ -137250,6 +137254,7 @@ function extractClaudeModel(modelId) {
137250
137254
  // Fallback to 4.5
137251
137255
  // Claude Opus models
137252
137256
  "anthropic/claude-opus-4.7": "claude-opus-4-7",
137257
+ "anthropic/claude-opus-4.8": "claude-opus-4-8",
137253
137258
  "anthropic/claude-opus-5": "claude-opus-5",
137254
137259
  // Claude Haiku 4.5 models
137255
137260
  "anthropic/claude-haiku-4.5": "claude-haiku-4-5-20251001",
@@ -316169,7 +316174,7 @@ init_tui_select();
316169
316174
  init_model_registry();
316170
316175
 
316171
316176
  // package.json
316172
- var version2 = "1.198.2";
316177
+ var version2 = "1.198.4";
316173
316178
 
316174
316179
  // src/adapters/cli/model-catalog.ts
316175
316180
  init_codex_auth();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usabledev/usable-chat",
3
- "version": "1.198.2",
3
+ "version": "1.198.4",
4
4
  "description": "usable-chat — terminal harness for usable-chat (headless + TUI)",
5
5
  "type": "module",
6
6
  "bin": {