There was an error while loading. Please reload this page.
1 parent aec040b commit 2494ee2Copy full SHA for 2494ee2
1 file changed
apps/sim/lib/copilot/tools/handlers/vfs.ts
@@ -163,6 +163,13 @@ function truncateDocsPageToInlineCap(page: { content: string; totalLines: number
163
return null
164
}
165
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
+ */
173
export async function executeVfsGrep(
174
params: Record<string, unknown>,
175
context: ExecutionContext
0 commit comments