(agent: {
source: SettingSource | 'built-in'
agentType: string
})
| 119 | * Used for displaying where new agent files will be created |
| 120 | */ |
| 121 | export function getNewRelativeAgentFilePath(agent: { |
| 122 | source: SettingSource | 'built-in' |
| 123 | agentType: string |
| 124 | }): string { |
| 125 | if (agent.source === 'built-in') { |
| 126 | return 'Built-in' |
| 127 | } |
| 128 | const dirPath = getRelativeAgentDirectoryPath(agent.source) |
| 129 | return join(dirPath, `${agent.agentType}.md`) |
| 130 | } |
| 131 | |
| 132 | /** |
| 133 | * Gets the actual relative file path for an agent (handles filename vs agentType mismatch) |
no test coverage detected