@memberjunction/cli 6.3.0-edge.1 → 6.3.0-edge.3

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 (270) hide show
  1. package/README.md +1052 -359
  2. package/dist/baseline/connection.d.ts.map +1 -1
  3. package/dist/baseline/connection.js +12 -1
  4. package/dist/baseline/connection.js.map +1 -1
  5. package/dist/commands/agent/init.d.ts +3 -0
  6. package/dist/commands/agent/init.d.ts.map +1 -1
  7. package/dist/commands/agent/init.js +102 -46
  8. package/dist/commands/agent/init.js.map +1 -1
  9. package/dist/commands/agent/usage.d.ts +7 -0
  10. package/dist/commands/agent/usage.d.ts.map +1 -0
  11. package/dist/commands/agent/usage.js +10 -0
  12. package/dist/commands/agent/usage.js.map +1 -0
  13. package/dist/commands/ai/actions/list.d.ts.map +1 -1
  14. package/dist/commands/ai/actions/list.js +18 -14
  15. package/dist/commands/ai/actions/list.js.map +1 -1
  16. package/dist/commands/ai/actions/run.d.ts.map +1 -1
  17. package/dist/commands/ai/actions/run.js +15 -8
  18. package/dist/commands/ai/actions/run.js.map +1 -1
  19. package/dist/commands/ai/agents/list.d.ts.map +1 -1
  20. package/dist/commands/ai/agents/list.js +18 -14
  21. package/dist/commands/ai/agents/list.js.map +1 -1
  22. package/dist/commands/ai/agents/run.d.ts.map +1 -1
  23. package/dist/commands/ai/agents/run.js +19 -8
  24. package/dist/commands/ai/agents/run.js.map +1 -1
  25. package/dist/commands/ai/audit/agent-run.d.ts.map +1 -1
  26. package/dist/commands/ai/audit/agent-run.js +62 -56
  27. package/dist/commands/ai/audit/agent-run.js.map +1 -1
  28. package/dist/commands/ai/prompts/list.d.ts.map +1 -1
  29. package/dist/commands/ai/prompts/list.js +6 -3
  30. package/dist/commands/ai/prompts/list.js.map +1 -1
  31. package/dist/commands/ai/prompts/run.d.ts.map +1 -1
  32. package/dist/commands/ai/prompts/run.js +17 -10
  33. package/dist/commands/ai/prompts/run.js.map +1 -1
  34. package/dist/commands/app/install.d.ts +4 -0
  35. package/dist/commands/app/install.d.ts.map +1 -1
  36. package/dist/commands/app/install.js +36 -1
  37. package/dist/commands/app/install.js.map +1 -1
  38. package/dist/commands/app/upgrade.d.ts +1 -0
  39. package/dist/commands/app/upgrade.d.ts.map +1 -1
  40. package/dist/commands/app/upgrade.js +9 -0
  41. package/dist/commands/app/upgrade.js.map +1 -1
  42. package/dist/commands/codegen/manifest.d.ts +40 -0
  43. package/dist/commands/codegen/manifest.d.ts.map +1 -1
  44. package/dist/commands/codegen/manifest.js +124 -3
  45. package/dist/commands/codegen/manifest.js.map +1 -1
  46. package/dist/commands/diag/usage.d.ts +7 -0
  47. package/dist/commands/diag/usage.d.ts.map +1 -0
  48. package/dist/commands/diag/usage.js +10 -0
  49. package/dist/commands/diag/usage.js.map +1 -0
  50. package/dist/commands/doctor/index.d.ts +6 -0
  51. package/dist/commands/doctor/index.d.ts.map +1 -1
  52. package/dist/commands/doctor/index.js +42 -0
  53. package/dist/commands/doctor/index.js.map +1 -1
  54. package/dist/commands/explorer/postbuild.d.ts +14 -0
  55. package/dist/commands/explorer/postbuild.d.ts.map +1 -0
  56. package/dist/commands/explorer/postbuild.js +49 -0
  57. package/dist/commands/explorer/postbuild.js.map +1 -0
  58. package/dist/commands/explorer/usage.d.ts +7 -0
  59. package/dist/commands/explorer/usage.d.ts.map +1 -0
  60. package/dist/commands/explorer/usage.js +10 -0
  61. package/dist/commands/explorer/usage.js.map +1 -0
  62. package/dist/commands/harness/account/add.d.ts +22 -0
  63. package/dist/commands/harness/account/add.d.ts.map +1 -0
  64. package/dist/commands/harness/account/add.js +100 -0
  65. package/dist/commands/harness/account/add.js.map +1 -0
  66. package/dist/commands/harness/account/clear-cooldown.d.ts +13 -0
  67. package/dist/commands/harness/account/clear-cooldown.d.ts.map +1 -0
  68. package/dist/commands/harness/account/clear-cooldown.js +32 -0
  69. package/dist/commands/harness/account/clear-cooldown.js.map +1 -0
  70. package/dist/commands/harness/account/disable.d.ts +13 -0
  71. package/dist/commands/harness/account/disable.d.ts.map +1 -0
  72. package/dist/commands/harness/account/disable.js +34 -0
  73. package/dist/commands/harness/account/disable.js.map +1 -0
  74. package/dist/commands/harness/account/enable.d.ts +13 -0
  75. package/dist/commands/harness/account/enable.d.ts.map +1 -0
  76. package/dist/commands/harness/account/enable.js +34 -0
  77. package/dist/commands/harness/account/enable.js.map +1 -0
  78. package/dist/commands/harness/account/index.d.ts +7 -0
  79. package/dist/commands/harness/account/index.d.ts.map +1 -0
  80. package/dist/commands/harness/account/index.js +23 -0
  81. package/dist/commands/harness/account/index.js.map +1 -0
  82. package/dist/commands/harness/account/list.d.ts +15 -0
  83. package/dist/commands/harness/account/list.d.ts.map +1 -0
  84. package/dist/commands/harness/account/list.js +58 -0
  85. package/dist/commands/harness/account/list.js.map +1 -0
  86. package/dist/commands/harness/account/login.d.ts +16 -0
  87. package/dist/commands/harness/account/login.d.ts.map +1 -0
  88. package/dist/commands/harness/account/login.js +50 -0
  89. package/dist/commands/harness/account/login.js.map +1 -0
  90. package/dist/commands/harness/account/remove.d.ts +14 -0
  91. package/dist/commands/harness/account/remove.d.ts.map +1 -0
  92. package/dist/commands/harness/account/remove.js +43 -0
  93. package/dist/commands/harness/account/remove.js.map +1 -0
  94. package/dist/commands/harness/account/set-strategy.d.ts +13 -0
  95. package/dist/commands/harness/account/set-strategy.d.ts.map +1 -0
  96. package/dist/commands/harness/account/set-strategy.js +38 -0
  97. package/dist/commands/harness/account/set-strategy.js.map +1 -0
  98. package/dist/commands/harness/index.d.ts +7 -0
  99. package/dist/commands/harness/index.d.ts.map +1 -0
  100. package/dist/commands/harness/index.js +22 -0
  101. package/dist/commands/harness/index.js.map +1 -0
  102. package/dist/commands/harness/usage.d.ts +7 -0
  103. package/dist/commands/harness/usage.d.ts.map +1 -0
  104. package/dist/commands/harness/usage.js +10 -0
  105. package/dist/commands/harness/usage.js.map +1 -0
  106. package/dist/commands/migrate/convert.d.ts +25 -1
  107. package/dist/commands/migrate/convert.d.ts.map +1 -1
  108. package/dist/commands/migrate/convert.js +156 -38
  109. package/dist/commands/migrate/convert.js.map +1 -1
  110. package/dist/commands/migrate/index.d.ts +8 -0
  111. package/dist/commands/migrate/index.d.ts.map +1 -1
  112. package/dist/commands/migrate/index.js +40 -1
  113. package/dist/commands/migrate/index.js.map +1 -1
  114. package/dist/commands/migrate/rebake.d.ts +13 -0
  115. package/dist/commands/migrate/rebake.d.ts.map +1 -1
  116. package/dist/commands/migrate/rebake.js +45 -6
  117. package/dist/commands/migrate/rebake.js.map +1 -1
  118. package/dist/commands/queue/export-topology.d.ts +2 -0
  119. package/dist/commands/queue/export-topology.d.ts.map +1 -1
  120. package/dist/commands/queue/export-topology.js +3 -1
  121. package/dist/commands/queue/export-topology.js.map +1 -1
  122. package/dist/commands/queue/import-bindings.d.ts +2 -0
  123. package/dist/commands/queue/import-bindings.d.ts.map +1 -1
  124. package/dist/commands/queue/import-bindings.js +3 -1
  125. package/dist/commands/queue/import-bindings.js.map +1 -1
  126. package/dist/commands/queue/index.js +1 -1
  127. package/dist/commands/queue/index.js.map +1 -1
  128. package/dist/commands/queue/sweep.d.ts +4 -6
  129. package/dist/commands/queue/sweep.d.ts.map +1 -1
  130. package/dist/commands/queue/sweep.js +15 -23
  131. package/dist/commands/queue/sweep.js.map +1 -1
  132. package/dist/commands/queue/validate-bindings.d.ts +2 -0
  133. package/dist/commands/queue/validate-bindings.d.ts.map +1 -1
  134. package/dist/commands/queue/validate-bindings.js +3 -1
  135. package/dist/commands/queue/validate-bindings.js.map +1 -1
  136. package/dist/commands/queue/work.d.ts +2 -19
  137. package/dist/commands/queue/work.d.ts.map +1 -1
  138. package/dist/commands/queue/work.js +9 -29
  139. package/dist/commands/queue/work.js.map +1 -1
  140. package/dist/commands/rubric/usage.d.ts +7 -0
  141. package/dist/commands/rubric/usage.d.ts.map +1 -0
  142. package/dist/commands/rubric/usage.js +10 -0
  143. package/dist/commands/rubric/usage.js.map +1 -0
  144. package/dist/commands/test/regression/index.d.ts.map +1 -1
  145. package/dist/commands/test/regression/index.js +2 -0
  146. package/dist/commands/test/regression/index.js.map +1 -1
  147. package/dist/commands/test/regression/new.d.ts +21 -0
  148. package/dist/commands/test/regression/new.d.ts.map +1 -0
  149. package/dist/commands/test/regression/new.js +82 -0
  150. package/dist/commands/test/regression/new.js.map +1 -0
  151. package/dist/commands/test/regression/up.d.ts +1 -0
  152. package/dist/commands/test/regression/up.d.ts.map +1 -1
  153. package/dist/commands/test/regression/up.js +17 -0
  154. package/dist/commands/test/regression/up.js.map +1 -1
  155. package/dist/commands/test/scripts.d.ts +6 -4
  156. package/dist/commands/test/scripts.d.ts.map +1 -1
  157. package/dist/commands/test/scripts.js +14 -0
  158. package/dist/commands/test/scripts.js.map +1 -1
  159. package/dist/commands/test/suite.d.ts +1 -0
  160. package/dist/commands/test/suite.d.ts.map +1 -1
  161. package/dist/commands/test/suite.js +6 -0
  162. package/dist/commands/test/suite.js.map +1 -1
  163. package/dist/commands/usage.js +2 -1
  164. package/dist/commands/usage.js.map +1 -1
  165. package/dist/commands/user/usage.d.ts +7 -0
  166. package/dist/commands/user/usage.d.ts.map +1 -0
  167. package/dist/commands/user/usage.js +10 -0
  168. package/dist/commands/user/usage.js.map +1 -0
  169. package/dist/config.d.ts +117 -0
  170. package/dist/config.d.ts.map +1 -1
  171. package/dist/config.js +44 -0
  172. package/dist/config.js.map +1 -1
  173. package/dist/init-templates/citizen-builder/.agents/skills/package-agent/SKILL.md +12 -2
  174. package/dist/init-templates/citizen-builder/.agents/skills/test-agent/SKILL.md +1 -1
  175. package/dist/init-templates/citizen-builder/.claude/skills/package-agent/SKILL.md +12 -2
  176. package/dist/init-templates/citizen-builder/.claude/skills/test-agent/SKILL.md +1 -1
  177. package/dist/init-templates/citizen-builder/.env.example +14 -2
  178. package/dist/init-templates/citizen-builder/AGENTS.md +5 -2
  179. package/dist/init-templates/citizen-builder/CAPABILITIES.md +9 -0
  180. package/dist/init-templates/citizen-builder/README.md +29 -15
  181. package/dist/init-templates/citizen-builder/docker-compose.yml +13 -0
  182. package/dist/init-templates/citizen-builder/docs/PROMOTION_GUIDE.md +5 -2
  183. package/dist/init-templates/citizen-builder/scripts/docker-entrypoint.sh +290 -33
  184. package/dist/init-templates/citizen-builder/scripts/generate-capabilities.sh +148 -41
  185. package/dist/lib/db-preflight.d.ts.map +1 -1
  186. package/dist/lib/db-preflight.js +22 -0
  187. package/dist/lib/db-preflight.js.map +1 -1
  188. package/dist/lib/derived-usage.d.ts +8 -0
  189. package/dist/lib/derived-usage.d.ts.map +1 -1
  190. package/dist/lib/derived-usage.js +30 -20
  191. package/dist/lib/derived-usage.js.map +1 -1
  192. package/dist/lib/domain-profiles.d.ts.map +1 -1
  193. package/dist/lib/domain-profiles.js +24 -0
  194. package/dist/lib/domain-profiles.js.map +1 -1
  195. package/dist/lib/domain-usage-command.js +2 -1
  196. package/dist/lib/domain-usage-command.js.map +1 -1
  197. package/dist/lib/explorer-postbuild/public-page-html.d.ts +48 -0
  198. package/dist/lib/explorer-postbuild/public-page-html.d.ts.map +1 -0
  199. package/dist/lib/explorer-postbuild/public-page-html.js +284 -0
  200. package/dist/lib/explorer-postbuild/public-page-html.js.map +1 -0
  201. package/dist/lib/explorer-postbuild/service-worker-check.d.ts +13 -0
  202. package/dist/lib/explorer-postbuild/service-worker-check.d.ts.map +1 -0
  203. package/dist/lib/explorer-postbuild/service-worker-check.js +41 -0
  204. package/dist/lib/explorer-postbuild/service-worker-check.js.map +1 -0
  205. package/dist/lib/harness-account.d.ts +34 -0
  206. package/dist/lib/harness-account.d.ts.map +1 -0
  207. package/dist/lib/harness-account.js +105 -0
  208. package/dist/lib/harness-account.js.map +1 -0
  209. package/dist/lib/pg-preflight/checks.d.ts +28 -0
  210. package/dist/lib/pg-preflight/checks.d.ts.map +1 -0
  211. package/dist/lib/pg-preflight/checks.js +94 -0
  212. package/dist/lib/pg-preflight/checks.js.map +1 -0
  213. package/dist/lib/pg-preflight/extension-check.d.ts +28 -0
  214. package/dist/lib/pg-preflight/extension-check.d.ts.map +1 -0
  215. package/dist/lib/pg-preflight/extension-check.js +86 -0
  216. package/dist/lib/pg-preflight/extension-check.js.map +1 -0
  217. package/dist/lib/pg-preflight/extension-scan.d.ts +24 -0
  218. package/dist/lib/pg-preflight/extension-scan.d.ts.map +1 -0
  219. package/dist/lib/pg-preflight/extension-scan.js +58 -0
  220. package/dist/lib/pg-preflight/extension-scan.js.map +1 -0
  221. package/dist/lib/pg-preflight/pending-migrations.d.ts +28 -0
  222. package/dist/lib/pg-preflight/pending-migrations.d.ts.map +1 -0
  223. package/dist/lib/pg-preflight/pending-migrations.js +48 -0
  224. package/dist/lib/pg-preflight/pending-migrations.js.map +1 -0
  225. package/dist/lib/pg-preflight/preflight.d.ts +18 -0
  226. package/dist/lib/pg-preflight/preflight.d.ts.map +1 -0
  227. package/dist/lib/pg-preflight/preflight.js +43 -0
  228. package/dist/lib/pg-preflight/preflight.js.map +1 -0
  229. package/dist/lib/pg-preflight/remediation.d.ts +27 -0
  230. package/dist/lib/pg-preflight/remediation.d.ts.map +1 -0
  231. package/dist/lib/pg-preflight/remediation.js +82 -0
  232. package/dist/lib/pg-preflight/remediation.js.map +1 -0
  233. package/dist/lib/pg-preflight/render.d.ts +15 -0
  234. package/dist/lib/pg-preflight/render.d.ts.map +1 -0
  235. package/dist/lib/pg-preflight/render.js +48 -0
  236. package/dist/lib/pg-preflight/render.js.map +1 -0
  237. package/dist/lib/pg-preflight/run-for-config.d.ts +23 -0
  238. package/dist/lib/pg-preflight/run-for-config.d.ts.map +1 -0
  239. package/dist/lib/pg-preflight/run-for-config.js +45 -0
  240. package/dist/lib/pg-preflight/run-for-config.js.map +1 -0
  241. package/dist/lib/pg-preflight/types.d.ts +67 -0
  242. package/dist/lib/pg-preflight/types.d.ts.map +1 -0
  243. package/dist/lib/pg-preflight/types.js +8 -0
  244. package/dist/lib/pg-preflight/types.js.map +1 -0
  245. package/dist/lib/regression/test-scaffold.d.ts +52 -0
  246. package/dist/lib/regression/test-scaffold.d.ts.map +1 -0
  247. package/dist/lib/regression/test-scaffold.js +237 -0
  248. package/dist/lib/regression/test-scaffold.js.map +1 -0
  249. package/dist/lib/work-queue/queue-format.d.ts +4 -0
  250. package/dist/lib/work-queue/queue-format.d.ts.map +1 -1
  251. package/dist/lib/work-queue/queue-format.js +15 -0
  252. package/dist/lib/work-queue/queue-format.js.map +1 -1
  253. package/dist/lib/work-queue/queue-worker.d.ts +16 -1
  254. package/dist/lib/work-queue/queue-worker.d.ts.map +1 -1
  255. package/dist/lib/work-queue/queue-worker.js +18 -0
  256. package/dist/lib/work-queue/queue-worker.js.map +1 -1
  257. package/dist/light-commands.d.ts.map +1 -1
  258. package/dist/light-commands.js +34 -0
  259. package/dist/light-commands.js.map +1 -1
  260. package/dist/tsconfig.tsbuildinfo +1 -1
  261. package/dist/utils/dependencies-from-head.d.ts +4 -0
  262. package/dist/utils/dependencies-from-head.d.ts.map +1 -0
  263. package/dist/utils/dependencies-from-head.js +5 -0
  264. package/dist/utils/dependencies-from-head.js.map +1 -0
  265. package/dist/utils/open-app-context.d.ts +1 -0
  266. package/dist/utils/open-app-context.d.ts.map +1 -1
  267. package/dist/utils/open-app-context.js +6 -1
  268. package/dist/utils/open-app-context.js.map +1 -1
  269. package/oclif.manifest.json +2026 -1091
  270. package/package.json +34 -31
@@ -54,6 +54,7 @@
54
54
  "<%= config.bin %> <%= command.id %>",
55
55
  "<%= config.bin %> <%= command.id %> ./my-agent-workspace",
56
56
  "<%= config.bin %> <%= command.id %> --no-start",
57
+ "<%= config.bin %> <%= command.id %> --start",
57
58
  "<%= config.bin %> <%= command.id %> --app https://github.com/BlueCypress/bc-sampledata"
58
59
  ],
59
60
  "flags": {
@@ -66,7 +67,7 @@
66
67
  },
67
68
  "start": {
68
69
  "char": "s",
69
- "description": "Start Docker containers and run bootstrap immediately after initialization (pass --no-start to skip).",
70
+ "description": "Start Docker containers and run bootstrap immediately after initialization (starts automatically when an LLM API key is configured; otherwise skips startup until you add one unless --start is passed; pass --no-start to always skip).",
70
71
  "name": "start",
71
72
  "allowNo": true,
72
73
  "type": "boolean"
@@ -79,7 +80,7 @@
79
80
  "type": "option"
80
81
  },
81
82
  "skip-docker-check": {
82
- "description": "Skip the Docker availability check and assume Docker is running (the stack still starts unless --no-start is passed).",
83
+ "description": "Skip the Docker availability check and assume Docker is running (the stack still starts when --start is passed or an LLM API key is configured, unless --no-start is passed).",
83
84
  "name": "skip-docker-check",
84
85
  "allowNo": false,
85
86
  "type": "boolean"
@@ -101,32 +102,10 @@
101
102
  "init.js"
102
103
  ]
103
104
  },
