@blastlauncher/runtime 3.0.0-alpha.0 → 3.0.0-alpha.10

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.
@@ -24,8 +24,11 @@ export declare const AI: {
24
24
  readonly "OpenAI_GPT-5.6_Terra": "openai-gpt-5.6-terra";
25
25
  readonly "OpenAI_GPT-5.6_Luna": "openai-gpt-5.6-luna";
26
26
  readonly "OpenAI_GPT-6_Astra": "openai-gpt-6-astra";
27
+ readonly "OpenAI_GPT-6.2_Astra": "openai-gpt-6.2-astra";
27
28
  readonly "OpenAI_GPT-6_Sol": "openai-gpt-6-sol";
28
29
  readonly "OpenAI_GPT-6.1_Sol": "openai-gpt-6.1-sol";
30
+ readonly "OpenAI_GPT-6.2_Sol": "openai-gpt-6.2-sol";
31
+ readonly "OpenAI_GPT-6.1_Terra": "openai-gpt-6.1-terra";
29
32
  readonly "OpenAI_GPT-6_Luna": "openai-gpt-6-luna";
30
33
  readonly "Groq_GPT-OSS_20b": "groq-openai/gpt-oss-20b";
31
34
  readonly "Groq_GPT-OSS_120b": "groq-openai/gpt-oss-120b";
@@ -35,16 +38,20 @@ export declare const AI: {
35
38
  readonly "Anthropic_Claude_Sonnet_5.5": "anthropic-claude-sonnet-5-5";
36
39
  readonly Anthropic_Claude_Opus_5: "anthropic-claude-opus-5";
37
40
  readonly "Anthropic_Claude_Opus_5.5": "anthropic-claude-opus-5-5";
38
- readonly "Anthropic_Claude_Fable_5.1": "anthropic-claude-fable-5-1";
41
+ readonly "Anthropic_Claude_Fable_5.2": "anthropic-claude-fable-5-2";
39
42
  readonly Perplexity_Sonar: "perplexity-sonar";
40
43
  readonly Perplexity_Sonar_Pro: "perplexity-sonar-pro";
41
44
  readonly "Vercel_Muse_Spark_1.3": "gateway-meta/muse-spark-1.3";
42
45
  readonly "Vercel_Muse_Wonder_1.0": "gateway-meta/muse-wonder-1.0";
46
+ readonly Vercel_Muse_Ember: "gateway-meta/muse-ember";
43
47
  readonly Mistral_Large: "mistral-mistral-large-latest";
44
48
  readonly Mistral_Medium: "mistral-mistral-medium-latest";
45
49
  readonly Mistral_Small: "mistral-mistral-small-latest";
46
50
  readonly Mistral_Codestral: "mistral-codestral-latest";
51
+ readonly Google_Gemini_4_Carbon: "google-gemini-4-carbon";
47
52
  readonly Google_Gemini_4_Argon: "google-gemini-4-argon";
53
+ readonly Google_Gemini_4_Hydrogen: "google-gemini-4-hydrogen";
54
+ readonly Google_Gemini_4_Neon: "google-gemini-4-neon";
48
55
  readonly "Google_Gemini_3.8_Flash": "google-gemini-3.8-flash";
49
56
  readonly "Google_Gemini_3.5_Flash_Lite": "google-gemini-3.5-flash-lite";
50
57
  readonly "Google_Gemini_3.1_Pro": "google-gemini-3.1-pro";
@@ -55,16 +62,19 @@ export declare const AI: {
55
62
  readonly "Vercel_GLM-5.3_Flash": "gateway-zai/glm-5.3-flash";
56
63
  readonly "Vercel_Kimi_K2.7_Code": "gateway-moonshotai/kimi-k2.7-code";
57
64
  readonly Vercel_Kimi_K3: "gateway-moonshotai/kimi-k3";
65
+ readonly "Vercel_Kimi_K3.1_Pro": "gateway-moonshotai/kimi-k3.1-pro";
58
66
  readonly Vercel_Gemma_4_31B: "gateway-google/gemma-4-31b-it";
59
67
  readonly Vercel_Inkling: "gateway-thinkingmachines/inkling";
60
- readonly Vercel_Inkling_Small: "gateway-thinkingmachines/inkling-small";
68
+ readonly Vercel_Inkling_2_Small: "gateway-thinkingmachines/inkling-2-small";
61
69
  readonly Vercel_DeepSeek_V4_Flash: "gateway-deepseek/deepseek-v4-flash";
62
70
  readonly "Vercel_DeepSeek_V4.1_Flash": "gateway-deepseek/deepseek-v4.1-flash";
63
71
  readonly Vercel_DeepSeek_V4_Pro: "gateway-deepseek/deepseek-v4-pro-0813";
64
72
  readonly "Vercel_Qwen3.8_Max": "gateway-alibaba/qwen3.8-max";
65
73
  readonly "Anthropic_Claude_Haiku_4.5": "anthropic-claude-4-5-haiku";
74
+ readonly "Anthropic_Claude_Fable_5.1": "anthropic-claude-fable-5-1";
66
75
  readonly Mistral_Nemo: "mistral-open-mistral-nemo";
67
76
  readonly "Google_Gemini_3.7_Flash": "google-gemini-3.7-flash";
77
+ readonly Vercel_Inkling_Small: "gateway-thinkingmachines/inkling";
68
78
  readonly "OpenAI_GPT-5.3_Codex": "openai-gpt-6-sol";
69
79
  readonly "OpenAI_GPT-5.4_nano": "openai-gpt-6-luna";
70
80
  readonly "OpenAI_GPT-5.6_Sol": "openai-gpt-6.1-sol";
@@ -212,8 +222,11 @@ export declare const unstable_AI: {
212
222
  readonly "OpenAI_GPT-5.6_Terra": "openai-gpt-5.6-terra";
213
223
  readonly "OpenAI_GPT-5.6_Luna": "openai-gpt-5.6-luna";
214
224
  readonly "OpenAI_GPT-6_Astra": "openai-gpt-6-astra";
225
+ readonly "OpenAI_GPT-6.2_Astra": "openai-gpt-6.2-astra";
215
226
  readonly "OpenAI_GPT-6_Sol": "openai-gpt-6-sol";
216
227
  readonly "OpenAI_GPT-6.1_Sol": "openai-gpt-6.1-sol";
228
+ readonly "OpenAI_GPT-6.2_Sol": "openai-gpt-6.2-sol";
229
+ readonly "OpenAI_GPT-6.1_Terra": "openai-gpt-6.1-terra";
217
230
  readonly "OpenAI_GPT-6_Luna": "openai-gpt-6-luna";
218
231
  readonly "Groq_GPT-OSS_20b": "groq-openai/gpt-oss-20b";
219
232
  readonly "Groq_GPT-OSS_120b": "groq-openai/gpt-oss-120b";
@@ -223,16 +236,20 @@ export declare const unstable_AI: {
223
236
  readonly "Anthropic_Claude_Sonnet_5.5": "anthropic-claude-sonnet-5-5";
224
237
  readonly Anthropic_Claude_Opus_5: "anthropic-claude-opus-5";
225
238
  readonly "Anthropic_Claude_Opus_5.5": "anthropic-claude-opus-5-5";
226
- readonly "Anthropic_Claude_Fable_5.1": "anthropic-claude-fable-5-1";
239
+ readonly "Anthropic_Claude_Fable_5.2": "anthropic-claude-fable-5-2";
227
240
  readonly Perplexity_Sonar: "perplexity-sonar";
228
241
  readonly Perplexity_Sonar_Pro: "perplexity-sonar-pro";
229
242
  readonly "Vercel_Muse_Spark_1.3": "gateway-meta/muse-spark-1.3";
230
243
  readonly "Vercel_Muse_Wonder_1.0": "gateway-meta/muse-wonder-1.0";
244
+ readonly Vercel_Muse_Ember: "gateway-meta/muse-ember";
231
245
  readonly Mistral_Large: "mistral-mistral-large-latest";
232
246
  readonly Mistral_Medium: "mistral-mistral-medium-latest";
233
247
  readonly Mistral_Small: "mistral-mistral-small-latest";
234
248
  readonly Mistral_Codestral: "mistral-codestral-latest";
249
+ readonly Google_Gemini_4_Carbon: "google-gemini-4-carbon";
235
250
  readonly Google_Gemini_4_Argon: "google-gemini-4-argon";
251
+ readonly Google_Gemini_4_Hydrogen: "google-gemini-4-hydrogen";
252
+ readonly Google_Gemini_4_Neon: "google-gemini-4-neon";
236
253
  readonly "Google_Gemini_3.8_Flash": "google-gemini-3.8-flash";
237
254
  readonly "Google_Gemini_3.5_Flash_Lite": "google-gemini-3.5-flash-lite";
238
255
  readonly "Google_Gemini_3.1_Pro": "google-gemini-3.1-pro";
@@ -243,16 +260,19 @@ export declare const unstable_AI: {
243
260
  readonly "Vercel_GLM-5.3_Flash": "gateway-zai/glm-5.3-flash";
244
261
  readonly "Vercel_Kimi_K2.7_Code": "gateway-moonshotai/kimi-k2.7-code";
245
262
  readonly Vercel_Kimi_K3: "gateway-moonshotai/kimi-k3";
263
+ readonly "Vercel_Kimi_K3.1_Pro": "gateway-moonshotai/kimi-k3.1-pro";
246
264
  readonly Vercel_Gemma_4_31B: "gateway-google/gemma-4-31b-it";
247
265
  readonly Vercel_Inkling: "gateway-thinkingmachines/inkling";
248
- readonly Vercel_Inkling_Small: "gateway-thinkingmachines/inkling-small";
266
+ readonly Vercel_Inkling_2_Small: "gateway-thinkingmachines/inkling-2-small";
249
267
  readonly Vercel_DeepSeek_V4_Flash: "gateway-deepseek/deepseek-v4-flash";
250
268
  readonly "Vercel_DeepSeek_V4.1_Flash": "gateway-deepseek/deepseek-v4.1-flash";
251
269
  readonly Vercel_DeepSeek_V4_Pro: "gateway-deepseek/deepseek-v4-pro-0813";
252
270
  readonly "Vercel_Qwen3.8_Max": "gateway-alibaba/qwen3.8-max";
253
271
  readonly "Anthropic_Claude_Haiku_4.5": "anthropic-claude-4-5-haiku";
272
+ readonly "Anthropic_Claude_Fable_5.1": "anthropic-claude-fable-5-1";
254
273
  readonly Mistral_Nemo: "mistral-open-mistral-nemo";
255
274
  readonly "Google_Gemini_3.7_Flash": "google-gemini-3.7-flash";
275
+ readonly Vercel_Inkling_Small: "gateway-thinkingmachines/inkling";
256
276
  readonly "OpenAI_GPT-5.3_Codex": "openai-gpt-6-sol";
257
277
  readonly "OpenAI_GPT-5.4_nano": "openai-gpt-6-luna";
258
278
  readonly "OpenAI_GPT-5.6_Sol": "openai-gpt-6.1-sol";
@@ -2,7 +2,17 @@
2
2
  // reports both to the Developer Hub; Blast has no network and writes to the
3
3
  // runtime's log channel instead, which the host already collects per session.
4
4
  // The sink is installed by the runtime entry, never by extension code.
5
- import { format } from "node:util";
5
+ function formatValue(value) {
6
+ if (value instanceof Error)
7
+ return `${value.name}: ${value.message}`;
8
+ if (typeof value === "string")
9
+ return value;
10
+ if (value && typeof value === "object") {
11
+ const entries = Object.entries(value).map(([key, entry]) => `${key}: ${formatValue(entry)}`);
12
+ return `{ ${entries.join(", ")} }`;
13
+ }
14
+ return String(value);
15
+ }
6
16
  let sink;
7
17
  /** Installs (or, with `undefined`, removes) the runtime log sink. */
8
18
  export function setRuntimeLogSink(next) {
@@ -13,7 +23,7 @@ export function setRuntimeLogSink(next) {
13
23
  * a no-op: reporting must never be the reason a command fails.
14
24
  */
15
25
  export function captureException(exception) {
16
- sink?.("error", `captureException: ${format(exception)}`);
26
+ sink?.("error", `captureException: ${formatValue(exception)}`);
17
27
  }
18
28
  /**
19
29
  * Records heap statistics with a label. Raycast only records when memory
@@ -21,6 +31,6 @@ export function captureException(exception) {
21
31
  * to keep, and nothing is returned to the extension.
22
32
  */
23
33
  export function captureMemorySnapshot(label) {
24
- const { heapUsed, heapTotal } = process.memoryUsage();
25
- sink?.("debug", `captureMemorySnapshot: ${label} heapUsed=${heapUsed} heapTotal=${heapTotal}`);
34
+ const memory = globalThis.process?.memoryUsage?.();
35
+ sink?.("debug", `captureMemorySnapshot: ${label} heapUsed=${memory?.heapUsed ?? 0} heapTotal=${memory?.heapTotal ?? 0}`);
26
36
  }
@@ -11,8 +11,11 @@ export declare const AI: {
11
11
  readonly "OpenAI_GPT-5.6_Terra": "openai-gpt-5.6-terra";
12
12
  readonly "OpenAI_GPT-5.6_Luna": "openai-gpt-5.6-luna";
13
13
  readonly "OpenAI_GPT-6_Astra": "openai-gpt-6-astra";
14
+ readonly "OpenAI_GPT-6.2_Astra": "openai-gpt-6.2-astra";
14
15
  readonly "OpenAI_GPT-6_Sol": "openai-gpt-6-sol";
15
16
  readonly "OpenAI_GPT-6.1_Sol": "openai-gpt-6.1-sol";
17
+ readonly "OpenAI_GPT-6.2_Sol": "openai-gpt-6.2-sol";
18
+ readonly "OpenAI_GPT-6.1_Terra": "openai-gpt-6.1-terra";
16
19
  readonly "OpenAI_GPT-6_Luna": "openai-gpt-6-luna";
17
20
  readonly "Groq_GPT-OSS_20b": "groq-openai/gpt-oss-20b";
18
21
  readonly "Groq_GPT-OSS_120b": "groq-openai/gpt-oss-120b";
@@ -22,16 +25,20 @@ export declare const AI: {
22
25
  readonly "Anthropic_Claude_Sonnet_5.5": "anthropic-claude-sonnet-5-5";
23
26
  readonly Anthropic_Claude_Opus_5: "anthropic-claude-opus-5";
24
27
  readonly "Anthropic_Claude_Opus_5.5": "anthropic-claude-opus-5-5";
25
- readonly "Anthropic_Claude_Fable_5.1": "anthropic-claude-fable-5-1";
28
+ readonly "Anthropic_Claude_Fable_5.2": "anthropic-claude-fable-5-2";
26
29
  readonly Perplexity_Sonar: "perplexity-sonar";
27
30
  readonly Perplexity_Sonar_Pro: "perplexity-sonar-pro";
28
31
  readonly "Vercel_Muse_Spark_1.3": "gateway-meta/muse-spark-1.3";
29
32
  readonly "Vercel_Muse_Wonder_1.0": "gateway-meta/muse-wonder-1.0";
33
+ readonly Vercel_Muse_Ember: "gateway-meta/muse-ember";
30
34
  readonly Mistral_Large: "mistral-mistral-large-latest";
31
35
  readonly Mistral_Medium: "mistral-mistral-medium-latest";
32
36
  readonly Mistral_Small: "mistral-mistral-small-latest";
33
37
  readonly Mistral_Codestral: "mistral-codestral-latest";
38
+ readonly Google_Gemini_4_Carbon: "google-gemini-4-carbon";
34
39
  readonly Google_Gemini_4_Argon: "google-gemini-4-argon";
40
+ readonly Google_Gemini_4_Hydrogen: "google-gemini-4-hydrogen";
41
+ readonly Google_Gemini_4_Neon: "google-gemini-4-neon";
35
42
  readonly "Google_Gemini_3.8_Flash": "google-gemini-3.8-flash";
36
43
  readonly "Google_Gemini_3.5_Flash_Lite": "google-gemini-3.5-flash-lite";
37
44
  readonly "Google_Gemini_3.1_Pro": "google-gemini-3.1-pro";
@@ -42,16 +49,19 @@ export declare const AI: {
42
49
  readonly "Vercel_GLM-5.3_Flash": "gateway-zai/glm-5.3-flash";
43
50
  readonly "Vercel_Kimi_K2.7_Code": "gateway-moonshotai/kimi-k2.7-code";
44
51
  readonly Vercel_Kimi_K3: "gateway-moonshotai/kimi-k3";
52
+ readonly "Vercel_Kimi_K3.1_Pro": "gateway-moonshotai/kimi-k3.1-pro";
45
53
  readonly Vercel_Gemma_4_31B: "gateway-google/gemma-4-31b-it";
46
54
  readonly Vercel_Inkling: "gateway-thinkingmachines/inkling";
47
- readonly Vercel_Inkling_Small: "gateway-thinkingmachines/inkling-small";
55
+ readonly Vercel_Inkling_2_Small: "gateway-thinkingmachines/inkling-2-small";
48
56
  readonly Vercel_DeepSeek_V4_Flash: "gateway-deepseek/deepseek-v4-flash";
49
57
  readonly "Vercel_DeepSeek_V4.1_Flash": "gateway-deepseek/deepseek-v4.1-flash";
50
58
  readonly Vercel_DeepSeek_V4_Pro: "gateway-deepseek/deepseek-v4-pro-0813";
51
59
  readonly "Vercel_Qwen3.8_Max": "gateway-alibaba/qwen3.8-max";
52
60
  readonly "Anthropic_Claude_Haiku_4.5": "anthropic-claude-4-5-haiku";
61
+ readonly "Anthropic_Claude_Fable_5.1": "anthropic-claude-fable-5-1";
53
62
  readonly Mistral_Nemo: "mistral-open-mistral-nemo";
54
63
  readonly "Google_Gemini_3.7_Flash": "google-gemini-3.7-flash";
64
+ readonly Vercel_Inkling_Small: "gateway-thinkingmachines/inkling";
55
65
  readonly "OpenAI_GPT-5.3_Codex": "openai-gpt-6-sol";
56
66
  readonly "OpenAI_GPT-5.4_nano": "openai-gpt-6-luna";
57
67
  readonly "OpenAI_GPT-5.6_Sol": "openai-gpt-6.1-sol";
@@ -9,8 +9,11 @@ export const AI = {
9
9
  "OpenAI_GPT-5.6_Terra": "openai-gpt-5.6-terra",
10
10
  "OpenAI_GPT-5.6_Luna": "openai-gpt-5.6-luna",
11
11
  "OpenAI_GPT-6_Astra": "openai-gpt-6-astra",
12
+ "OpenAI_GPT-6.2_Astra": "openai-gpt-6.2-astra",
12
13
  "OpenAI_GPT-6_Sol": "openai-gpt-6-sol",
13
14
  "OpenAI_GPT-6.1_Sol": "openai-gpt-6.1-sol",
15
+ "OpenAI_GPT-6.2_Sol": "openai-gpt-6.2-sol",
16
+ "OpenAI_GPT-6.1_Terra": "openai-gpt-6.1-terra",
14
17
  "OpenAI_GPT-6_Luna": "openai-gpt-6-luna",
15
18
  "Groq_GPT-OSS_20b": "groq-openai/gpt-oss-20b",
16
19
  "Groq_GPT-OSS_120b": "groq-openai/gpt-oss-120b",
@@ -20,16 +23,20 @@ export const AI = {
20
23
  "Anthropic_Claude_Sonnet_5.5": "anthropic-claude-sonnet-5-5",
21
24
  Anthropic_Claude_Opus_5: "anthropic-claude-opus-5",
22
25
  "Anthropic_Claude_Opus_5.5": "anthropic-claude-opus-5-5",
23
- "Anthropic_Claude_Fable_5.1": "anthropic-claude-fable-5-1",
26
+ "Anthropic_Claude_Fable_5.2": "anthropic-claude-fable-5-2",
24
27
  Perplexity_Sonar: "perplexity-sonar",
25
28
  Perplexity_Sonar_Pro: "perplexity-sonar-pro",
26
29
  "Vercel_Muse_Spark_1.3": "gateway-meta/muse-spark-1.3",
27
30
  "Vercel_Muse_Wonder_1.0": "gateway-meta/muse-wonder-1.0",
31
+ Vercel_Muse_Ember: "gateway-meta/muse-ember",
28
32
  Mistral_Large: "mistral-mistral-large-latest",
29
33
  Mistral_Medium: "mistral-mistral-medium-latest",
30
34
  Mistral_Small: "mistral-mistral-small-latest",
31
35
  Mistral_Codestral: "mistral-codestral-latest",
36
+ Google_Gemini_4_Carbon: "google-gemini-4-carbon",
32
37
  Google_Gemini_4_Argon: "google-gemini-4-argon",
38
+ Google_Gemini_4_Hydrogen: "google-gemini-4-hydrogen",
39
+ Google_Gemini_4_Neon: "google-gemini-4-neon",
33
40
  "Google_Gemini_3.8_Flash": "google-gemini-3.8-flash",
34
41
  "Google_Gemini_3.5_Flash_Lite": "google-gemini-3.5-flash-lite",
35
42
  "Google_Gemini_3.1_Pro": "google-gemini-3.1-pro",
@@ -40,16 +47,19 @@ export const AI = {
40
47
  "Vercel_GLM-5.3_Flash": "gateway-zai/glm-5.3-flash",
41
48
  "Vercel_Kimi_K2.7_Code": "gateway-moonshotai/kimi-k2.7-code",
42
49
  Vercel_Kimi_K3: "gateway-moonshotai/kimi-k3",
50
+ "Vercel_Kimi_K3.1_Pro": "gateway-moonshotai/kimi-k3.1-pro",
43
51
  Vercel_Gemma_4_31B: "gateway-google/gemma-4-31b-it",
44
52
  Vercel_Inkling: "gateway-thinkingmachines/inkling",
45
- Vercel_Inkling_Small: "gateway-thinkingmachines/inkling-small",
53
+ Vercel_Inkling_2_Small: "gateway-thinkingmachines/inkling-2-small",
46
54
  Vercel_DeepSeek_V4_Flash: "gateway-deepseek/deepseek-v4-flash",
47
55
  "Vercel_DeepSeek_V4.1_Flash": "gateway-deepseek/deepseek-v4.1-flash",
48
56
  Vercel_DeepSeek_V4_Pro: "gateway-deepseek/deepseek-v4-pro-0813",
49
57
  "Vercel_Qwen3.8_Max": "gateway-alibaba/qwen3.8-max",
50
58
  "Anthropic_Claude_Haiku_4.5": "anthropic-claude-4-5-haiku",
59
+ "Anthropic_Claude_Fable_5.1": "anthropic-claude-fable-5-1",
51
60
  Mistral_Nemo: "mistral-open-mistral-nemo",
52
61
  "Google_Gemini_3.7_Flash": "google-gemini-3.7-flash",
62
+ Vercel_Inkling_Small: "gateway-thinkingmachines/inkling",
53
63
  "OpenAI_GPT-5.3_Codex": "openai-gpt-6-sol",
54
64
  "OpenAI_GPT-5.4_nano": "openai-gpt-6-luna",
55
65
  "OpenAI_GPT-5.6_Sol": "openai-gpt-6.1-sol",
@@ -38,8 +38,11 @@ export declare const AI: {
38
38
  readonly "OpenAI_GPT-5.6_Terra": "openai-gpt-5.6-terra";
39
39
  readonly "OpenAI_GPT-5.6_Luna": "openai-gpt-5.6-luna";
40
40
  readonly "OpenAI_GPT-6_Astra": "openai-gpt-6-astra";
41
+ readonly "OpenAI_GPT-6.2_Astra": "openai-gpt-6.2-astra";
41
42
  readonly "OpenAI_GPT-6_Sol": "openai-gpt-6-sol";
42
43
  readonly "OpenAI_GPT-6.1_Sol": "openai-gpt-6.1-sol";
44
+ readonly "OpenAI_GPT-6.2_Sol": "openai-gpt-6.2-sol";
45
+ readonly "OpenAI_GPT-6.1_Terra": "openai-gpt-6.1-terra";
43
46
  readonly "OpenAI_GPT-6_Luna": "openai-gpt-6-luna";
44
47
  readonly "Groq_GPT-OSS_20b": "groq-openai/gpt-oss-20b";
45
48
  readonly "Groq_GPT-OSS_120b": "groq-openai/gpt-oss-120b";
@@ -49,16 +52,20 @@ export declare const AI: {
49
52
  readonly "Anthropic_Claude_Sonnet_5.5": "anthropic-claude-sonnet-5-5";
50
53
  readonly Anthropic_Claude_Opus_5: "anthropic-claude-opus-5";
51
54
  readonly "Anthropic_Claude_Opus_5.5": "anthropic-claude-opus-5-5";
52
- readonly "Anthropic_Claude_Fable_5.1": "anthropic-claude-fable-5-1";
55
+ readonly "Anthropic_Claude_Fable_5.2": "anthropic-claude-fable-5-2";
53
56
  readonly Perplexity_Sonar: "perplexity-sonar";
54
57
  readonly Perplexity_Sonar_Pro: "perplexity-sonar-pro";
55
58
  readonly "Vercel_Muse_Spark_1.3": "gateway-meta/muse-spark-1.3";
56
59
  readonly "Vercel_Muse_Wonder_1.0": "gateway-meta/muse-wonder-1.0";
60
+ readonly Vercel_Muse_Ember: "gateway-meta/muse-ember";
57
61
  readonly Mistral_Large: "mistral-mistral-large-latest";
58
62
  readonly Mistral_Medium: "mistral-mistral-medium-latest";
59
63
  readonly Mistral_Small: "mistral-mistral-small-latest";
60
64
  readonly Mistral_Codestral: "mistral-codestral-latest";
65
+ readonly Google_Gemini_4_Carbon: "google-gemini-4-carbon";
61
66
  readonly Google_Gemini_4_Argon: "google-gemini-4-argon";
67
+ readonly Google_Gemini_4_Hydrogen: "google-gemini-4-hydrogen";
68
+ readonly Google_Gemini_4_Neon: "google-gemini-4-neon";
62
69
  readonly "Google_Gemini_3.8_Flash": "google-gemini-3.8-flash";
63
70
  readonly "Google_Gemini_3.5_Flash_Lite": "google-gemini-3.5-flash-lite";
64
71
  readonly "Google_Gemini_3.1_Pro": "google-gemini-3.1-pro";
@@ -69,16 +76,19 @@ export declare const AI: {
69
76
  readonly "Vercel_GLM-5.3_Flash": "gateway-zai/glm-5.3-flash";
70
77
  readonly "Vercel_Kimi_K2.7_Code": "gateway-moonshotai/kimi-k2.7-code";
71
78
  readonly Vercel_Kimi_K3: "gateway-moonshotai/kimi-k3";
79
+ readonly "Vercel_Kimi_K3.1_Pro": "gateway-moonshotai/kimi-k3.1-pro";
72
80
  readonly Vercel_Gemma_4_31B: "gateway-google/gemma-4-31b-it";
73
81
  readonly Vercel_Inkling: "gateway-thinkingmachines/inkling";
74
- readonly Vercel_Inkling_Small: "gateway-thinkingmachines/inkling-small";
82
+ readonly Vercel_Inkling_2_Small: "gateway-thinkingmachines/inkling-2-small";
75
83
  readonly Vercel_DeepSeek_V4_Flash: "gateway-deepseek/deepseek-v4-flash";
76
84
  readonly "Vercel_DeepSeek_V4.1_Flash": "gateway-deepseek/deepseek-v4.1-flash";
77
85
  readonly Vercel_DeepSeek_V4_Pro: "gateway-deepseek/deepseek-v4-pro-0813";
78
86
  readonly "Vercel_Qwen3.8_Max": "gateway-alibaba/qwen3.8-max";
79
87
  readonly "Anthropic_Claude_Haiku_4.5": "anthropic-claude-4-5-haiku";
88
+ readonly "Anthropic_Claude_Fable_5.1": "anthropic-claude-fable-5-1";
80
89
  readonly Mistral_Nemo: "mistral-open-mistral-nemo";
81
90
  readonly "Google_Gemini_3.7_Flash": "google-gemini-3.7-flash";
91
+ readonly Vercel_Inkling_Small: "gateway-thinkingmachines/inkling";
82
92
  readonly "OpenAI_GPT-5.3_Codex": "openai-gpt-6-sol";
83
93
  readonly "OpenAI_GPT-5.4_nano": "openai-gpt-6-luna";
84
94
  readonly "OpenAI_GPT-5.6_Sol": "openai-gpt-6.1-sol";
@@ -407,8 +417,11 @@ export declare const unstable_AI: {
407
417
  readonly "OpenAI_GPT-5.6_Terra": "openai-gpt-5.6-terra";
408
418
  readonly "OpenAI_GPT-5.6_Luna": "openai-gpt-5.6-luna";
409
419
  readonly "OpenAI_GPT-6_Astra": "openai-gpt-6-astra";
420
+ readonly "OpenAI_GPT-6.2_Astra": "openai-gpt-6.2-astra";
410
421
  readonly "OpenAI_GPT-6_Sol": "openai-gpt-6-sol";
411
422
  readonly "OpenAI_GPT-6.1_Sol": "openai-gpt-6.1-sol";
423
+ readonly "OpenAI_GPT-6.2_Sol": "openai-gpt-6.2-sol";
424
+ readonly "OpenAI_GPT-6.1_Terra": "openai-gpt-6.1-terra";
412
425
  readonly "OpenAI_GPT-6_Luna": "openai-gpt-6-luna";
413
426
  readonly "Groq_GPT-OSS_20b": "groq-openai/gpt-oss-20b";
414
427
  readonly "Groq_GPT-OSS_120b": "groq-openai/gpt-oss-120b";
@@ -418,16 +431,20 @@ export declare const unstable_AI: {
418
431
  readonly "Anthropic_Claude_Sonnet_5.5": "anthropic-claude-sonnet-5-5";
419
432
  readonly Anthropic_Claude_Opus_5: "anthropic-claude-opus-5";
420
433
  readonly "Anthropic_Claude_Opus_5.5": "anthropic-claude-opus-5-5";
421
- readonly "Anthropic_Claude_Fable_5.1": "anthropic-claude-fable-5-1";
434
+ readonly "Anthropic_Claude_Fable_5.2": "anthropic-claude-fable-5-2";
422
435
  readonly Perplexity_Sonar: "perplexity-sonar";
423
436
  readonly Perplexity_Sonar_Pro: "perplexity-sonar-pro";
424
437
  readonly "Vercel_Muse_Spark_1.3": "gateway-meta/muse-spark-1.3";
425
438
  readonly "Vercel_Muse_Wonder_1.0": "gateway-meta/muse-wonder-1.0";
439
+ readonly Vercel_Muse_Ember: "gateway-meta/muse-ember";
426
440
  readonly Mistral_Large: "mistral-mistral-large-latest";
427
441
  readonly Mistral_Medium: "mistral-mistral-medium-latest";
428
442
  readonly Mistral_Small: "mistral-mistral-small-latest";
429
443
  readonly Mistral_Codestral: "mistral-codestral-latest";
444
+ readonly Google_Gemini_4_Carbon: "google-gemini-4-carbon";
430
445
  readonly Google_Gemini_4_Argon: "google-gemini-4-argon";
446
+ readonly Google_Gemini_4_Hydrogen: "google-gemini-4-hydrogen";
447
+ readonly Google_Gemini_4_Neon: "google-gemini-4-neon";
431
448
  readonly "Google_Gemini_3.8_Flash": "google-gemini-3.8-flash";
432
449
  readonly "Google_Gemini_3.5_Flash_Lite": "google-gemini-3.5-flash-lite";
433
450
  readonly "Google_Gemini_3.1_Pro": "google-gemini-3.1-pro";
@@ -438,16 +455,19 @@ export declare const unstable_AI: {
438
455
  readonly "Vercel_GLM-5.3_Flash": "gateway-zai/glm-5.3-flash";
439
456
  readonly "Vercel_Kimi_K2.7_Code": "gateway-moonshotai/kimi-k2.7-code";
440
457
  readonly Vercel_Kimi_K3: "gateway-moonshotai/kimi-k3";
458
+ readonly "Vercel_Kimi_K3.1_Pro": "gateway-moonshotai/kimi-k3.1-pro";
441
459
  readonly Vercel_Gemma_4_31B: "gateway-google/gemma-4-31b-it";
442
460
  readonly Vercel_Inkling: "gateway-thinkingmachines/inkling";
443
- readonly Vercel_Inkling_Small: "gateway-thinkingmachines/inkling-small";
461
+ readonly Vercel_Inkling_2_Small: "gateway-thinkingmachines/inkling-2-small";
444
462
  readonly Vercel_DeepSeek_V4_Flash: "gateway-deepseek/deepseek-v4-flash";
445
463
  readonly "Vercel_DeepSeek_V4.1_Flash": "gateway-deepseek/deepseek-v4.1-flash";
446
464
  readonly Vercel_DeepSeek_V4_Pro: "gateway-deepseek/deepseek-v4-pro-0813";
447
465
  readonly "Vercel_Qwen3.8_Max": "gateway-alibaba/qwen3.8-max";
448
466
  readonly "Anthropic_Claude_Haiku_4.5": "anthropic-claude-4-5-haiku";
467
+ readonly "Anthropic_Claude_Fable_5.1": "anthropic-claude-fable-5-1";
449
468
  readonly Mistral_Nemo: "mistral-open-mistral-nemo";
450
469
  readonly "Google_Gemini_3.7_Flash": "google-gemini-3.7-flash";
470
+ readonly Vercel_Inkling_Small: "gateway-thinkingmachines/inkling";
451
471
  readonly "OpenAI_GPT-5.3_Codex": "openai-gpt-6-sol";
452
472
  readonly "OpenAI_GPT-5.4_nano": "openai-gpt-6-luna";
453
473
  readonly "OpenAI_GPT-5.6_Sol": "openai-gpt-6.1-sol";
@@ -50,7 +50,7 @@ export function NavigationProvider({ children }) {
50
50
  const popToRootStack = useMemo(() => (options) => {
51
51
  setPopToRootOptions(options);
52
52
  // The root view is the provider's own children, not an entry (decision
53
- // 0003), so nothing above it is kept; onPops run topmost first, like
53
+ // 0001), so nothing above it is kept; onPops run topmost first, like
54
54
  // successive `pop()` calls.
55
55
  if (entries.current.length === 0)
56
56
  return;
@@ -9,8 +9,11 @@ export declare const AI: {
9
9
  readonly "OpenAI_GPT-5.6_Terra": "openai-gpt-5.6-terra";
10
10
  readonly "OpenAI_GPT-5.6_Luna": "openai-gpt-5.6-luna";
11
11
  readonly "OpenAI_GPT-6_Astra": "openai-gpt-6-astra";
12
+ readonly "OpenAI_GPT-6.2_Astra": "openai-gpt-6.2-astra";
12
13
  readonly "OpenAI_GPT-6_Sol": "openai-gpt-6-sol";
13
14
  readonly "OpenAI_GPT-6.1_Sol": "openai-gpt-6.1-sol";
15
+ readonly "OpenAI_GPT-6.2_Sol": "openai-gpt-6.2-sol";
16
+ readonly "OpenAI_GPT-6.1_Terra": "openai-gpt-6.1-terra";
14
17
  readonly "OpenAI_GPT-6_Luna": "openai-gpt-6-luna";
15
18
  readonly "Groq_GPT-OSS_20b": "groq-openai/gpt-oss-20b";
16
19
  readonly "Groq_GPT-OSS_120b": "groq-openai/gpt-oss-120b";
@@ -20,16 +23,20 @@ export declare const AI: {
20
23
  readonly "Anthropic_Claude_Sonnet_5.5": "anthropic-claude-sonnet-5-5";
21
24
  readonly Anthropic_Claude_Opus_5: "anthropic-claude-opus-5";
22
25
  readonly "Anthropic_Claude_Opus_5.5": "anthropic-claude-opus-5-5";
23
- readonly "Anthropic_Claude_Fable_5.1": "anthropic-claude-fable-5-1";
26
+ readonly "Anthropic_Claude_Fable_5.2": "anthropic-claude-fable-5-2";
24
27
  readonly Perplexity_Sonar: "perplexity-sonar";
25
28
  readonly Perplexity_Sonar_Pro: "perplexity-sonar-pro";
26
29
  readonly "Vercel_Muse_Spark_1.3": "gateway-meta/muse-spark-1.3";
27
30
  readonly "Vercel_Muse_Wonder_1.0": "gateway-meta/muse-wonder-1.0";
31
+ readonly Vercel_Muse_Ember: "gateway-meta/muse-ember";
28
32
  readonly Mistral_Large: "mistral-mistral-large-latest";
29
33
  readonly Mistral_Medium: "mistral-mistral-medium-latest";
30
34
  readonly Mistral_Small: "mistral-mistral-small-latest";
31
35
  readonly Mistral_Codestral: "mistral-codestral-latest";
36
+ readonly Google_Gemini_4_Carbon: "google-gemini-4-carbon";
32
37
  readonly Google_Gemini_4_Argon: "google-gemini-4-argon";
38
+ readonly Google_Gemini_4_Hydrogen: "google-gemini-4-hydrogen";
39
+ readonly Google_Gemini_4_Neon: "google-gemini-4-neon";
33
40
  readonly "Google_Gemini_3.8_Flash": "google-gemini-3.8-flash";
34
41
  readonly "Google_Gemini_3.5_Flash_Lite": "google-gemini-3.5-flash-lite";
35
42
  readonly "Google_Gemini_3.1_Pro": "google-gemini-3.1-pro";
@@ -40,16 +47,19 @@ export declare const AI: {
40
47
  readonly "Vercel_GLM-5.3_Flash": "gateway-zai/glm-5.3-flash";
41
48
  readonly "Vercel_Kimi_K2.7_Code": "gateway-moonshotai/kimi-k2.7-code";
42
49
  readonly Vercel_Kimi_K3: "gateway-moonshotai/kimi-k3";
50
+ readonly "Vercel_Kimi_K3.1_Pro": "gateway-moonshotai/kimi-k3.1-pro";
43
51
  readonly Vercel_Gemma_4_31B: "gateway-google/gemma-4-31b-it";
44
52
  readonly Vercel_Inkling: "gateway-thinkingmachines/inkling";
45
- readonly Vercel_Inkling_Small: "gateway-thinkingmachines/inkling-small";
53
+ readonly Vercel_Inkling_2_Small: "gateway-thinkingmachines/inkling-2-small";
46
54
  readonly Vercel_DeepSeek_V4_Flash: "gateway-deepseek/deepseek-v4-flash";
47
55
  readonly "Vercel_DeepSeek_V4.1_Flash": "gateway-deepseek/deepseek-v4.1-flash";
48
56
  readonly Vercel_DeepSeek_V4_Pro: "gateway-deepseek/deepseek-v4-pro-0813";
49
57
  readonly "Vercel_Qwen3.8_Max": "gateway-alibaba/qwen3.8-max";
50
58
  readonly "Anthropic_Claude_Haiku_4.5": "anthropic-claude-4-5-haiku";
59
+ readonly "Anthropic_Claude_Fable_5.1": "anthropic-claude-fable-5-1";
51
60
  readonly Mistral_Nemo: "mistral-open-mistral-nemo";
52
61
  readonly "Google_Gemini_3.7_Flash": "google-gemini-3.7-flash";
62
+ readonly Vercel_Inkling_Small: "gateway-thinkingmachines/inkling";
53
63
  readonly "OpenAI_GPT-5.3_Codex": "openai-gpt-6-sol";
54
64
  readonly "OpenAI_GPT-5.4_nano": "openai-gpt-6-luna";
55
65
  readonly "OpenAI_GPT-5.6_Sol": "openai-gpt-6.1-sol";
@@ -1,6 +1,6 @@
1
1
  // `closeMainWindow` from the declarations. Closing the window is a client
2
2
  // action, so the runtime records the request on the root `Navigation` scene
3
- // node (decision 0001, like HUD in decision 0004) and resolves. A no-view
3
+ // node (decision 0001, like HUD in decision 0001) and resolves. A no-view
4
4
  // command mounts its scene on the first request, exactly like feedback.
5
5
  import { PopToRootType } from "./enums.generated.js";
6
6
  import { mountScene } from "./feedback.js";
@@ -0,0 +1,19 @@
1
+ import type { InitCommand } from "@blastlauncher/protocol";
2
+ import { type CommandModule } from "./core.js";
3
+ export type BrowserMessagePort = {
4
+ postMessage(message: unknown): void;
5
+ addEventListener(type: "message", listener: (event: any) => void): void;
6
+ removeEventListener?(type: "message", listener: (event: any) => void): void;
7
+ start?(): void;
8
+ };
9
+ export type BrowserRuntimeOptions = {
10
+ port: BrowserMessagePort;
11
+ /** A pre-evaluated command module, or a loader for the init command. */
12
+ command?: CommandModule;
13
+ loadCommand?: (command: InitCommand) => Promise<CommandModule> | CommandModule;
14
+ };
15
+ export type BrowserExitMessage = {
16
+ type: "exit";
17
+ code: number;
18
+ };
19
+ export declare function startBrowserRuntime(options: BrowserRuntimeOptions): () => void;
@@ -0,0 +1,32 @@
1
+ import { startRuntime } from "./core.js";
2
+ /* oxlint-disable unicorn/consistent-function-scoping */
3
+ export function startBrowserRuntime(options) {
4
+ if (!options.command && !options.loadCommand)
5
+ throw new Error("Browser runtime requires command or loadCommand");
6
+ const loadCommand = options.loadCommand ?? (() => options.command);
7
+ let removeListener;
8
+ let receive = () => { };
9
+ const listener = (event) => receive(event.data);
10
+ const runtime = startRuntime({
11
+ send(message) {
12
+ // MessagePort has no target-origin argument; this is already scoped to the port.
13
+ // oxlint-disable-next-line unicorn/require-post-message-target-origin
14
+ options.port.postMessage(message);
15
+ },
16
+ onMessage(onMessage) {
17
+ receive = onMessage;
18
+ options.port.addEventListener("message", listener);
19
+ removeListener = () => options.port.removeEventListener?.("message", listener);
20
+ options.port.start?.();
21
+ return () => removeListener?.();
22
+ },
23
+ exit(code) {
24
+ // MessagePort has no target-origin argument; this is already scoped to the port.
25
+ // oxlint-disable-next-line unicorn/require-post-message-target-origin
26
+ options.port.postMessage({ type: "exit", code });
27
+ removeListener?.();
28
+ },
29
+ loadCommand,
30
+ });
31
+ return () => runtime();
32
+ }
package/dist/core.d.ts ADDED
@@ -0,0 +1,18 @@
1
+ import { type InitCommand, type LogLevel, type RuntimeMessage } from "@blastlauncher/protocol";
2
+ import { type LaunchProps } from "./api/launch.js";
3
+ export type CommandModule = {
4
+ default?: (props: LaunchProps) => unknown;
5
+ getModels?: unknown;
6
+ streamCompletion?: unknown;
7
+ };
8
+ export type RuntimeOptions = {
9
+ send(message: RuntimeMessage): void;
10
+ onMessage(listener: (value: unknown) => void): () => void;
11
+ exit(code: number): void;
12
+ loadCommand(command: InitCommand): Promise<CommandModule> | CommandModule;
13
+ log?(level: LogLevel, args: unknown[]): void;
14
+ };
15
+ export type RuntimeController = (() => void) & {
16
+ fatal(error: unknown, code?: string): void;
17
+ };
18
+ export declare function startRuntime(options: RuntimeOptions): RuntimeController;