internal/

directory
v3.49.1 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 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 broker names the reads every broker must serve to the daemon: session health, account summary, positions, quotes, bars and instrument lookup.
Package broker names the reads every broker must serve to the daemon: session health, account summary, positions, quotes, bars and instrument lookup.
ibkr
Package ibkr adapts one *ibkr.Connector to the read seam in internal/broker.
Package ibkr adapts one *ibkr.Connector to the read seam in internal/broker.
opend
Package opend adapts the Futu OpenD client in pkg/futu to the daemon's read seam.
Package opend adapts the Futu OpenD client in pkg/futu to the daemon's read seam.
Package chainrec records a daily option-chain snapshot for research: one row per contract per run, with quotes, model greeks and open interest, so the desk owns its own options panel instead of buying one.
Package chainrec records a daily option-chain snapshot for research: one row per contract per run, with quotes, model greeks and open interest, so the desk owns its own options panel instead of buying one.
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 core is the strategy evaluator's arithmetic (internal-docs/design/strategy-evaluator.md): one fund held while a trend filter from a small library says so, sized so its volatility is at most its sleeve's risk allocation of the mandate's budget.
Package core is the strategy evaluator's arithmetic (internal-docs/design/strategy-evaluator.md): one fund held while a trend filter from a small library says so, sized so its volatility is at most its sleeve's risk allocation of the mandate's budget.
Code generated by config-ref -policy-help; DO NOT EDIT.
Code generated by config-ref -policy-help; DO NOT EDIT.
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
Package dial connects local adapters to the daemon's typed, newline-delimited
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 edge is Canary Edge's pure analytical core.
Package edge is Canary Edge's pure analytical core.
Package feedback composes the redacted diagnostic report behind `canary feedback` and the `canary_feedback` MCP tool, and the GitHub new-issue URL that opens the bug report form prefilled with it.
Package feedback composes the redacted diagnostic report behind `canary feedback` and the `canary_feedback` MCP tool, and the GitHub new-issue URL that opens the bug report form prefilled with it.
Package financing deterministically projects managed stock lending and net earned fees from retained statement evidence.
Package financing deterministically projects managed stock lending and net earned fees from retained statement evidence.
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 ibkrledger reads per-currency cash from an existing authenticated IBKR Web API session.
Package ibkrledger reads per-currency cash from an existing authenticated IBKR Web API session.
Package logepisode bounds repeated diagnostics without changing producer state.
Package logepisode bounds repeated diagnostics without changing producer state.
Package loglevel owns the shared log-verbosity contract for the daemon and the app host: one four-value level string, and a text handler that keeps process-lifecycle markers visible at any level.
Package loglevel owns the shared log-verbosity contract for the daemon and the app host: one four-value level string, and a text handler that keeps process-lifecycle markers visible at any level.
Package logrotate provides the size-capped log file writer shared by the daemon and the app host.
Package logrotate provides the size-capped log file writer shared by the daemon and the app host.
Package macrosource reads a fixed public economic-calendar and official-news source set.
Package macrosource reads a fixed public economic-calendar and official-news source set.
Package mandate evaluates the owner's mandate risk budget (internal-docs/design/mandate-risk-budget.md): the loss measure, premium at risk on every bought option plus the cash loss to every armed share stop, against the loss the mandate still allows (the headline); and ex-ante portfolio volatility by historical simulation with full revaluation of every leg, named gap and index stresses, which sizes the sleeve allocations and reports the daily swing.
Package mandate evaluates the owner's mandate risk budget (internal-docs/design/mandate-risk-budget.md): the loss measure, premium at risk on every bought option plus the cash loss to every armed share stop, against the loss the mandate still allows (the headline); and ex-ante portfolio volatility by historical simulation with full revaluation of every leg, named gap and index stresses, which sizes the sleeve allocations and reports the daily swing.
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 Canary's read-only desk tools to the Model Context Protocol over stdio.
Package mcp adapts Canary's read-only desk tools to the Model Context Protocol over stdio.
Package procinfo reads the identity of local processes for lifecycle commands (stop, restart, update activation) and best-effort discovery.
Package procinfo reads the identity of local processes for lifecycle commands (stop, restart, update activation) and best-effort discovery.
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 publichttp chooses the request identity Canary presents to public data sources.
Package publichttp chooses the request identity Canary presents to public data sources.
Package redact is Canary's one text redactor for free text that leaves the machine: the scheduled log monitor's samples and the `canary feedback` report.
Package redact is Canary's one text redactor for free text that leaves the machine: the scheduled log monitor's samples and the `canary feedback` report.
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 register is the compiled side of the strategy register (internal-docs/design/strategy-register.md; owner decision 2026-10-18 09:01 CEST: "one register for all machine strategies, the ladder stage in Canary's risk policy, shadow on the production path, and strategies declaring the data Canary collects").
Package register is the compiled side of the strategy register (internal-docs/design/strategy-register.md; owner decision 2026-10-18 09:01 CEST: "one register for all machine strategies, the ladder stage in Canary's risk policy, shadow on the production path, and strategies declaring the data Canary collects").
Package risk provides pure risk-policy evaluation and related domain contracts.
Package risk provides pure risk-policy evaluation and related domain contracts.
rpc
Package rpc defines the stable method names, envelopes, and typed payloads broker authority remain in the daemon.
Package rpc defines the stable method names, envelopes, and typed payloads broker authority remain in the daemon.
api
Package api declares every daemon method once, with the request it takes and the result it answers.
Package api declares every daemon method once, with the request it takes and the result it answers.
Package scorecard is the decision scorecard's pure core.
Package scorecard is the decision scorecard's pure core.
Package setups evaluates a fixed entry-observation template without I/O.
Package setups evaluates a fixed entry-observation template without I/O.
Package strategy reconstructs conservative option-strategy groups from exact current position identities.
Package strategy reconstructs conservative option-strategy groups from exact current position identities.
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 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 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