MCPcopy Create free account
hub / github.com/apache/maka / readInputPath

Function readInputPath

packages/cli/src/pi-transcript-tools.ts:409–414  ·  view source on GitHub ↗
(entry: MakaPiToolEntry)

Source from the content-addressed store, hash-verified

407}
408
409function readInputPath(entry: MakaPiToolEntry): string | undefined {
410 const input = entry.input;
411 const path =
412 input !== null && typeof input === 'object' ? (input as { path?: unknown }).path : undefined;
413 return typeof path === 'string' && path.length > 0 ? path : undefined;
414}
415
416function readInputRef(entry: MakaPiToolEntry): string | undefined {
417 const input = entry.input;

Callers 1

isFilesystemReadPathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected