@open-mercato/cli 0.9.1-develop.7573.1.d0ccc51d5b → 0.9.1-develop.7574.1.837288eec1

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 (89) hide show
  1. package/dist/agentic/guides/module-facts.json +212 -168
  2. package/dist/agentic/guides/module-facts.v2.json +212 -168
  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/catalog/index.md +1 -1
  13. package/dist/agentic/guides/modules/channel_apns/index.md +1 -1
  14. package/dist/agentic/guides/modules/channel_discord/index.md +1 -1
  15. package/dist/agentic/guides/modules/channel_expo/index.md +1 -1
  16. package/dist/agentic/guides/modules/channel_fcm/index.md +1 -1
  17. package/dist/agentic/guides/modules/channel_gmail/index.md +1 -1
  18. package/dist/agentic/guides/modules/channel_imap/index.md +1 -1
  19. package/dist/agentic/guides/modules/channel_resend/index.md +1 -1
  20. package/dist/agentic/guides/modules/channel_ses/index.md +1 -1
  21. package/dist/agentic/guides/modules/checkout/index.md +1 -1
  22. package/dist/agentic/guides/modules/communication_channels/index.md +1 -1
  23. package/dist/agentic/guides/modules/configs/index.md +1 -1
  24. package/dist/agentic/guides/modules/content/index.md +1 -1
  25. package/dist/agentic/guides/modules/currencies/index.md +1 -1
  26. package/dist/agentic/guides/modules/customer_accounts/index.md +1 -1
  27. package/dist/agentic/guides/modules/customer_groups/index.md +1 -1
  28. package/dist/agentic/guides/modules/customers/index.md +1 -1
  29. package/dist/agentic/guides/modules/dashboards/index.md +1 -1
  30. package/dist/agentic/guides/modules/data_sync/index.md +1 -1
  31. package/dist/agentic/guides/modules/design_system/index.md +1 -1
  32. package/dist/agentic/guides/modules/devices/index.md +1 -1
  33. package/dist/agentic/guides/modules/dictionaries/index.md +1 -1
  34. package/dist/agentic/guides/modules/directory/index.md +1 -1
  35. package/dist/agentic/guides/modules/documents/index.md +1 -1
  36. package/dist/agentic/guides/modules/ecommerce/index.md +1 -1
  37. package/dist/agentic/guides/modules/entities/index.md +1 -1
  38. package/dist/agentic/guides/modules/eudr/index.md +1 -1
  39. package/dist/agentic/guides/modules/events/index.md +1 -1
  40. package/dist/agentic/guides/modules/feature_toggles/index.md +1 -1
  41. package/dist/agentic/guides/modules/forms/index.md +1 -1
  42. package/dist/agentic/guides/modules/gateway_stripe/index.md +1 -1
  43. package/dist/agentic/guides/modules/gateway_tpay/index.md +1 -1
  44. package/dist/agentic/guides/modules/generators/index.md +1 -1
  45. package/dist/agentic/guides/modules/inbox_ops/index.md +1 -1
  46. package/dist/agentic/guides/modules/integrations/di-registrations-rich.md +9 -8
  47. package/dist/agentic/guides/modules/integrations/di-service-tokens.md +5 -4
  48. package/dist/agentic/guides/modules/integrations/exact-override-targets.md +9 -8
  49. package/dist/agentic/guides/modules/integrations/index.md +1 -1
  50. package/dist/agentic/guides/modules/messages/index.md +1 -1
  51. package/dist/agentic/guides/modules/notifications/index.md +1 -1
  52. package/dist/agentic/guides/modules/onboarding/index.md +1 -1
  53. package/dist/agentic/guides/modules/payment_gateways/index.md +1 -1
  54. package/dist/agentic/guides/modules/perspectives/index.md +1 -1
  55. package/dist/agentic/guides/modules/phone_calls/index.md +1 -1
  56. package/dist/agentic/guides/modules/planner/index.md +1 -1
  57. package/dist/agentic/guides/modules/portal/index.md +1 -1
  58. package/dist/agentic/guides/modules/progress/index.md +1 -1
  59. package/dist/agentic/guides/modules/push_notifications/index.md +1 -1
  60. package/dist/agentic/guides/modules/query_index/index.md +1 -1
  61. package/dist/agentic/guides/modules/record_locks/index.md +1 -1
  62. package/dist/agentic/guides/modules/resources/index.md +1 -1
  63. package/dist/agentic/guides/modules/sales/index.md +1 -1
  64. package/dist/agentic/guides/modules/scheduler/index.md +1 -1
  65. package/dist/agentic/guides/modules/search/index.md +1 -1
  66. package/dist/agentic/guides/modules/security/index.md +1 -1
  67. package/dist/agentic/guides/modules/seeds/index.md +1 -1
  68. package/dist/agentic/guides/modules/shipping_carriers/index.md +1 -1
  69. package/dist/agentic/guides/modules/sso/index.md +1 -1
  70. package/dist/agentic/guides/modules/staff/index.md +1 -1
  71. package/dist/agentic/guides/modules/storage_s3/index.md +1 -1
  72. package/dist/agentic/guides/modules/sync_akeneo/index.md +1 -1
  73. package/dist/agentic/guides/modules/sync_excel/index.md +1 -1
  74. package/dist/agentic/guides/modules/system_status_overlays/index.md +1 -1
  75. package/dist/agentic/guides/modules/telemetry/index.md +1 -1
  76. package/dist/agentic/guides/modules/tillio/index.md +1 -1
  77. package/dist/agentic/guides/modules/translations/index.md +1 -1
  78. package/dist/agentic/guides/modules/warranty_claims/index.md +1 -1
  79. package/dist/agentic/guides/modules/webhooks/index.md +1 -1
  80. package/dist/agentic/guides/modules/wms/index.md +1 -1
  81. package/dist/agentic/guides/modules/workflows/index.md +1 -1
  82. package/dist/agentic/guides/reference-module-facts.json +1 -1
  83. package/dist/agentic/guides/upstream/BACKWARD_COMPATIBILITY.md +26 -0
  84. package/dist/agentic/guides/upstream/manifest.json +2 -2
  85. package/dist/agentic/shared/ai/harness/cases.json +5 -5
  86. package/dist/lib/testing/integration.js +2 -0
  87. package/dist/lib/testing/integration.js.map +2 -2
  88. package/package.json +7 -7
  89. package/src/lib/testing/integration.ts +2 -0
@@ -1,5 +1,5 @@
1
1
  # search — module facts (generated, do not edit)
2
- <!-- generated from @open-mercato/search 0.9.1-develop.7573.1.d0ccc51d5b; core 0.9.1-develop.7573.1.d0ccc51d5b — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/search 0.9.1-develop.7574.1.837288eec1; core 0.9.1-develop.7574.1.837288eec1 — 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.9.1-develop.7573.1.d0ccc51d5b; core 0.9.1-develop.7573.1.d0ccc51d5b — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/enterprise 0.9.1-develop.7574.1.837288eec1; core 0.9.1-develop.7574.1.837288eec1 — R1 staleness stamp -->
3
3
  Source root: node_modules/@open-mercato/enterprise/src/modules/security
4
4
 
5
5
  ## Sections
@@ -1,5 +1,5 @@
1
1
  # seeds — module facts (generated, do not edit)
2
- <!-- generated from @open-mercato/core 0.9.1-develop.7573.1.d0ccc51d5b; core 0.9.1-develop.7573.1.d0ccc51d5b — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/core 0.9.1-develop.7574.1.837288eec1; core 0.9.1-develop.7574.1.837288eec1 — 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.9.1-develop.7573.1.d0ccc51d5b; core 0.9.1-develop.7573.1.d0ccc51d5b — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/core 0.9.1-develop.7574.1.837288eec1; core 0.9.1-develop.7574.1.837288eec1 — 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.9.1-develop.7573.1.d0ccc51d5b; core 0.9.1-develop.7573.1.d0ccc51d5b — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/enterprise 0.9.1-develop.7574.1.837288eec1; core 0.9.1-develop.7574.1.837288eec1 — 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.9.1-develop.7573.1.d0ccc51d5b; core 0.9.1-develop.7573.1.d0ccc51d5b — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/core 0.9.1-develop.7574.1.837288eec1; core 0.9.1-develop.7574.1.837288eec1 — 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.9.1-develop.7573.1.d0ccc51d5b; core 0.9.1-develop.7573.1.d0ccc51d5b — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/storage-s3 0.9.1-develop.7574.1.837288eec1; core 0.9.1-develop.7574.1.837288eec1 — 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.9.1-develop.7573.1.d0ccc51d5b; core 0.9.1-develop.7573.1.d0ccc51d5b — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/sync-akeneo 0.9.1-develop.7574.1.837288eec1; core 0.9.1-develop.7574.1.837288eec1 — 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.9.1-develop.7573.1.d0ccc51d5b; core 0.9.1-develop.7573.1.d0ccc51d5b — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/core 0.9.1-develop.7574.1.837288eec1; core 0.9.1-develop.7574.1.837288eec1 — 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.9.1-develop.7573.1.d0ccc51d5b; core 0.9.1-develop.7573.1.d0ccc51d5b — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/enterprise 0.9.1-develop.7574.1.837288eec1; core 0.9.1-develop.7574.1.837288eec1 — 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.9.1-develop.7573.1.d0ccc51d5b; core 0.9.1-develop.7573.1.d0ccc51d5b — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/telemetry 0.9.1-develop.7574.1.837288eec1; core 0.9.1-develop.7574.1.837288eec1 — 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.9.1-develop.7573.1.d0ccc51d5b; core 0.9.1-develop.7573.1.d0ccc51d5b — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/tillio 0.9.1-develop.7574.1.837288eec1; core 0.9.1-develop.7574.1.837288eec1 — 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.9.1-develop.7573.1.d0ccc51d5b; core 0.9.1-develop.7573.1.d0ccc51d5b — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/core 0.9.1-develop.7574.1.837288eec1; core 0.9.1-develop.7574.1.837288eec1 — 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.9.1-develop.7573.1.d0ccc51d5b; core 0.9.1-develop.7573.1.d0ccc51d5b — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/core 0.9.1-develop.7574.1.837288eec1; core 0.9.1-develop.7574.1.837288eec1 — 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.9.1-develop.7573.1.d0ccc51d5b; core 0.9.1-develop.7573.1.d0ccc51d5b — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/webhooks 0.9.1-develop.7574.1.837288eec1; core 0.9.1-develop.7574.1.837288eec1 — 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.9.1-develop.7573.1.d0ccc51d5b; core 0.9.1-develop.7573.1.d0ccc51d5b — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/core 0.9.1-develop.7574.1.837288eec1; core 0.9.1-develop.7574.1.837288eec1 — 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.9.1-develop.7573.1.d0ccc51d5b; core 0.9.1-develop.7573.1.d0ccc51d5b — R1 staleness stamp -->
2
+ <!-- generated from @open-mercato/core 0.9.1-develop.7574.1.837288eec1; core 0.9.1-develop.7574.1.837288eec1 — 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.9.1-develop.7573.1.d0ccc51d5b",
1188
+ "coreVersion": "0.9.1-develop.7574.1.837288eec1",
1189
1189
  "sourcePackage": null,
