Expand description
Transport-agnostic dev-server handlers. Transport-agnostic dev-server handlers over the REAL engine, store, and event stream.
Every operation here drives the same production engine surface the public transports drive — there is no dev-only engine and no execution path whose semantics diverge from production (CN4):
trigger_runstarts a workflow through the samecrate::api::handlers::workflows::startpath/workflows/startuses, and returns the firehose subscription a client uses to watch the run live over the existing/events/streamWebSocket (no second stream is built);register_mockinstalls an opt-in per-run activity mock in the sharedActivityMockRegistrythe engine’s dispatcher already consults — the engine is untouched;replay_runre-drives a failed run by reading its recorded start (workflow type and input) from the real store and starting a fresh run of the same workflow through the real engine — no mock-only re-execution.
Structs§
- Register
Mock Request - Request to install an opt-in per-run activity mock.
- Register
Mock Response - Acknowledgement of an installed mock.
- Replay
RunRequest - Request to replay a failed run through the real engine.
- Replay
RunResponse - The fresh run started to replay a failed one.
- Stream
Subscription - The per-workflow subscription frame for the existing event-stream socket.
- Trigger
RunRequest - Request to trigger a fresh workflow run from the dev server.
- Trigger
RunResponse - The started run plus the firehose subscription that streams its events.
Enums§
- Mock
Outcome - Outcome a per-run activity mock should produce.
Functions§
- register_
mock - Installs an opt-in per-run activity mock for one run, without changing the engine.
- replay_
run - Replays a failed run by re-driving it through the real engine and store.
- trigger_
run - Triggers a run and returns the existing-firehose subscription for it.