@open-mercato/core 0.4.5-develop-8a56591995 → 0.4.5-develop-17cfa89764

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 +2 -1
  2. package/package.json +2 -2
package/AGENTS.md CHANGED
@@ -321,6 +321,7 @@ When adding features to `acl.ts`, also add them to `setup.ts` `defaultRoleFeatur
321
321
 
322
322
  ## Command Side Effects
323
323
 
324
+ - Implement write operations via the Command pattern (don’t mutate domain state directly inside route handlers). Reference: `src/modules/customers/commands/*`.
324
325
  - Include `indexer: { entityType, cacheAliases }` in both `emitCrudSideEffects` and `emitCrudUndoSideEffects`
325
326
  - This ensures undo refreshes the query index and caches
326
327
  - Reference: customers commands at `src/modules/customers/commands/people.ts`
@@ -384,7 +385,7 @@ await emitCrudSideEffects({ ... })
384
385
  ## Database Entities
385
386
 
386
387
  - Live in `src/modules/<module>/data/entities.ts` (fallbacks: `db/entities.ts`, `schema.ts`)
387
- - Tables: plural snake_case (e.g., `users`, `sales_orders`)
388
+ - Tables: plural snake_case; prefer `<module>_` prefixes for module-owned tables (e.g., `catalog_products`, `sales_orders`)
388
389
  - UUID PKs, explicit FKs, junction tables for M2M
389
390
  - Include `deleted_at timestamptz null` for soft delete
390
391
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-mercato/core",
3
- "version": "0.4.5-develop-8a56591995",
3
+ "version": "0.4.5-develop-17cfa89764",
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.5-develop-8a56591995",
210
+ "@open-mercato/shared": "0.4.5-develop-17cfa89764",
211
211
  "@types/semver": "^7.5.8",
212
212
  "@xyflow/react": "^12.6.0",
213
213
  "ai": "^6.0.0",