@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,58 @@
1
+ {
2
+ "name": "npx",
3
+ "description": "Execute npm package binaries without installing them globally",
4
+ "category": "Node Ecosystem",
5
+ "platforms": ["linux", "macos", "windows"],
6
+ "shells": ["bash", "zsh", "powershell", "fish"],
7
+ "subcommands": [],
8
+ "globalOptions": [
9
+ { "name": "--package", "shorthand": "-p", "description": "Package to use for the command", "takesValue": true },
10
+ { "name": "--cache", "description": "Location of npm cache", "takesValue": true },
11
+ { "name": "--yes", "shorthand": "-y", "description": "Auto-confirm install prompts" },
12
+ { "name": "--no", "shorthand": "-n", "description": "Auto-deny install prompts" },
13
+ { "name": "--call", "shorthand": "-c", "description": "Execute string in shell", "takesValue": true },
14
+ { "name": "--shell", "shorthand": "-s", "description": "Shell to use", "takesValue": true },
15
+ { "name": "--shell-auto-fallback", "description": "Generate shell setup code" },
16
+ { "name": "--ignore-existing", "description": "Ignore existing binaries in PATH" },
17
+ { "name": "--quiet", "shorthand": "-q", "description": "Suppress output" },
18
+ { "name": "--help", "shorthand": "-h", "description": "Show help" },
19
+ { "name": "--version", "shorthand": "-v", "description": "Show version" }
20
+ ],
21
+ "examples": [
22
+ { "command": "npx create-react-app my-app", "description": "Create a new React app" },
23
+ { "command": "npx create-next-app@latest", "description": "Create a Next.js app" },
24
+ { "command": "npx ts-node script.ts", "description": "Run TypeScript file" },
25
+ { "command": "npx -p typescript tsc --init", "description": "Init tsconfig using typescript package" },
26
+ { "command": "npx eslint .", "description": "Run eslint on current directory" },
27
+ { "command": "npx prettier --write .", "description": "Format all files with prettier" },
28
+ { "command": "npx -y degit user/repo my-project", "description": "Scaffold from template" },
29
+ { "command": "npx serve build", "description": "Serve static files" }
30
+ ],
31
+ "relatedCommands": ["npm", "yarn", "pnpm", "bun"],
32
+ "contextEngine": {
33
+ "detectors": [
34
+ {
35
+ "name": "local_bins",
36
+ "description": "Locally installed binary commands",
37
+ "command": "ls node_modules/.bin/ 2>/dev/null | head -30",
38
+ "parser": "lines",
39
+ "cacheFor": 30
40
+ },
41
+ {
42
+ "name": "package_scripts",
43
+ "description": "Scripts from package.json",
44
+ "command": "node -e \"const p=require('./package.json');Object.keys(p.scripts||{}).forEach(s=>console.log(s))\" 2>/dev/null",
45
+ "parser": "lines",
46
+ "cacheFor": 30
47
+ },
48
+ {
49
+ "name": "node_version",
50
+ "description": "Current Node.js version",
51
+ "command": "node --version 2>/dev/null",
52
+ "parser": "text",
53
+ "cacheFor": 300,
54
+ "requiresCmd": "node"
55
+ }
56
+ ]
57
+ }
58
+ }
@@ -0,0 +1,82 @@
1
+ {
2
+ "name": "nx",
3
+ "description": "Nx - smart monorepo build system with computation caching and task orchestration",
4
+ "category": "Node Ecosystem",
5
+ "platforms": ["linux", "macos", "windows"],
6
+ "shells": ["bash", "zsh", "powershell", "fish"],
7
+ "subcommands": [
8
+ { "name": "run", "description": "Run a target for a project", "args": [{ "name": "target", "description": "project:target[:configuration]", "required": true }], "options": [{ "name": "--configuration", "shorthand": "-c", "description": "Configuration", "takesValue": true }, { "name": "--skip-nx-cache", "description": "Skip cache" }] },
9
+ { "name": "run-many", "description": "Run target for multiple projects", "options": [{ "name": "--target", "shorthand": "-t", "description": "Target to run", "takesValue": true }, { "name": "--projects", "shorthand": "-p", "description": "Projects to run", "takesValue": true }, { "name": "--all", "description": "Run for all projects" }, { "name": "--parallel", "description": "Max parallel tasks", "takesValue": true }, { "name": "--skip-nx-cache", "description": "Skip cache" }] },
10
+ { "name": "affected", "description": "Run targets for affected projects", "options": [{ "name": "--target", "shorthand": "-t", "description": "Target to run", "takesValue": true }, { "name": "--base", "description": "Base commit", "takesValue": true }, { "name": "--head", "description": "Head commit", "takesValue": true }, { "name": "--parallel", "description": "Max parallel", "takesValue": true }] },
11
+ { "name": "graph", "description": "Show project dependency graph", "options": [{ "name": "--file", "description": "Output file", "takesValue": true }, { "name": "--focus", "description": "Focus on project", "takesValue": true }, { "name": "--affected", "description": "Show only affected" }] },
12
+ { "name": "generate", "description": "Run a generator", "args": [{ "name": "generator", "description": "Generator (plugin:generator)", "required": true }], "options": [{ "name": "--name", "description": "Name", "takesValue": true }, { "name": "--directory", "description": "Directory", "takesValue": true }, { "name": "--dry-run", "description": "Preview changes" }] },
13
+ { "name": "migrate", "description": "Update Nx and workspace", "args": [{ "name": "package", "description": "Package to migrate", "required": false }], "options": [{ "name": "--run-migrations", "description": "Run pending migrations" }, { "name": "--from", "description": "Current version", "takesValue": true }, { "name": "--to", "description": "Target version", "takesValue": true }] },
14
+ { "name": "list", "description": "List installed and available plugins", "args": [{ "name": "plugin", "description": "Plugin name for details", "required": false }] },
15
+ { "name": "init", "description": "Add Nx to an existing workspace" },
16
+ { "name": "show", "description": "Show information", "subcommands": [
17
+ { "name": "projects", "description": "List projects", "options": [{ "name": "--affected", "description": "Show affected only" }, { "name": "--type", "description": "Project type (app, lib)", "takesValue": true }] },
18
+ { "name": "project", "description": "Show project details", "args": [{ "name": "name", "description": "Project name", "required": true }] }
19
+ ]},
20
+ { "name": "reset", "description": "Reset Nx cache and daemon" },
21
+ { "name": "daemon", "description": "Manage Nx daemon", "subcommands": [
22
+ { "name": "start", "description": "Start daemon" },
23
+ { "name": "stop", "description": "Stop daemon" }
24
+ ]},
25
+ { "name": "format", "description": "Format files", "subcommands": [
26
+ { "name": "write", "description": "Format and write files" },
27
+ { "name": "check", "description": "Check formatting" }
28
+ ]},
29
+ { "name": "connect", "description": "Connect to Nx Cloud" },
30
+ { "name": "report", "description": "Report workspace config and installed plugins" }
31
+ ],
32
+ "globalOptions": [
33
+ { "name": "--help", "shorthand": "-h", "description": "Show help" },
34
+ { "name": "--version", "description": "Show version" },
35
+ { "name": "--verbose", "description": "Verbose output" },
36
+ { "name": "--nx-bail", "description": "Stop on first failure" },
37
+ { "name": "--nx-ignore-cycles", "description": "Ignore dependency cycles" }
38
+ ],
39
+ "examples": [
40
+ { "command": "nx run myapp:build", "description": "Build a specific project" },
41
+ { "command": "nx run-many -t build test", "description": "Run build and test for all projects" },
42
+ { "command": "nx affected -t test --base=main", "description": "Test affected projects" },
43
+ { "command": "nx generate @nx/react:app my-app", "description": "Generate a React app" },
44
+ { "command": "nx graph", "description": "Open dependency graph" },
45
+ { "command": "nx show projects --affected", "description": "Show affected projects" }
46
+ ],
47
+ "relatedCommands": ["turbo", "npm", "pnpm"],
48
+ "contextEngine": {
49
+ "detectors": [
50
+ {
51
+ "name": "projects",
52
+ "description": "Workspace projects",
53
+ "command": "nx show projects 2>/dev/null",
54
+ "parser": "lines",
55
+ "cacheFor": 60,
56
+ "requiresCmd": "nx"
57
+ },
58
+ {
59
+ "name": "nx_config",
60
+ "description": "Nx configuration",
61
+ "command": "cat nx.json 2>/dev/null",
62
+ "parser": "json",
63
+ "cacheFor": 60
64
+ },
65
+ {
66
+ "name": "plugins",
67
+ "description": "Installed Nx plugins",
68
+ "command": "nx report 2>/dev/null | head -20",
69
+ "parser": "text",
70
+ "cacheFor": 300,
71
+ "requiresCmd": "nx"
72
+ },
73
+ {
74
+ "name": "workspaces",
75
+ "description": "Workspace structure",
76
+ "command": "cat workspace.json 2>/dev/null || cat angular.json 2>/dev/null | head -30",
77
+ "parser": "json",
78
+ "cacheFor": 60
79
+ }
80
+ ]
81
+ }
82
+ }
@@ -0,0 +1,288 @@
1
+ {
2
+ "name": "openssl",
3
+ "description": "OpenSSL — cryptography and TLS/SSL toolkit for certificates, keys, and encryption",
4
+ "category": "security",
5
+ "platforms": ["linux", "macos", "windows"],
6
+ "shells": ["bash", "zsh", "fish", "powershell"],
7
+ "subcommands": [
8
+ {
9
+ "name": "genrsa",
10
+ "description": "Generate an RSA private key",
11
+ "options": [
12
+ { "name": "-out", "description": "Output file path", "type": "file" },
13
+ { "name": "-aes256", "description": "Encrypt key with AES-256" },
14
+ { "name": "-passout", "description": "Output file passphrase source", "type": "string" }
15
+ ],
16
+ "examples": ["openssl genrsa -out private.key 4096", "openssl genrsa -aes256 -out private.key 4096"]
17
+ },
18
+ {
19
+ "name": "genpkey",
20
+ "description": "Generate a private key (modern, supports all algorithms)",
21
+ "options": [
22
+ { "name": "-algorithm", "description": "Key algorithm (RSA, EC, ED25519)", "type": "string" },
23
+ { "name": "-out", "description": "Output file", "type": "file" },
24
+ { "name": "-pkeyopt", "description": "Key generation option", "type": "string" },
25
+ { "name": "-aes256", "description": "Encrypt key with AES-256" }
26
+ ],
27
+ "examples": ["openssl genpkey -algorithm RSA -out private.key -pkeyopt rsa_keygen_bits:4096", "openssl genpkey -algorithm ED25519 -out private.key", "openssl genpkey -algorithm EC -pkeyopt ec_paramgen_curve:P-256 -out ec.key"]
28
+ },
29
+ {
30
+ "name": "req",
31
+ "description": "Create or process certificate signing requests (CSR)",
32
+ "options": [
33
+ { "name": "-new", "description": "Generate a new CSR" },
34
+ { "name": "-x509", "description": "Generate a self-signed certificate instead of CSR" },
35
+ { "name": "-key", "description": "Private key file", "type": "file" },
36
+ { "name": "-out", "description": "Output file", "type": "file" },
37
+ { "name": "-days", "description": "Number of days certificate is valid", "type": "number" },
38
+ { "name": "-subj", "description": "Subject distinguished name", "type": "string" },
39
+ { "name": "-newkey", "description": "Generate new private key of specified type", "type": "string" },
40
+ { "name": "-nodes", "description": "Do not encrypt private key (DEPRECATED; use -noenc)" },
41
+ { "name": "-noenc", "description": "Do not encrypt private key" },
42
+ { "name": "-keyout", "description": "Output file for new private key", "type": "file" },
43
+ { "name": "-config", "description": "OpenSSL config file", "type": "file" },
44
+ { "name": "-addext", "description": "Add X.509 extension", "type": "string" },
45
+ { "name": "-sha256", "description": "Use SHA-256 digest" },
46
+ { "name": "-text", "description": "Print CSR in text form" },
47
+ { "name": "-verify", "description": "Verify signature on CSR" },
48
+ { "name": "-in", "description": "Input CSR file", "type": "file" }
49
+ ],
50
+ "examples": [
51
+ "openssl req -new -key private.key -out request.csr",
52
+ "openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -noenc",
53
+ "openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -subj '/CN=localhost'",
54
+ "openssl req -new -key private.key -out request.csr -subj '/C=US/ST=CA/L=SF/O=MyOrg/CN=example.com'",
55
+ "openssl req -in request.csr -text -noout",
56
+ "openssl req -x509 -newkey ec -pkeyopt ec_paramgen_curve:P-256 -keyout key.pem -out cert.pem -days 365"
57
+ ]
58
+ },
59
+ {
60
+ "name": "x509",
61
+ "description": "Display and manipulate X.509 certificates",
62
+ "options": [
63
+ { "name": "-in", "description": "Input certificate file", "type": "file" },
64
+ { "name": "-out", "description": "Output file", "type": "file" },
65
+ { "name": "-text", "description": "Print certificate in text form" },
66
+ { "name": "-noout", "description": "Don't output the encoded version" },
67
+ { "name": "-dates", "description": "Show start and end dates" },
68
+ { "name": "-subject", "description": "Show subject" },
69
+ { "name": "-issuer", "description": "Show issuer" },
70
+ { "name": "-serial", "description": "Show serial number" },
71
+ { "name": "-fingerprint", "description": "Show fingerprint" },
72
+ { "name": "-enddate", "description": "Show certificate expiry date" },
73
+ { "name": "-checkend", "description": "Check if cert expires within N seconds", "type": "number" },
74
+ { "name": "-req", "description": "Input is a CSR, not a certificate" },
75
+ { "name": "-signkey", "description": "Self-sign with this key", "type": "file" },
76
+ { "name": "-CA", "description": "CA certificate for signing", "type": "file" },
77
+ { "name": "-CAkey", "description": "CA private key", "type": "file" },
78
+ { "name": "-days", "description": "Days of validity", "type": "number" }
79
+ ],
80
+ "examples": [
81
+ "openssl x509 -in cert.pem -text -noout",
82
+ "openssl x509 -in cert.pem -dates -noout",
83
+ "openssl x509 -in cert.pem -subject -issuer -noout",
84
+ "openssl x509 -in cert.pem -fingerprint -sha256 -noout",
85
+ "openssl x509 -in cert.pem -checkend 2592000",
86
+ "openssl x509 -req -in request.csr -CA ca.pem -CAkey ca-key.pem -out cert.pem -days 365"
87
+ ]
88
+ },
89
+ {
90
+ "name": "s_client",
91
+ "description": "SSL/TLS client for testing connections",
92
+ "options": [
93
+ { "name": "-connect", "description": "Host:port to connect to", "type": "string" },
94
+ { "name": "-servername", "description": "SNI hostname", "type": "string" },
95
+ { "name": "-showcerts", "description": "Show full certificate chain" },
96
+ { "name": "-verify_return_error", "description": "Return errors on verification failure" },
97
+ { "name": "-CAfile", "description": "CA certificates file", "type": "file" },
98
+ { "name": "-cert", "description": "Client certificate file", "type": "file" },
99
+ { "name": "-key", "description": "Client private key file", "type": "file" },
100
+ { "name": "-tls1_2", "description": "Use only TLS 1.2" },
101
+ { "name": "-tls1_3", "description": "Use only TLS 1.3" },
102
+ { "name": "-starttls", "description": "Protocol for STARTTLS (smtp, imap, ftp)", "type": "string" }
103
+ ],
104
+ "examples": [
105
+ "openssl s_client -connect example.com:443",
106
+ "openssl s_client -connect example.com:443 -servername example.com",
107
+ "openssl s_client -connect example.com:443 -showcerts",
108
+ "echo | openssl s_client -connect example.com:443 2>/dev/null | openssl x509 -noout -dates",
109
+ "openssl s_client -connect mail.example.com:587 -starttls smtp"
110
+ ]
111
+ },
112
+ {
113
+ "name": "enc",
114
+ "description": "Symmetric cipher encryption/decryption",
115
+ "options": [
116
+ { "name": "-e", "description": "Encrypt (default)" },
117
+ { "name": "-d", "description": "Decrypt" },
118
+ { "name": "-aes-256-cbc", "description": "Use AES-256-CBC cipher" },
119
+ { "name": "-in", "description": "Input file", "type": "file" },
120
+ { "name": "-out", "description": "Output file", "type": "file" },
121
+ { "name": "-pass", "description": "Passphrase source", "type": "string" },
122
+ { "name": "-pbkdf2", "description": "Use PBKDF2 key derivation" },
123
+ { "name": "-iter", "description": "PBKDF2 iterations", "type": "number" },
124
+ { "name": "-base64", "description": "Base64 encode/decode" },
125
+ { "name": "-a", "description": "Base64 encode/decode (alias)" }
126
+ ],
127
+ "examples": [
128
+ "openssl enc -aes-256-cbc -pbkdf2 -in plain.txt -out encrypted.bin",
129
+ "openssl enc -d -aes-256-cbc -pbkdf2 -in encrypted.bin -out plain.txt",
130
+ "echo 'hello' | openssl enc -aes-256-cbc -pbkdf2 -a",
131
+ "openssl enc -aes-256-cbc -pbkdf2 -iter 100000 -salt -in file.txt -out file.enc"
132
+ ]
133
+ },
134
+ {
135
+ "name": "dgst",
136
+ "description": "Message digest / hash computation",
137
+ "options": [
138
+ { "name": "-sha256", "description": "SHA-256 hash" },
139
+ { "name": "-sha512", "description": "SHA-512 hash" },
140
+ { "name": "-md5", "description": "MD5 hash" },
141
+ { "name": "-sign", "description": "Sign digest with private key", "type": "file" },
142
+ { "name": "-verify", "description": "Verify signature with public key", "type": "file" },
143
+ { "name": "-hex", "description": "Output hash in hex" },
144
+ { "name": "-binary", "description": "Output hash in binary" }
145
+ ],
146
+ "examples": [
147
+ "openssl dgst -sha256 file.txt",
148
+ "openssl dgst -sha512 file.txt",
149
+ "openssl dgst -sha256 -sign private.key -out sig.bin file.txt",
150
+ "openssl dgst -sha256 -verify public.key -signature sig.bin file.txt"
151
+ ]
152
+ },
153
+ {
154
+ "name": "pkcs12",
155
+ "description": "PKCS#12 file utility",
156
+ "options": [
157
+ { "name": "-export", "description": "Create PKCS#12 file (combine cert + key)" },
158
+ { "name": "-in", "description": "Input certificate file", "type": "file" },
159
+ { "name": "-inkey", "description": "Input private key file", "type": "file" },
160
+ { "name": "-out", "description": "Output file", "type": "file" },
161
+ { "name": "-certfile", "description": "Additional certificates (CA chain)", "type": "file" },
162
+ { "name": "-nokeys", "description": "Don't output private keys" },
163
+ { "name": "-clcerts", "description": "Only output client certificates" },
164
+ { "name": "-cacerts", "description": "Only output CA certificates" }
165
+ ],
166
+ "examples": [
167
+ "openssl pkcs12 -export -out cert.pfx -inkey key.pem -in cert.pem -certfile ca.pem",
168
+ "openssl pkcs12 -in cert.pfx -out cert.pem -nokeys",
169
+ "openssl pkcs12 -in cert.pfx -out key.pem -nocerts"
170
+ ]
171
+ },
172
+ {
173
+ "name": "rsa",
174
+ "description": "RSA key management",
175
+ "options": [
176
+ { "name": "-in", "description": "Input key file", "type": "file" },
177
+ { "name": "-out", "description": "Output key file", "type": "file" },
178
+ { "name": "-pubout", "description": "Output public key" },
179
+ { "name": "-text", "description": "Print key in text form" },
180
+ { "name": "-check", "description": "Check RSA key consistency" },
181
+ { "name": "-noout", "description": "Don't output the key" }
182
+ ],
183
+ "examples": [
184
+ "openssl rsa -in private.key -pubout -out public.key",
185
+ "openssl rsa -in private.key -text -noout",
186
+ "openssl rsa -in private.key -check"
187
+ ]
188
+ },
189
+ {
190
+ "name": "rand",
191
+ "description": "Generate pseudo-random bytes",
192
+ "options": [
193
+ { "name": "-base64", "description": "Output in base64" },
194
+ { "name": "-hex", "description": "Output in hex" },
195
+ { "name": "-out", "description": "Output file", "type": "file" }
196
+ ],
197
+ "examples": [
198
+ "openssl rand -base64 32",
199
+ "openssl rand -hex 16",
200
+ "openssl rand -out random.bin 256"
201
+ ]
202
+ },
203
+ {
204
+ "name": "verify",
205
+ "description": "Verify a certificate chain",
206
+ "options": [
207
+ { "name": "-CAfile", "description": "CA certificates file", "type": "file" },
208
+ { "name": "-untrusted", "description": "Intermediate certificates", "type": "file" }
209
+ ],
210
+ "examples": [
211
+ "openssl verify -CAfile ca.pem cert.pem",
212
+ "openssl verify -CAfile ca.pem -untrusted intermediate.pem cert.pem"
213
+ ]
214
+ },
215
+ {
216
+ "name": "version",
217
+ "description": "Show OpenSSL version information",
218
+ "options": [
219
+ { "name": "-a", "description": "Show all version info" }
220
+ ],
221
+ "examples": ["openssl version", "openssl version -a"]
222
+ }
223
+ ],
224
+ "globalOptions": [
225
+ { "name": "-help", "description": "Display help for the command" }
226
+ ],
227
+ "examples": [
228
+ "openssl version",
229
+ "openssl genrsa -out key.pem 4096",
230
+ "openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -noenc",
231
+ "openssl x509 -in cert.pem -text -noout",
232
+ "openssl s_client -connect example.com:443",
233
+ "openssl rand -base64 32"
234
+ ],
235
+ "relatedCommands": ["ssh-keygen", "certbot", "gpg", "ssh"],
236
+ "contextEngine": {
237
+ "detectors": [
238
+ {
239
+ "name": "openssl_version",
240
+ "description": "Installed OpenSSL version",
241
+ "command": "openssl version 2>/dev/null",
242
+ "parser": "text",
243
+ "cacheFor": 3600,
244
+ "requiresCmd": "openssl"
245
+ },
246
+ {
247
+ "name": "available_ciphers",
248
+ "description": "Available cipher suites",
249
+ "command": "openssl ciphers -v 2>/dev/null | head -30",
250
+ "parser": "lines",
251
+ "cacheFor": 3600,
252
+ "requiresCmd": "openssl"
253
+ },
254
+ {
255
+ "name": "local_certificates",
256
+ "description": "Certificate files in /etc/ssl/certs/ or current directory",
257
+ "command": "ls /etc/ssl/certs/*.pem 2>/dev/null | head -20 || ls *.pem *.crt *.cert 2>/dev/null",
258
+ "parser": "lines",
259
+ "cacheFor": 120,
260
+ "requiresCmd": "openssl"
261
+ },
262
+ {
263
+ "name": "local_keys",
264
+ "description": "Key files in current directory",
265
+ "command": "ls *.key *.pem 2>/dev/null | head -20",
266
+ "parser": "lines",
267
+ "cacheFor": 60,
268
+ "requiresCmd": "openssl"
269
+ },
270
+ {
271
+ "name": "ca_bundle_path",
272
+ "description": "System CA bundle location",
273
+ "command": "openssl version -d 2>/dev/null | awk '{print $2}' | tr -d '\"'",
274
+ "parser": "text",
275
+ "cacheFor": 3600,
276
+ "requiresCmd": "openssl"
277
+ },
278
+ {
279
+ "name": "supported_curves",
280
+ "description": "Supported elliptic curves",
281
+ "command": "openssl ecparam -list_curves 2>/dev/null | head -15",
282
+ "parser": "lines",
283
+ "cacheFor": 3600,
284
+ "requiresCmd": "openssl"
285
+ }
286
+ ]
287
+ }
288
+ }
@@ -0,0 +1,92 @@
1
+ {
2
+ "name": "packer",
3
+ "description": "HashiCorp Packer - automated machine image builder",
4
+ "category": "DevOps/Infra",
5
+ "platforms": ["linux", "macos", "windows"],
6
+ "shells": ["bash", "zsh", "powershell", "fish"],
7
+ "subcommands": [
8
+ { "name": "build", "description": "Build image from template", "args": [{ "name": "template", "description": "Template file or directory", "required": true }], "options": [
9
+ { "name": "-var", "description": "Set variable", "takesValue": true },
10
+ { "name": "-var-file", "description": "Variable file", "takesValue": true },
11
+ { "name": "-only", "description": "Build only listed builds", "takesValue": true },
12
+ { "name": "-except", "description": "Skip listed builds", "takesValue": true },
13
+ { "name": "-parallel-builds", "description": "Max parallel builds (0=unlimited)", "takesValue": true },
14
+ { "name": "-on-error", "description": "On error (cleanup, abort, ask, run-cleanup-provisioner)", "takesValue": true },
15
+ { "name": "-force", "description": "Force build even if artifacts exist" },
16
+ { "name": "-debug", "description": "Debug mode" },
17
+ { "name": "-timestamp-ui", "description": "Timestamp UI output" },
18
+ { "name": "-color", "description": "Colorize output", "takesValue": true }
19
+ ]},
20
+ { "name": "validate", "description": "Validate template", "args": [{ "name": "template", "description": "Template file or directory", "required": true }], "options": [
21
+ { "name": "-var", "description": "Set variable", "takesValue": true },
22
+ { "name": "-var-file", "description": "Variable file", "takesValue": true },
23
+ { "name": "-syntax-only", "description": "Only check syntax" }
24
+ ]},
25
+ { "name": "init", "description": "Install missing plugins", "args": [{ "name": "template", "description": "Template directory", "required": true }], "options": [
26
+ { "name": "-upgrade", "description": "Upgrade already installed plugins" }
27
+ ]},
28
+ { "name": "inspect", "description": "Inspect template", "args": [{ "name": "template", "description": "Template file", "required": true }] },
29
+ { "name": "fmt", "description": "Format HCL2 template files", "options": [
30
+ { "name": "-check", "description": "Check if files are formatted" },
31
+ { "name": "-diff", "description": "Show diff" },
32
+ { "name": "-write", "description": "Write changes", "takesValue": true },
33
+ { "name": "-recursive", "description": "Format recursively" }
34
+ ]},
35
+ { "name": "hcl2_upgrade", "description": "Convert JSON template to HCL2", "args": [{ "name": "template", "description": "JSON template", "required": true }] },
36
+ { "name": "plugins", "description": "Plugin management", "subcommands": [
37
+ { "name": "installed", "description": "List installed plugins" },
38
+ { "name": "required", "description": "List required plugins" },
39
+ { "name": "install", "description": "Install plugin" },
40
+ { "name": "remove", "description": "Remove plugin" }
41
+ ]},
42
+ { "name": "version", "description": "Show version" }
43
+ ],
44
+ "globalOptions": [
45
+ { "name": "--help", "shorthand": "-h", "description": "Show help" },
46
+ { "name": "--version", "description": "Show version" }
47
+ ],
48
+ "examples": [
49
+ { "command": "packer build .", "description": "Build from current directory" },
50
+ { "command": "packer build -var 'region=us-east-1' aws.pkr.hcl", "description": "Build with variable" },
51
+ { "command": "packer validate .", "description": "Validate template" },
52
+ { "command": "packer init .", "description": "Install plugins" },
53
+ { "command": "packer fmt -recursive .", "description": "Format all templates" },
54
+ { "command": "packer build -only 'amazon-ebs.*' .", "description": "Build specific source" },
55
+ { "command": "packer inspect template.pkr.hcl", "description": "Inspect template" }
56
+ ],
57
+ "relatedCommands": ["terraform", "ansible", "vagrant"],
58
+ "contextEngine": {
59
+ "detectors": [
60
+ {
61
+ "name": "templates",
62
+ "description": "Packer template files",
63
+ "command": "find . -maxdepth 2 \\( -name '*.pkr.hcl' -o -name '*.pkr.json' -o -name 'packer.json' \\) 2>/dev/null | head -10",
64
+ "parser": "lines",
65
+ "cacheFor": 30
66
+ },
67
+ {
68
+ "name": "plugins",
69
+ "description": "Installed plugins",
70
+ "command": "packer plugins installed 2>/dev/null",
71
+ "parser": "lines",
72
+ "cacheFor": 120,
73
+ "requiresCmd": "packer"
74
+ },
75
+ {
76
+ "name": "variables",
77
+ "description": "Variable files",
78
+ "command": "find . -maxdepth 2 -name '*.pkrvars.hcl' -o -name '*.auto.pkrvars.hcl' 2>/dev/null | head -10",
79
+ "parser": "lines",
80
+ "cacheFor": 30
81
+ },
82
+ {
83
+ "name": "version",
84
+ "description": "Packer version",
85
+ "command": "packer version 2>/dev/null",
86
+ "parser": "text",
87
+ "cacheFor": 300,
88
+ "requiresCmd": "packer"
89
+ }
90
+ ]
91
+ }
92
+ }
@@ -0,0 +1,82 @@
1
+ {
2
+ "name": "pacman",
3
+ "description": "Package manager for Arch Linux and derivatives",
4
+ "category": "Package Managers",
5
+ "platforms": ["linux"],
6
+ "shells": ["bash", "zsh", "fish"],
7
+ "subcommands": [],
8
+ "globalOptions": [
9
+ { "name": "-S", "description": "Sync / Install packages", "takesValue": true },
10
+ { "name": "-Sy", "description": "Sync database" },
11
+ { "name": "-Syu", "description": "Full system upgrade" },
12
+ { "name": "-Syyu", "description": "Force refresh and upgrade" },
13
+ { "name": "-Ss", "description": "Search remote packages", "takesValue": true },
14
+ { "name": "-Si", "description": "Remote package info", "takesValue": true },
15
+ { "name": "-Sc", "description": "Clean old cached packages" },
16
+ { "name": "-Scc", "description": "Clean all cached packages" },
17
+ { "name": "-Sg", "description": "List package groups" },
18
+ { "name": "-Sw", "description": "Download without installing" },
19
+ { "name": "-R", "description": "Remove package", "takesValue": true },
20
+ { "name": "-Rs", "description": "Remove with unused dependencies", "takesValue": true },
21
+ { "name": "-Rns", "description": "Remove with deps and config", "takesValue": true },
22
+ { "name": "-Rdd", "description": "Remove skipping dep checks", "takesValue": true },
23
+ { "name": "-Q", "description": "Query installed packages" },
24
+ { "name": "-Qs", "description": "Search installed packages", "takesValue": true },
25
+ { "name": "-Qi", "description": "Installed package info", "takesValue": true },
26
+ { "name": "-Ql", "description": "Files owned by package", "takesValue": true },
27
+ { "name": "-Qe", "description": "Explicitly installed packages" },
28
+ { "name": "-Qm", "description": "Foreign (AUR) packages" },
29
+ { "name": "-Qdt", "description": "Orphaned packages" },
30
+ { "name": "-Qo", "description": "Which package owns a file", "takesValue": true },
31
+ { "name": "-U", "description": "Install local package file", "takesValue": true },
32
+ { "name": "-F", "description": "File database query" },
33
+ { "name": "-Fy", "description": "Refresh file database" },
34
+ { "name": "--noconfirm", "description": "Skip confirmation prompts" },
35
+ { "name": "--needed", "description": "Skip already installed" },
36
+ { "name": "--overwrite", "description": "Overwrite conflicting files" },
37
+ { "name": "--color", "description": "Color mode (auto, always, never)", "takesValue": true },
38
+ { "name": "--cachedir", "description": "Alternate cache directory", "takesValue": true }
39
+ ],
40
+ "examples": [
41
+ { "command": "sudo pacman -Syu", "description": "Full system upgrade" },
42
+ { "command": "sudo pacman -S nginx", "description": "Install package" },
43
+ { "command": "sudo pacman -S --noconfirm git curl", "description": "Install without confirm" },
44
+ { "command": "pacman -Ss redis", "description": "Search packages" },
45
+ { "command": "pacman -Qi nginx", "description": "Package info" },
46
+ { "command": "pacman -Ql nginx", "description": "List package files" },
47
+ { "command": "sudo pacman -Rns nginx", "description": "Full removal" },
48
+ { "command": "pacman -Qe", "description": "Explicitly installed" },
49
+ { "command": "pacman -Qdt", "description": "Find orphans" },
50
+ { "command": "sudo pacman -Sc", "description": "Clean cache" },
51
+ { "command": "pacman -Qo /usr/bin/vim", "description": "Find owning package" }
52
+ ],
53
+ "relatedCommands": ["yay", "paru"],
54
+ "contextEngine": {
55
+ "detectors": [
56
+ {
57
+ "name": "installed",
58
+ "description": "Explicitly installed packages",
59
+ "command": "pacman -Qe 2>/dev/null | tail -20",
60
+ "parser": "lines",
61
+ "cacheFor": 120,
62
+ "requiresCmd": "pacman"
63
+ },
64
+ {
65
+ "name": "orphans",
66
+ "description": "Orphaned packages",
67
+ "command": "pacman -Qdt 2>/dev/null | head -10",
68
+ "parser": "lines",
69
+ "cacheFor": 120,
70
+ "requiresCmd": "pacman"
71
+ },
72
+ {
73
+ "name": "foreign",
74
+ "description": "AUR/foreign packages",
75
+ "command": "pacman -Qm 2>/dev/null | head -10",
76
+ "parser": "lines",
77
+ "cacheFor": 120,
78
+ "requiresCmd": "pacman"
79
+ }
80
+ ]
81
+ }
82
+ }