@enjoys/context-engine 1.0.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.
- package/README.md +213 -0
- package/data/commands/air.json +59 -0
- package/data/commands/ansible.json +24 -0
- package/data/commands/apachectl.json +87 -0
- package/data/commands/apt-get.json +81 -0
- package/data/commands/apt.json +91 -0
- package/data/commands/awk.json +26 -0
- package/data/commands/aws-vault.json +140 -0
- package/data/commands/aws.json +229 -0
- package/data/commands/az.json +36 -0
- package/data/commands/bazel.json +103 -0
- package/data/commands/brew.json +140 -0
- package/data/commands/bun.json +230 -0
- package/data/commands/caddy.json +194 -0
- package/data/commands/cargo.json +1048 -0
- package/data/commands/cat.json +18 -0
- package/data/commands/cd.json +48 -0
- package/data/commands/certbot.json +148 -0
- package/data/commands/chmod.json +97 -0
- package/data/commands/choco.json +134 -0
- package/data/commands/chown.json +59 -0
- package/data/commands/clickhouse-client.json +74 -0
- package/data/commands/cloudflare.json +226 -0
- package/data/commands/cmake.json +110 -0
- package/data/commands/cockroach.json +92 -0
- package/data/commands/conda.json +94 -0
- package/data/commands/consul.json +125 -0
- package/data/commands/cp.json +86 -0
- package/data/commands/curl.json +44 -0
- package/data/commands/cypress.json +100 -0
- package/data/commands/deno.json +29 -0
- package/data/commands/django-admin.json +86 -0
- package/data/commands/dnf.json +137 -0
- package/data/commands/docker.json +1100 -0
- package/data/commands/doctl.json +156 -0
- package/data/commands/eslint.json +69 -0
- package/data/commands/find.json +44 -0
- package/data/commands/firebase.json +97 -0
- package/data/commands/flask.json +79 -0
- package/data/commands/flyctl.json +148 -0
- package/data/commands/gcloud.json +227 -0
- package/data/commands/gh.json +39 -0
- package/data/commands/git.json +527 -0
- package/data/commands/glab.json +116 -0
- package/data/commands/go.json +161 -0
- package/data/commands/gofmt.json +51 -0
- package/data/commands/golangci-lint.json +89 -0
- package/data/commands/gradle.json +44 -0
- package/data/commands/grep.json +47 -0
- package/data/commands/gunicorn.json +83 -0
- package/data/commands/helm.json +1104 -0
- package/data/commands/hg.json +92 -0
- package/data/commands/httpd.json +147 -0
- package/data/commands/influx.json +119 -0
- package/data/commands/iptables.json +86 -0
- package/data/commands/java.json +31 -0
- package/data/commands/jest.json +82 -0
- package/data/commands/journalctl.json +88 -0
- package/data/commands/just.json +93 -0
- package/data/commands/k6.json +84 -0
- package/data/commands/kubectl.json +1277 -0
- package/data/commands/linode-cli.json +117 -0
- package/data/commands/locust.json +83 -0
- package/data/commands/ls.json +115 -0
- package/data/commands/make.json +86 -0
- package/data/commands/mocha.json +75 -0
- package/data/commands/mongosh.json +73 -0
- package/data/commands/mv.json +68 -0
- package/data/commands/mvn.json +45 -0
- package/data/commands/mysql.json +81 -0
- package/data/commands/nest.json +69 -0
- package/data/commands/netlify.json +92 -0
- package/data/commands/next.json +71 -0
- package/data/commands/nft.json +105 -0
- package/data/commands/nginx.json +146 -0
- package/data/commands/nmap.json +92 -0
- package/data/commands/node.json +43 -0
- package/data/commands/nomad.json +139 -0
- package/data/commands/npm.json +1265 -0
- package/data/commands/npx.json +58 -0
- package/data/commands/nx.json +82 -0
- package/data/commands/openssl.json +288 -0
- package/data/commands/packer.json +92 -0
- package/data/commands/pacman.json +82 -0
- package/data/commands/pg_dump.json +83 -0
- package/data/commands/pg_restore.json +74 -0
- package/data/commands/pip.json +95 -0
- package/data/commands/pipenv.json +79 -0
- package/data/commands/pipx.json +53 -0
- package/data/commands/playwright.json +97 -0
- package/data/commands/pnpm.json +29 -0
- package/data/commands/poetry.json +96 -0
- package/data/commands/prettier.json +71 -0
- package/data/commands/ps.json +31 -0
- package/data/commands/psql.json +124 -0
- package/data/commands/pulumi.json +130 -0
- package/data/commands/pytest.json +92 -0
- package/data/commands/python.json +30 -0
- package/data/commands/railway.json +91 -0
- package/data/commands/redis-cli.json +148 -0
- package/data/commands/render.json +72 -0
- package/data/commands/rm.json +79 -0
- package/data/commands/rsync.json +36 -0
- package/data/commands/rust.json +35 -0
- package/data/commands/rustup.json +103 -0
- package/data/commands/scp.json +60 -0
- package/data/commands/sed.json +28 -0
- package/data/commands/sqlite3.json +68 -0
- package/data/commands/ssh-keygen.json +112 -0
- package/data/commands/ssh.json +37 -0
- package/data/commands/sudo.json +147 -0
- package/data/commands/supabase.json +108 -0
- package/data/commands/svn.json +75 -0
- package/data/commands/systemctl.json +31 -0
- package/data/commands/tar.json +35 -0
- package/data/commands/tcpdump.json +77 -0
- package/data/commands/terraform.json +824 -0
- package/data/commands/terragrunt.json +83 -0
- package/data/commands/tsc.json +85 -0
- package/data/commands/turbo.json +72 -0
- package/data/commands/ufw.json +76 -0
- package/data/commands/unzip.json +59 -0
- package/data/commands/uvicorn.json +73 -0
- package/data/commands/vault.json +144 -0
- package/data/commands/vercel.json +98 -0
- package/data/commands/vite.json +63 -0
- package/data/commands/vitest.json +88 -0
- package/data/commands/wasm-pack.json +90 -0
- package/data/commands/wget.json +38 -0
- package/data/commands/winget.json +131 -0
- package/data/commands/wireshark.json +81 -0
- package/data/commands/yarn.json +28 -0
- package/data/commands/yum.json +98 -0
- package/data/commands/zip.json +59 -0
- package/index.d.ts +131 -0
- package/index.js +189 -0
- package/index.mjs +21 -0
- package/package.json +64 -0
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "brew",
|
|
3
|
+
"description": "Homebrew package manager for macOS and Linux",
|
|
4
|
+
"category": "Package Managers",
|
|
5
|
+
"platforms": ["macos", "linux"],
|
|
6
|
+
"shells": ["bash", "zsh", "fish"],
|
|
7
|
+
"subcommands": [
|
|
8
|
+
{ "name": "install", "description": "Install packages (formulae or casks)", "args": [{ "name": "formula", "description": "Formula/cask name", "required": true }], "options": [
|
|
9
|
+
{ "name": "--cask", "description": "Install as cask" },
|
|
10
|
+
{ "name": "--build-from-source", "description": "Build from source" },
|
|
11
|
+
{ "name": "--force", "description": "Force install" },
|
|
12
|
+
{ "name": "--verbose", "description": "Verbose" },
|
|
13
|
+
{ "name": "--HEAD", "description": "Install HEAD version" },
|
|
14
|
+
{ "name": "--fetch-HEAD", "description": "Fetch HEAD version" }
|
|
15
|
+
]},
|
|
16
|
+
{ "name": "uninstall", "description": "Uninstall formula", "args": [{ "name": "formula", "description": "Formula name", "required": true }], "options": [
|
|
17
|
+
{ "name": "--force", "description": "Force uninstall" },
|
|
18
|
+
{ "name": "--zap", "description": "Remove all files (casks)" }
|
|
19
|
+
]},
|
|
20
|
+
{ "name": "update", "description": "Update Homebrew itself" },
|
|
21
|
+
{ "name": "upgrade", "description": "Upgrade packages", "args": [{ "name": "formula", "description": "Specific formula (optional)", "required": false }], "options": [
|
|
22
|
+
{ "name": "--cask", "description": "Upgrade casks" },
|
|
23
|
+
{ "name": "--greedy", "description": "Also upgrade auto-updated casks" }
|
|
24
|
+
]},
|
|
25
|
+
{ "name": "search", "description": "Search formulae and casks", "args": [{ "name": "query", "description": "Search text", "required": true }] },
|
|
26
|
+
{ "name": "info", "description": "Formula/cask info", "args": [{ "name": "formula", "description": "Formula name", "required": true }], "options": [
|
|
27
|
+
{ "name": "--json", "description": "JSON output" },
|
|
28
|
+
{ "name": "--cask", "description": "Cask info" }
|
|
29
|
+
]},
|
|
30
|
+
{ "name": "list", "description": "List installed", "options": [
|
|
31
|
+
{ "name": "--cask", "description": "List casks" },
|
|
32
|
+
{ "name": "--versions", "description": "Show versions" },
|
|
33
|
+
{ "name": "--formula", "description": "Only formulae" }
|
|
34
|
+
]},
|
|
35
|
+
{ "name": "outdated", "description": "Show outdated packages", "options": [
|
|
36
|
+
{ "name": "--cask", "description": "Outdated casks" },
|
|
37
|
+
{ "name": "--greedy", "description": "Include auto-updated" }
|
|
38
|
+
]},
|
|
39
|
+
{ "name": "pin", "description": "Pin formula version", "args": [{ "name": "formula", "description": "Formula to pin", "required": true }] },
|
|
40
|
+
{ "name": "unpin", "description": "Unpin formula" },
|
|
41
|
+
{ "name": "cleanup", "description": "Clean old versions", "options": [
|
|
42
|
+
{ "name": "--prune", "description": "Remove older than N days", "takesValue": true },
|
|
43
|
+
{ "name": "-s", "description": "Scrub cache" },
|
|
44
|
+
{ "name": "-n", "description": "Dry run" }
|
|
45
|
+
]},
|
|
46
|
+
{ "name": "doctor", "description": "Diagnose issues" },
|
|
47
|
+
{ "name": "config", "description": "Show Homebrew config" },
|
|
48
|
+
{ "name": "deps", "description": "Show dependencies", "args": [{ "name": "formula", "description": "Formula name", "required": true }], "options": [
|
|
49
|
+
{ "name": "--tree", "description": "Tree view" },
|
|
50
|
+
{ "name": "--installed", "description": "Installed deps" }
|
|
51
|
+
]},
|
|
52
|
+
{ "name": "uses", "description": "Show dependents", "args": [{ "name": "formula", "description": "Formula name", "required": true }] },
|
|
53
|
+
{ "name": "leaves", "description": "Show formulae not depended on" },
|
|
54
|
+
{ "name": "services", "description": "Manage background services", "subcommands": [
|
|
55
|
+
{ "name": "list", "description": "List services" },
|
|
56
|
+
{ "name": "start", "description": "Start service" },
|
|
57
|
+
{ "name": "stop", "description": "Stop service" },
|
|
58
|
+
{ "name": "restart", "description": "Restart service" },
|
|
59
|
+
{ "name": "run", "description": "Run service (foreground)" }
|
|
60
|
+
]},
|
|
61
|
+
{ "name": "tap", "description": "Tap (add) a repository", "args": [{ "name": "repo", "description": "user/repo", "required": false }] },
|
|
62
|
+
{ "name": "untap", "description": "Remove a tapped repository" },
|
|
63
|
+
{ "name": "link", "description": "Symlink formula" },
|
|
64
|
+
{ "name": "unlink", "description": "Unsymlink formula" },
|
|
65
|
+
{ "name": "switch", "description": "Switch to specific version" },
|
|
66
|
+
{ "name": "bundle", "description": "Bundler for Homebrew", "subcommands": [
|
|
67
|
+
{ "name": "dump", "description": "Write Brewfile" },
|
|
68
|
+
{ "name": "install", "description": "Install from Brewfile" },
|
|
69
|
+
{ "name": "check", "description": "Check Brewfile" },
|
|
70
|
+
{ "name": "cleanup", "description": "Remove unlisted" },
|
|
71
|
+
{ "name": "list", "description": "List from Brewfile" }
|
|
72
|
+
]}
|
|
73
|
+
],
|
|
74
|
+
"globalOptions": [
|
|
75
|
+
{ "name": "--verbose", "shorthand": "-v", "description": "Verbose output" },
|
|
76
|
+
{ "name": "--debug", "shorthand": "-d", "description": "Debug mode" },
|
|
77
|
+
{ "name": "--quiet", "shorthand": "-q", "description": "Quiet mode" },
|
|
78
|
+
{ "name": "--help", "shorthand": "-h", "description": "Show help" },
|
|
79
|
+
{ "name": "--version", "description": "Show version" }
|
|
80
|
+
],
|
|
81
|
+
"examples": [
|
|
82
|
+
{ "command": "brew install node", "description": "Install Node.js" },
|
|
83
|
+
{ "command": "brew install --cask visual-studio-code", "description": "Install VS Code" },
|
|
84
|
+
{ "command": "brew update && brew upgrade", "description": "Update and upgrade all" },
|
|
85
|
+
{ "command": "brew search redis", "description": "Search for Redis" },
|
|
86
|
+
{ "command": "brew info nginx", "description": "Nginx formula info" },
|
|
87
|
+
{ "command": "brew list", "description": "List installed formulae" },
|
|
88
|
+
{ "command": "brew outdated", "description": "Show outdated" },
|
|
89
|
+
{ "command": "brew services list", "description": "List services" },
|
|
90
|
+
{ "command": "brew services start postgresql", "description": "Start PostgreSQL" },
|
|
91
|
+
{ "command": "brew cleanup -s", "description": "Clean cache" },
|
|
92
|
+
{ "command": "brew doctor", "description": "Diagnose issues" },
|
|
93
|
+
{ "command": "brew bundle dump", "description": "Create Brewfile" }
|
|
94
|
+
],
|
|
95
|
+
"relatedCommands": ["apt", "pacman"],
|
|
96
|
+
"contextEngine": {
|
|
97
|
+
"detectors": [
|
|
98
|
+
{
|
|
99
|
+
"name": "installed",
|
|
100
|
+
"description": "Installed formulae",
|
|
101
|
+
"command": "brew list --formula --versions 2>/dev/null | tail -20",
|
|
102
|
+
"parser": "lines",
|
|
103
|
+
"cacheFor": 120,
|
|
104
|
+
"requiresCmd": "brew"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"name": "casks",
|
|
108
|
+
"description": "Installed casks",
|
|
109
|
+
"command": "brew list --cask 2>/dev/null | tail -20",
|
|
110
|
+
"parser": "lines",
|
|
111
|
+
"cacheFor": 120,
|
|
112
|
+
"requiresCmd": "brew"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"name": "outdated",
|
|
116
|
+
"description": "Outdated packages",
|
|
117
|
+
"command": "brew outdated 2>/dev/null | head -15",
|
|
118
|
+
"parser": "lines",
|
|
119
|
+
"cacheFor": 300,
|
|
120
|
+
"requiresCmd": "brew"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"name": "services",
|
|
124
|
+
"description": "Homebrew services",
|
|
125
|
+
"command": "brew services list 2>/dev/null | tail -15",
|
|
126
|
+
"parser": "lines",
|
|
127
|
+
"cacheFor": 60,
|
|
128
|
+
"requiresCmd": "brew"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"name": "taps",
|
|
132
|
+
"description": "Tapped repositories",
|
|
133
|
+
"command": "brew tap 2>/dev/null",
|
|
134
|
+
"parser": "lines",
|
|
135
|
+
"cacheFor": 300,
|
|
136
|
+
"requiresCmd": "brew"
|
|
137
|
+
}
|
|
138
|
+
]
|
|
139
|
+
}
|
|
140
|
+
}
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "bun",
|
|
3
|
+
"description": "Bun — all-in-one JavaScript runtime, bundler, transpiler, and package manager",
|
|
4
|
+
"category": "javascript",
|
|
5
|
+
"platforms": ["linux", "macos", "windows"],
|
|
6
|
+
"shells": ["bash", "zsh", "fish", "powershell"],
|
|
7
|
+
"subcommands": [
|
|
8
|
+
{
|
|
9
|
+
"name": "run",
|
|
10
|
+
"description": "Execute a JavaScript/TypeScript file or package.json script",
|
|
11
|
+
"args": [{ "name": "<script>", "type": "string", "required": true, "description": "Script file or package.json script name" }],
|
|
12
|
+
"options": [
|
|
13
|
+
{ "name": "--watch", "description": "Watch mode — restart on file changes" },
|
|
14
|
+
{ "name": "--hot", "description": "Hot reload mode" },
|
|
15
|
+
{ "name": "--smol", "description": "Use less memory at the cost of performance" },
|
|
16
|
+
{ "name": "--bun", "description": "Force usage of Bun's runtime" },
|
|
17
|
+
{ "name": "--env-file", "description": "Load environment variables from file", "type": "file" },
|
|
18
|
+
{ "name": "--port", "description": "Set default port for Bun.serve()", "type": "number" },
|
|
19
|
+
{ "name": "--inspect", "description": "Enable inspector on host:port", "type": "string" }
|
|
20
|
+
],
|
|
21
|
+
"examples": ["bun run index.ts", "bun run dev", "bun run build", "bun run --watch server.ts", "bun run --hot src/index.ts"]
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "install",
|
|
25
|
+
"description": "Install dependencies from package.json",
|
|
26
|
+
"options": [
|
|
27
|
+
{ "name": "--production", "description": "Skip devDependencies" },
|
|
28
|
+
{ "name": "--frozen-lockfile", "description": "Error if lockfile is out of date" },
|
|
29
|
+
{ "name": "--no-save", "description": "Don't update package.json" },
|
|
30
|
+
{ "name": "--dry-run", "description": "Show what would be installed" },
|
|
31
|
+
{ "name": "--force", "description": "Always request latest versions" },
|
|
32
|
+
{ "name": "--global", "short": "-g", "description": "Install globally" },
|
|
33
|
+
{ "name": "--backend", "description": "Package resolution backend", "type": "string" },
|
|
34
|
+
{ "name": "--trust", "description": "Trust lifecycle scripts from specific packages" }
|
|
35
|
+
],
|
|
36
|
+
"examples": ["bun install", "bun install --frozen-lockfile", "bun install --production"]
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "add",
|
|
40
|
+
"description": "Add a package to dependencies",
|
|
41
|
+
"args": [{ "name": "<package>", "type": "string", "required": true, "description": "Package name(s) to add" }],
|
|
42
|
+
"options": [
|
|
43
|
+
{ "name": "--dev", "short": "-d", "description": "Add as devDependency" },
|
|
44
|
+
{ "name": "--optional", "description": "Add as optionalDependency" },
|
|
45
|
+
{ "name": "--exact", "short": "-E", "description": "Pin exact version" },
|
|
46
|
+
{ "name": "--global", "short": "-g", "description": "Install globally" },
|
|
47
|
+
{ "name": "--trust", "description": "Trust lifecycle scripts" }
|
|
48
|
+
],
|
|
49
|
+
"examples": ["bun add express", "bun add -d typescript", "bun add react react-dom", "bun add -g serve"]
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"name": "remove",
|
|
53
|
+
"description": "Remove a package from dependencies",
|
|
54
|
+
"args": [{ "name": "<package>", "type": "string", "required": true, "description": "Package name to remove" }],
|
|
55
|
+
"examples": ["bun remove express", "bun remove -g serve"]
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"name": "update",
|
|
59
|
+
"description": "Update packages to latest versions",
|
|
60
|
+
"args": [{ "name": "<package>", "type": "string", "required": false, "description": "Specific package to update" }],
|
|
61
|
+
"options": [
|
|
62
|
+
{ "name": "--latest", "description": "Update beyond semver range" }
|
|
63
|
+
],
|
|
64
|
+
"examples": ["bun update", "bun update react", "bun update --latest"]
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"name": "create",
|
|
68
|
+
"description": "Create a new project from a template",
|
|
69
|
+
"args": [{ "name": "<template>", "type": "string", "required": true, "description": "Template to use" }],
|
|
70
|
+
"examples": ["bun create react-app my-app", "bun create elysia my-api", "bun create hono my-api", "bun create vite my-app"]
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"name": "init",
|
|
74
|
+
"description": "Initialize a new package.json",
|
|
75
|
+
"options": [
|
|
76
|
+
{ "name": "--yes", "short": "-y", "description": "Accept all defaults" }
|
|
77
|
+
],
|
|
78
|
+
"examples": ["bun init", "bun init -y"]
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"name": "test",
|
|
82
|
+
"description": "Run tests using Bun's built-in test runner",
|
|
83
|
+
"args": [{ "name": "<pattern>", "type": "string", "required": false, "description": "Test file pattern" }],
|
|
84
|
+
"options": [
|
|
85
|
+
{ "name": "--watch", "description": "Run in watch mode" },
|
|
86
|
+
{ "name": "--bail", "description": "Stop after first failure", "type": "number" },
|
|
87
|
+
{ "name": "--timeout", "description": "Test timeout (ms)", "type": "number" },
|
|
88
|
+
{ "name": "--rerun-each", "description": "Run each test N times", "type": "number" },
|
|
89
|
+
{ "name": "--coverage", "description": "Enable code coverage" },
|
|
90
|
+
{ "name": "--preload", "description": "Preload modules before tests", "type": "string" }
|
|
91
|
+
],
|
|
92
|
+
"examples": ["bun test", "bun test --watch", "bun test src/utils.test.ts", "bun test --coverage"]
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"name": "build",
|
|
96
|
+
"description": "Bundle TypeScript/JavaScript using Bun's bundler",
|
|
97
|
+
"args": [{ "name": "<entrypoint>", "type": "file", "required": true, "description": "Entry point file(s)" }],
|
|
98
|
+
"options": [
|
|
99
|
+
{ "name": "--outdir", "description": "Output directory", "type": "directory" },
|
|
100
|
+
{ "name": "--outfile", "description": "Output file", "type": "file" },
|
|
101
|
+
{ "name": "--target", "description": "Target environment (browser, bun, node)", "type": "string" },
|
|
102
|
+
{ "name": "--minify", "description": "Minify output" },
|
|
103
|
+
{ "name": "--sourcemap", "description": "Generate source maps (none, linked, inline, external)", "type": "string" },
|
|
104
|
+
{ "name": "--splitting", "description": "Enable code splitting" },
|
|
105
|
+
{ "name": "--format", "description": "Module format (esm, cjs, iife)", "type": "string" },
|
|
106
|
+
{ "name": "--external", "description": "Mark packages as external", "type": "string" },
|
|
107
|
+
{ "name": "--compile", "description": "Create a standalone executable" }
|
|
108
|
+
],
|
|
109
|
+
"examples": ["bun build src/index.ts --outdir ./dist", "bun build src/index.ts --target bun --minify", "bun build src/index.ts --compile --outfile myapp"]
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"name": "x",
|
|
113
|
+
"description": "Execute a package binary (like npx)",
|
|
114
|
+
"args": [{ "name": "<command>", "type": "string", "required": true, "description": "Package/command to run" }],
|
|
115
|
+
"examples": ["bunx tsc --init", "bunx create-react-app my-app", "bunx prisma migrate dev", "bunx eslint ."]
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"name": "link",
|
|
119
|
+
"description": "Register or link a local package",
|
|
120
|
+
"examples": ["bun link", "bun link my-package"]
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"name": "pm",
|
|
124
|
+
"description": "Package manager utilities",
|
|
125
|
+
"examples": ["bun pm ls", "bun pm cache", "bun pm cache rm", "bun pm hash", "bun pm hash-string", "bun pm bin", "bun pm bin -g"]
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"name": "upgrade",
|
|
129
|
+
"description": "Upgrade Bun to the latest version",
|
|
130
|
+
"examples": ["bun upgrade", "bun upgrade --canary"]
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"name": "repl",
|
|
134
|
+
"description": "Start the Bun REPL",
|
|
135
|
+
"examples": ["bun repl"]
|
|
136
|
+
}
|
|
137
|
+
],
|
|
138
|
+
"globalOptions": [
|
|
139
|
+
{ "name": "--version", "description": "Show Bun version" },
|
|
140
|
+
{ "name": "--help", "short": "-h", "description": "Show help" },
|
|
141
|
+
{ "name": "--cwd", "description": "Set working directory", "type": "directory" },
|
|
142
|
+
{ "name": "--config", "short": "-c", "description": "Config file path", "type": "file" },
|
|
143
|
+
{ "name": "--env-file", "description": "Environment file path", "type": "file" }
|
|
144
|
+
],
|
|
145
|
+
"examples": [
|
|
146
|
+
"bun run dev",
|
|
147
|
+
"bun install",
|
|
148
|
+
"bun add express",
|
|
149
|
+
"bun test",
|
|
150
|
+
"bun build src/index.ts --outdir dist",
|
|
151
|
+
"bun --version"
|
|
152
|
+
],
|
|
153
|
+
"relatedCommands": ["node", "npm", "yarn", "pnpm", "deno"],
|
|
154
|
+
"contextEngine": {
|
|
155
|
+
"detectors": [
|
|
156
|
+
{
|
|
157
|
+
"name": "bun_version",
|
|
158
|
+
"description": "Installed Bun version",
|
|
159
|
+
"command": "bun --version 2>/dev/null",
|
|
160
|
+
"parser": "text",
|
|
161
|
+
"cacheFor": 3600,
|
|
162
|
+
"requiresCmd": "bun"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"name": "package_json_scripts",
|
|
166
|
+
"description": "Scripts defined in package.json",
|
|
167
|
+
"command": "cat package.json 2>/dev/null | grep -A100 '\"scripts\"' | grep -B0 -E '\"[^\"]+\"\\s*:' | head -30",
|
|
168
|
+
"parser": "lines",
|
|
169
|
+
"cacheFor": 10,
|
|
170
|
+
"requiresCmd": "bun"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"name": "installed_deps",
|
|
174
|
+
"description": "Installed dependencies (from bun.lockb)",
|
|
175
|
+
"command": "bun pm ls 2>/dev/null | head -50",
|
|
176
|
+
"parser": "lines",
|
|
177
|
+
"cacheFor": 30,
|
|
178
|
+
"requiresCmd": "bun"
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"name": "lockfile_exists",
|
|
182
|
+
"description": "Check for bun.lockb lockfile",
|
|
183
|
+
"command": "test -f bun.lockb && echo 'bun.lockb' || test -f bun.lock && echo 'bun.lock' || echo 'none'",
|
|
184
|
+
"parser": "text",
|
|
185
|
+
"cacheFor": 10,
|
|
186
|
+
"requiresCmd": "bun"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"name": "package_name",
|
|
190
|
+
"description": "Package name from package.json",
|
|
191
|
+
"command": "cat package.json 2>/dev/null | grep '\"name\"' | head -1 | sed 's/.*\"name\"[[:space:]]*:[[:space:]]*\"\\([^\"]*\\)\".*/\\1/'",
|
|
192
|
+
"parser": "text",
|
|
193
|
+
"cacheFor": 30,
|
|
194
|
+
"requiresCmd": "bun"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"name": "workspaces",
|
|
198
|
+
"description": "Workspace definitions from package.json",
|
|
199
|
+
"command": "cat package.json 2>/dev/null | grep -A10 '\"workspaces\"' | head -12",
|
|
200
|
+
"parser": "lines",
|
|
201
|
+
"cacheFor": 60,
|
|
202
|
+
"requiresCmd": "bun"
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"name": "bunfig_toml",
|
|
206
|
+
"description": "Check for bunfig.toml configuration",
|
|
207
|
+
"command": "test -f bunfig.toml && cat bunfig.toml 2>/dev/null | head -20 || echo 'none'",
|
|
208
|
+
"parser": "lines",
|
|
209
|
+
"cacheFor": 30,
|
|
210
|
+
"requiresCmd": "bun"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"name": "global_packages",
|
|
214
|
+
"description": "Globally installed Bun packages",
|
|
215
|
+
"command": "bun pm bin -g 2>/dev/null && ls $(bun pm bin -g 2>/dev/null) 2>/dev/null | head -20",
|
|
216
|
+
"parser": "lines",
|
|
217
|
+
"cacheFor": 120,
|
|
218
|
+
"requiresCmd": "bun"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"name": "test_files",
|
|
222
|
+
"description": "Test files in the project",
|
|
223
|
+
"command": "find . -name '*.test.ts' -o -name '*.test.js' -o -name '*.spec.ts' -o -name '*.spec.js' 2>/dev/null | head -20 | grep -v node_modules",
|
|
224
|
+
"parser": "lines",
|
|
225
|
+
"cacheFor": 30,
|
|
226
|
+
"requiresCmd": "bun"
|
|
227
|
+
}
|
|
228
|
+
]
|
|
229
|
+
}
|
|
230
|
+
}
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "caddy",
|
|
3
|
+
"description": "Caddy — fast, multi-platform web server with automatic HTTPS",
|
|
4
|
+
"category": "web-server",
|
|
5
|
+
"platforms": ["linux", "macos", "windows"],
|
|
6
|
+
"shells": ["bash", "zsh", "fish", "powershell"],
|
|
7
|
+
"subcommands": [
|
|
8
|
+
{
|
|
9
|
+
"name": "run",
|
|
10
|
+
"description": "Start Caddy in the foreground",
|
|
11
|
+
"options": [
|
|
12
|
+
{ "name": "--config", "description": "Configuration file path", "type": "file" },
|
|
13
|
+
{ "name": "--adapter", "description": "Config adapter (caddyfile, json)", "type": "string" },
|
|
14
|
+
{ "name": "--environ", "description": "Print environment and exit" },
|
|
15
|
+
{ "name": "--resume", "description": "Use saved config, if any" },
|
|
16
|
+
{ "name": "--watch", "description": "Watch config file for changes and auto-reload" }
|
|
17
|
+
],
|
|
18
|
+
"examples": ["caddy run", "caddy run --config Caddyfile", "caddy run --config caddy.json", "caddy run --watch"]
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "start",
|
|
22
|
+
"description": "Start Caddy in the background",
|
|
23
|
+
"options": [
|
|
24
|
+
{ "name": "--config", "description": "Configuration file path", "type": "file" },
|
|
25
|
+
{ "name": "--adapter", "description": "Config adapter", "type": "string" }
|
|
26
|
+
],
|
|
27
|
+
"examples": ["caddy start", "caddy start --config Caddyfile"]
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"name": "stop",
|
|
31
|
+
"description": "Stop the running Caddy process",
|
|
32
|
+
"examples": ["caddy stop"]
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "reload",
|
|
36
|
+
"description": "Apply config changes without downtime",
|
|
37
|
+
"options": [
|
|
38
|
+
{ "name": "--config", "description": "Configuration file path", "type": "file" },
|
|
39
|
+
{ "name": "--adapter", "description": "Config adapter", "type": "string" },
|
|
40
|
+
{ "name": "--force", "description": "Force reload even if config hasn't changed" }
|
|
41
|
+
],
|
|
42
|
+
"examples": ["caddy reload", "caddy reload --config Caddyfile"]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "adapt",
|
|
46
|
+
"description": "Adapt a configuration to native JSON format",
|
|
47
|
+
"options": [
|
|
48
|
+
{ "name": "--config", "description": "Configuration file path", "type": "file" },
|
|
49
|
+
{ "name": "--adapter", "description": "Config adapter", "type": "string" },
|
|
50
|
+
{ "name": "--pretty", "description": "Pretty-print output" },
|
|
51
|
+
{ "name": "--validate", "description": "Validate the final config" }
|
|
52
|
+
],
|
|
53
|
+
"examples": ["caddy adapt --config Caddyfile --pretty", "caddy adapt --config Caddyfile --validate"]
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"name": "validate",
|
|
57
|
+
"description": "Validate a configuration file",
|
|
58
|
+
"options": [
|
|
59
|
+
{ "name": "--config", "description": "Configuration file path", "type": "file" },
|
|
60
|
+
{ "name": "--adapter", "description": "Config adapter", "type": "string" }
|
|
61
|
+
],
|
|
62
|
+
"examples": ["caddy validate --config Caddyfile"]
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"name": "reverse-proxy",
|
|
66
|
+
"description": "Quick reverse proxy (no config file needed)",
|
|
67
|
+
"options": [
|
|
68
|
+
{ "name": "--from", "description": "Address to listen on", "type": "string" },
|
|
69
|
+
{ "name": "--to", "description": "Upstream address(es)", "type": "string" },
|
|
70
|
+
{ "name": "--change-host-header", "description": "Set upstream Host header to address of upstream" },
|
|
71
|
+
{ "name": "--internal-certs", "description": "Use internal CA for TLS" }
|
|
72
|
+
],
|
|
73
|
+
"examples": ["caddy reverse-proxy --from :2080 --to localhost:8080", "caddy reverse-proxy --from example.com --to localhost:3000"]
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"name": "file-server",
|
|
77
|
+
"description": "Quick static file server (no config file needed)",
|
|
78
|
+
"options": [
|
|
79
|
+
{ "name": "--root", "description": "Root directory to serve", "type": "directory" },
|
|
80
|
+
{ "name": "--listen", "description": "Address to listen on", "type": "string" },
|
|
81
|
+
{ "name": "--domain", "description": "Domain name (enables HTTPS)", "type": "string" },
|
|
82
|
+
{ "name": "--browse", "description": "Enable directory browsing" },
|
|
83
|
+
{ "name": "--access-log", "description": "Enable access logging" }
|
|
84
|
+
],
|
|
85
|
+
"examples": ["caddy file-server --root ./public --browse", "caddy file-server --domain example.com --root /srv/www"]
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"name": "fmt",
|
|
89
|
+
"description": "Format a Caddyfile",
|
|
90
|
+
"options": [
|
|
91
|
+
{ "name": "--overwrite", "description": "Overwrite the input file" }
|
|
92
|
+
],
|
|
93
|
+
"examples": ["caddy fmt Caddyfile", "caddy fmt --overwrite Caddyfile"]
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"name": "trust",
|
|
97
|
+
"description": "Install Caddy's root CA into local trust store",
|
|
98
|
+
"examples": ["caddy trust"]
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"name": "untrust",
|
|
102
|
+
"description": "Untrust Caddy's root CA from local trust store",
|
|
103
|
+
"examples": ["caddy untrust"]
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"name": "list-modules",
|
|
107
|
+
"description": "List installed Caddy modules",
|
|
108
|
+
"examples": ["caddy list-modules", "caddy list-modules --versions"]
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"name": "environ",
|
|
112
|
+
"description": "Print the environment",
|
|
113
|
+
"examples": ["caddy environ"]
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"name": "version",
|
|
117
|
+
"description": "Print Caddy version",
|
|
118
|
+
"examples": ["caddy version"]
|
|
119
|
+
}
|
|
120
|
+
],
|
|
121
|
+
"globalOptions": [
|
|
122
|
+
{ "name": "--config", "description": "Path to config file", "type": "file" },
|
|
123
|
+
{ "name": "--adapter", "description": "Config adapter name", "type": "string" }
|
|
124
|
+
],
|
|
125
|
+
"examples": [
|
|
126
|
+
"caddy run",
|
|
127
|
+
"caddy start --config Caddyfile",
|
|
128
|
+
"caddy reverse-proxy --from :2080 --to localhost:8080",
|
|
129
|
+
"caddy file-server --browse",
|
|
130
|
+
"caddy reload",
|
|
131
|
+
"caddy stop"
|
|
132
|
+
],
|
|
133
|
+
"relatedCommands": ["nginx", "apache", "certbot", "openssl"],
|
|
134
|
+
"contextEngine": {
|
|
135
|
+
"detectors": [
|
|
136
|
+
{
|
|
137
|
+
"name": "running_status",
|
|
138
|
+
"description": "Check if Caddy is currently running",
|
|
139
|
+
"command": "pgrep -x caddy >/dev/null 2>&1 && echo 'running' || echo 'stopped'",
|
|
140
|
+
"parser": "text",
|
|
141
|
+
"cacheFor": 5,
|
|
142
|
+
"requiresCmd": "caddy"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"name": "caddy_version",
|
|
146
|
+
"description": "Installed Caddy version",
|
|
147
|
+
"command": "caddy version 2>/dev/null",
|
|
148
|
+
"parser": "text",
|
|
149
|
+
"cacheFor": 3600,
|
|
150
|
+
"requiresCmd": "caddy"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"name": "loaded_modules",
|
|
154
|
+
"description": "Installed Caddy modules",
|
|
155
|
+
"command": "caddy list-modules 2>/dev/null",
|
|
156
|
+
"parser": "lines",
|
|
157
|
+
"cacheFor": 3600,
|
|
158
|
+
"requiresCmd": "caddy"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"name": "caddyfile_exists",
|
|
162
|
+
"description": "Check for Caddyfile in common locations",
|
|
163
|
+
"command": "test -f ./Caddyfile && echo './Caddyfile' || test -f /etc/caddy/Caddyfile && echo '/etc/caddy/Caddyfile' || echo 'none'",
|
|
164
|
+
"parser": "text",
|
|
165
|
+
"cacheFor": 10,
|
|
166
|
+
"requiresCmd": "caddy"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"name": "caddyfile_sites",
|
|
170
|
+
"description": "Sites/domains configured in Caddyfile",
|
|
171
|
+
"command": "grep -E '^[a-zA-Z0-9.:*]+' /etc/caddy/Caddyfile 2>/dev/null || grep -E '^[a-zA-Z0-9.:*]+' ./Caddyfile 2>/dev/null | head -20",
|
|
172
|
+
"parser": "lines",
|
|
173
|
+
"cacheFor": 15,
|
|
174
|
+
"requiresCmd": "caddy"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"name": "managed_certificates",
|
|
178
|
+
"description": "Caddy-managed TLS certificates",
|
|
179
|
+
"command": "ls ~/.local/share/caddy/certificates/acme-v02.api.letsencrypt.org-directory/ 2>/dev/null || ls /var/lib/caddy/.local/share/caddy/certificates/ 2>/dev/null",
|
|
180
|
+
"parser": "lines",
|
|
181
|
+
"cacheFor": 300,
|
|
182
|
+
"requiresCmd": "caddy"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"name": "current_config",
|
|
186
|
+
"description": "Current running Caddy config (from API)",
|
|
187
|
+
"command": "curl -s localhost:2019/config/ 2>/dev/null | head -c 2000",
|
|
188
|
+
"parser": "json",
|
|
189
|
+
"cacheFor": 15,
|
|
190
|
+
"requiresCmd": "caddy"
|
|
191
|
+
}
|
|
192
|
+
]
|
|
193
|
+
}
|
|
194
|
+
}
|