(arr: T[] | undefined)
| 165 | // Dedup here before inlining into the prompt — affects only what the model sees, |
| 166 | // not sandbox enforcement. Saves ~150-200 tokens/request when sandbox is enabled. |
| 167 | function dedup<T>(arr: T[] | undefined): T[] | undefined { |
| 168 | if (!arr || arr.length === 0) return arr |
| 169 | return [...new Set(arr)] |
| 170 | } |
| 171 | |
| 172 | function getSimpleSandboxSection(): string { |
| 173 | if (!SandboxManager.isSandboxingEnabled()) { |
no outgoing calls
no test coverage detected