openma-ai/deepseek-harness-typescript-sdk ↗★ 2
@openma/deepseek-harness-sdk
TypeScript SDK for DeepSeek Harness (dsh): run AI agent turns in a runtime subprocess over newline-delimited JSON-RPC stdio — the DeepSeekHarness high-level turns API and the lower-level HarnessClient, mirroring the official Python SDK
AI Analysis
核心用途是提供高低级 API 以在 JS/TS 项目中集成 DSH。适合需要在 Node.js 环境中调用和控制 DSH 智能体的开发者。
Install
This plugin has no verified bundle, or compatibility checks failed. Read the repository notes first. Read the full README ↗
README
Read the full 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.