mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-09-05 08:10:39 +00:00
The typescript-axios generator was collapsing EventEnvelope's allOf([inline_object, $ref: RunEvent]) to a bare `type EventEnvelope = RunEvent` alias, losing the `seq` field at the type level. TypeScript consumers could write `envelope.seq` and get `any` (via RunEvent's additionalProperties index signature), but had no type-level guarantee that seq was present. Extract `EventSeq` as a named component schema and switch EventEnvelope's allOf to two $refs. typescript-axios now generates `export type EventEnvelope = EventSeq & RunEvent`, which makes `envelope.seq: number` a typed property. The Rust progenitor client is unchanged: it still flattens the allOf into a single EventEnvelope struct with `seq: i64` inline, exactly as before. Wire JSON is byte-identical on both sides. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| administration | ||
| agents | ||
| api-reference | ||
| brainstorms | ||
| changelog | ||
| core-concepts | ||
| examples | ||
| execution | ||
| getting-started | ||
| human-tools | ||
| ideation | ||
| images | ||
| integrations | ||
| languages | ||
| logo | ||
| plans | ||
| reference | ||
| tutorials | ||
| workflows | ||
| .mintignore | ||
| docs.json | ||
| dot-highlight.js | ||
| favicon.svg | ||