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

Function capPromptHookInjection

src/directory.ts:826–830  ·  view source on GitHub ↗
(text: string, max = PROMPT_HOOK_INJECTION_MAX)

Source from the content-addressed store, hash-verified

824 * "call codegraph_explore for the rest" notice when truncated.
825 */
826export function capPromptHookInjection(text: string, max = PROMPT_HOOK_INJECTION_MAX): string {
827 return text.length > max
828 ? `${text.slice(0, max)}\n…(truncated; call codegraph_explore for the rest)`
829 : text;
830}
831
832/**
833 * What the front-load hook should do for a prompt issued from a directory.

Callers 2

mainFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected