google-gemini/gemini-cli

Fix unsafe type assertions (Refactoring Plan)

已关闭

#19,708 创建于 2026年2月20日

 (18 条评论) (0 个反应) (1 位负责人)TypeScript (13,657 个派生)batch import
area/coreeffort/largehelp wantedkind/bugpriority/p2status/bot-triaged

仓库指标

星标
 (103,992 个星标)
PR 合并指标
 (平均合并 4天 2小时) (30 天内合并 55 个 PR)

描述

Tracking issue for removing no-unsafe-type-assertion suppressions introduced in PR #18688.

The goal is to replace as Type casts with runtime validation (Zod, instanceof, type guards).

This is a meta-issue to track the progress of the following sub-tasks.

  • #19709 - Phase 1.1: Error Handling (Core Utilities)
  • #19710 - Phase 1.2: JSON & Config (Core Utilities)
  • #19711 - Phase 2.1: Tool Execution (Core Tools)
  • #19712 - Phase 2.2: File System (Core File System)
  • #19713 - Phase 3.1: CLI Config
  • #19714 - Phase 3.2: CLI Activity Logger
  • #19715 - Phase 4.1: A2A Server
  • #19717 - Phase 4.2: VS Code Companion (Likely empty/already done)
  • #19733 - Phase 5: CLI Commands
  • #19734 - Phase 6: CLI UI
  • #19735 - Phase 7: Core MCP & Code Assist

贡献者指南