@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,92 @@
1
+ {
2
+ "name": "hg",
3
+ "description": "Mercurial distributed version control system",
4
+ "category": "Version Control",
5
+ "platforms": ["linux", "macos", "windows"],
6
+ "shells": ["bash", "zsh", "powershell", "cmd"],
7
+ "subcommands": [
8
+ { "name": "clone", "description": "Clone a repository", "args": [{ "name": "source", "description": "Source repository", "required": true }, { "name": "dest", "description": "Destination directory", "required": false }], "options": [{ "name": "--branch", "shorthand": "-b", "description": "Clone specific branch", "takesValue": true }, { "name": "--rev", "shorthand": "-r", "description": "Clone up to revision", "takesValue": true }] },
9
+ { "name": "init", "description": "Create a new repository", "args": [{ "name": "dest", "description": "Directory", "required": false }] },
10
+ { "name": "add", "description": "Add files to tracking", "args": [{ "name": "files", "description": "Files to add", "required": false }] },
11
+ { "name": "remove", "description": "Remove files from tracking", "args": [{ "name": "files", "description": "Files to remove", "required": true }], "options": [{ "name": "--force", "shorthand": "-f", "description": "Force removal" }] },
12
+ { "name": "commit", "description": "Commit changes", "options": [{ "name": "--message", "shorthand": "-m", "description": "Commit message", "takesValue": true }, { "name": "--user", "shorthand": "-u", "description": "Author", "takesValue": true }, { "name": "--addremove", "shorthand": "-A", "description": "Auto add/remove" }] },
13
+ { "name": "status", "description": "Show changed files", "options": [{ "name": "--all", "shorthand": "-A", "description": "Show all files" }] },
14
+ { "name": "diff", "description": "Show differences", "args": [{ "name": "files", "description": "Files to diff", "required": false }], "options": [{ "name": "--rev", "shorthand": "-r", "description": "Revision", "takesValue": true }, { "name": "--stat", "description": "Show summary" }] },
15
+ { "name": "log", "description": "Show revision history", "options": [{ "name": "--limit", "shorthand": "-l", "description": "Limit entries", "takesValue": true }, { "name": "--rev", "shorthand": "-r", "description": "Show range", "takesValue": true }, { "name": "--template", "shorthand": "-T", "description": "Output template", "takesValue": true }, { "name": "--graph", "shorthand": "-G", "description": "Show graph" }] },
16
+ { "name": "pull", "description": "Pull changes from remote", "args": [{ "name": "source", "description": "Source", "required": false }], "options": [{ "name": "--update", "shorthand": "-u", "description": "Update after pull" }, { "name": "--branch", "shorthand": "-b", "description": "Branch to pull", "takesValue": true }] },
17
+ { "name": "push", "description": "Push changes to remote", "args": [{ "name": "dest", "description": "Destination", "required": false }], "options": [{ "name": "--force", "shorthand": "-f", "description": "Force push" }, { "name": "--branch", "shorthand": "-b", "description": "Branch to push", "takesValue": true }] },
18
+ { "name": "update", "description": "Update working directory", "args": [{ "name": "rev", "description": "Revision to update to", "required": false }], "options": [{ "name": "--clean", "shorthand": "-C", "description": "Discard local changes" }] },
19
+ { "name": "merge", "description": "Merge branches", "args": [{ "name": "rev", "description": "Revision to merge", "required": false }], "options": [{ "name": "--tool", "shorthand": "-t", "description": "Merge tool", "takesValue": true }] },
20
+ { "name": "branch", "description": "Set or show branch name", "args": [{ "name": "name", "description": "Branch name", "required": false }] },
21
+ { "name": "branches", "description": "List branches" },
22
+ { "name": "heads", "description": "Show branch heads" },
23
+ { "name": "tag", "description": "Add a tag", "args": [{ "name": "name", "description": "Tag name", "required": true }], "options": [{ "name": "--rev", "shorthand": "-r", "description": "Revision to tag", "takesValue": true }] },
24
+ { "name": "tags", "description": "List tags" },
25
+ { "name": "bookmark", "description": "Manage bookmarks", "args": [{ "name": "name", "description": "Bookmark name", "required": false }], "options": [{ "name": "--delete", "shorthand": "-d", "description": "Delete bookmark" }, { "name": "--rename", "shorthand": "-m", "description": "Rename", "takesValue": true }] },
26
+ { "name": "revert", "description": "Revert files to previous state", "args": [{ "name": "files", "description": "Files to revert", "required": true }], "options": [{ "name": "--all", "shorthand": "-a", "description": "Revert all" }] },
27
+ { "name": "resolve", "description": "Resolve merge conflicts", "options": [{ "name": "--mark", "shorthand": "-m", "description": "Mark resolved" }, { "name": "--list", "shorthand": "-l", "description": "List conflicts" }] },
28
+ { "name": "annotate", "description": "Show line-by-line annotations", "args": [{ "name": "file", "description": "File to annotate", "required": true }] },
29
+ { "name": "export", "description": "Export patches", "args": [{ "name": "rev", "description": "Revision", "required": true }] },
30
+ { "name": "import", "description": "Import patches", "args": [{ "name": "patch", "description": "Patch file", "required": true }] },
31
+ { "name": "serve", "description": "Start HTTP server", "options": [{ "name": "--port", "shorthand": "-p", "description": "Port", "takesValue": true }] }
32
+ ],
33
+ "globalOptions": [
34
+ { "name": "--repository", "shorthand": "-R", "description": "Repository path", "takesValue": true },
35
+ { "name": "--verbose", "shorthand": "-v", "description": "Verbose output" },
36
+ { "name": "--quiet", "shorthand": "-q", "description": "Quiet output" },
37
+ { "name": "--config", "description": "Set config option", "takesValue": true },
38
+ { "name": "--help", "shorthand": "-h", "description": "Show help" }
39
+ ],
40
+ "examples": [
41
+ { "command": "hg clone https://example.com/repo", "description": "Clone a repository" },
42
+ { "command": "hg commit -m 'Fix issue'", "description": "Commit changes" },
43
+ { "command": "hg log -l 5 -G", "description": "Show last 5 commits with graph" },
44
+ { "command": "hg pull -u", "description": "Pull and update" },
45
+ { "command": "hg branch feature-x", "description": "Create a named branch" }
46
+ ],
47
+ "relatedCommands": ["git", "svn"],
48
+ "contextEngine": {
49
+ "detectors": [
50
+ {
51
+ "name": "current_branch",
52
+ "description": "Current branch",
53
+ "command": "hg branch 2>/dev/null",
54
+ "parser": "text",
55
+ "cacheFor": 10,
56
+ "requiresCmd": "hg"
57
+ },
58
+ {
59
+ "name": "branches",
60
+ "description": "All branches",
61
+ "command": "hg branches 2>/dev/null",
62
+ "parser": "lines",
63
+ "cacheFor": 30,
64
+ "requiresCmd": "hg"
65
+ },
66
+ {
67
+ "name": "status",
68
+ "description": "Working directory status",
69
+ "command": "hg status 2>/dev/null | head -20",
70
+ "parser": "text",
71
+ "cacheFor": 10,
72
+ "requiresCmd": "hg"
73
+ },
74
+ {
75
+ "name": "tags",
76
+ "description": "Repository tags",
77
+ "command": "hg tags 2>/dev/null",
78
+ "parser": "lines",
79
+ "cacheFor": 60,
80
+ "requiresCmd": "hg"
81
+ },
82
+ {
83
+ "name": "bookmarks",
84
+ "description": "Bookmarks",
85
+ "command": "hg bookmarks 2>/dev/null",
86
+ "parser": "lines",
87
+ "cacheFor": 30,
88
+ "requiresCmd": "hg"
89
+ }
90
+ ]
91
+ }
92
+ }
@@ -0,0 +1,147 @@
1
+ {
2
+ "name": "httpd",
3
+ "description": "Apache HTTP Server — the world's most used web server (also invoked as apache2 on Debian/Ubuntu)",
4
+ "category": "web-server",
5
+ "platforms": ["linux", "macos"],
6
+ "shells": ["bash", "zsh", "fish"],
7
+ "subcommands": [],
8
+ "globalOptions": [
9
+ { "name": "-t", "description": "Test configuration syntax" },
10
+ { "name": "-S", "description": "Show parsed vhost settings" },
11
+ { "name": "-M", "description": "List loaded modules" },
12
+ { "name": "-l", "description": "List compiled-in modules" },
13
+ { "name": "-v", "description": "Show version" },
14
+ { "name": "-V", "description": "Show version and build parameters" },
15
+ { "name": "-f", "description": "Specify an alternate config file", "type": "file" },
16
+ { "name": "-c", "description": "Execute directive before reading config", "type": "string" },
17
+ { "name": "-D", "description": "Define a parameter for <IfDefine>", "type": "string" },
18
+ { "name": "-k", "description": "Send signal: start, restart, graceful, graceful-stop, stop", "type": "string" },
19
+ { "name": "-e", "description": "Set startup log level (debug, info, notice, warn, error, crit)", "type": "string" },
20
+ { "name": "-X", "description": "Debug mode (single worker, no detach)" }
21
+ ],
22
+ "examples": [
23
+ "httpd -t",
24
+ "httpd -S",
25
+ "httpd -M",
26
+ "httpd -v",
27
+ "httpd -V",
28
+ "httpd -k restart",
29
+ "httpd -k graceful",
30
+ "httpd -k stop",
31
+ "apachectl configtest",
32
+ "apachectl graceful",
33
+ "apachectl restart",
34
+ "apachectl stop",
35
+ "apachectl start",
36
+ "sudo systemctl start httpd",
37
+ "sudo systemctl start apache2",
38
+ "sudo systemctl reload apache2",
39
+ "sudo a2ensite mysite.conf",
40
+ "sudo a2dissite default",
41
+ "sudo a2enmod rewrite",
42
+ "sudo a2enmod ssl",
43
+ "sudo a2enmod proxy",
44
+ "sudo a2dismod status"
45
+ ],
46
+ "relatedCommands": ["nginx", "caddy", "certbot", "systemctl", "openssl"],
47
+ "contextEngine": {
48
+ "detectors": [
49
+ {
50
+ "name": "running_status",
51
+ "description": "Check if Apache is currently running",
52
+ "command": "(pgrep -x httpd || pgrep -x apache2) >/dev/null 2>&1 && echo 'running' || echo 'stopped'",
53
+ "parser": "text",
54
+ "cacheFor": 5,
55
+ "requiresCmd": "httpd"
56
+ },
57
+ {
58
+ "name": "apache_version",
59
+ "description": "Installed Apache version",
60
+ "command": "httpd -v 2>/dev/null || apache2 -v 2>/dev/null",
61
+ "parser": "text",
62
+ "cacheFor": 3600,
63
+ "requiresCmd": "httpd"
64
+ },
65
+ {
66
+ "name": "loaded_modules",
67
+ "description": "Currently loaded Apache modules",
68
+ "command": "httpd -M 2>/dev/null || apache2ctl -M 2>/dev/null | grep -v 'Loaded Modules'",
69
+ "parser": "lines",
70
+ "cacheFor": 120,
71
+ "requiresCmd": "httpd"
72
+ },
73
+ {
74
+ "name": "vhost_config",
75
+ "description": "Parsed virtual host settings",
76
+ "command": "httpd -S 2>/dev/null || apache2ctl -S 2>/dev/null",
77
+ "parser": "lines",
78
+ "cacheFor": 30,
79
+ "requiresCmd": "httpd"
80
+ },
81
+ {
82
+ "name": "config_test",
83
+ "description": "Validate current Apache configuration",
84
+ "command": "httpd -t 2>&1 || apachectl configtest 2>&1",
85
+ "parser": "text",
86
+ "cacheFor": 10,
87
+ "requiresCmd": "httpd"
88
+ },
89
+ {
90
+ "name": "enabled_sites",
91
+ "description": "Enabled site configurations (Debian/Ubuntu)",
92
+ "command": "ls /etc/apache2/sites-enabled/ 2>/dev/null || ls /etc/httpd/conf.d/*.conf 2>/dev/null | xargs -I{} basename {}",
93
+ "parser": "lines",
94
+ "cacheFor": 30,
95
+ "requiresCmd": "httpd"
96
+ },
97
+ {
98
+ "name": "available_sites",
99
+ "description": "Available site configurations (Debian/Ubuntu)",
100
+ "command": "ls /etc/apache2/sites-available/ 2>/dev/null",
101
+ "parser": "lines",
102
+ "cacheFor": 30,
103
+ "requiresCmd": "httpd"
104
+ },
105
+ {
106
+ "name": "enabled_modules",
107
+ "description": "Enabled Apache modules (Debian/Ubuntu)",
108
+ "command": "ls /etc/apache2/mods-enabled/*.load 2>/dev/null | xargs -I{} basename {} .load | sort",
109
+ "parser": "lines",
110
+ "cacheFor": 120,
111
+ "requiresCmd": "httpd"
112
+ },
113
+ {
114
+ "name": "server_names",
115
+ "description": "Configured ServerName directives",
116
+ "command": "grep -rh 'ServerName\\|ServerAlias' /etc/apache2/sites-enabled/ /etc/httpd/conf.d/ 2>/dev/null | awk '{print $2}' | sort -u",
117
+ "parser": "lines",
118
+ "cacheFor": 30,
119
+ "requiresCmd": "httpd"
120
+ },
121
+ {
122
+ "name": "listen_ports",
123
+ "description": "Configured Listen ports",
124
+ "command": "grep -rh '^Listen' /etc/apache2/ports.conf /etc/httpd/conf/httpd.conf 2>/dev/null | awk '{print $2}' | sort -u",
125
+ "parser": "lines",
126
+ "cacheFor": 60,
127
+ "requiresCmd": "httpd"
128
+ },
129
+ {
130
+ "name": "recent_errors",
131
+ "description": "Last 15 lines of Apache error log",
132
+ "command": "tail -15 /var/log/apache2/error.log 2>/dev/null || tail -15 /var/log/httpd/error_log 2>/dev/null",
133
+ "parser": "lines",
134
+ "cacheFor": 10,
135
+ "requiresCmd": "httpd"
136
+ },
137
+ {
138
+ "name": "document_roots",
139
+ "description": "Configured DocumentRoot directories",
140
+ "command": "grep -rh 'DocumentRoot' /etc/apache2/sites-enabled/ /etc/httpd/conf.d/ /etc/httpd/conf/httpd.conf 2>/dev/null | awk '{print $2}' | tr -d '\"' | sort -u",
141
+ "parser": "lines",
142
+ "cacheFor": 60,
143
+ "requiresCmd": "httpd"
144
+ }
145
+ ]
146
+ }
147
+ }
@@ -0,0 +1,119 @@
1
+ {
2
+ "name": "influx",
3
+ "description": "InfluxDB CLI for managing InfluxDB instances and time-series data",
4
+ "category": "Database",
5
+ "platforms": ["linux", "macos", "windows"],
6
+ "shells": ["bash", "zsh", "powershell", "fish"],
7
+ "subcommands": [
8
+ { "name": "setup", "description": "Initial InfluxDB setup" },
9
+ { "name": "write", "description": "Write data points", "options": [
10
+ { "name": "--bucket", "shorthand": "-b", "description": "Bucket name", "takesValue": true },
11
+ { "name": "--org", "shorthand": "-o", "description": "Organization", "takesValue": true },
12
+ { "name": "--precision", "shorthand": "-p", "description": "Timestamp precision (ns, us, ms, s)", "takesValue": true },
13
+ { "name": "--file", "shorthand": "-f", "description": "Line protocol file", "takesValue": true },
14
+ { "name": "--format", "description": "Input format (lp, csv)", "takesValue": true }
15
+ ]},
16
+ { "name": "query", "description": "Execute a Flux query", "options": [
17
+ { "name": "--org", "shorthand": "-o", "description": "Organization", "takesValue": true },
18
+ { "name": "--file", "shorthand": "-f", "description": "Query file", "takesValue": true },
19
+ { "name": "--raw", "shorthand": "-r", "description": "Raw output" }
20
+ ]},
21
+ { "name": "bucket", "description": "Bucket management", "subcommands": [
22
+ { "name": "create", "description": "Create bucket", "options": [{ "name": "--name", "shorthand": "-n", "description": "Name", "takesValue": true }, { "name": "--retention", "shorthand": "-r", "description": "Retention period", "takesValue": true }] },
23
+ { "name": "delete", "description": "Delete bucket" },
24
+ { "name": "list", "description": "List buckets" },
25
+ { "name": "update", "description": "Update bucket" }
26
+ ]},
27
+ { "name": "org", "description": "Organization management", "subcommands": [
28
+ { "name": "create", "description": "Create organization" },
29
+ { "name": "delete", "description": "Delete organization" },
30
+ { "name": "list", "description": "List organizations" }
31
+ ]},
32
+ { "name": "auth", "description": "Token management", "subcommands": [
33
+ { "name": "create", "description": "Create token" },
34
+ { "name": "delete", "description": "Delete token" },
35
+ { "name": "list", "description": "List tokens" }
36
+ ]},
37
+ { "name": "task", "description": "Task management", "subcommands": [
38
+ { "name": "create", "description": "Create task" },
39
+ { "name": "delete", "description": "Delete task" },
40
+ { "name": "list", "description": "List tasks" },
41
+ { "name": "run", "description": "Run a task" },
42
+ { "name": "log", "description": "Show task logs" }
43
+ ]},
44
+ { "name": "export", "description": "Export resources as templates" },
45
+ { "name": "delete", "description": "Delete data points", "options": [
46
+ { "name": "--bucket", "shorthand": "-b", "description": "Bucket", "takesValue": true },
47
+ { "name": "--start", "description": "Start time", "takesValue": true },
48
+ { "name": "--stop", "description": "Stop time", "takesValue": true },
49
+ { "name": "--predicate", "shorthand": "-p", "description": "Predicate filter", "takesValue": true }
50
+ ]},
51
+ { "name": "ping", "description": "Check InfluxDB health" },
52
+ { "name": "config", "description": "Manage CLI configs", "subcommands": [
53
+ { "name": "create", "description": "Create config" },
54
+ { "name": "delete", "description": "Delete config" },
55
+ { "name": "list", "description": "List configs" },
56
+ { "name": "set", "description": "Set active config" }
57
+ ]},
58
+ { "name": "backup", "description": "Backup database" },
59
+ { "name": "restore", "description": "Restore database" },
60
+ { "name": "v1", "description": "InfluxDB 1.x compatibility", "subcommands": [
61
+ { "name": "dbrp", "description": "DBRP mapping management" },
62
+ { "name": "auth", "description": "V1 auth management" },
63
+ { "name": "shell", "description": "V1 InfluxQL shell" }
64
+ ]}
65
+ ],
66
+ "globalOptions": [
67
+ { "name": "--host", "description": "InfluxDB host URL", "takesValue": true },
68
+ { "name": "--token", "shorthand": "-t", "description": "API token", "takesValue": true },
69
+ { "name": "--org", "shorthand": "-o", "description": "Organization name", "takesValue": true },
70
+ { "name": "--configs-path", "description": "Configs directory path", "takesValue": true },
71
+ { "name": "--active-config", "shorthand": "-c", "description": "Config profile to use", "takesValue": true },
72
+ { "name": "--help", "shorthand": "-h", "description": "Show help" }
73
+ ],
74
+ "examples": [
75
+ { "command": "influx setup", "description": "Initial setup" },
76
+ { "command": "influx bucket list", "description": "List buckets" },
77
+ { "command": "influx write -b mybucket 'cpu,host=server01 value=0.64'", "description": "Write data point" },
78
+ { "command": "influx query 'from(bucket:\"mybucket\") |> range(start:-1h)'", "description": "Execute Flux query" },
79
+ { "command": "influx ping", "description": "Health check" },
80
+ { "command": "influx backup ./backup-dir", "description": "Backup database" }
81
+ ],
82
+ "relatedCommands": ["psql", "redis-cli"],
83
+ "contextEngine": {
84
+ "detectors": [
85
+ {
86
+ "name": "buckets",
87
+ "description": "Available buckets",
88
+ "command": "influx bucket list --json 2>/dev/null | head -30",
89
+ "parser": "json",
90
+ "cacheFor": 30,
91
+ "requiresCmd": "influx"
92
+ },
93
+ {
94
+ "name": "orgs",
95
+ "description": "Organizations",
96
+ "command": "influx org list --json 2>/dev/null",
97
+ "parser": "json",
98
+ "cacheFor": 120,
99
+ "requiresCmd": "influx"
100
+ },
101
+ {
102
+ "name": "health",
103
+ "description": "Server health",
104
+ "command": "influx ping 2>/dev/null",
105
+ "parser": "text",
106
+ "cacheFor": 15,
107
+ "requiresCmd": "influx"
108
+ },
109
+ {
110
+ "name": "configs",
111
+ "description": "CLI configurations",
112
+ "command": "influx config list --json 2>/dev/null",
113
+ "parser": "json",
114
+ "cacheFor": 120,
115
+ "requiresCmd": "influx"
116
+ }
117
+ ]
118
+ }
119
+ }
@@ -0,0 +1,86 @@
1
+ {
2
+ "name": "iptables",
3
+ "description": "Linux kernel packet filter administration tool",
4
+ "category": "Linux Coreutils",
5
+ "platforms": ["linux"],
6
+ "shells": ["bash", "zsh", "fish"],
7
+ "subcommands": [],
8
+ "globalOptions": [
9
+ { "name": "--append", "shorthand": "-A", "description": "Append rule to chain", "takesValue": true },
10
+ { "name": "--delete", "shorthand": "-D", "description": "Delete rule from chain", "takesValue": true },
11
+ { "name": "--insert", "shorthand": "-I", "description": "Insert rule at position", "takesValue": true },
12
+ { "name": "--replace", "shorthand": "-R", "description": "Replace rule at position", "takesValue": true },
13
+ { "name": "--list", "shorthand": "-L", "description": "List rules in chain" },
14
+ { "name": "--list-rules", "shorthand": "-S", "description": "Print rules as commands" },
15
+ { "name": "--flush", "shorthand": "-F", "description": "Flush (delete all rules in) chain" },
16
+ { "name": "--zero", "shorthand": "-Z", "description": "Zero packet/byte counters" },
17
+ { "name": "--new-chain", "shorthand": "-N", "description": "Create new chain", "takesValue": true },
18
+ { "name": "--delete-chain", "shorthand": "-X", "description": "Delete chain" },
19
+ { "name": "--policy", "shorthand": "-P", "description": "Set chain policy", "takesValue": true },
20
+ { "name": "--table", "shorthand": "-t", "description": "Table (filter, nat, mangle, raw, security)", "takesValue": true },
21
+ { "name": "--protocol", "shorthand": "-p", "description": "Protocol (tcp, udp, icmp, all)", "takesValue": true },
22
+ { "name": "--source", "shorthand": "-s", "description": "Source address", "takesValue": true },
23
+ { "name": "--destination", "shorthand": "-d", "description": "Destination address", "takesValue": true },
24
+ { "name": "--in-interface", "shorthand": "-i", "description": "Input interface", "takesValue": true },
25
+ { "name": "--out-interface", "shorthand": "-o", "description": "Output interface", "takesValue": true },
26
+ { "name": "--jump", "shorthand": "-j", "description": "Target (ACCEPT, DROP, REJECT, LOG, MASQUERADE, SNAT, DNAT)", "takesValue": true },
27
+ { "name": "--dport", "description": "Destination port", "takesValue": true },
28
+ { "name": "--sport", "description": "Source port", "takesValue": true },
29
+ { "name": "--match", "shorthand": "-m", "description": "Match extension", "takesValue": true },
30
+ { "name": "--state", "description": "Connection state (NEW, ESTABLISHED, RELATED, INVALID)", "takesValue": true },
31
+ { "name": "--numeric", "shorthand": "-n", "description": "Numeric output" },
32
+ { "name": "--verbose", "shorthand": "-v", "description": "Verbose output" },
33
+ { "name": "--line-numbers", "description": "Show line numbers" },
34
+ { "name": "--exact", "shorthand": "-x", "description": "Expand numbers" },
35
+ { "name": "--wait", "shorthand": "-w", "description": "Wait for xtables lock", "takesValue": true },
36
+ { "name": "--comment", "description": "Add comment to rule", "takesValue": true }
37
+ ],
38
+ "examples": [
39
+ { "command": "sudo iptables -L -n -v", "description": "List all rules" },
40
+ { "command": "sudo iptables -A INPUT -p tcp --dport 80 -j ACCEPT", "description": "Allow HTTP" },
41
+ { "command": "sudo iptables -A INPUT -p tcp --dport 22 -j ACCEPT", "description": "Allow SSH" },
42
+ { "command": "sudo iptables -A INPUT -s 10.0.0.0/8 -j ACCEPT", "description": "Allow subnet" },
43
+ { "command": "sudo iptables -P INPUT DROP", "description": "Default drop incoming" },
44
+ { "command": "sudo iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT", "description": "Allow established" },
45
+ { "command": "sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE", "description": "NAT masquerade" },
46
+ { "command": "sudo iptables -D INPUT 5", "description": "Delete rule #5" },
47
+ { "command": "sudo iptables-save > /etc/iptables.rules", "description": "Save rules" },
48
+ { "command": "sudo iptables-restore < /etc/iptables.rules", "description": "Restore rules" }
49
+ ],
50
+ "relatedCommands": ["ufw", "nft"],
51
+ "contextEngine": {
52
+ "detectors": [
53
+ {
54
+ "name": "filter_rules",
55
+ "description": "Current filter table rules",
56
+ "command": "sudo iptables -L -n --line-numbers 2>/dev/null | head -30",
57
+ "parser": "text",
58
+ "cacheFor": 15,
59
+ "requiresCmd": "iptables"
60
+ },
61
+ {
62
+ "name": "nat_rules",
63
+ "description": "NAT table rules",
64
+ "command": "sudo iptables -t nat -L -n 2>/dev/null | head -20",
65
+ "parser": "text",
66
+ "cacheFor": 15,
67
+ "requiresCmd": "iptables"
68
+ },
69
+ {
70
+ "name": "interfaces",
71
+ "description": "Network interfaces",
72
+ "command": "ip -br link show 2>/dev/null || ifconfig -s 2>/dev/null",
73
+ "parser": "lines",
74
+ "cacheFor": 30
75
+ },
76
+ {
77
+ "name": "chains",
78
+ "description": "All chains with policies",
79
+ "command": "sudo iptables -S 2>/dev/null | grep '^-P' | head -10",
80
+ "parser": "lines",
81
+ "cacheFor": 15,
82
+ "requiresCmd": "iptables"
83
+ }
84
+ ]
85
+ }
86
+ }
@@ -0,0 +1,31 @@
1
+ {
2
+ "name": "java",
3
+ "description": "Java application launcher",
4
+ "category": "runtime",
5
+ "platforms": ["linux", "macos", "windows"],
6
+ "shells": ["bash", "zsh", "fish", "powershell"],
7
+ "subcommands": [],
8
+ "globalOptions": [
9
+ { "name": "-version", "description": "Display version" },
10
+ { "name": "-jar", "description": "Execute a JAR file", "type": "file" },
11
+ { "name": "-cp", "description": "Classpath", "type": "path" },
12
+ { "name": "-classpath", "description": "Classpath (alias)", "type": "path" },
13
+ { "name": "-Xmx", "description": "Maximum heap size", "type": "string" },
14
+ { "name": "-Xms", "description": "Initial heap size", "type": "string" },
15
+ { "name": "-Xss", "description": "Thread stack size", "type": "string" },
16
+ { "name": "-D", "description": "Set system property", "type": "string" },
17
+ { "name": "-server", "description": "Use server JVM" },
18
+ { "name": "-verbose", "description": "Verbose output" },
19
+ { "name": "--enable-preview", "description": "Enable preview features" },
20
+ { "name": "-ea", "description": "Enable assertions" }
21
+ ],
22
+ "examples": [
23
+ "java -version",
24
+ "java -jar app.jar",
25
+ "java -Xmx512m -jar app.jar",
26
+ "java -cp lib/*:. com.example.Main",
27
+ "java -Dserver.port=8080 -jar app.jar",
28
+ "java --enable-preview Main.java"
29
+ ],
30
+ "relatedCommands": ["javac", "mvn", "gradle", "jpackage", "jshell", "jar"]
31
+ }
@@ -0,0 +1,82 @@
1
+ {
2
+ "name": "jest",
3
+ "description": "JavaScript testing framework with focus on simplicity",
4
+ "category": "Testing Tools",
5
+ "platforms": ["linux", "macos", "windows"],
6
+ "shells": ["bash", "zsh", "powershell", "fish"],
7
+ "subcommands": [],
8
+ "globalOptions": [
9
+ { "name": "--watch", "description": "Watch mode - rerun on file changes" },
10
+ { "name": "--watchAll", "description": "Watch all files" },
11
+ { "name": "--coverage", "description": "Collect coverage information" },
12
+ { "name": "--verbose", "description": "Verbose output with individual test results" },
13
+ { "name": "--silent", "description": "Suppress console.log output" },
14
+ { "name": "--bail", "shorthand": "-b", "description": "Stop after first failure" },
15
+ { "name": "--ci", "description": "CI mode (fail on no tests, snapshots)" },
16
+ { "name": "--config", "shorthand": "-c", "description": "Config file path", "takesValue": true },
17
+ { "name": "--env", "description": "Test environment (jsdom, node)", "takesValue": true },
18
+ { "name": "--runInBand", "shorthand": "-i", "description": "Run tests serially" },
19
+ { "name": "--maxWorkers", "shorthand": "-w", "description": "Max worker threads", "takesValue": true },
20
+ { "name": "--forceExit", "description": "Force exit after tests" },
21
+ { "name": "--detectOpenHandles", "description": "Detect async operations preventing exit" },
22
+ { "name": "--testPathPattern", "shorthand": "-t", "description": "Regex to match test files", "takesValue": true },
23
+ { "name": "--testNamePattern", "description": "Regex to match test names", "takesValue": true },
24
+ { "name": "--updateSnapshot", "shorthand": "-u", "description": "Update snapshots" },
25
+ { "name": "--clearCache", "description": "Clear cache and exit" },
26
+ { "name": "--passWithNoTests", "description": "Pass when no tests found" },
27
+ { "name": "--changedSince", "description": "Run tests for changes since commit/branch", "takesValue": true },
28
+ { "name": "--onlyChanged", "shorthand": "-o", "description": "Run tests for changed files" },
29
+ { "name": "--json", "description": "JSON output" },
30
+ { "name": "--outputFile", "description": "Write results to file", "takesValue": true },
31
+ { "name": "--reporters", "description": "Test reporters", "takesValue": true },
32
+ { "name": "--roots", "description": "Root directories for tests", "takesValue": true },
33
+ { "name": "--setupFilesAfterFramework", "description": "Setup files", "takesValue": true },
34
+ { "name": "--showConfig", "description": "Show resolved config" },
35
+ { "name": "--listTests", "description": "List matching test files" }
36
+ ],
37
+ "examples": [
38
+ { "command": "jest", "description": "Run all tests" },
39
+ { "command": "jest --watch", "description": "Watch mode" },
40
+ { "command": "jest --coverage", "description": "Run with coverage" },
41
+ { "command": "jest auth.test.ts", "description": "Run specific test file" },
42
+ { "command": "jest -t 'should login'", "description": "Run matching test names" },
43
+ { "command": "jest --bail --verbose", "description": "Verbose, stop on first failure" },
44
+ { "command": "jest --ci --coverage --forceExit", "description": "CI mode" },
45
+ { "command": "jest --updateSnapshot", "description": "Update snapshots" },
46
+ { "command": "jest --changedSince main", "description": "Changed files since main" }
47
+ ],
48
+ "relatedCommands": ["vitest", "mocha"],
49
+ "contextEngine": {
50
+ "detectors": [
51
+ {
52
+ "name": "config",
53
+ "description": "Jest configuration",
54
+ "command": "cat jest.config.js 2>/dev/null || cat jest.config.ts 2>/dev/null || cat jest.config.mjs 2>/dev/null || node -e \"try{const p=require('./package.json');if(p.jest)console.log(JSON.stringify(p.jest))}catch(e){}\" 2>/dev/null",
55
+ "parser": "text",
56
+ "cacheFor": 60
57
+ },
58
+ {
59
+ "name": "test_files",
60
+ "description": "Test files",
61
+ "command": "find . -name '*.test.*' -o -name '*.spec.*' 2>/dev/null | grep -v node_modules | head -20",
62
+ "parser": "lines",
63
+ "cacheFor": 30
64
+ },
65
+ {
66
+ "name": "test_suites",
67
+ "description": "Available test files",
68
+ "command": "npx jest --listTests 2>/dev/null | head -20",
69
+ "parser": "lines",
70
+ "cacheFor": 30,
71
+ "requiresCmd": "jest"
72
+ },
73
+ {
74
+ "name": "snapshots",
75
+ "description": "Snapshot files",
76
+ "command": "find . -name '*.snap' -not -path '*/node_modules/*' 2>/dev/null | head -10",
77
+ "parser": "lines",
78
+ "cacheFor": 30
79
+ }
80
+ ]
81
+ }
82
+ }