Repository navigation
feat(cli): promote the PREVIEW lifecycle state and --preview to staging - #80
Merged
Merged
Conversation
feat(cli): improve service discovery, call output, and provider onboarding
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
The backend renames the provider lifecycle state SANDBOX to PREVIEW. `provider wait` rejected PREVIEW as an unknown state and crashed with "Invalid review response"; it now accepts PREVIEW (and still SANDBOX during the transition) and reports it like SANDBOX. Preview services are no longer exposed through a key permission. `list`, `search` and `services` gain `--preview` (query include_preview=true) and `call` gains `--preview` (execute body field include_preview: true, on json/stream/output/output-json paths). The field is sent only when the flag is given so older backends keep working. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`categories` sends include_preview=true as a query parameter; `get` and `get-batch` (both POST /v1/actions/batch) add include_preview: true to the body. As before, the field is sent only when --preview is given. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d 400s - call/get --code --preview now emit include_preview in every generated snippet (curl, python, js, ts, go), so the snippet reaches the same PREVIEW service the command would. - A backend that predates preview rejects the body field with 400 "property include_preview should not exist"; the error now says --preview needs a backend with preview support. call --help says so too. 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.
把
feature/sandbox-to-preview(2db03b2)提到 staging。这是 dev 上已合并的同一个提交(#79,合并提交71344fd22),和 staging 没有冲突。内容和 #79 一样:
provider wait等地方同时接受SANDBOX和PREVIEW两种修订状态;新增--preview参数,请求时带include_preview=true;后端还没上 P1 时,带--preview的请求会返回 400,CLI 会给出提示。不带--preview时行为不变。Kanby-Task: KANBY-141
🤖 Generated with Claude Code