Documentation
¶
Index ¶
- func RegisterRoutes(router gin.IRouter, handlers *Handlers)
- func RegisterSurfaceRoutes(router gin.IRouter, handlers *Handlers, surfaceSet SurfaceSet)
- 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 WithAgentLoader(loader core.AgentLoader) Option
- func WithApprovalCoordinator(coordinator toolspkg.ApprovalCoordinator) Option
- func WithAutomation(manager core.AutomationManager) Option
- func WithBridgeService(bridges core.BridgeService) Option
- func WithClarifyBroker(broker toolspkg.ClarifyBroker) Option
- func WithCmdPalette(registry cmdpalette.Registry) Option
- func WithConfig(cfg *compozyconfig.Config) Option
- func WithCoordinationService(service workspacepkg.CoordinationCommands) Option
- func WithCoordinatorRole(resolver core.CoordinatorRoleResolver) Option
- func WithDaemonDrainController(controller core.DaemonDrainController) Option
- func WithDeadEntitySource(source doctor.DeadEntitySource) Option
- func WithDeviceAuth(auth gateway.DeviceAuthenticator) Option
- func WithDreamTrigger(trigger core.DreamTrigger) Option
- func WithEngine(engine *gin.Engine) Option
- func WithExtensionService(service ExtensionService) Option
- func WithGatewayAdmission(admission gateway.AdmissionController) Option
- func WithGatewayAuthLimiter(limiter *gateway.AuthFailureLimiter) Option
- func WithGatewayChallenge(tier gateway.Tier, resolver gateway.ChallengeResolver) Option
- func WithGatewayIngressLimiter(limiter *gateway.IngressRateLimiter) 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 WithHost(host string) Option
- func WithLogger(logger *slog.Logger) Option
- func WithLoopService(service core.LoopService) Option
- func WithMarketplaceCatalogService(service core.MarketplaceCatalogService) Option
- func WithMemoryExtractorService(service core.MemoryExtractorService) Option
- func WithMemoryProviderService(service core.MemoryProviderService) Option
- func WithMemorySessionLedgerService(service core.MemorySessionLedgerService) Option
- func WithMemoryStore(store *memory.Store) Option
- func WithModelCatalogService(service core.ModelCatalogService) Option
- func WithNetworkService(service core.NetworkService) Option
- func WithNetworkStore(store core.NetworkStore) Option
- func WithNetworkUsageStore(usage store.NetworkUsageStore) Option
- func WithNotificationPresetService(service core.NotificationPresetService) Option
- func WithNow(now func() time.Time) Option
- func WithObserver(observer core.Observer) Option
- func WithOnboardingStore(store core.OnboardingStore) Option
- func WithPollInterval(interval time.Duration) Option
- func WithPort(port int) Option
- func WithProfileService(service core.ProfileService) Option
- func WithProviderAuthSuccess(callback func()) Option
- func WithResourceOperatorAuth(middleware ...gin.HandlerFunc) 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 WithSessionHealthReader(reader core.SessionHealthReader) Option
- func WithSessionManager(manager core.SessionManager) Option
- func WithSettingsRestartController(controller core.SettingsRestartController) Option
- func WithSettingsService(service core.SettingsService) Option
- func WithSettingsUpdateController(controller core.SettingsUpdateController) Option
- func WithSkillResourceSyncer(syncer core.SkillResourceSyncer) Option
- func WithSkillsRegistry(registry core.SkillsRegistry) Option
- func WithSoulAuthoring(service core.SoulAuthoringService) Option
- func WithSoulRefresher(service core.SoulRefresher) Option
- func WithStartedAt(startedAt time.Time) Option
- func WithSupportBundleService(service core.SupportBundleService) Option
- func WithSurfaceSet(surfaceSet SurfaceSet) 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
- type SurfaceSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterRoutes ¶
RegisterRoutes registers the shared Compozy API routes on the supplied Gin router.
func RegisterSurfaceRoutes ¶
func RegisterSurfaceRoutes(router gin.IRouter, handlers *Handlers, surfaceSet SurfaceSet)
RegisterSurfaceRoutes constructs one physical route matrix for the listener.
Types ¶
type ExtensionService ¶
type ExtensionService = core.ExtensionService
ExtensionService exposes daemon-backed extension management to the HTTP API.
type Handlers ¶
type Handlers struct {
*core.BaseHandlers
Extensions ExtensionService
// contains filtered or unexported fields
}
Handlers expose request/response and SSE endpoints for the Compozy API.
type Option ¶
type Option func(*Server)
Option customizes HTTP 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 WithAgentLoader ¶
func WithAgentLoader(loader core.AgentLoader) Option
WithAgentLoader overrides agent definition loading.
func WithApprovalCoordinator ¶
func WithApprovalCoordinator(coordinator toolspkg.ApprovalCoordinator) Option
WithApprovalCoordinator injects the asynchronous tool-approval coordinator.
func WithAutomation ¶
func WithAutomation(manager core.AutomationManager) Option
WithAutomation injects the daemon-owned automation manager.
func WithBridgeService ¶
func WithBridgeService(bridges core.BridgeService) Option
WithBridgeService injects the daemon-owned bridge runtime.
func WithClarifyBroker ¶
func WithClarifyBroker(broker toolspkg.ClarifyBroker) Option
WithClarifyBroker injects the boot-scoped clarification authority.
func WithCmdPalette ¶
func WithCmdPalette(registry cmdpalette.Registry) Option
WithCmdPalette injects the command-palette registry into the HTTP server.
func WithConfig ¶
func WithConfig(cfg *compozyconfig.Config) Option
WithConfig overrides the runtime configuration used by the server.
func WithCoordinationService ¶
func WithCoordinationService(service workspacepkg.CoordinationCommands) Option
WithCoordinationService injects the atomic coordination command boundary.
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 WithDeviceAuth ¶
func WithDeviceAuth(auth gateway.DeviceAuthenticator) Option
WithDeviceAuth installs the device credential authority for tier listeners.
func WithDreamTrigger ¶
func WithDreamTrigger(trigger core.DreamTrigger) Option
WithDreamTrigger injects the dream-consolidation trigger surfaced by the daemon.
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 WithGatewayAdmission ¶
func WithGatewayAdmission(admission gateway.AdmissionController) Option
WithGatewayAdmission installs the fail-closed request gate for tier listeners.
func WithGatewayAuthLimiter ¶
func WithGatewayAuthLimiter(limiter *gateway.AuthFailureLimiter) Option
WithGatewayAuthLimiter overrides failed-auth throttling, primarily for deterministic tests.
func WithGatewayChallenge ¶
func WithGatewayChallenge(tier gateway.Tier, resolver gateway.ChallengeResolver) Option
WithGatewayChallenge mounts the nonce-only verification route on one tier listener.
func WithGatewayIngressLimiter ¶
func WithGatewayIngressLimiter(limiter *gateway.IngressRateLimiter) Option
WithGatewayIngressLimiter overrides public ingress throttling, primarily for deterministic tests.
func WithGatewayService ¶
func WithGatewayService(service core.GatewayService) Option
WithGatewayService installs 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 WithLoopService ¶
func WithLoopService(service core.LoopService) Option
WithLoopService injects the daemon-owned Loop public API facade.
func WithMarketplaceCatalogService ¶
func WithMarketplaceCatalogService(service core.MarketplaceCatalogService) Option
WithMarketplaceCatalogService injects the daemon-owned curated marketplace service.
func WithMemoryExtractorService ¶
func WithMemoryExtractorService(service core.MemoryExtractorService) Option
WithMemoryExtractorService injects the daemon-owned Memory v2 extractor runtime.
func WithMemoryProviderService ¶
func WithMemoryProviderService(service core.MemoryProviderService) Option
WithMemoryProviderService injects the daemon-owned MemoryProvider registry service.
func WithMemorySessionLedgerService ¶
func WithMemorySessionLedgerService(service core.MemorySessionLedgerService) Option
WithMemorySessionLedgerService injects the daemon-owned session ledger service.
func WithMemoryStore ¶
WithMemoryStore injects the memory store surfaced by the daemon.
func WithModelCatalogService ¶
func WithModelCatalogService(service core.ModelCatalogService) Option
WithModelCatalogService injects the daemon-owned provider model catalog service.
func WithNetworkService ¶
func WithNetworkService(service core.NetworkService) Option
WithNetworkService injects the runtime network manager.
func WithNetworkStore ¶
func WithNetworkStore(store core.NetworkStore) Option
WithNetworkStore injects the persisted network query store.
func WithNetworkUsageStore ¶
func WithNetworkUsageStore(usage store.NetworkUsageStore) Option
WithNetworkUsageStore injects the workspace network usage ledger reader.
func WithNotificationPresetService ¶
func WithNotificationPresetService(service core.NotificationPresetService) Option
WithNotificationPresetService injects the daemon-owned notification preset runtime.
func WithObserver ¶
WithObserver injects the runtime observer.
func WithOnboardingStore ¶
func WithOnboardingStore(store core.OnboardingStore) Option
WithOnboardingStore injects the first-run onboarding completion store.
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 WithResourceOperatorAuth ¶
func WithResourceOperatorAuth(middleware ...gin.HandlerFunc) Option
WithResourceOperatorAuth gates HTTP resource routes behind explicit operator auth middleware.
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 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 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 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 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 WithSupportBundleService ¶
func WithSupportBundleService(service core.SupportBundleService) Option
WithSupportBundleService injects the daemon-owned support bundle operation service.
func WithSurfaceSet ¶
func WithSurfaceSet(surfaceSet SurfaceSet) Option
WithSurfaceSet fixes the listener's route inventory without trusting request metadata.
func WithTaskService ¶
func WithTaskService(service core.TaskService) Option
WithTaskService injects the daemon-owned task service.
func WithTerminalProvider ¶
func WithTerminalProvider(provider core.TerminalProvider) Option
WithTerminalProvider injects the per-profile terminal managers.
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 TCP HTTP.
type SurfaceSet ¶
type SurfaceSet string
SurfaceSet identifies the route inventory fixed at listener construction.
const ( SurfaceSetLocal SurfaceSet = "local" SurfaceSetPrivate SurfaceSet = "private" SurfaceSetPublicIngress SurfaceSet = "public_ingress" SurfaceSetPublicOperator SurfaceSet = "public_operator" SurfaceSetPublicCombined SurfaceSet = "public_combined" )
Source Files
¶
- agent_options.go
- agent_routes.go
- bridge_control_routes.go
- bridge_manifest_routes.go
- bridge_routes.go
- clarify_options.go
- cmd_palette_options.go
- cmd_palette_routes.go
- extensions.go
- gateway_admission.go
- gateway_auth.go
- gateway_challenge.go
- gateway_ingress_rate_limit.go
- gateway_redeem.go
- gateway_routes.go
- handler_defaults.go
- handlers.go
- loop_options.go
- loops_routes.go
- mcp_oauth_callback.go
- memory_options.go
- middleware.go
- notification_routes.go
- profile_options.go
- profile_routes.go
- prompt.go
- roles_routes.go
- routes.go
- runtime_options.go
- server.go
- server_catalog_options.go
- server_gateway_options.go
- server_handler_config.go
- server_lifecycle.go
- server_network_options.go
- server_setup.go
- server_shutdown.go
- server_start.go
- session_attachment_options.go
- session_routes.go
- sessions.go
- static.go
- status_options.go
- surface_routes.go
- terminal_routes.go
- tool_approval_options.go
- tool_artifact_options.go
- window_manager_options.go
- window_manager_routes.go
- workspaces.go
- worktree_routes.go