@memberjunction/cli 4.3.1 → 5.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/README.md +130 -0
- package/bin/dev.cmd +2 -2
- package/bin/run.cmd +3 -3
- package/dist/commands/clean/index.d.ts +0 -2
- package/dist/commands/clean/index.d.ts.map +1 -1
- package/dist/commands/clean/index.js +31 -19
- package/dist/commands/clean/index.js.map +1 -1
- package/dist/commands/codegen/5-0-fix-entity-names.d.ts +17 -0
- package/dist/commands/codegen/5-0-fix-entity-names.d.ts.map +1 -0
- package/dist/commands/codegen/5-0-fix-entity-names.js +104 -0
- package/dist/commands/codegen/5-0-fix-entity-names.js.map +1 -0
- package/dist/commands/codegen/5-0-fix-html-entity-names.d.ts +17 -0
- package/dist/commands/codegen/5-0-fix-html-entity-names.d.ts.map +1 -0
- package/dist/commands/codegen/5-0-fix-html-entity-names.js +92 -0
- package/dist/commands/codegen/5-0-fix-html-entity-names.js.map +1 -0
- package/dist/commands/codegen/5-0-fix-metadata-names.d.ts +17 -0
- package/dist/commands/codegen/5-0-fix-metadata-names.d.ts.map +1 -0
- package/dist/commands/codegen/5-0-fix-metadata-names.js +93 -0
- package/dist/commands/codegen/5-0-fix-metadata-names.js.map +1 -0
- package/dist/commands/codegen/index.d.ts +4 -1
- package/dist/commands/codegen/index.d.ts.map +1 -1
- package/dist/commands/codegen/index.js +30 -5
- package/dist/commands/codegen/index.js.map +1 -1
- package/dist/commands/codegen/manifest.d.ts +4 -1
- package/dist/commands/codegen/manifest.d.ts.map +1 -1
- package/dist/commands/codegen/manifest.js +34 -11
- package/dist/commands/codegen/manifest.js.map +1 -1
- package/dist/commands/migrate/index.d.ts +5 -1
- package/dist/commands/migrate/index.d.ts.map +1 -1
- package/dist/commands/migrate/index.js +102 -229
- package/dist/commands/migrate/index.js.map +1 -1
- package/dist/commands/sync/init.js +1 -1
- package/dist/commands/sync/init.js.map +1 -1
- package/dist/commands/sync/pull.js +4 -4
- package/dist/commands/sync/pull.js.map +1 -1
- package/dist/config.d.ts +15 -4
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +50 -48
- package/dist/config.js.map +1 -1
- package/dist/light-commands.d.ts +1 -1
- package/dist/light-commands.js +2 -2
- package/dist/light-commands.js.map +1 -1
- package/oclif.manifest.json +425 -181
- package/package.json +12 -12
package/oclif.manifest.json
CHANGED
|
@@ -22,6 +22,38 @@
|
|
|
22
22
|
"index.js"
|
|
23
23
|
]
|
|
24
24
|
},
|
|
25
|
+
"clean": {
|
|
26
|
+
"aliases": [],
|
|
27
|
+
"args": {},
|
|
28
|
+
"description": "Resets the MemberJunction database to a pre-installation state",
|
|
29
|
+
"examples": [
|
|
30
|
+
"<%= config.bin %> <%= command.id %>\n"
|
|
31
|
+
],
|
|
32
|
+
"flags": {
|
|
33
|
+
"verbose": {
|
|
34
|
+
"char": "v",
|
|
35
|
+
"description": "Enable additional logging",
|
|
36
|
+
"name": "verbose",
|
|
37
|
+
"allowNo": false,
|
|
38
|
+
"type": "boolean"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"hasDynamicHelp": false,
|
|
42
|
+
"hiddenAliases": [],
|
|
43
|
+
"id": "clean",
|
|
44
|
+
"pluginAlias": "@memberjunction/cli",
|
|
45
|
+
"pluginName": "@memberjunction/cli",
|
|
46
|
+
"pluginType": "core",
|
|
47
|
+
"strict": true,
|
|
48
|
+
"enableJsonFlag": false,
|
|
49
|
+
"isESM": true,
|
|
50
|
+
"relativePath": [
|
|
51
|
+
"dist",
|
|
52
|
+
"commands",
|
|
53
|
+
"clean",
|
|
54
|
+
"index.js"
|
|
55
|
+
]
|
|
56
|
+
},
|
|
25
57
|
"bump": {
|
|
26
58
|
"aliases": [],
|
|
27
59
|
"args": {},
|
|
@@ -94,17 +126,135 @@
|
|
|
94
126
|
"index.js"
|
|
95
127
|
]
|
|
96
128
|
},
|
|
97
|
-
"
|
|
129
|
+
"codegen:5-0-fix-entity-names": {
|
|
98
130
|
"aliases": [],
|
|
99
131
|
"args": {},
|
|
100
|
-
"description": "
|
|
132
|
+
"description": "[v5.0 Migration] Scan TypeScript files for entity names AND class names that need updating.\n\nThree strategies are applied:\n 1. Class name renames (regex) — ActionEntity -> MJActionEntity, ActionSchema -> MJActionSchema, etc.\n 2. Multi-word entity name renames (regex) — 'AI Models' -> 'MJ: AI Models'\n 3. Single-word entity name renames (AST) — 'Actions' -> 'MJ: Actions' in GetEntityObject, OpenEntityRecord,\n navigateToEntity, EntityName: assignments, .Name === comparisons, @RegisterClass decorators.\n\nThe rename map (272 entries) is built from entity_subclasses.ts @RegisterClass decorators plus\nan embedded rename map for class name prefixes. Runs in dry-run mode by default; use --fix to apply.",
|
|
101
133
|
"examples": [
|
|
102
|
-
|
|
134
|
+
{
|
|
135
|
+
"description": "Dry-run scan of the packages directory",
|
|
136
|
+
"command": "<%= config.bin %> <%= command.id %> --path packages/"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"description": "Scan a single file",
|
|
140
|
+
"command": "<%= config.bin %> <%= command.id %> --path packages/Angular/Explorer/dashboards/src/Actions/components/actions-overview.component.ts"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"description": "Apply fixes across the codebase",
|
|
144
|
+
"command": "<%= config.bin %> <%= command.id %> --path packages/ --fix"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"description": "Quiet mode (summary only)",
|
|
148
|
+
"command": "<%= config.bin %> <%= command.id %> --path packages/ -q"
|
|
149
|
+
}
|
|
150
|
+
],
|
|
151
|
+
"flags": {
|
|
152
|
+
"path": {
|
|
153
|
+
"char": "p",
|
|
154
|
+
"description": "File or directory to scan. Accepts a single .ts file or a directory (scanned recursively). Defaults to the current working directory.",
|
|
155
|
+
"name": "path",
|
|
156
|
+
"hasDynamicHelp": false,
|
|
157
|
+
"multiple": false,
|
|
158
|
+
"type": "option"
|
|
159
|
+
},
|
|
160
|
+
"fix": {
|
|
161
|
+
"description": "Apply fixes in place. Without this flag, the command runs in dry-run mode and only reports findings.",
|
|
162
|
+
"name": "fix",
|
|
163
|
+
"allowNo": false,
|
|
164
|
+
"type": "boolean"
|
|
165
|
+
},
|
|
166
|
+
"entity-subclasses": {
|
|
167
|
+
"description": "Explicit path to entity_subclasses.ts for building the rename map. If omitted, the tool searches common locations relative to the target path.",
|
|
168
|
+
"name": "entity-subclasses",
|
|
169
|
+
"hasDynamicHelp": false,
|
|
170
|
+
"multiple": false,
|
|
171
|
+
"type": "option"
|
|
172
|
+
},
|
|
173
|
+
"quiet": {
|
|
174
|
+
"char": "q",
|
|
175
|
+
"description": "Suppress detailed per-file output; only show the final summary counts.",
|
|
176
|
+
"name": "quiet",
|
|
177
|
+
"allowNo": false,
|
|
178
|
+
"type": "boolean"
|
|
179
|
+
},
|
|
180
|
+
"verbose": {
|
|
181
|
+
"char": "v",
|
|
182
|
+
"description": "Show detailed progress including each file being scanned.",
|
|
183
|
+
"name": "verbose",
|
|
184
|
+
"allowNo": false,
|
|
185
|
+
"type": "boolean"
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
"hasDynamicHelp": false,
|
|
189
|
+
"hiddenAliases": [],
|
|
190
|
+
"id": "codegen:5-0-fix-entity-names",
|
|
191
|
+
"pluginAlias": "@memberjunction/cli",
|
|
192
|
+
"pluginName": "@memberjunction/cli",
|
|
193
|
+
"pluginType": "core",
|
|
194
|
+
"strict": true,
|
|
195
|
+
"enableJsonFlag": false,
|
|
196
|
+
"isESM": true,
|
|
197
|
+
"relativePath": [
|
|
198
|
+
"dist",
|
|
199
|
+
"commands",
|
|
200
|
+
"codegen",
|
|
201
|
+
"5-0-fix-entity-names.js"
|
|
202
|
+
]
|
|
203
|
+
},
|
|
204
|
+
"codegen:5-0-fix-html-entity-names": {
|
|
205
|
+
"aliases": [],
|
|
206
|
+
"args": {},
|
|
207
|
+
"description": "[v5.0 Migration] Scan Angular HTML template files for hardcoded entity names that need \"MJ: \" prefix updates.\n\nUses targeted regex patterns to find entity name references in template expressions\nand attribute values. Detects method calls like navigateToEntity('Actions'),\nOpenEntityRecord('Entities', id), and attribute values like RowsEntityName=\"Users\".\nRuns in dry-run mode by default; use --fix to apply.\n\nThe rename map is built dynamically from entity_subclasses.ts by parsing all\n@RegisterClass(BaseEntity, 'MJ: XYZ') decorators (~272 entries).",
|
|
208
|
+
"examples": [
|
|
209
|
+
{
|
|
210
|
+
"description": "Dry-run scan of Angular templates",
|
|
211
|
+
"command": "<%= config.bin %> <%= command.id %> --path packages/Angular/"
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"description": "Apply fixes to HTML templates",
|
|
215
|
+
"command": "<%= config.bin %> <%= command.id %> --path packages/Angular/ --fix"
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"description": "Scan with verbose output",
|
|
219
|
+
"command": "<%= config.bin %> <%= command.id %> --path packages/ -v"
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"description": "Scan a single template file",
|
|
223
|
+
"command": "<%= config.bin %> <%= command.id %> --path packages/Angular/Explorer/dashboards/src/Actions/actions-dashboard.component.html"
|
|
224
|
+
}
|
|
103
225
|
],
|
|
104
226
|
"flags": {
|
|
227
|
+
"path": {
|
|
228
|
+
"char": "p",
|
|
229
|
+
"description": "File or directory to scan. Accepts a single .html file or a directory (scanned recursively). Defaults to the current working directory.",
|
|
230
|
+
"name": "path",
|
|
231
|
+
"hasDynamicHelp": false,
|
|
232
|
+
"multiple": false,
|
|
233
|
+
"type": "option"
|
|
234
|
+
},
|
|
235
|
+
"fix": {
|
|
236
|
+
"description": "Apply fixes in place. Without this flag, the command runs in dry-run mode and only reports findings.",
|
|
237
|
+
"name": "fix",
|
|
238
|
+
"allowNo": false,
|
|
239
|
+
"type": "boolean"
|
|
240
|
+
},
|
|
241
|
+
"entity-subclasses": {
|
|
242
|
+
"description": "Explicit path to entity_subclasses.ts for building the rename map. If omitted, the tool searches common locations relative to the target path.",
|
|
243
|
+
"name": "entity-subclasses",
|
|
244
|
+
"hasDynamicHelp": false,
|
|
245
|
+
"multiple": false,
|
|
246
|
+
"type": "option"
|
|
247
|
+
},
|
|
248
|
+
"quiet": {
|
|
249
|
+
"char": "q",
|
|
250
|
+
"description": "Suppress detailed per-file output; only show the final summary counts.",
|
|
251
|
+
"name": "quiet",
|
|
252
|
+
"allowNo": false,
|
|
253
|
+
"type": "boolean"
|
|
254
|
+
},
|
|
105
255
|
"verbose": {
|
|
106
256
|
"char": "v",
|
|
107
|
-
"description": "
|
|
257
|
+
"description": "Show detailed progress including each file being scanned.",
|
|
108
258
|
"name": "verbose",
|
|
109
259
|
"allowNo": false,
|
|
110
260
|
"type": "boolean"
|
|
@@ -112,7 +262,7 @@
|
|
|
112
262
|
},
|
|
113
263
|
"hasDynamicHelp": false,
|
|
114
264
|
"hiddenAliases": [],
|
|
115
|
-
"id": "
|
|
265
|
+
"id": "codegen:5-0-fix-html-entity-names",
|
|
116
266
|
"pluginAlias": "@memberjunction/cli",
|
|
117
267
|
"pluginName": "@memberjunction/cli",
|
|
118
268
|
"pluginType": "core",
|
|
@@ -122,20 +272,102 @@
|
|
|
122
272
|
"relativePath": [
|
|
123
273
|
"dist",
|
|
124
274
|
"commands",
|
|
125
|
-
"
|
|
126
|
-
"
|
|
275
|
+
"codegen",
|
|
276
|
+
"5-0-fix-html-entity-names.js"
|
|
277
|
+
]
|
|
278
|
+
},
|
|
279
|
+
"codegen:5-0-fix-metadata-names": {
|
|
280
|
+
"aliases": [],
|
|
281
|
+
"args": {},
|
|
282
|
+
"description": "[v5.0 Migration] Scan metadata JSON files for entity names that need \"MJ: \" prefix updates.\n\nTargets the metadata/ directory used by \"mj sync\". Detects entity name references in\n@lookup: directives (both the entity name and lookup value), .mj-sync.json and\n.mj-folder.json config files (entity/entityName fields), relatedEntities object keys,\nand fields.Name values in Entities-managing folders. Runs in dry-run mode by default;\nuse --fix to apply.\n\nThe rename map is built dynamically from entity_subclasses.ts by parsing all\n@RegisterClass(BaseEntity, 'MJ: XYZ') decorators (~272 entries).",
|
|
283
|
+
"examples": [
|
|
284
|
+
{
|
|
285
|
+
"description": "Dry-run scan of the metadata directory",
|
|
286
|
+
"command": "<%= config.bin %> <%= command.id %> --path metadata/"
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
"description": "Apply fixes to metadata files",
|
|
290
|
+
"command": "<%= config.bin %> <%= command.id %> --path metadata/ --fix"
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"description": "Scan a specific subdirectory",
|
|
294
|
+
"command": "<%= config.bin %> <%= command.id %> --path metadata/resource-types"
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
"description": "Scan and fix a single metadata file",
|
|
298
|
+
"command": "<%= config.bin %> <%= command.id %> --path metadata/entities/.audit-related-entities.json --fix"
|
|
299
|
+
}
|
|
300
|
+
],
|
|
301
|
+
"flags": {
|
|
302
|
+
"path": {
|
|
303
|
+
"char": "p",
|
|
304
|
+
"description": "File or directory to scan. Accepts a single .json file or a directory (scanned recursively, including dotfiles like .mj-sync.json). Defaults to the current working directory.",
|
|
305
|
+
"name": "path",
|
|
306
|
+
"hasDynamicHelp": false,
|
|
307
|
+
"multiple": false,
|
|
308
|
+
"type": "option"
|
|
309
|
+
},
|
|
310
|
+
"fix": {
|
|
311
|
+
"description": "Apply fixes in place. Without this flag, the command runs in dry-run mode and only reports findings.",
|
|
312
|
+
"name": "fix",
|
|
313
|
+
"allowNo": false,
|
|
314
|
+
"type": "boolean"
|
|
315
|
+
},
|
|
316
|
+
"entity-subclasses": {
|
|
317
|
+
"description": "Explicit path to entity_subclasses.ts for building the rename map. If omitted, the tool searches common locations relative to the target path.",
|
|
318
|
+
"name": "entity-subclasses",
|
|
319
|
+
"hasDynamicHelp": false,
|
|
320
|
+
"multiple": false,
|
|
321
|
+
"type": "option"
|
|
322
|
+
},
|
|
323
|
+
"quiet": {
|
|
324
|
+
"char": "q",
|
|
325
|
+
"description": "Suppress detailed per-file output; only show the final summary counts.",
|
|
326
|
+
"name": "quiet",
|
|
327
|
+
"allowNo": false,
|
|
328
|
+
"type": "boolean"
|
|
329
|
+
},
|
|
330
|
+
"verbose": {
|
|
331
|
+
"char": "v",
|
|
332
|
+
"description": "Show detailed progress including each file being scanned.",
|
|
333
|
+
"name": "verbose",
|
|
334
|
+
"allowNo": false,
|
|
335
|
+
"type": "boolean"
|
|
336
|
+
}
|
|
337
|
+
},
|
|
338
|
+
"hasDynamicHelp": false,
|
|
339
|
+
"hiddenAliases": [],
|
|
340
|
+
"id": "codegen:5-0-fix-metadata-names",
|
|
341
|
+
"pluginAlias": "@memberjunction/cli",
|
|
342
|
+
"pluginName": "@memberjunction/cli",
|
|
343
|
+
"pluginType": "core",
|
|
344
|
+
"strict": true,
|
|
345
|
+
"enableJsonFlag": false,
|
|
346
|
+
"isESM": true,
|
|
347
|
+
"relativePath": [
|
|
348
|
+
"dist",
|
|
349
|
+
"commands",
|
|
350
|
+
"codegen",
|
|
351
|
+
"5-0-fix-metadata-names.js"
|
|
127
352
|
]
|
|
128
353
|
},
|
|
129
354
|
"codegen": {
|
|
130
355
|
"aliases": [],
|
|
131
356
|
"args": {},
|
|
132
|
-
"description": "Run
|
|
357
|
+
"description": "Run the full MemberJunction code generation pipeline.\n\nAnalyzes your SQL Server database schema, updates MemberJunction metadata, and\ngenerates synchronized code across the entire stack:\n\n - SQL views, stored procedures, indexes, and permissions\n - TypeScript entity classes with Zod validation schemas\n - Angular form components with AI-driven layouts\n - GraphQL resolvers and type definitions\n - Action subclasses and DB schema JSON\n\nConfiguration is loaded from mj.config.cjs in the current directory (or parent\ndirectories). Database connection can also be set via environment variables:\nDB_HOST, DB_DATABASE, CODEGEN_DB_USERNAME, CODEGEN_DB_PASSWORD.\n\nUse --skipdb to skip all database operations (metadata sync, SQL object\ngeneration) and only regenerate TypeScript, Angular, and GraphQL output from\nexisting metadata.",
|
|
133
358
|
"examples": [
|
|
134
|
-
|
|
359
|
+
{
|
|
360
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
361
|
+
"description": "Run the full code generation pipeline"
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
"command": "<%= config.bin %> <%= command.id %> --skipdb",
|
|
365
|
+
"description": "Regenerate code files without touching the database"
|
|
366
|
+
}
|
|
135
367
|
],
|
|
136
368
|
"flags": {
|
|
137
369
|
"skipdb": {
|
|
138
|
-
"description": "Skip database
|
|
370
|
+
"description": "Skip database operations (metadata sync, SQL generation). Only regenerate TypeScript entities, Angular components, and GraphQL resolvers from existing metadata.",
|
|
139
371
|
"name": "skipdb",
|
|
140
372
|
"allowNo": false,
|
|
141
373
|
"type": "boolean"
|
|
@@ -160,17 +392,29 @@
|
|
|
160
392
|
"codegen:manifest": {
|
|
161
393
|
"aliases": [],
|
|
162
394
|
"args": {},
|
|
163
|
-
"description": "Generate a class
|
|
395
|
+
"description": "Generate a class registration manifest to prevent tree-shaking.\n\nMemberJunction uses @RegisterClass decorators with a dynamic class factory.\nModern bundlers (ESBuild, Vite) cannot detect dynamic instantiation and will\ntree-shake these classes out of production builds. This command scans the\ndependency tree for all @RegisterClass-decorated classes and emits a manifest\nfile with static imports that the bundler cannot eliminate.\n\nTypically used as a prebuild/prestart script for MJAPI and MJExplorer. For\nMJ distribution users, pre-built manifests ship inside @memberjunction/server-bootstrap\nand @memberjunction/ng-bootstrap -- use --exclude-packages @memberjunction to\ngenerate a supplemental manifest covering only your own application classes.",
|
|
164
396
|
"examples": [
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
397
|
+
{
|
|
398
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
399
|
+
"description": "Generate manifest with default output path"
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
"command": "<%= config.bin %> <%= command.id %> --appDir ./packages/MJAPI --output ./packages/MJAPI/src/generated/class-registrations-manifest.ts",
|
|
403
|
+
"description": "Generate manifest for a specific application directory"
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
"command": "<%= config.bin %> <%= command.id %> --exclude-packages @memberjunction",
|
|
407
|
+
"description": "Exclude MJ packages (use pre-built bootstrap manifests instead)"
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
"command": "<%= config.bin %> <%= command.id %> --filter BaseEngine --filter BaseAction --verbose",
|
|
411
|
+
"description": "Only include specific base classes with detailed progress"
|
|
412
|
+
}
|
|
169
413
|
],
|
|
170
414
|
"flags": {
|
|
171
415
|
"output": {
|
|
172
416
|
"char": "o",
|
|
173
|
-
"description": "Output manifest file
|
|
417
|
+
"description": "Output file path for the generated manifest. The file will contain named imports and a CLASS_REGISTRATIONS array.",
|
|
174
418
|
"name": "output",
|
|
175
419
|
"default": "./src/generated/class-registrations-manifest.ts",
|
|
176
420
|
"hasDynamicHelp": false,
|
|
@@ -179,7 +423,7 @@
|
|
|
179
423
|
},
|
|
180
424
|
"appDir": {
|
|
181
425
|
"char": "a",
|
|
182
|
-
"description": "
|
|
426
|
+
"description": "Root directory of the application whose package.json dependency tree will be scanned. Defaults to the current working directory.",
|
|
183
427
|
"name": "appDir",
|
|
184
428
|
"hasDynamicHelp": false,
|
|
185
429
|
"multiple": false,
|
|
@@ -187,7 +431,7 @@
|
|
|
187
431
|
},
|
|
188
432
|
"filter": {
|
|
189
433
|
"char": "f",
|
|
190
|
-
"description": "Only include classes
|
|
434
|
+
"description": "Only include classes extending this base class. Can be repeated (e.g., --filter BaseEngine --filter BaseAction).",
|
|
191
435
|
"name": "filter",
|
|
192
436
|
"hasDynamicHelp": false,
|
|
193
437
|
"multiple": true,
|
|
@@ -195,7 +439,7 @@
|
|
|
195
439
|
},
|
|
196
440
|
"exclude-packages": {
|
|
197
441
|
"char": "e",
|
|
198
|
-
"description": "
|
|
442
|
+
"description": "Skip packages whose name starts with this prefix. Useful for excluding @memberjunction packages when using pre-built bootstrap manifests. Can be repeated.",
|
|
199
443
|
"name": "exclude-packages",
|
|
200
444
|
"hasDynamicHelp": false,
|
|
201
445
|
"multiple": true,
|
|
@@ -203,14 +447,14 @@
|
|
|
203
447
|
},
|
|
204
448
|
"quiet": {
|
|
205
449
|
"char": "q",
|
|
206
|
-
"description": "Suppress all output",
|
|
450
|
+
"description": "Suppress all output except errors.",
|
|
207
451
|
"name": "quiet",
|
|
208
452
|
"allowNo": false,
|
|
209
453
|
"type": "boolean"
|
|
210
454
|
},
|
|
211
455
|
"verbose": {
|
|
212
456
|
"char": "v",
|
|
213
|
-
"description": "Show detailed progress including
|
|
457
|
+
"description": "Show detailed progress including per-package scanning info and skipped classes.",
|
|
214
458
|
"name": "verbose",
|
|
215
459
|
"allowNo": false,
|
|
216
460
|
"type": "boolean"
|
|
@@ -669,38 +913,6 @@
|
|
|
669
913
|
"status.js"
|
|
670
914
|
]
|
|
671
915
|
},
|
|
672
|
-
"install": {
|
|
673
|
-
"aliases": [],
|
|
674
|
-
"args": {},
|
|
675
|
-
"description": "Install MemberJunction",
|
|
676
|
-
"examples": [
|
|
677
|
-
"<%= config.bin %> <%= command.id %>\n"
|
|
678
|
-
],
|
|
679
|
-
"flags": {
|
|
680
|
-
"verbose": {
|
|
681
|
-
"char": "v",
|
|
682
|
-
"description": "Enable additional logging",
|
|
683
|
-
"name": "verbose",
|
|
684
|
-
"allowNo": false,
|
|
685
|
-
"type": "boolean"
|
|
686
|
-
}
|
|
687
|
-
},
|
|
688
|
-
"hasDynamicHelp": false,
|
|
689
|
-
"hiddenAliases": [],
|
|
690
|
-
"id": "install",
|
|
691
|
-
"pluginAlias": "@memberjunction/cli",
|
|
692
|
-
"pluginName": "@memberjunction/cli",
|
|
693
|
-
"pluginType": "core",
|
|
694
|
-
"strict": true,
|
|
695
|
-
"enableJsonFlag": false,
|
|
696
|
-
"isESM": true,
|
|
697
|
-
"relativePath": [
|
|
698
|
-
"dist",
|
|
699
|
-
"commands",
|
|
700
|
-
"install",
|
|
701
|
-
"index.js"
|
|
702
|
-
]
|
|
703
|
-
},
|
|
704
916
|
"migrate": {
|
|
705
917
|
"aliases": [],
|
|
706
918
|
"args": {},
|
|
@@ -758,6 +970,38 @@
|
|
|
758
970
|
"index.js"
|
|
759
971
|
]
|
|
760
972
|
},
|
|
973
|
+
"install": {
|
|
974
|
+
"aliases": [],
|
|
975
|
+
"args": {},
|
|
976
|
+
"description": "Install MemberJunction",
|
|
977
|
+
"examples": [
|
|
978
|
+
"<%= config.bin %> <%= command.id %>\n"
|
|
979
|
+
],
|
|
980
|
+
"flags": {
|
|
981
|
+
"verbose": {
|
|
982
|
+
"char": "v",
|
|
983
|
+
"description": "Enable additional logging",
|
|
984
|
+
"name": "verbose",
|
|
985
|
+
"allowNo": false,
|
|
986
|
+
"type": "boolean"
|
|
987
|
+
}
|
|
988
|
+
},
|
|
989
|
+
"hasDynamicHelp": false,
|
|
990
|
+
"hiddenAliases": [],
|
|
991
|
+
"id": "install",
|
|
992
|
+
"pluginAlias": "@memberjunction/cli",
|
|
993
|
+
"pluginName": "@memberjunction/cli",
|
|
994
|
+
"pluginType": "core",
|
|
995
|
+
"strict": true,
|
|
996
|
+
"enableJsonFlag": false,
|
|
997
|
+
"isESM": true,
|
|
998
|
+
"relativePath": [
|
|
999
|
+
"dist",
|
|
1000
|
+
"commands",
|
|
1001
|
+
"install",
|
|
1002
|
+
"index.js"
|
|
1003
|
+
]
|
|
1004
|
+
},
|
|
761
1005
|
"querygen:export": {
|
|
762
1006
|
"aliases": [],
|
|
763
1007
|
"args": {},
|
|
@@ -1069,12 +1313,12 @@
|
|
|
1069
1313
|
"args": {},
|
|
1070
1314
|
"description": "Pull metadata from database to local files",
|
|
1071
1315
|
"examples": [
|
|
1072
|
-
"<%= config.bin %> <%= command.id %> --entity=\"AI Prompts\"",
|
|
1073
|
-
"<%= config.bin %> <%= command.id %> --entity=\"AI Prompts\" --filter=\"CategoryID='customer-service-id'\"",
|
|
1074
|
-
"<%= config.bin %> <%= command.id %> --entity=\"AI Agents\" --merge-strategy=overwrite",
|
|
1316
|
+
"<%= config.bin %> <%= command.id %> --entity=\"MJ: AI Prompts\"",
|
|
1317
|
+
"<%= config.bin %> <%= command.id %> --entity=\"MJ: AI Prompts\" --filter=\"CategoryID='customer-service-id'\"",
|
|
1318
|
+
"<%= config.bin %> <%= command.id %> --entity=\"MJ: AI Agents\" --merge-strategy=overwrite",
|
|
1075
1319
|
"<%= config.bin %> <%= command.id %> --entity=\"Actions\" --target-dir=./custom-actions --no-validate",
|
|
1076
1320
|
"<%= config.bin %> <%= command.id %> --entity=\"Templates\" --dry-run --verbose",
|
|
1077
|
-
"<%= config.bin %> <%= command.id %> --entity=\"AI Prompts\" --exclude-fields=InternalNotes,DebugInfo"
|
|
1321
|
+
"<%= config.bin %> <%= command.id %> --entity=\"MJ: AI Prompts\" --exclude-fields=InternalNotes,DebugInfo"
|
|
1078
1322
|
],
|
|
1079
1323
|
"flags": {
|
|
1080
1324
|
"entity": {
|
|
@@ -1447,6 +1691,129 @@
|
|
|
1447
1691
|
"watch.js"
|
|
1448
1692
|
]
|
|
1449
1693
|
},
|
|
1694
|
+
"ai:actions:list": {
|
|
1695
|
+
"aliases": [],
|
|
1696
|
+
"args": {},
|
|
1697
|
+
"description": "List available AI actions",
|
|
1698
|
+
"examples": [
|
|
1699
|
+
"<%= config.bin %> <%= command.id %>",
|
|
1700
|
+
"<%= config.bin %> <%= command.id %> --output=table",
|
|
1701
|
+
"<%= config.bin %> <%= command.id %> --output=json"
|
|
1702
|
+
],
|
|
1703
|
+
"flags": {
|
|
1704
|
+
"output": {
|
|
1705
|
+
"char": "o",
|
|
1706
|
+
"description": "Output format",
|
|
1707
|
+
"name": "output",
|
|
1708
|
+
"default": "compact",
|
|
1709
|
+
"hasDynamicHelp": false,
|
|
1710
|
+
"multiple": false,
|
|
1711
|
+
"options": [
|
|
1712
|
+
"compact",
|
|
1713
|
+
"json",
|
|
1714
|
+
"table"
|
|
1715
|
+
],
|
|
1716
|
+
"type": "option"
|
|
1717
|
+
}
|
|
1718
|
+
},
|
|
1719
|
+
"hasDynamicHelp": false,
|
|
1720
|
+
"hiddenAliases": [],
|
|
1721
|
+
"id": "ai:actions:list",
|
|
1722
|
+
"pluginAlias": "@memberjunction/cli",
|
|
1723
|
+
"pluginName": "@memberjunction/cli",
|
|
1724
|
+
"pluginType": "core",
|
|
1725
|
+
"strict": true,
|
|
1726
|
+
"enableJsonFlag": false,
|
|
1727
|
+
"isESM": true,
|
|
1728
|
+
"relativePath": [
|
|
1729
|
+
"dist",
|
|
1730
|
+
"commands",
|
|
1731
|
+
"ai",
|
|
1732
|
+
"actions",
|
|
1733
|
+
"list.js"
|
|
1734
|
+
]
|
|
1735
|
+
},
|
|
1736
|
+
"ai:actions:run": {
|
|
1737
|
+
"aliases": [],
|
|
1738
|
+
"args": {},
|
|
1739
|
+
"description": "Execute an AI action with parameters",
|
|
1740
|
+
"examples": [
|
|
1741
|
+
"<%= config.bin %> <%= command.id %> -n \"Get Weather\" --param \"Location=Boston\"",
|
|
1742
|
+
"<%= config.bin %> <%= command.id %> -n \"Get Stock Price\" --param \"Ticker=AAPL\"",
|
|
1743
|
+
"<%= 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\"",
|
|
1744
|
+
"<%= config.bin %> <%= command.id %> -n \"Calculate Expression\" --param \"Expression=2+2*3\" --dry-run"
|
|
1745
|
+
],
|
|
1746
|
+
"flags": {
|
|
1747
|
+
"name": {
|
|
1748
|
+
"char": "n",
|
|
1749
|
+
"description": "Action name",
|
|
1750
|
+
"name": "name",
|
|
1751
|
+
"required": true,
|
|
1752
|
+
"hasDynamicHelp": false,
|
|
1753
|
+
"multiple": false,
|
|
1754
|
+
"type": "option"
|
|
1755
|
+
},
|
|
1756
|
+
"param": {
|
|
1757
|
+
"char": "p",
|
|
1758
|
+
"description": "Action parameters in key=value format",
|
|
1759
|
+
"name": "param",
|
|
1760
|
+
"hasDynamicHelp": false,
|
|
1761
|
+
"multiple": true,
|
|
1762
|
+
"type": "option"
|
|
1763
|
+
},
|
|
1764
|
+
"dry-run": {
|
|
1765
|
+
"description": "Validate without executing",
|
|
1766
|
+
"name": "dry-run",
|
|
1767
|
+
"allowNo": false,
|
|
1768
|
+
"type": "boolean"
|
|
1769
|
+
},
|
|
1770
|
+
"output": {
|
|
1771
|
+
"char": "o",
|
|
1772
|
+
"description": "Output format",
|
|
1773
|
+
"name": "output",
|
|
1774
|
+
"default": "compact",
|
|
1775
|
+
"hasDynamicHelp": false,
|
|
1776
|
+
"multiple": false,
|
|
1777
|
+
"options": [
|
|
1778
|
+
"compact",
|
|
1779
|
+
"json",
|
|
1780
|
+
"table"
|
|
1781
|
+
],
|
|
1782
|
+
"type": "option"
|
|
1783
|
+
},
|
|
1784
|
+
"verbose": {
|
|
1785
|
+
"char": "v",
|
|
1786
|
+
"description": "Show detailed execution information",
|
|
1787
|
+
"name": "verbose",
|
|
1788
|
+
"allowNo": false,
|
|
1789
|
+
"type": "boolean"
|
|
1790
|
+
},
|
|
1791
|
+
"timeout": {
|
|
1792
|
+
"description": "Execution timeout in milliseconds",
|
|
1793
|
+
"name": "timeout",
|
|
1794
|
+
"default": 300000,
|
|
1795
|
+
"hasDynamicHelp": false,
|
|
1796
|
+
"multiple": false,
|
|
1797
|
+
"type": "option"
|
|
1798
|
+
}
|
|
1799
|
+
},
|
|
1800
|
+
"hasDynamicHelp": false,
|
|
1801
|
+
"hiddenAliases": [],
|
|
1802
|
+
"id": "ai:actions:run",
|
|
1803
|
+
"pluginAlias": "@memberjunction/cli",
|
|
1804
|
+
"pluginName": "@memberjunction/cli",
|
|
1805
|
+
"pluginType": "core",
|
|
1806
|
+
"strict": true,
|
|
1807
|
+
"enableJsonFlag": false,
|
|
1808
|
+
"isESM": true,
|
|
1809
|
+
"relativePath": [
|
|
1810
|
+
"dist",
|
|
1811
|
+
"commands",
|
|
1812
|
+
"ai",
|
|
1813
|
+
"actions",
|
|
1814
|
+
"run.js"
|
|
1815
|
+
]
|
|
1816
|
+
},
|
|
1450
1817
|
"test:compare": {
|
|
1451
1818
|
"aliases": [],
|
|
1452
1819
|
"args": {
|
|
@@ -1990,129 +2357,6 @@
|
|
|
1990
2357
|
"validate.js"
|
|
1991
2358
|
]
|
|
1992
2359
|
},
|
|
1993
|
-
"ai:actions:list": {
|
|
1994
|
-
"aliases": [],
|
|
1995
|
-
"args": {},
|
|
1996
|
-
"description": "List available AI actions",
|
|
1997
|
-
"examples": [
|
|
1998
|
-
"<%= config.bin %> <%= command.id %>",
|
|
1999
|
-
"<%= config.bin %> <%= command.id %> --output=table",
|
|
2000
|
-
"<%= config.bin %> <%= command.id %> --output=json"
|
|
2001
|
-
],
|
|
2002
|
-
"flags": {
|
|
2003
|
-
"output": {
|
|
2004
|
-
"char": "o",
|
|
2005
|
-
"description": "Output format",
|
|
2006
|
-
"name": "output",
|
|
2007
|
-
"default": "compact",
|
|
2008
|
-
"hasDynamicHelp": false,
|
|
2009
|
-
"multiple": false,
|
|
2010
|
-
"options": [
|
|
2011
|
-
"compact",
|
|
2012
|
-
"json",
|
|
2013
|
-
"table"
|
|
2014
|
-
],
|
|
2015
|
-
"type": "option"
|
|
2016
|
-
}
|
|
2017
|
-
},
|
|
2018
|
-
"hasDynamicHelp": false,
|
|
2019
|
-
"hiddenAliases": [],
|
|
2020
|
-
"id": "ai:actions:list",
|
|
2021
|
-
"pluginAlias": "@memberjunction/cli",
|
|
2022
|
-
"pluginName": "@memberjunction/cli",
|
|
2023
|
-
"pluginType": "core",
|
|
2024
|
-
"strict": true,
|
|
2025
|
-
"enableJsonFlag": false,
|
|
2026
|
-
"isESM": true,
|
|
2027
|
-
"relativePath": [
|
|
2028
|
-
"dist",
|
|
2029
|
-
"commands",
|
|
2030
|
-
"ai",
|
|
2031
|
-
"actions",
|
|
2032
|
-
"list.js"
|
|
2033
|
-
]
|
|
2034
|
-
},
|
|
2035
|
-
"ai:actions:run": {
|
|
2036
|
-
"aliases": [],
|
|
2037
|
-
"args": {},
|
|
2038
|
-
"description": "Execute an AI action with parameters",
|
|
2039
|
-
"examples": [
|
|
2040
|
-
"<%= config.bin %> <%= command.id %> -n \"Get Weather\" --param \"Location=Boston\"",
|
|
2041
|
-
"<%= config.bin %> <%= command.id %> -n \"Get Stock Price\" --param \"Ticker=AAPL\"",
|
|
2042
|
-
"<%= 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\"",
|
|
2043
|
-
"<%= config.bin %> <%= command.id %> -n \"Calculate Expression\" --param \"Expression=2+2*3\" --dry-run"
|
|
2044
|
-
],
|
|
2045
|
-
"flags": {
|
|
2046
|
-
"name": {
|
|
2047
|
-
"char": "n",
|
|
2048
|
-
"description": "Action name",
|
|
2049
|
-
"name": "name",
|
|
2050
|
-
"required": true,
|
|
2051
|
-
"hasDynamicHelp": false,
|
|
2052
|
-
"multiple": false,
|
|
2053
|
-
"type": "option"
|
|
2054
|
-
},
|
|
2055
|
-
"param": {
|
|
2056
|
-
"char": "p",
|
|
2057
|
-
"description": "Action parameters in key=value format",
|
|
2058
|
-
"name": "param",
|
|
2059
|
-
"hasDynamicHelp": false,
|
|
2060
|
-
"multiple": true,
|
|
2061
|
-
"type": "option"
|
|
2062
|
-
},
|
|
2063
|
-
"dry-run": {
|
|
2064
|
-
"description": "Validate without executing",
|
|
2065
|
-
"name": "dry-run",
|
|
2066
|
-
"allowNo": false,
|
|
2067
|
-
"type": "boolean"
|
|
2068
|
-
},
|
|
2069
|
-
"output": {
|
|
2070
|
-
"char": "o",
|
|
2071
|
-
"description": "Output format",
|
|
2072
|
-
"name": "output",
|
|
2073
|
-
"default": "compact",
|
|
2074
|
-
"hasDynamicHelp": false,
|
|
2075
|
-
"multiple": false,
|
|
2076
|
-
"options": [
|
|
2077
|
-
"compact",
|
|
2078
|
-
"json",
|
|
2079
|
-
"table"
|
|
2080
|
-
],
|
|
2081
|
-
"type": "option"
|
|
2082
|
-
},
|
|
2083
|
-
"verbose": {
|
|
2084
|
-
"char": "v",
|
|
2085
|
-
"description": "Show detailed execution information",
|
|
2086
|
-
"name": "verbose",
|
|
2087
|
-
"allowNo": false,
|
|
2088
|
-
"type": "boolean"
|
|
2089
|
-
},
|
|
2090
|
-
"timeout": {
|
|
2091
|
-
"description": "Execution timeout in milliseconds",
|
|
2092
|
-
"name": "timeout",
|
|
2093
|
-
"default": 300000,
|
|
2094
|
-
"hasDynamicHelp": false,
|
|
2095
|
-
"multiple": false,
|
|
2096
|
-
"type": "option"
|
|
2097
|
-
}
|
|
2098
|
-
},
|
|
2099
|
-
"hasDynamicHelp": false,
|
|
2100
|
-
"hiddenAliases": [],
|
|
2101
|
-
"id": "ai:actions:run",
|
|
2102
|
-
"pluginAlias": "@memberjunction/cli",
|
|
2103
|
-
"pluginName": "@memberjunction/cli",
|
|
2104
|
-
"pluginType": "core",
|
|
2105
|
-
"strict": true,
|
|
2106
|
-
"enableJsonFlag": false,
|
|
2107
|
-
"isESM": true,
|
|
2108
|
-
"relativePath": [
|
|
2109
|
-
"dist",
|
|
2110
|
-
"commands",
|
|
2111
|
-
"ai",
|
|
2112
|
-
"actions",
|
|
2113
|
-
"run.js"
|
|
2114
|
-
]
|
|
2115
|
-
},
|
|
2116
2360
|
"ai:agents:list": {
|
|
2117
2361
|
"aliases": [],
|
|
2118
2362
|
"args": {},
|
|
@@ -2598,5 +2842,5 @@
|
|
|
2598
2842
|
]
|
|
2599
2843
|
}
|
|
2600
2844
|
},
|
|
2601
|
-
"version": "
|
|
2845
|
+
"version": "5.0.0"
|
|
2602
2846
|
}
|