mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-10-02 02:13:49 +00:00
Step 4 of the legacy executor deletion, third commit: the legacy event
API and every reader of it go, so that the next commits can delete the
event log, its reducer and the types beneath them.
The API:
- `GET /runs/{id}/events` pages the run stream only
(`PaginatedRunStreamList` by `after`); the legacy `since_seq`,
`before_seq` and `order` cursors, the `oneOf` envelope, the legacy
`EventEnvelope`, `PaginatedEventList`, `RunEvent`, `EventSeq`,
`AppendEventResponse` and `RunEventDetailResponse` schemas,
`POST /runs/{id}/events`, `GET /runs/{id}/events/{seq}` and
`GET /runs/{id}/stages/{stageId}/events` are deleted. `GET
/runs/{id}/attach` and `GET /attach` frame `RunStreamItem`s only.
- The Rust and TypeScript clients regenerate; the removed models leave
the TypeScript package.
The readers:
- `fabro-client` drops the legacy run event listing, tail and attach
methods and `RunEventStream`; `list_run_stream_until` bounds a stream
read.
- `fabro-tool`'s `fabro_run_events` lists, searches and details the run
stream: `after` is the exclusive `stream_seq` cursor, `event_id` the
item's id, filters match the item's name and `recorded_at`.
- `fabro-dump` writes the stream to `events.jsonl`; `fabro dump` reads
it.
- The CLI's progress renderer keeps only what the run stream drives:
the legacy event conversion, the sandbox and setup displays and their
styles go. `fabro system events` prints stream items.
- The server's demo mode folds its agent fixture straight into the
session projection and answers the attach stub with a stream item;
the demo stage events endpoint is gone.
- The web app: every run is a Petri run. The legacy event hooks,
renderer props, stage popover summary, run phases derivation and
live-event payload handling are deleted or ported to `RunStreamItem`;
toasts and board refreshes read the stream's platform records.
- Tests: the legacy API round trips and pagination tests are deleted;
the CLI's MCP, attach and system event mocks serve stream pages; the
CLI test helpers read stream items.
Still failing until the later commits: the CLI tests seeded through
`POST /runs/{id}/events`, the server tests over the legacy store, and
the legacy type tests.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
|
||
|---|---|---|
| .. | ||
| api-client.test.ts | ||
| api-client.ts | ||
| ask-fabro-runtime.test.ts | ||
| ask-fabro-runtime.ts | ||
| automation.ts | ||
| board-cache.ts | ||
| board-events.test.tsx | ||
| board-events.ts | ||
| build-version-contract.ts | ||
| build-version.test.ts | ||
| build-version.ts | ||
| chats-runtime.test.ts | ||
| chats-runtime.ts | ||
| chats-script.ts | ||
| chats-store.test.tsx | ||
| chats-store.tsx | ||
| chats-types.ts | ||
| class-names.ts | ||
| credential-heuristics.test.ts | ||
| credential-heuristics.ts | ||
| cross-tab-sse.test.ts | ||
| cross-tab-sse.ts | ||
| demo-mode.test.tsx | ||
| demo-mode.tsx | ||
| environment-providers.ts | ||
| format.ts | ||
| graph-theme.ts | ||
| graph-viewport.test.ts | ||
| graph-viewport.ts | ||
| import-chunk.test.ts | ||
| import-chunk.ts | ||
| live-events.test.tsx | ||
| live-events.ts | ||
| mcp-server-cache.ts | ||
| mcp-transport-kinds.ts | ||
| model-offerings.test.ts | ||
| model-offerings.ts | ||
| mutations.test.ts | ||
| mutations.ts | ||
| petri-fixtures.ts | ||
| petri-stream.test.ts | ||
| petri-stream.ts | ||
| pierre-diffs-worker.ts | ||
| plural.ts | ||
| principal-display.tsx | ||
| queries.ts | ||
| query-keys.test.ts | ||
| query-keys.ts | ||
| run-actions.test.ts | ||
| run-actions.ts | ||
| run-events.test.tsx | ||
| run-events.ts | ||
| run-phases.ts | ||
| run-sandbox-lifecycle.ts | ||
| run-settings-snapshot.ts | ||
| sandbox-state.ts | ||
| session-stream.test.ts | ||
| session-stream.ts | ||
| sse.ts | ||
| stage-sidebar.test.ts | ||
| stage-sidebar.ts | ||
| test-fixtures.ts | ||
| test-utils.tsx | ||
| time.ts | ||
| unknown.ts | ||
| usage.ts | ||