@austinthesing/magic-shell 0.2.22 → 0.2.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/dist/cli.js +39 -328
  2. package/dist/index.js +39 -328
  3. package/dist/tui.js +39 -328
  4. package/package.json +1 -1
package/dist/tui.js CHANGED
@@ -33056,20 +33056,13 @@ import { cwd as getCwd } from "process";
33056
33056
  // src/lib/models.ts
33057
33057
  var OPENROUTER_MODELS = [
33058
33058
  {
33059
- id: "xiaomi/mimo-v2.5",
33060
- name: "MiMo V2.5",
33061
- description: "Xiaomi's latest long-context MiMo model",
33059
+ id: "deepseek/deepseek-v4-flash:free",
33060
+ name: "DeepSeek V4 Flash (Free)",
33061
+ description: "DeepSeek's fast open-source model on OpenRouter's free tier (limited rate)",
33062
33062
  category: "fast",
33063
33063
  provider: "openrouter",
33064
- contextLength: 1048576
33065
- },
33066
- {
33067
- id: "xiaomi/mimo-v2.5-pro",
33068
- name: "MiMo V2.5 Pro",
33069
- description: "Xiaomi's latest pro MiMo model for agentic coding",
33070
- category: "smart",
33071
- provider: "openrouter",
33072
- contextLength: 1048576
33064
+ contextLength: 1048576,
33065
+ free: true
33073
33066
  },
33074
33067
  {
33075
33068
  id: "deepseek/deepseek-v4-flash",
@@ -33079,14 +33072,6 @@ var OPENROUTER_MODELS = [
33079
33072
  provider: "openrouter",
33080
33073
  contextLength: 1048576
33081
33074
  },
33082
- {
33083
- id: "minimax/minimax-m3",
33084
- name: "MiniMax M3",
33085
- description: "MiniMax's latest open-weight multimodal model for agentic coding",
33086
- category: "fast",
33087
- provider: "openrouter",
33088
- contextLength: 1048576
33089
- },
33090
33075
  {
33091
33076
  id: "z-ai/glm-5-turbo",
33092
33077
  name: "GLM 5 Turbo",
@@ -33095,38 +33080,6 @@ var OPENROUTER_MODELS = [
33095
33080
  provider: "openrouter",
33096
33081
  contextLength: 202752
33097
33082
  },
33098
- {
33099
- id: "openai/gpt-latest",
33100
- name: "OpenAI GPT Latest",
33101
- description: "OpenRouter alias that redirects to the latest OpenAI GPT model",
33102
- category: "smart",
33103
- provider: "openrouter",
33104
- contextLength: 1050000
33105
- },
33106
- {
33107
- id: "openai/gpt-5.5",
33108
- name: "GPT 5.5",
33109
- description: "OpenAI's latest flagship GPT model",
33110
- category: "smart",
33111
- provider: "openrouter",
33112
- contextLength: 1050000
33113
- },
33114
- {
33115
- id: "anthropic/claude-sonnet-latest",
33116
- name: "Claude Sonnet Latest",
33117
- description: "OpenRouter alias that redirects to the latest Claude Sonnet model",
33118
- category: "smart",
33119
- provider: "openrouter",
33120
- contextLength: 1e6
33121
- },
33122
- {
33123
- id: "anthropic/claude-sonnet-4.6",
33124
- name: "Claude Sonnet 4.6",
33125
- description: "Anthropic's latest Sonnet model",
33126
- category: "smart",
33127
- provider: "openrouter",
33128
- contextLength: 1e6
33129
- },
33130
33083
  {
33131
33084
  id: "moonshotai/kimi-k2.7-code",
33132
33085
  name: "Kimi K2.7 Code",
@@ -33135,22 +33088,6 @@ var OPENROUTER_MODELS = [
33135
33088
  provider: "openrouter",
33136
33089
  contextLength: 262144
33137
33090
  },
33138
- {
33139
- id: "moonshotai/kimi-k2.6",
33140
- name: "Kimi K2.6",
33141
- description: "Moonshot's latest Kimi model for coding agents",
33142
- category: "smart",
33143
- provider: "openrouter",
33144
- contextLength: 262142
33145
- },
33146
- {
33147
- id: "z-ai/glm-5.2",
33148
- name: "GLM 5.2",
33149
- description: "Z.ai's latest open-weight long-context GLM model",
33150
- category: "smart",
33151
- provider: "openrouter",
33152
- contextLength: 1048576
33153
- },
33154
33091
  {
33155
33092
  id: "deepseek/deepseek-v4-pro",
33156
33093
  name: "DeepSeek V4 Pro",
@@ -33160,36 +33097,20 @@ var OPENROUTER_MODELS = [
33160
33097
  contextLength: 1048576
33161
33098
  },
33162
33099
  {
33163
- id: "z-ai/glm-5.1",
33164
- name: "GLM 5.1",
33165
- description: "Z.ai's latest GLM model",
33166
- category: "smart",
33167
- provider: "openrouter",
33168
- contextLength: 202752
33169
- },
33170
- {
33171
- id: "qwen/qwen3.7-plus",
33172
- name: "Qwen3.7 Plus",
33173
- description: "Qwen's latest long-context open-weight plus model",
33100
+ id: "anthropic/claude-sonnet-4.6",
33101
+ name: "Claude Sonnet 4.6",
33102
+ description: "Anthropic's latest Sonnet model",
33174
33103
  category: "smart",
33175
33104
  provider: "openrouter",
33176
33105
  contextLength: 1e6
33177
33106
  },
33178
33107
  {
33179
- id: "minimax/minimax-m2.7",
33180
- name: "MiniMax M2.7",
33181
- description: "MiniMax's latest model",
33108
+ id: "openai/gpt-5.5",
33109
+ name: "GPT 5.5",
33110
+ description: "OpenAI's latest flagship GPT model",
33182
33111
  category: "smart",
33183
33112
  provider: "openrouter",
33184
- contextLength: 196608
33185
- },
33186
- {
33187
- id: "anthropic/claude-opus-latest",
33188
- name: "Claude Opus Latest",
33189
- description: "OpenRouter alias that redirects to the latest Claude Opus model",
33190
- category: "reasoning",
33191
- provider: "openrouter",
33192
- contextLength: 1e6
33113
+ contextLength: 1050000
33193
33114
  },
33194
33115
  {
33195
33116
  id: "anthropic/claude-opus-4.8",
@@ -33206,25 +33127,9 @@ var OPENROUTER_MODELS = [
33206
33127
  category: "reasoning",
33207
33128
  provider: "openrouter",
33208
33129
  contextLength: 1050000
33209
- },
33210
- {
33211
- id: "qwen/qwen3.7-max",
33212
- name: "Qwen3.7 Max",
33213
- description: "Qwen's latest high-capability open-weight model",
33214
- category: "reasoning",
33215
- provider: "openrouter",
33216
- contextLength: 1e6
33217
33130
  }
33218
33131
  ];
33219
33132
  var VERCEL_AI_GATEWAY_MODELS = [
33220
- {
33221
- id: "openai/gpt-latest",
33222
- name: "OpenAI GPT Latest",
33223
- description: "Vercel AI Gateway alias that redirects to the latest OpenAI GPT model",
33224
- category: "smart",
33225
- provider: "vercel-ai-gateway",
33226
- contextLength: 1050000
33227
- },
33228
33133
  {
33229
33134
  id: "openai/gpt-5.5",
33230
33135
  name: "GPT 5.5",
@@ -33241,14 +33146,6 @@ var VERCEL_AI_GATEWAY_MODELS = [
33241
33146
  provider: "vercel-ai-gateway",
33242
33147
  contextLength: 1e6
33243
33148
  },
33244
- {
33245
- id: "anthropic/claude-opus-4.8",
33246
- name: "Claude Opus 4.8",
33247
- description: "Anthropic's latest Opus model",
33248
- category: "reasoning",
33249
- provider: "vercel-ai-gateway",
33250
- contextLength: 1e6
33251
- },
33252
33149
  {
33253
33150
  id: "openai/gpt-5.5-pro",
33254
33151
  name: "GPT 5.5 Pro",
@@ -33256,6 +33153,14 @@ var VERCEL_AI_GATEWAY_MODELS = [
33256
33153
  category: "reasoning",
33257
33154
  provider: "vercel-ai-gateway",
33258
33155
  contextLength: 1050000
33156
+ },
33157
+ {
33158
+ id: "anthropic/claude-opus-4.8",
33159
+ name: "Claude Opus 4.8",
33160
+ description: "Anthropic's latest Opus model",
33161
+ category: "reasoning",
33162
+ provider: "vercel-ai-gateway",
33163
+ contextLength: 1e6
33259
33164
  }
33260
33165
  ];
33261
33166
  var CLOUDFLARE_AI_GATEWAY_MODELS = [
@@ -33293,14 +33198,6 @@ var CLOUDFLARE_AI_GATEWAY_MODELS = [
33293
33198
  }
33294
33199
  ];
33295
33200
  var WORKERS_AI_MODELS = [
33296
- {
33297
- id: "@cf/meta/llama-3.3-70b-instruct-fp8-fast",
33298
- name: "Llama 3.3 70B Fast",
33299
- description: "Cloudflare Workers AI fast Llama instruct model",
33300
- category: "smart",
33301
- provider: "workers-ai",
33302
- contextLength: 24000
33303
- },
33304
33201
  {
33305
33202
  id: "@cf/meta/llama-3.1-8b-instruct",
33306
33203
  name: "Llama 3.1 8B Instruct",
@@ -33309,6 +33206,14 @@ var WORKERS_AI_MODELS = [
33309
33206
  provider: "workers-ai",
33310
33207
  contextLength: 8000
33311
33208
  },
33209
+ {
33210
+ id: "@cf/meta/llama-3.3-70b-instruct-fp8-fast",
33211
+ name: "Llama 3.3 70B Fast",
33212
+ description: "Cloudflare Workers AI fast Llama instruct model",
33213
+ category: "smart",
33214
+ provider: "workers-ai",
33215
+ contextLength: 24000
33216
+ },
33312
33217
  {
33313
33218
  id: "@cf/openai/gpt-oss-120b",
33314
33219
  name: "GPT OSS 120B",
@@ -33329,55 +33234,14 @@ var OPENCODE_ZEN_MODELS = [
33329
33234
  contextLength: 1048576,
33330
33235
  free: true
33331
33236
  },
33332
- {
33333
- id: "mimo-v2.5-free",
33334
- name: "MiMo V2.5 Free",
33335
- description: "Xiaomi's free long-context MiMo model (limited time)",
33336
- category: "fast",
33337
- provider: "opencode-zen",
33338
- zenApiType: "openai-compatible",
33339
- contextLength: 1048576,
33340
- free: true
33341
- },
33342
- {
33343
- id: "north-mini-code-free",
33344
- name: "North Mini Code Free",
33345
- description: "North's free coding model (limited time)",
33346
- category: "fast",
33347
- provider: "opencode-zen",
33348
- zenApiType: "openai-compatible",
33349
- contextLength: 200000,
33350
- free: true
33351
- },
33352
- {
33353
- id: "nemotron-3-ultra-free",
33354
- name: "Nemotron 3 Ultra Free",
33355
- description: "NVIDIA Nemotron free trial model (limited time)",
33356
- category: "smart",
33357
- provider: "opencode-zen",
33358
- zenApiType: "openai-compatible",
33359
- contextLength: 131072,
33360
- free: true
33361
- },
33362
- {
33363
- id: "big-pickle",
33364
- name: "Big Pickle",
33365
- description: "OpenCode stealth model (free, limited time)",
33366
- category: "smart",
33367
- provider: "opencode-zen",
33368
- zenApiType: "openai-compatible",
33369
- contextLength: 131072,
33370
- free: true
33371
- },
33372
33237
  {
33373
33238
  id: "gpt-5-nano",
33374
33239
  name: "GPT 5 Nano",
33375
- description: "OpenAI's free lightweight GPT model",
33240
+ description: "OpenAI's lightweight GPT model ($0.05/$0.40 per 1M tokens)",
33376
33241
  category: "fast",
33377
33242
  provider: "opencode-zen",
33378
33243
  zenApiType: "openai-responses",
33379
- contextLength: 400000,
33380
- free: true
33244
+ contextLength: 400000
33381
33245
  },
33382
33246
  {
33383
33247
  id: "claude-haiku-4-5",
@@ -33397,51 +33261,6 @@ var OPENCODE_ZEN_MODELS = [
33397
33261
  zenApiType: "google",
33398
33262
  contextLength: 1048576
33399
33263
  },
33400
- {
33401
- id: "gemini-3-flash",
33402
- name: "Gemini 3 Flash",
33403
- description: "Google's fast Gemini model",
33404
- category: "fast",
33405
- provider: "opencode-zen",
33406
- zenApiType: "google",
33407
- contextLength: 200000
33408
- },
33409
- {
33410
- id: "mimo-v2.5",
33411
- name: "MiMo V2.5",
33412
- description: "Xiaomi's latest long-context MiMo model",
33413
- category: "fast",
33414
- provider: "opencode-zen",
33415
- zenApiType: "openai-compatible",
33416
- contextLength: 1048576
33417
- },
33418
- {
33419
- id: "gpt-5.4-mini",
33420
- name: "GPT 5.4 Mini",
33421
- description: "OpenAI's latest fast GPT mini model",
33422
- category: "fast",
33423
- provider: "opencode-zen",
33424
- zenApiType: "openai-responses",
33425
- contextLength: 400000
33426
- },
33427
- {
33428
- id: "gpt-5.4-nano",
33429
- name: "GPT 5.4 Nano",
33430
- description: "OpenAI's latest lightweight GPT model",
33431
- category: "fast",
33432
- provider: "opencode-zen",
33433
- zenApiType: "openai-responses",
33434
- contextLength: 400000
33435
- },
33436
- {
33437
- id: "claude-fable-5",
33438
- name: "Claude Fable 5",
33439
- description: "Anthropic's latest Fable model",
33440
- category: "smart",
33441
- provider: "opencode-zen",
33442
- zenApiType: "anthropic",
33443
- contextLength: 1e6
33444
- },
33445
33264
  {
33446
33265
  id: "claude-sonnet-4-6",
33447
33266
  name: "Claude Sonnet 4.6",
@@ -33451,15 +33270,6 @@ var OPENCODE_ZEN_MODELS = [
33451
33270
  zenApiType: "anthropic",
33452
33271
  contextLength: 1e6
33453
33272
  },
33454
- {
33455
- id: "gemini-3.1-pro",
33456
- name: "Gemini 3.1 Pro",
33457
- description: "Google's high-end Gemini model",
33458
- category: "smart",
33459
- provider: "opencode-zen",
33460
- zenApiType: "google",
33461
- contextLength: 200000
33462
- },
33463
33273
  {
33464
33274
  id: "gpt-5.5",
33465
33275
  name: "GPT 5.5",
@@ -33469,114 +33279,6 @@ var OPENCODE_ZEN_MODELS = [
33469
33279
  zenApiType: "openai-responses",
33470
33280
  contextLength: 1050000
33471
33281
  },
33472
- {
33473
- id: "gpt-5.5-pro",
33474
- name: "GPT 5.5 Pro",
33475
- description: "OpenAI's latest high-capability reasoning model",
33476
- category: "smart",
33477
- provider: "opencode-zen",
33478
- zenApiType: "openai-responses",
33479
- contextLength: 1050000
33480
- },
33481
- {
33482
- id: "gpt-5.3-codex",
33483
- name: "GPT 5.3 Codex",
33484
- description: "OpenAI's latest coding-focused GPT model",
33485
- category: "smart",
33486
- provider: "opencode-zen",
33487
- zenApiType: "openai-responses",
33488
- contextLength: 400000
33489
- },
33490
- {
33491
- id: "gpt-5.3-codex-spark",
33492
- name: "GPT 5.3 Codex Spark",
33493
- description: "OpenAI's latest fast coding-focused GPT model",
33494
- category: "smart",
33495
- provider: "opencode-zen",
33496
- zenApiType: "openai-responses",
33497
- contextLength: 400000
33498
- },
33499
- {
33500
- id: "qwen3.7-plus",
33501
- name: "Qwen3.7 Plus",
33502
- description: "Qwen's latest long-context open-weight plus model",
33503
- category: "smart",
33504
- provider: "opencode-zen",
33505
- zenApiType: "anthropic",
33506
- contextLength: 1e6
33507
- },
33508
- {
33509
- id: "qwen3.7-max",
33510
- name: "Qwen3.7 Max",
33511
- description: "Qwen's latest high-capability open-weight model",
33512
- category: "smart",
33513
- provider: "opencode-zen",
33514
- zenApiType: "anthropic",
33515
- contextLength: 1e6
33516
- },
33517
- {
33518
- id: "minimax-m2.7",
33519
- name: "MiniMax M2.7",
33520
- description: "MiniMax's latest model",
33521
- category: "smart",
33522
- provider: "opencode-zen",
33523
- zenApiType: "openai-compatible",
33524
- contextLength: 196608
33525
- },
33526
- {
33527
- id: "kimi-k2.6",
33528
- name: "Kimi K2.6",
33529
- description: "Moonshot's latest model",
33530
- category: "smart",
33531
- provider: "opencode-zen",
33532
- zenApiType: "openai-compatible",
33533
- contextLength: 262144
33534
- },
33535
- {
33536
- id: "glm-5.2",
33537
- name: "GLM 5.2",
33538
- description: "Z.ai's latest open-weight long-context GLM model",
33539
- category: "smart",
33540
- provider: "opencode-zen",
33541
- zenApiType: "openai-compatible",
33542
- contextLength: 1048576
33543
- },
33544
- {
33545
- id: "deepseek-v4-pro",
33546
- name: "DeepSeek V4 Pro",
33547
- description: "DeepSeek's latest high-context open-source model",
33548
- category: "smart",
33549
- provider: "opencode-zen",
33550
- zenApiType: "openai-compatible",
33551
- contextLength: 1048576
33552
- },
33553
- {
33554
- id: "mimo-v2.5-pro",
33555
- name: "MiMo V2.5 Pro",
33556
- description: "Xiaomi's latest pro MiMo model for agentic coding",
33557
- category: "smart",
33558
- provider: "opencode-zen",
33559
- zenApiType: "openai-compatible",
33560
- contextLength: 1048576
33561
- },
33562
- {
33563
- id: "glm-5.1",
33564
- name: "GLM 5.1",
33565
- description: "Z.ai's latest GLM model",
33566
- category: "smart",
33567
- provider: "opencode-zen",
33568
- zenApiType: "openai-compatible",
33569
- contextLength: 202752
33570
- },
33571
- {
33572
- id: "deepseek-v4-flash",
33573
- name: "DeepSeek V4 Flash",
33574
- description: "DeepSeek's latest fast open-source model",
33575
- category: "fast",
33576
- provider: "opencode-zen",
33577
- zenApiType: "openai-compatible",
33578
- contextLength: 1048576
33579
- },
33580
33282
  {
33581
33283
  id: "claude-opus-4-8",
33582
33284
  name: "Claude Opus 4.8",
@@ -33585,6 +33287,15 @@ var OPENCODE_ZEN_MODELS = [
33585
33287
  provider: "opencode-zen",
33586
33288
  zenApiType: "anthropic",
33587
33289
  contextLength: 1e6
33290
+ },
33291
+ {
33292
+ id: "gpt-5.5-pro",
33293
+ name: "GPT 5.5 Pro",
33294
+ description: "OpenAI's latest high-capability reasoning model",
33295
+ category: "reasoning",
33296
+ provider: "opencode-zen",
33297
+ zenApiType: "openai-responses",
33298
+ contextLength: 1050000
33588
33299
  }
33589
33300
  ];
33590
33301
  var ALL_MODELS = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@austinthesing/magic-shell",
3
- "version": "0.2.22",
3
+ "version": "0.2.23",
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",