@open-mercato/cli 0.9.1-develop.7553.1.8dbab05b5a → 0.9.1-develop.7566.1.b9de0a5eb7
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 +160 -154
- package/dist/agentic/guides/module-facts.v2.json +160 -154
- 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/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/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/customers/owned-contract-module-metadata.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_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/portal/owned-contract-module-metadata.md +1 -1
- package/dist/agentic/guides/modules/progress/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/modules/workflows/owned-contract-module-metadata.md +1 -1
- package/dist/agentic/guides/reference-module-facts.json +1 -1
- package/dist/agentic/guides/upstream/manifest.json +1 -1
- package/dist/mercato.js +13 -11
- package/dist/mercato.js.map +2 -2
- package/package.json +7 -7
- package/src/__tests__/mercato.test.ts +116 -0
- package/src/mercato.ts +14 -7
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# sync_excel — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/core 0.9.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.9.1-develop.7566.1.b9de0a5eb7; core 0.9.1-develop.7566.1.b9de0a5eb7 — 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.9.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/enterprise 0.9.1-develop.7566.1.b9de0a5eb7; core 0.9.1-develop.7566.1.b9de0a5eb7 — 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.9.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/telemetry 0.9.1-develop.7566.1.b9de0a5eb7; core 0.9.1-develop.7566.1.b9de0a5eb7 — 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.9.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/tillio 0.9.1-develop.7566.1.b9de0a5eb7; core 0.9.1-develop.7566.1.b9de0a5eb7 — 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.9.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.9.1-develop.7566.1.b9de0a5eb7; core 0.9.1-develop.7566.1.b9de0a5eb7 — 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.9.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.9.1-develop.7566.1.b9de0a5eb7; core 0.9.1-develop.7566.1.b9de0a5eb7 — 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.9.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/webhooks 0.9.1-develop.7566.1.b9de0a5eb7; core 0.9.1-develop.7566.1.b9de0a5eb7 — 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.9.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.9.1-develop.7566.1.b9de0a5eb7; core 0.9.1-develop.7566.1.b9de0a5eb7 — 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.9.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.9.1-develop.7566.1.b9de0a5eb7; core 0.9.1-develop.7566.1.b9de0a5eb7 — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/core/src/modules/workflows
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -6,6 +6,6 @@
|
|
|
6
6
|
|
|
7
7
|
| ID | Metadata | Source |
|
|
8
8
|
|---|---|---|
|
|
9
|
-
| workflows | ejectable=true; name=workflows; version=1.0.0 | [index.ts:10](../../../../node_modules/@open-mercato/core/src/modules/workflows/index.ts#L10) |
|
|
9
|
+
| workflows | ejectable=true; name=workflows; requires=business_rules; version=1.0.0 | [index.ts:10](../../../../node_modules/@open-mercato/core/src/modules/workflows/index.ts#L10) |
|
|
10
10
|
|
|
11
11
|
<!-- end module facts section: workflows/owned-contract-module-metadata -->
|
|
@@ -1185,7 +1185,7 @@
|
|
|
1185
1185
|
"facts": {
|
|
1186
1186
|
"title": "Example Module",
|
|
1187
1187
|
"description": "Demonstrates pages, APIs, entities and DI.",
|
|
1188
|
-
"coreVersion": "0.9.1-develop.
|
|
1188
|
+
"coreVersion": "0.9.1-develop.7566.1.b9de0a5eb7",
|
|
1189
1189
|
"sourcePackage": null,
|
|
1190
1190
|
"sourceVersion": null,
|
|
1191
1191
|
"sourceRoot": "src/modules/example",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 1,
|
|
3
|
-
"generator": "@open-mercato/cli@0.9.1-develop.
|
|
3
|
+
"generator": "@open-mercato/cli@0.9.1-develop.7566.1.b9de0a5eb7",
|
|
4
4
|
"files": {
|
|
5
5
|
"AGENTS.md": "9fdaca247f55c64f5966cc103265cfb03233e0532f58f14aff538ae18aa3555d",
|
|
6
6
|
"BACKWARD_COMPATIBILITY.md": "2b7da9de33f49726ef47c9b851b18097317d33e8f3338780ab743735964353ba"
|
package/dist/mercato.js
CHANGED
|
@@ -665,7 +665,7 @@ function isHelpRequest(args) {
|
|
|
665
665
|
}
|
|
666
666
|
const TOP_LEVEL_COMMAND_HELP = {
|
|
667
667
|
init: [
|
|
668
|
-
"Usage: mercato init [--reinstall|-r] [--no-examples] [--stresstest [--lite] [--count=<n>]]",
|
|
668
|
+
"Usage: mercato init [--reinstall|-r] [--no-examples] [--no-demo-users] [--stresstest [--lite] [--count=<n>]]",
|
|
669
669
|
"Initializes this app: installs dependencies, runs generators, applies migrations and seeds data."
|
|
670
670
|
],
|
|
671
671
|
"agentic:init": [
|
|
@@ -720,6 +720,7 @@ async function run(argv = process.argv) {
|
|
|
720
720
|
delete process.env.OM_INIT_REINSTALL;
|
|
721
721
|
}
|
|
722
722
|
const skipExamples = initArgs.includes("--no-examples");
|
|
723
|
+
const skipDemoUsers = initArgs.includes("--no-demo-users");
|
|
723
724
|
const stressTestEnabled = initArgs.includes("--stresstest") || initArgs.includes("--stress-test");
|
|
724
725
|
const stressTestLite = initArgs.includes("--lite") || initArgs.includes("--stress-lite") || initArgs.some((arg) => arg.startsWith("--payload=lite") || arg.startsWith("--mode=lite"));
|
|
725
726
|
let stressTestCount = 6e3;
|
|
@@ -756,6 +757,7 @@ async function run(argv = process.argv) {
|
|
|
756
757
|
}
|
|
757
758
|
console.log(`\u{1F504} Reinstall mode: ${reinstall ? "enabled" : "disabled"}`);
|
|
758
759
|
console.log(`\u{1F3A8} Example content: ${skipExamples ? "skipped (--no-examples)" : "enabled"}`);
|
|
760
|
+
console.log(`\u{1F464} Demo accounts (admin@/employee@): ${skipDemoUsers ? "skipped (--no-demo-users)" : "enabled"}`);
|
|
759
761
|
console.log(
|
|
760
762
|
`\u{1F3CB}\uFE0F Stress test dataset: ${stressTestEnabled ? `enabled (target ${stressTestCount} contacts${stressTestLite ? ", lite payload" : ""})` : "disabled"}`
|
|
761
763
|
);
|
|
@@ -928,10 +930,10 @@ async function run(argv = process.argv) {
|
|
|
928
930
|
const derivedSecrets = resolveInitDerivedSecrets({ email, env: process.env });
|
|
929
931
|
const adminEmailDerived = derivedSecrets.adminEmail;
|
|
930
932
|
const employeeEmailDerived = derivedSecrets.employeeEmail;
|
|
931
|
-
if (adminEmailDerived && derivedSecrets.adminPassword) {
|
|
933
|
+
if (!skipDemoUsers && adminEmailDerived && derivedSecrets.adminPassword) {
|
|
932
934
|
process.env.OM_INIT_ADMIN_PASSWORD = derivedSecrets.adminPassword;
|
|
933
935
|
}
|
|
934
|
-
if (employeeEmailDerived && derivedSecrets.employeePassword) {
|
|
936
|
+
if (!skipDemoUsers && employeeEmailDerived && derivedSecrets.employeePassword) {
|
|
935
937
|
process.env.OM_INIT_EMPLOYEE_PASSWORD = derivedSecrets.employeePassword;
|
|
936
938
|
}
|
|
937
939
|
const roles = findArgValue(["--roles="], "superadmin,admin,employee");
|
|
@@ -948,13 +950,11 @@ async function run(argv = process.argv) {
|
|
|
948
950
|
"--password",
|
|
949
951
|
password,
|
|
950
952
|
"--roles",
|
|
951
|
-
roles
|
|
952
|
-
// `mercato init` is the dev/demo bootstrap flow — it explicitly wants
|
|
953
|
-
// the derived admin@/employee@ demo accounts. Standalone callers of
|
|
954
|
-
// `mercato auth setup` must opt in themselves; without this flag the
|
|
955
|
-
// setup command no longer seeds those accounts by default.
|
|
956
|
-
"--include-demo-users"
|
|
953
|
+
roles
|
|
957
954
|
];
|
|
955
|
+
if (!skipDemoUsers) {
|
|
956
|
+
setupArgs.push("--include-demo-users");
|
|
957
|
+
}
|
|
958
958
|
if (skipPasswordPolicy) {
|
|
959
959
|
setupArgs.push("--skip-password-policy");
|
|
960
960
|
}
|
|
@@ -1087,8 +1087,10 @@ async function run(argv = process.argv) {
|
|
|
1087
1087
|
createdPasswords.set(value.toLowerCase(), passwordValue);
|
|
1088
1088
|
};
|
|
1089
1089
|
pushUser("Superadmin", "\u{1F451}", email, password);
|
|
1090
|
-
|
|
1091
|
-
|
|
1090
|
+
if (!skipDemoUsers) {
|
|
1091
|
+
pushUser("Admin", "\u{1F9F0}", adminEmailDerived, adminPasswordOverride ?? password);
|
|
1092
|
+
pushUser("Employee", "\u{1F477}", employeeEmailDerived, employeePasswordOverride ?? password);
|
|
1093
|
+
}
|
|
1092
1094
|
console.log("\u{1F389} App initialization complete!\n");
|
|
1093
1095
|
console.log("\u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557");
|
|
1094
1096
|
console.log("\u2551 \u{1F680} You're now ready to start development! \u2551");
|