@memberjunction/cli 6.2.0-edge.2 → 6.2.0-edge.4
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 +9 -0
- package/dist/commands/artifacts/reclassify.d.ts.map +1 -1
- package/dist/commands/artifacts/reclassify.js +4 -2
- package/dist/commands/artifacts/reclassify.js.map +1 -1
- package/dist/commands/cache/clear.d.ts +25 -0
- package/dist/commands/cache/clear.d.ts.map +1 -0
- package/dist/commands/cache/clear.js +79 -0
- package/dist/commands/cache/clear.js.map +1 -0
- package/dist/commands/cache/usage.d.ts +7 -0
- package/dist/commands/cache/usage.d.ts.map +1 -0
- package/dist/commands/cache/usage.js +10 -0
- package/dist/commands/cache/usage.js.map +1 -0
- package/dist/commands/codegen/index.d.ts +15 -6
- package/dist/commands/codegen/index.d.ts.map +1 -1
- package/dist/commands/codegen/index.js +35 -4
- package/dist/commands/codegen/index.js.map +1 -1
- package/dist/commands/install/index.d.ts.map +1 -1
- package/dist/commands/install/index.js +7 -1
- package/dist/commands/install/index.js.map +1 -1
- package/dist/commands/migrate/index.d.ts +10 -0
- package/dist/commands/migrate/index.d.ts.map +1 -1
- package/dist/commands/migrate/index.js +42 -0
- package/dist/commands/migrate/index.js.map +1 -1
- package/dist/commands/queue/backlog.d.ts +11 -0
- package/dist/commands/queue/backlog.d.ts.map +1 -0
- package/dist/commands/queue/backlog.js +32 -0
- package/dist/commands/queue/backlog.js.map +1 -0
- package/dist/commands/queue/dead-letters.d.ts +13 -0
- package/dist/commands/queue/dead-letters.d.ts.map +1 -0
- package/dist/commands/queue/dead-letters.js +35 -0
- package/dist/commands/queue/dead-letters.js.map +1 -0
- package/dist/commands/queue/discard.d.ts +12 -0
- package/dist/commands/queue/discard.d.ts.map +1 -0
- package/dist/commands/queue/discard.js +45 -0
- package/dist/commands/queue/discard.js.map +1 -0
- package/dist/commands/queue/export-topology.d.ts +12 -0
- package/dist/commands/queue/export-topology.d.ts.map +1 -0
- package/dist/commands/queue/export-topology.js +40 -0
- package/dist/commands/queue/export-topology.js.map +1 -0
- package/dist/commands/queue/import-bindings.d.ts +14 -0
- package/dist/commands/queue/import-bindings.d.ts.map +1 -0
- package/dist/commands/queue/import-bindings.js +41 -0
- package/dist/commands/queue/import-bindings.js.map +1 -0
- package/dist/commands/queue/index.d.ts +7 -0
- package/dist/commands/queue/index.d.ts.map +1 -0
- package/dist/commands/queue/index.js +25 -0
- package/dist/commands/queue/index.js.map +1 -0
- package/dist/commands/queue/partitions.d.ts +14 -0
- package/dist/commands/queue/partitions.d.ts.map +1 -0
- package/dist/commands/queue/partitions.js +36 -0
- package/dist/commands/queue/partitions.js.map +1 -0
- package/dist/commands/queue/publish.d.ts +35 -0
- package/dist/commands/queue/publish.d.ts.map +1 -0
- package/dist/commands/queue/publish.js +94 -0
- package/dist/commands/queue/publish.js.map +1 -0
- package/dist/commands/queue/replay.d.ts +12 -0
- package/dist/commands/queue/replay.d.ts.map +1 -0
- package/dist/commands/queue/replay.js +42 -0
- package/dist/commands/queue/replay.js.map +1 -0
- package/dist/commands/queue/stats.d.ts +11 -0
- package/dist/commands/queue/stats.d.ts.map +1 -0
- package/dist/commands/queue/stats.js +35 -0
- package/dist/commands/queue/stats.js.map +1 -0
- package/dist/commands/queue/usage.d.ts +7 -0
- package/dist/commands/queue/usage.d.ts.map +1 -0
- package/dist/commands/queue/usage.js +10 -0
- package/dist/commands/queue/usage.js.map +1 -0
- package/dist/commands/queue/validate-bindings.d.ts +12 -0
- package/dist/commands/queue/validate-bindings.d.ts.map +1 -0
- package/dist/commands/queue/validate-bindings.js +37 -0
- package/dist/commands/queue/validate-bindings.js.map +1 -0
- package/dist/commands/queue/work.d.ts +20 -0
- package/dist/commands/queue/work.d.ts.map +1 -0
- package/dist/commands/queue/work.js +77 -0
- package/dist/commands/queue/work.js.map +1 -0
- package/dist/commands/rubric/evaluate.d.ts +3 -0
- package/dist/commands/rubric/evaluate.d.ts.map +1 -1
- package/dist/commands/rubric/evaluate.js +9 -2
- package/dist/commands/rubric/evaluate.js.map +1 -1
- package/dist/commands/sync/push.d.ts +33 -8
- package/dist/commands/sync/push.d.ts.map +1 -1
- package/dist/commands/sync/push.js +94 -6
- package/dist/commands/sync/push.js.map +1 -1
- package/dist/commands/user/clone.d.ts +27 -0
- package/dist/commands/user/clone.d.ts.map +1 -0
- package/dist/commands/user/clone.js +106 -0
- package/dist/commands/user/clone.js.map +1 -0
- package/dist/hooks/postrun.d.ts +1 -1
- package/dist/hooks/prerun.d.ts.map +1 -1
- package/dist/hooks/prerun.js +9 -0
- package/dist/hooks/prerun.js.map +1 -1
- package/dist/lib/domain-profiles.d.ts.map +1 -1
- package/dist/lib/domain-profiles.js +8 -0
- package/dist/lib/domain-profiles.js.map +1 -1
- package/dist/lib/keep-awake.d.ts +45 -0
- package/dist/lib/keep-awake.d.ts.map +1 -0
- package/dist/lib/keep-awake.js +71 -0
- package/dist/lib/keep-awake.js.map +1 -0
- package/dist/lib/shared-cache.d.ts +84 -0
- package/dist/lib/shared-cache.d.ts.map +1 -0
- package/dist/lib/shared-cache.js +160 -0
- package/dist/lib/shared-cache.js.map +1 -0
- package/dist/lib/work-queue/queue-format.d.ts +17 -0
- package/dist/lib/work-queue/queue-format.d.ts.map +1 -0
- package/dist/lib/work-queue/queue-format.js +125 -0
- package/dist/lib/work-queue/queue-format.js.map +1 -0
- package/dist/lib/work-queue/queue-session.d.ts +9 -0
- package/dist/lib/work-queue/queue-session.d.ts.map +1 -0
- package/dist/lib/work-queue/queue-session.js +8 -0
- package/dist/lib/work-queue/queue-session.js.map +1 -0
- package/dist/lib/work-queue/queue-worker.d.ts +24 -0
- package/dist/lib/work-queue/queue-worker.d.ts.map +1 -0
- package/dist/lib/work-queue/queue-worker.js +50 -0
- package/dist/lib/work-queue/queue-worker.js.map +1 -0
- package/dist/light-commands.d.ts +8 -0
- package/dist/light-commands.d.ts.map +1 -1
- package/dist/light-commands.js +36 -0
- package/dist/light-commands.js.map +1 -1
- package/dist/utils/open-app-context.d.ts +6 -0
- package/dist/utils/open-app-context.d.ts.map +1 -1
- package/dist/utils/open-app-context.js +3 -3
- package/dist/utils/open-app-context.js.map +1 -1
- package/oclif.manifest.json +2041 -1155
- package/package.json +29 -25
package/oclif.manifest.json
CHANGED
|
@@ -1214,6 +1214,103 @@
|
|
|
1214
1214
|
"usage.js"
|
|
1215
1215
|
]
|
|
1216
1216
|
},
|
|
1217
|
+
"cache:clear": {
|
|
1218
|
+
"aliases": [],
|
|
1219
|
+
"args": {},
|
|
1220
|
+
"description": "Clear the shared Redis cache (REDIS_URL) so every running server reloads from the database",
|
|
1221
|
+
"examples": [
|
|
1222
|
+
{
|
|
1223
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
1224
|
+
"description": "Clear RunView, dataset and metadata caches"
|
|
1225
|
+
},
|
|
1226
|
+
{
|
|
1227
|
+
"command": "<%= config.bin %> <%= command.id %> --dry-run",
|
|
1228
|
+
"description": "Show the target and key counts; delete nothing"
|
|
1229
|
+
},
|
|
1230
|
+
{
|
|
1231
|
+
"command": "<%= config.bin %> <%= command.id %> --category RunViewCache",
|
|
1232
|
+
"description": "Clear one category"
|
|
1233
|
+
}
|
|
1234
|
+
],
|
|
1235
|
+
"flags": {
|
|
1236
|
+
"dry-run": {
|
|
1237
|
+
"description": "Report the target and how many keys each category holds, without deleting or notifying",
|
|
1238
|
+
"name": "dry-run",
|
|
1239
|
+
"allowNo": false,
|
|
1240
|
+
"type": "boolean"
|
|
1241
|
+
},
|
|
1242
|
+
"category": {
|
|
1243
|
+
"description": "Category to clear (repeatable). Default: RunViewCache, RunQueryCache, DatasetCache, Metadata",
|
|
1244
|
+
"name": "category",
|
|
1245
|
+
"hasDynamicHelp": false,
|
|
1246
|
+
"multiple": true,
|
|
1247
|
+
"type": "option"
|
|
1248
|
+
},
|
|
1249
|
+
"url": {
|
|
1250
|
+
"description": "Redis URL. Default: REDIS_URL",
|
|
1251
|
+
"name": "url",
|
|
1252
|
+
"hasDynamicHelp": false,
|
|
1253
|
+
"multiple": false,
|
|
1254
|
+
"type": "option"
|
|
1255
|
+
},
|
|
1256
|
+
"prefix": {
|
|
1257
|
+
"description": "Key prefix. Default: REDIS_KEY_PREFIX, else \"mj\"",
|
|
1258
|
+
"name": "prefix",
|
|
1259
|
+
"hasDynamicHelp": false,
|
|
1260
|
+
"multiple": false,
|
|
1261
|
+
"type": "option"
|
|
1262
|
+
}
|
|
1263
|
+
},
|
|
1264
|
+
"hasDynamicHelp": false,
|
|
1265
|
+
"hiddenAliases": [],
|
|
1266
|
+
"id": "cache:clear",
|
|
1267
|
+
"pluginAlias": "@memberjunction/cli",
|
|
1268
|
+
"pluginName": "@memberjunction/cli",
|
|
1269
|
+
"pluginType": "core",
|
|
1270
|
+
"strict": true,
|
|
1271
|
+
"enableJsonFlag": false,
|
|
1272
|
+
"isESM": true,
|
|
1273
|
+
"relativePath": [
|
|
1274
|
+
"dist",
|
|
1275
|
+
"commands",
|
|
1276
|
+
"cache",
|
|
1277
|
+
"clear.js"
|
|
1278
|
+
]
|
|
1279
|
+
},
|
|
1280
|
+
"cache:usage": {
|
|
1281
|
+
"aliases": [],
|
|
1282
|
+
"args": {},
|
|
1283
|
+
"description": "Show usage, flags, examples, and runtime hints for every `mj cache` command.",
|
|
1284
|
+
"flags": {
|
|
1285
|
+
"format": {
|
|
1286
|
+
"description": "Output format. Defaults to text on a terminal and json when stdout is piped.",
|
|
1287
|
+
"name": "format",
|
|
1288
|
+
"hasDynamicHelp": false,
|
|
1289
|
+
"multiple": false,
|
|
1290
|
+
"options": [
|
|
1291
|
+
"text",
|
|
1292
|
+
"json",
|
|
1293
|
+
"md"
|
|
1294
|
+
],
|
|
1295
|
+
"type": "option"
|
|
1296
|
+
}
|
|
1297
|
+
},
|
|
1298
|
+
"hasDynamicHelp": false,
|
|
1299
|
+
"hiddenAliases": [],
|
|
1300
|
+
"id": "cache:usage",
|
|
1301
|
+
"pluginAlias": "@memberjunction/cli",
|
|
1302
|
+
"pluginName": "@memberjunction/cli",
|
|
1303
|
+
"pluginType": "core",
|
|
1304
|
+
"strict": true,
|
|
1305
|
+
"enableJsonFlag": false,
|
|
1306
|
+
"isESM": true,
|
|
1307
|
+
"relativePath": [
|
|
1308
|
+
"dist",
|
|
1309
|
+
"commands",
|
|
1310
|
+
"cache",
|
|
1311
|
+
"usage.js"
|
|
1312
|
+
]
|
|
1313
|
+
},
|
|
1217
1314
|
"clean": {
|
|
1218
1315
|
"aliases": [],
|
|
1219
1316
|
"args": {},
|
|
@@ -1586,6 +1683,12 @@
|
|
|
1586
1683
|
"name": "skip-commands",
|
|
1587
1684
|
"allowNo": false,
|
|
1588
1685
|
"type": "boolean"
|
|
1686
|
+
},
|
|
1687
|
+
"skip-cache-clear": {
|
|
1688
|
+
"description": "Do not clear the shared Redis cache (REDIS_URL) after a run that touched the database. Also: MJ_SKIP_SHARED_CACHE_CLEAR=1",
|
|
1689
|
+
"name": "skip-cache-clear",
|
|
1690
|
+
"allowNo": false,
|
|
1691
|
+
"type": "boolean"
|
|
1589
1692
|
}
|
|
1590
1693
|
},
|
|
1591
1694
|
"hasDynamicHelp": false,
|
|
@@ -1650,6 +1753,11 @@
|
|
|
1650
1753
|
"name": "--format",
|
|
1651
1754
|
"type": "text|json|md",
|
|
1652
1755
|
"description": "Output format (json for machine-readable result)"
|
|
1756
|
+
},
|
|
1757
|
+
{
|
|
1758
|
+
"name": "--skip-cache-clear",
|
|
1759
|
+
"type": "boolean",
|
|
1760
|
+
"description": "Do not clear the shared Redis cache after the run"
|
|
1653
1761
|
}
|
|
1654
1762
|
],
|
|
1655
1763
|
"examples": [
|
|
@@ -1832,49 +1940,38 @@
|
|
|
1832
1940
|
"usage.js"
|
|
1833
1941
|
]
|
|
1834
1942
|
},
|
|
1835
|
-
"
|
|
1836
|
-
"aliases": [],
|
|
1837
|
-
"args": {},
|
|
1838
|
-
"description": "Local development tooling: generate, inspect, and tear down the cross-repo pnpm workspace that links sibling repo clones. Run `mj dev usage` for every command's flags, examples, and runtime hints.",
|
|
1839
|
-
"flags": {},
|
|
1840
|
-
"hasDynamicHelp": false,
|
|
1841
|
-
"hidden": false,
|
|
1842
|
-
"hiddenAliases": [],
|
|
1843
|
-
"id": "dev",
|
|
1844
|
-
"pluginAlias": "@memberjunction/cli",
|
|
1845
|
-
"pluginName": "@memberjunction/cli",
|
|
1846
|
-
"pluginType": "core",
|
|
1847
|
-
"strict": true,
|
|
1848
|
-
"enableJsonFlag": false,
|
|
1849
|
-
"isESM": true,
|
|
1850
|
-
"relativePath": [
|
|
1851
|
-
"dist",
|
|
1852
|
-
"commands",
|
|
1853
|
-
"dev",
|
|
1854
|
-
"index.js"
|
|
1855
|
-
]
|
|
1856
|
-
},
|
|
1857
|
-
"dev:usage": {
|
|
1943
|
+
"dbdoc:analyze": {
|
|
1858
1944
|
"aliases": [],
|
|
1859
1945
|
"args": {},
|
|
1860
|
-
"description": "
|
|
1946
|
+
"description": "Analyze database and generate documentation (delegates to db-auto-doc analyze)",
|
|
1947
|
+
"examples": [
|
|
1948
|
+
"<%= config.bin %> <%= command.id %>",
|
|
1949
|
+
"<%= config.bin %> <%= command.id %> --resume ./output/run-6/state.json",
|
|
1950
|
+
"<%= config.bin %> <%= command.id %> --config ./my-config.json"
|
|
1951
|
+
],
|
|
1861
1952
|
"flags": {
|
|
1862
|
-
"
|
|
1863
|
-
"
|
|
1864
|
-
"
|
|
1953
|
+
"resume": {
|
|
1954
|
+
"char": "r",
|
|
1955
|
+
"description": "Resume from an existing state file",
|
|
1956
|
+
"name": "resume",
|
|
1957
|
+
"required": false,
|
|
1958
|
+
"hasDynamicHelp": false,
|
|
1959
|
+
"multiple": false,
|
|
1960
|
+
"type": "option"
|
|
1961
|
+
},
|
|
1962
|
+
"config": {
|
|
1963
|
+
"char": "c",
|
|
1964
|
+
"description": "Path to config file",
|
|
1965
|
+
"name": "config",
|
|
1966
|
+
"default": "./config.json",
|
|
1865
1967
|
"hasDynamicHelp": false,
|
|
1866
1968
|
"multiple": false,
|
|
1867
|
-
"options": [
|
|
1868
|
-
"text",
|
|
1869
|
-
"json",
|
|
1870
|
-
"md"
|
|
1871
|
-
],
|
|
1872
1969
|
"type": "option"
|
|
1873
1970
|
}
|
|
1874
1971
|
},
|
|
1875
1972
|
"hasDynamicHelp": false,
|
|
1876
1973
|
"hiddenAliases": [],
|
|
1877
|
-
"id": "
|
|
1974
|
+
"id": "dbdoc:analyze",
|
|
1878
1975
|
"pluginAlias": "@memberjunction/cli",
|
|
1879
1976
|
"pluginName": "@memberjunction/cli",
|
|
1880
1977
|
"pluginType": "core",
|
|
@@ -1884,87 +1981,105 @@
|
|
|
1884
1981
|
"relativePath": [
|
|
1885
1982
|
"dist",
|
|
1886
1983
|
"commands",
|
|
1887
|
-
"
|
|
1888
|
-
"
|
|
1984
|
+
"dbdoc",
|
|
1985
|
+
"analyze.js"
|
|
1889
1986
|
]
|
|
1890
1987
|
},
|
|
1891
|
-
"
|
|
1988
|
+
"dbdoc:export-sample-queries": {
|
|
1892
1989
|
"aliases": [],
|
|
1893
1990
|
"args": {},
|
|
1894
|
-
"description": "
|
|
1991
|
+
"description": "Export sample queries to MemberJunction metadata format (delegates to db-auto-doc export-sample-queries)",
|
|
1895
1992
|
"examples": [
|
|
1896
|
-
"<%= config.bin %> <%= command.id %>",
|
|
1897
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1898
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1899
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1900
|
-
"<%= config.bin %> <%= command.id %> --verbose",
|
|
1901
|
-
"<%= config.bin %> <%= command.id %> --report",
|
|
1902
|
-
"<%= config.bin %> <%= command.id %> --report_extended"
|
|
1993
|
+
"<%= config.bin %> <%= command.id %> --input ./output/sample-queries.json --output ./metadata/queries/.queries.json",
|
|
1994
|
+
"<%= config.bin %> <%= command.id %> --input ./sample-queries.json --output ./metadata/queries/.queries.json --separate-sql-files",
|
|
1995
|
+
"<%= config.bin %> <%= command.id %> --input ./sample-queries.json --output ./queries/.queries.json --category \"Database Documentation\"",
|
|
1996
|
+
"<%= config.bin %> <%= command.id %> --input ./sample-queries.json --output ./queries/.queries.json --status Pending --min-confidence 0.8"
|
|
1903
1997
|
],
|
|
1904
1998
|
"flags": {
|
|
1905
|
-
"
|
|
1906
|
-
"
|
|
1907
|
-
"
|
|
1908
|
-
"
|
|
1999
|
+
"input": {
|
|
2000
|
+
"char": "i",
|
|
2001
|
+
"description": "Path to sample-queries.json file generated by generate-queries command",
|
|
2002
|
+
"name": "input",
|
|
2003
|
+
"required": true,
|
|
1909
2004
|
"hasDynamicHelp": false,
|
|
1910
2005
|
"multiple": false,
|
|
1911
2006
|
"type": "option"
|
|
1912
2007
|
},
|
|
1913
|
-
"
|
|
1914
|
-
"
|
|
1915
|
-
"
|
|
2008
|
+
"output": {
|
|
2009
|
+
"char": "o",
|
|
2010
|
+
"description": "Output path for the .queries.json metadata file",
|
|
2011
|
+
"name": "output",
|
|
2012
|
+
"required": true,
|
|
1916
2013
|
"hasDynamicHelp": false,
|
|
1917
2014
|
"multiple": false,
|
|
1918
|
-
"options": [
|
|
1919
|
-
"install",
|
|
1920
|
-
"runtime",
|
|
1921
|
-
"ai",
|
|
1922
|
-
"metadata",
|
|
1923
|
-
"agent"
|
|
1924
|
-
],
|
|
1925
2015
|
"type": "option"
|
|
1926
2016
|
},
|
|
1927
|
-
"
|
|
1928
|
-
"description": "
|
|
1929
|
-
"name": "
|
|
2017
|
+
"separate-sql-files": {
|
|
2018
|
+
"description": "Write SQL to separate files and use @file: references",
|
|
2019
|
+
"name": "separate-sql-files",
|
|
2020
|
+
"allowNo": false,
|
|
2021
|
+
"type": "boolean"
|
|
2022
|
+
},
|
|
2023
|
+
"sql-dir": {
|
|
2024
|
+
"description": "Directory for SQL files when using --separate-sql-files (relative to output file)",
|
|
2025
|
+
"name": "sql-dir",
|
|
2026
|
+
"default": "SQL",
|
|
2027
|
+
"hasDynamicHelp": false,
|
|
2028
|
+
"multiple": false,
|
|
2029
|
+
"type": "option"
|
|
2030
|
+
},
|
|
2031
|
+
"category": {
|
|
2032
|
+
"description": "Category name for @lookup reference (e.g., \"Database Documentation\")",
|
|
2033
|
+
"name": "category",
|
|
2034
|
+
"required": false,
|
|
2035
|
+
"hasDynamicHelp": false,
|
|
2036
|
+
"multiple": false,
|
|
2037
|
+
"type": "option"
|
|
2038
|
+
},
|
|
2039
|
+
"status": {
|
|
2040
|
+
"description": "Status to assign to exported queries",
|
|
2041
|
+
"name": "status",
|
|
2042
|
+
"default": "Pending",
|
|
1930
2043
|
"hasDynamicHelp": false,
|
|
1931
2044
|
"multiple": false,
|
|
1932
2045
|
"options": [
|
|
1933
|
-
"
|
|
1934
|
-
"
|
|
1935
|
-
"
|
|
1936
|
-
"
|
|
1937
|
-
"console",
|
|
1938
|
-
"markdown",
|
|
1939
|
-
"compact",
|
|
1940
|
-
"table"
|
|
2046
|
+
"Approved",
|
|
2047
|
+
"Pending",
|
|
2048
|
+
"Rejected",
|
|
2049
|
+
"Expired"
|
|
1941
2050
|
],
|
|
1942
2051
|
"type": "option"
|
|
1943
2052
|
},
|
|
1944
|
-
"
|
|
1945
|
-
"
|
|
1946
|
-
"
|
|
1947
|
-
"
|
|
2053
|
+
"min-confidence": {
|
|
2054
|
+
"description": "Minimum confidence threshold to export (0-1)",
|
|
2055
|
+
"name": "min-confidence",
|
|
2056
|
+
"default": "0",
|
|
2057
|
+
"hasDynamicHelp": false,
|
|
2058
|
+
"multiple": false,
|
|
2059
|
+
"type": "option"
|
|
2060
|
+
},
|
|
2061
|
+
"validated-only": {
|
|
2062
|
+
"description": "Only export queries that were successfully validated",
|
|
2063
|
+
"name": "validated-only",
|
|
1948
2064
|
"allowNo": false,
|
|
1949
2065
|
"type": "boolean"
|
|
1950
2066
|
},
|
|
1951
|
-
"
|
|
1952
|
-
"
|
|
1953
|
-
"
|
|
1954
|
-
"name": "report",
|
|
2067
|
+
"append": {
|
|
2068
|
+
"description": "Append to existing metadata file instead of overwriting",
|
|
2069
|
+
"name": "append",
|
|
1955
2070
|
"allowNo": false,
|
|
1956
2071
|
"type": "boolean"
|
|
1957
2072
|
},
|
|
1958
|
-
"
|
|
1959
|
-
"description": "
|
|
1960
|
-
"name": "
|
|
2073
|
+
"include-primary-key": {
|
|
2074
|
+
"description": "Include primaryKey and sync fields (for updating existing records)",
|
|
2075
|
+
"name": "include-primary-key",
|
|
1961
2076
|
"allowNo": false,
|
|
1962
2077
|
"type": "boolean"
|
|
1963
2078
|
}
|
|
1964
2079
|
},
|
|
1965
2080
|
"hasDynamicHelp": false,
|
|
1966
2081
|
"hiddenAliases": [],
|
|
1967
|
-
"id": "
|
|
2082
|
+
"id": "dbdoc:export-sample-queries",
|
|
1968
2083
|
"pluginAlias": "@memberjunction/cli",
|
|
1969
2084
|
"pluginName": "@memberjunction/cli",
|
|
1970
2085
|
"pluginType": "core",
|
|
@@ -1974,144 +2089,100 @@
|
|
|
1974
2089
|
"relativePath": [
|
|
1975
2090
|
"dist",
|
|
1976
2091
|
"commands",
|
|
1977
|
-
"
|
|
1978
|
-
"
|
|
2092
|
+
"dbdoc",
|
|
2093
|
+
"export-sample-queries.js"
|
|
1979
2094
|
]
|
|
1980
2095
|
},
|
|
1981
|
-
"
|
|
1982
|
-
"aliases": [],
|
|
1983
|
-
"args": {},
|
|
1984
|
-
"description": "Show usage, flags, examples, and runtime hints for every `mj doctor` command.",
|
|
1985
|
-
"flags": {
|
|
1986
|
-
"format": {
|
|
1987
|
-
"description": "Output format. Defaults to text on a terminal and json when stdout is piped.",
|
|
1988
|
-
"name": "format",
|
|
1989
|
-
"hasDynamicHelp": false,
|
|
1990
|
-
"multiple": false,
|
|
1991
|
-
"options": [
|
|
1992
|
-
"text",
|
|
1993
|
-
"json",
|
|
1994
|
-
"md"
|
|
1995
|
-
],
|
|
1996
|
-
"type": "option"
|
|
1997
|
-
}
|
|
1998
|
-
},
|
|
1999
|
-
"hasDynamicHelp": false,
|
|
2000
|
-
"hiddenAliases": [],
|
|
2001
|
-
"id": "doctor:usage",
|
|
2002
|
-
"pluginAlias": "@memberjunction/cli",
|
|
2003
|
-
"pluginName": "@memberjunction/cli",
|
|
2004
|
-
"pluginType": "core",
|
|
2005
|
-
"strict": true,
|
|
2006
|
-
"enableJsonFlag": false,
|
|
2007
|
-
"isESM": true,
|
|
2008
|
-
"relativePath": [
|
|
2009
|
-
"dist",
|
|
2010
|
-
"commands",
|
|
2011
|
-
"doctor",
|
|
2012
|
-
"usage.js"
|
|
2013
|
-
]
|
|
2014
|
-
},
|
|
2015
|
-
"install:claude": {
|
|
2096
|
+
"dbdoc:export": {
|
|
2016
2097
|
"aliases": [],
|
|
2017
2098
|
"args": {},
|
|
2018
|
-
"description": "
|
|
2099
|
+
"description": "Export documentation in multiple formats (delegates to db-auto-doc export)",
|
|
2019
2100
|
"examples": [
|
|
2020
|
-
"<%= config.bin %>
|
|
2021
|
-
"<%= config.bin %>
|
|
2022
|
-
"<%= config.bin %>
|
|
2023
|
-
"<%= config.bin %>
|
|
2101
|
+
"<%= config.bin %> <%= command.id %> --state-file=./db-doc-state.json",
|
|
2102
|
+
"<%= config.bin %> <%= command.id %> --sql",
|
|
2103
|
+
"<%= config.bin %> <%= command.id %> --markdown",
|
|
2104
|
+
"<%= config.bin %> <%= command.id %> --html",
|
|
2105
|
+
"<%= config.bin %> <%= command.id %> --csv",
|
|
2106
|
+
"<%= config.bin %> <%= command.id %> --mermaid",
|
|
2107
|
+
"<%= config.bin %> <%= command.id %> --sql --markdown --html --csv --mermaid --apply"
|
|
2024
2108
|
],
|
|
2025
2109
|
"flags": {
|
|
2026
|
-
"
|
|
2027
|
-
"
|
|
2028
|
-
"
|
|
2029
|
-
"
|
|
2030
|
-
"hasDynamicHelp": false,
|
|
2031
|
-
"multiple": false,
|
|
2032
|
-
"type": "option"
|
|
2033
|
-
},
|
|
2034
|
-
"major": {
|
|
2035
|
-
"description": "Force a specific MJ major (default: detected from package.json)",
|
|
2036
|
-
"name": "major",
|
|
2037
|
-
"hasDynamicHelp": false,
|
|
2038
|
-
"multiple": false,
|
|
2039
|
-
"type": "option"
|
|
2040
|
-
},
|
|
2041
|
-
"ref": {
|
|
2042
|
-
"description": "Git ref to fetch from (branch or tag). Default: main.",
|
|
2043
|
-
"name": "ref",
|
|
2110
|
+
"state-file": {
|
|
2111
|
+
"char": "s",
|
|
2112
|
+
"description": "Path to state JSON file",
|
|
2113
|
+
"name": "state-file",
|
|
2044
2114
|
"hasDynamicHelp": false,
|
|
2045
2115
|
"multiple": false,
|
|
2046
2116
|
"type": "option"
|
|
2047
2117
|
},
|
|
2048
|
-
"
|
|
2049
|
-
"
|
|
2050
|
-
"
|
|
2118
|
+
"output-dir": {
|
|
2119
|
+
"char": "o",
|
|
2120
|
+
"description": "Output directory for generated files",
|
|
2121
|
+
"name": "output-dir",
|
|
2051
2122
|
"hasDynamicHelp": false,
|
|
2052
2123
|
"multiple": false,
|
|
2053
2124
|
"type": "option"
|
|
2054
2125
|
},
|
|
2055
|
-
"
|
|
2056
|
-
"description": "
|
|
2057
|
-
"name": "
|
|
2126
|
+
"sql": {
|
|
2127
|
+
"description": "Generate SQL script",
|
|
2128
|
+
"name": "sql",
|
|
2058
2129
|
"allowNo": false,
|
|
2059
2130
|
"type": "boolean"
|
|
2060
2131
|
},
|
|
2061
|
-
"
|
|
2062
|
-
"description": "
|
|
2063
|
-
"name": "
|
|
2132
|
+
"markdown": {
|
|
2133
|
+
"description": "Generate Markdown documentation",
|
|
2134
|
+
"name": "markdown",
|
|
2064
2135
|
"allowNo": false,
|
|
2065
2136
|
"type": "boolean"
|
|
2066
2137
|
},
|
|
2067
|
-
"
|
|
2068
|
-
"
|
|
2069
|
-
"
|
|
2070
|
-
"name": "yes",
|
|
2138
|
+
"html": {
|
|
2139
|
+
"description": "Generate interactive HTML documentation",
|
|
2140
|
+
"name": "html",
|
|
2071
2141
|
"allowNo": false,
|
|
2072
2142
|
"type": "boolean"
|
|
2073
2143
|
},
|
|
2074
|
-
"
|
|
2075
|
-
"description": "
|
|
2076
|
-
"name": "
|
|
2144
|
+
"csv": {
|
|
2145
|
+
"description": "Generate CSV exports (tables and columns)",
|
|
2146
|
+
"name": "csv",
|
|
2077
2147
|
"allowNo": false,
|
|
2078
2148
|
"type": "boolean"
|
|
2079
2149
|
},
|
|
2080
|
-
"
|
|
2081
|
-
"description": "
|
|
2082
|
-
"name": "
|
|
2150
|
+
"mermaid": {
|
|
2151
|
+
"description": "Generate Mermaid ERD diagram files",
|
|
2152
|
+
"name": "mermaid",
|
|
2083
2153
|
"allowNo": false,
|
|
2084
2154
|
"type": "boolean"
|
|
2085
2155
|
},
|
|
2086
|
-
"
|
|
2087
|
-
"description": "
|
|
2088
|
-
"name": "
|
|
2156
|
+
"report": {
|
|
2157
|
+
"description": "Generate analysis report",
|
|
2158
|
+
"name": "report",
|
|
2089
2159
|
"allowNo": false,
|
|
2090
2160
|
"type": "boolean"
|
|
2091
2161
|
},
|
|
2092
|
-
"
|
|
2093
|
-
"description": "
|
|
2094
|
-
"name": "
|
|
2162
|
+
"apply": {
|
|
2163
|
+
"description": "Apply SQL to database",
|
|
2164
|
+
"name": "apply",
|
|
2095
2165
|
"allowNo": false,
|
|
2096
2166
|
"type": "boolean"
|
|
2097
2167
|
},
|
|
2098
|
-
"
|
|
2099
|
-
"description": "
|
|
2100
|
-
"name": "
|
|
2168
|
+
"approved-only": {
|
|
2169
|
+
"description": "Only export approved items",
|
|
2170
|
+
"name": "approved-only",
|
|
2101
2171
|
"allowNo": false,
|
|
2102
2172
|
"type": "boolean"
|
|
2103
2173
|
},
|
|
2104
|
-
"
|
|
2105
|
-
"
|
|
2106
|
-
"
|
|
2107
|
-
"
|
|
2108
|
-
"
|
|
2109
|
-
"
|
|
2174
|
+
"confidence-threshold": {
|
|
2175
|
+
"description": "Minimum confidence threshold",
|
|
2176
|
+
"name": "confidence-threshold",
|
|
2177
|
+
"default": "0",
|
|
2178
|
+
"hasDynamicHelp": false,
|
|
2179
|
+
"multiple": false,
|
|
2180
|
+
"type": "option"
|
|
2110
2181
|
}
|
|
2111
2182
|
},
|
|
2112
2183
|
"hasDynamicHelp": false,
|
|
2113
2184
|
"hiddenAliases": [],
|
|
2114
|
-
"id": "
|
|
2185
|
+
"id": "dbdoc:export",
|
|
2115
2186
|
"pluginAlias": "@memberjunction/cli",
|
|
2116
2187
|
"pluginName": "@memberjunction/cli",
|
|
2117
2188
|
"pluginType": "core",
|
|
@@ -2121,118 +2192,65 @@
|
|
|
2121
2192
|
"relativePath": [
|
|
2122
2193
|
"dist",
|
|
2123
2194
|
"commands",
|
|
2124
|
-
"
|
|
2125
|
-
"
|
|
2195
|
+
"dbdoc",
|
|
2196
|
+
"export.js"
|
|
2126
2197
|
]
|
|
2127
2198
|
},
|
|
2128
|
-
"
|
|
2199
|
+
"dbdoc:generate-queries": {
|
|
2129
2200
|
"aliases": [],
|
|
2130
2201
|
"args": {},
|
|
2131
|
-
"description": "
|
|
2202
|
+
"description": "Generate sample SQL queries from existing analysis state (delegates to db-auto-doc generate-queries)",
|
|
2132
2203
|
"examples": [
|
|
2133
|
-
"<%= config.bin %> <%= command.id %>",
|
|
2134
|
-
"<%= config.bin %> <%= command.id %> -
|
|
2135
|
-
"<%= config.bin %> <%= command.id %> --
|
|
2136
|
-
"<%= config.bin %> <%= command.id %> --yes"
|
|
2204
|
+
"<%= config.bin %> <%= command.id %> --from-state ./output/run-1/state.json",
|
|
2205
|
+
"<%= config.bin %> <%= command.id %> --from-state ./output/run-1/state.json --output-dir ./queries",
|
|
2206
|
+
"<%= config.bin %> <%= command.id %> --from-state ./output/run-1/state.json --queries-per-table 10"
|
|
2137
2207
|
],
|
|
2138
2208
|
"flags": {
|
|
2139
|
-
"
|
|
2140
|
-
"
|
|
2141
|
-
"
|
|
2142
|
-
"
|
|
2209
|
+
"from-state": {
|
|
2210
|
+
"description": "Path to existing state.json file from previous analysis",
|
|
2211
|
+
"name": "from-state",
|
|
2212
|
+
"required": true,
|
|
2143
2213
|
"hasDynamicHelp": false,
|
|
2144
2214
|
"multiple": false,
|
|
2145
2215
|
"type": "option"
|
|
2146
2216
|
},
|
|
2147
|
-
"dir": {
|
|
2148
|
-
"description": "
|
|
2149
|
-
"name": "dir",
|
|
2150
|
-
"
|
|
2217
|
+
"output-dir": {
|
|
2218
|
+
"description": "Output directory for generated queries",
|
|
2219
|
+
"name": "output-dir",
|
|
2220
|
+
"required": false,
|
|
2151
2221
|
"hasDynamicHelp": false,
|
|
2152
2222
|
"multiple": false,
|
|
2153
2223
|
"type": "option"
|
|
2154
2224
|
},
|
|
2155
2225
|
"config": {
|
|
2156
2226
|
"char": "c",
|
|
2157
|
-
"description": "Path to
|
|
2227
|
+
"description": "Path to config file (for database connection and AI settings)",
|
|
2158
2228
|
"name": "config",
|
|
2229
|
+
"default": "./config.json",
|
|
2159
2230
|
"hasDynamicHelp": false,
|
|
2160
2231
|
"multiple": false,
|
|
2161
2232
|
"type": "option"
|
|
2162
2233
|
},
|
|
2163
|
-
"
|
|
2164
|
-
"description": "
|
|
2165
|
-
"
|
|
2166
|
-
"
|
|
2167
|
-
"
|
|
2168
|
-
"
|
|
2169
|
-
|
|
2170
|
-
"dry-run": {
|
|
2171
|
-
"description": "Show the install plan without executing it",
|
|
2172
|
-
"name": "dry-run",
|
|
2173
|
-
"allowNo": false,
|
|
2174
|
-
"type": "boolean"
|
|
2175
|
-
},
|
|
2176
|
-
"yes": {
|
|
2177
|
-
"char": "y",
|
|
2178
|
-
"description": "Non-interactive mode: auto-select latest version and accept defaults",
|
|
2179
|
-
"name": "yes",
|
|
2180
|
-
"allowNo": false,
|
|
2181
|
-
"type": "boolean"
|
|
2182
|
-
},
|
|
2183
|
-
"verbose": {
|
|
2184
|
-
"char": "v",
|
|
2185
|
-
"description": "Show detailed output",
|
|
2186
|
-
"name": "verbose",
|
|
2187
|
-
"allowNo": false,
|
|
2188
|
-
"type": "boolean"
|
|
2189
|
-
},
|
|
2190
|
-
"skip-db": {
|
|
2191
|
-
"description": "Skip database provisioning phases",
|
|
2192
|
-
"name": "skip-db",
|
|
2193
|
-
"allowNo": false,
|
|
2194
|
-
"type": "boolean"
|
|
2195
|
-
},
|
|
2196
|
-
"skip-start": {
|
|
2197
|
-
"description": "Skip service startup and smoke tests",
|
|
2198
|
-
"name": "skip-start",
|
|
2199
|
-
"allowNo": false,
|
|
2200
|
-
"type": "boolean"
|
|
2201
|
-
},
|
|
2202
|
-
"no-resume": {
|
|
2203
|
-
"description": "Ignore any existing checkpoint and start fresh",
|
|
2204
|
-
"name": "no-resume",
|
|
2205
|
-
"allowNo": false,
|
|
2206
|
-
"type": "boolean"
|
|
2207
|
-
},
|
|
2208
|
-
"fast": {
|
|
2209
|
-
"description": "Fast mode: skip smoke test and optimize post-codegen steps. Re-run without --fast if you encounter issues.",
|
|
2210
|
-
"name": "fast",
|
|
2211
|
-
"allowNo": false,
|
|
2212
|
-
"type": "boolean"
|
|
2213
|
-
},
|
|
2214
|
-
"overwrite-config": {
|
|
2215
|
-
"description": "Overwrite existing config files (.env, mj.config.cjs, environment.ts) instead of preserving them",
|
|
2216
|
-
"name": "overwrite-config",
|
|
2217
|
-
"allowNo": false,
|
|
2218
|
-
"type": "boolean"
|
|
2219
|
-
},
|
|
2220
|
-
"monorepo": {
|
|
2221
|
-
"description": "Install the full MemberJunction source repository instead of the lightweight distribution. Use this for MJ framework development.",
|
|
2222
|
-
"name": "monorepo",
|
|
2223
|
-
"allowNo": false,
|
|
2224
|
-
"type": "boolean"
|
|
2234
|
+
"queries-per-table": {
|
|
2235
|
+
"description": "Number of queries to generate per table",
|
|
2236
|
+
"name": "queries-per-table",
|
|
2237
|
+
"required": false,
|
|
2238
|
+
"hasDynamicHelp": false,
|
|
2239
|
+
"multiple": false,
|
|
2240
|
+
"type": "option"
|
|
2225
2241
|
},
|
|
2226
|
-
"
|
|
2227
|
-
"description": "
|
|
2228
|
-
"name": "
|
|
2229
|
-
"
|
|
2230
|
-
"
|
|
2242
|
+
"max-execution-time": {
|
|
2243
|
+
"description": "Maximum execution time for query validation (ms)",
|
|
2244
|
+
"name": "max-execution-time",
|
|
2245
|
+
"required": false,
|
|
2246
|
+
"hasDynamicHelp": false,
|
|
2247
|
+
"multiple": false,
|
|
2248
|
+
"type": "option"
|
|
2231
2249
|
}
|
|
2232
2250
|
},
|
|
2233
2251
|
"hasDynamicHelp": false,
|
|
2234
2252
|
"hiddenAliases": [],
|
|
2235
|
-
"id": "
|
|
2253
|
+
"id": "dbdoc:generate-queries",
|
|
2236
2254
|
"pluginAlias": "@memberjunction/cli",
|
|
2237
2255
|
"pluginName": "@memberjunction/cli",
|
|
2238
2256
|
"pluginType": "core",
|
|
@@ -2242,31 +2260,19 @@
|
|
|
2242
2260
|
"relativePath": [
|
|
2243
2261
|
"dist",
|
|
2244
2262
|
"commands",
|
|
2245
|
-
"
|
|
2246
|
-
"
|
|
2263
|
+
"dbdoc",
|
|
2264
|
+
"generate-queries.js"
|
|
2247
2265
|
]
|
|
2248
2266
|
},
|
|
2249
|
-
"
|
|
2267
|
+
"dbdoc": {
|
|
2250
2268
|
"aliases": [],
|
|
2251
2269
|
"args": {},
|
|
2252
|
-
"description": "
|
|
2253
|
-
"flags": {
|
|
2254
|
-
"format": {
|
|
2255
|
-
"description": "Output format. Defaults to text on a terminal and json when stdout is piped.",
|
|
2256
|
-
"name": "format",
|
|
2257
|
-
"hasDynamicHelp": false,
|
|
2258
|
-
"multiple": false,
|
|
2259
|
-
"options": [
|
|
2260
|
-
"text",
|
|
2261
|
-
"json",
|
|
2262
|
-
"md"
|
|
2263
|
-
],
|
|
2264
|
-
"type": "option"
|
|
2265
|
-
}
|
|
2266
|
-
},
|
|
2270
|
+
"description": "AI-powered database documentation generator",
|
|
2271
|
+
"flags": {},
|
|
2267
2272
|
"hasDynamicHelp": false,
|
|
2273
|
+
"hidden": false,
|
|
2268
2274
|
"hiddenAliases": [],
|
|
2269
|
-
"id": "
|
|
2275
|
+
"id": "dbdoc",
|
|
2270
2276
|
"pluginAlias": "@memberjunction/cli",
|
|
2271
2277
|
"pluginName": "@memberjunction/cli",
|
|
2272
2278
|
"pluginType": "core",
|
|
@@ -2276,102 +2282,21 @@
|
|
|
2276
2282
|
"relativePath": [
|
|
2277
2283
|
"dist",
|
|
2278
2284
|
"commands",
|
|
2279
|
-
"
|
|
2280
|
-
"
|
|
2285
|
+
"dbdoc",
|
|
2286
|
+
"index.js"
|
|
2281
2287
|
]
|
|
2282
2288
|
},
|
|
2283
|
-
"
|
|
2289
|
+
"dbdoc:init": {
|
|
2284
2290
|
"aliases": [],
|
|
2285
2291
|
"args": {},
|
|
2286
|
-
"description": "
|
|
2292
|
+
"description": "Initialize DBAutoDoc project (delegates to db-auto-doc init)",
|
|
2287
2293
|
"examples": [
|
|
2288
|
-
"<%= config.bin %>
|
|
2289
|
-
"<%= config.bin %> migrate convert --split --dry-run",
|
|
2290
|
-
"<%= config.bin %> migrate convert --split --file V202604060452__v5.24.x__KnowledgeHub.sql",
|
|
2291
|
-
"<%= config.bin %> migrate convert --source-dir ./migrations/v5 --output-dir ./migrations-pg/v5",
|
|
2292
|
-
"<%= config.bin %> migrate convert --verbose"
|
|
2294
|
+
"<%= config.bin %> <%= command.id %>"
|
|
2293
2295
|
],
|
|
2294
|
-
"flags": {
|
|
2295
|
-
"source-dir": {
|
|
2296
|
-
"description": "Source T-SQL migrations directory",
|
|
2297
|
-
"name": "source-dir",
|
|
2298
|
-
"default": "./migrations/v5",
|
|
2299
|
-
"hasDynamicHelp": false,
|
|
2300
|
-
"multiple": false,
|
|
2301
|
-
"type": "option"
|
|
2302
|
-
},
|
|
2303
|
-
"output-dir": {
|
|
2304
|
-
"description": "Output PG migrations directory",
|
|
2305
|
-
"name": "output-dir",
|
|
2306
|
-
"default": "./migrations-pg/v5",
|
|
2307
|
-
"hasDynamicHelp": false,
|
|
2308
|
-
"multiple": false,
|
|
2309
|
-
"type": "option"
|
|
2310
|
-
},
|
|
2311
|
-
"file": {
|
|
2312
|
-
"description": "Convert a specific file (filename only, looked up in source-dir)",
|
|
2313
|
-
"name": "file",
|
|
2314
|
-
"hasDynamicHelp": false,
|
|
2315
|
-
"multiple": false,
|
|
2316
|
-
"type": "option"
|
|
2317
|
-
},
|
|
2318
|
-
"schema": {
|
|
2319
|
-
"description": "Target schema name",
|
|
2320
|
-
"name": "schema",
|
|
2321
|
-
"default": "__mj",
|
|
2322
|
-
"hasDynamicHelp": false,
|
|
2323
|
-
"multiple": false,
|
|
2324
|
-
"type": "option"
|
|
2325
|
-
},
|
|
2326
|
-
"core-schema": {
|
|
2327
|
-
"description": "MJ core schema substituted for ${mjSchema} (default __mj). Distinct from --schema, which is the app's OWN schema: an Open App migration references core as ${mjSchema} and itself as ${flyway:defaultSchema}, and for every app those differ.",
|
|
2328
|
-
"name": "core-schema",
|
|
2329
|
-
"default": "__mj",
|
|
2330
|
-
"hasDynamicHelp": false,
|
|
2331
|
-
"multiple": false,
|
|
2332
|
-
"type": "option"
|
|
2333
|
-
},
|
|
2334
|
-
"dry-run": {
|
|
2335
|
-
"description": "Show what would be converted without writing files",
|
|
2336
|
-
"name": "dry-run",
|
|
2337
|
-
"allowNo": false,
|
|
2338
|
-
"type": "boolean"
|
|
2339
|
-
},
|
|
2340
|
-
"no-header": {
|
|
2341
|
-
"description": "Skip PG header (extensions, schema, implicit cast)",
|
|
2342
|
-
"name": "no-header",
|
|
2343
|
-
"allowNo": false,
|
|
2344
|
-
"type": "boolean"
|
|
2345
|
-
},
|
|
2346
|
-
"verbose": {
|
|
2347
|
-
"char": "v",
|
|
2348
|
-
"description": "Show per-statement progress",
|
|
2349
|
-
"name": "verbose",
|
|
2350
|
-
"allowNo": false,
|
|
2351
|
-
"type": "boolean"
|
|
2352
|
-
},
|
|
2353
|
-
"split": {
|
|
2354
|
-
"description": "Split-and-regenerate (the standard path): transpile only hand-written DDL via the AST dialect; CodeGen objects are regenerated by `mj codegen` and mj-sync metadata re-seeded by `mj sync push`; every conversion gap is surfaced and fails the run unless --allow-gaps.",
|
|
2355
|
-
"name": "split",
|
|
2356
|
-
"allowNo": false,
|
|
2357
|
-
"type": "boolean"
|
|
2358
|
-
},
|
|
2359
|
-
"allow-gaps": {
|
|
2360
|
-
"description": "Exit 0 even when migrations have conversion gaps — with --split: hand-authoring needed or unhandled statements; on the legacy path: \"-- Could not parse\" / \"-- ERROR converting batch\" markers in the output. Gaps are still embedded as comments and listed in the summary.",
|
|
2361
|
-
"name": "allow-gaps",
|
|
2362
|
-
"allowNo": false,
|
|
2363
|
-
"type": "boolean"
|
|
2364
|
-
},
|
|
2365
|
-
"bake-codegen": {
|
|
2366
|
-
"description": "With --split: bake native PG CodeGen objects inline per migration (Path C), so the set deploys with `mj migrate` alone — no `mj codegen` step. Requires a LIVE working PG database (DB_PLATFORM=postgresql + PG_* env, same as `mj codegen`) seeded to the state just BEFORE the migrations being converted (typically the latest baseline); the converter brings it forward in committed order as it bakes. Not compatible with --dry-run.",
|
|
2367
|
-
"name": "bake-codegen",
|
|
2368
|
-
"allowNo": false,
|
|
2369
|
-
"type": "boolean"
|
|
2370
|
-
}
|
|
2371
|
-
},
|
|
2296
|
+
"flags": {},
|
|
2372
2297
|
"hasDynamicHelp": false,
|
|
2373
2298
|
"hiddenAliases": [],
|
|
2374
|
-
"id": "
|
|
2299
|
+
"id": "dbdoc:init",
|
|
2375
2300
|
"pluginAlias": "@memberjunction/cli",
|
|
2376
2301
|
"pluginName": "@memberjunction/cli",
|
|
2377
2302
|
"pluginType": "core",
|
|
@@ -2381,63 +2306,30 @@
|
|
|
2381
2306
|
"relativePath": [
|
|
2382
2307
|
"dist",
|
|
2383
2308
|
"commands",
|
|
2384
|
-
"
|
|
2385
|
-
"
|
|
2309
|
+
"dbdoc",
|
|
2310
|
+
"init.js"
|
|
2386
2311
|
]
|
|
2387
2312
|
},
|
|
2388
|
-
"
|
|
2313
|
+
"dbdoc:reset": {
|
|
2389
2314
|
"aliases": [],
|
|
2390
|
-
"args": {
|
|
2391
|
-
|
|
2392
|
-
"description": "Short description (will be converted to PascalCase with underscores)",
|
|
2393
|
-
"name": "description",
|
|
2394
|
-
"required": true
|
|
2395
|
-
}
|
|
2396
|
-
},
|
|
2397
|
-
"description": "Scaffold a new migration file for the current database platform",
|
|
2315
|
+
"args": {},
|
|
2316
|
+
"description": "Reset analysis state (delegates to db-auto-doc reset)",
|
|
2398
2317
|
"examples": [
|
|
2399
|
-
"<%= config.bin %> <%= command.id %>
|
|
2400
|
-
"<%= config.bin %> <%= command.id %>
|
|
2401
|
-
"<%= config.bin %> <%= command.id %> \"Add FooID to Bar\" --dir ./migrations/v5"
|
|
2318
|
+
"<%= config.bin %> <%= command.id %>",
|
|
2319
|
+
"<%= config.bin %> <%= command.id %> --force"
|
|
2402
2320
|
],
|
|
2403
2321
|
"flags": {
|
|
2404
|
-
"
|
|
2405
|
-
"char": "
|
|
2406
|
-
"description": "
|
|
2407
|
-
"name": "
|
|
2408
|
-
"hasDynamicHelp": false,
|
|
2409
|
-
"multiple": false,
|
|
2410
|
-
"type": "option"
|
|
2411
|
-
},
|
|
2412
|
-
"platform": {
|
|
2413
|
-
"char": "p",
|
|
2414
|
-
"description": "Override platform: sqlserver | postgresql (default: config.dbPlatform)",
|
|
2415
|
-
"name": "platform",
|
|
2416
|
-
"hasDynamicHelp": false,
|
|
2417
|
-
"multiple": false,
|
|
2418
|
-
"options": [
|
|
2419
|
-
"sqlserver",
|
|
2420
|
-
"postgresql"
|
|
2421
|
-
],
|
|
2422
|
-
"type": "option"
|
|
2423
|
-
},
|
|
2424
|
-
"dir": {
|
|
2425
|
-
"description": "Output directory (default: ./migrations/v5 or ./migrations-pg/v5)",
|
|
2426
|
-
"name": "dir",
|
|
2427
|
-
"hasDynamicHelp": false,
|
|
2428
|
-
"multiple": false,
|
|
2429
|
-
"type": "option"
|
|
2430
|
-
},
|
|
2431
|
-
"x-x": {
|
|
2432
|
-
"description": "Use {version}.x.x suffix instead of {version}.x (e.g. 5.25.x instead of 5.25.x)",
|
|
2433
|
-
"name": "x-x",
|
|
2322
|
+
"force": {
|
|
2323
|
+
"char": "f",
|
|
2324
|
+
"description": "Force reset without confirmation",
|
|
2325
|
+
"name": "force",
|
|
2434
2326
|
"allowNo": false,
|
|
2435
2327
|
"type": "boolean"
|
|
2436
2328
|
}
|
|
2437
2329
|
},
|
|
2438
2330
|
"hasDynamicHelp": false,
|
|
2439
2331
|
"hiddenAliases": [],
|
|
2440
|
-
"id": "
|
|
2332
|
+
"id": "dbdoc:reset",
|
|
2441
2333
|
"pluginAlias": "@memberjunction/cli",
|
|
2442
2334
|
"pluginName": "@memberjunction/cli",
|
|
2443
2335
|
"pluginType": "core",
|
|
@@ -2447,60 +2339,31 @@
|
|
|
2447
2339
|
"relativePath": [
|
|
2448
2340
|
"dist",
|
|
2449
2341
|
"commands",
|
|
2450
|
-
"
|
|
2451
|
-
"
|
|
2342
|
+
"dbdoc",
|
|
2343
|
+
"reset.js"
|
|
2452
2344
|
]
|
|
2453
2345
|
},
|
|
2454
|
-
"
|
|
2346
|
+
"dbdoc:status": {
|
|
2455
2347
|
"aliases": [],
|
|
2456
2348
|
"args": {},
|
|
2457
|
-
"description": "
|
|
2349
|
+
"description": "Show analysis status and progress (delegates to db-auto-doc status)",
|
|
2458
2350
|
"examples": [
|
|
2459
|
-
"<%= config.bin %> <%= command.id
|
|
2460
|
-
"<%= config.bin %> <%= command.id %> --
|
|
2461
|
-
"<%= config.bin %> <%= command.id %> --schema __BCSaaS --tag v1.0.0\n"
|
|
2351
|
+
"<%= config.bin %> <%= command.id %>",
|
|
2352
|
+
"<%= config.bin %> <%= command.id %> --state-file ./custom-state.json"
|
|
2462
2353
|
],
|
|
2463
2354
|
"flags": {
|
|
2464
|
-
"
|
|
2465
|
-
"char": "v",
|
|
2466
|
-
"description": "Enable additional logging",
|
|
2467
|
-
"name": "verbose",
|
|
2468
|
-
"allowNo": false,
|
|
2469
|
-
"type": "boolean"
|
|
2470
|
-
},
|
|
2471
|
-
"tag": {
|
|
2472
|
-
"char": "t",
|
|
2473
|
-
"description": "Version tag to use for running remote migrations",
|
|
2474
|
-
"name": "tag",
|
|
2475
|
-
"hasDynamicHelp": false,
|
|
2476
|
-
"multiple": false,
|
|
2477
|
-
"type": "option"
|
|
2478
|
-
},
|
|
2479
|
-
"schema": {
|
|
2355
|
+
"state-file": {
|
|
2480
2356
|
"char": "s",
|
|
2481
|
-
"description": "
|
|
2482
|
-
"name": "
|
|
2483
|
-
"hasDynamicHelp": false,
|
|
2484
|
-
"multiple": false,
|
|
2485
|
-
"type": "option"
|
|
2486
|
-
},
|
|
2487
|
-
"dir": {
|
|
2488
|
-
"description": "Migration source directory (overrides migrationsLocation from config)",
|
|
2489
|
-
"name": "dir",
|
|
2357
|
+
"description": "Path to state JSON file",
|
|
2358
|
+
"name": "state-file",
|
|
2490
2359
|
"hasDynamicHelp": false,
|
|
2491
2360
|
"multiple": false,
|
|
2492
2361
|
"type": "option"
|
|
2493
|
-
},
|
|
2494
|
-
"check-connection": {
|
|
2495
|
-
"description": "Verify the database connection (including TLS) and exit without migrating",
|
|
2496
|
-
"name": "check-connection",
|
|
2497
|
-
"allowNo": false,
|
|
2498
|
-
"type": "boolean"
|
|
2499
2362
|
}
|
|
2500
2363
|
},
|
|
2501
2364
|
"hasDynamicHelp": false,
|
|
2502
2365
|
"hiddenAliases": [],
|
|
2503
|
-
"id": "
|
|
2366
|
+
"id": "dbdoc:status",
|
|
2504
2367
|
"pluginAlias": "@memberjunction/cli",
|
|
2505
2368
|
"pluginName": "@memberjunction/cli",
|
|
2506
2369
|
"pluginType": "core",
|
|
@@ -2510,68 +2373,177 @@
|
|
|
2510
2373
|
"relativePath": [
|
|
2511
2374
|
"dist",
|
|
2512
2375
|
"commands",
|
|
2513
|
-
"
|
|
2514
|
-
"
|
|
2376
|
+
"dbdoc",
|
|
2377
|
+
"status.js"
|
|
2515
2378
|
]
|
|
2516
2379
|
},
|
|
2517
|
-
"
|
|
2380
|
+
"dbdoc:usage": {
|
|
2518
2381
|
"aliases": [],
|
|
2519
2382
|
"args": {},
|
|
2520
|
-
"description": "
|
|
2521
|
-
"examples": [
|
|
2522
|
-
"<%= config.bin %> migrate rebake",
|
|
2523
|
-
"<%= config.bin %> migrate rebake --baseline-floor V202605291452 --dry-run"
|
|
2524
|
-
],
|
|
2383
|
+
"description": "Show usage, flags, examples, and runtime hints for every `mj dbdoc` command.",
|
|
2525
2384
|
"flags": {
|
|
2526
|
-
"
|
|
2527
|
-
"description": "
|
|
2528
|
-
"name": "
|
|
2529
|
-
"default": "./migrations/v5",
|
|
2385
|
+
"format": {
|
|
2386
|
+
"description": "Output format. Defaults to text on a terminal and json when stdout is piped.",
|
|
2387
|
+
"name": "format",
|
|
2530
2388
|
"hasDynamicHelp": false,
|
|
2531
2389
|
"multiple": false,
|
|
2390
|
+
"options": [
|
|
2391
|
+
"text",
|
|
2392
|
+
"json",
|
|
2393
|
+
"md"
|
|
2394
|
+
],
|
|
2532
2395
|
"type": "option"
|
|
2533
|
-
}
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2396
|
+
}
|
|
2397
|
+
},
|
|
2398
|
+
"hasDynamicHelp": false,
|
|
2399
|
+
"hiddenAliases": [],
|
|
2400
|
+
"id": "dbdoc:usage",
|
|
2401
|
+
"pluginAlias": "@memberjunction/cli",
|
|
2402
|
+
"pluginName": "@memberjunction/cli",
|
|
2403
|
+
"pluginType": "core",
|
|
2404
|
+
"strict": true,
|
|
2405
|
+
"enableJsonFlag": false,
|
|
2406
|
+
"isESM": true,
|
|
2407
|
+
"relativePath": [
|
|
2408
|
+
"dist",
|
|
2409
|
+
"commands",
|
|
2410
|
+
"dbdoc",
|
|
2411
|
+
"usage.js"
|
|
2412
|
+
]
|
|
2413
|
+
},
|
|
2414
|
+
"dev": {
|
|
2415
|
+
"aliases": [],
|
|
2416
|
+
"args": {},
|
|
2417
|
+
"description": "Local development tooling: generate, inspect, and tear down the cross-repo pnpm workspace that links sibling repo clones. Run `mj dev usage` for every command's flags, examples, and runtime hints.",
|
|
2418
|
+
"flags": {},
|
|
2419
|
+
"hasDynamicHelp": false,
|
|
2420
|
+
"hidden": false,
|
|
2421
|
+
"hiddenAliases": [],
|
|
2422
|
+
"id": "dev",
|
|
2423
|
+
"pluginAlias": "@memberjunction/cli",
|
|
2424
|
+
"pluginName": "@memberjunction/cli",
|
|
2425
|
+
"pluginType": "core",
|
|
2426
|
+
"strict": true,
|
|
2427
|
+
"enableJsonFlag": false,
|
|
2428
|
+
"isESM": true,
|
|
2429
|
+
"relativePath": [
|
|
2430
|
+
"dist",
|
|
2431
|
+
"commands",
|
|
2432
|
+
"dev",
|
|
2433
|
+
"index.js"
|
|
2434
|
+
]
|
|
2435
|
+
},
|
|
2436
|
+
"dev:usage": {
|
|
2437
|
+
"aliases": [],
|
|
2438
|
+
"args": {},
|
|
2439
|
+
"description": "Show usage, flags, examples, and runtime hints for every `mj dev` command.",
|
|
2440
|
+
"flags": {
|
|
2441
|
+
"format": {
|
|
2442
|
+
"description": "Output format. Defaults to text on a terminal and json when stdout is piped.",
|
|
2443
|
+
"name": "format",
|
|
2538
2444
|
"hasDynamicHelp": false,
|
|
2539
2445
|
"multiple": false,
|
|
2446
|
+
"options": [
|
|
2447
|
+
"text",
|
|
2448
|
+
"json",
|
|
2449
|
+
"md"
|
|
2450
|
+
],
|
|
2540
2451
|
"type": "option"
|
|
2541
|
-
}
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2452
|
+
}
|
|
2453
|
+
},
|
|
2454
|
+
"hasDynamicHelp": false,
|
|
2455
|
+
"hiddenAliases": [],
|
|
2456
|
+
"id": "dev:usage",
|
|
2457
|
+
"pluginAlias": "@memberjunction/cli",
|
|
2458
|
+
"pluginName": "@memberjunction/cli",
|
|
2459
|
+
"pluginType": "core",
|
|
2460
|
+
"strict": true,
|
|
2461
|
+
"enableJsonFlag": false,
|
|
2462
|
+
"isESM": true,
|
|
2463
|
+
"relativePath": [
|
|
2464
|
+
"dist",
|
|
2465
|
+
"commands",
|
|
2466
|
+
"dev",
|
|
2467
|
+
"usage.js"
|
|
2468
|
+
]
|
|
2469
|
+
},
|
|
2470
|
+
"doctor": {
|
|
2471
|
+
"aliases": [],
|
|
2472
|
+
"args": {},
|
|
2473
|
+
"description": "Diagnose a MemberJunction installation",
|
|
2474
|
+
"examples": [
|
|
2475
|
+
"<%= config.bin %> <%= command.id %>",
|
|
2476
|
+
"<%= config.bin %> <%= command.id %> --dir ./my-mj-project",
|
|
2477
|
+
"<%= config.bin %> <%= command.id %> --format json",
|
|
2478
|
+
"<%= config.bin %> <%= command.id %> --scope ai",
|
|
2479
|
+
"<%= config.bin %> <%= command.id %> --verbose",
|
|
2480
|
+
"<%= config.bin %> <%= command.id %> --report",
|
|
2481
|
+
"<%= config.bin %> <%= command.id %> --report_extended"
|
|
2482
|
+
],
|
|
2483
|
+
"flags": {
|
|
2484
|
+
"dir": {
|
|
2485
|
+
"description": "Target directory to diagnose",
|
|
2486
|
+
"name": "dir",
|
|
2487
|
+
"default": ".",
|
|
2546
2488
|
"hasDynamicHelp": false,
|
|
2547
2489
|
"multiple": false,
|
|
2548
2490
|
"type": "option"
|
|
2549
2491
|
},
|
|
2550
|
-
"
|
|
2551
|
-
"description": "
|
|
2552
|
-
"name": "
|
|
2553
|
-
"default": "__mj",
|
|
2492
|
+
"scope": {
|
|
2493
|
+
"description": "Diagnostic scope to filter by (install, runtime, ai, metadata, agent)",
|
|
2494
|
+
"name": "scope",
|
|
2554
2495
|
"hasDynamicHelp": false,
|
|
2555
2496
|
"multiple": false,
|
|
2497
|
+
"options": [
|
|
2498
|
+
"install",
|
|
2499
|
+
"runtime",
|
|
2500
|
+
"ai",
|
|
2501
|
+
"metadata",
|
|
2502
|
+
"agent"
|
|
2503
|
+
],
|
|
2556
2504
|
"type": "option"
|
|
2557
2505
|
},
|
|
2558
|
-
"
|
|
2559
|
-
"description": "
|
|
2560
|
-
"name": "
|
|
2506
|
+
"format": {
|
|
2507
|
+
"description": "Output format: text (human), json (machine-readable), md (Markdown). Defaults to human output on a terminal and json when stdout is piped. Legacy spellings (console/markdown/compact/table) are accepted.",
|
|
2508
|
+
"name": "format",
|
|
2561
2509
|
"hasDynamicHelp": false,
|
|
2562
2510
|
"multiple": false,
|
|
2511
|
+
"options": [
|
|
2512
|
+
"text",
|
|
2513
|
+
"json",
|
|
2514
|
+
"md",
|
|
2515
|
+
"human",
|
|
2516
|
+
"console",
|
|
2517
|
+
"markdown",
|
|
2518
|
+
"compact",
|
|
2519
|
+
"table"
|
|
2520
|
+
],
|
|
2563
2521
|
"type": "option"
|
|
2564
2522
|
},
|
|
2565
|
-
"
|
|
2566
|
-
"
|
|
2567
|
-
"
|
|
2523
|
+
"verbose": {
|
|
2524
|
+
"char": "v",
|
|
2525
|
+
"description": "Show detailed output including suggested fixes inline",
|
|
2526
|
+
"name": "verbose",
|
|
2527
|
+
"allowNo": false,
|
|
2528
|
+
"type": "boolean"
|
|
2529
|
+
},
|
|
2530
|
+
"report": {
|
|
2531
|
+
"char": "r",
|
|
2532
|
+
"description": "Generate a diagnostic report file (mj-diagnostic-report.md) for sharing with support",
|
|
2533
|
+
"name": "report",
|
|
2534
|
+
"allowNo": false,
|
|
2535
|
+
"type": "boolean"
|
|
2536
|
+
},
|
|
2537
|
+
"report_extended": {
|
|
2538
|
+
"description": "Generate an extended report with config file snapshots and service startup log capture (~60s longer)",
|
|
2539
|
+
"name": "report_extended",
|
|
2568
2540
|
"allowNo": false,
|
|
2569
2541
|
"type": "boolean"
|
|
2570
2542
|
}
|
|
2571
2543
|
},
|
|
2572
2544
|
"hasDynamicHelp": false,
|
|
2573
2545
|
"hiddenAliases": [],
|
|
2574
|
-
"id": "
|
|
2546
|
+
"id": "doctor",
|
|
2575
2547
|
"pluginAlias": "@memberjunction/cli",
|
|
2576
2548
|
"pluginName": "@memberjunction/cli",
|
|
2577
2549
|
"pluginType": "core",
|
|
@@ -2581,14 +2553,14 @@
|
|
|
2581
2553
|
"relativePath": [
|
|
2582
2554
|
"dist",
|
|
2583
2555
|
"commands",
|
|
2584
|
-
"
|
|
2585
|
-
"
|
|
2556
|
+
"doctor",
|
|
2557
|
+
"index.js"
|
|
2586
2558
|
]
|
|
2587
2559
|
},
|
|
2588
|
-
"
|
|
2560
|
+
"doctor:usage": {
|
|
2589
2561
|
"aliases": [],
|
|
2590
2562
|
"args": {},
|
|
2591
|
-
"description": "Show usage, flags, examples, and runtime hints for every `mj
|
|
2563
|
+
"description": "Show usage, flags, examples, and runtime hints for every `mj doctor` command.",
|
|
2592
2564
|
"flags": {
|
|
2593
2565
|
"format": {
|
|
2594
2566
|
"description": "Output format. Defaults to text on a terminal and json when stdout is piped.",
|
|
@@ -2605,7 +2577,7 @@
|
|
|
2605
2577
|
},
|
|
2606
2578
|
"hasDynamicHelp": false,
|
|
2607
2579
|
"hiddenAliases": [],
|
|
2608
|
-
"id": "
|
|
2580
|
+
"id": "doctor:usage",
|
|
2609
2581
|
"pluginAlias": "@memberjunction/cli",
|
|
2610
2582
|
"pluginName": "@memberjunction/cli",
|
|
2611
2583
|
"pluginType": "core",
|
|
@@ -2615,41 +2587,231 @@
|
|
|
2615
2587
|
"relativePath": [
|
|
2616
2588
|
"dist",
|
|
2617
2589
|
"commands",
|
|
2618
|
-
"
|
|
2590
|
+
"doctor",
|
|
2619
2591
|
"usage.js"
|
|
2620
2592
|
]
|
|
2621
2593
|
},
|
|
2622
|
-
"
|
|
2594
|
+
"install:claude": {
|
|
2623
2595
|
"aliases": [],
|
|
2624
|
-
"args": {
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2596
|
+
"args": {},
|
|
2597
|
+
"description": "Install or refresh the Claude Code pack in the current directory.",
|
|
2598
|
+
"examples": [
|
|
2599
|
+
"<%= config.bin %> install:claude",
|
|
2600
|
+
"<%= config.bin %> install:claude --dry-run",
|
|
2601
|
+
"<%= config.bin %> install:claude --from ./local-pack",
|
|
2602
|
+
"<%= config.bin %> install:claude --json"
|
|
2603
|
+
],
|
|
2604
|
+
"flags": {
|
|
2605
|
+
"dir": {
|
|
2606
|
+
"description": "Target directory for the install",
|
|
2607
|
+
"name": "dir",
|
|
2608
|
+
"default": ".",
|
|
2609
|
+
"hasDynamicHelp": false,
|
|
2610
|
+
"multiple": false,
|
|
2611
|
+
"type": "option"
|
|
2612
|
+
},
|
|
2613
|
+
"major": {
|
|
2614
|
+
"description": "Force a specific MJ major (default: detected from package.json)",
|
|
2615
|
+
"name": "major",
|
|
2616
|
+
"hasDynamicHelp": false,
|
|
2617
|
+
"multiple": false,
|
|
2618
|
+
"type": "option"
|
|
2619
|
+
},
|
|
2620
|
+
"ref": {
|
|
2621
|
+
"description": "Git ref to fetch from (branch or tag). Default: main.",
|
|
2622
|
+
"name": "ref",
|
|
2623
|
+
"hasDynamicHelp": false,
|
|
2624
|
+
"multiple": false,
|
|
2625
|
+
"type": "option"
|
|
2626
|
+
},
|
|
2627
|
+
"from": {
|
|
2628
|
+
"description": "Use a local pack source instead of fetching from GitHub",
|
|
2629
|
+
"name": "from",
|
|
2630
|
+
"hasDynamicHelp": false,
|
|
2631
|
+
"multiple": false,
|
|
2632
|
+
"type": "option"
|
|
2633
|
+
},
|
|
2634
|
+
"offline": {
|
|
2635
|
+
"description": "Forbid network; requires --from <path>",
|
|
2636
|
+
"name": "offline",
|
|
2637
|
+
"allowNo": false,
|
|
2638
|
+
"type": "boolean"
|
|
2639
|
+
},
|
|
2640
|
+
"dry-run": {
|
|
2641
|
+
"description": "Print what would be written; change nothing",
|
|
2642
|
+
"name": "dry-run",
|
|
2643
|
+
"allowNo": false,
|
|
2644
|
+
"type": "boolean"
|
|
2645
|
+
},
|
|
2646
|
+
"yes": {
|
|
2647
|
+
"char": "y",
|
|
2648
|
+
"description": "Don't prompt (reserved for future interactive paths; currently no-op)",
|
|
2649
|
+
"name": "yes",
|
|
2650
|
+
"allowNo": false,
|
|
2651
|
+
"type": "boolean"
|
|
2652
|
+
},
|
|
2653
|
+
"force": {
|
|
2654
|
+
"description": "Overwrite user-customized commands/skills (saves .bak files)",
|
|
2655
|
+
"name": "force",
|
|
2656
|
+
"allowNo": false,
|
|
2657
|
+
"type": "boolean"
|
|
2658
|
+
},
|
|
2659
|
+
"skip-commands": {
|
|
2660
|
+
"description": "Skip seeding .claude/commands/",
|
|
2661
|
+
"name": "skip-commands",
|
|
2662
|
+
"allowNo": false,
|
|
2663
|
+
"type": "boolean"
|
|
2664
|
+
},
|
|
2665
|
+
"skip-skills": {
|
|
2666
|
+
"description": "Skip seeding .claude/skills/",
|
|
2667
|
+
"name": "skip-skills",
|
|
2668
|
+
"allowNo": false,
|
|
2669
|
+
"type": "boolean"
|
|
2670
|
+
},
|
|
2671
|
+
"skip-settings": {
|
|
2672
|
+
"description": "Skip merging .claude/settings.json",
|
|
2673
|
+
"name": "skip-settings",
|
|
2674
|
+
"allowNo": false,
|
|
2675
|
+
"type": "boolean"
|
|
2676
|
+
},
|
|
2677
|
+
"json": {
|
|
2678
|
+
"description": "Output as JSON (matches plan §7.5 schema)",
|
|
2679
|
+
"name": "json",
|
|
2680
|
+
"allowNo": false,
|
|
2681
|
+
"type": "boolean"
|
|
2682
|
+
},
|
|
2683
|
+
"verbose": {
|
|
2684
|
+
"char": "v",
|
|
2685
|
+
"description": "Show progress messages from the fetcher and merger",
|
|
2686
|
+
"name": "verbose",
|
|
2687
|
+
"allowNo": false,
|
|
2688
|
+
"type": "boolean"
|
|
2629
2689
|
}
|
|
2630
2690
|
},
|
|
2631
|
-
"
|
|
2691
|
+
"hasDynamicHelp": false,
|
|
2692
|
+
"hiddenAliases": [],
|
|
2693
|
+
"id": "install:claude",
|
|
2694
|
+
"pluginAlias": "@memberjunction/cli",
|
|
2695
|
+
"pluginName": "@memberjunction/cli",
|
|
2696
|
+
"pluginType": "core",
|
|
2697
|
+
"strict": true,
|
|
2698
|
+
"enableJsonFlag": false,
|
|
2699
|
+
"isESM": true,
|
|
2700
|
+
"relativePath": [
|
|
2701
|
+
"dist",
|
|
2702
|
+
"commands",
|
|
2703
|
+
"install",
|
|
2704
|
+
"claude.js"
|
|
2705
|
+
]
|
|
2706
|
+
},
|
|
2707
|
+
"install": {
|
|
2708
|
+
"aliases": [],
|
|
2709
|
+
"args": {},
|
|
2710
|
+
"description": "Install MemberJunction from a GitHub release",
|
|
2632
2711
|
"examples": [
|
|
2633
|
-
"<%= config.bin %> <%= command.id %>
|
|
2634
|
-
"<%= config.bin %> <%= command.id %>
|
|
2712
|
+
"<%= config.bin %> <%= command.id %>",
|
|
2713
|
+
"<%= config.bin %> <%= command.id %> -t v4.3.0",
|
|
2714
|
+
"<%= config.bin %> <%= command.id %> --dry-run",
|
|
2715
|
+
"<%= config.bin %> <%= command.id %> --yes"
|
|
2635
2716
|
],
|
|
2636
2717
|
"flags": {
|
|
2637
|
-
"
|
|
2638
|
-
"
|
|
2639
|
-
"
|
|
2640
|
-
"
|
|
2718
|
+
"tag": {
|
|
2719
|
+
"char": "t",
|
|
2720
|
+
"description": "Release tag to install (e.g. v4.3.0). If omitted, shows a version picker.",
|
|
2721
|
+
"name": "tag",
|
|
2641
2722
|
"hasDynamicHelp": false,
|
|
2642
2723
|
"multiple": false,
|
|
2643
|
-
"options": [
|
|
2644
|
-
"text",
|
|
2645
|
-
"json"
|
|
2646
|
-
],
|
|
2647
2724
|
"type": "option"
|
|
2725
|
+
},
|
|
2726
|
+
"dir": {
|
|
2727
|
+
"description": "Target directory for the installation",
|
|
2728
|
+
"name": "dir",
|
|
2729
|
+
"default": ".",
|
|
2730
|
+
"hasDynamicHelp": false,
|
|
2731
|
+
"multiple": false,
|
|
2732
|
+
"type": "option"
|
|
2733
|
+
},
|
|
2734
|
+
"config": {
|
|
2735
|
+
"char": "c",
|
|
2736
|
+
"description": "Path to JSON config file with install settings (database, auth, ports, etc.)",
|
|
2737
|
+
"name": "config",
|
|
2738
|
+
"hasDynamicHelp": false,
|
|
2739
|
+
"multiple": false,
|
|
2740
|
+
"type": "option"
|
|
2741
|
+
},
|
|
2742
|
+
"legacy": {
|
|
2743
|
+
"description": "Use the legacy interactive installer (ZIP-only distribution)",
|
|
2744
|
+
"hidden": true,
|
|
2745
|
+
"name": "legacy",
|
|
2746
|
+
"allowNo": false,
|
|
2747
|
+
"type": "boolean"
|
|
2748
|
+
},
|
|
2749
|
+
"dry-run": {
|
|
2750
|
+
"description": "Show the install plan without executing it",
|
|
2751
|
+
"name": "dry-run",
|
|
2752
|
+
"allowNo": false,
|
|
2753
|
+
"type": "boolean"
|
|
2754
|
+
},
|
|
2755
|
+
"yes": {
|
|
2756
|
+
"char": "y",
|
|
2757
|
+
"description": "Non-interactive mode: auto-select latest version and accept defaults",
|
|
2758
|
+
"name": "yes",
|
|
2759
|
+
"allowNo": false,
|
|
2760
|
+
"type": "boolean"
|
|
2761
|
+
},
|
|
2762
|
+
"verbose": {
|
|
2763
|
+
"char": "v",
|
|
2764
|
+
"description": "Show detailed output",
|
|
2765
|
+
"name": "verbose",
|
|
2766
|
+
"allowNo": false,
|
|
2767
|
+
"type": "boolean"
|
|
2768
|
+
},
|
|
2769
|
+
"skip-db": {
|
|
2770
|
+
"description": "Skip database provisioning phases",
|
|
2771
|
+
"name": "skip-db",
|
|
2772
|
+
"allowNo": false,
|
|
2773
|
+
"type": "boolean"
|
|
2774
|
+
},
|
|
2775
|
+
"skip-start": {
|
|
2776
|
+
"description": "Skip service startup and smoke tests",
|
|
2777
|
+
"name": "skip-start",
|
|
2778
|
+
"allowNo": false,
|
|
2779
|
+
"type": "boolean"
|
|
2780
|
+
},
|
|
2781
|
+
"no-resume": {
|
|
2782
|
+
"description": "Ignore any existing checkpoint and start fresh",
|
|
2783
|
+
"name": "no-resume",
|
|
2784
|
+
"allowNo": false,
|
|
2785
|
+
"type": "boolean"
|
|
2786
|
+
},
|
|
2787
|
+
"fast": {
|
|
2788
|
+
"description": "Fast mode: skip smoke test and optimize post-codegen steps. Re-run without --fast if you encounter issues.",
|
|
2789
|
+
"name": "fast",
|
|
2790
|
+
"allowNo": false,
|
|
2791
|
+
"type": "boolean"
|
|
2792
|
+
},
|
|
2793
|
+
"overwrite-config": {
|
|
2794
|
+
"description": "Overwrite existing config files (.env, mj.config.cjs, environment.ts) instead of preserving them",
|
|
2795
|
+
"name": "overwrite-config",
|
|
2796
|
+
"allowNo": false,
|
|
2797
|
+
"type": "boolean"
|
|
2798
|
+
},
|
|
2799
|
+
"monorepo": {
|
|
2800
|
+
"description": "Install the full MemberJunction source repository instead of the lightweight distribution. Use this for MJ framework development.",
|
|
2801
|
+
"name": "monorepo",
|
|
2802
|
+
"allowNo": false,
|
|
2803
|
+
"type": "boolean"
|
|
2804
|
+
},
|
|
2805
|
+
"no-claude-pack": {
|
|
2806
|
+
"description": "Exclude the Claude Code pack (CLAUDE.md + .claude/ tree) from the scaffold. By default the pack ships with the install so opening Claude Code in your new MJ project gives you the curated MJ-aware experience immediately.",
|
|
2807
|
+
"name": "no-claude-pack",
|
|
2808
|
+
"allowNo": false,
|
|
2809
|
+
"type": "boolean"
|
|
2648
2810
|
}
|
|
2649
2811
|
},
|
|
2650
2812
|
"hasDynamicHelp": false,
|
|
2651
2813
|
"hiddenAliases": [],
|
|
2652
|
-
"id": "
|
|
2814
|
+
"id": "install",
|
|
2653
2815
|
"pluginAlias": "@memberjunction/cli",
|
|
2654
2816
|
"pluginName": "@memberjunction/cli",
|
|
2655
2817
|
"pluginType": "core",
|
|
@@ -2659,14 +2821,14 @@
|
|
|
2659
2821
|
"relativePath": [
|
|
2660
2822
|
"dist",
|
|
2661
2823
|
"commands",
|
|
2662
|
-
"
|
|
2663
|
-
"
|
|
2824
|
+
"install",
|
|
2825
|
+
"index.js"
|
|
2664
2826
|
]
|
|
2665
2827
|
},
|
|
2666
|
-
"
|
|
2828
|
+
"install:usage": {
|
|
2667
2829
|
"aliases": [],
|
|
2668
2830
|
"args": {},
|
|
2669
|
-
"description": "Show usage, flags, examples, and runtime hints for every `mj
|
|
2831
|
+
"description": "Show usage, flags, examples, and runtime hints for every `mj install` command.",
|
|
2670
2832
|
"flags": {
|
|
2671
2833
|
"format": {
|
|
2672
2834
|
"description": "Output format. Defaults to text on a terminal and json when stdout is piped.",
|
|
@@ -2683,7 +2845,7 @@
|
|
|
2683
2845
|
},
|
|
2684
2846
|
"hasDynamicHelp": false,
|
|
2685
2847
|
"hiddenAliases": [],
|
|
2686
|
-
"id": "
|
|
2848
|
+
"id": "install:usage",
|
|
2687
2849
|
"pluginAlias": "@memberjunction/cli",
|
|
2688
2850
|
"pluginName": "@memberjunction/cli",
|
|
2689
2851
|
"pluginType": "core",
|
|
@@ -2693,253 +2855,102 @@
|
|
|
2693
2855
|
"relativePath": [
|
|
2694
2856
|
"dist",
|
|
2695
2857
|
"commands",
|
|
2696
|
-
"
|
|
2858
|
+
"install",
|
|
2697
2859
|
"usage.js"
|
|
2698
2860
|
]
|
|
2699
2861
|
},
|
|
2700
|
-
"
|
|
2701
|
-
"aliases": [],
|
|
2702
|
-
"args": {},
|
|
2703
|
-
"description": "Analyze database and generate documentation (delegates to db-auto-doc analyze)",
|
|
2704
|
-
"examples": [
|
|
2705
|
-
"<%= config.bin %> <%= command.id %>",
|
|
2706
|
-
"<%= config.bin %> <%= command.id %> --resume ./output/run-6/state.json",
|
|
2707
|
-
"<%= config.bin %> <%= command.id %> --config ./my-config.json"
|
|
2708
|
-
],
|
|
2709
|
-
"flags": {
|
|
2710
|
-
"resume": {
|
|
2711
|
-
"char": "r",
|
|
2712
|
-
"description": "Resume from an existing state file",
|
|
2713
|
-
"name": "resume",
|
|
2714
|
-
"required": false,
|
|
2715
|
-
"hasDynamicHelp": false,
|
|
2716
|
-
"multiple": false,
|
|
2717
|
-
"type": "option"
|
|
2718
|
-
},
|
|
2719
|
-
"config": {
|
|
2720
|
-
"char": "c",
|
|
2721
|
-
"description": "Path to config file",
|
|
2722
|
-
"name": "config",
|
|
2723
|
-
"default": "./config.json",
|
|
2724
|
-
"hasDynamicHelp": false,
|
|
2725
|
-
"multiple": false,
|
|
2726
|
-
"type": "option"
|
|
2727
|
-
}
|
|
2728
|
-
},
|
|
2729
|
-
"hasDynamicHelp": false,
|
|
2730
|
-
"hiddenAliases": [],
|
|
2731
|
-
"id": "dbdoc:analyze",
|
|
2732
|
-
"pluginAlias": "@memberjunction/cli",
|
|
2733
|
-
"pluginName": "@memberjunction/cli",
|
|
2734
|
-
"pluginType": "core",
|
|
2735
|
-
"strict": true,
|
|
2736
|
-
"enableJsonFlag": false,
|
|
2737
|
-
"isESM": true,
|
|
2738
|
-
"relativePath": [
|
|
2739
|
-
"dist",
|
|
2740
|
-
"commands",
|
|
2741
|
-
"dbdoc",
|
|
2742
|
-
"analyze.js"
|
|
2743
|
-
]
|
|
2744
|
-
},
|
|
2745
|
-
"dbdoc:export-sample-queries": {
|
|
2862
|
+
"migrate:convert": {
|
|
2746
2863
|
"aliases": [],
|
|
2747
2864
|
"args": {},
|
|
2748
|
-
"description": "
|
|
2865
|
+
"description": "Convert T-SQL migrations to PostgreSQL",
|
|
2749
2866
|
"examples": [
|
|
2750
|
-
"<%= config.bin %>
|
|
2751
|
-
"<%= config.bin %>
|
|
2752
|
-
"<%= config.bin %>
|
|
2753
|
-
"<%= config.bin %>
|
|
2867
|
+
"<%= config.bin %> migrate convert --split",
|
|
2868
|
+
"<%= config.bin %> migrate convert --split --dry-run",
|
|
2869
|
+
"<%= config.bin %> migrate convert --split --file V202604060452__v5.24.x__KnowledgeHub.sql",
|
|
2870
|
+
"<%= config.bin %> migrate convert --source-dir ./migrations/v5 --output-dir ./migrations-pg/v5",
|
|
2871
|
+
"<%= config.bin %> migrate convert --verbose"
|
|
2754
2872
|
],
|
|
2755
2873
|
"flags": {
|
|
2756
|
-
"
|
|
2757
|
-
"
|
|
2758
|
-
"
|
|
2759
|
-
"
|
|
2760
|
-
"required": true,
|
|
2761
|
-
"hasDynamicHelp": false,
|
|
2762
|
-
"multiple": false,
|
|
2763
|
-
"type": "option"
|
|
2764
|
-
},
|
|
2765
|
-
"output": {
|
|
2766
|
-
"char": "o",
|
|
2767
|
-
"description": "Output path for the .queries.json metadata file",
|
|
2768
|
-
"name": "output",
|
|
2769
|
-
"required": true,
|
|
2770
|
-
"hasDynamicHelp": false,
|
|
2771
|
-
"multiple": false,
|
|
2772
|
-
"type": "option"
|
|
2773
|
-
},
|
|
2774
|
-
"separate-sql-files": {
|
|
2775
|
-
"description": "Write SQL to separate files and use @file: references",
|
|
2776
|
-
"name": "separate-sql-files",
|
|
2777
|
-
"allowNo": false,
|
|
2778
|
-
"type": "boolean"
|
|
2779
|
-
},
|
|
2780
|
-
"sql-dir": {
|
|
2781
|
-
"description": "Directory for SQL files when using --separate-sql-files (relative to output file)",
|
|
2782
|
-
"name": "sql-dir",
|
|
2783
|
-
"default": "SQL",
|
|
2784
|
-
"hasDynamicHelp": false,
|
|
2785
|
-
"multiple": false,
|
|
2786
|
-
"type": "option"
|
|
2787
|
-
},
|
|
2788
|
-
"category": {
|
|
2789
|
-
"description": "Category name for @lookup reference (e.g., \"Database Documentation\")",
|
|
2790
|
-
"name": "category",
|
|
2791
|
-
"required": false,
|
|
2874
|
+
"source-dir": {
|
|
2875
|
+
"description": "Source T-SQL migrations directory",
|
|
2876
|
+
"name": "source-dir",
|
|
2877
|
+
"default": "./migrations/v5",
|
|
2792
2878
|
"hasDynamicHelp": false,
|
|
2793
2879
|
"multiple": false,
|
|
2794
2880
|
"type": "option"
|
|
2795
2881
|
},
|
|
2796
|
-
"
|
|
2797
|
-
"description": "
|
|
2798
|
-
"name": "
|
|
2799
|
-
"default": "
|
|
2882
|
+
"output-dir": {
|
|
2883
|
+
"description": "Output PG migrations directory",
|
|
2884
|
+
"name": "output-dir",
|
|
2885
|
+
"default": "./migrations-pg/v5",
|
|
2800
2886
|
"hasDynamicHelp": false,
|
|
2801
2887
|
"multiple": false,
|
|
2802
|
-
"options": [
|
|
2803
|
-
"Approved",
|
|
2804
|
-
"Pending",
|
|
2805
|
-
"Rejected",
|
|
2806
|
-
"Expired"
|
|
2807
|
-
],
|
|
2808
2888
|
"type": "option"
|
|
2809
2889
|
},
|
|
2810
|
-
"
|
|
2811
|
-
"description": "
|
|
2812
|
-
"name": "
|
|
2813
|
-
"default": "0",
|
|
2890
|
+
"file": {
|
|
2891
|
+
"description": "Convert a specific file (filename only, looked up in source-dir)",
|
|
2892
|
+
"name": "file",
|
|
2814
2893
|
"hasDynamicHelp": false,
|
|
2815
2894
|
"multiple": false,
|
|
2816
2895
|
"type": "option"
|
|
2817
2896
|
},
|
|
2818
|
-
"
|
|
2819
|
-
"description": "
|
|
2820
|
-
"name": "
|
|
2821
|
-
"
|
|
2822
|
-
"type": "boolean"
|
|
2823
|
-
},
|
|
2824
|
-
"append": {
|
|
2825
|
-
"description": "Append to existing metadata file instead of overwriting",
|
|
2826
|
-
"name": "append",
|
|
2827
|
-
"allowNo": false,
|
|
2828
|
-
"type": "boolean"
|
|
2829
|
-
},
|
|
2830
|
-
"include-primary-key": {
|
|
2831
|
-
"description": "Include primaryKey and sync fields (for updating existing records)",
|
|
2832
|
-
"name": "include-primary-key",
|
|
2833
|
-
"allowNo": false,
|
|
2834
|
-
"type": "boolean"
|
|
2835
|
-
}
|
|
2836
|
-
},
|
|
2837
|
-
"hasDynamicHelp": false,
|
|
2838
|
-
"hiddenAliases": [],
|
|
2839
|
-
"id": "dbdoc:export-sample-queries",
|
|
2840
|
-
"pluginAlias": "@memberjunction/cli",
|
|
2841
|
-
"pluginName": "@memberjunction/cli",
|
|
2842
|
-
"pluginType": "core",
|
|
2843
|
-
"strict": true,
|
|
2844
|
-
"enableJsonFlag": false,
|
|
2845
|
-
"isESM": true,
|
|
2846
|
-
"relativePath": [
|
|
2847
|
-
"dist",
|
|
2848
|
-
"commands",
|
|
2849
|
-
"dbdoc",
|
|
2850
|
-
"export-sample-queries.js"
|
|
2851
|
-
]
|
|
2852
|
-
},
|
|
2853
|
-
"dbdoc:export": {
|
|
2854
|
-
"aliases": [],
|
|
2855
|
-
"args": {},
|
|
2856
|
-
"description": "Export documentation in multiple formats (delegates to db-auto-doc export)",
|
|
2857
|
-
"examples": [
|
|
2858
|
-
"<%= config.bin %> <%= command.id %> --state-file=./db-doc-state.json",
|
|
2859
|
-
"<%= config.bin %> <%= command.id %> --sql",
|
|
2860
|
-
"<%= config.bin %> <%= command.id %> --markdown",
|
|
2861
|
-
"<%= config.bin %> <%= command.id %> --html",
|
|
2862
|
-
"<%= config.bin %> <%= command.id %> --csv",
|
|
2863
|
-
"<%= config.bin %> <%= command.id %> --mermaid",
|
|
2864
|
-
"<%= config.bin %> <%= command.id %> --sql --markdown --html --csv --mermaid --apply"
|
|
2865
|
-
],
|
|
2866
|
-
"flags": {
|
|
2867
|
-
"state-file": {
|
|
2868
|
-
"char": "s",
|
|
2869
|
-
"description": "Path to state JSON file",
|
|
2870
|
-
"name": "state-file",
|
|
2897
|
+
"schema": {
|
|
2898
|
+
"description": "Target schema name",
|
|
2899
|
+
"name": "schema",
|
|
2900
|
+
"default": "__mj",
|
|
2871
2901
|
"hasDynamicHelp": false,
|
|
2872
2902
|
"multiple": false,
|
|
2873
2903
|
"type": "option"
|
|
2874
2904
|
},
|
|
2875
|
-
"
|
|
2876
|
-
"
|
|
2877
|
-
"
|
|
2878
|
-
"
|
|
2905
|
+
"core-schema": {
|
|
2906
|
+
"description": "MJ core schema substituted for ${mjSchema} (default __mj). Distinct from --schema, which is the app's OWN schema: an Open App migration references core as ${mjSchema} and itself as ${flyway:defaultSchema}, and for every app those differ.",
|
|
2907
|
+
"name": "core-schema",
|
|
2908
|
+
"default": "__mj",
|
|
2879
2909
|
"hasDynamicHelp": false,
|
|
2880
2910
|
"multiple": false,
|
|
2881
2911
|
"type": "option"
|
|
2882
2912
|
},
|
|
2883
|
-
"
|
|
2884
|
-
"description": "
|
|
2885
|
-
"name": "
|
|
2886
|
-
"allowNo": false,
|
|
2887
|
-
"type": "boolean"
|
|
2888
|
-
},
|
|
2889
|
-
"markdown": {
|
|
2890
|
-
"description": "Generate Markdown documentation",
|
|
2891
|
-
"name": "markdown",
|
|
2892
|
-
"allowNo": false,
|
|
2893
|
-
"type": "boolean"
|
|
2894
|
-
},
|
|
2895
|
-
"html": {
|
|
2896
|
-
"description": "Generate interactive HTML documentation",
|
|
2897
|
-
"name": "html",
|
|
2913
|
+
"dry-run": {
|
|
2914
|
+
"description": "Show what would be converted without writing files",
|
|
2915
|
+
"name": "dry-run",
|
|
2898
2916
|
"allowNo": false,
|
|
2899
2917
|
"type": "boolean"
|
|
2900
2918
|
},
|
|
2901
|
-
"
|
|
2902
|
-
"description": "
|
|
2903
|
-
"name": "
|
|
2919
|
+
"no-header": {
|
|
2920
|
+
"description": "Skip PG header (extensions, schema, implicit cast)",
|
|
2921
|
+
"name": "no-header",
|
|
2904
2922
|
"allowNo": false,
|
|
2905
2923
|
"type": "boolean"
|
|
2906
2924
|
},
|
|
2907
|
-
"
|
|
2908
|
-
"
|
|
2909
|
-
"
|
|
2925
|
+
"verbose": {
|
|
2926
|
+
"char": "v",
|
|
2927
|
+
"description": "Show per-statement progress",
|
|
2928
|
+
"name": "verbose",
|
|
2910
2929
|
"allowNo": false,
|
|
2911
2930
|
"type": "boolean"
|
|
2912
2931
|
},
|
|
2913
|
-
"
|
|
2914
|
-
"description": "
|
|
2915
|
-
"name": "
|
|
2932
|
+
"split": {
|
|
2933
|
+
"description": "Split-and-regenerate (the standard path): transpile only hand-written DDL via the AST dialect; CodeGen objects are regenerated by `mj codegen` and mj-sync metadata re-seeded by `mj sync push`; every conversion gap is surfaced and fails the run unless --allow-gaps.",
|
|
2934
|
+
"name": "split",
|
|
2916
2935
|
"allowNo": false,
|
|
2917
2936
|
"type": "boolean"
|
|
2918
2937
|
},
|
|
2919
|
-
"
|
|
2920
|
-
"description": "
|
|
2921
|
-
"name": "
|
|
2938
|
+
"allow-gaps": {
|
|
2939
|
+
"description": "Exit 0 even when migrations have conversion gaps — with --split: hand-authoring needed or unhandled statements; on the legacy path: \"-- Could not parse\" / \"-- ERROR converting batch\" markers in the output. Gaps are still embedded as comments and listed in the summary.",
|
|
2940
|
+
"name": "allow-gaps",
|
|
2922
2941
|
"allowNo": false,
|
|
2923
2942
|
"type": "boolean"
|
|
2924
2943
|
},
|
|
2925
|
-
"
|
|
2926
|
-
"description": "
|
|
2927
|
-
"name": "
|
|
2944
|
+
"bake-codegen": {
|
|
2945
|
+
"description": "With --split: bake native PG CodeGen objects inline per migration (Path C), so the set deploys with `mj migrate` alone — no `mj codegen` step. Requires a LIVE working PG database (DB_PLATFORM=postgresql + PG_* env, same as `mj codegen`) seeded to the state just BEFORE the migrations being converted (typically the latest baseline); the converter brings it forward in committed order as it bakes. Not compatible with --dry-run.",
|
|
2946
|
+
"name": "bake-codegen",
|
|
2928
2947
|
"allowNo": false,
|
|
2929
2948
|
"type": "boolean"
|
|
2930
|
-
},
|
|
2931
|
-
"confidence-threshold": {
|
|
2932
|
-
"description": "Minimum confidence threshold",
|
|
2933
|
-
"name": "confidence-threshold",
|
|
2934
|
-
"default": "0",
|
|
2935
|
-
"hasDynamicHelp": false,
|
|
2936
|
-
"multiple": false,
|
|
2937
|
-
"type": "option"
|
|
2938
2949
|
}
|
|
2939
2950
|
},
|
|
2940
2951
|
"hasDynamicHelp": false,
|
|
2941
2952
|
"hiddenAliases": [],
|
|
2942
|
-
"id": "
|
|
2953
|
+
"id": "migrate:convert",
|
|
2943
2954
|
"pluginAlias": "@memberjunction/cli",
|
|
2944
2955
|
"pluginName": "@memberjunction/cli",
|
|
2945
2956
|
"pluginType": "core",
|
|
@@ -2949,65 +2960,63 @@
|
|
|
2949
2960
|
"relativePath": [
|
|
2950
2961
|
"dist",
|
|
2951
2962
|
"commands",
|
|
2952
|
-
"
|
|
2953
|
-
"
|
|
2963
|
+
"migrate",
|
|
2964
|
+
"convert.js"
|
|
2954
2965
|
]
|
|
2955
2966
|
},
|
|
2956
|
-
"
|
|
2967
|
+
"migrate:create": {
|
|
2957
2968
|
"aliases": [],
|
|
2958
|
-
"args": {
|
|
2959
|
-
|
|
2969
|
+
"args": {
|
|
2970
|
+
"description": {
|
|
2971
|
+
"description": "Short description (will be converted to PascalCase with underscores)",
|
|
2972
|
+
"name": "description",
|
|
2973
|
+
"required": true
|
|
2974
|
+
}
|
|
2975
|
+
},
|
|
2976
|
+
"description": "Scaffold a new migration file for the current database platform",
|
|
2960
2977
|
"examples": [
|
|
2961
|
-
"<%= config.bin %> <%= command.id %>
|
|
2962
|
-
"<%= config.bin %> <%= command.id %> --
|
|
2963
|
-
"<%= config.bin %> <%= command.id %> --
|
|
2978
|
+
"<%= config.bin %> <%= command.id %> \"Add FooID to Bar\"",
|
|
2979
|
+
"<%= config.bin %> <%= command.id %> \"Add FooID to Bar\" --version 5.25 --platform postgresql",
|
|
2980
|
+
"<%= config.bin %> <%= command.id %> \"Add FooID to Bar\" --dir ./migrations/v5"
|
|
2964
2981
|
],
|
|
2965
2982
|
"flags": {
|
|
2966
|
-
"
|
|
2967
|
-
"
|
|
2968
|
-
"
|
|
2969
|
-
"
|
|
2970
|
-
"hasDynamicHelp": false,
|
|
2971
|
-
"multiple": false,
|
|
2972
|
-
"type": "option"
|
|
2973
|
-
},
|
|
2974
|
-
"output-dir": {
|
|
2975
|
-
"description": "Output directory for generated queries",
|
|
2976
|
-
"name": "output-dir",
|
|
2977
|
-
"required": false,
|
|
2983
|
+
"version": {
|
|
2984
|
+
"char": "v",
|
|
2985
|
+
"description": "Migration version tag, e.g. \"5.25\" (default: parsed from repo baseline or \"0.0\")",
|
|
2986
|
+
"name": "version",
|
|
2978
2987
|
"hasDynamicHelp": false,
|
|
2979
2988
|
"multiple": false,
|
|
2980
2989
|
"type": "option"
|
|
2981
2990
|
},
|
|
2982
|
-
"
|
|
2983
|
-
"char": "
|
|
2984
|
-
"description": "
|
|
2985
|
-
"name": "
|
|
2986
|
-
"default": "./config.json",
|
|
2991
|
+
"platform": {
|
|
2992
|
+
"char": "p",
|
|
2993
|
+
"description": "Override platform: sqlserver | postgresql (default: config.dbPlatform)",
|
|
2994
|
+
"name": "platform",
|
|
2987
2995
|
"hasDynamicHelp": false,
|
|
2988
2996
|
"multiple": false,
|
|
2997
|
+
"options": [
|
|
2998
|
+
"sqlserver",
|
|
2999
|
+
"postgresql"
|
|
3000
|
+
],
|
|
2989
3001
|
"type": "option"
|
|
2990
3002
|
},
|
|
2991
|
-
"
|
|
2992
|
-
"description": "
|
|
2993
|
-
"name": "
|
|
2994
|
-
"required": false,
|
|
3003
|
+
"dir": {
|
|
3004
|
+
"description": "Output directory (default: ./migrations/v5 or ./migrations-pg/v5)",
|
|
3005
|
+
"name": "dir",
|
|
2995
3006
|
"hasDynamicHelp": false,
|
|
2996
3007
|
"multiple": false,
|
|
2997
3008
|
"type": "option"
|
|
2998
3009
|
},
|
|
2999
|
-
"
|
|
3000
|
-
"description": "
|
|
3001
|
-
"name": "
|
|
3002
|
-
"
|
|
3003
|
-
"
|
|
3004
|
-
"multiple": false,
|
|
3005
|
-
"type": "option"
|
|
3010
|
+
"x-x": {
|
|
3011
|
+
"description": "Use {version}.x.x suffix instead of {version}.x (e.g. 5.25.x instead of 5.25.x)",
|
|
3012
|
+
"name": "x-x",
|
|
3013
|
+
"allowNo": false,
|
|
3014
|
+
"type": "boolean"
|
|
3006
3015
|
}
|
|
3007
3016
|
},
|
|
3008
3017
|
"hasDynamicHelp": false,
|
|
3009
3018
|
"hiddenAliases": [],
|
|
3010
|
-
"id": "
|
|
3019
|
+
"id": "migrate:create",
|
|
3011
3020
|
"pluginAlias": "@memberjunction/cli",
|
|
3012
3021
|
"pluginName": "@memberjunction/cli",
|
|
3013
3022
|
"pluginType": "core",
|
|
@@ -3017,19 +3026,66 @@
|
|
|
3017
3026
|
"relativePath": [
|
|
3018
3027
|
"dist",
|
|
3019
3028
|
"commands",
|
|
3020
|
-
"
|
|
3021
|
-
"
|
|
3029
|
+
"migrate",
|
|
3030
|
+
"create.js"
|
|
3022
3031
|
]
|
|
3023
3032
|
},
|
|
3024
|
-
"
|
|
3033
|
+
"migrate": {
|
|
3025
3034
|
"aliases": [],
|
|
3026
3035
|
"args": {},
|
|
3027
|
-
"description": "
|
|
3028
|
-
"
|
|
3036
|
+
"description": "Migrate MemberJunction database to latest version. Open App migrates also run the core metadata-heal procs (same work as R__RefreshMetadata) scoped to the app schema, on SQL Server and PostgreSQL.",
|
|
3037
|
+
"examples": [
|
|
3038
|
+
"<%= config.bin %> <%= command.id %>\n",
|
|
3039
|
+
"<%= config.bin %> <%= command.id %> --schema __BCSaaS --dir ./migrations/v1\n",
|
|
3040
|
+
"<%= config.bin %> <%= command.id %> --schema __BCSaaS --tag v1.0.0\n"
|
|
3041
|
+
],
|
|
3042
|
+
"flags": {
|
|
3043
|
+
"verbose": {
|
|
3044
|
+
"char": "v",
|
|
3045
|
+
"description": "Enable additional logging",
|
|
3046
|
+
"name": "verbose",
|
|
3047
|
+
"allowNo": false,
|
|
3048
|
+
"type": "boolean"
|
|
3049
|
+
},
|
|
3050
|
+
"tag": {
|
|
3051
|
+
"char": "t",
|
|
3052
|
+
"description": "Version tag to use for running remote migrations",
|
|
3053
|
+
"name": "tag",
|
|
3054
|
+
"hasDynamicHelp": false,
|
|
3055
|
+
"multiple": false,
|
|
3056
|
+
"type": "option"
|
|
3057
|
+
},
|
|
3058
|
+
"schema": {
|
|
3059
|
+
"char": "s",
|
|
3060
|
+
"description": "Target schema (overrides coreSchema from config)",
|
|
3061
|
+
"name": "schema",
|
|
3062
|
+
"hasDynamicHelp": false,
|
|
3063
|
+
"multiple": false,
|
|
3064
|
+
"type": "option"
|
|
3065
|
+
},
|
|
3066
|
+
"dir": {
|
|
3067
|
+
"description": "Migration source directory (overrides migrationsLocation from config)",
|
|
3068
|
+
"name": "dir",
|
|
3069
|
+
"hasDynamicHelp": false,
|
|
3070
|
+
"multiple": false,
|
|
3071
|
+
"type": "option"
|
|
3072
|
+
},
|
|
3073
|
+
"check-connection": {
|
|
3074
|
+
"description": "Verify the database connection (including TLS) and exit without migrating",
|
|
3075
|
+
"name": "check-connection",
|
|
3076
|
+
"allowNo": false,
|
|
3077
|
+
"type": "boolean"
|
|
3078
|
+
},
|
|
3079
|
+
"skip-cache-clear": {
|
|
3080
|
+
"description": "Do not clear the shared Redis cache (REDIS_URL) after migrating. Also: MJ_SKIP_SHARED_CACHE_CLEAR=1",
|
|
3081
|
+
"name": "skip-cache-clear",
|
|
3082
|
+
"allowNo": false,
|
|
3083
|
+
"type": "boolean"
|
|
3084
|
+
}
|
|
3085
|
+
},
|
|
3029
3086
|
"hasDynamicHelp": false,
|
|
3030
|
-
"hidden": false,
|
|
3031
3087
|
"hiddenAliases": [],
|
|
3032
|
-
"id": "
|
|
3088
|
+
"id": "migrate",
|
|
3033
3089
|
"pluginAlias": "@memberjunction/cli",
|
|
3034
3090
|
"pluginName": "@memberjunction/cli",
|
|
3035
3091
|
"pluginType": "core",
|
|
@@ -3039,21 +3095,68 @@
|
|
|
3039
3095
|
"relativePath": [
|
|
3040
3096
|
"dist",
|
|
3041
3097
|
"commands",
|
|
3042
|
-
"
|
|
3098
|
+
"migrate",
|
|
3043
3099
|
"index.js"
|
|
3044
3100
|
]
|
|
3045
3101
|
},
|
|
3046
|
-
"
|
|
3102
|
+
"migrate:rebake": {
|
|
3047
3103
|
"aliases": [],
|
|
3048
3104
|
"args": {},
|
|
3049
|
-
"description": "
|
|
3105
|
+
"description": "Re-bake the post-baseline PG migration set with inline native CodeGen",
|
|
3050
3106
|
"examples": [
|
|
3051
|
-
"<%= config.bin %>
|
|
3107
|
+
"<%= config.bin %> migrate rebake",
|
|
3108
|
+
"<%= config.bin %> migrate rebake --baseline-floor V202605291452 --dry-run"
|
|
3052
3109
|
],
|
|
3053
|
-
"flags": {
|
|
3110
|
+
"flags": {
|
|
3111
|
+
"source-dir": {
|
|
3112
|
+
"description": "Source T-SQL migrations directory",
|
|
3113
|
+
"name": "source-dir",
|
|
3114
|
+
"default": "./migrations/v5",
|
|
3115
|
+
"hasDynamicHelp": false,
|
|
3116
|
+
"multiple": false,
|
|
3117
|
+
"type": "option"
|
|
3118
|
+
},
|
|
3119
|
+
"output-dir": {
|
|
3120
|
+
"description": "PG migrations directory (committed files read here + baked output written here)",
|
|
3121
|
+
"name": "output-dir",
|
|
3122
|
+
"default": "./migrations-pg/v5",
|
|
3123
|
+
"hasDynamicHelp": false,
|
|
3124
|
+
"multiple": false,
|
|
3125
|
+
"type": "option"
|
|
3126
|
+
},
|
|
3127
|
+
"schema": {
|
|
3128
|
+
"description": "Target schema name",
|
|
3129
|
+
"name": "schema",
|
|
3130
|
+
"default": "__mj",
|
|
3131
|
+
"hasDynamicHelp": false,
|
|
3132
|
+
"multiple": false,
|
|
3133
|
+
"type": "option"
|
|
3134
|
+
},
|
|
3135
|
+
"core-schema": {
|
|
3136
|
+
"description": "MJ core schema substituted for ${mjSchema} (default __mj). Distinct from --schema, which is the app's OWN schema: an Open App migration references core as ${mjSchema} and itself as ${flyway:defaultSchema}, and for every app those differ.",
|
|
3137
|
+
"name": "core-schema",
|
|
3138
|
+
"default": "__mj",
|
|
3139
|
+
"hasDynamicHelp": false,
|
|
3140
|
+
"multiple": false,
|
|
3141
|
+
"type": "option"
|
|
3142
|
+
},
|
|
3143
|
+
"baseline-floor": {
|
|
3144
|
+
"description": "Re-bake migrations strictly AFTER this version key (default: the latest B* in output-dir)",
|
|
3145
|
+
"name": "baseline-floor",
|
|
3146
|
+
"hasDynamicHelp": false,
|
|
3147
|
+
"multiple": false,
|
|
3148
|
+
"type": "option"
|
|
3149
|
+
},
|
|
3150
|
+
"dry-run": {
|
|
3151
|
+
"description": "Report what would be re-baked without writing files",
|
|
3152
|
+
"name": "dry-run",
|
|
3153
|
+
"allowNo": false,
|
|
3154
|
+
"type": "boolean"
|
|
3155
|
+
}
|
|
3156
|
+
},
|
|
3054
3157
|
"hasDynamicHelp": false,
|
|
3055
3158
|
"hiddenAliases": [],
|
|
3056
|
-
"id": "
|
|
3159
|
+
"id": "migrate:rebake",
|
|
3057
3160
|
"pluginAlias": "@memberjunction/cli",
|
|
3058
3161
|
"pluginName": "@memberjunction/cli",
|
|
3059
3162
|
"pluginType": "core",
|
|
@@ -3063,30 +3166,31 @@
|
|
|
3063
3166
|
"relativePath": [
|
|
3064
3167
|
"dist",
|
|
3065
3168
|
"commands",
|
|
3066
|
-
"
|
|
3067
|
-
"
|
|
3169
|
+
"migrate",
|
|
3170
|
+
"rebake.js"
|
|
3068
3171
|
]
|
|
3069
3172
|
},
|
|
3070
|
-
"
|
|
3173
|
+
"migrate:usage": {
|
|
3071
3174
|
"aliases": [],
|
|
3072
3175
|
"args": {},
|
|
3073
|
-
"description": "
|
|
3074
|
-
"examples": [
|
|
3075
|
-
"<%= config.bin %> <%= command.id %>",
|
|
3076
|
-
"<%= config.bin %> <%= command.id %> --force"
|
|
3077
|
-
],
|
|
3176
|
+
"description": "Show usage, flags, examples, and runtime hints for every `mj migrate` command.",
|
|
3078
3177
|
"flags": {
|
|
3079
|
-
"
|
|
3080
|
-
"
|
|
3081
|
-
"
|
|
3082
|
-
"
|
|
3083
|
-
"
|
|
3084
|
-
"
|
|
3178
|
+
"format": {
|
|
3179
|
+
"description": "Output format. Defaults to text on a terminal and json when stdout is piped.",
|
|
3180
|
+
"name": "format",
|
|
3181
|
+
"hasDynamicHelp": false,
|
|
3182
|
+
"multiple": false,
|
|
3183
|
+
"options": [
|
|
3184
|
+
"text",
|
|
3185
|
+
"json",
|
|
3186
|
+
"md"
|
|
3187
|
+
],
|
|
3188
|
+
"type": "option"
|
|
3085
3189
|
}
|
|
3086
3190
|
},
|
|
3087
3191
|
"hasDynamicHelp": false,
|
|
3088
3192
|
"hiddenAliases": [],
|
|
3089
|
-
"id": "
|
|
3193
|
+
"id": "migrate:usage",
|
|
3090
3194
|
"pluginAlias": "@memberjunction/cli",
|
|
3091
3195
|
"pluginName": "@memberjunction/cli",
|
|
3092
3196
|
"pluginType": "core",
|
|
@@ -3096,31 +3200,41 @@
|
|
|
3096
3200
|
"relativePath": [
|
|
3097
3201
|
"dist",
|
|
3098
3202
|
"commands",
|
|
3099
|
-
"
|
|
3100
|
-
"
|
|
3203
|
+
"migrate",
|
|
3204
|
+
"usage.js"
|
|
3101
3205
|
]
|
|
3102
3206
|
},
|
|
3103
|
-
"
|
|
3207
|
+
"plugin:add": {
|
|
3104
3208
|
"aliases": [],
|
|
3105
|
-
"args": {
|
|
3106
|
-
|
|
3209
|
+
"args": {
|
|
3210
|
+
"package": {
|
|
3211
|
+
"description": "Plugin entry-point specifier (package name, subpath, or relative path)",
|
|
3212
|
+
"name": "package",
|
|
3213
|
+
"required": true
|
|
3214
|
+
}
|
|
3215
|
+
},
|
|
3216
|
+
"description": "Register a CLI plugin package in mj-cli-plugins.json so `mj` loads it at startup.",
|
|
3107
3217
|
"examples": [
|
|
3108
|
-
"<%= config.bin %> <%= command.id %>",
|
|
3109
|
-
"<%= config.bin %> <%= command.id %>
|
|
3110
|
-
],
|
|
3111
|
-
"flags": {
|
|
3112
|
-
"
|
|
3113
|
-
"
|
|
3114
|
-
"
|
|
3115
|
-
"
|
|
3218
|
+
"<%= config.bin %> <%= command.id %> @my-org/mj-plugin/plugins",
|
|
3219
|
+
"<%= config.bin %> <%= command.id %> ./local-plugins/my-tool"
|
|
3220
|
+
],
|
|
3221
|
+
"flags": {
|
|
3222
|
+
"format": {
|
|
3223
|
+
"description": "Output format",
|
|
3224
|
+
"name": "format",
|
|
3225
|
+
"default": "text",
|
|
3116
3226
|
"hasDynamicHelp": false,
|
|
3117
3227
|
"multiple": false,
|
|
3228
|
+
"options": [
|
|
3229
|
+
"text",
|
|
3230
|
+
"json"
|
|
3231
|
+
],
|
|
3118
3232
|
"type": "option"
|
|
3119
3233
|
}
|
|
3120
3234
|
},
|
|
3121
3235
|
"hasDynamicHelp": false,
|
|
3122
3236
|
"hiddenAliases": [],
|
|
3123
|
-
"id": "
|
|
3237
|
+
"id": "plugin:add",
|
|
3124
3238
|
"pluginAlias": "@memberjunction/cli",
|
|
3125
3239
|
"pluginName": "@memberjunction/cli",
|
|
3126
3240
|
"pluginType": "core",
|
|
@@ -3130,14 +3244,14 @@
|
|
|
3130
3244
|
"relativePath": [
|
|
3131
3245
|
"dist",
|
|
3132
3246
|
"commands",
|
|
3133
|
-
"
|
|
3134
|
-
"
|
|
3247
|
+
"plugin",
|
|
3248
|
+
"add.js"
|
|
3135
3249
|
]
|
|
3136
3250
|
},
|
|
3137
|
-
"
|
|
3251
|
+
"plugin:usage": {
|
|
3138
3252
|
"aliases": [],
|
|
3139
3253
|
"args": {},
|
|
3140
|
-
"description": "Show usage, flags, examples, and runtime hints for every `mj
|
|
3254
|
+
"description": "Show usage, flags, examples, and runtime hints for every `mj plugin` command.",
|
|
3141
3255
|
"flags": {
|
|
3142
3256
|
"format": {
|
|
3143
3257
|
"description": "Output format. Defaults to text on a terminal and json when stdout is piped.",
|
|
@@ -3154,7 +3268,7 @@
|
|
|
3154
3268
|
},
|
|
3155
3269
|
"hasDynamicHelp": false,
|
|
3156
3270
|
"hiddenAliases": [],
|
|
3157
|
-
"id": "
|
|
3271
|
+
"id": "plugin:usage",
|
|
3158
3272
|
"pluginAlias": "@memberjunction/cli",
|
|
3159
3273
|
"pluginName": "@memberjunction/cli",
|
|
3160
3274
|
"pluginType": "core",
|
|
@@ -3164,7 +3278,7 @@
|
|
|
3164
3278
|
"relativePath": [
|
|
3165
3279
|
"dist",
|
|
3166
3280
|
"commands",
|
|
3167
|
-
"
|
|
3281
|
+
"plugin",
|
|
3168
3282
|
"usage.js"
|
|
3169
3283
|
]
|
|
3170
3284
|
},
|
|
@@ -3360,7 +3474,303 @@
|
|
|
3360
3474
|
},
|
|
3361
3475
|
"hasDynamicHelp": false,
|
|
3362
3476
|
"hiddenAliases": [],
|
|
3363
|
-
"id": "querygen:usage",
|
|
3477
|
+
"id": "querygen:usage",
|
|
3478
|
+
"pluginAlias": "@memberjunction/cli",
|
|
3479
|
+
"pluginName": "@memberjunction/cli",
|
|
3480
|
+
"pluginType": "core",
|
|
3481
|
+
"strict": true,
|
|
3482
|
+
"enableJsonFlag": false,
|
|
3483
|
+
"isESM": true,
|
|
3484
|
+
"relativePath": [
|
|
3485
|
+
"dist",
|
|
3486
|
+
"commands",
|
|
3487
|
+
"querygen",
|
|
3488
|
+
"usage.js"
|
|
3489
|
+
]
|
|
3490
|
+
},
|
|
3491
|
+
"querygen:validate": {
|
|
3492
|
+
"aliases": [],
|
|
3493
|
+
"args": {},
|
|
3494
|
+
"description": "Validate existing query templates",
|
|
3495
|
+
"examples": [
|
|
3496
|
+
"<%= config.bin %> <%= command.id %>",
|
|
3497
|
+
"<%= config.bin %> <%= command.id %> --path ./metadata/queries",
|
|
3498
|
+
"<%= config.bin %> <%= command.id %> --verbose"
|
|
3499
|
+
],
|
|
3500
|
+
"flags": {
|
|
3501
|
+
"path": {
|
|
3502
|
+
"char": "p",
|
|
3503
|
+
"description": "Path to queries metadata file or directory",
|
|
3504
|
+
"name": "path",
|
|
3505
|
+
"default": "./metadata/queries",
|
|
3506
|
+
"hasDynamicHelp": false,
|
|
3507
|
+
"multiple": false,
|
|
3508
|
+
"type": "option"
|
|
3509
|
+
},
|
|
3510
|
+
"verbose": {
|
|
3511
|
+
"char": "v",
|
|
3512
|
+
"description": "Verbose output",
|
|
3513
|
+
"name": "verbose",
|
|
3514
|
+
"allowNo": false,
|
|
3515
|
+
"type": "boolean"
|
|
3516
|
+
}
|
|
3517
|
+
},
|
|
3518
|
+
"hasDynamicHelp": false,
|
|
3519
|
+
"hiddenAliases": [],
|
|
3520
|
+
"id": "querygen:validate",
|
|
3521
|
+
"pluginAlias": "@memberjunction/cli",
|
|
3522
|
+
"pluginName": "@memberjunction/cli",
|
|
3523
|
+
"pluginType": "core",
|
|
3524
|
+
"strict": true,
|
|
3525
|
+
"enableJsonFlag": false,
|
|
3526
|
+
"isESM": true,
|
|
3527
|
+
"relativePath": [
|
|
3528
|
+
"dist",
|
|
3529
|
+
"commands",
|
|
3530
|
+
"querygen",
|
|
3531
|
+
"validate.js"
|
|
3532
|
+
]
|
|
3533
|
+
},
|
|
3534
|
+
"queue:backlog": {
|
|
3535
|
+
"aliases": [],
|
|
3536
|
+
"args": {},
|
|
3537
|
+
"description": "Show the autoscaler metric for one subscription: claimable pending plus in-flight deliveries",
|
|
3538
|
+
"examples": [
|
|
3539
|
+
"<%= config.bin %> <%= command.id %> --subscription venue-import",
|
|
3540
|
+
"<%= config.bin %> <%= command.id %> --subscription venue-import --json"
|
|
3541
|
+
],
|
|
3542
|
+
"flags": {
|
|
3543
|
+
"subscription": {
|
|
3544
|
+
"char": "s",
|
|
3545
|
+
"description": "Subscription name",
|
|
3546
|
+
"name": "subscription",
|
|
3547
|
+
"required": true,
|
|
3548
|
+
"hasDynamicHelp": false,
|
|
3549
|
+
"multiple": false,
|
|
3550
|
+
"type": "option"
|
|
3551
|
+
},
|
|
3552
|
+
"json": {
|
|
3553
|
+
"description": "Print JSON instead of text",
|
|
3554
|
+
"name": "json",
|
|
3555
|
+
"allowNo": false,
|
|
3556
|
+
"type": "boolean"
|
|
3557
|
+
}
|
|
3558
|
+
},
|
|
3559
|
+
"hasDynamicHelp": false,
|
|
3560
|
+
"hiddenAliases": [],
|
|
3561
|
+
"id": "queue:backlog",
|
|
3562
|
+
"pluginAlias": "@memberjunction/cli",
|
|
3563
|
+
"pluginName": "@memberjunction/cli",
|
|
3564
|
+
"pluginType": "core",
|
|
3565
|
+
"strict": true,
|
|
3566
|
+
"enableJsonFlag": false,
|
|
3567
|
+
"isESM": true,
|
|
3568
|
+
"relativePath": [
|
|
3569
|
+
"dist",
|
|
3570
|
+
"commands",
|
|
3571
|
+
"queue",
|
|
3572
|
+
"backlog.js"
|
|
3573
|
+
]
|
|
3574
|
+
},
|
|
3575
|
+
"queue:dead-letters": {
|
|
3576
|
+
"aliases": [],
|
|
3577
|
+
"args": {},
|
|
3578
|
+
"description": "List a work-queue subscription's dead-lettered deliveries",
|
|
3579
|
+
"examples": [
|
|
3580
|
+
"<%= config.bin %> <%= command.id %> --subscription integration.apply --page-size 20"
|
|
3581
|
+
],
|
|
3582
|
+
"flags": {
|
|
3583
|
+
"subscription": {
|
|
3584
|
+
"char": "s",
|
|
3585
|
+
"description": "Subscription name",
|
|
3586
|
+
"name": "subscription",
|
|
3587
|
+
"required": true,
|
|
3588
|
+
"hasDynamicHelp": false,
|
|
3589
|
+
"multiple": false,
|
|
3590
|
+
"type": "option"
|
|
3591
|
+
},
|
|
3592
|
+
"cursor": {
|
|
3593
|
+
"description": "nextCursor from a previous page",
|
|
3594
|
+
"name": "cursor",
|
|
3595
|
+
"hasDynamicHelp": false,
|
|
3596
|
+
"multiple": false,
|
|
3597
|
+
"type": "option"
|
|
3598
|
+
},
|
|
3599
|
+
"page-size": {
|
|
3600
|
+
"description": "Items per page (1–500)",
|
|
3601
|
+
"name": "page-size",
|
|
3602
|
+
"default": 50,
|
|
3603
|
+
"hasDynamicHelp": false,
|
|
3604
|
+
"multiple": false,
|
|
3605
|
+
"type": "option"
|
|
3606
|
+
},
|
|
3607
|
+
"json": {
|
|
3608
|
+
"description": "Print JSON instead of a table",
|
|
3609
|
+
"name": "json",
|
|
3610
|
+
"allowNo": false,
|
|
3611
|
+
"type": "boolean"
|
|
3612
|
+
}
|
|
3613
|
+
},
|
|
3614
|
+
"hasDynamicHelp": false,
|
|
3615
|
+
"hiddenAliases": [],
|
|
3616
|
+
"id": "queue:dead-letters",
|
|
3617
|
+
"pluginAlias": "@memberjunction/cli",
|
|
3618
|
+
"pluginName": "@memberjunction/cli",
|
|
3619
|
+
"pluginType": "core",
|
|
3620
|
+
"strict": true,
|
|
3621
|
+
"enableJsonFlag": false,
|
|
3622
|
+
"isESM": true,
|
|
3623
|
+
"relativePath": [
|
|
3624
|
+
"dist",
|
|
3625
|
+
"commands",
|
|
3626
|
+
"queue",
|
|
3627
|
+
"dead-letters.js"
|
|
3628
|
+
]
|
|
3629
|
+
},
|
|
3630
|
+
"queue:discard": {
|
|
3631
|
+
"aliases": [],
|
|
3632
|
+
"args": {},
|
|
3633
|
+
"description": "Discard one pending or dead-lettered work-queue delivery, or cancel one that is in flight",
|
|
3634
|
+
"examples": [
|
|
3635
|
+
"<%= config.bin %> <%= command.id %> --subscription integration.apply --delivery <id> --reason \"bad batch, republished\""
|
|
3636
|
+
],
|
|
3637
|
+
"flags": {
|
|
3638
|
+
"subscription": {
|
|
3639
|
+
"char": "s",
|
|
3640
|
+
"description": "Subscription name",
|
|
3641
|
+
"name": "subscription",
|
|
3642
|
+
"required": true,
|
|
3643
|
+
"hasDynamicHelp": false,
|
|
3644
|
+
"multiple": false,
|
|
3645
|
+
"type": "option"
|
|
3646
|
+
},
|
|
3647
|
+
"delivery": {
|
|
3648
|
+
"char": "d",
|
|
3649
|
+
"description": "DeliveryID to discard",
|
|
3650
|
+
"name": "delivery",
|
|
3651
|
+
"required": true,
|
|
3652
|
+
"hasDynamicHelp": false,
|
|
3653
|
+
"multiple": false,
|
|
3654
|
+
"type": "option"
|
|
3655
|
+
},
|
|
3656
|
+
"reason": {
|
|
3657
|
+
"char": "r",
|
|
3658
|
+
"description": "Why the work is dropped (at most 1000 characters)",
|
|
3659
|
+
"name": "reason",
|
|
3660
|
+
"required": true,
|
|
3661
|
+
"hasDynamicHelp": false,
|
|
3662
|
+
"multiple": false,
|
|
3663
|
+
"type": "option"
|
|
3664
|
+
}
|
|
3665
|
+
},
|
|
3666
|
+
"hasDynamicHelp": false,
|
|
3667
|
+
"hiddenAliases": [],
|
|
3668
|
+
"id": "queue:discard",
|
|
3669
|
+
"pluginAlias": "@memberjunction/cli",
|
|
3670
|
+
"pluginName": "@memberjunction/cli",
|
|
3671
|
+
"pluginType": "core",
|
|
3672
|
+
"strict": true,
|
|
3673
|
+
"enableJsonFlag": false,
|
|
3674
|
+
"isESM": true,
|
|
3675
|
+
"relativePath": [
|
|
3676
|
+
"dist",
|
|
3677
|
+
"commands",
|
|
3678
|
+
"queue",
|
|
3679
|
+
"discard.js"
|
|
3680
|
+
]
|
|
3681
|
+
},
|
|
3682
|
+
"queue:export-topology": {
|
|
3683
|
+
"aliases": [],
|
|
3684
|
+
"args": {},
|
|
3685
|
+
"description": "Write the topology manifest for one transport (input to the Terraform module)",
|
|
3686
|
+
"examples": [
|
|
3687
|
+
"<%= config.bin %> <%= command.id %> --transport AWS-prod --output infrastructure/work-queue/manifest.json"
|
|
3688
|
+
],
|
|
3689
|
+
"flags": {
|
|
3690
|
+
"transport": {
|
|
3691
|
+
"char": "t",
|
|
3692
|
+
"description": "Transport name",
|
|
3693
|
+
"name": "transport",
|
|
3694
|
+
"required": true,
|
|
3695
|
+
"hasDynamicHelp": false,
|
|
3696
|
+
"multiple": false,
|
|
3697
|
+
"type": "option"
|
|
3698
|
+
},
|
|
3699
|
+
"output": {
|
|
3700
|
+
"char": "o",
|
|
3701
|
+
"description": "File to write; stdout when omitted",
|
|
3702
|
+
"name": "output",
|
|
3703
|
+
"hasDynamicHelp": false,
|
|
3704
|
+
"multiple": false,
|
|
3705
|
+
"type": "option"
|
|
3706
|
+
}
|
|
3707
|
+
},
|
|
3708
|
+
"hasDynamicHelp": false,
|
|
3709
|
+
"hiddenAliases": [],
|
|
3710
|
+
"id": "queue:export-topology",
|
|
3711
|
+
"pluginAlias": "@memberjunction/cli",
|
|
3712
|
+
"pluginName": "@memberjunction/cli",
|
|
3713
|
+
"pluginType": "core",
|
|
3714
|
+
"strict": true,
|
|
3715
|
+
"enableJsonFlag": false,
|
|
3716
|
+
"isESM": true,
|
|
3717
|
+
"relativePath": [
|
|
3718
|
+
"dist",
|
|
3719
|
+
"commands",
|
|
3720
|
+
"queue",
|
|
3721
|
+
"export-topology.js"
|
|
3722
|
+
]
|
|
3723
|
+
},
|
|
3724
|
+
"queue:import-bindings": {
|
|
3725
|
+
"aliases": [],
|
|
3726
|
+
"args": {
|
|
3727
|
+
"file": {
|
|
3728
|
+
"description": "BindingImport JSON file",
|
|
3729
|
+
"name": "file",
|
|
3730
|
+
"required": true
|
|
3731
|
+
}
|
|
3732
|
+
},
|
|
3733
|
+
"description": "Record cloud resource bindings (Terraform output) on work-queue topics and subscriptions",
|
|
3734
|
+
"examples": [
|
|
3735
|
+
"terraform output -json mj_work_queue_bindings > bindings.json && <%= config.bin %> <%= command.id %> bindings.json"
|
|
3736
|
+
],
|
|
3737
|
+
"flags": {
|
|
3738
|
+
"json": {
|
|
3739
|
+
"description": "Print issues as JSON",
|
|
3740
|
+
"name": "json",
|
|
3741
|
+
"allowNo": false,
|
|
3742
|
+
"type": "boolean"
|
|
3743
|
+
}
|
|
3744
|
+
},
|
|
3745
|
+
"hasDynamicHelp": false,
|
|
3746
|
+
"hiddenAliases": [],
|
|
3747
|
+
"id": "queue:import-bindings",
|
|
3748
|
+
"pluginAlias": "@memberjunction/cli",
|
|
3749
|
+
"pluginName": "@memberjunction/cli",
|
|
3750
|
+
"pluginType": "core",
|
|
3751
|
+
"strict": true,
|
|
3752
|
+
"enableJsonFlag": false,
|
|
3753
|
+
"isESM": true,
|
|
3754
|
+
"relativePath": [
|
|
3755
|
+
"dist",
|
|
3756
|
+
"commands",
|
|
3757
|
+
"queue",
|
|
3758
|
+
"import-bindings.js"
|
|
3759
|
+
]
|
|
3760
|
+
},
|
|
3761
|
+
"queue": {
|
|
3762
|
+
"aliases": [],
|
|
3763
|
+
"args": {},
|
|
3764
|
+
"description": "Operate the durable work queue",
|
|
3765
|
+
"examples": [
|
|
3766
|
+
"<%= config.bin %> <%= command.id %> publish --topic samples.hello --payload '{\"name\":\"Paul\"}'",
|
|
3767
|
+
"<%= config.bin %> <%= command.id %> stats",
|
|
3768
|
+
"<%= config.bin %> <%= command.id %> dead-letters --subscription email.unsubscribe"
|
|
3769
|
+
],
|
|
3770
|
+
"flags": {},
|
|
3771
|
+
"hasDynamicHelp": false,
|
|
3772
|
+
"hiddenAliases": [],
|
|
3773
|
+
"id": "queue",
|
|
3364
3774
|
"pluginAlias": "@memberjunction/cli",
|
|
3365
3775
|
"pluginName": "@memberjunction/cli",
|
|
3366
3776
|
"pluginType": "core",
|
|
@@ -3370,40 +3780,64 @@
|
|
|
3370
3780
|
"relativePath": [
|
|
3371
3781
|
"dist",
|
|
3372
3782
|
"commands",
|
|
3373
|
-
"
|
|
3374
|
-
"
|
|
3783
|
+
"queue",
|
|
3784
|
+
"index.js"
|
|
3375
3785
|
]
|
|
3376
3786
|
},
|
|
3377
|
-
"
|
|
3787
|
+
"queue:partitions": {
|
|
3378
3788
|
"aliases": [],
|
|
3379
3789
|
"args": {},
|
|
3380
|
-
"description": "
|
|
3790
|
+
"description": "List a work-queue subscription's in-flight or blocked partition keys",
|
|
3381
3791
|
"examples": [
|
|
3382
|
-
"<%= config.bin %> <%= command.id %>"
|
|
3383
|
-
"<%= config.bin %> <%= command.id %> --path ./metadata/queries",
|
|
3384
|
-
"<%= config.bin %> <%= command.id %> --verbose"
|
|
3792
|
+
"<%= config.bin %> <%= command.id %> --subscription integration.apply --condition Blocked"
|
|
3385
3793
|
],
|
|
3386
3794
|
"flags": {
|
|
3387
|
-
"
|
|
3388
|
-
"char": "
|
|
3389
|
-
"description": "
|
|
3390
|
-
"name": "
|
|
3391
|
-
"
|
|
3795
|
+
"subscription": {
|
|
3796
|
+
"char": "s",
|
|
3797
|
+
"description": "Subscription name",
|
|
3798
|
+
"name": "subscription",
|
|
3799
|
+
"required": true,
|
|
3392
3800
|
"hasDynamicHelp": false,
|
|
3393
3801
|
"multiple": false,
|
|
3394
3802
|
"type": "option"
|
|
3395
3803
|
},
|
|
3396
|
-
"
|
|
3397
|
-
"
|
|
3398
|
-
"
|
|
3399
|
-
"
|
|
3804
|
+
"condition": {
|
|
3805
|
+
"description": "Only keys in this condition",
|
|
3806
|
+
"name": "condition",
|
|
3807
|
+
"hasDynamicHelp": false,
|
|
3808
|
+
"multiple": false,
|
|
3809
|
+
"options": [
|
|
3810
|
+
"Idle",
|
|
3811
|
+
"InFlight",
|
|
3812
|
+
"Blocked"
|
|
3813
|
+
],
|
|
3814
|
+
"type": "option"
|
|
3815
|
+
},
|
|
3816
|
+
"cursor": {
|
|
3817
|
+
"description": "nextCursor from a previous page",
|
|
3818
|
+
"name": "cursor",
|
|
3819
|
+
"hasDynamicHelp": false,
|
|
3820
|
+
"multiple": false,
|
|
3821
|
+
"type": "option"
|
|
3822
|
+
},
|
|
3823
|
+
"page-size": {
|
|
3824
|
+
"description": "Items per page (1–500)",
|
|
3825
|
+
"name": "page-size",
|
|
3826
|
+
"default": 50,
|
|
3827
|
+
"hasDynamicHelp": false,
|
|
3828
|
+
"multiple": false,
|
|
3829
|
+
"type": "option"
|
|
3830
|
+
},
|
|
3831
|
+
"json": {
|
|
3832
|
+
"description": "Print JSON instead of a table",
|
|
3833
|
+
"name": "json",
|
|
3400
3834
|
"allowNo": false,
|
|
3401
3835
|
"type": "boolean"
|
|
3402
3836
|
}
|
|
3403
3837
|
},
|
|
3404
3838
|
"hasDynamicHelp": false,
|
|
3405
3839
|
"hiddenAliases": [],
|
|
3406
|
-
"id": "
|
|
3840
|
+
"id": "queue:partitions",
|
|
3407
3841
|
"pluginAlias": "@memberjunction/cli",
|
|
3408
3842
|
"pluginName": "@memberjunction/cli",
|
|
3409
3843
|
"pluginType": "core",
|
|
@@ -3413,64 +3847,80 @@
|
|
|
3413
3847
|
"relativePath": [
|
|
3414
3848
|
"dist",
|
|
3415
3849
|
"commands",
|
|
3416
|
-
"
|
|
3417
|
-
"
|
|
3850
|
+
"queue",
|
|
3851
|
+
"partitions.js"
|
|
3418
3852
|
]
|
|
3419
3853
|
},
|
|
3420
|
-
"
|
|
3854
|
+
"queue:publish": {
|
|
3421
3855
|
"aliases": [],
|
|
3422
3856
|
"args": {},
|
|
3423
|
-
"description": "
|
|
3857
|
+
"description": "Publish messages to a work-queue topic from this machine through MJ code (no API key needed)",
|
|
3424
3858
|
"examples": [
|
|
3425
|
-
"<%= config.bin %>
|
|
3426
|
-
"<%= config.bin %>
|
|
3427
|
-
"<%= config.bin %>
|
|
3859
|
+
"<%= config.bin %> <%= command.id %> --topic samples.hello --payload '{\"name\":\"Paul\"}'",
|
|
3860
|
+
"<%= config.bin %> <%= command.id %> --topic samples.hello --payload '{\"sleepMs\":60000}' --partition-key customer-42",
|
|
3861
|
+
"<%= config.bin %> <%= command.id %> --topic samples.hello --count 5 --partition-key k1 --attribute source=demo"
|
|
3428
3862
|
],
|
|
3429
3863
|
"flags": {
|
|
3430
|
-
"
|
|
3431
|
-
"
|
|
3432
|
-
"
|
|
3864
|
+
"topic": {
|
|
3865
|
+
"char": "t",
|
|
3866
|
+
"description": "Topic name",
|
|
3867
|
+
"name": "topic",
|
|
3433
3868
|
"required": true,
|
|
3434
3869
|
"hasDynamicHelp": false,
|
|
3435
3870
|
"multiple": false,
|
|
3436
3871
|
"type": "option"
|
|
3437
3872
|
},
|
|
3438
|
-
"
|
|
3439
|
-
"
|
|
3440
|
-
"
|
|
3441
|
-
"
|
|
3873
|
+
"payload": {
|
|
3874
|
+
"char": "p",
|
|
3875
|
+
"description": "Message payload as JSON",
|
|
3876
|
+
"name": "payload",
|
|
3877
|
+
"default": "{}",
|
|
3442
3878
|
"hasDynamicHelp": false,
|
|
3443
3879
|
"multiple": false,
|
|
3444
3880
|
"type": "option"
|
|
3445
3881
|
},
|
|
3446
|
-
"
|
|
3447
|
-
"
|
|
3448
|
-
"
|
|
3449
|
-
"
|
|
3882
|
+
"partition-key": {
|
|
3883
|
+
"char": "k",
|
|
3884
|
+
"description": "PartitionKey for Exclusive / Ordered subscriptions",
|
|
3885
|
+
"name": "partition-key",
|
|
3450
3886
|
"hasDynamicHelp": false,
|
|
3451
3887
|
"multiple": false,
|
|
3452
3888
|
"type": "option"
|
|
3453
3889
|
},
|
|
3454
|
-
"
|
|
3455
|
-
"description": "
|
|
3456
|
-
"name": "
|
|
3457
|
-
"default": "__mj",
|
|
3890
|
+
"dedup-key": {
|
|
3891
|
+
"description": "DeduplicationKey: a repeat within the topic TTL is reported as Duplicate",
|
|
3892
|
+
"name": "dedup-key",
|
|
3458
3893
|
"hasDynamicHelp": false,
|
|
3459
3894
|
"multiple": false,
|
|
3460
3895
|
"type": "option"
|
|
3461
3896
|
},
|
|
3462
|
-
"
|
|
3463
|
-
"char": "
|
|
3464
|
-
"description": "
|
|
3465
|
-
"name": "
|
|
3897
|
+
"attribute": {
|
|
3898
|
+
"char": "a",
|
|
3899
|
+
"description": "Message attribute as key=value (repeatable)",
|
|
3900
|
+
"name": "attribute",
|
|
3901
|
+
"hasDynamicHelp": false,
|
|
3902
|
+
"multiple": true,
|
|
3903
|
+
"type": "option"
|
|
3904
|
+
},
|
|
3905
|
+
"count": {
|
|
3906
|
+
"char": "n",
|
|
3907
|
+
"description": "How many copies to publish in one batch",
|
|
3908
|
+
"name": "count",
|
|
3909
|
+
"default": 1,
|
|
3466
3910
|
"hasDynamicHelp": false,
|
|
3467
3911
|
"multiple": false,
|
|
3468
3912
|
"type": "option"
|
|
3913
|
+
},
|
|
3914
|
+
"json": {
|
|
3915
|
+
"description": "Print the publish results as JSON",
|
|
3916
|
+
"name": "json",
|
|
3917
|
+
"allowNo": false,
|
|
3918
|
+
"type": "boolean"
|
|
3469
3919
|
}
|
|
3470
3920
|
},
|
|
3471
3921
|
"hasDynamicHelp": false,
|
|
3472
3922
|
"hiddenAliases": [],
|
|
3473
|
-
"id": "
|
|
3923
|
+
"id": "queue:publish",
|
|
3474
3924
|
"pluginAlias": "@memberjunction/cli",
|
|
3475
3925
|
"pluginName": "@memberjunction/cli",
|
|
3476
3926
|
"pluginType": "core",
|
|
@@ -3480,31 +3930,47 @@
|
|
|
3480
3930
|
"relativePath": [
|
|
3481
3931
|
"dist",
|
|
3482
3932
|
"commands",
|
|
3483
|
-
"
|
|
3484
|
-
"
|
|
3933
|
+
"queue",
|
|
3934
|
+
"publish.js"
|
|
3485
3935
|
]
|
|
3486
3936
|
},
|
|
3487
|
-
"
|
|
3937
|
+
"queue:replay": {
|
|
3488
3938
|
"aliases": [],
|
|
3489
3939
|
"args": {},
|
|
3490
|
-
"description": "
|
|
3940
|
+
"description": "Replay one dead-lettered work-queue delivery",
|
|
3941
|
+
"examples": [
|
|
3942
|
+
"<%= config.bin %> <%= command.id %> --subscription integration.apply --delivery <id> --note \"mapping fixed\""
|
|
3943
|
+
],
|
|
3491
3944
|
"flags": {
|
|
3492
|
-
"
|
|
3493
|
-
"
|
|
3494
|
-
"
|
|
3945
|
+
"subscription": {
|
|
3946
|
+
"char": "s",
|
|
3947
|
+
"description": "Subscription name",
|
|
3948
|
+
"name": "subscription",
|
|
3949
|
+
"required": true,
|
|
3950
|
+
"hasDynamicHelp": false,
|
|
3951
|
+
"multiple": false,
|
|
3952
|
+
"type": "option"
|
|
3953
|
+
},
|
|
3954
|
+
"delivery": {
|
|
3955
|
+
"char": "d",
|
|
3956
|
+
"description": "DeliveryID from `mj queue dead-letters`",
|
|
3957
|
+
"name": "delivery",
|
|
3958
|
+
"required": true,
|
|
3959
|
+
"hasDynamicHelp": false,
|
|
3960
|
+
"multiple": false,
|
|
3961
|
+
"type": "option"
|
|
3962
|
+
},
|
|
3963
|
+
"note": {
|
|
3964
|
+
"description": "Operator note stored with the resolution",
|
|
3965
|
+
"name": "note",
|
|
3495
3966
|
"hasDynamicHelp": false,
|
|
3496
3967
|
"multiple": false,
|
|
3497
|
-
"options": [
|
|
3498
|
-
"text",
|
|
3499
|
-
"json",
|
|
3500
|
-
"md"
|
|
3501
|
-
],
|
|
3502
3968
|
"type": "option"
|
|
3503
3969
|
}
|
|
3504
3970
|
},
|
|
3505
3971
|
"hasDynamicHelp": false,
|
|
3506
3972
|
"hiddenAliases": [],
|
|
3507
|
-
"id": "
|
|
3973
|
+
"id": "queue:replay",
|
|
3508
3974
|
"pluginAlias": "@memberjunction/cli",
|
|
3509
3975
|
"pluginName": "@memberjunction/cli",
|
|
3510
3976
|
"pluginType": "core",
|
|
@@ -3514,34 +3980,37 @@
|
|
|
3514
3980
|
"relativePath": [
|
|
3515
3981
|
"dist",
|
|
3516
3982
|
"commands",
|
|
3517
|
-
"
|
|
3518
|
-
"
|
|
3983
|
+
"queue",
|
|
3984
|
+
"replay.js"
|
|
3519
3985
|
]
|
|
3520
3986
|
},
|
|
3521
|
-
"
|
|
3987
|
+
"queue:stats": {
|
|
3522
3988
|
"aliases": [],
|
|
3523
|
-
"args": {
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
"
|
|
3532
|
-
"
|
|
3989
|
+
"args": {},
|
|
3990
|
+
"description": "Show pending, in-flight and dead-lettered counts for work-queue subscriptions",
|
|
3991
|
+
"examples": [
|
|
3992
|
+
"<%= config.bin %> <%= command.id %>",
|
|
3993
|
+
"<%= config.bin %> <%= command.id %> --subscription email.unsubscribe --json"
|
|
3994
|
+
],
|
|
3995
|
+
"flags": {
|
|
3996
|
+
"subscription": {
|
|
3997
|
+
"char": "s",
|
|
3998
|
+
"description": "Subscription name; omit for every subscription",
|
|
3999
|
+
"name": "subscription",
|
|
4000
|
+
"hasDynamicHelp": false,
|
|
4001
|
+
"multiple": false,
|
|
4002
|
+
"type": "option"
|
|
3533
4003
|
},
|
|
3534
|
-
"
|
|
3535
|
-
"description": "
|
|
3536
|
-
"name": "
|
|
3537
|
-
"
|
|
4004
|
+
"json": {
|
|
4005
|
+
"description": "Print JSON instead of a table",
|
|
4006
|
+
"name": "json",
|
|
4007
|
+
"allowNo": false,
|
|
4008
|
+
"type": "boolean"
|
|
3538
4009
|
}
|
|
3539
4010
|
},
|
|
3540
|
-
"description": "Print the version bump between two rubric versions.",
|
|
3541
|
-
"flags": {},
|
|
3542
4011
|
"hasDynamicHelp": false,
|
|
3543
4012
|
"hiddenAliases": [],
|
|
3544
|
-
"id": "
|
|
4013
|
+
"id": "queue:stats",
|
|
3545
4014
|
"pluginAlias": "@memberjunction/cli",
|
|
3546
4015
|
"pluginName": "@memberjunction/cli",
|
|
3547
4016
|
"pluginType": "core",
|
|
@@ -3551,51 +4020,31 @@
|
|
|
3551
4020
|
"relativePath": [
|
|
3552
4021
|
"dist",
|
|
3553
4022
|
"commands",
|
|
3554
|
-
"
|
|
3555
|
-
"
|
|
4023
|
+
"queue",
|
|
4024
|
+
"stats.js"
|
|
3556
4025
|
]
|
|
3557
4026
|
},
|
|
3558
|
-
"
|
|
4027
|
+
"queue:usage": {
|
|
3559
4028
|
"aliases": [],
|
|
3560
4029
|
"args": {},
|
|
3561
|
-
"description": "
|
|
4030
|
+
"description": "Show usage, flags, examples, and runtime hints for every `mj queue` command.",
|
|
3562
4031
|
"flags": {
|
|
3563
|
-
"
|
|
3564
|
-
"description": "
|
|
3565
|
-
"name": "
|
|
3566
|
-
"required": true,
|
|
3567
|
-
"hasDynamicHelp": false,
|
|
3568
|
-
"multiple": false,
|
|
3569
|
-
"type": "option"
|
|
3570
|
-
},
|
|
3571
|
-
"entity": {
|
|
3572
|
-
"description": "Subject entity name",
|
|
3573
|
-
"name": "entity",
|
|
3574
|
-
"required": true,
|
|
3575
|
-
"hasDynamicHelp": false,
|
|
3576
|
-
"multiple": false,
|
|
3577
|
-
"type": "option"
|
|
3578
|
-
},
|
|
3579
|
-
"record": {
|
|
3580
|
-
"description": "Subject record id",
|
|
3581
|
-
"name": "record",
|
|
3582
|
-
"required": true,
|
|
3583
|
-
"hasDynamicHelp": false,
|
|
3584
|
-
"multiple": false,
|
|
3585
|
-
"type": "option"
|
|
3586
|
-
},
|
|
3587
|
-
"evaluator": {
|
|
3588
|
-
"description": "LLM or Deterministic",
|
|
3589
|
-
"name": "evaluator",
|
|
3590
|
-
"default": "LLM",
|
|
4032
|
+
"format": {
|
|
4033
|
+
"description": "Output format. Defaults to text on a terminal and json when stdout is piped.",
|
|
4034
|
+
"name": "format",
|
|
3591
4035
|
"hasDynamicHelp": false,
|
|
3592
4036
|
"multiple": false,
|
|
4037
|
+
"options": [
|
|
4038
|
+
"text",
|
|
4039
|
+
"json",
|
|
4040
|
+
"md"
|
|
4041
|
+
],
|
|
3593
4042
|
"type": "option"
|
|
3594
4043
|
}
|
|
3595
4044
|
},
|
|
3596
4045
|
"hasDynamicHelp": false,
|
|
3597
4046
|
"hiddenAliases": [],
|
|
3598
|
-
"id": "
|
|
4047
|
+
"id": "queue:usage",
|
|
3599
4048
|
"pluginAlias": "@memberjunction/cli",
|
|
3600
4049
|
"pluginName": "@memberjunction/cli",
|
|
3601
4050
|
"pluginType": "core",
|
|
@@ -3605,18 +4054,37 @@
|
|
|
3605
4054
|
"relativePath": [
|
|
3606
4055
|
"dist",
|
|
3607
4056
|
"commands",
|
|
3608
|
-
"
|
|
3609
|
-
"
|
|
4057
|
+
"queue",
|
|
4058
|
+
"usage.js"
|
|
3610
4059
|
]
|
|
3611
4060
|
},
|
|
3612
|
-
"
|
|
4061
|
+
"queue:validate-bindings": {
|
|
3613
4062
|
"aliases": [],
|
|
3614
4063
|
"args": {},
|
|
3615
|
-
"description": "
|
|
3616
|
-
"
|
|
4064
|
+
"description": "Validate work-queue topology and cloud bindings; exits 1 on any error",
|
|
4065
|
+
"examples": [
|
|
4066
|
+
"<%= config.bin %> <%= command.id %>",
|
|
4067
|
+
"<%= config.bin %> <%= command.id %> --transport AWS-prod"
|
|
4068
|
+
],
|
|
4069
|
+
"flags": {
|
|
4070
|
+
"transport": {
|
|
4071
|
+
"char": "t",
|
|
4072
|
+
"description": "Validate one transport's bindings against its resources",
|
|
4073
|
+
"name": "transport",
|
|
4074
|
+
"hasDynamicHelp": false,
|
|
4075
|
+
"multiple": false,
|
|
4076
|
+
"type": "option"
|
|
4077
|
+
},
|
|
4078
|
+
"json": {
|
|
4079
|
+
"description": "Print issues as JSON",
|
|
4080
|
+
"name": "json",
|
|
4081
|
+
"allowNo": false,
|
|
4082
|
+
"type": "boolean"
|
|
4083
|
+
}
|
|
4084
|
+
},
|
|
3617
4085
|
"hasDynamicHelp": false,
|
|
3618
4086
|
"hiddenAliases": [],
|
|
3619
|
-
"id": "
|
|
4087
|
+
"id": "queue:validate-bindings",
|
|
3620
4088
|
"pluginAlias": "@memberjunction/cli",
|
|
3621
4089
|
"pluginName": "@memberjunction/cli",
|
|
3622
4090
|
"pluginType": "core",
|
|
@@ -3626,18 +4094,87 @@
|
|
|
3626
4094
|
"relativePath": [
|
|
3627
4095
|
"dist",
|
|
3628
4096
|
"commands",
|
|
3629
|
-
"
|
|
3630
|
-
"
|
|
4097
|
+
"queue",
|
|
4098
|
+
"validate-bindings.js"
|
|
3631
4099
|
]
|
|
3632
4100
|
},
|
|
3633
|
-
"
|
|
4101
|
+
"queue:work": {
|
|
3634
4102
|
"aliases": [],
|
|
3635
4103
|
"args": {},
|
|
3636
|
-
"description": "
|
|
3637
|
-
"
|
|
4104
|
+
"description": "Run work-queue subscriptions in this process: once for a container job, or until stopped",
|
|
4105
|
+
"examples": [
|
|
4106
|
+
"<%= config.bin %> <%= command.id %> --subscription venue-import --once",
|
|
4107
|
+
"<%= config.bin %> <%= command.id %> --subscription venue-import --once --max 5 --concurrency 2 --max-duration-ms 3300000",
|
|
4108
|
+
"<%= config.bin %> <%= command.id %> --subscription \"*\""
|
|
4109
|
+
],
|
|
4110
|
+
"flags": {
|
|
4111
|
+
"subscription": {
|
|
4112
|
+
"char": "s",
|
|
4113
|
+
"description": "Subscription name, or '*' for every MJWorker subscription",
|
|
4114
|
+
"name": "subscription",
|
|
4115
|
+
"required": true,
|
|
4116
|
+
"hasDynamicHelp": false,
|
|
4117
|
+
"multiple": false,
|
|
4118
|
+
"type": "option"
|
|
4119
|
+
},
|
|
4120
|
+
"once": {
|
|
4121
|
+
"description": "Receive up to --max deliveries, drain and exit (container-job mode)",
|
|
4122
|
+
"name": "once",
|
|
4123
|
+
"allowNo": false,
|
|
4124
|
+
"type": "boolean"
|
|
4125
|
+
},
|
|
4126
|
+
"max": {
|
|
4127
|
+
"dependsOn": [
|
|
4128
|
+
"once"
|
|
4129
|
+
],
|
|
4130
|
+
"description": "With --once: how many deliveries to receive",
|
|
4131
|
+
"name": "max",
|
|
4132
|
+
"default": 1,
|
|
4133
|
+
"hasDynamicHelp": false,
|
|
4134
|
+
"multiple": false,
|
|
4135
|
+
"type": "option"
|
|
4136
|
+
},
|
|
4137
|
+
"idle-exit-ms": {
|
|
4138
|
+
"dependsOn": [
|
|
4139
|
+
"once"
|
|
4140
|
+
],
|
|
4141
|
+
"description": "With --once: exit after this long with an empty queue",
|
|
4142
|
+
"name": "idle-exit-ms",
|
|
4143
|
+
"default": 5000,
|
|
4144
|
+
"hasDynamicHelp": false,
|
|
4145
|
+
"multiple": false,
|
|
4146
|
+
"type": "option"
|
|
4147
|
+
},
|
|
4148
|
+
"max-duration-ms": {
|
|
4149
|
+
"dependsOn": [
|
|
4150
|
+
"once"
|
|
4151
|
+
],
|
|
4152
|
+
"description": "With --once: stop claiming after this long and drain (keep it below the scheduler's job deadline)",
|
|
4153
|
+
"name": "max-duration-ms",
|
|
4154
|
+
"hasDynamicHelp": false,
|
|
4155
|
+
"multiple": false,
|
|
4156
|
+
"type": "option"
|
|
4157
|
+
},
|
|
4158
|
+
"concurrency": {
|
|
4159
|
+
"description": "Handlers in flight per subscription",
|
|
4160
|
+
"name": "concurrency",
|
|
4161
|
+
"default": 1,
|
|
4162
|
+
"hasDynamicHelp": false,
|
|
4163
|
+
"multiple": false,
|
|
4164
|
+
"type": "option"
|
|
4165
|
+
},
|
|
4166
|
+
"shutdown-drain-ms": {
|
|
4167
|
+
"description": "How long in-flight handlers get to finish on exit; the drain can take twice this",
|
|
4168
|
+
"name": "shutdown-drain-ms",
|
|
4169
|
+
"default": 30000,
|
|
4170
|
+
"hasDynamicHelp": false,
|
|
4171
|
+
"multiple": false,
|
|
4172
|
+
"type": "option"
|
|
4173
|
+
}
|
|
4174
|
+
},
|
|
3638
4175
|
"hasDynamicHelp": false,
|
|
3639
4176
|
"hiddenAliases": [],
|
|
3640
|
-
"id": "
|
|
4177
|
+
"id": "queue:work",
|
|
3641
4178
|
"pluginAlias": "@memberjunction/cli",
|
|
3642
4179
|
"pluginName": "@memberjunction/cli",
|
|
3643
4180
|
"pluginType": "core",
|
|
@@ -3647,24 +4184,64 @@
|
|
|
3647
4184
|
"relativePath": [
|
|
3648
4185
|
"dist",
|
|
3649
4186
|
"commands",
|
|
3650
|
-
"
|
|
3651
|
-
"
|
|
4187
|
+
"queue",
|
|
4188
|
+
"work.js"
|
|
3652
4189
|
]
|
|
3653
|
-
},
|
|
3654
|
-
"
|
|
3655
|
-
"aliases": [],
|
|
3656
|
-
"args": {
|
|
3657
|
-
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
|
|
4190
|
+
},
|
|
4191
|
+
"sql-audit": {
|
|
4192
|
+
"aliases": [],
|
|
4193
|
+
"args": {},
|
|
4194
|
+
"description": "Compare source and target databases for migration verification",
|
|
4195
|
+
"examples": [
|
|
4196
|
+
"<%= config.bin %> sql-audit --source \"mssql://sa:pass@host/db\" --target \"postgres://user:pass@host:5432/db\"",
|
|
4197
|
+
"<%= config.bin %> sql-audit --source \"mssql://sa:pass@host/db\" --target \"postgres://user:pass@host:5432/db\" --output report.txt",
|
|
4198
|
+
"<%= config.bin %> sql-audit --source \"mssql://sa:pass@host/db\" --target \"postgres://user:pass@host:5432/db\" --source-schema __mj --target-schema __mj"
|
|
4199
|
+
],
|
|
4200
|
+
"flags": {
|
|
4201
|
+
"source": {
|
|
4202
|
+
"description": "Source database connection string (mssql://... or postgres://...)",
|
|
4203
|
+
"name": "source",
|
|
4204
|
+
"required": true,
|
|
4205
|
+
"hasDynamicHelp": false,
|
|
4206
|
+
"multiple": false,
|
|
4207
|
+
"type": "option"
|
|
4208
|
+
},
|
|
4209
|
+
"target": {
|
|
4210
|
+
"description": "Target database connection string (mssql://... or postgres://...)",
|
|
4211
|
+
"name": "target",
|
|
4212
|
+
"required": true,
|
|
4213
|
+
"hasDynamicHelp": false,
|
|
4214
|
+
"multiple": false,
|
|
4215
|
+
"type": "option"
|
|
4216
|
+
},
|
|
4217
|
+
"source-schema": {
|
|
4218
|
+
"description": "Source schema name",
|
|
4219
|
+
"name": "source-schema",
|
|
4220
|
+
"default": "__mj",
|
|
4221
|
+
"hasDynamicHelp": false,
|
|
4222
|
+
"multiple": false,
|
|
4223
|
+
"type": "option"
|
|
4224
|
+
},
|
|
4225
|
+
"target-schema": {
|
|
4226
|
+
"description": "Target schema name",
|
|
4227
|
+
"name": "target-schema",
|
|
4228
|
+
"default": "__mj",
|
|
4229
|
+
"hasDynamicHelp": false,
|
|
4230
|
+
"multiple": false,
|
|
4231
|
+
"type": "option"
|
|
4232
|
+
},
|
|
4233
|
+
"output": {
|
|
4234
|
+
"char": "o",
|
|
4235
|
+
"description": "Save report to file",
|
|
4236
|
+
"name": "output",
|
|
4237
|
+
"hasDynamicHelp": false,
|
|
4238
|
+
"multiple": false,
|
|
4239
|
+
"type": "option"
|
|
3661
4240
|
}
|
|
3662
4241
|
},
|
|
3663
|
-
"description": "Show a rubric version and its criteria.",
|
|
3664
|
-
"flags": {},
|
|
3665
4242
|
"hasDynamicHelp": false,
|
|
3666
4243
|
"hiddenAliases": [],
|
|
3667
|
-
"id": "
|
|
4244
|
+
"id": "sql-audit",
|
|
3668
4245
|
"pluginAlias": "@memberjunction/cli",
|
|
3669
4246
|
"pluginName": "@memberjunction/cli",
|
|
3670
4247
|
"pluginType": "core",
|
|
@@ -3674,24 +4251,31 @@
|
|
|
3674
4251
|
"relativePath": [
|
|
3675
4252
|
"dist",
|
|
3676
4253
|
"commands",
|
|
3677
|
-
"
|
|
3678
|
-
"
|
|
4254
|
+
"sql-audit",
|
|
4255
|
+
"index.js"
|
|
3679
4256
|
]
|
|
3680
4257
|
},
|
|
3681
|
-
"
|
|
4258
|
+
"sql-audit:usage": {
|
|
3682
4259
|
"aliases": [],
|
|
3683
|
-
"args": {
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
"
|
|
4260
|
+
"args": {},
|
|
4261
|
+
"description": "Show usage, flags, examples, and runtime hints for every `mj sql-audit` command.",
|
|
4262
|
+
"flags": {
|
|
4263
|
+
"format": {
|
|
4264
|
+
"description": "Output format. Defaults to text on a terminal and json when stdout is piped.",
|
|
4265
|
+
"name": "format",
|
|
4266
|
+
"hasDynamicHelp": false,
|
|
4267
|
+
"multiple": false,
|
|
4268
|
+
"options": [
|
|
4269
|
+
"text",
|
|
4270
|
+
"json",
|
|
4271
|
+
"md"
|
|
4272
|
+
],
|
|
4273
|
+
"type": "option"
|
|
3688
4274
|
}
|
|
3689
4275
|
},
|
|
3690
|
-
"description": "Check a rubric snapshot file for duplicate keys, gates, weights, and scales.",
|
|
3691
|
-
"flags": {},
|
|
3692
4276
|
"hasDynamicHelp": false,
|
|
3693
4277
|
"hiddenAliases": [],
|
|
3694
|
-
"id": "
|
|
4278
|
+
"id": "sql-audit:usage",
|
|
3695
4279
|
"pluginAlias": "@memberjunction/cli",
|
|
3696
4280
|
"pluginName": "@memberjunction/cli",
|
|
3697
4281
|
"pluginType": "core",
|
|
@@ -3701,8 +4285,8 @@
|
|
|
3701
4285
|
"relativePath": [
|
|
3702
4286
|
"dist",
|
|
3703
4287
|
"commands",
|
|
3704
|
-
"
|
|
3705
|
-
"
|
|
4288
|
+
"sql-audit",
|
|
4289
|
+
"usage.js"
|
|
3706
4290
|
]
|
|
3707
4291
|
},
|
|
3708
4292
|
"sql-convert": {
|
|
@@ -4514,6 +5098,12 @@
|
|
|
4514
5098
|
"name": "change-detail",
|
|
4515
5099
|
"allowNo": false,
|
|
4516
5100
|
"type": "boolean"
|
|
5101
|
+
},
|
|
5102
|
+
"skip-cache-clear": {
|
|
5103
|
+
"description": "Do not clear the shared Redis cache (REDIS_URL) after pushing. Also: MJ_SKIP_SHARED_CACHE_CLEAR=1",
|
|
5104
|
+
"name": "skip-cache-clear",
|
|
5105
|
+
"allowNo": false,
|
|
5106
|
+
"type": "boolean"
|
|
4517
5107
|
}
|
|
4518
5108
|
},
|
|
4519
5109
|
"hasDynamicHelp": false,
|
|
@@ -4575,6 +5165,11 @@
|
|
|
4575
5165
|
"name": "--format",
|
|
4576
5166
|
"type": "text|json|md",
|
|
4577
5167
|
"description": "Output format (json for machine-readable result)"
|
|
5168
|
+
},
|
|
5169
|
+
{
|
|
5170
|
+
"name": "--skip-cache-clear",
|
|
5171
|
+
"type": "boolean",
|
|
5172
|
+
"description": "Do not clear the shared Redis cache after pushing"
|
|
4578
5173
|
}
|
|
4579
5174
|
],
|
|
4580
5175
|
"examples": [
|
|
@@ -4683,203 +5278,49 @@
|
|
|
4683
5278
|
"sync",
|
|
4684
5279
|
"usage.js"
|
|
4685
5280
|
]
|
|
4686
|
-
},
|
|
4687
|
-
"sync:validate": {
|
|
4688
|
-
"aliases": [],
|
|
4689
|
-
"args": {},
|
|
4690
|
-
"description": "Validate metadata files",
|
|
4691
|
-
"examples": [
|
|
4692
|
-
"<%= config.bin %> <%= command.id %>",
|
|
4693
|
-
"<%= config.bin %> <%= command.id %> --dir=\"ai-prompts\"",
|
|
4694
|
-
"<%= config.bin %> <%= command.id %> --save-report",
|
|
4695
|
-
"<%= config.bin %> <%= command.id %> --verbose"
|
|
4696
|
-
],
|
|
4697
|
-
"flags": {
|
|
4698
|
-
"dir": {
|
|
4699
|
-
"description": "Specific entity directory to validate",
|
|
4700
|
-
"name": "dir",
|
|
4701
|
-
"hasDynamicHelp": false,
|
|
4702
|
-
"multiple": false,
|
|
4703
|
-
"type": "option"
|
|
4704
|
-
},
|
|
4705
|
-
"verbose": {
|
|
4706
|
-
"char": "v",
|
|
4707
|
-
"description": "Show detailed validation output",
|
|
4708
|
-
"name": "verbose",
|
|
4709
|
-
"allowNo": false,
|
|
4710
|
-
"type": "boolean"
|
|
4711
|
-
},
|
|
4712
|
-
"save-report": {
|
|
4713
|
-
"description": "Save validation report as markdown file",
|
|
4714
|
-
"name": "save-report",
|
|
4715
|
-
"allowNo": false,
|
|
4716
|
-
"type": "boolean"
|
|
4717
|
-
},
|
|
4718
|
-
"output": {
|
|
4719
|
-
"description": "Output file path for validation report (default: validation-report.md)",
|
|
4720
|
-
"name": "output",
|
|
4721
|
-
"hasDynamicHelp": false,
|
|
4722
|
-
"multiple": false,
|
|
4723
|
-
"type": "option"
|
|
4724
|
-
}
|
|
4725
|
-
},
|
|
4726
|
-
"hasDynamicHelp": false,
|
|
4727
|
-
"hiddenAliases": [],
|
|
4728
|
-
"id": "sync:validate",
|
|
4729
|
-
"pluginAlias": "@memberjunction/cli",
|
|
4730
|
-
"pluginName": "@memberjunction/cli",
|
|
4731
|
-
"pluginType": "core",
|
|
4732
|
-
"strict": true,
|
|
4733
|
-
"enableJsonFlag": false,
|
|
4734
|
-
"isESM": true,
|
|
4735
|
-
"relativePath": [
|
|
4736
|
-
"dist",
|
|
4737
|
-
"commands",
|
|
4738
|
-
"sync",
|
|
4739
|
-
"validate.js"
|
|
4740
|
-
]
|
|
4741
|
-
},
|
|
4742
|
-
"sync:watch": {
|
|
4743
|
-
"aliases": [],
|
|
4744
|
-
"args": {},
|
|
4745
|
-
"description": "Watch for file changes and sync automatically",
|
|
4746
|
-
"examples": [
|
|
4747
|
-
"<%= config.bin %> <%= command.id %>",
|
|
4748
|
-
"<%= config.bin %> <%= command.id %> --dir=\"ai-prompts\"",
|
|
4749
|
-
"<%= config.bin %> <%= command.id %> --debounce=1000",
|
|
4750
|
-
"<%= config.bin %> <%= command.id %> --no-validate"
|
|
4751
|
-
],
|
|
4752
|
-
"flags": {
|
|
4753
|
-
"dir": {
|
|
4754
|
-
"description": "Specific entity directory to watch",
|
|
4755
|
-
"name": "dir",
|
|
4756
|
-
"hasDynamicHelp": false,
|
|
4757
|
-
"multiple": false,
|
|
4758
|
-
"type": "option"
|
|
4759
|
-
},
|
|
4760
|
-
"debounce": {
|
|
4761
|
-
"description": "Debounce delay in milliseconds (default: 500)",
|
|
4762
|
-
"name": "debounce",
|
|
4763
|
-
"hasDynamicHelp": false,
|
|
4764
|
-
"multiple": false,
|
|
4765
|
-
"type": "option"
|
|
4766
|
-
},
|
|
4767
|
-
"no-validate": {
|
|
4768
|
-
"description": "Skip validation before sync",
|
|
4769
|
-
"name": "no-validate",
|
|
4770
|
-
"allowNo": false,
|
|
4771
|
-
"type": "boolean"
|
|
4772
|
-
},
|
|
4773
|
-
"verbose": {
|
|
4774
|
-
"char": "v",
|
|
4775
|
-
"description": "Show detailed output",
|
|
4776
|
-
"name": "verbose",
|
|
4777
|
-
"allowNo": false,
|
|
4778
|
-
"type": "boolean"
|
|
4779
|
-
}
|
|
4780
|
-
},
|
|
4781
|
-
"hasDynamicHelp": false,
|
|
4782
|
-
"hiddenAliases": [],
|
|
4783
|
-
"id": "sync:watch",
|
|
4784
|
-
"pluginAlias": "@memberjunction/cli",
|
|
4785
|
-
"pluginName": "@memberjunction/cli",
|
|
4786
|
-
"pluginType": "core",
|
|
4787
|
-
"strict": true,
|
|
4788
|
-
"enableJsonFlag": false,
|
|
4789
|
-
"isESM": true,
|
|
4790
|
-
"relativePath": [
|
|
4791
|
-
"dist",
|
|
4792
|
-
"commands",
|
|
4793
|
-
"sync",
|
|
4794
|
-
"watch.js"
|
|
4795
|
-
]
|
|
4796
|
-
},
|
|
4797
|
-
"translate-sql": {
|
|
4798
|
-
"aliases": [],
|
|
4799
|
-
"args": {},
|
|
4800
|
-
"description": "Translate SQL fragments between database dialects (SQL Server ↔ PostgreSQL)",
|
|
4801
|
-
"examples": [
|
|
4802
|
-
"<%= config.bin %> translate-sql --from sqlserver --to postgresql --dry-run",
|
|
4803
|
-
"<%= config.bin %> translate-sql --from sqlserver --to postgresql --scope queries",
|
|
4804
|
-
"<%= config.bin %> translate-sql --from sqlserver --to postgresql --sql \"SELECT TOP 10 [Name] FROM [Users]\"",
|
|
4805
|
-
"<%= config.bin %> translate-sql --from sqlserver --to postgresql --scope all --output ./reports"
|
|
4806
|
-
],
|
|
4807
|
-
"flags": {
|
|
4808
|
-
"from": {
|
|
4809
|
-
"description": "Source SQL dialect",
|
|
4810
|
-
"name": "from",
|
|
4811
|
-
"required": true,
|
|
4812
|
-
"hasDynamicHelp": false,
|
|
4813
|
-
"multiple": false,
|
|
4814
|
-
"options": [
|
|
4815
|
-
"sqlserver",
|
|
4816
|
-
"postgresql"
|
|
4817
|
-
],
|
|
4818
|
-
"type": "option"
|
|
4819
|
-
},
|
|
4820
|
-
"to": {
|
|
4821
|
-
"description": "Target SQL dialect",
|
|
4822
|
-
"name": "to",
|
|
4823
|
-
"required": true,
|
|
4824
|
-
"hasDynamicHelp": false,
|
|
4825
|
-
"multiple": false,
|
|
4826
|
-
"options": [
|
|
4827
|
-
"sqlserver",
|
|
4828
|
-
"postgresql"
|
|
4829
|
-
],
|
|
4830
|
-
"type": "option"
|
|
4831
|
-
},
|
|
4832
|
-
"scope": {
|
|
4833
|
-
"description": "What to scan for translation",
|
|
4834
|
-
"name": "scope",
|
|
4835
|
-
"default": "all",
|
|
4836
|
-
"hasDynamicHelp": false,
|
|
4837
|
-
"multiple": false,
|
|
4838
|
-
"options": [
|
|
4839
|
-
"queries",
|
|
4840
|
-
"views",
|
|
4841
|
-
"filters",
|
|
4842
|
-
"all"
|
|
4843
|
-
],
|
|
4844
|
-
"type": "option"
|
|
4845
|
-
},
|
|
4846
|
-
"sql": {
|
|
4847
|
-
"description": "Translate a single SQL fragment (inline mode)",
|
|
4848
|
-
"name": "sql",
|
|
5281
|
+
},
|
|
5282
|
+
"sync:validate": {
|
|
5283
|
+
"aliases": [],
|
|
5284
|
+
"args": {},
|
|
5285
|
+
"description": "Validate metadata files",
|
|
5286
|
+
"examples": [
|
|
5287
|
+
"<%= config.bin %> <%= command.id %>",
|
|
5288
|
+
"<%= config.bin %> <%= command.id %> --dir=\"ai-prompts\"",
|
|
5289
|
+
"<%= config.bin %> <%= command.id %> --save-report",
|
|
5290
|
+
"<%= config.bin %> <%= command.id %> --verbose"
|
|
5291
|
+
],
|
|
5292
|
+
"flags": {
|
|
5293
|
+
"dir": {
|
|
5294
|
+
"description": "Specific entity directory to validate",
|
|
5295
|
+
"name": "dir",
|
|
4849
5296
|
"hasDynamicHelp": false,
|
|
4850
5297
|
"multiple": false,
|
|
4851
5298
|
"type": "option"
|
|
4852
5299
|
},
|
|
4853
|
-
"
|
|
4854
|
-
"
|
|
4855
|
-
"
|
|
5300
|
+
"verbose": {
|
|
5301
|
+
"char": "v",
|
|
5302
|
+
"description": "Show detailed validation output",
|
|
5303
|
+
"name": "verbose",
|
|
4856
5304
|
"allowNo": false,
|
|
4857
5305
|
"type": "boolean"
|
|
4858
5306
|
},
|
|
4859
|
-
"
|
|
4860
|
-
"description": "
|
|
4861
|
-
"name": "
|
|
5307
|
+
"save-report": {
|
|
5308
|
+
"description": "Save validation report as markdown file",
|
|
5309
|
+
"name": "save-report",
|
|
4862
5310
|
"allowNo": false,
|
|
4863
5311
|
"type": "boolean"
|
|
4864
5312
|
},
|
|
4865
5313
|
"output": {
|
|
4866
|
-
"
|
|
4867
|
-
"description": "Output directory for the translation report",
|
|
5314
|
+
"description": "Output file path for validation report (default: validation-report.md)",
|
|
4868
5315
|
"name": "output",
|
|
4869
5316
|
"hasDynamicHelp": false,
|
|
4870
5317
|
"multiple": false,
|
|
4871
5318
|
"type": "option"
|
|
4872
|
-
},
|
|
4873
|
-
"force": {
|
|
4874
|
-
"description": "Re-translate even if platform variants already exist",
|
|
4875
|
-
"name": "force",
|
|
4876
|
-
"allowNo": false,
|
|
4877
|
-
"type": "boolean"
|
|
4878
5319
|
}
|
|
4879
5320
|
},
|
|
4880
5321
|
"hasDynamicHelp": false,
|
|
4881
5322
|
"hiddenAliases": [],
|
|
4882
|
-
"id": "
|
|
5323
|
+
"id": "sync:validate",
|
|
4883
5324
|
"pluginAlias": "@memberjunction/cli",
|
|
4884
5325
|
"pluginName": "@memberjunction/cli",
|
|
4885
5326
|
"pluginType": "core",
|
|
@@ -4889,31 +5330,52 @@
|
|
|
4889
5330
|
"relativePath": [
|
|
4890
5331
|
"dist",
|
|
4891
5332
|
"commands",
|
|
4892
|
-
"
|
|
4893
|
-
"
|
|
5333
|
+
"sync",
|
|
5334
|
+
"validate.js"
|
|
4894
5335
|
]
|
|
4895
5336
|
},
|
|
4896
|
-
"
|
|
5337
|
+
"sync:watch": {
|
|
4897
5338
|
"aliases": [],
|
|
4898
5339
|
"args": {},
|
|
4899
|
-
"description": "
|
|
5340
|
+
"description": "Watch for file changes and sync automatically",
|
|
5341
|
+
"examples": [
|
|
5342
|
+
"<%= config.bin %> <%= command.id %>",
|
|
5343
|
+
"<%= config.bin %> <%= command.id %> --dir=\"ai-prompts\"",
|
|
5344
|
+
"<%= config.bin %> <%= command.id %> --debounce=1000",
|
|
5345
|
+
"<%= config.bin %> <%= command.id %> --no-validate"
|
|
5346
|
+
],
|
|
4900
5347
|
"flags": {
|
|
4901
|
-
"
|
|
4902
|
-
"description": "
|
|
4903
|
-
"name": "
|
|
5348
|
+
"dir": {
|
|
5349
|
+
"description": "Specific entity directory to watch",
|
|
5350
|
+
"name": "dir",
|
|
4904
5351
|
"hasDynamicHelp": false,
|
|
4905
5352
|
"multiple": false,
|
|
4906
|
-
"options": [
|
|
4907
|
-
"text",
|
|
4908
|
-
"json",
|
|
4909
|
-
"md"
|
|
4910
|
-
],
|
|
4911
5353
|
"type": "option"
|
|
5354
|
+
},
|
|
5355
|
+
"debounce": {
|
|
5356
|
+
"description": "Debounce delay in milliseconds (default: 500)",
|
|
5357
|
+
"name": "debounce",
|
|
5358
|
+
"hasDynamicHelp": false,
|
|
5359
|
+
"multiple": false,
|
|
5360
|
+
"type": "option"
|
|
5361
|
+
},
|
|
5362
|
+
"no-validate": {
|
|
5363
|
+
"description": "Skip validation before sync",
|
|
5364
|
+
"name": "no-validate",
|
|
5365
|
+
"allowNo": false,
|
|
5366
|
+
"type": "boolean"
|
|
5367
|
+
},
|
|
5368
|
+
"verbose": {
|
|
5369
|
+
"char": "v",
|
|
5370
|
+
"description": "Show detailed output",
|
|
5371
|
+
"name": "verbose",
|
|
5372
|
+
"allowNo": false,
|
|
5373
|
+
"type": "boolean"
|
|
4912
5374
|
}
|
|
4913
5375
|
},
|
|
4914
5376
|
"hasDynamicHelp": false,
|
|
4915
5377
|
"hiddenAliases": [],
|
|
4916
|
-
"id": "
|
|
5378
|
+
"id": "sync:watch",
|
|
4917
5379
|
"pluginAlias": "@memberjunction/cli",
|
|
4918
5380
|
"pluginName": "@memberjunction/cli",
|
|
4919
5381
|
"pluginType": "core",
|
|
@@ -4923,8 +5385,8 @@
|
|
|
4923
5385
|
"relativePath": [
|
|
4924
5386
|
"dist",
|
|
4925
5387
|
"commands",
|
|
4926
|
-
"
|
|
4927
|
-
"
|
|
5388
|
+
"sync",
|
|
5389
|
+
"watch.js"
|
|
4928
5390
|
]
|
|
4929
5391
|
},
|
|
4930
5392
|
"test:compare": {
|
|
@@ -5744,6 +6206,139 @@
|
|
|
5744
6206
|
"validate.js"
|
|
5745
6207
|
]
|
|
5746
6208
|
},
|
|
6209
|
+
"translate-sql": {
|
|
6210
|
+
"aliases": [],
|
|
6211
|
+
"args": {},
|
|
6212
|
+
"description": "Translate SQL fragments between database dialects (SQL Server ↔ PostgreSQL)",
|
|
6213
|
+
"examples": [
|
|
6214
|
+
"<%= config.bin %> translate-sql --from sqlserver --to postgresql --dry-run",
|
|
6215
|
+
"<%= config.bin %> translate-sql --from sqlserver --to postgresql --scope queries",
|
|
6216
|
+
"<%= config.bin %> translate-sql --from sqlserver --to postgresql --sql \"SELECT TOP 10 [Name] FROM [Users]\"",
|
|
6217
|
+
"<%= config.bin %> translate-sql --from sqlserver --to postgresql --scope all --output ./reports"
|
|
6218
|
+
],
|
|
6219
|
+
"flags": {
|
|
6220
|
+
"from": {
|
|
6221
|
+
"description": "Source SQL dialect",
|
|
6222
|
+
"name": "from",
|
|
6223
|
+
"required": true,
|
|
6224
|
+
"hasDynamicHelp": false,
|
|
6225
|
+
"multiple": false,
|
|
6226
|
+
"options": [
|
|
6227
|
+
"sqlserver",
|
|
6228
|
+
"postgresql"
|
|
6229
|
+
],
|
|
6230
|
+
"type": "option"
|
|
6231
|
+
},
|
|
6232
|
+
"to": {
|
|
6233
|
+
"description": "Target SQL dialect",
|
|
6234
|
+
"name": "to",
|
|
6235
|
+
"required": true,
|
|
6236
|
+
"hasDynamicHelp": false,
|
|
6237
|
+
"multiple": false,
|
|
6238
|
+
"options": [
|
|
6239
|
+
"sqlserver",
|
|
6240
|
+
"postgresql"
|
|
6241
|
+
],
|
|
6242
|
+
"type": "option"
|
|
6243
|
+
},
|
|
6244
|
+
"scope": {
|
|
6245
|
+
"description": "What to scan for translation",
|
|
6246
|
+
"name": "scope",
|
|
6247
|
+
"default": "all",
|
|
6248
|
+
"hasDynamicHelp": false,
|
|
6249
|
+
"multiple": false,
|
|
6250
|
+
"options": [
|
|
6251
|
+
"queries",
|
|
6252
|
+
"views",
|
|
6253
|
+
"filters",
|
|
6254
|
+
"all"
|
|
6255
|
+
],
|
|
6256
|
+
"type": "option"
|
|
6257
|
+
},
|
|
6258
|
+
"sql": {
|
|
6259
|
+
"description": "Translate a single SQL fragment (inline mode)",
|
|
6260
|
+
"name": "sql",
|
|
6261
|
+
"hasDynamicHelp": false,
|
|
6262
|
+
"multiple": false,
|
|
6263
|
+
"type": "option"
|
|
6264
|
+
},
|
|
6265
|
+
"dry-run": {
|
|
6266
|
+
"description": "Show what would be translated without making changes",
|
|
6267
|
+
"name": "dry-run",
|
|
6268
|
+
"allowNo": false,
|
|
6269
|
+
"type": "boolean"
|
|
6270
|
+
},
|
|
6271
|
+
"review": {
|
|
6272
|
+
"description": "Generate review report only (no writes to database)",
|
|
6273
|
+
"name": "review",
|
|
6274
|
+
"allowNo": false,
|
|
6275
|
+
"type": "boolean"
|
|
6276
|
+
},
|
|
6277
|
+
"output": {
|
|
6278
|
+
"char": "o",
|
|
6279
|
+
"description": "Output directory for the translation report",
|
|
6280
|
+
"name": "output",
|
|
6281
|
+
"hasDynamicHelp": false,
|
|
6282
|
+
"multiple": false,
|
|
6283
|
+
"type": "option"
|
|
6284
|
+
},
|
|
6285
|
+
"force": {
|
|
6286
|
+
"description": "Re-translate even if platform variants already exist",
|
|
6287
|
+
"name": "force",
|
|
6288
|
+
"allowNo": false,
|
|
6289
|
+
"type": "boolean"
|
|
6290
|
+
}
|
|
6291
|
+
},
|
|
6292
|
+
"hasDynamicHelp": false,
|
|
6293
|
+
"hiddenAliases": [],
|
|
6294
|
+
"id": "translate-sql",
|
|
6295
|
+
"pluginAlias": "@memberjunction/cli",
|
|
6296
|
+
"pluginName": "@memberjunction/cli",
|
|
6297
|
+
"pluginType": "core",
|
|
6298
|
+
"strict": true,
|
|
6299
|
+
"enableJsonFlag": false,
|
|
6300
|
+
"isESM": true,
|
|
6301
|
+
"relativePath": [
|
|
6302
|
+
"dist",
|
|
6303
|
+
"commands",
|
|
6304
|
+
"translate-sql",
|
|
6305
|
+
"index.js"
|
|
6306
|
+
]
|
|
6307
|
+
},
|
|
6308
|
+
"translate-sql:usage": {
|
|
6309
|
+
"aliases": [],
|
|
6310
|
+
"args": {},
|
|
6311
|
+
"description": "Show usage, flags, examples, and runtime hints for every `mj translate-sql` command.",
|
|
6312
|
+
"flags": {
|
|
6313
|
+
"format": {
|
|
6314
|
+
"description": "Output format. Defaults to text on a terminal and json when stdout is piped.",
|
|
6315
|
+
"name": "format",
|
|
6316
|
+
"hasDynamicHelp": false,
|
|
6317
|
+
"multiple": false,
|
|
6318
|
+
"options": [
|
|
6319
|
+
"text",
|
|
6320
|
+
"json",
|
|
6321
|
+
"md"
|
|
6322
|
+
],
|
|
6323
|
+
"type": "option"
|
|
6324
|
+
}
|
|
6325
|
+
},
|
|
6326
|
+
"hasDynamicHelp": false,
|
|
6327
|
+
"hiddenAliases": [],
|
|
6328
|
+
"id": "translate-sql:usage",
|
|
6329
|
+
"pluginAlias": "@memberjunction/cli",
|
|
6330
|
+
"pluginName": "@memberjunction/cli",
|
|
6331
|
+
"pluginType": "core",
|
|
6332
|
+
"strict": true,
|
|
6333
|
+
"enableJsonFlag": false,
|
|
6334
|
+
"isESM": true,
|
|
6335
|
+
"relativePath": [
|
|
6336
|
+
"dist",
|
|
6337
|
+
"commands",
|
|
6338
|
+
"translate-sql",
|
|
6339
|
+
"usage.js"
|
|
6340
|
+
]
|
|
6341
|
+
},
|
|
5747
6342
|
"update:claude": {
|
|
5748
6343
|
"aliases": [],
|
|
5749
6344
|
"args": {},
|
|
@@ -5868,7 +6463,41 @@
|
|
|
5868
6463
|
},
|
|
5869
6464
|
"hasDynamicHelp": false,
|
|
5870
6465
|
"hiddenAliases": [],
|
|
5871
|
-
"id": "update:claude",
|
|
6466
|
+
"id": "update:claude",
|
|
6467
|
+
"pluginAlias": "@memberjunction/cli",
|
|
6468
|
+
"pluginName": "@memberjunction/cli",
|
|
6469
|
+
"pluginType": "core",
|
|
6470
|
+
"strict": true,
|
|
6471
|
+
"enableJsonFlag": false,
|
|
6472
|
+
"isESM": true,
|
|
6473
|
+
"relativePath": [
|
|
6474
|
+
"dist",
|
|
6475
|
+
"commands",
|
|
6476
|
+
"update",
|
|
6477
|
+
"claude.js"
|
|
6478
|
+
]
|
|
6479
|
+
},
|
|
6480
|
+
"update:usage": {
|
|
6481
|
+
"aliases": [],
|
|
6482
|
+
"args": {},
|
|
6483
|
+
"description": "Show usage, flags, examples, and runtime hints for every `mj update` command.",
|
|
6484
|
+
"flags": {
|
|
6485
|
+
"format": {
|
|
6486
|
+
"description": "Output format. Defaults to text on a terminal and json when stdout is piped.",
|
|
6487
|
+
"name": "format",
|
|
6488
|
+
"hasDynamicHelp": false,
|
|
6489
|
+
"multiple": false,
|
|
6490
|
+
"options": [
|
|
6491
|
+
"text",
|
|
6492
|
+
"json",
|
|
6493
|
+
"md"
|
|
6494
|
+
],
|
|
6495
|
+
"type": "option"
|
|
6496
|
+
}
|
|
6497
|
+
},
|
|
6498
|
+
"hasDynamicHelp": false,
|
|
6499
|
+
"hiddenAliases": [],
|
|
6500
|
+
"id": "update:usage",
|
|
5872
6501
|
"pluginAlias": "@memberjunction/cli",
|
|
5873
6502
|
"pluginName": "@memberjunction/cli",
|
|
5874
6503
|
"pluginType": "core",
|
|
@@ -5879,30 +6508,75 @@
|
|
|
5879
6508
|
"dist",
|
|
5880
6509
|
"commands",
|
|
5881
6510
|
"update",
|
|
5882
|
-
"
|
|
6511
|
+
"usage.js"
|
|
5883
6512
|
]
|
|
5884
6513
|
},
|
|
5885
|
-
"
|
|
6514
|
+
"user:clone": {
|
|
5886
6515
|
"aliases": [],
|
|
5887
6516
|
"args": {},
|
|
5888
|
-
"description": "
|
|
6517
|
+
"description": "Create a user as a copy of another (a template user by default)",
|
|
6518
|
+
"examples": [
|
|
6519
|
+
"<%= config.bin %> user clone --from demo.user@example.org --email jane@example.com --first Jane --last Doe",
|
|
6520
|
+
"<%= config.bin %> user clone --from alice@example.com --email bob@example.com --first Bob --last Lee --preset with-settings",
|
|
6521
|
+
"<%= config.bin %> user clone --from demo.user@example.org --email jane@example.com --first Jane --last Doe --dry-run"
|
|
6522
|
+
],
|
|
5889
6523
|
"flags": {
|
|
5890
|
-
"
|
|
5891
|
-
"description": "
|
|
5892
|
-
"name": "
|
|
6524
|
+
"from": {
|
|
6525
|
+
"description": "Email of the user to copy",
|
|
6526
|
+
"name": "from",
|
|
6527
|
+
"required": true,
|
|
6528
|
+
"hasDynamicHelp": false,
|
|
6529
|
+
"multiple": false,
|
|
6530
|
+
"type": "option"
|
|
6531
|
+
},
|
|
6532
|
+
"email": {
|
|
6533
|
+
"description": "Email of the new user (the identity they sign in with)",
|
|
6534
|
+
"name": "email",
|
|
6535
|
+
"required": true,
|
|
6536
|
+
"hasDynamicHelp": false,
|
|
6537
|
+
"multiple": false,
|
|
6538
|
+
"type": "option"
|
|
6539
|
+
},
|
|
6540
|
+
"first": {
|
|
6541
|
+
"description": "First name of the new user",
|
|
6542
|
+
"name": "first",
|
|
6543
|
+
"required": true,
|
|
6544
|
+
"hasDynamicHelp": false,
|
|
6545
|
+
"multiple": false,
|
|
6546
|
+
"type": "option"
|
|
6547
|
+
},
|
|
6548
|
+
"last": {
|
|
6549
|
+
"description": "Last name of the new user",
|
|
6550
|
+
"name": "last",
|
|
6551
|
+
"required": true,
|
|
6552
|
+
"hasDynamicHelp": false,
|
|
6553
|
+
"multiple": false,
|
|
6554
|
+
"type": "option"
|
|
6555
|
+
},
|
|
6556
|
+
"preset": {
|
|
6557
|
+
"description": "MJ: Users clone preset: 'template' (template users only), 'with-views', 'with-settings', or none for the base copy",
|
|
6558
|
+
"name": "preset",
|
|
6559
|
+
"default": "template",
|
|
5893
6560
|
"hasDynamicHelp": false,
|
|
5894
6561
|
"multiple": false,
|
|
5895
|
-
"options": [
|
|
5896
|
-
"text",
|
|
5897
|
-
"json",
|
|
5898
|
-
"md"
|
|
5899
|
-
],
|
|
5900
6562
|
"type": "option"
|
|
6563
|
+
},
|
|
6564
|
+
"inactive": {
|
|
6565
|
+
"description": "Leave the new user inactive for review instead of activating it",
|
|
6566
|
+
"name": "inactive",
|
|
6567
|
+
"allowNo": false,
|
|
6568
|
+
"type": "boolean"
|
|
6569
|
+
},
|
|
6570
|
+
"dry-run": {
|
|
6571
|
+
"description": "Show what would be copied without creating anything",
|
|
6572
|
+
"name": "dry-run",
|
|
6573
|
+
"allowNo": false,
|
|
6574
|
+
"type": "boolean"
|
|
5901
6575
|
}
|
|
5902
6576
|
},
|
|
5903
6577
|
"hasDynamicHelp": false,
|
|
5904
6578
|
"hiddenAliases": [],
|
|
5905
|
-
"id": "
|
|
6579
|
+
"id": "user:clone",
|
|
5906
6580
|
"pluginAlias": "@memberjunction/cli",
|
|
5907
6581
|
"pluginName": "@memberjunction/cli",
|
|
5908
6582
|
"pluginType": "core",
|
|
@@ -5912,8 +6586,8 @@
|
|
|
5912
6586
|
"relativePath": [
|
|
5913
6587
|
"dist",
|
|
5914
6588
|
"commands",
|
|
5915
|
-
"
|
|
5916
|
-
"
|
|
6589
|
+
"user",
|
|
6590
|
+
"clone.js"
|
|
5917
6591
|
]
|
|
5918
6592
|
},
|
|
5919
6593
|
"ai:actions:list": {
|
|
@@ -6625,6 +7299,218 @@
|
|
|
6625
7299
|
"run.js"
|
|
6626
7300
|
]
|
|
6627
7301
|
},
|
|
7302
|
+
"rubric:diff": {
|
|
7303
|
+
"aliases": [],
|
|
7304
|
+
"args": {
|
|
7305
|
+
"rubric": {
|
|
7306
|
+
"description": "Rubric name or id",
|
|
7307
|
+
"name": "rubric",
|
|
7308
|
+
"required": true
|
|
7309
|
+
},
|
|
7310
|
+
"from": {
|
|
7311
|
+
"description": "Version 1.2.0 or id",
|
|
7312
|
+
"name": "from",
|
|
7313
|
+
"required": true
|
|
7314
|
+
},
|
|
7315
|
+
"to": {
|
|
7316
|
+
"description": "Version 1.2.0 or id",
|
|
7317
|
+
"name": "to",
|
|
7318
|
+
"required": true
|
|
7319
|
+
}
|
|
7320
|
+
},
|
|
7321
|
+
"description": "Print the version bump between two rubric versions.",
|
|
7322
|
+
"flags": {},
|
|
7323
|
+
"hasDynamicHelp": false,
|
|
7324
|
+
"hiddenAliases": [],
|
|
7325
|
+
"id": "rubric:diff",
|
|
7326
|
+
"pluginAlias": "@memberjunction/cli",
|
|
7327
|
+
"pluginName": "@memberjunction/cli",
|
|
7328
|
+
"pluginType": "core",
|
|
7329
|
+
"strict": true,
|
|
7330
|
+
"enableJsonFlag": false,
|
|
7331
|
+
"isESM": true,
|
|
7332
|
+
"relativePath": [
|
|
7333
|
+
"dist",
|
|
7334
|
+
"commands",
|
|
7335
|
+
"rubric",
|
|
7336
|
+
"diff.js"
|
|
7337
|
+
]
|
|
7338
|
+
},
|
|
7339
|
+
"rubric:evaluate": {
|
|
7340
|
+
"aliases": [],
|
|
7341
|
+
"args": {},
|
|
7342
|
+
"description": "Evaluate one record against a rubric. Does not publish.",
|
|
7343
|
+
"flags": {
|
|
7344
|
+
"rubric": {
|
|
7345
|
+
"description": "Rubric name or id, optionally @version",
|
|
7346
|
+
"name": "rubric",
|
|
7347
|
+
"required": true,
|
|
7348
|
+
"hasDynamicHelp": false,
|
|
7349
|
+
"multiple": false,
|
|
7350
|
+
"type": "option"
|
|
7351
|
+
},
|
|
7352
|
+
"entity": {
|
|
7353
|
+
"description": "Subject entity name",
|
|
7354
|
+
"name": "entity",
|
|
7355
|
+
"required": true,
|
|
7356
|
+
"hasDynamicHelp": false,
|
|
7357
|
+
"multiple": false,
|
|
7358
|
+
"type": "option"
|
|
7359
|
+
},
|
|
7360
|
+
"record": {
|
|
7361
|
+
"description": "Subject record id",
|
|
7362
|
+
"name": "record",
|
|
7363
|
+
"required": true,
|
|
7364
|
+
"hasDynamicHelp": false,
|
|
7365
|
+
"multiple": false,
|
|
7366
|
+
"type": "option"
|
|
7367
|
+
},
|
|
7368
|
+
"evaluator": {
|
|
7369
|
+
"description": "A registered evaluator: LLM, Decision, Agent, Deterministic, or a custom one",
|
|
7370
|
+
"name": "evaluator",
|
|
7371
|
+
"default": "LLM",
|
|
7372
|
+
"hasDynamicHelp": false,
|
|
7373
|
+
"multiple": false,
|
|
7374
|
+
"type": "option"
|
|
7375
|
+
},
|
|
7376
|
+
"prompt": {
|
|
7377
|
+
"description": "LLM: the judge prompt composed into Rubric Evaluator (default Rubric Evaluator - Default Judge). Decision: the decision prompt (default Default Decision)",
|
|
7378
|
+
"name": "prompt",
|
|
7379
|
+
"hasDynamicHelp": false,
|
|
7380
|
+
"multiple": false,
|
|
7381
|
+
"type": "option"
|
|
7382
|
+
},
|
|
7383
|
+
"model": {
|
|
7384
|
+
"description": "AI Model ID to pin. Otherwise the prompt's bindings choose",
|
|
7385
|
+
"name": "model",
|
|
7386
|
+
"hasDynamicHelp": false,
|
|
7387
|
+
"multiple": false,
|
|
7388
|
+
"type": "option"
|
|
7389
|
+
},
|
|
7390
|
+
"mode": {
|
|
7391
|
+
"description": "LLM only: SinglePass or PerCriterion",
|
|
7392
|
+
"name": "mode",
|
|
7393
|
+
"hasDynamicHelp": false,
|
|
7394
|
+
"multiple": false,
|
|
7395
|
+
"options": [
|
|
7396
|
+
"SinglePass",
|
|
7397
|
+
"PerCriterion"
|
|
7398
|
+
],
|
|
7399
|
+
"type": "option"
|
|
7400
|
+
}
|
|
7401
|
+
},
|
|
7402
|
+
"hasDynamicHelp": false,
|
|
7403
|
+
"hiddenAliases": [],
|
|
7404
|
+
"id": "rubric:evaluate",
|
|
7405
|
+
"pluginAlias": "@memberjunction/cli",
|
|
7406
|
+
"pluginName": "@memberjunction/cli",
|
|
7407
|
+
"pluginType": "core",
|
|
7408
|
+
"strict": true,
|
|
7409
|
+
"enableJsonFlag": false,
|
|
7410
|
+
"isESM": true,
|
|
7411
|
+
"relativePath": [
|
|
7412
|
+
"dist",
|
|
7413
|
+
"commands",
|
|
7414
|
+
"rubric",
|
|
7415
|
+
"evaluate.js"
|
|
7416
|
+
]
|
|
7417
|
+
},
|
|
7418
|
+
"rubric": {
|
|
7419
|
+
"aliases": [],
|
|
7420
|
+
"args": {},
|
|
7421
|
+
"description": "List, show, diff, validate, and evaluate rubrics.",
|
|
7422
|
+
"flags": {},
|
|
7423
|
+
"hasDynamicHelp": false,
|
|
7424
|
+
"hiddenAliases": [],
|
|
7425
|
+
"id": "rubric",
|
|
7426
|
+
"pluginAlias": "@memberjunction/cli",
|
|
7427
|
+
"pluginName": "@memberjunction/cli",
|
|
7428
|
+
"pluginType": "core",
|
|
7429
|
+
"strict": true,
|
|
7430
|
+
"enableJsonFlag": false,
|
|
7431
|
+
"isESM": true,
|
|
7432
|
+
"relativePath": [
|
|
7433
|
+
"dist",
|
|
7434
|
+
"commands",
|
|
7435
|
+
"rubric",
|
|
7436
|
+
"index.js"
|
|
7437
|
+
]
|
|
7438
|
+
},
|
|
7439
|
+
"rubric:list": {
|
|
7440
|
+
"aliases": [],
|
|
7441
|
+
"args": {},
|
|
7442
|
+
"description": "List rubrics.",
|
|
7443
|
+
"flags": {},
|
|
7444
|
+
"hasDynamicHelp": false,
|
|
7445
|
+
"hiddenAliases": [],
|
|
7446
|
+
"id": "rubric:list",
|
|
7447
|
+
"pluginAlias": "@memberjunction/cli",
|
|
7448
|
+
"pluginName": "@memberjunction/cli",
|
|
7449
|
+
"pluginType": "core",
|
|
7450
|
+
"strict": true,
|
|
7451
|
+
"enableJsonFlag": false,
|
|
7452
|
+
"isESM": true,
|
|
7453
|
+
"relativePath": [
|
|
7454
|
+
"dist",
|
|
7455
|
+
"commands",
|
|
7456
|
+
"rubric",
|
|
7457
|
+
"list.js"
|
|
7458
|
+
]
|
|
7459
|
+
},
|
|
7460
|
+
"rubric:show": {
|
|
7461
|
+
"aliases": [],
|
|
7462
|
+
"args": {
|
|
7463
|
+
"rubric": {
|
|
7464
|
+
"description": "Rubric name or id, optionally @version",
|
|
7465
|
+
"name": "rubric",
|
|
7466
|
+
"required": true
|
|
7467
|
+
}
|
|
7468
|
+
},
|
|
7469
|
+
"description": "Show a rubric version and its criteria.",
|
|
7470
|
+
"flags": {},
|
|
7471
|
+
"hasDynamicHelp": false,
|
|
7472
|
+
"hiddenAliases": [],
|
|
7473
|
+
"id": "rubric:show",
|
|
7474
|
+
"pluginAlias": "@memberjunction/cli",
|
|
7475
|
+
"pluginName": "@memberjunction/cli",
|
|
7476
|
+
"pluginType": "core",
|
|
7477
|
+
"strict": true,
|
|
7478
|
+
"enableJsonFlag": false,
|
|
7479
|
+
"isESM": true,
|
|
7480
|
+
"relativePath": [
|
|
7481
|
+
"dist",
|
|
7482
|
+
"commands",
|
|
7483
|
+
"rubric",
|
|
7484
|
+
"show.js"
|
|
7485
|
+
]
|
|
7486
|
+
},
|
|
7487
|
+
"rubric:validate": {
|
|
7488
|
+
"aliases": [],
|
|
7489
|
+
"args": {
|
|
7490
|
+
"file": {
|
|
7491
|
+
"description": "JSON snapshot file",
|
|
7492
|
+
"name": "file",
|
|
7493
|
+
"required": true
|
|
7494
|
+
}
|
|
7495
|
+
},
|
|
7496
|
+
"description": "Check a rubric snapshot file for duplicate keys, gates, weights, and scales.",
|
|
7497
|
+
"flags": {},
|
|
7498
|
+
"hasDynamicHelp": false,
|
|
7499
|
+
"hiddenAliases": [],
|
|
7500
|
+
"id": "rubric:validate",
|
|
7501
|
+
"pluginAlias": "@memberjunction/cli",
|
|
7502
|
+
"pluginName": "@memberjunction/cli",
|
|
7503
|
+
"pluginType": "core",
|
|
7504
|
+
"strict": true,
|
|
7505
|
+
"enableJsonFlag": false,
|
|
7506
|
+
"isESM": true,
|
|
7507
|
+
"relativePath": [
|
|
7508
|
+
"dist",
|
|
7509
|
+
"commands",
|
|
7510
|
+
"rubric",
|
|
7511
|
+
"validate.js"
|
|
7512
|
+
]
|
|
7513
|
+
},
|
|
6628
7514
|
"dev:workspace:clean": {
|
|
6629
7515
|
"aliases": [],
|
|
6630
7516
|
"args": {},
|
|
@@ -7279,5 +8165,5 @@
|
|
|
7279
8165
|
]
|
|
7280
8166
|
}
|
|
7281
8167
|
},
|
|
7282
|
-
"version": "6.2.0-edge.
|
|
8168
|
+
"version": "6.2.0-edge.4"
|
|
7283
8169
|
}
|