mirror of
https://github.com/hanzoui/workflow-templates-broken-zap-2026-06-08.git
synced 2026-10-30 20:44:35 +00:00
13 lines
419 B
TypeScript
13 lines
419 B
TypeScript
import type { WorkflowJson, RequiredNodeInfo } from '../types';
|
|
import { identifyRequiredNodes } from '../../../src/lib/node-registry';
|
|
|
|
export function extractRequiredNodes(workflow: WorkflowJson): RequiredNodeInfo[] {
|
|
const nodes = identifyRequiredNodes(workflow);
|
|
return nodes.map(({ nodeType, info }) => ({
|
|
nodeType,
|
|
package: info.package,
|
|
url: info.url,
|
|
description: info.description,
|
|
}));
|
|
}
|