Axel Meyer b1743ad19f Add CLI dispatcher and bin entry
Top-level run(argv,{out,err}) accepts an injectable output sink so
handlers can be unit-tested without spawning a subprocess. Handler
map is empty for now; subcommands are wired in as they land.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-23 13:44:10 +02:00
2026-05-23 13:44:10 +02:00
2026-05-23 13:44:10 +02:00
2026-05-23 13:44:10 +02:00
2026-05-23 13:38:02 +02:00
2026-05-23 13:38:02 +02:00

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.
Readme 58 KiB
Languages
JavaScript 100%