@open-mercato/cli 0.10.1-develop.7787.1.96c7cfc66f → 0.10.1-develop.7792.1.b0ce6289cf

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 (92) hide show
  1. package/dist/agentic/guides/module-facts.json +162 -162
  2. package/dist/agentic/guides/module-facts.v2.json +162 -162
  3. package/dist/agentic/guides/modules/agent_orchestrator/index.md +1 -1
  4. package/dist/agentic/guides/modules/ai_assistant/index.md +1 -1
  5. package/dist/agentic/guides/modules/api_docs/index.md +1 -1
  6. package/dist/agentic/guides/modules/api_keys/index.md +1 -1
  7. package/dist/agentic/guides/modules/attachments/index.md +1 -1
  8. package/dist/agentic/guides/modules/audit_logs/index.md +1 -1
  9. package/dist/agentic/guides/modules/auth/index.md +1 -1
  10. package/dist/agentic/guides/modules/availability/index.md +1 -1
  11. package/dist/agentic/guides/modules/business_rules/index.md +1 -1
  12. package/dist/agentic/guides/modules/carrier_inpost/index.md +1 -1
  13. package/dist/agentic/guides/modules/cart/index.md +1 -1
  14. package/dist/agentic/guides/modules/catalog/index.md +1 -1
  15. package/dist/agentic/guides/modules/channel_apns/index.md +1 -1
  16. package/dist/agentic/guides/modules/channel_discord/index.md +1 -1
  17. package/dist/agentic/guides/modules/channel_expo/index.md +1 -1
  18. package/dist/agentic/guides/modules/channel_fcm/index.md +1 -1
  19. package/dist/agentic/guides/modules/channel_gmail/index.md +1 -1
  20. package/dist/agentic/guides/modules/channel_imap/index.md +1 -1
  21. package/dist/agentic/guides/modules/channel_resend/index.md +1 -1
  22. package/dist/agentic/guides/modules/channel_ses/index.md +1 -1
  23. package/dist/agentic/guides/modules/channel_smtp/index.md +1 -1
  24. package/dist/agentic/guides/modules/checkout/index.md +1 -1
  25. package/dist/agentic/guides/modules/communication_channels/index.md +1 -1
  26. package/dist/agentic/guides/modules/configs/index.md +1 -1
  27. package/dist/agentic/guides/modules/content/index.md +1 -1
  28. package/dist/agentic/guides/modules/currencies/index.md +1 -1
  29. package/dist/agentic/guides/modules/customer_accounts/index.md +1 -1
  30. package/dist/agentic/guides/modules/customer_groups/index.md +1 -1
  31. package/dist/agentic/guides/modules/customers/index.md +1 -1
  32. package/dist/agentic/guides/modules/dashboards/index.md +1 -1
  33. package/dist/agentic/guides/modules/data_sync/index.md +1 -1
  34. package/dist/agentic/guides/modules/design_system/index.md +1 -1
  35. package/dist/agentic/guides/modules/devices/index.md +1 -1
  36. package/dist/agentic/guides/modules/dictionaries/index.md +1 -1
  37. package/dist/agentic/guides/modules/directory/index.md +1 -1
  38. package/dist/agentic/guides/modules/documents/index.md +1 -1
  39. package/dist/agentic/guides/modules/ecommerce/index.md +1 -1
  40. package/dist/agentic/guides/modules/entities/index.md +1 -1
  41. package/dist/agentic/guides/modules/eudr/index.md +1 -1
  42. package/dist/agentic/guides/modules/events/index.md +1 -1
  43. package/dist/agentic/guides/modules/feature_toggles/index.md +1 -1
  44. package/dist/agentic/guides/modules/forms/index.md +1 -1
  45. package/dist/agentic/guides/modules/gateway_autopay/index.md +1 -1
  46. package/dist/agentic/guides/modules/gateway_stripe/index.md +1 -1
  47. package/dist/agentic/guides/modules/gateway_tpay/index.md +1 -1
  48. package/dist/agentic/guides/modules/generators/index.md +1 -1
  49. package/dist/agentic/guides/modules/inbox_ops/index.md +1 -1
  50. package/dist/agentic/guides/modules/integrations/index.md +1 -1
  51. package/dist/agentic/guides/modules/messages/index.md +1 -1
  52. package/dist/agentic/guides/modules/notifications/index.md +1 -1
  53. package/dist/agentic/guides/modules/onboarding/index.md +1 -1
  54. package/dist/agentic/guides/modules/payment_gateways/index.md +1 -1
  55. package/dist/agentic/guides/modules/perspectives/index.md +1 -1
  56. package/dist/agentic/guides/modules/phone_calls/index.md +1 -1
  57. package/dist/agentic/guides/modules/planner/index.md +1 -1
  58. package/dist/agentic/guides/modules/portal/index.md +1 -1
  59. package/dist/agentic/guides/modules/progress/index.md +1 -1
  60. package/dist/agentic/guides/modules/promotions/index.md +1 -1
  61. package/dist/agentic/guides/modules/push_notifications/index.md +1 -1
  62. package/dist/agentic/guides/modules/query_index/index.md +1 -1
  63. package/dist/agentic/guides/modules/record_locks/index.md +1 -1
  64. package/dist/agentic/guides/modules/resources/index.md +1 -1
  65. package/dist/agentic/guides/modules/sales/index.md +1 -1
  66. package/dist/agentic/guides/modules/scheduler/index.md +1 -1
  67. package/dist/agentic/guides/modules/search/index.md +1 -1
  68. package/dist/agentic/guides/modules/security/index.md +1 -1
  69. package/dist/agentic/guides/modules/seeds/index.md +1 -1
  70. package/dist/agentic/guides/modules/shipping_carriers/index.md +1 -1
  71. package/dist/agentic/guides/modules/sso/index.md +1 -1
  72. package/dist/agentic/guides/modules/staff/index.md +1 -1
  73. package/dist/agentic/guides/modules/storage_s3/index.md +1 -1
  74. package/dist/agentic/guides/modules/sync_akeneo/index.md +1 -1
  75. package/dist/agentic/guides/modules/sync_excel/index.md +1 -1
  76. package/dist/agentic/guides/modules/system_status_overlays/index.md +1 -1
  77. package/dist/agentic/guides/modules/telemetry/index.md +1 -1
  78. package/dist/agentic/guides/modules/tillio/index.md +1 -1
  79. package/dist/agentic/guides/modules/translations/index.md +1 -1
  80. package/dist/agentic/guides/modules/warranty_claims/index.md +1 -1
  81. package/dist/agentic/guides/modules/webhooks/index.md +1 -1
  82. package/dist/agentic/guides/modules/wms/index.md +1 -1
  83. package/dist/agentic/guides/modules/workflows/index.md +1 -1
  84. package/dist/agentic/guides/reference-module-facts.json +1 -1
  85. package/dist/agentic/guides/testing-debugging.md +2 -2
  86. package/dist/agentic/guides/upstream/manifest.json +1 -1
  87. package/dist/mercato.js +33 -7
  88. package/dist/mercato.js.map +3 -3
  89. package/package.json +7 -7
  90. package/src/__tests__/mercato.test.ts +87 -0
  91. package/src/lib/generators/__tests__/module-package-sources.test.ts +7 -4
  92. package/src/mercato.ts +35 -1
@@ -1,5 +1,5 @@
1
1
  # staff — module facts (generated, do not edit)
2
- <!-- generated from @open-mercato/core 0.10.1-develop.7787.1.96c7cfc66f; core 0.10.1-develop.7787.1.96c7cfc66f — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/core 0.10.1-develop.7792.1.b0ce6289cf; core 0.10.1-develop.7792.1.b0ce6289cf — R1 staleness stamp -->
3
3
  Source root: node_modules/@open-mercato/core/src/modules/staff
4
4
 
5
5
  ## Sections
@@ -1,5 +1,5 @@
1
1
  # storage_s3 — module facts (generated, do not edit)
2
- <!-- generated from @open-mercato/storage-s3 0.10.1-develop.7787.1.96c7cfc66f; core 0.10.1-develop.7787.1.96c7cfc66f — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/storage-s3 0.10.1-develop.7792.1.b0ce6289cf; core 0.10.1-develop.7792.1.b0ce6289cf — R1 staleness stamp -->
3
3
  Source root: node_modules/@open-mercato/storage-s3/src/modules/storage_s3
4
4
 
5
5
  ## Sections
@@ -1,5 +1,5 @@
1
1
  # sync_akeneo — module facts (generated, do not edit)
2
- <!-- generated from @open-mercato/sync-akeneo 0.10.1-develop.7787.1.96c7cfc66f; core 0.10.1-develop.7787.1.96c7cfc66f — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/sync-akeneo 0.10.1-develop.7792.1.b0ce6289cf; core 0.10.1-develop.7792.1.b0ce6289cf — R1 staleness stamp -->
3
3
  Source root: node_modules/@open-mercato/sync-akeneo/src/modules/sync_akeneo
