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

Function runExport

apps/kimi-code/test/cli/export.test.ts:197–215  ·  view source on GitHub ↗
(
  deps: ExportDeps,
  args: {
    sessionId?: string;
    output?: string;
    yes?: boolean;
    includeGlobalLog?: boolean;
  } = {},
)

Source from the content-addressed store, hash-verified

195}
196
197async function runExport(
198 deps: ExportDeps,
199 args: {
200 sessionId?: string;
201 output?: string;
202 yes?: boolean;
203 includeGlobalLog?: boolean;
204 } = {},
205): Promise<void> {
206 try {
207 await handleExport(deps, args.sessionId, args.output, {
208 yes: args.yes ?? false,
209 includeGlobalLog: args.includeGlobalLog ?? true,
210 });
211 } catch (error) {
212 if (error instanceof ExitCalled) return;
213 throw error;
214 }
215}
216
217describe('kimi export', () => {
218 it('delegates a named session export and prints the resulting zip path', async () => {

Callers 1

export.test.tsFile · 0.85

Calls 1

handleExportFunction · 0.90

Tested by

no test coverage detected