animader-cli 0.7.0 → 0.8.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/lib/score.mjs +19 -0
- package/package.json +2 -2
- package/toolchain/manifest.json +4 -4
package/lib/score.mjs
CHANGED
|
@@ -71,16 +71,35 @@ function messagesOf(diagnostics) {
|
|
|
71
71
|
return messages.length > 0 ? messages.join('; ') : 'no diagnostics were answered';
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
+
/** pngine 4.5's additive identity row: a qualified `<buffer>:<path>` key
|
|
75
|
+
* whose value is metadata, not a reflected field, so it has no WGSL type.
|
|
76
|
+
* The key must be the row's own `qualifiedName` and the row must carry a
|
|
77
|
+
* string `path`; anything else without a type stays a named reflection
|
|
78
|
+
* failure. */
|
|
79
|
+
function isQualifiedIdentity(fieldName, field) {
|
|
80
|
+
return field !== null
|
|
81
|
+
&& typeof field === 'object'
|
|
82
|
+
&& field.qualifiedName === fieldName
|
|
83
|
+
&& typeof field.path === 'string'
|
|
84
|
+
&& typeof field.type === 'undefined';
|
|
85
|
+
}
|
|
86
|
+
|
|
74
87
|
/**
|
|
75
88
|
* The reflection stage shared by both score spellings: validate the
|
|
76
89
|
* compiled program's own table, join exactly the targets it can carry,
|
|
77
90
|
* then refuse an empty target list before any compile runs.
|
|
91
|
+
*
|
|
92
|
+
* The browser's merged table carries the typed fields AND pngine 4.5's
|
|
93
|
+
* additive qualified identity rows, so the identities are skipped as
|
|
94
|
+
* non-targets (`buildJoin` already drops them by type). A genuinely
|
|
95
|
+
* malformed typed field is still a named reflection failure.
|
|
78
96
|
*/
|
|
79
97
|
export function reflectedJoin(reflection, name) {
|
|
80
98
|
// The join is the reflection's own target list, in its table order; an
|
|
81
99
|
// empty one means the program declares nothing a score can address. A
|
|
82
100
|
// malformed field is a named reflection failure, never a guessed target.
|
|
83
101
|
for (const [fieldName, field] of Object.entries(reflection)) {
|
|
102
|
+
if (isQualifiedIdentity(fieldName, field)) continue;
|
|
84
103
|
if (!field || typeof field !== 'object' || typeof field.type !== 'string' || field.type === '') {
|
|
85
104
|
throw new ShowError(
|
|
86
105
|
'bad_reflection',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "animader-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "The animader command line: project creation, dev server, build, standalone export and host/project doctor checks",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
},
|
|
12
12
|
"license": "CC0-1.0",
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"animader": "0.
|
|
14
|
+
"animader": "0.8.0",
|
|
15
15
|
"esbuild": "0.24.2",
|
|
16
16
|
"@mr_hugo/pacer": "0.2.0",
|
|
17
17
|
"pngine": "4.5.0"
|
package/toolchain/manifest.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"format": "animader-toolchain/1",
|
|
3
|
-
"toolchainVersion": "0.
|
|
3
|
+
"toolchainVersion": "0.8.0",
|
|
4
4
|
"target": {
|
|
5
5
|
"os": "darwin",
|
|
6
6
|
"arch": "arm64"
|
|
7
7
|
},
|
|
8
|
-
"createdAt": "2026-12-
|
|
8
|
+
"createdAt": "2026-12-04T22:48:57.349Z",
|
|
9
9
|
"producers": {
|
|
10
10
|
"animader": {
|
|
11
|
-
"version": "0.
|
|
12
|
-
"revision": "
|
|
11
|
+
"version": "0.8.0",
|
|
12
|
+
"revision": "24b3374e2a50c85583740bd915456618a4656233"
|
|
13
13
|
},
|
|
14
14
|
"pngine": {
|
|
15
15
|
"version": "4.5.0",
|