Theia API Documentation v1.77.0
    Preparing search index...

    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.

    Hierarchy (View Summary)

    Index
    envVariablesServer: EnvVariablesServer
    runningExecutions: Map<string, string> = ...

    Maps tool call ids to the execution ids of their in-flight shell commands.

    shellCommandPermissionService: ShellCommandPermissionService
    workspaceService: WorkspaceService
    • Resolves 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.

      Parameters

      • cwd: string | undefined

      Returns Promise<string>