Interface: ReplaceInterruptHandlerNode<TIn, TPayload, THandle>
Defined in: ast/replace-interrupt-handler-node.ts:16
Interrupt handler variant (mode: 'replace') that aborts the current step, runs cleanup hooks, and promotes to a replacement executable.
Rewinds or resets the isolation scope via abortHook (or scope checkpointing) before starting replacementExecutable.
Extends
Type Parameters
| Type Parameter | Default type | Description |
|---|---|---|
TIn | unknown | Flow or actor input payload type. |
TPayload | unknown | Interrupt payload type. |
THandle | unknown | Runtime handle type of the active isolation scope. |
Properties
| Property | Modifier | Type | Description | Overrides | Defined in |
|---|---|---|---|---|---|
abortHook? | readonly | AbortHookASTNode<THandle, Record<string, unknown>> | Optional abort hook executed to snapshot and reset the isolation scope before starting replacementExecutable. | - | ast/replace-interrupt-handler-node.ts:28 |
interrupt | readonly | InterruptNode<TPayload> | Target InterruptNode intercepted by this handler. | - | ast/replace-interrupt-handler-node.ts:26 |
mapReplacementInput | readonly | BivariantCallback<[input: TIn, payload: TPayload, telemetry: UniversalStepTelemetry<Record<string, unknown>, Record<string, unknown>>], unknown> | Synchronous mapper projecting (input, payload, telemetry) into the replacement executable's input. | - | ast/replace-interrupt-handler-node.ts:32 |
mode | readonly | "replace" | Step replacement and promotion handler mode. | - | ast/replace-interrupt-handler-node.ts:24 |
replacementExecutable | readonly | StepASTNode<unknown, unknown, THandle> | Replacement step executable started after the interrupted step is cleaned up. | - | ast/replace-interrupt-handler-node.ts:30 |
type | readonly | "harness:interrupt-handler" | Discriminant identifying an interrupt handler AST node. | ASTNode.type | ast/replace-interrupt-handler-node.ts:22 |