Dependencies
pub(all) struct AddMemberRequest {
login : String
}impl ToJson for CapabilitySetimpl FromJson for CapabilitySetpub(all) enum CodexActivityStatus {
NotLoaded
Idle
Active(Array[CodexActiveFlag])
SystemError
} derive(Eq, Debug)pub(all) enum CodexApproval {
Command(command~ : String)
FileChange(reason~ : String)
}pub(all) struct CodexClientInfo {
name : String
title : String
version : String
}impl ToJson for CodexClientInfopub(all) enum CodexIncoming {
ThreadResult(thread~ : CodexThreadResult)
ThreadListResult(threads~ : Array[CodexThreadResult])
ThreadReadResult(thread~ : CodexThreadResult, turns~ : Array[CodexReadTurn])
OtherResponse(id~ : Json)
TurnStarted(turn_id~ : CodexTurnId)
TurnCompleted(turn_id~ : CodexTurnId, status~ : CodexStatus)
ItemStarted(turn_id~ : CodexTurnId, item_id~ : CodexItemId, kind~ : CodexItemKind, text~ : String, command~ : String)
ItemCompleted(turn_id~ : CodexTurnId, item_id~ : CodexItemId, status~ : CodexStatus)
Delta(turn_id~ : CodexTurnId, item_id~ : CodexItemId, delta~ : String, kind~ : CodexItemKind)
ThreadStatusChanged(thread_id~ : CodexThreadId, activity~ : CodexActivityStatus)
Approval(id~ : CodexRequestId, thread_id~ : CodexThreadId, turn_id~ : CodexTurnId, item_id~ : CodexItemId, approval~ : CodexApproval)
}impl FromJson for CodexIncomingpub(all) enum CodexOutgoing {
Initialize(id~ : Int, client_info~ : CodexClientInfo)
ThreadStart(id~ : Int, cwd~ : String)
ThreadList(id~ : Int, cwd~ : String)
ThreadRead(id~ : Int, thread_id~ : CodexThreadId, include_turns~ : Bool)
ThreadResume(id~ : Int, thread_id~ : CodexThreadId)
TurnStart(id~ : Int, thread_id~ : CodexThreadId, input~ : String)
TurnInterrupt(id~ : Int, thread_id~ : CodexThreadId, turn_id~ : CodexTurnId)
Initialized
Approval(id~ : CodexRequestId, decision~ : CodexApprovalDecision)
}impl ToJson for CodexOutgoingpub(all) struct CodexReadItem {
id : CodexItemId
kind : CodexItemKind
text : String
command : String
output : String
}pub(all) struct CodexThreadResult {
id : CodexThreadId
preview : String
status : CodexThreadStatus
activity : CodexActivityStatus
} derive(Eq, Debug)pub(all) struct CreateGroupRequest {
name : String
}pub(all) struct CreateMachineRequest {
name : String
}pub(all) struct CreateMachineResponse {
token : String
machine_id : Int
}pub(all) struct CreatedGroupResponse {
id : Int
}pub(all) struct Cursor {
x : Int
y : Int
shape : CursorShape
blink : Bool
color : String?
} derive(Eq, Debug)pub(all) struct DeviceApproveRequest {
code : String
}impl ToJson for DeviceApproveRequestimpl FromJson for DeviceApproveRequestpub(all) struct DeviceAuthorizationRequest {
hostname : String
}pub(all) struct DeviceAuthorizationResponse {
device_code : String
user_code : String
verification_uri : String
verification_uri_complete : String?
expires_in : Int
interval : Int
}pub(all) struct DeviceDenyRequest {
code : String
}impl ToJson for DeviceDenyRequestimpl FromJson for DeviceDenyRequestpub(all) struct DevicePendingResponse {
hostname : String
}impl ToJson for DevicePendingResponseimpl FromJson for DevicePendingResponsepub(all) enum DeviceTokenError {
AuthorizationPending
SlowDown
ExpiredToken
AccessDenied
InvalidRequest
UnsupportedGrantType
Unknown(String)
}impl ToJson for DeviceTokenErrorimpl FromJson for DeviceTokenErrorpub(all) struct DeviceTokenRequest {
grant_type : String
device_code : String
}pub(all) enum DeviceTokenResponse {
Success(access_token~ : String, token_type~ : String)
Error(error~ : DeviceTokenError)
}impl ToJson for DeviceTokenResponseimpl FromJson for DeviceTokenResponsepub(all) enum FsMessage {
WatchFile(req_id~ : String, client_id~ : String, path~ : String)
UnwatchFile(req_id~ : String, client_id~ : String)
WatchFileReady(req_id~ : String, client_id~ : String, path~ : String, resolved_path~ : String)
FileChanged(req_id~ : String, client_id~ : String, path~ : String, resolved_path~ : String)
Stat(req_id~ : String, client_id~ : String, path~ : String)
StatResult(req_id~ : String, client_id~ : String, stat~ : FileStat)
Readdir(req_id~ : String, client_id~ : String, path~ : String)
ReaddirResult(req_id~ : String, client_id~ : String, entries~ : Array[(String, Int)])
ReadFile(req_id~ : String, client_id~ : String, path~ : String)
ReadFileResult(req_id~ : String, client_id~ : String, data~ : String)
WriteFile(req_id~ : String, client_id~ : String, path~ : String, data~ : String, create~ : Bool, overwrite~ : Bool)
Mkdir(req_id~ : String, client_id~ : String, path~ : String)
FsDelete(req_id~ : String, client_id~ : String, path~ : String, recursive~ : Bool)
FsRename(req_id~ : String, client_id~ : String, from~ : String, to~ : String, overwrite~ : Bool)
FsOk(req_id~ : String, client_id~ : String)
FsError(req_id~ : String, client_id~ : String, code~ : String, message~ : String)
} derive(Debug)pub(all) struct GrantAccessRequest {
group_id : Int
}pub(all) struct GroupInfo {
id : Int
name : String
owner_id : Int64
}pub(all) struct GroupMember {
github_id : Int64
login : String
avatar_url : String
}pub(all) enum IdeMessage {
Hover(req_id~ : String, client_id~ : String, path~ : String, line~ : Int, column~ : Int)
CancelHover(req_id~ : String, client_id~ : String)
HoverResult(req_id~ : String, client_id~ : String, path~ : String, range~ : String?, contents~ : Array[String])
IdeError(req_id~ : String, client_id~ : String, path~ : String, code~ : IdeErrorCode, message~ : String)
} derive(Debug)impl ToJson for IdeMessageimpl FromJson for IdeMessagepub(all) struct MachineAccessGroup {
group_id : Int
name : String
}pub(all) enum Message {
Sys(SysMessage)
Fs(FsMessage)
Ide(IdeMessage)
Term(TermMessage)
Codex(client_id~ : String, data~ : String)
} derive(Debug)pub(all) enum SysMessage {
Register(task_uuid~ : UUID, hostname~ : String, cwd~ : String, proto_version~ : Int, server_capabilities~ : CapabilitySet)
Registered(task_uuid~ : UUID)
RegisterRejected(reason~ : RegisterRejectReason)
TaskExited(exit_code~ : Int)
Title(title~ : String?)
Connect(task_uuid~ : UUID, last_seen_id~ : Int64?, proto_version~ : Int, client_capabilities~ : CapabilitySet)
Connected(server_proto_version~ : Int, server_capabilities~ : CapabilitySet)
TaskOnline(server_proto_version~ : Int, server_capabilities~ : CapabilitySet)
NewClient(client_id~ : String, last_seen_id~ : Int64?, client_proto_version~ : Int, client_capabilities~ : CapabilitySet)
ClientDisconnected(client_id~ : String)
Error(ErrorCode)
AuthError(message~ : String)
}impl ToJson for SysMessageimpl Debug for SysMessageimpl FromJson for SysMessagepub(all) enum TermMessage {
ClientReplayCursor(client_id~ : String, last_seen_id~ : Int64?)
Viewport(client_id~ : String, cols~ : Int, rows~ : Int, active~ : Bool)
RenderFrame(client_id~ : String, seq~ : Int64, cols~ : Int, rows~ : Int, scroll_offset~ : Int64, scrollback_rows~ : Int64, title~ : String?, mouse~ : Bool?, data~ : String)
RenderState(client_id~ : String, seq~ : Int64, cols~ : Int, rows~ : Int, scroll_offset~ : Int64, scrollback_rows~ : Int64, title~ : String?, mouse~ : Bool?, frame~ : Frame)
InputText(client_id~ : String, text~ : String)
InputKey(client_id~ : String, key~ : String, mods~ : Array[String], text~ : String?)
InputPaste(client_id~ : String, text~ : String)
InputMouse(client_id~ : String, x~ : Int, y~ : Int, button~ : String?, action~ : String, mods~ : Array[String])
InputScroll(client_id~ : String, x~ : Int, y~ : Int, delta_rows~ : Int, mods~ : Array[String])
ScrollToLive(client_id~ : String)
Theme(client_id~ : String, background~ : String, foreground~ : String)
Data(client_id~ : String, id~ : Int64, created~ : Int64?, replay~ : Bool?, data~ : String)
Exited(client_id~ : String, id~ : Int64)
} derive(Debug)pub(all) struct TransferGroupRequest {
new_owner_id : Int64
}impl FromJson for TransferGroupRequestpub(all) struct UserInfo {
github_id : Int64
login : String
avatar_url : String
status : UserStatus
is_admin : Bool
} derive(Eq)let ProtoMinVersion : Intlet ProtoVersion : IntDependencies