clientruntime

package
v0.1.15 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2026 License: MIT Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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 (r ControlplaneRuntime) BindSessionPlanRunStep(ctx context.Context, sessionID string, runID string) error

func (ControlplaneRuntime) BrowserModule added in v0.1.15

func (ControlplaneRuntime) BrowserProviderAction added in v0.1.15

func (r ControlplaneRuntime) BrowserProviderAction(ctx context.Context, providerID string, request setup.BrowserProviderActionRequest) (setup.BrowserProviderOption, error)

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) CreateMCPServer added in v0.1.15

func (ControlplaneRuntime) CreateSession

func (r ControlplaneRuntime) CreateSession(ctx context.Context, externalKey string, title string, workingDir string) (core.Session, error)

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 (r ControlplaneRuntime) CreateSkillDraft(ctx context.Context, name string, description string, tags []string, body string) (skills.Skill, error)

func (ControlplaneRuntime) CreateSystemMessage

func (r ControlplaneRuntime) CreateSystemMessage(ctx context.Context, sessionID string, content string) (core.Message, error)

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) DeleteMCPServer added in v0.1.15

func (r ControlplaneRuntime) DeleteMCPServer(ctx context.Context, serverID string) (setup.MCPConfigResponse, 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 (ControlplaneRuntime) GetWebSearchConfig added in v0.1.11

func (ControlplaneRuntime) InstallSkill added in v0.1.11

func (r ControlplaneRuntime) InstallSkill(ctx context.Context, path string) ([]skills.Skill, error)

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 (r ControlplaneRuntime) ListSessions(ctx context.Context) ([]core.Session, error)

func (ControlplaneRuntime) ListSetupProviders

func (r ControlplaneRuntime) ListSetupProviders(ctx context.Context) ([]setup.ProviderSetupItem, error)

func (ControlplaneRuntime) ListSkills added in v0.1.11

func (ControlplaneRuntime) ListStorageFiles

func (ControlplaneRuntime) ListTemporaryStorageFiles

func (r ControlplaneRuntime) ListTemporaryStorageFiles(ctx context.Context, limit int) (localstorage.TempListResult, error)

func (ControlplaneRuntime) MCPConfig added in v0.1.11

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 (r ControlplaneRuntime) RenameSession(ctx context.Context, sessionID string, title string) (core.Session, error)

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 (r ControlplaneRuntime) SaveStorageFile(ctx context.Context, storagePath string, content []byte, title string, tags []string, mimeType string) (localstorage.Entry, error)

func (ControlplaneRuntime) Search added in v0.1.7

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 (r ControlplaneRuntime) SessionSkills(ctx context.Context, sessionID string) ([]skills.Skill, error)

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 (r ControlplaneRuntime) SetSkillEnabled(ctx context.Context, id string, enabled bool) error

func (ControlplaneRuntime) SkillAction added in v0.1.11

func (r ControlplaneRuntime) SkillAction(ctx context.Context, id string, action string) error

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 (r ControlplaneRuntime) UnloadSkill(ctx context.Context, sessionID string, skillID string) error

func (ControlplaneRuntime) UpdateBrowserModule added in v0.1.15

func (ControlplaneRuntime) UpdateExternalAgent added in v0.1.6

func (ControlplaneRuntime) UpdateMCPConfig added in v0.1.11

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 (r ControlplaneRuntime) UpdateSessionModel(ctx context.Context, sessionID string, modelID string) (core.Session, error)

func (ControlplaneRuntime) UpdateSessionPermissionMode

func (r ControlplaneRuntime) UpdateSessionPermissionMode(ctx context.Context, sessionID string, mode core.PermissionMode) (core.Session, error)

func (ControlplaneRuntime) UpdateSessionProvider

func (r ControlplaneRuntime) UpdateSessionProvider(ctx context.Context, sessionID string, providerID string) (core.Session, error)

func (ControlplaneRuntime) UpdateSkillBody added in v0.1.11

func (r ControlplaneRuntime) UpdateSkillBody(ctx context.Context, id string, body string) error

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 (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 (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) Apply

func (s *State) Apply(event daemonclient.LiveEvent) error

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
	Subagents             []core.SubagentTask
	PendingInputs         []core.SessionInput
}

Jump to

Keyboard shortcuts

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