Commit 5426cc7
refactor(app-shell): 把
* refactor(app-shell): collapse DecisionOutputDef to a plain spec re-export
BLOCKED — does not compile against the `@objectstack/spec` version this repo
currently resolves (17.0.0-rc.0). Pushed to preserve the prepared change; see
objectstack-ai/objectstack#4562 for the dependency decision it waits on.
- `DecisionOutputDef` was `extends SpecDecisionOutputDef { required?: boolean }`.
The spec adopted `required` (cd6b9f202, schema-pinned by objectstack#4561), so
the derivation adds nothing and collapses to `export type DecisionOutputDef =
SpecDecisionOutputDef`.
- Rewrote the stale interface TSDoc, which still asserted "the spec does not
model it yet".
- Inverted the parity pin in `spec-symbol-parity.test.ts`: the exclusion set
`Exclude<keyof DecisionOutputDef, keyof SpecDecisionOutputDef>` is now `never`,
plus an exact-identity assertion.
Verified against spec 17.0.0-rc.1 (which does model `required`): app-shell
`tsc --noEmit` clean, the new assertions compile, and the old `'required'`
assertion correctly fails (TS2344). Against the resolved 17.0.0-rc.0 the
collapse fails with TS2339 `Property 'required' does not exist`.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012C2cd7tL8QDoZ2QKN3djJ5
* chore(changeset): DecisionOutputDef collapses to a plain spec re-export
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012C2cd7tL8QDoZ2QKN3djJ5
---------
Co-authored-by: Claude <noreply@anthropic.com>DecisionOutputDef 收敛成 spec 的纯 re-export,并反转 parity pin (#3185)1 parent 022e4c3 commit 5426cc7
3 files changed
Lines changed: 69 additions & 23 deletions
File tree
- .changeset
- packages/app-shell/src
- __tests__
- utils
| 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 | + | |
Lines changed: 13 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
232 | 233 | | |
233 | 234 | | |
234 | 235 | | |
235 | | - | |
| 236 | + | |
236 | 237 | | |
237 | 238 | | |
238 | 239 | | |
239 | 240 | | |
240 | 241 | | |
241 | 242 | | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
247 | 250 | | |
| 251 | + | |
248 | 252 | | |
249 | 253 | | |
250 | 254 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
48 | 47 | | |
49 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
50 | 55 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
55 | 61 | | |
56 | | - | |
57 | | - | |
58 | | - | |
| 62 | + | |
59 | 63 | | |
60 | 64 | | |
61 | 65 | | |
| |||
0 commit comments