clientruntime

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: May 14, 2026 License: MIT Imports: 11 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) CleanupTemporaryStorageFiles

func (r ControlplaneRuntime) CleanupTemporaryStorageFiles(ctx context.Context) (localstorage.CleanupResult, 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 (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) 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) 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) 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) ListStorageFiles

func (ControlplaneRuntime) ListTemporaryStorageFiles

func (r ControlplaneRuntime) ListTemporaryStorageFiles(ctx context.Context, limit int) (localstorage.TempListResult, 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) 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) 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) UpdateExternalAgent added in v0.1.6

func (r ControlplaneRuntime) UpdateExternalAgent(ctx context.Context, agentID string, enabled bool) ([]core.ExternalAgentDescriptor, 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) UpdateTemporaryStorageSettings

func (r ControlplaneRuntime) UpdateTemporaryStorageSettings(ctx context.Context, autoCleanup *bool, ttlDays int64, maxGB float64) (localstorage.TempSettings, error)

func (ControlplaneRuntime) UseSession

func (r ControlplaneRuntime) UseSession(ctx context.Context, externalKey string, sessionID string) (core.ClientBinding, 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
	Context               *core.ContextReport
	Run                   *core.Run
	Timing                *core.RunTiming
	Messages              []core.Message
	ToolUpdates           []core.ToolUpdate
	Approvals             []core.PermissionRequest
	ApprovalNotifications []core.PermissionNotification
	Files                 []core.FileSnapshot
}

Jump to

Keyboard shortcuts

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