Skip to main content

Module selection

Module selection 

Source
Expand description

Build-time selection of which default-registry services the daemon hosts.

By default the daemon hosts every service (see build_default_registry). An operator can narrow that to a subset — e.g. only worktrees, with no Snowflake auth machinery and no browser-bridge TCP planes — via the daemon run --services flag or the SERVICES_ENV environment variable.

The selection is resolved at daemon build time and gates each service’s construction and registration; ServiceRegistry stays append-only, so a runtime enable/disable toggle remains a follow-up (#1318).

Because launchd/systemd exec a fixed daemon run command with a minimal environment, a shell env var never reaches a service-managed daemon; daemon start/restart therefore bake the resolved selection into the generated plist / unit as a --services a,b,c argument (see ServiceSelection::to_csv).

Enums§

DaemonServiceKind
One of the daemon’s default-registry services.
ServiceSelection
Which default-registry services a daemon should host.

Constants§

SERVICES_ENV
Environment variable naming the service subset the daemon should host (comma-separated canonical names). Honored by a manually-run daemon run; overridden by an explicit --services flag.