(
deps: ExportDeps,
args: {
sessionId?: string;
output?: string;
yes?: boolean;
includeGlobalLog?: boolean;
} = {},
)
| 195 | } |
| 196 | |
| 197 | async 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 | |
| 217 | describe('kimi export', () => { |
| 218 | it('delegates a named session export and prints the resulting zip path', async () => { |
no test coverage detected