tuigateway

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2026 License: MIT Imports: 20 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
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

Forwards one A2A input into the conversation its identity tuple names

View Source
var AgentPrintEvent = NewEvent[TextPayload]("agent.print")

Status line the agent printed during a local viewer's turn

View Source
var ApprovalCancelledEvent = NewEvent[ApprovalCancelledPayload]("approval.cancelled")

Approvals of a session were dropped and settled as deny

View Source
var ApprovalRequest = NewRequest[ApprovalRequestParams, ApprovalAnswer]("approval")

A dangerous command awaits the user's verdict

View Source
var ApprovalRequestEvent = NewEvent[CanonicalPendingPrompt]("approval.request")

The running generation asks the viewers to approve a command

View Source
var ApprovalRespond = NewMethod[ApprovalRespondParams, ApprovalRespondResult]("approval.respond")

Verdict on a dangerous command on the method table route

View Source
var ApprovalSettledEvent = NewEvent[PromptSettledPayload]("approval.settled")

An approval prompt was answered

View Source
var BackgroundCompleteEvent = NewEvent[SideAgentCompletePayload]("background.complete")

A background side agent finished

View Source
var BotRelayDeliver = NewCanonicalMethod[BotDeliverParams, BotDeliverResult]("bot_relay.deliver")

Hands one bot message to a profile's conversation

View Source
var BotRelaySettle = NewCanonicalMethod[BotDeliverParams, BotDeliverResult]("bot_relay.settle")

Settles a delivery the sender was unsure of

View Source
var BrowserManage = NewMethod[BrowserManageParams, BrowserManageResult]("browser.manage")

Inspects, attaches to or drops the CDP browser the tools use

View Source
var BrowserProgressEvent = NewEvent[BrowserProgressPayload]("browser.progress")

Progress line of a browser connect

View Source
var BtwCompleteEvent = NewEvent[SideAgentCompletePayload]("btw.complete")

A side question was answered

View Source
var BuildID = sync.OnceValue(readBuildID)

Go build ID of the running executable, empty when the executable cannot be read

View Source
var CanonicalApprovalRespond = NewCanonicalMethod[CanonicalApprovalParams, PromptResponseResult]("approval.respond")

Generation fenced verdict on an approval prompt

View Source
var CanonicalClarifyLock = NewCanonicalMethod[ClarifyLockParams, ClarifyLockResult]("clarify.lock")

Locks one answer of the owner's batch clarify request, editable until every question is locked

View Source
var CanonicalClarifyRespond = NewCanonicalMethod[CanonicalClarifyParams, PromptResponseResult]("clarify.respond")

Generation fenced answer to a clarify prompt

View Source
var CanonicalGroupsApprove = NewCanonicalMethod[CanonicalRoomApproveParams, GroupsApproveResult]("groups.approve")

Answers one pending approval on the session authority, once or deny

View Source
var CanonicalGroupsAttachmentDownload = NewCanonicalMethod[GroupsAttachmentDownloadParams, RoomAttachmentBytes]("groups.attachment.download")

Reads one committed file of a room log on the session authority

View Source
var CanonicalGroupsAttachmentUpload = NewCanonicalMethod[GroupsAttachmentUploadParams, RoomAttachment]("groups.attachment.upload")

Stores one file for a later message on the session authority

View Source
var CanonicalGroupsCreate = NewCanonicalMethod[CanonicalRoomCreateParams, GroupsCreateResult]("groups.create")

Creates a room on the session authority

View Source
var CanonicalGroupsDiscard = NewCanonicalMethod[GroupsDiscardParams, GroupsDiscardResult]("groups.discard")

Discards one indeterminate room task on the session authority

View Source
var CanonicalGroupsPeers = NewCanonicalMethod[GroupsPeersParams, GroupsPeersResult]("groups.peers")

Registered peer gateways and the peers one room is shared with

View Source
var CanonicalGroupsRetry = NewCanonicalMethod[CanonicalRoomAttemptParams, GroupsRetryResult]("groups.retry")

Retries one room task on the session authority, fenced on its generation

View Source
var CanonicalGroupsShare = NewCanonicalMethod[GroupsShareParams, GroupsShareResult]("groups.share")

Shares a room this gateway hosts with a registered peer gateway

View Source
var CanonicalGroupsUnshare = NewCanonicalMethod[GroupsShareParams, GroupsShareResult]("groups.unshare")

Stops sharing a room with a peer, which drops its replica on its next sync

View Source
var CanonicalImageAttachBytes = NewCanonicalMethod[ImageAttachBytesParams, CanonicalAttachedImage]("image.attach_bytes")

Queues an uploaded image on the session authority, answering its mime type too

View Source
var CanonicalProfilesList = NewCanonicalMethod[ProfilesListParams, ProfilesListResult]("profiles.list")

Profile roster of the session authority, sessions included unless turned off

View Source
var CanonicalPromptCancel = NewCanonicalMethod[PromptCancelParams, AdmissionReceipt]("prompt.cancel")

Withdraws a queued admission, interrupting a started one in the same call

View Source
var CanonicalPromptReceipt = NewCanonicalMethod[PromptReceiptParams, PromptReceiptResult]("prompt.receipt")

Current receipt of one admission the caller submitted or controls

View Source
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

View Source
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

View Source
var CanonicalPromptSubmit = NewCanonicalMethod[CanonicalSubmitParams, SubmitAnswer]("prompt.submit")

Admits a prompt into the owner's durable queue

View Source
var CanonicalRuntimeDescribe = NewCanonicalMethod[RuntimeDescribeParams, RuntimeDescribeResult]("runtime.describe")

Session creation policy, protocol and capabilities of the runtime

View Source
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

View Source
var CanonicalSessionAutomation = NewCanonicalMethod[SessionAutomationParams, SessionAutomationResult]("session.automation")

Arms or reads the automation a viewer runs on a session

View Source
var CanonicalSessionCreate = NewCanonicalMethod[CanonicalCreateParams, CanonicalSnapshot]("session.create")

Creates a session on the session authority and attaches to it

View Source
var CanonicalSessionDetach = NewCanonicalMethod[SessionDetachParams, SessionDetachResult]("session.detach")

Ends one subscription of the caller to a session

View Source
var CanonicalSessionExport = NewCanonicalMethod[SessionExportParams, SessionExportResult]("session.export")

Writes a session transcript to a file or returns it inline

View Source
var CanonicalSessionInfo = NewCanonicalMethod[CanonicalSessionInfoParams, SessionInfo]("session.info")

Frozen launch policy and inventory of one local session

View Source
var CanonicalSessionInterrupt = NewCanonicalMethod[CanonicalControlParams, CanonicalSessionHandle]("session.interrupt")

Stops the running generation of a canonical session

View Source
var CanonicalSessionList = NewCanonicalMethod[CanonicalListParams, CanonicalListResult]("session.list")

Lists the live or stored sessions of the profile

View Source
var CanonicalSessionMutate = NewCanonicalMethod[SessionMutateParams, SessionMutateResult]("session.mutate")

Revision fenced, retry safe session edit, its operation projection riding beside the receipt

View Source
var CanonicalSessionPrune = NewCanonicalMethod[SessionPruneParams, SessionPruneResult]("session.prune")

Deletes the ended sessions a prune selected, skipping busy ones, local operator only

View Source
var CanonicalSessionRedirect = NewCanonicalMethod[CanonicalCorrectionParams, CorrectionAnswer]("session.redirect")

Redirects the running generation, held for the next turn while the agent builds

View Source
var CanonicalSessionResume = NewCanonicalMethod[CanonicalResumeParams, CanonicalSnapshot]("session.resume")

Attaches to a stored or live session, by id, title or the latest of a source

View Source
var CanonicalSessionStats = NewCanonicalMethod[SessionStatsParams, SessionStats]("session.stats")

Cumulative token, context, latency and rate limit counters of a session

View Source
var CanonicalSessionSteer = NewCanonicalMethod[CanonicalCorrectionParams, CorrectionAnswer]("session.steer")

Puts text into the next tool result of the running generation

View Source
var CanonicalShellExec = NewCanonicalMethod[CanonicalShellExecParams, ShellExecResult]("shell.exec")

Runs one safe shell line of a local session on the shared owner

View Source
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

View Source
var ClarifyRequest = NewRequest[ClarifyRequestParams, ClarifyAnswer]("clarify")

The clarify tool asks the user one to five questions

View Source
var ClarifyRequestEvent = NewEvent[CanonicalPendingPrompt]("clarify.request")

The running generation asks the viewers a question

View Source
var ClarifySettledEvent = NewEvent[PromptSettledPayload]("clarify.settled")

A clarify prompt was answered

View Source
var ClientCapabilities = NewMethod[ClientCapabilitiesParams, ClientCapabilitiesResult]("client.capabilities")

What the calling client handles, sent once per connection after gateway.ready

View Source
var ClipboardPaste = NewMethod[SessionIDParams, AttachedImageResult]("clipboard.paste")

Saves the host clipboard image into the session and queues it for the next turn

View Source
var CommandDispatch = NewMethod[CommandDispatchParams, CommandDispatchResult]("command.dispatch")

Runs a quick, plugin, bundle, skill or built in slash command and answers its directive

View Source
var CommandObserve = NewCanonicalMethod[CommandObserveParams, CommandObserveResult]("command.observe")

Tells the shared owner a client ran a recognized command itself

View Source
var CommandsCatalog = NewMethod[CommandsCatalogParams, CommandsCatalogResult]("commands.catalog")

Slash catalog of registry, quick, plugin and skill commands for the palette and completion

View Source
var CompletePath = NewMethod[CompletePathParams, CompletionItemsResult]("complete.path")

Files, folders, profiles and plugin references completing the composer word

View Source
var CompleteSlash = NewMethod[CompleteSlashParams, CompleteSlashResult]("complete.slash")

Ranked slash commands and skills completing a slash token

View Source
var ConfigGet = NewMethod[ConfigGetParams, ConfigGetResult]("config.get")

Reads one config key, or with key full the settings the terminal UI follows, on both routes

View Source
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

View Source
var ConnectionRequestEvent = NewEvent[ConnectionRequestPayload]("connection.request")

A connection operation opened on the session

View Source
var ConnectionRespond = NewMethod[ConnectionRespondParams, ConnectionRespondResult]("connection.respond")

Per target answers of the connection card, or its continue

View Source
var ConnectionUpdateEvent = NewEvent[ConnectionUpdatePayload]("connection.update")

A target of an open connection operation moved or the operation settled

View Source
var ConnectorsConnect = NewMethod[ConnectorsConnectParams, ConnectionOperationSnapshot]("connectors.connect")

Runs failed rows of the session's open connection operation again

View Source
var ConnectorsOperationStatus = NewMethod[ConnectionOperationParams, ConnectionOperationSnapshot]("connectors.operation.status")

Current snapshot of an open connection operation

View Source
var ConnectorsOperationWake = NewMethod[ConnectionOperationParams, ConnectionWakeResult]("connectors.operation.wake")

Makes the watcher of an open operation check the accounts now

Cancels a queued cron admission or latches cancellation on a started one

View Source
var CronRecover = NewCanonicalMethod[CronRunParams, CronStatusResult]("cron.recover")

Observes a firing again after a scheduler restart, by the same request identity

Status and, once terminal, the outcome of one cron admission

View Source
var CronSubmit = NewCanonicalMethod[CronRunParams, CronSubmitResult]("cron.submit")

Admits one cron firing into the owning profile's durable queue

View Source
var DelegationPause = NewMethod[DelegationPauseParams, DelegationPauseResult]("delegation.pause")

Blocks or unblocks new spawns everywhere, running children go on, answering the new state

View Source
var DelegationStatus = NewMethod[ProfileParams, DelegationStatusResult]("delegation.status")

Live delegated children, the spawn pause flag and the limits

View Source
var DisplayInstall = NewMethod[ProfileParams, DisplayInstallResult]("display.install")

Runs the package install on the gateway host, progress streamed as display.install.log and done

View Source
var DisplayInstallDoneEvent = NewEvent[DisplayInstallDonePayload]("display.install.done")

The install ended

View Source
var DisplayInstallLogEvent = NewEvent[DisplayInstallLogPayload]("display.install.log")

One line of package manager output

View Source
var DisplayInstallSudoRequest = NewRequest[DisplayInstallSudoParams, ValueAnswer]("display.install.sudo")

Sudo password for the bot screen package install

View Source
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

View Source
var DisplayLeaseEvent = NewEvent[DisplayLeasePayload]("display.lease")

The takeover lease changed hands

View Source
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

View Source
var DisplayStart = NewMethod[ProfileParams, DisplayStatus]("display.start")

Starts this profile's screen and waits until it is published

View Source
var DisplayStatusEvent = NewEvent[DisplayStatus]("display.status")

This profile's screen started or stopped

View Source
var DisplayStatusMethod = NewMethod[ProfileParams, DisplayStatus]("display.status")

Runtime and lease of this profile's screen

View Source
var DisplayStop = NewMethod[DisplayStopParams, DisplayStopResult]("display.stop")

Stops the screen, refused with viewer_mismatch while a person holds it unless forced

View Source
var DisplaySwitchSandboxImage = NewMethod[DisplaySwitchSandboxImageParams, DisplaySwitchSandboxImageResult]("display.switchSandboxImage")

Decides the pending default sandbox image switch of this profile

View Source
var DisplayThumbnail = NewMethod[ProfileParams, DisplayThumbnailResult]("display.thumbnail")

Grabs one frame of this profile's screen without touching the lease

View Source
var ErrorEvent = NewEvent[ErrorPayload]("error")

Session failure outside a turn

View Source
var GatewayReadyEvent = NewEvent[GatewayReadyPayload]("gateway.ready")

First frame of a connection, the skin, change events, replay epoch and session authority

View Source
var GroupsApprove = NewMethod[GroupsApproveParams, GroupsApproveResult]("groups.approve")

Answers one pending approval of a local or peer member

View Source
var GroupsAttachmentDownload = NewMethod[GroupsAttachmentDownloadParams, RoomAttachmentBytes]("groups.attachment.download")

Reads one committed file of a room log

View Source
var GroupsAttachmentUpload = NewMethod[GroupsAttachmentUploadParams, RoomAttachment]("groups.attachment.upload")

Stores one file for a later message, idempotent per upload id

View Source
var GroupsCapabilities = NewMethod[GroupsCapabilitiesParams, GroupsCapabilitiesResult]("groups.capabilities")

Room protocol this gateway implements

View Source
var GroupsContinue = NewMethod[GroupsContinueParams, GroupsContinueResult]("groups.continue")

Grants a discussion paused at its cap one more budget of rounds and messages

View Source
var GroupsCreate = NewMethod[GroupsCreateParams, GroupsCreateResult]("groups.create")

Creates a room idempotently, this gateway's install identity its authority

View Source
var GroupsDisband = NewMethod[GroupsDisbandParams, GroupsDisbandResult]("groups.disband")

Tombstones a room for good after stopping its work and revoking peer routes

View Source
var GroupsDiscard = NewMethod[GroupsDiscardParams, GroupsDiscardResult]("groups.discard")

Discards one indeterminate room task after the user confirmed it

View Source
var GroupsList = NewMethod[GroupsListParams, GroupsListResult]("groups.list")

Rooms this gateway hosts or holds a replica of, most recently changed first

View Source
var GroupsLog = NewMethod[GroupsLogParams, GroupsLogResult]("groups.log")

Room log after since_seq, bounded by count and page bytes

View Source
var GroupsPromote = NewMethod[GroupsPromoteParams, GroupsPromoteResult]("groups.promote")

Continues a replicated room on this gateway at the next epoch, confirm required

View Source
var GroupsRename = NewMethod[GroupsRenameParams, GroupsRenameResult]("groups.rename")

Renames a room together with its replay event

View Source
var GroupsReplicaState = NewMethod[GroupsReplicaStateParams, GroupsReplicaStateResult]("groups.replica_state")

Coverage and authority lineage of the local replica of a room

View Source
var GroupsRetry = NewMethod[GroupsRetryParams, GroupsRetryResult]("groups.retry")

Retries one indeterminate or deferred room task after the user confirmed it

View Source
var GroupsSend = NewMethod[GroupsSendParams, GroupsSendResult]("groups.send")

Appends one user message idempotently, the actor set by the gateway

View Source
var GroupsState = NewMethod[GroupsStateParams, GroupsStateResult]("groups.state")

One room with its replay cursor, fenced authority and live driver status

View Source
var GroupsStop = NewMethod[GroupsStopParams, GroupsStopResult]("groups.stop")

Cancels the queued and running work of a room

View Source
var HandoffFail = NewMethod[HandoffFailParams, HandoffFailResult]("handoff.fail")

Fails a handoff the watcher has not claimed yet

View Source
var HandoffRequest = NewMethod[HandoffRequestParams, HandoffRequestResult]("handoff.request")

Queues a handoff of the session to a messaging platform's home channel

View Source
var HandoffState = NewMethod[SessionIDParams, HandoffStateResult]("handoff.state")

Reads the handoff row of the session

View Source
var I18nCatalog = NewMethod[I18nCatalogParams, I18nCatalogResult]("i18n.catalog")

Messages of one language pack and surface

View Source
var I18nLanguages = NewMethod[I18nLanguagesParams, I18nLanguagesResult]("i18n.languages")

Languages the UI can be shown in

View Source
var ImageAttach = NewMethod[ImageAttachParams, AttachedImageResult]("image.attach")

Queues an image file the gateway can read for the next turn

View Source
var ImageAttachBytes = NewMethod[ImageAttachBytesParams, AttachedImageResult]("image.attach_bytes")

Queues an image uploaded as base64 for the next turn

View Source
var ImageDetach = NewMethod[ImageDetachParams, ImageDetachResult]("image.detach")

Drops a queued image before the turn is sent

View Source
var ImageRender = NewMethod[ImageRenderParams, ImageRenderResult]("image.render")

Lays out a local image of the gateway host for an inline terminal preview

View Source
var InputDetectDrop = NewMethod[InputDetectDropParams, InputDetectDropResult]("input.detect_drop")

Turns a terminal file drop pasted into the composer into an attachment

Admits the dispatcher's claim on a kanban task, native owner only

View Source
var LearningDelete = NewMethod[LearningNodeParams, LearningMutationResult]("learning.delete")

Archives a skill or removes a memory chunk

View Source
var LearningDetail = NewMethod[LearningNodeParams, LearningDetailResult]("learning.detail")

Content of a skill or memory node for an edit prefill

View Source
var LearningEdit = NewMethod[LearningEditParams, LearningMutationResult]("learning.edit")

Rewrites the content of a skill or memory node

View Source
var LearningFrames = NewMethod[LearningFramesParams, LearningFramesResult]("learning.frames")

Pre-renders the journey timeline so the window walks it locally

View Source
var LearningGraph = NewMethod[LearningGraphParams, LearningGraphResult]("learning.graph")

Learning graph of the profile, the skill and memory nodes with their links and stats

View Source
var MCPCatalog = NewMethod[ProfileParams, MCPCatalogResult]("mcp.catalog")

Catalog MCP servers with their install state and the env keys each needs

View Source
var MCPServersAdd = NewMethod[MCPServersAddParams, MCPServerResult]("mcp.servers.add")

Adds an MCP server from a catalog preset or an explicit config

View Source
var MCPServersEnable = NewMethod[MCPServersEnableParams, MCPServerResult]("mcp.servers.enable")

Sets the enabled flag of a configured MCP server

View Source
var MCPServersList = NewMethod[ProfileParams, MCPServersListResult]("mcp.servers.list")

Configured MCP servers of the profile, secrets named by their env keys

View Source
var MCPServersOAuthCancel = NewMethod[MCPOAuthFlowParams, MCPOAuthCancelResult]("mcp.servers.oauth.cancel")

Stops a sign in flow

View Source
var MCPServersOAuthPoll = NewMethod[MCPOAuthFlowParams, MCPOAuthPollResult]("mcp.servers.oauth.poll")

Reads a sign in flow, an approval storing the tokens for the profile

View Source
var MCPServersOAuthStart = NewMethod[MCPOAuthStartParams, MCPOAuthStartResult]("mcp.servers.oauth.start")

Starts the browser sign in of an MCP server

View Source
var MCPServersRemove = NewMethod[MCPServerNameParams, MCPServersRemoveResult]("mcp.servers.remove")

Drops an MCP server from config.yaml

View Source
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

View Source
var MCPServersStatus = NewMethod[ProfileParams, MCPServersStatusResult]("mcp.servers.status")

