@austinthesing/magic-shell 0.2.14 → 0.2.16
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/README.md +29 -7
- package/dist/cli.js +110 -64
- package/dist/index.js +201 -126
- package/dist/tui.js +110 -64
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -163,13 +163,15 @@ All shortcuts use the `Ctrl+X` chord (press Ctrl+X, then the key):
|
|
|
163
163
|
|
|
164
164
|
You can also type commands directly in the TUI:
|
|
165
165
|
|
|
166
|
-
- `!help` - Show help
|
|
167
|
-
- `!model` - Change model
|
|
168
|
-
- `!provider` - Switch provider
|
|
169
|
-
- `!dry` - Toggle dry-run mode
|
|
170
|
-
- `!config` - Show current configuration
|
|
171
|
-
- `!history` - Show command history
|
|
172
|
-
- `!clear` - Clear output
|
|
166
|
+
- `!help` or `/help` - Show help
|
|
167
|
+
- `!model` or `/model` - Change model
|
|
168
|
+
- `!provider` or `/provider` - Switch provider
|
|
169
|
+
- `!dry` or `/dry` - Toggle dry-run mode
|
|
170
|
+
- `!config` or `/config` - Show current configuration
|
|
171
|
+
- `!history` or `/history` - Show command history
|
|
172
|
+
- `!clear` or `/clear` - Clear output
|
|
173
|
+
|
|
174
|
+
> **Note:** Both `!` and `/` prefixes work for all commands. Use whichever feels more natural!
|
|
173
175
|
|
|
174
176
|
## AI Providers
|
|
175
177
|
|
|
@@ -571,6 +573,26 @@ Contributions are welcome! Please feel free to submit a Pull Request.
|
|
|
571
573
|
|
|
572
574
|
MIT License - see [LICENSE](LICENSE) for details.
|
|
573
575
|
|
|
576
|
+
## Release Notes
|
|
577
|
+
|
|
578
|
+
### v0.2.15 - Slash Command Support
|
|
579
|
+
- Added `/` command support in TUI mode (e.g., `/help`, `/clear`)
|
|
580
|
+
- Both `!` and `/` prefixes now work for all TUI commands
|
|
581
|
+
- Updated help text to show command options
|
|
582
|
+
|
|
583
|
+
### v0.2.14
|
|
584
|
+
- Improved CI/CD workflows
|
|
585
|
+
- Enhanced landing page SEO and structure
|
|
586
|
+
- Fixed bin paths in package.json
|
|
587
|
+
|
|
588
|
+
### v0.2.13
|
|
589
|
+
- Added custom model support (LM Studio, Ollama, OpenAI-compatible)
|
|
590
|
+
- Secure credential storage via system keychain
|
|
591
|
+
- Project context detection for package.json scripts and Makefile
|
|
592
|
+
- Multiple AI providers (OpenCode Zen, OpenRouter)
|
|
593
|
+
- Beautiful TUI with 8 built-in themes
|
|
594
|
+
- Comprehensive safety system with severity levels
|
|
595
|
+
|
|
574
596
|
## Acknowledgments
|
|
575
597
|
|
|
576
598
|
- Built with [Bun](https://bun.sh)
|
package/dist/cli.js
CHANGED
|
@@ -23106,42 +23106,46 @@ var OPENCODE_ZEN_MODELS = [
|
|
|
23106
23106
|
free: true
|
|
23107
23107
|
},
|
|
23108
23108
|
{
|
|
23109
|
-
id: "glm-4.7",
|
|
23110
|
-
name: "GLM 4.7",
|
|
23111
|
-
description: "
|
|
23109
|
+
id: "glm-4.7-free",
|
|
23110
|
+
name: "GLM 4.7 Free",
|
|
23111
|
+
description: "Zhipu AI's model (free, limited time)",
|
|
23112
23112
|
category: "fast",
|
|
23113
23113
|
provider: "opencode-zen",
|
|
23114
|
-
contextLength: 128000
|
|
23114
|
+
contextLength: 128000,
|
|
23115
|
+
free: true
|
|
23115
23116
|
},
|
|
23116
23117
|
{
|
|
23117
|
-
id: "
|
|
23118
|
-
name: "
|
|
23119
|
-
description: "
|
|
23118
|
+
id: "kimi-k2.5-free",
|
|
23119
|
+
name: "Kimi K2.5 Free",
|
|
23120
|
+
description: "Moonshot's latest model (free, limited time)",
|
|
23120
23121
|
category: "smart",
|
|
23121
23122
|
provider: "opencode-zen",
|
|
23122
|
-
contextLength:
|
|
23123
|
+
contextLength: 131072,
|
|
23124
|
+
free: true
|
|
23123
23125
|
},
|
|
23124
23126
|
{
|
|
23125
|
-
id: "
|
|
23126
|
-
name: "
|
|
23127
|
-
description: "
|
|
23127
|
+
id: "minimax-m2.1-free",
|
|
23128
|
+
name: "MiniMax M2.1 Free",
|
|
23129
|
+
description: "MiniMax's capable model (free, limited time)",
|
|
23128
23130
|
category: "smart",
|
|
23129
23131
|
provider: "opencode-zen",
|
|
23130
|
-
contextLength:
|
|
23132
|
+
contextLength: 128000,
|
|
23133
|
+
free: true
|
|
23131
23134
|
},
|
|
23132
23135
|
{
|
|
23133
|
-
id: "
|
|
23134
|
-
name: "
|
|
23135
|
-
description: "
|
|
23136
|
+
id: "gpt-5-nano",
|
|
23137
|
+
name: "GPT 5 Nano",
|
|
23138
|
+
description: "OpenAI's fastest GPT model (free)",
|
|
23136
23139
|
category: "fast",
|
|
23137
23140
|
provider: "opencode-zen",
|
|
23138
|
-
contextLength: 200000
|
|
23141
|
+
contextLength: 200000,
|
|
23142
|
+
free: true
|
|
23139
23143
|
},
|
|
23140
23144
|
{
|
|
23141
|
-
id: "claude-
|
|
23142
|
-
name: "Claude
|
|
23143
|
-
description: "Anthropic's
|
|
23144
|
-
category: "
|
|
23145
|
+
id: "claude-3-5-haiku",
|
|
23146
|
+
name: "Claude Haiku 3.5",
|
|
23147
|
+
description: "Anthropic's fast and efficient model",
|
|
23148
|
+
category: "fast",
|
|
23145
23149
|
provider: "opencode-zen",
|
|
23146
23150
|
contextLength: 200000
|
|
23147
23151
|
},
|
|
@@ -23149,47 +23153,47 @@ var OPENCODE_ZEN_MODELS = [
|
|
|
23149
23153
|
id: "claude-haiku-4-5",
|
|
23150
23154
|
name: "Claude Haiku 4.5",
|
|
23151
23155
|
description: "Anthropic's latest fast model",
|
|
23152
|
-
category: "
|
|
23156
|
+
category: "fast",
|
|
23153
23157
|
provider: "opencode-zen",
|
|
23154
23158
|
contextLength: 200000
|
|
23155
23159
|
},
|
|
23156
23160
|
{
|
|
23157
|
-
id: "
|
|
23158
|
-
name: "
|
|
23159
|
-
description: "
|
|
23160
|
-
category: "
|
|
23161
|
+
id: "gemini-3-flash",
|
|
23162
|
+
name: "Gemini 3 Flash",
|
|
23163
|
+
description: "Google's fast Gemini model",
|
|
23164
|
+
category: "fast",
|
|
23161
23165
|
provider: "opencode-zen",
|
|
23162
|
-
contextLength:
|
|
23166
|
+
contextLength: 200000
|
|
23163
23167
|
},
|
|
23164
23168
|
{
|
|
23165
|
-
id: "
|
|
23166
|
-
name: "
|
|
23167
|
-
description: "
|
|
23168
|
-
category: "
|
|
23169
|
+
id: "gpt-5.1-codex-mini",
|
|
23170
|
+
name: "GPT 5.1 Codex Mini",
|
|
23171
|
+
description: "OpenAI's fast codex model",
|
|
23172
|
+
category: "fast",
|
|
23169
23173
|
provider: "opencode-zen",
|
|
23170
|
-
contextLength:
|
|
23174
|
+
contextLength: 200000
|
|
23171
23175
|
},
|
|
23172
23176
|
{
|
|
23173
|
-
id: "glm-4.
|
|
23174
|
-
name: "GLM 4.
|
|
23175
|
-
description: "Zhipu AI's
|
|
23176
|
-
category: "
|
|
23177
|
+
id: "glm-4.7",
|
|
23178
|
+
name: "GLM 4.7",
|
|
23179
|
+
description: "Zhipu AI's model",
|
|
23180
|
+
category: "fast",
|
|
23177
23181
|
provider: "opencode-zen",
|
|
23178
23182
|
contextLength: 128000
|
|
23179
23183
|
},
|
|
23180
23184
|
{
|
|
23181
|
-
id: "
|
|
23182
|
-
name: "
|
|
23183
|
-
description: "
|
|
23185
|
+
id: "claude-sonnet-4",
|
|
23186
|
+
name: "Claude Sonnet 4",
|
|
23187
|
+
description: "Anthropic's balanced model for complex tasks",
|
|
23184
23188
|
category: "smart",
|
|
23185
23189
|
provider: "opencode-zen",
|
|
23186
23190
|
contextLength: 200000
|
|
23187
23191
|
},
|
|
23188
23192
|
{
|
|
23189
|
-
id: "gemini-3-
|
|
23190
|
-
name: "Gemini 3
|
|
23191
|
-
description: "Google's
|
|
23192
|
-
category: "
|
|
23193
|
+
id: "gemini-3-pro",
|
|
23194
|
+
name: "Gemini 3 Pro",
|
|
23195
|
+
description: "Google's high-end Gemini model",
|
|
23196
|
+
category: "smart",
|
|
23193
23197
|
provider: "opencode-zen",
|
|
23194
23198
|
contextLength: 200000
|
|
23195
23199
|
},
|
|
@@ -23225,22 +23229,6 @@ var OPENCODE_ZEN_MODELS = [
|
|
|
23225
23229
|
provider: "opencode-zen",
|
|
23226
23230
|
contextLength: 200000
|
|
23227
23231
|
},
|
|
23228
|
-
{
|
|
23229
|
-
id: "gpt-5.1-codex-max",
|
|
23230
|
-
name: "GPT 5.1 Codex Max",
|
|
23231
|
-
description: "OpenAI's largest coding model",
|
|
23232
|
-
category: "reasoning",
|
|
23233
|
-
provider: "opencode-zen",
|
|
23234
|
-
contextLength: 200000
|
|
23235
|
-
},
|
|
23236
|
-
{
|
|
23237
|
-
id: "gpt-5.1-codex-mini",
|
|
23238
|
-
name: "GPT 5.1 Codex Mini",
|
|
23239
|
-
description: "OpenAI's fast codex model",
|
|
23240
|
-
category: "fast",
|
|
23241
|
-
provider: "opencode-zen",
|
|
23242
|
-
contextLength: 200000
|
|
23243
|
-
},
|
|
23244
23232
|
{
|
|
23245
23233
|
id: "gpt-5",
|
|
23246
23234
|
name: "GPT 5",
|
|
@@ -23258,12 +23246,44 @@ var OPENCODE_ZEN_MODELS = [
|
|
|
23258
23246
|
contextLength: 200000
|
|
23259
23247
|
},
|
|
23260
23248
|
{
|
|
23261
|
-
id: "
|
|
23262
|
-
name: "
|
|
23263
|
-
description: "
|
|
23264
|
-
category: "
|
|
23249
|
+
id: "minimax-m2.1",
|
|
23250
|
+
name: "MiniMax M2.1",
|
|
23251
|
+
description: "MiniMax's capable model",
|
|
23252
|
+
category: "smart",
|
|
23265
23253
|
provider: "opencode-zen",
|
|
23266
|
-
contextLength:
|
|
23254
|
+
contextLength: 128000
|
|
23255
|
+
},
|
|
23256
|
+
{
|
|
23257
|
+
id: "kimi-k2.5",
|
|
23258
|
+
name: "Kimi K2.5",
|
|
23259
|
+
description: "Moonshot's latest model",
|
|
23260
|
+
category: "smart",
|
|
23261
|
+
provider: "opencode-zen",
|
|
23262
|
+
contextLength: 131072
|
|
23263
|
+
},
|
|
23264
|
+
{
|
|
23265
|
+
id: "kimi-k2",
|
|
23266
|
+
name: "Kimi K2",
|
|
23267
|
+
description: "Moonshot's powerful model",
|
|
23268
|
+
category: "smart",
|
|
23269
|
+
provider: "opencode-zen",
|
|
23270
|
+
contextLength: 131072
|
|
23271
|
+
},
|
|
23272
|
+
{
|
|
23273
|
+
id: "qwen3-coder",
|
|
23274
|
+
name: "Qwen3 Coder 480B",
|
|
23275
|
+
description: "Alibaba's massive coding model",
|
|
23276
|
+
category: "smart",
|
|
23277
|
+
provider: "opencode-zen",
|
|
23278
|
+
contextLength: 131072
|
|
23279
|
+
},
|
|
23280
|
+
{
|
|
23281
|
+
id: "glm-4.6",
|
|
23282
|
+
name: "GLM 4.6",
|
|
23283
|
+
description: "Zhipu AI's capable model",
|
|
23284
|
+
category: "smart",
|
|
23285
|
+
provider: "opencode-zen",
|
|
23286
|
+
contextLength: 128000
|
|
23267
23287
|
},
|
|
23268
23288
|
{
|
|
23269
23289
|
id: "claude-sonnet-4-5",
|
|
@@ -23273,6 +23293,14 @@ var OPENCODE_ZEN_MODELS = [
|
|
|
23273
23293
|
provider: "opencode-zen",
|
|
23274
23294
|
contextLength: 200000
|
|
23275
23295
|
},
|
|
23296
|
+
{
|
|
23297
|
+
id: "claude-opus-4-6",
|
|
23298
|
+
name: "Claude Opus 4.6",
|
|
23299
|
+
description: "Anthropic's newest Opus model",
|
|
23300
|
+
category: "reasoning",
|
|
23301
|
+
provider: "opencode-zen",
|
|
23302
|
+
contextLength: 200000
|
|
23303
|
+
},
|
|
23276
23304
|
{
|
|
23277
23305
|
id: "claude-opus-4-5",
|
|
23278
23306
|
name: "Claude Opus 4.5",
|
|
@@ -23289,6 +23317,14 @@ var OPENCODE_ZEN_MODELS = [
|
|
|
23289
23317
|
provider: "opencode-zen",
|
|
23290
23318
|
contextLength: 200000
|
|
23291
23319
|
},
|
|
23320
|
+
{
|
|
23321
|
+
id: "gpt-5.1-codex-max",
|
|
23322
|
+
name: "GPT 5.1 Codex Max",
|
|
23323
|
+
description: "OpenAI's largest coding model",
|
|
23324
|
+
category: "reasoning",
|
|
23325
|
+
provider: "opencode-zen",
|
|
23326
|
+
contextLength: 200000
|
|
23327
|
+
},
|
|
23292
23328
|
{
|
|
23293
23329
|
id: "kimi-k2-thinking",
|
|
23294
23330
|
name: "Kimi K2 Thinking",
|
|
@@ -58379,6 +58415,9 @@ function formatRepoContext(context2) {
|
|
|
58379
58415
|
|
|
58380
58416
|
// src/lib/api.ts
|
|
58381
58417
|
function getZenApiType(modelId) {
|
|
58418
|
+
if (modelId === "minimax-m2.1-free") {
|
|
58419
|
+
return "anthropic";
|
|
58420
|
+
}
|
|
58382
58421
|
if (modelId.startsWith("gpt-")) {
|
|
58383
58422
|
return "openai-responses";
|
|
58384
58423
|
}
|
|
@@ -59466,7 +59505,7 @@ async function handleInput(value) {
|
|
|
59466
59505
|
if (!input)
|
|
59467
59506
|
return;
|
|
59468
59507
|
inputField.setText("");
|
|
59469
|
-
if (input.startsWith("!")) {
|
|
59508
|
+
if (input.startsWith("!") || input.startsWith("/")) {
|
|
59470
59509
|
await handleSpecialCommand(input);
|
|
59471
59510
|
return;
|
|
59472
59511
|
}
|
|
@@ -59657,6 +59696,12 @@ T Change theme R Toggle repo context
|
|
|
59657
59696
|
H Show history L Clear chat
|
|
59658
59697
|
C Show config ? This help
|
|
59659
59698
|
|
|
59699
|
+
Commands (type ! or / followed by):
|
|
59700
|
+
help Show this help model Change model
|
|
59701
|
+
provider Switch provider dry Toggle dry-run
|
|
59702
|
+
config Show configuration history Show history
|
|
59703
|
+
clear Clear chat
|
|
59704
|
+
|
|
59660
59705
|
Safety Levels:
|
|
59661
59706
|
- strict: Confirm ALL potentially dangerous commands
|
|
59662
59707
|
- moderate: Confirm high/critical severity commands (default)
|
|
@@ -59664,6 +59709,7 @@ Safety Levels:
|
|
|
59664
59709
|
|
|
59665
59710
|
Tips:
|
|
59666
59711
|
- Type naturally: "list all files" -> ls -la
|
|
59712
|
+
- Use ! or / commands: !help or /help
|
|
59667
59713
|
- Reference history: "do that again", "undo"
|
|
59668
59714
|
- Enable repo context to use project scripts (Ctrl+X R)`;
|
|
59669
59715
|
addSystemMessage(helpText);
|
package/dist/index.js
CHANGED
|
@@ -2132,42 +2132,46 @@ var OPENCODE_ZEN_MODELS = [
|
|
|
2132
2132
|
free: true
|
|
2133
2133
|
},
|
|
2134
2134
|
{
|
|
2135
|
-
id: "glm-4.7",
|
|
2136
|
-
name: "GLM 4.7",
|
|
2137
|
-
description: "
|
|
2135
|
+
id: "glm-4.7-free",
|
|
2136
|
+
name: "GLM 4.7 Free",
|
|
2137
|
+
description: "Zhipu AI's model (free, limited time)",
|
|
2138
2138
|
category: "fast",
|
|
2139
2139
|
provider: "opencode-zen",
|
|
2140
|
-
contextLength: 128000
|
|
2140
|
+
contextLength: 128000,
|
|
2141
|
+
free: true
|
|
2141
2142
|
},
|
|
2142
2143
|
{
|
|
2143
|
-
id: "
|
|
2144
|
-
name: "
|
|
2145
|
-
description: "
|
|
2144
|
+
id: "kimi-k2.5-free",
|
|
2145
|
+
name: "Kimi K2.5 Free",
|
|
2146
|
+
description: "Moonshot's latest model (free, limited time)",
|
|
2146
2147
|
category: "smart",
|
|
2147
2148
|
provider: "opencode-zen",
|
|
2148
|
-
contextLength:
|
|
2149
|
+
contextLength: 131072,
|
|
2150
|
+
free: true
|
|
2149
2151
|
},
|
|
2150
2152
|
{
|
|
2151
|
-
id: "
|
|
2152
|
-
name: "
|
|
2153
|
-
description: "
|
|
2153
|
+
id: "minimax-m2.1-free",
|
|
2154
|
+
name: "MiniMax M2.1 Free",
|
|
2155
|
+
description: "MiniMax's capable model (free, limited time)",
|
|
2154
2156
|
category: "smart",
|
|
2155
2157
|
provider: "opencode-zen",
|
|
2156
|
-
contextLength:
|
|
2158
|
+
contextLength: 128000,
|
|
2159
|
+
free: true
|
|
2157
2160
|
},
|
|
2158
2161
|
{
|
|
2159
|
-
id: "
|
|
2160
|
-
name: "
|
|
2161
|
-
description: "
|
|
2162
|
+
id: "gpt-5-nano",
|
|
2163
|
+
name: "GPT 5 Nano",
|
|
2164
|
+
description: "OpenAI's fastest GPT model (free)",
|
|
2162
2165
|
category: "fast",
|
|
2163
2166
|
provider: "opencode-zen",
|
|
2164
|
-
contextLength: 200000
|
|
2167
|
+
contextLength: 200000,
|
|
2168
|
+
free: true
|
|
2165
2169
|
},
|
|
2166
2170
|
{
|
|
2167
|
-
id: "claude-
|
|
2168
|
-
name: "Claude
|
|
2169
|
-
description: "Anthropic's
|
|
2170
|
-
category: "
|
|
2171
|
+
id: "claude-3-5-haiku",
|
|
2172
|
+
name: "Claude Haiku 3.5",
|
|
2173
|
+
description: "Anthropic's fast and efficient model",
|
|
2174
|
+
category: "fast",
|
|
2171
2175
|
provider: "opencode-zen",
|
|
2172
2176
|
contextLength: 200000
|
|
2173
2177
|
},
|
|
@@ -2175,47 +2179,47 @@ var OPENCODE_ZEN_MODELS = [
|
|
|
2175
2179
|
id: "claude-haiku-4-5",
|
|
2176
2180
|
name: "Claude Haiku 4.5",
|
|
2177
2181
|
description: "Anthropic's latest fast model",
|
|
2178
|
-
category: "
|
|
2182
|
+
category: "fast",
|
|
2179
2183
|
provider: "opencode-zen",
|
|
2180
2184
|
contextLength: 200000
|
|
2181
2185
|
},
|
|
2182
2186
|
{
|
|
2183
|
-
id: "
|
|
2184
|
-
name: "
|
|
2185
|
-
description: "
|
|
2186
|
-
category: "
|
|
2187
|
+
id: "gemini-3-flash",
|
|
2188
|
+
name: "Gemini 3 Flash",
|
|
2189
|
+
description: "Google's fast Gemini model",
|
|
2190
|
+
category: "fast",
|
|
2187
2191
|
provider: "opencode-zen",
|
|
2188
|
-
contextLength:
|
|
2192
|
+
contextLength: 200000
|
|
2189
2193
|
},
|
|
2190
2194
|
{
|
|
2191
|
-
id: "
|
|
2192
|
-
name: "
|
|
2193
|
-
description: "
|
|
2194
|
-
category: "
|
|
2195
|
+
id: "gpt-5.1-codex-mini",
|
|
2196
|
+
name: "GPT 5.1 Codex Mini",
|
|
2197
|
+
description: "OpenAI's fast codex model",
|
|
2198
|
+
category: "fast",
|
|
2195
2199
|
provider: "opencode-zen",
|
|
2196
|
-
contextLength:
|
|
2200
|
+
contextLength: 200000
|
|
2197
2201
|
},
|
|
2198
2202
|
{
|
|
2199
|
-
id: "glm-4.
|
|
2200
|
-
name: "GLM 4.
|
|
2201
|
-
description: "Zhipu AI's
|
|
2202
|
-
category: "
|
|
2203
|
+
id: "glm-4.7",
|
|
2204
|
+
name: "GLM 4.7",
|
|
2205
|
+
description: "Zhipu AI's model",
|
|
2206
|
+
category: "fast",
|
|
2203
2207
|
provider: "opencode-zen",
|
|
2204
2208
|
contextLength: 128000
|
|
2205
2209
|
},
|
|
2206
2210
|
{
|
|
2207
|
-
id: "
|
|
2208
|
-
name: "
|
|
2209
|
-
description: "
|
|
2211
|
+
id: "claude-sonnet-4",
|
|
2212
|
+
name: "Claude Sonnet 4",
|
|
2213
|
+
description: "Anthropic's balanced model for complex tasks",
|
|
2210
2214
|
category: "smart",
|
|
2211
2215
|
provider: "opencode-zen",
|
|
2212
2216
|
contextLength: 200000
|
|
2213
2217
|
},
|
|
2214
2218
|
{
|
|
2215
|
-
id: "gemini-3-
|
|
2216
|
-
name: "Gemini 3
|
|
2217
|
-
description: "Google's
|
|
2218
|
-
category: "
|
|
2219
|
+
id: "gemini-3-pro",
|
|
2220
|
+
name: "Gemini 3 Pro",
|
|
2221
|
+
description: "Google's high-end Gemini model",
|
|
2222
|
+
category: "smart",
|
|
2219
2223
|
provider: "opencode-zen",
|
|
2220
2224
|
contextLength: 200000
|
|
2221
2225
|
},
|
|
@@ -2251,22 +2255,6 @@ var OPENCODE_ZEN_MODELS = [
|
|
|
2251
2255
|
provider: "opencode-zen",
|
|
2252
2256
|
contextLength: 200000
|
|
2253
2257
|
},
|
|
2254
|
-
{
|
|
2255
|
-
id: "gpt-5.1-codex-max",
|
|
2256
|
-
name: "GPT 5.1 Codex Max",
|
|
2257
|
-
description: "OpenAI's largest coding model",
|
|
2258
|
-
category: "reasoning",
|
|
2259
|
-
provider: "opencode-zen",
|
|
2260
|
-
contextLength: 200000
|
|
2261
|
-
},
|
|
2262
|
-
{
|
|
2263
|
-
id: "gpt-5.1-codex-mini",
|
|
2264
|
-
name: "GPT 5.1 Codex Mini",
|
|
2265
|
-
description: "OpenAI's fast codex model",
|
|
2266
|
-
category: "fast",
|
|
2267
|
-
provider: "opencode-zen",
|
|
2268
|
-
contextLength: 200000
|
|
2269
|
-
},
|
|
2270
2258
|
{
|
|
2271
2259
|
id: "gpt-5",
|
|
2272
2260
|
name: "GPT 5",
|
|
@@ -2284,12 +2272,44 @@ var OPENCODE_ZEN_MODELS = [
|
|
|
2284
2272
|
contextLength: 200000
|
|
2285
2273
|
},
|
|
2286
2274
|
{
|
|
2287
|
-
id: "
|
|
2288
|
-
name: "
|
|
2289
|
-
description: "
|
|
2290
|
-
category: "
|
|
2275
|
+
id: "minimax-m2.1",
|
|
2276
|
+
name: "MiniMax M2.1",
|
|
2277
|
+
description: "MiniMax's capable model",
|
|
2278
|
+
category: "smart",
|
|
2291
2279
|
provider: "opencode-zen",
|
|
2292
|
-
contextLength:
|
|
2280
|
+
contextLength: 128000
|
|
2281
|
+
},
|
|
2282
|
+
{
|
|
2283
|
+
id: "kimi-k2.5",
|
|
2284
|
+
name: "Kimi K2.5",
|
|
2285
|
+
description: "Moonshot's latest model",
|
|
2286
|
+
category: "smart",
|
|
2287
|
+
provider: "opencode-zen",
|
|
2288
|
+
contextLength: 131072
|
|
2289
|
+
},
|
|
2290
|
+
{
|
|
2291
|
+
id: "kimi-k2",
|
|
2292
|
+
name: "Kimi K2",
|
|
2293
|
+
description: "Moonshot's powerful model",
|
|
2294
|
+
category: "smart",
|
|
2295
|
+
provider: "opencode-zen",
|
|
2296
|
+
contextLength: 131072
|
|
2297
|
+
},
|
|
2298
|
+
{
|
|
2299
|
+
id: "qwen3-coder",
|
|
2300
|
+
name: "Qwen3 Coder 480B",
|
|
2301
|
+
description: "Alibaba's massive coding model",
|
|
2302
|
+
category: "smart",
|
|
2303
|
+
provider: "opencode-zen",
|
|
2304
|
+
contextLength: 131072
|
|
2305
|
+
},
|
|
2306
|
+
{
|
|
2307
|
+
id: "glm-4.6",
|
|
2308
|
+
name: "GLM 4.6",
|
|
2309
|
+
description: "Zhipu AI's capable model",
|
|
2310
|
+
category: "smart",
|
|
2311
|
+
provider: "opencode-zen",
|
|
2312
|
+
contextLength: 128000
|
|
2293
2313
|
},
|
|
2294
2314
|
{
|
|
2295
2315
|
id: "claude-sonnet-4-5",
|
|
@@ -2299,6 +2319,14 @@ var OPENCODE_ZEN_MODELS = [
|
|
|
2299
2319
|
provider: "opencode-zen",
|
|
2300
2320
|
contextLength: 200000
|
|
2301
2321
|
},
|
|
2322
|
+
{
|
|
2323
|
+
id: "claude-opus-4-6",
|
|
2324
|
+
name: "Claude Opus 4.6",
|
|
2325
|
+
description: "Anthropic's newest Opus model",
|
|
2326
|
+
category: "reasoning",
|
|
2327
|
+
provider: "opencode-zen",
|
|
2328
|
+
contextLength: 200000
|
|
2329
|
+
},
|
|
2302
2330
|
{
|
|
2303
2331
|
id: "claude-opus-4-5",
|
|
2304
2332
|
name: "Claude Opus 4.5",
|
|
@@ -2315,6 +2343,14 @@ var OPENCODE_ZEN_MODELS = [
|
|
|
2315
2343
|
provider: "opencode-zen",
|
|
2316
2344
|
contextLength: 200000
|
|
2317
2345
|
},
|
|
2346
|
+
{
|
|
2347
|
+
id: "gpt-5.1-codex-max",
|
|
2348
|
+
name: "GPT 5.1 Codex Max",
|
|
2349
|
+
description: "OpenAI's largest coding model",
|
|
2350
|
+
category: "reasoning",
|
|
2351
|
+
provider: "opencode-zen",
|
|
2352
|
+
contextLength: 200000
|
|
2353
|
+
},
|
|
2318
2354
|
{
|
|
2319
2355
|
id: "kimi-k2-thinking",
|
|
2320
2356
|
name: "Kimi K2 Thinking",
|
|
@@ -37253,42 +37289,46 @@ var OPENCODE_ZEN_MODELS2 = [
|
|
|
37253
37289
|
free: true
|
|
37254
37290
|
},
|
|
37255
37291
|
{
|
|
37256
|
-
id: "glm-4.7",
|
|
37257
|
-
name: "GLM 4.7",
|
|
37258
|
-
description: "
|
|
37292
|
+
id: "glm-4.7-free",
|
|
37293
|
+
name: "GLM 4.7 Free",
|
|
37294
|
+
description: "Zhipu AI's model (free, limited time)",
|
|
37259
37295
|
category: "fast",
|
|
37260
37296
|
provider: "opencode-zen",
|
|
37261
|
-
contextLength: 128000
|
|
37297
|
+
contextLength: 128000,
|
|
37298
|
+
free: true
|
|
37262
37299
|
},
|
|
37263
37300
|
{
|
|
37264
|
-
id: "
|
|
37265
|
-
name: "
|
|
37266
|
-
description: "
|
|
37301
|
+
id: "kimi-k2.5-free",
|
|
37302
|
+
name: "Kimi K2.5 Free",
|
|
37303
|
+
description: "Moonshot's latest model (free, limited time)",
|
|
37267
37304
|
category: "smart",
|
|
37268
37305
|
provider: "opencode-zen",
|
|
37269
|
-
contextLength:
|
|
37306
|
+
contextLength: 131072,
|
|
37307
|
+
free: true
|
|
37270
37308
|
},
|
|
37271
37309
|
{
|
|
37272
|
-
id: "
|
|
37273
|
-
name: "
|
|
37274
|
-
description: "
|
|
37310
|
+
id: "minimax-m2.1-free",
|
|
37311
|
+
name: "MiniMax M2.1 Free",
|
|
37312
|
+
description: "MiniMax's capable model (free, limited time)",
|
|
37275
37313
|
category: "smart",
|
|
37276
37314
|
provider: "opencode-zen",
|
|
37277
|
-
contextLength:
|
|
37315
|
+
contextLength: 128000,
|
|
37316
|
+
free: true
|
|
37278
37317
|
},
|
|
37279
37318
|
{
|
|
37280
|
-
id: "
|
|
37281
|
-
name: "
|
|
37282
|
-
description: "
|
|
37319
|
+
id: "gpt-5-nano",
|
|
37320
|
+
name: "GPT 5 Nano",
|
|
37321
|
+
description: "OpenAI's fastest GPT model (free)",
|
|
37283
37322
|
category: "fast",
|
|
37284
37323
|
provider: "opencode-zen",
|
|
37285
|
-
contextLength: 200000
|
|
37324
|
+
contextLength: 200000,
|
|
37325
|
+
free: true
|
|
37286
37326
|
},
|
|
37287
37327
|
{
|
|
37288
|
-
id: "claude-
|
|
37289
|
-
name: "Claude
|
|
37290
|
-
description: "Anthropic's
|
|
37291
|
-
category: "
|
|
37328
|
+
id: "claude-3-5-haiku",
|
|
37329
|
+
name: "Claude Haiku 3.5",
|
|
37330
|
+
description: "Anthropic's fast and efficient model",
|
|
37331
|
+
category: "fast",
|
|
37292
37332
|
provider: "opencode-zen",
|
|
37293
37333
|
contextLength: 200000
|
|
37294
37334
|
},
|
|
@@ -37296,47 +37336,47 @@ var OPENCODE_ZEN_MODELS2 = [
|
|
|
37296
37336
|
id: "claude-haiku-4-5",
|
|
37297
37337
|
name: "Claude Haiku 4.5",
|
|
37298
37338
|
description: "Anthropic's latest fast model",
|
|
37299
|
-
category: "
|
|
37339
|
+
category: "fast",
|
|
37300
37340
|
provider: "opencode-zen",
|
|
37301
37341
|
contextLength: 200000
|
|
37302
37342
|
},
|
|
37303
37343
|
{
|
|
37304
|
-
id: "
|
|
37305
|
-
name: "
|
|
37306
|
-
description: "
|
|
37307
|
-
category: "
|
|
37344
|
+
id: "gemini-3-flash",
|
|
37345
|
+
name: "Gemini 3 Flash",
|
|
37346
|
+
description: "Google's fast Gemini model",
|
|
37347
|
+
category: "fast",
|
|
37308
37348
|
provider: "opencode-zen",
|
|
37309
|
-
contextLength:
|
|
37349
|
+
contextLength: 200000
|
|
37310
37350
|
},
|
|
37311
37351
|
{
|
|
37312
|
-
id: "
|
|
37313
|
-
name: "
|
|
37314
|
-
description: "
|
|
37315
|
-
category: "
|
|
37352
|
+
id: "gpt-5.1-codex-mini",
|
|
37353
|
+
name: "GPT 5.1 Codex Mini",
|
|
37354
|
+
description: "OpenAI's fast codex model",
|
|
37355
|
+
category: "fast",
|
|
37316
37356
|
provider: "opencode-zen",
|
|
37317
|
-
contextLength:
|
|
37357
|
+
contextLength: 200000
|
|
37318
37358
|
},
|
|
37319
37359
|
{
|
|
37320
|
-
id: "glm-4.
|
|
37321
|
-
name: "GLM 4.
|
|
37322
|
-
description: "Zhipu AI's
|
|
37323
|
-
category: "
|
|
37360
|
+
id: "glm-4.7",
|
|
37361
|
+
name: "GLM 4.7",
|
|
37362
|
+
description: "Zhipu AI's model",
|
|
37363
|
+
category: "fast",
|
|
37324
37364
|
provider: "opencode-zen",
|
|
37325
37365
|
contextLength: 128000
|
|
37326
37366
|
},
|
|
37327
37367
|
{
|
|
37328
|
-
id: "
|
|
37329
|
-
name: "
|
|
37330
|
-
description: "
|
|
37368
|
+
id: "claude-sonnet-4",
|
|
37369
|
+
name: "Claude Sonnet 4",
|
|
37370
|
+
description: "Anthropic's balanced model for complex tasks",
|
|
37331
37371
|
category: "smart",
|
|
37332
37372
|
provider: "opencode-zen",
|
|
37333
37373
|
contextLength: 200000
|
|
37334
37374
|
},
|
|
37335
37375
|
{
|
|
37336
|
-
id: "gemini-3-
|
|
37337
|
-
name: "Gemini 3
|
|
37338
|
-
description: "Google's
|
|
37339
|
-
category: "
|
|
37376
|
+
id: "gemini-3-pro",
|
|
37377
|
+
name: "Gemini 3 Pro",
|
|
37378
|
+
description: "Google's high-end Gemini model",
|
|
37379
|
+
category: "smart",
|
|
37340
37380
|
provider: "opencode-zen",
|
|
37341
37381
|
contextLength: 200000
|
|
37342
37382
|
},
|
|
@@ -37372,22 +37412,6 @@ var OPENCODE_ZEN_MODELS2 = [
|
|
|
37372
37412
|
provider: "opencode-zen",
|
|
37373
37413
|
contextLength: 200000
|
|
37374
37414
|
},
|
|
37375
|
-
{
|
|
37376
|
-
id: "gpt-5.1-codex-max",
|
|
37377
|
-
name: "GPT 5.1 Codex Max",
|
|
37378
|
-
description: "OpenAI's largest coding model",
|
|
37379
|
-
category: "reasoning",
|
|
37380
|
-
provider: "opencode-zen",
|
|
37381
|
-
contextLength: 200000
|
|
37382
|
-
},
|
|
37383
|
-
{
|
|
37384
|
-
id: "gpt-5.1-codex-mini",
|
|
37385
|
-
name: "GPT 5.1 Codex Mini",
|
|
37386
|
-
description: "OpenAI's fast codex model",
|
|
37387
|
-
category: "fast",
|
|
37388
|
-
provider: "opencode-zen",
|
|
37389
|
-
contextLength: 200000
|
|
37390
|
-
},
|
|
37391
37415
|
{
|
|
37392
37416
|
id: "gpt-5",
|
|
37393
37417
|
name: "GPT 5",
|
|
@@ -37405,12 +37429,44 @@ var OPENCODE_ZEN_MODELS2 = [
|
|
|
37405
37429
|
contextLength: 200000
|
|
37406
37430
|
},
|
|
37407
37431
|
{
|
|
37408
|
-
id: "
|
|
37409
|
-
name: "
|
|
37410
|
-
description: "
|
|
37411
|
-
category: "
|
|
37432
|
+
id: "minimax-m2.1",
|
|
37433
|
+
name: "MiniMax M2.1",
|
|
37434
|
+
description: "MiniMax's capable model",
|
|
37435
|
+
category: "smart",
|
|
37412
37436
|
provider: "opencode-zen",
|
|
37413
|
-
contextLength:
|
|
37437
|
+
contextLength: 128000
|
|
37438
|
+
},
|
|
37439
|
+
{
|
|
37440
|
+
id: "kimi-k2.5",
|
|
37441
|
+
name: "Kimi K2.5",
|
|
37442
|
+
description: "Moonshot's latest model",
|
|
37443
|
+
category: "smart",
|
|
37444
|
+
provider: "opencode-zen",
|
|
37445
|
+
contextLength: 131072
|
|
37446
|
+
},
|
|
37447
|
+
{
|
|
37448
|
+
id: "kimi-k2",
|
|
37449
|
+
name: "Kimi K2",
|
|
37450
|
+
description: "Moonshot's powerful model",
|
|
37451
|
+
category: "smart",
|
|
37452
|
+
provider: "opencode-zen",
|
|
37453
|
+
contextLength: 131072
|
|
37454
|
+
},
|
|
37455
|
+
{
|
|
37456
|
+
id: "qwen3-coder",
|
|
37457
|
+
name: "Qwen3 Coder 480B",
|
|
37458
|
+
description: "Alibaba's massive coding model",
|
|
37459
|
+
category: "smart",
|
|
37460
|
+
provider: "opencode-zen",
|
|
37461
|
+
contextLength: 131072
|
|
37462
|
+
},
|
|
37463
|
+
{
|
|
37464
|
+
id: "glm-4.6",
|
|
37465
|
+
name: "GLM 4.6",
|
|
37466
|
+
description: "Zhipu AI's capable model",
|
|
37467
|
+
category: "smart",
|
|
37468
|
+
provider: "opencode-zen",
|
|
37469
|
+
contextLength: 128000
|
|
37414
37470
|
},
|
|
37415
37471
|
{
|
|
37416
37472
|
id: "claude-sonnet-4-5",
|
|
@@ -37420,6 +37476,14 @@ var OPENCODE_ZEN_MODELS2 = [
|
|
|
37420
37476
|
provider: "opencode-zen",
|
|
37421
37477
|
contextLength: 200000
|
|
37422
37478
|
},
|
|
37479
|
+
{
|
|
37480
|
+
id: "claude-opus-4-6",
|
|
37481
|
+
name: "Claude Opus 4.6",
|
|
37482
|
+
description: "Anthropic's newest Opus model",
|
|
37483
|
+
category: "reasoning",
|
|
37484
|
+
provider: "opencode-zen",
|
|
37485
|
+
contextLength: 200000
|
|
37486
|
+
},
|
|
37423
37487
|
{
|
|
37424
37488
|
id: "claude-opus-4-5",
|
|
37425
37489
|
name: "Claude Opus 4.5",
|
|
@@ -37436,6 +37500,14 @@ var OPENCODE_ZEN_MODELS2 = [
|
|
|
37436
37500
|
provider: "opencode-zen",
|
|
37437
37501
|
contextLength: 200000
|
|
37438
37502
|
},
|
|
37503
|
+
{
|
|
37504
|
+
id: "gpt-5.1-codex-max",
|
|
37505
|
+
name: "GPT 5.1 Codex Max",
|
|
37506
|
+
description: "OpenAI's largest coding model",
|
|
37507
|
+
category: "reasoning",
|
|
37508
|
+
provider: "opencode-zen",
|
|
37509
|
+
contextLength: 200000
|
|
37510
|
+
},
|
|
37439
37511
|
{
|
|
37440
37512
|
id: "kimi-k2-thinking",
|
|
37441
37513
|
name: "Kimi K2 Thinking",
|
|
@@ -37756,6 +37828,9 @@ function formatRepoContext(context2) {
|
|
|
37756
37828
|
|
|
37757
37829
|
// src/lib/api.ts
|
|
37758
37830
|
function getZenApiType(modelId) {
|
|
37831
|
+
if (modelId === "minimax-m2.1-free") {
|
|
37832
|
+
return "anthropic";
|
|
37833
|
+
}
|
|
37759
37834
|
if (modelId.startsWith("gpt-")) {
|
|
37760
37835
|
return "openai-responses";
|
|
37761
37836
|
}
|
package/dist/tui.js
CHANGED
|
@@ -23106,42 +23106,46 @@ var OPENCODE_ZEN_MODELS = [
|
|
|
23106
23106
|
free: true
|
|
23107
23107
|
},
|
|
23108
23108
|
{
|
|
23109
|
-
id: "glm-4.7",
|
|
23110
|
-
name: "GLM 4.7",
|
|
23111
|
-
description: "
|
|
23109
|
+
id: "glm-4.7-free",
|
|
23110
|
+
name: "GLM 4.7 Free",
|
|
23111
|
+
description: "Zhipu AI's model (free, limited time)",
|
|
23112
23112
|
category: "fast",
|
|
23113
23113
|
provider: "opencode-zen",
|
|
23114
|
-
contextLength: 128000
|
|
23114
|
+
contextLength: 128000,
|
|
23115
|
+
free: true
|
|
23115
23116
|
},
|
|
23116
23117
|
{
|
|
23117
|
-
id: "
|
|
23118
|
-
name: "
|
|
23119
|
-
description: "
|
|
23118
|
+
id: "kimi-k2.5-free",
|
|
23119
|
+
name: "Kimi K2.5 Free",
|
|
23120
|
+
description: "Moonshot's latest model (free, limited time)",
|
|
23120
23121
|
category: "smart",
|
|
23121
23122
|
provider: "opencode-zen",
|
|
23122
|
-
contextLength:
|
|
23123
|
+
contextLength: 131072,
|
|
23124
|
+
free: true
|
|
23123
23125
|
},
|
|
23124
23126
|
{
|
|
23125
|
-
id: "
|
|
23126
|
-
name: "
|
|
23127
|
-
description: "
|
|
23127
|
+
id: "minimax-m2.1-free",
|
|
23128
|
+
name: "MiniMax M2.1 Free",
|
|
23129
|
+
description: "MiniMax's capable model (free, limited time)",
|
|
23128
23130
|
category: "smart",
|
|
23129
23131
|
provider: "opencode-zen",
|
|
23130
|
-
contextLength:
|
|
23132
|
+
contextLength: 128000,
|
|
23133
|
+
free: true
|
|
23131
23134
|
},
|
|
23132
23135
|
{
|
|
23133
|
-
id: "
|
|
23134
|
-
name: "
|
|
23135
|
-
description: "
|
|
23136
|
+
id: "gpt-5-nano",
|
|
23137
|
+
name: "GPT 5 Nano",
|
|
23138
|
+
description: "OpenAI's fastest GPT model (free)",
|
|
23136
23139
|
category: "fast",
|
|
23137
23140
|
provider: "opencode-zen",
|
|
23138
|
-
contextLength: 200000
|
|
23141
|
+
contextLength: 200000,
|
|
23142
|
+
free: true
|
|
23139
23143
|
},
|
|
23140
23144
|
{
|
|
23141
|
-
id: "claude-
|
|
23142
|
-
name: "Claude
|
|
23143
|
-
description: "Anthropic's
|
|
23144
|
-
category: "
|
|
23145
|
+
id: "claude-3-5-haiku",
|
|
23146
|
+
name: "Claude Haiku 3.5",
|
|
23147
|
+
description: "Anthropic's fast and efficient model",
|
|
23148
|
+
category: "fast",
|
|
23145
23149
|
provider: "opencode-zen",
|
|
23146
23150
|
contextLength: 200000
|
|
23147
23151
|
},
|
|
@@ -23149,47 +23153,47 @@ var OPENCODE_ZEN_MODELS = [
|
|
|
23149
23153
|
id: "claude-haiku-4-5",
|
|
23150
23154
|
name: "Claude Haiku 4.5",
|
|
23151
23155
|
description: "Anthropic's latest fast model",
|
|
23152
|
-
category: "
|
|
23156
|
+
category: "fast",
|
|
23153
23157
|
provider: "opencode-zen",
|
|
23154
23158
|
contextLength: 200000
|
|
23155
23159
|
},
|
|
23156
23160
|
{
|
|
23157
|
-
id: "
|
|
23158
|
-
name: "
|
|
23159
|
-
description: "
|
|
23160
|
-
category: "
|
|
23161
|
+
id: "gemini-3-flash",
|
|
23162
|
+
name: "Gemini 3 Flash",
|
|
23163
|
+
description: "Google's fast Gemini model",
|
|
23164
|
+
category: "fast",
|
|
23161
23165
|
provider: "opencode-zen",
|
|
23162
|
-
contextLength:
|
|
23166
|
+
contextLength: 200000
|
|
23163
23167
|
},
|
|
23164
23168
|
{
|
|
23165
|
-
id: "
|
|
23166
|
-
name: "
|
|
23167
|
-
description: "
|
|
23168
|
-
category: "
|
|
23169
|
+
id: "gpt-5.1-codex-mini",
|
|
23170
|
+
name: "GPT 5.1 Codex Mini",
|
|
23171
|
+
description: "OpenAI's fast codex model",
|
|
23172
|
+
category: "fast",
|
|
23169
23173
|
provider: "opencode-zen",
|
|
23170
|
-
contextLength:
|
|
23174
|
+
contextLength: 200000
|
|
23171
23175
|
},
|
|
23172
23176
|
{
|
|
23173
|
-
id: "glm-4.
|
|
23174
|
-
name: "GLM 4.
|
|
23175
|
-
description: "Zhipu AI's
|
|
23176
|
-
category: "
|
|
23177
|
+
id: "glm-4.7",
|
|
23178
|
+
name: "GLM 4.7",
|
|
23179
|
+
description: "Zhipu AI's model",
|
|
23180
|
+
category: "fast",
|
|
23177
23181
|
provider: "opencode-zen",
|
|
23178
23182
|
contextLength: 128000
|
|
23179
23183
|
},
|
|
23180
23184
|
{
|
|
23181
|
-
id: "
|
|
23182
|
-
name: "
|
|
23183
|
-
description: "
|
|
23185
|
+
id: "claude-sonnet-4",
|
|
23186
|
+
name: "Claude Sonnet 4",
|
|
23187
|
+
description: "Anthropic's balanced model for complex tasks",
|
|
23184
23188
|
category: "smart",
|
|
23185
23189
|
provider: "opencode-zen",
|
|
23186
23190
|
contextLength: 200000
|
|
23187
23191
|
},
|
|
23188
23192
|
{
|
|
23189
|
-
id: "gemini-3-
|
|
23190
|
-
name: "Gemini 3
|
|
23191
|
-
description: "Google's
|
|
23192
|
-
category: "
|
|
23193
|
+
id: "gemini-3-pro",
|
|
23194
|
+
name: "Gemini 3 Pro",
|
|
23195
|
+
description: "Google's high-end Gemini model",
|
|
23196
|
+
category: "smart",
|
|
23193
23197
|
provider: "opencode-zen",
|
|
23194
23198
|
contextLength: 200000
|
|
23195
23199
|
},
|
|
@@ -23225,22 +23229,6 @@ var OPENCODE_ZEN_MODELS = [
|
|
|
23225
23229
|
provider: "opencode-zen",
|
|
23226
23230
|
contextLength: 200000
|
|
23227
23231
|
},
|
|
23228
|
-
{
|
|
23229
|
-
id: "gpt-5.1-codex-max",
|
|
23230
|
-
name: "GPT 5.1 Codex Max",
|
|
23231
|
-
description: "OpenAI's largest coding model",
|
|
23232
|
-
category: "reasoning",
|
|
23233
|
-
provider: "opencode-zen",
|
|
23234
|
-
contextLength: 200000
|
|
23235
|
-
},
|
|
23236
|
-
{
|
|
23237
|
-
id: "gpt-5.1-codex-mini",
|
|
23238
|
-
name: "GPT 5.1 Codex Mini",
|
|
23239
|
-
description: "OpenAI's fast codex model",
|
|
23240
|
-
category: "fast",
|
|
23241
|
-
provider: "opencode-zen",
|
|
23242
|
-
contextLength: 200000
|
|
23243
|
-
},
|
|
23244
23232
|
{
|
|
23245
23233
|
id: "gpt-5",
|
|
23246
23234
|
name: "GPT 5",
|
|
@@ -23258,12 +23246,44 @@ var OPENCODE_ZEN_MODELS = [
|
|
|
23258
23246
|
contextLength: 200000
|
|
23259
23247
|
},
|
|
23260
23248
|
{
|
|
23261
|
-
id: "
|
|
23262
|
-
name: "
|
|
23263
|
-
description: "
|
|
23264
|
-
category: "
|
|
23249
|
+
id: "minimax-m2.1",
|
|
23250
|
+
name: "MiniMax M2.1",
|
|
23251
|
+
description: "MiniMax's capable model",
|
|
23252
|
+
category: "smart",
|
|
23265
23253
|
provider: "opencode-zen",
|
|
23266
|
-
contextLength:
|
|
23254
|
+
contextLength: 128000
|
|
23255
|
+
},
|
|
23256
|
+
{
|
|
23257
|
+
id: "kimi-k2.5",
|
|
23258
|
+
name: "Kimi K2.5",
|
|
23259
|
+
description: "Moonshot's latest model",
|
|
23260
|
+
category: "smart",
|
|
23261
|
+
provider: "opencode-zen",
|
|
23262
|
+
contextLength: 131072
|
|
23263
|
+
},
|
|
23264
|
+
{
|
|
23265
|
+
id: "kimi-k2",
|
|
23266
|
+
name: "Kimi K2",
|
|
23267
|
+
description: "Moonshot's powerful model",
|
|
23268
|
+
category: "smart",
|
|
23269
|
+
provider: "opencode-zen",
|
|
23270
|
+
contextLength: 131072
|
|
23271
|
+
},
|
|
23272
|
+
{
|
|
23273
|
+
id: "qwen3-coder",
|
|
23274
|
+
name: "Qwen3 Coder 480B",
|
|
23275
|
+
description: "Alibaba's massive coding model",
|
|
23276
|
+
category: "smart",
|
|
23277
|
+
provider: "opencode-zen",
|
|
23278
|
+
contextLength: 131072
|
|
23279
|
+
},
|
|
23280
|
+
{
|
|
23281
|
+
id: "glm-4.6",
|
|
23282
|
+
name: "GLM 4.6",
|
|
23283
|
+
description: "Zhipu AI's capable model",
|
|
23284
|
+
category: "smart",
|
|
23285
|
+
provider: "opencode-zen",
|
|
23286
|
+
contextLength: 128000
|
|
23267
23287
|
},
|
|
23268
23288
|
{
|
|
23269
23289
|
id: "claude-sonnet-4-5",
|
|
@@ -23273,6 +23293,14 @@ var OPENCODE_ZEN_MODELS = [
|
|
|
23273
23293
|
provider: "opencode-zen",
|
|
23274
23294
|
contextLength: 200000
|
|
23275
23295
|
},
|
|
23296
|
+
{
|
|
23297
|
+
id: "claude-opus-4-6",
|
|
23298
|
+
name: "Claude Opus 4.6",
|
|
23299
|
+
description: "Anthropic's newest Opus model",
|
|
23300
|
+
category: "reasoning",
|
|
23301
|
+
provider: "opencode-zen",
|
|
23302
|
+
contextLength: 200000
|
|
23303
|
+
},
|
|
23276
23304
|
{
|
|
23277
23305
|
id: "claude-opus-4-5",
|
|
23278
23306
|
name: "Claude Opus 4.5",
|
|
@@ -23289,6 +23317,14 @@ var OPENCODE_ZEN_MODELS = [
|
|
|
23289
23317
|
provider: "opencode-zen",
|
|
23290
23318
|
contextLength: 200000
|
|
23291
23319
|
},
|
|
23320
|
+
{
|
|
23321
|
+
id: "gpt-5.1-codex-max",
|
|
23322
|
+
name: "GPT 5.1 Codex Max",
|
|
23323
|
+
description: "OpenAI's largest coding model",
|
|
23324
|
+
category: "reasoning",
|
|
23325
|
+
provider: "opencode-zen",
|
|
23326
|
+
contextLength: 200000
|
|
23327
|
+
},
|
|
23292
23328
|
{
|
|
23293
23329
|
id: "kimi-k2-thinking",
|
|
23294
23330
|
name: "Kimi K2 Thinking",
|
|
@@ -58379,6 +58415,9 @@ function formatRepoContext(context2) {
|
|
|
58379
58415
|
|
|
58380
58416
|
// src/lib/api.ts
|
|
58381
58417
|
function getZenApiType(modelId) {
|
|
58418
|
+
if (modelId === "minimax-m2.1-free") {
|
|
58419
|
+
return "anthropic";
|
|
58420
|
+
}
|
|
58382
58421
|
if (modelId.startsWith("gpt-")) {
|
|
58383
58422
|
return "openai-responses";
|
|
58384
58423
|
}
|
|
@@ -59466,7 +59505,7 @@ async function handleInput(value) {
|
|
|
59466
59505
|
if (!input)
|
|
59467
59506
|
return;
|
|
59468
59507
|
inputField.setText("");
|
|
59469
|
-
if (input.startsWith("!")) {
|
|
59508
|
+
if (input.startsWith("!") || input.startsWith("/")) {
|
|
59470
59509
|
await handleSpecialCommand(input);
|
|
59471
59510
|
return;
|
|
59472
59511
|
}
|
|
@@ -59657,6 +59696,12 @@ T Change theme R Toggle repo context
|
|
|
59657
59696
|
H Show history L Clear chat
|
|
59658
59697
|
C Show config ? This help
|
|
59659
59698
|
|
|
59699
|
+
Commands (type ! or / followed by):
|
|
59700
|
+
help Show this help model Change model
|
|
59701
|
+
provider Switch provider dry Toggle dry-run
|
|
59702
|
+
config Show configuration history Show history
|
|
59703
|
+
clear Clear chat
|
|
59704
|
+
|
|
59660
59705
|
Safety Levels:
|
|
59661
59706
|
- strict: Confirm ALL potentially dangerous commands
|
|
59662
59707
|
- moderate: Confirm high/critical severity commands (default)
|
|
@@ -59664,6 +59709,7 @@ Safety Levels:
|
|
|
59664
59709
|
|
|
59665
59710
|
Tips:
|
|
59666
59711
|
- Type naturally: "list all files" -> ls -la
|
|
59712
|
+
- Use ! or / commands: !help or /help
|
|
59667
59713
|
- Reference history: "do that again", "undo"
|
|
59668
59714
|
- Enable repo context to use project scripts (Ctrl+X R)`;
|
|
59669
59715
|
addSystemMessage(helpText);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@austinthesing/magic-shell",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.16",
|
|
4
4
|
"description": "Natural language to terminal commands with safety features. Supports OpenCode Zen (with free models) and OpenRouter.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|