@open-mercato/cli 0.11.1-develop.8567.1.a167594505 → 0.11.1-develop.8572.1.85986dc508

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.
Files changed (95) hide show
  1. package/dist/agentic/guides/module-facts.json +658 -164
  2. package/dist/agentic/guides/module-facts.v2.json +658 -164
  3. package/dist/agentic/guides/modules/agent_orchestrator/index.md +1 -1
  4. package/dist/agentic/guides/modules/ai_assistant/index.md +1 -1
  5. package/dist/agentic/guides/modules/api_docs/index.md +1 -1
  6. package/dist/agentic/guides/modules/api_keys/index.md +1 -1
  7. package/dist/agentic/guides/modules/attachments/index.md +1 -1
  8. package/dist/agentic/guides/modules/audit_logs/index.md +1 -1
  9. package/dist/agentic/guides/modules/auth/index.md +1 -1
  10. package/dist/agentic/guides/modules/availability/index.md +1 -1
  11. package/dist/agentic/guides/modules/backups/index.md +1 -1
  12. package/dist/agentic/guides/modules/business_rules/index.md +1 -1
  13. package/dist/agentic/guides/modules/carrier_inpost/index.md +1 -1
  14. package/dist/agentic/guides/modules/cart/index.md +1 -1
  15. package/dist/agentic/guides/modules/catalog/index.md +1 -1
  16. package/dist/agentic/guides/modules/channel_apns/index.md +1 -1
  17. package/dist/agentic/guides/modules/channel_discord/index.md +1 -1
  18. package/dist/agentic/guides/modules/channel_expo/index.md +1 -1
  19. package/dist/agentic/guides/modules/channel_fcm/index.md +1 -1
  20. package/dist/agentic/guides/modules/channel_gmail/index.md +1 -1
  21. package/dist/agentic/guides/modules/channel_imap/index.md +1 -1
  22. package/dist/agentic/guides/modules/channel_resend/index.md +1 -1
  23. package/dist/agentic/guides/modules/channel_ses/index.md +1 -1
  24. package/dist/agentic/guides/modules/channel_smtp/index.md +1 -1
  25. package/dist/agentic/guides/modules/checkout/index.md +1 -1
  26. package/dist/agentic/guides/modules/communication_channels/index.md +1 -1
  27. package/dist/agentic/guides/modules/configs/index.md +1 -1
  28. package/dist/agentic/guides/modules/content/index.md +1 -1
  29. package/dist/agentic/guides/modules/currencies/index.md +1 -1
  30. package/dist/agentic/guides/modules/customer_accounts/index.md +1 -1
  31. package/dist/agentic/guides/modules/customer_groups/index.md +1 -1
  32. package/dist/agentic/guides/modules/customers/index.md +1 -1
  33. package/dist/agentic/guides/modules/dashboards/index.md +1 -1
  34. package/dist/agentic/guides/modules/data_sync/index.md +1 -1
  35. package/dist/agentic/guides/modules/design_system/index.md +1 -1
  36. package/dist/agentic/guides/modules/devices/index.md +1 -1
  37. package/dist/agentic/guides/modules/dictionaries/index.md +1 -1
  38. package/dist/agentic/guides/modules/directory/index.md +1 -1
  39. package/dist/agentic/guides/modules/documents/index.md +1 -1
  40. package/dist/agentic/guides/modules/ecommerce/index.md +1 -1
  41. package/dist/agentic/guides/modules/entities/index.md +1 -1
  42. package/dist/agentic/guides/modules/eudr/index.md +1 -1
  43. package/dist/agentic/guides/modules/events/index.md +1 -1
  44. package/dist/agentic/guides/modules/feature_toggles/index.md +1 -1
  45. package/dist/agentic/guides/modules/forms/index.md +1 -1
  46. package/dist/agentic/guides/modules/gateway_autopay/index.md +1 -1
  47. package/dist/agentic/guides/modules/gateway_stripe/index.md +1 -1
  48. package/dist/agentic/guides/modules/gateway_tpay/index.md +1 -1
  49. package/dist/agentic/guides/modules/generators/index.md +1 -1
  50. package/dist/agentic/guides/modules/inbox_ops/index.md +1 -1
  51. package/dist/agentic/guides/modules/integrations/index.md +1 -1
  52. package/dist/agentic/guides/modules/messages/index.md +1 -1
  53. package/dist/agentic/guides/modules/notifications/index.md +1 -1
  54. package/dist/agentic/guides/modules/onboarding/index.md +1 -1
  55. package/dist/agentic/guides/modules/payment_gateways/index.md +1 -1
  56. package/dist/agentic/guides/modules/perspectives/index.md +1 -1
  57. package/dist/agentic/guides/modules/phone_calls/index.md +1 -1
  58. package/dist/agentic/guides/modules/planner/index.md +1 -1
  59. package/dist/agentic/guides/modules/portal/index.md +1 -1
  60. package/dist/agentic/guides/modules/progress/index.md +1 -1
  61. package/dist/agentic/guides/modules/promotions/index.md +1 -1
  62. package/dist/agentic/guides/modules/push_notifications/index.md +1 -1
  63. package/dist/agentic/guides/modules/query_index/index.md +1 -1
  64. package/dist/agentic/guides/modules/record_locks/index.md +1 -1
  65. package/dist/agentic/guides/modules/resources/index.md +1 -1
  66. package/dist/agentic/guides/modules/sales/index.md +1 -1
  67. package/dist/agentic/guides/modules/scheduler/index.md +1 -1
  68. package/dist/agentic/guides/modules/search/index.md +1 -1
  69. package/dist/agentic/guides/modules/security/index.md +1 -1
  70. package/dist/agentic/guides/modules/seeds/index.md +1 -1
  71. package/dist/agentic/guides/modules/shipping_carriers/index.md +1 -1
  72. package/dist/agentic/guides/modules/sso/index.md +1 -1
  73. package/dist/agentic/guides/modules/staff/index.md +1 -1
  74. package/dist/agentic/guides/modules/storage_s3/index.md +1 -1
  75. package/dist/agentic/guides/modules/sync_akeneo/index.md +1 -1
  76. package/dist/agentic/guides/modules/sync_excel/index.md +1 -1
  77. package/dist/agentic/guides/modules/system_status_overlays/index.md +1 -1
  78. package/dist/agentic/guides/modules/telemetry/index.md +1 -1
  79. package/dist/agentic/guides/modules/tillio/index.md +1 -1
  80. package/dist/agentic/guides/modules/translations/index.md +1 -1
  81. package/dist/agentic/guides/modules/warranty_claims/index.md +1 -1
  82. package/dist/agentic/guides/modules/webhooks/index.md +1 -1
  83. package/dist/agentic/guides/modules/wms/index.md +1 -1
  84. package/dist/agentic/guides/modules/workflows/events.md +14 -1
  85. package/dist/agentic/guides/modules/workflows/index.md +3 -3
  86. package/dist/agentic/guides/modules/workflows/umes-hosts.md +13 -0
  87. package/dist/agentic/guides/reference-module-facts.json +1 -1
  88. package/dist/agentic/guides/upstream/BACKWARD_COMPATIBILITY.md +8 -0
  89. package/dist/agentic/guides/upstream/manifest.json +2 -2
  90. package/dist/agentic/shared/ai/harness/cases.json +1 -1
  91. package/dist/lib/db/migration-reindex.js +1 -1
  92. package/dist/lib/db/migration-reindex.js.map +2 -2
  93. package/package.json +7 -7
  94. package/src/lib/db/__tests__/migration-reindex.test.ts +1 -1
  95. package/src/lib/db/migration-reindex.ts +2 -2
@@ -1,5 +1,5 @@
1
1
  # sso — module facts (generated, do not edit)
2
- <!-- generated from @open-mercato/enterprise 0.11.1-develop.8567.1.a167594505; core 0.11.1-develop.8567.1.a167594505 — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/enterprise 0.11.1-develop.8572.1.85986dc508; core 0.11.1-develop.8572.1.85986dc508 — 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.8567.1.a167594505; core 0.11.1-develop.8567.1.a167594505 — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/core 0.11.1-develop.8572.1.85986dc508; core 0.11.1-develop.8572.1.85986dc508 — 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.8567.1.a167594505; core 0.11.1-develop.8567.1.a167594505 — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/storage-s3 0.11.1-develop.8572.1.85986dc508; core 0.11.1-develop.8572.1.85986dc508 — 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.8567.1.a167594505; core 0.11.1-develop.8567.1.a167594505 — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/sync-akeneo 0.11.1-develop.8572.1.85986dc508; core 0.11.1-develop.8572.1.85986dc508 — 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.8567.1.a167594505; core 0.11.1-develop.8567.1.a167594505 — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/core 0.11.1-develop.8572.1.85986dc508; core 0.11.1-develop.8572.1.85986dc508 — 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.11.1-develop.8567.1.a167594505; core 0.11.1-develop.8567.1.a167594505 — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/enterprise 0.11.1-develop.8572.1.85986dc508; core 0.11.1-develop.8572.1.85986dc508 — 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.8567.1.a167594505; core 0.11.1-develop.8567.1.a167594505 — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/telemetry 0.11.1-develop.8572.1.85986dc508; core 0.11.1-develop.8572.1.85986dc508 — 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.8567.1.a167594505; core 0.11.1-develop.8567.1.a167594505 — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/tillio 0.11.1-develop.8572.1.85986dc508; core 0.11.1-develop.8572.1.85986dc508 — 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.8567.1.a167594505; core 0.11.1-develop.8567.1.a167594505 — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/core 0.11.1-develop.8572.1.85986dc508; core 0.11.1-develop.8572.1.85986dc508 — R1 staleness stamp -->
3
3
  Source root: node_modules/@open-mercato/core/src/modules/translations
4
4
 
5
5
  ## Sections
@@ -1,5 +1,5 @@
1
1
  # warranty_claims — module facts (generated, do not edit)
