claude-code-sdk-ts
流畅、可链式调用的TypeScript SDK:配置模型、启用工具、流式事件,然后通过.asText()或.allowTools('Read', 'Write')一次调用获取文本、JSON、运行详情或token统计。多级日志以及实时的onMessage/onToolUse回调提供深度、兼容CLI的可观测性。
Fluent, chainable TypeScript SDK: configure models, enable tools, stream events, then fetch text, JSON, run details or token stats in one call via .asText() or .allowTools('Read', 'Write'). Multi-level logging plus live onMessage/onToolUse callbacks give deep, CLI-compatible observability.
怎么安装
git clone https://github.com/instantlyeasy/claude-code-sdk-ts ~/.claude/skills/claude-code-sdk-ts 简介
Claude Code SDK for TypeScript Unofficial TypeScript SDK for Claude Code - the powerful CLI tool for interacting with Claude. **✨ What's New in v0.4.0:** 🎬 **Interactive streaming session** with working visual typewriter effects 🛡️ **Typed error handling** you catch with instanceof — no error categories, no wrappers ⏱️ **Timeouts and edit-acceptance that actually take effect** — withTimeout() throws a real TimeoutError, acceptEdits() maps to the CLI's --permission-mode 🔧 **Production-ready examples** that actually work as advertised **Note**: For the classic async generator API, see Classic…
推荐参考
信息
- 协议
- MIT
- 语言
- TypeScript
- GitHub 星标
- 207
- 月下载
- 855
- 最近更新
- 2026-08-14
- 创建于
- 2025-06-21
基础安全检查
- 检查结果
- 仓库已归档
- 收录来源
- curated:LangGPT/awesome-claude-code
- 主题标签
- claude, claude-code, claude-code-sdk, claude-code-typescript, claude-max
同类推荐
langfuse
langfuse/langfuse
🪢 开源AI工程平台:LLM评估、可观测性、指标、提示管理、游乐场、数据集。与OpenTelemetry、LangChain、OpenAI SDK、LiteLLM等集成。🍊YC W23