@memberjunction/cli 3.4.0 → 4.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.
Files changed (184) hide show
  1. package/bin/dev.cmd +2 -2
  2. package/bin/dev.js +5 -6
  3. package/bin/run.cmd +3 -3
  4. package/bin/run.js +14 -5
  5. package/dist/commands/ai/actions/list.d.ts +1 -0
  6. package/dist/commands/ai/actions/list.d.ts.map +1 -0
  7. package/dist/commands/ai/actions/list.js +14 -19
  8. package/dist/commands/ai/actions/list.js.map +1 -0
  9. package/dist/commands/ai/actions/run.d.ts +2 -1
  10. package/dist/commands/ai/actions/run.d.ts.map +1 -0
  11. package/dist/commands/ai/actions/run.js +24 -29
  12. package/dist/commands/ai/actions/run.js.map +1 -0
  13. package/dist/commands/ai/agents/list.d.ts +1 -0
  14. package/dist/commands/ai/agents/list.d.ts.map +1 -0
  15. package/dist/commands/ai/agents/list.js +14 -19
  16. package/dist/commands/ai/agents/list.js.map +1 -0
  17. package/dist/commands/ai/agents/run.d.ts +2 -1
  18. package/dist/commands/ai/agents/run.d.ts.map +1 -0
  19. package/dist/commands/ai/agents/run.js +20 -25
  20. package/dist/commands/ai/agents/run.js.map +1 -0
  21. package/dist/commands/ai/audit/agent-run.d.ts +7 -6
  22. package/dist/commands/ai/audit/agent-run.d.ts.map +1 -0
  23. package/dist/commands/ai/audit/agent-run.js +35 -63
  24. package/dist/commands/ai/audit/agent-run.js.map +1 -0
  25. package/dist/commands/ai/audit/index.d.ts +1 -0
  26. package/dist/commands/ai/audit/index.d.ts.map +1 -0
  27. package/dist/commands/ai/audit/index.js +5 -7
  28. package/dist/commands/ai/audit/index.js.map +1 -0
  29. package/dist/commands/ai/index.d.ts +1 -0
  30. package/dist/commands/ai/index.d.ts.map +1 -0
  31. package/dist/commands/ai/index.js +5 -7
  32. package/dist/commands/ai/index.js.map +1 -0
  33. package/dist/commands/ai/prompts/list.d.ts +1 -0
  34. package/dist/commands/ai/prompts/list.d.ts.map +1 -0
  35. package/dist/commands/ai/prompts/list.js +18 -23
  36. package/dist/commands/ai/prompts/list.js.map +1 -0
  37. package/dist/commands/ai/prompts/run.d.ts +6 -5
  38. package/dist/commands/ai/prompts/run.d.ts.map +1 -0
  39. package/dist/commands/ai/prompts/run.js +22 -27
  40. package/dist/commands/ai/prompts/run.js.map +1 -0
  41. package/dist/commands/bump/index.d.ts +2 -1
  42. package/dist/commands/bump/index.d.ts.map +1 -0
  43. package/dist/commands/bump/index.js +24 -52
  44. package/dist/commands/bump/index.js.map +1 -0
  45. package/dist/commands/clean/index.d.ts +3 -2
  46. package/dist/commands/clean/index.d.ts.map +1 -0
  47. package/dist/commands/clean/index.js +16 -22
  48. package/dist/commands/clean/index.js.map +1 -0
  49. package/dist/commands/codegen/index.d.ts +3 -2
  50. package/dist/commands/codegen/index.d.ts.map +1 -0
  51. package/dist/commands/codegen/index.js +14 -17
  52. package/dist/commands/codegen/index.js.map +1 -0
  53. package/dist/commands/codegen/manifest.d.ts +5 -2
  54. package/dist/commands/codegen/manifest.d.ts.map +1 -0
  55. package/dist/commands/codegen/manifest.js +35 -24
  56. package/dist/commands/codegen/manifest.js.map +1 -0
  57. package/dist/commands/dbdoc/analyze.d.ts +2 -1
  58. package/dist/commands/dbdoc/analyze.d.ts.map +1 -0
  59. package/dist/commands/dbdoc/analyze.js +11 -36
  60. package/dist/commands/dbdoc/analyze.js.map +1 -0
  61. package/dist/commands/dbdoc/export-sample-queries.d.ts +2 -1
  62. package/dist/commands/dbdoc/export-sample-queries.d.ts.map +1 -0
  63. package/dist/commands/dbdoc/export-sample-queries.js +19 -44
  64. package/dist/commands/dbdoc/export-sample-queries.js.map +1 -0
  65. package/dist/commands/dbdoc/export.d.ts +3 -2
  66. package/dist/commands/dbdoc/export.d.ts.map +1 -0
  67. package/dist/commands/dbdoc/export.js +20 -45
  68. package/dist/commands/dbdoc/export.js.map +1 -0
  69. package/dist/commands/dbdoc/generate-queries.d.ts +4 -3
  70. package/dist/commands/dbdoc/generate-queries.d.ts.map +1 -0
  71. package/dist/commands/dbdoc/generate-queries.js +14 -39
  72. package/dist/commands/dbdoc/generate-queries.js.map +1 -0
  73. package/dist/commands/dbdoc/index.d.ts +1 -0
  74. package/dist/commands/dbdoc/index.d.ts.map +1 -0
  75. package/dist/commands/dbdoc/index.js +5 -7
  76. package/dist/commands/dbdoc/index.js.map +1 -0
  77. package/dist/commands/dbdoc/init.d.ts +1 -0
  78. package/dist/commands/dbdoc/init.d.ts.map +1 -0
  79. package/dist/commands/dbdoc/init.js +7 -32
  80. package/dist/commands/dbdoc/init.js.map +1 -0
  81. package/dist/commands/dbdoc/reset.d.ts +1 -0
  82. package/dist/commands/dbdoc/reset.d.ts.map +1 -0
  83. package/dist/commands/dbdoc/reset.js +10 -35
  84. package/dist/commands/dbdoc/reset.js.map +1 -0
  85. package/dist/commands/dbdoc/review.d.ts +10 -0
  86. package/dist/commands/dbdoc/review.js +81 -0
  87. package/dist/commands/dbdoc/status.d.ts +2 -1
  88. package/dist/commands/dbdoc/status.d.ts.map +1 -0
  89. package/dist/commands/dbdoc/status.js +10 -35
  90. package/dist/commands/dbdoc/status.js.map +1 -0
  91. package/dist/commands/install/index.d.ts +76 -75
  92. package/dist/commands/install/index.d.ts.map +1 -0
  93. package/dist/commands/install/index.js +81 -111
  94. package/dist/commands/install/index.js.map +1 -0
  95. package/dist/commands/migrate/index.d.ts +4 -3
  96. package/dist/commands/migrate/index.d.ts.map +1 -0
  97. package/dist/commands/migrate/index.js +22 -27
  98. package/dist/commands/migrate/index.js.map +1 -0
  99. package/dist/commands/querygen/export.d.ts +1 -0
  100. package/dist/commands/querygen/export.d.ts.map +1 -0
  101. package/dist/commands/querygen/export.js +15 -17
  102. package/dist/commands/querygen/export.js.map +1 -0
  103. package/dist/commands/querygen/generate.d.ts +8 -7
  104. package/dist/commands/querygen/generate.d.ts.map +1 -0
  105. package/dist/commands/querygen/generate.js +28 -30
  106. package/dist/commands/querygen/generate.js.map +1 -0
  107. package/dist/commands/querygen/validate.d.ts +1 -0
  108. package/dist/commands/querygen/validate.d.ts.map +1 -0
  109. package/dist/commands/querygen/validate.js +15 -17
  110. package/dist/commands/querygen/validate.js.map +1 -0
  111. package/dist/commands/sync/file-reset.d.ts +3 -2
  112. package/dist/commands/sync/file-reset.d.ts.map +1 -0
  113. package/dist/commands/sync/file-reset.js +36 -64
  114. package/dist/commands/sync/file-reset.js.map +1 -0
  115. package/dist/commands/sync/init.d.ts +1 -0
  116. package/dist/commands/sync/init.d.ts.map +1 -0
  117. package/dist/commands/sync/init.js +16 -21
  118. package/dist/commands/sync/init.js.map +1 -0
  119. package/dist/commands/sync/pull.d.ts +7 -6
  120. package/dist/commands/sync/pull.d.ts.map +1 -0
  121. package/dist/commands/sync/pull.js +46 -51
  122. package/dist/commands/sync/pull.js.map +1 -0
  123. package/dist/commands/sync/push.d.ts +4 -3
  124. package/dist/commands/sync/push.d.ts.map +1 -0
  125. package/dist/commands/sync/push.js +44 -49
  126. package/dist/commands/sync/push.js.map +1 -0
  127. package/dist/commands/sync/status.d.ts +4 -3
  128. package/dist/commands/sync/status.d.ts.map +1 -0
  129. package/dist/commands/sync/status.js +28 -33
  130. package/dist/commands/sync/status.js.map +1 -0
  131. package/dist/commands/sync/validate.d.ts +3 -2
  132. package/dist/commands/sync/validate.d.ts.map +1 -0
  133. package/dist/commands/sync/validate.js +31 -59
  134. package/dist/commands/sync/validate.js.map +1 -0
  135. package/dist/commands/sync/watch.d.ts +3 -2
  136. package/dist/commands/sync/watch.d.ts.map +1 -0
  137. package/dist/commands/sync/watch.js +34 -63
  138. package/dist/commands/sync/watch.js.map +1 -0
  139. package/dist/commands/test/compare.d.ts +6 -5
  140. package/dist/commands/test/compare.d.ts.map +1 -0
  141. package/dist/commands/test/compare.js +20 -22
  142. package/dist/commands/test/compare.js.map +1 -0
  143. package/dist/commands/test/history.d.ts +6 -5
  144. package/dist/commands/test/history.d.ts.map +1 -0
  145. package/dist/commands/test/history.js +17 -19
  146. package/dist/commands/test/history.js.map +1 -0
  147. package/dist/commands/test/index.d.ts +1 -0
  148. package/dist/commands/test/index.d.ts.map +1 -0
  149. package/dist/commands/test/index.js +6 -8
  150. package/dist/commands/test/index.js.map +1 -0
  151. package/dist/commands/test/list.d.ts +5 -4
  152. package/dist/commands/test/list.d.ts.map +1 -0
  153. package/dist/commands/test/list.js +18 -20
  154. package/dist/commands/test/list.js.map +1 -0
  155. package/dist/commands/test/run.d.ts +5 -4
  156. package/dist/commands/test/run.d.ts.map +1 -0
  157. package/dist/commands/test/run.js +19 -21
  158. package/dist/commands/test/run.js.map +1 -0
  159. package/dist/commands/test/suite.d.ts +4 -3
  160. package/dist/commands/test/suite.d.ts.map +1 -0
  161. package/dist/commands/test/suite.js +17 -19
  162. package/dist/commands/test/suite.js.map +1 -0
  163. package/dist/commands/test/validate.d.ts +4 -3
  164. package/dist/commands/test/validate.d.ts.map +1 -0
  165. package/dist/commands/test/validate.js +19 -21
  166. package/dist/commands/test/validate.js.map +1 -0
  167. package/dist/config.d.ts +53 -85
  168. package/dist/config.d.ts.map +1 -0
  169. package/dist/config.js +54 -61
  170. package/dist/config.js.map +1 -0
  171. package/dist/hooks/init.d.ts +1 -0
  172. package/dist/hooks/init.d.ts.map +1 -0
  173. package/dist/hooks/init.js +5 -29
  174. package/dist/hooks/init.js.map +1 -0
  175. package/dist/hooks/prerun.d.ts +1 -0
  176. package/dist/hooks/prerun.d.ts.map +1 -0
  177. package/dist/hooks/prerun.js +4 -8
  178. package/dist/hooks/prerun.js.map +1 -0
  179. package/dist/index.d.ts +1 -0
  180. package/dist/index.d.ts.map +1 -0
  181. package/dist/index.js +2 -5
  182. package/dist/index.js.map +1 -0
  183. package/package.json +32 -30
  184. package/oclif.manifest.json +0 -2580
