summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/commands/statsCommand.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/cli/src/ui/commands/statsCommand.ts')
-rw-r--r--packages/cli/src/ui/commands/statsCommand.ts11
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(
{