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

Function findPreviousSession

apps/kimi-code/src/cli/sub/export.ts:203–208  ·  view source on GitHub ↗
(deps: Pick<ExportDeps, 'cwd' | 'listSessions'>)

Source from the content-addressed store, hash-verified

201}
202
203async function findPreviousSession(deps: Pick<ExportDeps, 'cwd' | 'listSessions'>): Promise<
204 SessionSummary | undefined
205> {
206 const sessions = await deps.listSessions(deps.cwd());
207 return sessions[0];
208}
209
210function toPreviousSessionSummary(summary: SessionSummary): PreviousSessionSummary {
211 return {

Callers 1

handleExportFunction · 0.85

Calls 2

cwdMethod · 0.80
listSessionsMethod · 0.65

Tested by

no test coverage detected