@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,322 @@
1
+ {
2
+ "name": "adb",
3
+ "description": "Android Debug Bridge",
4
+ "category": "mobile",
5
+ "platforms": [
6
+ "linux",
7
+ "macos",
8
+ "windows"
9
+ ],
10
+ "shells": [
11
+ "bash",
12
+ "zsh",
13
+ "fish",
14
+ "powershell"
15
+ ],
16
+ "subcommands": [
17
+ {
18
+ "name": "devices",
19
+ "description": "list connected devices",
20
+ "args": [],
21
+ "options": [
22
+ {
23
+ "name": "-l",
24
+ "description": "list device qualifiers"
25
+ }
26
+ ],
27
+ "examples": [
28
+ "adb devices",
29
+ "adb devices -l"
30
+ ]
31
+ },
32
+ {
33
+ "name": "connect",
34
+ "description": "connect to a device via TCP/IP",
35
+ "args": [
36
+ {
37
+ "name": "host[:port]",
38
+ "type": "string",
39
+ "required": true,
40
+ "description": "host name and optional port"
41
+ }
42
+ ],
43
+ "options": [],
44
+ "examples": [
45
+ "adb connect 192.168.1.100:5555"
46
+ ]
47
+ },
48
+ {
49
+ "name": "disconnect",
50
+ "description": "disconnect from a TCP/IP device",
51
+ "args": [
52
+ {
53
+ "name": "[host[:port]]",
54
+ "type": "string",
55
+ "required": false,
56
+ "description": "host name and optional port"
57
+ }
58
+ ],
59
+ "options": [],
60
+ "examples": [
61
+ "adb disconnect",
62
+ "adb disconnect 192.168.1.100:5555"
63
+ ]
64
+ },
65
+ {
66
+ "name": "push",
67
+ "description": "copy local files/directories to device",
68
+ "args": [
69
+ {
70
+ "name": "local",
71
+ "type": "path",
72
+ "required": true,
73
+ "description": "local path"
74
+ },
75
+ {
76
+ "name": "remote",
77
+ "type": "path",
78
+ "required": true,
79
+ "description": "remote path"
80
+ }
81
+ ],
82
+ "options": [
83
+ {
84
+ "name": "--sync",
85
+ "description": "only push files that are newer on the host than the device"
86
+ }
87
+ ],
88
+ "examples": [
89
+ "adb push file.txt /sdcard/"
90
+ ]
91
+ },
92
+ {
93
+ "name": "pull",
94
+ "description": "copy files/directories from device",
95
+ "args": [
96
+ {
97
+ "name": "remote",
98
+ "type": "path",
99
+ "required": true,
100
+ "description": "remote path"
101
+ },
102
+ {
103
+ "name": "[local]",
104
+ "type": "path",
105
+ "required": false,
106
+ "description": "local path"
107
+ }
108
+ ],
109
+ "options": [
110
+ {
111
+ "name": "-a",
112
+ "description": "preserve file timestamp and mode"
113
+ }
114
+ ],
115
+ "examples": [
116
+ "adb pull /sdcard/file.txt ."
117
+ ]
118
+ },
119
+ {
120
+ "name": "install",
121
+ "description": "push a single package to the device and install it",
122
+ "args": [
123
+ {
124
+ "name": "package",
125
+ "type": "path",
126
+ "required": true,
127
+ "description": "apk package path"
128
+ }
129
+ ],
130
+ "options": [
131
+ {
132
+ "name": "-r",
133
+ "description": "replace existing application"
134
+ },
135
+ {
136
+ "name": "-t",
137
+ "description": "allow test packages"
138
+ },
139
+ {
140
+ "name": "-d",
141
+ "description": "allow version code downgrade"
142
+ },
143
+ {
144
+ "name": "-g",
145
+ "description": "grant all runtime permissions"
146
+ }
147
+ ],
148
+ "examples": [
149
+ "adb install myapp.apk",
150
+ "adb install -r myapp.apk"
151
+ ]
152
+ },
153
+ {
154
+ "name": "uninstall",
155
+ "description": "remove this app package from the device",
156
+ "args": [
157
+ {
158
+ "name": "package",
159
+ "type": "string",
160
+ "required": true,
161
+ "description": "package name (e.g. com.example.myapp)"
162
+ }
163
+ ],
164
+ "options": [
165
+ {
166
+ "name": "-k",
167
+ "description": "keep the data and cache directories"
168
+ }
169
+ ],
170
+ "examples": [
171
+ "adb uninstall com.example.myapp"
172
+ ]
173
+ },
174
+ {
175
+ "name": "shell",
176
+ "description": "run remote shell interactively or run shell command",
177
+ "args": [
178
+ {
179
+ "name": "[command]",
180
+ "type": "string",
181
+ "required": false,
182
+ "description": "command to run on device shell"
183
+ }
184
+ ],
185
+ "options": [
186
+ {
187
+ "name": "-T",
188
+ "description": "disable PTY allocation"
189
+ },
190
+ {
191
+ "name": "-t",
192
+ "description": "force PTY allocation"
193
+ },
194
+ {
195
+ "name": "-n",
196
+ "description": "don't read from stdin"
197
+ }
198
+ ],
199
+ "examples": [
200
+ "adb shell",
201
+ "adb shell ls -l",
202
+ "adb shell pm list packages"
203
+ ]
204
+ },
205
+ {
206
+ "name": "logcat",
207
+ "description": "view device log",
208
+ "args": [],
209
+ "options": [
210
+ {
211
+ "name": "-s",
212
+ "description": "set default filter to silent",
213
+ "type": "string"
214
+ },
215
+ {
216
+ "name": "-f",
217
+ "description": "output to file",
218
+ "type": "path"
219
+ },
220
+ {
221
+ "name": "-c",
222
+ "description": "clear (flush) the entire log and exit"
223
+ },
224
+ {
225
+ "name": "-d",
226
+ "description": "dump the log and then exit (don't block)"
227
+ }
228
+ ],
229
+ "examples": [
230
+ "adb logcat",
231
+ "adb logcat *:E",
232
+ "adb logcat | grep myapp"
233
+ ]
234
+ },
235
+ {
236
+ "name": "reboot",
237
+ "description": "reboots the device",
238
+ "args": [
239
+ {
240
+ "name": "[bootloader|recovery|sideload|sideload-auto-reboot]",
241
+ "type": "string",
242
+ "required": false,
243
+ "description": "reboot target"
244
+ }
245
+ ],
246
+ "options": [],
247
+ "examples": [
248
+ "adb reboot",
249
+ "adb reboot bootloader"
250
+ ]
251
+ },
252
+ {
253
+ "name": "kill-server",
254
+ "description": "kill the server if it is running",
255
+ "args": [],
256
+ "options": [],
257
+ "examples": [
258
+ "adb kill-server"
259
+ ]
260
+ },
261
+ {
262
+ "name": "start-server",
263
+ "description": "ensure that there is a server running",
264
+ "args": [],
265
+ "options": [],
266
+ "examples": [
267
+ "adb start-server"
268
+ ]
269
+ }
270
+ ],
271
+ "globalOptions": [
272
+ {
273
+ "name": "-a",
274
+ "description": "listen on all network interfaces, not just localhost"
275
+ },
276
+ {
277
+ "name": "-d",
278
+ "description": "use USB device (error if multiple devices connected)"
279
+ },
280
+ {
281
+ "name": "-e",
282
+ "description": "use TCP/IP device (error if multiple TCP/IP devices available)"
283
+ },
284
+ {
285
+ "name": "-s",
286
+ "description": "use device with given serial",
287
+ "type": "string"
288
+ },
289
+ {
290
+ "name": "-H",
291
+ "description": "name of adb server host",
292
+ "type": "string"
293
+ },
294
+ {
295
+ "name": "-P",
296
+ "description": "port of adb server",
297
+ "type": "number"
298
+ }
299
+ ],
300
+ "examples": [
301
+ "adb devices",
302
+ "adb -s emulator-5554 shell",
303
+ "adb install app.apk",
304
+ "adb logcat -c"
305
+ ],
306
+ "relatedCommands": [
307
+ "fastlane",
308
+ "flutter"
309
+ ],
310
+ "contextEngine": {
311
+ "detectors": [
312
+ {
313
+ "name": "devices",
314
+ "description": "Connected Android Devices",
315
+ "command": "adb devices 2>/dev/null",
316
+ "parser": "lines",
317
+ "cacheFor": 10,
318
+ "requiresCmd": "adb"
319
+ }
320
+ ]
321
+ }
322
+ }
@@ -0,0 +1,301 @@
1
+ {
2
+ "name": "alembic",
3
+ "description": "Alembic is a lightweight database migration tool for SQLAlchemy, providing schema versioning, autogeneration of migrations, and branching support",
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 new Alembic environment, creating the migrations directory structure, alembic.ini configuration, and env.py script.",
11
+ "args": [
12
+ {"name": "directory", "type": "string", "required": true, "description": "Name of the migration directory to create (e.g., alembic, migrations)"}
13
+ ],
14
+ "options": [
15
+ {"name": "--template", "short": "-t", "description": "Template to use for the environment (generic, multidb, async, pylons)", "type": "string"},
16
+ {"name": "--package", "description": "Create __init__.py in the migration directory to make it a Python package"}
17
+ ],
18
+ "examples": [
19
+ "alembic init alembic",
20
+ "alembic init migrations",
21
+ "alembic init --template=async alembic",
22
+ "alembic init --template=multidb migrations",
23
+ "alembic init --package alembic"
24
+ ]
25
+ },
26
+ {
27
+ "name": "revision",
28
+ "description": "Create a new revision (migration) file. Supports both empty revisions and autogenerated ones based on model comparison.",
29
+ "args": [],
30
+ "options": [
31
+ {"name": "--message", "short": "-m", "description": "Message string for the revision", "type": "string"},
32
+ {"name": "--autogenerate", "description": "Auto-detect schema changes by comparing models with the database"},
33
+ {"name": "--head", "description": "Head revision to use as the parent (default: head)", "type": "string"},
34
+ {"name": "--splice", "description": "Allow a non-head revision as the parent, creating a branch"},
35
+ {"name": "--branch-label", "description": "Label for a new branch from this revision", "type": "string"},
36
+ {"name": "--version-path", "description": "Directory to store the revision file", "type": "string"},
37
+ {"name": "--rev-id", "description": "Custom revision identifier", "type": "string"},
38
+ {"name": "--depends-on", "description": "Revision(s) this depends on", "type": "string"},
39
+ {"name": "--sql", "description": "Produce SQL script instead of running the migration"}
40
+ ],
41
+ "examples": [
42
+ "alembic revision -m 'create users table'",
43
+ "alembic revision --autogenerate -m 'add email column'",
44
+ "alembic revision -m 'add orders' --head=branch1@head",
45
+ "alembic revision -m 'merge branches' --depends-on=abc123",
46
+ "alembic revision --autogenerate -m 'initial schema' --rev-id=001",
47
+ "alembic revision -m 'add index' --branch-label=feature"
48
+ ]
49
+ },
50
+ {
51
+ "name": "upgrade",
52
+ "description": "Apply migration(s) to upgrade the database schema to a target revision. Can upgrade to the latest, a specific revision, or a relative number.",
53
+ "args": [
54
+ {"name": "revision", "type": "string", "required": true, "description": "Target revision (head, revision ID, or relative like +2)"}
55
+ ],
56
+ "options": [
57
+ {"name": "--sql", "description": "Output SQL statements instead of executing them"},
58
+ {"name": "--tag", "description": "Tag to pass to the migration environment", "type": "string"}
59
+ ],
60
+ "examples": [
61
+ "alembic upgrade head",
62
+ "alembic upgrade +1",
63
+ "alembic upgrade +2",
64
+ "alembic upgrade abc123def",
65
+ "alembic upgrade branch1@head",
66
+ "alembic upgrade head --sql",
67
+ "alembic upgrade head --tag=deploy_v2",
68
+ "alembic upgrade abc123:head --sql > migration.sql"
69
+ ]
70
+ },
71
+ {
72
+ "name": "downgrade",
73
+ "description": "Revert migration(s) to downgrade the database schema to a previous revision or by a relative number of steps.",
74
+ "args": [
75
+ {"name": "revision", "type": "string", "required": true, "description": "Target revision (base, revision ID, or relative like -1)"}
76
+ ],
77
+ "options": [
78
+ {"name": "--sql", "description": "Output SQL statements instead of executing them"},
79
+ {"name": "--tag", "description": "Tag to pass to the migration environment", "type": "string"}
80
+ ],
81
+ "examples": [
82
+ "alembic downgrade -1",
83
+ "alembic downgrade -2",
84
+ "alembic downgrade base",
85
+ "alembic downgrade abc123def",
86
+ "alembic downgrade head:-1 --sql",
87
+ "alembic downgrade base --sql > rollback.sql"
88
+ ]
89
+ },
90
+ {
91
+ "name": "current",
92
+ "description": "Display the current revision(s) active in the database. Shows which migration the database is currently at.",
93
+ "args": [],
94
+ "options": [
95
+ {"name": "--verbose", "short": "-v", "description": "Show detailed revision info including path and docstring"}
96
+ ],
97
+ "examples": [
98
+ "alembic current",
99
+ "alembic current --verbose"
100
+ ]
101
+ },
102
+ {
103
+ "name": "heads",
104
+ "description": "Show the head revision(s) of the migration tree. Multiple heads indicate unmerged branches.",
105
+ "args": [],
106
+ "options": [
107
+ {"name": "--verbose", "short": "-v", "description": "Show detailed revision info"},
108
+ {"name": "--resolve-dependencies", "description": "Include dependency information in output"}
109
+ ],
110
+ "examples": [
111
+ "alembic heads",
112
+ "alembic heads --verbose",
113
+ "alembic heads --resolve-dependencies"
114
+ ]
115
+ },
116
+ {
117
+ "name": "history",
118
+ "description": "Show the full history of revisions from oldest to newest. Useful for understanding the migration chain and branches.",
119
+ "args": [],
120
+ "options": [
121
+ {"name": "--verbose", "short": "-v", "description": "Show detailed revision info for each entry"},
122
+ {"name": "--rev-range", "short": "-r", "description": "Limit history to a specific range (e.g., base:head, abc123:def456)", "type": "string"},
123
+ {"name": "--indicate-current", "short": "-i", "description": "Mark the current database revision in the output"}
124
+ ],
125
+ "examples": [
126
+ "alembic history",
127
+ "alembic history --verbose",
128
+ "alembic history -r base:head",
129
+ "alembic history -r abc123:def456",
130
+ "alembic history --indicate-current",
131
+ "alembic history -r -3:current --verbose"
132
+ ]
133
+ },
134
+ {
135
+ "name": "branches",
136
+ "description": "Show all branch points in the migration graph where the revision history has diverged.",
137
+ "args": [],
138
+ "options": [
139
+ {"name": "--verbose", "short": "-v", "description": "Show detailed revision info"}
140
+ ],
141
+ "examples": [
142
+ "alembic branches",
143
+ "alembic branches --verbose"
144
+ ]
145
+ },
146
+ {
147
+ "name": "show",
148
+ "description": "Display details of a specific revision including its revision ID, parent, description, and file path.",
149
+ "args": [
150
+ {"name": "revision", "type": "string", "required": true, "description": "Revision identifier to show"}
151
+ ],
152
+ "options": [],
153
+ "examples": [
154
+ "alembic show head",
155
+ "alembic show abc123def",
156
+ "alembic show base"
157
+ ]
158
+ },
159
+ {
160
+ "name": "merge",
161
+ "description": "Create a merge revision that combines two or more branch heads into a single revision, resolving branch divergence.",
162
+ "args": [
163
+ {"name": "revisions", "type": "string", "required": true, "description": "Two or more revision identifiers to merge (space-separated)"}
164
+ ],
165
+ "options": [
166
+ {"name": "--message", "short": "-m", "description": "Message for the merge revision", "type": "string"},
167
+ {"name": "--branch-label", "description": "Label for the merged branch", "type": "string"},
168
+ {"name": "--rev-id", "description": "Custom revision identifier for the merge", "type": "string"}
169
+ ],
170
+ "examples": [
171
+ "alembic merge heads -m 'merge branches'",
172
+ "alembic merge abc123 def456 -m 'merge feature and hotfix'",
173
+ "alembic merge heads --branch-label=merged"
174
+ ]
175
+ },
176
+ {
177
+ "name": "stamp",
178
+ "description": "Set the alembic_version table to a specific revision without running any migration scripts. Useful for marking an already-migrated database.",
179
+ "args": [
180
+ {"name": "revision", "type": "string", "required": true, "description": "Revision to stamp (head, base, or specific ID)"}
181
+ ],
182
+ "options": [
183
+ {"name": "--sql", "description": "Output SQL statements instead of executing them"},
184
+ {"name": "--purge", "description": "Delete all entries from version table before stamping"},
185
+ {"name": "--tag", "description": "Tag to pass to the migration environment", "type": "string"}
186
+ ],
187
+ "examples": [
188
+ "alembic stamp head",
189
+ "alembic stamp base",
190
+ "alembic stamp abc123def",
191
+ "alembic stamp head --purge",
192
+ "alembic stamp head --sql"
193
+ ]
194
+ },
195
+ {
196
+ "name": "edit",
197
+ "description": "Open a specific revision file in the system editor for manual editing.",
198
+ "args": [
199
+ {"name": "revision", "type": "string", "required": true, "description": "Revision identifier to edit"}
200
+ ],
201
+ "options": [],
202
+ "examples": [
203
+ "alembic edit head",
204
+ "alembic edit abc123def"
205
+ ]
206
+ },
207
+ {
208
+ "name": "check",
209
+ "description": "Check if there are any new schema changes that have not been versioned as migrations. Returns exit code 0 if in sync, 1 if changes detected.",
210
+ "args": [],
211
+ "options": [],
212
+ "examples": [
213
+ "alembic check"
214
+ ]
215
+ },
216
+ {
217
+ "name": "ensure_version",
218
+ "description": "Ensure the alembic_version table exists in the database without applying any migrations.",
219
+ "args": [],
220
+ "options": [
221
+ {"name": "--sql", "description": "Output SQL statements instead of executing them"}
222
+ ],
223
+ "examples": [
224
+ "alembic ensure_version",
225
+ "alembic ensure_version --sql"
226
+ ]
227
+ },
228
+ {
229
+ "name": "list_templates",
230
+ "description": "List all available Alembic environment templates that can be used with the init command.",
231
+ "args": [],
232
+ "options": [],
233
+ "examples": [
234
+ "alembic list_templates"
235
+ ]
236
+ }
237
+ ],
238
+ "globalOptions": [
239
+ {"name": "--help", "short": "-h", "description": "Show help information"},
240
+ {"name": "--version", "description": "Show Alembic version"},
241
+ {"name": "--config", "short": "-c", "description": "Path to the Alembic configuration file (default: alembic.ini)", "type": "string"},
242
+ {"name": "--name", "short": "-n", "description": "Name of the section in the config file to use for Alembic config", "type": "string"},
243
+ {"name": "--raiseerr", "short": "-x", "description": "Raise a full stack trace on error instead of a short message"},
244
+ {"name": "-x", "description": "Additional arguments consumed by env.py (e.g., -x dbname=mydb)", "type": "string"}
245
+ ],
246
+ "examples": [
247
+ "alembic init alembic",
248
+ "alembic revision --autogenerate -m 'initial schema'",
249
+ "alembic revision -m 'add users table'",
250
+ "alembic upgrade head",
251
+ "alembic downgrade -1",
252
+ "alembic downgrade base",
253
+ "alembic current",
254
+ "alembic history --verbose",
255
+ "alembic heads",
256
+ "alembic merge heads -m 'merge branches'",
257
+ "alembic stamp head",
258
+ "alembic check",
259
+ "alembic upgrade head --sql > migration.sql"
260
+ ],
261
+ "relatedCommands": ["python", "pip", "flask", "django-admin", "poetry", "pipenv"],
262
+ "contextEngine": {
263
+ "detectors": [
264
+ {
265
+ "name": "alembic_ini_detect",
266
+ "description": "Detect alembic.ini configuration file",
267
+ "command": "find . -maxdepth 2 -name 'alembic.ini' -type f 2>/dev/null | head -3",
268
+ "parser": "lines",
269
+ "cacheFor": 60
270
+ },
271
+ {
272
+ "name": "alembic_env_detect",
273
+ "description": "Detect Alembic env.py and migration directory",
274
+ "command": "find . -path '*/alembic/env.py' -o -path '*/migrations/env.py' 2>/dev/null | head -5",
275
+ "parser": "lines",
276
+ "cacheFor": 60
277
+ },
278
+ {
279
+ "name": "alembic_versions_detect",
280
+ "description": "Detect Alembic revision files",
281
+ "command": "find . -path '*/versions/*.py' -type f 2>/dev/null | head -10",
282
+ "parser": "lines",
283
+ "cacheFor": 30
284
+ },
285
+ {
286
+ "name": "alembic_current_revision",
287
+ "description": "Get the current Alembic revision in the database",
288
+ "command": "alembic current 2>/dev/null || echo 'not available'",
289
+ "parser": "lines",
290
+ "cacheFor": 30
291
+ },
292
+ {
293
+ "name": "alembic_package_detect",
294
+ "description": "Detect alembic in Python requirements or setup files",
295
+ "command": "grep -r 'alembic' requirements*.txt setup.py pyproject.toml 2>/dev/null | head -5",
296
+ "parser": "lines",
297
+ "cacheFor": 60
298
+ }
299
+ ]
300
+ }
301
+ }