---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/dev-tools/interfaces/DevStepContext.md
description: Step middleware context.
---

# Interface: DevStepContext

Defined in: [src/batteries/dev\_tools/types.ts:301](https://github.com/NHTIO/ADK/blob/master/src/src/batteries/dev_tools/types.ts#L301)

Step middleware context.

## Properties

| Property                                    | Modifier   | Type                              | Description                                                           | Defined in                                                                                                                 |
| ------------------------------------------- | ---------- | --------------------------------- | --------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
|  `engines`     | `readonly` | `DevEngineRegistry`               | Resolved engines in deployment order.                                 | [src/batteries/dev\_tools/types.ts:317](https://github.com/NHTIO/ADK/blob/master/src/src/batteries/dev_tools/types.ts#L317) |
|  `plan`           | `readonly` | [`DevPlan`](DevPlan.md)           | Plan being executed.                                                  | [src/batteries/dev\_tools/types.ts:303](https://github.com/NHTIO/ADK/blob/master/src/src/batteries/dev_tools/types.ts#L303) |
|  `signal?`      | `readonly` | `AbortSignal`                     | Optional cancellation signal passed to capability work.               | [src/batteries/dev\_tools/types.ts:313](https://github.com/NHTIO/ADK/blob/master/src/src/batteries/dev_tools/types.ts#L313) |
|  `stash`         | `readonly` | `Map`<`string`, `unknown`>      | Per-execution storage shared by step middleware.                      | [src/batteries/dev\_tools/types.ts:311](https://github.com/NHTIO/ADK/blob/master/src/src/batteries/dev_tools/types.ts#L311) |
|  `step`           | `readonly` | [`DevStep`](DevStep.md)           | Current authored step.                                                | [src/batteries/dev\_tools/types.ts:307](https://github.com/NHTIO/ADK/blob/master/src/src/batteries/dev_tools/types.ts#L307) |
|  `stepIndex` | `readonly` | `number`                          | Zero-based current step index.                                        | [src/batteries/dev\_tools/types.ts:305](https://github.com/NHTIO/ADK/blob/master/src/src/batteries/dev_tools/types.ts#L305) |
|  `workspace` | `public`   | [`DevWorkspace`](DevWorkspace.md) | Live workspace; middleware may replace it only with a matching token. | [src/batteries/dev\_tools/types.ts:309](https://github.com/NHTIO/ADK/blob/master/src/src/batteries/dev_tools/types.ts#L309) |

## Methods

### shortCircuit()

```ts
shortCircuit(ws: DevWorkspace): never;
```

Defined in: [src/batteries/dev\_tools/types.ts:315](https://github.com/NHTIO/ADK/blob/master/src/src/batteries/dev_tools/types.ts#L315)

Replace the current workspace, preserving its opaque provenance token.

#### Parameters

| Parameter | Type                              |
| --------- | --------------------------------- |
| `ws`      | [`DevWorkspace`](DevWorkspace.md) |

#### Returns

`never`
