Skip to content

fix(cli): URL normalization, table output default, tag-driven auto-versioning - #263

Merged
vybe merged 1 commit into
mainfrom
feature/cli-ux-fixes
Apr 4, 2026
Merged

vybe merged 1 commit into
mainfrom
feature/cli-ux-fixes

Conversation

@vybe

@vybe vybe commented Apr 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • URL fix: trinity init / trinity login now handle bare domains (trinity.ability.ai → https://trinity.ability.ai) and retry up to 3 times instead of exiting
  • Output default: Changed from JSON to human-readable table; --format json still works for scripting
  • Auto-versioning: git tag cli-v0.2.0 && git push --tags now publishes to PyPI and auto-updates Homebrew formula (needs HOMEBREW_TAP_TOKEN secret — already configured)

Changes

  • src/cli/trinity_cli/commands/auth.py — _normalize_url() + retry loop
  • src/cli/trinity_cli/commands/*.py (7 files) — default format → table
  • src/cli/trinity_cli/output.py — default param update
  • .github/workflows/publish-cli.yml — version injection from tag + Homebrew auto-update job
  • src/cli/pyproject.toml — placeholder version (CI overwrites)
  • src/cli/trinity_cli/__init__.py — runtime version from package metadata
  • docs/CLI.md — add deploy command, update output docs
  • src/cli/README.md — update output docs

Test plan

  • trinity init with bare domain like trinity.ability.ai normalizes to https://
  • trinity init with bad URL prompts for retry instead of exiting
  • trinity agents list shows table by default
  • trinity agents list --format json still outputs JSON
  • trinity --version shows version from package metadata
  • After merge: git tag cli-v0.2.0 && git push --tags triggers PyPI + Homebrew update

🤖 Generated with Claude Code

…riven auto-versioning

- Fix init/login to handle bare domains (trinity.ability.ai → https://trinity.ability.ai)
  with retry loop (3 attempts) instead of exiting on unreachable URL
- Change default output format from JSON to table (human-readable);
  JSON still available via --format json
- Set up tag-driven auto-versioning: git tag cli-vX.Y.Z triggers
  PyPI publish with version from tag, then auto-updates Homebrew formula
- Add deploy command to docs/CLI.md
- Update docs and READMEs to reflect new defaults

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@vybe
vybe merged commit 68b0a34 into main Apr 4, 2026
vybe added a commit that referenced this pull request Nov 6, 2026
…inment guard (#4196) — mechanical, per the merge-train note on the PR

- test_926: the shipped runtime set now carries opencode (main.py runtimes list)
- test_agent_readiness_probe: stub apply_opencode_provider_env, lifecycle.py's new import
- test_lilu20 TestScopeFence: the #263 Go-arch comment quoted the lilu#20 note's
  exact phrase, so text.index landed on the wrong note — reworded the quote
- startup.sh: SC2015 (A && B && cp || true) on the package.json copy, flagged by
  CI's shellcheck — an explicit if
- opencode_runtime: _ensure_within realpath containment at the turns root (the
  Codex #1187 precedent); _safe_token already leaves nothing traversable, this
  is the normalise-then-startswith shape CodeQL's py/path-injection recognises
  (11 alerts on turn_dir-derived paths), with a direct guard test

Co-Authored-By: Claude Fable 5.1 <[email protected]>
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