@open-mercato/cli 0.11.1-develop.8882.1.4664687cf8 → 0.11.1-develop.8910.1.d07a49d70a
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/.turbo/turbo-build.log +7 -1
- package/dist/agentic/guides/integrations.md +1 -1
- package/dist/agentic/guides/module-facts.json +2117 -178
- package/dist/agentic/guides/module-facts.v2.json +2117 -178
- 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/assisted_selling/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/backups/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/acl-features.md +3 -1
- package/dist/agentic/guides/modules/catalog/backend-pages.md +3 -0
- package/dist/agentic/guides/modules/catalog/contribution-resolutions.md +4 -0
- package/dist/agentic/guides/modules/catalog/custom-entities.md +1 -0
- package/dist/agentic/guides/modules/catalog/domain-commands.md +3 -0
- package/dist/agentic/guides/modules/catalog/entities.md +3 -0
- package/dist/agentic/guides/modules/catalog/events.md +4 -1
- package/dist/agentic/guides/modules/catalog/exact-override-targets.md +5 -0
- package/dist/agentic/guides/modules/catalog/host-extension-points.md +1 -1
- package/dist/agentic/guides/modules/catalog/index.md +6 -6
- package/dist/agentic/guides/modules/catalog/search-entities.md +1 -0
- package/dist/agentic/guides/modules/catalog/umes-contributions.md +4 -0
- package/dist/agentic/guides/modules/catalog/umes-hosts.md +8 -0
- 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_ms365/acl-features.md +12 -0
- package/dist/agentic/guides/modules/channel_ms365/contribution-resolutions.md +12 -0
- package/dist/agentic/guides/modules/channel_ms365/di-registrations-rich.md +12 -0
- package/dist/agentic/guides/modules/channel_ms365/exact-override-targets.md +17 -0
- package/dist/agentic/guides/modules/channel_ms365/index.md +18 -0
- package/dist/agentic/guides/modules/channel_ms365/owned-contract-module-metadata.md +11 -0
- package/dist/agentic/guides/modules/channel_ms365/setup.md +11 -0
- package/dist/agentic/guides/modules/channel_ms365/umes-contributions.md +12 -0
- 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/exact-override-targets.md +1 -1
- package/dist/agentic/guides/modules/checkout/index.md +1 -1
- package/dist/agentic/guides/modules/checkout/workers.md +1 -1
- package/dist/agentic/guides/modules/communication_channels/incoming-installed-contributions.md +1 -0
- package/dist/agentic/guides/modules/communication_channels/index.md +2 -2
- package/dist/agentic/guides/modules/configs/acl-features.md +3 -1
- package/dist/agentic/guides/modules/configs/backend-pages.md +1 -0
- package/dist/agentic/guides/modules/configs/exact-override-targets.md +3 -0
- package/dist/agentic/guides/modules/configs/index.md +3 -3
- package/dist/agentic/guides/modules/configs/owned-contract-module-metadata.md +1 -1
- package/dist/agentic/guides/modules/configs/umes-hosts.md +1 -0
- 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/incoming-installed-contributions.md +1 -0
- 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/gus_regon/acl-features.md +11 -0
- package/dist/agentic/guides/modules/gus_regon/cli-commands.md +12 -0
- package/dist/agentic/guides/modules/gus_regon/contribution-resolutions.md +11 -0
- package/dist/agentic/guides/modules/gus_regon/di-registrations-rich.md +11 -0
- package/dist/agentic/guides/modules/gus_regon/exact-override-targets.md +17 -0
- package/dist/agentic/guides/modules/gus_regon/index.md +19 -0
- package/dist/agentic/guides/modules/gus_regon/owned-contract-module-metadata.md +11 -0
- package/dist/agentic/guides/modules/gus_regon/setup.md +11 -0
- package/dist/agentic/guides/modules/gus_regon/umes-contributions.md +11 -0
- 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/ledger/index.md +1 -1
- package/dist/agentic/guides/modules/maintenance/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/sales_invoices_gl_posting/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/sync_shopify/acl-features.md +12 -0
- package/dist/agentic/guides/modules/sync_shopify/cli-commands.md +12 -0
- package/dist/agentic/guides/modules/sync_shopify/contribution-resolutions.md +11 -0
- package/dist/agentic/guides/modules/sync_shopify/di-registrations-rich.md +11 -0
- package/dist/agentic/guides/modules/sync_shopify/exact-override-targets.md +17 -0
- package/dist/agentic/guides/modules/sync_shopify/index.md +19 -0
- package/dist/agentic/guides/modules/sync_shopify/owned-contract-module-metadata.md +11 -0
- package/dist/agentic/guides/modules/sync_shopify/setup.md +11 -0
- package/dist/agentic/guides/modules/sync_shopify/umes-contributions.md +11 -0
- 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/upgrade_actions/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 +2 -2
- package/dist/agentic/guides/reference-modules/example/index.md +1 -1
- package/dist/agentic/guides/upstream/BACKWARD_COMPATIBILITY.md +18 -0
- package/dist/agentic/guides/upstream/manifest.json +2 -2
- package/dist/agentic/shared/ai/harness/cases.json +4 -3
- package/dist/agentic/shared/ai/skills/om-integration-builder/references/provider-families.md +1 -1
- package/dist/lib/init-secrets.js +1 -1
- package/dist/lib/init-secrets.js.map +2 -2
- package/dist/lib/testing/integration-discovery.js +13 -0
- package/dist/lib/testing/integration-discovery.js.map +2 -2
- package/dist/lib/testing/integration.js +286 -26
- package/dist/lib/testing/integration.js.map +2 -2
- package/dist/mercato.js +9 -2
- package/dist/mercato.js.map +2 -2
- package/package.json +7 -7
- package/src/__tests__/mercato.test.ts +68 -0
- package/src/lib/__tests__/init-secrets.test.ts +11 -2
- package/src/lib/generators/__tests__/module-facts.extension-hosts.test.ts +2 -0
- package/src/lib/init-secrets.ts +1 -1
- package/src/lib/testing/__tests__/integration-prebuilt-artifacts.test.ts +486 -0
- package/src/lib/testing/__tests__/integration.test.ts +27 -0
- package/src/lib/testing/integration-discovery.ts +16 -0
- package/src/lib/testing/integration.ts +366 -27
- package/src/mercato.ts +9 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# query_index — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/core 0.11.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.11.1-develop.8910.1.d07a49d70a; core 0.11.1-develop.8910.1.d07a49d70a — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/core/src/modules/query_index
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# record_locks — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/enterprise 0.11.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/enterprise 0.11.1-develop.8910.1.d07a49d70a; core 0.11.1-develop.8910.1.d07a49d70a — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/enterprise/src/modules/record_locks
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# resources — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/core 0.11.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.11.1-develop.8910.1.d07a49d70a; core 0.11.1-develop.8910.1.d07a49d70a — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/core/src/modules/resources
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# sales — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/core 0.11.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.11.1-develop.8910.1.d07a49d70a; core 0.11.1-develop.8910.1.d07a49d70a — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/core/src/modules/sales
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# sales_invoices_gl_posting — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/core 0.11.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.11.1-develop.8910.1.d07a49d70a; core 0.11.1-develop.8910.1.d07a49d70a — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/core/src/modules/sales_invoices_gl_posting
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# scheduler — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/scheduler 0.11.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/scheduler 0.11.1-develop.8910.1.d07a49d70a; core 0.11.1-develop.8910.1.d07a49d70a — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/scheduler/src/modules/scheduler
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# search — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/search 0.11.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/search 0.11.1-develop.8910.1.d07a49d70a; core 0.11.1-develop.8910.1.d07a49d70a — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/search/src/modules/search
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# security — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/enterprise 0.11.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/enterprise 0.11.1-develop.8910.1.d07a49d70a; core 0.11.1-develop.8910.1.d07a49d70a — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/enterprise/src/modules/security
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# seeds — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/core 0.11.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.11.1-develop.8910.1.d07a49d70a; core 0.11.1-develop.8910.1.d07a49d70a — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/core/src/modules/seeds
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# shipping_carriers — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/core 0.11.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.11.1-develop.8910.1.d07a49d70a; core 0.11.1-develop.8910.1.d07a49d70a — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/core/src/modules/shipping_carriers
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# sso — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/enterprise 0.11.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/enterprise 0.11.1-develop.8910.1.d07a49d70a; core 0.11.1-develop.8910.1.d07a49d70a — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/enterprise/src/modules/sso
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# staff — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/core 0.11.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.11.1-develop.8910.1.d07a49d70a; core 0.11.1-develop.8910.1.d07a49d70a — 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.11.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/storage-s3 0.11.1-develop.8910.1.d07a49d70a; core 0.11.1-develop.8910.1.d07a49d70a — 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.11.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/sync-akeneo 0.11.1-develop.8910.1.d07a49d70a; core 0.11.1-develop.8910.1.d07a49d70a — 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.11.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.11.1-develop.8910.1.d07a49d70a; core 0.11.1-develop.8910.1.d07a49d70a — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/core/src/modules/sync_excel
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# sync_shopify — ACL features
|
|
2
|
+
|
|
3
|
+
[Back to module index](index.md)
|
|
4
|
+
|
|
5
|
+
## ACL features (2)
|
|
6
|
+
|
|
7
|
+
| Feature | Source |
|
|
8
|
+
|---|---|
|
|
9
|
+
| sync_shopify.view | [acl.ts](../../../../node_modules/@open-mercato/sync-shopify/src/modules/sync_shopify/acl.ts) |
|
|
10
|
+
| sync_shopify.configure | [acl.ts](../../../../node_modules/@open-mercato/sync-shopify/src/modules/sync_shopify/acl.ts) |
|
|
11
|
+
|
|
12
|
+
<!-- end module facts section: sync_shopify/acl-features -->
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# sync_shopify — CLI commands
|
|
2
|
+
|
|
3
|
+
[Back to module index](index.md)
|
|
4
|
+
|
|
5
|
+
## CLI commands
|
|
6
|
+
|
|
7
|
+
| ID / path | Source |
|
|
8
|
+
|---|---|
|
|
9
|
+
| configure-from-env | [cli.ts](../../../../node_modules/@open-mercato/sync-shopify/src/modules/sync_shopify/cli.ts) |
|
|
10
|
+
| help | [cli.ts](../../../../node_modules/@open-mercato/sync-shopify/src/modules/sync_shopify/cli.ts) |
|
|
11
|
+
|
|
12
|
+
<!-- end module facts section: sync_shopify/cli-commands -->
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# sync_shopify — Contribution resolutions
|
|
2
|
+
|
|
3
|
+
[Back to module index](index.md)
|
|
4
|
+
|
|
5
|
+
## Contribution resolutions
|
|
6
|
+
|
|
7
|
+
| Contribution | Target | Resolution | Activations | Source |
|
|
8
|
+
|---|---|---|---|---|
|
|
9
|
+
| integration:sync_shopify | module:sync_shopify | capability-only | — | [integration.ts](../../../../node_modules/@open-mercato/sync-shopify/src/modules/sync_shopify/integration.ts) |
|
|
10
|
+
|
|
11
|
+
<!-- end module facts section: sync_shopify/contribution-resolutions -->
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# sync_shopify — DI registrations (rich)
|
|
2
|
+
|
|
3
|
+
[Back to module index](index.md)
|
|
4
|
+
|
|
5
|
+
## DI registrations (rich)
|
|
6
|
+
|
|
7
|
+
| Token | Kind | Lifetime | Injection | Provider | Source |
|
|
8
|
+
|---|---|---|---|---|---|
|
|
9
|
+
| shopifyHealthCheck | value | — | — | — | [di.ts:12](../../../../node_modules/@open-mercato/sync-shopify/src/modules/sync_shopify/di.ts#L12) |
|
|
10
|
+
|
|
11
|
+
<!-- end module facts section: sync_shopify/di-registrations-rich -->
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# sync_shopify — Exact override targets
|
|
2
|
+
|
|
3
|
+
[Back to module index](index.md)
|
|
4
|
+
|
|
5
|
+
## Exact override targets
|
|
6
|
+
|
|
7
|
+
| Domain | Path / key | Supported modes | Referenced fact | Source |
|
|
8
|
+
|---|---|---|---|---|
|
|
9
|
+
| acl | `overrides.acl.features["sync_shopify.configure"]` | disable-replace | aclFeatures:sync_shopify.configure | [acl.ts](../../../../node_modules/@open-mercato/sync-shopify/src/modules/sync_shopify/acl.ts) |
|
|
10
|
+
| acl | `overrides.acl.features["sync_shopify.view"]` | disable-replace | aclFeatures:sync_shopify.view | [acl.ts](../../../../node_modules/@open-mercato/sync-shopify/src/modules/sync_shopify/acl.ts) |
|
|
11
|
+
| cli | `overrides.cli["configure-from-env"]` | disable-replace | cliCommands:configure-from-env | [cli.ts](../../../../node_modules/@open-mercato/sync-shopify/src/modules/sync_shopify/cli.ts) |
|
|
12
|
+
| cli | `overrides.cli["help"]` | disable-replace | cliCommands:help | [cli.ts](../../../../node_modules/@open-mercato/sync-shopify/src/modules/sync_shopify/cli.ts) |
|
|
13
|
+
| di | `overrides.di["shopifyHealthCheck"]` | disable-replace | ownedContracts.di-registration:shopifyHealthCheck | [di.ts:12](../../../../node_modules/@open-mercato/sync-shopify/src/modules/sync_shopify/di.ts#L12) |
|
|
14
|
+
| setup | `overrides.setup.defaultRoleFeatures` | replace | ownedContracts.setup:sync_shopify:setup | [setup.ts:11](../../../../node_modules/@open-mercato/sync-shopify/src/modules/sync_shopify/setup.ts#L11) |
|
|
15
|
+
| setup | `overrides.setup.seedDefaults` | replace | ownedContracts.setup:sync_shopify:setup | [setup.ts:11](../../../../node_modules/@open-mercato/sync-shopify/src/modules/sync_shopify/setup.ts#L11) |
|
|
16
|
+
|
|
17
|
+
<!-- end module facts section: sync_shopify/exact-override-targets -->
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# sync_shopify — module facts (generated, do not edit)
|
|
2
|
+
<!-- generated from @open-mercato/sync-shopify 0.11.1-develop.8910.1.d07a49d70a; core 0.11.1-develop.8910.1.d07a49d70a — R1 staleness stamp -->
|
|
3
|
+
Source root: node_modules/@open-mercato/sync-shopify/src/modules/sync_shopify
|
|
4
|
+
|
|
5
|
+
## Sections
|
|
6
|
+
|
|
7
|
+
- [ACL features](acl-features.md) — ~1 KB — Generated acl features facts for sync_shopify.
|
|
8
|
+
- [UMES contributions](umes-contributions.md) — ~1 KB — Generated umes contributions facts for sync_shopify.
|
|
9
|
+
- [Contribution resolutions](contribution-resolutions.md) — ~1 KB — Generated contribution resolutions facts for sync_shopify.
|
|
10
|
+
- [CLI commands](cli-commands.md) — ~1 KB — Generated cli commands facts for sync_shopify.
|
|
11
|
+
- [Exact override targets](exact-override-targets.md) — ~2 KB — Generated exact override targets facts for sync_shopify.
|
|
12
|
+
- [Owned contract — module metadata](owned-contract-module-metadata.md) — ~1 KB — Generated owned contract — module metadata facts for sync_shopify.
|
|
13
|
+
- [Setup](setup.md) — ~1 KB — Generated setup facts for sync_shopify.
|
|
14
|
+
- [DI registrations (rich)](di-registrations-rich.md) — ~1 KB — Generated di registrations (rich) facts for sync_shopify.
|
|
15
|
+
|
|
16
|
+
Read only the section files needed for the task; every section ends with a completion marker.
|
|
17
|
+
A section absent from this list has no facts for sync_shopify; this index is complete only when the read reaches the marker below.
|
|
18
|
+
|
|
19
|
+
<!-- end module facts: sync_shopify — 8 sections -->
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# sync_shopify — Owned contract — module metadata
|
|
2
|
+
|
|
3
|
+
[Back to module index](index.md)
|
|
4
|
+
|
|
5
|
+
## Owned contract — module metadata
|
|
6
|
+
|
|
7
|
+
| ID | Metadata | Source |
|
|
8
|
+
|---|---|---|
|
|
9
|
+
| sync_shopify | requires=integrations, data_sync, catalog, customers, sales | [index.ts:1](../../../../node_modules/@open-mercato/sync-shopify/src/modules/sync_shopify/index.ts#L1) |
|
|
10
|
+
|
|
11
|
+
<!-- end module facts section: sync_shopify/owned-contract-module-metadata -->
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# sync_shopify — Setup
|
|
2
|
+
|
|
3
|
+
[Back to module index](index.md)
|
|
4
|
+
|
|
5
|
+
## Setup
|
|
6
|
+
|
|
7
|
+
| ID | Metadata | Source |
|
|
8
|
+
|---|---|---|
|
|
9
|
+
| sync_shopify:setup | hooks=seedDefaults; roles=admin, superadmin | [setup.ts:11](../../../../node_modules/@open-mercato/sync-shopify/src/modules/sync_shopify/setup.ts#L11) |
|
|
10
|
+
|
|
11
|
+
<!-- end module facts section: sync_shopify/setup -->
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# sync_shopify — UMES contributions
|
|
2
|
+
|
|
3
|
+
[Back to module index](index.md)
|
|
4
|
+
|
|
5
|
+
## UMES contributions
|
|
6
|
+
|
|
7
|
+
| ID | Kind | Target | Phase / operations | Contract | Resolution | Source |
|
|
8
|
+
|---|---|---|---|---|---|---|
|
|
9
|
+
| integration:sync_shopify | specialized-registry | sync_shopify | — | registry=integration; registryId=sync_shopify; specialistRoute=integrations | fact-ref | [integration.ts](../../../../node_modules/@open-mercato/sync-shopify/src/modules/sync_shopify/integration.ts) |
|
|
10
|
+
|
|
11
|
+
<!-- end module facts section: sync_shopify/umes-contributions -->
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# system_status_overlays — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/enterprise 0.11.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/enterprise 0.11.1-develop.8910.1.d07a49d70a; core 0.11.1-develop.8910.1.d07a49d70a — 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.11.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/telemetry 0.11.1-develop.8910.1.d07a49d70a; core 0.11.1-develop.8910.1.d07a49d70a — 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.11.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/tillio 0.11.1-develop.8910.1.d07a49d70a; core 0.11.1-develop.8910.1.d07a49d70a — 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.11.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.11.1-develop.8910.1.d07a49d70a; core 0.11.1-develop.8910.1.d07a49d70a — 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
|
# upgrade_actions — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/upgrade-actions 0.11.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/upgrade-actions 0.11.1-develop.8910.1.d07a49d70a; core 0.11.1-develop.8910.1.d07a49d70a — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/upgrade-actions/src/modules/upgrade_actions
|
|
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.11.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.11.1-develop.8910.1.d07a49d70a; core 0.11.1-develop.8910.1.d07a49d70a — 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.11.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/webhooks 0.11.1-develop.8910.1.d07a49d70a; core 0.11.1-develop.8910.1.d07a49d70a — 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.11.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.11.1-develop.8910.1.d07a49d70a; core 0.11.1-develop.8910.1.d07a49d70a — 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.11.1-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.11.1-develop.8910.1.d07a49d70a; core 0.11.1-develop.8910.1.d07a49d70a — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/core/src/modules/workflows
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"projectionKind": "activated-reference",
|
|
5
5
|
"sourceKind": "local-reference",
|
|
6
6
|
"runtimeSelected": false,
|
|
7
|
-
"sourceFingerprint": "
|
|
7
|
+
"sourceFingerprint": "8089daac127c9fa2d5a95753cf3c0fce3ea5f0523b783d777bc74a7571c00256",
|
|
8
8
|
"taxonomyFingerprint": "2313a7e21c5035b75f662405dad75acfe976c796cd5b4c4f2f2f41635a009aee",
|
|
9
9
|
"factCoverage": [
|
|
10
10
|
{
|
|
@@ -1191,7 +1191,7 @@
|
|
|
1191
1191
|
"facts": {
|
|
1192
1192
|
"title": "Example Module",
|
|
1193
1193
|
"description": "Demonstrates pages, APIs, entities and DI.",
|
|
1194
|
-
"coreVersion": "0.11.1-develop.
|
|
1194
|
+
"coreVersion": "0.11.1-develop.8910.1.d07a49d70a",
|
|
1195
1195
|
"sourcePackage": null,
|
|
1196
1196
|
"sourceVersion": null,
|
|
1197
1197
|
"sourceRoot": "src/modules/example",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# example — module facts (generated reference projection, do not edit)
|
|
2
|
-
<!-- generated from local reference src/modules/example; source-fingerprint
|
|
2
|
+
<!-- generated from local reference src/modules/example; source-fingerprint 8089daac127c9fa2d5a95753cf3c0fce3ea5f0523b783d777bc74a7571c00256; taxonomy-fingerprint 2313a7e21c5035b75f662405dad75acfe976c796cd5b4c4f2f2f41635a009aee — R1 staleness stamp -->
|
|
3
3
|
> Reference projection: `example` is not selected by the current runtime. Its activations and exact override targets describe behavior only after opt-in in `src/modules.ts`.
|
|
4
4
|
Source root: src/modules/example
|
|
5
5
|
|
|
@@ -419,6 +419,20 @@ Deleting a user who had customised their sidebar failed on the `user_sidebar_pre
|
|
|
419
419
|
|
|
420
420
|
---
|
|
421
421
|
|
|
422
|
+
## CRUD Unique-Constraint Violations Answer 409 (2026-09-26)
|
|
423
|
+
|
|
424
|
+
Relinking an email interaction (`PUT /api/customers/interactions`) onto a CRM record that already had the same `external_message_id` hit the partial unique index `customer_interactions_email_dedupe_uq` and surfaced as a generic `500` ([#6467](https://github.com/open-mercato/open-mercato/issues/6467)). `makeCrudRoute` already mapped foreign-key violations (SQLSTATE 23503) to `409`; this extends the same mapping to unique violations (SQLSTATE 23505). **All changes are additive** and pass the contract-surface checks above:
|
|
425
|
+
|
|
426
|
+
| Surface | Change | Classification |
|
|
427
|
+
|---------|--------|----------------|
|
|
428
|
+
| Import path / exports (`@open-mercato/shared/lib/db/pg-errors`) | `isUniqueViolation(err)` is hardened to walk the MikroORM `cause`/`previous` chain (previously checked only the top-level error). New export `getUniqueViolationConstraint(err)` | ✓ ADDITIVE (widened detection, new export; nothing removed or renamed) |
|
|
429
|
+
| HTTP response shapes (`makeCrudRoute` handlers) | A handler that throws a Postgres unique-constraint violation now answers `409 { error, code: 'UNIQUE_VIOLATION', requestId }` with an `x-request-id` header, where it previously answered the generic `500 { error, message, requestId }`. The constraint name is logged and reported to telemetry but never returned to the client. The `error` message is now routed through `translate('errors.unique_violation', ...)` instead of a hardcoded string. Every other error class keeps its byte-identical historical answer | ⚠️ Behaviour change for one error class only. No retained response loses a field, but a client that treated the old `500` as retryable now receives a non-retryable `409`. Regression-tested in `crud-factory.test.ts` and `pg-errors.test.ts` |
|
|
430
|
+
| Database schema, event IDs, ACL features, DI names, CLI commands | No change | ✓ n/a |
|
|
431
|
+
|
|
432
|
+
**Migration path for existing modules**: no action required. A client that branched on `5xx` for unique-constraint failures should treat `409` with `code: 'UNIQUE_VIOLATION'` as the same condition; it was never retryable. The widened `isUniqueViolation`/`getUniqueViolationConstraint` exports are also consumed by `communication_channels` and `query_index`, which get the same chain-walking detection for free.
|
|
433
|
+
|
|
434
|
+
---
|
|
435
|
+
|
|
422
436
|
## Encrypt Path Rejects Wrong-Key Ciphertext (2026-09-11)
|
|
423
437
|
|
|
424
438
|
`TenantDataEncryptionService.encryptFields` treats "already encrypted" as "decrypts under the current DEK" — a deliberate anti-forgery choice ([#2720](https://github.com/open-mercato/open-mercato/issues/2720)). Real ciphertext sealed under a *different* key failed that check too and was encrypted a second time, producing a nested envelope that no read path can undo, plus a lookup hash computed over ciphertext ([#5951](https://github.com/open-mercato/open-mercato/issues/5951)). That write is now rejected:
|
|
@@ -716,6 +730,10 @@ STABLE: nonempty inputs require principal/owner read access; bridges retain disc
|
|
|
716
730
|
|
|
717
731
|
STABLE shared projections return NULL for private email subjects and unresolved historical linked names. Keys, types, scheduling, manual names and authorized readers stay. A bridge leaks subjects. Clients use unnamed fallbacks and authorized reads. Apply the idempotent repair and rebuild declared query indexes and configured search providers before reopening reads. See `.ai/specs/2026-11-07-private-next-interaction-projections.md` and UPGRADE_NOTES. [@pkarw waived steps 1–3](https://github.com/open-mercato/open-mercato/pull/8973#issuecomment-6852915966) on 2026-11-13.
|
|
718
732
|
|
|
733
|
+
## Credential writes (2026-11-13, #8582)
|
|
734
|
+
|
|
735
|
+
FROZEN schemas/STABLE CLI+service+API: policy bypass is the vulnerability; a bridge retains it. Piotr Karwatka (@pkarw) waived steps 1–3. [Scope, approval, migration](.ai/specs/2026-11-12-credential-policy-enforcement.md#migration--backward-compatibility).
|
|
736
|
+
|
|
719
737
|
## Comment authors (2026-11-12, #8759)
|
|
720
738
|
|
|
721
739
|
STABLE command/API: unrestricted attribution permits forgery; a bridge retains it. Piotr Karwatka (@pkarw) waived steps 1–3 for #8782. [Migration](UPGRADE_NOTES.md#customer-comment-update-attribution-8759).
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 1,
|
|
3
|
-
"generator": "@open-mercato/cli@0.11.1-develop.
|
|
3
|
+
"generator": "@open-mercato/cli@0.11.1-develop.8910.1.d07a49d70a",
|
|
4
4
|
"files": {
|
|
5
5
|
"AGENTS.md": "b5dc75ec890c2e8cc834cf36861be3b7b78ab1a714ecb83c8160f3d3e8834140",
|
|
6
|
-
"BACKWARD_COMPATIBILITY.md": "
|
|
6
|
+
"BACKWARD_COMPATIBILITY.md": "ded01a2a24e7a97dbe0883ebeee4358ba05d85eb0906ac097d7a22c4a5b18883"
|
|
7
7
|
}
|
|
8
8
|
}
|
|
@@ -1736,7 +1736,7 @@
|
|
|
1736
1736
|
],
|
|
1737
1737
|
"maxContextFiles": 6,
|
|
1738
1738
|
"maxInitialContextBytes": 65536,
|
|
1739
|
-
"maxTotalContextBytes":
|
|
1739
|
+
"maxTotalContextBytes": 130226,
|
|
1740
1740
|
"relatedCases": [
|
|
1741
1741
|
"OMH-023"
|
|
1742
1742
|
]
|
|
@@ -2431,7 +2431,7 @@
|
|
|
2431
2431
|
],
|
|
2432
2432
|
"maxContextFiles": 6,
|
|
2433
2433
|
"maxInitialContextBytes": 49152,
|
|
2434
|
-
"maxTotalContextBytes":
|
|
2434
|
+
"maxTotalContextBytes": 145941,
|
|
2435
2435
|
"relatedCases": [
|
|
2436
2436
|
"OMH-031"
|
|
2437
2437
|
]
|
|
@@ -3055,7 +3055,7 @@
|
|
|
3055
3055
|
"mode": "one-shot",
|
|
3056
3056
|
"evaluationKind": "routing",
|
|
3057
3057
|
"risk": "high",
|
|
3058
|
-
"prompt": "In a freshly scaffolded standalone Open Mercato app, first distinguish outbound transactional email from a connected Gmail/IMAP mailbox and inspect the installed Resend/SES/SMTP provider facts before proposing app-local code. Reuse an installed transactional provider when it matches; otherwise build the selected app-local provider with encrypted credentials, health, retry, redacted structured createLogger logs, and activation. A mailbox must use the installed communication_channels module and canonical ChannelAdapter contract with integration.ts hub metadata plus DI/setup registration, following installed channel_gmail/channel_imap precedent; transactional delivery must not pretend to be a mailbox adapter. Do not invent a packages workspace; separately published packaging requires an explicit reuse decision. Generated module facts are sufficient for routing; invoke framework context during implementation only after naming one missing exact-version symbol.",
|
|
3058
|
+
"prompt": "In a freshly scaffolded standalone Open Mercato app, first distinguish outbound transactional email from a connected Gmail/IMAP mailbox and inspect the installed Resend/SES/SMTP provider facts before proposing app-local code. Reuse an installed transactional provider when it matches; otherwise build the selected app-local provider with encrypted credentials, health, retry, redacted structured createLogger logs, and activation. A mailbox must use the installed communication_channels module and canonical ChannelAdapter contract with integration.ts hub metadata plus DI/setup registration, following installed channel_gmail/channel_imap/channel_ms365 precedent; transactional delivery must not pretend to be a mailbox adapter. Do not invent a packages workspace; separately published packaging requires an explicit reuse decision. Generated module facts are sufficient for routing; invoke framework context during implementation only after naming one missing exact-version symbol.",
|
|
3059
3059
|
"tags": [
|
|
3060
3060
|
"integration",
|
|
3061
3061
|
"encrypted-credentials",
|
|
@@ -3090,6 +3090,7 @@
|
|
|
3090
3090
|
".ai/guides/modules/communication_channels/index.md",
|
|
3091
3091
|
".ai/guides/modules/channel_gmail/index.md",
|
|
3092
3092
|
".ai/guides/modules/channel_imap/index.md",
|
|
3093
|
+
".ai/guides/modules/channel_ms365/index.md",
|
|
3093
3094
|
".ai/guides/modules/channel_resend/index.md",
|
|
3094
3095
|
".ai/guides/modules/channel_ses/index.md",
|
|
3095
3096
|
".ai/guides/modules/channel_smtp/index.md"
|
package/dist/agentic/shared/ai/skills/om-integration-builder/references/provider-families.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Load this reference to choose provider contracts.
|
|
4
4
|
|
|
5
5
|
- **Transactional email:** tenant credentials; `IntegrationDefinition`; DI sender and health services; bounded retry/redaction; activation. No generic installed transactional-email adapter exists, so do not invent one.
|
|
6
|
-
- **Mailbox/email channel:** installed `communication_channels` hub; `ChannelAdapter`; `integration.ts` with `hub: 'communication_channels'`; DI + setup adapter/health registration; per-user credentials; threading/dedup; webhook/poll convergence. Follow installed `channel_gmail`/`channel_imap` facts and contracts.
|
|
6
|
+
- **Mailbox/email channel:** installed `communication_channels` hub; `ChannelAdapter`; `integration.ts` with `hub: 'communication_channels'`; DI + setup adapter/health registration; per-user credentials; threading/dedup; webhook/poll convergence. Follow installed `channel_gmail`/`channel_imap`/`channel_ms365` facts and contracts.
|
|
7
7
|
- **Shipping:** installed `ShippingAdapter` plus `registerShippingAdapter`; services/rates/labels/tracking; address/package validation; idempotent fulfillment transitions; signed status callbacks. Keep host domain state provider-neutral (`provider-neutral-domain`); the carrier module is optional, so preserve a safe absent-provider path (`optional-provider`).
|
|
8
8
|
- **Payment:** installed `GatewayAdapter` plus `registerGatewayAdapter`, `registerWebhookHandler`, and `registerPaymentGatewayDescriptor`; register `verifyWebhook` so the host can reach it (optional `registerWebhookHandler` options: `readSessionIdHint`/`readPaymentIdHint` locators with raw `context`, `rawBody: 'bytes'` for exact-byte signatures, `maxBodyBytes`, `formatResponse` for provider-specific acknowledgements; verifiers get a safe `candidate` snapshot and never take tenant scope from the payload); durable idempotency; money/currency exactness; signed webhook reconciliation; concurrency-safe status machine.
|
|
9
9
|
- **Data sync:** `DataSyncAdapter`; entity mappings/presets; external IDs; streaming batches/cursors; overlap, progress, cancellation, reconciliation.
|
package/dist/lib/init-secrets.js
CHANGED
|
@@ -36,7 +36,7 @@ function resolveInitDerivedSecrets(options) {
|
|
|
36
36
|
}
|
|
37
37
|
const isProduction = (env.NODE_ENV ?? "").trim().toLowerCase() === "production";
|
|
38
38
|
const randomize = options.randomSource ?? randomBytes;
|
|
39
|
-
const randomSecret = () => randomize(12).toString("base64url")
|
|
39
|
+
const randomSecret = () => `Aa1!${randomize(Math.max(12, getPasswordPolicy(env).minLength)).toString("base64url")}`;
|
|
40
40
|
const resolvePassword = (key, emailValue) => {
|
|
41
41
|
if (!emailValue) return null;
|
|
42
42
|
const envValue = envRead(key);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/lib/init-secrets.ts"],
|
|
4
|
-
"sourcesContent": ["import { parseBooleanToken } from '@open-mercato/shared/lib/boolean'\nimport { getPasswordPolicy, validatePassword } from '@open-mercato/shared/lib/auth/passwordPolicy'\nimport { randomBytes } from 'node:crypto'\nimport { createTranslator } from '@open-mercato/shared/lib/i18n/translate'\nimport { createRequire } from 'node:module'\n\nconst requireLocale = createRequire(import.meta.url)\n\nfunction initTranslator(env: NodeJS.ProcessEnv) {\n const locale = (env.LC_ALL || env.LC_MESSAGES || env.LANG || 'en').split(/[_.-]/)[0].toLowerCase()\n const supportedLocale = ['en', 'pl', 'es', 'de', 'ko'].includes(locale) ? locale : 'en'\n const dictionary: Record<string, string> = requireLocale(`../i18n/${supportedLocale}.json`)\n return createTranslator(dictionary)\n}\n\ntype EnvReader = (key: string) => string | undefined\n\nfunction readEnvValue(env: NodeJS.ProcessEnv, key: string): string | undefined {\n const value = env[key]\n if (typeof value !== 'string') return undefined\n const trimmed = value.trim()\n return trimmed.length > 0 ? trimmed : undefined\n}\n\nfunction resolveEmailFromDomain(domain: string | undefined, prefix: string): string | null {\n if (!domain) return null\n return `${prefix}@${domain}`\n}\n\nexport type InitDerivedSecrets = {\n adminEmail: string | null\n employeeEmail: string | null\n adminPassword: string | null\n employeePassword: string | null\n}\n\n// Well-known dev/demo password baked into local bootstrap flows so developers\n// keep the documented \"log in as admin@<domain> with password 'secret'\" UX.\n// Only used when NODE_ENV !== 'production' and the OM_INIT_*_PASSWORD env vars\n// are unset \u2014 production paths always use a random 96-bit secret.\nconst DEMO_DERIVED_PASSWORD = 'secret'\n\nlet warnedAboutDeprecatedRandomToggle = false\n\nexport function resolveInitDerivedSecrets(options: {\n email: string\n env?: NodeJS.ProcessEnv\n randomSource?: (size: number) => Buffer\n}): InitDerivedSecrets {\n const env = options.env ?? process.env\n const envRead: EnvReader = (key) => readEnvValue(env, key)\n const [, domain] = String(options.email ?? '').split('@')\n const adminEmail = envRead('OM_INIT_ADMIN_EMAIL') ?? resolveEmailFromDomain(domain, 'admin')\n const employeeEmail = envRead('OM_INIT_EMPLOYEE_EMAIL') ?? resolveEmailFromDomain(domain, 'employee')\n // OM_INIT_GENERATE_RANDOM_PASSWORD used to be an opt-in toggle for random\n // derived secrets; in production it is now the unconditional behaviour when\n // no override is set. Surface a one-time deprecation warning so existing\n // operators notice their config is no longer required.\n if (parseBooleanToken(envRead('OM_INIT_GENERATE_RANDOM_PASSWORD') ?? '') === true && !warnedAboutDeprecatedRandomToggle) {\n warnedAboutDeprecatedRandomToggle = true\n console.warn(\n '\u26A0\uFE0F OM_INIT_GENERATE_RANDOM_PASSWORD is deprecated and no longer required: derived admin/employee passwords are always randomized in production when overrides are unset.',\n )\n }\n const isProduction = (env.NODE_ENV ?? '').trim().toLowerCase() === 'production'\n const randomize = options.randomSource ?? randomBytes\n const randomSecret = () => randomize(12).toString('base64url')
|
|
5
|
-
"mappings": "AAAA,SAAS,yBAAyB;AAClC,SAAS,mBAAmB,wBAAwB;AACpD,SAAS,mBAAmB;AAC5B,SAAS,wBAAwB;AACjC,SAAS,qBAAqB;AAE9B,MAAM,gBAAgB,cAAc,YAAY,GAAG;AAEnD,SAAS,eAAe,KAAwB;AAC9C,QAAM,UAAU,IAAI,UAAU,IAAI,eAAe,IAAI,QAAQ,MAAM,MAAM,OAAO,EAAE,CAAC,EAAE,YAAY;AACjG,QAAM,kBAAkB,CAAC,MAAM,MAAM,MAAM,MAAM,IAAI,EAAE,SAAS,MAAM,IAAI,SAAS;AACnF,QAAM,aAAqC,cAAc,WAAW,eAAe,OAAO;AAC1F,SAAO,iBAAiB,UAAU;AACpC;AAIA,SAAS,aAAa,KAAwB,KAAiC;AAC7E,QAAM,QAAQ,IAAI,GAAG;AACrB,MAAI,OAAO,UAAU,SAAU,QAAO;AACtC,QAAM,UAAU,MAAM,KAAK;AAC3B,SAAO,QAAQ,SAAS,IAAI,UAAU;AACxC;AAEA,SAAS,uBAAuB,QAA4B,QAA+B;AACzF,MAAI,CAAC,OAAQ,QAAO;AACpB,SAAO,GAAG,MAAM,IAAI,MAAM;AAC5B;AAaA,MAAM,wBAAwB;AAE9B,IAAI,oCAAoC;AAEjC,SAAS,0BAA0B,SAInB;AACrB,QAAM,MAAM,QAAQ,OAAO,QAAQ;AACnC,QAAM,UAAqB,CAAC,QAAQ,aAAa,KAAK,GAAG;AACzD,QAAM,CAAC,EAAE,MAAM,IAAI,OAAO,QAAQ,SAAS,EAAE,EAAE,MAAM,GAAG;AACxD,QAAM,aAAa,QAAQ,qBAAqB,KAAK,uBAAuB,QAAQ,OAAO;AAC3F,QAAM,gBAAgB,QAAQ,wBAAwB,KAAK,uBAAuB,QAAQ,UAAU;AAKpG,MAAI,kBAAkB,QAAQ,kCAAkC,KAAK,EAAE,MAAM,QAAQ,CAAC,mCAAmC;AACvH,wCAAoC;AACpC,YAAQ;AAAA,MACN;AAAA,IACF;AAAA,EACF;AACA,QAAM,gBAAgB,IAAI,YAAY,IAAI,KAAK,EAAE,YAAY,MAAM;AACnE,QAAM,YAAY,QAAQ,gBAAgB;AAC1C,QAAM,eAAe,MAAM,UAAU,EAAE,EAAE,SAAS,WAAW;
|
|
4
|
+
"sourcesContent": ["import { parseBooleanToken } from '@open-mercato/shared/lib/boolean'\nimport { getPasswordPolicy, validatePassword } from '@open-mercato/shared/lib/auth/passwordPolicy'\nimport { randomBytes } from 'node:crypto'\nimport { createTranslator } from '@open-mercato/shared/lib/i18n/translate'\nimport { createRequire } from 'node:module'\n\nconst requireLocale = createRequire(import.meta.url)\n\nfunction initTranslator(env: NodeJS.ProcessEnv) {\n const locale = (env.LC_ALL || env.LC_MESSAGES || env.LANG || 'en').split(/[_.-]/)[0].toLowerCase()\n const supportedLocale = ['en', 'pl', 'es', 'de', 'ko'].includes(locale) ? locale : 'en'\n const dictionary: Record<string, string> = requireLocale(`../i18n/${supportedLocale}.json`)\n return createTranslator(dictionary)\n}\n\ntype EnvReader = (key: string) => string | undefined\n\nfunction readEnvValue(env: NodeJS.ProcessEnv, key: string): string | undefined {\n const value = env[key]\n if (typeof value !== 'string') return undefined\n const trimmed = value.trim()\n return trimmed.length > 0 ? trimmed : undefined\n}\n\nfunction resolveEmailFromDomain(domain: string | undefined, prefix: string): string | null {\n if (!domain) return null\n return `${prefix}@${domain}`\n}\n\nexport type InitDerivedSecrets = {\n adminEmail: string | null\n employeeEmail: string | null\n adminPassword: string | null\n employeePassword: string | null\n}\n\n// Well-known dev/demo password baked into local bootstrap flows so developers\n// keep the documented \"log in as admin@<domain> with password 'secret'\" UX.\n// Only used when NODE_ENV !== 'production' and the OM_INIT_*_PASSWORD env vars\n// are unset \u2014 production paths always use a random 96-bit secret.\nconst DEMO_DERIVED_PASSWORD = 'secret'\n\nlet warnedAboutDeprecatedRandomToggle = false\n\nexport function resolveInitDerivedSecrets(options: {\n email: string\n env?: NodeJS.ProcessEnv\n randomSource?: (size: number) => Buffer\n}): InitDerivedSecrets {\n const env = options.env ?? process.env\n const envRead: EnvReader = (key) => readEnvValue(env, key)\n const [, domain] = String(options.email ?? '').split('@')\n const adminEmail = envRead('OM_INIT_ADMIN_EMAIL') ?? resolveEmailFromDomain(domain, 'admin')\n const employeeEmail = envRead('OM_INIT_EMPLOYEE_EMAIL') ?? resolveEmailFromDomain(domain, 'employee')\n // OM_INIT_GENERATE_RANDOM_PASSWORD used to be an opt-in toggle for random\n // derived secrets; in production it is now the unconditional behaviour when\n // no override is set. Surface a one-time deprecation warning so existing\n // operators notice their config is no longer required.\n if (parseBooleanToken(envRead('OM_INIT_GENERATE_RANDOM_PASSWORD') ?? '') === true && !warnedAboutDeprecatedRandomToggle) {\n warnedAboutDeprecatedRandomToggle = true\n console.warn(\n '\u26A0\uFE0F OM_INIT_GENERATE_RANDOM_PASSWORD is deprecated and no longer required: derived admin/employee passwords are always randomized in production when overrides are unset.',\n )\n }\n const isProduction = (env.NODE_ENV ?? '').trim().toLowerCase() === 'production'\n const randomize = options.randomSource ?? randomBytes\n const randomSecret = () => `Aa1!${randomize(Math.max(12, getPasswordPolicy(env).minLength)).toString('base64url')}`\n const resolvePassword = (key: string, emailValue: string | null) => {\n if (!emailValue) return null\n const envValue = envRead(key)\n if (envValue) return envValue\n // Non-production (dev/test/staging defaults): seed the documented demo\n // password so `yarn dev` / `mercato init` workflows stay predictable.\n // Production: generate a fresh random secret so credentials are never\n // hardcoded and the operator-facing CLI prints the value once.\n return isProduction ? randomSecret() : DEMO_DERIVED_PASSWORD\n }\n\n return {\n adminEmail,\n employeeEmail,\n adminPassword: resolvePassword('OM_INIT_ADMIN_PASSWORD', adminEmail),\n employeePassword: resolvePassword('OM_INIT_EMPLOYEE_PASSWORD', employeeEmail),\n }\n}\n\nexport function resolveInitSuperadminCredentials(args: string[], env: NodeJS.ProcessEnv = process.env) {\n const argValue = (name: string) => args.find((arg) => arg.startsWith(`${name}=`))?.slice(name.length + 1) || undefined\n const email = argValue('--email') ?? readEnvValue(env, 'OM_INIT_SUPERADMIN_EMAIL') ?? 'superadmin@acme.com'\n const suppliedPassword = argValue('--password') ?? readEnvValue(env, 'OM_INIT_SUPERADMIN_PASSWORD')\n const isProduction = (env.NODE_ENV ?? '').trim().toLowerCase() === 'production'\n const skipPolicyArg = args.find((arg) =>\n arg === '--skip-password-policy' || arg.startsWith('--skip-password-policy=') ||\n arg === '--allow-weak-password' || arg.startsWith('--allow-weak-password='),\n )\n const skipPasswordPolicy = !isProduction && (skipPolicyArg\n ? parseBooleanToken(skipPolicyArg.split('=')[1] ?? 'true') ?? true\n : true)\n if (isProduction) {\n const t = initTranslator(env)\n const placeholder = suppliedPassword?.trim().toLowerCase()\n if (!suppliedPassword || !placeholder || ['secret', 'password', 'changeme', 'change-me', 'change_me', 'replace-me', 'replace_me'].includes(placeholder)) {\n throw new Error(t('cli.init.errors.superadminPasswordRequired'))\n }\n if (!validatePassword(suppliedPassword, getPasswordPolicy(env)).ok) {\n throw new Error(t('cli.init.errors.superadminPasswordPolicy'))\n }\n }\n return { email, password: suppliedPassword ?? 'secret', skipPasswordPolicy }\n}\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -32,6 +32,17 @@ function normalizePath(filePath) {
|
|
|
32
32
|
function normalizeModuleId(moduleId) {
|
|
33
33
|
return moduleId.trim().toLowerCase();
|
|
34
34
|
}
|
|
35
|
+
function parseIntegrationModuleList(value) {
|
|
36
|
+
return new Set((value ?? "").split(",").map(normalizeModuleId).filter(Boolean));
|
|
37
|
+
}
|
|
38
|
+
function filterIntegrationSpecsForModules(specs, modules) {
|
|
39
|
+
if (modules.size === 0) return specs;
|
|
40
|
+
return specs.filter((spec) => {
|
|
41
|
+
if (spec.moduleName === null) return true;
|
|
42
|
+
if (modules.has(normalizeModuleId(spec.moduleName))) return true;
|
|
43
|
+
return spec.requiredModules.some((moduleId) => modules.has(normalizeModuleId(moduleId)));
|
|
44
|
+
});
|
|
45
|
+
}
|
|
35
46
|
function isEnterpriseModulesEnabled() {
|
|
36
47
|
const rawValue = process.env.OM_ENABLE_ENTERPRISE_MODULES?.trim().toLowerCase();
|
|
37
48
|
return rawValue === "true" || rawValue === "1" || rawValue === "yes" || rawValue === "on";
|
|
@@ -455,8 +466,10 @@ export {
|
|
|
455
466
|
DISCOVERY_SELECTION_REPORT_INTEGRATION_ENV_VAR,
|
|
456
467
|
SKIP_METADATA_FILTERS_INTEGRATION_ENV_VAR,
|
|
457
468
|
discoverIntegrationSpecFiles,
|
|
469
|
+
filterIntegrationSpecsForModules,
|
|
458
470
|
isAppOwnedIntegrationSpecPath,
|
|
459
471
|
normalizePath,
|
|
472
|
+
parseIntegrationModuleList,
|
|
460
473
|
resolveModuleDependenciesForSpec
|
|
461
474
|
};
|
|
462
475
|
//# sourceMappingURL=integration-discovery.js.map
|