@@ -4,11 +4,11 @@ import { homedir } from 'os'
44import path , { basename , dirname , isAbsolute , parse } from 'path'
55import * as readline from 'readline'
66
7+ import { AnalyticsEvent } from '@codebuff/common/constants/analytics-events'
78import {
89 API_KEY_ENV_VAR ,
910 ASYNC_AGENTS_ENABLED ,
1011} from '@codebuff/common/old-constants'
11- import { AnalyticsEvent } from '@codebuff/common/constants/analytics-events'
1212import {
1313 getAllAgents ,
1414 getAgentDisplayName ,
@@ -109,7 +109,6 @@ import { withHangDetection } from './utils/with-hang-detection'
109109import type { CliOptions , GitCommand } from './types'
110110import type { ApiKeyType } from '@codebuff/common/api-keys/constants'
111111import type { CostMode } from '@codebuff/common/old-constants'
112- import type { PrintModeFinish } from '@codebuff/common/types/print-mode'
113112import type { ProjectFileContext } from '@codebuff/common/util/file'
114113
115114// Cache for local agent info to avoid async issues in sync methods
@@ -1372,17 +1371,6 @@ export class CLI {
13721371 . flat ( )
13731372 . reduce ( ( sum , credits ) => sum + credits , 0 )
13741373
1375- if ( printModeIsEnabled ( ) ) {
1376- const finishObj : PrintModeFinish = {
1377- type : 'finish' ,
1378- totalCost : totalCreditsUsedThisSession ,
1379- }
1380- const agentId = CLI . getInstance ( ) . agent
1381- if ( agentId ) {
1382- finishObj . agentId = agentId
1383- }
1384- printModeLog ( finishObj )
1385- }
13861374 let exitUsageMessage = `${ pluralize ( totalCreditsUsedThisSession , 'credit' ) } used this session`
13871375 if ( client . usageData . remainingBalance !== null ) {
13881376 exitUsageMessage += `, ${ client . usageData . remainingBalance . toLocaleString ( ) } credits left.`
0 commit comments