(text: string, max = PROMPT_HOOK_INJECTION_MAX)
| 823 | * "call codegraph_explore for the rest" notice when truncated. |
| 824 | */ |
| 825 | export 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. |
no outgoing calls
no test coverage detected