MCPcopy
hub / github.com/xintaofei/codeg / readFilePreview

Function readFilePreview

src/lib/api.ts:2720–2725  ·  view source on GitHub ↗
(
  rootPath: string,
  path: string
)

Source from the content-addressed store, hash-verified

2718}
2719
2720export async function readFilePreview(
2721 rootPath: string,
2722 path: string
2723): Promise<FilePreviewContent> {
2724 return getTransport().call("read_file_preview", { rootPath, path })
2725}
2726
2727export async function readFileForEdit(
2728 rootPath: string,

Callers 4

CommitWorkspaceFunction · 0.90
loadIgnoredPathsFunction · 0.90
WorkspaceProviderFunction · 0.90
loadFunction · 0.90

Calls 2

getTransportFunction · 0.90
callMethod · 0.65

Tested by

no test coverage detected