Protected ReadonlyenvProtected ReadonlyrunningMaps tool call ids to the execution ids of their in-flight shell commands.
Protected ReadonlyshellProtected ReadonlyshellProtected ReadonlyworkspaceProtectedcombineOptionaloptions: OutputTruncationOptionsProtecteddescribeLists the workspace root names with their locations, for error messages.
ProtectedexampleProtectedexecuteOptionalctx: unknownProtectedresolveResolves a cwd value to an absolute filesystem path.
Handles: undefined (falls back to the workspace root in a single-root workspace), absolute paths
and file:// URIs, ~ for the home directory, root-prefixed paths (<rootName>/...) and bare
root names, with the root names of WorkspaceService.getRootNames.
ProtectedrunRuns execution and maps the raw server result onto the tool result shape.
Shared plumbing for tools that run a shell command through the ShellExecutionServer: execution-id bookkeeping, cancellation wiring, the canceled-result branch and output truncation.
Subclasses only decide which command runs and how it is exposed to the LLM.