RunCommandConfig class

Configuration for the builtin run_command tool.

Annotations
  • @MappableClass.new(caseStyle: CaseStyle.snakeCase, ignoreNull: true)

Constructors

RunCommandConfig({bool enableDaemons = false, double? timeoutSeconds, bool enableSandbox = false})
Creates a RunCommandConfig.
RunCommandConfig.fromJson(String json)
Decodes a RunCommandConfig from a JSON string.
factory
RunCommandConfig.fromMap(Map<String, dynamic> map)
Decodes a RunCommandConfig from a map.
factory

Properties

copyWith → RunCommandConfigCopyWith<RunCommandConfig, RunCommandConfig, RunCommandConfig>
no setterinherited
enableDaemons → bool
Whether the agent is authorized to start long-running daemon commands (e.g. background dev servers, watchers) using run_command(IsDaemon=true) without blocking session completion. When true, the IsDaemon argument is exposed on the run_command tool schema. Defaults to false.
final
enableSandbox → bool
When true, terminal commands (run_command) are executed inside the OS-level sandbox (exebox). Forwarded to the harness/cortex, which enforces the sandbox at command execution time. Has no effect on platforms/environments where the sandbox is unavailable. Defaults to false.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
timeoutSeconds → double?
Maximum execution duration in seconds for commands. When null, the default timeout (10 minutes) is used. Defaults to null.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → String
inherited
toMap() → Map<String, dynamic>
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited