Package-level declarations
Types
Link copied to clipboard
The device's own /system/bin/sh (toybox) in workingDirectory: no package manager and the app's permissions, so commands need approval by default.
Link copied to clipboard
class Shell(runtime: ShellRuntime, val defaultTimeoutSeconds: Double = 30.0, val maxOutputChars: Int, val approveCommands: Boolean = !runtime.isolated) : Capability
Shell commands with the tools and output format of Pydantic AI Harness Shell: run_command (labelled [stdout] / [stderr], [exit code: N] on failure, the tail kept when longer than maxOutputChars), and background start_command / check_command / stop_command.
Link copied to clipboard
interface ShellRuntime
Where commands run. start launches command through the runtime's shell; the process must end when destroyed (children included).