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

Extendify, version 3.1.0. 19 lines.

- Page: https://pluginprobe.com/plugins/extendify/3.1.0/code/src/Agent/workflows/workflows.js
- Raw: https://pluginprobe.com/plugins/extendify/3.1.0/raw/src/Agent/workflows/workflows.js
- Modified: 2025-09-09T15:55:14+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.0/code/src/Agent/workflows/workflows.js#L10-L20`.

```javascript
const workflowContext = require.context(
	'.',
	true,
	// Exclude this file and anything in tools/ or components/
	/^(?!.*\/(tools|components)\/)(?!\.\/workflows\.js$).*\.js$/,
);
export const workflows = workflowContext
	.keys()
	.filter((key) => key !== './workflows.js')
	.map((key) => workflowContext(key).default || workflowContext(key));

// 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;
}, {});

```
