kimi-code/packages/node-sdk/src
Haozhe cf558cd742
feat(managed-kimi-code): support Anthropic-compatible protocol (#1170)
* fix(agent-core): recover from context overflow 413

- track provider-observed effective context limit after overflow
- compact with the reduced limit before retrying the turn
- treat large plain 413 responses as recoverable context overflow
- add CLI patch changeset

* feat(managed-kimi-code): support Anthropic-compatible protocol

- switch managed provider to anthropic when models declare anthropic protocol
- add base64 video content blocks to the kosong anthropic provider
- downgrade unsupported media parts to text placeholders by capability
- pass prompt cache key as Anthropic metadata.user_id for session affinity

* feat(agent-core): add protocol/type to request and video upload telemetry

- turn_started now carries `type` (configured provider wire type) and
  `protocol` (effective transport, i.e. alias.protocol ?? provider.type)
- new video_upload event reports mime type, size, latency and
  success/failure, plus type/protocol/model context
- ResolvedRuntimeProvider gains `type` and `protocol` fields
2026-06-28 13:04:03 +08:00
..
auth.ts feat(feedback): support attaching logs and codebase (#1120) 2026-06-26 16:15:08 +08:00
catalog.ts fix(catalog): preserve reasoning fields in custom model (#70) 2026-05-26 17:32:37 +08:00
config-rpc.ts feat(cli): add doctor command for config validation (#431) 2026-06-04 21:15:18 +08:00
events.ts feat: agent swarm (#424) 2026-06-08 14:26:56 +08:00
index.ts feat(feedback): support attaching logs and codebase (#1120) 2026-06-26 16:15:08 +08:00
kimi-code-model-provider.ts feat(managed-kimi-code): support Anthropic-compatible protocol (#1170) 2026-06-28 13:04:03 +08:00
kimi-harness.ts fix(reload): re-inject plugin session-start reminder after /reload (#1086) 2026-06-25 23:16:55 +08:00
oauth-error.ts fix: classify OAuth token refresh errors by cause (#838) 2026-06-17 18:34:42 +08:00
rpc.ts fix(reload): re-inject plugin session-start reminder after /reload (#1086) 2026-06-25 23:16:55 +08:00
sdk-rpc-client.ts refactor(telemetry): merge duplicate session-start and goal events (#885) 2026-06-18 17:38:02 +08:00
session.ts fix(reload): re-inject plugin session-start reminder after /reload (#1086) 2026-06-25 23:16:55 +08:00
types.ts fix(reload): re-inject plugin session-start reminder after /reload (#1086) 2026-06-25 23:16:55 +08:00