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

Function encodeVfsSegment

apps/sim/lib/copilot/vfs/path-utils.ts:15–21  ·  view source on GitHub ↗
(segment: string)

Source from the content-addressed store, hash-verified

13}
14
15export function encodeVfsSegment(segment: string): string {
16 const normalized = normalizeDisplaySegment(segment)
17 if (!normalized || normalized === '.' || normalized === '..') {
18 throw new VfsPathError('VFS path segment cannot be empty or a dot segment')
19 }
20 return encodeURIComponent(normalized)
21}
22
23export function decodeVfsSegment(segment: string): string {
24 try {

Callers 9

canonicalUploadKeyFunction · 0.90
encodeUploadSegmentFunction · 0.90
processSkillFromDbFunction · 0.90
normalizeVfsSegmentFunction · 0.90
resolveFunction · 0.85
canonicalWorkflowVfsDirFunction · 0.85
canonicalTableVfsPathFunction · 0.85

Calls 1

normalizeDisplaySegmentFunction · 0.85

Tested by

no test coverage detected