internal/

directory
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 22, 2026 License: MIT

Directories

Path Synopsis
Package capability detects what the running macOS supports so the Telegram layer can hide (or politely reject) features that need a newer OS than the host has.
Package capability detects what the running macOS supports so the Telegram layer can hide (or politely reject) features that need a newer OS than the host has.
Package config loads runtime secrets from the macOS Keychain.
Package config loads runtime secrets from the macOS Keychain.
domain
apps
Package apps exposes a control surface for the Mac's running user-facing applications: list them, quit them gracefully, force-kill them, or hide their windows.
Package apps exposes a control surface for the Mac's running user-facing applications: list them, quit them gracefully, force-kill them, or hide their windows.
battery
Package battery reads battery percentage, charging state, and long-term health from `pmset -g batt` and `system_profiler SPPowerDataType`.
Package battery reads battery percentage, charging state, and long-term health from `pmset -g batt` and `system_profiler SPPowerDataType`.
bluetooth
Package bluetooth wraps the `blueutil` brew formula to expose Bluetooth radio + paired-device control.
Package bluetooth wraps the `blueutil` brew formula to expose Bluetooth radio + paired-device control.
display
Package display exposes brightness and screensaver control for the built-in display.
Package display exposes brightness and screensaver control for the built-in display.
media
Package media captures still images and recordings of the Mac: screenshots via `screencapture`, screen recordings via the same CLI's record mode, and webcam single-frame photos via the optional `imagesnap` brew formula.
Package media captures still images and recordings of the Mac: screenshots via `screencapture`, screen recordings via the same CLI's record mode, and webcam single-frame photos via the optional `imagesnap` brew formula.
music
Package music exposes player-agnostic playback control + now- playing metadata via the third-party `nowplaying-cli` binary.
Package music exposes player-agnostic playback control + now- playing metadata via the third-party `nowplaying-cli` binary.
notify
Package notify sends desktop notifications and text-to-speech.
Package notify sends desktop notifications and text-to-speech.
power
Package power exposes lock / sleep / restart / shutdown / logout + keep-awake controls.
Package power exposes lock / sleep / restart / shutdown / logout + keep-awake controls.
sound
Package sound exposes macOS audio output controls — volume, mute, and text-to-speech.
Package sound exposes macOS audio output controls — volume, mute, and text-to-speech.
status
Package status aggregates a single one-screen dashboard snapshot by composing the other read-only domain packages.
Package status aggregates a single one-screen dashboard snapshot by composing the other read-only domain packages.
system
Package system exposes read-only macOS inspection: OS version and build, hardware model, chip, memory, CPU load and top processes, thermal pressure, and approximate temperatures.
Package system exposes read-only macOS inspection: OS version and build, hardware model, chip, memory, CPU load and top processes, thermal pressure, and approximate temperatures.
tools
Package tools groups small utility capabilities that don't warrant their own domain package: clipboard read/write, timezone query and set, mounted-volume listing and ejection, and the user-Shortcuts CLI runner.
Package tools groups small utility capabilities that don't warrant their own domain package: clipboard read/write, timezone query and set, mounted-volume listing and ejection, and the user-Shortcuts CLI runner.
wifi
Package wifi controls the Mac's Wi-Fi radio and reads its current state.
Package wifi controls the Mac's Wi-Fi radio and reads its current state.
Package keychain wraps the macOS `security` CLI to read, write, and delete generic-password Keychain entries owned by macontrol.
Package keychain wraps the macOS `security` CLI to read, write, and delete generic-password Keychain entries owned by macontrol.
Package runner is the macOS-subprocess boundary for the entire bot.
Package runner is the macOS-subprocess boundary for the entire bot.
telegram
bot
Package bot wires the upstream go-telegram client to macontrol's own routers, middleware, and per-domain services.
Package bot wires the upstream go-telegram client to macontrol's own routers, middleware, and per-domain services.
callbacks
Package callbacks owns the inline-keyboard callback protocol that glues every Telegram tap to the matching domain action.
Package callbacks owns the inline-keyboard callback protocol that glues every Telegram tap to the matching domain action.
flows
Package flows implements multi-step Telegram conversations.
Package flows implements multi-step Telegram conversations.
handlers
Package handlers implements the bot's command and callback routers.
Package handlers implements the bot's command and callback routers.
keyboards
Package keyboards builds Telegram reply and inline keyboards.
Package keyboards builds Telegram reply and inline keyboards.
musicrefresh
Package musicrefresh owns the per-chat live-refresh goroutines that keep the 🎵 Music dashboard's photo caption in sync with the player's actual position every 5 seconds.
Package musicrefresh owns the per-chat live-refresh goroutines that keep the 🎵 Music dashboard's photo caption in sync with the player's actual position every 5 seconds.
telegramtest
Package telegramtest provides an httptest-based fake Telegram Bot API server that records every outgoing request.
Package telegramtest provides an httptest-based fake Telegram Bot API server that records every outgoing request.
Package version exposes the binary's build-time identity: semver tag (release-please-managed), git short SHA, and build date.
Package version exposes the binary's build-time identity: semver tag (release-please-managed), git short SHA, and build date.

Jump to

Keyboard shortcuts

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