Skip to content

Commit 2494ee2

Browse files
committed
docs(copilot): document VFS grep routing
1 parent aec040b commit 2494ee2

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

  • apps/sim/lib/copilot/tools/handlers

apps/sim/lib/copilot/tools/handlers/vfs.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,13 @@ function truncateDocsPageToInlineCap(page: { content: string; totalLines: number
163163
return null
164164
}
165165

166+
/**
167+
* Routes grep by content source. `docs/<page>` uses one network-backed docs
168+
* page; `uploads/<file>` uses one chat-scoped upload; workspace file paths use
169+
* one authorized file; all remaining paths use the materialized in-memory VFS.
170+
* External and dynamic file contents are therefore opt-in and single-target,
171+
* while an unscoped grep searches only static VFS resources and metadata.
172+
*/
166173
export async function executeVfsGrep(
167174
params: Record<string, unknown>,
168175
context: ExecutionContext

0 commit comments

Comments
 (0)