create-mercato-app 0.10.1-develop.7816.1.6c959754cf → 0.10.1-develop.7822.1.5d6a1d00a1

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 (91) hide show
  1. package/dist/agentic/guides/module-facts.json +165 -165
  2. package/dist/agentic/guides/module-facts.v2.json +165 -165
  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/business_rules/index.md +1 -1
  12. package/dist/agentic/guides/modules/carrier_inpost/index.md +1 -1
  13. package/dist/agentic/guides/modules/cart/index.md +1 -1
  14. package/dist/agentic/guides/modules/catalog/index.md +1 -1
  15. package/dist/agentic/guides/modules/channel_apns/index.md +1 -1
  16. package/dist/agentic/guides/modules/channel_discord/index.md +1 -1
  17. package/dist/agentic/guides/modules/channel_expo/index.md +1 -1
  18. package/dist/agentic/guides/modules/channel_fcm/index.md +1 -1
  19. package/dist/agentic/guides/modules/channel_gmail/index.md +1 -1
  20. package/dist/agentic/guides/modules/channel_imap/index.md +1 -1
  21. package/dist/agentic/guides/modules/channel_resend/index.md +1 -1
  22. package/dist/agentic/guides/modules/channel_ses/index.md +1 -1
  23. package/dist/agentic/guides/modules/channel_smtp/index.md +1 -1
  24. package/dist/agentic/guides/modules/checkout/index.md +1 -1
  25. package/dist/agentic/guides/modules/communication_channels/exact-override-targets.md +1 -1
  26. package/dist/agentic/guides/modules/communication_channels/index.md +1 -1
  27. package/dist/agentic/guides/modules/communication_channels/workers.md +1 -1
  28. package/dist/agentic/guides/modules/configs/index.md +1 -1
  29. package/dist/agentic/guides/modules/content/index.md +1 -1
  30. package/dist/agentic/guides/modules/currencies/index.md +1 -1
  31. package/dist/agentic/guides/modules/customer_accounts/index.md +1 -1
  32. package/dist/agentic/guides/modules/customer_groups/index.md +1 -1
  33. package/dist/agentic/guides/modules/customers/index.md +1 -1
  34. package/dist/agentic/guides/modules/dashboards/index.md +1 -1
  35. package/dist/agentic/guides/modules/data_sync/index.md +1 -1
  36. package/dist/agentic/guides/modules/design_system/index.md +1 -1
  37. package/dist/agentic/guides/modules/devices/index.md +1 -1
  38. package/dist/agentic/guides/modules/dictionaries/index.md +1 -1
  39. package/dist/agentic/guides/modules/directory/index.md +1 -1
  40. package/dist/agentic/guides/modules/documents/index.md +1 -1
  41. package/dist/agentic/guides/modules/ecommerce/index.md +1 -1
  42. package/dist/agentic/guides/modules/entities/index.md +1 -1
  43. package/dist/agentic/guides/modules/eudr/index.md +1 -1
  44. package/dist/agentic/guides/modules/events/index.md +1 -1
  45. package/dist/agentic/guides/modules/feature_toggles/index.md +1 -1
  46. package/dist/agentic/guides/modules/forms/index.md +1 -1
  47. package/dist/agentic/guides/modules/gateway_autopay/index.md +1 -1
  48. package/dist/agentic/guides/modules/gateway_stripe/index.md +1 -1
  49. package/dist/agentic/guides/modules/gateway_tpay/index.md +1 -1
  50. package/dist/agentic/guides/modules/generators/index.md +1 -1
  51. package/dist/agentic/guides/modules/inbox_ops/index.md +1 -1
  52. package/dist/agentic/guides/modules/integrations/index.md +1 -1
  53. package/dist/agentic/guides/modules/messages/index.md +1 -1
  54. package/dist/agentic/guides/modules/notifications/index.md +1 -1
  55. package/dist/agentic/guides/modules/onboarding/index.md +1 -1
  56. package/dist/agentic/guides/modules/payment_gateways/index.md +1 -1
  57. package/dist/agentic/guides/modules/perspectives/index.md +1 -1
  58. package/dist/agentic/guides/modules/phone_calls/index.md +1 -1
  59. package/dist/agentic/guides/modules/planner/index.md +1 -1
  60. package/dist/agentic/guides/modules/portal/index.md +1 -1
  61. package/dist/agentic/guides/modules/progress/index.md +1 -1
  62. package/dist/agentic/guides/modules/promotions/index.md +1 -1
  63. package/dist/agentic/guides/modules/push_notifications/index.md +1 -1
  64. package/dist/agentic/guides/modules/query_index/index.md +1 -1
  65. package/dist/agentic/guides/modules/record_locks/index.md +1 -1
  66. package/dist/agentic/guides/modules/resources/index.md +1 -1
  67. package/dist/agentic/guides/modules/sales/index.md +1 -1
  68. package/dist/agentic/guides/modules/scheduler/index.md +1 -1
  69. package/dist/agentic/guides/modules/search/index.md +1 -1
  70. package/dist/agentic/guides/modules/security/index.md +1 -1
  71. package/dist/agentic/guides/modules/seeds/index.md +1 -1
  72. package/dist/agentic/guides/modules/shipping_carriers/index.md +1 -1
  73. package/dist/agentic/guides/modules/sso/index.md +1 -1
  74. package/dist/agentic/guides/modules/staff/index.md +1 -1
  75. package/dist/agentic/guides/modules/storage_s3/index.md +1 -1
  76. package/dist/agentic/guides/modules/sync_akeneo/index.md +1 -1
  77. package/dist/agentic/guides/modules/sync_excel/index.md +1 -1
  78. package/dist/agentic/guides/modules/system_status_overlays/index.md +1 -1
  79. package/dist/agentic/guides/modules/telemetry/index.md +1 -1
  80. package/dist/agentic/guides/modules/tillio/index.md +1 -1
  81. package/dist/agentic/guides/modules/translations/index.md +1 -1
  82. package/dist/agentic/guides/modules/warranty_claims/index.md +1 -1
  83. package/dist/agentic/guides/modules/webhooks/index.md +1 -1
  84. package/dist/agentic/guides/modules/wms/index.md +1 -1
  85. package/dist/agentic/guides/modules/workflows/index.md +1 -1
  86. package/dist/agentic/guides/reference-module-facts.json +1 -1
  87. package/dist/agentic/guides/upstream/BACKWARD_COMPATIBILITY.md +1 -1
  88. package/dist/agentic/guides/upstream/manifest.json +2 -2
  89. package/package.json +3 -3
  90. package/template/package.json.template +1 -1
  91. package/template/src/modules/example/__integration__/TC-EXAMPLE-015-specialized-registries.spec.ts +30 -14
@@ -1,5 +1,5 @@
1
1
  # seeds — module facts (generated, do not edit)
2
- <!-- generated from @open-mercato/core 0.10.1-develop.7816.1.6c959754cf; core 0.10.1-develop.7816.1.6c959754cf — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/core 0.10.1-develop.7822.1.5d6a1d00a1; core 0.10.1-develop.7822.1.5d6a1d00a1 — 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.10.1-develop.7816.1.6c959754cf; core 0.10.1-develop.7816.1.6c959754cf — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/core 0.10.1-develop.7822.1.5d6a1d00a1; core 0.10.1-develop.7822.1.5d6a1d00a1 — 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.10.1-develop.7816.1.6c959754cf; core 0.10.1-develop.7816.1.6c959754cf — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/enterprise 0.10.1-develop.7822.1.5d6a1d00a1; core 0.10.1-develop.7822.1.5d6a1d00a1 — 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.10.1-develop.7816.1.6c959754cf; core 0.10.1-develop.7816.1.6c959754cf — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/core 0.10.1-develop.7822.1.5d6a1d00a1; core 0.10.1-develop.7822.1.5d6a1d00a1 — 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.10.1-develop.7816.1.6c959754cf; core 0.10.1-develop.7816.1.6c959754cf — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/storage-s3 0.10.1-develop.7822.1.5d6a1d00a1; core 0.10.1-develop.7822.1.5d6a1d00a1 — 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.10.1-develop.7816.1.6c959754cf; core 0.10.1-develop.7816.1.6c959754cf — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/sync-akeneo 0.10.1-develop.7822.1.5d6a1d00a1; core 0.10.1-develop.7822.1.5d6a1d00a1 — 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.10.1-develop.7816.1.6c959754cf; core 0.10.1-develop.7816.1.6c959754cf — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/core 0.10.1-develop.7822.1.5d6a1d00a1; core 0.10.1-develop.7822.1.5d6a1d00a1 — 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.10.1-develop.7816.1.6c959754cf; core 0.10.1-develop.7816.1.6c959754cf — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/enterprise 0.10.1-develop.7822.1.5d6a1d00a1; core 0.10.1-develop.7822.1.5d6a1d00a1 — 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.10.1-develop.7816.1.6c959754cf; core 0.10.1-develop.7816.1.6c959754cf — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/telemetry 0.10.1-develop.7822.1.5d6a1d00a1; core 0.10.1-develop.7822.1.5d6a1d00a1 — 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.10.1-develop.7816.1.6c959754cf; core 0.10.1-develop.7816.1.6c959754cf — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/tillio 0.10.1-develop.7822.1.5d6a1d00a1; core 0.10.1-develop.7822.1.5d6a1d00a1 — 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.10.1-develop.7816.1.6c959754cf; core 0.10.1-develop.7816.1.6c959754cf — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/core 0.10.1-develop.7822.1.5d6a1d00a1; core 0.10.1-develop.7822.1.5d6a1d00a1 — 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.10.1-develop.7816.1.6c959754cf; core 0.10.1-develop.7816.1.6c959754cf — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/core 0.10.1-develop.7822.1.5d6a1d00a1; core 0.10.1-develop.7822.1.5d6a1d00a1 — 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.10.1-develop.7816.1.6c959754cf; core 0.10.1-develop.7816.1.6c959754cf — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/webhooks 0.10.1-develop.7822.1.5d6a1d00a1; core 0.10.1-develop.7822.1.5d6a1d00a1 — 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.10.1-develop.7816.1.6c959754cf; core 0.10.1-develop.7816.1.6c959754cf — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/core 0.10.1-develop.7822.1.5d6a1d00a1; core 0.10.1-develop.7822.1.5d6a1d00a1 — 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.10.1-develop.7816.1.6c959754cf; core 0.10.1-develop.7816.1.6c959754cf — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/core 0.10.1-develop.7822.1.5d6a1d00a1; core 0.10.1-develop.7822.1.5d6a1d00a1 — 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.10.1-develop.7816.1.6c959754cf",
1188
+ "coreVersion": "0.10.1-develop.7822.1.5d6a1d00a1",
1189
1189
  "sourcePackage": null,
1190
1190
  "sourceVersion": null,
1191
1191
  "sourceRoot": "src/modules/example",
@@ -99,7 +99,7 @@ Required fields MUST NOT be removed or narrowed. Optional fields may be added fr
99
99
  - `AiAgentOverridesMap` / `AiToolOverridesMap`: `Record<string, AiAgentDefinition | null>` and `Record<string, AiToolDefinition | null>` semantics are STABLE; `null` means disable
100
100
  - `ModuleOverrides`: `overrides.ai.agents`, `overrides.ai.tools`, and `overrides.ai.extensions` shapes are STABLE; other domain keys are reserved by the unified override contract and may be wired additively. `nav` was wired 2026-07-30 under that clause (see [spec](.ai/specs/2026-07-30-nav-group-order-override-domain.md)): `overrides.nav.groupOrder` **prepends** sidebar nav group ids ahead of the built-in `defaultGroupOrder`, and ids it does not name keep their existing position. It is a default applied *beneath* role and per-user sidebar preferences, so an operator's own arrangement still wins. With no override configured, group ordering is byte-identical to before — that guarantee MUST hold for any future change to this domain.
101
101
  - `ModulesRegisteredListener` (`@open-mercato/shared/lib/modules/registry`): added 2026-08-12 as `(modules: Module[]) => void | PromiseLike<void>` (see [spec](.ai/specs/2026-08-12-module-registry-registration-listeners.md)). The listener MUST keep receiving the reconciled module list, and the return type MUST NOT be narrowed back to `void` — a subscriber returning a promise is supported and its rejection is observed and logged rather than escaping into bootstrap.
102
- - `WorkerMeta`: `queue` — MUST NOT remove
102
+ - `WorkerMeta.queue` STABLE; coalescing OPTIONAL/active-no-drop; BullMQ ≥5.72.
103
103
  - `TelemetryProvider` (`@open-mercato/telemetry`): `name`, `supports`, `start`, `shutdown`, `runInSpan`, `activeSpan`, `activeTraceContext`, `inject`, `runInRemoteSpan`, `emitLog`, `recordMetric` — MUST NOT remove. `reportError?()` was added 2026-09-08 as an additive OPTIONAL method (see [spec](.ai/specs/2026-09-08-error-reporting-policy.md)); it **MUST stay optional** — third parties implement this interface and a required method would break every existing provider. The facade calls it as `provider.reportError?.(…)` *in addition to* the span/log/metric path, so a provider that omits it loses nothing.
104
104
  - `ReportErrorContext` (`@open-mercato/telemetry`) and the `reportError` context of `TelemetryRuntime` (`@open-mercato/shared/lib/telemetry/runtime`): `module?` and `attributes?` — MUST NOT remove. `code?: string` was added 2026-09-08 as an additive optional field carrying the enumerated `module.reason` fingerprint the backend groups on; it MUST stay optional so existing callers (the API dispatcher, the CRUD factory) keep compiling and keep emitting exactly what they emit today. `om.errors` gains an `error.code` label only when a caller supplies one — the same attribute name the span and the log record use, so one query works against all three.
105
105
  - `RefreshCredentialsInput` (communication_channels hub): `channelId`, `credentials`, `scope` — MUST NOT remove. `oauthClient?` was added 2026-05-27 as an additive optional field (see [Spec A](.ai/specs/implemented/2026-05-27-email-integration-inbound-reliability-and-threading.md)). The legacy `credentials._client` read path in the Gmail adapter was **removed** (see #3828 / UPGRADE_NOTES) — OAuth client config MUST be passed via `RefreshCredentialsInput.oauthClient`.
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "version": 1,
3
- "generator": "create-mercato-app@0.10.1-develop.7816.1.6c959754cf",
3
+ "generator": "create-mercato-app@0.10.1-develop.7822.1.5d6a1d00a1",
4
4
  "files": {
5
5
  "AGENTS.md": "b27342ee5f61e805ba52703fdb7ec822b030490f734b4d80f48dfd1e05fa4cf5",
6
- "BACKWARD_COMPATIBILITY.md": "ffcf62846c1d7ab3238979c4915203fd13ee183c6b5064b10bd397142d1b2683"
6
+ "BACKWARD_COMPATIBILITY.md": "d47c2fbbf55f4363511576ac9ad009895afb5f4433c5b1527342e2ea1037b701"
7
7
  }
8
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-mercato-app",
3
- "version": "0.10.1-develop.7816.1.6c959754cf",
3
+ "version": "0.10.1-develop.7822.1.5d6a1d00a1",
4
4
  "type": "module",
5
5
  "description": "Create a new Open Mercato application",
6
6
  "main": "./dist/index.js",
@@ -28,8 +28,8 @@
28
28
  "ts-morph": "^28.0.0"
29
29
  },
30
30
  "devDependencies": {
31
- "@open-mercato/cli": "0.10.1-develop.7816.1.6c959754cf",
32
- "@open-mercato/shared": "0.10.1-develop.7816.1.6c959754cf",
31
+ "@open-mercato/cli": "0.10.1-develop.7822.1.5d6a1d00a1",
32
+ "@open-mercato/shared": "0.10.1-develop.7822.1.5d6a1d00a1",
33
33
  "@types/node": "^26.4.0",
34
34
  "esbuild": "^0.28.2",
35
35
  "tsx": "^4.23.12",
@@ -129,7 +129,7 @@
129
129
  "semver": "^7.8.5",
130
130
  "svix": "^1.96.1",
131
131
  "tailwind-merge": "^3.6.0",
132
- "zod": "^4.4.3",
132
+ "zod": "^4.6.6",
133
133
  "@stripe/react-stripe-js": "^6.8.2",
134
134
  "@stripe/stripe-js": "^9.14.0",
135
135
  "@open-mercato/gateway-stripe": "{{PACKAGE_VERSION}}",
@@ -307,6 +307,12 @@ test.describe('TC-EXAMPLE-015: the nine specialized registries have real local c
307
307
  })
308
308
 
309
309
  test('token search and live deterministic pgvector indexing preserve Todo organization scope', async ({ request }) => {
310
+ // A live pgvector index over a freshly created per-suffix table can lag a moment on a
311
+ // loaded CI worker: the list read below resolves immediately, while the similarity search
312
+ // can transiently return [] until the row is queryable. Poll the two search assertions so
313
+ // the test tolerates the brief window without weakening what it proves — mirrors the load
314
+ // hardening the sibling workflow test in this file applies.
315
+ test.slow()
310
316
  const token = await getAuthToken(request, 'admin')
311
317
  const { tenantId, organizationId } = getTokenScope(token)
312
318
  const suffix = randomUUID().replaceAll('-', '').slice(0, 12)
@@ -414,20 +420,30 @@ test.describe('TC-EXAMPLE-015: the nine specialized registries have real local c
414
420
  expect(homeEntries.map((entry) => entry.recordId)).toEqual([todoId])
415
421
  expect(foreignEntries.map((entry) => entry.recordId)).toEqual([foreignTodoId])
416
422
 
417
- const homeHits = await vectorService.search({
418
- query: `TC-EXAMPLE-015 vector ${suffix}`,
419
- tenantId,
420
- organizationId,
421
- limit: 10,
422
- })
423
- const foreignHits = await vectorService.search({
424
- query: `TC-EXAMPLE-015 foreign vector ${suffix}`,
425
- tenantId,
426
- organizationId: foreignOrgId,
427
- limit: 10,
428
- })
429
- expect(homeHits.map((hit) => hit.recordId)).toEqual([todoId])
430
- expect(foreignHits.map((hit) => hit.recordId)).toEqual([foreignTodoId])
423
+ await expect.poll(
424
+ () =>
425
+ vectorService
426
+ .search({
427
+ query: `TC-EXAMPLE-015 vector ${suffix}`,
428
+ tenantId,
429
+ organizationId,
430
+ limit: 10,
431
+ })
432
+ .then((homeHits) => homeHits.map((hit) => hit.recordId)),
433
+ { timeout: 30_000, message: 'live deterministic pgvector indexing should surface the home Todo' },
434
+ ).toEqual([todoId])
435
+ await expect.poll(
436
+ () =>
437
+ vectorService
438
+ .search({
439
+ query: `TC-EXAMPLE-015 foreign vector ${suffix}`,
440
+ tenantId,
441
+ organizationId: foreignOrgId,
442
+ limit: 10,
443
+ })
444
+ .then((foreignHits) => foreignHits.map((hit) => hit.recordId)),
445
+ { timeout: 30_000, message: 'live deterministic pgvector indexing should surface the foreign Todo' },
446
+ ).toEqual([foreignTodoId])
431
447
  expect(observedVectorQueryScopes).toEqual(expect.arrayContaining([
432
448
  organizationId,
433
449
  foreignOrgId,