@open-mercato/cli 0.10.1-develop.7787.1.96c7cfc66f → 0.10.1-develop.7793.1.9e0c43fdde
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agentic/guides/module-facts.json +162 -162
- package/dist/agentic/guides/module-facts.v2.json +162 -162
- package/dist/agentic/guides/modules/agent_orchestrator/index.md +1 -1
- package/dist/agentic/guides/modules/ai_assistant/index.md +1 -1
- package/dist/agentic/guides/modules/api_docs/index.md +1 -1
- package/dist/agentic/guides/modules/api_keys/index.md +1 -1
- package/dist/agentic/guides/modules/attachments/index.md +1 -1
- package/dist/agentic/guides/modules/audit_logs/index.md +1 -1
- package/dist/agentic/guides/modules/auth/index.md +1 -1
- package/dist/agentic/guides/modules/availability/index.md +1 -1
- package/dist/agentic/guides/modules/business_rules/index.md +1 -1
- package/dist/agentic/guides/modules/carrier_inpost/index.md +1 -1
- package/dist/agentic/guides/modules/cart/index.md +1 -1
- package/dist/agentic/guides/modules/catalog/index.md +1 -1
- package/dist/agentic/guides/modules/channel_apns/index.md +1 -1
- package/dist/agentic/guides/modules/channel_discord/index.md +1 -1
- package/dist/agentic/guides/modules/channel_expo/index.md +1 -1
- package/dist/agentic/guides/modules/channel_fcm/index.md +1 -1
- package/dist/agentic/guides/modules/channel_gmail/index.md +1 -1
- package/dist/agentic/guides/modules/channel_imap/index.md +1 -1
- package/dist/agentic/guides/modules/channel_resend/index.md +1 -1
- package/dist/agentic/guides/modules/channel_ses/index.md +1 -1
- package/dist/agentic/guides/modules/channel_smtp/index.md +1 -1
- package/dist/agentic/guides/modules/checkout/index.md +1 -1
- package/dist/agentic/guides/modules/communication_channels/index.md +1 -1
- package/dist/agentic/guides/modules/configs/index.md +1 -1
- package/dist/agentic/guides/modules/content/index.md +1 -1
- package/dist/agentic/guides/modules/currencies/index.md +1 -1
- package/dist/agentic/guides/modules/customer_accounts/index.md +1 -1
- package/dist/agentic/guides/modules/customer_groups/index.md +1 -1
- package/dist/agentic/guides/modules/customers/index.md +1 -1
- package/dist/agentic/guides/modules/dashboards/index.md +1 -1
- package/dist/agentic/guides/modules/data_sync/index.md +1 -1
- package/dist/agentic/guides/modules/design_system/index.md +1 -1
- package/dist/agentic/guides/modules/devices/index.md +1 -1
- package/dist/agentic/guides/modules/dictionaries/index.md +1 -1
- package/dist/agentic/guides/modules/directory/index.md +1 -1
- package/dist/agentic/guides/modules/documents/index.md +1 -1
- package/dist/agentic/guides/modules/ecommerce/index.md +1 -1
- package/dist/agentic/guides/modules/entities/index.md +1 -1
- package/dist/agentic/guides/modules/eudr/index.md +1 -1
- package/dist/agentic/guides/modules/events/index.md +1 -1
- package/dist/agentic/guides/modules/feature_toggles/index.md +1 -1
- package/dist/agentic/guides/modules/forms/index.md +1 -1
- package/dist/agentic/guides/modules/gateway_autopay/index.md +1 -1
- package/dist/agentic/guides/modules/gateway_stripe/index.md +1 -1
- package/dist/agentic/guides/modules/gateway_tpay/index.md +1 -1
- package/dist/agentic/guides/modules/generators/index.md +1 -1
- package/dist/agentic/guides/modules/inbox_ops/index.md +1 -1
- package/dist/agentic/guides/modules/integrations/index.md +1 -1
- package/dist/agentic/guides/modules/messages/index.md +1 -1
- package/dist/agentic/guides/modules/notifications/index.md +1 -1
- package/dist/agentic/guides/modules/onboarding/index.md +1 -1
- package/dist/agentic/guides/modules/payment_gateways/index.md +1 -1
- package/dist/agentic/guides/modules/perspectives/index.md +1 -1
- package/dist/agentic/guides/modules/phone_calls/index.md +1 -1
- package/dist/agentic/guides/modules/planner/index.md +1 -1
- package/dist/agentic/guides/modules/portal/index.md +1 -1
- package/dist/agentic/guides/modules/progress/index.md +1 -1
- package/dist/agentic/guides/modules/promotions/index.md +1 -1
- package/dist/agentic/guides/modules/push_notifications/index.md +1 -1
- package/dist/agentic/guides/modules/query_index/index.md +1 -1
- package/dist/agentic/guides/modules/record_locks/index.md +1 -1
- package/dist/agentic/guides/modules/resources/index.md +1 -1
- package/dist/agentic/guides/modules/sales/index.md +1 -1
- package/dist/agentic/guides/modules/scheduler/index.md +1 -1
- package/dist/agentic/guides/modules/search/index.md +1 -1
- package/dist/agentic/guides/modules/security/index.md +1 -1
- package/dist/agentic/guides/modules/seeds/index.md +1 -1
- package/dist/agentic/guides/modules/shipping_carriers/index.md +1 -1
- package/dist/agentic/guides/modules/sso/index.md +1 -1
- package/dist/agentic/guides/modules/staff/index.md +1 -1
- package/dist/agentic/guides/modules/storage_s3/index.md +1 -1
- package/dist/agentic/guides/modules/sync_akeneo/index.md +1 -1
- package/dist/agentic/guides/modules/sync_excel/index.md +1 -1
- package/dist/agentic/guides/modules/system_status_overlays/index.md +1 -1
- package/dist/agentic/guides/modules/telemetry/index.md +1 -1
- package/dist/agentic/guides/modules/tillio/index.md +1 -1
- package/dist/agentic/guides/modules/translations/index.md +1 -1
- package/dist/agentic/guides/modules/warranty_claims/index.md +1 -1
- package/dist/agentic/guides/modules/webhooks/index.md +1 -1
- package/dist/agentic/guides/modules/wms/index.md +1 -1
- package/dist/agentic/guides/modules/workflows/index.md +1 -1
- package/dist/agentic/guides/reference-module-facts.json +1 -1
- package/dist/agentic/guides/testing-debugging.md +2 -2
- package/dist/agentic/guides/upstream/manifest.json +1 -1
- package/dist/mercato.js +33 -7
- package/dist/mercato.js.map +3 -3
- package/package.json +7 -7
- package/src/__tests__/mercato.test.ts +87 -0
- package/src/lib/generators/__tests__/module-package-sources.test.ts +7 -4
- 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.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.10.1-develop.7793.1.9e0c43fdde; core 0.10.1-develop.7793.1.9e0c43fdde — 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.
|
|
2
|
+
<!-- generated from @open-mercato/storage-s3 0.10.1-develop.7793.1.9e0c43fdde; core 0.10.1-develop.7793.1.9e0c43fdde — 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.
|
|
2
|
+
<!-- generated from @open-mercato/sync-akeneo 0.10.1-develop.7793.1.9e0c43fdde; core 0.10.1-develop.7793.1.9e0c43fdde — 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.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.10.1-develop.7793.1.9e0c43fdde; core 0.10.1-develop.7793.1.9e0c43fdde — 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.
|
|
2
|
+
<!-- generated from @open-mercato/enterprise 0.10.1-develop.7793.1.9e0c43fdde; core 0.10.1-develop.7793.1.9e0c43fdde — 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.
|
|
2
|
+
<!-- generated from @open-mercato/telemetry 0.10.1-develop.7793.1.9e0c43fdde; core 0.10.1-develop.7793.1.9e0c43fdde — 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.
|
|
2
|
+
<!-- generated from @open-mercato/tillio 0.10.1-develop.7793.1.9e0c43fdde; core 0.10.1-develop.7793.1.9e0c43fdde — 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.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.10.1-develop.7793.1.9e0c43fdde; core 0.10.1-develop.7793.1.9e0c43fdde — 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.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.10.1-develop.7793.1.9e0c43fdde; core 0.10.1-develop.7793.1.9e0c43fdde — 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.
|
|
2
|
+
<!-- generated from @open-mercato/webhooks 0.10.1-develop.7793.1.9e0c43fdde; core 0.10.1-develop.7793.1.9e0c43fdde — 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.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.10.1-develop.7793.1.9e0c43fdde; core 0.10.1-develop.7793.1.9e0c43fdde — 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.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.10.1-develop.7793.1.9e0c43fdde; core 0.10.1-develop.7793.1.9e0c43fdde — 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.
|
|
1188
|
+
"coreVersion": "0.10.1-develop.7793.1.9e0c43fdde",
|
|
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
|
|
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
|
|
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.
|
|
3
|
+
"generator": "@open-mercato/cli@0.10.1-develop.7793.1.9e0c43fdde",
|
|
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
|
|
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(
|
|
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(
|
|
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 =
|
|
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(
|
|
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(
|
|
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
|
|
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 () => {
|