Skip to content

feat(provider): explain default-major takedown conflicts and document endpoint delisting - #77

Merged
dxiongya merged 9 commits into
mainfrom
feature/endpoint-delist-semantics
Nov 27, 2026
Merged

dxiongya merged 9 commits into
mainfrom
feature/endpoint-delist-semantics

Conversation

@dxiongya

@dxiongya dxiongya commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

改动

  • provider deprecate 遇到默认大版本仍有其他在线大版本的 409 DEFAULT_MAJOR_HAS_LIVE_MAJORS,提示先用 provider default-major 切换,再下架。
  • Provider skill、README 和指南统一使用 delisted / x-xapi-delisted。CLI 仅转述固定的字段改名提示,不回显任意错误正文。
  • 补齐单端点下架、恢复、租赁生命周期审核及回滚保护,以及路径参数书写规则。

验证与发布

  • bun install --frozen-lockfile、bun run typecheck、bun run build、bun run test(1527 通过,0 失败)、npm pack --dry-run --ignore-scripts 均通过。
  • 本分支 CLI 已在临时数据库的真实后端验证 provider 注册、修订、发布、默认大版本切换、下架与恢复操作。npm 验证另行记录。
  • 依赖的生产后端 xapi-labs/xapi-backend#903 已部署;合入后通过 Release Please 发布。

Kanby-Task: KANBY-140

🤖 Generated with Claude Code

dxiongya and others added 9 commits November 23, 2026 17:17
… endpoint delisting

- `provider deprecate` prints the live majors and the `default-major`
  command to run when the API answers 409 DEFAULT_MAJOR_HAS_LIVE_MAJORS;
  every other HTTP error body stays hidden.
- xapi-provider skill: how to delist one endpoint (hidden / x-xapi-hidden,
  410 EndpointDelisted, no upstream review test, restore, TIME_RENTAL may
  delist CREATE only) and the default-major rule (switch the default first;
  410 MajorVersionDelisted for pinned calls).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Old field names `hidden` / `x-xapi-hidden` are rejected with a fixed
rename notice. Provider commands hid every 400 body, so agents only saw a
generic error; pass that notice through (other 400 bodies stay hidden).
Add a merge-patch delist example to the skill.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…reates

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Kanby-Task: KANBY-140

Co-Authored-By: Claude Code <noreply@anthropic.com>
@dxiongya
dxiongya marked this pull request as ready for review November 27, 2026 15:43
@dxiongya
dxiongya merged commit 8766527 into main Nov 27, 2026
1 check passed
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