@open-mercato/shared 0.6.3-develop.3810.1.ad92c339f5 → 0.6.3-develop.3820.1.636677865b
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 +24 -6
- package/dist/lib/version.js +1 -1
- package/dist/lib/version.js.map +1 -1
- package/package.json +2 -2
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
|
-
##
|
|
5
|
+
## Always
|
|
6
6
|
|
|
7
|
-
1. **MUST
|
|
8
|
-
2. **MUST
|
|
9
|
-
3. **MUST
|
|
10
|
-
4. **MUST
|
|
11
|
-
|
|
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
|
|
package/dist/lib/version.js
CHANGED
package/dist/lib/version.js.map
CHANGED
|
@@ -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.
|
|
4
|
+
"sourcesContent": ["// Build-time generated version\nexport const APP_VERSION = '0.6.3-develop.3820.1.636677865b'\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.
|
|
3
|
+
"version": "0.6.3-develop.3820.1.636677865b",
|
|
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.
|
|
95
|
+
"@open-mercato/cache": "0.6.3-develop.3820.1.636677865b",
|
|
96
96
|
"dotenv": "^17.4.2",
|
|
97
97
|
"rate-limiter-flexible": "^11.1.0",
|
|
98
98
|
"re2js": "2.8.3",
|