[codex] Improve CLI coverage, tests, and backend support#3
Merged
kiliantyler merged 5 commits intomainfrom Apr 15, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
This PR substantially expands and hardens the Cowtail CLI.
It refactors the CLI command tree into per-group modules, adds a built-in updater, and expands the command surface with alert/fix read operations, health output, user/device inspection, and config diagnostics. It also adds a Bun-based CLI test harness and repo-wide oxlint / oxfmt coverage for TypeScript.
On the backend side, it adds the HTTP support those CLI commands need and switches iOS push registration to verify Apple identity tokens server-side before deriving the stored userId.
Why
The CLI had reached the point where ad hoc command wiring and manual help output were getting in the way. This makes it more maintainable, more testable, and much closer to a real operational tool instead of a thin write helper.
Impact
Validation
cd cli && bun run checkcd cli && bun testcd protocol && bun run checkcd web && bun run buildbun run lint:tsbun run fmt:ts:check