Documentation
¶
Index ¶
- func PermissionRequestFromApproval(approval core.Approval) core.PermissionRequest
- type ControlplaneRuntime
- func (r ControlplaneRuntime) AcknowledgeClientDelivery(ctx context.Context, deliveryID string) error
- func (r ControlplaneRuntime) AddPlanItem(ctx context.Context, sessionID string, text string, parentID string) (core.SessionPlan, error)
- func (r ControlplaneRuntime) BindSessionPlanRunStep(ctx context.Context, sessionID string, runID string) error
- func (r ControlplaneRuntime) CleanupTemporaryStorageFiles(ctx context.Context) (localstorage.CleanupResult, error)
- func (r ControlplaneRuntime) ClearSessionPlan(ctx context.Context, sessionID string) (core.SessionPlan, error)
- func (r ControlplaneRuntime) ClientName() string
- func (r ControlplaneRuntime) CompactSession(ctx context.Context, sessionID string) (core.CompactSessionResult, error)
- func (r ControlplaneRuntime) CompleteAutomationJob(ctx context.Context, jobID string) (automation.Job, error)
- func (r ControlplaneRuntime) ConfigureSetupProvider(ctx context.Context, providerID string, update setup.ProviderSetupUpdate) (setup.ProviderSetupItem, error)
- func (r ControlplaneRuntime) CreateAutomationJob(ctx context.Context, input automation.CreateJobInput) (automation.Job, error)
- func (r ControlplaneRuntime) CreateSession(ctx context.Context, externalKey string, title string, workingDir string) (core.Session, error)
- func (r ControlplaneRuntime) CreateSessionWithOptions(ctx context.Context, externalKey string, request core.CreateSessionRequest) (core.Session, error)
- func (r ControlplaneRuntime) CreateSkillDraft(ctx context.Context, name string, description string, tags []string, ...) (skills.Skill, error)
- func (r ControlplaneRuntime) CreateSystemMessage(ctx context.Context, sessionID string, content string) (core.Message, error)
- func (r ControlplaneRuntime) CurrentBinding(ctx context.Context, externalKey string) (core.ClientBinding, error)
- func (r ControlplaneRuntime) DeleteAutomationJob(ctx context.Context, jobID string) (automation.Job, error)
- func (r ControlplaneRuntime) DeleteSession(ctx context.Context, sessionID string) error
- func (r ControlplaneRuntime) DeleteSetupProvider(ctx context.Context, providerID string) error
- func (r ControlplaneRuntime) DeleteStorageFile(ctx context.Context, storagePath string) (localstorage.Entry, error)
- func (r ControlplaneRuntime) DeleteTemporaryStorageFile(ctx context.Context, tempPath string) (localstorage.TempEntry, error)
- func (r ControlplaneRuntime) GetSkill(ctx context.Context, id string) (skills.SkillDetail, error)
- func (r ControlplaneRuntime) GetWebSearchConfig(ctx context.Context) (setup.WebSearchConfigResponse, error)
- func (r ControlplaneRuntime) InstallSkill(ctx context.Context, path string) ([]skills.Skill, error)
- func (r ControlplaneRuntime) ListAutomationJobs(ctx context.Context) ([]automation.Job, error)
- func (r ControlplaneRuntime) ListClientDeliveries(ctx context.Context, filter core.ClientDeliveryFilter) ([]core.ClientDelivery, error)
- func (r ControlplaneRuntime) ListExternalAgents(ctx context.Context) ([]core.ExternalAgentDescriptor, error)
- func (r ControlplaneRuntime) ListSessions(ctx context.Context) ([]core.Session, error)
- func (r ControlplaneRuntime) ListSetupProviders(ctx context.Context) ([]setup.ProviderSetupItem, error)
- func (r ControlplaneRuntime) ListSkills(ctx context.Context, opts skills.SearchOptions) ([]skills.Skill, error)
- func (r ControlplaneRuntime) ListStorageFiles(ctx context.Context, filter localstorage.ListFilter) (localstorage.ListResult, error)
- func (r ControlplaneRuntime) ListTemporaryStorageFiles(ctx context.Context, limit int) (localstorage.TempListResult, error)
- func (r ControlplaneRuntime) MCPConfig(ctx context.Context) (setup.MCPConfigResponse, error)
- func (r ControlplaneRuntime) PauseAutomationJob(ctx context.Context, jobID string) (automation.Job, error)
- func (r ControlplaneRuntime) PromoteTemporaryStorageFile(ctx context.Context, tempPath string, destPath string) (localstorage.Entry, error)
- func (r ControlplaneRuntime) ProviderModelCatalog(ctx context.Context, providerID string, update setup.ProviderSetupUpdate) (setup.ProviderModelsResponse, error)
- func (r ControlplaneRuntime) ProviderModels(ctx context.Context, providerID string, update setup.ProviderSetupUpdate) ([]string, error)
- func (r ControlplaneRuntime) ReadStorageFile(ctx context.Context, storagePath string) (localstorage.ReadResult, error)
- func (r ControlplaneRuntime) RenameSession(ctx context.Context, sessionID string, title string) (core.Session, error)
- func (r ControlplaneRuntime) RestartDaemon(ctx context.Context) error
- func (r ControlplaneRuntime) RestartDaemonWithNotification(ctx context.Context) error
- func (r ControlplaneRuntime) ResumeAutomationJob(ctx context.Context, jobID string) (automation.Job, error)
- func (r ControlplaneRuntime) RunAutomationJobNow(ctx context.Context, jobID string) (automation.Fire, error)
- func (r ControlplaneRuntime) SaveStorageFile(ctx context.Context, storagePath string, content []byte, title string, ...) (localstorage.Entry, error)
- func (r ControlplaneRuntime) Search(ctx context.Context, filter core.SearchFilter) (core.SearchReport, error)
- func (r ControlplaneRuntime) SearchSkills(ctx context.Context, query string, opts skills.SearchOptions) ([]skills.Skill, error)
- func (r ControlplaneRuntime) SendMessage(ctx context.Context, sessionID string, content string) (core.AcceptRunResult, error)
- func (r ControlplaneRuntime) ServerStatus(ctx context.Context) (core.ServerStatus, error)
- func (r ControlplaneRuntime) SessionContext(ctx context.Context, sessionID string) (core.ContextReport, error)
- func (r ControlplaneRuntime) SessionModels(ctx context.Context, sessionID string) (core.SessionModelsResponse, error)
- func (r ControlplaneRuntime) SessionPlan(ctx context.Context, sessionID string) (core.SessionPlan, error)
- func (r ControlplaneRuntime) SessionSkills(ctx context.Context, sessionID string) ([]skills.Skill, error)
- func (r ControlplaneRuntime) SessionUsage(ctx context.Context, sessionID string) (core.UsageReport, error)
- func (r ControlplaneRuntime) SetSessionGoal(ctx context.Context, sessionID string, goal string) (core.SessionPlan, error)
- func (r ControlplaneRuntime) SetSkillEnabled(ctx context.Context, id string, enabled bool) error
- func (r ControlplaneRuntime) SkillAction(ctx context.Context, id string, action string) error
- func (r ControlplaneRuntime) StartSessionPlanRun(ctx context.Context, sessionID string, reset bool) (core.PlanRun, core.SessionPlan, error)
- func (r ControlplaneRuntime) StopDaemon(ctx context.Context) error
- func (r ControlplaneRuntime) UnloadSkill(ctx context.Context, sessionID string, skillID string) error
- func (r ControlplaneRuntime) UpdateExternalAgent(ctx context.Context, agentID string, update core.UpdateExternalAgentRequest) ([]core.ExternalAgentDescriptor, error)
- func (r ControlplaneRuntime) UpdateMCPConfig(ctx context.Context, update setup.MCPConfigUpdate) (setup.MCPConfigResponse, error)
- func (r ControlplaneRuntime) UpdateMCPServer(ctx context.Context, serverID string, update setup.MCPServerUpdate) (setup.MCPConfigResponse, error)
- func (r ControlplaneRuntime) UpdatePlanItem(ctx context.Context, sessionID string, itemID string, ...) (core.SessionPlan, error)
- func (r ControlplaneRuntime) UpdateSessionModel(ctx context.Context, sessionID string, modelID string) (core.Session, error)
- func (r ControlplaneRuntime) UpdateSessionPermissionMode(ctx context.Context, sessionID string, mode core.PermissionMode) (core.Session, error)
- func (r ControlplaneRuntime) UpdateSessionProvider(ctx context.Context, sessionID string, providerID string) (core.Session, error)
- func (r ControlplaneRuntime) UpdateSkillBody(ctx context.Context, id string, body string) error
- func (r ControlplaneRuntime) UpdateSkillMetadata(ctx context.Context, id string, update skills.MetadataUpdate) (skills.Skill, error)
- func (r ControlplaneRuntime) UpdateTemporaryStorageSettings(ctx context.Context, autoCleanup *bool, ttlDays int64, maxGB float64) (localstorage.TempSettings, error)
- func (r ControlplaneRuntime) UpdateVoiceModule(ctx context.Context, moduleID string, update setup.VoiceModuleUpdate) ([]setup.VoiceModuleDescriptor, error)
- func (r ControlplaneRuntime) UpdateWebSearchConfig(ctx context.Context, update setup.WebSearchConfig) (setup.WebSearchConfigResponse, error)
- func (r ControlplaneRuntime) UseSession(ctx context.Context, externalKey string, sessionID string) (core.ClientBinding, error)
- func (r ControlplaneRuntime) UseSkill(ctx context.Context, sessionID string, skillID string) (skills.SkillDetail, error)
- func (r ControlplaneRuntime) VoiceModules(ctx context.Context) ([]setup.VoiceModuleDescriptor, error)
- func (r ControlplaneRuntime) VoiceProviderAction(ctx context.Context, moduleID string, providerID string, ...) (setup.VoiceProviderOption, error)
- type DaemonClientFunc
- type State
- type StateSnapshot
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PermissionRequestFromApproval ¶
func PermissionRequestFromApproval(approval core.Approval) core.PermissionRequest
Types ¶
type ControlplaneRuntime ¶
type ControlplaneRuntime struct {
Client string
ExternalKey string
WorkingDir string
Daemon DaemonClientFunc
}
func (ControlplaneRuntime) AcknowledgeClientDelivery ¶
func (r ControlplaneRuntime) AcknowledgeClientDelivery(ctx context.Context, deliveryID string) error
func (ControlplaneRuntime) AddPlanItem ¶ added in v0.1.7
func (r ControlplaneRuntime) AddPlanItem(ctx context.Context, sessionID string, text string, parentID string) (core.SessionPlan, error)
func (ControlplaneRuntime) BindSessionPlanRunStep ¶ added in v0.1.7
func (ControlplaneRuntime) CleanupTemporaryStorageFiles ¶
func (r ControlplaneRuntime) CleanupTemporaryStorageFiles(ctx context.Context) (localstorage.CleanupResult, error)
func (ControlplaneRuntime) ClearSessionPlan ¶ added in v0.1.7
func (r ControlplaneRuntime) ClearSessionPlan(ctx context.Context, sessionID string) (core.SessionPlan, error)
func (ControlplaneRuntime) ClientName ¶
func (r ControlplaneRuntime) ClientName() string
func (ControlplaneRuntime) CompactSession ¶
func (r ControlplaneRuntime) CompactSession(ctx context.Context, sessionID string) (core.CompactSessionResult, error)
func (ControlplaneRuntime) CompleteAutomationJob ¶
func (r ControlplaneRuntime) CompleteAutomationJob(ctx context.Context, jobID string) (automation.Job, error)
func (ControlplaneRuntime) ConfigureSetupProvider ¶
func (r ControlplaneRuntime) ConfigureSetupProvider(ctx context.Context, providerID string, update setup.ProviderSetupUpdate) (setup.ProviderSetupItem, error)
func (ControlplaneRuntime) CreateAutomationJob ¶
func (r ControlplaneRuntime) CreateAutomationJob(ctx context.Context, input automation.CreateJobInput) (automation.Job, error)
func (ControlplaneRuntime) CreateSession ¶
func (ControlplaneRuntime) CreateSessionWithOptions ¶ added in v0.1.4
func (r ControlplaneRuntime) CreateSessionWithOptions(ctx context.Context, externalKey string, request core.CreateSessionRequest) (core.Session, error)
func (ControlplaneRuntime) CreateSkillDraft ¶ added in v0.1.11
func (ControlplaneRuntime) CreateSystemMessage ¶
func (ControlplaneRuntime) CurrentBinding ¶
func (r ControlplaneRuntime) CurrentBinding(ctx context.Context, externalKey string) (core.ClientBinding, error)
func (ControlplaneRuntime) DeleteAutomationJob ¶
func (r ControlplaneRuntime) DeleteAutomationJob(ctx context.Context, jobID string) (automation.Job, error)
func (ControlplaneRuntime) DeleteSession ¶
func (r ControlplaneRuntime) DeleteSession(ctx context.Context, sessionID string) error
func (ControlplaneRuntime) DeleteSetupProvider ¶
func (r ControlplaneRuntime) DeleteSetupProvider(ctx context.Context, providerID string) error
func (ControlplaneRuntime) DeleteStorageFile ¶
func (r ControlplaneRuntime) DeleteStorageFile(ctx context.Context, storagePath string) (localstorage.Entry, error)
func (ControlplaneRuntime) DeleteTemporaryStorageFile ¶
func (r ControlplaneRuntime) DeleteTemporaryStorageFile(ctx context.Context, tempPath string) (localstorage.TempEntry, error)
func (ControlplaneRuntime) GetSkill ¶ added in v0.1.11
func (r ControlplaneRuntime) GetSkill(ctx context.Context, id string) (skills.SkillDetail, error)
func (ControlplaneRuntime) GetWebSearchConfig ¶ added in v0.1.11
func (r ControlplaneRuntime) GetWebSearchConfig(ctx context.Context) (setup.WebSearchConfigResponse, error)
func (ControlplaneRuntime) InstallSkill ¶ added in v0.1.11
func (ControlplaneRuntime) ListAutomationJobs ¶
func (r ControlplaneRuntime) ListAutomationJobs(ctx context.Context) ([]automation.Job, error)
func (ControlplaneRuntime) ListClientDeliveries ¶
func (r ControlplaneRuntime) ListClientDeliveries(ctx context.Context, filter core.ClientDeliveryFilter) ([]core.ClientDelivery, error)
func (ControlplaneRuntime) ListExternalAgents ¶ added in v0.1.6
func (r ControlplaneRuntime) ListExternalAgents(ctx context.Context) ([]core.ExternalAgentDescriptor, error)
func (ControlplaneRuntime) ListSessions ¶
func (ControlplaneRuntime) ListSetupProviders ¶
func (r ControlplaneRuntime) ListSetupProviders(ctx context.Context) ([]setup.ProviderSetupItem, error)
func (ControlplaneRuntime) ListSkills ¶ added in v0.1.11
func (r ControlplaneRuntime) ListSkills(ctx context.Context, opts skills.SearchOptions) ([]skills.Skill, error)
func (ControlplaneRuntime) ListStorageFiles ¶
func (r ControlplaneRuntime) ListStorageFiles(ctx context.Context, filter localstorage.ListFilter) (localstorage.ListResult, error)
func (ControlplaneRuntime) ListTemporaryStorageFiles ¶
func (r ControlplaneRuntime) ListTemporaryStorageFiles(ctx context.Context, limit int) (localstorage.TempListResult, error)
func (ControlplaneRuntime) MCPConfig ¶ added in v0.1.11
func (r ControlplaneRuntime) MCPConfig(ctx context.Context) (setup.MCPConfigResponse, error)
func (ControlplaneRuntime) PauseAutomationJob ¶
func (r ControlplaneRuntime) PauseAutomationJob(ctx context.Context, jobID string) (automation.Job, error)
func (ControlplaneRuntime) PromoteTemporaryStorageFile ¶
func (r ControlplaneRuntime) PromoteTemporaryStorageFile(ctx context.Context, tempPath string, destPath string) (localstorage.Entry, error)
func (ControlplaneRuntime) ProviderModelCatalog ¶ added in v0.1.11
func (r ControlplaneRuntime) ProviderModelCatalog(ctx context.Context, providerID string, update setup.ProviderSetupUpdate) (setup.ProviderModelsResponse, error)
func (ControlplaneRuntime) ProviderModels ¶ added in v0.1.1
func (r ControlplaneRuntime) ProviderModels(ctx context.Context, providerID string, update setup.ProviderSetupUpdate) ([]string, error)
func (ControlplaneRuntime) ReadStorageFile ¶
func (r ControlplaneRuntime) ReadStorageFile(ctx context.Context, storagePath string) (localstorage.ReadResult, error)
func (ControlplaneRuntime) RenameSession ¶
func (ControlplaneRuntime) RestartDaemon ¶
func (r ControlplaneRuntime) RestartDaemon(ctx context.Context) error
func (ControlplaneRuntime) RestartDaemonWithNotification ¶
func (r ControlplaneRuntime) RestartDaemonWithNotification(ctx context.Context) error
func (ControlplaneRuntime) ResumeAutomationJob ¶
func (r ControlplaneRuntime) ResumeAutomationJob(ctx context.Context, jobID string) (automation.Job, error)
func (ControlplaneRuntime) RunAutomationJobNow ¶
func (r ControlplaneRuntime) RunAutomationJobNow(ctx context.Context, jobID string) (automation.Fire, error)
func (ControlplaneRuntime) SaveStorageFile ¶
func (ControlplaneRuntime) Search ¶ added in v0.1.7
func (r ControlplaneRuntime) Search(ctx context.Context, filter core.SearchFilter) (core.SearchReport, error)
func (ControlplaneRuntime) SearchSkills ¶ added in v0.1.11
func (r ControlplaneRuntime) SearchSkills(ctx context.Context, query string, opts skills.SearchOptions) ([]skills.Skill, error)
func (ControlplaneRuntime) SendMessage ¶ added in v0.1.11
func (r ControlplaneRuntime) SendMessage(ctx context.Context, sessionID string, content string) (core.AcceptRunResult, error)
func (ControlplaneRuntime) ServerStatus ¶
func (r ControlplaneRuntime) ServerStatus(ctx context.Context) (core.ServerStatus, error)
func (ControlplaneRuntime) SessionContext ¶
func (r ControlplaneRuntime) SessionContext(ctx context.Context, sessionID string) (core.ContextReport, error)
func (ControlplaneRuntime) SessionModels ¶ added in v0.1.12
func (r ControlplaneRuntime) SessionModels(ctx context.Context, sessionID string) (core.SessionModelsResponse, error)
func (ControlplaneRuntime) SessionPlan ¶ added in v0.1.7
func (r ControlplaneRuntime) SessionPlan(ctx context.Context, sessionID string) (core.SessionPlan, error)
func (ControlplaneRuntime) SessionSkills ¶ added in v0.1.11
func (ControlplaneRuntime) SessionUsage ¶ added in v0.1.7
func (r ControlplaneRuntime) SessionUsage(ctx context.Context, sessionID string) (core.UsageReport, error)
func (ControlplaneRuntime) SetSessionGoal ¶ added in v0.1.7
func (r ControlplaneRuntime) SetSessionGoal(ctx context.Context, sessionID string, goal string) (core.SessionPlan, error)
func (ControlplaneRuntime) SetSkillEnabled ¶ added in v0.1.11
func (ControlplaneRuntime) SkillAction ¶ added in v0.1.11
func (ControlplaneRuntime) StartSessionPlanRun ¶ added in v0.1.7
func (r ControlplaneRuntime) StartSessionPlanRun(ctx context.Context, sessionID string, reset bool) (core.PlanRun, core.SessionPlan, error)
func (ControlplaneRuntime) StopDaemon ¶ added in v0.1.10
func (r ControlplaneRuntime) StopDaemon(ctx context.Context) error
func (ControlplaneRuntime) UnloadSkill ¶ added in v0.1.11
func (ControlplaneRuntime) UpdateExternalAgent ¶ added in v0.1.6
func (r ControlplaneRuntime) UpdateExternalAgent(ctx context.Context, agentID string, update core.UpdateExternalAgentRequest) ([]core.ExternalAgentDescriptor, error)
func (ControlplaneRuntime) UpdateMCPConfig ¶ added in v0.1.11
func (r ControlplaneRuntime) UpdateMCPConfig(ctx context.Context, update setup.MCPConfigUpdate) (setup.MCPConfigResponse, error)
func (ControlplaneRuntime) UpdateMCPServer ¶ added in v0.1.11
func (r ControlplaneRuntime) UpdateMCPServer(ctx context.Context, serverID string, update setup.MCPServerUpdate) (setup.MCPConfigResponse, error)
func (ControlplaneRuntime) UpdatePlanItem ¶ added in v0.1.7
func (r ControlplaneRuntime) UpdatePlanItem(ctx context.Context, sessionID string, itemID string, status core.PlanItemStatus, text string) (core.SessionPlan, error)
func (ControlplaneRuntime) UpdateSessionModel ¶
func (ControlplaneRuntime) UpdateSessionPermissionMode ¶
func (r ControlplaneRuntime) UpdateSessionPermissionMode(ctx context.Context, sessionID string, mode core.PermissionMode) (core.Session, error)
func (ControlplaneRuntime) UpdateSessionProvider ¶
func (ControlplaneRuntime) UpdateSkillBody ¶ added in v0.1.11
func (ControlplaneRuntime) UpdateSkillMetadata ¶ added in v0.1.11
func (r ControlplaneRuntime) UpdateSkillMetadata(ctx context.Context, id string, update skills.MetadataUpdate) (skills.Skill, error)
func (ControlplaneRuntime) UpdateTemporaryStorageSettings ¶
func (r ControlplaneRuntime) UpdateTemporaryStorageSettings(ctx context.Context, autoCleanup *bool, ttlDays int64, maxGB float64) (localstorage.TempSettings, error)
func (ControlplaneRuntime) UpdateVoiceModule ¶ added in v0.1.9
func (r ControlplaneRuntime) UpdateVoiceModule(ctx context.Context, moduleID string, update setup.VoiceModuleUpdate) ([]setup.VoiceModuleDescriptor, error)
func (ControlplaneRuntime) UpdateWebSearchConfig ¶ added in v0.1.11
func (r ControlplaneRuntime) UpdateWebSearchConfig(ctx context.Context, update setup.WebSearchConfig) (setup.WebSearchConfigResponse, error)
func (ControlplaneRuntime) UseSession ¶
func (r ControlplaneRuntime) UseSession(ctx context.Context, externalKey string, sessionID string) (core.ClientBinding, error)
func (ControlplaneRuntime) UseSkill ¶ added in v0.1.11
func (r ControlplaneRuntime) UseSkill(ctx context.Context, sessionID string, skillID string) (skills.SkillDetail, error)
func (ControlplaneRuntime) VoiceModules ¶ added in v0.1.9
func (r ControlplaneRuntime) VoiceModules(ctx context.Context) ([]setup.VoiceModuleDescriptor, error)
func (ControlplaneRuntime) VoiceProviderAction ¶ added in v0.1.9
func (r ControlplaneRuntime) VoiceProviderAction(ctx context.Context, moduleID string, providerID string, request setup.VoiceProviderActionRequest) (setup.VoiceProviderOption, error)
type DaemonClientFunc ¶
type DaemonClientFunc func(externalKey string) (*daemonclient.Client, error)
type State ¶
type State struct {
// contains filtered or unexported fields
}
func NewState ¶
func NewState(snapshot core.ClientSnapshot) *State
func (*State) Snapshot ¶
func (s *State) Snapshot() StateSnapshot
type StateSnapshot ¶
type StateSnapshot struct {
SessionID string
Session *core.Session
Capabilities *core.SessionCapabilities
Context *core.ContextReport
Plan *core.SessionPlan
Run *core.Run
Timing *core.RunTiming
Messages []core.Message
ToolUpdates []core.ToolUpdate
Approvals []core.PermissionRequest
ApprovalNotifications []core.PermissionNotification
Files []core.FileSnapshot
}
Click to show internal directories.
Click to hide internal directories.