org.llm4s.shared

Members list

Type members

Classlikes

case class CancelCommandMessage(commandId: String) extends WebSocketMessage

Attributes

Companion
object
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class CommandCompletedMessage(commandId: String, exitCode: Int, duration: FiniteDuration) extends WebSocketMessage

Attributes

Companion
object
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Utility class for generating unique command IDs. This centralizes the command ID generation logic across the codebase.

Utility class for generating unique command IDs. This centralizes the command ID generation logic across the codebase.

Attributes

Source
CommandIdGenerator.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Companion
object
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class CommandStartedMessage(commandId: String, command: String) extends WebSocketMessage

Attributes

Companion
object
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class DeleteFileCommand(commandId: String, path: String, expectedHash: Option[String]) extends WorkspaceAgentCommand

Attributes

Companion
object
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class DeleteFileResponse(commandId: String, path: String, wasDirectory: Boolean) extends WorkspaceAgentResponse

Attributes

Companion
object
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class DeleteOperation(`type`: String, startLine: Int, endLine: Int) extends FileOperation

Attributes

Companion
object
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class ErrorMessage(error: String, code: String, commandId: Option[String]) extends WebSocketMessage

Attributes

Companion
object
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object ErrorMessage

Attributes

Companion
class
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class ExecuteCommandCommand(commandId: String, command: String, workingDirectory: Option[String], timeout: Option[FiniteDuration], environment: Option[Map[String, String]], maxOutputBytes: Option[Long]) extends WorkspaceAgentCommand

Attributes

Companion
object
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class ExecuteCommandResponse(commandId: String, stdout: String, stderr: String, exitCode: Int, isOutputTruncated: Boolean, duration: FiniteDuration) extends WorkspaceAgentResponse

Attributes

Companion
object
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class ExploreFilesCommand(commandId: String, path: String, recursive: Option[Boolean], excludePatterns: Option[List[String]], maxDepth: Option[Int], returnMetadata: Option[Boolean]) extends WorkspaceAgentCommand

Attributes

Companion
object
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class ExploreFilesResponse(commandId: String, files: List[FileEntry], isTruncated: Boolean, totalFound: Int) extends WorkspaceAgentResponse

Attributes

Companion
object
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class FileEntry(path: String, isDirectory: Boolean, metadata: Option[FileMetadata])

Attributes

Companion
object
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object FileEntry

Attributes

Companion
class
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
FileEntry.type
case class FileMetadata(path: String, size: Long, isDirectory: Boolean, lastModified: String)

Attributes

Companion
object
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object FileMetadata

Attributes

Companion
class
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed trait FileOperation

Attributes

Companion
object
Source
WorkspaceAgentProtocol.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object FileOperation

Attributes

Companion
trait
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
case class FileSnapshotCommand(commandId: String, path: String, includeContent: Boolean, followLinks: Boolean) extends WorkspaceAgentCommand

Attributes

Companion
object
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class FileSnapshotResponse(commandId: String, path: String, kind: String, hash: String, size: Long, content: Option[String], textError: Option[String]) extends WorkspaceAgentResponse

What is at a path, as a compare-and-set reads it.

What is at a path, as a compare-and-set reads it.

Value parameters

content

the file's exact text, when asked for, if it is at most maxFileSize bytes of valid UTF-8

hash

absent, directory, oversized (a file over maxFileSize, never read), or sha256: and the 64 lowercase hex digits of the SHA-256 of the file's bytes: what WriteFileCommand.expectedHash and DeleteFileCommand.expectedHash are compared with

kind

absent, file or directory (FileSnapshotResponse.Kind)

size

the file's size in bytes; 0 for a directory or nothing

textError

why a file's content is absent although it was asked for

Attributes

Companion
object
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class GetWorkspaceInfoCommand(commandId: String) extends WorkspaceAgentCommand

Attributes

Companion
object
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class GetWorkspaceInfoResponse(commandId: String, root: String, defaultExclusions: List[String], limits: WorkspaceLimits, protocolVersion: Int, runnerVersion: Option[String]) extends WorkspaceAgentResponse

The runner's description of its workspace, and of itself.

The runner's description of its workspace, and of itself.

Value parameters

protocolVersion

the WorkspaceProtocol.Version the runner speaks; 0 from a runner that predates the version (llm4s 1.0), whose JSON has no such key. ContainerisedWorkspace checks it when it starts, and refuses a runner that speaks another (#3063)

runnerVersion

the runner's llm4s version, from its jar's manifest; None when it is not known (a runner run from classes, or one that predates the field)

Attributes

Companion
object
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class HeartbeatMessage(timestamp: Long) extends WebSocketMessage

Attributes

Companion
object
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class HeartbeatResponseMessage(timestamp: Long) extends WebSocketMessage

Attributes

Companion
object
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class InsertOperation(`type`: String, afterLine: Int, newContent: String) extends FileOperation

Attributes

Companion
object
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class ModifyFileCommand(commandId: String, path: String, operations: List[FileOperation]) extends WorkspaceAgentCommand

Attributes

Companion
object
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class ModifyFileResponse(commandId: String, success: Boolean, path: String) extends WorkspaceAgentResponse

Attributes

Companion
object
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
object ProtocolCodec

JSON codec for workspace agent protocol messages.

JSON codec for workspace agent protocol messages.

Provides serialization and deserialization of commands and responses using uPickle's JSON support. All protocol types are serialized polymorphically based on their runtime type.

== Usage Example ==

val command: WorkspaceAgentCommand = ReadFileCommand("cmd-1", "/path/to/file.txt", None, None)
val json = ProtocolCodec.encodeAgentCommand(command)
val decoded = ProtocolCodec.decodeAgentCommand(json)

Attributes

See also

WorkspaceAgentCommand for available commands

WorkspaceAgentResponse for response types

Source
ProtocolCodec.scala
Supertypes
class Object
trait Matchable
class Any
Self type
case class ReadFileCommand(commandId: String, path: String, startLine: Option[Int], endLine: Option[Int]) extends WorkspaceAgentCommand

Attributes

Companion
object
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class ReadFileResponse(commandId: String, content: String, metadata: FileMetadata, isTruncated: Boolean, totalLines: Int, returnedLines: Int) extends WorkspaceAgentResponse

Attributes

Companion
object
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class RegexReplaceOperation(`type`: String, pattern: String, replacement: String, flags: Option[String]) extends FileOperation

Attributes

Companion
object
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class ReplaceOperation(`type`: String, startLine: Int, endLine: Int, newContent: String) extends FileOperation

Attributes

Companion
object
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Attributes

Companion
object
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class SearchFilesCommand(commandId: String, paths: List[String], query: String, `type`: String, recursive: Option[Boolean], excludePatterns: Option[List[String]], contextLines: Option[Int]) extends WorkspaceAgentCommand

Attributes

Companion
object
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class SearchFilesResponse(commandId: String, matches: List[SearchMatch], isTruncated: Boolean, totalMatches: Int) extends WorkspaceAgentResponse

Attributes

Companion
object
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class SearchMatch(path: String, line: Int, matchText: String, contextBefore: List[String], contextAfter: List[String])

Attributes

Companion
object
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object SearchMatch

Attributes

Companion
class
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class StreamingOutputMessage(commandId: String, outputType: String, content: String, isComplete: Boolean) extends WebSocketMessage

Attributes

Companion
object
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed trait WebSocketMessage

Attributes

Companion
object
Source
WorkspaceAgentProtocol.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Companion
trait
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed trait WorkspaceAgentCommand

Core trait for all workspace agent commands.

Core trait for all workspace agent commands.

Commands are sent from the client to the workspace agent to perform file operations, execute shell commands, or query workspace information. Each command has a unique commandId for request-response correlation.

Attributes

See also

WorkspaceAgentResponse for corresponding responses

Companion
object
Source
WorkspaceAgentProtocol.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Companion
trait
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
case class WorkspaceAgentErrorResponse(commandId: String, error: String, code: String, details: Option[String]) extends WorkspaceAgentResponse

Attributes

Companion
object
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
class WorkspaceAgentException(val error: String, val code: String, val details: Option[String]) extends RuntimeException

Exception thrown when a workspace agent command fails

Exception thrown when a workspace agent command fails

Attributes

Source
WorkspaceAgentInterface.scala
Supertypes
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all

Interface that provides methods corresponding to WorkspaceAgentCommands.

Interface that provides methods corresponding to WorkspaceAgentCommands.

Attributes

Source
WorkspaceAgentInterface.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Remote implementation of WorkspaceAgentInterface that converts method calls to commands, processes them through a handler, and converts responses back to appropriate return types.

Remote implementation of WorkspaceAgentInterface that converts method calls to commands, processes them through a handler, and converts responses back to appropriate return types.

Value parameters

handler

A function that processes WorkspaceAgentCommands and returns WorkspaceAgentResponses

Attributes

Companion
object
Source
WorkspaceAgentInterfaceRemote.scala
Supertypes
class Object
trait Matchable
class Any

Companion object for WorkspaceAgentInterfaceRemote with factory methods.

Companion object for WorkspaceAgentInterfaceRemote with factory methods.

Attributes

Companion
class
Source
WorkspaceAgentInterfaceRemote.scala
Supertypes
class Object
trait Matchable
class Any
Self type
sealed trait WorkspaceAgentResponse

Core trait for all workspace agent responses.

Core trait for all workspace agent responses.

Responses are sent from the workspace agent back to the client in response to commands. Each response includes the commandId to correlate with the original request.

Attributes

See also

WorkspaceAgentCommand for corresponding commands

WorkspaceAgentErrorResponse for error cases

Companion
object
Source
WorkspaceAgentProtocol.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Companion
trait
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
case class WorkspaceLimits(maxFileSize: Long, maxDirectoryEntries: Int, maxSearchResults: Int, maxOutputSize: Long)

Attributes

Companion
object
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

The version of the protocol between ContainerisedWorkspace and the workspace runner (#3063).

The version of the protocol between ContainerisedWorkspace and the workspace runner (#3063).

Bumped whenever a message, a command or a response changes in a way the other side cannot read, or would read wrongly. The client asks the runner for its version (GetWorkspaceInfoResponse.protocolVersion) as soon as it has connected, and stops a runner that speaks another one, so a mismatched image fails at once, naming both versions, rather than on the first command the older side cannot parse.

Attributes

Source
WorkspaceAgentProtocol.scala
Supertypes
class Object
trait Matchable
class Any
Self type
final case class WorkspaceSandboxConfig(limits: WorkspaceLimits, excludePatterns: List[String], shellAllowed: Boolean, defaultCommandTimeout: FiniteDuration, readOnlyPaths: List[String], allowedPaths: List[String], networkAllowed: Boolean, allowedCommands: Set[String], trustedLaunchers: Set[String], readExecPaths: List[String], inheritedVariables: Set[String], maxConcurrentCommands: Option[Int])

Explicit sandbox configuration for workspace operations.

Explicit sandbox configuration for workspace operations.

Describes allowed/blocked paths, resource limits, shell access, and timeouts. When provided, this config is validated at startup and enforced by the runner.

'''Phase 1:''' Config structure, validation, and documentation. '''Phase 2:''' Enforcement in runner and tools. '''Phase 3:''' Advanced policies (profiles, allowlists).

Value parameters

allowedCommands

Set of bare executable names permitted by executeCommand. Defaults to WorkspaceSandboxConfig.ReadOnlyCommands. Use WorkspaceSandboxConfig.ReadWriteCommands to also permit write-capable commands (cp, mv, rm, mkdir, …). Held to the checks WORKSPACE_EXTRA_COMMANDS gets (#3064): bare names, no batch file, nothing on WorkspaceSandboxConfig.NeverAllowedCommands unless also in trustedLaunchers.

allowedPaths

If non-empty, only these paths are accessible; if empty, whole workspace

defaultCommandTimeout

Default timeout for shell commands (more than zero, at most an hour)

excludePatterns

Glob patterns for paths to exclude from explore/search (e.g. node_modules, .git)

inheritedVariables

Names of the runner's environment variables a command also inherits, besides the fixed list (PATH, HOME, the locale, ...) (#3064): SBT_OPTS, COURSIER_CACHE. ContainerisedWorkspace passes each into the container (docker run -e NAME) from its own process's environment. Never a LD_ or DYLD_ loader variable, nor an LLM4S_ one (the runner's own, its token among them)

limits

Resource limits (file size, directory entries, search results, output size)

maxConcurrentCommands

The most commands that run at once (#3064); one more waits at the command gate, then is refused WORKSPACE_BUSY. None, the default, is no cap

networkAllowed

Whether commands may open network sockets; on Linux the runner enforces it (design §4.39)

readExecPaths

Absolute directories outside the workspace that a confined command may also read and execute from, besides the system ones (/usr, /opt, ...): a toolchain under /nix or /snap, which a PATH entry resolves but Landlock would refuse (exit 126) (#3064). Never /, nor a path holding ..; a grant over the workspace, or over the runner's own temporary directories, is dropped by the runner. Read and execute only: nothing there becomes writable

readOnlyPaths

Paths under workspace root that are read-only (writes denied)

shellAllowed

Whether executeCommand is allowed (false = read-only file ops only)

trustedLaunchers

Programs on WorkspaceSandboxConfig.NeverAllowedCommands - interpreters and launchers, each of which runs any code it is given - that allowedCommands may name anyway: an operator's explicit opt-in, as for a workspace that must run java. Naming one makes the allowlist no bound on what commands run; confinement (paths, network) still applies. Empty by default; never read from WORKSPACE_EXTRA_COMMANDS.

Attributes

Companion
object
Source
WorkspaceSandboxConfig.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
WorkspaceSandboxConfig.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class WriteFileCommand(commandId: String, path: String, content: String, mode: Option[String], createDirectories: Option[Boolean], expectedHash: Option[String]) extends WorkspaceAgentCommand

Attributes

Companion
object
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class WriteFileResponse(commandId: String, success: Boolean, path: String, bytesWritten: Long) extends WorkspaceAgentResponse

Attributes

Companion
object
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
WorkspaceAgentProtocol.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type