refactor(cli): centralize tool mapping and decouple legacy scheduler (#17044)

This commit is contained in:
Abhi
2026-01-19 20:00:42 -05:00
committed by GitHub
parent a90bcf749d
commit 1b6b6d40d5
5 changed files with 386 additions and 155 deletions
@@ -9,10 +9,8 @@ import type { Mock } from 'vitest';
import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest';
import { act } from 'react';
import { renderHook } from '../../test-utils/render.js';
import {
useReactToolScheduler,
mapToDisplay,
} from './useReactToolScheduler.js';
import { useReactToolScheduler } from './useReactToolScheduler.js';
import { mapToDisplay } from './toolMapping.js';
import type { PartUnion, FunctionResponse } from '@google/genai';
import type {
Config,