1190
1190
  "sourceVersion": null,
1191
1191
  "sourceRoot": "src/modules/example",
@@ -576,3 +576,29 @@ Spec: [`.ai/specs/2026-09-08-error-reporting-policy.md`](.ai/specs/2026-09-08-er
576
576
  ## Discord AI Proposals (2026-10-13)
577
577
 
578
578
  [Waiver](UPGRADE_NOTES.md#discord-proposals)
579
+
580
+ ---
581
+
582
+ ## OAuth2 Grant Lifecycle Core (2026-10-12)
583
+
584
+ [`.ai/specs/2026-10-01-oauth2-grant-lifecycle-core.md`](.ai/specs/2026-10-01-oauth2-grant-lifecycle-core.md) (parent: [`.ai/specs/2026-09-27-app-spec-oauth2-grant-lifecycle.md`](.ai/specs/2026-09-27-app-spec-oauth2-grant-lifecycle.md) §10.1) adds a tenant-level OAuth2 grant core to `integrations` that no existing integration uses yet. **All changes are additive** except the reserved `__oauth_grant` suffix, an intentional security narrowing that no first-party integration or bundle id hits. Developer guide: `apps/docs/docs/framework/modules/integrations-oauth-grants.mdx`.
585
+
586
+ | Surface | Change | Classification |
587
+ |---------|--------|----------------|
588
+ | Import paths (§4) | New `@open-mercato/shared/lib/db/advisoryLock` (explicit `exports` entry); `@open-mercato/core/modules/integrations/lib/oauth/{token-endpoint,pkce,authorization,redirect,resource-challenge,descriptor,grant-service,health}` and `…/lib/oauth/testing/fakeAuthorizationServer` — exactly these files, no directory index. Every path, plus `…/lib/credentials-service`, `…/lib/log-service` and the hub's `…/communication_channels/lib/oauth-state`, is verified against the built `dist` by `scripts/check-oauth-publish-shape.mjs` in CI | ✓ ADDITIVE (new import paths) |
589
+ | Type definitions (§2) | New `OAuthProviderDescriptor`, `OAuthGrantOwner`, `OAuthTokenEndpointResponse`, `OAuthClientAuthMethod`, the grant-service result and inspection types (the inspection carries no token), `AdvisoryLockOptions` (`waitDeadlineMs`, `maxConcurrentHolders`); the `FakeAuthorizationServer` handle with its options, `FakeInjection` and `FakeRotationMode`; error classes `OAuthGrantError`, `OAuthDescriptorError`, `AdvisoryLockUnavailableError` (`reason: AdvisoryLockUnavailableReason` = `'deadline' \| 'transient_db' \| 'commit_unknown'`); closed unions (`OAuthTokenFailure`, `OAuthConnectFailure`, `OAuthConnectionState`, `OAuthUnavailableReason`, …) that are additive-only, so consumers keep a default branch. `IntegrationOAuthGrantService` is a type to call, not to implement: adding a method is additive. Optional `IntegrationDetailPageConfig.connectTabId`. `CredentialsService`, `IntegrationLogService` and `IntegrationCredentialFieldOauth` are unchanged apart from `@internal` options | ✓ ADDITIVE (new types; optional fields) |
590
+ | Function signatures (§3) | New `withAdvisoryXactLock`, `createPkcePair`, `buildAuthorizationUrl`, `exchangeAuthorizationCode`, `resolveOAuthRedirectUri`, `classifyResourceChallenge`, `mapInspectionToHealth` with `OAUTH_HEALTH_CODES`, `startFakeAuthorizationServer` with the methods of the handle it returns (`issueAuthorizationCode`, `inject`, `revokeAuthorization`, `reset`, `counters`, `requests`, `issuedTokens`, `close`) and the `IntegrationOAuthGrantService` methods | ✓ ADDITIVE (new functions) |
591
+ | DI service names (§9) | New scoped `integrationOAuthGrantService`. Contract note: inside the grant lock the service builds its credentials and log services from the core factories, so DI overrides of `integrationCredentialsService` don't apply to grant rows | ✓ ADDITIVE |
592
+ | API routes (§7) | `GET /api/integrations/:id` gains the nullable `oauthGrant: { status: 'active' \| 'invalidated' \| 'unavailable' } \| null` (always present; `null` without a live grant) and returns `integration.detailPage.connectTabId` | ✓ ADDITIVE (response fields) |
593
+ | Widget injection context (§6) | Spot IDs unchanged; the `integrations.detail.v1` context gains the optional `detail.oauthGrant` and `integration.detailPage.connectTabId` | ✓ ADDITIVE (context fields) |
594
+ | Log and health codes | Log codes `integrations.oauth_*` and the `OAUTH_HEALTH_CODES` values with `OAuthHealthCode` | ✓ ADDITIVE; STABLE once released, additive-only |
595
+ | Persisted formats | The grant row id `<integrationId>__oauth_grant`; the blob `version`; the lock key `oauth_grant:<integrationId>:<tenantId>:<organizationId>:<userId or ->` and its mapping `pg_try_advisory_xact_lock(hashtextextended(key, 0))`; `resourceKind` `integrations.oauth_grant`; the `Symbol.for` brands `@open-mercato/shared:AdvisoryLockUnavailableError`, `@open-mercato/core:OAuthGrantError` and `@open-mercato/core:OAuthDescriptorError` that keep `instanceof` reliable across module copies. The codes `integrations.oauth_disconnected` and `integrations.oauth_revocation_{pending,confirmed,failed,unsupported,skipped_reconnected,skipped_invalidated}` with their `disconnectId` payload key are read back to derive `lastDisconnect`; the per-process holder-slot registry `globalThis.__openMercatoAdvisoryLockSlots__` is shared by every `@open-mercato/shared` instance | The lock key, its mapping and the brand keys FROZEN for every existing Grant Owner (processes of two versions must exclude each other during a rolling deploy); everything else ADDITIVE-ONLY |
596
+ | External dependency | Provider routes import the hub-owned `@open-mercato/core/modules/communication_channels/lib/oauth-state`: `createOAuthState`, `verifyOAuthState`, `consumeOAuthStateOnce`, `OAuthStatePayload`, `OAuthStateConsumeStore` and `OAuthStateError` (its `code` values additive-only, `replay` included) are documented as STABLE; the path's other exports are not covered | ✓ No change to the path (now a documented STABLE import) |
597
+ | Testing contract | With `OM_ENABLE_TEST_OAUTH_GRANTS` on (or outside production), a descriptor may use `http:` endpoints on a loopback host (`localhost`, `127.0.0.1`, `[::1]`), so a provider's test seam can point its descriptor at an in-process fake; otherwise endpoints are `https:` | STABLE; the flag itself enables nothing else for providers |
598
+ | API routes (§7): `GET` / `PUT /api/integrations/:id/credentials` | Answer 404 for any id ending in `__oauth_grant`, also when an integration with that id is registered (I4: grant secrets never reach the admin credentials API) | ⚠️ Intentional security narrowing only (no first-party integration id ends in the suffix) |
599
+ | Function behaviour (§3, §9): `resolve()` and `resolveUpdatedAt()` of `createCredentialsService` / DI `integrationCredentialsService` | Don't fall through to a `bundleId` ending in `__oauth_grant`, for every caller (integration list and detail GETs, the credentials route, the health service, data_sync); the grant service's Client Configuration read skips it too | ⚠️ Intentional security narrowing only (I4, I7; no first-party bundle id ends in the suffix) |
600
+ | Explicitly not covered (`@internal`) | `createIntegrationOAuthGrantService`, `IntegrationOAuthGrantServiceDeps`, `requestTokenEndpoint`, `revokeToken`, `OAuthTokenEndpointError` with `OAuthTokenEndpointErrorKind` and its brand, `OAUTH_RESPONSE_MAX_BYTES`, `OAuthClientCredentials`, `OAuthInvalidatedReason`, `oauthProviderDescriptorSchema`, `resolveOAuthProviderDescriptor`, `AdvisoryLockOptions.onWait` with `AdvisoryLockWaitResult`, `isTransientLockDbError` (`@open-mercato/shared/lib/db/pg-errors`), the third parameter `{ kms }` of `createCredentialsService`, `CredentialsWriteOptions.ensureEncryptionMap`, `eraseIntegrationCredentials`, `readCredentialRowLayered`, `LayeredCredentialRead`, `isReservedOAuthGrantId`, `bundleFallthroughId`, `findLatestIntegrationLogsByCodes`, and every export of `lib/oauth/{grant-blob,pin-tenant-dek,error-brand}` | Not a contract surface; may change without the deprecation protocol |
601
+ | Not contracts | The test-only route `POST /api/integrations/test-oauth-grants`, its helper `@open-mercato/core/helpers/integration/oauthGrantTestRoute`, the flag `OM_ENABLE_TEST_OAUTH_GRANTS` (apart from the testing contract above) and the `test_oauth_grant` integration (like `test-seed`) | n/a |
602
+ | Event IDs, database schema, ACL features, notification types, AI agent and tool IDs, CLI commands | No change | ✓ n/a |
603
+
604
+ **Migration path for existing modules**: none for first-party code. Third-party modules must not register an integration or bundle id that ends in `__oauth_grant` (see `UPGRADE_NOTES.md`).
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "version": 1,
3
- "generator": "@open-mercato/cli@0.9.1-develop.7573.1.d0ccc51d5b",
3
+ "generator": "@open-mercato/cli@0.9.1-develop.7574.1.837288eec1",
4
4
  "files": {
5
5
  "AGENTS.md": "9fdaca247f55c64f5966cc103265cfb03233e0532f58f14aff538ae18aa3555d",
6
- "BACKWARD_COMPATIBILITY.md": "2b7da9de33f49726ef47c9b851b18097317d33e8f3338780ab743735964353ba"
6
+ "BACKWARD_COMPATIBILITY.md": "2f5ef2aae8b90e700dc81316e3d6900a033ecd60be4b53d419f1560919e27821"
7
7
  }
8
8
  }
@@ -520,7 +520,7 @@
520
520
  ],
