mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-18 06:15:51 +00:00
refactor: 搬入 errorUtils 并迁移消费者导入到 model-provider
- 搬入 formatAPIError、extractConnectionErrorDetails 等 errorUtils - 迁移 10 个消费者文件直接从 @anthropic-ai/model-provider 导入 - 更新 emptyUsage、sdkUtilityTypes、systemPromptType 为 re-export proxy Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -8,7 +8,7 @@ import {
|
||||
type AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS,
|
||||
logEvent,
|
||||
} from '../../services/analytics/index.js'
|
||||
import { getSSLErrorHint } from '../../services/api/errorUtils.js'
|
||||
import { getSSLErrorHint } from '@anthropic-ai/model-provider'
|
||||
import { fetchAndStoreClaudeCodeFirstTokenDate } from '../../services/api/firstTokenDate.js'
|
||||
import {
|
||||
createAndStoreApiKey,
|
||||
|
||||
@@ -65,7 +65,7 @@ import {
|
||||
registerProcessOutputErrorHandlers,
|
||||
} from 'src/utils/process.js'
|
||||
import type { Stream } from 'src/utils/stream.js'
|
||||
import { EMPTY_USAGE } from 'src/services/api/logging.js'
|
||||
import { EMPTY_USAGE } from '@anthropic-ai/model-provider'
|
||||
import {
|
||||
loadConversationForResume,
|
||||
type TurnInterruptionState,
|
||||
|
||||
Reference in New Issue
Block a user