@open-mercato/shared 0.6.3-develop.3809.1.bde5459e65 → 0.6.3-develop.3811.1.be22750402

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/AGENTS.md CHANGED
@@ -2,13 +2,31 @@
2
2
 
3
3
  Use `@open-mercato/shared` for cross-cutting utilities, types, DSL helpers, and infrastructure. MUST NOT import from `@open-mercato/core` or any domain package — shared has zero domain dependencies.
4
4
 
5
- ## MUST Rules
5
+ ## Always
6
6
 
7
- 1. **MUST NOT add domain-specific logic** — this package is infrastructure only
8
- 2. **MUST use precise types** — no `any`, use zod schemas + `z.infer`
9
- 3. **MUST check for existing utilities** before adding new helpers — avoid duplication
10
- 4. **MUST export narrow interfaces** (e.g., `QueryEngine`) — never pass `any`/`unknown`
11
- 5. **MUST centralize reusable types and constants here** to prevent drift across packages
7
+ 1. **MUST use precise types** — no `any`, use zod schemas + `z.infer`
8
+ 2. **MUST check for existing utilities** before adding new helpers — avoid duplication
9
+ 3. **MUST export narrow interfaces** (e.g., `QueryEngine`) — never pass `any`/`unknown`
10
+ 4. **MUST centralize reusable types and constants here** to prevent drift across packages
11
+
12
+ ## Ask First
13
+
14
+ - Ask before adding a domain-specific helper, new override domain, or shared public type that becomes a cross-package contract.
15
+ - Ask before changing import paths documented in this file.
16
+
17
+ ## Never
18
+
19
+ - Never add domain-specific logic; this package is infrastructure only.
20
+ - Never import from `@open-mercato/core` or any domain package; shared has zero domain dependencies.
21
+ - Never gate raw feature arrays with `includes(...)`, `Set.has(...)`, or ad hoc wildcard matching.
22
+ - Never use `any` for exported shared interfaces.
23
+
24
+ ## Validation Commands
25
+
26
+ ```bash
27
+ yarn workspace @open-mercato/shared test
28
+ yarn workspace @open-mercato/shared build
29
+ ```
12
30
 
13
31
  ## Library Directory (`src/lib/`)
14
32
 
@@ -1,4 +1,4 @@
1
- const APP_VERSION = "0.6.3-develop.3809.1.bde5459e65";
1
+ const APP_VERSION = "0.6.3-develop.3811.1.be22750402";
2
2
  const appVersion = APP_VERSION;
3
3
  export {
4
4
  APP_VERSION,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/lib/version.ts"],
4
- "sourcesContent": ["// Build-time generated version\nexport const APP_VERSION = '0.6.3-develop.3809.1.bde5459e65'\nexport const appVersion = APP_VERSION\n"],
4
+ "sourcesContent": ["// Build-time generated version\nexport const APP_VERSION = '0.6.3-develop.3811.1.be22750402'\nexport const appVersion = APP_VERSION\n"],
5
5
  "mappings": "AACO,MAAM,cAAc;AACpB,MAAM,aAAa;",
6
6
  "names": []
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-mercato/shared",
3
- "version": "0.6.3-develop.3809.1.bde5459e65",
3
+ "version": "0.6.3-develop.3811.1.be22750402",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {
@@ -92,7 +92,7 @@
92
92
  "@mikro-orm/core": "^7.1.1",
93
93
  "@mikro-orm/decorators": "^7.1.1",
94
94
  "@mikro-orm/postgresql": "^7.1.1",
95
- "@open-mercato/cache": "0.6.3-develop.3809.1.bde5459e65",
95
+ "@open-mercato/cache": "0.6.3-develop.3811.1.be22750402",
96
96
  "dotenv": "^17.4.2",
97
97
  "rate-limiter-flexible": "^11.1.0",
98
98
  "re2js": "2.8.3",