@memberjunction/cli 6.2.2 → 6.3.0-edge.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/dist/commands/app/check-updates.d.ts +2 -2
  2. package/dist/commands/app/check-updates.d.ts.map +1 -1
  3. package/dist/commands/app/check-updates.js +8 -5
  4. package/dist/commands/app/check-updates.js.map +1 -1
  5. package/dist/commands/app/disable.d.ts.map +1 -1
  6. package/dist/commands/app/disable.js +7 -1
  7. package/dist/commands/app/disable.js.map +1 -1
  8. package/dist/commands/app/enable.d.ts.map +1 -1
  9. package/dist/commands/app/enable.js +7 -1
  10. package/dist/commands/app/enable.js.map +1 -1
  11. package/dist/commands/app/install.d.ts +2 -2
  12. package/dist/commands/app/install.d.ts.map +1 -1
  13. package/dist/commands/app/install.js +29 -18
  14. package/dist/commands/app/install.js.map +1 -1
  15. package/dist/commands/app/remove.d.ts.map +1 -1
  16. package/dist/commands/app/remove.js +10 -2
  17. package/dist/commands/app/remove.js.map +1 -1
  18. package/dist/commands/app/upgrade.d.ts +1 -0
  19. package/dist/commands/app/upgrade.d.ts.map +1 -1
  20. package/dist/commands/app/upgrade.js +6 -0
  21. package/dist/commands/app/upgrade.js.map +1 -1
  22. package/dist/commands/codegen/index.d.ts +1 -0
  23. package/dist/commands/codegen/index.d.ts.map +1 -1
  24. package/dist/commands/dev/workspace/clean.d.ts +4 -1
  25. package/dist/commands/dev/workspace/clean.d.ts.map +1 -1
  26. package/dist/commands/dev/workspace/clean.js +21 -4
  27. package/dist/commands/dev/workspace/clean.js.map +1 -1
  28. package/dist/commands/dev/workspace/doctor.js +1 -1
  29. package/dist/commands/dev/workspace/doctor.js.map +1 -1
  30. package/dist/commands/dev/workspace/index.d.ts +5 -0
  31. package/dist/commands/dev/workspace/index.d.ts.map +1 -1
  32. package/dist/commands/dev/workspace/index.js +26 -3
  33. package/dist/commands/dev/workspace/index.js.map +1 -1
  34. package/dist/commands/doctor/value-lists.d.ts +18 -0
  35. package/dist/commands/doctor/value-lists.d.ts.map +1 -0
  36. package/dist/commands/doctor/value-lists.js +83 -0
  37. package/dist/commands/doctor/value-lists.js.map +1 -0
  38. package/dist/commands/migrate/convert.d.ts +23 -1
  39. package/dist/commands/migrate/convert.d.ts.map +1 -1
  40. package/dist/commands/migrate/convert.js +47 -11
  41. package/dist/commands/migrate/convert.js.map +1 -1
  42. package/dist/commands/migrate/index.d.ts +6 -0
  43. package/dist/commands/migrate/index.d.ts.map +1 -1
  44. package/dist/commands/migrate/index.js +30 -4
  45. package/dist/commands/migrate/index.js.map +1 -1
  46. package/dist/commands/migrate/rebake.d.ts.map +1 -1
  47. package/dist/commands/migrate/rebake.js +3 -8
  48. package/dist/commands/migrate/rebake.js.map +1 -1
  49. package/dist/commands/queue/index.d.ts.map +1 -1
  50. package/dist/commands/queue/index.js +1 -0
  51. package/dist/commands/queue/index.js.map +1 -1
  52. package/dist/commands/queue/sweep.d.ts +13 -0
  53. package/dist/commands/queue/sweep.d.ts.map +1 -0
  54. package/dist/commands/queue/sweep.js +44 -0
  55. package/dist/commands/queue/sweep.js.map +1 -0
  56. package/dist/commands/queue/work.d.ts +21 -0
  57. package/dist/commands/queue/work.d.ts.map +1 -1
  58. package/dist/commands/queue/work.js +23 -3
  59. package/dist/commands/queue/work.js.map +1 -1
  60. package/dist/init-templates/citizen-builder/.env.example +6 -0
  61. package/dist/init-templates/citizen-builder/README.md +5 -5
  62. package/dist/init-templates/citizen-builder/docker-compose.yml +10 -0
  63. package/dist/init-templates/citizen-builder/scripts/docker-entrypoint.sh +53 -32
  64. package/dist/init-templates/citizen-builder/scripts/query-run-history.sh +4 -4
  65. package/dist/init-templates/citizen-builder/scripts/sync-metadata.sh +1 -1
  66. package/dist/lib/app-manifest-schema.d.ts +17 -0
  67. package/dist/lib/app-manifest-schema.d.ts.map +1 -0
  68. package/dist/lib/app-manifest-schema.js +59 -0
  69. package/dist/lib/app-manifest-schema.js.map +1 -0
  70. package/dist/lib/dev-workspace/build.d.ts +4 -3
  71. package/dist/lib/dev-workspace/build.d.ts.map +1 -1
  72. package/dist/lib/dev-workspace/build.js +7 -2
  73. package/dist/lib/dev-workspace/build.js.map +1 -1
  74. package/dist/lib/dev-workspace/clean.d.ts.map +1 -1
  75. package/dist/lib/dev-workspace/clean.js +19 -3
  76. package/dist/lib/dev-workspace/clean.js.map +1 -1
  77. package/dist/lib/dev-workspace/doctor.d.ts.map +1 -1
  78. package/dist/lib/dev-workspace/doctor.js +24 -0
  79. package/dist/lib/dev-workspace/doctor.js.map +1 -1
  80. package/dist/lib/dev-workspace/prebundle.d.ts +88 -0
  81. package/dist/lib/dev-workspace/prebundle.d.ts.map +1 -0
  82. package/dist/lib/dev-workspace/prebundle.js +347 -0
  83. package/dist/lib/dev-workspace/prebundle.js.map +1 -0
  84. package/dist/lib/dev-workspace/status.d.ts.map +1 -1
  85. package/dist/lib/dev-workspace/status.js +4 -0
  86. package/dist/lib/dev-workspace/status.js.map +1 -1
  87. package/dist/lib/dev-workspace/types.d.ts +17 -0
  88. package/dist/lib/dev-workspace/types.d.ts.map +1 -1
  89. package/dist/lib/value-list-scan.d.ts +125 -0
  90. package/dist/lib/value-list-scan.d.ts.map +1 -0
  91. package/dist/lib/value-list-scan.js +260 -0
  92. package/dist/lib/value-list-scan.js.map +1 -0
  93. package/dist/tsconfig.tsbuildinfo +1 -0
  94. package/dist/utils/app-source-lookups.d.ts +19 -0
  95. package/dist/utils/app-source-lookups.d.ts.map +1 -0
  96. package/dist/utils/app-source-lookups.js +19 -0
  97. package/dist/utils/app-source-lookups.js.map +1 -0
  98. package/dist/utils/open-app-context.d.ts +3 -8
  99. package/dist/utils/open-app-context.d.ts.map +1 -1
  100. package/dist/utils/open-app-context.js +13 -16
  101. package/dist/utils/open-app-context.js.map +1 -1
  102. package/dist/utils/update-check.d.ts +8 -1
  103. package/dist/utils/update-check.d.ts.map +1 -1
  104. package/dist/utils/update-check.js +6 -4
  105. package/dist/utils/update-check.js.map +1 -1
  106. package/oclif.manifest.json +971 -842
  107. package/package.json +28 -28
  108. package/regression-compose/docker-compose.bacpac-standalone.yml +4 -0
@@ -157,6 +157,101 @@
157
157
  "usage.js"
158
158
  ]
159
159
  },
