(value: string)
| 281 | const DEFAULT_SESSION_STARTED_UI_MODE = 'shell'; |
| 282 | |
| 283 | function normalizeSessionId(value: string): string { |
| 284 | if (typeof value !== 'string') { |
| 285 | throw new KimiError(ErrorCodes.SESSION_ID_REQUIRED, 'Session id is required.'); |
| 286 | } |
| 287 | const normalized = value.trim(); |
| 288 | if (normalized.length === 0) { |
| 289 | throw new KimiError(ErrorCodes.SESSION_ID_EMPTY, 'Session id cannot be empty.'); |
| 290 | } |
| 291 | return normalized; |
| 292 | } |
no outgoing calls
no test coverage detected