Documentation
¶
Index ¶
- Variables
- func RegisterRoutes(router gin.IRouter, handlers *Handlers)
- type ExtensionService
- type Handlers
- type Option
- func WithAgentCatalog(catalog core.AgentCatalog) Option
- func WithAgentContext(service core.AgentContextService) Option
- func WithAgentDefinitionSync(syncer core.AgentDefinitionSync) Option
- func WithAgentHistoryPurgers(soulPurger core.SoulHistoryPurger, heartbeatPurger core.HeartbeatHistoryPurger) Option
- func WithAgentInstances(api *core.AgentInstanceAPI) Option
- func WithAgentLoader(loader core.AgentLoader) Option
- func WithAgentMemory(store *agentmemory.Store) Option
- func WithAppTokenManager(manager core.AppTokenManager) Option
- func WithApprovalCoordinator(coordinator toolspkg.ApprovalCoordinator) Option
- func WithAutomation(manager core.AutomationManager) Option
- func WithClarifyBroker(broker toolspkg.ClarifyBroker) Option
- func WithCmdPalette(registry cmdpalette.Registry) Option
- func WithConfig(cfg *compozyconfig.Config) Option
- func WithContextWindowResolver(resolver core.ContextWindowResolver) Option
- func WithCoordinatorRole(resolver core.CoordinatorRoleResolver) Option
- func WithDaemonDrainController(controller core.DaemonDrainController) Option
- func WithDeadEntitySource(source doctor.DeadEntitySource) Option
- func WithEngine(engine *gin.Engine) Option
- func WithExtensionService(service ExtensionService) Option
- func WithFileTreeReader(reader core.FileTreeReader) Option
- func WithGatewayService(service core.GatewayService) Option
- func WithHeartbeatAuthoring(service core.HeartbeatAuthoringService) Option
- func WithHeartbeatStatus(service core.HeartbeatStatusService) Option
- func WithHeartbeatWake(service core.HeartbeatWakeService) Option
- func WithHeartbeatWakeEventReader(reader core.HeartbeatWakeEventReader) Option
- func WithHomePaths(homePaths compozyconfig.HomePaths) Option
- func WithHostLoadSnapshotSource(source doctor.HostLoadSnapshotSource) Option
- func WithHostedMCP(service *mcppkg.HostedService) Option
- func WithLogger(logger *slog.Logger) Option
- func WithLoopService(service core.LoopService) Option
- func WithMCPHostAPI(service mcppkg.HostAPIInvoker) Option
- func WithMarketplaceCatalogService(service core.MarketplaceCatalogService) Option
- func WithModelCatalogService(service core.ModelCatalogService) Option
- func WithNow(now func() time.Time) Option
- func WithObserver(observer core.Observer) Option
- func WithOnboardingStore(store core.OnboardingStore) Option
- func WithOpenAPIDocument(document *core.OpenAPIDocument) Option
- func WithPollInterval(interval time.Duration) Option
- func WithProfileService(service core.ProfileService) Option
- func WithProviderAuthSuccess(callback func()) Option
- func WithProviderAuthVerdicts(verdicts *authproviders.AuthVerdicts) Option
- func WithProviderUsageService(service core.ProviderUsageService) Option
- func WithResourceService(service core.ResourceService) Option
- func WithRolesStatusProvider(provider core.RolesStatusProvider) Option
- func WithRuntimeMemorySnapshotSource(source doctor.RuntimeMemorySnapshotSource) Option
- func WithSchemaStreamStatusReader(reader core.SchemaStreamStatusReader) Option
- func WithSessionAttachmentStore(store core.SessionAttachmentStore) Option
- func WithSessionCatalog(catalog core.SessionCatalog) Option
- func WithSessionChangesReader(reader core.SessionChangesReader) Option
- func WithSessionFileSearcher(searcher core.SessionFileSearcher) Option
- func WithSessionHealthReader(reader core.SessionHealthReader) Option
- func WithSessionManager(manager core.SessionManager) Option
- func WithSessionMonitorService(service core.SessionMonitorService) Option
- func WithSessionProcessService(service core.SessionProcessService) Option
- func WithSettingsRestartController(controller core.SettingsRestartController) Option
- func WithSettingsService(service core.SettingsService) Option
- func WithSettingsUpdateController(controller core.SettingsUpdateController) Option
- func WithSkillExposureStore(repository store.SkillExposureRepository, events store.EventSummaryStore) Option
- func WithSkillResourceSyncer(syncer core.SkillResourceSyncer) Option
- func WithSkillsRegistry(registry core.SkillsRegistry) Option
- func WithSocketPath(path string) Option
- func WithSoulAuthoring(service core.SoulAuthoringService) Option
- func WithSoulRefresher(service core.SoulRefresher) Option
- func WithStartedAt(startedAt time.Time) Option
- func WithSubagentService(service session.SubagentService) Option
- func WithSupportBundleService(service core.SupportBundleService) Option
- func WithTaskDesignationStore(value core.TaskDesignationStore) Option
- func WithTaskService(service core.TaskService) Option
- func WithTerminalProvider(provider core.TerminalProvider) Option
- func WithToolApprovalGrantService(service core.ToolApprovalGrantService) Option
- func WithToolApprovalIssuer(issuer core.ToolApprovalIssuer) Option
- func WithToolArtifactStore(store toolspkg.ToolArtifactStore) Option
- func WithToolRegistry(registry core.ToolRegistry) Option
- func WithToolsetRegistry(registry core.ToolsetRegistry) Option
- func WithVaultService(service core.VaultService) Option
- func WithWindowManagerProvider(provider core.WindowManagerProvider) Option
- func WithWorkspaceAccessPolicy(policy workspaceaccess.Policy) Option
- func WithWorkspaceResolver(workspaces core.WorkspaceService) Option
- func WithWorktreeService(worktrees core.WorktreeService) Option
- type Server
Constants ¶
This section is empty.
Variables ¶
var ( ErrSessionManagerRequired = errors.New("udsapi: session manager is required") ErrTaskServiceRequired = errors.New("udsapi: task service is required") ErrObserverRequired = errors.New("udsapi: observer is required") ErrWorkspaceResolverRequired = errors.New("udsapi: workspace resolver is required") ErrSocketPathTooLong = errors.New("udsapi: socket path too long") )
Functions ¶
func RegisterRoutes ¶
RegisterRoutes registers the shared Compozy API routes on the supplied Gin router.
Types ¶
type ExtensionService ¶
type ExtensionService = core.ExtensionService
ExtensionService exposes daemon-backed extension management to the UDS API.
type Handlers ¶
type Handlers struct {
*core.BaseHandlers
Extensions ExtensionService
HostedMCP *mcppkg.HostedService
MCPHostAPI mcppkg.HostAPIInvoker
}
Handlers expose request/response and SSE endpoints for the Compozy API.
type Option ¶
type Option func(*Server)
Option customizes UDS server construction.
func WithAgentCatalog ¶
func WithAgentCatalog(catalog core.AgentCatalog) Option
WithAgentCatalog injects the projected resource-backed agent catalog.
func WithAgentContext ¶
func WithAgentContext(service core.AgentContextService) Option
WithAgentContext injects the bounded agent situation context service.
func WithAgentDefinitionSync ¶
func WithAgentDefinitionSync(syncer core.AgentDefinitionSync) Option
WithAgentDefinitionSync injects the daemon convergence seam used after authored mutations.
func WithAgentHistoryPurgers ¶
func WithAgentHistoryPurgers(soulPurger core.SoulHistoryPurger, heartbeatPurger core.HeartbeatHistoryPurger) Option
WithAgentHistoryPurgers injects scoped soul and heartbeat revision cleanup.
func WithAgentInstances ¶
func WithAgentInstances(api *core.AgentInstanceAPI) Option
func WithAgentLoader ¶
func WithAgentLoader(loader core.AgentLoader) Option
WithAgentLoader overrides agent definition loading.
func WithAgentMemory ¶
func WithAgentMemory(store *agentmemory.Store) Option
func WithAppTokenManager ¶
func WithAppTokenManager(manager core.AppTokenManager) Option
func WithApprovalCoordinator ¶
func WithApprovalCoordinator(coordinator toolspkg.ApprovalCoordinator) Option
func WithAutomation ¶
func WithAutomation(manager core.AutomationManager) Option
WithAutomation injects the daemon-owned automation manager.
func WithClarifyBroker ¶
func WithClarifyBroker(broker toolspkg.ClarifyBroker) Option
WithClarifyBroker injects the boot-scoped clarification authority.
func WithCmdPalette ¶
func WithCmdPalette(registry cmdpalette.Registry) Option
func WithConfig ¶
func WithConfig(cfg *compozyconfig.Config) Option
WithConfig overrides the runtime configuration used by the server.
func WithContextWindowResolver ¶
func WithContextWindowResolver(resolver core.ContextWindowResolver) Option
func WithCoordinatorRole ¶
func WithCoordinatorRole(resolver core.CoordinatorRoleResolver) Option
WithCoordinatorRole injects the resolved coordinator policy reader.
func WithDaemonDrainController ¶
func WithDaemonDrainController(controller core.DaemonDrainController) Option
WithDaemonDrainController injects daemon-global admission control.
func WithDeadEntitySource ¶
func WithDeadEntitySource(source doctor.DeadEntitySource) Option
WithDeadEntitySource injects durable runtime-reliability diagnostics.
func WithEngine ¶
WithEngine overrides the Gin engine used by the server, mainly for tests.
func WithExtensionService ¶
func WithExtensionService(service ExtensionService) Option
WithExtensionService injects daemon-backed extension management handlers.
func WithFileTreeReader ¶
func WithFileTreeReader(reader core.FileTreeReader) Option
func WithGatewayService ¶
func WithGatewayService(service core.GatewayService) Option
WithGatewayService injects operator-global gateway management handlers.
func WithHeartbeatAuthoring ¶
func WithHeartbeatAuthoring(service core.HeartbeatAuthoringService) Option
WithHeartbeatAuthoring injects the managed Heartbeat authoring surface.
func WithHeartbeatStatus ¶
func WithHeartbeatStatus(service core.HeartbeatStatusService) Option
WithHeartbeatStatus injects the Heartbeat status/read surface.
func WithHeartbeatWake ¶
func WithHeartbeatWake(service core.HeartbeatWakeService) Option
WithHeartbeatWake injects the manual Heartbeat wake surface.
func WithHeartbeatWakeEventReader ¶
func WithHeartbeatWakeEventReader(reader core.HeartbeatWakeEventReader) Option
WithHeartbeatWakeEventReader injects the retained Heartbeat wake audit reader.
func WithHomePaths ¶
func WithHomePaths(homePaths compozyconfig.HomePaths) Option
WithHomePaths overrides the resolved Compozy home layout.
func WithHostLoadSnapshotSource ¶
func WithHostLoadSnapshotSource(source doctor.HostLoadSnapshotSource) Option
WithHostLoadSnapshotSource injects host CPU pressure observations from load-aware admission.
func WithHostedMCP ¶
func WithHostedMCP(service *mcppkg.HostedService) Option
WithHostedMCP injects the hosted Compozy MCP session exposure service.
func WithLoopService ¶
func WithLoopService(service core.LoopService) Option
WithLoopService injects the daemon-owned Loop public API facade.
func WithMCPHostAPI ¶
func WithMCPHostAPI(service mcppkg.HostAPIInvoker) Option
WithMCPHostAPI injects the workspace-bound Host API façade used by compozy mcp serve.
func WithMarketplaceCatalogService ¶
func WithMarketplaceCatalogService(service core.MarketplaceCatalogService) Option
WithMarketplaceCatalogService injects the daemon-owned curated marketplace service.
func WithModelCatalogService ¶
func WithModelCatalogService(service core.ModelCatalogService) Option
WithModelCatalogService injects the daemon-owned provider model catalog service.
func WithObserver ¶
WithObserver injects the runtime observer.
func WithOnboardingStore ¶
func WithOnboardingStore(store core.OnboardingStore) Option
WithOnboardingStore injects the first-run onboarding completion store.
func WithOpenAPIDocument ¶
func WithOpenAPIDocument(document *core.OpenAPIDocument) Option
func WithPollInterval ¶
WithPollInterval overrides the SSE poll cadence.
func WithProfileService ¶
func WithProfileService(service core.ProfileService) Option
WithProfileService injects the daemon-owned profile lifecycle service.
func WithProviderAuthSuccess ¶
func WithProviderAuthSuccess(callback func()) Option
WithProviderAuthSuccess observes a successful live authentication probe.
func WithProviderAuthVerdicts ¶
func WithProviderAuthVerdicts(verdicts *authproviders.AuthVerdicts) Option
WithProviderAuthVerdicts shares the daemon's last live provider sign-in verdicts.
func WithProviderUsageService ¶
func WithProviderUsageService(service core.ProviderUsageService) Option
WithProviderUsageService injects profile-scoped provider usage.
func WithResourceService ¶
func WithResourceService(service core.ResourceService) Option
WithResourceService injects the shared operator-facing desired-state resource service.
func WithRolesStatusProvider ¶
func WithRolesStatusProvider(provider core.RolesStatusProvider) Option
WithRolesStatusProvider injects the effective role configuration reader.
func WithRuntimeMemorySnapshotSource ¶
func WithRuntimeMemorySnapshotSource(source doctor.RuntimeMemorySnapshotSource) Option
WithRuntimeMemorySnapshotSource injects daemon process-memory observations.
func WithSchemaStreamStatusReader ¶
func WithSchemaStreamStatusReader(reader core.SchemaStreamStatusReader) Option
WithSchemaStreamStatusReader injects daemon-global migration status diagnostics.
func WithSessionAttachmentStore ¶
func WithSessionAttachmentStore(store core.SessionAttachmentStore) Option
WithSessionAttachmentStore injects durable session attachment storage.
func WithSessionCatalog ¶
func WithSessionCatalog(catalog core.SessionCatalog) Option
WithSessionCatalog injects the daemon-owned session catalog.
func WithSessionChangesReader ¶
func WithSessionChangesReader(reader core.SessionChangesReader) Option
func WithSessionFileSearcher ¶
func WithSessionFileSearcher(searcher core.SessionFileSearcher) Option
WithSessionFileSearcher injects the session file search index.
func WithSessionHealthReader ¶
func WithSessionHealthReader(reader core.SessionHealthReader) Option
WithSessionHealthReader injects the metadata-only session health reader.
func WithSessionManager ¶
func WithSessionManager(manager core.SessionManager) Option
WithSessionManager injects the runtime session manager.
func WithSessionMonitorService ¶
func WithSessionMonitorService(service core.SessionMonitorService) Option
WithSessionMonitorService exposes the daemon-owned session monitors.
func WithSessionProcessService ¶
func WithSessionProcessService(service core.SessionProcessService) Option
func WithSettingsRestartController ¶
func WithSettingsRestartController(controller core.SettingsRestartController) Option
WithSettingsRestartController injects the daemon-owned restart action surface for settings handlers.
func WithSettingsService ¶
func WithSettingsService(service core.SettingsService) Option
WithSettingsService injects the daemon-owned settings service.
func WithSettingsUpdateController ¶
func WithSettingsUpdateController(controller core.SettingsUpdateController) Option
WithSettingsUpdateController injects the daemon-owned update status surface for settings handlers.
func WithSkillExposureStore ¶
func WithSkillExposureStore(repository store.SkillExposureRepository, events store.EventSummaryStore) Option
WithSkillExposureStore injects the durable skill exposure projection and ledger.
func WithSkillResourceSyncer ¶
func WithSkillResourceSyncer(syncer core.SkillResourceSyncer) Option
WithSkillResourceSyncer injects the resource-backed skill syncer surfaced by the daemon.
func WithSkillsRegistry ¶
func WithSkillsRegistry(registry core.SkillsRegistry) Option
WithSkillsRegistry injects the skills registry surfaced by the daemon.
func WithSocketPath ¶
WithSocketPath overrides the Unix socket path served by the API.
func WithSoulAuthoring ¶
func WithSoulAuthoring(service core.SoulAuthoringService) Option
WithSoulAuthoring injects the managed Soul authoring surface.
func WithSoulRefresher ¶
func WithSoulRefresher(service core.SoulRefresher) Option
WithSoulRefresher injects the session Soul refresh surface.
func WithStartedAt ¶
WithStartedAt overrides the daemon start time reported by the API.
func WithSubagentService ¶
func WithSubagentService(service session.SubagentService) Option
func WithSupportBundleService ¶
func WithSupportBundleService(service core.SupportBundleService) Option
WithSupportBundleService injects the daemon-owned support bundle operation service.
func WithTaskDesignationStore ¶
func WithTaskDesignationStore(value core.TaskDesignationStore) Option
WithTaskDesignationStore injects persisted task fan-out summaries.
func WithTaskService ¶
func WithTaskService(service core.TaskService) Option
WithTaskService injects the daemon-owned task service.
func WithTerminalProvider ¶
func WithTerminalProvider(provider core.TerminalProvider) Option
func WithToolApprovalGrantService ¶
func WithToolApprovalGrantService(service core.ToolApprovalGrantService) Option
WithToolApprovalGrantService injects durable native-tool approval management.
func WithToolApprovalIssuer ¶
func WithToolApprovalIssuer(issuer core.ToolApprovalIssuer) Option
WithToolApprovalIssuer injects the local approval-token issuer.
func WithToolArtifactStore ¶
func WithToolArtifactStore(store toolspkg.ToolArtifactStore) Option
WithToolArtifactStore injects retained oversized result storage.
func WithToolRegistry ¶
func WithToolRegistry(registry core.ToolRegistry) Option
WithToolRegistry injects the executable tool registry.
func WithToolsetRegistry ¶
func WithToolsetRegistry(registry core.ToolsetRegistry) Option
WithToolsetRegistry injects the named toolset projection registry.
func WithVaultService ¶
func WithVaultService(service core.VaultService) Option
WithVaultService injects the daemon-owned vault control surface.
func WithWindowManagerProvider ¶
func WithWindowManagerProvider(provider core.WindowManagerProvider) Option
WithWindowManagerProvider injects the per-profile window managers.
func WithWorkspaceAccessPolicy ¶
func WithWorkspaceAccessPolicy(policy workspaceaccess.Policy) Option
WithWorkspaceAccessPolicy injects the cross-workspace decision policy.
func WithWorkspaceResolver ¶
func WithWorkspaceResolver(workspaces core.WorkspaceService) Option
WithWorkspaceResolver injects the runtime workspace resolver/service.
func WithWorktreeService ¶
func WithWorktreeService(worktrees core.WorktreeService) Option
WithWorktreeService injects the workspace-scoped worktree service.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server exposes the daemon API over a Unix domain socket.
Source Files
¶
- agent_memory_options.go
- agent_options.go
- agent_routes.go
- app_sdk_options.go
- app_sdk_routes.go
- clarify_options.go
- cmd_palette_options.go
- cmd_palette_routes.go
- extension_mcp_options.go
- extensions.go
- gateway_options.go
- gateway_routes.go
- handler_config.go
- hosted_mcp.go
- loop_options.go
- loops_routes.go
- mcp_host_api.go
- mcp_host_api_errors.go
- profile_options.go
- profile_routes.go
- prompt.go
- roles_routes.go
- routes.go
- routes_extensions.go
- runtime_diagnostics_options.go
- runtime_options.go
- server.go
- server_catalog_options.go
- server_handler_config.go
- server_handlers.go
- server_lifecycle.go
- server_setup.go
- server_shutdown.go
- server_start.go
- session_attachment_options.go
- session_files_options.go
- session_routes.go
- sessions.go
- status_options.go
- terminal_routes.go
- tool_approval_options.go
- tool_artifact_options.go
- window_manager_options.go
- window_manager_routes.go
- worktree_routes.go