TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/WyattBrashear/507ex-utils2/llms.txt
Use this file to discover all available pages before exploring further.
exec command is the primary way to run a .507ex package. It parses the FZX2 metadata header, optionally installs dependencies, verifies the BLAKE2s hash of the embedded ZIP payload, extracts the archive into an isolated runtime directory, executes the runfile command, and removes all temporary files when finished. The path argument accepts either a local file path or an http:///https:// URL pointing to a CAR server endpoint.
Usage
Path to a local
.507ex file, or an http:// / https:// URL to a CAR server. When a URL is provided, fzx2 prompts for a secret code, downloads the executable, then proceeds with the standard execution flow.How it works
Download from CAR server (URL only)
When the path starts with
http:// or https://, fzx2 prompts for a secret code, hashes it with SHA-256, and POSTs it to the provided URL. A 401 response means the code was invalid. The downloaded content is saved as tmp.507ex in the current directory.Parse the metadata header
The file is opened and read line by line. The magic bytes
FZX2 must appear on the first line; if not, execution aborts with Invalid Executable!. The parser extracts 507ex-hash, 507ex-hashmode, 507ex-id, and the 507ex-depends flag.Install dependencies (if present)
If Answering
507ex-depends is True, you are prompted:n aborts execution. Answering y causes fzx2 to iterate over the dependency block, running each listed command using the system shell for the matching platform (* matches all platforms).Verify the BLAKE2s hash
After the header,
fzx2 reads the raw ZIP payload bytes and computes their BLAKE2s digest. If it does not match the 507ex-hash value embedded in the header, execution stops with Hash Verification Failed. Executable may have been damaged.Extract to an isolated runtime directory
A directory
.fzx2-runtime/<exec_id>/ is created in the current working directory. The ZIP payload is extracted there.Run the runfile
The
runfile found in the extracted directory is read and passed to the system shell. All output is forwarded to your terminal.Interactive prompts
| Prompt | When shown | Expected input |
|---|---|---|
Please enter the secret code: | Path is a CAR server URL | The secret code printed by fzx2 upload |
Executable has dependencies that it wants to install. Continue? (y/n) | 507ex-depends is True | y to install, n to abort |
Examples
CAR server session
Runtime directory layout
While a.507ex file is executing, the following temporary structure exists on disk:
Errors
| Message | Cause |
|---|---|
Invalid Executable! | The file does not begin with the FZX2 magic bytes. |
Your Secret Code is invalid! | The CAR server returned HTTP 401. |
Hash Verification Failed. Executable may have been damaged. | The BLAKE2s digest of the ZIP payload does not match the header. |
Aborted! | The user answered n to the dependency install prompt. |
Exiting 507ex enviornment... | The runfile raised an exception or Ctrl+C was pressed. |
Pressing
Ctrl+C during execution triggers a clean shutdown: the runtime directory is removed and tmp.507ex is deleted if it was downloaded from a CAR server.