Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ eightctl daemon --dry-run
- **Alarms:** `alarm list|create|update|delete|snooze|dismiss|dismiss-all|vibration-test`
- **Temperature modes:** `tempmode nap on|off|extend|status`, `tempmode hotflash on|off|status`, `tempmode events`
- **Audio:** `audio tracks|categories|state|play|pause|seek|volume|pair|next`, `audio favorites list|add|remove`
- **Base:** `base info|angle|presets|preset-run|vibration-test`
- **Base:** `base info|angle|presets|preset-run|test`
- **Device:** `device info|peripherals|owner|warranty|online|priming-tasks|priming-schedule`
- **Metrics & insights:** `sleep day|range`, `presence [--from --to]`, `metrics trends|intervals|insights`
- **Autopilot:** `autopilot details|history|recap`, `autopilot set-level-suggestions`, `autopilot set-snore-mitigation`
- **Autopilot:** `autopilot details|history|recap`, `autopilot level-suggestions`, `autopilot snore-mitigation`
- **Travel:** `travel trips|create-trip|delete-trip|plans|create-plan|update-plan|tasks|airport-search|flight-status`
- **Household:** `household summary|schedule|current-set|invitations|devices|users|guests`
- **Misc:** `tracks`, `feats`, `whoami`, `version`
- **Misc:** `tracks`, `feats`, `whoami`, `logout`, `version`

Use `--output table|json|csv` and `--fields field1,field2` to shape output. `--verbose` enables debug logs; `--quiet` hides the config banner.

Expand Down
19 changes: 11 additions & 8 deletions docs/spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,13 @@ Eight Sleep Pod power/control + data-export CLI, written in Go. Targets macOS/Li
- Permissions check warns if config is more permissive than `0600`.

## CLI Surface (implemented)
Core: `on`, `off`, `temp <level>`, `status`, `whoami`, `version`.
Core: `on`, `off`, `temp <level>`, `status`, `whoami`, `logout`, `version`.

Away mode:
- `away on|off`

Schedules & daemon:
- `schedule list|create|update|delete` (cloud temperature schedules)
- `schedule list` (Autopilot smart schedule)
- `daemon` (YAML-based scheduler with PID guard, dry-run, timezone override, optional state sync)

Alarms:
Expand All @@ -34,30 +37,29 @@ Temperature modes & events:

Audio:
- `audio tracks|categories|state|play|pause|seek|volume|pair|next`
- `audio favorites list|add|remove`

Adjustable base:
- `base info|angle|presets|preset-run|vibration-test`
- `base info|angle|presets|preset-run|test`

Device & maintenance:
- `device info|peripherals|owner|warranty|online|priming-tasks|priming-schedule`

Metrics & insights:
- `metrics trends --from --to`
- `metrics intervals --id`
- `metrics summary`
- `metrics aggregate`
- `metrics insights`
- `sleep day --date`, `sleep range --from --to`
- `presence [--from --to]`

Autopilot:
- `autopilot details|history|recap`
- `autopilot set-level-suggestions --enabled`
- `autopilot set-snore-mitigation --enabled`
- `autopilot level-suggestions --enabled`
- `autopilot snore-mitigation --enabled`

Travel:
- `travel trips|create-trip|delete-trip`
- `travel plans --trip`
- `travel plans|create-plan|update-plan`
- `travel tasks --plan`
- `travel airport-search --query`
- `travel flight-status --flight`
Expand All @@ -73,6 +75,7 @@ Audio/temperature data helpers:
- Logs via charmbracelet/log; `--verbose` for debug; `--quiet` hides config notice.
- `status` should prefer discovered household targets when available and display `left` / `right` or inferred `solo`.
- `on`, `off`, and `temp` should default to all discovered household targets unless narrowed with `--side` or `--target-user-id`.
- `away` should default to the authenticated user's side, accept `--side` or `--target-user-id`, and use `--both` for the household.
- `temp` accepts negative positional levels such as `temp -40` without requiring `--`.

## Daemon Behavior
Expand Down