MCPcopy Create free account
hub / github.com/simstudioai/sim / isChatUploadGrepPath

Function isChatUploadGrepPath

apps/sim/lib/copilot/tools/handlers/vfs.ts:38–41  ·  view source on GitHub ↗

True when a grep `path` targets the chat-scoped uploads namespace.

(path: string | undefined)

Source from the content-addressed store, hash-verified

36
37/** True when a grep `path` targets the chat-scoped uploads namespace. */
38function isChatUploadGrepPath(path: string | undefined): path is string {
39 if (!path) return false
40 return /^uploads(\/|$)/.test(path.replace(/^\/+/, ''))
41}
42
43function serializedResultSize(value: unknown): number {
44 try {

Callers 1

executeVfsGrepFunction · 0.85

Calls 2

testMethod · 0.80
replaceMethod · 0.65

Tested by

no test coverage detected