Commit 4fea6c5
committed
fix(cli): mirror errorClass onto ErrorClassification (CDK↔CLI type sync)
#599 added `errorClass?: ErrorClassType` to the CDK ErrorClassification, which
serializes into the GET /tasks/{id} `error_classification` response — but the
hand-maintained CLI mirror (cli/src/types.ts) wasn't updated, so the CLI's
structured error display couldn't surface the transient/service/user axis (real
drift per the CLAUDE.md shared-API-shape routing rule).
Add the optional field to the CLI's ErrorClassification, inlined as a union
literal rather than a named `ErrorClassType` export — the types-sync drift check
(scripts/check-types-sync.ts) requires CDK to be the source of truth for any
exported type name, and CDK exports ErrorClassType from error-classifier.ts, not
shared/types.ts. Inlining keeps the field synced without a CLI-only export.
Verified: `//:check:types-sync` OK (57 CLI exports validated), cli build green
(600 tests, compile + eslint clean).1 parent 0e3a76b commit 4fea6c5
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
78 | 83 | | |
79 | 84 | | |
80 | 85 | | |
| |||
0 commit comments