(agent: {
source: SettingSource | 'built-in'
agentType: string
})
| 174 | * Used for displaying where new agent files will be created |
| 175 | */ |
| 176 | export function getNewRelativeAgentFilePath(agent: { |
| 177 | source: SettingSource | 'built-in' |
| 178 | agentType: string |
| 179 | }): string { |
| 180 | if (agent.source === 'built-in') { |
| 181 | return 'Built-in' |
| 182 | } |
| 183 | const dirPath = getRelativeAgentDirectoryPath(agent.source) |
| 184 | return join(dirPath, `${agent.agentType}.md`) |
| 185 | } |
| 186 | |
| 187 | /** |
| 188 | * Gets the actual relative file path for an agent (handles filename vs agentType mismatch) |
no test coverage detected