MCPcopy
hub / github.com/intentui/intentui / fileEntryPage

Function fileEntryPage

src/scripts/generate-registry.ts:351–358  ·  view source on GitHub ↗
(
  absPath: string,
  target: string,
  content?: string
)

Source from the content-addressed store, hash-verified

349type FileOut = FilePage | FileOther
350
351const fileEntryPage = async (
352 absPath: string,
353 target: string,
354 content?: string
355): Promise<FilePage> => {
356 const rel = toPosix(path.relative(ROOT, absPath))
357 return { path: rel, type: 'registry:page', target, content }
358}
359
360const fileEntryOther = async (
361 absPath: string,

Callers 2

buildExampleItemFunction · 0.85
buildBlockItemFunction · 0.85

Calls 1

toPosixFunction · 0.85

Tested by

no test coverage detected