Skip to content

Conversation

@jeremy
Copy link
Member

@jeremy jeremy commented Jan 13, 2026

Introduces fizzy, an agent-first CLI for Fizzy.

Fizzy CLI

  • Foundation: Entry point, config management, API client, OAuth auth flow
  • Queries: boards, cards, columns, people, tags, search, notifications, show
  • Actions: card create, close, reopen, triage, postpone, comment, assign, tag, watch, gild, step
  • Ergonomics: Name resolution, --in alias, multi-origin credential storage, pagination
  • Distribution: Install script, bash/zsh completions, README

Design Highlights

  • Agent-first: JSON envelopes with breadcrumbs, predictable patterns
  • Human-friendly: Markdown output in TTY, rich help text
  • Dependencies: Bash 4+, curl, jq
  • Builds on Minimal modern OAuth 2.1 stack #2296 for seamless auth

Test plan

  • All 256 bats tests pass (bats test/*.bats)
  • Smoke tested against http://fizzy.localhost:3006
  • OAuth flow works (browser and --no-browser modes)
  • Name resolution works across paginated endpoints
  • Card create chains follow-up actions (triage, tag, assign)

svara and others added 30 commits January 6, 2026 15:46
It sends all buttons in one connect payload.
* main: (65 commits)
  Repair scope for card styles within the columns view
  Add missing list to cards page
  Account for simpler public views
  Fix public layout
  Pull board-tools outside of the list for mobile
  saas: move log_level setting into an environment variable
  Restore log level configurability in production environment
  Remove engagements
  Use notch class so Save button is positioned correctly
  Go back to board after clearing filters
  Revert "Use existing no_filtering_url to direct back to the board when clearing filters"
  Use existing no_filtering_url to direct back to the board when clearing filters
  Ensure filters sit on top of cards
  Fix public boards
  Fix card grid layout
  Fix Chinese/Japanese characters missing from printed PDFs on macOS
  Add SQLite FTS5 support for CJK search
  Add CJK (Chinese, Japanese, Korean) search support
  Fix scrolling on mobile
  Remember expanded state on navigation
  ...
jeremy added 28 commits January 21, 2026 23:55
api_get_all:
- Fall back to ?page=N when Link headers absent
- Stop on empty response to prevent infinite loops

urlencode:
- Replace python3 urllib.parse with jq -sRr @uri
- Removes undocumented Python dependency
Completions:
- Zsh: use \$words[1] in args state (array is shifted)
- Remove --page from global flags (it's per-command)

cards:
- Add postponing_soon to --status filter help + completion
- Global flags (--json, --quiet) must precede command name
- Default base URL is local dev, not production
- Add pagination note for cards command
Adds --all/-a flag to boards, tags, people, and notifications commands
to fetch all pages automatically using api_get_all. When --all is used:
- Summary shows "(all)" instead of page number
- "Next page" breadcrumb is omitted

This matches the Go CLI's full-fetch behavior while maintaining the
per-page --page flag for incremental fetching.

Smoke test notes:
- fizzy boards --all returns all boards (verified with 3 boards)
- fizzy tags --all returns all tags
- fizzy people --all returns all users
- fizzy notifications --all returns all notifications
Adds `fizzy update <number> [options]` to update a card's title or
description. Uses PATCH /cards/{number} endpoint.

Options:
- --title, -t: New card title
- --description, -d: New card description (HTML)
- --description-file: Read description from file

This brings parity with the Go CLI's card update functionality.

Smoke test notes:
- fizzy update 1 --title "New title" updates title
- fizzy update 1 --description "content" updates description
- fizzy update 1 --title "A" --description "B" updates both
- fizzy update 1 --description-file notes.html works
- Error if no options provided (nothing to update)
Changed from standalone commands (fizzy edit-comment, fizzy delete-comment)
to subcommands of comment (fizzy comment edit, fizzy comment delete).

Usage:
  fizzy comment "text" --on <num>      # Create comment (unchanged)
  fizzy comment edit <id> --on <num> "new text"  # Update comment
  fizzy comment delete <id> --on <num>           # Delete comment

API: PATCH/DELETE /cards/:num/comments/:id

Smoke test: fizzy comment edit --help; fizzy comment delete --help
fizzy delete <number> [numbers...]

Permanently deletes cards. Shows warning in help that action cannot be undone.

API: DELETE /cards/:number (returns 204 No Content)

Smoke test: fizzy delete --help
fizzy delete-image <number> removes the header image from a card.
Uses DELETE /cards/:number/image (returns 204), then fetches the
card to show updated state.
Card update: wrap params in {card: {...}} as Rails expects params[:card]

Comment edit: Rails returns 204 No Content on PATCH, so fetch the
updated comment after to get its current state for display.
Steps:
- Add --completed flag to step create
- Add step show/update/delete subcommands
- Fix body wrapper to {step: {...}} as Rails expects

Reactions:
- Add fizzy reactions --card <num> --comment <id> to list reactions
- Add fizzy react delete <id> --card <num> --comment <id>
- Update fizzy react to manage reactions (add + delete)

All commands follow existing subcommand patterns (like comment edit/delete).
Shell completions updated for new subcommands.
Identity & Users:
- fizzy identity: show current user and accounts
- fizzy user show/update/delete: manage users
- User avatar upload via multipart form

Card Images:
- --image flag on card create and card update
- Multipart upload with retry/backoff for 429/5xx
- Use --form-string for non-file fields (prevents @-prefix hazard)

Auth & Config:
- FIZZY_URL convenience var (extracts base URL + account slug)
- Allow re-login without logout
- Improved token and scope handling

Reliability:
- api_multipart_request helper with retry logic
- Regression test for --form-string usage

387 tests passing, smoke tested against live server.
Adds Jbuilder views for index, show, and create actions.
Internal endpoints (Tier 3) - functional but intentionally undocumented.
- Fix card create/update params (remove status, tag_ids)
- Fix card move request shape (top-level board_id)
- Fix board update request (top-level user_ids)
- Fix comment update response (204 No Content)
- Fix column reordering paths (shallow routes)
- Add 429 to error codes table
- Add endpoint-specific error table
- Add API docs maintenance micro-skill
- Align webhook actions with PERMITTED_ACTIONS
Documents API↔CLI coverage and intentional omissions (pins, involvement).
- fizzy webhooks: list webhooks
- fizzy webhook create/show/update/delete
- Align available actions with Webhook::PERMITTED_ACTIONS
- Add assert_json_contains test helper
- Add 17 webhook tests including action list lock tests
- fizzy account show/update/entropy/join-code/export
- Export accepts HTTP 202 for async operations
- fizzy --version / -V / version: show installed version
- fizzy self-update: update CLI from GitHub
- fizzy self-update --check: check without installing
- Add VERSION file for semver tracking
- Add 9 tests for version and self-update
- fizzy board publish: publish board publicly with shareable URL
- fizzy board unpublish: remove public access
- fizzy board entropy: set auto-postpone period
- Use publish response URL correctly
- fizzy user role: change user role (owner/admin/member)
- fizzy card publish: publish draft card
- fizzy card move --to: move card to different board
- Add webhooks, account to help topics
- Update command listings for new subcommands
- Fix unbound variable EXIT_API_ERROR (was EXIT_API)
- Guard against self-update in git checkouts (suggest git pull)
- Guard against non-writable FIZZY_ROOT (suggest brew upgrade)
- Add tests for git checkout detection
Version tracking changes:
- Remove VERSION file (no manual version bumping)
- Install script fetches latest commit SHA from GitHub API
- Write commit SHA to .commit file during install
- Display version as "fizzy main (abc1234)" format
- self-update compares commits instead of version strings

Uninstall command:
- fizzy uninstall shows what will be removed
- fizzy uninstall --force removes installation and symlinks
- Guards for git checkout and Homebrew installs
- Removes symlink from common bin directories
Install script improvements:
- Support FIZZY_REPO, FIZZY_REF, FIZZY_COMMIT env vars for forks/CI
- Try branch then tag when downloading (supports both refs/heads and refs/tags)
- Gracefully handle GitHub API rate limits (commit SHA is best-effort)
- Add 5s timeout to API calls to avoid hanging

Self-update improvements:
- --force now works even when GitHub API is unavailable
- Better error messages suggesting --force when rate-limited
- Re-try commit SHA fetch after download in _perform_update
- Fall back to branch name in .commit if SHA unavailable
- Use FIZZY_BRANCH in status messages instead of hardcoded "main"
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.

9 participants