@austinthesing/magic-shell 1.2.1 → 1.2.2

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,42 @@ import { cwd as getCwd } from "process";
37216
37216
 
37217
37217
  // src/lib/models.ts
37218
37218
  var OPENROUTER_MODELS = [
37219
+ {
37220
+ id: "anthropic/claude-fable-5.2",
37221
+ name: "Claude Fable 5.2",
37222
+ description: "Anthropic's newest model for demanding reasoning and long-horizon agents.",
37223
+ category: "reasoning",
37224
+ provider: "openrouter",
37225
+ contextLength: 1e6,
37226
+ cost: "premium"
37227
+ },
37228
+ {
37229
+ id: "thinkingmachines/inkling-2-small:free",
37230
+ name: "Inkling 2 Small (Free)",
37231
+ description: "Free open-weight multimodal model for coding and tool use.",
37232
+ category: "smart",
37233
+ provider: "openrouter",
37234
+ contextLength: 1048576,
37235
+ cost: "free"
37236
+ },
37237
+ {
37238
+ id: "ricursiveai/ripple-65b-preview",
37239
+ name: "Ripple 65B Preview",
37240
+ description: "Open-weight coding model with native tool calling and long context.",
37241
+ category: "reasoning",
37242
+ provider: "openrouter",
37243
+ contextLength: 1048576,
37244
+ cost: "lower-cost"
37245
+ },
37246
+ {
37247
+ id: "tencent/hy4",
37248
+ name: "Tencent Hy4",
37249
+ description: "Open-weight model for coding agents and long-horizon tool use.",
37250
+ category: "reasoning",
37251
+ provider: "openrouter",
37252
+ contextLength: 1048576,
37253
+ cost: "lower-cost"
37254
+ },
37219
37255
  {
37220
37256
  id: "openai/gpt-6.1-terra",
37221
37257
  name: "GPT 6.1 Terra",
@@ -37597,6 +37633,8 @@ var OPENROUTER_MODELS = [
37597
37633
  ];
37598
37634
  var VERCEL_AI_GATEWAY_MODELS = [
37599
37635
  ...OPENROUTER_MODELS.filter((model) => [
37636
+ "anthropic/claude-fable-5.2",
37637
+ "tencent/hy4",
37600
37638
  "openai/gpt-6.1-terra",
37601
37639
  "moonshotai/kimi-k3.1-pro",
37602
37640
  "minimax/minimax-m3.1-flash",
@@ -37618,6 +37656,15 @@ var VERCEL_AI_GATEWAY_MODELS = [
37618
37656
  "anthropic/claude-fable-5.1",
37619
37657
  "anthropic/claude-fable-5"
37620
37658
  ].includes(model.id)).map((model) => ({ ...model, provider: "vercel-ai-gateway" })),
37659
+ {
37660
+ id: "thinkingmachines/inkling-2-small",
37661
+ name: "Inkling 2 Small",
37662
+ description: "Open-weight multimodal model for coding and tool use.",
37663
+ category: "smart",
37664
+ provider: "vercel-ai-gateway",
37665
+ contextLength: 1048576,
37666
+ cost: "lower-cost"
37667
+ },
37621
37668
  {
37622
37669
  id: "meta/muse-spark-open",
37623
37670
  name: "Muse Spark Open",
@@ -37710,6 +37757,15 @@ var VERCEL_AI_GATEWAY_MODELS = [
37710
37757
  }
37711
37758
  ];
37712
37759
  var CLOUDFLARE_AI_GATEWAY_MODELS = [
37760
+ {
37761
+ id: "anthropic/claude-fable-5.2",
37762
+ name: "Claude Fable 5.2",
37763
+ description: "Anthropic's newest model for demanding reasoning and long-horizon agents.",
37764
+ category: "reasoning",
37765
+ provider: "cloudflare-ai-gateway",
37766
+ contextLength: 1e6,
37767
+ cost: "premium"
37768
+ },
37713
37769
  {
37714
37770
  id: "reflection-ai/beam-1.0-501b-a23b",
37715
37771
  name: "Beam 1.0",
@@ -37728,13 +37784,22 @@ var CLOUDFLARE_AI_GATEWAY_MODELS = [
37728
37784
  contextLength: 32000,
37729
37785
  cost: "lower-cost"
37730
37786
  },
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) => ({
37787
+ ...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
37788
  ...model,
37733
37789
  id: model.id.startsWith("anthropic/") ? model.id.replaceAll(".", "-") : model.id,
37734
37790
  provider: "cloudflare-ai-gateway"
37735
37791
  }))
37736
37792
  ];
37737
37793
  var WORKERS_AI_MODELS = [
37794
+ {
37795
+ id: "@cf/thinkingmachines/inkling-2-small",
37796
+ name: "Inkling 2 Small",
37797
+ description: "Open-weight multimodal model for coding and tool use on Workers AI.",
37798
+ category: "smart",
37799
+ provider: "workers-ai",
37800
+ contextLength: 1048576,
37801
+ cost: "lower-cost"
37802
+ },
37738
37803
  {
37739
37804
  id: "@cf/zai-org/glm-5.3",
37740
37805
  name: "GLM 5.3",
@@ -37846,6 +37911,16 @@ var OPENCODE_ZEN_MODELS = [
37846
37911
  contextLength: 1048576,
37847
37912
  cost: "free"
37848
37913
  },
37914
+ {
37915
+ id: "inkling-2-small-free",
37916
+ name: "Inkling 2 Small (Free)",
37917
+ description: "Free open-weight multimodal model for coding and tool use.",
37918
+ category: "smart",
37919
+ provider: "opencode-zen",
37920
+ zenApiType: "openai-compatible",
37921
+ contextLength: 1048576,
37922
+ cost: "free"
37923
+ },
37849
37924
  {
37850
37925
  id: "flint-40b-free",
37851
37926
  name: "Flint 40B (Free)",
@@ -38044,6 +38119,16 @@ var OPENCODE_ZEN_MODELS = [
38044
38119
  contextLength: 1e6,
38045
38120
  cost: "premium"
38046
38121
  },
38122
+ {
38123
+ id: "claude-fable-5-2",
38124
+ name: "Claude Fable 5.2",
38125
+ description: "Anthropic's newest model for demanding reasoning and long-horizon agents.",
38126
+ category: "reasoning",
38127
+ provider: "opencode-zen",
38128
+ zenApiType: "anthropic",
38129
+ contextLength: 1e6,
38130
+ cost: "premium"
38131
+ },
38047
38132
  {
38048
38133
  id: "claude-fable-5",
38049
38134
  name: "Claude Fable 5",
@@ -86411,7 +86496,7 @@ function buildOpenAICompatibleThinkingOptions(modelId, thinkingLevel) {
86411
86496
  };
86412
86497
  }
86413
86498
  function buildAiSdkProviderOptions(modelId, thinkingLevel, providerOptionsName) {
86414
- if (["claude-opus-5-5", "claude-sonnet-5-5", "claude-haiku-5-5"].includes(modelId)) {
86499
+ if (["claude-fable-5-2", "claude-opus-5-5", "claude-sonnet-5-5", "claude-haiku-5-5"].includes(modelId)) {
86415
86500
  return { anthropic: { effort: thinkingLevel === "off" ? "low" : thinkingLevel } };
86416
86501
  }
86417
86502
  if (thinkingLevel === "off" || !supportsThinkingControl(modelId)) {
@@ -86472,7 +86557,7 @@ function buildAiSdkProviderOptions(modelId, thinkingLevel, providerOptionsName)
86472
86557
  return;
86473
86558
  }
86474
86559
  function shouldOmitTemperature(modelId, thinkingLevel) {
86475
- if (/claude-(?:opus|sonnet|haiku)-5[.-]5/.test(modelId))
86560
+ if (/claude-(?:opus|sonnet|haiku)-5[.-]5|claude-fable-5[.-]2/.test(modelId))
86476
86561
  return true;
86477
86562
  if (modelId.includes("gpt-5") || modelId.includes("gpt-6"))
86478
86563
  return true;
@@ -86952,7 +87037,7 @@ import { existsSync as existsSync6, readFileSync as readFileSync3, writeFileSync
86952
87037
  // package.json
86953
87038
  var package_default = {
86954
87039
  name: "@austinthesing/magic-shell",
86955
- version: "1.2.1",
87040
+ version: "1.2.2",
86956
87041
  description: "Natural language to terminal commands with safety features. Supports OpenCode Zen, OpenRouter, AI gateways, Workers AI, and custom models.",
86957
87042
  type: "module",
86958
87043
  main: "dist/index.js",
package/dist/index.js CHANGED
@@ -727,6 +727,42 @@ import { cwd as getCwd } from "process";
727
727
 
728
728
  // src/lib/models.ts
729
729
  var OPENROUTER_MODELS = [
730
+ {
731
+ id: "anthropic/claude-fable-5.2",
732
+ name: "Claude Fable 5.2",
733
+ description: "Anthropic's newest model for demanding reasoning and long-horizon agents.",
734
+ category: "reasoning",
735
+ provider: "openrouter",
736
+ contextLength: 1e6,
737
+ cost: "premium"
738
+ },
739
+ {
740
+ id: "thinkingmachines/inkling-2-small:free",
741
+ name: "Inkling 2 Small (Free)",
742
+ description: "Free open-weight multimodal model for coding and tool use.",
743
+ category: "smart",
744
+ provider: "openrouter",
745
+ contextLength: 1048576,
746
+ cost: "free"
747
+ },
748
+ {
749
+ id: "ricursiveai/ripple-65b-preview",
750
+ name: "Ripple 65B Preview",
751
+ description: "Open-weight coding model with native tool calling and long context.",
752
+ category: "reasoning",
753
+ provider: "openrouter",
754
+ contextLength: 1048576,
755
+ cost: "lower-cost"
756
+ },
757
+ {
758
+ id: "tencent/hy4",
759
+ name: "Tencent Hy4",
760
+ description: "Open-weight model for coding agents and long-horizon tool use.",
761
+ category: "reasoning",
762
+ provider: "openrouter",
763
+ contextLength: 1048576,
764
+ cost: "lower-cost"
765
+ },
730
766
  {
731
767
  id: "openai/gpt-6.1-terra",
732
768
  name: "GPT 6.1 Terra",
@@ -1108,6 +1144,8 @@ var OPENROUTER_MODELS = [
1108
1144
  ];
1109
1145
  var VERCEL_AI_GATEWAY_MODELS = [
1110
1146
  ...OPENROUTER_MODELS.filter((model) => [
1147
+ "anthropic/claude-fable-5.2",
1148
+ "tencent/hy4",
1111
1149
  "openai/gpt-6.1-terra",
1112
1150
  "moonshotai/kimi-k3.1-pro",
1113
1151
  "minimax/minimax-m3.1-flash",
@@ -1129,6 +1167,15 @@ var VERCEL_AI_GATEWAY_MODELS = [
1129
1167
  "anthropic/claude-fable-5.1",
1130
1168
  "anthropic/claude-fable-5"
1131
1169
  ].includes(model.id)).map((model) => ({ ...model, provider: "vercel-ai-gateway" })),
1170
+ {
1171
+ id: "thinkingmachines/inkling-2-small",
1172
+ name: "Inkling 2 Small",
1173
+ description: "Open-weight multimodal model for coding and tool use.",
1174
+ category: "smart",
1175
+ provider: "vercel-ai-gateway",
1176
+ contextLength: 1048576,
1177
+ cost: "lower-cost"
1178
+ },
1132
1179
  {
1133
1180
  id: "meta/muse-spark-open",
1134
1181
  name: "Muse Spark Open",
@@ -1221,6 +1268,15 @@ var VERCEL_AI_GATEWAY_MODELS = [
1221
1268
  }
1222
1269
  ];
1223
1270
  var CLOUDFLARE_AI_GATEWAY_MODELS = [
1271
+ {
1272
+ id: "anthropic/claude-fable-5.2",
1273
+ name: "Claude Fable 5.2",
1274
+ description: "Anthropic's newest model for demanding reasoning and long-horizon agents.",
1275
+ category: "reasoning",
1276
+ provider: "cloudflare-ai-gateway",
1277
+ contextLength: 1e6,
1278
+ cost: "premium"
1279
+ },
1224
1280
  {
1225
1281
  id: "reflection-ai/beam-1.0-501b-a23b",
1226
1282
  name: "Beam 1.0",
@@ -1239,13 +1295,22 @@ var CLOUDFLARE_AI_GATEWAY_MODELS = [
1239
1295
  contextLength: 32000,
1240
1296
  cost: "lower-cost"
1241
1297
  },
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) => ({
1298
+ ...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
1299
  ...model,
1244
1300
  id: model.id.startsWith("anthropic/") ? model.id.replaceAll(".", "-") : model.id,
1245
1301
  provider: "cloudflare-ai-gateway"
1246
1302
  }))
1247
1303
  ];
1248
1304
  var WORKERS_AI_MODELS = [
1305
+ {
1306
+ id: "@cf/thinkingmachines/inkling-2-small",
1307
+ name: "Inkling 2 Small",
1308
+ description: "Open-weight multimodal model for coding and tool use on Workers AI.",
1309
+ category: "smart",
1310
+ provider: "workers-ai",
1311
+ contextLength: 1048576,
1312
+ cost: "lower-cost"
1313
+ },
1249
1314
  {
1250
1315
  id: "@cf/zai-org/glm-5.3",
1251
1316
  name: "GLM 5.3",
@@ -1357,6 +1422,16 @@ var OPENCODE_ZEN_MODELS = [
1357
1422
  contextLength: 1048576,
1358
1423
  cost: "free"
1359
1424
  },
1425
+ {
1426
+ id: "inkling-2-small-free",
1427
+ name: "Inkling 2 Small (Free)",
1428
+ description: "Free open-weight multimodal model for coding and tool use.",
1429
+ category: "smart",
1430
+ provider: "opencode-zen",
1431
+ zenApiType: "openai-compatible",
1432
+ contextLength: 1048576,
1433
+ cost: "free"
1434
+ },
1360
1435
  {
1361
1436
  id: "flint-40b-free",
1362
1437
  name: "Flint 40B (Free)",
@@ -1555,6 +1630,16 @@ var OPENCODE_ZEN_MODELS = [
1555
1630
  contextLength: 1e6,
1556
1631
  cost: "premium"
1557
1632
  },
1633
+ {
1634
+ id: "claude-fable-5-2",
1635
+ name: "Claude Fable 5.2",
1636
+ description: "Anthropic's newest model for demanding reasoning and long-horizon agents.",
1637
+ category: "reasoning",
1638
+ provider: "opencode-zen",
1639
+ zenApiType: "anthropic",
1640
+ contextLength: 1e6,
1641
+ cost: "premium"
1642
+ },
1558
1643
  {
1559
1644
  id: "claude-fable-5",
1560
1645
  name: "Claude Fable 5",
@@ -50193,7 +50278,7 @@ function buildOpenAICompatibleThinkingOptions(modelId, thinkingLevel) {
50193
50278
  };
50194
50279
  }
50195
50280
  function buildAiSdkProviderOptions(modelId, thinkingLevel, providerOptionsName) {
50196
- if (["claude-opus-5-5", "claude-sonnet-5-5", "claude-haiku-5-5"].includes(modelId)) {
50281
+ if (["claude-fable-5-2", "claude-opus-5-5", "claude-sonnet-5-5", "claude-haiku-5-5"].includes(modelId)) {
50197
50282
  return { anthropic: { effort: thinkingLevel === "off" ? "low" : thinkingLevel } };
50198
50283
  }
50199
50284
  if (thinkingLevel === "off" || !supportsThinkingControl(modelId)) {
@@ -50254,7 +50339,7 @@ function buildAiSdkProviderOptions(modelId, thinkingLevel, providerOptionsName)
50254
50339
  return;
50255
50340
  }
50256
50341
  function shouldOmitTemperature(modelId, thinkingLevel) {
50257
- if (/claude-(?:opus|sonnet|haiku)-5[.-]5/.test(modelId))
50342
+ if (/claude-(?:opus|sonnet|haiku)-5[.-]5|claude-fable-5[.-]2/.test(modelId))
50258
50343
  return true;
50259
50344
  if (modelId.includes("gpt-5") || modelId.includes("gpt-6"))
50260
50345
  return true;
@@ -50757,7 +50842,7 @@ import { existsSync as existsSync5, readFileSync as readFileSync4, writeFileSync
50757
50842
  // package.json
50758
50843
  var package_default = {
50759
50844
  name: "@austinthesing/magic-shell",
50760
- version: "1.2.1",
50845
+ version: "1.2.2",
50761
50846
  description: "Natural language to terminal commands with safety features. Supports OpenCode Zen, OpenRouter, AI gateways, Workers AI, and custom models.",
50762
50847
  type: "module",
50763
50848
  main: "dist/index.js",
package/dist/tui.js CHANGED
@@ -37216,6 +37216,42 @@ import { cwd as getCwd } from "process";
37216
37216
 
37217
37217
  // src/lib/models.ts
37218
37218
  var OPENROUTER_MODELS = [
37219
+ {
37220
+ id: "anthropic/claude-fable-5.2",
37221
+ name: "Claude Fable 5.2",
37222
+ description: "Anthropic's newest model for demanding reasoning and long-horizon agents.",
37223
+ category: "reasoning",
37224
+ provider: "openrouter",
37225
+ contextLength: 1e6,
37226
+ cost: "premium"
37227
+ },
37228
+ {
37229
+ id: "thinkingmachines/inkling-2-small:free",
37230
+ name: "Inkling 2 Small (Free)",
37231
+ description: "Free open-weight multimodal model for coding and tool use.",
37232
+ category: "smart",
37233
+ provider: "openrouter",
37234
+ contextLength: 1048576,
37235
+ cost: "free"
37236
+ },
37237
+ {
37238
+ id: "ricursiveai/ripple-65b-preview",
37239
+ name: "Ripple 65B Preview",
37240
+ description: "Open-weight coding model with native tool calling and long context.",
37241
+ category: "reasoning",
37242
+ provider: "openrouter",
37243
+ contextLength: 1048576,
37244
+ cost: "lower-cost"
37245
+ },
37246
+ {
37247
+ id: "tencent/hy4",
37248
+ name: "Tencent Hy4",
37249
+ description: "Open-weight model for coding agents and long-horizon tool use.",
37250
+ category: "reasoning",
37251
+ provider: "openrouter",
37252
+ contextLength: 1048576,
37253
+ cost: "lower-cost"
37254
+ },
37219
37255
  {
37220
37256
  id: "openai/gpt-6.1-terra",
37221
37257
  name: "GPT 6.1 Terra",
@@ -37597,6 +37633,8 @@ var OPENROUTER_MODELS = [
37597
37633
  ];
37598
37634
  var VERCEL_AI_GATEWAY_MODELS = [
37599
37635
  ...OPENROUTER_MODELS.filter((model) => [
37636
+ "anthropic/claude-fable-5.2",
37637
+ "tencent/hy4",
37600
37638
  "openai/gpt-6.1-terra",
37601
37639
  "moonshotai/kimi-k3.1-pro",
37602
37640
  "minimax/minimax-m3.1-flash",
@@ -37618,6 +37656,15 @@ var VERCEL_AI_GATEWAY_MODELS = [
37618
37656
  "anthropic/claude-fable-5.1",
37619
37657
  "anthropic/claude-fable-5"
37620
37658
  ].includes(model.id)).map((model) => ({ ...model, provider: "vercel-ai-gateway" })),
37659
+ {
37660
+ id: "thinkingmachines/inkling-2-small",
37661
+ name: "Inkling 2 Small",
37662
+ description: "Open-weight multimodal model for coding and tool use.",
37663
+ category: "smart",
37664
+ provider: "vercel-ai-gateway",
37665
+ contextLength: 1048576,
37666
+ cost: "lower-cost"
37667
+ },
37621
37668
  {
37622
37669
  id: "meta/muse-spark-open",
37623
37670
  name: "Muse Spark Open",
@@ -37710,6 +37757,15 @@ var VERCEL_AI_GATEWAY_MODELS = [
37710
37757
  }
37711
37758
  ];
37712
37759
  var CLOUDFLARE_AI_GATEWAY_MODELS = [
37760
+ {
37761
+ id: "anthropic/claude-fable-5.2",
37762
+ name: "Claude Fable 5.2",
37763
+ description: "Anthropic's newest model for demanding reasoning and long-horizon agents.",
37764
+ category: "reasoning",
37765
+ provider: "cloudflare-ai-gateway",
37766
+ contextLength: 1e6,
37767
+ cost: "premium"
37768
+ },
37713
37769
  {
37714
37770
  id: "reflection-ai/beam-1.0-501b-a23b",
37715
37771
  name: "Beam 1.0",
@@ -37728,13 +37784,22 @@ var CLOUDFLARE_AI_GATEWAY_MODELS = [
37728
37784
  contextLength: 32000,
37729
37785
  cost: "lower-cost"
37730
37786
  },
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) => ({
37787
+ ...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
37788
  ...model,
37733
37789
  id: model.id.startsWith("anthropic/") ? model.id.replaceAll(".", "-") : model.id,
37734
37790
  provider: "cloudflare-ai-gateway"
37735
37791
  }))
37736
37792
  ];
37737
37793
  var WORKERS_AI_MODELS = [
37794
+ {
37795
+ id: "@cf/thinkingmachines/inkling-2-small",
37796
+ name: "Inkling 2 Small",
37797
+ description: "Open-weight multimodal model for coding and tool use on Workers AI.",
37798
+ category: "smart",
37799
+ provider: "workers-ai",
37800
+ contextLength: 1048576,
37801
+ cost: "lower-cost"
37802
+ },
37738
37803
  {
37739
37804
  id: "@cf/zai-org/glm-5.3",
37740
37805
  name: "GLM 5.3",
@@ -37846,6 +37911,16 @@ var OPENCODE_ZEN_MODELS = [
37846
37911
  contextLength: 1048576,
37847
37912
  cost: "free"
37848
37913
  },
37914
+ {
37915
+ id: "inkling-2-small-free",
37916
+ name: "Inkling 2 Small (Free)",
37917
+ description: "Free open-weight multimodal model for coding and tool use.",
37918
+ category: "smart",
37919
+ provider: "opencode-zen",
37920
+ zenApiType: "openai-compatible",
37921
+ contextLength: 1048576,
37922
+ cost: "free"
37923
+ },
37849
37924
  {
37850
37925
  id: "flint-40b-free",
37851
37926
  name: "Flint 40B (Free)",
@@ -38044,6 +38119,16 @@ var OPENCODE_ZEN_MODELS = [
38044
38119
  contextLength: 1e6,
38045
38120
  cost: "premium"
38046
38121
  },
38122
+ {
38123
+ id: "claude-fable-5-2",
38124
+ name: "Claude Fable 5.2",
38125
+ description: "Anthropic's newest model for demanding reasoning and long-horizon agents.",
38126
+ category: "reasoning",
38127
+ provider: "opencode-zen",
38128
+ zenApiType: "anthropic",
38129
+ contextLength: 1e6,
38130
+ cost: "premium"
38131
+ },
38047
38132
  {
38048
38133
  id: "claude-fable-5",
38049
38134
  name: "Claude Fable 5",
@@ -86411,7 +86496,7 @@ function buildOpenAICompatibleThinkingOptions(modelId, thinkingLevel) {
86411
86496
  };
86412
86497
  }
86413
86498
  function buildAiSdkProviderOptions(modelId, thinkingLevel, providerOptionsName) {
86414
- if (["claude-opus-5-5", "claude-sonnet-5-5", "claude-haiku-5-5"].includes(modelId)) {
86499
+ if (["claude-fable-5-2", "claude-opus-5-5", "claude-sonnet-5-5", "claude-haiku-5-5"].includes(modelId)) {
86415
86500
  return { anthropic: { effort: thinkingLevel === "off" ? "low" : thinkingLevel } };
86416
86501
  }
86417
86502
  if (thinkingLevel === "off" || !supportsThinkingControl(modelId)) {
@@ -86472,7 +86557,7 @@ function buildAiSdkProviderOptions(modelId, thinkingLevel, providerOptionsName)
86472
86557
  return;
86473
86558
  }
86474
86559
  function shouldOmitTemperature(modelId, thinkingLevel) {
86475
- if (/claude-(?:opus|sonnet|haiku)-5[.-]5/.test(modelId))
86560
+ if (/claude-(?:opus|sonnet|haiku)-5[.-]5|claude-fable-5[.-]2/.test(modelId))
86476
86561
  return true;
86477
86562
  if (modelId.includes("gpt-5") || modelId.includes("gpt-6"))
86478
86563
  return true;
@@ -86952,7 +87037,7 @@ import { existsSync as existsSync6, readFileSync as readFileSync3, writeFileSync
86952
87037
  // package.json
86953
87038
  var package_default = {
86954
87039
  name: "@austinthesing/magic-shell",
86955
- version: "1.2.1",
87040
+ version: "1.2.2",
86956
87041
  description: "Natural language to terminal commands with safety features. Supports OpenCode Zen, OpenRouter, AI gateways, Workers AI, and custom models.",
86957
87042
  type: "module",
86958
87043
  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.2",
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",