521
521
  "maxContextFiles": 8,
522
522
  "maxInitialContextBytes": 65536,
523
- "maxTotalContextBytes": 114688,
523
+ "maxTotalContextBytes": 122880,
524
524
  "relatedCases": [
525
525
  "OMH-008"
526
526
  ]
@@ -1736,7 +1736,7 @@
1736
1736
  ],
1737
1737
  "maxContextFiles": 6,
1738
1738
  "maxInitialContextBytes": 65536,
1739
- "maxTotalContextBytes": 102400,
1739
+ "maxTotalContextBytes": 110592,
1740
1740
  "relatedCases": [
1741
1741
  "OMH-023"
1742
1742
  ]
@@ -2431,7 +2431,7 @@
2431
2431
  ],
2432
2432
  "maxContextFiles": 6,
2433
2433
  "maxInitialContextBytes": 49152,
2434
- "maxTotalContextBytes": 118784,
2434
+ "maxTotalContextBytes": 126976,
2435
2435
  "relatedCases": [
2436
2436
  "OMH-031"
2437
2437
  ]
@@ -4553,7 +4553,7 @@
4553
4553
  ],
4554
4554
  "maxContextFiles": 5,
4555
4555
  "maxInitialContextBytes": 40960,
4556
- "maxTotalContextBytes": 106496,
4556
+ "maxTotalContextBytes": 114688,
4557
4557
  "relatedCases": [
4558
4558
  "OMH-058"
4559
4559
  ],
