index.ts
1 import { getIsNonInteractiveSession } from '../../bootstrap/state.js' 2 import type { Command } from '../../commands.js' 3 4 export const context: Command = { 5 name: 'context', 6 description: 'Visualize current context usage as a colored grid', 7 isEnabled: () => !getIsNonInteractiveSession(), 8 type: 'local-jsx', 9 load: () => import('./context.js'), 10 } 11 12 export const contextNonInteractive: Command = { 13 type: 'local', 14 name: 'context', 15 supportsNonInteractive: true, 16 description: 'Show current context usage', 17 get isHidden() { 18 return !getIsNonInteractiveSession() 19 }, 20 isEnabled() { 21 return getIsNonInteractiveSession() 22 }, 23 load: () => import('./context-noninteractive.js'), 24 }