@open-mercato/cli 0.10.1-develop.7728.1.6b52eb2849 → 0.10.1-develop.7741.1.61a2652671
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 +3 -1
- package/dist/agentic/guides/module-facts.json +540 -158
- package/dist/agentic/guides/module-facts.v2.json +540 -158
- 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/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/acl-features.md +12 -0
- package/dist/agentic/guides/modules/gateway_autopay/cli-commands.md +12 -0
- package/dist/agentic/guides/modules/gateway_autopay/contribution-resolutions.md +12 -0
- package/dist/agentic/guides/modules/gateway_autopay/di-registrations-rich.md +11 -0
- package/dist/agentic/guides/modules/gateway_autopay/exact-override-targets.md +17 -0
- package/dist/agentic/guides/modules/gateway_autopay/index.md +19 -0
- package/dist/agentic/guides/modules/gateway_autopay/owned-contract-module-metadata.md +11 -0
- package/dist/agentic/guides/modules/gateway_autopay/setup.md +11 -0
- package/dist/agentic/guides/modules/gateway_autopay/umes-contributions.md +12 -0
- 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 +1 -1
- 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 +105 -99
- package/dist/agentic/guides/upstream/manifest.json +2 -2
- package/package.json +7 -7
|
@@ -32,39 +32,39 @@ Downstream authors get no bridge in this case, so the compensating obligation is
|
|
|
32
32
|
|
|
33
33
|
The following file names, their expected export names, and their role in module auto-discovery MUST NOT change. New convention files may be added, but existing ones are immutable.
|
|
34
34
|
|
|
35
|
-
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
35
|
+
|Convention File|Required Export|Contract|
|
|
36
|
+
|---|---|---|
|
|
37
|
+
|`index.ts`|`metadata: ModuleInfo`|MUST NOT rename export or change `ModuleInfo` shape in a breaking way|
|
|
38
|
+
|`acl.ts`|`features: Array<{id,title,module}>`|MUST NOT change array item shape; may add optional fields|
|
|
39
|
+
|`setup.ts`|`setup: ModuleSetupConfig`|MUST NOT remove hooks (`onTenantCreated`, `seedDefaults`, `seedExamples`, `defaultRoleFeatures`); may add optional hooks|
|
|
40
|
+
|`runtime.ts`|`runtime: ModuleRuntime` (or default export)|MUST NOT change `ModuleRuntime` required members (`start`) or the `ModuleRuntimeContext` / `ModuleRuntimeHandle` shape; may add optional fields and additional `ModuleRuntimeRole` values|
|
|
41
|
+
|`ce.ts`|`entities: CustomEntitySpec[]`|MUST NOT change `CustomEntitySpec` required fields; may add optional fields|
|
|
42
|
+
|`search.ts`|`searchConfig: SearchModuleConfig`|MUST NOT change `SearchEntityConfig` required fields; may add optional fields|
|
|
43
|
+
|`events.ts`|`eventsConfig` via `createModuleEvents()`|MUST NOT change `EventDefinition` required fields (`id`, `label`); may add optional fields|
|
|
44
|
+
|`extension-points.ts`|`extensionPoints: ModuleExtensionPoints`|New additive convention; declared exact/pattern host IDs, aliases, fallbacks, family/capability semantics, and bound call-site meaning MUST NOT change incompatibly|
|
|
45
|
+
|`translations.ts`|`translatableFields`|MUST NOT change record shape|
|
|
46
|
+
|`notifications.ts`|`notificationTypes: NotificationTypeDefinition[]`|MUST NOT change required fields; may add optional fields|
|
|
47
|
+
|`notifications.client.ts`|—|MUST NOT change renderer props contract|
|
|
48
|
+
|`ai-agents.ts`|`aiAgents: AiAgentDefinition[]`|MUST NOT change `AiAgentDefinition` required fields; optional sibling exports `aiAgentOverrides` and `aiAgentExtensions` are stable|
|
|
49
|
+
|`ai-tools.ts`|`aiTools: AiToolDefinition[]`|MUST NOT change `AiToolDefinition` / inherited `McpToolDefinition` required fields; optional sibling export `aiToolOverrides` is stable|
|
|
50
|
+
|`di.ts`|`register(container)`|MUST NOT change function signature|
|
|
51
|
+
|`cli.ts`|default export|MUST NOT change expected signature|
|
|
52
|
+
|`data/entities.ts`|Entity class exports|See Database Schema rules below|
|
|
53
|
+
|`data/validators.ts`|Zod schema exports|MUST NOT remove or narrow existing schemas|
|
|
54
|
+
|`data/extensions.ts`|`extensions: EntityExtension[]`|MUST NOT change required fields (`base`, `extension`, `join`); may add optional fields|
|
|
55
|
+
|`widgets/injection-table.ts`|`ModuleInjectionTable`|MUST NOT change table type or spot ID resolution|
|
|
56
|
+
|`widgets/injection/*/widget.ts`|`InjectionWidgetModule`|MUST NOT change module shape or component props|
|
|
57
|
+
|`widgets/dashboard/*/widget.ts`|`DashboardWidgetModule`|MUST NOT change module shape or component props|
|
|
58
58
|
|
|
59
59
|
**Auto-discovery directory conventions** (FROZEN):
|
|
60
60
|
|
|
61
|
-
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
61
|
+
|Directory Pattern|Route Mapping|Contract|
|
|
62
|
+
|---|---|---|
|
|
63
|
+
|`frontend/<path>.tsx`|`/<path>`|MUST NOT change routing algorithm|
|
|
64
|
+
|`backend/<path>.tsx`|`/backend/<path>`|MUST NOT change routing algorithm|
|
|
65
|
+
|`api/<method>/<path>.ts`|`/api/<path>` by HTTP method|MUST NOT change dispatch logic|
|
|
66
|
+
|`subscribers/*.ts`|Event handler auto-registered|MUST NOT change metadata shape `{event, persistent?, id?}`|
|
|
67
|
+
|`workers/*.ts`|Queue worker auto-registered|MUST NOT change metadata shape `{queue, id?, concurrency?}`|
|
|
68
68
|
|
|
69
69
|
### 2. Type Definitions & Interfaces (STABLE)
|
|
70
70
|
|
|
@@ -114,43 +114,43 @@ These exported types are consumed by module developers. Required fields MUST NOT
|
|
|
114
114
|
|
|
115
115
|
These functions are called directly by module code. Their signatures MUST NOT change in a breaking way. New optional parameters may be added.
|
|
116
116
|
|
|
117
|
-
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
|
152
|
-
|
|
153
|
-
|
|
117
|
+
|Function|Package|Contract|
|
|
118
|
+
|---|---|---|
|
|
119
|
+
|`createModuleEvents(options)`|`@open-mercato/shared/modules/events`|MUST NOT change `options` required shape or return type|
|
|
120
|
+
|`makeCrudRoute(opts)`|`@open-mercato/shared/lib/crud/factory`|MUST NOT remove existing `opts` fields; MUST NOT change return shape|
|
|
121
|
+
|`findWithDecryption(em, entityName, where, options?, scope?)`|`@open-mercato/shared/lib/encryption/find`|MUST NOT change parameter order or required params|
|
|
122
|
+
|`findOneWithDecryption(...)`|`@open-mercato/shared/lib/encryption/find`|Same as above|
|
|
123
|
+
|`findAndCountWithDecryption(...)`|`@open-mercato/shared/lib/encryption/find`|Same as above|
|
|
124
|
+
|`entityId(moduleId, entity)`|`@open-mercato/shared/modules/dsl`|MUST NOT change|
|
|
125
|
+
|`defineLink(base, extension, opts)`|`@open-mercato/shared/modules/dsl`|MUST NOT change|
|
|
126
|
+
|`defineModuleExtensionPoints(declaration)`|`@open-mercato/shared/modules/widgets/extension-points`|MUST preserve immutable data-only declaration semantics and exact module/host values|
|
|
127
|
+
|`injectionExtensionHost`, `dataTableExtensionHost`, `crudFormExtensionHost`, `componentExtensionHost`|`@open-mercato/shared/modules/widgets/extension-points`|MUST preserve family discrimination, exact/pattern validation, and returned IDs|
|
|
128
|
+
|`defineFields(entity, fields, source?)`|`@open-mercato/shared/modules/dsl`|MUST NOT change|
|
|
129
|
+
|`cf.text`, `cf.multiline`, `cf.integer`, `cf.float`, `cf.boolean`, `cf.select`, `cf.currency`, `cf.dictionary`|`@open-mercato/shared/modules/dsl`|MUST NOT remove any helper or change required params|
|
|
130
|
+
|`lazyDashboardWidget(loader)`|`@open-mercato/shared/modules/dashboard/widgets`|MUST NOT change|
|
|
131
|
+
|`registerMcpTool(tool, options?)`|`@open-mercato/ai-assistant`|MUST NOT change|
|
|
132
|
+
|`defineAiAgent(definition)`|`@open-mercato/ai-assistant`|MUST NOT change parameter or return shape|
|
|
133
|
+
|`defineAiAgentExtension(extension)`|`@open-mercato/ai-assistant`|MUST NOT change parameter or return shape|
|
|
134
|
+
|`defineAiTool(definition)`|`@open-mercato/ai-assistant`|MUST NOT change parameter or return shape|
|
|
135
|
+
|`applyAiAgentOverrides(overrides)`|`@open-mercato/ai-assistant`|MUST preserve map semantics and precedence|
|
|
136
|
+
|`applyAiToolOverrides(overrides)`|`@open-mercato/ai-assistant`|MUST preserve map semantics and precedence|
|
|
137
|
+
|`applyAiAgentExtensions(extensions)`|`@open-mercato/ai-assistant`|MUST preserve append/patch semantics|
|
|
138
|
+
|`applyAiOverridesFromEnabledModules(modules)`|`@open-mercato/ai-assistant`|MUST keep accepting the `overrides.ai` module-entry shape|
|
|
139
|
+
|`prepareMutation(input, context)`|`@open-mercato/ai-assistant`|MUST NOT bypass pending-action approval semantics or change required params|
|
|
140
|
+
|`runAiAgentText(input)` / `runAiAgentObject(input)`|`@open-mercato/ai-assistant`|MUST NOT remove existing input fields or narrow output shape|
|
|
141
|
+
|`applyModuleOverridesFromEnabledModules(modules)`|`@open-mercato/shared/modules/overrides`|MUST keep dispatching `entry.overrides.<domain>` by module-load order|
|
|
142
|
+
|`registerModuleOverrideApplier(domain, applier)`|`@open-mercato/shared/modules/overrides`|MUST NOT change registration semantics|
|
|
143
|
+
|`onModulesRegistered(listener)`|`@open-mercato/shared/lib/modules/registry`|MUST keep accepting a single listener and returning an unsubscribe function; MUST keep notifying synchronously after `setGlobalModules()`; MUST stay fail-soft for a listener that throws or rejects. Full contract: [spec](.ai/specs/2026-08-12-module-registry-registration-listeners.md)|
|
|
144
|
+
|`apiCall` / `apiCallOrThrow` / `readApiResultOrThrow`|`@open-mercato/ui/backend/utils/apiCall`|MUST NOT change|
|
|
145
|
+
|`useT()`|`@open-mercato/shared/lib/i18n/context`|MUST NOT change return type|
|
|
146
|
+
|`resolveTranslations()`|`@open-mercato/shared/lib/i18n/server`|MUST NOT change|
|
|
147
|
+
|`createCrudOpenApiFactory(config)`|`@open-mercato/shared/lib/openapi/crud`|MUST NOT change|
|
|
148
|
+
|`collectCustomFieldValues()`|`@open-mercato/ui/backend/utils/customFieldValues`|MUST NOT change|
|
|
149
|
+
|`flash()`|`@open-mercato/ui`|MUST NOT change|
|
|
150
|
+
|`CrudForm` component props|`@open-mercato/ui/backend/crud`|MUST NOT remove existing props|
|
|
151
|
+
|Built-in `CrudFormGroup.id` values|any module's form-group builder (e.g. `createCompanyFormGroups`)|MUST NOT rename or remove an id a shipped form declares — `CrudForm`'s `hiddenGroupIds` addresses groups by id, and an unmatched id is ignored, so a rename makes a card the host hid silently reappear in production. Renames follow the deprecation protocol; pin a builder's ids with a guard test (pattern: `packages/core/src/modules/customers/components/__tests__/companyFormHiddenGroups.test.tsx`). MAY add new groups freely|
|
|
152
|
+
|`DataTable` component props|`@open-mercato/ui/backend`|MUST NOT remove existing props|
|
|
153
|
+
|`parseBooleanToken` / `parseBooleanWithDefault`|`@open-mercato/shared/lib/boolean`|MUST NOT change|
|
|
154
154
|
|
|
155
155
|
### 4. Import Paths (STABLE)
|
|
156
156
|
|
|
@@ -286,21 +286,21 @@ Files in `apps/mercato/.mercato/generated/` are produced by the CLI generators.
|
|
|
286
286
|
|
|
287
287
|
## Allowed vs Breaking Changes — Quick Reference
|
|
288
288
|
|
|
289
|
-
|
|
|
290
|
-
|
|
291
|
-
|
|
|
292
|
-
|
|
|
293
|
-
|
|
|
294
|
-
|
|
|
295
|
-
|
|
|
296
|
-
|
|
|
297
|
-
|
|
|
298
|
-
|
|
|
299
|
-
|
|
|
300
|
-
|
|
|
301
|
-
|
|
|
302
|
-
|
|
|
303
|
-
|
|
|
289
|
+
|Surface|Add new|Add optional field|Remove field|Rename|Change type|
|
|
290
|
+
|---|---|---|---|---|---|
|
|
291
|
+
|Convention files|OK|OK|BREAKING|BREAKING|BREAKING|
|
|
292
|
+
|Type interfaces|OK|OK|BREAKING|BREAKING|BREAKING (narrowing)|
|
|
293
|
+
|Function params|OK (optional)|OK|BREAKING|BREAKING|BREAKING|
|
|
294
|
+
|Event IDs|OK|OK (payload)|BREAKING|BREAKING|n/a|
|
|
295
|
+
|Spot IDs|OK|OK (context)|BREAKING|BREAKING|BREAKING (context)|
|
|
296
|
+
|API routes|OK|OK (req/res fields)|BREAKING (res fields)|BREAKING|BREAKING|
|
|
297
|
+
|DB columns|OK (with default)|n/a|BREAKING|BREAKING|BREAKING (narrowing)|
|
|
298
|
+
|DI names|OK|OK|BREAKING|BREAKING|BREAKING|
|
|
299
|
+
|Feature IDs|OK|n/a|BREAKING*|BREAKING|n/a|
|
|
300
|
+
|AI agent/tool IDs|OK|OK|BREAKING|BREAKING|BREAKING|
|
|
301
|
+
|AI override surfaces|OK|OK|BREAKING|BREAKING|BREAKING|
|
|
302
|
+
|Import paths|OK|n/a|BREAKING|BREAKING|n/a|
|
|
303
|
+
|Generated registry exports|OK|OK|BREAKING|BREAKING|BREAKING|
|
|
304
304
|
|
|
305
305
|
\* Feature ID removal requires a data migration.
|
|
306
306
|
|
|
@@ -311,7 +311,7 @@ Files in `apps/mercato/.mercato/generated/` are produced by the CLI generators.
|
|
|
311
311
|
`.ai/specs/2026-05-21-email-integration-foundation.md` adds optional per-user scoping to integration credentials so two users on the same tenant can connect their own mailbox (Gmail / IMAP) without sharing one row. **All changes are additive** and pass the contract-surface checks above:
|
|
312
312
|
|
|
313
313
|
| Surface | Change | Classification |
|
|
314
|
-
|
|
314
|
+
|---|---|---|
|
|
315
315
|
| Type interface (`IntegrationScope`) | New **optional** field `userId?: string \| null` | ✓ ADDITIVE (Type interface, optional field) |
|
|
316
316
|
| Database schema | New nullable column `integration_credentials.user_id uuid` via additive migration `Migration20260526154136`, plus partial unique index `integration_credentials_user_lookup_idx` on `(integration_id, organization_id, tenant_id, user_id)` `WHERE user_id IS NOT NULL AND deleted_at IS NULL` | ✓ ADDITIVE (NULL default; the partial index leaves existing tenant-wide rows untouched) |
|
|
317
317
|
| `createCredentialsService` API | `getRaw` / `resolve` / `save` / `saveField` signatures unchanged; when `scope.userId` is falsy the lookup filter pins `user_id = NULL`, reproducing the prior tenant-wide behaviour exactly | ✓ Behaviour-preserving for existing callers |
|
|
@@ -327,7 +327,7 @@ Files in `apps/mercato/.mercato/generated/` are produced by the CLI generators.
|
|
|
327
327
|
> **Update (2026-06-02):** the Microsoft Graph push surfaces (the two `/webhooks/microsoft/*` routes, the `…-microsoft-delta-sync` / `…-microsoft-renew-subscriptions` queues, and `OM_MICROSOFT_WEBHOOK_BASE_URL` / `OM_PUSH_RENEWAL_MICROSOFT_LEAD_HOURS`) were removed together with the `@open-mercato/channel-microsoft` provider — they never shipped in a release, so the removal is not a breaking change. The rows below reflect the Gmail-only surfaces that remain. The `client_state_encrypted` column — proposed solely for Microsoft Graph's anti-tampering nonce — was dropped from scope together with the provider before this branch's migrations were finalized; it appears in no committed migration or snapshot, so there is no schema change to reconcile.
|
|
328
328
|
|
|
329
329
|
| Surface | Change | Classification |
|
|
330
|
-
|
|
330
|
+
|---|---|---|
|
|
331
331
|
| Adapter type interface (`ChannelAdapter`) | Three new **optional** methods: `registerPush?`, `unregisterPush?`, `applyPushNotification?` | ✓ ADDITIVE (Type interface, optional fields) |
|
|
332
332
|
| Adapter input/output types | New exported types: `PushRegistration`, `RegisterPushInput`, `UnregisterPushInput`, `ApplyPushNotificationInput` | ✓ ADDITIVE (new types, no rename) |
|
|
333
333
|
| Event IDs | Four new events: `communication_channels.push.{registered,failed,renewed,deactivated}` | ✓ ADDITIVE (new event IDs) |
|
|
@@ -347,7 +347,7 @@ Files in `apps/mercato/.mercato/generated/` are produced by the CLI generators.
|
|
|
347
347
|
`.ai/specs/2026-08-06-command-interceptor-http-status.md` lets a command interceptor's deliberate rejection carry an HTTP status and body, so a business block surfaces as (for example) `422` instead of a generic `500`. **All changes are additive** and pass the contract-surface checks above:
|
|
348
348
|
|
|
349
349
|
| Surface | Change | Classification |
|
|
350
|
-
|
|
350
|
+
|---|---|---|
|
|
351
351
|
| Type interface (`CommandInterceptorBeforeResult`) | Two new **optional** fields: `status?: number`, `body?: Record<string, unknown>` | ✓ ADDITIVE (Type interface, optional fields) |
|
|
352
352
|
| Function signature (`CommandInterceptorError` constructor) | New **optional** second parameter `options?: { status?, body?, cause? }` | ✓ ADDITIVE (optional parameter appended; every `new CommandInterceptorError(message)` call site compiles and behaves identically) |
|
|
353
353
|
| Function return types (`runCommandInterceptorsBefore`, `runCommandInterceptorsBeforeUndo`) | Returned `error` widens from `{ message: string }` to `{ message: string; status?: number; body?: Record<string, unknown> }` | ✓ ADDITIVE (a widened return type is safe for readers; callers reading `.message` are unaffected) |
|
|
@@ -368,7 +368,7 @@ This closes a policy bypass where a mixed-case or percent-encoded spelling dispa
|
|
|
368
368
|
to a handler but did not select its exact `before` interceptor.
|
|
369
369
|
|
|
370
370
|
| Surface | Change | Classification |
|
|
371
|
-
|
|
371
|
+
|---|---|---|
|
|
372
372
|
| Function signature (`findApiRouteManifestMatch`) | New optional fourth parameter `request?: Request`; existing three-argument callers keep the same return value and matching behavior | ✓ ADDITIVE (optional parameter appended) |
|
|
373
373
|
| API route URLs and handler context | No route is added, removed, or renamed; handler `params` and request query semantics are unchanged | ✓ No contract change |
|
|
374
374
|
| Interceptor selection | Static segments use the matched manifest spelling, while matched dynamic/catch-all values stay concrete. Alternate spellings that already reached a route now run the same exact/prefix interceptors as its normal spelling; malformed percent encoding reaches no handler | ⚠️ Intentional security narrowing only (previous policy-bypass requests are denied or intercepted) |
|
|
@@ -389,7 +389,7 @@ authored route constant directly to the interceptor runner.
|
|
|
389
389
|
Deleting a user who had customised their sidebar failed on the `user_sidebar_preferences` / `sidebar_variants` foreign keys and surfaced as a generic `500`. The fix clears those rows in `auth.users.delete`, gives both FKs `ON DELETE CASCADE`, and teaches `makeCrudRoute` to recognise a Postgres foreign-key violation (SQLSTATE 23503). **All changes are additive** and pass the contract-surface checks above:
|
|
390
390
|
|
|
391
391
|
| Surface | Change | Classification |
|
|
392
|
-
|
|
392
|
+
|---|---|---|
|
|
393
393
|
| Import path / exports (`@open-mercato/shared/lib/db/pg-errors`) | New exports `isForeignKeyViolation(err)` and `getForeignKeyViolationConstraint(err)` | ✓ ADDITIVE (new exports, nothing removed or renamed) |
|
|
394
394
|
| HTTP response shapes (`makeCrudRoute` handlers) | A handler that throws a Postgres foreign-key violation now answers `409 { error, code: 'FOREIGN_KEY_VIOLATION', requestId }` with an `x-request-id` header, where it previously answered the generic `500 { error, message, requestId }`. The constraint name is logged and reported to telemetry but never returned to the client. Every other error class keeps its byte-identical historical answer | ⚠️ Behaviour change for one error class only. No retained response loses a field, but a client that treated the old `500` as retryable now receives a non-retryable `409`. Regression-tested in `crud-factory.test.ts` |
|
|
395
395
|
| Database schema (`user_sidebar_preferences_user_id_foreign`, `sidebar_variants_user_id_foreign`) | Both constraints are dropped and recreated with `on update cascade on delete cascade` (`Migration20260907120000_auth`). No table or column is added, renamed, removed or retyped, and `down()` restores each constraint to its original definition | ✓ ADDITIVE-ONLY compatible (delete behaviour widened, nothing narrowed) |
|
|
@@ -405,7 +405,7 @@ Deleting a user who had customised their sidebar failed on the `user_sidebar_pre
|
|
|
405
405
|
`TenantDataEncryptionService.encryptFields` treats "already encrypted" as "decrypts under the current DEK" — a deliberate anti-forgery choice ([#2720](https://github.com/open-mercato/open-mercato/issues/2720)). Real ciphertext sealed under a *different* key failed that check too and was encrypted a second time, producing a nested envelope that no read path can undo, plus a lookup hash computed over ciphertext ([#5951](https://github.com/open-mercato/open-mercato/issues/5951)). That write is now rejected:
|
|
406
406
|
|
|
407
407
|
| Surface | Change | Classification |
|
|
408
|
-
|
|
408
|
+
|---|---|---|
|
|
409
409
|
| Import path / exports (`@open-mercato/shared/lib/encryption/aes`) | New export `isEncryptedPayloadShape(value)` — a key-free structural check (`<iv>:<ct>:<tag>:v1` with a 12-byte IV, 16-byte tag and non-empty ciphertext). Explicitly NOT an "is this encrypted" oracle; the shape is forgeable | ✓ ADDITIVE (new export, nothing removed or renamed) |
|
|
410
410
|
| Function behaviour (`encryptEntityPayload` / `encryptFields`) | A field holding a structurally well-formed envelope that does not decrypt under the current DEK now raises `TenantDataEncryptionError` with code `WRONG_KEY`, where it previously returned a payload containing a nested envelope. Signature, return type and every other input keep their byte-identical historical behaviour | ⚠️ Behaviour change on one previously-corrupting path. `WRONG_KEY` was already declared in `TenantDataEncryptionErrorCode` and emitted nowhere, so no existing handler changes meaning. Regression-tested in `tenantDataEncryptionService.test.ts` |
|
|
411
411
|
| Encryption-at-rest guarantee (#2720) | Unchanged. Nothing is ever stored verbatim: a forgery whose shape is not length-valid (the check is length-based, not content-based) still fails the structural check and is encrypted as ordinary plaintext, and a length-valid one is rejected rather than persisted | ✓ Preserved (pinned by the retained `#2720` test cases) |
|
|
@@ -421,7 +421,7 @@ Deleting a user who had customised their sidebar failed on the `user_sidebar_pre
|
|
|
421
421
|
[`.ai/specs/2026-08-12-module-registry-registration-listeners.md`](.ai/specs/2026-08-12-module-registry-registration-listeners.md) adds a public subscription to the module registry so a cache derived from the module list can drop what it built from an incomplete one ([#5103](https://github.com/open-mercato/open-mercato/issues/5103)). **All changes are additive** and pass the contract-surface checks above:
|
|
422
422
|
|
|
423
423
|
| Surface | Change | Classification |
|
|
424
|
-
|
|
424
|
+
|---|---|---|
|
|
425
425
|
| Function signatures | New export `onModulesRegistered(listener)` on `@open-mercato/shared/lib/modules/registry` | ✓ ADDITIVE (new function) |
|
|
426
426
|
| Type definitions | New export `ModulesRegisteredListener = (modules: Module[]) => void \| PromiseLike<void>` | ✓ ADDITIVE (new type, no rename) |
|
|
427
427
|
| `registerModules(modules)` | Signature, return type, and synchronous behavior unchanged; it now also notifies listeners after the reconciliation it already performed | ✓ Behaviour-preserving for existing callers |
|
|
@@ -441,7 +441,7 @@ Issue #3852 removed the non-cryptographic passkey verification shape from `Passk
|
|
|
441
441
|
**Exception requirements, as met by this change:**
|
|
442
442
|
|
|
443
443
|
| Requirement | How it is satisfied |
|
|
444
|
-
|
|
444
|
+
|---|---|
|
|
445
445
|
| 1. Qualifying condition argued | See *Why the deprecation protocol does not apply* below — both values the removed shape compared are disclosed by the server, so accepting it *is* the bypass |
|
|
446
446
|
| 2. Narrowest removal, no retained vulnerable branch | Only `verifyPayloadSchema` and the two non-cryptographic acceptance paths are deleted. The `{ response }` path, the challenge TTL check and the signature-counter update are untouched, and **no flag, config toggle or opt-in keeps the old shape reachable** |
|
|
447
447
|
| 3. Steps 4 and 5 | [`UPGRADE_NOTES.md`](UPGRADE_NOTES.md) `0.6.7 → 0.7.0` (client *and* operator actions); spec [`.ai/specs/enterprise/2026-08-14-passkey-mfa-require-webauthn-assertion.md`](.ai/specs/enterprise/2026-08-14-passkey-mfa-require-webauthn-assertion.md) § Migration & Backward Compatibility |
|
|
@@ -449,7 +449,7 @@ Issue #3852 removed the non-cryptographic passkey verification shape from `Passk
|
|
|
449
449
|
| 5. Maintainer sign-off | PR carries the `security` label; the waiver is called out in the PR body for explicit human approval |
|
|
450
450
|
|
|
451
451
|
| Surface | Change | Classification |
|
|
452
|
-
|
|
452
|
+
|---|---|---|
|
|
453
453
|
| API request shape (`POST /api/security/mfa/verify`, `POST /api/security/sudo/verify`, `methodType: 'passkey'`) | `payload` must be `{ response }` carrying a WebAuthn assertion. The `{ credentialId, challenge }` alternative is removed and now answers `401` | ✗ BREAKING (deliberate — see rationale) |
|
|
454
454
|
| Provider contract (`MfaProviderInterface.verifySchema` for `passkey`) | `verifyPayloadSchema` narrows from a union to a single object requiring `response` | ✗ BREAKING for a caller that validated against the exported schema |
|
|
455
455
|
| Verification behavior | A verified `verifyAuthenticationResponse` is the only route to a positive verdict; an absent verify context is a rejection rather than a `credentialId` comparison | ✗ BREAKING for a client that skipped `/api/security/mfa/prepare` |
|
|
@@ -465,7 +465,7 @@ Issue #3852 removed the non-cryptographic passkey verification shape from `Passk
|
|
|
465
465
|
[`.ai/specs/2026-09-02-data-sync-adapter-start-controls.md`](.ai/specs/2026-09-02-data-sync-adapter-start-controls.md) lets a `DataSyncAdapter` declare, per entity type, which of the Data Sync dashboard's manual-start controls apply, so the dashboard stops offering controls that cannot mean anything for the selected entity type. **All changes are additive** and pass the contract-surface checks above:
|
|
466
466
|
|
|
467
467
|
| Surface | Change | Classification |
|
|
468
|
-
|
|
468
|
+
|---|---|---|
|
|
469
469
|
| Type definitions (§2) | New optional method `DataSyncAdapter.supportsStartControl?(control, entityType)`; new exported type `DataSyncStartControl = 'fullSync' \| 'batchSize'` | ✓ ADDITIVE (optional member, new type — same shape as the `persistsSharedCursor` and `runParameters` additions before it) |
|
|
470
470
|
| Import paths (§4) | New module `data_sync/lib/start-controls.ts` exporting `resolveStartControlMap`, `applicableStartControls`, `StartControlMap`, `StartControlApplicability`, `DATA_SYNC_START_CONTROLS` | ✓ ADDITIVE (new path; nothing moved or re-exported) |
|
|
471
471
|
| API route URLs (§7) | `GET /api/data_sync/options` items gain a `startControls` object; `POST /api/data_sync/run` is unchanged and keeps honouring `fullSync` and `batchSize` whatever an adapter declares | ✓ ADDITIVE (new optional response field, no request-shape change) |
|
|
@@ -480,7 +480,7 @@ Issue #3852 removed the non-cryptographic passkey verification shape from `Passk
|
|
|
480
480
|
Spec: [`.ai/specs/2026-09-08-error-reporting-policy.md`](.ai/specs/2026-09-08-error-reporting-policy.md). Every change is additive; no existing path emits less than it did before.
|
|
481
481
|
|
|
482
482
|
| Surface | Change | Classification |
|
|
483
|
-
|
|
483
|
+
|---|---|---|
|
|
484
484
|
| `TelemetryProvider` | Optional `reportError?()` added, called in addition to the span/log/metric path. MUST stay optional — third parties implement this interface | ✓ ADDITIVE |
|
|
485
485
|
| `ReportErrorContext` / `TelemetryRuntime['reportError']` context | Optional `code?: string` fingerprint added | ✓ ADDITIVE |
|
|
486
486
|
| `data_sync.run.completed` payload | Optional `createdCount`, `updatedCount`, `skippedCount`, `failedCount` added; no existing field changed (§5 permits additive payload fields) | ✓ ADDITIVE |
|
|
@@ -501,7 +501,7 @@ Spec: [`.ai/specs/2026-09-08-error-reporting-policy.md`](.ai/specs/2026-09-08-er
|
|
|
501
501
|
[`.ai/specs/2026-09-16-data-sync-retry-resume-actions.md`](.ai/specs/2026-09-16-data-sync-retry-resume-actions.md) splits the Data Sync dashboard's single overloaded "Retry" button into three named operator actions — **Retry** (labelled **Resume** on a cancelled run), **Retry from the beginning**, and **Run again** — and states, on the run detail page, where a retry would resume. **All changes are additive** and pass the contract-surface checks above:
|
|
502
502
|
|
|
503
503
|
| Surface | Change | Classification |
|
|
504
|
-
|
|
504
|
+
|---|---|---|
|
|
505
505
|
| Type definitions (§2) | New exported types `ResumePoint` (a discriminated union of `none` / `noCommittedBatch` / `resumes`) and `ResumePointRun` | ✓ ADDITIVE (new types, nothing renamed — same shape as the `StartControlMap` addition before it) |
|
|
506
506
|
| Import paths (§4) | New module `data_sync/lib/resume-point.ts` exporting `resolveResumePoint`, `isRetryableRunStatus`, `ResumePoint`, `ResumePointRun` | ✓ ADDITIVE (new path; nothing moved or re-exported) |
|
|
507
507
|
| API route URLs (§7) | **No change.** `POST /api/data_sync/runs/[id]/retry` and `POST /api/data_sync/run` are untouched — no new request field, no new response field, no new status code and no new error code. The UI starts sending the already-accepted `fromBeginning: true` for the first time, and reads `cursor` / `initialCursor` / `batchesCompleted`, all of which `GET /api/data_sync/runs` and `GET /api/data_sync/runs/[id]` have returned since 2026-08-12 | ✓ n/a |
|
|
@@ -519,7 +519,7 @@ Spec: [`.ai/specs/2026-09-08-error-reporting-policy.md`](.ai/specs/2026-09-08-er
|
|
|
519
519
|
[`.ai/specs/2026-09-16-customers-quick-create-injection-spot-bridge.md`](.ai/specs/2026-09-16-customers-quick-create-injection-spot-bridge.md) binds the sales document form's Person/Company quick-create dialogs to the customers module's declared `crud-form:customers.person` / `…company` hosts. The dialogs previously had no `injectionSpotId`, so `CrudForm` auto-derived `crud-form:customers.customer_entity` (§6, FROZEN) there instead.
|
|
520
520
|
|
|
521
521
|
| Surface | Change | Classification |
|
|
522
|
-
|
|
522
|
+
|---|---|---|
|
|
523
523
|
| Widget Injection Spot IDs (§6) | `CrudForm` gains an additive `legacyInjectionSpotId?: string` prop. When set, its header/body/field widgets are dual-published alongside the primary `injectionSpotId`'s — `crud-form:customers.customer_entity` stays live on these two dialogs via the bridge, so nothing that already targets it stops rendering | ✓ ADDITIVE (bridge, not a removal — see Deprecation Protocol steps 1–3) |
|
|
524
524
|
| Widget Injection Spot IDs (§6) | The two dialogs now also publish `crud-form:customers.person` / `…company` (previously published only by the person/company detail pages) | ✓ ADDITIVE ("MAY add new spot IDs to new or existing pages") |
|
|
525
525
|
| Context passed to widgets at `crud-form:customers.person` / `…company` | These hosts' widgets now also mount with `operation: 'create'` and no `recordId` on the two quick-create dialogs, for the first time — previously always `operation: 'update'` with a concrete `recordId` | Disclosed in [`UPGRADE_NOTES.md`](UPGRADE_NOTES.md) "Action for module authors"; not itself a contract surface change (§6 permits "new optional context fields", and `operation`/`recordId` were always part of the injection context shape) |
|
|
@@ -527,12 +527,18 @@ Spec: [`.ai/specs/2026-09-08-error-reporting-policy.md`](.ai/specs/2026-09-08-er
|
|
|
527
527
|
|
|
528
528
|
**Deprecation window.** `legacyInjectionSpotId` is scoped to these two call sites and intended for removal after at least one minor version (Deprecation Protocol step 1), tracked in the spec's Changelog and in `UPGRADE_NOTES.md`. No maintainer waiver was needed — nothing is removed by this change.
|
|
529
529
|
|
|
530
|
+
### 2026-10-01 — Passkey enrollment (#6800)
|
|
531
|
+
|
|
532
|
+
STABLE `PUT /api/security/mfa/provider/passkey`: unverified keys bypass verification; a bridge preserves the exploit. [@haxiorz approved waiver/migration](https://github.com/open-mercato/open-mercato/pull/6824#issuecomment-6505351158).
|
|
533
|
+
|
|
534
|
+
Clients use WebAuthn; operators audit key provenance, re-enroll with recovery. [Spec](.ai/specs/enterprise/2026-10-01-passkey-enrollment-require-webauthn-attestation.md); [migration](UPGRADE_NOTES.md#090--091-unreleased).
|
|
535
|
+
|
|
530
536
|
## Atomic Auth Command Replay (2026-10-04)
|
|
531
537
|
|
|
532
538
|
[`.ai/specs/2026-07-28-protected-roles-and-audit-seam.md`](.ai/specs/2026-07-28-protected-roles-and-audit-seam.md) closes the auth undo/redo transaction, authorization, and membership-phantom gaps without changing existing command handlers by default.
|
|
533
539
|
|
|
534
540
|
| Surface | Change | Classification |
|
|
535
|
-
|
|
541
|
+
|---|---|---|
|
|
536
542
|
| Type definitions (`CommandHandler`, `CommandRuntimeContext`, `CommandExecuteResult`) | New optional `atomicReplay?: boolean` and `stabilizeReplay(...)` handler capabilities, optional `replayTransactionGuard` request guard, optional caller-owned `transactionLifetime`, and optional `replaySourceFinalized?: boolean` result signal. `TransactionLifetime` plus its observation/completion-registration helpers are new exports; lifetime creation/completion remains owned by `withAtomicFlush` | ✓ ADDITIVE (optional fields and exports; omitted handlers and contexts keep the prior flow) |
|
|
537
543
|
| `ActionLogService` method signatures | `log`, `claimForUndo`, `releaseUndoClaim`, and `markUndone` accept an optional trailing transactional `EntityManager`; new `claimForRedo` method | ✓ ADDITIVE (optional parameters appended and a new method; existing calls retain behavior) |
|
|
538
544
|
| `RbacService` | New `loadAclWithEntityManager`, `userHasAllFeaturesWithEntityManager`, and `getGrantedFeaturesWithEntityManager` methods bypass caches and bind every query to the supplied transaction | ✓ ADDITIVE (new methods; existing cache-backed methods are unchanged) |
|
|
@@ -551,7 +557,7 @@ Spec: [`.ai/specs/2026-09-08-error-reporting-policy.md`](.ai/specs/2026-09-08-er
|
|
|
551
557
|
`directory.organizations.update` treated an omitted `parentId` as `null` and an omitted `childIds` as `[]`, so a partial update — notably `PUT /api/directory/organization-branding`, which sends only logo fields — detached the organization from its parent and orphaned its children. Omitted hierarchy fields are now preserved:
|
|
552
558
|
|
|
553
559
|
| Surface | Change | Classification |
|
|
554
|
-
|
|
560
|
+
|---|---|---|
|
|
555
561
|
| Command behaviour (`directory.organizations.update`) | `parentId` is written and validated only when present in the input; children are reconciled only when `childIds` is present. Explicit `parentId: null` and `childIds: []` still clear. With `childIds` present and `parentId` omitted, listing the current parent answers `400 Child cannot equal parent` (it answered `400 Cannot assign ancestor as child`) | ⚠️ Behaviour change on a previously-corrupting path. A caller that omitted the fields to clear the hierarchy must send the explicit values. Regression-tested in `updateOrganization.partial-hierarchy.test.ts` and `TC-DIR-018` |
|
|
556
562
|
| API routes (`PUT /api/directory/organizations`, `PUT /api/directory/organization-branding`) | Same URLs, request schema (`organizationUpdateSchema` already declares both fields optional) and response shapes | ✓ No shape change |
|
|
557
563
|
| Database schema, event IDs, ACL features, DI names, CLI commands | No change | ✓ n/a |
|
|
@@ -565,7 +571,7 @@ Spec: [`.ai/specs/2026-09-08-error-reporting-policy.md`](.ai/specs/2026-09-08-er
|
|
|
565
571
|
`POST /api/auth/logout` answered `401` before its handler ran once the access token expired, so the remember-me session was never revoked ([#7225](https://github.com/open-mercato/open-mercato/issues/7225)). It now declares `requireAuth: false`, like the portal logout:
|
|
566
572
|
|
|
567
573
|
| Surface | Change | Classification |
|
|
568
|
-
|
|
574
|
+
|---|---|---|
|
|
569
575
|
| API route gating | `requireAuth` `true` → `false`; the handler revokes only the sessions its own cookies identify | ⚠️ Narrow relaxation: missing/unverifiable token or no cookie got `401`, now `307` (UPGRADE_NOTES.md) |
|
|
570
576
|
| URL, method, response shape | Unchanged | ✓ n/a |
|
|
571
577
|
| `auth.logout` event | Emitted only for a verified staff `auth_token` (now incl. MFA-pending); `session_token`-only revocation emits none | ✓ No ID or payload change |
|
|
@@ -584,7 +590,7 @@ Spec: [`.ai/specs/2026-09-08-error-reporting-policy.md`](.ai/specs/2026-09-08-er
|
|
|
584
590
|
[`.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
591
|
|
|
586
592
|
| Surface | Change | Classification |
|
|
587
|
-
|
|
593
|
+
|---|---|---|
|
|
588
594
|
| 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
595
|
| 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
596
|
| 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) |
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 1,
|
|
3
|
-
"generator": "@open-mercato/cli@0.10.1-develop.
|
|
3
|
+
"generator": "@open-mercato/cli@0.10.1-develop.7741.1.61a2652671",
|
|
4
4
|
"files": {
|
|
5
5
|
"AGENTS.md": "b27342ee5f61e805ba52703fdb7ec822b030490f734b4d80f48dfd1e05fa4cf5",
|
|
6
|
-
"BACKWARD_COMPATIBILITY.md": "
|
|
6
|
+
"BACKWARD_COMPATIBILITY.md": "05c869d7abb7499c1ee96b3a9f6b5b170e192ae5014b26a9c280a8987c29869b"
|
|
7
7
|
}
|
|
8
8
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-mercato/cli",
|
|
3
|
-
"version": "0.10.1-develop.
|
|
3
|
+
"version": "0.10.1-develop.7741.1.61a2652671",
|
|
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.10.1-develop.
|
|
64
|
-
"@open-mercato/queue": "0.10.1-develop.
|
|
65
|
-
"@open-mercato/shared": "0.10.1-develop.
|
|
66
|
-
"@open-mercato/telemetry": "0.10.1-develop.
|
|
63
|
+
"@open-mercato/events": "0.10.1-develop.7741.1.61a2652671",
|
|
64
|
+
"@open-mercato/queue": "0.10.1-develop.7741.1.61a2652671",
|
|
65
|
+
"@open-mercato/shared": "0.10.1-develop.7741.1.61a2652671",
|
|
66
|
+
"@open-mercato/telemetry": "0.10.1-develop.7741.1.61a2652671",
|
|
67
67
|
"cross-spawn": "^7.0.6",
|
|
68
68
|
"pg": "8.23.0",
|
|
69
69
|
"semver": "^7.8.5",
|
|
@@ -74,10 +74,10 @@
|
|
|
74
74
|
"typescript-js": "npm:typescript@6.0.3"
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|
|
77
|
-
"@open-mercato/shared": "0.10.1-develop.
|
|
77
|
+
"@open-mercato/shared": "0.10.1-develop.7741.1.61a2652671"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
|
-
"@open-mercato/shared": "0.10.1-develop.
|
|
80
|
+
"@open-mercato/shared": "0.10.1-develop.7741.1.61a2652671",
|
|
81
81
|
"@types/jest": "^30.0.0",
|
|
82
82
|
"jest": "^30.4.2",
|
|
83
83
|
"ts-jest": "^29.4.12"
|