(value)
| 91 | } |
| 92 | |
| 93 | function normalizeCopilotProfile(value) { |
| 94 | const v = String(value || '').trim().toLowerCase(); |
| 95 | return v || 'app_chat'; |
| 96 | } |
| 97 | |
| 98 | function cloneContextPacket(value) { |
| 99 | if (!value || typeof value !== 'object' || Array.isArray(value)) { |