Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Acquire ¶
Acquire attempts to take the Agentic instance lock for runtimeDir. The returned bool is false when another live process currently holds the lock; in that case owner contains any metadata that could be read.
func MetadataPath ¶
MetadataPath returns the path used for diagnostic owner metadata.
Types ¶
type Lock ¶
type Lock struct {
// contains filtered or unexported fields
}
Lock represents an acquired instance lock. Call Close when the desktop app exits.
type Owner ¶
type Owner struct {
PID int `json:"pid"`
PGID int `json:"pgid,omitempty"`
StartedAt time.Time `json:"started_at"`
StateDir string `json:"state_dir"`
Config string `json:"config_path"`
Version string `json:"version,omitempty"`
}
Owner is best-effort metadata about the process holding an Agentic instance lock. It is diagnostic only; the OS-held lock is the authority.
Click to show internal directories.
Click to hide internal directories.