API Reference canaryd v#0.4.5

Copy Markdown View Source

Modules

Mac health monitor: thermal, resources, and functional app probes.

CleanClip health: L2 process liveness + L3 functional clipboard probe.

Reads the macOS WindowServer unresponsive state for supported GUI processes.

Removes stale, reproducible Xcode and Cargo build artifacts.

escript entry for checks, status, target history, setup, and version output.

One full health-check round

Pure confirmation policy for idle Codex screen-control helpers.

Finds stale-prone Codex screen-control helpers and terminates an exact process.

Defines milliseconds as the internal time unit.

Pure confirmation and cooldown policy for idle, high-memory applications.

Finds memory-heavy third-party applications owned by the current user.

macOS notifications. Used only when user attention is required.

Replays a CleanClip history item in a reversible pasteboard transaction.

Self-installing launchd agents. launchd is an implementation detail: users never touch plist files. Every CLI invocation ensures the agents are present and loaded; if the user deletes one, the next run heals it.

Pure confirmation policy for shutting down idle booted Simulator devices.

Reads booted CoreSimulator devices and safely shuts down an exact device.

Pure transition logic for per-target health. Testable without side effects.

DETS-backed persistent state.

L1 system-level health: thermal throttling, load, memory pressure, and user idle detection (keyboard/mouse via IOHIDSystem HIDIdleTime).

Reads Apple Silicon CPU and GPU sensor temperatures from macmon.

Confirms sustained thermal pressure and limits user action prompts.

Pure confirmation and cooldown policy for unresponsive GUI apps.