service

package
v0.1.26 Latest Latest
Warning

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

Go to latest
Published: May 30, 2026 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EventMetadataAgentTurn   = protocol.EventMetadataAgentTurn
	EventMetadataLocalSubmit = protocol.EventMetadataLocalSubmit
)
View Source
const (
	EventInfo                          = protocol.EventInfo
	EventError                         = protocol.EventError
	EventAssistantDelta                = protocol.EventAssistantDelta
	EventReasoningDelta                = protocol.EventReasoningDelta
	EventPlanDelta                     = protocol.EventPlanDelta
	EventPlanCompleted                 = protocol.EventPlanCompleted
	EventPlanUpdate                    = protocol.EventPlanUpdate
	EventProviderRetry                 = protocol.EventProviderRetry
	EventToolCall                      = protocol.EventToolCall
	EventToolResult                    = protocol.EventToolResult
	EventTaskStarted                   = protocol.EventTaskStarted
	EventTaskProgress                  = protocol.EventTaskProgress
	EventTaskCompleted                 = protocol.EventTaskCompleted
	EventMCPStatus                     = protocol.EventMCPStatus
	EventMCPComplete                   = protocol.EventMCPComplete
	EventApprovalRequired              = protocol.EventApprovalRequired
	EventUserInputRequired             = protocol.EventUserInputRequired
	EventUserInputDone                 = protocol.EventUserInputDone
	EventSessionsListed                = protocol.EventSessionsListed
	EventLocalSubmitResult             = protocol.EventLocalSubmitResult
	EventLocalSubmitDone               = protocol.EventLocalSubmitDone
	EventDiffResult                    = protocol.EventDiffResult
	EventBtwStarted                    = protocol.EventBtwStarted
	EventBtwDelta                      = protocol.EventBtwDelta
	EventBtwDone                       = protocol.EventBtwDone
	EventBtwError                      = protocol.EventBtwError
	EventTurnDone                      = protocol.EventTurnDone
	EventModelSelectionRequested       = protocol.EventModelSelectionRequested
	EventPermissionsSelectionRequested = protocol.EventPermissionsSelectionRequested
	EventSkillsSelectionRequested      = protocol.EventSkillsSelectionRequested
	EventSkillsManagerUpdated          = protocol.EventSkillsManagerUpdated
	EventPluginsManagerUpdated         = protocol.EventPluginsManagerUpdated
	EventReviewRequested               = protocol.EventReviewRequested
	EventViewModeChanged               = protocol.EventViewModeChanged
	EventSkillLoaded                   = protocol.EventSkillLoaded
	EventWorktreeExitPrompt            = protocol.EventWorktreeExitPrompt
	EventExitRequested                 = protocol.EventExitRequested
	EventScreenClearRequested          = protocol.EventScreenClearRequested
	EventSessionHydrated               = protocol.EventSessionHydrated
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event = protocol.Event

type EventKind

type EventKind = protocol.EventKind

type Intent

type Intent struct {
	Kind           IntentKind
	Input          string
	HiddenInput    bool
	ToolCallID     string
	UserInput      *core.UserInputResponse
	SessionInput   string
	Model          string
	Effort         string
	Thinking       string
	ApprovalMode   string
	ViewMode       string
	SkillName      string
	SkillEnabled   bool
	PluginID       string
	PluginEnabled  bool
	SkillBinding   *app.SkillBinding
	WorktreeAction string
}

type IntentKind

type IntentKind string
const (
	IntentSubmit              IntentKind = "submit"
	IntentSubmitLocal         IntentKind = "submit_local"
	IntentAllowTool           IntentKind = "allow_tool"
	IntentAllowToolForSession IntentKind = "allow_tool_for_session"
	IntentDenyTool            IntentKind = "deny_tool"
	IntentCancelToolApproval  IntentKind = "cancel_tool_approval"
	IntentSubmitUserInput     IntentKind = "submit_user_input"
	IntentCancelUserInput     IntentKind = "cancel_user_input"
	IntentSelectSession       IntentKind = "select_session"
	IntentRequestSessions     IntentKind = "request_sessions"
	IntentRequestExit         IntentKind = "request_exit"
	IntentShutdown            IntentKind = "shutdown"
	IntentSetModelAndEffort   IntentKind = "set_model_and_effort"
	IntentSetApprovalMode     IntentKind = "set_approval_mode"
	IntentSetViewMode         IntentKind = "set_view_mode"
	IntentToggleMode          IntentKind = "toggle_mode"
	IntentImplementPlan       IntentKind = "implement_plan"
	IntentDeclinePlan         IntentKind = "decline_plan"
	IntentRequestSkillsManage IntentKind = "request_skills_manage"
	IntentSetSkillEnabled     IntentKind = "set_skill_enabled"
	IntentSetPluginEnabled    IntentKind = "set_plugin_enabled"
	IntentWorktreeExitChoice  IntentKind = "worktree_exit_choice"
)

type Service

type Service struct {
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, cfg app.Config, start app.StartOptions) (*Service, error)

func (*Service) Close added in v0.1.4

func (s *Service) Close() error

func (*Service) Dispatch

func (s *Service) Dispatch(in Intent)

func (*Service) DispatchProtocol added in v0.1.26

func (s *Service) DispatchProtocol(in protocol.Intent)

func (*Service) Events

func (s *Service) Events() <-chan Event

func (*Service) Model added in v0.1.1

func (s *Service) Model() string

func (*Service) PluginsForManager added in v0.1.15

func (s *Service) PluginsForManager() []plugins.PluginStatus

func (*Service) PrepareOpenCommand added in v0.1.18

func (s *Service) PrepareOpenCommand(line string) (string, *exec.Cmd, error)

func (*Service) ReasoningEffort added in v0.1.1

func (s *Service) ReasoningEffort() string

func (*Service) SessionID

func (s *Service) SessionID() string

func (*Service) SetViewMode added in v0.1.20

func (s *Service) SetViewMode(mode string) error

func (*Service) ShowReasoning added in v0.1.23

func (s *Service) ShowReasoning() bool

func (*Service) SkillSuggestions added in v0.1.11

func (s *Service) SkillSuggestions() []skills.SkillView

func (*Service) SkillsForManager added in v0.1.11

func (s *Service) SkillsForManager() []skills.SkillView

func (*Service) ThinkingEnabled added in v0.1.1

func (s *Service) ThinkingEnabled() bool

func (*Service) ViewMode added in v0.1.15

func (s *Service) ViewMode() string

func (*Service) WorkspaceRoot

func (s *Service) WorkspaceRoot() string

Jump to

Keyboard shortcuts

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