@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.
Files changed (138) hide show
  1. package/README.md +213 -0
  2. package/data/commands/air.json +59 -0
  3. package/data/commands/ansible.json +24 -0
  4. package/data/commands/apachectl.json +87 -0
  5. package/data/commands/apt-get.json +81 -0
  6. package/data/commands/apt.json +91 -0
  7. package/data/commands/awk.json +26 -0
  8. package/data/commands/aws-vault.json +140 -0
  9. package/data/commands/aws.json +229 -0
  10. package/data/commands/az.json +36 -0
  11. package/data/commands/bazel.json +103 -0
  12. package/data/commands/brew.json +140 -0
  13. package/data/commands/bun.json +230 -0
  14. package/data/commands/caddy.json +194 -0
  15. package/data/commands/cargo.json +1048 -0
  16. package/data/commands/cat.json +18 -0
  17. package/data/commands/cd.json +48 -0
  18. package/data/commands/certbot.json +148 -0
  19. package/data/commands/chmod.json +97 -0
  20. package/data/commands/choco.json +134 -0
  21. package/data/commands/chown.json +59 -0
  22. package/data/commands/clickhouse-client.json +74 -0
  23. package/data/commands/cloudflare.json +226 -0
  24. package/data/commands/cmake.json +110 -0
  25. package/data/commands/cockroach.json +92 -0
  26. package/data/commands/conda.json +94 -0
  27. package/data/commands/consul.json +125 -0
  28. package/data/commands/cp.json +86 -0
  29. package/data/commands/curl.json +44 -0
  30. package/data/commands/cypress.json +100 -0
  31. package/data/commands/deno.json +29 -0
  32. package/data/commands/django-admin.json +86 -0
  33. package/data/commands/dnf.json +137 -0
  34. package/data/commands/docker.json +1100 -0
  35. package/data/commands/doctl.json +156 -0
  36. package/data/commands/eslint.json +69 -0
  37. package/data/commands/find.json +44 -0
  38. package/data/commands/firebase.json +97 -0
  39. package/data/commands/flask.json +79 -0
  40. package/data/commands/flyctl.json +148 -0
  41. package/data/commands/gcloud.json +227 -0
  42. package/data/commands/gh.json +39 -0
  43. package/data/commands/git.json +527 -0
  44. package/data/commands/glab.json +116 -0
  45. package/data/commands/go.json +161 -0
  46. package/data/commands/gofmt.json +51 -0
  47. package/data/commands/golangci-lint.json +89 -0
  48. package/data/commands/gradle.json +44 -0
  49. package/data/commands/grep.json +47 -0
  50. package/data/commands/gunicorn.json +83 -0
  51. package/data/commands/helm.json +1104 -0
  52. package/data/commands/hg.json +92 -0
  53. package/data/commands/httpd.json +147 -0
  54. package/data/commands/influx.json +119 -0
  55. package/data/commands/iptables.json +86 -0
  56. package/data/commands/java.json +31 -0
  57. package/data/commands/jest.json +82 -0
  58. package/data/commands/journalctl.json +88 -0
  59. package/data/commands/just.json +93 -0
  60. package/data/commands/k6.json +84 -0
  61. package/data/commands/kubectl.json +1277 -0
  62. package/data/commands/linode-cli.json +117 -0
  63. package/data/commands/locust.json +83 -0
  64. package/data/commands/ls.json +115 -0
  65. package/data/commands/make.json +86 -0
  66. package/data/commands/mocha.json +75 -0
  67. package/data/commands/mongosh.json +73 -0
  68. package/data/commands/mv.json +68 -0
  69. package/data/commands/mvn.json +45 -0
  70. package/data/commands/mysql.json +81 -0
  71. package/data/commands/nest.json +69 -0
  72. package/data/commands/netlify.json +92 -0
  73. package/data/commands/next.json +71 -0
  74. package/data/commands/nft.json +105 -0
  75. package/data/commands/nginx.json +146 -0
  76. package/data/commands/nmap.json +92 -0
  77. package/data/commands/node.json +43 -0
  78. package/data/commands/nomad.json +139 -0
  79. package/data/commands/npm.json +1265 -0
  80. package/data/commands/npx.json +58 -0
  81. package/data/commands/nx.json +82 -0
  82. package/data/commands/openssl.json +288 -0
  83. package/data/commands/packer.json +92 -0
  84. package/data/commands/pacman.json +82 -0
  85. package/data/commands/pg_dump.json +83 -0
  86. package/data/commands/pg_restore.json +74 -0
  87. package/data/commands/pip.json +95 -0
  88. package/data/commands/pipenv.json +79 -0
  89. package/data/commands/pipx.json +53 -0
  90. package/data/commands/playwright.json +97 -0
  91. package/data/commands/pnpm.json +29 -0
  92. package/data/commands/poetry.json +96 -0
  93. package/data/commands/prettier.json +71 -0
  94. package/data/commands/ps.json +31 -0
  95. package/data/commands/psql.json +124 -0
  96. package/data/commands/pulumi.json +130 -0
  97. package/data/commands/pytest.json +92 -0
  98. package/data/commands/python.json +30 -0
  99. package/data/commands/railway.json +91 -0
  100. package/data/commands/redis-cli.json +148 -0
  101. package/data/commands/render.json +72 -0
  102. package/data/commands/rm.json +79 -0
  103. package/data/commands/rsync.json +36 -0
  104. package/data/commands/rust.json +35 -0
  105. package/data/commands/rustup.json +103 -0
  106. package/data/commands/scp.json +60 -0
  107. package/data/commands/sed.json +28 -0
  108. package/data/commands/sqlite3.json +68 -0
  109. package/data/commands/ssh-keygen.json +112 -0
  110. package/data/commands/ssh.json +37 -0
  111. package/data/commands/sudo.json +147 -0
  112. package/data/commands/supabase.json +108 -0
  113. package/data/commands/svn.json +75 -0
  114. package/data/commands/systemctl.json +31 -0
  115. package/data/commands/tar.json +35 -0
  116. package/data/commands/tcpdump.json +77 -0
  117. package/data/commands/terraform.json +824 -0
  118. package/data/commands/terragrunt.json +83 -0
  119. package/data/commands/tsc.json +85 -0
  120. package/data/commands/turbo.json +72 -0
  121. package/data/commands/ufw.json +76 -0
  122. package/data/commands/unzip.json +59 -0
  123. package/data/commands/uvicorn.json +73 -0
  124. package/data/commands/vault.json +144 -0
  125. package/data/commands/vercel.json +98 -0
  126. package/data/commands/vite.json +63 -0
  127. package/data/commands/vitest.json +88 -0
  128. package/data/commands/wasm-pack.json +90 -0
  129. package/data/commands/wget.json +38 -0
  130. package/data/commands/winget.json +131 -0
  131. package/data/commands/wireshark.json +81 -0
  132. package/data/commands/yarn.json +28 -0
  133. package/data/commands/yum.json +98 -0
  134. package/data/commands/zip.json +59 -0
  135. package/index.d.ts +131 -0
  136. package/index.js +189 -0
  137. package/index.mjs +21 -0
  138. package/package.json +64 -0
