openma-ai/deepseek-harness-typescript-sdk2

@openma/deepseek-harness-sdk

适用于 DSH 的 TypeScript SDK,支持在子进程中通过 JSON-RPC 标准输入输出运行 AI 智能体交互。

AI 分析

核心用途是提供高低级 API 以在 JS/TS 项目中集成 DSH。适合需要在 Node.js 环境中调用和控制 DSH 智能体的开发者。

套件
@openma/deepseek-harness-sdk
版本
0.0.2-beta.0
授權
MIT
最近更新
2026年8月13日

安裝

此插件尚未提供可驗證的 bundle,或相容性檢查未通過。請先閱讀倉庫說明。 閱讀完整 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.