diff options
| author | Abhi <[email protected]> | 2025-07-20 16:57:34 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-07-20 20:57:34 +0000 |
| commit | 2a95c8287ed3b6fc38e7dcec5f0a19b9e2d843e7 (patch) | |
| tree | 1a9ffb6be8468aa44e54bfcb8ae2f961b970cf9a /packages/cli/src/ui/commands/statsCommand.ts | |
| parent | 7a9821607bafcbb98cf059705aaab358d46e711c (diff) | |
prefactor(commands): Command Service Prefactor for Extensible Commands (#4511)
Diffstat (limited to 'packages/cli/src/ui/commands/statsCommand.ts')
| -rw-r--r-- | packages/cli/src/ui/commands/statsCommand.ts | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/packages/cli/src/ui/commands/statsCommand.ts b/packages/cli/src/ui/commands/statsCommand.ts index 87e902d4..e9e69756 100644 --- a/packages/cli/src/ui/commands/statsCommand.ts +++ b/packages/cli/src/ui/commands/statsCommand.ts @@ -6,12 +6,17 @@ import { MessageType, HistoryItemStats } from '../types.js'; import { formatDuration } from '../utils/formatters.js'; -import { type CommandContext, type SlashCommand } from './types.js'; +import { + type CommandContext, + type SlashCommand, + CommandKind, +} from './types.js'; export const statsCommand: SlashCommand = { name: 'stats', - altName: 'usage', + altNames: ['usage'], description: 'check session stats. Usage: /stats [model|tools]', + kind: CommandKind.BUILT_IN, action: (context: CommandContext) => { const now = new Date(); const { sessionStartTime } = context.session.stats; @@ -38,6 +43,7 @@ export const statsCommand: SlashCommand = { { name: 'model', description: 'Show model-specific usage statistics.', + kind: CommandKind.BUILT_IN, action: (context: CommandContext) => { context.ui.addItem( { @@ -50,6 +56,7 @@ export const statsCommand: SlashCommand = { { name: 'tools', description: 'Show tool-specific usage statistics.', + kind: CommandKind.BUILT_IN, action: (context: CommandContext) => { context.ui.addItem( { |
