@enjoys/context-engine 1.0.0 → 1.0.1

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 (105) hide show
  1. package/data/commands/adb.json +322 -0
  2. package/data/commands/alembic.json +301 -0
  3. package/data/commands/artisan.json +277 -0
  4. package/data/commands/atlas.json +426 -0
  5. package/data/commands/auth0.json +648 -0
  6. package/data/commands/bat.json +84 -0
  7. package/data/commands/bundle.json +321 -0
  8. package/data/commands/composer.json +507 -0
  9. package/data/commands/dart.json +216 -0
  10. package/data/commands/dbmate.json +257 -0
  11. package/data/commands/docker-compose.json +384 -0
  12. package/data/commands/drizzle-kit.json +217 -0
  13. package/data/commands/expo.json +65 -0
  14. package/data/commands/fastlane.json +243 -0
  15. package/data/commands/fd.json +86 -0
  16. package/data/commands/flutter.json +298 -0
  17. package/data/commands/flyway.json +261 -0
  18. package/data/commands/fzf.json +103 -0
  19. package/data/commands/gem.json +267 -0
  20. package/data/commands/jq.json +100 -0
  21. package/data/commands/k9s.json +62 -0
  22. package/data/commands/liquibase.json +399 -0
  23. package/data/commands/manifest.json +619 -0
  24. package/data/commands/minikube.json +60 -0
  25. package/data/commands/ng.json +64 -0
  26. package/data/commands/nuxt.json +60 -0
  27. package/data/commands/php.json +157 -0
  28. package/data/commands/pm2.json +259 -0
  29. package/data/commands/pod.json +175 -0
  30. package/data/commands/prisma.json +257 -0
  31. package/data/commands/rails.json +372 -0
  32. package/data/commands/rake.json +360 -0
  33. package/data/commands/react-native.json +57 -0
  34. package/data/commands/rg.json +103 -0
  35. package/data/commands/rspec.json +257 -0
  36. package/data/commands/ruby.json +108 -0
  37. package/data/commands/sequelize.json +342 -0
  38. package/data/commands/snyk.json +442 -0
  39. package/data/commands/sonar-scanner.json +219 -0
  40. package/data/commands/stripe.json +314 -0
  41. package/data/commands/symfony.json +449 -0
  42. package/data/commands/tmux.json +197 -0
  43. package/data/commands/trivy.json +367 -0
  44. package/data/commands/twilio.json +382 -0
  45. package/data/commands/typeorm.json +262 -0
  46. package/data/commands/vue.json +60 -0
  47. package/data/commands/wp.json +857 -0
  48. package/data/commands/xcodebuild.json +141 -0
  49. package/data/commands/yq.json +57 -0
  50. package/data/completion/bash.json +1184 -0
  51. package/data/completion/c.json +1067 -0
  52. package/data/completion/cpp.json +824 -0
  53. package/data/completion/csharp.json +860 -0
  54. package/data/completion/dockerfile.json +536 -0
  55. package/data/completion/go.json +1346 -0
  56. package/data/completion/html.json +806 -0
  57. package/data/completion/java.json +1112 -0
  58. package/data/completion/javascript.json +914 -0
  59. package/data/completion/lua.json +968 -0
  60. package/data/completion/php.json +1535 -0
  61. package/data/completion/python.json +1427 -0
  62. package/data/completion/ruby.json +1531 -0
  63. package/data/completion/rust.json +698 -0
  64. package/data/completion/sql.json +887 -0
  65. package/data/completion/toml.json +428 -0
  66. package/data/completion/typescript.json +338 -0
  67. package/data/completion/yaml.json +563 -0
  68. package/data/defination/bash.json +565 -0
  69. package/data/defination/c.json +865 -0
  70. package/data/defination/cpp.json +348 -0
  71. package/data/defination/csharp.json +144 -0
  72. package/data/defination/dockerfile.json +113 -0
  73. package/data/defination/go.json +561 -0
  74. package/data/defination/html.json +559 -0
  75. package/data/defination/java.json +184 -0
  76. package/data/defination/javascript.json +265 -0
  77. package/data/defination/lua.json +181 -0
  78. package/data/defination/php.json +726 -0
  79. package/data/defination/python.json +717 -0
  80. package/data/defination/ruby.json +670 -0
  81. package/data/defination/rust.json +207 -0
  82. package/data/defination/sql.json +473 -0
  83. package/data/defination/toml.json +251 -0
  84. package/data/defination/typescript.json +29 -0
  85. package/data/defination/yaml.json +197 -0
  86. package/data/hover/bash.json +245 -0
  87. package/data/hover/c.json +265 -0
  88. package/data/hover/cpp.json +210 -0
  89. package/data/hover/csharp.json +290 -0
  90. package/data/hover/dockerfile.json +145 -0
  91. package/data/hover/go.json +580 -0
  92. package/data/hover/html.json +250 -0
  93. package/data/hover/java.json +395 -0
  94. package/data/hover/javascript.json +330 -0
  95. package/data/hover/lua.json +265 -0
  96. package/data/hover/php.json +300 -0
  97. package/data/hover/python.json +380 -0
  98. package/data/hover/ruby.json +265 -0
  99. package/data/hover/rust.json +275 -0
  100. package/data/hover/sql.json +230 -0
  101. package/data/hover/toml.json +145 -0
  102. package/data/hover/typescript.json +120 -0
  103. package/data/hover/yaml.json +165 -0
  104. package/data/manifest.json +242 -0
  105. package/package.json +1 -1
