@blueforge-studio/gas-asset-schema

GAS asset identity — open-vocabulary asset kinds (gas:// refs, custom:<slug> extension) and content-addressed asset references, shared across BlueForge repos (Zod schemas).

Package Info

Latest Version0.1.1
LicenseUNLICENSED
Keywords-
Repository-
Author-
Homepage-
Bugs-

Versions

VersionPublished
0.1.12026-10-02
0.1.02026-10-02

Per-version supply chain

VersionSigSBOMAtt
0.1.1
0.1.0

Click a version to view its details.

Supply chain

Provenance

Published by
web:14
When
2026-10-02T12:26:35Z
sha256 (registry-computed)
c4ee90941e3e5981bf31c1c54c0ea6706abf044da400948cf84ef8b15f5d352b

Observed by the registry at publish.

Claimed by the build

The publisher claimed nothing about its build.

Attachments

Signature
none
SBOM
none

Dependencies

Loading dependency graph...

README

@blueforge-studio/gas-asset-schema

GAS asset identity — the shared brick for addressing assets across BlueForge repos: open-vocabulary asset kinds (gas:// refs, custom:<slug> extension) and content-addressed asset references (Zod schemas).

Sibling of @blueforge-studio/gas-passport-schema (verification manifests) and @blueforge-studio/gas-lore-schema (lore vocabularies) — deliberately its own package so asset addressing can move without forcing a release on every lore consumer.

Surface

  • GAS_ASSET_KINDS — the 14 known kinds (const tuple; the type is derived from it so schema and type cannot drift).
  • GasAssetKindSchema — open: known names or custom:<slug>. The closed set is a convenience default, not a ceiling.
  • GasAssetIdSchema — gas://<kind>/<name>[@semver].
  • GasAssetRefSchema — { id, variant?, licence?, contentHash? }, strict.
  • validateAssetRef() — structured warnings, never throws.

The contentHash rule

contentHash is staged: optional and verified when present, required only once a resolver exists. CAS refs resolve storage, not semantic version — pin freely for immutable binaries (meshes), sparingly for authored content (biomes, lore), where a typo fix must not invalidate referencing documents.

Conventions

Same as the other schema packages (gas-lore-schema spec §2): Zod is the source of truth, entities .strict(), fields camelCase, enum values snake_case, extension values custom:<slug>. Validation helpers return warnings and never throw.