@open-mercato/core 0.4.6-develop-02aac88968 → 0.4.6-develop-832c3006bf

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 (2) hide show
  1. package/AGENTS.md +3 -0
  2. package/package.json +2 -2
package/AGENTS.md CHANGED
@@ -234,9 +234,11 @@ src/modules/<module>/
234
234
  ```
235
235
 
236
236
  - **Notification types**: Declare in `notifications.ts` exporting `notificationTypes: NotificationTypeDefinition[]`
237
+ - **Reactive handlers**: Declare in `notifications.handlers.ts` exporting `notificationHandlers: NotificationHandler[]`
237
238
  - **Subscribers**: Create event subscribers in `subscribers/` to emit notifications on domain events
238
239
  - **Client renderers**: Declare in `notifications.client.ts`; store components in `widgets/notifications/`
239
240
  - **i18n**: Add translations to `i18n/<locale>.json` under `<module>.notifications.*` keys
241
+ - **Handler behavior**: Keep handlers idempotent; use `ctx.emitEvent(...)` for cross-component updates and `ctx.toast(...)`/`ctx.popup(...)` for UX side-effects
240
242
 
241
243
  ## Widget Injection
242
244
 
@@ -274,6 +276,7 @@ Define route interceptors in `api/interceptors.ts` and export `interceptors`.
274
276
  - Keep scope explicit with `targetRoute` + `methods`; use wildcards only when required.
275
277
  - `before`/`after` hooks must be fail-closed and timeout-safe.
276
278
  - If `before` rewrites body/query, return a schema-compatible payload (route handler re-validates it).
279
+ - For CRUD list narrowing, prefer writing `query.ids` (comma-separated UUIDs). The CRUD factory merges/intersects `ids` with existing `id` filters.
277
280
 
278
281
  ## Component Replacement
279
282
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-mercato/core",
3
- "version": "0.4.6-develop-02aac88968",
3
+ "version": "0.4.6-develop-832c3006bf",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {
@@ -207,7 +207,7 @@
207
207
  }
208
208
  },
209
209
  "dependencies": {
210
- "@open-mercato/shared": "0.4.6-develop-02aac88968",
210
+ "@open-mercato/shared": "0.4.6-develop-832c3006bf",
211
211
  "@types/html-to-text": "^9.0.4",
212
212
  "@types/semver": "^7.5.8",
213
213
  "@xyflow/react": "^12.6.0",