@speakai/mcp-server 1.43.3 → 2.0.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/index.js CHANGED
@@ -293,7 +293,8 @@ function failedBodyResult(data) {
293
293
  isError: true
294
294
  };
295
295
  }
296
- function ok(data) {
296
+ function ok(body) {
297
+ const data = body ?? null;
297
298
  return failedBodyResult(data) ?? {
298
299
  content: [{ type: "text", text: JSON.stringify(data, null, 2) }],
299
300
  structuredContent: { data }
@@ -309,22 +310,21 @@ function err(error) {
309
310
  };
310
311
  }
311
312
  function registerSpeakTool(server, name, description, inputSchema, annotations, handler, toolMeta) {
312
- const registerTool = server.registerTool.bind(server);
313
- return registerTool(
313
+ return server.registerTool(
314
314
  name,
315
315
  {
316
316
  title: annotations.title,
317
317
  description,
318
- inputSchema,
319
- outputSchema: passthroughOutputSchema,
318
+ inputSchema: import_zod.z.object(inputSchema),
319
+ outputSchema: import_zod.z.object(passthroughOutputSchema),
320
320
  annotations,
321
321
  ...toolMeta ? { _meta: toolMeta } : {}
322
322
  },
323
- async (args2, extra) => runToolCall(name, async (context) => {
323
+ async (args2, ctx) => runToolCall(name, async (context) => {
324
324
  const startedAt = performance.now();
325
325
  let result;
326
326
  try {
327
- result = normalizeToolResult(await handler(args2, extra), context);
327
+ result = normalizeToolResult(await handler(args2, ctx), context);
328
328
  return result;
329
329
  } finally {
330
330
  reportToolCall(server, name, startedAt, result, context);
@@ -349,7 +349,7 @@ function normalizeToolResult(result, context) {
349
349
  try {
350
350
  data = JSON.parse(textContent.text);
351
351
  } catch {
352
- return { ...result, structuredContent: { data: textContent.text } };
352
+ return { ...result, structuredContent: { data: textContent.text ?? null } };
353
353
  }
354
354
  const refusal = getApiRefusal(data);
355
355
  if (refusal) return refusalResult(refusal);
@@ -735,6 +735,7 @@ var init_filter = __esm({
735
735
  FilterFieldName2["TAGS"] = "tags";
736
736
  FilterFieldName2["RECORDER_ID"] = "recorderId";
737
737
  FilterFieldName2["FIELDS"] = "fields";
738
+ FilterFieldName2["STATE"] = "state";
738
739
  })(FilterFieldName || (FilterFieldName = {}));
739
740
  (function(FilterOperator2) {
740
741
  FilterOperator2["INCLUDE"] = "include";
@@ -847,7 +848,7 @@ var init_label = __esm({
847
848
  });
848
849
 
849
850
  // node_modules/@speakai/shared/dist/enums/media.js
850
- var MediaType, MediaState, MediaPrivacyMode, MediaInsightType, MediaInsightStatus, MediaProcessType, ThumbnailStatus, ThumbnailOrigin;
851
+ var MediaType, MediaState, MediaPrivacyMode, MediaInsightType, MediaInsightStatus, MediaProcessType, ThumbnailStatus, ThumbnailOrigin, MediaUploadType;
851
852
  var init_media = __esm({
852
853
  "node_modules/@speakai/shared/dist/enums/media.js"() {
853
854
  "use strict";
@@ -925,6 +926,29 @@ var init_media = __esm({
925
926
  ThumbnailOrigin2["AUTO"] = "auto";
926
927
  ThumbnailOrigin2["CUSTOM"] = "custom";
927
928
  })(ThumbnailOrigin || (ThumbnailOrigin = {}));
929
+ (function(MediaUploadType2) {
930
+ MediaUploadType2["WEB"] = "web";
931
+ MediaUploadType2["ANDROID"] = "android";
932
+ MediaUploadType2["IOS"] = "ios";
933
+ MediaUploadType2["TEXT"] = "text";
934
+ MediaUploadType2["ZAPIER"] = "zapier";
935
+ MediaUploadType2["MAKE"] = "make";
936
+ MediaUploadType2["N8N"] = "n8n";
937
+ MediaUploadType2["API"] = "api";
938
+ MediaUploadType2["RECORDER"] = "recorder";
939
+ MediaUploadType2["CSV"] = "csv";
940
+ MediaUploadType2["ZOOM"] = "zoom";
941
+ MediaUploadType2["WEB_SCRAPER"] = "web-scraper";
942
+ MediaUploadType2["APP_RECORDER"] = "app-recorder";
943
+ MediaUploadType2["MEETING_ASSISTANT"] = "meeting-assistant";
944
+ MediaUploadType2["CHROME_EXTENSION"] = "chrome-extension";
945
+ MediaUploadType2["TOOLS"] = "tools";
946
+ MediaUploadType2["RETRANSCRIBE"] = "retranscribe";
947
+ MediaUploadType2["SAMPLE"] = "sample";
948
+ MediaUploadType2["TRANSLATION"] = "translation";
949
+ MediaUploadType2["VOICE_AGENT"] = "voice-agent";
950
+ MediaUploadType2["DESKTOP"] = "desktop";
951
+ })(MediaUploadType || (MediaUploadType = {}));
928
952
  }
929
953
  });
930
954
 
@@ -1900,6 +1924,10 @@ var init_llm = __esm({
1900
1924
  LLMModels2["GPT_5_6_SOL"] = "gpt-5.6-sol";
1901
1925
  LLMModels2["GPT_5_6_TERRA"] = "gpt-5.6-terra";
1902
1926
  LLMModels2["GPT_5_6_LUNA"] = "gpt-5.6-luna";
1927
+ LLMModels2["GPT_6_ASTRA"] = "gpt-6-astra";
1928
+ LLMModels2["GPT_6_1_SOL"] = "gpt-6.1-sol";
1929
+ LLMModels2["GPT_6_1_TERRA"] = "gpt-6.1-terra";
1930
+ LLMModels2["GPT_6_LUNA"] = "gpt-6-luna";
1903
1931
  LLMModels2["CLAUDE_2"] = "claude-2";
1904
1932
  LLMModels2["CLAUDE_3_5_SONNET"] = "claude-3-5-sonnet";
1905
1933
  LLMModels2["CLAUDE_3_5_SONNET_20241022"] = "claude-3-5-sonnet-20241022";
@@ -1908,6 +1936,10 @@ var init_llm = __esm({
1908
1936
  LLMModels2["CLAUDE_SONNET_4_6"] = "claude-sonnet-4-6";
1909
1937
  LLMModels2["CLAUDE_SONNET_5"] = "claude-sonnet-5";
1910
1938
  LLMModels2["CLAUDE_OPUS_4_8"] = "claude-opus-4-8";
1939
+ LLMModels2["CLAUDE_SONNET_5_5"] = "claude-sonnet-5-5";
1940
+ LLMModels2["CLAUDE_OPUS_5_5"] = "claude-opus-5-5";
1941
+ LLMModels2["CLAUDE_HAIKU_5_5"] = "claude-haiku-5-5";
1942
+ LLMModels2["CLAUDE_FABLE_5_1"] = "claude-fable-5-1";
1911
1943
  LLMModels2["GEMINI_1_5_PRO"] = "gemini-1.5-pro";
1912
1944
  LLMModels2["GEMINI_1_5_FLASH"] = "gemini-1.5-flash";
1913
1945
  LLMModels2["GEMINI_2_0_FLASH"] = "gemini-2.0-flash";
@@ -1922,7 +1954,9 @@ var init_llm = __esm({
1922
1954
  LLMModels2["GEMINI_3_8_FLASH"] = "gemini-3.8-flash";
1923
1955
  LLMModels2["GEMINI_4_ARGON"] = "gemini-4-argon";
1924
1956
  LLMModels2["GROK_4_5"] = "x-ai/grok-4.5";
1957
+ LLMModels2["GROK_4_7"] = "x-ai/grok-4.7";
1925
1958
  LLMModels2["GLM_5_2"] = "z-ai/glm-5.2";
1959
+ LLMModels2["GLM_5_3"] = "z-ai/glm-5.3";
1926
1960
  })(LLMModels || (LLMModels = {}));
1927
1961
  }
1928
1962
  });
@@ -2327,9 +2361,95 @@ var init_label2 = __esm({
2327
2361
  });
2328
2362
 
2329
2363
  // node_modules/@speakai/shared/dist/utils/dashboard-spec.js
2364
+ var DASHBOARD_ICON_NAMES, DASHBOARD_ICON_NAME_SET;
2330
2365
  var init_dashboard_spec = __esm({
2331
2366
  "node_modules/@speakai/shared/dist/utils/dashboard-spec.js"() {
2332
2367
  "use strict";
2368
+ DASHBOARD_ICON_NAMES = [
2369
+ "layout-dashboard",
2370
+ "layout-grid",
2371
+ "chart-column",
2372
+ "chart-column-increasing",
2373
+ "chart-no-axes-column",
2374
+ "chart-no-axes-combined",
2375
+ "chart-line",
2376
+ "chart-pie",
2377
+ "chart-area",
2378
+ "gauge",
2379
+ "activity",
2380
+ "trending-up",
2381
+ "trending-down",
2382
+ "target",
2383
+ "trophy",
2384
+ "award",
2385
+ "star",
2386
+ "flag",
2387
+ "user",
2388
+ "user-round",
2389
+ "user-check",
2390
+ "users",
2391
+ "phone",
2392
+ "phone-call",
2393
+ "phone-incoming",
2394
+ "phone-missed",
2395
+ "headphones",
2396
+ "mic",
2397
+ "audio-lines",
2398
+ "audio-waveform",
2399
+ "message-circle",
2400
+ "message-square",
2401
+ "messages-square",
2402
+ "megaphone",
2403
+ "send",
2404
+ "quote",
2405
+ "video",
2406
+ "film",
2407
+ "play",
2408
+ "circle-play",
2409
+ "list-video",
2410
+ "calendar",
2411
+ "calendar-days",
2412
+ "calendar-clock",
2413
+ "clock",
2414
+ "sun",
2415
+ "sunrise",
2416
+ "list",
2417
+ "list-checks",
2418
+ "clipboard-check",
2419
+ "square-check-big",
2420
+ "table",
2421
+ "table-2",
2422
+ "layers",
2423
+ "tags",
2424
+ "bookmark",
2425
+ "file-text",
2426
+ "folder-open",
2427
+ "search",
2428
+ "git-compare",
2429
+ "shield-check",
2430
+ "circle-alert",
2431
+ "triangle-alert",
2432
+ "info",
2433
+ "siren",
2434
+ "heart",
2435
+ "heart-pulse",
2436
+ "thumbs-up",
2437
+ "lightbulb",
2438
+ "sparkles",
2439
+ "zap",
2440
+ "bot",
2441
+ "briefcase",
2442
+ "store",
2443
+ "handshake",
2444
+ "dollar-sign",
2445
+ "scale",
2446
+ "map-pin",
2447
+ "globe",
2448
+ "route",
2449
+ "server",
2450
+ "trash"
2451
+ ];
2452
+ DASHBOARD_ICON_NAME_SET = new Set(DASHBOARD_ICON_NAMES);
2333
2453
  }
2334
2454
  });
2335
2455
 
@@ -2374,6 +2494,13 @@ var init_embedSession2 = __esm({
2374
2494
  }
2375
2495
  });
2376
2496
 
2497
+ // node_modules/@speakai/shared/dist/interfaces/design.js
2498
+ var init_design = __esm({
2499
+ "node_modules/@speakai/shared/dist/interfaces/design.js"() {
2500
+ "use strict";
2501
+ }
2502
+ });
2503
+
2377
2504
  // node_modules/@speakai/shared/dist/interfaces/index.js
2378
2505
  var init_interfaces = __esm({
2379
2506
  "node_modules/@speakai/shared/dist/interfaces/index.js"() {
@@ -2402,6 +2529,7 @@ var init_interfaces = __esm({
2402
2529
  init_pushNotification2();
2403
2530
  init_notificationEvent2();
2404
2531
  init_embedSession2();
2532
+ init_design();
2405
2533
  }
2406
2534
  });
2407
2535
 
@@ -2944,7 +3072,7 @@ var init_interfaces2 = __esm({
2944
3072
  });
2945
3073
 
2946
3074
  // node_modules/@speakai/shared/dist/llm/registry.js
2947
- var MAX_OUTPUT_TOKENS, GEMINI_MAX_OUTPUT_TOKENS, OPENROUTER_MAX_OUTPUT_TOKENS, NO_CAPS, GPT_LEGACY, GPT_5, CLAUDE_LEGACY, CLAUDE_4, CLAUDE_ADAPTIVE, GEMINI_LEGACY, GEMINI_THINKING, MODEL_REGISTRY, OPENAI_DEFAULT_MODEL, CLAUDE_DEFAULT_MODEL, GEMINI_DEFAULT_MODEL, OPENROUTER_DEFAULT_MODEL, FREE_TIER_MODEL, BY_ID;
3075
+ var MAX_OUTPUT_TOKENS, GEMINI_MAX_OUTPUT_TOKENS, OPENROUTER_MAX_OUTPUT_TOKENS, NO_CAPS, GPT_LEGACY, GPT_5, CLAUDE_LEGACY, CLAUDE_4, CLAUDE_ADAPTIVE, CLAUDE_ADAPTIVE_NO_FORCED_TOOL, GEMINI_LEGACY, GEMINI_THINKING, MODEL_REGISTRY, OPENAI_DEFAULT_MODEL, CLAUDE_DEFAULT_MODEL, GEMINI_DEFAULT_MODEL, OPENROUTER_DEFAULT_MODEL, FREE_TIER_MODEL, BY_ID;
2948
3076
  var init_registry = __esm({
2949
3077
  "node_modules/@speakai/shared/dist/llm/registry.js"() {
2950
3078
  "use strict";
@@ -2957,13 +3085,15 @@ var init_registry = __esm({
2957
3085
  adaptiveThinking: false,
2958
3086
  vision: false,
2959
3087
  customTemperature: true,
2960
- nativeAudioVideo: false
3088
+ nativeAudioVideo: false,
3089
+ forcedToolChoice: true
2961
3090
  };
2962
3091
  GPT_LEGACY = { ...NO_CAPS };
2963
3092
  GPT_5 = { ...NO_CAPS, thinking: true, customTemperature: false };
2964
3093
  CLAUDE_LEGACY = { ...NO_CAPS };
2965
3094
  CLAUDE_4 = { ...NO_CAPS, thinking: true };
2966
3095
  CLAUDE_ADAPTIVE = { ...NO_CAPS, thinking: true, adaptiveThinking: true, customTemperature: false };
3096
+ CLAUDE_ADAPTIVE_NO_FORCED_TOOL = { ...CLAUDE_ADAPTIVE, forcedToolChoice: false };
2967
3097
  GEMINI_LEGACY = { ...NO_CAPS, nativeAudioVideo: true };
2968
3098
  GEMINI_THINKING = { ...NO_CAPS, thinking: true, nativeAudioVideo: true };
2969
3099
  MODEL_REGISTRY = [
@@ -2979,6 +3109,7 @@ var init_registry = __esm({
2979
3109
  premium: false,
2980
3110
  pricing: { inputPerMillion: 0.5, outputPerMillion: 1.5, provider: LLMProvider.OPENAI },
2981
3111
  maxOutputTokens: MAX_OUTPUT_TOKENS,
3112
+ contextWindow: 16385,
2982
3113
  capabilities: GPT_LEGACY,
2983
3114
  byokProvider: "openai"
2984
3115
  },
@@ -2994,6 +3125,7 @@ var init_registry = __esm({
2994
3125
  premium: false,
2995
3126
  pricing: { inputPerMillion: 3, outputPerMillion: 4, provider: LLMProvider.OPENAI },
2996
3127
  maxOutputTokens: MAX_OUTPUT_TOKENS,
3128
+ contextWindow: 16385,
2997
3129
  capabilities: GPT_LEGACY,
2998
3130
  byokProvider: "openai"
2999
3131
  },
@@ -3009,6 +3141,7 @@ var init_registry = __esm({
3009
3141
  premium: false,
3010
3142
  pricing: { inputPerMillion: 0.5, outputPerMillion: 1.5, provider: LLMProvider.OPENAI },
3011
3143
  maxOutputTokens: MAX_OUTPUT_TOKENS,
3144
+ contextWindow: 16385,
3012
3145
  capabilities: GPT_LEGACY,
3013
3146
  byokProvider: "openai"
3014
3147
  },
@@ -3024,6 +3157,7 @@ var init_registry = __esm({
3024
3157
  premium: false,
3025
3158
  pricing: { inputPerMillion: 30, outputPerMillion: 60, provider: LLMProvider.OPENAI },
3026
3159
  maxOutputTokens: MAX_OUTPUT_TOKENS,
3160
+ contextWindow: 8192,
3027
3161
  capabilities: GPT_LEGACY,
3028
3162
  byokProvider: "openai"
3029
3163
  },
@@ -3039,6 +3173,7 @@ var init_registry = __esm({
3039
3173
  premium: false,
3040
3174
  pricing: { inputPerMillion: 10, outputPerMillion: 30, provider: LLMProvider.OPENAI },
3041
3175
  maxOutputTokens: MAX_OUTPUT_TOKENS,
3176
+ contextWindow: 128e3,
3042
3177
  capabilities: GPT_LEGACY,
3043
3178
  byokProvider: "openai"
3044
3179
  },
@@ -3054,6 +3189,7 @@ var init_registry = __esm({
3054
3189
  premium: false,
3055
3190
  pricing: { inputPerMillion: 10, outputPerMillion: 30, provider: LLMProvider.OPENAI },
3056
3191
  maxOutputTokens: MAX_OUTPUT_TOKENS,
3192
+ contextWindow: 128e3,
3057
3193
  capabilities: GPT_LEGACY,
3058
3194
  byokProvider: "openai"
3059
3195
  },
@@ -3069,6 +3205,7 @@ var init_registry = __esm({
3069
3205
  premium: false,
3070
3206
  pricing: { inputPerMillion: 5, outputPerMillion: 15, provider: LLMProvider.OPENAI },
3071
3207
  maxOutputTokens: MAX_OUTPUT_TOKENS,
3208
+ contextWindow: 128e3,
3072
3209
  capabilities: GPT_LEGACY,
3073
3210
  byokProvider: "openai"
3074
3211
  },
@@ -3089,6 +3226,7 @@ var init_registry = __esm({
3089
3226
  provider: LLMProvider.OPENAI
3090
3227
  },
3091
3228
  maxOutputTokens: MAX_OUTPUT_TOKENS,
3229
+ contextWindow: 128e3,
3092
3230
  capabilities: GPT_LEGACY,
3093
3231
  byokProvider: "openai"
3094
3232
  },
@@ -3109,6 +3247,7 @@ var init_registry = __esm({
3109
3247
  provider: LLMProvider.OPENAI
3110
3248
  },
3111
3249
  maxOutputTokens: MAX_OUTPUT_TOKENS,
3250
+ contextWindow: 128e3,
3112
3251
  capabilities: GPT_LEGACY,
3113
3252
  byokProvider: "openai"
3114
3253
  },
@@ -3129,6 +3268,7 @@ var init_registry = __esm({
3129
3268
  provider: LLMProvider.OPENAI
3130
3269
  },
3131
3270
  maxOutputTokens: MAX_OUTPUT_TOKENS,
3271
+ contextWindow: 128e3,
3132
3272
  capabilities: GPT_LEGACY,
3133
3273
  byokProvider: "openai"
3134
3274
  },
@@ -3149,6 +3289,7 @@ var init_registry = __esm({
3149
3289
  provider: LLMProvider.OPENAI
3150
3290
  },
3151
3291
  maxOutputTokens: MAX_OUTPUT_TOKENS,
3292
+ contextWindow: 128e3,
3152
3293
  capabilities: GPT_LEGACY,
3153
3294
  byokProvider: "openai"
3154
3295
  },
@@ -3169,6 +3310,7 @@ var init_registry = __esm({
3169
3310
  provider: LLMProvider.OPENAI
3170
3311
  },
3171
3312
  maxOutputTokens: MAX_OUTPUT_TOKENS,
3313
+ contextWindow: 1047576,
3172
3314
  capabilities: GPT_LEGACY,
3173
3315
  byokProvider: "openai"
3174
3316
  },
@@ -3189,6 +3331,7 @@ var init_registry = __esm({
3189
3331
  provider: LLMProvider.OPENAI
3190
3332
  },
3191
3333
  maxOutputTokens: MAX_OUTPUT_TOKENS,
3334
+ contextWindow: 272e3,
3192
3335
  capabilities: GPT_5,
3193
3336
  byokProvider: "openai"
3194
3337
  },
@@ -3209,6 +3352,7 @@ var init_registry = __esm({
3209
3352
  provider: LLMProvider.OPENAI
3210
3353
  },
3211
3354
  maxOutputTokens: MAX_OUTPUT_TOKENS,
3355
+ contextWindow: 272e3,
3212
3356
  capabilities: GPT_5,
3213
3357
  byokProvider: "openai"
3214
3358
  },
@@ -3233,6 +3377,7 @@ var init_registry = __esm({
3233
3377
  provider: LLMProvider.OPENAI
3234
3378
  },
3235
3379
  maxOutputTokens: MAX_OUTPUT_TOKENS,
3380
+ contextWindow: 922e3,
3236
3381
  capabilities: GPT_5,
3237
3382
  byokProvider: "openai"
3238
3383
  },
@@ -3253,6 +3398,7 @@ var init_registry = __esm({
3253
3398
  provider: LLMProvider.OPENAI
3254
3399
  },
3255
3400
  maxOutputTokens: MAX_OUTPUT_TOKENS,
3401
+ contextWindow: 272e3,
3256
3402
  capabilities: GPT_5,
3257
3403
  byokProvider: "openai"
3258
3404
  },
@@ -3273,6 +3419,7 @@ var init_registry = __esm({
3273
3419
  provider: LLMProvider.OPENAI
3274
3420
  },
3275
3421
  maxOutputTokens: MAX_OUTPUT_TOKENS,
3422
+ contextWindow: 272e3,
3276
3423
  capabilities: GPT_5,
3277
3424
  byokProvider: "openai"
3278
3425
  },
@@ -3281,7 +3428,7 @@ var init_registry = __esm({
3281
3428
  label: "GPT-5.5 Thinking",
3282
3429
  provider: LLMProvider.OPENAI,
3283
3430
  family: "gpt",
3284
- status: "deprecated",
3431
+ status: "retired",
3285
3432
  replacedBy: LLMModels.GPT_5_5,
3286
3433
  offeredInChat: false,
3287
3434
  offeredInVoice: false,
@@ -3297,6 +3444,7 @@ var init_registry = __esm({
3297
3444
  provider: LLMProvider.OPENAI
3298
3445
  },
3299
3446
  maxOutputTokens: MAX_OUTPUT_TOKENS,
3447
+ contextWindow: 922e3,
3300
3448
  capabilities: GPT_5,
3301
3449
  byokProvider: "openai"
3302
3450
  },
@@ -3311,12 +3459,17 @@ var init_registry = __esm({
3311
3459
  offeredInVoice: false,
3312
3460
  premium: true,
3313
3461
  pricing: {
3314
- inputPerMillion: 1,
3315
- outputPerMillion: 6,
3316
- cachedInputPerMillion: 0.1,
3462
+ inputPerMillion: 0.2,
3463
+ outputPerMillion: 1.2,
3464
+ cachedInputPerMillion: 0.02,
3465
+ longContextThresholdTokens: 272e3,
3466
+ inputPerMillionLong: 0.4,
3467
+ outputPerMillionLong: 1.8,
3468
+ cachedInputPerMillionLong: 0.04,
3317
3469
  provider: LLMProvider.OPENAI
3318
3470
  },
3319
3471
  maxOutputTokens: MAX_OUTPUT_TOKENS,
3472
+ contextWindow: 922e3,
3320
3473
  capabilities: GPT_5,
3321
3474
  byokProvider: "openai"
3322
3475
  },
@@ -3326,8 +3479,7 @@ var init_registry = __esm({
3326
3479
  provider: LLMProvider.OPENAI,
3327
3480
  family: "gpt",
3328
3481
  status: "live",
3329
- offeredInChat: true,
3330
- chatOrder: 7,
3482
+ offeredInChat: false,
3331
3483
  offeredInVoice: true,
3332
3484
  voiceReasoning: "none",
3333
3485
  premium: true,
@@ -3338,6 +3490,7 @@ var init_registry = __esm({
3338
3490
  provider: LLMProvider.OPENAI
3339
3491
  },
3340
3492
  maxOutputTokens: MAX_OUTPUT_TOKENS,
3493
+ contextWindow: 272e3,
3341
3494
  capabilities: GPT_5,
3342
3495
  byokProvider: "openai",
3343
3496
  openRouterSlug: "openai/gpt-5.4-mini"
@@ -3348,8 +3501,7 @@ var init_registry = __esm({
3348
3501
  provider: LLMProvider.OPENAI,
3349
3502
  family: "gpt",
3350
3503
  status: "live",
3351
- offeredInChat: true,
3352
- chatOrder: 6,
3504
+ offeredInChat: false,
3353
3505
  offeredInVoice: true,
3354
3506
  voiceReasoning: "none",
3355
3507
  premium: true,
@@ -3364,6 +3516,7 @@ var init_registry = __esm({
3364
3516
  provider: LLMProvider.OPENAI
3365
3517
  },
3366
3518
  maxOutputTokens: MAX_OUTPUT_TOKENS,
3519
+ contextWindow: 922e3,
3367
3520
  capabilities: GPT_5,
3368
3521
  byokProvider: "openai",
3369
3522
  openRouterSlug: "openai/gpt-5.5"
@@ -3373,19 +3526,23 @@ var init_registry = __esm({
3373
3526
  label: "GPT-5.6 Sol",
3374
3527
  provider: LLMProvider.OPENAI,
3375
3528
  family: "gpt",
3376
- status: "live",
3377
- offeredInChat: true,
3378
- chatOrder: 5,
3379
- offeredInVoice: true,
3380
- voiceReasoning: "none",
3529
+ status: "retired",
3530
+ replacedBy: LLMModels.GPT_6_1_TERRA,
3531
+ offeredInChat: false,
3532
+ offeredInVoice: false,
3381
3533
  premium: true,
3382
3534
  pricing: {
3383
- inputPerMillion: 5,
3384
- outputPerMillion: 30,
3385
- cachedInputPerMillion: 0.5,
3535
+ inputPerMillion: 4,
3536
+ outputPerMillion: 20,
3537
+ cachedInputPerMillion: 0.4,
3538
+ longContextThresholdTokens: 272e3,
3539
+ inputPerMillionLong: 8,
3540
+ outputPerMillionLong: 30,
3541
+ cachedInputPerMillionLong: 0.8,
3386
3542
  provider: LLMProvider.OPENAI
3387
3543
  },
3388
3544
  maxOutputTokens: MAX_OUTPUT_TOKENS,
3545
+ contextWindow: 922e3,
3389
3546
  capabilities: GPT_5,
3390
3547
  byokProvider: "openai",
3391
3548
  openRouterSlug: "openai/gpt-5.6-sol"
@@ -3396,22 +3553,129 @@ var init_registry = __esm({
3396
3553
  provider: LLMProvider.OPENAI,
3397
3554
  family: "gpt",
3398
3555
  status: "live",
3399
- offeredInChat: true,
3400
- chatOrder: 4,
3556
+ offeredInChat: false,
3401
3557
  offeredInVoice: true,
3402
3558
  voiceReasoning: "none",
3403
3559
  premium: true,
3404
3560
  pricing: {
3405
- inputPerMillion: 2.5,
3406
- outputPerMillion: 15,
3407
- cachedInputPerMillion: 0.25,
3561
+ inputPerMillion: 2,
3562
+ outputPerMillion: 12,
3563
+ cachedInputPerMillion: 0.2,
3564
+ longContextThresholdTokens: 272e3,
3565
+ inputPerMillionLong: 4,
3566
+ outputPerMillionLong: 18,
3567
+ cachedInputPerMillionLong: 0.4,
3408
3568
  provider: LLMProvider.OPENAI
3409
3569
  },
3410
3570
  maxOutputTokens: MAX_OUTPUT_TOKENS,
3571
+ contextWindow: 922e3,
3411
3572
  capabilities: GPT_5,
3412
3573
  byokProvider: "openai",
3413
3574
  openRouterSlug: "openai/gpt-5.6-terra"
3414
3575
  },
3576
+ {
3577
+ id: LLMModels.GPT_6_ASTRA,
3578
+ label: "GPT-6 Astra",
3579
+ provider: LLMProvider.OPENAI,
3580
+ family: "gpt",
3581
+ status: "live",
3582
+ offeredInChat: false,
3583
+ offeredInVoice: false,
3584
+ premium: true,
3585
+ pricing: {
3586
+ inputPerMillion: 10,
3587
+ outputPerMillion: 50,
3588
+ cachedInputPerMillion: 1,
3589
+ longContextThresholdTokens: 272e3,
3590
+ inputPerMillionLong: 20,
3591
+ outputPerMillionLong: 75,
3592
+ cachedInputPerMillionLong: 2,
3593
+ provider: LLMProvider.OPENAI
3594
+ },
3595
+ maxOutputTokens: MAX_OUTPUT_TOKENS,
3596
+ contextWindow: 922e3,
3597
+ capabilities: GPT_5,
3598
+ byokProvider: "openai",
3599
+ openRouterSlug: "openai/gpt-6-astra"
3600
+ },
3601
+ {
3602
+ id: LLMModels.GPT_6_1_SOL,
3603
+ label: "GPT-6.1 Sol",
3604
+ provider: LLMProvider.OPENAI,
3605
+ family: "gpt",
3606
+ status: "live",
3607
+ offeredInChat: true,
3608
+ chatOrder: 5,
3609
+ offeredInVoice: false,
3610
+ premium: true,
3611
+ pricing: {
3612
+ inputPerMillion: 2,
3613
+ outputPerMillion: 10,
3614
+ cachedInputPerMillion: 0.1,
3615
+ longContextThresholdTokens: 272e3,
3616
+ inputPerMillionLong: 4,
3617
+ outputPerMillionLong: 15,
3618
+ cachedInputPerMillionLong: 0.2,
3619
+ provider: LLMProvider.OPENAI
3620
+ },
3621
+ maxOutputTokens: MAX_OUTPUT_TOKENS,
3622
+ contextWindow: 922e3,
3623
+ capabilities: GPT_5,
3624
+ byokProvider: "openai",
3625
+ openRouterSlug: "openai/gpt-6.1-sol"
3626
+ },
3627
+ {
3628
+ id: LLMModels.GPT_6_1_TERRA,
3629
+ label: "GPT-6.1 Terra",
3630
+ provider: LLMProvider.OPENAI,
3631
+ family: "gpt",
3632
+ status: "live",
3633
+ offeredInChat: true,
3634
+ chatOrder: 6,
3635
+ offeredInVoice: true,
3636
+ voiceReasoning: "none",
3637
+ premium: true,
3638
+ pricing: {
3639
+ inputPerMillion: 1,
3640
+ outputPerMillion: 5,
3641
+ cachedInputPerMillion: 0.05,
3642
+ longContextThresholdTokens: 272e3,
3643
+ inputPerMillionLong: 2,
3644
+ outputPerMillionLong: 7.5,
3645
+ cachedInputPerMillionLong: 0.1,
3646
+ provider: LLMProvider.OPENAI
3647
+ },
3648
+ maxOutputTokens: MAX_OUTPUT_TOKENS,
3649
+ contextWindow: 922e3,
3650
+ capabilities: GPT_5,
3651
+ byokProvider: "openai",
3652
+ openRouterSlug: "openai/gpt-6.1-terra"
3653
+ },
3654
+ {
3655
+ id: LLMModels.GPT_6_LUNA,
3656
+ label: "GPT-6 Luna",
3657
+ provider: LLMProvider.OPENAI,
3658
+ family: "gpt",
3659
+ status: "live",
3660
+ offeredInChat: false,
3661
+ offeredInVoice: false,
3662
+ premium: true,
3663
+ pricing: {
3664
+ inputPerMillion: 0.1,
3665
+ outputPerMillion: 0.5,
3666
+ cachedInputPerMillion: 0.01,
3667
+ longContextThresholdTokens: 272e3,
3668
+ inputPerMillionLong: 0.2,
3669
+ outputPerMillionLong: 0.75,
3670
+ cachedInputPerMillionLong: 0.02,
3671
+ provider: LLMProvider.OPENAI
3672
+ },
3673
+ maxOutputTokens: MAX_OUTPUT_TOKENS,
3674
+ contextWindow: 922e3,
3675
+ capabilities: GPT_5,
3676
+ byokProvider: "openai",
3677
+ openRouterSlug: "openai/gpt-6-luna"
3678
+ },
3415
3679
  {
3416
3680
  id: LLMModels.CLAUDE_2,
3417
3681
  label: "Claude 2",
@@ -3424,6 +3688,7 @@ var init_registry = __esm({
3424
3688
  premium: false,
3425
3689
  pricing: { inputPerMillion: 8, outputPerMillion: 24, provider: LLMProvider.ANTHROPIC },
3426
3690
  maxOutputTokens: MAX_OUTPUT_TOKENS,
3691
+ contextWindow: 1e5,
3427
3692
  capabilities: CLAUDE_LEGACY,
3428
3693
  byokProvider: "anthropic"
3429
3694
  },
@@ -3444,6 +3709,7 @@ var init_registry = __esm({
3444
3709
  provider: LLMProvider.ANTHROPIC
3445
3710
  },
3446
3711
  maxOutputTokens: MAX_OUTPUT_TOKENS,
3712
+ contextWindow: 2e5,
3447
3713
  capabilities: CLAUDE_LEGACY,
3448
3714
  byokProvider: "anthropic"
3449
3715
  },
@@ -3464,6 +3730,7 @@ var init_registry = __esm({
3464
3730
  provider: LLMProvider.ANTHROPIC
3465
3731
  },
3466
3732
  maxOutputTokens: MAX_OUTPUT_TOKENS,
3733
+ contextWindow: 2e5,
3467
3734
  capabilities: CLAUDE_LEGACY,
3468
3735
  byokProvider: "anthropic"
3469
3736
  },
@@ -3484,6 +3751,7 @@ var init_registry = __esm({
3484
3751
  provider: LLMProvider.ANTHROPIC
3485
3752
  },
3486
3753
  maxOutputTokens: MAX_OUTPUT_TOKENS,
3754
+ contextWindow: 2e5,
3487
3755
  capabilities: CLAUDE_LEGACY,
3488
3756
  byokProvider: "anthropic"
3489
3757
  },
@@ -3504,7 +3772,8 @@ var init_registry = __esm({
3504
3772
  provider: LLMProvider.ANTHROPIC
3505
3773
  },
3506
3774
  maxOutputTokens: MAX_OUTPUT_TOKENS,
3507
- capabilities: { ...CLAUDE_4, thinking: false },
3775
+ contextWindow: 2e5,
3776
+ capabilities: CLAUDE_4,
3508
3777
  byokProvider: "anthropic"
3509
3778
  },
3510
3779
  {
@@ -3513,8 +3782,7 @@ var init_registry = __esm({
3513
3782
  provider: LLMProvider.ANTHROPIC,
3514
3783
  family: "claude",
3515
3784
  status: "live",
3516
- offeredInChat: true,
3517
- chatOrder: 10,
3785
+ offeredInChat: false,
3518
3786
  offeredInVoice: false,
3519
3787
  premium: true,
3520
3788
  pricing: {
@@ -3524,7 +3792,8 @@ var init_registry = __esm({
3524
3792
  provider: LLMProvider.ANTHROPIC
3525
3793
  },
3526
3794
  maxOutputTokens: MAX_OUTPUT_TOKENS,
3527
- capabilities: CLAUDE_4,
3795
+ contextWindow: 1e6,
3796
+ capabilities: CLAUDE_ADAPTIVE,
3528
3797
  byokProvider: "anthropic",
3529
3798
  openRouterSlug: "anthropic/claude-sonnet-4.6"
3530
3799
  },
@@ -3534,17 +3803,17 @@ var init_registry = __esm({
3534
3803
  provider: LLMProvider.ANTHROPIC,
3535
3804
  family: "claude",
3536
3805
  status: "live",
3537
- offeredInChat: true,
3538
- chatOrder: 8,
3806
+ offeredInChat: false,
3539
3807
  offeredInVoice: false,
3540
3808
  premium: true,
3541
3809
  pricing: {
3542
- inputPerMillion: 3,
3543
- outputPerMillion: 15,
3544
- cachedInputPerMillion: 0.3,
3810
+ inputPerMillion: 2,
3811
+ outputPerMillion: 10,
3812
+ cachedInputPerMillion: 0.2,
3545
3813
  provider: LLMProvider.ANTHROPIC
3546
3814
  },
3547
3815
  maxOutputTokens: MAX_OUTPUT_TOKENS,
3816
+ contextWindow: 1e6,
3548
3817
  capabilities: CLAUDE_ADAPTIVE,
3549
3818
  byokProvider: "anthropic",
3550
3819
  openRouterSlug: "anthropic/claude-sonnet-5"
@@ -3555,8 +3824,7 @@ var init_registry = __esm({
3555
3824
  provider: LLMProvider.ANTHROPIC,
3556
3825
  family: "claude",
3557
3826
  status: "live",
3558
- offeredInChat: true,
3559
- chatOrder: 9,
3827
+ offeredInChat: false,
3560
3828
  offeredInVoice: false,
3561
3829
  premium: true,
3562
3830
  pricing: {
@@ -3566,10 +3834,103 @@ var init_registry = __esm({
3566
3834
  provider: LLMProvider.ANTHROPIC
3567
3835
  },
3568
3836
  maxOutputTokens: MAX_OUTPUT_TOKENS,
3837
+ contextWindow: 1e6,
3569
3838
  capabilities: CLAUDE_ADAPTIVE,
3570
3839
  byokProvider: "anthropic",
3571
3840
  openRouterSlug: "anthropic/claude-opus-4.8"
3572
3841
  },
3842
+ {
3843
+ id: LLMModels.CLAUDE_SONNET_5_5,
3844
+ label: "Claude Sonnet 5.5",
3845
+ provider: LLMProvider.ANTHROPIC,
3846
+ family: "claude",
3847
+ status: "live",
3848
+ offeredInChat: true,
3849
+ chatOrder: 2,
3850
+ offeredInVoice: false,
3851
+ premium: true,
3852
+ pricing: {
3853
+ inputPerMillion: 2,
3854
+ outputPerMillion: 10,
3855
+ cachedInputPerMillion: 0.2,
3856
+ provider: LLMProvider.ANTHROPIC
3857
+ },
3858
+ maxOutputTokens: MAX_OUTPUT_TOKENS,
3859
+ contextWindow: 1e6,
3860
+ capabilities: CLAUDE_ADAPTIVE_NO_FORCED_TOOL,
3861
+ byokProvider: "anthropic",
3862
+ openRouterSlug: "anthropic/claude-sonnet-5.5"
3863
+ },
3864
+ {
3865
+ id: LLMModels.CLAUDE_OPUS_5_5,
3866
+ label: "Claude Opus 5.5",
3867
+ provider: LLMProvider.ANTHROPIC,
3868
+ family: "claude",
3869
+ status: "live",
3870
+ offeredInChat: true,
3871
+ chatOrder: 3,
3872
+ offeredInVoice: false,
3873
+ premium: true,
3874
+ pricing: {
3875
+ inputPerMillion: 4,
3876
+ outputPerMillion: 20,
3877
+ cachedInputPerMillion: 0.2,
3878
+ provider: LLMProvider.ANTHROPIC
3879
+ },
3880
+ maxOutputTokens: MAX_OUTPUT_TOKENS,
3881
+ contextWindow: 1e6,
3882
+ capabilities: CLAUDE_ADAPTIVE_NO_FORCED_TOOL,
3883
+ byokProvider: "anthropic",
3884
+ openRouterSlug: "anthropic/claude-opus-5.5"
3885
+ },
3886
+ {
3887
+ id: LLMModels.CLAUDE_HAIKU_5_5,
3888
+ label: "Claude Haiku 5.5",
3889
+ provider: LLMProvider.ANTHROPIC,
3890
+ family: "claude",
3891
+ status: "live",
3892
+ offeredInChat: true,
3893
+ chatOrder: 4,
3894
+ offeredInVoice: false,
3895
+ premium: true,
3896
+ pricing: {
3897
+ inputPerMillion: 0.1,
3898
+ outputPerMillion: 0.5,
3899
+ cachedInputPerMillion: 0.01,
3900
+ // Anthropic prices a whole request at the higher rate once its prompt passes 100k tokens.
3901
+ longContextThresholdTokens: 1e5,
3902
+ inputPerMillionLong: 0.5,
3903
+ outputPerMillionLong: 2.5,
3904
+ cachedInputPerMillionLong: 0.05,
3905
+ provider: LLMProvider.ANTHROPIC
3906
+ },
3907
+ maxOutputTokens: MAX_OUTPUT_TOKENS,
3908
+ contextWindow: 1e6,
3909
+ capabilities: CLAUDE_ADAPTIVE,
3910
+ byokProvider: "anthropic",
3911
+ openRouterSlug: "anthropic/claude-haiku-5.5"
3912
+ },
3913
+ {
3914
+ id: LLMModels.CLAUDE_FABLE_5_1,
3915
+ label: "Claude Fable 5.1",
3916
+ provider: LLMProvider.ANTHROPIC,
3917
+ family: "claude",
3918
+ status: "live",
3919
+ offeredInChat: false,
3920
+ offeredInVoice: false,
3921
+ premium: true,
3922
+ pricing: {
3923
+ inputPerMillion: 10,
3924
+ outputPerMillion: 50,
3925
+ cachedInputPerMillion: 0.25,
3926
+ provider: LLMProvider.ANTHROPIC
3927
+ },
3928
+ maxOutputTokens: MAX_OUTPUT_TOKENS,
3929
+ contextWindow: 1e6,
3930
+ capabilities: CLAUDE_ADAPTIVE_NO_FORCED_TOOL,
3931
+ byokProvider: "anthropic",
3932
+ openRouterSlug: "anthropic/claude-fable-5.1"
3933
+ },
3573
3934
  {
3574
3935
  id: LLMModels.GEMINI_1_5_PRO,
3575
3936
  label: "Gemini 1.5 Pro",
@@ -3582,6 +3943,7 @@ var init_registry = __esm({
3582
3943
  premium: false,
3583
3944
  pricing: { inputPerMillion: 1.25, outputPerMillion: 5, provider: LLMProvider.GOOGLE },
3584
3945
  maxOutputTokens: MAX_OUTPUT_TOKENS,
3946
+ contextWindow: 2097152,
3585
3947
  capabilities: GEMINI_LEGACY
3586
3948
  },
3587
3949
  {
@@ -3601,6 +3963,7 @@ var init_registry = __esm({
3601
3963
  provider: LLMProvider.GOOGLE
3602
3964
  },
3603
3965
  maxOutputTokens: MAX_OUTPUT_TOKENS,
3966
+ contextWindow: 1048576,
3604
3967
  capabilities: GEMINI_LEGACY
3605
3968
  },
3606
3969
  {
@@ -3620,6 +3983,7 @@ var init_registry = __esm({
3620
3983
  provider: LLMProvider.GOOGLE
3621
3984
  },
3622
3985
  maxOutputTokens: MAX_OUTPUT_TOKENS,
3986
+ contextWindow: 1048576,
3623
3987
  capabilities: GEMINI_LEGACY
3624
3988
  },
3625
3989
  {
@@ -3641,6 +4005,7 @@ var init_registry = __esm({
3641
4005
  },
3642
4006
  modality: { audioPerMillion: 1, videoPerMillion: 0.3 },
3643
4007
  maxOutputTokens: GEMINI_MAX_OUTPUT_TOKENS,
4008
+ contextWindow: 1048576,
3644
4009
  capabilities: GEMINI_THINKING
3645
4010
  },
3646
4011
  {
@@ -3657,13 +4022,16 @@ var init_registry = __esm({
3657
4022
  pricing: {
3658
4023
  inputPerMillion: 1.25,
3659
4024
  outputPerMillion: 10,
4025
+ cachedInputPerMillion: 0.125,
3660
4026
  longContextThresholdTokens: 2e5,
3661
4027
  inputPerMillionLong: 2.5,
3662
4028
  outputPerMillionLong: 15,
4029
+ cachedInputPerMillionLong: 0.25,
3663
4030
  provider: LLMProvider.GOOGLE
3664
4031
  },
3665
4032
  modality: { audioPerMillion: 1.25, videoPerMillion: 1.25 },
3666
4033
  maxOutputTokens: MAX_OUTPUT_TOKENS,
4034
+ contextWindow: 1048576,
3667
4035
  capabilities: GEMINI_THINKING
3668
4036
  },
3669
4037
  {
@@ -3685,6 +4053,7 @@ var init_registry = __esm({
3685
4053
  },
3686
4054
  modality: { audioPerMillion: 0.3, videoPerMillion: 0.1 },
3687
4055
  maxOutputTokens: MAX_OUTPUT_TOKENS,
4056
+ contextWindow: 1048576,
3688
4057
  capabilities: GEMINI_THINKING
3689
4058
  },
3690
4059
  {
@@ -3697,9 +4066,10 @@ var init_registry = __esm({
3697
4066
  offeredInChat: false,
3698
4067
  offeredInVoice: false,
3699
4068
  premium: false,
3700
- pricing: { inputPerMillion: 0.25, outputPerMillion: 1.5, provider: LLMProvider.GOOGLE },
4069
+ pricing: { inputPerMillion: 0.25, outputPerMillion: 1.5, cachedInputPerMillion: 0.025, provider: LLMProvider.GOOGLE },
3701
4070
  modality: { audioPerMillion: 0.5, videoPerMillion: 0.25 },
3702
4071
  maxOutputTokens: MAX_OUTPUT_TOKENS,
4072
+ contextWindow: 1048576,
3703
4073
  capabilities: GEMINI_THINKING
3704
4074
  },
3705
4075
  {
@@ -3715,12 +4085,15 @@ var init_registry = __esm({
3715
4085
  pricing: {
3716
4086
  inputPerMillion: 2,
3717
4087
  outputPerMillion: 12,
4088
+ cachedInputPerMillion: 0.2,
3718
4089
  longContextThresholdTokens: 2e5,
3719
4090
  inputPerMillionLong: 4,
3720
4091
  outputPerMillionLong: 18,
4092
+ cachedInputPerMillionLong: 0.4,
3721
4093
  provider: LLMProvider.GOOGLE
3722
4094
  },
3723
4095
  maxOutputTokens: MAX_OUTPUT_TOKENS,
4096
+ contextWindow: 1048576,
3724
4097
  capabilities: GEMINI_THINKING
3725
4098
  },
3726
4099
  {
@@ -3729,8 +4102,7 @@ var init_registry = __esm({
3729
4102
  provider: LLMProvider.GOOGLE,
3730
4103
  family: "gemini",
3731
4104
  status: "live",
3732
- offeredInChat: true,
3733
- chatOrder: 1,
4105
+ offeredInChat: false,
3734
4106
  offeredInVoice: false,
3735
4107
  premium: true,
3736
4108
  pricing: {
@@ -3741,6 +4113,7 @@ var init_registry = __esm({
3741
4113
  },
3742
4114
  modality: { audioPerMillion: 1, videoPerMillion: 0.5 },
3743
4115
  maxOutputTokens: GEMINI_MAX_OUTPUT_TOKENS,
4116
+ contextWindow: 1048576,
3744
4117
  capabilities: GEMINI_THINKING,
3745
4118
  openRouterSlug: "google/gemini-3-flash-preview"
3746
4119
  },
@@ -3750,8 +4123,7 @@ var init_registry = __esm({
3750
4123
  provider: LLMProvider.GOOGLE,
3751
4124
  family: "gemini",
3752
4125
  status: "live",
3753
- offeredInChat: true,
3754
- chatOrder: 2,
4126
+ offeredInChat: false,
3755
4127
  offeredInVoice: true,
3756
4128
  voiceReasoning: "minimal",
3757
4129
  premium: true,
@@ -3761,8 +4133,9 @@ var init_registry = __esm({
3761
4133
  cachedInputPerMillion: 0.15,
3762
4134
  provider: LLMProvider.GOOGLE
3763
4135
  },
3764
- modality: { audioPerMillion: 3, videoPerMillion: 1.5 },
4136
+ modality: { audioPerMillion: 1.5, videoPerMillion: 1.5 },
3765
4137
  maxOutputTokens: GEMINI_MAX_OUTPUT_TOKENS,
4138
+ contextWindow: 1048576,
3766
4139
  capabilities: GEMINI_THINKING,
3767
4140
  openRouterSlug: "google/gemini-3.5-flash"
3768
4141
  },
@@ -3772,8 +4145,7 @@ var init_registry = __esm({
3772
4145
  provider: LLMProvider.GOOGLE,
3773
4146
  family: "gemini",
3774
4147
  status: "live",
3775
- offeredInChat: true,
3776
- chatOrder: 0,
4148
+ offeredInChat: false,
3777
4149
  offeredInVoice: false,
3778
4150
  premium: false,
3779
4151
  pricing: {
@@ -3782,8 +4154,9 @@ var init_registry = __esm({
3782
4154
  cachedInputPerMillion: 0.075,
3783
4155
  provider: LLMProvider.GOOGLE
3784
4156
  },
3785
- modality: { audioPerMillion: 1.5, videoPerMillion: 0.75 },
4157
+ modality: { audioPerMillion: 0.75, videoPerMillion: 0.75 },
3786
4158
  maxOutputTokens: GEMINI_MAX_OUTPUT_TOKENS,
4159
+ contextWindow: 1048576,
3787
4160
  capabilities: GEMINI_THINKING,
3788
4161
  openRouterSlug: "google/gemini-3.7-flash"
3789
4162
  },
@@ -3794,17 +4167,18 @@ var init_registry = __esm({
3794
4167
  family: "gemini",
3795
4168
  status: "live",
3796
4169
  offeredInChat: true,
3797
- chatOrder: 3,
4170
+ chatOrder: 0,
3798
4171
  offeredInVoice: false,
3799
- premium: true,
4172
+ premium: false,
3800
4173
  pricing: {
3801
4174
  inputPerMillion: 0.75,
3802
4175
  outputPerMillion: 3.75,
3803
4176
  cachedInputPerMillion: 0.075,
3804
4177
  provider: LLMProvider.GOOGLE
3805
4178
  },
3806
- modality: { audioPerMillion: 1.5, videoPerMillion: 0.75 },
4179
+ modality: { audioPerMillion: 0.75, videoPerMillion: 0.75 },
3807
4180
  maxOutputTokens: GEMINI_MAX_OUTPUT_TOKENS,
4181
+ contextWindow: 1048576,
3808
4182
  capabilities: GEMINI_THINKING,
3809
4183
  openRouterSlug: "google/gemini-3.8-flash"
3810
4184
  },
@@ -3815,7 +4189,8 @@ var init_registry = __esm({
3815
4189
  provider: LLMProvider.GOOGLE,
3816
4190
  family: "gemini",
3817
4191
  status: "live",
3818
- offeredInChat: false,
4192
+ offeredInChat: true,
4193
+ chatOrder: 1,
3819
4194
  offeredInVoice: false,
3820
4195
  premium: true,
3821
4196
  // Google's rate from 2026-12-01 ($2 / $10 until then), billed from day one so a turn is never under-charged.
@@ -3825,10 +4200,13 @@ var init_registry = __esm({
3825
4200
  cachedInputPerMillion: 0.2,
3826
4201
  provider: LLMProvider.GOOGLE
3827
4202
  },
3828
- // Google publishes no separate audio rate; audio at 2x input and video at input, the same ratio as Gemini 3.x Flash.
3829
- modality: { audioPerMillion: 8, videoPerMillion: 4 },
4203
+ // Vertex prices audio and video inside the single input rate.
4204
+ modality: { audioPerMillion: 4, videoPerMillion: 4 },
3830
4205
  maxOutputTokens: GEMINI_MAX_OUTPUT_TOKENS,
3831
- capabilities: GEMINI_THINKING
4206
+ // Input and output share Gemini 4's 1,048,576-token window; this leaves room for a full 65,536-token reply.
4207
+ contextWindow: 983040,
4208
+ capabilities: GEMINI_THINKING,
4209
+ openRouterSlug: "google/gemini-4-argon"
3832
4210
  },
3833
4211
  {
3834
4212
  id: LLMModels.GROK_4_5,
@@ -3836,17 +4214,21 @@ var init_registry = __esm({
3836
4214
  provider: LLMProvider.OPENROUTER,
3837
4215
  family: "grok",
3838
4216
  status: "live",
3839
- offeredInChat: true,
3840
- chatOrder: 11,
4217
+ offeredInChat: false,
3841
4218
  offeredInVoice: false,
3842
4219
  premium: true,
3843
4220
  pricing: {
3844
4221
  inputPerMillion: 2.2,
3845
4222
  outputPerMillion: 6.6,
3846
- cachedInputPerMillion: 0.22,
4223
+ cachedInputPerMillion: 0.33,
4224
+ longContextThresholdTokens: 2e5,
4225
+ inputPerMillionLong: 4.4,
4226
+ outputPerMillionLong: 13.2,
4227
+ cachedInputPerMillionLong: 0.66,
3847
4228
  provider: LLMProvider.OPENROUTER
3848
4229
  },
3849
4230
  maxOutputTokens: OPENROUTER_MAX_OUTPUT_TOKENS,
4231
+ contextWindow: 5e5,
3850
4232
  capabilities: { ...NO_CAPS, thinking: true, vision: true },
3851
4233
  byokProvider: "openrouter"
3852
4234
  },
@@ -3856,26 +4238,71 @@ var init_registry = __esm({
3856
4238
  provider: LLMProvider.OPENROUTER,
3857
4239
  family: "glm",
3858
4240
  status: "live",
4241
+ offeredInChat: false,
4242
+ offeredInVoice: false,
4243
+ premium: true,
4244
+ pricing: {
4245
+ inputPerMillion: 1.54,
4246
+ outputPerMillion: 4.84,
4247
+ cachedInputPerMillion: 0.286,
4248
+ provider: LLMProvider.OPENROUTER
4249
+ },
4250
+ maxOutputTokens: OPENROUTER_MAX_OUTPUT_TOKENS,
4251
+ contextWindow: 2e5,
4252
+ capabilities: { ...NO_CAPS, thinking: true },
4253
+ byokProvider: "openrouter"
4254
+ },
4255
+ {
4256
+ id: LLMModels.GROK_4_7,
4257
+ label: "Grok 4.7",
4258
+ provider: LLMProvider.OPENROUTER,
4259
+ family: "grok",
4260
+ status: "live",
3859
4261
  offeredInChat: true,
3860
- chatOrder: 12,
4262
+ chatOrder: 7,
4263
+ offeredInVoice: false,
4264
+ premium: true,
4265
+ pricing: {
4266
+ inputPerMillion: 2.2,
4267
+ outputPerMillion: 6.6,
4268
+ cachedInputPerMillion: 0.55,
4269
+ longContextThresholdTokens: 2e5,
4270
+ inputPerMillionLong: 4.4,
4271
+ outputPerMillionLong: 13.2,
4272
+ cachedInputPerMillionLong: 1.1,
4273
+ provider: LLMProvider.OPENROUTER
4274
+ },
4275
+ maxOutputTokens: OPENROUTER_MAX_OUTPUT_TOKENS,
4276
+ contextWindow: 5e5,
4277
+ capabilities: { ...NO_CAPS, thinking: true, vision: true },
4278
+ byokProvider: "openrouter"
4279
+ },
4280
+ {
4281
+ id: LLMModels.GLM_5_3,
4282
+ label: "GLM 5.3",
4283
+ provider: LLMProvider.OPENROUTER,
4284
+ family: "glm",
4285
+ status: "live",
4286
+ offeredInChat: false,
3861
4287
  offeredInVoice: false,
3862
4288
  premium: true,
3863
4289
  pricing: {
3864
- inputPerMillion: 1.023,
3865
- outputPerMillion: 3.3,
3866
- cachedInputPerMillion: 0.1023,
4290
+ inputPerMillion: 1.54,
4291
+ outputPerMillion: 4.84,
4292
+ cachedInputPerMillion: 0.286,
3867
4293
  provider: LLMProvider.OPENROUTER
3868
4294
  },
3869
4295
  maxOutputTokens: OPENROUTER_MAX_OUTPUT_TOKENS,
4296
+ contextWindow: 2e5,
3870
4297
  capabilities: { ...NO_CAPS, thinking: true },
3871
4298
  byokProvider: "openrouter"
3872
4299
  }
3873
4300
  ];
3874
- OPENAI_DEFAULT_MODEL = LLMModels.GPT_5_5;
3875
- CLAUDE_DEFAULT_MODEL = LLMModels.CLAUDE_SONNET_5;
3876
- GEMINI_DEFAULT_MODEL = LLMModels.GEMINI_3_7_FLASH;
3877
- OPENROUTER_DEFAULT_MODEL = LLMModels.GROK_4_5;
3878
- FREE_TIER_MODEL = LLMModels.GEMINI_3_7_FLASH;
4301
+ OPENAI_DEFAULT_MODEL = LLMModels.GPT_6_1_SOL;
4302
+ CLAUDE_DEFAULT_MODEL = LLMModels.CLAUDE_SONNET_5_5;
4303
+ GEMINI_DEFAULT_MODEL = LLMModels.GEMINI_3_8_FLASH;
4304
+ OPENROUTER_DEFAULT_MODEL = LLMModels.GROK_4_7;
4305
+ FREE_TIER_MODEL = LLMModels.GEMINI_3_8_FLASH;
3879
4306
  BY_ID = new Map(MODEL_REGISTRY.map((m) => [m.id.toLowerCase(), m]));
3880
4307
  }
3881
4308
  });
@@ -4629,7 +5056,7 @@ var init_llm2 = __esm({
4629
5056
  VOICE_AGENT_LLM_MODELS = MODEL_REGISTRY.filter((model) => VOICE_AGENT_LLM_PROVIDERS.includes(model.provider)).map((model) => model.id);
4630
5057
  VOICE_AGENT_LLM_CHOICES = MODEL_REGISTRY.filter((model) => model.offeredInVoice);
4631
5058
  VOICE_DEFAULT_MODELS = {
4632
- [LLMProvider.OPENAI]: OPENAI_DEFAULT_MODEL,
5059
+ [LLMProvider.OPENAI]: LLMModels.GPT_5_6_TERRA,
4633
5060
  [LLMProvider.GOOGLE]: LLMModels.GEMINI_3_5_FLASH
4634
5061
  };
4635
5062
  VOICE_AGENT_MODEL_IDS = [
@@ -4655,7 +5082,8 @@ var init_pricing = __esm({
4655
5082
  "node_modules/@speakai/shared/dist/voice/pricing.js"() {
4656
5083
  "use strict";
4657
5084
  init_modelPricing();
4658
- init_registry();
5085
+ init_llm();
5086
+ init_llm2();
4659
5087
  init_providers();
4660
5088
  VOICE_TTS_RATES = {
4661
5089
  [TTSProvider.ELEVENLABS]: { perMinute: 0.03 },
@@ -4928,6 +5356,13 @@ var init_embedSession3 = __esm({
4928
5356
  }
4929
5357
  });
4930
5358
 
5359
+ // node_modules/@speakai/shared/dist/utils/color.js
5360
+ var init_color = __esm({
5361
+ "node_modules/@speakai/shared/dist/utils/color.js"() {
5362
+ "use strict";
5363
+ }
5364
+ });
5365
+
4931
5366
  // node_modules/@speakai/shared/dist/embedSession/playback.js
4932
5367
  var init_playback = __esm({
4933
5368
  "node_modules/@speakai/shared/dist/embedSession/playback.js"() {
@@ -4958,6 +5393,232 @@ var init_tracker = __esm({
4958
5393
  }
4959
5394
  });
4960
5395
 
5396
+ // node_modules/@speakai/shared/dist/design/tokens.js
5397
+ var PROCESSING_STATUS, READY_STATUS, COLOR_TOKENS, DEFAULT_ACCENT_ID, ACCENT_PRESETS, TYPE_SCALE, SPACING, RADIUS, ELEVATION, MOTION, SPEAKER_PALETTE, MEDIA_STATUS_DESIGN;
5398
+ var init_tokens = __esm({
5399
+ "node_modules/@speakai/shared/dist/design/tokens.js"() {
5400
+ "use strict";
5401
+ init_media();
5402
+ PROCESSING_STATUS = Object.freeze({ labelKey: "MEDIA_STATUS.PROCESSING", color: "textSecondary", fill: "surface", icon: "loader-circle" });
5403
+ READY_STATUS = Object.freeze({ labelKey: "MEDIA_STATUS.READY", color: "success", fill: "successSoft", icon: "circle-check" });
5404
+ COLOR_TOKENS = Object.freeze({
5405
+ light: Object.freeze({
5406
+ background: "#ffffff",
5407
+ surface: "#f4f4f5",
5408
+ raised: "#ffffff",
5409
+ separator: "#e4e4e7",
5410
+ line: "#d4d4d8",
5411
+ text: "#18181b",
5412
+ textSecondary: "#52525b",
5413
+ textTertiary: "#6b6b76",
5414
+ record: "#dc2626",
5415
+ onRecord: "#ffffff",
5416
+ success: "#15803d",
5417
+ successSoft: "#ecfdf3",
5418
+ warning: "#a15c07",
5419
+ warningSoft: "#fef6e7",
5420
+ critical: "#b42318",
5421
+ criticalSoft: "#fef3f2",
5422
+ scrim: "rgba(0,0,0,0.4)"
5423
+ }),
5424
+ dark: Object.freeze({
5425
+ background: "#09090b",
5426
+ surface: "#18181b",
5427
+ raised: "#1c1c1f",
5428
+ separator: "#27272a",
5429
+ line: "#3f3f46",
5430
+ text: "#fafafa",
5431
+ textSecondary: "#a1a1aa",
5432
+ textTertiary: "#8b8b94",
5433
+ record: "#ef4444",
5434
+ onRecord: "#ffffff",
5435
+ success: "#4ade80",
5436
+ successSoft: "#0f2a1a",
5437
+ warning: "#fbbf24",
5438
+ warningSoft: "#2e2208",
5439
+ critical: "#f87171",
5440
+ criticalSoft: "#2d1414",
5441
+ scrim: "rgba(0,0,0,0.6)"
5442
+ })
5443
+ });
5444
+ DEFAULT_ACCENT_ID = "default";
5445
+ ACCENT_PRESETS = Object.freeze([
5446
+ {
5447
+ id: DEFAULT_ACCENT_ID,
5448
+ name: "Monochrome",
5449
+ preview: { primary: "#171717", secondary: "#737373" },
5450
+ light: { accent: "#171717", onAccent: "#ffffff" },
5451
+ dark: { accent: "#f2f2f2", onAccent: "#18181b" }
5452
+ },
5453
+ {
5454
+ id: "indigo",
5455
+ name: "Indigo",
5456
+ preview: { primary: "#6366f1", secondary: "#818cf8" },
5457
+ light: { accent: "#6264f1", onAccent: "#ffffff" },
5458
+ dark: { accent: "#6264f1", onAccent: "#ffffff" }
5459
+ },
5460
+ {
5461
+ id: "emerald",
5462
+ name: "Emerald",
5463
+ preview: { primary: "#10b981", secondary: "#34d399" },
5464
+ light: { accent: "#10b77f", onAccent: "#18181b" },
5465
+ dark: { accent: "#12d393", onAccent: "#18181b" }
5466
+ },
5467
+ {
5468
+ id: "rose",
5469
+ name: "Rose",
5470
+ preview: { primary: "#f43f5e", secondary: "#fb7185" },
5471
+ light: { accent: "#f43e5c", onAccent: "#18181b" },
5472
+ dark: { accent: "#f43e5c", onAccent: "#18181b" }
5473
+ },
5474
+ {
5475
+ id: "orange",
5476
+ name: "Orange",
5477
+ preview: { primary: "#f97316", secondary: "#fb923c" },
5478
+ light: { accent: "#f97415", onAccent: "#18181b" },
5479
+ dark: { accent: "#f97415", onAccent: "#18181b" }
5480
+ },
5481
+ {
5482
+ id: "purple",
5483
+ name: "Purple",
5484
+ preview: { primary: "#8b5cf6", secondary: "#a78bfa" },
5485
+ light: { accent: "#6b26d9", onAccent: "#ffffff" },
5486
+ dark: { accent: "#8852e0", onAccent: "#ffffff" }
5487
+ }
5488
+ ]);
5489
+ TYPE_SCALE = Object.freeze({
5490
+ title: {
5491
+ fontSize: 28,
5492
+ lineHeight: 36,
5493
+ fontWeight: 600,
5494
+ heading: true,
5495
+ ios: "largeTitle",
5496
+ android: { role: "headlineMedium", fontSize: 28, lineHeight: 36 },
5497
+ maxScale: 1.4
5498
+ },
5499
+ heading: {
5500
+ fontSize: 20,
5501
+ lineHeight: 26,
5502
+ fontWeight: 600,
5503
+ heading: true,
5504
+ ios: "title3",
5505
+ android: { role: "titleLarge", fontSize: 22, lineHeight: 28 },
5506
+ maxScale: 1.4
5507
+ },
5508
+ headline: {
5509
+ fontSize: 17,
5510
+ lineHeight: 24,
5511
+ fontWeight: 600,
5512
+ heading: false,
5513
+ ios: "headline",
5514
+ android: { role: "titleMedium", fontSize: 16, lineHeight: 24 },
5515
+ maxScale: 2
5516
+ },
5517
+ body: {
5518
+ fontSize: 17,
5519
+ lineHeight: 24,
5520
+ fontWeight: 400,
5521
+ heading: false,
5522
+ ios: "body",
5523
+ android: { role: "bodyLarge", fontSize: 16, lineHeight: 24 },
5524
+ maxScale: 2
5525
+ },
5526
+ callout: {
5527
+ fontSize: 15,
5528
+ lineHeight: 21,
5529
+ fontWeight: 400,
5530
+ heading: false,
5531
+ ios: "callout",
5532
+ android: { role: "bodyMedium", fontSize: 14, lineHeight: 20 },
5533
+ maxScale: 2
5534
+ },
5535
+ footnote: {
5536
+ fontSize: 13,
5537
+ lineHeight: 18,
5538
+ fontWeight: 400,
5539
+ heading: false,
5540
+ ios: "footnote",
5541
+ android: { role: "bodySmall", fontSize: 12, lineHeight: 16 },
5542
+ maxScale: 2
5543
+ },
5544
+ caption: {
5545
+ fontSize: 12,
5546
+ lineHeight: 17,
5547
+ fontWeight: 600,
5548
+ heading: false,
5549
+ ios: "caption1",
5550
+ android: { role: "labelSmall", fontSize: 11, lineHeight: 16 },
5551
+ maxScale: 2
5552
+ },
5553
+ timer: {
5554
+ fontSize: 64,
5555
+ lineHeight: 80,
5556
+ fontWeight: 500,
5557
+ heading: true,
5558
+ ios: null,
5559
+ android: null,
5560
+ maxScale: 1
5561
+ },
5562
+ tab: {
5563
+ fontSize: 10,
5564
+ lineHeight: 16,
5565
+ fontWeight: 600,
5566
+ heading: false,
5567
+ ios: null,
5568
+ android: { role: "labelMedium", fontSize: 12, lineHeight: 16 },
5569
+ maxScale: 1
5570
+ }
5571
+ });
5572
+ SPACING = Object.freeze({
5573
+ xs: 4,
5574
+ sm: 8,
5575
+ md: 12,
5576
+ lg: 16,
5577
+ gutterMax: 20,
5578
+ xl: 24,
5579
+ xxl: 32,
5580
+ xxxl: 40
5581
+ });
5582
+ RADIUS = Object.freeze({
5583
+ control: 10,
5584
+ card: 12,
5585
+ sheet: 16,
5586
+ pill: 999
5587
+ });
5588
+ ELEVATION = Object.freeze({
5589
+ flat: null,
5590
+ raised: Object.freeze({ offsetY: 1, blur: 2, shadowOpacity: 0.08 })
5591
+ });
5592
+ MOTION = Object.freeze({
5593
+ durationMs: Object.freeze({ state: 150, menu: 200, sheet: 300 }),
5594
+ easing: Object.freeze([0, 0, 0.58, 1]),
5595
+ reducedMotion: Object.freeze({ fadeMs: 150, stopLoops: true })
5596
+ });
5597
+ SPEAKER_PALETTE = Object.freeze({
5598
+ hueStep: 137.508,
5599
+ chroma: 0.14,
5600
+ lightness: Object.freeze({ light: 0.52, dark: 0.72 })
5601
+ });
5602
+ MEDIA_STATUS_DESIGN = Object.freeze({
5603
+ [MediaState.NOT_UPLOADED]: Object.freeze({ labelKey: "MEDIA_STATUS.UPLOADING", color: "textSecondary", fill: "surface", icon: "cloud-upload" }),
5604
+ [MediaState.UPLOADED]: Object.freeze({ labelKey: "MEDIA_STATUS.READY_TO_ANALYZE", color: "textSecondary", fill: "surface", icon: "cloud-check" }),
5605
+ [MediaState.QUEUED]: PROCESSING_STATUS,
5606
+ [MediaState.PREPARING]: PROCESSING_STATUS,
5607
+ [MediaState.PREPARING_TRANSCRIPTION]: PROCESSING_STATUS,
5608
+ [MediaState.PROCESSING]: PROCESSING_STATUS,
5609
+ [MediaState.TRANSLATION]: PROCESSING_STATUS,
5610
+ [MediaState.PREPARING_ANALYSIS]: PROCESSING_STATUS,
5611
+ [MediaState.DUBBING]: PROCESSING_STATUS,
5612
+ [MediaState.PROCESSED]: READY_STATUS,
5613
+ [MediaState.COMPLETE]: READY_STATUS,
5614
+ [MediaState.FAILED]: Object.freeze({ labelKey: "MEDIA_STATUS.FAILED", color: "critical", fill: "criticalSoft", icon: "circle-alert" }),
5615
+ [MediaState.PENDING_PAYMENT]: Object.freeze({ labelKey: "MEDIA_STATUS.PAYMENT_NEEDED", color: "critical", fill: "criticalSoft", icon: "credit-card" }),
5616
+ [MediaState.LIVE_TRANSCRIPT]: Object.freeze({ labelKey: "MEDIA_STATUS.LIVE", color: "textSecondary", fill: "surface", icon: "radio" }),
5617
+ local: Object.freeze({ labelKey: "MEDIA_STATUS.LOCAL", color: "textSecondary", fill: "surface", icon: "cloud-off" })
5618
+ });
5619
+ }
5620
+ });
5621
+
4961
5622
  // node_modules/@speakai/shared/dist/llm/types.js
4962
5623
  var init_types = __esm({
4963
5624
  "node_modules/@speakai/shared/dist/llm/types.js"() {
@@ -4980,7 +5641,9 @@ var init_dist = __esm({
4980
5641
  init_pushNotification3();
4981
5642
  init_notificationEvent3();
4982
5643
  init_embedSession3();
5644
+ init_color();
4983
5645
  init_tracker();
5646
+ init_tokens();
4984
5647
  init_registry();
4985
5648
  init_types();
4986
5649
  init_modelPricing();
@@ -6472,7 +7135,7 @@ function register5(server, client) {
6472
7135
  {
6473
7136
  name: import_zod6.z.string().describe("Display name for the recorder"),
6474
7137
  ...recorderConfigShape,
6475
- clientInformation: import_zod6.z.record(import_zod6.z.unknown()).optional().describe(
7138
+ clientInformation: import_zod6.z.record(import_zod6.z.string(), import_zod6.z.unknown()).optional().describe(
6476
7139
  `Respondent info & questions: { name:boolean, email:boolean, questions:[\u2026], consent?:{ isEnabled, title, description, yesButtonLabel, noButtonLabel, isRequired, fieldId? } }. Question shape \u2014 ${QUESTION_SHAPE_DESC}`
6477
7140
  )
6478
7141
  },
@@ -6680,10 +7343,10 @@ function register5(server, client) {
6680
7343
  recorderId: import_zod6.z.string().min(1).describe("Unique identifier of the recorder"),
6681
7344
  name: import_zod6.z.boolean().optional().describe("Whether to collect the respondent's name"),
6682
7345
  email: import_zod6.z.boolean().optional().describe("Whether to collect the respondent's email"),
6683
- questions: import_zod6.z.array(import_zod6.z.record(import_zod6.z.unknown())).describe(
7346
+ questions: import_zod6.z.array(import_zod6.z.record(import_zod6.z.string(), import_zod6.z.unknown())).describe(
6684
7347
  `Survey questions. ${QUESTION_SHAPE_DESC} (id? may also be passed to update an existing question.)`
6685
7348
  ),
6686
- consent: import_zod6.z.record(import_zod6.z.unknown()).optional().describe(
7349
+ consent: import_zod6.z.record(import_zod6.z.string(), import_zod6.z.unknown()).optional().describe(
6687
7350
  "Consent screen: { isEnabled, title, description, yesButtonLabel, noButtonLabel, isRequired, fieldId? }"
6688
7351
  )
6689
7352
  },
@@ -6761,12 +7424,12 @@ var init_recorder3 = __esm({
6761
7424
  folderId: import_zod6.z.string().optional().describe("Folder to store recordings in"),
6762
7425
  isAutoAnalyze: import_zod6.z.boolean().optional().describe("Whether to auto-analyze submissions"),
6763
7426
  notifyUsers: import_zod6.z.array(import_zod6.z.string()).optional().describe("User IDs to notify on new submissions"),
6764
- duration: import_zod6.z.record(import_zod6.z.unknown()).optional().describe("Recording duration: { minDuration, maxDuration } in seconds"),
6765
- options: import_zod6.z.record(import_zod6.z.unknown()).optional().describe(
7427
+ duration: import_zod6.z.record(import_zod6.z.string(), import_zod6.z.unknown()).optional().describe("Recording duration: { minDuration, maxDuration } in seconds"),
7428
+ options: import_zod6.z.record(import_zod6.z.string(), import_zod6.z.unknown()).optional().describe(
6766
7429
  "Capture options: { audio, video, screenShare, liveTranscription, upload:{ file, text, multiple, url } } \u2014 all booleans"
6767
7430
  ),
6768
- notification: import_zod6.z.record(import_zod6.z.unknown()).optional().describe("Notification toggles: { upload, client }, both booleans. upload emails the recorder owner (if they opted in to submission emails) and any users in notifyUsers about each new submission; client emails a confirmation to each respondent who gives an email."),
6769
- meta: import_zod6.z.record(import_zod6.z.unknown()).optional().describe(
7431
+ notification: import_zod6.z.record(import_zod6.z.string(), import_zod6.z.unknown()).optional().describe("Notification toggles: { upload, client }, both booleans. upload emails the recorder owner (if they opted in to submission emails) and any users in notifyUsers about each new submission; client emails a confirmation to each respondent who gives an email."),
7432
+ meta: import_zod6.z.record(import_zod6.z.string(), import_zod6.z.unknown()).optional().describe(
6770
7433
  "Branding/customization: { primaryColor, backgroundImg, logo, fontColor, fontFamily, theme, customCSS, hideWaveform, hideTitle, hideDescription, hideSubmitButton, submitButtonLabel, countdown, hideImages }"
6771
7434
  )
6772
7435
  };
@@ -6820,7 +7483,7 @@ function register6(server, client) {
6820
7483
  "Privacy mode for the embed. Changing this clears the existing password unless `password` is also supplied in the same call."
6821
7484
  ),
6822
7485
  password: import_zod7.z.string().optional().describe("Password to protect the embed with when privacyMode is private. Only applied when privacyMode is also sent."),
6823
- meta: import_zod7.z.record(import_zod7.z.unknown()).optional().describe(
7486
+ meta: import_zod7.z.record(import_zod7.z.string(), import_zod7.z.unknown()).optional().describe(
6824
7487
  `Embed appearance & feature toggles: { backgroundImg, logo, logoDark, theme, backgroundColor, fontFamily, primaryColor, titleColor, chatWelcomeMessage, assistantTemplateId, isTitle, isDescription, isRemarks, isDataVizDownloadable, isSEOIndexing, isPromptAsk, isPromptHistory, isMediaExport, isLabels, isComments, callToActionButtons:[{ url, label }], features:[{ name, isActive, isCustom? }] }. features entry { name: "fieldsFocus", isActive: false } turns off the fields-first media page: by default, when a media page is opened from a shared dashboard and the media has custom fields, the page shrinks the player to about 22% and leads with the fields. Shared-dashboard branding: logo is the image shown in light mode and logoDark the one shown when the viewer is in dark mode (logoDark must be an uploaded logo; this MCP cannot upload images, any other URL is rejected with a 400, and it falls back to logo when unset). theme is "light" or "dark" and forces that theme for every viewer, hiding their toggle; "" lets the viewer choose. backgroundColor is a hex colour (#rgb or #rrggbb) for the page background; pair it with theme so text stays readable. primaryColor is a hex accent used for nav, links, card chips and play buttons. titleColor is a hex colour for the dashboard title and is ignored when its contrast on the page background is below 3:1. fontFamily is a Google Fonts family name (letters, digits and spaces, max 60 chars, for example "Arimo"; anything else is rejected with a 400); it overrides the account font for this embed, and "" falls back to the account font. Send "" for any of these keys to clear it. isPromptAsk must be on for the chat button of a shared dashboard (and a notes widget openChat action) to work. isLabels and isComments show the media's labels and comments read-only on media and folder embeds; both are off by default and embed viewers can never write them.`
6825
7488
  )
6826
7489
  },
@@ -7062,7 +7725,7 @@ function register7(server, client, options = {}) {
7062
7725
  isIndividualPrompt: import_zod8.z.boolean().optional().describe("When true, processes each media file separately instead of combining context. Useful for comparing responses across files."),
7063
7726
  fieldId: import_zod8.z.string().optional().describe("Scope the prompt to a single custom field"),
7064
7727
  fieldIds: import_zod8.z.array(import_zod8.z.string()).max(10).optional().describe("Scope the prompt to multiple custom fields (max 10)"),
7065
- filters: import_zod8.z.record(import_zod8.z.unknown()).optional().describe("Advanced filter object to scope which media the prompt runs over"),
7728
+ filters: import_zod8.z.record(import_zod8.z.string(), import_zod8.z.unknown()).optional().describe("Advanced filter object to scope which media the prompt runs over"),
7066
7729
  analysisMediaId: import_zod8.z.string().optional().describe("Media to analyse as audio/video rather than transcript. Must also appear in mediaIds, and must be sent together with analysisInput."),
7067
7730
  analysisInput: import_zod8.z.enum(["audio", "video"]).optional().describe("'audio' lets the model hear tone, pacing and delivery; 'video' also lets it see what is on screen. Omit for transcript-only, which is the default. 'transcript' is not a valid value here \u2014 omitting the field IS transcript-only.")
7068
7731
  };
@@ -7820,7 +8483,7 @@ function register9(server, client) {
7820
8483
  fields: import_zod10.z.array(
7821
8484
  import_zod10.z.object({
7822
8485
  id: fieldIdSchema,
7823
- value: import_zod10.z.unknown().describe("Value to set for the field")
8486
+ value: import_zod10.z.unknown().optional().describe("Value to set for the field")
7824
8487
  })
7825
8488
  ).describe("Array of field id/value pairs to set")
7826
8489
  },
@@ -9536,8 +10199,8 @@ function register12(server, client, options = {}) {
9536
10199
  "validate_automation_graph",
9537
10200
  "Check a step graph without saving anything. Reports the same problems create_automation and update_automation would refuse \u2014 branch wiring, rules a condition cannot actually read, shapes the Speak web editor could not reopen \u2014 plus non-blocking warnings. Use it to iterate on a branched automation instead of discovering the problems one failed save at a time.",
9538
10201
  {
9539
- steps: import_zod14.z.array(import_zod14.z.record(import_zod14.z.unknown())).min(1).describe(STEPS_DESCRIPTION),
9540
- trigger: import_zod14.z.record(import_zod14.z.unknown()).optional().describe(TRIGGER_DESCRIPTION),
10202
+ steps: import_zod14.z.array(import_zod14.z.record(import_zod14.z.string(), import_zod14.z.unknown())).min(1).describe(STEPS_DESCRIPTION),
10203
+ trigger: import_zod14.z.record(import_zod14.z.string(), import_zod14.z.unknown()).optional().describe(TRIGGER_DESCRIPTION),
9541
10204
  runType: import_zod14.z.enum(["instant", "schedule"]).optional().describe("Run type the graph would be saved with. A schedule refuses any branch.")
9542
10205
  },
9543
10206
  {
@@ -9762,13 +10425,13 @@ Notes: "tags"/"keywords" trigger types are rejected for graph automations. The s
9762
10425
  OR_TRIGGERS_DESCRIPTION = 'Optional additional "Or" triggers (max 10): the automation runs when ANY of them fires, sharing the same steps. Each entry mirrors the trigger shapes above but cannot be an inbound webhook and carries no webhookId/childKey. Example: [{ type: "folders", triggerSlug: "field_updated", values: ["<fieldId>"] }]';
9763
10426
  writeSchema = {
9764
10427
  name: import_zod14.z.string().min(1).max(150).describe("Display name for the automation"),
9765
- trigger: import_zod14.z.record(import_zod14.z.unknown()).describe(TRIGGER_DESCRIPTION),
9766
- triggers: import_zod14.z.array(import_zod14.z.record(import_zod14.z.unknown())).max(10).optional().describe(OR_TRIGGERS_DESCRIPTION),
9767
- steps: import_zod14.z.array(import_zod14.z.record(import_zod14.z.unknown())).min(1).max(20).describe(STEPS_DESCRIPTION),
10428
+ trigger: import_zod14.z.record(import_zod14.z.string(), import_zod14.z.unknown()).describe(TRIGGER_DESCRIPTION),
10429
+ triggers: import_zod14.z.array(import_zod14.z.record(import_zod14.z.string(), import_zod14.z.unknown())).max(10).optional().describe(OR_TRIGGERS_DESCRIPTION),
10430
+ steps: import_zod14.z.array(import_zod14.z.record(import_zod14.z.string(), import_zod14.z.unknown())).min(1).max(20).describe(STEPS_DESCRIPTION),
9768
10431
  description: import_zod14.z.string().max(1e3).optional().describe("Optional description"),
9769
10432
  isActive: import_zod14.z.boolean().optional().describe("Whether the automation is active (defaults to true)"),
9770
10433
  runType: import_zod14.z.enum(["instant", "schedule"]).optional().describe('Run type: "instant" (default, runs on trigger) or "schedule" (cron)'),
9771
- schedule: import_zod14.z.record(import_zod14.z.unknown()).optional().describe(
10434
+ schedule: import_zod14.z.record(import_zod14.z.string(), import_zod14.z.unknown()).optional().describe(
9772
10435
  'Required when runType="schedule": { timePeriod: "today"|"yesterday"|"last7days"|"last14days"|"thisWeek", repeatAt: string }'
9773
10436
  )
9774
10437
  };
@@ -10925,12 +11588,12 @@ var init_workflows = __esm({
10925
11588
  STEP_SPEC_DESCRIPTION = 'Ordered actions. Each step is an object with a `do` key plus its options. String values may be literals, "payload.<path>" shorthand (converted to {{trigger.payload.<path>}} only when it is the ENTIRE value), or raw {{...}} tokens \u2014 inside longer text, write the full {{trigger.payload.<path>}} form.\n- { do: "filter", rules: [{ field, op, value? }], logic?: "AND"|"OR" } \u2014 continue only if rules match, otherwise the run stops here. Ops: eq|neq|contains|ncontains|startsWith|gt|lt|exists\n- { do: "branch", rules, logic?, then: [steps], otherwise: [steps], thenEnds?, otherwiseEnds? } \u2014 routes instead of stopping. `then` runs when the rules match, `otherwise` when they do not, and whatever follows the branch runs on both paths. Set thenEnds/otherwiseEnds to true to finish the run on that side instead of carrying on. One side may be empty ("if it matches do this, otherwise just carry on"), but not both. Branches may nest three deep, and a nested branch must be the LAST step of the side it sits on.\n Rule fields for BOTH filter and branch depend on what reaches the step: while media is flowing use name|duration|sourceLanguage|tags|transcript|speakers or a custom field name; straight after an ai_chat step only "answer" is available, so put the branch BEFORE the ai_chat step if you need a media field. A filter and a branch CANNOT read the webhook payload \u2014 they only see the media and earlier answers. To branch on payload data, upload first with mapFields to write the value into a custom field, then branch on that field.\n- { do: "upload", source (URL or payload.<path>, required), name?, language? (e.g. "en-US"), folder? (name or id; created if missing), folderFromPayload? (payload key holding the destination folder name \u2014 dynamic routing), onNoFolderMatch?: "create"|"default", mapFields?: { <field name or id>: <value or payload.<path>> } (writes payload values into custom fields on the uploaded media) }\n- { do: "ai_chat", prompt? (required unless saveToFields given), title?, saveToFields?: [field names or ids] (max 10 \u2014 values are extracted into these custom fields; prompt may be omitted for extraction-only steps), model? (a Speak-supported LLM id, e.g. "gemini-2.5-flash", "claude-sonnet-4-6"; omit for the workspace default), analyse?: "transcript" (default) | "audio" | "video" \u2014 what the model receives. "audio" lets it hear tone and delivery, "video" also lets it see the screen; on a video file "audio" extracts the audio track first. Premium: requires the account\'s audio/video analysis opt-in and costs credits per hour of media }\n- { do: "translate", language: region-qualified code like "es-ES", "fr-FR" }\n- { do: "notify", message (required, tokens allowed), channel?: "in_app"|"email"|"slack" (default in_app; email currently falls back to an in-app notification), target? (reserved \u2014 not yet used for delivery) }\n- { do: "call_webhook", url (required), method?, headers?, body? (string or object template, tokens allowed) }\nLegacy: a flat list where steps after a branch carry runWhen: "true"|"false" is still accepted and folded into then/otherwise, but it cannot express nesting or an ending side \u2014 prefer then/otherwise. Composio app actions (Google Drive, Slack apps, \u2026) are not supported by this builder yet \u2014 use create_automation directly for those.';
10926
11589
  buildAutomationSchema = {
10927
11590
  name: import_zod18.z.string().min(1).max(150).describe("Display name for the automation"),
10928
- trigger: import_zod18.z.record(import_zod18.z.unknown()).describe(TRIGGER_SPEC_DESCRIPTION),
10929
- steps: import_zod18.z.array(import_zod18.z.record(import_zod18.z.unknown())).min(1).max(20).describe(STEP_SPEC_DESCRIPTION),
11591
+ trigger: import_zod18.z.record(import_zod18.z.string(), import_zod18.z.unknown()).describe(TRIGGER_SPEC_DESCRIPTION),
11592
+ steps: import_zod18.z.array(import_zod18.z.record(import_zod18.z.string(), import_zod18.z.unknown())).min(1).max(20).describe(STEP_SPEC_DESCRIPTION),
10930
11593
  automationId: import_zod18.z.string().optional().describe("Update this existing automation instead of creating a new one (full replace)"),
10931
11594
  description: import_zod18.z.string().max(1e3).optional().describe("Optional description"),
10932
11595
  isActive: import_zod18.z.boolean().optional().describe("Whether the automation is active (default true)"),
10933
- orTriggers: import_zod18.z.array(import_zod18.z.record(import_zod18.z.unknown())).max(10).optional().describe(
11596
+ orTriggers: import_zod18.z.array(import_zod18.z.record(import_zod18.z.string(), import_zod18.z.unknown())).max(10).optional().describe(
10934
11597
  'Additional "Or" triggers (same shape as trigger, but inbound_webhook is not allowed here). The automation runs when ANY trigger fires.'
10935
11598
  )
10936
11599
  };
@@ -11824,10 +12487,10 @@ var init_dashboards = __esm({
11824
12487
  "Optional explicit widget id (kebab-case). Required if you reference the widget from sections[].widgetIds; auto-generated otherwise."
11825
12488
  ),
11826
12489
  title: import_zod20.z.string().min(1).max(40).optional().describe("Widget title, max 40 chars (defaults to a per-type label)"),
11827
- config: import_zod20.z.record(import_zod20.z.unknown()).optional().describe(
12490
+ config: import_zod20.z.record(import_zod20.z.string(), import_zod20.z.unknown()).optional().describe(
11828
12491
  "Per-type config (STRICT \u2014 unknown keys are rejected). metric-chart: mark (line|bar|area|donut|stacked-bar) + metric + groupBy/series + thresholds; table: rowsAre + columns [{header, field|metric}] (+ display: cards and card for session cards); stat-cards: tiles; field-distribution: fieldName+measure+chartType (required); narrative: focus; notes: content (+ actions for buttons); chat-history: limit (optional, past conversations to list, 1-100, default 25). Call list_dashboard_widgets for the full per-type vocabulary + metric/filter grammar. Omit for a sensible valid default (except field-distribution, which needs fieldName)."
11829
12492
  ),
11830
- binding: import_zod20.z.record(import_zod20.z.unknown()).optional().describe(
12493
+ binding: import_zod20.z.record(import_zod20.z.string(), import_zod20.z.unknown()).optional().describe(
11831
12494
  "Per-widget scope override: { source?, dateRange?: {preset}, filter? }. Omit any key to inherit the dashboard's value."
11832
12495
  ),
11833
12496
  layout: import_zod20.z.object({
@@ -13557,7 +14220,7 @@ renderSkeleton(MAX_ROWS);
13557
14220
  dataTimer=setTimeout(function(){if(!settled)hide();},DATA_TIMEOUT_MS);
13558
14221
 
13559
14222
  request("ui/initialize",{
13560
- appInfo:{name:"speakai-file-list",version:"1.0.0"},
14223
+ appInfo:{name:"file-list",version:"1.0.0"},
13561
14224
  appCapabilities:{availableDisplayModes:["inline"]},
13562
14225
  protocolVersion:PROTOCOL_VERSION
13563
14226
  }).then(function(result){
@@ -13588,7 +14251,7 @@ request("ui/initialize",{
13588
14251
  // src/ui/media-list/index.ts
13589
14252
  function registerMediaListCard(server) {
13590
14253
  server.registerResource(
13591
- "speakai-file-list-card",
14254
+ "file-list-card",
13592
14255
  MEDIA_LIST_CARD_URI,
13593
14256
  {
13594
14257
  title: "Speak file list card",
@@ -13716,7 +14379,7 @@ function reportError(label, err2) {
13716
14379
  }
13717
14380
  function registerResources(server, client) {
13718
14381
  const api = client ?? speakClient;
13719
- server.resource(
14382
+ server.registerResource(
13720
14383
  "media-library",
13721
14384
  "speakai://media",
13722
14385
  { description: "List of all media files in your Speak AI workspace" },
@@ -13731,7 +14394,7 @@ function registerResources(server, client) {
13731
14394
  }
13732
14395
  }
13733
14396
  );
13734
- server.resource(
14397
+ server.registerResource(
13735
14398
  "folders",
13736
14399
  "speakai://folders",
13737
14400
  { description: "List of all folders in your Speak AI workspace" },
@@ -13746,7 +14409,7 @@ function registerResources(server, client) {
13746
14409
  }
13747
14410
  }
13748
14411
  );
13749
- server.resource(
14412
+ server.registerResource(
13750
14413
  "supported-languages",
13751
14414
  "speakai://languages",
13752
14415
  { description: "List of supported transcription languages" },
@@ -13759,9 +14422,9 @@ function registerResources(server, client) {
13759
14422
  }
13760
14423
  }
13761
14424
  );
13762
- server.resource(
14425
+ server.registerResource(
13763
14426
  "transcript",
13764
- new import_mcp.ResourceTemplate("speakai://media/{mediaId}/transcript", { list: void 0 }),
14427
+ new import_server.ResourceTemplate("speakai://media/{mediaId}/transcript", { list: void 0 }),
13765
14428
  { description: "Full transcript for a specific media file" },
13766
14429
  async (uri, { mediaId }) => {
13767
14430
  try {
@@ -13772,9 +14435,9 @@ function registerResources(server, client) {
13772
14435
  }
13773
14436
  }
13774
14437
  );
13775
- server.resource(
14438
+ server.registerResource(
13776
14439
  "insights",
13777
- new import_mcp.ResourceTemplate("speakai://media/{mediaId}/insights", { list: void 0 }),
14440
+ new import_server.ResourceTemplate("speakai://media/{mediaId}/insights", { list: void 0 }),
13778
14441
  { description: "AI-generated insights for a specific media file" },
13779
14442
  async (uri, { mediaId }) => {
13780
14443
  try {
@@ -13786,11 +14449,11 @@ function registerResources(server, client) {
13786
14449
  }
13787
14450
  );
13788
14451
  }
13789
- var import_mcp;
14452
+ var import_server;
13790
14453
  var init_resources = __esm({
13791
14454
  "src/resources.ts"() {
13792
14455
  "use strict";
13793
- import_mcp = require("@modelcontextprotocol/sdk/server/mcp.js");
14456
+ import_server = require("@modelcontextprotocol/server");
13794
14457
  init_client();
13795
14458
  init_client();
13796
14459
  }
@@ -13802,7 +14465,7 @@ __export(prompts_exports, {
13802
14465
  registerPrompts: () => registerPrompts
13803
14466
  });
13804
14467
  function registerPrompt(server, name, description, args2, callback) {
13805
- server.prompt.bind(server)(name, description, args2, callback);
14468
+ server.registerPrompt(name, { description, argsSchema: import_zod25.z.object(args2) }, callback);
13806
14469
  }
13807
14470
  function registerPrompts(server) {
13808
14471
  registerPrompt(
@@ -15641,7 +16304,8 @@ var cliCommands = [
15641
16304
  "help"
15642
16305
  ];
15643
16306
  var isCliMode = args.length > 0 && (args[0].startsWith("-") || cliCommands.includes(args[0]));
15644
- if (isCliMode) {
16307
+ var isEntryPoint = typeof module !== "undefined" && require.main === module;
16308
+ if (isEntryPoint && isCliMode) {
15645
16309
  Promise.resolve().then(() => (init_config(), config_exports)).then(({ resolveApiKey: resolveApiKey2, resolveBaseUrl: resolveBaseUrl2 }) => {
15646
16310
  resolveApiKey2();
15647
16311
  resolveBaseUrl2();
@@ -15653,31 +16317,25 @@ if (isCliMode) {
15653
16317
  });
15654
16318
  });
15655
16319
  });
15656
- } else {
15657
- import("@modelcontextprotocol/sdk/server/mcp.js").then(({ McpServer }) => {
15658
- import("@modelcontextprotocol/sdk/server/stdio.js").then(
15659
- ({ StdioServerTransport }) => {
15660
- Promise.all([
15661
- Promise.resolve().then(() => (init_tools(), tools_exports)),
15662
- Promise.resolve().then(() => (init_resources(), resources_exports)),
15663
- Promise.resolve().then(() => (init_prompts(), prompts_exports))
15664
- ]).then(([{ registerAllTools: registerAllTools2 }, { registerResources: registerResources2 }, { registerPrompts: registerPrompts2 }]) => {
15665
- const server = new McpServer({
15666
- name: "speak-ai",
15667
- version: "1.0.0"
15668
- });
15669
- registerAllTools2(server, void 0, { localFileAccess: true, voiceTestRuns: true, aiChat: true, automations: true, voiceTestRunDetails: true, cards: process.env.SPEAK_MCP_CARDS === "true" });
15670
- registerResources2(server);
15671
- registerPrompts2(server);
15672
- const transport = new StdioServerTransport();
15673
- server.connect(transport).then(() => {
15674
- process.stderr.write(
15675
- "[speakai-mcp] Server started on stdio transport\n"
15676
- );
15677
- });
15678
- });
15679
- }
15680
- );
16320
+ } else if (isEntryPoint) {
16321
+ Promise.all([
16322
+ import("@modelcontextprotocol/server"),
16323
+ import("@modelcontextprotocol/server/stdio"),
16324
+ Promise.resolve().then(() => (init_tools(), tools_exports)),
16325
+ Promise.resolve().then(() => (init_resources(), resources_exports)),
16326
+ Promise.resolve().then(() => (init_prompts(), prompts_exports))
16327
+ ]).then(([{ McpServer: McpServer2 }, { serveStdio }, { registerAllTools: registerAllTools2 }, { registerResources: registerResources2 }, { registerPrompts: registerPrompts2 }]) => {
16328
+ serveStdio(() => {
16329
+ const server = new McpServer2({
16330
+ name: "speak-ai",
16331
+ version: "1.0.0"
16332
+ });
16333
+ registerAllTools2(server, void 0, { localFileAccess: true, voiceTestRuns: true, aiChat: true, automations: true, voiceTestRunDetails: true, cards: process.env.SPEAK_MCP_CARDS === "true" });
16334
+ registerResources2(server);
16335
+ registerPrompts2(server);
16336
+ return server;
16337
+ });
16338
+ process.stderr.write("[speakai-mcp] Server started on stdio transport\n");
15681
16339
  });
15682
16340
  }
15683
16341
  // Annotate the CommonJS export names for ESM import in node: