openma-ai/deepseek-harness-typescript-sdk ↗★ 2
@openma/deepseek-harness-sdk
适用于 DSH 的 TypeScript SDK,支持在子进程中通过 JSON-RPC 标准输入输出运行 AI 智能体交互。
AI 分析
核心用途是提供高低级 API 以在 JS/TS 项目中集成 DSH。适合需要在 Node.js 环境中调用和控制 DSH 智能体的开发者。
安装
此插件尚未提供可验证的 bundle,或兼容性检查未通过。请先阅读仓库说明。 阅读完整 README ↗
说明文档
阅读完整 README ↗Install
npm install @openma/deepseek-harness-sdk
Quick start
import { DeepSeekHarness } from '@openma/deepseek-harness-sdk'
await using harness = new DeepSeekHarness()
const result = await harness.run('Say hi.')
console.log(result.finalResponse)
DeepSeekHarness keeps its lazily started runtime subprocess for reuse across calls. Use it with await using, as above, or call close() explicitly when finished so the child is always reaped.