()
| 882 | }; |
| 883 | |
| 884 | const getAgentDirs = () => { |
| 885 | const roots = getSearchRoots(); |
| 886 | const dirs = []; |
| 887 | |
| 888 | for (const root of roots) { |
| 889 | dirs.push(path.join(root, 'agents')); |
| 890 | dirs.push(path.join(root, 'agent')); |
| 891 | dirs.push(path.join(root, '.opencode', 'agents')); |
| 892 | dirs.push(path.join(root, '.opencode', 'agent')); |
| 893 | } |
| 894 | |
| 895 | return [...new Set(dirs)]; |
| 896 | }; |
| 897 | |
| 898 | const parseAgentMarkdown = (content) => { |
| 899 | const match = content.match(/^---\s*\r?\n([\s\S]*?)\r?\n---\s*\r?\n?([\s\S]*)$/); |
no test coverage detected