@memberjunction/cli 5.4.1 → 5.5.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/dist/commands/doctor/index.d.ts +12 -0
- package/dist/commands/doctor/index.d.ts.map +1 -0
- package/dist/commands/doctor/index.js +69 -0
- package/dist/commands/doctor/index.js.map +1 -0
- package/dist/commands/install/index.d.ts +18 -136
- package/dist/commands/install/index.d.ts.map +1 -1
- package/dist/commands/install/index.js +189 -390
- package/dist/commands/install/index.js.map +1 -1
- package/dist/commands/sql-audit/index.d.ts +25 -0
- package/dist/commands/sql-audit/index.d.ts.map +1 -0
- package/dist/commands/sql-audit/index.js +198 -0
- package/dist/commands/sql-audit/index.js.map +1 -0
- package/dist/commands/sql-convert/index.d.ts +30 -0
- package/dist/commands/sql-convert/index.d.ts.map +1 -0
- package/dist/commands/sql-convert/index.js +128 -0
- package/dist/commands/sql-convert/index.js.map +1 -0
- package/dist/commands/translate-sql/index.d.ts +39 -0
- package/dist/commands/translate-sql/index.d.ts.map +1 -0
- package/dist/commands/translate-sql/index.js +229 -0
- package/dist/commands/translate-sql/index.js.map +1 -0
- package/dist/lib/legacy-install.d.ts +29 -0
- package/dist/lib/legacy-install.d.ts.map +1 -0
- package/dist/lib/legacy-install.js +391 -0
- package/dist/lib/legacy-install.js.map +1 -0
- package/dist/light-commands.d.ts.map +1 -1
- package/dist/light-commands.js +6 -1
- package/dist/light-commands.js.map +1 -1
- package/dist/translate-sql/classifier.d.ts +27 -0
- package/dist/translate-sql/classifier.d.ts.map +1 -0
- package/dist/translate-sql/classifier.js +118 -0
- package/dist/translate-sql/classifier.js.map +1 -0
- package/dist/translate-sql/groundTruth.d.ts +25 -0
- package/dist/translate-sql/groundTruth.d.ts.map +1 -0
- package/dist/translate-sql/groundTruth.js +93 -0
- package/dist/translate-sql/groundTruth.js.map +1 -0
- package/dist/translate-sql/index.d.ts +5 -0
- package/dist/translate-sql/index.d.ts.map +1 -0
- package/dist/translate-sql/index.js +5 -0
- package/dist/translate-sql/index.js.map +1 -0
- package/dist/translate-sql/reportGenerator.d.ts +26 -0
- package/dist/translate-sql/reportGenerator.d.ts.map +1 -0
- package/dist/translate-sql/reportGenerator.js +83 -0
- package/dist/translate-sql/reportGenerator.js.map +1 -0
- package/dist/translate-sql/ruleTranslator.d.ts +21 -0
- package/dist/translate-sql/ruleTranslator.d.ts.map +1 -0
- package/dist/translate-sql/ruleTranslator.js +74 -0
- package/dist/translate-sql/ruleTranslator.js.map +1 -0
- package/oclif.manifest.json +532 -168
- package/package.json +14 -12
package/oclif.manifest.json
CHANGED
|
@@ -1214,17 +1214,88 @@
|
|
|
1214
1214
|
"install": {
|
|
1215
1215
|
"aliases": [],
|
|
1216
1216
|
"args": {},
|
|
1217
|
-
"description": "Install MemberJunction",
|
|
1217
|
+
"description": "Install MemberJunction from a GitHub release",
|
|
1218
1218
|
"examples": [
|
|
1219
|
-
"<%= config.bin %> <%= command.id
|
|
1219
|
+
"<%= config.bin %> <%= command.id %>",
|
|
1220
|
+
"<%= config.bin %> <%= command.id %> -t v4.3.0",
|
|
1221
|
+
"<%= config.bin %> <%= command.id %> --dry-run",
|
|
1222
|
+
"<%= config.bin %> <%= command.id %> --yes"
|
|
1220
1223
|
],
|
|
1221
1224
|
"flags": {
|
|
1225
|
+
"tag": {
|
|
1226
|
+
"char": "t",
|
|
1227
|
+
"description": "Release tag to install (e.g. v4.3.0). If omitted, shows a version picker.",
|
|
1228
|
+
"name": "tag",
|
|
1229
|
+
"hasDynamicHelp": false,
|
|
1230
|
+
"multiple": false,
|
|
1231
|
+
"type": "option"
|
|
1232
|
+
},
|
|
1233
|
+
"dir": {
|
|
1234
|
+
"description": "Target directory for the installation",
|
|
1235
|
+
"name": "dir",
|
|
1236
|
+
"default": ".",
|
|
1237
|
+
"hasDynamicHelp": false,
|
|
1238
|
+
"multiple": false,
|
|
1239
|
+
"type": "option"
|
|
1240
|
+
},
|
|
1241
|
+
"config": {
|
|
1242
|
+
"char": "c",
|
|
1243
|
+
"description": "Path to JSON config file with install settings (database, auth, ports, etc.)",
|
|
1244
|
+
"name": "config",
|
|
1245
|
+
"hasDynamicHelp": false,
|
|
1246
|
+
"multiple": false,
|
|
1247
|
+
"type": "option"
|
|
1248
|
+
},
|
|
1249
|
+
"legacy": {
|
|
1250
|
+
"description": "Use the legacy interactive installer (ZIP-only distribution)",
|
|
1251
|
+
"hidden": true,
|
|
1252
|
+
"name": "legacy",
|
|
1253
|
+
"allowNo": false,
|
|
1254
|
+
"type": "boolean"
|
|
1255
|
+
},
|
|
1256
|
+
"dry-run": {
|
|
1257
|
+
"description": "Show the install plan without executing it",
|
|
1258
|
+
"name": "dry-run",
|
|
1259
|
+
"allowNo": false,
|
|
1260
|
+
"type": "boolean"
|
|
1261
|
+
},
|
|
1262
|
+
"yes": {
|
|
1263
|
+
"char": "y",
|
|
1264
|
+
"description": "Non-interactive mode: auto-select latest version and accept defaults",
|
|
1265
|
+
"name": "yes",
|
|
1266
|
+
"allowNo": false,
|
|
1267
|
+
"type": "boolean"
|
|
1268
|
+
},
|
|
1222
1269
|
"verbose": {
|
|
1223
1270
|
"char": "v",
|
|
1224
|
-
"description": "
|
|
1271
|
+
"description": "Show detailed output",
|
|
1225
1272
|
"name": "verbose",
|
|
1226
1273
|
"allowNo": false,
|
|
1227
1274
|
"type": "boolean"
|
|
1275
|
+
},
|
|
1276
|
+
"skip-db": {
|
|
1277
|
+
"description": "Skip database provisioning phases",
|
|
1278
|
+
"name": "skip-db",
|
|
1279
|
+
"allowNo": false,
|
|
1280
|
+
"type": "boolean"
|
|
1281
|
+
},
|
|
1282
|
+
"skip-start": {
|
|
1283
|
+
"description": "Skip service startup and smoke tests",
|
|
1284
|
+
"name": "skip-start",
|
|
1285
|
+
"allowNo": false,
|
|
1286
|
+
"type": "boolean"
|
|
1287
|
+
},
|
|
1288
|
+
"no-resume": {
|
|
1289
|
+
"description": "Ignore any existing checkpoint and start fresh",
|
|
1290
|
+
"name": "no-resume",
|
|
1291
|
+
"allowNo": false,
|
|
1292
|
+
"type": "boolean"
|
|
1293
|
+
},
|
|
1294
|
+
"fast": {
|
|
1295
|
+
"description": "Fast mode: skip smoke test and optimize post-codegen steps. Re-run without --fast if you encounter issues.",
|
|
1296
|
+
"name": "fast",
|
|
1297
|
+
"allowNo": false,
|
|
1298
|
+
"type": "boolean"
|
|
1228
1299
|
}
|
|
1229
1300
|
},
|
|
1230
1301
|
"hasDynamicHelp": false,
|
|
@@ -1243,28 +1314,27 @@
|
|
|
1243
1314
|
"index.js"
|
|
1244
1315
|
]
|
|
1245
1316
|
},
|
|
1246
|
-
"
|
|
1317
|
+
"doctor": {
|
|
1247
1318
|
"aliases": [],
|
|
1248
1319
|
"args": {},
|
|
1249
|
-
"description": "
|
|
1320
|
+
"description": "Diagnose a MemberJunction installation",
|
|
1250
1321
|
"examples": [
|
|
1251
1322
|
"<%= config.bin %> <%= command.id %>",
|
|
1252
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1323
|
+
"<%= config.bin %> <%= command.id %> --dir ./my-mj-project",
|
|
1253
1324
|
"<%= config.bin %> <%= command.id %> --verbose"
|
|
1254
1325
|
],
|
|
1255
1326
|
"flags": {
|
|
1256
|
-
"
|
|
1257
|
-
"
|
|
1258
|
-
"
|
|
1259
|
-
"
|
|
1260
|
-
"default": "./metadata/queries",
|
|
1327
|
+
"dir": {
|
|
1328
|
+
"description": "Target directory to diagnose",
|
|
1329
|
+
"name": "dir",
|
|
1330
|
+
"default": ".",
|
|
1261
1331
|
"hasDynamicHelp": false,
|
|
1262
1332
|
"multiple": false,
|
|
1263
1333
|
"type": "option"
|
|
1264
1334
|
},
|
|
1265
1335
|
"verbose": {
|
|
1266
1336
|
"char": "v",
|
|
1267
|
-
"description": "
|
|
1337
|
+
"description": "Show detailed output including suggested fixes inline",
|
|
1268
1338
|
"name": "verbose",
|
|
1269
1339
|
"allowNo": false,
|
|
1270
1340
|
"type": "boolean"
|
|
@@ -1272,7 +1342,7 @@
|
|
|
1272
1342
|
},
|
|
1273
1343
|
"hasDynamicHelp": false,
|
|
1274
1344
|
"hiddenAliases": [],
|
|
1275
|
-
"id": "
|
|
1345
|
+
"id": "doctor",
|
|
1276
1346
|
"pluginAlias": "@memberjunction/cli",
|
|
1277
1347
|
"pluginName": "@memberjunction/cli",
|
|
1278
1348
|
"pluginType": "core",
|
|
@@ -1282,126 +1352,121 @@
|
|
|
1282
1352
|
"relativePath": [
|
|
1283
1353
|
"dist",
|
|
1284
1354
|
"commands",
|
|
1285
|
-
"
|
|
1286
|
-
"
|
|
1355
|
+
"doctor",
|
|
1356
|
+
"index.js"
|
|
1287
1357
|
]
|
|
1288
1358
|
},
|
|
1289
|
-
"
|
|
1359
|
+
"migrate": {
|
|
1290
1360
|
"aliases": [],
|
|
1291
1361
|
"args": {},
|
|
1292
|
-
"description": "
|
|
1362
|
+
"description": "Migrate MemberJunction database to latest version",
|
|
1293
1363
|
"examples": [
|
|
1294
|
-
"<%= config.bin %> <%= command.id
|
|
1295
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1296
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1297
|
-
"<%= config.bin %> <%= command.id %> --mode database"
|
|
1364
|
+
"<%= config.bin %> <%= command.id %>\n",
|
|
1365
|
+
"<%= config.bin %> <%= command.id %> --schema __BCSaaS --dir ./migrations/v1\n",
|
|
1366
|
+
"<%= config.bin %> <%= command.id %> --schema __BCSaaS --tag v1.0.0\n"
|
|
1298
1367
|
],
|
|
1299
1368
|
"flags": {
|
|
1300
|
-
"
|
|
1301
|
-
"char": "
|
|
1302
|
-
"description": "
|
|
1303
|
-
"name": "
|
|
1304
|
-
"
|
|
1305
|
-
"
|
|
1306
|
-
"type": "option"
|
|
1369
|
+
"verbose": {
|
|
1370
|
+
"char": "v",
|
|
1371
|
+
"description": "Enable additional logging",
|
|
1372
|
+
"name": "verbose",
|
|
1373
|
+
"allowNo": false,
|
|
1374
|
+
"type": "boolean"
|
|
1307
1375
|
},
|
|
1308
|
-
"
|
|
1309
|
-
"char": "
|
|
1310
|
-
"description": "
|
|
1311
|
-
"name": "
|
|
1376
|
+
"tag": {
|
|
1377
|
+
"char": "t",
|
|
1378
|
+
"description": "Version tag to use for running remote migrations",
|
|
1379
|
+
"name": "tag",
|
|
1312
1380
|
"hasDynamicHelp": false,
|
|
1313
1381
|
"multiple": false,
|
|
1314
1382
|
"type": "option"
|
|
1315
1383
|
},
|
|
1316
|
-
"
|
|
1384
|
+
"schema": {
|
|
1317
1385
|
"char": "s",
|
|
1318
|
-
"description": "
|
|
1319
|
-
"name": "
|
|
1320
|
-
"hasDynamicHelp": false,
|
|
1321
|
-
"multiple": false,
|
|
1322
|
-
"type": "option"
|
|
1323
|
-
},
|
|
1324
|
-
"max-entities": {
|
|
1325
|
-
"char": "m",
|
|
1326
|
-
"description": "Max entities per group",
|
|
1327
|
-
"name": "max-entities",
|
|
1328
|
-
"default": 3,
|
|
1386
|
+
"description": "Target schema (overrides coreSchema from config)",
|
|
1387
|
+
"name": "schema",
|
|
1329
1388
|
"hasDynamicHelp": false,
|
|
1330
1389
|
"multiple": false,
|
|
1331
1390
|
"type": "option"
|
|
1332
1391
|
},
|
|
1333
|
-
"
|
|
1334
|
-
"
|
|
1335
|
-
"
|
|
1336
|
-
"name": "target-groups",
|
|
1337
|
-
"default": 75,
|
|
1392
|
+
"dir": {
|
|
1393
|
+
"description": "Migration source directory (overrides migrationsLocation from config)",
|
|
1394
|
+
"name": "dir",
|
|
1338
1395
|
"hasDynamicHelp": false,
|
|
1339
1396
|
"multiple": false,
|
|
1340
1397
|
"type": "option"
|
|
1341
|
-
}
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1398
|
+
}
|
|
1399
|
+
},
|
|
1400
|
+
"hasDynamicHelp": false,
|
|
1401
|
+
"hiddenAliases": [],
|
|
1402
|
+
"id": "migrate",
|
|
1403
|
+
"pluginAlias": "@memberjunction/cli",
|
|
1404
|
+
"pluginName": "@memberjunction/cli",
|
|
1405
|
+
"pluginType": "core",
|
|
1406
|
+
"strict": true,
|
|
1407
|
+
"enableJsonFlag": false,
|
|
1408
|
+
"isESM": true,
|
|
1409
|
+
"relativePath": [
|
|
1410
|
+
"dist",
|
|
1411
|
+
"commands",
|
|
1412
|
+
"migrate",
|
|
1413
|
+
"index.js"
|
|
1414
|
+
]
|
|
1415
|
+
},
|
|
1416
|
+
"sql-audit": {
|
|
1417
|
+
"aliases": [],
|
|
1418
|
+
"args": {},
|
|
1419
|
+
"description": "Compare source and target databases for migration verification",
|
|
1420
|
+
"examples": [
|
|
1421
|
+
"<%= config.bin %> sql-audit --source \"mssql://sa:pass@host/db\" --target \"postgres://user:pass@host:5432/db\"",
|
|
1422
|
+
"<%= config.bin %> sql-audit --source \"mssql://sa:pass@host/db\" --target \"postgres://user:pass@host:5432/db\" --output report.txt",
|
|
1423
|
+
"<%= config.bin %> sql-audit --source \"mssql://sa:pass@host/db\" --target \"postgres://user:pass@host:5432/db\" --source-schema __mj --target-schema __mj"
|
|
1424
|
+
],
|
|
1425
|
+
"flags": {
|
|
1426
|
+
"source": {
|
|
1427
|
+
"description": "Source database connection string (mssql://... or postgres://...)",
|
|
1428
|
+
"name": "source",
|
|
1429
|
+
"required": true,
|
|
1347
1430
|
"hasDynamicHelp": false,
|
|
1348
1431
|
"multiple": false,
|
|
1349
1432
|
"type": "option"
|
|
1350
1433
|
},
|
|
1351
|
-
"
|
|
1352
|
-
"
|
|
1353
|
-
"
|
|
1354
|
-
"
|
|
1355
|
-
"default": 5,
|
|
1434
|
+
"target": {
|
|
1435
|
+
"description": "Target database connection string (mssql://... or postgres://...)",
|
|
1436
|
+
"name": "target",
|
|
1437
|
+
"required": true,
|
|
1356
1438
|
"hasDynamicHelp": false,
|
|
1357
1439
|
"multiple": false,
|
|
1358
1440
|
"type": "option"
|
|
1359
1441
|
},
|
|
1360
|
-
"
|
|
1361
|
-
"description": "
|
|
1362
|
-
"name": "
|
|
1442
|
+
"source-schema": {
|
|
1443
|
+
"description": "Source schema name",
|
|
1444
|
+
"name": "source-schema",
|
|
1445
|
+
"default": "__mj",
|
|
1363
1446
|
"hasDynamicHelp": false,
|
|
1364
1447
|
"multiple": false,
|
|
1365
1448
|
"type": "option"
|
|
1366
1449
|
},
|
|
1367
|
-
"
|
|
1368
|
-
"description": "
|
|
1369
|
-
"name": "
|
|
1450
|
+
"target-schema": {
|
|
1451
|
+
"description": "Target schema name",
|
|
1452
|
+
"name": "target-schema",
|
|
1453
|
+
"default": "__mj",
|
|
1370
1454
|
"hasDynamicHelp": false,
|
|
1371
1455
|
"multiple": false,
|
|
1372
1456
|
"type": "option"
|
|
1373
1457
|
},
|
|
1374
1458
|
"output": {
|
|
1375
1459
|
"char": "o",
|
|
1376
|
-
"description": "
|
|
1460
|
+
"description": "Save report to file",
|
|
1377
1461
|
"name": "output",
|
|
1378
1462
|
"hasDynamicHelp": false,
|
|
1379
1463
|
"multiple": false,
|
|
1380
1464
|
"type": "option"
|
|
1381
|
-
},
|
|
1382
|
-
"mode": {
|
|
1383
|
-
"description": "Output mode: metadata|database|both",
|
|
1384
|
-
"name": "mode",
|
|
1385
|
-
"hasDynamicHelp": false,
|
|
1386
|
-
"multiple": false,
|
|
1387
|
-
"options": [
|
|
1388
|
-
"metadata",
|
|
1389
|
-
"database",
|
|
1390
|
-
"both"
|
|
1391
|
-
],
|
|
1392
|
-
"type": "option"
|
|
1393
|
-
},
|
|
1394
|
-
"verbose": {
|
|
1395
|
-
"char": "v",
|
|
1396
|
-
"description": "Verbose output",
|
|
1397
|
-
"name": "verbose",
|
|
1398
|
-
"allowNo": false,
|
|
1399
|
-
"type": "boolean"
|
|
1400
1465
|
}
|
|
1401
1466
|
},
|
|
1402
1467
|
"hasDynamicHelp": false,
|
|
1403
1468
|
"hiddenAliases": [],
|
|
1404
|
-
"id": "
|
|
1469
|
+
"id": "sql-audit",
|
|
1405
1470
|
"pluginAlias": "@memberjunction/cli",
|
|
1406
1471
|
"pluginName": "@memberjunction/cli",
|
|
1407
1472
|
"pluginType": "core",
|
|
@@ -1411,32 +1476,74 @@
|
|
|
1411
1476
|
"relativePath": [
|
|
1412
1477
|
"dist",
|
|
1413
1478
|
"commands",
|
|
1414
|
-
"
|
|
1415
|
-
"
|
|
1479
|
+
"sql-audit",
|
|
1480
|
+
"index.js"
|
|
1416
1481
|
]
|
|
1417
1482
|
},
|
|
1418
|
-
"
|
|
1483
|
+
"sql-convert": {
|
|
1419
1484
|
"aliases": [],
|
|
1420
|
-
"args": {
|
|
1421
|
-
|
|
1485
|
+
"args": {
|
|
1486
|
+
"source": {
|
|
1487
|
+
"description": "Source SQL file path",
|
|
1488
|
+
"name": "source",
|
|
1489
|
+
"required": true
|
|
1490
|
+
}
|
|
1491
|
+
},
|
|
1492
|
+
"description": "Convert SQL files between database dialects using rule-based BatchConverter engine",
|
|
1422
1493
|
"examples": [
|
|
1423
|
-
"<%= config.bin %>
|
|
1424
|
-
"<%= config.bin %>
|
|
1425
|
-
"<%= config.bin %>
|
|
1494
|
+
"<%= config.bin %> sql-convert ./migration.sql --from tsql --to postgres",
|
|
1495
|
+
"<%= config.bin %> sql-convert ./migration.sql --from tsql --to postgres --output converted.sql",
|
|
1496
|
+
"<%= config.bin %> sql-convert ./migration.sql --from tsql --to postgres --schema my_schema",
|
|
1497
|
+
"<%= config.bin %> sql-convert ./migration.sql --from tsql --to postgres --no-header --verbose"
|
|
1426
1498
|
],
|
|
1427
1499
|
"flags": {
|
|
1428
|
-
"
|
|
1429
|
-
"
|
|
1430
|
-
"
|
|
1431
|
-
"
|
|
1432
|
-
"
|
|
1500
|
+
"from": {
|
|
1501
|
+
"description": "Source SQL dialect",
|
|
1502
|
+
"name": "from",
|
|
1503
|
+
"required": true,
|
|
1504
|
+
"hasDynamicHelp": false,
|
|
1505
|
+
"multiple": false,
|
|
1506
|
+
"type": "option"
|
|
1507
|
+
},
|
|
1508
|
+
"to": {
|
|
1509
|
+
"description": "Target SQL dialect",
|
|
1510
|
+
"name": "to",
|
|
1511
|
+
"required": true,
|
|
1512
|
+
"hasDynamicHelp": false,
|
|
1513
|
+
"multiple": false,
|
|
1514
|
+
"type": "option"
|
|
1515
|
+
},
|
|
1516
|
+
"output": {
|
|
1517
|
+
"char": "o",
|
|
1518
|
+
"description": "Output file path (default: <source>.converted.<ext>)",
|
|
1519
|
+
"name": "output",
|
|
1520
|
+
"hasDynamicHelp": false,
|
|
1521
|
+
"multiple": false,
|
|
1522
|
+
"type": "option"
|
|
1523
|
+
},
|
|
1524
|
+
"schema": {
|
|
1525
|
+
"description": "Target schema name",
|
|
1526
|
+
"name": "schema",
|
|
1527
|
+
"default": "__mj",
|
|
1433
1528
|
"hasDynamicHelp": false,
|
|
1434
1529
|
"multiple": false,
|
|
1435
1530
|
"type": "option"
|
|
1436
1531
|
},
|
|
1532
|
+
"no-header": {
|
|
1533
|
+
"description": "Skip PG header (extensions, schema, implicit cast)",
|
|
1534
|
+
"name": "no-header",
|
|
1535
|
+
"allowNo": false,
|
|
1536
|
+
"type": "boolean"
|
|
1537
|
+
},
|
|
1538
|
+
"no-post-process": {
|
|
1539
|
+
"description": "Skip post-processing pass",
|
|
1540
|
+
"name": "no-post-process",
|
|
1541
|
+
"allowNo": false,
|
|
1542
|
+
"type": "boolean"
|
|
1543
|
+
},
|
|
1437
1544
|
"verbose": {
|
|
1438
1545
|
"char": "v",
|
|
1439
|
-
"description": "
|
|
1546
|
+
"description": "Show per-statement progress and detailed report",
|
|
1440
1547
|
"name": "verbose",
|
|
1441
1548
|
"allowNo": false,
|
|
1442
1549
|
"type": "boolean"
|
|
@@ -1444,7 +1551,7 @@
|
|
|
1444
1551
|
},
|
|
1445
1552
|
"hasDynamicHelp": false,
|
|
1446
1553
|
"hiddenAliases": [],
|
|
1447
|
-
"id": "
|
|
1554
|
+
"id": "sql-convert",
|
|
1448
1555
|
"pluginAlias": "@memberjunction/cli",
|
|
1449
1556
|
"pluginName": "@memberjunction/cli",
|
|
1450
1557
|
"pluginType": "core",
|
|
@@ -1454,76 +1561,19 @@
|
|
|
1454
1561
|
"relativePath": [
|
|
1455
1562
|
"dist",
|
|
1456
1563
|
"commands",
|
|
1457
|
-
"
|
|
1458
|
-
"
|
|
1564
|
+
"sql-convert",
|
|
1565
|
+
"index.js"
|
|
1459
1566
|
]
|
|
1460
1567
|
},
|
|
1461
|
-
"
|
|
1568
|
+
"sync:file-reset": {
|
|
1462
1569
|
"aliases": [],
|
|
1463
1570
|
"args": {},
|
|
1464
|
-
"description": "
|
|
1571
|
+
"description": "Reset file metadata sections",
|
|
1465
1572
|
"examples": [
|
|
1466
|
-
"<%= config.bin %> <%= command.id
|
|
1467
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1468
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1469
|
-
|
|
1470
|
-
"flags": {
|
|
1471
|
-
"verbose": {
|
|
1472
|
-
"char": "v",
|
|
1473
|
-
"description": "Enable additional logging",
|
|
1474
|
-
"name": "verbose",
|
|
1475
|
-
"allowNo": false,
|
|
1476
|
-
"type": "boolean"
|
|
1477
|
-
},
|
|
1478
|
-
"tag": {
|
|
1479
|
-
"char": "t",
|
|
1480
|
-
"description": "Version tag to use for running remote migrations",
|
|
1481
|
-
"name": "tag",
|
|
1482
|
-
"hasDynamicHelp": false,
|
|
1483
|
-
"multiple": false,
|
|
1484
|
-
"type": "option"
|
|
1485
|
-
},
|
|
1486
|
-
"schema": {
|
|
1487
|
-
"char": "s",
|
|
1488
|
-
"description": "Target schema (overrides coreSchema from config)",
|
|
1489
|
-
"name": "schema",
|
|
1490
|
-
"hasDynamicHelp": false,
|
|
1491
|
-
"multiple": false,
|
|
1492
|
-
"type": "option"
|
|
1493
|
-
},
|
|
1494
|
-
"dir": {
|
|
1495
|
-
"description": "Migration source directory (overrides migrationsLocation from config)",
|
|
1496
|
-
"name": "dir",
|
|
1497
|
-
"hasDynamicHelp": false,
|
|
1498
|
-
"multiple": false,
|
|
1499
|
-
"type": "option"
|
|
1500
|
-
}
|
|
1501
|
-
},
|
|
1502
|
-
"hasDynamicHelp": false,
|
|
1503
|
-
"hiddenAliases": [],
|
|
1504
|
-
"id": "migrate",
|
|
1505
|
-
"pluginAlias": "@memberjunction/cli",
|
|
1506
|
-
"pluginName": "@memberjunction/cli",
|
|
1507
|
-
"pluginType": "core",
|
|
1508
|
-
"strict": true,
|
|
1509
|
-
"enableJsonFlag": false,
|
|
1510
|
-
"isESM": true,
|
|
1511
|
-
"relativePath": [
|
|
1512
|
-
"dist",
|
|
1513
|
-
"commands",
|
|
1514
|
-
"migrate",
|
|
1515
|
-
"index.js"
|
|
1516
|
-
]
|
|
1517
|
-
},
|
|
1518
|
-
"sync:file-reset": {
|
|
1519
|
-
"aliases": [],
|
|
1520
|
-
"args": {},
|
|
1521
|
-
"description": "Reset file metadata sections",
|
|
1522
|
-
"examples": [
|
|
1523
|
-
"<%= config.bin %> <%= command.id %>",
|
|
1524
|
-
"<%= config.bin %> <%= command.id %> --dir=\"ai-prompts\"",
|
|
1525
|
-
"<%= config.bin %> <%= command.id %> --sections=\"dependencies,references\"",
|
|
1526
|
-
"<%= config.bin %> <%= command.id %> --all"
|
|
1573
|
+
"<%= config.bin %> <%= command.id %>",
|
|
1574
|
+
"<%= config.bin %> <%= command.id %> --dir=\"ai-prompts\"",
|
|
1575
|
+
"<%= config.bin %> <%= command.id %> --sections=\"dependencies,references\"",
|
|
1576
|
+
"<%= config.bin %> <%= command.id %> --all"
|
|
1527
1577
|
],
|
|
1528
1578
|
"flags": {
|
|
1529
1579
|
"dir": {
|
|
@@ -2532,6 +2582,320 @@
|
|
|
2532
2582
|
"validate.js"
|
|
2533
2583
|
]
|
|
2534
2584
|
},
|
|
2585
|
+
"translate-sql": {
|
|
2586
|
+
"aliases": [],
|
|
2587
|
+
"args": {},
|
|
2588
|
+
"description": "Translate SQL fragments between database dialects (SQL Server ↔ PostgreSQL)",
|
|
2589
|
+
"examples": [
|
|
2590
|
+
"<%= config.bin %> translate-sql --from sqlserver --to postgresql --dry-run",
|
|
2591
|
+
"<%= config.bin %> translate-sql --from sqlserver --to postgresql --scope queries",
|
|
2592
|
+
"<%= config.bin %> translate-sql --from sqlserver --to postgresql --sql \"SELECT TOP 10 [Name] FROM [Users]\"",
|
|
2593
|
+
"<%= config.bin %> translate-sql --from sqlserver --to postgresql --scope all --output ./reports"
|
|
2594
|
+
],
|
|
2595
|
+
"flags": {
|
|
2596
|
+
"from": {
|
|
2597
|
+
"description": "Source SQL dialect",
|
|
2598
|
+
"name": "from",
|
|
2599
|
+
"required": true,
|
|
2600
|
+
"hasDynamicHelp": false,
|
|
2601
|
+
"multiple": false,
|
|
2602
|
+
"options": [
|
|
2603
|
+
"sqlserver",
|
|
2604
|
+
"postgresql"
|
|
2605
|
+
],
|
|
2606
|
+
"type": "option"
|
|
2607
|
+
},
|
|
2608
|
+
"to": {
|
|
2609
|
+
"description": "Target SQL dialect",
|
|
2610
|
+
"name": "to",
|
|
2611
|
+
"required": true,
|
|
2612
|
+
"hasDynamicHelp": false,
|
|
2613
|
+
"multiple": false,
|
|
2614
|
+
"options": [
|
|
2615
|
+
"sqlserver",
|
|
2616
|
+
"postgresql"
|
|
2617
|
+
],
|
|
2618
|
+
"type": "option"
|
|
2619
|
+
},
|
|
2620
|
+
"scope": {
|
|
2621
|
+
"description": "What to scan for translation",
|
|
2622
|
+
"name": "scope",
|
|
2623
|
+
"default": "all",
|
|
2624
|
+
"hasDynamicHelp": false,
|
|
2625
|
+
"multiple": false,
|
|
2626
|
+
"options": [
|
|
2627
|
+
"queries",
|
|
2628
|
+
"views",
|
|
2629
|
+
"filters",
|
|
2630
|
+
"all"
|
|
2631
|
+
],
|
|
2632
|
+
"type": "option"
|
|
2633
|
+
},
|
|
2634
|
+
"sql": {
|
|
2635
|
+
"description": "Translate a single SQL fragment (inline mode)",
|
|
2636
|
+
"name": "sql",
|
|
2637
|
+
"hasDynamicHelp": false,
|
|
2638
|
+
"multiple": false,
|
|
2639
|
+
"type": "option"
|
|
2640
|
+
},
|
|
2641
|
+
"dry-run": {
|
|
2642
|
+
"description": "Show what would be translated without making changes",
|
|
2643
|
+
"name": "dry-run",
|
|
2644
|
+
"allowNo": false,
|
|
2645
|
+
"type": "boolean"
|
|
2646
|
+
},
|
|
2647
|
+
"review": {
|
|
2648
|
+
"description": "Generate review report only (no writes to database)",
|
|
2649
|
+
"name": "review",
|
|
2650
|
+
"allowNo": false,
|
|
2651
|
+
"type": "boolean"
|
|
2652
|
+
},
|
|
2653
|
+
"output": {
|
|
2654
|
+
"char": "o",
|
|
2655
|
+
"description": "Output directory for the translation report",
|
|
2656
|
+
"name": "output",
|
|
2657
|
+
"hasDynamicHelp": false,
|
|
2658
|
+
"multiple": false,
|
|
2659
|
+
"type": "option"
|
|
2660
|
+
},
|
|
2661
|
+
"force": {
|
|
2662
|
+
"description": "Re-translate even if platform variants already exist",
|
|
2663
|
+
"name": "force",
|
|
2664
|
+
"allowNo": false,
|
|
2665
|
+
"type": "boolean"
|
|
2666
|
+
}
|
|
2667
|
+
},
|
|
2668
|
+
"hasDynamicHelp": false,
|
|
2669
|
+
"hiddenAliases": [],
|
|
2670
|
+
"id": "translate-sql",
|
|
2671
|
+
"pluginAlias": "@memberjunction/cli",
|
|
2672
|
+
"pluginName": "@memberjunction/cli",
|
|
2673
|
+
"pluginType": "core",
|
|
2674
|
+
"strict": true,
|
|
2675
|
+
"enableJsonFlag": false,
|
|
2676
|
+
"isESM": true,
|
|
2677
|
+
"relativePath": [
|
|
2678
|
+
"dist",
|
|
2679
|
+
"commands",
|
|
2680
|
+
"translate-sql",
|
|
2681
|
+
"index.js"
|
|
2682
|
+
]
|
|
2683
|
+
},
|
|
2684
|
+
"querygen:export": {
|
|
2685
|
+
"aliases": [],
|
|
2686
|
+
"args": {},
|
|
2687
|
+
"description": "Export queries from database to metadata files",
|
|
2688
|
+
"examples": [
|
|
2689
|
+
"<%= config.bin %> <%= command.id %>",
|
|
2690
|
+
"<%= config.bin %> <%= command.id %> --output ./metadata/queries",
|
|
2691
|
+
"<%= config.bin %> <%= command.id %> --verbose"
|
|
2692
|
+
],
|
|
2693
|
+
"flags": {
|
|
2694
|
+
"output": {
|
|
2695
|
+
"char": "o",
|
|
2696
|
+
"description": "Output directory",
|
|
2697
|
+
"name": "output",
|
|
2698
|
+
"default": "./metadata/queries",
|
|
2699
|
+
"hasDynamicHelp": false,
|
|
2700
|
+
"multiple": false,
|
|
2701
|
+
"type": "option"
|
|
2702
|
+
},
|
|
2703
|
+
"verbose": {
|
|
2704
|
+
"char": "v",
|
|
2705
|
+
"description": "Verbose output",
|
|
2706
|
+
"name": "verbose",
|
|
2707
|
+
"allowNo": false,
|
|
2708
|
+
"type": "boolean"
|
|
2709
|
+
}
|
|
2710
|
+
},
|
|
2711
|
+
"hasDynamicHelp": false,
|
|
2712
|
+
"hiddenAliases": [],
|
|
2713
|
+
"id": "querygen:export",
|
|
2714
|
+
"pluginAlias": "@memberjunction/cli",
|
|
2715
|
+
"pluginName": "@memberjunction/cli",
|
|
2716
|
+
"pluginType": "core",
|
|
2717
|
+
"strict": true,
|
|
2718
|
+
"enableJsonFlag": false,
|
|
2719
|
+
"isESM": true,
|
|
2720
|
+
"relativePath": [
|
|
2721
|
+
"dist",
|
|
2722
|
+
"commands",
|
|
2723
|
+
"querygen",
|
|
2724
|
+
"export.js"
|
|
2725
|
+
]
|
|
2726
|
+
},
|
|
2727
|
+
"querygen:generate": {
|
|
2728
|
+
"aliases": [],
|
|
2729
|
+
"args": {},
|
|
2730
|
+
"description": "Generate SQL query templates for entities using AI",
|
|
2731
|
+
"examples": [
|
|
2732
|
+
"<%= config.bin %> <%= command.id %>",
|
|
2733
|
+
"<%= config.bin %> <%= command.id %> --entities \"Customers,Orders\"",
|
|
2734
|
+
"<%= config.bin %> <%= command.id %> --max-entities 5 --verbose",
|
|
2735
|
+
"<%= config.bin %> <%= command.id %> --mode database"
|
|
2736
|
+
],
|
|
2737
|
+
"flags": {
|
|
2738
|
+
"entities": {
|
|
2739
|
+
"char": "e",
|
|
2740
|
+
"description": "Specific entities to generate queries for (comma-separated)",
|
|
2741
|
+
"name": "entities",
|
|
2742
|
+
"hasDynamicHelp": false,
|
|
2743
|
+
"multiple": false,
|
|
2744
|
+
"type": "option"
|
|
2745
|
+
},
|
|
2746
|
+
"exclude-entities": {
|
|
2747
|
+
"char": "x",
|
|
2748
|
+
"description": "Entities to exclude (comma-separated)",
|
|
2749
|
+
"name": "exclude-entities",
|
|
2750
|
+
"hasDynamicHelp": false,
|
|
2751
|
+
"multiple": false,
|
|
2752
|
+
"type": "option"
|
|
2753
|
+
},
|
|
2754
|
+
"exclude-schemas": {
|
|
2755
|
+
"char": "s",
|
|
2756
|
+
"description": "Schemas to exclude (comma-separated)",
|
|
2757
|
+
"name": "exclude-schemas",
|
|
2758
|
+
"hasDynamicHelp": false,
|
|
2759
|
+
"multiple": false,
|
|
2760
|
+
"type": "option"
|
|
2761
|
+
},
|
|
2762
|
+
"max-entities": {
|
|
2763
|
+
"char": "m",
|
|
2764
|
+
"description": "Max entities per group",
|
|
2765
|
+
"name": "max-entities",
|
|
2766
|
+
"default": 3,
|
|
2767
|
+
"hasDynamicHelp": false,
|
|
2768
|
+
"multiple": false,
|
|
2769
|
+
"type": "option"
|
|
2770
|
+
},
|
|
2771
|
+
"target-groups": {
|
|
2772
|
+
"char": "t",
|
|
2773
|
+
"description": "Target number of entity groups to generate",
|
|
2774
|
+
"name": "target-groups",
|
|
2775
|
+
"default": 75,
|
|
2776
|
+
"hasDynamicHelp": false,
|
|
2777
|
+
"multiple": false,
|
|
2778
|
+
"type": "option"
|
|
2779
|
+
},
|
|
2780
|
+
"max-refinements": {
|
|
2781
|
+
"char": "r",
|
|
2782
|
+
"description": "Max refinement iterations",
|
|
2783
|
+
"name": "max-refinements",
|
|
2784
|
+
"default": 3,
|
|
2785
|
+
"hasDynamicHelp": false,
|
|
2786
|
+
"multiple": false,
|
|
2787
|
+
"type": "option"
|
|
2788
|
+
},
|
|
2789
|
+
"max-fixes": {
|
|
2790
|
+
"char": "f",
|
|
2791
|
+
"description": "Max error-fixing attempts",
|
|
2792
|
+
"name": "max-fixes",
|
|
2793
|
+
"default": 5,
|
|
2794
|
+
"hasDynamicHelp": false,
|
|
2795
|
+
"multiple": false,
|
|
2796
|
+
"type": "option"
|
|
2797
|
+
},
|
|
2798
|
+
"model": {
|
|
2799
|
+
"description": "Preferred AI model",
|
|
2800
|
+
"name": "model",
|
|
2801
|
+
"hasDynamicHelp": false,
|
|
2802
|
+
"multiple": false,
|
|
2803
|
+
"type": "option"
|
|
2804
|
+
},
|
|
2805
|
+
"vendor": {
|
|
2806
|
+
"description": "Preferred AI vendor",
|
|
2807
|
+
"name": "vendor",
|
|
2808
|
+
"hasDynamicHelp": false,
|
|
2809
|
+
"multiple": false,
|
|
2810
|
+
"type": "option"
|
|
2811
|
+
},
|
|
2812
|
+
"output": {
|
|
2813
|
+
"char": "o",
|
|
2814
|
+
"description": "Output directory",
|
|
2815
|
+
"name": "output",
|
|
2816
|
+
"hasDynamicHelp": false,
|
|
2817
|
+
"multiple": false,
|
|
2818
|
+
"type": "option"
|
|
2819
|
+
},
|
|
2820
|
+
"mode": {
|
|
2821
|
+
"description": "Output mode: metadata|database|both",
|
|
2822
|
+
"name": "mode",
|
|
2823
|
+
"hasDynamicHelp": false,
|
|
2824
|
+
"multiple": false,
|
|
2825
|
+
"options": [
|
|
2826
|
+
"metadata",
|
|
2827
|
+
"database",
|
|
2828
|
+
"both"
|
|
2829
|
+
],
|
|
2830
|
+
"type": "option"
|
|
2831
|
+
},
|
|
2832
|
+
"verbose": {
|
|
2833
|
+
"char": "v",
|
|
2834
|
+
"description": "Verbose output",
|
|
2835
|
+
"name": "verbose",
|
|
2836
|
+
"allowNo": false,
|
|
2837
|
+
"type": "boolean"
|
|
2838
|
+
}
|
|
2839
|
+
},
|
|
2840
|
+
"hasDynamicHelp": false,
|
|
2841
|
+
"hiddenAliases": [],
|
|
2842
|
+
"id": "querygen:generate",
|
|
2843
|
+
"pluginAlias": "@memberjunction/cli",
|
|
2844
|
+
"pluginName": "@memberjunction/cli",
|
|
2845
|
+
"pluginType": "core",
|
|
2846
|
+
"strict": true,
|
|
2847
|
+
"enableJsonFlag": false,
|
|
2848
|
+
"isESM": true,
|
|
2849
|
+
"relativePath": [
|
|
2850
|
+
"dist",
|
|
2851
|
+
"commands",
|
|
2852
|
+
"querygen",
|
|
2853
|
+
"generate.js"
|
|
2854
|
+
]
|
|
2855
|
+
},
|
|
2856
|
+
"querygen:validate": {
|
|
2857
|
+
"aliases": [],
|
|
2858
|
+
"args": {},
|
|
2859
|
+
"description": "Validate existing query templates",
|
|
2860
|
+
"examples": [
|
|
2861
|
+
"<%= config.bin %> <%= command.id %>",
|
|
2862
|
+
"<%= config.bin %> <%= command.id %> --path ./metadata/queries",
|
|
2863
|
+
"<%= config.bin %> <%= command.id %> --verbose"
|
|
2864
|
+
],
|
|
2865
|
+
"flags": {
|
|
2866
|
+
"path": {
|
|
2867
|
+
"char": "p",
|
|
2868
|
+
"description": "Path to queries metadata file or directory",
|
|
2869
|
+
"name": "path",
|
|
2870
|
+
"default": "./metadata/queries",
|
|
2871
|
+
"hasDynamicHelp": false,
|
|
2872
|
+
"multiple": false,
|
|
2873
|
+
"type": "option"
|
|
2874
|
+
},
|
|
2875
|
+
"verbose": {
|
|
2876
|
+
"char": "v",
|
|
2877
|
+
"description": "Verbose output",
|
|
2878
|
+
"name": "verbose",
|
|
2879
|
+
"allowNo": false,
|
|
2880
|
+
"type": "boolean"
|
|
2881
|
+
}
|
|
2882
|
+
},
|
|
2883
|
+
"hasDynamicHelp": false,
|
|
2884
|
+
"hiddenAliases": [],
|
|
2885
|
+
"id": "querygen:validate",
|
|
2886
|
+
"pluginAlias": "@memberjunction/cli",
|
|
2887
|
+
"pluginName": "@memberjunction/cli",
|
|
2888
|
+
"pluginType": "core",
|
|
2889
|
+
"strict": true,
|
|
2890
|
+
"enableJsonFlag": false,
|
|
2891
|
+
"isESM": true,
|
|
2892
|
+
"relativePath": [
|
|
2893
|
+
"dist",
|
|
2894
|
+
"commands",
|
|
2895
|
+
"querygen",
|
|
2896
|
+
"validate.js"
|
|
2897
|
+
]
|
|
2898
|
+
},
|
|
2535
2899
|
"ai:actions:list": {
|
|
2536
2900
|
"aliases": [],
|
|
2537
2901
|
"args": {},
|
|
@@ -3140,5 +3504,5 @@
|
|
|
3140
3504
|
]
|
|
3141
3505
|
}
|
|
3142
3506
|
},
|
|
3143
|
-
"version": "5.
|
|
3507
|
+
"version": "5.5.0"
|
|
3144
3508
|
}
|