@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/index.js CHANGED
@@ -2117,20 +2117,13 @@ import { cwd as getCwd } from "process";
2117
2117
  // src/lib/models.ts
2118
2118
  var OPENROUTER_MODELS = [
2119
2119
  {
2120
- id: "xiaomi/mimo-v2.5",
2121
- name: "MiMo V2.5",
2122
- description: "Xiaomi's latest long-context MiMo model",
2120
+ id: "deepseek/deepseek-v4-flash:free",
2121
+ name: "DeepSeek V4 Flash (Free)",
2122
+ description: "DeepSeek's fast open-source model on OpenRouter's free tier (limited rate)",
2123
2123
  category: "fast",
2124
2124
  provider: "openrouter",
2125
- contextLength: 1048576
2126
- },
2127
- {
2128
- id: "xiaomi/mimo-v2.5-pro",
2129
- name: "MiMo V2.5 Pro",
2130
- description: "Xiaomi's latest pro MiMo model for agentic coding",
2131
- category: "smart",
2132
- provider: "openrouter",
2133
- contextLength: 1048576
2125
+ contextLength: 1048576,
2126
+ free: true
2134
2127
  },
2135
2128
  {
2136
2129
  id: "deepseek/deepseek-v4-flash",
@@ -2140,14 +2133,6 @@ var OPENROUTER_MODELS = [
2140
2133
  provider: "openrouter",
2141
2134
  contextLength: 1048576
2142
2135
  },
2143
- {
2144
- id: "minimax/minimax-m3",
2145
- name: "MiniMax M3",
2146
- description: "MiniMax's latest open-weight multimodal model for agentic coding",
2147
- category: "fast",
2148
- provider: "openrouter",
2149
- contextLength: 1048576
2150
- },
2151
2136
  {
2152
2137
  id: "z-ai/glm-5-turbo",
2153
2138
  name: "GLM 5 Turbo",
@@ -2156,38 +2141,6 @@ var OPENROUTER_MODELS = [
2156
2141
  provider: "openrouter",
2157
2142
  contextLength: 202752
2158
2143
  },
2159
- {
2160
- id: "openai/gpt-latest",
2161
- name: "OpenAI GPT Latest",
2162
- description: "OpenRouter alias that redirects to the latest OpenAI GPT model",
2163
- category: "smart",
2164
- provider: "openrouter",
2165
- contextLength: 1050000
2166
- },
2167
- {
2168
- id: "openai/gpt-5.5",
2169
- name: "GPT 5.5",
2170
- description: "OpenAI's latest flagship GPT model",
2171
- category: "smart",
2172
- provider: "openrouter",
2173
- contextLength: 1050000
2174
- },
2175
- {
2176
- id: "anthropic/claude-sonnet-latest",
2177
- name: "Claude Sonnet Latest",
2178
- description: "OpenRouter alias that redirects to the latest Claude Sonnet model",
2179
- category: "smart",
2180
- provider: "openrouter",
2181
- contextLength: 1e6
2182
- },
2183
- {
2184
- id: "anthropic/claude-sonnet-4.6",
2185
- name: "Claude Sonnet 4.6",
2186
- description: "Anthropic's latest Sonnet model",
2187
- category: "smart",
2188
- provider: "openrouter",
2189
- contextLength: 1e6
2190
- },
2191
2144
  {
2192
2145
  id: "moonshotai/kimi-k2.7-code",
2193
2146
  name: "Kimi K2.7 Code",
@@ -2196,22 +2149,6 @@ var OPENROUTER_MODELS = [
2196
2149
  provider: "openrouter",
2197
2150
  contextLength: 262144
2198
2151
  },
2199
- {
2200
- id: "moonshotai/kimi-k2.6",
2201
- name: "Kimi K2.6",
2202
- description: "Moonshot's latest Kimi model for coding agents",
2203
- category: "smart",
2204
- provider: "openrouter",
2205
- contextLength: 262142
2206
- },
2207
- {
2208
- id: "z-ai/glm-5.2",
2209
- name: "GLM 5.2",
2210
- description: "Z.ai's latest open-weight long-context GLM model",
2211
- category: "smart",
2212
- provider: "openrouter",
2213
- contextLength: 1048576
2214
- },
2215
2152
  {
2216
2153
  id: "deepseek/deepseek-v4-pro",
2217
2154
  name: "DeepSeek V4 Pro",
@@ -2221,36 +2158,20 @@ var OPENROUTER_MODELS = [
2221
2158
  contextLength: 1048576
2222
2159
  },
2223
2160
  {
2224
- id: "z-ai/glm-5.1",
2225
- name: "GLM 5.1",
2226
- description: "Z.ai's latest GLM model",
2227
- category: "smart",
2228
- provider: "openrouter",
2229
- contextLength: 202752
2230
- },
2231
- {
2232
- id: "qwen/qwen3.7-plus",
2233
- name: "Qwen3.7 Plus",
2234
- description: "Qwen's latest long-context open-weight plus model",
2161
+ id: "anthropic/claude-sonnet-4.6",
2162
+ name: "Claude Sonnet 4.6",
2163
+ description: "Anthropic's latest Sonnet model",
2235
2164
  category: "smart",
2236
2165
  provider: "openrouter",
2237
2166
  contextLength: 1e6
2238
2167
  },
2239
2168
  {
2240
- id: "minimax/minimax-m2.7",
2241
- name: "MiniMax M2.7",
2242
- description: "MiniMax's latest model",
2169
+ id: "openai/gpt-5.5",
2170
+ name: "GPT 5.5",
2171
+ description: "OpenAI's latest flagship GPT model",
2243
2172
  category: "smart",
2244
2173
  provider: "openrouter",
2245
- contextLength: 196608
2246
- },
2247
- {
2248
- id: "anthropic/claude-opus-latest",
2249
- name: "Claude Opus Latest",
2250
- description: "OpenRouter alias that redirects to the latest Claude Opus model",
2251
- category: "reasoning",
2252
- provider: "openrouter",
2253
- contextLength: 1e6
2174
+ contextLength: 1050000
2254
2175
  },
2255
2176
  {
2256
2177
  id: "anthropic/claude-opus-4.8",
@@ -2267,25 +2188,9 @@ var OPENROUTER_MODELS = [
2267
2188
  category: "reasoning",
2268
2189
  provider: "openrouter",
2269
2190
  contextLength: 1050000
2270
- },
2271
- {
2272
- id: "qwen/qwen3.7-max",
2273
- name: "Qwen3.7 Max",
2274
- description: "Qwen's latest high-capability open-weight model",
2275
- category: "reasoning",
2276
- provider: "openrouter",
2277
- contextLength: 1e6
2278
2191
  }
2279
2192
  ];
2280
2193
  var VERCEL_AI_GATEWAY_MODELS = [
2281
- {
2282
- id: "openai/gpt-latest",
2283
- name: "OpenAI GPT Latest",
2284
- description: "Vercel AI Gateway alias that redirects to the latest OpenAI GPT model",
2285
- category: "smart",
2286
- provider: "vercel-ai-gateway",
2287
- contextLength: 1050000
2288
- },
2289
2194
  {
2290
2195
  id: "openai/gpt-5.5",
2291
2196
  name: "GPT 5.5",
@@ -2302,14 +2207,6 @@ var VERCEL_AI_GATEWAY_MODELS = [
2302
2207
  provider: "vercel-ai-gateway",
2303
2208
  contextLength: 1e6
2304
2209
  },
2305
- {
2306
- id: "anthropic/claude-opus-4.8",
2307
- name: "Claude Opus 4.8",
2308
- description: "Anthropic's latest Opus model",
2309
- category: "reasoning",
2310
- provider: "vercel-ai-gateway",
2311
- contextLength: 1e6
2312
- },
2313
2210
  {
2314
2211
  id: "openai/gpt-5.5-pro",
2315
2212
  name: "GPT 5.5 Pro",
@@ -2317,6 +2214,14 @@ var VERCEL_AI_GATEWAY_MODELS = [
2317
2214
  category: "reasoning",
2318
2215
  provider: "vercel-ai-gateway",
2319
2216
  contextLength: 1050000
2217
+ },
2218
+ {
2219
+ id: "anthropic/claude-opus-4.8",
2220
+ name: "Claude Opus 4.8",
2221
+ description: "Anthropic's latest Opus model",
2222
+ category: "reasoning",
2223
+ provider: "vercel-ai-gateway",
2224
+ contextLength: 1e6
2320
2225
  }
2321
2226
  ];
2322
2227
  var CLOUDFLARE_AI_GATEWAY_MODELS = [
@@ -2354,14 +2259,6 @@ var CLOUDFLARE_AI_GATEWAY_MODELS = [
2354
2259
  }
2355
2260
  ];
2356
2261
  var WORKERS_AI_MODELS = [
2357
- {
2358
- id: "@cf/meta/llama-3.3-70b-instruct-fp8-fast",
2359
- name: "Llama 3.3 70B Fast",
2360
- description: "Cloudflare Workers AI fast Llama instruct model",
2361
- category: "smart",
2362
- provider: "workers-ai",
2363
- contextLength: 24000
2364
- },
2365
2262
  {
2366
2263
  id: "@cf/meta/llama-3.1-8b-instruct",
2367
2264
  name: "Llama 3.1 8B Instruct",
@@ -2370,6 +2267,14 @@ var WORKERS_AI_MODELS = [
2370
2267
  provider: "workers-ai",
2371
2268
  contextLength: 8000
2372
2269
  },
2270
+ {
2271
+ id: "@cf/meta/llama-3.3-70b-instruct-fp8-fast",
2272
+ name: "Llama 3.3 70B Fast",
2273
+ description: "Cloudflare Workers AI fast Llama instruct model",
2274
+ category: "smart",
2275
+ provider: "workers-ai",
2276
+ contextLength: 24000
2277
+ },
2373
2278
  {
2374
2279
  id: "@cf/openai/gpt-oss-120b",
2375
2280
  name: "GPT OSS 120B",
@@ -2390,55 +2295,14 @@ var OPENCODE_ZEN_MODELS = [
2390
2295
  contextLength: 1048576,
2391
2296
  free: true
2392
2297
  },
2393
- {
2394
- id: "mimo-v2.5-free",
2395
- name: "MiMo V2.5 Free",
2396
- description: "Xiaomi's free long-context MiMo model (limited time)",
2397
- category: "fast",
2398
- provider: "opencode-zen",
2399
- zenApiType: "openai-compatible",
2400
- contextLength: 1048576,
2401
- free: true
2402
- },
2403
- {
2404
- id: "north-mini-code-free",
2405
- name: "North Mini Code Free",
2406
- description: "North's free coding model (limited time)",
2407
- category: "fast",
2408
- provider: "opencode-zen",
2409
- zenApiType: "openai-compatible",
2410
- contextLength: 200000,
2411
- free: true
2412
- },
2413
- {
2414
- id: "nemotron-3-ultra-free",
2415
- name: "Nemotron 3 Ultra Free",
2416
- description: "NVIDIA Nemotron free trial model (limited time)",
2417
- category: "smart",
2418
- provider: "opencode-zen",
2419
- zenApiType: "openai-compatible",
2420
- contextLength: 131072,
2421
- free: true
2422
- },
2423
- {
2424
- id: "big-pickle",
2425
- name: "Big Pickle",
2426
- description: "OpenCode stealth model (free, limited time)",
2427
- category: "smart",
2428
- provider: "opencode-zen",
2429
- zenApiType: "openai-compatible",
2430
- contextLength: 131072,
2431
- free: true
2432
- },
2433
2298
  {
2434
2299
  id: "gpt-5-nano",
2435
2300
  name: "GPT 5 Nano",
2436
- description: "OpenAI's free lightweight GPT model",
2301
+ description: "OpenAI's lightweight GPT model ($0.05/$0.40 per 1M tokens)",
2437
2302
  category: "fast",
2438
2303
  provider: "opencode-zen",
2439
2304
  zenApiType: "openai-responses",
2440
- contextLength: 400000,
2441
- free: true
2305
+ contextLength: 400000
2442
2306
  },
2443
2307
  {
2444
2308
  id: "claude-haiku-4-5",
@@ -2458,51 +2322,6 @@ var OPENCODE_ZEN_MODELS = [
2458
2322
  zenApiType: "google",
2459
2323
  contextLength: 1048576
2460
2324
  },
2461
- {
2462
- id: "gemini-3-flash",
2463
- name: "Gemini 3 Flash",
2464
- description: "Google's fast Gemini model",
2465
- category: "fast",
2466
- provider: "opencode-zen",
2467
- zenApiType: "google",
2468
- contextLength: 200000
2469
- },
2470
- {
2471
- id: "mimo-v2.5",
2472
- name: "MiMo V2.5",
2473
- description: "Xiaomi's latest long-context MiMo model",
2474
- category: "fast",
2475
- provider: "opencode-zen",
2476
- zenApiType: "openai-compatible",
2477
- contextLength: 1048576
2478
- },
2479
- {
2480
- id: "gpt-5.4-mini",
2481
- name: "GPT 5.4 Mini",
2482
- description: "OpenAI's latest fast GPT mini model",
2483
- category: "fast",
2484
- provider: "opencode-zen",
2485
- zenApiType: "openai-responses",
2486
- contextLength: 400000
2487
- },
2488
- {
2489
- id: "gpt-5.4-nano",
2490
- name: "GPT 5.4 Nano",
2491
- description: "OpenAI's latest lightweight GPT model",
2492
- category: "fast",
2493
- provider: "opencode-zen",
2494
- zenApiType: "openai-responses",
2495
- contextLength: 400000
2496
- },
2497
- {
2498
- id: "claude-fable-5",
2499
- name: "Claude Fable 5",
2500
- description: "Anthropic's latest Fable model",
2501
- category: "smart",
2502
- provider: "opencode-zen",
2503
- zenApiType: "anthropic",
2504
- contextLength: 1e6
2505
- },
2506
2325
  {
2507
2326
  id: "claude-sonnet-4-6",
2508
2327
  name: "Claude Sonnet 4.6",
@@ -2512,15 +2331,6 @@ var OPENCODE_ZEN_MODELS = [
2512
2331
  zenApiType: "anthropic",
2513
2332
  contextLength: 1e6
2514
2333
  },
2515
- {
2516
- id: "gemini-3.1-pro",
2517
- name: "Gemini 3.1 Pro",
2518
- description: "Google's high-end Gemini model",
2519
- category: "smart",
2520
- provider: "opencode-zen",
2521
- zenApiType: "google",
2522
- contextLength: 200000
2523
- },
2524
2334
  {
2525
2335
  id: "gpt-5.5",
2526
2336
  name: "GPT 5.5",
@@ -2530,114 +2340,6 @@ var OPENCODE_ZEN_MODELS = [
2530
2340
  zenApiType: "openai-responses",
2531
2341
  contextLength: 1050000
2532
2342
  },
2533
- {
2534
- id: "gpt-5.5-pro",
2535
- name: "GPT 5.5 Pro",
2536
- description: "OpenAI's latest high-capability reasoning model",
2537
- category: "smart",
2538
- provider: "opencode-zen",
2539
- zenApiType: "openai-responses",
2540
- contextLength: 1050000
2541
- },
2542
- {
2543
- id: "gpt-5.3-codex",
2544
- name: "GPT 5.3 Codex",
2545
- description: "OpenAI's latest coding-focused GPT model",
2546
- category: "smart",
2547
- provider: "opencode-zen",
2548
- zenApiType: "openai-responses",
2549
- contextLength: 400000
2550
- },
2551
- {
2552
- id: "gpt-5.3-codex-spark",
2553
- name: "GPT 5.3 Codex Spark",
2554
- description: "OpenAI's latest fast coding-focused GPT model",
2555
- category: "smart",
2556
- provider: "opencode-zen",
2557
- zenApiType: "openai-responses",
2558
- contextLength: 400000
2559
- },
2560
- {
2561
- id: "qwen3.7-plus",
2562
- name: "Qwen3.7 Plus",
2563
- description: "Qwen's latest long-context open-weight plus model",
2564
- category: "smart",
2565
- provider: "opencode-zen",
2566
- zenApiType: "anthropic",
2567
- contextLength: 1e6
2568
- },
2569
- {
2570
- id: "qwen3.7-max",
2571
- name: "Qwen3.7 Max",
2572
- description: "Qwen's latest high-capability open-weight model",
2573
- category: "smart",
2574
- provider: "opencode-zen",
2575
- zenApiType: "anthropic",
2576
- contextLength: 1e6
2577
- },
2578
- {
2579
- id: "minimax-m2.7",
2580
- name: "MiniMax M2.7",
2581
- description: "MiniMax's latest model",
2582
- category: "smart",
2583
- provider: "opencode-zen",
2584
- zenApiType: "openai-compatible",
2585
- contextLength: 196608
2586
- },
2587
- {
2588
- id: "kimi-k2.6",
2589
- name: "Kimi K2.6",
2590
- description: "Moonshot's latest model",
2591
- category: "smart",
2592
- provider: "opencode-zen",
2593
- zenApiType: "openai-compatible",
2594
- contextLength: 262144
2595
- },
2596
- {
2597
- id: "glm-5.2",
2598
- name: "GLM 5.2",
2599
- description: "Z.ai's latest open-weight long-context GLM model",
2600
- category: "smart",
2601
- provider: "opencode-zen",
2602
- zenApiType: "openai-compatible",
2603
- contextLength: 1048576
2604
- },
2605
- {
2606
- id: "deepseek-v4-pro",
2607
- name: "DeepSeek V4 Pro",
2608
- description: "DeepSeek's latest high-context open-source model",
2609
- category: "smart",
2610
- provider: "opencode-zen",
2611
- zenApiType: "openai-compatible",
2612
- contextLength: 1048576
2613
- },
2614
- {
2615
- id: "mimo-v2.5-pro",
2616
- name: "MiMo V2.5 Pro",
2617
- description: "Xiaomi's latest pro MiMo model for agentic coding",
2618
- category: "smart",
2619
- provider: "opencode-zen",
2620
- zenApiType: "openai-compatible",
2621
- contextLength: 1048576
2622
- },
2623
- {
2624
- id: "glm-5.1",
2625
- name: "GLM 5.1",
2626
- description: "Z.ai's latest GLM model",
2627
- category: "smart",
2628
- provider: "opencode-zen",
2629
- zenApiType: "openai-compatible",
2630
- contextLength: 202752
2631
- },
2632
- {
2633
- id: "deepseek-v4-flash",
2634
- name: "DeepSeek V4 Flash",
2635
- description: "DeepSeek's latest fast open-source model",
2636
- category: "fast",
2637
- provider: "opencode-zen",
2638
- zenApiType: "openai-compatible",
2639
- contextLength: 1048576
2640
- },
2641
2343
  {
2642
2344
  id: "claude-opus-4-8",
2643
2345
  name: "Claude Opus 4.8",
@@ -2646,6 +2348,15 @@ var OPENCODE_ZEN_MODELS = [
2646
2348
  provider: "opencode-zen",
2647
2349
  zenApiType: "anthropic",
2648
2350
  contextLength: 1e6
2351
+ },
2352
+ {
2353
+ id: "gpt-5.5-pro",
2354
+ name: "GPT 5.5 Pro",
2355
+ description: "OpenAI's latest high-capability reasoning model",
2356
+ category: "reasoning",
2357
+ provider: "opencode-zen",
2358
+ zenApiType: "openai-responses",
2359
+ contextLength: 1050000
2649
2360
  }
2650
2361
  ];
2651
2362
  var ALL_MODELS = [