104
- "ai": {
105
- "aliases": [],
106
- "args": {},
107
- "description": "Execute AI agents and actions",
108
- "flags": {},
109
- "hasDynamicHelp": false,
110
- "hidden": false,
111
- "hiddenAliases": [],
112
- "id": "ai",
113
- "pluginAlias": "@memberjunction/cli",
114
- "pluginName": "@memberjunction/cli",
115
- "pluginType": "core",
116
- "strict": true,
117
- "enableJsonFlag": false,
118
- "isESM": true,
119
- "relativePath": [
120
- "dist",
121
- "commands",
122
- "ai",
123
- "index.js"
124
- ]
125
- },
126
- "ai:usage": {
105
+ "agent:usage": {
127
106
  "aliases": [],
128
107
  "args": {},
129
- "description": "Show usage, flags, examples, and runtime hints for every `mj ai` command.",
108
+ "description": "Show usage, flags, examples, and runtime hints for every `mj agent` command.",
130
109
  "flags": {
131
110
  "format": {
132
111
  "description": "Output format. Defaults to text on a terminal and json when stdout is piped.",
@@ -143,7 +122,7 @@
143
122
  },
144
123
  "hasDynamicHelp": false,
145
124
  "hiddenAliases": [],
146
- "id": "ai:usage",
125
+ "id": "agent:usage",
147
126
  "pluginAlias": "@memberjunction/cli",
148
127
  "pluginName": "@memberjunction/cli",
149
128
  "pluginType": "core",
@@ -153,58 +132,19 @@
153
132
  "relativePath": [
154
133
  "dist",
155
134
  "commands",
156
- "ai",
135
+ "agent",
157
136
  "usage.js"
158
137
  ]
159
138
  },
160
- "artifacts:reclassify": {
139
+ "ai": {
161
140
  "aliases": [],
162
141
  "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
- },
142
+ "description": "Execute AI agents and actions",
143
+ "flags": {},
205
144
  "hasDynamicHelp": false,
145
+ "hidden": false,
206
146
  "hiddenAliases": [],
207
- "id": "artifacts:reclassify",
147
+ "id": "ai",
208
148
  "pluginAlias": "@memberjunction/cli",
209
149
  "pluginName": "@memberjunction/cli",
210
150
  "pluginType": "core",
@@ -214,14 +154,14 @@
214
154
  "relativePath": [
215
155
  "dist",
216
156
  "commands",
217
- "artifacts",
218
- "reclassify.js"
157
+ "ai",
158
+ "index.js"
219
159
  ]
220
160
  },
221
- "artifacts:usage": {
161
+ "ai:usage": {
222
162
  "aliases": [],
223
163
  "args": {},
224
- "description": "Show usage, flags, examples, and runtime hints for every `mj artifacts` command.",
164
+ "description": "Show usage, flags, examples, and runtime hints for every `mj ai` command.",
225
165
  "flags": {
226
166
  "format": {
227
167
  "description": "Output format. Defaults to text on a terminal and json when stdout is piped.",
@@ -238,7 +178,7 @@
238
178
  },
239
179
  "hasDynamicHelp": false,
240
180
  "hiddenAliases": [],
241
- "id": "artifacts:usage",
181
+ "id": "ai:usage",
242
182
  "pluginAlias": "@memberjunction/cli",
243
183
  "pluginName": "@memberjunction/cli",
244
184
  "pluginType": "core",
@@ -248,7 +188,7 @@
248
188
  "relativePath": [
249
189
  "dist",
250
190
  "commands",
251
- "artifacts",
191
+ "ai",
252
192
  "usage.js"
253
193
  ]
254
194
  },
@@ -375,24 +315,62 @@
375
315
  "required": true
376
316
  }
377
317
  },
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.",
318
+ "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\nTo install from an unpublished Git branch, tag, or commit SHA instead of a published release, pass --ref <branch|tag|sha> (for example --ref next). The same ref is tried for uninstalled dependencies unless --dep-ref is provided, falling back to published releases if a dependency repo lacks that ref. Inside a joined mj dev workspace (or with --local-workspace), app packages already present in the workspace are linked with workspace:* and skip the npm registry preflight.\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.",
379
319
  "examples": [
380
320
  "<%= config.bin %> app install https://github.com/acme/mj-crm",
381
321
  "<%= config.bin %> app install https://github.com/acme/mj-crm --version 1.2.0",
322
+ "<%= config.bin %> app install https://github.com/MemberJunction/more-cheese --ref next",
323
+ "<%= config.bin %> app install https://github.com/MemberJunction/more-cheese --ref feat/new-ui --dep-ref next --local-workspace",
382
324
  "<%= config.bin %> app install https://github.com/acme/mj-crm --verbose",
383
325
  "<%= config.bin %> app install https://github.com/MemberJunction/Integrations/CRM/HubSpot",
384
326
  "<%= config.bin %> app install https://github.com/acme/mj-crm --non-interactive",
327
+ "<%= config.bin %> app install https://github.com/acme/mj-crm --dependencies-from-head mj-common",
385
328
  "GITHUB_TOKEN=$(gh auth token) <%= config.bin %> app install https://github.com/acme/private-app",
386
329
  "<%= config.bin %> app install ./openapps/analytics"
387
330
  ],
388
331
  "flags": {
389
332
  "version": {
390
- "description": "Specific version to install (default: latest)",
333
+ "description": "Specific version to install, or HEAD for default branch (default: latest compatible release)",
334
+ "exclusive": [
335
+ "ref"
336
+ ],
391
337
  "name": "version",
392
338
  "hasDynamicHelp": false,
393
339
  "multiple": false,
394
340
  "type": "option"
395
341
  },
342
+ "ref": {
343
+ "aliases": [
344
+ "branch"
345
+ ],
346
+ "char": "r",
347
+ "description": "Git branch, tag, or commit SHA to install from (e.g. next). Mutually exclusive with --version. Also tried for uninstalled dependencies unless --dep-ref is set (falls back to published releases if a dependency repo lacks the ref)",
348
+ "exclusive": [
349
+ "version"
350
+ ],
351
+ "name": "ref",
352
+ "hasDynamicHelp": false,
353
+ "helpValue": "<branch|tag|sha>",
354
+ "multiple": false,
355
+ "type": "option"
356
+ },
357
+ "dep-ref": {
358
+ "aliases": [
359
+ "deps-ref"
360
+ ],
361
+ "description": "Git branch, tag, or commit SHA to try for uninstalled transitive dependencies (overrides --ref for dependencies; falls back to published releases if a dependency repo lacks the ref)",
362
+ "name": "dep-ref",
363
+ "hasDynamicHelp": false,
364
+ "helpValue": "<branch|tag|sha>",
365
+ "multiple": false,
366
+ "type": "option"
367
+ },
368
+ "local-workspace": {
369
+ "description": "Install any manifest package already present in the pnpm/yarn workspace with workspace:* and skip its npm registry preflight (auto-enabled inside a joined mj dev workspace)",
370
+ "name": "local-workspace",
371
+ "allowNo": false,
372
+ "type": "boolean"
373
+ },
396
374
  "verbose": {
397
375
  "char": "v",
398
376
  "description": "Show detailed output",
@@ -406,6 +384,14 @@
406
384
  "allowNo": false,
407
385
  "type": "boolean"
408
386
  },
387
+ "dependencies-from-head": {
388
+ "description": "For development: read the dependencies of this installed app from its repository's default branch, instead of those recorded for its installed version. Repeat for more apps, or give 'all'",
389
+ "name": "dependencies-from-head",
390
+ "hasDynamicHelp": false,
391
+ "helpValue": "<app|all>",
392
+ "multiple": true,
393
+ "type": "option"
394
+ },
409
395
  "dangerously-ignore-dbl-underscore-schema-rule": {
410
396
  "hidden": true,
411
397
  "name": "dangerously-ignore-dbl-underscore-schema-rule",
@@ -539,7 +525,8 @@
539
525
  "examples": [
540
526
  "<%= config.bin %> app upgrade acme-crm",
541
527
  "<%= config.bin %> app upgrade acme-crm --version 1.3.0",
542
- "<%= config.bin %> app upgrade analytics --reapply"
528
+ "<%= config.bin %> app upgrade analytics --reapply",
529
+ "<%= config.bin %> app upgrade acme-crm --dependencies-from-head mj-common"
543
530
  ],
544
531
  "flags": {
545
532
  "version": {
@@ -568,6 +555,14 @@
568
555
  "allowNo": false,
569
556
  "type": "boolean"
570
557
  },
558
+ "dependencies-from-head": {
559
+ "description": "For development: read the dependencies of this installed app from its repository's default branch, instead of those recorded for its installed version. Repeat for more apps, or give 'all'",
560
+ "name": "dependencies-from-head",
561
+ "hasDynamicHelp": false,
562
+ "helpValue": "<app|all>",
563
+ "multiple": true,
564
+ "type": "option"
565
+ },
571
566
  "dangerously-ignore-dbl-underscore-schema-rule": {
572
567
  "hidden": true,
573
568
  "name": "dangerously-ignore-dbl-underscore-schema-rule",
@@ -625,6 +620,101 @@
625
620
  "usage.js"
626
621
  ]
627
622
  },
623
+ "artifacts:reclassify": {
624
+ "aliases": [],
625
+ "args": {},
626
+ "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.",
627
+ "examples": [
628
+ "<%= config.bin %> <%= command.id %>",
629
+ "<%= config.bin %> <%= command.id %> --apply --limit 50"
630
+ ],
631
+ "flags": {
632
+ "conversation-id": {
633
+ "description": "Scope to artifacts attached to the given conversation.",
634
+ "name": "conversation-id",
635
+ "hasDynamicHelp": false,
636
+ "multiple": false,
637
+ "type": "option"
638
+ },
639
+ "since": {
640
+ "description": "Scope to artifacts created on/after this ISO date.",
641
+ "name": "since",
642
+ "hasDynamicHelp": false,
643
+ "multiple": false,
644
+ "type": "option"
645
+ },
646
+ "limit": {
647
+ "description": "Maximum number of rows to inspect.",
648
+ "name": "limit",
649
+ "default": 100,
650
+ "hasDynamicHelp": false,
651
+ "multiple": false,
652
+ "type": "option"
653
+ },
654
+ "apply": {
655
+ "description": "Write changes. Without this flag, this command only reports what it would do.",
656
+ "name": "apply",
657
+ "allowNo": false,
658
+ "type": "boolean"
659
+ },
660
+ "verbose": {
661
+ "char": "v",
662
+ "description": "Print every candidate row, not just the summary.",
663
+ "name": "verbose",
664
+ "allowNo": false,
665
+ "type": "boolean"
666
+ }
667
+ },
668
+ "hasDynamicHelp": false,
669
+ "hiddenAliases": [],
670
+ "id": "artifacts:reclassify",
671
+ "pluginAlias": "@memberjunction/cli",
672
+ "pluginName": "@memberjunction/cli",
673
+ "pluginType": "core",
674
+ "strict": true,
675
+ "enableJsonFlag": false,
676
+ "isESM": true,
677
+ "relativePath": [
678
+ "dist",
679
+ "commands",
680
+ "artifacts",
681
+ "reclassify.js"
682
+ ]
683
+ },
684
+ "artifacts:usage": {
685
+ "aliases": [],
686
+ "args": {},
687
+ "description": "Show usage, flags, examples, and runtime hints for every `mj artifacts` command.",
688
+ "flags": {
689
+ "format": {
690
+ "description": "Output format. Defaults to text on a terminal and json when stdout is piped.",
691
+ "name": "format",
692
+ "hasDynamicHelp": false,
693
+ "multiple": false,
694
+ "options": [
695
+ "text",
696
+ "json",
697
+ "md"
698
+ ],
699
+ "type": "option"
700
+ }
701
+ },
702
+ "hasDynamicHelp": false,
703
+ "hiddenAliases": [],
704
+ "id": "artifacts:usage",
705
+ "pluginAlias": "@memberjunction/cli",
706
+ "pluginName": "@memberjunction/cli",
707
+ "pluginType": "core",
708
+ "strict": true,
709
+ "enableJsonFlag": false,
710
+ "isESM": true,
711
+ "relativePath": [
712
+ "dist",
713
+ "commands",
714
+ "artifacts",
715
+ "usage.js"
716
+ ]
717
+ },
628
718
  "baseline:build": {
629
719
  "aliases": [],
630
720
  "args": {},
@@ -1909,7 +1999,7 @@
1909
1999
  "type": "boolean"
1910
2000
  },
1911
2001
  "open-app-client-bootstrap": {
1912
- "description": "After generating the manifest, append a managed block of side-effect imports — one per Open App client package recorded in mj.config `dynamicPackages.client` — so installed apps' client classes register when the client bundle loads. Used by MJExplorer's prebuild; requires --output.",
2002
+ "description": "After generating the manifest, append a managed block of side-effect imports — one per Open App client package recorded in mj.config `dynamicPackages.client` — so installed apps' client classes register when the client bundle loads. Also writes public-pages.generated.ts beside the manifest, from mj.config `publicPages` (the pages installed Open Apps serve before sign-in). Used by MJExplorer's prebuild; requires --output.",
1913
2003
  "name": "open-app-client-bootstrap",
1914
2004
  "allowNo": false,
1915
2005
  "type": "boolean"
@@ -2868,6 +2958,40 @@
2868
2958
  "timeline.js"
2869
2959
  ]
2870
2960
  },
2961
+ "diag:usage": {
2962
+ "aliases": [],
2963
+ "args": {},
2964
+ "description": "Show usage, flags, examples, and runtime hints for every `mj diag` command.",
2965
+ "flags": {
2966
+ "format": {
2967
+ "description": "Output format. Defaults to text on a terminal and json when stdout is piped.",
2968
+ "name": "format",
2969
+ "hasDynamicHelp": false,
2970
+ "multiple": false,
2971
+ "options": [
2972
+ "text",
2973
+ "json",
2974
+ "md"
2975
+ ],
2976
+ "type": "option"
2977
+ }
2978
+ },
2979
+ "hasDynamicHelp": false,
2980
+ "hiddenAliases": [],
2981
+ "id": "diag:usage",
2982
+ "pluginAlias": "@memberjunction/cli",
2983
+ "pluginName": "@memberjunction/cli",
2984
+ "pluginType": "core",
2985
+ "strict": true,
2986
+ "enableJsonFlag": false,
2987
+ "isESM": true,
2988
+ "relativePath": [
2989
+ "dist",
2990
+ "commands",
2991
+ "diag",
2992
+ "usage.js"
2993
+ ]
2994
+ },
2871
2995
  "doctor": {
2872
2996
  "aliases": [],
2873
2997
  "args": {},
@@ -2879,7 +3003,8 @@
2879
3003
  "<%= config.bin %> <%= command.id %> --scope ai",
2880
3004
  "<%= config.bin %> <%= command.id %> --verbose",
2881
3005
  "<%= config.bin %> <%= command.id %> --report",
2882
- "<%= config.bin %> <%= command.id %> --report_extended"
3006
+ "<%= config.bin %> <%= command.id %> --report_extended",
3007
+ "<%= config.bin %> <%= command.id %> --db"
2883
3008
  ],
2884
3009
  "flags": {
2885
3010
  "dir": {
@@ -2940,6 +3065,12 @@
2940
3065
  "name": "report_extended",
2941
3066
  "allowNo": false,
2942
3067
  "type": "boolean"
3068
+ },
3069
+ "db": {
3070
+ "description": "Check database readiness for `mj migrate` instead: the connection, and on PostgreSQL the server version, group roles, extensions the pending migrations create, the login's privileges and TLS. Prints the SQL an administrator must run.",
3071
+ "name": "db",
3072
+ "allowNo": false,
3073
+ "type": "boolean"
2943
3074
  }
2944
3075
  },
2945
3076
  "hasDynamicHelp": false,
@@ -3057,21 +3188,158 @@
3057
3188
  "value-lists.js"
3058
3189
  ]
3059
3190
  },
3060
- "install:claude": {
3191
+ "explorer:postbuild": {
3061
3192
  "aliases": [],
3062
3193
  "args": {},
3063
- "description": "Install or refresh the Claude Code pack in the current directory.",
3194
+ "description": "Finish MJ Explorer's build. Run it as the host's `postbuild` script.\n\nIt does every step that follows `ng build`, so a new step reaches a host with a CLI update:\n 1. Checks the service worker's cache list.\n 2. Writes one HTML file per public page (public-pages/<slug>.html) from mj.config `publicPages`,\n with the page's title, link preview tags and Content Security Policy. The web host serves the\n file for /p/<slug>. Also writes public-pages/_fallback.html, with the same policy, for the\n /p/ addresses that have no page file.\n 3. When the folder has a staticwebapp.config.json (Azure Static Web Apps), adds a rewrite for\n each page and for the fallback file to it.",
3064
3195
  "examples": [
3065
- "<%= config.bin %> install:claude",
3066
- "<%= config.bin %> install:claude --dry-run",
3067
- "<%= config.bin %> install:claude --from ./local-pack",
3068
- "<%= config.bin %> install:claude --json"
3196
+ {
3197
+ "command": "<%= config.bin %> <%= command.id %> --dir dist/MJExplorer/browser",
3198
+ "description": "Finish the build in the host's folder"
3199
+ }
3069
3200
  ],
3070
3201
  "flags": {
3071
3202
  "dir": {
3072
- "description": "Target directory for the install",
3203
+ "description": "The site folder: MJ Explorer's build output, with its index.html.",
3073
3204
  "name": "dir",
3074
- "default": ".",
3205
+ "required": true,
3206
+ "hasDynamicHelp": false,
3207
+ "multiple": false,
3208
+ "type": "option"
3209
+ },
3210
+ "quiet": {
3211
+ "char": "q",
3212
+ "description": "Do not print a summary.",
3213
+ "name": "quiet",
3214
+ "allowNo": false,
3215
+ "type": "boolean"
3216
+ }
3217
+ },
3218
+ "hasDynamicHelp": false,
3219
+ "hiddenAliases": [],
3220
+ "id": "explorer:postbuild",
3221
+ "pluginAlias": "@memberjunction/cli",
3222
+ "pluginName": "@memberjunction/cli",
3223
+ "pluginType": "core",
3224
+ "strict": true,
3225
+ "enableJsonFlag": false,
3226
+ "isESM": true,
3227
+ "relativePath": [
3228
+ "dist",
3229
+ "commands",
3230
+ "explorer",
3231
+ "postbuild.js"
3232
+ ]
3233
+ },
3234
+ "explorer:usage": {
3235
+ "aliases": [],
3236
+ "args": {},
3237
+ "description": "Show usage, flags, examples, and runtime hints for every `mj explorer` command.",
3238
+ "flags": {
3239
+ "format": {
3240
+ "description": "Output format. Defaults to text on a terminal and json when stdout is piped.",
3241
+ "name": "format",
3242
+ "hasDynamicHelp": false,
3243
+ "multiple": false,
3244
+ "options": [
3245
+ "text",
3246
+ "json",
3247
+ "md"
3248
+ ],
3249
+ "type": "option"
3250
+ }
3251
+ },
3252
+ "hasDynamicHelp": false,
3253
+ "hiddenAliases": [],
3254
+ "id": "explorer:usage",
3255
+ "pluginAlias": "@memberjunction/cli",
3256
+ "pluginName": "@memberjunction/cli",
3257
+ "pluginType": "core",
3258
+ "strict": true,
3259
+ "enableJsonFlag": false,
3260
+ "isESM": true,
3261
+ "relativePath": [
3262
+ "dist",
3263
+ "commands",
3264
+ "explorer",
3265
+ "usage.js"
3266
+ ]
3267
+ },
3268
+ "harness": {
3269
+ "aliases": [],
3270
+ "args": {},
3271
+ "description": "Manage external agent harness runtime settings and CLI subscription account pools",
3272
+ "examples": [
3273
+ "<%= config.bin %> <%= command.id %> account list",
3274
+ "<%= config.bin %> <%= command.id %> account add claude --label \"Pro #2\"",
3275
+ "<%= config.bin %> <%= command.id %> account set-strategy least-in-flight"
3276
+ ],
3277
+ "flags": {},
3278
+ "hasDynamicHelp": false,
3279
+ "hiddenAliases": [],
3280
+ "id": "harness",
3281
+ "pluginAlias": "@memberjunction/cli",
3282
+ "pluginName": "@memberjunction/cli",
3283
+ "pluginType": "core",
3284
+ "strict": true,
3285
+ "enableJsonFlag": false,
3286
+ "isESM": true,
3287
+ "relativePath": [
3288
+ "dist",
3289
+ "commands",
3290
+ "harness",
3291
+ "index.js"
3292
+ ]
3293
+ },
3294
+ "harness:usage": {
3295
+ "aliases": [],
3296
+ "args": {},
3297
+ "description": "Show usage, flags, examples, and runtime hints for every `mj harness` command.",
3298
+ "flags": {
3299
+ "format": {
3300
+ "description": "Output format. Defaults to text on a terminal and json when stdout is piped.",
3301
+ "name": "format",
3302
+ "hasDynamicHelp": false,
3303
+ "multiple": false,
3304
+ "options": [
3305
+ "text",
3306
+ "json",
3307
+ "md"
3308
+ ],
3309
+ "type": "option"
3310
+ }
3311
+ },
3312
+ "hasDynamicHelp": false,
3313
+ "hiddenAliases": [],
3314
+ "id": "harness:usage",
3315
+ "pluginAlias": "@memberjunction/cli",
3316
+ "pluginName": "@memberjunction/cli",
3317
+ "pluginType": "core",
3318
+ "strict": true,
3319
+ "enableJsonFlag": false,
3320
+ "isESM": true,
3321
+ "relativePath": [
3322
+ "dist",
3323
+ "commands",
3324
+ "harness",
3325
+ "usage.js"
3326
+ ]
3327
+ },
3328
+ "install:claude": {
3329
+ "aliases": [],
3330
+ "args": {},
3331
+ "description": "Install or refresh the Claude Code pack in the current directory.",
3332
+ "examples": [
3333
+ "<%= config.bin %> install:claude",
3334
+ "<%= config.bin %> install:claude --dry-run",
3335
+ "<%= config.bin %> install:claude --from ./local-pack",
3336
+ "<%= config.bin %> install:claude --json"
3337
+ ],
3338
+ "flags": {
3339
+ "dir": {
3340
+ "description": "Target directory for the install",
3341
+ "name": "dir",
3342
+ "default": ".",
3075
3343
  "hasDynamicHelp": false,
3076
3344
  "multiple": false,
3077
3345
  "type": "option"
@@ -3396,7 +3664,7 @@
3396
3664
  "type": "boolean"
3397
3665
  },
3398
3666
  "split": {
3399
- "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.",
3667
+ "description": "Split-and-regenerate (the standard path): transpile only hand-written DDL via the AST dialect; CodeGen objects are regenerated by `mj codegen`; an mj-sync log converts inline (one DO block per save); every conversion gap is surfaced and fails the run unless --allow-gaps.",
3400
3668
  "name": "split",
3401
3669
  "allowNo": false,
3402
3670
  "type": "boolean"
@@ -3542,6 +3810,12 @@
3542
3810
  "allowNo": false,
3543
3811
  "type": "boolean"
3544
3812
  },
3813
+ "skip-preflight": {
3814
+ "description": "PostgreSQL only: skip the database readiness checks (server version, group roles, extensions, privileges, TLS) that run before migrating",
3815
+ "name": "skip-preflight",
3816
+ "allowNo": false,
3817
+ "type": "boolean"
3818
+ },
3545
3819
  "skip-cache-clear": {
3546
3820
  "description": "Do not clear the shared Redis cache (REDIS_URL) after migrating. Also: MJ_SKIP_SHARED_CACHE_CLEAR=1",
3547
3821
  "name": "skip-cache-clear",
@@ -3571,7 +3845,9 @@
3571
3845
  "description": "Re-bake the post-baseline PG migration set with inline native CodeGen",
3572
3846
  "examples": [
3573
3847
  "<%= config.bin %> migrate rebake",
3574
- "<%= config.bin %> migrate rebake --baseline-floor V202605291452 --dry-run"
3848
+ "<%= config.bin %> migrate rebake --baseline-floor V202605291452 --dry-run",
3849
+ "<%= config.bin %> migrate rebake --write",
3850
+ "<%= config.bin %> migrate rebake --file V202611031700__v0.10.x__Foo.sql --capture-only"
3575
3851
  ],
3576
3852
  "flags": {
3577
3853
  "source-dir": {
@@ -3618,6 +3894,25 @@
3618
3894
  "name": "dry-run",
3619
3895
  "allowNo": false,
3620
3896
  "type": "boolean"
3897
+ },
3898
+ "file": {
3899
+ "description": "Re-bake one migration (filename in source-dir), whatever the baseline floor. Writes its counterpart. The committed hand region of a baked file is kept byte for byte; only the CodeGen section is replaced.",
3900
+ "name": "file",
3901
+ "hasDynamicHelp": false,
3902
+ "multiple": false,
3903
+ "type": "option"
3904
+ },
3905
+ "capture-only": {
3906
+ "description": "With --file: do not apply the migration; it is already applied to the working DB (a capture that failed after the apply, or a hand-finished file applied by hand). Capture its CodeGen only.",
3907
+ "name": "capture-only",
3908
+ "allowNo": false,
3909
+ "type": "boolean"
3910
+ },
3911
+ "write": {
3912
+ "description": "Without --file: write the re-baked files. Without it, a full re-bake is a dry run.",
3913
+ "name": "write",
3914
+ "allowNo": false,
3915
+ "type": "boolean"
3621
3916
  }
3622
3917
  },
3623
3918
  "hasDynamicHelp": false,
@@ -4125,30 +4420,34 @@
4125
4420
  "validate.js"
4126
4421
  ]
4127
4422
  },
4128
- "rubric:diff": {
4423
+ "queue:backlog": {
4129
4424
  "aliases": [],
4130
- "args": {
4131
- "rubric": {
4132
- "description": "Rubric name or id",
4133
- "name": "rubric",
4134
- "required": true
4135
- },
4136
- "from": {
4137
- "description": "Version 1.2.0 or id",
4138
- "name": "from",
4139
- "required": true
4425
+ "args": {},
4426
+ "description": "Show the autoscaler metric for one subscription: claimable pending plus in-flight deliveries",
4427
+ "examples": [
4428
+ "<%= config.bin %> <%= command.id %> --subscription venue-import",
4429
+ "<%= config.bin %> <%= command.id %> --subscription venue-import --json"
4430
+ ],
4431
+ "flags": {
4432
+ "subscription": {
4433
+ "char": "s",
4434
+ "description": "Subscription name",
4435
+ "name": "subscription",
4436
+ "required": true,
4437
+ "hasDynamicHelp": false,
4438
+ "multiple": false,
4439
+ "type": "option"
4140
4440
  },
4141
- "to": {
4142
- "description": "Version 1.2.0 or id",
4143
- "name": "to",
4144
- "required": true
4441
+ "json": {
4442
+ "description": "Print JSON instead of text",
4443
+ "name": "json",
4444
+ "allowNo": false,
4445
+ "type": "boolean"
4145
4446
  }
4146
4447
  },
4147
- "description": "Print the version bump between two rubric versions.",
4148
- "flags": {},
4149
4448
  "hasDynamicHelp": false,
4150
4449
  "hiddenAliases": [],
4151
- "id": "rubric:diff",
4450
+ "id": "queue:backlog",
4152
4451
  "pluginAlias": "@memberjunction/cli",
4153
4452
  "pluginName": "@memberjunction/cli",
4154
4453
  "pluginType": "core",
@@ -4158,76 +4457,52 @@
4158
4457
  "relativePath": [
4159
4458
  "dist",
4160
4459
  "commands",
4161
- "rubric",
4162
- "diff.js"
4460
+ "queue",
4461
+ "backlog.js"
4163
4462
  ]
4164
4463
  },
4165
- "rubric:evaluate": {
4464
+ "queue:dead-letters": {
4166
4465
  "aliases": [],
4167
4466
  "args": {},
4168
- "description": "Evaluate one record against a rubric. Does not publish.",
4467
+ "description": "List a work-queue subscription's dead-lettered deliveries",
4468
+ "examples": [
4469
+ "<%= config.bin %> <%= command.id %> --subscription integration.apply --page-size 20"
4470
+ ],
4169
4471
  "flags": {
4170
- "rubric": {
4171
- "description": "Rubric name or id, optionally @version",
4172
- "name": "rubric",
4173
- "required": true,
4174
- "hasDynamicHelp": false,
4175
- "multiple": false,
4176
- "type": "option"
4177
- },
4178
- "entity": {
4179
- "description": "Subject entity name",
4180
- "name": "entity",
4181
- "required": true,
4182
- "hasDynamicHelp": false,
4183
- "multiple": false,
4184
- "type": "option"
4185
- },
4186
- "record": {
4187
- "description": "Subject record id",
4188
- "name": "record",
4472
+ "subscription": {
4473
+ "char": "s",
4474
+ "description": "Subscription name",
4475
+ "name": "subscription",
4189
4476
  "required": true,
4190
4477
  "hasDynamicHelp": false,
4191
4478
  "multiple": false,
4192
4479
  "type": "option"
4193
4480
  },
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",
4481
+ "cursor": {
4482
+ "description": "nextCursor from a previous page",
4483
+ "name": "cursor",
4205
4484
  "hasDynamicHelp": false,
4206
4485
  "multiple": false,
4207
4486
  "type": "option"
4208
4487
  },
4209
- "model": {
4210
- "description": "AI Model ID to pin. Otherwise the prompt's bindings choose",
4211
- "name": "model",
4488
+ "page-size": {
4489
+ "description": "Items per page (1–500)",
4490
+ "name": "page-size",
4491
+ "default": 50,
4212
4492
  "hasDynamicHelp": false,
4213
4493
  "multiple": false,
4214
4494
  "type": "option"
4215
4495
  },
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"
4496
+ "json": {
4497
+ "description": "Print JSON instead of a table",
4498
+ "name": "json",
4499
+ "allowNo": false,
4500
+ "type": "boolean"
4226
4501
  }
4227
4502
  },
4228
4503
  "hasDynamicHelp": false,
4229
4504
  "hiddenAliases": [],
4230
- "id": "rubric:evaluate",
4505
+ "id": "queue:dead-letters",
4231
4506
  "pluginAlias": "@memberjunction/cli",
4232
4507
  "pluginName": "@memberjunction/cli",
4233
4508
  "pluginType": "core",
@@ -4237,18 +4512,49 @@
4237
4512
  "relativePath": [
4238
4513
  "dist",
4239
4514
  "commands",
4240
- "rubric",
4241
- "evaluate.js"
4515
+ "queue",
4516
+ "dead-letters.js"
4242
4517
  ]
4243
4518
  },
4244
- "rubric": {
4519
+ "queue:discard": {
4245
4520
  "aliases": [],
4246
4521
  "args": {},
4247
- "description": "List, show, diff, validate, and evaluate rubrics.",
4248
- "flags": {},
4249
- "hasDynamicHelp": false,
4250
- "hiddenAliases": [],
4251
- "id": "rubric",
4522
+ "description": "Discard one pending or dead-lettered work-queue delivery, or cancel one that is in flight",
4523
+ "examples": [
4524
+ "<%= config.bin %> <%= command.id %> --subscription integration.apply --delivery <id> --reason \"bad batch, republished\""
4525
+ ],
4526
+ "flags": {
4527
+ "subscription": {
4528
+ "char": "s",
4529
+ "description": "Subscription name",
4530
+ "name": "subscription",
4531
+ "required": true,
4532
+ "hasDynamicHelp": false,
4533
+ "multiple": false,
4534
+ "type": "option"
4535
+ },
4536
+ "delivery": {
4537
+ "char": "d",
4538
+ "description": "DeliveryID to discard",
4539
+ "name": "delivery",
4540
+ "required": true,
4541
+ "hasDynamicHelp": false,
4542
+ "multiple": false,
4543
+ "type": "option"
4544
+ },
4545
+ "reason": {
4546
+ "char": "r",
4547
+ "description": "Why the work is dropped (at most 1000 characters)",
4548
+ "name": "reason",
4549
+ "required": true,
4550
+ "hasDynamicHelp": false,
4551
+ "multiple": false,
4552
+ "type": "option"
4553
+ }
4554
+ },
4555
+ "hasDynamicHelp": false,
4556
+ "hiddenAliases": [],
4557
+ "id": "queue:discard",
4252
4558
  "pluginAlias": "@memberjunction/cli",
4253
4559
  "pluginName": "@memberjunction/cli",
4254
4560
  "pluginType": "core",
@@ -4258,18 +4564,39 @@
4258
4564
  "relativePath": [
4259
4565
  "dist",
4260
4566
  "commands",
4261
- "rubric",
4262
- "index.js"
4567
+ "queue",
4568
+ "discard.js"
4263
4569
  ]
4264
4570
  },
4265
- "rubric:list": {
4571
+ "queue:export-topology": {
4266
4572
  "aliases": [],
4267
4573
  "args": {},
4268
- "description": "List rubrics.",
4269
- "flags": {},
4574
+ "description": "Write the topology manifest for one transport (input to the Terraform module)",
4575
+ "examples": [
4576
+ "<%= config.bin %> <%= command.id %> --transport AWS-prod --output infrastructure/work-queue/manifest.json"
4577
+ ],
4578
+ "flags": {
4579
+ "transport": {
4580
+ "char": "t",
4581
+ "description": "Transport name",
4582
+ "name": "transport",
4583
+ "required": true,
4584
+ "hasDynamicHelp": false,
4585
+ "multiple": false,
4586
+ "type": "option"
4587
+ },
4588
+ "output": {
4589
+ "char": "o",
4590
+ "description": "File to write; stdout when omitted",
4591
+ "name": "output",
4592
+ "hasDynamicHelp": false,
4593
+ "multiple": false,
4594
+ "type": "option"
4595
+ }
4596
+ },
4270
4597
  "hasDynamicHelp": false,
4271
4598
  "hiddenAliases": [],
4272
- "id": "rubric:list",
4599
+ "id": "queue:export-topology",
4273
4600
  "pluginAlias": "@memberjunction/cli",
4274
4601
  "pluginName": "@memberjunction/cli",
4275
4602
  "pluginType": "core",
@@ -4279,24 +4606,34 @@
4279
4606
  "relativePath": [
4280
4607
  "dist",
4281
4608
  "commands",
4282
- "rubric",
4283
- "list.js"
4609
+ "queue",
4610
+ "export-topology.js"
4284
4611
  ]
4285
4612
  },
4286
- "rubric:show": {
4613
+ "queue:import-bindings": {
4287
4614
  "aliases": [],
4288
4615
  "args": {
4289
- "rubric": {
4290
- "description": "Rubric name or id, optionally @version",
4291
- "name": "rubric",
4616
+ "file": {
4617
+ "description": "BindingImport JSON file",
4618
+ "name": "file",
4292
4619
  "required": true
4293
4620
  }
4294
4621
  },
4295
- "description": "Show a rubric version and its criteria.",
4296
- "flags": {},
4622
+ "description": "Record cloud resource bindings (Terraform output) on work-queue topics and subscriptions",
4623
+ "examples": [
4624
+ "terraform output -json mj_work_queue_bindings > bindings.json && <%= config.bin %> <%= command.id %> bindings.json"
4625
+ ],
4626
+ "flags": {
4627
+ "json": {
4628
+ "description": "Print issues as JSON",
4629
+ "name": "json",
4630
+ "allowNo": false,
4631
+ "type": "boolean"
4632
+ }
4633
+ },
4297
4634
  "hasDynamicHelp": false,
4298
4635
  "hiddenAliases": [],
4299
- "id": "rubric:show",
4636
+ "id": "queue:import-bindings",
4300
4637
  "pluginAlias": "@memberjunction/cli",
4301
4638
  "pluginName": "@memberjunction/cli",
4302
4639
  "pluginType": "core",
@@ -4306,24 +4643,23 @@
4306
4643
  "relativePath": [
4307
4644
  "dist",
4308
4645
  "commands",
4309
- "rubric",
4310
- "show.js"
4646
+ "queue",
4647
+ "import-bindings.js"
4311
4648
  ]
4312
4649
  },
4313
- "rubric:validate": {
4650
+ "queue": {
4314
4651
  "aliases": [],
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.",
4652
+ "args": {},
4653
+ "description": "Operate the durable work queue",
4654
+ "examples": [
4655
+ "<%= config.bin %> <%= command.id %> publish --topic samples.hello --payload '{\"name\":\"Paul\"}'",
4656
+ "<%= config.bin %> <%= command.id %> stats",
4657
+ "<%= config.bin %> <%= command.id %> dead-letters --subscription email.unsubscribe"
4658
+ ],
4323
4659
  "flags": {},
4324
4660
  "hasDynamicHelp": false,
4325
4661
  "hiddenAliases": [],
4326
- "id": "rubric:validate",
4662
+ "id": "queue",
4327
4663
  "pluginAlias": "@memberjunction/cli",
4328
4664
  "pluginName": "@memberjunction/cli",
4329
4665
  "pluginType": "core",
@@ -4333,64 +4669,64 @@
4333
4669
  "relativePath": [
4334
4670
  "dist",
4335
4671
  "commands",
4336
- "rubric",
4337
- "validate.js"
4672
+ "queue",
4673
+ "index.js"
4338
4674
  ]
4339
4675
  },
4340
- "sql-audit": {
4676
+ "queue:partitions": {
4341
4677
  "aliases": [],
4342
4678
  "args": {},
4343
- "description": "Compare source and target databases for migration verification",
4679
+ "description": "List a work-queue subscription's in-flight or blocked partition keys",
4344
4680
  "examples": [
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"
4681
+ "<%= config.bin %> <%= command.id %> --subscription integration.apply --condition Blocked"
4348
4682
  ],
4349
4683
  "flags": {
4350
- "source": {
4351
- "description": "Source database connection string (mssql://... or postgres://...)",
4352
- "name": "source",
4684
+ "subscription": {
4685
+ "char": "s",
4686
+ "description": "Subscription name",
4687
+ "name": "subscription",
4353
4688
  "required": true,
4354
4689
  "hasDynamicHelp": false,
4355
4690
  "multiple": false,
4356
4691
  "type": "option"
4357
4692
  },
4358
- "target": {
4359
- "description": "Target database connection string (mssql://... or postgres://...)",
4360
- "name": "target",
4361
- "required": true,
4693
+ "condition": {
4694
+ "description": "Only keys in this condition",
4695
+ "name": "condition",
4362
4696
  "hasDynamicHelp": false,
4363
4697
  "multiple": false,
4698
+ "options": [
4699
+ "Idle",
4700
+ "InFlight",
4701
+ "Blocked"
4702
+ ],
4364
4703
  "type": "option"
4365
4704
  },
4366
- "source-schema": {
4367
- "description": "Source schema name",
4368
- "name": "source-schema",
4369
- "default": "__mj",
4705
+ "cursor": {
4706
+ "description": "nextCursor from a previous page",
4707
+ "name": "cursor",
4370
4708
  "hasDynamicHelp": false,
4371
4709
  "multiple": false,
4372
4710
  "type": "option"
4373
4711
  },
4374
- "target-schema": {
4375
- "description": "Target schema name",
4376
- "name": "target-schema",
4377
- "default": "__mj",
4712
+ "page-size": {
4713
+ "description": "Items per page (1–500)",
4714
+ "name": "page-size",
4715
+ "default": 50,
4378
4716
  "hasDynamicHelp": false,
4379
4717
  "multiple": false,
4380
4718
  "type": "option"
4381
4719
  },
4382
- "output": {
4383
- "char": "o",
4384
- "description": "Save report to file",
4385
- "name": "output",
4386
- "hasDynamicHelp": false,
4387
- "multiple": false,
4388
- "type": "option"
4720
+ "json": {
4721
+ "description": "Print JSON instead of a table",
4722
+ "name": "json",
4723
+ "allowNo": false,
4724
+ "type": "boolean"
4389
4725
  }
4390
4726
  },
4391
4727
  "hasDynamicHelp": false,
4392
4728
  "hiddenAliases": [],
4393
- "id": "sql-audit",
4729
+ "id": "queue:partitions",
4394
4730
  "pluginAlias": "@memberjunction/cli",
4395
4731
  "pluginName": "@memberjunction/cli",
4396
4732
  "pluginType": "core",
@@ -4400,31 +4736,80 @@
4400
4736
  "relativePath": [
4401
4737
  "dist",
4402
4738
  "commands",
4403
- "sql-audit",
4404
- "index.js"
4739
+ "queue",
4740
+ "partitions.js"
4405
4741
  ]
4406
4742
  },
4407
- "sql-audit:usage": {
4743
+ "queue:publish": {
4408
4744
  "aliases": [],
4409
4745
  "args": {},
4410
- "description": "Show usage, flags, examples, and runtime hints for every `mj sql-audit` command.",
4746
+ "description": "Publish messages to a work-queue topic from this machine through MJ code (no API key needed)",
4747
+ "examples": [
4748
+ "<%= config.bin %> <%= command.id %> --topic samples.hello --payload '{\"name\":\"Paul\"}'",
4749
+ "<%= config.bin %> <%= command.id %> --topic samples.hello --payload '{\"sleepMs\":60000}' --partition-key customer-42",
4750
+ "<%= config.bin %> <%= command.id %> --topic samples.hello --count 5 --partition-key k1 --attribute source=demo"
4751
+ ],
4411
4752
  "flags": {
4412
- "format": {
4413
- "description": "Output format. Defaults to text on a terminal and json when stdout is piped.",
4414
- "name": "format",
4753
+ "topic": {
4754
+ "char": "t",
4755
+ "description": "Topic name",
4756
+ "name": "topic",
4757
+ "required": true,
4758
+ "hasDynamicHelp": false,
4759
+ "multiple": false,
4760
+ "type": "option"
4761
+ },
4762
+ "payload": {
4763
+ "char": "p",
4764
+ "description": "Message payload as JSON",
4765
+ "name": "payload",
4766
+ "default": "{}",
4767
+ "hasDynamicHelp": false,
4768
+ "multiple": false,
4769
+ "type": "option"
4770
+ },
4771
+ "partition-key": {
4772
+ "char": "k",
4773
+ "description": "PartitionKey for Exclusive / Ordered subscriptions",
4774
+ "name": "partition-key",
4775
+ "hasDynamicHelp": false,
4776
+ "multiple": false,
4777
+ "type": "option"
4778
+ },
4779
+ "dedup-key": {
4780
+ "description": "DeduplicationKey: a repeat within the topic TTL is reported as Duplicate",
4781
+ "name": "dedup-key",
4782
+ "hasDynamicHelp": false,
4783
+ "multiple": false,
4784
+ "type": "option"
4785
+ },
4786
+ "attribute": {
4787
+ "char": "a",
4788
+ "description": "Message attribute as key=value (repeatable)",
4789
+ "name": "attribute",
4790
+ "hasDynamicHelp": false,
4791
+ "multiple": true,
4792
+ "type": "option"
4793
+ },
4794
+ "count": {
4795
+ "char": "n",
4796
+ "description": "How many copies to publish in one batch",
4797
+ "name": "count",
4798
+ "default": 1,
4415
4799
  "hasDynamicHelp": false,
4416
4800
  "multiple": false,
4417
- "options": [
4418
- "text",
4419
- "json",
4420
- "md"
4421
- ],
4422
4801
  "type": "option"
4802
+ },
4803
+ "json": {
4804
+ "description": "Print the publish results as JSON",
4805
+ "name": "json",
4806
+ "allowNo": false,
4807
+ "type": "boolean"
4423
4808
  }
4424
4809
  },
4425
4810
  "hasDynamicHelp": false,
4426
4811
  "hiddenAliases": [],
4427
- "id": "sql-audit:usage",
4812
+ "id": "queue:publish",
4428
4813
  "pluginAlias": "@memberjunction/cli",
4429
4814
  "pluginName": "@memberjunction/cli",
4430
4815
  "pluginType": "core",
@@ -4434,116 +4819,47 @@
4434
4819
  "relativePath": [
4435
4820
  "dist",
4436
4821
  "commands",
4437
- "sql-audit",
4438
- "usage.js"
4822
+ "queue",
4823
+ "publish.js"
4439
4824
  ]
4440
4825
  },
4441
- "sql-convert": {
4826
+ "queue:replay": {
4442
4827
  "aliases": [],
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",
4828
+ "args": {},
4829
+ "description": "Replay one dead-lettered work-queue delivery",
4451
4830
  "examples": [
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"
4831
+ "<%= config.bin %> <%= command.id %> --subscription integration.apply --delivery <id> --note \"mapping fixed\""
4456
4832
  ],
4457
4833
  "flags": {
4458
- "from": {
4459
- "description": "Source SQL dialect",
4460
- "name": "from",
4834
+ "subscription": {
4835
+ "char": "s",
4836
+ "description": "Subscription name",
4837
+ "name": "subscription",
4461
4838
  "required": true,
4462
4839
  "hasDynamicHelp": false,
4463
4840
  "multiple": false,
4464
4841
  "type": "option"
4465
4842
  },
4466
- "to": {
4467
- "description": "Target SQL dialect",
4468
- "name": "to",
4843
+ "delivery": {
4844
+ "char": "d",
4845
+ "description": "DeliveryID from `mj queue dead-letters`",
4846
+ "name": "delivery",
4469
4847
  "required": true,
4470
4848
  "hasDynamicHelp": false,
4471
4849
  "multiple": false,
4472
4850
  "type": "option"
4473
4851
  },
4474
- "output": {
4475
- "char": "o",
4476
- "description": "Output file path (default: <source>.converted.<ext>)",
4477
- "name": "output",
4478
- "hasDynamicHelp": false,
4479
- "multiple": false,
4480
- "type": "option"
4481
- },
4482
- "schema": {
4483
- "description": "Target schema name",
4484
- "name": "schema",
4485
- "default": "__mj",
4486
- "hasDynamicHelp": false,
4487
- "multiple": false,
4488
- "type": "option"
4489
- },
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",
4506
- "allowNo": false,
4507
- "type": "boolean"
4508
- }
4509
- },
4510
- "hasDynamicHelp": false,
4511
- "hiddenAliases": [],
4512
- "id": "sql-convert",
4513
- "pluginAlias": "@memberjunction/cli",
4514
- "pluginName": "@memberjunction/cli",
4515
- "pluginType": "core",
4516
- "strict": true,
4517
- "enableJsonFlag": false,
4518
- "isESM": true,
4519
- "relativePath": [
4520
- "dist",
4521
- "commands",
4522
- "sql-convert",
4523
- "index.js"
4524
- ]
4525
- },
4526
- "sql-convert:usage": {
4527
- "aliases": [],
4528
- "args": {},
4529
- "description": "Show usage, flags, examples, and runtime hints for every `mj sql-convert` command.",
4530
- "flags": {
4531
- "format": {
4532
- "description": "Output format. Defaults to text on a terminal and json when stdout is piped.",
4533
- "name": "format",
4852
+ "note": {
4853
+ "description": "Operator note stored with the resolution",
4854
+ "name": "note",
4534
4855
  "hasDynamicHelp": false,
4535
4856
  "multiple": false,
4536
- "options": [
4537
- "text",
4538
- "json",
4539
- "md"
4540
- ],
4541
4857
  "type": "option"
4542
4858
  }
4543
4859
  },
4544
4860
  "hasDynamicHelp": false,
4545
4861
  "hiddenAliases": [],
4546
- "id": "sql-convert:usage",
4862
+ "id": "queue:replay",
4547
4863
  "pluginAlias": "@memberjunction/cli",
4548
4864
  "pluginName": "@memberjunction/cli",
4549
4865
  "pluginType": "core",
@@ -4553,30 +4869,29 @@
4553
4869
  "relativePath": [
4554
4870
  "dist",
4555
4871
  "commands",
4556
- "sql-convert",
4557
- "usage.js"
4872
+ "queue",
4873
+ "replay.js"
4558
4874
  ]
4559
4875
  },
4560
- "queue:backlog": {
4876
+ "queue:stats": {
4561
4877
  "aliases": [],
4562
4878
  "args": {},
4563
- "description": "Show the autoscaler metric for one subscription: claimable pending plus in-flight deliveries",
4879
+ "description": "Show pending, in-flight and dead-lettered counts for work-queue subscriptions",
4564
4880
  "examples": [
4565
- "<%= config.bin %> <%= command.id %> --subscription venue-import",
4566
- "<%= config.bin %> <%= command.id %> --subscription venue-import --json"
4881
+ "<%= config.bin %> <%= command.id %>",
4882
+ "<%= config.bin %> <%= command.id %> --subscription email.unsubscribe --json"
4567
4883
  ],
4568
4884
  "flags": {
4569
4885
  "subscription": {
4570
4886
  "char": "s",
4571
- "description": "Subscription name",
4887
+ "description": "Subscription name; omit for every subscription",
4572
4888
  "name": "subscription",
4573
- "required": true,
4574
4889
  "hasDynamicHelp": false,
4575
4890
  "multiple": false,
4576
4891
  "type": "option"
4577
4892
  },
4578
4893
  "json": {
4579
- "description": "Print JSON instead of text",
4894
+ "description": "Print JSON instead of a table",
4580
4895
  "name": "json",
4581
4896
  "allowNo": false,
4582
4897
  "type": "boolean"
@@ -4584,7 +4899,7 @@
4584
4899
  },
4585
4900
  "hasDynamicHelp": false,
4586
4901
  "hiddenAliases": [],
4587
- "id": "queue:backlog",
4902
+ "id": "queue:stats",
4588
4903
  "pluginAlias": "@memberjunction/cli",
4589
4904
  "pluginName": "@memberjunction/cli",
4590
4905
  "pluginType": "core",
@@ -4595,43 +4910,20 @@
4595
4910
  "dist",
4596
4911
  "commands",
4597
4912
  "queue",
4598
- "backlog.js"
4913
+ "stats.js"
4599
4914
  ]
4600
4915
  },
4601
- "queue:dead-letters": {
4916
+ "queue:sweep": {
4602
4917
  "aliases": [],
4603
4918
  "args": {},
4604
- "description": "List a work-queue subscription's dead-lettered deliveries",
4919
+ "description": "Run one sweeper pass: expire leases, purge retention and the deduplication ledger, then exit (exit code 1 when a step fails)",
4605
4920
  "examples": [
4606
- "<%= config.bin %> <%= command.id %> --subscription integration.apply --page-size 20"
4921
+ "<%= config.bin %> <%= command.id %>",
4922
+ "<%= config.bin %> <%= command.id %> --json"
4607
4923
  ],
4608
4924
  "flags": {
4609
- "subscription": {
4610
- "char": "s",
4611
- "description": "Subscription name",
4612
- "name": "subscription",
4613
- "required": true,
4614
- "hasDynamicHelp": false,
4615
- "multiple": false,
4616
- "type": "option"
4617
- },
4618
- "cursor": {
4619
- "description": "nextCursor from a previous page",
4620
- "name": "cursor",
4621
- "hasDynamicHelp": false,
4622
- "multiple": false,
4623
- "type": "option"
4624
- },
4625
- "page-size": {
4626
- "description": "Items per page (1–500)",
4627
- "name": "page-size",
4628
- "default": 50,
4629
- "hasDynamicHelp": false,
4630
- "multiple": false,
4631
- "type": "option"
4632
- },
4633
4925
  "json": {
4634
- "description": "Print JSON instead of a table",
4926
+ "description": "Print JSON instead of text",
4635
4927
  "name": "json",
4636
4928
  "allowNo": false,
4637
4929
  "type": "boolean"
@@ -4639,7 +4931,7 @@
4639
4931
  },
4640
4932
  "hasDynamicHelp": false,
4641
4933
  "hiddenAliases": [],
4642
- "id": "queue:dead-letters",
4934
+ "id": "queue:sweep",
4643
4935
  "pluginAlias": "@memberjunction/cli",
4644
4936
  "pluginName": "@memberjunction/cli",
4645
4937
  "pluginType": "core",
@@ -4650,48 +4942,30 @@
4650
4942
  "dist",
4651
4943
  "commands",
4652
4944
  "queue",
4653
- "dead-letters.js"
4945
+ "sweep.js"
4654
4946
  ]
4655
4947
  },
4656
- "queue:discard": {
4948
+ "queue:usage": {
4657
4949
  "aliases": [],
4658
4950
  "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
- ],
4951
+ "description": "Show usage, flags, examples, and runtime hints for every `mj queue` command.",
4663
4952
  "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"
4672
- },
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"
4681
- },
4682
- "reason": {
4683
- "char": "r",
4684
- "description": "Why the work is dropped (at most 1000 characters)",
4685
- "name": "reason",
4686
- "required": true,
4953
+ "format": {
4954
+ "description": "Output format. Defaults to text on a terminal and json when stdout is piped.",
4955
+ "name": "format",
4687
4956
  "hasDynamicHelp": false,
4688
4957
  "multiple": false,
4958
+ "options": [
4959
+ "text",
4960
+ "json",
4961
+ "md"
4962
+ ],
4689
4963
  "type": "option"
4690
4964
  }
4691
4965
  },
4692
4966
  "hasDynamicHelp": false,
4693
4967
  "hiddenAliases": [],
4694
- "id": "queue:discard",
4968
+ "id": "queue:usage",
4695
4969
  "pluginAlias": "@memberjunction/cli",
4696
4970
  "pluginName": "@memberjunction/cli",
4697
4971
  "pluginType": "core",
@@ -4702,65 +4976,26 @@
4702
4976
  "dist",
4703
4977
  "commands",
4704
4978
  "queue",
4705
- "discard.js"
4979
+ "usage.js"
4706
4980
  ]
4707
4981
  },
4708
- "queue:export-topology": {
4982
+ "queue:validate-bindings": {
4709
4983
  "aliases": [],
4710
4984
  "args": {},
4711
- "description": "Write the topology manifest for one transport (input to the Terraform module)",
4985
+ "description": "Validate work-queue topology and cloud bindings; exits 1 on any error",
4712
4986
  "examples": [
4713
- "<%= config.bin %> <%= command.id %> --transport AWS-prod --output infrastructure/work-queue/manifest.json"
4987
+ "<%= config.bin %> <%= command.id %>",
4988
+ "<%= config.bin %> <%= command.id %> --transport AWS-prod"
4714
4989
  ],
4715
4990
  "flags": {
4716
4991
  "transport": {
4717
4992
  "char": "t",
4718
- "description": "Transport name",
4993
+ "description": "Validate one transport's bindings against its resources",
4719
4994
  "name": "transport",
4720
- "required": true,
4721
4995
  "hasDynamicHelp": false,
4722
4996
  "multiple": false,
4723
4997
  "type": "option"
4724
4998
  },
4725
- "output": {
4726
- "char": "o",
4727
- "description": "File to write; stdout when omitted",
4728
- "name": "output",
4729
- "hasDynamicHelp": false,
4730
- "multiple": false,
4731
- "type": "option"
4732
- }
4733
- },
4734
- "hasDynamicHelp": false,
4735
- "hiddenAliases": [],
4736
- "id": "queue:export-topology",
4737
- "pluginAlias": "@memberjunction/cli",
4738
- "pluginName": "@memberjunction/cli",
4739
- "pluginType": "core",
4740
- "strict": true,
4741
- "enableJsonFlag": false,
4742
- "isESM": true,
4743
- "relativePath": [
4744
- "dist",
4745
- "commands",
4746
- "queue",
4747
- "export-topology.js"
4748
- ]
4749
- },
4750
- "queue:import-bindings": {
4751
- "aliases": [],
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
4999
  "json": {
4765
5000
  "description": "Print issues as JSON",
4766
5001
  "name": "json",
@@ -4770,7 +5005,7 @@
4770
5005
  },
4771
5006
  "hasDynamicHelp": false,
4772
5007
  "hiddenAliases": [],
4773
- "id": "queue:import-bindings",
5008
+ "id": "queue:validate-bindings",
4774
5009
  "pluginAlias": "@memberjunction/cli",
4775
5010
  "pluginName": "@memberjunction/cli",
4776
5011
  "pluginType": "core",
@@ -4781,89 +5016,100 @@
4781
5016
  "dist",
4782
5017
  "commands",
4783
5018
  "queue",
4784
- "import-bindings.js"
5019
+ "validate-bindings.js"
4785
5020
  ]
4786
5021
  },
4787
- "queue": {
4788
- "aliases": [],
4789
- "args": {},
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
- ],
4796
- "flags": {},
4797
- "hasDynamicHelp": false,
4798
- "hiddenAliases": [],
4799
- "id": "queue",
4800
- "pluginAlias": "@memberjunction/cli",
4801
- "pluginName": "@memberjunction/cli",
4802
- "pluginType": "core",
4803
- "strict": true,
4804
- "enableJsonFlag": false,
4805
- "isESM": true,
4806
- "relativePath": [
4807
- "dist",
4808
- "commands",
4809
- "queue",
4810
- "index.js"
4811
- ]
4812
- },
4813
- "queue:partitions": {
5022
+ "queue:work": {
4814
5023
  "aliases": [],
4815
5024
  "args": {},
4816
- "description": "List a work-queue subscription's in-flight or blocked partition keys",
5025
+ "description": "Run work-queue subscriptions in this process: once for a container job, or until stopped",
4817
5026
  "examples": [
4818
- "<%= config.bin %> <%= command.id %> --subscription integration.apply --condition Blocked"
5027
+ "<%= config.bin %> <%= command.id %> --subscription venue-import --once",
5028
+ "<%= config.bin %> <%= command.id %> --subscription venue-import --once --max 5 --concurrency 2 --max-duration-ms 3300000",
5029
+ "<%= config.bin %> <%= command.id %> --subscription \"*\""
4819
5030
  ],
4820
5031
  "flags": {
4821
5032
  "subscription": {
4822
5033
  "char": "s",
4823
- "description": "Subscription name",
5034
+ "description": "Subscription name, or '*' for every MJWorker subscription",
4824
5035
  "name": "subscription",
4825
5036
  "required": true,
4826
5037
  "hasDynamicHelp": false,
4827
5038
  "multiple": false,
4828
5039
  "type": "option"
4829
5040
  },
4830
- "condition": {
4831
- "description": "Only keys in this condition",
4832
- "name": "condition",
5041
+ "once": {
5042
+ "description": "Receive up to --max deliveries, drain and exit (container-job mode)",
5043
+ "name": "once",
5044
+ "allowNo": false,
5045
+ "type": "boolean"
5046
+ },
5047
+ "max": {
5048
+ "dependsOn": [
5049
+ "once"
5050
+ ],
5051
+ "description": "With --once: how many deliveries to receive",
5052
+ "name": "max",
5053
+ "default": 1,
4833
5054
  "hasDynamicHelp": false,
4834
5055
  "multiple": false,
4835
- "options": [
4836
- "Idle",
4837
- "InFlight",
4838
- "Blocked"
5056
+ "type": "option"
5057
+ },
5058
+ "idle-exit-ms": {
5059
+ "dependsOn": [
5060
+ "once"
5061
+ ],
5062
+ "description": "With --once: exit after this long with an empty queue",
5063
+ "name": "idle-exit-ms",
5064
+ "default": 5000,
5065
+ "hasDynamicHelp": false,
5066
+ "multiple": false,
5067
+ "type": "option"
5068
+ },
5069
+ "max-duration-ms": {
5070
+ "dependsOn": [
5071
+ "once"
4839
5072
  ],
5073
+ "description": "With --once: stop claiming after this long and drain (keep it below the scheduler's job deadline)",
5074
+ "name": "max-duration-ms",
5075
+ "hasDynamicHelp": false,
5076
+ "multiple": false,
4840
5077
  "type": "option"
4841
5078
  },
4842
- "cursor": {
4843
- "description": "nextCursor from a previous page",
4844
- "name": "cursor",
5079
+ "concurrency": {
5080
+ "description": "Handlers in flight per subscription",
5081
+ "name": "concurrency",
5082
+ "default": 1,
4845
5083
  "hasDynamicHelp": false,
4846
5084
  "multiple": false,
4847
5085
  "type": "option"
4848
5086
  },
4849
- "page-size": {
4850
- "description": "Items per page (1–500)",
4851
- "name": "page-size",
4852
- "default": 50,
5087
+ "shutdown-drain-ms": {
5088
+ "description": "How long in-flight handlers get to finish on exit; the drain can take twice this",
5089
+ "name": "shutdown-drain-ms",
5090
+ "default": 30000,
4853
5091
  "hasDynamicHelp": false,
4854
5092
  "multiple": false,
4855
5093
  "type": "option"
4856
5094
  },
4857
- "json": {
4858
- "description": "Print JSON instead of a table",
4859
- "name": "json",
4860
- "allowNo": false,
4861
- "type": "boolean"
5095
+ "sweeper-interval-ms": {
5096
+ "description": "Lease expiry and retention purge interval; 0 disables. Default 60000 long-running, 0 with --once",
5097
+ "name": "sweeper-interval-ms",
5098
+ "hasDynamicHelp": false,
5099
+ "multiple": false,
5100
+ "type": "option"
5101
+ },
5102
+ "reconcile-interval-ms": {
5103
+ "description": "Re-planning interval; 0 plans only at start. Default 30000 long-running, 0 with --once",
5104
+ "name": "reconcile-interval-ms",
5105
+ "hasDynamicHelp": false,
5106
+ "multiple": false,
5107
+ "type": "option"
4862
5108
  }
4863
5109
  },
4864
5110
  "hasDynamicHelp": false,
4865
5111
  "hiddenAliases": [],
4866
- "id": "queue:partitions",
5112
+ "id": "queue:work",
4867
5113
  "pluginAlias": "@memberjunction/cli",
4868
5114
  "pluginName": "@memberjunction/cli",
4869
5115
  "pluginType": "core",
@@ -4874,79 +5120,112 @@
4874
5120
  "dist",
4875
5121
  "commands",
4876
5122
  "queue",
4877
- "partitions.js"
5123
+ "work.js"
4878
5124
  ]
4879
5125
  },
4880
- "queue:publish": {
5126
+ "rubric:diff": {
5127
+ "aliases": [],
5128
+ "args": {
5129
+ "rubric": {
5130
+ "description": "Rubric name or id",
5131
+ "name": "rubric",
5132
+ "required": true
5133
+ },
5134
+ "from": {
5135
+ "description": "Version 1.2.0 or id",
5136
+ "name": "from",
5137
+ "required": true
5138
+ },
5139
+ "to": {
5140
+ "description": "Version 1.2.0 or id",
5141
+ "name": "to",
5142
+ "required": true
5143
+ }
5144
+ },
5145
+ "description": "Print the version bump between two rubric versions.",
5146
+ "flags": {},
5147
+ "hasDynamicHelp": false,
5148
+ "hiddenAliases": [],
5149
+ "id": "rubric:diff",
5150
+ "pluginAlias": "@memberjunction/cli",
5151
+ "pluginName": "@memberjunction/cli",
5152
+ "pluginType": "core",
5153
+ "strict": true,
5154
+ "enableJsonFlag": false,
5155
+ "isESM": true,
5156
+ "relativePath": [
5157
+ "dist",
5158
+ "commands",
5159
+ "rubric",
5160
+ "diff.js"
5161
+ ]
5162
+ },
5163
+ "rubric:evaluate": {
4881
5164
  "aliases": [],
4882
5165
  "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
- ],
5166
+ "description": "Evaluate one record against a rubric. Does not publish.",
4889
5167
  "flags": {
4890
- "topic": {
4891
- "char": "t",
4892
- "description": "Topic name",
4893
- "name": "topic",
5168
+ "rubric": {
5169
+ "description": "Rubric name or id, optionally @version",
5170
+ "name": "rubric",
4894
5171
  "required": true,
4895
5172
  "hasDynamicHelp": false,
4896
5173
  "multiple": false,
4897
5174
  "type": "option"
4898
5175
  },
4899
- "payload": {
4900
- "char": "p",
4901
- "description": "Message payload as JSON",
4902
- "name": "payload",
4903
- "default": "{}",
5176
+ "entity": {
5177
+ "description": "Subject entity name",
5178
+ "name": "entity",
5179
+ "required": true,
4904
5180
  "hasDynamicHelp": false,
4905
5181
  "multiple": false,
4906
5182
  "type": "option"
4907
5183
  },
4908
- "partition-key": {
4909
- "char": "k",
4910
- "description": "PartitionKey for Exclusive / Ordered subscriptions",
4911
- "name": "partition-key",
5184
+ "record": {
5185
+ "description": "Subject record id",
5186
+ "name": "record",
5187
+ "required": true,
4912
5188
  "hasDynamicHelp": false,
4913
5189
  "multiple": false,
4914
5190
  "type": "option"
4915
5191
  },
4916
- "dedup-key": {
4917
- "description": "DeduplicationKey: a repeat within the topic TTL is reported as Duplicate",
4918
- "name": "dedup-key",
5192
+ "evaluator": {
5193
+ "description": "A registered evaluator: LLM, Decision, Agent, Deterministic, or a custom one",
5194
+ "name": "evaluator",
5195
+ "default": "LLM",
4919
5196
  "hasDynamicHelp": false,
4920
5197
  "multiple": false,
4921
5198
  "type": "option"
4922
5199
  },
4923
- "attribute": {
4924
- "char": "a",
4925
- "description": "Message attribute as key=value (repeatable)",
4926
- "name": "attribute",
5200
+ "prompt": {
5201
+ "description": "LLM: the judge prompt composed into Rubric Evaluator (default Rubric Evaluator - Default Judge). Decision: the decision prompt (default Default Decision)",
5202
+ "name": "prompt",
4927
5203
  "hasDynamicHelp": false,
4928
- "multiple": true,
5204
+ "multiple": false,
4929
5205
  "type": "option"
4930
5206
  },
4931
- "count": {
4932
- "char": "n",
4933
- "description": "How many copies to publish in one batch",
4934
- "name": "count",
4935
- "default": 1,
5207
+ "model": {
5208
+ "description": "AI Model ID to pin. Otherwise the prompt's bindings choose",
5209
+ "name": "model",
4936
5210
  "hasDynamicHelp": false,
4937
5211
  "multiple": false,
4938
5212
  "type": "option"
4939
5213
  },
4940
- "json": {
4941
- "description": "Print the publish results as JSON",
4942
- "name": "json",
4943
- "allowNo": false,
4944
- "type": "boolean"
5214
+ "mode": {
5215
+ "description": "LLM only: SinglePass or PerCriterion",
5216
+ "name": "mode",
5217
+ "hasDynamicHelp": false,
5218
+ "multiple": false,
5219
+ "options": [
5220
+ "SinglePass",
5221
+ "PerCriterion"
5222
+ ],
5223
+ "type": "option"
4945
5224
  }
4946
5225
  },
4947
5226
  "hasDynamicHelp": false,
4948
5227
  "hiddenAliases": [],
4949
- "id": "queue:publish",
5228
+ "id": "rubric:evaluate",
4950
5229
  "pluginAlias": "@memberjunction/cli",
4951
5230
  "pluginName": "@memberjunction/cli",
4952
5231
  "pluginType": "core",
@@ -4956,47 +5235,18 @@
4956
5235
  "relativePath": [
4957
5236
  "dist",
4958
5237
  "commands",
4959
- "queue",
4960
- "publish.js"
5238
+ "rubric",
5239
+ "evaluate.js"
4961
5240
  ]
4962
5241
  },
4963
- "queue:replay": {
5242
+ "rubric": {
4964
5243
  "aliases": [],
4965
5244
  "args": {},
4966
- "description": "Replay one dead-lettered work-queue delivery",
4967
- "examples": [
4968
- "<%= config.bin %> <%= command.id %> --subscription integration.apply --delivery <id> --note \"mapping fixed\""
4969
- ],
4970
- "flags": {
4971
- "subscription": {
4972
- "char": "s",
4973
- "description": "Subscription name",
4974
- "name": "subscription",
4975
- "required": true,
4976
- "hasDynamicHelp": false,
4977
- "multiple": false,
4978
- "type": "option"
4979
- },
4980
- "delivery": {
4981
- "char": "d",
4982
- "description": "DeliveryID from `mj queue dead-letters`",
4983
- "name": "delivery",
4984
- "required": true,
4985
- "hasDynamicHelp": false,
4986
- "multiple": false,
4987
- "type": "option"
4988
- },
4989
- "note": {
4990
- "description": "Operator note stored with the resolution",
4991
- "name": "note",
4992
- "hasDynamicHelp": false,
4993
- "multiple": false,
4994
- "type": "option"
4995
- }
4996
- },
5245
+ "description": "List, show, diff, validate, and evaluate rubrics.",
5246
+ "flags": {},
4997
5247
  "hasDynamicHelp": false,
4998
5248
  "hiddenAliases": [],
4999
- "id": "queue:replay",
5249
+ "id": "rubric",
5000
5250
  "pluginAlias": "@memberjunction/cli",
5001
5251
  "pluginName": "@memberjunction/cli",
5002
5252
  "pluginType": "core",
@@ -5006,37 +5256,18 @@
5006
5256
  "relativePath": [
5007
5257
  "dist",
5008
5258
  "commands",
5009
- "queue",
5010
- "replay.js"
5259
+ "rubric",
5260
+ "index.js"
5011
5261
  ]
5012
5262
  },
5013
- "queue:stats": {
5263
+ "rubric:list": {
5014
5264
  "aliases": [],
5015
5265
  "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",
5026
- "hasDynamicHelp": false,
5027
- "multiple": false,
5028
- "type": "option"
5029
- },
5030
- "json": {
5031
- "description": "Print JSON instead of a table",
5032
- "name": "json",
5033
- "allowNo": false,
5034
- "type": "boolean"
5035
- }
5036
- },
5266
+ "description": "List rubrics.",
5267
+ "flags": {},
5037
5268
  "hasDynamicHelp": false,
5038
5269
  "hiddenAliases": [],
5039
- "id": "queue:stats",
5270
+ "id": "rubric:list",
5040
5271
  "pluginAlias": "@memberjunction/cli",
5041
5272
  "pluginName": "@memberjunction/cli",
5042
5273
  "pluginType": "core",
@@ -5046,21 +5277,24 @@
5046
5277
  "relativePath": [
5047
5278
  "dist",
5048
5279
  "commands",
5049
- "queue",
5050
- "stats.js"
5280
+ "rubric",
5281
+ "list.js"
5051
5282
  ]
5052
5283
  },
5053
- "queue:sweep": {
5284
+ "rubric:show": {
5054
5285
  "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
- ],
5286
+ "args": {
5287
+ "rubric": {
5288
+ "description": "Rubric name or id, optionally @version",
5289
+ "name": "rubric",
5290
+ "required": true
5291
+ }
5292
+ },
5293
+ "description": "Show a rubric version and its criteria.",
5060
5294
  "flags": {},
5061
5295
  "hasDynamicHelp": false,
5062
5296
  "hiddenAliases": [],
5063
- "id": "queue:sweep",
5297
+ "id": "rubric:show",
5064
5298
  "pluginAlias": "@memberjunction/cli",
5065
5299
  "pluginName": "@memberjunction/cli",
5066
5300
  "pluginType": "core",
@@ -5070,14 +5304,14 @@
5070
5304
  "relativePath": [
5071
5305
  "dist",
5072
5306
  "commands",
5073
- "queue",
5074
- "sweep.js"
5307
+ "rubric",
5308
+ "show.js"
5075
5309
  ]
5076
5310
  },
5077
- "queue:usage": {
5311
+ "rubric:usage": {
5078
5312
  "aliases": [],
5079
5313
  "args": {},
5080
- "description": "Show usage, flags, examples, and runtime hints for every `mj queue` command.",
5314
+ "description": "Show usage, flags, examples, and runtime hints for every `mj rubric` command.",
5081
5315
  "flags": {
5082
5316
  "format": {
5083
5317
  "description": "Output format. Defaults to text on a terminal and json when stdout is piped.",
@@ -5094,7 +5328,7 @@
5094
5328
  },
5095
5329
  "hasDynamicHelp": false,
5096
5330
  "hiddenAliases": [],
5097
- "id": "queue:usage",
5331
+ "id": "rubric:usage",
5098
5332
  "pluginAlias": "@memberjunction/cli",
5099
5333
  "pluginName": "@memberjunction/cli",
5100
5334
  "pluginType": "core",
@@ -5104,37 +5338,24 @@
5104
5338
  "relativePath": [
5105
5339
  "dist",
5106
5340
  "commands",
5107
- "queue",
5341
+ "rubric",
5108
5342
  "usage.js"
5109
5343
  ]
5110
5344
  },
5111
- "queue:validate-bindings": {
5345
+ "rubric:validate": {
5112
5346
  "aliases": [],
5113
- "args": {},
5114
- "description": "Validate work-queue topology and cloud bindings; exits 1 on any error",
5115
- "examples": [
5116
- "<%= config.bin %> <%= command.id %>",
5117
- "<%= config.bin %> <%= command.id %> --transport AWS-prod"
5118
- ],
5119
- "flags": {
5120
- "transport": {
5121
- "char": "t",
5122
- "description": "Validate one transport's bindings against its resources",
5123
- "name": "transport",
5124
- "hasDynamicHelp": false,
5125
- "multiple": false,
5126
- "type": "option"
5127
- },
5128
- "json": {
5129
- "description": "Print issues as JSON",
5130
- "name": "json",
5131
- "allowNo": false,
5132
- "type": "boolean"
5347
+ "args": {
5348
+ "file": {
5349
+ "description": "JSON snapshot file",
5350
+ "name": "file",
5351
+ "required": true
5133
5352
  }
5134
5353
  },
5354
+ "description": "Check a rubric snapshot file for duplicate keys, gates, weights, and scales.",
5355
+ "flags": {},
5135
5356
  "hasDynamicHelp": false,
5136
5357
  "hiddenAliases": [],
5137
- "id": "queue:validate-bindings",
5358
+ "id": "rubric:validate",
5138
5359
  "pluginAlias": "@memberjunction/cli",
5139
5360
  "pluginName": "@memberjunction/cli",
5140
5361
  "pluginType": "core",
@@ -5144,95 +5365,56 @@
5144
5365
  "relativePath": [
5145
5366
  "dist",
5146
5367
  "commands",
5147
- "queue",
5148
- "validate-bindings.js"
5368
+ "rubric",
5369
+ "validate.js"
5149
5370
  ]
5150
5371
  },
5151
- "queue:work": {
5372
+ "sql-audit": {
5152
5373
  "aliases": [],
5153
5374
  "args": {},
5154
- "description": "Run work-queue subscriptions in this process: once for a container job, or until stopped",
5375
+ "description": "Compare source and target databases for migration verification",
5155
5376
  "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 \"*\""
5377
+ "<%= config.bin %> sql-audit --source \"mssql://sa:pass@host/db\" --target \"postgres://user:pass@host:5432/db\"",
5378
+ "<%= config.bin %> sql-audit --source \"mssql://sa:pass@host/db\" --target \"postgres://user:pass@host:5432/db\" --output report.txt",
5379
+ "<%= config.bin %> sql-audit --source \"mssql://sa:pass@host/db\" --target \"postgres://user:pass@host:5432/db\" --source-schema __mj --target-schema __mj"
5159
5380
  ],
5160
5381
  "flags": {
5161
- "subscription": {
5162
- "char": "s",
5163
- "description": "Subscription name, or '*' for every MJWorker subscription",
5164
- "name": "subscription",
5382
+ "source": {
5383
+ "description": "Source database connection string (mssql://... or postgres://...)",
5384
+ "name": "source",
5165
5385
  "required": true,
5166
5386
  "hasDynamicHelp": false,
5167
5387
  "multiple": false,
5168
5388
  "type": "option"
5169
5389
  },
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"
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,
5390
+ "target": {
5391
+ "description": "Target database connection string (mssql://... or postgres://...)",
5392
+ "name": "target",
5393
+ "required": true,
5212
5394
  "hasDynamicHelp": false,
5213
5395
  "multiple": false,
5214
5396
  "type": "option"
5215
5397
  },
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,
5398
+ "source-schema": {
5399
+ "description": "Source schema name",
5400
+ "name": "source-schema",
5401
+ "default": "__mj",
5220
5402
  "hasDynamicHelp": false,
5221
5403
  "multiple": false,
5222
5404
  "type": "option"
5223
5405
  },
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,
5406
+ "target-schema": {
5407
+ "description": "Target schema name",
5408
+ "name": "target-schema",
5409
+ "default": "__mj",
5228
5410
  "hasDynamicHelp": false,
5229
5411
  "multiple": false,
5230
5412
  "type": "option"
5231
5413
  },
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,
5414
+ "output": {
5415
+ "char": "o",
5416
+ "description": "Save report to file",
5417
+ "name": "output",
5236
5418
  "hasDynamicHelp": false,
5237
5419
  "multiple": false,
5238
5420
  "type": "option"
@@ -5240,7 +5422,7 @@
5240
5422
  },
5241
5423
  "hasDynamicHelp": false,
5242
5424
  "hiddenAliases": [],
5243
- "id": "queue:work",
5425
+ "id": "sql-audit",
5244
5426
  "pluginAlias": "@memberjunction/cli",
5245
5427
  "pluginName": "@memberjunction/cli",
5246
5428
  "pluginType": "core",
@@ -5250,74 +5432,227 @@
5250
5432
  "relativePath": [
5251
5433
  "dist",
5252
5434
  "commands",
5253
- "queue",
5254
- "work.js"
5435
+ "sql-audit",
5436
+ "index.js"
5255
5437
  ]
5256
5438
  },
5257
- "standards:adopt": {
5439
+ "sql-audit:usage": {
5258
5440
  "aliases": [],
5259
5441
  "args": {},
5260
- "description": "Adopt MemberJunction standards in this repository (config + CI + npm script + layer declarations)",
5261
- "examples": [
5262
- {
5263
- "command": "<%= config.bin %> <%= command.id %>",
5264
- "description": "Adopt every standard available at this CLI version"
5265
- },
5266
- {
5267
- "command": "<%= config.bin %> <%= command.id %> --ci github --declare-compliant",
5268
- "description": "Full setup: config, GitHub workflow, npm script, and declare already-compliant packages"
5269
- },
5270
- {
5271
- "command": "<%= config.bin %> <%= command.id %> --dry-run",
5272
- "description": "Show what would change"
5273
- },
5274
- {
5275
- "command": "<%= config.bin %> <%= command.id %> --upgrade",
5276
- "description": "Review standards added since this repo adopted, and bump its recorded version"
5277
- }
5278
- ],
5442
+ "description": "Show usage, flags, examples, and runtime hints for every `mj sql-audit` command.",
5279
5443
  "flags": {
5280
- "cwd": {
5281
- "description": "Repository root. Defaults to the current directory.",
5282
- "name": "cwd",
5283
- "hasDynamicHelp": false,
5284
- "multiple": false,
5285
- "type": "option"
5286
- },
5287
- "check": {
5288
- "description": "Only adopt these check ids.",
5289
- "name": "check",
5290
- "hasDynamicHelp": false,
5291
- "multiple": true,
5292
- "type": "option"
5293
- },
5294
- "ci": {
5295
- "description": "Write a CI workflow for this provider.",
5296
- "name": "ci",
5297
- "default": "none",
5444
+ "format": {
5445
+ "description": "Output format. Defaults to text on a terminal and json when stdout is piped.",
5446
+ "name": "format",
5298
5447
  "hasDynamicHelp": false,
5299
5448
  "multiple": false,
5300
5449
  "options": [
5301
- "github",
5302
- "none"
5450
+ "text",
5451
+ "json",
5452
+ "md"
5303
5453
  ],
5304
5454
  "type": "option"
5305
- },
5306
- "npm-script": {
5307
- "description": "Add an \"mj:standards\" script to the root package.json.",
5308
- "name": "npm-script",
5309
- "allowNo": true,
5310
- "type": "boolean"
5311
- },
5312
- "declare-compliant": {
5313
- "description": "Declare mjUILayer on packages that already comply. Without this a fresh adoption enforces nothing — every package is undeclared, so every package is skipped.",
5314
- "name": "declare-compliant",
5315
- "allowNo": false,
5316
- "type": "boolean"
5317
- },
5318
- "upgrade": {
5319
- "description": "Enable standards newer than this repo’s recorded StandardsVersion, and bump it.",
5320
- "name": "upgrade",
5455
+ }
5456
+ },
5457
+ "hasDynamicHelp": false,
5458
+ "hiddenAliases": [],
5459
+ "id": "sql-audit:usage",
5460
+ "pluginAlias": "@memberjunction/cli",
5461
+ "pluginName": "@memberjunction/cli",
5462
+ "pluginType": "core",
5463
+ "strict": true,
5464
+ "enableJsonFlag": false,
5465
+ "isESM": true,
5466
+ "relativePath": [
5467
+ "dist",
5468
+ "commands",
5469
+ "sql-audit",
5470
+ "usage.js"
5471
+ ]
5472
+ },
5473
+ "sql-convert": {
5474
+ "aliases": [],
5475
+ "args": {
5476
+ "source": {
5477
+ "description": "Source SQL file path",
5478
+ "name": "source",
5479
+ "required": true
5480
+ }
5481
+ },
5482
+ "description": "Convert SQL files between database dialects using rule-based BatchConverter engine",
5483
+ "examples": [
5484
+ "<%= config.bin %> sql-convert ./migration.sql --from tsql --to postgres",
5485
+ "<%= config.bin %> sql-convert ./migration.sql --from tsql --to postgres --output converted.sql",
5486
+ "<%= config.bin %> sql-convert ./migration.sql --from tsql --to postgres --schema my_schema",
5487
+ "<%= config.bin %> sql-convert ./migration.sql --from tsql --to postgres --no-header --verbose"
5488
+ ],
5489
+ "flags": {
5490
+ "from": {
5491
+ "description": "Source SQL dialect",
5492
+ "name": "from",
5493
+ "required": true,
5494
+ "hasDynamicHelp": false,
5495
+ "multiple": false,
5496
+ "type": "option"
5497
+ },
5498
+ "to": {
5499
+ "description": "Target SQL dialect",
5500
+ "name": "to",
5501
+ "required": true,
5502
+ "hasDynamicHelp": false,
5503
+ "multiple": false,
5504
+ "type": "option"
5505
+ },
5506
+ "output": {
5507
+ "char": "o",
5508
+ "description": "Output file path (default: <source>.converted.<ext>)",
5509
+ "name": "output",
5510
+ "hasDynamicHelp": false,
5511
+ "multiple": false,
5512
+ "type": "option"
5513
+ },
5514
+ "schema": {
5515
+ "description": "Target schema name",
5516
+ "name": "schema",
5517
+ "default": "__mj",
5518
+ "hasDynamicHelp": false,
5519
+ "multiple": false,
5520
+ "type": "option"
5521
+ },
5522
+ "no-header": {
5523
+ "description": "Skip PG header (extensions, schema, implicit cast)",
5524
+ "name": "no-header",
5525
+ "allowNo": false,
5526
+ "type": "boolean"
5527
+ },
5528
+ "no-post-process": {
5529
+ "description": "Skip post-processing pass",
5530
+ "name": "no-post-process",
5531
+ "allowNo": false,
5532
+ "type": "boolean"
5533
+ },
5534
+ "verbose": {
5535
+ "char": "v",
5536
+ "description": "Show per-statement progress and detailed report",
5537
+ "name": "verbose",
5538
+ "allowNo": false,
5539
+ "type": "boolean"
5540
+ }
5541
+ },
5542
+ "hasDynamicHelp": false,
5543
+ "hiddenAliases": [],
5544
+ "id": "sql-convert",
5545
+ "pluginAlias": "@memberjunction/cli",
5546
+ "pluginName": "@memberjunction/cli",
5547
+ "pluginType": "core",
5548
+ "strict": true,
5549
+ "enableJsonFlag": false,
5550
+ "isESM": true,
5551
+ "relativePath": [
5552
+ "dist",
5553
+ "commands",
5554
+ "sql-convert",
5555
+ "index.js"
5556
+ ]
5557
+ },
5558
+ "sql-convert:usage": {
5559
+ "aliases": [],
5560
+ "args": {},
5561
+ "description": "Show usage, flags, examples, and runtime hints for every `mj sql-convert` command.",
5562
+ "flags": {
5563
+ "format": {
5564
+ "description": "Output format. Defaults to text on a terminal and json when stdout is piped.",
5565
+ "name": "format",
5566
+ "hasDynamicHelp": false,
5567
+ "multiple": false,
5568
+ "options": [
5569
+ "text",
5570
+ "json",
5571
+ "md"
5572
+ ],
5573
+ "type": "option"
5574
+ }
5575
+ },
5576
+ "hasDynamicHelp": false,
5577
+ "hiddenAliases": [],
5578
+ "id": "sql-convert:usage",
5579
+ "pluginAlias": "@memberjunction/cli",
5580
+ "pluginName": "@memberjunction/cli",
5581
+ "pluginType": "core",
5582
+ "strict": true,
5583
+ "enableJsonFlag": false,
5584
+ "isESM": true,
5585
+ "relativePath": [
5586
+ "dist",
5587
+ "commands",
5588
+ "sql-convert",
5589
+ "usage.js"
5590
+ ]
5591
+ },
5592
+ "standards:adopt": {
5593
+ "aliases": [],
5594
+ "args": {},
5595
+ "description": "Adopt MemberJunction standards in this repository (config + CI + npm script + layer declarations)",
5596
+ "examples": [
5597
+ {
5598
+ "command": "<%= config.bin %> <%= command.id %>",
5599
+ "description": "Adopt every standard available at this CLI version"
5600
+ },
5601
+ {
5602
+ "command": "<%= config.bin %> <%= command.id %> --ci github --declare-compliant",
5603
+ "description": "Full setup: config, GitHub workflow, npm script, and declare already-compliant packages"
5604
+ },
5605
+ {
5606
+ "command": "<%= config.bin %> <%= command.id %> --dry-run",
5607
+ "description": "Show what would change"
5608
+ },
5609
+ {
5610
+ "command": "<%= config.bin %> <%= command.id %> --upgrade",
5611
+ "description": "Review standards added since this repo adopted, and bump its recorded version"
5612
+ }
5613
+ ],
5614
+ "flags": {
5615
+ "cwd": {
5616
+ "description": "Repository root. Defaults to the current directory.",
5617
+ "name": "cwd",
5618
+ "hasDynamicHelp": false,
5619
+ "multiple": false,
5620
+ "type": "option"
5621
+ },
5622
+ "check": {
5623
+ "description": "Only adopt these check ids.",
5624
+ "name": "check",
5625
+ "hasDynamicHelp": false,
5626
+ "multiple": true,
5627
+ "type": "option"
5628
+ },
5629
+ "ci": {
5630
+ "description": "Write a CI workflow for this provider.",
5631
+ "name": "ci",
5632
+ "default": "none",
5633
+ "hasDynamicHelp": false,
5634
+ "multiple": false,
5635
+ "options": [
5636
+ "github",
5637
+ "none"
5638
+ ],
5639
+ "type": "option"
5640
+ },
5641
+ "npm-script": {
5642
+ "description": "Add an \"mj:standards\" script to the root package.json.",
5643
+ "name": "npm-script",
5644
+ "allowNo": true,
5645
+ "type": "boolean"
5646
+ },
5647
+ "declare-compliant": {
5648
+ "description": "Declare mjUILayer on packages that already comply. Without this a fresh adoption enforces nothing — every package is undeclared, so every package is skipped.",
5649
+ "name": "declare-compliant",
5650
+ "allowNo": false,
5651
+ "type": "boolean"
5652
+ },
5653
+ "upgrade": {
5654
+ "description": "Enable standards newer than this repo’s recorded StandardsVersion, and bump it.",
5655
+ "name": "upgrade",
5321
5656
  "allowNo": false,
5322
5657
  "type": "boolean"
5323
5658
  },
@@ -5476,169 +5811,36 @@
5476
5811
  "usage.js"
5477
5812
  ]
5478
5813
  },
5479
- "translate-sql": {
5814
+ "sync:file-reset": {
5480
5815
  "aliases": [],
5481
5816
  "args": {},
5482
- "description": "Translate SQL fragments between database dialects (SQL Server ↔ PostgreSQL)",
5817
+ "description": "Reset file metadata sections",
5483
5818
  "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"
5819
+ "<%= config.bin %> <%= command.id %>",
5820
+ "<%= config.bin %> <%= command.id %> --dir=\"ai-prompts\"",
5821
+ "<%= config.bin %> <%= command.id %> --sections=\"dependencies,references\"",
5822
+ "<%= config.bin %> <%= command.id %> --all"
5488
5823
  ],
5489
5824
  "flags": {
5490
- "from": {
5491
- "description": "Source SQL dialect",
5492
- "name": "from",
5493
- "required": true,
5825
+ "dir": {
5826
+ "description": "Specific entity directory to reset",
5827
+ "name": "dir",
5494
5828
  "hasDynamicHelp": false,
5495
5829
  "multiple": false,
5496
- "options": [
5497
- "sqlserver",
5498
- "postgresql"
5499
- ],
5500
5830
  "type": "option"
5501
5831
  },
5502
- "to": {
5503
- "description": "Target SQL dialect",
5504
- "name": "to",
5505
- "required": true,
5832
+ "sections": {
5833
+ "description": "Comma-separated list of sections to reset (dependencies,references,related,lookup)",
5834
+ "name": "sections",
5506
5835
  "hasDynamicHelp": false,
5507
5836
  "multiple": false,
5508
- "options": [
5509
- "sqlserver",
5510
- "postgresql"
5511
- ],
5512
5837
  "type": "option"
5513
5838
  },
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",
5558
- "allowNo": false,
5559
- "type": "boolean"
5560
- }
5561
- },
5562
- "hasDynamicHelp": false,
5563
- "hiddenAliases": [],
5564
- "id": "translate-sql",
5565
- "pluginAlias": "@memberjunction/cli",
5566
- "pluginName": "@memberjunction/cli",
5567
- "pluginType": "core",
5568
- "strict": true,
5569
- "enableJsonFlag": false,
5570
- "isESM": true,
5571
- "relativePath": [
5572
- "dist",
5573
- "commands",
5574
- "translate-sql",
5575
- "index.js"
5576
- ]
5577
- },
5578
- "translate-sql:usage": {
5579
- "aliases": [],
5580
- "args": {},
5581
- "description": "Show usage, flags, examples, and runtime hints for every `mj translate-sql` command.",
5582
- "flags": {
5583
- "format": {
5584
- "description": "Output format. Defaults to text on a terminal and json when stdout is piped.",
5585
- "name": "format",
5586
- "hasDynamicHelp": false,
5587
- "multiple": false,
5588
- "options": [
5589
- "text",
5590
- "json",
5591
- "md"
5592
- ],
5593
- "type": "option"
5594
- }
5595
- },
5596
- "hasDynamicHelp": false,
5597
- "hiddenAliases": [],
5598
- "id": "translate-sql:usage",
5599
- "pluginAlias": "@memberjunction/cli",
5600
- "pluginName": "@memberjunction/cli",
5601
- "pluginType": "core",
5602
- "strict": true,
5603
- "enableJsonFlag": false,
5604
- "isESM": true,
5605
- "relativePath": [
5606
- "dist",
5607
- "commands",
5608
- "translate-sql",
5609
- "usage.js"
5610
- ]
5611
- },
5612
- "sync:file-reset": {
5613
- "aliases": [],
5614
- "args": {},
5615
- "description": "Reset file metadata sections",
5616
- "examples": [
5617
- "<%= config.bin %> <%= command.id %>",
5618
- "<%= config.bin %> <%= command.id %> --dir=\"ai-prompts\"",
5619
- "<%= config.bin %> <%= command.id %> --sections=\"dependencies,references\"",
5620
- "<%= config.bin %> <%= command.id %> --all"
5621
- ],
5622
- "flags": {
5623
- "dir": {
5624
- "description": "Specific entity directory to reset",
5625
- "name": "dir",
5626
- "hasDynamicHelp": false,
5627
- "multiple": false,
5628
- "type": "option"
5629
- },
5630
- "sections": {
5631
- "description": "Comma-separated list of sections to reset (dependencies,references,related,lookup)",
5632
- "name": "sections",
5633
- "hasDynamicHelp": false,
5634
- "multiple": false,
5635
- "type": "option"
5636
- },
5637
- "all": {
5638
- "description": "Reset all metadata sections",
5639
- "name": "all",
5640
- "allowNo": false,
5641
- "type": "boolean"
5839
+ "all": {
5840
+ "description": "Reset all metadata sections",
5841
+ "name": "all",
5842
+ "allowNo": false,
5843
+ "type": "boolean"
5642
5844
  },
5643
5845
  "dry-run": {
5644
5846
  "description": "Show what would be reset without actually resetting",
@@ -6882,7 +7084,8 @@
6882
7084
  "<%= config.bin %> <%= command.id %> --test \"T042 - Filter Grid\"",
6883
7085
  "<%= config.bin %> <%= command.id %> --promote --test \"T042 - Filter Grid\"",
6884
7086
  "<%= config.bin %> <%= command.id %> --promote --yes",
6885
- "<%= config.bin %> <%= command.id %> --discard --test \"T042 - Filter Grid\""
7087
+ "<%= config.bin %> <%= command.id %> --discard --test \"T042 - Filter Grid\"",
7088
+ "<%= config.bin %> <%= command.id %> --format=md --output=drift.md"
6886
7089
  ],
6887
7090
  "flags": {
6888
7091
  "test": {
@@ -6916,6 +7119,32 @@
6916
7119
  "name": "yes",
6917
7120
  "allowNo": false,
6918
7121
  "type": "boolean"
7122
+ },
7123
+ "format": {
7124
+ "char": "f",
7125
+ "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.",
7126
+ "name": "format",
7127
+ "hasDynamicHelp": false,
7128
+ "multiple": false,
7129
+ "options": [
7130
+ "text",
7131
+ "json",
7132
+ "md",
7133
+ "human",
7134
+ "console",
7135
+ "markdown",
7136
+ "compact",
7137
+ "table"
7138
+ ],
7139
+ "type": "option"
7140
+ },
7141
+ "output": {
7142
+ "char": "o",
7143
+ "description": "Write the pending-script report to this file",
7144
+ "name": "output",
7145
+ "hasDynamicHelp": false,
7146
+ "multiple": false,
7147
+ "type": "option"
6919
7148
  }
6920
7149
  },
6921
7150
  "hasDynamicHelp": false,
@@ -6948,7 +7177,8 @@
6948
7177
  "<%= config.bin %> <%= command.id %> <suite-id>",
6949
7178
  "<%= config.bin %> <%= command.id %> --name=\"Agent Quality Suite\"",
6950
7179
  "<%= config.bin %> <%= command.id %> <suite-id> --format=json",
6951
- "<%= config.bin %> <%= command.id %> <suite-id> --output=suite-results.json"
7180
+ "<%= config.bin %> <%= command.id %> <suite-id> --output=suite-results.json",
7181
+ "<%= config.bin %> <%= command.id %> --name=\"MJ Explorer Regression Suite\" --test=\"T001 - Login Smoke\""
6952
7182
  ],
6953
7183
  "flags": {
6954
7184
  "name": {
@@ -7062,6 +7292,13 @@
7062
7292
  "all"
7063
7293
  ],
7064
7294
  "type": "option"
7295
+ },
7296
+ "test": {
7297
+ "description": "Run only this suite test, by exact name. Repeat the flag to run more than one.",
7298
+ "name": "test",
7299
+ "hasDynamicHelp": false,
7300
+ "multiple": true,
7301
+ "type": "option"
7065
7302
  }
7066
7303
  },
7067
7304
  "hasDynamicHelp": false,
@@ -7203,104 +7440,237 @@
7203
7440
  "validate.js"
7204
7441
  ]
7205
7442
  },
7206
- "update:claude": {
7443
+ "translate-sql": {
7207
7444
  "aliases": [],
7208
7445
  "args": {},
7209
- "description": "Update the Claude Code pack in the current directory.",
7446
+ "description": "Translate SQL fragments between database dialects (SQL Server ↔ PostgreSQL)",
7210
7447
  "examples": [
7211
- "<%= config.bin %> update:claude",
7212
- "<%= config.bin %> update:claude --check",
7213
- "<%= config.bin %> update:claude --refresh-commands",
7214
- "<%= config.bin %> update:claude --allow-major",
7215
- "<%= config.bin %> update:claude --json"
7448
+ "<%= config.bin %> translate-sql --from sqlserver --to postgresql --dry-run",
7449
+ "<%= config.bin %> translate-sql --from sqlserver --to postgresql --scope queries",
7450
+ "<%= config.bin %> translate-sql --from sqlserver --to postgresql --sql \"SELECT TOP 10 [Name] FROM [Users]\"",
7451
+ "<%= config.bin %> translate-sql --from sqlserver --to postgresql --scope all --output ./reports"
7216
7452
  ],
7217
7453
  "flags": {
7218
- "dir": {
7219
- "description": "Target directory",
7220
- "name": "dir",
7221
- "default": ".",
7454
+ "from": {
7455
+ "description": "Source SQL dialect",
7456
+ "name": "from",
7457
+ "required": true,
7222
7458
  "hasDynamicHelp": false,
7223
7459
  "multiple": false,
7460
+ "options": [
7461
+ "sqlserver",
7462
+ "postgresql"
7463
+ ],
7224
7464
  "type": "option"
7225
7465
  },
7226
- "major": {
7227
- "description": "Force a specific MJ major (default: detected from package.json)",
7228
- "name": "major",
7466
+ "to": {
7467
+ "description": "Target SQL dialect",
7468
+ "name": "to",
7469
+ "required": true,
7229
7470
  "hasDynamicHelp": false,
7230
7471
  "multiple": false,
7472
+ "options": [
7473
+ "sqlserver",
7474
+ "postgresql"
7475
+ ],
7231
7476
  "type": "option"
7232
7477
  },
7233
- "ref": {
7234
- "description": "Git ref to fetch from (branch or tag). Default: main.",
7235
- "name": "ref",
7478
+ "scope": {
7479
+ "description": "What to scan for translation",
7480
+ "name": "scope",
7481
+ "default": "all",
7236
7482
  "hasDynamicHelp": false,
7237
7483
  "multiple": false,
7484
+ "options": [
7485
+ "queries",
7486
+ "views",
7487
+ "filters",
7488
+ "all"
7489
+ ],
7238
7490
  "type": "option"
7239
7491
  },
7240
- "from": {
7241
- "description": "Use a local pack source instead of fetching from GitHub",
7242
- "name": "from",
7492
+ "sql": {
7493
+ "description": "Translate a single SQL fragment (inline mode)",
7494
+ "name": "sql",
7243
7495
  "hasDynamicHelp": false,
7244
7496
  "multiple": false,
7245
7497
  "type": "option"
7246
7498
  },
7247
- "offline": {
7248
- "description": "Forbid network; requires --from <path>",
7249
- "name": "offline",
7250
- "allowNo": false,
7251
- "type": "boolean"
7252
- },
7253
7499
  "dry-run": {
7254
- "description": "Print what would be written; change nothing",
7500
+ "description": "Show what would be translated without making changes",
7255
7501
  "name": "dry-run",
7256
7502
  "allowNo": false,
7257
7503
  "type": "boolean"
7258
7504
  },
7259
- "yes": {
7260
- "char": "y",
7261
- "description": "Don't prompt (reserved for future interactive paths; currently no-op)",
7262
- "name": "yes",
7505
+ "review": {
7506
+ "description": "Generate review report only (no writes to database)",
7507
+ "name": "review",
7263
7508
  "allowNo": false,
7264
7509
  "type": "boolean"
7265
7510
  },
7511
+ "output": {
7512
+ "char": "o",
7513
+ "description": "Output directory for the translation report",
7514
+ "name": "output",
7515
+ "hasDynamicHelp": false,
7516
+ "multiple": false,
7517
+ "type": "option"
7518
+ },
7266
7519
  "force": {
7267
- "description": "Overwrite user-customized commands/skills (saves .bak files)",
7520
+ "description": "Re-translate even if platform variants already exist",
7268
7521
  "name": "force",
7269
7522
  "allowNo": false,
7270
7523
  "type": "boolean"
7271
- },
7272
- "skip-commands": {
7273
- "description": "Skip seeding .claude/commands/",
7274
- "name": "skip-commands",
7275
- "allowNo": false,
7276
- "type": "boolean"
7277
- },
7278
- "skip-skills": {
7279
- "description": "Skip seeding .claude/skills/",
7280
- "name": "skip-skills",
7281
- "allowNo": false,
7282
- "type": "boolean"
7283
- },
7284
- "skip-settings": {
7285
- "description": "Skip merging .claude/settings.json",
7286
- "name": "skip-settings",
7287
- "allowNo": false,
7288
- "type": "boolean"
7289
- },
7290
- "check": {
7291
- "description": "Compare local pack version to remote without writing anything",
7292
- "name": "check",
7293
- "allowNo": false,
7294
- "type": "boolean"
7295
- },
7296
- "refresh-commands": {
7297
- "description": "Force-resync .claude/commands/* from the pack (saves .bak files)",
7298
- "name": "refresh-commands",
7299
- "allowNo": false,
7300
- "type": "boolean"
7301
- },
7302
- "refresh-skills": {
7303
- "description": "Force-resync .claude/skills/** from the pack (saves .bak files)",
7524
+ }
7525
+ },
7526
+ "hasDynamicHelp": false,
7527
+ "hiddenAliases": [],
7528
+ "id": "translate-sql",
7529
+ "pluginAlias": "@memberjunction/cli",
7530
+ "pluginName": "@memberjunction/cli",
7531
+ "pluginType": "core",
7532
+ "strict": true,
7533
+ "enableJsonFlag": false,
7534
+ "isESM": true,
7535
+ "relativePath": [
7536
+ "dist",
7537
+ "commands",
7538
+ "translate-sql",
7539
+ "index.js"
7540
+ ]
7541
+ },
7542
+ "translate-sql:usage": {
7543
+ "aliases": [],
7544
+ "args": {},
7545
+ "description": "Show usage, flags, examples, and runtime hints for every `mj translate-sql` command.",
7546
+ "flags": {
7547
+ "format": {
7548
+ "description": "Output format. Defaults to text on a terminal and json when stdout is piped.",
7549
+ "name": "format",
7550
+ "hasDynamicHelp": false,
7551
+ "multiple": false,
7552
+ "options": [
7553
+ "text",
7554
+ "json",
7555
+ "md"
7556
+ ],
7557
+ "type": "option"
7558
+ }
7559
+ },
7560
+ "hasDynamicHelp": false,
7561
+ "hiddenAliases": [],
7562
+ "id": "translate-sql:usage",
7563
+ "pluginAlias": "@memberjunction/cli",
7564
+ "pluginName": "@memberjunction/cli",
7565
+ "pluginType": "core",
7566
+ "strict": true,
7567
+ "enableJsonFlag": false,
7568
+ "isESM": true,
7569
+ "relativePath": [
7570
+ "dist",
7571
+ "commands",
7572
+ "translate-sql",
7573
+ "usage.js"
7574
+ ]
7575
+ },
7576
+ "update:claude": {
7577
+ "aliases": [],
7578
+ "args": {},
7579
+ "description": "Update the Claude Code pack in the current directory.",
7580
+ "examples": [
7581
+ "<%= config.bin %> update:claude",
7582
+ "<%= config.bin %> update:claude --check",
7583
+ "<%= config.bin %> update:claude --refresh-commands",
7584
+ "<%= config.bin %> update:claude --allow-major",
7585
+ "<%= config.bin %> update:claude --json"
7586
+ ],
7587
+ "flags": {
7588
+ "dir": {
7589
+ "description": "Target directory",
7590
+ "name": "dir",
7591
+ "default": ".",
7592
+ "hasDynamicHelp": false,
7593
+ "multiple": false,
7594
+ "type": "option"
7595
+ },
7596
+ "major": {
7597
+ "description": "Force a specific MJ major (default: detected from package.json)",
7598
+ "name": "major",
7599
+ "hasDynamicHelp": false,
7600
+ "multiple": false,
7601
+ "type": "option"
7602
+ },
7603
+ "ref": {
7604
+ "description": "Git ref to fetch from (branch or tag). Default: main.",
7605
+ "name": "ref",
7606
+ "hasDynamicHelp": false,
7607
+ "multiple": false,
7608
+ "type": "option"
7609
+ },
7610
+ "from": {
7611
+ "description": "Use a local pack source instead of fetching from GitHub",
7612
+ "name": "from",
7613
+ "hasDynamicHelp": false,
7614
+ "multiple": false,
7615
+ "type": "option"
7616
+ },
7617
+ "offline": {
7618
+ "description": "Forbid network; requires --from <path>",
7619
+ "name": "offline",
7620
+ "allowNo": false,
7621
+ "type": "boolean"
7622
+ },
7623
+ "dry-run": {
7624
+ "description": "Print what would be written; change nothing",
7625
+ "name": "dry-run",
7626
+ "allowNo": false,
7627
+ "type": "boolean"
7628
+ },
7629
+ "yes": {
7630
+ "char": "y",
7631
+ "description": "Don't prompt (reserved for future interactive paths; currently no-op)",
7632
+ "name": "yes",
7633
+ "allowNo": false,
7634
+ "type": "boolean"
7635
+ },
7636
+ "force": {
7637
+ "description": "Overwrite user-customized commands/skills (saves .bak files)",
7638
+ "name": "force",
7639
+ "allowNo": false,
7640
+ "type": "boolean"
7641
+ },
7642
+ "skip-commands": {
7643
+ "description": "Skip seeding .claude/commands/",
7644
+ "name": "skip-commands",
7645
+ "allowNo": false,
7646
+ "type": "boolean"
7647
+ },
7648
+ "skip-skills": {
7649
+ "description": "Skip seeding .claude/skills/",
7650
+ "name": "skip-skills",
7651
+ "allowNo": false,
7652
+ "type": "boolean"
7653
+ },
7654
+ "skip-settings": {
7655
+ "description": "Skip merging .claude/settings.json",
7656
+ "name": "skip-settings",
7657
+ "allowNo": false,
7658
+ "type": "boolean"
7659
+ },
7660
+ "check": {
7661
+ "description": "Compare local pack version to remote without writing anything",
7662
+ "name": "check",
7663
+ "allowNo": false,
7664
+ "type": "boolean"
7665
+ },
7666
+ "refresh-commands": {
7667
+ "description": "Force-resync .claude/commands/* from the pack (saves .bak files)",
7668
+ "name": "refresh-commands",
7669
+ "allowNo": false,
7670
+ "type": "boolean"
7671
+ },
7672
+ "refresh-skills": {
7673
+ "description": "Force-resync .claude/skills/** from the pack (saves .bak files)",
7304
7674
  "name": "refresh-skills",
7305
7675
  "allowNo": false,
7306
7676
  "type": "boolean"
@@ -7454,6 +7824,40 @@
7454
7824
  "clone.js"
7455
7825
  ]
7456
7826
  },
7827
+ "user:usage": {
7828
+ "aliases": [],
7829
+ "args": {},
7830
+ "description": "Show usage, flags, examples, and runtime hints for every `mj user` command.",
7831
+ "flags": {
7832
+ "format": {
7833
+ "description": "Output format. Defaults to text on a terminal and json when stdout is piped.",
7834
+ "name": "format",
7835
+ "hasDynamicHelp": false,
7836
+ "multiple": false,
7837
+ "options": [
7838
+ "text",
7839
+ "json",
7840
+ "md"
7841
+ ],
7842
+ "type": "option"
7843
+ }
7844
+ },
7845
+ "hasDynamicHelp": false,
7846
+ "hiddenAliases": [],
7847
+ "id": "user:usage",
7848
+ "pluginAlias": "@memberjunction/cli",
7849
+ "pluginName": "@memberjunction/cli",
7850
+ "pluginType": "core",
7851
+ "strict": true,
7852
+ "enableJsonFlag": false,
7853
+ "isESM": true,
7854
+ "relativePath": [
7855
+ "dist",
7856
+ "commands",
7857
+ "user",
7858
+ "usage.js"
7859
+ ]
7860
+ },
7457
7861
  "ai:actions:list": {
7458
7862
  "aliases": [],
7459
7863
  "args": {},
@@ -8163,7 +8567,424 @@
8163
8567
  },
8164
8568
  "hasDynamicHelp": false,
8165
8569
  "hiddenAliases": [],
8166
- "id": "ai:prompts:run",
8570
+ "id": "ai:prompts:run",
8571
+ "pluginAlias": "@memberjunction/cli",
8572
+ "pluginName": "@memberjunction/cli",
8573
+ "pluginType": "core",
8574
+ "strict": true,
8575
+ "enableJsonFlag": false,
8576
+ "isESM": true,
8577
+ "relativePath": [
8578
+ "dist",
8579
+ "commands",
8580
+ "ai",
8581
+ "prompts",
8582
+ "run.js"
8583
+ ]
8584
+ },
8585
+ "dev:workspace:clean": {
8586
+ "aliases": [],
8587
+ "args": {},
8588
+ "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.",
8589
+ "examples": [
8590
+ "<%= config.bin %> dev workspace clean --dir ~/code/bluecypress --dry-run",
8591
+ "<%= config.bin %> dev workspace clean --dir ~/code/bluecypress",
8592
+ "<%= config.bin %> dev workspace clean --dir ~/code/bluecypress --dry-run --force",
8593
+ "<%= config.bin %> dev workspace clean --dir ~/code/bluecypress --force"
8594
+ ],
8595
+ "flags": {
8596
+ "dir": {
8597
+ "description": "Parent directory holding the sibling repo clones (must NOT itself be a git repo; env: MJ_DEV_WORKSPACE_DIR)",
8598
+ "env": "MJ_DEV_WORKSPACE_DIR",
8599
+ "name": "dir",
8600
+ "default": ".",
8601
+ "hasDynamicHelp": false,
8602
+ "multiple": false,
8603
+ "type": "option"
8604
+ },
8605
+ "dry-run": {
8606
+ "description": "List what would be removed and exit without deleting anything",
8607
+ "name": "dry-run",
8608
+ "allowNo": false,
8609
+ "type": "boolean"
8610
+ },
8611
+ "force": {
8612
+ "description": "Clean even without the generator sentinel (hand-made or pre-sentinel workspaces)",
8613
+ "name": "force",
8614
+ "allowNo": false,
8615
+ "type": "boolean"
8616
+ }
8617
+ },
8618
+ "hasDynamicHelp": false,
8619
+ "hiddenAliases": [],
8620
+ "id": "dev:workspace:clean",
8621
+ "pluginAlias": "@memberjunction/cli",
8622
+ "pluginName": "@memberjunction/cli",
8623
+ "pluginType": "core",
8624
+ "strict": true,
8625
+ "enableJsonFlag": false,
8626
+ "isESM": true,
8627
+ "relativePath": [
8628
+ "dist",
8629
+ "commands",
8630
+ "dev",
8631
+ "workspace",
8632
+ "clean.js"
8633
+ ]
8634
+ },
8635
+ "dev:workspace:doctor": {
8636
+ "aliases": [],
8637
+ "args": {},
8638
+ "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.",
8639
+ "examples": [
8640
+ "<%= config.bin %> dev workspace doctor",
8641
+ "<%= config.bin %> dev workspace doctor --dir ~/code/bluecypress",
8642
+ "MJ_DEV_WORKSPACE_DIR=~/code/bluecypress <%= config.bin %> dev workspace doctor"
8643
+ ],
8644
+ "flags": {
8645
+ "dir": {
8646
+ "description": "Parent directory holding the sibling repo clones (env: MJ_DEV_WORKSPACE_DIR)",
8647
+ "env": "MJ_DEV_WORKSPACE_DIR",
8648
+ "name": "dir",
8649
+ "default": ".",
8650
+ "hasDynamicHelp": false,
8651
+ "multiple": false,
8652
+ "type": "option"
8653
+ }
8654
+ },
8655
+ "hasDynamicHelp": false,
8656
+ "hiddenAliases": [],
8657
+ "id": "dev:workspace:doctor",
8658
+ "pluginAlias": "@memberjunction/cli",
8659
+ "pluginName": "@memberjunction/cli",
8660
+ "pluginType": "core",
8661
+ "strict": true,
8662
+ "enableJsonFlag": false,
8663
+ "isESM": true,
8664
+ "relativePath": [
8665
+ "dist",
8666
+ "commands",
8667
+ "dev",
8668
+ "workspace",
8669
+ "doctor.js"
8670
+ ]
8671
+ },
8672
+ "dev:workspace": {
8673
+ "aliases": [],
8674
+ "args": {},
8675
+ "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`.",
8676
+ "examples": [
8677
+ "<%= config.bin %> dev workspace --dir ~/code/bluecypress",
8678
+ "<%= config.bin %> dev workspace --dir ~/code/bluecypress --exclude bizapps-sonar",
8679
+ "<%= config.bin %> dev workspace --dir ~/code/bluecypress --include bizapps-common --include bizapps-tasks",
8680
+ "<%= config.bin %> dev workspace --dir ~/code/bluecypress --no-install --force",
8681
+ "MJ_DEV_WORKSPACE_DIR=~/code/bluecypress <%= config.bin %> dev workspace"
8682
+ ],
8683
+ "flags": {
8684
+ "dir": {
8685
+ "description": "Parent directory holding the sibling repo clones (must NOT itself be a git repo; env: MJ_DEV_WORKSPACE_DIR)",
8686
+ "env": "MJ_DEV_WORKSPACE_DIR",
8687
+ "name": "dir",
8688
+ "default": ".",
8689
+ "hasDynamicHelp": false,
8690
+ "multiple": false,
8691
+ "type": "option"
8692
+ },
8693
+ "include": {
8694
+ "description": "Repo directory name to include as a member (repeatable; adds to the detected set)",
8695
+ "name": "include",
8696
+ "hasDynamicHelp": false,
8697
+ "multiple": true,
8698
+ "type": "option"
8699
+ },
8700
+ "exclude": {
8701
+ "description": "Repo directory name to exclude from the members (repeatable)",
8702
+ "name": "exclude",
8703
+ "hasDynamicHelp": false,
8704
+ "multiple": true,
8705
+ "type": "option"
8706
+ },
8707
+ "apps": {
8708
+ "description": "Admit a member's app-shell packages, which the packages-rooted rule drops by default: <member>=<glob>[,<glob>] (e.g. Skip-Brain=apps/API,apps/MJAPI). The member must be detected or --include'd; names must be unique across the workspace.",
8709
+ "name": "apps",
8710
+ "hasDynamicHelp": false,
8711
+ "multiple": true,
8712
+ "type": "option"
8713
+ },
8714
+ "install": {
8715
+ "description": "Run `pnpm install` at the parent after generating (disable with --no-install)",
8716
+ "name": "install",
8717
+ "allowNo": true,
8718
+ "type": "boolean"
8719
+ },
8720
+ "force": {
8721
+ "description": "Overwrite existing workspace files at the parent (a .bak copy of each is kept)",
8722
+ "name": "force",
8723
+ "allowNo": false,
8724
+ "type": "boolean"
8725
+ },
8726
+ "clean-members": {
8727
+ "description": "Remove members' standalone node_modules trees (root AND nested, depth-independent) before the parent install; --no-clean-members keeps them. Without either flag, an interactive run asks per member.",
8728
+ "name": "clean-members",
8729
+ "allowNo": true,
8730
+ "type": "boolean"
8731
+ },
8732
+ "verbose": {
8733
+ "char": "v",
8734
+ "description": "Show detailed output",
8735
+ "name": "verbose",
8736
+ "allowNo": false,
8737
+ "type": "boolean"
8738
+ }
8739
+ },
8740
+ "hasDynamicHelp": false,
8741
+ "hiddenAliases": [],
8742
+ "id": "dev:workspace",
8743
+ "pluginAlias": "@memberjunction/cli",
8744
+ "pluginName": "@memberjunction/cli",
8745
+ "pluginType": "core",
8746
+ "strict": true,
8747
+ "enableJsonFlag": false,
8748
+ "isESM": true,
8749
+ "relativePath": [
8750
+ "dist",
8751
+ "commands",
8752
+ "dev",
8753
+ "workspace",
8754
+ "index.js"
8755
+ ]
8756
+ },
8757
+ "dev:workspace:status": {
8758
+ "aliases": [],
8759
+ "args": {},
8760
+ "description": "Report the state of the generated cross-repo pnpm workspace at a parent directory: generated files, lockfile, node_modules, sentinel presence, members vs. detected candidates, and the pnpm pin. Read-only.",
8761
+ "examples": [
8762
+ "<%= config.bin %> dev workspace status",
8763
+ "<%= config.bin %> dev workspace status --dir ~/code/bluecypress",
8764
+ "MJ_DEV_WORKSPACE_DIR=~/code/bluecypress <%= config.bin %> dev workspace status"
8765
+ ],
8766
+ "flags": {
8767
+ "dir": {
8768
+ "description": "Parent directory holding the sibling repo clones (env: MJ_DEV_WORKSPACE_DIR)",
8769
+ "env": "MJ_DEV_WORKSPACE_DIR",
8770
+ "name": "dir",
8771
+ "default": ".",
8772
+ "hasDynamicHelp": false,
8773
+ "multiple": false,
8774
+ "type": "option"
8775
+ }
8776
+ },
8777
+ "hasDynamicHelp": false,
8778
+ "hiddenAliases": [],
8779
+ "id": "dev:workspace:status",
8780
+ "pluginAlias": "@memberjunction/cli",
8781
+ "pluginName": "@memberjunction/cli",
8782
+ "pluginType": "core",
8783
+ "strict": true,
8784
+ "enableJsonFlag": false,
8785
+ "isESM": true,
8786
+ "relativePath": [
8787
+ "dist",
8788
+ "commands",
8789
+ "dev",
8790
+ "workspace",
8791
+ "status.js"
8792
+ ]
8793
+ },
8794
+ "harness:account:add": {
8795
+ "aliases": [],
8796
+ "args": {
8797
+ "vendor": {
8798
+ "description": "CLI vendor (claude, agy, codex, gemini; aliases: claude-code, antigravity, openai-codex, gemini-cli)",
8799
+ "name": "vendor",
8800
+ "required": true
8801
+ }
8802
+ },
8803
+ "description": "Enroll a new isolated CLI subscription account slot and optionally run its interactive login flow",
8804
+ "examples": [
8805
+ "<%= config.bin %> <%= command.id %> claude --label \"Pro #2\" --weight 2 --priority 50",
8806
+ "<%= config.bin %> <%= command.id %> agy --label \"Team Seat\"",
8807
+ "<%= config.bin %> <%= command.id %> codex --label \"Codex #2\" --no-login",
8808
+ "<%= config.bin %> <%= command.id %> gemini --label \"Gemini Alt\""
8809
+ ],
8810
+ "flags": {
8811
+ "label": {
8812
+ "char": "l",
8813
+ "description": "Human-friendly label for this account slot",
8814
+ "name": "label",
8815
+ "hasDynamicHelp": false,
8816
+ "multiple": false,
8817
+ "type": "option"
8818
+ },
8819
+ "slot-id": {
8820
+ "description": "Optional explicit slot ID (auto-generated from vendor + label when omitted)",
8821
+ "name": "slot-id",
8822
+ "hasDynamicHelp": false,
8823
+ "multiple": false,
8824
+ "type": "option"
8825
+ },
8826
+ "weight": {
8827
+ "char": "w",
8828
+ "description": "Relative balancing weight (>= 1, default 1)",
8829
+ "name": "weight",
8830
+ "default": 1,
8831
+ "hasDynamicHelp": false,
8832
+ "multiple": false,
8833
+ "type": "option"
8834
+ },
8835
+ "priority": {
8836
+ "char": "p",
8837
+ "description": "Failover priority (lower number = higher priority, default 100)",
8838
+ "name": "priority",
8839
+ "default": 100,
8840
+ "hasDynamicHelp": false,
8841
+ "multiple": false,
8842
+ "type": "option"
8843
+ },
8844
+ "no-login": {
8845
+ "description": "Create the isolated slot directory and register it without launching interactive login",
8846
+ "name": "no-login",
8847
+ "allowNo": false,
8848
+ "type": "boolean"
8849
+ },
8850
+ "oauth-token": {
8851
+ "description": "Optional OAuth setup token value (e.g. CLAUDE_CODE_OAUTH_TOKEN) stored on the slot",
8852
+ "name": "oauth-token",
8853
+ "hasDynamicHelp": false,
8854
+ "multiple": false,
8855
+ "type": "option"
8856
+ },
8857
+ "pool-dir": {
8858
+ "description": "Override account pool storage directory",
8859
+ "name": "pool-dir",
8860
+ "hasDynamicHelp": false,
8861
+ "multiple": false,
8862
+ "type": "option"
8863
+ }
8864
+ },
8865
+ "hasDynamicHelp": false,
8866
+ "hiddenAliases": [],
8867
+ "id": "harness:account:add",
8868
+ "pluginAlias": "@memberjunction/cli",
8869
+ "pluginName": "@memberjunction/cli",
8870
+ "pluginType": "core",
8871
+ "strict": true,
8872
+ "enableJsonFlag": false,
8873
+ "isESM": true,
8874
+ "relativePath": [
8875
+ "dist",
8876
+ "commands",
8877
+ "harness",
8878
+ "account",
8879
+ "add.js"
8880
+ ]
8881
+ },
8882
+ "harness:account:clear-cooldown": {
8883
+ "aliases": [],
8884
+ "args": {
8885
+ "slotId": {
8886
+ "description": "Slot ID whose cooldown should be cleared",
8887
+ "name": "slotId",
8888
+ "required": true
8889
+ }
8890
+ },
8891
+ "description": "Clear active quota/rate-limit cooldown state on a CLI account slot",
8892
+ "examples": [
8893
+ "<%= config.bin %> <%= command.id %> claude-pro-2",
8894
+ "<%= config.bin %> <%= command.id %> os-default-claude"
8895
+ ],
8896
+ "flags": {
8897
+ "pool-dir": {
8898
+ "description": "Override account pool storage directory",
8899
+ "name": "pool-dir",
8900
+ "hasDynamicHelp": false,
8901
+ "multiple": false,
8902
+ "type": "option"
8903
+ }
8904
+ },
8905
+ "hasDynamicHelp": false,
8906
+ "hiddenAliases": [],
8907
+ "id": "harness:account:clear-cooldown",
8908
+ "pluginAlias": "@memberjunction/cli",
8909
+ "pluginName": "@memberjunction/cli",
8910
+ "pluginType": "core",
8911
+ "strict": true,
8912
+ "enableJsonFlag": false,
8913
+ "isESM": true,
8914
+ "relativePath": [
8915
+ "dist",
8916
+ "commands",
8917
+ "harness",
8918
+ "account",
8919
+ "clear-cooldown.js"
8920
+ ]
8921
+ },
8922
+ "harness:account:disable": {
8923
+ "aliases": [],
8924
+ "args": {
8925
+ "slotId": {
8926
+ "description": "Slot ID to disable",
8927
+ "name": "slotId",
8928
+ "required": true
8929
+ }
8930
+ },
8931
+ "description": "Disable a CLI subscription account slot without deleting its credentials",
8932
+ "examples": [
8933
+ "<%= config.bin %> <%= command.id %> claude-pro-2",
8934
+ "<%= config.bin %> <%= command.id %> os-default-claude"
8935
+ ],
8936
+ "flags": {
8937
+ "pool-dir": {
8938
+ "description": "Override account pool storage directory",
8939
+ "name": "pool-dir",
8940
+ "hasDynamicHelp": false,
8941
+ "multiple": false,
8942
+ "type": "option"
8943
+ }
8944
+ },
8945
+ "hasDynamicHelp": false,
8946
+ "hiddenAliases": [],
8947
+ "id": "harness:account:disable",
8948
+ "pluginAlias": "@memberjunction/cli",
8949
+ "pluginName": "@memberjunction/cli",
8950
+ "pluginType": "core",
8951
+ "strict": true,
8952
+ "enableJsonFlag": false,
8953
+ "isESM": true,
8954
+ "relativePath": [
8955
+ "dist",
8956
+ "commands",
8957
+ "harness",
8958
+ "account",
8959
+ "disable.js"
8960
+ ]
8961
+ },
8962
+ "harness:account:enable": {
8963
+ "aliases": [],
8964
+ "args": {
8965
+ "slotId": {
8966
+ "description": "Slot ID to enable",
8967
+ "name": "slotId",
8968
+ "required": true
8969
+ }
8970
+ },
8971
+ "description": "Enable a CLI subscription account slot for automatic balancing",
8972
+ "examples": [
8973
+ "<%= config.bin %> <%= command.id %> claude-pro-2",
8974
+ "<%= config.bin %> <%= command.id %> os-default-claude"
8975
+ ],
8976
+ "flags": {
8977
+ "pool-dir": {
8978
+ "description": "Override account pool storage directory",
8979
+ "name": "pool-dir",
8980
+ "hasDynamicHelp": false,
8981
+ "multiple": false,
8982
+ "type": "option"
8983
+ }
8984
+ },
8985
+ "hasDynamicHelp": false,
8986
+ "hiddenAliases": [],
8987
+ "id": "harness:account:enable",
8167
8988
  "pluginAlias": "@memberjunction/cli",
8168
8989
  "pluginName": "@memberjunction/cli",
8169
8990
  "pluginType": "core",
@@ -8173,47 +8994,74 @@
8173
8994
  "relativePath": [
8174
8995
  "dist",
8175
8996
  "commands",
8176
- "ai",
8177
- "prompts",
8178
- "run.js"
8997
+ "harness",
8998
+ "account",
8999
+ "enable.js"
8179
9000
  ]
8180
9001
  },
8181
- "dev:workspace:clean": {
9002
+ "harness:account": {
8182
9003
  "aliases": [],
8183
9004
  "args": {},
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.",
9005
+ "description": "Manage multi-account CLI subscription pool slots and balancing strategy",
8185
9006
  "examples": [
8186
- "<%= config.bin %> dev workspace clean --dir ~/code/bluecypress --dry-run",
8187
- "<%= config.bin %> dev workspace clean --dir ~/code/bluecypress",
8188
- "<%= config.bin %> dev workspace clean --dir ~/code/bluecypress --dry-run --force",
8189
- "<%= config.bin %> dev workspace clean --dir ~/code/bluecypress --force"
9007
+ "<%= config.bin %> <%= command.id %> list",
9008
+ "<%= config.bin %> <%= command.id %> add claude --label \"Team Seat\"",
9009
+ "<%= config.bin %> <%= command.id %> login claude-team-seat",
9010
+ "<%= config.bin %> <%= command.id %> set-strategy weighted"
9011
+ ],
9012
+ "flags": {},
9013
+ "hasDynamicHelp": false,
9014
+ "hiddenAliases": [],
9015
+ "id": "harness:account",
9016
+ "pluginAlias": "@memberjunction/cli",
9017
+ "pluginName": "@memberjunction/cli",
9018
+ "pluginType": "core",
9019
+ "strict": true,
9020
+ "enableJsonFlag": false,
9021
+ "isESM": true,
9022
+ "relativePath": [
9023
+ "dist",
9024
+ "commands",
9025
+ "harness",
9026
+ "account",
9027
+ "index.js"
9028
+ ]
9029
+ },
9030
+ "harness:account:list": {
9031
+ "aliases": [],
9032
+ "args": {},
9033
+ "description": "List enrolled and OS-default CLI subscription account slots, auth status, active leases, cooldowns, and balancing strategy",
9034
+ "examples": [
9035
+ "<%= config.bin %> <%= command.id %>",
9036
+ "<%= config.bin %> <%= command.id %> --vendor claude",
9037
+ "<%= config.bin %> <%= command.id %> --json"
8190
9038
  ],
8191
9039
  "flags": {
8192
- "dir": {
8193
- "description": "Parent directory holding the sibling repo clones (must NOT itself be a git repo; env: MJ_DEV_WORKSPACE_DIR)",
8194
- "env": "MJ_DEV_WORKSPACE_DIR",
8195
- "name": "dir",
8196
- "default": ".",
9040
+ "vendor": {
9041
+ "char": "v",
9042
+ "description": "Filter by vendor (claude, agy, codex, gemini)",
9043
+ "name": "vendor",
8197
9044
  "hasDynamicHelp": false,
8198
9045
  "multiple": false,
8199
9046
  "type": "option"
8200
9047
  },
8201
- "dry-run": {
8202
- "description": "List what would be removed and exit without deleting anything",
8203
- "name": "dry-run",
9048
+ "json": {
9049
+ "description": "Print machine-readable JSON instead of a table",
9050
+ "name": "json",
8204
9051
  "allowNo": false,
8205
9052
  "type": "boolean"
8206
9053
  },
8207
- "force": {
8208
- "description": "Clean even without the generator sentinel (hand-made or pre-sentinel workspaces)",
8209
- "name": "force",
8210
- "allowNo": false,
8211
- "type": "boolean"
9054
+ "pool-dir": {
9055
+ "description": "Override account pool storage directory (default: MJ_HARNESS_ACCOUNT_POOL_DIR or ~/.mj/harness-accounts)",
9056
+ "name": "pool-dir",
9057
+ "hasDynamicHelp": false,
9058
+ "multiple": false,
9059
+ "type": "option"
8212
9060
  }
8213
9061
  },
8214
9062
  "hasDynamicHelp": false,
8215
9063
  "hiddenAliases": [],
8216
- "id": "dev:workspace:clean",
9064
+ "id": "harness:account:list",
8217
9065
  "pluginAlias": "@memberjunction/cli",
8218
9066
  "pluginName": "@memberjunction/cli",
8219
9067
  "pluginType": "core",
@@ -8223,26 +9071,29 @@
8223
9071
  "relativePath": [
8224
9072
  "dist",
8225
9073
  "commands",
8226
- "dev",
8227
- "workspace",
8228
- "clean.js"
9074
+ "harness",
9075
+ "account",
9076
+ "list.js"
8229
9077
  ]
8230
9078
  },
8231
- "dev:workspace:doctor": {
9079
+ "harness:account:login": {
8232
9080
  "aliases": [],
8233
- "args": {},
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.",
9081
+ "args": {
9082
+ "slotId": {
9083
+ "description": "Slot ID to authenticate (see `mj harness account list`)",
9084
+ "name": "slotId",
9085
+ "required": true
9086
+ }
9087
+ },
9088
+ "description": "Re-run interactive CLI login for an existing account slot and clear any active quota cooldown",
8235
9089
  "examples": [
8236
- "<%= config.bin %> dev workspace doctor",
8237
- "<%= config.bin %> dev workspace doctor --dir ~/code/bluecypress",
8238
- "MJ_DEV_WORKSPACE_DIR=~/code/bluecypress <%= config.bin %> dev workspace doctor"
9090
+ "<%= config.bin %> <%= command.id %> claude-pro-2",
9091
+ "<%= config.bin %> <%= command.id %> os-default-agy"
8239
9092
  ],
8240
9093
  "flags": {
8241
- "dir": {
8242
- "description": "Parent directory holding the sibling repo clones (env: MJ_DEV_WORKSPACE_DIR)",
8243
- "env": "MJ_DEV_WORKSPACE_DIR",
8244
- "name": "dir",
8245
- "default": ".",
9094
+ "pool-dir": {
9095
+ "description": "Override account pool storage directory",
9096
+ "name": "pool-dir",
8246
9097
  "hasDynamicHelp": false,
8247
9098
  "multiple": false,
8248
9099
  "type": "option"
@@ -8250,7 +9101,7 @@
8250
9101
  },
8251
9102
  "hasDynamicHelp": false,
8252
9103
  "hiddenAliases": [],
8253
- "id": "dev:workspace:doctor",
9104
+ "id": "harness:account:login",
8254
9105
  "pluginAlias": "@memberjunction/cli",
8255
9106
  "pluginName": "@memberjunction/cli",
8256
9107
  "pluginType": "core",
@@ -8260,82 +9111,43 @@
8260
9111
  "relativePath": [
8261
9112
  "dist",
8262
9113
  "commands",
8263
- "dev",
8264
- "workspace",
8265
- "doctor.js"
9114
+ "harness",
9115
+ "account",
9116
+ "login.js"
8266
9117
  ]
8267
9118
  },
8268
- "dev:workspace": {
9119
+ "harness:account:remove": {
8269
9120
  "aliases": [],
8270
- "args": {},
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`.",
9121
+ "args": {
9122
+ "slotId": {
9123
+ "description": "Enrolled slot ID to remove",
9124
+ "name": "slotId",
9125
+ "required": true
9126
+ }
9127
+ },
9128
+ "description": "Remove an enrolled CLI subscription account slot from the pool",
8272
9129
  "examples": [
8273
- "<%= config.bin %> dev workspace --dir ~/code/bluecypress",
8274
- "<%= config.bin %> dev workspace --dir ~/code/bluecypress --exclude bizapps-sonar",
8275
- "<%= config.bin %> dev workspace --dir ~/code/bluecypress --include bizapps-common --include bizapps-tasks",
8276
- "<%= config.bin %> dev workspace --dir ~/code/bluecypress --no-install --force",
8277
- "MJ_DEV_WORKSPACE_DIR=~/code/bluecypress <%= config.bin %> dev workspace"
9130
+ "<%= config.bin %> <%= command.id %> claude-pro-2",
9131
+ "<%= config.bin %> <%= command.id %> claude-pro-2 --purge-files"
8278
9132
  ],
8279
9133
  "flags": {
8280
- "dir": {
8281
- "description": "Parent directory holding the sibling repo clones (must NOT itself be a git repo; env: MJ_DEV_WORKSPACE_DIR)",
8282
- "env": "MJ_DEV_WORKSPACE_DIR",
8283
- "name": "dir",
8284
- "default": ".",
8285
- "hasDynamicHelp": false,
8286
- "multiple": false,
8287
- "type": "option"
8288
- },
8289
- "include": {
8290
- "description": "Repo directory name to include as a member (repeatable; adds to the detected set)",
8291
- "name": "include",
8292
- "hasDynamicHelp": false,
8293
- "multiple": true,
8294
- "type": "option"
8295
- },
8296
- "exclude": {
8297
- "description": "Repo directory name to exclude from the members (repeatable)",
8298
- "name": "exclude",
8299
- "hasDynamicHelp": false,
8300
- "multiple": true,
8301
- "type": "option"
8302
- },
8303
- "apps": {
8304
- "description": "Admit a member's app-shell packages, which the packages-rooted rule drops by default: <member>=<glob>[,<glob>] (e.g. Skip-Brain=apps/API,apps/MJAPI). The member must be detected or --include'd; names must be unique across the workspace.",
8305
- "name": "apps",
8306
- "hasDynamicHelp": false,
8307
- "multiple": true,
8308
- "type": "option"
8309
- },
8310
- "install": {
8311
- "description": "Run `pnpm install` at the parent after generating (disable with --no-install)",
8312
- "name": "install",
8313
- "allowNo": true,
8314
- "type": "boolean"
8315
- },
8316
- "force": {
8317
- "description": "Overwrite existing workspace files at the parent (a .bak copy of each is kept)",
8318
- "name": "force",
9134
+ "purge-files": {
9135
+ "description": "Also delete the isolated slot directory under the pool root",
9136
+ "name": "purge-files",
8319
9137
  "allowNo": false,
8320
9138
  "type": "boolean"
8321
9139
  },
8322
- "clean-members": {
8323
- "description": "Remove members' standalone node_modules trees (root AND nested, depth-independent) before the parent install; --no-clean-members keeps them. Without either flag, an interactive run asks per member.",
8324
- "name": "clean-members",
8325
- "allowNo": true,
8326
- "type": "boolean"
8327
- },
8328
- "verbose": {
8329
- "char": "v",
8330
- "description": "Show detailed output",
8331
- "name": "verbose",
8332
- "allowNo": false,
8333
- "type": "boolean"
9140
+ "pool-dir": {
9141
+ "description": "Override account pool storage directory",
9142
+ "name": "pool-dir",
9143
+ "hasDynamicHelp": false,
9144
+ "multiple": false,
9145
+ "type": "option"
8334
9146
  }
8335
9147
  },
8336
9148
  "hasDynamicHelp": false,
8337
9149
  "hiddenAliases": [],
8338
- "id": "dev:workspace",
9150
+ "id": "harness:account:remove",
8339
9151
  "pluginAlias": "@memberjunction/cli",
8340
9152
  "pluginName": "@memberjunction/cli",
8341
9153
  "pluginType": "core",
@@ -8345,26 +9157,31 @@
8345
9157
  "relativePath": [
8346
9158
  "dist",
8347
9159
  "commands",
8348
- "dev",
8349
- "workspace",
8350
- "index.js"
9160
+ "harness",
9161
+ "account",
9162
+ "remove.js"
8351
9163
  ]
8352
9164
  },
8353
- "dev:workspace:status": {
9165
+ "harness:account:set-strategy": {
8354
9166
  "aliases": [],
8355
- "args": {},
8356
- "description": "Report the state of the generated cross-repo pnpm workspace at a parent directory: generated files, lockfile, node_modules, sentinel presence, members vs. detected candidates, and the pnpm pin. Read-only.",
9167
+ "args": {
9168
+ "strategy": {
9169
+ "description": "Selection strategy (least-in-flight, round-robin, weighted, priority-failover)",
9170
+ "name": "strategy",
9171
+ "required": true
9172
+ }
9173
+ },
9174
+ "description": "Set the default multi-account CLI pool balancing strategy",
8357
9175
  "examples": [
8358
- "<%= config.bin %> dev workspace status",
8359
- "<%= config.bin %> dev workspace status --dir ~/code/bluecypress",
8360
- "MJ_DEV_WORKSPACE_DIR=~/code/bluecypress <%= config.bin %> dev workspace status"
9176
+ "<%= config.bin %> <%= command.id %> least-in-flight",
9177
+ "<%= config.bin %> <%= command.id %> round-robin",
9178
+ "<%= config.bin %> <%= command.id %> weighted",
9179
+ "<%= config.bin %> <%= command.id %> priority-failover"
8361
9180
  ],
8362
9181
  "flags": {
8363
- "dir": {
8364
- "description": "Parent directory holding the sibling repo clones (env: MJ_DEV_WORKSPACE_DIR)",
8365
- "env": "MJ_DEV_WORKSPACE_DIR",
8366
- "name": "dir",
8367
- "default": ".",
9182
+ "pool-dir": {
9183
+ "description": "Override account pool storage directory",
9184
+ "name": "pool-dir",
8368
9185
  "hasDynamicHelp": false,
8369
9186
  "multiple": false,
8370
9187
  "type": "option"
@@ -8372,7 +9189,7 @@
8372
9189
  },
8373
9190
  "hasDynamicHelp": false,
8374
9191
  "hiddenAliases": [],
8375
- "id": "dev:workspace:status",
9192
+ "id": "harness:account:set-strategy",
8376
9193
  "pluginAlias": "@memberjunction/cli",
8377
9194
  "pluginName": "@memberjunction/cli",
8378
9195
  "pluginType": "core",
@@ -8382,9 +9199,9 @@
8382
9199
  "relativePath": [
8383
9200
  "dist",
8384
9201
  "commands",
8385
- "dev",
8386
- "workspace",
8387
- "status.js"
9202
+ "harness",
9203
+ "account",
9204
+ "set-strategy.js"
8388
9205
  ]
8389
9206
  },
8390
9207
  "test:regression:build": {
@@ -8613,7 +9430,8 @@
8613
9430
  "<%= config.bin %> <%= command.id %> compare # Diff the two most recent runs",
8614
9431
  "<%= config.bin %> <%= command.id %> export # Export a run as a portable standalone HTML",
8615
9432
  "<%= config.bin %> <%= command.id %> remote --target=staging-mj # Mode B/C/D against a remote URL",
8616
- "<%= config.bin %> <%= command.id %> init generic-web # Scaffold one of the example dirs"
9433
+ "<%= config.bin %> <%= command.id %> init generic-web # Scaffold one of the example dirs",
9434
+ "<%= config.bin %> <%= command.id %> new --name \"...\" --goal \"...\" --criteria \"...\" --priority P1 # Add a test to the suite"
8617
9435
  ],
8618
9436
  "flags": {},
8619
9437
  "hasDynamicHelp": false,
@@ -8675,6 +9493,115 @@
8675
9493
  "init.js"
8676
9494
  ]
8677
9495
  },
9496
+ "test:regression:new": {
9497
+ "aliases": [],
9498
+ "args": {},
9499
+ "description": "Create a new MJ Explorer regression test and add it to the regression suite.",
9500
+ "examples": [
9501
+ "<%= config.bin %> <%= command.id %> --name \"Form builder clones a form\" --priority P1 --tags form-builder \\\n --start-path /app/form-builder --goal \"Clone Contact Form and verify the copy opens in the editor.\" \\\n --criteria \"A form named Copy of Contact Form is listed\" --criteria \"The form editor is open on the copy\"",
9502
+ "<%= config.bin %> <%= command.id %> --name \"...\" --goal \"...\" --criteria \"...\" --priority P2 --from T149 --dry-run"
9503
+ ],
9504
+ "flags": {
9505
+ "name": {
9506
+ "description": "Test title, without the T### prefix. Must not contain \"&\".",
9507
+ "name": "name",
9508
+ "required": true,
9509
+ "hasDynamicHelp": false,
9510
+ "multiple": false,
9511
+ "type": "option"
9512
+ },
9513
+ "goal": {
9514
+ "description": "What the agent must achieve, stated as the success state.",
9515
+ "name": "goal",
9516
+ "required": true,
9517
+ "hasDynamicHelp": false,
9518
+ "multiple": false,
9519
+ "type": "option"
9520
+ },
9521
+ "criteria": {
9522
+ "description": "A judge criterion (repeat the flag for more).",
9523
+ "name": "criteria",
9524
+ "required": true,
9525
+ "hasDynamicHelp": false,
9526
+ "multiple": true,
9527
+ "type": "option"
9528
+ },
9529
+ "priority": {
9530
+ "description": "Release priority.",
9531
+ "name": "priority",
9532
+ "required": true,
9533
+ "hasDynamicHelp": false,
9534
+ "multiple": false,
9535
+ "options": [
9536
+ "P0",
9537
+ "P1",
9538
+ "P2",
9539
+ "P3"
9540
+ ],
9541
+ "type": "option"
9542
+ },
9543
+ "tags": {
9544
+ "description": "Comma-separated area tags, e.g. form-builder,crud.",
9545
+ "name": "tags",
9546
+ "default": "",
9547
+ "hasDynamicHelp": false,
9548
+ "multiple": false,
9549
+ "type": "option"
9550
+ },
9551
+ "start-path": {
9552
+ "description": "Path after http://localhost:4200, e.g. /app/form-builder.",
9553
+ "name": "start-path",
9554
+ "default": "",
9555
+ "hasDynamicHelp": false,
9556
+ "multiple": false,
9557
+ "type": "option"
9558
+ },
9559
+ "description": {
9560
+ "description": "Test description. Defaults to the goal.",
9561
+ "name": "description",
9562
+ "hasDynamicHelp": false,
9563
+ "multiple": false,
9564
+ "type": "option"
9565
+ },
9566
+ "max-steps": {
9567
+ "description": "Controller step limit.",
9568
+ "name": "max-steps",
9569
+ "default": 25,
9570
+ "hasDynamicHelp": false,
9571
+ "multiple": false,
9572
+ "type": "option"
9573
+ },
9574
+ "from": {
9575
+ "description": "Copy Configuration from this test number, e.g. T149.",
9576
+ "name": "from",
9577
+ "hasDynamicHelp": false,
9578
+ "multiple": false,
9579
+ "type": "option"
9580
+ },
9581
+ "dry-run": {
9582
+ "description": "Print the files without writing them.",
9583
+ "name": "dry-run",
9584
+ "allowNo": false,
9585
+ "type": "boolean"
9586
+ }
9587
+ },
9588
+ "hasDynamicHelp": false,
9589
+ "hiddenAliases": [],
9590
+ "id": "test:regression:new",
9591
+ "pluginAlias": "@memberjunction/cli",
9592
+ "pluginName": "@memberjunction/cli",
9593
+ "pluginType": "core",
9594
+ "strict": true,
9595
+ "enableJsonFlag": false,
9596
+ "isESM": true,
9597
+ "relativePath": [
9598
+ "dist",
9599
+ "commands",
9600
+ "test",
9601
+ "regression",
9602
+ "new.js"
9603
+ ]
9604
+ },
8678
9605
  "test:regression:remote": {
8679
9606
  "aliases": [],
8680
9607
  "args": {},
@@ -8754,6 +9681,7 @@
8754
9681
  "examples": [
8755
9682
  "<%= config.bin %> <%= command.id %>",
8756
9683
  "<%= config.bin %> <%= command.id %> --detach",
9684
+ "<%= config.bin %> <%= command.id %> --test=\"T001 - Login Smoke\" --test=\"T002 - Data Explorer Open Record\"",
8757
9685
  "<%= config.bin %> <%= command.id %> --bacpac=./db.bacpac --suite=\"My Suite\" --metadata=./my-suite-metadata",
8758
9686
  "<%= config.bin %> <%= command.id %> --bacpac=./db.bacpac --bacpac-no-upgrade"
8759
9687
  ],
@@ -8785,6 +9713,13 @@
8785
9713
  "multiple": false,
8786
9714
  "type": "option"
8787
9715
  },
9716
+ "test": {
9717
+ "description": "Run only this suite test, by exact name (TEST_NAMES). Repeat the flag to run more than one. Monorepo stack only.",
9718
+ "name": "test",
9719
+ "hasDynamicHelp": false,
9720
+ "multiple": true,
9721
+ "type": "option"
9722
+ },
8788
9723
  "metadata": {
8789
9724
  "description": "Directory of your test + test-suite metadata (pushed before the run). Requires --bacpac.",
8790
9725
  "name": "metadata",
@@ -8832,5 +9767,5 @@
8832
9767
  ]
8833
9768
  }
8834
9769
  },
8835
- "version": "6.3.0-edge.1"
9770
+ "version": "6.3.0-edge.3"
8836
9771
  }