MCPcopy Create free account
hub / github.com/WJX20/claude-code / getNewRelativeAgentFilePath

Function getNewRelativeAgentFilePath

src/components/agents/agentFileUtils.ts:121–130  ·  view source on GitHub ↗
(agent: {
  source: SettingSource | 'built-in'
  agentType: string
})

Source from the content-addressed store, hash-verified

119 * Used for displaying where new agent files will be created
120 */
121export 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)

Callers 1

ConfirmStepFunction · 0.85

Calls 1

Tested by

no test coverage detected