@austinthesing/magic-shell 0.1.0

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.
@@ -0,0 +1,27 @@
1
+ ; Query from: https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/markdown/injections.scm
2
+ (fenced_code_block
3
+ (info_string
4
+ (language) @_lang)
5
+ (code_fence_content) @injection.content
6
+ (#set-lang-from-info-string! @_lang))
7
+
8
+ ((html_block) @injection.content
9
+ (#set! injection.language "html")
10
+ (#set! injection.combined)
11
+ (#set! injection.include-children))
12
+
13
+ ((minus_metadata) @injection.content
14
+ (#set! injection.language "yaml")
15
+ (#offset! @injection.content 1 0 -1 0)
16
+ (#set! injection.include-children))
17
+
18
+ ((plus_metadata) @injection.content
19
+ (#set! injection.language "toml")
20
+ (#offset! @injection.content 1 0 -1 0)
21
+ (#set! injection.include-children))
22
+
23
+ ([
24
+ (inline)
25
+ (pipe_table_cell)
26
+ ] @injection.content
27
+ (#set! injection.language "markdown_inline"))
package/package.json ADDED
@@ -0,0 +1,59 @@
1
+ {
2
+ "name": "@austinthesing/magic-shell",
3
+ "version": "0.1.0",
4
+ "description": "Natural language to terminal commands with safety features. Supports OpenCode Zen (with free models) and OpenRouter.",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "bin": {
8
+ "magic-shell": "./dist/index.js",
9
+ "msh": "./dist/index.js",
10
+ "ms": "./dist/index.js"
11
+ },
12
+ "files": [
13
+ "dist",
14
+ "README.md",
15
+ "LICENSE"
16
+ ],
17
+ "scripts": {
18
+ "dev": "bun run src/index.ts",
19
+ "dev:tui": "bun run src/index.ts -i",
20
+ "build": "bun build src/index.ts src/cli.ts --outdir dist --target node",
21
+ "typecheck": "tsc --noEmit",
22
+ "prepublishOnly": "bun run build"
23
+ },
24
+ "keywords": [
25
+ "cli",
26
+ "terminal",
27
+ "natural-language",
28
+ "shell",
29
+ "ai",
30
+ "openrouter",
31
+ "opencode",
32
+ "zen",
33
+ "command-line",
34
+ "nlp",
35
+ "gpt",
36
+ "claude",
37
+ "llm"
38
+ ],
39
+ "author": "Austin Thesing (https://github.com/austin-thesing)",
40
+ "license": "MIT",
41
+ "repository": {
42
+ "type": "git",
43
+ "url": "git+https://github.com/austin-thesing/magic-shell.git"
44
+ },
45
+ "homepage": "https://github.com/austin-thesing/magic-shell#readme",
46
+ "bugs": {
47
+ "url": "https://github.com/austin-thesing/magic-shell/issues"
48
+ },
49
+ "engines": {
50
+ "node": ">=18.0.0"
51
+ },
52
+ "dependencies": {
53
+ "@opentui/core": "^0.1.74"
54
+ },
55
+ "devDependencies": {
56
+ "@types/bun": "latest",
57
+ "typescript": "^5.0.0"
58
+ }
59
+ }