@deepseek-ai/dsh-sdk-protocol 0.0.1-rc.2 → 0.1.0-rc.2

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/LICENSE CHANGED
@@ -1,28 +1,21 @@
1
- BSD 3-Clause License
1
+ MIT License
2
2
 
3
- Copyright (c) 2026, DeepSeek
3
+ Copyright (c) 2026 DeepSeek
4
4
 
5
- Redistribution and use in source and binary forms, with or without
6
- modification, are permitted provided that the following conditions are met:
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
7
11
 
8
- 1. Redistributions of source code must retain the above copyright notice, this
9
- list of conditions and the following disclaimer.
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
10
14
 
11
- 2. Redistributions in binary form must reproduce the above copyright notice,
12
- this list of conditions and the following disclaimer in the documentation
13
- and/or other materials provided with the distribution.
14
-
15
- 3. Neither the name of the copyright holder nor the names of its
16
- contributors may be used to endorse or promote products derived from
17
- this software without specific prior written permission.
18
-
19
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22
- DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
23
- FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24
- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25
- SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26
- CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
27
- OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
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/protocol/README.md
5
- README.md: 082a890454f900aec51df123669f28814d39d601
6
- README.zh.md: d9b8460e51b5313f4c3a8ac66471e8cd39142430
5
+ README.md: 9024f9ca34a5467aff1b83cb9cd864c1ec06e56b
6
+ README.zh.md: ffd67552a770561320f919eec95679681fadbe0d
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  English | [中文](README.zh.md)
4
4
 
5
- The shared wire protocol for the DeepSeek Harness SDK runtime: one newline-delimited JSON-RPC 2.0 transport class plus the named request, result, and notification types both wire ends speak. The package root enumerates the protocol consumer interface; source modules are not exported as deep imports. The server side is the [`dsh-jsonrpc`](../server/README.md) plugin; clients are [`dsh-sdk-client`](../client/README.md) (TypeScript) and the [Python SDK](../../../python/README.md) (which mirrors these shapes but does not import them). A pure library — no plugin, no Config, no registration.
5
+ The shared wire protocol for the DeepSeek Harness SDK runtime: one newline-delimited JSON-RPC 2.0 transport class plus the named request, result, and notification types both wire ends speak. The package root enumerates the protocol consumer interface; source modules are not exported as deep imports. The server side is the [`dsh-sdk-jsonrpc-server`](../server/README.md) plugin; clients are [`dsh-sdk-client`](../client/README.md) (TypeScript) and the [Python SDK](../../../python/README.md) (which mirrors these shapes but does not import them). A pure library — no plugin, no Config, no registration.
6
6
 
7
7
  ## Transport
8
8
 
@@ -10,7 +10,7 @@ The shared wire protocol for the DeepSeek Harness SDK runtime: one newline-delim
10
10
 
11
11
  ## Wire types
12
12
 
13
- `types.ts` names every payload of the protocol served by `HarnessSdkServer`:
13
+ `types.ts` names every payload of the protocol served by `HarnessSdkJsonRpcServer`:
14
14
 
15
15
  | Direction | Method | Types |
16
16
  |---|---|---|
@@ -26,7 +26,7 @@ The shared wire protocol for the DeepSeek Harness SDK runtime: one newline-delim
26
26
 
27
27
  ## Model Experience
28
28
 
29
- None, as this package defines the client-facing wire protocol; the model-visible surfaces belong to the runtime plugins composed behind the serving [`dsh-jsonrpc`](../server/README.md) entry.
29
+ None, as this package defines the client-facing wire protocol; the model-visible surfaces belong to the runtime plugins composed behind the serving [`dsh-sdk-jsonrpc-server`](../server/README.md) entry.
30
30
 
31
31
  #### KV Cache effect
32
32
 
@@ -35,5 +35,5 @@ None; this package neither assembles nor sends a provider request.
35
35
  ## Known Limitations and Deferred Work
36
36
 
37
37
  - **No protocol-version negotiation** — the handshake carries only `serverInfo.version` (`0.0.1`, unvalidated by clients); pre-release stance, no compatibility promise.
38
- - **No cancel or session-close methods** — a client abandons a turn by closing the runtime process; see the [`dsh-jsonrpc` README](../server/README.md).
38
+ - **No cancel or session-close methods** — a client abandons a turn by closing the runtime process; see the [`dsh-sdk-jsonrpc-server` README](../server/README.md).
39
39
  - **Server→client requests are dead capability** — the transport supports them, but the server never sends one; the Python SDK's responder surface exists for future approval flows.
package/README.zh.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [English](README.md) | 中文
4
4
 
5
- DeepSeek Harness SDK 运行时的共享协议格式(wire format):一个按换行分帧的 JSON-RPC 2.0 传输类,加上协议两端共同使用的具名请求、结果与通知类型。包根枚举协议消费方接口;源模块不支持深层导入。服务端是 [`dsh-jsonrpc`](../server/README.md) 插件;客户端是 [`dsh-sdk-client`](../client/README.md)(TypeScript)与 [Python SDK](../../../python/README.md)(后者复现这些结构但不导入它们)。纯库——无插件、无 Config、无注册。
5
+ DeepSeek Harness SDK 运行时的共享协议格式(wire format):一个按换行分帧的 JSON-RPC 2.0 传输类,加上协议两端共同使用的具名请求、结果与通知类型。包根枚举协议消费方接口;源模块不支持深层导入。服务端是 [`dsh-sdk-jsonrpc-server`](../server/README.md) 插件;客户端是 [`dsh-sdk-client`](../client/README.md)(TypeScript)与 [Python SDK](../../../python/README.md)(后者复现这些结构但不导入它们)。纯库——无插件、无 Config、无注册。
6
6
 
7
7
  ## 传输
8
8
 
@@ -10,7 +10,7 @@ DeepSeek Harness SDK 运行时的共享协议格式(wire format):一个按
10
10
 
11
11
  ## 协议类型
12
12
 
13
- `types.ts` 为 `HarnessSdkServer` 所服务协议的每个载荷命名:
13
+ `types.ts` 为 `HarnessSdkJsonRpcServer` 所服务协议的每个载荷命名:
14
14
 
15
15
  | 方向 | 方法 | 类型 |
16
16
  |---|---|---|
@@ -26,7 +26,7 @@ DeepSeek Harness SDK 运行时的共享协议格式(wire format):一个按
26
26
 
27
27
  ## 模型体验
28
28
 
29
- 无,因为此包定义面向客户端的协议格式;模型可见接口属于组合在对外服务入口 [`dsh-jsonrpc`](../server/README.md) 后方的运行时插件。
29
+ 无,因为此包定义面向客户端的协议格式;模型可见接口属于组合在对外服务入口 [`dsh-sdk-jsonrpc-server`](../server/README.md) 后方的运行时插件。
30
30
 
31
31
  #### KV Cache 影响
32
32
 
@@ -35,5 +35,5 @@ DeepSeek Harness SDK 运行时的共享协议格式(wire format):一个按
35
35
  ## 已知限制与暂缓事项
36
36
 
37
37
  - **无协议版本协商**——握手只携带 `serverInfo.version`(`0.0.1`,客户端不校验);处于预发布阶段,无兼容承诺。
38
- - **无取消与会话关闭方法**——客户端放弃轮次的方式是关闭运行时进程;见 [`dsh-jsonrpc` README](../server/README.md)。
38
+ - **无取消与会话关闭方法**——客户端放弃轮次的方式是关闭运行时进程;见 [`dsh-sdk-jsonrpc-server` README](../server/README.md)。
39
39
  - **server→client 请求是未使用的功能**——传输层支持,但服务器从不发送;Python SDK 的应答接口为未来审批流程预留。
@@ -2,7 +2,7 @@
2
2
  * Shared wire protocol for the DeepSeek Harness SDK runtime: the
3
3
  * newline-delimited JSON-RPC stdio transport plus the named request, result,
4
4
  * and notification types both wire ends speak. The runtime server plugin
