Expand description
Canonical configuration lives in the reusable SDK; existing public paths remain valid.
Structs§
- Config
Input - Input for the
configMCP tool (no parameters; reads the default path). - Config
Report - Structured output of
omni config/ theconfigMCP tool. - Loaded
- The result of loading a config: the resolved path, whether it existed, and the (possibly empty/default) config.
- Omni
Config - The whole declarative connection config.
- Resolved
Endpoint - A leaf endpoint produced by resolving a target (a single transport with the name of the concrete target it came from).
- Target
- A named connection target: exactly one of a single
transportendpoint (unicast) or agroupof other target names (multicast fan-out). - Target
Summary - A one-line summary of a configured target for the
omni configreport.
Enums§
- Transport
- How omni reaches a single endpoint. Serialized with an internal
typetag, e.g.{ type: adb-broadcast, serial: ABC123 }.
Constants§
- CONFIG_
ENV - Environment variable that overrides the config file path outright.
- CONFIG_
REL_ PATH - Config path relative to the XDG /
~/.configconfig directory. - DEFAULT_
SENDER_ PACKAGE - Default
sender_packageextra for the Android/adb path, within the receiver allowlist (com.harryaskham.*). The Android transport bead (bd-17026f) owns the final lock; config may override per target. - EXAMPLE_
CONFIG - A commented, ready-to-edit starter config emitted by
omni config --example. It exercises every transport (adb-broadcast, tcp, relay) plus a fan-outgroup, so a new user can copy it to~/.config/omni/config.yamland edit. MUST stay a validOmniConfig(a test parses it).
Functions§
- default_
config_ path - The default config path, from
$OMNI_CONFIG, else$XDG_CONFIG_HOME/omni/config.yaml, else$HOME/.config/omni/config.yaml, else a relative.config/omni/config.yamlfallback. - load
- Load (and validate) the config from the resolved path. A missing file is not an error — it yields an empty config so fresh machines work.
- report
- Load the default config and build its report (used by the MCP
configtool). - resolve_
config_ path - Resolve the config path: explicit
--configwins, elsedefault_config_path.