@usabledev/usable-chat 1.198.1 → 1.198.3

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 +14 -5
  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",
@@ -217473,7 +217478,7 @@ var init_await_subagents = __esm({
217473
217478
  init_redis();
217474
217479
  init_spawned_task_store();
217475
217480
  POLL_INTERVAL_MS = 250;
217476
- HARD_TIMEOUT_MS = 5 * 60 * 1e3;
217481
+ HARD_TIMEOUT_MS = 45 * 60 * 1e3;
217477
217482
  awaitSubagentsParams = external_exports.object({
217478
217483
  taskIds: external_exports.array(external_exports.string()).optional().describe(
217479
217484
  "taskIds returned by `spawn_subagent`. Omit to await every running task in this conversation."
@@ -217578,7 +217583,11 @@ WHEN TO CALL THIS:
217578
217583
  const stillPendingList = Array.from(stillPending);
217579
217584
  for (const taskId of stillPendingList) {
217580
217585
  const record2 = await spawnedTaskStore.get(redis, taskId);
217581
- if (!record2) continue;
217586
+ if (!record2) {
217587
+ resultsByTaskId.set(taskId, unknownTaskRow(taskId, registrySize));
217588
+ stillPending.delete(taskId);
217589
+ continue;
217590
+ }
217582
217591
  if (record2.status !== "running") {
217583
217592
  resultsByTaskId.set(taskId, recordToRow(record2));
217584
217593
  stillPending.delete(taskId);
@@ -316165,7 +316174,7 @@ init_tui_select();
316165
316174
  init_model_registry();
316166
316175
 
316167
316176
  // package.json
316168
- var version2 = "1.198.1";
316177
+ var version2 = "1.198.3";
316169
316178
 
316170
316179
  // src/adapters/cli/model-catalog.ts
316171
316180
  init_codex_auth();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usabledev/usable-chat",
3
- "version": "1.198.1",
3
+ "version": "1.198.3",
4
4
  "description": "usable-chat — terminal harness for usable-chat (headless + TUI)",
5
5
  "type": "module",
6
6
  "bin": {