@open-mercato/cli 0.6.8-develop.6969.1.7a32706312 → 0.6.8-develop.6971.1.20c09ca9ea
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/claude-code/hooks/gate-evidence.ts +269 -0
- package/dist/agentic/claude-code/settings.json +21 -0
- package/dist/agentic/codex/hooks/gate-evidence.mjs +199 -0
- package/dist/agentic/codex/hooks.json +29 -0
- package/dist/agentic/cursor/hooks/gate-evidence.mjs +181 -0
- package/dist/agentic/cursor/hooks.json +10 -0
- package/dist/agentic/guides/module-facts.json +112 -112
- package/dist/agentic/guides/module-facts.v2.json +112 -112
- 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/business_rules/index.md +1 -1
- package/dist/agentic/guides/modules/catalog/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/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/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/dictionaries/index.md +1 -1
- package/dist/agentic/guides/modules/directory/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/gateway_stripe/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/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/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/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/translations/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/upstream/manifest.json +1 -1
- package/dist/agentic/shared/ai/skills/om-module-scaffold/references/api-and-domain.md +13 -0
- package/dist/agentic/shared/ai/skills/om-module-scaffold/references/module-surfaces.md +22 -0
- package/dist/agentic/shared/ai/skills/om-module-scaffold/references/verification.md +20 -0
- package/dist/lib/agentic-setup.js +8 -2
- package/dist/lib/agentic-setup.js.map +2 -2
- package/dist/lib/generators/module-di.js +25 -1
- package/dist/lib/generators/module-di.js.map +2 -2
- package/dist/lib/generators/module-registry.js +61 -15
- package/dist/lib/generators/module-registry.js.map +2 -2
- package/dist/lib/generators/openapi.js +3 -1
- package/dist/lib/generators/openapi.js.map +2 -2
- package/package.json +6 -6
- package/src/lib/agentic-setup.ts +17 -2
- package/src/lib/generators/__tests__/silent-convention-warnings.test.ts +154 -0
- package/src/lib/generators/module-di.ts +35 -0
- package/src/lib/generators/module-registry.ts +93 -7
- package/src/lib/generators/openapi.ts +5 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# ai_assistant — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/ai-assistant 0.6.8-develop.
|
|
2
|
+
<!-- generated from @open-mercato/ai-assistant 0.6.8-develop.6971.1.20c09ca9ea; core 0.6.8-develop.6971.1.20c09ca9ea — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/ai-assistant/src/modules/ai_assistant
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# api_docs — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/core 0.6.8-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.6.8-develop.6971.1.20c09ca9ea; core 0.6.8-develop.6971.1.20c09ca9ea — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/core/src/modules/api_docs
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# api_keys — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/core 0.6.8-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.6.8-develop.6971.1.20c09ca9ea; core 0.6.8-develop.6971.1.20c09ca9ea — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/core/src/modules/api_keys
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# attachments — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/core 0.6.8-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.6.8-develop.6971.1.20c09ca9ea; core 0.6.8-develop.6971.1.20c09ca9ea — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/core/src/modules/attachments
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# audit_logs — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/core 0.6.8-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.6.8-develop.6971.1.20c09ca9ea; core 0.6.8-develop.6971.1.20c09ca9ea — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/core/src/modules/audit_logs
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# auth — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/core 0.6.8-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.6.8-develop.6971.1.20c09ca9ea; core 0.6.8-develop.6971.1.20c09ca9ea — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/core/src/modules/auth
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# business_rules — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/core 0.6.8-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.6.8-develop.6971.1.20c09ca9ea; core 0.6.8-develop.6971.1.20c09ca9ea — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/core/src/modules/business_rules
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# catalog — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/core 0.6.8-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.6.8-develop.6971.1.20c09ca9ea; core 0.6.8-develop.6971.1.20c09ca9ea — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/core/src/modules/catalog
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# channel_gmail — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/channel-gmail 0.6.8-develop.
|
|
2
|
+
<!-- generated from @open-mercato/channel-gmail 0.6.8-develop.6971.1.20c09ca9ea; core 0.6.8-develop.6971.1.20c09ca9ea — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/channel-gmail/src/modules/channel_gmail
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# channel_imap — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/channel-imap 0.6.8-develop.
|
|
2
|
+
<!-- generated from @open-mercato/channel-imap 0.6.8-develop.6971.1.20c09ca9ea; core 0.6.8-develop.6971.1.20c09ca9ea — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/channel-imap/src/modules/channel_imap
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# checkout — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/checkout 0.6.8-develop.
|
|
2
|
+
<!-- generated from @open-mercato/checkout 0.6.8-develop.6971.1.20c09ca9ea; core 0.6.8-develop.6971.1.20c09ca9ea — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/checkout/src/modules/checkout
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# communication_channels — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/core 0.6.8-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.6.8-develop.6971.1.20c09ca9ea; core 0.6.8-develop.6971.1.20c09ca9ea — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/core/src/modules/communication_channels
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# configs — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/core 0.6.8-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.6.8-develop.6971.1.20c09ca9ea; core 0.6.8-develop.6971.1.20c09ca9ea — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/core/src/modules/configs
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# content — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/content 0.6.8-develop.
|
|
2
|
+
<!-- generated from @open-mercato/content 0.6.8-develop.6971.1.20c09ca9ea; core 0.6.8-develop.6971.1.20c09ca9ea — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/content/src/modules/content
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# currencies — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/core 0.6.8-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.6.8-develop.6971.1.20c09ca9ea; core 0.6.8-develop.6971.1.20c09ca9ea — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/core/src/modules/currencies
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# customer_accounts — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/core 0.6.8-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.6.8-develop.6971.1.20c09ca9ea; core 0.6.8-develop.6971.1.20c09ca9ea — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/core/src/modules/customer_accounts
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# customers — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/core 0.6.8-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.6.8-develop.6971.1.20c09ca9ea; core 0.6.8-develop.6971.1.20c09ca9ea — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/core/src/modules/customers
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# dashboards — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/core 0.6.8-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.6.8-develop.6971.1.20c09ca9ea; core 0.6.8-develop.6971.1.20c09ca9ea — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/core/src/modules/dashboards
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# data_sync — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/core 0.6.8-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.6.8-develop.6971.1.20c09ca9ea; core 0.6.8-develop.6971.1.20c09ca9ea — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/core/src/modules/data_sync
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# design_system — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/core 0.6.8-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.6.8-develop.6971.1.20c09ca9ea; core 0.6.8-develop.6971.1.20c09ca9ea — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/core/src/modules/design_system
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# dictionaries — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/core 0.6.8-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.6.8-develop.6971.1.20c09ca9ea; core 0.6.8-develop.6971.1.20c09ca9ea — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/core/src/modules/dictionaries
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# directory — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/core 0.6.8-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.6.8-develop.6971.1.20c09ca9ea; core 0.6.8-develop.6971.1.20c09ca9ea — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/core/src/modules/directory
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# entities — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/core 0.6.8-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.6.8-develop.6971.1.20c09ca9ea; core 0.6.8-develop.6971.1.20c09ca9ea — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/core/src/modules/entities
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# eudr — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/core 0.6.8-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.6.8-develop.6971.1.20c09ca9ea; core 0.6.8-develop.6971.1.20c09ca9ea — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/core/src/modules/eudr
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# events — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/events 0.6.8-develop.
|
|
2
|
+
<!-- generated from @open-mercato/events 0.6.8-develop.6971.1.20c09ca9ea; core 0.6.8-develop.6971.1.20c09ca9ea — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/events/src/modules/events
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# feature_toggles — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/core 0.6.8-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.6.8-develop.6971.1.20c09ca9ea; core 0.6.8-develop.6971.1.20c09ca9ea — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/core/src/modules/feature_toggles
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# gateway_stripe — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/gateway-stripe 0.6.8-develop.
|
|
2
|
+
<!-- generated from @open-mercato/gateway-stripe 0.6.8-develop.6971.1.20c09ca9ea; core 0.6.8-develop.6971.1.20c09ca9ea — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/gateway-stripe/src/modules/gateway_stripe
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# generators — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/shared 0.6.8-develop.
|
|
2
|
+
<!-- generated from @open-mercato/shared 0.6.8-develop.6971.1.20c09ca9ea; core 0.6.8-develop.6971.1.20c09ca9ea — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/shared/src/modules/generators
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# inbox_ops — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/core 0.6.8-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.6.8-develop.6971.1.20c09ca9ea; core 0.6.8-develop.6971.1.20c09ca9ea — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/core/src/modules/inbox_ops
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# integrations — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/core 0.6.8-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.6.8-develop.6971.1.20c09ca9ea; core 0.6.8-develop.6971.1.20c09ca9ea — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/core/src/modules/integrations
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# messages — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/core 0.6.8-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.6.8-develop.6971.1.20c09ca9ea; core 0.6.8-develop.6971.1.20c09ca9ea — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/core/src/modules/messages
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# notifications — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/core 0.6.8-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.6.8-develop.6971.1.20c09ca9ea; core 0.6.8-develop.6971.1.20c09ca9ea — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/core/src/modules/notifications
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# onboarding — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/onboarding 0.6.8-develop.
|
|
2
|
+
<!-- generated from @open-mercato/onboarding 0.6.8-develop.6971.1.20c09ca9ea; core 0.6.8-develop.6971.1.20c09ca9ea — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/onboarding/src/modules/onboarding
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# payment_gateways — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/core 0.6.8-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.6.8-develop.6971.1.20c09ca9ea; core 0.6.8-develop.6971.1.20c09ca9ea — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/core/src/modules/payment_gateways
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# perspectives — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/core 0.6.8-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.6.8-develop.6971.1.20c09ca9ea; core 0.6.8-develop.6971.1.20c09ca9ea — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/core/src/modules/perspectives
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# planner — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/core 0.6.8-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.6.8-develop.6971.1.20c09ca9ea; core 0.6.8-develop.6971.1.20c09ca9ea — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/core/src/modules/planner
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# portal — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/core 0.6.8-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.6.8-develop.6971.1.20c09ca9ea; core 0.6.8-develop.6971.1.20c09ca9ea — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/core/src/modules/portal
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# progress — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/core 0.6.8-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.6.8-develop.6971.1.20c09ca9ea; core 0.6.8-develop.6971.1.20c09ca9ea — R1 staleness stamp -->
|
|
3
3
|
Source root: node_modules/@open-mercato/core/src/modules/progress
|
|
4
4
|
|
|
5
5
|
## Sections
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# query_index — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/core 0.6.8-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.6.8-develop.6971.1.20c09ca9ea; core 0.6.8-develop.6971.1.20c09ca9ea — 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.6.8-develop.
|
|
2
|
+
<!-- generated from @open-mercato/enterprise 0.6.8-develop.6971.1.20c09ca9ea; core 0.6.8-develop.6971.1.20c09ca9ea — 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.6.8-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.6.8-develop.6971.1.20c09ca9ea; core 0.6.8-develop.6971.1.20c09ca9ea — 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.6.8-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.6.8-develop.6971.1.20c09ca9ea; core 0.6.8-develop.6971.1.20c09ca9ea — 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
|
# scheduler — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/scheduler 0.6.8-develop.
|
|
2
|
+
<!-- generated from @open-mercato/scheduler 0.6.8-develop.6971.1.20c09ca9ea; core 0.6.8-develop.6971.1.20c09ca9ea — 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.6.8-develop.
|
|
2
|
+
<!-- generated from @open-mercato/search 0.6.8-develop.6971.1.20c09ca9ea; core 0.6.8-develop.6971.1.20c09ca9ea — 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.6.8-develop.
|
|
2
|
+
<!-- generated from @open-mercato/enterprise 0.6.8-develop.6971.1.20c09ca9ea; core 0.6.8-develop.6971.1.20c09ca9ea — 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
|
# shipping_carriers — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/core 0.6.8-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.6.8-develop.6971.1.20c09ca9ea; core 0.6.8-develop.6971.1.20c09ca9ea — 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.6.8-develop.
|
|
2
|
+
<!-- generated from @open-mercato/enterprise 0.6.8-develop.6971.1.20c09ca9ea; core 0.6.8-develop.6971.1.20c09ca9ea — 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.6.8-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.6.8-develop.6971.1.20c09ca9ea; core 0.6.8-develop.6971.1.20c09ca9ea — 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.6.8-develop.
|
|
2
|
+
<!-- generated from @open-mercato/storage-s3 0.6.8-develop.6971.1.20c09ca9ea; core 0.6.8-develop.6971.1.20c09ca9ea — 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.6.8-develop.
|
|
2
|
+
<!-- generated from @open-mercato/sync-akeneo 0.6.8-develop.6971.1.20c09ca9ea; core 0.6.8-develop.6971.1.20c09ca9ea — 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.6.8-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.6.8-develop.6971.1.20c09ca9ea; core 0.6.8-develop.6971.1.20c09ca9ea — 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.6.8-develop.
|
|
2
|
+
<!-- generated from @open-mercato/enterprise 0.6.8-develop.6971.1.20c09ca9ea; core 0.6.8-develop.6971.1.20c09ca9ea — 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
|
# translations — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/core 0.6.8-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.6.8-develop.6971.1.20c09ca9ea; core 0.6.8-develop.6971.1.20c09ca9ea — 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
|
# webhooks — module facts (generated, do not edit)
|
|
2
|
-
<!-- generated from @open-mercato/webhooks 0.6.8-develop.
|
|
2
|
+
<!-- generated from @open-mercato/webhooks 0.6.8-develop.6971.1.20c09ca9ea; core 0.6.8-develop.6971.1.20c09ca9ea — 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.6.8-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.6.8-develop.6971.1.20c09ca9ea; core 0.6.8-develop.6971.1.20c09ca9ea — 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.6.8-develop.
|
|
2
|
+
<!-- generated from @open-mercato/core 0.6.8-develop.6971.1.20c09ca9ea; core 0.6.8-develop.6971.1.20c09ca9ea — 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.6.8-develop.
|
|
1188
|
+
"coreVersion": "0.6.8-develop.6971.1.20c09ca9ea",
|
|
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.6.8-develop.
|
|
3
|
+
"generator": "@open-mercato/cli@0.6.8-develop.6971.1.20c09ca9ea",
|
|
4
4
|
"files": {
|
|
5
5
|
"AGENTS.md": "b781066684c8b92ef1e1fc7114252cd29a7a546a70eea6f30ddecf4ad35f578c",
|
|
6
6
|
"BACKWARD_COMPATIBILITY.md": "11afd13429cd4fcf1e42eb945bca95780e890edcb2421f4e93ee9d5e1f38c2f6"
|
|
@@ -2,6 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
Load this reference for CRUD, commands, and action routes.
|
|
4
4
|
|
|
5
|
+
Before writing a route or command, read `node_modules/@open-mercato/shared/AGENTS.md`. It is
|
|
6
|
+
the authority for this layer's import paths and carries MUST rules that are easy to violate
|
|
7
|
+
by writing something that merely compiles — in particular: use the `badRequest` / `forbidden`
|
|
8
|
+
/ `notFound` / `conflict` / `assertFound` helpers from
|
|
9
|
+
`@open-mercato/shared/lib/crud/errors` rather than hand-rolling `new CrudHttpError(404, …)`;
|
|
10
|
+
read encrypted columns through `@open-mercato/shared/lib/encryption/find`; and never `$ilike`
|
|
11
|
+
a column an encryption map covers — use `@open-mercato/shared/lib/search/tokenLookup`.
|
|
12
|
+
|
|
13
|
+
There is no `@open-mercato/shared/lib/http/types`. A hand-written route handler takes the
|
|
14
|
+
platform `Request` (`export async function GET(request: Request)`) and returns a platform
|
|
15
|
+
`Response`; a dynamic segment arrives as a second argument,
|
|
16
|
+
`(request: Request, ctx: { params?: { id?: string } })`.
|
|
17
|
+
|
|
5
18
|
1. Implement create/update/delete as command objects with stable IDs and call `registerCommand` from `@open-mercato/shared/lib/commands` for each object. A route action naming a command ID does not register it. Include audit/undo/event/cache/index side effects.
|
|
6
19
|
2. Create `src/modules/<moduleId>/api/<resource>/route.ts`; generated discovery mounts it at `/api/<moduleId>/<resource>`. Import `makeCrudRoute` from `@open-mercato/shared/lib/crud/factory`, then export per-method `metadata`, the selected factory handlers, and matching `openApi`. Smoke-test the generated URL rather than assuming a hyphenated or module-less path.
|
|
7
20
|
3. Build current `makeCrudRoute` options: `metadata`, `orm`, `list`, `actions: { create, update, delete }`, and `indexer`. Each command action uses `commandId`, `schema`, optional `mapInput`, `response`, and `status`—never a `command` key. Add `enrichers: { entityId: '<module>:<entity>' }` only when the route intentionally publishes that stable host contract; keep the colon-form ID aligned with the UI/widget host and test injected read/write round trips. Export `openApi` separately—it is not a factory option—and build it with `createCrudOpenApiFactory`/`createPagedListResponseSchema` from `@open-mercato/shared/lib/openapi/crud` or a typed `OpenApiRouteDoc` from `@open-mercato/shared/lib/openapi`.
|
|
@@ -20,6 +20,28 @@ Load only the rows the brief requires.
|
|
|
20
20
|
|
|
21
21
|
Every added surface needs a real caller or acceptance path. Do not add speculative empty files.
|
|
22
22
|
|
|
23
|
+
## Import paths are looked up, never inferred
|
|
24
|
+
|
|
25
|
+
Before writing any UI surface, read `node_modules/@open-mercato/ui/AGENTS.md`. It carries a
|
|
26
|
+
"Component quick reference" table mapping *what you need* to the **exact import path**, plus
|
|
27
|
+
the MUST rules for `CrudForm`, `DataTable`, and the primitives. Look the path up there; do
|
|
28
|
+
not infer one from a component's name or its position in the source tree.
|
|
29
|
+
|
|
30
|
+
Paths that read plausibly and do not exist: `@open-mercato/ui/crud/form`,
|
|
31
|
+
`@open-mercato/ui/layout/page`, `@open-mercato/ui/data/table`. The real ones are
|
|
32
|
+
`@open-mercato/ui/backend/CrudForm`, `@open-mercato/ui/backend/Page`,
|
|
33
|
+
`@open-mercato/ui/backend/DataTable`.
|
|
34
|
+
|
|
35
|
+
Backend page routes are derived from the directory path with the module id REMOVED:
|
|
36
|
+
`src/modules/<mod>/backend/<segments>/page.tsx` mounts at `/backend/<segments>`. So
|
|
37
|
+
`src/modules/library/backend/books/page.tsx` is `/backend/books`, **not**
|
|
38
|
+
`/backend/library/books`. API routes are the opposite — they keep the module namespace, so
|
|
39
|
+
`src/modules/library/api/books/route.ts` is `/api/library/books`. Confirm against
|
|
40
|
+
`.mercato/generated/backend-route-metadata.generated.ts` after running `yarn generate`.
|
|
41
|
+
|
|
42
|
+
A backend page is a server component that renders a `"use client"` component from
|
|
43
|
+
`src/modules/<mod>/components/`; it does not itself carry `"use client"`.
|
|
44
|
+
|
|
23
45
|
## Canonical example source
|
|
24
46
|
|
|
25
47
|
One compiling implementation per row, from the source-present, runtime-disabled `example` module. Open only the row you are building; the full index is [`surface-map.md`](../../../../src/modules/example/references/surface-map.md).
|
|
@@ -2,6 +2,26 @@
|
|
|
2
2
|
|
|
3
3
|
Load this reference before claiming a scaffold is complete.
|
|
4
4
|
|
|
5
|
+
## What counts as a gate that passed
|
|
6
|
+
|
|
7
|
+
A gate has passed ONLY when its command ran to completion and you report its exit status.
|
|
8
|
+
This is not pedantry — every item below is a way a real scaffold was reported green while it
|
|
9
|
+
could not compile:
|
|
10
|
+
|
|
11
|
+
- **A gate that crashes has not passed.** `FATAL ERROR: … heap out of memory` from `tsc` is a
|
|
12
|
+
failure to report, never a step to skip. Re-run it with a larger heap
|
|
13
|
+
(`NODE_OPTIONS=--max-old-space-size=8192`) and report the real result.
|
|
14
|
+
- **`No tests found` is not a pass.** An empty suite exits 0 and is indistinguishable from a
|
|
15
|
+
green one. Report it as `test: no tests found (not a pass)`.
|
|
16
|
+
- **`lint` passing says nothing about whether imports resolve.** ESLint does not check module
|
|
17
|
+
resolution unless `import/no-unresolved` is enabled, and it is not enabled by default. Only
|
|
18
|
+
`typecheck` proves an import path exists — an invented one surfaces as `TS2307`.
|
|
19
|
+
- **A pipe hides the exit status.** `yarn test | tail -30` reports the exit code of `tail`.
|
|
20
|
+
Capture the status of the command itself.
|
|
21
|
+
- **Writing a document is not running a gate.** Never produce a completion claim — `gate
|
|
22
|
+
green`, `PRODUCTION READY`, a status table, a summary file — asserting a result you did not
|
|
23
|
+
observe. If you cannot run a gate, say so plainly and say why.
|
|
24
|
+
|
|
5
25
|
1. Run `yarn generate`; inspect warnings and the affected module/API/page/entity/event/search/agent registrations.
|
|
6
26
|
2. Standalone unit and command tests use the scaffold's Jest setup, never Vitest. When the standalone `tsconfig` does not declare Jest types, explicitly import `describe`, `it`/`test`, `expect`, and `jest` from `@jest/globals`; passing typecheck requires this, and a focused runner must discover and execute the file. Keep hooks void (`beforeEach(() => { jest.clearAllMocks() })`, not an expression callback that returns `Jest`), give framework mocks their complete callable signatures instead of relying on zero-argument `jest.fn()` inference, and pass the handler's full `{ input, logEntry, ctx }` object to `undo`. Put command behavior/undo tests under `commands/__tests__/`, run focused command/API/component tests, then `yarn typecheck`, `yarn lint`, and the smallest applicable build/test gate. Do not stop with a known TypeScript diagnostic in either implementation or test code.
|
|
7
27
|
3. Create fixtures through APIs for two tenants/organizations and clean them in `finally`.
|