Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
_preview
command
Command _preview renders the user-facing CLI screens with realistic synthetic fixture data — used for social-preview screenshots, README updates, and visual review without exposing a live account.
|
Command _preview renders the user-facing CLI screens with realistic synthetic fixture data — used for social-preview screenshots, README updates, and visual review without exposing a live account. |
|
canary
command
Command canary provides terminal, MCP, app-host, and daemon entry points for the local trading harness.
|
Command canary provides terminal, MCP, app-host, and daemon entry points for the local trading harness. |
|
wire-assert
command
Command wire-assert reads a JSONL wire log (as emitted by IBKR_WIRE_LOG_PATH) and evaluates one named invariant against the frames produced after a given byte offset.
|
Command wire-assert reads a JSONL wire log (as emitted by IBKR_WIRE_LOG_PATH) and evaluates one named invariant against the frames produced after a given byte offset. |
|
internal
|
|
|
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. |
|
app/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. |
|
app/auth
Package auth manages Canary device pairing and app-session credentials.
|
Package auth manages Canary device pairing and app-session credentials. |
|
app/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. |
|
app/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. |
|
app/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. |
|
app/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. |
|
app/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. |
|
app/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. |
|
cli
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. |
|
config
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. |
|
daemon
Package daemon implements Canary's long-running runtime authority.
|
Package daemon implements Canary's long-running runtime authority. |
|
daemon/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. |
|
dial
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. |
|
discover
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. |
|
flexstmt
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). |
|
marketcal
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. |
|
mcp
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. |
|
productidentity
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. |
|
regimerows
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. |
|
risk
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 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. |
|
stress
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. |
|
tui
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. |
|
update
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. |
|
watchlist
Package watchlist stores the user's local ibkr watchlist.
|
Package watchlist stores the user's local ibkr watchlist. |
|
xdgcache
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. |
|
pkg
|
|
|
ibkr
Package ibkr implements a clean-room Go client for the Interactive Brokers TWS wire protocol.
|
Package ibkr implements a clean-room Go client for the Interactive Brokers TWS wire protocol. |
|
ibkr/internal/logging
Package logging is a tiny slog-backed shim that preserves the call-site API the ibkr package was originally written against (Component(name).Debugf/Infof/...).
|
Package logging is a tiny slog-backed shim that preserves the call-site API the ibkr package was originally written against (Component(name).Debugf/Infof/...). |
|
scripts
|
|
|
check-mcp-server-card
command
Command check-mcp-server-card verifies that public MCP discovery metadata exposes exactly the canonical runtime tool names and input schemas.
|
Command check-mcp-server-card verifies that public MCP discovery metadata exposes exactly the canonical runtime tool names and input schemas. |
|
commit-check
command
Command commit-check verifies the exact staged Git tree with a conservative, impact-aware subset of make check.
|
Command commit-check verifies the exact staged Git tree with a conservative, impact-aware subset of make check. |
|
docgen/cli-ref
command
Command cli-ref emits docs/docs/reference/cli.md from the CLI command registry.
|
Command cli-ref emits docs/docs/reference/cli.md from the CLI command registry. |
|
docgen/config-ref
command
Command config-ref emits docs/docs/reference/config.md from two kinds of sources:
|
Command config-ref emits docs/docs/reference/config.md from two kinds of sources: |
|
docgen/docs-html
command
Command docs-html renders the public documentation site from its Markdown sources.
|
Command docs-html renders the public documentation site from its Markdown sources. |
|
docgen/mcp-tools
command
Command mcp-tools emits docs/docs/reference/mcp-tools.md from the canonical tool registry at internal/mcp.Tools.
|
Command mcp-tools emits docs/docs/reference/mcp-tools.md from the canonical tool registry at internal/mcp.Tools. |
|
go-doc-audit
command
Command go-doc-audit reports missing, duplicated, and malformed Go documentation comments without evaluating build constraints.
|
Command go-doc-audit reports missing, duplicated, and malformed Go documentation comments without evaluating build constraints. |
|
refresh-spx-members
command
Command refresh-spx-members pulls the current S&P-500 constituent list from Wikipedia's "List of S&P 500 companies" article and rewrites internal/breadth/spx/members_data.go with the result.
|
Command refresh-spx-members pulls the current S&P-500 constituent list from Wikipedia's "List of S&P 500 companies" article and rewrites internal/breadth/spx/members_data.go with the result. |
|
release-ci-wait
command
Command release-ci-wait waits for one active GitHub Actions workflow and its exact required job set to succeed for a specific commit, branch, and event.
|
Command release-ci-wait waits for one active GitHub Actions workflow and its exact required job set to succeed for a specific commit, branch, and event. |
|
release-registry-server
command
Command release-registry-server derives a versioned MCP Registry document from an explicit release-tag server.json template and the release bundle's SHA-256 digest.
|
Command release-registry-server derives a versioned MCP Registry document from an explicit release-tag server.json template and the release bundle's SHA-256 digest. |
|
test-shard
command
Command test-shard runs one Go package's complete test inventory in a deterministic set of bounded parallel processes.
|
Command test-shard runs one Go package's complete test inventory in a deterministic set of bounded parallel processes. |
|
upgrade-fixtures
command
Command upgrade-fixtures-manifest writes the immutable provenance manifest for historical upgrade artifacts staged by refresh.sh.
|
Command upgrade-fixtures-manifest writes the immutable provenance manifest for historical upgrade artifacts staged by refresh.sh. |
|
web
|
|
|
app
Package appweb embeds the static Canary PWA assets served by the app host.
|
Package appweb embeds the static Canary PWA assets served by the app host. |
Click to show internal directories.
Click to hide internal directories.