source dump of claude code
at main 19 lines 603 B view raw
1/** 2 * Clear command - minimal metadata only. 3 * Implementation is lazy-loaded from clear.ts to reduce startup time. 4 * Utility functions: 5 * - clearSessionCaches: import from './clear/caches.js' 6 * - clearConversation: import from './clear/conversation.js' 7 */ 8import type { Command } from '../../commands.js' 9 10const clear = { 11 type: 'local', 12 name: 'clear', 13 description: 'Clear conversation history and free up context', 14 aliases: ['reset', 'new'], 15 supportsNonInteractive: false, // Should just create a new session 16 load: () => import('./clear.js'), 17} satisfies Command 18 19export default clear