MCPcopy Create free account
hub / github.com/Noumena-Network/code / getNewRelativeAgentFilePath

Function getNewRelativeAgentFilePath

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

Source from the content-addressed store, hash-verified

174 * Used for displaying where new agent files will be created
175 */
176export 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)

Callers 1

ConfirmStepFunction · 0.85

Calls 1

Tested by

no test coverage detected