internal/

directory
v2.8.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 9, 2026 License: MIT

Directories

Path Synopsis
app
Package app assembles and runs the independently authenticated Canary HTTP and PWA host.
Package app assembles and runs the independently authenticated Canary HTTP and PWA host.
alerts
Package alerts turns daemon-authored alert state into redacted app inbox records and Web Push work.
Package alerts turns daemon-authored alert state into redacted app inbox records and Web Push work.
auth
Package auth manages Canary device pairing and app-session credentials.
Package auth manages Canary device pairing and app-session credentials.
daemonclient
Package daemonclient adapts the app host to the daemon's typed RPC surface.
Package daemonclient adapts the app host to the daemon's typed RPC surface.
http
Package apphttp registers the Canary app's authenticated HTTP routes and maps internal state and daemon RPC values onto explicit browser DTOs.
Package apphttp registers the Canary app's authenticated HTTP routes and maps internal state and daemon RPC values onto explicit browser DTOs.
live
Package live maintains the app host's refreshable daemon snapshot and publishes change events to local subscribers.
Package live maintains the app host's refreshable daemon snapshot and publishes change events to local subscribers.
push
Package push validates app-owned subscriptions and sends redacted Web Push payloads.
Package push validates app-owned subscriptions and sends redacted Web Push payloads.
relay
Package relay connects the local Canary app host to an optional public relay.
Package relay connects the local Canary app host to an optional public relay.
state
Package state owns the Canary app's private durable state, including paired devices, push subscriptions, redacted inbox records, attention cursors, and app-local delivery evidence.
Package state owns the Canary app's private durable state, including paired devices, push subscriptions, redacted inbox records, attention cursors, and app-local delivery evidence.
breadth
spx
Package spx computes S&P 500 breadth measurements locally from a validated constituent universe and daily closes obtained through the daemon's broker connector.
Package spx computes S&P 500 breadth measurements locally from a validated constituent universe and daily closes obtained through the daemon's broker connector.
Package cli adapts typed daemon contracts and local workflows into Canary commands, machine-readable output, and terminal rendering.
Package cli adapts typed daemon contracts and local workflows into Canary commands, machine-readable output, and terminal rendering.
Package config loads and validates operator-owned TOML configuration for gateway identity, daemon behavior, and capability enablement.
Package config loads and validates operator-owned TOML configuration for gateway identity, daemon behavior, and capability enablement.
Package daemon implements Canary's long-running runtime authority.
Package daemon implements Canary's long-running runtime authority.
corestore
Package corestore owns the daemon's authoritative SQLite state in daemon.db.
Package corestore owns the daemon's authoritative SQLite state in daemon.db.
Package dial connects local adapters to the daemon's typed, newline-delimited JSON protocol over a Unix socket.
Package dial connects local adapters to the daemon's typed, newline-delimited JSON protocol over a Unix socket.
Package discover finds an IB Gateway or TWS endpoint on the local host when the user hasn't pinned one in config.
Package discover finds an IB Gateway or TWS endpoint on the local host when the user hasn't pinned one in config.
Package flexstmt parses IBKR Flex query statements into typed records for the post-trade reconciliation engine (internal-docs/design/post-trade-truth.md).
Package flexstmt parses IBKR Flex query statements into typed records for the post-trade reconciliation engine (internal-docs/design/post-trade-truth.md).
Package marketcal queries embedded official exchange-session calendars without consulting broker contract metadata or the network.
Package marketcal queries embedded official exchange-session calendars without consulting broker contract metadata or the network.
Package mcp adapts the daemon's read, research, and preview capabilities to the Model Context Protocol over stdio.
Package mcp adapts the daemon's read, research, and preview capabilities to the Model Context Protocol over stdio.
Package productidentity defines Canary's public executable identity and the durable pre-rename identifiers that must remain stable for safety.
Package productidentity defines Canary's public executable identity and the durable pre-rename identifiers that must remain stable for safety.
Package regimerows builds presentation-oriented regime rows, bands, and provenance labels from typed RPC results.
Package regimerows builds presentation-oriented regime rows, bands, and provenance labels from typed RPC results.
Package risk provides pure risk-policy evaluation and related domain contracts.
Package risk provides pure risk-policy evaluation and related domain contracts.
Package rpc defines the stable method names, envelopes, and typed payloads shared by the daemon and its CLI, MCP, and app adapters.
Package rpc defines the stable method names, envelopes, and typed payloads shared by the daemon and its CLI, MCP, and app adapters.
Package stress composes the portfolio Stress assessment from typed account, position, regime, and market-event inputs.
Package stress composes the portfolio Stress assessment from typed account, position, regime, and market-event inputs.
Package tui adapts the CLI command catalog and renderers into an interactive full-screen terminal interface.
Package tui adapts the CLI command catalog and renderers into an interactive full-screen terminal interface.
Package update implements the local self-update lifecycle: discover a published release, download and verify its signed artifacts, install the binary atomically under an install lock, and coordinate explicitly requested process restarts.
Package update implements the local self-update lifecycle: discover a published release, download and verify its signed artifacts, install the binary atomically under an install lock, and coordinate explicitly requested process restarts.
Package watchlist stores the user's local ibkr watchlist.
Package watchlist stores the user's local ibkr watchlist.
Package xdgcache provides shared filesystem primitives for user data and caches: same-directory temp-and-rename replacement, non-blocking process locks, and XDG-aware cache-directory resolution.
Package xdgcache provides shared filesystem primitives for user data and caches: same-directory temp-and-rename replacement, non-blocking process locks, and XDG-aware cache-directory resolution.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL