WorkspaceSandboxConfig

org.llm4s.shared.WorkspaceSandboxConfig
See theWorkspaceSandboxConfig companion class

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def fromProfileName(name: String): Either[String, WorkspaceSandboxConfig]

Parse a sandbox profile name into a concrete config.

Parse a sandbox profile name into a concrete config.

Valid names (case-insensitive, trimmed):

Unknown names return Left with an error message instead of silently falling back, so that typos like strict do not weaken the sandbox.

Attributes

def validate(config: WorkspaceSandboxConfig): Either[String, Unit]

Validates the config; returns Left with error message if invalid.

Validates the config; returns Left with error message if invalid.

Attributes

Concrete fields

val DefaultExclusions: List[String]

Locked-down sandbox: read-only file ops, no shell, strict limits

Locked-down sandbox: read-only file ops, no shell, strict limits

Attributes

Default permissive sandbox (current behavior). Allows both read-only and write commands.

Default permissive sandbox (current behavior). Allows both read-only and write commands.

Attributes

val ReadOnlyCommands: Set[String]

Read-only command allowlist: safe, non-destructive commands suitable for inspection and navigation. This is the default for new sandbox configs.

Read-only command allowlist: safe, non-destructive commands suitable for inspection and navigation. This is the default for new sandbox configs.

Attributes

val ReadWriteCommands: Set[String]

Read-write command allowlist: extends ReadOnlyCommands with commands that can create, modify, or delete files. Opt-in; use when the agent legitimately needs write access to the workspace.

Read-write command allowlist: extends ReadOnlyCommands with commands that can create, modify, or delete files. Opt-in; use when the agent legitimately needs write access to the workspace.

Attributes

Implicits

Implicits

implicit val rw: ReadWriter[WorkspaceSandboxConfig]