@open-mercato/cli 0.11.1-develop.8498.1.9110d9b675 → 0.11.1-develop.8503.1.82b9ad791d
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 +1 -1
- package/dist/agentic/guides/contracts.md +7 -7
- package/dist/agentic/guides/module-facts.json +162 -724
- package/dist/agentic/guides/module-facts.v2.json +162 -724
- package/dist/agentic/guides/modules/agent_orchestrator/index.md +1 -1
- package/dist/agentic/guides/modules/ai_assistant/index.md +1 -1
- package/dist/agentic/guides/modules/api_docs/index.md +1 -1
- package/dist/agentic/guides/modules/api_keys/index.md +1 -1
- package/dist/agentic/guides/modules/attachments/index.md +1 -1
- package/dist/agentic/guides/modules/audit_logs/index.md +1 -1
- package/dist/agentic/guides/modules/auth/index.md +1 -1
- package/dist/agentic/guides/modules/availability/index.md +1 -1
- package/dist/agentic/guides/modules/business_rules/index.md +1 -1
- package/dist/agentic/guides/modules/carrier_inpost/index.md +1 -1
- package/dist/agentic/guides/modules/cart/index.md +1 -1
- package/dist/agentic/guides/modules/catalog/index.md +1 -1
- package/dist/agentic/guides/modules/channel_apns/index.md +1 -1
- package/dist/agentic/guides/modules/channel_discord/index.md +1 -1
- package/dist/agentic/guides/modules/channel_expo/index.md +1 -1
- package/dist/agentic/guides/modules/channel_fcm/index.md +1 -1
- package/dist/agentic/guides/modules/channel_gmail/index.md +1 -1
- package/dist/agentic/guides/modules/channel_imap/index.md +1 -1
- package/dist/agentic/guides/modules/channel_resend/index.md +1 -1
- package/dist/agentic/guides/modules/channel_ses/index.md +1 -1
- package/dist/agentic/guides/modules/channel_smtp/index.md +1 -1
- package/dist/agentic/guides/modules/checkout/index.md +1 -1
- package/dist/agentic/guides/modules/communication_channels/index.md +1 -1
- package/dist/agentic/guides/modules/configs/index.md +1 -1
- package/dist/agentic/guides/modules/content/index.md +1 -1
- package/dist/agentic/guides/modules/currencies/index.md +1 -1
- package/dist/agentic/guides/modules/customer_accounts/index.md +1 -1
- package/dist/agentic/guides/modules/customer_groups/index.md +1 -1
- package/dist/agentic/guides/modules/customers/index.md +1 -1
- package/dist/agentic/guides/modules/dashboards/index.md +1 -1
- package/dist/agentic/guides/modules/data_sync/index.md +1 -1
- package/dist/agentic/guides/modules/design_system/index.md +1 -1
- package/dist/agentic/guides/modules/devices/index.md +1 -1
- package/dist/agentic/guides/modules/dictionaries/index.md +1 -1
- package/dist/agentic/guides/modules/directory/index.md +1 -1
- package/dist/agentic/guides/modules/documents/index.md +1 -1
- package/dist/agentic/guides/modules/ecommerce/index.md +1 -1
- package/dist/agentic/guides/modules/entities/index.md +1 -1
- package/dist/agentic/guides/modules/eudr/index.md +1 -1
- package/dist/agentic/guides/modules/events/index.md +1 -1
- package/dist/agentic/guides/modules/feature_toggles/index.md +1 -1
- package/dist/agentic/guides/modules/forms/index.md +1 -1
- package/dist/agentic/guides/modules/gateway_autopay/index.md +1 -1
- package/dist/agentic/guides/modules/gateway_stripe/index.md +1 -1
- package/dist/agentic/guides/modules/gateway_tpay/index.md +1 -1
- package/dist/agentic/guides/modules/generators/index.md +1 -1
- package/dist/agentic/guides/modules/inbox_ops/index.md +1 -1
- package/dist/agentic/guides/modules/integrations/index.md +1 -1
- package/dist/agentic/guides/modules/messages/index.md +1 -1
- package/dist/agentic/guides/modules/notifications/index.md +1 -1
- package/dist/agentic/guides/modules/onboarding/index.md +1 -1
- package/dist/agentic/guides/modules/payment_gateways/index.md +1 -1
- package/dist/agentic/guides/modules/perspectives/index.md +1 -1
- package/dist/agentic/guides/modules/phone_calls/index.md +1 -1
- package/dist/agentic/guides/modules/planner/index.md +1 -1
- package/dist/agentic/guides/modules/portal/index.md +1 -1
- package/dist/agentic/guides/modules/progress/index.md +1 -1
- package/dist/agentic/guides/modules/promotions/index.md +1 -1
- package/dist/agentic/guides/modules/push_notifications/index.md +1 -1
- package/dist/agentic/guides/modules/query_index/index.md +1 -1
- package/dist/agentic/guides/modules/record_locks/index.md +1 -1
- package/dist/agentic/guides/modules/resources/index.md +1 -1
- package/dist/agentic/guides/modules/sales/index.md +1 -1
- package/dist/agentic/guides/modules/scheduler/index.md +1 -1
- package/dist/agentic/guides/modules/search/index.md +1 -1
- package/dist/agentic/guides/modules/security/index.md +1 -1
- package/dist/agentic/guides/modules/seeds/index.md +1 -1
- package/dist/agentic/guides/modules/shipping_carriers/index.md +1 -1
- package/dist/agentic/guides/modules/sso/index.md +1 -1
- package/dist/agentic/guides/modules/staff/index.md +1 -1
- package/dist/agentic/guides/modules/storage_s3/index.md +1 -1
- package/dist/agentic/guides/modules/sync_akeneo/index.md +1 -1
- package/dist/agentic/guides/modules/sync_excel/index.md +1 -1
- package/dist/agentic/guides/modules/system_status_overlays/index.md +1 -1
- package/dist/agentic/guides/modules/telemetry/index.md +1 -1
- package/dist/agentic/guides/modules/tillio/index.md +1 -1
- package/dist/agentic/guides/modules/translations/index.md +1 -1
- package/dist/agentic/guides/modules/warranty_claims/index.md +1 -1
- package/dist/agentic/guides/modules/webhooks/index.md +1 -1
- package/dist/agentic/guides/modules/wms/index.md +2 -3
- 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 +5 -7
- package/dist/agentic/guides/upstream/manifest.json +2 -2
- package/package.json +7 -7
- package/dist/agentic/guides/modules/wms/domain-commands.md +0 -50
package/.turbo/turbo-build.log
CHANGED
|
@@ -14,6 +14,7 @@ Copied create-app/agentic/ → dist/agentic.staging/
|
|
|
14
14
|
[module-facts] module registry unavailable (registryPath not provided); API route auth omitted for checkout
|
|
15
15
|
[module-facts] searchConfig entityId is not statically resolvable: /home/runner/work/open-mercato/open-mercato/packages/checkout/src/modules/checkout/search.ts:11
|
|
16
16
|
[module-facts] searchConfig entityId is not statically resolvable: /home/runner/work/open-mercato/open-mercato/packages/checkout/src/modules/checkout/search.ts:31
|
|
17
|
+
Generated 81 module fact-sheets → dist/agentic.staging/guides/modules/
|
|
17
18
|
[module-facts] searchConfig entityId is not statically resolvable: /home/runner/work/open-mercato/open-mercato/packages/checkout/src/modules/checkout/search.ts:58
|
|
18
19
|
[module-facts] module registry unavailable (registryPath not provided); API route auth omitted for content
|
|
19
20
|
[module-facts] module registry unavailable (registryPath not provided); API route auth omitted for api_docs
|
|
@@ -85,7 +86,6 @@ Copied create-app/agentic/ → dist/agentic.staging/
|
|
|
85
86
|
[module-facts] module registry unavailable (registryPath not provided); API route auth omitted for telemetry
|
|
86
87
|
[module-facts] module registry unavailable (registryPath not provided); API route auth omitted for tillio
|
|
87
88
|
[module-facts] module registry unavailable (registryPath not provided); API route auth omitted for webhooks
|
|
88
|
-
Generated 81 module fact-sheets → dist/agentic.staging/guides/modules/
|
|
89
89
|
[module-facts] module registry unavailable (registryPath not provided); API route auth omitted for ai_assistant
|
|
90
90
|
[module-facts] module registry unavailable (registryPath not provided); API route auth omitted for carrier_inpost
|
|
91
91
|
[module-facts] module registry unavailable (registryPath not provided); API route auth omitted for channel_apns
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Module and Data Contracts
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
For entities, APIs, commands, scoping, compatibility, migrations, events, workers, search and cache. Resolve installed `customers` source as the CRUD reference.
|
|
4
4
|
|
|
5
5
|
## Entity and Scope Contract
|
|
6
6
|
|
|
@@ -16,9 +16,9 @@ Use this guide for entities, APIs, commands, scoping, compatibility, migrations,
|
|
|
16
16
|
1. Change `data/entities.ts` and any validator/command/response contracts.
|
|
17
17
|
2. Run `yarn generate` if discovery or entity registration changed.
|
|
18
18
|
3. Run `yarn db:generate` as a schema-diff probe.
|
|
19
|
-
4. Review
|
|
20
|
-
5. Never edit
|
|
21
|
-
6. Ask before `yarn db:migrate`;
|
|
19
|
+
4. Review all emitted SQL; keep only the intended module change and update its `.snapshot-open-mercato.json` to the resulting schema.
|
|
20
|
+
5. Never edit shipped migrations; add a corrective migration.
|
|
21
|
+
6. Ask before `yarn db:migrate`; deliver migrations and snapshots without mutating the user's database.
|
|
22
22
|
|
|
23
23
|
## CRUD Route Contract
|
|
24
24
|
|
|
@@ -33,13 +33,13 @@ Create handlers under `api/<resource>/route.ts` and build them with the installe
|
|
|
33
33
|
- `indexer: { entityType }`: query-index coverage;
|
|
34
34
|
- `enrichers: { entityId }`: only when this route intentionally exposes the enricher host.
|
|
35
35
|
|
|
36
|
-
Export
|
|
36
|
+
Export factory handlers and a matching `openApi` document separately. `openApi` is not a `makeCrudRoute` option. Build it with `createCrudOpenApiFactory` and `createPagedListResponseSchema` from `@open-mercato/shared/lib/openapi/crud`, or provide a typed `OpenApiRouteDoc` from `@open-mercato/shared/lib/openapi`. Do not use the stale flat `create`/`update`/`del` factory shape, a top-level `requireAuth`, or an API file organized by HTTP-method directory.
|
|
37
37
|
|
|
38
|
-
Reject malformed ID lists and filters
|
|
38
|
+
Reject malformed ID lists and filters. Preserve response keys; normalize custom fields deliberately and test compatibility for changed prefixes.
|
|
39
39
|
|
|
40
40
|
## Commands and Custom Writes
|
|
41
41
|
|
|
42
|
-
- Put domain mutations in commands so audit, undo, events, cache invalidation, and indexing share one path. Routes validate and dispatch
|
|
42
|
+
- Put domain mutations in commands so audit, undo, events, cache invalidation, and indexing share one path. Routes validate and dispatch without duplicating writes.
|
|
43
43
|
- For custom write/action routes, run registered mutation guards before mutation, merge guarded payload changes, and run post-success callbacks after commit while logging callback failures.
|
|
44
44
|
- Enforce command-level optimistic locking for action/sub-resource endpoints. Guard the aggregate parent when lines share a parent version.
|
|
45
45
|
- Wrap multi-phase scalar/relation work with `withAtomicFlush(..., { transaction: true })`. Keep CRUD side effects and cache invalidation after the transaction commits.
|