MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / fromQuery

Function fromQuery

__tests__/ui-server.test.ts:497–497  ·  view source on GitHub ↗
(encoded: string)

Source from the content-addressed store, hash-verified

495
496 /** A `file=` value as the API receives it: decoded once by the URL parser. */
497 const fromQuery = (encoded: string): string => new URLSearchParams(`file=${encoded}`).get('file') ?? '';
498
499 it('refuses traversal out of the project', () => {
500 for (const escape of [

Callers 1

ui-server.test.tsFile · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected