refactor: use CoreToolCallStatus in the the history data model (#19033)

This commit is contained in:
Jerop Kipruto
2026-02-13 17:20:14 -05:00
committed by GitHub
parent e7e4c68c5c
commit f87468c644
40 changed files with 322 additions and 268 deletions

View File

@@ -14,10 +14,11 @@ import {
import * as fs from 'node:fs/promises';
import path from 'node:path';
import { getSessionFiles, type SessionInfo } from '../../utils/sessionUtils.js';
import type {
Config,
ConversationRecord,
MessageRecord,
import {
type Config,
type ConversationRecord,
type MessageRecord,
CoreToolCallStatus,
} from '@google/gemini-cli-core';
import { coreEvents } from '@google/gemini-cli-core';
@@ -238,7 +239,7 @@ describe('convertSessionToHistoryFormats', () => {
id: 'call_1',
name: 'get_time',
args: {},
status: 'success',
status: CoreToolCallStatus.Success,
result: '12:00',
},
],
@@ -258,7 +259,7 @@ describe('convertSessionToHistoryFormats', () => {
expect.objectContaining({
callId: 'call_1',
name: 'get_time',
status: 'Success',
status: CoreToolCallStatus.Success,
}),
],
});