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

Function makeVfs

apps/sim/lib/copilot/tools/handlers/vfs.test.ts:32–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30const OVERSIZED_INLINE_CONTENT = 'x'.repeat(TOOL_RESULT_MAX_INLINE_CHARS + 1)
31
32function makeVfs() {
33 return {
34 grep: vi.fn(),
35 grepFile: vi.fn(),
36 glob: vi.fn().mockReturnValue([]),
37 read: vi.fn(),
38 readFileContent: vi.fn(),
39 suggestSimilar: vi.fn().mockReturnValue([]),
40 }
41}
42
43const GREP_CTX = { userId: 'user-1', workflowId: 'wf-1', workspaceId: 'ws-1' }
44const GREP_CTX_CHAT = { ...GREP_CTX, chatId: 'chat-1' }

Callers 1

vfs.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected