Structs§
Enums§
- Runtime
Env - A local runtime environment, independent of build profile and cloud destination. Only an absent wire field defaults to production; invalid values fail decoding.
Functions§
- clear_
stale_ unix_ socket - Remove a Unix domain socket path only when nothing is accepting connections.
- default_
runtime_ root - is_
pid_ alive - meowclient_
endpoint_ label_ for_ workdir - meowclient_
named_ pipe_ name_ for_ workdir - owned_
daemon_ pid_ from_ file - If
pid_filenames a live process whose executable matchesexpected_binary, returns its pid. Missing files returnOk(None). Dead processes have their pid file removed and returnOk(None). Live processes with a different executable are left untouched and returnOk(None). - owned_
meowclient_ pid - Convenience wrapper: verify the default meowclient pid file against
expected_binary. - paths_
match - Compare process image paths, preferring canonical forms when available.
- pid_
matches_ executable - True when
pidis alive and its executable matchesexpected_binary. - process_
executable_ path - resolve_
runtime_ workdir - Resolve the runtime workdir from an explicit base home and startup env. The platform user home is needed only when no runtime home was supplied.
- resolve_
workdir - Compatibility helper for callers that only select production or development.
- runtime_
env - Libraries used before runtime startup retain the historical production default. Running processes set their immutable workdir before accepting any requests.
- runtime_
paths - runtime_
workdir - set_
runtime_ context - Freeze the environment and workdir supplied by the owning startup entrypoint. This does not consult HOME, build profiles, configuration, or directory names.
- set_
runtime_ workdir - Initialize an embedded production runtime with an explicit workdir.
Non-production callers must use
set_runtime_contextwith their startup env. - unix_
peer_ pid - Best-effort peer process id for a connected Unix domain socket.
- workdir_
identity_ hash - Stable workdir identity for endpoint names (pipe / labels).