5
- * (`@deepseek-ai/dsh-jsonrpc`) serves this protocol; SDK clients
5
+ * (`@deepseek-ai/dsh-sdk-jsonrpc-server`) serves this protocol; SDK clients
6
6
  * (`@deepseek-ai/dsh-sdk-client`, the Python SDK) drive it.
7
7
  *
8
8
  * @module @deepseek-ai/dsh-sdk-protocol
@@ -2,7 +2,7 @@
2
2
  * Named wire types for the DeepSeek Harness SDK runtime protocol: the three
3
3
  * request/result pairs and the four server-to-client notification payloads
4
4
  * exchanged over the newline-delimited JSON-RPC stdio transport. The server
5
- * plugin (`@deepseek-ai/dsh-jsonrpc`) and SDK clients share these shapes;
5
+ * plugin (`@deepseek-ai/dsh-sdk-jsonrpc-server`) and SDK clients share these shapes;
6
6
  * `serverInfo.name` stays the wire-stable `deepseek-harness-sdk-runtime`.
7
7
  *
8
8
  * @module @deepseek-ai/dsh-sdk-protocol/types
@@ -16,7 +16,7 @@ export interface InitializeParams {
16
16
  cwd: string;
17
17
  /** Provider route every SDK-created agent runs on. */
18
18
  provider: string;
19
- /** Model name every SDK-created agent runs on (the server may mount a fallback adapter; see `HarnessSdkServer.initialize`). */
19
+ /** Model name every SDK-created agent runs on (the server may mount a fallback adapter; see `HarnessSdkJsonRpcServer.initialize`). */
20
20
  model: string;
21
21
  /** Optional positive output-token cap inherited by SDK-created agents and their in-process descendants. */
22
22
  maxTokens?: number;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-sdk-protocol",
3
3
  "description": "Shared wire protocol for the DeepSeek Harness SDK runtime: the newline-delimited JSON-RPC stdio transport and the named request, result, and notification types spoken between the runtime server and SDK clients",
4
- "version": "0.0.1-rc.2",
4
+ "version": "0.1.0-rc.2",
5
5
  "publishConfig": {
6
6
  "access": "restricted"
7
7
  },
@@ -29,19 +29,19 @@
29
29
  "lib/invariant.js",
30
30
  "lib/types/**/*.d.ts"
31
31
  ],
32
- "license": "BSD-3-Clause",
32
+ "license": "MIT",
33
33
  "peerDependencies": {
34
- "@deepseek-ai/dsh-llm": "^0.0.1-rc.2",
35
- "@deepseek-ai/dsh-session": "^0.0.1-rc.2",
36
- "@deepseek-ai/dsh-subagent": "^0.0.1-rc.2",
37
- "@deepseek-ai/cordis": "^4.0.1-rc.1",
38
- "@deepseek-ai/dsh-invariants": "^0.0.1-rc.2"
34
+ "@deepseek-ai/dsh-llm": "^0.1.0-rc.2",
35
+ "@deepseek-ai/dsh-session": "^0.1.0-rc.2",
36
+ "@deepseek-ai/dsh-subagent": "^0.1.0-rc.2",
37
+ "@deepseek-ai/cordis": "^4.0.1",
38
+ "@deepseek-ai/dsh-invariants": "^0.1.0-rc.2"
39
39
  },
40
40
  "devDependencies": {
41
- "@deepseek-ai/dsh-invariants": "^0.0.1-rc.2",
42
- "@deepseek-ai/dsh-llm": "^0.0.1-rc.2",
43
- "@deepseek-ai/dsh-session": "^0.0.1-rc.2",
44
- "@deepseek-ai/dsh-subagent": "^0.0.1-rc.2",
45
- "@deepseek-ai/cordis": "^4.0.1-rc.1"
41
+ "@deepseek-ai/dsh-invariants": "^0.1.0-rc.2",
42
+ "@deepseek-ai/dsh-llm": "^0.1.0-rc.2",
43
+ "@deepseek-ai/dsh-session": "^0.1.0-rc.2",
44
+ "@deepseek-ai/dsh-subagent": "^0.1.0-rc.2",
45
+ "@deepseek-ai/cordis": "^4.0.1"
46
46
  }
47
47
  }