@refrakt-md/cli 0.33.0 → 0.35.0
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/dist/bin.js +140 -43
- package/dist/bin.js.map +1 -1
- package/dist/commands/config.js +10 -2
- package/dist/commands/config.js.map +1 -1
- package/dist/commands/contracts.d.ts +10 -0
- package/dist/commands/contracts.d.ts.map +1 -1
- package/dist/commands/contracts.js +13 -1
- package/dist/commands/contracts.js.map +1 -1
- package/dist/commands/edit.d.ts.map +1 -1
- package/dist/commands/edit.js +13 -5
- package/dist/commands/edit.js.map +1 -1
- package/dist/commands/gallery.d.ts.map +1 -1
- package/dist/commands/gallery.js +30 -12
- package/dist/commands/gallery.js.map +1 -1
- package/dist/commands/inspect.d.ts.map +1 -1
- package/dist/commands/inspect.js +72 -15
- package/dist/commands/inspect.js.map +1 -1
- package/dist/commands/install.d.ts.map +1 -1
- package/dist/commands/install.js +16 -4
- package/dist/commands/install.js.map +1 -1
- package/dist/commands/migrate.js +2 -2
- package/dist/commands/migrate.js.map +1 -1
- package/dist/commands/plugin-validate.d.ts.map +1 -1
- package/dist/commands/plugin-validate.js +59 -16
- package/dist/commands/plugin-validate.js.map +1 -1
- package/dist/commands/plugins.d.ts.map +1 -1
- package/dist/commands/plugins.js.map +1 -1
- package/dist/commands/presets.d.ts.map +1 -1
- package/dist/commands/presets.js +11 -2
- package/dist/commands/presets.js.map +1 -1
- package/dist/commands/reference.d.ts.map +1 -1
- package/dist/commands/reference.js +8 -8
- package/dist/commands/reference.js.map +1 -1
- package/dist/commands/template.d.ts.map +1 -1
- package/dist/commands/template.js +19 -5
- package/dist/commands/template.js.map +1 -1
- package/dist/commands/theme.d.ts.map +1 -1
- package/dist/commands/theme.js +7 -3
- package/dist/commands/theme.js.map +1 -1
- package/dist/commands/validate.d.ts.map +1 -1
- package/dist/commands/validate.js +1 -1
- package/dist/commands/validate.js.map +1 -1
- package/dist/commands/write.d.ts.map +1 -1
- package/dist/commands/write.js.map +1 -1
- package/dist/config-file.d.ts.map +1 -1
- package/dist/config-file.js +1 -1
- package/dist/config-file.js.map +1 -1
- package/dist/config.js.map +1 -1
- package/dist/lib/css-resolve.d.ts.map +1 -1
- package/dist/lib/css-resolve.js +2 -2
- package/dist/lib/css-resolve.js.map +1 -1
- package/dist/lib/dimension-audit.d.ts.map +1 -1
- package/dist/lib/dimension-audit.js +14 -6
- package/dist/lib/dimension-audit.js.map +1 -1
- package/dist/lib/fixtures.d.ts.map +1 -1
- package/dist/lib/fixtures.js.map +1 -1
- package/dist/lib/format.d.ts +2 -0
- package/dist/lib/format.d.ts.map +1 -1
- package/dist/lib/format.js +54 -33
- package/dist/lib/format.js.map +1 -1
- package/dist/lib/gallery.d.ts.map +1 -1
- package/dist/lib/gallery.js +9 -3
- package/dist/lib/gallery.js.map +1 -1
- package/dist/lib/lazy-ai.d.ts.map +1 -1
- package/dist/lib/lazy-ai.js.map +1 -1
- package/dist/lib/meta-audit.d.ts.map +1 -1
- package/dist/lib/meta-audit.js +4 -2
- package/dist/lib/meta-audit.js.map +1 -1
- package/dist/lib/plugins.js.map +1 -1
- package/dist/lib/schema-row.d.ts +28 -0
- package/dist/lib/schema-row.d.ts.map +1 -0
- package/dist/lib/schema-row.js +149 -0
- package/dist/lib/schema-row.js.map +1 -0
- package/dist/lib/variants.d.ts.map +1 -1
- package/dist/lib/variants.js.map +1 -1
- package/package.json +6 -6
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { findByName } from '@refrakt-md/runes';
|
|
2
|
+
/**
|
|
3
|
+
* Find sources the rune's rendered output does not provide.
|
|
4
|
+
*
|
|
5
|
+
* Mechanically checkable, unlike a wrong schema.org type — which is exactly why
|
|
6
|
+
* it is worth a tool. A table naming a `data-name` the rune never emits is the
|
|
7
|
+
* failure mode WORK-561 exists to prevent and that every later migration can
|
|
8
|
+
* reintroduce, and it fails *silently*: the property is simply absent from the
|
|
9
|
+
* published graph.
|
|
10
|
+
*
|
|
11
|
+
* A source resolves if a node carries the name, or if the field bag has it —
|
|
12
|
+
* the same two routes the applier has, checked the same way.
|
|
13
|
+
*/
|
|
14
|
+
export function auditSchemaSources(row, tree, declaredAttributes = []) {
|
|
15
|
+
const bag = collectBags(tree);
|
|
16
|
+
// A source is resolvable if the rune *can* emit it, not merely if this one
|
|
17
|
+
// fixture did. An optional attribute the fixture leaves unset — `rating` on
|
|
18
|
+
// `testimonial` — produces no node and no bag entry, and flagging that would
|
|
19
|
+
// report the table as broken when it is correct and the input is simply
|
|
20
|
+
// minimal. Matching the rune's declared attributes is what separates "this
|
|
21
|
+
// input did not exercise it" from the failure mode actually worth catching:
|
|
22
|
+
// a source name that is a typo or a rename, which resolves to nothing ever.
|
|
23
|
+
const declared = new Set();
|
|
24
|
+
for (const name of declaredAttributes) {
|
|
25
|
+
declared.add(name);
|
|
26
|
+
declared.add(kebab(name));
|
|
27
|
+
}
|
|
28
|
+
// The child keys this row retypes. A parent source must not be judged
|
|
29
|
+
// resolved by a stamp that a *child* row produced: `playlist` maps `headline`
|
|
30
|
+
// and its items map `track-name`, both to `name`, and looking at the whole
|
|
31
|
+
// tree would let either cover for the other's typo.
|
|
32
|
+
const childNames = new Set(row.children.map((c) => c.rune));
|
|
33
|
+
const unresolved = [];
|
|
34
|
+
for (const entry of row.properties) {
|
|
35
|
+
// A generated value has no source to resolve — that is what makes it
|
|
36
|
+
// generated.
|
|
37
|
+
if (entry.kind === 'generated')
|
|
38
|
+
continue;
|
|
39
|
+
// A `children:` mapping names sources on nodes *another rune* emitted, with
|
|
40
|
+
// their own attributes and their own bag. Auditing those against this
|
|
41
|
+
// rune's tree and this rune's declared attributes reports every one of them
|
|
42
|
+
// as broken — which is how a check stops being read. Resolve them against
|
|
43
|
+
// the children themselves, and say nothing when the input contains none:
|
|
44
|
+
// that is "this fixture did not exercise it", not "this row is wrong".
|
|
45
|
+
if (entry.scope === 'child' && entry.entity) {
|
|
46
|
+
const children = findChildren(tree, entry.entity);
|
|
47
|
+
if (children.length === 0)
|
|
48
|
+
continue;
|
|
49
|
+
// The most direct evidence there is: the property this row maps to is
|
|
50
|
+
// stamped on the child, so the source resolved to *something*. The
|
|
51
|
+
// applier clears a retyped child's stamps before re-applying, so
|
|
52
|
+
// anything present came from this row.
|
|
53
|
+
if (children.some((c) => hasProperty(c, entry.property, childNames)))
|
|
54
|
+
continue;
|
|
55
|
+
if (children.some((c) => findByName(c, entry.source)))
|
|
56
|
+
continue;
|
|
57
|
+
if (children.some((c) => Object.hasOwn(collectBags(c), entry.source)))
|
|
58
|
+
continue;
|
|
59
|
+
unresolved.push({ source: entry.source, property: entry.property, entity: entry.entity });
|
|
60
|
+
continue;
|
|
61
|
+
}
|
|
62
|
+
// The same evidence for the rune's own sources, and for a rebuilt one it is
|
|
63
|
+
// the only evidence left: the identity transform consumes
|
|
64
|
+
// `data-rune-fields`, and this audit reads the rendered tree, so a source
|
|
65
|
+
// the applier recovered from the bag leaves no trace of the bag behind —
|
|
66
|
+
// only the carrier it built. Children are excluded, per `childNames`.
|
|
67
|
+
if (hasProperty(tree, entry.property, childNames))
|
|
68
|
+
continue;
|
|
69
|
+
if (findByName(tree, entry.source))
|
|
70
|
+
continue;
|
|
71
|
+
if (Object.hasOwn(bag, entry.source))
|
|
72
|
+
continue;
|
|
73
|
+
if (declared.has(entry.source) || declared.has(kebab(entry.source)))
|
|
74
|
+
continue;
|
|
75
|
+
unresolved.push({ source: entry.source, property: entry.property, entity: entry.entity });
|
|
76
|
+
}
|
|
77
|
+
return unresolved;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Does any node in this subtree carry `property="<name>"`?
|
|
81
|
+
*
|
|
82
|
+
* `skip` names child keys whose subtrees are somebody else's row to answer for;
|
|
83
|
+
* a node matching one is not descended into, and is itself skipped unless it is
|
|
84
|
+
* the subtree being asked about.
|
|
85
|
+
*/
|
|
86
|
+
function hasProperty(node, property, skip = new Set(), top = true) {
|
|
87
|
+
if (Array.isArray(node))
|
|
88
|
+
return node.some((c) => hasProperty(c, property, skip, top));
|
|
89
|
+
if (!node || typeof node !== 'object')
|
|
90
|
+
return false;
|
|
91
|
+
const attrs = node.attributes ?? {};
|
|
92
|
+
if (!top && skip.size > 0 && isChildOf(attrs, skip))
|
|
93
|
+
return false;
|
|
94
|
+
if (attrs.property === property)
|
|
95
|
+
return true;
|
|
96
|
+
return (node.children ?? []).some((c) => hasProperty(c, property, skip, false));
|
|
97
|
+
}
|
|
98
|
+
const isChildOf = (attrs, names) => names.has(attrs['data-rune']) ||
|
|
99
|
+
names.has(attrs['data-name']) ||
|
|
100
|
+
names.has(attrs['data-field']);
|
|
101
|
+
/**
|
|
102
|
+
* The nodes a `children:` row applies to — the same match the applier makes.
|
|
103
|
+
*
|
|
104
|
+
* Kept in step with `findChildren` in the applier deliberately: an audit that
|
|
105
|
+
* looked in different nodes than the mechanism does would report on a population
|
|
106
|
+
* nobody maps.
|
|
107
|
+
*/
|
|
108
|
+
function findChildren(node, name, out = []) {
|
|
109
|
+
if (Array.isArray(node)) {
|
|
110
|
+
for (const c of node)
|
|
111
|
+
findChildren(c, name, out);
|
|
112
|
+
return out;
|
|
113
|
+
}
|
|
114
|
+
if (!node || typeof node !== 'object')
|
|
115
|
+
return out;
|
|
116
|
+
const attrs = node.attributes ?? {};
|
|
117
|
+
if (attrs['data-rune'] === name || attrs['data-name'] === name || attrs['data-field'] === name) {
|
|
118
|
+
out.push(node);
|
|
119
|
+
}
|
|
120
|
+
for (const c of node.children ?? [])
|
|
121
|
+
findChildren(c, name, out);
|
|
122
|
+
return out;
|
|
123
|
+
}
|
|
124
|
+
const kebab = (s) => s.replace(/([a-z0-9])([A-Z])/g, '$1-$2').toLowerCase();
|
|
125
|
+
/** Every `data-rune-fields` bag in the tree, merged. */
|
|
126
|
+
function collectBags(node, into = {}) {
|
|
127
|
+
if (Array.isArray(node)) {
|
|
128
|
+
for (const child of node)
|
|
129
|
+
collectBags(child, into);
|
|
130
|
+
return into;
|
|
131
|
+
}
|
|
132
|
+
if (!node || typeof node !== 'object')
|
|
133
|
+
return into;
|
|
134
|
+
const attrs = node.attributes;
|
|
135
|
+
const raw = attrs?.['data-rune-fields'];
|
|
136
|
+
if (typeof raw === 'string') {
|
|
137
|
+
try {
|
|
138
|
+
Object.assign(into, JSON.parse(raw));
|
|
139
|
+
}
|
|
140
|
+
catch {
|
|
141
|
+
// A malformed bag is a defect elsewhere; the audit reports the sources
|
|
142
|
+
// it could not resolve either way.
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
for (const child of node.children ?? [])
|
|
146
|
+
collectBags(child, into);
|
|
147
|
+
return into;
|
|
148
|
+
}
|
|
149
|
+
//# sourceMappingURL=schema-row.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema-row.js","sourceRoot":"","sources":["../../src/lib/schema-row.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAkB/C;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,kBAAkB,CACjC,GAAsB,EACtB,IAAa,EACb,qBAA+B,EAAE;IAEjC,MAAM,GAAG,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC;IAC9B,2EAA2E;IAC3E,4EAA4E;IAC5E,6EAA6E;IAC7E,wEAAwE;IACxE,2EAA2E;IAC3E,4EAA4E;IAC5E,4EAA4E;IAC5E,MAAM,QAAQ,GAAG,IAAI,GAAG,EAAU,CAAC;IACnC,KAAK,MAAM,IAAI,IAAI,kBAAkB,EAAE,CAAC;QACvC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QACnB,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;IAC3B,CAAC;IAED,sEAAsE;IACtE,8EAA8E;IAC9E,2EAA2E;IAC3E,oDAAoD;IACpD,MAAM,UAAU,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,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MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAYzE;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,
|
|
1
|
+
{"version":3,"file":"variants.d.ts","sourceRoot":"","sources":["../../src/lib/variants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE/C;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAYzE;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAClC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC3B;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,EAAE,CAAA;CAAE,GAAG,IAAI,CAS3C"}
|
package/dist/lib/variants.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"variants.js","sourceRoot":"","sources":["../../src/lib/variants.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,MAAM,UAAU,gBAAgB,CAAC,MAAc;IAC9C,MAAM,QAAQ,GAA6B,EAAE,CAAC;IAE9C,IAAI,CAAC,MAAM,CAAC,UAAU;QAAE,OAAO,QAAQ,CAAC;IAExC,KAAK,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,UAAU,CAAC,EAAE,CAAC;QAC9D,IAAI,IAAI,CAAC,OAAO,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC5E,QAAQ,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QAC3C,CAAC;IACF,CAAC;IAED,OAAO,QAAQ,CAAC;AACjB,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,mBAAmB,
|
|
1
|
+
{"version":3,"file":"variants.js","sourceRoot":"","sources":["../../src/lib/variants.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,MAAM,UAAU,gBAAgB,CAAC,MAAc;IAC9C,MAAM,QAAQ,GAA6B,EAAE,CAAC;IAE9C,IAAI,CAAC,MAAM,CAAC,UAAU;QAAE,OAAO,QAAQ,CAAC;IAExC,KAAK,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,UAAU,CAAC,EAAE,CAAC;QAC9D,IAAI,IAAI,CAAC,OAAO,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC5E,QAAQ,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QAC3C,CAAC;IACF,CAAC;IAED,OAAO,QAAQ,CAAC;AACjB,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,mBAAmB,CAClC,KAA6B;IAE7B,8EAA8E;IAC9E,gEAAgE;IAChE,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QAClD,IAAI,KAAK,KAAK,KAAK,EAAE,CAAC;YACrB,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,CAAC,6BAA6B;QAChE,CAAC;IACF,CAAC;IACD,OAAO,IAAI,CAAC;AACb,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@refrakt-md/cli",
|
|
3
3
|
"description": "CLI tools for refrakt.md",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.35.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@markdoc/markdoc": "0.4.0",
|
|
39
|
-
"@refrakt-md/ai": "0.
|
|
40
|
-
"@refrakt-md/editor": "0.
|
|
41
|
-
"@refrakt-md/html": "0.
|
|
42
|
-
"@refrakt-md/runes": "0.
|
|
43
|
-
"@refrakt-md/transform": "0.
|
|
39
|
+
"@refrakt-md/ai": "0.35.0",
|
|
40
|
+
"@refrakt-md/editor": "0.35.0",
|
|
41
|
+
"@refrakt-md/html": "0.35.0",
|
|
42
|
+
"@refrakt-md/runes": "0.35.0",
|
|
43
|
+
"@refrakt-md/transform": "0.35.0",
|
|
44
44
|
"esbuild": "^0.27.5",
|
|
45
45
|
"postcss": "^8.4.0"
|
|
46
46
|
}
|