Theia API Documentation v1.68.0
Eclipse Theia Website
GitHub
Preparing search index...
@theia/ai-terminal
browser/shell-execution-tool
ShellExecutionTool
Class ShellExecutionTool
Implements
ToolProvider
Index
Constructors
constructor
Properties
running
Executions
shell
Server
workspace
Service
Methods
cancel
Execution
combine
And
Truncate
execute
Command
extract
Cancellation
Token
extract
Tool
Call
Id
get
Tool
is
Execution
Running
Constructors
constructor
new
ShellExecutionTool
()
:
ShellExecutionTool
Returns
ShellExecutionTool
Properties
Protected
Readonly
running
Executions
runningExecutions
:
Map
<
string
,
string
>
= ...
Protected
Readonly
shell
Server
shellServer
:
ShellExecutionServer
Protected
Readonly
workspace
Service
workspaceService
:
WorkspaceService
Methods
cancel
Execution
cancelExecution
(
toolCallId
:
string
)
:
Promise
<
boolean
>
Parameters
toolCallId
:
string
Returns
Promise
<
boolean
>
Protected
combine
And
Truncate
combineAndTruncate
(
stdout
:
string
,
stderr
:
string
)
:
string
Parameters
stdout
:
string
stderr
:
string
Returns
string
Protected
execute
Command
executeCommand
(
argString
:
string
,
ctx
?:
unknown
,
)
:
Promise
<
ShellExecutionToolResult
|
ShellExecutionCanceledResult
>
Parameters
argString
:
string
Optional
ctx
:
unknown
Returns
Promise
<
ShellExecutionToolResult
|
ShellExecutionCanceledResult
>
Protected
extract
Cancellation
Token
extractCancellationToken
(
ctx
:
unknown
)
:
undefined
|
CancellationToken
Parameters
ctx
:
unknown
Returns
undefined
|
CancellationToken
Protected
extract
Tool
Call
Id
extractToolCallId
(
ctx
:
unknown
)
:
undefined
|
string
Parameters
ctx
:
unknown
Returns
undefined
|
string
get
Tool
getTool
()
:
ToolRequest
Returns
ToolRequest
is
Execution
Running
isExecutionRunning
(
toolCallId
:
string
)
:
boolean
Parameters
toolCallId
:
string
Returns
boolean
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
running
Executions
shell
Server
workspace
Service
Methods
cancel
Execution
combine
And
Truncate
execute
Command
extract
Cancellation
Token
extract
Tool
Call
Id
get
Tool
is
Execution
Running
Eclipse Theia Website
GitHub
Theia API Documentation v1.68.0
Loading...