Configuration Package¶
paglets.config owns startup and launch configuration.
Responsibilities¶
- Parse
~/.paglets/launch.toml. - Sync the bundled launch configuration on first start or when requested.
- Resolve startup agent classes, initial state, singleton settings, and IDs.
- Resolve resident service declarations and lifecycle settings.
Main Modules¶
paglets.config.startup- Defines launch-config dataclasses, bundled config loading, config sync, and startup/resident-service resolution helpers.
paglets.config.defaults- Contains package data for the bundled
launch.tomlconfiguration.
Implementation Notes¶
Startup config references classes by importable qualified name or by class-level startup metadata. The resolver materializes initial state through the serialization layer.
Sync behavior is controlled by LaunchConfigSyncAction and the CLI flags for
interactive confirmation, forced sync, or disabling launch-config sync.
API Reference¶
paglets.config.startup
¶
AutoStartSpec
dataclass
¶
Class-level marker for agents that can be started from launch config.
Source code in src/paglets/config/startup.py
LaunchConfig
dataclass
¶
Parsed paglets launch config.
Source code in src/paglets/config/startup.py
LaunchConfigSyncResult
dataclass
¶
Result of syncing the bundled demo launch config to the user path.
Source code in src/paglets/config/startup.py
ResidentServiceConfig
dataclass
¶
One launch-config entry describing a managed resident service.
Source code in src/paglets/config/startup.py
StartupAgentConfig
dataclass
¶
One launch-config entry describing an agent to start.