@@ -0,0 +1,257 @@
1
+ {
2
+ "name": "rspec",
3
+ "description": "RSpec is a Behaviour-Driven Development (BDD) testing framework for Ruby that provides expressive syntax, powerful matchers, mocking/stubbing, and detailed output for writing and running automated tests.",
4
+ "category": "ruby-ecosystem",
5
+ "platforms": ["linux", "macos", "windows"],
6
+ "shells": ["bash", "zsh", "fish", "powershell"],
7
+ "subcommands": [
8
+ {
9
+ "name": "init",
10
+ "description": "Initialize a project for RSpec by creating .rspec config and spec/spec_helper.rb files",
11
+ "args": [],
12
+ "options": [],
13
+ "examples": [
14
+ "rspec --init"
15
+ ]
16
+ },
17
+ {
18
+ "name": "spec/",
19
+ "description": "Run all spec files in the spec/ directory",
20
+ "args": [{"name": "files_or_dirs", "type": "string", "required": false, "description": "Specific spec files, directories, or line references to run"}],
21
+ "options": [
22
+ {"name": "--format", "short": "-f", "description": "Output format: progress (default), documentation, html, json", "type": "string"},
23
+ {"name": "--color", "description": "Enable color output"},
24
+ {"name": "--no-color", "description": "Disable color output"},
25
+ {"name": "--profile", "short": "-p", "description": "Show the N slowest examples (default: 10)", "type": "integer"},
26
+ {"name": "--fail-fast", "description": "Stop running after the first failure"},
27
+ {"name": "--order", "description": "Run examples in specified order: defined, random, rand:SEED", "type": "string"},
28
+ {"name": "--seed", "description": "Equivalent to --order rand:SEED for reproducible random order", "type": "integer"},
29
+ {"name": "--tag", "short": "-t", "description": "Run only examples with the specified tag", "type": "string"},
30
+ {"name": "--exclude-tag", "description": "Exclude examples with the specified tag", "type": "string"},
31
+ {"name": "--example", "short": "-e", "description": "Run examples whose full description matches the given string", "type": "string"},
32
+ {"name": "--pattern", "short": "-P", "description": "Load files matching the given pattern (default: spec/**/*_spec.rb)", "type": "string"},
33
+ {"name": "--exclude-pattern", "description": "Exclude files matching the pattern from loading", "type": "string"},
34
+ {"name": "--dry-run", "description": "Print the formatter output without running any examples"},
35
+ {"name": "--warnings", "short": "-w", "description": "Enable Ruby warnings"},
36
+ {"name": "--require", "short": "-r", "description": "Require a Ruby file before loading spec files", "type": "string"},
37
+ {"name": "--only-failures", "description": "Run only previously failed examples"},
38
+ {"name": "--next-failure", "description": "Run only the next failure (equivalent to --only-failures --fail-fast)"},
39
+ {"name": "--backtrace", "short": "-b", "description": "Enable full backtrace instead of filtered"},
40
+ {"name": "--out", "short": "-o", "description": "Write output to a file instead of STDOUT", "type": "string"},
41
+ {"name": "--bisect", "description": "Find the minimal set of examples that reproduce a failure"},
42
+ {"name": "--force-color", "description": "Force color output even when not connected to a TTY"}
43
+ ],
44
+ "examples": [
45
+ "rspec",
46
+ "rspec spec/models/",
47
+ "rspec spec/models/user_spec.rb",
48
+ "rspec spec/models/user_spec.rb:42",
49
+ "rspec --format documentation",
50
+ "rspec --tag smoke",
51
+ "rspec --fail-fast --order random"
52
+ ]
53
+ },
54
+ {
55
+ "name": "run single file",
56
+ "description": "Execute specs from a single file, optionally at a specific line",
57
+ "args": [{"name": "file", "type": "string", "required": true, "description": "Path to the spec file, optionally with :LINE_NUMBER"}],
58
+ "options": [
59
+ {"name": "--format", "short": "-f", "description": "Output format", "type": "string"},
60
+ {"name": "--fail-fast", "description": "Abort after first failure"},
61
+ {"name": "--backtrace", "short": "-b", "description": "Show full backtrace"}
62
+ ],
63
+ "examples": [
64
+ "rspec spec/models/user_spec.rb",
65
+ "rspec spec/models/user_spec.rb:25",
66
+ "rspec spec/controllers/users_controller_spec.rb:100 --format documentation"
67
+ ]
68
+ },
69
+ {
70
+ "name": "run by tag",
71
+ "description": "Run only examples annotated with specific tags or metadata",
72
+ "args": [],
73
+ "options": [
74
+ {"name": "--tag", "short": "-t", "description": "Include examples with this tag", "type": "string"},
75
+ {"name": "--exclude-tag", "description": "Exclude examples with this tag", "type": "string"}
76
+ ],
77
+ "examples": [
78
+ "rspec --tag focus",
79
+ "rspec --tag type:feature",
80
+ "rspec --tag ~slow",
81
+ "rspec --tag smoke --tag regression",
82
+ "rspec --exclude-tag flaky"
83
+ ]
84
+ },
85
+ {
86
+ "name": "run by example name",
87
+ "description": "Run examples whose full description matches a string or pattern",
88
+ "args": [],
89
+ "options": [
90
+ {"name": "--example", "short": "-e", "description": "Run examples matching this string/regex", "type": "string"}
91
+ ],
92
+ "examples": [
93
+ "rspec -e 'creates a new user'",
94
+ "rspec -e 'validates'",
95
+ "rspec -e 'authentication' --format documentation"
96
+ ]
97
+ },
98
+ {
99
+ "name": "bisect",
100
+ "description": "Use bisection to find the minimal set of examples that reproduce an ordering-dependent failure",
101
+ "args": [],
102
+ "options": [
103
+ {"name": "--seed", "description": "Seed for the random order that produced the failure", "type": "integer"},
104
+ {"name": "--bisect", "description": "Enable bisect mode"},
105
+ {"name": "--format", "short": "-f", "description": "Output format", "type": "string"}
106
+ ],
107
+ "examples": [
108
+ "rspec --bisect --seed 12345",
109
+ "rspec --bisect=verbose --seed 12345"
110
+ ]
111
+ },
112
+ {
113
+ "name": "format output",
114
+ "description": "Run specs with different output formatters for CI, documentation, or debugging",
115
+ "args": [],
116
+ "options": [
117
+ {"name": "--format", "short": "-f", "description": "Formatter: progress, documentation, html, json, failures", "type": "string"},
118
+ {"name": "--out", "short": "-o", "description": "Output file for the formatter", "type": "string"}
119
+ ],
120
+ "examples": [
121
+ "rspec --format documentation",
122
+ "rspec --format html --out report.html",
123
+ "rspec --format json --out results.json",
124
+ "rspec --format progress --format json --out results.json",
125
+ "rspec -f documentation -f html -o report.html"
126
+ ]
127
+ },
128
+ {
129
+ "name": "only-failures",
130
+ "description": "Re-run only the examples that failed in the previous run",
131
+ "args": [],
132
+ "options": [
133
+ {"name": "--only-failures", "description": "Run only previously failed examples"},
134
+ {"name": "--next-failure", "description": "Run only the next failure, then stop"}
135
+ ],
136
+ "examples": [
137
+ "rspec --only-failures",
138
+ "rspec --next-failure"
139
+ ]
140
+ },
141
+ {
142
+ "name": "profile",
143
+ "description": "Display the slowest examples to identify performance bottlenecks",
144
+ "args": [],
145
+ "options": [
146
+ {"name": "--profile", "short": "-p", "description": "Show N slowest examples", "type": "integer"}
147
+ ],
148
+ "examples": [
149
+ "rspec --profile",
150
+ "rspec --profile 20",
151
+ "rspec spec/features/ --profile 5"
152
+ ]
153
+ },
154
+ {
155
+ "name": "random order",
156
+ "description": "Run examples in random order to detect order-dependent failures",
157
+ "args": [],
158
+ "options": [
159
+ {"name": "--order", "description": "Ordering method: defined, random, rand:SEED, recently-modified", "type": "string"},
160
+ {"name": "--seed", "description": "Set the random seed for reproducible ordering", "type": "integer"}
161
+ ],
162
+ "examples": [
163
+ "rspec --order random",
164
+ "rspec --order random --seed 54321",
165
+ "rspec --order defined",
166
+ "rspec --seed 12345"
167
+ ]
168
+ },
169
+ {
170
+ "name": "parallel specs",
171
+ "description": "Run specs in parallel using parallel_tests gem integration (when configured)",
172
+ "args": [],
173
+ "options": [
174
+ {"name": "--pattern", "short": "-P", "description": "File pattern to match", "type": "string"}
175
+ ],
176
+ "examples": [
177
+ "parallel_rspec spec/",
178
+ "parallel_rspec spec/models/",
179
+ "parallel_rspec --group-by filesize"
180
+ ]
181
+ },
182
+ {
183
+ "name": "dry-run",
184
+ "description": "Print formatted output without actually running any examples",
185
+ "args": [],
186
+ "options": [
187
+ {"name": "--dry-run", "description": "Do not run examples, just print them"},
188
+ {"name": "--format", "short": "-f", "description": "Output format", "type": "string"}
189
+ ],
190
+ "examples": [
191
+ "rspec --dry-run",
192
+ "rspec --dry-run --format documentation",
193
+ "rspec spec/models/ --dry-run"
194
+ ]
195
+ }
196
+ ],
197
+ "globalOptions": [
198
+ {"name": "--format", "short": "-f", "description": "Choose output format: progress (default), documentation, html, json", "type": "string"},
199
+ {"name": "--color", "description": "Enable color in the output"},
200
+ {"name": "--no-color", "description": "Disable color in the output"},
201
+ {"name": "--force-color", "description": "Force color output even without a TTY"},
202
+ {"name": "--profile", "short": "-p", "description": "Show the N slowest examples and example groups", "type": "integer"},
203
+ {"name": "--no-profile", "description": "Disable profiling of slow examples"},
204
+ {"name": "--fail-fast", "description": "Abort the run after the first failure"},
205
+ {"name": "--failure-exit-code", "description": "Override the exit code used when there are failing specs", "type": "integer"},
206
+ {"name": "--order", "description": "Run examples in the specified order: defined, random, rand:SEED, recently-modified", "type": "string"},
207
+ {"name": "--seed", "description": "Random seed for ordering (equivalent to --order rand:SEED)", "type": "integer"},
208
+ {"name": "--bisect", "description": "Find the minimal reproduction set for ordering-dependent failures"},
209
+ {"name": "--tag", "short": "-t", "description": "Run only examples with the given tag (use ~tag to exclude)", "type": "string"},
210
+ {"name": "--exclude-tag", "description": "Exclude examples with the given tag", "type": "string"},
211
+ {"name": "--example", "short": "-e", "description": "Run examples whose full nested description matches this string", "type": "string"},
212
+ {"name": "--pattern", "short": "-P", "description": "Glob pattern to load spec files (default: spec/**/*_spec.rb)", "type": "string"},
213
+ {"name": "--exclude-pattern", "description": "Glob pattern to exclude from loading", "type": "string"},
214
+ {"name": "--dry-run", "description": "Print formatter output without running examples"},
215
+ {"name": "--warnings", "short": "-w", "description": "Enable Ruby warnings"},
216
+ {"name": "--require", "short": "-r", "description": "Require a Ruby file before loading specs", "type": "string"},
217
+ {"name": "--init", "description": "Initialize a project with .rspec and spec/spec_helper.rb"},
218
+ {"name": "--only-failures", "description": "Filter to run only examples that failed on the previous run"},
219
+ {"name": "--next-failure", "description": "Apply --only-failures and --fail-fast together"},
220
+ {"name": "--backtrace", "short": "-b", "description": "Enable full backtrace output"},
221
+ {"name": "--out", "short": "-o", "description": "Write output to a file instead of $stdout", "type": "string"},
222
+ {"name": "--deprecation-out", "description": "Write deprecation warnings to a file", "type": "string"},
223
+ {"name": "--default-path", "description": "Set the default path where RSpec looks for spec files", "type": "string"},
224
+ {"name": "--error-exit-code", "description": "Exit code to use when there is an error loading specs", "type": "integer"},
225
+ {"name": "--version", "short": "-V", "description": "Display the installed RSpec version"},
226
+ {"name": "--help", "short": "-h", "description": "Display help information"}
227
+ ],
228
+ "examples": [
229
+ "rspec",
230
+ "rspec spec/models/user_spec.rb",
231
+ "rspec spec/models/user_spec.rb:42",
232
+ "rspec --format documentation",
233
+ "rspec --format json --out results.json",
234
+ "rspec --format html --out report.html",
235
+ "rspec --tag focus",
236
+ "rspec --tag ~slow",
237
+ "rspec -e 'creates a user'",
238
+ "rspec --fail-fast --order random",
239
+ "rspec --only-failures",
240
+ "rspec --next-failure",
241
+ "rspec --profile 10",
242
+ "rspec --bisect --seed 12345",
243
+ "rspec --dry-run --format documentation",
244
+ "rspec spec/ --format progress --format json --out ci-results.json"
245
+ ],
246
+ "relatedCommands": ["ruby", "rake", "bundle"],
247
+ "contextEngine": {
248
+ "detectors": [
249
+ {"name": "rspec_config_exists", "description": "Detect .rspec configuration file in the current directory", "command": "test -f .rspec && echo 'found' || echo 'not_found'", "parser": "lines", "cacheFor": 60},
250
+ {"name": "spec_dir_exists", "description": "Detect spec/ directory indicating RSpec is in use", "command": "test -d spec && echo 'found' || echo 'not_found'", "parser": "lines", "cacheFor": 60},
251
+ {"name": "spec_helper_exists", "description": "Detect spec/spec_helper.rb or spec/rails_helper.rb", "command": "test -f spec/spec_helper.rb && echo 'spec_helper' || (test -f spec/rails_helper.rb && echo 'rails_helper' || echo 'not_found')", "parser": "lines", "cacheFor": 60},
252
+ {"name": "rspec_version", "description": "Get installed RSpec version", "command": "rspec --version 2>/dev/null | head -1", "parser": "lines", "cacheFor": 300},
253
+ {"name": "rspec_in_gemfile", "description": "Check if rspec is listed in the Gemfile", "command": "grep -E 'rspec|rspec-rails' Gemfile 2>/dev/null || echo 'not_found'", "parser": "lines", "cacheFor": 60},
254
+ {"name": "spec_file_count", "description": "Count the number of spec files", "command": "find spec -name '*_spec.rb' 2>/dev/null | wc -l", "parser": "lines", "cacheFor": 30}
255
+ ]
256
+ }
257
+ }
@@ -0,0 +1,108 @@
1
+ {
2
+ "name": "ruby",
3
+ "description": "Ruby Programming Language",
4
+ "category": "language",
5
+ "platforms": [
6
+ "linux",
7
+ "macos",
8
+ "windows"
9
+ ],
10
+ "shells": [
11
+ "bash",
12
+ "zsh",
13
+ "fish",
14
+ "powershell"
15
+ ],
16
+ "subcommands": [],
17
+ "globalOptions": [
18
+ {
19
+ "name": "--version",
20
+ "short": "-v",
21
+ "description": "print version number, then turn on inspect mode"
22
+ },
23
+ {
24
+ "name": "--help",
25
+ "short": "-h",
26
+ "description": "show this message, -h for short message"
27
+ },
28
+ {
29
+ "name": "-e",
30
+ "description": "one line of script. Several -e's allowed. Omit [programfile]",
31
+ "type": "string"
32
+ },
33
+ {
34
+ "name": "-r",
35
+ "description": "require the library before executing your script",
36
+ "type": "string"
37
+ },
38
+ {
39
+ "name": "-I",
40
+ "description": "specify $LOAD_PATH directory (may be used more than once)",
41
+ "type": "path"
42
+ },
43
+ {
44
+ "name": "-c",
45
+ "description": "check syntax only"
46
+ },
47
+ {
48
+ "name": "-w",
49
+ "description": "turn warnings on for your script"
50
+ },
51
+ {
52
+ "name": "-W",
53
+ "description": "set warning level; 0=silence, 1=medium, 2=verbose",
54
+ "type": "number"
55
+ },
56
+ {
57
+ "name": "-d",
58
+ "description": "set debugging flags (set $DEBUG to true)"
59
+ },
60
+ {
61
+ "name": "-0",
62
+ "description": "specify record separator (\\0, if no argument)",
63
+ "type": "string"
64
+ },
65
+ {
66
+ "name": "-E",
67
+ "description": "specify the default external and internal character encodings",
68
+ "type": "string"
69
+ },
70
+ {
71
+ "name": "-U",
72
+ "description": "set default internal encoding to UTF-8"
73
+ },
74
+ {
75
+ "name": "--jit",
76
+ "description": "enable JIT compiler"
77
+ }
78
+ ],
79
+ "examples": [
80
+ "ruby -v",
81
+ "ruby script.rb",
82
+ "ruby -e 'puts \"Hello World\"'",
83
+ "ruby -cw my_script.rb"
84
+ ],
85
+ "relatedCommands": [
86
+ "gem",
87
+ "bundle",
88
+ "rails"
89
+ ],
90
+ "contextEngine": {
91
+ "detectors": [
92
+ {
93
+ "name": "version",
94
+ "description": "Ruby Version",
95
+ "command": "ruby -v 2>/dev/null",
96
+ "parser": "text",
97
+ "cacheFor": 3600
98
+ },
99
+ {
100
+ "name": "scripts",
101
+ "description": "Ruby scripts in current directory",
102
+ "command": "ls *.rb 2>/dev/null | head -10",
103
+ "parser": "lines",
104
+ "cacheFor": 30
105
+ }
106
+ ]
107
+ }
108
+ }