Commit baf0eb1
`content/docs/ui/apps.mdx` 有四处仍把 17.0.0(2026-06 liveness audit /
ADR-0049)已退役的键当作可作者化面在教:「Basic Structure」示例的
`version: '1.0.0'`、App Properties 表的 `version` 行、整节
`## Mobile Navigation`(含 `mobileNavigation: { mode, bottomNavItems }`
示例与 `mode` 取值说明),以及「Complete Example」的 `version: '2.0.0'`。
墓碑是 `retiredKey()`(`z.never().optional()`),照抄不是「多写个没用的
键」,是整条 save 硬失败。把「Basic Structure」块原样喂
`getMetadataTypeSchema('app')` 实测 `parses: false`,报
「`App.version` was removed in @objectstack/spec 17.0.0 … Delete the key.」
处置按墓碑自己的处方:`version` 删键(应用版本 = 所属包的
`manifest.version`);`mobileNavigation` 无替代能力(完全未实现,连
packages/mobile 都没读过),整节删除。App Properties 表后新增 Callout
点名这两个键并给出处方,指回正文已交代的 `homePageId`(#4667/#4709)。
同时给两个 `{/* os:check */}` 块加 `defineApp()` 标注。此前两块都是无
类型标注的对象字面量,没有任何东西把它们和 `AppSchema` 关联起来,
`retiredKey()` 赖以在编译期开火的 `never` 入参永远不参与推断——
`check:skill-examples` 只做 tsc,于是对退役键这一类恒绿。加标注后同一个
门在旧示例上会红(apps.mdx:19:3 / :239:3,TS2322 Type 'string' is not
assignable to type 'undefined'),改后绿(204 prose examples type-check)。
门本体不动:issue 的 B 方案(块级 safeParse)需先解决块→schema 归属推断,
是独立的一次设计。不碰 packages/spec/**、content/docs/references/** 与
content/docs/releases/。Docs-only。
Claude-Session: https://claude.ai/code/session_01GX3sL71LFq8m2usg6VqTSE
Co-authored-by: Claude <noreply@anthropic.com>
1 parent 1ce2030 commit baf0eb1
2 files changed
Lines changed: 68 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
15 | 17 | | |
16 | 18 | | |
17 | | - | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
36 | | - | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
45 | | - | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
54 | 73 | | |
55 | 74 | | |
56 | 75 | | |
| |||
212 | 231 | | |
213 | 232 | | |
214 | 233 | | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | 234 | | |
229 | 235 | | |
230 | 236 | | |
231 | 237 | | |
232 | | - | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
233 | 241 | | |
234 | 242 | | |
235 | | - | |
236 | 243 | | |
237 | 244 | | |
238 | 245 | | |
| |||
287 | 294 | | |
288 | 295 | | |
289 | 296 | | |
290 | | - | |
| 297 | + | |
291 | 298 | | |
292 | 299 | | |
293 | 300 | | |
| |||
0 commit comments