MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / draftStorageKey

Function draftStorageKey

apps/kimi-web/src/lib/storage.ts:51–53  ·  view source on GitHub ↗
(sid: string | undefined)

Source from the content-addressed store, hash-verified

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

Callers 4

loadDraftFunction · 0.90
saveDraftFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected