@aikdna/kdna-studio-core 1.3.0 → 1.3.2
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/package.json +4 -2
- package/src/compile/index.js +3 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aikdna/kdna-studio-core",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.2",
|
|
4
4
|
"description": "Studio-compatible authoring kernel for Human Lock, compile, and export of trusted .kdna assets.",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -22,6 +22,8 @@
|
|
|
22
22
|
"node": ">=18"
|
|
23
23
|
},
|
|
24
24
|
"scripts": {
|
|
25
|
-
"
|
|
25
|
+
"lint": "find src tests -name '*.js' -print0 | xargs -0 -n1 node --check",
|
|
26
|
+
"test": "node --test tests/*.test.js",
|
|
27
|
+
"test:all": "npm run lint && npm test"
|
|
26
28
|
}
|
|
27
29
|
}
|
package/src/compile/index.js
CHANGED
|
@@ -399,11 +399,9 @@ function compileDomain(project) {
|
|
|
399
399
|
|
|
400
400
|
// ── KDNA Card (governance metadata) ─────────────────────────────
|
|
401
401
|
const provenance = require('../provenance').buildProvenance(project, files, identity);
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
files['KDNA_CARD.json'] = JSON.stringify(kdnaCard, null, 2);
|
|
406
|
-
}
|
|
402
|
+
const { generateKdnaCard } = require('../governance');
|
|
403
|
+
const kdnaCard = generateKdnaCard(project, {}, provenance);
|
|
404
|
+
files['KDNA_CARD.json'] = JSON.stringify(kdnaCard, null, 2);
|
|
407
405
|
|
|
408
406
|
const excludedCount = cards.filter(c => !c.locked && !['deprecated'].includes(c.status)).length;
|
|
409
407
|
const stats = {
|