Cached runtime state of every configured MCP server, never connecting

View Source
var MCPServersTest = NewMethod[MCPServerNameParams, MCPServersTestResult]("mcp.servers.test")

Connects to an MCP server once and lists its tools

View Source
var MessageCompleteEvent = NewEvent[MessageCompletePayload]("message.complete")

The turn ended

View Source
var MessageDeltaEvent = NewEvent[MessageDeltaPayload]("message.delta")

One streamed chunk of the reply

View Source
var MessageInterimEvent = NewEvent[MessageInterimPayload]("message.interim")

Commentary beside tool calls sealed as its own segment

View Source
var MessageStartEvent = NewEvent[MessageStartPayload]("message.start")

A turn began streaming

View Source
var MoaAggregatingEvent = NewEvent[MoaAggregatingPayload]("moa.aggregating")

The mixture of agents aggregator started

View Source
var MoaPhaseEvent = NewEvent[MoaPhasePayload]("moa.phase")

A mixture of agents turn changed phase

View Source
var MoaProgressEvent = NewEvent[MoaProgressPayload]("moa.progress")

Mixture of agents references answered so far

View Source
var MoaReferenceEvent = NewEvent[MoaReferencePayload]("moa.reference")

One mixture of agents reference answered

View Source
var ModelDisconnect = NewMethod[ModelDisconnectParams, ModelDisconnectResult]("model.disconnect")

Removes every credential of a provider, its env keys and its sign in state

View Source
var ModelOptions = NewMethod[ModelOptionsParams, ModelOptionsResult]("model.options")

Provider and model inventory of the picker, layered over the live provider of the session when named

View Source
var ModelSaveKey = NewMethod[ModelSaveKeyParams, ModelSaveKeyResult]("model.save_key")

Saves an API key for a provider and returns its refreshed picker row

View Source
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

View Source
var NoticeEvent = NewEvent[NoticePayload]("notice")

Informational one liner for the session

View Source
var NotificationClearEvent = NewEvent[NotificationClearPayload]("notification.clear")

Withdraws the notice with this key

View Source
var NotificationShowEvent = NewEvent[NotificationShowPayload]("notification.show")

Shows or replaces a keyed notice

View Source
var PanicOnMisfit = os.Getenv("ICEBATH_TEST_ISOLATION") != ""

Misfits panic under test isolation and are logged otherwise

View Source
var PasteCollapse = NewMethod[PasteCollapseParams, PasteCollapseResult]("paste.collapse")

Spills a large paste to a file and answers the inline placeholder

View Source
var PetCancel = NewMethod[PetCancelParams, PetOkResult]("pet.cancel")

Stops a pet generate or hatch in flight by its token

View Source
var PetCells = NewMethod[PetCellsParams, PetCellsResult]("pet.cells")

Half-block cell frames or a kitty placement of one pet state

View Source
var PetChangedEvent = NewEvent[PetInfoMetaResult]("pet.changed")

The active pet or its spritesheet changed

View Source
var PetDisable = NewMethod[ProfileParams, PetOkResult]("pet.disable")

Turns the pet display off

View Source
var PetEnable = NewMethod[ProfileParams, PetOkResult]("pet.enable")

Turns the pet display on, the configured pet kept

View Source
var PetExport = NewMethod[PetSlugParams, PetExportResult]("pet.export")

Exports an installed pet as a re-importable zip

View Source
var PetGallery = NewMethod[PetGalleryParams, PetGalleryResult]("pet.gallery")

Pet gallery with the local install state, the remote manifest skipped for localOnly

View Source
var PetGenerate = NewMethod[PetGenerateParams, PetGenerateResult]("pet.generate")

Base look drafts of a new pet, each also streamed as pet.generate.progress

View Source
var PetGenerateProgressEvent = NewEvent[PetGenerateProgressPayload]("pet.generate.progress")

Progress of a draft generation

View Source
var PetHatch = NewMethod[PetHatchParams, PetHatchResult]("pet.hatch")

Turns a base draft into a full spritesheet pet, progress streamed as pet.hatch.progress

View Source
var PetHatchProgressEvent = NewEvent[PetHatchProgressPayload]("pet.hatch.progress")

Progress of a hatch drawing its rows

View Source
var PetInfo = NewMethod[PetInfoParams, PetInfoResult]("pet.info")

Active pet for sprite renderers, its spritesheet as base64 with frame geometry and state rows

View Source
var PetInfoMeta = NewMethod[ProfileParams, PetInfoMetaResult]("pet.info.meta")

Metadata of the active pet that tells a renderer whether its spritesheet changed

View Source
var PetRemove = NewMethod[PetSlugParams, PetSlugResult]("pet.remove")

Uninstalls a pet, turning the display off when it was active

View Source
var PetRename = NewMethod[PetRenameParams, PetSlugResult]("pet.rename")

Renames a pet and realigns its slug, following the active slug in config

View Source
var PetScale = NewMethod[PetScaleParams, PetScaleResult]("pet.scale")

Persists the pet scale clamped to the renderer bounds

View Source
var PetSelect = NewMethod[PetSlugParams, PetSlugResult]("pet.select")

Installs when needed and activates a pet

Cheapest liveness probe, answered while every agent is mid turn

View Source
var PluginsList = NewMethod[PluginsListParams, PluginsListResult]("plugins.list")

Loaded plugin manager entries, the flat view the chat commands print

View Source
var PluginsManage = NewMethod[PluginsManageParams, PluginsManageResult]("plugins.manage")

Plugins hub, list, toggle, install, inspect, update of one or every plugin, remove, settings and catalog presence

View Source
var ProcessKill = NewMethod[ProcessKillParams, ProcessKillResult]("process.kill")

Kills one background process the session owns and answers its output snapshot

View Source
var ProcessList = NewMethod[SessionIDParams, ProcessListResult]("process.list")

Background processes the session owns

View Source
var ProcessStop = NewMethod[ProcessStopParams, ProcessStopResult]("process.stop")

Kills the background processes the session owns, or every process a standalone sidecar holds

View Source
var ProfilesCreate = NewMethod[ProfilesCreateParams, ProfilesCreateResult]("profiles.create")

Creates a profile in the caller's profile scope, mirroring its launch credentials unless told not to

View Source
var ProfilesExport = NewMethod[ProfilesExportParams, ProfilesExportResult]("profiles.export")

Writes a profile, its config, skills and theme, to a shareable archive

View Source
var ProfilesImport = NewMethod[ProfilesImportParams, ProfilesImportResult]("profiles.import")

Imports a shared profile archive as a new profile with its wrapper alias

View Source
var ProfilesList = NewMethod[ProfilesListParams, ProfilesListResult]("profiles.list")

Profile roster with previews so a client paints without a call per profile

View Source
var PromptBackground = NewMethod[SideAgentParams, TaskIDResult]("prompt.background")

Runs a task on a fresh agent in the background, its answer arriving as background.complete

View Source
var PromptBtw = NewMethod[SideAgentParams, TaskIDResult]("prompt.btw")

Asks a side question over the live conversation, its answer arriving as btw.complete

View Source
var PromptSubmit = NewMethod[PromptSubmitParams, PromptSubmitResult]("prompt.submit")

Sends a prompt on the method table route, a busy session queueing, steering or redirecting it

View Source
var ReactionEvent = NewEvent[ReactionPayload]("reaction")

Affection detected in the user's message

View Source
var ReasoningAvailableEvent = NewEvent[StreamDeltaPayload]("reasoning.available")

A whole reasoning block of a provider that does not stream it

View Source
var ReasoningDeltaEvent = NewEvent[StreamDeltaPayload]("reasoning.delta")

One streamed chunk of the model's reasoning

View Source
var ReloadEnv = NewMethod[ReloadEnvParams, ReloadEnvResult]("reload.env")

Reads the profile's env file again, built agents keeping their pool until a new session

View Source
var ReloadMCP = NewMethod[ReloadMCPParams, ReloadMCPResult]("reload.mcp")

Reconnects the MCP servers of the live sessions after a config change

View Source
var RequestCancelEvent = NewEvent[RequestCancelPayload]("request.cancel")

An open request was withdrawn, its card closes

View Source
var ReviewSummaryEvent = NewEvent[TextPayload]("review.summary")

Background review of the last turn finished

View Source
var RollbackDiff = NewMethod[RollbackDiffParams, RollbackDiffResult]("rollback.diff")

Diff between a checkpoint and the working tree

View Source
var RollbackList = NewMethod[RollbackListParams, RollbackListResult]("rollback.list")

Checkpoints of the session's working directory

View Source
var RollbackRestore = NewMethod[RollbackRestoreParams, RollbackRestoreResult]("rollback.restore")

Restores the working tree or one file to a checkpoint

View Source
var RollbackSessionDiff = NewCanonicalMethod[RollbackSessionDiffParams, RollbackSessionDiffResult]("rollback.session_diff")

Everything the session changed since its earliest retained checkpoint

View Source
var SecretRequest = NewRequest[SecretRequestParams, ValueAnswer]("secret")

Value of a named environment variable for a skill or setup flow

View Source
var SessionActivate = NewMethod[SessionActivateParams, SessionActivateResult]("session.activate")

Switches to a live session the gateway already runs

View Source
var SessionActiveList = NewMethod[SessionActiveListParams, SessionActiveListResult]("session.active_list")

Live sessions of the gateway with their state, the current one marked

View Source
var SessionBranch = NewMethod[SessionBranchParams, SessionBranchResult]("session.branch")

Forks a live session into a new one

View Source
var SessionClose = NewMethod[SessionCloseParams, SessionCloseResult]("session.close")

Closes a live session and returns its closing lines

View Source
var SessionCompress = NewMethod[SessionCompressParams, SessionCompressResult]("session.compress")

Compresses a live session's transcript, optionally around a focus topic

View Source
var SessionContextBreakdown = NewMethod[SessionContextBreakdownParams, SessionContextBreakdownResult]("session.context_breakdown")

Context window of a live session by category and by context file

View Source
var SessionControlRead = NewMethod[SessionControlReadParams, SessionControlReadResult]("session.control.read")

Goal, loop and heartbeat state of a session

View Source
var SessionControlUpdateEvent = NewEvent[SessionControlUpdatePayload]("session.control.update")

Persisted goal, loop or heartbeat state of a session changed