2
- <!-- generated from @open-mercato/core 0.11.1-develop.8567.1.a167594505; core 0.11.1-develop.8567.1.a167594505 — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/core 0.11.1-develop.8572.1.85986dc508; core 0.11.1-develop.8572.1.85986dc508 — 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.8567.1.a167594505; core 0.11.1-develop.8567.1.a167594505 — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/webhooks 0.11.1-develop.8572.1.85986dc508; core 0.11.1-develop.8572.1.85986dc508 — 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.8567.1.a167594505; core 0.11.1-develop.8567.1.a167594505 — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/core 0.11.1-develop.8572.1.85986dc508; core 0.11.1-develop.8572.1.85986dc508 — R1 staleness stamp -->
3
3
  Source root: node_modules/@open-mercato/core/src/modules/wms
4
4
 
5
5
  ## Sections
@@ -2,10 +2,23 @@
2
2
 
3
3
  [Back to module index](index.md)
4
4
 
5
- ## Events (32)
5
+ ## Events (45)
6
6
 
7
7
  | ID | Category | Entity | Browser transport | Source |
8
8
  |---|---|---|---|---|
9
+ | approval.completed |lifecycle|—|—|[events.ts](../../../../node_modules/@open-mercato/core/src/modules/workflows/events.ts)|
10
+ | approval.requested |lifecycle|—|—|[events.ts](../../../../node_modules/@open-mercato/core/src/modules/workflows/events.ts)|
11
+ | checkout.started |lifecycle|—|—|[events.ts](../../../../node_modules/@open-mercato/core/src/modules/workflows/events.ts)|
12
+ | fulfillment.ready |lifecycle|—|—|[events.ts](../../../../node_modules/@open-mercato/core/src/modules/workflows/events.ts)|
13
+ | order.approved |lifecycle|—|—|[events.ts](../../../../node_modules/@open-mercato/core/src/modules/workflows/events.ts)|
14
+ | order.created |lifecycle|—|—|[events.ts](../../../../node_modules/@open-mercato/core/src/modules/workflows/events.ts)|
15
+ | oze.install.failed |lifecycle|—|—|[events.ts](../../../../node_modules/@open-mercato/core/src/modules/workflows/events.ts)|
16
+ | oze.quote.sent |lifecycle|—|—|[events.ts](../../../../node_modules/@open-mercato/core/src/modules/workflows/events.ts)|
17
+ | sales.order.approval.approved |lifecycle|—|—|[events.ts](../../../../node_modules/@open-mercato/core/src/modules/workflows/events.ts)|
18
+ | sales.order.approval.rejected |lifecycle|—|—|[events.ts](../../../../node_modules/@open-mercato/core/src/modules/workflows/events.ts)|
19
+ | sales.order.approval.requested |lifecycle|—|—|[events.ts](../../../../node_modules/@open-mercato/core/src/modules/workflows/events.ts)|
20
+ | sales.pipeline.completed |lifecycle|—|—|[events.ts](../../../../node_modules/@open-mercato/core/src/modules/workflows/events.ts)|
21
+ | workflows.task.escalated |lifecycle|—|—|[events.ts](../../../../node_modules/@open-mercato/core/src/modules/workflows/events.ts)|
9
22
  | workflows.definition.created |crud|definition|—|[events.ts](../../../../node_modules/@open-mercato/core/src/modules/workflows/events.ts)|
10
23
  | workflows.definition.updated |crud|definition|—|[events.ts](../../../../node_modules/@open-mercato/core/src/modules/workflows/events.ts)|
11
24
  | workflows.definition.deleted |crud|definition|—|[events.ts](../../../../node_modules/@open-mercato/core/src/modules/workflows/events.ts)|
@@ -1,17 +1,17 @@
1
1
  # workflows — module facts (generated, do not edit)
2
- <!-- generated from @open-mercato/core 0.11.1-develop.8567.1.a167594505; core 0.11.1-develop.8567.1.a167594505 — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/core 0.11.1-develop.8572.1.85986dc508; core 0.11.1-develop.8572.1.85986dc508 — R1 staleness stamp -->
3
3
  Source root: node_modules/@open-mercato/core/src/modules/workflows
4
4
 
5
5
  ## Sections
6
6
 
7
7
  - [Entities](entities.md) — ~2 KB — Generated entities facts for workflows.
8
- - [Events](events.md) — ~5 KB — Generated events facts for workflows.
8
+ - [Events](events.md) — ~7 KB — Generated events facts for workflows.
9
9
  - [ACL features](acl-features.md) — ~4 KB — Generated acl features facts for workflows.
10
10
  - [Backend pages](backend-pages.md) — ~3 KB — Generated backend pages facts for workflows.
11
11
  - [Frontend pages](frontend-pages.md) — ~1 KB — Generated frontend pages facts for workflows.
12
12
  - [DI service tokens](di-service-tokens.md) — ~2 KB — Generated di service tokens facts for workflows.
13
13
  - [Host extension points](host-extension-points.md) — ~1 KB — Generated host extension points facts for workflows.
14
- - [UMES hosts](umes-hosts.md) — ~13 KB — Generated umes hosts facts for workflows.
14
+ - [UMES hosts](umes-hosts.md) — ~15 KB — Generated umes hosts facts for workflows.
15
15
  - [UMES contributions](umes-contributions.md) — ~10 KB — Generated umes contributions facts for workflows.
16
16
  - [Active extension bindings](active-extension-bindings.md) — ~2 KB — Generated active extension bindings facts for workflows.
17
17
  - [Incoming installed contributions](incoming-installed-contributions.md) — ~4 KB — Generated incoming installed contributions facts for workflows.
@@ -43,6 +43,18 @@
43
43
  | workflows:workflow_event_trigger | entity | response-enricher, query-enricher, mutation-guard, entity-extension | tenant-and-organization | STABLE | entities:workflows:workflow_event_trigger |
44
44
  | workflows:workflow_instance | entity | response-enricher, query-enricher, mutation-guard, entity-extension | tenant-and-organization | STABLE | entities:workflows:workflow_instance |
45
45
  | workflows.definition | entity | response-enricher, query-enricher, mutation-guard | tenant-and-organization | STABLE | [api/definitions/[id]/customize/route.ts](../../../../node_modules/@open-mercato/core/src/modules/workflows/api/definitions/[id]/customize/route.ts) |
46
+ | approval.completed | event | async-subscriber, sync-subscriber | tenant-organization-and-audience | STABLE | events:approval.completed |
47
+ | approval.requested | event | async-subscriber, sync-subscriber | tenant-organization-and-audience | STABLE | events:approval.requested |
48
+ | checkout.started | event | async-subscriber, sync-subscriber | tenant-organization-and-audience | STABLE | events:checkout.started |
49
+ | fulfillment.ready | event | async-subscriber, sync-subscriber | tenant-organization-and-audience | STABLE | events:fulfillment.ready |
50
+ | order.approved | event | async-subscriber, sync-subscriber | tenant-organization-and-audience | STABLE | events:order.approved |
51
+ | order.created | event | async-subscriber, sync-subscriber | tenant-organization-and-audience | STABLE | events:order.created |
52
+ | oze.install.failed | event | async-subscriber, sync-subscriber | tenant-organization-and-audience | STABLE | events:oze.install.failed |
53
+ | oze.quote.sent | event | async-subscriber, sync-subscriber | tenant-organization-and-audience | STABLE | events:oze.quote.sent |
54
+ | sales.order.approval.approved | event | async-subscriber, sync-subscriber | tenant-organization-and-audience | STABLE | events:sales.order.approval.approved |
55
+ | sales.order.approval.rejected | event | async-subscriber, sync-subscriber | tenant-organization-and-audience | STABLE | events:sales.order.approval.rejected |
56
+ | sales.order.approval.requested | event | async-subscriber, sync-subscriber | tenant-organization-and-audience | STABLE | events:sales.order.approval.requested |
57
+ | sales.pipeline.completed | event | async-subscriber, sync-subscriber | tenant-organization-and-audience | STABLE | events:sales.pipeline.completed |
46
58
  | workflows.activity.completed | event | async-subscriber, sync-subscriber | tenant-organization-and-audience | STABLE | events:workflows.activity.completed |
47
59
  | workflows.activity.failed | event | async-subscriber, sync-subscriber | tenant-organization-and-audience | STABLE | events:workflows.activity.failed |
48
60
  | workflows.activity.started | event | async-subscriber, sync-subscriber | tenant-organization-and-audience | STABLE | events:workflows.activity.started |
@@ -70,6 +82,7 @@
70
82
  | workflows.join.completed | event | async-subscriber, sync-subscriber | tenant-organization-and-audience | STABLE | events:workflows.join.completed |
71
83
  | workflows.task.assigned | event | async-subscriber, sync-subscriber | tenant-organization-and-audience | STABLE | events:workflows.task.assigned |
72
84
  | workflows.task.deadline_breached | event | async-subscriber, sync-subscriber | tenant-organization-and-audience | STABLE | events:workflows.task.deadline_breached |
85
+ | workflows.task.escalated | event | async-subscriber, sync-subscriber | tenant-organization-and-audience | STABLE | events:workflows.task.escalated |
73
86
  | workflows.task.portal_assigned | event | async-subscriber, sync-subscriber, browser-portal | tenant-organization-and-audience | STABLE | events:workflows.task.portal_assigned |
74
87
  | workflows.task.reminder_due | event | async-subscriber, sync-subscriber | tenant-organization-and-audience | STABLE | events:workflows.task.reminder_due |
75
88
  | workflows.trigger.created | event | async-subscriber, sync-subscriber | tenant-organization-and-audience | STABLE | events:workflows.trigger.created |
@@ -1185,7 +1185,7 @@
1185
1185
  "facts": {
1186
1186
  "title": "Example Module",
1187
1187
  "description": "Demonstrates pages, APIs, entities and DI.",
1188
- "coreVersion": "0.11.1-develop.8567.1.a167594505",
1188
+ "coreVersion": "0.11.1-develop.8572.1.85986dc508",
1189
1189
  "sourcePackage": null,
1190
1190
  "sourceVersion": null,
1191
1191
  "sourceRoot": "src/modules/example",
@@ -739,3 +739,11 @@ STABLE feature-gated APIs return `403` before lookup when organization scope res
739
739
  ## MCP HTTP session token, no fallback (2026-11-14, #5173)
740
740
 
741
741
  STABLE: remove header-only HTTP auth. An opt-in retains the bypass. Named waiver pending. [Migration](UPGRADE_NOTES.md#mcp-http-tool-calls-require-a-per-user-session-token-no-fallback-5173).
742
+
743
+ ## Workflow events (2026-11-20, #9134)
744
+
745
+ STABLE configs: opt-in and instance scope. A bridge retains the bypass. [Upgrade](UPGRADE_NOTES.md).
746
+
747
+ ## 2026-11-25 — MCP Code Mode
748
+
749
+ STABLE `execute`: set direct or use typed tools. A bridge preserves implicit writes. Named waiver pending.
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "version": 1,
3
- "generator": "@open-mercato/cli@0.11.1-develop.8567.1.a167594505",
3
+ "generator": "@open-mercato/cli@0.11.1-develop.8572.1.85986dc508",
4
4
  "files": {
5
5
  "AGENTS.md": "35c948a32e06ca64b4706970c55ec60946412b410938b22478233a2c5c43df56",
6
- "BACKWARD_COMPATIBILITY.md": "bdd2aff277c17a9f7bc66fa491068e19f68a908fd92d5c32cf6f85c96a5a7089"
6
+ "BACKWARD_COMPATIBILITY.md": "ed69699677fdca4dd6056574f0625019dcb397e581e3582ea54aa72f13afe3df"
7
7
  }
8
8
  }
@@ -22127,7 +22127,7 @@
22127
22127
  ],
22128
22128
  "maxContextFiles": 16,
22129
22129
  "maxInitialContextBytes": 73728,
22130
- "maxTotalContextBytes": 356352,
22130
+ "maxTotalContextBytes": 356480,
22131
22131
  "relatedCases": [
22132
22132
  "OMH-030",
22133
22133
  "OMH-088",
@@ -71,7 +71,7 @@ async function requestQueryIndexReindex(entityTypes, deps) {
71
71
  await eventBus.emitEvent(
72
72
  "query_index.reindex",
73
73
  { entityType, allowAllTenants: true, force: false },
74
- { persistent: true }
74
+ { persistent: true, tenantId: null, allowAllTenants: true }
75
75
  );
76
76
  queued.push(entityType);
77
77
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/lib/db/migration-reindex.ts"],
4
- "sourcesContent": ["import fs from 'node:fs'\nimport path from 'node:path'\nimport { pathToFileURL } from 'node:url'\nimport { parseBooleanWithDefault } from '@open-mercato/shared/lib/boolean'\nimport {\n formatQueryIndexRebuildCommands,\n readQueryIndexReindexDeclaration,\n} from '@open-mercato/shared/lib/query/migration-reindex'\n\nconst MIGRATION_FILE_NAME_PATTERN = /^[A-Za-z0-9._-]+$/\nconst MIGRATION_EXTENSIONS = ['.ts', '.js', '.mjs', '.cjs']\n\nexport type AppliedMigration = {\n moduleId: string\n migrationsPath: string\n name: string\n filePath?: string | null\n}\n\nexport type MigrationReindexDeps = {\n importModule: (filePath: string) => Promise<unknown>\n fileExists?: (filePath: string) => boolean\n onWarn?: (message: string) => void\n}\n\nexport function isMigrationReindexEnabled(env: NodeJS.ProcessEnv = process.env): boolean {\n return parseBooleanWithDefault(env.OM_MIGRATION_REINDEX, true)\n}\n\nexport function resolveMigrationFilePath(\n migrationsPath: string,\n migrationName: string,\n knownPath?: string | null,\n fileExists: (filePath: string) => boolean = fs.existsSync,\n): string | null {\n if (knownPath && fileExists(knownPath)) return knownPath\n const stem = path.basename(migrationName).replace(/\\.(ts|js|mjs|cjs)$/i, '')\n if (!stem || !MIGRATION_FILE_NAME_PATTERN.test(stem)) return null\n for (const extension of MIGRATION_EXTENSIONS) {\n const candidate = path.join(migrationsPath, `${stem}${extension}`)\n if (fileExists(candidate)) return candidate\n }\n return null\n}\n\nexport async function collectQueryIndexReindexEntityTypes(\n applied: readonly AppliedMigration[],\n deps: MigrationReindexDeps,\n): Promise<string[]> {\n const fileExists = deps.fileExists ?? fs.existsSync\n const collected: string[] = []\n for (const migration of applied) {\n const filePath = resolveMigrationFilePath(\n migration.migrationsPath,\n migration.name,\n migration.filePath,\n fileExists,\n )\n if (!filePath) continue\n let moduleExports: unknown\n try {\n moduleExports = await deps.importModule(pathToFileURL(path.resolve(filePath)).href)\n } catch (error) {\n deps.onWarn?.(\n `[query_index] Could not read reindex declarations from ${migration.moduleId}/${migration.name}: ${\n error instanceof Error ? error.message : String(error)\n }`,\n )\n continue\n }\n const declared = readQueryIndexReindexDeclaration(moduleExports, (rejected: unknown) => {\n deps.onWarn?.(\n `[query_index] Ignoring an invalid reindex declaration in ${migration.moduleId}/${migration.name}: ${\n JSON.stringify(rejected) ?? String(rejected)\n } is not a \"module:entity\" identifier, so its projection will NOT be rebuilt.`,\n )\n })\n for (const entityType of declared) {\n if (!collected.includes(entityType)) collected.push(entityType)\n }\n }\n return collected\n}\n\nexport function formatManualReindexInstructions(entityTypes: readonly string[]): string {\n const commands = formatQueryIndexRebuildCommands(entityTypes)\n .map((command) => ` ${command}`)\n .join('\\n')\n return [\n '[query_index] Could not queue the reindex requested by the migrations that just ran.',\n ' Their query-index projections still hold pre-migration values until you run:',\n commands,\n ].join('\\n')\n}\n\nexport type QueryIndexReindexEmitter = {\n emitEvent: (event: string, payload: Record<string, unknown>, options?: { persistent?: boolean }) => Promise<void>\n}\n\nexport type QueryIndexReindexContainer = {\n resolve: (name: string) => unknown\n dispose?: () => Promise<void> | void\n}\n\nexport type RequestQueryIndexReindexDeps = {\n createContainer: () => Promise<QueryIndexReindexContainer>\n onInfo?: (message: string) => void\n onWarn?: (message: string) => void\n}\n\n/**\n * Queued rather than executed inline: a rebuild of a large entity type must not hold up a\n * deploy's migration step. `force` stays false so the existing `query_index.reindex`\n * subscriber upserts in place \u2014 a forced run purges the entity's rows first, which would\n * leave the projection empty for the duration of the rebuild.\n */\nexport async function requestQueryIndexReindex(\n entityTypes: readonly string[],\n deps: RequestQueryIndexReindexDeps,\n): Promise<{ requested: string[]; queued: boolean }> {\n if (!entityTypes.length) return { requested: [], queued: false }\n\n let container: QueryIndexReindexContainer | null = null\n const queued: string[] = []\n try {\n container = await deps.createContainer()\n const eventBus = container.resolve('eventBus') as QueryIndexReindexEmitter\n for (const entityType of entityTypes) {\n await eventBus.emitEvent(\n 'query_index.reindex',\n { entityType, allowAllTenants: true, force: false },\n { persistent: true },\n )\n queued.push(entityType)\n }\n deps.onInfo?.(\n `[query_index] Queued a reindex for ${queued.length} entity type(s) touched by data migrations: ${queued.join(', ')}`,\n )\n return { requested: queued, queued: true }\n } catch (error) {\n const unqueued = entityTypes.filter((entityType) => !queued.includes(entityType))\n deps.onWarn?.(\n `${formatManualReindexInstructions(unqueued)}\\n Reason: ${\n error instanceof Error ? error.message : String(error)\n }`,\n )\n return { requested: queued, queued: false }\n } finally {\n if (container && typeof container.dispose === 'function') {\n try {\n await container.dispose()\n } catch {\n // A container that fails to dispose must not turn a successful migration into a failure.\n }\n }\n }\n}\n"],
5
- "mappings": "AAAA,OAAO,QAAQ;AACf,OAAO,UAAU;AACjB,SAAS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OAAO,UAAU,YAAY,YAAY;AACxD,UAAI;AACF,cAAM,UAAU,QAAQ;AAAA,MAC1B,QAAQ;AAAA,MAER;AAAA,IACF;AAAA,EACF;AACF;",
4
+ "sourcesContent": ["import fs from 'node:fs'\nimport path from 'node:path'\nimport { pathToFileURL } from 'node:url'\nimport { parseBooleanWithDefault } from '@open-mercato/shared/lib/boolean'\nimport {\n formatQueryIndexRebuildCommands,\n readQueryIndexReindexDeclaration,\n} from '@open-mercato/shared/lib/query/migration-reindex'\n\nconst MIGRATION_FILE_NAME_PATTERN = /^[A-Za-z0-9._-]+$/\nconst MIGRATION_EXTENSIONS = ['.ts', '.js', '.mjs', '.cjs']\n\nexport type AppliedMigration = {\n moduleId: string\n migrationsPath: string\n name: string\n filePath?: string | null\n}\n\nexport type MigrationReindexDeps = {\n importModule: (filePath: string) => Promise<unknown>\n fileExists?: (filePath: string) => boolean\n onWarn?: (message: string) => void\n}\n\nexport function isMigrationReindexEnabled(env: NodeJS.ProcessEnv = process.env): boolean {\n return parseBooleanWithDefault(env.OM_MIGRATION_REINDEX, true)\n}\n\nexport function resolveMigrationFilePath(\n migrationsPath: string,\n migrationName: string,\n knownPath?: string | null,\n fileExists: (filePath: string) => boolean = fs.existsSync,\n): string | null {\n if (knownPath && fileExists(knownPath)) return knownPath\n const stem = path.basename(migrationName).replace(/\\.(ts|js|mjs|cjs)$/i, '')\n if (!stem || !MIGRATION_FILE_NAME_PATTERN.test(stem)) return null\n for (const extension of MIGRATION_EXTENSIONS) {\n const candidate = path.join(migrationsPath, `${stem}${extension}`)\n if (fileExists(candidate)) return candidate\n }\n return null\n}\n\nexport async function collectQueryIndexReindexEntityTypes(\n applied: readonly AppliedMigration[],\n deps: MigrationReindexDeps,\n): Promise<string[]> {\n const fileExists = deps.fileExists ?? fs.existsSync\n const collected: string[] = []\n for (const migration of applied) {\n const filePath = resolveMigrationFilePath(\n migration.migrationsPath,\n migration.name,\n migration.filePath,\n fileExists,\n )\n if (!filePath) continue\n let moduleExports: unknown\n try {\n moduleExports = await deps.importModule(pathToFileURL(path.resolve(filePath)).href)\n } catch (error) {\n deps.onWarn?.(\n `[query_index] Could not read reindex declarations from ${migration.moduleId}/${migration.name}: ${\n error instanceof Error ? error.message : String(error)\n }`,\n )\n continue\n }\n const declared = readQueryIndexReindexDeclaration(moduleExports, (rejected: unknown) => {\n deps.onWarn?.(\n `[query_index] Ignoring an invalid reindex declaration in ${migration.moduleId}/${migration.name}: ${\n JSON.stringify(rejected) ?? String(rejected)\n } is not a \"module:entity\" identifier, so its projection will NOT be rebuilt.`,\n )\n })\n for (const entityType of declared) {\n if (!collected.includes(entityType)) collected.push(entityType)\n }\n }\n return collected\n}\n\nexport function formatManualReindexInstructions(entityTypes: readonly string[]): string {\n const commands = formatQueryIndexRebuildCommands(entityTypes)\n .map((command) => ` ${command}`)\n .join('\\n')\n return [\n '[query_index] Could not queue the reindex requested by the migrations that just ran.',\n ' Their query-index projections still hold pre-migration values until you run:',\n commands,\n ].join('\\n')\n}\n\nexport type QueryIndexReindexEmitter = {\n emitEvent: (event: string, payload: Record<string, unknown>, options?: { persistent?: boolean; tenantId?: string | null; allowAllTenants?: boolean }) => Promise<void>\n}\n\nexport type QueryIndexReindexContainer = {\n resolve: (name: string) => unknown\n dispose?: () => Promise<void> | void\n}\n\nexport type RequestQueryIndexReindexDeps = {\n createContainer: () => Promise<QueryIndexReindexContainer>\n onInfo?: (message: string) => void\n onWarn?: (message: string) => void\n}\n\n/**\n * Queued rather than executed inline: a rebuild of a large entity type must not hold up a\n * deploy's migration step. `force` stays false so the existing `query_index.reindex`\n * subscriber upserts in place \u2014 a forced run purges the entity's rows first, which would\n * leave the projection empty for the duration of the rebuild.\n */\nexport async function requestQueryIndexReindex(\n entityTypes: readonly string[],\n deps: RequestQueryIndexReindexDeps,\n): Promise<{ requested: string[]; queued: boolean }> {\n if (!entityTypes.length) return { requested: [], queued: false }\n\n let container: QueryIndexReindexContainer | null = null\n const queued: string[] = []\n try {\n container = await deps.createContainer()\n const eventBus = container.resolve('eventBus') as QueryIndexReindexEmitter\n for (const entityType of entityTypes) {\n await eventBus.emitEvent(\n 'query_index.reindex',\n { entityType, allowAllTenants: true, force: false },\n { persistent: true, tenantId: null, allowAllTenants: true },\n )\n queued.push(entityType)\n }\n deps.onInfo?.(\n `[query_index] Queued a reindex for ${queued.length} entity type(s) touched by data migrations: ${queued.join(', ')}`,\n )\n return { requested: queued, queued: true }\n } catch (error) {\n const unqueued = entityTypes.filter((entityType) => !queued.includes(entityType))\n deps.onWarn?.(\n `${formatManualReindexInstructions(unqueued)}\\n Reason: ${\n error instanceof Error ? error.message : String(error)\n }`,\n )\n return { requested: queued, queued: false }\n } finally {\n if (container && typeof container.dispose === 'function') {\n try {\n await container.dispose()\n } catch {\n // A container that fails to dispose must not turn a successful migration into a failure.\n }\n }\n }\n}\n"],
5
+ "mappings": "AAAA,OAAO,QAAQ;AACf,OAAO,UAAU;AACjB,SAAS,qBAAqB;AAC9B,SAAS,+BAA+B;AACxC;AAAA,EACE;AAAA,EACA;AAAA,OACK;AAEP,MAAM,8BAA8B;AACpC,MAAM,uBAAuB,CAAC,OAAO,OAAO,QAAQ,MAAM;AAenD,SAAS,0BAA0B,MAAyB,QAAQ,KAAc;AACvF,SAAO,wBAAwB,IAAI,sBAAsB,IAAI;AAC/D;AAEO,SAAS,yBACd,gBACA,eACA,WACA,aAA4C,GAAG,YAChC;AACf,MAAI,aAAa,WAAW,SAAS,EAAG,QAAO;AAC/C,QAAM,OAAO,KAAK,SAAS,aAAa,EAAE,QAAQ,uBAAuB,EAAE;AAC3E,MAAI,CAAC,QAAQ,CAAC,4BAA4B,KAAK,IAAI,EAAG,QAAO;AAC7D,aAAW,aAAa,sBAAsB;AAC5C,UAAM,YAAY,KAAK,KAAK,gBAAgB,GAAG,IAAI,GAAG,SAAS,EAAE;AACjE,QAAI,WAAW,SAAS,EAAG,QAAO;AAAA,EACpC;AACA,SAAO;AACT;AAEA,eAAsB,oCACpB,SACA,MAC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aAAa;AACpC,YAAM,SAAS;AAAA,QACb;AAAA,QACA,EAAE,YAAY,iBAAiB,MAAM,OAAO,MAAM;AAAA,QAClD,EAAE,YAAY,MAAM,UAAU,MAAM,iBAAiB,KAAK;AAAA,MAC5D;AACA,aAAO,KAAK,UAAU;AAAA,IACxB;AACA,SAAK;AAAA,MACH,sCAAsC,OAAO,MAAM,+CAA+C,OAAO,KAAK,IAAI,CAAC;AAAA,IACrH;AACA,WAAO,EAAE,WAAW,QAAQ,QAAQ,KAAK;AAAA,EAC3C,SAAS,OAAO;AACd,UAAM,WAAW,YAAY,OAAO,CAAC,eAAe,CAAC,OAAO,SAAS,UAAU,CAAC;AAChF,SAAK;AAAA,MACH,GAAG,gCAAgC,QAAQ,CAAC;AAAA,uBAC1C,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK,CACvD;AAAA,IACF;AACA,WAAO,EAAE,WAAW,QAAQ,QAAQ,MAAM;AAAA,EAC5C,UAAE;AACA,QAAI,aAAa,OAAO,UAAU,YAAY,YAAY;AACxD,UAAI;AACF,cAAM,UAAU,QAAQ;AAAA,MAC1B,QAAQ;AAAA,MAER;AAAA,IACF;AAAA,EACF;AACF;",
6
6
  "names": []
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-mercato/cli",
3
- "version": "0.11.1-develop.8567.1.a167594505",
3
+ "version": "0.11.1-develop.8572.1.85986dc508",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -60,10 +60,10 @@
60
60
  "@mikro-orm/decorators": "^7.1.14",
61
61
  "@mikro-orm/migrations": "^7.1.14",
62
62
  "@mikro-orm/postgresql": "^7.1.14",
63
- "@open-mercato/events": "0.11.1-develop.8567.1.a167594505",
64
- "@open-mercato/queue": "0.11.1-develop.8567.1.a167594505",
65
- "@open-mercato/shared": "0.11.1-develop.8567.1.a167594505",
66
- "@open-mercato/telemetry": "0.11.1-develop.8567.1.a167594505",
63
+ "@open-mercato/events": "0.11.1-develop.8572.1.85986dc508",
64
+ "@open-mercato/queue": "0.11.1-develop.8572.1.85986dc508",
65
+ "@open-mercato/shared": "0.11.1-develop.8572.1.85986dc508",
66
+ "@open-mercato/telemetry": "0.11.1-develop.8572.1.85986dc508",
67
67
  "cross-spawn": "^7.0.6",
68
68
  "minisearch": "7.2.0",
69
69
  "pg": "8.23.0",
@@ -75,10 +75,10 @@
75
75
  "typescript-js": "npm:typescript@6.0.3"
76
76
  },
77
77
  "peerDependencies": {
78
- "@open-mercato/shared": "0.11.1-develop.8567.1.a167594505"
78
+ "@open-mercato/shared": "0.11.1-develop.8572.1.85986dc508"
79
79
  },
80
80
  "devDependencies": {
81
- "@open-mercato/shared": "0.11.1-develop.8567.1.a167594505",
81
+ "@open-mercato/shared": "0.11.1-develop.8572.1.85986dc508",
82
82
  "@types/jest": "^30.0.0",
83
83
  "jest": "^30.4.2",
84
84
  "ts-jest": "^29.4.12"
@@ -193,7 +193,7 @@ describe('requestQueryIndexReindex', () => {
193
193
  1,
194
194
  'query_index.reindex',
195
195
  { entityType: 'customers:customer_dictionary_entry', allowAllTenants: true, force: false },
196
- { persistent: true },
196
+ { persistent: true, tenantId: null, allowAllTenants: true },
197
197
  )
198
198
  expect(dispose).toHaveBeenCalled()
199
199
  })
@@ -94,7 +94,7 @@ export function formatManualReindexInstructions(entityTypes: readonly string[]):
94
94
  }
95
95
 
96
96
  export type QueryIndexReindexEmitter = {
97
- emitEvent: (event: string, payload: Record<string, unknown>, options?: { persistent?: boolean }) => Promise<void>
97
+ emitEvent: (event: string, payload: Record<string, unknown>, options?: { persistent?: boolean; tenantId?: string | null; allowAllTenants?: boolean }) => Promise<void>
98
98
  }
99
99
 
100
100
  export type QueryIndexReindexContainer = {
@@ -129,7 +129,7 @@ export async function requestQueryIndexReindex(
129
129
  await eventBus.emitEvent(
130
130
  'query_index.reindex',
131
131
  { entityType, allowAllTenants: true, force: false },
132
- { persistent: true },
132
+ { persistent: true, tenantId: null, allowAllTenants: true },
133
133
  )
134
134
  queued.push(entityType)
135
135
  }