@moonwitness/assets 7.1.1 → 7.1.3
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 +3 -3
- package/package.json +15 -15
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ Framework-independent visual assets for MoonWitness. `mw-design` is the only UI
|
|
|
10
10
|
|
|
11
11
|
## Generate and export
|
|
12
12
|
|
|
13
|
-
The published package contains generated assets, the manifest, license provenance, and usage documentation. In the MoonWitness repository, maintainers can run `
|
|
13
|
+
The published package contains generated assets, the manifest, license provenance, and usage documentation. In the MoonWitness repository, maintainers can run `bun --filter @moonwitness/assets qa` and the preparation scripts under `packages/assets` (`brand:prepare`, `fonts:prepare`, `font:brand:generate`, `artwork:prepare`, `artwork:derivatives`, `artwork:layers`, `animation:generate`, `sounds:ambience`, `contact-sheets`, `inventory`) to regenerate SVG files, Road Rage's display subset, responsive artwork crops, original short interface cues, contact sheets, and the manifest, and to check that files under the asset directories match `manifest.json` along with SVG integrity and sound provenance. Font subset source, license, and hashes are cross-checked against `licenses.json`. The social-card orbit rings are the only intentional bleed and are explicitly listed in that check. `sharp` and `subset-font` are build-only tools, not runtime dependencies.
|
|
14
14
|
|
|
15
15
|
Consumers can import a static asset through a package export, for example:
|
|
16
16
|
|
|
@@ -27,11 +27,11 @@ Consumers can import a static asset through a package export, for example:
|
|
|
27
27
|
|
|
28
28
|
## Optional scene ambience
|
|
29
29
|
|
|
30
|
-
`
|
|
30
|
+
`bun --filter @moonwitness/assets sounds:ambience` regenerates the four original, three-second Moon City ambience loops from `scripts/generate-scene-ambience.mjs`. They are seeded, loop-continuous 8 kHz mono PCM textures, each below the 25 KiB runtime sound budget. `licenses.json` records MoonWitness authorship and ISC provenance; no recordings, licensed music, or external audio are included. UI SFX and optional scene ambience remain separate assets and consumers must keep ambience muted until explicit user consent.
|
|
31
31
|
|
|
32
32
|
## Source inventory and scene contracts
|
|
33
33
|
|
|
34
|
-
Use `
|
|
34
|
+
Use `bun --filter @moonwitness/assets inventory -- --pack=moon-city` to query the canonical manifest by `pack`, `category`, `subject`, `domain`, `format`, or `status`. The report marks source-only and rights-blocked entries and audits missing files, unlisted files, and unresolved source/variant references. High-resolution `source/` material remains outside the published package file list.
|
|
35
35
|
|
|
36
36
|
Internal scene descriptors are presentation-only JSON. `scripts/scene-schema.mjs` validates ordered layers, canonical asset references, normalized placement/pivots, bounded parallax, static fallbacks, animation clip references, and acyclic scene composition. Clip frames carry explicit durations and playback direction. Unknown fields are rejected so routes, permissions, user/business records, and secrets cannot enter these descriptors. The validator is an internal authoring contract, not a runtime dependency or ORM/API surface.
|
|
37
37
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moonwitness/assets",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.3",
|
|
4
4
|
"description": "Framework-independent MoonWitness brand and visual assets",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -29,17 +29,17 @@
|
|
|
29
29
|
"node": ">=22"
|
|
30
30
|
},
|
|
31
31
|
"scripts": {
|
|
32
|
-
"inventory": "
|
|
33
|
-
"brand:prepare": "
|
|
34
|
-
"fonts:prepare": "
|
|
35
|
-
"font:brand:generate": "
|
|
36
|
-
"artwork:prepare": "
|
|
37
|
-
"artwork:derivatives": "
|
|
38
|
-
"artwork:layers": "
|
|
39
|
-
"animation:generate": "
|
|
40
|
-
"sounds:ambience": "
|
|
41
|
-
"contact-sheets": "
|
|
42
|
-
"qa": "
|
|
32
|
+
"inventory": "bun run scripts/asset-inventory.mjs",
|
|
33
|
+
"brand:prepare": "bun run scripts/prepare-brand-master.mjs",
|
|
34
|
+
"fonts:prepare": "bun run scripts/prepare-fonts.mjs",
|
|
35
|
+
"font:brand:generate": "bun run scripts/generate-brand-font.mjs",
|
|
36
|
+
"artwork:prepare": "bun run scripts/prepare-artwork.mjs",
|
|
37
|
+
"artwork:derivatives": "bun run scripts/responsive-derivatives.mjs",
|
|
38
|
+
"artwork:layers": "bun run scripts/layered-art-pipeline.mjs",
|
|
39
|
+
"animation:generate": "bun run scripts/generate-crew-animation.mjs",
|
|
40
|
+
"sounds:ambience": "bun run scripts/generate-scene-ambience.mjs",
|
|
41
|
+
"contact-sheets": "bun run scripts/generate-contact-sheets.mjs",
|
|
42
|
+
"qa": "bun run scripts/asset-qa.mjs"
|
|
43
43
|
},
|
|
44
44
|
"files": [
|
|
45
45
|
"brand",
|
|
@@ -81,8 +81,8 @@
|
|
|
81
81
|
"./scenes/*": "./scenes/*"
|
|
82
82
|
},
|
|
83
83
|
"devDependencies": {
|
|
84
|
-
"opentype.js": "
|
|
85
|
-
"sharp": "0.35.
|
|
86
|
-
"subset-font": "
|
|
84
|
+
"opentype.js": "2.0.0",
|
|
85
|
+
"sharp": "0.35.6",
|
|
86
|
+
"subset-font": "2.10.0"
|
|
87
87
|
}
|
|
88
88
|
}
|