Commit graph

1 commit

Author SHA1 Message Date
Kelsi
cdfb55c477 feat(editor): add --info-magic auto-detect inspector
Reads the first 4 bytes of any file, looks the magic up in
the format table, and reports: format name, file extension,
category, plus the standard catalog header fields (version,
catalog name, entry count) for any of the 33 catalog formats
that share the magic+version+name+entryCount layout.

Also suggests the matching --info-* flag so users who receive
.w* files without context can route to the right inspector
in one step. World/asset formats (WOM/WOB/WHM/WOT/WOW) are
recognized by magic but the catalog-style header probe is
skipped (their layouts differ).

Returns exit 1 + 'unrecognized' message on non-Wowee files.
Supports --json variant for tooling integration.
2026-05-09 19:16:26 -07:00