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