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

Function getNewAgentFilePath

src/components/agents/agentFileUtils.ts:147–153  ·  view source on GitHub ↗
(agent: {
  source: SettingSource
  agentType: string
})

Source from the content-addressed store, hash-verified

145 * Used when creating new agent files
146 */
147export function getNewAgentFilePath(agent: {
148 source: SettingSource
149 agentType: string
150}): string {
151 const dirPath = getAgentDirectoryPath(agent.source)
152 return join(dirPath, `${agent.agentType}.md`)
153}
154
155/**
156 * Gets the actual file path for an agent (handles filename vs agentType mismatch)

Callers 2

saveAgentToFileFunction · 0.85
ConfirmStepWrapperFunction · 0.85

Calls 1

getAgentDirectoryPathFunction · 0.85

Tested by

no test coverage detected