feat: add usage command (#281)

This commit is contained in:
cthomas
2025-12-17 19:48:04 -08:00
committed by GitHub
parent fb6fecddf8
commit b9e52d20e8
5 changed files with 145 additions and 48 deletions

View File

@@ -25,9 +25,9 @@ export const commands: Record<string, Command> = {
},
},
"/exit": {
desc: "Exit and show session stats",
desc: "Exit this session",
handler: () => {
// Handled specially in App.tsx to show stats
// Handled specially in App.tsx
return "Exiting...";
},
},
@@ -180,6 +180,13 @@ export const commands: Record<string, Command> = {
return "Opening memory viewer...";
},
},
"/usage": {
desc: "Show session usage statistics and balance",
handler: () => {
// Handled specially in App.tsx to display usage stats
return "Fetching usage statistics...";
},
},
};
/**