$worker
shell
v0.3.5Unix shell + filesystem worker — exec with allowlist/denylist/timeout/output caps and background jobs; fs::ls|stat|mkdir|rm|chmod|mv|grep|sed|read|write with host jail, denylist, size caps, and sandbox-target forwarding
- macOS: arm64 · x64
- Linux: arm64 · armv7 · x64
skill doc
skills/ls.md
Listing a directory inside the jail
When to use
- Enumerating filenames before reading; cheaper than
shell::fs::grepwhen only names are needed. - Confirming a path is a directory before recursing.
- Building a file picker or orchestration call that wants a structured listing.
Notes
pathmust be absolute. Anything outsidecfg.fs.host_rootis refused; the path denylist (cfg.fs.denylist_paths) refuses inside the jail too.- Symlinks are not followed; an entry's
is_dirreflects the link itself andis_symlinkistrue. modeis an octal string (e.g."0755");mtimeis epoch seconds, not milliseconds.JobRecord.*_at_msare ms butFsEntry.mtimeis seconds.- The wire shape mirrors the engine's
sandbox::fs::ls, so host and sandbox targets are interchangeable from the caller's point of view.