MCPcopy
hub / github.com/simstudioai/sim / canonicalKnowledgeBaseVfsDir

Function canonicalKnowledgeBaseVfsDir

apps/sim/lib/copilot/vfs/path-utils.ts:118–120  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

116
117/** Canonical VFS directory for a knowledge base (`knowledgebases/{name}`). */
118export function canonicalKnowledgeBaseVfsDir(name: string): string {
119 return `knowledgebases/${encodeVfsSegment(name)}`
120}
121
122/** Canonical VFS path for a block catalog entry (`components/blocks/{type}.json`). */
123export function canonicalBlockVfsPath(blockType: string): string {

Callers 2

processKnowledgeFromDbFunction · 0.90
path-utils.test.tsFile · 0.90

Calls 1

encodeVfsSegmentFunction · 0.85

Tested by

no test coverage detected