Namespace Kuestenlogik.Bowire.Flows

Classes

BowireFlowDataEndpoints

Row expansion for a data-driven Flow step (#174), so the in-browser runner gets the same rows bowire test would.

BowireFlowEndpoints

Maps the disk-backed flow endpoints (#641).

BowireFlowReplayEndpoints

#1051 — the workbench's replay step: POST /api/flows/replay with the step's replay block (its recording inline, variables already substituted by the browser) plays the recording back through the same FlowReplay bowire test uses, and answers with how it went. Every server URL a send dials passes this host's target policy.

BowireFlowSnapshotEndpoints

Snapshot baselines for the in-browser runner (#171): what drifted, and making the new answer the baseline.

BowireFlowsRailContribution

Flows rail contribution (#306 Phase G).

BowireFlowStreamEndpoints

#1050 — the workbench's half of a step's stream expectation. The browser cannot hold a subscription across its own call, so it asks for one here before the step (POST /api/flows/stream-watch, answered once the subscription is in place), runs the step, and then asks whether the frames arrived (POST /api/flows/stream-watch/{id}/await). The watch is the one bowire test uses, so the result reads the same in both.

FlowAppExpectation

#1071 — what a step expects of the MCP App its tool shows: the app is run with the call's input and result, and the step passes when the app sends a message with Method whose params contain Params within TimeoutMs. A step that fails lists what the app sent.

FlowDataGenerator

Row generator config: range (from..to inclusive) or random (seeded, reproducible).

FlowDataRow

One expanded data row — the column values join the {{var}} resolver scope for a single step execution, the label names the row in reports (step[label]).

FlowDataSource

Data-driven parameterisation for a Flow step — #174. Exactly one of Inline / Csv / Generator is set; the runner expands the step into one execution per row, with the row's columns joining the {{var}} resolver scope (row wins over --env).

FlowDataSourceExpander

Materialises a FlowDataSource into concrete rows — #174. The runner calls this once per data-driven step and executes the step once per returned row.

FlowDefinition

Server-side projection of the workbench's Flow document — the v2.1 in-browser editor persists the canonical shape into localStorage[bowire_flows]; this record mirrors only the fields the v2.2 CLI runner (T2) and the C# expectation evaluator need. Streaming / Foreach / Variable / Condition / Loop nodes are represented but their bodies stay opaque (raw JsonNode) because T2 only EVALUATES — replaying them is the CLI runner's job.

FlowReplay

#1051 — plays a recording back into a system: each recorded call as one send, each recorded stream as one send per frame, through the plugin's own invoke path, at the recorded pace or back to back. The first send the target refuses (an Akka host's Tell policy, a broker's ACL) stops the playback, and the outcome says which send and why. bowire test and the workbench both play through here.

FlowReplayOutcome

#1051 — how a playback went: how many sends went out, and why it stopped if it did.

FlowReplaySend

#1051 — one send of a playback: where it goes, what it carries, and when after the start.

FlowReplaySpec

#1051 — what a replay step plays back: a recording (inline, or a file beside the flow), which of its steps and frames, at what pace and into which server. Each recorded call becomes one send; a recorded stream becomes one send per frame, through the plugin's IBowireFrameSend.

FlowStep

One step inside a Flow. Each step type uses different fields; common ones are first, type-specific ones tail off into Body / Service / etc. Lives separately from CapturedFlow (Proxy capture record) — the names collide intentionally, the domains don't.

FlowStreamExpectation

#1050 — frames a step expects on a stream: any server-streaming method (an MQTT topic, a Kafka consume, an actor-system tap), subscribed before the step's call and watched after it until the frames arrived or TimeoutMs passed.

Either Match with Count (that many frames meeting every condition) or Sequence (frames meeting each entry's conditions, in that order). Conditions are flow expectations read against the frame as a body; a field holding JSON text is read as JSON, so payload.temp reaches into an MQTT payload.

FlowStreamWatch

#1050 — a stream a flow step watches: subscribed before the step's call, asked after it whether the expected frames arrived. bowire test and the workbench (through /api/flows/stream-watch) both use it, so a stream expectation reads the same in both.

Where the plugin implements IBowireStreamSubscriber, StartAsync(string, string, string, string?, Dictionary<string, string>?, CancellationToken) returns once the subscription is in place and a frame the step causes cannot be missed. Otherwise the stream is opened through InvokeStreamAsync(string, string, string, List<string>, bool, Dictionary<string, string>?, CancellationToken), which cannot say when it took hold; Confirmed is false and a failing result says so.

LegacyAssertionTuple

Legacy v2.1 assertion tuple — the in-browser editor wrote {path, op, value} before the v2.2 schema landed. Kept on the step so a saved flow round-trips cleanly through the new pipeline without forcing a one-shot migration.