2025-08-10 19:57:17 +08:00

19 lines
390 B
TypeScript

import type { Command } from '../commands'
import { formatTotalCost } from '../cost-tracker'
const cost = {
type: 'local',
name: 'cost',
description: 'Show the total cost and duration of the current session',
isEnabled: true,
isHidden: false,
async call() {
return formatTotalCost()
},
userFacingName() {
return 'cost'
},
} satisfies Command
export default cost