Versions in this module Expand all Collapse all v0 v0.1.3 Sep 18, 2026 Changes in this version + const EventSchema + const MaxPromptTextBytes + const ModeAgent + const ModePlan + var ErrAgentDraft = errors.New("coding runtime: invalid Agent draft") + var ErrAttemptBaseConflict = errors.New("coding Team dependency base conflict") + var ErrCompactionRetrySuppressed = errors.New("coding runtime: automatic compaction retry suppressed") + var ErrCompactionStale = errors.New("coding runtime: compaction preview is stale") + var ErrCompactionUnavailable = errors.New("coding runtime: compaction unavailable") + var ErrEventGap = errors.New("coding runtime: event subscription gap") + var ErrEventProtocol = errors.New("coding event: protocol violation") + var ErrEventStreamClosed = errors.New("coding runtime: event stream closed") + var ErrHookDenied = errors.New("coding runtime: prompt denied by hook") + var ErrHookStopped = errors.New("coding runtime: lifecycle event stopped by hook") + var ErrInputRequired = errors.New("coding runtime: structured user input required") + var ErrInvalidEvent = errors.New("coding event: invalid event") + var ErrInvalidPrompt = errors.New("coding prompt: invalid text") + var ErrLegacyToolCallUnresolved = errors.New("coding runtime: legacy tool call unresolved") + var ErrPlanReviewRequired = errors.New("coding runtime: Plan review required") + var ErrRuntimeBusy = errors.New("coding runtime: busy") + var ErrRuntimeClosed = errors.New("coding runtime: closed") + var ErrRuntimeInvalid = errors.New("coding runtime: invalid options") + var ErrRuntimeNotPaused = errors.New("coding runtime: not paused") + var ErrRuntimePending = errors.New("coding runtime: pending approval") + var ErrTeamActive = errors.New("coding Team is already active") + var ErrTeamAdmission = errors.New("coding Team admission failed") + var ErrTeamCleanupIntegrationRequired = errors.New("coding Team cleanup requires an Integration decision") + var ErrTeamCleanupRetained = errors.New("coding Team cleanup retained resources") + var ErrTeamCleanupStale = errors.New("coding Team cleanup review is stale") + var ErrTeamCleanupUnavailable = errors.New("coding Team cleanup unavailable") + var ErrTeamDirty = errors.New("coding Team workspace has uncommitted changes") + var ErrTeamIntegrationSelection = errors.New("coding Team integration selection is invalid") + var ErrTeamIntegrationUnavailable = errors.New("coding Team integration unavailable") + var ErrTeamInteractionRequired = errors.New("interaction_required") + var ErrTeamProposalNotFound = errors.New("coding Team proposal not found") + var ErrTeamProposalStale = errors.New("coding Team proposal is stale") + var ErrTeamReadStale = errors.New("coding Team view cursor is stale") + var ErrTeamReadUnavailable = errors.New("coding Team view unavailable") + var ErrTeamRecoveryBlocked = errors.New("coding Team recovery is blocked") + var ErrTeamRecoveryDecisionRequired = errors.New("coding Team recovery decision is required") + var ErrTeamRecoveryNotFound = errors.New("coding Team recovery candidate not found") + var ErrTeamRecoveryStale = errors.New("coding Team recovery candidate is stale") + var ErrTeamRepositoryRequired = errors.New("coding Team requires a repository root with HEAD") + var ErrTeamWorkerStale = errors.New("coding Team Worker target is stale") + var ErrUnsafeEventEncoding = errors.New("coding event: disclosure projection required") + func MarshalEvent(event Event) ([]byte, error) + func PublishedReloadGeneration(err error) (uint64, bool) + func ValidateAgentLibrary(library AgentLibrary) error + func ValidateEvent(event Event) error + func ValidatePromptText(text string) error + type AgentDraft struct + Definition []byte + Origin AgentDraftOrigin + Preview AgentDraftPreview + Summary AgentDraftSummary + func (d AgentDraft) Clone() AgentDraft + type AgentDraftOrigin struct + GenerationID uint64 + InteractionID string + Model string + Provider ai.Provider + RunID string + SessionID string + type AgentDraftPreview struct + Capabilities []subagent.EffectiveCapability + DeclaredSkills []string + DeclaredTools []string + DelegationTargets []string + GenerationID uint64 + Limits subagent.Limits + Model string + Output subagent.OutputContract + PlanDigest string + PreloadedSkills []string + PrivateHooks []string + PrivateMCP []string + Skills []string + ToolSearch bool + func (p AgentDraftPreview) Clone() AgentDraftPreview + type AgentDraftPromotion struct + AgentID string + DefinitionDigest string + GenerationID uint64 + ReloadRequired bool + Scope AgentDraftScope + Target string + type AgentDraftScope string + const AgentDraftScopeProject + const AgentDraftScopeUser + type AgentDraftSummary struct + AgentID string + CreatedAt time.Time + DefinitionDigest string + DraftID string + EffectiveToolCount int + GenerationID uint64 + PrivateBindingCount int + Scope AgentDraftScope + SelectedSkillCount int + type AgentLibrary struct + Entries []AgentLibraryEntry + func (l AgentLibrary) Clone() AgentLibrary + type AgentLibraryDiagnostic struct + Code string + Message string + Source string + type AgentLibraryEntry struct + Available bool + DeclaredTools []string + Delivery []string + Description string + Diagnostics []AgentLibraryDiagnostic + Digest string + ID string + Kind string + Model string + ModelVisible bool + Name string + OutputFormat string + Preloaded []string + RequiredTools []string + Scope string + Skills []string + Source string + Status string + SuppressedBy string + ToolSearch bool + Unavailable string + UserVisible bool + type AgentRunRequest struct + AgentID string + Task string + type ApprovalKind string + const ApprovalNone + const ApprovalReview + const ApprovalUncertain + type ApprovalRequired struct + CWD string + CallID string + Choices []approval.Choice + Command []string + Justification string + RequestID string + Tool string + type ApprovalResolved struct + Choice approval.Choice + RequestID string + type ApprovalState struct + Kind ApprovalKind + RequestedAt time.Time + Required *ApprovalRequired + Unknown *ApprovalUnknown + func (state ApprovalState) NonInteractiveError() error + type ApprovalUnknown struct + Attempt int + CallID string + Choices []approval.Choice + Fingerprint string + Pending bool + Reason string + Recoverable bool + RequestID string + Tool string + type AttemptBase struct + Evidence string + OID string + Resource teamstate.AttemptBaseResource + type AttemptBasePreparer interface + PrepareAttemptBase func(context.Context, AttemptBaseRequest) (AttemptBase, error) + type AttemptBaseRequest struct + AttemptID team.AttemptID + Resources teamstate.Snapshot + Task team.Task + Team team.Team + type BootstrapOptions struct + ContextWindow int + HasPendingToolCalls bool + ModelID string + Path []harness.Entry + PlanMode planmode.State + Provider ai.Provider + SessionID string + Tree harness.TreeSnapshot + type BootstrapResult struct + Recovery InteractionRecovery + State State + func BootstrapState(options BootstrapOptions) (BootstrapResult, error) + type CandidateIdentity struct + RunID string + Turn int + func (identity CandidateIdentity) Key() string + type ChildControlState struct + Approval approval.State + ChildSessionID string + Pause ChildPauseKind + Question *question.Request + func (s ChildControlState) Clone() ChildControlState + type ChildPauseKind string + const ChildPauseApproval + const ChildPauseNone + const ChildPauseQuestion + type CompactionCompleted struct + DurationMillis int64 + FirstKeptID string + Mode CompactionMode + TokensAfter int + TokensBefore int + type CompactionMode string + const CompactionAutomatic + const CompactionManual + type CompactionPreview struct + Available bool + DisabledReason string + EstimatedTokens int + FirstKeptID string + KeptMessages int + SplitTurn bool + SummarizedMessages int + ThresholdTokens int + Token string + type CompactionRequest struct + Instructions string + PreviewToken string + type CompactionStarted struct + Mode CompactionMode + Preview CompactionPreview + type CompactionState struct + Active bool + DurationMillis int64 + FirstKeptID string + Mode CompactionMode + Preview CompactionPreview + TokensAfter int + TokensBefore int + type Disclosure uint8 + const DisclosureContent + const DisclosureSafe + type DurableState struct + Approval ApprovalState + Compaction CompactionState + Interaction InteractionState + ModelID string + Provider ai.Provider + SessionID string + SessionOpen bool + SyntheticMessages []int + Transcript ai.Messages + Tree SessionTree + type Event struct + InteractionID string + Payload EventPayload + RunID string + Schema string + Sequence uint64 + SessionID string + Time time.Time + Type EventType + func UnmarshalEvent(data []byte) (Event, error) + func (Event) MarshalJSON() ([]byte, error) + func (e *Event) UnmarshalJSON(data []byte) error + type EventObservation struct + Children map[string]State + Cursor uint64 + State State + Subscription *EventSubscription + type EventPayload interface + type EventRecord struct + Cursor uint64 + Event Event + type EventSubscription struct + func (s *EventSubscription) Close() + func (s *EventSubscription) Err() error + func (s *EventSubscription) Events() <-chan EventRecord + type EventType string + const EventApprovalRequired + const EventApprovalResolved + const EventApprovalUnknown + const EventCompactionCompleted + const EventCompactionStarted + const EventError + const EventIntegrationDiagnostic + const EventInteractionCompleted + const EventInteractionStarted + const EventMessageCommitted + const EventMessageDelta + const EventMessageDiscarded + const EventModeChanged + const EventPlanModeChanged + const EventPlanReviewRequired + const EventPlanReviewResolved + const EventQuestionRejected + const EventQuestionRequired + const EventQuestionResolved + const EventRunCompleted + const EventRunStarted + const EventSessionClosed + const EventSessionForked + const EventSessionNavigated + const EventSessionOpened + const EventSessionTreeChanged + const EventStatusChanged + const EventSubagentCanceled + const EventSubagentCompleted + const EventSubagentCreated + const EventSubagentFailed + const EventSubagentInterrupted + const EventSubagentProgress + const EventSubagentStarted + const EventTeamControlLifecycle + const EventTeamIntegrationLifecycle + const EventTeamLifecycle + const EventToolCompleted + const EventToolStarted + const EventToolUpdated + const EventTurnCompleted + const EventTurnStarted + const EventWorkspaceChanged + type ExecutionOptions struct + AgentPluginLimits agentplugin.Limits + AgentProfileLimits agentprofile.Limits + Environment func(string) (string, bool) + GitLimits git.Limits + GitPath string + HTTPClient *http.Client + HooksEnvironment []string + MCPClient *sdk.Implementation + MCPDefinitions codingmcp.Definitions + MCPLimits codingmcp.Limits + MCPMaxTools int + MCPTerminate time.Duration + ResourceLimits resource.Limits + SandboxProbe func(context.Context, *execution.Executor) error + Subagent subagent.ExecutionOptions + TempRoot string + ToolLimits tools.Limits + ToolTimeout time.Duration + type ExportEvent struct + func Project(event Event, disclosure Disclosure) (ExportEvent, error) + func (e *ExportEvent) UnmarshalJSON(data []byte) error + func (e ExportEvent) Event() Event + func (e ExportEvent) MarshalJSON() ([]byte, error) + type GenerateAgentDraftRequest struct + AgentID string + Intent string + Scope AgentDraftScope + type HookDeniedError struct + Reason string + func (e *HookDeniedError) Error() string + func (e *HookDeniedError) Unwrap() error + type HookStoppedError struct + Event hooks.Event + Reason string + func (e *HookStoppedError) Error() string + func (e *HookStoppedError) Unwrap() error + type IntegrationDiagnostic struct + Code string + Component string + Disabled bool + Message string + type IntegrationGeneration struct + func (g *IntegrationGeneration) ID() uint64 + type InteractionCompleted struct + DurationMillis int64 + Outcome InteractionOutcome + Stop agent.StopReason + Usage TokenUsage + type InteractionOutcome string + const InteractionCanceled + const InteractionFailed + const InteractionIncomplete + const InteractionSucceeded + type InteractionRecovery struct + InterruptedIDs []string + LastDurationMS int64 + LastID string + LastOutcome InteractionOutcome + LastStop agent.StopReason + LastUsage TokenUsage + PendingID string + func (recovery InteractionRecovery) Clone() InteractionRecovery + type InteractionSource string + const InteractionSourceAgentNotification + const InteractionSourceUser + type InteractionStarted struct + Mode OperatingMode + NotificationIDs []string + Resumed bool + RootInteractionID string + Source InteractionSource + type InteractionState struct + Active bool + ID string + Mode OperatingMode + Outcome InteractionOutcome + Resumed bool + RootInteractionID string + Source InteractionSource + Stop agent.StopReason + Usage TokenUsage + type MessageCommitted struct + Message ai.Message + Synthetic bool + func (payload *MessageCommitted) UnmarshalJSON(data []byte) error + type MessageDelta struct + Arguments string + FinishReason ai.FinishReason + Kind ai.StreamEventType + Model string + Provider ai.Provider + ResponseID string + Signature string + Text string + ToolCallID string + ToolCallIndex int + ToolCallName string + Usage *TokenUsage + type MessageDiscarded struct + Turn int + type ModeChanged struct + Mode OperatingMode + type OneShotAgentRunRequest struct + AgentID string + Definition []byte + Task string + type OpenOptions struct + AgentObservers []func(context.Context, agent.Event) + Config config.Config + Credentials credential.Store + Execution ExecutionOptions + Extensions []extension.Extension + Model ai.LanguageModel + Paths paths.Layout + Resolved modelcatalog.ResolvedModel + Session SessionTarget + TelemetryObservers []TelemetryObserver + Trusted bool + Workspace workspace.Workspace + type OperatingMode = config.OperatingMode + type Phase string + const PhaseClosed + const PhaseClosing + const PhaseIdle + const PhasePaused + const PhaseRunning + type PlanDocument struct + Content string + Exists bool + Size int64 + type PlanModeChanged struct + State planmode.State + type PlanReviewRequired struct + Request planreview.Request + type PlanReviewResolved struct + Decision planreview.Decision + Kind planreview.Kind + RequestID string + type PlanReviewState struct + RequestedAt time.Time + Required *planreview.Request + func (state PlanReviewState) NonInteractiveError() error + type PromoteAgentDraftRequest struct + Definition []byte + DraftID string + ExpectedDigest string + type QuestionRejected struct + RequestID string + SchemaDigest string + type QuestionRequired struct + Count int + Redacted bool + Request question.Request + type QuestionResolved struct + AnswerCount int + Chat bool + Redacted bool + Resolution question.Resolution + type QuestionState struct + RequestedAt time.Time + Required *question.Request + func (state QuestionState) NonInteractiveError() error + type ReloadPublicationError struct + Err error + GenerationID uint64 + func (e *ReloadPublicationError) Error() string + func (e *ReloadPublicationError) Unwrap() error + type RunCompleted struct + Stop agent.StopReason + Turns int + Usage TokenUsage + type RunStarted struct + Agent string + ParentRunID string + type RunState struct + Active bool + Agent string + ID string + ParentRunID string + Stop agent.StopReason + Turn int + TurnOpen bool + Usage TokenUsage + type Runtime struct + func Open(ctx context.Context, options OpenOptions) (*Runtime, error) + func (r *Runtime) ApplyTeamIntegration(ctx context.Context, approval TeamIntegrationApproval) (TeamIntegrationResult, error) + func (r *Runtime) Cancel() error + func (r *Runtime) CancelSubagent(ctx context.Context, childSessionID string) error + func (r *Runtime) CleanupTeam(ctx context.Context, request TeamCleanupRequest) (TeamCleanupResult, error) + func (r *Runtime) Close(ctx context.Context) error + func (r *Runtime) Compact(ctx context.Context, request CompactionRequest) iter.Seq2[Event, error] + func (r *Runtime) ConfirmTeam(ctx context.Context, confirmation TeamConfirmation) (TeamReference, error) + func (r *Runtime) ConfirmTeamNonInteractive(context.Context, TeamConfirmation) (TeamReference, error) + func (r *Runtime) Continue(ctx context.Context) iter.Seq2[Event, error] + func (r *Runtime) DeclineTeam(ctx context.Context, proposalID string) error + func (r *Runtime) DiscardAgentDraft(ctx context.Context, draftID string, expectedDigest string) error + func (r *Runtime) DiscoverTeamRecovery(ctx context.Context) ([]TeamRecoveryCandidate, error) + func (r *Runtime) EnterPlanMode(ctx context.Context) (string, error) + func (r *Runtime) ExitPlanMode(context.Context) (string, error) + func (r *Runtime) FollowUp(messages ...ai.Message) error + func (r *Runtime) Fork(ctx context.Context, entryID string) (string, error) + func (r *Runtime) GenerateAgentDraft(ctx context.Context, request GenerateAgentDraftRequest) (AgentDraft, error) + func (r *Runtime) GenerateTeamProposal(ctx context.Context, prompt TeamProposalPrompt) (TeamProposal, error) + func (r *Runtime) InspectAgentDraft(ctx context.Context, draftID string) (AgentDraft, error) + func (r *Runtime) InspectSubagent(ctx context.Context, childSessionID string) (subagent.Detail, error) + func (r *Runtime) InspectSubagentState(ctx context.Context, childSessionID string) (State, error) + func (r *Runtime) InspectTeamWorkerState(ctx context.Context, target TeamWorkerTarget) (State, error) + func (r *Runtime) ListAgentDrafts(ctx context.Context) ([]AgentDraftSummary, error) + func (r *Runtime) ListAgentProfiles(ctx context.Context) (AgentLibrary, error) + func (r *Runtime) ListSubagents(ctx context.Context) ([]subagent.Summary, error) + func (r *Runtime) ListWorkspaceFiles(ctx context.Context) (attachment.Snapshot, error) + func (r *Runtime) Navigate(ctx context.Context, entryID string, summarize bool) iter.Seq2[Event, error] + func (r *Runtime) ObserveEvents() (EventObservation, error) + func (r *Runtime) ObserveTeamWorker(ctx context.Context, target TeamWorkerTarget) (EventObservation, error) + func (r *Runtime) PlanDocumentPath() (string, error) + func (r *Runtime) PlanState() planmode.State + func (r *Runtime) PrepareTeamIntegration(ctx context.Context, request TeamIntegrationRequest) (TeamIntegrationPreview, error) + func (r *Runtime) PreviewCompaction(ctx context.Context) (CompactionPreview, error) + func (r *Runtime) PromoteAgentDraft(ctx context.Context, request PromoteAgentDraftRequest) (AgentDraftPromotion, error) + func (r *Runtime) Prompt(ctx context.Context, messages ...ai.Message) iter.Seq2[Event, error] + func (r *Runtime) ProposeTeam(ctx context.Context, request TeamProposalRequest) (TeamProposal, error) + func (r *Runtime) ReadPlanDocument(ctx context.Context) (PlanDocument, error) + func (r *Runtime) ReadTeam(ctx context.Context, request TeamReadRequest) (TeamView, error) + func (r *Runtime) RecoverTeamIntegration(ctx context.Context, request TeamIntegrationRecoveryRequest) (TeamIntegrationResult, error) + func (r *Runtime) RejectQuestion(ctx context.Context, requestID string, schemaDigest string) iter.Seq2[Event, error] + func (r *Runtime) RejectSubagentQuestion(ctx context.Context, childSessionID string, requestID string, ...) (ChildControlState, error) + func (r *Runtime) RejectTeamIntegration(ctx context.Context, approval TeamIntegrationApproval) error + func (r *Runtime) RejectTeamWorkerQuestion(ctx context.Context, target TeamWorkerTarget, requestID string, ...) (TeamControlReference, error) + func (r *Runtime) Reload(ctx context.Context) (returnErr error) + func (r *Runtime) ReplacementPreflight(ctx context.Context) error + func (r *Runtime) Resolve(ctx context.Context, resolution approval.Resolution) iter.Seq2[Event, error] + func (r *Runtime) ResolvePlanReview(ctx context.Context, resolution planreview.Resolution) iter.Seq2[Event, error] + func (r *Runtime) ResolveQuestion(ctx context.Context, resolution question.Resolution) iter.Seq2[Event, error] + func (r *Runtime) ResolveSubagentApproval(ctx context.Context, childSessionID string, resolution approval.Resolution) (ChildControlState, error) + func (r *Runtime) ResolveSubagentQuestion(ctx context.Context, childSessionID string, resolution question.Resolution) (ChildControlState, error) + func (r *Runtime) ResolveTeamWorkerApproval(ctx context.Context, target TeamWorkerTarget, resolution approval.Resolution) (TeamControlReference, error) + func (r *Runtime) ResolveTeamWorkerQuestion(ctx context.Context, target TeamWorkerTarget, resolution question.Resolution) (TeamControlReference, error) + func (r *Runtime) ResolveWorkspaceFile(ctx context.Context, reference attachment.Reference) (attachment.Resolved, error) + func (r *Runtime) ResumeTeam(ctx context.Context, teamID team.ID, decision TeamResumeDecision) (TeamReference, error) + func (r *Runtime) ReviseTeamProposal(ctx context.Context, proposalID string, feedback string) (TeamProposal, error) + func (r *Runtime) RunAgent(ctx context.Context, request AgentRunRequest) (subagent.Result, error) + func (r *Runtime) RunAgentEvents(ctx context.Context, request AgentRunRequest) iter.Seq2[Event, error] + func (r *Runtime) RunOneShotAgent(ctx context.Context, request OneShotAgentRunRequest) (subagent.Result, error) + func (r *Runtime) SetMode(ctx context.Context, mode OperatingMode) error + func (r *Runtime) SetSkillEnabled(ctx context.Context, id SkillID, enabled bool) error + func (r *Runtime) Skills(ctx context.Context) (_ SkillSnapshot, returnErr error) + func (r *Runtime) Snapshot() State + func (r *Runtime) Steer(messages ...ai.Message) error + func (r *Runtime) SubagentControlState(childSessionID string) (ChildControlState, error) + func (r *Runtime) SubmitTeamControl(ctx context.Context, request TeamControlRequest) (TeamControlReference, error) + func (r *Runtime) SubscribeEvents(afterCursor uint64) (*EventSubscription, error) + func (r *Runtime) TeamIntegrationRecoveries(ctx context.Context) ([]TeamIntegrationRecovery, error) + func (r *Runtime) TeamRecoveryCandidates() ([]TeamRecoveryCandidate, error) + func (r *Runtime) Tree(ctx context.Context) (SessionTree, error) + func (r *Runtime) WaitSubagent(ctx context.Context, childSessionID string) (subagent.Result, error) + func (r *Runtime) WorkspaceStatus(ctx context.Context) (changes.WorktreeStatus, error) + type RuntimeError struct + Code string + Fatal bool + Message string + type RuntimeStateError struct + Cause error + Operation string + Phase Phase + func (e *RuntimeStateError) Error() string + func (e *RuntimeStateError) Unwrap() error + type SessionCloseReason string + const SessionClosedCanceled + const SessionClosedFailed + const SessionClosedNormally + type SessionClosed struct + Reason SessionCloseReason + type SessionForked struct + AtEntryID string + SourceSessionID string + TargetSessionID string + type SessionNavigated struct + FromID string + ToID string + WithSummary bool + type SessionNode struct + Compacted bool + CreatedAt time.Time + Current bool + Depth int + HasSummary bool + ID string + Kind SessionNodeKind + Label string + OnActivePath bool + ParentID string + type SessionNodeKind string + const SessionNodeBranchSummary + const SessionNodeCompaction + const SessionNodeCustom + const SessionNodeLabel + const SessionNodeMessage + const SessionNodeModelChange + const SessionNodeName + type SessionOpened struct + ContextWindow int + Mode OperatingMode + ModelID string + Provider ai.Provider + Resumed bool + type SessionTarget struct + ID string + RetainEmpty bool + type SessionTree struct + LeafID string + MaxDepth int + Name string + Nodes []SessionNode + SessionID string + TotalNodes int + Truncated bool + func (tree SessionTree) Clone() SessionTree + type SessionTreeChanged struct + ContextTokens int + Tasks tasklist.Snapshot + Transcript ai.Messages + Tree SessionTree + type SkillDiagnostic struct + Code string + Message string + Resource string + type SkillID string + type SkillSnapshot struct + Diagnostics []SkillDiagnostic + Skills []SkillSummary + func (s SkillSnapshot) Clone() SkillSnapshot + type SkillSource string + const SkillSourceExtension + const SkillSourceProjectAgents + const SkillSourceProjectPips + const SkillSourceUnknown + const SkillSourceUserAgents + const SkillSourceUserPips + type SkillSummary struct + Description string + Enabled bool + ID SkillID + ModelInvocable bool + Name string + ResourceCount int + Source SkillSource + UserInvocable bool + type State struct + Approval ApprovalState + Changes *WorkspaceChanged + Compaction CompactionState + ContextTokens int + ContextWindow int + Diagnostics []IntegrationDiagnostic + Draft []MessageDelta + DraftCandidate CandidateIdentity + Interaction InteractionState + LastError *RuntimeError + MessageCandidates []CandidateIdentity + Mode OperatingMode + ModelID string + Phase Phase + PlanMode planmode.State + PlanReview PlanReviewState + Provider ai.Provider + Question QuestionState + Runs []RunState + Sequence uint64 + SessionID string + SessionOpen bool + Subagents []SubagentState + SyntheticMessages []int + Tasks tasklist.Snapshot + TeamControls []TeamControlLifecycleState + TeamIntegrations []TeamIntegrationLifecycleState + Teams []TeamLifecycleState + Tools []ToolState + Transcript ai.Messages + Tree SessionTree + func Reduce(state State, event Event) (State, error) + func (state State) Clone() State + func (state State) Durable() DurableState + func (state State) IsSessionProvisional() bool + type StatusChanged struct + Phase Phase + type SubagentLifecycle struct + Activity subagent.ActivitySummary + ChildRunID string + ChildSessionID string + Code string + Delivery subagent.Delivery + DurationMillis int64 + Identity subagent.AgentIdentity + Model string + ParentInteractionID string + ParentRunID string + ParentToolCallID string + Role subagent.Role + RootInteractionID string + State subagent.State + Stop agent.StopReason + TaskPreview string + ToolCalls int + Turns int + Usage TokenUsage + type SubagentState struct + Activity subagent.ActivitySummary + ChildRunID string + ChildSessionID string + Code string + Delivery subagent.Delivery + DurationMillis int64 + Identity subagent.AgentIdentity + Model string + ParentInteractionID string + ParentRunID string + ParentToolCallID string + Role subagent.Role + RootInteractionID string + State subagent.State + TaskPreview string + ToolCalls int + Turns int + Usage TokenUsage + type TeamActivity string + const TeamActivityAwaitingApproval + const TeamActivityAwaitingQuestion + const TeamActivityCapturing + const TeamActivityPreparing + const TeamActivityWorking + type TeamAdmissionMode string + const TeamAdmissionClean + const TeamAdmissionHEADOnly + type TeamAttemptRecoveryCandidate struct + AttemptID team.AttemptID + ContinuationID continuation.ID + ContinuationPhase continuation.Phase + ContinuationState continuation.Status + Diagnostic string + MemberID team.MemberID + ResourceState teamstate.AttemptState + RetryWork bool + SessionID string + TaskID team.TaskID + type TeamAttemptView struct + Activity TeamActivity + ChildSessionID string + Cleanup teamstate.CleanupClass + Code string + DomainState team.AttemptStatus + DurationMillis int64 + LifecycleState TeamLifecycleStatus + Number int + ResourceState teamstate.AttemptState + StartedAt time.Time + Target TeamWorkerTarget + ToolCalls int + Turns int + Usage TokenUsage + type TeamChangeView struct + At time.Time + AttemptID team.AttemptID + Cause team.Cause + From team.Status + MemberID team.MemberID + Revision team.Revision + TaskID team.TaskID + To team.Status + type TeamCleanupRequest struct + CloseWithoutIntegration bool + ExpectedResourceRevision team.Revision + TeamID team.ID + type TeamCleanupResult struct + Cleaned int + Retained int + State teamstate.State + TeamID team.ID + type TeamCleanupView struct + Class teamstate.CleanupClass + Complete int + Eligible int + Pending int + Retained int + type TeamConfirmation struct + Admission TeamAdmissionMode + ProposalID string + type TeamControlAction string + const TeamControlCancelTask + const TeamControlCancelTeam + const TeamControlFollowUp + const TeamControlInterruptAttempt + const TeamControlMessage + const TeamControlRejectQuestion + const TeamControlResolveApproval + const TeamControlResolveQuestion + const TeamControlRetryTask + type TeamControlLifecycle struct + Action TeamControlAction + AttemptID team.AttemptID + Code string + CommandID team.CommandID + MemberID team.MemberID + OwnerGeneration uint64 + Revision uint64 + State TeamControlStatus + TaskID team.TaskID + TeamID team.ID + type TeamControlLifecycleState struct + type TeamControlReference struct + Action TeamControlAction + CommandID team.CommandID + CreatedAt time.Time + TeamID team.ID + type TeamControlRequest struct + Action TeamControlAction + ExpectedAttemptID team.AttemptID + MemberID team.MemberID + OwnerGeneration uint64 + TaskID team.TaskID + TeamID team.ID + Text string + type TeamControlStatus string + const TeamControlApplied + const TeamControlApplying + const TeamControlDeliveryUnknown + const TeamControlPending + const TeamControlRejected + const TeamControlStale + type TeamControlView struct + Action TeamControlAction + AttemptID team.AttemptID + Code string + CommandID team.CommandID + CreatedAt time.Time + MemberID team.MemberID + OwnerGeneration uint64 + Revision uint64 + State TeamControlStatus + TaskID team.TaskID + UpdatedAt time.Time + type TeamIntegrationApproval struct + ID string + Token string + type TeamIntegrationLifecycle struct + Added int + Attempts int + Binary int + Changed int + Code string + Deleted int + Files int + IntegrationID string + State TeamIntegrationStatus + TeamID team.ID + VerificationState string + type TeamIntegrationLifecycleState struct + type TeamIntegrationPreview struct + ApprovalToken string + ApprovalTokenHash string + AttemptIDs []team.AttemptID + CommitOID string + DiffDigest string + ExpiresAt time.Time + ID string + Manifest teamintegration.Manifest + ProducesUnstagedChanges bool + ResourceRevision team.Revision + TreeOID string + Verification teamintegration.Verification + type TeamIntegrationRecovery = teamintegration.RecoveryCandidate + type TeamIntegrationRecoveryRequest struct + Action teamintegration.RecoveryAction + ID string + type TeamIntegrationRequest struct + TaskIDs []team.TaskID + Verification *execution.OperationSpec + type TeamIntegrationResult struct + Files int + ID string + ManifestDigest string + State string + type TeamIntegrationStatus string + const TeamIntegrationApplied + const TeamIntegrationApplying + const TeamIntegrationApprovalRequired + const TeamIntegrationConflict + const TeamIntegrationInterrupted + const TeamIntegrationReady + const TeamIntegrationRecoverable + const TeamIntegrationRejected + const TeamIntegrationRolledBack + const TeamIntegrationVerificationFailed + const TeamIntegrationVerified + type TeamLifecycle struct + Activity TeamActivity + AttemptID team.AttemptID + ChildSessionID string + Code string + DurationMillis int64 + MemberID team.MemberID + State TeamLifecycleStatus + TaskID team.TaskID + TeamID team.ID + ToolCalls int + Turns int + Usage TokenUsage + type TeamLifecycleState struct + type TeamLifecycleStatus string + const TeamLifecycleAdmitted + const TeamLifecycleCancelled + const TeamLifecycleCapturing + const TeamLifecycleCompleted + const TeamLifecycleFailed + const TeamLifecycleInterrupted + const TeamLifecyclePaused + const TeamLifecycleProposed + const TeamLifecycleRecoverable + const TeamLifecycleRunning + const TeamLifecycleWaiting + type TeamMemberView struct + ID team.MemberID + Name string + Role string + Status team.MemberStatus + type TeamProposal struct + Dirty bool + ExpiresAt time.Time + ID string + Request TeamProposalRequest + func (value TeamProposal) Clone() TeamProposal + type TeamProposalPrompt struct + Objective string + type TeamProposalRequest struct + Objective string + Tasks []TeamTaskSpec + Workers []TeamWorkerSpec + type TeamReadRequest struct + AfterControlRevision uint64 + AfterRevision team.Revision + TeamID team.ID + type TeamRecoveryCandidate struct + Attempts []TeamAttemptRecoveryCandidate + Diagnostics []TeamRecoveryDiagnostic + Disposition TeamRecoveryDisposition + InterruptedControl int + PendingControls int + ResourceRevision team.Revision + ResourceState teamstate.State + TeamID team.ID + TeamStatus team.Status + UpdatedAt time.Time + type TeamRecoveryDiagnostic struct + Code string + type TeamRecoveryDisposition string + const TeamRecoveryBlockedIdentity + const TeamRecoveryBlockedState + const TeamRecoveryResume + type TeamReference struct + Admission TeamAdmissionMode + BaseOID string + LeadMember team.MemberID + TeamID team.ID + type TeamResumeDecision struct + ExpectedResourceRevision team.Revision + RetryInterruptedWork bool + type TeamTaskSpec struct + AssignedWorker string + Dependencies []string + Description string + ID string + Title string + type TeamTaskView struct + AssignedMemberID team.MemberID + AttemptLimit int + DependencyIDs []team.TaskID + Description string + ID team.TaskID + Status team.TaskStatus + Title string + type TeamView struct + Attempts []TeamAttemptView + ChangeCursor team.Revision + Changes []TeamChangeView + ChangesPending bool + Cleanup TeamCleanupView + ControlCursor uint64 + ControlRevision uint64 + Controls []TeamControlView + ControlsPending bool + IntegrationPending bool + LeadMemberID team.MemberID + Members []TeamMemberView + Objective string + ResourceRevision team.Revision + ResourceState teamstate.State + Revision team.Revision + Status team.Status + Tasks []TeamTaskView + TeamID team.ID + func (view TeamView) Clone() TeamView + type TeamWorkerSpec struct + Name string + Role string + type TeamWorkerTarget struct + AttemptID team.AttemptID + MemberID team.MemberID + OwnerGeneration uint64 + TaskID team.TaskID + TeamID team.ID + type TelemetryEvent struct + AdmissionOutcome subagent.AdmissionOutcome + AdmissionReason subagent.AdmissionReason + Agent string + Answers int + Attempts int + Changes int + Chat bool + Code string + CompactionMode CompactionMode + Component string + DurationMillis int64 + Failed bool + Files int + IntegrationState string + IntegrationVerification string + Mode OperatingMode + ModelID string + Nodes int + Outcome InteractionOutcome + Phase Phase + PlanBytes int64 + PlanDecision string + Provider ai.Provider + Questions int + Resumed bool + Signal TelemetrySignal + Stop agent.StopReason + SubagentDelivery subagent.Delivery + SubagentDepth int + SubagentRole string + SubagentState string + TeamActivity string + TeamControlAction string + TeamControlState string + TeamScope string + TeamState string + Time time.Time + TokensAfter int + TokensBefore int + Tool string + ToolCalls int + Turns int + Type EventType + Usage TokenUsage + func Telemetry(event Event) (TelemetryEvent, error) + type TelemetryObserver interface + Observe func(context.Context, TelemetryEvent) error + type TelemetryObserverFunc func(context.Context, TelemetryEvent) error + func (f TelemetryObserverFunc) Observe(ctx context.Context, event TelemetryEvent) error + type TelemetrySignal string + const TelemetrySignalSubagentAdmission + type TokenUsage struct + CacheWriteTokens int + CachedInputTokens int + InputTokens int + OutputTokens int + ReasoningTokens int + type ToolCall struct + Arguments ai.JSON + ID string + Name string + type ToolCompleted struct + Call ToolCall + Result ai.ToolMessage + Turn int + type ToolStarted struct + Call ToolCall + Turn int + type ToolState struct + Call ToolCall + Result ai.ToolMessage + RunID string + Status ToolStatus + Turn int + Update []ai.Part + type ToolStatus string + const ToolStatusCompleted + const ToolStatusRunning + type ToolUpdated struct + Call ToolCall + Turn int + Update []ai.Part + func (payload *ToolUpdated) UnmarshalJSON(data []byte) error + func (payload ToolUpdated) MarshalJSON() ([]byte, error) + type TurnCompleted struct + Turn int + Usage TokenUsage + type TurnStarted struct + Turn int + type WorkspaceChange struct + Kind changes.Kind + Path string + PreviousPath string + type WorkspaceChanged struct + Additions int + Deletions int + Diff string + Entries []WorkspaceChange + Files int + Truncated bool v0.1.2 Sep 15, 2026 v0.1.1 Sep 15, 2026 v0.1.0 Aug 12, 2026