@@ -0,0 +1,226 @@
1
+ {
2
+ "name": "cloudflare",
3
+ "description": "Cloudflare CLI (Wrangler + flarectl) — manage DNS, Workers, Pages, tunnels, and more",
4
+ "category": "cloud",
5
+ "platforms": ["linux", "macos", "windows"],
6
+ "shells": ["bash", "zsh", "fish", "powershell"],
7
+ "subcommands": [
8
+ {
9
+ "name": "wrangler dev",
10
+ "description": "Start a local development server for Workers",
11
+ "options": [
12
+ { "name": "--port", "description": "Local port", "type": "number" },
13
+ { "name": "--local", "description": "Run with local runtime" },
14
+ { "name": "--remote", "description": "Run against remote Cloudflare infrastructure" },
15
+ { "name": "--env", "description": "Environment to use", "type": "string" },
16
+ { "name": "--test-scheduled", "description": "Test scheduled events" }
17
+ ],
18
+ "examples": ["npx wrangler dev", "npx wrangler dev --port 8787", "npx wrangler dev --local"]
19
+ },
20
+ {
21
+ "name": "wrangler deploy",
22
+ "description": "Deploy a Worker to Cloudflare",
23
+ "options": [
24
+ { "name": "--env", "description": "Environment to deploy to", "type": "string" },
25
+ { "name": "--name", "description": "Worker name", "type": "string" },
26
+ { "name": "--dry-run", "description": "Preview deploy without publishing" },
27
+ { "name": "--outdir", "description": "Output directory for bundle", "type": "directory" }
28
+ ],
29
+ "examples": ["npx wrangler deploy", "npx wrangler deploy --env production", "npx wrangler deploy --dry-run"]
30
+ },
31
+ {
32
+ "name": "wrangler init",
33
+ "description": "Initialize a new Worker project",
34
+ "examples": ["npx wrangler init my-worker", "npx wrangler init"]
35
+ },
36
+ {
37
+ "name": "wrangler login",
38
+ "description": "Authenticate with Cloudflare",
39
+ "examples": ["npx wrangler login", "npx wrangler whoami"]
40
+ },
41
+ {
42
+ "name": "wrangler tail",
43
+ "description": "Tail logs from a deployed Worker",
44
+ "options": [
45
+ { "name": "--format", "description": "Output format (json, pretty)", "type": "string" },
46
+ { "name": "--status", "description": "Filter by status (ok, error, canceled)", "type": "string" }
47
+ ],
48
+ "examples": ["npx wrangler tail my-worker", "npx wrangler tail my-worker --format json"]
49
+ },
50
+ {
51
+ "name": "wrangler secret",
52
+ "description": "Manage Worker secrets",
53
+ "examples": ["npx wrangler secret put MY_SECRET", "npx wrangler secret list", "npx wrangler secret delete MY_SECRET"]
54
+ },
55
+ {
56
+ "name": "wrangler kv",
57
+ "description": "Manage Workers KV namespaces and key-value pairs",
58
+ "examples": [
59
+ "npx wrangler kv namespace list",
60
+ "npx wrangler kv namespace create MY_KV",
61
+ "npx wrangler kv key put --namespace-id=xxx mykey 'myvalue'",
62
+ "npx wrangler kv key get --namespace-id=xxx mykey",
63
+ "npx wrangler kv key list --namespace-id=xxx",
64
+ "npx wrangler kv key delete --namespace-id=xxx mykey",
65
+ "npx wrangler kv bulk put --namespace-id=xxx data.json"
66
+ ]
67
+ },
68
+ {
69
+ "name": "wrangler r2",
70
+ "description": "Manage R2 storage buckets and objects",
71
+ "examples": [
72
+ "npx wrangler r2 bucket list",
73
+ "npx wrangler r2 bucket create my-bucket",
74
+ "npx wrangler r2 object get my-bucket/file.txt",
75
+ "npx wrangler r2 object put my-bucket/file.txt --file=file.txt"
76
+ ]
77
+ },
78
+ {
79
+ "name": "wrangler d1",
80
+ "description": "Manage D1 databases",
81
+ "examples": [
82
+ "npx wrangler d1 list",
83
+ "npx wrangler d1 create my-db",
84
+ "npx wrangler d1 execute my-db --command='SELECT * FROM users'",
85
+ "npx wrangler d1 execute my-db --file=schema.sql",
86
+ "npx wrangler d1 migrations apply my-db"
87
+ ]
88
+ },
89
+ {
90
+ "name": "wrangler pages",
91
+ "description": "Manage Cloudflare Pages projects",
92
+ "examples": [
93
+ "npx wrangler pages project list",
94
+ "npx wrangler pages project create my-site",
95
+ "npx wrangler pages deploy ./dist",
96
+ "npx wrangler pages deployment list --project-name my-site"
97
+ ]
98
+ },
99
+ {
100
+ "name": "wrangler tunnel",
101
+ "description": "Manage Cloudflare Tunnels (formerly Argo Tunnels)",
102
+ "examples": [
103
+ "cloudflared tunnel list",
104
+ "cloudflared tunnel create my-tunnel",
105
+ "cloudflared tunnel route dns my-tunnel myapp.example.com",
106
+ "cloudflared tunnel run my-tunnel",
107
+ "cloudflared tunnel delete my-tunnel",
108
+ "cloudflared tunnel info my-tunnel"
109
+ ]
110
+ },
111
+ {
112
+ "name": "dns",
113
+ "description": "Manage DNS records via flarectl or API",
114
+ "examples": [
115
+ "flarectl dns list --zone example.com",
116
+ "flarectl dns create --zone example.com --type A --name app --content 192.168.1.1",
117
+ "flarectl dns update --zone example.com --id RECORD_ID --content 10.0.0.1",
118
+ "flarectl dns delete --zone example.com --id RECORD_ID",
119
+ "curl -X GET 'https://api.cloudflare.com/client/v4/zones/ZONE_ID/dns_records' -H 'Authorization: Bearer TOKEN'"
120
+ ]
121
+ },
122
+ {
123
+ "name": "wrangler generate",
124
+ "description": "Generate a new Worker from a template",
125
+ "examples": ["npx wrangler generate my-worker https://github.com/cloudflare/worker-template"]
126
+ },
127
+ {
128
+ "name": "wrangler queues",
129
+ "description": "Manage Cloudflare Queues",
130
+ "examples": [
131
+ "npx wrangler queues list",
132
+ "npx wrangler queues create my-queue",
133
+ "npx wrangler queues delete my-queue"
134
+ ]
135
+ }
136
+ ],
137
+ "globalOptions": [
138
+ { "name": "--config", "short": "-c", "description": "Path to wrangler.toml config file", "type": "file" },
139
+ { "name": "--env", "short": "-e", "description": "Environment to use", "type": "string" }
140
+ ],
141
+ "examples": [
142
+ "npx wrangler dev",
143
+ "npx wrangler deploy",
144
+ "npx wrangler login",
145
+ "npx wrangler whoami",
146
+ "npx wrangler pages deploy ./dist",
147
+ "cloudflared tunnel run my-tunnel"
148
+ ],
149
+ "relatedCommands": ["vercel", "netlify", "aws", "nginx", "caddy"],
150
+ "contextEngine": {
151
+ "detectors": [
152
+ {
153
+ "name": "whoami",
154
+ "description": "Currently authenticated Cloudflare account",
155
+ "command": "npx wrangler whoami 2>/dev/null | grep -E '(account|email)' | head -5",
156
+ "parser": "lines",
157
+ "cacheFor": 300,
158
+ "requiresCmd": "npx"
159
+ },
160
+ {
161
+ "name": "workers",
162
+ "description": "Deployed Workers in the account",
163
+ "command": "npx wrangler deployments list 2>/dev/null | head -20",
164
+ "parser": "lines",
165
+ "cacheFor": 60,
166
+ "requiresCmd": "npx"
167
+ },
168
+ {
169
+ "name": "kv_namespaces",
170
+ "description": "KV namespaces in the account",
171
+ "command": "npx wrangler kv namespace list 2>/dev/null",
172
+ "parser": "json",
173
+ "cacheFor": 120,
174
+ "requiresCmd": "npx"
175
+ },
176
+ {
177
+ "name": "r2_buckets",
178
+ "description": "R2 storage buckets",
179
+ "command": "npx wrangler r2 bucket list 2>/dev/null",
180
+ "parser": "lines",
181
+ "cacheFor": 120,
182
+ "requiresCmd": "npx"
183
+ },
184
+ {
185
+ "name": "d1_databases",
186
+ "description": "D1 databases",
187
+ "command": "npx wrangler d1 list 2>/dev/null",
188
+ "parser": "lines",
189
+ "cacheFor": 120,
190
+ "requiresCmd": "npx"
191
+ },
192
+ {
193
+ "name": "pages_projects",
194
+ "description": "Pages projects",
195
+ "command": "npx wrangler pages project list 2>/dev/null",
196
+ "parser": "lines",
197
+ "cacheFor": 120,
198
+ "requiresCmd": "npx"
199
+ },
200
+ {
201
+ "name": "tunnels",
202
+ "description": "Active Cloudflare tunnels",
203
+ "command": "cloudflared tunnel list 2>/dev/null",
204
+ "parser": "lines",
205
+ "cacheFor": 60,
206
+ "requiresCmd": "cloudflared"
207
+ },
208
+ {
209
+ "name": "wrangler_config",
210
+ "description": "Check for wrangler.toml in current project",
211
+ "command": "test -f wrangler.toml && echo 'found' || test -f wrangler.json && echo 'found' || echo 'none'",
212
+ "parser": "text",
213
+ "cacheFor": 10,
214
+ "requiresCmd": "npx"
215
+ },
216
+ {
217
+ "name": "queues",
218
+ "description": "Cloudflare Queues",
219
+ "command": "npx wrangler queues list 2>/dev/null",
220
+ "parser": "lines",
221
+ "cacheFor": 120,
222
+ "requiresCmd": "npx"
223
+ }
224
+ ]
225
+ }
226
+ }
@@ -0,0 +1,110 @@
1
+ {
2
+ "name": "cmake",
3
+ "description": "Cross-platform build system generator for C/C++ projects",
4
+ "category": "Build Tools",
5
+ "platforms": ["linux", "macos", "windows"],
6
+ "shells": ["bash", "zsh", "powershell", "fish"],
7
+ "subcommands": [
8
+ { "name": "--build", "description": "Build a project", "options": [
9
+ { "name": "--target", "shorthand": "-t", "description": "Build specific target", "takesValue": true },
10
+ { "name": "--config", "description": "Configuration (Debug, Release, etc.)", "takesValue": true },
11
+ { "name": "--parallel", "shorthand": "-j", "description": "Number of parallel jobs", "takesValue": true },
12
+ { "name": "--clean-first", "description": "Clean before building" },
13
+ { "name": "--verbose", "shorthand": "-v", "description": "Verbose output" }
14
+ ]},
15
+ { "name": "--install", "description": "Install built project", "options": [
16
+ { "name": "--prefix", "description": "Install prefix", "takesValue": true },
17
+ { "name": "--config", "description": "Install configuration", "takesValue": true },
18
+ { "name": "--component", "description": "Install specific component", "takesValue": true },
19
+ { "name": "--strip", "description": "Strip binaries" }
20
+ ]},
21
+ { "name": "--open", "description": "Open project in IDE" },
22
+ { "name": "-E", "description": "Command-line tool mode", "subcommands": [
23
+ { "name": "capabilities", "description": "Show cmake capabilities" },
24
+ { "name": "copy", "description": "Copy files" },
25
+ { "name": "copy_directory", "description": "Copy directory" },
26
+ { "name": "copy_if_different", "description": "Copy if different" },
27
+ { "name": "echo", "description": "Print message" },
28
+ { "name": "env", "description": "Run in modified environment" },
29
+ { "name": "make_directory", "description": "Create directory" },
30
+ { "name": "md5sum", "description": "Compute MD5" },
31
+ { "name": "sha256sum", "description": "Compute SHA256" },
32
+ { "name": "remove", "description": "Remove files" },
33
+ { "name": "rename", "description": "Rename file" },
34
+ { "name": "tar", "description": "Create/extract archives" },
35
+ { "name": "touch", "description": "Touch files" }
36
+ ]}
37
+ ],
38
+ "globalOptions": [
39
+ { "name": "-S", "description": "Source directory", "takesValue": true },
40
+ { "name": "-B", "description": "Build directory", "takesValue": true },
41
+ { "name": "-G", "description": "Generator (Unix Makefiles, Ninja, Visual Studio, etc.)", "takesValue": true },
42
+ { "name": "-D", "description": "Define cache variable", "takesValue": true },
43
+ { "name": "-C", "description": "Pre-load cache script", "takesValue": true },
44
+ { "name": "-U", "description": "Undefine cache variable", "takesValue": true },
45
+ { "name": "--preset", "description": "Use CMake preset", "takesValue": true },
46
+ { "name": "--list-presets", "description": "List available presets" },
47
+ { "name": "-A", "description": "Platform name (VS generators)", "takesValue": true },
48
+ { "name": "-T", "description": "Toolset name (VS generators)", "takesValue": true },
49
+ { "name": "--toolchain", "description": "Toolchain file", "takesValue": true },
50
+ { "name": "--log-level", "description": "Log level (ERROR, WARNING, NOTICE, STATUS, VERBOSE, DEBUG, TRACE)", "takesValue": true },
51
+ { "name": "--trace", "description": "Trace cmake execution" },
52
+ { "name": "--trace-expand", "description": "Trace with variable expansion" },
53
+ { "name": "--warn-uninitialized", "description": "Warn about uninitialized vars" },
54
+ { "name": "--fresh", "description": "Clean build tree" },
55
+ { "name": "--version", "description": "Show version" },
56
+ { "name": "--help", "description": "Show help" }
57
+ ],
58
+ "examples": [
59
+ { "command": "cmake -B build -DCMAKE_BUILD_TYPE=Release", "description": "Configure release build" },
60
+ { "command": "cmake --build build -j$(nproc)", "description": "Build with all cores" },
61
+ { "command": "cmake --build build --target install", "description": "Install" },
62
+ { "command": "cmake -B build -G Ninja", "description": "Use Ninja generator" },
63
+ { "command": "cmake --preset release", "description": "Use preset" },
64
+ { "command": "cmake --build build --clean-first", "description": "Clean and rebuild" },
65
+ { "command": "cmake -S . -B build -DCMAKE_INSTALL_PREFIX=/usr/local", "description": "Set install prefix" },
66
+ { "command": "cmake -B build -DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake", "description": "Use toolchain file" }
67
+ ],
68
+ "relatedCommands": ["make", "bazel"],
69
+ "contextEngine": {
70
+ "detectors": [
71
+ {
72
+ "name": "cmake_files",
73
+ "description": "CMakeLists.txt files",
74
+ "command": "find . -name 'CMakeLists.txt' -not -path './build/*' 2>/dev/null | head -10",
75
+ "parser": "lines",
76
+ "cacheFor": 30
77
+ },
78
+ {
79
+ "name": "presets",
80
+ "description": "Available CMake presets",
81
+ "command": "cmake --list-presets 2>/dev/null",
82
+ "parser": "lines",
83
+ "cacheFor": 60,
84
+ "requiresCmd": "cmake"
85
+ },
86
+ {
87
+ "name": "cache_vars",
88
+ "description": "CMake cache variables",
89
+ "command": "cat build/CMakeCache.txt 2>/dev/null | grep -v '^#' | grep -v '^$' | head -20",
90
+ "parser": "keyvalue",
91
+ "cacheFor": 30
92
+ },
93
+ {
94
+ "name": "targets",
95
+ "description": "Available build targets",
96
+ "command": "cmake --build build --target help 2>/dev/null | head -20",
97
+ "parser": "lines",
98
+ "cacheFor": 30,
99
+ "requiresCmd": "cmake"
100
+ },
101
+ {
102
+ "name": "presets_file",
103
+ "description": "CMake presets configuration",
104
+ "command": "cat CMakePresets.json 2>/dev/null | head -30",
105
+ "parser": "json",
106
+ "cacheFor": 60
107
+ }
108
+ ]
109
+ }
110
+ }
@@ -0,0 +1,92 @@
1
+ {
2
+ "name": "cockroach",
3
+ "description": "CockroachDB command-line interface for cluster management and SQL",
4
+ "category": "Database",
5
+ "platforms": ["linux", "macos", "windows"],
6
+ "shells": ["bash", "zsh", "powershell", "fish"],
7
+ "subcommands": [
8
+ { "name": "sql", "description": "Open SQL shell", "options": [
9
+ { "name": "--url", "description": "Connection URL", "takesValue": true },
10
+ { "name": "--host", "description": "Server host", "takesValue": true },
11
+ { "name": "--port", "description": "Server port", "takesValue": true },
12
+ { "name": "--user", "description": "Username", "takesValue": true },
13
+ { "name": "--database", "shorthand": "-d", "description": "Database name", "takesValue": true },
14
+ { "name": "--execute", "shorthand": "-e", "description": "Execute SQL", "takesValue": true },
15
+ { "name": "--format", "description": "Output format (table, csv, tsv, json, html, raw, records)", "takesValue": true }
16
+ ]},
17
+ { "name": "start", "description": "Start a node", "options": [
18
+ { "name": "--listen-addr", "description": "Listen address", "takesValue": true },
19
+ { "name": "--advertise-addr", "description": "Advertise address", "takesValue": true },
20
+ { "name": "--join", "description": "Join addresses", "takesValue": true },
21
+ { "name": "--store", "description": "Store spec", "takesValue": true },
22
+ { "name": "--insecure", "description": "Insecure mode" },
23
+ { "name": "--certs-dir", "description": "Certs directory", "takesValue": true },
24
+ { "name": "--background", "description": "Run in background" }
25
+ ]},
26
+ { "name": "start-single-node", "description": "Start single-node cluster", "options": [
27
+ { "name": "--listen-addr", "description": "Listen address", "takesValue": true },
28
+ { "name": "--store", "description": "Store spec", "takesValue": true },
29
+ { "name": "--insecure", "description": "Insecure mode" }
30
+ ]},
31
+ { "name": "init", "description": "Initialize a cluster" },
32
+ { "name": "node", "description": "Node management", "subcommands": [
33
+ { "name": "ls", "description": "List nodes" },
34
+ { "name": "status", "description": "Node status" },
35
+ { "name": "decommission", "description": "Decommission nodes" },
36
+ { "name": "recommission", "description": "Recommission nodes" },
37
+ { "name": "drain", "description": "Drain a node" }
38
+ ]},
39
+ { "name": "dump", "description": "Dump SQL tables", "args": [{ "name": "database", "description": "Database name", "required": true }] },
40
+ { "name": "demo", "description": "Start temporary in-memory cluster" },
41
+ { "name": "cert", "description": "Certificate management", "subcommands": [
42
+ { "name": "create-ca", "description": "Create CA cert" },
43
+ { "name": "create-node", "description": "Create node cert" },
44
+ { "name": "create-client", "description": "Create client cert" },
45
+ { "name": "list", "description": "List certificates" }
46
+ ]},
47
+ { "name": "version", "description": "Show version" }
48
+ ],
49
+ "globalOptions": [
50
+ { "name": "--url", "description": "Connection URL", "takesValue": true },
51
+ { "name": "--certs-dir", "description": "Certificate directory", "takesValue": true },
52
+ { "name": "--insecure", "description": "Insecure mode" },
53
+ { "name": "--help", "description": "Show help" }
54
+ ],
55
+ "examples": [
56
+ { "command": "cockroach sql --insecure", "description": "Open SQL shell" },
57
+ { "command": "cockroach start-single-node --insecure --store=node1", "description": "Start single node" },
58
+ { "command": "cockroach sql -e 'SHOW DATABASES' --insecure", "description": "List databases" },
59
+ { "command": "cockroach demo", "description": "Temporary demo cluster" },
60
+ { "command": "cockroach node status --insecure", "description": "Show node status" },
61
+ { "command": "cockroach sql --url 'postgresql://root@localhost:26257/mydb?sslmode=disable'", "description": "Connect via URL" }
62
+ ],
63
+ "relatedCommands": ["psql", "pg_dump"],
64
+ "contextEngine": {
65
+ "detectors": [
66
+ {
67
+ "name": "databases",
68
+ "description": "CockroachDB databases",
69
+ "command": "cockroach sql --insecure -e 'SHOW DATABASES' --format=csv 2>/dev/null | tail -n +2",
70
+ "parser": "lines",
71
+ "cacheFor": 30,
72
+ "requiresCmd": "cockroach"
73
+ },
74
+ {
75
+ "name": "node_status",
76
+ "description": "Cluster node status",
77
+ "command": "cockroach node status --insecure 2>/dev/null | head -10",
78
+ "parser": "text",
79
+ "cacheFor": 30,
80
+ "requiresCmd": "cockroach"
81
+ },
82
+ {
83
+ "name": "version",
84
+ "description": "CockroachDB version",
85
+ "command": "cockroach version 2>/dev/null | head -3",
86
+ "parser": "text",
87
+ "cacheFor": 300,
88
+ "requiresCmd": "cockroach"
89
+ }
90
+ ]
91
+ }
92
+ }
@@ -0,0 +1,94 @@
1
+ {
2
+ "name": "conda",
3
+ "description": "Conda package, dependency, and environment management for any language",
4
+ "category": "Python Ecosystem",
5
+ "platforms": ["linux", "macos", "windows"],
6
+ "shells": ["bash", "zsh", "powershell", "cmd"],
7
+ "subcommands": [
8
+ { "name": "create", "description": "Create a new environment", "options": [{ "name": "--name", "shorthand": "-n", "description": "Environment name", "takesValue": true }, { "name": "--prefix", "shorthand": "-p", "description": "Environment path", "takesValue": true }, { "name": "--file", "description": "Environment file", "takesValue": true }, { "name": "--channel", "shorthand": "-c", "description": "Channel", "takesValue": true }, { "name": "--python", "description": "Python version", "takesValue": true }] },
9
+ { "name": "activate", "description": "Activate an environment", "args": [{ "name": "environment", "description": "Environment name or path", "required": true }] },
10
+ { "name": "deactivate", "description": "Deactivate current environment" },
11
+ { "name": "install", "description": "Install packages", "args": [{ "name": "packages", "description": "Packages to install", "required": false }], "options": [{ "name": "--name", "shorthand": "-n", "description": "Environment name", "takesValue": true }, { "name": "--channel", "shorthand": "-c", "description": "Channel", "takesValue": true }, { "name": "--file", "description": "Requirements file", "takesValue": true }, { "name": "--force-reinstall", "description": "Force reinstall" }] },
12
+ { "name": "remove", "description": "Remove packages", "args": [{ "name": "packages", "description": "Packages to remove", "required": false }], "options": [{ "name": "--name", "shorthand": "-n", "description": "Environment name", "takesValue": true }, { "name": "--all", "description": "Remove entire environment" }] },
13
+ { "name": "update", "description": "Update packages", "args": [{ "name": "packages", "description": "Packages to update", "required": false }], "options": [{ "name": "--name", "shorthand": "-n", "description": "Environment name", "takesValue": true }, { "name": "--all", "description": "Update all packages" }] },
14
+ { "name": "list", "description": "List installed packages", "options": [{ "name": "--name", "shorthand": "-n", "description": "Environment name", "takesValue": true }, { "name": "--export", "description": "Export format" }, { "name": "--revisions", "description": "Show history" }] },
15
+ { "name": "search", "description": "Search for packages", "args": [{ "name": "query", "description": "Search query", "required": true }] },
16
+ { "name": "info", "description": "Show conda information", "options": [{ "name": "--envs", "shorthand": "-e", "description": "List environments" }, { "name": "--json", "description": "JSON output" }] },
17
+ { "name": "env", "description": "Manage environments", "subcommands": [
18
+ { "name": "list", "description": "List environments" },
19
+ { "name": "create", "description": "Create environment from file", "options": [{ "name": "--file", "shorthand": "-f", "description": "Environment file", "takesValue": true }] },
20
+ { "name": "remove", "description": "Remove environment", "options": [{ "name": "--name", "shorthand": "-n", "description": "Environment name", "takesValue": true }] },
21
+ { "name": "export", "description": "Export environment", "options": [{ "name": "--name", "shorthand": "-n", "description": "Environment name", "takesValue": true }, { "name": "--file", "shorthand": "-f", "description": "Output file", "takesValue": true }, { "name": "--from-history", "description": "Only explicitly requested packages" }] },
22
+ { "name": "update", "description": "Update environment from file", "options": [{ "name": "--file", "shorthand": "-f", "description": "Environment file", "takesValue": true }] }
23
+ ]},
24
+ { "name": "config", "description": "Manage configuration", "subcommands": [
25
+ { "name": "--show", "description": "Show all config" },
26
+ { "name": "--set", "description": "Set a config value" },
27
+ { "name": "--add", "description": "Add a config value" },
28
+ { "name": "--remove", "description": "Remove a config value" }
29
+ ]},
30
+ { "name": "clean", "description": "Clean unused packages and caches", "options": [{ "name": "--all", "shorthand": "-a", "description": "Remove all" }, { "name": "--packages", "shorthand": "-p", "description": "Remove unused packages" }, { "name": "--tarballs", "shorthand": "-t", "description": "Remove tarballs" }] },
31
+ { "name": "run", "description": "Run a command in an environment", "args": [{ "name": "command", "description": "Command to run", "required": true }], "options": [{ "name": "--name", "shorthand": "-n", "description": "Environment", "takesValue": true }] }
32
+ ],
33
+ "globalOptions": [
34
+ { "name": "--verbose", "shorthand": "-v", "description": "Verbose output" },
35
+ { "name": "--quiet", "shorthand": "-q", "description": "Quiet output" },
36
+ { "name": "--json", "description": "JSON output" },
37
+ { "name": "--yes", "shorthand": "-y", "description": "Auto-confirm" },
38
+ { "name": "--dry-run", "description": "Preview changes" },
39
+ { "name": "--help", "shorthand": "-h", "description": "Show help" },
40
+ { "name": "--version", "shorthand": "-V", "description": "Show version" }
41
+ ],
42
+ "examples": [
43
+ { "command": "conda create -n myenv python=3.11", "description": "Create environment with Python 3.11" },
44
+ { "command": "conda activate myenv", "description": "Activate environment" },
45
+ { "command": "conda install numpy pandas", "description": "Install packages" },
46
+ { "command": "conda env export > environment.yml", "description": "Export environment" },
47
+ { "command": "conda env create -f environment.yml", "description": "Create from file" },
48
+ { "command": "conda list", "description": "List installed packages" },
49
+ { "command": "conda env list", "description": "List environments" }
50
+ ],
51
+ "relatedCommands": ["pip", "python", "poetry"],
52
+ "contextEngine": {
53
+ "detectors": [
54
+ {
55
+ "name": "environments",
56
+ "description": "Conda environments",
57
+ "command": "conda env list --json 2>/dev/null",
58
+ "parser": "json",
59
+ "cacheFor": 120,
60
+ "requiresCmd": "conda"
61
+ },
62
+ {
63
+ "name": "active_env",
64
+ "description": "Currently active environment",
65
+ "command": "echo $CONDA_DEFAULT_ENV 2>/dev/null",
66
+ "parser": "text",
67
+ "cacheFor": 10
68
+ },
69
+ {
70
+ "name": "installed_packages",
71
+ "description": "Installed packages in active env",
72
+ "command": "conda list --no-banner 2>/dev/null | head -30",
73
+ "parser": "text",
74
+ "cacheFor": 60,
75
+ "requiresCmd": "conda"
76
+ },
77
+ {
78
+ "name": "environment_file",
79
+ "description": "Environment definition file",
80
+ "command": "cat environment.yml 2>/dev/null || cat environment.yaml 2>/dev/null",
81
+ "parser": "text",
82
+ "cacheFor": 30
83
+ },
84
+ {
85
+ "name": "channels",
86
+ "description": "Configured channels",
87
+ "command": "conda config --show channels 2>/dev/null",
88
+ "parser": "text",
89
+ "cacheFor": 300,
90
+ "requiresCmd": "conda"
91
+ }
92
+ ]
93
+ }
94
+ }