View Source
var SessionCreate = NewMethod[SessionCreateParams, SessionCreateResult]("session.create")

Creates a live session on the method table route

View Source
var SessionDelete = NewMethod[SessionDeleteParams, SessionDeleteResult]("session.delete")

Deletes a stored session

View Source
var SessionHistory = NewMethod[SessionHistoryParams, SessionHistoryResult]("session.history")

Transcript of a live session

View Source
var SessionInfoEvent = NewEvent[SessionInfo]("session.info")

Settings, inventory or live state of a session changed, the fields carried replacing the held ones

View Source
var SessionInterrupt = NewMethod[SessionInterruptParams, SessionInterruptResult]("session.interrupt")

Stops the running turn and its speech on the method table route

View Source
var SessionList = NewMethod[SessionListParams, SessionListResult]("session.list")

Lists stored sessions, newest first

View Source
var SessionMostRecent = NewMethod[SessionMostRecentParams, SessionMostRecentResult]("session.most_recent")

Newest stored session of the profile

View Source
var SessionReclaimedEvent = NewEvent[SessionReclaimedPayload]("session.reclaimed")

The gateway reclaimed a live session from its clients

View Source
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

View Source
var SessionReplayGapEvent = NewEvent[SessionReplayGapPayload]("session.replay_gap")

The replay buffer of a session overflowed, the client resumes it

View Source
var SessionResume = NewMethod[SessionResumeParams, SessionResumeResult]("session.resume")

Resumes a stored session by id or exact title on the method table route

View Source
var SessionResumeProgressEvent = NewEvent[SessionResumeProgressPayload]("session.resume_progress")

Progress of a deferred resume loading the history

View Source
var SessionSave = NewMethod[SessionSaveParams, SessionSaveResult]("session.save")

Saves the transcript of a live session to a file

View Source
var SessionStatus = NewMethod[SessionStatusParams, SessionStatusResult]("session.status")

Status text of a live session

Puts text into the next tool result of the running turn on the method table route

View Source
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

View Source
var SessionTitleEvent = NewEvent[SessionTitlePayload]("session.title")

Automatic titling renamed a session

View Source
var SessionUndo = NewMethod[SessionUndoParams, SessionUndoResult]("session.undo")

Removes the last exchange of a live session

View Source
var SessionUpdatedEvent = NewEvent[SessionMutateResult]("session.updated")

A session edit committed or a deferred model pick settled, its projection riding beside the operation

View Source
var SessionUsage = NewMethod[SessionUsageParams, Usage]("session.usage")

Token, context and cost counters of a live session

View Source
var SessionUsageEvent = NewEvent[SessionUsagePayload]("session.usage")

Usage counters of a session after an API call or a turn

View Source
var SessionWorkspaceMove = NewMethod[SessionWorkspaceMoveParams, SessionWorkspaceMoveResult]("session.workspace.move")

Moves a live session to another working directory

View Source
var SessionsChangedEvent = NewEvent[NoPayload]("sessions.changed")

The session store moved, the UI fetches the session list again

View Source
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

View Source
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

View Source
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

View Source
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

View Source
var SetupHostedAnswer = NewMethod[SetupHostedAnswerParams, SetupHostedAnswerResult]("setup.hosted.answer")

Answers the question a hosted setup section waits on

View Source
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

View Source
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

View Source
var SetupHostedStart = NewMethod[SetupHostedStartParams, SetupHostedStartResult]("setup.hosted.start")

Runs a setup section on the gateway with its questions put to the terminal UI

View Source
var SetupRuntimeCheck = NewMethod[SetupRuntimeCheckParams, SetupRuntimeCheckResult]("setup.runtime_check")

Strict check of the route a session would be built with, one provider alone when named

View Source
var SetupSectionLoad = NewMethod[SetupSectionLoadParams, SetupSectionLoadResult]("setup.section.load")

Reads the values a setup section starts from

View Source
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

View Source
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

View Source
var ShellExec = NewMethod[ShellExecParams, ShellExecResult]("shell.exec")

Runs one safe shell line for the composer, the dangerous and hardline ones refused

View Source
var SkillsChangedEvent = NewEvent[NoPayload]("skills.changed")

A skill root changed elsewhere, the UI fetches the command catalog again

View Source
var SkillsManage = NewMethod[SkillsManageParams, SkillsManageResult]("skills.manage")

Skills hub, the profile's skills by category or search, browse, inspect and install from the hub

View Source
var SkillsReload = NewMethod[SkillsReloadParams, SkillsReloadResult]("skills.reload")

Scans the skill directories again and answers what changed with the printed summary

View Source
var SkinChangedEvent = NewEvent[SkinPayloadModel]("skin.changed")

The active skin changed, its resolved colours and branding

View Source
var SlashExec = NewMethod[SlashExecParams, SlashExecResult]("slash.exec")

Runs a slash line through the live, plugin and dispatch stages of the session

View Source
var SnapshotCreate = NewMethod[SnapshotArgsParams, SnapshotLines]("snapshot.create")

Takes a quick state snapshot, the args joined as its label

View Source
var SnapshotList = NewMethod[SnapshotListParams, SnapshotLines]("snapshot.list")

Quick state snapshots of the profile as a numbered table

View Source
var SnapshotPrune = NewMethod[SnapshotArgsParams, SnapshotLines]("snapshot.prune")

Keeps the newest N quick snapshots, twenty when no count is given

View Source
var SnapshotTarget = NewMethod[SnapshotArgsParams, SnapshotTargetResult]("snapshot.target")

Resolves the snapshot a /snapshot restore names

View Source
var SpawnTreeList = NewMethod[SpawnTreeListParams, SpawnTreeListResult]("spawn_tree.list")

Lists saved spawn tree snapshots

View Source
var SpawnTreeLoad = NewMethod[SpawnTreeLoadParams, SpawnTreeLoadResult]("spawn_tree.load")

Loads one saved spawn tree snapshot

View Source
var SpawnTreeSave = NewMethod[SpawnTreeSaveParams, SpawnTreeSaveResult]("spawn_tree.save")

Saves a spawn tree snapshot of a session's subagents

View Source
var StatusUpdateEvent = NewEvent[StatusUpdatePayload]("status.update")

Transient status line

View Source
var SubagentCompleteEvent = NewEvent[SubagentEventPayload]("subagent.complete")

A child finished with its status and usage rollup

View Source
var SubagentInterrupt = NewMethod[SubagentIDParams, SubagentInterruptResult]("subagent.interrupt")

Hard interrupts one owned child, found false when it already finished

View Source
var SubagentList = NewMethod[SessionIDParams, SubagentListResult]("subagent.list")

Live children this session owns and its failed delegations

View Source
var SubagentProgressEvent = NewEvent[SubagentEventPayload]("subagent.progress")

Batched tool names a child ran

View Source
var SubagentSpawnRequestedEvent = NewEvent[SubagentEventPayload]("subagent.spawn_requested")

A delegate accepted a child goal before the child starts

View Source
var SubagentStartEvent = NewEvent[SubagentEventPayload]("subagent.start")

A delegated child started running

View Source
var SubagentSteer = NewMethod[SubagentSteerParams, SubagentSteerResult]("subagent.steer")

Queues steering text into a live delegated child this session owns

View Source
var SubagentTail = NewMethod[SubagentIDParams, SubagentTailResult]("subagent.tail")

Last 16 KB of the transcript of a child the conversation spawned, running or finished

View Source
var SubagentThinkingEvent = NewEvent[SubagentEventPayload]("subagent.thinking")

A reasoning chunk of a child

View Source
var SubagentToolEvent = NewEvent[SubagentEventPayload]("subagent.tool")

A child called a tool

View Source
var SudoRequest = NewRequest[SudoRequestParams, ValueAnswer]("sudo")

Sudo password for the terminal tool, never stored

View Source
var SystemBattery = NewMethod[ProfileParams, SystemBatteryResult]("system.battery")

Battery of the host the gateway runs on

View Source
var TerminalResize = NewMethod[TerminalResizeParams, TerminalResizeResult]("terminal.resize")

Tells a live session the terminal width it renders for

View Source
var ThinkingDeltaEvent = NewEvent[StreamDeltaPayload]("thinking.delta")

Thinking text of the agent's thinking callback

View Source
var TodoUpdatedEvent = NewEvent[TodoState]("todo.updated")

Task list after a planning tool ran

View Source
var ToolCompleteEvent = NewEvent[ToolCompletePayload]("tool.complete")

A tool call finished

View Source
var ToolGeneratingEvent = NewEvent[ToolGeneratingPayload]("tool.generating")

The model is writing a tool call's arguments

View Source
var ToolOutputRiskEvent = NewEvent[ToolOutputRiskPayload]("tool.output_risk")

A tool's output carries injection findings

View Source
var ToolProgressEvent = NewEvent[ToolProgressPayload]("tool.progress")

Progress of a running MCP tool call

View Source
var ToolStartEvent = NewEvent[ToolStartPayload]("tool.start")

A tool call began

View Source
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

View Source
var ToolsList = NewMethod[ToolsListParams, ToolsListResult]("tools.list")

Every toolset and MCP tool of a platform with its status

View Source
var ToolsShow = NewMethod[SessionScopedParams, ToolsShowResult]("tools.show")

Tools of the session grouped by toolset, deferred tools included

View Source
var VaultCodeRequest = NewRequest[VaultCodeRequestParams, ValueAnswer]("vault.code")

One time or two factor code the user reads from a device

View Source
var VaultSaveLoginRequest = NewRequest[VaultSaveLoginRequestParams, ValueAnswer]("vault.save_login")

Login to keep for a site the agent is about to fill

View Source
var VaultUnlockRequest = NewRequest[VaultUnlockRequestParams, ValueAnswer]("vault.unlock_prompt")

Master password unlocking a password manager for the session

View Source
var VoiceInterruptedEvent = NewEvent[NoPayload]("voice.interrupted")

A spoken interjection interrupted the turn

View Source
var VoicePartialEvent = NewEvent[VoicePartialPayload]("voice.partial")

Live text so far while the user still speaks

View Source
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

View Source
var VoiceRecord = NewMethod[VoiceRecordParams, VoiceRecordResult]("voice.record")

Starts or stops a push to talk capture, the text arriving as voice.transcript

View Source
var VoiceSpeechEvent = NewEvent[VoiceSpeechPayload]("voice.speech")

Spoken reply audio and thinking blips of a session, sent only to the window that plays them

View Source
var VoiceStatusEvent = NewEvent[VoiceStatusPayload]("voice.status")

The recorder state changed

View Source
var VoiceToggle = NewMethod[VoiceToggleParams, VoiceToggleResult]("voice.toggle")

Turns voice mode or speech output on or off, or reports them with the requirements probe

View Source
var VoiceTranscriptEvent = NewEvent[VoiceTranscriptPayload]("voice.transcript")

A voice capture produced text or ended on a stop phrase or the silence limit

View Source
var WakeDetectedEvent = NewEvent[WakeDetectedPayload]("wake.detected")

A wake phrase fired

View Source
var WakeResume = NewMethod[WakeControlParams, WakeResumeResult]("wake.resume")

Reclaims the microphone after a pause, nothing when the listener is not armed

View Source
var WakeStart = NewMethod[WakeStartParams, WakeStartResult]("wake.start")

Arms the wake word listener for the calling surface

View Source
var WakeStatus = NewMethod[WakeStatusParams, WakeStatusResult]("wake.status")

Everything a client needs to draw the wake word state and decide whether to arm it

View Source
var WakeStop = NewMethod[WakeStopParams, WakeStopResult]("wake.stop")

Stops this surface's listener, persist also turning the wake word off in config

View Source
var WorkerAdopt = NewCanonicalMethod[WorkerScopeParams, WorkerExecution]("worker.adopt")

Adopts a registered execution after the live producer claim is verified

View Source
var WorkerPersist = NewCanonicalMethod[WorkerPersistParams, map[string]any]("worker.persist")

Durable write of an adopted worker answered with the operation's receipt

View Source
var WorkerRegister = NewCanonicalMethod[WorkerRegisterParams, WorkerExecution]("worker.register")

Registers a compute worker execution on an idle session

View Source
var WorktreeCreate = NewMethod[WorktreeCreateParams, WorktreeCreateResult]("worktree.create")

Creates an isolated git worktree on a new branch

View Source
var WorktreeList = NewMethod[WorktreeCwdParams, WorktreeListResult]("worktree.list")

Git worktrees of the folder's repository

View Source
var WorktreePrune = NewMethod[WorktreePruneParams, WorktreePruneResult]("worktree.prune")

Reclaims stale trees and merged branches, or names what a dry run would reclaim

View Source
var WorktreeRecord = NewMethod[WorktreeRef, WorktreeRecordResult]("worktree.record")

Remembers a tree a session moved into, so its resume finds it

View Source
var WorktreeSettle = NewMethod[WorktreeRef, WorktreeSettleResult]("worktree.settle")

Removes a clean tree and its branch, or says why it is kept

View Source
var WorktreeStatus = NewMethod[WorktreeStatusParams, WorktreeStatusResult]("worktree.status")

Repository of a folder and the tree a -w launch locked

Functions

func LocalImagePath

func LocalImagePath(candidate any) string

Candidate as the path of an existing local image file, empty for anything else, URLs and data URLs included

func Loose

func Loose(raw any, out any) error

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

func MissingParam(method, field string) error

Refusal the gateway gives params that lack a field the method requires

func NormalizeSlashSearchQuery

func NormalizeSlashSearchQuery(query string) string

Slash query trimmed, stripped of leading slashes and lowercased

func Plain

func Plain(v any) any

Wire value of a typed value, plain maps, lists, text, booleans, int64 and float64, nil lists and maps empty

func ReportMisfit

func ReportMisfit(kind, name string, misfit error)

Panics with a contract misfit under test isolation, logs it as an error otherwise

func RoomPayload

func RoomPayload[T any](event RoomEvent) (T, bool)

Payload of a room log event read into the type of its kind, false when it holds another shape

func SameBuild

func SameBuild(build string, contract int64) bool

Whether a peer that reported this build and contract version runs the same build as this process

func ScoreFields

func ScoreFields(fields []string, query string, offset float64) float64

Best exact, prefix or substring tier of any field plus offset, infinity on a miss

func SealPayload

func SealPayload(name string, payload map[string]any) map[string]any

Payload of an event checked against its declared type, a misfit reported and the payload kept

func SetupValue

func SetupValue[T any](values map[string]json.RawMessage, name string) (T, bool)

Named value of a load decoded into its type, false when absent or of another shape

func Strict

func Strict(raw any, out any) error

Decodes a wire value into out, refusing unknown keys, missing required keys and wrong types with the field named

func TokenizeSearchText

func TokenizeSearchText(value string) []string

Lowercased value followed by its alphanumeric words, the search tokens of a slash menu field

func ToolImagePath

func ToolImagePath(toolName string, args map[string]any, result any, isError bool) string

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

func UnknownMethodMessage(method string) string

Text of the method not found error both routes send

func UnknownParam

func UnknownParam(method, field string) error

Refusal the gateway gives params carrying a field the method does not declare

func WireNames

func WireNames[T any]() []string

Wire names of the top level fields of a struct type, in declaration order

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 AutoContinue struct {
	Attempt       int64   `json:"attempt"`
	InterruptedAt float64 `json:"interrupted_at"`
}

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

type CanonicalAttachment struct {
	Path string `json:"path"`
	Mime string `json:"mime"`
}

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

type CanonicalPendingAdmissionStatus

type CanonicalPendingAdmissionStatus string

func (CanonicalPendingAdmissionStatus) Values

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

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

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 CanonicalRoomAttemptParams

type CanonicalRoomAttemptParams 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"`
}

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 CanonicalSessionRef struct {
	ProfileID string `json:"profile_id"`
	SessionID string `json:"session_id"`
}

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

type CatalogServerError struct {
	Name  string `json:"name"`
	Error string `json:"error"`
}

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

type CommandCategory struct {
	Name  string      `json:"name"`
	Pairs [][2]string `json:"pairs"`
}

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 ConfigGetParams struct {
	Profile   *string `json:"profile,omitzero"`
	Key       string  `json:"key"`
	Cwd       string  `json:"cwd,omitzero"`
	SessionID string  `json:"session_id,omitzero"`
}

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

type ConfigValue struct {
	Text string
	Flag *bool
}

Value of a config key, a word for most keys and a flag for the boolean switches

func FlagValue

func FlagValue(on bool) *ConfigValue

Config value carrying a flag

func TextValue

func TextValue(text string) *ConfigValue

Config value carrying a word

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 ContextCategory struct {
	ID     string `json:"id"`
	Label  string `json:"label"`
	Tokens int64  `json:"tokens"`
}

type ContextFileSource

type ContextFileSource struct {
	Label     string `json:"label"`
	Path      string `json:"path"`
	Chars     int64  `json:"chars"`
	EstTokens int64  `json:"est_tokens"`
	Loaded    bool   `json:"loaded"`
	Status    string `json:"status"`
}

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 CronAdmissionParams struct {
	SessionID   string `json:"session_id"`
	AdmissionID string `json:"admission_id"`
}

type CronCancelResult

type CronCancelResult struct {
	Ok bool `json:"ok"`
}

type CronOutcome

type CronOutcome struct {
	Success       bool
	Output        string
	FinalResponse string
	Error         *string
}

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 CronSubmitResult struct {
	SessionID   string `json:"session_id"`
	AdmissionID string `json:"admission_id"`
}

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 DisplayInstallLogPayload

type DisplayInstallLogPayload struct {
	ProfileKey string `json:"profile_key"`
	Line       string `json:"line"`
}

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 DisplayStopParams struct {
	Profile *string `json:"profile,omitzero"`
	Force   bool    `json:"force,omitzero"`
}

type DisplayStopResult

type DisplayStopResult struct {
	DisplayStatus
	Stopped bool `json:"stopped"`
}

type DisplaySwitchSandboxImageParams

type DisplaySwitchSandboxImageParams struct {
	Profile *string `json:"profile,omitzero"`
	Approve bool    `json:"approve"`
}

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

type Entry struct {
	Kind   Kind
	Name   string
	Params reflect.Type
	Result reflect.Type
}

One declared method, request or event with the Go types of its params and of its result or payload

func Entries

func Entries(kind Kind) []*Entry

Entries of a route sorted by name

func Lookup

func Lookup(kind Kind, name string) *Entry

Entry of a route by name, nil when the route declares none

func (*Entry) CheckResult

func (e *Entry) CheckResult(raw any) error

Checks a result or payload strictly against the entry's type, the misfit naming the field

func (*Entry) FitParams

func (e *Entry) FitParams(raw any) error

Params a server route received, refused with the method and field named when they do not fit

func (*Entry) ResultNames

func (e *Entry) ResultNames() []string

Wire names of the top level fields of the result or payload, in declaration order

func (*Entry) TakesParam

func (e *Entry) TakesParam(name string) bool

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

func NewEvent

func NewEvent[T any](name string) Event[T]

Declares an event

func (Event[T]) Name

func (ev Event[T]) Name() string

Wire name of the event

func (Event[T]) Payload

func (ev Event[T]) Payload(raw any) (T, error)

Payload a client reads, unknown and missing keys tolerated

func (Event[T]) Wire

func (ev Event[T]) Wire(payload T) map[string]any

Wire payload of a typed value

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 FitError

type FitError struct {
	Field   string
	Problem string
}

Value that does not fit its contract type, naming the field

func (*FitError) Error

func (e *FitError) Error() string

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 GoalContractSnapshot struct {
	Outcome      string `json:"outcome,omitzero"`
	Verification string `json:"verification,omitzero"`
	Constraints  string `json:"constraints,omitzero"`
	Boundaries   string `json:"boundaries,omitzero"`
	StopWhen     string `json:"stop_when,omitzero"`
}

type GoalGateSnapshot

type GoalGateSnapshot struct {
	Command        string `json:"command"`
	TimeoutSeconds int64  `json:"timeout_seconds"`
	MaxRetries     int64  `json:"max_retries"`
	Attempts       int64  `json:"attempts"`
	LastExitCode   *int64 `json:"last_exit_code,omitzero"`
}

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 GroupsApproveResult struct {
	Approved *bool          `json:"approved,omitzero"`
	Result   map[string]any `json:"result"`
	Queued   *bool          `json:"queued,omitzero"`
}

type GroupsAttachmentDownloadParams

