@austinthesing/magic-shell 1.2.1 → 1.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -37216,6 +37216,78 @@ import { cwd as getCwd } from "process";
37216
37216
 
37217
37217
  // src/lib/models.ts
37218
37218
  var OPENROUTER_MODELS = [
37219
+ {
37220
+ id: "openai/gpt-6.2-astra",
37221
+ name: "GPT 6.2 Astra",
37222
+ description: "OpenAI flagship for complex engineering, reasoning, and agentic work.",
37223
+ category: "reasoning",
37224
+ provider: "openrouter",
37225
+ contextLength: 1050000,
37226
+ cost: "premium"
37227
+ },
37228
+ {
37229
+ id: "openai/gpt-6.2-sol",
37230
+ name: "GPT 6.2 Sol",
37231
+ description: "Efficient OpenAI model for everyday coding and agentic workflows.",
37232
+ category: "reasoning",
37233
+ provider: "openrouter",
37234
+ contextLength: 1050000,
37235
+ cost: "premium"
37236
+ },
37237
+ {
37238
+ id: "thinkingmachines/inkling-2-mini",
37239
+ name: "Inkling 2 Mini",
37240
+ description: "Compact open-weight multimodal reasoning model with tool use.",
37241
+ category: "smart",
37242
+ provider: "openrouter",
37243
+ contextLength: 1048576,
37244
+ cost: "lower-cost"
37245
+ },
37246
+ {
37247
+ id: "radixark/daisyrose-27b",
37248
+ name: "DaisyRose 27B",
37249
+ description: "Open-weight multimodal model trained for long-horizon coding agents.",
37250
+ category: "reasoning",
37251
+ provider: "openrouter",
37252
+ contextLength: 262144,
37253
+ cost: "lower-cost"
37254
+ },
37255
+ {
37256
+ id: "anthropic/claude-fable-5.2",
37257
+ name: "Claude Fable 5.2",
37258
+ description: "Anthropic's newest model for demanding reasoning and long-horizon agents.",
37259
+ category: "reasoning",
37260
+ provider: "openrouter",
37261
+ contextLength: 1e6,
37262
+ cost: "premium"
37263
+ },
37264
+ {
37265
+ id: "thinkingmachines/inkling-2-small:free",
37266
+ name: "Inkling 2 Small (Free)",
37267
+ description: "Free open-weight multimodal model for coding and tool use.",
37268
+ category: "smart",
37269
+ provider: "openrouter",
37270
+ contextLength: 1048576,
37271
+ cost: "free"
37272
+ },
37273
+ {
37274
+ id: "ricursiveai/ripple-65b-preview",
37275
+ name: "Ripple 65B Preview",
37276
+ description: "Open-weight coding model with native tool calling and long context.",
37277
+ category: "reasoning",
37278
+ provider: "openrouter",
37279
+ contextLength: 1048576,
37280
+ cost: "lower-cost"
37281
+ },
37282
+ {
37283
+ id: "tencent/hy4",
37284
+ name: "Tencent Hy4",
37285
+ description: "Open-weight model for coding agents and long-horizon tool use.",
37286
+ category: "reasoning",
37287
+ provider: "openrouter",
37288
+ contextLength: 1048576,
37289
+ cost: "lower-cost"
37290
+ },
37219
37291
  {
37220
37292
  id: "openai/gpt-6.1-terra",
37221
37293
  name: "GPT 6.1 Terra",
@@ -37597,6 +37669,10 @@ var OPENROUTER_MODELS = [
37597
37669
  ];
37598
37670
  var VERCEL_AI_GATEWAY_MODELS = [
37599
37671
  ...OPENROUTER_MODELS.filter((model) => [
37672
+ "openai/gpt-6.2-astra",
37673
+ "openai/gpt-6.2-sol",
37674
+ "anthropic/claude-fable-5.2",
37675
+ "tencent/hy4",
37600
37676
  "openai/gpt-6.1-terra",
37601
37677
  "moonshotai/kimi-k3.1-pro",
37602
37678
  "minimax/minimax-m3.1-flash",
@@ -37618,6 +37694,15 @@ var VERCEL_AI_GATEWAY_MODELS = [
37618
37694
  "anthropic/claude-fable-5.1",
37619
37695
  "anthropic/claude-fable-5"
37620
37696
  ].includes(model.id)).map((model) => ({ ...model, provider: "vercel-ai-gateway" })),
37697
+ {
37698
+ id: "thinkingmachines/inkling-2-small",
37699
+ name: "Inkling 2 Small",
37700
+ description: "Open-weight multimodal model for coding and tool use.",
37701
+ category: "smart",
37702
+ provider: "vercel-ai-gateway",
37703
+ contextLength: 1048576,
37704
+ cost: "lower-cost"
37705
+ },
37621
37706
  {
37622
37707
  id: "meta/muse-spark-open",
37623
37708
  name: "Muse Spark Open",
@@ -37710,6 +37795,15 @@ var VERCEL_AI_GATEWAY_MODELS = [
37710
37795
  }
37711
37796
  ];
37712
37797
  var CLOUDFLARE_AI_GATEWAY_MODELS = [
37798
+ {
37799
+ id: "anthropic/claude-fable-5.2",
37800
+ name: "Claude Fable 5.2",
37801
+ description: "Anthropic's newest model for demanding reasoning and long-horizon agents.",
37802
+ category: "reasoning",
37803
+ provider: "cloudflare-ai-gateway",
37804
+ contextLength: 1e6,
37805
+ cost: "premium"
37806
+ },
37713
37807
  {
37714
37808
  id: "reflection-ai/beam-1.0-501b-a23b",
37715
37809
  name: "Beam 1.0",
@@ -37728,13 +37822,22 @@ var CLOUDFLARE_AI_GATEWAY_MODELS = [
37728
37822
  contextLength: 32000,
37729
37823
  cost: "lower-cost"
37730
37824
  },
37731
- ...VERCEL_AI_GATEWAY_MODELS.filter((model) => !["openai/gpt-6.1-terra", "moonshotai/kimi-k3.1-pro", "minimax/minimax-m3.1-flash", "deepseek/deepseek-v4.1-flash-1017", "deepseek/deepseek-v4.1-flash", "xiaomi/mimo-v2.6-flash", "openai/gpt-6.1-sol", "anthropic/claude-sonnet-5.5", "alibaba/qwen3.8-flash", "anthropic/claude-haiku-5.5", "mistral/mistral-large-4", "inclusionai/ling-3.1-flash-free"].includes(model.id)).map((model) => ({
37825
+ ...VERCEL_AI_GATEWAY_MODELS.filter((model) => !["anthropic/claude-fable-5.2", "thinkingmachines/inkling-2-small", "tencent/hy4", "openai/gpt-6.1-terra", "moonshotai/kimi-k3.1-pro", "minimax/minimax-m3.1-flash", "deepseek/deepseek-v4.1-flash-1017", "deepseek/deepseek-v4.1-flash", "xiaomi/mimo-v2.6-flash", "openai/gpt-6.1-sol", "anthropic/claude-sonnet-5.5", "alibaba/qwen3.8-flash", "anthropic/claude-haiku-5.5", "mistral/mistral-large-4", "inclusionai/ling-3.1-flash-free"].includes(model.id)).map((model) => ({
37732
37826
  ...model,
37733
37827
  id: model.id.startsWith("anthropic/") ? model.id.replaceAll(".", "-") : model.id,
37734
37828
  provider: "cloudflare-ai-gateway"
37735
37829
  }))
37736
37830
  ];
37737
37831
  var WORKERS_AI_MODELS = [
37832
+ {
37833
+ id: "@cf/thinkingmachines/inkling-2-small",
37834
+ name: "Inkling 2 Small",
37835
+ description: "Open-weight multimodal model for coding and tool use on Workers AI.",
37836
+ category: "smart",
37837
+ provider: "workers-ai",
37838
+ contextLength: 1048576,
37839
+ cost: "lower-cost"
37840
+ },
37738
37841
  {
37739
37842
  id: "@cf/zai-org/glm-5.3",
37740
37843
  name: "GLM 5.3",
@@ -37846,6 +37949,16 @@ var OPENCODE_ZEN_MODELS = [
37846
37949
  contextLength: 1048576,
37847
37950
  cost: "free"
37848
37951
  },
37952
+ {
37953
+ id: "inkling-2-small-free",
37954
+ name: "Inkling 2 Small (Free)",
37955
+ description: "Free open-weight multimodal model for coding and tool use.",
37956
+ category: "smart",
37957
+ provider: "opencode-zen",
37958
+ zenApiType: "openai-compatible",
37959
+ contextLength: 1048576,
37960
+ cost: "free"
37961
+ },
37849
37962
  {
37850
37963
  id: "flint-40b-free",
37851
37964
  name: "Flint 40B (Free)",
@@ -37972,6 +38085,8 @@ var OPENCODE_ZEN_MODELS = [
37972
38085
  ["gpt-6-luna", "GPT 6 Luna", "fast", "lower-cost"],
37973
38086
  ["gpt-6-sol", "GPT 6 Sol", "reasoning", "premium"],
37974
38087
  ["gpt-6.1-sol", "GPT 6.1 Sol", "reasoning", "premium"],
38088
+ ["gpt-6.2-astra", "GPT 6.2 Astra", "reasoning", "premium"],
38089
+ ["gpt-6.2-sol", "GPT 6.2 Sol", "reasoning", "premium"],
37975
38090
  ["gpt-5.6-terra", "GPT 5.6 Terra", "smart", "premium"],
37976
38091
  ["gpt-5.6-sol", "GPT 5.6 Sol", "reasoning", "premium"]
37977
38092
  ].map(([id, name, category, cost]) => ({
@@ -38044,6 +38159,16 @@ var OPENCODE_ZEN_MODELS = [
38044
38159
  contextLength: 1e6,
38045
38160
  cost: "premium"
38046
38161
  },
38162
+ {
38163
+ id: "claude-fable-5-2",
38164
+ name: "Claude Fable 5.2",
38165
+ description: "Anthropic's newest model for demanding reasoning and long-horizon agents.",
38166
+ category: "reasoning",
38167
+ provider: "opencode-zen",
38168
+ zenApiType: "anthropic",
38169
+ contextLength: 1e6,
38170
+ cost: "premium"
38171
+ },
38047
38172
  {
38048
38173
  id: "claude-fable-5",
38049
38174
  name: "Claude Fable 5",
@@ -86411,7 +86536,7 @@ function buildOpenAICompatibleThinkingOptions(modelId, thinkingLevel) {
86411
86536
  };
86412
86537
  }
86413
86538
  function buildAiSdkProviderOptions(modelId, thinkingLevel, providerOptionsName) {
86414
- if (["claude-opus-5-5", "claude-sonnet-5-5", "claude-haiku-5-5"].includes(modelId)) {
86539
+ if (["claude-fable-5-2", "claude-opus-5-5", "claude-sonnet-5-5", "claude-haiku-5-5"].includes(modelId)) {
86415
86540
  return { anthropic: { effort: thinkingLevel === "off" ? "low" : thinkingLevel } };
86416
86541
  }
86417
86542
  if (thinkingLevel === "off" || !supportsThinkingControl(modelId)) {
@@ -86472,7 +86597,7 @@ function buildAiSdkProviderOptions(modelId, thinkingLevel, providerOptionsName)
86472
86597
  return;
86473
86598
  }
86474
86599
  function shouldOmitTemperature(modelId, thinkingLevel) {
86475
- if (/claude-(?:opus|sonnet|haiku)-5[.-]5/.test(modelId))
86600
+ if (/claude-(?:opus|sonnet|haiku)-5[.-]5|claude-fable-5[.-]2/.test(modelId))
86476
86601
  return true;
86477
86602
  if (modelId.includes("gpt-5") || modelId.includes("gpt-6"))
86478
86603
  return true;
@@ -86952,7 +87077,7 @@ import { existsSync as existsSync6, readFileSync as readFileSync3, writeFileSync
86952
87077
  // package.json
86953
87078
  var package_default = {
86954
87079
  name: "@austinthesing/magic-shell",
86955
- version: "1.2.1",
87080
+ version: "1.2.3",
86956
87081
  description: "Natural language to terminal commands with safety features. Supports OpenCode Zen, OpenRouter, AI gateways, Workers AI, and custom models.",
86957
87082
  type: "module",
86958
87083
  main: "dist/index.js",
package/dist/index.js CHANGED
@@ -727,6 +727,78 @@ import { cwd as getCwd } from "process";
727
727
 
728
728
  // src/lib/models.ts
729
729
  var OPENROUTER_MODELS = [
730
+ {
731
+ id: "openai/gpt-6.2-astra",
732
+ name: "GPT 6.2 Astra",
733
+ description: "OpenAI flagship for complex engineering, reasoning, and agentic work.",
734
+ category: "reasoning",
735
+ provider: "openrouter",
736
+ contextLength: 1050000,
737
+ cost: "premium"
738
+ },
739
+ {
740
+ id: "openai/gpt-6.2-sol",
741
+ name: "GPT 6.2 Sol",
742
+ description: "Efficient OpenAI model for everyday coding and agentic workflows.",
743
+ category: "reasoning",
744
+ provider: "openrouter",
745
+ contextLength: 1050000,
746
+ cost: "premium"
747
+ },
748
+ {
749
+ id: "thinkingmachines/inkling-2-mini",
750
+ name: "Inkling 2 Mini",
751
+ description: "Compact open-weight multimodal reasoning model with tool use.",
752
+ category: "smart",
753
+ provider: "openrouter",
754
+ contextLength: 1048576,
755
+ cost: "lower-cost"
756
+ },
757
+ {
758
+ id: "radixark/daisyrose-27b",
759
+ name: "DaisyRose 27B",
760
+ description: "Open-weight multimodal model trained for long-horizon coding agents.",
761
+ category: "reasoning",
762
+ provider: "openrouter",
763
+ contextLength: 262144,
764
+ cost: "lower-cost"
765
+ },
766
+ {
767
+ id: "anthropic/claude-fable-5.2",
768
+ name: "Claude Fable 5.2",
769
+ description: "Anthropic's newest model for demanding reasoning and long-horizon agents.",
770
+ category: "reasoning",
771
+ provider: "openrouter",
772
+ contextLength: 1e6,
773
+ cost: "premium"
774
+ },
775
+ {
776
+ id: "thinkingmachines/inkling-2-small:free",
777
+ name: "Inkling 2 Small (Free)",
778
+ description: "Free open-weight multimodal model for coding and tool use.",
779
+ category: "smart",
780
+ provider: "openrouter",
781
+ contextLength: 1048576,
782
+ cost: "free"
783
+ },
784
+ {
785
+ id: "ricursiveai/ripple-65b-preview",
786
+ name: "Ripple 65B Preview",
787
+ description: "Open-weight coding model with native tool calling and long context.",
788
+ category: "reasoning",
789
+ provider: "openrouter",
790
+ contextLength: 1048576,
791
+ cost: "lower-cost"
792
+ },
793
+ {
794
+ id: "tencent/hy4",
795
+ name: "Tencent Hy4",
796
+ description: "Open-weight model for coding agents and long-horizon tool use.",
797
+ category: "reasoning",
798
+ provider: "openrouter",
799
+ contextLength: 1048576,
800
+ cost: "lower-cost"
801
+ },
730
802
  {
731
803
  id: "openai/gpt-6.1-terra",
732
804
  name: "GPT 6.1 Terra",
@@ -1108,6 +1180,10 @@ var OPENROUTER_MODELS = [
1108
1180
  ];
1109
1181
  var VERCEL_AI_GATEWAY_MODELS = [
1110
1182
  ...OPENROUTER_MODELS.filter((model) => [
1183
+ "openai/gpt-6.2-astra",
1184
+ "openai/gpt-6.2-sol",
1185
+ "anthropic/claude-fable-5.2",
1186
+ "tencent/hy4",
1111
1187
  "openai/gpt-6.1-terra",
1112
1188
  "moonshotai/kimi-k3.1-pro",
1113
1189
  "minimax/minimax-m3.1-flash",
@@ -1129,6 +1205,15 @@ var VERCEL_AI_GATEWAY_MODELS = [
1129
1205
  "anthropic/claude-fable-5.1",
1130
1206
  "anthropic/claude-fable-5"
1131
1207
  ].includes(model.id)).map((model) => ({ ...model, provider: "vercel-ai-gateway" })),
1208
+ {
1209
+ id: "thinkingmachines/inkling-2-small",
1210
+ name: "Inkling 2 Small",
1211
+ description: "Open-weight multimodal model for coding and tool use.",
1212
+ category: "smart",
1213
+ provider: "vercel-ai-gateway",
1214
+ contextLength: 1048576,
1215
+ cost: "lower-cost"
1216
+ },
1132
1217
  {
1133
1218
  id: "meta/muse-spark-open",
1134
1219
  name: "Muse Spark Open",
@@ -1221,6 +1306,15 @@ var VERCEL_AI_GATEWAY_MODELS = [
1221
1306
  }
1222
1307
  ];
1223
1308
  var CLOUDFLARE_AI_GATEWAY_MODELS = [
1309
+ {
1310
+ id: "anthropic/claude-fable-5.2",
1311
+ name: "Claude Fable 5.2",
1312
+ description: "Anthropic's newest model for demanding reasoning and long-horizon agents.",
1313
+ category: "reasoning",
1314
+ provider: "cloudflare-ai-gateway",
1315
+ contextLength: 1e6,
1316
+ cost: "premium"
1317
+ },
1224
1318
  {
1225
1319
  id: "reflection-ai/beam-1.0-501b-a23b",
1226
1320
  name: "Beam 1.0",
@@ -1239,13 +1333,22 @@ var CLOUDFLARE_AI_GATEWAY_MODELS = [
1239
1333
  contextLength: 32000,
1240
1334
  cost: "lower-cost"
1241
1335
  },
1242
- ...VERCEL_AI_GATEWAY_MODELS.filter((model) => !["openai/gpt-6.1-terra", "moonshotai/kimi-k3.1-pro", "minimax/minimax-m3.1-flash", "deepseek/deepseek-v4.1-flash-1017", "deepseek/deepseek-v4.1-flash", "xiaomi/mimo-v2.6-flash", "openai/gpt-6.1-sol", "anthropic/claude-sonnet-5.5", "alibaba/qwen3.8-flash", "anthropic/claude-haiku-5.5", "mistral/mistral-large-4", "inclusionai/ling-3.1-flash-free"].includes(model.id)).map((model) => ({
1336
+ ...VERCEL_AI_GATEWAY_MODELS.filter((model) => !["anthropic/claude-fable-5.2", "thinkingmachines/inkling-2-small", "tencent/hy4", "openai/gpt-6.1-terra", "moonshotai/kimi-k3.1-pro", "minimax/minimax-m3.1-flash", "deepseek/deepseek-v4.1-flash-1017", "deepseek/deepseek-v4.1-flash", "xiaomi/mimo-v2.6-flash", "openai/gpt-6.1-sol", "anthropic/claude-sonnet-5.5", "alibaba/qwen3.8-flash", "anthropic/claude-haiku-5.5", "mistral/mistral-large-4", "inclusionai/ling-3.1-flash-free"].includes(model.id)).map((model) => ({
1243
1337
  ...model,
1244
1338
  id: model.id.startsWith("anthropic/") ? model.id.replaceAll(".", "-") : model.id,
1245
1339
  provider: "cloudflare-ai-gateway"
1246
1340
  }))
1247
1341
  ];
1248
1342
  var WORKERS_AI_MODELS = [
1343
+ {
1344
+ id: "@cf/thinkingmachines/inkling-2-small",
1345
+ name: "Inkling 2 Small",
1346
+ description: "Open-weight multimodal model for coding and tool use on Workers AI.",
1347
+ category: "smart",
1348
+ provider: "workers-ai",
1349
+ contextLength: 1048576,
1350
+ cost: "lower-cost"
1351
+ },
1249
1352
  {
1250
1353
  id: "@cf/zai-org/glm-5.3",
1251
1354
  name: "GLM 5.3",
@@ -1357,6 +1460,16 @@ var OPENCODE_ZEN_MODELS = [
1357
1460
  contextLength: 1048576,
1358
1461
  cost: "free"
1359
1462
  },
1463
+ {
1464
+ id: "inkling-2-small-free",
1465
+ name: "Inkling 2 Small (Free)",
1466
+ description: "Free open-weight multimodal model for coding and tool use.",
1467
+ category: "smart",
1468
+ provider: "opencode-zen",
1469
+ zenApiType: "openai-compatible",
1470
+ contextLength: 1048576,
1471
+ cost: "free"
1472
+ },
1360
1473
  {
1361
1474
  id: "flint-40b-free",
1362
1475
  name: "Flint 40B (Free)",
@@ -1483,6 +1596,8 @@ var OPENCODE_ZEN_MODELS = [
1483
1596
  ["gpt-6-luna", "GPT 6 Luna", "fast", "lower-cost"],
1484
1597
  ["gpt-6-sol", "GPT 6 Sol", "reasoning", "premium"],
1485
1598
  ["gpt-6.1-sol", "GPT 6.1 Sol", "reasoning", "premium"],
1599
+ ["gpt-6.2-astra", "GPT 6.2 Astra", "reasoning", "premium"],
1600
+ ["gpt-6.2-sol", "GPT 6.2 Sol", "reasoning", "premium"],
1486
1601
  ["gpt-5.6-terra", "GPT 5.6 Terra", "smart", "premium"],
1487
1602
  ["gpt-5.6-sol", "GPT 5.6 Sol", "reasoning", "premium"]
1488
1603
  ].map(([id, name, category, cost]) => ({
@@ -1555,6 +1670,16 @@ var OPENCODE_ZEN_MODELS = [
1555
1670
  contextLength: 1e6,
1556
1671
  cost: "premium"
1557
1672
  },
1673
+ {
1674
+ id: "claude-fable-5-2",
1675
+ name: "Claude Fable 5.2",
1676
+ description: "Anthropic's newest model for demanding reasoning and long-horizon agents.",
1677
+ category: "reasoning",
1678
+ provider: "opencode-zen",
1679
+ zenApiType: "anthropic",
1680
+ contextLength: 1e6,
1681
+ cost: "premium"
1682
+ },
1558
1683
  {
1559
1684
  id: "claude-fable-5",
1560
1685
  name: "Claude Fable 5",
@@ -50193,7 +50318,7 @@ function buildOpenAICompatibleThinkingOptions(modelId, thinkingLevel) {
50193
50318
  };
50194
50319
  }
50195
50320
  function buildAiSdkProviderOptions(modelId, thinkingLevel, providerOptionsName) {
50196
- if (["claude-opus-5-5", "claude-sonnet-5-5", "claude-haiku-5-5"].includes(modelId)) {
50321
+ if (["claude-fable-5-2", "claude-opus-5-5", "claude-sonnet-5-5", "claude-haiku-5-5"].includes(modelId)) {
50197
50322
  return { anthropic: { effort: thinkingLevel === "off" ? "low" : thinkingLevel } };
50198
50323
  }
50199
50324
  if (thinkingLevel === "off" || !supportsThinkingControl(modelId)) {
@@ -50254,7 +50379,7 @@ function buildAiSdkProviderOptions(modelId, thinkingLevel, providerOptionsName)
50254
50379
  return;
50255
50380
  }
50256
50381
  function shouldOmitTemperature(modelId, thinkingLevel) {
50257
- if (/claude-(?:opus|sonnet|haiku)-5[.-]5/.test(modelId))
50382
+ if (/claude-(?:opus|sonnet|haiku)-5[.-]5|claude-fable-5[.-]2/.test(modelId))
50258
50383
  return true;
50259
50384
  if (modelId.includes("gpt-5") || modelId.includes("gpt-6"))
50260
50385
  return true;
@@ -50757,7 +50882,7 @@ import { existsSync as existsSync5, readFileSync as readFileSync4, writeFileSync
50757
50882
  // package.json
50758
50883
  var package_default = {
50759
50884
  name: "@austinthesing/magic-shell",
50760
- version: "1.2.1",
50885
+ version: "1.2.3",
50761
50886
  description: "Natural language to terminal commands with safety features. Supports OpenCode Zen, OpenRouter, AI gateways, Workers AI, and custom models.",
50762
50887
  type: "module",
50763
50888
  main: "dist/index.js",
package/dist/tui.js CHANGED
@@ -37216,6 +37216,78 @@ import { cwd as getCwd } from "process";
37216
37216
 
37217
37217
  // src/lib/models.ts
37218
37218
  var OPENROUTER_MODELS = [
37219
+ {
37220
+ id: "openai/gpt-6.2-astra",
37221
+ name: "GPT 6.2 Astra",
37222
+ description: "OpenAI flagship for complex engineering, reasoning, and agentic work.",
37223
+ category: "reasoning",
37224
+ provider: "openrouter",
37225
+ contextLength: 1050000,
37226
+ cost: "premium"
37227
+ },
37228
+ {
37229
+ id: "openai/gpt-6.2-sol",
37230
+ name: "GPT 6.2 Sol",
37231
+ description: "Efficient OpenAI model for everyday coding and agentic workflows.",
37232
+ category: "reasoning",
37233
+ provider: "openrouter",
37234
+ contextLength: 1050000,
37235
+ cost: "premium"
37236
+ },
37237
+ {
37238
+ id: "thinkingmachines/inkling-2-mini",
37239
+ name: "Inkling 2 Mini",
37240
+ description: "Compact open-weight multimodal reasoning model with tool use.",
37241
+ category: "smart",
37242
+ provider: "openrouter",
37243
+ contextLength: 1048576,
37244
+ cost: "lower-cost"
37245
+ },
37246
+ {
37247
+ id: "radixark/daisyrose-27b",
37248
+ name: "DaisyRose 27B",
37249
+ description: "Open-weight multimodal model trained for long-horizon coding agents.",
37250
+ category: "reasoning",
37251
+ provider: "openrouter",
37252
+ contextLength: 262144,
37253
+ cost: "lower-cost"
37254
+ },
37255
+ {
37256
+ id: "anthropic/claude-fable-5.2",
37257
+ name: "Claude Fable 5.2",
37258
+ description: "Anthropic's newest model for demanding reasoning and long-horizon agents.",
37259
+ category: "reasoning",
37260
+ provider: "openrouter",
37261
+ contextLength: 1e6,
37262
+ cost: "premium"
37263
+ },
37264
+ {
37265
+ id: "thinkingmachines/inkling-2-small:free",
37266
+ name: "Inkling 2 Small (Free)",
37267
+ description: "Free open-weight multimodal model for coding and tool use.",
37268
+ category: "smart",
37269
+ provider: "openrouter",
37270
+ contextLength: 1048576,
37271
+ cost: "free"
37272
+ },
37273
+ {
37274
+ id: "ricursiveai/ripple-65b-preview",
37275
+ name: "Ripple 65B Preview",
37276
+ description: "Open-weight coding model with native tool calling and long context.",
37277
+ category: "reasoning",
37278
+ provider: "openrouter",
37279
+ contextLength: 1048576,
37280
+ cost: "lower-cost"
37281
+ },
37282
+ {
37283
+ id: "tencent/hy4",
37284
+ name: "Tencent Hy4",
37285
+ description: "Open-weight model for coding agents and long-horizon tool use.",
37286
+ category: "reasoning",
37287
+ provider: "openrouter",
37288
+ contextLength: 1048576,
37289
+ cost: "lower-cost"
37290
+ },
37219
37291
  {
37220
37292
  id: "openai/gpt-6.1-terra",
37221
37293
  name: "GPT 6.1 Terra",
@@ -37597,6 +37669,10 @@ var OPENROUTER_MODELS = [
37597
37669
  ];
37598
37670
  var VERCEL_AI_GATEWAY_MODELS = [
37599
37671
  ...OPENROUTER_MODELS.filter((model) => [
37672
+ "openai/gpt-6.2-astra",
37673
+ "openai/gpt-6.2-sol",
37674
+ "anthropic/claude-fable-5.2",
37675
+ "tencent/hy4",
37600
37676
  "openai/gpt-6.1-terra",
37601
37677
  "moonshotai/kimi-k3.1-pro",
37602
37678
  "minimax/minimax-m3.1-flash",
@@ -37618,6 +37694,15 @@ var VERCEL_AI_GATEWAY_MODELS = [
37618
37694
  "anthropic/claude-fable-5.1",
37619
37695
  "anthropic/claude-fable-5"
37620
37696
  ].includes(model.id)).map((model) => ({ ...model, provider: "vercel-ai-gateway" })),
37697
+ {
37698
+ id: "thinkingmachines/inkling-2-small",
37699
+ name: "Inkling 2 Small",
37700
+ description: "Open-weight multimodal model for coding and tool use.",
37701
+ category: "smart",
37702
+ provider: "vercel-ai-gateway",
37703
+ contextLength: 1048576,
37704
+ cost: "lower-cost"
37705
+ },
37621
37706
  {
37622
37707
  id: "meta/muse-spark-open",
37623
37708
  name: "Muse Spark Open",
@@ -37710,6 +37795,15 @@ var VERCEL_AI_GATEWAY_MODELS = [
37710
37795
  }
37711
37796
  ];
37712
37797
  var CLOUDFLARE_AI_GATEWAY_MODELS = [
37798
+ {
37799
+ id: "anthropic/claude-fable-5.2",
37800
+ name: "Claude Fable 5.2",
37801
+ description: "Anthropic's newest model for demanding reasoning and long-horizon agents.",
37802
+ category: "reasoning",
37803
+ provider: "cloudflare-ai-gateway",
37804
+ contextLength: 1e6,
37805
+ cost: "premium"
37806
+ },
37713
37807
  {
37714
37808
  id: "reflection-ai/beam-1.0-501b-a23b",
37715
37809
  name: "Beam 1.0",
@@ -37728,13 +37822,22 @@ var CLOUDFLARE_AI_GATEWAY_MODELS = [
37728
37822
  contextLength: 32000,
37729
37823
  cost: "lower-cost"
37730
37824
  },
37731
- ...VERCEL_AI_GATEWAY_MODELS.filter((model) => !["openai/gpt-6.1-terra", "moonshotai/kimi-k3.1-pro", "minimax/minimax-m3.1-flash", "deepseek/deepseek-v4.1-flash-1017", "deepseek/deepseek-v4.1-flash", "xiaomi/mimo-v2.6-flash", "openai/gpt-6.1-sol", "anthropic/claude-sonnet-5.5", "alibaba/qwen3.8-flash", "anthropic/claude-haiku-5.5", "mistral/mistral-large-4", "inclusionai/ling-3.1-flash-free"].includes(model.id)).map((model) => ({
37825
+ ...VERCEL_AI_GATEWAY_MODELS.filter((model) => !["anthropic/claude-fable-5.2", "thinkingmachines/inkling-2-small", "tencent/hy4", "openai/gpt-6.1-terra", "moonshotai/kimi-k3.1-pro", "minimax/minimax-m3.1-flash", "deepseek/deepseek-v4.1-flash-1017", "deepseek/deepseek-v4.1-flash", "xiaomi/mimo-v2.6-flash", "openai/gpt-6.1-sol", "anthropic/claude-sonnet-5.5", "alibaba/qwen3.8-flash", "anthropic/claude-haiku-5.5", "mistral/mistral-large-4", "inclusionai/ling-3.1-flash-free"].includes(model.id)).map((model) => ({
37732
37826
  ...model,
37733
37827
  id: model.id.startsWith("anthropic/") ? model.id.replaceAll(".", "-") : model.id,
37734
37828
  provider: "cloudflare-ai-gateway"
37735
37829
  }))
37736
37830
  ];
37737
37831
  var WORKERS_AI_MODELS = [
37832
+ {
37833
+ id: "@cf/thinkingmachines/inkling-2-small",
37834
+ name: "Inkling 2 Small",
37835
+ description: "Open-weight multimodal model for coding and tool use on Workers AI.",
37836
+ category: "smart",
37837
+ provider: "workers-ai",
37838
+ contextLength: 1048576,
37839
+ cost: "lower-cost"
37840
+ },
37738
37841
  {
37739
37842
  id: "@cf/zai-org/glm-5.3",
37740
37843
  name: "GLM 5.3",
@@ -37846,6 +37949,16 @@ var OPENCODE_ZEN_MODELS = [
37846
37949
  contextLength: 1048576,
37847
37950
  cost: "free"
37848
37951
  },
37952
+ {
37953
+ id: "inkling-2-small-free",
37954
+ name: "Inkling 2 Small (Free)",
37955
+ description: "Free open-weight multimodal model for coding and tool use.",
37956
+ category: "smart",
37957
+ provider: "opencode-zen",
37958
+ zenApiType: "openai-compatible",
37959
+ contextLength: 1048576,
37960
+ cost: "free"
37961
+ },
37849
37962
  {
37850
37963
  id: "flint-40b-free",
37851
37964
  name: "Flint 40B (Free)",
@@ -37972,6 +38085,8 @@ var OPENCODE_ZEN_MODELS = [
37972
38085
  ["gpt-6-luna", "GPT 6 Luna", "fast", "lower-cost"],
37973
38086
  ["gpt-6-sol", "GPT 6 Sol", "reasoning", "premium"],
37974
38087
  ["gpt-6.1-sol", "GPT 6.1 Sol", "reasoning", "premium"],
38088
+ ["gpt-6.2-astra", "GPT 6.2 Astra", "reasoning", "premium"],
38089
+ ["gpt-6.2-sol", "GPT 6.2 Sol", "reasoning", "premium"],
37975
38090
  ["gpt-5.6-terra", "GPT 5.6 Terra", "smart", "premium"],
37976
38091
  ["gpt-5.6-sol", "GPT 5.6 Sol", "reasoning", "premium"]
37977
38092
  ].map(([id, name, category, cost]) => ({
@@ -38044,6 +38159,16 @@ var OPENCODE_ZEN_MODELS = [
38044
38159
  contextLength: 1e6,
38045
38160
  cost: "premium"
38046
38161
  },
38162
+ {
38163
+ id: "claude-fable-5-2",
38164
+ name: "Claude Fable 5.2",
38165
+ description: "Anthropic's newest model for demanding reasoning and long-horizon agents.",
38166
+ category: "reasoning",
38167
+ provider: "opencode-zen",
38168
+ zenApiType: "anthropic",
38169
+ contextLength: 1e6,
38170
+ cost: "premium"
38171
+ },
38047
38172
  {
38048
38173
  id: "claude-fable-5",
38049
38174
  name: "Claude Fable 5",
@@ -86411,7 +86536,7 @@ function buildOpenAICompatibleThinkingOptions(modelId, thinkingLevel) {
86411
86536
  };
86412
86537
  }
86413
86538
  function buildAiSdkProviderOptions(modelId, thinkingLevel, providerOptionsName) {
86414
- if (["claude-opus-5-5", "claude-sonnet-5-5", "claude-haiku-5-5"].includes(modelId)) {
86539
+ if (["claude-fable-5-2", "claude-opus-5-5", "claude-sonnet-5-5", "claude-haiku-5-5"].includes(modelId)) {
86415
86540
  return { anthropic: { effort: thinkingLevel === "off" ? "low" : thinkingLevel } };
86416
86541
  }
86417
86542
  if (thinkingLevel === "off" || !supportsThinkingControl(modelId)) {
@@ -86472,7 +86597,7 @@ function buildAiSdkProviderOptions(modelId, thinkingLevel, providerOptionsName)
86472
86597
  return;
86473
86598
  }
86474
86599
  function shouldOmitTemperature(modelId, thinkingLevel) {
86475
- if (/claude-(?:opus|sonnet|haiku)-5[.-]5/.test(modelId))
86600
+ if (/claude-(?:opus|sonnet|haiku)-5[.-]5|claude-fable-5[.-]2/.test(modelId))
86476
86601
  return true;
86477
86602
  if (modelId.includes("gpt-5") || modelId.includes("gpt-6"))
86478
86603
  return true;
@@ -86952,7 +87077,7 @@ import { existsSync as existsSync6, readFileSync as readFileSync3, writeFileSync
86952
87077
  // package.json
86953
87078
  var package_default = {
86954
87079
  name: "@austinthesing/magic-shell",
86955
- version: "1.2.1",
87080
+ version: "1.2.3",
86956
87081
  description: "Natural language to terminal commands with safety features. Supports OpenCode Zen, OpenRouter, AI gateways, Workers AI, and custom models.",
86957
87082
  type: "module",
86958
87083
  main: "dist/index.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@austinthesing/magic-shell",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
4
4
  "description": "Natural language to terminal commands with safety features. Supports OpenCode Zen, OpenRouter, AI gateways, Workers AI, and custom models.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",