(segments: string[])
| 2649 | } |
| 2650 | |
| 2651 | function formatConfigKeyPath(segments: string[]): string { |
| 2652 | return segments |
| 2653 | .map((segment) => { |
| 2654 | const value = String(segment ?? '').trim(); |
| 2655 | if (/^[A-Za-z0-9_]+$/u.test(value)) { |
| 2656 | return value; |
| 2657 | } |
| 2658 | return `"${value.replace(/\\/gu, '\\\\').replace(/"/gu, '\\"')}"`; |
| 2659 | }) |
| 2660 | .join('.'); |
| 2661 | } |
| 2662 | |
| 2663 | function serializeCollaborationMode({ collaborationMode, model, effort, developerInstructions = '' }: any) { |
| 2664 | if (!collaborationMode) { |
no outgoing calls
no test coverage detected