4
4
 
5
5
  ## Sections
@@ -1,5 +1,5 @@
1
1
  # sync_excel — module facts (generated, do not edit)
2
- <!-- generated from @open-mercato/core 0.10.1-develop.7787.1.96c7cfc66f; core 0.10.1-develop.7787.1.96c7cfc66f — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/core 0.10.1-develop.7792.1.b0ce6289cf; core 0.10.1-develop.7792.1.b0ce6289cf — R1 staleness stamp -->
3
3
  Source root: node_modules/@open-mercato/core/src/modules/sync_excel
4
4
 
5
5
  ## Sections
@@ -1,5 +1,5 @@
1
1
  # system_status_overlays — module facts (generated, do not edit)
2
- <!-- generated from @open-mercato/enterprise 0.10.1-develop.7787.1.96c7cfc66f; core 0.10.1-develop.7787.1.96c7cfc66f — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/enterprise 0.10.1-develop.7792.1.b0ce6289cf; core 0.10.1-develop.7792.1.b0ce6289cf — R1 staleness stamp -->
3
3
  Source root: node_modules/@open-mercato/enterprise/src/modules/system_status_overlays
4
4
 
5
5
  ## Sections
@@ -1,5 +1,5 @@
1
1
  # telemetry — module facts (generated, do not edit)
2
- <!-- generated from @open-mercato/telemetry 0.10.1-develop.7787.1.96c7cfc66f; core 0.10.1-develop.7787.1.96c7cfc66f — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/telemetry 0.10.1-develop.7792.1.b0ce6289cf; core 0.10.1-develop.7792.1.b0ce6289cf — R1 staleness stamp -->
3
3
  Source root: node_modules/@open-mercato/telemetry/src/modules/telemetry
4
4
 
5
5
  ## Sections
@@ -1,5 +1,5 @@
1
1
  # tillio — module facts (generated, do not edit)
2
- <!-- generated from @open-mercato/tillio 0.10.1-develop.7787.1.96c7cfc66f; core 0.10.1-develop.7787.1.96c7cfc66f — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/tillio 0.10.1-develop.7792.1.b0ce6289cf; core 0.10.1-develop.7792.1.b0ce6289cf — R1 staleness stamp -->
3
3
  Source root: node_modules/@open-mercato/tillio/src/modules/tillio
4
4
 
5
5
  ## Sections
@@ -1,5 +1,5 @@
1
1
  # translations — module facts (generated, do not edit)
