@usine/agents/codex
Classes
Section titled “Classes”CodexAppServer
Section titled “CodexAppServer”Spawns the Codex app-server process and exposes its JSON-RPC connection.
Extends
Section titled “Extends”Context.ServiceClass
Properties
Section titled “Properties”Service
Section titled “Service”
readonlyService:object
The service’s operations: what yield* CodexAppServer returns.
readonlyopen: (request) =>Effect.Effect<CodexConnection,SessionOperationError,Scope.Scope>
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
request |
CodexClient |
Returns
Section titled “Returns”Effect.Effect<CodexConnection, SessionOperationError, Scope.Scope>
Interfaces
Section titled “Interfaces”CodexConnection
Section titled “CodexConnection”One JSON-RPC connection to the app server, scoped to its process.
Properties
Section titled “Properties”
readonlyclose:Effect<void,SessionOperationError>
Closes stdin and waits for the app server to release its threads and commands.
notifications
Section titled “notifications”
readonlynotifications:Stream<CodexNotification,SessionOperationError>
notify
Section titled “notify”
readonlynotify: (operation,method,params) =>Effect<void,SessionOperationError>
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
operation |
"launch" | "stream" | "steer" | "interrupt" |
method |
string |
params |
Json |
Returns
Section titled “Returns”Effect<void, SessionOperationError>
request
Section titled “request”
readonlyrequest: (operation,method,params) =>Effect<Json,SessionOperationError>
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
operation |
"launch" | "stream" | "steer" | "interrupt" |
method |
string |
params |
Json |
Returns
Section titled “Returns”Effect<Json, SessionOperationError>
Variables
Section titled “Variables”codexAppServerLive
Section titled “codexAppServerLive”
constcodexAppServerLive:Layer.Layer<CodexAppServer,never,ChildProcessSpawner.ChildProcessSpawner>
codexChildBackendLayer
Section titled “codexChildBackendLayer”
constcodexChildBackendLayer:Layer.Layer<CodexChildBackend,never,CodexAppServer>
Provides Codex coding sessions for tasks delegated by a parent.