| 3051 | * @returns {number} Maximum depth of extension prompts | 3051 | * @returns {number} Maximum depth of extension prompts |
| 3052 | */ | 3052 | */ |
| 3053 | export function getExtensionPromptMaxDepth() { | 3053 | export function getExtensionPromptMaxDepth() { |
| | 3054 | return MAX_INJECTION_DEPTH; |
| | 3055 | /* |
| 3054 | const prompts = Object.values(extension_prompts); | 3056 | const prompts = Object.values(extension_prompts); |
| 3055 | const maxDepth = Math.max(...prompts.map(x => x.depth ?? 0)); | 3057 | const maxDepth = Math.max(...prompts.map(x => x.depth ?? 0)); |
| 3056 | // Clamp to 1 <= depth <= MAX_INJECTION_DEPTH | 3058 | // Clamp to 1 <= depth <= MAX_INJECTION_DEPTH |
| 3057 | return Math.max(Math.min(maxDepth, MAX_INJECTION_DEPTH), 1); | 3059 | return Math.max(Math.min(maxDepth, MAX_INJECTION_DEPTH), 1); |
| | 3060 | */ |
| 3058 | } | 3061 | } |
| 3059 | | 3062 | |
| 3060 | /** | 3063 | /** |