@enjoys/context-engine 1.0.7 → 1.0.9

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,66 @@
1
+ {
2
+ "name": "dockerfile",
3
+ "description": "Dockerfile — instructions to build Docker container images",
4
+ "category": "containerization",
5
+ "platforms": ["linux", "macos", "windows"],
6
+ "shells": ["bash", "zsh", "fish", "powershell"],
7
+ "subcommands": [],
8
+ "globalOptions": [],
9
+ "examples": [
10
+ "FROM node:20-alpine",
11
+ "FROM python:3.12-slim AS builder",
12
+ "WORKDIR /app",
13
+ "COPY package*.json ./",
14
+ "COPY . .",
15
+ "RUN npm ci --production",
16
+ "RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*",
17
+ "ENV NODE_ENV=production",
18
+ "EXPOSE 3000",
19
+ "CMD [\"node\", \"server.js\"]",
20
+ "ENTRYPOINT [\"python\", \"app.py\"]",
21
+ "ARG BUILD_VERSION=latest",
22
+ "LABEL maintainer=\"dev@example.com\"",
23
+ "HEALTHCHECK --interval=30s --timeout=3s CMD curl -f http://localhost:3000/health || exit 1",
24
+ "USER node",
25
+ "VOLUME /data",
26
+ "ADD https://example.com/file.tar.gz /tmp/",
27
+ "SHELL [\"/bin/bash\", \"-c\"]",
28
+ "STOPSIGNAL SIGTERM",
29
+ "# Multi-stage: FROM builder AS final"
30
+ ],
31
+ "relatedCommands": ["docker", "docker-compose", "podman", "buildah"],
32
+ "contextEngine": {
33
+ "detectors": [
34
+ {
35
+ "name": "docker_version",
36
+ "description": "Docker engine version",
37
+ "command": "docker version --format '{{.Server.Version}}' 2>/dev/null",
38
+ "parser": "text",
39
+ "cacheFor": 300,
40
+ "requiresCmd": "docker"
41
+ },
42
+ {
43
+ "name": "buildkit_enabled",
44
+ "description": "Check if BuildKit is enabled",
45
+ "command": "echo $DOCKER_BUILDKIT",
46
+ "parser": "text",
47
+ "cacheFor": 300
48
+ },
49
+ {
50
+ "name": "local_images",
51
+ "description": "Local Docker images",
52
+ "command": "docker images --format '{{.Repository}}:{{.Tag}}' 2>/dev/null | head -20",
53
+ "parser": "lines",
54
+ "cacheFor": 60,
55
+ "requiresCmd": "docker"
56
+ },
57
+ {
58
+ "name": "dockerfiles_present",
59
+ "description": "Dockerfiles in current directory",
60
+ "command": "find . -maxdepth 2 -name 'Dockerfile*' -o -name '*.dockerfile' 2>/dev/null | head -10",
61
+ "parser": "lines",
62
+ "cacheFor": 60
63
+ }
64
+ ]
65
+ }
66
+ }
@@ -0,0 +1,66 @@
1
+ {
2
+ "name": "lua",
3
+ "description": "Lua — lightweight, embeddable scripting language",
4
+ "category": "language",
5
+ "platforms": ["linux", "macos", "windows"],
6
+ "shells": ["bash", "zsh", "fish", "powershell"],
7
+ "subcommands": [],
8
+ "globalOptions": [
9
+ { "name": "-e", "description": "Execute a Lua statement", "type": "string" },
10
+ { "name": "-l", "description": "Require library before executing script", "type": "string" },
11
+ { "name": "-i", "description": "Enter interactive mode after executing script" },
12
+ { "name": "-v", "description": "Show version information" },
13
+ { "name": "-E", "description": "Ignore environment variables" },
14
+ { "name": "-W", "description": "Turn warnings on" },
15
+ { "name": "--", "description": "Stop handling options" }
16
+ ],
17
+ "examples": [
18
+ "lua",
19
+ "lua script.lua",
20
+ "lua -e \"print('hello')\"",
21
+ "lua -i script.lua",
22
+ "lua -l mylib script.lua",
23
+ "lua -v",
24
+ "lua -e \"for i=1,10 do print(i) end\"",
25
+ "lua -e \"dofile('script.lua')\"",
26
+ "lua -W script.lua",
27
+ "lua -E script.lua"
28
+ ],
29
+ "relatedCommands": ["luac", "luajit", "python", "node", "ruby"],
30
+ "contextEngine": {
31
+ "detectors": [
32
+ {
33
+ "name": "version",
34
+ "description": "Lua interpreter version",
35
+ "command": "lua -v 2>&1 | head -1",
36
+ "parser": "text",
37
+ "cacheFor": 300,
38
+ "requiresCmd": "lua"
39
+ },
40
+ {
41
+ "name": "lua_path",
42
+ "description": "Lua module search path",
43
+ "command": "lua -e \"print(package.path)\" 2>/dev/null",
44
+ "parser": "text",
45
+ "cacheFor": 120,
46
+ "requiresCmd": "lua"
47
+ },
48
+ {
49
+ "name": "lua_cpath",
50
+ "description": "Lua C module search path",
51
+ "command": "lua -e \"print(package.cpath)\" 2>/dev/null",
52
+ "parser": "text",
53
+ "cacheFor": 120,
54
+ "requiresCmd": "lua"
55
+ },
56
+ {
57
+ "name": "luarocks_list",
58
+ "description": "Installed LuaRocks packages",
59
+ "command": "luarocks list --porcelain 2>/dev/null | head -20",
60
+ "parser": "lines",
61
+ "cacheFor": 120,
62
+ "requiresCmd": "luarocks"
63
+ }
64
+ ]
65
+ }
66
+ }
@@ -2,17 +2,22 @@
2
2
  "files": [
3
3
  "adb.json",
4
4
  "air.json",
5
+ "alembic.json",
5
6
  "ansible.json",
6
7
  "apachectl.json",
7
8
  "apt-get.json",
8
9
  "apt.json",
9
10
  "artisan.json",
11
+ "atlas.json",
12
+ "auth0.json",
10
13
  "awk.json",
11
14
  "aws-vault.json",
12
15
  "aws.json",
13
16
  "az.json",
17
+ "bat.json",
14
18
  "bazel.json",
15
19
  "brew.json",
20
+ "btop.json",
16
21
  "bun.json",
17
22
  "bundle.json",
18
23
  "caddy.json",
@@ -34,20 +39,26 @@
34
39
  "curl.json",
35
40
  "cypress.json",
36
41
  "dart.json",
42
+ "dbmate.json",
37
43
  "deno.json",
38
44
  "django-admin.json",
39
45
  "dnf.json",
40
46
  "docker-compose.json",
41
47
  "docker.json",
48
+ "dockerfile.json",
42
49
  "doctl.json",
50
+ "drizzle-kit.json",
43
51
  "eslint.json",
44
52
  "expo.json",
45
53
  "fastlane.json",
54
+ "fd.json",
46
55
  "find.json",
47
56
  "firebase.json",
48
57
  "flask.json",
49
58
  "flutter.json",
50
59
  "flyctl.json",
60
+ "flyway.json",
61
+ "fzf.json",
51
62
  "gcloud.json",
52
63
  "gem.json",
53
64
  "gh.json",
@@ -61,6 +72,7 @@
61
72
  "gunicorn.json",
62
73
  "helm.json",
63
74
  "hg.json",
75
+ "htop.json",
64
76
  "httpd.json",
65
77
  "influx.json",
66
78
  "iptables.json",
@@ -74,8 +86,10 @@
74
86
  "kubectl.json",
75
87
  "linode-cli.json",
76
88
  "linux.json",
89
+ "liquibase.json",
77
90
  "locust.json",
78
91
  "ls.json",
92
+ "lua.json",
79
93
  "make.json",
80
94
  "minikube.json",
81
95
  "mocha.json",
@@ -95,6 +109,7 @@
95
109
  "npm.json",
96
110
  "npx.json",
97
111
  "nuxt.json",
112
+ "nvim.json",
98
113
  "nx.json",
99
114
  "openssl.json",
100
115
  "packer.json",
@@ -119,16 +134,24 @@
119
134
  "python.json",
120
135
  "rails.json",
121
136
  "railway.json",
137
+ "rake.json",
122
138
  "react-native.json",
123
139
  "redis-cli.json",
124
140
  "render.json",
141
+ "rg.json",
125
142
  "rm.json",
143
+ "rspec.json",
126
144
  "rsync.json",
127
145
  "ruby.json",
128
146
  "rust.json",
129
147
  "rustup.json",
130
148
  "scp.json",
149
+ "screen.json",
131
150
  "sed.json",
151
+ "sequelize.json",
152
+ "snyk.json",
153
+ "sonar-scanner.json",
154
+ "sql.json",
132
155
  "sqlite3.json",
133
156
  "ssh-keygen.json",
134
157
  "ssh.json",
@@ -136,6 +159,7 @@
136
159
  "sudo.json",
137
160
  "supabase.json",
138
161
  "svn.json",
162
+ "symfony.json",
139
163
  "systemctl.json",
140
164
  "systemd-analyze.json",
141
165
  "tar.json",
@@ -143,13 +167,18 @@
143
167
  "terraform.json",
144
168
  "terragrunt.json",
145
169
  "tmux.json",
170
+ "top.json",
171
+ "trivy.json",
146
172
  "tsc.json",
147
173
  "turbo.json",
174
+ "twilio.json",
175
+ "typeorm.json",
148
176
  "ufw.json",
149
177
  "unzip.json",
150
178
  "uvicorn.json",
151
179
  "vault.json",
152
180
  "vercel.json",
181
+ "vim.json",
153
182
  "vite.json",
154
183
  "vitest.json",
155
184
  "vue.json",
@@ -157,6 +186,7 @@
157
186
  "wget.json",
158
187
  "winget.json",
159
188
  "wireshark.json",
189
+ "wp.json",
160
190
  "xcodebuild.json",
161
191
  "yarn.json",
162
192
  "yq.json",
@@ -166,7 +196,7 @@
166
196
  ],
167
197
  "context": [
168
198
  {
169
- "category": "\u2601\ufe0f Cloud CLIs",
199
+ "category": "☁️ Cloud CLIs",
170
200
  "context": [
171
201
  "Logged-in account",
172
202
  "Active project",
@@ -194,7 +224,7 @@
194
224
  ]
195
225
  },
196
226
  {
197
- "category": "\ud83c\udf31 Version Control",
227
+ "category": "🌱 Version Control",
198
228
  "context": [
199
229
  "Current branch",
200
230
  "Local branches",
@@ -213,7 +243,7 @@
213
243
  ]
214
244
  },
215
245
  {
216
- "category": "\ud83d\udce6 Node Ecosystem",
246
+ "category": "📦 Node Ecosystem",
217
247
  "context": [
218
248
  "package.json scripts",
219
249
  "Installed dependencies",
@@ -240,7 +270,7 @@
240
270
  ]
241
271
  },
242
272
  {
243
- "category": "\ud83d\udc0d Python Ecosystem",
273
+ "category": "🐍 Python Ecosystem",
244
274
  "context": [
245
275
  "virtualenv",
246
276
  "requirements.txt",
@@ -264,7 +294,7 @@
264
294
  ]
265
295
  },
266
296
  {
267
- "category": "\ud83e\udd80 Rust Ecosystem",
297
+ "category": "🦀 Rust Ecosystem",
268
298
  "context": [
269
299
  "Cargo.toml",
270
300
  "Features",
@@ -279,7 +309,7 @@
279
309
  ]
280
310
  },
281
311
  {
282
- "category": "\ud83d\udc39 Go Ecosystem",
312
+ "category": "🐹 Go Ecosystem",
283
313
  "context": [
284
314
  "go.mod",
285
315
  "Modules",
@@ -293,7 +323,7 @@
293
323
  ]
294
324
  },
295
325
  {
296
- "category": "\ud83d\udc18 Databases",
326
+ "category": "🐘 Databases",
297
327
  "context": [
298
328
  "Connected DB",
299
329
  "Schemas",
@@ -316,7 +346,7 @@
316
346
  ]
317
347
  },
318
348
  {
319
- "category": "\ud83d\udd10 DevOps / Infra",
349
+ "category": "🔐 DevOps / Infra",
320
350
  "context": [
321
351
  "tfstate",
322
352
  "Modules",
@@ -336,7 +366,7 @@
336
366
  ]
337
367
  },
338
368
  {
339
- "category": "\ud83d\udc33 Containers / Kubernetes",
369
+ "category": "🐳 Containers / Kubernetes",
340
370
  "context": [
341
371
  "Containers",
342
372
  "Images",
@@ -360,7 +390,7 @@
360
390
  ]
361
391
  },
362
392
  {
363
- "category": "\ud83d\udd27 Build Tools",
393
+ "category": "🔧 Build Tools",
364
394
  "context": [
365
395
  "Makefile targets",
366
396
  "Gradle tasks",
@@ -377,7 +407,7 @@
377
407
  ]
378
408
  },
379
409
  {
380
- "category": "\u2699\ufe0f Linux Coreutils (Smart FS Context)",
410
+ "category": "⚙️ Linux Coreutils (Smart FS Context)",
381
411
  "context": [
382
412
  "Files",
383
413
  "Directories",
@@ -421,7 +451,7 @@
421
451
  ]
422
452
  },
423
453
  {
424
- "category": "\ud83e\uddea Testing Tools",
454
+ "category": "🧪 Testing Tools",
425
455
  "context": [
426
456
  "Test files",
427
457
  "Config files",
@@ -438,7 +468,7 @@
438
468
  ]
439
469
  },
440
470
  {
441
- "category": "\ud83d\udce1 Networking / Security",
471
+ "category": "📡 Networking / Security",
442
472
  "context": [
443
473
  "Open ports",
444
474
  "Certificates",
@@ -457,7 +487,7 @@
457
487
  ]
458
488
  },
459
489
  {
460
- "category": "\ud83d\udda5 Package Managers (System)",
490
+ "category": "🖥 Package Managers (System)",
461
491
  "context": [
462
492
  "Installed packages",
463
493
  "Available packages",
@@ -475,7 +505,7 @@
475
505
  ]
476
506
  },
477
507
  {
478
- "category": "\u2615 Java Ecosystem",
508
+ "category": " Java Ecosystem",
479
509
  "context": [
480
510
  "Classes",
481
511
  "Jar files"
@@ -485,7 +515,7 @@
485
515
  ]
486
516
  },
487
517
  {
488
- "category": "\ud83d\udc18 PHP & Ruby Ecosystems",
518
+ "category": "🐘 PHP & Ruby Ecosystems",
489
519
  "context": [
490
520
  "PHP version",
491
521
  "Modules",
@@ -510,7 +540,7 @@
510
540
  ]
511
541
  },
512
542
  {
513
- "category": "\ud83d\udee0\ufe0f Text Processing & Utilities",
543
+ "category": "🛠️ Text Processing & Utilities",
514
544
  "context": [
515
545
  "JSON files",
516
546
  "Parsed outputs",
@@ -527,7 +557,7 @@
527
557
  ]
528
558
  },
529
559
  {
530
- "category": "\ud83d\udcf1 Mobile Development",
560
+ "category": "📱 Mobile Development",
531
561
  "context": [
532
562
  "Connected Devices",
533
563
  "Flutter packages",
@@ -557,7 +587,7 @@
557
587
  ]
558
588
  },
559
589
  {
560
- "category": "\ud83d\uddc4\ufe0f Database ORMs & Migrations",
590
+ "category": "🗄️ Database ORMs & Migrations",
561
591
  "context": [
562
592
  "Prisma Schema",
563
593
  "Migrations"
@@ -567,7 +597,7 @@
567
597
  ]
568
598
  },
569
599
  {
570
- "category": "\ud83d\udd10 Security & APIs",
600
+ "category": "🔐 Security & APIs",
571
601
  "context": [
572
602
  "Webhook events",
573
603
  "Stripe config"
@@ -577,7 +607,7 @@
577
607
  ]
578
608
  },
579
609
  {
580
- "category": "\u2699\ufe0f Node Version & Process Managers",
610
+ "category": "⚙️ Node Version & Process Managers",
581
611
  "context": [
582
612
  "Running processes",
583
613
  "Daemon logs"
@@ -587,7 +617,7 @@
587
617
  ]
588
618
  },
589
619
  {
590
- "category": "\ud83d\uddbc\ufe0f Frontend Frameworks",
620
+ "category": "🖼️ Frontend Frameworks",
591
621
  "context": [
592
622
  "Angular projects",
593
623
  "Components",
@@ -603,7 +633,7 @@
603
633
  ]
604
634
  },
605
635
  {
606
- "category": "\ud83d\udcf1 Mobile Development CLIs",
636
+ "category": "📱 Mobile Development CLIs",
607
637
  "context": [],
608
638
  "files": [
609
639
  "flutter.json",
@@ -615,7 +645,7 @@
615
645
  ]
616
646
  },
617
647
  {
618
- "category": "\ud83c\udf10 API, Security & SaaS CLIs",
648
+ "category": "🌐 API, Security & SaaS CLIs",
619
649
  "context": [],
620
650
  "files": [
621
651
  "stripe.json"
@@ -0,0 +1,34 @@
1
+ {
2
+ "name": "sql",
3
+ "description": "SQL — Structured Query Language for relational databases",
4
+ "category": "database",
5
+ "platforms": ["linux", "macos", "windows"],
6
+ "shells": ["bash", "zsh", "fish", "powershell"],
7
+ "subcommands": [],
8
+ "globalOptions": [],
9
+ "examples": [
10
+ "SELECT * FROM users;",
11
+ "SELECT id, name FROM users WHERE active = 1;",
12
+ "INSERT INTO users (name, email) VALUES ('John', 'john@example.com');",
13
+ "UPDATE users SET active = 0 WHERE id = 5;",
14
+ "DELETE FROM users WHERE id = 5;",
15
+ "CREATE TABLE users (id INT PRIMARY KEY, name VARCHAR(100));",
16
+ "ALTER TABLE users ADD COLUMN email VARCHAR(255);",
17
+ "DROP TABLE IF EXISTS temp_users;",
18
+ "CREATE INDEX idx_email ON users(email);",
19
+ "SELECT u.name, o.total FROM users u JOIN orders o ON u.id = o.user_id;",
20
+ "SELECT department, COUNT(*) FROM employees GROUP BY department HAVING COUNT(*) > 5;",
21
+ "SELECT * FROM users ORDER BY created_at DESC LIMIT 10;",
22
+ "BEGIN TRANSACTION; UPDATE accounts SET balance = balance - 100 WHERE id = 1; COMMIT;",
23
+ "CREATE VIEW active_users AS SELECT * FROM users WHERE active = 1;",
24
+ "EXPLAIN ANALYZE SELECT * FROM users WHERE email = 'test@example.com';",
25
+ "WITH cte AS (SELECT * FROM users WHERE active = 1) SELECT * FROM cte;",
26
+ "SELECT COALESCE(nickname, name) AS display_name FROM users;",
27
+ "GRANT SELECT, INSERT ON users TO readonly_user;",
28
+ "CREATE TRIGGER log_update AFTER UPDATE ON users FOR EACH ROW EXECUTE FUNCTION log_changes();"
29
+ ],
30
+ "relatedCommands": ["psql", "mysql", "sqlite3", "mongosh", "redis-cli"],
31
+ "contextEngine": {
32
+ "detectors": []
33
+ }
34
+ }