@x12i/memorix-format 2.2.0 → 2.2.1
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/README.md +20 -2
- package/meta/inventory/managed-descriptors.json +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -10,12 +10,30 @@ Memorix **product** record format — profiles and conventions on top of
|
|
|
10
10
|
|
|
11
11
|
Product meta-metadata is packaged under [`meta/`](./meta/) (open buckets, content types, association conventions, profiles). Managed-descriptor inventory lives in `meta/inventory/` and is not format law.
|
|
12
12
|
|
|
13
|
-
Migrate
|
|
13
|
+
## Migrate existing databases
|
|
14
|
+
|
|
15
|
+
Present-tense format only. To transform stored JSON / exports:
|
|
14
16
|
|
|
15
17
|
```bash
|
|
16
|
-
|
|
18
|
+
# Dry-run validate after transform (stdout summary)
|
|
19
|
+
npx memorix-format migrate ./export-dir/ --content-type=snapshots
|
|
20
|
+
|
|
21
|
+
# Write cleaned files
|
|
22
|
+
npx memorix-format migrate ./export-dir/ --out=./clean-dir/
|
|
23
|
+
|
|
24
|
+
# Or overwrite in place after validation passes
|
|
25
|
+
npx memorix-format migrate ./records.json --in-place
|
|
17
26
|
```
|
|
18
27
|
|
|
28
|
+
Defaults applied by migrate:
|
|
29
|
+
|
|
30
|
+
- `concept.identifier` → `concept._extIdentifier` (`identifierKey` → `key`)
|
|
31
|
+
- root `identity` / `lifecycle` / `sourceFacts` / `index` removed (lifecycle events folded into `_system.lifecycle`)
|
|
32
|
+
- root `_graphRuns` / `_jobTypeRuns` → under `_system`
|
|
33
|
+
- `_system.state` set to `active` when missing (maps old `lifecycle.status` when present)
|
|
34
|
+
|
|
35
|
+
Writers set `_system.state: "active"` on new records. Pipeline format enforce defaults to **hard** (`MEMORIX_FORMAT_ENFORCE=warn` to soften during cutover).
|
|
36
|
+
|
|
19
37
|
## Install
|
|
20
38
|
|
|
21
39
|
```bash
|
|
@@ -72,6 +72,7 @@
|
|
|
72
72
|
"allContentTypesCoveredInContentTypesJson": true,
|
|
73
73
|
"platformOpenBucketsPresentInOpenBucketsJson": ["analytics", "enrichment", "insights"],
|
|
74
74
|
"associatedNamesFollowPrefixConvention": true,
|
|
75
|
-
"noObjectTypesInFormatLawJson": true
|
|
75
|
+
"noObjectTypesInFormatLawJson": true,
|
|
76
|
+
"conceptRecipesOnEntityDescriptors": true
|
|
76
77
|
}
|
|
77
78
|
}
|
package/package.json
CHANGED