@enjoys/context-engine 1.0.0 → 1.0.2

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 (112) 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/btop.json +59 -0
  8. package/data/commands/bundle.json +321 -0
  9. package/data/commands/composer.json +507 -0
  10. package/data/commands/dart.json +216 -0
  11. package/data/commands/dbmate.json +257 -0
  12. package/data/commands/docker-compose.json +384 -0
  13. package/data/commands/drizzle-kit.json +217 -0
  14. package/data/commands/expo.json +65 -0
  15. package/data/commands/fastlane.json +243 -0
  16. package/data/commands/fd.json +86 -0
  17. package/data/commands/flutter.json +298 -0
  18. package/data/commands/flyway.json +261 -0
  19. package/data/commands/fzf.json +103 -0
  20. package/data/commands/gem.json +267 -0
  21. package/data/commands/htop.json +56 -0
  22. package/data/commands/jq.json +100 -0
  23. package/data/commands/k9s.json +62 -0
  24. package/data/commands/linux.json +3007 -0
  25. package/data/commands/liquibase.json +399 -0
  26. package/data/commands/manifest.json +619 -0
  27. package/data/commands/minikube.json +60 -0
  28. package/data/commands/ng.json +64 -0
  29. package/data/commands/nuxt.json +60 -0
  30. package/data/commands/nvim.json +91 -0
  31. package/data/commands/php.json +157 -0
  32. package/data/commands/pm2.json +259 -0
  33. package/data/commands/pod.json +175 -0
  34. package/data/commands/prisma.json +257 -0
  35. package/data/commands/rails.json +372 -0
  36. package/data/commands/rake.json +360 -0
  37. package/data/commands/react-native.json +57 -0
  38. package/data/commands/rg.json +103 -0
  39. package/data/commands/rspec.json +257 -0
  40. package/data/commands/ruby.json +108 -0
  41. package/data/commands/screen.json +101 -0
  42. package/data/commands/sequelize.json +342 -0
  43. package/data/commands/snyk.json +442 -0
  44. package/data/commands/sonar-scanner.json +219 -0
  45. package/data/commands/stripe.json +314 -0
  46. package/data/commands/symfony.json +449 -0
  47. package/data/commands/tmux.json +197 -0
  48. package/data/commands/top.json +61 -0
  49. package/data/commands/trivy.json +367 -0
  50. package/data/commands/twilio.json +382 -0
  51. package/data/commands/typeorm.json +262 -0
  52. package/data/commands/vim.json +85 -0
  53. package/data/commands/vue.json +60 -0
  54. package/data/commands/wp.json +857 -0
  55. package/data/commands/xcodebuild.json +141 -0
  56. package/data/commands/yq.json +57 -0
  57. package/data/completion/bash.json +1184 -0
  58. package/data/completion/c.json +1067 -0
  59. package/data/completion/cpp.json +824 -0
  60. package/data/completion/csharp.json +860 -0
  61. package/data/completion/dockerfile.json +536 -0
  62. package/data/completion/go.json +1346 -0
  63. package/data/completion/html.json +806 -0
  64. package/data/completion/java.json +1112 -0
  65. package/data/completion/javascript.json +914 -0
  66. package/data/completion/lua.json +968 -0
  67. package/data/completion/php.json +1535 -0
  68. package/data/completion/python.json +1427 -0
  69. package/data/completion/ruby.json +1531 -0
  70. package/data/completion/rust.json +698 -0
  71. package/data/completion/sql.json +887 -0
  72. package/data/completion/toml.json +428 -0
  73. package/data/completion/typescript.json +338 -0
  74. package/data/completion/yaml.json +563 -0
  75. package/data/defination/bash.json +565 -0
  76. package/data/defination/c.json +865 -0
  77. package/data/defination/cpp.json +348 -0
  78. package/data/defination/csharp.json +144 -0
  79. package/data/defination/dockerfile.json +113 -0
  80. package/data/defination/go.json +561 -0
  81. package/data/defination/html.json +559 -0
  82. package/data/defination/java.json +184 -0
  83. package/data/defination/javascript.json +265 -0
  84. package/data/defination/lua.json +181 -0
  85. package/data/defination/php.json +726 -0
  86. package/data/defination/python.json +717 -0
  87. package/data/defination/ruby.json +670 -0
  88. package/data/defination/rust.json +207 -0
  89. package/data/defination/sql.json +473 -0
  90. package/data/defination/toml.json +251 -0
  91. package/data/defination/typescript.json +29 -0
  92. package/data/defination/yaml.json +197 -0
  93. package/data/hover/bash.json +245 -0
  94. package/data/hover/c.json +265 -0
  95. package/data/hover/cpp.json +210 -0
  96. package/data/hover/csharp.json +290 -0
  97. package/data/hover/dockerfile.json +145 -0
  98. package/data/hover/go.json +580 -0
  99. package/data/hover/html.json +250 -0
  100. package/data/hover/java.json +395 -0
  101. package/data/hover/javascript.json +330 -0
  102. package/data/hover/lua.json +265 -0
  103. package/data/hover/php.json +300 -0
  104. package/data/hover/python.json +380 -0
  105. package/data/hover/ruby.json +265 -0
  106. package/data/hover/rust.json +275 -0
  107. package/data/hover/sql.json +230 -0
  108. package/data/hover/toml.json +145 -0
  109. package/data/hover/typescript.json +120 -0
  110. package/data/hover/yaml.json +165 -0
  111. package/data/manifest.json +242 -0
  112. package/package.json +1 -1
