Expand description
Shared status-api + MCP install (remote payload and embedded full apply).
Structsยง
- Ecosystem
Install Choice - Which ecosystem services to install (user opt-in, default neither).
Constantsยง
- API_
TOKEN_ DROP_ BASENAME - User-owned drop file basename for token capture (remote).
- DEFAULT_
INSTALL_ DIR - Default install prefix for box binaries and unit
ExecStartpaths. - ENSURE_
API_ TOKEN_ SCRIPT - Ensure
/etc/horto-os-ui/api.envexists with a random bearer token (0600). - MCP_
UNIT - MCP systemd unit from packaging (kept in sync via
include_str!). - STATUS_
API_ UNIT - Status-api systemd unit body (
ExecStartdefaults to/usr/local/bin).
Functionsยง
- api_
env_ ๐path - ensure_
api_ ๐env_ at - Create or reuse
horto-os-ui/api.envunderetc_rootand return the bearer hex. - install_
bin ๐ - install_
ecosystem_ after_ embedded_ apply - Resolve local bins and install selected ecosystem services after embedded full apply.
- install_
ecosystem_ services - Install selected ecosystem bins into
install_dirand enable chosen units. - install_
ecosystem_ ๐services_ at - Same as
install_ecosystem_services, with injectableetc_rootfor tests. - parse_
api_ ๐token_ line - random_
hex_ ๐token - remote_
enable_ ecosystem_ script - Shell fragment: install selected bins/units from
staging. - unit_
with_ install_ dir - Rewrite default
/usr/local/bin/ExecStartpaths for a custom install prefix. - write_
mode_ ๐600 - write_
unit_ ๐file