StructsΒ§
- Builtin
Spec - Static metadata for the builtin ops. Used by main.rs to declare them against atlas at startup so pilot can discover them like any other provider.
- CmdArgs π
- DocArgs π
- List
Args π - Patch
Args π - Read
Args π - Write
Args π
ConstantsΒ§
- BUILTINS
- COMMAND_
TIMEOUT π - Command execution timeout.
- MAX_
COMMAND_ πLEN - Maximum command length to prevent abuse.
FunctionsΒ§
- execute
- One in-process builtin (no network, runs in executorβs own process).
call.contract_idβs last segment names the operation β e.g.robonix/system/executor/builtin/read_fileβread_file. - format_
command_ πoutput - list_
dir π - patch_
file π - read_
capability_ πdoc - Apply the
read_capability_docbuiltin: fetch a providerβs registered CAPABILITY.md content from atlas and return it as markdown text. - read_
file π - run π
- run_
command π - safe_
resolve π - Resolve a user-supplied path and ensure it stays within the workspace root. Returns the canonical path on success, or an error if the path escapes the allowed directory (path traversal).
- terminate_
command_ πgroup - truncate π
- workspace_
root π - Workspace root for file operations. All file paths are resolved relative to this directory, and path traversal beyond it is rejected.
- write_
file π