Skip to content

docs: bring the docs in line with the /token exchange and from_tei failover - #46

Merged
vpetersson merged 1 commit into
sbomify:masterfrom
aurangzaib048:docs/refresh-after-tea-1.0.0
Nov 23, 2026
Merged

vpetersson merged 1 commit into
sbomify:masterfrom
aurangzaib048:docs/refresh-after-tea-1.0.0

Conversation

@aurangzaib048

Copy link
Copy Markdown
Collaborator

Follow-up to #42. The docs mostly came along with that PR, but a pass against the code on master turned up the gaps below. Docs and help text only; no version bump (that stays with the release).

README

  • The authentication example demonstrated the TEA 1.x /token exchange against trust.sbomify.com, which serves 0.4.0 only. It now uses tea.example.com, and shows from_tei with credentials.
  • CLI section: adds the undocumented --no-input, --no-color and -o/--output, plus --timeout in the connection options, and says that TEI commands fail over between endpoints.
  • TEA_AUTH is described as an API key on TEA 1.x; the plaintext-HTTP error covers basic_auth too.
  • Upgrading: a .well-known/tea document that lists an endpoint URL outside the schema pattern is now rejected with TeaDiscoveryError (0.5.1 accepted it and stripped a trailing slash). The CLI and conformance suite have no spec-version option, so a 0.4.0 server needs a base URL ending in /v0.4.0.
  • Not yet supported: adds early access-token renewal and the CLI spec-version option.
  • Versioning: YY.MM.MICRO per ADR-0002, without naming a release number.

docs/cli.md

  • The three missing global options and exit code 2 for usage errors.
  • "Three authentication methods" listed discovery failover as one of them; failover now has its own section.

docs/conformance.md

  • The CI example ran tea-cli after installing only libtea[conformance], which does not include the CLI. It now installs libtea[cli].
  • basic_auth is an API key on TEA 1.x; testing a 0.4.0 server needs a /v0.4.0 base URL.

Code (help text only)

  • --auth / TEA_AUTH help says it is an API key on TEA 1.x.
  • The package docstring leads with from_tei.

CLAUDE.md

  • Module map gains protocols.py, _constants.py and the /token exchange; Design Docs lists docs/cli.md and the cut-release skill.

Checked: every option and behaviour described was confirmed against tea-cli --help and the code (for example, --no-input downloads into the current directory rather than failing). ruff check, ruff format --check, mypy and pytest (1197 passed, 95% coverage) all pass.

…ilover

- README: authentication example on a TEA 1.x host (trust.sbomify.com
  serves 0.4.0 only), from_tei with credentials, the --no-input,
  --no-color and -o/--output CLI options, TEA_AUTH as an API key,
  Upgrading notes for the stricter .well-known endpoint URL pattern and
  for pointing the CLI and conformance suite at 0.4.0 servers, and the
  versioning section per ADR-0002 (YY.MM.MICRO) without naming a release
- docs/cli.md: the missing global options, exit code 2, discovery
  failover as its own section rather than an authentication method
- docs/conformance.md: the CI example installs the cli extra that
  tea-cli needs; basic_auth is an API key on TEA 1.x
- --auth / TEA_AUTH help text says it is an API key on TEA 1.x
- package docstring leads with from_tei
- CLAUDE.md: protocols.py, _constants.py and the /token exchange in the
  module map; docs/cli.md and the cut-release skill under Design Docs
Copilot AI balanced review requested due to automatic review settings November 18, 2026 20:43

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.

@vpetersson
vpetersson merged commit ad9c7a2 into sbomify:master Nov 23, 2026
6 checks passed
@aurangzaib048 aurangzaib048 mentioned this pull request Nov 23, 2026
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.

3 participants