Repository navigation
fix(cli): URL normalization, table output default, tag-driven auto-versioning - #263
Merged
Merged
Conversation
…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]>
5 tasks
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]>
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.
Summary
trinity init/trinity loginnow handle bare domains (trinity.ability.ai→https://trinity.ability.ai) and retry up to 3 times instead of exiting--format jsonstill works for scriptinggit tag cli-v0.2.0 && git push --tagsnow publishes to PyPI and auto-updates Homebrew formula (needsHOMEBREW_TAP_TOKENsecret — already configured)Changes
src/cli/trinity_cli/commands/auth.py—_normalize_url()+ retry loopsrc/cli/trinity_cli/commands/*.py(7 files) — default format → tablesrc/cli/trinity_cli/output.py— default param update.github/workflows/publish-cli.yml— version injection from tag + Homebrew auto-update jobsrc/cli/pyproject.toml— placeholder version (CI overwrites)src/cli/trinity_cli/__init__.py— runtime version from package metadatadocs/CLI.md— add deploy command, update output docssrc/cli/README.md— update output docsTest plan
trinity initwith bare domain liketrinity.ability.ainormalizes tohttps://trinity initwith bad URL prompts for retry instead of exitingtrinity agents listshows table by defaulttrinity agents list --format jsonstill outputs JSONtrinity --versionshows version from package metadatagit tag cli-v0.2.0 && git push --tagstriggers PyPI + Homebrew update🤖 Generated with Claude Code