# extendify/3.2.1/src/Agent/workflows/workflows.js

Extendify, version 3.2.1. 32 lines.

- Page: https://pluginprobe.com/plugins/extendify/3.2.1/code/src/Agent/workflows/workflows.js
- Raw: https://pluginprobe.com/plugins/extendify/3.2.1/raw/src/Agent/workflows/workflows.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.2.1/code/src/Agent/workflows/workflows.js#L10-L20`.

```javascript
const workflowContext = require.context(
	'.',
	true,
	// Anything not excluded here ships to find-agent as an eligible workflow.
	/^(?!.*\/(tools|components|overrides)\/)(?!\.\/workflows\.js$).*\.js$/,
);
export const workflows = workflowContext
	.keys()
	.filter((key) => key !== './workflows.js')
	.map((key) => workflowContext(key).default || workflowContext(key));

// Merged over the workflow the backend sent, never offered to find-agent.
const abilityContext = require.context(
	'.',
	true,
	/abilities\/overrides\/.*\.js$/,
);
export const abilityWorkflows = Object.fromEntries(
	abilityContext.keys().map((key) => {
		const workflow = abilityContext(key).default || abilityContext(key);
		return [workflow.id, workflow];
	}),
);

// Dynamically pull in all tools
const toolContext = require.context('.', true, /tools\/.*\.js$/);
export const tools = toolContext.keys().reduce((acc, key) => {
	const id = key.split('/').pop().replace('.js', '');
	acc[id] = toolContext(key).default || toolContext(key);
	return acc;
}, {});

```