160
+ "artifacts:reclassify": {
161
+ "aliases": [],
162
+ "args": {},
163
+ "description": "Upgrade-recovery utility for v5.35 artifact unification. Re-evaluates rows whose TypeID is the deleted JSON fallback but whose actual content does not parse as JSON. Normally a no-op: the v5.35 backfill migration handles this automatically. This command is only relevant when the migration ran BEFORE the artifact-type metadata (Generic Text / Generic Binary) was pushed via `mj sync push`, in which case the migration prints a notice telling you to run this. Reports \"no candidates\" once everything is reconciled. Dry-run by default; --apply writes through Record Changes.",
164
+ "examples": [
165
+ "<%= config.bin %> <%= command.id %>",
166
+ "<%= config.bin %> <%= command.id %> --apply --limit 50"
167
+ ],
168
+ "flags": {
169
+ "conversation-id": {
170
+ "description": "Scope to artifacts attached to the given conversation.",
171
+ "name": "conversation-id",
172
+ "hasDynamicHelp": false,
173
+ "multiple": false,
174
+ "type": "option"
175
+ },
176
+ "since": {
177
+ "description": "Scope to artifacts created on/after this ISO date.",
178
+ "name": "since",
179
+ "hasDynamicHelp": false,
180
+ "multiple": false,
181
+ "type": "option"
182
+ },
183
+ "limit": {
184
+ "description": "Maximum number of rows to inspect.",
185
+ "name": "limit",
186
+ "default": 100,
187
+ "hasDynamicHelp": false,
188
+ "multiple": false,
189
+ "type": "option"
190
+ },
191
+ "apply": {
192
+ "description": "Write changes. Without this flag, this command only reports what it would do.",
193
+ "name": "apply",
194
+ "allowNo": false,
195
+ "type": "boolean"
196
+ },
197
+ "verbose": {
198
+ "char": "v",
199
+ "description": "Print every candidate row, not just the summary.",
200
+ "name": "verbose",
201
+ "allowNo": false,
202
+ "type": "boolean"
203
+ }
204
+ },
205
+ "hasDynamicHelp": false,
206
+ "hiddenAliases": [],
207
+ "id": "artifacts:reclassify",
208
+ "pluginAlias": "@memberjunction/cli",
209
+ "pluginName": "@memberjunction/cli",
210
+ "pluginType": "core",
211
+ "strict": true,
212
+ "enableJsonFlag": false,
213
+ "isESM": true,
214
+ "relativePath": [
215
+ "dist",
216
+ "commands",
217
+ "artifacts",
218
+ "reclassify.js"
219
+ ]
220
+ },
221
+ "artifacts:usage": {
222
+ "aliases": [],
223
+ "args": {},
224
+ "description": "Show usage, flags, examples, and runtime hints for every `mj artifacts` command.",
225
+ "flags": {
226
+ "format": {
227
+ "description": "Output format. Defaults to text on a terminal and json when stdout is piped.",
228
+ "name": "format",
229
+ "hasDynamicHelp": false,
230
+ "multiple": false,
231
+ "options": [
232
+ "text",
233
+ "json",
234
+ "md"
235
+ ],
236
+ "type": "option"
237
+ }
238
+ },
239
+ "hasDynamicHelp": false,
240
+ "hiddenAliases": [],
241
+ "id": "artifacts:usage",
242
+ "pluginAlias": "@memberjunction/cli",
243
+ "pluginName": "@memberjunction/cli",
244
+ "pluginType": "core",
245
+ "strict": true,
246
+ "enableJsonFlag": false,
247
+ "isESM": true,
248
+ "relativePath": [
249
+ "dist",
250
+ "commands",
251
+ "artifacts",
252
+ "usage.js"
253
+ ]
254
+ },
160
255
  "app:check-updates": {
161
256
  "aliases": [],
162
257
  "args": {},
@@ -275,19 +370,20 @@
275
370
  "aliases": [],
276
371
  "args": {
277
372
  "source": {
278
- "description": "GitHub repository URL of the Open App. For a multi-app repo, append the in-repo path to the app (e.g. https://github.com/MemberJunction/Integrations/CRM/HubSpot).",
373
+ "description": "GitHub repository URL of the Open App, or a folder in this repository that has an mj-app.json (e.g. ./openapps/analytics). For a multi-app repo, append the in-repo path to the app (e.g. https://github.com/MemberJunction/Integrations/CRM/HubSpot).",
279
374
  "name": "source",
280
375
  "required": true
281
376
  }
282
377
  },
283
- "description": "Install an MJ Open App from a GitHub repository.\n\nPrivate repositories need a GitHub credential. GitHub returns 404 (not 403) for a repo it will not show you, so without one an install fails as though the app or its version did not exist. Set GITHUB_TOKEN in the environment, or add the repo to openApps.github.tokens (or set openApps.github.token) in mj.config.cjs.",
378
+ "description": "Install an MJ Open App from a GitHub repository or a folder in this repository.\n\nA folder path (for example ./openapps/analytics) installs the app from that folder. The folder must be inside the repository root, its version is the version in its mj-app.json, and its npm packages must be projects in this pnpm or yarn workspace (they are added as workspace:*).\n\nPrivate repositories need a GitHub credential. GitHub returns 404 (not 403) for a repo it will not show you, so without one an install fails as though the app or its version did not exist. Set GITHUB_TOKEN in the environment, or add the repo to openApps.github.tokens (or set openApps.github.token) in mj.config.cjs.",
284
379
  "examples": [
285
380
  "<%= config.bin %> app install https://github.com/acme/mj-crm",
286
381
  "<%= config.bin %> app install https://github.com/acme/mj-crm --version 1.2.0",
287
382
  "<%= config.bin %> app install https://github.com/acme/mj-crm --verbose",
288
383
  "<%= config.bin %> app install https://github.com/MemberJunction/Integrations/CRM/HubSpot",
289
384
  "<%= config.bin %> app install https://github.com/acme/mj-crm --non-interactive",
290
- "GITHUB_TOKEN=$(gh auth token) <%= config.bin %> app install https://github.com/acme/private-app"
385
+ "GITHUB_TOKEN=$(gh auth token) <%= config.bin %> app install https://github.com/acme/private-app",
386
+ "<%= config.bin %> app install ./openapps/analytics"
291
387
  ],
292
388
  "flags": {
293
389
  "version": {
@@ -374,7 +470,7 @@
374
470
  "required": true
375
471
  }
376
472
  },
377
- "description": "Remove an installed MJ Open App",
473
+ "description": "Remove an installed MJ Open App.\n\nAn app installed from a folder in this repository is removed with the migrations and teardown scripts in that folder, so the folder must be at the installed version, also with --keep-data. If the folder was deleted or changed, restore it from git first (for example: git checkout <commit> -- openapps/<name>), then run remove again. Nothing is changed until the folder is at the installed version.",
378
474
  "examples": [
379
475
  "<%= config.bin %> app remove acme-crm",
380
476
  "<%= config.bin %> app remove acme-crm --keep-data",
@@ -442,7 +538,8 @@
442
538
  "description": "Upgrade an installed MJ Open App to a newer version",
443
539
  "examples": [
444
540
  "<%= config.bin %> app upgrade acme-crm",
445
- "<%= config.bin %> app upgrade acme-crm --version 1.3.0"
541
+ "<%= config.bin %> app upgrade acme-crm --version 1.3.0",
542
+ "<%= config.bin %> app upgrade analytics --reapply"
446
543
  ],
447
544
  "flags": {
448
545
  "version": {
@@ -452,6 +549,12 @@
452
549
  "multiple": false,
453
550
  "type": "option"
454
551
  },
552
+ "reapply": {
553
+ "description": "Run the upgrade even when the app is already at the target version. Applies new migrations, packages, config and hooks from a local app folder without a version bump. A lower version is still refused.",
554
+ "name": "reapply",
555
+ "allowNo": false,
556
+ "type": "boolean"
557
+ },
455
558
  "verbose": {
456
559
  "char": "v",
457
560
  "description": "Show detailed output",
@@ -522,101 +625,6 @@
522
625
  "usage.js"
523
626
  ]
524
627
  },
525
- "artifacts:reclassify": {
526
- "aliases": [],
527
- "args": {},
528
- "description": "Upgrade-recovery utility for v5.35 artifact unification. Re-evaluates rows whose TypeID is the deleted JSON fallback but whose actual content does not parse as JSON. Normally a no-op: the v5.35 backfill migration handles this automatically. This command is only relevant when the migration ran BEFORE the artifact-type metadata (Generic Text / Generic Binary) was pushed via `mj sync push`, in which case the migration prints a notice telling you to run this. Reports \"no candidates\" once everything is reconciled. Dry-run by default; --apply writes through Record Changes.",
529
- "examples": [
530
- "<%= config.bin %> <%= command.id %>",
531
- "<%= config.bin %> <%= command.id %> --apply --limit 50"
532
- ],
533
- "flags": {
534
- "conversation-id": {
535
- "description": "Scope to artifacts attached to the given conversation.",
536
- "name": "conversation-id",
537
- "hasDynamicHelp": false,
538
- "multiple": false,
539
- "type": "option"
540
- },
541
- "since": {
542
- "description": "Scope to artifacts created on/after this ISO date.",
543
- "name": "since",
544
- "hasDynamicHelp": false,
545
- "multiple": false,
546
- "type": "option"
547
- },
548
- "limit": {
549
- "description": "Maximum number of rows to inspect.",
550
- "name": "limit",
551
- "default": 100,
552
- "hasDynamicHelp": false,
553
- "multiple": false,
554
- "type": "option"
555
- },
556
- "apply": {
557
- "description": "Write changes. Without this flag, this command only reports what it would do.",
558
- "name": "apply",
559
- "allowNo": false,
560
- "type": "boolean"
561
- },
562
- "verbose": {
563
- "char": "v",
564
- "description": "Print every candidate row, not just the summary.",
565
- "name": "verbose",
566
- "allowNo": false,
567
- "type": "boolean"
568
- }
569
- },
570
- "hasDynamicHelp": false,
571
- "hiddenAliases": [],
572
- "id": "artifacts:reclassify",
573
- "pluginAlias": "@memberjunction/cli",
574
- "pluginName": "@memberjunction/cli",
575
- "pluginType": "core",
576
- "strict": true,
577
- "enableJsonFlag": false,
578
- "isESM": true,
579
- "relativePath": [
580
- "dist",
581
- "commands",
582
- "artifacts",
583
- "reclassify.js"
584
- ]
585
- },
586
- "artifacts:usage": {
587
- "aliases": [],
588
- "args": {},
589
- "description": "Show usage, flags, examples, and runtime hints for every `mj artifacts` command.",
590
- "flags": {
591
- "format": {
592
- "description": "Output format. Defaults to text on a terminal and json when stdout is piped.",
593
- "name": "format",
594
- "hasDynamicHelp": false,
595
- "multiple": false,
596
- "options": [
597
- "text",
598
- "json",
599
- "md"
600
- ],
601
- "type": "option"
602
- }
603
- },
604
- "hasDynamicHelp": false,
605
- "hiddenAliases": [],
606
- "id": "artifacts:usage",
607
- "pluginAlias": "@memberjunction/cli",
608
- "pluginName": "@memberjunction/cli",
609
- "pluginType": "core",
610
- "strict": true,
611
- "enableJsonFlag": false,
612
- "isESM": true,
613
- "relativePath": [
614
- "dist",
615
- "commands",
616
- "artifacts",
617
- "usage.js"
618
- ]
619
- },
620
628
  "baseline:build": {
621
629
  "aliases": [],
622
630
  "args": {},
@@ -1606,7 +1614,7 @@
1606
1614
  "codegen": {
1607
1615
  "aliases": [],
1608
1616
  "args": {},
1609
- "description": "Run the full MemberJunction code generation pipeline.\n\nAnalyzes your database schema, updates MemberJunction metadata, and generates\nsynchronized code across the stack: SQL objects, TypeScript entities, Angular\nforms, GraphQL resolvers, Action subclasses, and DB schema JSON.\n\nUse --skipdb to regenerate code from existing metadata only; --skipfiles to run\ndatabase-side operations only. --force-advanced-gen re-runs the LLM-driven\nadvanced generation for ALL entities (bypasses changed-entity scoping).",
1617
+ "description": "Run the full MemberJunction code generation pipeline.\n\nAnalyzes your database schema, updates MemberJunction metadata, and generates\nsynchronized code across the stack: SQL objects, TypeScript entities, Angular\nforms, GraphQL resolvers, Action subclasses, and DB schema JSON.\n\nUse --skipdb to regenerate code from existing metadata only; --skipfiles to run\ndatabase-side operations only. --force-advanced-gen re-runs the LLM-driven\nadvanced generation for ALL entities (bypasses changed-entity scoping).\n--all-schemas re-emits the generated files of every schema, not only schemas\nwith a new or modified entity.",
1610
1618
  "flags": {
1611
1619
  "format": {
1612
1620
  "description": "Output format: text (human), json (machine-readable), md (Markdown-fenced). Defaults to text on a terminal and json when stdout is piped.",
@@ -1679,6 +1687,12 @@
1679
1687
  "multiple": false,
1680
1688
  "type": "option"
1681
1689
  },
1690
+ "all-schemas": {
1691
+ "description": "Re-emit generated files for every schema, not only schemas with a new or modified entity. Files are still written only when their content changes. Same as fileEmit.dirtySchemaOnly: false in mj.config.cjs, for this run.",
1692
+ "name": "all-schemas",
1693
+ "allowNo": false,
1694
+ "type": "boolean"
1695
+ },
1682
1696
  "skip-commands": {
1683
1697
  "description": "Skip running BEFORE and AFTER shell commands configured in mj.config. Can also be set with MJ_CODEGEN_SKIP_COMMANDS=1.",
1684
1698
  "name": "skip-commands",
@@ -1712,6 +1726,10 @@
1712
1726
  {
1713
1727
  "command": "<%= config.bin %> <%= command.id %> --format=json",
1714
1728
  "description": "Emit a machine-readable result for an agent"
1729
+ },
1730
+ {
1731
+ "command": "<%= config.bin %> <%= command.id %> --all-schemas",
1732
+ "description": "Re-emit generated files for every schema (e.g. after rebuilding a database from migrations)"
1715
1733
  }
1716
1734
  ],
1717
1735
  "Usage": {
@@ -1740,6 +1758,11 @@
1740
1758
  "type": "boolean",
1741
1759
  "description": "Disable AI-driven advanced generation (same as MJ_CODEGEN_NO_AI=1)"
1742
1760
  },
1761
+ {
1762
+ "name": "--all-schemas",
1763
+ "type": "boolean",
1764
+ "description": "Re-emit generated files for every schema (same as fileEmit.dirtySchemaOnly: false)"
1765
+ },
1743
1766
  {
1744
1767
  "name": "--skip-commands",
1745
1768
  "type": "boolean",
@@ -1764,6 +1787,7 @@
1764
1787
  "examples": [
1765
1788
  "mj codegen",
1766
1789
  "mj codegen --skipdb",
1790
+ "mj codegen --all-schemas",
1767
1791
  "mj codegen --skip-commands",
1768
1792
  "mj codegen --format=json"
1769
1793
  ],
@@ -2968,6 +2992,71 @@
2968
2992
  "usage.js"
2969
2993
  ]
2970
2994
  },
2995
+ "doctor:value-lists": {
2996
+ "aliases": [],
2997
+ "args": {},
2998
+ "description": "Find rows whose value-list (ValueListType = List) field holds a value outside its list. Such rows fail validation on their next save. Read-only; --fix sets the named fields to ListOrUserEntry through the entity layer (logged in Record Changes).",
2999
+ "examples": [
3000
+ "<%= config.bin %> <%= command.id %>",
3001
+ "<%= config.bin %> <%= command.id %> --entity \"MJ: AI Agents\"",
3002
+ "<%= config.bin %> <%= command.id %> --format json --fail-on-findings",
3003
+ "<%= config.bin %> <%= command.id %> --fix \"Projects.Phase,Projects.Status\""
3004
+ ],
3005
+ "flags": {
3006
+ "entity": {
3007
+ "description": "Only scan this entity (repeatable)",
3008
+ "name": "entity",
3009
+ "hasDynamicHelp": false,
3010
+ "multiple": true,
3011
+ "type": "option"
3012
+ },
3013
+ "format": {
3014
+ "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.",
3015
+ "name": "format",
3016
+ "hasDynamicHelp": false,
3017
+ "multiple": false,
3018
+ "options": [
3019
+ "text",
3020
+ "json",
3021
+ "md",
3022
+ "human",
3023
+ "console",
3024
+ "markdown",
3025
+ "compact",
3026
+ "table"
3027
+ ],
3028
+ "type": "option"
3029
+ },
3030
+ "fail-on-findings": {
3031
+ "description": "Exit 1 when any field holds values outside its list (for CI)",
3032
+ "name": "fail-on-findings",
3033
+ "allowNo": false,
3034
+ "type": "boolean"
3035
+ },
3036
+ "fix": {
3037
+ "description": "Set these fields' ValueListType to ListOrUserEntry: comma-separated \"Entity.Field\" names (repeatable). Nothing changes without names.",
3038
+ "name": "fix",
3039
+ "hasDynamicHelp": false,
3040
+ "multiple": true,
3041
+ "type": "option"
3042
+ }
3043
+ },
3044
+ "hasDynamicHelp": false,
3045
+ "hiddenAliases": [],
3046
+ "id": "doctor:value-lists",
3047
+ "pluginAlias": "@memberjunction/cli",
3048
+ "pluginName": "@memberjunction/cli",
3049
+ "pluginType": "core",
3050
+ "strict": true,
3051
+ "enableJsonFlag": false,
3052
+ "isESM": true,
3053
+ "relativePath": [
3054
+ "dist",
3055
+ "commands",
3056
+ "doctor",
3057
+ "value-lists.js"
3058
+ ]
3059
+ },
2971
3060
  "install:claude": {
2972
3061
  "aliases": [],
2973
3062
  "args": {},
@@ -3434,7 +3523,7 @@
3434
3523
  },
3435
3524
  "schema": {
3436
3525
  "char": "s",
3437
- "description": "Target schema (overrides coreSchema from config)",
3526
+ "description": "Target schema (overrides coreSchema from config). When omitted for local migrations, the schema declared by an mj-app.json in --dir (or its parents) or the current directory is used",
3438
3527
  "name": "schema",
3439
3528
  "hasDynamicHelp": false,
3440
3529
  "multiple": false,
@@ -4036,34 +4125,30 @@
4036
4125
  "validate.js"
4037
4126
  ]
4038
4127
  },
4039
- "queue:backlog": {
4128
+ "rubric:diff": {
4040
4129
  "aliases": [],
4041
- "args": {},
4042
- "description": "Show the autoscaler metric for one subscription: claimable pending plus in-flight deliveries",
4043
- "examples": [
4044
- "<%= config.bin %> <%= command.id %> --subscription venue-import",
4045
- "<%= config.bin %> <%= command.id %> --subscription venue-import --json"
4046
- ],
4047
- "flags": {
4048
- "subscription": {
4049
- "char": "s",
4050
- "description": "Subscription name",
4051
- "name": "subscription",
4052
- "required": true,
4053
- "hasDynamicHelp": false,
4054
- "multiple": false,
4055
- "type": "option"
4130
+ "args": {
4131
+ "rubric": {
4132
+ "description": "Rubric name or id",
4133
+ "name": "rubric",
4134
+ "required": true
4056
4135
  },
4057
- "json": {
4058
- "description": "Print JSON instead of text",
4059
- "name": "json",
4060
- "allowNo": false,
4061
- "type": "boolean"
4136
+ "from": {
4137
+ "description": "Version 1.2.0 or id",
4138
+ "name": "from",
4139
+ "required": true
4140
+ },
4141
+ "to": {
4142
+ "description": "Version 1.2.0 or id",
4143
+ "name": "to",
4144
+ "required": true
4062
4145
  }
4063
4146
  },
4147
+ "description": "Print the version bump between two rubric versions.",
4148
+ "flags": {},
4064
4149
  "hasDynamicHelp": false,
4065
4150
  "hiddenAliases": [],
4066
- "id": "queue:backlog",
4151
+ "id": "rubric:diff",
4067
4152
  "pluginAlias": "@memberjunction/cli",
4068
4153
  "pluginName": "@memberjunction/cli",
4069
4154
  "pluginType": "core",
@@ -4073,52 +4158,76 @@
4073
4158
  "relativePath": [
4074
4159
  "dist",
4075
4160
  "commands",
4076
- "queue",
4077
- "backlog.js"
4161
+ "rubric",
4162
+ "diff.js"
4078
4163
  ]
4079
4164
  },
4080
- "queue:dead-letters": {
4165
+ "rubric:evaluate": {
4081
4166
  "aliases": [],
4082
4167
  "args": {},
4083
- "description": "List a work-queue subscription's dead-lettered deliveries",
4084
- "examples": [
4085
- "<%= config.bin %> <%= command.id %> --subscription integration.apply --page-size 20"
4086
- ],
4168
+ "description": "Evaluate one record against a rubric. Does not publish.",
4087
4169
  "flags": {
4088
- "subscription": {
4089
- "char": "s",
4090
- "description": "Subscription name",
4091
- "name": "subscription",
4170
+ "rubric": {
4171
+ "description": "Rubric name or id, optionally @version",
4172
+ "name": "rubric",
4092
4173
  "required": true,
4093
4174
  "hasDynamicHelp": false,
4094
4175
  "multiple": false,
4095
4176
  "type": "option"
4096
4177
  },
4097
- "cursor": {
4098
- "description": "nextCursor from a previous page",
4099
- "name": "cursor",
4178
+ "entity": {
4179
+ "description": "Subject entity name",
4180
+ "name": "entity",
4181
+ "required": true,
4100
4182
  "hasDynamicHelp": false,
4101
4183
  "multiple": false,
4102
4184
  "type": "option"
4103
4185
  },
4104
- "page-size": {
4105
- "description": "Items per page (1–500)",
4106
- "name": "page-size",
4107
- "default": 50,
4186
+ "record": {
4187
+ "description": "Subject record id",
4188
+ "name": "record",
4189
+ "required": true,
4108
4190
  "hasDynamicHelp": false,
4109
4191
  "multiple": false,
4110
4192
  "type": "option"
4111
4193
  },
4112
- "json": {
4113
- "description": "Print JSON instead of a table",
4114
- "name": "json",
4115
- "allowNo": false,
4116
- "type": "boolean"
4194
+ "evaluator": {
4195
+ "description": "A registered evaluator: LLM, Decision, Agent, Deterministic, or a custom one",
4196
+ "name": "evaluator",
4197
+ "default": "LLM",
4198
+ "hasDynamicHelp": false,
4199
+ "multiple": false,
4200
+ "type": "option"
4201
+ },
4202
+ "prompt": {
4203
+ "description": "LLM: the judge prompt composed into Rubric Evaluator (default Rubric Evaluator - Default Judge). Decision: the decision prompt (default Default Decision)",
4204
+ "name": "prompt",
4205
+ "hasDynamicHelp": false,
4206
+ "multiple": false,
4207
+ "type": "option"
4208
+ },
4209
+ "model": {
4210
+ "description": "AI Model ID to pin. Otherwise the prompt's bindings choose",
4211
+ "name": "model",
4212
+ "hasDynamicHelp": false,
4213
+ "multiple": false,
4214
+ "type": "option"
4215
+ },
4216
+ "mode": {
4217
+ "description": "LLM only: SinglePass or PerCriterion",
4218
+ "name": "mode",
4219
+ "hasDynamicHelp": false,
4220
+ "multiple": false,
4221
+ "options": [
4222
+ "SinglePass",
4223
+ "PerCriterion"
4224
+ ],
4225
+ "type": "option"
4117
4226
  }
4118
4227
  },
4119
4228
  "hasDynamicHelp": false,
4120
4229
  "hiddenAliases": [],
4121
- "id": "queue:dead-letters",
4230
+ "id": "rubric:evaluate",
4122
4231
  "pluginAlias": "@memberjunction/cli",
4123
4232
  "pluginName": "@memberjunction/cli",
4124
4233
  "pluginType": "core",
@@ -4128,49 +4237,18 @@
4128
4237
  "relativePath": [
4129
4238
  "dist",
4130
4239
  "commands",
4131
- "queue",
4132
- "dead-letters.js"
4240
+ "rubric",
4241
+ "evaluate.js"
4133
4242
  ]
4134
4243
  },
4135
- "queue:discard": {
4244
+ "rubric": {
4136
4245
  "aliases": [],
4137
4246
  "args": {},
4138
- "description": "Discard one pending or dead-lettered work-queue delivery, or cancel one that is in flight",
4139
- "examples": [
4140
- "<%= config.bin %> <%= command.id %> --subscription integration.apply --delivery <id> --reason \"bad batch, republished\""
4141
- ],
4142
- "flags": {
4143
- "subscription": {
4144
- "char": "s",
4145
- "description": "Subscription name",
4146
- "name": "subscription",
4147
- "required": true,
4148
- "hasDynamicHelp": false,
4149
- "multiple": false,
4150
- "type": "option"
4151
- },
4152
- "delivery": {
4153
- "char": "d",
4154
- "description": "DeliveryID to discard",
4155
- "name": "delivery",
4156
- "required": true,
4157
- "hasDynamicHelp": false,
4158
- "multiple": false,
4159
- "type": "option"
4160
- },
4161
- "reason": {
4162
- "char": "r",
4163
- "description": "Why the work is dropped (at most 1000 characters)",
4164
- "name": "reason",
4165
- "required": true,
4166
- "hasDynamicHelp": false,
4167
- "multiple": false,
4168
- "type": "option"
4169
- }
4170
- },
4247
+ "description": "List, show, diff, validate, and evaluate rubrics.",
4248
+ "flags": {},
4171
4249
  "hasDynamicHelp": false,
4172
4250
  "hiddenAliases": [],
4173
- "id": "queue:discard",
4251
+ "id": "rubric",
4174
4252
  "pluginAlias": "@memberjunction/cli",
4175
4253
  "pluginName": "@memberjunction/cli",
4176
4254
  "pluginType": "core",
@@ -4180,39 +4258,18 @@
4180
4258
  "relativePath": [
4181
4259
  "dist",
4182
4260
  "commands",
4183
- "queue",
4184
- "discard.js"
4261
+ "rubric",
4262
+ "index.js"
4185
4263
  ]
4186
4264
  },
4187
- "queue:export-topology": {
4265
+ "rubric:list": {
4188
4266
  "aliases": [],
4189
4267
  "args": {},
4190
- "description": "Write the topology manifest for one transport (input to the Terraform module)",
4191
- "examples": [
4192
- "<%= config.bin %> <%= command.id %> --transport AWS-prod --output infrastructure/work-queue/manifest.json"
4193
- ],
4194
- "flags": {
4195
- "transport": {
4196
- "char": "t",
4197
- "description": "Transport name",
4198
- "name": "transport",
4199
- "required": true,
4200
- "hasDynamicHelp": false,
4201
- "multiple": false,
4202
- "type": "option"
4203
- },
4204
- "output": {
4205
- "char": "o",
4206
- "description": "File to write; stdout when omitted",
4207
- "name": "output",
4208
- "hasDynamicHelp": false,
4209
- "multiple": false,
4210
- "type": "option"
4211
- }
4212
- },
4268
+ "description": "List rubrics.",
4269
+ "flags": {},
4213
4270
  "hasDynamicHelp": false,
4214
4271
  "hiddenAliases": [],
4215
- "id": "queue:export-topology",
4272
+ "id": "rubric:list",
4216
4273
  "pluginAlias": "@memberjunction/cli",
4217
4274
  "pluginName": "@memberjunction/cli",
4218
4275
  "pluginType": "core",
@@ -4222,34 +4279,24 @@
4222
4279
  "relativePath": [
4223
4280
  "dist",
4224
4281
  "commands",
4225
- "queue",
4226
- "export-topology.js"
4282
+ "rubric",
4283
+ "list.js"
4227
4284
  ]
4228
4285
  },
4229
- "queue:import-bindings": {
4286
+ "rubric:show": {
4230
4287
  "aliases": [],
4231
4288
  "args": {
4232
- "file": {
4233
- "description": "BindingImport JSON file",
4234
- "name": "file",
4289
+ "rubric": {
4290
+ "description": "Rubric name or id, optionally @version",
4291
+ "name": "rubric",
4235
4292
  "required": true
4236
4293
  }
4237
4294
  },
4238
- "description": "Record cloud resource bindings (Terraform output) on work-queue topics and subscriptions",
4239
- "examples": [
4240
- "terraform output -json mj_work_queue_bindings > bindings.json && <%= config.bin %> <%= command.id %> bindings.json"
4241
- ],
4242
- "flags": {
4243
- "json": {
4244
- "description": "Print issues as JSON",
4245
- "name": "json",
4246
- "allowNo": false,
4247
- "type": "boolean"
4248
- }
4249
- },
4295
+ "description": "Show a rubric version and its criteria.",
4296
+ "flags": {},
4250
4297
  "hasDynamicHelp": false,
4251
4298
  "hiddenAliases": [],
4252
- "id": "queue:import-bindings",
4299
+ "id": "rubric:show",
4253
4300
  "pluginAlias": "@memberjunction/cli",
4254
4301
  "pluginName": "@memberjunction/cli",
4255
4302
  "pluginType": "core",
@@ -4259,23 +4306,24 @@
4259
4306
  "relativePath": [
4260
4307
  "dist",
4261
4308
  "commands",
4262
- "queue",
4263
- "import-bindings.js"
4309
+ "rubric",
4310
+ "show.js"
4264
4311
  ]
4265
4312
  },
4266
- "queue": {
4313
+ "rubric:validate": {
4267
4314
  "aliases": [],
4268
- "args": {},
4269
- "description": "Operate the durable work queue",
4270
- "examples": [
4271
- "<%= config.bin %> <%= command.id %> publish --topic samples.hello --payload '{\"name\":\"Paul\"}'",
4272
- "<%= config.bin %> <%= command.id %> stats",
4273
- "<%= config.bin %> <%= command.id %> dead-letters --subscription email.unsubscribe"
4274
- ],
4315
+ "args": {
4316
+ "file": {
4317
+ "description": "JSON snapshot file",
4318
+ "name": "file",
4319
+ "required": true
4320
+ }
4321
+ },
4322
+ "description": "Check a rubric snapshot file for duplicate keys, gates, weights, and scales.",
4275
4323
  "flags": {},
4276
4324
  "hasDynamicHelp": false,
4277
4325
  "hiddenAliases": [],
4278
- "id": "queue",
4326
+ "id": "rubric:validate",
4279
4327
  "pluginAlias": "@memberjunction/cli",
4280
4328
  "pluginName": "@memberjunction/cli",
4281
4329
  "pluginType": "core",
@@ -4285,64 +4333,64 @@
4285
4333
  "relativePath": [
4286
4334
  "dist",
4287
4335
  "commands",
4288
- "queue",
4289
- "index.js"
4336
+ "rubric",
4337
+ "validate.js"
4290
4338
  ]
4291
4339
  },
4292
- "queue:partitions": {
4340
+ "sql-audit": {
4293
4341
  "aliases": [],
4294
4342
  "args": {},
4295
- "description": "List a work-queue subscription's in-flight or blocked partition keys",
4343
+ "description": "Compare source and target databases for migration verification",
4296
4344
  "examples": [
4297
- "<%= config.bin %> <%= command.id %> --subscription integration.apply --condition Blocked"
4345
+ "<%= config.bin %> sql-audit --source \"mssql://sa:pass@host/db\" --target \"postgres://user:pass@host:5432/db\"",
4346
+ "<%= config.bin %> sql-audit --source \"mssql://sa:pass@host/db\" --target \"postgres://user:pass@host:5432/db\" --output report.txt",
4347
+ "<%= config.bin %> sql-audit --source \"mssql://sa:pass@host/db\" --target \"postgres://user:pass@host:5432/db\" --source-schema __mj --target-schema __mj"
4298
4348
  ],
4299
4349
  "flags": {
4300
- "subscription": {
4301
- "char": "s",
4302
- "description": "Subscription name",
4303
- "name": "subscription",
4350
+ "source": {
4351
+ "description": "Source database connection string (mssql://... or postgres://...)",
4352
+ "name": "source",
4304
4353
  "required": true,
4305
4354
  "hasDynamicHelp": false,
4306
4355
  "multiple": false,
4307
4356
  "type": "option"
4308
4357
  },
4309
- "condition": {
4310
- "description": "Only keys in this condition",
4311
- "name": "condition",
4358
+ "target": {
4359
+ "description": "Target database connection string (mssql://... or postgres://...)",
4360
+ "name": "target",
4361
+ "required": true,
4312
4362
  "hasDynamicHelp": false,
4313
4363
  "multiple": false,
4314
- "options": [
4315
- "Idle",
4316
- "InFlight",
4317
- "Blocked"
4318
- ],
4319
4364
  "type": "option"
4320
4365
  },
4321
- "cursor": {
4322
- "description": "nextCursor from a previous page",
4323
- "name": "cursor",
4366
+ "source-schema": {
4367
+ "description": "Source schema name",
4368
+ "name": "source-schema",
4369
+ "default": "__mj",
4324
4370
  "hasDynamicHelp": false,
4325
4371
  "multiple": false,
4326
4372
  "type": "option"
4327
4373
  },
4328
- "page-size": {
4329
- "description": "Items per page (1–500)",
4330
- "name": "page-size",
4331
- "default": 50,
4374
+ "target-schema": {
4375
+ "description": "Target schema name",
4376
+ "name": "target-schema",
4377
+ "default": "__mj",
4332
4378
  "hasDynamicHelp": false,
4333
4379
  "multiple": false,
4334
4380
  "type": "option"
4335
4381
  },
4336
- "json": {
4337
- "description": "Print JSON instead of a table",
4338
- "name": "json",
4339
- "allowNo": false,
4340
- "type": "boolean"
4382
+ "output": {
4383
+ "char": "o",
4384
+ "description": "Save report to file",
4385
+ "name": "output",
4386
+ "hasDynamicHelp": false,
4387
+ "multiple": false,
4388
+ "type": "option"
4341
4389
  }
4342
4390
  },
4343
4391
  "hasDynamicHelp": false,
4344
4392
  "hiddenAliases": [],
4345
- "id": "queue:partitions",
4393
+ "id": "sql-audit",
4346
4394
  "pluginAlias": "@memberjunction/cli",
4347
4395
  "pluginName": "@memberjunction/cli",
4348
4396
  "pluginType": "core",
@@ -4352,80 +4400,31 @@
4352
4400
  "relativePath": [
4353
4401
  "dist",
4354
4402
  "commands",
4355
- "queue",
4356
- "partitions.js"
4403
+ "sql-audit",
4404
+ "index.js"
4357
4405
  ]
4358
4406
  },
4359
- "queue:publish": {
4407
+ "sql-audit:usage": {
4360
4408
  "aliases": [],
4361
4409
  "args": {},
4362
- "description": "Publish messages to a work-queue topic from this machine through MJ code (no API key needed)",
4363
- "examples": [
4364
- "<%= config.bin %> <%= command.id %> --topic samples.hello --payload '{\"name\":\"Paul\"}'",
4365
- "<%= config.bin %> <%= command.id %> --topic samples.hello --payload '{\"sleepMs\":60000}' --partition-key customer-42",
4366
- "<%= config.bin %> <%= command.id %> --topic samples.hello --count 5 --partition-key k1 --attribute source=demo"
4367
- ],
4410
+ "description": "Show usage, flags, examples, and runtime hints for every `mj sql-audit` command.",
4368
4411
  "flags": {
4369
- "topic": {
4370
- "char": "t",
4371
- "description": "Topic name",
4372
- "name": "topic",
4373
- "required": true,
4374
- "hasDynamicHelp": false,
4375
- "multiple": false,
4376
- "type": "option"
4377
- },
4378
- "payload": {
4379
- "char": "p",
4380
- "description": "Message payload as JSON",
4381
- "name": "payload",
4382
- "default": "{}",
4383
- "hasDynamicHelp": false,
4384
- "multiple": false,
4385
- "type": "option"
4386
- },
4387
- "partition-key": {
4388
- "char": "k",
4389
- "description": "PartitionKey for Exclusive / Ordered subscriptions",
4390
- "name": "partition-key",
4391
- "hasDynamicHelp": false,
4392
- "multiple": false,
4393
- "type": "option"
4394
- },
4395
- "dedup-key": {
4396
- "description": "DeduplicationKey: a repeat within the topic TTL is reported as Duplicate",
4397
- "name": "dedup-key",
4398
- "hasDynamicHelp": false,
4399
- "multiple": false,
4400
- "type": "option"
4401
- },
4402
- "attribute": {
4403
- "char": "a",
4404
- "description": "Message attribute as key=value (repeatable)",
4405
- "name": "attribute",
4406
- "hasDynamicHelp": false,
4407
- "multiple": true,
4408
- "type": "option"
4409
- },
4410
- "count": {
4411
- "char": "n",
4412
- "description": "How many copies to publish in one batch",
4413
- "name": "count",
4414
- "default": 1,
4412
+ "format": {
4413
+ "description": "Output format. Defaults to text on a terminal and json when stdout is piped.",
4414
+ "name": "format",
4415
4415
  "hasDynamicHelp": false,
4416
4416
  "multiple": false,
4417
+ "options": [
4418
+ "text",
4419
+ "json",
4420
+ "md"
4421
+ ],
4417
4422
  "type": "option"
4418
- },
4419
- "json": {
4420
- "description": "Print the publish results as JSON",
4421
- "name": "json",
4422
- "allowNo": false,
4423
- "type": "boolean"
4424
4423
  }
4425
4424
  },
4426
4425
  "hasDynamicHelp": false,
4427
4426
  "hiddenAliases": [],
4428
- "id": "queue:publish",
4427
+ "id": "sql-audit:usage",
4429
4428
  "pluginAlias": "@memberjunction/cli",
4430
4429
  "pluginName": "@memberjunction/cli",
4431
4430
  "pluginType": "core",
@@ -4435,87 +4434,82 @@
4435
4434
  "relativePath": [
4436
4435
  "dist",
4437
4436
  "commands",
4438
- "queue",
4439
- "publish.js"
4437
+ "sql-audit",
4438
+ "usage.js"
4440
4439
  ]
4441
4440
  },
4442
- "queue:replay": {
4441
+ "sql-convert": {
4443
4442
  "aliases": [],
4444
- "args": {},
4445
- "description": "Replay one dead-lettered work-queue delivery",
4443
+ "args": {
4444
+ "source": {
4445
+ "description": "Source SQL file path",
4446
+ "name": "source",
4447
+ "required": true
4448
+ }
4449
+ },
4450
+ "description": "Convert SQL files between database dialects using rule-based BatchConverter engine",
4446
4451
  "examples": [
4447
- "<%= config.bin %> <%= command.id %> --subscription integration.apply --delivery <id> --note \"mapping fixed\""
4452
+ "<%= config.bin %> sql-convert ./migration.sql --from tsql --to postgres",
4453
+ "<%= config.bin %> sql-convert ./migration.sql --from tsql --to postgres --output converted.sql",
4454
+ "<%= config.bin %> sql-convert ./migration.sql --from tsql --to postgres --schema my_schema",
4455
+ "<%= config.bin %> sql-convert ./migration.sql --from tsql --to postgres --no-header --verbose"
4448
4456
  ],
4449
4457
  "flags": {
4450
- "subscription": {
4451
- "char": "s",
4452
- "description": "Subscription name",
4453
- "name": "subscription",
4458
+ "from": {
4459
+ "description": "Source SQL dialect",
4460
+ "name": "from",
4454
4461
  "required": true,
4455
4462
  "hasDynamicHelp": false,
4456
4463
  "multiple": false,
4457
4464
  "type": "option"
4458
4465
  },
4459
- "delivery": {
4460
- "char": "d",
4461
- "description": "DeliveryID from `mj queue dead-letters`",
4462
- "name": "delivery",
4466
+ "to": {
4467
+ "description": "Target SQL dialect",
4468
+ "name": "to",
4463
4469
  "required": true,
4464
4470
  "hasDynamicHelp": false,
4465
4471
  "multiple": false,
4466
4472
  "type": "option"
4467
4473
  },
4468
- "note": {
4469
- "description": "Operator note stored with the resolution",
4470
- "name": "note",
4474
+ "output": {
4475
+ "char": "o",
4476
+ "description": "Output file path (default: <source>.converted.<ext>)",
4477
+ "name": "output",
4471
4478
  "hasDynamicHelp": false,
4472
4479
  "multiple": false,
4473
4480
  "type": "option"
4474
- }
4475
- },
4476
- "hasDynamicHelp": false,
4477
- "hiddenAliases": [],
4478
- "id": "queue:replay",
4479
- "pluginAlias": "@memberjunction/cli",
4480
- "pluginName": "@memberjunction/cli",
4481
- "pluginType": "core",
4482
- "strict": true,
4483
- "enableJsonFlag": false,
4484
- "isESM": true,
4485
- "relativePath": [
4486
- "dist",
4487
- "commands",
4488
- "queue",
4489
- "replay.js"
4490
- ]
4491
- },
4492
- "queue:stats": {
4493
- "aliases": [],
4494
- "args": {},
4495
- "description": "Show pending, in-flight and dead-lettered counts for work-queue subscriptions",
4496
- "examples": [
4497
- "<%= config.bin %> <%= command.id %>",
4498
- "<%= config.bin %> <%= command.id %> --subscription email.unsubscribe --json"
4499
- ],
4500
- "flags": {
4501
- "subscription": {
4502
- "char": "s",
4503
- "description": "Subscription name; omit for every subscription",
4504
- "name": "subscription",
4481
+ },
4482
+ "schema": {
4483
+ "description": "Target schema name",
4484
+ "name": "schema",
4485
+ "default": "__mj",
4505
4486
  "hasDynamicHelp": false,
4506
4487
  "multiple": false,
4507
4488
  "type": "option"
4508
4489
  },
4509
- "json": {
4510
- "description": "Print JSON instead of a table",
4511
- "name": "json",
4490
+ "no-header": {
4491
+ "description": "Skip PG header (extensions, schema, implicit cast)",
4492
+ "name": "no-header",
4493
+ "allowNo": false,
4494
+ "type": "boolean"
4495
+ },
4496
+ "no-post-process": {
4497
+ "description": "Skip post-processing pass",
4498
+ "name": "no-post-process",
4499
+ "allowNo": false,
4500
+ "type": "boolean"
4501
+ },
4502
+ "verbose": {
4503
+ "char": "v",
4504
+ "description": "Show per-statement progress and detailed report",
4505
+ "name": "verbose",
4512
4506
  "allowNo": false,
4513
4507
  "type": "boolean"
4514
4508
  }
4515
4509
  },
4516
4510
  "hasDynamicHelp": false,
4517
4511
  "hiddenAliases": [],
4518
- "id": "queue:stats",
4512
+ "id": "sql-convert",
4519
4513
  "pluginAlias": "@memberjunction/cli",
4520
4514
  "pluginName": "@memberjunction/cli",
4521
4515
  "pluginType": "core",
@@ -4525,14 +4519,14 @@
4525
4519
  "relativePath": [
4526
4520
  "dist",
4527
4521
  "commands",
4528
- "queue",
4529
- "stats.js"
4522
+ "sql-convert",
4523
+ "index.js"
4530
4524
  ]
4531
4525
  },
4532
- "queue:usage": {
4526
+ "sql-convert:usage": {
4533
4527
  "aliases": [],
4534
4528
  "args": {},
4535
- "description": "Show usage, flags, examples, and runtime hints for every `mj queue` command.",
4529
+ "description": "Show usage, flags, examples, and runtime hints for every `mj sql-convert` command.",
4536
4530
  "flags": {
4537
4531
  "format": {
4538
4532
  "description": "Output format. Defaults to text on a terminal and json when stdout is piped.",
@@ -4549,7 +4543,7 @@
4549
4543
  },
4550
4544
  "hasDynamicHelp": false,
4551
4545
  "hiddenAliases": [],
4552
- "id": "queue:usage",
4546
+ "id": "sql-convert:usage",
4553
4547
  "pluginAlias": "@memberjunction/cli",
4554
4548
  "pluginName": "@memberjunction/cli",
4555
4549
  "pluginType": "core",
@@ -4559,29 +4553,30 @@
4559
4553
  "relativePath": [
4560
4554
  "dist",
4561
4555
  "commands",
4562
- "queue",
4556
+ "sql-convert",
4563
4557
  "usage.js"
4564
4558
  ]
4565
4559
  },
4566
- "queue:validate-bindings": {
4560
+ "queue:backlog": {
4567
4561
  "aliases": [],
4568
4562
  "args": {},
4569
- "description": "Validate work-queue topology and cloud bindings; exits 1 on any error",
4563
+ "description": "Show the autoscaler metric for one subscription: claimable pending plus in-flight deliveries",
4570
4564
  "examples": [
4571
- "<%= config.bin %> <%= command.id %>",
4572
- "<%= config.bin %> <%= command.id %> --transport AWS-prod"
4565
+ "<%= config.bin %> <%= command.id %> --subscription venue-import",
4566
+ "<%= config.bin %> <%= command.id %> --subscription venue-import --json"
4573
4567
  ],
4574
4568
  "flags": {
4575
- "transport": {
4576
- "char": "t",
4577
- "description": "Validate one transport's bindings against its resources",
4578
- "name": "transport",
4569
+ "subscription": {
4570
+ "char": "s",
4571
+ "description": "Subscription name",
4572
+ "name": "subscription",
4573
+ "required": true,
4579
4574
  "hasDynamicHelp": false,
4580
4575
  "multiple": false,
4581
4576
  "type": "option"
4582
4577
  },
4583
4578
  "json": {
4584
- "description": "Print issues as JSON",
4579
+ "description": "Print JSON instead of text",
4585
4580
  "name": "json",
4586
4581
  "allowNo": false,
4587
4582
  "type": "boolean"
@@ -4589,7 +4584,7 @@
4589
4584
  },
4590
4585
  "hasDynamicHelp": false,
4591
4586
  "hiddenAliases": [],
4592
- "id": "queue:validate-bindings",
4587
+ "id": "queue:backlog",
4593
4588
  "pluginAlias": "@memberjunction/cli",
4594
4589
  "pluginName": "@memberjunction/cli",
4595
4590
  "pluginType": "core",
@@ -4600,86 +4595,51 @@
4600
4595
  "dist",
4601
4596
  "commands",
4602
4597
  "queue",
4603
- "validate-bindings.js"
4598
+ "backlog.js"
4604
4599
  ]
4605
4600
  },
4606
- "queue:work": {
4601
+ "queue:dead-letters": {
4607
4602
  "aliases": [],
4608
4603
  "args": {},
4609
- "description": "Run work-queue subscriptions in this process: once for a container job, or until stopped",
4604
+ "description": "List a work-queue subscription's dead-lettered deliveries",
4610
4605
  "examples": [
4611
- "<%= config.bin %> <%= command.id %> --subscription venue-import --once",
4612
- "<%= config.bin %> <%= command.id %> --subscription venue-import --once --max 5 --concurrency 2 --max-duration-ms 3300000",
4613
- "<%= config.bin %> <%= command.id %> --subscription \"*\""
4606
+ "<%= config.bin %> <%= command.id %> --subscription integration.apply --page-size 20"
4614
4607
  ],
4615
4608
  "flags": {
4616
4609
  "subscription": {
4617
4610
  "char": "s",
4618
- "description": "Subscription name, or '*' for every MJWorker subscription",
4611
+ "description": "Subscription name",
4619
4612
  "name": "subscription",
4620
4613
  "required": true,
4621
4614
  "hasDynamicHelp": false,
4622
4615
  "multiple": false,
4623
4616
  "type": "option"
4624
4617
  },
4625
- "once": {
4626
- "description": "Receive up to --max deliveries, drain and exit (container-job mode)",
4627
- "name": "once",
4628
- "allowNo": false,
4629
- "type": "boolean"
4630
- },
4631
- "max": {
4632
- "dependsOn": [
4633
- "once"
4634
- ],
4635
- "description": "With --once: how many deliveries to receive",
4636
- "name": "max",
4637
- "default": 1,
4638
- "hasDynamicHelp": false,
4639
- "multiple": false,
4640
- "type": "option"
4641
- },
4642
- "idle-exit-ms": {
4643
- "dependsOn": [
4644
- "once"
4645
- ],
4646
- "description": "With --once: exit after this long with an empty queue",
4647
- "name": "idle-exit-ms",
4648
- "default": 5000,
4649
- "hasDynamicHelp": false,
4650
- "multiple": false,
4651
- "type": "option"
4652
- },
4653
- "max-duration-ms": {
4654
- "dependsOn": [
4655
- "once"
4656
- ],
4657
- "description": "With --once: stop claiming after this long and drain (keep it below the scheduler's job deadline)",
4658
- "name": "max-duration-ms",
4618
+ "cursor": {
4619
+ "description": "nextCursor from a previous page",
4620
+ "name": "cursor",
4659
4621
  "hasDynamicHelp": false,
4660
4622
  "multiple": false,
4661
4623
  "type": "option"
4662
4624
  },
4663
- "concurrency": {
4664
- "description": "Handlers in flight per subscription",
4665
- "name": "concurrency",
4666
- "default": 1,
4625
+ "page-size": {
4626
+ "description": "Items per page (1–500)",
4627
+ "name": "page-size",
4628
+ "default": 50,
4667
4629
  "hasDynamicHelp": false,
4668
4630
  "multiple": false,
4669
4631
  "type": "option"
4670
4632
  },
4671
- "shutdown-drain-ms": {
4672
- "description": "How long in-flight handlers get to finish on exit; the drain can take twice this",
4673
- "name": "shutdown-drain-ms",
4674
- "default": 30000,
4675
- "hasDynamicHelp": false,
4676
- "multiple": false,
4677
- "type": "option"
4633
+ "json": {
4634
+ "description": "Print JSON instead of a table",
4635
+ "name": "json",
4636
+ "allowNo": false,
4637
+ "type": "boolean"
4678
4638
  }
4679
4639
  },
4680
4640
  "hasDynamicHelp": false,
4681
4641
  "hiddenAliases": [],
4682
- "id": "queue:work",
4642
+ "id": "queue:dead-letters",
4683
4643
  "pluginAlias": "@memberjunction/cli",
4684
4644
  "pluginName": "@memberjunction/cli",
4685
4645
  "pluginType": "core",
@@ -4690,33 +4650,48 @@
4690
4650
  "dist",
4691
4651
  "commands",
4692
4652
  "queue",
4693
- "work.js"
4653
+ "dead-letters.js"
4694
4654
  ]
4695
4655
  },
4696
- "rubric:diff": {
4656
+ "queue:discard": {
4697
4657
  "aliases": [],
4698
- "args": {
4699
- "rubric": {
4700
- "description": "Rubric name or id",
4701
- "name": "rubric",
4702
- "required": true
4658
+ "args": {},
4659
+ "description": "Discard one pending or dead-lettered work-queue delivery, or cancel one that is in flight",
4660
+ "examples": [
4661
+ "<%= config.bin %> <%= command.id %> --subscription integration.apply --delivery <id> --reason \"bad batch, republished\""
4662
+ ],
4663
+ "flags": {
4664
+ "subscription": {
4665
+ "char": "s",
4666
+ "description": "Subscription name",
4667
+ "name": "subscription",
4668
+ "required": true,
4669
+ "hasDynamicHelp": false,
4670
+ "multiple": false,
4671
+ "type": "option"
4703
4672
  },
4704
- "from": {
4705
- "description": "Version 1.2.0 or id",
4706
- "name": "from",
4707
- "required": true
4673
+ "delivery": {
4674
+ "char": "d",
4675
+ "description": "DeliveryID to discard",
4676
+ "name": "delivery",
4677
+ "required": true,
4678
+ "hasDynamicHelp": false,
4679
+ "multiple": false,
4680
+ "type": "option"
4708
4681
  },
4709
- "to": {
4710
- "description": "Version 1.2.0 or id",
4711
- "name": "to",
4712
- "required": true
4682
+ "reason": {
4683
+ "char": "r",
4684
+ "description": "Why the work is dropped (at most 1000 characters)",
4685
+ "name": "reason",
4686
+ "required": true,
4687
+ "hasDynamicHelp": false,
4688
+ "multiple": false,
4689
+ "type": "option"
4713
4690
  }
4714
4691
  },
4715
- "description": "Print the version bump between two rubric versions.",
4716
- "flags": {},
4717
4692
  "hasDynamicHelp": false,
4718
4693
  "hiddenAliases": [],
4719
- "id": "rubric:diff",
4694
+ "id": "queue:discard",
4720
4695
  "pluginAlias": "@memberjunction/cli",
4721
4696
  "pluginName": "@memberjunction/cli",
4722
4697
  "pluginType": "core",
@@ -4726,76 +4701,39 @@
4726
4701
  "relativePath": [
4727
4702
  "dist",
4728
4703
  "commands",
4729
- "rubric",
4730
- "diff.js"
4704
+ "queue",
4705
+ "discard.js"
4731
4706
  ]
4732
4707
  },
4733
- "rubric:evaluate": {
4708
+ "queue:export-topology": {
4734
4709
  "aliases": [],
4735
4710
  "args": {},
4736
- "description": "Evaluate one record against a rubric. Does not publish.",
4711
+ "description": "Write the topology manifest for one transport (input to the Terraform module)",
4712
+ "examples": [
4713
+ "<%= config.bin %> <%= command.id %> --transport AWS-prod --output infrastructure/work-queue/manifest.json"
4714
+ ],
4737
4715
  "flags": {
4738
- "rubric": {
4739
- "description": "Rubric name or id, optionally @version",
4740
- "name": "rubric",
4741
- "required": true,
4742
- "hasDynamicHelp": false,
4743
- "multiple": false,
4744
- "type": "option"
4745
- },
4746
- "entity": {
4747
- "description": "Subject entity name",
4748
- "name": "entity",
4749
- "required": true,
4750
- "hasDynamicHelp": false,
4751
- "multiple": false,
4752
- "type": "option"
4753
- },
4754
- "record": {
4755
- "description": "Subject record id",
4756
- "name": "record",
4716
+ "transport": {
4717
+ "char": "t",
4718
+ "description": "Transport name",
4719
+ "name": "transport",
4757
4720
  "required": true,
4758
4721
  "hasDynamicHelp": false,
4759
4722
  "multiple": false,
4760
4723
  "type": "option"
4761
4724
  },
4762
- "evaluator": {
4763
- "description": "A registered evaluator: LLM, Decision, Agent, Deterministic, or a custom one",
4764
- "name": "evaluator",
4765
- "default": "LLM",
4766
- "hasDynamicHelp": false,
4767
- "multiple": false,
4768
- "type": "option"
4769
- },
4770
- "prompt": {
4771
- "description": "LLM: the judge prompt composed into Rubric Evaluator (default Rubric Evaluator - Default Judge). Decision: the decision prompt (default Default Decision)",
4772
- "name": "prompt",
4773
- "hasDynamicHelp": false,
4774
- "multiple": false,
4775
- "type": "option"
4776
- },
4777
- "model": {
4778
- "description": "AI Model ID to pin. Otherwise the prompt's bindings choose",
4779
- "name": "model",
4725
+ "output": {
4726
+ "char": "o",
4727
+ "description": "File to write; stdout when omitted",
4728
+ "name": "output",
4780
4729
  "hasDynamicHelp": false,
4781
4730
  "multiple": false,
4782
4731
  "type": "option"
4783
- },
4784
- "mode": {
4785
- "description": "LLM only: SinglePass or PerCriterion",
4786
- "name": "mode",
4787
- "hasDynamicHelp": false,
4788
- "multiple": false,
4789
- "options": [
4790
- "SinglePass",
4791
- "PerCriterion"
4792
- ],
4793
- "type": "option"
4794
4732
  }
4795
4733
  },
4796
4734
  "hasDynamicHelp": false,
4797
4735
  "hiddenAliases": [],
4798
- "id": "rubric:evaluate",
4736
+ "id": "queue:export-topology",
4799
4737
  "pluginAlias": "@memberjunction/cli",
4800
4738
  "pluginName": "@memberjunction/cli",
4801
4739
  "pluginType": "core",
@@ -4805,18 +4743,34 @@
4805
4743
  "relativePath": [
4806
4744
  "dist",
4807
4745
  "commands",
4808
- "rubric",
4809
- "evaluate.js"
4746
+ "queue",
4747
+ "export-topology.js"
4810
4748
  ]
4811
4749
  },
4812
- "rubric": {
4750
+ "queue:import-bindings": {
4813
4751
  "aliases": [],
4814
- "args": {},
4815
- "description": "List, show, diff, validate, and evaluate rubrics.",
4816
- "flags": {},
4752
+ "args": {
4753
+ "file": {
4754
+ "description": "BindingImport JSON file",
4755
+ "name": "file",
4756
+ "required": true
4757
+ }
4758
+ },
4759
+ "description": "Record cloud resource bindings (Terraform output) on work-queue topics and subscriptions",
4760
+ "examples": [
4761
+ "terraform output -json mj_work_queue_bindings > bindings.json && <%= config.bin %> <%= command.id %> bindings.json"
4762
+ ],
4763
+ "flags": {
4764
+ "json": {
4765
+ "description": "Print issues as JSON",
4766
+ "name": "json",
4767
+ "allowNo": false,
4768
+ "type": "boolean"
4769
+ }
4770
+ },
4817
4771
  "hasDynamicHelp": false,
4818
4772
  "hiddenAliases": [],
4819
- "id": "rubric",
4773
+ "id": "queue:import-bindings",
4820
4774
  "pluginAlias": "@memberjunction/cli",
4821
4775
  "pluginName": "@memberjunction/cli",
4822
4776
  "pluginType": "core",
@@ -4826,18 +4780,23 @@
4826
4780
  "relativePath": [
4827
4781
  "dist",
4828
4782
  "commands",
4829
- "rubric",
4830
- "index.js"
4783
+ "queue",
4784
+ "import-bindings.js"
4831
4785
  ]
4832
4786
  },
4833
- "rubric:list": {
4787
+ "queue": {
4834
4788
  "aliases": [],
4835
4789
  "args": {},
4836
- "description": "List rubrics.",
4790
+ "description": "Operate the durable work queue",
4791
+ "examples": [
4792
+ "<%= config.bin %> <%= command.id %> publish --topic samples.hello --payload '{\"name\":\"Paul\"}'",
4793
+ "<%= config.bin %> <%= command.id %> stats",
4794
+ "<%= config.bin %> <%= command.id %> dead-letters --subscription email.unsubscribe"
4795
+ ],
4837
4796
  "flags": {},
4838
4797
  "hasDynamicHelp": false,
4839
4798
  "hiddenAliases": [],
4840
- "id": "rubric:list",
4799
+ "id": "queue",
4841
4800
  "pluginAlias": "@memberjunction/cli",
4842
4801
  "pluginName": "@memberjunction/cli",
4843
4802
  "pluginType": "core",
@@ -4847,24 +4806,64 @@
4847
4806
  "relativePath": [
4848
4807
  "dist",
4849
4808
  "commands",
4850
- "rubric",
4851
- "list.js"
4809
+ "queue",
4810
+ "index.js"
4852
4811
  ]
4853
4812
  },
4854
- "rubric:show": {
4813
+ "queue:partitions": {
4855
4814
  "aliases": [],
4856
- "args": {
4857
- "rubric": {
4858
- "description": "Rubric name or id, optionally @version",
4859
- "name": "rubric",
4860
- "required": true
4815
+ "args": {},
4816
+ "description": "List a work-queue subscription's in-flight or blocked partition keys",
4817
+ "examples": [
4818
+ "<%= config.bin %> <%= command.id %> --subscription integration.apply --condition Blocked"
4819
+ ],
4820
+ "flags": {
4821
+ "subscription": {
4822
+ "char": "s",
4823
+ "description": "Subscription name",
4824
+ "name": "subscription",
4825
+ "required": true,
4826
+ "hasDynamicHelp": false,
4827
+ "multiple": false,
4828
+ "type": "option"
4829
+ },
4830
+ "condition": {
4831
+ "description": "Only keys in this condition",
4832
+ "name": "condition",
4833
+ "hasDynamicHelp": false,
4834
+ "multiple": false,
4835
+ "options": [
4836
+ "Idle",
4837
+ "InFlight",
4838
+ "Blocked"
4839
+ ],
4840
+ "type": "option"
4841
+ },
4842
+ "cursor": {
4843
+ "description": "nextCursor from a previous page",
4844
+ "name": "cursor",
4845
+ "hasDynamicHelp": false,
4846
+ "multiple": false,
4847
+ "type": "option"
4848
+ },
4849
+ "page-size": {
4850
+ "description": "Items per page (1–500)",
4851
+ "name": "page-size",
4852
+ "default": 50,
4853
+ "hasDynamicHelp": false,
4854
+ "multiple": false,
4855
+ "type": "option"
4856
+ },
4857
+ "json": {
4858
+ "description": "Print JSON instead of a table",
4859
+ "name": "json",
4860
+ "allowNo": false,
4861
+ "type": "boolean"
4861
4862
  }
4862
4863
  },
4863
- "description": "Show a rubric version and its criteria.",
4864
- "flags": {},
4865
4864
  "hasDynamicHelp": false,
4866
4865
  "hiddenAliases": [],
4867
- "id": "rubric:show",
4866
+ "id": "queue:partitions",
4868
4867
  "pluginAlias": "@memberjunction/cli",
4869
4868
  "pluginName": "@memberjunction/cli",
4870
4869
  "pluginType": "core",
@@ -4874,24 +4873,80 @@
4874
4873
  "relativePath": [
4875
4874
  "dist",
4876
4875
  "commands",
4877
- "rubric",
4878
- "show.js"
4876
+ "queue",
4877
+ "partitions.js"
4879
4878
  ]
4880
4879
  },
4881
- "rubric:validate": {
4880
+ "queue:publish": {
4882
4881
  "aliases": [],
4883
- "args": {
4884
- "file": {
4885
- "description": "JSON snapshot file",
4886
- "name": "file",
4887
- "required": true
4882
+ "args": {},
4883
+ "description": "Publish messages to a work-queue topic from this machine through MJ code (no API key needed)",
4884
+ "examples": [
4885
+ "<%= config.bin %> <%= command.id %> --topic samples.hello --payload '{\"name\":\"Paul\"}'",
4886
+ "<%= config.bin %> <%= command.id %> --topic samples.hello --payload '{\"sleepMs\":60000}' --partition-key customer-42",
4887
+ "<%= config.bin %> <%= command.id %> --topic samples.hello --count 5 --partition-key k1 --attribute source=demo"
4888
+ ],
4889
+ "flags": {
4890
+ "topic": {
4891
+ "char": "t",
4892
+ "description": "Topic name",
4893
+ "name": "topic",
4894
+ "required": true,
4895
+ "hasDynamicHelp": false,
4896
+ "multiple": false,
4897
+ "type": "option"
4898
+ },
4899
+ "payload": {
4900
+ "char": "p",
4901
+ "description": "Message payload as JSON",
4902
+ "name": "payload",
4903
+ "default": "{}",
4904
+ "hasDynamicHelp": false,
4905
+ "multiple": false,
4906
+ "type": "option"
4907
+ },
4908
+ "partition-key": {
4909
+ "char": "k",
4910
+ "description": "PartitionKey for Exclusive / Ordered subscriptions",
4911
+ "name": "partition-key",
4912
+ "hasDynamicHelp": false,
4913
+ "multiple": false,
4914
+ "type": "option"
4915
+ },
4916
+ "dedup-key": {
4917
+ "description": "DeduplicationKey: a repeat within the topic TTL is reported as Duplicate",
4918
+ "name": "dedup-key",
4919
+ "hasDynamicHelp": false,
4920
+ "multiple": false,
4921
+ "type": "option"
4922
+ },
4923
+ "attribute": {
4924
+ "char": "a",
4925
+ "description": "Message attribute as key=value (repeatable)",
4926
+ "name": "attribute",
4927
+ "hasDynamicHelp": false,
4928
+ "multiple": true,
4929
+ "type": "option"
4930
+ },
4931
+ "count": {
4932
+ "char": "n",
4933
+ "description": "How many copies to publish in one batch",
4934
+ "name": "count",
4935
+ "default": 1,
4936
+ "hasDynamicHelp": false,
4937
+ "multiple": false,
4938
+ "type": "option"
4939
+ },
4940
+ "json": {
4941
+ "description": "Print the publish results as JSON",
4942
+ "name": "json",
4943
+ "allowNo": false,
4944
+ "type": "boolean"
4888
4945
  }
4889
4946
  },
4890
- "description": "Check a rubric snapshot file for duplicate keys, gates, weights, and scales.",
4891
- "flags": {},
4892
4947
  "hasDynamicHelp": false,
4893
4948
  "hiddenAliases": [],
4894
- "id": "rubric:validate",
4949
+ "id": "queue:publish",
4895
4950
  "pluginAlias": "@memberjunction/cli",
4896
4951
  "pluginName": "@memberjunction/cli",
4897
4952
  "pluginType": "core",
@@ -4901,64 +4956,87 @@
4901
4956
  "relativePath": [
4902
4957
  "dist",
4903
4958
  "commands",
4904
- "rubric",
4905
- "validate.js"
4959
+ "queue",
4960
+ "publish.js"
4906
4961
  ]
4907
4962
  },
4908
- "sql-audit": {
4963
+ "queue:replay": {
4909
4964
  "aliases": [],
4910
4965
  "args": {},
4911
- "description": "Compare source and target databases for migration verification",
4966
+ "description": "Replay one dead-lettered work-queue delivery",
4912
4967
  "examples": [
4913
- "<%= config.bin %> sql-audit --source \"mssql://sa:pass@host/db\" --target \"postgres://user:pass@host:5432/db\"",
4914
- "<%= config.bin %> sql-audit --source \"mssql://sa:pass@host/db\" --target \"postgres://user:pass@host:5432/db\" --output report.txt",
4915
- "<%= config.bin %> sql-audit --source \"mssql://sa:pass@host/db\" --target \"postgres://user:pass@host:5432/db\" --source-schema __mj --target-schema __mj"
4968
+ "<%= config.bin %> <%= command.id %> --subscription integration.apply --delivery <id> --note \"mapping fixed\""
4916
4969
  ],
4917
4970
  "flags": {
4918
- "source": {
4919
- "description": "Source database connection string (mssql://... or postgres://...)",
4920
- "name": "source",
4971
+ "subscription": {
4972
+ "char": "s",
4973
+ "description": "Subscription name",
4974
+ "name": "subscription",
4921
4975
  "required": true,
4922
4976
  "hasDynamicHelp": false,
4923
4977
  "multiple": false,
4924
4978
  "type": "option"
4925
4979
  },
4926
- "target": {
4927
- "description": "Target database connection string (mssql://... or postgres://...)",
4928
- "name": "target",
4980
+ "delivery": {
4981
+ "char": "d",
4982
+ "description": "DeliveryID from `mj queue dead-letters`",
4983
+ "name": "delivery",
4929
4984
  "required": true,
4930
4985
  "hasDynamicHelp": false,
4931
4986
  "multiple": false,
4932
4987
  "type": "option"
4933
4988
  },
4934
- "source-schema": {
4935
- "description": "Source schema name",
4936
- "name": "source-schema",
4937
- "default": "__mj",
4989
+ "note": {
4990
+ "description": "Operator note stored with the resolution",
4991
+ "name": "note",
4938
4992
  "hasDynamicHelp": false,
4939
4993
  "multiple": false,
4940
4994
  "type": "option"
4941
- },
4942
- "target-schema": {
4943
- "description": "Target schema name",
4944
- "name": "target-schema",
4945
- "default": "__mj",
4995
+ }
4996
+ },
4997
+ "hasDynamicHelp": false,
4998
+ "hiddenAliases": [],
4999
+ "id": "queue:replay",
5000
+ "pluginAlias": "@memberjunction/cli",
5001
+ "pluginName": "@memberjunction/cli",
5002
+ "pluginType": "core",
5003
+ "strict": true,
5004
+ "enableJsonFlag": false,
5005
+ "isESM": true,
5006
+ "relativePath": [
5007
+ "dist",
5008
+ "commands",
5009
+ "queue",
5010
+ "replay.js"
5011
+ ]
5012
+ },
5013
+ "queue:stats": {
5014
+ "aliases": [],
5015
+ "args": {},
5016
+ "description": "Show pending, in-flight and dead-lettered counts for work-queue subscriptions",
5017
+ "examples": [
5018
+ "<%= config.bin %> <%= command.id %>",
5019
+ "<%= config.bin %> <%= command.id %> --subscription email.unsubscribe --json"
5020
+ ],
5021
+ "flags": {
5022
+ "subscription": {
5023
+ "char": "s",
5024
+ "description": "Subscription name; omit for every subscription",
5025
+ "name": "subscription",
4946
5026
  "hasDynamicHelp": false,
4947
5027
  "multiple": false,
4948
5028
  "type": "option"
4949
5029
  },
4950
- "output": {
4951
- "char": "o",
4952
- "description": "Save report to file",
4953
- "name": "output",
4954
- "hasDynamicHelp": false,
4955
- "multiple": false,
4956
- "type": "option"
5030
+ "json": {
5031
+ "description": "Print JSON instead of a table",
5032
+ "name": "json",
5033
+ "allowNo": false,
5034
+ "type": "boolean"
4957
5035
  }
4958
5036
  },
4959
5037
  "hasDynamicHelp": false,
4960
5038
  "hiddenAliases": [],
4961
- "id": "sql-audit",
5039
+ "id": "queue:stats",
4962
5040
  "pluginAlias": "@memberjunction/cli",
4963
5041
  "pluginName": "@memberjunction/cli",
4964
5042
  "pluginType": "core",
@@ -4968,14 +5046,38 @@
4968
5046
  "relativePath": [
4969
5047
  "dist",
4970
5048
  "commands",
4971
- "sql-audit",
4972
- "index.js"
5049
+ "queue",
5050
+ "stats.js"
4973
5051
  ]
4974
5052
  },
4975
- "sql-audit:usage": {
5053
+ "queue:sweep": {
5054
+ "aliases": [],
5055
+ "args": {},
5056
+ "description": "Run one work-queue sweeper pass (lease expiry, retention, dedup purge) and print what it did",
5057
+ "examples": [
5058
+ "<%= config.bin %> <%= command.id %>"
5059
+ ],
5060
+ "flags": {},
5061
+ "hasDynamicHelp": false,
5062
+ "hiddenAliases": [],
5063
+ "id": "queue:sweep",
5064
+ "pluginAlias": "@memberjunction/cli",
5065
+ "pluginName": "@memberjunction/cli",
5066
+ "pluginType": "core",
5067
+ "strict": true,
5068
+ "enableJsonFlag": false,
5069
+ "isESM": true,
5070
+ "relativePath": [
5071
+ "dist",
5072
+ "commands",
5073
+ "queue",
5074
+ "sweep.js"
5075
+ ]
5076
+ },
5077
+ "queue:usage": {
4976
5078
  "aliases": [],
4977
5079
  "args": {},
4978
- "description": "Show usage, flags, examples, and runtime hints for every `mj sql-audit` command.",
5080
+ "description": "Show usage, flags, examples, and runtime hints for every `mj queue` command.",
4979
5081
  "flags": {
4980
5082
  "format": {
4981
5083
  "description": "Output format. Defaults to text on a terminal and json when stdout is piped.",
@@ -4992,7 +5094,7 @@
4992
5094
  },
4993
5095
  "hasDynamicHelp": false,
4994
5096
  "hiddenAliases": [],
4995
- "id": "sql-audit:usage",
5097
+ "id": "queue:usage",
4996
5098
  "pluginAlias": "@memberjunction/cli",
4997
5099
  "pluginName": "@memberjunction/cli",
4998
5100
  "pluginType": "core",
@@ -5002,82 +5104,37 @@
5002
5104
  "relativePath": [
5003
5105
  "dist",
5004
5106
  "commands",
5005
- "sql-audit",
5107
+ "queue",
5006
5108
  "usage.js"
5007
5109
  ]
5008
5110
  },
5009
- "sql-convert": {
5111
+ "queue:validate-bindings": {
5010
5112
  "aliases": [],
5011
- "args": {
5012
- "source": {
5013
- "description": "Source SQL file path",
5014
- "name": "source",
5015
- "required": true
5016
- }
5017
- },
5018
- "description": "Convert SQL files between database dialects using rule-based BatchConverter engine",
5113
+ "args": {},
5114
+ "description": "Validate work-queue topology and cloud bindings; exits 1 on any error",
5019
5115
  "examples": [
5020
- "<%= config.bin %> sql-convert ./migration.sql --from tsql --to postgres",
5021
- "<%= config.bin %> sql-convert ./migration.sql --from tsql --to postgres --output converted.sql",
5022
- "<%= config.bin %> sql-convert ./migration.sql --from tsql --to postgres --schema my_schema",
5023
- "<%= config.bin %> sql-convert ./migration.sql --from tsql --to postgres --no-header --verbose"
5116
+ "<%= config.bin %> <%= command.id %>",
5117
+ "<%= config.bin %> <%= command.id %> --transport AWS-prod"
5024
5118
  ],
5025
5119
  "flags": {
5026
- "from": {
5027
- "description": "Source SQL dialect",
5028
- "name": "from",
5029
- "required": true,
5030
- "hasDynamicHelp": false,
5031
- "multiple": false,
5032
- "type": "option"
5033
- },
5034
- "to": {
5035
- "description": "Target SQL dialect",
5036
- "name": "to",
5037
- "required": true,
5038
- "hasDynamicHelp": false,
5039
- "multiple": false,
5040
- "type": "option"
5041
- },
5042
- "output": {
5043
- "char": "o",
5044
- "description": "Output file path (default: <source>.converted.<ext>)",
5045
- "name": "output",
5046
- "hasDynamicHelp": false,
5047
- "multiple": false,
5048
- "type": "option"
5049
- },
5050
- "schema": {
5051
- "description": "Target schema name",
5052
- "name": "schema",
5053
- "default": "__mj",
5120
+ "transport": {
5121
+ "char": "t",
5122
+ "description": "Validate one transport's bindings against its resources",
5123
+ "name": "transport",
5054
5124
  "hasDynamicHelp": false,
5055
5125
  "multiple": false,
5056
5126
  "type": "option"
5057
5127
  },
5058
- "no-header": {
5059
- "description": "Skip PG header (extensions, schema, implicit cast)",
5060
- "name": "no-header",
5061
- "allowNo": false,
5062
- "type": "boolean"
5063
- },
5064
- "no-post-process": {
5065
- "description": "Skip post-processing pass",
5066
- "name": "no-post-process",
5067
- "allowNo": false,
5068
- "type": "boolean"
5069
- },
5070
- "verbose": {
5071
- "char": "v",
5072
- "description": "Show per-statement progress and detailed report",
5073
- "name": "verbose",
5128
+ "json": {
5129
+ "description": "Print issues as JSON",
5130
+ "name": "json",
5074
5131
  "allowNo": false,
5075
5132
  "type": "boolean"
5076
5133
  }
5077
5134
  },
5078
5135
  "hasDynamicHelp": false,
5079
5136
  "hiddenAliases": [],
5080
- "id": "sql-convert",
5137
+ "id": "queue:validate-bindings",
5081
5138
  "pluginAlias": "@memberjunction/cli",
5082
5139
  "pluginName": "@memberjunction/cli",
5083
5140
  "pluginType": "core",
@@ -5087,31 +5144,103 @@
5087
5144
  "relativePath": [
5088
5145
  "dist",
5089
5146
  "commands",
5090
- "sql-convert",
5091
- "index.js"
5147
+ "queue",
5148
+ "validate-bindings.js"
5092
5149
  ]
5093
5150
  },
5094
- "sql-convert:usage": {
5151
+ "queue:work": {
5095
5152
  "aliases": [],
5096
5153
  "args": {},
5097
- "description": "Show usage, flags, examples, and runtime hints for every `mj sql-convert` command.",
5154
+ "description": "Run work-queue subscriptions in this process: once for a container job, or until stopped",
5155
+ "examples": [
5156
+ "<%= config.bin %> <%= command.id %> --subscription venue-import --once",
5157
+ "<%= config.bin %> <%= command.id %> --subscription venue-import --once --max 5 --concurrency 2 --max-duration-ms 3300000",
5158
+ "<%= config.bin %> <%= command.id %> --subscription \"*\""
5159
+ ],
5098
5160
  "flags": {
5099
- "format": {
5100
- "description": "Output format. Defaults to text on a terminal and json when stdout is piped.",
5101
- "name": "format",
5161
+ "subscription": {
5162
+ "char": "s",
5163
+ "description": "Subscription name, or '*' for every MJWorker subscription",
5164
+ "name": "subscription",
5165
+ "required": true,
5102
5166
  "hasDynamicHelp": false,
5103
5167
  "multiple": false,
5104
- "options": [
5105
- "text",
5106
- "json",
5107
- "md"
5168
+ "type": "option"
5169
+ },
5170
+ "once": {
5171
+ "description": "Receive up to --max deliveries, drain and exit (container-job mode)",
5172
+ "name": "once",
5173
+ "allowNo": false,
5174
+ "type": "boolean"
5175
+ },
5176
+ "max": {
5177
+ "dependsOn": [
5178
+ "once"
5179
+ ],
5180
+ "description": "With --once: how many deliveries to receive",
5181
+ "name": "max",
5182
+ "default": 1,
5183
+ "hasDynamicHelp": false,
5184
+ "multiple": false,
5185
+ "type": "option"
5186
+ },
5187
+ "idle-exit-ms": {
5188
+ "dependsOn": [
5189
+ "once"
5190
+ ],
5191
+ "description": "With --once: exit after this long with an empty queue",
5192
+ "name": "idle-exit-ms",
5193
+ "default": 5000,
5194
+ "hasDynamicHelp": false,
5195
+ "multiple": false,
5196
+ "type": "option"
5197
+ },
5198
+ "max-duration-ms": {
5199
+ "dependsOn": [
5200
+ "once"
5108
5201
  ],
5202
+ "description": "With --once: stop claiming after this long and drain (keep it below the scheduler's job deadline)",
5203
+ "name": "max-duration-ms",
5204
+ "hasDynamicHelp": false,
5205
+ "multiple": false,
5206
+ "type": "option"
5207
+ },
5208
+ "concurrency": {
5209
+ "description": "Handlers in flight per subscription",
5210
+ "name": "concurrency",
5211
+ "default": 1,
5212
+ "hasDynamicHelp": false,
5213
+ "multiple": false,
5214
+ "type": "option"
5215
+ },
5216
+ "shutdown-drain-ms": {
5217
+ "description": "How long in-flight handlers get to finish on exit; the drain can take twice this",
5218
+ "name": "shutdown-drain-ms",
5219
+ "default": 30000,
5220
+ "hasDynamicHelp": false,
5221
+ "multiple": false,
5222
+ "type": "option"
5223
+ },
5224
+ "sweeper-interval-ms": {
5225
+ "description": "Without --once: how often to run the sweeper (lease expiry, retention, dedup purge); 0 turns it off",
5226
+ "name": "sweeper-interval-ms",
5227
+ "default": 300000,
5228
+ "hasDynamicHelp": false,
5229
+ "multiple": false,
5230
+ "type": "option"
5231
+ },
5232
+ "reconcile-interval-ms": {
5233
+ "description": "Without --once: how often to re-plan subscriptions; 0 turns it off",
5234
+ "name": "reconcile-interval-ms",
5235
+ "default": 30000,
5236
+ "hasDynamicHelp": false,
5237
+ "multiple": false,
5109
5238
  "type": "option"
5110
5239
  }
5111
5240
  },
5112
5241
  "hasDynamicHelp": false,
5113
5242
  "hiddenAliases": [],
5114
- "id": "sql-convert:usage",
5243
+ "id": "queue:work",
5115
5244
  "pluginAlias": "@memberjunction/cli",
5116
5245
  "pluginName": "@memberjunction/cli",
5117
5246
  "pluginType": "core",
@@ -5121,8 +5250,8 @@
5121
5250
  "relativePath": [
5122
5251
  "dist",
5123
5252
  "commands",
5124
- "sql-convert",
5125
- "usage.js"
5253
+ "queue",
5254
+ "work.js"
5126
5255
  ]
5127
5256
  },
5128
5257
  "standards:adopt": {
@@ -5240,30 +5369,100 @@
5240
5369
  "hasDynamicHelp": false,
5241
5370
  "multiple": false,
5242
5371
  "type": "option"
5243
- },
5244
- "check": {
5245
- "description": "Only run these check ids.",
5246
- "name": "check",
5247
- "hasDynamicHelp": false,
5248
- "multiple": true,
5249
- "type": "option"
5250
- },
5251
- "strict": {
5252
- "description": "Treat warnings as errors. Use in CI once a newly adopted check is clean.",
5253
- "name": "strict",
5254
- "allowNo": false,
5255
- "type": "boolean"
5256
- },
5257
- "quiet": {
5258
- "description": "Print only the summary line.",
5259
- "name": "quiet",
5260
- "allowNo": false,
5261
- "type": "boolean"
5372
+ },
5373
+ "check": {
5374
+ "description": "Only run these check ids.",
5375
+ "name": "check",
5376
+ "hasDynamicHelp": false,
5377
+ "multiple": true,
5378
+ "type": "option"
5379
+ },
5380
+ "strict": {
5381
+ "description": "Treat warnings as errors. Use in CI once a newly adopted check is clean.",
5382
+ "name": "strict",
5383
+ "allowNo": false,
5384
+ "type": "boolean"
5385
+ },
5386
+ "quiet": {
5387
+ "description": "Print only the summary line.",
5388
+ "name": "quiet",
5389
+ "allowNo": false,
5390
+ "type": "boolean"
5391
+ }
5392
+ },
5393
+ "hasDynamicHelp": false,
5394
+ "hiddenAliases": [],
5395
+ "id": "standards:check",
5396
+ "pluginAlias": "@memberjunction/cli",
5397
+ "pluginName": "@memberjunction/cli",
5398
+ "pluginType": "core",
5399
+ "strict": true,
5400
+ "enableJsonFlag": false,
5401
+ "isESM": true,
5402
+ "relativePath": [
5403
+ "dist",
5404
+ "commands",
5405
+ "standards",
5406
+ "check.js"
5407
+ ]
5408
+ },
5409
+ "standards:list": {
5410
+ "aliases": [],
5411
+ "args": {},
5412
+ "description": "List every MemberJunction standard and this repository’s stance on it",
5413
+ "flags": {
5414
+ "cwd": {
5415
+ "description": "Repository root. Defaults to the current directory.",
5416
+ "name": "cwd",
5417
+ "hasDynamicHelp": false,
5418
+ "multiple": false,
5419
+ "type": "option"
5420
+ },
5421
+ "verbose": {
5422
+ "char": "v",
5423
+ "description": "Include the full description of each standard.",
5424
+ "name": "verbose",
5425
+ "allowNo": false,
5426
+ "type": "boolean"
5427
+ }
5428
+ },
5429
+ "hasDynamicHelp": false,
5430
+ "hiddenAliases": [],
5431
+ "id": "standards:list",
5432
+ "pluginAlias": "@memberjunction/cli",
5433
+ "pluginName": "@memberjunction/cli",
5434
+ "pluginType": "core",
5435
+ "strict": true,
5436
+ "enableJsonFlag": false,
5437
+ "isESM": true,
5438
+ "relativePath": [
5439
+ "dist",
5440
+ "commands",
5441
+ "standards",
5442
+ "list.js"
5443
+ ]
5444
+ },
5445
+ "standards:usage": {
5446
+ "aliases": [],
5447
+ "args": {},
5448
+ "description": "Show usage, flags, examples, and runtime hints for every `mj standards` command.",
5449
+ "flags": {
5450
+ "format": {
5451
+ "description": "Output format. Defaults to text on a terminal and json when stdout is piped.",
5452
+ "name": "format",
5453
+ "hasDynamicHelp": false,
5454
+ "multiple": false,
5455
+ "options": [
5456
+ "text",
5457
+ "json",
5458
+ "md"
5459
+ ],
5460
+ "type": "option"
5262
5461
  }
5263
5462
  },
5264
5463
  "hasDynamicHelp": false,
5265
5464
  "hiddenAliases": [],
5266
- "id": "standards:check",
5465
+ "id": "standards:usage",
5267
5466
  "pluginAlias": "@memberjunction/cli",
5268
5467
  "pluginName": "@memberjunction/cli",
5269
5468
  "pluginType": "core",
@@ -5274,32 +5473,95 @@
5274
5473
  "dist",
5275
5474
  "commands",
5276
5475
  "standards",
5277
- "check.js"
5476
+ "usage.js"
5278
5477
  ]
5279
5478
  },
5280
- "standards:list": {
5479
+ "translate-sql": {
5281
5480
  "aliases": [],
5282
5481
  "args": {},
5283
- "description": "List every MemberJunction standard and this repository’s stance on it",
5482
+ "description": "Translate SQL fragments between database dialects (SQL Server ↔ PostgreSQL)",
5483
+ "examples": [
5484
+ "<%= config.bin %> translate-sql --from sqlserver --to postgresql --dry-run",
5485
+ "<%= config.bin %> translate-sql --from sqlserver --to postgresql --scope queries",
5486
+ "<%= config.bin %> translate-sql --from sqlserver --to postgresql --sql \"SELECT TOP 10 [Name] FROM [Users]\"",
5487
+ "<%= config.bin %> translate-sql --from sqlserver --to postgresql --scope all --output ./reports"
5488
+ ],
5284
5489
  "flags": {
5285
- "cwd": {
5286
- "description": "Repository root. Defaults to the current directory.",
5287
- "name": "cwd",
5490
+ "from": {
5491
+ "description": "Source SQL dialect",
5492
+ "name": "from",
5493
+ "required": true,
5288
5494
  "hasDynamicHelp": false,
5289
5495
  "multiple": false,
5496
+ "options": [
5497
+ "sqlserver",
5498
+ "postgresql"
5499
+ ],
5290
5500
  "type": "option"
5291
5501
  },
5292
- "verbose": {
5293
- "char": "v",
5294
- "description": "Include the full description of each standard.",
5295
- "name": "verbose",
5502
+ "to": {
5503
+ "description": "Target SQL dialect",
5504
+ "name": "to",
5505
+ "required": true,
5506
+ "hasDynamicHelp": false,
5507
+ "multiple": false,
5508
+ "options": [
5509
+ "sqlserver",
5510
+ "postgresql"
5511
+ ],
5512
+ "type": "option"
5513
+ },
5514
+ "scope": {
5515
+ "description": "What to scan for translation",
5516
+ "name": "scope",
5517
+ "default": "all",
5518
+ "hasDynamicHelp": false,
5519
+ "multiple": false,
5520
+ "options": [
5521
+ "queries",
5522
+ "views",
5523
+ "filters",
5524
+ "all"
5525
+ ],
5526
+ "type": "option"
5527
+ },
5528
+ "sql": {
5529
+ "description": "Translate a single SQL fragment (inline mode)",
5530
+ "name": "sql",
5531
+ "hasDynamicHelp": false,
5532
+ "multiple": false,
5533
+ "type": "option"
5534
+ },
5535
+ "dry-run": {
5536
+ "description": "Show what would be translated without making changes",
5537
+ "name": "dry-run",
5538
+ "allowNo": false,
5539
+ "type": "boolean"
5540
+ },
5541
+ "review": {
5542
+ "description": "Generate review report only (no writes to database)",
5543
+ "name": "review",
5544
+ "allowNo": false,
5545
+ "type": "boolean"
5546
+ },
5547
+ "output": {
5548
+ "char": "o",
5549
+ "description": "Output directory for the translation report",
5550
+ "name": "output",
5551
+ "hasDynamicHelp": false,
5552
+ "multiple": false,
5553
+ "type": "option"
5554
+ },
5555
+ "force": {
5556
+ "description": "Re-translate even if platform variants already exist",
5557
+ "name": "force",
5296
5558
  "allowNo": false,
5297
5559
  "type": "boolean"
5298
5560
  }
5299
5561
  },
5300
5562
  "hasDynamicHelp": false,
5301
5563
  "hiddenAliases": [],
5302
- "id": "standards:list",
5564
+ "id": "translate-sql",
5303
5565
  "pluginAlias": "@memberjunction/cli",
5304
5566
  "pluginName": "@memberjunction/cli",
5305
5567
  "pluginType": "core",
@@ -5309,14 +5571,14 @@
5309
5571
  "relativePath": [
5310
5572
  "dist",
5311
5573
  "commands",
5312
- "standards",
5313
- "list.js"
5574
+ "translate-sql",
5575
+ "index.js"
5314
5576
  ]
5315
5577
  },
5316
- "standards:usage": {
5578
+ "translate-sql:usage": {
5317
5579
  "aliases": [],
5318
5580
  "args": {},
5319
- "description": "Show usage, flags, examples, and runtime hints for every `mj standards` command.",
5581
+ "description": "Show usage, flags, examples, and runtime hints for every `mj translate-sql` command.",
5320
5582
  "flags": {
5321
5583
  "format": {
5322
5584
  "description": "Output format. Defaults to text on a terminal and json when stdout is piped.",
@@ -5333,7 +5595,7 @@
5333
5595
  },
5334
5596
  "hasDynamicHelp": false,
5335
5597
  "hiddenAliases": [],
5336
- "id": "standards:usage",
5598
+ "id": "translate-sql:usage",
5337
5599
  "pluginAlias": "@memberjunction/cli",
5338
5600
  "pluginName": "@memberjunction/cli",
5339
5601
  "pluginType": "core",
@@ -5343,7 +5605,7 @@
5343
5605
  "relativePath": [
5344
5606
  "dist",
5345
5607
  "commands",
5346
- "standards",
5608
+ "translate-sql",
5347
5609
  "usage.js"
5348
5610
  ]
5349
5611
  },
@@ -6941,139 +7203,6 @@
6941
7203
  "validate.js"
6942
7204
  ]
6943
7205
  },
6944
- "translate-sql": {
6945
- "aliases": [],
6946
- "args": {},
6947
- "description": "Translate SQL fragments between database dialects (SQL Server ↔ PostgreSQL)",
6948
- "examples": [
6949
- "<%= config.bin %> translate-sql --from sqlserver --to postgresql --dry-run",
6950
- "<%= config.bin %> translate-sql --from sqlserver --to postgresql --scope queries",
6951
- "<%= config.bin %> translate-sql --from sqlserver --to postgresql --sql \"SELECT TOP 10 [Name] FROM [Users]\"",
6952
- "<%= config.bin %> translate-sql --from sqlserver --to postgresql --scope all --output ./reports"
6953
- ],
6954
- "flags": {
6955
- "from": {
6956
- "description": "Source SQL dialect",
6957
- "name": "from",
6958
- "required": true,
6959
- "hasDynamicHelp": false,
6960
- "multiple": false,
6961
- "options": [
6962
- "sqlserver",
6963
- "postgresql"
6964
- ],
6965
- "type": "option"
6966
- },
6967
- "to": {
6968
- "description": "Target SQL dialect",
6969
- "name": "to",
6970
- "required": true,
6971
- "hasDynamicHelp": false,
6972
- "multiple": false,
6973
- "options": [
6974
- "sqlserver",
6975
- "postgresql"
6976
- ],
6977
- "type": "option"
6978
- },
6979
- "scope": {
6980
- "description": "What to scan for translation",
6981
- "name": "scope",
6982
- "default": "all",
6983
- "hasDynamicHelp": false,
6984
- "multiple": false,
6985
- "options": [
6986
- "queries",
6987
- "views",
6988
- "filters",
6989
- "all"
6990
- ],
6991
- "type": "option"
6992
- },
6993
- "sql": {
6994
- "description": "Translate a single SQL fragment (inline mode)",
6995
- "name": "sql",
6996
- "hasDynamicHelp": false,
6997
- "multiple": false,
6998
- "type": "option"
6999
- },
7000
- "dry-run": {
7001
- "description": "Show what would be translated without making changes",
7002
- "name": "dry-run",
7003
- "allowNo": false,
7004
- "type": "boolean"
7005
- },
7006
- "review": {
7007
- "description": "Generate review report only (no writes to database)",
7008
- "name": "review",
7009
- "allowNo": false,
7010
- "type": "boolean"
7011
- },
7012
- "output": {
7013
- "char": "o",
7014
- "description": "Output directory for the translation report",
7015
- "name": "output",
7016
- "hasDynamicHelp": false,
7017
- "multiple": false,
7018
- "type": "option"
7019
- },
7020
- "force": {
7021
- "description": "Re-translate even if platform variants already exist",
7022
- "name": "force",
7023
- "allowNo": false,
7024
- "type": "boolean"
7025
- }
7026
- },
7027
- "hasDynamicHelp": false,
7028
- "hiddenAliases": [],
7029
- "id": "translate-sql",
7030
- "pluginAlias": "@memberjunction/cli",
7031
- "pluginName": "@memberjunction/cli",
7032
- "pluginType": "core",
7033
- "strict": true,
7034
- "enableJsonFlag": false,
7035
- "isESM": true,
7036
- "relativePath": [
7037
- "dist",
7038
- "commands",
7039
- "translate-sql",
7040
- "index.js"
7041
- ]
7042
- },
7043
- "translate-sql:usage": {
7044
- "aliases": [],
7045
- "args": {},
7046
- "description": "Show usage, flags, examples, and runtime hints for every `mj translate-sql` command.",
7047
- "flags": {
7048
- "format": {
7049
- "description": "Output format. Defaults to text on a terminal and json when stdout is piped.",
7050
- "name": "format",
7051
- "hasDynamicHelp": false,
7052
- "multiple": false,
7053
- "options": [
7054
- "text",
7055
- "json",
7056
- "md"
7057
- ],
7058
- "type": "option"
7059
- }
7060
- },
7061
- "hasDynamicHelp": false,
7062
- "hiddenAliases": [],
7063
- "id": "translate-sql:usage",
7064
- "pluginAlias": "@memberjunction/cli",
7065
- "pluginName": "@memberjunction/cli",
7066
- "pluginType": "core",
7067
- "strict": true,
7068
- "enableJsonFlag": false,
7069
- "isESM": true,
7070
- "relativePath": [
7071
- "dist",
7072
- "commands",
7073
- "translate-sql",
7074
- "usage.js"
7075
- ]
7076
- },
7077
7206
  "update:claude": {
7078
7207
  "aliases": [],
7079
7208
  "args": {},
@@ -8052,7 +8181,7 @@
8052
8181
  "dev:workspace:clean": {
8053
8182
  "aliases": [],
8054
8183
  "args": {},
8055
- "description": "Remove exactly the generated cross-repo workspace residue at a parent directory: the three generated files, the .mj-dev-workspace.json sentinel, pnpm-lock.yaml and the node_modules tree. Member repo checkouts and .bak backups are never touched. Without --force a valid sentinel must be present, so a hand-made workspace cannot be torn down by accident. Preview first with --dry-run, which deletes nothing and exits 0.",
8184
+ "description": "Remove exactly the generated cross-repo workspace residue at a parent directory: the three generated files, the .mj-dev-workspace.json sentinel, pnpm-lock.yaml and the node_modules tree, and takes the angular.json prebundle-exclude entries the sentinel records back out. Member repo checkouts are otherwise untouched, and .bak backups are never touched. Without --force a valid sentinel must be present, so a hand-made workspace cannot be torn down by accident. Preview first with --dry-run, which deletes nothing and exits 0.",
8056
8185
  "examples": [
8057
8186
  "<%= config.bin %> dev workspace clean --dir ~/code/bluecypress --dry-run",
8058
8187
  "<%= config.bin %> dev workspace clean --dir ~/code/bluecypress",
@@ -8102,7 +8231,7 @@
8102
8231
  "dev:workspace:doctor": {
8103
8232
  "aliases": [],
8104
8233
  "args": {},
8105
- "description": "Health-check the generated cross-repo pnpm workspace at a parent directory: workspace files, sentinel, pnpm pin vs. active version, member directories, detected-but-unlisted repos, members carrying a standalone install, a one-copy census of the parent package store (more than one @angular/core, rxjs, zone.js or MJ core/global is a FAIL), and member packages whose build output is missing (FAIL) or older than their source (WARN). Prints PASS/WARN/FAIL per check and exits non-zero on any FAIL. Read-only.",
8234
+ "description": "Health-check the generated cross-repo pnpm workspace at a parent directory: workspace files, sentinel, pnpm pin vs. active version, member directories, detected-but-unlisted repos, members carrying a standalone install, a one-copy census of the parent package store (more than one @angular/core, rxjs, zone.js or MJ core/global is a FAIL), recorded angular.json prebundle-exclude entries still present (WARN when not), and member packages whose build output is missing (FAIL) or older than their source (WARN). Prints PASS/WARN/FAIL per check and exits non-zero on any FAIL. Read-only.",
8106
8235
  "examples": [
8107
8236
  "<%= config.bin %> dev workspace doctor",
8108
8237
  "<%= config.bin %> dev workspace doctor --dir ~/code/bluecypress",
@@ -8139,7 +8268,7 @@
8139
8268
  "dev:workspace": {
8140
8269
  "aliases": [],
8141
8270
  "args": {},
8142
- "description": "Join sibling repo clones into one pnpm workspace: writes pnpm-workspace.yaml, .npmrc, package.json (with a `build` script for every member) and the .mj-dev-workspace.json sentinel at their common parent, then runs pnpm install there. Members are the parent's immediate subdirectories carrying an mj-app.json, a @mj-biz-apps package, or the MJ monorepo root name. Existing files are never overwritten without --force (which keeps a .bak of each). Generated files are ephemeral — never commit them; tear them down with `dev workspace clean`.",
8271
+ "description": "Join sibling repo clones into one pnpm workspace: writes pnpm-workspace.yaml, .npmrc, package.json (with a `build` script for every member) and the .mj-dev-workspace.json sentinel at their common parent, then runs pnpm install there. Also adds the linked repos' npm scopes to each app shell's angular.json prebundle exclude (recorded in the sentinel; clean removes them). Members are the parent's immediate subdirectories carrying an mj-app.json, a @mj-biz-apps package, or the MJ monorepo root name. Existing files are never overwritten without --force (which keeps a .bak of each). Generated files are ephemeral — never commit them; tear them down with `dev workspace clean`.",
8143
8272
  "examples": [
8144
8273
  "<%= config.bin %> dev workspace --dir ~/code/bluecypress",
8145
8274
  "<%= config.bin %> dev workspace --dir ~/code/bluecypress --exclude bizapps-sonar",
@@ -8703,5 +8832,5 @@
8703
8832
  ]
8704
8833
  }
8705
8834
  },
8706
- "version": "6.2.2"
8835
+ "version": "6.3.0-edge.1"
8707
8836
  }