Documentation
¶
Index ¶
- func PermissionRequestFromApproval(approval core.Approval) core.PermissionRequest
- type ControlplaneRuntime
- func (r ControlplaneRuntime) AcknowledgeClientDelivery(ctx context.Context, deliveryID string) error
- func (r ControlplaneRuntime) CleanupTemporaryStorageFiles(ctx context.Context) (localstorage.CleanupResult, 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) 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) ListAutomationJobs(ctx context.Context) ([]automation.Job, error)
- func (r ControlplaneRuntime) ListClientDeliveries(ctx context.Context, filter core.ClientDeliveryFilter) ([]core.ClientDelivery, error)
- func (r ControlplaneRuntime) ListSessions(ctx context.Context) ([]core.Session, error)
- func (r ControlplaneRuntime) ListSetupProviders(ctx context.Context) ([]setup.ProviderSetupItem, 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) ModelsForSession(ctx context.Context, sessionID string) (string, string, []string, 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) 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) ServerStatus(ctx context.Context) (core.ServerStatus, error)
- func (r ControlplaneRuntime) SessionContext(ctx context.Context, sessionID string) (core.ContextReport, 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) UpdateTemporaryStorageSettings(ctx context.Context, autoCleanup *bool, ttlDays int64, maxGB float64) (localstorage.TempSettings, error)
- func (r ControlplaneRuntime) UseSession(ctx context.Context, externalKey string, sessionID string) (core.ClientBinding, 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) 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 (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) 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) ListSessions ¶
func (ControlplaneRuntime) ListSetupProviders ¶
func (r ControlplaneRuntime) ListSetupProviders(ctx context.Context) ([]setup.ProviderSetupItem, 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) ModelsForSession ¶
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) 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) 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) UpdateSessionModel ¶
func (ControlplaneRuntime) UpdateSessionPermissionMode ¶
func (r ControlplaneRuntime) UpdateSessionPermissionMode(ctx context.Context, sessionID string, mode core.PermissionMode) (core.Session, error)
func (ControlplaneRuntime) UpdateSessionProvider ¶
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) 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
}
Click to show internal directories.
Click to hide internal directories.