Commit c0cc833
committed
fix(client,spec): 补 client 路由约定表的 mcp 项,并在合并树上重生成 authorable-surface (#5679)
CI 上两条不同签名的红,都是合并 origin/main 之后才出现的:
1. `@objectstack/client` DTS build — TS2741: `getRoute()` 的约定回退表
`Record<ApiRouteType, string>` 按设计对 `keyof ApiRoutes` **全键必填**,
所以给 ApiRoutesSchema 新增一个已声明键就必须给出它的约定路径。这是我
消费半径漏掉的包。补 `mcp: '/api/v1/mcp'` —— 不是猜的,正是两个 discovery
生产者实测发出的值,所以回退值与被发现值一致而非互相打架;而且该表本就
是 unscoped 约定表(每行都是 /api/v1/...),恰好符合 /mcp 裸挂载的事实。
全仓复扫 `keyof ApiRoutes` / ApiRoutes 型字面量,确认没有第三处:其余站点
都是 `Partial<ApiRoutes>` 或只填两个必填键,不受影响。
2. `check:authorable-surface` — 合并带进了 #5721 的 `ui/ActionSession` 源,
但 authorable-surface.json 未在合并树上重生成。跑 gen:schema 重出,该文件
现同时含本单的 `api/ApiRoutes:mcp` 与 main 的 ActionSession 三键。
`authorable-surface.base.json` 的 baseRev 重锚照 #5358 再次剔除 —— 那是 main
前移导致的机械重锚,不属本单。
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018fxLGQdatPbBUvCgiVxg6D1 parent e50ac6e commit c0cc833
3 files changed
Lines changed: 23 additions & 0 deletions
File tree
- .changeset
- packages
- client/src
- spec
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
41 | 51 | | |
42 | 52 | | |
43 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4584 | 4584 | | |
4585 | 4585 | | |
4586 | 4586 | | |
| 4587 | + | |
| 4588 | + | |
| 4589 | + | |
| 4590 | + | |
| 4591 | + | |
| 4592 | + | |
| 4593 | + | |
| 4594 | + | |
| 4595 | + | |
| 4596 | + | |
4587 | 4597 | | |
4588 | 4598 | | |
4589 | 4599 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6925 | 6925 | | |
6926 | 6926 | | |
6927 | 6927 | | |
| 6928 | + | |
| 6929 | + | |
| 6930 | + | |
6928 | 6931 | | |
6929 | 6932 | | |
6930 | 6933 | | |
| |||
0 commit comments