mirror of
https://github.com/codeaashu/claude-code.git
synced 2026-04-12 16:09:53 +03:00
claude-code
This commit is contained in:
26
src/commands/context/index.ts
Normal file
26
src/commands/context/index.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
import { getIsNonInteractiveSession } from '../../bootstrap/state.js'
|
||||
import type { Command } from '../../commands.js'
|
||||
|
||||
export const context: Command = {
|
||||
name: 'context',
|
||||
description: 'Visualize current context usage as a colored grid',
|
||||
isEnabled: () => !getIsNonInteractiveSession(),
|
||||
type: 'local-jsx',
|
||||
load: () => import('./context.js'),
|
||||
}
|
||||
|
||||
export const contextNonInteractive: Command = {
|
||||
type: 'local',
|
||||
name: 'context',
|
||||
supportsNonInteractive: true,
|
||||
description: 'Show current context usage',
|
||||
get isHidden() {
|
||||
return !getIsNonInteractiveSession()
|
||||
},
|
||||
isEnabled() {
|
||||
return getIsNonInteractiveSession()
|
||||
},
|
||||
load: () => import('./context-noninteractive.js'),
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user