@@ -1,2580 +0,0 @@
1
- {
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
- },
25
- "bump": {
26
- "aliases": [],
27
- "args": {},
28
- "description": "Bumps MemberJunction dependency versions",
29
- "examples": [
30
- {
31
- "command": "<%= config.bin %> <%= command.id %>",
32
- "description": "Bump all @memberjunction/* dependencies in the current directory's package.json to the CLI version"
33
- },
34
- {
35
- "command": "<%= config.bin %> <%= command.id %> -rdv",
36
- "description": "Preview all recursive packages bumps without writing any changes."
37
- },
38
- {
39
- "command": "<%= config.bin %> <%= command.id %> -rqt v2.10.0 | xargs -n1 -I{} npm install --prefix {}",
40
- "description": "Recursively bump all @memberjunction/* dependencies in all packages to version v2.10.0 and output only the paths containing the updated package.json files. Pipe the output to xargs to run npm install in each directory and update the package-lock.json files as well."
41
- }
42
- ],
43
- "flags": {
44
- "verbose": {
45
- "char": "v",
46
- "description": "Enable additional logging",
47
- "name": "verbose",
48
- "allowNo": false,
49
- "type": "boolean"
50
- },
51
- "recursive": {
52
- "char": "r",
53
- "description": "Bump version in current directory and all subdirectories",
54
- "name": "recursive",
55
- "allowNo": false,
56
- "type": "boolean"
57
- },
58
- "tag": {
59
- "char": "t",
60
- "description": "Version tag to bump target for bump (e.g. v2.10.0), defaults to the CLI version",
61
- "name": "tag",
62
- "hasDynamicHelp": false,
63
- "multiple": false,
64
- "type": "option"
65
- },
66
- "quiet": {
67
- "char": "q",
68
- "description": "Only output paths for updated packages",
69
- "name": "quiet",
70
- "allowNo": false,
71
- "type": "boolean"
72
- },
73
- "dry": {
74
- "char": "d",
75
- "description": "Dry run, do not write changes to package.json files",
76
- "name": "dry",
77
- "allowNo": false,
78
- "type": "boolean"
79
- }
80
- },
81
- "hasDynamicHelp": false,
82
- "hiddenAliases": [],
83
- "id": "bump",
84
- "pluginAlias": "@memberjunction/cli",
85
- "pluginName": "@memberjunction/cli",
86
- "pluginType": "core",
87
- "strict": true,
88
- "enableJsonFlag": false,
89
- "isESM": false,
90
- "relativePath": [
91
- "dist",
92
- "commands",
93
- "bump",
94
- "index.js"
95
- ]
96
- },
97
- "clean": {
98
- "aliases": [],
99
- "args": {},
100
- "description": "Resets the MemberJunction database to a pre-installation state",
101
- "examples": [
102
- "<%= config.bin %> <%= command.id %>\n"
103
- ],
104
- "flags": {
105
- "verbose": {
106
- "char": "v",
107
- "description": "Enable additional logging",
108
- "name": "verbose",
109
- "allowNo": false,
110
- "type": "boolean"
111
- }
112
- },
113
- "hasDynamicHelp": false,
114
- "hiddenAliases": [],
115
- "id": "clean",
116
- "pluginAlias": "@memberjunction/cli",
117
- "pluginName": "@memberjunction/cli",
118
- "pluginType": "core",
119
- "strict": true,
120
- "enableJsonFlag": false,
121
- "isESM": false,
122
- "relativePath": [
123
- "dist",
124
- "commands",
125
- "clean",
126
- "index.js"
127
- ]
128
- },
129
- "codegen": {
130
- "aliases": [],
131
- "args": {},
132
- "description": "Run CodeGen to generate code and update metadata for MemberJunction",
133
- "examples": [
134
- "<%= config.bin %> <%= command.id %>\n"
135
- ],
136
- "flags": {
137
- "skipdb": {
138
- "description": "Skip database migration",
139
- "name": "skipdb",
140
- "allowNo": false,
141
- "type": "boolean"
142
- }
143
- },
144
- "hasDynamicHelp": false,
145
- "hiddenAliases": [],
146
- "id": "codegen",
147
- "pluginAlias": "@memberjunction/cli",
148
- "pluginName": "@memberjunction/cli",
149
- "pluginType": "core",
150
- "strict": true,
151
- "enableJsonFlag": false,
152
- "isESM": false,
153
- "relativePath": [
154
- "dist",
155
- "commands",
156
- "codegen",
157
- "index.js"
158
- ]
159
- },
160
- "codegen:manifest": {
161
- "aliases": [],
162
- "args": {},
163
- "description": "Generate a class registrations manifest to prevent tree-shaking of @RegisterClass decorated classes",
164
- "examples": [
165
- "<%= config.bin %> <%= command.id %> --output ./src/generated/class-registrations-manifest.ts",
166
- "<%= config.bin %> <%= command.id %> --appDir ./packages/MJAPI --output ./packages/MJAPI/src/generated/class-registrations-manifest.ts",
167
- "<%= config.bin %> <%= command.id %> --filter BaseEngine --filter BaseAction"
168
- ],
169
- "flags": {
170
- "output": {
171
- "char": "o",
172
- "description": "Output manifest file path",
173
- "name": "output",
174
- "default": "./src/generated/class-registrations-manifest.ts",
175
- "hasDynamicHelp": false,
176
- "multiple": false,
177
- "type": "option"
178
- },
179
- "appDir": {
180
- "char": "a",
181
- "description": "App directory containing package.json (defaults to current directory)",
182
- "name": "appDir",
183
- "hasDynamicHelp": false,
184
- "multiple": false,
185
- "type": "option"
186
- },
187
- "filter": {
188
- "char": "f",
189
- "description": "Only include classes with this base class (can be repeated)",
190
- "name": "filter",
191
- "hasDynamicHelp": false,
192
- "multiple": true,
193
- "type": "option"
194
- },
195
- "quiet": {
196
- "char": "q",
197
- "description": "Suppress progress output",
198
- "name": "quiet",
199
- "allowNo": false,
200
- "type": "boolean"
201
- }
202
- },
203
- "hasDynamicHelp": false,
204
- "hiddenAliases": [],
205
- "id": "codegen:manifest",
206
- "pluginAlias": "@memberjunction/cli",
207
- "pluginName": "@memberjunction/cli",
208
- "pluginType": "core",
209
- "strict": true,
210
- "enableJsonFlag": false,
211
- "isESM": false,
212
- "relativePath": [
213
- "dist",
214
- "commands",
215
- "codegen",
216
- "manifest.js"
217
- ]
218
- },
219
- "dbdoc:analyze": {
220
- "aliases": [],
221
- "args": {},
222
- "description": "Analyze database and generate documentation (delegates to db-auto-doc analyze)",
223
- "examples": [
224
- "<%= config.bin %> <%= command.id %>",
225
- "<%= config.bin %> <%= command.id %> --resume ./output/run-6/state.json",
226
- "<%= config.bin %> <%= command.id %> --config ./my-config.json"
227
- ],
228
- "flags": {
229
- "resume": {
230
- "char": "r",
231
- "description": "Resume from an existing state file",
232
- "name": "resume",
233
- "required": false,
234
- "hasDynamicHelp": false,
235
- "multiple": false,
236
- "type": "option"
237
- },
238
- "config": {
239
- "char": "c",
240
- "description": "Path to config file",
241
- "name": "config",
242
- "default": "./config.json",
243
- "hasDynamicHelp": false,
244
- "multiple": false,
245
- "type": "option"
246
- }
247
- },
248
- "hasDynamicHelp": false,
249
- "hiddenAliases": [],
250
- "id": "dbdoc:analyze",
251
- "pluginAlias": "@memberjunction/cli",
252
- "pluginName": "@memberjunction/cli",
253
- "pluginType": "core",
254
- "strict": true,
255
- "enableJsonFlag": false,
256
- "isESM": false,
257
- "relativePath": [
258
- "dist",
259
- "commands",
260
- "dbdoc",
261
- "analyze.js"
262
- ]
263
- },
264
- "dbdoc:export-sample-queries": {
265
- "aliases": [],
266
- "args": {},
267
- "description": "Export sample queries to MemberJunction metadata format (delegates to db-auto-doc export-sample-queries)",
268
- "examples": [
269
- "<%= config.bin %> <%= command.id %> --input ./output/sample-queries.json --output ./metadata/queries/.queries.json",
270
- "<%= config.bin %> <%= command.id %> --input ./sample-queries.json --output ./metadata/queries/.queries.json --separate-sql-files",
271
- "<%= config.bin %> <%= command.id %> --input ./sample-queries.json --output ./queries/.queries.json --category \"Database Documentation\"",
272
- "<%= config.bin %> <%= command.id %> --input ./sample-queries.json --output ./queries/.queries.json --status Pending --min-confidence 0.8"
273
- ],
274
- "flags": {
275
- "input": {
276
- "char": "i",
277
- "description": "Path to sample-queries.json file generated by generate-queries command",
278
- "name": "input",
279
- "required": true,
280
- "hasDynamicHelp": false,
281
- "multiple": false,
282
- "type": "option"
283
- },
284
- "output": {
285
- "char": "o",
286
- "description": "Output path for the .queries.json metadata file",
287
- "name": "output",
288
- "required": true,
289
- "hasDynamicHelp": false,
290
- "multiple": false,
291
- "type": "option"
292
- },
293
- "separate-sql-files": {
294
- "description": "Write SQL to separate files and use @file: references",
295
- "name": "separate-sql-files",
296
- "allowNo": false,
297
- "type": "boolean"
298
- },
299
- "sql-dir": {
300
- "description": "Directory for SQL files when using --separate-sql-files (relative to output file)",
301
- "name": "sql-dir",
302
- "default": "SQL",
303
- "hasDynamicHelp": false,
304
- "multiple": false,
305
- "type": "option"
306
- },
307
- "category": {
308
- "description": "Category name for @lookup reference (e.g., \"Database Documentation\")",
309
- "name": "category",
310
- "required": false,
311
- "hasDynamicHelp": false,
312
- "multiple": false,
313
- "type": "option"
314
- },
315
- "status": {
316
- "description": "Status to assign to exported queries",
317
- "name": "status",
318
- "default": "Pending",
319
- "hasDynamicHelp": false,
320
- "multiple": false,
321
- "options": [
322
- "Approved",
323
- "Pending",
324
- "Rejected",
325
- "Expired"
326
- ],
327
- "type": "option"
328
- },
329
- "min-confidence": {
330
- "description": "Minimum confidence threshold to export (0-1)",
331
- "name": "min-confidence",
332
- "default": "0",
333
- "hasDynamicHelp": false,
334
- "multiple": false,
335
- "type": "option"
336
- },
337
- "validated-only": {
338
- "description": "Only export queries that were successfully validated",
339
- "name": "validated-only",
340
- "allowNo": false,
341
- "type": "boolean"
342
- },
343
- "append": {
344
- "description": "Append to existing metadata file instead of overwriting",
345
- "name": "append",
346
- "allowNo": false,
347
- "type": "boolean"
348
- },
349
- "include-primary-key": {
350
- "description": "Include primaryKey and sync fields (for updating existing records)",
351
- "name": "include-primary-key",
352
- "allowNo": false,
353
- "type": "boolean"
354
- }
355
- },
356
- "hasDynamicHelp": false,
357
- "hiddenAliases": [],
358
- "id": "dbdoc:export-sample-queries",
359
- "pluginAlias": "@memberjunction/cli",
360
- "pluginName": "@memberjunction/cli",
361
- "pluginType": "core",
362
- "strict": true,
363
- "enableJsonFlag": false,
364
- "isESM": false,
365
- "relativePath": [
366
- "dist",
367
- "commands",
368
- "dbdoc",
369
- "export-sample-queries.js"
370
- ]
371
- },
372
- "dbdoc:export": {
373
- "aliases": [],
374
- "args": {},
375
- "description": "Export documentation in multiple formats (delegates to db-auto-doc export)",
376
- "examples": [
377
- "<%= config.bin %> <%= command.id %> --state-file=./db-doc-state.json",
378
- "<%= config.bin %> <%= command.id %> --sql",
379
- "<%= config.bin %> <%= command.id %> --markdown",
380
- "<%= config.bin %> <%= command.id %> --html",
381
- "<%= config.bin %> <%= command.id %> --csv",
382
- "<%= config.bin %> <%= command.id %> --mermaid",
383
- "<%= config.bin %> <%= command.id %> --sql --markdown --html --csv --mermaid --apply"
384
- ],
385
- "flags": {
386
- "state-file": {
387
- "char": "s",
388
- "description": "Path to state JSON file",
389
- "name": "state-file",
390
- "hasDynamicHelp": false,
391
- "multiple": false,
392
- "type": "option"
393
- },
394
- "output-dir": {
395
- "char": "o",
396
- "description": "Output directory for generated files",
397
- "name": "output-dir",
398
- "hasDynamicHelp": false,
399
- "multiple": false,
400
- "type": "option"
401
- },
402
- "sql": {
403
- "description": "Generate SQL script",
404
- "name": "sql",
405
- "allowNo": false,
406
- "type": "boolean"
407
- },
408
- "markdown": {
409
- "description": "Generate Markdown documentation",
410
- "name": "markdown",
411
- "allowNo": false,
412
- "type": "boolean"
413
- },
414
- "html": {
415
- "description": "Generate interactive HTML documentation",
416
- "name": "html",
417
- "allowNo": false,
418
- "type": "boolean"
419
- },
420
- "csv": {
421
- "description": "Generate CSV exports (tables and columns)",
422
- "name": "csv",
423
- "allowNo": false,
424
- "type": "boolean"
425
- },
426
- "mermaid": {
427
- "description": "Generate Mermaid ERD diagram files",
428
- "name": "mermaid",
429
- "allowNo": false,
430
- "type": "boolean"
431
- },
432
- "report": {
433
- "description": "Generate analysis report",
434
- "name": "report",
435
- "allowNo": false,
436
- "type": "boolean"
437
- },
438
- "apply": {
439
- "description": "Apply SQL to database",
440
- "name": "apply",
441
- "allowNo": false,
442
- "type": "boolean"
443
- },
444
- "approved-only": {
445
- "description": "Only export approved items",
446
- "name": "approved-only",
447
- "allowNo": false,
448
- "type": "boolean"
449
- },
450
- "confidence-threshold": {
451
- "description": "Minimum confidence threshold",
452
- "name": "confidence-threshold",
453
- "default": "0",
454
- "hasDynamicHelp": false,
455
- "multiple": false,
456
- "type": "option"
457
- }
458
- },
459
- "hasDynamicHelp": false,
460
- "hiddenAliases": [],
461
- "id": "dbdoc:export",
462
- "pluginAlias": "@memberjunction/cli",
463
- "pluginName": "@memberjunction/cli",
464
- "pluginType": "core",
465
- "strict": true,
466
- "enableJsonFlag": false,
467
- "isESM": false,
468
- "relativePath": [
469
- "dist",
470
- "commands",
471
- "dbdoc",
472
- "export.js"
473
- ]
474
- },
475
- "dbdoc:generate-queries": {
476
- "aliases": [],
477
- "args": {},
478
- "description": "Generate sample SQL queries from existing analysis state (delegates to db-auto-doc generate-queries)",
479
- "examples": [
480
- "<%= config.bin %> <%= command.id %> --from-state ./output/run-1/state.json",
481
- "<%= config.bin %> <%= command.id %> --from-state ./output/run-1/state.json --output-dir ./queries",
482
- "<%= config.bin %> <%= command.id %> --from-state ./output/run-1/state.json --queries-per-table 10"
483
- ],
484
- "flags": {
485
- "from-state": {
486
- "description": "Path to existing state.json file from previous analysis",
487
- "name": "from-state",
488
- "required": true,
489
- "hasDynamicHelp": false,
490
- "multiple": false,
491
- "type": "option"
492
- },
493
- "output-dir": {
494
- "description": "Output directory for generated queries",
495
- "name": "output-dir",
496
- "required": false,
497
- "hasDynamicHelp": false,
498
- "multiple": false,
499
- "type": "option"
500
- },
501
- "config": {
502
- "char": "c",
503
- "description": "Path to config file (for database connection and AI settings)",
504
- "name": "config",
505
- "default": "./config.json",
506
- "hasDynamicHelp": false,
507
- "multiple": false,
508
- "type": "option"
509
- },
510
- "queries-per-table": {
511
- "description": "Number of queries to generate per table",
512
- "name": "queries-per-table",
513
- "required": false,
514
- "hasDynamicHelp": false,
515
- "multiple": false,
516
- "type": "option"
517
- },
518
- "max-execution-time": {
519
- "description": "Maximum execution time for query validation (ms)",
520
- "name": "max-execution-time",
521
- "required": false,
522
- "hasDynamicHelp": false,
523
- "multiple": false,
524
- "type": "option"
525
- }
526
- },
527
- "hasDynamicHelp": false,
528
- "hiddenAliases": [],
529
- "id": "dbdoc:generate-queries",
530
- "pluginAlias": "@memberjunction/cli",
531
- "pluginName": "@memberjunction/cli",
532
- "pluginType": "core",
533
- "strict": true,
534
- "enableJsonFlag": false,
535
- "isESM": false,
536
- "relativePath": [
537
- "dist",
538
- "commands",
539
- "dbdoc",
540
- "generate-queries.js"
541
- ]
542
- },
543
- "dbdoc": {
544
- "aliases": [],
545
- "args": {},
546
- "description": "AI-powered database documentation generator",
547
- "flags": {},
548
- "hasDynamicHelp": false,
549
- "hidden": false,
550
- "hiddenAliases": [],
551
- "id": "dbdoc",
552
- "pluginAlias": "@memberjunction/cli",
553
- "pluginName": "@memberjunction/cli",
554
- "pluginType": "core",
555
- "strict": true,
556
- "enableJsonFlag": false,
557
- "isESM": false,
558
- "relativePath": [
559
- "dist",
560
- "commands",
561
- "dbdoc",
562
- "index.js"
563
- ]
564
- },
565
- "dbdoc:init": {
566
- "aliases": [],
567
- "args": {},
568
- "description": "Initialize DBAutoDoc project (delegates to db-auto-doc init)",
569
- "examples": [
570
- "<%= config.bin %> <%= command.id %>"
571
- ],
572
- "flags": {},
573
- "hasDynamicHelp": false,
574
- "hiddenAliases": [],
575
- "id": "dbdoc:init",
576
- "pluginAlias": "@memberjunction/cli",
577
- "pluginName": "@memberjunction/cli",
578
- "pluginType": "core",
579
- "strict": true,
580
- "enableJsonFlag": false,
581
- "isESM": false,
582
- "relativePath": [
583
- "dist",
584
- "commands",
585
- "dbdoc",
586
- "init.js"
587
- ]
588
- },
589
- "dbdoc:reset": {
590
- "aliases": [],
591
- "args": {},
592
- "description": "Reset analysis state (delegates to db-auto-doc reset)",
593
- "examples": [
594
- "<%= config.bin %> <%= command.id %>",
595
- "<%= config.bin %> <%= command.id %> --force"
596
- ],
597
- "flags": {
598
- "force": {
599
- "char": "f",
600
- "description": "Force reset without confirmation",
601
- "name": "force",
602
- "allowNo": false,
603
- "type": "boolean"
604
- }
605
- },
606
- "hasDynamicHelp": false,
607
- "hiddenAliases": [],
608
- "id": "dbdoc:reset",
609
- "pluginAlias": "@memberjunction/cli",
610
- "pluginName": "@memberjunction/cli",
611
- "pluginType": "core",
612
- "strict": true,
613
- "enableJsonFlag": false,
614
- "isESM": false,
615
- "relativePath": [
616
- "dist",
617
- "commands",
618
- "dbdoc",
619
- "reset.js"
620
- ]
621
- },
622
- "dbdoc:status": {
623
- "aliases": [],
624
- "args": {},
625
- "description": "Show analysis status and progress (delegates to db-auto-doc status)",
626
- "examples": [
627
- "<%= config.bin %> <%= command.id %>",
628
- "<%= config.bin %> <%= command.id %> --state-file ./custom-state.json"
629
- ],
630
- "flags": {
631
- "state-file": {
632
- "char": "s",
633
- "description": "Path to state JSON file",
634
- "name": "state-file",
635
- "hasDynamicHelp": false,
636
- "multiple": false,
637
- "type": "option"
638
- }
639
- },
640
- "hasDynamicHelp": false,
641
- "hiddenAliases": [],
642
- "id": "dbdoc:status",
643
- "pluginAlias": "@memberjunction/cli",
644
- "pluginName": "@memberjunction/cli",
645
- "pluginType": "core",
646
- "strict": true,
647
- "enableJsonFlag": false,
648
- "isESM": false,
649
- "relativePath": [
650
- "dist",
651
- "commands",
652
- "dbdoc",
653
- "status.js"
654
- ]
655
- },
656
- "migrate": {
657
- "aliases": [],
658
- "args": {},
659
- "description": "Migrate MemberJunction database to latest version",
660
- "examples": [
661
- "<%= config.bin %> <%= command.id %>\n",
662
- "<%= config.bin %> <%= command.id %> --schema __BCSaaS --dir ./migrations/v1\n",
663
- "<%= config.bin %> <%= command.id %> --schema __BCSaaS --tag v1.0.0\n"
664
- ],
665
- "flags": {
666
- "verbose": {
667
- "char": "v",
668
- "description": "Enable additional logging",
669
- "name": "verbose",
670
- "allowNo": false,
671
- "type": "boolean"
672
- },
673
- "tag": {
674
- "char": "t",
675
- "description": "Version tag to use for running remote migrations",
676
- "name": "tag",
677
- "hasDynamicHelp": false,
678
- "multiple": false,
679
- "type": "option"
680
- },
681
- "schema": {
682
- "char": "s",
683
- "description": "Target schema (overrides coreSchema from config)",
684
- "name": "schema",
685
- "hasDynamicHelp": false,
686
- "multiple": false,
687
- "type": "option"
688
- },
689
- "dir": {
690
- "description": "Migration source directory (overrides migrationsLocation from config)",
691
- "name": "dir",
692
- "hasDynamicHelp": false,
693
- "multiple": false,
694
- "type": "option"
695
- }
696
- },
697
- "hasDynamicHelp": false,
698
- "hiddenAliases": [],
699
- "id": "migrate",
700
- "pluginAlias": "@memberjunction/cli",
701
- "pluginName": "@memberjunction/cli",
702
- "pluginType": "core",
703
- "strict": true,
704
- "enableJsonFlag": false,
705
- "isESM": false,
706
- "relativePath": [
707
- "dist",
708
- "commands",
709
- "migrate",
710
- "index.js"
711
- ]
712
- },
713
- "install": {
714
- "aliases": [],
715
- "args": {},
716
- "description": "Install MemberJunction",
717
- "examples": [
718
- "<%= config.bin %> <%= command.id %>\n"
719
- ],
720
- "flags": {
721
- "verbose": {
722
- "char": "v",
723
- "description": "Enable additional logging",
724
- "name": "verbose",
725
- "allowNo": false,
726
- "type": "boolean"
727
- }
728
- },
729
- "hasDynamicHelp": false,
730
- "hiddenAliases": [],
731
- "id": "install",
732
- "pluginAlias": "@memberjunction/cli",
733
- "pluginName": "@memberjunction/cli",
734
- "pluginType": "core",
735
- "strict": true,
736
- "enableJsonFlag": false,
737
- "isESM": false,
738
- "relativePath": [
739
- "dist",
740
- "commands",
741
- "install",
742
- "index.js"
743
- ]
744
- },
745
- "querygen:export": {
746
- "aliases": [],
747
- "args": {},
748
- "description": "Export queries from database to metadata files",
749
- "examples": [
750
- "<%= config.bin %> <%= command.id %>",
751
- "<%= config.bin %> <%= command.id %> --output ./metadata/queries",
752
- "<%= config.bin %> <%= command.id %> --verbose"
753
- ],
754
- "flags": {
755
- "output": {
756
- "char": "o",
757
- "description": "Output directory",
758
- "name": "output",
759
- "default": "./metadata/queries",
760
- "hasDynamicHelp": false,
761
- "multiple": false,
762
- "type": "option"
763
- },
764
- "verbose": {
765
- "char": "v",
766
- "description": "Verbose output",
767
- "name": "verbose",
768
- "allowNo": false,
769
- "type": "boolean"
770
- }
771
- },
772
- "hasDynamicHelp": false,
773
- "hiddenAliases": [],
774
- "id": "querygen:export",
775
- "pluginAlias": "@memberjunction/cli",
776
- "pluginName": "@memberjunction/cli",
777
- "pluginType": "core",
778
- "strict": true,
779
- "enableJsonFlag": false,
780
- "isESM": false,
781
- "relativePath": [
782
- "dist",
783
- "commands",
784
- "querygen",
785
- "export.js"
786
- ]
787
- },
788
- "querygen:generate": {
789
- "aliases": [],
790
- "args": {},
791
- "description": "Generate SQL query templates for entities using AI",
792
- "examples": [
793
- "<%= config.bin %> <%= command.id %>",
794
- "<%= config.bin %> <%= command.id %> --entities \"Customers,Orders\"",
795
- "<%= config.bin %> <%= command.id %> --max-entities 5 --verbose",
796
- "<%= config.bin %> <%= command.id %> --mode database"
797
- ],
798
- "flags": {
799
- "entities": {
800
- "char": "e",
801
- "description": "Specific entities to generate queries for (comma-separated)",
802
- "name": "entities",
803
- "hasDynamicHelp": false,
804
- "multiple": false,
805
- "type": "option"
806
- },
807
- "exclude-entities": {
808
- "char": "x",
809
- "description": "Entities to exclude (comma-separated)",
810
- "name": "exclude-entities",
811
- "hasDynamicHelp": false,
812
- "multiple": false,
813
- "type": "option"
814
- },
815
- "exclude-schemas": {
816
- "char": "s",
817
- "description": "Schemas to exclude (comma-separated)",
818
- "name": "exclude-schemas",
819
- "hasDynamicHelp": false,
820
- "multiple": false,
821
- "type": "option"
822
- },
823
- "max-entities": {
824
- "char": "m",
825
- "description": "Max entities per group",
826
- "name": "max-entities",
827
- "default": 3,
828
- "hasDynamicHelp": false,
829
- "multiple": false,
830
- "type": "option"
831
- },
832
- "target-groups": {
833
- "char": "t",
834
- "description": "Target number of entity groups to generate",
835
- "name": "target-groups",
836
- "default": 75,
837
- "hasDynamicHelp": false,
838
- "multiple": false,
839
- "type": "option"
840
- },
841
- "max-refinements": {
842
- "char": "r",
843
- "description": "Max refinement iterations",
844
- "name": "max-refinements",
845
- "default": 3,
846
- "hasDynamicHelp": false,
847
- "multiple": false,
848
- "type": "option"
849
- },
850
- "max-fixes": {
851
- "char": "f",
852
- "description": "Max error-fixing attempts",
853
- "name": "max-fixes",
854
- "default": 5,
855
- "hasDynamicHelp": false,
856
- "multiple": false,
857
- "type": "option"
858
- },
859
- "model": {
860
- "description": "Preferred AI model",
861
- "name": "model",
862
- "hasDynamicHelp": false,
863
- "multiple": false,
864
- "type": "option"
865
- },
866
- "vendor": {
867
- "description": "Preferred AI vendor",
868
- "name": "vendor",
869
- "hasDynamicHelp": false,
870
- "multiple": false,
871
- "type": "option"
872
- },
873
- "output": {
874
- "char": "o",
875
- "description": "Output directory",
876
- "name": "output",
877
- "hasDynamicHelp": false,
878
- "multiple": false,
879
- "type": "option"
880
- },
881
- "mode": {
882
- "description": "Output mode: metadata|database|both",
883
- "name": "mode",
884
- "hasDynamicHelp": false,
885
- "multiple": false,
886
- "options": [
887
- "metadata",
888
- "database",
889
- "both"
890
- ],
891
- "type": "option"
892
- },
893
- "verbose": {
894
- "char": "v",
895
- "description": "Verbose output",
896
- "name": "verbose",
897
- "allowNo": false,
898
- "type": "boolean"
899
- }
900
- },
901
- "hasDynamicHelp": false,
902
- "hiddenAliases": [],
903
- "id": "querygen:generate",
904
- "pluginAlias": "@memberjunction/cli",
905
- "pluginName": "@memberjunction/cli",
906
- "pluginType": "core",
907
- "strict": true,
908
- "enableJsonFlag": false,
909
- "isESM": false,
910
- "relativePath": [
911
- "dist",
912
- "commands",
913
- "querygen",
914
- "generate.js"
915
- ]
916
- },
917
- "querygen:validate": {
918
- "aliases": [],
919
- "args": {},
920
- "description": "Validate existing query templates",
921
- "examples": [
922
- "<%= config.bin %> <%= command.id %>",
923
- "<%= config.bin %> <%= command.id %> --path ./metadata/queries",
924
- "<%= config.bin %> <%= command.id %> --verbose"
925
- ],
926
- "flags": {
927
- "path": {
928
- "char": "p",
929
- "description": "Path to queries metadata file or directory",
930
- "name": "path",
931
- "default": "./metadata/queries",
932
- "hasDynamicHelp": false,
933
- "multiple": false,
934
- "type": "option"
935
- },
936
- "verbose": {
937
- "char": "v",
938
- "description": "Verbose output",
939
- "name": "verbose",
940
- "allowNo": false,
941
- "type": "boolean"
942
- }
943
- },
944
- "hasDynamicHelp": false,
945
- "hiddenAliases": [],
946
- "id": "querygen:validate",
947
- "pluginAlias": "@memberjunction/cli",
948
- "pluginName": "@memberjunction/cli",
949
- "pluginType": "core",
950
- "strict": true,
951
- "enableJsonFlag": false,
952
- "isESM": false,
953
- "relativePath": [
954
- "dist",
955
- "commands",
956
- "querygen",
957
- "validate.js"
958
- ]
959
- },
960
- "sync:file-reset": {
961
- "aliases": [],
962
- "args": {},
963
- "description": "Reset file metadata sections",
964
- "examples": [
965
- "<%= config.bin %> <%= command.id %>",
966
- "<%= config.bin %> <%= command.id %> --dir=\"ai-prompts\"",
967
- "<%= config.bin %> <%= command.id %> --sections=\"dependencies,references\"",
968
- "<%= config.bin %> <%= command.id %> --all"
969
- ],
970
- "flags": {
971
- "dir": {
972
- "description": "Specific entity directory to reset",
973
- "name": "dir",
974
- "hasDynamicHelp": false,
975
- "multiple": false,
976
- "type": "option"
977
- },
978
- "sections": {
979
- "description": "Comma-separated list of sections to reset (dependencies,references,related,lookup)",
980
- "name": "sections",
981
- "hasDynamicHelp": false,
982
- "multiple": false,
983
- "type": "option"
984
- },
985
- "all": {
986
- "description": "Reset all metadata sections",
987
- "name": "all",
988
- "allowNo": false,
989
- "type": "boolean"
990
- },
991
- "dry-run": {
992
- "description": "Show what would be reset without actually resetting",
993
- "name": "dry-run",
994
- "allowNo": false,
995
- "type": "boolean"
996
- },
997
- "force": {
998
- "description": "Skip confirmation prompts",
999
- "name": "force",
1000
- "allowNo": false,
1001
- "type": "boolean"
1002
- },
1003
- "verbose": {
1004
- "char": "v",
1005
- "description": "Show detailed output",
1006
- "name": "verbose",
1007
- "allowNo": false,
1008
- "type": "boolean"
1009
- }
1010
- },
1011
- "hasDynamicHelp": false,
1012
- "hiddenAliases": [],
1013
- "id": "sync:file-reset",
1014
- "pluginAlias": "@memberjunction/cli",
1015
- "pluginName": "@memberjunction/cli",
1016
- "pluginType": "core",
1017
- "strict": true,
1018
- "enableJsonFlag": false,
1019
- "isESM": false,
1020
- "relativePath": [
1021
- "dist",
1022
- "commands",
1023
- "sync",
1024
- "file-reset.js"
1025
- ]
1026
- },
1027
- "sync:init": {
1028
- "aliases": [],
1029
- "args": {},
1030
- "description": "Initialize a directory for metadata synchronization",
1031
- "examples": [
1032
- "<%= config.bin %> <%= command.id %>"
1033
- ],
1034
- "flags": {},
1035
- "hasDynamicHelp": false,
1036
- "hiddenAliases": [],
1037
- "id": "sync:init",
1038
- "pluginAlias": "@memberjunction/cli",
1039
- "pluginName": "@memberjunction/cli",
1040
- "pluginType": "core",
1041
- "strict": true,
1042
- "enableJsonFlag": false,
1043
- "isESM": false,
1044
- "relativePath": [
1045
- "dist",
1046
- "commands",
1047
- "sync",
1048
- "init.js"
1049
- ]
1050
- },
1051
- "sync:pull": {
1052
- "aliases": [],
1053
- "args": {},
1054
- "description": "Pull metadata from database to local files",
1055
- "examples": [
1056
- "<%= config.bin %> <%= command.id %> --entity=\"AI Prompts\"",
1057
- "<%= config.bin %> <%= command.id %> --entity=\"AI Prompts\" --filter=\"CategoryID='customer-service-id'\"",
1058
- "<%= config.bin %> <%= command.id %> --entity=\"AI Agents\" --merge-strategy=overwrite",
1059
- "<%= config.bin %> <%= command.id %> --entity=\"Actions\" --target-dir=./custom-actions --no-validate",
1060
- "<%= config.bin %> <%= command.id %> --entity=\"Templates\" --dry-run --verbose",
1061
- "<%= config.bin %> <%= command.id %> --entity=\"AI Prompts\" --exclude-fields=InternalNotes,DebugInfo"
1062
- ],
1063
- "flags": {
1064
- "entity": {
1065
- "description": "Entity name to pull",
1066
- "name": "entity",
1067
- "required": true,
1068
- "hasDynamicHelp": false,
1069
- "multiple": false,
1070
- "type": "option"
1071
- },
1072
- "filter": {
1073
- "description": "Additional filter for pulling specific records",
1074
- "name": "filter",
1075
- "hasDynamicHelp": false,
1076
- "multiple": false,
1077
- "type": "option"
1078
- },
1079
- "dry-run": {
1080
- "description": "Show what would be pulled without actually pulling",
1081
- "name": "dry-run",
1082
- "allowNo": false,
1083
- "type": "boolean"
1084
- },
1085
- "multi-file": {
1086
- "description": "Create a single file with multiple records (provide filename)",
1087
- "name": "multi-file",
1088
- "hasDynamicHelp": false,
1089
- "multiple": false,
1090
- "type": "option"
1091
- },
1092
- "verbose": {
1093
- "char": "v",
1094
- "description": "Show detailed output",
1095
- "name": "verbose",
1096
- "allowNo": false,
1097
- "type": "boolean"
1098
- },
1099
- "no-validate": {
1100
- "description": "Skip validation before pull",
1101
- "name": "no-validate",
1102
- "allowNo": false,
1103
- "type": "boolean"
1104
- },
1105
- "update-existing": {
1106
- "description": "Update existing records during pull",
1107
- "name": "update-existing",
1108
- "allowNo": false,
1109
- "type": "boolean"
1110
- },
1111
- "create-new": {
1112
- "description": "Create new files for records not found locally",
1113
- "name": "create-new",
1114
- "allowNo": false,
1115
- "type": "boolean"
1116
- },
1117
- "backup-before-update": {
1118
- "description": "Create backups before updating files",
1119
- "name": "backup-before-update",
1120
- "allowNo": false,
1121
- "type": "boolean"
1122
- },
1123
- "merge-strategy": {
1124
- "description": "Merge strategy for updates",
1125
- "name": "merge-strategy",
1126
- "default": "merge",
1127
- "hasDynamicHelp": false,
1128
- "multiple": false,
1129
- "options": [
1130
- "merge",
1131
- "overwrite",
1132
- "skip"
1133
- ],
1134
- "type": "option"
1135
- },
1136
- "backup-directory": {
1137
- "description": "Custom backup directory (default: .backups)",
1138
- "name": "backup-directory",
1139
- "hasDynamicHelp": false,
1140
- "multiple": false,
1141
- "type": "option"
1142
- },
1143
- "preserve-fields": {
1144
- "description": "Comma-separated list of fields to preserve during updates",
1145
- "name": "preserve-fields",
1146
- "hasDynamicHelp": false,
1147
- "multiple": true,
1148
- "type": "option"
1149
- },
1150
- "exclude-fields": {
1151
- "description": "Comma-separated list of fields to exclude from pull",
1152
- "name": "exclude-fields",
1153
- "hasDynamicHelp": false,
1154
- "multiple": true,
1155
- "type": "option"
1156
- },
1157
- "target-dir": {
1158
- "description": "Specific target directory (overrides auto-discovery)",
1159
- "name": "target-dir",
1160
- "hasDynamicHelp": false,
1161
- "multiple": false,
1162
- "type": "option"
1163
- }
1164
- },
1165
- "hasDynamicHelp": false,
1166
- "hiddenAliases": [],
1167
- "id": "sync:pull",
1168
- "pluginAlias": "@memberjunction/cli",
1169
- "pluginName": "@memberjunction/cli",
1170
- "pluginType": "core",
1171
- "strict": true,
1172
- "enableJsonFlag": false,
1173
- "isESM": false,
1174
- "relativePath": [
1175
- "dist",
1176
- "commands",
1177
- "sync",
1178
- "pull.js"
1179
- ]
1180
- },
1181
- "sync:push": {
1182
- "aliases": [],
1183
- "args": {},
1184
- "description": "Push local file changes to the database",
1185
- "examples": [
1186
- "<%= config.bin %> <%= command.id %>",
1187
- "<%= config.bin %> <%= command.id %> --dry-run",
1188
- "<%= config.bin %> <%= command.id %> --dir=\"ai-prompts\"",
1189
- "<%= config.bin %> <%= command.id %> --ci"
1190
- ],
1191
- "flags": {
1192
- "dir": {
1193
- "description": "Specific entity directory to push",
1194
- "name": "dir",
1195
- "hasDynamicHelp": false,
1196
- "multiple": false,
1197
- "type": "option"
1198
- },
1199
- "dry-run": {
1200
- "description": "Show what would be pushed without actually pushing",
1201
- "name": "dry-run",
1202
- "allowNo": false,
1203
- "type": "boolean"
1204
- },
1205
- "ci": {
1206
- "description": "CI mode - no prompts, fail on issues",
1207
- "name": "ci",
1208
- "allowNo": false,
1209
- "type": "boolean"
1210
- },
1211
- "verbose": {
1212
- "char": "v",
1213
- "description": "Show detailed field-level output",
1214
- "name": "verbose",
1215
- "allowNo": false,
1216
- "type": "boolean"
1217
- },
1218
- "no-validate": {
1219
- "description": "Skip validation before push",
1220
- "name": "no-validate",
1221
- "allowNo": false,
1222
- "type": "boolean"
1223
- },
1224
- "parallel-batch-size": {
1225
- "description": "Number of records to process in parallel (default: 10)",
1226
- "name": "parallel-batch-size",
1227
- "default": 10,
1228
- "hasDynamicHelp": false,
1229
- "multiple": false,
1230
- "type": "option"
1231
- },
1232
- "include": {
1233
- "description": "Only process these directories (comma-separated, supports patterns)",
1234
- "name": "include",
1235
- "hasDynamicHelp": false,
1236
- "multiple": false,
1237
- "type": "option"
1238
- },
1239
- "exclude": {
1240
- "description": "Skip these directories (comma-separated, supports patterns)",
1241
- "name": "exclude",
1242
- "hasDynamicHelp": false,
1243
- "multiple": false,
1244
- "type": "option"
1245
- }
1246
- },
1247
- "hasDynamicHelp": false,
1248
- "hiddenAliases": [],
1249
- "id": "sync:push",
1250
- "pluginAlias": "@memberjunction/cli",
1251
- "pluginName": "@memberjunction/cli",
1252
- "pluginType": "core",
1253
- "strict": true,
1254
- "enableJsonFlag": false,
1255
- "isESM": false,
1256
- "relativePath": [
1257
- "dist",
1258
- "commands",
1259
- "sync",
1260
- "push.js"
1261
- ]
1262
- },
1263
- "sync:status": {
1264
- "aliases": [],
1265
- "args": {},
1266
- "description": "Show status of local files vs database",
1267
- "examples": [
1268
- "<%= config.bin %> <%= command.id %>",
1269
- "<%= config.bin %> <%= command.id %> --dir=\"ai-prompts\"",
1270
- "<%= config.bin %> <%= command.id %> --verbose"
1271
- ],
1272
- "flags": {
1273
- "dir": {
1274
- "description": "Specific entity directory to check status",
1275
- "name": "dir",
1276
- "hasDynamicHelp": false,
1277
- "multiple": false,
1278
- "type": "option"
1279
- },
1280
- "verbose": {
1281
- "char": "v",
1282
- "description": "Show detailed field-level differences",
1283
- "name": "verbose",
1284
- "allowNo": false,
1285
- "type": "boolean"
1286
- },
1287
- "include": {
1288
- "description": "Only process these directories (comma-separated, supports patterns)",
1289
- "name": "include",
1290
- "hasDynamicHelp": false,
1291
- "multiple": false,
1292
- "type": "option"
1293
- },
1294
- "exclude": {
1295
- "description": "Skip these directories (comma-separated, supports patterns)",
1296
- "name": "exclude",
1297
- "hasDynamicHelp": false,
1298
- "multiple": false,
1299
- "type": "option"
1300
- }
1301
- },
1302
- "hasDynamicHelp": false,
1303
- "hiddenAliases": [],
1304
- "id": "sync:status",
1305
- "pluginAlias": "@memberjunction/cli",
1306
- "pluginName": "@memberjunction/cli",
1307
- "pluginType": "core",
1308
- "strict": true,
1309
- "enableJsonFlag": false,
1310
- "isESM": false,
1311
- "relativePath": [
1312
- "dist",
1313
- "commands",
1314
- "sync",
1315
- "status.js"
1316
- ]
1317
- },
1318
- "sync:validate": {
1319
- "aliases": [],
1320
- "args": {},
1321
- "description": "Validate metadata files",
1322
- "examples": [
1323
- "<%= config.bin %> <%= command.id %>",
1324
- "<%= config.bin %> <%= command.id %> --dir=\"ai-prompts\"",
1325
- "<%= config.bin %> <%= command.id %> --save-report",
1326
- "<%= config.bin %> <%= command.id %> --verbose"
1327
- ],
1328
- "flags": {
1329
- "dir": {
1330
- "description": "Specific entity directory to validate",
1331
- "name": "dir",
1332
- "hasDynamicHelp": false,
1333
- "multiple": false,
1334
- "type": "option"
1335
- },
1336
- "verbose": {
1337
- "char": "v",
1338
- "description": "Show detailed validation output",
1339
- "name": "verbose",
1340
- "allowNo": false,
1341
- "type": "boolean"
1342
- },
1343
- "save-report": {
1344
- "description": "Save validation report as markdown file",
1345
- "name": "save-report",
1346
- "allowNo": false,
1347
- "type": "boolean"
1348
- },
1349
- "output": {
1350
- "description": "Output file path for validation report (default: validation-report.md)",
1351
- "name": "output",
1352
- "hasDynamicHelp": false,
1353
- "multiple": false,
1354
- "type": "option"
1355
- }
1356
- },
1357
- "hasDynamicHelp": false,
1358
- "hiddenAliases": [],
1359
- "id": "sync:validate",
1360
- "pluginAlias": "@memberjunction/cli",
1361
- "pluginName": "@memberjunction/cli",
1362
- "pluginType": "core",
1363
- "strict": true,
1364
- "enableJsonFlag": false,
1365
- "isESM": false,
1366
- "relativePath": [
1367
- "dist",
1368
- "commands",
1369
- "sync",
1370
- "validate.js"
1371
- ]
1372
- },
1373
- "sync:watch": {
1374
- "aliases": [],
1375
- "args": {},
1376
- "description": "Watch for file changes and sync automatically",
1377
- "examples": [
1378
- "<%= config.bin %> <%= command.id %>",
1379
- "<%= config.bin %> <%= command.id %> --dir=\"ai-prompts\"",
1380
- "<%= config.bin %> <%= command.id %> --debounce=1000",
1381
- "<%= config.bin %> <%= command.id %> --no-validate"
1382
- ],
1383
- "flags": {
1384
- "dir": {
1385
- "description": "Specific entity directory to watch",
1386
- "name": "dir",
1387
- "hasDynamicHelp": false,
1388
- "multiple": false,
1389
- "type": "option"
1390
- },
1391
- "debounce": {
1392
- "description": "Debounce delay in milliseconds (default: 500)",
1393
- "name": "debounce",
1394
- "hasDynamicHelp": false,
1395
- "multiple": false,
1396
- "type": "option"
1397
- },
1398
- "no-validate": {
1399
- "description": "Skip validation before sync",
1400
- "name": "no-validate",
1401
- "allowNo": false,
1402
- "type": "boolean"
1403
- },
1404
- "verbose": {
1405
- "char": "v",
1406
- "description": "Show detailed output",
1407
- "name": "verbose",
1408
- "allowNo": false,
1409
- "type": "boolean"
1410
- }
1411
- },
1412
- "hasDynamicHelp": false,
1413
- "hiddenAliases": [],
1414
- "id": "sync:watch",
1415
- "pluginAlias": "@memberjunction/cli",
1416
- "pluginName": "@memberjunction/cli",
1417
- "pluginType": "core",
1418
- "strict": true,
1419
- "enableJsonFlag": false,
1420
- "isESM": false,
1421
- "relativePath": [
1422
- "dist",
1423
- "commands",
1424
- "sync",
1425
- "watch.js"
1426
- ]
1427
- },
1428
- "test:compare": {
1429
- "aliases": [],
1430
- "args": {
1431
- "runId1": {
1432
- "description": "First test run ID to compare",
1433
- "name": "runId1",
1434
- "required": false
1435
- },
1436
- "runId2": {
1437
- "description": "Second test run ID to compare",
1438
- "name": "runId2",
1439
- "required": false
1440
- }
1441
- },
1442
- "description": "Compare test runs for regression detection",
1443
- "examples": [
1444
- "<%= config.bin %> <%= command.id %> <run-id-1> <run-id-2>",
1445
- "<%= config.bin %> <%= command.id %> --baseline=<run-id> --current=<run-id>",
1446
- "<%= config.bin %> <%= command.id %> --suite=<suite-id> --since=\"2024-01-01\"",
1447
- "<%= config.bin %> <%= command.id %> <run-id-1> <run-id-2> --format=json"
1448
- ],
1449
- "flags": {
1450
- "version": {
1451
- "char": "v",
1452
- "description": "Compare runs by version",
1453
- "name": "version",
1454
- "hasDynamicHelp": false,
1455
- "multiple": true,
1456
- "type": "option"
1457
- },
1458
- "commit": {
1459
- "char": "c",
1460
- "description": "Compare runs by git commit",
1461
- "name": "commit",
1462
- "hasDynamicHelp": false,
1463
- "multiple": true,
1464
- "type": "option"
1465
- },
1466
- "diff-only": {
1467
- "description": "Show only differences",
1468
- "name": "diff-only",
1469
- "allowNo": false,
1470
- "type": "boolean"
1471
- },
1472
- "format": {
1473
- "char": "f",
1474
- "description": "Output format",
1475
- "name": "format",
1476
- "default": "console",
1477
- "hasDynamicHelp": false,
1478
- "multiple": false,
1479
- "options": [
1480
- "console",
1481
- "json",
1482
- "markdown"
1483
- ],
1484
- "type": "option"
1485
- },
1486
- "output": {
1487
- "char": "o",
1488
- "description": "Output file path",
1489
- "name": "output",
1490
- "hasDynamicHelp": false,
1491
- "multiple": false,
1492
- "type": "option"
1493
- },
1494
- "verbose": {
1495
- "description": "Show detailed information",
1496
- "name": "verbose",
1497
- "allowNo": false,
1498
- "type": "boolean"
1499
- }
1500
- },
1501
- "hasDynamicHelp": false,
1502
- "hiddenAliases": [],
1503
- "id": "test:compare",
1504
- "pluginAlias": "@memberjunction/cli",
1505
- "pluginName": "@memberjunction/cli",
1506
- "pluginType": "core",
1507
- "strict": true,
1508
- "enableJsonFlag": false,
1509
- "isESM": false,
1510
- "relativePath": [
1511
- "dist",
1512
- "commands",
1513
- "test",
1514
- "compare.js"
1515
- ]
1516
- },
1517
- "test:history": {
1518
- "aliases": [],
1519
- "args": {},
1520
- "description": "View test execution history",
1521
- "examples": [
1522
- "<%= config.bin %> <%= command.id %>",
1523
- "<%= config.bin %> <%= command.id %> --test=<test-id>",
1524
- "<%= config.bin %> <%= command.id %> --suite=<suite-id>",
1525
- "<%= config.bin %> <%= command.id %> --since=\"2024-01-01\"",
1526
- "<%= config.bin %> <%= command.id %> --limit=50"
1527
- ],
1528
- "flags": {
1529
- "test": {
1530
- "char": "t",
1531
- "description": "Filter by test ID",
1532
- "name": "test",
1533
- "hasDynamicHelp": false,
1534
- "multiple": false,
1535
- "type": "option"
1536
- },
1537
- "recent": {
1538
- "char": "r",
1539
- "description": "Number of recent runs to show",
1540
- "name": "recent",
1541
- "hasDynamicHelp": false,
1542
- "multiple": false,
1543
- "type": "option"
1544
- },
1545
- "from": {
1546
- "description": "Show history from date (YYYY-MM-DD)",
1547
- "name": "from",
1548
- "hasDynamicHelp": false,
1549
- "multiple": false,
1550
- "type": "option"
1551
- },
1552
- "status": {
1553
- "char": "s",
1554
- "description": "Filter by status",
1555
- "name": "status",
1556
- "hasDynamicHelp": false,
1557
- "multiple": false,
1558
- "type": "option"
1559
- },
1560
- "format": {
1561
- "char": "f",
1562
- "description": "Output format",
1563
- "name": "format",
1564
- "default": "console",
1565
- "hasDynamicHelp": false,
1566
- "multiple": false,
1567
- "options": [
1568
- "console",
1569
- "json",
1570
- "markdown"
1571
- ],
1572
- "type": "option"
1573
- },
1574
- "output": {
1575
- "char": "o",
1576
- "description": "Output file path",
1577
- "name": "output",
1578
- "hasDynamicHelp": false,
1579
- "multiple": false,
1580
- "type": "option"
1581
- },
1582
- "verbose": {
1583
- "char": "v",
1584
- "description": "Show detailed information",
1585
- "name": "verbose",
1586
- "allowNo": false,
1587
- "type": "boolean"
1588
- }
1589
- },
1590
- "hasDynamicHelp": false,
1591
- "hiddenAliases": [],
1592
- "id": "test:history",
1593
- "pluginAlias": "@memberjunction/cli",
1594
- "pluginName": "@memberjunction/cli",
1595
- "pluginType": "core",
1596
- "strict": true,
1597
- "enableJsonFlag": false,
1598
- "isESM": false,
1599
- "relativePath": [
1600
- "dist",
1601
- "commands",
1602
- "test",
1603
- "history.js"
1604
- ]
1605
- },
1606
- "test": {
1607
- "aliases": [],
1608
- "args": {},
1609
- "description": "MemberJunction Testing Framework - Execute and manage tests",
1610
- "examples": [
1611
- "<%= config.bin %> <%= command.id %> run <test-id>",
1612
- "<%= config.bin %> <%= command.id %> run --name=\"Active Members Count\"",
1613
- "<%= config.bin %> <%= command.id %> suite <suite-id>",
1614
- "<%= config.bin %> <%= command.id %> list",
1615
- "<%= config.bin %> <%= command.id %> list --suites",
1616
- "<%= config.bin %> <%= command.id %> validate --all"
1617
- ],
1618
- "flags": {},
1619
- "hasDynamicHelp": false,
1620
- "hiddenAliases": [],
1621
- "id": "test",
1622
- "pluginAlias": "@memberjunction/cli",
1623
- "pluginName": "@memberjunction/cli",
1624
- "pluginType": "core",
1625
- "strict": true,
1626
- "enableJsonFlag": false,
1627
- "isESM": false,
1628
- "relativePath": [
1629
- "dist",
1630
- "commands",
1631
- "test",
1632
- "index.js"
1633
- ]
1634
- },
1635
- "test:list": {
1636
- "aliases": [],
1637
- "args": {},
1638
- "description": "List available tests, suites, and types",
1639
- "examples": [
1640
- "<%= config.bin %> <%= command.id %>",
1641
- "<%= config.bin %> <%= command.id %> --suites",
1642
- "<%= config.bin %> <%= command.id %> --types",
1643
- "<%= config.bin %> <%= command.id %> --type=agent-eval",
1644
- "<%= config.bin %> <%= command.id %> --tag=smoke",
1645
- "<%= config.bin %> <%= command.id %> --status=active --verbose"
1646
- ],
1647
- "flags": {
1648
- "suites": {
1649
- "description": "List test suites instead of tests",
1650
- "name": "suites",
1651
- "allowNo": false,
1652
- "type": "boolean"
1653
- },
1654
- "types": {
1655
- "description": "List test types",
1656
- "name": "types",
1657
- "allowNo": false,
1658
- "type": "boolean"
1659
- },
1660
- "type": {
1661
- "char": "t",
1662
- "description": "Filter by test type",
1663
- "name": "type",
1664
- "hasDynamicHelp": false,
1665
- "multiple": false,
1666
- "type": "option"
1667
- },
1668
- "tag": {
1669
- "description": "Filter by tag",
1670
- "name": "tag",
1671
- "hasDynamicHelp": false,
1672
- "multiple": false,
1673
- "type": "option"
1674
- },
1675
- "status": {
1676
- "char": "s",
1677
- "description": "Filter by status",
1678
- "name": "status",
1679
- "hasDynamicHelp": false,
1680
- "multiple": false,
1681
- "type": "option"
1682
- },
1683
- "format": {
1684
- "char": "f",
1685
- "description": "Output format",
1686
- "name": "format",
1687
- "default": "console",
1688
- "hasDynamicHelp": false,
1689
- "multiple": false,
1690
- "options": [
1691
- "console",
1692
- "json",
1693
- "markdown"
1694
- ],
1695
- "type": "option"
1696
- },
1697
- "output": {
1698
- "char": "o",
1699
- "description": "Output file path",
1700
- "name": "output",
1701
- "hasDynamicHelp": false,
1702
- "multiple": false,
1703
- "type": "option"
1704
- },
1705
- "verbose": {
1706
- "char": "v",
1707
- "description": "Show detailed information",
1708
- "name": "verbose",
1709
- "allowNo": false,
1710
- "type": "boolean"
1711
- }
1712
- },
1713
- "hasDynamicHelp": false,
1714
- "hiddenAliases": [],
1715
- "id": "test:list",
1716
- "pluginAlias": "@memberjunction/cli",
1717
- "pluginName": "@memberjunction/cli",
1718
- "pluginType": "core",
1719
- "strict": true,
1720
- "enableJsonFlag": false,
1721
- "isESM": false,
1722
- "relativePath": [
1723
- "dist",
1724
- "commands",
1725
- "test",
1726
- "list.js"
1727
- ]
1728
- },
1729
- "test:run": {
1730
- "aliases": [],
1731
- "args": {
1732
- "testId": {
1733
- "description": "Test ID to execute",
1734
- "name": "testId",
1735
- "required": false
1736
- }
1737
- },
1738
- "description": "Execute a single test by ID or name",
1739
- "examples": [
1740
- "<%= config.bin %> <%= command.id %> <test-id>",
1741
- "<%= config.bin %> <%= command.id %> --name=\"Active Members Count\"",
1742
- "<%= config.bin %> <%= command.id %> <test-id> --environment=staging",
1743
- "<%= config.bin %> <%= command.id %> <test-id> --format=json --output=results.json",
1744
- "<%= config.bin %> <%= command.id %> <test-id> --dry-run"
1745
- ],
1746
- "flags": {
1747
- "name": {
1748
- "char": "n",
1749
- "description": "Test name to execute",
1750
- "name": "name",
1751
- "hasDynamicHelp": false,
1752
- "multiple": false,
1753
- "type": "option"
1754
- },
1755
- "environment": {
1756
- "char": "e",
1757
- "description": "Environment context (dev, staging, prod)",
1758
- "name": "environment",
1759
- "hasDynamicHelp": false,
1760
- "multiple": false,
1761
- "type": "option"
1762
- },
1763
- "format": {
1764
- "char": "f",
1765
- "description": "Output format",
1766
- "name": "format",
1767
- "default": "console",
1768
- "hasDynamicHelp": false,
1769
- "multiple": false,
1770
- "options": [
1771
- "console",
1772
- "json",
1773
- "markdown"
1774
- ],
1775
- "type": "option"
1776
- },
1777
- "output": {
1778
- "char": "o",
1779
- "description": "Output file path",
1780
- "name": "output",
1781
- "hasDynamicHelp": false,
1782
- "multiple": false,
1783
- "type": "option"
1784
- },
1785
- "dry-run": {
1786
- "description": "Validate without executing",
1787
- "name": "dry-run",
1788
- "allowNo": false,
1789
- "type": "boolean"
1790
- },
1791
- "verbose": {
1792
- "char": "v",
1793
- "description": "Show detailed execution information",
1794
- "name": "verbose",
1795
- "allowNo": false,
1796
- "type": "boolean"
1797
- }
1798
- },
1799
- "hasDynamicHelp": false,
1800
- "hiddenAliases": [],
1801
- "id": "test:run",
1802
- "pluginAlias": "@memberjunction/cli",
1803
- "pluginName": "@memberjunction/cli",
1804
- "pluginType": "core",
1805
- "strict": true,
1806
- "enableJsonFlag": false,
1807
- "isESM": false,
1808
- "relativePath": [
1809
- "dist",
1810
- "commands",
1811
- "test",
1812
- "run.js"
1813
- ]
1814
- },
1815
- "test:suite": {
1816
- "aliases": [],
1817
- "args": {
1818
- "suiteId": {
1819
- "description": "Test suite ID to execute",
1820
- "name": "suiteId",
1821
- "required": false
1822
- }
1823
- },
1824
- "description": "Execute a test suite",
1825
- "examples": [
1826
- "<%= config.bin %> <%= command.id %> <suite-id>",
1827
- "<%= config.bin %> <%= command.id %> --name=\"Agent Quality Suite\"",
1828
- "<%= config.bin %> <%= command.id %> <suite-id> --format=json",
1829
- "<%= config.bin %> <%= command.id %> <suite-id> --output=suite-results.json"
1830
- ],
1831
- "flags": {
1832
- "name": {
1833
- "char": "n",
1834
- "description": "Test suite name to execute",
1835
- "name": "name",
1836
- "hasDynamicHelp": false,
1837
- "multiple": false,
1838
- "type": "option"
1839
- },
1840
- "format": {
1841
- "char": "f",
1842
- "description": "Output format",
1843
- "name": "format",
1844
- "default": "console",
1845
- "hasDynamicHelp": false,
1846
- "multiple": false,
1847
- "options": [
1848
- "console",
1849
- "json",
1850
- "markdown"
1851
- ],
1852
- "type": "option"
1853
- },
1854
- "output": {
1855
- "char": "o",
1856
- "description": "Output file path",
1857
- "name": "output",
1858
- "hasDynamicHelp": false,
1859
- "multiple": false,
1860
- "type": "option"
1861
- },
1862
- "verbose": {
1863
- "char": "v",
1864
- "description": "Show detailed execution information",
1865
- "name": "verbose",
1866
- "allowNo": false,
1867
- "type": "boolean"
1868
- }
1869
- },
1870
- "hasDynamicHelp": false,
1871
- "hiddenAliases": [],
1872
- "id": "test:suite",
1873
- "pluginAlias": "@memberjunction/cli",
1874
- "pluginName": "@memberjunction/cli",
1875
- "pluginType": "core",
1876
- "strict": true,
1877
- "enableJsonFlag": false,
1878
- "isESM": false,
1879
- "relativePath": [
1880
- "dist",
1881
- "commands",
1882
- "test",
1883
- "suite.js"
1884
- ]
1885
- },
1886
- "test:validate": {
1887
- "aliases": [],
1888
- "args": {
1889
- "testId": {
1890
- "description": "Test ID to validate",
1891
- "name": "testId",
1892
- "required": false
1893
- }
1894
- },
1895
- "description": "Validate test definitions without executing",
1896
- "examples": [
1897
- "<%= config.bin %> <%= command.id %> <test-id>",
1898
- "<%= config.bin %> <%= command.id %> --all",
1899
- "<%= config.bin %> <%= command.id %> --type=agent-eval",
1900
- "<%= config.bin %> <%= command.id %> --all --save-report",
1901
- "<%= config.bin %> <%= command.id %> --all --output=validation-report.md"
1902
- ],
1903
- "flags": {
1904
- "all": {
1905
- "char": "a",
1906
- "description": "Validate all tests",
1907
- "name": "all",
1908
- "allowNo": false,
1909
- "type": "boolean"
1910
- },
1911
- "type": {
1912
- "char": "t",
1913
- "description": "Validate tests by type",
1914
- "name": "type",
1915
- "hasDynamicHelp": false,
1916
- "multiple": false,
1917
- "type": "option"
1918
- },
1919
- "save-report": {
1920
- "description": "Save validation report to file",
1921
- "name": "save-report",
1922
- "allowNo": false,
1923
- "type": "boolean"
1924
- },
1925
- "format": {
1926
- "char": "f",
1927
- "description": "Output format",
1928
- "name": "format",
1929
- "default": "console",
1930
- "hasDynamicHelp": false,
1931
- "multiple": false,
1932
- "options": [
1933
- "console",
1934
- "json",
1935
- "markdown"
1936
- ],
1937
- "type": "option"
1938
- },
1939
- "output": {
1940
- "char": "o",
1941
- "description": "Output file path",
1942
- "name": "output",
1943
- "hasDynamicHelp": false,
1944
- "multiple": false,
1945
- "type": "option"
1946
- },
1947
- "verbose": {
1948
- "char": "v",
1949
- "description": "Show detailed information",
1950
- "name": "verbose",
1951
- "allowNo": false,
1952
- "type": "boolean"
1953
- }
1954
- },
1955
- "hasDynamicHelp": false,
1956
- "hiddenAliases": [],
1957
- "id": "test:validate",
1958
- "pluginAlias": "@memberjunction/cli",
1959
- "pluginName": "@memberjunction/cli",
1960
- "pluginType": "core",
1961
- "strict": true,
1962
- "enableJsonFlag": false,
1963
- "isESM": false,
1964
- "relativePath": [
1965
- "dist",
1966
- "commands",
1967
- "test",
1968
- "validate.js"
1969
- ]
1970
- },
1971
- "ai:agents:list": {
1972
- "aliases": [],
1973
- "args": {},
1974
- "description": "List available AI agents",
1975
- "examples": [
1976
- "<%= config.bin %> <%= command.id %>",
1977
- "<%= config.bin %> <%= command.id %> --output=table",
1978
- "<%= config.bin %> <%= command.id %> --output=json"
1979
- ],
1980
- "flags": {
1981
- "output": {
1982
- "char": "o",
1983
- "description": "Output format",
1984
- "name": "output",
1985
- "default": "compact",
1986
- "hasDynamicHelp": false,
1987
- "multiple": false,
1988
- "options": [
1989
- "compact",
1990
- "json",
1991
- "table"
1992
- ],
1993
- "type": "option"
1994
- }
1995
- },
1996
- "hasDynamicHelp": false,
1997
- "hiddenAliases": [],
1998
- "id": "ai:agents:list",
1999
- "pluginAlias": "@memberjunction/cli",
2000
- "pluginName": "@memberjunction/cli",
2001
- "pluginType": "core",
2002
- "strict": true,
2003
- "enableJsonFlag": false,
2004
- "isESM": false,
2005
- "relativePath": [
2006
- "dist",
2007
- "commands",
2008
- "ai",
2009
- "agents",
2010
- "list.js"
2011
- ]
2012
- },
2013
- "ai:agents:run": {
2014
- "aliases": [],
2015
- "args": {},
2016
- "description": "Execute an AI agent with a prompt or start interactive chat",
2017
- "examples": [
2018
- "<%= config.bin %> <%= command.id %> -a \"Skip: Requirements Expert\" -p \"Create a dashboard for sales metrics\"",
2019
- "<%= config.bin %> <%= command.id %> -a \"Child Component Generator Sub-agent\" --chat",
2020
- "<%= config.bin %> <%= command.id %> -a \"Skip: Technical Design Expert\" -p \"Build a React component\" --verbose --timeout=600000"
2021
- ],
2022
- "flags": {
2023
- "agent": {
2024
- "char": "a",
2025
- "description": "Agent name",
2026
- "name": "agent",
2027
- "required": true,
2028
- "hasDynamicHelp": false,
2029
- "multiple": false,
2030
- "type": "option"
2031
- },
2032
- "prompt": {
2033
- "char": "p",
2034
- "description": "Prompt to execute",
2035
- "exclusive": [
2036
- "chat"
2037
- ],
2038
- "name": "prompt",
2039
- "hasDynamicHelp": false,
2040
- "multiple": false,
2041
- "type": "option"
2042
- },
2043
- "chat": {
2044
- "char": "c",
2045
- "description": "Start interactive chat mode",
2046
- "exclusive": [
2047
- "prompt"
2048
- ],
2049
- "name": "chat",
2050
- "allowNo": false,
2051
- "type": "boolean"
2052
- },
2053
- "output": {
2054
- "char": "o",
2055
- "description": "Output format",
2056
- "name": "output",
2057
- "default": "compact",
2058
- "hasDynamicHelp": false,
2059
- "multiple": false,
2060
- "options": [
2061
- "compact",
2062
- "json",
2063
- "table"
2064
- ],
2065
- "type": "option"
2066
- },
2067
- "verbose": {
2068
- "char": "v",
2069
- "description": "Show detailed execution information",
2070
- "name": "verbose",
2071
- "allowNo": false,
2072
- "type": "boolean"
2073
- },
2074
- "timeout": {
2075
- "description": "Execution timeout in milliseconds",
2076
- "name": "timeout",
2077
- "default": 300000,
2078
- "hasDynamicHelp": false,
2079
- "multiple": false,
2080
- "type": "option"
2081
- }
2082
- },
2083
- "hasDynamicHelp": false,
2084
- "hiddenAliases": [],
2085
- "id": "ai:agents:run",
2086
- "pluginAlias": "@memberjunction/cli",
2087
- "pluginName": "@memberjunction/cli",
2088
- "pluginType": "core",
2089
- "strict": true,
2090
- "enableJsonFlag": false,
2091
- "isESM": false,
2092
- "relativePath": [
2093
- "dist",
2094
- "commands",
2095
- "ai",
2096
- "agents",
2097
- "run.js"
2098
- ]
2099
- },
2100
- "ai:audit:agent-run": {
2101
- "aliases": [],
2102
- "args": {
2103
- "runId": {
2104
- "description": "AI Agent Run ID to audit (UUID)",
2105
- "name": "runId",
2106
- "required": false
2107
- }
2108
- },
2109
- "description": "Audit and analyze AI agent execution runs for debugging and performance analysis",
2110
- "examples": [
2111
- "<%= config.bin %> <%= command.id %> abc-123-def-456",
2112
- "<%= config.bin %> <%= command.id %> abc-123-def-456 --output=markdown",
2113
- "<%= config.bin %> <%= command.id %> abc-123-def-456 --step 3",
2114
- "<%= config.bin %> <%= command.id %> abc-123-def-456 --step 3 --detail full",
2115
- "<%= config.bin %> <%= command.id %> abc-123-def-456 --errors",
2116
- "<%= config.bin %> <%= command.id %> --list --agent \"Skip: Requirements Expert\"",
2117
- "<%= config.bin %> <%= command.id %> --list --status failed --days 7",
2118
- "<%= config.bin %> <%= command.id %> abc-123-def-456 --export full --file report.json"
2119
- ],
2120
- "flags": {
2121
- "output": {
2122
- "char": "o",
2123
- "description": "Output format",
2124
- "name": "output",
2125
- "default": "compact",
2126
- "hasDynamicHelp": false,
2127
- "multiple": false,
2128
- "options": [
2129
- "compact",
2130
- "json",
2131
- "table",
2132
- "markdown"
2133
- ],
2134
- "type": "option"
2135
- },
2136
- "step": {
2137
- "char": "s",
2138
- "description": "Show details for specific step number (1-based index)",
2139
- "exclusive": [
2140
- "list",
2141
- "errors"
2142
- ],
2143
- "name": "step",
2144
- "hasDynamicHelp": false,
2145
- "multiple": false,
2146
- "type": "option"
2147
- },
2148
- "detail": {
2149
- "char": "d",
2150
- "dependsOn": [
2151
- "step"
2152
- ],
2153
- "description": "Detail level for step output (default: standard)",
2154
- "name": "detail",
2155
- "hasDynamicHelp": false,
2156
- "multiple": false,
2157
- "options": [
2158
- "minimal",
2159
- "standard",
2160
- "detailed",
2161
- "full"
2162
- ],
2163
- "type": "option"
2164
- },
2165
- "errors": {
2166
- "char": "e",
2167
- "description": "Show only error details and context",
2168
- "exclusive": [
2169
- "step",
2170
- "list"
2171
- ],
2172
- "name": "errors",
2173
- "allowNo": false,
2174
- "type": "boolean"
2175
- },
2176
- "list": {
2177
- "char": "l",
2178
- "description": "List recent agent runs",
2179
- "exclusive": [
2180
- "step",
2181
- "errors"
2182
- ],
2183
- "name": "list",
2184
- "allowNo": false,
2185
- "type": "boolean"
2186
- },
2187
- "agent": {
2188
- "char": "a",
2189
- "dependsOn": [
2190
- "list"
2191
- ],
2192
- "description": "Filter by agent name",
2193
- "name": "agent",
2194
- "hasDynamicHelp": false,
2195
- "multiple": false,
2196
- "type": "option"
2197
- },
2198
- "status": {
2199
- "dependsOn": [
2200
- "list"
2201
- ],
2202
- "description": "Filter by run status",
2203
- "name": "status",
2204
- "default": "all",
2205
- "hasDynamicHelp": false,
2206
- "multiple": false,
2207
- "options": [
2208
- "success",
2209
- "failed",
2210
- "running",
2211
- "all"
2212
- ],
2213
- "type": "option"
2214
- },
2215
- "days": {
2216
- "dependsOn": [
2217
- "list"
2218
- ],
2219
- "description": "Number of days to look back",
2220
- "name": "days",
2221
- "default": 7,
2222
- "hasDynamicHelp": false,
2223
- "multiple": false,
2224
- "type": "option"
2225
- },
2226
- "limit": {
2227
- "dependsOn": [
2228
- "list"
2229
- ],
2230
- "description": "Maximum number of runs to return",
2231
- "name": "limit",
2232
- "default": 50,
2233
- "hasDynamicHelp": false,
2234
- "multiple": false,
2235
- "type": "option"
2236
- },
2237
- "export": {
2238
- "dependsOn": [
2239
- "file"
2240
- ],
2241
- "description": "Export full data to file",
2242
- "name": "export",
2243
- "hasDynamicHelp": false,
2244
- "multiple": false,
2245
- "options": [
2246
- "full",
2247
- "summary",
2248
- "steps"
2249
- ],
2250
- "type": "option"
2251
- },
2252
- "file": {
2253
- "char": "f",
2254
- "description": "Output file path for export",
2255
- "name": "file",
2256
- "hasDynamicHelp": false,
2257
- "multiple": false,
2258
- "type": "option"
2259
- },
2260
- "max-tokens": {
2261
- "description": "Maximum tokens per field (0 = no limit)",
2262
- "name": "max-tokens",
2263
- "default": 5000,
2264
- "hasDynamicHelp": false,
2265
- "multiple": false,
2266
- "type": "option"
2267
- },
2268
- "verbose": {
2269
- "char": "v",
2270
- "description": "Show detailed diagnostic information",
2271
- "name": "verbose",
2272
- "allowNo": false,
2273
- "type": "boolean"
2274
- }
2275
- },
2276
- "hasDynamicHelp": false,
2277
- "hiddenAliases": [],
2278
- "id": "ai:audit:agent-run",
2279
- "pluginAlias": "@memberjunction/cli",
2280
- "pluginName": "@memberjunction/cli",
2281
- "pluginType": "core",
2282
- "strict": true,
2283
- "enableJsonFlag": false,
2284
- "isESM": false,
2285
- "relativePath": [
2286
- "dist",
2287
- "commands",
2288
- "ai",
2289
- "audit",
2290
- "agent-run.js"
2291
- ]
2292
- },
2293
- "ai:audit": {
2294
- "aliases": [],
2295
- "args": {},
2296
- "description": "Analyze and audit AI agent runs, prompts, and actions for debugging and performance analysis",
2297
- "flags": {},
2298
- "hasDynamicHelp": false,
2299
- "hidden": false,
2300
- "hiddenAliases": [],
2301
- "id": "ai:audit",
2302
- "pluginAlias": "@memberjunction/cli",
2303
- "pluginName": "@memberjunction/cli",
2304
- "pluginType": "core",
2305
- "strict": true,
2306
- "enableJsonFlag": false,
2307
- "isESM": false,
2308
- "relativePath": [
2309
- "dist",
2310
- "commands",
2311
- "ai",
2312
- "audit",
2313
- "index.js"
2314
- ]
2315
- },
2316
- "ai:actions:list": {
2317
- "aliases": [],
2318
- "args": {},
2319
- "description": "List available AI actions",
2320
- "examples": [
2321
- "<%= config.bin %> <%= command.id %>",
2322
- "<%= config.bin %> <%= command.id %> --output=table",
2323
- "<%= config.bin %> <%= command.id %> --output=json"
2324
- ],
2325
- "flags": {
2326
- "output": {
2327
- "char": "o",
2328
- "description": "Output format",
2329
- "name": "output",
2330
- "default": "compact",
2331
- "hasDynamicHelp": false,
2332
- "multiple": false,
2333
- "options": [
2334
- "compact",
2335
- "json",
2336
- "table"
2337
- ],
2338
- "type": "option"
2339
- }
2340
- },
2341
- "hasDynamicHelp": false,
2342
- "hiddenAliases": [],
2343
- "id": "ai:actions:list",
2344
- "pluginAlias": "@memberjunction/cli",
2345
- "pluginName": "@memberjunction/cli",
2346
- "pluginType": "core",
2347
- "strict": true,
2348
- "enableJsonFlag": false,
2349
- "isESM": false,
2350
- "relativePath": [
2351
- "dist",
2352
- "commands",
2353
- "ai",
2354
- "actions",
2355
- "list.js"
2356
- ]
2357
- },
2358
- "ai:actions:run": {
2359
- "aliases": [],
2360
- "args": {},
2361
- "description": "Execute an AI action with parameters",
2362
- "examples": [
2363
- "<%= config.bin %> <%= command.id %> -n \"Get Weather\" --param \"Location=Boston\"",
2364
- "<%= config.bin %> <%= command.id %> -n \"Get Stock Price\" --param \"Ticker=AAPL\"",
2365
- "<%= 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\"",
2366
- "<%= config.bin %> <%= command.id %> -n \"Calculate Expression\" --param \"Expression=2+2*3\" --dry-run"
2367
- ],
2368
- "flags": {
2369
- "name": {
2370
- "char": "n",
2371
- "description": "Action name",
2372
- "name": "name",
2373
- "required": true,
2374
- "hasDynamicHelp": false,
2375
- "multiple": false,
2376
- "type": "option"
2377
- },
2378
- "param": {
2379
- "char": "p",
2380
- "description": "Action parameters in key=value format",
2381
- "name": "param",
2382
- "hasDynamicHelp": false,
2383
- "multiple": true,
2384
- "type": "option"
2385
- },
2386
- "dry-run": {
2387
- "description": "Validate without executing",
2388
- "name": "dry-run",
2389
- "allowNo": false,
2390
- "type": "boolean"
2391
- },
2392
- "output": {
2393
- "char": "o",
2394
- "description": "Output format",
2395
- "name": "output",
2396
- "default": "compact",
2397
- "hasDynamicHelp": false,
2398
- "multiple": false,
2399
- "options": [
2400
- "compact",
2401
- "json",
2402
- "table"
2403
- ],
2404
- "type": "option"
2405
- },
2406
- "verbose": {
2407
- "char": "v",
2408
- "description": "Show detailed execution information",
2409
- "name": "verbose",
2410
- "allowNo": false,
2411
- "type": "boolean"
2412
- },
2413
- "timeout": {
2414
- "description": "Execution timeout in milliseconds",
2415
- "name": "timeout",
2416
- "default": 300000,
2417
- "hasDynamicHelp": false,
2418
- "multiple": false,
2419
- "type": "option"
2420
- }
2421
- },
2422
- "hasDynamicHelp": false,
2423
- "hiddenAliases": [],
2424
- "id": "ai:actions:run",
2425
- "pluginAlias": "@memberjunction/cli",
2426
- "pluginName": "@memberjunction/cli",
2427
- "pluginType": "core",
2428
- "strict": true,
2429
- "enableJsonFlag": false,
2430
- "isESM": false,
2431
- "relativePath": [
2432
- "dist",
2433
- "commands",
2434
- "ai",
2435
- "actions",
2436
- "run.js"
2437
- ]
2438
- },
2439
- "ai:prompts:list": {
2440
- "aliases": [],
2441
- "args": {},
2442
- "description": "List available models for prompt execution",
2443
- "examples": [
2444
- "<%= config.bin %> <%= command.id %>"
2445
- ],
2446
- "flags": {
2447
- "verbose": {
2448
- "char": "v",
2449
- "description": "Show detailed model information",
2450
- "name": "verbose",
2451
- "allowNo": false,
2452
- "type": "boolean"
2453
- }
2454
- },
2455
- "hasDynamicHelp": false,
2456
- "hiddenAliases": [],
2457
- "id": "ai:prompts:list",
2458
- "pluginAlias": "@memberjunction/cli",
2459
- "pluginName": "@memberjunction/cli",
2460
- "pluginType": "core",
2461
- "strict": true,
2462
- "enableJsonFlag": false,
2463
- "isESM": false,
2464
- "relativePath": [
2465
- "dist",
2466
- "commands",
2467
- "ai",
2468
- "prompts",
2469
- "list.js"
2470
- ]
2471
- },
2472
- "ai:prompts:run": {
2473
- "aliases": [],
2474
- "args": {},
2475
- "description": "Execute a direct prompt with an AI model",
2476
- "examples": [
2477
- "<%= config.bin %> <%= command.id %> -p \"Explain quantum computing in simple terms\"",
2478
- "<%= config.bin %> <%= command.id %> -p \"Write a Python function to sort a list\" --model \"gpt-4\"",
2479
- "<%= config.bin %> <%= command.id %> -p \"Translate to French: Hello world\" --temperature 0.3",
2480
- "<%= config.bin %> <%= command.id %> -p \"Generate a haiku\" --system \"You are a poet\" --max-tokens 100"
2481
- ],
2482
- "flags": {
2483
- "prompt": {
2484
- "char": "p",
2485
- "description": "The prompt to execute",
2486
- "name": "prompt",
2487
- "required": true,
2488
- "hasDynamicHelp": false,
2489
- "multiple": false,
2490
- "type": "option"
2491
- },
2492
- "model": {
2493
- "char": "m",
2494
- "description": "AI model to use (e.g., gpt-4, claude-3-opus)",
2495
- "name": "model",
2496
- "hasDynamicHelp": false,
2497
- "multiple": false,
2498
- "type": "option"
2499
- },
2500
- "system": {
2501
- "char": "s",
2502
- "description": "System prompt to set context",
2503
- "name": "system",
2504
- "hasDynamicHelp": false,
2505
- "multiple": false,
2506
- "type": "option"
2507
- },
2508
- "temperature": {
2509
- "char": "t",
2510
- "description": "Temperature for response creativity (0.0-2.0)",
2511
- "name": "temperature",
2512
- "hasDynamicHelp": false,
2513
- "multiple": false,
2514
- "type": "option"
2515
- },
2516
- "max-tokens": {
2517
- "description": "Maximum tokens for the response",
2518
- "name": "max-tokens",
2519
- "hasDynamicHelp": false,
2520
- "multiple": false,
2521
- "type": "option"
2522
- },
2523
- "configuration": {
2524
- "char": "c",
2525
- "description": "AI Configuration ID to use",
2526
- "name": "configuration",
2527
- "hasDynamicHelp": false,
2528
- "multiple": false,
2529
- "type": "option"
2530
- },
2531
- "output": {
2532
- "char": "o",
2533
- "description": "Output format",
2534
- "name": "output",
2535
- "default": "compact",
2536
- "hasDynamicHelp": false,
2537
- "multiple": false,
2538
- "options": [
2539
- "compact",
2540
- "json",
2541
- "table"
2542
- ],
2543
- "type": "option"
2544
- },
2545
- "verbose": {
2546
- "char": "v",
2547
- "description": "Show detailed execution information",
2548
- "name": "verbose",
2549
- "allowNo": false,
2550
- "type": "boolean"
2551
- },
2552
- "timeout": {
2553
- "description": "Execution timeout in milliseconds",
2554
- "name": "timeout",
2555
- "default": 300000,
2556
- "hasDynamicHelp": false,
2557
- "multiple": false,
2558
- "type": "option"
2559
- }
2560
- },
2561
- "hasDynamicHelp": false,
2562
- "hiddenAliases": [],
2563
- "id": "ai:prompts:run",
2564
- "pluginAlias": "@memberjunction/cli",
2565
- "pluginName": "@memberjunction/cli",
2566
- "pluginType": "core",
2567
- "strict": true,
2568
- "enableJsonFlag": false,
2569
- "isESM": false,
2570
- "relativePath": [
2571
- "dist",
2572
- "commands",
2573
- "ai",
2574
- "prompts",
2575
- "run.js"
2576
- ]
2577
- }
2578
- },
2579
- "version": "3.4.0"
2580
- }