Versions in this module Expand all Collapse all v0 v0.1.0 Nov 4, 2026 Changes in this version + const AuthNeeded + const AuthSignedIn + const AuthUnknown + const EventApprovalRequested + const EventApprovalResolved + const EventFlow + const EventQuestionRequested + const EventQuestionResolved + const EventReviewRequested + const EventReviewResolved + const EventToken + const EventToolEnd + const EventToolStart + const EventTurnEnd + const EventTurnStart + const FailedNote + const FlowDone + const FlowFailed + const FlowRunBroken + const FlowRunCancelled + const FlowRunFailed + const FlowRunOK + const FlowRunRunning + const FlowRunning + const FlowWaiting + const FromAgent + const FromCommand + const FromHook + const KindQuestion + const ReviewQuestion + const StoppedCancelled + var ErrAnswered = errors.New("already answered, or no longer waiting") + var ErrBadImage = errors.New("image not taken") + var ErrClosing = errors.New("the daemon is closing: tell the next") + var ErrForkWhileRunning = errors.New(...) + var ErrNoCommand = errors.New("no such command") + var ErrNoFlow = errors.New("this session has run no flow") + var ErrNoFlowName = errors.New("/flow needs a flow's name: /flow <name> [what to give it]") + var ErrNoFlowRequest = errors.New("/flow new needs what the flow is to do: /flow new <what it does>") + var ErrNoFlowRun = errors.New("no flow run of that id (kept runs: kairocode flow runs)") + var ErrNoForkPoint = errors.New("no finished turn to fork from") + var ErrNoProvider = errors.New("no such provider") + var ErrNoSnapshot = errors.New(...) + var ErrNoTurnToCancel = errors.New("no turn is running") + var ErrNoUndo = errors.New("this session started before undo existed: start a new session to undo") + var ErrNotAFlow = errors.New("this call writes no flow to try") + var ErrNotInstalled = errors.New("not installed") + var ErrQuestion = errors.New("not an answer to this question") + var ErrSessionFailed = errors.New("this session stopped on an error and takes no more messages") + var ErrTrying = errors.New("it is being tried: answer it, or wait for the try to end") + var ErrUnavailable = errors.New("not available here") + var Modes = []string + func CheckImages(images []Image) error + type AuthInfo struct + Methods []AuthMethod + State string + type AuthMethod struct + Agent bool + Command []string + Description string + ID string + Name string + type CatalogPlugin struct + Description string + Installed bool + Marketplace string + Name string + Unsupported string + type Event struct + Call string + Error string + Flow *flowchart.View + Input json.RawMessage + IsError bool + Key string + N int + OK *bool + Output string + Pending *Pending + Reply string + Seq int64 + Steps int + Stopped string + Text string + Tool string + Turn string + Type string + Usage *msg.Usage + type FlowInfo struct + Args string + Description string + Draft bool + Name string + type FlowRun struct + Agents int + Args string + Dir string + Ended time.Time + From string + Hook string + ID string + Message string + Name string + Session string + Started time.Time + Status string + Steps []LogEntry + Try bool + Turn int + Usage msg.Usage + View *flowchart.View + func (f FlowRun) Line() string + func (f FlowRun) Text() string + type FlowStat struct + Defined bool + Failed int + From map[string]int + Last time.Time + Name string + OK int + Running int + Runs int + type Image struct + Data []byte + MediaType string + type LogEntry struct + At time.Time + End time.Time + Kind string + Name string + Runs []LogEntry + Status string + Text string + Usage *msg.Usage + type MCPInfo struct + Kind string + Name string + Project bool + Source string + State string + Tools []MCPToolInfo + type MCPToolInfo struct + Effect string + Name string + type MarketInfo struct + BuiltIn bool + Claude bool + Commit string + Description string + Name string + Plugins int + Source string + type Pending struct + Key string + Kind string + Options []string + Preview string + Rule string + Sections []PreviewSection + Subject string + Tool string + Try *TryTarget + Trying bool + Turn string + func (p Pending) RuleText() string + type PluginInfo struct + Auth string + Description string + Name string + Project bool + Skills []string + Source string + State string + Tools []MCPToolInfo + Unused []string + Version string + type PreviewSection struct + Chart json.RawMessage + Details []string + Name string + Refs [][2]int + Text string + type ProviderInfo struct + Auth *AuthInfo + Available bool + Description string + ID string + Installable bool + Kind string + Name string + Reason string + Source string + Version string + type SessionInfo struct + Closed bool + Created time.Time + Dir string + From string + ID string + Jobs int + Title string + Turns int + Updated time.Time + Waiting int + type SessionLog struct + Dir string + Engine string + From *workflows.ForkRef + Session string + Turns []LogEntry + Usage msg.Usage + func (l SessionLog) Text() string + type SessionUsage struct + Session string + Total msg.Usage + Turns []TurnUsage + type Settings struct + Effort string + Mode string + Model string + Provider string + type SkillsInfo struct + Problems []opencode.SkillProblem + Skills []opencode.Skill + type TryTarget struct + Name string + Script string + type TurnUsage struct + Finished bool + N int + Usage msg.Usage