MCPcopy Index your code
hub / github.com/simstudioai/sim / canonicalWorkflowVfsDir

Function canonicalWorkflowVfsDir

apps/sim/lib/copilot/vfs/path-utils.ts:104–110  ·  view source on GitHub ↗
(parts: {
  name: string
  folderPath?: string | null
})

Source from the content-addressed store, hash-verified

102 * `workspace-vfs.ts` (`workflows/{folder}/{name}` or `workflows/{name}`).
103 */
104export function canonicalWorkflowVfsDir(parts: {
105 name: string
106 folderPath?: string | null
107}): string {
108 const safeName = encodeVfsSegment(parts.name)
109 return parts.folderPath ? `workflows/${parts.folderPath}/${safeName}` : `workflows/${safeName}`
110}
111
112/** Canonical VFS path for a table's metadata file (`tables/{name}/meta.json`). */
113export function canonicalTableVfsPath(name: string): string {

Callers 7

processWorkflowFromDbFunction · 0.90
formatWfFunction · 0.90
buildVfsSnapshotFunction · 0.90
path-utils.test.tsFile · 0.90
materializeWorkflowsMethod · 0.90

Calls 1

encodeVfsSegmentFunction · 0.85

Tested by

no test coverage detected