@memberjunction/cli 2.132.0 → 3.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.
- package/bin/dev.cmd +2 -2
- package/bin/run.cmd +3 -3
- package/dist/commands/dbdoc/review.d.ts +10 -0
- package/dist/commands/dbdoc/review.js +81 -0
- package/dist/commands/migrate/index.d.ts +1 -0
- package/dist/commands/migrate/index.js +160 -0
- package/dist/config.d.ts +11 -3
- package/dist/config.js +45 -3
- package/oclif.manifest.json +1158 -1118
- package/package.json +12 -11
package/oclif.manifest.json
CHANGED
|
@@ -22,38 +22,6 @@
|
|
|
22
22
|
"index.js"
|
|
23
23
|
]
|
|
24
24
|
},
|
|
25
|
-
"clean": {
|
|
26
|
-
"aliases": [],
|
|
27
|
-
"args": {},
|
|
28
|
-
"description": "Resets the MemberJunction database to a pre-installation state",
|
|
29
|
-
"examples": [
|
|
30
|
-
"<%= config.bin %> <%= command.id %>\n"
|
|
31
|
-
],
|
|
32
|
-
"flags": {
|
|
33
|
-
"verbose": {
|
|
34
|
-
"char": "v",
|
|
35
|
-
"description": "Enable additional logging",
|
|
36
|
-
"name": "verbose",
|
|
37
|
-
"allowNo": false,
|
|
38
|
-
"type": "boolean"
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
"hasDynamicHelp": false,
|
|
42
|
-
"hiddenAliases": [],
|
|
43
|
-
"id": "clean",
|
|
44
|
-
"pluginAlias": "@memberjunction/cli",
|
|
45
|
-
"pluginName": "@memberjunction/cli",
|
|
46
|
-
"pluginType": "core",
|
|
47
|
-
"strict": true,
|
|
48
|
-
"enableJsonFlag": false,
|
|
49
|
-
"isESM": false,
|
|
50
|
-
"relativePath": [
|
|
51
|
-
"dist",
|
|
52
|
-
"commands",
|
|
53
|
-
"clean",
|
|
54
|
-
"index.js"
|
|
55
|
-
]
|
|
56
|
-
},
|
|
57
25
|
"bump": {
|
|
58
26
|
"aliases": [],
|
|
59
27
|
"args": {},
|
|
@@ -126,6 +94,38 @@
|
|
|
126
94
|
"index.js"
|
|
127
95
|
]
|
|
128
96
|
},
|
|
97
|
+
"clean": {
|
|
98
|
+
"aliases": [],
|
|
99
|
+
"args": {},
|
|
100
|
+
"description": "Resets the MemberJunction database to a pre-installation state",
|
|
101
|
+
"examples": [
|
|
102
|
+
"<%= config.bin %> <%= command.id %>\n"
|
|
103
|
+
],
|
|
104
|
+
"flags": {
|
|
105
|
+
"verbose": {
|
|
106
|
+
"char": "v",
|
|
107
|
+
"description": "Enable additional logging",
|
|
108
|
+
"name": "verbose",
|
|
109
|
+
"allowNo": false,
|
|
110
|
+
"type": "boolean"
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"hasDynamicHelp": false,
|
|
114
|
+
"hiddenAliases": [],
|
|
115
|
+
"id": "clean",
|
|
116
|
+
"pluginAlias": "@memberjunction/cli",
|
|
117
|
+
"pluginName": "@memberjunction/cli",
|
|
118
|
+
"pluginType": "core",
|
|
119
|
+
"strict": true,
|
|
120
|
+
"enableJsonFlag": false,
|
|
121
|
+
"isESM": false,
|
|
122
|
+
"relativePath": [
|
|
123
|
+
"dist",
|
|
124
|
+
"commands",
|
|
125
|
+
"clean",
|
|
126
|
+
"index.js"
|
|
127
|
+
]
|
|
128
|
+
},
|
|
129
129
|
"codegen": {
|
|
130
130
|
"aliases": [],
|
|
131
131
|
"args": {},
|
|
@@ -157,38 +157,25 @@
|
|
|
157
157
|
"index.js"
|
|
158
158
|
]
|
|
159
159
|
},
|
|
160
|
-
"
|
|
160
|
+
"install": {
|
|
161
161
|
"aliases": [],
|
|
162
162
|
"args": {},
|
|
163
|
-
"description": "
|
|
163
|
+
"description": "Install MemberJunction",
|
|
164
164
|
"examples": [
|
|
165
|
-
"<%= config.bin %> <%= command.id
|
|
166
|
-
"<%= config.bin %> <%= command.id %> --resume ./output/run-6/state.json",
|
|
167
|
-
"<%= config.bin %> <%= command.id %> --config ./my-config.json"
|
|
165
|
+
"<%= config.bin %> <%= command.id %>\n"
|
|
168
166
|
],
|
|
169
167
|
"flags": {
|
|
170
|
-
"
|
|
171
|
-
"char": "
|
|
172
|
-
"description": "
|
|
173
|
-
"name": "
|
|
174
|
-
"
|
|
175
|
-
"
|
|
176
|
-
"multiple": false,
|
|
177
|
-
"type": "option"
|
|
178
|
-
},
|
|
179
|
-
"config": {
|
|
180
|
-
"char": "c",
|
|
181
|
-
"description": "Path to config file",
|
|
182
|
-
"name": "config",
|
|
183
|
-
"default": "./config.json",
|
|
184
|
-
"hasDynamicHelp": false,
|
|
185
|
-
"multiple": false,
|
|
186
|
-
"type": "option"
|
|
168
|
+
"verbose": {
|
|
169
|
+
"char": "v",
|
|
170
|
+
"description": "Enable additional logging",
|
|
171
|
+
"name": "verbose",
|
|
172
|
+
"allowNo": false,
|
|
173
|
+
"type": "boolean"
|
|
187
174
|
}
|
|
188
175
|
},
|
|
189
176
|
"hasDynamicHelp": false,
|
|
190
177
|
"hiddenAliases": [],
|
|
191
|
-
"id": "
|
|
178
|
+
"id": "install",
|
|
192
179
|
"pluginAlias": "@memberjunction/cli",
|
|
193
180
|
"pluginName": "@memberjunction/cli",
|
|
194
181
|
"pluginType": "core",
|
|
@@ -198,105 +185,40 @@
|
|
|
198
185
|
"relativePath": [
|
|
199
186
|
"dist",
|
|
200
187
|
"commands",
|
|
201
|
-
"
|
|
202
|
-
"
|
|
188
|
+
"install",
|
|
189
|
+
"index.js"
|
|
203
190
|
]
|
|
204
191
|
},
|
|
205
|
-
"
|
|
192
|
+
"querygen:export": {
|
|
206
193
|
"aliases": [],
|
|
207
194
|
"args": {},
|
|
208
|
-
"description": "Export
|
|
195
|
+
"description": "Export queries from database to metadata files",
|
|
209
196
|
"examples": [
|
|
210
|
-
"<%= config.bin %> <%= command.id %>
|
|
211
|
-
"<%= config.bin %> <%= command.id %> --
|
|
212
|
-
"<%= config.bin %> <%= command.id %> --
|
|
213
|
-
"<%= config.bin %> <%= command.id %> --input ./sample-queries.json --output ./queries/.queries.json --status Pending --min-confidence 0.8"
|
|
197
|
+
"<%= config.bin %> <%= command.id %>",
|
|
198
|
+
"<%= config.bin %> <%= command.id %> --output ./metadata/queries",
|
|
199
|
+
"<%= config.bin %> <%= command.id %> --verbose"
|
|
214
200
|
],
|
|
215
201
|
"flags": {
|
|
216
|
-
"input": {
|
|
217
|
-
"char": "i",
|
|
218
|
-
"description": "Path to sample-queries.json file generated by generate-queries command",
|
|
219
|
-
"name": "input",
|
|
220
|
-
"required": true,
|
|
221
|
-
"hasDynamicHelp": false,
|
|
222
|
-
"multiple": false,
|
|
223
|
-
"type": "option"
|
|
224
|
-
},
|
|
225
202
|
"output": {
|
|
226
203
|
"char": "o",
|
|
227
|
-
"description": "Output
|
|
204
|
+
"description": "Output directory",
|
|
228
205
|
"name": "output",
|
|
229
|
-
"
|
|
230
|
-
"hasDynamicHelp": false,
|
|
231
|
-
"multiple": false,
|
|
232
|
-
"type": "option"
|
|
233
|
-
},
|
|
234
|
-
"separate-sql-files": {
|
|
235
|
-
"description": "Write SQL to separate files and use @file: references",
|
|
236
|
-
"name": "separate-sql-files",
|
|
237
|
-
"allowNo": false,
|
|
238
|
-
"type": "boolean"
|
|
239
|
-
},
|
|
240
|
-
"sql-dir": {
|
|
241
|
-
"description": "Directory for SQL files when using --separate-sql-files (relative to output file)",
|
|
242
|
-
"name": "sql-dir",
|
|
243
|
-
"default": "SQL",
|
|
244
|
-
"hasDynamicHelp": false,
|
|
245
|
-
"multiple": false,
|
|
246
|
-
"type": "option"
|
|
247
|
-
},
|
|
248
|
-
"category": {
|
|
249
|
-
"description": "Category name for @lookup reference (e.g., \"Database Documentation\")",
|
|
250
|
-
"name": "category",
|
|
251
|
-
"required": false,
|
|
252
|
-
"hasDynamicHelp": false,
|
|
253
|
-
"multiple": false,
|
|
254
|
-
"type": "option"
|
|
255
|
-
},
|
|
256
|
-
"status": {
|
|
257
|
-
"description": "Status to assign to exported queries",
|
|
258
|
-
"name": "status",
|
|
259
|
-
"default": "Pending",
|
|
260
|
-
"hasDynamicHelp": false,
|
|
261
|
-
"multiple": false,
|
|
262
|
-
"options": [
|
|
263
|
-
"Approved",
|
|
264
|
-
"Pending",
|
|
265
|
-
"Rejected",
|
|
266
|
-
"Expired"
|
|
267
|
-
],
|
|
268
|
-
"type": "option"
|
|
269
|
-
},
|
|
270
|
-
"min-confidence": {
|
|
271
|
-
"description": "Minimum confidence threshold to export (0-1)",
|
|
272
|
-
"name": "min-confidence",
|
|
273
|
-
"default": "0",
|
|
206
|
+
"default": "./metadata/queries",
|
|
274
207
|
"hasDynamicHelp": false,
|
|
275
208
|
"multiple": false,
|
|
276
209
|
"type": "option"
|
|
277
210
|
},
|
|
278
|
-
"
|
|
279
|
-
"
|
|
280
|
-
"
|
|
281
|
-
"
|
|
282
|
-
"type": "boolean"
|
|
283
|
-
},
|
|
284
|
-
"append": {
|
|
285
|
-
"description": "Append to existing metadata file instead of overwriting",
|
|
286
|
-
"name": "append",
|
|
287
|
-
"allowNo": false,
|
|
288
|
-
"type": "boolean"
|
|
289
|
-
},
|
|
290
|
-
"include-primary-key": {
|
|
291
|
-
"description": "Include primaryKey and sync fields (for updating existing records)",
|
|
292
|
-
"name": "include-primary-key",
|
|
211
|
+
"verbose": {
|
|
212
|
+
"char": "v",
|
|
213
|
+
"description": "Verbose output",
|
|
214
|
+
"name": "verbose",
|
|
293
215
|
"allowNo": false,
|
|
294
216
|
"type": "boolean"
|
|
295
217
|
}
|
|
296
218
|
},
|
|
297
219
|
"hasDynamicHelp": false,
|
|
298
220
|
"hiddenAliases": [],
|
|
299
|
-
"id": "
|
|
221
|
+
"id": "querygen:export",
|
|
300
222
|
"pluginAlias": "@memberjunction/cli",
|
|
301
223
|
"pluginName": "@memberjunction/cli",
|
|
302
224
|
"pluginType": "core",
|
|
@@ -306,168 +228,126 @@
|
|
|
306
228
|
"relativePath": [
|
|
307
229
|
"dist",
|
|
308
230
|
"commands",
|
|
309
|
-
"
|
|
310
|
-
"export
|
|
231
|
+
"querygen",
|
|
232
|
+
"export.js"
|
|
311
233
|
]
|
|
312
234
|
},
|
|
313
|
-
"
|
|
235
|
+
"querygen:generate": {
|
|
314
236
|
"aliases": [],
|
|
315
237
|
"args": {},
|
|
316
|
-
"description": "
|
|
238
|
+
"description": "Generate SQL query templates for entities using AI",
|
|
317
239
|
"examples": [
|
|
318
|
-
"<%= config.bin %> <%= command.id %>
|
|
319
|
-
"<%= config.bin %> <%= command.id %> --
|
|
320
|
-
"<%= config.bin %> <%= command.id %> --
|
|
321
|
-
"<%= config.bin %> <%= command.id %> --
|
|
322
|
-
"<%= config.bin %> <%= command.id %> --csv",
|
|
323
|
-
"<%= config.bin %> <%= command.id %> --mermaid",
|
|
324
|
-
"<%= config.bin %> <%= command.id %> --sql --markdown --html --csv --mermaid --apply"
|
|
240
|
+
"<%= config.bin %> <%= command.id %>",
|
|
241
|
+
"<%= config.bin %> <%= command.id %> --entities \"Customers,Orders\"",
|
|
242
|
+
"<%= config.bin %> <%= command.id %> --max-entities 5 --verbose",
|
|
243
|
+
"<%= config.bin %> <%= command.id %> --mode database"
|
|
325
244
|
],
|
|
326
245
|
"flags": {
|
|
327
|
-
"
|
|
328
|
-
"char": "
|
|
329
|
-
"description": "
|
|
330
|
-
"name": "
|
|
246
|
+
"entities": {
|
|
247
|
+
"char": "e",
|
|
248
|
+
"description": "Specific entities to generate queries for (comma-separated)",
|
|
249
|
+
"name": "entities",
|
|
331
250
|
"hasDynamicHelp": false,
|
|
332
251
|
"multiple": false,
|
|
333
252
|
"type": "option"
|
|
334
253
|
},
|
|
335
|
-
"
|
|
336
|
-
"char": "
|
|
337
|
-
"description": "
|
|
338
|
-
"name": "
|
|
254
|
+
"exclude-entities": {
|
|
255
|
+
"char": "x",
|
|
256
|
+
"description": "Entities to exclude (comma-separated)",
|
|
257
|
+
"name": "exclude-entities",
|
|
339
258
|
"hasDynamicHelp": false,
|
|
340
259
|
"multiple": false,
|
|
341
260
|
"type": "option"
|
|
342
261
|
},
|
|
343
|
-
"
|
|
344
|
-
"
|
|
345
|
-
"
|
|
346
|
-
"
|
|
347
|
-
"
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
"description": "Generate Markdown documentation",
|
|
351
|
-
"name": "markdown",
|
|
352
|
-
"allowNo": false,
|
|
353
|
-
"type": "boolean"
|
|
262
|
+
"exclude-schemas": {
|
|
263
|
+
"char": "s",
|
|
264
|
+
"description": "Schemas to exclude (comma-separated)",
|
|
265
|
+
"name": "exclude-schemas",
|
|
266
|
+
"hasDynamicHelp": false,
|
|
267
|
+
"multiple": false,
|
|
268
|
+
"type": "option"
|
|
354
269
|
},
|
|
355
|
-
"
|
|
356
|
-
"
|
|
357
|
-
"
|
|
358
|
-
"
|
|
359
|
-
"
|
|
270
|
+
"max-entities": {
|
|
271
|
+
"char": "m",
|
|
272
|
+
"description": "Max entities per group",
|
|
273
|
+
"name": "max-entities",
|
|
274
|
+
"default": 3,
|
|
275
|
+
"hasDynamicHelp": false,
|
|
276
|
+
"multiple": false,
|
|
277
|
+
"type": "option"
|
|
360
278
|
},
|
|
361
|
-
"
|
|
362
|
-
"
|
|
363
|
-
"
|
|
364
|
-
"
|
|
365
|
-
"
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
"
|
|
369
|
-
"name": "mermaid",
|
|
370
|
-
"allowNo": false,
|
|
371
|
-
"type": "boolean"
|
|
372
|
-
},
|
|
373
|
-
"report": {
|
|
374
|
-
"description": "Generate analysis report",
|
|
375
|
-
"name": "report",
|
|
376
|
-
"allowNo": false,
|
|
377
|
-
"type": "boolean"
|
|
378
|
-
},
|
|
379
|
-
"apply": {
|
|
380
|
-
"description": "Apply SQL to database",
|
|
381
|
-
"name": "apply",
|
|
382
|
-
"allowNo": false,
|
|
383
|
-
"type": "boolean"
|
|
384
|
-
},
|
|
385
|
-
"approved-only": {
|
|
386
|
-
"description": "Only export approved items",
|
|
387
|
-
"name": "approved-only",
|
|
388
|
-
"allowNo": false,
|
|
389
|
-
"type": "boolean"
|
|
279
|
+
"target-groups": {
|
|
280
|
+
"char": "t",
|
|
281
|
+
"description": "Target number of entity groups to generate",
|
|
282
|
+
"name": "target-groups",
|
|
283
|
+
"default": 75,
|
|
284
|
+
"hasDynamicHelp": false,
|
|
285
|
+
"multiple": false,
|
|
286
|
+
"type": "option"
|
|
390
287
|
},
|
|
391
|
-
"
|
|
392
|
-
"
|
|
393
|
-
"
|
|
394
|
-
"
|
|
288
|
+
"max-refinements": {
|
|
289
|
+
"char": "r",
|
|
290
|
+
"description": "Max refinement iterations",
|
|
291
|
+
"name": "max-refinements",
|
|
292
|
+
"default": 3,
|
|
395
293
|
"hasDynamicHelp": false,
|
|
396
294
|
"multiple": false,
|
|
397
295
|
"type": "option"
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
"pluginName": "@memberjunction/cli",
|
|
405
|
-
"pluginType": "core",
|
|
406
|
-
"strict": true,
|
|
407
|
-
"enableJsonFlag": false,
|
|
408
|
-
"isESM": false,
|
|
409
|
-
"relativePath": [
|
|
410
|
-
"dist",
|
|
411
|
-
"commands",
|
|
412
|
-
"dbdoc",
|
|
413
|
-
"export.js"
|
|
414
|
-
]
|
|
415
|
-
},
|
|
416
|
-
"dbdoc:generate-queries": {
|
|
417
|
-
"aliases": [],
|
|
418
|
-
"args": {},
|
|
419
|
-
"description": "Generate sample SQL queries from existing analysis state (delegates to db-auto-doc generate-queries)",
|
|
420
|
-
"examples": [
|
|
421
|
-
"<%= config.bin %> <%= command.id %> --from-state ./output/run-1/state.json",
|
|
422
|
-
"<%= config.bin %> <%= command.id %> --from-state ./output/run-1/state.json --output-dir ./queries",
|
|
423
|
-
"<%= config.bin %> <%= command.id %> --from-state ./output/run-1/state.json --queries-per-table 10"
|
|
424
|
-
],
|
|
425
|
-
"flags": {
|
|
426
|
-
"from-state": {
|
|
427
|
-
"description": "Path to existing state.json file from previous analysis",
|
|
428
|
-
"name": "from-state",
|
|
429
|
-
"required": true,
|
|
296
|
+
},
|
|
297
|
+
"max-fixes": {
|
|
298
|
+
"char": "f",
|
|
299
|
+
"description": "Max error-fixing attempts",
|
|
300
|
+
"name": "max-fixes",
|
|
301
|
+
"default": 5,
|
|
430
302
|
"hasDynamicHelp": false,
|
|
431
303
|
"multiple": false,
|
|
432
304
|
"type": "option"
|
|
433
305
|
},
|
|
434
|
-
"
|
|
435
|
-
"description": "
|
|
436
|
-
"name": "
|
|
437
|
-
"required": false,
|
|
306
|
+
"model": {
|
|
307
|
+
"description": "Preferred AI model",
|
|
308
|
+
"name": "model",
|
|
438
309
|
"hasDynamicHelp": false,
|
|
439
310
|
"multiple": false,
|
|
440
311
|
"type": "option"
|
|
441
312
|
},
|
|
442
|
-
"
|
|
443
|
-
"
|
|
444
|
-
"
|
|
445
|
-
"name": "config",
|
|
446
|
-
"default": "./config.json",
|
|
313
|
+
"vendor": {
|
|
314
|
+
"description": "Preferred AI vendor",
|
|
315
|
+
"name": "vendor",
|
|
447
316
|
"hasDynamicHelp": false,
|
|
448
317
|
"multiple": false,
|
|
449
318
|
"type": "option"
|
|
450
319
|
},
|
|
451
|
-
"
|
|
452
|
-
"
|
|
453
|
-
"
|
|
454
|
-
"
|
|
320
|
+
"output": {
|
|
321
|
+
"char": "o",
|
|
322
|
+
"description": "Output directory",
|
|
323
|
+
"name": "output",
|
|
455
324
|
"hasDynamicHelp": false,
|
|
456
325
|
"multiple": false,
|
|
457
326
|
"type": "option"
|
|
458
327
|
},
|
|
459
|
-
"
|
|
460
|
-
"description": "
|
|
461
|
-
"name": "
|
|
462
|
-
"required": false,
|
|
328
|
+
"mode": {
|
|
329
|
+
"description": "Output mode: metadata|database|both",
|
|
330
|
+
"name": "mode",
|
|
463
331
|
"hasDynamicHelp": false,
|
|
464
332
|
"multiple": false,
|
|
333
|
+
"options": [
|
|
334
|
+
"metadata",
|
|
335
|
+
"database",
|
|
336
|
+
"both"
|
|
337
|
+
],
|
|
465
338
|
"type": "option"
|
|
339
|
+
},
|
|
340
|
+
"verbose": {
|
|
341
|
+
"char": "v",
|
|
342
|
+
"description": "Verbose output",
|
|
343
|
+
"name": "verbose",
|
|
344
|
+
"allowNo": false,
|
|
345
|
+
"type": "boolean"
|
|
466
346
|
}
|
|
467
347
|
},
|
|
468
348
|
"hasDynamicHelp": false,
|
|
469
349
|
"hiddenAliases": [],
|
|
470
|
-
"id": "
|
|
350
|
+
"id": "querygen:generate",
|
|
471
351
|
"pluginAlias": "@memberjunction/cli",
|
|
472
352
|
"pluginName": "@memberjunction/cli",
|
|
473
353
|
"pluginType": "core",
|
|
@@ -477,19 +357,40 @@
|
|
|
477
357
|
"relativePath": [
|
|
478
358
|
"dist",
|
|
479
359
|
"commands",
|
|
480
|
-
"
|
|
481
|
-
"generate
|
|
360
|
+
"querygen",
|
|
361
|
+
"generate.js"
|
|
482
362
|
]
|
|
483
363
|
},
|
|
484
|
-
"
|
|
364
|
+
"querygen:validate": {
|
|
485
365
|
"aliases": [],
|
|
486
366
|
"args": {},
|
|
487
|
-
"description": "
|
|
488
|
-
"
|
|
367
|
+
"description": "Validate existing query templates",
|
|
368
|
+
"examples": [
|
|
369
|
+
"<%= config.bin %> <%= command.id %>",
|
|
370
|
+
"<%= config.bin %> <%= command.id %> --path ./metadata/queries",
|
|
371
|
+
"<%= config.bin %> <%= command.id %> --verbose"
|
|
372
|
+
],
|
|
373
|
+
"flags": {
|
|
374
|
+
"path": {
|
|
375
|
+
"char": "p",
|
|
376
|
+
"description": "Path to queries metadata file or directory",
|
|
377
|
+
"name": "path",
|
|
378
|
+
"default": "./metadata/queries",
|
|
379
|
+
"hasDynamicHelp": false,
|
|
380
|
+
"multiple": false,
|
|
381
|
+
"type": "option"
|
|
382
|
+
},
|
|
383
|
+
"verbose": {
|
|
384
|
+
"char": "v",
|
|
385
|
+
"description": "Verbose output",
|
|
386
|
+
"name": "verbose",
|
|
387
|
+
"allowNo": false,
|
|
388
|
+
"type": "boolean"
|
|
389
|
+
}
|
|
390
|
+
},
|
|
489
391
|
"hasDynamicHelp": false,
|
|
490
|
-
"hidden": false,
|
|
491
392
|
"hiddenAliases": [],
|
|
492
|
-
"id": "
|
|
393
|
+
"id": "querygen:validate",
|
|
493
394
|
"pluginAlias": "@memberjunction/cli",
|
|
494
395
|
"pluginName": "@memberjunction/cli",
|
|
495
396
|
"pluginType": "core",
|
|
@@ -499,21 +400,64 @@
|
|
|
499
400
|
"relativePath": [
|
|
500
401
|
"dist",
|
|
501
402
|
"commands",
|
|
502
|
-
"
|
|
503
|
-
"
|
|
403
|
+
"querygen",
|
|
404
|
+
"validate.js"
|
|
504
405
|
]
|
|
505
406
|
},
|
|
506
|
-
"
|
|
407
|
+
"sync:file-reset": {
|
|
507
408
|
"aliases": [],
|
|
508
409
|
"args": {},
|
|
509
|
-
"description": "
|
|
410
|
+
"description": "Reset file metadata sections",
|
|
510
411
|
"examples": [
|
|
511
|
-
"<%= config.bin %> <%= command.id %>"
|
|
412
|
+
"<%= config.bin %> <%= command.id %>",
|
|
413
|
+
"<%= config.bin %> <%= command.id %> --dir=\"ai-prompts\"",
|
|
414
|
+
"<%= config.bin %> <%= command.id %> --sections=\"dependencies,references\"",
|
|
415
|
+
"<%= config.bin %> <%= command.id %> --all"
|
|
512
416
|
],
|
|
513
|
-
"flags": {
|
|
417
|
+
"flags": {
|
|
418
|
+
"dir": {
|
|
419
|
+
"description": "Specific entity directory to reset",
|
|
420
|
+
"name": "dir",
|
|
421
|
+
"hasDynamicHelp": false,
|
|
422
|
+
"multiple": false,
|
|
423
|
+
"type": "option"
|
|
424
|
+
},
|
|
425
|
+
"sections": {
|
|
426
|
+
"description": "Comma-separated list of sections to reset (dependencies,references,related,lookup)",
|
|
427
|
+
"name": "sections",
|
|
428
|
+
"hasDynamicHelp": false,
|
|
429
|
+
"multiple": false,
|
|
430
|
+
"type": "option"
|
|
431
|
+
},
|
|
432
|
+
"all": {
|
|
433
|
+
"description": "Reset all metadata sections",
|
|
434
|
+
"name": "all",
|
|
435
|
+
"allowNo": false,
|
|
436
|
+
"type": "boolean"
|
|
437
|
+
},
|
|
438
|
+
"dry-run": {
|
|
439
|
+
"description": "Show what would be reset without actually resetting",
|
|
440
|
+
"name": "dry-run",
|
|
441
|
+
"allowNo": false,
|
|
442
|
+
"type": "boolean"
|
|
443
|
+
},
|
|
444
|
+
"force": {
|
|
445
|
+
"description": "Skip confirmation prompts",
|
|
446
|
+
"name": "force",
|
|
447
|
+
"allowNo": false,
|
|
448
|
+
"type": "boolean"
|
|
449
|
+
},
|
|
450
|
+
"verbose": {
|
|
451
|
+
"char": "v",
|
|
452
|
+
"description": "Show detailed output",
|
|
453
|
+
"name": "verbose",
|
|
454
|
+
"allowNo": false,
|
|
455
|
+
"type": "boolean"
|
|
456
|
+
}
|
|
457
|
+
},
|
|
514
458
|
"hasDynamicHelp": false,
|
|
515
459
|
"hiddenAliases": [],
|
|
516
|
-
"id": "
|
|
460
|
+
"id": "sync:file-reset",
|
|
517
461
|
"pluginAlias": "@memberjunction/cli",
|
|
518
462
|
"pluginName": "@memberjunction/cli",
|
|
519
463
|
"pluginType": "core",
|
|
@@ -523,30 +467,21 @@
|
|
|
523
467
|
"relativePath": [
|
|
524
468
|
"dist",
|
|
525
469
|
"commands",
|
|
526
|
-
"
|
|
527
|
-
"
|
|
470
|
+
"sync",
|
|
471
|
+
"file-reset.js"
|
|
528
472
|
]
|
|
529
473
|
},
|
|
530
|
-
"
|
|
474
|
+
"sync:init": {
|
|
531
475
|
"aliases": [],
|
|
532
476
|
"args": {},
|
|
533
|
-
"description": "
|
|
477
|
+
"description": "Initialize a directory for metadata synchronization",
|
|
534
478
|
"examples": [
|
|
535
|
-
"<%= config.bin %> <%= command.id %>"
|
|
536
|
-
"<%= config.bin %> <%= command.id %> --force"
|
|
479
|
+
"<%= config.bin %> <%= command.id %>"
|
|
537
480
|
],
|
|
538
|
-
"flags": {
|
|
539
|
-
"force": {
|
|
540
|
-
"char": "f",
|
|
541
|
-
"description": "Force reset without confirmation",
|
|
542
|
-
"name": "force",
|
|
543
|
-
"allowNo": false,
|
|
544
|
-
"type": "boolean"
|
|
545
|
-
}
|
|
546
|
-
},
|
|
481
|
+
"flags": {},
|
|
547
482
|
"hasDynamicHelp": false,
|
|
548
483
|
"hiddenAliases": [],
|
|
549
|
-
"id": "
|
|
484
|
+
"id": "sync:init",
|
|
550
485
|
"pluginAlias": "@memberjunction/cli",
|
|
551
486
|
"pluginName": "@memberjunction/cli",
|
|
552
487
|
"pluginType": "core",
|
|
@@ -556,23 +491,119 @@
|
|
|
556
491
|
"relativePath": [
|
|
557
492
|
"dist",
|
|
558
493
|
"commands",
|
|
559
|
-
"
|
|
560
|
-
"
|
|
494
|
+
"sync",
|
|
495
|
+
"init.js"
|
|
561
496
|
]
|
|
562
497
|
},
|
|
563
|
-
"
|
|
498
|
+
"sync:pull": {
|
|
564
499
|
"aliases": [],
|
|
565
500
|
"args": {},
|
|
566
|
-
"description": "
|
|
501
|
+
"description": "Pull metadata from database to local files",
|
|
567
502
|
"examples": [
|
|
568
|
-
"<%= config.bin %> <%= command.id %>",
|
|
569
|
-
"<%= config.bin %> <%= command.id %> --
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
"
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
503
|
+
"<%= config.bin %> <%= command.id %> --entity=\"AI Prompts\"",
|
|
504
|
+
"<%= config.bin %> <%= command.id %> --entity=\"AI Prompts\" --filter=\"CategoryID='customer-service-id'\"",
|
|
505
|
+
"<%= config.bin %> <%= command.id %> --entity=\"AI Agents\" --merge-strategy=overwrite",
|
|
506
|
+
"<%= config.bin %> <%= command.id %> --entity=\"Actions\" --target-dir=./custom-actions --no-validate",
|
|
507
|
+
"<%= config.bin %> <%= command.id %> --entity=\"Templates\" --dry-run --verbose",
|
|
508
|
+
"<%= config.bin %> <%= command.id %> --entity=\"AI Prompts\" --exclude-fields=InternalNotes,DebugInfo"
|
|
509
|
+
],
|
|
510
|
+
"flags": {
|
|
511
|
+
"entity": {
|
|
512
|
+
"description": "Entity name to pull",
|
|
513
|
+
"name": "entity",
|
|
514
|
+
"required": true,
|
|
515
|
+
"hasDynamicHelp": false,
|
|
516
|
+
"multiple": false,
|
|
517
|
+
"type": "option"
|
|
518
|
+
},
|
|
519
|
+
"filter": {
|
|
520
|
+
"description": "Additional filter for pulling specific records",
|
|
521
|
+
"name": "filter",
|
|
522
|
+
"hasDynamicHelp": false,
|
|
523
|
+
"multiple": false,
|
|
524
|
+
"type": "option"
|
|
525
|
+
},
|
|
526
|
+
"dry-run": {
|
|
527
|
+
"description": "Show what would be pulled without actually pulling",
|
|
528
|
+
"name": "dry-run",
|
|
529
|
+
"allowNo": false,
|
|
530
|
+
"type": "boolean"
|
|
531
|
+
},
|
|
532
|
+
"multi-file": {
|
|
533
|
+
"description": "Create a single file with multiple records (provide filename)",
|
|
534
|
+
"name": "multi-file",
|
|
535
|
+
"hasDynamicHelp": false,
|
|
536
|
+
"multiple": false,
|
|
537
|
+
"type": "option"
|
|
538
|
+
},
|
|
539
|
+
"verbose": {
|
|
540
|
+
"char": "v",
|
|
541
|
+
"description": "Show detailed output",
|
|
542
|
+
"name": "verbose",
|
|
543
|
+
"allowNo": false,
|
|
544
|
+
"type": "boolean"
|
|
545
|
+
},
|
|
546
|
+
"no-validate": {
|
|
547
|
+
"description": "Skip validation before pull",
|
|
548
|
+
"name": "no-validate",
|
|
549
|
+
"allowNo": false,
|
|
550
|
+
"type": "boolean"
|
|
551
|
+
},
|
|
552
|
+
"update-existing": {
|
|
553
|
+
"description": "Update existing records during pull",
|
|
554
|
+
"name": "update-existing",
|
|
555
|
+
"allowNo": false,
|
|
556
|
+
"type": "boolean"
|
|
557
|
+
},
|
|
558
|
+
"create-new": {
|
|
559
|
+
"description": "Create new files for records not found locally",
|
|
560
|
+
"name": "create-new",
|
|
561
|
+
"allowNo": false,
|
|
562
|
+
"type": "boolean"
|
|
563
|
+
},
|
|
564
|
+
"backup-before-update": {
|
|
565
|
+
"description": "Create backups before updating files",
|
|
566
|
+
"name": "backup-before-update",
|
|
567
|
+
"allowNo": false,
|
|
568
|
+
"type": "boolean"
|
|
569
|
+
},
|
|
570
|
+
"merge-strategy": {
|
|
571
|
+
"description": "Merge strategy for updates",
|
|
572
|
+
"name": "merge-strategy",
|
|
573
|
+
"default": "merge",
|
|
574
|
+
"hasDynamicHelp": false,
|
|
575
|
+
"multiple": false,
|
|
576
|
+
"options": [
|
|
577
|
+
"merge",
|
|
578
|
+
"overwrite",
|
|
579
|
+
"skip"
|
|
580
|
+
],
|
|
581
|
+
"type": "option"
|
|
582
|
+
},
|
|
583
|
+
"backup-directory": {
|
|
584
|
+
"description": "Custom backup directory (default: .backups)",
|
|
585
|
+
"name": "backup-directory",
|
|
586
|
+
"hasDynamicHelp": false,
|
|
587
|
+
"multiple": false,
|
|
588
|
+
"type": "option"
|
|
589
|
+
},
|
|
590
|
+
"preserve-fields": {
|
|
591
|
+
"description": "Comma-separated list of fields to preserve during updates",
|
|
592
|
+
"name": "preserve-fields",
|
|
593
|
+
"hasDynamicHelp": false,
|
|
594
|
+
"multiple": true,
|
|
595
|
+
"type": "option"
|
|
596
|
+
},
|
|
597
|
+
"exclude-fields": {
|
|
598
|
+
"description": "Comma-separated list of fields to exclude from pull",
|
|
599
|
+
"name": "exclude-fields",
|
|
600
|
+
"hasDynamicHelp": false,
|
|
601
|
+
"multiple": true,
|
|
602
|
+
"type": "option"
|
|
603
|
+
},
|
|
604
|
+
"target-dir": {
|
|
605
|
+
"description": "Specific target directory (overrides auto-discovery)",
|
|
606
|
+
"name": "target-dir",
|
|
576
607
|
"hasDynamicHelp": false,
|
|
577
608
|
"multiple": false,
|
|
578
609
|
"type": "option"
|
|
@@ -580,7 +611,7 @@
|
|
|
580
611
|
},
|
|
581
612
|
"hasDynamicHelp": false,
|
|
582
613
|
"hiddenAliases": [],
|
|
583
|
-
"id": "
|
|
614
|
+
"id": "sync:pull",
|
|
584
615
|
"pluginAlias": "@memberjunction/cli",
|
|
585
616
|
"pluginName": "@memberjunction/cli",
|
|
586
617
|
"pluginType": "core",
|
|
@@ -590,29 +621,79 @@
|
|
|
590
621
|
"relativePath": [
|
|
591
622
|
"dist",
|
|
592
623
|
"commands",
|
|
593
|
-
"
|
|
594
|
-
"
|
|
624
|
+
"sync",
|
|
625
|
+
"pull.js"
|
|
595
626
|
]
|
|
596
627
|
},
|
|
597
|
-
"
|
|
628
|
+
"sync:push": {
|
|
598
629
|
"aliases": [],
|
|
599
630
|
"args": {},
|
|
600
|
-
"description": "
|
|
631
|
+
"description": "Push local file changes to the database",
|
|
601
632
|
"examples": [
|
|
602
|
-
"<%= config.bin %> <%= command.id
|
|
633
|
+
"<%= config.bin %> <%= command.id %>",
|
|
634
|
+
"<%= config.bin %> <%= command.id %> --dry-run",
|
|
635
|
+
"<%= config.bin %> <%= command.id %> --dir=\"ai-prompts\"",
|
|
636
|
+
"<%= config.bin %> <%= command.id %> --ci"
|
|
603
637
|
],
|
|
604
638
|
"flags": {
|
|
639
|
+
"dir": {
|
|
640
|
+
"description": "Specific entity directory to push",
|
|
641
|
+
"name": "dir",
|
|
642
|
+
"hasDynamicHelp": false,
|
|
643
|
+
"multiple": false,
|
|
644
|
+
"type": "option"
|
|
645
|
+
},
|
|
646
|
+
"dry-run": {
|
|
647
|
+
"description": "Show what would be pushed without actually pushing",
|
|
648
|
+
"name": "dry-run",
|
|
649
|
+
"allowNo": false,
|
|
650
|
+
"type": "boolean"
|
|
651
|
+
},
|
|
652
|
+
"ci": {
|
|
653
|
+
"description": "CI mode - no prompts, fail on issues",
|
|
654
|
+
"name": "ci",
|
|
655
|
+
"allowNo": false,
|
|
656
|
+
"type": "boolean"
|
|
657
|
+
},
|
|
605
658
|
"verbose": {
|
|
606
659
|
"char": "v",
|
|
607
|
-
"description": "
|
|
660
|
+
"description": "Show detailed field-level output",
|
|
608
661
|
"name": "verbose",
|
|
609
662
|
"allowNo": false,
|
|
610
663
|
"type": "boolean"
|
|
664
|
+
},
|
|
665
|
+
"no-validate": {
|
|
666
|
+
"description": "Skip validation before push",
|
|
667
|
+
"name": "no-validate",
|
|
668
|
+
"allowNo": false,
|
|
669
|
+
"type": "boolean"
|
|
670
|
+
},
|
|
671
|
+
"parallel-batch-size": {
|
|
672
|
+
"description": "Number of records to process in parallel (default: 10)",
|
|
673
|
+
"name": "parallel-batch-size",
|
|
674
|
+
"default": 10,
|
|
675
|
+
"hasDynamicHelp": false,
|
|
676
|
+
"multiple": false,
|
|
677
|
+
"type": "option"
|
|
678
|
+
},
|
|
679
|
+
"include": {
|
|
680
|
+
"description": "Only process these directories (comma-separated, supports patterns)",
|
|
681
|
+
"name": "include",
|
|
682
|
+
"hasDynamicHelp": false,
|
|
683
|
+
"multiple": false,
|
|
684
|
+
"type": "option"
|
|
685
|
+
},
|
|
686
|
+
"exclude": {
|
|
687
|
+
"description": "Skip these directories (comma-separated, supports patterns)",
|
|
688
|
+
"name": "exclude",
|
|
689
|
+
"hasDynamicHelp": false,
|
|
690
|
+
"multiple": false,
|
|
691
|
+
"type": "option"
|
|
611
692
|
}
|
|
612
693
|
},
|
|
613
694
|
"hasDynamicHelp": false,
|
|
614
695
|
"hiddenAliases": [],
|
|
615
|
-
"id": "
|
|
696
|
+
"id": "sync:push",
|
|
616
697
|
"pluginAlias": "@memberjunction/cli",
|
|
617
698
|
"pluginName": "@memberjunction/cli",
|
|
618
699
|
"pluginType": "core",
|
|
@@ -622,29 +703,44 @@
|
|
|
622
703
|
"relativePath": [
|
|
623
704
|
"dist",
|
|
624
705
|
"commands",
|
|
625
|
-
"
|
|
626
|
-
"
|
|
706
|
+
"sync",
|
|
707
|
+
"push.js"
|
|
627
708
|
]
|
|
628
709
|
},
|
|
629
|
-
"
|
|
710
|
+
"sync:status": {
|
|
630
711
|
"aliases": [],
|
|
631
712
|
"args": {},
|
|
632
|
-
"description": "
|
|
713
|
+
"description": "Show status of local files vs database",
|
|
633
714
|
"examples": [
|
|
634
|
-
"<%= config.bin %> <%= command.id
|
|
715
|
+
"<%= config.bin %> <%= command.id %>",
|
|
716
|
+
"<%= config.bin %> <%= command.id %> --dir=\"ai-prompts\"",
|
|
717
|
+
"<%= config.bin %> <%= command.id %> --verbose"
|
|
635
718
|
],
|
|
636
719
|
"flags": {
|
|
720
|
+
"dir": {
|
|
721
|
+
"description": "Specific entity directory to check status",
|
|
722
|
+
"name": "dir",
|
|
723
|
+
"hasDynamicHelp": false,
|
|
724
|
+
"multiple": false,
|
|
725
|
+
"type": "option"
|
|
726
|
+
},
|
|
637
727
|
"verbose": {
|
|
638
728
|
"char": "v",
|
|
639
|
-
"description": "
|
|
729
|
+
"description": "Show detailed field-level differences",
|
|
640
730
|
"name": "verbose",
|
|
641
731
|
"allowNo": false,
|
|
642
732
|
"type": "boolean"
|
|
643
733
|
},
|
|
644
|
-
"
|
|
645
|
-
"
|
|
646
|
-
"
|
|
647
|
-
"
|
|
734
|
+
"include": {
|
|
735
|
+
"description": "Only process these directories (comma-separated, supports patterns)",
|
|
736
|
+
"name": "include",
|
|
737
|
+
"hasDynamicHelp": false,
|
|
738
|
+
"multiple": false,
|
|
739
|
+
"type": "option"
|
|
740
|
+
},
|
|
741
|
+
"exclude": {
|
|
742
|
+
"description": "Skip these directories (comma-separated, supports patterns)",
|
|
743
|
+
"name": "exclude",
|
|
648
744
|
"hasDynamicHelp": false,
|
|
649
745
|
"multiple": false,
|
|
650
746
|
"type": "option"
|
|
@@ -652,7 +748,7 @@
|
|
|
652
748
|
},
|
|
653
749
|
"hasDynamicHelp": false,
|
|
654
750
|
"hiddenAliases": [],
|
|
655
|
-
"id": "
|
|
751
|
+
"id": "sync:status",
|
|
656
752
|
"pluginAlias": "@memberjunction/cli",
|
|
657
753
|
"pluginName": "@memberjunction/cli",
|
|
658
754
|
"pluginType": "core",
|
|
@@ -662,40 +758,52 @@
|
|
|
662
758
|
"relativePath": [
|
|
663
759
|
"dist",
|
|
664
760
|
"commands",
|
|
665
|
-
"
|
|
666
|
-
"
|
|
761
|
+
"sync",
|
|
762
|
+
"status.js"
|
|
667
763
|
]
|
|
668
764
|
},
|
|
669
|
-
"
|
|
765
|
+
"sync:validate": {
|
|
670
766
|
"aliases": [],
|
|
671
767
|
"args": {},
|
|
672
|
-
"description": "
|
|
768
|
+
"description": "Validate metadata files",
|
|
673
769
|
"examples": [
|
|
674
770
|
"<%= config.bin %> <%= command.id %>",
|
|
675
|
-
"<%= config.bin %> <%= command.id %> --
|
|
771
|
+
"<%= config.bin %> <%= command.id %> --dir=\"ai-prompts\"",
|
|
772
|
+
"<%= config.bin %> <%= command.id %> --save-report",
|
|
676
773
|
"<%= config.bin %> <%= command.id %> --verbose"
|
|
677
774
|
],
|
|
678
775
|
"flags": {
|
|
679
|
-
"
|
|
680
|
-
"
|
|
681
|
-
"
|
|
682
|
-
"name": "output",
|
|
683
|
-
"default": "./metadata/queries",
|
|
776
|
+
"dir": {
|
|
777
|
+
"description": "Specific entity directory to validate",
|
|
778
|
+
"name": "dir",
|
|
684
779
|
"hasDynamicHelp": false,
|
|
685
780
|
"multiple": false,
|
|
686
781
|
"type": "option"
|
|
687
782
|
},
|
|
688
783
|
"verbose": {
|
|
689
784
|
"char": "v",
|
|
690
|
-
"description": "
|
|
785
|
+
"description": "Show detailed validation output",
|
|
691
786
|
"name": "verbose",
|
|
692
787
|
"allowNo": false,
|
|
693
788
|
"type": "boolean"
|
|
789
|
+
},
|
|
790
|
+
"save-report": {
|
|
791
|
+
"description": "Save validation report as markdown file",
|
|
792
|
+
"name": "save-report",
|
|
793
|
+
"allowNo": false,
|
|
794
|
+
"type": "boolean"
|
|
795
|
+
},
|
|
796
|
+
"output": {
|
|
797
|
+
"description": "Output file path for validation report (default: validation-report.md)",
|
|
798
|
+
"name": "output",
|
|
799
|
+
"hasDynamicHelp": false,
|
|
800
|
+
"multiple": false,
|
|
801
|
+
"type": "option"
|
|
694
802
|
}
|
|
695
803
|
},
|
|
696
804
|
"hasDynamicHelp": false,
|
|
697
805
|
"hiddenAliases": [],
|
|
698
|
-
"id": "
|
|
806
|
+
"id": "sync:validate",
|
|
699
807
|
"pluginAlias": "@memberjunction/cli",
|
|
700
808
|
"pluginName": "@memberjunction/cli",
|
|
701
809
|
"pluginType": "core",
|
|
@@ -705,118 +813,222 @@
|
|
|
705
813
|
"relativePath": [
|
|
706
814
|
"dist",
|
|
707
815
|
"commands",
|
|
708
|
-
"
|
|
709
|
-
"
|
|
816
|
+
"sync",
|
|
817
|
+
"validate.js"
|
|
710
818
|
]
|
|
711
819
|
},
|
|
712
|
-
"
|
|
820
|
+
"sync:watch": {
|
|
713
821
|
"aliases": [],
|
|
714
822
|
"args": {},
|
|
715
|
-
"description": "
|
|
823
|
+
"description": "Watch for file changes and sync automatically",
|
|
716
824
|
"examples": [
|
|
717
825
|
"<%= config.bin %> <%= command.id %>",
|
|
718
|
-
"<%= config.bin %> <%= command.id %> --
|
|
719
|
-
"<%= config.bin %> <%= command.id %> --
|
|
720
|
-
"<%= config.bin %> <%= command.id %> --
|
|
826
|
+
"<%= config.bin %> <%= command.id %> --dir=\"ai-prompts\"",
|
|
827
|
+
"<%= config.bin %> <%= command.id %> --debounce=1000",
|
|
828
|
+
"<%= config.bin %> <%= command.id %> --no-validate"
|
|
721
829
|
],
|
|
722
830
|
"flags": {
|
|
723
|
-
"
|
|
724
|
-
"
|
|
725
|
-
"
|
|
726
|
-
"name": "entities",
|
|
831
|
+
"dir": {
|
|
832
|
+
"description": "Specific entity directory to watch",
|
|
833
|
+
"name": "dir",
|
|
727
834
|
"hasDynamicHelp": false,
|
|
728
835
|
"multiple": false,
|
|
729
836
|
"type": "option"
|
|
730
837
|
},
|
|
731
|
-
"
|
|
732
|
-
"
|
|
733
|
-
"
|
|
734
|
-
"name": "exclude-entities",
|
|
838
|
+
"debounce": {
|
|
839
|
+
"description": "Debounce delay in milliseconds (default: 500)",
|
|
840
|
+
"name": "debounce",
|
|
735
841
|
"hasDynamicHelp": false,
|
|
736
842
|
"multiple": false,
|
|
737
843
|
"type": "option"
|
|
738
844
|
},
|
|
739
|
-
"
|
|
740
|
-
"
|
|
741
|
-
"
|
|
742
|
-
"
|
|
845
|
+
"no-validate": {
|
|
846
|
+
"description": "Skip validation before sync",
|
|
847
|
+
"name": "no-validate",
|
|
848
|
+
"allowNo": false,
|
|
849
|
+
"type": "boolean"
|
|
850
|
+
},
|
|
851
|
+
"verbose": {
|
|
852
|
+
"char": "v",
|
|
853
|
+
"description": "Show detailed output",
|
|
854
|
+
"name": "verbose",
|
|
855
|
+
"allowNo": false,
|
|
856
|
+
"type": "boolean"
|
|
857
|
+
}
|
|
858
|
+
},
|
|
859
|
+
"hasDynamicHelp": false,
|
|
860
|
+
"hiddenAliases": [],
|
|
861
|
+
"id": "sync:watch",
|
|
862
|
+
"pluginAlias": "@memberjunction/cli",
|
|
863
|
+
"pluginName": "@memberjunction/cli",
|
|
864
|
+
"pluginType": "core",
|
|
865
|
+
"strict": true,
|
|
866
|
+
"enableJsonFlag": false,
|
|
867
|
+
"isESM": false,
|
|
868
|
+
"relativePath": [
|
|
869
|
+
"dist",
|
|
870
|
+
"commands",
|
|
871
|
+
"sync",
|
|
872
|
+
"watch.js"
|
|
873
|
+
]
|
|
874
|
+
},
|
|
875
|
+
"test:compare": {
|
|
876
|
+
"aliases": [],
|
|
877
|
+
"args": {
|
|
878
|
+
"runId1": {
|
|
879
|
+
"description": "First test run ID to compare",
|
|
880
|
+
"name": "runId1",
|
|
881
|
+
"required": false
|
|
882
|
+
},
|
|
883
|
+
"runId2": {
|
|
884
|
+
"description": "Second test run ID to compare",
|
|
885
|
+
"name": "runId2",
|
|
886
|
+
"required": false
|
|
887
|
+
}
|
|
888
|
+
},
|
|
889
|
+
"description": "Compare test runs for regression detection",
|
|
890
|
+
"examples": [
|
|
891
|
+
"<%= config.bin %> <%= command.id %> <run-id-1> <run-id-2>",
|
|
892
|
+
"<%= config.bin %> <%= command.id %> --baseline=<run-id> --current=<run-id>",
|
|
893
|
+
"<%= config.bin %> <%= command.id %> --suite=<suite-id> --since=\"2024-01-01\"",
|
|
894
|
+
"<%= config.bin %> <%= command.id %> <run-id-1> <run-id-2> --format=json"
|
|
895
|
+
],
|
|
896
|
+
"flags": {
|
|
897
|
+
"version": {
|
|
898
|
+
"char": "v",
|
|
899
|
+
"description": "Compare runs by version",
|
|
900
|
+
"name": "version",
|
|
901
|
+
"hasDynamicHelp": false,
|
|
902
|
+
"multiple": true,
|
|
903
|
+
"type": "option"
|
|
904
|
+
},
|
|
905
|
+
"commit": {
|
|
906
|
+
"char": "c",
|
|
907
|
+
"description": "Compare runs by git commit",
|
|
908
|
+
"name": "commit",
|
|
909
|
+
"hasDynamicHelp": false,
|
|
910
|
+
"multiple": true,
|
|
911
|
+
"type": "option"
|
|
912
|
+
},
|
|
913
|
+
"diff-only": {
|
|
914
|
+
"description": "Show only differences",
|
|
915
|
+
"name": "diff-only",
|
|
916
|
+
"allowNo": false,
|
|
917
|
+
"type": "boolean"
|
|
918
|
+
},
|
|
919
|
+
"format": {
|
|
920
|
+
"char": "f",
|
|
921
|
+
"description": "Output format",
|
|
922
|
+
"name": "format",
|
|
923
|
+
"default": "console",
|
|
743
924
|
"hasDynamicHelp": false,
|
|
744
925
|
"multiple": false,
|
|
926
|
+
"options": [
|
|
927
|
+
"console",
|
|
928
|
+
"json",
|
|
929
|
+
"markdown"
|
|
930
|
+
],
|
|
745
931
|
"type": "option"
|
|
746
932
|
},
|
|
747
|
-
"
|
|
748
|
-
"char": "
|
|
749
|
-
"description": "
|
|
750
|
-
"name": "
|
|
751
|
-
"default": 3,
|
|
933
|
+
"output": {
|
|
934
|
+
"char": "o",
|
|
935
|
+
"description": "Output file path",
|
|
936
|
+
"name": "output",
|
|
752
937
|
"hasDynamicHelp": false,
|
|
753
938
|
"multiple": false,
|
|
754
939
|
"type": "option"
|
|
755
940
|
},
|
|
756
|
-
"
|
|
941
|
+
"verbose": {
|
|
942
|
+
"description": "Show detailed information",
|
|
943
|
+
"name": "verbose",
|
|
944
|
+
"allowNo": false,
|
|
945
|
+
"type": "boolean"
|
|
946
|
+
}
|
|
947
|
+
},
|
|
948
|
+
"hasDynamicHelp": false,
|
|
949
|
+
"hiddenAliases": [],
|
|
950
|
+
"id": "test:compare",
|
|
951
|
+
"pluginAlias": "@memberjunction/cli",
|
|
952
|
+
"pluginName": "@memberjunction/cli",
|
|
953
|
+
"pluginType": "core",
|
|
954
|
+
"strict": true,
|
|
955
|
+
"enableJsonFlag": false,
|
|
956
|
+
"isESM": false,
|
|
957
|
+
"relativePath": [
|
|
958
|
+
"dist",
|
|
959
|
+
"commands",
|
|
960
|
+
"test",
|
|
961
|
+
"compare.js"
|
|
962
|
+
]
|
|
963
|
+
},
|
|
964
|
+
"test:history": {
|
|
965
|
+
"aliases": [],
|
|
966
|
+
"args": {},
|
|
967
|
+
"description": "View test execution history",
|
|
968
|
+
"examples": [
|
|
969
|
+
"<%= config.bin %> <%= command.id %>",
|
|
970
|
+
"<%= config.bin %> <%= command.id %> --test=<test-id>",
|
|
971
|
+
"<%= config.bin %> <%= command.id %> --suite=<suite-id>",
|
|
972
|
+
"<%= config.bin %> <%= command.id %> --since=\"2024-01-01\"",
|
|
973
|
+
"<%= config.bin %> <%= command.id %> --limit=50"
|
|
974
|
+
],
|
|
975
|
+
"flags": {
|
|
976
|
+
"test": {
|
|
757
977
|
"char": "t",
|
|
758
|
-
"description": "
|
|
759
|
-
"name": "
|
|
760
|
-
"default": 75,
|
|
978
|
+
"description": "Filter by test ID",
|
|
979
|
+
"name": "test",
|
|
761
980
|
"hasDynamicHelp": false,
|
|
762
981
|
"multiple": false,
|
|
763
982
|
"type": "option"
|
|
764
983
|
},
|
|
765
|
-
"
|
|
984
|
+
"recent": {
|
|
766
985
|
"char": "r",
|
|
767
|
-
"description": "
|
|
768
|
-
"name": "
|
|
769
|
-
"default": 3,
|
|
986
|
+
"description": "Number of recent runs to show",
|
|
987
|
+
"name": "recent",
|
|
770
988
|
"hasDynamicHelp": false,
|
|
771
989
|
"multiple": false,
|
|
772
990
|
"type": "option"
|
|
773
991
|
},
|
|
774
|
-
"
|
|
775
|
-
"
|
|
776
|
-
"
|
|
777
|
-
"name": "max-fixes",
|
|
778
|
-
"default": 5,
|
|
992
|
+
"from": {
|
|
993
|
+
"description": "Show history from date (YYYY-MM-DD)",
|
|
994
|
+
"name": "from",
|
|
779
995
|
"hasDynamicHelp": false,
|
|
780
996
|
"multiple": false,
|
|
781
997
|
"type": "option"
|
|
782
998
|
},
|
|
783
|
-
"
|
|
784
|
-
"
|
|
785
|
-
"
|
|
999
|
+
"status": {
|
|
1000
|
+
"char": "s",
|
|
1001
|
+
"description": "Filter by status",
|
|
1002
|
+
"name": "status",
|
|
786
1003
|
"hasDynamicHelp": false,
|
|
787
1004
|
"multiple": false,
|
|
788
1005
|
"type": "option"
|
|
789
1006
|
},
|
|
790
|
-
"
|
|
791
|
-
"
|
|
792
|
-
"
|
|
1007
|
+
"format": {
|
|
1008
|
+
"char": "f",
|
|
1009
|
+
"description": "Output format",
|
|
1010
|
+
"name": "format",
|
|
1011
|
+
"default": "console",
|
|
793
1012
|
"hasDynamicHelp": false,
|
|
794
1013
|
"multiple": false,
|
|
1014
|
+
"options": [
|
|
1015
|
+
"console",
|
|
1016
|
+
"json",
|
|
1017
|
+
"markdown"
|
|
1018
|
+
],
|
|
795
1019
|
"type": "option"
|
|
796
1020
|
},
|
|
797
1021
|
"output": {
|
|
798
1022
|
"char": "o",
|
|
799
|
-
"description": "Output
|
|
1023
|
+
"description": "Output file path",
|
|
800
1024
|
"name": "output",
|
|
801
1025
|
"hasDynamicHelp": false,
|
|
802
1026
|
"multiple": false,
|
|
803
1027
|
"type": "option"
|
|
804
1028
|
},
|
|
805
|
-
"mode": {
|
|
806
|
-
"description": "Output mode: metadata|database|both",
|
|
807
|
-
"name": "mode",
|
|
808
|
-
"hasDynamicHelp": false,
|
|
809
|
-
"multiple": false,
|
|
810
|
-
"options": [
|
|
811
|
-
"metadata",
|
|
812
|
-
"database",
|
|
813
|
-
"both"
|
|
814
|
-
],
|
|
815
|
-
"type": "option"
|
|
816
|
-
},
|
|
817
1029
|
"verbose": {
|
|
818
1030
|
"char": "v",
|
|
819
|
-
"description": "
|
|
1031
|
+
"description": "Show detailed information",
|
|
820
1032
|
"name": "verbose",
|
|
821
1033
|
"allowNo": false,
|
|
822
1034
|
"type": "boolean"
|
|
@@ -824,7 +1036,7 @@
|
|
|
824
1036
|
},
|
|
825
1037
|
"hasDynamicHelp": false,
|
|
826
1038
|
"hiddenAliases": [],
|
|
827
|
-
"id": "
|
|
1039
|
+
"id": "test:history",
|
|
828
1040
|
"pluginAlias": "@memberjunction/cli",
|
|
829
1041
|
"pluginName": "@memberjunction/cli",
|
|
830
1042
|
"pluginType": "core",
|
|
@@ -834,40 +1046,26 @@
|
|
|
834
1046
|
"relativePath": [
|
|
835
1047
|
"dist",
|
|
836
1048
|
"commands",
|
|
837
|
-
"
|
|
838
|
-
"
|
|
1049
|
+
"test",
|
|
1050
|
+
"history.js"
|
|
839
1051
|
]
|
|
840
1052
|
},
|
|
841
|
-
"
|
|
1053
|
+
"test": {
|
|
842
1054
|
"aliases": [],
|
|
843
1055
|
"args": {},
|
|
844
|
-
"description": "
|
|
1056
|
+
"description": "MemberJunction Testing Framework - Execute and manage tests",
|
|
845
1057
|
"examples": [
|
|
846
|
-
"<%= config.bin %> <%= command.id %>",
|
|
847
|
-
"<%= config.bin %> <%= command.id %> --
|
|
848
|
-
"<%= config.bin %> <%= command.id %>
|
|
1058
|
+
"<%= config.bin %> <%= command.id %> run <test-id>",
|
|
1059
|
+
"<%= config.bin %> <%= command.id %> run --name=\"Active Members Count\"",
|
|
1060
|
+
"<%= config.bin %> <%= command.id %> suite <suite-id>",
|
|
1061
|
+
"<%= config.bin %> <%= command.id %> list",
|
|
1062
|
+
"<%= config.bin %> <%= command.id %> list --suites",
|
|
1063
|
+
"<%= config.bin %> <%= command.id %> validate --all"
|
|
849
1064
|
],
|
|
850
|
-
"flags": {
|
|
851
|
-
"path": {
|
|
852
|
-
"char": "p",
|
|
853
|
-
"description": "Path to queries metadata file or directory",
|
|
854
|
-
"name": "path",
|
|
855
|
-
"default": "./metadata/queries",
|
|
856
|
-
"hasDynamicHelp": false,
|
|
857
|
-
"multiple": false,
|
|
858
|
-
"type": "option"
|
|
859
|
-
},
|
|
860
|
-
"verbose": {
|
|
861
|
-
"char": "v",
|
|
862
|
-
"description": "Verbose output",
|
|
863
|
-
"name": "verbose",
|
|
864
|
-
"allowNo": false,
|
|
865
|
-
"type": "boolean"
|
|
866
|
-
}
|
|
867
|
-
},
|
|
1065
|
+
"flags": {},
|
|
868
1066
|
"hasDynamicHelp": false,
|
|
869
1067
|
"hiddenAliases": [],
|
|
870
|
-
"id": "
|
|
1068
|
+
"id": "test",
|
|
871
1069
|
"pluginAlias": "@memberjunction/cli",
|
|
872
1070
|
"pluginName": "@memberjunction/cli",
|
|
873
1071
|
"pluginType": "core",
|
|
@@ -877,56 +1075,83 @@
|
|
|
877
1075
|
"relativePath": [
|
|
878
1076
|
"dist",
|
|
879
1077
|
"commands",
|
|
880
|
-
"
|
|
881
|
-
"
|
|
1078
|
+
"test",
|
|
1079
|
+
"index.js"
|
|
882
1080
|
]
|
|
883
1081
|
},
|
|
884
|
-
"
|
|
1082
|
+
"test:list": {
|
|
885
1083
|
"aliases": [],
|
|
886
1084
|
"args": {},
|
|
887
|
-
"description": "
|
|
1085
|
+
"description": "List available tests, suites, and types",
|
|
888
1086
|
"examples": [
|
|
889
1087
|
"<%= config.bin %> <%= command.id %>",
|
|
890
|
-
"<%= config.bin %> <%= command.id %> --
|
|
891
|
-
"<%= config.bin %> <%= command.id %> --
|
|
892
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1088
|
+
"<%= config.bin %> <%= command.id %> --suites",
|
|
1089
|
+
"<%= config.bin %> <%= command.id %> --types",
|
|
1090
|
+
"<%= config.bin %> <%= command.id %> --type=agent-eval",
|
|
1091
|
+
"<%= config.bin %> <%= command.id %> --tag=smoke",
|
|
1092
|
+
"<%= config.bin %> <%= command.id %> --status=active --verbose"
|
|
893
1093
|
],
|
|
894
1094
|
"flags": {
|
|
895
|
-
"
|
|
896
|
-
"description": "
|
|
897
|
-
"name": "
|
|
1095
|
+
"suites": {
|
|
1096
|
+
"description": "List test suites instead of tests",
|
|
1097
|
+
"name": "suites",
|
|
1098
|
+
"allowNo": false,
|
|
1099
|
+
"type": "boolean"
|
|
1100
|
+
},
|
|
1101
|
+
"types": {
|
|
1102
|
+
"description": "List test types",
|
|
1103
|
+
"name": "types",
|
|
1104
|
+
"allowNo": false,
|
|
1105
|
+
"type": "boolean"
|
|
1106
|
+
},
|
|
1107
|
+
"type": {
|
|
1108
|
+
"char": "t",
|
|
1109
|
+
"description": "Filter by test type",
|
|
1110
|
+
"name": "type",
|
|
898
1111
|
"hasDynamicHelp": false,
|
|
899
1112
|
"multiple": false,
|
|
900
1113
|
"type": "option"
|
|
901
1114
|
},
|
|
902
|
-
"
|
|
903
|
-
"description": "
|
|
904
|
-
"name": "
|
|
1115
|
+
"tag": {
|
|
1116
|
+
"description": "Filter by tag",
|
|
1117
|
+
"name": "tag",
|
|
905
1118
|
"hasDynamicHelp": false,
|
|
906
1119
|
"multiple": false,
|
|
907
1120
|
"type": "option"
|
|
908
1121
|
},
|
|
909
|
-
"
|
|
910
|
-
"
|
|
911
|
-
"
|
|
912
|
-
"
|
|
913
|
-
"
|
|
1122
|
+
"status": {
|
|
1123
|
+
"char": "s",
|
|
1124
|
+
"description": "Filter by status",
|
|
1125
|
+
"name": "status",
|
|
1126
|
+
"hasDynamicHelp": false,
|
|
1127
|
+
"multiple": false,
|
|
1128
|
+
"type": "option"
|
|
914
1129
|
},
|
|
915
|
-
"
|
|
916
|
-
"
|
|
917
|
-
"
|
|
918
|
-
"
|
|
919
|
-
"
|
|
1130
|
+
"format": {
|
|
1131
|
+
"char": "f",
|
|
1132
|
+
"description": "Output format",
|
|
1133
|
+
"name": "format",
|
|
1134
|
+
"default": "console",
|
|
1135
|
+
"hasDynamicHelp": false,
|
|
1136
|
+
"multiple": false,
|
|
1137
|
+
"options": [
|
|
1138
|
+
"console",
|
|
1139
|
+
"json",
|
|
1140
|
+
"markdown"
|
|
1141
|
+
],
|
|
1142
|
+
"type": "option"
|
|
920
1143
|
},
|
|
921
|
-
"
|
|
922
|
-
"
|
|
923
|
-
"
|
|
924
|
-
"
|
|
925
|
-
"
|
|
1144
|
+
"output": {
|
|
1145
|
+
"char": "o",
|
|
1146
|
+
"description": "Output file path",
|
|
1147
|
+
"name": "output",
|
|
1148
|
+
"hasDynamicHelp": false,
|
|
1149
|
+
"multiple": false,
|
|
1150
|
+
"type": "option"
|
|
926
1151
|
},
|
|
927
1152
|
"verbose": {
|
|
928
1153
|
"char": "v",
|
|
929
|
-
"description": "Show detailed
|
|
1154
|
+
"description": "Show detailed information",
|
|
930
1155
|
"name": "verbose",
|
|
931
1156
|
"allowNo": false,
|
|
932
1157
|
"type": "boolean"
|
|
@@ -934,31 +1159,7 @@
|
|
|
934
1159
|
},
|
|
935
1160
|
"hasDynamicHelp": false,
|
|
936
1161
|
"hiddenAliases": [],
|
|
937
|
-
"id": "
|
|
938
|
-
"pluginAlias": "@memberjunction/cli",
|
|
939
|
-
"pluginName": "@memberjunction/cli",
|
|
940
|
-
"pluginType": "core",
|
|
941
|
-
"strict": true,
|
|
942
|
-
"enableJsonFlag": false,
|
|
943
|
-
"isESM": false,
|
|
944
|
-
"relativePath": [
|
|
945
|
-
"dist",
|
|
946
|
-
"commands",
|
|
947
|
-
"sync",
|
|
948
|
-
"file-reset.js"
|
|
949
|
-
]
|
|
950
|
-
},
|
|
951
|
-
"sync:init": {
|
|
952
|
-
"aliases": [],
|
|
953
|
-
"args": {},
|
|
954
|
-
"description": "Initialize a directory for metadata synchronization",
|
|
955
|
-
"examples": [
|
|
956
|
-
"<%= config.bin %> <%= command.id %>"
|
|
957
|
-
],
|
|
958
|
-
"flags": {},
|
|
959
|
-
"hasDynamicHelp": false,
|
|
960
|
-
"hiddenAliases": [],
|
|
961
|
-
"id": "sync:init",
|
|
1162
|
+
"id": "test:list",
|
|
962
1163
|
"pluginAlias": "@memberjunction/cli",
|
|
963
1164
|
"pluginName": "@memberjunction/cli",
|
|
964
1165
|
"pluginType": "core",
|
|
@@ -968,127 +1169,83 @@
|
|
|
968
1169
|
"relativePath": [
|
|
969
1170
|
"dist",
|
|
970
1171
|
"commands",
|
|
971
|
-
"
|
|
972
|
-
"
|
|
1172
|
+
"test",
|
|
1173
|
+
"list.js"
|
|
973
1174
|
]
|
|
974
1175
|
},
|
|
975
|
-
"
|
|
1176
|
+
"test:run": {
|
|
976
1177
|
"aliases": [],
|
|
977
|
-
"args": {
|
|
978
|
-
|
|
1178
|
+
"args": {
|
|
1179
|
+
"testId": {
|
|
1180
|
+
"description": "Test ID to execute",
|
|
1181
|
+
"name": "testId",
|
|
1182
|
+
"required": false
|
|
1183
|
+
}
|
|
1184
|
+
},
|
|
1185
|
+
"description": "Execute a single test by ID or name",
|
|
979
1186
|
"examples": [
|
|
980
|
-
"<%= config.bin %> <%= command.id %>
|
|
981
|
-
"<%= config.bin %> <%= command.id %> --
|
|
982
|
-
"<%= config.bin %> <%= command.id %>
|
|
983
|
-
"<%= config.bin %> <%= command.id %>
|
|
984
|
-
"<%= config.bin %> <%= command.id %>
|
|
985
|
-
"<%= config.bin %> <%= command.id %> --entity=\"AI Prompts\" --exclude-fields=InternalNotes,DebugInfo"
|
|
1187
|
+
"<%= config.bin %> <%= command.id %> <test-id>",
|
|
1188
|
+
"<%= config.bin %> <%= command.id %> --name=\"Active Members Count\"",
|
|
1189
|
+
"<%= config.bin %> <%= command.id %> <test-id> --environment=staging",
|
|
1190
|
+
"<%= config.bin %> <%= command.id %> <test-id> --format=json --output=results.json",
|
|
1191
|
+
"<%= config.bin %> <%= command.id %> <test-id> --dry-run"
|
|
986
1192
|
],
|
|
987
1193
|
"flags": {
|
|
988
|
-
"
|
|
989
|
-
"
|
|
990
|
-
"
|
|
991
|
-
"
|
|
992
|
-
"hasDynamicHelp": false,
|
|
993
|
-
"multiple": false,
|
|
994
|
-
"type": "option"
|
|
995
|
-
},
|
|
996
|
-
"filter": {
|
|
997
|
-
"description": "Additional filter for pulling specific records",
|
|
998
|
-
"name": "filter",
|
|
1194
|
+
"name": {
|
|
1195
|
+
"char": "n",
|
|
1196
|
+
"description": "Test name to execute",
|
|
1197
|
+
"name": "name",
|
|
999
1198
|
"hasDynamicHelp": false,
|
|
1000
1199
|
"multiple": false,
|
|
1001
1200
|
"type": "option"
|
|
1002
1201
|
},
|
|
1003
|
-
"
|
|
1004
|
-
"
|
|
1005
|
-
"
|
|
1006
|
-
"
|
|
1007
|
-
"type": "boolean"
|
|
1008
|
-
},
|
|
1009
|
-
"multi-file": {
|
|
1010
|
-
"description": "Create a single file with multiple records (provide filename)",
|
|
1011
|
-
"name": "multi-file",
|
|
1202
|
+
"environment": {
|
|
1203
|
+
"char": "e",
|
|
1204
|
+
"description": "Environment context (dev, staging, prod)",
|
|
1205
|
+
"name": "environment",
|
|
1012
1206
|
"hasDynamicHelp": false,
|
|
1013
1207
|
"multiple": false,
|
|
1014
1208
|
"type": "option"
|
|
1015
1209
|
},
|
|
1016
|
-
"
|
|
1017
|
-
"char": "
|
|
1018
|
-
"description": "
|
|
1019
|
-
"name": "
|
|
1020
|
-
"
|
|
1021
|
-
"type": "boolean"
|
|
1022
|
-
},
|
|
1023
|
-
"no-validate": {
|
|
1024
|
-
"description": "Skip validation before pull",
|
|
1025
|
-
"name": "no-validate",
|
|
1026
|
-
"allowNo": false,
|
|
1027
|
-
"type": "boolean"
|
|
1028
|
-
},
|
|
1029
|
-
"update-existing": {
|
|
1030
|
-
"description": "Update existing records during pull",
|
|
1031
|
-
"name": "update-existing",
|
|
1032
|
-
"allowNo": false,
|
|
1033
|
-
"type": "boolean"
|
|
1034
|
-
},
|
|
1035
|
-
"create-new": {
|
|
1036
|
-
"description": "Create new files for records not found locally",
|
|
1037
|
-
"name": "create-new",
|
|
1038
|
-
"allowNo": false,
|
|
1039
|
-
"type": "boolean"
|
|
1040
|
-
},
|
|
1041
|
-
"backup-before-update": {
|
|
1042
|
-
"description": "Create backups before updating files",
|
|
1043
|
-
"name": "backup-before-update",
|
|
1044
|
-
"allowNo": false,
|
|
1045
|
-
"type": "boolean"
|
|
1046
|
-
},
|
|
1047
|
-
"merge-strategy": {
|
|
1048
|
-
"description": "Merge strategy for updates",
|
|
1049
|
-
"name": "merge-strategy",
|
|
1050
|
-
"default": "merge",
|
|
1210
|
+
"format": {
|
|
1211
|
+
"char": "f",
|
|
1212
|
+
"description": "Output format",
|
|
1213
|
+
"name": "format",
|
|
1214
|
+
"default": "console",
|
|
1051
1215
|
"hasDynamicHelp": false,
|
|
1052
1216
|
"multiple": false,
|
|
1053
1217
|
"options": [
|
|
1054
|
-
"
|
|
1055
|
-
"
|
|
1056
|
-
"
|
|
1218
|
+
"console",
|
|
1219
|
+
"json",
|
|
1220
|
+
"markdown"
|
|
1057
1221
|
],
|
|
1058
1222
|
"type": "option"
|
|
1059
1223
|
},
|
|
1060
|
-
"
|
|
1061
|
-
"
|
|
1062
|
-
"
|
|
1224
|
+
"output": {
|
|
1225
|
+
"char": "o",
|
|
1226
|
+
"description": "Output file path",
|
|
1227
|
+
"name": "output",
|
|
1063
1228
|
"hasDynamicHelp": false,
|
|
1064
1229
|
"multiple": false,
|
|
1065
1230
|
"type": "option"
|
|
1066
1231
|
},
|
|
1067
|
-
"
|
|
1068
|
-
"description": "
|
|
1069
|
-
"name": "
|
|
1070
|
-
"
|
|
1071
|
-
"
|
|
1072
|
-
"type": "option"
|
|
1073
|
-
},
|
|
1074
|
-
"exclude-fields": {
|
|
1075
|
-
"description": "Comma-separated list of fields to exclude from pull",
|
|
1076
|
-
"name": "exclude-fields",
|
|
1077
|
-
"hasDynamicHelp": false,
|
|
1078
|
-
"multiple": true,
|
|
1079
|
-
"type": "option"
|
|
1232
|
+
"dry-run": {
|
|
1233
|
+
"description": "Validate without executing",
|
|
1234
|
+
"name": "dry-run",
|
|
1235
|
+
"allowNo": false,
|
|
1236
|
+
"type": "boolean"
|
|
1080
1237
|
},
|
|
1081
|
-
"
|
|
1082
|
-
"
|
|
1083
|
-
"
|
|
1084
|
-
"
|
|
1085
|
-
"
|
|
1086
|
-
"type": "
|
|
1238
|
+
"verbose": {
|
|
1239
|
+
"char": "v",
|
|
1240
|
+
"description": "Show detailed execution information",
|
|
1241
|
+
"name": "verbose",
|
|
1242
|
+
"allowNo": false,
|
|
1243
|
+
"type": "boolean"
|
|
1087
1244
|
}
|
|
1088
1245
|
},
|
|
1089
1246
|
"hasDynamicHelp": false,
|
|
1090
1247
|
"hiddenAliases": [],
|
|
1091
|
-
"id": "
|
|
1248
|
+
"id": "test:run",
|
|
1092
1249
|
"pluginAlias": "@memberjunction/cli",
|
|
1093
1250
|
"pluginName": "@memberjunction/cli",
|
|
1094
1251
|
"pluginType": "core",
|
|
@@ -1098,79 +1255,68 @@
|
|
|
1098
1255
|
"relativePath": [
|
|
1099
1256
|
"dist",
|
|
1100
1257
|
"commands",
|
|
1101
|
-
"
|
|
1102
|
-
"
|
|
1258
|
+
"test",
|
|
1259
|
+
"run.js"
|
|
1103
1260
|
]
|
|
1104
1261
|
},
|
|
1105
|
-
"
|
|
1262
|
+
"test:suite": {
|
|
1106
1263
|
"aliases": [],
|
|
1107
|
-
"args": {
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1264
|
+
"args": {
|
|
1265
|
+
"suiteId": {
|
|
1266
|
+
"description": "Test suite ID to execute",
|
|
1267
|
+
"name": "suiteId",
|
|
1268
|
+
"required": false
|
|
1269
|
+
}
|
|
1270
|
+
},
|
|
1271
|
+
"description": "Execute a test suite",
|
|
1272
|
+
"examples": [
|
|
1273
|
+
"<%= config.bin %> <%= command.id %> <suite-id>",
|
|
1274
|
+
"<%= config.bin %> <%= command.id %> --name=\"Agent Quality Suite\"",
|
|
1275
|
+
"<%= config.bin %> <%= command.id %> <suite-id> --format=json",
|
|
1276
|
+
"<%= config.bin %> <%= command.id %> <suite-id> --output=suite-results.json"
|
|
1114
1277
|
],
|
|
1115
1278
|
"flags": {
|
|
1116
|
-
"
|
|
1117
|
-
"
|
|
1118
|
-
"
|
|
1279
|
+
"name": {
|
|
1280
|
+
"char": "n",
|
|
1281
|
+
"description": "Test suite name to execute",
|
|
1282
|
+
"name": "name",
|
|
1119
1283
|
"hasDynamicHelp": false,
|
|
1120
1284
|
"multiple": false,
|
|
1121
1285
|
"type": "option"
|
|
1122
1286
|
},
|
|
1123
|
-
"
|
|
1124
|
-
"
|
|
1125
|
-
"
|
|
1126
|
-
"
|
|
1127
|
-
"
|
|
1128
|
-
},
|
|
1129
|
-
"ci": {
|
|
1130
|
-
"description": "CI mode - no prompts, fail on issues",
|
|
1131
|
-
"name": "ci",
|
|
1132
|
-
"allowNo": false,
|
|
1133
|
-
"type": "boolean"
|
|
1134
|
-
},
|
|
1135
|
-
"verbose": {
|
|
1136
|
-
"char": "v",
|
|
1137
|
-
"description": "Show detailed field-level output",
|
|
1138
|
-
"name": "verbose",
|
|
1139
|
-
"allowNo": false,
|
|
1140
|
-
"type": "boolean"
|
|
1141
|
-
},
|
|
1142
|
-
"no-validate": {
|
|
1143
|
-
"description": "Skip validation before push",
|
|
1144
|
-
"name": "no-validate",
|
|
1145
|
-
"allowNo": false,
|
|
1146
|
-
"type": "boolean"
|
|
1147
|
-
},
|
|
1148
|
-
"parallel-batch-size": {
|
|
1149
|
-
"description": "Number of records to process in parallel (default: 10)",
|
|
1150
|
-
"name": "parallel-batch-size",
|
|
1151
|
-
"default": 10,
|
|
1287
|
+
"format": {
|
|
1288
|
+
"char": "f",
|
|
1289
|
+
"description": "Output format",
|
|
1290
|
+
"name": "format",
|
|
1291
|
+
"default": "console",
|
|
1152
1292
|
"hasDynamicHelp": false,
|
|
1153
1293
|
"multiple": false,
|
|
1294
|
+
"options": [
|
|
1295
|
+
"console",
|
|
1296
|
+
"json",
|
|
1297
|
+
"markdown"
|
|
1298
|
+
],
|
|
1154
1299
|
"type": "option"
|
|
1155
1300
|
},
|
|
1156
|
-
"
|
|
1157
|
-
"
|
|
1158
|
-
"
|
|
1301
|
+
"output": {
|
|
1302
|
+
"char": "o",
|
|
1303
|
+
"description": "Output file path",
|
|
1304
|
+
"name": "output",
|
|
1159
1305
|
"hasDynamicHelp": false,
|
|
1160
1306
|
"multiple": false,
|
|
1161
1307
|
"type": "option"
|
|
1162
1308
|
},
|
|
1163
|
-
"
|
|
1164
|
-
"
|
|
1165
|
-
"
|
|
1166
|
-
"
|
|
1167
|
-
"
|
|
1168
|
-
"type": "
|
|
1309
|
+
"verbose": {
|
|
1310
|
+
"char": "v",
|
|
1311
|
+
"description": "Show detailed execution information",
|
|
1312
|
+
"name": "verbose",
|
|
1313
|
+
"allowNo": false,
|
|
1314
|
+
"type": "boolean"
|
|
1169
1315
|
}
|
|
1170
1316
|
},
|
|
1171
1317
|
"hasDynamicHelp": false,
|
|
1172
1318
|
"hiddenAliases": [],
|
|
1173
|
-
"id": "
|
|
1319
|
+
"id": "test:suite",
|
|
1174
1320
|
"pluginAlias": "@memberjunction/cli",
|
|
1175
1321
|
"pluginName": "@memberjunction/cli",
|
|
1176
1322
|
"pluginType": "core",
|
|
@@ -1180,52 +1326,82 @@
|
|
|
1180
1326
|
"relativePath": [
|
|
1181
1327
|
"dist",
|
|
1182
1328
|
"commands",
|
|
1183
|
-
"
|
|
1184
|
-
"
|
|
1329
|
+
"test",
|
|
1330
|
+
"suite.js"
|
|
1185
1331
|
]
|
|
1186
1332
|
},
|
|
1187
|
-
"
|
|
1333
|
+
"test:validate": {
|
|
1188
1334
|
"aliases": [],
|
|
1189
|
-
"args": {
|
|
1190
|
-
|
|
1335
|
+
"args": {
|
|
1336
|
+
"testId": {
|
|
1337
|
+
"description": "Test ID to validate",
|
|
1338
|
+
"name": "testId",
|
|
1339
|
+
"required": false
|
|
1340
|
+
}
|
|
1341
|
+
},
|
|
1342
|
+
"description": "Validate test definitions without executing",
|
|
1191
1343
|
"examples": [
|
|
1192
|
-
"<%= config.bin %> <%= command.id %>",
|
|
1193
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1194
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1344
|
+
"<%= config.bin %> <%= command.id %> <test-id>",
|
|
1345
|
+
"<%= config.bin %> <%= command.id %> --all",
|
|
1346
|
+
"<%= config.bin %> <%= command.id %> --type=agent-eval",
|
|
1347
|
+
"<%= config.bin %> <%= command.id %> --all --save-report",
|
|
1348
|
+
"<%= config.bin %> <%= command.id %> --all --output=validation-report.md"
|
|
1195
1349
|
],
|
|
1196
1350
|
"flags": {
|
|
1197
|
-
"
|
|
1198
|
-
"
|
|
1199
|
-
"
|
|
1351
|
+
"all": {
|
|
1352
|
+
"char": "a",
|
|
1353
|
+
"description": "Validate all tests",
|
|
1354
|
+
"name": "all",
|
|
1355
|
+
"allowNo": false,
|
|
1356
|
+
"type": "boolean"
|
|
1357
|
+
},
|
|
1358
|
+
"type": {
|
|
1359
|
+
"char": "t",
|
|
1360
|
+
"description": "Validate tests by type",
|
|
1361
|
+
"name": "type",
|
|
1200
1362
|
"hasDynamicHelp": false,
|
|
1201
1363
|
"multiple": false,
|
|
1202
1364
|
"type": "option"
|
|
1203
1365
|
},
|
|
1204
|
-
"
|
|
1205
|
-
"
|
|
1206
|
-
"
|
|
1207
|
-
"name": "verbose",
|
|
1366
|
+
"save-report": {
|
|
1367
|
+
"description": "Save validation report to file",
|
|
1368
|
+
"name": "save-report",
|
|
1208
1369
|
"allowNo": false,
|
|
1209
1370
|
"type": "boolean"
|
|
1210
1371
|
},
|
|
1211
|
-
"
|
|
1212
|
-
"
|
|
1213
|
-
"
|
|
1372
|
+
"format": {
|
|
1373
|
+
"char": "f",
|
|
1374
|
+
"description": "Output format",
|
|
1375
|
+
"name": "format",
|
|
1376
|
+
"default": "console",
|
|
1214
1377
|
"hasDynamicHelp": false,
|
|
1215
1378
|
"multiple": false,
|
|
1379
|
+
"options": [
|
|
1380
|
+
"console",
|
|
1381
|
+
"json",
|
|
1382
|
+
"markdown"
|
|
1383
|
+
],
|
|
1216
1384
|
"type": "option"
|
|
1217
1385
|
},
|
|
1218
|
-
"
|
|
1219
|
-
"
|
|
1220
|
-
"
|
|
1386
|
+
"output": {
|
|
1387
|
+
"char": "o",
|
|
1388
|
+
"description": "Output file path",
|
|
1389
|
+
"name": "output",
|
|
1221
1390
|
"hasDynamicHelp": false,
|
|
1222
1391
|
"multiple": false,
|
|
1223
1392
|
"type": "option"
|
|
1393
|
+
},
|
|
1394
|
+
"verbose": {
|
|
1395
|
+
"char": "v",
|
|
1396
|
+
"description": "Show detailed information",
|
|
1397
|
+
"name": "verbose",
|
|
1398
|
+
"allowNo": false,
|
|
1399
|
+
"type": "boolean"
|
|
1224
1400
|
}
|
|
1225
1401
|
},
|
|
1226
1402
|
"hasDynamicHelp": false,
|
|
1227
1403
|
"hiddenAliases": [],
|
|
1228
|
-
"id": "
|
|
1404
|
+
"id": "test:validate",
|
|
1229
1405
|
"pluginAlias": "@memberjunction/cli",
|
|
1230
1406
|
"pluginName": "@memberjunction/cli",
|
|
1231
1407
|
"pluginType": "core",
|
|
@@ -1235,52 +1411,38 @@
|
|
|
1235
1411
|
"relativePath": [
|
|
1236
1412
|
"dist",
|
|
1237
1413
|
"commands",
|
|
1238
|
-
"
|
|
1239
|
-
"
|
|
1414
|
+
"test",
|
|
1415
|
+
"validate.js"
|
|
1240
1416
|
]
|
|
1241
1417
|
},
|
|
1242
|
-
"
|
|
1418
|
+
"ai:actions:list": {
|
|
1243
1419
|
"aliases": [],
|
|
1244
1420
|
"args": {},
|
|
1245
|
-
"description": "
|
|
1421
|
+
"description": "List available AI actions",
|
|
1246
1422
|
"examples": [
|
|
1247
1423
|
"<%= config.bin %> <%= command.id %>",
|
|
1248
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1249
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1250
|
-
"<%= config.bin %> <%= command.id %> --verbose"
|
|
1424
|
+
"<%= config.bin %> <%= command.id %> --output=table",
|
|
1425
|
+
"<%= config.bin %> <%= command.id %> --output=json"
|
|
1251
1426
|
],
|
|
1252
1427
|
"flags": {
|
|
1253
|
-
"dir": {
|
|
1254
|
-
"description": "Specific entity directory to validate",
|
|
1255
|
-
"name": "dir",
|
|
1256
|
-
"hasDynamicHelp": false,
|
|
1257
|
-
"multiple": false,
|
|
1258
|
-
"type": "option"
|
|
1259
|
-
},
|
|
1260
|
-
"verbose": {
|
|
1261
|
-
"char": "v",
|
|
1262
|
-
"description": "Show detailed validation output",
|
|
1263
|
-
"name": "verbose",
|
|
1264
|
-
"allowNo": false,
|
|
1265
|
-
"type": "boolean"
|
|
1266
|
-
},
|
|
1267
|
-
"save-report": {
|
|
1268
|
-
"description": "Save validation report as markdown file",
|
|
1269
|
-
"name": "save-report",
|
|
1270
|
-
"allowNo": false,
|
|
1271
|
-
"type": "boolean"
|
|
1272
|
-
},
|
|
1273
1428
|
"output": {
|
|
1274
|
-
"
|
|
1429
|
+
"char": "o",
|
|
1430
|
+
"description": "Output format",
|
|
1275
1431
|
"name": "output",
|
|
1432
|
+
"default": "compact",
|
|
1276
1433
|
"hasDynamicHelp": false,
|
|
1277
1434
|
"multiple": false,
|
|
1435
|
+
"options": [
|
|
1436
|
+
"compact",
|
|
1437
|
+
"json",
|
|
1438
|
+
"table"
|
|
1439
|
+
],
|
|
1278
1440
|
"type": "option"
|
|
1279
1441
|
}
|
|
1280
1442
|
},
|
|
1281
1443
|
"hasDynamicHelp": false,
|
|
1282
1444
|
"hiddenAliases": [],
|
|
1283
|
-
"id": "
|
|
1445
|
+
"id": "ai:actions:list",
|
|
1284
1446
|
"pluginAlias": "@memberjunction/cli",
|
|
1285
1447
|
"pluginName": "@memberjunction/cli",
|
|
1286
1448
|
"pluginType": "core",
|
|
@@ -1290,52 +1452,78 @@
|
|
|
1290
1452
|
"relativePath": [
|
|
1291
1453
|
"dist",
|
|
1292
1454
|
"commands",
|
|
1293
|
-
"
|
|
1294
|
-
"
|
|
1455
|
+
"ai",
|
|
1456
|
+
"actions",
|
|
1457
|
+
"list.js"
|
|
1295
1458
|
]
|
|
1296
1459
|
},
|
|
1297
|
-
"
|
|
1460
|
+
"ai:actions:run": {
|
|
1298
1461
|
"aliases": [],
|
|
1299
1462
|
"args": {},
|
|
1300
|
-
"description": "
|
|
1463
|
+
"description": "Execute an AI action with parameters",
|
|
1301
1464
|
"examples": [
|
|
1302
|
-
"<%= config.bin %> <%= command.id %>",
|
|
1303
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1304
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1305
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1465
|
+
"<%= config.bin %> <%= command.id %> -n \"Get Weather\" --param \"Location=Boston\"",
|
|
1466
|
+
"<%= config.bin %> <%= command.id %> -n \"Get Stock Price\" --param \"Ticker=AAPL\"",
|
|
1467
|
+
"<%= config.bin %> <%= command.id %> -n \"Send Single Message\" --param \"To=user@example.com\" --param \"Subject=Test\" --param \"Body=Hello\" --param \"MessageType=Email\" --param \"Provider=SendGrid\"",
|
|
1468
|
+
"<%= config.bin %> <%= command.id %> -n \"Calculate Expression\" --param \"Expression=2+2*3\" --dry-run"
|
|
1306
1469
|
],
|
|
1307
1470
|
"flags": {
|
|
1308
|
-
"
|
|
1309
|
-
"
|
|
1310
|
-
"
|
|
1471
|
+
"name": {
|
|
1472
|
+
"char": "n",
|
|
1473
|
+
"description": "Action name",
|
|
1474
|
+
"name": "name",
|
|
1475
|
+
"required": true,
|
|
1311
1476
|
"hasDynamicHelp": false,
|
|
1312
1477
|
"multiple": false,
|
|
1313
1478
|
"type": "option"
|
|
1314
1479
|
},
|
|
1315
|
-
"
|
|
1316
|
-
"
|
|
1317
|
-
"
|
|
1480
|
+
"param": {
|
|
1481
|
+
"char": "p",
|
|
1482
|
+
"description": "Action parameters in key=value format",
|
|
1483
|
+
"name": "param",
|
|
1318
1484
|
"hasDynamicHelp": false,
|
|
1319
|
-
"multiple":
|
|
1485
|
+
"multiple": true,
|
|
1320
1486
|
"type": "option"
|
|
1321
1487
|
},
|
|
1322
|
-
"
|
|
1323
|
-
"description": "
|
|
1324
|
-
"name": "
|
|
1488
|
+
"dry-run": {
|
|
1489
|
+
"description": "Validate without executing",
|
|
1490
|
+
"name": "dry-run",
|
|
1325
1491
|
"allowNo": false,
|
|
1326
1492
|
"type": "boolean"
|
|
1327
1493
|
},
|
|
1494
|
+
"output": {
|
|
1495
|
+
"char": "o",
|
|
1496
|
+
"description": "Output format",
|
|
1497
|
+
"name": "output",
|
|
1498
|
+
"default": "compact",
|
|
1499
|
+
"hasDynamicHelp": false,
|
|
1500
|
+
"multiple": false,
|
|
1501
|
+
"options": [
|
|
1502
|
+
"compact",
|
|
1503
|
+
"json",
|
|
1504
|
+
"table"
|
|
1505
|
+
],
|
|
1506
|
+
"type": "option"
|
|
1507
|
+
},
|
|
1328
1508
|
"verbose": {
|
|
1329
1509
|
"char": "v",
|
|
1330
|
-
"description": "Show detailed
|
|
1510
|
+
"description": "Show detailed execution information",
|
|
1331
1511
|
"name": "verbose",
|
|
1332
1512
|
"allowNo": false,
|
|
1333
1513
|
"type": "boolean"
|
|
1334
|
-
}
|
|
1335
|
-
|
|
1514
|
+
},
|
|
1515
|
+
"timeout": {
|
|
1516
|
+
"description": "Execution timeout in milliseconds",
|
|
1517
|
+
"name": "timeout",
|
|
1518
|
+
"default": 300000,
|
|
1519
|
+
"hasDynamicHelp": false,
|
|
1520
|
+
"multiple": false,
|
|
1521
|
+
"type": "option"
|
|
1522
|
+
}
|
|
1523
|
+
},
|
|
1336
1524
|
"hasDynamicHelp": false,
|
|
1337
1525
|
"hiddenAliases": [],
|
|
1338
|
-
"id": "
|
|
1526
|
+
"id": "ai:actions:run",
|
|
1339
1527
|
"pluginAlias": "@memberjunction/cli",
|
|
1340
1528
|
"pluginName": "@memberjunction/cli",
|
|
1341
1529
|
"pluginType": "core",
|
|
@@ -1345,86 +1533,83 @@
|
|
|
1345
1533
|
"relativePath": [
|
|
1346
1534
|
"dist",
|
|
1347
1535
|
"commands",
|
|
1348
|
-
"
|
|
1349
|
-
"
|
|
1536
|
+
"ai",
|
|
1537
|
+
"actions",
|
|
1538
|
+
"run.js"
|
|
1350
1539
|
]
|
|
1351
1540
|
},
|
|
1352
|
-
"
|
|
1541
|
+
"migrate": {
|
|
1353
1542
|
"aliases": [],
|
|
1354
|
-
"args": {
|
|
1355
|
-
|
|
1356
|
-
"description": "First test run ID to compare",
|
|
1357
|
-
"name": "runId1",
|
|
1358
|
-
"required": false
|
|
1359
|
-
},
|
|
1360
|
-
"runId2": {
|
|
1361
|
-
"description": "Second test run ID to compare",
|
|
1362
|
-
"name": "runId2",
|
|
1363
|
-
"required": false
|
|
1364
|
-
}
|
|
1365
|
-
},
|
|
1366
|
-
"description": "Compare test runs for regression detection",
|
|
1543
|
+
"args": {},
|
|
1544
|
+
"description": "Migrate MemberJunction database to latest version",
|
|
1367
1545
|
"examples": [
|
|
1368
|
-
"<%= config.bin %> <%= command.id
|
|
1369
|
-
"<%= config.bin %> <%= command.id %> --baseline=<run-id> --current=<run-id>",
|
|
1370
|
-
"<%= config.bin %> <%= command.id %> --suite=<suite-id> --since=\"2024-01-01\"",
|
|
1371
|
-
"<%= config.bin %> <%= command.id %> <run-id-1> <run-id-2> --format=json"
|
|
1546
|
+
"<%= config.bin %> <%= command.id %>\n"
|
|
1372
1547
|
],
|
|
1373
1548
|
"flags": {
|
|
1374
|
-
"
|
|
1549
|
+
"verbose": {
|
|
1375
1550
|
"char": "v",
|
|
1376
|
-
"description": "
|
|
1377
|
-
"name": "
|
|
1378
|
-
"hasDynamicHelp": false,
|
|
1379
|
-
"multiple": true,
|
|
1380
|
-
"type": "option"
|
|
1381
|
-
},
|
|
1382
|
-
"commit": {
|
|
1383
|
-
"char": "c",
|
|
1384
|
-
"description": "Compare runs by git commit",
|
|
1385
|
-
"name": "commit",
|
|
1386
|
-
"hasDynamicHelp": false,
|
|
1387
|
-
"multiple": true,
|
|
1388
|
-
"type": "option"
|
|
1389
|
-
},
|
|
1390
|
-
"diff-only": {
|
|
1391
|
-
"description": "Show only differences",
|
|
1392
|
-
"name": "diff-only",
|
|
1551
|
+
"description": "Enable additional logging",
|
|
1552
|
+
"name": "verbose",
|
|
1393
1553
|
"allowNo": false,
|
|
1394
1554
|
"type": "boolean"
|
|
1395
1555
|
},
|
|
1396
|
-
"
|
|
1397
|
-
"char": "
|
|
1398
|
-
"description": "
|
|
1399
|
-
"name": "
|
|
1400
|
-
"default": "console",
|
|
1556
|
+
"tag": {
|
|
1557
|
+
"char": "t",
|
|
1558
|
+
"description": "Version tag to use for running remote migrations",
|
|
1559
|
+
"name": "tag",
|
|
1401
1560
|
"hasDynamicHelp": false,
|
|
1402
1561
|
"multiple": false,
|
|
1403
|
-
"options": [
|
|
1404
|
-
"console",
|
|
1405
|
-
"json",
|
|
1406
|
-
"markdown"
|
|
1407
|
-
],
|
|
1408
1562
|
"type": "option"
|
|
1409
|
-
}
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1563
|
+
}
|
|
1564
|
+
},
|
|
1565
|
+
"hasDynamicHelp": false,
|
|
1566
|
+
"hiddenAliases": [],
|
|
1567
|
+
"id": "migrate",
|
|
1568
|
+
"pluginAlias": "@memberjunction/cli",
|
|
1569
|
+
"pluginName": "@memberjunction/cli",
|
|
1570
|
+
"pluginType": "core",
|
|
1571
|
+
"strict": true,
|
|
1572
|
+
"enableJsonFlag": false,
|
|
1573
|
+
"isESM": false,
|
|
1574
|
+
"relativePath": [
|
|
1575
|
+
"dist",
|
|
1576
|
+
"commands",
|
|
1577
|
+
"migrate",
|
|
1578
|
+
"index.js"
|
|
1579
|
+
]
|
|
1580
|
+
},
|
|
1581
|
+
"dbdoc:analyze": {
|
|
1582
|
+
"aliases": [],
|
|
1583
|
+
"args": {},
|
|
1584
|
+
"description": "Analyze database and generate documentation (delegates to db-auto-doc analyze)",
|
|
1585
|
+
"examples": [
|
|
1586
|
+
"<%= config.bin %> <%= command.id %>",
|
|
1587
|
+
"<%= config.bin %> <%= command.id %> --resume ./output/run-6/state.json",
|
|
1588
|
+
"<%= config.bin %> <%= command.id %> --config ./my-config.json"
|
|
1589
|
+
],
|
|
1590
|
+
"flags": {
|
|
1591
|
+
"resume": {
|
|
1592
|
+
"char": "r",
|
|
1593
|
+
"description": "Resume from an existing state file",
|
|
1594
|
+
"name": "resume",
|
|
1595
|
+
"required": false,
|
|
1414
1596
|
"hasDynamicHelp": false,
|
|
1415
1597
|
"multiple": false,
|
|
1416
1598
|
"type": "option"
|
|
1417
1599
|
},
|
|
1418
|
-
"
|
|
1419
|
-
"
|
|
1420
|
-
"
|
|
1421
|
-
"
|
|
1422
|
-
"
|
|
1600
|
+
"config": {
|
|
1601
|
+
"char": "c",
|
|
1602
|
+
"description": "Path to config file",
|
|
1603
|
+
"name": "config",
|
|
1604
|
+
"default": "./config.json",
|
|
1605
|
+
"hasDynamicHelp": false,
|
|
1606
|
+
"multiple": false,
|
|
1607
|
+
"type": "option"
|
|
1423
1608
|
}
|
|
1424
1609
|
},
|
|
1425
1610
|
"hasDynamicHelp": false,
|
|
1426
1611
|
"hiddenAliases": [],
|
|
1427
|
-
"id": "
|
|
1612
|
+
"id": "dbdoc:analyze",
|
|
1428
1613
|
"pluginAlias": "@memberjunction/cli",
|
|
1429
1614
|
"pluginName": "@memberjunction/cli",
|
|
1430
1615
|
"pluginType": "core",
|
|
@@ -1434,115 +1619,105 @@
|
|
|
1434
1619
|
"relativePath": [
|
|
1435
1620
|
"dist",
|
|
1436
1621
|
"commands",
|
|
1437
|
-
"
|
|
1438
|
-
"
|
|
1622
|
+
"dbdoc",
|
|
1623
|
+
"analyze.js"
|
|
1439
1624
|
]
|
|
1440
1625
|
},
|
|
1441
|
-
"
|
|
1626
|
+
"dbdoc:export-sample-queries": {
|
|
1442
1627
|
"aliases": [],
|
|
1443
1628
|
"args": {},
|
|
1444
|
-
"description": "
|
|
1629
|
+
"description": "Export sample queries to MemberJunction metadata format (delegates to db-auto-doc export-sample-queries)",
|
|
1445
1630
|
"examples": [
|
|
1446
|
-
"<%= config.bin %> <%= command.id %>",
|
|
1447
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1448
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1449
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1450
|
-
"<%= config.bin %> <%= command.id %> --limit=50"
|
|
1631
|
+
"<%= config.bin %> <%= command.id %> --input ./output/sample-queries.json --output ./metadata/queries/.queries.json",
|
|
1632
|
+
"<%= config.bin %> <%= command.id %> --input ./sample-queries.json --output ./metadata/queries/.queries.json --separate-sql-files",
|
|
1633
|
+
"<%= config.bin %> <%= command.id %> --input ./sample-queries.json --output ./queries/.queries.json --category \"Database Documentation\"",
|
|
1634
|
+
"<%= config.bin %> <%= command.id %> --input ./sample-queries.json --output ./queries/.queries.json --status Pending --min-confidence 0.8"
|
|
1451
1635
|
],
|
|
1452
1636
|
"flags": {
|
|
1453
|
-
"
|
|
1454
|
-
"char": "
|
|
1455
|
-
"description": "
|
|
1456
|
-
"name": "
|
|
1637
|
+
"input": {
|
|
1638
|
+
"char": "i",
|
|
1639
|
+
"description": "Path to sample-queries.json file generated by generate-queries command",
|
|
1640
|
+
"name": "input",
|
|
1641
|
+
"required": true,
|
|
1457
1642
|
"hasDynamicHelp": false,
|
|
1458
1643
|
"multiple": false,
|
|
1459
1644
|
"type": "option"
|
|
1460
1645
|
},
|
|
1461
|
-
"
|
|
1462
|
-
"char": "
|
|
1463
|
-
"description": "
|
|
1464
|
-
"name": "
|
|
1646
|
+
"output": {
|
|
1647
|
+
"char": "o",
|
|
1648
|
+
"description": "Output path for the .queries.json metadata file",
|
|
1649
|
+
"name": "output",
|
|
1650
|
+
"required": true,
|
|
1465
1651
|
"hasDynamicHelp": false,
|
|
1466
1652
|
"multiple": false,
|
|
1467
1653
|
"type": "option"
|
|
1468
1654
|
},
|
|
1469
|
-
"
|
|
1470
|
-
"description": "
|
|
1471
|
-
"name": "
|
|
1655
|
+
"separate-sql-files": {
|
|
1656
|
+
"description": "Write SQL to separate files and use @file: references",
|
|
1657
|
+
"name": "separate-sql-files",
|
|
1658
|
+
"allowNo": false,
|
|
1659
|
+
"type": "boolean"
|
|
1660
|
+
},
|
|
1661
|
+
"sql-dir": {
|
|
1662
|
+
"description": "Directory for SQL files when using --separate-sql-files (relative to output file)",
|
|
1663
|
+
"name": "sql-dir",
|
|
1664
|
+
"default": "SQL",
|
|
1472
1665
|
"hasDynamicHelp": false,
|
|
1473
1666
|
"multiple": false,
|
|
1474
1667
|
"type": "option"
|
|
1475
1668
|
},
|
|
1476
|
-
"
|
|
1477
|
-
"
|
|
1478
|
-
"
|
|
1479
|
-
"
|
|
1669
|
+
"category": {
|
|
1670
|
+
"description": "Category name for @lookup reference (e.g., \"Database Documentation\")",
|
|
1671
|
+
"name": "category",
|
|
1672
|
+
"required": false,
|
|
1480
1673
|
"hasDynamicHelp": false,
|
|
1481
1674
|
"multiple": false,
|
|
1482
1675
|
"type": "option"
|
|
1483
1676
|
},
|
|
1484
|
-
"
|
|
1485
|
-
"
|
|
1486
|
-
"
|
|
1487
|
-
"
|
|
1488
|
-
"default": "console",
|
|
1677
|
+
"status": {
|
|
1678
|
+
"description": "Status to assign to exported queries",
|
|
1679
|
+
"name": "status",
|
|
1680
|
+
"default": "Pending",
|
|
1489
1681
|
"hasDynamicHelp": false,
|
|
1490
1682
|
"multiple": false,
|
|
1491
1683
|
"options": [
|
|
1492
|
-
"
|
|
1493
|
-
"
|
|
1494
|
-
"
|
|
1684
|
+
"Approved",
|
|
1685
|
+
"Pending",
|
|
1686
|
+
"Rejected",
|
|
1687
|
+
"Expired"
|
|
1495
1688
|
],
|
|
1496
1689
|
"type": "option"
|
|
1497
1690
|
},
|
|
1498
|
-
"
|
|
1499
|
-
"
|
|
1500
|
-
"
|
|
1501
|
-
"
|
|
1691
|
+
"min-confidence": {
|
|
1692
|
+
"description": "Minimum confidence threshold to export (0-1)",
|
|
1693
|
+
"name": "min-confidence",
|
|
1694
|
+
"default": "0",
|
|
1502
1695
|
"hasDynamicHelp": false,
|
|
1503
1696
|
"multiple": false,
|
|
1504
1697
|
"type": "option"
|
|
1505
1698
|
},
|
|
1506
|
-
"
|
|
1507
|
-
"
|
|
1508
|
-
"
|
|
1509
|
-
"
|
|
1699
|
+
"validated-only": {
|
|
1700
|
+
"description": "Only export queries that were successfully validated",
|
|
1701
|
+
"name": "validated-only",
|
|
1702
|
+
"allowNo": false,
|
|
1703
|
+
"type": "boolean"
|
|
1704
|
+
},
|
|
1705
|
+
"append": {
|
|
1706
|
+
"description": "Append to existing metadata file instead of overwriting",
|
|
1707
|
+
"name": "append",
|
|
1708
|
+
"allowNo": false,
|
|
1709
|
+
"type": "boolean"
|
|
1710
|
+
},
|
|
1711
|
+
"include-primary-key": {
|
|
1712
|
+
"description": "Include primaryKey and sync fields (for updating existing records)",
|
|
1713
|
+
"name": "include-primary-key",
|
|
1510
1714
|
"allowNo": false,
|
|
1511
1715
|
"type": "boolean"
|
|
1512
1716
|
}
|
|
1513
1717
|
},
|
|
1514
1718
|
"hasDynamicHelp": false,
|
|
1515
1719
|
"hiddenAliases": [],
|
|
1516
|
-
"id": "
|
|
1517
|
-
"pluginAlias": "@memberjunction/cli",
|
|
1518
|
-
"pluginName": "@memberjunction/cli",
|
|
1519
|
-
"pluginType": "core",
|
|
1520
|
-
"strict": true,
|
|
1521
|
-
"enableJsonFlag": false,
|
|
1522
|
-
"isESM": false,
|
|
1523
|
-
"relativePath": [
|
|
1524
|
-
"dist",
|
|
1525
|
-
"commands",
|
|
1526
|
-
"test",
|
|
1527
|
-
"history.js"
|
|
1528
|
-
]
|
|
1529
|
-
},
|
|
1530
|
-
"test": {
|
|
1531
|
-
"aliases": [],
|
|
1532
|
-
"args": {},
|
|
1533
|
-
"description": "MemberJunction Testing Framework - Execute and manage tests",
|
|
1534
|
-
"examples": [
|
|
1535
|
-
"<%= config.bin %> <%= command.id %> run <test-id>",
|
|
1536
|
-
"<%= config.bin %> <%= command.id %> run --name=\"Active Members Count\"",
|
|
1537
|
-
"<%= config.bin %> <%= command.id %> suite <suite-id>",
|
|
1538
|
-
"<%= config.bin %> <%= command.id %> list",
|
|
1539
|
-
"<%= config.bin %> <%= command.id %> list --suites",
|
|
1540
|
-
"<%= config.bin %> <%= command.id %> validate --all"
|
|
1541
|
-
],
|
|
1542
|
-
"flags": {},
|
|
1543
|
-
"hasDynamicHelp": false,
|
|
1544
|
-
"hiddenAliases": [],
|
|
1545
|
-
"id": "test",
|
|
1720
|
+
"id": "dbdoc:export-sample-queries",
|
|
1546
1721
|
"pluginAlias": "@memberjunction/cli",
|
|
1547
1722
|
"pluginName": "@memberjunction/cli",
|
|
1548
1723
|
"pluginType": "core",
|
|
@@ -1552,91 +1727,100 @@
|
|
|
1552
1727
|
"relativePath": [
|
|
1553
1728
|
"dist",
|
|
1554
1729
|
"commands",
|
|
1555
|
-
"
|
|
1556
|
-
"
|
|
1730
|
+
"dbdoc",
|
|
1731
|
+
"export-sample-queries.js"
|
|
1557
1732
|
]
|
|
1558
1733
|
},
|
|
1559
|
-
"
|
|
1734
|
+
"dbdoc:export": {
|
|
1560
1735
|
"aliases": [],
|
|
1561
1736
|
"args": {},
|
|
1562
|
-
"description": "
|
|
1737
|
+
"description": "Export documentation in multiple formats (delegates to db-auto-doc export)",
|
|
1563
1738
|
"examples": [
|
|
1564
|
-
"<%= config.bin %> <%= command.id %>",
|
|
1565
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1566
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1567
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1568
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1569
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1739
|
+
"<%= config.bin %> <%= command.id %> --state-file=./db-doc-state.json",
|
|
1740
|
+
"<%= config.bin %> <%= command.id %> --sql",
|
|
1741
|
+
"<%= config.bin %> <%= command.id %> --markdown",
|
|
1742
|
+
"<%= config.bin %> <%= command.id %> --html",
|
|
1743
|
+
"<%= config.bin %> <%= command.id %> --csv",
|
|
1744
|
+
"<%= config.bin %> <%= command.id %> --mermaid",
|
|
1745
|
+
"<%= config.bin %> <%= command.id %> --sql --markdown --html --csv --mermaid --apply"
|
|
1570
1746
|
],
|
|
1571
1747
|
"flags": {
|
|
1572
|
-
"
|
|
1573
|
-
"
|
|
1574
|
-
"
|
|
1575
|
-
"
|
|
1576
|
-
"type": "boolean"
|
|
1577
|
-
},
|
|
1578
|
-
"types": {
|
|
1579
|
-
"description": "List test types",
|
|
1580
|
-
"name": "types",
|
|
1581
|
-
"allowNo": false,
|
|
1582
|
-
"type": "boolean"
|
|
1583
|
-
},
|
|
1584
|
-
"type": {
|
|
1585
|
-
"char": "t",
|
|
1586
|
-
"description": "Filter by test type",
|
|
1587
|
-
"name": "type",
|
|
1748
|
+
"state-file": {
|
|
1749
|
+
"char": "s",
|
|
1750
|
+
"description": "Path to state JSON file",
|
|
1751
|
+
"name": "state-file",
|
|
1588
1752
|
"hasDynamicHelp": false,
|
|
1589
1753
|
"multiple": false,
|
|
1590
1754
|
"type": "option"
|
|
1591
1755
|
},
|
|
1592
|
-
"
|
|
1593
|
-
"
|
|
1594
|
-
"
|
|
1756
|
+
"output-dir": {
|
|
1757
|
+
"char": "o",
|
|
1758
|
+
"description": "Output directory for generated files",
|
|
1759
|
+
"name": "output-dir",
|
|
1595
1760
|
"hasDynamicHelp": false,
|
|
1596
1761
|
"multiple": false,
|
|
1597
1762
|
"type": "option"
|
|
1598
1763
|
},
|
|
1599
|
-
"
|
|
1600
|
-
"
|
|
1601
|
-
"
|
|
1602
|
-
"
|
|
1603
|
-
"
|
|
1604
|
-
"multiple": false,
|
|
1605
|
-
"type": "option"
|
|
1764
|
+
"sql": {
|
|
1765
|
+
"description": "Generate SQL script",
|
|
1766
|
+
"name": "sql",
|
|
1767
|
+
"allowNo": false,
|
|
1768
|
+
"type": "boolean"
|
|
1606
1769
|
},
|
|
1607
|
-
"
|
|
1608
|
-
"
|
|
1609
|
-
"
|
|
1610
|
-
"
|
|
1611
|
-
"
|
|
1612
|
-
"hasDynamicHelp": false,
|
|
1613
|
-
"multiple": false,
|
|
1614
|
-
"options": [
|
|
1615
|
-
"console",
|
|
1616
|
-
"json",
|
|
1617
|
-
"markdown"
|
|
1618
|
-
],
|
|
1619
|
-
"type": "option"
|
|
1770
|
+
"markdown": {
|
|
1771
|
+
"description": "Generate Markdown documentation",
|
|
1772
|
+
"name": "markdown",
|
|
1773
|
+
"allowNo": false,
|
|
1774
|
+
"type": "boolean"
|
|
1620
1775
|
},
|
|
1621
|
-
"
|
|
1622
|
-
"
|
|
1623
|
-
"
|
|
1624
|
-
"
|
|
1625
|
-
"
|
|
1626
|
-
"multiple": false,
|
|
1627
|
-
"type": "option"
|
|
1776
|
+
"html": {
|
|
1777
|
+
"description": "Generate interactive HTML documentation",
|
|
1778
|
+
"name": "html",
|
|
1779
|
+
"allowNo": false,
|
|
1780
|
+
"type": "boolean"
|
|
1628
1781
|
},
|
|
1629
|
-
"
|
|
1630
|
-
"
|
|
1631
|
-
"
|
|
1632
|
-
"
|
|
1782
|
+
"csv": {
|
|
1783
|
+
"description": "Generate CSV exports (tables and columns)",
|
|
1784
|
+
"name": "csv",
|
|
1785
|
+
"allowNo": false,
|
|
1786
|
+
"type": "boolean"
|
|
1787
|
+
},
|
|
1788
|
+
"mermaid": {
|
|
1789
|
+
"description": "Generate Mermaid ERD diagram files",
|
|
1790
|
+
"name": "mermaid",
|
|
1791
|
+
"allowNo": false,
|
|
1792
|
+
"type": "boolean"
|
|
1793
|
+
},
|
|
1794
|
+
"report": {
|
|
1795
|
+
"description": "Generate analysis report",
|
|
1796
|
+
"name": "report",
|
|
1797
|
+
"allowNo": false,
|
|
1798
|
+
"type": "boolean"
|
|
1799
|
+
},
|
|
1800
|
+
"apply": {
|
|
1801
|
+
"description": "Apply SQL to database",
|
|
1802
|
+
"name": "apply",
|
|
1633
1803
|
"allowNo": false,
|
|
1634
1804
|
"type": "boolean"
|
|
1805
|
+
},
|
|
1806
|
+
"approved-only": {
|
|
1807
|
+
"description": "Only export approved items",
|
|
1808
|
+
"name": "approved-only",
|
|
1809
|
+
"allowNo": false,
|
|
1810
|
+
"type": "boolean"
|
|
1811
|
+
},
|
|
1812
|
+
"confidence-threshold": {
|
|
1813
|
+
"description": "Minimum confidence threshold",
|
|
1814
|
+
"name": "confidence-threshold",
|
|
1815
|
+
"default": "0",
|
|
1816
|
+
"hasDynamicHelp": false,
|
|
1817
|
+
"multiple": false,
|
|
1818
|
+
"type": "option"
|
|
1635
1819
|
}
|
|
1636
1820
|
},
|
|
1637
1821
|
"hasDynamicHelp": false,
|
|
1638
1822
|
"hiddenAliases": [],
|
|
1639
|
-
"id": "
|
|
1823
|
+
"id": "dbdoc:export",
|
|
1640
1824
|
"pluginAlias": "@memberjunction/cli",
|
|
1641
1825
|
"pluginName": "@memberjunction/cli",
|
|
1642
1826
|
"pluginType": "core",
|
|
@@ -1646,83 +1830,65 @@
|
|
|
1646
1830
|
"relativePath": [
|
|
1647
1831
|
"dist",
|
|
1648
1832
|
"commands",
|
|
1649
|
-
"
|
|
1650
|
-
"
|
|
1833
|
+
"dbdoc",
|
|
1834
|
+
"export.js"
|
|
1651
1835
|
]
|
|
1652
1836
|
},
|
|
1653
|
-
"
|
|
1837
|
+
"dbdoc:generate-queries": {
|
|
1654
1838
|
"aliases": [],
|
|
1655
|
-
"args": {
|
|
1656
|
-
|
|
1657
|
-
"description": "Test ID to execute",
|
|
1658
|
-
"name": "testId",
|
|
1659
|
-
"required": false
|
|
1660
|
-
}
|
|
1661
|
-
},
|
|
1662
|
-
"description": "Execute a single test by ID or name",
|
|
1839
|
+
"args": {},
|
|
1840
|
+
"description": "Generate sample SQL queries from existing analysis state (delegates to db-auto-doc generate-queries)",
|
|
1663
1841
|
"examples": [
|
|
1664
|
-
"<%= config.bin %> <%= command.id %>
|
|
1665
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1666
|
-
"<%= config.bin %> <%= command.id %>
|
|
1667
|
-
"<%= config.bin %> <%= command.id %> <test-id> --format=json --output=results.json",
|
|
1668
|
-
"<%= config.bin %> <%= command.id %> <test-id> --dry-run"
|
|
1842
|
+
"<%= config.bin %> <%= command.id %> --from-state ./output/run-1/state.json",
|
|
1843
|
+
"<%= config.bin %> <%= command.id %> --from-state ./output/run-1/state.json --output-dir ./queries",
|
|
1844
|
+
"<%= config.bin %> <%= command.id %> --from-state ./output/run-1/state.json --queries-per-table 10"
|
|
1669
1845
|
],
|
|
1670
1846
|
"flags": {
|
|
1671
|
-
"
|
|
1672
|
-
"
|
|
1673
|
-
"
|
|
1674
|
-
"
|
|
1847
|
+
"from-state": {
|
|
1848
|
+
"description": "Path to existing state.json file from previous analysis",
|
|
1849
|
+
"name": "from-state",
|
|
1850
|
+
"required": true,
|
|
1675
1851
|
"hasDynamicHelp": false,
|
|
1676
1852
|
"multiple": false,
|
|
1677
1853
|
"type": "option"
|
|
1678
1854
|
},
|
|
1679
|
-
"
|
|
1680
|
-
"
|
|
1681
|
-
"
|
|
1682
|
-
"
|
|
1855
|
+
"output-dir": {
|
|
1856
|
+
"description": "Output directory for generated queries",
|
|
1857
|
+
"name": "output-dir",
|
|
1858
|
+
"required": false,
|
|
1683
1859
|
"hasDynamicHelp": false,
|
|
1684
1860
|
"multiple": false,
|
|
1685
1861
|
"type": "option"
|
|
1686
1862
|
},
|
|
1687
|
-
"
|
|
1688
|
-
"char": "
|
|
1689
|
-
"description": "
|
|
1690
|
-
"name": "
|
|
1691
|
-
"default": "
|
|
1863
|
+
"config": {
|
|
1864
|
+
"char": "c",
|
|
1865
|
+
"description": "Path to config file (for database connection and AI settings)",
|
|
1866
|
+
"name": "config",
|
|
1867
|
+
"default": "./config.json",
|
|
1692
1868
|
"hasDynamicHelp": false,
|
|
1693
1869
|
"multiple": false,
|
|
1694
|
-
"options": [
|
|
1695
|
-
"console",
|
|
1696
|
-
"json",
|
|
1697
|
-
"markdown"
|
|
1698
|
-
],
|
|
1699
1870
|
"type": "option"
|
|
1700
1871
|
},
|
|
1701
|
-
"
|
|
1702
|
-
"
|
|
1703
|
-
"
|
|
1704
|
-
"
|
|
1872
|
+
"queries-per-table": {
|
|
1873
|
+
"description": "Number of queries to generate per table",
|
|
1874
|
+
"name": "queries-per-table",
|
|
1875
|
+
"required": false,
|
|
1705
1876
|
"hasDynamicHelp": false,
|
|
1706
1877
|
"multiple": false,
|
|
1707
1878
|
"type": "option"
|
|
1708
1879
|
},
|
|
1709
|
-
"
|
|
1710
|
-
"description": "
|
|
1711
|
-
"name": "
|
|
1712
|
-
"
|
|
1713
|
-
"
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
"char": "v",
|
|
1717
|
-
"description": "Show detailed execution information",
|
|
1718
|
-
"name": "verbose",
|
|
1719
|
-
"allowNo": false,
|
|
1720
|
-
"type": "boolean"
|
|
1880
|
+
"max-execution-time": {
|
|
1881
|
+
"description": "Maximum execution time for query validation (ms)",
|
|
1882
|
+
"name": "max-execution-time",
|
|
1883
|
+
"required": false,
|
|
1884
|
+
"hasDynamicHelp": false,
|
|
1885
|
+
"multiple": false,
|
|
1886
|
+
"type": "option"
|
|
1721
1887
|
}
|
|
1722
1888
|
},
|
|
1723
1889
|
"hasDynamicHelp": false,
|
|
1724
1890
|
"hiddenAliases": [],
|
|
1725
|
-
"id": "
|
|
1891
|
+
"id": "dbdoc:generate-queries",
|
|
1726
1892
|
"pluginAlias": "@memberjunction/cli",
|
|
1727
1893
|
"pluginName": "@memberjunction/cli",
|
|
1728
1894
|
"pluginType": "core",
|
|
@@ -1732,68 +1898,43 @@
|
|
|
1732
1898
|
"relativePath": [
|
|
1733
1899
|
"dist",
|
|
1734
1900
|
"commands",
|
|
1735
|
-
"
|
|
1736
|
-
"
|
|
1901
|
+
"dbdoc",
|
|
1902
|
+
"generate-queries.js"
|
|
1737
1903
|
]
|
|
1738
1904
|
},
|
|
1739
|
-
"
|
|
1905
|
+
"dbdoc": {
|
|
1740
1906
|
"aliases": [],
|
|
1741
|
-
"args": {
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
"
|
|
1907
|
+
"args": {},
|
|
1908
|
+
"description": "AI-powered database documentation generator",
|
|
1909
|
+
"flags": {},
|
|
1910
|
+
"hasDynamicHelp": false,
|
|
1911
|
+
"hidden": false,
|
|
1912
|
+
"hiddenAliases": [],
|
|
1913
|
+
"id": "dbdoc",
|
|
1914
|
+
"pluginAlias": "@memberjunction/cli",
|
|
1915
|
+
"pluginName": "@memberjunction/cli",
|
|
1916
|
+
"pluginType": "core",
|
|
1917
|
+
"strict": true,
|
|
1918
|
+
"enableJsonFlag": false,
|
|
1919
|
+
"isESM": false,
|
|
1920
|
+
"relativePath": [
|
|
1921
|
+
"dist",
|
|
1922
|
+
"commands",
|
|
1923
|
+
"dbdoc",
|
|
1924
|
+
"index.js"
|
|
1925
|
+
]
|
|
1926
|
+
},
|
|
1927
|
+
"dbdoc:init": {
|
|
1928
|
+
"aliases": [],
|
|
1929
|
+
"args": {},
|
|
1930
|
+
"description": "Initialize DBAutoDoc project (delegates to db-auto-doc init)",
|
|
1749
1931
|
"examples": [
|
|
1750
|
-
"<%= config.bin %> <%= command.id %>
|
|
1751
|
-
"<%= config.bin %> <%= command.id %> --name=\"Agent Quality Suite\"",
|
|
1752
|
-
"<%= config.bin %> <%= command.id %> <suite-id> --format=json",
|
|
1753
|
-
"<%= config.bin %> <%= command.id %> <suite-id> --output=suite-results.json"
|
|
1932
|
+
"<%= config.bin %> <%= command.id %>"
|
|
1754
1933
|
],
|
|
1755
|
-
"flags": {
|
|
1756
|
-
"name": {
|
|
1757
|
-
"char": "n",
|
|
1758
|
-
"description": "Test suite name to execute",
|
|
1759
|
-
"name": "name",
|
|
1760
|
-
"hasDynamicHelp": false,
|
|
1761
|
-
"multiple": false,
|
|
1762
|
-
"type": "option"
|
|
1763
|
-
},
|
|
1764
|
-
"format": {
|
|
1765
|
-
"char": "f",
|
|
1766
|
-
"description": "Output format",
|
|
1767
|
-
"name": "format",
|
|
1768
|
-
"default": "console",
|
|
1769
|
-
"hasDynamicHelp": false,
|
|
1770
|
-
"multiple": false,
|
|
1771
|
-
"options": [
|
|
1772
|
-
"console",
|
|
1773
|
-
"json",
|
|
1774
|
-
"markdown"
|
|
1775
|
-
],
|
|
1776
|
-
"type": "option"
|
|
1777
|
-
},
|
|
1778
|
-
"output": {
|
|
1779
|
-
"char": "o",
|
|
1780
|
-
"description": "Output file path",
|
|
1781
|
-
"name": "output",
|
|
1782
|
-
"hasDynamicHelp": false,
|
|
1783
|
-
"multiple": false,
|
|
1784
|
-
"type": "option"
|
|
1785
|
-
},
|
|
1786
|
-
"verbose": {
|
|
1787
|
-
"char": "v",
|
|
1788
|
-
"description": "Show detailed execution information",
|
|
1789
|
-
"name": "verbose",
|
|
1790
|
-
"allowNo": false,
|
|
1791
|
-
"type": "boolean"
|
|
1792
|
-
}
|
|
1793
|
-
},
|
|
1934
|
+
"flags": {},
|
|
1794
1935
|
"hasDynamicHelp": false,
|
|
1795
1936
|
"hiddenAliases": [],
|
|
1796
|
-
"id": "
|
|
1937
|
+
"id": "dbdoc:init",
|
|
1797
1938
|
"pluginAlias": "@memberjunction/cli",
|
|
1798
1939
|
"pluginName": "@memberjunction/cli",
|
|
1799
1940
|
"pluginType": "core",
|
|
@@ -1803,82 +1944,30 @@
|
|
|
1803
1944
|
"relativePath": [
|
|
1804
1945
|
"dist",
|
|
1805
1946
|
"commands",
|
|
1806
|
-
"
|
|
1807
|
-
"
|
|
1947
|
+
"dbdoc",
|
|
1948
|
+
"init.js"
|
|
1808
1949
|
]
|
|
1809
1950
|
},
|
|
1810
|
-
"
|
|
1951
|
+
"dbdoc:reset": {
|
|
1811
1952
|
"aliases": [],
|
|
1812
|
-
"args": {
|
|
1813
|
-
|
|
1814
|
-
"description": "Test ID to validate",
|
|
1815
|
-
"name": "testId",
|
|
1816
|
-
"required": false
|
|
1817
|
-
}
|
|
1818
|
-
},
|
|
1819
|
-
"description": "Validate test definitions without executing",
|
|
1953
|
+
"args": {},
|
|
1954
|
+
"description": "Reset analysis state (delegates to db-auto-doc reset)",
|
|
1820
1955
|
"examples": [
|
|
1821
|
-
"<%= config.bin %> <%= command.id %>
|
|
1822
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1823
|
-
"<%= config.bin %> <%= command.id %> --type=agent-eval",
|
|
1824
|
-
"<%= config.bin %> <%= command.id %> --all --save-report",
|
|
1825
|
-
"<%= config.bin %> <%= command.id %> --all --output=validation-report.md"
|
|
1956
|
+
"<%= config.bin %> <%= command.id %>",
|
|
1957
|
+
"<%= config.bin %> <%= command.id %> --force"
|
|
1826
1958
|
],
|
|
1827
1959
|
"flags": {
|
|
1828
|
-
"
|
|
1829
|
-
"char": "a",
|
|
1830
|
-
"description": "Validate all tests",
|
|
1831
|
-
"name": "all",
|
|
1832
|
-
"allowNo": false,
|
|
1833
|
-
"type": "boolean"
|
|
1834
|
-
},
|
|
1835
|
-
"type": {
|
|
1836
|
-
"char": "t",
|
|
1837
|
-
"description": "Validate tests by type",
|
|
1838
|
-
"name": "type",
|
|
1839
|
-
"hasDynamicHelp": false,
|
|
1840
|
-
"multiple": false,
|
|
1841
|
-
"type": "option"
|
|
1842
|
-
},
|
|
1843
|
-
"save-report": {
|
|
1844
|
-
"description": "Save validation report to file",
|
|
1845
|
-
"name": "save-report",
|
|
1846
|
-
"allowNo": false,
|
|
1847
|
-
"type": "boolean"
|
|
1848
|
-
},
|
|
1849
|
-
"format": {
|
|
1960
|
+
"force": {
|
|
1850
1961
|
"char": "f",
|
|
1851
|
-
"description": "
|
|
1852
|
-
"name": "
|
|
1853
|
-
"default": "console",
|
|
1854
|
-
"hasDynamicHelp": false,
|
|
1855
|
-
"multiple": false,
|
|
1856
|
-
"options": [
|
|
1857
|
-
"console",
|
|
1858
|
-
"json",
|
|
1859
|
-
"markdown"
|
|
1860
|
-
],
|
|
1861
|
-
"type": "option"
|
|
1862
|
-
},
|
|
1863
|
-
"output": {
|
|
1864
|
-
"char": "o",
|
|
1865
|
-
"description": "Output file path",
|
|
1866
|
-
"name": "output",
|
|
1867
|
-
"hasDynamicHelp": false,
|
|
1868
|
-
"multiple": false,
|
|
1869
|
-
"type": "option"
|
|
1870
|
-
},
|
|
1871
|
-
"verbose": {
|
|
1872
|
-
"char": "v",
|
|
1873
|
-
"description": "Show detailed information",
|
|
1874
|
-
"name": "verbose",
|
|
1962
|
+
"description": "Force reset without confirmation",
|
|
1963
|
+
"name": "force",
|
|
1875
1964
|
"allowNo": false,
|
|
1876
1965
|
"type": "boolean"
|
|
1877
1966
|
}
|
|
1878
1967
|
},
|
|
1879
1968
|
"hasDynamicHelp": false,
|
|
1880
1969
|
"hiddenAliases": [],
|
|
1881
|
-
"id": "
|
|
1970
|
+
"id": "dbdoc:reset",
|
|
1882
1971
|
"pluginAlias": "@memberjunction/cli",
|
|
1883
1972
|
"pluginName": "@memberjunction/cli",
|
|
1884
1973
|
"pluginType": "core",
|
|
@@ -1888,38 +1977,37 @@
|
|
|
1888
1977
|
"relativePath": [
|
|
1889
1978
|
"dist",
|
|
1890
1979
|
"commands",
|
|
1891
|
-
"
|
|
1892
|
-
"
|
|
1980
|
+
"dbdoc",
|
|
1981
|
+
"reset.js"
|
|
1893
1982
|
]
|
|
1894
1983
|
},
|
|
1895
|
-
"
|
|
1984
|
+
"dbdoc:review": {
|
|
1896
1985
|
"aliases": [],
|
|
1897
1986
|
"args": {},
|
|
1898
|
-
"description": "
|
|
1987
|
+
"description": "Review and approve AI-generated documentation",
|
|
1899
1988
|
"examples": [
|
|
1900
1989
|
"<%= config.bin %> <%= command.id %>",
|
|
1901
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1902
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1990
|
+
"<%= config.bin %> <%= command.id %> --schema dbo",
|
|
1991
|
+
"<%= config.bin %> <%= command.id %> --unapproved-only"
|
|
1903
1992
|
],
|
|
1904
1993
|
"flags": {
|
|
1905
|
-
"
|
|
1906
|
-
"
|
|
1907
|
-
"
|
|
1908
|
-
"name": "output",
|
|
1909
|
-
"default": "compact",
|
|
1994
|
+
"schema": {
|
|
1995
|
+
"description": "Review specific schema",
|
|
1996
|
+
"name": "schema",
|
|
1910
1997
|
"hasDynamicHelp": false,
|
|
1911
1998
|
"multiple": false,
|
|
1912
|
-
"options": [
|
|
1913
|
-
"compact",
|
|
1914
|
-
"json",
|
|
1915
|
-
"table"
|
|
1916
|
-
],
|
|
1917
1999
|
"type": "option"
|
|
2000
|
+
},
|
|
2001
|
+
"unapproved-only": {
|
|
2002
|
+
"description": "Only show unapproved items",
|
|
2003
|
+
"name": "unapproved-only",
|
|
2004
|
+
"allowNo": false,
|
|
2005
|
+
"type": "boolean"
|
|
1918
2006
|
}
|
|
1919
2007
|
},
|
|
1920
2008
|
"hasDynamicHelp": false,
|
|
1921
2009
|
"hiddenAliases": [],
|
|
1922
|
-
"id": "
|
|
2010
|
+
"id": "dbdoc:review",
|
|
1923
2011
|
"pluginAlias": "@memberjunction/cli",
|
|
1924
2012
|
"pluginName": "@memberjunction/cli",
|
|
1925
2013
|
"pluginType": "core",
|
|
@@ -1929,70 +2017,23 @@
|
|
|
1929
2017
|
"relativePath": [
|
|
1930
2018
|
"dist",
|
|
1931
2019
|
"commands",
|
|
1932
|
-
"
|
|
1933
|
-
"
|
|
1934
|
-
"list.js"
|
|
2020
|
+
"dbdoc",
|
|
2021
|
+
"review.js"
|
|
1935
2022
|
]
|
|
1936
2023
|
},
|
|
1937
|
-
"
|
|
2024
|
+
"dbdoc:status": {
|
|
1938
2025
|
"aliases": [],
|
|
1939
2026
|
"args": {},
|
|
1940
|
-
"description": "
|
|
2027
|
+
"description": "Show analysis status and progress (delegates to db-auto-doc status)",
|
|
1941
2028
|
"examples": [
|
|
1942
|
-
"<%= config.bin %> <%= command.id %>
|
|
1943
|
-
"<%= config.bin %> <%= command.id %> -
|
|
1944
|
-
"<%= config.bin %> <%= command.id %> -n \"Send Single Message\" --param \"To=user@example.com\" --param \"Subject=Test\" --param \"Body=Hello\" --param \"MessageType=Email\" --param \"Provider=SendGrid\"",
|
|
1945
|
-
"<%= config.bin %> <%= command.id %> -n \"Calculate Expression\" --param \"Expression=2+2*3\" --dry-run"
|
|
2029
|
+
"<%= config.bin %> <%= command.id %>",
|
|
2030
|
+
"<%= config.bin %> <%= command.id %> --state-file ./custom-state.json"
|
|
1946
2031
|
],
|
|
1947
2032
|
"flags": {
|
|
1948
|
-
"
|
|
1949
|
-
"char": "
|
|
1950
|
-
"description": "
|
|
1951
|
-
"name": "
|
|
1952
|
-
"required": true,
|
|
1953
|
-
"hasDynamicHelp": false,
|
|
1954
|
-
"multiple": false,
|
|
1955
|
-
"type": "option"
|
|
1956
|
-
},
|
|
1957
|
-
"param": {
|
|
1958
|
-
"char": "p",
|
|
1959
|
-
"description": "Action parameters in key=value format",
|
|
1960
|
-
"name": "param",
|
|
1961
|
-
"hasDynamicHelp": false,
|
|
1962
|
-
"multiple": true,
|
|
1963
|
-
"type": "option"
|
|
1964
|
-
},
|
|
1965
|
-
"dry-run": {
|
|
1966
|
-
"description": "Validate without executing",
|
|
1967
|
-
"name": "dry-run",
|
|
1968
|
-
"allowNo": false,
|
|
1969
|
-
"type": "boolean"
|
|
1970
|
-
},
|
|
1971
|
-
"output": {
|
|
1972
|
-
"char": "o",
|
|
1973
|
-
"description": "Output format",
|
|
1974
|
-
"name": "output",
|
|
1975
|
-
"default": "compact",
|
|
1976
|
-
"hasDynamicHelp": false,
|
|
1977
|
-
"multiple": false,
|
|
1978
|
-
"options": [
|
|
1979
|
-
"compact",
|
|
1980
|
-
"json",
|
|
1981
|
-
"table"
|
|
1982
|
-
],
|
|
1983
|
-
"type": "option"
|
|
1984
|
-
},
|
|
1985
|
-
"verbose": {
|
|
1986
|
-
"char": "v",
|
|
1987
|
-
"description": "Show detailed execution information",
|
|
1988
|
-
"name": "verbose",
|
|
1989
|
-
"allowNo": false,
|
|
1990
|
-
"type": "boolean"
|
|
1991
|
-
},
|
|
1992
|
-
"timeout": {
|
|
1993
|
-
"description": "Execution timeout in milliseconds",
|
|
1994
|
-
"name": "timeout",
|
|
1995
|
-
"default": 300000,
|
|
2033
|
+
"state-file": {
|
|
2034
|
+
"char": "s",
|
|
2035
|
+
"description": "Path to state JSON file",
|
|
2036
|
+
"name": "state-file",
|
|
1996
2037
|
"hasDynamicHelp": false,
|
|
1997
2038
|
"multiple": false,
|
|
1998
2039
|
"type": "option"
|
|
@@ -2000,7 +2041,7 @@
|
|
|
2000
2041
|
},
|
|
2001
2042
|
"hasDynamicHelp": false,
|
|
2002
2043
|
"hiddenAliases": [],
|
|
2003
|
-
"id": "
|
|
2044
|
+
"id": "dbdoc:status",
|
|
2004
2045
|
"pluginAlias": "@memberjunction/cli",
|
|
2005
2046
|
"pluginName": "@memberjunction/cli",
|
|
2006
2047
|
"pluginType": "core",
|
|
@@ -2010,9 +2051,8 @@
|
|
|
2010
2051
|
"relativePath": [
|
|
2011
2052
|
"dist",
|
|
2012
2053
|
"commands",
|
|
2013
|
-
"
|
|
2014
|
-
"
|
|
2015
|
-
"run.js"
|
|
2054
|
+
"dbdoc",
|
|
2055
|
+
"status.js"
|
|
2016
2056
|
]
|
|
2017
2057
|
},
|
|
2018
2058
|
"ai:agents:list": {
|
|
@@ -2500,5 +2540,5 @@
|
|
|
2500
2540
|
]
|
|
2501
2541
|
}
|
|
2502
2542
|
},
|
|
2503
|
-
"version": "
|
|
2543
|
+
"version": "3.0.0"
|
|
2504
2544
|
}
|