type GroupsAttachmentDownloadParams struct {
	Profile      *string `json:"profile,omitzero"`
	RoomID       string  `json:"room_id"`
	EventID      string  `json:"event_id"`
	AttachmentID string  `json:"attachment_id"`
}

type GroupsAttachmentUploadParams

type GroupsAttachmentUploadParams struct {
	Profile    *string `json:"profile,omitzero"`
	RoomID     string  `json:"room_id"`
	UploadID   string  `json:"upload_id"`
	Kind       string  `json:"kind"`
	Name       string  `json:"name"`
	Mime       string  `json:"mime"`
	DataBase64 string  `json:"data_base64"`
}

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 GroupsContinueParams struct {
	Profile           *string `json:"profile,omitzero"`
	RoomID            string  `json:"room_id"`
	DiscussionEventID string  `json:"discussion_event_id"`
}

type GroupsContinueResult

type GroupsContinueResult struct {
	Continued *bool      `json:"continued,omitzero"`
	Event     *RoomEvent `json:"event,omitzero"`
	Queued    *bool      `json:"queued,omitzero"`
}

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 GroupsDisbandParams struct {
	Profile  *string `json:"profile,omitzero"`
	RoomID   string  `json:"room_id"`
	CancelID *string `json:"cancel_id,omitzero"`
}

type GroupsDisbandResult

type GroupsDisbandResult struct {
	Tombstone *RoomTombstone `json:"tombstone,omitzero"`
	Queued    *bool          `json:"queued,omitzero"`
}

type GroupsDiscardParams

type GroupsDiscardParams 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"`
}

type GroupsDiscardResult

type GroupsDiscardResult struct {
	Discarded *bool            `json:"discarded,omitzero"`
	Task      *RoomTaskReceipt `json:"task,omitzero"`
	Queued    *bool            `json:"queued,omitzero"`
}

type GroupsListParams

type GroupsListParams struct {
	Profile          *string `json:"profile,omitzero"`
	IncludeDisbanded *bool   `json:"include_disbanded,omitzero"`
	Limit            *int64  `json:"limit,omitzero"`
	Offset           *int64  `json:"offset,omitzero"`
}

type GroupsListResult

type GroupsListResult struct {
	Rooms      []Room `json:"rooms"`
	NextOffset *int64 `json:"next_offset,omitzero"`
}

type GroupsLogParams

type GroupsLogParams struct {
	Profile          *string `json:"profile,omitzero"`
	RoomID           string  `json:"room_id"`
	SinceSeq         *int64  `json:"since_seq,omitzero"`
	Limit            *int64  `json:"limit,omitzero"`
	IncludeDisbanded *bool   `json:"include_disbanded,omitzero"`
}

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 GroupsPeersParams struct {
	Profile *string `json:"profile,omitzero"`
	RoomID  *string `json:"room_id,omitzero"`
}

type GroupsPeersResult

type GroupsPeersResult struct {
	Peers  []RoomPeer  `json:"peers"`
	Shares []RoomShare `json:"shares"`
}

type GroupsPromoteParams

type GroupsPromoteParams struct {
	Profile *string `json:"profile,omitzero"`
	RoomID  string  `json:"room_id"`
	Confirm *bool   `json:"confirm,omitzero"`
	Reason  *string `json:"reason,omitzero"`
}

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 GroupsRenameParams struct {
	Profile *string `json:"profile,omitzero"`
	RoomID  string  `json:"room_id"`
	EventID string  `json:"event_id"`
	Name    string  `json:"name"`
}

type GroupsRenameResult

type GroupsRenameResult struct {
	Room   Room  `json:"room"`
	Queued *bool `json:"queued,omitzero"`
}

type GroupsReplicaStateParams

type GroupsReplicaStateParams struct {
	Profile *string `json:"profile,omitzero"`
	RoomID  string  `json:"room_id"`
}

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 GroupsRetryParams struct {
	Profile             *string `json:"profile,omitzero"`
	RoomID              string  `json:"room_id"`
	TaskID              string  `json:"task_id"`
	MemberID            *string `json:"member_id,omitzero"`
	ExecutionGeneration *int64  `json:"execution_generation,omitzero"`
}

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 GroupsSendResult struct {
	Event         *RoomEvent `json:"event,omitzero"`
	ClientEventID *string    `json:"client_event_id,omitzero"`
	Accepted      *bool      `json:"accepted,omitzero"`
	DriverStarted *bool      `json:"driver_started,omitzero"`
	Queued        *bool      `json:"queued,omitzero"`
}

type GroupsShareParams

type GroupsShareParams struct {
	Profile *string `json:"profile,omitzero"`
	RoomID  string  `json:"room_id"`
	Peer    string  `json:"peer"`
}

type GroupsShareResult

type GroupsShareResult struct {
	Share RoomShare `json:"share"`
}

type GroupsStateParams

type GroupsStateParams struct {
	Profile          *string `json:"profile,omitzero"`
	RoomID           string  `json:"room_id"`
	IncludeDisbanded *bool   `json:"include_disbanded,omitzero"`
}

type GroupsStateResult

type GroupsStateResult struct {
	Room         Room              `json:"room"`
	DriverStatus *RoomDriverStatus `json:"driver_status,omitzero"`
}

type GroupsStopParams

type GroupsStopParams struct {
	Profile  *string `json:"profile,omitzero"`
	RoomID   string  `json:"room_id"`
	CancelID *string `json:"cancel_id,omitzero"`
}

type GroupsStopResult

type GroupsStopResult struct {
	Cancelled int64 `json:"cancelled"`
	Queued    *bool `json:"queued,omitzero"`
}

type HandoffFailParams

type HandoffFailParams struct {
	SessionID string  `json:"session_id"`
	Profile   *string `json:"profile,omitzero"`
	Error     string  `json:"error,omitzero"`
}

type HandoffFailResult

type HandoffFailResult struct {
	Failed bool   `json:"failed"`
	State  string `json:"state"`
}

Whether this call failed the handoff, and the state it is in

type HandoffRequestParams

type HandoffRequestParams struct {
	SessionID string  `json:"session_id"`
	Profile   *string `json:"profile,omitzero"`
	Platform  string  `json:"platform"`
}

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 HeartbeatSnapshot struct {
	Prompt          string  `json:"prompt"`
	Status          string  `json:"status"`
	IntervalSeconds int64   `json:"interval_seconds"`
	CreatedAt       float64 `json:"created_at"`
	LastFiredAt     float64 `json:"last_fired_at"`
	FireCount       int64   `json:"fire_count"`
}

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 ImageAttachParams struct {
	SessionID string  `json:"session_id"`
	Profile   *string `json:"profile,omitzero"`
	Path      string  `json:"path"`
}

type ImageDetachParams

type ImageDetachParams struct {
	SessionID string  `json:"session_id"`
	Profile   *string `json:"profile,omitzero"`
	Path      string  `json:"path"`
}

type ImageDetachResult

type ImageDetachResult struct {
	Detached bool  `json:"detached"`
	Count    int64 `json:"count"`
}

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 InputDetectDropParams struct {
	SessionID string  `json:"session_id"`
	Profile   *string `json:"profile,omitzero"`
	Text      string  `json:"text,omitzero"`
}

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 Kind

type Kind string

Route a contract entry travels

const (
	// Client method the gateway's method table serves
	KindMethod Kind = "method"
	// Client method the session authority serves
	KindCanonical Kind = "canonical"
	// Question the gateway asks the client
	KindRequest Kind = "request"
	// Notification the gateway sends
	KindEvent Kind = "event"
)

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 LearningAxis struct {
	Start string `json:"start"`
	End   string `json:"end"`
}

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 LearningEditParams struct {
	ID      string `json:"id"`
	Content string `json:"content"`
}

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 LearningFramesParams struct {
	Cols   int64 `json:"cols,omitzero"`
	Rows   int64 `json:"rows,omitzero"`
	Frames int64 `json:"frames,omitzero"`
}

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 LearningGraphCluster struct {
	Category string `json:"category"`
	Count    int64  `json:"count"`
}

type LearningGraphEdge

type LearningGraphEdge struct {
	Source string `json:"source"`
	Target string `json:"target"`
}

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 LearningLegendItem struct {
	Glyph string `json:"glyph"`
	Label string `json:"label"`
	Style string `json:"style,omitzero"`
	Color string `json:"color,omitzero"`
}

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 LearningMutationResult struct {
	Ok      bool   `json:"ok"`
	Message string `json:"message,omitzero"`
}

type LearningNodeKind

type LearningNodeKind string

func (LearningNodeKind) Values

func (LearningNodeKind) Values() []string

type LearningNodeParams

type LearningNodeParams struct {
	ID string `json:"id"`
}

type LearningNodeRow

type LearningNodeRow struct {
	ID        string `json:"id"`
	Glyph     string `json:"glyph"`
	Label     string `json:"label"`
	FullLabel string `json:"fullLabel"`
	Meta      string `json:"meta"`
	Body      string `json:"body"`
	Style     string `json:"style"`
}

type LearningRun

type LearningRun struct {
	Text  string
	Style string
	Alpha float64
	Hex   string
}

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

type MCPProbeTool struct {
	Name        string `json:"name"`
	Description string `json:"description"`
}

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

type MCPServersRemoveResult struct {
	OK      bool `json:"ok"`
	Removed bool `json:"removed"`
}

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

func NewCanonicalMethod[P, R any](name string) Method[P, R]

Declares a method the session authority serves

func NewMethod

func NewMethod[P, R any](name string) Method[P, R]

Declares a method the gateway's method table serves

func (Method[P, R]) Entry

func (m Method[P, R]) Entry() *Entry

Declared entry of the method

func (Method[P, R]) Name

func (m Method[P, R]) Name() string

Wire name of the method

func (Method[P, R]) Params

func (m Method[P, R]) Params(raw any) (P, error)

Params a client sent, refused with the field named when they do not fit

func (Method[P, R]) Result

func (m Method[P, R]) Result(raw any) (R, error)

Result an answer carries, unknown and missing keys tolerated and a wrong type refused

type MirroredValue

