@austinthesing/magic-shell 0.2.20 → 0.2.21
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 +18 -0
- package/dist/cli.js +2 -2
- package/dist/index.js +8 -2
- package/dist/tui.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -583,6 +583,24 @@ MIT License - see [LICENSE](LICENSE) for details.
|
|
|
583
583
|
|
|
584
584
|
## Release Notes
|
|
585
585
|
|
|
586
|
+
### v0.2.20 - Thinking Controls and Zen Free Models
|
|
587
|
+
- Added `--thinking <level>` and `thinkingLevel` config support (`off`, `low`, `medium`, `high`)
|
|
588
|
+
- Added provider-specific reasoning controls for supported OpenRouter, OpenCode Zen, gateway, and custom models
|
|
589
|
+
- Updated OpenCode Zen free models and default model references to `minimax-m2.5-free`
|
|
590
|
+
- Disabled custom thinking parameters when the selected model/provider does not support them
|
|
591
|
+
|
|
592
|
+
### v0.2.19 - AI Gateway Providers
|
|
593
|
+
- Added Vercel AI Gateway, Cloudflare AI Gateway, and Cloudflare Workers AI providers
|
|
594
|
+
- Added gateway provider setup, switching, model listing, API-key handling, and environment variables
|
|
595
|
+
- Refreshed OpenCode Zen and OpenRouter registries with current OpenAI, Anthropic, Kimi, DeepSeek, GLM, MiniMax, and MiMo model IDs
|
|
596
|
+
- Added provider-scoped model helpers so model selection follows the active provider
|
|
597
|
+
|
|
598
|
+
### v0.2.18 - Model Registry Refresh
|
|
599
|
+
- Added latest MiMo V2.5 and MiMo V2.5 Pro entries for OpenCode Zen
|
|
600
|
+
- Added latest Xiaomi MiMo V2.5 and MiMo V2.5 Pro entries for OpenRouter
|
|
601
|
+
- Removed the older OpenRouter MiMo V2 Flash free entry from docs and model listings
|
|
602
|
+
- Updated runtime dependencies for the published CLI package
|
|
603
|
+
|
|
586
604
|
### v0.2.17 - Dependency Maintenance
|
|
587
605
|
- Updated published CLI dependencies to current releases
|
|
588
606
|
- Fixed TUI input typing compatibility after the `@opentui/core` upgrade
|
package/dist/cli.js
CHANGED
|
@@ -1734,7 +1734,7 @@ var require_tracestate_impl = __commonJS((exports) => {
|
|
|
1734
1734
|
const value = listMember.slice(i + 1, part.length);
|
|
1735
1735
|
if ((0, tracestate_validators_1.validateKey)(key) && (0, tracestate_validators_1.validateValue)(value)) {
|
|
1736
1736
|
agg.set(key, value);
|
|
1737
|
-
}
|
|
1737
|
+
}
|
|
1738
1738
|
}
|
|
1739
1739
|
return agg;
|
|
1740
1740
|
}, new Map);
|
|
@@ -47795,7 +47795,7 @@ class JSONSchemaGenerator {
|
|
|
47795
47795
|
if (val === undefined) {
|
|
47796
47796
|
if (this.unrepresentable === "throw") {
|
|
47797
47797
|
throw new Error("Literal `undefined` cannot be represented in JSON Schema");
|
|
47798
|
-
}
|
|
47798
|
+
}
|
|
47799
47799
|
} else if (typeof val === "bigint") {
|
|
47800
47800
|
if (this.unrepresentable === "throw") {
|
|
47801
47801
|
throw new Error("BigInt literals cannot be represented in JSON Schema");
|
package/dist/index.js
CHANGED
|
@@ -1735,7 +1735,7 @@ var require_tracestate_impl = __commonJS((exports) => {
|
|
|
1735
1735
|
const value = listMember.slice(i + 1, part.length);
|
|
1736
1736
|
if ((0, tracestate_validators_1.validateKey)(key) && (0, tracestate_validators_1.validateValue)(value)) {
|
|
1737
1737
|
agg.set(key, value);
|
|
1738
|
-
}
|
|
1738
|
+
}
|
|
1739
1739
|
}
|
|
1740
1740
|
return agg;
|
|
1741
1741
|
}, new Map);
|
|
@@ -13202,7 +13202,7 @@ class JSONSchemaGenerator {
|
|
|
13202
13202
|
if (val === undefined) {
|
|
13203
13203
|
if (this.unrepresentable === "throw") {
|
|
13204
13204
|
throw new Error("Literal `undefined` cannot be represented in JSON Schema");
|
|
13205
|
-
}
|
|
13205
|
+
}
|
|
13206
13206
|
} else if (typeof val === "bigint") {
|
|
13207
13207
|
if (this.unrepresentable === "throw") {
|
|
13208
13208
|
throw new Error("BigInt literals cannot be represented in JSON Schema");
|
|
@@ -43184,6 +43184,11 @@ async function forceCheckForUpdates() {
|
|
|
43184
43184
|
return checkForUpdates();
|
|
43185
43185
|
}
|
|
43186
43186
|
|
|
43187
|
+
// src/lib/format.ts
|
|
43188
|
+
function formatExecutedCommand(command, colors) {
|
|
43189
|
+
return `${colors.dim}Command:${colors.reset} ${command}`;
|
|
43190
|
+
}
|
|
43191
|
+
|
|
43187
43192
|
// src/index.ts
|
|
43188
43193
|
loadTheme();
|
|
43189
43194
|
var getColors = () => {
|
|
@@ -43668,6 +43673,7 @@ async function translate(query, options) {
|
|
|
43668
43673
|
console.error(`${colors.yellow}Use -n to preview, or run the command manually.${colors.reset}`);
|
|
43669
43674
|
process.exit(1);
|
|
43670
43675
|
}
|
|
43676
|
+
console.error(formatExecutedCommand(command, colors));
|
|
43671
43677
|
const result = await executeCommand(command);
|
|
43672
43678
|
process.exit(result.code);
|
|
43673
43679
|
} else {
|
package/dist/tui.js
CHANGED
|
@@ -1734,7 +1734,7 @@ var require_tracestate_impl = __commonJS((exports) => {
|
|
|
1734
1734
|
const value = listMember.slice(i + 1, part.length);
|
|
1735
1735
|
if ((0, tracestate_validators_1.validateKey)(key) && (0, tracestate_validators_1.validateValue)(value)) {
|
|
1736
1736
|
agg.set(key, value);
|
|
1737
|
-
}
|
|
1737
|
+
}
|
|
1738
1738
|
}
|
|
1739
1739
|
return agg;
|
|
1740
1740
|
}, new Map);
|
|
@@ -47795,7 +47795,7 @@ class JSONSchemaGenerator {
|
|
|
47795
47795
|
if (val === undefined) {
|
|
47796
47796
|
if (this.unrepresentable === "throw") {
|
|
47797
47797
|
throw new Error("Literal `undefined` cannot be represented in JSON Schema");
|
|
47798
|
-
}
|
|
47798
|
+
}
|
|
47799
47799
|
} else if (typeof val === "bigint") {
|
|
47800
47800
|
if (this.unrepresentable === "throw") {
|
|
47801
47801
|
throw new Error("BigInt literals cannot be represented in JSON Schema");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@austinthesing/magic-shell",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.21",
|
|
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",
|