@@ -0,0 +1,342 @@
1
+ {
2
+ "name": "sequelize",
3
+ "description": "Sequelize CLI for managing database migrations, models, seeders, and initialization of Sequelize-based Node.js projects",
4
+ "category": "database-orm",
5
+ "platforms": ["linux", "macos", "windows"],
6
+ "shells": ["bash", "zsh", "fish", "powershell"],
7
+ "subcommands": [
8
+ {
9
+ "name": "init",
10
+ "description": "Initialize a Sequelize project creating config/config.json, models/, migrations/, and seeders/ directories with boilerplate files.",
11
+ "args": [],
12
+ "options": [
13
+ {"name": "--force", "description": "Force overwriting existing files and directories"}
14
+ ],
15
+ "examples": [
16
+ "npx sequelize-cli init",
17
+ "npx sequelize-cli init --force"
18
+ ]
19
+ },
20
+ {
21
+ "name": "init:config",
22
+ "description": "Create the config/config.json file with database connection settings for development, test, and production environments.",
23
+ "args": [],
24
+ "options": [
25
+ {"name": "--config", "description": "Path to config file to create", "type": "string"}
26
+ ],
27
+ "examples": [
28
+ "npx sequelize-cli init:config",
29
+ "npx sequelize-cli init:config --config=src/config/database.json"
30
+ ]
31
+ },
32
+ {
33
+ "name": "init:migrations",
34
+ "description": "Create the migrations directory for storing migration files.",
35
+ "args": [],
36
+ "options": [
37
+ {"name": "--migrations-path", "description": "Custom path for the migrations directory", "type": "string"}
38
+ ],
39
+ "examples": [
40
+ "npx sequelize-cli init:migrations",
41
+ "npx sequelize-cli init:migrations --migrations-path=src/db/migrations"
42
+ ]
43
+ },
44
+ {
45
+ "name": "init:models",
46
+ "description": "Create the models directory with an index.js file that auto-loads all model definitions.",
47
+ "args": [],
48
+ "options": [
49
+ {"name": "--models-path", "description": "Custom path for the models directory", "type": "string"}
50
+ ],
51
+ "examples": [
52
+ "npx sequelize-cli init:models",
53
+ "npx sequelize-cli init:models --models-path=src/db/models"
54
+ ]
55
+ },
56
+ {
57
+ "name": "init:seeders",
58
+ "description": "Create the seeders directory for storing seed data files.",
59
+ "args": [],
60
+ "options": [
61
+ {"name": "--seeders-path", "description": "Custom path for the seeders directory", "type": "string"}
62
+ ],
63
+ "examples": [
64
+ "npx sequelize-cli init:seeders",
65
+ "npx sequelize-cli init:seeders --seeders-path=src/db/seeders"
66
+ ]
67
+ },
68
+ {
69
+ "name": "db:create",
70
+ "description": "Create the database specified in the config file for the current environment.",
71
+ "args": [],
72
+ "options": [
73
+ {"name": "--env", "description": "Environment to use (development, test, production)", "type": "string"},
74
+ {"name": "--config", "description": "Path to config file", "type": "string"},
75
+ {"name": "--charset", "description": "Character set for the database", "type": "string"},
76
+ {"name": "--collate", "description": "Collation for the database", "type": "string"},
77
+ {"name": "--encoding", "description": "Encoding for PostgreSQL databases", "type": "string"},
78
+ {"name": "--url", "description": "Database connection URL (overrides config)", "type": "string"}
79
+ ],
80
+ "examples": [
81
+ "npx sequelize-cli db:create",
82
+ "npx sequelize-cli db:create --env=test",
83
+ "npx sequelize-cli db:create --charset=utf8mb4 --collate=utf8mb4_unicode_ci",
84
+ "npx sequelize-cli db:create --url=postgres://user:pass@localhost:5432/mydb"
85
+ ]
86
+ },
87
+ {
88
+ "name": "db:drop",
89
+ "description": "Drop the database specified in the config file for the current environment. WARNING: This destroys all data.",
90
+ "args": [],
91
+ "options": [
92
+ {"name": "--env", "description": "Environment to use", "type": "string"},
93
+ {"name": "--config", "description": "Path to config file", "type": "string"},
94
+ {"name": "--url", "description": "Database connection URL", "type": "string"}
95
+ ],
96
+ "examples": [
97
+ "npx sequelize-cli db:drop",
98
+ "npx sequelize-cli db:drop --env=test"
99
+ ]
100
+ },
101
+ {
102
+ "name": "db:migrate",
103
+ "description": "Run all pending migrations to update the database schema. Migrations are executed in chronological order.",
104
+ "args": [],
105
+ "options": [
106
+ {"name": "--env", "description": "Environment to use", "type": "string"},
107
+ {"name": "--config", "description": "Path to config file", "type": "string"},
108
+ {"name": "--migrations-path", "description": "Path to migrations directory", "type": "string"},
109
+ {"name": "--url", "description": "Database connection URL", "type": "string"},
110
+ {"name": "--to", "description": "Migrate up to a specific migration file name", "type": "string"},
111
+ {"name": "--from", "description": "Migrate starting from a specific migration", "type": "string"},
112
+ {"name": "--debug", "description": "Show debug information and SQL queries"}
113
+ ],
114
+ "examples": [
115
+ "npx sequelize-cli db:migrate",
116
+ "npx sequelize-cli db:migrate --env=production",
117
+ "npx sequelize-cli db:migrate --to=20240101000000-create-users.js",
118
+ "npx sequelize-cli db:migrate --debug"
119
+ ]
120
+ },
121
+ {
122
+ "name": "db:migrate:undo",
123
+ "description": "Revert the most recently applied migration. Executes the down() method of the last migration.",
124
+ "args": [],
125
+ "options": [
126
+ {"name": "--env", "description": "Environment to use", "type": "string"},
127
+ {"name": "--config", "description": "Path to config file", "type": "string"},
128
+ {"name": "--migrations-path", "description": "Path to migrations directory", "type": "string"},
129
+ {"name": "--url", "description": "Database connection URL", "type": "string"},
130
+ {"name": "--name", "description": "Name of the specific migration to revert", "type": "string"},
131
+ {"name": "--debug", "description": "Show debug information"}
132
+ ],
133
+ "examples": [
134
+ "npx sequelize-cli db:migrate:undo",
135
+ "npx sequelize-cli db:migrate:undo --name=20240101000000-create-users.js",
136
+ "npx sequelize-cli db:migrate:undo --env=test"
137
+ ]
138
+ },
139
+ {
140
+ "name": "db:migrate:undo:all",
141
+ "description": "Revert all applied migrations, effectively resetting the database schema to its initial state.",
142
+ "args": [],
143
+ "options": [
144
+ {"name": "--env", "description": "Environment to use", "type": "string"},
145
+ {"name": "--config", "description": "Path to config file", "type": "string"},
146
+ {"name": "--to", "description": "Revert down to a specific migration (keeps that migration applied)", "type": "string"},
147
+ {"name": "--debug", "description": "Show debug information"}
148
+ ],
149
+ "examples": [
150
+ "npx sequelize-cli db:migrate:undo:all",
151
+ "npx sequelize-cli db:migrate:undo:all --to=20240101000000-create-users.js",
152
+ "npx sequelize-cli db:migrate:undo:all --env=test"
153
+ ]
154
+ },
155
+ {
156
+ "name": "db:migrate:status",
157
+ "description": "Show the status of all migrations, indicating which have been applied (up) and which are pending (down).",
158
+ "args": [],
159
+ "options": [
160
+ {"name": "--env", "description": "Environment to use", "type": "string"},
161
+ {"name": "--config", "description": "Path to config file", "type": "string"},
162
+ {"name": "--migrations-path", "description": "Path to migrations directory", "type": "string"},
163
+ {"name": "--url", "description": "Database connection URL", "type": "string"}
164
+ ],
165
+ "examples": [
166
+ "npx sequelize-cli db:migrate:status",
167
+ "npx sequelize-cli db:migrate:status --env=production"
168
+ ]
169
+ },
170
+ {
171
+ "name": "db:seed",
172
+ "description": "Run a specific seeder file to populate the database with initial or test data.",
173
+ "args": [],
174
+ "options": [
175
+ {"name": "--seed", "description": "Name of the specific seeder file to run", "type": "string"},
176
+ {"name": "--env", "description": "Environment to use", "type": "string"},
177
+ {"name": "--config", "description": "Path to config file", "type": "string"},
178
+ {"name": "--seeders-path", "description": "Path to seeders directory", "type": "string"},
179
+ {"name": "--url", "description": "Database connection URL", "type": "string"},
180
+ {"name": "--debug", "description": "Show debug information"}
181
+ ],
182
+ "examples": [
183
+ "npx sequelize-cli db:seed --seed=20240101000000-demo-users.js",
184
+ "npx sequelize-cli db:seed --seed=20240101000000-demo-users.js --env=test"
185
+ ]
186
+ },
187
+ {
188
+ "name": "db:seed:all",
189
+ "description": "Run all seed files to populate the database with data. Seeders are executed in alphabetical order.",
190
+ "args": [],
191
+ "options": [
192
+ {"name": "--env", "description": "Environment to use", "type": "string"},
193
+ {"name": "--config", "description": "Path to config file", "type": "string"},
194
+ {"name": "--seeders-path", "description": "Path to seeders directory", "type": "string"},
195
+ {"name": "--url", "description": "Database connection URL", "type": "string"},
196
+ {"name": "--debug", "description": "Show debug information"}
197
+ ],
198
+ "examples": [
199
+ "npx sequelize-cli db:seed:all",
200
+ "npx sequelize-cli db:seed:all --env=test",
201
+ "npx sequelize-cli db:seed:all --debug"
202
+ ]
203
+ },
204
+ {
205
+ "name": "db:seed:undo",
206
+ "description": "Revert the most recently executed seeder file.",
207
+ "args": [],
208
+ "options": [
209
+ {"name": "--seed", "description": "Name of the specific seeder to revert", "type": "string"},
210
+ {"name": "--env", "description": "Environment to use", "type": "string"},
211
+ {"name": "--config", "description": "Path to config file", "type": "string"},
212
+ {"name": "--debug", "description": "Show debug information"}
213
+ ],
214
+ "examples": [
215
+ "npx sequelize-cli db:seed:undo",
216
+ "npx sequelize-cli db:seed:undo --seed=20240101000000-demo-users.js"
217
+ ]
218
+ },
219
+ {
220
+ "name": "db:seed:undo:all",
221
+ "description": "Revert all seed files, removing all seeded data from the database.",
222
+ "args": [],
223
+ "options": [
224
+ {"name": "--env", "description": "Environment to use", "type": "string"},
225
+ {"name": "--config", "description": "Path to config file", "type": "string"},
226
+ {"name": "--debug", "description": "Show debug information"}
227
+ ],
228
+ "examples": [
229
+ "npx sequelize-cli db:seed:undo:all",
230
+ "npx sequelize-cli db:seed:undo:all --env=test"
231
+ ]
232
+ },
233
+ {
234
+ "name": "migration:generate",
235
+ "description": "Generate a new migration file with a timestamp prefix and the specified name.",
236
+ "args": [],
237
+ "options": [
238
+ {"name": "--name", "description": "Name for the migration file", "type": "string"},
239
+ {"name": "--underscored", "description": "Use snake_case for the migration file name"}
240
+ ],
241
+ "examples": [
242
+ "npx sequelize-cli migration:generate --name=create-users-table",
243
+ "npx sequelize-cli migration:generate --name=add-email-to-users --underscored"
244
+ ]
245
+ },
246
+ {
247
+ "name": "model:generate",
248
+ "description": "Generate a new model file and its associated migration file. Creates both the model definition and the initial migration to create the table.",
249
+ "args": [],
250
+ "options": [
251
+ {"name": "--name", "description": "Name of the model", "type": "string"},
252
+ {"name": "--attributes", "description": "Comma-separated list of attribute:type pairs", "type": "string"},
253
+ {"name": "--force", "description": "Force overwriting existing model file"},
254
+ {"name": "--underscored", "description": "Use snake_case for table and column names"}
255
+ ],
256
+ "examples": [
257
+ "npx sequelize-cli model:generate --name=User --attributes=firstName:string,lastName:string,email:string",
258
+ "npx sequelize-cli model:generate --name=Product --attributes=name:string,price:decimal,stock:integer --underscored",
259
+ "npx sequelize-cli model:generate --name=Order --attributes=userId:integer,total:decimal,status:enum:'{pending,shipped,delivered}'"
260
+ ]
261
+ },
262
+ {
263
+ "name": "seed:generate",
264
+ "description": "Generate a new seed file with a timestamp prefix for populating the database with test or initial data.",
265
+ "args": [],
266
+ "options": [
267
+ {"name": "--name", "description": "Name for the seed file", "type": "string"},
268
+ {"name": "--underscored", "description": "Use snake_case for the seed file name"}
269
+ ],
270
+ "examples": [
271
+ "npx sequelize-cli seed:generate --name=demo-users",
272
+ "npx sequelize-cli seed:generate --name=initial-products --underscored"
273
+ ]
274
+ }
275
+ ],
276
+ "globalOptions": [
277
+ {"name": "--help", "short": "-h", "description": "Show help information"},
278
+ {"name": "--version", "description": "Show sequelize-cli version"},
279
+ {"name": "--env", "description": "The environment to use (default: development)", "type": "string"},
280
+ {"name": "--config", "description": "Path to JSON config file (default: config/config.json)", "type": "string"},
281
+ {"name": "--models-path", "description": "Path to models directory (default: models/)", "type": "string"},
282
+ {"name": "--seeders-path", "description": "Path to seeders directory (default: seeders/)", "type": "string"},
283
+ {"name": "--migrations-path", "description": "Path to migrations directory (default: migrations/)", "type": "string"},
284
+ {"name": "--url", "description": "Database connection string URL (overrides config file)", "type": "string"},
285
+ {"name": "--debug", "description": "Show debug output and SQL queries"},
286
+ {"name": "--options-path", "description": "Path to a JSON file with additional options", "type": "string"}
287
+ ],
288
+ "examples": [
289
+ "npx sequelize-cli init",
290
+ "npx sequelize-cli db:create",
291
+ "npx sequelize-cli model:generate --name=User --attributes=name:string,email:string",
292
+ "npx sequelize-cli db:migrate",
293
+ "npx sequelize-cli db:migrate:status",
294
+ "npx sequelize-cli db:migrate:undo",
295
+ "npx sequelize-cli db:migrate:undo:all",
296
+ "npx sequelize-cli seed:generate --name=demo-users",
297
+ "npx sequelize-cli db:seed:all",
298
+ "npx sequelize-cli db:seed:undo:all",
299
+ "npx sequelize-cli db:drop",
300
+ "npx sequelize-cli migration:generate --name=add-index-to-users"
301
+ ],
302
+ "relatedCommands": ["prisma", "typeorm", "node", "mysql", "psql", "npm", "npx"],
303
+ "contextEngine": {
304
+ "detectors": [
305
+ {
306
+ "name": "sequelize_config_detect",
307
+ "description": "Detect Sequelize configuration files",
308
+ "command": "find . -maxdepth 3 -name '.sequelizerc' -o -name 'config.json' -path '*/config/*' 2>/dev/null | head -5",
309
+ "parser": "lines",
310
+ "cacheFor": 60
311
+ },
312
+ {
313
+ "name": "sequelize_models_detect",
314
+ "description": "Detect Sequelize model files",
315
+ "command": "find . -path '*/models/*.js' -o -path '*/models/*.ts' 2>/dev/null | head -10",
316
+ "parser": "lines",
317
+ "cacheFor": 60
318
+ },
319
+ {
320
+ "name": "sequelize_migrations_detect",
321
+ "description": "Detect Sequelize migration files",
322
+ "command": "find . -path '*/migrations/*.js' -type f 2>/dev/null | head -10",
323
+ "parser": "lines",
324
+ "cacheFor": 30
325
+ },
326
+ {
327
+ "name": "sequelize_seeders_detect",
328
+ "description": "Detect Sequelize seeder files",
329
+ "command": "find . -path '*/seeders/*.js' -type f 2>/dev/null | head -10",
330
+ "parser": "lines",
331
+ "cacheFor": 30
332
+ },
333
+ {
334
+ "name": "sequelize_package_detect",
335
+ "description": "Detect sequelize in package.json dependencies",
336
+ "command": "cat package.json 2>/dev/null | grep -E '\"sequelize(-cli)?\"' | head -3",
337
+ "parser": "lines",
338
+ "cacheFor": 60
339
+ }
340
+ ]
341
+ }
342
+ }