@memberjunction/cli 2.133.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 +1136 -1096
- package/package.json +12 -11
package/oclif.manifest.json
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"commands": {
|
|
3
|
+
"ai": {
|
|
4
|
+
"aliases": [],
|
|
5
|
+
"args": {},
|
|
6
|
+
"description": "Execute AI agents and actions",
|
|
7
|
+
"flags": {},
|
|
8
|
+
"hasDynamicHelp": false,
|
|
9
|
+
"hidden": false,
|
|
10
|
+
"hiddenAliases": [],
|
|
11
|
+
"id": "ai",
|
|
12
|
+
"pluginAlias": "@memberjunction/cli",
|
|
13
|
+
"pluginName": "@memberjunction/cli",
|
|
14
|
+
"pluginType": "core",
|
|
15
|
+
"strict": true,
|
|
16
|
+
"enableJsonFlag": false,
|
|
17
|
+
"isESM": false,
|
|
18
|
+
"relativePath": [
|
|
19
|
+
"dist",
|
|
20
|
+
"commands",
|
|
21
|
+
"ai",
|
|
22
|
+
"index.js"
|
|
23
|
+
]
|
|
24
|
+
},
|
|
3
25
|
"bump": {
|
|
4
26
|
"aliases": [],
|
|
5
27
|
"args": {},
|
|
@@ -72,15 +94,25 @@
|
|
|
72
94
|
"index.js"
|
|
73
95
|
]
|
|
74
96
|
},
|
|
75
|
-
"
|
|
97
|
+
"clean": {
|
|
76
98
|
"aliases": [],
|
|
77
99
|
"args": {},
|
|
78
|
-
"description": "
|
|
79
|
-
"
|
|
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
|
+
},
|
|
80
113
|
"hasDynamicHelp": false,
|
|
81
|
-
"hidden": false,
|
|
82
114
|
"hiddenAliases": [],
|
|
83
|
-
"id": "
|
|
115
|
+
"id": "clean",
|
|
84
116
|
"pluginAlias": "@memberjunction/cli",
|
|
85
117
|
"pluginName": "@memberjunction/cli",
|
|
86
118
|
"pluginType": "core",
|
|
@@ -90,29 +122,28 @@
|
|
|
90
122
|
"relativePath": [
|
|
91
123
|
"dist",
|
|
92
124
|
"commands",
|
|
93
|
-
"
|
|
125
|
+
"clean",
|
|
94
126
|
"index.js"
|
|
95
127
|
]
|
|
96
128
|
},
|
|
97
|
-
"
|
|
129
|
+
"codegen": {
|
|
98
130
|
"aliases": [],
|
|
99
131
|
"args": {},
|
|
100
|
-
"description": "
|
|
132
|
+
"description": "Run CodeGen to generate code and update metadata for MemberJunction",
|
|
101
133
|
"examples": [
|
|
102
134
|
"<%= config.bin %> <%= command.id %>\n"
|
|
103
135
|
],
|
|
104
136
|
"flags": {
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
"
|
|
108
|
-
"name": "verbose",
|
|
137
|
+
"skipdb": {
|
|
138
|
+
"description": "Skip database migration",
|
|
139
|
+
"name": "skipdb",
|
|
109
140
|
"allowNo": false,
|
|
110
141
|
"type": "boolean"
|
|
111
142
|
}
|
|
112
143
|
},
|
|
113
144
|
"hasDynamicHelp": false,
|
|
114
145
|
"hiddenAliases": [],
|
|
115
|
-
"id": "
|
|
146
|
+
"id": "codegen",
|
|
116
147
|
"pluginAlias": "@memberjunction/cli",
|
|
117
148
|
"pluginName": "@memberjunction/cli",
|
|
118
149
|
"pluginType": "core",
|
|
@@ -122,28 +153,29 @@
|
|
|
122
153
|
"relativePath": [
|
|
123
154
|
"dist",
|
|
124
155
|
"commands",
|
|
125
|
-
"
|
|
156
|
+
"codegen",
|
|
126
157
|
"index.js"
|
|
127
158
|
]
|
|
128
159
|
},
|
|
129
|
-
"
|
|
160
|
+
"install": {
|
|
130
161
|
"aliases": [],
|
|
131
162
|
"args": {},
|
|
132
|
-
"description": "
|
|
163
|
+
"description": "Install MemberJunction",
|
|
133
164
|
"examples": [
|
|
134
165
|
"<%= config.bin %> <%= command.id %>\n"
|
|
135
166
|
],
|
|
136
167
|
"flags": {
|
|
137
|
-
"
|
|
138
|
-
"
|
|
139
|
-
"
|
|
168
|
+
"verbose": {
|
|
169
|
+
"char": "v",
|
|
170
|
+
"description": "Enable additional logging",
|
|
171
|
+
"name": "verbose",
|
|
140
172
|
"allowNo": false,
|
|
141
173
|
"type": "boolean"
|
|
142
174
|
}
|
|
143
175
|
},
|
|
144
176
|
"hasDynamicHelp": false,
|
|
145
177
|
"hiddenAliases": [],
|
|
146
|
-
"id": "
|
|
178
|
+
"id": "install",
|
|
147
179
|
"pluginAlias": "@memberjunction/cli",
|
|
148
180
|
"pluginName": "@memberjunction/cli",
|
|
149
181
|
"pluginType": "core",
|
|
@@ -153,42 +185,40 @@
|
|
|
153
185
|
"relativePath": [
|
|
154
186
|
"dist",
|
|
155
187
|
"commands",
|
|
156
|
-
"
|
|
188
|
+
"install",
|
|
157
189
|
"index.js"
|
|
158
190
|
]
|
|
159
191
|
},
|
|
160
|
-
"
|
|
192
|
+
"querygen:export": {
|
|
161
193
|
"aliases": [],
|
|
162
194
|
"args": {},
|
|
163
|
-
"description": "
|
|
195
|
+
"description": "Export queries from database to metadata files",
|
|
164
196
|
"examples": [
|
|
165
197
|
"<%= config.bin %> <%= command.id %>",
|
|
166
|
-
"<%= config.bin %> <%= command.id %> --
|
|
167
|
-
"<%= config.bin %> <%= command.id %> --
|
|
198
|
+
"<%= config.bin %> <%= command.id %> --output ./metadata/queries",
|
|
199
|
+
"<%= config.bin %> <%= command.id %> --verbose"
|
|
168
200
|
],
|
|
169
201
|
"flags": {
|
|
170
|
-
"
|
|
171
|
-
"char": "
|
|
172
|
-
"description": "
|
|
173
|
-
"name": "
|
|
174
|
-
"
|
|
202
|
+
"output": {
|
|
203
|
+
"char": "o",
|
|
204
|
+
"description": "Output directory",
|
|
205
|
+
"name": "output",
|
|
206
|
+
"default": "./metadata/queries",
|
|
175
207
|
"hasDynamicHelp": false,
|
|
176
208
|
"multiple": false,
|
|
177
209
|
"type": "option"
|
|
178
210
|
},
|
|
179
|
-
"
|
|
180
|
-
"char": "
|
|
181
|
-
"description": "
|
|
182
|
-
"name": "
|
|
183
|
-
"
|
|
184
|
-
"
|
|
185
|
-
"multiple": false,
|
|
186
|
-
"type": "option"
|
|
211
|
+
"verbose": {
|
|
212
|
+
"char": "v",
|
|
213
|
+
"description": "Verbose output",
|
|
214
|
+
"name": "verbose",
|
|
215
|
+
"allowNo": false,
|
|
216
|
+
"type": "boolean"
|
|
187
217
|
}
|
|
188
218
|
},
|
|
189
219
|
"hasDynamicHelp": false,
|
|
190
220
|
"hiddenAliases": [],
|
|
191
|
-
"id": "
|
|
221
|
+
"id": "querygen:export",
|
|
192
222
|
"pluginAlias": "@memberjunction/cli",
|
|
193
223
|
"pluginName": "@memberjunction/cli",
|
|
194
224
|
"pluginType": "core",
|
|
@@ -198,105 +228,126 @@
|
|
|
198
228
|
"relativePath": [
|
|
199
229
|
"dist",
|
|
200
230
|
"commands",
|
|
201
|
-
"
|
|
202
|
-
"
|
|
231
|
+
"querygen",
|
|
232
|
+
"export.js"
|
|
203
233
|
]
|
|
204
234
|
},
|
|
205
|
-
"
|
|
235
|
+
"querygen:generate": {
|
|
206
236
|
"aliases": [],
|
|
207
237
|
"args": {},
|
|
208
|
-
"description": "
|
|
238
|
+
"description": "Generate SQL query templates for entities using AI",
|
|
209
239
|
"examples": [
|
|
210
|
-
"<%= config.bin %> <%= command.id %>
|
|
211
|
-
"<%= config.bin %> <%= command.id %> --
|
|
212
|
-
"<%= config.bin %> <%= command.id %> --
|
|
213
|
-
"<%= config.bin %> <%= command.id %> --
|
|
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"
|
|
214
244
|
],
|
|
215
245
|
"flags": {
|
|
216
|
-
"
|
|
217
|
-
"char": "
|
|
218
|
-
"description": "
|
|
219
|
-
"name": "
|
|
220
|
-
"required": true,
|
|
246
|
+
"entities": {
|
|
247
|
+
"char": "e",
|
|
248
|
+
"description": "Specific entities to generate queries for (comma-separated)",
|
|
249
|
+
"name": "entities",
|
|
221
250
|
"hasDynamicHelp": false,
|
|
222
251
|
"multiple": false,
|
|
223
252
|
"type": "option"
|
|
224
253
|
},
|
|
225
|
-
"
|
|
226
|
-
"char": "
|
|
227
|
-
"description": "
|
|
228
|
-
"name": "
|
|
229
|
-
"required": true,
|
|
254
|
+
"exclude-entities": {
|
|
255
|
+
"char": "x",
|
|
256
|
+
"description": "Entities to exclude (comma-separated)",
|
|
257
|
+
"name": "exclude-entities",
|
|
230
258
|
"hasDynamicHelp": false,
|
|
231
259
|
"multiple": false,
|
|
232
260
|
"type": "option"
|
|
233
261
|
},
|
|
234
|
-
"
|
|
235
|
-
"
|
|
236
|
-
"
|
|
237
|
-
"
|
|
238
|
-
"
|
|
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"
|
|
239
269
|
},
|
|
240
|
-
"
|
|
241
|
-
"
|
|
242
|
-
"
|
|
243
|
-
"
|
|
270
|
+
"max-entities": {
|
|
271
|
+
"char": "m",
|
|
272
|
+
"description": "Max entities per group",
|
|
273
|
+
"name": "max-entities",
|
|
274
|
+
"default": 3,
|
|
244
275
|
"hasDynamicHelp": false,
|
|
245
276
|
"multiple": false,
|
|
246
277
|
"type": "option"
|
|
247
278
|
},
|
|
248
|
-
"
|
|
249
|
-
"
|
|
250
|
-
"
|
|
251
|
-
"
|
|
279
|
+
"target-groups": {
|
|
280
|
+
"char": "t",
|
|
281
|
+
"description": "Target number of entity groups to generate",
|
|
282
|
+
"name": "target-groups",
|
|
283
|
+
"default": 75,
|
|
252
284
|
"hasDynamicHelp": false,
|
|
253
285
|
"multiple": false,
|
|
254
286
|
"type": "option"
|
|
255
287
|
},
|
|
256
|
-
"
|
|
257
|
-
"
|
|
258
|
-
"
|
|
259
|
-
"
|
|
288
|
+
"max-refinements": {
|
|
289
|
+
"char": "r",
|
|
290
|
+
"description": "Max refinement iterations",
|
|
291
|
+
"name": "max-refinements",
|
|
292
|
+
"default": 3,
|
|
260
293
|
"hasDynamicHelp": false,
|
|
261
294
|
"multiple": false,
|
|
262
|
-
"options": [
|
|
263
|
-
"Approved",
|
|
264
|
-
"Pending",
|
|
265
|
-
"Rejected",
|
|
266
|
-
"Expired"
|
|
267
|
-
],
|
|
268
295
|
"type": "option"
|
|
269
296
|
},
|
|
270
|
-
"
|
|
271
|
-
"
|
|
272
|
-
"
|
|
273
|
-
"
|
|
297
|
+
"max-fixes": {
|
|
298
|
+
"char": "f",
|
|
299
|
+
"description": "Max error-fixing attempts",
|
|
300
|
+
"name": "max-fixes",
|
|
301
|
+
"default": 5,
|
|
274
302
|
"hasDynamicHelp": false,
|
|
275
303
|
"multiple": false,
|
|
276
304
|
"type": "option"
|
|
277
305
|
},
|
|
278
|
-
"
|
|
279
|
-
"description": "
|
|
280
|
-
"name": "
|
|
281
|
-
"
|
|
282
|
-
"
|
|
306
|
+
"model": {
|
|
307
|
+
"description": "Preferred AI model",
|
|
308
|
+
"name": "model",
|
|
309
|
+
"hasDynamicHelp": false,
|
|
310
|
+
"multiple": false,
|
|
311
|
+
"type": "option"
|
|
283
312
|
},
|
|
284
|
-
"
|
|
285
|
-
"description": "
|
|
286
|
-
"name": "
|
|
287
|
-
"
|
|
288
|
-
"
|
|
313
|
+
"vendor": {
|
|
314
|
+
"description": "Preferred AI vendor",
|
|
315
|
+
"name": "vendor",
|
|
316
|
+
"hasDynamicHelp": false,
|
|
317
|
+
"multiple": false,
|
|
318
|
+
"type": "option"
|
|
289
319
|
},
|
|
290
|
-
"
|
|
291
|
-
"
|
|
292
|
-
"
|
|
320
|
+
"output": {
|
|
321
|
+
"char": "o",
|
|
322
|
+
"description": "Output directory",
|
|
323
|
+
"name": "output",
|
|
324
|
+
"hasDynamicHelp": false,
|
|
325
|
+
"multiple": false,
|
|
326
|
+
"type": "option"
|
|
327
|
+
},
|
|
328
|
+
"mode": {
|
|
329
|
+
"description": "Output mode: metadata|database|both",
|
|
330
|
+
"name": "mode",
|
|
331
|
+
"hasDynamicHelp": false,
|
|
332
|
+
"multiple": false,
|
|
333
|
+
"options": [
|
|
334
|
+
"metadata",
|
|
335
|
+
"database",
|
|
336
|
+
"both"
|
|
337
|
+
],
|
|
338
|
+
"type": "option"
|
|
339
|
+
},
|
|
340
|
+
"verbose": {
|
|
341
|
+
"char": "v",
|
|
342
|
+
"description": "Verbose output",
|
|
343
|
+
"name": "verbose",
|
|
293
344
|
"allowNo": false,
|
|
294
345
|
"type": "boolean"
|
|
295
346
|
}
|
|
296
347
|
},
|
|
297
348
|
"hasDynamicHelp": false,
|
|
298
349
|
"hiddenAliases": [],
|
|
299
|
-
"id": "
|
|
350
|
+
"id": "querygen:generate",
|
|
300
351
|
"pluginAlias": "@memberjunction/cli",
|
|
301
352
|
"pluginName": "@memberjunction/cli",
|
|
302
353
|
"pluginType": "core",
|
|
@@ -306,100 +357,40 @@
|
|
|
306
357
|
"relativePath": [
|
|
307
358
|
"dist",
|
|
308
359
|
"commands",
|
|
309
|
-
"
|
|
310
|
-
"
|
|
360
|
+
"querygen",
|
|
361
|
+
"generate.js"
|
|
311
362
|
]
|
|
312
363
|
},
|
|
313
|
-
"
|
|
364
|
+
"querygen:validate": {
|
|
314
365
|
"aliases": [],
|
|
315
366
|
"args": {},
|
|
316
|
-
"description": "
|
|
367
|
+
"description": "Validate existing query templates",
|
|
317
368
|
"examples": [
|
|
318
|
-
"<%= config.bin %> <%= command.id %>
|
|
319
|
-
"<%= config.bin %> <%= command.id %> --
|
|
320
|
-
"<%= config.bin %> <%= command.id %> --
|
|
321
|
-
"<%= config.bin %> <%= command.id %> --html",
|
|
322
|
-
"<%= config.bin %> <%= command.id %> --csv",
|
|
323
|
-
"<%= config.bin %> <%= command.id %> --mermaid",
|
|
324
|
-
"<%= config.bin %> <%= command.id %> --sql --markdown --html --csv --mermaid --apply"
|
|
369
|
+
"<%= config.bin %> <%= command.id %>",
|
|
370
|
+
"<%= config.bin %> <%= command.id %> --path ./metadata/queries",
|
|
371
|
+
"<%= config.bin %> <%= command.id %> --verbose"
|
|
325
372
|
],
|
|
326
373
|
"flags": {
|
|
327
|
-
"
|
|
328
|
-
"char": "
|
|
329
|
-
"description": "Path to
|
|
330
|
-
"name": "
|
|
331
|
-
"
|
|
332
|
-
"multiple": false,
|
|
333
|
-
"type": "option"
|
|
334
|
-
},
|
|
335
|
-
"output-dir": {
|
|
336
|
-
"char": "o",
|
|
337
|
-
"description": "Output directory for generated files",
|
|
338
|
-
"name": "output-dir",
|
|
374
|
+
"path": {
|
|
375
|
+
"char": "p",
|
|
376
|
+
"description": "Path to queries metadata file or directory",
|
|
377
|
+
"name": "path",
|
|
378
|
+
"default": "./metadata/queries",
|
|
339
379
|
"hasDynamicHelp": false,
|
|
340
380
|
"multiple": false,
|
|
341
381
|
"type": "option"
|
|
342
382
|
},
|
|
343
|
-
"
|
|
344
|
-
"
|
|
345
|
-
"
|
|
346
|
-
"
|
|
347
|
-
"type": "boolean"
|
|
348
|
-
},
|
|
349
|
-
"markdown": {
|
|
350
|
-
"description": "Generate Markdown documentation",
|
|
351
|
-
"name": "markdown",
|
|
352
|
-
"allowNo": false,
|
|
353
|
-
"type": "boolean"
|
|
354
|
-
},
|
|
355
|
-
"html": {
|
|
356
|
-
"description": "Generate interactive HTML documentation",
|
|
357
|
-
"name": "html",
|
|
358
|
-
"allowNo": false,
|
|
359
|
-
"type": "boolean"
|
|
360
|
-
},
|
|
361
|
-
"csv": {
|
|
362
|
-
"description": "Generate CSV exports (tables and columns)",
|
|
363
|
-
"name": "csv",
|
|
364
|
-
"allowNo": false,
|
|
365
|
-
"type": "boolean"
|
|
366
|
-
},
|
|
367
|
-
"mermaid": {
|
|
368
|
-
"description": "Generate Mermaid ERD diagram files",
|
|
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",
|
|
383
|
+
"verbose": {
|
|
384
|
+
"char": "v",
|
|
385
|
+
"description": "Verbose output",
|
|
386
|
+
"name": "verbose",
|
|
388
387
|
"allowNo": false,
|
|
389
388
|
"type": "boolean"
|
|
390
|
-
},
|
|
391
|
-
"confidence-threshold": {
|
|
392
|
-
"description": "Minimum confidence threshold",
|
|
393
|
-
"name": "confidence-threshold",
|
|
394
|
-
"default": "0",
|
|
395
|
-
"hasDynamicHelp": false,
|
|
396
|
-
"multiple": false,
|
|
397
|
-
"type": "option"
|
|
398
389
|
}
|
|
399
390
|
},
|
|
400
391
|
"hasDynamicHelp": false,
|
|
401
392
|
"hiddenAliases": [],
|
|
402
|
-
"id": "
|
|
393
|
+
"id": "querygen:validate",
|
|
403
394
|
"pluginAlias": "@memberjunction/cli",
|
|
404
395
|
"pluginName": "@memberjunction/cli",
|
|
405
396
|
"pluginType": "core",
|
|
@@ -409,87 +400,64 @@
|
|
|
409
400
|
"relativePath": [
|
|
410
401
|
"dist",
|
|
411
402
|
"commands",
|
|
412
|
-
"
|
|
413
|
-
"
|
|
403
|
+
"querygen",
|
|
404
|
+
"validate.js"
|
|
414
405
|
]
|
|
415
406
|
},
|
|
416
|
-
"
|
|
407
|
+
"sync:file-reset": {
|
|
417
408
|
"aliases": [],
|
|
418
409
|
"args": {},
|
|
419
|
-
"description": "
|
|
410
|
+
"description": "Reset file metadata sections",
|
|
420
411
|
"examples": [
|
|
421
|
-
"<%= config.bin %> <%= command.id %>
|
|
422
|
-
"<%= config.bin %> <%= command.id %> --
|
|
423
|
-
"<%= 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"
|
|
424
416
|
],
|
|
425
417
|
"flags": {
|
|
426
|
-
"
|
|
427
|
-
"description": "
|
|
428
|
-
"name": "
|
|
429
|
-
"required": true,
|
|
418
|
+
"dir": {
|
|
419
|
+
"description": "Specific entity directory to reset",
|
|
420
|
+
"name": "dir",
|
|
430
421
|
"hasDynamicHelp": false,
|
|
431
422
|
"multiple": false,
|
|
432
423
|
"type": "option"
|
|
433
424
|
},
|
|
434
|
-
"
|
|
435
|
-
"description": "
|
|
436
|
-
"name": "
|
|
437
|
-
"required": false,
|
|
425
|
+
"sections": {
|
|
426
|
+
"description": "Comma-separated list of sections to reset (dependencies,references,related,lookup)",
|
|
427
|
+
"name": "sections",
|
|
438
428
|
"hasDynamicHelp": false,
|
|
439
429
|
"multiple": false,
|
|
440
430
|
"type": "option"
|
|
441
431
|
},
|
|
442
|
-
"
|
|
443
|
-
"
|
|
444
|
-
"
|
|
445
|
-
"
|
|
446
|
-
"
|
|
447
|
-
"hasDynamicHelp": false,
|
|
448
|
-
"multiple": false,
|
|
449
|
-
"type": "option"
|
|
432
|
+
"all": {
|
|
433
|
+
"description": "Reset all metadata sections",
|
|
434
|
+
"name": "all",
|
|
435
|
+
"allowNo": false,
|
|
436
|
+
"type": "boolean"
|
|
450
437
|
},
|
|
451
|
-
"
|
|
452
|
-
"description": "
|
|
453
|
-
"name": "
|
|
454
|
-
"
|
|
455
|
-
"
|
|
456
|
-
"multiple": false,
|
|
457
|
-
"type": "option"
|
|
438
|
+
"dry-run": {
|
|
439
|
+
"description": "Show what would be reset without actually resetting",
|
|
440
|
+
"name": "dry-run",
|
|
441
|
+
"allowNo": false,
|
|
442
|
+
"type": "boolean"
|
|
458
443
|
},
|
|
459
|
-
"
|
|
460
|
-
"description": "
|
|
461
|
-
"name": "
|
|
462
|
-
"
|
|
463
|
-
"
|
|
464
|
-
|
|
465
|
-
|
|
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"
|
|
466
456
|
}
|
|
467
457
|
},
|
|
468
458
|
"hasDynamicHelp": false,
|
|
469
459
|
"hiddenAliases": [],
|
|
470
|
-
"id": "
|
|
471
|
-
"pluginAlias": "@memberjunction/cli",
|
|
472
|
-
"pluginName": "@memberjunction/cli",
|
|
473
|
-
"pluginType": "core",
|
|
474
|
-
"strict": true,
|
|
475
|
-
"enableJsonFlag": false,
|
|
476
|
-
"isESM": false,
|
|
477
|
-
"relativePath": [
|
|
478
|
-
"dist",
|
|
479
|
-
"commands",
|
|
480
|
-
"dbdoc",
|
|
481
|
-
"generate-queries.js"
|
|
482
|
-
]
|
|
483
|
-
},
|
|
484
|
-
"dbdoc": {
|
|
485
|
-
"aliases": [],
|
|
486
|
-
"args": {},
|
|
487
|
-
"description": "AI-powered database documentation generator",
|
|
488
|
-
"flags": {},
|
|
489
|
-
"hasDynamicHelp": false,
|
|
490
|
-
"hidden": false,
|
|
491
|
-
"hiddenAliases": [],
|
|
492
|
-
"id": "dbdoc",
|
|
460
|
+
"id": "sync:file-reset",
|
|
493
461
|
"pluginAlias": "@memberjunction/cli",
|
|
494
462
|
"pluginName": "@memberjunction/cli",
|
|
495
463
|
"pluginType": "core",
|
|
@@ -499,21 +467,21 @@
|
|
|
499
467
|
"relativePath": [
|
|
500
468
|
"dist",
|
|
501
469
|
"commands",
|
|
502
|
-
"
|
|
503
|
-
"
|
|
470
|
+
"sync",
|
|
471
|
+
"file-reset.js"
|
|
504
472
|
]
|
|
505
473
|
},
|
|
506
|
-
"
|
|
474
|
+
"sync:init": {
|
|
507
475
|
"aliases": [],
|
|
508
476
|
"args": {},
|
|
509
|
-
"description": "Initialize
|
|
477
|
+
"description": "Initialize a directory for metadata synchronization",
|
|
510
478
|
"examples": [
|
|
511
479
|
"<%= config.bin %> <%= command.id %>"
|
|
512
480
|
],
|
|
513
481
|
"flags": {},
|
|
514
482
|
"hasDynamicHelp": false,
|
|
515
483
|
"hiddenAliases": [],
|
|
516
|
-
"id": "
|
|
484
|
+
"id": "sync:init",
|
|
517
485
|
"pluginAlias": "@memberjunction/cli",
|
|
518
486
|
"pluginName": "@memberjunction/cli",
|
|
519
487
|
"pluginType": "core",
|
|
@@ -523,96 +491,209 @@
|
|
|
523
491
|
"relativePath": [
|
|
524
492
|
"dist",
|
|
525
493
|
"commands",
|
|
526
|
-
"
|
|
494
|
+
"sync",
|
|
527
495
|
"init.js"
|
|
528
496
|
]
|
|
529
497
|
},
|
|
530
|
-
"
|
|
531
|
-
"aliases": [],
|
|
532
|
-
"args": {},
|
|
533
|
-
"description": "Reset analysis state (delegates to db-auto-doc reset)",
|
|
534
|
-
"examples": [
|
|
535
|
-
"<%= config.bin %> <%= command.id %>",
|
|
536
|
-
"<%= config.bin %> <%= command.id %> --force"
|
|
537
|
-
],
|
|
538
|
-
"flags": {
|
|
539
|
-
"force": {
|
|
540
|
-
"char": "f",
|
|
541
|
-
"description": "Force reset without confirmation",
|
|
542
|
-
"name": "force",
|
|
543
|
-
"allowNo": false,
|
|
544
|
-
"type": "boolean"
|
|
545
|
-
}
|
|
546
|
-
},
|
|
547
|
-
"hasDynamicHelp": false,
|
|
548
|
-
"hiddenAliases": [],
|
|
549
|
-
"id": "dbdoc:reset",
|
|
550
|
-
"pluginAlias": "@memberjunction/cli",
|
|
551
|
-
"pluginName": "@memberjunction/cli",
|
|
552
|
-
"pluginType": "core",
|
|
553
|
-
"strict": true,
|
|
554
|
-
"enableJsonFlag": false,
|
|
555
|
-
"isESM": false,
|
|
556
|
-
"relativePath": [
|
|
557
|
-
"dist",
|
|
558
|
-
"commands",
|
|
559
|
-
"dbdoc",
|
|
560
|
-
"reset.js"
|
|
561
|
-
]
|
|
562
|
-
},
|
|
563
|
-
"dbdoc:status": {
|
|
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 %> --
|
|
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"
|
|
570
509
|
],
|
|
571
510
|
"flags": {
|
|
572
|
-
"
|
|
573
|
-
"
|
|
574
|
-
"
|
|
575
|
-
"
|
|
511
|
+
"entity": {
|
|
512
|
+
"description": "Entity name to pull",
|
|
513
|
+
"name": "entity",
|
|
514
|
+
"required": true,
|
|
576
515
|
"hasDynamicHelp": false,
|
|
577
516
|
"multiple": false,
|
|
578
517
|
"type": "option"
|
|
579
|
-
}
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
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",
|
|
607
|
+
"hasDynamicHelp": false,
|
|
608
|
+
"multiple": false,
|
|
609
|
+
"type": "option"
|
|
610
|
+
}
|
|
611
|
+
},
|
|
612
|
+
"hasDynamicHelp": false,
|
|
613
|
+
"hiddenAliases": [],
|
|
614
|
+
"id": "sync:pull",
|
|
615
|
+
"pluginAlias": "@memberjunction/cli",
|
|
616
|
+
"pluginName": "@memberjunction/cli",
|
|
617
|
+
"pluginType": "core",
|
|
618
|
+
"strict": true,
|
|
588
619
|
"enableJsonFlag": false,
|
|
589
620
|
"isESM": false,
|
|
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,44 @@
|
|
|
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",
|
|
727
|
-
"hasDynamicHelp": false,
|
|
728
|
-
"multiple": false,
|
|
729
|
-
"type": "option"
|
|
730
|
-
},
|
|
731
|
-
"exclude-entities": {
|
|
732
|
-
"char": "x",
|
|
733
|
-
"description": "Entities to exclude (comma-separated)",
|
|
734
|
-
"name": "exclude-entities",
|
|
735
|
-
"hasDynamicHelp": false,
|
|
736
|
-
"multiple": false,
|
|
737
|
-
"type": "option"
|
|
738
|
-
},
|
|
739
|
-
"exclude-schemas": {
|
|
740
|
-
"char": "s",
|
|
741
|
-
"description": "Schemas to exclude (comma-separated)",
|
|
742
|
-
"name": "exclude-schemas",
|
|
743
|
-
"hasDynamicHelp": false,
|
|
744
|
-
"multiple": false,
|
|
745
|
-
"type": "option"
|
|
746
|
-
},
|
|
747
|
-
"max-entities": {
|
|
748
|
-
"char": "m",
|
|
749
|
-
"description": "Max entities per group",
|
|
750
|
-
"name": "max-entities",
|
|
751
|
-
"default": 3,
|
|
752
|
-
"hasDynamicHelp": false,
|
|
753
|
-
"multiple": false,
|
|
754
|
-
"type": "option"
|
|
755
|
-
},
|
|
756
|
-
"target-groups": {
|
|
757
|
-
"char": "t",
|
|
758
|
-
"description": "Target number of entity groups to generate",
|
|
759
|
-
"name": "target-groups",
|
|
760
|
-
"default": 75,
|
|
761
|
-
"hasDynamicHelp": false,
|
|
762
|
-
"multiple": false,
|
|
763
|
-
"type": "option"
|
|
764
|
-
},
|
|
765
|
-
"max-refinements": {
|
|
766
|
-
"char": "r",
|
|
767
|
-
"description": "Max refinement iterations",
|
|
768
|
-
"name": "max-refinements",
|
|
769
|
-
"default": 3,
|
|
770
|
-
"hasDynamicHelp": false,
|
|
771
|
-
"multiple": false,
|
|
772
|
-
"type": "option"
|
|
773
|
-
},
|
|
774
|
-
"max-fixes": {
|
|
775
|
-
"char": "f",
|
|
776
|
-
"description": "Max error-fixing attempts",
|
|
777
|
-
"name": "max-fixes",
|
|
778
|
-
"default": 5,
|
|
779
|
-
"hasDynamicHelp": false,
|
|
780
|
-
"multiple": false,
|
|
781
|
-
"type": "option"
|
|
782
|
-
},
|
|
783
|
-
"model": {
|
|
784
|
-
"description": "Preferred AI model",
|
|
785
|
-
"name": "model",
|
|
786
|
-
"hasDynamicHelp": false,
|
|
787
|
-
"multiple": false,
|
|
788
|
-
"type": "option"
|
|
789
|
-
},
|
|
790
|
-
"vendor": {
|
|
791
|
-
"description": "Preferred AI vendor",
|
|
792
|
-
"name": "vendor",
|
|
831
|
+
"dir": {
|
|
832
|
+
"description": "Specific entity directory to watch",
|
|
833
|
+
"name": "dir",
|
|
793
834
|
"hasDynamicHelp": false,
|
|
794
835
|
"multiple": false,
|
|
795
836
|
"type": "option"
|
|
796
837
|
},
|
|
797
|
-
"
|
|
798
|
-
"
|
|
799
|
-
"
|
|
800
|
-
"name": "output",
|
|
838
|
+
"debounce": {
|
|
839
|
+
"description": "Debounce delay in milliseconds (default: 500)",
|
|
840
|
+
"name": "debounce",
|
|
801
841
|
"hasDynamicHelp": false,
|
|
802
842
|
"multiple": false,
|
|
803
843
|
"type": "option"
|
|
804
844
|
},
|
|
805
|
-
"
|
|
806
|
-
"description": "
|
|
807
|
-
"name": "
|
|
808
|
-
"
|
|
809
|
-
"
|
|
810
|
-
"options": [
|
|
811
|
-
"metadata",
|
|
812
|
-
"database",
|
|
813
|
-
"both"
|
|
814
|
-
],
|
|
815
|
-
"type": "option"
|
|
845
|
+
"no-validate": {
|
|
846
|
+
"description": "Skip validation before sync",
|
|
847
|
+
"name": "no-validate",
|
|
848
|
+
"allowNo": false,
|
|
849
|
+
"type": "boolean"
|
|
816
850
|
},
|
|
817
851
|
"verbose": {
|
|
818
852
|
"char": "v",
|
|
819
|
-
"description": "
|
|
853
|
+
"description": "Show detailed output",
|
|
820
854
|
"name": "verbose",
|
|
821
855
|
"allowNo": false,
|
|
822
856
|
"type": "boolean"
|
|
@@ -824,7 +858,7 @@
|
|
|
824
858
|
},
|
|
825
859
|
"hasDynamicHelp": false,
|
|
826
860
|
"hiddenAliases": [],
|
|
827
|
-
"id": "
|
|
861
|
+
"id": "sync:watch",
|
|
828
862
|
"pluginAlias": "@memberjunction/cli",
|
|
829
863
|
"pluginName": "@memberjunction/cli",
|
|
830
864
|
"pluginType": "core",
|
|
@@ -834,32 +868,78 @@
|
|
|
834
868
|
"relativePath": [
|
|
835
869
|
"dist",
|
|
836
870
|
"commands",
|
|
837
|
-
"
|
|
838
|
-
"
|
|
871
|
+
"sync",
|
|
872
|
+
"watch.js"
|
|
839
873
|
]
|
|
840
874
|
},
|
|
841
|
-
"
|
|
875
|
+
"test:compare": {
|
|
842
876
|
"aliases": [],
|
|
843
|
-
"args": {
|
|
844
|
-
|
|
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",
|
|
845
890
|
"examples": [
|
|
846
|
-
"<%= config.bin %> <%= command.id %>",
|
|
847
|
-
"<%= config.bin %> <%= command.id %> --
|
|
848
|
-
"<%= config.bin %> <%= command.id %> --
|
|
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"
|
|
849
895
|
],
|
|
850
896
|
"flags": {
|
|
851
|
-
"
|
|
852
|
-
"char": "
|
|
853
|
-
"description": "
|
|
854
|
-
"name": "
|
|
855
|
-
"
|
|
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",
|
|
924
|
+
"hasDynamicHelp": false,
|
|
925
|
+
"multiple": false,
|
|
926
|
+
"options": [
|
|
927
|
+
"console",
|
|
928
|
+
"json",
|
|
929
|
+
"markdown"
|
|
930
|
+
],
|
|
931
|
+
"type": "option"
|
|
932
|
+
},
|
|
933
|
+
"output": {
|
|
934
|
+
"char": "o",
|
|
935
|
+
"description": "Output file path",
|
|
936
|
+
"name": "output",
|
|
856
937
|
"hasDynamicHelp": false,
|
|
857
938
|
"multiple": false,
|
|
858
939
|
"type": "option"
|
|
859
940
|
},
|
|
860
941
|
"verbose": {
|
|
861
|
-
"
|
|
862
|
-
"description": "Verbose output",
|
|
942
|
+
"description": "Show detailed information",
|
|
863
943
|
"name": "verbose",
|
|
864
944
|
"allowNo": false,
|
|
865
945
|
"type": "boolean"
|
|
@@ -867,7 +947,7 @@
|
|
|
867
947
|
},
|
|
868
948
|
"hasDynamicHelp": false,
|
|
869
949
|
"hiddenAliases": [],
|
|
870
|
-
"id": "
|
|
950
|
+
"id": "test:compare",
|
|
871
951
|
"pluginAlias": "@memberjunction/cli",
|
|
872
952
|
"pluginName": "@memberjunction/cli",
|
|
873
953
|
"pluginType": "core",
|
|
@@ -877,56 +957,78 @@
|
|
|
877
957
|
"relativePath": [
|
|
878
958
|
"dist",
|
|
879
959
|
"commands",
|
|
880
|
-
"
|
|
881
|
-
"
|
|
960
|
+
"test",
|
|
961
|
+
"compare.js"
|
|
882
962
|
]
|
|
883
963
|
},
|
|
884
|
-
"
|
|
964
|
+
"test:history": {
|
|
885
965
|
"aliases": [],
|
|
886
966
|
"args": {},
|
|
887
|
-
"description": "
|
|
967
|
+
"description": "View test execution history",
|
|
888
968
|
"examples": [
|
|
889
969
|
"<%= config.bin %> <%= command.id %>",
|
|
890
|
-
"<%= config.bin %> <%= command.id %> --
|
|
891
|
-
"<%= config.bin %> <%= command.id %> --
|
|
892
|
-
"<%= 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"
|
|
893
974
|
],
|
|
894
975
|
"flags": {
|
|
895
|
-
"
|
|
896
|
-
"
|
|
897
|
-
"
|
|
976
|
+
"test": {
|
|
977
|
+
"char": "t",
|
|
978
|
+
"description": "Filter by test ID",
|
|
979
|
+
"name": "test",
|
|
898
980
|
"hasDynamicHelp": false,
|
|
899
981
|
"multiple": false,
|
|
900
982
|
"type": "option"
|
|
901
983
|
},
|
|
902
|
-
"
|
|
903
|
-
"
|
|
904
|
-
"
|
|
984
|
+
"recent": {
|
|
985
|
+
"char": "r",
|
|
986
|
+
"description": "Number of recent runs to show",
|
|
987
|
+
"name": "recent",
|
|
905
988
|
"hasDynamicHelp": false,
|
|
906
989
|
"multiple": false,
|
|
907
990
|
"type": "option"
|
|
908
991
|
},
|
|
909
|
-
"
|
|
910
|
-
"description": "
|
|
911
|
-
"name": "
|
|
912
|
-
"
|
|
913
|
-
"
|
|
992
|
+
"from": {
|
|
993
|
+
"description": "Show history from date (YYYY-MM-DD)",
|
|
994
|
+
"name": "from",
|
|
995
|
+
"hasDynamicHelp": false,
|
|
996
|
+
"multiple": false,
|
|
997
|
+
"type": "option"
|
|
914
998
|
},
|
|
915
|
-
"
|
|
916
|
-
"
|
|
917
|
-
"
|
|
918
|
-
"
|
|
919
|
-
"
|
|
999
|
+
"status": {
|
|
1000
|
+
"char": "s",
|
|
1001
|
+
"description": "Filter by status",
|
|
1002
|
+
"name": "status",
|
|
1003
|
+
"hasDynamicHelp": false,
|
|
1004
|
+
"multiple": false,
|
|
1005
|
+
"type": "option"
|
|
920
1006
|
},
|
|
921
|
-
"
|
|
922
|
-
"
|
|
923
|
-
"
|
|
924
|
-
"
|
|
925
|
-
"
|
|
1007
|
+
"format": {
|
|
1008
|
+
"char": "f",
|
|
1009
|
+
"description": "Output format",
|
|
1010
|
+
"name": "format",
|
|
1011
|
+
"default": "console",
|
|
1012
|
+
"hasDynamicHelp": false,
|
|
1013
|
+
"multiple": false,
|
|
1014
|
+
"options": [
|
|
1015
|
+
"console",
|
|
1016
|
+
"json",
|
|
1017
|
+
"markdown"
|
|
1018
|
+
],
|
|
1019
|
+
"type": "option"
|
|
1020
|
+
},
|
|
1021
|
+
"output": {
|
|
1022
|
+
"char": "o",
|
|
1023
|
+
"description": "Output file path",
|
|
1024
|
+
"name": "output",
|
|
1025
|
+
"hasDynamicHelp": false,
|
|
1026
|
+
"multiple": false,
|
|
1027
|
+
"type": "option"
|
|
926
1028
|
},
|
|
927
1029
|
"verbose": {
|
|
928
1030
|
"char": "v",
|
|
929
|
-
"description": "Show detailed
|
|
1031
|
+
"description": "Show detailed information",
|
|
930
1032
|
"name": "verbose",
|
|
931
1033
|
"allowNo": false,
|
|
932
1034
|
"type": "boolean"
|
|
@@ -934,7 +1036,7 @@
|
|
|
934
1036
|
},
|
|
935
1037
|
"hasDynamicHelp": false,
|
|
936
1038
|
"hiddenAliases": [],
|
|
937
|
-
"id": "
|
|
1039
|
+
"id": "test:history",
|
|
938
1040
|
"pluginAlias": "@memberjunction/cli",
|
|
939
1041
|
"pluginName": "@memberjunction/cli",
|
|
940
1042
|
"pluginType": "core",
|
|
@@ -944,21 +1046,26 @@
|
|
|
944
1046
|
"relativePath": [
|
|
945
1047
|
"dist",
|
|
946
1048
|
"commands",
|
|
947
|
-
"
|
|
948
|
-
"
|
|
1049
|
+
"test",
|
|
1050
|
+
"history.js"
|
|
949
1051
|
]
|
|
950
1052
|
},
|
|
951
|
-
"
|
|
1053
|
+
"test": {
|
|
952
1054
|
"aliases": [],
|
|
953
1055
|
"args": {},
|
|
954
|
-
"description": "
|
|
1056
|
+
"description": "MemberJunction Testing Framework - Execute and manage tests",
|
|
955
1057
|
"examples": [
|
|
956
|
-
"<%= 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"
|
|
957
1064
|
],
|
|
958
1065
|
"flags": {},
|
|
959
1066
|
"hasDynamicHelp": false,
|
|
960
1067
|
"hiddenAliases": [],
|
|
961
|
-
"id": "
|
|
1068
|
+
"id": "test",
|
|
962
1069
|
"pluginAlias": "@memberjunction/cli",
|
|
963
1070
|
"pluginName": "@memberjunction/cli",
|
|
964
1071
|
"pluginType": "core",
|
|
@@ -968,127 +1075,91 @@
|
|
|
968
1075
|
"relativePath": [
|
|
969
1076
|
"dist",
|
|
970
1077
|
"commands",
|
|
971
|
-
"
|
|
972
|
-
"
|
|
1078
|
+
"test",
|
|
1079
|
+
"index.js"
|
|
973
1080
|
]
|
|
974
1081
|
},
|
|
975
|
-
"
|
|
1082
|
+
"test:list": {
|
|
976
1083
|
"aliases": [],
|
|
977
1084
|
"args": {},
|
|
978
|
-
"description": "
|
|
1085
|
+
"description": "List available tests, suites, and types",
|
|
979
1086
|
"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 %> --
|
|
1087
|
+
"<%= 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"
|
|
986
1093
|
],
|
|
987
1094
|
"flags": {
|
|
988
|
-
"
|
|
989
|
-
"description": "
|
|
990
|
-
"name": "
|
|
991
|
-
"required": true,
|
|
992
|
-
"hasDynamicHelp": false,
|
|
993
|
-
"multiple": false,
|
|
994
|
-
"type": "option"
|
|
995
|
-
},
|
|
996
|
-
"filter": {
|
|
997
|
-
"description": "Additional filter for pulling specific records",
|
|
998
|
-
"name": "filter",
|
|
999
|
-
"hasDynamicHelp": false,
|
|
1000
|
-
"multiple": false,
|
|
1001
|
-
"type": "option"
|
|
1002
|
-
},
|
|
1003
|
-
"dry-run": {
|
|
1004
|
-
"description": "Show what would be pulled without actually pulling",
|
|
1005
|
-
"name": "dry-run",
|
|
1006
|
-
"allowNo": false,
|
|
1007
|
-
"type": "boolean"
|
|
1008
|
-
},
|
|
1009
|
-
"multi-file": {
|
|
1010
|
-
"description": "Create a single file with multiple records (provide filename)",
|
|
1011
|
-
"name": "multi-file",
|
|
1012
|
-
"hasDynamicHelp": false,
|
|
1013
|
-
"multiple": false,
|
|
1014
|
-
"type": "option"
|
|
1015
|
-
},
|
|
1016
|
-
"verbose": {
|
|
1017
|
-
"char": "v",
|
|
1018
|
-
"description": "Show detailed output",
|
|
1019
|
-
"name": "verbose",
|
|
1020
|
-
"allowNo": false,
|
|
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",
|
|
1095
|
+
"suites": {
|
|
1096
|
+
"description": "List test suites instead of tests",
|
|
1097
|
+
"name": "suites",
|
|
1038
1098
|
"allowNo": false,
|
|
1039
1099
|
"type": "boolean"
|
|
1040
1100
|
},
|
|
1041
|
-
"
|
|
1042
|
-
"description": "
|
|
1043
|
-
"name": "
|
|
1101
|
+
"types": {
|
|
1102
|
+
"description": "List test types",
|
|
1103
|
+
"name": "types",
|
|
1044
1104
|
"allowNo": false,
|
|
1045
1105
|
"type": "boolean"
|
|
1046
1106
|
},
|
|
1047
|
-
"
|
|
1048
|
-
"
|
|
1049
|
-
"
|
|
1050
|
-
"
|
|
1107
|
+
"type": {
|
|
1108
|
+
"char": "t",
|
|
1109
|
+
"description": "Filter by test type",
|
|
1110
|
+
"name": "type",
|
|
1051
1111
|
"hasDynamicHelp": false,
|
|
1052
1112
|
"multiple": false,
|
|
1053
|
-
"options": [
|
|
1054
|
-
"merge",
|
|
1055
|
-
"overwrite",
|
|
1056
|
-
"skip"
|
|
1057
|
-
],
|
|
1058
1113
|
"type": "option"
|
|
1059
1114
|
},
|
|
1060
|
-
"
|
|
1061
|
-
"description": "
|
|
1062
|
-
"name": "
|
|
1115
|
+
"tag": {
|
|
1116
|
+
"description": "Filter by tag",
|
|
1117
|
+
"name": "tag",
|
|
1063
1118
|
"hasDynamicHelp": false,
|
|
1064
1119
|
"multiple": false,
|
|
1065
1120
|
"type": "option"
|
|
1066
1121
|
},
|
|
1067
|
-
"
|
|
1068
|
-
"
|
|
1069
|
-
"
|
|
1122
|
+
"status": {
|
|
1123
|
+
"char": "s",
|
|
1124
|
+
"description": "Filter by status",
|
|
1125
|
+
"name": "status",
|
|
1070
1126
|
"hasDynamicHelp": false,
|
|
1071
|
-
"multiple":
|
|
1127
|
+
"multiple": false,
|
|
1072
1128
|
"type": "option"
|
|
1073
1129
|
},
|
|
1074
|
-
"
|
|
1075
|
-
"
|
|
1076
|
-
"
|
|
1130
|
+
"format": {
|
|
1131
|
+
"char": "f",
|
|
1132
|
+
"description": "Output format",
|
|
1133
|
+
"name": "format",
|
|
1134
|
+
"default": "console",
|
|
1077
1135
|
"hasDynamicHelp": false,
|
|
1078
|
-
"multiple":
|
|
1136
|
+
"multiple": false,
|
|
1137
|
+
"options": [
|
|
1138
|
+
"console",
|
|
1139
|
+
"json",
|
|
1140
|
+
"markdown"
|
|
1141
|
+
],
|
|
1079
1142
|
"type": "option"
|
|
1080
1143
|
},
|
|
1081
|
-
"
|
|
1082
|
-
"
|
|
1083
|
-
"
|
|
1144
|
+
"output": {
|
|
1145
|
+
"char": "o",
|
|
1146
|
+
"description": "Output file path",
|
|
1147
|
+
"name": "output",
|
|
1084
1148
|
"hasDynamicHelp": false,
|
|
1085
1149
|
"multiple": false,
|
|
1086
1150
|
"type": "option"
|
|
1151
|
+
},
|
|
1152
|
+
"verbose": {
|
|
1153
|
+
"char": "v",
|
|
1154
|
+
"description": "Show detailed information",
|
|
1155
|
+
"name": "verbose",
|
|
1156
|
+
"allowNo": false,
|
|
1157
|
+
"type": "boolean"
|
|
1087
1158
|
}
|
|
1088
1159
|
},
|
|
1089
1160
|
"hasDynamicHelp": false,
|
|
1090
1161
|
"hiddenAliases": [],
|
|
1091
|
-
"id": "
|
|
1162
|
+
"id": "test:list",
|
|
1092
1163
|
"pluginAlias": "@memberjunction/cli",
|
|
1093
1164
|
"pluginName": "@memberjunction/cli",
|
|
1094
1165
|
"pluginType": "core",
|
|
@@ -1098,79 +1169,83 @@
|
|
|
1098
1169
|
"relativePath": [
|
|
1099
1170
|
"dist",
|
|
1100
1171
|
"commands",
|
|
1101
|
-
"
|
|
1102
|
-
"
|
|
1172
|
+
"test",
|
|
1173
|
+
"list.js"
|
|
1103
1174
|
]
|
|
1104
1175
|
},
|
|
1105
|
-
"
|
|
1176
|
+
"test:run": {
|
|
1106
1177
|
"aliases": [],
|
|
1107
|
-
"args": {
|
|
1108
|
-
|
|
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",
|
|
1109
1186
|
"examples": [
|
|
1110
|
-
"<%= config.bin %> <%= command.id %>",
|
|
1111
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1112
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1113
|
-
"<%= config.bin %> <%= command.id %> --
|
|
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"
|
|
1114
1192
|
],
|
|
1115
1193
|
"flags": {
|
|
1116
|
-
"
|
|
1117
|
-
"
|
|
1118
|
-
"
|
|
1194
|
+
"name": {
|
|
1195
|
+
"char": "n",
|
|
1196
|
+
"description": "Test name to execute",
|
|
1197
|
+
"name": "name",
|
|
1119
1198
|
"hasDynamicHelp": false,
|
|
1120
1199
|
"multiple": false,
|
|
1121
1200
|
"type": "option"
|
|
1122
1201
|
},
|
|
1123
|
-
"
|
|
1124
|
-
"
|
|
1125
|
-
"
|
|
1126
|
-
"
|
|
1127
|
-
"type": "boolean"
|
|
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,
|
|
1202
|
+
"environment": {
|
|
1203
|
+
"char": "e",
|
|
1204
|
+
"description": "Environment context (dev, staging, prod)",
|
|
1205
|
+
"name": "environment",
|
|
1152
1206
|
"hasDynamicHelp": false,
|
|
1153
1207
|
"multiple": false,
|
|
1154
1208
|
"type": "option"
|
|
1155
1209
|
},
|
|
1156
|
-
"
|
|
1157
|
-
"
|
|
1158
|
-
"
|
|
1210
|
+
"format": {
|
|
1211
|
+
"char": "f",
|
|
1212
|
+
"description": "Output format",
|
|
1213
|
+
"name": "format",
|
|
1214
|
+
"default": "console",
|
|
1159
1215
|
"hasDynamicHelp": false,
|
|
1160
1216
|
"multiple": false,
|
|
1217
|
+
"options": [
|
|
1218
|
+
"console",
|
|
1219
|
+
"json",
|
|
1220
|
+
"markdown"
|
|
1221
|
+
],
|
|
1161
1222
|
"type": "option"
|
|
1162
1223
|
},
|
|
1163
|
-
"
|
|
1164
|
-
"
|
|
1165
|
-
"
|
|
1224
|
+
"output": {
|
|
1225
|
+
"char": "o",
|
|
1226
|
+
"description": "Output file path",
|
|
1227
|
+
"name": "output",
|
|
1166
1228
|
"hasDynamicHelp": false,
|
|
1167
1229
|
"multiple": false,
|
|
1168
1230
|
"type": "option"
|
|
1231
|
+
},
|
|
1232
|
+
"dry-run": {
|
|
1233
|
+
"description": "Validate without executing",
|
|
1234
|
+
"name": "dry-run",
|
|
1235
|
+
"allowNo": false,
|
|
1236
|
+
"type": "boolean"
|
|
1237
|
+
},
|
|
1238
|
+
"verbose": {
|
|
1239
|
+
"char": "v",
|
|
1240
|
+
"description": "Show detailed execution information",
|
|
1241
|
+
"name": "verbose",
|
|
1242
|
+
"allowNo": false,
|
|
1243
|
+
"type": "boolean"
|
|
1169
1244
|
}
|
|
1170
1245
|
},
|
|
1171
1246
|
"hasDynamicHelp": false,
|
|
1172
1247
|
"hiddenAliases": [],
|
|
1173
|
-
"id": "
|
|
1248
|
+
"id": "test:run",
|
|
1174
1249
|
"pluginAlias": "@memberjunction/cli",
|
|
1175
1250
|
"pluginName": "@memberjunction/cli",
|
|
1176
1251
|
"pluginType": "core",
|
|
@@ -1180,52 +1255,68 @@
|
|
|
1180
1255
|
"relativePath": [
|
|
1181
1256
|
"dist",
|
|
1182
1257
|
"commands",
|
|
1183
|
-
"
|
|
1184
|
-
"
|
|
1258
|
+
"test",
|
|
1259
|
+
"run.js"
|
|
1185
1260
|
]
|
|
1186
1261
|
},
|
|
1187
|
-
"
|
|
1262
|
+
"test:suite": {
|
|
1188
1263
|
"aliases": [],
|
|
1189
|
-
"args": {
|
|
1190
|
-
|
|
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",
|
|
1191
1272
|
"examples": [
|
|
1192
|
-
"<%= config.bin %> <%= command.id %>",
|
|
1193
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1194
|
-
"<%= config.bin %> <%= command.id %> --
|
|
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"
|
|
1195
1277
|
],
|
|
1196
1278
|
"flags": {
|
|
1197
|
-
"
|
|
1198
|
-
"
|
|
1199
|
-
"
|
|
1279
|
+
"name": {
|
|
1280
|
+
"char": "n",
|
|
1281
|
+
"description": "Test suite name to execute",
|
|
1282
|
+
"name": "name",
|
|
1200
1283
|
"hasDynamicHelp": false,
|
|
1201
1284
|
"multiple": false,
|
|
1202
1285
|
"type": "option"
|
|
1203
1286
|
},
|
|
1204
|
-
"
|
|
1205
|
-
"char": "
|
|
1206
|
-
"description": "
|
|
1207
|
-
"name": "
|
|
1208
|
-
"
|
|
1209
|
-
"type": "boolean"
|
|
1210
|
-
},
|
|
1211
|
-
"include": {
|
|
1212
|
-
"description": "Only process these directories (comma-separated, supports patterns)",
|
|
1213
|
-
"name": "include",
|
|
1287
|
+
"format": {
|
|
1288
|
+
"char": "f",
|
|
1289
|
+
"description": "Output format",
|
|
1290
|
+
"name": "format",
|
|
1291
|
+
"default": "console",
|
|
1214
1292
|
"hasDynamicHelp": false,
|
|
1215
1293
|
"multiple": false,
|
|
1294
|
+
"options": [
|
|
1295
|
+
"console",
|
|
1296
|
+
"json",
|
|
1297
|
+
"markdown"
|
|
1298
|
+
],
|
|
1216
1299
|
"type": "option"
|
|
1217
1300
|
},
|
|
1218
|
-
"
|
|
1219
|
-
"
|
|
1220
|
-
"
|
|
1301
|
+
"output": {
|
|
1302
|
+
"char": "o",
|
|
1303
|
+
"description": "Output file path",
|
|
1304
|
+
"name": "output",
|
|
1221
1305
|
"hasDynamicHelp": false,
|
|
1222
1306
|
"multiple": false,
|
|
1223
1307
|
"type": "option"
|
|
1308
|
+
},
|
|
1309
|
+
"verbose": {
|
|
1310
|
+
"char": "v",
|
|
1311
|
+
"description": "Show detailed execution information",
|
|
1312
|
+
"name": "verbose",
|
|
1313
|
+
"allowNo": false,
|
|
1314
|
+
"type": "boolean"
|
|
1224
1315
|
}
|
|
1225
1316
|
},
|
|
1226
1317
|
"hasDynamicHelp": false,
|
|
1227
1318
|
"hiddenAliases": [],
|
|
1228
|
-
"id": "
|
|
1319
|
+
"id": "test:suite",
|
|
1229
1320
|
"pluginAlias": "@memberjunction/cli",
|
|
1230
1321
|
"pluginName": "@memberjunction/cli",
|
|
1231
1322
|
"pluginType": "core",
|
|
@@ -1235,52 +1326,82 @@
|
|
|
1235
1326
|
"relativePath": [
|
|
1236
1327
|
"dist",
|
|
1237
1328
|
"commands",
|
|
1238
|
-
"
|
|
1239
|
-
"
|
|
1329
|
+
"test",
|
|
1330
|
+
"suite.js"
|
|
1240
1331
|
]
|
|
1241
1332
|
},
|
|
1242
|
-
"
|
|
1333
|
+
"test:validate": {
|
|
1243
1334
|
"aliases": [],
|
|
1244
|
-
"args": {
|
|
1245
|
-
|
|
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",
|
|
1246
1343
|
"examples": [
|
|
1247
|
-
"<%= config.bin %> <%= command.id %>",
|
|
1248
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1249
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1250
|
-
"<%= 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"
|
|
1251
1349
|
],
|
|
1252
1350
|
"flags": {
|
|
1253
|
-
"
|
|
1254
|
-
"
|
|
1255
|
-
"
|
|
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",
|
|
1256
1362
|
"hasDynamicHelp": false,
|
|
1257
1363
|
"multiple": false,
|
|
1258
1364
|
"type": "option"
|
|
1259
1365
|
},
|
|
1260
|
-
"verbose": {
|
|
1261
|
-
"char": "v",
|
|
1262
|
-
"description": "Show detailed validation output",
|
|
1263
|
-
"name": "verbose",
|
|
1264
|
-
"allowNo": false,
|
|
1265
|
-
"type": "boolean"
|
|
1266
|
-
},
|
|
1267
1366
|
"save-report": {
|
|
1268
|
-
"description": "Save validation report
|
|
1367
|
+
"description": "Save validation report to file",
|
|
1269
1368
|
"name": "save-report",
|
|
1270
1369
|
"allowNo": false,
|
|
1271
1370
|
"type": "boolean"
|
|
1272
1371
|
},
|
|
1372
|
+
"format": {
|
|
1373
|
+
"char": "f",
|
|
1374
|
+
"description": "Output format",
|
|
1375
|
+
"name": "format",
|
|
1376
|
+
"default": "console",
|
|
1377
|
+
"hasDynamicHelp": false,
|
|
1378
|
+
"multiple": false,
|
|
1379
|
+
"options": [
|
|
1380
|
+
"console",
|
|
1381
|
+
"json",
|
|
1382
|
+
"markdown"
|
|
1383
|
+
],
|
|
1384
|
+
"type": "option"
|
|
1385
|
+
},
|
|
1273
1386
|
"output": {
|
|
1274
|
-
"
|
|
1387
|
+
"char": "o",
|
|
1388
|
+
"description": "Output file path",
|
|
1275
1389
|
"name": "output",
|
|
1276
1390
|
"hasDynamicHelp": false,
|
|
1277
1391
|
"multiple": false,
|
|
1278
1392
|
"type": "option"
|
|
1393
|
+
},
|
|
1394
|
+
"verbose": {
|
|
1395
|
+
"char": "v",
|
|
1396
|
+
"description": "Show detailed information",
|
|
1397
|
+
"name": "verbose",
|
|
1398
|
+
"allowNo": false,
|
|
1399
|
+
"type": "boolean"
|
|
1279
1400
|
}
|
|
1280
1401
|
},
|
|
1281
1402
|
"hasDynamicHelp": false,
|
|
1282
1403
|
"hiddenAliases": [],
|
|
1283
|
-
"id": "
|
|
1404
|
+
"id": "test:validate",
|
|
1284
1405
|
"pluginAlias": "@memberjunction/cli",
|
|
1285
1406
|
"pluginName": "@memberjunction/cli",
|
|
1286
1407
|
"pluginType": "core",
|
|
@@ -1290,52 +1411,38 @@
|
|
|
1290
1411
|
"relativePath": [
|
|
1291
1412
|
"dist",
|
|
1292
1413
|
"commands",
|
|
1293
|
-
"
|
|
1414
|
+
"test",
|
|
1294
1415
|
"validate.js"
|
|
1295
1416
|
]
|
|
1296
1417
|
},
|
|
1297
|
-
"
|
|
1418
|
+
"ai:actions:list": {
|
|
1298
1419
|
"aliases": [],
|
|
1299
1420
|
"args": {},
|
|
1300
|
-
"description": "
|
|
1421
|
+
"description": "List available AI actions",
|
|
1301
1422
|
"examples": [
|
|
1302
1423
|
"<%= config.bin %> <%= command.id %>",
|
|
1303
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1304
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1305
|
-
"<%= config.bin %> <%= command.id %> --no-validate"
|
|
1424
|
+
"<%= config.bin %> <%= command.id %> --output=table",
|
|
1425
|
+
"<%= config.bin %> <%= command.id %> --output=json"
|
|
1306
1426
|
],
|
|
1307
1427
|
"flags": {
|
|
1308
|
-
"
|
|
1309
|
-
"
|
|
1310
|
-
"
|
|
1311
|
-
"
|
|
1312
|
-
"
|
|
1313
|
-
"type": "option"
|
|
1314
|
-
},
|
|
1315
|
-
"debounce": {
|
|
1316
|
-
"description": "Debounce delay in milliseconds (default: 500)",
|
|
1317
|
-
"name": "debounce",
|
|
1428
|
+
"output": {
|
|
1429
|
+
"char": "o",
|
|
1430
|
+
"description": "Output format",
|
|
1431
|
+
"name": "output",
|
|
1432
|
+
"default": "compact",
|
|
1318
1433
|
"hasDynamicHelp": false,
|
|
1319
1434
|
"multiple": false,
|
|
1435
|
+
"options": [
|
|
1436
|
+
"compact",
|
|
1437
|
+
"json",
|
|
1438
|
+
"table"
|
|
1439
|
+
],
|
|
1320
1440
|
"type": "option"
|
|
1321
|
-
},
|
|
1322
|
-
"no-validate": {
|
|
1323
|
-
"description": "Skip validation before sync",
|
|
1324
|
-
"name": "no-validate",
|
|
1325
|
-
"allowNo": false,
|
|
1326
|
-
"type": "boolean"
|
|
1327
|
-
},
|
|
1328
|
-
"verbose": {
|
|
1329
|
-
"char": "v",
|
|
1330
|
-
"description": "Show detailed output",
|
|
1331
|
-
"name": "verbose",
|
|
1332
|
-
"allowNo": false,
|
|
1333
|
-
"type": "boolean"
|
|
1334
1441
|
}
|
|
1335
1442
|
},
|
|
1336
1443
|
"hasDynamicHelp": false,
|
|
1337
1444
|
"hiddenAliases": [],
|
|
1338
|
-
"id": "
|
|
1445
|
+
"id": "ai:actions:list",
|
|
1339
1446
|
"pluginAlias": "@memberjunction/cli",
|
|
1340
1447
|
"pluginName": "@memberjunction/cli",
|
|
1341
1448
|
"pluginType": "core",
|
|
@@ -1345,86 +1452,78 @@
|
|
|
1345
1452
|
"relativePath": [
|
|
1346
1453
|
"dist",
|
|
1347
1454
|
"commands",
|
|
1348
|
-
"
|
|
1349
|
-
"
|
|
1455
|
+
"ai",
|
|
1456
|
+
"actions",
|
|
1457
|
+
"list.js"
|
|
1350
1458
|
]
|
|
1351
1459
|
},
|
|
1352
|
-
"
|
|
1460
|
+
"ai:actions:run": {
|
|
1353
1461
|
"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",
|
|
1462
|
+
"args": {},
|
|
1463
|
+
"description": "Execute an AI action with parameters",
|
|
1367
1464
|
"examples": [
|
|
1368
|
-
"<%= config.bin %> <%= command.id %>
|
|
1369
|
-
"<%= config.bin %> <%= command.id %>
|
|
1370
|
-
"<%= config.bin %> <%= command.id %>
|
|
1371
|
-
"<%= 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"
|
|
1372
1469
|
],
|
|
1373
1470
|
"flags": {
|
|
1374
|
-
"
|
|
1375
|
-
"char": "
|
|
1376
|
-
"description": "
|
|
1377
|
-
"name": "
|
|
1471
|
+
"name": {
|
|
1472
|
+
"char": "n",
|
|
1473
|
+
"description": "Action name",
|
|
1474
|
+
"name": "name",
|
|
1475
|
+
"required": true,
|
|
1378
1476
|
"hasDynamicHelp": false,
|
|
1379
|
-
"multiple":
|
|
1477
|
+
"multiple": false,
|
|
1380
1478
|
"type": "option"
|
|
1381
1479
|
},
|
|
1382
|
-
"
|
|
1383
|
-
"char": "
|
|
1384
|
-
"description": "
|
|
1385
|
-
"name": "
|
|
1480
|
+
"param": {
|
|
1481
|
+
"char": "p",
|
|
1482
|
+
"description": "Action parameters in key=value format",
|
|
1483
|
+
"name": "param",
|
|
1386
1484
|
"hasDynamicHelp": false,
|
|
1387
1485
|
"multiple": true,
|
|
1388
1486
|
"type": "option"
|
|
1389
1487
|
},
|
|
1390
|
-
"
|
|
1391
|
-
"description": "
|
|
1392
|
-
"name": "
|
|
1488
|
+
"dry-run": {
|
|
1489
|
+
"description": "Validate without executing",
|
|
1490
|
+
"name": "dry-run",
|
|
1393
1491
|
"allowNo": false,
|
|
1394
1492
|
"type": "boolean"
|
|
1395
1493
|
},
|
|
1396
|
-
"
|
|
1397
|
-
"char": "
|
|
1494
|
+
"output": {
|
|
1495
|
+
"char": "o",
|
|
1398
1496
|
"description": "Output format",
|
|
1399
|
-
"name": "
|
|
1400
|
-
"default": "
|
|
1497
|
+
"name": "output",
|
|
1498
|
+
"default": "compact",
|
|
1401
1499
|
"hasDynamicHelp": false,
|
|
1402
1500
|
"multiple": false,
|
|
1403
1501
|
"options": [
|
|
1404
|
-
"
|
|
1502
|
+
"compact",
|
|
1405
1503
|
"json",
|
|
1406
|
-
"
|
|
1504
|
+
"table"
|
|
1407
1505
|
],
|
|
1408
1506
|
"type": "option"
|
|
1409
1507
|
},
|
|
1410
|
-
"output": {
|
|
1411
|
-
"char": "o",
|
|
1412
|
-
"description": "Output file path",
|
|
1413
|
-
"name": "output",
|
|
1414
|
-
"hasDynamicHelp": false,
|
|
1415
|
-
"multiple": false,
|
|
1416
|
-
"type": "option"
|
|
1417
|
-
},
|
|
1418
1508
|
"verbose": {
|
|
1419
|
-
"
|
|
1509
|
+
"char": "v",
|
|
1510
|
+
"description": "Show detailed execution information",
|
|
1420
1511
|
"name": "verbose",
|
|
1421
1512
|
"allowNo": false,
|
|
1422
1513
|
"type": "boolean"
|
|
1514
|
+
},
|
|
1515
|
+
"timeout": {
|
|
1516
|
+
"description": "Execution timeout in milliseconds",
|
|
1517
|
+
"name": "timeout",
|
|
1518
|
+
"default": 300000,
|
|
1519
|
+
"hasDynamicHelp": false,
|
|
1520
|
+
"multiple": false,
|
|
1521
|
+
"type": "option"
|
|
1423
1522
|
}
|
|
1424
1523
|
},
|
|
1425
1524
|
"hasDynamicHelp": false,
|
|
1426
1525
|
"hiddenAliases": [],
|
|
1427
|
-
"id": "
|
|
1526
|
+
"id": "ai:actions:run",
|
|
1428
1527
|
"pluginAlias": "@memberjunction/cli",
|
|
1429
1528
|
"pluginName": "@memberjunction/cli",
|
|
1430
1529
|
"pluginType": "core",
|
|
@@ -1434,86 +1533,38 @@
|
|
|
1434
1533
|
"relativePath": [
|
|
1435
1534
|
"dist",
|
|
1436
1535
|
"commands",
|
|
1437
|
-
"
|
|
1438
|
-
"
|
|
1536
|
+
"ai",
|
|
1537
|
+
"actions",
|
|
1538
|
+
"run.js"
|
|
1439
1539
|
]
|
|
1440
1540
|
},
|
|
1441
|
-
"
|
|
1541
|
+
"migrate": {
|
|
1442
1542
|
"aliases": [],
|
|
1443
1543
|
"args": {},
|
|
1444
|
-
"description": "
|
|
1544
|
+
"description": "Migrate MemberJunction database to latest version",
|
|
1445
1545
|
"examples": [
|
|
1446
|
-
"<%= config.bin %> <%= command.id
|
|
1447
|
-
"<%= config.bin %> <%= command.id %> --test=<test-id>",
|
|
1448
|
-
"<%= config.bin %> <%= command.id %> --suite=<suite-id>",
|
|
1449
|
-
"<%= config.bin %> <%= command.id %> --since=\"2024-01-01\"",
|
|
1450
|
-
"<%= config.bin %> <%= command.id %> --limit=50"
|
|
1546
|
+
"<%= config.bin %> <%= command.id %>\n"
|
|
1451
1547
|
],
|
|
1452
1548
|
"flags": {
|
|
1453
|
-
"test": {
|
|
1454
|
-
"char": "t",
|
|
1455
|
-
"description": "Filter by test ID",
|
|
1456
|
-
"name": "test",
|
|
1457
|
-
"hasDynamicHelp": false,
|
|
1458
|
-
"multiple": false,
|
|
1459
|
-
"type": "option"
|
|
1460
|
-
},
|
|
1461
|
-
"recent": {
|
|
1462
|
-
"char": "r",
|
|
1463
|
-
"description": "Number of recent runs to show",
|
|
1464
|
-
"name": "recent",
|
|
1465
|
-
"hasDynamicHelp": false,
|
|
1466
|
-
"multiple": false,
|
|
1467
|
-
"type": "option"
|
|
1468
|
-
},
|
|
1469
|
-
"from": {
|
|
1470
|
-
"description": "Show history from date (YYYY-MM-DD)",
|
|
1471
|
-
"name": "from",
|
|
1472
|
-
"hasDynamicHelp": false,
|
|
1473
|
-
"multiple": false,
|
|
1474
|
-
"type": "option"
|
|
1475
|
-
},
|
|
1476
|
-
"status": {
|
|
1477
|
-
"char": "s",
|
|
1478
|
-
"description": "Filter by status",
|
|
1479
|
-
"name": "status",
|
|
1480
|
-
"hasDynamicHelp": false,
|
|
1481
|
-
"multiple": false,
|
|
1482
|
-
"type": "option"
|
|
1483
|
-
},
|
|
1484
|
-
"format": {
|
|
1485
|
-
"char": "f",
|
|
1486
|
-
"description": "Output format",
|
|
1487
|
-
"name": "format",
|
|
1488
|
-
"default": "console",
|
|
1489
|
-
"hasDynamicHelp": false,
|
|
1490
|
-
"multiple": false,
|
|
1491
|
-
"options": [
|
|
1492
|
-
"console",
|
|
1493
|
-
"json",
|
|
1494
|
-
"markdown"
|
|
1495
|
-
],
|
|
1496
|
-
"type": "option"
|
|
1497
|
-
},
|
|
1498
|
-
"output": {
|
|
1499
|
-
"char": "o",
|
|
1500
|
-
"description": "Output file path",
|
|
1501
|
-
"name": "output",
|
|
1502
|
-
"hasDynamicHelp": false,
|
|
1503
|
-
"multiple": false,
|
|
1504
|
-
"type": "option"
|
|
1505
|
-
},
|
|
1506
1549
|
"verbose": {
|
|
1507
1550
|
"char": "v",
|
|
1508
|
-
"description": "
|
|
1551
|
+
"description": "Enable additional logging",
|
|
1509
1552
|
"name": "verbose",
|
|
1510
1553
|
"allowNo": false,
|
|
1511
1554
|
"type": "boolean"
|
|
1555
|
+
},
|
|
1556
|
+
"tag": {
|
|
1557
|
+
"char": "t",
|
|
1558
|
+
"description": "Version tag to use for running remote migrations",
|
|
1559
|
+
"name": "tag",
|
|
1560
|
+
"hasDynamicHelp": false,
|
|
1561
|
+
"multiple": false,
|
|
1562
|
+
"type": "option"
|
|
1512
1563
|
}
|
|
1513
1564
|
},
|
|
1514
1565
|
"hasDynamicHelp": false,
|
|
1515
1566
|
"hiddenAliases": [],
|
|
1516
|
-
"id": "
|
|
1567
|
+
"id": "migrate",
|
|
1517
1568
|
"pluginAlias": "@memberjunction/cli",
|
|
1518
1569
|
"pluginName": "@memberjunction/cli",
|
|
1519
1570
|
"pluginType": "core",
|
|
@@ -1523,26 +1574,42 @@
|
|
|
1523
1574
|
"relativePath": [
|
|
1524
1575
|
"dist",
|
|
1525
1576
|
"commands",
|
|
1526
|
-
"
|
|
1527
|
-
"
|
|
1577
|
+
"migrate",
|
|
1578
|
+
"index.js"
|
|
1528
1579
|
]
|
|
1529
1580
|
},
|
|
1530
|
-
"
|
|
1581
|
+
"dbdoc:analyze": {
|
|
1531
1582
|
"aliases": [],
|
|
1532
1583
|
"args": {},
|
|
1533
|
-
"description": "
|
|
1584
|
+
"description": "Analyze database and generate documentation (delegates to db-auto-doc analyze)",
|
|
1534
1585
|
"examples": [
|
|
1535
|
-
"<%= config.bin %> <%= command.id %>
|
|
1536
|
-
"<%= config.bin %> <%= command.id %>
|
|
1537
|
-
"<%= config.bin %> <%= command.id %>
|
|
1538
|
-
"<%= config.bin %> <%= command.id %> list",
|
|
1539
|
-
"<%= config.bin %> <%= command.id %> list --suites",
|
|
1540
|
-
"<%= config.bin %> <%= command.id %> validate --all"
|
|
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"
|
|
1541
1589
|
],
|
|
1542
|
-
"flags": {
|
|
1590
|
+
"flags": {
|
|
1591
|
+
"resume": {
|
|
1592
|
+
"char": "r",
|
|
1593
|
+
"description": "Resume from an existing state file",
|
|
1594
|
+
"name": "resume",
|
|
1595
|
+
"required": false,
|
|
1596
|
+
"hasDynamicHelp": false,
|
|
1597
|
+
"multiple": false,
|
|
1598
|
+
"type": "option"
|
|
1599
|
+
},
|
|
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"
|
|
1608
|
+
}
|
|
1609
|
+
},
|
|
1543
1610
|
"hasDynamicHelp": false,
|
|
1544
1611
|
"hiddenAliases": [],
|
|
1545
|
-
"id": "
|
|
1612
|
+
"id": "dbdoc:analyze",
|
|
1546
1613
|
"pluginAlias": "@memberjunction/cli",
|
|
1547
1614
|
"pluginName": "@memberjunction/cli",
|
|
1548
1615
|
"pluginType": "core",
|
|
@@ -1552,91 +1619,208 @@
|
|
|
1552
1619
|
"relativePath": [
|
|
1553
1620
|
"dist",
|
|
1554
1621
|
"commands",
|
|
1555
|
-
"
|
|
1556
|
-
"
|
|
1622
|
+
"dbdoc",
|
|
1623
|
+
"analyze.js"
|
|
1557
1624
|
]
|
|
1558
1625
|
},
|
|
1559
|
-
"
|
|
1626
|
+
"dbdoc:export-sample-queries": {
|
|
1560
1627
|
"aliases": [],
|
|
1561
1628
|
"args": {},
|
|
1562
|
-
"description": "
|
|
1629
|
+
"description": "Export sample queries to MemberJunction metadata format (delegates to db-auto-doc export-sample-queries)",
|
|
1563
1630
|
"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 %> --tag=smoke",
|
|
1569
|
-
"<%= config.bin %> <%= command.id %> --status=active --verbose"
|
|
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"
|
|
1570
1635
|
],
|
|
1571
1636
|
"flags": {
|
|
1572
|
-
"
|
|
1573
|
-
"
|
|
1574
|
-
"
|
|
1575
|
-
"
|
|
1576
|
-
"
|
|
1637
|
+
"input": {
|
|
1638
|
+
"char": "i",
|
|
1639
|
+
"description": "Path to sample-queries.json file generated by generate-queries command",
|
|
1640
|
+
"name": "input",
|
|
1641
|
+
"required": true,
|
|
1642
|
+
"hasDynamicHelp": false,
|
|
1643
|
+
"multiple": false,
|
|
1644
|
+
"type": "option"
|
|
1577
1645
|
},
|
|
1578
|
-
"
|
|
1579
|
-
"
|
|
1580
|
-
"
|
|
1646
|
+
"output": {
|
|
1647
|
+
"char": "o",
|
|
1648
|
+
"description": "Output path for the .queries.json metadata file",
|
|
1649
|
+
"name": "output",
|
|
1650
|
+
"required": true,
|
|
1651
|
+
"hasDynamicHelp": false,
|
|
1652
|
+
"multiple": false,
|
|
1653
|
+
"type": "option"
|
|
1654
|
+
},
|
|
1655
|
+
"separate-sql-files": {
|
|
1656
|
+
"description": "Write SQL to separate files and use @file: references",
|
|
1657
|
+
"name": "separate-sql-files",
|
|
1581
1658
|
"allowNo": false,
|
|
1582
1659
|
"type": "boolean"
|
|
1583
1660
|
},
|
|
1584
|
-
"
|
|
1585
|
-
"
|
|
1586
|
-
"
|
|
1587
|
-
"
|
|
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",
|
|
1588
1665
|
"hasDynamicHelp": false,
|
|
1589
1666
|
"multiple": false,
|
|
1590
1667
|
"type": "option"
|
|
1591
1668
|
},
|
|
1592
|
-
"
|
|
1593
|
-
"description": "
|
|
1594
|
-
"name": "
|
|
1669
|
+
"category": {
|
|
1670
|
+
"description": "Category name for @lookup reference (e.g., \"Database Documentation\")",
|
|
1671
|
+
"name": "category",
|
|
1672
|
+
"required": false,
|
|
1595
1673
|
"hasDynamicHelp": false,
|
|
1596
1674
|
"multiple": false,
|
|
1597
1675
|
"type": "option"
|
|
1598
1676
|
},
|
|
1599
1677
|
"status": {
|
|
1600
|
-
"
|
|
1601
|
-
"description": "Filter by status",
|
|
1678
|
+
"description": "Status to assign to exported queries",
|
|
1602
1679
|
"name": "status",
|
|
1680
|
+
"default": "Pending",
|
|
1603
1681
|
"hasDynamicHelp": false,
|
|
1604
1682
|
"multiple": false,
|
|
1683
|
+
"options": [
|
|
1684
|
+
"Approved",
|
|
1685
|
+
"Pending",
|
|
1686
|
+
"Rejected",
|
|
1687
|
+
"Expired"
|
|
1688
|
+
],
|
|
1605
1689
|
"type": "option"
|
|
1606
1690
|
},
|
|
1607
|
-
"
|
|
1608
|
-
"
|
|
1609
|
-
"
|
|
1610
|
-
"
|
|
1611
|
-
"default": "console",
|
|
1691
|
+
"min-confidence": {
|
|
1692
|
+
"description": "Minimum confidence threshold to export (0-1)",
|
|
1693
|
+
"name": "min-confidence",
|
|
1694
|
+
"default": "0",
|
|
1612
1695
|
"hasDynamicHelp": false,
|
|
1613
1696
|
"multiple": false,
|
|
1614
|
-
"options": [
|
|
1615
|
-
"console",
|
|
1616
|
-
"json",
|
|
1617
|
-
"markdown"
|
|
1618
|
-
],
|
|
1619
1697
|
"type": "option"
|
|
1620
1698
|
},
|
|
1621
|
-
"
|
|
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",
|
|
1714
|
+
"allowNo": false,
|
|
1715
|
+
"type": "boolean"
|
|
1716
|
+
}
|
|
1717
|
+
},
|
|
1718
|
+
"hasDynamicHelp": false,
|
|
1719
|
+
"hiddenAliases": [],
|
|
1720
|
+
"id": "dbdoc:export-sample-queries",
|
|
1721
|
+
"pluginAlias": "@memberjunction/cli",
|
|
1722
|
+
"pluginName": "@memberjunction/cli",
|
|
1723
|
+
"pluginType": "core",
|
|
1724
|
+
"strict": true,
|
|
1725
|
+
"enableJsonFlag": false,
|
|
1726
|
+
"isESM": false,
|
|
1727
|
+
"relativePath": [
|
|
1728
|
+
"dist",
|
|
1729
|
+
"commands",
|
|
1730
|
+
"dbdoc",
|
|
1731
|
+
"export-sample-queries.js"
|
|
1732
|
+
]
|
|
1733
|
+
},
|
|
1734
|
+
"dbdoc:export": {
|
|
1735
|
+
"aliases": [],
|
|
1736
|
+
"args": {},
|
|
1737
|
+
"description": "Export documentation in multiple formats (delegates to db-auto-doc export)",
|
|
1738
|
+
"examples": [
|
|
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"
|
|
1746
|
+
],
|
|
1747
|
+
"flags": {
|
|
1748
|
+
"state-file": {
|
|
1749
|
+
"char": "s",
|
|
1750
|
+
"description": "Path to state JSON file",
|
|
1751
|
+
"name": "state-file",
|
|
1752
|
+
"hasDynamicHelp": false,
|
|
1753
|
+
"multiple": false,
|
|
1754
|
+
"type": "option"
|
|
1755
|
+
},
|
|
1756
|
+
"output-dir": {
|
|
1622
1757
|
"char": "o",
|
|
1623
|
-
"description": "Output
|
|
1624
|
-
"name": "output",
|
|
1758
|
+
"description": "Output directory for generated files",
|
|
1759
|
+
"name": "output-dir",
|
|
1625
1760
|
"hasDynamicHelp": false,
|
|
1626
1761
|
"multiple": false,
|
|
1627
1762
|
"type": "option"
|
|
1628
1763
|
},
|
|
1629
|
-
"
|
|
1630
|
-
"
|
|
1631
|
-
"
|
|
1632
|
-
"name": "verbose",
|
|
1764
|
+
"sql": {
|
|
1765
|
+
"description": "Generate SQL script",
|
|
1766
|
+
"name": "sql",
|
|
1633
1767
|
"allowNo": false,
|
|
1634
1768
|
"type": "boolean"
|
|
1769
|
+
},
|
|
1770
|
+
"markdown": {
|
|
1771
|
+
"description": "Generate Markdown documentation",
|
|
1772
|
+
"name": "markdown",
|
|
1773
|
+
"allowNo": false,
|
|
1774
|
+
"type": "boolean"
|
|
1775
|
+
},
|
|
1776
|
+
"html": {
|
|
1777
|
+
"description": "Generate interactive HTML documentation",
|
|
1778
|
+
"name": "html",
|
|
1779
|
+
"allowNo": false,
|
|
1780
|
+
"type": "boolean"
|
|
1781
|
+
},
|
|
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",
|
|
1803
|
+
"allowNo": false,
|
|
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
|
}
|