Documentation
¶
Index ¶
- Constants
- Variables
- func LocalImagePath(candidate any) string
- func Loose(raw any, out any) error
- func Merge[T any](base *T, patch T)
- func MissingParam(method, field string) error
- func NormalizeSlashSearchQuery(query string) string
- func Plain(v any) any
- func ReportMisfit(kind, name string, misfit error)
- func RoomPayload[T any](event RoomEvent) (T, bool)
- func SameBuild(build string, contract int64) bool
- func ScoreFields(fields []string, query string, offset float64) float64
- func SealPayload(name string, payload map[string]any) map[string]any
- func SetupValue[T any](values map[string]json.RawMessage, name string) (T, bool)
- func Strict(raw any, out any) error
- func TokenizeSearchText(value string) []string
- func ToolImagePath(toolName string, args map[string]any, result any, isError bool) string
- func UnknownMethodMessage(method string) string
- func UnknownParam(method, field string) error
- func WireNames[T any]() []string
- type A2AForwardParams
- type A2AForwardResult
- type ActiveSubagent
- type AdmissionReceipt
- type AgentPluginRow
- type ApprovalAnswer
- type ApprovalCancelledPayload
- type ApprovalChoice
- type ApprovalRequestParams
- type ApprovalRespondParams
- type ApprovalRespondResult
- type AttachedImageResult
- type AutoContinue
- type BatteryCategory
- type BillingBlock
- type BotDeliverParams
- type BotDeliverResult
- type BrowserAction
- type BrowserManageParams
- type BrowserManageResult
- type BrowserProgressLevel
- type BrowserProgressPayload
- type BusyInputMode
- type CanonicalApprovalParams
- type CanonicalAttachedImage
- type CanonicalAttachment
- type CanonicalClarifyParams
- type CanonicalControlParams
- type CanonicalCorrectionParams
- type CanonicalCreateParams
- type CanonicalListParams
- type CanonicalListParamsScope
- type CanonicalListResult
- type CanonicalListResultScope
- type CanonicalModelOverride
- type CanonicalPendingAdmission
- type CanonicalPendingAdmissionControls
- type CanonicalPendingAdmissionStatus
- type CanonicalPendingPrompt
- type CanonicalPendingPromptKind
- type CanonicalReplaceQueuedParams
- type CanonicalResumeParams
- type CanonicalResumeParamsLatest
- type CanonicalRoomApproveParams
- type CanonicalRoomAttemptParams
- type CanonicalRoomCreateParams
- type CanonicalSessionHandle
- type CanonicalSessionInfoParams
- type CanonicalSessionListRow
- type CanonicalSessionRef
- type CanonicalShellExecParams
- type CanonicalSnapshot
- type CanonicalSubmitParams
- type CanonicalTurnAuthor
- type CatalogAppState
- type CatalogApproved
- type CatalogPluginPresence
- type CatalogScan
- type CatalogScanStatus
- type CatalogServerError
- type CatalogTier
- type ClarifyAnswer
- type ClarifyLockParams
- type ClarifyLockResult
- type ClarifyLockStatus
- type ClarifyOutcome
- type ClarifyQuestion
- type ClarifyRequestParams
- type ClientApprovals
- type ClientCapabilitiesParams
- type ClientCapabilitiesResult
- type ClientConfig
- type ClientDisplay
- type ClientPet
- type ClientStatusBar
- type ClientVoice
- type CommandCategory
- type CommandDispatchParams
- type CommandDispatchResult
- type CommandObserveParams
- type CommandObserveResult
- type CommandsCatalogParams
- type CommandsCatalogResult
- type CompletePathParams
- type CompleteSlashParams
- type CompleteSlashResult
- type CompletionItem
- type CompletionItemsResult
- type CompletionKind
- type CompressionSummary
- type ConfigGetParams
- type ConfigGetResult
- type ConfigProviderRef
- type ConfigScope
- type ConfigSetParams
- type ConfigSetResult
- type ConfigValue
- type ConfigWriteScope
- type ConnectionAckStatus
- type ConnectionActor
- type ConnectionAnswer
- type ConnectionAnswerStatus
- type ConnectionAnswerTarget
- type ConnectionDisplay
- type ConnectionOperationParams
- type ConnectionOperationSnapshot
- type ConnectionOperationTarget
- type ConnectionRequestPayload
- type ConnectionRespondParams
- type ConnectionRespondResult
- type ConnectionSettleReason
- type ConnectionTargetAction
- type ConnectionTargetEnvField
- type ConnectionTargetKind
- type ConnectionTargetState
- type ConnectionUpdatePayload
- type ConnectionWakeResult
- type ConnectorErrorReason
- type ConnectorsConnectParams
- type ContextCategory
- type ContextFileSource
- type ContractViolation
- type CorrectionAck
- type CorrectionAnswer
- type CorrectionStatus
- type CronAdmissionParams
- type CronCancelResult
- type CronOutcome
- type CronRunParams
- type CronStatusResult
- type CronSubmitResult
- type DelegationPauseParams
- type DelegationPauseResult
- type DelegationStatusResult
- type DetailsMode
- type DispatchType
- type DisplayImageSwitch
- type DisplayInstallDonePayload
- type DisplayInstallLogPayload
- type DisplayInstallResult
- type DisplayInstallSudoParams
- type DisplayLease
- type DisplayLeaseAcquireParams
- type DisplayLeaseHolder
- type DisplayLeasePayload
- type DisplayLeaseReleaseParams
- type DisplayLeaseResult
- type DisplayMetadata
- type DisplayStatus
- type DisplayStopParams
- type DisplayStopResult
- type DisplaySwitchSandboxImageParams
- type DisplaySwitchSandboxImageResult
- type DisplayThumbnailResult
- type EditApprovalPolicy
- type Entry
- type ErrorPayload
- type ErrorSurface
- type Event
- type EventEnvelope
- type ExecutionState
- type FailedDelegation
- type FitError
- type GatewayReadyPayload
- type GoalContractSnapshot
- type GoalGateSnapshot
- type GoalSnapshot
- type GroupsApproveParams
- type GroupsApproveResult
- type GroupsAttachmentDownloadParams
- type GroupsAttachmentUploadParams
- type GroupsCapabilitiesParams
- type GroupsCapabilitiesResult
- type GroupsContinueParams
- type GroupsContinueResult
- type GroupsCreateParams
- type GroupsCreateResult
- type GroupsDisbandParams
- type GroupsDisbandResult
- type GroupsDiscardParams
- type GroupsDiscardResult
- type GroupsListParams
- type GroupsListResult
- type GroupsLogParams
- type GroupsLogResult
- type GroupsPeersParams
- type GroupsPeersResult
- type GroupsPromoteParams
- type GroupsPromoteResult
- type GroupsRenameParams
- type GroupsRenameResult
- type GroupsReplicaStateParams
- type GroupsReplicaStateResult
- type GroupsRetryParams
- type GroupsRetryResult
- type GroupsSendParams
- type GroupsSendResult
- type GroupsShareParams
- type GroupsShareResult
- type GroupsStateParams
- type GroupsStateResult
- type GroupsStopParams
- type GroupsStopResult
- type HandoffFailParams
- type HandoffFailResult
- type HandoffRequestParams
- type HandoffRequestResult
- type HandoffStateResult
- type HeartbeatSnapshot
- type HiddenDisplayKind
- type I18nCatalogParams
- type I18nCatalogResult
- type I18nLanguagesParams
- type I18nLanguagesResult
- type ImageAttachBytesParams
- type ImageAttachParams
- type ImageDetachParams
- type ImageDetachResult
- type ImageRenderMode
- type ImageRenderParams
- type ImageRenderResult
- type IndicatorStyle
- type InflightTurn
- type InputDetectDropParams
- type InputDetectDropResult
- type InstallPhase
- type InterruptStatus
- type KanbanRunParams
- type KanbanRunResult
- type Kind
- type LanguageOption
- type LearningAxis
- type LearningBucketRow
- type LearningDetailResult
- type LearningEditParams
- type LearningFrame
- type LearningFramesParams
- type LearningFramesResult
- type LearningGraphCluster
- type LearningGraphEdge
- type LearningGraphNode
- type LearningGraphParams
- type LearningGraphResult
- type LearningLegendItem
- type LearningMemoryCard
- type LearningMutationResult
- type LearningNodeKind
- type LearningNodeParams
- type LearningNodeRow
- type LearningRun
- type LegacyPluginRow
- type LiveSessionStatus
- type LocaleSurface
- type LoopSnapshot
- type MCPCatalogEntry
- type MCPCatalogResult
- type MCPOAuthCancelResult
- type MCPOAuthFlowParams
- type MCPOAuthPollResult
- type MCPOAuthPollStatus
- type MCPOAuthStartParams
- type MCPOAuthStartResult
- type MCPProbeTool
- type MCPRuntimeStatus
- type MCPServerNameParams
- type MCPServerResult
- type MCPServerRuntimeRow
- type MCPServerSource
- type MCPServerSummary
- type MCPServersAddParams
- type MCPServersEnableParams
- type MCPServersListResult
- type MCPServersRemoveResult
- type MCPServersSetAPIKeyParams
- type MCPServersSetAPIKeyResult
- type MCPServersStatusResult
- type MCPServersTestResult
- type McpServerStatus
- type MessageCompletePayload
- type MessageDeltaPayload
- type MessageInterimPayload
- type MessageStartPayload
- type Method
- type MirroredValue
- type MoaAggregatingPayload
- type MoaPhasePayload
- type MoaProgressPayload
- type MoaReferencePayload
- type ModelCapabilities
- type ModelDisconnectParams
- type ModelDisconnectResult
- type ModelOptionProvider
- type ModelOptionsParams
- type ModelOptionsResult
- type ModelPick
- type ModelPricing
- type ModelSaveKeyParams
- type ModelSaveKeyResult
- type MouseTracking
- type NoPayload
- type NoticePayload
- type NotificationClearPayload
- type NotificationShowPayload
- type OpenRequestEntry
- type ParamsRefusal
- type PasteCollapseParams
- type PasteCollapseResult
- type PeerRouteStatus
- type PendingApproval
- type PendingSubmission
- type PersistedTurn
- type PetCancelParams
- type PetCellFrames
- type PetCellsParams
- type PetCellsResult
- type PetDraft
- type PetExportResult
- type PetGalleryEntry
- type PetGalleryParams
- type PetGalleryResult
- type PetGenerateParams
- type PetGenerateProgressPayload
- type PetGenerateResult
- type PetHatchParams
- type PetHatchProgressPayload
- type PetHatchResult
- type PetInfoMetaResult
- type PetInfoParams
- type PetInfoResult
- type PetOkResult
- type PetRenameParams
- type PetRenderMode
- type PetScaleParams
- type PetScaleResult
- type PetSlugParams
- type PetSlugResult
- type PetSprite
- type PingParams
- type PingResult
- type PluginActivation
- type PluginLiveNow
- type PluginLiveServer
- type PluginLiveSkill
- type PluginRestartTarget
- type PluginScanFinding
- type PluginServerRow
- type PluginServerState
- type PluginSettingField
- type PluginSettingFieldType
- type PluginToolsetRow
- type PluginUpdateRow
- type PluginUpdateSkip
- type PluginUpdateStatus
- type PluginsAction
- type PluginsListParams
- type PluginsListResult
- type PluginsManageParams
- type PluginsManageResult
- type ProcessEntry
- type ProcessKillParams
- type ProcessKillResult
- type ProcessKillStatus
- type ProcessListResult
- type ProcessStopParams
- type ProcessStopResult
- type ProfileCreateReceipt
- type ProfileMirrored
- type ProfileParams
- type ProfileRow
- type ProfileSession
- type ProfileWorkerSession
- type ProfilesCreateParams
- type ProfilesCreateResult
- type ProfilesExportParams
- type ProfilesExportResult
- type ProfilesImportParams
- type ProfilesImportResult
- type ProfilesListParams
- type ProfilesListResult
- type ProjectRef
- type PromptCancelParams
- type PromptReceiptParams
- type PromptReceiptResult
- type PromptResolveUnknownParams
- type PromptResponseResult
- type PromptResponseStatus
- type PromptSettledPayload
- type PromptSubmitParams
- type PromptSubmitResult
- type PromptSubmitStatus
- type ProviderAccountState
- type ProviderLimit
- type ProviderLimitScope
- type ProviderUsage
- type ProviderUsageAccount
- type ProviderUsageScope
- type ProviderUsageWindow
- type QueuedPrompt
- type ReactionPayload
- type ReloadEnvParams
- type ReloadEnvResult
- type ReloadMCPParams
- type ReloadMCPResult
- type ReloadMCPSession
- type ReloadMCPStatus
- type Request
- type RequestCancelPayload
- type ResumePhaseStatus
- type RollbackCheckpoint
- type RollbackDiffParams
- type RollbackDiffResult
- type RollbackListParams
- type RollbackListResult
- type RollbackRestoreParams
- type RollbackRestoreResult
- type RollbackSessionDiffParams
- type RollbackSessionDiffResult
- type Room
- type RoomActor
- type RoomApproval
- type RoomApproveChoice
- type RoomAttachment
- type RoomAttachmentBytes
- type RoomAttachmentItem
- type RoomAuthority
- type RoomAuthorityPayload
- type RoomDriverStatus
- type RoomEvent
- type RoomExecutionPolicy
- type RoomLinkCatalog
- type RoomLinkEndpoint
- type RoomLinkStatus
- type RoomMember
- type RoomMemberActivity
- type RoomMemberInput
- type RoomMessagePayload
- type RoomPeer
- type RoomPendingAction
- type RoomPendingActionKind
- type RoomQueuedError
- type RoomRenamedPayload
- type RoomShare
- type RoomShareState
- type RoomTarget
- type RoomTaskReceipt
- type RoomTombstone
- type RoomTurnPayload
- type RuntimeDescribeParams
- type RuntimeDescribeResult
- type SecretRequestParams
- type SeedMessage
- type SessionAccountUsage
- type SessionAccountUsageParams
- type SessionActivateParams
- type SessionActivateResult
- type SessionActiveItem
- type SessionActiveListParams
- type SessionActiveListResult
- type SessionAutomationParams
- type SessionAutomationParamsKind
- type SessionAutomationResult
- type SessionBranchParams
- type SessionBranchResult
- type SessionCloseParams
- type SessionCloseResult
- type SessionCompressParams
- type SessionCompressResult
- type SessionContextBreakdownParams
- type SessionContextBreakdownResult
- type SessionControlReadParams
- type SessionControlReadResult
- type SessionControlSnapshot
- type SessionControlUpdatePayload
- type SessionCorrectionParams
- type SessionCorrectionResult
- type SessionCreateDescriptor
- type SessionCreateParams
- type SessionCreateResult
- type SessionDeleteParams
- type SessionDeleteResult
- type SessionDetachParams
- type SessionDetachResult
- type SessionExportParams
- type SessionExportResult
- type SessionHistoryParams
- type SessionHistoryResult
- type SessionIDParams
- type SessionInfo
- type SessionInterruptParams
- type SessionInterruptResult
- type SessionListParams
- type SessionListResult
- type SessionListRow
- type SessionMostRecentParams
- type SessionMostRecentResult
- type SessionMutateParams
- type SessionMutateResult
- type SessionOwner
- type SessionOwnerType
- type SessionPruneParams
- type SessionPruneResult
- type SessionReclaimedPayload
- type SessionReplayGapPayload
- type SessionResumeParams
- type SessionResumeProgressPayload
- type SessionResumeResult
- type SessionSaveParams
- type SessionSaveResult
- type SessionScopedParams
- type SessionStats
- type SessionStatsParams
- type SessionStatusParams
- type SessionStatusResult
- type SessionTitleParams
- type SessionTitlePayload
- type SessionTitleResult
- type SessionUndoParams
- type SessionUndoResult
- type SessionUsageParams
- type SessionUsagePayload
- type SessionWorkspaceMoveParams
- type SessionWorkspaceMoveResult
- type SetupAction
- type SetupActionPollParams
- type SetupActionPollResult
- type SetupActionStartParams
- type SetupActionStartResult
- type SetupDockerRuntime
- type SetupFlowAnswer
- type SetupFlowItem
- type SetupFlowOption
- type SetupFlowQuestion
- type SetupFlowQuestionKind
- type SetupFlowStartParams
- type SetupFlowStartResult
- type SetupFlowStepParams
- type SetupFlowStepResult
- type SetupHostedAnswerParams
- type SetupHostedAnswerResult
- type SetupHostedCancelParams
- type SetupHostedCancelResult
- type SetupHostedFlow
- type SetupHostedHeading
- type SetupHostedPollParams
- type SetupHostedPollResult
- type SetupHostedQuestion
- type SetupHostedQuestionKind
- type SetupHostedStartParams
- type SetupHostedStartResult
- type SetupLinkedBackends
- type SetupRuntimeCheckParams
- type SetupRuntimeCheckResult
- type SetupSSHDefaults
- type SetupSectionLoadParams
- type SetupSectionLoadResult
- type SetupSectionRemoval
- type SetupSectionSaveParams
- type SetupSectionSaveResult
- type SetupSectionWrite
- type SetupStatusResult
- type SetupTarget
- type SetupTerminalBackend
- type SetupVercelLink
- type SetupWriteKind
- type ShellExecParams
- type ShellExecResult
- type SideAgentCompletePayload
- type SideAgentParams
- type SkillBrowseItem
- type SkillCatalogEntry
- type SkillCommandRef
- type SkillHubHit
- type SkillInspectInfo
- type SkillsAction
- type SkillsManageParams
- type SkillsManageResult
- type SkillsReloadDiff
- type SkillsReloadParams
- type SkillsReloadResult
- type SkinPayloadModel
- type SlashExecParams
- type SlashExecResult
- type SnapshotArgsParams
- type SnapshotLines
- type SnapshotListParams
- type SnapshotTargetResult
- type SpawnTreeEntry
- type SpawnTreeListParams
- type SpawnTreeListResult
- type SpawnTreeLoadParams
- type SpawnTreeLoadResult
- type SpawnTreeOutput
- type SpawnTreeSaveParams
- type SpawnTreeSaveResult
- type SpawnTreeSubagent
- type StatusBarPlace
- type StatusUpdatePayload
- type SteerStatus
- type StreamDeltaPayload
- type SubagentEventPayload
- type SubagentIDParams
- type SubagentInterruptResult
- type SubagentListResult
- type SubagentOutputTailEntry
- type SubagentSnapshot
- type SubagentStatus
- type SubagentSteerParams
- type SubagentSteerResult
- type SubagentTailResult
- type SubmitAnswer
- type SudoRequestParams
- type SystemBatteryResult
- type TaskIDResult
- type TerminalResizeParams
- type TerminalResizeResult
- type TextPayload
- type ThemeMode
- type TodoItem
- type TodoState
- type TodoStatus
- type ToolCompletePayload
- type ToolGeneratingPayload
- type ToolLabel
- type ToolLabelKind
- type ToolOutputRiskPayload
- type ToolProgressPayload
- type ToolShowRow
- type ToolShowSection
- type ToolStartPayload
- type ToolsAction
- type ToolsConfigureParams
- type ToolsConfigureResult
- type ToolsListParams
- type ToolsListResult
- type ToolsShowResult
- type TranscriptMessage
- type TurnStatus
- type UndoIntent
- type UndoRollbackHint
- type UntrustedProjectSkills
- type Usage
- type ValueAnswer
- type VaultCodeRequestParams
- type VaultSaveLoginRequestParams
- type VaultUnlockRequestParams
- type VoicePartialPayload
- type VoicePlaybackParams
- type VoiceRecordAction
- type VoiceRecordParams
- type VoiceRecordResult
- type VoiceRecordStatus
- type VoiceSpeechKind
- type VoiceSpeechPayload
- type VoiceStatusPayload
- type VoiceStopped
- type VoiceSubmitMode
- type VoiceToggleAction
- type VoiceToggleParams
- type VoiceToggleResult
- type VoiceTranscriptPayload
- type WaitBarrier
- type WaitBarrierType
- type WakeControlParams
- type WakeDetectedPayload
- type WakeDeviceSelector
- type WakeInputDevice
- type WakeResumeResult
- type WakeStartParams
- type WakeStartResult
- type WakeStatusParams
- type WakeStatusResult
- type WakeStopParams
- type WakeStopResult
- type WorkerExecution
- type WorkerKind
- type WorkerPersistParams
- type WorkerRegisterParams
- type WorkerScopeParams
- type WorkerStatus
- type WorktreeCreateParams
- type WorktreeCreateResult
- type WorktreeCwdParams
- type WorktreeKept
- type WorktreeLaunch
- type WorktreeListResult
- type WorktreePruneParams
- type WorktreePruneResult
- type WorktreeRecordResult
- type WorktreeRef
- type WorktreeSettleResult
- type WorktreeStatusParams
- type WorktreeStatusResult
Constants ¶
const ContractVersion = 1
Version of the wire contract, raised when a declared type changes so that a peer of an older contract misreads it
Variables ¶
var A2AForward = NewCanonicalMethod[A2AForwardParams, A2AForwardResult]("a2a.forward")
Forwards one A2A input into the conversation its identity tuple names
var AgentPrintEvent = NewEvent[TextPayload]("agent.print")
Status line the agent printed during a local viewer's turn
var ApprovalCancelledEvent = NewEvent[ApprovalCancelledPayload]("approval.cancelled")
Approvals of a session were dropped and settled as deny
var ApprovalRequest = NewRequest[ApprovalRequestParams, ApprovalAnswer]("approval")
A dangerous command awaits the user's verdict
var ApprovalRequestEvent = NewEvent[CanonicalPendingPrompt]("approval.request")
The running generation asks the viewers to approve a command
var ApprovalRespond = NewMethod[ApprovalRespondParams, ApprovalRespondResult]("approval.respond")
Verdict on a dangerous command on the method table route
var ApprovalSettledEvent = NewEvent[PromptSettledPayload]("approval.settled")
An approval prompt was answered
var BackgroundCompleteEvent = NewEvent[SideAgentCompletePayload]("background.complete")
A background side agent finished
var BotRelayDeliver = NewCanonicalMethod[BotDeliverParams, BotDeliverResult]("bot_relay.deliver")
Hands one bot message to a profile's conversation
var BotRelaySettle = NewCanonicalMethod[BotDeliverParams, BotDeliverResult]("bot_relay.settle")
Settles a delivery the sender was unsure of
var BrowserManage = NewMethod[BrowserManageParams, BrowserManageResult]("browser.manage")
Inspects, attaches to or drops the CDP browser the tools use
var BrowserProgressEvent = NewEvent[BrowserProgressPayload]("browser.progress")
Progress line of a browser connect
var BtwCompleteEvent = NewEvent[SideAgentCompletePayload]("btw.complete")
A side question was answered
var BuildID = sync.OnceValue(readBuildID)
Go build ID of the running executable, empty when the executable cannot be read
var CanonicalApprovalRespond = NewCanonicalMethod[CanonicalApprovalParams, PromptResponseResult]("approval.respond")
Generation fenced verdict on an approval prompt
var CanonicalClarifyLock = NewCanonicalMethod[ClarifyLockParams, ClarifyLockResult]("clarify.lock")
Locks one answer of the owner's batch clarify request, editable until every question is locked
var CanonicalClarifyRespond = NewCanonicalMethod[CanonicalClarifyParams, PromptResponseResult]("clarify.respond")
Generation fenced answer to a clarify prompt
var CanonicalGroupsApprove = NewCanonicalMethod[CanonicalRoomApproveParams, GroupsApproveResult]("groups.approve")
Answers one pending approval on the session authority, once or deny
var CanonicalGroupsAttachmentDownload = NewCanonicalMethod[GroupsAttachmentDownloadParams, RoomAttachmentBytes]("groups.attachment.download")
Reads one committed file of a room log on the session authority
var CanonicalGroupsAttachmentUpload = NewCanonicalMethod[GroupsAttachmentUploadParams, RoomAttachment]("groups.attachment.upload")
Stores one file for a later message on the session authority
var CanonicalGroupsCreate = NewCanonicalMethod[CanonicalRoomCreateParams, GroupsCreateResult]("groups.create")
Creates a room on the session authority
var CanonicalGroupsDiscard = NewCanonicalMethod[GroupsDiscardParams, GroupsDiscardResult]("groups.discard")
Discards one indeterminate room task on the session authority
var CanonicalGroupsPeers = NewCanonicalMethod[GroupsPeersParams, GroupsPeersResult]("groups.peers")
Registered peer gateways and the peers one room is shared with
var CanonicalGroupsRetry = NewCanonicalMethod[CanonicalRoomAttemptParams, GroupsRetryResult]("groups.retry")
Retries one room task on the session authority, fenced on its generation
Shares a room this gateway hosts with a registered peer gateway
Stops sharing a room with a peer, which drops its replica on its next sync
var CanonicalImageAttachBytes = NewCanonicalMethod[ImageAttachBytesParams, CanonicalAttachedImage]("image.attach_bytes")
Queues an uploaded image on the session authority, answering its mime type too
var CanonicalProfilesList = NewCanonicalMethod[ProfilesListParams, ProfilesListResult]("profiles.list")
Profile roster of the session authority, sessions included unless turned off
var CanonicalPromptCancel = NewCanonicalMethod[PromptCancelParams, AdmissionReceipt]("prompt.cancel")
Withdraws a queued admission, interrupting a started one in the same call
var CanonicalPromptReceipt = NewCanonicalMethod[PromptReceiptParams, PromptReceiptResult]("prompt.receipt")
Current receipt of one admission the caller submitted or controls
var CanonicalPromptReplaceQueued = NewCanonicalMethod[CanonicalReplaceQueuedParams, AdmissionReceipt]("prompt.replace_queued")
Replaces a queued admission with an edited prompt at the back of the queue in one write
var CanonicalPromptResolveUnknown = NewCanonicalMethod[PromptResolveUnknownParams, AdmissionReceipt]("prompt.resolve_unknown")
Acknowledges a turn lost across an owner restart so the queue behind it resumes, never requeueing it
var CanonicalPromptSubmit = NewCanonicalMethod[CanonicalSubmitParams, SubmitAnswer]("prompt.submit")
Admits a prompt into the owner's durable queue
var CanonicalRuntimeDescribe = NewCanonicalMethod[RuntimeDescribeParams, RuntimeDescribeResult]("runtime.describe")
Session creation policy, protocol and capabilities of the runtime
var CanonicalSessionAccountUsage = NewCanonicalMethod[SessionAccountUsageParams, SessionAccountUsage]("session.account_usage")
Account limits of the provider a session runs on, as the lines the usage command prints under the totals
var CanonicalSessionAutomation = NewCanonicalMethod[SessionAutomationParams, SessionAutomationResult]("session.automation")
Arms or reads the automation a viewer runs on a session
var CanonicalSessionCreate = NewCanonicalMethod[CanonicalCreateParams, CanonicalSnapshot]("session.create")
Creates a session on the session authority and attaches to it
var CanonicalSessionDetach = NewCanonicalMethod[SessionDetachParams, SessionDetachResult]("session.detach")
Ends one subscription of the caller to a session
var CanonicalSessionExport = NewCanonicalMethod[SessionExportParams, SessionExportResult]("session.export")
Writes a session transcript to a file or returns it inline
var CanonicalSessionInfo = NewCanonicalMethod[CanonicalSessionInfoParams, SessionInfo]("session.info")
Frozen launch policy and inventory of one local session
var CanonicalSessionInterrupt = NewCanonicalMethod[CanonicalControlParams, CanonicalSessionHandle]("session.interrupt")
Stops the running generation of a canonical session
var CanonicalSessionList = NewCanonicalMethod[CanonicalListParams, CanonicalListResult]("session.list")
Lists the live or stored sessions of the profile
var CanonicalSessionMutate = NewCanonicalMethod[SessionMutateParams, SessionMutateResult]("session.mutate")
Revision fenced, retry safe session edit, its operation projection riding beside the receipt
var CanonicalSessionPrune = NewCanonicalMethod[SessionPruneParams, SessionPruneResult]("session.prune")
Deletes the ended sessions a prune selected, skipping busy ones, local operator only
var CanonicalSessionRedirect = NewCanonicalMethod[CanonicalCorrectionParams, CorrectionAnswer]("session.redirect")
Redirects the running generation, held for the next turn while the agent builds
var CanonicalSessionResume = NewCanonicalMethod[CanonicalResumeParams, CanonicalSnapshot]("session.resume")
Attaches to a stored or live session, by id, title or the latest of a source
var CanonicalSessionStats = NewCanonicalMethod[SessionStatsParams, SessionStats]("session.stats")
Cumulative token, context, latency and rate limit counters of a session
var CanonicalSessionSteer = NewCanonicalMethod[CanonicalCorrectionParams, CorrectionAnswer]("session.steer")
Puts text into the next tool result of the running generation
var CanonicalShellExec = NewCanonicalMethod[CanonicalShellExecParams, ShellExecResult]("shell.exec")
Runs one safe shell line of a local session on the shared owner
var ClarifyLock = NewMethod[ClarifyLockParams, ClarifyLockResult]("clarify.lock")
Locks one answer of a batch clarify request on the method table route, editable until every question is locked
var ClarifyRequest = NewRequest[ClarifyRequestParams, ClarifyAnswer]("clarify")
The clarify tool asks the user one to five questions
var ClarifyRequestEvent = NewEvent[CanonicalPendingPrompt]("clarify.request")
The running generation asks the viewers a question
var ClarifySettledEvent = NewEvent[PromptSettledPayload]("clarify.settled")
A clarify prompt was answered
var ClientCapabilities = NewMethod[ClientCapabilitiesParams, ClientCapabilitiesResult]("client.capabilities")
What the calling client handles, sent once per connection after gateway.ready
var ClipboardPaste = NewMethod[SessionIDParams, AttachedImageResult]("clipboard.paste")
Saves the host clipboard image into the session and queues it for the next turn
var CommandDispatch = NewMethod[CommandDispatchParams, CommandDispatchResult]("command.dispatch")
Runs a quick, plugin, bundle, skill or built in slash command and answers its directive
var CommandObserve = NewCanonicalMethod[CommandObserveParams, CommandObserveResult]("command.observe")
Tells the shared owner a client ran a recognized command itself
var CommandsCatalog = NewMethod[CommandsCatalogParams, CommandsCatalogResult]("commands.catalog")
Slash catalog of registry, quick, plugin and skill commands for the palette and completion
var CompletePath = NewMethod[CompletePathParams, CompletionItemsResult]("complete.path")
Files, folders, profiles and plugin references completing the composer word
var CompleteSlash = NewMethod[CompleteSlashParams, CompleteSlashResult]("complete.slash")
Ranked slash commands and skills completing a slash token
var ConfigGet = NewMethod[ConfigGetParams, ConfigGetResult]("config.get")
Reads one config key, or with key full the settings the terminal UI follows, on both routes
var ConfigSet = NewMethod[ConfigSetParams, ConfigSetResult]("config.set")
Changes one config key, persisted or for the session, and answers the value it took, on both routes
var ConnectionRequestEvent = NewEvent[ConnectionRequestPayload]("connection.request")
A connection operation opened on the session
var ConnectionRespond = NewMethod[ConnectionRespondParams, ConnectionRespondResult]("connection.respond")
Per target answers of the connection card, or its continue
var ConnectionUpdateEvent = NewEvent[ConnectionUpdatePayload]("connection.update")
A target of an open connection operation moved or the operation settled
var ConnectorsConnect = NewMethod[ConnectorsConnectParams, ConnectionOperationSnapshot]("connectors.connect")
Runs failed rows of the session's open connection operation again
var ConnectorsOperationStatus = NewMethod[ConnectionOperationParams, ConnectionOperationSnapshot]("connectors.operation.status")
Current snapshot of an open connection operation
var ConnectorsOperationWake = NewMethod[ConnectionOperationParams, ConnectionWakeResult]("connectors.operation.wake")
Makes the watcher of an open operation check the accounts now
var CronCancel = NewCanonicalMethod[CronAdmissionParams, CronCancelResult]("cron.cancel")
Cancels a queued cron admission or latches cancellation on a started one
var CronRecover = NewCanonicalMethod[CronRunParams, CronStatusResult]("cron.recover")
Observes a firing again after a scheduler restart, by the same request identity
var CronStatus = NewCanonicalMethod[CronAdmissionParams, CronStatusResult]("cron.status")
Status and, once terminal, the outcome of one cron admission
var CronSubmit = NewCanonicalMethod[CronRunParams, CronSubmitResult]("cron.submit")
Admits one cron firing into the owning profile's durable queue
var DelegationPause = NewMethod[DelegationPauseParams, DelegationPauseResult]("delegation.pause")
Blocks or unblocks new spawns everywhere, running children go on, answering the new state
var DelegationStatus = NewMethod[ProfileParams, DelegationStatusResult]("delegation.status")
Live delegated children, the spawn pause flag and the limits
var DisplayInstall = NewMethod[ProfileParams, DisplayInstallResult]("display.install")
Runs the package install on the gateway host, progress streamed as display.install.log and done
var DisplayInstallDoneEvent = NewEvent[DisplayInstallDonePayload]("display.install.done")
The install ended
var DisplayInstallLogEvent = NewEvent[DisplayInstallLogPayload]("display.install.log")
One line of package manager output
var DisplayInstallSudoRequest = NewRequest[DisplayInstallSudoParams, ValueAnswer]("display.install.sudo")
Sudo password for the bot screen package install
var DisplayLeaseAcquire = NewMethod[DisplayLeaseAcquireParams, DisplayLeaseResult]("display.lease.acquire")
A person takes the screen, the agent's actions on it refused until it is handed back
var DisplayLeaseEvent = NewEvent[DisplayLeasePayload]("display.lease")
The takeover lease changed hands
var DisplayLeaseRelease = NewMethod[DisplayLeaseReleaseParams, DisplayLeaseResult]("display.lease.release")
Hands the screen back to the agent, refused with viewer_mismatch while another viewer holds it unless forced
var DisplayStart = NewMethod[ProfileParams, DisplayStatus]("display.start")
Starts this profile's screen and waits until it is published
var DisplayStatusEvent = NewEvent[DisplayStatus]("display.status")
This profile's screen started or stopped
var DisplayStatusMethod = NewMethod[ProfileParams, DisplayStatus]("display.status")
Runtime and lease of this profile's screen
var DisplayStop = NewMethod[DisplayStopParams, DisplayStopResult]("display.stop")
Stops the screen, refused with viewer_mismatch while a person holds it unless forced
var DisplaySwitchSandboxImage = NewMethod[DisplaySwitchSandboxImageParams, DisplaySwitchSandboxImageResult]("display.switchSandboxImage")
Decides the pending default sandbox image switch of this profile
var DisplayThumbnail = NewMethod[ProfileParams, DisplayThumbnailResult]("display.thumbnail")
Grabs one frame of this profile's screen without touching the lease
var ErrorEvent = NewEvent[ErrorPayload]("error")
Session failure outside a turn
var GatewayReadyEvent = NewEvent[GatewayReadyPayload]("gateway.ready")
First frame of a connection, the skin, change events, replay epoch and session authority
var GroupsApprove = NewMethod[GroupsApproveParams, GroupsApproveResult]("groups.approve")
Answers one pending approval of a local or peer member
var GroupsAttachmentDownload = NewMethod[GroupsAttachmentDownloadParams, RoomAttachmentBytes]("groups.attachment.download")
Reads one committed file of a room log
var GroupsAttachmentUpload = NewMethod[GroupsAttachmentUploadParams, RoomAttachment]("groups.attachment.upload")
Stores one file for a later message, idempotent per upload id
var GroupsCapabilities = NewMethod[GroupsCapabilitiesParams, GroupsCapabilitiesResult]("groups.capabilities")
Room protocol this gateway implements
var GroupsContinue = NewMethod[GroupsContinueParams, GroupsContinueResult]("groups.continue")
Grants a discussion paused at its cap one more budget of rounds and messages
var GroupsCreate = NewMethod[GroupsCreateParams, GroupsCreateResult]("groups.create")
Creates a room idempotently, this gateway's install identity its authority
var GroupsDisband = NewMethod[GroupsDisbandParams, GroupsDisbandResult]("groups.disband")
Tombstones a room for good after stopping its work and revoking peer routes
var GroupsDiscard = NewMethod[GroupsDiscardParams, GroupsDiscardResult]("groups.discard")
Discards one indeterminate room task after the user confirmed it
var GroupsList = NewMethod[GroupsListParams, GroupsListResult]("groups.list")
Rooms this gateway hosts or holds a replica of, most recently changed first
var GroupsLog = NewMethod[GroupsLogParams, GroupsLogResult]("groups.log")
Room log after since_seq, bounded by count and page bytes
var GroupsPromote = NewMethod[GroupsPromoteParams, GroupsPromoteResult]("groups.promote")
Continues a replicated room on this gateway at the next epoch, confirm required
var GroupsRename = NewMethod[GroupsRenameParams, GroupsRenameResult]("groups.rename")
Renames a room together with its replay event
var GroupsReplicaState = NewMethod[GroupsReplicaStateParams, GroupsReplicaStateResult]("groups.replica_state")
Coverage and authority lineage of the local replica of a room
var GroupsRetry = NewMethod[GroupsRetryParams, GroupsRetryResult]("groups.retry")
Retries one indeterminate or deferred room task after the user confirmed it
var GroupsSend = NewMethod[GroupsSendParams, GroupsSendResult]("groups.send")
Appends one user message idempotently, the actor set by the gateway
var GroupsState = NewMethod[GroupsStateParams, GroupsStateResult]("groups.state")
One room with its replay cursor, fenced authority and live driver status
var GroupsStop = NewMethod[GroupsStopParams, GroupsStopResult]("groups.stop")
Cancels the queued and running work of a room
var HandoffFail = NewMethod[HandoffFailParams, HandoffFailResult]("handoff.fail")
Fails a handoff the watcher has not claimed yet
var HandoffRequest = NewMethod[HandoffRequestParams, HandoffRequestResult]("handoff.request")
Queues a handoff of the session to a messaging platform's home channel
var HandoffState = NewMethod[SessionIDParams, HandoffStateResult]("handoff.state")
Reads the handoff row of the session
var I18nCatalog = NewMethod[I18nCatalogParams, I18nCatalogResult]("i18n.catalog")
Messages of one language pack and surface
var I18nLanguages = NewMethod[I18nLanguagesParams, I18nLanguagesResult]("i18n.languages")
Languages the UI can be shown in
var ImageAttach = NewMethod[ImageAttachParams, AttachedImageResult]("image.attach")
Queues an image file the gateway can read for the next turn
var ImageAttachBytes = NewMethod[ImageAttachBytesParams, AttachedImageResult]("image.attach_bytes")
Queues an image uploaded as base64 for the next turn
var ImageDetach = NewMethod[ImageDetachParams, ImageDetachResult]("image.detach")
Drops a queued image before the turn is sent
var ImageRender = NewMethod[ImageRenderParams, ImageRenderResult]("image.render")
Lays out a local image of the gateway host for an inline terminal preview
var InputDetectDrop = NewMethod[InputDetectDropParams, InputDetectDropResult]("input.detect_drop")
Turns a terminal file drop pasted into the composer into an attachment
var KanbanRun = NewCanonicalMethod[KanbanRunParams, KanbanRunResult]("kanban.run")
Admits the dispatcher's claim on a kanban task, native owner only
var LearningDelete = NewMethod[LearningNodeParams, LearningMutationResult]("learning.delete")
Archives a skill or removes a memory chunk
var LearningDetail = NewMethod[LearningNodeParams, LearningDetailResult]("learning.detail")
Content of a skill or memory node for an edit prefill
var LearningEdit = NewMethod[LearningEditParams, LearningMutationResult]("learning.edit")
Rewrites the content of a skill or memory node
var LearningFrames = NewMethod[LearningFramesParams, LearningFramesResult]("learning.frames")
Pre-renders the journey timeline so the window walks it locally
var LearningGraph = NewMethod[LearningGraphParams, LearningGraphResult]("learning.graph")
Learning graph of the profile, the skill and memory nodes with their links and stats
var MCPCatalog = NewMethod[ProfileParams, MCPCatalogResult]("mcp.catalog")
Catalog MCP servers with their install state and the env keys each needs
var MCPServersAdd = NewMethod[MCPServersAddParams, MCPServerResult]("mcp.servers.add")
Adds an MCP server from a catalog preset or an explicit config
var MCPServersEnable = NewMethod[MCPServersEnableParams, MCPServerResult]("mcp.servers.enable")
Sets the enabled flag of a configured MCP server
var MCPServersList = NewMethod[ProfileParams, MCPServersListResult]("mcp.servers.list")
Configured MCP servers of the profile, secrets named by their env keys
var MCPServersOAuthCancel = NewMethod[MCPOAuthFlowParams, MCPOAuthCancelResult]("mcp.servers.oauth.cancel")
Stops a sign in flow
var MCPServersOAuthPoll = NewMethod[MCPOAuthFlowParams, MCPOAuthPollResult]("mcp.servers.oauth.poll")
Reads a sign in flow, an approval storing the tokens for the profile
var MCPServersOAuthStart = NewMethod[MCPOAuthStartParams, MCPOAuthStartResult]("mcp.servers.oauth.start")
Starts the browser sign in of an MCP server
var MCPServersRemove = NewMethod[MCPServerNameParams, MCPServersRemoveResult]("mcp.servers.remove")
Drops an MCP server from config.yaml
var MCPServersSetAPIKey = NewMethod[MCPServersSetAPIKeyParams, MCPServersSetAPIKeyResult]("mcp.servers.set_api_key")
Stores a credential of an MCP server in the profile's .env and references it from the server
var MCPServersStatus = NewMethod[ProfileParams, MCPServersStatusResult]("mcp.servers.status")
Cached runtime state of every configured MCP server, never connecting
var MCPServersTest = NewMethod[MCPServerNameParams, MCPServersTestResult]("mcp.servers.test")
Connects to an MCP server once and lists its tools
var MessageCompleteEvent = NewEvent[MessageCompletePayload]("message.complete")
The turn ended
var MessageDeltaEvent = NewEvent[MessageDeltaPayload]("message.delta")
One streamed chunk of the reply
var MessageInterimEvent = NewEvent[MessageInterimPayload]("message.interim")
Commentary beside tool calls sealed as its own segment
var MessageStartEvent = NewEvent[MessageStartPayload]("message.start")
A turn began streaming
var MoaAggregatingEvent = NewEvent[MoaAggregatingPayload]("moa.aggregating")
The mixture of agents aggregator started
var MoaPhaseEvent = NewEvent[MoaPhasePayload]("moa.phase")
A mixture of agents turn changed phase
var MoaProgressEvent = NewEvent[MoaProgressPayload]("moa.progress")
Mixture of agents references answered so far
var MoaReferenceEvent = NewEvent[MoaReferencePayload]("moa.reference")
One mixture of agents reference answered
var ModelDisconnect = NewMethod[ModelDisconnectParams, ModelDisconnectResult]("model.disconnect")
Removes every credential of a provider, its env keys and its sign in state
var ModelOptions = NewMethod[ModelOptionsParams, ModelOptionsResult]("model.options")
Provider and model inventory of the picker, layered over the live provider of the session when named
var ModelSaveKey = NewMethod[ModelSaveKeyParams, ModelSaveKeyResult]("model.save_key")
Saves an API key for a provider and returns its refreshed picker row
var MouseTrackingAliases = map[string]string{
"0": "off", "1": "all", "all": "all", "any": "all", "button": "buttons", "buttons": "buttons",
"click": "buttons", "false": "off", "full": "all", "no": "off", "off": "off", "on": "all",
"scroll": "wheel", "true": "all", "wheel": "wheel", "yes": "all",
}
Mouse tracking spellings mapped to off, wheel, buttons or all
var NoticeEvent = NewEvent[NoticePayload]("notice")
Informational one liner for the session
var NotificationClearEvent = NewEvent[NotificationClearPayload]("notification.clear")
Withdraws the notice with this key
var NotificationShowEvent = NewEvent[NotificationShowPayload]("notification.show")
Shows or replaces a keyed notice
var PanicOnMisfit = os.Getenv("ICEBATH_TEST_ISOLATION") != ""
Misfits panic under test isolation and are logged otherwise
var PasteCollapse = NewMethod[PasteCollapseParams, PasteCollapseResult]("paste.collapse")
Spills a large paste to a file and answers the inline placeholder
var PetCancel = NewMethod[PetCancelParams, PetOkResult]("pet.cancel")
Stops a pet generate or hatch in flight by its token
var PetCells = NewMethod[PetCellsParams, PetCellsResult]("pet.cells")
Half-block cell frames or a kitty placement of one pet state
var PetChangedEvent = NewEvent[PetInfoMetaResult]("pet.changed")
The active pet or its spritesheet changed
var PetDisable = NewMethod[ProfileParams, PetOkResult]("pet.disable")
Turns the pet display off
var PetEnable = NewMethod[ProfileParams, PetOkResult]("pet.enable")
Turns the pet display on, the configured pet kept
var PetExport = NewMethod[PetSlugParams, PetExportResult]("pet.export")
Exports an installed pet as a re-importable zip
var PetGallery = NewMethod[PetGalleryParams, PetGalleryResult]("pet.gallery")
Pet gallery with the local install state, the remote manifest skipped for localOnly
var PetGenerate = NewMethod[PetGenerateParams, PetGenerateResult]("pet.generate")
Base look drafts of a new pet, each also streamed as pet.generate.progress
var PetGenerateProgressEvent = NewEvent[PetGenerateProgressPayload]("pet.generate.progress")
Progress of a draft generation
var PetHatch = NewMethod[PetHatchParams, PetHatchResult]("pet.hatch")
Turns a base draft into a full spritesheet pet, progress streamed as pet.hatch.progress
var PetHatchProgressEvent = NewEvent[PetHatchProgressPayload]("pet.hatch.progress")
Progress of a hatch drawing its rows
var PetInfo = NewMethod[PetInfoParams, PetInfoResult]("pet.info")
Active pet for sprite renderers, its spritesheet as base64 with frame geometry and state rows
var PetInfoMeta = NewMethod[ProfileParams, PetInfoMetaResult]("pet.info.meta")
Metadata of the active pet that tells a renderer whether its spritesheet changed
var PetRemove = NewMethod[PetSlugParams, PetSlugResult]("pet.remove")
Uninstalls a pet, turning the display off when it was active
var PetRename = NewMethod[PetRenameParams, PetSlugResult]("pet.rename")
Renames a pet and realigns its slug, following the active slug in config
var PetScale = NewMethod[PetScaleParams, PetScaleResult]("pet.scale")
Persists the pet scale clamped to the renderer bounds
var PetSelect = NewMethod[PetSlugParams, PetSlugResult]("pet.select")
Installs when needed and activates a pet
var Ping = NewMethod[PingParams, PingResult]("ping")
Cheapest liveness probe, answered while every agent is mid turn
var PluginsList = NewMethod[PluginsListParams, PluginsListResult]("plugins.list")
Loaded plugin manager entries, the flat view the chat commands print
var PluginsManage = NewMethod[PluginsManageParams, PluginsManageResult]("plugins.manage")
Plugins hub, list, toggle, install, inspect, update of one or every plugin, remove, settings and catalog presence
var ProcessKill = NewMethod[ProcessKillParams, ProcessKillResult]("process.kill")
Kills one background process the session owns and answers its output snapshot
var ProcessList = NewMethod[SessionIDParams, ProcessListResult]("process.list")
Background processes the session owns
var ProcessStop = NewMethod[ProcessStopParams, ProcessStopResult]("process.stop")
Kills the background processes the session owns, or every process a standalone sidecar holds
var ProfilesCreate = NewMethod[ProfilesCreateParams, ProfilesCreateResult]("profiles.create")
Creates a profile in the caller's profile scope, mirroring its launch credentials unless told not to
var ProfilesExport = NewMethod[ProfilesExportParams, ProfilesExportResult]("profiles.export")
Writes a profile, its config, skills and theme, to a shareable archive
var ProfilesImport = NewMethod[ProfilesImportParams, ProfilesImportResult]("profiles.import")
Imports a shared profile archive as a new profile with its wrapper alias
var ProfilesList = NewMethod[ProfilesListParams, ProfilesListResult]("profiles.list")
Profile roster with previews so a client paints without a call per profile
var PromptBackground = NewMethod[SideAgentParams, TaskIDResult]("prompt.background")
Runs a task on a fresh agent in the background, its answer arriving as background.complete
var PromptBtw = NewMethod[SideAgentParams, TaskIDResult]("prompt.btw")
Asks a side question over the live conversation, its answer arriving as btw.complete
var PromptSubmit = NewMethod[PromptSubmitParams, PromptSubmitResult]("prompt.submit")
Sends a prompt on the method table route, a busy session queueing, steering or redirecting it
var ReactionEvent = NewEvent[ReactionPayload]("reaction")
Affection detected in the user's message
var ReasoningAvailableEvent = NewEvent[StreamDeltaPayload]("reasoning.available")
A whole reasoning block of a provider that does not stream it
var ReasoningDeltaEvent = NewEvent[StreamDeltaPayload]("reasoning.delta")
One streamed chunk of the model's reasoning
var ReloadEnv = NewMethod[ReloadEnvParams, ReloadEnvResult]("reload.env")
Reads the profile's env file again, built agents keeping their pool until a new session
var ReloadMCP = NewMethod[ReloadMCPParams, ReloadMCPResult]("reload.mcp")
Reconnects the MCP servers of the live sessions after a config change
var RequestCancelEvent = NewEvent[RequestCancelPayload]("request.cancel")
An open request was withdrawn, its card closes
var ReviewSummaryEvent = NewEvent[TextPayload]("review.summary")
Background review of the last turn finished
var RollbackDiff = NewMethod[RollbackDiffParams, RollbackDiffResult]("rollback.diff")
Diff between a checkpoint and the working tree
var RollbackList = NewMethod[RollbackListParams, RollbackListResult]("rollback.list")
Checkpoints of the session's working directory
var RollbackRestore = NewMethod[RollbackRestoreParams, RollbackRestoreResult]("rollback.restore")
Restores the working tree or one file to a checkpoint
var RollbackSessionDiff = NewCanonicalMethod[RollbackSessionDiffParams, RollbackSessionDiffResult]("rollback.session_diff")
Everything the session changed since its earliest retained checkpoint
var SecretRequest = NewRequest[SecretRequestParams, ValueAnswer]("secret")
Value of a named environment variable for a skill or setup flow
var SessionActivate = NewMethod[SessionActivateParams, SessionActivateResult]("session.activate")
Switches to a live session the gateway already runs
var SessionActiveList = NewMethod[SessionActiveListParams, SessionActiveListResult]("session.active_list")
Live sessions of the gateway with their state, the current one marked
var SessionBranch = NewMethod[SessionBranchParams, SessionBranchResult]("session.branch")
Forks a live session into a new one
var SessionClose = NewMethod[SessionCloseParams, SessionCloseResult]("session.close")
Closes a live session and returns its closing lines
var SessionCompress = NewMethod[SessionCompressParams, SessionCompressResult]("session.compress")
Compresses a live session's transcript, optionally around a focus topic
var SessionContextBreakdown = NewMethod[SessionContextBreakdownParams, SessionContextBreakdownResult]("session.context_breakdown")
Context window of a live session by category and by context file
var SessionControlRead = NewMethod[SessionControlReadParams, SessionControlReadResult]("session.control.read")
Goal, loop and heartbeat state of a session
var SessionControlUpdateEvent = NewEvent[SessionControlUpdatePayload]("session.control.update")
Persisted goal, loop or heartbeat state of a session changed
var SessionCreate = NewMethod[SessionCreateParams, SessionCreateResult]("session.create")
Creates a live session on the method table route
var SessionDelete = NewMethod[SessionDeleteParams, SessionDeleteResult]("session.delete")
Deletes a stored session
var SessionHistory = NewMethod[SessionHistoryParams, SessionHistoryResult]("session.history")
Transcript of a live session
var SessionInfoEvent = NewEvent[SessionInfo]("session.info")
Settings, inventory or live state of a session changed, the fields carried replacing the held ones
var SessionInterrupt = NewMethod[SessionInterruptParams, SessionInterruptResult]("session.interrupt")
Stops the running turn and its speech on the method table route
var SessionList = NewMethod[SessionListParams, SessionListResult]("session.list")
Lists stored sessions, newest first
var SessionMostRecent = NewMethod[SessionMostRecentParams, SessionMostRecentResult]("session.most_recent")
Newest stored session of the profile
var SessionReclaimedEvent = NewEvent[SessionReclaimedPayload]("session.reclaimed")
The gateway reclaimed a live session from its clients
var SessionRedirect = NewMethod[SessionCorrectionParams, SessionCorrectionResult]("session.redirect")
Redirects the running turn on the method table route, held for the next turn while the agent builds
var SessionReplayGapEvent = NewEvent[SessionReplayGapPayload]("session.replay_gap")
The replay buffer of a session overflowed, the client resumes it
var SessionResume = NewMethod[SessionResumeParams, SessionResumeResult]("session.resume")
Resumes a stored session by id or exact title on the method table route
var SessionResumeProgressEvent = NewEvent[SessionResumeProgressPayload]("session.resume_progress")
Progress of a deferred resume loading the history
var SessionSave = NewMethod[SessionSaveParams, SessionSaveResult]("session.save")
Saves the transcript of a live session to a file
var SessionStatus = NewMethod[SessionStatusParams, SessionStatusResult]("session.status")
Status text of a live session
var SessionSteer = NewMethod[SessionCorrectionParams, SessionCorrectionResult]("session.steer")
Puts text into the next tool result of the running turn on the method table route
var SessionTitle = NewMethod[SessionTitleParams, SessionTitleResult]("session.title")
Reads or sets a live session title, a title set before the first turn applied once it exists
var SessionTitleEvent = NewEvent[SessionTitlePayload]("session.title")
Automatic titling renamed a session
var SessionUndo = NewMethod[SessionUndoParams, SessionUndoResult]("session.undo")
Removes the last exchange of a live session
var SessionUpdatedEvent = NewEvent[SessionMutateResult]("session.updated")
A session edit committed or a deferred model pick settled, its projection riding beside the operation
var SessionUsage = NewMethod[SessionUsageParams, Usage]("session.usage")
Token, context and cost counters of a live session
var SessionUsageEvent = NewEvent[SessionUsagePayload]("session.usage")
Usage counters of a session after an API call or a turn
var SessionWorkspaceMove = NewMethod[SessionWorkspaceMoveParams, SessionWorkspaceMoveResult]("session.workspace.move")
Moves a live session to another working directory
var SessionsChangedEvent = NewEvent[NoPayload]("sessions.changed")
The session store moved, the UI fetches the session list again
var SetupActionPoll = NewMethod[SetupActionPollParams, SetupActionPollResult]("setup.action.poll")
Waits up to two seconds for new output of a setup job or a change of its redrawn line
var SetupActionStart = NewMethod[SetupActionStartParams, SetupActionStartResult]("setup.action.start")
Starts a side effect of a setup section, a login, an engine install or a connection test
var SetupFlowStart = NewMethod[SetupFlowStartParams, SetupFlowStartResult]("setup.flow.start")
Starts a setup flow on the gateway, one at a time, and returns the session that follows it
var SetupFlowStep = NewMethod[SetupFlowStepParams, SetupFlowStepResult]("setup.flow.step")
Answers the open question of a setup flow and waits up to two seconds for its next output, question or end
var SetupHostedAnswer = NewMethod[SetupHostedAnswerParams, SetupHostedAnswerResult]("setup.hosted.answer")
Answers the question a hosted setup section waits on
var SetupHostedCancel = NewMethod[SetupHostedCancelParams, SetupHostedCancelResult]("setup.hosted.cancel")
Stops a hosted setup section, its open question backed out of and its sign in waits ended
var SetupHostedPoll = NewMethod[SetupHostedPollParams, SetupHostedPollResult]("setup.hosted.poll")
Waits up to two seconds for output, a question or the end of a hosted setup section
var SetupHostedStart = NewMethod[SetupHostedStartParams, SetupHostedStartResult]("setup.hosted.start")
Runs a setup section on the gateway with its questions put to the terminal UI
var SetupRuntimeCheck = NewMethod[SetupRuntimeCheckParams, SetupRuntimeCheckResult]("setup.runtime_check")
Strict check of the route a session would be built with, one provider alone when named
var SetupSectionLoad = NewMethod[SetupSectionLoadParams, SetupSectionLoadResult]("setup.section.load")
Reads the values a setup section starts from
var SetupSectionSave = NewMethod[SetupSectionSaveParams, SetupSectionSaveResult]("setup.section.save")
Writes the answers of one setup section to config.yaml and .env, a full save rewriting config.yaml after a backup
var SetupStatus = NewMethod[ProfileParams, SetupStatusResult]("setup.status")
Whether any provider is configured for the launch or a named profile, an unknown profile answering not ok with the error
var ShellExec = NewMethod[ShellExecParams, ShellExecResult]("shell.exec")
Runs one safe shell line for the composer, the dangerous and hardline ones refused
var SkillsChangedEvent = NewEvent[NoPayload]("skills.changed")
A skill root changed elsewhere, the UI fetches the command catalog again
var SkillsManage = NewMethod[SkillsManageParams, SkillsManageResult]("skills.manage")
Skills hub, the profile's skills by category or search, browse, inspect and install from the hub
var SkillsReload = NewMethod[SkillsReloadParams, SkillsReloadResult]("skills.reload")
Scans the skill directories again and answers what changed with the printed summary
var SkinChangedEvent = NewEvent[SkinPayloadModel]("skin.changed")
The active skin changed, its resolved colours and branding
var SlashExec = NewMethod[SlashExecParams, SlashExecResult]("slash.exec")
Runs a slash line through the live, plugin and dispatch stages of the session
var SnapshotCreate = NewMethod[SnapshotArgsParams, SnapshotLines]("snapshot.create")
Takes a quick state snapshot, the args joined as its label
var SnapshotList = NewMethod[SnapshotListParams, SnapshotLines]("snapshot.list")
Quick state snapshots of the profile as a numbered table
var SnapshotPrune = NewMethod[SnapshotArgsParams, SnapshotLines]("snapshot.prune")
Keeps the newest N quick snapshots, twenty when no count is given
var SnapshotTarget = NewMethod[SnapshotArgsParams, SnapshotTargetResult]("snapshot.target")
Resolves the snapshot a /snapshot restore names
var SpawnTreeList = NewMethod[SpawnTreeListParams, SpawnTreeListResult]("spawn_tree.list")
Lists saved spawn tree snapshots
var SpawnTreeLoad = NewMethod[SpawnTreeLoadParams, SpawnTreeLoadResult]("spawn_tree.load")
Loads one saved spawn tree snapshot
var SpawnTreeSave = NewMethod[SpawnTreeSaveParams, SpawnTreeSaveResult]("spawn_tree.save")
Saves a spawn tree snapshot of a session's subagents
var StatusUpdateEvent = NewEvent[StatusUpdatePayload]("status.update")
Transient status line
var SubagentCompleteEvent = NewEvent[SubagentEventPayload]("subagent.complete")
A child finished with its status and usage rollup
var SubagentInterrupt = NewMethod[SubagentIDParams, SubagentInterruptResult]("subagent.interrupt")
Hard interrupts one owned child, found false when it already finished
var SubagentList = NewMethod[SessionIDParams, SubagentListResult]("subagent.list")
Live children this session owns and its failed delegations
var SubagentProgressEvent = NewEvent[SubagentEventPayload]("subagent.progress")
Batched tool names a child ran
var SubagentSpawnRequestedEvent = NewEvent[SubagentEventPayload]("subagent.spawn_requested")
A delegate accepted a child goal before the child starts
var SubagentStartEvent = NewEvent[SubagentEventPayload]("subagent.start")
A delegated child started running
var SubagentSteer = NewMethod[SubagentSteerParams, SubagentSteerResult]("subagent.steer")
Queues steering text into a live delegated child this session owns
var SubagentTail = NewMethod[SubagentIDParams, SubagentTailResult]("subagent.tail")
Last 16 KB of the transcript of a child the conversation spawned, running or finished
var SubagentThinkingEvent = NewEvent[SubagentEventPayload]("subagent.thinking")
A reasoning chunk of a child
var SubagentToolEvent = NewEvent[SubagentEventPayload]("subagent.tool")
A child called a tool
var SudoRequest = NewRequest[SudoRequestParams, ValueAnswer]("sudo")
Sudo password for the terminal tool, never stored
var SystemBattery = NewMethod[ProfileParams, SystemBatteryResult]("system.battery")
Battery of the host the gateway runs on
var TerminalResize = NewMethod[TerminalResizeParams, TerminalResizeResult]("terminal.resize")
Tells a live session the terminal width it renders for
var ThinkingDeltaEvent = NewEvent[StreamDeltaPayload]("thinking.delta")
Thinking text of the agent's thinking callback
var TodoUpdatedEvent = NewEvent[TodoState]("todo.updated")
Task list after a planning tool ran
var ToolCompleteEvent = NewEvent[ToolCompletePayload]("tool.complete")
A tool call finished
var ToolGeneratingEvent = NewEvent[ToolGeneratingPayload]("tool.generating")
The model is writing a tool call's arguments
var ToolOutputRiskEvent = NewEvent[ToolOutputRiskPayload]("tool.output_risk")
A tool's output carries injection findings
var ToolProgressEvent = NewEvent[ToolProgressPayload]("tool.progress")
Progress of a running MCP tool call
var ToolStartEvent = NewEvent[ToolStartPayload]("tool.start")
A tool call began
var ToolsConfigure = NewMethod[ToolsConfigureParams, ToolsConfigureResult]("tools.configure")
Turns toolsets or MCP tools on or off and rebuilds the session's agent so the change applies now
var ToolsList = NewMethod[ToolsListParams, ToolsListResult]("tools.list")
Every toolset and MCP tool of a platform with its status
var ToolsShow = NewMethod[SessionScopedParams, ToolsShowResult]("tools.show")
Tools of the session grouped by toolset, deferred tools included
var VaultCodeRequest = NewRequest[VaultCodeRequestParams, ValueAnswer]("vault.code")
One time or two factor code the user reads from a device
var VaultSaveLoginRequest = NewRequest[VaultSaveLoginRequestParams, ValueAnswer]("vault.save_login")
Login to keep for a site the agent is about to fill
var VaultUnlockRequest = NewRequest[VaultUnlockRequestParams, ValueAnswer]("vault.unlock_prompt")
Master password unlocking a password manager for the session
var VoiceInterruptedEvent = NewEvent[NoPayload]("voice.interrupted")
A spoken interjection interrupted the turn
var VoicePartialEvent = NewEvent[VoicePartialPayload]("voice.partial")
Live text so far while the user still speaks
var VoicePlayback = NewMethod[VoicePlaybackParams, NoPayload]("voice.playback")
Tells the gateway the window's speech started or stopped sounding, so barge in listens past the last clip
var VoiceRecord = NewMethod[VoiceRecordParams, VoiceRecordResult]("voice.record")
Starts or stops a push to talk capture, the text arriving as voice.transcript
var VoiceSpeechEvent = NewEvent[VoiceSpeechPayload]("voice.speech")
Spoken reply audio and thinking blips of a session, sent only to the window that plays them
var VoiceStatusEvent = NewEvent[VoiceStatusPayload]("voice.status")
The recorder state changed
var VoiceToggle = NewMethod[VoiceToggleParams, VoiceToggleResult]("voice.toggle")
Turns voice mode or speech output on or off, or reports them with the requirements probe
var VoiceTranscriptEvent = NewEvent[VoiceTranscriptPayload]("voice.transcript")
A voice capture produced text or ended on a stop phrase or the silence limit
var WakeDetectedEvent = NewEvent[WakeDetectedPayload]("wake.detected")
A wake phrase fired
var WakeResume = NewMethod[WakeControlParams, WakeResumeResult]("wake.resume")
Reclaims the microphone after a pause, nothing when the listener is not armed
var WakeStart = NewMethod[WakeStartParams, WakeStartResult]("wake.start")
Arms the wake word listener for the calling surface
var WakeStatus = NewMethod[WakeStatusParams, WakeStatusResult]("wake.status")
Everything a client needs to draw the wake word state and decide whether to arm it
var WakeStop = NewMethod[WakeStopParams, WakeStopResult]("wake.stop")
Stops this surface's listener, persist also turning the wake word off in config
var WorkerAdopt = NewCanonicalMethod[WorkerScopeParams, WorkerExecution]("worker.adopt")
Adopts a registered execution after the live producer claim is verified
var WorkerPersist = NewCanonicalMethod[WorkerPersistParams, map[string]any]("worker.persist")
Durable write of an adopted worker answered with the operation's receipt
var WorkerRegister = NewCanonicalMethod[WorkerRegisterParams, WorkerExecution]("worker.register")
Registers a compute worker execution on an idle session
var WorktreeCreate = NewMethod[WorktreeCreateParams, WorktreeCreateResult]("worktree.create")
Creates an isolated git worktree on a new branch
var WorktreeList = NewMethod[WorktreeCwdParams, WorktreeListResult]("worktree.list")
Git worktrees of the folder's repository
var WorktreePrune = NewMethod[WorktreePruneParams, WorktreePruneResult]("worktree.prune")
Reclaims stale trees and merged branches, or names what a dry run would reclaim
var WorktreeRecord = NewMethod[WorktreeRef, WorktreeRecordResult]("worktree.record")
Remembers a tree a session moved into, so its resume finds it
var WorktreeSettle = NewMethod[WorktreeRef, WorktreeSettleResult]("worktree.settle")
Removes a clean tree and its branch, or says why it is kept
var WorktreeStatus = NewMethod[WorktreeStatusParams, WorktreeStatusResult]("worktree.status")
Repository of a folder and the tree a -w launch locked
Functions ¶
func LocalImagePath ¶
Candidate as the path of an existing local image file, empty for anything else, URLs and data URLs included
func Loose ¶
Decodes a wire value into out, unknown keys and missing keys tolerated and a wrong type refused
func Merge ¶
func Merge[T any](base *T, patch T)
Copies every field a patch carries, a set pointer, list or map or a non zero value, over the base
func MissingParam ¶
Refusal the gateway gives params that lack a field the method requires
func NormalizeSlashSearchQuery ¶
Slash query trimmed, stripped of leading slashes and lowercased
func Plain ¶
Wire value of a typed value, plain maps, lists, text, booleans, int64 and float64, nil lists and maps empty
func ReportMisfit ¶
Panics with a contract misfit under test isolation, logs it as an error otherwise
func RoomPayload ¶
Payload of a room log event read into the type of its kind, false when it holds another shape
func SameBuild ¶
Whether a peer that reported this build and contract version runs the same build as this process
func ScoreFields ¶
Best exact, prefix or substring tier of any field plus offset, infinity on a miss
func SealPayload ¶
Payload of an event checked against its declared type, a misfit reported and the payload kept
func SetupValue ¶
Named value of a load decoded into its type, false when absent or of another shape
func Strict ¶
Decodes a wire value into out, refusing unknown keys, missing required keys and wrong types with the field named
func TokenizeSearchText ¶
Lowercased value followed by its alphanumeric words, the search tokens of a slash menu field
func ToolImagePath ¶
Local image a successful tool call produced or looked at, empty otherwise, named fields only so a result listing paths in free text shows nothing
func UnknownMethodMessage ¶
Text of the method not found error both routes send
func UnknownParam ¶
Refusal the gateway gives params carrying a field the method does not declare
Types ¶
type A2AForwardParams ¶
type A2AForwardParams struct {
Agent string `json:"agent"`
Tenant string `json:"tenant"`
Peer string `json:"peer"`
ContextID string `json:"context_id"`
InputID string `json:"input_id"`
Text string `json:"text"`
}
Identity tuple of one A2A input and its text
type A2AForwardResult ¶
type A2AForwardResult struct {
AdmissionReceipt
SessionID string `json:"session_id"`
Result any `json:"result"`
}
Admission of a forwarded input, the conversation it landed in and the saved result of a finished one
type ActiveSubagent ¶
type ActiveSubagent struct {
SubagentID string `json:"subagent_id"`
ParentID *string `json:"parent_id,omitzero"`
Depth *int64 `json:"depth,omitzero"`
Goal *string `json:"goal,omitzero"`
DelegationID *string `json:"delegation_id,omitzero"`
Model *string `json:"model,omitzero"`
StartedAt *float64 `json:"started_at,omitzero"`
Status *SubagentStatus `json:"status,omitzero"`
ToolCount *int64 `json:"tool_count,omitzero"`
LastTool *string `json:"last_tool,omitzero"`
OwnerAgentSessionID *string `json:"owner_agent_session_id,omitzero"`
}
One live delegated child as the delegate registry holds it
type AdmissionReceipt ¶
type AdmissionReceipt struct {
AdmissionID string `json:"admission_id"`
Ref CanonicalSessionRef `json:"ref"`
Sequence int64 `json:"sequence"`
Status CanonicalPendingAdmissionStatus `json:"status"`
Outcome *string `json:"outcome"`
AuthorityEpoch int64 `json:"authority_epoch"`
ExecutionGeneration *int64 `json:"execution_generation"`
}
Receipt of one admission in the owner's durable queue
type AgentPluginRow ¶
type AgentPluginRow struct {
Name string `json:"name"`
Key string `json:"key"`
Version string `json:"version"`
Description string `json:"description"`
Source string `json:"source"`
Status string `json:"status"`
Portable bool `json:"portable"`
InstallDir string `json:"install_dir"`
Servers []PluginServerRow `json:"servers"`
CatalogName *string `json:"catalog_name,omitzero"`
CatalogTier *string `json:"catalog_tier,omitzero"`
InstalledSha *string `json:"installed_sha,omitzero"`
CatalogSha *string `json:"catalog_sha,omitzero"`
CatalogVersion *string `json:"catalog_version,omitzero"`
UpdateAvailable *bool `json:"update_available,omitzero"`
UpdateTarget *string `json:"update_target,omitzero"`
PinnedSha *string `json:"pinned_sha,omitzero"`
SettingsSchema []PluginSettingField `json:"settings_schema,omitzero"`
Tools []string `json:"tools,omitzero"`
}
One plugin of the hub with its source, state, servers, catalog pins and settings
func (AgentPluginRow) Enabled ¶
func (p AgentPluginRow) Enabled() bool
Whether the plugin is on, the hub's enabled status
type ApprovalAnswer ¶
type ApprovalAnswer struct {
Choice ApprovalChoice `json:"choice"`
All *bool `json:"all,omitzero"`
}
Verdict on an approval, all settling every approval the session holds
type ApprovalCancelledPayload ¶
type ApprovalCancelledPayload struct {
SessionID string `json:"session_id"`
StoredSessionID string `json:"stored_session_id"`
Reason string `json:"reason"`
CancelledCount int64 `json:"cancelled_count"`
RequestIDs []string `json:"request_ids"`
}
Approvals of a session an interrupt, reap or teardown dropped, each settled as a deny the user never gave
type ApprovalChoice ¶
type ApprovalChoice string
Verdict on a dangerous command
func (ApprovalChoice) Values ¶
func (ApprovalChoice) Values() []string
type ApprovalRequestParams ¶
type ApprovalRequestParams struct {
SessionID string `json:"session_id"`
RequestID string `json:"request_id"`
Command string `json:"command,omitzero"`
Description string `json:"description,omitzero"`
Choices []ApprovalChoice `json:"choices,omitzero"`
AllowPermanent *bool `json:"allow_permanent,omitzero"`
AllowSession *bool `json:"allow_session,omitzero"`
SmartDenied *bool `json:"smart_denied,omitzero"`
ToolName *string `json:"tool_name,omitzero"`
GatewaySessionID *string `json:"gateway_session_id,omitzero"`
OpenURL *string `json:"open_url,omitzero"`
Extra map[string]any `json:"-" wire:"extra"`
}
Dangerous command awaiting a verdict, the command redacted by the gateway, extra keys of the approval kept
type ApprovalRespondParams ¶
type ApprovalRespondParams struct {
SessionID string `json:"session_id"`
Profile *string `json:"profile,omitzero"`
Choice *ApprovalChoice `json:"choice,omitzero"`
All *bool `json:"all,omitzero"`
RequestID *string `json:"request_id,omitzero"`
}
Verdict on the approval of a session on the method table route, by request id, all of them or the oldest
type ApprovalRespondResult ¶
type ApprovalRespondResult struct {
Resolved int64 `json:"resolved"`
}
Approvals a verdict settled
type AttachedImageResult ¶
type AttachedImageResult struct {
Attached bool `json:"attached"`
Name string `json:"name,omitzero"`
Width *int64 `json:"width,omitzero"`
Height *int64 `json:"height,omitzero"`
TokenEstimate *int64 `json:"token_estimate,omitzero"`
Path string `json:"path,omitzero"`
Count *int64 `json:"count,omitzero"`
Remainder *string `json:"remainder,omitzero"`
Text string `json:"text,omitzero"`
Bytes *int64 `json:"bytes,omitzero"`
Message string `json:"message,omitzero"`
}
Queued image with its size and token estimate, or attached false with the message why nothing was queued
type AutoContinue ¶
type BatteryCategory ¶
type BatteryCategory string
func (BatteryCategory) Values ¶
func (BatteryCategory) Values() []string
type BillingBlock ¶
type BillingBlock struct {
Provider string `json:"provider"`
ProviderLabel string `json:"provider_label"`
Model string `json:"model"`
BillingURL *string `json:"billing_url"`
Message string `json:"message"`
Unverified *bool `json:"unverified,omitzero"`
}
Provider out of credits or payment block with the page that settles it
type BotDeliverParams ¶
type BotDeliverParams struct {
Profile *string `json:"profile,omitzero"`
Message string `json:"message"`
ID string `json:"id"`
SessionID *string `json:"session_id,omitzero"`
Author map[string]any `json:"author,omitzero"`
NotificationCategory *string `json:"notification_category,omitzero"`
}
One message a bot relay hands to a profile, its id the delivery key
type BotDeliverResult ¶
type BotDeliverResult struct {
Status string `json:"status"`
DeliveryID string `json:"delivery_id"`
ProfileHome string `json:"profile_home"`
SessionID string `json:"session_id"`
AdmissionID *string `json:"admission_id,omitzero"`
Refused *bool `json:"refused,omitzero"`
Message string `json:"message"`
Reply *string `json:"reply,omitzero"`
RetryAdmissionID *string `json:"retry_admission_id,omitzero"`
Error *string `json:"error,omitzero"`
Reason *string `json:"reason,omitzero"`
}
Receipt of a delivery, naming its admission unless the queue refused it before anything was committed
func (*BotDeliverResult) UnmarshalJSON ¶
func (r *BotDeliverResult) UnmarshalJSON(data []byte) error
Refuses a receipt that is neither admitted nor a refused failed receipt without an admission
type BrowserAction ¶
type BrowserAction string
func (BrowserAction) Values ¶
func (BrowserAction) Values() []string
type BrowserManageParams ¶
type BrowserManageParams struct {
Action BrowserAction `json:"action,omitzero"`
URL *string `json:"url,omitzero"`
SessionID string `json:"session_id,omitzero"`
Profile *string `json:"profile,omitzero"`
}
Browser action, the CDP url a connect attaches to and the session its progress lines go to
type BrowserManageResult ¶
type BrowserManageResult struct {
Connected bool `json:"connected"`
URL string `json:"url,omitzero"`
Messages []string `json:"messages,omitzero"`
}
Whether the tools reach a browser, its CDP url and the lines a connect narrated
type BrowserProgressLevel ¶
type BrowserProgressLevel string
func (BrowserProgressLevel) Values ¶
func (BrowserProgressLevel) Values() []string
type BrowserProgressPayload ¶
type BrowserProgressPayload struct {
Message string `json:"message"`
Level BrowserProgressLevel `json:"level"`
}
One line of a browser connect or launch
type BusyInputMode ¶
type BusyInputMode string
func (BusyInputMode) Values ¶
func (BusyInputMode) Values() []string
type CanonicalApprovalParams ¶
type CanonicalApprovalParams struct {
Profile *string `json:"profile,omitzero"`
SessionID string `json:"session_id"`
ExecutionGeneration int64 `json:"execution_generation"`
PromptID string `json:"prompt_id"`
Choice ApprovalChoice `json:"choice"`
}
Verdict on the approval prompt of a running generation
type CanonicalAttachedImage ¶
type CanonicalAttachedImage struct {
AttachedImageResult
Mime string `json:"mime"`
}
Image the session authority queued from uploaded bytes, with the sniffed mime type
type CanonicalAttachment ¶
Image a canonical prompt carries, a path the gateway reads and its media type
type CanonicalClarifyParams ¶
type CanonicalClarifyParams struct {
SessionID string `json:"session_id"`
ExecutionGeneration int64 `json:"execution_generation"`
PromptID string `json:"prompt_id"`
Answer string `json:"answer"`
}
Answer to the clarify prompt of a running generation, empty when skipped
type CanonicalControlParams ¶
type CanonicalControlParams struct {
Profile *string `json:"profile,omitzero"`
SessionID string `json:"session_id"`
ExecutionGeneration int64 `json:"execution_generation"`
}
Running generation a canonical control is fenced to
type CanonicalCorrectionParams ¶
type CanonicalCorrectionParams struct {
Profile *string `json:"profile,omitzero"`
SessionID string `json:"session_id"`
ExecutionGeneration int64 `json:"execution_generation"`
Text string `json:"text"`
}
Correction text for the running generation of a canonical session
type CanonicalCreateParams ¶
type CanonicalCreateParams struct {
Profile *string `json:"profile,omitzero"`
RequestID *string `json:"request_id,omitzero"`
Source *string `json:"source,omitzero"`
Cwd *string `json:"cwd,omitzero"`
RowCwd *string `json:"row_cwd,omitzero"`
Model *string `json:"model,omitzero"`
Provider *string `json:"provider,omitzero"`
BaseURL *string `json:"base_url,omitzero"`
APIKey *string `json:"api_key,omitzero"`
Toolsets []string `json:"toolsets,omitzero"`
Reasoning *string `json:"reasoning,omitzero"`
MaxTurns *int64 `json:"max_turns,omitzero"`
IgnoreRules bool `json:"ignore_rules,omitzero"`
Yolo bool `json:"yolo,omitzero"`
SafeMode bool `json:"safe_mode,omitzero"`
IgnoreUserConfig bool `json:"ignore_user_config,omitzero"`
Skills []string `json:"skills,omitzero"`
Checkpoints bool `json:"checkpoints,omitzero"`
AcceptHooks bool `json:"accept_hooks,omitzero"`
PassSessionID bool `json:"pass_session_id,omitzero"`
Editor map[string]any `json:"editor,omitzero"`
Title *string `json:"title,omitzero"`
Hidden bool `json:"hidden,omitzero"`
FollowProfileConfig *bool `json:"follow_profile_config,omitzero"`
ServiceTier *string `json:"service_tier,omitzero"`
CwdExplicit *bool `json:"cwd_explicit,omitzero"`
RunBudget *float64 `json:"run_budget,omitzero"`
Verbose bool `json:"verbose,omitzero"`
ClientEnv map[string]string `json:"client_env,omitzero"`
}
type CanonicalListParams ¶
type CanonicalListParams struct {
Profile *string `json:"profile,omitzero"`
Scope *CanonicalListParamsScope `json:"scope,omitzero"`
Limit *int64 `json:"limit,omitzero"`
Title *string `json:"title,omitzero"`
IncludeHidden bool `json:"include_hidden,omitzero"`
}
type CanonicalListParamsScope ¶
type CanonicalListParamsScope string
func (CanonicalListParamsScope) Values ¶
func (CanonicalListParamsScope) Values() []string
type CanonicalListResult ¶
type CanonicalListResult struct {
Sessions []CanonicalSessionListRow `json:"sessions"`
Scope CanonicalListResultScope `json:"scope"`
}
type CanonicalListResultScope ¶
type CanonicalListResultScope string
func (CanonicalListResultScope) Values ¶
func (CanonicalListResultScope) Values() []string
type CanonicalModelOverride ¶
type CanonicalModelOverride struct {
Model string `json:"model"`
Provider *string `json:"provider,omitzero"`
Reasoning *string `json:"reasoning,omitzero"`
}
Model one turn runs on instead of the session's own
type CanonicalPendingAdmission ¶
type CanonicalPendingAdmission struct {
AdmissionID string `json:"admission_id"`
Ref CanonicalSessionRef `json:"ref"`
Sequence int64 `json:"sequence"`
Status CanonicalPendingAdmissionStatus `json:"status"`
Outcome *string `json:"outcome"`
AuthorityEpoch int64 `json:"authority_epoch"`
ExecutionGeneration *int64 `json:"execution_generation"`
InputID string `json:"input_id"`
Text string `json:"text"`
DisplayKind *string `json:"display_kind,omitzero"`
DisplayMetadata *DisplayMetadata `json:"display_metadata,omitzero"`
Controls []CanonicalPendingAdmissionControls `json:"controls,omitzero"`
Steering *bool `json:"steering,omitzero"`
}
type CanonicalPendingAdmissionControls ¶
type CanonicalPendingAdmissionControls string
func (CanonicalPendingAdmissionControls) Values ¶
func (CanonicalPendingAdmissionControls) Values() []string
type CanonicalPendingAdmissionStatus ¶
type CanonicalPendingAdmissionStatus string
func (CanonicalPendingAdmissionStatus) Values ¶
func (CanonicalPendingAdmissionStatus) Values() []string
type CanonicalPendingPrompt ¶
type CanonicalPendingPrompt struct {
Kind CanonicalPendingPromptKind `json:"kind"`
PromptID string `json:"prompt_id"`
ExecutionGeneration int64 `json:"execution_generation"`
Choices []string `json:"choices"`
Command *string `json:"command,omitzero"`
Description *string `json:"description,omitzero"`
Edit map[string]any `json:"edit,omitzero"`
OpenURL *string `json:"open_url,omitzero"`
Question *string `json:"question,omitzero"`
MultiSelect *bool `json:"multi_select,omitzero"`
TimeoutS *int64 `json:"timeout_s,omitzero"`
}
type CanonicalPendingPromptKind ¶
type CanonicalPendingPromptKind string
func (CanonicalPendingPromptKind) Values ¶
func (CanonicalPendingPromptKind) Values() []string
type CanonicalReplaceQueuedParams ¶
type CanonicalReplaceQueuedParams struct {
Profile *string `json:"profile,omitzero"`
SessionID string `json:"session_id"`
AdmissionID string `json:"admission_id"`
SubmissionID string `json:"submission_id"`
Text string `json:"text"`
Attachments []CanonicalAttachment `json:"attachments,omitzero"`
DisplayKind *HiddenDisplayKind `json:"display_kind,omitzero"`
TitlePreview *string `json:"title_preview,omitzero"`
}
Queued admission replaced by an edited prompt that goes to the back of the queue under a new submission id
type CanonicalResumeParams ¶
type CanonicalResumeParams struct {
Profile *string `json:"profile,omitzero"`
SessionID string `json:"session_id,omitzero"`
Title *string `json:"title,omitzero"`
Latest *CanonicalResumeParamsLatest `json:"latest,omitzero"`
Workspace *string `json:"workspace,omitzero"`
Source *string `json:"source,omitzero"`
Editor map[string]any `json:"editor,omitzero"`
APIKey *string `json:"api_key,omitzero"`
DeferHistory bool `json:"defer_history,omitzero"`
OmitMessages bool `json:"omit_messages,omitzero"`
Cols *int64 `json:"cols,omitzero"`
DisplayProjection bool `json:"display_projection,omitzero"`
}
type CanonicalResumeParamsLatest ¶
type CanonicalResumeParamsLatest string
func (CanonicalResumeParamsLatest) Values ¶
func (CanonicalResumeParamsLatest) Values() []string
type CanonicalRoomApproveParams ¶
type CanonicalRoomApproveParams struct {
Profile *string `json:"profile,omitzero"`
RoomID string `json:"room_id"`
MemberID string `json:"member_id"`
TaskID string `json:"task_id"`
ExecutionGeneration int64 `json:"execution_generation"`
Choice RoomApproveChoice `json:"choice"`
RequestID string `json:"request_id"`
}
type CanonicalRoomCreateParams ¶
type CanonicalRoomCreateParams struct {
Profile *string `json:"profile,omitzero"`
RoomID string `json:"room_id"`
Name string `json:"name"`
Members []RoomMemberInput `json:"members"`
}
type CanonicalSessionHandle ¶
type CanonicalSessionHandle struct {
Ref CanonicalSessionRef `json:"ref"`
InstanceID string `json:"instance_id"`
AuthorityEpoch int64 `json:"authority_epoch"`
Revision int64 `json:"revision"`
ExecutionGeneration int64 `json:"execution_generation"`
ExecutionState ExecutionState `json:"execution_state"`
}
Fences of a canonical session after a control, its revision, generation and execution state
type CanonicalSessionInfoParams ¶
type CanonicalSessionInfoParams struct {
SessionID string `json:"session_id"`
}
type CanonicalSessionListRow ¶
type CanonicalSessionListRow struct {
SessionID string `json:"session_id"`
ID string `json:"id"`
Title string `json:"title"`
Source *string `json:"source"`
StartedAt *float64 `json:"started_at"`
MessageCount int64 `json:"message_count"`
Running bool `json:"running"`
Model *string `json:"model,omitzero"`
ResolvedID *string `json:"resolved_id,omitzero"`
RootTitle *string `json:"root_title,omitzero"`
}
type CanonicalSessionRef ¶
type CanonicalShellExecParams ¶
type CanonicalShellExecParams struct {
SessionID string `json:"session_id"`
Command string `json:"command"`
Profile *string `json:"profile,omitzero"`
}
Shell line of a local session on the shared owner, run in its frozen launch cwd
type CanonicalSnapshot ¶
type CanonicalSnapshot struct {
SessionID string `json:"session_id"`
StoredSessionID string `json:"stored_session_id"`
Messages []TranscriptMessage `json:"messages"`
MessagesOmitted *bool `json:"messages_omitted,omitzero"`
DisplayMessages []TranscriptMessage `json:"display_messages,omitzero"`
MessageCount int64 `json:"message_count"`
Running bool `json:"running"`
AuthorityEpoch int64 `json:"authority_epoch"`
ReplayEpoch string `json:"replay_epoch"`
LastSequence int64 `json:"last_sequence"`
SubscriptionID string `json:"subscription_id"`
Revision int64 `json:"revision"`
ExecutionGeneration int64 `json:"execution_generation"`
Pending []CanonicalPendingAdmission `json:"pending"`
Prompts []CanonicalPendingPrompt `json:"prompts"`
Info SessionInfo `json:"info"`
PendingConnection *ConnectionRequestPayload `json:"pending_connection,omitzero"`
TodoState *TodoState `json:"todo_state,omitzero"`
OpenRequests []OpenRequestEntry `json:"open_requests,omitzero"`
}
type CanonicalSubmitParams ¶
type CanonicalSubmitParams struct {
Profile *string `json:"profile,omitzero"`
SessionID string `json:"session_id"`
Text string `json:"text"`
SubmissionID *string `json:"submission_id,omitzero"`
InputID *string `json:"input_id,omitzero"`
Queued bool `json:"queued,omitzero"`
Attachments []CanonicalAttachment `json:"attachments,omitzero"`
Finite bool `json:"finite,omitzero"`
Unattended bool `json:"unattended,omitzero"`
Surface *string `json:"surface,omitzero"`
VoiceContext *string `json:"voice_context,omitzero"`
Interrupted bool `json:"interrupted,omitzero"`
VoiceTurn bool `json:"voice_turn,omitzero"`
DisplayKind *HiddenDisplayKind `json:"display_kind,omitzero"`
TitlePreview *string `json:"title_preview,omitzero"`
TurnAuthor *CanonicalTurnAuthor `json:"turn_author,omitzero"`
APIText *string `json:"api_text,omitzero"`
ModelOverride *CanonicalModelOverride `json:"model_override,omitzero"`
ClarifyBatch bool `json:"clarify_batch,omitzero"`
}
Prompt admitted into the owner's durable queue, input_id naming the client's own submission
type CanonicalTurnAuthor ¶
type CanonicalTurnAuthor struct {
ID *string `json:"id,omitzero"`
Name *string `json:"name,omitzero"`
IsBot bool `json:"is_bot,omitzero"`
Origin *string `json:"origin,omitzero"`
}
Author a bot or room relay names for a turn
type CatalogAppState ¶
type CatalogAppState string
Whether the native app a catalog plugin drives is there and running
func (CatalogAppState) Values ¶
func (CatalogAppState) Values() []string
type CatalogApproved ¶
type CatalogApproved struct {
Force bool `json:"force"`
Enable bool `json:"enable"`
Ref *string `json:"ref,omitzero"`
}
Advanced choices the user approved on a catalog row, repeated by a retry
type CatalogPluginPresence ¶
type CatalogPluginPresence struct {
Name string `json:"name"`
Title string `json:"title"`
State CatalogAppState `json:"state"`
Sentence string `json:"sentence"`
Disclosure string `json:"disclosure"`
}
Catalog plugin of this OS, its app state, the sentence naming what is missing and its disclosure
type CatalogScan ¶
type CatalogScan struct {
Status CatalogScanStatus `json:"status"`
Summary string `json:"summary"`
}
Security scan of the pinned commit of a catalog plugin
type CatalogScanStatus ¶
type CatalogScanStatus string
Verdict of the catalog's security scan
func (CatalogScanStatus) Values ¶
func (CatalogScanStatus) Values() []string
type CatalogServerError ¶
MCP server an installed plugin brought that did not connect, with the reason
type CatalogTier ¶
type CatalogTier string
Trust tier of a catalog plugin
func (CatalogTier) Values ¶
func (CatalogTier) Values() []string
type ClarifyAnswer ¶
type ClarifyAnswer struct {
Answers map[string]*string `json:"answers,omitzero"`
Outcome *ClarifyOutcome `json:"outcome,omitzero"`
}
Answers to a whole clarify request keyed by question id, none at all cancelling every question
type ClarifyLockParams ¶
type ClarifyLockParams struct {
RequestID string `json:"request_id"`
QuestionID string `json:"question_id"`
Answer *string `json:"answer,omitzero"`
Profile *string `json:"profile,omitzero"`
}
One answer of a batch clarify request, null skipping the question
type ClarifyLockResult ¶
type ClarifyLockResult struct {
Status ClarifyLockStatus `json:"status"`
Remaining []string `json:"remaining,omitzero"`
}
Questions of the batch still unanswered, the lock that empties it settling the request
type ClarifyLockStatus ¶
type ClarifyLockStatus string
Whether the batch still waited for the lock
func (ClarifyLockStatus) Values ¶
func (ClarifyLockStatus) Values() []string
type ClarifyOutcome ¶
type ClarifyOutcome string
How the viewer's own clarify panel ended
func (ClarifyOutcome) Values ¶
func (ClarifyOutcome) Values() []string
type ClarifyQuestion ¶
type ClarifyQuestion struct {
QID string `json:"qid"`
Question string `json:"question"`
Choices []string `json:"choices,omitzero"`
MultiSelect bool `json:"multi_select,omitzero"`
}
One question of a clarify request, its offered choices and whether several may be picked
type ClarifyRequestParams ¶
type ClarifyRequestParams struct {
SessionID string `json:"session_id"`
Questions []ClarifyQuestion `json:"questions"`
Answers map[string]*string `json:"answers,omitzero"`
}
Questions the agent asks, the answers already locked riding along on a reconnect, null for a skipped one
type ClientApprovals ¶
type ClientApprovals struct {
DestructiveSlashConfirm bool `json:"destructive_slash_confirm"`
}
type ClientCapabilitiesParams ¶
type ClientCapabilitiesParams struct {
ServerRequests bool `json:"server_requests,omitzero"`
}
Whether the calling client answers server requests
type ClientCapabilitiesResult ¶
type ClientCapabilitiesResult struct {
ServerRequests []string `json:"server_requests"`
DeclinesNotShown bool `json:"declines_not_shown,omitzero"`
CanonicalClarifyBatch bool `json:"canonical_clarify_batch,omitzero"`
}
Server requests this backend may send, and whether it counts unseen declines and batches clarify answers
type ClientConfig ¶
type ClientConfig struct {
Display ClientDisplay `json:"display"`
Approvals ClientApprovals `json:"approvals"`
Voice ClientVoice `json:"voice"`
PasteCollapseThreshold int64 `json:"paste_collapse_threshold"`
PasteCollapseCharThreshold int64 `json:"paste_collapse_char_threshold"`
}
Settings of a profile the terminal UI follows, the answer of config.get full
func ClientConfigOf ¶
func ClientConfigOf(cfg map[string]any) ClientConfig
Settings the terminal UI follows, read from a config whose display section is the local one
type ClientDisplay ¶
type ClientDisplay struct {
BellOnComplete bool `json:"bell_on_complete"`
BellOnPrompt bool `json:"bell_on_prompt"`
Theme ThemeMode `json:"tui_theme"`
Battery bool `json:"battery"`
BusyInputMode BusyInputMode `json:"busy_input_mode"`
Compact bool `json:"tui_compact"`
DetailsMode DetailsMode `json:"details_mode"`
Sections map[string]DetailsMode `json:"sections"`
FocusView bool `json:"focus_view"`
Indicator IndicatorStyle `json:"tui_status_indicator"`
InlineDiffs bool `json:"inline_diffs"`
InlineImages bool `json:"inline_images"`
MouseTracking MouseTracking `json:"mouse_tracking"`
ShowReasoning bool `json:"show_reasoning"`
StatusBarPlace StatusBarPlace `json:"tui_statusbar"`
StatusBar ClientStatusBar `json:"status_bar"`
Streaming bool `json:"streaming"`
Timestamps bool `json:"timestamps"`
Language string `json:"language"`
AgentsNudge bool `json:"tui_agents_nudge"`
AutoResumeRecent bool `json:"tui_auto_resume_recent"`
TurnSummary bool `json:"turn_summary"`
SpinnerTokenFlow bool `json:"spinner_token_flow"`
Pet ClientPet `json:"pet"`
// The arena card's own settings, checked by the card that reads them
Arena any `json:"arena,omitzero"`
}
Display settings the terminal UI follows, keyed as in the display section and normalized with defaults filled
type ClientPet ¶
type ClientPet struct {
RenderMode PetRenderMode `json:"render_mode"`
}
type ClientStatusBar ¶
type ClientStatusBar struct {
Fields []string `json:"fields"`
}
Status bar fields to show, every field when empty
type ClientVoice ¶
type ClientVoice struct {
RecordKey string `json:"record_key"`
SubmitMode VoiceSubmitMode `json:"submit_mode"`
}
type CommandCategory ¶
One palette group with its command and description pairs
type CommandDispatchParams ¶
type CommandDispatchParams struct {
Name string `json:"name"`
Arg string `json:"arg,omitzero"`
SessionID string `json:"session_id,omitzero"`
Profile *string `json:"profile,omitzero"`
}
Command a client could not run itself, its argument and the session it runs in
type CommandDispatchResult ¶
type CommandDispatchResult struct {
Type DispatchType `json:"type"`
Output string `json:"output,omitzero"`
Target string `json:"target,omitzero"`
Message string `json:"message,omitzero"`
Notice string `json:"notice,omitzero"`
Display string `json:"display,omitzero"`
Name string `json:"name,omitzero"`
}
One directive, exec and plugin carry output, alias a target, send, prefill and skill a message the client renders as display
func (CommandDispatchResult) SlashResult ¶
func (d CommandDispatchResult) SlashResult() SlashExecResult
Slash answer of a directive
type CommandObserveParams ¶
type CommandObserveParams struct {
SessionID string `json:"session_id"`
Name string `json:"name"`
Arg string `json:"arg,omitzero"`
Profile *string `json:"profile,omitzero"`
}
Recognized command a client ran itself, named so the gateway fires its pre command hook
type CommandObserveResult ¶
type CommandObserveResult struct {
Queued bool `json:"queued"`
}
Whether the hook was queued
type CommandsCatalogParams ¶
type CommandsCatalogParams struct {
SessionID string `json:"session_id,omitzero"`
Profile *string `json:"profile,omitzero"`
}
Session whose profile and workspace the catalog binds to, or a profile for a session less draft
type CommandsCatalogResult ¶
type CommandsCatalogResult struct {
Pairs [][2]string `json:"pairs"`
Sub map[string][]string `json:"sub"`
Canon map[string]string `json:"canon"`
Categories []CommandCategory `json:"categories"`
Skills map[string]SkillCatalogEntry `json:"skills"`
SkillCount int64 `json:"skill_count"`
Warning string `json:"warning,omitzero"`
PluginDiscoveryError string `json:"plugin_discovery_error,omitzero"`
PluginCommands map[string]string `json:"plugin_commands"`
// Commands that run only in messaging chats with their descriptions, aliases included
ChatCommands map[string]string `json:"chat_commands"`
}
Slash catalog, every pair, subcommands, aliases to canonical names, groups, skills and plugin commands
type CompletePathParams ¶
type CompletePathParams struct {
Profile *string `json:"profile,omitzero"`
Word *string `json:"word,omitzero"`
Cwd *string `json:"cwd,omitzero"`
SessionID *string `json:"session_id,omitzero"`
}
Token under the cursor, an at sign starting a context reference, and the folder or session the listing resolves against
type CompleteSlashParams ¶
type CompleteSlashParams struct {
Text *string `json:"text,omitzero"`
SessionID *string `json:"session_id,omitzero"`
Profile *string `json:"profile,omitzero"`
}
Slash text to complete, the session binding skills to its workspace or the profile of a draft without one
type CompleteSlashResult ¶
type CompleteSlashResult struct {
Items []CompletionItem `json:"items"`
ReplaceFrom *int64 `json:"replace_from,omitzero"`
}
Ranked rows and the column an accepted row replaces from
type CompletionItem ¶
type CompletionItem struct {
Text string `json:"text"`
Display string `json:"display,omitzero"`
Meta string `json:"meta,omitzero"`
Kind *CompletionKind `json:"kind,omitzero"`
}
One popover row of the composer, its text put in from the replace offset, kind only on slash rows
type CompletionItemsResult ¶
type CompletionItemsResult struct {
Items []CompletionItem `json:"items"`
}
type CompletionKind ¶
type CompletionKind string
What a slash completion row names, a built in command or a skill
func (CompletionKind) Values ¶
func (CompletionKind) Values() []string
type CompressionSummary ¶
type CompressionSummary struct {
Noop bool `json:"noop,omitzero"`
Aborted bool `json:"aborted,omitzero"`
RefusedWouldGrow *bool `json:"refused_would_grow,omitzero"`
FallbackUsed *bool `json:"fallback_used,omitzero"`
Headline string `json:"headline,omitzero"`
TokenLine string `json:"token_line,omitzero"`
Note *string `json:"note,omitzero"`
}
type ConfigGetParams ¶
type ConfigGetResult ¶
type ConfigGetResult struct {
Key string `json:"key,omitzero"`
Value *ConfigValue `json:"value,omitzero"`
Scope ConfigScope `json:"scope,omitzero"`
Display string `json:"display,omitzero"`
ToolProgress string `json:"tool_progress,omitzero"`
Model string `json:"model,omitzero"`
Provider string `json:"provider,omitzero"`
Providers []ConfigProviderRef `json:"providers,omitzero"`
Home string `json:"home,omitzero"`
Cwd string `json:"cwd,omitzero"`
Branch string `json:"branch,omitzero"`
Config *ClientConfig `json:"config,omitzero"`
Prompt *string `json:"prompt,omitzero"`
Mtime *float64 `json:"mtime,omitzero"`
McpRev string `json:"mcp_rev,omitzero"`
}
Answer of one config key, value for the simple words and the fields of the composite reads
type ConfigProviderRef ¶
type ConfigProviderRef struct {
ID string `json:"id"`
Label string `json:"label"`
Aliases []string `json:"aliases"`
Authenticated bool `json:"authenticated"`
}
One provider the config knows, the row of the provider read
type ConfigScope ¶
type ConfigScope string
Scope a config answer reports, once for a model pick that lasts one turn
func (ConfigScope) Values ¶
func (ConfigScope) Values() []string
type ConfigSetParams ¶
type ConfigSetParams struct {
Profile *string `json:"profile,omitzero"`
SessionID string `json:"session_id,omitzero"`
Key string `json:"key"`
Value *ConfigValue `json:"value,omitzero"`
Scope ConfigWriteScope `json:"scope,omitzero"`
ConfirmExpensiveModel bool `json:"confirm_expensive_model,omitzero"`
}
type ConfigSetResult ¶
type ConfigSetResult struct {
Key string `json:"key"`
Value *ConfigValue `json:"value,omitzero"`
Warning string `json:"warning,omitzero"`
ConfirmRequired bool `json:"confirm_required,omitzero"`
ConfirmMessage string `json:"confirm_message,omitzero"`
Scope ConfigScope `json:"scope,omitzero"`
Deferred bool `json:"deferred,omitzero"`
ToolProgress string `json:"tool_progress,omitzero"`
Cwd string `json:"cwd,omitzero"`
Branch string `json:"branch,omitzero"`
HistoryReset bool `json:"history_reset,omitzero"`
Info *SessionInfo `json:"info,omitzero"`
}
Answer of a config write, the key and its value with the extras the model, focus, cwd and personality writes add
type ConfigValue ¶
Value of a config key, a word for most keys and a flag for the boolean switches
func (ConfigValue) MarshalJSON ¶
func (v ConfigValue) MarshalJSON() ([]byte, error)
func (*ConfigValue) UnmarshalJSON ¶
func (v *ConfigValue) UnmarshalJSON(data []byte) error
type ConfigWriteScope ¶
type ConfigWriteScope string
Scope a config write asks for, the session alone or the profile
func (ConfigWriteScope) Values ¶
func (ConfigWriteScope) Values() []string
type ConnectionAckStatus ¶
type ConnectionAckStatus string
Acknowledgement of a connection verb
func (ConnectionAckStatus) Values ¶
func (ConnectionAckStatus) Values() []string
type ConnectionActor ¶
type ConnectionActor string
Who moved a target, the user on the card or the watcher of the backend
func (ConnectionActor) Values ¶
func (ConnectionActor) Values() []string
type ConnectionAnswer ¶
type ConnectionAnswer struct {
Targets []ConnectionAnswerTarget `json:"targets,omitzero"`
SettledBy *ConnectionSettleReason `json:"settled_by,omitzero"`
Said *string `json:"said,omitzero"`
}
Answer of the card, per target outcomes or the continue that settles the operation
type ConnectionAnswerStatus ¶
type ConnectionAnswerStatus string
Answer a card gives to one target
func (ConnectionAnswerStatus) Values ¶
func (ConnectionAnswerStatus) Values() []string
type ConnectionAnswerTarget ¶
type ConnectionAnswerTarget struct {
Name string `json:"name"`
Status ConnectionAnswerStatus `json:"status"`
Detail *string `json:"detail,omitzero"`
Env map[string]string `json:"env,omitzero"`
}
One target's answer, the credential values an install asked for riding with an approval
type ConnectionDisplay ¶
type ConnectionDisplay struct {
Suggested []string `json:"suggested"`
}
Targets the card suggests first
type ConnectionOperationParams ¶
type ConnectionOperationParams struct {
Profile *string `json:"profile,omitzero"`
Owner SessionOwner `json:"owner"`
OpID string `json:"op_id"`
}
Operation of the owning session a status read or wake names
type ConnectionOperationSnapshot ¶
type ConnectionOperationSnapshot struct {
OpID string `json:"op_id"`
Seq int64 `json:"seq"`
DeadlineAt float64 `json:"deadline_at"`
TimeoutSeconds *float64 `json:"timeout_seconds,omitzero"`
Settled bool `json:"settled"`
SettledAt *float64 `json:"settled_at,omitzero"`
SettledBy *ConnectionSettleReason `json:"settled_by,omitzero"`
Targets []ConnectionOperationTarget `json:"targets"`
ToolCallID *string `json:"tool_call_id,omitzero"`
}
Snapshot of an operation with its settlement, one transition riding along on an update
type ConnectionOperationTarget ¶
type ConnectionOperationTarget struct {
Name string `json:"name"`
Kind ConnectionTargetKind `json:"kind"`
Action ConnectionTargetAction `json:"action"`
State ConnectionTargetState `json:"state"`
Resolved *bool `json:"resolved,omitzero"`
Detail *string `json:"detail,omitzero"`
Instructions *string `json:"instructions,omitzero"`
DiscoveryError *string `json:"discovery_error,omitzero"`
ConnectURL *string `json:"connect_url,omitzero"`
Attempt *string `json:"attempt,omitzero"`
RequiredEnv []ConnectionTargetEnvField `json:"required_env,omitzero"`
Tools []string `json:"tools,omitzero"`
Hint *string `json:"hint,omitzero"`
Display *string `json:"display,omitzero"`
Description *string `json:"description,omitzero"`
Tier *CatalogTier `json:"tier,omitzero"`
Platforms []string `json:"platforms,omitzero"`
Repo *string `json:"repo,omitzero"`
Sha *string `json:"sha,omitzero"`
Subdir *string `json:"subdir,omitzero"`
Scan *CatalogScan `json:"scan,omitzero"`
RequiresIcebath *string `json:"requires_icebath,omitzero"`
TargetProfile *string `json:"target_profile,omitzero"`
AppState *CatalogAppState `json:"app_state,omitzero"`
Skill *string `json:"skill,omitzero"`
Phase *InstallPhase `json:"phase,omitzero"`
Approved *CatalogApproved `json:"approved,omitzero"`
Enabled *bool `json:"enabled,omitzero"`
MissingEnv []string `json:"missing_env,omitzero"`
ServerErrors []CatalogServerError `json:"server_errors,omitzero"`
AlreadyInstalled *bool `json:"already_installed,omitzero"`
}
One target of a connection operation with its state, link, the credentials it asks for and its catalog facts
type ConnectionRequestPayload ¶
type ConnectionRequestPayload struct {
OpID string `json:"op_id"`
Seq int64 `json:"seq"`
DeadlineAt float64 `json:"deadline_at"`
TimeoutSeconds float64 `json:"timeout_seconds"`
Targets []ConnectionOperationTarget `json:"targets"`
ToolCallID *string `json:"tool_call_id,omitzero"`
Display *ConnectionDisplay `json:"display,omitzero"`
}
A connection operation opened on the session, its targets and server deadline, the card it shows
type ConnectionRespondParams ¶
type ConnectionRespondParams struct {
Profile *string `json:"profile,omitzero"`
Owner SessionOwner `json:"owner"`
OpID string `json:"op_id"`
Result ConnectionAnswer `json:"result"`
}
Answer of the card for an operation of the owning session
type ConnectionRespondResult ¶
type ConnectionRespondResult struct {
Status ConnectionAckStatus `json:"status"`
Settled bool `json:"settled"`
}
Whether an answer settled the operation
type ConnectionSettleReason ¶
type ConnectionSettleReason string
Why an operation settled, every target resolved, the user continued, the deadline passed or an interrupt
func (ConnectionSettleReason) Values ¶
func (ConnectionSettleReason) Values() []string
type ConnectionTargetAction ¶
type ConnectionTargetAction string
What connecting a target takes
func (ConnectionTargetAction) Values ¶
func (ConnectionTargetAction) Values() []string
type ConnectionTargetEnvField ¶
type ConnectionTargetEnvField struct {
Name string `json:"name"`
Required bool `json:"required"`
Secret bool `json:"secret"`
Default string `json:"default"`
Prompt *string `json:"prompt,omitzero"`
}
One credential an install still needs, a card field sent back with the approval
type ConnectionTargetKind ¶
type ConnectionTargetKind string
What a connection target is, an MCP server, a plugin or a skill
func (ConnectionTargetKind) Values ¶
func (ConnectionTargetKind) Values() []string
type ConnectionTargetState ¶
type ConnectionTargetState string
Where a connection target stands
func (ConnectionTargetState) Values ¶
func (ConnectionTargetState) Values() []string
type ConnectionUpdatePayload ¶
type ConnectionUpdatePayload struct {
ConnectionOperationSnapshot
Owner SessionOwner `json:"owner"`
Target *string `json:"target,omitzero"`
From *ConnectionTargetState `json:"from,omitzero"`
To *ConnectionTargetState `json:"to,omitzero"`
Actor *ConnectionActor `json:"actor,omitzero"`
Detail *string `json:"detail,omitzero"`
}
One target transition or the settlement of an operation, with the full snapshot and its owner
type ConnectionWakeResult ¶
type ConnectionWakeResult struct {
Status ConnectionAckStatus `json:"status"`
}
Acknowledgement of a wake
type ConnectorErrorReason ¶
type ConnectorErrorReason string
type ConnectorsConnectParams ¶
type ConnectorsConnectParams struct {
Profile *string `json:"profile,omitzero"`
Owner SessionOwner `json:"owner"`
Connectors []string `json:"connectors"`
Reconnect bool `json:"reconnect,omitzero"`
}
Failed rows of the session's open operation to run again, reconnect required
type ContextCategory ¶
type ContextFileSource ¶
type ContractViolation ¶
type ContractViolation struct{ Message string }
A result or payload the gateway produced that does not fit its declared type
func (*ContractViolation) Error ¶
func (e *ContractViolation) Error() string
type CorrectionAck ¶
type CorrectionAck struct {
Status CorrectionStatus `json:"status"`
Text string `json:"text"`
ExecutionGeneration int64 `json:"execution_generation"`
AuthorityEpoch int64 `json:"authority_epoch"`
Delivered *bool `json:"delivered,omitzero"`
}
Verdict of a canonical correction, delivered false marking a refusal the turn never saw
type CorrectionAnswer ¶
type CorrectionAnswer struct {
*CorrectionAck
VoiceStopped bool `json:"voice_stopped,omitzero"`
}
Answer of a canonical steer or redirect, the verdict or voice_stopped alone
func (CorrectionAnswer) Variants ¶
func (CorrectionAnswer) Variants() []reflect.Type
type CorrectionStatus ¶
type CorrectionStatus string
Verdict on a correction, delivered to the running turn, held for the next one or refused
func (CorrectionStatus) Values ¶
func (CorrectionStatus) Values() []string
type CronAdmissionParams ¶
type CronCancelResult ¶
type CronCancelResult struct {
Ok bool `json:"ok"`
}
type CronOutcome ¶
What a cron run ended with, sent as the list success, output, final response, error
func (CronOutcome) MarshalJSON ¶
func (o CronOutcome) MarshalJSON() ([]byte, error)
func (*CronOutcome) UnmarshalJSON ¶
func (o *CronOutcome) UnmarshalJSON(data []byte) error
type CronRunParams ¶
type CronRunParams struct {
JobID string `json:"job_id"`
RequestID string `json:"request_id"`
ExtraPrompt *string `json:"extra_prompt"`
}
One cron firing, the job, the scheduler's request id and the prompt added to the job's own
type CronStatusResult ¶
type CronStatusResult struct {
Status string `json:"status"`
Result *CronOutcome `json:"result"`
JobFlags map[string]any `json:"job_flags,omitzero"`
ProgressAt *float64 `json:"progress_at,omitzero"`
Job map[string]any `json:"job,omitzero"`
SessionID string `json:"session_id,omitzero"`
AdmissionID string `json:"admission_id,omitzero"`
}
Status of a cron admission, the outcome once terminal, job flags the run set, owner progress, and the job on recover
type CronSubmitResult ¶
type DelegationPauseParams ¶
type DelegationPauseParams struct {
Profile *string `json:"profile,omitzero"`
SessionID *string `json:"session_id,omitzero"`
Paused *bool `json:"paused,omitzero"`
}
Spawn pause to set, true when absent, the session the canonical route authorizes against
type DelegationPauseResult ¶
type DelegationPauseResult struct {
Paused bool `json:"paused"`
}
type DelegationStatusResult ¶
type DelegationStatusResult struct {
Active []ActiveSubagent `json:"active"`
Paused bool `json:"paused"`
MaxSpawnDepth int64 `json:"max_spawn_depth"`
MaxConcurrentChildren int64 `json:"max_concurrent_children"`
}
Live children with the spawn pause and the depth and concurrency limits
type DetailsMode ¶
type DetailsMode string
func (DetailsMode) Values ¶
func (DetailsMode) Values() []string
type DispatchType ¶
type DispatchType string
func (DispatchType) Values ¶
func (DispatchType) Values() []string
type DisplayImageSwitch ¶
type DisplayImageSwitch struct {
CurrentImage string `json:"current_image"`
TargetImage string `json:"target_image"`
Containers int64 `json:"containers"`
}
Docker sandbox kept on the previous default image, the switch left to the user
type DisplayInstallDonePayload ¶
type DisplayInstallDonePayload struct {
ProfileKey string `json:"profile_key"`
Code int64 `json:"code"`
Status DisplayStatus `json:"status"`
}
End of the install, 0 done, -1 cancelled, -2 no sudo with the command to run by hand streamed
type DisplayInstallResult ¶
type DisplayInstallResult struct {
Started bool `json:"started"`
Command string `json:"command"`
ProfileKey string `json:"profile_key"`
}
Package install started on the gateway host, or the command to run by hand
type DisplayInstallSudoParams ¶
type DisplayInstallSudoParams struct {
SessionID string `json:"session_id"`
ProfileKey string `json:"profile_key"`
}
Sudo password for the bot screen package install of a profile, asked of no session
type DisplayLease ¶
type DisplayLease struct {
Holder DisplayLeaseHolder `json:"holder"`
ViewerID *string `json:"viewer_id"`
ViewerHash *string `json:"viewer_hash"`
Since float64 `json:"since"`
Epoch int64 `json:"epoch"`
Reason string `json:"reason"`
}
Takeover lease of a screen as clients see it, the holder's viewer id never leaving the gateway
type DisplayLeaseAcquireParams ¶
type DisplayLeaseAcquireParams struct {
Profile *string `json:"profile,omitzero"`
ViewerID string `json:"viewer_id"`
Reason string `json:"reason,omitzero"`
}
Asks for the screen for the person at a client, named by an id only that client knows
type DisplayLeaseHolder ¶
type DisplayLeaseHolder string
func (DisplayLeaseHolder) Values ¶
func (DisplayLeaseHolder) Values() []string
type DisplayLeasePayload ¶
type DisplayLeasePayload struct {
ProfileKey string `json:"profile_key"`
Lease DisplayLease `json:"lease"`
}
type DisplayLeaseReleaseParams ¶
type DisplayLeaseReleaseParams struct {
Profile *string `json:"profile,omitzero"`
ViewerID string `json:"viewer_id,omitzero"`
Force bool `json:"force,omitzero"`
}
Hands the screen back, by the client that took it or by force
type DisplayLeaseResult ¶
type DisplayLeaseResult struct {
Lease DisplayLease `json:"lease"`
}
Lease of the screen after a take or a hand back
type DisplayMetadata ¶
type DisplayMetadata struct {
DisplayText *string `json:"display_text,omitzero"`
TaskCount *int64 `json:"task_count,omitzero"`
Extra map[string]any `json:"-" wire:"extra"`
}
Display hints of a transcript row or a pending prompt, the card text and the count of agents a batch finished
type DisplayStatus ¶
type DisplayStatus struct {
Profile string `json:"profile"`
Supported bool `json:"supported"`
Installed bool `json:"installed"`
Missing []string `json:"missing"`
Running bool `json:"running"`
PID *int64 `json:"pid"`
Display *string `json:"display"`
Socket *string `json:"socket"`
Geometry string `json:"geometry"`
InstallCommand *string `json:"install_command"`
Browser *string `json:"browser"`
Blocker *string `json:"blocker"`
MemoryAvailableMB *int64 `json:"memory_available_mb"`
MemoryLimitMB *int64 `json:"memory_limit_mb"`
Placement string `json:"placement"`
ImageSwitch *DisplayImageSwitch `json:"image_switch"`
Lease DisplayLease `json:"lease"`
ProfileKey string `json:"profile_key"`
}
Runtime of the profile's screen with its lease and the profile key it speaks for
type DisplayStopParams ¶
type DisplayStopResult ¶
type DisplayStopResult struct {
DisplayStatus
Stopped bool `json:"stopped"`
}
type DisplaySwitchSandboxImageResult ¶
type DisplaySwitchSandboxImageResult struct {
DisplayStatus
DockerImage string `json:"docker_image"`
}
type DisplayThumbnailResult ¶
type DisplayThumbnailResult struct {
Path *string `json:"path"`
Suppressed string `json:"suppressed,omitzero"`
}
One frame of the screen as an image file of the gateway host, no path while the screen is down or while a person holds it, suppressed saying so
type EditApprovalPolicy ¶
type EditApprovalPolicy string
Edit approval policy of an editor session
func (EditApprovalPolicy) Values ¶
func (EditApprovalPolicy) Values() []string
type Entry ¶
One declared method, request or event with the Go types of its params and of its result or payload
func (*Entry) CheckResult ¶
Checks a result or payload strictly against the entry's type, the misfit naming the field
func (*Entry) FitParams ¶
Params a server route received, refused with the method and field named when they do not fit
func (*Entry) ResultNames ¶
Wire names of the top level fields of the result or payload, in declaration order
func (*Entry) TakesParam ¶
Whether the params declare the named key
type ErrorPayload ¶
type ErrorPayload struct {
Message string `json:"message"`
}
Failure of a session outside a turn, agent start, model switch, compression or resume
type ErrorSurface ¶
type ErrorSurface struct {
Layer string `json:"layer"`
Code string `json:"code"`
Retryable bool `json:"retryable"`
Provider *string `json:"provider,omitzero"`
Model *string `json:"model,omitzero"`
ResetsAt *float64 `json:"resets_at,omitzero"`
Extra map[string]any `json:"-" wire:"extra"`
}
Advisory layer, code and retryability of a turn failure, with the provider and when its limit lifts
type Event ¶
type Event[T any] struct { // contains filtered or unexported fields }
Notification whose payload is T
type EventEnvelope ¶
type EventEnvelope struct {
Type string `json:"type"`
SessionID string `json:"session_id,omitzero"`
Payload map[string]any `json:"payload,omitzero"`
ReplayEpoch *string `json:"replay_epoch,omitzero"`
Seq *int64 `json:"seq,omitzero"`
AuthorityEpoch *int64 `json:"authority_epoch,omitzero"`
ExecutionGeneration *int64 `json:"execution_generation,omitzero"`
AdmissionID *string `json:"admission_id,omitzero"`
}
Params of an event frame, the session, payload and the owner stamps a canonical gateway adds
type ExecutionState ¶
type ExecutionState string
State the execution of a canonical session is in
func (ExecutionState) Values ¶
func (ExecutionState) Values() []string
type FailedDelegation ¶
type FailedDelegation struct {
DelegationID string `json:"delegation_id"`
TaskIndex int64 `json:"task_index,omitzero"`
Status string `json:"status"`
Goal string `json:"goal,omitzero"`
Error *string `json:"error,omitzero"`
DispatchedAt *float64 `json:"dispatched_at,omitzero"`
CompletedAt *float64 `json:"completed_at,omitzero"`
}
One failed task of an async delegation from the durable store
type GatewayReadyPayload ¶
type GatewayReadyPayload struct {
Skin *SkinPayloadModel `json:"skin,omitzero"`
ChangeEvents bool `json:"change_events"`
ReplayEpoch string `json:"replay_epoch"`
Heartbeat *bool `json:"heartbeat,omitzero"`
SessionAuthority *bool `json:"session_authority,omitzero"`
// Go build ID and contract version of the gateway, absent from a gateway older than both
Build string `json:"build"`
Contract int64 `json:"contract"`
}
type GoalContractSnapshot ¶
type GoalGateSnapshot ¶
type GoalSnapshot ¶
type GoalSnapshot struct {
Title string `json:"title"`
Status string `json:"status"`
TurnsUsed int64 `json:"turns_used"`
MaxTurns int64 `json:"max_turns"`
Contract GoalContractSnapshot `json:"contract"`
Subgoals []string `json:"subgoals"`
Gates []GoalGateSnapshot `json:"gates"`
CreatedAt *float64 `json:"created_at,omitzero"`
UpdatedAt *float64 `json:"updated_at,omitzero"`
PausedReason *string `json:"paused_reason,omitzero"`
LastVerdict *string `json:"last_verdict,omitzero"`
LastReason *string `json:"last_reason,omitzero"`
WaitBarrier *WaitBarrier `json:"wait_barrier,omitzero"`
}
type GroupsApproveParams ¶
type GroupsApproveParams struct {
Profile *string `json:"profile,omitzero"`
RoomID string `json:"room_id"`
MemberID string `json:"member_id"`
TaskID string `json:"task_id"`
ExecutionGeneration int64 `json:"execution_generation"`
Choice ApprovalChoice `json:"choice"`
RequestID string `json:"request_id"`
}
type GroupsApproveResult ¶
type GroupsCapabilitiesParams ¶
type GroupsCapabilitiesParams struct {
Profile *string `json:"profile,omitzero"`
}
type GroupsCapabilitiesResult ¶
type GroupsCapabilitiesResult struct {
ProtocolVersion int64 `json:"protocol_version"`
Driver bool `json:"driver"`
PersistentProcess bool `json:"persistent_process"`
AuthorityGatewayID string `json:"authority_gateway_id"`
RoomLink RoomLinkStatus `json:"room_link"`
Features []string `json:"features"`
Methods []string `json:"methods"`
MaxLogLimit int64 `json:"max_log_limit"`
SeatableProfiles []string `json:"seatable_profiles,omitzero"`
}
type GroupsContinueParams ¶
type GroupsContinueResult ¶
type GroupsCreateParams ¶
type GroupsCreateParams struct {
Profile *string `json:"profile,omitzero"`
RoomID string `json:"room_id"`
Name string `json:"name"`
Members []RoomMemberInput `json:"members"`
AuthorityGatewayID *string `json:"authority_gateway_id,omitzero"`
}
type GroupsCreateResult ¶
type GroupsCreateResult struct {
Room Room `json:"room"`
}
type GroupsDisbandParams ¶
type GroupsDisbandResult ¶
type GroupsDisbandResult struct {
Tombstone *RoomTombstone `json:"tombstone,omitzero"`
Queued *bool `json:"queued,omitzero"`
}
type GroupsDiscardParams ¶
type GroupsDiscardResult ¶
type GroupsDiscardResult struct {
Discarded *bool `json:"discarded,omitzero"`
Task *RoomTaskReceipt `json:"task,omitzero"`
Queued *bool `json:"queued,omitzero"`
}
type GroupsListParams ¶
type GroupsListResult ¶
type GroupsLogParams ¶
type GroupsLogResult ¶
type GroupsLogResult struct {
Events []RoomEvent `json:"events"`
Cursor int64 `json:"cursor"`
LatestSeq int64 `json:"latest_seq"`
HasMore bool `json:"has_more"`
Authority RoomAuthority `json:"authority"`
}
type GroupsPeersParams ¶
type GroupsPeersResult ¶
type GroupsPeersResult struct {
Peers []RoomPeer `json:"peers"`
}
type GroupsPromoteParams ¶
type GroupsPromoteResult ¶
type GroupsPromoteResult struct {
RoomID string `json:"room_id"`
AuthorityGatewayID string `json:"authority_gateway_id"`
AuthorityEpoch int64 `json:"authority_epoch"`
PreviousGatewayID string `json:"previous_gateway_id"`
PreviousEpoch int64 `json:"previous_epoch"`
ClaimSeq int64 `json:"claim_seq"`
LatestSeq int64 `json:"latest_seq"`
}
type GroupsRenameParams ¶
type GroupsRenameResult ¶
type GroupsReplicaStateResult ¶
type GroupsReplicaStateResult struct {
RoomID string `json:"room_id"`
Name string `json:"name"`
Members []RoomMember `json:"members"`
Authority RoomAuthority `json:"authority"`
LastSeq int64 `json:"last_seq"`
LatestSeq int64 `json:"latest_seq"`
EventBytes int64 `json:"event_bytes"`
CreatedAt float64 `json:"created_at"`
UpdatedAt float64 `json:"updated_at"`
Home *string `json:"home,omitzero"`
SyncedAt *float64 `json:"synced_at,omitzero"`
DisbandedAt *float64 `json:"disbanded_at,omitzero"`
Pending *int64 `json:"pending,omitzero"`
Errors []RoomQueuedError `json:"errors,omitzero"`
}
type GroupsRetryParams ¶
type GroupsRetryResult ¶
type GroupsRetryResult struct {
Retried *bool `json:"retried,omitzero"`
Task *RoomTaskReceipt `json:"task,omitzero"`
Queued *bool `json:"queued,omitzero"`
}
type GroupsSendParams ¶
type GroupsSendParams struct {
Profile *string `json:"profile,omitzero"`
RoomID string `json:"room_id"`
EventID *string `json:"event_id,omitzero"`
Payload RoomMessagePayload `json:"payload"`
}
type GroupsSendResult ¶
type GroupsShareParams ¶
type GroupsShareParams struct {
}
type GroupsShareResult ¶
type GroupsShareResult struct {
}
type GroupsStateParams ¶
type GroupsStateResult ¶
type GroupsStateResult struct {
Room Room `json:"room"`
DriverStatus *RoomDriverStatus `json:"driver_status,omitzero"`
}
type GroupsStopParams ¶
type GroupsStopResult ¶
type HandoffFailParams ¶
type HandoffFailResult ¶
Whether this call failed the handoff, and the state it is in
type HandoffRequestParams ¶
type HandoffRequestResult ¶
type HandoffRequestResult struct {
Queued bool `json:"queued"`
SessionKey string `json:"session_key"`
Platform string `json:"platform"`
HomeName string `json:"home_name"`
}
Handoff queued for the platform's home channel, the gateway watcher claiming it
type HandoffStateResult ¶
type HandoffStateResult struct {
State string `json:"state"`
Platform string `json:"platform"`
Error string `json:"error"`
}
Handoff row of the session, its state, platform and error, empty texts when none is recorded
type HeartbeatSnapshot ¶
type HiddenDisplayKind ¶
type HiddenDisplayKind string
Display kind a canonical prompt may ask for, hidden keeping the bubble out of the transcript
func (HiddenDisplayKind) Values ¶
func (HiddenDisplayKind) Values() []string
type I18nCatalogParams ¶
type I18nCatalogParams struct {
Profile *string `json:"profile,omitzero"`
Lang string `json:"lang"`
Surface LocaleSurface `json:"surface,omitzero"`
}
type I18nCatalogResult ¶
type I18nCatalogResult struct {
Lang string `json:"lang"`
Surface LocaleSurface `json:"surface"`
Messages map[string]string `json:"messages"`
}
Pack and overlay messages of one language and surface, merged by the UI over its bundled catalog
type I18nLanguagesParams ¶
type I18nLanguagesParams struct {
Profile *string `json:"profile,omitzero"`
Resolve string `json:"resolve,omitzero"`
}
Asks for the languages of a profile, and for the id a code, alias or regional tag stands for
type I18nLanguagesResult ¶
type I18nLanguagesResult struct {
Languages []LanguageOption `json:"languages"`
Current string `json:"current"`
Resolved string `json:"resolved,omitzero"`
}
Languages of a profile, the language in effect, and the id the value to resolve stands for, empty when no language answers to it
type ImageAttachBytesParams ¶
type ImageAttachBytesParams struct {
SessionID string `json:"session_id"`
Profile *string `json:"profile,omitzero"`
ContentBase64 string `json:"content_base64,omitzero"`
Data string `json:"data,omitzero"`
Filename string `json:"filename,omitzero"`
Ext string `json:"ext,omitzero"`
}
Image uploaded as base64 by a remote client, data an older name of content_base64
type ImageAttachParams ¶
type ImageDetachParams ¶
type ImageDetachResult ¶
type ImageRenderMode ¶
type ImageRenderMode string
func (ImageRenderMode) Values ¶
func (ImageRenderMode) Values() []string
type ImageRenderParams ¶
type ImageRenderParams struct {
Path string `json:"path"`
Cols int64 `json:"cols"`
Rows int64 `json:"rows"`
// Whether the client owns a real terminal that takes escapes
Graphics bool `json:"graphics,omitzero"`
// Image form the client's own terminal paints, kitty or unicode, since the gateway's environment names no client's terminal
Terminal string `json:"terminal,omitzero"`
}
Image a client wants laid out for its transcript, the cell budget it keeps its aspect inside and never grows past
type ImageRenderResult ¶
type ImageRenderResult struct {
Mode ImageRenderMode `json:"mode"`
Cols int64 `json:"cols,omitzero"`
Rows int64 `json:"rows,omitzero"`
Color string `json:"color,omitzero"`
Transmit string `json:"transmit,omitzero"`
Placeholder []string `json:"placeholder,omitzero"`
Cells [][][8]int64 `json:"cells,omitzero"`
}
Image on a grid of cells, kitty writing transmit once and painting placeholder in color, unicode painting cells as half blocks, off drawing nothing
type IndicatorStyle ¶
type IndicatorStyle string
func (IndicatorStyle) Values ¶
func (IndicatorStyle) Values() []string
type InflightTurn ¶
type InflightTurn struct {
Assistant string `json:"assistant,omitzero"`
Streaming bool `json:"streaming,omitzero"`
User string `json:"user,omitzero"`
DisplayKind *string `json:"display_kind,omitzero"`
DisplayMetadata *DisplayMetadata `json:"display_metadata,omitzero"`
Corrections []string `json:"corrections,omitzero"`
CorrectionOffsets []int64 `json:"correction_offsets,omitzero"`
Error *string `json:"error,omitzero"`
Status *string `json:"status,omitzero"`
Recoverable *bool `json:"recoverable,omitzero"`
ErrorSurface map[string]any `json:"error_surface,omitzero"`
}
type InputDetectDropParams ¶
type InputDetectDropResult ¶
type InputDetectDropResult struct {
Matched bool `json:"matched"`
IsImage bool `json:"is_image,omitzero"`
Name string `json:"name,omitzero"`
Width *int64 `json:"width,omitzero"`
Height *int64 `json:"height,omitzero"`
TokenEstimate *int64 `json:"token_estimate,omitzero"`
Path string `json:"path,omitzero"`
Count *int64 `json:"count,omitzero"`
Text string `json:"text,omitzero"`
}
A dropped path recognized in typed text, an image queued with its size or a file described in text
type InstallPhase ¶
type InstallPhase string
Step an install is at
func (InstallPhase) Values ¶
func (InstallPhase) Values() []string
type InterruptStatus ¶
type InterruptStatus string
Whether a turn was running to stop
func (InterruptStatus) Values ¶
func (InterruptStatus) Values() []string
type KanbanRunParams ¶
type KanbanRunParams struct {
Board string `json:"board"`
TaskID string `json:"task_id"`
RunID int64 `json:"run_id"`
ClaimLock string `json:"claim_lock"`
DB string `json:"db,omitzero"`
}
The dispatcher's current claim on a kanban task
type KanbanRunResult ¶
type KanbanRunResult struct {
SessionID string `json:"session_id"`
Receipt AdmissionReceipt `json:"receipt"`
}
type LanguageOption ¶
type LanguageOption struct {
ID string `json:"id"`
Endonym string `json:"endonym"`
RTL bool `json:"rtl"`
Source string `json:"source"`
Surfaces []string `json:"surfaces"`
}
Language the UI can be shown in: its own name for itself, whether it reads right to left, the layer that supplies it and the surfaces it covers
type LearningAxis ¶
type LearningBucketRow ¶
type LearningBucketRow struct {
Index int64 `json:"index"`
Label string `json:"label"`
Date string `json:"date"`
Skills int64 `json:"skills"`
Memories int64 `json:"memories"`
Total int64 `json:"total"`
Category string `json:"category,omitzero"`
Color string `json:"color,omitzero"`
Nodes []LearningNodeRow `json:"nodes"`
}
One slice of the timeline with its learned skills and memories
type LearningDetailResult ¶
type LearningDetailResult struct {
Ok bool `json:"ok"`
Message string `json:"message,omitzero"`
Kind LearningNodeKind `json:"kind,omitzero"`
ID string `json:"id,omitzero"`
Label string `json:"label,omitzero"`
Content *string `json:"content,omitzero"`
}
Content of a node for an edit prefill, a failure carrying its reason in message
type LearningEditParams ¶
type LearningFrame ¶
type LearningFrame struct {
Reveal float64 `json:"reveal"`
Date string `json:"date"`
Visible int64 `json:"visible"`
Grid [][]LearningRun `json:"grid"`
Labels []map[string]any `json:"labels"`
}
One frame of the timeline at a reveal, its chart rows and the label cards it placed
type LearningFramesParams ¶
type LearningFramesResult ¶
type LearningFramesResult struct {
Frames []LearningFrame `json:"frames"`
Legend []LearningLegendItem `json:"legend"`
Categories []LearningLegendItem `json:"categories"`
Buckets []LearningBucketRow `json:"buckets"`
Summary []string `json:"summary"`
Axis LearningAxis `json:"axis"`
Count int64 `json:"count"`
Cols int64 `json:"cols"`
Rows int64 `json:"rows"`
}
Pre-rendered timeline the journey window walks without asking again
type LearningGraphCluster ¶
type LearningGraphEdge ¶
type LearningGraphNode ¶
type LearningGraphNode struct {
ID string `json:"id"`
Label string `json:"label"`
Kind LearningNodeKind `json:"kind"`
Timestamp *float64 `json:"timestamp"`
Category string `json:"category"`
UseCount int64 `json:"useCount"`
State string `json:"state"`
CreatedBy *string `json:"createdBy"`
Pinned bool `json:"pinned"`
MemorySource string `json:"memorySource,omitzero"`
}
One learned skill or memory chunk of the learning graph
type LearningGraphParams ¶
type LearningGraphParams struct{}
type LearningGraphResult ¶
type LearningGraphResult struct {
Nodes []LearningGraphNode `json:"nodes"`
Edges []LearningGraphEdge `json:"edges"`
Clusters []LearningGraphCluster `json:"clusters"`
Memory []LearningMemoryCard `json:"memory"`
Stats map[string]any `json:"stats"`
}
Learning graph of the profile, the stats an open object of counts and top categories
type LearningLegendItem ¶
type LearningMemoryCard ¶
type LearningMemoryCard struct {
Source string `json:"source"`
Timestamp *float64 `json:"timestamp"`
Title string `json:"title"`
Body string `json:"body"`
Fingerprint string `json:"fingerprint"`
}
One memory chunk the graph shows, its first line as the title and the start of its text
type LearningMutationResult ¶
type LearningNodeKind ¶
type LearningNodeKind string
func (LearningNodeKind) Values ¶
func (LearningNodeKind) Values() []string
type LearningNodeParams ¶
type LearningNodeParams struct {
ID string `json:"id"`
}
type LearningNodeRow ¶
type LearningRun ¶
One painted run of a chart row, sent as text, style key, alpha and an optional hex override
func (LearningRun) MarshalJSON ¶
func (r LearningRun) MarshalJSON() ([]byte, error)
func (*LearningRun) UnmarshalJSON ¶
func (r *LearningRun) UnmarshalJSON(data []byte) error
type LegacyPluginRow ¶
type LegacyPluginRow struct {
Name string `json:"name"`
Version string `json:"version"`
Enabled bool `json:"enabled"`
Key *string `json:"key,omitzero"`
Tools *int64 `json:"tools,omitzero"`
Hooks *int64 `json:"hooks,omitzero"`
Commands *int64 `json:"commands,omitzero"`
Error *string `json:"error,omitzero"`
}
Loaded plugin manager entry with its counts and load error
type LiveSessionStatus ¶
type LiveSessionStatus string
func (LiveSessionStatus) Values ¶
func (LiveSessionStatus) Values() []string
type LocaleSurface ¶
type LocaleSurface string
func (LocaleSurface) Values ¶
func (LocaleSurface) Values() []string
type LoopSnapshot ¶
type LoopSnapshot struct {
Prompt string `json:"prompt"`
Status string `json:"status"`
Mode string `json:"mode"`
IntervalSeconds float64 `json:"interval_seconds"`
CurrentDelay float64 `json:"current_delay"`
Times int64 `json:"times"`
Until string `json:"until"`
MaxTicks int64 `json:"max_ticks"`
TicksFired int64 `json:"ticks_fired"`
CreatedAt float64 `json:"created_at"`
LastFiredAt float64 `json:"last_fired_at"`
NextDueAt float64 `json:"next_due_at"`
AwaitingResponse bool `json:"awaiting_response"`
DeferredByGoal bool `json:"deferred_by_goal"`
PausedReason *string `json:"paused_reason,omitzero"`
LastStopReason *string `json:"last_stop_reason,omitzero"`
}
type MCPCatalogEntry ¶
type MCPCatalogEntry struct {
Name string `json:"name"`
Description string `json:"description"`
ConnectorSlug *string `json:"connector_slug,omitzero"`
Installed bool `json:"installed"`
Enabled bool `json:"enabled"`
Requires []string `json:"requires"`
Transport string `json:"transport"`
}
One catalog MCP server with its install state and the env keys it needs
type MCPCatalogResult ¶
type MCPCatalogResult struct {
Servers []MCPCatalogEntry `json:"servers"`
}
Catalog MCP servers of the profile
type MCPOAuthCancelResult ¶
type MCPOAuthCancelResult struct {
OK bool `json:"ok"`
Status *string `json:"status,omitzero"`
ErrorMessage *string `json:"error_message,omitzero"`
}
Whether a cancel stopped the flow and its state then
type MCPOAuthFlowParams ¶
type MCPOAuthFlowParams struct {
Profile *string `json:"profile,omitzero"`
Name string `json:"name"`
SessionID string `json:"session_id"`
}
Sign in flow of a server by the flow id its start returned
type MCPOAuthPollResult ¶
type MCPOAuthPollResult struct {
OK bool `json:"ok"`
Status MCPOAuthPollStatus `json:"status"`
SessionID *string `json:"session_id,omitzero"`
ErrorMessage *string `json:"error_message,omitzero"`
AuthURL *string `json:"auth_url,omitzero"`
Tools []MCPProbeTool `json:"tools,omitzero"`
}
State of a sign in flow, the tools of the server once approved or why it failed
type MCPOAuthPollStatus ¶
type MCPOAuthPollStatus string
Where a browser sign in stands
func (MCPOAuthPollStatus) Values ¶
func (MCPOAuthPollStatus) Values() []string
type MCPOAuthStartParams ¶
type MCPOAuthStartParams struct {
Profile *string `json:"profile,omitzero"`
Name string `json:"name"`
ClientRedirectURI *string `json:"client_redirect_uri,omitzero"`
}
Browser sign in of a server, the client hosting the loopback itself when it names its redirect
type MCPOAuthStartResult ¶
type MCPOAuthStartResult struct {
OK bool `json:"ok"`
SessionID string `json:"session_id"`
AuthURL string `json:"auth_url"`
Flow string `json:"flow"`
}
Sign in flow that started and the link the user opens
type MCPProbeTool ¶
One tool a probed MCP server lists
type MCPRuntimeStatus ¶
type MCPRuntimeStatus string
Runtime state of a configured MCP server, read from the cache and never probed
func (MCPRuntimeStatus) Values ¶
func (MCPRuntimeStatus) Values() []string
type MCPServerNameParams ¶
type MCPServerNameParams struct {
Profile *string `json:"profile,omitzero"`
Name string `json:"name"`
}
Configured MCP server a test, removal or sign in names
type MCPServerResult ¶
type MCPServerResult struct {
OK bool `json:"ok"`
Name string `json:"name"`
Server MCPServerSummary `json:"server"`
}
The server an add, enable or key change wrote
type MCPServerRuntimeRow ¶
type MCPServerRuntimeRow struct {
Name string `json:"name"`
Transport string `json:"transport"`
Tools int64 `json:"tools"`
Connected bool `json:"connected"`
Disabled bool `json:"disabled"`
Status MCPRuntimeStatus `json:"status"`
Source MCPServerSource `json:"source"`
Plugin *string `json:"plugin,omitzero"`
}
Runtime row of one configured MCP server with its tool count
type MCPServerSource ¶
type MCPServerSource string
Where a configured MCP server comes from, config.yaml or a plugin
func (MCPServerSource) Values ¶
func (MCPServerSource) Values() []string
type MCPServerSummary ¶
type MCPServerSummary struct {
Name string `json:"name"`
Transport string `json:"transport"`
URL *string `json:"url,omitzero"`
Command *string `json:"command,omitzero"`
Args []string `json:"args"`
Env []string `json:"env"`
Auth *string `json:"auth,omitzero"`
OAuthTokensPresent *bool `json:"oauth_tokens_present,omitzero"`
Enabled bool `json:"enabled"`
Tools any `json:"tools,omitzero"`
Source MCPServerSource `json:"source"`
Plugin *string `json:"plugin,omitzero"`
}
A configured MCP server without its secret values, env and tools as configured
type MCPServersAddParams ¶
type MCPServersAddParams struct {
Profile *string `json:"profile,omitzero"`
Name string `json:"name"`
Preset *string `json:"preset,omitzero"`
Config map[string]any `json:"config,omitzero"`
BearerToken *string `json:"bearer_token,omitzero"`
}
Server to add from a catalog preset or an explicit config, a bearer token written to the profile's .env
type MCPServersEnableParams ¶
type MCPServersEnableParams struct {
Profile *string `json:"profile,omitzero"`
Name string `json:"name"`
Enabled bool `json:"enabled"`
}
Server whose enabled flag a call sets
type MCPServersListResult ¶
type MCPServersListResult struct {
Servers []MCPServerSummary `json:"servers"`
}
Configured MCP servers of the profile
type MCPServersRemoveResult ¶
Whether a removal dropped the server from config.yaml
type MCPServersSetAPIKeyParams ¶
type MCPServersSetAPIKeyParams struct {
Profile *string `json:"profile,omitzero"`
Name string `json:"name"`
Value string `json:"value"`
EnvVar *string `json:"env_var,omitzero"`
}
Credential of a server stored in the profile's .env under env_var or the server's own key
type MCPServersSetAPIKeyResult ¶
type MCPServersSetAPIKeyResult struct {
OK bool `json:"ok"`
Name string `json:"name"`
EnvVar string `json:"env_var"`
Server MCPServerSummary `json:"server"`
}
The server a key change wrote and the env key that holds the value
type MCPServersStatusResult ¶
type MCPServersStatusResult struct {
Servers []MCPServerRuntimeRow `json:"servers"`
CheckedAt int64 `json:"checked_at"`
}
Runtime rows of the configured MCP servers and when they were read
type MCPServersTestResult ¶
type MCPServersTestResult struct {
OK bool `json:"ok"`
Tools []MCPProbeTool `json:"tools"`
Error *string `json:"error,omitzero"`
Prompts *int64 `json:"prompts,omitzero"`
Resources *int64 `json:"resources,omitzero"`
OAuthNeeded bool `json:"oauth_needed"`
OAuthTokensPresent *bool `json:"oauth_tokens_present,omitzero"`
}
Outcome of connecting to a server once, its tools, prompt and resource counts, or why it failed
type McpServerStatus ¶
type McpServerStatus struct {
Name string `json:"name"`
Transport string `json:"transport"`
Tools int64 `json:"tools"`
Connected bool `json:"connected"`
Disabled bool `json:"disabled"`
Status MCPRuntimeStatus `json:"status"`
Error *string `json:"error,omitzero"`
Sampling map[string]any `json:"sampling,omitzero"`
}
MCP server of the session with its transport, tool count, connection state and sampling metrics
type MessageCompletePayload ¶
type MessageCompletePayload struct {
Text *string `json:"text,omitzero"`
Content *string `json:"content,omitzero"`
AdmissionID *string `json:"admission_id,omitzero"`
Outcome *string `json:"outcome,omitzero"`
Usage *Usage `json:"usage,omitzero"`
Status *TurnStatus `json:"status,omitzero"`
Reasoning *string `json:"reasoning,omitzero"`
Warning *string `json:"warning,omitzero"`
ResponsePreviewed *bool `json:"response_previewed,omitzero"`
ResponseReused *bool `json:"response_reused,omitzero"`
ResponseTransformed *bool `json:"response_transformed,omitzero"`
Billing *BillingBlock `json:"billing,omitzero"`
FailureReason *string `json:"failure_reason,omitzero"`
Rendered *string `json:"rendered,omitzero"`
Error *string `json:"error,omitzero"`
Recoverable *bool `json:"recoverable,omitzero"`
ErrorSurface *ErrorSurface `json:"error_surface,omitzero"`
Partial *bool `json:"partial,omitzero"`
PersistedTurn *PersistedTurn `json:"persisted_turn,omitzero"`
}
End of a turn, its final text, usage and outcome, a canonical turn naming its admission
type MessageDeltaPayload ¶
type MessageDeltaPayload struct {
Text *string `json:"text"`
Rendered *string `json:"rendered,omitzero"`
Verbose *bool `json:"verbose,omitzero"`
TurnID *string `json:"turn_id,omitzero"`
Segment *int64 `json:"segment,omitzero"`
Offset *int64 `json:"offset,omitzero"`
}
Streamed reply chunk, null text ending a segment and the turn stamps letting a client drop a resent chunk
type MessageInterimPayload ¶
type MessageInterimPayload struct {
Text string `json:"text"`
AlreadyStreamed bool `json:"already_streamed"`
TurnID *string `json:"turn_id,omitzero"`
Segment *int64 `json:"segment,omitzero"`
}
Commentary beside tool calls sealed as its own segment
type MessageStartPayload ¶
type MessageStartPayload struct {
DisplayKind *string `json:"display_kind,omitzero"`
DisplayText *string `json:"display_text,omitzero"`
NotificationCategory *string `json:"notification_category,omitzero"`
Text *string `json:"text,omitzero"`
TurnID *string `json:"turn_id,omitzero"`
}
Start of a turn, an automation turn carrying the card and model text a viewer paints
type Method ¶
type Method[P, R any] struct { // contains filtered or unexported fields }
Client method whose params are P and whose result is R
func NewCanonicalMethod ¶
Declares a method the session authority serves
type MirroredValue ¶
type MirroredValue struct {
Done bool
}
Whether a create mirrored one item from the launch profile, Shared standing for logins the new profile reads from the root store
func (MirroredValue) Held ¶
func (v MirroredValue) Held() bool
Reports whether the item reached the new profile, copied or shared
func (MirroredValue) MarshalJSON ¶
func (v MirroredValue) MarshalJSON() ([]byte, error)
func (*MirroredValue) UnmarshalJSON ¶
func (v *MirroredValue) UnmarshalJSON(data []byte) error
type MoaAggregatingPayload ¶
type MoaAggregatingPayload struct {
Aggregator string `json:"aggregator"`
}
Mixture of agents aggregator that started
type MoaPhasePayload ¶
type MoaPhasePayload struct {
Phase string `json:"phase"`
RefsDone *int64 `json:"refs_done,omitzero"`
RefsTotal *int64 `json:"refs_total,omitzero"`
Aggregator *string `json:"aggregator,omitzero"`
}
Phase a mixture of agents turn moved to, aggregator once the references are in
type MoaProgressPayload ¶
type MoaProgressPayload struct {
Label string `json:"label"`
RefsDone int64 `json:"refs_done"`
RefsTotal int64 `json:"refs_total"`
}
References a mixture of agents turn has heard back from
type MoaReferencePayload ¶
type MoaReferencePayload struct {
Label string `json:"label"`
Text string `json:"text"`
Index *int64 `json:"index,omitzero"`
Count *int64 `json:"count,omitzero"`
}
Output of one mixture of agents reference model, its place among the references
type ModelCapabilities ¶
type ModelDisconnectParams ¶
type ModelDisconnectResult ¶
type ModelOptionProvider ¶
type ModelOptionProvider struct {
Slug string `json:"slug"`
Name string `json:"name"`
Models []string `json:"models,omitzero"`
TotalModels int64 `json:"total_models,omitzero"`
IsCurrent bool `json:"is_current,omitzero"`
IsUserDefined bool `json:"is_user_defined,omitzero"`
Source string `json:"source,omitzero"`
Aliases []string `json:"aliases,omitzero"`
APIURL string `json:"api_url,omitzero"`
AuthType string `json:"auth_type,omitzero"`
Authenticated *bool `json:"authenticated,omitzero"`
KeyEnv string `json:"key_env,omitzero"`
Warning string `json:"warning,omitzero"`
FeaturedModels []string `json:"featured_models,omitzero"`
Capabilities map[string]ModelCapabilities `json:"capabilities,omitzero"`
Pricing map[string]ModelPricing `json:"pricing,omitzero"`
PricingPending bool `json:"pricing_pending,omitzero"`
NativeCatalogEmpty bool `json:"native_catalog_empty,omitzero"`
Limit *ProviderLimit `json:"limit,omitzero"`
Usage *ProviderUsage `json:"usage,omitzero"`
Extra map[string]any `json:"-" wire:"extra"`
}
One provider of the model picker with its models, sign in state, prices, limits and usage
func (ModelOptionProvider) Unauthenticated ¶
func (p ModelOptionProvider) Unauthenticated() bool
Whether the provider holds no credential, a row the picker offers to sign in to
type ModelOptionsParams ¶
type ModelOptionsResult ¶
type ModelOptionsResult struct {
Providers []ModelOptionProvider `json:"providers"`
Model string `json:"model,omitzero"`
Provider string `json:"provider,omitzero"`
}
type ModelPick ¶
type ModelPick struct {
Model string `json:"model"`
Provider *string `json:"provider,omitzero"`
Reasoning *string `json:"reasoning,omitzero"`
}
Model a deferred pick asked for, with its provider and reasoning effort
type ModelPricing ¶
type ModelPricing struct {
Input string `json:"input"`
Output string `json:"output"`
Cache *string `json:"cache,omitzero"`
Free bool `json:"free"`
}
Price per million tokens as display text, empty when unknown and free for a free model
type ModelSaveKeyParams ¶
type ModelSaveKeyResult ¶
type ModelSaveKeyResult struct {
Provider ModelOptionProvider `json:"provider"`
}
type MouseTracking ¶
type MouseTracking string
func MouseTrackingOf ¶
func MouseTrackingOf(display map[string]any) MouseTracking
Mouse tracking mode of a display section, the legacy tui_mouse only when mouse_tracking is absent
func (MouseTracking) Values ¶
func (MouseTracking) Values() []string
type NoticePayload ¶
type NoticePayload struct {
Message string `json:"message"`
}
Informational one line notice for the session
type NotificationClearPayload ¶
type NotificationClearPayload struct {
Key string `json:"key"`
}
type NotificationShowPayload ¶
type NotificationShowPayload struct {
Text string `json:"text"`
Level string `json:"level"`
Kind string `json:"kind"`
TTLMs *int64 `json:"ttl_ms,omitzero"`
Key string `json:"key,omitzero"`
ID string `json:"id,omitzero"`
Detail string `json:"detail,omitzero"`
}
Keyed out of band notice, a toast for ttl_ms or sticky in the status bar until cleared
type OpenRequestEntry ¶
type ParamsRefusal ¶
Params that do not fit their method, naming the method and the field
func (*ParamsRefusal) Error ¶
func (e *ParamsRefusal) Error() string
func (*ParamsRefusal) Fields ¶
func (e *ParamsRefusal) Fields() []string
Field paths the refusal names
func (*ParamsRefusal) Unknown ¶
func (e *ParamsRefusal) Unknown() bool
Whether the refusal is a key the method does not declare, the mark of a client of another version
func (*ParamsRefusal) Unwrap ¶
func (e *ParamsRefusal) Unwrap() error
type PasteCollapseParams ¶
type PasteCollapseParams struct {
Text string `json:"text,omitzero"`
}
type PasteCollapseResult ¶
type PasteCollapseResult struct {
Placeholder string `json:"placeholder"`
Path string `json:"path"`
Lines int64 `json:"lines"`
}
Large paste spilled to a file, the placeholder the composer shows for it
type PeerRouteStatus ¶
type PendingApproval ¶
type PendingApproval struct {
RequestID *string `json:"request_id,omitzero"`
Command *string `json:"command,omitzero"`
Description *string `json:"description,omitzero"`
PatternKey *string `json:"pattern_key,omitzero"`
PatternKeys []string `json:"pattern_keys,omitzero"`
AllowPermanent *bool `json:"allow_permanent,omitzero"`
AllowSession *bool `json:"allow_session,omitzero"`
SmartDenied *bool `json:"smart_denied,omitzero"`
Choices []string `json:"choices,omitzero"`
ToolName *string `json:"tool_name,omitzero"`
}
type PendingSubmission ¶
type PendingSubmission struct {
AdmissionID string `json:"admission_id"`
Status string `json:"status"`
User string `json:"user"`
InputID string `json:"input_id"`
}
One prompt a forwarding owner queued for the session, shown as a user bubble once it starts
type PersistedTurn ¶
type PersistedTurn struct {
RowIDs []int64 `json:"row_ids"`
Complete bool `json:"complete"`
UserRowID *int64 `json:"user_row_id,omitzero"`
FinalAssistantRowID *int64 `json:"final_assistant_row_id,omitzero"`
UserRowIDs []int64 `json:"user_row_ids,omitzero"`
SubmissionID *string `json:"submission_id,omitzero"`
}
Stored row ids of a turn, complete only when every row and the final body are accounted for
type PetCancelParams ¶
type PetCellFrames ¶
Frames of one pet state, half-block cells of eight colour channels or the kitty transmit escapes
func (PetCellFrames) MarshalJSON ¶
func (f PetCellFrames) MarshalJSON() ([]byte, error)
func (*PetCellFrames) UnmarshalJSON ¶
func (f *PetCellFrames) UnmarshalJSON(data []byte) error
type PetCellsParams ¶
type PetCellsParams struct {
Profile *string `json:"profile,omitzero"`
State string `json:"state,omitzero"`
Cols int64 `json:"cols,omitzero"`
Graphics bool `json:"graphics,omitzero"`
// Image form the client's own terminal paints, kitty or unicode, since the gateway's environment names no client's terminal
Terminal string `json:"terminal,omitzero"`
}
type PetCellsResult ¶
type PetCellsResult struct {
Enabled bool `json:"enabled"`
Slug string `json:"slug,omitzero"`
DisplayName string `json:"displayName,omitzero"`
State string `json:"state,omitzero"`
Cols int64 `json:"cols,omitzero"`
FrameMs float64 `json:"frameMs,omitzero"`
Frames *PetCellFrames `json:"frames,omitzero"`
Scale float64 `json:"scale,omitzero"`
Graphics string `json:"graphics,omitzero"`
ImageID int64 `json:"imageId,omitzero"`
Color string `json:"color,omitzero"`
Rows int64 `json:"rows,omitzero"`
Placeholder []string `json:"placeholder,omitzero"`
}
Frames of one pet state for a cell renderer, the kitty fields set when the graphics path was taken
type PetExportResult ¶
type PetGalleryEntry ¶
type PetGalleryParams ¶
type PetGalleryResult ¶
type PetGalleryResult struct {
Enabled bool `json:"enabled"`
Active string `json:"active,omitzero"`
Pets []PetGalleryEntry `json:"pets,omitzero"`
}
type PetGenerateParams ¶
type PetGenerateProgressPayload ¶
type PetGenerateProgressPayload struct {
Token string `json:"token"`
Count int64 `json:"count"`
Index *int64 `json:"index,omitzero"`
DataURI string `json:"dataUri,omitzero"`
}
Draft generation progress, a token and count first and then one frame per finished draft
type PetGenerateResult ¶
type PetHatchParams ¶
type PetHatchParams struct {
Profile *string `json:"profile,omitzero"`
Token string `json:"token"`
Name string `json:"name"`
CancelToken string `json:"cancelToken,omitzero"`
Index *int64 `json:"index,omitzero"`
Description string `json:"description,omitzero"`
Prompt string `json:"prompt,omitzero"`
Style string `json:"style,omitzero"`
Provider string `json:"provider,omitzero"`
}
type PetHatchProgressPayload ¶
type PetHatchProgressPayload struct {
Event string `json:"event"`
Detail string `json:"detail,omitzero"`
State string `json:"state,omitzero"`
Done string `json:"done,omitzero"`
Total string `json:"total,omitzero"`
}
Hatch progress, an event with its detail or a drawn row as state, done and total
type PetHatchResult ¶
type PetHatchResult struct {
Ok bool `json:"ok"`
Slug string `json:"slug"`
DisplayName string `json:"displayName"`
Warnings []string `json:"warnings"`
Pet PetSprite `json:"pet"`
}
Hatched pet installed but not active, its sprite empty when it could not be loaded back
type PetInfoMetaResult ¶
type PetInfoMetaResult struct {
Enabled bool `json:"enabled"`
Slug string `json:"slug,omitzero"`
DisplayName string `json:"displayName,omitzero"`
Scale float64 `json:"scale,omitzero"`
SpritesheetRevision string `json:"spritesheetRevision,omitzero"`
}
Cheap metadata of the active pet, enabled false and nothing else while the display is off
type PetInfoParams ¶
type PetInfoResult ¶
type PetInfoResult struct {
Enabled bool `json:"enabled"`
PetSprite
SpritesheetUnchanged bool `json:"spritesheetUnchanged,omitzero"`
}
Active pet for sprite renderers, the spritesheet left out when the caller already holds its revision
type PetOkResult ¶
type PetOkResult struct {
Ok bool `json:"ok"`
}
type PetRenameParams ¶
type PetRenderMode ¶
type PetRenderMode string
func (PetRenderMode) Values ¶
func (PetRenderMode) Values() []string
type PetScaleParams ¶
type PetScaleParams struct {
Profile *string `json:"profile,omitzero"`
Scale string `json:"scale"`
}
Scale to persist as the user typed it, text that is no number answered 4004
type PetScaleResult ¶
type PetSlugParams ¶
type PetSlugResult ¶
type PetSprite ¶
type PetSprite struct {
Slug string `json:"slug,omitzero"`
DisplayName string `json:"displayName,omitzero"`
Mime string `json:"mime,omitzero"`
SpritesheetBase64 string `json:"spritesheetBase64,omitzero"`
SpritesheetRevision string `json:"spritesheetRevision,omitzero"`
FrameW int64 `json:"frameW,omitzero"`
FrameH int64 `json:"frameH,omitzero"`
FramesPerState int64 `json:"framesPerState,omitzero"`
FramesByState map[string]int64 `json:"framesByState,omitzero"`
FramesByRow map[string]int64 `json:"framesByRow,omitzero"`
LoopMs int64 `json:"loopMs,omitzero"`
Scale float64 `json:"scale,omitzero"`
StateRows []string `json:"stateRows,omitzero"`
}
Spritesheet and frame geometry of a pet, every field absent while the pet display is off
type PingParams ¶
type PingParams struct{}
type PingResult ¶
type PingResult struct {
Pong bool `json:"pong"`
}
type PluginActivation ¶
type PluginActivation struct {
Name string `json:"name"`
Key string `json:"key"`
ActivatedNow map[string][]string `json:"activated_now,omitzero"`
LiveNow *PluginLiveNow `json:"live_now,omitzero"`
Deferred map[string][]string `json:"deferred,omitzero"`
MissingDependencies []string `json:"missing_dependencies,omitzero"`
MissingIn []PluginRestartTarget `json:"missing_in,omitzero"`
}
What a plugin loaded mid run does now and what waits for a restart, by kind
type PluginLiveNow ¶
type PluginLiveNow struct {
MCPServers []PluginLiveServer `json:"mcp_servers,omitzero"`
Skills []PluginLiveSkill `json:"skills,omitzero"`
}
type PluginLiveServer ¶
type PluginLiveServer struct {
Name string `json:"name"`
Connected bool `json:"connected"`
Tools []string `json:"tools,omitzero"`
Error *string `json:"error,omitzero"`
}
One plugin MCP server connected at activation, its tools or the reason it did not connect
type PluginLiveSkill ¶
type PluginLiveSkill struct {
Name string `json:"name"`
Description string `json:"description,omitzero"`
}
One plugin skill usable now as plugin:skill
type PluginRestartTarget ¶
type PluginRestartTarget string
func (PluginRestartTarget) Values ¶
func (PluginRestartTarget) Values() []string
type PluginScanFinding ¶
type PluginScanFinding struct {
PatternID string `json:"pattern_id"`
Severity string `json:"severity"`
Category string `json:"category"`
File string `json:"file"`
Line int64 `json:"line"`
Description string `json:"description"`
}
One security scan finding on a plugin tree the scan blocked
type PluginServerRow ¶
type PluginServerRow struct {
Name string `json:"name"`
State PluginServerState `json:"state"`
Sentence string `json:"sentence"`
}
type PluginServerState ¶
type PluginServerState string
func (PluginServerState) Values ¶
func (PluginServerState) Values() []string
type PluginSettingField ¶
type PluginSettingField struct {
Key string `json:"key"`
Type PluginSettingFieldType `json:"type"`
Label string `json:"label"`
Description string `json:"description"`
Required bool `json:"required"`
Value any `json:"value,omitzero"`
Default any `json:"default,omitzero"`
Choices []string `json:"choices,omitzero"`
Env *string `json:"env,omitzero"`
HasValue *bool `json:"has_value,omitzero"`
}
One config_schema key of a plugin manifest, a secret carrying only its env name and whether it is set
type PluginSettingFieldType ¶
type PluginSettingFieldType string
func (PluginSettingFieldType) Values ¶
func (PluginSettingFieldType) Values() []string
type PluginToolsetRow ¶
type PluginUpdateRow ¶
type PluginUpdateRow struct {
Name string `json:"name"`
Status PluginUpdateStatus `json:"status"`
Detail string `json:"detail"`
}
One plugin an update of every plugin handled, with the refusal or failure text when it did not update
type PluginUpdateSkip ¶
One plugin an update of every plugin left alone and why
type PluginUpdateStatus ¶
type PluginUpdateStatus string
Outcome of one plugin an update of every plugin moved or tried to move
func (PluginUpdateStatus) Values ¶
func (PluginUpdateStatus) Values() []string
type PluginsAction ¶
type PluginsAction string
func (PluginsAction) Values ¶
func (PluginsAction) Values() []string
type PluginsListParams ¶
type PluginsListParams struct{}
type PluginsListResult ¶
type PluginsListResult struct {
Plugins []LegacyPluginRow `json:"plugins"`
Toolsets []PluginToolsetRow `json:"toolsets,omitzero"`
PortableMCPServers []string `json:"portable_mcp_servers,omitzero"`
}
type PluginsManageParams ¶
type PluginsManageParams struct {
Profile *string `json:"profile,omitzero"`
Action PluginsAction `json:"action,omitzero"`
Key string `json:"key,omitzero"`
Name string `json:"name,omitzero"`
Enable *bool `json:"enable,omitzero"`
Identifier string `json:"identifier,omitzero"`
Repo string `json:"repo,omitzero"`
CatalogName string `json:"catalog_name,omitzero"`
Force bool `json:"force,omitzero"`
Ref string `json:"ref,omitzero"`
InspectedSha string `json:"inspected_sha,omitzero"`
AcceptCapabilities bool `json:"accept_capabilities,omitzero"`
Values map[string]any `json:"values,omitzero"`
Names []string `json:"names,omitzero"`
}
Plugin hub action, key or name and enable for toggle, identifier, repo or catalog name for install and inspect
type PluginsManageResult ¶
type PluginsManageResult struct {
Plugins []AgentPluginRow `json:"plugins,omitzero"`
UserCount *int64 `json:"user_count,omitzero"`
BundledCount *int64 `json:"bundled_count,omitzero"`
Ok *bool `json:"ok,omitzero"`
Unchanged *bool `json:"unchanged,omitzero"`
RestartRequired *bool `json:"restart_required,omitzero"`
GatewayReloaded *bool `json:"gateway_reloaded,omitzero"`
Activation *PluginActivation `json:"activation,omitzero"`
ClearedMemoryProvider *bool `json:"cleared_memory_provider,omitzero"`
Name *string `json:"name,omitzero"`
Plugin *AgentPluginRow `json:"plugin,omitzero"`
PluginName *string `json:"plugin_name,omitzero"`
Warnings []string `json:"warnings,omitzero"`
MissingEnv []string `json:"missing_env,omitzero"`
PythonDependencies []string `json:"python_dependencies,omitzero"`
KnownIssues []string `json:"known_issues,omitzero"`
AfterInstallPath *string `json:"after_install_path,omitzero"`
Enabled *bool `json:"enabled,omitzero"`
Sha *string `json:"sha,omitzero"`
ConsentRequired *bool `json:"consent_required,omitzero"`
Delta map[string][]string `json:"delta,omitzero"`
DeltaLines []string `json:"delta_lines,omitzero"`
ScanBlocked *bool `json:"scan_blocked,omitzero"`
ScanVerdict *string `json:"scan_verdict,omitzero"`
ScanFindings []PluginScanFinding `json:"scan_findings,omitzero"`
Error *string `json:"error,omitzero"`
Written []string `json:"written,omitzero"`
Presence []CatalogPluginPresence `json:"presence,omitzero"`
Agent *bool `json:"agent,omitzero"`
AgentName *string `json:"agent_name,omitzero"`
Insecure *bool `json:"insecure,omitzero"`
Results []PluginUpdateRow `json:"results,omitzero"`
Skipped []PluginUpdateSkip `json:"skipped,omitzero"`
Current *int64 `json:"current,omitzero"`
}
Answer of a plugin hub action, the rows and counts for list, the outcome fields of the others
type ProcessEntry ¶
type ProcessEntry struct {
SessionID string `json:"session_id"`
Command string `json:"command"`
Status string `json:"status"`
Cwd *string `json:"cwd,omitzero"`
PID *int64 `json:"pid,omitzero"`
OwnerTaskID *string `json:"owner_task_id,omitzero"`
StartedAt *string `json:"started_at,omitzero"`
StartedEpoch *float64 `json:"started_epoch,omitzero"`
UptimeSeconds *int64 `json:"uptime_seconds,omitzero"`
OutputPreview *string `json:"output_preview,omitzero"`
OutputTail *string `json:"output_tail,omitzero"`
SessionScoped *bool `json:"session_scoped,omitzero"`
WatchPatterns []string `json:"watch_patterns,omitzero"`
WatchHit *bool `json:"watch_hit,omitzero"`
NotifyOnComplete *bool `json:"notify_on_complete,omitzero"`
PersistOnRelease *bool `json:"persist_on_release,omitzero"`
WSLChain *bool `json:"wsl_chain,omitzero"`
WSLNote *string `json:"wsl_note,omitzero"`
ExitCode *int64 `json:"exit_code,omitzero"`
ExitedAt *float64 `json:"exited_at,omitzero"`
CompletionReason *string `json:"completion_reason,omitzero"`
Detached *bool `json:"detached,omitzero"`
Extra map[string]any `json:"-" wire:"extra"`
}
One background process the session owns, with the tail of its output
type ProcessKillParams ¶
type ProcessKillResult ¶
type ProcessKillResult struct {
Status ProcessKillStatus `json:"status"`
SessionID *string `json:"session_id,omitzero"`
Command *string `json:"command,omitzero"`
ExitCode *int64 `json:"exit_code,omitzero"`
CompletionReason *string `json:"completion_reason,omitzero"`
TerminationSource *string `json:"termination_source,omitzero"`
Output *string `json:"output,omitzero"`
Error *string `json:"error,omitzero"`
Extra map[string]any `json:"-" wire:"extra"`
}
Kill outcome with the process's output snapshot, the registry's further facts kept open
type ProcessKillStatus ¶
type ProcessKillStatus string
Outcome of a kill, error riding on the failure statuses
func (ProcessKillStatus) Values ¶
func (ProcessKillStatus) Values() []string
type ProcessListResult ¶
type ProcessListResult struct {
Processes []ProcessEntry `json:"processes"`
}
type ProcessStopParams ¶
type ProcessStopParams struct {
SessionID *string `json:"session_id,omitzero"`
Profile *string `json:"profile,omitzero"`
}
Session whose processes a stop kills, every process of a standalone sidecar when absent
type ProcessStopResult ¶
type ProcessStopResult struct {
Killed int64 `json:"killed"`
Delegations int64 `json:"delegations,omitzero"`
}
Processes killed and background delegations interrupted
type ProfileCreateReceipt ¶
type ProfileCreateReceipt struct {
Path string `json:"path"`
DisplayPath string `json:"display_path"`
LaunchLabel string `json:"launch_label"`
SourceLabel string `json:"source_label"`
SkillsSynced *int64 `json:"skills_synced"`
SkillsOptedOut bool `json:"skills_opted_out"`
AliasPath *string `json:"alias_path"`
AliasCollision *string `json:"alias_collision"`
Mirrored map[string]MirroredValue `json:"mirrored"`
Warnings []string `json:"warnings"`
ClonedPlugins []string `json:"cloned_plugins"`
MemoryProvider *string `json:"memory_provider"`
ChannelsLeftBehind []string `json:"channels_left_behind"`
ServedNow *bool `json:"served_now"`
}
What profile create prints about a new profile, read on the machine and in the profile scope that made it
func ProfileCreateReceiptFromWire ¶
func ProfileCreateReceiptFromWire(raw any) *ProfileCreateReceipt
Receipt a gateway sent, nil unless every field is there with its type and the path is set, fields this build does not know dropped
type ProfileMirrored ¶
type ProfileMirrored struct {
Env bool `json:"env"`
Auth MirroredValue `json:"auth"`
ModelInherited bool `json:"model_inherited"`
Voice bool `json:"voice"`
}
What a create copied from the launch profile
type ProfileParams ¶
type ProfileParams struct {
Profile *string `json:"profile,omitzero"`
}
Params of a method a client may route to a named profile
type ProfileRow ¶
type ProfileRow struct {
Name string `json:"name"`
Path string `json:"path"`
IsDefault bool `json:"is_default,omitzero"`
Model *string `json:"model,omitzero"`
Provider *string `json:"provider,omitzero"`
Description string `json:"description,omitzero"`
DisplayName string `json:"display_name,omitzero"`
SkillCount int64 `json:"skill_count,omitzero"`
PreviousNames []string `json:"previous_names,omitzero"`
LastSession *ProfileSession `json:"last_session,omitzero"`
WorkerSession *ProfileWorkerSession `json:"worker_session,omitzero"`
CanonicalSession *ProfileSession `json:"canonical_session,omitzero"`
UIMetaRevisions map[string]int64 `json:"ui_meta_revisions,omitzero"`
UIMeta map[string]any `json:"ui_meta,omitzero"`
HasAvatar bool `json:"has_avatar,omitzero"`
}
One roster row, its session fields present only when sessions were asked for
type ProfileSession ¶
type ProfileSession struct {
ID string `json:"id"`
ResolvedID string `json:"resolved_id,omitzero"`
RootTitle string `json:"root_title,omitzero"`
Title string `json:"title,omitzero"`
Preview string `json:"preview,omitzero"`
StartedAt float64 `json:"started_at,omitzero"`
LastActive float64 `json:"last_active,omitzero"`
MessageCount int64 `json:"message_count,omitzero"`
LiveMessageCount *int64 `json:"live_message_count,omitzero"`
}
Newest session of a profile, with the live compression tip and root title when it is the profile's bot chat
type ProfileWorkerSession ¶
type ProfileWorkerSession struct {
ID string `json:"id"`
Source string `json:"source,omitzero"`
Title string `json:"title,omitzero"`
LastActive float64 `json:"last_active,omitzero"`
}
Newest kanban or tool worker session of a profile, so a roster shows it as working
type ProfilesCreateParams ¶
type ProfilesCreateParams struct {
Profile *string `json:"profile,omitzero"`
Name string `json:"name"`
Description *string `json:"description,omitzero"`
CloneFrom *string `json:"clone_from,omitzero"`
CloneAll *bool `json:"clone_all,omitzero"`
CloneChannels *bool `json:"clone_channels,omitzero"`
NoSkills *bool `json:"no_skills,omitzero"`
NoAlias *bool `json:"no_alias,omitzero"`
Soul *string `json:"soul,omitzero"`
Model *string `json:"model,omitzero"`
Provider *string `json:"provider,omitzero"`
MirrorCredentials *bool `json:"mirror_credentials,omitzero"`
CloneConfig *bool `json:"clone_config,omitzero"`
SyncImports *bool `json:"sync_imports,omitzero"`
Report *bool `json:"report,omitzero"`
}
Profile to create and how, a fresh profile with bundled skills unless a clone is asked for, launch keys and logins shared unless turned off
type ProfilesCreateResult ¶
type ProfilesCreateResult struct {
Ok bool `json:"ok"`
Name string `json:"name"`
Path string `json:"path"`
SoulWritten bool `json:"soul_written"`
ModelSet bool `json:"model_set"`
Mirrored ProfileMirrored `json:"mirrored"`
Warnings []string `json:"warnings"`
Receipt *ProfileCreateReceipt `json:"receipt,omitzero"`
}
Created profile with what was mirrored into it, the receipt present when the caller asked for the report
type ProfilesExportParams ¶
type ProfilesExportParams struct {
Name string `json:"name,omitzero"`
Output string `json:"output,omitzero"`
}
Profile to export, the connection's own when empty, and the absolute archive path, the export directory when empty
type ProfilesExportResult ¶
type ProfilesImportParams ¶
type ProfilesImportParams struct {
Archive string `json:"archive"`
Name string `json:"name,omitzero"`
}
Absolute path of a shared archive and the profile name that overrides the one it carries
type ProfilesImportResult ¶
type ProfilesImportResult struct {
Name string `json:"name"`
Path string `json:"path"`
Wrapper *string `json:"wrapper"`
}
Imported profile and its alias script, null when the name collides with a command or the script could not be written
type ProfilesListParams ¶
type ProfilesListResult ¶
type ProfilesListResult struct {
Profiles []ProfileRow `json:"profiles,omitzero"`
BotModeProtocol *bool `json:"bot_mode_protocol,omitzero"`
InstallID string `json:"install_id,omitzero"`
}
Profile roster with previews, the backend injecting the teammate protocol itself and the machine that answered
type ProjectRef ¶
type PromptCancelParams ¶
type PromptCancelParams struct {
SessionID string `json:"session_id"`
AdmissionID string `json:"admission_id"`
}
Admission of a session a client withdraws
type PromptReceiptParams ¶
type PromptReceiptParams struct {
SessionID string `json:"session_id"`
AdmissionID string `json:"admission_id"`
IncludeResult *bool `json:"include_result,omitzero"`
}
One admission of a session, with the committed result of a terminal one when asked
type PromptReceiptResult ¶
type PromptReceiptResult struct {
AdmissionReceipt
Result any `json:"result,omitzero"`
Usage map[string]any `json:"usage,omitzero"`
}
Receipt of an admission, a terminal one asked with include_result carrying its structured result and usage
type PromptResolveUnknownParams ¶
type PromptResolveUnknownParams struct {
SessionID string `json:"session_id"`
AdmissionID string `json:"admission_id"`
ExecutionGeneration int64 `json:"execution_generation"`
}
Admission lost across an owner restart and the generation it ran in
type PromptResponseResult ¶
type PromptResponseResult struct {
Status PromptResponseStatus `json:"status"`
PromptID string `json:"prompt_id"`
}
Outcome of an answer to a shared prompt
type PromptResponseStatus ¶
type PromptResponseStatus string
Whether an answer settled its prompt or found it settled already
func (PromptResponseStatus) Values ¶
func (PromptResponseStatus) Values() []string
type PromptSettledPayload ¶
type PromptSettledPayload struct {
PromptID string `json:"prompt_id"`
ExecutionGeneration int64 `json:"execution_generation"`
}
Shared prompt a viewer or the owner settled
type PromptSubmitParams ¶
type PromptSubmitParams struct {
SessionID string `json:"session_id"`
Profile *string `json:"profile,omitzero"`
Text string `json:"text,omitzero"`
DisplayKind *string `json:"display_kind,omitzero"`
Interrupted *bool `json:"interrupted,omitzero"`
Queued *bool `json:"queued,omitzero"`
Surface *string `json:"surface,omitzero"`
VoiceContext *string `json:"voice_context,omitzero"`
VoiceTurn *bool `json:"voice_turn,omitzero"`
TitlePreview *string `json:"title_preview,omitzero"`
TruncateBeforeUserOrdinal *int64 `json:"truncate_before_user_ordinal,omitzero"`
TruncateBeforeRowID *int64 `json:"truncate_before_row_id,omitzero"`
TruncateBeforeMessageID *string `json:"truncate_before_message_id,omitzero"`
ConfirmTruncate *bool `json:"confirm_truncate,omitzero"`
ConfirmEmptyTruncate *bool `json:"confirm_empty_truncate,omitzero"`
ConfirmDeepTruncate *bool `json:"confirm_deep_truncate,omitzero"`
RebindSurvivorRowIDs []int64 `json:"rebind_survivor_row_ids,omitzero"`
}
Prompt on the method table route, a rewind needing confirm_truncate and one truncation target
type PromptSubmitResult ¶
type PromptSubmitResult struct {
Status *PromptSubmitStatus `json:"status,omitzero"`
VoiceStopped *bool `json:"voice_stopped,omitzero"`
UserRowID *int64 `json:"user_row_id,omitzero"`
SurvivorUserRowIDs []*int64 `json:"survivor_user_row_ids,omitzero"`
SurvivorRowIDMap map[string]*int64 `json:"survivor_row_id_map,omitzero"`
AdmissionID *string `json:"admission_id,omitzero"`
Forwarded *bool `json:"forwarded,omitzero"`
}
Answer of the method table prompt.submit, status absent only when a typed stop phrase ended the voice chat
type PromptSubmitStatus ¶
type PromptSubmitStatus string
How the method table route took a prompt, streamed now or held behind the running turn
func (PromptSubmitStatus) Values ¶
func (PromptSubmitStatus) Values() []string
type ProviderAccountState ¶
type ProviderAccountState string
func (ProviderAccountState) Values ¶
func (ProviderAccountState) Values() []string
type ProviderLimit ¶
type ProviderLimit struct {
Scope ProviderLimitScope `json:"scope"`
ResetsAt *string `json:"resets_at,omitzero"`
Models map[string]string `json:"models,omitzero"`
}
Rate limit of a sign in, the whole account until resets_at or only the listed models each until its time
type ProviderLimitScope ¶
type ProviderLimitScope string
func (ProviderLimitScope) Values ¶
func (ProviderLimitScope) Values() []string
type ProviderUsage ¶
type ProviderUsage struct {
Windows []ProviderUsageWindow `json:"windows,omitzero"`
Accounts []ProviderUsageAccount `json:"accounts,omitzero"`
}
Subscription usage of a provider, one gauge for a single account or one row per pooled account
type ProviderUsageAccount ¶
type ProviderUsageAccount struct {
ID string `json:"id"`
Label string `json:"label,omitzero"`
Windows []ProviderUsageWindow `json:"windows,omitzero"`
State ProviderAccountState `json:"state"`
ResetsAt *string `json:"resets_at,omitzero"`
}
One account of a credential pool by a stable non secret id, its usage windows empty while unknown
type ProviderUsageScope ¶
type ProviderUsageScope string
func (ProviderUsageScope) Values ¶
func (ProviderUsageScope) Values() []string
type ProviderUsageWindow ¶
type ProviderUsageWindow struct {
Label string `json:"label"`
UsedPercent float64 `json:"used_percent"`
ResetsAt *string `json:"resets_at,omitzero"`
Scope ProviderUsageScope `json:"scope,omitzero"`
}
One subscription usage window, its spent percent and its ISO rollover, capping the account or one model family
type QueuedPrompt ¶
type QueuedPrompt struct {
User string `json:"user"`
}
type ReactionPayload ¶
type ReactionPayload struct {
Kind string `json:"kind"`
}
Affection the user's message showed
type ReloadEnvParams ¶
type ReloadEnvParams struct {
SessionID string `json:"session_id,omitzero"`
Profile *string `json:"profile,omitzero"`
}
Session the env reload serves, or the launch profile without one
type ReloadEnvResult ¶
type ReloadEnvResult struct {
Updated int64 `json:"updated"`
}
Count of env values the reload changed
type ReloadMCPParams ¶
type ReloadMCPParams struct {
SessionID *string `json:"session_id,omitzero"`
Confirm bool `json:"confirm,omitzero"`
Always bool `json:"always,omitzero"`
Rev *string `json:"rev,omitzero"`
}
MCP reload of the session, confirmed or asked first, always storing the opt out, rev the config revision to load
type ReloadMCPResult ¶
type ReloadMCPResult struct {
Status ReloadMCPStatus `json:"status"`
Message *string `json:"message,omitzero"`
LoadedRev *string `json:"loaded_rev,omitzero"`
Coalesced *bool `json:"coalesced,omitzero"`
Session *ReloadMCPSession `json:"session,omitzero"`
SessionServers []string `json:"session_servers,omitzero"`
}
Outcome of an MCP reload, the servers that did not connect and the servers the session's policy now runs
type ReloadMCPSession ¶
type ReloadMCPSession string
What a reload did to the calling session's MCP servers, applied, nothing to change, or deferred while a turn runs
func (ReloadMCPSession) Values ¶
func (ReloadMCPSession) Values() []string
type ReloadMCPStatus ¶
type ReloadMCPStatus string
Whether a reload ran or waits for the user to confirm it
func (ReloadMCPStatus) Values ¶
func (ReloadMCPStatus) Values() []string
type Request ¶
type Request[P, R any] struct { // contains filtered or unexported fields }
Question the gateway asks a client, its params P and the answer R
func NewRequest ¶
Declares a server to client request
type RequestCancelPayload ¶
type RequestCancelPayload struct {
ID string `json:"id"`
Method string `json:"method"`
Reason string `json:"reason"`
}
Request the gateway withdrew, its method and why
type ResumePhaseStatus ¶
type ResumePhaseStatus string
func (ResumePhaseStatus) Values ¶
func (ResumePhaseStatus) Values() []string
type RollbackCheckpoint ¶
type RollbackCheckpoint struct {
Hash string `json:"hash"`
Timestamp string `json:"timestamp"`
Message string `json:"message"`
}
One checkpoint with the reason it was taken as its message
type RollbackDiffParams ¶
type RollbackDiffParams struct {
SessionID string `json:"session_id"`
Hash string `json:"hash"`
Profile *string `json:"profile,omitzero"`
}
Checkpoint a diff compares the working tree with
type RollbackDiffResult ¶
type RollbackDiffResult struct {
Stat string `json:"stat"`
Diff string `json:"diff"`
Rendered string `json:"rendered,omitzero"`
}
Diff stat and body cut to four thousand characters, with its rendering sized to the terminal when one renders
type RollbackListParams ¶
type RollbackListParams struct {
SessionID string `json:"session_id"`
Profile *string `json:"profile,omitzero"`
UndoSince *float64 `json:"undo_since,omitzero"`
UndoMessageID *int64 `json:"undo_message_id,omitzero"`
}
Session whose working directory checkpoints are listed, with the start of an undone span and the rewound row when the files that span changed are wanted
type RollbackListResult ¶
type RollbackListResult struct {
Enabled bool `json:"enabled"`
Checkpoints []RollbackCheckpoint `json:"checkpoints"`
UndoHint *UndoRollbackHint `json:"undo_hint,omitzero"`
}
Checkpoints newest first, enabled false when checkpointing is off, and the changed files of an undone span that was asked about
type RollbackRestoreParams ¶
type RollbackRestoreParams struct {
SessionID string `json:"session_id"`
Hash string `json:"hash"`
FilePath string `json:"file_path,omitzero"`
Profile *string `json:"profile,omitzero"`
All *bool `json:"all,omitzero"`
}
Checkpoint by hash or one based number, one file or the whole tree, all also taking files the user edited
type RollbackRestoreResult ¶
type RollbackRestoreResult struct {
Success bool `json:"success"`
RestoredTo string `json:"restored_to,omitzero"`
Reason string `json:"reason,omitzero"`
Directory string `json:"directory,omitzero"`
File string `json:"file,omitzero"`
RestoredFiles []string `json:"restored_files,omitzero"`
SkippedUserEdits []string `json:"skipped_user_edits,omitzero"`
SkippedOversize []string `json:"skipped_oversize,omitzero"`
FailedDeletes []string `json:"failed_deletes,omitzero"`
HistoryRemoved *int64 `json:"history_removed,omitzero"`
Error string `json:"error,omitzero"`
Debug string `json:"debug,omitzero"`
}
Restore outcome, the files restored and skipped, and the turns a whole tree restore rewound
type RollbackSessionDiffParams ¶
type RollbackSessionDiffParams struct {
SessionID string `json:"session_id"`
Profile *string `json:"profile,omitzero"`
}
Session whose whole change since its earliest retained checkpoint is read
type RollbackSessionDiffResult ¶
type RollbackSessionDiffResult struct {
Enabled bool `json:"enabled"`
Success bool `json:"success,omitzero"`
Stat string `json:"stat,omitzero"`
Diff string `json:"diff,omitzero"`
DiffLines int64 `json:"diff_lines,omitzero"`
Empty bool `json:"empty,omitzero"`
Error string `json:"error,omitzero"`
}
Session diff as data, the body cut to one frame by whole lines while diff_lines counts all of it
type Room ¶
type Room struct {
RoomID string `json:"room_id"`
Name string `json:"name"`
Members []RoomMember `json:"members"`
AuthorityGatewayID string `json:"authority_gateway_id"`
AuthorityEpoch int64 `json:"authority_epoch"`
Revision int64 `json:"revision"`
CreatedAt float64 `json:"created_at"`
UpdatedAt float64 `json:"updated_at"`
Idempotent bool `json:"idempotent,omitzero"`
DisbandedAt *float64 `json:"disbanded_at,omitzero"`
LatestSeq *int64 `json:"latest_seq,omitzero"`
Adopted *bool `json:"adopted,omitzero"`
ClaimEvent *RoomEvent `json:"claim_event,omitzero"`
AuthorityClaim *RoomEvent `json:"authority_claim,omitzero"`
Event *RoomEvent `json:"event,omitzero"`
Replica *bool `json:"replica,omitzero"`
Home *string `json:"home,omitzero"`
}
type RoomApproval ¶
type RoomApproval struct {
Command string `json:"command,omitzero"`
Description string `json:"description,omitzero"`
Extra map[string]any `json:"-" wire:"extra"`
}
Approval a member's run waits on, the command or the description it shows
type RoomApproveChoice ¶
type RoomApproveChoice string
func (RoomApproveChoice) Values ¶
func (RoomApproveChoice) Values() []string
type RoomAttachment ¶
type RoomAttachment struct {
AttachmentID string `json:"attachment_id"`
Kind string `json:"kind"`
Name string `json:"name"`
Size int64 `json:"size"`
Mime string `json:"mime"`
Sha256 string `json:"sha256"`
State string `json:"state"`
CreatedAt float64 `json:"created_at"`
Idempotent bool `json:"idempotent"`
EventID *string `json:"event_id,omitzero"`
Extra map[string]any `json:"-" wire:"extra"`
}
type RoomAttachmentBytes ¶
type RoomAttachmentBytes struct {
AttachmentID string `json:"attachment_id"`
Kind string `json:"kind"`
Name string `json:"name"`
Size int64 `json:"size"`
Mime string `json:"mime"`
Sha256 string `json:"sha256"`
State string `json:"state"`
CreatedAt float64 `json:"created_at"`
Idempotent bool `json:"idempotent"`
EventID *string `json:"event_id,omitzero"`
DataBase64 string `json:"data_base64"`
Extra map[string]any `json:"-" wire:"extra"`
}
type RoomAttachmentItem ¶
type RoomAttachmentItem struct {
AttachmentID string `json:"attachment_id"`
Kind string `json:"kind,omitzero"`
Mime string `json:"mime,omitzero"`
Name string `json:"name,omitzero"`
Size int64 `json:"size,omitzero"`
Extra map[string]any `json:"-" wire:"extra"`
}
One file a room message carries, uploaded before the message
type RoomAuthority ¶
type RoomAuthorityPayload ¶
type RoomAuthorityPayload struct {
AuthorityGatewayID string `json:"authority_gateway_id,omitzero"`
}
Payload of an authority.claimed or authority.lost event
type RoomDriverStatus ¶
type RoomDriverStatus struct {
Running bool `json:"running"`
Working bool `json:"working"`
Blocked bool `json:"blocked"`
Counts map[string]int64 `json:"counts"`
PendingActions []RoomPendingAction `json:"pending_actions"`
MemberActivity []RoomMemberActivity `json:"member_activity,omitzero"`
LastError *string `json:"last_error,omitzero"`
MaxContinues *int64 `json:"max_continues,omitzero"`
PeerRoutes []PeerRouteStatus `json:"peer_routes"`
}
type RoomEvent ¶
type RoomEvent struct {
RoomID string `json:"room_id"`
Seq int64 `json:"seq"`
EventID string `json:"event_id"`
Kind string `json:"kind"`
Actor RoomActor `json:"actor"`
AuthorityEpoch *int64 `json:"authority_epoch,omitzero"`
Payload map[string]any `json:"payload"`
CreatedAt float64 `json:"created_at"`
Idempotent bool `json:"idempotent,omitzero"`
}
type RoomExecutionPolicy ¶
type RoomLinkCatalog ¶
type RoomLinkCatalog struct {
InstallationID string `json:"installation_id"`
ProtocolVersions []int64 `json:"protocol_versions"`
LinkModes []string `json:"link_modes"`
PersistentProcess bool `json:"persistent_process"`
Text bool `json:"text"`
Attachments bool `json:"attachments"`
ExecutionPolicy RoomExecutionPolicy `json:"execution_policy"`
CatalogDigest string `json:"catalog_digest"`
Endpoint *RoomLinkEndpoint `json:"endpoint,omitzero"`
}
type RoomLinkEndpoint ¶
type RoomLinkStatus ¶
type RoomLinkStatus struct {
Enabled bool `json:"enabled"`
Profile *string `json:"profile,omitzero"`
Catalog *RoomLinkCatalog `json:"catalog,omitzero"`
Endpoint *RoomLinkEndpoint `json:"endpoint,omitzero"`
Reason *string `json:"reason,omitzero"`
}
type RoomMember ¶
type RoomMember struct {
MemberID string `json:"member_id,omitzero"`
Profile string `json:"profile,omitzero"`
Handle string `json:"handle,omitzero"`
DisplayName string `json:"display_name,omitzero"`
Target *RoomTarget `json:"target,omitzero"`
Extra map[string]any `json:"-" wire:"extra"`
}
One seat of a room roster, older rooms keeping keys of rows written before the roster was normalised
type RoomMemberActivity ¶
type RoomMemberInput ¶
type RoomMemberInput struct {
MemberID string `json:"member_id,omitzero"`
Profile string `json:"profile,omitzero"`
Handle string `json:"handle,omitzero"`
DisplayName string `json:"display_name,omitzero"`
Target *RoomTarget `json:"target,omitzero"`
Extra map[string]any `json:"-" wire:"extra"`
}
Seat a client proposes for a new room, the gateway's roster rules deciding what it accepts
type RoomMessagePayload ¶
type RoomMessagePayload struct {
Text string `json:"text,omitzero"`
ThreadID string `json:"thread_id,omitzero"`
Attachments []RoomAttachmentItem `json:"attachments,omitzero"`
Extra map[string]any `json:"-" wire:"extra"`
}
Payload of a message.user or message.member event, its text, thread and files
type RoomPendingAction ¶
type RoomPendingAction struct {
Kind RoomPendingActionKind `json:"kind"`
MemberID string `json:"member_id"`
TaskID string `json:"task_id"`
ExecutionGeneration int64 `json:"execution_generation,omitzero"`
Reason string `json:"reason,omitzero"`
RequestID string `json:"request_id,omitzero"`
Approval *RoomApproval `json:"approval,omitzero"`
Extra map[string]any `json:"-" wire:"extra"`
}
What waits in a room, an attempt to retry or discard fenced on its generation, or a member's approval An attempt of a member on a peer gateway always shows as retry, a deferred attempt carrying the reason it waits A stalled room preparation shows as retry of the task prepare:<room id>, member_id naming the members not woken
type RoomPendingActionKind ¶
type RoomPendingActionKind string
func (RoomPendingActionKind) Values ¶
func (RoomPendingActionKind) Values() []string
type RoomQueuedError ¶
type RoomRenamedPayload ¶
type RoomRenamedPayload struct {
Name string `json:"name,omitzero"`
}
Payload of a room.renamed event
type RoomShareState ¶
type RoomShareState string
func (RoomShareState) Values ¶
func (RoomShareState) Values() []string
type RoomTarget ¶
type RoomTarget struct {
Kind string `json:"kind,omitzero"`
Peer string `json:"peer,omitzero"`
Profile string `json:"profile,omitzero"`
Extra map[string]any `json:"-" wire:"extra"`
}
Where a seat runs, a peer gateway and the profile it serves for a seat on a peer
type RoomTaskReceipt ¶
type RoomTombstone ¶
type RoomTurnPayload ¶
type RoomTurnPayload struct {
MemberID string `json:"member_id,omitzero"`
Error string `json:"error,omitzero"`
Reason string `json:"reason,omitzero"`
}
Payload of a turn event, the member it ran for, the error of a failed turn and the reason of a deferred or cancelled one
type RuntimeDescribeParams ¶
type RuntimeDescribeParams struct {
}
type RuntimeDescribeResult ¶
type RuntimeDescribeResult struct {
InstanceID string `json:"instance_id"`
ProfileID string `json:"profile_id"`
AuthorityEpoch int64 `json:"authority_epoch"`
Capabilities []string `json:"capabilities"`
SessionCreate SessionCreateDescriptor `json:"session_create"`
Skin *SkinPayloadModel `json:"skin,omitzero"`
Build string `json:"build"`
Contract int64 `json:"contract"`
}
type SecretRequestParams ¶
type SecretRequestParams struct {
SessionID string `json:"session_id"`
EnvVar string `json:"env_var"`
Prompt string `json:"prompt"`
Metadata map[string]any `json:"metadata,omitzero"`
}
Value of a named environment variable a skill or setup flow needs
type SeedMessage ¶
type SessionAccountUsage ¶
type SessionAccountUsage struct {
Lines []string `json:"lines"`
}
Account limit lines of the provider a session runs on, empty when the provider reports none
type SessionAccountUsageParams ¶
type SessionAccountUsageParams struct {
SessionID string `json:"session_id"`
}
Session whose provider account limits are read
type SessionActivateParams ¶
type SessionActivateResult ¶
type SessionActivateResult = SessionResumeResult
type SessionActiveItem ¶
type SessionActiveItem struct {
Current bool `json:"current"`
ID string `json:"id"`
LastActive float64 `json:"last_active"`
MessageCount int64 `json:"message_count"`
Model string `json:"model"`
Preview string `json:"preview"`
SessionKey string `json:"session_key"`
Source *string `json:"source,omitzero"`
StartedAt float64 `json:"started_at"`
Status LiveSessionStatus `json:"status"`
Title string `json:"title"`
}
type SessionActiveListParams ¶
type SessionActiveListResult ¶
type SessionActiveListResult struct {
Sessions []SessionActiveItem `json:"sessions"`
}
type SessionAutomationParams ¶
type SessionAutomationParamsKind ¶
type SessionAutomationParamsKind string
func (SessionAutomationParamsKind) Values ¶
func (SessionAutomationParamsKind) Values() []string
type SessionAutomationResult ¶
type SessionBranchParams ¶
type SessionBranchResult ¶
type SessionBranchResult struct {
SessionID string `json:"session_id"`
StoredSessionID string `json:"stored_session_id"`
Title string `json:"title"`
Parent string `json:"parent"`
MessageCount int64 `json:"message_count"`
Messages []TranscriptMessage `json:"messages"`
Info SessionInfo `json:"info"`
}
type SessionCloseParams ¶
type SessionCloseResult ¶
type SessionCompressParams ¶
type SessionCompressResult ¶
type SessionCompressResult struct {
Status *string `json:"status,omitzero"`
Removed *int64 `json:"removed,omitzero"`
BeforeMessages *int64 `json:"before_messages,omitzero"`
AfterMessages *int64 `json:"after_messages,omitzero"`
BeforeTokens *int64 `json:"before_tokens,omitzero"`
AfterTokens *int64 `json:"after_tokens,omitzero"`
Summary *CompressionSummary `json:"summary,omitzero"`
Usage *Usage `json:"usage,omitzero"`
Info *SessionInfo `json:"info,omitzero"`
Messages []TranscriptMessage `json:"messages,omitzero"`
Compressed *bool `json:"compressed,omitzero"`
LockHeld *bool `json:"lock_held,omitzero"`
Message *string `json:"message,omitzero"`
}
type SessionContextBreakdownResult ¶
type SessionContextBreakdownResult struct {
Categories []ContextCategory `json:"categories"`
ContextMax int64 `json:"context_max"`
ContextPercent int64 `json:"context_percent"`
ContextUsed int64 `json:"context_used"`
EstimatedTotal int64 `json:"estimated_total"`
ContextEstimated bool `json:"context_estimated"`
ContextSource string `json:"context_source"`
Model string `json:"model"`
ContextFiles []ContextFileSource `json:"context_files,omitzero"`
}
type SessionControlReadResult ¶
type SessionControlReadResult struct {
Control SessionControlSnapshot `json:"control"`
}
type SessionControlSnapshot ¶
type SessionControlSnapshot struct {
Goal *GoalSnapshot `json:"goal"`
Loop *LoopSnapshot `json:"loop"`
Heartbeat *HeartbeatSnapshot `json:"heartbeat"`
Revision string `json:"revision"`
UpdatedAt float64 `json:"updated_at"`
}
type SessionControlUpdatePayload ¶
type SessionControlUpdatePayload struct {
Control SessionControlSnapshot `json:"control"`
}
type SessionCorrectionParams ¶
type SessionCorrectionParams struct {
SessionID string `json:"session_id"`
Profile *string `json:"profile,omitzero"`
Text string `json:"text"`
}
Correction text for the running turn on the method table route
type SessionCorrectionResult ¶
type SessionCorrectionResult struct {
Status CorrectionStatus `json:"status"`
Text string `json:"text"`
}
Verdict of a method table correction with the text it was given
type SessionCreateDescriptor ¶
type SessionCreateParams ¶
type SessionCreateParams struct {
Profile *string `json:"profile,omitzero"`
Cols *int64 `json:"cols,omitzero"`
Source *string `json:"source,omitzero"`
Cwd *string `json:"cwd,omitzero"`
CwdExplicit *bool `json:"cwd_explicit,omitzero"`
Messages []SeedMessage `json:"messages,omitzero"`
ParentSessionID *string `json:"parent_session_id,omitzero"`
Title *string `json:"title,omitzero"`
Model *string `json:"model,omitzero"`
Provider *string `json:"provider,omitzero"`
ReasoningEffort *string `json:"reasoning_effort,omitzero"`
Fast *bool `json:"fast,omitzero"`
ServiceTier *string `json:"service_tier,omitzero"`
CloseOnDisconnect bool `json:"close_on_disconnect,omitzero"`
Hidden bool `json:"hidden,omitzero"`
RoomPlumbing bool `json:"room_plumbing,omitzero"`
FollowProfileConfig bool `json:"follow_profile_config,omitzero"`
IdempotencyKey *string `json:"idempotency_key,omitzero"`
}
type SessionCreateResult ¶
type SessionCreateResult struct {
SessionID string `json:"session_id"`
StoredSessionID string `json:"stored_session_id"`
MessageCount int64 `json:"message_count"`
Messages []TranscriptMessage `json:"messages"`
Info SessionInfo `json:"info"`
}
type SessionDeleteParams ¶
type SessionDeleteResult ¶
type SessionDeleteResult struct {
Deleted string `json:"deleted"`
}
type SessionDetachParams ¶
type SessionDetachResult ¶
type SessionExportParams ¶
type SessionExportResult ¶
type SessionHistoryParams ¶
type SessionHistoryResult ¶
type SessionHistoryResult struct {
Count int64 `json:"count"`
Messages []TranscriptMessage `json:"messages"`
}
type SessionIDParams ¶
type SessionIDParams struct {
SessionID string `json:"session_id"`
Profile *string `json:"profile,omitzero"`
}
Params of a method addressed at one live session
type SessionInfo ¶
type SessionInfo struct {
Model *string `json:"model,omitzero"`
Provider *string `json:"provider,omitzero"`
ReasoningEffort *string `json:"reasoning_effort,omitzero"`
ReasoningEffortWire *string `json:"reasoning_effort_wire,omitzero"`
ServiceTier *string `json:"service_tier,omitzero"`
Fast *bool `json:"fast,omitzero"`
Yolo *bool `json:"yolo,omitzero"`
ApprovalMode *string `json:"approval_mode,omitzero"`
Tools map[string][]string `json:"tools,omitzero"`
Skills map[string][]string `json:"skills,omitzero"`
Cwd *string `json:"cwd,omitzero"`
Branch *string `json:"branch,omitzero"`
Project *ProjectRef `json:"project,omitzero"`
TerminalBackend *string `json:"terminal_backend,omitzero"`
Personality *string `json:"personality,omitzero"`
Running *bool `json:"running,omitzero"`
TurnStartedAt *float64 `json:"turn_started_at,omitzero"`
Title *string `json:"title,omitzero"`
StoredSessionID *string `json:"stored_session_id,omitzero"`
Version *string `json:"version,omitzero"`
ReleaseDate *string `json:"release_date,omitzero"`
UpdateBehind any `json:"update_behind,omitzero"`
UpdateCommand *string `json:"update_command,omitzero"`
Usage *Usage `json:"usage,omitzero"`
ProfileName *string `json:"profile_name,omitzero"`
ProfileID *string `json:"profile_id,omitzero"`
RedactSecrets *bool `json:"redact_secrets,omitzero"`
MCPServers []McpServerStatus `json:"mcp_servers,omitzero"`
SystemPrompt *string `json:"system_prompt,omitzero"`
CredentialWarning *string `json:"credential_warning,omitzero"`
CredentialHint *string `json:"credential_hint,omitzero"`
ConfigWarning *string `json:"config_warning,omitzero"`
Lazy *bool `json:"lazy,omitzero"`
Source *string `json:"source,omitzero"`
GatewayProtocol *string `json:"gateway_protocol,omitzero"`
EditApprovalPolicy *EditApprovalPolicy `json:"edit_approval_policy,omitzero"`
LaunchRequest map[string]any `json:"launch_request,omitzero"`
StartedAt *float64 `json:"started_at,omitzero"`
LastActiveAt *float64 `json:"last_active_at,omitzero"`
APIMode *string `json:"api_mode,omitzero"`
ToolCount *int64 `json:"tool_count,omitzero"`
ContextLength *int64 `json:"context_length,omitzero"`
EnabledToolsets []string `json:"enabled_toolsets,omitzero"`
ToolAvailability map[string]any `json:"tool_availability,omitzero"`
ToolAvailabilityWarnings []string `json:"tool_availability_warnings,omitzero"`
UnknownToolsets []string `json:"unknown_toolsets,omitzero"`
ProjectSkillsLoaded *int64 `json:"project_skills_loaded,omitzero"`
ProjectSkillsUntrusted *UntrustedProjectSkills `json:"project_skills_untrusted,omitzero"`
AuthorityEpoch *int64 `json:"authority_epoch,omitzero"`
Revision *int64 `json:"revision,omitzero"`
ExecutionGeneration *int64 `json:"execution_generation,omitzero"`
Pending []CanonicalPendingAdmission `json:"pending,omitzero"`
PendingSubmissions []PendingSubmission `json:"pending_submissions,omitzero"`
}
Settings, inventory and live state of a session, every field optional so a sender fills what it knows and a patch carries what changed
type SessionInterruptParams ¶
type SessionInterruptParams struct {
SessionID string `json:"session_id"`
Profile *string `json:"profile,omitzero"`
ExpectedHostedTaskID *string `json:"expected_hosted_task_id,omitzero"`
}
Session whose running turn stops, optionally only while a given hosted task runs it
type SessionInterruptResult ¶
type SessionInterruptResult struct {
Status InterruptStatus `json:"status"`
Interrupted *bool `json:"interrupted,omitzero"`
}
Outcome of a method table interrupt
type SessionListParams ¶
type SessionListResult ¶
type SessionListResult struct {
Sessions []SessionListRow `json:"sessions"`
}
type SessionListRow ¶
type SessionListRow struct {
ID string `json:"id"`
ResolvedID *string `json:"resolved_id,omitzero"`
Title string `json:"title,omitzero"`
Preview string `json:"preview,omitzero"`
StartedAt float64 `json:"started_at,omitzero"`
MessageCount int64 `json:"message_count,omitzero"`
LiveMessageCount *int64 `json:"live_message_count,omitzero"`
Source string `json:"source,omitzero"`
}
type SessionMostRecentParams ¶
type SessionMostRecentParams struct {
Profile *string `json:"profile,omitzero"`
}
type SessionMostRecentResult ¶
type SessionMutateParams ¶
type SessionMutateResult ¶
type SessionMutateResult struct {
SessionID string `json:"session_id,omitzero"`
Operation string `json:"operation"`
Revision *int64 `json:"revision,omitzero"`
ExecutionGeneration *int64 `json:"execution_generation,omitzero"`
Status *string `json:"status,omitzero"`
Title *string `json:"title,omitzero"`
Archived *bool `json:"archived,omitzero"`
BranchedSessionID *string `json:"branched_session_id,omitzero"`
Model *string `json:"model,omitzero"`
Provider *string `json:"provider,omitzero"`
Effort *string `json:"effort,omitzero"`
Note *string `json:"note,omitzero"`
Confirm *string `json:"confirm,omitzero"`
ConfirmMessage *string `json:"confirm_message,omitzero"`
TargetModel *string `json:"target_model,omitzero"`
Reason *string `json:"reason,omitzero"`
Payload *ModelPick `json:"payload,omitzero"`
CommittedModel *string `json:"committed_model,omitzero"`
CommittedProvider *string `json:"committed_provider,omitzero"`
RewoundCount *int64 `json:"rewound_count,omitzero"`
TargetMessage *TranscriptMessage `json:"target_message,omitzero"`
Summary *CompressionSummary `json:"summary,omitzero"`
Lines []string `json:"lines,omitzero"`
Extra map[string]any `json:"-" wire:"extra"`
}
type SessionOwner ¶
type SessionOwner struct {
Type SessionOwnerType `json:"type"`
SessionID string `json:"session_id"`
}
Session that owns a connection operation
type SessionOwnerType ¶
type SessionOwnerType string
Kind of owner a connection verb names
func (SessionOwnerType) Values ¶
func (SessionOwnerType) Values() []string
type SessionPruneParams ¶
type SessionPruneResult ¶
type SessionReclaimedPayload ¶
type SessionReplayGapPayload ¶
type SessionReplayGapPayload struct {
ReplayEpoch string `json:"replay_epoch"`
LatestSeq int64 `json:"latest_seq"`
}
Replay buffer of a session overflowed, the client resumes to catch up
type SessionResumeParams ¶
type SessionResumeParams struct {
SessionID string `json:"session_id"`
Profile *string `json:"profile,omitzero"`
Cols *int64 `json:"cols,omitzero"`
Source *string `json:"source,omitzero"`
Lazy bool `json:"lazy,omitzero"`
DeferHistory bool `json:"defer_history,omitzero"`
OmitMessages bool `json:"omit_messages,omitzero"`
EagerBuild bool `json:"eager_build,omitzero"`
CloseOnDisconnect bool `json:"close_on_disconnect,omitzero"`
InlineImages *bool `json:"inline_images,omitzero"`
}
type SessionResumeProgressPayload ¶
type SessionResumeProgressPayload struct {
Phase string `json:"phase"`
Status ResumePhaseStatus `json:"status"`
MessageCount *int64 `json:"message_count,omitzero"`
Message *string `json:"message,omitzero"`
}
type SessionResumeResult ¶
type SessionResumeResult struct {
SessionID string `json:"session_id"`
MessageCount int64 `json:"message_count"`
Messages []TranscriptMessage `json:"messages"`
Info SessionInfo `json:"info"`
StoredSessionID *string `json:"stored_session_id,omitzero"`
Resumed *string `json:"resumed,omitzero"`
SessionKey *string `json:"session_key,omitzero"`
MessagesOmitted *bool `json:"messages_omitted,omitzero"`
Hydrating *bool `json:"hydrating,omitzero"`
Running *bool `json:"running,omitzero"`
TurnStartedAt *float64 `json:"turn_started_at,omitzero"`
StartedAt *float64 `json:"started_at,omitzero"`
Status *string `json:"status,omitzero"`
Inflight *InflightTurn `json:"inflight,omitzero"`
Queued *QueuedPrompt `json:"queued,omitzero"`
PendingApproval *PendingApproval `json:"pending_approval,omitzero"`
OpenRequests []OpenRequestEntry `json:"open_requests,omitzero"`
PendingConnection *ConnectionRequestPayload `json:"pending_connection,omitzero"`
TodoState *TodoState `json:"todo_state,omitzero"`
AutoContinue *AutoContinue `json:"auto_continue,omitzero"`
}
type SessionSaveParams ¶
type SessionSaveResult ¶
type SessionSaveResult struct {
File *string `json:"file,omitzero"`
}
type SessionScopedParams ¶
type SessionScopedParams struct {
SessionID *string `json:"session_id,omitzero"`
}
Session a request or method is scoped to, the launch profile's config when absent or unknown
type SessionStats ¶
type SessionStats struct {
InputTokens int64 `json:"input_tokens"`
OutputTokens int64 `json:"output_tokens"`
CacheReadTokens int64 `json:"cache_read_tokens"`
CacheWriteTokens int64 `json:"cache_write_tokens"`
PromptTokens int64 `json:"prompt_tokens"`
CompletionTokens int64 `json:"completion_tokens"`
TotalTokens int64 `json:"total_tokens"`
ReasoningTokens int64 `json:"reasoning_tokens"`
APICalls int64 `json:"api_calls"`
LastPromptTokens int64 `json:"last_prompt_tokens"`
ContextTokens int64 `json:"context_tokens"`
ContextLength *int64 `json:"context_length,omitzero"`
ConfigContextLength *int64 `json:"config_context_length,omitzero"`
ContextSource *string `json:"context_source,omitzero"`
CompressionCount int64 `json:"compression_count"`
AvgLatencyS *float64 `json:"avg_latency_s,omitzero"`
TokensPerS *float64 `json:"tokens_per_s,omitzero"`
LastTurnTokens int64 `json:"last_turn_tokens"`
RateLimit map[string]any `json:"rate_limit,omitzero"`
ActiveSubagents int64 `json:"active_subagents"`
Model string `json:"model"`
Provider string `json:"provider"`
FallbackModel *string `json:"fallback_model,omitzero"`
}
type SessionStatsParams ¶
type SessionStatsParams struct {
SessionID string `json:"session_id"`
}
type SessionStatusParams ¶
type SessionStatusResult ¶
type SessionStatusResult struct {
Output string `json:"output"`
}
type SessionTitleParams ¶
type SessionTitlePayload ¶
type SessionTitleResult ¶
type SessionUndoParams ¶
type SessionUndoParams struct {
SessionID string `json:"session_id"`
Profile *string `json:"profile,omitzero"`
Intent UndoIntent `json:"intent,omitzero"`
}
type SessionUndoResult ¶
type SessionUndoResult struct {
Removed int64 `json:"removed"`
UndoHint *UndoRollbackHint `json:"undo_hint,omitzero"`
}
type SessionUsageParams ¶
type SessionUsagePayload ¶
type SessionUsagePayload struct {
Usage *Usage `json:"usage,omitzero"`
InputTokens *int64 `json:"input_tokens,omitzero"`
OutputTokens *int64 `json:"output_tokens,omitzero"`
CacheReadTokens *int64 `json:"cache_read_tokens,omitzero"`
CacheWriteTokens *int64 `json:"cache_write_tokens,omitzero"`
PromptTokens *int64 `json:"prompt_tokens,omitzero"`
CompletionTokens *int64 `json:"completion_tokens,omitzero"`
TotalTokens *int64 `json:"total_tokens,omitzero"`
ReasoningTokens *int64 `json:"reasoning_tokens,omitzero"`
APICalls *int64 `json:"api_calls,omitzero"`
LastPromptTokens *int64 `json:"last_prompt_tokens,omitzero"`
ContextTokens *int64 `json:"context_tokens,omitzero"`
ContextLength *int64 `json:"context_length,omitzero"`
ConfigContextLength *int64 `json:"config_context_length,omitzero"`
ContextSource *string `json:"context_source,omitzero"`
CompressionCount *int64 `json:"compression_count,omitzero"`
AvgLatencyS *float64 `json:"avg_latency_s,omitzero"`
TokensPerS *float64 `json:"tokens_per_s,omitzero"`
LastTurnTokens *int64 `json:"last_turn_tokens,omitzero"`
RateLimit map[string]any `json:"rate_limit,omitzero"`
ActiveSubagents *int64 `json:"active_subagents,omitzero"`
Model *string `json:"model,omitzero"`
Provider *string `json:"provider,omitzero"`
FallbackModel *string `json:"fallback_model,omitzero"`
}
type SetupAction ¶
type SetupAction string
func (SetupAction) Values ¶
func (SetupAction) Values() []string
type SetupActionPollParams ¶
type SetupActionPollResult ¶
type SetupActionPollResult struct {
Lines []string `json:"lines"`
Live string `json:"live"`
Done bool `json:"done"`
Ok bool `json:"ok"`
}
Output past after, the line redrawn in place, and the outcome once done
type SetupActionStartParams ¶
type SetupActionStartParams struct {
Action SetupAction `json:"action"`
Params map[string]string `json:"params,omitzero"`
}
type SetupActionStartResult ¶
type SetupActionStartResult struct {
Job string `json:"job"`
}
type SetupDockerRuntime ¶
Container runtime found on the gateway host, the terminal.docker value
type SetupFlowAnswer ¶
type SetupFlowAnswer struct {
Question int64 `json:"question"`
Index *int64 `json:"index,omitzero"`
Indices []int64 `json:"indices,omitzero"`
Text string `json:"text,omitzero"`
Cancel bool `json:"cancel,omitzero"`
}
Answer to the open question, index of a choice, indices of a multi choice, text of a prompt or cancel
type SetupFlowItem ¶
type SetupFlowOption ¶
type SetupFlowQuestion ¶
type SetupFlowQuestion struct {
ID int64 `json:"id"`
Kind SetupFlowQuestionKind `json:"kind"`
Question string `json:"question"`
Options []SetupFlowOption `json:"options,omitzero"`
Default int64 `json:"default,omitzero"`
Items []SetupFlowItem `json:"items,omitzero"`
Selected []int64 `json:"selected,omitzero"`
Tokens map[string]int64 `json:"tokens,omitzero"`
DefaultText string `json:"default_text,omitzero"`
Secret bool `json:"secret,omitzero"`
}
Open question of a setup flow, a choice with its default row, a checklist with its weights or a text prompt
type SetupFlowQuestionKind ¶
type SetupFlowQuestionKind string
func (SetupFlowQuestionKind) Values ¶
func (SetupFlowQuestionKind) Values() []string
type SetupFlowStartParams ¶
type SetupFlowStartResult ¶
type SetupFlowStartResult struct {
Session string `json:"session"`
}
type SetupFlowStepParams ¶
type SetupFlowStepParams struct {
Session string `json:"session"`
Answer *SetupFlowAnswer `json:"answer,omitzero"`
}
type SetupFlowStepResult ¶
type SetupFlowStepResult struct {
Lines []string `json:"lines"`
Question *SetupFlowQuestion `json:"question"`
Done bool `json:"done"`
Ok bool `json:"ok"`
Error string `json:"error"`
}
type SetupHostedAnswerParams ¶
type SetupHostedAnswerParams struct {
Job string `json:"job"`
Question int64 `json:"question"`
Cancelled bool `json:"cancelled,omitzero"`
Index int64 `json:"index,omitzero"`
Picked []int64 `json:"picked,omitzero"`
Text string `json:"text,omitzero"`
Ran bool `json:"ran,omitzero"`
Error string `json:"error,omitzero"`
}
Answer to a hosted question, backed out of, a choice index, checklist rows, a typed line or a command outcome
type SetupHostedAnswerResult ¶
type SetupHostedAnswerResult struct{}
type SetupHostedCancelParams ¶
type SetupHostedCancelParams struct {
Job string `json:"job"`
}
type SetupHostedCancelResult ¶
type SetupHostedCancelResult struct{}
type SetupHostedFlow ¶
type SetupHostedFlow string
func (SetupHostedFlow) Values ¶
func (SetupHostedFlow) Values() []string
type SetupHostedHeading ¶
type SetupHostedPollParams ¶
type SetupHostedPollResult ¶
type SetupHostedPollResult struct {
Lines []string `json:"lines"`
Question *SetupHostedQuestion `json:"question"`
Done bool `json:"done"`
Ok bool `json:"ok"`
Model string `json:"model"`
Provider string `json:"provider"`
Changed bool `json:"changed"`
Progress string `json:"progress"`
}
Output past after, the waiting question, the redrawn progress line, and once done the model config.yaml holds
type SetupHostedQuestion ¶
type SetupHostedQuestion struct {
ID int64 `json:"id"`
Kind SetupHostedQuestionKind `json:"kind"`
Title string `json:"title"`
Description string `json:"description"`
Rows []string `json:"rows"`
Headings []SetupHostedHeading `json:"headings"`
Default int64 `json:"default"`
Picked []int64 `json:"picked"`
Argv []string `json:"argv"`
}
Question of a hosted section, a choice from default, a checklist from picked, a typed line or a terminal command
type SetupHostedQuestionKind ¶
type SetupHostedQuestionKind string
func (SetupHostedQuestionKind) Values ¶
func (SetupHostedQuestionKind) Values() []string
type SetupHostedStartParams ¶
type SetupHostedStartParams struct {
Flow SetupHostedFlow `json:"flow"`
Entry string `json:"entry,omitzero"`
}
type SetupHostedStartResult ¶
type SetupHostedStartResult struct {
Job string `json:"job"`
}
type SetupLinkedBackends ¶
type SetupLinkedBackends []string
Built in terminal backends the running build links, local included, the terminal.builtin_backends value
type SetupRuntimeCheckParams ¶
type SetupRuntimeCheckParams struct {
Provider *string `json:"provider,omitzero"`
Profile *string `json:"profile,omitzero"`
}
Provider a runtime check resolves alone, or none for the route a new session would take, in the launch or a named profile
type SetupRuntimeCheckResult ¶
type SetupRuntimeCheckResult struct {
OK bool `json:"ok"`
Provider *string `json:"provider,omitzero"`
Model *string `json:"model,omitzero"`
Source *string `json:"source,omitzero"`
Error *string `json:"error,omitzero"`
ErrorCode *string `json:"error_code,omitzero"`
Profile *string `json:"profile,omitzero"`
}
Whether the resolved route can serve a session, with its provider, model and credential source, or the error and its code
type SetupSSHDefaults ¶
Login name and default key file on the gateway host, the terminal.ssh_defaults value
type SetupSectionLoadParams ¶
type SetupSectionLoadParams struct {
ConfigKeys []string `json:"config_keys,omitzero"`
EnvKeys []string `json:"env_keys,omitzero"`
SecretConfigKeys []string `json:"secret_config_keys,omitzero"`
SecretEnvKeys []string `json:"secret_env_keys,omitzero"`
Facts []string `json:"facts,omitzero"`
Values []string `json:"values,omitzero"`
}
Keys, secret keys, facts and named gateway values a setup section starts from
type SetupSectionLoadResult ¶
type SetupSectionLoadResult struct {
Config map[string]any `json:"config"`
Env map[string]string `json:"env"`
Secrets []string `json:"secrets"`
Facts map[string]bool `json:"facts"`
Values map[string]json.RawMessage `json:"values"`
}
Held config and env values, the secret keys holding a value, each fact and each named value by the name asked
type SetupSectionRemoval ¶
type SetupSectionRemoval struct {
Target SetupTarget `json:"target"`
Key string `json:"key"`
}
type SetupSectionSaveParams ¶
type SetupSectionSaveParams struct {
Writes []SetupSectionWrite `json:"writes,omitzero"`
Removals []SetupSectionRemoval `json:"removals,omitzero"`
FullSave bool `json:"full_save,omitzero"`
}
type SetupSectionSaveResult ¶
type SetupSectionSaveResult struct {
Config map[string]any `json:"config"`
Env []string `json:"env"`
Removed []string `json:"removed"`
}
What config.yaml holds for each written key, the env keys saved and the keys of either file removed
type SetupSectionWrite ¶
type SetupSectionWrite struct {
Target SetupTarget `json:"target"`
Key string `json:"key"`
Kind SetupWriteKind `json:"kind"`
Value any `json:"value"`
}
One answer for a dotted config key or an env key, value a flag, whole number, decimal or text as kind names
type SetupStatusResult ¶
type SetupStatusResult struct {
ProviderConfigured *bool `json:"provider_configured,omitzero"`
Profile *string `json:"profile,omitzero"`
OK *bool `json:"ok,omitzero"`
Error *string `json:"error,omitzero"`
}
Whether any provider is configured, for the launch profile or the one named
type SetupTarget ¶
type SetupTarget string
func (SetupTarget) Values ¶
func (SetupTarget) Values() []string
type SetupTerminalBackend ¶
type SetupTerminalBackend struct {
Name string `json:"name"`
DisplayName string `json:"display_name"`
Description string `json:"description"`
}
Terminal backend a plugin registers, listed by the terminal.plugin_backends value
type SetupVercelLink ¶
type SetupVercelLink struct {
ProjectID string `json:"projectId,omitzero"`
OrgID string `json:"orgId,omitzero"`
}
Project and team ids of the nearest linked Vercel project, the terminal.vercel_linked value
type SetupWriteKind ¶
type SetupWriteKind string
func (SetupWriteKind) Values ¶
func (SetupWriteKind) Values() []string
type ShellExecParams ¶
type ShellExecParams struct {
SessionID string `json:"session_id,omitzero"`
Command string `json:"command"`
Profile *string `json:"profile,omitzero"`
}
Shell line of the composer's !cmd and {!cmd}, run in the session's working directory when it names one
type ShellExecResult ¶
type ShellExecResult struct {
Stdout string `json:"stdout"`
Stderr string `json:"stderr"`
Code int64 `json:"code"`
}
Redacted tails of what a shell line wrote and its exit code
type SideAgentCompletePayload ¶
type SideAgentCompletePayload struct {
TaskID string `json:"task_id"`
Text string `json:"text"`
Question *string `json:"question,omitzero"`
}
Answer of a side agent, a side question naming the question it answered
type SideAgentParams ¶
type SideAgentParams struct {
SessionID string `json:"session_id"`
Profile *string `json:"profile,omitzero"`
Text string `json:"text"`
}
Task of a side agent on a session
type SkillBrowseItem ¶
type SkillBrowseItem struct {
Name string `json:"name"`
Description string `json:"description"`
Source string `json:"source"`
Trust string `json:"trust"`
Identifier string `json:"identifier"`
}
One skill of a hub browse page with its source and trust level
type SkillCatalogEntry ¶
How often a skill ran and where it came from
type SkillCommandRef ¶
type SkillHubHit ¶
type SkillInspectInfo ¶
type SkillInspectInfo struct {
Name string `json:"name,omitzero"`
Description string `json:"description,omitzero"`
Source string `json:"source,omitzero"`
Identifier string `json:"identifier,omitzero"`
Tags []string `json:"tags,omitzero"`
SkillMdPreview *string `json:"skill_md_preview,omitzero"`
Category string `json:"category,omitzero"`
Path string `json:"path,omitzero"`
}
What a skill does, from the hub and the profile's own install, empty when it resolves nowhere
type SkillsAction ¶
type SkillsAction string
func (SkillsAction) Values ¶
func (SkillsAction) Values() []string
type SkillsManageParams ¶
type SkillsManageParams struct {
Profile *string `json:"profile,omitzero"`
Action SkillsAction `json:"action,omitzero"`
Query string `json:"query,omitzero"`
Page int64 `json:"page,omitzero"`
PageSize int64 `json:"page_size,omitzero"`
}
Hub action, query the search text or hub identifier, page and page size for browse
type SkillsManageResult ¶
type SkillsManageResult struct {
Skills map[string][]string `json:"skills,omitzero"`
Results []SkillHubHit `json:"results,omitzero"`
Installed bool `json:"installed,omitzero"`
Name string `json:"name,omitzero"`
Items []SkillBrowseItem `json:"items,omitzero"`
Page int64 `json:"page,omitzero"`
TotalPages int64 `json:"total_pages,omitzero"`
Total int64 `json:"total,omitzero"`
Info *SkillInspectInfo `json:"info,omitzero"`
}
Answer of a hub action, skills for list, results for search, installed and name, a browse page, info for inspect
type SkillsReloadDiff ¶
type SkillsReloadDiff struct {
Added []SkillCommandRef `json:"added"`
Removed []SkillCommandRef `json:"removed"`
Unchanged []string `json:"unchanged"`
Total int64 `json:"total"`
Commands int64 `json:"commands"`
}
Skill commands a rescan added and removed, the unchanged names and the totals
type SkillsReloadParams ¶
type SkillsReloadParams struct {
SessionID string `json:"session_id,omitzero"`
Profile *string `json:"profile,omitzero"`
}
Session whose profile and workspace the rescan binds to, or a profile for a session less rescan
type SkillsReloadResult ¶
type SkillsReloadResult struct {
Output string `json:"output"`
Result SkillsReloadDiff `json:"result"`
}
Rescan answer, output the text the reload command prints
type SkinPayloadModel ¶
type SkinPayloadModel struct {
Name string `json:"name,omitzero"`
// builtin for a skin icebath ships unmodified, user for one read from the home skins folder
Source string `json:"source,omitzero"`
Description string `json:"description,omitzero"`
Colors map[string]string `json:"colors,omitzero"`
LightColors map[string]string `json:"light_colors,omitzero"`
DarkColors map[string]string `json:"dark_colors,omitzero"`
Branding map[string]string `json:"branding,omitzero"`
BannerLogo string `json:"banner_logo,omitzero"`
BannerHero string `json:"banner_hero,omitzero"`
ToolPrefix string `json:"tool_prefix,omitzero"`
HelpHeader string `json:"help_header,omitzero"`
}
type SlashExecParams ¶
type SlashExecParams struct {
SessionID string `json:"session_id"`
Command string `json:"command"`
Profile *string `json:"profile,omitzero"`
}
Slash line of a session without its leading slash
type SlashExecResult ¶
type SlashExecResult struct {
Output string `json:"output,omitzero"`
Type DispatchType `json:"type,omitzero"`
Target string `json:"target,omitzero"`
Message string `json:"message,omitzero"`
Notice string `json:"notice,omitzero"`
Display string `json:"display,omitzero"`
Name string `json:"name,omitzero"`
}
Live or plugin text, or the directive of a command rerouted to command.dispatch with its type set
func (SlashExecResult) Directive ¶
func (r SlashExecResult) Directive() (CommandDispatchResult, bool)
Directive of a slash answer, false when it carries plain output
type SnapshotArgsParams ¶
type SnapshotArgsParams struct {
Args []string `json:"args,omitzero"`
}
Words after the /snapshot subcommand
type SnapshotLines ¶
type SnapshotLines struct {
Lines []string `json:"lines"`
}
Lines in the profile's language, shown as they come
type SnapshotListParams ¶
type SnapshotListParams struct{}
type SnapshotTargetResult ¶
Snapshot a restore names by id or list number, null with lines when none is named or the number is off
type SpawnTreeEntry ¶
type SpawnTreeListParams ¶
type SpawnTreeListResult ¶
type SpawnTreeListResult struct {
Entries []SpawnTreeEntry `json:"entries"`
}
type SpawnTreeLoadParams ¶
type SpawnTreeLoadResult ¶
type SpawnTreeLoadResult struct {
SessionID *string `json:"session_id,omitzero"`
StartedAt *float64 `json:"started_at,omitzero"`
FinishedAt *float64 `json:"finished_at,omitzero"`
Label *string `json:"label,omitzero"`
Subagents []SpawnTreeSubagent `json:"subagents,omitzero"`
}
type SpawnTreeOutput ¶
type SpawnTreeOutput struct {
IsError bool `json:"isError"`
Preview string `json:"preview"`
Tool string `json:"tool"`
}
One tool result of a saved subagent's output tail
type SpawnTreeSaveParams ¶
type SpawnTreeSaveParams struct {
Profile *string `json:"profile,omitzero"`
Subagents []SpawnTreeSubagent `json:"subagents"`
SessionID *string `json:"session_id,omitzero"`
StartedAt *float64 `json:"started_at,omitzero"`
FinishedAt *float64 `json:"finished_at,omitzero"`
Label *string `json:"label,omitzero"`
}
type SpawnTreeSaveResult ¶
type SpawnTreeSubagent ¶
type SpawnTreeSubagent struct {
ID string `json:"id"`
Goal string `json:"goal"`
Status SubagentStatus `json:"status"`
Depth float64 `json:"depth"`
Index float64 `json:"index"`
TaskCount float64 `json:"taskCount"`
ToolCount float64 `json:"toolCount"`
ParentID *string `json:"parentId,omitzero"`
Notes []string `json:"notes"`
Thinking []string `json:"thinking"`
Tools []string `json:"tools"`
APICalls *float64 `json:"apiCalls,omitzero"`
CostUSD *float64 `json:"costUsd,omitzero"`
DurationSeconds *float64 `json:"durationSeconds,omitzero"`
InputTokens *float64 `json:"inputTokens,omitzero"`
Iteration *float64 `json:"iteration,omitzero"`
OutputTokens *float64 `json:"outputTokens,omitzero"`
ReasoningTokens *float64 `json:"reasoningTokens,omitzero"`
StartedAt *float64 `json:"startedAt,omitzero"`
DelegationID string `json:"delegationId,omitzero"`
Model string `json:"model,omitzero"`
Summary string `json:"summary,omitzero"`
FilesRead []string `json:"filesRead,omitzero"`
FilesWritten []string `json:"filesWritten,omitzero"`
Toolsets []string `json:"toolsets,omitzero"`
OutputTail []SpawnTreeOutput `json:"outputTail,omitzero"`
}
One subagent of a saved spawn tree as the terminal UI writes it, its numbers as earlier builds stored them
type StatusBarPlace ¶
type StatusBarPlace string
func (StatusBarPlace) Values ¶
func (StatusBarPlace) Values() []string
type StatusUpdatePayload ¶
Transient status line and its kind, status, lifecycle, compacting, goal, loop, heartbeat or process
type SteerStatus ¶
type SteerStatus string
Whether a steer reached the child's queue, queued is not delivered
func (SteerStatus) Values ¶
func (SteerStatus) Values() []string
type StreamDeltaPayload ¶
type StreamDeltaPayload struct {
Text string `json:"text"`
Rendered *string `json:"rendered,omitzero"`
Verbose *bool `json:"verbose,omitzero"`
}
Reasoning or thinking text, verbose when the session shows verbose reasoning
type SubagentEventPayload ¶
type SubagentEventPayload struct {
Goal string `json:"goal"`
TaskCount int64 `json:"task_count"`
TaskIndex int64 `json:"task_index"`
SubagentID *string `json:"subagent_id,omitzero"`
ParentID *string `json:"parent_id,omitzero"`
ChildSessionID *string `json:"child_session_id,omitzero"`
DelegationID *string `json:"delegation_id,omitzero"`
Depth *int64 `json:"depth,omitzero"`
Model *string `json:"model,omitzero"`
ToolCount *int64 `json:"tool_count,omitzero"`
Toolsets []string `json:"toolsets,omitzero"`
InputTokens *int64 `json:"input_tokens,omitzero"`
OutputTokens *int64 `json:"output_tokens,omitzero"`
ReasoningTokens *int64 `json:"reasoning_tokens,omitzero"`
APICalls *int64 `json:"api_calls,omitzero"`
CostUSD *float64 `json:"cost_usd,omitzero"`
FilesRead []string `json:"files_read,omitzero"`
FilesWritten []string `json:"files_written,omitzero"`
OutputTail []SubagentOutputTailEntry `json:"output_tail,omitzero"`
ToolName *string `json:"tool_name,omitzero"`
Text *string `json:"text,omitzero"`
Status *SubagentStatus `json:"status,omitzero"`
Summary *string `json:"summary,omitzero"`
DurationSeconds *float64 `json:"duration_seconds,omitzero"`
ToolPreview *string `json:"tool_preview,omitzero"`
}
Every subagent frame, the identity fields absent from emitters that do not know them
type SubagentIDParams ¶
type SubagentInterruptResult ¶
type SubagentInterruptResult struct {
Found bool `json:"found"`
SubagentID string `json:"subagent_id"`
}
Whether an owned child was still running to interrupt
type SubagentListResult ¶
type SubagentListResult struct {
Subagents []SubagentSnapshot `json:"subagents"`
Delegations []FailedDelegation `json:"delegations"`
}
Owned live children and the session's recently failed delegations, newest first
type SubagentOutputTailEntry ¶
type SubagentOutputTailEntry struct {
Tool string `json:"tool"`
Preview string `json:"preview"`
IsError bool `json:"is_error"`
}
One tool result of a finished child's output tail
type SubagentSnapshot ¶
type SubagentSnapshot struct {
SubagentID string `json:"subagent_id"`
ParentID *string `json:"parent_id,omitzero"`
Depth *int64 `json:"depth,omitzero"`
Goal *string `json:"goal,omitzero"`
DelegationID *string `json:"delegation_id,omitzero"`
Model *string `json:"model,omitzero"`
StartedAt *float64 `json:"started_at,omitzero"`
Status *SubagentStatus `json:"status,omitzero"`
ToolCount *int64 `json:"tool_count,omitzero"`
LastTool *string `json:"last_tool,omitzero"`
AcceptingSteer *bool `json:"accepting_steer,omitzero"`
}
One owned live child as the subagent list projects it
type SubagentStatus ¶
type SubagentStatus string
Lifecycle state of a delegated child
func (SubagentStatus) Values ¶
func (SubagentStatus) Values() []string
type SubagentSteerParams ¶
type SubagentSteerResult ¶
type SubagentSteerResult struct {
Status SteerStatus `json:"status"`
SubagentID string `json:"subagent_id"`
Text string `json:"text"`
}
type SubagentTailResult ¶
type SubagentTailResult struct {
SubagentID string `json:"subagent_id"`
Available bool `json:"available"`
Text string `json:"text"`
Truncated bool `json:"truncated"`
}
Last bytes of a child's transcript, available false when the child recorded none
type SubmitAnswer ¶
type SubmitAnswer struct {
*AdmissionReceipt
VoiceStopped bool `json:"voice_stopped,omitzero"`
}
Answer of a canonical prompt.submit, the admission receipt or voice_stopped alone
func (SubmitAnswer) Variants ¶
func (SubmitAnswer) Variants() []reflect.Type
type SudoRequestParams ¶
type SudoRequestParams struct {
SessionID string `json:"session_id"`
Command string `json:"command,omitzero"`
}
Sudo password the terminal tool needs, for the command it runs
type SystemBatteryResult ¶
type SystemBatteryResult struct {
Available bool `json:"available"`
Percent *int64 `json:"percent,omitzero"`
Plugged *bool `json:"plugged,omitzero"`
Category BatteryCategory `json:"category"`
}
Host battery for the status bar, available false on a host without one
type TaskIDResult ¶
type TaskIDResult struct {
TaskID string `json:"task_id"`
}
Id the side agent's completion event carries
type TerminalResizeParams ¶
type TerminalResizeResult ¶
type TerminalResizeResult struct {
Cols int64 `json:"cols"`
}
type TextPayload ¶
type TextPayload struct {
Text string `json:"text"`
}
Line of text an event carries alone, a review summary or a line the agent printed
type TodoItem ¶
type TodoItem struct {
ID string `json:"id"`
Content string `json:"content"`
Status TodoStatus `json:"status"`
Parent *string `json:"parent,omitzero"`
}
One task of the planning tool, a subtask naming its parent
type TodoStatus ¶
type TodoStatus string
Status of one task of the planning tool
func (TodoStatus) Values ¶
func (TodoStatus) Values() []string
type ToolCompletePayload ¶
type ToolCompletePayload struct {
ToolID string `json:"tool_id"`
Name string `json:"name"`
Context *string `json:"context,omitzero"`
Preview *string `json:"preview,omitzero"`
Args map[string]any `json:"args,omitzero"`
Labels []ToolLabel `json:"labels,omitzero"`
ToolCallID *string `json:"tool_call_id,omitzero"`
ToolName *string `json:"tool_name,omitzero"`
IsError *bool `json:"is_error,omitzero"`
Refused *bool `json:"refused,omitzero"`
Error *string `json:"error,omitzero"`
Result *string `json:"result,omitzero"`
DurationS *float64 `json:"duration_s,omitzero"`
Summary *string `json:"summary,omitzero"`
ResultText *string `json:"result_text,omitzero"`
InlineDiff *string `json:"inline_diff,omitzero"`
// Local image of the gateway host the call produced or looked at
ImagePath *string `json:"image_path,omitzero"`
Todos []TodoItem `json:"todos,omitzero"`
Revision *int64 `json:"revision,omitzero"`
}
A tool call finished, its verdict and reason, result text, summary, duration, inline diff and the task list
type ToolGeneratingPayload ¶
type ToolGeneratingPayload struct {
Name string `json:"name"`
}
The model is writing the arguments of a call to the named tool
type ToolLabel ¶
type ToolLabel struct {
Kind ToolLabelKind `json:"kind"`
App string `json:"app"`
Action string `json:"action"`
Emoji string `json:"emoji"`
Text string `json:"text"`
Name string `json:"name"`
Preview string `json:"preview,omitzero"`
}
Display label of a tool call, the app and action it drives with its emoji, text and argument preview
type ToolLabelKind ¶
type ToolLabelKind string
Kind of what a tool call label names
func (ToolLabelKind) Values ¶
func (ToolLabelKind) Values() []string
type ToolOutputRiskPayload ¶
type ToolOutputRiskPayload struct {
ToolID string `json:"tool_id"`
Name string `json:"name"`
Risk string `json:"risk"`
Findings []string `json:"findings"`
Redacted bool `json:"redacted"`
}
Output of a call the injection scanner flagged, its risk level and findings
type ToolProgressPayload ¶
type ToolProgressPayload struct {
ToolID string `json:"tool_id"`
Name string `json:"name"`
Progress float64 `json:"progress"`
Total *float64 `json:"total,omitzero"`
Percent *int64 `json:"percent,omitzero"`
Message *string `json:"message,omitzero"`
}
Progress an MCP server reported for a running call, at most one every half second per call
type ToolShowRow ¶
One tool of the tools listing with its description
type ToolShowSection ¶
type ToolShowSection struct {
Name string `json:"name"`
Tools []ToolShowRow `json:"tools"`
}
Tools of one toolset
type ToolStartPayload ¶
type ToolStartPayload struct {
ToolID string `json:"tool_id"`
Name string `json:"name"`
Context *string `json:"context,omitzero"`
Args map[string]any `json:"args,omitzero"`
ArgsText *string `json:"args_text,omitzero"`
Preview *string `json:"preview,omitzero"`
Labels []ToolLabel `json:"labels,omitzero"`
ToolCallID *string `json:"tool_call_id,omitzero"`
ToolName *string `json:"tool_name,omitzero"`
}
A tool call began, its id, a one line context, its arguments and labels, the verbose argument text when the session shows it
type ToolsAction ¶
type ToolsAction string
Whether a configure call turns its names on or off
func (ToolsAction) Values ¶
func (ToolsAction) Values() []string
type ToolsConfigureParams ¶
type ToolsConfigureParams struct {
Action ToolsAction `json:"action"`
Names []string `json:"names"`
SessionID *string `json:"session_id,omitzero"`
Profile *string `json:"profile,omitzero"`
}
Toolsets or server:tool MCP targets to turn on or off, the live session's profile and agent when a session is named
type ToolsConfigureResult ¶
type ToolsConfigureResult struct {
Changed []string `json:"changed"`
EnabledToolsets []string `json:"enabled_toolsets"`
Info *SessionInfo `json:"info,omitzero"`
MissingServers []string `json:"missing_servers"`
Reset bool `json:"reset"`
Unknown []string `json:"unknown"`
LaunchToolsets []string `json:"launch_toolsets,omitzero"`
}
What a configure call changed, the toolsets now on, MCP servers and names it did not know and the session info after it, or the toolsets the launch fixed when nothing was written
type ToolsListParams ¶
type ToolsListParams struct {
Platform *string `json:"platform,omitzero"`
}
Platform whose toolsets the listing shows
type ToolsListResult ¶
type ToolsListResult struct {
Lines []string `json:"lines"`
}
Every toolset and MCP tool of the platform with its status, lines in the profile's language
type ToolsShowResult ¶
type ToolsShowResult struct {
Sections []ToolShowSection `json:"sections"`
Total int64 `json:"total"`
}
Tools of the session grouped by toolset, deferred tools included, and their count
type TranscriptMessage ¶
type TranscriptMessage struct {
Role string `json:"role"`
Text *string `json:"text,omitzero"`
Content any `json:"content,omitzero"`
ToolCallID *string `json:"tool_call_id,omitzero"`
Timestamp *float64 `json:"timestamp,omitzero"`
RowID *int64 `json:"row_id,omitzero"`
DisplayKind *string `json:"display_kind,omitzero"`
DisplayMetadata *DisplayMetadata `json:"display_metadata,omitzero"`
Name *string `json:"name,omitzero"`
Context *string `json:"context,omitzero"`
Args map[string]any `json:"args,omitzero"`
Labels []ToolLabel `json:"labels,omitzero"`
Reasoning *string `json:"reasoning,omitzero"`
ToolName *string `json:"tool_name,omitzero"`
IsError *bool `json:"is_error,omitzero"`
Refused *bool `json:"refused,omitzero"`
Error *string `json:"error,omitzero"`
Archived *bool `json:"archived,omitzero"`
Extra map[string]any `json:"-" wire:"extra"`
}
type TurnStatus ¶
type TurnStatus string
How a turn ended
func (TurnStatus) Values ¶
func (TurnStatus) Values() []string
type UndoIntent ¶
type UndoIntent string
Why a client drops the last exchange, a retry sending the dropped prompt again
func (UndoIntent) Values ¶
func (UndoIntent) Values() []string
type UndoRollbackHint ¶
type UndoRollbackHint struct {
Files []string `json:"files"`
}
Files the turns an undo removed changed since the first checkpoint of that span, the line naming them worded by the client
type UntrustedProjectSkills ¶
Skills found under a project root the user has not trusted, left unloaded until it is
type Usage ¶
type Usage struct {
Model string `json:"model,omitzero"`
Input int64 `json:"input,omitzero"`
Output int64 `json:"output,omitzero"`
Reasoning int64 `json:"reasoning,omitzero"`
Prompt int64 `json:"prompt,omitzero"`
Completion int64 `json:"completion,omitzero"`
Total int64 `json:"total,omitzero"`
Calls int64 `json:"calls,omitzero"`
Compressions *int64 `json:"compressions,omitzero"`
ContextUsed *int64 `json:"context_used,omitzero"`
ContextMax *int64 `json:"context_max,omitzero"`
ContextPercent *int64 `json:"context_percent,omitzero"`
ContextSource *string `json:"context_source,omitzero"`
ContextEstimated *bool `json:"context_estimated,omitzero"`
CacheHitPct *int64 `json:"cache_hit_pct,omitzero"`
CacheRead *int64 `json:"cache_read,omitzero"`
CacheWrite *int64 `json:"cache_write,omitzero"`
AvgLatencyS *float64 `json:"avg_latency_s,omitzero"`
AvgTPS *float64 `json:"avg_tps,omitzero"`
ActiveSubagents *int64 `json:"active_subagents,omitzero"`
CostUsd *float64 `json:"cost_usd,omitzero"`
CostStatus *string `json:"cost_status,omitzero"`
// Rate limit windows the provider's last answer carried, absent before any answer carried them
RateLimit map[string]any `json:"rate_limit,omitzero"`
}
type ValueAnswer ¶
type ValueAnswer struct {
Value string `json:"value"`
}
Answer to a one value prompt, empty when skipped, a saved login as the JSON of identifier and password
type VaultCodeRequestParams ¶
type VaultCodeRequestParams struct {
SessionID string `json:"session_id"`
Site *string `json:"site,omitzero"`
Hint *string `json:"hint,omitzero"`
}
One time code the user reads from a device
type VaultSaveLoginRequestParams ¶
type VaultSaveLoginRequestParams struct {
SessionID string `json:"session_id"`
Origin string `json:"origin"`
Site string `json:"site"`
}
Login of a site the agent is about to fill, to keep in the vault
type VaultUnlockRequestParams ¶
type VaultUnlockRequestParams struct {
SessionID string `json:"session_id"`
Backend string `json:"backend"`
DisplayName string `json:"display_name"`
}
Master password of a password manager the session unlocks
type VoicePartialPayload ¶
type VoicePartialPayload struct {
Text string `json:"text"`
}
type VoicePlaybackParams ¶
type VoicePlaybackParams struct {
Playing bool `json:"playing"`
Profile *string `json:"profile,omitzero"`
}
Whether the window that plays speech has a clip sounding
type VoiceRecordAction ¶
type VoiceRecordAction string
func (VoiceRecordAction) Values ¶
func (VoiceRecordAction) Values() []string
type VoiceRecordParams ¶
type VoiceRecordParams struct {
Action VoiceRecordAction `json:"action,omitzero"`
SessionID string `json:"session_id,omitzero"`
Profile *string `json:"profile,omitzero"`
}
type VoiceRecordResult ¶
type VoiceRecordResult struct {
Status VoiceRecordStatus `json:"status"`
Reason string `json:"reason,omitzero"`
}
type VoiceRecordStatus ¶
type VoiceRecordStatus string
func (VoiceRecordStatus) Values ¶
func (VoiceRecordStatus) Values() []string
type VoiceSpeechKind ¶
type VoiceSpeechKind string
func (VoiceSpeechKind) Values ¶
func (VoiceSpeechKind) Values() []string
type VoiceSpeechPayload ¶
type VoiceSpeechPayload struct {
Kind VoiceSpeechKind `json:"kind"`
Audio string `json:"audio,omitzero"`
Format string `json:"format,omitzero"`
}
Speech of a session for the window that plays it, a clip queued after the others, thinking blips on or off, or a cut
type VoiceStatusPayload ¶
type VoiceStatusPayload struct {
State string `json:"state"`
}
Recorder state, idle, listening, transcribing and the others the recorder names
type VoiceStopped ¶
type VoiceStopped struct {
VoiceStopped bool `json:"voice_stopped"`
}
Answer of a typed stop phrase that ended the voice chat with nothing admitted
type VoiceSubmitMode ¶
type VoiceSubmitMode string
func (VoiceSubmitMode) Values ¶
func (VoiceSubmitMode) Values() []string
type VoiceToggleAction ¶
type VoiceToggleAction string
func (VoiceToggleAction) Values ¶
func (VoiceToggleAction) Values() []string
type VoiceToggleParams ¶
type VoiceToggleParams struct {
Action VoiceToggleAction `json:"action,omitzero"`
SessionID string `json:"session_id,omitzero"`
Profile *string `json:"profile,omitzero"`
}
Voice action of the session named, or of the serving process when none is named
type VoiceToggleResult ¶
type VoiceToggleResult struct {
Enabled bool `json:"enabled"`
RecordKey string `json:"record_key"`
TTS bool `json:"tts"`
StopHint string `json:"stop_hint,omitzero"`
Available *bool `json:"available,omitzero"`
AudioAvailable *bool `json:"audio_available,omitzero"`
STTAvailable *bool `json:"stt_available,omitzero"`
Details string `json:"details,omitzero"`
}
Voice mode state, the requirements probe on status and the spoken stop hint on on
type VoiceTranscriptPayload ¶
type VoiceTranscriptPayload struct {
Text string `json:"text,omitzero"`
StopPhrase bool `json:"stop_phrase,omitzero"`
Typed bool `json:"typed,omitzero"`
NoSpeechLimit bool `json:"no_speech_limit,omitzero"`
}
Text of a voice capture, or a stop phrase, a typed stop or the silence limit that ended it
type WaitBarrier ¶
type WaitBarrier struct {
Type WaitBarrierType `json:"type"`
UntilAt *float64 `json:"until_at,omitzero"`
SessionID *string `json:"session_id,omitzero"`
PID *int64 `json:"pid,omitzero"`
Reason string `json:"reason,omitzero"`
}
What an active goal waits for, a time, a session or a process
func (*WaitBarrier) UnmarshalJSON ¶
func (b *WaitBarrier) UnmarshalJSON(data []byte) error
Reads a barrier, the target a gateway of an earlier release sends read as the session id or the pid its type names
type WaitBarrierType ¶
type WaitBarrierType string
Kind of event a goal waits for
func (WaitBarrierType) Values ¶
func (WaitBarrierType) Values() []string
type WakeControlParams ¶
type WakeControlParams struct {
Profile *string `json:"profile,omitzero"`
}
type WakeDetectedPayload ¶
type WakeDeviceSelector ¶
Configured microphone, an index or a name, null for the system default
func (WakeDeviceSelector) MarshalJSON ¶
func (s WakeDeviceSelector) MarshalJSON() ([]byte, error)
func (*WakeDeviceSelector) UnmarshalJSON ¶
func (s *WakeDeviceSelector) UnmarshalJSON(data []byte) error
type WakeInputDevice ¶
type WakeInputDevice struct {
Selector *WakeDeviceSelector `json:"selector"`
Name string `json:"name,omitzero"`
Error string `json:"error,omitzero"`
MaxInputChannels int64 `json:"max_input_channels,omitzero"`
DefaultSamplerate float64 `json:"default_samplerate,omitzero"`
HostapiIndex *int64 `json:"hostapi_index,omitzero"`
Hostapi string `json:"hostapi,omitzero"`
}
Audio layer diagnostics of the configured microphone
type WakeResumeResult ¶
type WakeStartParams ¶
type WakeStartResult ¶
type WakeStartResult struct {
Started bool `json:"started"`
Reason string `json:"reason,omitzero"`
Hint string `json:"hint,omitzero"`
Phrase string `json:"phrase,omitzero"`
Provider string `json:"provider,omitzero"`
OwnerSurface *string `json:"owner_surface,omitzero"`
EnabledPersisted bool `json:"enabled_persisted,omitzero"`
}
Listener arming, a refusal carrying its reason with a hint or the surface that owns the microphone
type WakeStatusParams ¶
type WakeStatusResult ¶
type WakeStatusResult struct {
Listening bool `json:"listening"`
OwnedByCaller bool `json:"owned_by_caller"`
OwnerSurface *string `json:"owner_surface"`
Phrase string `json:"phrase"`
Provider string `json:"provider"`
ConfiguredSurface string `json:"configured_surface"`
InputDevice WakeInputDevice `json:"input_device"`
Available bool `json:"available"`
Hint string `json:"hint"`
Enabled bool `json:"enabled"`
AudioSilent bool `json:"audio_silent"`
LocalInputAvailable bool `json:"local_input_available"`
}
Wake word state, enabled the config truth, listening the caller's armed detector, audio_silent armed but deaf
type WakeStopParams ¶
type WakeStopResult ¶
type WakeStopResult struct {
Reason *string `json:"reason"`
Stopped bool `json:"stopped"`
DisabledPersisted bool `json:"disabled_persisted"`
Phrase string `json:"phrase"`
Provider string `json:"provider"`
}
Listener stop, the reason null when this surface stopped it and not_owner otherwise
type WorkerExecution ¶
type WorkerExecution struct {
ExecutionID string `json:"execution_id"`
SessionID string `json:"session_id"`
Kind WorkerKind `json:"kind"`
OwnerEpoch int64 `json:"owner_epoch"`
Generation int64 `json:"generation"`
Status WorkerStatus `json:"status"`
LastSequence int64 `json:"last_sequence"`
}
One worker execution row without its adoption digest
type WorkerKind ¶
type WorkerKind string
func (WorkerKind) Values ¶
func (WorkerKind) Values() []string
type WorkerPersistParams ¶
type WorkerPersistParams struct {
WorkerScopeParams
Epoch int64 `json:"epoch"`
Sequence int64 `json:"sequence"`
Operation string `json:"operation"`
Payload map[string]any `json:"payload"`
}
Sequence fenced typed write of an adopted worker
type WorkerRegisterParams ¶
type WorkerRegisterParams struct {
WorkerScopeParams
Kind string `json:"kind"`
}
Claim of a compute worker registering its execution
type WorkerScopeParams ¶
type WorkerScopeParams struct {
ProfileID string `json:"profile_id"`
SessionID string `json:"session_id"`
ExecutionID string `json:"execution_id"`
Generation int64 `json:"generation"`
Pid int64 `json:"pid"`
Birth float64 `json:"birth"`
Secret string `json:"secret"`
}
Producer claim every worker verb proves, the execution, its process and the adoption secret
type WorkerStatus ¶
type WorkerStatus string
func (WorkerStatus) Values ¶
func (WorkerStatus) Values() []string
type WorktreeCreateParams ¶
type WorktreeCreateParams struct {
Cwd string `json:"cwd"`
Name string `json:"name,omitzero"`
PID int64 `json:"pid"`
}
Folder whose repository gets the tree, its name, and the process the tree is locked for
type WorktreeCreateResult ¶
type WorktreeCreateResult struct {
RepoRoot *string `json:"repo_root"`
Tree *WorktreeRef `json:"tree"`
Lines []string `json:"lines"`
}
Creation report and the tree, null when the creation failed
type WorktreeCwdParams ¶
type WorktreeCwdParams struct {
Cwd string `json:"cwd"`
}
type WorktreeKept ¶
type WorktreeLaunch ¶
type WorktreeListResult ¶
type WorktreeListResult struct {
RepoRoot *string `json:"repo_root"`
Lines []string `json:"lines"`
}
Repository of the folder and the git worktree list, empty when git failed
type WorktreePruneParams ¶
type WorktreePruneParams struct {
Cwd string `json:"cwd"`
DryRun bool `json:"dry_run,omitzero"`
Keep string `json:"keep,omitzero"`
}
Folder whose repository is pruned, a dry run, and the tree in use that is never reclaimed
type WorktreePruneResult ¶
type WorktreePruneResult struct {
RepoRoot *string `json:"repo_root"`
Actions []string `json:"actions"`
Preserved []WorktreeKept `json:"preserved"`
Error *string `json:"error"`
}
type WorktreeRecordResult ¶
type WorktreeRecordResult struct {
Ok bool `json:"ok"`
}
type WorktreeRef ¶
type WorktreeRef struct {
Path string `json:"path"`
Branch string `json:"branch"`
RepoRoot string `json:"repo_root"`
}
Git worktree with its branch and the repository it belongs to
type WorktreeSettleResult ¶
type WorktreeSettleResult struct {
Lines []string `json:"lines"`
}
Lines saying the tree was removed or why it is kept
type WorktreeStatusParams ¶
type WorktreeStatusParams struct {
Cwd string `json:"cwd"`
LaunchCwd string `json:"launch_cwd"`
PID int64 `json:"pid"`
}
Folder to look up and the launch folder and process whose -w launch locked a tree
type WorktreeStatusResult ¶
type WorktreeStatusResult struct {
RepoRoot *string `json:"repo_root"`
Launch *WorktreeLaunch `json:"launch"`
}
Source Files
¶
- agents.go
- approvals.go
- attachments.go
- browser.go
- build.go
- commands.go
- complete.go
- config.go
- contract.go
- fit.go
- handoff_cron.go
- hubs.go
- images.go
- learning_pets.go
- misfit.go
- models.go
- notices_system.go
- profiles_create.go
- profiles_worktrees.go
- prompt.go
- rollback.go
- rooms.go
- session_info.go
- sessions.go
- setup.go
- slash_fuzzy.go
- tools.go
- voice_display.go
- workers.go