org.llm4s.shared
Members list
Type members
Classlikes
Attributes
- Companion
- object
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WebSocketMessageclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
- Self type
-
CancelCommandMessage.type
Attributes
- Companion
- object
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WebSocketMessageclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
- 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
- Self type
-
CommandIdGenerator.type
Attributes
- Companion
- object
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WebSocketMessageclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
- Self type
-
CommandMessage.type
Attributes
- Companion
- object
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WebSocketMessageclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
- Self type
Attributes
- Companion
- object
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WorkspaceAgentCommandclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
- Self type
-
DeleteFileCommand.type
Attributes
- Companion
- object
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WorkspaceAgentResponseclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
- Self type
-
DeleteFileResponse.type
Attributes
- Companion
- object
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait FileOperationclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
- Self type
-
DeleteOperation.type
Attributes
- Companion
- object
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WebSocketMessageclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
- Self type
-
ErrorMessage.type
Attributes
- Companion
- object
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WorkspaceAgentCommandclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
- Self type
Attributes
- Companion
- object
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WorkspaceAgentResponseclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
- Self type
Attributes
- Companion
- object
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WorkspaceAgentCommandclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
- Self type
-
ExploreFilesCommand.type
Attributes
- Companion
- object
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WorkspaceAgentResponseclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
- Self type
-
ExploreFilesResponse.type
Attributes
- Companion
- object
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
Attributes
- Companion
- object
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
Attributes
- Companion
- class
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
- Self type
-
FileMetadata.type
Attributes
- Companion
- object
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
- Known subtypes
Attributes
- Companion
- trait
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
- Self type
-
FileOperation.type
Attributes
- Companion
- object
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WorkspaceAgentCommandclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
- Self type
-
FileSnapshotCommand.type
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
maxFileSizebytes of valid UTF-8 - hash
-
absent,directory,oversized(a file overmaxFileSize, never read), orsha256:and the 64 lowercase hex digits of the SHA-256 of the file's bytes: whatWriteFileCommand.expectedHashandDeleteFileCommand.expectedHashare compared with - kind
-
absent,fileordirectory(FileSnapshotResponse.Kind) - size
-
the file's size in bytes; 0 for a directory or nothing
- textError
-
why a file's
contentis absent although it was asked for
Attributes
- Companion
- object
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WorkspaceAgentResponseclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
- Self type
-
FileSnapshotResponse.type
Attributes
- Companion
- object
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WorkspaceAgentCommandclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
- Self type
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;
0from a runner that predates the version (llm4s 1.0), whose JSON has no such key.ContainerisedWorkspacechecks it when it starts, and refuses a runner that speaks another (#3063) - runnerVersion
-
the runner's llm4s version, from its jar's manifest;
Nonewhen it is not known (a runner run from classes, or one that predates the field)
Attributes
- Companion
- object
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WorkspaceAgentResponseclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
- Self type
Attributes
- Companion
- object
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WebSocketMessageclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
- Self type
-
HeartbeatMessage.type
Attributes
- Companion
- object
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WebSocketMessageclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
- Self type
Attributes
- Companion
- object
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait FileOperationclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
- Self type
-
InsertOperation.type
Attributes
- Companion
- object
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WorkspaceAgentCommandclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
- Self type
-
ModifyFileCommand.type
Attributes
- Companion
- object
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WorkspaceAgentResponseclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
- Self type
-
ModifyFileResponse.type
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
- Self type
-
ProtocolCodec.type
Attributes
- Companion
- object
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WorkspaceAgentCommandclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
- Self type
-
ReadFileCommand.type
Attributes
- Companion
- object
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WorkspaceAgentResponseclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
- Self type
-
ReadFileResponse.type
Attributes
- Companion
- object
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait FileOperationclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
- Self type
Attributes
- Companion
- object
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait FileOperationclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
- Self type
-
ReplaceOperation.type
Attributes
- Companion
- object
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WebSocketMessageclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
- Self type
-
ResponseMessage.type
Attributes
- Companion
- object
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WorkspaceAgentCommandclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
- Self type
-
SearchFilesCommand.type
Attributes
- Companion
- object
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WorkspaceAgentResponseclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
- Self type
-
SearchFilesResponse.type
Attributes
- Companion
- object
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
Attributes
- Companion
- class
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
- Self type
-
SearchMatch.type
Attributes
- Companion
- object
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WebSocketMessageclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
- Self type
Attributes
- Companion
- object
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
- Known subtypes
-
class CancelCommandMessageclass CommandCompletedMessageclass CommandMessageclass CommandStartedMessageclass ErrorMessageclass HeartbeatMessageclass HeartbeatResponseMessageclass ResponseMessageclass StreamingOutputMessageShow all
Attributes
- Companion
- trait
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
- Self type
-
WebSocketMessage.type
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
- Known subtypes
-
class DeleteFileCommandclass ExecuteCommandCommandclass ExploreFilesCommandclass FileSnapshotCommandclass GetWorkspaceInfoCommandclass ModifyFileCommandclass ReadFileCommandclass SearchFilesCommandclass WriteFileCommandShow all
Attributes
- Companion
- trait
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
- Self type
Attributes
- Companion
- object
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WorkspaceAgentResponseclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
- Self type
Exception thrown when a workspace agent command fails
Exception thrown when a workspace agent command fails
Attributes
- Source
- WorkspaceAgentInterface.scala
- Supertypes
-
class RuntimeExceptionclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
Interface that provides methods corresponding to WorkspaceAgentCommands.
Interface that provides methods corresponding to WorkspaceAgentCommands.
Attributes
- Source
- WorkspaceAgentInterface.scala
- Supertypes
- Known subtypes
-
class ContainerisedWorkspace
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
Companion object for WorkspaceAgentInterfaceRemote with factory methods.
Companion object for WorkspaceAgentInterfaceRemote with factory methods.
Attributes
- Companion
- class
- Source
- WorkspaceAgentInterfaceRemote.scala
- Supertypes
- Self type
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
- Known subtypes
-
class DeleteFileResponseclass ExecuteCommandResponseclass ExploreFilesResponseclass FileSnapshotResponseclass GetWorkspaceInfoResponseclass ModifyFileResponseclass ReadFileResponseclass SearchFilesResponseclass WriteFileResponseShow all
Attributes
- Companion
- trait
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
- Self type
Attributes
- Companion
- object
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
Attributes
- Companion
- class
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
- Self type
-
WorkspaceLimits.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
- Self type
-
WorkspaceProtocol.type
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_COMMANDSgets (#3064): bare names, no batch file, nothing on WorkspaceSandboxConfig.NeverAllowedCommands unless also intrustedLaunchers. - 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.ContainerisedWorkspacepasses each into the container (docker run -e NAME) from its own process's environment. Never aLD_orDYLD_loader variable, nor anLLM4S_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/nixor/snap, which aPATHentry 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
executeCommandis 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
allowedCommandsmay name anyway: an operator's explicit opt-in, as for a workspace that must runjava. Naming one makes the allowlist no bound on what commands run; confinement (paths, network) still applies. Empty by default; never read fromWORKSPACE_EXTRA_COMMANDS.
Attributes
- Companion
- object
- Source
- WorkspaceSandboxConfig.scala
- Supertypes
Attributes
- Companion
- class
- Source
- WorkspaceSandboxConfig.scala
- Supertypes
- Self type
Attributes
- Companion
- object
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WorkspaceAgentCommandclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
- Self type
-
WriteFileCommand.type
Attributes
- Companion
- object
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WorkspaceAgentResponseclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Source
- WorkspaceAgentProtocol.scala
- Supertypes
- Self type
-
WriteFileResponse.type
