(raw)
| 69 | } |
| 70 | |
| 71 | function normalizeWorkflows(raw) { |
| 72 | return raw |
| 73 | .map((w) => ({ |
| 74 | id: w.id, |
| 75 | title: w.title ?? w.id, |
| 76 | description: w.description ?? "", |
| 77 | defaultEnabled: Boolean(w.selection?.mcp?.defaultEnabled), |
| 78 | tools: Array.isArray(w.tools) ? w.tools : [], |
| 79 | })) |
| 80 | .sort((a, b) => a.id.localeCompare(b.id)); |
| 81 | } |
| 82 | |
| 83 | async function main() { |
| 84 | const args = parseArgs(process.argv.slice(2)); |