@memberjunction/cli 5.4.0 → 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 +522 -158
- 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,6 +1314,48 @@
|
|
|
1243
1314
|
"index.js"
|
|
1244
1315
|
]
|
|
1245
1316
|
},
|
|
1317
|
+
"doctor": {
|
|
1318
|
+
"aliases": [],
|
|
1319
|
+
"args": {},
|
|
1320
|
+
"description": "Diagnose a MemberJunction installation",
|
|
1321
|
+
"examples": [
|
|
1322
|
+
"<%= config.bin %> <%= command.id %>",
|
|
1323
|
+
"<%= config.bin %> <%= command.id %> --dir ./my-mj-project",
|
|
1324
|
+
"<%= config.bin %> <%= command.id %> --verbose"
|
|
1325
|
+
],
|
|
1326
|
+
"flags": {
|
|
1327
|
+
"dir": {
|
|
1328
|
+
"description": "Target directory to diagnose",
|
|
1329
|
+
"name": "dir",
|
|
1330
|
+
"default": ".",
|
|
1331
|
+
"hasDynamicHelp": false,
|
|
1332
|
+
"multiple": false,
|
|
1333
|
+
"type": "option"
|
|
1334
|
+
},
|
|
1335
|
+
"verbose": {
|
|
1336
|
+
"char": "v",
|
|
1337
|
+
"description": "Show detailed output including suggested fixes inline",
|
|
1338
|
+
"name": "verbose",
|
|
1339
|
+
"allowNo": false,
|
|
1340
|
+
"type": "boolean"
|
|
1341
|
+
}
|
|
1342
|
+
},
|
|
1343
|
+
"hasDynamicHelp": false,
|
|
1344
|
+
"hiddenAliases": [],
|
|
1345
|
+
"id": "doctor",
|
|
1346
|
+
"pluginAlias": "@memberjunction/cli",
|
|
1347
|
+
"pluginName": "@memberjunction/cli",
|
|
1348
|
+
"pluginType": "core",
|
|
1349
|
+
"strict": true,
|
|
1350
|
+
"enableJsonFlag": false,
|
|
1351
|
+
"isESM": true,
|
|
1352
|
+
"relativePath": [
|
|
1353
|
+
"dist",
|
|
1354
|
+
"commands",
|
|
1355
|
+
"doctor",
|
|
1356
|
+
"index.js"
|
|
1357
|
+
]
|
|
1358
|
+
},
|
|
1246
1359
|
"migrate": {
|
|
1247
1360
|
"aliases": [],
|
|
1248
1361
|
"args": {},
|
|
@@ -1300,36 +1413,60 @@
|
|
|
1300
1413
|
"index.js"
|
|
1301
1414
|
]
|
|
1302
1415
|
},
|
|
1303
|
-
"
|
|
1416
|
+
"sql-audit": {
|
|
1304
1417
|
"aliases": [],
|
|
1305
1418
|
"args": {},
|
|
1306
|
-
"description": "
|
|
1419
|
+
"description": "Compare source and target databases for migration verification",
|
|
1307
1420
|
"examples": [
|
|
1308
|
-
"<%= config.bin %>
|
|
1309
|
-
"<%= config.bin %>
|
|
1310
|
-
"<%= config.bin %>
|
|
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"
|
|
1311
1424
|
],
|
|
1312
1425
|
"flags": {
|
|
1426
|
+
"source": {
|
|
1427
|
+
"description": "Source database connection string (mssql://... or postgres://...)",
|
|
1428
|
+
"name": "source",
|
|
1429
|
+
"required": true,
|
|
1430
|
+
"hasDynamicHelp": false,
|
|
1431
|
+
"multiple": false,
|
|
1432
|
+
"type": "option"
|
|
1433
|
+
},
|
|
1434
|
+
"target": {
|
|
1435
|
+
"description": "Target database connection string (mssql://... or postgres://...)",
|
|
1436
|
+
"name": "target",
|
|
1437
|
+
"required": true,
|
|
1438
|
+
"hasDynamicHelp": false,
|
|
1439
|
+
"multiple": false,
|
|
1440
|
+
"type": "option"
|
|
1441
|
+
},
|
|
1442
|
+
"source-schema": {
|
|
1443
|
+
"description": "Source schema name",
|
|
1444
|
+
"name": "source-schema",
|
|
1445
|
+
"default": "__mj",
|
|
1446
|
+
"hasDynamicHelp": false,
|
|
1447
|
+
"multiple": false,
|
|
1448
|
+
"type": "option"
|
|
1449
|
+
},
|
|
1450
|
+
"target-schema": {
|
|
1451
|
+
"description": "Target schema name",
|
|
1452
|
+
"name": "target-schema",
|
|
1453
|
+
"default": "__mj",
|
|
1454
|
+
"hasDynamicHelp": false,
|
|
1455
|
+
"multiple": false,
|
|
1456
|
+
"type": "option"
|
|
1457
|
+
},
|
|
1313
1458
|
"output": {
|
|
1314
1459
|
"char": "o",
|
|
1315
|
-
"description": "
|
|
1460
|
+
"description": "Save report to file",
|
|
1316
1461
|
"name": "output",
|
|
1317
|
-
"default": "./metadata/queries",
|
|
1318
1462
|
"hasDynamicHelp": false,
|
|
1319
1463
|
"multiple": false,
|
|
1320
1464
|
"type": "option"
|
|
1321
|
-
},
|
|
1322
|
-
"verbose": {
|
|
1323
|
-
"char": "v",
|
|
1324
|
-
"description": "Verbose output",
|
|
1325
|
-
"name": "verbose",
|
|
1326
|
-
"allowNo": false,
|
|
1327
|
-
"type": "boolean"
|
|
1328
1465
|
}
|
|
1329
1466
|
},
|
|
1330
1467
|
"hasDynamicHelp": false,
|
|
1331
1468
|
"hiddenAliases": [],
|
|
1332
|
-
"id": "
|
|
1469
|
+
"id": "sql-audit",
|
|
1333
1470
|
"pluginAlias": "@memberjunction/cli",
|
|
1334
1471
|
"pluginName": "@memberjunction/cli",
|
|
1335
1472
|
"pluginType": "core",
|
|
@@ -1339,118 +1476,74 @@
|
|
|
1339
1476
|
"relativePath": [
|
|
1340
1477
|
"dist",
|
|
1341
1478
|
"commands",
|
|
1342
|
-
"
|
|
1343
|
-
"
|
|
1479
|
+
"sql-audit",
|
|
1480
|
+
"index.js"
|
|
1344
1481
|
]
|
|
1345
1482
|
},
|
|
1346
|
-
"
|
|
1483
|
+
"sql-convert": {
|
|
1347
1484
|
"aliases": [],
|
|
1348
|
-
"args": {
|
|
1349
|
-
|
|
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",
|
|
1350
1493
|
"examples": [
|
|
1351
|
-
"<%= config.bin %>
|
|
1352
|
-
"<%= config.bin %>
|
|
1353
|
-
"<%= config.bin %>
|
|
1354
|
-
"<%= 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"
|
|
1355
1498
|
],
|
|
1356
1499
|
"flags": {
|
|
1357
|
-
"
|
|
1358
|
-
"
|
|
1359
|
-
"
|
|
1360
|
-
"
|
|
1361
|
-
"hasDynamicHelp": false,
|
|
1362
|
-
"multiple": false,
|
|
1363
|
-
"type": "option"
|
|
1364
|
-
},
|
|
1365
|
-
"exclude-entities": {
|
|
1366
|
-
"char": "x",
|
|
1367
|
-
"description": "Entities to exclude (comma-separated)",
|
|
1368
|
-
"name": "exclude-entities",
|
|
1369
|
-
"hasDynamicHelp": false,
|
|
1370
|
-
"multiple": false,
|
|
1371
|
-
"type": "option"
|
|
1372
|
-
},
|
|
1373
|
-
"exclude-schemas": {
|
|
1374
|
-
"char": "s",
|
|
1375
|
-
"description": "Schemas to exclude (comma-separated)",
|
|
1376
|
-
"name": "exclude-schemas",
|
|
1377
|
-
"hasDynamicHelp": false,
|
|
1378
|
-
"multiple": false,
|
|
1379
|
-
"type": "option"
|
|
1380
|
-
},
|
|
1381
|
-
"max-entities": {
|
|
1382
|
-
"char": "m",
|
|
1383
|
-
"description": "Max entities per group",
|
|
1384
|
-
"name": "max-entities",
|
|
1385
|
-
"default": 3,
|
|
1386
|
-
"hasDynamicHelp": false,
|
|
1387
|
-
"multiple": false,
|
|
1388
|
-
"type": "option"
|
|
1389
|
-
},
|
|
1390
|
-
"target-groups": {
|
|
1391
|
-
"char": "t",
|
|
1392
|
-
"description": "Target number of entity groups to generate",
|
|
1393
|
-
"name": "target-groups",
|
|
1394
|
-
"default": 75,
|
|
1395
|
-
"hasDynamicHelp": false,
|
|
1396
|
-
"multiple": false,
|
|
1397
|
-
"type": "option"
|
|
1398
|
-
},
|
|
1399
|
-
"max-refinements": {
|
|
1400
|
-
"char": "r",
|
|
1401
|
-
"description": "Max refinement iterations",
|
|
1402
|
-
"name": "max-refinements",
|
|
1403
|
-
"default": 3,
|
|
1404
|
-
"hasDynamicHelp": false,
|
|
1405
|
-
"multiple": false,
|
|
1406
|
-
"type": "option"
|
|
1407
|
-
},
|
|
1408
|
-
"max-fixes": {
|
|
1409
|
-
"char": "f",
|
|
1410
|
-
"description": "Max error-fixing attempts",
|
|
1411
|
-
"name": "max-fixes",
|
|
1412
|
-
"default": 5,
|
|
1413
|
-
"hasDynamicHelp": false,
|
|
1414
|
-
"multiple": false,
|
|
1415
|
-
"type": "option"
|
|
1416
|
-
},
|
|
1417
|
-
"model": {
|
|
1418
|
-
"description": "Preferred AI model",
|
|
1419
|
-
"name": "model",
|
|
1500
|
+
"from": {
|
|
1501
|
+
"description": "Source SQL dialect",
|
|
1502
|
+
"name": "from",
|
|
1503
|
+
"required": true,
|
|
1420
1504
|
"hasDynamicHelp": false,
|
|
1421
1505
|
"multiple": false,
|
|
1422
1506
|
"type": "option"
|
|
1423
1507
|
},
|
|
1424
|
-
"
|
|
1425
|
-
"description": "
|
|
1426
|
-
"name": "
|
|
1508
|
+
"to": {
|
|
1509
|
+
"description": "Target SQL dialect",
|
|
1510
|
+
"name": "to",
|
|
1511
|
+
"required": true,
|
|
1427
1512
|
"hasDynamicHelp": false,
|
|
1428
1513
|
"multiple": false,
|
|
1429
1514
|
"type": "option"
|
|
1430
1515
|
},
|
|
1431
1516
|
"output": {
|
|
1432
1517
|
"char": "o",
|
|
1433
|
-
"description": "Output
|
|
1518
|
+
"description": "Output file path (default: <source>.converted.<ext>)",
|
|
1434
1519
|
"name": "output",
|
|
1435
1520
|
"hasDynamicHelp": false,
|
|
1436
1521
|
"multiple": false,
|
|
1437
1522
|
"type": "option"
|
|
1438
1523
|
},
|
|
1439
|
-
"
|
|
1440
|
-
"description": "
|
|
1441
|
-
"name": "
|
|
1524
|
+
"schema": {
|
|
1525
|
+
"description": "Target schema name",
|
|
1526
|
+
"name": "schema",
|
|
1527
|
+
"default": "__mj",
|
|
1442
1528
|
"hasDynamicHelp": false,
|
|
1443
1529
|
"multiple": false,
|
|
1444
|
-
"options": [
|
|
1445
|
-
"metadata",
|
|
1446
|
-
"database",
|
|
1447
|
-
"both"
|
|
1448
|
-
],
|
|
1449
1530
|
"type": "option"
|
|
1450
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
|
+
},
|
|
1451
1544
|
"verbose": {
|
|
1452
1545
|
"char": "v",
|
|
1453
|
-
"description": "
|
|
1546
|
+
"description": "Show per-statement progress and detailed report",
|
|
1454
1547
|
"name": "verbose",
|
|
1455
1548
|
"allowNo": false,
|
|
1456
1549
|
"type": "boolean"
|
|
@@ -1458,7 +1551,7 @@
|
|
|
1458
1551
|
},
|
|
1459
1552
|
"hasDynamicHelp": false,
|
|
1460
1553
|
"hiddenAliases": [],
|
|
1461
|
-
"id": "
|
|
1554
|
+
"id": "sql-convert",
|
|
1462
1555
|
"pluginAlias": "@memberjunction/cli",
|
|
1463
1556
|
"pluginName": "@memberjunction/cli",
|
|
1464
1557
|
"pluginType": "core",
|
|
@@ -1468,67 +1561,24 @@
|
|
|
1468
1561
|
"relativePath": [
|
|
1469
1562
|
"dist",
|
|
1470
1563
|
"commands",
|
|
1471
|
-
"
|
|
1472
|
-
"
|
|
1564
|
+
"sql-convert",
|
|
1565
|
+
"index.js"
|
|
1473
1566
|
]
|
|
1474
1567
|
},
|
|
1475
|
-
"
|
|
1568
|
+
"sync:file-reset": {
|
|
1476
1569
|
"aliases": [],
|
|
1477
1570
|
"args": {},
|
|
1478
|
-
"description": "
|
|
1571
|
+
"description": "Reset file metadata sections",
|
|
1479
1572
|
"examples": [
|
|
1480
1573
|
"<%= config.bin %> <%= command.id %>",
|
|
1481
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1482
|
-
"<%= 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"
|
|
1483
1577
|
],
|
|
1484
1578
|
"flags": {
|
|
1485
|
-
"
|
|
1486
|
-
"
|
|
1487
|
-
"
|
|
1488
|
-
"name": "path",
|
|
1489
|
-
"default": "./metadata/queries",
|
|
1490
|
-
"hasDynamicHelp": false,
|
|
1491
|
-
"multiple": false,
|
|
1492
|
-
"type": "option"
|
|
1493
|
-
},
|
|
1494
|
-
"verbose": {
|
|
1495
|
-
"char": "v",
|
|
1496
|
-
"description": "Verbose output",
|
|
1497
|
-
"name": "verbose",
|
|
1498
|
-
"allowNo": false,
|
|
1499
|
-
"type": "boolean"
|
|
1500
|
-
}
|
|
1501
|
-
},
|
|
1502
|
-
"hasDynamicHelp": false,
|
|
1503
|
-
"hiddenAliases": [],
|
|
1504
|
-
"id": "querygen:validate",
|
|
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
|
-
"querygen",
|
|
1515
|
-
"validate.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"
|
|
1527
|
-
],
|
|
1528
|
-
"flags": {
|
|
1529
|
-
"dir": {
|
|
1530
|
-
"description": "Specific entity directory to reset",
|
|
1531
|
-
"name": "dir",
|
|
1579
|
+
"dir": {
|
|
1580
|
+
"description": "Specific entity directory to reset",
|
|
1581
|
+
"name": "dir",
|
|
1532
1582
|
"hasDynamicHelp": false,
|
|
1533
1583
|
"multiple": false,
|
|
1534
1584
|
"type": "option"
|
|
@@ -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
|
}
|