Documentation
¶
Index ¶
- Variables
- func LocalImagePath(candidate any) string
- func Loose(raw any, out any) error
- func Merge[T any](base *T, patch T)
- func MissingParam(method, field string) error
- func NormalizeSlashSearchQuery(query string) string
- func Plain(v any) any
- func ReportMisfit(kind, name string, misfit error)
- func RoomPayload[T any](event RoomEvent) (T, bool)
- func SameBuild(build string) bool
- func ScoreFields(fields []string, query string, offset float64) float64
- func SealPayload(name string, payload map[string]any) map[string]any
- func Strict(raw any, out any) error
- func TokenizeSearchText(value string) []string
- func ToolImagePath(toolName string, args map[string]any, result any, isError bool) string
- func UnknownMethodMessage(method string) string
- func UnknownParam(method, field string) error
- func WireNames[T any]() []string
- type A2AForwardParams
- type A2AForwardResult
- type ActiveSubagent
- type AdmissionReceipt
- type AgentPluginRow
- type ApprovalAnswer
- type ApprovalCancelledPayload
- type ApprovalChoice
- type ApprovalProposal
- type ApprovalRequestParams
- type ApprovalRespondParams
- type ApprovalRespondResult
- type ApprovalVerdict
- type ApprovalsAllowParams
- type ApprovalsAllowResult
- type ApprovalsSuggestParams
- type ApprovalsSuggestResult
- type ApprovalsTestParams
- type ApprovalsTestResult
- type AttachedImageResult
- type AutoContinue
- type BatteryCategory
- type BillingBlock
- type BotDeliverParams
- type BotDeliverResult
- type BrowserAction
- type BrowserManageParams
- type BrowserManageResult
- type BrowserProgressLevel
- type BrowserProgressPayload
- type BusyInputMode
- type CLIArg
- type CLICommand
- type CLIFlag
- type CLIRunClass
- type CanonicalApprovalParams
- type CanonicalAttachedImage
- type CanonicalAttachment
- type CanonicalClarifyParams
- type CanonicalControlParams
- type CanonicalCorrectionParams
- type CanonicalCreateParams
- type CanonicalListParams
- type CanonicalListParamsScope
- type CanonicalListResult
- type CanonicalListResultScope
- type CanonicalModelOverride
- type CanonicalPendingAdmission
- type CanonicalPendingAdmissionControls
- type CanonicalPendingAdmissionStatus
- type CanonicalPendingPrompt
- type CanonicalPendingPromptKind
- type CanonicalReplaceQueuedParams
- type CanonicalResumeParams
- type CanonicalResumeParamsLatest
- type CanonicalRoomApproveParams
- type CanonicalRoomAttemptParams
- type CanonicalRoomCreateParams
- type CanonicalSessionHandle
- type CanonicalSessionInfoParams
- type CanonicalSessionListRow
- type CanonicalSessionRef
- type CanonicalShellExecParams
- type CanonicalSnapshot
- type CanonicalSubmitParams
- type CanonicalTurnAuthor
- type CatalogAppState
- type CatalogApproved
- type CatalogPluginPresence
- type CatalogScan
- type CatalogScanStatus
- type CatalogServerError
- type CatalogTier
- type ChatAppPairing
- type ChatAppPeer
- type ChatAppPlatform
- type ChatAppTarget
- type ChatAppUser
- type ChatAppWebhook
- type ChatAppsListParams
- type ChatAppsListResult
- type ChatAppsPairingParams
- type ChatAppsPeerParams
- type ChatAppsResult
- type ChatAppsSendParams
- type ChatAppsWebhookParams
- type ClarifyAnswer
- type ClarifyLockParams
- type ClarifyLockResult
- type ClarifyLockStatus
- type ClarifyOutcome
- type ClarifyQuestion
- type ClarifyRequestParams
- type ClientApprovals
- type ClientCapabilitiesParams
- type ClientCapabilitiesResult
- type ClientConfig
- type ClientDisplay
- type ClientPet
- type ClientStatusBar
- type ClientVoice
- type CommandCategory
- type CommandDispatchParams
- type CommandDispatchResult
- type CommandObserveParams
- type CommandObserveResult
- type CommandsCatalogParams
- type CommandsCatalogResult
- type CommandsTreeParams
- type CommandsTreeResult
- type CompletePathParams
- type CompleteSlashParams
- type CompleteSlashResult
- type CompletionItem
- type CompletionItemsResult
- type CompletionKind
- type CompressionSummary
- type ConfigFileLock
- type ConfigFilesParams
- type ConfigFilesResult
- type ConfigGetParams
- type ConfigGetResult
- type ConfigProviderRef
- type ConfigScope
- type ConfigSetParams
- type ConfigSetResult
- type ConfigValue
- type ConfigWriteScope
- type ConnectionAckStatus
- type ConnectionActor
- type ConnectionAnswer
- type ConnectionAnswerStatus
- type ConnectionAnswerTarget
- type ConnectionDisplay
- type ConnectionOperationParams
- type ConnectionOperationSnapshot
- type ConnectionOperationTarget
- type ConnectionRequestPayload
- type ConnectionRespondParams
- type ConnectionRespondResult
- type ConnectionSettleReason
- type ConnectionTargetAction
- type ConnectionTargetEnvField
- type ConnectionTargetKind
- type ConnectionTargetState
- type ConnectionUpdatePayload
- type ConnectionWakeResult
- type ConnectorErrorReason
- type ConnectorsConnectParams
- type ContextCategory
- type ContextFileSource
- type ContractViolation
- type CorrectionAck
- type CorrectionAnswer
- type CorrectionStatus
- type CronAdmissionParams
- type CronCancelResult
- type CronIncident
- type CronIncidentAckParams
- type CronIncidentsParams
- type CronIncidentsResult
- type CronJobActionParams
- type CronJobFields
- type CronJobOutput
- type CronJobOutputParams
- type CronJobOutputResult
- type CronJobResult
- type CronJobRow
- type CronJobRun
- type CronJobRunsParams
- type CronJobRunsResult
- type CronJobWriteParams
- type CronJobsListParams
- type CronJobsListResult
- type CronOutcome
- type CronReportParams
- type CronReportResult
- type CronRunParams
- type CronStatusResult
- type CronSubmitResult
- type DelegationPauseParams
- type DelegationPauseResult
- type DelegationStatusResult
- type DetailsMode
- type DispatchType
- type DisplayImageSwitch
- type DisplayInstallDonePayload
- type DisplayInstallLogPayload
- type DisplayInstallResult
- type DisplayInstallSudoParams
- type DisplayLease
- type DisplayLeaseAcquireParams
- type DisplayLeaseHolder
- type DisplayLeasePayload
- type DisplayLeaseReleaseParams
- type DisplayLeaseResult
- type DisplayMetadata
- type DisplayStatus
- type DisplayStopParams
- type DisplayStopResult
- type DisplaySwitchSandboxImageParams
- type DisplaySwitchSandboxImageResult
- type DisplayThumbnailResult
- type EditApprovalPolicy
- type Entry
- type ErrorPayload
- type ErrorSurface
- type Event
- type EventEnvelope
- type ExecutionState
- type FailedDelegation
- type FallbackChangeParams
- type FallbackCheckParams
- type FallbackCheckResult
- type FallbackCheckRow
- type FallbackListParams
- type FallbackListResult
- type FallbackRow
- type FitError
- type GatewayReadyPayload
- type GoalContractSnapshot
- type GoalGateSnapshot
- type GoalSnapshot
- type GroupsApproveParams
- type GroupsApproveResult
- type GroupsAttachmentDownloadParams
- type GroupsAttachmentUploadParams
- type GroupsCapabilitiesParams
- type GroupsCapabilitiesResult
- type GroupsContinueParams
- type GroupsContinueResult
- type GroupsCreateParams
- type GroupsCreateResult
- type GroupsDisbandParams
- type GroupsDisbandResult
- type GroupsDiscardParams
- type GroupsDiscardResult
- type GroupsListParams
- type GroupsListResult
- type GroupsLogParams
- type GroupsLogResult
- type GroupsPeersParams
- type GroupsPeersResult
- type GroupsPromoteParams
- type GroupsPromoteResult
- type GroupsRenameParams
- type GroupsRenameResult
- type GroupsReplicaStateParams
- type GroupsReplicaStateResult
- type GroupsRetryParams
- type GroupsRetryResult
- type GroupsSendParams
- type GroupsSendResult
- type GroupsShareParams
- type GroupsShareResult
- type GroupsStateParams
- type GroupsStateResult
- type GroupsStopParams
- type GroupsStopResult
- type HandoffFailParams
- type HandoffFailResult
- type HandoffRequestParams
- type HandoffRequestResult
- type HandoffStateResult
- type HeartbeatSnapshot
- type HiddenDisplayKind
- type HookRow
- type HookRun
- type HooksChangeParams
- type HooksCheckParams
- type HooksCheckResult
- type HooksListParams
- type HooksListResult
- type HooksTestParams
- type I18nCatalogParams
- type I18nCatalogResult
- type I18nLanguagesParams
- type I18nLanguagesResult
- type ImageAttachBytesParams
- type ImageRenderMode
- type ImageRenderParams
- type ImageRenderResult
- type IndicatorStyle
- type InflightTurn
- type InputDetectDropParams
- type InputDetectDropResult
- type InstallPhase
- type InterruptStatus
- type KanbanAttempt
- type KanbanBoard
- type KanbanBoardParams
- type KanbanBoardResult
- type KanbanColumn
- type KanbanCommandParams
- type KanbanCommandResult
- type KanbanComment
- type KanbanEvent
- type KanbanEventsParams
- type KanbanEventsResult
- type KanbanRunParams
- type KanbanRunResult
- type KanbanTaskParams
- type KanbanTaskResult
- type KanbanTaskRow
- type Kind
- type LanguageOption
- type LearningAxis
- type LearningBucketRow
- type LearningDetailResult
- type LearningEditParams
- type LearningFrame
- type LearningFramesParams
- type LearningFramesResult
- type LearningGraphCluster
- type LearningGraphEdge
- type LearningGraphNode
- type LearningGraphParams
- type LearningGraphResult
- type LearningLegendItem
- type LearningMemoryCard
- type LearningMutationResult
- type LearningNodeKind
- type LearningNodeParams
- type LearningNodeRow
- type LearningRun
- type LegacyPluginRow
- type LiveSessionStatus
- type LocaleSurface
- type LoginAddKeyParams
- type LoginConvertParams
- type LoginExhaustedPayload
- type LoginLinkParams
- type LoginListParams
- type LoginListResult
- type LoginListSession
- type LoginOAuthPollParams
- type LoginOAuthPollResult
- type LoginOAuthStartParams
- type LoginOAuthStartResult
- type LoginOAuthState
- type LoginOrigin
- type LoginProviderGroup
- type LoginRef
- type LoginRemoveParams
- type LoginRemoveResult
- type LoginRenameParams
- type LoginResetParams
- type LoginResetResult
- type LoginResult
- type LoginRow
- type LoginScope
- type LoginSelection
- type LoginSetDefaultParams
- type LoginSetDefaultResult
- type LoginSetPriorityParams
- type LoginSetRotationParams
- type LoginStatus
- type LoginWait
- type LoginWaitState
- type LoopSnapshot
- type MCPCatalogEntry
- type MCPCatalogResult
- type MCPOAuthCancelResult
- type MCPOAuthFlowParams
- type MCPOAuthPollResult
- type MCPOAuthPollStatus
- type MCPOAuthStartParams
- type MCPOAuthStartResult
- type MCPProbeTool
- type MCPRuntimeStatus
- type MCPServerNameParams
- type MCPServerResult
- type MCPServerRuntimeRow
- type MCPServerSource
- type MCPServerSummary
- type MCPServersAddParams
- type MCPServersEnableParams
- type MCPServersListResult
- type MCPServersRemoveResult
- type MCPServersSetAPIKeyParams
- type MCPServersSetAPIKeyResult
- type MCPServersStatusResult
- type MCPServersTestResult
- type McpServerStatus
- type MemoryChangeParams
- type MemoryChangeResult
- type MemoryField
- type MemoryOverviewParams
- type MemoryOverviewResult
- type MemoryProviderRow
- type MessageCompletePayload
- type MessageDeltaPayload
- type MessageInterimPayload
- type MessageStartPayload
- type Method
- type MirroredValue
- type MixRow
- type MixSlot
- type MixesChangeParams
- type MixesListParams
- type MixesListResult
- type MoaAggregatingPayload
- type MoaPhasePayload
- type MoaProgressPayload
- type MoaReferencePayload
- type ModelCapabilities
- type ModelDisconnectParams
- type ModelDisconnectResult
- type ModelOptionProvider
- type ModelOptionsParams
- type ModelOptionsResult
- type ModelPick
- type ModelPricing
- type ModelSaveKeyParams
- type ModelSaveKeyResult
- type MouseTracking
- type NoPayload
- type NoticePayload
- type NotificationClearPayload
- type NotificationShowPayload
- type OpenRequestEntry
- type ParamsRefusal
- type PasteCollapseParams
- type PasteCollapseResult
- type PeerRouteStatus
- type PendingApproval
- type PendingSubmission
- type PersistedTurn
- type PetCancelParams
- type PetCellFrames
- type PetCellsParams
- type PetCellsResult
- type PetDraft
- type PetExportResult
- type PetGalleryEntry
- type PetGalleryParams
- type PetGalleryResult
- type PetGenerateParams
- type PetGenerateProgressPayload
- type PetGenerateResult
- type PetHatchParams
- type PetHatchProgressPayload
- type PetHatchResult
- type PetInfoMetaResult
- type PetInfoParams
- type PetInfoResult
- type PetOkResult
- type PetRenameParams
- type PetRenderMode
- type PetScaleParams
- type PetScaleResult
- type PetSlugParams
- type PetSlugResult
- type PetSprite
- type PingParams
- type PingResult
- type PluginActivation
- type PluginCatalogRow
- type PluginLiveNow
- type PluginLiveServer
- type PluginLiveSkill
- type PluginRestartTarget
- type PluginScanFinding
- type PluginServerRow
- type PluginServerState
- type PluginSettingField
- type PluginSettingFieldType
- type PluginToolsetRow
- type PluginUpdateRow
- type PluginUpdateSkip
- type PluginUpdateStatus
- type PluginsAction
- type PluginsCatalogParams
- type PluginsCatalogResult
- type PluginsHubRunParams
- type PluginsHubRunResult
- type PluginsListParams
- type PluginsListResult
- type PluginsManageParams
- type PluginsManageResult
- type PluginsPackInstallParams
- type ProcessEntry
- type ProcessKillParams
- type ProcessKillResult
- type ProcessKillStatus
- type ProcessListResult
- type ProcessStopParams
- type ProcessStopResult
- type ProfileCreateReceipt
- type ProfileMirrored
- type ProfileOverviewRow
- type ProfileParams
- type ProfileRow
- type ProfileSession
- type ProfileWorkerSession
- type ProfilesAliasParams
- type ProfilesAliasResult
- type ProfilesCreateParams
- type ProfilesCreateResult
- type ProfilesDescribeParams
- type ProfilesDescribeResult
- type ProfilesExportParams
- type ProfilesExportResult
- type ProfilesImportParams
- type ProfilesImportResult
- type ProfilesListParams
- type ProfilesListResult
- type ProfilesOverviewParams
- type ProfilesOverviewResult
- type ProjectFolderRow
- type ProjectRef
- type ProjectRow
- type ProjectsChangeParams
- type ProjectsChangeResult
- type ProjectsListParams
- type ProjectsListResult
- type PromptCancelParams
- type PromptReceiptParams
- type PromptReceiptResult
- type PromptResolveUnknownParams
- type PromptResponseResult
- type PromptResponseStatus
- type PromptSettledPayload
- type PromptSubmitParams
- type PromptSubmitResult
- type PromptSubmitStatus
- type ProviderAccountState
- type ProviderLimit
- type ProviderLimitScope
- type ProviderUsage
- type ProviderUsageAccount
- type ProviderUsageScope
- type ProviderUsageWindow
- type QueuedPrompt
- type ReactionPayload
- type ReloadEnvParams
- type ReloadEnvResult
- type ReloadMCPParams
- type ReloadMCPResult
- type ReloadMCPSession
- type ReloadMCPStatus
- type ReplayCursor
- type Request
- type RequestCancelPayload
- type ResumePhaseStatus
- type RollbackCheckpoint
- type RollbackDiffParams
- type RollbackDiffResult
- type RollbackListParams
- type RollbackListResult
- type RollbackRestoreParams
- type RollbackRestoreResult
- type RollbackSessionDiffParams
- type RollbackSessionDiffResult
- type Room
- type RoomActor
- type RoomApproval
- type RoomApproveChoice
- type RoomAttachment
- type RoomAttachmentBytes
- type RoomAttachmentItem
- type RoomAuthority
- type RoomAuthorityPayload
- type RoomDriverStatus
- type RoomEvent
- type RoomExecutionPolicy
- type RoomLinkCatalog
- type RoomLinkEndpoint
- type RoomLinkStatus
- type RoomMember
- type RoomMemberActivity
- type RoomMemberInput
- type RoomMessagePayload
- type RoomPeer
- type RoomPendingAction
- type RoomPendingActionKind
- type RoomQueuedError
- type RoomRenamedPayload
- type RoomShare
- type RoomShareState
- type RoomTarget
- type RoomTaskReceipt
- type RoomTombstone
- type RoomTurnPayload
- type RuntimeDescribeParams
- type RuntimeDescribeResult
- type SecretReference
- type SecretRequestParams
- type SecretsBitwarden
- type SecretsChangeParams
- type SecretsChangeResult
- type SecretsOnePassword
- type SecretsPreviewRow
- type SecretsProject
- type SecretsProjectsParams
- type SecretsProjectsResult
- type SecretsStateParams
- type SecretsStateResult
- type SeedMessage
- type SessionAccountUsage
- type SessionAccountUsageParams
- type SessionActiveItem
- type SessionActiveListParams
- type SessionActiveListResult
- type SessionAutomationParams
- type SessionAutomationParamsKind
- type SessionAutomationResult
- type SessionContextBreakdownParams
- type SessionContextBreakdownResult
- type SessionControlReadParams
- type SessionControlReadResult
- type SessionControlSnapshot
- type SessionControlUpdatePayload
- type SessionCorrectionParams
- type SessionCorrectionResult
- type SessionCreateParams
- type SessionCreateResult
- type SessionDetachParams
- type SessionDetachResult
- type SessionExportParams
- type SessionExportResult
- type SessionHistoryParams
- type SessionHistoryResult
- type SessionIDParams
- type SessionInfo
- type SessionInterruptParams
- type SessionInterruptResult
- type SessionLaunchOptions
- type SessionListParams
- type SessionListResult
- type SessionListRow
- type SessionLogin
- type SessionLoginWaitParams
- type SessionLoginWaitResult
- type SessionMostRecentParams
- type SessionMostRecentResult
- type SessionMutateParams
- type SessionMutateResult
- type SessionOwner
- type SessionOwnerType
- type SessionPruneParams
- type SessionPruneResult
- type SessionReclaimedPayload
- type SessionReplayGapPayload
- type SessionResumeParams
- type SessionResumeProgressPayload
- type SessionResumeResult
- type SessionRevisionParams
- type SessionRevisionResult
- type SessionSaveParams
- type SessionSaveResult
- type SessionScopedParams
- type SessionSetLoginParams
- type SessionSetLoginResult
- type SessionStats
- type SessionStatsParams
- type SessionTitlePayload
- type SessionUsagePayload
- type SettingsChoice
- type SettingsGroup
- type SettingsGroupsParams
- type SettingsGroupsResult
- type SettingsListParams
- type SettingsListResult
- type SettingsResetParams
- type SettingsRow
- type SettingsSetParams
- type SettingsWriteResult
- type SetupAction
- type SetupActionPollParams
- type SetupActionPollResult
- type SetupActionStartParams
- type SetupActionStartResult
- type SetupFactsParams
- type SetupFactsResult
- type SetupKey
- type SetupKeysParams
- type SetupKeysResult
- type SetupRuntimeCheckParams
- type SetupRuntimeCheckResult
- type SetupSaveKeyParams
- type SetupSaveKeyResult
- type SetupStatusResult
- type SetupToolset
- type SetupToolsetsParams
- type SetupToolsetsResult
- type ShellExecParams
- type ShellExecResult
- type SideAgentCompletePayload
- type SideAgentParams
- type SkillBrowseItem
- type SkillBundleRow
- type SkillCatalogEntry
- type SkillCommandRef
- type SkillHubHit
- type SkillHubRow
- type SkillInspectInfo
- type SkillTapRow
- type SkillsAction
- type SkillsBundleNameParams
- type SkillsBundleReloadResult
- type SkillsBundleResult
- type SkillsBundleSaveParams
- type SkillsHubParams
- type SkillsHubResult
- type SkillsHubRunParams
- type SkillsHubRunResult
- type SkillsManageParams
- type SkillsManageResult
- type SkillsReloadDiff
- type SkillsReloadParams
- type SkillsReloadResult
- type SkinPayloadModel
- type SlashExecParams
- type SlashExecResult
- type SnapshotArgsParams
- type SnapshotLines
- type SnapshotListParams
- type SnapshotTargetResult
- type SpawnTreeEntry
- type SpawnTreeListParams
- type SpawnTreeListResult
- type SpawnTreeLoadParams
- type SpawnTreeLoadResult
- type SpawnTreeOutput
- type SpawnTreeSaveParams
- type SpawnTreeSaveResult
- type SpawnTreeSubagent
- type StatusBarPlace
- type StatusUpdatePayload
- type SteerStatus
- type StreamDeltaPayload
- type SubagentEventPayload
- type SubagentIDParams
- type SubagentInterruptResult
- type SubagentListResult
- type SubagentOutputTailEntry
- type SubagentSnapshot
- type SubagentStatus
- type SubagentSteerParams
- type SubagentSteerResult
- type SubagentTailResult
- type SubmitAnswer
- type SudoRequestParams
- type SystemBatteryResult
- type TaskIDResult
- type TextPayload
- type ThemeMode
- type TodoItem
- type TodoState
- type TodoStatus
- type ToolCompletePayload
- type ToolGeneratingPayload
- type ToolLabel
- type ToolLabelKind
- type ToolOutputRiskPayload
- type ToolProgressPayload
- type ToolShowRow
- type ToolShowSection
- type ToolStartPayload
- type ToolsAction
- type ToolsConfigureParams
- type ToolsConfigureResult
- type ToolsListParams
- type ToolsListResult
- type ToolsShowResult
- type TranscriptMessage
- type TurnStatus
- type UndoIntent
- type UndoRollbackHint
- type UntrustedProjectSkills
- type Usage
- type ValueAnswer
- type VaultChangeParams
- type VaultCodeRequestParams
- type VaultField
- type VaultItemRow
- type VaultKeyInfo
- type VaultKind
- type VaultListParams
- type VaultListResult
- type VaultSaveLoginRequestParams
- type VaultSourceRow
- type VaultUnlockRequestParams
- type VoicePartialPayload
- type VoicePlaybackParams
- type VoiceRecordAction
- type VoiceRecordParams
- type VoiceRecordResult
- type VoiceRecordStatus
- type VoiceSpeechKind
- type VoiceSpeechPayload
- type VoiceStatusPayload
- type VoiceStopped
- type VoiceSubmitMode
- type VoiceToggleAction
- type VoiceToggleParams
- type VoiceToggleResult
- type VoiceTranscriptPayload
- type WaitBarrier
- type WaitBarrierType
- type WakeControlParams
- type WakeDetectedPayload
- type WakeDeviceSelector
- type WakeInputDevice
- type WakeResumeResult
- type WakeStartParams
- type WakeStartResult
- type WakeStatusParams
- type WakeStatusResult
- type WakeStopParams
- type WakeStopResult
- type WebhookRow
- type WorkerExecution
- type WorkerKind
- type WorkerPersistParams
- type WorkerRegisterParams
- type WorkerScopeParams
- type WorkerStatus
- type WorktreeCreateParams
- type WorktreeCreateResult
- type WorktreeCwdParams
- type WorktreeKept
- type WorktreeLaunch
- type WorktreeListResult
- type WorktreePruneParams
- type WorktreePruneResult
- type WorktreeRecordResult
- type WorktreeRef
- type WorktreeSettleResult
- type WorktreeStatusParams
- type WorktreeStatusResult
Constants ¶
This section is empty.
Variables ¶
var ( // Allowed commands entries proposed from the approvals people gave ApprovalsSuggest = NewMethod[ApprovalsSuggestParams, ApprovalsSuggestResult]("approvals.suggest") // Adds patterns to the allowed commands ApprovalsAllow = NewMethod[ApprovalsAllowParams, ApprovalsAllowResult]("approvals.allow") // Verdict the approval rules give a command, without running it ApprovalsTest = NewMethod[ApprovalsTestParams, ApprovalsTestResult]("approvals.test") )
var ( // Scheduled jobs of the profile with the state of each CronJobsList = NewMethod[CronJobsListParams, CronJobsListResult]("cron.jobs.list") // Creates a scheduled job the way icebath cron create does CronJobsCreate = NewMethod[CronJobWriteParams, CronJobResult]("cron.jobs.create") // Changes a scheduled job the way icebath cron edit does CronJobsUpdate = NewMethod[CronJobWriteParams, CronJobResult]("cron.jobs.update") // Pauses a scheduled job CronJobsPause = NewMethod[CronJobActionParams, CronJobResult]("cron.jobs.pause") // Resumes a paused job CronJobsResume = NewMethod[CronJobActionParams, CronJobResult]("cron.jobs.resume") // Starts a run of a job now, its outcome landing in the job's runs CronJobsRun = NewMethod[CronJobActionParams, CronJobResult]("cron.jobs.run") // Stops a job's live run, its schedule untouched CronJobsCancel = NewMethod[CronJobActionParams, CronJobResult]("cron.jobs.cancel") // Removes a scheduled job CronJobsRemove = NewMethod[CronJobActionParams, CronJobResult]("cron.jobs.remove") // Durable runs of a job and its saved outputs CronJobsRuns = NewMethod[CronJobRunsParams, CronJobRunsResult]("cron.jobs.runs") // Text of one saved output of a job CronJobsOutput = NewMethod[CronJobOutputParams, CronJobOutputResult]("cron.jobs.output") // Failure incidents of the scheduled jobs CronIncidentsList = NewMethod[CronIncidentsParams, CronIncidentsResult]("cron.incidents.list") // Acknowledges and closes one failure incident CronIncidentsAck = NewMethod[CronIncidentAckParams, CronReportResult]("cron.incidents.ack") // Scheduler doctor or status report, or a job's notepad CronReport = NewMethod[CronReportParams, CronReportResult]("cron.report") )
var ( // One board with its columns and tasks, and every board to switch to KanbanBoardView = NewMethod[KanbanBoardParams, KanbanBoardResult]("kanban.board.view") // Board verbs: create, switch, rename, archive KanbanBoardCommand = NewMethod[KanbanCommandParams, KanbanCommandResult]("kanban.board.command") // One task with its comments and attempts KanbanTaskShow = NewMethod[KanbanTaskParams, KanbanTaskResult]("kanban.task.show") // Task verbs: create, edit, assign, comment, block, unblock, promote, complete, reopen, archive and the rest that return at once KanbanTaskCommand = NewMethod[KanbanCommandParams, KanbanCommandResult]("kanban.task.command") // Events of a board or one task after a cursor, for the page that follows them KanbanEvents = NewMethod[KanbanEventsParams, KanbanEventsResult]("kanban.events") )
var ( // Curated plugin catalog entries matching the words PluginsCatalog = NewMethod[PluginsCatalogParams, PluginsCatalogResult]("plugins.hub.catalog") // Runs one plugins command without questions and answers what it printed PluginsHubRun = NewMethod[PluginsHubRunParams, PluginsHubRunResult]("plugins.hub.run") // Installs every plugin a reviewed pack pins PluginsPackInstall = NewMethod[PluginsPackInstallParams, PluginsHubRunResult]("plugins.hub.pack_install") )
var ( // Keys of the home's .env the catalog knows, with whether each holds a value SetupKeys = NewMethod[SetupKeysParams, SetupKeysResult]("setup.keys") // Keeps one key of the catalog in the home's .env SetupSaveKey = NewMethod[SetupSaveKeyParams, SetupSaveKeyResult]("setup.save_key") // Reads facts of this computer and home a setup form needs, such as whether an engine is installed SetupFacts = NewMethod[SetupFactsParams, SetupFactsResult]("setup.facts") // Tool groups of a platform, which are on and whether their keys are there SetupToolsets = NewMethod[SetupToolsetsParams, SetupToolsetsResult]("setup.toolsets") )
var ( // Installed skills, sources, bundles and trusted projects of the profile SkillsHubList = NewMethod[SkillsHubParams, SkillsHubResult]("skills.hub.list") // Runs one skills command without questions and answers what it printed SkillsHubRun = NewMethod[SkillsHubRunParams, SkillsHubRunResult]("skills.hub.run") // Writes a skill bundle SkillsBundleSave = NewMethod[SkillsBundleSaveParams, SkillsBundleResult]("skills.bundles.save") // Removes a skill bundle SkillsBundleDelete = NewMethod[SkillsBundleNameParams, SkillsBundleResult]("skills.bundles.delete") // Reads the bundles folder again SkillsBundleReload = NewMethod[SkillsHubParams, SkillsBundleReloadResult]("skills.bundles.reload") )
var ( SettingsGroups = NewMethod[SettingsGroupsParams, SettingsGroupsResult]("settings.groups") SettingsList = NewMethod[SettingsListParams, SettingsListResult]("settings.list") SettingsSet = NewMethod[SettingsSetParams, SettingsWriteResult]("settings.set") SettingsReset = NewMethod[SettingsResetParams, SettingsWriteResult]("settings.reset") )
var ( // Starts a side effect of a setup form: a sign in, an engine install or a connection test SetupActionStart = NewMethod[SetupActionStartParams, SetupActionStartResult]("setup.action.start") // Waits up to two seconds for new output of a setup job or a change of its redrawn line SetupActionPoll = NewMethod[SetupActionPollParams, SetupActionPollResult]("setup.action.poll") )
var A2AForward = NewCanonicalMethod[A2AForwardParams, A2AForwardResult]("a2a.forward")
Forwards one A2A input into the conversation its identity tuple names
var AgentPrintEvent = NewEvent[TextPayload]("agent.print")
Status line the agent printed during a local viewer's turn
var ApprovalCancelledEvent = NewEvent[ApprovalCancelledPayload]("approval.cancelled")
Approvals of a session were dropped and settled as deny
var ApprovalRequest = NewRequest[ApprovalRequestParams, ApprovalAnswer]("approval")
A dangerous command awaits the user's verdict
var ApprovalRequestEvent = NewEvent[CanonicalPendingPrompt]("approval.request")
The running generation asks the viewers to approve a command
var ApprovalRespond = NewMethod[ApprovalRespondParams, ApprovalRespondResult]("approval.respond")
Verdict on a dangerous command on the method table route
var ApprovalSettledEvent = NewEvent[PromptSettledPayload]("approval.settled")
An approval prompt was answered
var BackgroundCompleteEvent = NewEvent[SideAgentCompletePayload]("background.complete")
A background side agent finished
var BotRelayDeliver = NewCanonicalMethod[BotDeliverParams, BotDeliverResult]("bot_relay.deliver")
Hands one bot message to a profile's conversation
var BotRelaySettle = NewCanonicalMethod[BotDeliverParams, BotDeliverResult]("bot_relay.settle")
Settles a delivery the sender was unsure of
var BrowserManage = NewMethod[BrowserManageParams, BrowserManageResult]("browser.manage")
Inspects, attaches to or drops the CDP browser the tools use
var BrowserProgressEvent = NewEvent[BrowserProgressPayload]("browser.progress")
Progress line of a browser connect
var BtwCompleteEvent = NewEvent[SideAgentCompletePayload]("btw.complete")
A side question was answered
var BuildID = sync.OnceValue(readBuildID)
Go build ID of the running executable, empty when the executable cannot be read
var CanonicalApprovalRespond = NewCanonicalMethod[CanonicalApprovalParams, PromptResponseResult]("approval.respond")
Generation fenced verdict on an approval prompt
var CanonicalClarifyLock = NewCanonicalMethod[ClarifyLockParams, ClarifyLockResult]("clarify.lock")
Locks one answer of the owner's batch clarify request, editable until every question is locked
var CanonicalClarifyRespond = NewCanonicalMethod[CanonicalClarifyParams, PromptResponseResult]("clarify.respond")
Generation fenced answer to a clarify prompt
var CanonicalGroupsApprove = NewCanonicalMethod[CanonicalRoomApproveParams, GroupsApproveResult]("groups.approve")
Answers one pending approval on the session authority, once or deny
var CanonicalGroupsAttachmentDownload = NewCanonicalMethod[GroupsAttachmentDownloadParams, RoomAttachmentBytes]("groups.attachment.download")
Reads one committed file of a room log on the session authority
var CanonicalGroupsAttachmentUpload = NewCanonicalMethod[GroupsAttachmentUploadParams, RoomAttachment]("groups.attachment.upload")
Stores one file for a later message on the session authority
var CanonicalGroupsCreate = NewCanonicalMethod[CanonicalRoomCreateParams, GroupsCreateResult]("groups.create")
Creates a room on the session authority
var CanonicalGroupsDiscard = NewCanonicalMethod[GroupsDiscardParams, GroupsDiscardResult]("groups.discard")
Discards one indeterminate room task on the session authority
var CanonicalGroupsPeers = NewCanonicalMethod[GroupsPeersParams, GroupsPeersResult]("groups.peers")
Registered peer gateways and the peers one room is shared with
var CanonicalGroupsRetry = NewCanonicalMethod[CanonicalRoomAttemptParams, GroupsRetryResult]("groups.retry")
Retries one room task on the session authority, fenced on its generation
Shares a room this gateway hosts with a registered peer gateway
Stops sharing a room with a peer, which drops its replica on its next sync
var CanonicalImageAttachBytes = NewCanonicalMethod[ImageAttachBytesParams, CanonicalAttachedImage]("image.attach_bytes")
Queues an uploaded image on the session authority, answering its mime type too
var CanonicalProfilesList = NewCanonicalMethod[ProfilesListParams, ProfilesListResult]("profiles.list")
Profile roster of the session authority, sessions included unless turned off
var CanonicalPromptCancel = NewCanonicalMethod[PromptCancelParams, AdmissionReceipt]("prompt.cancel")
Withdraws a queued admission, interrupting a started one in the same call
var CanonicalPromptReceipt = NewCanonicalMethod[PromptReceiptParams, PromptReceiptResult]("prompt.receipt")
Current receipt of one admission the caller submitted or controls
var CanonicalPromptReplaceQueued = NewCanonicalMethod[CanonicalReplaceQueuedParams, AdmissionReceipt]("prompt.replace_queued")
Replaces a queued admission with an edited prompt at the back of the queue in one write
var CanonicalPromptResolveUnknown = NewCanonicalMethod[PromptResolveUnknownParams, AdmissionReceipt]("prompt.resolve_unknown")
Acknowledges a turn lost across an owner restart so the queue behind it resumes, never requeueing it
var CanonicalPromptSubmit = NewCanonicalMethod[CanonicalSubmitParams, SubmitAnswer]("prompt.submit")
Admits a prompt into the owner's durable queue
var CanonicalRuntimeDescribe = NewCanonicalMethod[RuntimeDescribeParams, RuntimeDescribeResult]("runtime.describe")
Session creation policy, protocol and capabilities of the runtime
var CanonicalSessionAccountUsage = NewCanonicalMethod[SessionAccountUsageParams, SessionAccountUsage]("session.account_usage")
Account limits of the provider a session runs on, as the lines the usage command prints under the totals
var CanonicalSessionAutomation = NewCanonicalMethod[SessionAutomationParams, SessionAutomationResult]("session.automation")
Arms or reads the automation a viewer runs on a session
var CanonicalSessionCreate = NewCanonicalMethod[CanonicalCreateParams, CanonicalSnapshot]("session.create")
Creates a session on the session authority and attaches to it
var CanonicalSessionDetach = NewCanonicalMethod[SessionDetachParams, SessionDetachResult]("session.detach")
Ends one subscription of the caller to a session
var CanonicalSessionExport = NewCanonicalMethod[SessionExportParams, SessionExportResult]("session.export")
Writes a session transcript to a file or returns it inline
var CanonicalSessionInfo = NewCanonicalMethod[CanonicalSessionInfoParams, SessionInfo]("session.info")
Frozen launch policy and inventory of one local session
var CanonicalSessionInterrupt = NewCanonicalMethod[CanonicalControlParams, CanonicalSessionHandle]("session.interrupt")
Stops the running generation of a canonical session
var CanonicalSessionList = NewCanonicalMethod[CanonicalListParams, CanonicalListResult]("session.list")
Lists the live or stored sessions of the profile
var CanonicalSessionMutate = NewCanonicalMethod[SessionMutateParams, SessionMutateResult]("session.mutate")
Revision fenced, retry safe session edit, its operation projection riding beside the receipt
var CanonicalSessionPrune = NewCanonicalMethod[SessionPruneParams, SessionPruneResult]("session.prune")
Deletes the ended sessions a prune selected, skipping busy ones, local operator only
var CanonicalSessionRedirect = NewCanonicalMethod[CanonicalCorrectionParams, CorrectionAnswer]("session.redirect")
Redirects the running generation, held for the next turn while the agent builds
var CanonicalSessionResume = NewCanonicalMethod[CanonicalResumeParams, CanonicalSnapshot]("session.resume")
Attaches to a stored or live session, by id, title or the latest of a source
var CanonicalSessionRevision = NewCanonicalMethod[SessionRevisionParams, SessionRevisionResult]("session.revision")
Revision and generation of a session read with no side effect, the fences a session.mutate checks
var CanonicalSessionStats = NewCanonicalMethod[SessionStatsParams, SessionStats]("session.stats")
Cumulative token, context, latency and rate limit counters of a session
var CanonicalSessionSteer = NewCanonicalMethod[CanonicalCorrectionParams, CorrectionAnswer]("session.steer")
Puts text into the next tool result of the running generation
var CanonicalShellExec = NewCanonicalMethod[CanonicalShellExecParams, ShellExecResult]("shell.exec")
Runs one safe shell line of a local session on the shared owner
var ChatAppsList = NewMethod[ChatAppsListParams, ChatAppsListResult]("chatapps.list")
Platforms, pairing, webhooks and peers of a profile, with whether the background service starts with the computer
var ChatAppsPairing = NewMethod[ChatAppsPairingParams, ChatAppsResult]("chatapps.pairing")
Approves or revokes who may talk to a bot
var ChatAppsPeer = NewMethod[ChatAppsPeerParams, ChatAppsResult]("chatapps.peer")
Adds or removes a peer icebath
var ChatAppsSend = NewMethod[ChatAppsSendParams, ChatAppsResult]("chatapps.send")
Sends a message to a chat of a configured platform
var ChatAppsWebhook = NewMethod[ChatAppsWebhookParams, ChatAppsResult]("chatapps.webhook")
Adds, removes or tests a webhook route
var ClarifyLock = NewMethod[ClarifyLockParams, ClarifyLockResult]("clarify.lock")
Locks one answer of a batch clarify request on the method table route, editable until every question is locked
var ClarifyRequest = NewRequest[ClarifyRequestParams, ClarifyAnswer]("clarify")
The clarify tool asks the user one to five questions
var ClarifyRequestEvent = NewEvent[CanonicalPendingPrompt]("clarify.request")
The running generation asks the viewers a question
var ClarifySettledEvent = NewEvent[PromptSettledPayload]("clarify.settled")
A clarify prompt was answered
var ClientCapabilities = NewMethod[ClientCapabilitiesParams, ClientCapabilitiesResult]("client.capabilities")
What the calling client handles, sent once per connection after gateway.ready
var CommandDispatch = NewMethod[CommandDispatchParams, CommandDispatchResult]("command.dispatch")
Runs a quick, plugin, bundle, skill or built in slash command and answers its directive
var CommandObserve = NewCanonicalMethod[CommandObserveParams, CommandObserveResult]("command.observe")
Tells the shared owner a client ran a recognized command itself
var CommandsCatalog = NewMethod[CommandsCatalogParams, CommandsCatalogResult]("commands.catalog")
Slash catalog of registry, quick, plugin and skill commands for the palette and completion
var CommandsTree = NewMethod[CommandsTreeParams, CommandsTreeResult]("commands.tree")
CLI command tree built from the same registration the icebath binary parses with, for the palette's Run command list
var CompletePath = NewMethod[CompletePathParams, CompletionItemsResult]("complete.path")
Files, folders, profiles and plugin references completing the composer word
var CompleteSlash = NewMethod[CompleteSlashParams, CompleteSlashResult]("complete.slash")
Ranked slash commands and skills completing a slash token
var ConfigFiles = NewMethod[ConfigFilesParams, ConfigFilesResult]("config.files")
Settings and keys files of the profile, config.yaml made first when asked
var ConfigGet = NewMethod[ConfigGetParams, ConfigGetResult]("config.get")
Reads one config key, or with key full the settings the terminal UI follows, on both routes
var ConfigSet = NewMethod[ConfigSetParams, ConfigSetResult]("config.set")
Changes one config key, persisted or for the session, and answers the value it took, on both routes
var ConnectionRequestEvent = NewEvent[ConnectionRequestPayload]("connection.request")
A connection operation opened on the session
var ConnectionRespond = NewMethod[ConnectionRespondParams, ConnectionRespondResult]("connection.respond")
Per target answers of the connection card, or its continue
var ConnectionUpdateEvent = NewEvent[ConnectionUpdatePayload]("connection.update")
A target of an open connection operation moved or the operation settled
var ConnectorsConnect = NewMethod[ConnectorsConnectParams, ConnectionOperationSnapshot]("connectors.connect")
Runs failed rows of the session's open connection operation again
var ConnectorsOperationStatus = NewMethod[ConnectionOperationParams, ConnectionOperationSnapshot]("connectors.operation.status")
Current snapshot of an open connection operation
var ConnectorsOperationWake = NewMethod[ConnectionOperationParams, ConnectionWakeResult]("connectors.operation.wake")
Makes the watcher of an open operation check the accounts now
var CronCancel = NewCanonicalMethod[CronAdmissionParams, CronCancelResult]("cron.cancel")
Cancels a queued cron admission or latches cancellation on a started one
var CronRecover = NewCanonicalMethod[CronRunParams, CronStatusResult]("cron.recover")
Observes a firing again after a scheduler restart, by the same request identity
var CronStatus = NewCanonicalMethod[CronAdmissionParams, CronStatusResult]("cron.status")
Status and, once terminal, the outcome of one cron admission
var CronSubmit = NewCanonicalMethod[CronRunParams, CronSubmitResult]("cron.submit")
Admits one cron firing into the owning profile's durable queue
var DelegationPause = NewMethod[DelegationPauseParams, DelegationPauseResult]("delegation.pause")
Blocks or unblocks new spawns everywhere, running children go on, answering the new state
var DelegationStatus = NewMethod[ProfileParams, DelegationStatusResult]("delegation.status")
Live delegated children, the spawn pause flag and the limits
var DisplayInstall = NewMethod[ProfileParams, DisplayInstallResult]("display.install")
Runs the package install on the gateway host, progress streamed as display.install.log and done
var DisplayInstallDoneEvent = NewEvent[DisplayInstallDonePayload]("display.install.done")
The install ended
var DisplayInstallLogEvent = NewEvent[DisplayInstallLogPayload]("display.install.log")
One line of package manager output
var DisplayInstallSudoRequest = NewRequest[DisplayInstallSudoParams, ValueAnswer]("display.install.sudo")
Sudo password for the bot screen package install
var DisplayLeaseAcquire = NewMethod[DisplayLeaseAcquireParams, DisplayLeaseResult]("display.lease.acquire")
A person takes the screen, the agent's actions on it refused until it is handed back
var DisplayLeaseEvent = NewEvent[DisplayLeasePayload]("display.lease")
The takeover lease changed hands
var DisplayLeaseRelease = NewMethod[DisplayLeaseReleaseParams, DisplayLeaseResult]("display.lease.release")
Hands the screen back to the agent, refused with viewer_mismatch while another viewer holds it unless forced
var DisplayStart = NewMethod[ProfileParams, DisplayStatus]("display.start")
Starts this profile's screen and waits until it is published
var DisplayStatusEvent = NewEvent[DisplayStatus]("display.status")
This profile's screen started or stopped
var DisplayStatusMethod = NewMethod[ProfileParams, DisplayStatus]("display.status")
Runtime and lease of this profile's screen
var DisplayStop = NewMethod[DisplayStopParams, DisplayStopResult]("display.stop")
Stops the screen, refused with viewer_mismatch while a person holds it unless forced
var DisplaySwitchSandboxImage = NewMethod[DisplaySwitchSandboxImageParams, DisplaySwitchSandboxImageResult]("display.switchSandboxImage")
Decides the pending default sandbox image switch of this profile
var DisplayThumbnail = NewMethod[ProfileParams, DisplayThumbnailResult]("display.thumbnail")
Grabs one frame of this profile's screen without touching the lease
var ErrorEvent = NewEvent[ErrorPayload]("error")
Session failure outside a turn
var FallbackChange = NewMethod[FallbackChangeParams, FallbackListResult]("fallback.change")
One change to the fallback chain, answered with the chain after it
var FallbackCheck = NewMethod[FallbackCheckParams, FallbackCheckResult]("fallback.check")
Whether each entry of the fallback chain can be used
var FallbackList = NewMethod[FallbackListParams, FallbackListResult]("fallback.list")
Fallback chain of the profile for the fallback models screen
var GatewayReadyEvent = NewEvent[GatewayReadyPayload]("gateway.ready")
First frame of a connection, the skin, change events, replay epoch and session authority
var GroupsApprove = NewMethod[GroupsApproveParams, GroupsApproveResult]("groups.approve")
Answers one pending approval of a local or peer member
var GroupsAttachmentDownload = NewMethod[GroupsAttachmentDownloadParams, RoomAttachmentBytes]("groups.attachment.download")
Reads one committed file of a room log
var GroupsAttachmentUpload = NewMethod[GroupsAttachmentUploadParams, RoomAttachment]("groups.attachment.upload")
Stores one file for a later message, idempotent per upload id
var GroupsCapabilities = NewMethod[GroupsCapabilitiesParams, GroupsCapabilitiesResult]("groups.capabilities")
Room protocol this gateway implements
var GroupsContinue = NewMethod[GroupsContinueParams, GroupsContinueResult]("groups.continue")
Grants a discussion paused at its cap one more budget of rounds and messages
var GroupsCreate = NewMethod[GroupsCreateParams, GroupsCreateResult]("groups.create")
Creates a room idempotently, this gateway's install identity its authority
var GroupsDisband = NewMethod[GroupsDisbandParams, GroupsDisbandResult]("groups.disband")
Tombstones a room for good after stopping its work and revoking peer routes
var GroupsDiscard = NewMethod[GroupsDiscardParams, GroupsDiscardResult]("groups.discard")
Discards one indeterminate room task after the user confirmed it
var GroupsList = NewMethod[GroupsListParams, GroupsListResult]("groups.list")
Rooms this gateway hosts or holds a replica of, most recently changed first
var GroupsLog = NewMethod[GroupsLogParams, GroupsLogResult]("groups.log")
Room log after since_seq, bounded by count and page bytes
var GroupsPromote = NewMethod[GroupsPromoteParams, GroupsPromoteResult]("groups.promote")
Continues a replicated room on this gateway at the next epoch, confirm required
var GroupsRename = NewMethod[GroupsRenameParams, GroupsRenameResult]("groups.rename")
Renames a room together with its replay event
var GroupsReplicaState = NewMethod[GroupsReplicaStateParams, GroupsReplicaStateResult]("groups.replica_state")
Coverage and authority lineage of the local replica of a room
var GroupsRetry = NewMethod[GroupsRetryParams, GroupsRetryResult]("groups.retry")
Retries one indeterminate or deferred room task after the user confirmed it
var GroupsSend = NewMethod[GroupsSendParams, GroupsSendResult]("groups.send")
Appends one user message idempotently, the actor set by the gateway
var GroupsState = NewMethod[GroupsStateParams, GroupsStateResult]("groups.state")
One room with its replay cursor, fenced authority and live driver status
var GroupsStop = NewMethod[GroupsStopParams, GroupsStopResult]("groups.stop")
Cancels the queued and running work of a room
var HandoffFail = NewMethod[HandoffFailParams, HandoffFailResult]("handoff.fail")
Fails a handoff the watcher has not claimed yet
var HandoffRequest = NewMethod[HandoffRequestParams, HandoffRequestResult]("handoff.request")
Queues a handoff of the session to a messaging platform's home channel
var HandoffState = NewMethod[SessionIDParams, HandoffStateResult]("handoff.state")
Reads the handoff row of the session
var HooksChange = NewMethod[HooksChangeParams, HooksListResult]("hooks.change")
One change to the hooks, answered with the hooks after it
var HooksCheck = NewMethod[HooksCheckParams, HooksCheckResult]("hooks.check")
Checks one hook: whether its script can run, is allowed, is unchanged and answers well
var HooksList = NewMethod[HooksListParams, HooksListResult]("hooks.list")
Shell hooks and outbound webhooks of the profile for the hooks screen
var HooksTest = NewMethod[HooksTestParams, HookRun]("hooks.test")
Runs one hook on a sample event
var I18nCatalog = NewMethod[I18nCatalogParams, I18nCatalogResult]("i18n.catalog")
Messages of one language pack and surface
var I18nLanguages = NewMethod[I18nLanguagesParams, I18nLanguagesResult]("i18n.languages")
Languages the UI can be shown in
var ImageAttachBytes = NewMethod[ImageAttachBytesParams, AttachedImageResult]("image.attach_bytes")
Queues an image uploaded as base64 for the next turn
var ImageRender = NewMethod[ImageRenderParams, ImageRenderResult]("image.render")
Lays out a local image of the gateway host for an inline terminal preview
var InputDetectDrop = NewMethod[InputDetectDropParams, InputDetectDropResult]("input.detect_drop")
Turns a file path dropped or pasted into the composer into a mention of that file
var KanbanRun = NewCanonicalMethod[KanbanRunParams, KanbanRunResult]("kanban.run")
Admits the dispatcher's claim on a kanban task, native owner only
var LearningDelete = NewMethod[LearningNodeParams, LearningMutationResult]("learning.delete")
Archives a skill or removes a memory chunk
var LearningDetail = NewMethod[LearningNodeParams, LearningDetailResult]("learning.detail")
Content of a skill or memory node for an edit prefill
var LearningEdit = NewMethod[LearningEditParams, LearningMutationResult]("learning.edit")
Rewrites the content of a skill or memory node
var LearningFrames = NewMethod[LearningFramesParams, LearningFramesResult]("learning.frames")
Pre-renders the journey timeline so the window walks it locally
var LearningGraph = NewMethod[LearningGraphParams, LearningGraphResult]("learning.graph")
Learning graph of the profile, the skill and memory nodes with their links and stats
var LoginAddKey = NewMethod[LoginAddKeyParams, LoginResult]("login.add_key")
Stores an API key as an owned login, updating the owned login of that name or key
var LoginConvert = NewMethod[LoginConvertParams, LoginResult]("login.convert")
Moves an env linked API key into an owned login of the same name
var LoginExhausted = NewEvent[LoginExhaustedPayload]("login.exhausted")
A session's pinned login ran out and Icebath will not switch accounts on its own
var LoginLink = NewMethod[LoginLinkParams, LoginResult]("login.link")
Adds a linked login over an env var or another tool's login
var LoginList = NewMethod[LoginListParams, LoginListResult]("login.list")
Every provider's logins with session, default, rotation and status markers
var LoginOAuthPoll = NewMethod[LoginOAuthPollParams, LoginOAuthPollResult]("login.oauth_poll")
Progress of an OAuth sign in, answering its prompt or cancelling it
var LoginOAuthStart = NewMethod[LoginOAuthStartParams, LoginOAuthStartResult]("login.oauth_start")
Starts an OAuth sign in that ends in a new owned login, polled with login.oauth_poll
var LoginRemove = NewMethod[LoginRemoveParams, LoginRemoveResult]("login.remove")
Removes one login and only its own source
var LoginRename = NewMethod[LoginRenameParams, LoginResult]("login.rename")
Renames a login, references by id staying valid
var LoginReset = NewMethod[LoginResetParams, LoginResetResult]("login.reset")
Forgets the limit one login, or every login of a provider, ran into
var LoginSetDefault = NewMethod[LoginSetDefaultParams, LoginSetDefaultResult]("login.set_default")
Sets the provider's profile default login, exhaustion policy or rotation strategy
var LoginSetPriority = NewMethod[LoginSetPriorityParams, LoginResult]("login.set_priority")
Moves a login to a place in the order its provider's logins are tried
var LoginSetRotation = NewMethod[LoginSetRotationParams, LoginResult]("login.set_rotation")
Puts a login in or out of the provider's rotation set
var MCPCatalog = NewMethod[ProfileParams, MCPCatalogResult]("mcp.catalog")
Catalog MCP servers with their install state and the env keys each needs
var MCPServersAdd = NewMethod[MCPServersAddParams, MCPServerResult]("mcp.servers.add")
Adds an MCP server from a catalog preset or an explicit config
var MCPServersEnable = NewMethod[MCPServersEnableParams, MCPServerResult]("mcp.servers.enable")
Sets the enabled flag of a configured MCP server
var MCPServersList = NewMethod[ProfileParams, MCPServersListResult]("mcp.servers.list")
Configured MCP servers of the profile, secrets named by their env keys
var MCPServersOAuthCancel = NewMethod[MCPOAuthFlowParams, MCPOAuthCancelResult]("mcp.servers.oauth.cancel")
Stops a sign in flow
var MCPServersOAuthPoll = NewMethod[MCPOAuthFlowParams, MCPOAuthPollResult]("mcp.servers.oauth.poll")
Reads a sign in flow, an approval storing the tokens for the profile
var MCPServersOAuthStart = NewMethod[MCPOAuthStartParams, MCPOAuthStartResult]("mcp.servers.oauth.start")
Starts the browser sign in of an MCP server
var MCPServersRemove = NewMethod[MCPServerNameParams, MCPServersRemoveResult]("mcp.servers.remove")
Drops an MCP server from config.yaml
var MCPServersSetAPIKey = NewMethod[MCPServersSetAPIKeyParams, MCPServersSetAPIKeyResult]("mcp.servers.set_api_key")
Stores a credential of an MCP server in the profile's .env and references it from the server
var MCPServersStatus = NewMethod[ProfileParams, MCPServersStatusResult]("mcp.servers.status")
Cached runtime state of every configured MCP server, never connecting
var MCPServersTest = NewMethod[MCPServerNameParams, MCPServersTestResult]("mcp.servers.test")
Connects to an MCP server once and lists its tools
var MemoryChange = NewMethod[MemoryChangeParams, MemoryChangeResult]("memory.change")
One change to memory, answered with its state after it
var MemoryOverview = NewMethod[MemoryOverviewParams, MemoryOverviewResult]("memory.overview")
State of memory for the memory provider screen
var MessageCompleteEvent = NewEvent[MessageCompletePayload]("message.complete")
The turn ended
var MessageDeltaEvent = NewEvent[MessageDeltaPayload]("message.delta")
One streamed chunk of the reply
var MessageInterimEvent = NewEvent[MessageInterimPayload]("message.interim")
Commentary beside tool calls sealed as its own segment
var MessageStartEvent = NewEvent[MessageStartPayload]("message.start")
A turn began streaming
var MixesChange = NewMethod[MixesChangeParams, MixesListResult]("mixes.change")
One change to the saved mixes, answered with the mixes after it
var MixesList = NewMethod[MixesListParams, MixesListResult]("mixes.list")
Saved mixes of the profile for the model mixes screen
var MoaAggregatingEvent = NewEvent[MoaAggregatingPayload]("moa.aggregating")
The mixture of agents aggregator started
var MoaPhaseEvent = NewEvent[MoaPhasePayload]("moa.phase")
A mixture of agents turn changed phase
var MoaProgressEvent = NewEvent[MoaProgressPayload]("moa.progress")
Mixture of agents references answered so far
var MoaReferenceEvent = NewEvent[MoaReferencePayload]("moa.reference")
One mixture of agents reference answered
var ModelDisconnect = NewMethod[ModelDisconnectParams, ModelDisconnectResult]("model.disconnect")
Removes the provider's default login, or every credential, env key and sign in state with all
var ModelOptions = NewMethod[ModelOptionsParams, ModelOptionsResult]("model.options")
Provider and model inventory of the picker, layered over the live provider of the session when named
var ModelSaveKey = NewMethod[ModelSaveKeyParams, ModelSaveKeyResult]("model.save_key")
Saves an API key as an owned login of the provider, its profile default, and returns its refreshed picker row
var NoticeEvent = NewEvent[NoticePayload]("notice")
Informational one liner for the session
var NotificationClearEvent = NewEvent[NotificationClearPayload]("notification.clear")
Withdraws the notice with this key
var NotificationShowEvent = NewEvent[NotificationShowPayload]("notification.show")
Shows or replaces a keyed notice
var PanicOnMisfit = os.Getenv("ICEBATH_TEST_ISOLATION") != ""
Misfits panic under test isolation and are logged otherwise
var PasteCollapse = NewMethod[PasteCollapseParams, PasteCollapseResult]("paste.collapse")
Spills a large paste to a file and answers the inline placeholder
var PetCancel = NewMethod[PetCancelParams, PetOkResult]("pet.cancel")
Stops a pet generate or hatch in flight by its token
var PetCells = NewMethod[PetCellsParams, PetCellsResult]("pet.cells")
Half-block cell frames or a kitty placement of one pet state
var PetChangedEvent = NewEvent[PetInfoMetaResult]("pet.changed")
The active pet or its spritesheet changed
var PetDisable = NewMethod[ProfileParams, PetOkResult]("pet.disable")
Turns the pet display off
var PetEnable = NewMethod[ProfileParams, PetOkResult]("pet.enable")
Turns the pet display on, the configured pet kept
var PetExport = NewMethod[PetSlugParams, PetExportResult]("pet.export")
Exports an installed pet as a re-importable zip
var PetGallery = NewMethod[PetGalleryParams, PetGalleryResult]("pet.gallery")
Pet gallery with the local install state, the remote manifest skipped for localOnly
var PetGenerate = NewMethod[PetGenerateParams, PetGenerateResult]("pet.generate")
Base look drafts of a new pet, each also streamed as pet.generate.progress
var PetGenerateProgressEvent = NewEvent[PetGenerateProgressPayload]("pet.generate.progress")
Progress of a draft generation
var PetHatch = NewMethod[PetHatchParams, PetHatchResult]("pet.hatch")
Turns a base draft into a full spritesheet pet, progress streamed as pet.hatch.progress
var PetHatchProgressEvent = NewEvent[PetHatchProgressPayload]("pet.hatch.progress")
Progress of a hatch drawing its rows
var PetInfo = NewMethod[PetInfoParams, PetInfoResult]("pet.info")
Active pet for sprite renderers, its spritesheet as base64 with frame geometry and state rows
var PetInfoMeta = NewMethod[ProfileParams, PetInfoMetaResult]("pet.info.meta")
Metadata of the active pet that tells a renderer whether its spritesheet changed
var PetRemove = NewMethod[PetSlugParams, PetSlugResult]("pet.remove")
Uninstalls a pet, turning the display off when it was active
var PetRename = NewMethod[PetRenameParams, PetSlugResult]("pet.rename")
Renames a pet and realigns its slug, following the active slug in config
var PetScale = NewMethod[PetScaleParams, PetScaleResult]("pet.scale")
Persists the pet scale clamped to the renderer bounds
var PetSelect = NewMethod[PetSlugParams, PetSlugResult]("pet.select")
Installs when needed and activates a pet
var Ping = NewMethod[PingParams, PingResult]("ping")
Cheapest liveness probe, answered while every agent is mid turn
var PluginsList = NewMethod[PluginsListParams, PluginsListResult]("plugins.list")
Loaded plugin manager entries, the flat view the chat commands print
var PluginsManage = NewMethod[PluginsManageParams, PluginsManageResult]("plugins.manage")
Plugins hub, list, toggle, install, inspect, update of one or every plugin, remove, settings and catalog presence
var ProcessKill = NewMethod[ProcessKillParams, ProcessKillResult]("process.kill")
Kills one background process the session owns and answers its output snapshot
var ProcessList = NewMethod[SessionIDParams, ProcessListResult]("process.list")
Background processes the session owns
var ProcessStop = NewMethod[ProcessStopParams, ProcessStopResult]("process.stop")
Kills the background processes the session owns, or every process a standalone sidecar holds
var ProfilesAlias = NewMethod[ProfilesAliasParams, ProfilesAliasResult]("profiles.alias")
Writes or removes the shell alias that opens a profile
var ProfilesCreate = NewMethod[ProfilesCreateParams, ProfilesCreateResult]("profiles.create")
Creates a profile in the caller's profile scope, mirroring its launch credentials unless told not to
var ProfilesDescribe = NewMethod[ProfilesDescribeParams, ProfilesDescribeResult]("profiles.describe")
Sets a profile's description, or has the auxiliary model write one
var ProfilesExport = NewMethod[ProfilesExportParams, ProfilesExportResult]("profiles.export")
Writes a profile, its config, skills and theme, to a shareable archive
var ProfilesImport = NewMethod[ProfilesImportParams, ProfilesImportResult]("profiles.import")
Imports a shared profile archive as a new profile with its wrapper alias
var ProfilesList = NewMethod[ProfilesListParams, ProfilesListResult]("profiles.list")
Profile roster with previews so a client paints without a call per profile
var ProfilesOverview = NewMethod[ProfilesOverviewParams, ProfilesOverviewResult]("profiles.overview")
Every profile with the one icebath opens with, the sticky default
var ProjectsChange = NewMethod[ProjectsChangeParams, ProjectsChangeResult]("projects.change")
One change to the projects of the profile, answered with the projects after it
var ProjectsList = NewMethod[ProjectsListParams, ProjectsListResult]("projects.list")
Projects of the profile for the projects screen
var PromptBackground = NewMethod[SideAgentParams, TaskIDResult]("prompt.background")
Runs a task on a fresh agent in the background, its answer arriving as background.complete
var PromptBtw = NewMethod[SideAgentParams, TaskIDResult]("prompt.btw")
Asks a side question over the live conversation, its answer arriving as btw.complete
var PromptSubmit = NewMethod[PromptSubmitParams, PromptSubmitResult]("prompt.submit")
Sends a prompt on the method table route, a busy session queueing, steering or redirecting it
var ReactionEvent = NewEvent[ReactionPayload]("reaction")
Affection detected in the user's message
var ReasoningAvailableEvent = NewEvent[StreamDeltaPayload]("reasoning.available")
A whole reasoning block of a provider that does not stream it
var ReasoningDeltaEvent = NewEvent[StreamDeltaPayload]("reasoning.delta")
One streamed chunk of the model's reasoning
var ReloadEnv = NewMethod[ReloadEnvParams, ReloadEnvResult]("reload.env")
Reads the profile's env file again, built agents keeping their pool until a new session
var ReloadMCP = NewMethod[ReloadMCPParams, ReloadMCPResult]("reload.mcp")
Reconnects the MCP servers of the live sessions after a config change
var RequestCancelEvent = NewEvent[RequestCancelPayload]("request.cancel")
An open request was withdrawn, its card closes
var ReviewSummaryEvent = NewEvent[TextPayload]("review.summary")
Background review of the last turn finished
var RollbackDiff = NewMethod[RollbackDiffParams, RollbackDiffResult]("rollback.diff")
Diff between a checkpoint and the working tree
var RollbackList = NewMethod[RollbackListParams, RollbackListResult]("rollback.list")
Checkpoints of the session's working directory
var RollbackRestore = NewMethod[RollbackRestoreParams, RollbackRestoreResult]("rollback.restore")
Restores the working tree or one file to a checkpoint
var RollbackSessionDiff = NewCanonicalMethod[RollbackSessionDiffParams, RollbackSessionDiffResult]("rollback.session_diff")
Everything the session changed since its earliest retained checkpoint
var SecretRequest = NewRequest[SecretRequestParams, ValueAnswer]("secret")
Value of a named environment variable for a skill or setup flow
var SecretsChange = NewMethod[SecretsChangeParams, SecretsChangeResult]("secrets.change")
One change to a secret store, answered with the stores after it
var SecretsProjects = NewMethod[SecretsProjectsParams, SecretsProjectsResult]("secrets.projects")
Bitwarden projects an access token sees
var SecretsState = NewMethod[SecretsStateParams, SecretsStateResult]("secrets.state")
Both secret stores of the profile for the secret stores screen
var SessionActiveList = NewMethod[SessionActiveListParams, SessionActiveListResult]("session.active_list")
Live sessions of the gateway with their state, the current one marked
var SessionContextBreakdown = NewMethod[SessionContextBreakdownParams, SessionContextBreakdownResult]("session.context_breakdown")
Context window of a live session by category and by context file
var SessionControlRead = NewMethod[SessionControlReadParams, SessionControlReadResult]("session.control.read")
Goal, loop and heartbeat state of a session
var SessionControlUpdateEvent = NewEvent[SessionControlUpdatePayload]("session.control.update")
Persisted goal, loop or heartbeat state of a session changed
var SessionCreate = NewMethod[SessionCreateParams, SessionCreateResult]("session.create")
Creates a live session on the method table route
var SessionHistory = NewMethod[SessionHistoryParams, SessionHistoryResult]("session.history")
Transcript of a live session
var SessionInfoEvent = NewEvent[SessionInfo]("session.info")
Settings, inventory or live state of a session changed, the fields carried replacing the held ones
var SessionInterrupt = NewMethod[SessionInterruptParams, SessionInterruptResult]("session.interrupt")
Stops the running turn and its speech on the method table route
var SessionList = NewMethod[SessionListParams, SessionListResult]("session.list")
Lists stored sessions, newest first
var SessionLoginWait = NewMethod[SessionLoginWaitParams, SessionLoginWaitResult]("session.login_wait")
Retries a session's last turn when its pinned login resets, at once, or drops the armed retry
var SessionMostRecent = NewMethod[SessionMostRecentParams, SessionMostRecentResult]("session.most_recent")
Newest stored session of the profile
var SessionReclaimedEvent = NewEvent[SessionReclaimedPayload]("session.reclaimed")
The gateway reclaimed a live session from its clients
var SessionRedirect = NewMethod[SessionCorrectionParams, SessionCorrectionResult]("session.redirect")
Redirects the running turn on the method table route, held for the next turn while the agent builds
var SessionReplayGapEvent = NewEvent[SessionReplayGapPayload]("session.replay_gap")
The replay buffer of a session overflowed, the client resumes it
var SessionResume = NewMethod[SessionResumeParams, SessionResumeResult]("session.resume")
Resumes a stored session by id or exact title on the method table route
var SessionResumeProgressEvent = NewEvent[SessionResumeProgressPayload]("session.resume_progress")
Progress of a deferred resume loading the history
var SessionSave = NewMethod[SessionSaveParams, SessionSaveResult]("session.save")
Saves the transcript of a live session to a file
var SessionSetLogin = NewMethod[SessionSetLoginParams, SessionSetLoginResult]("session.set_login")
Pins a login, or the rotation set, and the exhaustion reaction for one session, per provider
var SessionSteer = NewMethod[SessionCorrectionParams, SessionCorrectionResult]("session.steer")
Puts text into the next tool result of the running turn on the method table route
var SessionTitleEvent = NewEvent[SessionTitlePayload]("session.title")
Automatic titling renamed a session
var SessionUpdatedEvent = NewEvent[SessionMutateResult]("session.updated")
A session edit committed or a deferred model pick settled, its projection riding beside the operation
var SessionUsageEvent = NewEvent[SessionUsagePayload]("session.usage")
Usage counters of a session after an API call or a turn
var SessionsChangedEvent = NewEvent[NoPayload]("sessions.changed")
The session store moved, the UI fetches the session list again
var SetupRuntimeCheck = NewMethod[SetupRuntimeCheckParams, SetupRuntimeCheckResult]("setup.runtime_check")
Strict check of the route a session would be built with, one provider alone when named
var SetupStatus = NewMethod[ProfileParams, SetupStatusResult]("setup.status")
Whether any provider is configured for the launch or a named profile, an unknown profile answering not ok with the error
var ShellExec = NewMethod[ShellExecParams, ShellExecResult]("shell.exec")
Runs one safe shell line for the composer, the dangerous and hardline ones refused
var SkillsChangedEvent = NewEvent[NoPayload]("skills.changed")
A skill root changed elsewhere, the UI fetches the command catalog again
var SkillsManage = NewMethod[SkillsManageParams, SkillsManageResult]("skills.manage")
Skills hub, the profile's skills by category or search, browse, inspect and install from the hub
var SkillsReload = NewMethod[SkillsReloadParams, SkillsReloadResult]("skills.reload")
Scans the skill directories again and answers what changed with the printed summary
var SkinChangedEvent = NewEvent[SkinPayloadModel]("skin.changed")
The active skin changed, its resolved colours and branding
var SlashExec = NewMethod[SlashExecParams, SlashExecResult]("slash.exec")
Runs a slash line through the live, plugin and dispatch stages of the session
var SnapshotCreate = NewMethod[SnapshotArgsParams, SnapshotLines]("snapshot.create")
Takes a quick state snapshot, the args joined as its label
var SnapshotList = NewMethod[SnapshotListParams, SnapshotLines]("snapshot.list")
Quick state snapshots of the profile as a numbered table
var SnapshotPrune = NewMethod[SnapshotArgsParams, SnapshotLines]("snapshot.prune")
Keeps the newest N quick snapshots, twenty when no count is given
var SnapshotTarget = NewMethod[SnapshotArgsParams, SnapshotTargetResult]("snapshot.target")
Resolves the snapshot a /snapshot restore names
var SpawnTreeList = NewMethod[SpawnTreeListParams, SpawnTreeListResult]("spawn_tree.list")
Lists saved spawn tree snapshots
var SpawnTreeLoad = NewMethod[SpawnTreeLoadParams, SpawnTreeLoadResult]("spawn_tree.load")
Loads one saved spawn tree snapshot
var SpawnTreeSave = NewMethod[SpawnTreeSaveParams, SpawnTreeSaveResult]("spawn_tree.save")
Saves a spawn tree snapshot of a session's subagents
var StatusUpdateEvent = NewEvent[StatusUpdatePayload]("status.update")
Transient status line
var SubagentCompleteEvent = NewEvent[SubagentEventPayload]("subagent.complete")
A child finished with its status and usage rollup
var SubagentInterrupt = NewMethod[SubagentIDParams, SubagentInterruptResult]("subagent.interrupt")
Hard interrupts one owned child, found false when it already finished
var SubagentList = NewMethod[SessionIDParams, SubagentListResult]("subagent.list")
Live children this session owns and its failed delegations
var SubagentProgressEvent = NewEvent[SubagentEventPayload]("subagent.progress")
Batched tool names a child ran
var SubagentSpawnRequestedEvent = NewEvent[SubagentEventPayload]("subagent.spawn_requested")
A delegate accepted a child goal before the child starts
var SubagentStartEvent = NewEvent[SubagentEventPayload]("subagent.start")
A delegated child started running
var SubagentSteer = NewMethod[SubagentSteerParams, SubagentSteerResult]("subagent.steer")
Queues steering text into a live delegated child this session owns
var SubagentTail = NewMethod[SubagentIDParams, SubagentTailResult]("subagent.tail")
Last 16 KB of the transcript of a child the conversation spawned, running or finished
var SubagentThinkingEvent = NewEvent[SubagentEventPayload]("subagent.thinking")
A reasoning chunk of a child
var SubagentToolEvent = NewEvent[SubagentEventPayload]("subagent.tool")
A child called a tool
var SudoRequest = NewRequest[SudoRequestParams, ValueAnswer]("sudo")
Sudo password for the terminal tool, never stored
var SystemBattery = NewMethod[ProfileParams, SystemBatteryResult]("system.battery")
Battery of the host the gateway runs on
var ThinkingDeltaEvent = NewEvent[StreamDeltaPayload]("thinking.delta")
Thinking text of the agent's thinking callback
var TodoUpdatedEvent = NewEvent[TodoState]("todo.updated")
Task list after a planning tool ran
var ToolCompleteEvent = NewEvent[ToolCompletePayload]("tool.complete")
A tool call finished
var ToolGeneratingEvent = NewEvent[ToolGeneratingPayload]("tool.generating")
The model is writing a tool call's arguments
var ToolOutputRiskEvent = NewEvent[ToolOutputRiskPayload]("tool.output_risk")
A tool's output carries injection findings
var ToolProgressEvent = NewEvent[ToolProgressPayload]("tool.progress")
Progress of a running MCP tool call
var ToolStartEvent = NewEvent[ToolStartPayload]("tool.start")
A tool call began
var ToolsConfigure = NewMethod[ToolsConfigureParams, ToolsConfigureResult]("tools.configure")
Turns toolsets or MCP tools on or off and rebuilds the session's agent so the change applies now
var ToolsList = NewMethod[ToolsListParams, ToolsListResult]("tools.list")
Every toolset and MCP tool of a platform with its status
var ToolsShow = NewMethod[SessionScopedParams, ToolsShowResult]("tools.show")
Tools of the session grouped by toolset, deferred tools included
var VaultChange = NewMethod[VaultChangeParams, VaultListResult]("vault.change")
One change to the autofill vault, answered with the vault after it
var VaultCodeRequest = NewRequest[VaultCodeRequestParams, ValueAnswer]("vault.code")
One time or two factor code the user reads from a device
var VaultList = NewMethod[VaultListParams, VaultListResult]("vault.list")
Items, password managers and key of the autofill vault for its screen
var VaultSaveLoginRequest = NewRequest[VaultSaveLoginRequestParams, ValueAnswer]("vault.save_login")
Login to keep for a site the agent is about to fill
var VaultUnlockRequest = NewRequest[VaultUnlockRequestParams, ValueAnswer]("vault.unlock_prompt")
Master password unlocking a password manager for the session
var VoiceInterruptedEvent = NewEvent[NoPayload]("voice.interrupted")
A spoken interjection interrupted the turn
var VoicePartialEvent = NewEvent[VoicePartialPayload]("voice.partial")
Live text so far while the user still speaks
var VoicePlayback = NewMethod[VoicePlaybackParams, NoPayload]("voice.playback")
Tells the gateway the window's speech started or stopped sounding, so barge in listens past the last clip
var VoiceRecord = NewMethod[VoiceRecordParams, VoiceRecordResult]("voice.record")
Starts or stops a push to talk capture, the text arriving as voice.transcript
var VoiceSpeechEvent = NewEvent[VoiceSpeechPayload]("voice.speech")
Spoken reply audio and thinking blips of a session, sent only to the window that plays them
var VoiceStatusEvent = NewEvent[VoiceStatusPayload]("voice.status")
The recorder state changed
var VoiceToggle = NewMethod[VoiceToggleParams, VoiceToggleResult]("voice.toggle")
Turns voice mode or speech output on or off, or reports them with the requirements probe
var VoiceTranscriptEvent = NewEvent[VoiceTranscriptPayload]("voice.transcript")
A voice capture produced text or ended on a stop phrase or the silence limit
var WakeDetectedEvent = NewEvent[WakeDetectedPayload]("wake.detected")
A wake phrase fired
var WakeResume = NewMethod[WakeControlParams, WakeResumeResult]("wake.resume")
Reclaims the microphone after a pause, nothing when the listener is not armed
var WakeStart = NewMethod[WakeStartParams, WakeStartResult]("wake.start")
Arms the wake word listener for the calling surface
var WakeStatus = NewMethod[WakeStatusParams, WakeStatusResult]("wake.status")
Everything a client needs to draw the wake word state and decide whether to arm it
var WakeStop = NewMethod[WakeStopParams, WakeStopResult]("wake.stop")
Stops this surface's listener, persist also turning the wake word off in config
var WorkerAdopt = NewCanonicalMethod[WorkerScopeParams, WorkerExecution]("worker.adopt")
Adopts a registered execution after the live producer claim is verified
var WorkerPersist = NewCanonicalMethod[WorkerPersistParams, map[string]any]("worker.persist")
Durable write of an adopted worker answered with the operation's receipt
var WorkerRegister = NewCanonicalMethod[WorkerRegisterParams, WorkerExecution]("worker.register")
Registers a compute worker execution on an idle session
var WorktreeCreate = NewMethod[WorktreeCreateParams, WorktreeCreateResult]("worktree.create")
Creates an isolated git worktree on a new branch
var WorktreeList = NewMethod[WorktreeCwdParams, WorktreeListResult]("worktree.list")
Git worktrees of the folder's repository
var WorktreePrune = NewMethod[WorktreePruneParams, WorktreePruneResult]("worktree.prune")
Reclaims stale trees and merged branches, or names what a dry run would reclaim
var WorktreeRecord = NewMethod[WorktreeRef, WorktreeRecordResult]("worktree.record")
Remembers a tree a session moved into, so its resume finds it
var WorktreeSettle = NewMethod[WorktreeRef, WorktreeSettleResult]("worktree.settle")
Removes a clean tree and its branch, or says why it is kept
var WorktreeStatus = NewMethod[WorktreeStatusParams, WorktreeStatusResult]("worktree.status")
Repository of a folder and the tree a -w launch locked
Functions ¶
func LocalImagePath ¶
Candidate as the path of an existing local image file, empty for anything else, URLs and data URLs included
func Loose ¶
Decodes a wire value into out, unknown keys and missing keys tolerated and a wrong type refused
func Merge ¶
func Merge[T any](base *T, patch T)
Copies every field a patch carries, a set pointer, list or map or a non zero value, over the base
func MissingParam ¶
Refusal the gateway gives params that lack a field the method requires
func NormalizeSlashSearchQuery ¶
Slash query trimmed, stripped of leading slashes and lowercased
func Plain ¶
Wire value of a typed value, plain maps, lists, text, booleans, int64 and float64, nil lists and maps empty
func ReportMisfit ¶
Panics with a contract misfit under test isolation, logs it as an error otherwise
func RoomPayload ¶
Payload of a room log event read into the type of its kind, false when it holds another shape
func SameBuild ¶
Whether a peer that reported this build runs the same build as this process; the window and its background service are always one build
func ScoreFields ¶
Best exact, prefix or substring tier of any field plus offset, infinity on a miss
func SealPayload ¶
Payload of an event checked against its declared type, a misfit reported and the payload kept
func Strict ¶
Decodes a wire value into out, refusing unknown keys, missing required keys and wrong types with the field named
func TokenizeSearchText ¶
Lowercased value followed by its alphanumeric words, the search tokens of a slash menu field
func ToolImagePath ¶
Local image a successful tool call produced or looked at, empty otherwise, named fields only so a result listing paths in free text shows nothing
func UnknownMethodMessage ¶
Text of the method not found error both routes send
func UnknownParam ¶
Refusal the gateway gives params carrying a field the method does not declare
Types ¶
type A2AForwardParams ¶
type A2AForwardParams struct {
Agent string `json:"agent"`
Tenant string `json:"tenant"`
Peer string `json:"peer"`
ContextID string `json:"context_id"`
InputID string `json:"input_id"`
Text string `json:"text"`
}
Identity tuple of one A2A input and its text
type A2AForwardResult ¶
type A2AForwardResult struct {
AdmissionReceipt
SessionID string `json:"session_id"`
Result any `json:"result"`
}
Admission of a forwarded input, the conversation it landed in and the saved result of a finished one
type ActiveSubagent ¶
type ActiveSubagent struct {
SubagentID string `json:"subagent_id"`
ParentID *string `json:"parent_id,omitzero"`
Depth *int64 `json:"depth,omitzero"`
Goal *string `json:"goal,omitzero"`
DelegationID *string `json:"delegation_id,omitzero"`
Model *string `json:"model,omitzero"`
StartedAt *float64 `json:"started_at,omitzero"`
Status *SubagentStatus `json:"status,omitzero"`
ToolCount *int64 `json:"tool_count,omitzero"`
LastTool *string `json:"last_tool,omitzero"`
OwnerAgentSessionID *string `json:"owner_agent_session_id,omitzero"`
}
One live delegated child as the delegate registry holds it
type AdmissionReceipt ¶
type AdmissionReceipt struct {
AdmissionID string `json:"admission_id"`
Ref CanonicalSessionRef `json:"ref"`
Sequence int64 `json:"sequence"`
Status CanonicalPendingAdmissionStatus `json:"status"`
Outcome *string `json:"outcome"`
AuthorityEpoch int64 `json:"authority_epoch"`
ExecutionGeneration *int64 `json:"execution_generation"`
}
Receipt of one admission in the owner's durable queue
type AgentPluginRow ¶
type AgentPluginRow struct {
Name string `json:"name"`
Key string `json:"key"`
Version string `json:"version"`
Description string `json:"description"`
Source string `json:"source"`
Status string `json:"status"`
Portable bool `json:"portable"`
InstallDir string `json:"install_dir"`
Servers []PluginServerRow `json:"servers"`
CatalogName *string `json:"catalog_name,omitzero"`
CatalogTier *string `json:"catalog_tier,omitzero"`
InstalledSha *string `json:"installed_sha,omitzero"`
CatalogSha *string `json:"catalog_sha,omitzero"`
CatalogVersion *string `json:"catalog_version,omitzero"`
UpdateAvailable *bool `json:"update_available,omitzero"`
UpdateTarget *string `json:"update_target,omitzero"`
PinnedSha *string `json:"pinned_sha,omitzero"`
SettingsSchema []PluginSettingField `json:"settings_schema,omitzero"`
Tools []string `json:"tools,omitzero"`
// How the plugin came to be in the plugins folder, self-cloned for a git clone made by hand that no install recorded
Provenance string `json:"provenance,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 ApprovalProposal ¶
type ApprovalProposal struct {
Pattern string `json:"pattern"`
// glob for a command pattern, class for every command of one risky class
Kind string `json:"kind"`
// How often a person approved a command the entry covers
Count int64 `json:"count"`
Classes []string `json:"classes,omitzero"`
Examples []string `json:"examples,omitzero"`
}
One allowed commands entry the approval history proposes, a command pattern or a whole class of risky command
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 ApprovalVerdict ¶
type ApprovalVerdict string
func (ApprovalVerdict) Values ¶
func (ApprovalVerdict) Values() []string
type ApprovalsAllowParams ¶
type ApprovalsAllowParams struct {
Profile *string `json:"profile,omitzero"`
Patterns []string `json:"patterns"`
}
Patterns to add to the allowed commands
type ApprovalsAllowResult ¶
Patterns added and the size of the allowed commands after them
type ApprovalsSuggestParams ¶
type ApprovalsSuggestParams struct {
Profile *string `json:"profile,omitzero"`
// Days of history read, 90 when absent and every day for zero
Days *int64 `json:"days,omitzero"`
// Approvals an entry needs before it is proposed, 2 when absent
MinCount int64 `json:"min_count,omitzero"`
// Most entries proposed, 20 when absent
Limit int64 `json:"limit,omitzero"`
}
How far back the approval history is read and how much it proposes
type ApprovalsSuggestResult ¶
type ApprovalsSuggestResult struct {
Days int64 `json:"days"`
Proposals []ApprovalProposal `json:"proposals"`
// Entries the allowed commands hold now
Allowed int64 `json:"allowed"`
}
Entries the approval history proposes, the most approved first
type ApprovalsTestParams ¶
type ApprovalsTestParams struct {
Profile *string `json:"profile,omitzero"`
Command string `json:"command"`
// Where the command would run, the profile's own place when empty
EnvType string `json:"env_type,omitzero"`
}
Command whose approval verdict is asked for, never run
type ApprovalsTestResult ¶
type ApprovalsTestResult struct {
Command string `json:"command"`
EnvType string `json:"env_type"`
Verdict ApprovalVerdict `json:"verdict"`
Rule string `json:"rule,omitzero"`
Detail string `json:"detail,omitzero"`
Variants []string `json:"variants,omitzero"`
}
What the approval rules do with the command, the rule that decided and every spelling of it the rules read
type AttachedImageResult ¶
type AttachedImageResult struct {
Attached bool `json:"attached"`
Name string `json:"name,omitzero"`
Width *int64 `json:"width,omitzero"`
Height *int64 `json:"height,omitzero"`
TokenEstimate *int64 `json:"token_estimate,omitzero"`
Path string `json:"path,omitzero"`
Count *int64 `json:"count,omitzero"`
Remainder *string `json:"remainder,omitzero"`
Text string `json:"text,omitzero"`
Bytes *int64 `json:"bytes,omitzero"`
Message string `json:"message,omitzero"`
}
Queued image with its size and token estimate, or attached false with the message why nothing was queued
type AutoContinue ¶
type BatteryCategory ¶
type BatteryCategory string
func (BatteryCategory) Values ¶
func (BatteryCategory) Values() []string
type BillingBlock ¶
type BillingBlock struct {
Provider string `json:"provider"`
ProviderLabel string `json:"provider_label"`
Model string `json:"model"`
BillingURL *string `json:"billing_url"`
Message string `json:"message"`
Unverified *bool `json:"unverified,omitzero"`
}
Provider out of credits or payment block with the page that settles it
type BotDeliverParams ¶
type BotDeliverParams struct {
Profile *string `json:"profile,omitzero"`
Message string `json:"message"`
ID string `json:"id"`
SessionID *string `json:"session_id,omitzero"`
Author map[string]any `json:"author,omitzero"`
NotificationCategory *string `json:"notification_category,omitzero"`
}
One message a bot relay hands to a profile, its id the delivery key
type BotDeliverResult ¶
type BotDeliverResult struct {
Status string `json:"status"`
DeliveryID string `json:"delivery_id"`
ProfileHome string `json:"profile_home"`
SessionID string `json:"session_id"`
AdmissionID *string `json:"admission_id,omitzero"`
Refused *bool `json:"refused,omitzero"`
Message string `json:"message"`
Reply *string `json:"reply,omitzero"`
RetryAdmissionID *string `json:"retry_admission_id,omitzero"`
Error *string `json:"error,omitzero"`
Reason *string `json:"reason,omitzero"`
}
Receipt of a delivery, naming its admission unless the queue refused it before anything was committed
func (*BotDeliverResult) UnmarshalJSON ¶
func (r *BotDeliverResult) UnmarshalJSON(data []byte) error
Refuses a receipt that is neither admitted nor a refused failed receipt without an admission
type BrowserAction ¶
type BrowserAction string
func (BrowserAction) Values ¶
func (BrowserAction) Values() []string
type BrowserManageParams ¶
type BrowserManageParams struct {
Action BrowserAction `json:"action,omitzero"`
URL *string `json:"url,omitzero"`
SessionID string `json:"session_id,omitzero"`
Profile *string `json:"profile,omitzero"`
}
Browser action, the CDP url a connect attaches to and the session its progress lines go to
type BrowserManageResult ¶
type BrowserManageResult struct {
Connected bool `json:"connected"`
URL string `json:"url,omitzero"`
Messages []string `json:"messages,omitzero"`
}
Whether the tools reach a browser, its CDP url and the lines a connect narrated
type BrowserProgressLevel ¶
type BrowserProgressLevel string
func (BrowserProgressLevel) Values ¶
func (BrowserProgressLevel) Values() []string
type BrowserProgressPayload ¶
type BrowserProgressPayload struct {
Message string `json:"message"`
Level BrowserProgressLevel `json:"level"`
}
One line of a browser connect or launch
type BusyInputMode ¶
type BusyInputMode string
func (BusyInputMode) Values ¶
func (BusyInputMode) Values() []string
type CLIArg ¶
type CLIArg struct {
Name string `json:"name"`
// Placeholder the help shows, the name when empty
Metavar string `json:"metavar,omitzero"`
Optional bool `json:"optional,omitzero"`
// Takes one or more words
Variadic bool `json:"variadic,omitzero"`
// Takes every word after it unparsed, flags included
Remainder bool `json:"remainder,omitzero"`
// Value type, string or int
Type string `json:"type"`
Choices []string `json:"choices,omitzero"`
Default string `json:"default,omitzero"`
Help string `json:"help,omitzero"`
}
One positional argument of a CLI command in the order the parser reads them
type CLICommand ¶
type CLICommand struct {
// Words after icebath, empty for the bare icebath command
Path string `json:"path"`
Aliases []string `json:"aliases,omitzero"`
// One line help
Short string `json:"short,omitzero"`
// Description --help prints under the usage
Long string `json:"long,omitzero"`
// Usage line --help prints, without the leading usage:
Usage string `json:"usage"`
Args []CLIArg `json:"args,omitzero"`
Flags []CLIFlag `json:"flags,omitzero"`
// Has subcommands
Group bool `json:"group,omitzero"`
// Its own parser reads every word, so Flags is not the whole option set and --help is the only full reference
RawArgs bool `json:"raw_args,omitzero"`
// Not listed in its parent's --help
Hidden bool `json:"hidden,omitzero"`
Class CLIRunClass `json:"class"`
// Why the class is not inside, in plain words
ClassReason string `json:"class_reason,omitzero"`
// Flags that make an after_exit command read only, so it runs inside when one is given
InsideWith []string `json:"inside_with,omitzero"`
// Plugin that added the command, empty for a built in one
Plugin string `json:"plugin,omitzero"`
}
One command path of the icebath CLI with its help, arguments, options and run class
type CLIFlag ¶
type CLIFlag struct {
// Long name without dashes
Name string `json:"name"`
// One letter short name without the dash
Shorthand string `json:"shorthand,omitzero"`
// Other long spellings the parser accepts
Aliases []string `json:"aliases,omitzero"`
// Value type, bool, count, string, int, float64, stringArray or another pflag type name
Type string `json:"type"`
// Value used when the flag is left out, empty when there is none
Default string `json:"default,omitzero"`
// Whether the flag may be given without a value
ValueOptional bool `json:"value_optional,omitzero"`
// Whether the flag may be given more than once, each adding a value
Repeatable bool `json:"repeatable,omitzero"`
// Only values the parser accepts, empty for free text
Choices []string `json:"choices,omitzero"`
// Placeholder the help shows for the value
Metavar string `json:"metavar,omitzero"`
Required bool `json:"required,omitzero"`
// Left out of --help
Hidden bool `json:"hidden,omitzero"`
// Accepted by every command, the root's persistent flags
Global bool `json:"global,omitzero"`
// Flags of its group that may not be given together with it, itself included
Exclusive []string `json:"exclusive,omitzero"`
Help string `json:"help,omitzero"`
}
One option of a CLI command as its parser accepts it
type CLIRunClass ¶
type CLIRunClass string
When a CLI command may run relative to a live terminal UI and its background service
const ( // Safe to run while the terminal UI and its background service run CLIRunInside CLIRunClass = "inside" // Must run after the terminal UI exits, it replaces or stops what the UI runs on CLIRunAfterExit CLIRunClass = "after_exit" // Never offered inside the terminal UI, plumbing other programs call or a command that opens another icebath CLIRunInternal CLIRunClass = "internal" )
func (CLIRunClass) Values ¶
func (CLIRunClass) Values() []string
type CanonicalApprovalParams ¶
type CanonicalApprovalParams struct {
Profile *string `json:"profile,omitzero"`
SessionID string `json:"session_id"`
ExecutionGeneration int64 `json:"execution_generation"`
PromptID string `json:"prompt_id"`
Choice ApprovalChoice `json:"choice"`
}
Verdict on the approval prompt of a running generation
type CanonicalAttachedImage ¶
type CanonicalAttachedImage struct {
AttachedImageResult
Mime string `json:"mime"`
}
Image the session authority queued from uploaded bytes, with the sniffed mime type
type CanonicalAttachment ¶
Image a canonical prompt carries, a path the gateway reads and its media type
type CanonicalClarifyParams ¶
type CanonicalClarifyParams struct {
SessionID string `json:"session_id"`
ExecutionGeneration int64 `json:"execution_generation"`
PromptID string `json:"prompt_id"`
Answer string `json:"answer"`
}
Answer to the clarify prompt of a running generation, empty when skipped
type CanonicalControlParams ¶
type CanonicalControlParams struct {
Profile *string `json:"profile,omitzero"`
SessionID string `json:"session_id"`
ExecutionGeneration int64 `json:"execution_generation"`
}
Running generation a canonical control is fenced to
type CanonicalCorrectionParams ¶
type CanonicalCorrectionParams struct {
Profile *string `json:"profile,omitzero"`
SessionID string `json:"session_id"`
ExecutionGeneration int64 `json:"execution_generation"`
Text string `json:"text"`
}
Correction text for the running generation of a canonical session
type CanonicalCreateParams ¶
type CanonicalCreateParams struct {
Profile *string `json:"profile,omitzero"`
RequestID *string `json:"request_id,omitzero"`
Source *string `json:"source,omitzero"`
Cwd *string `json:"cwd,omitzero"`
RowCwd *string `json:"row_cwd,omitzero"`
Model *string `json:"model,omitzero"`
Provider *string `json:"provider,omitzero"`
BaseURL *string `json:"base_url,omitzero"`
APIKey *string `json:"api_key,omitzero"`
Toolsets []string `json:"toolsets,omitzero"`
Reasoning *string `json:"reasoning,omitzero"`
MaxTurns *int64 `json:"max_turns,omitzero"`
IgnoreRules bool `json:"ignore_rules,omitzero"`
Yolo bool `json:"yolo,omitzero"`
SafeMode bool `json:"safe_mode,omitzero"`
IgnoreUserConfig bool `json:"ignore_user_config,omitzero"`
Skills []string `json:"skills,omitzero"`
Checkpoints bool `json:"checkpoints,omitzero"`
AcceptHooks bool `json:"accept_hooks,omitzero"`
PassSessionID bool `json:"pass_session_id,omitzero"`
Editor map[string]any `json:"editor,omitzero"`
Title *string `json:"title,omitzero"`
Hidden bool `json:"hidden,omitzero"`
FollowProfileConfig *bool `json:"follow_profile_config,omitzero"`
ServiceTier *string `json:"service_tier,omitzero"`
CwdExplicit *bool `json:"cwd_explicit,omitzero"`
RunBudget *float64 `json:"run_budget,omitzero"`
Verbose bool `json:"verbose,omitzero"`
ClientEnv map[string]string `json:"client_env,omitzero"`
// Session whose login choices, every provider's pin and exhaustion reaction, the new session starts with
LoginsFrom *string `json:"logins_from,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"`
// Stored scope only, archived sessions listed too
IncludeArchived bool `json:"include_archived,omitzero"`
}
type CanonicalListParamsScope ¶
type CanonicalListParamsScope string
func (CanonicalListParamsScope) Values ¶
func (CanonicalListParamsScope) Values() []string
type CanonicalListResult ¶
type CanonicalListResult struct {
Sessions []CanonicalSessionListRow `json:"sessions"`
Scope CanonicalListResultScope `json:"scope"`
}
type CanonicalListResultScope ¶
type CanonicalListResultScope string
func (CanonicalListResultScope) Values ¶
func (CanonicalListResultScope) Values() []string
type CanonicalModelOverride ¶
type CanonicalModelOverride struct {
Model string `json:"model"`
Provider *string `json:"provider,omitzero"`
Reasoning *string `json:"reasoning,omitzero"`
}
Model one turn runs on instead of the session's own
type CanonicalPendingAdmission ¶
type CanonicalPendingAdmission struct {
AdmissionID string `json:"admission_id"`
Ref CanonicalSessionRef `json:"ref"`
Sequence int64 `json:"sequence"`
Status CanonicalPendingAdmissionStatus `json:"status"`
Outcome *string `json:"outcome"`
AuthorityEpoch int64 `json:"authority_epoch"`
ExecutionGeneration *int64 `json:"execution_generation"`
InputID string `json:"input_id"`
Text string `json:"text"`
DisplayKind *string `json:"display_kind,omitzero"`
DisplayMetadata *DisplayMetadata `json:"display_metadata,omitzero"`
Controls []CanonicalPendingAdmissionControls `json:"controls,omitzero"`
Steering *bool `json:"steering,omitzero"`
}
type CanonicalPendingAdmissionControls ¶
type CanonicalPendingAdmissionControls string
func (CanonicalPendingAdmissionControls) Values ¶
func (CanonicalPendingAdmissionControls) Values() []string
type CanonicalPendingAdmissionStatus ¶
type CanonicalPendingAdmissionStatus string
func (CanonicalPendingAdmissionStatus) Values ¶
func (CanonicalPendingAdmissionStatus) Values() []string
type CanonicalPendingPrompt ¶
type CanonicalPendingPrompt struct {
Kind CanonicalPendingPromptKind `json:"kind"`
PromptID string `json:"prompt_id"`
ExecutionGeneration int64 `json:"execution_generation"`
Choices []string `json:"choices"`
Command *string `json:"command,omitzero"`
Description *string `json:"description,omitzero"`
Edit map[string]any `json:"edit,omitzero"`
OpenURL *string `json:"open_url,omitzero"`
Question *string `json:"question,omitzero"`
MultiSelect *bool `json:"multi_select,omitzero"`
TimeoutS *int64 `json:"timeout_s,omitzero"`
}
type CanonicalPendingPromptKind ¶
type CanonicalPendingPromptKind string
func (CanonicalPendingPromptKind) Values ¶
func (CanonicalPendingPromptKind) Values() []string
type CanonicalReplaceQueuedParams ¶
type CanonicalReplaceQueuedParams struct {
Profile *string `json:"profile,omitzero"`
SessionID string `json:"session_id"`
AdmissionID string `json:"admission_id"`
SubmissionID string `json:"submission_id"`
Text string `json:"text"`
Attachments []CanonicalAttachment `json:"attachments,omitzero"`
DisplayKind *HiddenDisplayKind `json:"display_kind,omitzero"`
TitlePreview *string `json:"title_preview,omitzero"`
}
Queued admission replaced by an edited prompt that goes to the back of the queue under a new submission id
type CanonicalResumeParams ¶
type CanonicalResumeParams struct {
Profile *string `json:"profile,omitzero"`
SessionID string `json:"session_id,omitzero"`
Title *string `json:"title,omitzero"`
Latest *CanonicalResumeParamsLatest `json:"latest,omitzero"`
Workspace *string `json:"workspace,omitzero"`
Source *string `json:"source,omitzero"`
Editor map[string]any `json:"editor,omitzero"`
APIKey *string `json:"api_key,omitzero"`
DeferHistory bool `json:"defer_history,omitzero"`
OmitMessages bool `json:"omit_messages,omitzero"`
Cols *int64 `json:"cols,omitzero"`
DisplayProjection bool `json:"display_projection,omitzero"`
// Replays the events after this cursor instead of the whole transcript, the transcript coming back when the cursor fell out of the window
ReplayFrom *ReplayCursor `json:"replay_from,omitzero"`
}
type CanonicalResumeParamsLatest ¶
type CanonicalResumeParamsLatest string
func (CanonicalResumeParamsLatest) Values ¶
func (CanonicalResumeParamsLatest) Values() []string
type CanonicalRoomApproveParams ¶
type CanonicalRoomApproveParams struct {
Profile *string `json:"profile,omitzero"`
RoomID string `json:"room_id"`
MemberID string `json:"member_id"`
TaskID string `json:"task_id"`
ExecutionGeneration int64 `json:"execution_generation"`
Choice RoomApproveChoice `json:"choice"`
RequestID string `json:"request_id"`
}
type CanonicalRoomCreateParams ¶
type CanonicalRoomCreateParams struct {
Profile *string `json:"profile,omitzero"`
RoomID string `json:"room_id"`
Name string `json:"name"`
Members []RoomMemberInput `json:"members"`
}
type CanonicalSessionHandle ¶
type CanonicalSessionHandle struct {
Ref CanonicalSessionRef `json:"ref"`
InstanceID string `json:"instance_id"`
AuthorityEpoch int64 `json:"authority_epoch"`
Revision int64 `json:"revision"`
ExecutionGeneration int64 `json:"execution_generation"`
ExecutionState ExecutionState `json:"execution_state"`
}
Fences of a canonical session after a control, its revision, generation and execution state
type CanonicalSessionInfoParams ¶
type CanonicalSessionInfoParams struct {
SessionID string `json:"session_id"`
}
type CanonicalSessionListRow ¶
type CanonicalSessionListRow struct {
SessionID string `json:"session_id"`
ID string `json:"id"`
Title string `json:"title"`
Source *string `json:"source"`
StartedAt *float64 `json:"started_at"`
MessageCount int64 `json:"message_count"`
Running bool `json:"running"`
Model *string `json:"model,omitzero"`
ResolvedID *string `json:"resolved_id,omitzero"`
RootTitle *string `json:"root_title,omitzero"`
// Opening words of the session's last exchange
Preview *string `json:"preview,omitzero"`
Pinned bool `json:"pinned,omitzero"`
Archived bool `json:"archived,omitzero"`
// Last activity in epoch seconds, on stored rows
LastActive *float64 `json:"last_active,omitzero"`
}
type CanonicalSessionRef ¶
type CanonicalShellExecParams ¶
type CanonicalShellExecParams struct {
SessionID string `json:"session_id"`
Command string `json:"command"`
Profile *string `json:"profile,omitzero"`
}
Shell line of a local session on the shared owner, run in its frozen launch cwd
type CanonicalSnapshot ¶
type CanonicalSnapshot struct {
SessionID string `json:"session_id"`
StoredSessionID string `json:"stored_session_id"`
Messages []TranscriptMessage `json:"messages"`
MessagesOmitted *bool `json:"messages_omitted,omitzero"`
DisplayMessages []TranscriptMessage `json:"display_messages,omitzero"`
MessageCount int64 `json:"message_count"`
Running bool `json:"running"`
AuthorityEpoch int64 `json:"authority_epoch"`
ReplayEpoch string `json:"replay_epoch"`
LastSequence int64 `json:"last_sequence"`
SubscriptionID string `json:"subscription_id"`
Revision int64 `json:"revision"`
ExecutionGeneration int64 `json:"execution_generation"`
Pending []CanonicalPendingAdmission `json:"pending"`
Prompts []CanonicalPendingPrompt `json:"prompts"`
Info SessionInfo `json:"info"`
PendingConnection *ConnectionRequestPayload `json:"pending_connection,omitzero"`
TodoState *TodoState `json:"todo_state,omitzero"`
OpenRequests []OpenRequestEntry `json:"open_requests,omitzero"`
// Set when the resume named a replay cursor: true when the events after it were replayed, false when the transcript came back instead
Replayed *bool `json:"replayed,omitzero"`
}
type CanonicalSubmitParams ¶
type CanonicalSubmitParams struct {
Profile *string `json:"profile,omitzero"`
SessionID string `json:"session_id"`
Text string `json:"text"`
SubmissionID *string `json:"submission_id,omitzero"`
InputID *string `json:"input_id,omitzero"`
Queued bool `json:"queued,omitzero"`
Attachments []CanonicalAttachment `json:"attachments,omitzero"`
Finite bool `json:"finite,omitzero"`
Unattended bool `json:"unattended,omitzero"`
Surface *string `json:"surface,omitzero"`
VoiceContext *string `json:"voice_context,omitzero"`
Interrupted bool `json:"interrupted,omitzero"`
VoiceTurn bool `json:"voice_turn,omitzero"`
DisplayKind *HiddenDisplayKind `json:"display_kind,omitzero"`
TitlePreview *string `json:"title_preview,omitzero"`
TurnAuthor *CanonicalTurnAuthor `json:"turn_author,omitzero"`
APIText *string `json:"api_text,omitzero"`
ModelOverride *CanonicalModelOverride `json:"model_override,omitzero"`
ClarifyBatch bool `json:"clarify_batch,omitzero"`
}
Prompt admitted into the owner's durable queue, input_id naming the client's own submission
type CanonicalTurnAuthor ¶
type CanonicalTurnAuthor struct {
ID *string `json:"id,omitzero"`
Name *string `json:"name,omitzero"`
IsBot bool `json:"is_bot,omitzero"`
Origin *string `json:"origin,omitzero"`
}
Author a bot or room relay names for a turn
type CatalogAppState ¶
type CatalogAppState string
Whether the native app a catalog plugin drives is there and running
func (CatalogAppState) Values ¶
func (CatalogAppState) Values() []string
type CatalogApproved ¶
type CatalogApproved struct {
Force bool `json:"force"`
Enable bool `json:"enable"`
Ref *string `json:"ref,omitzero"`
}
Advanced choices the user approved on a catalog row, repeated by a retry
type CatalogPluginPresence ¶
type CatalogPluginPresence struct {
Name string `json:"name"`
Title string `json:"title"`
State CatalogAppState `json:"state"`
Sentence string `json:"sentence"`
Disclosure string `json:"disclosure"`
}
Catalog plugin of this OS, its app state, the sentence naming what is missing and its disclosure
type CatalogScan ¶
type CatalogScan struct {
Status CatalogScanStatus `json:"status"`
Summary string `json:"summary"`
}
Security scan of the pinned commit of a catalog plugin
type CatalogScanStatus ¶
type CatalogScanStatus string
Verdict of the catalog's security scan
func (CatalogScanStatus) Values ¶
func (CatalogScanStatus) Values() []string
type CatalogServerError ¶
MCP server an installed plugin brought that did not connect, with the reason
type CatalogTier ¶
type CatalogTier string
Trust tier of a catalog plugin
func (CatalogTier) Values ¶
func (CatalogTier) Values() []string
type ChatAppPairing ¶
type ChatAppPairing struct {
Platform string `json:"platform"`
RequestID string `json:"request_id,omitzero"`
UserID string `json:"user_id"`
UserName string `json:"user_name,omitzero"`
Minutes int64 `json:"minutes"`
}
Pairing request a person sent a bot, waiting for approval
type ChatAppPeer ¶
type ChatAppPeer struct {
Name string `json:"name"`
URL string `json:"url"`
Note string `json:"note,omitzero"`
KeySet bool `json:"key_set,omitzero"`
// Variable of the home's .env holding the peer's key
KeyEnv string `json:"key_env"`
}
Another icebath on another machine whose agents can be messaged
type ChatAppPlatform ¶
type ChatAppPlatform struct {
Platform string `json:"platform"`
Enabled bool `json:"enabled"`
// connected, retrying, failed or another word the background service wrote, empty when it never reported the platform
State string `json:"state,omitzero"`
Error string `json:"error,omitzero"`
// Chat replies and scheduled jobs go to when no chat is named
Home string `json:"home,omitzero"`
// Chats the platform found, as send targets
Targets []ChatAppTarget `json:"targets,omitzero"`
}
One messaging platform a profile set up, whether it is on and what the background service last said about it
type ChatAppTarget ¶
One chat a message can be sent to, the target the send command takes and the name it shows
type ChatAppUser ¶
type ChatAppUser struct {
Platform string `json:"platform"`
UserID string `json:"user_id"`
UserName string `json:"user_name,omitzero"`
}
Person a pairing approved, who may talk to the bot
type ChatAppWebhook ¶
type ChatAppWebhook struct {
Name string `json:"name"`
Description string `json:"description,omitzero"`
Events string `json:"events,omitzero"`
Prompt string `json:"prompt,omitzero"`
Skills string `json:"skills,omitzero"`
Deliver string `json:"deliver,omitzero"`
DeliverChat string `json:"deliver_chat_id,omitzero"`
DeliverOnly bool `json:"deliver_only,omitzero"`
URL string `json:"url,omitzero"`
Created string `json:"created_at,omitzero"`
}
One webhook route that starts the agent or delivers a message when something posts to it
type ChatAppsListParams ¶
type ChatAppsListParams struct {
Profile *string `json:"profile,omitzero"`
}
type ChatAppsListResult ¶
type ChatAppsListResult struct {
Platforms []ChatAppPlatform `json:"platforms"`
Pending []ChatAppPairing `json:"pending"`
Approved []ChatAppUser `json:"approved"`
// Platforms that refuse approvals for a while after too many wrong codes
LockedOut []string `json:"locked_out,omitzero"`
WebhooksEnabled bool `json:"webhooks_enabled"`
Webhooks []ChatAppWebhook `json:"webhooks"`
Peers []ChatAppPeer `json:"peers"`
// Whether the background service is installed to start with the computer
ServiceInstalled bool `json:"service_installed"`
}
Everything the chat apps screen shows for a profile
type ChatAppsPairingParams ¶
type ChatAppsPairingParams struct {
Profile *string `json:"profile,omitzero"`
Action string `json:"action"`
Platform string `json:"platform"`
Code string `json:"code,omitzero"`
UserID string `json:"user_id,omitzero"`
}
Pairing change: approve a request id or code, revoke an approved person, or clear the pending requests of a platform
type ChatAppsPeerParams ¶
type ChatAppsPeerParams struct {
Profile *string `json:"profile,omitzero"`
Action string `json:"action"`
Name string `json:"name"`
URL string `json:"url,omitzero"`
Key string `json:"key,omitzero"`
Note string `json:"note,omitzero"`
}
Peer change: add or update one, or remove one
type ChatAppsResult ¶
type ChatAppsResult struct {
Lines []string `json:"lines"`
}
What a chat apps change printed, the same lines its command prints in a terminal
type ChatAppsSendParams ¶
type ChatAppsSendParams struct {
Profile *string `json:"profile,omitzero"`
Target string `json:"target"`
Message string `json:"message"`
Subject string `json:"subject,omitzero"`
}
Message to send to a chat of a configured platform
type ChatAppsWebhookParams ¶
type ChatAppsWebhookParams struct {
Profile *string `json:"profile,omitzero"`
Action string `json:"action"`
Name string `json:"name"`
Prompt string `json:"prompt,omitzero"`
Events string `json:"events,omitzero"`
Description string `json:"description,omitzero"`
Skills string `json:"skills,omitzero"`
Deliver string `json:"deliver,omitzero"`
DeliverChat string `json:"deliver_chat_id,omitzero"`
DeliverOnly bool `json:"deliver_only,omitzero"`
Payload string `json:"payload,omitzero"`
}
Webhook change: add or replace a route, remove one, or post a test payload to it
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"`
}
Server requests the service may send
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(ctx context.Context) ClientConfig
Settings the terminal UI follows for ctx: its home, its session's own values, and the terminal UI's display overrides
func DefaultClientConfig ¶
func DefaultClientConfig() ClientConfig
Settings the terminal UI follows when it could not read them, every one at its default
type ClientDisplay ¶
type ClientDisplay struct {
BellOnComplete bool `json:"bell_on_complete"`
BellOnPrompt bool `json:"bell_on_prompt"`
Theme ThemeMode `json:"tui_theme"`
Battery bool `json:"battery"`
BusyInputMode BusyInputMode `json:"busy_input_mode"`
Compact bool `json:"tui_compact"`
DetailsMode DetailsMode `json:"details_mode"`
Sections map[string]DetailsMode `json:"sections"`
FocusView bool `json:"focus_view"`
Indicator IndicatorStyle `json:"tui_status_indicator"`
InlineDiffs bool `json:"inline_diffs"`
InlineImages bool `json:"inline_images"`
MouseTracking MouseTracking `json:"mouse_tracking"`
ShowReasoning bool `json:"show_reasoning"`
StatusBarPlace StatusBarPlace `json:"tui_statusbar"`
StatusBar ClientStatusBar `json:"status_bar"`
Streaming bool `json:"streaming"`
Timestamps bool `json:"timestamps"`
Language string `json:"language"`
AgentsNudge bool `json:"tui_agents_nudge"`
AutoResumeRecent bool `json:"tui_auto_resume_recent"`
TurnSummary bool `json:"turn_summary"`
SpinnerTokenFlow bool `json:"spinner_token_flow"`
Pet ClientPet `json:"pet"`
// The arena card's own settings, checked by the card that reads them
Arena any `json:"arena,omitzero"`
}
Display settings the terminal UI follows, keyed as in the display section and normalized with defaults filled
type ClientPet ¶
type ClientPet struct {
RenderMode PetRenderMode `json:"render_mode"`
}
type ClientStatusBar ¶
type ClientStatusBar struct {
Fields []string `json:"fields"`
}
Status bar fields to show, every field when empty
type ClientVoice ¶
type ClientVoice struct {
RecordKey string `json:"record_key"`
SubmitMode VoiceSubmitMode `json:"submit_mode"`
}
type CommandCategory ¶
One palette group with its command and description pairs
type CommandDispatchParams ¶
type CommandDispatchParams struct {
Name string `json:"name"`
Arg string `json:"arg,omitzero"`
SessionID string `json:"session_id,omitzero"`
Profile *string `json:"profile,omitzero"`
}
Command a client could not run itself, its argument and the session it runs in
type CommandDispatchResult ¶
type CommandDispatchResult struct {
Type DispatchType `json:"type"`
Output string `json:"output,omitzero"`
Target string `json:"target,omitzero"`
Message string `json:"message,omitzero"`
Notice string `json:"notice,omitzero"`
Display string `json:"display,omitzero"`
Name string `json:"name,omitzero"`
}
One directive, exec and plugin carry output, alias a target, send, prefill and skill a message the client renders as display
func (CommandDispatchResult) SlashResult ¶
func (d CommandDispatchResult) SlashResult() SlashExecResult
Slash answer of a directive
type CommandObserveParams ¶
type CommandObserveParams struct {
SessionID string `json:"session_id"`
Name string `json:"name"`
Arg string `json:"arg,omitzero"`
Profile *string `json:"profile,omitzero"`
}
Recognized command a client ran itself, named so the gateway fires its pre command hook
type CommandObserveResult ¶
type CommandObserveResult struct {
Queued bool `json:"queued"`
}
Whether the hook was queued
type CommandsCatalogParams ¶
type CommandsCatalogParams struct {
SessionID string `json:"session_id,omitzero"`
Profile *string `json:"profile,omitzero"`
}
Session whose profile and workspace the catalog binds to, or a profile for a session less draft
type CommandsCatalogResult ¶
type CommandsCatalogResult struct {
Pairs [][2]string `json:"pairs"`
Sub map[string][]string `json:"sub"`
Canon map[string]string `json:"canon"`
Categories []CommandCategory `json:"categories"`
Skills map[string]SkillCatalogEntry `json:"skills"`
SkillCount int64 `json:"skill_count"`
Warning string `json:"warning,omitzero"`
PluginDiscoveryError string `json:"plugin_discovery_error,omitzero"`
PluginCommands map[string]string `json:"plugin_commands"`
// Commands that run only in messaging chats with their descriptions, aliases included
ChatCommands map[string]string `json:"chat_commands"`
}
Slash catalog, every pair, subcommands, aliases to canonical names, groups, skills and plugin commands
type CommandsTreeParams ¶
type CommandsTreeParams struct {
Profile *string `json:"profile,omitzero"`
}
Profile whose plugin commands the tree includes, the connection's own when absent
type CommandsTreeResult ¶
type CommandsTreeResult struct {
// Program name a command line starts with
Program string `json:"program"`
Commands []CLICommand `json:"commands"`
}
Every command path of the icebath CLI in tree order, groups before their subcommands
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 ConfigFileLock ¶
type ConfigFileLock string
func (ConfigFileLock) Values ¶
func (ConfigFileLock) Values() []string
type ConfigFilesParams ¶
type ConfigFilesResult ¶
type ConfigFilesResult struct {
Config string `json:"config"`
ConfigExists bool `json:"config_exists,omitzero"`
Env string `json:"env"`
EnvExists bool `json:"env_exists,omitzero"`
// config.yaml was made from the example by this request
Seeded bool `json:"seeded,omitzero"`
// managed for an install a package manager keeps, no_file for a settings store without a file
Locked ConfigFileLock `json:"locked,omitzero"`
// Package manager that keeps a managed install
Manager string `json:"manager,omitzero"`
}
Files the profile's settings and keys are kept in, and why they are not edited by hand when they are not
type ConfigGetParams ¶
type ConfigGetResult ¶
type ConfigGetResult struct {
Key string `json:"key,omitzero"`
Value *ConfigValue `json:"value,omitzero"`
Scope ConfigScope `json:"scope,omitzero"`
Display string `json:"display,omitzero"`
ToolProgress string `json:"tool_progress,omitzero"`
Model string `json:"model,omitzero"`
Provider string `json:"provider,omitzero"`
Providers []ConfigProviderRef `json:"providers,omitzero"`
Home string `json:"home,omitzero"`
Cwd string `json:"cwd,omitzero"`
Branch string `json:"branch,omitzero"`
Config *ClientConfig `json:"config,omitzero"`
Prompt *string `json:"prompt,omitzero"`
Mtime *float64 `json:"mtime,omitzero"`
McpRev string `json:"mcp_rev,omitzero"`
}
Answer of one config key, value for the simple words and the fields of the composite reads
type ConfigProviderRef ¶
type ConfigProviderRef struct {
ID string `json:"id"`
Label string `json:"label"`
Aliases []string `json:"aliases"`
Authenticated bool `json:"authenticated"`
}
One provider the config knows, the row of the provider read
type ConfigScope ¶
type ConfigScope string
Scope a config answer reports, once for a model pick that lasts one turn
func (ConfigScope) Values ¶
func (ConfigScope) Values() []string
type ConfigSetParams ¶
type ConfigSetParams struct {
Profile *string `json:"profile,omitzero"`
SessionID string `json:"session_id,omitzero"`
Key string `json:"key"`
Value *ConfigValue `json:"value,omitzero"`
Scope ConfigWriteScope `json:"scope,omitzero"`
ConfirmExpensiveModel bool `json:"confirm_expensive_model,omitzero"`
}
type ConfigSetResult ¶
type ConfigSetResult struct {
Key string `json:"key"`
Value *ConfigValue `json:"value,omitzero"`
Warning string `json:"warning,omitzero"`
ConfirmRequired bool `json:"confirm_required,omitzero"`
ConfirmMessage string `json:"confirm_message,omitzero"`
Scope ConfigScope `json:"scope,omitzero"`
Deferred bool `json:"deferred,omitzero"`
ToolProgress string `json:"tool_progress,omitzero"`
Cwd string `json:"cwd,omitzero"`
Branch string `json:"branch,omitzero"`
HistoryReset bool `json:"history_reset,omitzero"`
Info *SessionInfo `json:"info,omitzero"`
}
Answer of a config write, the key and its value with the extras the model, focus, cwd and personality writes add
type ConfigValue ¶
Value of a config key, a word for most keys and a flag for the boolean switches
func (ConfigValue) MarshalJSON ¶
func (v ConfigValue) MarshalJSON() ([]byte, error)
func (*ConfigValue) UnmarshalJSON ¶
func (v *ConfigValue) UnmarshalJSON(data []byte) error
type ConfigWriteScope ¶
type ConfigWriteScope string
Scope a config write asks for, the session alone or the profile
func (ConfigWriteScope) Values ¶
func (ConfigWriteScope) Values() []string
type ConnectionAckStatus ¶
type ConnectionAckStatus string
Acknowledgement of a connection verb
func (ConnectionAckStatus) Values ¶
func (ConnectionAckStatus) Values() []string
type ConnectionActor ¶
type ConnectionActor string
Who moved a target, the user on the card or the watcher of the backend
func (ConnectionActor) Values ¶
func (ConnectionActor) Values() []string
type ConnectionAnswer ¶
type ConnectionAnswer struct {
Targets []ConnectionAnswerTarget `json:"targets,omitzero"`
SettledBy *ConnectionSettleReason `json:"settled_by,omitzero"`
Said *string `json:"said,omitzero"`
}
Answer of the card, per target outcomes or the continue that settles the operation
type ConnectionAnswerStatus ¶
type ConnectionAnswerStatus string
Answer a card gives to one target
func (ConnectionAnswerStatus) Values ¶
func (ConnectionAnswerStatus) Values() []string
type ConnectionAnswerTarget ¶
type ConnectionAnswerTarget struct {
Name string `json:"name"`
Status ConnectionAnswerStatus `json:"status"`
Detail *string `json:"detail,omitzero"`
Env map[string]string `json:"env,omitzero"`
}
One target's answer, the credential values an install asked for riding with an approval
type ConnectionDisplay ¶
type ConnectionDisplay struct {
Suggested []string `json:"suggested"`
}
Targets the card suggests first
type ConnectionOperationParams ¶
type ConnectionOperationParams struct {
Profile *string `json:"profile,omitzero"`
Owner SessionOwner `json:"owner"`
OpID string `json:"op_id"`
}
Operation of the owning session a status read or wake names
type ConnectionOperationSnapshot ¶
type ConnectionOperationSnapshot struct {
OpID string `json:"op_id"`
Seq int64 `json:"seq"`
DeadlineAt float64 `json:"deadline_at"`
TimeoutSeconds *float64 `json:"timeout_seconds,omitzero"`
Settled bool `json:"settled"`
SettledAt *float64 `json:"settled_at,omitzero"`
SettledBy *ConnectionSettleReason `json:"settled_by,omitzero"`
Targets []ConnectionOperationTarget `json:"targets"`
ToolCallID *string `json:"tool_call_id,omitzero"`
}
Snapshot of an operation with its settlement, one transition riding along on an update
type ConnectionOperationTarget ¶
type ConnectionOperationTarget struct {
Name string `json:"name"`
Kind ConnectionTargetKind `json:"kind"`
Action ConnectionTargetAction `json:"action"`
State ConnectionTargetState `json:"state"`
Resolved *bool `json:"resolved,omitzero"`
Detail *string `json:"detail,omitzero"`
Instructions *string `json:"instructions,omitzero"`
DiscoveryError *string `json:"discovery_error,omitzero"`
ConnectURL *string `json:"connect_url,omitzero"`
Attempt *string `json:"attempt,omitzero"`
RequiredEnv []ConnectionTargetEnvField `json:"required_env,omitzero"`
Tools []string `json:"tools,omitzero"`
Hint *string `json:"hint,omitzero"`
Display *string `json:"display,omitzero"`
Description *string `json:"description,omitzero"`
Tier *CatalogTier `json:"tier,omitzero"`
Platforms []string `json:"platforms,omitzero"`
Repo *string `json:"repo,omitzero"`
Sha *string `json:"sha,omitzero"`
Subdir *string `json:"subdir,omitzero"`
Scan *CatalogScan `json:"scan,omitzero"`
RequiresIcebath *string `json:"requires_icebath,omitzero"`
TargetProfile *string `json:"target_profile,omitzero"`
AppState *CatalogAppState `json:"app_state,omitzero"`
Skill *string `json:"skill,omitzero"`
Phase *InstallPhase `json:"phase,omitzero"`
Approved *CatalogApproved `json:"approved,omitzero"`
Enabled *bool `json:"enabled,omitzero"`
MissingEnv []string `json:"missing_env,omitzero"`
ServerErrors []CatalogServerError `json:"server_errors,omitzero"`
AlreadyInstalled *bool `json:"already_installed,omitzero"`
}
One target of a connection operation with its state, link, the credentials it asks for and its catalog facts
type ConnectionRequestPayload ¶
type ConnectionRequestPayload struct {
OpID string `json:"op_id"`
Seq int64 `json:"seq"`
DeadlineAt float64 `json:"deadline_at"`
TimeoutSeconds float64 `json:"timeout_seconds"`
Targets []ConnectionOperationTarget `json:"targets"`
ToolCallID *string `json:"tool_call_id,omitzero"`
Display *ConnectionDisplay `json:"display,omitzero"`
}
A connection operation opened on the session, its targets and server deadline, the card it shows
type ConnectionRespondParams ¶
type ConnectionRespondParams struct {
Profile *string `json:"profile,omitzero"`
Owner SessionOwner `json:"owner"`
OpID string `json:"op_id"`
Result ConnectionAnswer `json:"result"`
}
Answer of the card for an operation of the owning session
type ConnectionRespondResult ¶
type ConnectionRespondResult struct {
Status ConnectionAckStatus `json:"status"`
Settled bool `json:"settled"`
}
Whether an answer settled the operation
type ConnectionSettleReason ¶
type ConnectionSettleReason string
Why an operation settled, every target resolved, the user continued, the deadline passed or an interrupt
func (ConnectionSettleReason) Values ¶
func (ConnectionSettleReason) Values() []string
type ConnectionTargetAction ¶
type ConnectionTargetAction string
What connecting a target takes
func (ConnectionTargetAction) Values ¶
func (ConnectionTargetAction) Values() []string
type ConnectionTargetEnvField ¶
type ConnectionTargetEnvField struct {
Name string `json:"name"`
Required bool `json:"required"`
Secret bool `json:"secret"`
Default string `json:"default"`
Prompt *string `json:"prompt,omitzero"`
}
One credential an install still needs, a card field sent back with the approval
type ConnectionTargetKind ¶
type ConnectionTargetKind string
What a connection target is, an MCP server, a plugin or a skill
func (ConnectionTargetKind) Values ¶
func (ConnectionTargetKind) Values() []string
type ConnectionTargetState ¶
type ConnectionTargetState string
Where a connection target stands
func (ConnectionTargetState) Values ¶
func (ConnectionTargetState) Values() []string
type ConnectionUpdatePayload ¶
type ConnectionUpdatePayload struct {
ConnectionOperationSnapshot
Owner SessionOwner `json:"owner"`
Target *string `json:"target,omitzero"`
From *ConnectionTargetState `json:"from,omitzero"`
To *ConnectionTargetState `json:"to,omitzero"`
Actor *ConnectionActor `json:"actor,omitzero"`
Detail *string `json:"detail,omitzero"`
}
One target transition or the settlement of an operation, with the full snapshot and its owner
type ConnectionWakeResult ¶
type ConnectionWakeResult struct {
Status ConnectionAckStatus `json:"status"`
}
Acknowledgement of a wake
type ConnectorErrorReason ¶
type ConnectorErrorReason string
type ConnectorsConnectParams ¶
type ConnectorsConnectParams struct {
Profile *string `json:"profile,omitzero"`
Owner SessionOwner `json:"owner"`
Connectors []string `json:"connectors"`
Reconnect bool `json:"reconnect,omitzero"`
}
Failed rows of the session's open operation to run again, reconnect required
type ContextCategory ¶
type ContextFileSource ¶
type ContractViolation ¶
type ContractViolation struct{ Message string }
A result or payload the gateway produced that does not fit its declared type
func (*ContractViolation) Error ¶
func (e *ContractViolation) Error() string
type CorrectionAck ¶
type CorrectionAck struct {
Status CorrectionStatus `json:"status"`
Text string `json:"text"`
ExecutionGeneration int64 `json:"execution_generation"`
AuthorityEpoch int64 `json:"authority_epoch"`
Delivered *bool `json:"delivered,omitzero"`
}
Verdict of a canonical correction, delivered false marking a refusal the turn never saw
type CorrectionAnswer ¶
type CorrectionAnswer struct {
*CorrectionAck
VoiceStopped bool `json:"voice_stopped,omitzero"`
}
Answer of a canonical steer or redirect, the verdict or voice_stopped alone
func (CorrectionAnswer) Variants ¶
func (CorrectionAnswer) Variants() []reflect.Type
type CorrectionStatus ¶
type CorrectionStatus string
Verdict on a correction, delivered to the running turn, held for the next one or refused
func (CorrectionStatus) Values ¶
func (CorrectionStatus) Values() []string
type CronAdmissionParams ¶
type CronCancelResult ¶
type CronCancelResult struct {
Ok bool `json:"ok"`
}
type CronIncident ¶
type CronIncident struct {
ID string `json:"id"`
JobID string `json:"job_id"`
State string `json:"state"`
FailureType string `json:"failure_type"`
FirstSeenAt string `json:"first_seen_at"`
LastSeenAt string `json:"last_seen_at"`
Error string `json:"error"`
OutputFile string `json:"output_file,omitzero"`
}
One durable failure incident of a job
type CronIncidentAckParams ¶
type CronIncidentsParams ¶
type CronIncidentsResult ¶
type CronIncidentsResult struct {
Incidents []CronIncident `json:"incidents"`
}
type CronJobActionParams ¶
type CronJobActionParams struct {
Profile *string `json:"profile,omitzero"`
JobID string `json:"job_id"`
Reason *string `json:"reason,omitzero"`
}
Job one action applies to, with the note a cancel records
type CronJobFields ¶
type CronJobFields struct {
Schedule *string `json:"schedule,omitzero"`
Prompt *string `json:"prompt,omitzero"`
Name *string `json:"name,omitzero"`
Deliver *string `json:"deliver,omitzero"`
Model *string `json:"model,omitzero"`
Provider *string `json:"provider,omitzero"`
ReasoningEffort *string `json:"reasoning_effort,omitzero"`
Workdir *string `json:"workdir,omitzero"`
Repeat *int64 `json:"repeat,omitzero"`
// Replaces the job's skills with Skills, an empty list clearing them
SetSkills bool `json:"set_skills,omitzero"`
Skills []string `json:"skills,omitzero"`
// Creates the job paused, run only once resumed or run by hand
Paused bool `json:"paused,omitzero"`
}
Fields of a job as the job form sends them, a nil field left as it is on an edit
type CronJobOutput ¶
type CronJobOutput struct {
Name string `json:"name"`
At string `json:"at"`
Size int64 `json:"size"`
}
One saved output of a job's run, named by when it was written
type CronJobOutputParams ¶
type CronJobOutputResult ¶
type CronJobOutputResult struct {
Content string `json:"content"`
}
type CronJobResult ¶
type CronJobResult struct {
OK bool `json:"ok"`
Output string `json:"output"`
Job *CronJobRow `json:"job,omitzero"`
}
What a change of a job printed and the job as it stands after it, nil once removed
type CronJobRow ¶
type CronJobRow struct {
ID string `json:"id"`
Name string `json:"name"`
Prompt string `json:"prompt"`
// Schedule in the words the store shows it
Schedule string `json:"schedule"`
// Schedule as it is typed to make the job again: a cron expression, an every interval or a time
ScheduleText string `json:"schedule_text"`
// What the job does now: scheduled, paused, completed, error
State string `json:"state"`
Enabled bool `json:"enabled"`
PausedReason string `json:"paused_reason,omitzero"`
NextRunAt string `json:"next_run_at,omitzero"`
LastRunAt string `json:"last_run_at,omitzero"`
LastStatus string `json:"last_status,omitzero"`
LastError string `json:"last_error,omitzero"`
// A run of the job is going on now
Running bool `json:"running,omitzero"`
Deliver string `json:"deliver,omitzero"`
Skills []string `json:"skills,omitzero"`
Model string `json:"model,omitzero"`
Provider string `json:"provider,omitzero"`
ReasoningEffort string `json:"reasoning_effort,omitzero"`
Workdir string `json:"workdir,omitzero"`
Script string `json:"script,omitzero"`
NoAgent bool `json:"no_agent,omitzero"`
Timezone string `json:"timezone,omitzero"`
// Runs the job makes in all, nil for no end, and the runs it made so far
RepeatTimes *int64 `json:"repeat_times,omitzero"`
RepeatDone int64 `json:"repeat_done,omitzero"`
}
One scheduled job as the scheduled jobs screen lists it
type CronJobRun ¶
type CronJobRun struct {
ID string `json:"id"`
JobID string `json:"job_id"`
Status string `json:"status"`
Source string `json:"source"`
ClaimedAt string `json:"claimed_at"`
StartedAt string `json:"started_at,omitzero"`
FinishedAt string `json:"finished_at,omitzero"`
Error string `json:"error,omitzero"`
Delivery string `json:"delivery,omitzero"`
}
One durable attempt at running a job
type CronJobRunsParams ¶
type CronJobRunsResult ¶
type CronJobRunsResult struct {
Runs []CronJobRun `json:"runs"`
Outputs []CronJobOutput `json:"outputs"`
}
type CronJobWriteParams ¶
type CronJobWriteParams struct {
Profile *string `json:"profile,omitzero"`
JobID string `json:"job_id,omitzero"`
Fields CronJobFields `json:"fields"`
}
Job to create or change, the job id empty on a create
type CronJobsListParams ¶
type CronJobsListResult ¶
type CronJobsListResult struct {
Jobs []CronJobRow `json:"jobs"`
// Whether the background service starts with the computer, so jobs run while no icebath window is open
ServiceInstalled bool `json:"service_installed"`
}
type CronOutcome ¶
What a cron run ended with, sent as the list success, output, final response, error
func (CronOutcome) MarshalJSON ¶
func (o CronOutcome) MarshalJSON() ([]byte, error)
func (*CronOutcome) UnmarshalJSON ¶
func (o *CronOutcome) UnmarshalJSON(data []byte) error
type CronReportParams ¶
type CronReportParams struct {
Profile *string `json:"profile,omitzero"`
// doctor, status or notepad
Command string `json:"command"`
JobID string `json:"job_id,omitzero"`
// Notepad action: list, set or delete, with its key and value
Action string `json:"action,omitzero"`
Key *string `json:"key,omitzero"`
Value *string `json:"value,omitzero"`
}
Report of the scheduler, doctor or status, or a job's notepad read or changed
type CronReportResult ¶
What a report printed and whether it ended well
type CronRunParams ¶
type CronRunParams struct {
JobID string `json:"job_id"`
RequestID string `json:"request_id"`
ExtraPrompt *string `json:"extra_prompt"`
}
One cron firing, the job, the scheduler's request id and the prompt added to the job's own
type CronStatusResult ¶
type CronStatusResult struct {
Status string `json:"status"`
Result *CronOutcome `json:"result"`
JobFlags map[string]any `json:"job_flags,omitzero"`
ProgressAt *float64 `json:"progress_at,omitzero"`
Job map[string]any `json:"job,omitzero"`
SessionID string `json:"session_id,omitzero"`
AdmissionID string `json:"admission_id,omitzero"`
}
Status of a cron admission, the outcome once terminal, job flags the run set, owner progress, and the job on recover
type CronSubmitResult ¶
type DelegationPauseParams ¶
type DelegationPauseParams struct {
Profile *string `json:"profile,omitzero"`
SessionID *string `json:"session_id,omitzero"`
Paused *bool `json:"paused,omitzero"`
}
Spawn pause to set, true when absent, the session the canonical route authorizes against
type DelegationPauseResult ¶
type DelegationPauseResult struct {
Paused bool `json:"paused"`
}
type DelegationStatusResult ¶
type DelegationStatusResult struct {
Active []ActiveSubagent `json:"active"`
Paused bool `json:"paused"`
MaxSpawnDepth int64 `json:"max_spawn_depth"`
MaxConcurrentChildren int64 `json:"max_concurrent_children"`
}
Live children with the spawn pause and the depth and concurrency limits
type DetailsMode ¶
type DetailsMode string
func (DetailsMode) Values ¶
func (DetailsMode) Values() []string
type DispatchType ¶
type DispatchType string
func (DispatchType) Values ¶
func (DispatchType) Values() []string
type DisplayImageSwitch ¶
type DisplayImageSwitch struct {
CurrentImage string `json:"current_image"`
TargetImage string `json:"target_image"`
Containers int64 `json:"containers"`
}
Docker sandbox kept on the previous default image, the switch left to the user
type DisplayInstallDonePayload ¶
type DisplayInstallDonePayload struct {
ProfileKey string `json:"profile_key"`
Code int64 `json:"code"`
Status DisplayStatus `json:"status"`
}
End of the install, 0 done, -1 cancelled, -2 no sudo with the command to run by hand streamed
type DisplayInstallResult ¶
type DisplayInstallResult struct {
Started bool `json:"started"`
Command string `json:"command"`
ProfileKey string `json:"profile_key"`
}
Package install started on the gateway host, or the command to run by hand
type DisplayInstallSudoParams ¶
type DisplayInstallSudoParams struct {
SessionID string `json:"session_id"`
ProfileKey string `json:"profile_key"`
}
Sudo password for the bot screen package install of a profile, asked of no session
type DisplayLease ¶
type DisplayLease struct {
Holder DisplayLeaseHolder `json:"holder"`
ViewerID *string `json:"viewer_id"`
ViewerHash *string `json:"viewer_hash"`
Since float64 `json:"since"`
Epoch int64 `json:"epoch"`
Reason string `json:"reason"`
}
Takeover lease of a screen as clients see it, the holder's viewer id never leaving the gateway
type DisplayLeaseAcquireParams ¶
type DisplayLeaseAcquireParams struct {
Profile *string `json:"profile,omitzero"`
ViewerID string `json:"viewer_id"`
Reason string `json:"reason,omitzero"`
}
Asks for the screen for the person at a client, named by an id only that client knows
type DisplayLeaseHolder ¶
type DisplayLeaseHolder string
func (DisplayLeaseHolder) Values ¶
func (DisplayLeaseHolder) Values() []string
type DisplayLeasePayload ¶
type DisplayLeasePayload struct {
ProfileKey string `json:"profile_key"`
Lease DisplayLease `json:"lease"`
}
type DisplayLeaseReleaseParams ¶
type DisplayLeaseReleaseParams struct {
Profile *string `json:"profile,omitzero"`
ViewerID string `json:"viewer_id,omitzero"`
Force bool `json:"force,omitzero"`
}
Hands the screen back, by the client that took it or by force
type DisplayLeaseResult ¶
type DisplayLeaseResult struct {
Lease DisplayLease `json:"lease"`
}
Lease of the screen after a take or a hand back
type DisplayMetadata ¶
type DisplayMetadata struct {
DisplayText *string `json:"display_text,omitzero"`
TaskCount *int64 `json:"task_count,omitzero"`
Extra map[string]any `json:"-" wire:"extra"`
}
Display hints of a transcript row or a pending prompt, the card text and the count of agents a batch finished
type DisplayStatus ¶
type DisplayStatus struct {
Profile string `json:"profile"`
Supported bool `json:"supported"`
Installed bool `json:"installed"`
Missing []string `json:"missing"`
Running bool `json:"running"`
PID *int64 `json:"pid"`
Display *string `json:"display"`
Socket *string `json:"socket"`
Geometry string `json:"geometry"`
InstallCommand *string `json:"install_command"`
Browser *string `json:"browser"`
Blocker *string `json:"blocker"`
MemoryAvailableMB *int64 `json:"memory_available_mb"`
MemoryLimitMB *int64 `json:"memory_limit_mb"`
Placement string `json:"placement"`
ImageSwitch *DisplayImageSwitch `json:"image_switch"`
Lease DisplayLease `json:"lease"`
ProfileKey string `json:"profile_key"`
}
Runtime of the profile's screen with its lease and the profile key it speaks for
type DisplayStopParams ¶
type DisplayStopResult ¶
type DisplayStopResult struct {
DisplayStatus
Stopped bool `json:"stopped"`
}
type DisplaySwitchSandboxImageResult ¶
type DisplaySwitchSandboxImageResult struct {
DisplayStatus
DockerImage string `json:"docker_image"`
}
type DisplayThumbnailResult ¶
type DisplayThumbnailResult struct {
Path *string `json:"path"`
Suppressed string `json:"suppressed,omitzero"`
}
One frame of the screen as an image file of the gateway host, no path while the screen is down or while a person holds it, suppressed saying so
type EditApprovalPolicy ¶
type EditApprovalPolicy string
Edit approval policy of an editor session
func (EditApprovalPolicy) Values ¶
func (EditApprovalPolicy) Values() []string
type Entry ¶
One declared method, request or event with the Go types of its params and of its result or payload
func (*Entry) CheckResult ¶
Checks a result or payload strictly against the entry's type, the misfit naming the field
func (*Entry) FitParams ¶
Params a server route received, refused with the method and field named when they do not fit
func (*Entry) ResultNames ¶
Wire names of the top level fields of the result or payload, in declaration order
func (*Entry) TakesParam ¶
Whether the params declare the named key
type ErrorPayload ¶
type ErrorPayload struct {
Message string `json:"message"`
}
Failure of a session outside a turn, agent start, model switch, compression or resume
type ErrorSurface ¶
type ErrorSurface struct {
Layer string `json:"layer"`
Code string `json:"code"`
Retryable bool `json:"retryable"`
Provider *string `json:"provider,omitzero"`
Model *string `json:"model,omitzero"`
ResetsAt *float64 `json:"resets_at,omitzero"`
Extra map[string]any `json:"-" wire:"extra"`
}
Advisory layer, code and retryability of a turn failure, with the provider and when its limit lifts
type Event ¶
type Event[T any] struct { // contains filtered or unexported fields }
Notification whose payload is T
type EventEnvelope ¶
type EventEnvelope struct {
Type string `json:"type"`
SessionID string `json:"session_id,omitzero"`
Payload map[string]any `json:"payload,omitzero"`
ReplayEpoch *string `json:"replay_epoch,omitzero"`
Seq *int64 `json:"seq,omitzero"`
AuthorityEpoch *int64 `json:"authority_epoch,omitzero"`
ExecutionGeneration *int64 `json:"execution_generation,omitzero"`
AdmissionID *string `json:"admission_id,omitzero"`
}
Params of an event frame, the session, payload and the owner stamps a canonical gateway adds
type ExecutionState ¶
type ExecutionState string
State the execution of a canonical session is in
func (ExecutionState) Values ¶
func (ExecutionState) Values() []string
type FailedDelegation ¶
type FailedDelegation struct {
DelegationID string `json:"delegation_id"`
TaskIndex int64 `json:"task_index,omitzero"`
Status string `json:"status"`
Goal string `json:"goal,omitzero"`
Error *string `json:"error,omitzero"`
DispatchedAt *float64 `json:"dispatched_at,omitzero"`
CompletedAt *float64 `json:"completed_at,omitzero"`
}
One failed task of an async delegation from the durable store
type FallbackChangeParams ¶
type FallbackChangeParams struct {
Profile *string `json:"profile,omitzero"`
Verb string `json:"verb"`
// Provider, model and address of the entry an add puts at the end of the chain
Provider string `json:"provider,omitzero"`
Model string `json:"model,omitzero"`
BaseURL string `json:"base_url,omitzero"`
// Position of the entry a remove or a move is for, counted from zero
Index int64 `json:"index,omitzero"`
// Position a move puts the entry at
To int64 `json:"to,omitzero"`
}
One change to the fallback chain: add, remove, move or clear
type FallbackCheckParams ¶
type FallbackCheckParams struct {
Profile *string `json:"profile,omitzero"`
Live bool `json:"live,omitzero"`
}
Check of every entry of the chain, with one small request sent to each when Live
type FallbackCheckResult ¶
type FallbackCheckResult struct {
Results []FallbackCheckRow `json:"results"`
}
Results in chain order
type FallbackCheckRow ¶
type FallbackCheckRow struct {
Provider string `json:"provider"`
Model string `json:"model"`
Ready bool `json:"ready,omitzero"`
// Ready, ready without a request sent, or the kind of failure
Status string `json:"status"`
Error string `json:"error,omitzero"`
// Milliseconds the model took to answer the request sent to it, zero when none was sent
LatencyMs int64 `json:"latency_ms,omitzero"`
}
Whether one entry of the chain can be used, and why not
type FallbackListParams ¶
type FallbackListParams struct {
Profile *string `json:"profile,omitzero"`
}
type FallbackListResult ¶
type FallbackListResult struct {
// Model the chain backs up, worded as model (via provider), empty when none is set
Primary string `json:"primary,omitzero"`
Entries []FallbackRow `json:"entries"`
}
The fallback chain in the order it is tried, and the model it backs up
type FallbackRow ¶
type FallbackRow struct {
Provider string `json:"provider"`
Model string `json:"model"`
// Address of an endpoint of the user's own, empty for a known provider
BaseURL string `json:"base_url,omitzero"`
}
One model of the fallback chain, tried when the ones before it fail
type GatewayReadyPayload ¶
type GatewayReadyPayload struct {
Skin *SkinPayloadModel `json:"skin,omitzero"`
ReplayEpoch string `json:"replay_epoch"`
// Go build ID of the service
Build string `json:"build"`
}
type GoalContractSnapshot ¶
type GoalGateSnapshot ¶
type GoalSnapshot ¶
type GoalSnapshot struct {
Title string `json:"title"`
Status string `json:"status"`
TurnsUsed int64 `json:"turns_used"`
MaxTurns int64 `json:"max_turns"`
Contract GoalContractSnapshot `json:"contract"`
Subgoals []string `json:"subgoals"`
Gates []GoalGateSnapshot `json:"gates"`
CreatedAt *float64 `json:"created_at,omitzero"`
UpdatedAt *float64 `json:"updated_at,omitzero"`
PausedReason *string `json:"paused_reason,omitzero"`
LastVerdict *string `json:"last_verdict,omitzero"`
LastReason *string `json:"last_reason,omitzero"`
WaitBarrier *WaitBarrier `json:"wait_barrier,omitzero"`
}
type GroupsApproveParams ¶
type GroupsApproveParams struct {
Profile *string `json:"profile,omitzero"`
RoomID string `json:"room_id"`
MemberID string `json:"member_id"`
TaskID string `json:"task_id"`
ExecutionGeneration int64 `json:"execution_generation"`
Choice ApprovalChoice `json:"choice"`
RequestID string `json:"request_id"`
}
type GroupsApproveResult ¶
type GroupsCapabilitiesParams ¶
type GroupsCapabilitiesParams struct {
Profile *string `json:"profile,omitzero"`
}
type GroupsCapabilitiesResult ¶
type GroupsCapabilitiesResult struct {
ProtocolVersion int64 `json:"protocol_version"`
Driver bool `json:"driver"`
PersistentProcess bool `json:"persistent_process"`
AuthorityGatewayID string `json:"authority_gateway_id"`
RoomLink RoomLinkStatus `json:"room_link"`
Features []string `json:"features"`
Methods []string `json:"methods"`
MaxLogLimit int64 `json:"max_log_limit"`
SeatableProfiles []string `json:"seatable_profiles,omitzero"`
}
type GroupsContinueParams ¶
type GroupsContinueResult ¶
type GroupsCreateParams ¶
type GroupsCreateParams struct {
Profile *string `json:"profile,omitzero"`
RoomID string `json:"room_id"`
Name string `json:"name"`
Members []RoomMemberInput `json:"members"`
AuthorityGatewayID *string `json:"authority_gateway_id,omitzero"`
}
type GroupsCreateResult ¶
type GroupsCreateResult struct {
Room Room `json:"room"`
}
type GroupsDisbandParams ¶
type GroupsDisbandResult ¶
type GroupsDisbandResult struct {
Tombstone *RoomTombstone `json:"tombstone,omitzero"`
Queued *bool `json:"queued,omitzero"`
}
type GroupsDiscardParams ¶
type GroupsDiscardResult ¶
type GroupsDiscardResult struct {
Discarded *bool `json:"discarded,omitzero"`
Task *RoomTaskReceipt `json:"task,omitzero"`
Queued *bool `json:"queued,omitzero"`
}
type GroupsListParams ¶
type GroupsListResult ¶
type GroupsLogParams ¶
type GroupsLogResult ¶
type GroupsLogResult struct {
Events []RoomEvent `json:"events"`
Cursor int64 `json:"cursor"`
LatestSeq int64 `json:"latest_seq"`
HasMore bool `json:"has_more"`
Authority RoomAuthority `json:"authority"`
}
type GroupsPeersParams ¶
type GroupsPeersResult ¶
type GroupsPeersResult struct {
Peers []RoomPeer `json:"peers"`
}
type GroupsPromoteParams ¶
type GroupsPromoteResult ¶
type GroupsPromoteResult struct {
RoomID string `json:"room_id"`
AuthorityGatewayID string `json:"authority_gateway_id"`
AuthorityEpoch int64 `json:"authority_epoch"`
PreviousGatewayID string `json:"previous_gateway_id"`
PreviousEpoch int64 `json:"previous_epoch"`
ClaimSeq int64 `json:"claim_seq"`
LatestSeq int64 `json:"latest_seq"`
}
type GroupsRenameParams ¶
type GroupsRenameResult ¶
type GroupsReplicaStateResult ¶
type GroupsReplicaStateResult struct {
RoomID string `json:"room_id"`
Name string `json:"name"`
Members []RoomMember `json:"members"`
Authority RoomAuthority `json:"authority"`
LastSeq int64 `json:"last_seq"`
LatestSeq int64 `json:"latest_seq"`
EventBytes int64 `json:"event_bytes"`
CreatedAt float64 `json:"created_at"`
UpdatedAt float64 `json:"updated_at"`
Home *string `json:"home,omitzero"`
SyncedAt *float64 `json:"synced_at,omitzero"`
DisbandedAt *float64 `json:"disbanded_at,omitzero"`
Pending *int64 `json:"pending,omitzero"`
Errors []RoomQueuedError `json:"errors,omitzero"`
}
type GroupsRetryParams ¶
type GroupsRetryResult ¶
type GroupsRetryResult struct {
Retried *bool `json:"retried,omitzero"`
Task *RoomTaskReceipt `json:"task,omitzero"`
Queued *bool `json:"queued,omitzero"`
}
type GroupsSendParams ¶
type GroupsSendParams struct {
Profile *string `json:"profile,omitzero"`
RoomID string `json:"room_id"`
EventID *string `json:"event_id,omitzero"`
Payload RoomMessagePayload `json:"payload"`
}
type GroupsSendResult ¶
type GroupsShareParams ¶
type GroupsShareParams struct {
}
type GroupsShareResult ¶
type GroupsShareResult struct {
}
type GroupsStateParams ¶
type GroupsStateResult ¶
type GroupsStateResult struct {
Room Room `json:"room"`
DriverStatus *RoomDriverStatus `json:"driver_status,omitzero"`
}
type GroupsStopParams ¶
type GroupsStopResult ¶
type HandoffFailParams ¶
type HandoffFailResult ¶
Whether this call failed the handoff, and the state it is in
type HandoffRequestParams ¶
type HandoffRequestResult ¶
type HandoffRequestResult struct {
Queued bool `json:"queued"`
SessionKey string `json:"session_key"`
Platform string `json:"platform"`
HomeName string `json:"home_name"`
}
Handoff queued for the platform's home channel, the gateway watcher claiming it
type HandoffStateResult ¶
type HandoffStateResult struct {
State string `json:"state"`
Platform string `json:"platform"`
Error string `json:"error"`
}
Handoff row of the session, its state, platform and error, empty texts when none is recorded
type HeartbeatSnapshot ¶
type HiddenDisplayKind ¶
type HiddenDisplayKind string
Display kind a canonical prompt may ask for, hidden keeping the bubble out of the transcript
func (HiddenDisplayKind) Values ¶
func (HiddenDisplayKind) Values() []string
type HookRow ¶
type HookRow struct {
Event string `json:"event"`
Command string `json:"command"`
// Pattern of the tools it is for, empty for every tool or an event that is not about tools
Matcher string `json:"matcher,omitzero"`
// Seconds its script may take
Timeout int64 `json:"timeout"`
// A failure of the script blocks the action it was asked about
FailClosed bool `json:"fail_closed,omitzero"`
Allowed bool `json:"allowed,omitzero"`
// When it was allowed, empty when not known
ApprovedAt string `json:"approved_at,omitzero"`
// The script changed since it was allowed, with its time then and now
Changed bool `json:"changed,omitzero"`
ChangedWas string `json:"changed_was,omitzero"`
ChangedNow string `json:"changed_now,omitzero"`
}
One shell hook as the hooks screen shows it: the event it runs on, its script and whether it may run
type HookRun ¶
type HookRun struct {
// Why the script could not run, empty when it ran
Error string `json:"error,omitzero"`
TimedOut bool `json:"timed_out,omitzero"`
// Exit code of a script that ran to its end
Exited bool `json:"exited,omitzero"`
ExitCode int64 `json:"exit_code,omitzero"`
Seconds float64 `json:"seconds"`
Stdout string `json:"stdout,omitzero"`
Stderr string `json:"stderr,omitzero"`
// What the script answered in the shape icebath acts on, empty when it answered nothing
Directive string `json:"directive,omitzero"`
}
How one run of a hook's script ended
type HooksChangeParams ¶
type HooksChangeParams struct {
Profile *string `json:"profile,omitzero"`
Verb string `json:"verb"`
Event string `json:"event"`
Command string `json:"command"`
// Tools a new hook is for and the seconds it may take, both left to their defaults when empty
Matcher string `json:"matcher,omitzero"`
Timeout int64 `json:"timeout,omitzero"`
}
One change to the hooks: add, remove, allow or revoke
type HooksCheckParams ¶
type HooksCheckParams struct {
Profile *string `json:"profile,omitzero"`
Event string `json:"event"`
Command string `json:"command"`
}
One hook to check
type HooksCheckResult ¶
type HooksCheckResult struct {
Executable bool `json:"executable,omitzero"`
Allowed bool `json:"allowed,omitzero"`
// When it was allowed, a question mark when not known
ApprovedAt string `json:"approved_at,omitzero"`
// Whether the script could be compared with the one that was allowed, and whether it changed
Compared bool `json:"compared,omitzero"`
Changed bool `json:"changed,omitzero"`
ChangedWas string `json:"changed_was,omitzero"`
ChangedNow string `json:"changed_now,omitzero"`
// Run on a sample event, absent for a hook that is not allowed or cannot run
Run *HookRun `json:"run,omitzero"`
// What a finished run printed: empty, json or invalid
Output string `json:"output,omitzero"`
Problems int64 `json:"problems"`
}
What a check of one hook found
type HooksListParams ¶
type HooksListParams struct {
Profile *string `json:"profile,omitzero"`
}
type HooksListResult ¶
type HooksListResult struct {
Hooks []HookRow `json:"hooks"`
Webhooks []WebhookRow `json:"webhooks"`
// Events a hook may run on
Events []string `json:"events"`
}
Every shell hook and outbound webhook of the profile, with the events a new hook may be set on
type HooksTestParams ¶
type HooksTestParams struct {
Profile *string `json:"profile,omitzero"`
Event string `json:"event"`
Command string `json:"command"`
Tool string `json:"tool,omitzero"`
}
One hook to run on a sample event, naming the tool when one is given
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 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 {
Text string `json:"text,omitzero"`
Cwd string `json:"cwd,omitzero"`
}
Typed or pasted text that may start with a file path, cwd the folder a relative path is read against
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"`
Text string `json:"text,omitzero"`
}
A dropped path recognized in typed text and the mention of its file to put in the prompt, an image with its size
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 KanbanAttempt ¶
type KanbanAttempt struct {
ID int64 `json:"id"`
Profile string `json:"profile,omitzero"`
Status string `json:"status"`
Outcome string `json:"outcome,omitzero"`
Summary string `json:"summary,omitzero"`
Error string `json:"error,omitzero"`
StartedAt int64 `json:"started_at"`
EndedAt int64 `json:"ended_at,omitzero"`
}
One attempt a worker made at a task
type KanbanBoard ¶
type KanbanBoard struct {
Slug string `json:"slug"`
Name string `json:"name"`
Description string `json:"description,omitzero"`
Icon string `json:"icon,omitzero"`
Current bool `json:"current,omitzero"`
Archived bool `json:"archived,omitzero"`
Counts map[string]int64 `json:"counts,omitzero"`
}
One kanban board with its task counts by column
type KanbanBoardParams ¶
type KanbanBoardResult ¶
type KanbanBoardResult struct {
Board string `json:"board"`
Boards []KanbanBoard `json:"boards"`
Columns []KanbanColumn `json:"columns"`
Tasks []KanbanTaskRow `json:"tasks"`
// Profiles tasks can be assigned to
Assignees []string `json:"assignees,omitzero"`
}
One board in full: every board for switching, the columns in order and the tasks
type KanbanColumn ¶
type KanbanColumn struct {
Key string `json:"key"`
Label string `json:"label"`
Icon string `json:"icon"`
}
One column of a board in board order
type KanbanCommandParams ¶
type KanbanCommandParams struct {
Profile *string `json:"profile,omitzero"`
Board string `json:"board,omitzero"`
Args []string `json:"args"`
}
Kanban command run the way icebath kanban runs it, its words after kanban, on a board
type KanbanCommandResult ¶
What a kanban command printed and whether it ended well
type KanbanComment ¶
type KanbanComment struct {
ID int64 `json:"id"`
Author string `json:"author"`
Body string `json:"body"`
CreatedAt int64 `json:"created_at"`
}
One comment of a task
type KanbanEvent ¶
type KanbanEvent struct {
ID int64 `json:"id"`
TaskID string `json:"task_id"`
Title string `json:"title,omitzero"`
Kind string `json:"kind"`
Payload string `json:"payload,omitzero"`
CreatedAt int64 `json:"created_at"`
Assignee string `json:"assignee,omitzero"`
}
One event of a task as the events page shows it
type KanbanEventsParams ¶
type KanbanEventsParams struct {
Profile *string `json:"profile,omitzero"`
Board string `json:"board,omitzero"`
TaskID string `json:"task_id,omitzero"`
// Events after this id; zero reads the newest ones
After int64 `json:"after,omitzero"`
Assignee string `json:"assignee,omitzero"`
Tenant string `json:"tenant,omitzero"`
Kinds []string `json:"kinds,omitzero"`
// Most events answered, 200 when absent
Limit int64 `json:"limit,omitzero"`
}
Events of a board after a cursor, for a page that follows them: one task's or every task's, narrowed by assignee, tenant and kind
type KanbanEventsResult ¶
type KanbanEventsResult struct {
Events []KanbanEvent `json:"events"`
Cursor int64 `json:"cursor"`
}
Events in order, oldest first, and the cursor the next read starts after
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 KanbanTaskParams ¶
type KanbanTaskResult ¶
type KanbanTaskResult struct {
Task KanbanTaskRow `json:"task"`
Comments []KanbanComment `json:"comments"`
Runs []KanbanAttempt `json:"runs"`
Parents []string `json:"parents,omitzero"`
Children []string `json:"children,omitzero"`
}
A task with its comments, attempts and links
type KanbanTaskRow ¶
type KanbanTaskRow struct {
ID string `json:"id"`
Title string `json:"title"`
Body string `json:"body,omitzero"`
Status string `json:"status"`
Assignee string `json:"assignee,omitzero"`
Priority int64 `json:"priority,omitzero"`
CreatedBy string `json:"created_by,omitzero"`
CreatedAt int64 `json:"created_at,omitzero"`
StartedAt int64 `json:"started_at,omitzero"`
CompletedAt int64 `json:"completed_at,omitzero"`
Skills []string `json:"skills,omitzero"`
Result string `json:"result,omitzero"`
LastError string `json:"last_error,omitzero"`
Model string `json:"model,omitzero"`
BlockKind string `json:"block_kind,omitzero"`
}
One task as the board shows it
type LanguageOption ¶
type LanguageOption struct {
ID string `json:"id"`
Endonym string `json:"endonym"`
RTL bool `json:"rtl"`
Source string `json:"source"`
Surfaces []string `json:"surfaces"`
}
Language the UI can be shown in: its own name for itself, whether it reads right to left, the layer that supplies it and the surfaces it covers
type LearningAxis ¶
type LearningBucketRow ¶
type LearningBucketRow struct {
Index int64 `json:"index"`
Label string `json:"label"`
Date string `json:"date"`
Skills int64 `json:"skills"`
Memories int64 `json:"memories"`
Total int64 `json:"total"`
Category string `json:"category,omitzero"`
Color string `json:"color,omitzero"`
Nodes []LearningNodeRow `json:"nodes"`
}
One slice of the timeline with its learned skills and memories
type LearningDetailResult ¶
type LearningDetailResult struct {
Ok bool `json:"ok"`
Message string `json:"message,omitzero"`
Kind LearningNodeKind `json:"kind,omitzero"`
ID string `json:"id,omitzero"`
Label string `json:"label,omitzero"`
Content *string `json:"content,omitzero"`
}
Content of a node for an edit prefill, a failure carrying its reason in message
type LearningEditParams ¶
type LearningFrame ¶
type LearningFrame struct {
Reveal float64 `json:"reveal"`
Date string `json:"date"`
Visible int64 `json:"visible"`
Grid [][]LearningRun `json:"grid"`
Labels []map[string]any `json:"labels"`
}
One frame of the timeline at a reveal, its chart rows and the label cards it placed
type LearningFramesParams ¶
type LearningFramesResult ¶
type LearningFramesResult struct {
Frames []LearningFrame `json:"frames"`
Legend []LearningLegendItem `json:"legend"`
Categories []LearningLegendItem `json:"categories"`
Buckets []LearningBucketRow `json:"buckets"`
Summary []string `json:"summary"`
Axis LearningAxis `json:"axis"`
Count int64 `json:"count"`
Cols int64 `json:"cols"`
Rows int64 `json:"rows"`
}
Pre-rendered timeline the journey window walks without asking again
type LearningGraphCluster ¶
type LearningGraphEdge ¶
type LearningGraphNode ¶
type LearningGraphNode struct {
ID string `json:"id"`
Label string `json:"label"`
Kind LearningNodeKind `json:"kind"`
Timestamp *float64 `json:"timestamp"`
Category string `json:"category"`
UseCount int64 `json:"useCount"`
State string `json:"state"`
CreatedBy *string `json:"createdBy"`
Pinned bool `json:"pinned"`
MemorySource string `json:"memorySource,omitzero"`
}
One learned skill or memory chunk of the learning graph
type LearningGraphParams ¶
type LearningGraphParams struct{}
type LearningGraphResult ¶
type LearningGraphResult struct {
Nodes []LearningGraphNode `json:"nodes"`
Edges []LearningGraphEdge `json:"edges"`
Clusters []LearningGraphCluster `json:"clusters"`
Memory []LearningMemoryCard `json:"memory"`
Stats map[string]any `json:"stats"`
}
Learning graph of the profile, the stats an open object of counts and top categories
type LearningLegendItem ¶
type LearningMemoryCard ¶
type LearningMemoryCard struct {
Source string `json:"source"`
Timestamp *float64 `json:"timestamp"`
Title string `json:"title"`
Body string `json:"body"`
Fingerprint string `json:"fingerprint"`
}
One memory chunk the graph shows, its first line as the title and the start of its text
type LearningMutationResult ¶
type LearningNodeKind ¶
type LearningNodeKind string
func (LearningNodeKind) Values ¶
func (LearningNodeKind) Values() []string
type LearningNodeParams ¶
type LearningNodeParams struct {
ID string `json:"id"`
}
type LearningNodeRow ¶
type LearningRun ¶
One painted run of a chart row, sent as text, style key, alpha and an optional hex override
func (LearningRun) MarshalJSON ¶
func (r LearningRun) MarshalJSON() ([]byte, error)
func (*LearningRun) UnmarshalJSON ¶
func (r *LearningRun) UnmarshalJSON(data []byte) error
type LegacyPluginRow ¶
type LegacyPluginRow struct {
Name string `json:"name"`
Version string `json:"version"`
Enabled bool `json:"enabled"`
Key *string `json:"key,omitzero"`
Tools *int64 `json:"tools,omitzero"`
Hooks *int64 `json:"hooks,omitzero"`
Commands *int64 `json:"commands,omitzero"`
Error *string `json:"error,omitzero"`
}
Loaded plugin manager entry with its counts and load error
type LiveSessionStatus ¶
type LiveSessionStatus string
func (LiveSessionStatus) Values ¶
func (LiveSessionStatus) Values() []string
type LocaleSurface ¶
type LocaleSurface string
func (LocaleSurface) Values ¶
func (LocaleSurface) Values() []string
type LoginAddKeyParams ¶
type LoginAddKeyParams struct {
Profile *string `json:"profile,omitzero"`
SessionID string `json:"session_id,omitzero"`
Provider string `json:"provider"`
APIKey string `json:"api_key"`
Name string `json:"name,omitzero"`
Rotate bool `json:"rotate,omitzero"`
MakeDefault bool `json:"make_default,omitzero"`
UseForSession bool `json:"use_for_session,omitzero"`
}
type LoginConvertParams ¶
type LoginExhaustedPayload ¶
type LoginExhaustedPayload struct {
SessionID string `json:"session_id"`
// Pool key of the login
Provider string `json:"provider"`
Slug string `json:"slug"`
Login LoginRef `json:"login"`
ResetsAt *string `json:"resets_at,omitzero"`
Reason string `json:"reason,omitzero"`
Ready []LoginRef `json:"ready"`
// The provider has other logins in its rotation set
Rotation bool `json:"rotation"`
OnExhausted string `json:"on_exhausted"`
}
Pinned login of a session that ran out, its reset time and the provider's other ready logins
type LoginLinkParams ¶
type LoginLinkParams struct {
Profile *string `json:"profile,omitzero"`
SessionID string `json:"session_id,omitzero"`
Provider string `json:"provider"`
// Env var whose value the login reads, left where it is
EnvVar string `json:"env_var,omitzero"`
// Another tool's login, claude_code or qwen-cli
Source string `json:"source,omitzero"`
Name string `json:"name,omitzero"`
UseForSession bool `json:"use_for_session,omitzero"`
}
type LoginListParams ¶
type LoginListResult ¶
type LoginListResult struct {
Providers []LoginProviderGroup `json:"providers"`
Session *LoginListSession `json:"session,omitzero"`
}
type LoginListSession ¶
type LoginListSession struct {
SessionID string `json:"session_id"`
// Pool key of the session's current route, compare it with a group's provider
PoolKey string `json:"pool_key,omitzero"`
// Provider id of the session's current route as the model picker lists it
Slug string `json:"slug,omitzero"`
// Login id or @rotate the session pinned per pool key
Pins map[string]string `json:"pins,omitzero"`
// rotate or fail the session set per pool key over the profile's on_exhausted
OnExhausted map[string]string `json:"on_exhausted,omitzero"`
Login *SessionLogin `json:"login,omitzero"`
Wait *LoginWait `json:"wait,omitzero"`
}
A session's own login choices and the login its current provider uses
type LoginOAuthPollParams ¶
type LoginOAuthPollResult ¶
type LoginOAuthPollResult struct {
JobID string `json:"job_id"`
State LoginOAuthState `json:"state"`
// Every output line of the sign in so far, the device URL and code among them
Lines []string `json:"lines"`
URL string `json:"url,omitzero"`
UserCode string `json:"user_code,omitzero"`
Prompt string `json:"prompt,omitzero"`
Login *LoginRow `json:"login,omitzero"`
Error string `json:"error,omitzero"`
// Why the new login could not be used for the session at once
Warning string `json:"warning,omitzero"`
// Open url in a browser on the user's machine, once; the background service never opens one
Open bool `json:"open,omitzero"`
// The sign in finishes through a redirect to the background service machine's localhost
Loopback bool `json:"loopback,omitzero"`
}
type LoginOAuthStartParams ¶
type LoginOAuthStartParams struct {
Profile *string `json:"profile,omitzero"`
SessionID string `json:"session_id,omitzero"`
Provider string `json:"provider"`
Name string `json:"name,omitzero"`
Rotate bool `json:"rotate,omitzero"`
MakeDefault bool `json:"make_default,omitzero"`
UseForSession bool `json:"use_for_session,omitzero"`
// openai-codex only, the browser PKCE flow instead of the device code
Browser bool `json:"browser,omitzero"`
}
type LoginOAuthStartResult ¶
type LoginOAuthState ¶
type LoginOAuthState string
func (LoginOAuthState) Values ¶
func (LoginOAuthState) Values() []string
type LoginOrigin ¶
type LoginOrigin string
func (LoginOrigin) Values ¶
func (LoginOrigin) Values() []string
type LoginProviderGroup ¶
type LoginProviderGroup struct {
// Pool key the logins are stored under, the value session.info.pool_key carries for the same provider
Provider string `json:"provider"`
// Provider id the model picker lists, custom:<name> for a custom endpoint
Slug string `json:"slug"`
Name string `json:"name"`
// Profile default, a login id or @rotate, empty when unset
Default string `json:"default,omitzero"`
Strategy string `json:"strategy"`
OnExhausted string `json:"on_exhausted"`
Selection LoginSelection `json:"selection"`
Logins []LoginRow `json:"logins"`
}
One provider's logins with its profile default, rotation strategy and exhaustion policy
type LoginRemoveParams ¶
type LoginRemoveResult ¶
type LoginRenameParams ¶
type LoginResetParams ¶
type LoginResetResult ¶
type LoginResult ¶
type LoginRow ¶
type LoginRow struct {
ID string `json:"id"`
Provider string `json:"provider"`
Name string `json:"name"`
Label string `json:"label,omitzero"`
AuthType string `json:"auth_type"`
Origin LoginOrigin `json:"origin"`
// Raw source, manual or manual:<flow> for Icebath held logins, env:VAR, claude_code, qwen-cli, config:<name>
Source string `json:"source"`
Account string `json:"account,omitzero"`
Fingerprint string `json:"fingerprint,omitzero"`
Status LoginStatus `json:"status"`
ResetsAt *string `json:"resets_at,omitzero"`
Reason string `json:"reason,omitzero"`
Usage []ProviderUsageWindow `json:"usage,omitzero"`
Priority int64 `json:"priority"`
// Profile default of the provider
Default bool `json:"default,omitzero"`
// In the provider's rotation set
Rotate bool `json:"rotate,omitzero"`
// Pinned by the session the request named
Session bool `json:"session,omitzero"`
// The login the provider's next request uses for that session, else for the profile
Active bool `json:"active,omitzero"`
SharedWith string `json:"shared_with,omitzero"`
}
One login of a provider as the logins screen lists it, never carrying a secret
type LoginScope ¶
type LoginScope string
func (LoginScope) Values ¶
func (LoginScope) Values() []string
type LoginSelection ¶
type LoginSelection struct {
Scope LoginScope `json:"scope"`
Login string `json:"login,omitzero"`
Name string `json:"name,omitzero"`
Rotate bool `json:"rotate,omitzero"`
// Session pin that names a login the provider no longer holds
Missing string `json:"missing,omitzero"`
}
Login or rotation set a provider's requests use and the scope the choice came from
type LoginSetDefaultParams ¶
type LoginSetDefaultParams struct {
Profile *string `json:"profile,omitzero"`
Provider string `json:"provider"`
// Login id or name, @rotate, or empty to clear the default
Login *string `json:"login,omitzero"`
// fail or rotate, what a pinned login does when exhausted outside the TUI
OnExhausted string `json:"on_exhausted,omitzero"`
Strategy string `json:"strategy,omitzero"`
}
type LoginSetDefaultResult ¶
type LoginSetPriorityParams ¶
type LoginSetRotationParams ¶
type LoginStatus ¶
type LoginStatus string
func (LoginStatus) Values ¶
func (LoginStatus) Values() []string
type LoginWait ¶
type LoginWait struct {
Provider string `json:"provider"`
Login LoginRef `json:"login"`
RetryAt string `json:"retry_at"`
}
A retry of a session's last turn armed for when its login resets
type LoginWaitState ¶
type LoginWaitState string
func (LoginWaitState) Values ¶
func (LoginWaitState) Values() []string
type LoopSnapshot ¶
type LoopSnapshot struct {
Prompt string `json:"prompt"`
Status string `json:"status"`
Mode string `json:"mode"`
IntervalSeconds float64 `json:"interval_seconds"`
CurrentDelay float64 `json:"current_delay"`
Times int64 `json:"times"`
Until string `json:"until"`
MaxTicks int64 `json:"max_ticks"`
TicksFired int64 `json:"ticks_fired"`
CreatedAt float64 `json:"created_at"`
LastFiredAt float64 `json:"last_fired_at"`
NextDueAt float64 `json:"next_due_at"`
AwaitingResponse bool `json:"awaiting_response"`
DeferredByGoal bool `json:"deferred_by_goal"`
PausedReason *string `json:"paused_reason,omitzero"`
LastStopReason *string `json:"last_stop_reason,omitzero"`
}
type MCPCatalogEntry ¶
type MCPCatalogEntry struct {
Name string `json:"name"`
Description string `json:"description"`
ConnectorSlug *string `json:"connector_slug,omitzero"`
Installed bool `json:"installed"`
Enabled bool `json:"enabled"`
Requires []string `json:"requires"`
Transport string `json:"transport"`
}
One catalog MCP server with its install state and the env keys it needs
type MCPCatalogResult ¶
type MCPCatalogResult struct {
Servers []MCPCatalogEntry `json:"servers"`
}
Catalog MCP servers of the profile
type MCPOAuthCancelResult ¶
type MCPOAuthCancelResult struct {
OK bool `json:"ok"`
Status *string `json:"status,omitzero"`
ErrorMessage *string `json:"error_message,omitzero"`
}
Whether a cancel stopped the flow and its state then
type MCPOAuthFlowParams ¶
type MCPOAuthFlowParams struct {
Profile *string `json:"profile,omitzero"`
Name string `json:"name"`
SessionID string `json:"session_id"`
}
Sign in flow of a server by the flow id its start returned
type MCPOAuthPollResult ¶
type MCPOAuthPollResult struct {
OK bool `json:"ok"`
Status MCPOAuthPollStatus `json:"status"`
SessionID *string `json:"session_id,omitzero"`
ErrorMessage *string `json:"error_message,omitzero"`
AuthURL *string `json:"auth_url,omitzero"`
Tools []MCPProbeTool `json:"tools,omitzero"`
}
State of a sign in flow, the tools of the server once approved or why it failed
type MCPOAuthPollStatus ¶
type MCPOAuthPollStatus string
Where a browser sign in stands
func (MCPOAuthPollStatus) Values ¶
func (MCPOAuthPollStatus) Values() []string
type MCPOAuthStartParams ¶
type MCPOAuthStartParams struct {
Profile *string `json:"profile,omitzero"`
Name string `json:"name"`
ClientRedirectURI *string `json:"client_redirect_uri,omitzero"`
}
Browser sign in of a server, the client hosting the loopback itself when it names its redirect
type MCPOAuthStartResult ¶
type MCPOAuthStartResult struct {
OK bool `json:"ok"`
SessionID string `json:"session_id"`
AuthURL string `json:"auth_url"`
Flow string `json:"flow"`
}
Sign in flow that started and the link the user opens
type MCPProbeTool ¶
One tool a probed MCP server lists
type MCPRuntimeStatus ¶
type MCPRuntimeStatus string
Runtime state of a configured MCP server, read from the cache and never probed
func (MCPRuntimeStatus) Values ¶
func (MCPRuntimeStatus) Values() []string
type MCPServerNameParams ¶
type MCPServerNameParams struct {
Profile *string `json:"profile,omitzero"`
Name string `json:"name"`
}
Configured MCP server a test, removal or sign in names
type MCPServerResult ¶
type MCPServerResult struct {
OK bool `json:"ok"`
Name string `json:"name"`
Server MCPServerSummary `json:"server"`
}
The server an add, enable or key change wrote
type MCPServerRuntimeRow ¶
type MCPServerRuntimeRow struct {
Name string `json:"name"`
Transport string `json:"transport"`
Tools int64 `json:"tools"`
Connected bool `json:"connected"`
Disabled bool `json:"disabled"`
Status MCPRuntimeStatus `json:"status"`
Source MCPServerSource `json:"source"`
Plugin *string `json:"plugin,omitzero"`
}
Runtime row of one configured MCP server with its tool count
type MCPServerSource ¶
type MCPServerSource string
Where a configured MCP server comes from, config.yaml or a plugin
func (MCPServerSource) Values ¶
func (MCPServerSource) Values() []string
type MCPServerSummary ¶
type MCPServerSummary struct {
Name string `json:"name"`
Transport string `json:"transport"`
URL *string `json:"url,omitzero"`
Command *string `json:"command,omitzero"`
Args []string `json:"args"`
Env []string `json:"env"`
Auth *string `json:"auth,omitzero"`
OAuthTokensPresent *bool `json:"oauth_tokens_present,omitzero"`
Enabled bool `json:"enabled"`
Tools any `json:"tools,omitzero"`
Source MCPServerSource `json:"source"`
Plugin *string `json:"plugin,omitzero"`
}
A configured MCP server without its secret values, env and tools as configured
type MCPServersAddParams ¶
type MCPServersAddParams struct {
Profile *string `json:"profile,omitzero"`
Name string `json:"name"`
Preset *string `json:"preset,omitzero"`
Config map[string]any `json:"config,omitzero"`
BearerToken *string `json:"bearer_token,omitzero"`
}
Server to add from a catalog preset or an explicit config, a bearer token written to the profile's .env
type MCPServersEnableParams ¶
type MCPServersEnableParams struct {
Profile *string `json:"profile,omitzero"`
Name string `json:"name"`
Enabled bool `json:"enabled"`
}
Server whose enabled flag a call sets
type MCPServersListResult ¶
type MCPServersListResult struct {
Servers []MCPServerSummary `json:"servers"`
}
Configured MCP servers of the profile
type MCPServersRemoveResult ¶
Whether a removal dropped the server from config.yaml
type MCPServersSetAPIKeyParams ¶
type MCPServersSetAPIKeyParams struct {
Profile *string `json:"profile,omitzero"`
Name string `json:"name"`
Value string `json:"value"`
EnvVar *string `json:"env_var,omitzero"`
}
Credential of a server stored in the profile's .env under env_var or the server's own key
type MCPServersSetAPIKeyResult ¶
type MCPServersSetAPIKeyResult struct {
OK bool `json:"ok"`
Name string `json:"name"`
EnvVar string `json:"env_var"`
Server MCPServerSummary `json:"server"`
}
The server a key change wrote and the env key that holds the value
type MCPServersStatusResult ¶
type MCPServersStatusResult struct {
Servers []MCPServerRuntimeRow `json:"servers"`
CheckedAt int64 `json:"checked_at"`
}
Runtime rows of the configured MCP servers and when they were read
type MCPServersTestResult ¶
type MCPServersTestResult struct {
OK bool `json:"ok"`
Tools []MCPProbeTool `json:"tools"`
Error *string `json:"error,omitzero"`
Prompts *int64 `json:"prompts,omitzero"`
Resources *int64 `json:"resources,omitzero"`
OAuthNeeded bool `json:"oauth_needed"`
OAuthTokensPresent *bool `json:"oauth_tokens_present,omitzero"`
}
Outcome of connecting to a server once, its tools, prompt and resource counts, or why it failed
type McpServerStatus ¶
type McpServerStatus struct {
Name string `json:"name"`
Transport string `json:"transport"`
Tools int64 `json:"tools"`
Connected bool `json:"connected"`
Disabled bool `json:"disabled"`
Status MCPRuntimeStatus `json:"status"`
Error *string `json:"error,omitzero"`
Sampling map[string]any `json:"sampling,omitzero"`
}
MCP server of the session with its transport, tool count, connection state and sampling metrics
type MemoryChangeParams ¶
type MemoryChangeParams struct {
Profile *string `json:"profile,omitzero"`
Verb string `json:"verb"`
Provider string `json:"provider,omitzero"`
Values map[string]string `json:"values,omitzero"`
// Store an erase empties: all, memory for the agent's notes or user for what it knows about the user
Target string `json:"target,omitzero"`
}
One change to memory: use a provider with the values of its settings, off for the built-in memory alone, or erase a built-in store
type MemoryChangeResult ¶
type MemoryChangeResult struct {
Erased []string `json:"erased,omitzero"`
State MemoryOverviewResult `json:"state"`
}
Memory after a change, and the files an erase deleted
type MemoryField ¶
type MemoryField struct {
Key string `json:"key"`
Label string `json:"label"`
// Value in force, never that of a secret
Value string `json:"value,omitzero"`
Secret bool `json:"secret,omitzero"`
// Whether the secret already holds a value
SecretSet bool `json:"secret_set,omitzero"`
// Only values the setting takes, empty for free text
Choices []string `json:"choices,omitzero"`
// Where a key for the setting is handed out
URL string `json:"url,omitzero"`
// Settings that must hold these values for this one to count
When map[string]string `json:"when,omitzero"`
}
One setting a memory provider asks for
type MemoryOverviewParams ¶
type MemoryOverviewParams struct {
Profile *string `json:"profile,omitzero"`
}
type MemoryOverviewResult ¶
type MemoryOverviewResult struct {
// Provider new sessions use, empty for the built-in memory alone
Provider string `json:"provider,omitzero"`
MemoryEnabled bool `json:"memory_enabled,omitzero"`
UserProfileEnabled bool `json:"user_profile_enabled,omitzero"`
ToolEnabled bool `json:"tool_enabled,omitzero"`
// Whether the plugin of the provider in use is installed, and whether the provider has what it needs
Installed bool `json:"installed,omitzero"`
Ready bool `json:"ready,omitzero"`
// Why the provider in use is not ready
Problem string `json:"problem,omitzero"`
Providers []MemoryProviderRow `json:"providers"`
}
State of memory for the profile: the built-in stores, the provider in use and every provider that can be set up
type MemoryProviderRow ¶
type MemoryProviderRow struct {
Name string `json:"name"`
// The provider new sessions use
Active bool `json:"active,omitzero"`
// Brings a setup of its own that takes the place of its settings
OwnSetup bool `json:"own_setup,omitzero"`
Fields []MemoryField `json:"fields"`
}
One memory provider that can be set up
type MessageCompletePayload ¶
type MessageCompletePayload struct {
Text *string `json:"text,omitzero"`
Content *string `json:"content,omitzero"`
AdmissionID *string `json:"admission_id,omitzero"`
Outcome *string `json:"outcome,omitzero"`
Usage *Usage `json:"usage,omitzero"`
Status *TurnStatus `json:"status,omitzero"`
Reasoning *string `json:"reasoning,omitzero"`
Warning *string `json:"warning,omitzero"`
ResponsePreviewed *bool `json:"response_previewed,omitzero"`
ResponseReused *bool `json:"response_reused,omitzero"`
ResponseTransformed *bool `json:"response_transformed,omitzero"`
Billing *BillingBlock `json:"billing,omitzero"`
FailureReason *string `json:"failure_reason,omitzero"`
Rendered *string `json:"rendered,omitzero"`
Error *string `json:"error,omitzero"`
Recoverable *bool `json:"recoverable,omitzero"`
ErrorSurface *ErrorSurface `json:"error_surface,omitzero"`
Partial *bool `json:"partial,omitzero"`
PersistedTurn *PersistedTurn `json:"persisted_turn,omitzero"`
}
End of a turn, its final text, usage and outcome, a canonical turn naming its admission
type MessageDeltaPayload ¶
type MessageDeltaPayload struct {
Text *string `json:"text"`
Rendered *string `json:"rendered,omitzero"`
Verbose *bool `json:"verbose,omitzero"`
TurnID *string `json:"turn_id,omitzero"`
Segment *int64 `json:"segment,omitzero"`
Offset *int64 `json:"offset,omitzero"`
}
Streamed reply chunk, null text ending a segment and the turn stamps letting a client drop a resent chunk
type MessageInterimPayload ¶
type MessageInterimPayload struct {
Text string `json:"text"`
AlreadyStreamed bool `json:"already_streamed"`
TurnID *string `json:"turn_id,omitzero"`
Segment *int64 `json:"segment,omitzero"`
}
Commentary beside tool calls sealed as its own segment
type MessageStartPayload ¶
type MessageStartPayload struct {
DisplayKind *string `json:"display_kind,omitzero"`
DisplayText *string `json:"display_text,omitzero"`
NotificationCategory *string `json:"notification_category,omitzero"`
Text *string `json:"text,omitzero"`
TurnID *string `json:"turn_id,omitzero"`
}
Start of a turn, an automation turn carrying the card and model text a viewer paints
type Method ¶
type Method[P, R any] struct { // contains filtered or unexported fields }
Client method whose params are P and whose result is R
func NewCanonicalMethod ¶
Declares a method the session authority serves
type MirroredValue ¶
type MirroredValue struct {
Done bool
}
Whether a create mirrored one item from the launch profile, Shared standing for logins the new profile reads from the root store
func (MirroredValue) Held ¶
func (v MirroredValue) Held() bool
Reports whether the item reached the new profile, copied or shared
func (MirroredValue) MarshalJSON ¶
func (v MirroredValue) MarshalJSON() ([]byte, error)
func (*MirroredValue) UnmarshalJSON ¶
func (v *MirroredValue) UnmarshalJSON(data []byte) error
type MixRow ¶
type MixRow struct {
Name string `json:"name"`
// The mix a run uses when it names none
Default bool `json:"default,omitzero"`
// The mix the settings have switched on
Active bool `json:"active,omitzero"`
Advisers []MixSlot `json:"advisers"`
Acting MixSlot `json:"acting"`
// Billing note when the acting model runs on another provider than the main model
Notice string `json:"notice,omitzero"`
}
One saved mix: the models that advise and the one that acts on their advice
type MixSlot ¶
type MixSlot struct {
Provider string `json:"provider"`
Model string `json:"model"`
ReasoningEffort string `json:"reasoning_effort,omitzero"`
// An advising model kept in the mix without being asked
Off bool `json:"off,omitzero"`
}
One model of a mix
type MixesChangeParams ¶
type MixesChangeParams struct {
Profile *string `json:"profile,omitzero"`
Verb string `json:"verb"`
Name string `json:"name"`
// Advising models and acting model a save stores, a new name making a new mix
Advisers []MixSlot `json:"advisers,omitzero"`
Acting *MixSlot `json:"acting,omitzero"`
}
One change to the saved mixes: save, default or remove
type MixesListParams ¶
type MixesListParams struct {
Profile *string `json:"profile,omitzero"`
}
type MixesListResult ¶
type MixesListResult struct {
Mixes []MixRow `json:"mixes"`
}
Every saved mix of the profile
type MoaAggregatingPayload ¶
type MoaAggregatingPayload struct {
Aggregator string `json:"aggregator"`
}
Mixture of agents aggregator that started
type MoaPhasePayload ¶
type MoaPhasePayload struct {
Phase string `json:"phase"`
RefsDone *int64 `json:"refs_done,omitzero"`
RefsTotal *int64 `json:"refs_total,omitzero"`
Aggregator *string `json:"aggregator,omitzero"`
}
Phase a mixture of agents turn moved to, aggregator once the references are in
type MoaProgressPayload ¶
type MoaProgressPayload struct {
Label string `json:"label"`
RefsDone int64 `json:"refs_done"`
RefsTotal int64 `json:"refs_total"`
}
References a mixture of agents turn has heard back from
type MoaReferencePayload ¶
type MoaReferencePayload struct {
Label string `json:"label"`
Text string `json:"text"`
Index *int64 `json:"index,omitzero"`
Count *int64 `json:"count,omitzero"`
}
Output of one mixture of agents reference model, its place among the references
type ModelCapabilities ¶
type ModelDisconnectParams ¶
type ModelDisconnectParams struct {
Profile *string `json:"profile,omitzero"`
Slug string `json:"slug"`
SessionID string `json:"session_id,omitzero"`
// Login to remove, the provider's default login when omitted
Login string `json:"login,omitzero"`
// Every login, env key and sign in state of the provider, the old disconnect
All bool `json:"all,omitzero"`
}
type ModelDisconnectResult ¶
type ModelDisconnectResult struct {
Slug string `json:"slug"`
Name string `json:"name"`
Disconnected bool `json:"disconnected"`
// Login removed, empty when every credential went
Login string `json:"login,omitzero"`
// Logins of the provider left after the removal
Remaining int64 `json:"remaining,omitzero"`
}
type ModelOptionProvider ¶
type ModelOptionProvider struct {
Slug string `json:"slug"`
Name string `json:"name"`
Models []string `json:"models,omitzero"`
TotalModels int64 `json:"total_models,omitzero"`
IsCurrent bool `json:"is_current,omitzero"`
IsUserDefined bool `json:"is_user_defined,omitzero"`
Source string `json:"source,omitzero"`
Aliases []string `json:"aliases,omitzero"`
APIURL string `json:"api_url,omitzero"`
AuthType string `json:"auth_type,omitzero"`
Authenticated *bool `json:"authenticated,omitzero"`
KeyEnv string `json:"key_env,omitzero"`
Warning string `json:"warning,omitzero"`
FeaturedModels []string `json:"featured_models,omitzero"`
Capabilities map[string]ModelCapabilities `json:"capabilities,omitzero"`
Pricing map[string]ModelPricing `json:"pricing,omitzero"`
PricingPending bool `json:"pricing_pending,omitzero"`
NativeCatalogEmpty bool `json:"native_catalog_empty,omitzero"`
Limit *ProviderLimit `json:"limit,omitzero"`
Usage *ProviderUsage `json:"usage,omitzero"`
Extra map[string]any `json:"-" wire:"extra"`
}
One provider of the model picker with its models, sign in state, prices, limits and usage
func (ModelOptionProvider) Unauthenticated ¶
func (p ModelOptionProvider) Unauthenticated() bool
Whether the provider holds no credential, a row the picker offers to sign in to
type ModelOptionsParams ¶
type ModelOptionsResult ¶
type ModelOptionsResult struct {
Providers []ModelOptionProvider `json:"providers"`
Model string `json:"model,omitzero"`
Provider string `json:"provider,omitzero"`
}
type ModelPick ¶
type ModelPick struct {
Model string `json:"model"`
Provider *string `json:"provider,omitzero"`
Reasoning *string `json:"reasoning,omitzero"`
}
Model a deferred pick asked for, with its provider and reasoning effort
type ModelPricing ¶
type ModelPricing struct {
Input string `json:"input"`
Output string `json:"output"`
Cache *string `json:"cache,omitzero"`
Free bool `json:"free"`
}
Price per million tokens as display text, empty when unknown and free for a free model
type ModelSaveKeyParams ¶
type ModelSaveKeyResult ¶
type ModelSaveKeyResult struct {
Provider ModelOptionProvider `json:"provider"`
}
type MouseTracking ¶
type MouseTracking string
func (MouseTracking) Values ¶
func (MouseTracking) Values() []string
type NoticePayload ¶
type NoticePayload struct {
Message string `json:"message"`
}
Informational one line notice for the session
type NotificationClearPayload ¶
type NotificationClearPayload struct {
Key string `json:"key"`
}
type NotificationShowPayload ¶
type NotificationShowPayload struct {
Text string `json:"text"`
Level string `json:"level"`
Kind string `json:"kind"`
TTLMs *int64 `json:"ttl_ms,omitzero"`
Key string `json:"key,omitzero"`
ID string `json:"id,omitzero"`
Detail string `json:"detail,omitzero"`
}
Keyed out of band notice, a toast for ttl_ms or sticky in the status bar until cleared
type OpenRequestEntry ¶
type ParamsRefusal ¶
Params that do not fit their method, naming the method and the field
func (*ParamsRefusal) Error ¶
func (e *ParamsRefusal) Error() string
func (*ParamsRefusal) Fields ¶
func (e *ParamsRefusal) Fields() []string
Field paths the refusal names
func (*ParamsRefusal) Unknown ¶
func (e *ParamsRefusal) Unknown() bool
Whether the refusal is a key the method does not declare, the mark of a client of another version
func (*ParamsRefusal) Unwrap ¶
func (e *ParamsRefusal) Unwrap() error
type PasteCollapseParams ¶
type PasteCollapseParams struct {
Text string `json:"text,omitzero"`
}
type PasteCollapseResult ¶
type PasteCollapseResult struct {
Placeholder string `json:"placeholder"`
Path string `json:"path"`
Lines int64 `json:"lines"`
}
Large paste spilled to a file, the placeholder the composer shows for it
type PeerRouteStatus ¶
type PendingApproval ¶
type PendingApproval struct {
RequestID *string `json:"request_id,omitzero"`
Command *string `json:"command,omitzero"`
Description *string `json:"description,omitzero"`
PatternKey *string `json:"pattern_key,omitzero"`
PatternKeys []string `json:"pattern_keys,omitzero"`
AllowPermanent *bool `json:"allow_permanent,omitzero"`
AllowSession *bool `json:"allow_session,omitzero"`
SmartDenied *bool `json:"smart_denied,omitzero"`
Choices []string `json:"choices,omitzero"`
ToolName *string `json:"tool_name,omitzero"`
}
type PendingSubmission ¶
type PendingSubmission struct {
AdmissionID string `json:"admission_id"`
Status string `json:"status"`
User string `json:"user"`
InputID string `json:"input_id"`
}
One prompt a forwarding owner queued for the session, shown as a user bubble once it starts
type PersistedTurn ¶
type PersistedTurn struct {
RowIDs []int64 `json:"row_ids"`
Complete bool `json:"complete"`
UserRowID *int64 `json:"user_row_id,omitzero"`
FinalAssistantRowID *int64 `json:"final_assistant_row_id,omitzero"`
UserRowIDs []int64 `json:"user_row_ids,omitzero"`
SubmissionID *string `json:"submission_id,omitzero"`
}
Stored row ids of a turn, complete only when every row and the final body are accounted for
type PetCancelParams ¶
type PetCellFrames ¶
Frames of one pet state, half-block cells of eight colour channels or the kitty transmit escapes
func (PetCellFrames) MarshalJSON ¶
func (f PetCellFrames) MarshalJSON() ([]byte, error)
func (*PetCellFrames) UnmarshalJSON ¶
func (f *PetCellFrames) UnmarshalJSON(data []byte) error
type PetCellsParams ¶
type PetCellsParams struct {
Profile *string `json:"profile,omitzero"`
State string `json:"state,omitzero"`
Cols int64 `json:"cols,omitzero"`
Graphics bool `json:"graphics,omitzero"`
// Image form the client's own terminal paints, kitty or unicode, since the gateway's environment names no client's terminal
Terminal string `json:"terminal,omitzero"`
}
type PetCellsResult ¶
type PetCellsResult struct {
Enabled bool `json:"enabled"`
Slug string `json:"slug,omitzero"`
DisplayName string `json:"displayName,omitzero"`
State string `json:"state,omitzero"`
Cols int64 `json:"cols,omitzero"`
FrameMs float64 `json:"frameMs,omitzero"`
Frames *PetCellFrames `json:"frames,omitzero"`
Scale float64 `json:"scale,omitzero"`
Graphics string `json:"graphics,omitzero"`
ImageID int64 `json:"imageId,omitzero"`
Color string `json:"color,omitzero"`
Rows int64 `json:"rows,omitzero"`
Placeholder []string `json:"placeholder,omitzero"`
}
Frames of one pet state for a cell renderer, the kitty fields set when the graphics path was taken
type PetExportResult ¶
type PetGalleryEntry ¶
type PetGalleryParams ¶
type PetGalleryResult ¶
type PetGalleryResult struct {
Enabled bool `json:"enabled"`
Active string `json:"active,omitzero"`
Pets []PetGalleryEntry `json:"pets,omitzero"`
}
type PetGenerateParams ¶
type PetGenerateProgressPayload ¶
type PetGenerateProgressPayload struct {
Token string `json:"token"`
Count int64 `json:"count"`
Index *int64 `json:"index,omitzero"`
DataURI string `json:"dataUri,omitzero"`
}
Draft generation progress, a token and count first and then one frame per finished draft
type PetGenerateResult ¶
type PetHatchParams ¶
type PetHatchParams struct {
Profile *string `json:"profile,omitzero"`
Token string `json:"token"`
Name string `json:"name"`
CancelToken string `json:"cancelToken,omitzero"`
Index *int64 `json:"index,omitzero"`
Description string `json:"description,omitzero"`
Prompt string `json:"prompt,omitzero"`
Style string `json:"style,omitzero"`
Provider string `json:"provider,omitzero"`
}
type PetHatchProgressPayload ¶
type PetHatchProgressPayload struct {
Event string `json:"event"`
Detail string `json:"detail,omitzero"`
State string `json:"state,omitzero"`
Done string `json:"done,omitzero"`
Total string `json:"total,omitzero"`
}
Hatch progress, an event with its detail or a drawn row as state, done and total
type PetHatchResult ¶
type PetHatchResult struct {
Ok bool `json:"ok"`
Slug string `json:"slug"`
DisplayName string `json:"displayName"`
Warnings []string `json:"warnings"`
Pet PetSprite `json:"pet"`
}
Hatched pet installed but not active, its sprite empty when it could not be loaded back
type PetInfoMetaResult ¶
type PetInfoMetaResult struct {
Enabled bool `json:"enabled"`
Slug string `json:"slug,omitzero"`
DisplayName string `json:"displayName,omitzero"`
Scale float64 `json:"scale,omitzero"`
SpritesheetRevision string `json:"spritesheetRevision,omitzero"`
}
Cheap metadata of the active pet, enabled false and nothing else while the display is off
type PetInfoParams ¶
type PetInfoResult ¶
type PetInfoResult struct {
Enabled bool `json:"enabled"`
PetSprite
SpritesheetUnchanged bool `json:"spritesheetUnchanged,omitzero"`
}
Active pet for sprite renderers, the spritesheet left out when the caller already holds its revision
type PetOkResult ¶
type PetOkResult struct {
Ok bool `json:"ok"`
}
type PetRenameParams ¶
type PetRenderMode ¶
type PetRenderMode string
func (PetRenderMode) Values ¶
func (PetRenderMode) Values() []string
type PetScaleParams ¶
type PetScaleParams struct {
Profile *string `json:"profile,omitzero"`
Scale string `json:"scale"`
}
Scale to persist as the user typed it, text that is no number answered 4004
type PetScaleResult ¶
type PetSlugParams ¶
type PetSlugResult ¶
type PetSprite ¶
type PetSprite struct {
Slug string `json:"slug,omitzero"`
DisplayName string `json:"displayName,omitzero"`
Mime string `json:"mime,omitzero"`
SpritesheetBase64 string `json:"spritesheetBase64,omitzero"`
SpritesheetRevision string `json:"spritesheetRevision,omitzero"`
FrameW int64 `json:"frameW,omitzero"`
FrameH int64 `json:"frameH,omitzero"`
FramesPerState int64 `json:"framesPerState,omitzero"`
FramesByState map[string]int64 `json:"framesByState,omitzero"`
FramesByRow map[string]int64 `json:"framesByRow,omitzero"`
LoopMs int64 `json:"loopMs,omitzero"`
Scale float64 `json:"scale,omitzero"`
StateRows []string `json:"stateRows,omitzero"`
}
Spritesheet and frame geometry of a pet, every field absent while the pet display is off
type PingParams ¶
type PingParams struct{}
type PingResult ¶
type PingResult struct {
Pong bool `json:"pong"`
}
type PluginActivation ¶
type PluginActivation struct {
Name string `json:"name"`
Key string `json:"key"`
ActivatedNow map[string][]string `json:"activated_now,omitzero"`
LiveNow *PluginLiveNow `json:"live_now,omitzero"`
Deferred map[string][]string `json:"deferred,omitzero"`
MissingDependencies []string `json:"missing_dependencies,omitzero"`
MissingIn []PluginRestartTarget `json:"missing_in,omitzero"`
}
What a plugin loaded mid run does now and what waits for a restart, by kind
type PluginCatalogRow ¶
type PluginCatalogRow struct {
Name string `json:"name"`
Title string `json:"title,omitzero"`
Description string `json:"description,omitzero"`
Tier string `json:"tier,omitzero"`
Category string `json:"category,omitzero"`
Version string `json:"version,omitzero"`
Repo string `json:"repo,omitzero"`
Maintainer string `json:"maintainer,omitzero"`
Tools []string `json:"tools,omitzero"`
RequiresEnv []string `json:"requires_env,omitzero"`
KnownIssues []string `json:"known_issues,omitzero"`
DocsURL string `json:"docs_url,omitzero"`
}
One entry of the curated plugin catalog as the plugins screen lists it
type PluginLiveNow ¶
type PluginLiveNow struct {
MCPServers []PluginLiveServer `json:"mcp_servers,omitzero"`
Skills []PluginLiveSkill `json:"skills,omitzero"`
}
type PluginLiveServer ¶
type PluginLiveServer struct {
Name string `json:"name"`
Connected bool `json:"connected"`
Tools []string `json:"tools,omitzero"`
Error *string `json:"error,omitzero"`
}
One plugin MCP server connected at activation, its tools or the reason it did not connect
type PluginLiveSkill ¶
type PluginLiveSkill struct {
Name string `json:"name"`
Description string `json:"description,omitzero"`
}
One plugin skill usable now as plugin:skill
type PluginRestartTarget ¶
type PluginRestartTarget string
func (PluginRestartTarget) Values ¶
func (PluginRestartTarget) Values() []string
type PluginScanFinding ¶
type PluginScanFinding struct {
PatternID string `json:"pattern_id"`
Severity string `json:"severity"`
Category string `json:"category"`
File string `json:"file"`
Line int64 `json:"line"`
Description string `json:"description"`
}
One security scan finding on a plugin tree the scan blocked
type PluginServerRow ¶
type PluginServerRow struct {
Name string `json:"name"`
State PluginServerState `json:"state"`
Sentence string `json:"sentence"`
}
type PluginServerState ¶
type PluginServerState string
func (PluginServerState) Values ¶
func (PluginServerState) Values() []string
type PluginSettingField ¶
type PluginSettingField struct {
Key string `json:"key"`
Type PluginSettingFieldType `json:"type"`
Label string `json:"label"`
Description string `json:"description"`
Required bool `json:"required"`
Value any `json:"value,omitzero"`
Default any `json:"default,omitzero"`
Choices []string `json:"choices,omitzero"`
Env *string `json:"env,omitzero"`
HasValue *bool `json:"has_value,omitzero"`
}
One config_schema key of a plugin manifest, a secret carrying only its env name and whether it is set
type PluginSettingFieldType ¶
type PluginSettingFieldType string
func (PluginSettingFieldType) Values ¶
func (PluginSettingFieldType) Values() []string
type PluginToolsetRow ¶
type PluginUpdateRow ¶
type PluginUpdateRow struct {
Name string `json:"name"`
Status PluginUpdateStatus `json:"status"`
Detail string `json:"detail"`
}
One plugin an update of every plugin handled, with the refusal or failure text when it did not update
type PluginUpdateSkip ¶
One plugin an update of every plugin left alone and why
type PluginUpdateStatus ¶
type PluginUpdateStatus string
Outcome of one plugin an update of every plugin moved or tried to move
func (PluginUpdateStatus) Values ¶
func (PluginUpdateStatus) Values() []string
type PluginsAction ¶
type PluginsAction string
func (PluginsAction) Values ¶
func (PluginsAction) Values() []string
type PluginsCatalogParams ¶
type PluginsCatalogParams struct {
Profile *string `json:"profile,omitzero"`
Term string `json:"term,omitzero"`
}
Words the catalog is narrowed to, every entry when empty
type PluginsCatalogResult ¶
type PluginsCatalogResult struct {
Entries []PluginCatalogRow `json:"entries"`
}
Catalog entries the words match
type PluginsHubRunParams ¶
type PluginsHubRunParams struct {
Profile *string `json:"profile,omitzero"`
Verb string `json:"verb"`
Name string `json:"name,omitzero"`
Source string `json:"source,omitzero"`
// Pack export only: the name written into the pack and whether only enabled plugins go in
PackName string `json:"pack_name,omitzero"`
EnabledOnly bool `json:"enabled_only,omitzero"`
// Pack export only: full path of a file the pack is written to besides being answered
Output string `json:"output,omitzero"`
// Validate only: installs the plugin's declared Python dependencies before the capability probe
InstallDeps bool `json:"install_deps,omitzero"`
}
One plugins command run without questions: show, info, capabilities, check-updates, trust-update-url, adopt, pack-show, pack-export, doctor or validate, with the name, path or source it reads
type PluginsHubRunResult ¶
What a plugins command printed and whether it reported success
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 PluginsPackInstallParams ¶
type PluginsPackInstallParams struct {
Profile *string `json:"profile,omitzero"`
Source string `json:"source"`
Force bool `json:"force,omitzero"`
}
Pack whose pinned plugins are installed after the user reviewed it in the screen
type ProcessEntry ¶
type ProcessEntry struct {
SessionID string `json:"session_id"`
Command string `json:"command"`
Status string `json:"status"`
Cwd *string `json:"cwd,omitzero"`
PID *int64 `json:"pid,omitzero"`
OwnerTaskID *string `json:"owner_task_id,omitzero"`
StartedAt *string `json:"started_at,omitzero"`
StartedEpoch *float64 `json:"started_epoch,omitzero"`
UptimeSeconds *int64 `json:"uptime_seconds,omitzero"`
OutputPreview *string `json:"output_preview,omitzero"`
OutputTail *string `json:"output_tail,omitzero"`
SessionScoped *bool `json:"session_scoped,omitzero"`
WatchPatterns []string `json:"watch_patterns,omitzero"`
WatchHit *bool `json:"watch_hit,omitzero"`
NotifyOnComplete *bool `json:"notify_on_complete,omitzero"`
PersistOnRelease *bool `json:"persist_on_release,omitzero"`
WSLChain *bool `json:"wsl_chain,omitzero"`
WSLNote *string `json:"wsl_note,omitzero"`
ExitCode *int64 `json:"exit_code,omitzero"`
ExitedAt *float64 `json:"exited_at,omitzero"`
CompletionReason *string `json:"completion_reason,omitzero"`
Detached *bool `json:"detached,omitzero"`
Extra map[string]any `json:"-" wire:"extra"`
}
One background process the session owns, with the tail of its output
type ProcessKillParams ¶
type ProcessKillResult ¶
type ProcessKillResult struct {
Status ProcessKillStatus `json:"status"`
SessionID *string `json:"session_id,omitzero"`
Command *string `json:"command,omitzero"`
ExitCode *int64 `json:"exit_code,omitzero"`
CompletionReason *string `json:"completion_reason,omitzero"`
TerminationSource *string `json:"termination_source,omitzero"`
Output *string `json:"output,omitzero"`
Error *string `json:"error,omitzero"`
Extra map[string]any `json:"-" wire:"extra"`
}
Kill outcome with the process's output snapshot, the registry's further facts kept open
type ProcessKillStatus ¶
type ProcessKillStatus string
Outcome of a kill, error riding on the failure statuses
func (ProcessKillStatus) Values ¶
func (ProcessKillStatus) Values() []string
type ProcessListResult ¶
type ProcessListResult struct {
Processes []ProcessEntry `json:"processes"`
}
type ProcessStopParams ¶
type ProcessStopParams struct {
SessionID *string `json:"session_id,omitzero"`
Profile *string `json:"profile,omitzero"`
}
Session whose processes a stop kills, every process of a standalone sidecar when absent
type ProcessStopResult ¶
type ProcessStopResult struct {
Killed int64 `json:"killed"`
Delegations int64 `json:"delegations,omitzero"`
}
Processes killed and background delegations interrupted
type ProfileCreateReceipt ¶
type ProfileCreateReceipt struct {
Path string `json:"path"`
DisplayPath string `json:"display_path"`
LaunchLabel string `json:"launch_label"`
SourceLabel string `json:"source_label"`
SkillsSynced *int64 `json:"skills_synced"`
SkillsOptedOut bool `json:"skills_opted_out"`
AliasPath *string `json:"alias_path"`
AliasCollision *string `json:"alias_collision"`
Mirrored map[string]MirroredValue `json:"mirrored"`
Warnings []string `json:"warnings"`
ClonedPlugins []string `json:"cloned_plugins"`
MemoryProvider *string `json:"memory_provider"`
ChannelsLeftBehind []string `json:"channels_left_behind"`
ServedNow *bool `json:"served_now"`
}
What profile create prints about a new profile, read on the machine and in the profile scope that made it
func ProfileCreateReceiptFromWire ¶
func ProfileCreateReceiptFromWire(raw any) *ProfileCreateReceipt
Receipt a gateway sent, nil unless every field is there with its type and the path is set, fields this build does not know dropped
type ProfileMirrored ¶
type ProfileMirrored struct {
Env bool `json:"env"`
Auth MirroredValue `json:"auth"`
ModelInherited bool `json:"model_inherited"`
Voice bool `json:"voice"`
}
What a create copied from the launch profile
type ProfileOverviewRow ¶
type ProfileOverviewRow struct {
Name string `json:"name"`
Path string `json:"path"`
// The default profile living in the root home
IsDefault bool `json:"is_default,omitzero"`
// The profile icebath opens with when none is named
Active bool `json:"active,omitzero"`
DisplayName string `json:"display_name,omitzero"`
Model string `json:"model,omitzero"`
Provider string `json:"provider,omitzero"`
Description string `json:"description,omitzero"`
DescriptionAuto bool `json:"description_auto,omitzero"`
SkillCount int64 `json:"skill_count"`
// Shell command that opens the profile and the script behind it, empty without one
Alias string `json:"alias,omitzero"`
AliasPath string `json:"alias_path,omitzero"`
// Distribution the profile was installed from, its name and version, and where it came from
Distribution string `json:"distribution,omitzero"`
DistributionSource string `json:"distribution_source,omitzero"`
PreviousNames []string `json:"previous_names,omitzero"`
// Whether a background service of its own runs for the profile
ServiceRunning bool `json:"service_running,omitzero"`
HasEnv bool `json:"has_env,omitzero"`
}
One profile as the profiles screen shows it: where it lives, its model, skills and description, and how it is reached
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 ProfilesAliasParams ¶
type ProfilesAliasParams struct {
Profile *string `json:"profile,omitzero"`
Name string `json:"name"`
Remove bool `json:"remove,omitzero"`
}
Shell alias of a profile to write or remove
type ProfilesAliasResult ¶
type ProfilesAliasResult struct {
Name string `json:"name"`
Path string `json:"path,omitzero"`
Removed bool `json:"removed,omitzero"`
Collision string `json:"collision,omitzero"`
}
Script written or removed, and the command an alias would have shadowed
type ProfilesCreateParams ¶
type ProfilesCreateParams struct {
Profile *string `json:"profile,omitzero"`
Name string `json:"name"`
Description *string `json:"description,omitzero"`
CloneFrom *string `json:"clone_from,omitzero"`
CloneAll *bool `json:"clone_all,omitzero"`
CloneChannels *bool `json:"clone_channels,omitzero"`
NoSkills *bool `json:"no_skills,omitzero"`
NoAlias *bool `json:"no_alias,omitzero"`
Soul *string `json:"soul,omitzero"`
Model *string `json:"model,omitzero"`
Provider *string `json:"provider,omitzero"`
MirrorCredentials *bool `json:"mirror_credentials,omitzero"`
CloneConfig *bool `json:"clone_config,omitzero"`
SyncImports *bool `json:"sync_imports,omitzero"`
Report *bool `json:"report,omitzero"`
}
Profile to create and how, a fresh profile with bundled skills unless a clone is asked for, launch keys and logins shared unless turned off
type ProfilesCreateResult ¶
type ProfilesCreateResult struct {
Ok bool `json:"ok"`
Name string `json:"name"`
Path string `json:"path"`
SoulWritten bool `json:"soul_written"`
ModelSet bool `json:"model_set"`
Mirrored ProfileMirrored `json:"mirrored"`
Warnings []string `json:"warnings"`
Receipt *ProfileCreateReceipt `json:"receipt,omitzero"`
}
Created profile with what was mirrored into it, the receipt present when the caller asked for the report
type ProfilesDescribeParams ¶
type ProfilesDescribeParams struct {
Profile *string `json:"profile,omitzero"`
Name string `json:"name"`
Text string `json:"text,omitzero"`
Auto bool `json:"auto,omitzero"`
// With Auto, replaces a description the user wrote too
Overwrite bool `json:"overwrite,omitzero"`
}
Description of a profile to set, or to have written by the auxiliary model when Auto
type ProfilesDescribeResult ¶
type ProfilesDescribeResult struct {
Name string `json:"name"`
Description string `json:"description,omitzero"`
Auto bool `json:"auto,omitzero"`
Reason string `json:"reason,omitzero"`
}
Description a profile holds after the change, and why an automatic one was not written
type ProfilesExportParams ¶
type ProfilesExportParams struct {
Name string `json:"name,omitzero"`
Output string `json:"output,omitzero"`
}
Profile to export, the connection's own when empty, and the absolute archive path, the export directory when empty
type ProfilesExportResult ¶
type ProfilesImportParams ¶
type ProfilesImportParams struct {
Archive string `json:"archive"`
Name string `json:"name,omitzero"`
}
Absolute path of a shared archive and the profile name that overrides the one it carries
type ProfilesImportResult ¶
type ProfilesImportResult struct {
Name string `json:"name"`
Path string `json:"path"`
Wrapper *string `json:"wrapper"`
}
Imported profile and its alias script, null when the name collides with a command or the script could not be written
type ProfilesListParams ¶
type ProfilesListResult ¶
type ProfilesListResult struct {
Profiles []ProfileRow `json:"profiles,omitzero"`
BotModeProtocol *bool `json:"bot_mode_protocol,omitzero"`
InstallID string `json:"install_id,omitzero"`
}
Profile roster with previews, the backend injecting the teammate protocol itself and the machine that answered
type ProfilesOverviewParams ¶
type ProfilesOverviewParams struct {
Profile *string `json:"profile,omitzero"`
}
type ProfilesOverviewResult ¶
type ProfilesOverviewResult struct {
Active string `json:"active"`
Profiles []ProfileOverviewRow `json:"profiles"`
}
Every profile of the install and the one icebath opens with
type ProjectFolderRow ¶
type ProjectFolderRow struct {
Path string `json:"path"`
Label string `json:"label,omitzero"`
// The folder sessions and worktrees of the project start in
Primary bool `json:"primary,omitzero"`
}
One folder a project covers
type ProjectRef ¶
type ProjectRow ¶
type ProjectRow struct {
ID string `json:"id"`
Slug string `json:"slug"`
Name string `json:"name"`
Description string `json:"description,omitzero"`
// Kanban board bound to the project, empty for none
Board string `json:"board,omitzero"`
Archived bool `json:"archived,omitzero"`
// The project new sessions work in
Active bool `json:"active,omitzero"`
Folders []ProjectFolderRow `json:"folders"`
}
One project as the projects screen shows it
type ProjectsChangeParams ¶
type ProjectsChangeParams struct {
Profile *string `json:"profile,omitzero"`
Verb string `json:"verb"`
// Id or slug of the project the change is for, empty for create and clear
Project string `json:"project,omitzero"`
// Name of a new project or the new name of a renamed one
Name string `json:"name,omitzero"`
Description string `json:"description,omitzero"`
// Folders of a new project, the first one its primary
Folders []string `json:"folders,omitzero"`
// Folder an add-folder, remove-folder or set-primary change is for
Folder string `json:"folder,omitzero"`
Label string `json:"label,omitzero"`
// Makes an added folder the primary one
Primary bool `json:"primary,omitzero"`
// Kanban board to bind, empty unbinding the one bound now
Board string `json:"board,omitzero"`
// Makes a new project the one new sessions work in
Use bool `json:"use,omitzero"`
}
One change to the projects of the profile: create, rename, describe, add-folder, remove-folder, set-primary, use, clear, archive, restore or bind-board
type ProjectsChangeResult ¶
type ProjectsChangeResult struct {
Project string `json:"project,omitzero"`
Projects []ProjectRow `json:"projects"`
}
Every project after the change, and the id of the one it made or changed
type ProjectsListParams ¶
type ProjectsListParams struct {
Profile *string `json:"profile,omitzero"`
}
type ProjectsListResult ¶
type ProjectsListResult struct {
Projects []ProjectRow `json:"projects"`
}
Every project of the profile, archived ones included
type PromptCancelParams ¶
type PromptCancelParams struct {
SessionID string `json:"session_id"`
AdmissionID string `json:"admission_id"`
}
Admission of a session a client withdraws
type PromptReceiptParams ¶
type PromptReceiptParams struct {
SessionID string `json:"session_id"`
AdmissionID string `json:"admission_id"`
IncludeResult *bool `json:"include_result,omitzero"`
}
One admission of a session, with the committed result of a terminal one when asked
type PromptReceiptResult ¶
type PromptReceiptResult struct {
AdmissionReceipt
Result any `json:"result,omitzero"`
Usage map[string]any `json:"usage,omitzero"`
}
Receipt of an admission, a terminal one asked with include_result carrying its structured result and usage
type PromptResolveUnknownParams ¶
type PromptResolveUnknownParams struct {
SessionID string `json:"session_id"`
AdmissionID string `json:"admission_id"`
ExecutionGeneration int64 `json:"execution_generation"`
}
Admission lost across an owner restart and the generation it ran in
type PromptResponseResult ¶
type PromptResponseResult struct {
Status PromptResponseStatus `json:"status"`
PromptID string `json:"prompt_id"`
}
Outcome of an answer to a shared prompt
type PromptResponseStatus ¶
type PromptResponseStatus string
Whether an answer settled its prompt or found it settled already
func (PromptResponseStatus) Values ¶
func (PromptResponseStatus) Values() []string
type PromptSettledPayload ¶
type PromptSettledPayload struct {
PromptID string `json:"prompt_id"`
ExecutionGeneration int64 `json:"execution_generation"`
}
Shared prompt a viewer or the owner settled
type PromptSubmitParams ¶
type PromptSubmitParams struct {
SessionID string `json:"session_id"`
Profile *string `json:"profile,omitzero"`
Text string `json:"text,omitzero"`
DisplayKind *string `json:"display_kind,omitzero"`
Interrupted *bool `json:"interrupted,omitzero"`
Queued *bool `json:"queued,omitzero"`
Surface *string `json:"surface,omitzero"`
VoiceContext *string `json:"voice_context,omitzero"`
VoiceTurn *bool `json:"voice_turn,omitzero"`
TitlePreview *string `json:"title_preview,omitzero"`
TruncateBeforeUserOrdinal *int64 `json:"truncate_before_user_ordinal,omitzero"`
TruncateBeforeRowID *int64 `json:"truncate_before_row_id,omitzero"`
TruncateBeforeMessageID *string `json:"truncate_before_message_id,omitzero"`
ConfirmTruncate *bool `json:"confirm_truncate,omitzero"`
ConfirmEmptyTruncate *bool `json:"confirm_empty_truncate,omitzero"`
ConfirmDeepTruncate *bool `json:"confirm_deep_truncate,omitzero"`
RebindSurvivorRowIDs []int64 `json:"rebind_survivor_row_ids,omitzero"`
}
Prompt on the method table route, a rewind needing confirm_truncate and one truncation target
type PromptSubmitResult ¶
type PromptSubmitResult struct {
Status *PromptSubmitStatus `json:"status,omitzero"`
VoiceStopped *bool `json:"voice_stopped,omitzero"`
UserRowID *int64 `json:"user_row_id,omitzero"`
SurvivorUserRowIDs []*int64 `json:"survivor_user_row_ids,omitzero"`
SurvivorRowIDMap map[string]*int64 `json:"survivor_row_id_map,omitzero"`
AdmissionID *string `json:"admission_id,omitzero"`
Forwarded *bool `json:"forwarded,omitzero"`
}
Answer of the method table prompt.submit, status absent only when a typed stop phrase ended the voice chat
type PromptSubmitStatus ¶
type PromptSubmitStatus string
How the method table route took a prompt, streamed now or held behind the running turn
func (PromptSubmitStatus) Values ¶
func (PromptSubmitStatus) Values() []string
type ProviderAccountState ¶
type ProviderAccountState string
func (ProviderAccountState) Values ¶
func (ProviderAccountState) Values() []string
type ProviderLimit ¶
type ProviderLimit struct {
Scope ProviderLimitScope `json:"scope"`
ResetsAt *string `json:"resets_at,omitzero"`
Models map[string]string `json:"models,omitzero"`
}
Rate limit of a sign in, the whole account until resets_at or only the listed models each until its time
type ProviderLimitScope ¶
type ProviderLimitScope string
func (ProviderLimitScope) Values ¶
func (ProviderLimitScope) Values() []string
type ProviderUsage ¶
type ProviderUsage struct {
Windows []ProviderUsageWindow `json:"windows,omitzero"`
Accounts []ProviderUsageAccount `json:"accounts,omitzero"`
}
Subscription usage of a provider, one gauge for a single account or one row per pooled account
type ProviderUsageAccount ¶
type ProviderUsageAccount struct {
ID string `json:"id"`
Label string `json:"label,omitzero"`
Windows []ProviderUsageWindow `json:"windows,omitzero"`
State ProviderAccountState `json:"state"`
ResetsAt *string `json:"resets_at,omitzero"`
}
One account of a credential pool by a stable non secret id, its usage windows empty while unknown
type ProviderUsageScope ¶
type ProviderUsageScope string
func (ProviderUsageScope) Values ¶
func (ProviderUsageScope) Values() []string
type ProviderUsageWindow ¶
type ProviderUsageWindow struct {
Label string `json:"label"`
UsedPercent float64 `json:"used_percent"`
ResetsAt *string `json:"resets_at,omitzero"`
Scope ProviderUsageScope `json:"scope,omitzero"`
}
One subscription usage window, its spent percent and its ISO rollover, capping the account or one model family
type QueuedPrompt ¶
type QueuedPrompt struct {
User string `json:"user"`
}
type ReactionPayload ¶
type ReactionPayload struct {
Kind string `json:"kind"`
}
Affection the user's message showed
type ReloadEnvParams ¶
type ReloadEnvParams struct {
SessionID string `json:"session_id,omitzero"`
Profile *string `json:"profile,omitzero"`
}
Session the env reload serves, or the launch profile without one
type ReloadEnvResult ¶
type ReloadEnvResult struct {
Updated int64 `json:"updated"`
}
Count of env values the reload changed
type ReloadMCPParams ¶
type ReloadMCPParams struct {
SessionID *string `json:"session_id,omitzero"`
Confirm bool `json:"confirm,omitzero"`
Always bool `json:"always,omitzero"`
Rev *string `json:"rev,omitzero"`
}
MCP reload of the session, confirmed or asked first, always storing the opt out, rev the config revision to load
type ReloadMCPResult ¶
type ReloadMCPResult struct {
Status ReloadMCPStatus `json:"status"`
Message *string `json:"message,omitzero"`
LoadedRev *string `json:"loaded_rev,omitzero"`
Coalesced *bool `json:"coalesced,omitzero"`
Session *ReloadMCPSession `json:"session,omitzero"`
SessionServers []string `json:"session_servers,omitzero"`
}
Outcome of an MCP reload, the servers that did not connect and the servers the session's policy now runs
type ReloadMCPSession ¶
type ReloadMCPSession string
What a reload did to the calling session's MCP servers, applied, nothing to change, or deferred while a turn runs
func (ReloadMCPSession) Values ¶
func (ReloadMCPSession) Values() []string
type ReloadMCPStatus ¶
type ReloadMCPStatus string
Whether a reload ran or waits for the user to confirm it
func (ReloadMCPStatus) Values ¶
func (ReloadMCPStatus) Values() []string
type ReplayCursor ¶
Replay epoch and last sequence a client saw of one session
type Request ¶
type Request[P, R any] struct { // contains filtered or unexported fields }
Question the gateway asks a client, its params P and the answer R
func NewRequest ¶
Declares a server to client request
type RequestCancelPayload ¶
type RequestCancelPayload struct {
ID string `json:"id"`
Method string `json:"method"`
Reason string `json:"reason"`
}
Request the gateway withdrew, its method and why
type ResumePhaseStatus ¶
type ResumePhaseStatus string
func (ResumePhaseStatus) Values ¶
func (ResumePhaseStatus) Values() []string
type RollbackCheckpoint ¶
type RollbackCheckpoint struct {
Hash string `json:"hash"`
Timestamp string `json:"timestamp"`
Message string `json:"message"`
}
One checkpoint with the reason it was taken as its message
type RollbackDiffParams ¶
type RollbackDiffParams struct {
SessionID string `json:"session_id"`
Hash string `json:"hash"`
Profile *string `json:"profile,omitzero"`
}
Checkpoint a diff compares the working tree with
type RollbackDiffResult ¶
type RollbackDiffResult struct {
Stat string `json:"stat"`
Diff string `json:"diff"`
Rendered string `json:"rendered,omitzero"`
}
Diff stat and body cut to four thousand characters, with its rendering sized to the terminal when one renders
type RollbackListParams ¶
type RollbackListParams struct {
SessionID string `json:"session_id"`
Profile *string `json:"profile,omitzero"`
UndoSince *float64 `json:"undo_since,omitzero"`
UndoMessageID *int64 `json:"undo_message_id,omitzero"`
}
Session whose working directory checkpoints are listed, with the start of an undone span and the rewound row when the files that span changed are wanted
type RollbackListResult ¶
type RollbackListResult struct {
Enabled bool `json:"enabled"`
Checkpoints []RollbackCheckpoint `json:"checkpoints"`
UndoHint *UndoRollbackHint `json:"undo_hint,omitzero"`
}
Checkpoints newest first, enabled false when checkpointing is off, and the changed files of an undone span that was asked about
type RollbackRestoreParams ¶
type RollbackRestoreParams struct {
SessionID string `json:"session_id"`
Hash string `json:"hash"`
FilePath string `json:"file_path,omitzero"`
Profile *string `json:"profile,omitzero"`
All *bool `json:"all,omitzero"`
}
Checkpoint by hash or one based number, one file or the whole tree, all also taking files the user edited
type RollbackRestoreResult ¶
type RollbackRestoreResult struct {
Success bool `json:"success"`
RestoredTo string `json:"restored_to,omitzero"`
Reason string `json:"reason,omitzero"`
Directory string `json:"directory,omitzero"`
File string `json:"file,omitzero"`
RestoredFiles []string `json:"restored_files,omitzero"`
SkippedUserEdits []string `json:"skipped_user_edits,omitzero"`
SkippedOversize []string `json:"skipped_oversize,omitzero"`
FailedDeletes []string `json:"failed_deletes,omitzero"`
HistoryRemoved *int64 `json:"history_removed,omitzero"`
Error string `json:"error,omitzero"`
Debug string `json:"debug,omitzero"`
}
Restore outcome, the files restored and skipped, and the turns a whole tree restore rewound
type RollbackSessionDiffParams ¶
type RollbackSessionDiffParams struct {
SessionID string `json:"session_id"`
Profile *string `json:"profile,omitzero"`
}
Session whose whole change since its earliest retained checkpoint is read
type RollbackSessionDiffResult ¶
type RollbackSessionDiffResult struct {
Enabled bool `json:"enabled"`
Success bool `json:"success,omitzero"`
Stat string `json:"stat,omitzero"`
Diff string `json:"diff,omitzero"`
DiffLines int64 `json:"diff_lines,omitzero"`
Empty bool `json:"empty,omitzero"`
Error string `json:"error,omitzero"`
}
Session diff as data, the body cut to one frame by whole lines while diff_lines counts all of it
type Room ¶
type Room struct {
RoomID string `json:"room_id"`
Name string `json:"name"`
Members []RoomMember `json:"members"`
AuthorityGatewayID string `json:"authority_gateway_id"`
AuthorityEpoch int64 `json:"authority_epoch"`
Revision int64 `json:"revision"`
CreatedAt float64 `json:"created_at"`
UpdatedAt float64 `json:"updated_at"`
Idempotent bool `json:"idempotent,omitzero"`
DisbandedAt *float64 `json:"disbanded_at,omitzero"`
LatestSeq *int64 `json:"latest_seq,omitzero"`
Adopted *bool `json:"adopted,omitzero"`
ClaimEvent *RoomEvent `json:"claim_event,omitzero"`
AuthorityClaim *RoomEvent `json:"authority_claim,omitzero"`
Event *RoomEvent `json:"event,omitzero"`
Replica *bool `json:"replica,omitzero"`
Home *string `json:"home,omitzero"`
}
type RoomApproval ¶
type RoomApproval struct {
Command string `json:"command,omitzero"`
Description string `json:"description,omitzero"`
Extra map[string]any `json:"-" wire:"extra"`
}
Approval a member's run waits on, the command or the description it shows
type RoomApproveChoice ¶
type RoomApproveChoice string
func (RoomApproveChoice) Values ¶
func (RoomApproveChoice) Values() []string
type RoomAttachment ¶
type RoomAttachment struct {
AttachmentID string `json:"attachment_id"`
Kind string `json:"kind"`
Name string `json:"name"`
Size int64 `json:"size"`
Mime string `json:"mime"`
Sha256 string `json:"sha256"`
State string `json:"state"`
CreatedAt float64 `json:"created_at"`
Idempotent bool `json:"idempotent"`
EventID *string `json:"event_id,omitzero"`
Extra map[string]any `json:"-" wire:"extra"`
}
type RoomAttachmentBytes ¶
type RoomAttachmentBytes struct {
AttachmentID string `json:"attachment_id"`
Kind string `json:"kind"`
Name string `json:"name"`
Size int64 `json:"size"`
Mime string `json:"mime"`
Sha256 string `json:"sha256"`
State string `json:"state"`
CreatedAt float64 `json:"created_at"`
Idempotent bool `json:"idempotent"`
EventID *string `json:"event_id,omitzero"`
DataBase64 string `json:"data_base64"`
Extra map[string]any `json:"-" wire:"extra"`
}
type RoomAttachmentItem ¶
type RoomAttachmentItem struct {
AttachmentID string `json:"attachment_id"`
Kind string `json:"kind,omitzero"`
Mime string `json:"mime,omitzero"`
Name string `json:"name,omitzero"`
Size int64 `json:"size,omitzero"`
Extra map[string]any `json:"-" wire:"extra"`
}
One file a room message carries, uploaded before the message
type RoomAuthority ¶
type RoomAuthorityPayload ¶
type RoomAuthorityPayload struct {
AuthorityGatewayID string `json:"authority_gateway_id,omitzero"`
}
Payload of an authority.claimed or authority.lost event
type RoomDriverStatus ¶
type RoomDriverStatus struct {
Running bool `json:"running"`
Working bool `json:"working"`
Blocked bool `json:"blocked"`
Counts map[string]int64 `json:"counts"`
PendingActions []RoomPendingAction `json:"pending_actions"`
MemberActivity []RoomMemberActivity `json:"member_activity,omitzero"`
LastError *string `json:"last_error,omitzero"`
MaxContinues *int64 `json:"max_continues,omitzero"`
PeerRoutes []PeerRouteStatus `json:"peer_routes"`
}
type RoomEvent ¶
type RoomEvent struct {
RoomID string `json:"room_id"`
Seq int64 `json:"seq"`
EventID string `json:"event_id"`
Kind string `json:"kind"`
Actor RoomActor `json:"actor"`
AuthorityEpoch *int64 `json:"authority_epoch,omitzero"`
Payload map[string]any `json:"payload"`
CreatedAt float64 `json:"created_at"`
Idempotent bool `json:"idempotent,omitzero"`
}
type RoomExecutionPolicy ¶
type RoomLinkCatalog ¶
type RoomLinkCatalog struct {
InstallationID string `json:"installation_id"`
ProtocolVersions []int64 `json:"protocol_versions"`
LinkModes []string `json:"link_modes"`
PersistentProcess bool `json:"persistent_process"`
Text bool `json:"text"`
Attachments bool `json:"attachments"`
ExecutionPolicy RoomExecutionPolicy `json:"execution_policy"`
CatalogDigest string `json:"catalog_digest"`
Endpoint *RoomLinkEndpoint `json:"endpoint,omitzero"`
}
type RoomLinkEndpoint ¶
type RoomLinkStatus ¶
type RoomLinkStatus struct {
Enabled bool `json:"enabled"`
Profile *string `json:"profile,omitzero"`
Catalog *RoomLinkCatalog `json:"catalog,omitzero"`
Endpoint *RoomLinkEndpoint `json:"endpoint,omitzero"`
Reason *string `json:"reason,omitzero"`
}
type RoomMember ¶
type RoomMember struct {
MemberID string `json:"member_id,omitzero"`
Profile string `json:"profile,omitzero"`
Handle string `json:"handle,omitzero"`
DisplayName string `json:"display_name,omitzero"`
Target *RoomTarget `json:"target,omitzero"`
Extra map[string]any `json:"-" wire:"extra"`
}
One seat of a room roster, older rooms keeping keys of rows written before the roster was normalised
type RoomMemberActivity ¶
type RoomMemberInput ¶
type RoomMemberInput struct {
MemberID string `json:"member_id,omitzero"`
Profile string `json:"profile,omitzero"`
Handle string `json:"handle,omitzero"`
DisplayName string `json:"display_name,omitzero"`
Target *RoomTarget `json:"target,omitzero"`
Extra map[string]any `json:"-" wire:"extra"`
}
Seat a client proposes for a new room, the gateway's roster rules deciding what it accepts
type RoomMessagePayload ¶
type RoomMessagePayload struct {
Text string `json:"text,omitzero"`
ThreadID string `json:"thread_id,omitzero"`
Attachments []RoomAttachmentItem `json:"attachments,omitzero"`
Extra map[string]any `json:"-" wire:"extra"`
}
Payload of a message.user or message.member event, its text, thread and files
type RoomPendingAction ¶
type RoomPendingAction struct {
Kind RoomPendingActionKind `json:"kind"`
MemberID string `json:"member_id"`
TaskID string `json:"task_id"`
ExecutionGeneration int64 `json:"execution_generation,omitzero"`
Reason string `json:"reason,omitzero"`
RequestID string `json:"request_id,omitzero"`
Approval *RoomApproval `json:"approval,omitzero"`
Extra map[string]any `json:"-" wire:"extra"`
}
What waits in a room, an attempt to retry or discard fenced on its generation, or a member's approval An attempt of a member on a peer gateway always shows as retry, a deferred attempt carrying the reason it waits A stalled room preparation shows as retry of the task prepare:<room id>, member_id naming the members not woken
type RoomPendingActionKind ¶
type RoomPendingActionKind string
func (RoomPendingActionKind) Values ¶
func (RoomPendingActionKind) Values() []string
type RoomQueuedError ¶
type RoomRenamedPayload ¶
type RoomRenamedPayload struct {
Name string `json:"name,omitzero"`
}
Payload of a room.renamed event
type RoomShareState ¶
type RoomShareState string
func (RoomShareState) Values ¶
func (RoomShareState) Values() []string
type RoomTarget ¶
type RoomTarget struct {
Kind string `json:"kind,omitzero"`
Peer string `json:"peer,omitzero"`
Profile string `json:"profile,omitzero"`
Extra map[string]any `json:"-" wire:"extra"`
}
Where a seat runs, a peer gateway and the profile it serves for a seat on a peer
type RoomTaskReceipt ¶
type RoomTombstone ¶
type RoomTurnPayload ¶
type RoomTurnPayload struct {
MemberID string `json:"member_id,omitzero"`
Error string `json:"error,omitzero"`
Reason string `json:"reason,omitzero"`
}
Payload of a turn event, the member it ran for, the error of a failed turn and the reason of a deferred or cancelled one
type RuntimeDescribeParams ¶
type RuntimeDescribeParams struct {
}
type RuntimeDescribeResult ¶
type RuntimeDescribeResult struct {
InstanceID string `json:"instance_id"`
ProfileID string `json:"profile_id"`
AuthorityEpoch int64 `json:"authority_epoch"`
Skin *SkinPayloadModel `json:"skin,omitzero"`
Build string `json:"build"`
}
type SecretReference ¶
One environment variable and the 1Password reference it resolves from
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 SecretsBitwarden ¶
type SecretsBitwarden struct {
Enabled bool `json:"enabled,omitzero"`
// Variable holding the access token, and whether it holds one
TokenEnv string `json:"token_env"`
TokenSet bool `json:"token_set,omitzero"`
ProjectID string `json:"project_id,omitzero"`
// Address of another region or of a server of the user's own, empty for the default cloud
ServerURL string `json:"server_url,omitzero"`
// Helper program and its version, empty when it is not installed
Binary string `json:"binary,omitzero"`
Version string `json:"version,omitzero"`
}
How the Bitwarden secret store is set up
type SecretsChangeParams ¶
type SecretsChangeParams struct {
Profile *string `json:"profile,omitzero"`
Source string `json:"source"`
Verb string `json:"verb"`
// New token of a setup or a token change, the stored one kept when empty on a setup
Token string `json:"token,omitzero"`
// Server and project of a Bitwarden setup
ServerURL string `json:"server_url,omitzero"`
ProjectID string `json:"project_id,omitzero"`
// Account, token variable and path of the op program of a 1Password setup, each kept as it is when empty
Account string `json:"account,omitzero"`
TokenEnv string `json:"token_env,omitzero"`
BinaryPath string `json:"binary_path,omitzero"`
// Environment variable a map binds to the reference, or an unmap frees
Env string `json:"env,omitzero"`
Reference string `json:"reference,omitzero"`
}
One change to a secret store, bitwarden or onepassword: setup, token, off, check, and for 1Password map and unmap
type SecretsChangeResult ¶
type SecretsChangeResult struct {
State SecretsStateResult `json:"state"`
// What the next start would do with each secret, from a setup or a check
Rows []SecretsPreviewRow `json:"rows,omitzero"`
Warnings []string `json:"warnings,omitzero"`
// Who 1Password signs in as after a setup or a token change, empty when it is not signed in
Identity string `json:"identity,omitzero"`
// How many projects a new Bitwarden token sees
Projects int64 `json:"projects,omitzero"`
}
The stores after a change, with what a setup or a check found
type SecretsOnePassword ¶
type SecretsOnePassword struct {
Enabled bool `json:"enabled,omitzero"`
// Variable holding a service account token, and whether it holds one
TokenEnv string `json:"token_env"`
TokenSet bool `json:"token_set,omitzero"`
Account string `json:"account,omitzero"`
// The op program and its version, empty when it is not installed
Binary string `json:"binary,omitzero"`
Version string `json:"version,omitzero"`
References []SecretReference `json:"references"`
}
How the 1Password secret store is set up
type SecretsPreviewRow ¶
What the next start would do with one name a store hands over: export, override, skip_set, skip_token or unresolved
type SecretsProject ¶
One Bitwarden project an access token sees
type SecretsProjectsParams ¶
type SecretsProjectsParams struct {
Profile *string `json:"profile,omitzero"`
Token string `json:"token,omitzero"`
ServerURL string `json:"server_url,omitzero"`
}
Access token and server whose Bitwarden projects to list, the stored token when none is given
type SecretsProjectsResult ¶
type SecretsProjectsResult struct {
Projects []SecretsProject `json:"projects"`
}
type SecretsStateParams ¶
type SecretsStateParams struct {
Profile *string `json:"profile,omitzero"`
}
type SecretsStateResult ¶
type SecretsStateResult struct {
Bitwarden SecretsBitwarden `json:"bitwarden"`
OnePassword SecretsOnePassword `json:"onepassword"`
}
Both secret stores of the profile
type SeedMessage ¶
type SessionAccountUsage ¶
type SessionAccountUsage struct {
Lines []string `json:"lines"`
}
Account limit lines of the provider a session runs on, empty when the provider reports none
type SessionAccountUsageParams ¶
type SessionAccountUsageParams struct {
SessionID string `json:"session_id"`
}
Session whose provider account limits are read
type SessionActiveItem ¶
type SessionActiveItem struct {
Current bool `json:"current"`
ID string `json:"id"`
LastActive float64 `json:"last_active"`
MessageCount int64 `json:"message_count"`
Model string `json:"model"`
Preview string `json:"preview"`
SessionKey string `json:"session_key"`
Source *string `json:"source,omitzero"`
StartedAt float64 `json:"started_at"`
Status LiveSessionStatus `json:"status"`
Title string `json:"title"`
}
type SessionActiveListParams ¶
type SessionActiveListResult ¶
type SessionActiveListResult struct {
Sessions []SessionActiveItem `json:"sessions"`
}
type SessionAutomationParams ¶
type SessionAutomationParamsKind ¶
type SessionAutomationParamsKind string
func (SessionAutomationParamsKind) Values ¶
func (SessionAutomationParamsKind) Values() []string
type SessionAutomationResult ¶
type SessionContextBreakdownResult ¶
type SessionContextBreakdownResult struct {
Categories []ContextCategory `json:"categories"`
ContextMax int64 `json:"context_max"`
ContextPercent int64 `json:"context_percent"`
ContextUsed int64 `json:"context_used"`
EstimatedTotal int64 `json:"estimated_total"`
ContextEstimated bool `json:"context_estimated"`
ContextSource string `json:"context_source"`
Model string `json:"model"`
ContextFiles []ContextFileSource `json:"context_files,omitzero"`
}
type SessionControlReadResult ¶
type SessionControlReadResult struct {
Control SessionControlSnapshot `json:"control"`
}
type SessionControlSnapshot ¶
type SessionControlSnapshot struct {
Goal *GoalSnapshot `json:"goal"`
Loop *LoopSnapshot `json:"loop"`
Heartbeat *HeartbeatSnapshot `json:"heartbeat"`
Revision string `json:"revision"`
UpdatedAt float64 `json:"updated_at"`
}
type SessionControlUpdatePayload ¶
type SessionControlUpdatePayload struct {
Control SessionControlSnapshot `json:"control"`
}
type SessionCorrectionParams ¶
type SessionCorrectionParams struct {
SessionID string `json:"session_id"`
Profile *string `json:"profile,omitzero"`
Text string `json:"text"`
}
Correction text for the running turn on the method table route
type SessionCorrectionResult ¶
type SessionCorrectionResult struct {
Status CorrectionStatus `json:"status"`
Text string `json:"text"`
}
Verdict of a method table correction with the text it was given
type 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"`
// Session whose login choices, every provider's pin and exhaustion reaction, the new session starts with
LoginsFrom *string `json:"logins_from,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 SessionDetachParams ¶
type SessionDetachResult ¶
type SessionExportParams ¶
type SessionExportResult ¶
type SessionHistoryParams ¶
type SessionHistoryResult ¶
type SessionHistoryResult struct {
Count int64 `json:"count"`
Messages []TranscriptMessage `json:"messages"`
}
type SessionIDParams ¶
type SessionIDParams struct {
SessionID string `json:"session_id"`
Profile *string `json:"profile,omitzero"`
}
Params of a method addressed at one live session
type SessionInfo ¶
type SessionInfo struct {
Model *string `json:"model,omitzero"`
Provider *string `json:"provider,omitzero"`
ReasoningEffort *string `json:"reasoning_effort,omitzero"`
ReasoningEffortWire *string `json:"reasoning_effort_wire,omitzero"`
ServiceTier *string `json:"service_tier,omitzero"`
Fast *bool `json:"fast,omitzero"`
Yolo *bool `json:"yolo,omitzero"`
ApprovalMode *string `json:"approval_mode,omitzero"`
Tools map[string][]string `json:"tools,omitzero"`
Skills map[string][]string `json:"skills,omitzero"`
Cwd *string `json:"cwd,omitzero"`
Branch *string `json:"branch,omitzero"`
Project *ProjectRef `json:"project,omitzero"`
TerminalBackend *string `json:"terminal_backend,omitzero"`
Personality *string `json:"personality,omitzero"`
Running *bool `json:"running,omitzero"`
TurnStartedAt *float64 `json:"turn_started_at,omitzero"`
Title *string `json:"title,omitzero"`
StoredSessionID *string `json:"stored_session_id,omitzero"`
Version *string `json:"version,omitzero"`
ReleaseDate *string `json:"release_date,omitzero"`
UpdateBehind any `json:"update_behind,omitzero"`
UpdateCommand *string `json:"update_command,omitzero"`
Usage *Usage `json:"usage,omitzero"`
ProfileName *string `json:"profile_name,omitzero"`
ProfileID *string `json:"profile_id,omitzero"`
RedactSecrets *bool `json:"redact_secrets,omitzero"`
MCPServers []McpServerStatus `json:"mcp_servers,omitzero"`
SystemPrompt *string `json:"system_prompt,omitzero"`
CredentialWarning *string `json:"credential_warning,omitzero"`
Login *SessionLogin `json:"login,omitzero"`
PoolKey *string `json:"pool_key,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"`
LaunchOptions *SessionLaunchOptions `json:"launch_options,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 SessionLaunchOptions ¶
type SessionLaunchOptions struct {
Checkpoints bool `json:"checkpoints"`
PassSessionID bool `json:"pass_session_id"`
IgnoreRules bool `json:"ignore_rules"`
SafeMode bool `json:"safe_mode"`
IgnoreUserConfig bool `json:"ignore_user_config"`
// Most tool calls of one request, absent for no limit
MaxTurns *int64 `json:"max_turns,omitzero"`
// Seconds one run may take, absent for no limit
RunBudget *float64 `json:"run_budget,omitzero"`
// Skills the launch wrote into the system prompt
Skills []string `json:"skills,omitzero"`
// Model endpoint the session calls, absent when its provider sets none
BaseURL *string `json:"base_url,omitzero"`
}
How a session runs as its launch options left it, the values its next turn reads
type SessionListParams ¶
type SessionListResult ¶
type SessionListResult struct {
Sessions []SessionListRow `json:"sessions"`
}
type SessionListRow ¶
type SessionListRow struct {
ID string `json:"id"`
ResolvedID *string `json:"resolved_id,omitzero"`
Title string `json:"title,omitzero"`
Preview string `json:"preview,omitzero"`
StartedAt float64 `json:"started_at,omitzero"`
MessageCount int64 `json:"message_count,omitzero"`
LiveMessageCount *int64 `json:"live_message_count,omitzero"`
Source string `json:"source,omitzero"`
}
type SessionLogin ¶
type SessionLogin struct {
// Pool key of the session's current route
Provider string `json:"provider"`
Slug string `json:"slug"`
ID string `json:"id,omitzero"`
Name string `json:"name,omitzero"`
Scope LoginScope `json:"scope"`
Rotate bool `json:"rotate,omitzero"`
// Session pin that names a login the provider no longer holds
Missing string `json:"missing,omitzero"`
// rotate when the session set its own reaction to an exhausted login, else the profile's
OnExhausted string `json:"on_exhausted,omitzero"`
}
Login a session's requests go out with, for the status bar's via <login>
type SessionLoginWaitParams ¶
type SessionLoginWaitParams struct {
SessionID string `json:"session_id"`
// Pool key or provider slug, the session's current provider when omitted
Provider string `json:"provider,omitzero"`
// Retries the last turn at once instead of at the reset time
Now bool `json:"now,omitzero"`
// Drops an armed wait
Cancel bool `json:"cancel,omitzero"`
}
type SessionLoginWaitResult ¶
type SessionLoginWaitResult struct {
SessionID string `json:"session_id"`
Provider string `json:"provider"`
Login *LoginRef `json:"login,omitzero"`
State LoginWaitState `json:"state"`
RetryAt *string `json:"retry_at,omitzero"`
}
type SessionMostRecentParams ¶
type SessionMostRecentParams struct {
Profile *string `json:"profile,omitzero"`
}
type SessionMostRecentResult ¶
type SessionMutateParams ¶
type SessionMutateResult ¶
type SessionMutateResult struct {
SessionID string `json:"session_id,omitzero"`
Operation string `json:"operation"`
Revision *int64 `json:"revision,omitzero"`
ExecutionGeneration *int64 `json:"execution_generation,omitzero"`
Status *string `json:"status,omitzero"`
Title *string `json:"title,omitzero"`
Archived *bool `json:"archived,omitzero"`
BranchedSessionID *string `json:"branched_session_id,omitzero"`
Model *string `json:"model,omitzero"`
Provider *string `json:"provider,omitzero"`
Effort *string `json:"effort,omitzero"`
Note *string `json:"note,omitzero"`
Confirm *string `json:"confirm,omitzero"`
ConfirmMessage *string `json:"confirm_message,omitzero"`
TargetModel *string `json:"target_model,omitzero"`
Reason *string `json:"reason,omitzero"`
Payload *ModelPick `json:"payload,omitzero"`
CommittedModel *string `json:"committed_model,omitzero"`
CommittedProvider *string `json:"committed_provider,omitzero"`
RewoundCount *int64 `json:"rewound_count,omitzero"`
TargetMessage *TranscriptMessage `json:"target_message,omitzero"`
Summary *CompressionSummary `json:"summary,omitzero"`
Lines []string `json:"lines,omitzero"`
Extra map[string]any `json:"-" wire:"extra"`
}
type SessionOwner ¶
type SessionOwner struct {
Type SessionOwnerType `json:"type"`
SessionID string `json:"session_id"`
}
Session that owns a connection operation
type SessionOwnerType ¶
type SessionOwnerType string
Kind of owner a connection verb names
func (SessionOwnerType) Values ¶
func (SessionOwnerType) Values() []string
type SessionPruneParams ¶
type SessionPruneResult ¶
type SessionReclaimedPayload ¶
type SessionReplayGapPayload ¶
type SessionReplayGapPayload struct {
ReplayEpoch string `json:"replay_epoch"`
LatestSeq int64 `json:"latest_seq"`
}
Replay buffer of a session overflowed, the client resumes to catch up
type SessionResumeParams ¶
type SessionResumeParams struct {
SessionID string `json:"session_id"`
Profile *string `json:"profile,omitzero"`
Cols *int64 `json:"cols,omitzero"`
Source *string `json:"source,omitzero"`
Lazy bool `json:"lazy,omitzero"`
DeferHistory bool `json:"defer_history,omitzero"`
OmitMessages bool `json:"omit_messages,omitzero"`
EagerBuild bool `json:"eager_build,omitzero"`
CloseOnDisconnect bool `json:"close_on_disconnect,omitzero"`
InlineImages *bool `json:"inline_images,omitzero"`
}
type SessionResumeProgressPayload ¶
type SessionResumeProgressPayload struct {
Phase string `json:"phase"`
Status ResumePhaseStatus `json:"status"`
MessageCount *int64 `json:"message_count,omitzero"`
Message *string `json:"message,omitzero"`
}
type SessionResumeResult ¶
type SessionResumeResult struct {
SessionID string `json:"session_id"`
MessageCount int64 `json:"message_count"`
Messages []TranscriptMessage `json:"messages"`
Info SessionInfo `json:"info"`
StoredSessionID *string `json:"stored_session_id,omitzero"`
Resumed *string `json:"resumed,omitzero"`
SessionKey *string `json:"session_key,omitzero"`
MessagesOmitted *bool `json:"messages_omitted,omitzero"`
Hydrating *bool `json:"hydrating,omitzero"`
Running *bool `json:"running,omitzero"`
TurnStartedAt *float64 `json:"turn_started_at,omitzero"`
StartedAt *float64 `json:"started_at,omitzero"`
Status *string `json:"status,omitzero"`
Inflight *InflightTurn `json:"inflight,omitzero"`
Queued *QueuedPrompt `json:"queued,omitzero"`
PendingApproval *PendingApproval `json:"pending_approval,omitzero"`
OpenRequests []OpenRequestEntry `json:"open_requests,omitzero"`
PendingConnection *ConnectionRequestPayload `json:"pending_connection,omitzero"`
TodoState *TodoState `json:"todo_state,omitzero"`
AutoContinue *AutoContinue `json:"auto_continue,omitzero"`
}
type SessionRevisionParams ¶
type SessionRevisionParams struct {
SessionID string `json:"session_id"`
}
type SessionRevisionResult ¶
type SessionRevisionResult struct {
SessionID string `json:"session_id"`
Revision int64 `json:"revision"`
ExecutionGeneration int64 `json:"execution_generation"`
Running bool `json:"running"`
AuthorityEpoch int64 `json:"authority_epoch"`
}
Fences of a session read without attaching to it
type SessionSaveParams ¶
type SessionSaveResult ¶
type SessionSaveResult struct {
File *string `json:"file,omitzero"`
}
type SessionScopedParams ¶
type SessionScopedParams struct {
SessionID *string `json:"session_id,omitzero"`
}
Session a request or method is scoped to, the launch profile's config when absent or unknown
type SessionSetLoginParams ¶
type SessionSetLoginParams struct {
SessionID string `json:"session_id"`
// Pool key or provider slug of the login, the session's current provider when omitted
Provider string `json:"provider,omitzero"`
// Login id or name, @rotate, or empty to follow the profile default again; omitted keeps the pin
Login *string `json:"login,omitzero"`
// rotate or fail for this session only, empty to follow logins.<p>.on_exhausted again; omitted keeps it
OnExhausted *string `json:"on_exhausted,omitzero"`
// Re-runs the session's last turn once the choice is stored
Retry bool `json:"retry,omitzero"`
}
type SessionSetLoginResult ¶
type SessionSetLoginResult struct {
SessionID string `json:"session_id"`
// Pool key the choice is stored under
Provider string `json:"provider"`
Slug string `json:"slug"`
Login *LoginRow `json:"login,omitzero"`
Rotate bool `json:"rotate,omitzero"`
Cleared bool `json:"cleared,omitzero"`
// The session's own on_exhausted for the provider, absent when it follows the profile
OnExhausted string `json:"on_exhausted,omitzero"`
// The choice is for the session's current provider and applies from its next turn; false keeps it for a later switch
Current bool `json:"current"`
// What session.info.login says now
SessionLogin *SessionLogin `json:"session_login,omitzero"`
Retried bool `json:"retried,omitzero"`
// Why the choice could not take effect at once, the choice itself kept
Warning string `json:"warning,omitzero"`
}
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 SessionTitlePayload ¶
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 SettingsChoice ¶
type SettingsChoice struct {
Value string `json:"value"`
Label string `json:"label"`
Meaning string `json:"meaning,omitzero"`
}
One allowed value of a choice setting with what it means
type SettingsGroup ¶
type SettingsGroup struct {
ID string `json:"id"`
Label string `json:"label"`
Short string `json:"short"`
Order int64 `json:"order"`
// Shown only once the advanced settings are opened
AdvancedOnly bool `json:"advanced_only,omitzero"`
}
One group of the settings screen in the order it is shown
type SettingsGroupsParams ¶
type SettingsGroupsParams struct {
SessionID *string `json:"session_id,omitzero"`
Profile *string `json:"profile,omitzero"`
}
Groups of the settings screen
type SettingsGroupsResult ¶
type SettingsGroupsResult struct {
Groups []SettingsGroup `json:"groups"`
}
type SettingsListParams ¶
type SettingsListParams struct {
SessionID *string `json:"session_id,omitzero"`
Profile *string `json:"profile,omitzero"`
Group *string `json:"group,omitzero"`
Prefix *string `json:"prefix,omitzero"`
Search *string `json:"search,omitzero"`
Keys []string `json:"keys,omitzero"`
Advanced *bool `json:"advanced,omitzero"`
}
Settings a query selects, with the session's own values when a session is named
type SettingsListResult ¶
type SettingsListResult struct {
Rows []SettingsRow `json:"rows"`
}
type SettingsResetParams ¶
type SettingsResetParams struct {
SessionID *string `json:"session_id,omitzero"`
Profile *string `json:"profile,omitzero"`
Key string `json:"key"`
Scope *string `json:"scope,omitzero"`
}
Takes away the value one scope holds so the next layer applies
type SettingsRow ¶
type SettingsRow struct {
Key string `json:"key"`
Label string `json:"label"`
Short string `json:"short"`
Help string `json:"help,omitzero"`
Group string `json:"group"`
Order int64 `json:"order"`
Kind string `json:"kind"`
Default any `json:"default"`
Null string `json:"null,omitzero"`
Choices []SettingsChoice `json:"choices,omitzero"`
// Whether values outside the choices are taken too
Open bool `json:"open,omitzero"`
Min *float64 `json:"min,omitzero"`
Max *float64 `json:"max,omitzero"`
Unit string `json:"unit,omitzero"`
// Where the setting may be written: global, workspace or session
Scopes []string `json:"scopes"`
// When a change takes effect: live, next_turn, new_session or restart
Apply string `json:"apply"`
Advanced bool `json:"advanced,omitzero"`
// Slash shortcut that changes the setting, without the slash
Slash string `json:"slash,omitzero"`
// Environment variable that overrides the setting
Env string `json:"env,omitzero"`
Value any `json:"value"`
// Layer the value comes from: default, global, session, env or managed
Source string `json:"source"`
// Whether a managed install locks the setting
Locked bool `json:"locked,omitzero"`
// Value the session layer holds when the rows were read for a session
Session any `json:"session,omitzero"`
}
One setting as the settings screen shows it, its description, kind, value in effect and where that value comes from
type SettingsSetParams ¶
type SettingsSetParams struct {
SessionID *string `json:"session_id,omitzero"`
Profile *string `json:"profile,omitzero"`
Key string `json:"key"`
Value any `json:"value"`
Scope *string `json:"scope,omitzero"`
}
Writes one setting at a scope, the profile when none is named
type SettingsWriteResult ¶
type SettingsWriteResult struct {
Row SettingsRow `json:"row"`
Apply string `json:"apply"`
}
Setting as it stands after a write and when the change takes effect
type SetupAction ¶
type SetupAction string
Side effect a setup form starts on the background service
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"`
}
Job to follow, the lines already shown and the line redrawn in place last shown
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"`
}
Action to start and the words it takes, such as the server a connection test reaches
type SetupActionStartResult ¶
type SetupActionStartResult struct {
Job string `json:"job"`
}
Job that follows the action
type SetupFactsParams ¶
type SetupFactsParams struct {
Names []string `json:"names"`
}
Facts a setup form reads before it asks: env:NAME, extra:NAME, module:NAME, binary:NAME, xai.oauth
type SetupFactsResult ¶
Whether each fact holds, by name
type SetupKey ¶
type SetupKey struct {
Name string `json:"name"`
Label string `json:"label"`
Help string `json:"help,omitzero"`
URL string `json:"url,omitzero"`
// Whether the key holds a value
Set bool `json:"set"`
Secret bool `json:"secret"`
// provider, tool, skill, messaging or setting
Category string `json:"category"`
// Chat app the key belongs to, empty for a key of no one app
App string `json:"app,omitzero"`
Tools []string `json:"tools,omitzero"`
Required bool `json:"required,omitzero"`
Advanced bool `json:"advanced,omitzero"`
}
One key kept in the home's .env, never its value
type SetupKeysParams ¶
type SetupKeysParams struct {
Names []string `json:"names,omitzero"`
// provider, tool, skill, messaging or setting
Category string `json:"category,omitzero"`
// Only the keys that hold no value yet
Missing bool `json:"missing,omitzero"`
// The keys hidden from setup too
Advanced bool `json:"advanced,omitzero"`
}
Keys kept in the home's .env a setup form asks for: the names wanted, or every key of a category
type SetupKeysResult ¶
type SetupKeysResult struct {
Keys []SetupKey `json:"keys"`
}
Keys in the order the catalog lists them
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 SetupSaveKeyParams ¶
Value of a key of the catalog to keep in the home's .env, an empty value taking it out
type SetupSaveKeyResult ¶
type SetupSaveKeyResult struct {
Key SetupKey `json:"key"`
}
The key after the write
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 SetupToolset ¶
type SetupToolset struct {
Name string `json:"name"`
Label string `json:"label"`
Detail string `json:"detail,omitzero"`
On bool `json:"on"`
// Whether the keys the group needs are there
Ready bool `json:"ready"`
// Keys of the home's .env that unlock the group's tools
Keys []string `json:"keys,omitzero"`
}
One tool group a person may turn on or off
type SetupToolsetsParams ¶
type SetupToolsetsParams struct {
Platform string `json:"platform,omitzero"`
}
Platform whose tool groups the setup form lists, the terminal when empty
type SetupToolsetsResult ¶
type SetupToolsetsResult struct {
Toolsets []SetupToolset `json:"toolsets"`
}
Tool groups in the order the catalog lists them
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 SkillBundleRow ¶
type SkillBundleRow struct {
Name string `json:"name"`
Description string `json:"description,omitzero"`
Instruction string `json:"instruction,omitzero"`
Skills []string `json:"skills"`
Path string `json:"path,omitzero"`
}
One skill bundle, several skills loaded under one slash command
type SkillCatalogEntry ¶
How often a skill ran and where it came from
type SkillCommandRef ¶
type SkillHubHit ¶
type SkillHubRow ¶
type SkillHubRow struct {
Name string `json:"name"`
Category string `json:"category,omitzero"`
Description string `json:"description,omitzero"`
// hub, builtin or local
Source string `json:"source"`
// Registry a hub skill came from
Origin string `json:"origin,omitzero"`
Trust string `json:"trust,omitzero"`
// Whether the agent may use it, the profile's disabled list leaving it out
Enabled bool `json:"enabled"`
// Always loaded, never disabled
Essential bool `json:"essential,omitzero"`
}
One installed skill as the skills screen lists it
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 SkillTapRow ¶
One extra source the skill hub searches beside the default ones
type SkillsAction ¶
type SkillsAction string
func (SkillsAction) Values ¶
func (SkillsAction) Values() []string
type SkillsBundleNameParams ¶
type SkillsBundleNameParams struct {
Profile *string `json:"profile,omitzero"`
Name string `json:"name"`
}
Bundle a removal names
type SkillsBundleReloadResult ¶
type SkillsBundleReloadResult struct {
Added []string `json:"added"`
Removed []string `json:"removed"`
Total int64 `json:"total"`
}
Bundles a rescan found added and removed
type SkillsBundleResult ¶
type SkillsBundleResult struct {
Path string `json:"path"`
}
Bundle file a write or removal touched
type SkillsBundleSaveParams ¶
type SkillsBundleSaveParams struct {
Profile *string `json:"profile,omitzero"`
Name string `json:"name"`
Skills []string `json:"skills"`
Description string `json:"description,omitzero"`
Instruction string `json:"instruction,omitzero"`
Force bool `json:"force,omitzero"`
}
Bundle to write, replacing one of the same name only when force is set
type SkillsHubParams ¶
type SkillsHubParams struct {
Profile *string `json:"profile,omitzero"`
}
Profile whose skills the screen reads
type SkillsHubResult ¶
type SkillsHubResult struct {
Skills []SkillHubRow `json:"skills"`
Taps []SkillTapRow `json:"taps"`
Bundles []SkillBundleRow `json:"bundles"`
// Project folders whose own skills load
Trusted []string `json:"trusted"`
// Whether bundled skills stopped being copied into this profile
OptedOut bool `json:"opted_out,omitzero"`
}
Everything the skills screens list: installed skills, extra sources, bundles and trusted projects
type SkillsHubRunParams ¶
type SkillsHubRunParams struct {
Profile *string `json:"profile,omitzero"`
// install, check, update, audit, uninstall, reset, list-modified, diff, opt-out, opt-in, repair-official, publish,
// snapshot-export, snapshot-import, tap-add, tap-remove, trust, untrust
Action string `json:"action"`
Name string `json:"name,omitzero"`
Identifier string `json:"identifier,omitzero"`
Category string `json:"category,omitzero"`
Repo string `json:"repo,omitzero"`
Path string `json:"path,omitzero"`
To string `json:"to,omitzero"`
Force bool `json:"force,omitzero"`
Restore bool `json:"restore,omitzero"`
Sync bool `json:"sync,omitzero"`
Remove bool `json:"remove,omitzero"`
Deep bool `json:"deep,omitzero"`
}
One skills command run without questions, the verb and the arguments it reads
type SkillsHubRunResult ¶
What a skills command printed and whether it reported success
type SkillsManageParams ¶
type SkillsManageParams struct {
Profile *string `json:"profile,omitzero"`
Action SkillsAction `json:"action,omitzero"`
Query string `json:"query,omitzero"`
Page int64 `json:"page,omitzero"`
PageSize int64 `json:"page_size,omitzero"`
}
Hub action, query the search text or hub identifier, page and page size for browse
type SkillsManageResult ¶
type SkillsManageResult struct {
Skills map[string][]string `json:"skills,omitzero"`
Results []SkillHubHit `json:"results,omitzero"`
Installed bool `json:"installed,omitzero"`
Name string `json:"name,omitzero"`
Items []SkillBrowseItem `json:"items,omitzero"`
Page int64 `json:"page,omitzero"`
TotalPages int64 `json:"total_pages,omitzero"`
Total int64 `json:"total,omitzero"`
Info *SkillInspectInfo `json:"info,omitzero"`
}
Answer of a hub action, skills for list, results for search, installed and name, a browse page, info for inspect
type SkillsReloadDiff ¶
type SkillsReloadDiff struct {
Added []SkillCommandRef `json:"added"`
Removed []SkillCommandRef `json:"removed"`
Unchanged []string `json:"unchanged"`
Total int64 `json:"total"`
Commands int64 `json:"commands"`
}
Skill commands a rescan added and removed, the unchanged names and the totals
type SkillsReloadParams ¶
type SkillsReloadParams struct {
SessionID string `json:"session_id,omitzero"`
Profile *string `json:"profile,omitzero"`
}
Session whose profile and workspace the rescan binds to, or a profile for a session less rescan
type SkillsReloadResult ¶
type SkillsReloadResult struct {
Output string `json:"output"`
Result SkillsReloadDiff `json:"result"`
}
Rescan answer, output the text the reload command prints
type SkinPayloadModel ¶
type SkinPayloadModel struct {
Name string `json:"name,omitzero"`
// builtin for a skin icebath ships unmodified, user for one read from the home skins folder
Source string `json:"source,omitzero"`
Description string `json:"description,omitzero"`
Colors map[string]string `json:"colors,omitzero"`
LightColors map[string]string `json:"light_colors,omitzero"`
DarkColors map[string]string `json:"dark_colors,omitzero"`
Branding map[string]string `json:"branding,omitzero"`
BannerLogo string `json:"banner_logo,omitzero"`
BannerHero string `json:"banner_hero,omitzero"`
ToolPrefix string `json:"tool_prefix,omitzero"`
HelpHeader string `json:"help_header,omitzero"`
}
type SlashExecParams ¶
type SlashExecParams struct {
SessionID string `json:"session_id"`
Command string `json:"command"`
Profile *string `json:"profile,omitzero"`
}
Slash line of a session without its leading slash
type SlashExecResult ¶
type SlashExecResult struct {
Output string `json:"output,omitzero"`
Type DispatchType `json:"type,omitzero"`
Target string `json:"target,omitzero"`
Message string `json:"message,omitzero"`
Notice string `json:"notice,omitzero"`
Display string `json:"display,omitzero"`
Name string `json:"name,omitzero"`
}
Live or plugin text, or the directive of a command rerouted to command.dispatch with its type set
func (SlashExecResult) Directive ¶
func (r SlashExecResult) Directive() (CommandDispatchResult, bool)
Directive of a slash answer, false when it carries plain output
type SnapshotArgsParams ¶
type SnapshotArgsParams struct {
Args []string `json:"args,omitzero"`
}
Words after the /snapshot subcommand
type SnapshotLines ¶
type SnapshotLines struct {
Lines []string `json:"lines"`
}
Lines in the profile's language, shown as they come
type SnapshotListParams ¶
type SnapshotListParams struct{}
type SnapshotTargetResult ¶
Snapshot a restore names by id or list number, null with lines when none is named or the number is off
type SpawnTreeEntry ¶
type SpawnTreeListParams ¶
type SpawnTreeListResult ¶
type SpawnTreeListResult struct {
Entries []SpawnTreeEntry `json:"entries"`
}
type SpawnTreeLoadParams ¶
type SpawnTreeLoadResult ¶
type SpawnTreeLoadResult struct {
SessionID *string `json:"session_id,omitzero"`
StartedAt *float64 `json:"started_at,omitzero"`
FinishedAt *float64 `json:"finished_at,omitzero"`
Label *string `json:"label,omitzero"`
Subagents []SpawnTreeSubagent `json:"subagents,omitzero"`
}
type SpawnTreeOutput ¶
type SpawnTreeOutput struct {
IsError bool `json:"isError"`
Preview string `json:"preview"`
Tool string `json:"tool"`
}
One tool result of a saved subagent's output tail
type SpawnTreeSaveParams ¶
type SpawnTreeSaveParams struct {
Profile *string `json:"profile,omitzero"`
Subagents []SpawnTreeSubagent `json:"subagents"`
SessionID *string `json:"session_id,omitzero"`
StartedAt *float64 `json:"started_at,omitzero"`
FinishedAt *float64 `json:"finished_at,omitzero"`
Label *string `json:"label,omitzero"`
}
type SpawnTreeSaveResult ¶
type SpawnTreeSubagent ¶
type SpawnTreeSubagent struct {
ID string `json:"id"`
Goal string `json:"goal"`
Status SubagentStatus `json:"status"`
Depth float64 `json:"depth"`
Index float64 `json:"index"`
TaskCount float64 `json:"taskCount"`
ToolCount float64 `json:"toolCount"`
ParentID *string `json:"parentId,omitzero"`
Notes []string `json:"notes"`
Thinking []string `json:"thinking"`
Tools []string `json:"tools"`
APICalls *float64 `json:"apiCalls,omitzero"`
CostUSD *float64 `json:"costUsd,omitzero"`
DurationSeconds *float64 `json:"durationSeconds,omitzero"`
InputTokens *float64 `json:"inputTokens,omitzero"`
Iteration *float64 `json:"iteration,omitzero"`
OutputTokens *float64 `json:"outputTokens,omitzero"`
ReasoningTokens *float64 `json:"reasoningTokens,omitzero"`
StartedAt *float64 `json:"startedAt,omitzero"`
DelegationID string `json:"delegationId,omitzero"`
Model string `json:"model,omitzero"`
Summary string `json:"summary,omitzero"`
FilesRead []string `json:"filesRead,omitzero"`
FilesWritten []string `json:"filesWritten,omitzero"`
Toolsets []string `json:"toolsets,omitzero"`
OutputTail []SpawnTreeOutput `json:"outputTail,omitzero"`
}
One subagent of a saved spawn tree as the terminal UI writes it, its numbers as earlier builds stored them
type StatusBarPlace ¶
type StatusBarPlace string
func (StatusBarPlace) Values ¶
func (StatusBarPlace) Values() []string
type StatusUpdatePayload ¶
Transient status line and its kind, status, lifecycle, compacting, goal, loop, heartbeat or process
type SteerStatus ¶
type SteerStatus string
Whether a steer reached the child's queue, queued is not delivered
func (SteerStatus) Values ¶
func (SteerStatus) Values() []string
type StreamDeltaPayload ¶
type StreamDeltaPayload struct {
Text string `json:"text"`
Rendered *string `json:"rendered,omitzero"`
Verbose *bool `json:"verbose,omitzero"`
}
Reasoning or thinking text, verbose when the session shows verbose reasoning
type SubagentEventPayload ¶
type SubagentEventPayload struct {
Goal string `json:"goal"`
TaskCount int64 `json:"task_count"`
TaskIndex int64 `json:"task_index"`
SubagentID *string `json:"subagent_id,omitzero"`
ParentID *string `json:"parent_id,omitzero"`
ChildSessionID *string `json:"child_session_id,omitzero"`
DelegationID *string `json:"delegation_id,omitzero"`
Depth *int64 `json:"depth,omitzero"`
Model *string `json:"model,omitzero"`
ToolCount *int64 `json:"tool_count,omitzero"`
Toolsets []string `json:"toolsets,omitzero"`
InputTokens *int64 `json:"input_tokens,omitzero"`
OutputTokens *int64 `json:"output_tokens,omitzero"`
ReasoningTokens *int64 `json:"reasoning_tokens,omitzero"`
APICalls *int64 `json:"api_calls,omitzero"`
CostUSD *float64 `json:"cost_usd,omitzero"`
FilesRead []string `json:"files_read,omitzero"`
FilesWritten []string `json:"files_written,omitzero"`
OutputTail []SubagentOutputTailEntry `json:"output_tail,omitzero"`
ToolName *string `json:"tool_name,omitzero"`
Text *string `json:"text,omitzero"`
Status *SubagentStatus `json:"status,omitzero"`
Summary *string `json:"summary,omitzero"`
DurationSeconds *float64 `json:"duration_seconds,omitzero"`
ToolPreview *string `json:"tool_preview,omitzero"`
}
Every subagent frame, the identity fields absent from emitters that do not know them
type SubagentIDParams ¶
type SubagentInterruptResult ¶
type SubagentInterruptResult struct {
Found bool `json:"found"`
SubagentID string `json:"subagent_id"`
}
Whether an owned child was still running to interrupt
type SubagentListResult ¶
type SubagentListResult struct {
Subagents []SubagentSnapshot `json:"subagents"`
Delegations []FailedDelegation `json:"delegations"`
}
Owned live children and the session's recently failed delegations, newest first
type SubagentOutputTailEntry ¶
type SubagentOutputTailEntry struct {
Tool string `json:"tool"`
Preview string `json:"preview"`
IsError bool `json:"is_error"`
}
One tool result of a finished child's output tail
type SubagentSnapshot ¶
type SubagentSnapshot struct {
SubagentID string `json:"subagent_id"`
ParentID *string `json:"parent_id,omitzero"`
Depth *int64 `json:"depth,omitzero"`
Goal *string `json:"goal,omitzero"`
DelegationID *string `json:"delegation_id,omitzero"`
Model *string `json:"model,omitzero"`
StartedAt *float64 `json:"started_at,omitzero"`
Status *SubagentStatus `json:"status,omitzero"`
ToolCount *int64 `json:"tool_count,omitzero"`
LastTool *string `json:"last_tool,omitzero"`
AcceptingSteer *bool `json:"accepting_steer,omitzero"`
}
One owned live child as the subagent list projects it
type SubagentStatus ¶
type SubagentStatus string
Lifecycle state of a delegated child
func (SubagentStatus) Values ¶
func (SubagentStatus) Values() []string
type SubagentSteerParams ¶
type SubagentSteerResult ¶
type SubagentSteerResult struct {
Status SteerStatus `json:"status"`
SubagentID string `json:"subagent_id"`
Text string `json:"text"`
}
type SubagentTailResult ¶
type SubagentTailResult struct {
SubagentID string `json:"subagent_id"`
Available bool `json:"available"`
Text string `json:"text"`
Truncated bool `json:"truncated"`
}
Last bytes of a child's transcript, available false when the child recorded none
type SubmitAnswer ¶
type SubmitAnswer struct {
*AdmissionReceipt
VoiceStopped bool `json:"voice_stopped,omitzero"`
}
Answer of a canonical prompt.submit, the admission receipt or voice_stopped alone
func (SubmitAnswer) Variants ¶
func (SubmitAnswer) Variants() []reflect.Type
type SudoRequestParams ¶
type SudoRequestParams struct {
SessionID string `json:"session_id"`
Command string `json:"command,omitzero"`
}
Sudo password the terminal tool needs, for the command it runs
type SystemBatteryResult ¶
type SystemBatteryResult struct {
Available bool `json:"available"`
Percent *int64 `json:"percent,omitzero"`
Plugged *bool `json:"plugged,omitzero"`
Category BatteryCategory `json:"category"`
}
Host battery for the status bar, available false on a host without one
type TaskIDResult ¶
type TaskIDResult struct {
TaskID string `json:"task_id"`
}
Id the side agent's completion event carries
type TextPayload ¶
type TextPayload struct {
Text string `json:"text"`
}
Line of text an event carries alone, a review summary or a line the agent printed
type TodoItem ¶
type TodoItem struct {
ID string `json:"id"`
Content string `json:"content"`
Status TodoStatus `json:"status"`
Parent *string `json:"parent,omitzero"`
}
One task of the planning tool, a subtask naming its parent
type TodoStatus ¶
type TodoStatus string
Status of one task of the planning tool
func (TodoStatus) Values ¶
func (TodoStatus) Values() []string
type ToolCompletePayload ¶
type ToolCompletePayload struct {
ToolID string `json:"tool_id"`
Name string `json:"name"`
Context *string `json:"context,omitzero"`
Preview *string `json:"preview,omitzero"`
Args map[string]any `json:"args,omitzero"`
Labels []ToolLabel `json:"labels,omitzero"`
ToolCallID *string `json:"tool_call_id,omitzero"`
ToolName *string `json:"tool_name,omitzero"`
IsError *bool `json:"is_error,omitzero"`
Refused *bool `json:"refused,omitzero"`
Error *string `json:"error,omitzero"`
Result *string `json:"result,omitzero"`
DurationS *float64 `json:"duration_s,omitzero"`
Summary *string `json:"summary,omitzero"`
ResultText *string `json:"result_text,omitzero"`
InlineDiff *string `json:"inline_diff,omitzero"`
// Local image of the gateway host the call produced or looked at
ImagePath *string `json:"image_path,omitzero"`
Todos []TodoItem `json:"todos,omitzero"`
Revision *int64 `json:"revision,omitzero"`
}
A tool call finished, its verdict and reason, result text, summary, duration, inline diff and the task list
type ToolGeneratingPayload ¶
type ToolGeneratingPayload struct {
Name string `json:"name"`
}
The model is writing the arguments of a call to the named tool
type ToolLabel ¶
type ToolLabel struct {
Kind ToolLabelKind `json:"kind"`
App string `json:"app"`
Action string `json:"action"`
Emoji string `json:"emoji"`
Text string `json:"text"`
Name string `json:"name"`
Preview string `json:"preview,omitzero"`
}
Display label of a tool call, the app and action it drives with its emoji, text and argument preview
type ToolLabelKind ¶
type ToolLabelKind string
Kind of what a tool call label names
func (ToolLabelKind) Values ¶
func (ToolLabelKind) Values() []string
type ToolOutputRiskPayload ¶
type ToolOutputRiskPayload struct {
ToolID string `json:"tool_id"`
Name string `json:"name"`
Risk string `json:"risk"`
Findings []string `json:"findings"`
Redacted bool `json:"redacted"`
}
Output of a call the injection scanner flagged, its risk level and findings
type ToolProgressPayload ¶
type ToolProgressPayload struct {
ToolID string `json:"tool_id"`
Name string `json:"name"`
Progress float64 `json:"progress"`
Total *float64 `json:"total,omitzero"`
Percent *int64 `json:"percent,omitzero"`
Message *string `json:"message,omitzero"`
}
Progress an MCP server reported for a running call, at most one every half second per call
type ToolShowRow ¶
One tool of the tools listing with its description
type ToolShowSection ¶
type ToolShowSection struct {
Name string `json:"name"`
Tools []ToolShowRow `json:"tools"`
}
Tools of one toolset
type ToolStartPayload ¶
type ToolStartPayload struct {
ToolID string `json:"tool_id"`
Name string `json:"name"`
Context *string `json:"context,omitzero"`
Args map[string]any `json:"args,omitzero"`
ArgsText *string `json:"args_text,omitzero"`
Preview *string `json:"preview,omitzero"`
Labels []ToolLabel `json:"labels,omitzero"`
ToolCallID *string `json:"tool_call_id,omitzero"`
ToolName *string `json:"tool_name,omitzero"`
}
A tool call began, its id, a one line context, its arguments and labels, the verbose argument text when the session shows it
type ToolsAction ¶
type ToolsAction string
Whether a configure call turns its names on or off
func (ToolsAction) Values ¶
func (ToolsAction) Values() []string
type ToolsConfigureParams ¶
type ToolsConfigureParams struct {
Action ToolsAction `json:"action"`
Names []string `json:"names"`
SessionID *string `json:"session_id,omitzero"`
Profile *string `json:"profile,omitzero"`
}
Toolsets or server:tool MCP targets to turn on or off, the live session's profile and agent when a session is named
type ToolsConfigureResult ¶
type ToolsConfigureResult struct {
Changed []string `json:"changed"`
EnabledToolsets []string `json:"enabled_toolsets"`
Info *SessionInfo `json:"info,omitzero"`
MissingServers []string `json:"missing_servers"`
Reset bool `json:"reset"`
Unknown []string `json:"unknown"`
LaunchToolsets []string `json:"launch_toolsets,omitzero"`
}
What a configure call changed, the toolsets now on, MCP servers and names it did not know and the session info after it, or the toolsets the launch fixed when nothing was written
type ToolsListParams ¶
type ToolsListParams struct {
Platform *string `json:"platform,omitzero"`
}
Platform whose toolsets the listing shows
type ToolsListResult ¶
type ToolsListResult struct {
Lines []string `json:"lines"`
}
Every toolset and MCP tool of the platform with its status, lines in the profile's language
type ToolsShowResult ¶
type ToolsShowResult struct {
Sections []ToolShowSection `json:"sections"`
Total int64 `json:"total"`
}
Tools of the session grouped by toolset, deferred tools included, and their count
type TranscriptMessage ¶
type TranscriptMessage struct {
Role string `json:"role"`
Text *string `json:"text,omitzero"`
Content any `json:"content,omitzero"`
ToolCallID *string `json:"tool_call_id,omitzero"`
Timestamp *float64 `json:"timestamp,omitzero"`
RowID *int64 `json:"row_id,omitzero"`
DisplayKind *string `json:"display_kind,omitzero"`
DisplayMetadata *DisplayMetadata `json:"display_metadata,omitzero"`
Name *string `json:"name,omitzero"`
Context *string `json:"context,omitzero"`
Args map[string]any `json:"args,omitzero"`
Labels []ToolLabel `json:"labels,omitzero"`
Reasoning *string `json:"reasoning,omitzero"`
ToolName *string `json:"tool_name,omitzero"`
IsError *bool `json:"is_error,omitzero"`
Refused *bool `json:"refused,omitzero"`
Error *string `json:"error,omitzero"`
// What a tool call printed, how long it ran, the diff of an edit and the image it made or looked at, as its tool.complete carried them
ResultText *string `json:"result_text,omitzero"`
DurationS *float64 `json:"duration_s,omitzero"`
InlineDiff *string `json:"inline_diff,omitzero"`
ImagePath *string `json:"image_path,omitzero"`
// What a shell line a person ran printed and its exit status, on a shell row
Shell *ShellExecResult `json:"shell,omitzero"`
Archived *bool `json:"archived,omitzero"`
Extra map[string]any `json:"-" wire:"extra"`
}
type TurnStatus ¶
type TurnStatus string
How a turn ended
func (TurnStatus) Values ¶
func (TurnStatus) Values() []string
type UndoIntent ¶
type UndoIntent string
Why a client drops the last exchange, a retry sending the dropped prompt again
func (UndoIntent) Values ¶
func (UndoIntent) Values() []string
type UndoRollbackHint ¶
type UndoRollbackHint struct {
Files []string `json:"files"`
}
Files the turns an undo removed changed since the first checkpoint of that span, the line naming them worded by the client
type UntrustedProjectSkills ¶
Skills found under a project root the user has not trusted, left unloaded until it is
type Usage ¶
type Usage struct {
Model string `json:"model,omitzero"`
Input int64 `json:"input,omitzero"`
Output int64 `json:"output,omitzero"`
Reasoning int64 `json:"reasoning,omitzero"`
Prompt int64 `json:"prompt,omitzero"`
Completion int64 `json:"completion,omitzero"`
Total int64 `json:"total,omitzero"`
Calls int64 `json:"calls,omitzero"`
Compressions *int64 `json:"compressions,omitzero"`
ContextUsed *int64 `json:"context_used,omitzero"`
ContextMax *int64 `json:"context_max,omitzero"`
ContextPercent *int64 `json:"context_percent,omitzero"`
ContextSource *string `json:"context_source,omitzero"`
ContextEstimated *bool `json:"context_estimated,omitzero"`
CacheHitPct *int64 `json:"cache_hit_pct,omitzero"`
CacheRead *int64 `json:"cache_read,omitzero"`
CacheWrite *int64 `json:"cache_write,omitzero"`
AvgLatencyS *float64 `json:"avg_latency_s,omitzero"`
AvgTPS *float64 `json:"avg_tps,omitzero"`
ActiveSubagents *int64 `json:"active_subagents,omitzero"`
CostUsd *float64 `json:"cost_usd,omitzero"`
CostStatus *string `json:"cost_status,omitzero"`
// Rate limit windows the provider's last answer carried, absent before any answer carried them
RateLimit map[string]any `json:"rate_limit,omitzero"`
}
type ValueAnswer ¶
type ValueAnswer struct {
Value string `json:"value"`
}
Answer to a one value prompt, empty when skipped, a saved login as the JSON of identifier and password
type VaultChangeParams ¶
type VaultChangeParams struct {
Profile *string `json:"profile,omitzero"`
Verb string `json:"verb"`
// Kind, label, site and values by field of an item an add stores
Kind string `json:"kind,omitzero"`
Label string `json:"label,omitzero"`
Origin string `json:"origin,omitzero"`
Values map[string]string `json:"values,omitzero"`
// Handle of the item a remove takes out
Handle string `json:"handle,omitzero"`
// Password manager a source change turns on or off
Source string `json:"source,omitzero"`
On bool `json:"on,omitzero"`
// Where a key change moves the key, keychain or file
To string `json:"to,omitzero"`
}
One change to the autofill vault: add, remove, source or key
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 VaultField ¶
type VaultField struct {
Key string `json:"key"`
Required bool `json:"required,omitzero"`
Secret bool `json:"secret,omitzero"`
// Only values the field takes, empty for free text
Choices []string `json:"choices,omitzero"`
}
One field of an item of a kind besides its label and site
type VaultItemRow ¶
type VaultItemRow struct {
Handle string `json:"handle"`
// Where the item is kept: the local vault or a password manager
Source string `json:"source"`
// login, payment or address
Kind string `json:"kind"`
Label string `json:"label"`
Identifier string `json:"identifier,omitzero"`
// Site the item may be filled in on
Origin string `json:"origin,omitzero"`
// Kept in the vault of this profile, so it can be removed here
Local bool `json:"local,omitzero"`
}
One item the agent may fill in for the user, never its secret
type VaultKeyInfo ¶
type VaultKeyInfo struct {
// file, keychain, or none while no item was saved yet
Storage string `json:"storage"`
Path string `json:"path,omitzero"`
Service string `json:"service,omitzero"`
Account string `json:"account,omitzero"`
// Where the key of a new vault goes, file or keychain
Configured string `json:"configured"`
// Keychain of this computer
Keychain string `json:"keychain,omitzero"`
// Keychain copy that a move back to the file could not remove yet
KeychainLeft string `json:"keychain_left,omitzero"`
}
Where the key of the local vault lives
type VaultKind ¶
type VaultKind struct {
Kind string `json:"kind"`
Fields []VaultField `json:"fields"`
}
One kind of item with its fields in the order they are asked
type VaultListParams ¶
type VaultListParams struct {
Profile *string `json:"profile,omitzero"`
}
type VaultListResult ¶
type VaultListResult struct {
Items []VaultItemRow `json:"items"`
// Password managers that are on but locked, so their items are not listed
Locked []string `json:"locked"`
Sources []VaultSourceRow `json:"sources"`
Key VaultKeyInfo `json:"key"`
Kinds []VaultKind `json:"kinds"`
}
Everything the autofill vault screen shows
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 VaultSourceRow ¶
type VaultSourceRow struct {
Name string `json:"name"`
DisplayName string `json:"display_name"`
State string `json:"state"`
}
One password manager and whether the agent uses it: on, off, or missing when it is not installed
type VaultUnlockRequestParams ¶
type VaultUnlockRequestParams struct {
SessionID string `json:"session_id"`
Backend string `json:"backend"`
DisplayName string `json:"display_name"`
}
Master password of a password manager the session unlocks
type VoicePartialPayload ¶
type VoicePartialPayload struct {
Text string `json:"text"`
}
type VoicePlaybackParams ¶
type VoicePlaybackParams struct {
Playing bool `json:"playing"`
Profile *string `json:"profile,omitzero"`
}
Whether the window that plays speech has a clip sounding
type VoiceRecordAction ¶
type VoiceRecordAction string
func (VoiceRecordAction) Values ¶
func (VoiceRecordAction) Values() []string
type VoiceRecordParams ¶
type VoiceRecordParams struct {
Action VoiceRecordAction `json:"action,omitzero"`
SessionID string `json:"session_id,omitzero"`
Profile *string `json:"profile,omitzero"`
}
type VoiceRecordResult ¶
type VoiceRecordResult struct {
Status VoiceRecordStatus `json:"status"`
Reason string `json:"reason,omitzero"`
}
type VoiceRecordStatus ¶
type VoiceRecordStatus string
func (VoiceRecordStatus) Values ¶
func (VoiceRecordStatus) Values() []string
type VoiceSpeechKind ¶
type VoiceSpeechKind string
func (VoiceSpeechKind) Values ¶
func (VoiceSpeechKind) Values() []string
type VoiceSpeechPayload ¶
type VoiceSpeechPayload struct {
Kind VoiceSpeechKind `json:"kind"`
Audio string `json:"audio,omitzero"`
Format string `json:"format,omitzero"`
}
Speech of a session for the window that plays it, a clip queued after the others, thinking blips on or off, or a cut
type VoiceStatusPayload ¶
type VoiceStatusPayload struct {
State string `json:"state"`
}
Recorder state, idle, listening, transcribing and the others the recorder names
type VoiceStopped ¶
type VoiceStopped struct {
VoiceStopped bool `json:"voice_stopped"`
}
Answer of a typed stop phrase that ended the voice chat with nothing admitted
type VoiceSubmitMode ¶
type VoiceSubmitMode string
func (VoiceSubmitMode) Values ¶
func (VoiceSubmitMode) Values() []string
type VoiceToggleAction ¶
type VoiceToggleAction string
func (VoiceToggleAction) Values ¶
func (VoiceToggleAction) Values() []string
type VoiceToggleParams ¶
type VoiceToggleParams struct {
Action VoiceToggleAction `json:"action,omitzero"`
SessionID string `json:"session_id,omitzero"`
Profile *string `json:"profile,omitzero"`
}
Voice action of the session named, or of the serving process when none is named
type VoiceToggleResult ¶
type VoiceToggleResult struct {
Enabled bool `json:"enabled"`
RecordKey string `json:"record_key"`
TTS bool `json:"tts"`
StopHint string `json:"stop_hint,omitzero"`
Available *bool `json:"available,omitzero"`
AudioAvailable *bool `json:"audio_available,omitzero"`
STTAvailable *bool `json:"stt_available,omitzero"`
Details string `json:"details,omitzero"`
}
Voice mode state, the requirements probe on status and the spoken stop hint on on
type VoiceTranscriptPayload ¶
type VoiceTranscriptPayload struct {
Text string `json:"text,omitzero"`
StopPhrase bool `json:"stop_phrase,omitzero"`
Typed bool `json:"typed,omitzero"`
NoSpeechLimit bool `json:"no_speech_limit,omitzero"`
}
Text of a voice capture, or a stop phrase, a typed stop or the silence limit that ended it
type WaitBarrier ¶
type WaitBarrier struct {
Type WaitBarrierType `json:"type"`
UntilAt *float64 `json:"until_at,omitzero"`
SessionID *string `json:"session_id,omitzero"`
PID *int64 `json:"pid,omitzero"`
Reason string `json:"reason,omitzero"`
}
What an active goal waits for, a time, a session or a process
func (*WaitBarrier) UnmarshalJSON ¶
func (b *WaitBarrier) UnmarshalJSON(data []byte) error
Reads a barrier, the target a gateway of an earlier release sends read as the session id or the pid its type names
type WaitBarrierType ¶
type WaitBarrierType string
Kind of event a goal waits for
func (WaitBarrierType) Values ¶
func (WaitBarrierType) Values() []string
type WakeControlParams ¶
type WakeControlParams struct {
Profile *string `json:"profile,omitzero"`
}
type WakeDetectedPayload ¶
type WakeDeviceSelector ¶
Configured microphone, an index or a name, null for the system default
func (WakeDeviceSelector) MarshalJSON ¶
func (s WakeDeviceSelector) MarshalJSON() ([]byte, error)
func (*WakeDeviceSelector) UnmarshalJSON ¶
func (s *WakeDeviceSelector) UnmarshalJSON(data []byte) error
type WakeInputDevice ¶
type WakeInputDevice struct {
Selector *WakeDeviceSelector `json:"selector"`
Name string `json:"name,omitzero"`
Error string `json:"error,omitzero"`
MaxInputChannels int64 `json:"max_input_channels,omitzero"`
DefaultSamplerate float64 `json:"default_samplerate,omitzero"`
HostapiIndex *int64 `json:"hostapi_index,omitzero"`
Hostapi string `json:"hostapi,omitzero"`
}
Audio layer diagnostics of the configured microphone
type WakeResumeResult ¶
type WakeStartParams ¶
type WakeStartResult ¶
type WakeStartResult struct {
Started bool `json:"started"`
Reason string `json:"reason,omitzero"`
Hint string `json:"hint,omitzero"`
Phrase string `json:"phrase,omitzero"`
Provider string `json:"provider,omitzero"`
OwnerSurface *string `json:"owner_surface,omitzero"`
EnabledPersisted bool `json:"enabled_persisted,omitzero"`
}
Listener arming, a refusal carrying its reason with a hint or the surface that owns the microphone
type WakeStatusParams ¶
type WakeStatusResult ¶
type WakeStatusResult struct {
Listening bool `json:"listening"`
OwnedByCaller bool `json:"owned_by_caller"`
OwnerSurface *string `json:"owner_surface"`
Phrase string `json:"phrase"`
Provider string `json:"provider"`
ConfiguredSurface string `json:"configured_surface"`
InputDevice WakeInputDevice `json:"input_device"`
Available bool `json:"available"`
Hint string `json:"hint"`
Enabled bool `json:"enabled"`
AudioSilent bool `json:"audio_silent"`
LocalInputAvailable bool `json:"local_input_available"`
}
Wake word state, enabled the config truth, listening the caller's armed detector, audio_silent armed but deaf
type WakeStopParams ¶
type WakeStopResult ¶
type WakeStopResult struct {
Reason *string `json:"reason"`
Stopped bool `json:"stopped"`
DisabledPersisted bool `json:"disabled_persisted"`
Phrase string `json:"phrase"`
Provider string `json:"provider"`
}
Listener stop, the reason null when this surface stopped it and not_owner otherwise
type WebhookRow ¶
type WebhookRow struct {
Label string `json:"label"`
URL string `json:"url"`
Events []string `json:"events"`
Matcher string `json:"matcher,omitzero"`
Timeout int64 `json:"timeout"`
Signed bool `json:"signed,omitzero"`
}
One address events are posted to
type WorkerExecution ¶
type WorkerExecution struct {
ExecutionID string `json:"execution_id"`
SessionID string `json:"session_id"`
Kind WorkerKind `json:"kind"`
OwnerEpoch int64 `json:"owner_epoch"`
Generation int64 `json:"generation"`
Status WorkerStatus `json:"status"`
LastSequence int64 `json:"last_sequence"`
}
One worker execution row without its adoption digest
type WorkerKind ¶
type WorkerKind string
func (WorkerKind) Values ¶
func (WorkerKind) Values() []string
type WorkerPersistParams ¶
type WorkerPersistParams struct {
WorkerScopeParams
Epoch int64 `json:"epoch"`
Sequence int64 `json:"sequence"`
Operation string `json:"operation"`
Payload map[string]any `json:"payload"`
}
Sequence fenced typed write of an adopted worker
type WorkerRegisterParams ¶
type WorkerRegisterParams struct {
WorkerScopeParams
Kind string `json:"kind"`
}
Claim of a compute worker registering its execution
type WorkerScopeParams ¶
type WorkerScopeParams struct {
ProfileID string `json:"profile_id"`
SessionID string `json:"session_id"`
ExecutionID string `json:"execution_id"`
Generation int64 `json:"generation"`
Pid int64 `json:"pid"`
Birth float64 `json:"birth"`
Secret string `json:"secret"`
}
Producer claim every worker verb proves, the execution, its process and the adoption secret
type WorkerStatus ¶
type WorkerStatus string
func (WorkerStatus) Values ¶
func (WorkerStatus) Values() []string
type WorktreeCreateParams ¶
type WorktreeCreateParams struct {
Cwd string `json:"cwd"`
Name string `json:"name,omitzero"`
PID int64 `json:"pid"`
}
Folder whose repository gets the tree, its name, and the process the tree is locked for
type WorktreeCreateResult ¶
type WorktreeCreateResult struct {
RepoRoot *string `json:"repo_root"`
Tree *WorktreeRef `json:"tree"`
Lines []string `json:"lines"`
}
Creation report and the tree, null when the creation failed
type WorktreeCwdParams ¶
type WorktreeCwdParams struct {
Cwd string `json:"cwd"`
}
type WorktreeKept ¶
type WorktreeLaunch ¶
type WorktreeListResult ¶
type WorktreeListResult struct {
RepoRoot *string `json:"repo_root"`
Lines []string `json:"lines"`
}
Repository of the folder and the git worktree list, empty when git failed
type WorktreePruneParams ¶
type WorktreePruneParams struct {
Cwd string `json:"cwd"`
DryRun bool `json:"dry_run,omitzero"`
Keep string `json:"keep,omitzero"`
}
Folder whose repository is pruned, a dry run, and the tree in use that is never reclaimed
type WorktreePruneResult ¶
type WorktreePruneResult struct {
RepoRoot *string `json:"repo_root"`
Actions []string `json:"actions"`
Preserved []WorktreeKept `json:"preserved"`
Error *string `json:"error"`
}
type WorktreeRecordResult ¶
type WorktreeRecordResult struct {
Ok bool `json:"ok"`
}
type WorktreeRef ¶
type WorktreeRef struct {
Path string `json:"path"`
Branch string `json:"branch"`
RepoRoot string `json:"repo_root"`
}
Git worktree with its branch and the repository it belongs to
type WorktreeSettleResult ¶
type WorktreeSettleResult struct {
Lines []string `json:"lines"`
}
Lines saying the tree was removed or why it is kept
type WorktreeStatusParams ¶
type WorktreeStatusParams struct {
Cwd string `json:"cwd"`
LaunchCwd string `json:"launch_cwd"`
PID int64 `json:"pid"`
}
Folder to look up and the launch folder and process whose -w launch locked a tree
type WorktreeStatusResult ¶
type WorktreeStatusResult struct {
RepoRoot *string `json:"repo_root"`
Launch *WorktreeLaunch `json:"launch"`
}
Source Files
¶
- agents.go
- approvals.go
- attachments.go
- browser.go
- build.go
- commands.go
- commands_tree.go
- complete.go
- config.go
- contract.go
- fit.go
- handoff_cron.go
- hub_approvals.go
- hub_chatapps.go
- hub_config_files.go
- hub_cron.go
- hub_fallback.go
- hub_hooks.go
- hub_kanban.go
- hub_memory.go
- hub_mixes.go
- hub_plugins.go
- hub_profiles.go
- hub_projects.go
- hub_secrets.go
- hub_setup.go
- hub_skills.go
- hub_vault.go
- hubs.go
- images.go
- learning_pets.go
- logins.go
- misfit.go
- models.go
- notices_system.go
- profiles_create.go
- profiles_worktrees.go
- prompt.go
- rollback.go
- rooms.go
- session_info.go
- sessions.go
- settings.go
- setup.go
- slash_fuzzy.go
- tools.go
- voice_display.go
- workers.go