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

Function generateWorkspaceContext

apps/sim/lib/copilot/chat/workspace-context.ts:533–539  ·  view source on GitHub ↗
(
  workspaceId: string,
  userId: string
)

Source from the content-addressed store, hash-verified

531 * reads dynamic workspace state from VFS files; it never writes this file.
532 */
533export async function generateWorkspaceContext(
534 workspaceId: string,
535 userId: string
536): Promise<string> {
537 const data = await buildWorkspaceMdData(workspaceId, userId)
538 return data ? buildWorkspaceMd(data) : WORKSPACE_CONTEXT_UNAVAILABLE_MD
539}
540
541/**
542 * Build BOTH the markdown inventory and the typed VFS snapshot from a single

Callers 2

executeInboxTaskFunction · 0.90
route.tsFile · 0.90

Calls 2

buildWorkspaceMdDataFunction · 0.85
buildWorkspaceMdFunction · 0.85

Tested by

no test coverage detected