@deepseek-ai/dsh-sdk-client 0.1.3-alpha.2 → 0.1.5-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.i18n.yaml CHANGED
@@ -2,5 +2,5 @@
2
2
  # side as of the last confirmed-consistent state. Both languages carry equal authority;
3
3
  # after editing either side, bring the other along and re-record with:
4
4
  # pnpm run verify-translation-pairing --write packages/sdk/client/README.md
5
- README.md: 49898081640c700686b5a30b963180fa6b52717a
6
- README.zh.md: de799585c2bec0c62eae31e7de52e6f921c8c96b
5
+ README.md: bfbd522d120fb0a0123c0496394973e531a9ba6f
6
+ README.zh.md: b2f2dc1dc2ffa0a333677048f7968a6680a6d13d
package/README.md CHANGED
@@ -9,7 +9,7 @@ English | [中文](README.zh.md)
9
9
 
10
10
  ## Summary
11
11
 
12
- `dsh-sdk-client` lets TypeScript programs drive a DeepSeek Harness runtime as a subprocess over stdio JSON-RPC. With `DeepSeekHarness` you can spawn the runtime, open sessions, send prompts, and collect the final response plus the event and notification streams; `HarnessClient` gives explicit control over the protocol layer. It is the design twin of the [Python SDK](../../../python/README.md), which shares the same runtime peer and protocol. The launch spec is explicit — callers may name the runtime executable via `dshBin`, omitted resolves the same-version `@deepseek-ai/dsh` package's bin, and the client constructs the arguments so this client suits repository-adjacent TypeScript consumers such as the SDK subagent backend and automation that know which runtime they are launching. It is a pure library: it registers nothing on a Cordis context, and the runtime it spawns is a complete harness whose composition its own `cordis.yml` decides.
12
+ `dsh-sdk-client` lets TypeScript programs start and drive a complete DeepSeek Harness runtime over stdio JSON-RPC. Use `DeepSeekHarness` to open sessions, send text or image prompts, collect event and notification streams, and obtain the last committed assistant response when the runtime becomes idle; use `HarnessClient` for direct protocol requests and subscriptions. Callers may provide `dshBin`; otherwise the client resolves the same-version `@deepseek-ai/dsh` executable. The client owns the subprocess across runs, exposes typed transport and protocol failures, and reaps it on `close()` or `await using`. It is suitable when the caller can choose the runtime profile and launch settings.
13
13
 
14
14
  ## Table of Contents
15
15
 
package/README.zh.md CHANGED
@@ -9,7 +9,7 @@ kind: "package-library"
9
9
 
10
10
  ## 概述
11
11
 
12
- `dsh-sdk-client` 让 TypeScript 程序以子进程方式、通过 stdio JSON-RPC 驱动 DeepSeek Harness 运行时。使用 `DeepSeekHarness` 你可以启动运行时、打开会话、发送提示词,并收集最终响应以及事件与通知流;`HarnessClient` 提供对协议层的显式控制。它是 [Python SDK](../../../python/README.zh.md) 的设计孪生,共享同一个运行时对端与协议。启动说明是显式的——调用方可通过 `dshBin` 指定运行时可执行文件,省略时解析同版本 `@deepseek-ai/dsh` 包的 bin,参数由客户端构造——因此本客户端适合仓库近旁的 TypeScript 消费方,如 SDK subagent 后端和知道自己要启动哪个运行时的自动化。它是纯库:不在任何 Cordis 上下文注册,而且它启动的运行时是一个完整 harness,其组成由自己的 `cordis.yml` 决定。
12
+ `dsh-sdk-client` 让 TypeScript 程序通过 stdio JSON-RPC 启动并驱动完整的 DeepSeek Harness 运行时。使用 `DeepSeekHarness` 可打开会话、发送文本或图像提示词、收集事件与通知流,并在运行时进入 idle 后取得最后提交的助手响应;使用 `HarnessClient` 可直接发送协议请求和订阅通知。调用方可以提供 `dshBin`;否则客户端解析同版本的 `@deepseek-ai/dsh` 可执行文件。客户端跨多次运行持有子进程,公开类型化的传输与协议错误,并在 `close()` `await using` 时回收进程。它适用于调用方能够选择运行时 profile 和启动设置的场景。
13
13
 
14
14
  ## 目录
15
15
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-sdk-client",
3
3
  "description": "TypeScript client SDK for driving a DeepSeek Harness runtime subprocess over stdio JSON-RPC: the DeepSeekHarness high-level turns API and the lower-level HarnessClient",
4
- "version": "0.1.3-alpha.2",
4
+ "version": "0.1.5-alpha.1",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -26,18 +26,18 @@
26
26
  ],
27
27
  "license": "MIT",
28
28
  "dependencies": {
29
- "@deepseek-ai/dsh": "0.1.3-alpha.2"
29
+ "@deepseek-ai/dsh": "0.1.5-alpha.1"
30
30
  },
31
31
  "peerDependencies": {
32
- "@deepseek-ai/dsh-llm": "^0.1.3-alpha.2",
33
- "@deepseek-ai/dsh-sdk-protocol": "^0.1.3-alpha.2",
34
- "@deepseek-ai/dsh-session": "^0.1.3-alpha.2",
32
+ "@deepseek-ai/dsh-llm": "^0.1.5-alpha.1",
33
+ "@deepseek-ai/dsh-sdk-protocol": "^0.1.5-alpha.1",
34
+ "@deepseek-ai/dsh-session": "^0.1.5-alpha.1",
35
35
  "@deepseek-ai/cordis": "^4.0.2"
36
36
  },
37
37
  "devDependencies": {
38
- "@deepseek-ai/dsh-llm": "^0.1.3-alpha.2",
39
- "@deepseek-ai/dsh-sdk-protocol": "^0.1.3-alpha.2",
40
- "@deepseek-ai/dsh-session": "^0.1.3-alpha.2",
38
+ "@deepseek-ai/dsh-llm": "^0.1.5-alpha.1",
39
+ "@deepseek-ai/dsh-sdk-protocol": "^0.1.5-alpha.1",
40
+ "@deepseek-ai/dsh-session": "^0.1.5-alpha.1",
41
41
  "@deepseek-ai/cordis": "^4.0.2"
42
42
  }
43
43
  }