/ commands / clear / index.ts
index.ts
 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   */
 8  import type { Command } from '../../commands.js'
 9  
10  const 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  
19  export default clear