@austinthesing/magic-shell 0.2.14 → 0.2.15
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 +8 -1
- package/dist/tui.js +8 -1
- 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
|
@@ -59466,7 +59466,7 @@ async function handleInput(value) {
|
|
|
59466
59466
|
if (!input)
|
|
59467
59467
|
return;
|
|
59468
59468
|
inputField.setText("");
|
|
59469
|
-
if (input.startsWith("!")) {
|
|
59469
|
+
if (input.startsWith("!") || input.startsWith("/")) {
|
|
59470
59470
|
await handleSpecialCommand(input);
|
|
59471
59471
|
return;
|
|
59472
59472
|
}
|
|
@@ -59657,6 +59657,12 @@ T Change theme R Toggle repo context
|
|
|
59657
59657
|
H Show history L Clear chat
|
|
59658
59658
|
C Show config ? This help
|
|
59659
59659
|
|
|
59660
|
+
Commands (type ! or / followed by):
|
|
59661
|
+
help Show this help model Change model
|
|
59662
|
+
provider Switch provider dry Toggle dry-run
|
|
59663
|
+
config Show configuration history Show history
|
|
59664
|
+
clear Clear chat
|
|
59665
|
+
|
|
59660
59666
|
Safety Levels:
|
|
59661
59667
|
- strict: Confirm ALL potentially dangerous commands
|
|
59662
59668
|
- moderate: Confirm high/critical severity commands (default)
|
|
@@ -59664,6 +59670,7 @@ Safety Levels:
|
|
|
59664
59670
|
|
|
59665
59671
|
Tips:
|
|
59666
59672
|
- Type naturally: "list all files" -> ls -la
|
|
59673
|
+
- Use ! or / commands: !help or /help
|
|
59667
59674
|
- Reference history: "do that again", "undo"
|
|
59668
59675
|
- Enable repo context to use project scripts (Ctrl+X R)`;
|
|
59669
59676
|
addSystemMessage(helpText);
|
package/dist/tui.js
CHANGED
|
@@ -59466,7 +59466,7 @@ async function handleInput(value) {
|
|
|
59466
59466
|
if (!input)
|
|
59467
59467
|
return;
|
|
59468
59468
|
inputField.setText("");
|
|
59469
|
-
if (input.startsWith("!")) {
|
|
59469
|
+
if (input.startsWith("!") || input.startsWith("/")) {
|
|
59470
59470
|
await handleSpecialCommand(input);
|
|
59471
59471
|
return;
|
|
59472
59472
|
}
|
|
@@ -59657,6 +59657,12 @@ T Change theme R Toggle repo context
|
|
|
59657
59657
|
H Show history L Clear chat
|
|
59658
59658
|
C Show config ? This help
|
|
59659
59659
|
|
|
59660
|
+
Commands (type ! or / followed by):
|
|
59661
|
+
help Show this help model Change model
|
|
59662
|
+
provider Switch provider dry Toggle dry-run
|
|
59663
|
+
config Show configuration history Show history
|
|
59664
|
+
clear Clear chat
|
|
59665
|
+
|
|
59660
59666
|
Safety Levels:
|
|
59661
59667
|
- strict: Confirm ALL potentially dangerous commands
|
|
59662
59668
|
- moderate: Confirm high/critical severity commands (default)
|
|
@@ -59664,6 +59670,7 @@ Safety Levels:
|
|
|
59664
59670
|
|
|
59665
59671
|
Tips:
|
|
59666
59672
|
- Type naturally: "list all files" -> ls -la
|
|
59673
|
+
- Use ! or / commands: !help or /help
|
|
59667
59674
|
- Reference history: "do that again", "undo"
|
|
59668
59675
|
- Enable repo context to use project scripts (Ctrl+X R)`;
|
|
59669
59676
|
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.15",
|
|
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",
|