Versions in this module Expand all Collapse all v0 v0.1.0 Nov 4, 2026 Changes in this version + const ActACPTurn + const ActAgentLoad + const ActApplySuffix + const ActAskUserArgs + const ActAskUserResult + const ActClaudeTurn + const ActCodexTurn + const ActCopilotTurn + const ActExtLoad + const ActFileApply + const ActFlowAsk + const ActFlowDecide + const ActFlowLoad + const ActFlowPut + const ActFlowStep + const ActFlowText + const ActFlowWould + const ActHistoryCancelled + const ActHistoryCompact + const ActHistoryExtend + const ActHookCheck + const ActHookCommand + const ActHookDecide + const ActHookNote + const ActHookTrust + const ActJobResult + const ActJobWatch + const ActMCPAsk + const ActMCPGrant + const ActModel + const ActPermissionCheck + const ActPlanSuffix + const ActRestore + const ActSnapshot + const ActTaskArgs + const ActTaskResult + const ActToolDenied + const ActToolExtRead + const ActToolExtReal + const ActToolMissing + const ActToolPrefix + const ActToolSkipped + const ActTurnSettled + const AskUserElse + const AskUserTool + const BashWaitTool + const DecideBool + const DecideChoice + const DecideNumber + const DecideObject + const EngineACP + const EngineAPI + const EngineClaudeCode + const EngineCodex + const EngineCopilot + const EventClose + const EventCompact + const EventForkFiles + const EventMessage + const EventRedo + const EventUndo + const Flow + const FlowCallPrefix + const FlowVersion + const FlowVersion1 + const FlowVersion2 + const HookAsk + const HookExternal + const HookNever + const HookOutside + const HookSandbox + const HookSessionStart + const HookTool + const HookToolAfter + const HookToolBefore + const HookTurnEnd + const HookTurnStart + const MCPCall + const MCPCallPrefix + const MCPCallVersion + const MaxAutoRefusals + const ModeAuto + const ModeManual + const ModePlan + const Session + const SessionVersion + const SessionVersion2 + const SessionVersion3 + const SessionVersion4 + const SessionVersion5 + const SessionVersion6 + const SignalAnswerPrefix + const SignalApprovePrefix + const SignalJobPrefix + const SignalMessage + const StopContext + const TaskTool + const Turn + const TurnVersion + const TurnVersion2 + const TurnVersion3 + var ErrDiverged = errors.New(...) + func CLIEngine(engine string) bool + func ClaudeName(tool string) string + type Agent struct + Context int + Effort string + Engine string + External []ExtSource + Hooks []Hook + Loopback string + MaxSteps int + Model string + Name string + Names []string + Permissions string + Planned []string + ReadOnly bool + System string + Tools string + Workflow string + type AgentLoadInput struct + Agent string + Dir string + Effort string + Engine string + Model string + Sub bool + type ApplyInput struct + After string + Before string + Call string + Content string + Dir string + Path string + Summary string + type Approval struct + OK bool + Reason string + Try *FlowTry + type AskRequest struct + Content string + Key string + Options []string + Preview string + Rule string + Subject string + Tool string + type AskUserArgs struct + Error string + Options []string + Question string + type ClaudeTurnInput struct + Dir string + Effort string + Engine string + Epoch int + Ext map[string]ExtRef + History string + Hooks []Hook + Message string + Model string + Note string + Policy Policy + Round int + Session string + System string + Tools []string + Turn string + type ClaudeTurnOutput struct + Asks []AskRequest + Message string + Turns int + Usage msg.Usage + type CompactInput struct + Effort string + History string + Model string + Tools string + Turn []string + type CompactOutput struct + Head string + Usage msg.Usage + type DecideInput struct + At string + Choices []string + Dir string + Engine string + Fields map[string]string + Model string + Prompt string + Type string + type DecideOutput struct + Error string + OK bool + Usage msg.Usage + Value json.RawMessage + type DeniedInput struct + Call string + Reason string + type ExtLoadInput struct + Dir string + External []ExtSource + Modes []string + Names []string + Tools string + type ExtLoadOutput struct + Ext map[string]ExtRef + Names []string + Tools string + type ExtRef struct + Def string + Read bool + type ExtSource struct + Command string + Given []string + Kind string + Name string + Project bool + Remote bool + Source string + Spec string + type FlowAnswer struct + Option string + type FlowAskInput struct + At string + ID string + Options []string + Question string + type FlowCall struct + Args string + Draft bool + Name string + type FlowInput struct + Agent string + Call FlowCall + Dir string + Dry bool + Engine string + Expect string + For string + Hook string + Model string + N int + Script string + Session string + type FlowLoadInput struct + Dir string + Draft bool + Expect string + Name string + Script string + type FlowOutput struct + Agents int + Broken bool + Message string + OK bool + Usage msg.Usage + func RunFlow(ctx *kairo.Context, in FlowInput) (FlowOutput, error) + func RunFlowV1(ctx *kairo.Context, in FlowInput) (FlowOutput, error) + func RunFlowV2(ctx *kairo.Context, in FlowInput) (FlowOutput, error) + type FlowPutInput struct + Role string + Text string + type FlowSource struct + Error string + Hash string + Source string + type FlowStep struct + Seq int + Sig string + type FlowTry struct + Args string + Name string + Script string + type ForkRef struct + Session string + Turn int + type Gate struct + Action string + Ask *AskRequest + Denied *DeniedInput + Judged bool + Planned bool + Subject string + Would *ToolOutput + type HistoryCancelledInput struct + Message string + Prev string + type HistoryExtendInput struct + Messages []string + Prev string + type Hook struct + Claude string + Command string + Event string + Flow string + Matcher string + Mode string + Project bool + Source string + Timeout int + Tool string + type HookCheckInput struct + Dir string + Hooks []Hook + type HookDecideInput struct + Dir string + Hook Hook + Mode string + type HookNoteInput struct + Note string + Result ToolOutput + type HookRunInput struct + Call *ToolInput + Dir string + Hook Hook + Prompt string + Result string + Session string + Tool string + type HookRunOutput struct + Exit int + Stderr string + Stdout string + type JobEnded struct + ID string + type JobResultInput struct + Call ToolInput + ID string + Signal string + TimedOut bool + Waiter string + type JobWatchInput struct + Call ToolInput + Waiter string + type JobWatchOutput struct + Done bool + ID string + Result ToolOutput + Signal string + WaitMS int64 + type MCPAskInput struct + Request AskRequest + type MCPCallInput struct + Args json.RawMessage + Dir string + Ext *ExtRef + Hooks []Hook + MCP MCPRef + Planned bool + Policy Policy + Session string + Tool string + type MCPGrantInput struct + Approval Approval + Ask string + Content string + Turn string + type MCPRef struct + Ask string + Key string + Repeat bool + Run string + Turn string + type ModelInput struct + Effort string + History string + Model string + System string + Tools string + Turn []string + type ModelReply struct + Calls []ToolCall + Message string + Stop string + Usage msg.Usage + type PermissionInput struct + Call ToolInput + MCP *MCPRef + Policy Policy + Tool string + type PermissionOutput struct + Action string + Judged bool + Preview string + Reason string + Rule string + Script string + Subject string + Trust string + type PlanApplyInput struct + Call string + Data json.RawMessage + Dir string + type PlanOutput struct + Action string + Apply json.RawMessage + Done bool + Result ToolOutput + type Policy struct + Auto bool + Dry bool + Loopback string + ReadOnly bool + Request string + Rules string + type RestoreInput struct + Dir string + N int + Session string + Undo UndoInput + type RestoreOutput struct + Message string + Prior string + Restored bool + Skipped bool + type SessionEvent struct + Agent string + Flow *FlowCall + Kind string + Message string + Model string + Restore *UndoInput + Switch *Switch + type SessionInput struct + Agent string + Dir string + Effort string + Engine string + From *ForkRef + History string + Model string + type SessionOutput struct + Head string + Turns int + func RunSession(ctx *kairo.Context, in SessionInput) (SessionOutput, error) + func RunSessionV3(ctx *kairo.Context, in SessionInput) (SessionOutput, error) + func RunSessionV4(ctx *kairo.Context, in SessionInput) (SessionOutput, error) + func RunSessionV5(ctx *kairo.Context, in SessionInput) (SessionOutput, error) + func RunSessionV6(ctx *kairo.Context, in SessionInput) (SessionOutput, error) + type SnapshotInput struct + At string + Dir string + N int + Session string + type SnapshotOutput struct + Error string + Tree string + type Switch struct + Effort string + Engine string + Mode string + Model string + type TaskArgs struct + Agent string + Error string + Prompt string + type TaskResultInput struct + Call string + IsError bool + Text string + type ToolCall struct + ID string + Name string + type ToolInput struct + Args json.RawMessage + At string + Call string + Dir string + Ext string + Index int + Message string + Step int + Unstarted bool + type ToolOutput struct + Ask *AskRequest + IsError bool + Message string + func RunMCPCall(ctx *kairo.Context, in MCPCallInput) (ToolOutput, error) + type TurnInput struct + Agent string + At string + Compact bool + Dir string + Dry bool + Effort string + Engine string + Epoch int + Flow *FlowCall + Forked bool + History string + LastInput int64 + Message string + Mode string + Model string + N int + Session string + Sub bool + Undo *UndoInput + type TurnOutput struct + After string + Before string + Compacted bool + Head string + LastInput int64 + Prior string + Reply string + Restored bool + Skipped bool + Steps int + Stopped string + Usage msg.Usage + func RunTurn(ctx *kairo.Context, in TurnInput) (TurnOutput, error) + func RunTurnV3(ctx *kairo.Context, in TurnInput) (TurnOutput, error) + type TurnSettledInput struct + N int + Session string + type TurnSettledOutput struct + Cancelled bool + type UndoInput struct + Fork bool + From string + Of int + Redo bool + Tree string + type WouldInput struct + In ToolInput + Tool string + type WouldOutput struct + Result ToolOutput + Run bool