type MirroredValue struct {
	Done   bool
	Shared 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 ModelCapabilities struct {
	Fast                bool  `json:"fast"`
	Ultrafast           bool  `json:"ultrafast,omitzero"`
	Daybreak            bool  `json:"daybreak,omitzero"`
	Reasoning           bool  `json:"reasoning"`
	CanDisableReasoning *bool `json:"can_disable_reasoning,omitzero"`
}

type ModelDisconnectParams

type ModelDisconnectParams struct {
	Profile   *string `json:"profile,omitzero"`
	Slug      string  `json:"slug"`
	SessionID string  `json:"session_id,omitzero"`
}

type ModelDisconnectResult

type ModelDisconnectResult struct {
	Slug         string `json:"slug"`
	Name         string `json:"name"`
	Disconnected bool   `json:"disconnected"`
}

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 ModelOptionsParams struct {
	Profile             *string `json:"profile,omitzero"`
	SessionID           string  `json:"session_id,omitzero"`
	ExplicitOnly        bool    `json:"explicit_only,omitzero"`
	IncludeUnconfigured bool    `json:"include_unconfigured,omitzero"`
	Refresh             bool    `json:"refresh,omitzero"`
}

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 ModelSaveKeyParams struct {
	Profile   *string `json:"profile,omitzero"`
	Slug      string  `json:"slug"`
	APIKey    string  `json:"api_key"`
	SessionID string  `json:"session_id,omitzero"`
}

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 NoPayload

type NoPayload struct{}

Payload of an event that carries none

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 OpenRequestEntry struct {
	ID     string         `json:"id"`
	Method string         `json:"method"`
	Params map[string]any `json:"params"`
}

type ParamsRefusal

type ParamsRefusal struct {
	Method string
	Fit    error
}

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 PeerRouteStatus struct {
	RoomID   string `json:"room_id"`
	MemberID string `json:"member_id"`
	Status   string `json:"status"`
}

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 PetCancelParams struct {
	Profile *string `json:"profile,omitzero"`
	Token   string  `json:"token,omitzero"`
}

type PetCellFrames

type PetCellFrames struct {
	Cells [][][][8]int64
	Kitty []string
}

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 PetDraft

type PetDraft struct {
	Index   int64  `json:"index"`
	DataURI string `json:"dataUri"`
}

type PetExportResult

type PetExportResult struct {
	Ok        bool   `json:"ok"`
	Filename  string `json:"filename"`
	ZipBase64 string `json:"zipBase64"`
}

type PetGalleryEntry

type PetGalleryEntry struct {
	Slug           string `json:"slug"`
	DisplayName    string `json:"displayName"`
	Installed      bool   `json:"installed"`
	SpritesheetURL string `json:"spritesheetUrl,omitzero"`
	Curated        bool   `json:"curated,omitzero"`
	Generated      bool   `json:"generated,omitzero"`
}

type PetGalleryParams

type PetGalleryParams struct {
	Profile   *string `json:"profile,omitzero"`
	LocalOnly bool    `json:"localOnly,omitzero"`
}

type PetGalleryResult

type PetGalleryResult struct {
	Enabled bool              `json:"enabled"`
	Active  string            `json:"active,omitzero"`
	Pets    []PetGalleryEntry `json:"pets,omitzero"`
}

type PetGenerateParams

type PetGenerateParams struct {
	Profile        *string `json:"profile,omitzero"`
	Prompt         string  `json:"prompt,omitzero"`
	ReferenceImage string  `json:"referenceImage,omitzero"`
	Count          int64   `json:"count,omitzero"`
	Style          string  `json:"style,omitzero"`
	Provider       string  `json:"provider,omitzero"`
}

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 PetGenerateResult struct {
	Ok     bool       `json:"ok"`
	Token  string     `json:"token"`
	Drafts []PetDraft `json:"drafts"`
}

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 PetInfoParams struct {
	Profile       *string `json:"profile,omitzero"`
	KnownRevision string  `json:"knownRevision,omitzero"`
}

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 PetRenameParams struct {
	Profile *string `json:"profile,omitzero"`
	Slug    string  `json:"slug"`
	Name    string  `json:"name"`
}

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 PetScaleResult struct {
	Ok    bool    `json:"ok"`
	Scale float64 `json:"scale"`
}

type PetSlugParams

type PetSlugParams struct {
	Profile *string `json:"profile,omitzero"`
	Slug    string  `json:"slug"`
}

type PetSlugResult

type PetSlugResult struct {
	Ok          bool   `json:"ok"`
	Slug        string `json:"slug"`
	DisplayName string `json:"displayName,omitzero"`
}

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 PluginToolsetRow struct {
	Key         string `json:"key"`
	Label       string `json:"label"`
	Description string `json:"description"`
}

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

type PluginUpdateSkip struct {
	Name   string `json:"name"`
	Reason string `json:"reason"`
}

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 ProcessKillParams struct {
	SessionID string  `json:"session_id"`
	ProcessID string  `json:"process_id"`
	Profile   *string `json:"profile,omitzero"`
}

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"`
	SharedChannels     []string                 `json:"shared_channels"`
	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"`
	ShareAuth         *bool   `json:"share_auth,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 ProfilesExportResult struct {
	Name string `json:"name"`
	Path string `json:"path"`
}

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 ProfilesListParams struct {
	Profile         *string `json:"profile,omitzero"`
	IncludeSessions *bool   `json:"include_sessions,omitzero"`
}

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 ProjectRef struct {
	ID          string  `json:"id"`
	Slug        string  `json:"slug"`
	Name        string  `json:"name"`
	PrimaryPath *string `json:"primary_path,omitzero"`
}

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"`
	Unavailable    []string          `json:"unavailable,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

func NewRequest[P, R any](name string) Request[P, R]

Declares a server to client request

func (Request[P, R]) Name

func (q Request[P, R]) Name() string

Wire name of the request

func (Request[P, R]) Params

func (q Request[P, R]) Params(raw any) (P, error)

Params the client reads, unknown and missing keys tolerated

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 RoomActor

type RoomActor struct {
	Kind         string  `json:"kind"`
	ID           string  `json:"id"`
	Profile      *string `json:"profile,omitzero"`
	DisplayName  *string `json:"display_name,omitzero"`
	ConnectionID *string `json:"connection_id,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 RoomAuthority struct {
	GatewayID string `json:"gateway_id"`
	Epoch     int64  `json:"epoch"`
}

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 RoomExecutionPolicy struct {
	Version         int64    `json:"version"`
	TargetProfile   string   `json:"target_profile"`
	EnabledToolsets []string `json:"enabled_toolsets"`
	ApprovalMode    string   `json:"approval_mode"`
	MaxIterations   int64    `json:"max_iterations"`
	PolicyDigest    string   `json:"policy_digest"`
}

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 RoomLinkEndpoint struct {
	Available         bool    `json:"available"`
	URL               *string `json:"url,omitzero"`
	TransportSecurity *string `json:"transport_security,omitzero"`
	Reason            *string `json:"reason,omitzero"`
}

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 RoomMemberActivity struct {
	MemberID string `json:"member_id"`
	Status   string `json:"status"`
}

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 RoomPeer

type RoomPeer struct {
	Name string  `json:"name"`
	URL  string  `json:"url"`
	Key  bool    `json:"key"`
	Note *string `json:"note,omitzero"`
}

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 RoomQueuedError struct {
	OutboxID int64  `json:"outbox_id"`
	Op       string `json:"op"`
	Error    string `json:"error"`
}

type RoomRenamedPayload

type RoomRenamedPayload struct {
	Name string `json:"name,omitzero"`
}

Payload of a room.renamed event

type RoomShare

type RoomShare struct {
	RoomID    string         `json:"room_id"`
	Peer      string         `json:"peer"`
	PushedSeq *int64         `json:"pushed_seq,omitzero"`
	State     RoomShareState `json:"state"`
	Error     *string        `json:"error,omitzero"`
	SyncedAt  *float64       `json:"synced_at,omitzero"`
}

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 RoomTaskReceipt struct {
	RoomID              string `json:"room_id"`
	TaskID              string `json:"task_id"`
	ThreadID            string `json:"thread_id"`
	TurnID              string `json:"turn_id"`
	Status              string `json:"status"`
	ExecutionGeneration int64  `json:"execution_generation"`
	CancelGeneration    int64  `json:"cancel_generation"`
}

type RoomTombstone

type RoomTombstone struct {
	RoomID         string     `json:"room_id"`
	DisbandedAt    float64    `json:"disbanded_at"`
	Idempotent     bool       `json:"idempotent"`
	HistoryExpired *bool      `json:"history_expired,omitzero"`
	Event          *RoomEvent `json:"event,omitzero"`
}

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 SeedMessage struct {
	Role        string  `json:"role"`
	Content     *string `json:"content,omitzero"`
	Text        *string `json:"text,omitzero"`
	DisplayKind *string `json:"display_kind,omitzero"`
}

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 SessionActivateParams struct {
	SessionID    string  `json:"session_id"`
	Profile      *string `json:"profile,omitzero"`
	Cols         *int64  `json:"cols,omitzero"`
	OmitMessages bool    `json:"omit_messages,omitzero"`
}

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 SessionActiveListParams struct {
	Profile          *string `json:"profile,omitzero"`
	CurrentSessionID *string `json:"current_session_id,omitzero"`
}

type SessionActiveListResult

type SessionActiveListResult struct {
	Sessions []SessionActiveItem `json:"sessions"`
}

type SessionAutomationParams

type SessionAutomationParams struct {
	SessionID string                      `json:"session_id"`
	Kind      SessionAutomationParamsKind `json:"kind"`
	Call      string                      `json:"call"`
	Args      []any                       `json:"args,omitzero"`
	Kwargs    map[string]any              `json:"kwargs,omitzero"`
}

type SessionAutomationParamsKind

type SessionAutomationParamsKind string

func (SessionAutomationParamsKind) Values

type SessionAutomationResult

type SessionAutomationResult struct {
	State *string           `json:"state"`
	Value any               `json:"value,omitzero"`
	Error map[string]string `json:"error,omitzero"`
}

type SessionBranchParams

type SessionBranchParams struct {
	SessionID      string  `json:"session_id"`
	Profile        *string `json:"profile,omitzero"`
	Name           *string `json:"name,omitzero"`
	Count          *int64  `json:"count,omitzero"`
	IdempotencyKey *string `json:"idempotency_key,omitzero"`
}

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 SessionCloseParams struct {
	SessionID string  `json:"session_id"`
	Profile   *string `json:"profile,omitzero"`
}

type SessionCloseResult

type SessionCloseResult struct {
	Closed   bool     `json:"closed"`
	Messages []string `json:"messages,omitzero"`
}

