# extendify/3.1.5/src/Agent/workflows/block-selector/select-block.js

Extendify, version 3.1.5. 12 lines.

- Page: https://pluginprobe.com/plugins/extendify/3.1.5/code/src/Agent/workflows/block-selector/select-block.js
- Raw: https://pluginprobe.com/plugins/extendify/3.1.5/raw/src/Agent/workflows/block-selector/select-block.js
- Modified: 2026-08-12T16:23:58+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/extendify/3.1.5/code/src/Agent/workflows/block-selector/select-block.js#L10-L20`.

```javascript
import { BlockPatchingConfirm } from '@agent/workflows/block-selector/components/BlockPatchingConfirm';

const BLOCK_ID_ATTR = 'data-extendify-agent-block-id';

export default {
	// Block ids exist only on the front end — TagBlocks bails in wp-admin.
	available: () => !!document.querySelector(`[${BLOCK_ID_ATTR}]`),
	id: 'select-block',
	whenFinished: { component: BlockPatchingConfirm },
	// No `requires: ['block']` — this workflow is what produces the selection.
};

```
