f516e2acda593ff8d61dfd93e37326379d671506
Reads the DSL file, parses to AST, loads all --atlas-dir paths into a registry, runs the builder, and writes pretty-printed JSON. The output filename's basename becomes the map id when the DSL has no 'id' directive. Parser and builder errors are surfaced as '<file>:<line>: <message>'. Also reorders the duplicate-atlas warning so the atlas_id appears before the word 'duplicate'.
sporel-tool-mapper
Standalone CLI for v2 Sporel map files.
Status
v0.1.0 — initial scaffold. See docs/superpowers/specs/2026-05-23-sporel-tool-mapper-design.md in sporel-meta for the full spec.
Subcommands
encode <atlas_idx> <tile_id> [rotation]decode <gid>build <spec.txt> <out.json> [--atlas-dir <path> ...]inspect <map.json> [--atlas-dir <path> ...]
(Detailed usage and examples are added in Task 12.)
Description
CLI for v2 Sporel map files: encode/decode packed-u32 GIDs, build maps from a text DSL, inspect stats.
Languages
JavaScript
100%