type SessionCompressParams

type SessionCompressParams struct {
	SessionID  string  `json:"session_id"`
	Profile    *string `json:"profile,omitzero"`
	FocusTopic *string `json:"focus_topic,omitzero"`
}

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 SessionContextBreakdownParams

type SessionContextBreakdownParams struct {
	SessionID string  `json:"session_id"`
	Profile   *string `json:"profile,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 SessionControlReadParams

type SessionControlReadParams struct {
	Profile   *string `json:"profile,omitzero"`
	SessionID string  `json:"session_id"`
}

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 SessionCreateDescriptor struct {
	Sources    []string `json:"sources"`
	Parameters []string `json:"parameters"`
}

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 SessionDeleteParams struct {
	SessionID string  `json:"session_id"`
	Profile   *string `json:"profile,omitzero"`
}

type SessionDeleteResult

type SessionDeleteResult struct {
	Deleted string `json:"deleted"`
}

type SessionDetachParams

type SessionDetachParams struct {
	SessionID      string  `json:"session_id"`
	SubscriptionID string  `json:"subscription_id"`
	EndReason      *string `json:"end_reason,omitzero"`
}

type SessionDetachResult

type SessionDetachResult struct {
	SessionID      string `json:"session_id"`
	SubscriptionID string `json:"subscription_id"`
	Detached       bool   `json:"detached"`
}

type SessionExportParams

type SessionExportParams struct {
	SessionID string  `json:"session_id"`
	Profile   *string `json:"profile,omitzero"`
	Format    *string `json:"format,omitzero"`
	Redact    bool    `json:"redact,omitzero"`
}

type SessionExportResult

type SessionExportResult struct {
	Format   string `json:"format"`
	Filename string `json:"filename"`
	Content  string `json:"content"`
}

type SessionHistoryParams

type SessionHistoryParams struct {
	SessionID string  `json:"session_id"`
	Profile   *string `json:"profile,omitzero"`
}

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 SessionListParams struct {
	Profile       *string `json:"profile,omitzero"`
	Title         *string `json:"title,omitzero"`
	Limit         *int64  `json:"limit,omitzero"`
	IncludeHidden bool    `json:"include_hidden,omitzero"`
}

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 SessionMostRecentResult struct {
	SessionID *string  `json:"session_id"`
	Title     *string  `json:"title,omitzero"`
	StartedAt *float64 `json:"started_at,omitzero"`
	Source    *string  `json:"source,omitzero"`
}

type SessionMutateParams

type SessionMutateParams struct {
	SessionID          string         `json:"session_id"`
	RequestID          string         `json:"request_id"`
	ExpectedRevision   int64          `json:"expected_revision"`
	Operation          string         `json:"operation"`
	Payload            map[string]any `json:"payload"`
	ExpectedGeneration *int64         `json:"expected_generation,omitzero"`
}

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 SessionPruneParams struct {
	Filters         map[string]any `json:"filters,omitzero"`
	NeverActiveDays *float64       `json:"never_active_days,omitzero"`
}

type SessionPruneResult

type SessionPruneResult struct {
	Deleted        int64  `json:"deleted"`
	RoutingDeleted *int64 `json:"routing_deleted,omitzero"`
	Skipped        *int64 `json:"skipped,omitzero"`
}

type SessionReclaimedPayload

type SessionReclaimedPayload struct {
	SessionID       string `json:"session_id"`
	StoredSessionID string `json:"stored_session_id"`
	Reason          string `json:"reason"`
}

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 SessionSaveParams struct {
	SessionID string  `json:"session_id"`
	Profile   *string `json:"profile,omitzero"`
}

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 SessionStatusParams struct {
	SessionID string  `json:"session_id"`
	Profile   *string `json:"profile,omitzero"`
}

type SessionStatusResult

type SessionStatusResult struct {
	Output string `json:"output"`
}

type SessionTitleParams

type SessionTitleParams struct {
	SessionID string  `json:"session_id"`
	Profile   *string `json:"profile,omitzero"`
	Title     *string `json:"title,omitzero"`
}

type SessionTitlePayload

type SessionTitlePayload struct {
	SessionID string `json:"session_id"`
	Title     string `json:"title"`
}

type SessionTitleResult

type SessionTitleResult struct {
	Title      string  `json:"title"`
	SessionKey *string `json:"session_key,omitzero"`
	Pending    *bool   `json:"pending,omitzero"`
}

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 SessionUsageParams struct {
	SessionID string  `json:"session_id"`
	Profile   *string `json:"profile,omitzero"`
}

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 SessionWorkspaceMoveParams

type SessionWorkspaceMoveParams struct {
	Profile    *string `json:"profile,omitzero"`
	SessionKey string  `json:"session_key"`
	Cwd        string  `json:"cwd"`
}

type SessionWorkspaceMoveResult

type SessionWorkspaceMoveResult struct {
	Cwd         string  `json:"cwd"`
	Branch      *string `json:"branch,omitzero"`
	GitRepoRoot *string `json:"git_repo_root,omitzero"`
}

type SetupAction

type SetupAction string

func (SetupAction) Values

func (SetupAction) Values() []string

type SetupActionPollParams

type SetupActionPollParams struct {
	Job   string  `json:"job"`
	After int64   `json:"after"`
	Live  *string `json:"live,omitzero"`
}

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

type SetupDockerRuntime struct {
	Path    string `json:"path"`
	Runtime string `json:"runtime"`
}

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 SetupFlowItem struct {
	Title  string   `json:"title"`
	Detail string   `json:"detail,omitzero"`
	Tools  []string `json:"tools,omitzero"`
}

type SetupFlowOption

type SetupFlowOption struct {
	Title  string `json:"title"`
	Detail string `json:"detail,omitzero"`
}

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 SetupFlowStartParams struct {
	Flow   string            `json:"flow"`
	Params map[string]string `json:"params,omitzero"`
}

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 SetupHostedHeading struct {
	At   int64  `json:"at"`
	Text string `json:"text"`
}

type SetupHostedPollParams

type SetupHostedPollParams struct {
	Job   string `json:"job"`
	After int64  `json:"after"`
}

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

type SetupSSHDefaults struct {
	User string `json:"user"`
	Key  string `json:"key"`
}

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 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

type SkillCatalogEntry struct {
	Usage  int64  `json:"usage"`
	Origin string `json:"origin"`
}

How often a skill ran and where it came from

type SkillCommandRef

type SkillCommandRef struct {
	Name        string `json:"name"`
	Description string `json:"description,omitzero"`
}

type SkillHubHit

type SkillHubHit struct {
	Name        string `json:"name"`
	Description string `json:"description"`
}

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"`
	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

type SnapshotTargetResult struct {
	ID    *string  `json:"id"`
	Lines []string `json:"lines"`
}

Snapshot a restore names by id or list number, null with lines when none is named or the number is off

type SpawnTreeEntry

type SpawnTreeEntry struct {
	Path       string   `json:"path"`
	SessionID  *string  `json:"session_id,omitzero"`
	StartedAt  *float64 `json:"started_at,omitzero"`
	FinishedAt *float64 `json:"finished_at,omitzero"`
	Label      string   `json:"label,omitzero"`
	Count      int64    `json:"count,omitzero"`
}

type SpawnTreeListParams

type SpawnTreeListParams struct {
	Profile      *string `json:"profile,omitzero"`
	SessionID    *string `json:"session_id,omitzero"`
	CrossSession bool    `json:"cross_session,omitzero"`
	Limit        *int64  `json:"limit,omitzero"`
}

type SpawnTreeListResult

type SpawnTreeListResult struct {
	Entries []SpawnTreeEntry `json:"entries"`
}

type SpawnTreeLoadParams

type SpawnTreeLoadParams struct {
	Profile *string `json:"profile,omitzero"`
	Path    string  `json:"path"`
}

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 SpawnTreeSaveResult struct {
	Path      string `json:"path"`
	SessionID string `json:"session_id"`
}

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

type StatusUpdatePayload struct {
	Kind string `json:"kind"`
	Text string `json:"text"`
}

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 SubagentIDParams struct {
	SessionID  string  `json:"session_id"`
	Profile    *string `json:"profile,omitzero"`
	SubagentID string  `json:"subagent_id"`
}

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 SubagentSteerParams struct {
	SessionID  string  `json:"session_id"`
	Profile    *string `json:"profile,omitzero"`
	SubagentID string  `json:"subagent_id"`
	Text       string  `json:"text"`
}

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 TerminalResizeParams struct {
	SessionID string  `json:"session_id"`
	Profile   *string `json:"profile,omitzero"`
	Cols      *int64  `json:"cols,omitzero"`
}

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 ThemeMode

type ThemeMode string

func (ThemeMode) Values

func (ThemeMode) Values() []string

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 TodoState

type TodoState struct {
	Todos    []TodoItem `json:"todos"`
	Revision int64      `json:"revision"`
}

Task list of the planning tool with the revision that orders its snapshots

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

type ToolShowRow struct {
	Name        string `json:"name"`
	Description string `json:"description"`
}

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

type UntrustedProjectSkills struct {
	Root  string `json:"root"`
	Count int64  `json:"count"`
}

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 WakeDetectedPayload struct {
	Phrase          string  `json:"phrase"`
	Profile         *string `json:"profile"`
	StartNewSession bool    `json:"start_new_session"`
}

type WakeDeviceSelector

type WakeDeviceSelector struct {
	Index *int64
	Name  string
}

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 WakeResumeResult struct {
	Reason  *string `json:"reason"`
	Resumed bool    `json:"resumed"`
}

type WakeStartParams

type WakeStartParams struct {
	Surface   string  `json:"surface,omitzero"`
	Persist   bool    `json:"persist,omitzero"`
	SessionID string  `json:"session_id,omitzero"`
	Profile   *string `json:"profile,omitzero"`
}

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 WakeStatusParams struct {
	Surface string  `json:"surface,omitzero"`
	Profile *string `json:"profile,omitzero"`
}

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 WakeStopParams struct {
	Persist bool    `json:"persist,omitzero"`
	Profile *string `json:"profile,omitzero"`
}

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 WorktreeKept struct {
	Name   string `json:"name"`
	Reason string `json:"reason"`
}

type WorktreeLaunch

type WorktreeLaunch struct {
	Path   string `json:"path"`
	Branch string `json:"branch"`
}

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL