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

Function capPromptHookInjection

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

Source from the content-addressed store, hash-verified

823 * "call codegraph_explore for the rest" notice when truncated.
824 */
825export function capPromptHookInjection(text: string, max = PROMPT_HOOK_INJECTION_MAX): string {
826 return text.length > max
827 ? `${text.slice(0, max)}\n…(truncated; call codegraph_explore for the rest)`
828 : text;
829}
830
831/**
832 * 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