Skip to content

safe-bash: add bzip2/xz/zstd (de)compression #688

Description

@kamilio

Missing: bzip2/bunzip2/bzcat, xz/unxz/xzcat, zstd/unzstd/zstdcat. Only gzip/gunzip/zcat exist. (The xz/zstd/bzip2 strings in search/file-types.ts are extension detection for rg -t, not real codecs.)

Behavior: mirror the existing bounded gzip commands (streaming, -d, -c, -k, per-chunk + aggregate output-budget caps so decompression bombs are bounded). zstd is increasingly the default in modern toolchains. Prefer a portable codec so this also works on the Workers/no-nodejs_compat bundle (see #672).

From the safe-bash command gap analysis (2026-09-08). Sandbox constraints apply: bounded input/CPU/memory, VFS-only paths, cooperative cancellation, no host process/network beyond the existing curl authorizer.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions