506
const serialize = (plugins: readonly IParsedPlugin[]) => {
507
return JSON.stringify(plugins.map(p => ({
509
>
hooks: p.hooks.map(h => ({ type: h.type, commands: h.commands.map(c => ({ command: c.command, windows: c.windows, linux: c.linux, osx: c.osx, cwd: c.cwd?.toString(), env: c.env, timeout: c.timeout })) })),
510
>
mcpServers: p.mcpServers.map(m => ({ name: m.name, configuration: m.configuration })),
511
>
skills: p.skills.map(s => ({ uri: s.uri.toString(), name: s.name })),
512
>
agents: p.agents.map(a => ({ uri: a.uri.toString(), name: a.name })),
513
>
instructions: p.instructions.map(i => ({ uri: i.uri.toString(), name: i.name })),
514
})));
515
};