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

Function normalizeOptionalSessionId

apps/kimi-code/src/cli/sub/export.ts:219–222  ·  view source on GitHub ↗
(sessionId: string | undefined)

Source from the content-addressed store, hash-verified

217}
218
219function normalizeOptionalSessionId(sessionId: string | undefined): string | undefined {
220 const trimmed = sessionId?.trim();
221 return trimmed === undefined || trimmed === '' ? undefined : trimmed;
222}
223
224async function confirmPreviousSession(summary: PreviousSessionSummary): Promise<boolean> {
225 const rl = createInterface({ input: process.stdin, output: process.stderr });

Callers 1

handleExportFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected