(sid: string | undefined)
| 49 | |
| 50 | /** Per-session composer draft key. */ |
| 51 | export function draftStorageKey(sid: string | undefined): string { |
| 52 | return `kimi-web.draft.${sid && sid.length > 0 ? sid : '__new__'}`; |
| 53 | } |
| 54 | |
| 55 | export function safeGetString(key: string): string | null { |
| 56 | try { |
no outgoing calls
no test coverage detected