@@ -5144,7 +5144,7 @@
5144
5144
  ],
5145
5145
  "maxContextFiles": 8,
5146
5146
  "maxInitialContextBytes": 65536,
5147
- "maxTotalContextBytes": 114688,
5147
+ "maxTotalContextBytes": 122880,
5148
5148
  "relatedCases": [
5149
5149
  "OMH-065"
5150
5150
  ]
@@ -1611,6 +1611,7 @@ function buildReusableEnvironment(baseUrl, databaseUrl, queueBaseDir, captureScr
1611
1611
  OM_TEST_BROWSER_TELEMETRY_MODE: "opt-in",
1612
1612
  OM_DISABLE_EMAIL_DELIVERY: "0",
1613
1613
  OM_ENABLE_TEST_CHANNEL_SEEDING: "true",
1614
+ OM_ENABLE_TEST_OAUTH_GRANTS: "true",
1614
1615
  OM_ENABLE_TEST_EMAIL_CAPTURE_DELIVERY: "true",
1615
1616
  OM_TEST_SYSTEM_EMAIL_CAPTURE_PATH: EPHEMERAL_SYSTEM_EMAIL_CAPTURE_PATH,
1616
1617
  OM_TEST_EMAIL_CAPTURE_ACCESS_TOKEN: TEST_EMAIL_CAPTURE_ACCESS_TOKEN,
@@ -2833,6 +2834,7 @@ async function startEphemeralEnvironment(options) {
2833
2834
  // also carries the `om_test_browser_telemetry=on` cookie, which only TC-TELEMETRY-002 sets.
2834
2835
  OM_TEST_BROWSER_TELEMETRY_MODE: "opt-in",
2835
2836
  OM_ENABLE_TEST_CHANNEL_SEEDING: "true",
2837
+ OM_ENABLE_TEST_OAUTH_GRANTS: "true",
2836
2838
  OM_ENABLE_TEST_EMAIL_CAPTURE_DELIVERY: "true",
2837
2839
  OM_TEST_SYSTEM_EMAIL_CAPTURE_PATH: EPHEMERAL_SYSTEM_EMAIL_CAPTURE_PATH,
2838
2840
  OM_TEST_EMAIL_CAPTURE_ACCESS_TOKEN: TEST_EMAIL_CAPTURE_ACCESS_TOKEN,