Pack an in-memory file map into .cap bytes. Hand-authored manifest.json/routes.json are preserved; missing ones are generated. security.json is always (re)generated.
Compute SHA-256 checksums and write security.json into a package directory.
Pack an in-memory file map into .cap bytes. Hand-authored manifest.json/routes.json are preserved; missing ones are generated. security.json is always (re)generated.