Repository navigation
Add read-only commands for the model catalog and providers - #32
Merged
Merged
Conversation
`models list`, `models providers`, and `models discover ID` map to the Platform model-gateway read routes. Provider writes stay in the dashboard for now. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Confidence Score: 5/5
Summary
Adds read-only model catalog, provider listing, and discovery commands with low integration risk. Local formatting, Clippy, and all 120 Rust tests passed; live-provider behavior was not exercised.
Deployed verification not applicable: adapt/platform-cli is outside the adapt/adapt and adapt/platform pilot. Its PR workflow builds/tests CLI artifacts without deploying a preview. No webhook sent.
Important Files Changed
| File | Changes |
|---|---|
| src/cli.rs | Defines model subcommands, aliases, provider selectors, and discovery authentication help. |
| src/commands.rs | Routes model commands through the existing authenticated, organization-scoped API client. |
| tests/models/mod.rs | Tests request paths, authentication headers, organization selection, JSON preservation, and discovery permission errors. |
| tests/cli.rs | Registers the model command integration tests. |
| docs/cli-reference.md | Documents model commands, permissions, discovery authentication, and provider ID prefixes. |
| docs/api-coverage.md | Maps model endpoints to commands and identifies deferred provider writes. |
| skills/adapt/SKILL.md | Adds model command guidance and permission requirements for agents. |
Run info
| Field | ID |
|---|---|
| Agent | 0d6ccd7e-b62f-4075-a561-199d1a7b1bf0 |
| Automation | ec14e69d-634f-4af0-a6dd-27aa06a1f6b3 |
| Run | fdf67dc6-3f7f-48bf-8bb0-09f9fcd1176e |
Reviewed: 5815fcc-23208e7 · ↻ Re-run review
Contributor
Author
|
@scsmithr - Readonly for now, since I am not sure about the provider management will remain exclusively via dashboard. |
scsmithr
approved these changes
Nov 19, 2026
miqui
pushed a commit
that referenced
this pull request
Nov 19, 2026
Resolves conflicts with the model catalog commands (#32) by keeping both sides: the usage and model command definitions, both reference sections, and both platform provenance notes in the API coverage doc. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Part of #15.
Adds three read-only commands for the Platform model gateway:
adapt models listGET /v1/modelsadapt models providersGET /v1/model-gateway/providersadapt models discover IDGET /v1/model-gateway/providers/{id}/modelsProvider writes (create, key rotation, enable/disable, delete) are left out while the direction for provider management is decided; they stay in the dashboard for now.
discoverneeds browser sign-in as an owner or admin, andmodels listneeds themodelGatewayusepermission.Docs: CLI reference, API coverage, and the agent skill are updated.
Tests:
tests/modelscovers the request paths, organization header, JSON pass-through, and a 403 error message.🤖 Generated with Claude Code