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

Function fileLine

apps/sim/lib/copilot/chat/workspace-context.ts:222–225  ·  view source on GitHub ↗
(f: (typeof data.files)[0], indent: string)

Source from the content-addressed store, hash-verified

220 }
221 }
222 const fileLine = (f: (typeof data.files)[0], indent: string) => {
223 const vfsPath = canonicalWorkspaceFilePath({ folderPath: f.folderPath, name: f.name })
224 return `${indent}- **${f.name}** (${f.id}) — ${f.type}, ${formatSize(f.size)} — \`${vfsPath}\``
225 }
226 const lines: string[] = [
227 'Read or edit a file by the exact VFS path shown in backticks below — copy it verbatim (it is already percent-encoded) and append `/content` to read the contents. Do not retype the display name or re-encode the path.',
228 ]

Callers 1

buildWorkspaceMdFunction · 0.85

Calls 2

formatSizeFunction · 0.85

Tested by

no test coverage detected