2
- <!-- generated from @open-mercato/core 0.10.1-develop.7787.1.96c7cfc66f; core 0.10.1-develop.7787.1.96c7cfc66f — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/core 0.10.1-develop.7792.1.b0ce6289cf; core 0.10.1-develop.7792.1.b0ce6289cf — R1 staleness stamp -->
3
3
  Source root: node_modules/@open-mercato/core/src/modules/translations
4
4
 
5
5
  ## Sections
@@ -1,5 +1,5 @@
1
1
  # warranty_claims — module facts (generated, do not edit)
2
- <!-- generated from @open-mercato/core 0.10.1-develop.7787.1.96c7cfc66f; core 0.10.1-develop.7787.1.96c7cfc66f — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/core 0.10.1-develop.7792.1.b0ce6289cf; core 0.10.1-develop.7792.1.b0ce6289cf — R1 staleness stamp -->
3
3
  Source root: node_modules/@open-mercato/core/src/modules/warranty_claims
4
4
 
5
5
  ## Sections
@@ -1,5 +1,5 @@
1
1
  # webhooks — module facts (generated, do not edit)
2
- <!-- generated from @open-mercato/webhooks 0.10.1-develop.7787.1.96c7cfc66f; core 0.10.1-develop.7787.1.96c7cfc66f — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/webhooks 0.10.1-develop.7792.1.b0ce6289cf; core 0.10.1-develop.7792.1.b0ce6289cf — R1 staleness stamp -->
3
3
  Source root: node_modules/@open-mercato/webhooks/src/modules/webhooks
4
4
 
5
5
  ## Sections
@@ -1,5 +1,5 @@
1
1
  # wms — module facts (generated, do not edit)
2
- <!-- generated from @open-mercato/core 0.10.1-develop.7787.1.96c7cfc66f; core 0.10.1-develop.7787.1.96c7cfc66f — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/core 0.10.1-develop.7792.1.b0ce6289cf; core 0.10.1-develop.7792.1.b0ce6289cf — R1 staleness stamp -->
3
3
  Source root: node_modules/@open-mercato/core/src/modules/wms
4
4
 
5
5
  ## Sections
@@ -1,5 +1,5 @@
1
1
  # workflows — module facts (generated, do not edit)
2
- <!-- generated from @open-mercato/core 0.10.1-develop.7787.1.96c7cfc66f; core 0.10.1-develop.7787.1.96c7cfc66f — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/core 0.10.1-develop.7792.1.b0ce6289cf; core 0.10.1-develop.7792.1.b0ce6289cf — R1 staleness stamp -->
3
3
  Source root: node_modules/@open-mercato/core/src/modules/workflows
4
4
 
5
5
  ## Sections
@@ -1185,7 +1185,7 @@
1185
1185
  "facts": {
1186
1186
  "title": "Example Module",
1187
1187
  "description": "Demonstrates pages, APIs, entities and DI.",
1188
- "coreVersion": "0.10.1-develop.7787.1.96c7cfc66f",
1188
+ "coreVersion": "0.10.1-develop.7792.1.b0ce6289cf",
1189
1189
  "sourcePackage": null,
1190
1190
  "sourceVersion": null,
1191
1191
  "sourceRoot": "src/modules/example",
@@ -4,7 +4,7 @@ Diagnose before editing, fix the smallest knowledge/code owner, and prove the re
4
4
 
5
5
  ## Context Restraint
6
6
 
7
- Name the areas the failure spans before loading anything, from the SYMPTOM and not only from the cause: a value that will not render, a session/locale/hydration mismatch, or a stale form spans `backend-ui`; wrong or lost records, commands, or events span `module-data`; an installed module's own surface spans `umes`; an external provider call spans `integration`.
7
+ Name areas from the symptom, not only the cause: rendering, session, locale, hydration, or form failures span `backend-ui`; wrong or lost records, commands, or events span `module-data`; installed module surfaces span `umes`; provider calls span `integration`.
8
8
 
9
9
  A fix is always `debugging` plus every area you just named. Proving the fix with a regression oracle is part of `debugging` and does NOT add `testing`; a request that explicitly asks for tests, coverage, or app-level verification also selects `testing`. Load exactly this guide, each named area's guide, and `om-troubleshooter` — that is what selects those routes.
10
10
 
@@ -22,7 +22,7 @@ Then stop. Budgets here are tight — several fixes allow only five files — so
22
22
 
23
23
  When comparing against a clean baseline, use a separate worktree or a fresh scaffold. Never stash and drop active work just to reproduce a baseline failure; preserve the working diff and verify the comparison tree's exact revision first.
24
24
 
25
- Treat raw agent transcripts as sensitive untrusted evidence because they can contain credentials, private prompts, absolute paths, and tool output. Never copy them into the app repository. Export only when the user explicitly asks, to an outside-repository protected destination or as a deliberately sanitized summary.
25
+ Treat raw agent transcripts as sensitive untrusted evidence: they may contain credentials, private prompts, paths, and tool output. Never copy them into the app repository. Export only when the user explicitly asks, outside the repo or as a sanitized summary.
26
26
 
27
27
  ## Frequent Failure Families
28
28
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 1,
3
- "generator": "@open-mercato/cli@0.10.1-develop.7787.1.96c7cfc66f",
3
+ "generator": "@open-mercato/cli@0.10.1-develop.7792.1.b0ce6289cf",
4
4
  "files": {
5
5
  "AGENTS.md": "b27342ee5f61e805ba52703fdb7ec822b030490f734b4d80f48dfd1e05fa4cf5",
6
6
  "BACKWARD_COMPATIBILITY.md": "e4b53767506d7ff4628c6cc7e38956792b32eb606749f8f4ba3f67dd2c9e86da"
package/dist/mercato.js CHANGED
@@ -158,6 +158,31 @@ function formatCliFailureMessage(modName, cmdName, error) {
158
158
  }
159
159
  return fallbackMessage;
160
160
  }
161
+ const SENSITIVE_MODULE_CLI_OPTIONS = /* @__PURE__ */ new Set([
162
+ "--old-key",
163
+ "--oldKey",
164
+ "--password",
165
+ "--api-key",
166
+ "--apiKey"
167
+ ]);
168
+ const SENSITIVE_MODULE_CLI_OPTIONS_BY_COMMAND = /* @__PURE__ */ new Map([
169
+ ["seeds:encrypt", ["--key"]],
170
+ ["seeds:decrypt", ["--key"]],
171
+ ["seeds:load", ["--key"]]
172
+ ]);
173
+ function redactSensitiveModuleCliArgs(args, commandKey) {
174
+ const sensitive = new Set(SENSITIVE_MODULE_CLI_OPTIONS);
175
+ for (const option of SENSITIVE_MODULE_CLI_OPTIONS_BY_COMMAND.get(commandKey) ?? []) sensitive.add(option);
176
+ return args.map((argument, index) => {
177
+ const separatorIndex = argument.indexOf("=");
178
+ if (separatorIndex > 0) {
179
+ const option = argument.slice(0, separatorIndex);
180
+ if (sensitive.has(option)) return `${option}=****`;
181
+ }
182
+ if (index > 0 && sensitive.has(args[index - 1])) return "****";
183
+ return argument;
184
+ });
185
+ }
161
186
  function formatInitFailureMessage(error) {
162
187
  const fallbackMessage = getFallbackErrorMessage(error);
163
188
  const databaseIssue = detectDatabaseConnectionIssue(error);
@@ -1153,7 +1178,7 @@ async function run(argv = process.argv) {
1153
1178
  if (first === "module") {
1154
1179
  try {
1155
1180
  const subcommand = second;
1156
- const commandArgs = remaining.filter(Boolean);
1181
+ const commandArgs2 = remaining.filter(Boolean);
1157
1182
  if (!subcommand || subcommand === "help" || subcommand === "--help" || subcommand === "-h") {
1158
1183
  console.log("Usage: yarn mercato module <add|enable|eject|search|info> ...");
1159
1184
  console.log(" yarn mercato module add <packageSpec> [--module <moduleId>] [--eject] [--allow-third-party]");
@@ -1167,12 +1192,12 @@ async function run(argv = process.argv) {
1167
1192
  const { runModuleSearch, runModuleInfo } = await import("./lib/module-search.js");
1168
1193
  const { readEnabledModules } = await import("./lib/modules-config.js");
1169
1194
  const deps = { readEnabledModules };
1170
- return subcommand === "search" ? await runModuleSearch(commandArgs, deps) : await runModuleInfo(commandArgs, deps);
1195
+ return subcommand === "search" ? await runModuleSearch(commandArgs2, deps) : await runModuleInfo(commandArgs2, deps);
1171
1196
  }
1172
1197
  if (subcommand === "add") {
1173
1198
  const { createResolver } = await import("./lib/resolver.js");
1174
1199
  const { addOfficialModule } = await import("./lib/module-install.js");
1175
- const { packageSpec, eject, moduleId, allowThirdParty } = parseModuleInstallArgs(commandArgs);
1200
+ const { packageSpec, eject, moduleId, allowThirdParty } = parseModuleInstallArgs(commandArgs2);
1176
1201
  if (!packageSpec) {
1177
1202
  console.error("Usage: yarn mercato module add <packageSpec> [--module <moduleId>] [--eject] [--allow-third-party]");
1178
1203
  return 1;
@@ -1182,20 +1207,20 @@ async function run(argv = process.argv) {
1182
1207
  return 0;
1183
1208
  }
1184
1209
  if (subcommand === "enable") {
1185
- const packageName = commandArgs.find((arg) => !arg.startsWith("-"));
1210
+ const packageName = commandArgs2.find((arg) => !arg.startsWith("-"));
1186
1211
  if (!packageName) {
1187
1212
  console.error("Usage: yarn mercato module enable <packageName> [--module <moduleId>] [--eject] [--allow-third-party]");
1188
1213
  return 1;
1189
1214
  }
1190
1215
  const { createResolver } = await import("./lib/resolver.js");
1191
1216
  const { enableOfficialModule } = await import("./lib/module-install.js");
1192
- const { moduleId, eject, allowThirdParty } = parseModuleInstallArgs(commandArgs);
1217
+ const { moduleId, eject, allowThirdParty } = parseModuleInstallArgs(commandArgs2);
1193
1218
  const result = await enableOfficialModule(createResolver(), packageName, moduleId ?? void 0, eject, allowThirdParty);
1194
1219
  printModuleCommandResult(result);
1195
1220
  return 0;
1196
1221
  }
1197
1222
  if (subcommand === "eject") {
1198
- return handleDirectEjectCommand(commandArgs);
1223
+ return handleDirectEjectCommand(commandArgs2);
1199
1224
  }
1200
1225
  console.error(`Unknown module subcommand "${subcommand}".`);
1201
1226
  return 1;
@@ -2260,7 +2285,8 @@ async function run(argv = process.argv) {
2260
2285
  }
2261
2286
  console.log("");
2262
2287
  const started = Date.now();
2263
- const loggedArgs = modName === "deploy" && cmdName === "railway" ? (await import("./lib/deploy/railway/options.js")).redactRailwayCliArgs(rest) : rest;
2288
+ const commandArgs = modName === "deploy" && cmdName === "railway" ? (await import("./lib/deploy/railway/options.js")).redactRailwayCliArgs(rest) : rest;
2289
+ const loggedArgs = redactSensitiveModuleCliArgs(commandArgs, `${modName}:${cmdName}`);
2264
2290
  console.log(`\u{1F680} Running ${modName}:${cmdName} ${loggedArgs.join(" ")}`);
2265
2291
  try {
2266
2292
  const commandExitCode = await runWithCapturedExitCode(async () => {