Expand description
Process instance registry for managing running agent instances.
Each running agent registers a JSON file in .hyper-agent/ (relative to cwd)
containing its PID, mode, config path, and start time. This allows the CLI
to list and stop running instances.
Structs§
- Instance
Info - Information about a running agent instance.
Enums§
- Instance
Error - Error type for instance registry operations.
Functions§
- is_
alive - Check whether a process with the given PID is still running.
- list_
instances - List all registered instances, filtering out stale entries whose processes are no longer alive.
- register_
instance - Register a running instance by writing its info to the registry directory.
- stop_
all_ instances - Stop all registered instances.
- stop_
instance - Stop an instance by sending SIGTERM, then unregister it.
- unregister_
instance - Remove an instance from the registry.