Documentation
¶
Index ¶
- func IsRuntimeLLMFacadeRequest(r *http.Request) bool
- func NewAgentExecutor(di do.Injector) (*adapters.AgentExecutor, error)
- func NewAgentRunner(di do.Injector) (*adapters.AgentRunner, error)
- func NewCacheController(di do.Injector) (*cache.Controller, error)
- func NewCapProxyServer(di do.Injector) (*capproxy.Server, error)
- func NewCapabilityProvider(di do.Injector) (capabilities.Provider, error)
- func NewCapabilitySandboxResolver(di do.Injector) (*adapters.CapabilitySandboxResolver, error)
- func NewCellExecutor(di do.Injector) (*adapters.CellExecutor, error)
- func NewCleanupRunner(di do.Injector) (*cleanup.Runner, error)
- func NewConfigStore(di do.Injector) (*configstore.ConfigStore, error)
- func NewDashboardOverviewAggregator(di do.Injector) (*dashboard.Aggregator, error)
- func NewDashboardOverviewHub(di do.Injector) (*dashboard.Hub, error)
- func NewDatabase(di do.Injector) (*storagesqlite.Database, error)
- func NewDeletionRecovery(di do.Injector) (*sandboxes.DeletionRecovery, error)
- func NewEgressProxy(di do.Injector) (*proxy.EgressProxy, error)
- func NewEngineCapabilitySnapshot(di do.Injector) (capmatrix.Snapshot, error)
- func NewEventDispatcher(di do.Injector) (*events.Dispatcher, error)
- func NewImageBackends(di do.Injector) (*adapters.ImageBackends, error)
- func NewLLMClient(di do.Injector) (*adapters.LLMClient, error)
- func NewLLMUpstreamProber(di do.Injector) (*adapters.LLMUpstreamProber, error)
- func NewProjectController(di do.Injector) (*projects.Controller, error)
- func NewProjectOctoBusTargetResolver(di do.Injector) (*adapters.ProjectOctoBusTargetResolver, error)
- func NewResourceLocator(di do.Injector) (*resources.Locator, error)
- func NewRunCompletionManager(di do.Injector) (*runs.CompletionManager, error)
- func NewRunController(di do.Injector) (*runs.Controller, error)
- func NewRunLogHub(do.Injector) (*runs.RunLogHub, error)
- func NewRuntimeProvider(di do.Injector) (adapters.RuntimeProvider, error)
- func NewSandboxDriver(di do.Injector) (*adapters.SandboxDriver, error)
- func NewSandboxEgressMediation(di do.Injector) (*adapters.SandboxEgressProxy, error)
- func NewSandboxRPCBridge(di do.Injector) (*adapters.SandboxRPCBridge, error)
- func NewSandboxRemovalCoordinator(di do.Injector) (*sandboxes.RemovalCoordinator, error)
- func NewSandboxRunTargetResolver(di do.Injector) (*runs.SandboxRunTargetResolver, error)
- func NewSandboxStore(di do.Injector) (*sandboxstore.Store, error)
- func NewSchedulerCommandExecutor(di do.Injector) (*adapters.SchedulerCommandExecutor, error)
- func NewSchedulerController(di do.Injector) (*schedulers.Controller, error)
- func NewSchedulerSandboxRunner(di do.Injector) (*adapters.SchedulerSandboxRunner, error)
- func NewTelemetryProvider(di do.Injector) (*telemetry.Provider, error)
- func NewTelemetryRecorder(di do.Injector) (*telemetry.Recorder, error)
- func NewVolumeManager(di do.Injector) (*volumes.Manager, error)
- func NewWorkspaceProvisioner(di do.Injector) (*workspaces.Provisioner, error)
- func Register(di do.Injector)
- func RegisterDependencies(di do.Injector)
- func RegisterRoutes(di do.Injector)
- func Setup(di do.Injector)
- func StartBackground(di do.Injector) error
- func StopBackground(ctx context.Context, di do.Injector) error
- type RunSupervisor
- func (s *RunSupervisor) AbandonRunCompletion(ctx context.Context, runID, reason string) (domain.ProjectRunRecord, bool, error)
- func (s *RunSupervisor) Attach(ctx context.Context, receive runs.RunAttachReceiver, send runs.RunAttachSender) error
- func (s *RunSupervisor) ReattachRun(run domain.ProjectRunRecord, onFailure func(error))
- func (s *RunSupervisor) Run(ctx context.Context, req runs.RunAgentRequest, stream *runs.StreamSink) (domain.ProjectRunRecord, error, error)
- func (s *RunSupervisor) Shutdown(ctx context.Context) error
- func (s *RunSupervisor) StartRun(ctx context.Context, req runs.RunAgentRequest) (domain.ProjectRunRecord, error)
- func (s *RunSupervisor) StopActiveRun(ctx context.Context, runID, reason string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAgentExecutor ¶
func NewAgentExecutor(di do.Injector) (*adapters.AgentExecutor, error)
func NewAgentRunner ¶
func NewAgentRunner(di do.Injector) (*adapters.AgentRunner, error)
func NewCacheController ¶
func NewCacheController(di do.Injector) (*cache.Controller, error)
func NewCapabilityProvider ¶
func NewCapabilityProvider(di do.Injector) (capabilities.Provider, error)
func NewCapabilitySandboxResolver ¶
func NewCapabilitySandboxResolver(di do.Injector) (*adapters.CapabilitySandboxResolver, error)
func NewCellExecutor ¶
func NewCellExecutor(di do.Injector) (*adapters.CellExecutor, error)
func NewConfigStore ¶
func NewConfigStore(di do.Injector) (*configstore.ConfigStore, error)
func NewDashboardOverviewAggregator ¶
func NewDashboardOverviewAggregator(di do.Injector) (*dashboard.Aggregator, error)
func NewDatabase ¶
func NewDatabase(di do.Injector) (*storagesqlite.Database, error)
func NewDeletionRecovery ¶
func NewDeletionRecovery(di do.Injector) (*sandboxes.DeletionRecovery, error)
func NewEgressProxy ¶
func NewEgressProxy(di do.Injector) (*proxy.EgressProxy, error)
NewEgressProxy builds the daemon's forward proxy: the enforcement point that makes a declared sandbox network policy real on a driver that has no enforcement surface of its own. The mediation is both its authorizer (which sandbox does this credential belong to) and its policy source (what does that sandbox's project declare now).
func NewEngineCapabilitySnapshot ¶
NewEngineCapabilitySnapshot freezes the engine capability matrix once, when the daemon composes its routes. It reads static driver declarations and the provider facts selected from configuration, so it never probes a runtime.
func NewEventDispatcher ¶
func NewEventDispatcher(di do.Injector) (*events.Dispatcher, error)
func NewImageBackends ¶
func NewImageBackends(di do.Injector) (*adapters.ImageBackends, error)
func NewLLMUpstreamProber ¶
func NewLLMUpstreamProber(di do.Injector) (*adapters.LLMUpstreamProber, error)
NewLLMUpstreamProber builds the shared upstream protocol prober used by the startup sweep and by the LLM service after a provider write.
func NewProjectController ¶
func NewProjectController(di do.Injector) (*projects.Controller, error)
func NewProjectOctoBusTargetResolver ¶
func NewProjectOctoBusTargetResolver(di do.Injector) (*adapters.ProjectOctoBusTargetResolver, error)
func NewRunCompletionManager ¶
func NewRunCompletionManager(di do.Injector) (*runs.CompletionManager, error)
func NewRunController ¶
func NewRunController(di do.Injector) (*runs.Controller, error)
func NewRuntimeProvider ¶
func NewRuntimeProvider(di do.Injector) (adapters.RuntimeProvider, error)
func NewSandboxDriver ¶
func NewSandboxDriver(di do.Injector) (*adapters.SandboxDriver, error)
func NewSandboxEgressMediation ¶
func NewSandboxEgressMediation(di do.Injector) (*adapters.SandboxEgressProxy, error)
NewSandboxEgressMediation builds the one mediation value the daemon shares: the proxy uses it as its authorizer and policy source, the creation seam uses it to decide whether a sandbox is given the proxy, and the admission report uses it to name the mechanism that will apply a declaration. One value means the three cannot disagree about whether the engine mediates.
func NewSandboxRPCBridge ¶
func NewSandboxRPCBridge(di do.Injector) (*adapters.SandboxRPCBridge, error)
func NewSandboxRemovalCoordinator ¶
func NewSandboxRemovalCoordinator(di do.Injector) (*sandboxes.RemovalCoordinator, error)
func NewSandboxRunTargetResolver ¶
func NewSandboxRunTargetResolver(di do.Injector) (*runs.SandboxRunTargetResolver, error)
func NewSandboxStore ¶
func NewSandboxStore(di do.Injector) (*sandboxstore.Store, error)
func NewSchedulerCommandExecutor ¶
func NewSchedulerCommandExecutor(di do.Injector) (*adapters.SchedulerCommandExecutor, error)
func NewSchedulerController ¶
func NewSchedulerController(di do.Injector) (*schedulers.Controller, error)
func NewSchedulerSandboxRunner ¶
func NewSchedulerSandboxRunner(di do.Injector) (*adapters.SchedulerSandboxRunner, error)
func NewTelemetryProvider ¶
NewTelemetryProvider builds the daemon trace provider from the same OTLP endpoint and headers that configure native provider export in the guest. An unset endpoint yields a disabled provider, so a daemon without telemetry configuration exports nothing and opens no new connection.
func NewTelemetryRecorder ¶
NewTelemetryRecorder exposes the daemon recorder to the components that start spans and record metrics. It is a no-op recorder while the provider is disabled.
func NewWorkspaceProvisioner ¶
func NewWorkspaceProvisioner(di do.Injector) (*workspaces.Provisioner, error)
func RegisterDependencies ¶
func RegisterRoutes ¶
func StartBackground ¶
Types ¶
type RunSupervisor ¶
type RunSupervisor struct {
// contains filtered or unexported fields
}
func NewRunSupervisor ¶
func NewRunSupervisor(di do.Injector) (*RunSupervisor, error)
func (*RunSupervisor) AbandonRunCompletion ¶
func (s *RunSupervisor) AbandonRunCompletion(ctx context.Context, runID, reason string) (domain.ProjectRunRecord, bool, error)
AbandonRunCompletion ends a run whose staged sandbox cleanup will not converge, so an operator has a way out of a run that the retry loop cannot finish. It reports abandoned=false when the run was already terminal; a run that is still executing is refused by the completion manager, because that run has to be stopped rather than abandoned.
func (*RunSupervisor) Attach ¶
func (s *RunSupervisor) Attach(ctx context.Context, receive runs.RunAttachReceiver, send runs.RunAttachSender) error
func (*RunSupervisor) ReattachRun ¶
func (s *RunSupervisor) ReattachRun(run domain.ProjectRunRecord, onFailure func(error))
ReattachRun follows a detached run left running by an earlier daemon until it ends. Like StartRun, the run is registered so StopRun can reach it and is counted in wg so Shutdown waits for the follower to disconnect. onFailure is called when the re-attach returns an error, e.g. the sandbox or runtime could not be loaded, so the caller can still finalize the run.
func (*RunSupervisor) Run ¶
func (s *RunSupervisor) Run(ctx context.Context, req runs.RunAgentRequest, stream *runs.StreamSink) (domain.ProjectRunRecord, error, error)
func (*RunSupervisor) StartRun ¶
func (s *RunSupervisor) StartRun(ctx context.Context, req runs.RunAgentRequest) (domain.ProjectRunRecord, error)
func (*RunSupervisor) StopActiveRun ¶
StopActiveRun lets the controller close a prompt session according to its own turn state before falling back to context cancellation for command and non-interactive runs.
Source Files
¶
- app.go
- background.go
- background_shutdown.go
- egress_l7_tls.go
- guest_abi_providers.go
- llm_config.go
- llm_facade.go
- project_agent_model_resolver.go
- project_controller.go
- project_network_admission.go
- project_network_report.go
- run_controller.go
- run_supervisor.go
- scheduler_controller.go
- scheduler_sandbox_recovery.go
- telemetry.go