Skip to content

[codex] Improve CLI coverage, tests, and backend support#3

Merged
kiliantyler merged 5 commits intomainfrom
codex/cli-features
Apr 15, 2026
Merged

[codex] Improve CLI coverage, tests, and backend support#3
kiliantyler merged 5 commits intomainfrom
codex/cli-features

Conversation

@kiliantyler
Copy link
Copy Markdown
Contributor

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

  • clearer CLI structure and help behavior
  • more complete alert/fix workflows from the terminal
  • built-in self-update behavior for installed binaries
  • config validation / doctor workflows
  • TypeScript linting and formatting enforcement at the repo root
  • safer iOS push registration through backend token verification

Validation

  • cd cli && bun run check
  • cd cli && bun test
  • cd protocol && bun run check
  • cd web && bun run build
  • bun run lint:ts
  • bun run fmt:ts:check

@kiliantyler kiliantyler marked this pull request as ready for review April 15, 2026 00:43
@kiliantyler kiliantyler merged commit ca5eae1 into main Apr 15, 2026
4 checks passed
@kiliantyler kiliantyler deleted the codex/cli-features branch April 15, 2026 00:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant