claude-code-best/src/services/api/gemini
claude-code-best 34bbc1d403 fix(types): replace all as any with proper type assertions
Eliminate unsafe `as any` casts across 21 non-test source files,
replacing them with specific type annotations:

- Bridge transport: use StdoutMessage type for write/writeBatch calls
- print.ts: type msg.request as Record<string, unknown> for unknown
  SDK control subtypes; use StdoutMessage for output.enqueue()
- API providers (openai/grok/gemini): import ChatCompletion types,
  type streams as AsyncIterable<ChatCompletionChunk>, type request
  bodies as ChatCompletionCreateParamsStreaming
- Computer use executor: use Partial<ResolvePrepareCaptureResult>
  for cross-platform screenshot result
- Components: replace Ink color string casts with proper typing
- Win32 bridge: type stdin as Writable after null check

All 2453 tests pass with 0 failures.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-09 23:51:33 +08:00
..
__tests__ Merge branch 'claude-code-best:main' into main 2026-04-06 12:30:53 +08:00
client.ts feat: 添加gemini协议适配 (#125) 2026-04-06 09:55:20 +08:00
convertMessages.ts fix(types): clean type fixes across 92 files 2026-04-09 23:45:56 +08:00
convertTools.ts fix(types): clean type fixes across 92 files 2026-04-09 23:45:56 +08:00
index.ts fix(types): replace all as any with proper type assertions 2026-04-09 23:51:33 +08:00
modelMapping.ts gemini模型环境变量分离 provider指令支持切换gemini 2026-04-06 11:23:05 +08:00
streamAdapter.ts feat: 添加gemini协议适配 (#125) 2026-04-06 09:55:20 +08:00
types.ts feat: 支持 openai 图片兼容 2026-04-06 10:48:27 +08:00