@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,96 @@
1
+ {
2
+ "name": "poetry",
3
+ "description": "Python dependency management and packaging tool",
4
+ "category": "Python Ecosystem",
5
+ "platforms": ["linux", "macos", "windows"],
6
+ "shells": ["bash", "zsh", "powershell", "fish"],
7
+ "subcommands": [
8
+ { "name": "new", "description": "Create a new project", "args": [{ "name": "name", "description": "Project name", "required": true }], "options": [{ "name": "--name", "shorthand": "-n", "description": "Package name", "takesValue": true }, { "name": "--src", "description": "Use src layout" }] },
9
+ { "name": "init", "description": "Initialize pyproject.toml in current directory", "options": [{ "name": "--name", "shorthand": "-n", "description": "Package name", "takesValue": true }, { "name": "--description", "description": "Description", "takesValue": true }, { "name": "--author", "description": "Author", "takesValue": true }, { "name": "--python", "description": "Python version constraint", "takesValue": true }] },
10
+ { "name": "install", "description": "Install dependencies", "options": [{ "name": "--no-dev", "description": "Skip dev dependencies" }, { "name": "--extras", "shorthand": "-E", "description": "Extras to install", "takesValue": true }, { "name": "--only", "description": "Install only specific groups", "takesValue": true }, { "name": "--sync", "description": "Sync environment with lock file" }, { "name": "--no-root", "description": "Don't install project package" }] },
11
+ { "name": "add", "description": "Add a dependency", "args": [{ "name": "packages", "description": "Packages to add", "required": true }], "options": [{ "name": "--group", "shorthand": "-G", "description": "Dependency group", "takesValue": true }, { "name": "--dev", "shorthand": "-D", "description": "Add as dev dependency" }, { "name": "--extras", "shorthand": "-E", "description": "Extras", "takesValue": true }, { "name": "--optional", "description": "Add as optional" }, { "name": "--source", "description": "Package source", "takesValue": true }] },
12
+ { "name": "remove", "description": "Remove a dependency", "args": [{ "name": "packages", "description": "Packages to remove", "required": true }], "options": [{ "name": "--group", "shorthand": "-G", "description": "Dependency group", "takesValue": true }, { "name": "--dev", "shorthand": "-D", "description": "Remove from dev deps" }] },
13
+ { "name": "update", "description": "Update dependencies", "args": [{ "name": "packages", "description": "Packages to update", "required": false }], "options": [{ "name": "--dry-run", "description": "Preview changes" }, { "name": "--lock", "description": "Only update lock file" }] },
14
+ { "name": "lock", "description": "Lock dependencies", "options": [{ "name": "--no-update", "description": "Don't update" }] },
15
+ { "name": "show", "description": "Show package details", "args": [{ "name": "package", "description": "Package name", "required": false }], "options": [{ "name": "--tree", "shorthand": "-t", "description": "Show dependency tree" }, { "name": "--latest", "shorthand": "-l", "description": "Show latest versions" }, { "name": "--outdated", "shorthand": "-o", "description": "Show outdated" }, { "name": "--top-level", "shorthand": "-T", "description": "Top-level only" }] },
16
+ { "name": "build", "description": "Build project", "options": [{ "name": "--format", "shorthand": "-f", "description": "Format (sdist, wheel)", "takesValue": true }] },
17
+ { "name": "publish", "description": "Publish to PyPI", "options": [{ "name": "--repository", "shorthand": "-r", "description": "Repository", "takesValue": true }, { "name": "--build", "description": "Build before publishing" }, { "name": "--username", "shorthand": "-u", "description": "Username", "takesValue": true }, { "name": "--password", "shorthand": "-p", "description": "Password", "takesValue": true }] },
18
+ { "name": "run", "description": "Run a command in the venv", "args": [{ "name": "command", "description": "Command to run", "required": true }] },
19
+ { "name": "shell", "description": "Spawn a shell in the venv" },
20
+ { "name": "env", "description": "Manage environments", "subcommands": [
21
+ { "name": "info", "description": "Show environment info", "options": [{ "name": "--path", "shorthand": "-p", "description": "Show venv path only" }] },
22
+ { "name": "list", "description": "List environments" },
23
+ { "name": "use", "description": "Use a Python version", "args": [{ "name": "python", "description": "Python version", "required": true }] },
24
+ { "name": "remove", "description": "Remove an environment", "args": [{ "name": "python", "description": "Python version", "required": true }] }
25
+ ]},
26
+ { "name": "export", "description": "Export lock file", "options": [{ "name": "--format", "shorthand": "-f", "description": "Format (requirements.txt)", "takesValue": true }, { "name": "--output", "shorthand": "-o", "description": "Output file", "takesValue": true }, { "name": "--without-hashes", "description": "Exclude hashes" }] },
27
+ { "name": "check", "description": "Check pyproject.toml validity" },
28
+ { "name": "search", "description": "Search for packages on PyPI", "args": [{ "name": "query", "description": "Search query", "required": true }] },
29
+ { "name": "version", "description": "Show or bump version", "args": [{ "name": "version", "description": "Version or bump rule (patch, minor, major)", "required": false }] },
30
+ { "name": "source", "description": "Manage sources", "subcommands": [
31
+ { "name": "add", "description": "Add a source", "args": [{ "name": "name", "description": "Source name", "required": true }], "options": [{ "name": "--url", "description": "Source URL", "takesValue": true }] },
32
+ { "name": "remove", "description": "Remove a source", "args": [{ "name": "name", "description": "Source name", "required": true }] },
33
+ { "name": "show", "description": "Show sources" }
34
+ ]}
35
+ ],
36
+ "globalOptions": [
37
+ { "name": "--verbose", "shorthand": "-v", "description": "Verbose output" },
38
+ { "name": "--no-interaction", "shorthand": "-n", "description": "No interactive prompts" },
39
+ { "name": "--no-plugins", "description": "Disable plugins" },
40
+ { "name": "--no-cache", "description": "Disable caching" },
41
+ { "name": "--directory", "shorthand": "-C", "description": "Working directory", "takesValue": true },
42
+ { "name": "--help", "shorthand": "-h", "description": "Show help" },
43
+ { "name": "--version", "shorthand": "-V", "description": "Show version" }
44
+ ],
45
+ "examples": [
46
+ { "command": "poetry new my-project", "description": "Create a new project" },
47
+ { "command": "poetry add requests", "description": "Add a dependency" },
48
+ { "command": "poetry add --group dev pytest", "description": "Add a dev dependency" },
49
+ { "command": "poetry install", "description": "Install all dependencies" },
50
+ { "command": "poetry run python main.py", "description": "Run script in venv" },
51
+ { "command": "poetry show --outdated", "description": "Show outdated packages" },
52
+ { "command": "poetry export -f requirements.txt -o requirements.txt", "description": "Export to requirements.txt" }
53
+ ],
54
+ "relatedCommands": ["pip", "pipenv", "python"],
55
+ "contextEngine": {
56
+ "detectors": [
57
+ {
58
+ "name": "pyproject",
59
+ "description": "Project configuration",
60
+ "command": "cat pyproject.toml 2>/dev/null | head -40",
61
+ "parser": "text",
62
+ "cacheFor": 30
63
+ },
64
+ {
65
+ "name": "installed_packages",
66
+ "description": "Installed packages",
67
+ "command": "poetry show --no-ansi 2>/dev/null | head -30",
68
+ "parser": "lines",
69
+ "cacheFor": 60,
70
+ "requiresCmd": "poetry"
71
+ },
72
+ {
73
+ "name": "venv_info",
74
+ "description": "Virtual environment info",
75
+ "command": "poetry env info --no-ansi 2>/dev/null",
76
+ "parser": "text",
77
+ "cacheFor": 120,
78
+ "requiresCmd": "poetry"
79
+ },
80
+ {
81
+ "name": "dependency_groups",
82
+ "description": "Dependency groups",
83
+ "command": "grep -E '^\\[tool\\.poetry\\.' pyproject.toml 2>/dev/null",
84
+ "parser": "lines",
85
+ "cacheFor": 30
86
+ },
87
+ {
88
+ "name": "scripts",
89
+ "description": "Defined scripts",
90
+ "command": "grep -A5 '\\[tool.poetry.scripts\\]' pyproject.toml 2>/dev/null",
91
+ "parser": "text",
92
+ "cacheFor": 30
93
+ }
94
+ ]
95
+ }
96
+ }
@@ -0,0 +1,71 @@
1
+ {
2
+ "name": "prettier",
3
+ "description": "Prettier - opinionated code formatter for JS, TS, CSS, HTML, JSON, and more",
4
+ "category": "Node Ecosystem",
5
+ "platforms": ["linux", "macos", "windows"],
6
+ "shells": ["bash", "zsh", "powershell", "fish"],
7
+ "subcommands": [],
8
+ "globalOptions": [
9
+ { "name": "--write", "shorthand": "-w", "description": "Edit files in place" },
10
+ { "name": "--check", "shorthand": "-c", "description": "Check if files are formatted" },
11
+ { "name": "--list-different", "shorthand": "-l", "description": "List files that differ from formatting" },
12
+ { "name": "--config", "description": "Config file path", "takesValue": true },
13
+ { "name": "--no-config", "description": "Ignore config files" },
14
+ { "name": "--ignore-path", "description": "Ignore file path", "takesValue": true },
15
+ { "name": "--no-editorconfig", "description": "Ignore .editorconfig" },
16
+ { "name": "--single-quote", "description": "Use single quotes" },
17
+ { "name": "--no-semi", "description": "Omit semicolons" },
18
+ { "name": "--trailing-comma", "description": "Trailing commas (all, es5, none)", "takesValue": true },
19
+ { "name": "--tab-width", "description": "Spaces per indentation", "takesValue": true },
20
+ { "name": "--use-tabs", "description": "Use tabs instead of spaces" },
21
+ { "name": "--print-width", "description": "Line width", "takesValue": true },
22
+ { "name": "--bracket-spacing", "description": "Spaces in object literals" },
23
+ { "name": "--jsx-single-quote", "description": "Use single quotes in JSX" },
24
+ { "name": "--arrow-parens", "description": "Arrow function parens (always, avoid)", "takesValue": true },
25
+ { "name": "--end-of-line", "description": "Line endings (lf, crlf, cr, auto)", "takesValue": true },
26
+ { "name": "--parser", "description": "Parser to use", "takesValue": true },
27
+ { "name": "--plugin", "description": "Plugin to use", "takesValue": true },
28
+ { "name": "--cache", "description": "Enable file caching" },
29
+ { "name": "--cache-location", "description": "Cache file location", "takesValue": true },
30
+ { "name": "--cache-strategy", "description": "Cache strategy (content, metadata)", "takesValue": true },
31
+ { "name": "--find-config-path", "description": "Find config path for a file", "takesValue": true },
32
+ { "name": "--file-info", "description": "Get file info", "takesValue": true },
33
+ { "name": "--log-level", "description": "Log level (silent, error, warn, log, debug)", "takesValue": true },
34
+ { "name": "--help", "shorthand": "-h", "description": "Show help" },
35
+ { "name": "--version", "shorthand": "-v", "description": "Show version" }
36
+ ],
37
+ "examples": [
38
+ { "command": "prettier --write .", "description": "Format all files" },
39
+ { "command": "prettier --check src/", "description": "Check if files are formatted" },
40
+ { "command": "prettier --write '**/*.{ts,tsx}'", "description": "Format TypeScript files" },
41
+ { "command": "prettier --single-quote --no-semi --write .", "description": "Format with options" },
42
+ { "command": "prettier --list-different .", "description": "List unformatted files" },
43
+ { "command": "prettier --cache --write .", "description": "Format with caching" }
44
+ ],
45
+ "relatedCommands": ["eslint", "tsc"],
46
+ "contextEngine": {
47
+ "detectors": [
48
+ {
49
+ "name": "prettier_config",
50
+ "description": "Prettier configuration",
51
+ "command": "cat .prettierrc 2>/dev/null || cat .prettierrc.json 2>/dev/null || cat .prettierrc.js 2>/dev/null || cat .prettierrc.yml 2>/dev/null || cat prettier.config.js 2>/dev/null || cat prettier.config.mjs 2>/dev/null",
52
+ "parser": "text",
53
+ "cacheFor": 60
54
+ },
55
+ {
56
+ "name": "prettier_ignore",
57
+ "description": "Prettier ignore patterns",
58
+ "command": "cat .prettierignore 2>/dev/null",
59
+ "parser": "lines",
60
+ "cacheFor": 60
61
+ },
62
+ {
63
+ "name": "prettier_plugins",
64
+ "description": "Installed Prettier plugins",
65
+ "command": "node -e \"const p=require('./package.json');Object.keys({...p.dependencies,...p.devDependencies}).filter(d=>d.startsWith('prettier-plugin')||d.includes('prettier')).forEach(d=>console.log(d))\" 2>/dev/null",
66
+ "parser": "lines",
67
+ "cacheFor": 120
68
+ }
69
+ ]
70
+ }
71
+ }
@@ -0,0 +1,31 @@
1
+ {
2
+ "name": "ps",
3
+ "description": "Report a snapshot of current processes",
4
+ "category": "system",
5
+ "platforms": ["linux", "macos"],
6
+ "shells": ["bash", "zsh", "fish"],
7
+ "subcommands": [],
8
+ "globalOptions": [
9
+ { "name": "aux", "description": "Show all processes with detailed info" },
10
+ { "name": "-e", "description": "Select all processes" },
11
+ { "name": "-f", "description": "Full-format listing" },
12
+ { "name": "-u", "description": "User-oriented format", "type": "string" },
13
+ { "name": "-p", "description": "Select by PID", "type": "number" },
14
+ { "name": "--sort", "description": "Sort output", "type": "string" },
15
+ { "name": "-o", "description": "User-defined format", "type": "string" },
16
+ { "name": "--forest", "description": "ASCII art process tree" },
17
+ { "name": "-C", "description": "Select by command name", "type": "string" }
18
+ ],
19
+ "examples": [
20
+ "ps",
21
+ "ps aux",
22
+ "ps -ef",
23
+ "ps aux --sort=-%mem",
24
+ "ps aux --sort=-%cpu",
25
+ "ps -u username",
26
+ "ps aux | grep nginx",
27
+ "ps -o pid,user,%mem,%cpu,comm -e --sort=-%mem",
28
+ "ps --forest"
29
+ ],
30
+ "relatedCommands": ["top", "htop", "kill", "pgrep", "pkill", "nice", "renice"]
31
+ }
@@ -0,0 +1,124 @@
1
+ {
2
+ "name": "psql",
3
+ "description": "PostgreSQL interactive terminal — query and manage PostgreSQL databases",
4
+ "category": "database",
5
+ "platforms": ["linux", "macos", "windows"],
6
+ "shells": ["bash", "zsh", "fish", "powershell"],
7
+ "subcommands": [],
8
+ "globalOptions": [
9
+ { "name": "--host", "short": "-h", "description": "Database server host", "type": "string", "default": "localhost" },
10
+ { "name": "--port", "short": "-p", "description": "Database server port", "type": "number", "default": "5432" },
11
+ { "name": "--username", "short": "-U", "description": "Database user name", "type": "string" },
12
+ { "name": "--dbname", "short": "-d", "description": "Database name to connect to", "type": "string" },
13
+ { "name": "--password", "short": "-W", "description": "Force password prompt" },
14
+ { "name": "--no-password", "short": "-w", "description": "Never prompt for password" },
15
+ { "name": "--command", "short": "-c", "description": "Execute a single command and exit", "type": "string" },
16
+ { "name": "--file", "short": "-f", "description": "Execute commands from a file", "type": "file" },
17
+ { "name": "--list", "short": "-l", "description": "List available databases and exit" },
18
+ { "name": "--expanded", "short": "-x", "description": "Enable expanded table formatting" },
19
+ { "name": "--tuples-only", "short": "-t", "description": "Print rows only (no headers/footers)" },
20
+ { "name": "--html", "short": "-H", "description": "HTML table output mode" },
21
+ { "name": "--csv", "description": "CSV output mode" },
22
+ { "name": "--field-separator", "short": "-F", "description": "Field separator for unaligned output", "type": "string" },
23
+ { "name": "--variable", "short": "-v", "description": "Set psql variable", "type": "string" },
24
+ { "name": "--single-transaction", "short": "-1", "description": "Execute in a single transaction" },
25
+ { "name": "--echo-all", "short": "-a", "description": "Print all input lines as read" },
26
+ { "name": "--no-align", "short": "-A", "description": "Unaligned table output mode" }
27
+ ],
28
+ "examples": [
29
+ "psql -U postgres",
30
+ "psql -h localhost -U admin -d mydb",
31
+ "psql -c 'SELECT version();'",
32
+ "psql -l",
33
+ "psql -d mydb -f schema.sql",
34
+ "psql -U admin -d mydb -c '\\dt'",
35
+ "psql --csv -c 'SELECT * FROM users' -d mydb",
36
+ "psql -t -A -c 'SELECT datname FROM pg_database'",
37
+ "psql postgresql://user:pass@host:5432/dbname"
38
+ ],
39
+ "relatedCommands": ["pg_dump", "pg_restore", "createdb", "dropdb", "mysql", "sqlite3"],
40
+ "contextEngine": {
41
+ "detectors": [
42
+ {
43
+ "name": "databases",
44
+ "description": "List of all PostgreSQL databases",
45
+ "command": "psql -U postgres -t -A -c 'SELECT datname FROM pg_database WHERE datistemplate = false ORDER BY datname;' 2>/dev/null",
46
+ "parser": "lines",
47
+ "cacheFor": 60,
48
+ "requiresCmd": "psql"
49
+ },
50
+ {
51
+ "name": "current_database",
52
+ "description": "Currently connected database name",
53
+ "command": "psql -U postgres -t -A -c 'SELECT current_database();' 2>/dev/null",
54
+ "parser": "text",
55
+ "cacheFor": 30,
56
+ "requiresCmd": "psql"
57
+ },
58
+ {
59
+ "name": "schemas",
60
+ "description": "Schemas in the current database",
61
+ "command": "psql -U postgres -t -A -c \"SELECT schema_name FROM information_schema.schemata WHERE schema_name NOT IN ('pg_catalog','information_schema','pg_toast') ORDER BY schema_name;\" 2>/dev/null",
62
+ "parser": "lines",
63
+ "cacheFor": 60,
64
+ "requiresCmd": "psql"
65
+ },
66
+ {
67
+ "name": "tables",
68
+ "description": "Tables in public schema",
69
+ "command": "psql -U postgres -t -A -c \"SELECT tablename FROM pg_tables WHERE schemaname = 'public' ORDER BY tablename;\" 2>/dev/null",
70
+ "parser": "lines",
71
+ "cacheFor": 30,
72
+ "requiresCmd": "psql"
73
+ },
74
+ {
75
+ "name": "active_connections",
76
+ "description": "Active database connections",
77
+ "command": "psql -U postgres -t -A -c \"SELECT datname, usename, state, count(*) FROM pg_stat_activity GROUP BY datname, usename, state ORDER BY count(*) DESC;\" 2>/dev/null",
78
+ "parser": "table",
79
+ "cacheFor": 15,
80
+ "requiresCmd": "psql"
81
+ },
82
+ {
83
+ "name": "db_sizes",
84
+ "description": "Size of each database",
85
+ "command": "psql -U postgres -t -A -c \"SELECT datname, pg_size_pretty(pg_database_size(datname)) FROM pg_database WHERE datistemplate = false ORDER BY pg_database_size(datname) DESC;\" 2>/dev/null",
86
+ "parser": "table",
87
+ "cacheFor": 120,
88
+ "requiresCmd": "psql"
89
+ },
90
+ {
91
+ "name": "extensions",
92
+ "description": "Installed PostgreSQL extensions",
93
+ "command": "psql -U postgres -t -A -c 'SELECT extname, extversion FROM pg_extension ORDER BY extname;' 2>/dev/null",
94
+ "parser": "table",
95
+ "cacheFor": 300,
96
+ "requiresCmd": "psql"
97
+ },
98
+ {
99
+ "name": "roles",
100
+ "description": "Database roles/users",
101
+ "command": "psql -U postgres -t -A -c 'SELECT rolname FROM pg_roles WHERE rolcanlogin = true ORDER BY rolname;' 2>/dev/null",
102
+ "parser": "lines",
103
+ "cacheFor": 120,
104
+ "requiresCmd": "psql"
105
+ },
106
+ {
107
+ "name": "pg_version",
108
+ "description": "PostgreSQL server version",
109
+ "command": "psql -U postgres -t -A -c 'SELECT version();' 2>/dev/null",
110
+ "parser": "text",
111
+ "cacheFor": 3600,
112
+ "requiresCmd": "psql"
113
+ },
114
+ {
115
+ "name": "running_queries",
116
+ "description": "Currently running queries",
117
+ "command": "psql -U postgres -t -A -c \"SELECT pid, now() - pg_stat_activity.query_start AS duration, query FROM pg_stat_activity WHERE state = 'active' AND pid <> pg_backend_pid() ORDER BY duration DESC LIMIT 10;\" 2>/dev/null",
118
+ "parser": "table",
119
+ "cacheFor": 5,
120
+ "requiresCmd": "psql"
121
+ }
122
+ ]
123
+ }
124
+ }
@@ -0,0 +1,130 @@
1
+ {
2
+ "name": "pulumi",
3
+ "description": "Infrastructure as Code using real programming languages (TypeScript, Python, Go, C#, Java)",
4
+ "category": "DevOps/Infra",
5
+ "platforms": ["linux", "macos", "windows"],
6
+ "shells": ["bash", "zsh", "powershell", "fish"],
7
+ "subcommands": [
8
+ { "name": "new", "description": "Create a new Pulumi project", "args": [{ "name": "template", "description": "Template name", "required": false }], "options": [
9
+ { "name": "--name", "shorthand": "-n", "description": "Project name", "takesValue": true },
10
+ { "name": "--dir", "description": "Target directory", "takesValue": true },
11
+ { "name": "--description", "shorthand": "-d", "description": "Project description", "takesValue": true },
12
+ { "name": "--stack", "shorthand": "-s", "description": "Stack name", "takesValue": true },
13
+ { "name": "--yes", "shorthand": "-y", "description": "Skip prompts" },
14
+ { "name": "--force", "shorthand": "-f", "description": "Force create in non-empty dir" }
15
+ ]},
16
+ { "name": "up", "description": "Create or update resources", "options": [
17
+ { "name": "--stack", "shorthand": "-s", "description": "Stack name", "takesValue": true },
18
+ { "name": "--yes", "shorthand": "-y", "description": "Skip confirmation" },
19
+ { "name": "--parallel", "shorthand": "-p", "description": "Parallelism", "takesValue": true },
20
+ { "name": "--refresh", "shorthand": "-r", "description": "Refresh state first" },
21
+ { "name": "--target", "shorthand": "-t", "description": "Target specific resources", "takesValue": true },
22
+ { "name": "--diff", "description": "Show detailed diff" },
23
+ { "name": "--replace", "description": "Force replace resource", "takesValue": true }
24
+ ]},
25
+ { "name": "preview", "description": "Show preview of updates", "options": [
26
+ { "name": "--stack", "shorthand": "-s", "description": "Stack name", "takesValue": true },
27
+ { "name": "--diff", "description": "Show detailed diff" },
28
+ { "name": "--json", "shorthand": "-j", "description": "JSON output" }
29
+ ]},
30
+ { "name": "destroy", "description": "Destroy all resources", "options": [
31
+ { "name": "--stack", "shorthand": "-s", "description": "Stack name", "takesValue": true },
32
+ { "name": "--yes", "shorthand": "-y", "description": "Skip confirmation" },
33
+ { "name": "--target", "shorthand": "-t", "description": "Target specific resources", "takesValue": true }
34
+ ]},
35
+ { "name": "stack", "description": "Manage stacks", "subcommands": [
36
+ { "name": "init", "description": "Create new stack", "args": [{ "name": "name", "description": "Stack name", "required": true }] },
37
+ { "name": "ls", "description": "List stacks" },
38
+ { "name": "select", "description": "Switch stack", "args": [{ "name": "name", "description": "Stack name", "required": true }] },
39
+ { "name": "rm", "description": "Remove a stack" },
40
+ { "name": "output", "description": "Show stack outputs" },
41
+ { "name": "export", "description": "Export stack state" },
42
+ { "name": "import", "description": "Import stack state" },
43
+ { "name": "tag", "description": "Manage stack tags" },
44
+ { "name": "history", "description": "Show update history" }
45
+ ]},
46
+ { "name": "config", "description": "Manage configuration", "subcommands": [
47
+ { "name": "set", "description": "Set config value" },
48
+ { "name": "get", "description": "Get config value" },
49
+ { "name": "rm", "description": "Remove config key" },
50
+ { "name": "refresh", "description": "Update config from current values" }
51
+ ]},
52
+ { "name": "refresh", "description": "Refresh state with actual cloud state" },
53
+ { "name": "import", "description": "Import existing resource" },
54
+ { "name": "cancel", "description": "Cancel in-progress update" },
55
+ { "name": "login", "description": "Login to Pulumi Cloud", "options": [{ "name": "--local", "shorthand": "-l", "description": "Use local backend" }] },
56
+ { "name": "logout", "description": "Logout from Pulumi Cloud" },
57
+ { "name": "whoami", "description": "Show current user" },
58
+ { "name": "plugin", "description": "Plugin management", "subcommands": [
59
+ { "name": "install", "description": "Install plugin" },
60
+ { "name": "ls", "description": "List plugins" },
61
+ { "name": "rm", "description": "Remove plugin" }
62
+ ]},
63
+ { "name": "watch", "description": "Watch for file changes and update" },
64
+ { "name": "logs", "description": "Show aggregated logs" },
65
+ { "name": "about", "description": "Show environment info" }
66
+ ],
67
+ "globalOptions": [
68
+ { "name": "--cwd", "shorthand": "-C", "description": "Working directory", "takesValue": true },
69
+ { "name": "--stack", "shorthand": "-s", "description": "Stack name", "takesValue": true },
70
+ { "name": "--color", "description": "Colorize output (always, never, raw, auto)", "takesValue": true },
71
+ { "name": "--logflow", "description": "Log to stderr" },
72
+ { "name": "--logtostderr", "description": "Log to stderr" },
73
+ { "name": "--verbose", "shorthand": "-v", "description": "Verbose (0-9)", "takesValue": true },
74
+ { "name": "--help", "shorthand": "-h", "description": "Show help" }
75
+ ],
76
+ "examples": [
77
+ { "command": "pulumi new typescript", "description": "Create TypeScript project" },
78
+ { "command": "pulumi up", "description": "Deploy infrastructure" },
79
+ { "command": "pulumi up -y", "description": "Deploy without confirmation" },
80
+ { "command": "pulumi preview --diff", "description": "Preview with diff" },
81
+ { "command": "pulumi destroy -y", "description": "Destroy all resources" },
82
+ { "command": "pulumi stack ls", "description": "List stacks" },
83
+ { "command": "pulumi config set aws:region us-east-1", "description": "Set config" },
84
+ { "command": "pulumi stack output", "description": "Show outputs" }
85
+ ],
86
+ "relatedCommands": ["terraform", "terragrunt"],
87
+ "contextEngine": {
88
+ "detectors": [
89
+ {
90
+ "name": "stacks",
91
+ "description": "Available stacks",
92
+ "command": "pulumi stack ls --json 2>/dev/null",
93
+ "parser": "json",
94
+ "cacheFor": 30,
95
+ "requiresCmd": "pulumi"
96
+ },
97
+ {
98
+ "name": "current_stack",
99
+ "description": "Current stack",
100
+ "command": "pulumi stack --show-name 2>/dev/null",
101
+ "parser": "text",
102
+ "cacheFor": 15,
103
+ "requiresCmd": "pulumi"
104
+ },
105
+ {
106
+ "name": "config",
107
+ "description": "Stack configuration",
108
+ "command": "pulumi config --json 2>/dev/null",
109
+ "parser": "json",
110
+ "cacheFor": 30,
111
+ "requiresCmd": "pulumi"
112
+ },
113
+ {
114
+ "name": "project",
115
+ "description": "Project configuration",
116
+ "command": "cat Pulumi.yaml 2>/dev/null",
117
+ "parser": "text",
118
+ "cacheFor": 60
119
+ },
120
+ {
121
+ "name": "outputs",
122
+ "description": "Stack outputs",
123
+ "command": "pulumi stack output --json 2>/dev/null",
124
+ "parser": "json",
125
+ "cacheFor": 30,
126
+ "requiresCmd": "pulumi"
127
+ }
128
+ ]
129
+ }
130
+ }
@@ -0,0 +1,92 @@
1
+ {
2
+ "name": "pytest",
3
+ "description": "Python testing framework with powerful fixtures and plugin architecture",
4
+ "category": "Python Ecosystem",
5
+ "platforms": ["linux", "macos", "windows"],
6
+ "shells": ["bash", "zsh", "powershell", "fish"],
7
+ "subcommands": [],
8
+ "globalOptions": [
9
+ { "name": "-x", "description": "Stop on first failure" },
10
+ { "name": "-v", "description": "Verbose output" },
11
+ { "name": "-vv", "description": "Extra verbose output" },
12
+ { "name": "-q", "description": "Quiet output" },
13
+ { "name": "-s", "description": "Don't capture stdout" },
14
+ { "name": "-k", "description": "Filter tests by expression", "takesValue": true },
15
+ { "name": "-m", "description": "Filter by marker expression", "takesValue": true },
16
+ { "name": "--markers", "description": "Show available markers" },
17
+ { "name": "--fixtures", "description": "Show available fixtures" },
18
+ { "name": "--collect-only", "description": "Only collect tests, don't run" },
19
+ { "name": "--lf", "description": "Rerun last failures only" },
20
+ { "name": "--ff", "description": "Run failures first" },
21
+ { "name": "--nf", "description": "Run new tests first" },
22
+ { "name": "-n", "description": "Parallel workers (pytest-xdist)", "takesValue": true },
23
+ { "name": "--cov", "description": "Coverage for package", "takesValue": true },
24
+ { "name": "--cov-report", "description": "Coverage report type (html, xml, term)", "takesValue": true },
25
+ { "name": "--maxfail", "description": "Stop after N failures", "takesValue": true },
26
+ { "name": "--tb", "description": "Traceback mode (short, long, line, no, auto)", "takesValue": true },
27
+ { "name": "--durations", "description": "Show N slowest tests", "takesValue": true },
28
+ { "name": "--timeout", "description": "Test timeout in seconds", "takesValue": true },
29
+ { "name": "-p", "description": "Load plugin", "takesValue": true },
30
+ { "name": "--no-header", "description": "Suppress header" },
31
+ { "name": "--co", "description": "Collect only (alias)" },
32
+ { "name": "--rootdir", "description": "Root directory", "takesValue": true },
33
+ { "name": "-c", "description": "Config file", "takesValue": true },
34
+ { "name": "--junitxml", "description": "Generate JUnit XML report", "takesValue": true },
35
+ { "name": "--html", "description": "Generate HTML report (pytest-html)", "takesValue": true },
36
+ { "name": "--pdb", "description": "Drop to debugger on failure" },
37
+ { "name": "--trace", "description": "Drop to debugger at start of each test" },
38
+ { "name": "--help", "shorthand": "-h", "description": "Show help" },
39
+ { "name": "--version", "description": "Show version" }
40
+ ],
41
+ "examples": [
42
+ { "command": "pytest", "description": "Run all tests" },
43
+ { "command": "pytest tests/test_api.py", "description": "Run tests in specific file" },
44
+ { "command": "pytest -x -v", "description": "Verbose, stop on first failure" },
45
+ { "command": "pytest -k 'test_login or test_auth'", "description": "Run tests matching expression" },
46
+ { "command": "pytest -m slow", "description": "Run tests marked as slow" },
47
+ { "command": "pytest --cov=myapp --cov-report=html", "description": "Run with coverage" },
48
+ { "command": "pytest -n 4", "description": "Run in 4 parallel workers" },
49
+ { "command": "pytest --lf -x", "description": "Rerun last failures" },
50
+ { "command": "pytest --durations=10", "description": "Show 10 slowest tests" }
51
+ ],
52
+ "relatedCommands": ["python", "pip", "poetry"],
53
+ "contextEngine": {
54
+ "detectors": [
55
+ {
56
+ "name": "test_files",
57
+ "description": "Test files in the project",
58
+ "command": "find . -name 'test_*.py' -o -name '*_test.py' 2>/dev/null | head -20",
59
+ "parser": "lines",
60
+ "cacheFor": 30
61
+ },
62
+ {
63
+ "name": "pytest_config",
64
+ "description": "Pytest configuration",
65
+ "command": "cat pytest.ini 2>/dev/null || cat setup.cfg 2>/dev/null | grep -A20 '\\[tool:pytest\\]' || grep -A20 '\\[tool.pytest' pyproject.toml 2>/dev/null",
66
+ "parser": "text",
67
+ "cacheFor": 60
68
+ },
69
+ {
70
+ "name": "conftest",
71
+ "description": "Conftest fixtures",
72
+ "command": "cat conftest.py 2>/dev/null | head -30",
73
+ "parser": "text",
74
+ "cacheFor": 30
75
+ },
76
+ {
77
+ "name": "markers",
78
+ "description": "Available markers",
79
+ "command": "python -m pytest --markers 2>/dev/null | head -20",
80
+ "parser": "text",
81
+ "cacheFor": 120
82
+ },
83
+ {
84
+ "name": "plugins",
85
+ "description": "Installed pytest plugins",
86
+ "command": "pip list 2>/dev/null | grep pytest",
87
+ "parser": "lines",
88
+ "cacheFor": 300
89
+ }
90
+ ]
91
+ }
92
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "name": "python",
3
+ "description": "Interpreted, high-level, general-purpose programming language",
4
+ "category": "runtime",
5
+ "platforms": ["linux", "macos", "windows"],
6
+ "shells": ["bash", "zsh", "fish", "powershell"],
7
+ "subcommands": [],
8
+ "globalOptions": [
9
+ { "name": "--version", "short": "-V", "description": "Print Python version" },
10
+ { "name": "-c", "description": "Execute code passed as string", "type": "string" },
11
+ { "name": "-m", "description": "Run library module as script", "type": "string" },
12
+ { "name": "-i", "description": "Inspect interactively after running script" },
13
+ { "name": "-u", "description": "Unbuffered binary stdout and stderr" },
14
+ { "name": "-B", "description": "Don't write .pyc files" },
15
+ { "name": "-O", "description": "Optimize bytecode" },
16
+ { "name": "-W", "description": "Warning control", "type": "string" },
17
+ { "name": "--help", "short": "-h", "description": "Show help" },
18
+ { "name": "-E", "description": "Ignore PYTHON* environment variables" },
19
+ { "name": "-q", "description": "Don't print version on interactive startup" }
20
+ ],
21
+ "examples": [
22
+ "python script.py",
23
+ "python -c \"print('hello')\"",
24
+ "python -m http.server 8080",
25
+ "python -m venv .venv",
26
+ "python -m pytest",
27
+ "python -m pip install requests"
28
+ ],
29
+ "relatedCommands": ["pip", "python3", "pipx", "poetry", "conda", "virtualenv", "pyenv"]
30
+ }