@deepseek-ai/dsh-sdk-protocol 0.1.2-alpha.3 → 0.1.2-alpha.5

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/protocol/README.md
5
- README.md: 0bfdcc09c9d7835e7e1276d654c3563b705c16cd
6
- README.zh.md: 84759bf945400d7541226e0ade8d600f6f4c62ab
5
+ README.md: ea99f83812e127992c4e32b959e9c3f011ad4e18
6
+ README.zh.md: ecf6424ec222673008c559a6f43fac3b578573ff
package/README.md CHANGED
@@ -72,7 +72,7 @@ The package is built on one separation: a single newline-delimited transport cla
72
72
  | [`src/transport.ts`](src/transport.ts) | `JsonRpcLineTransport`: line framing, request/response/notification dispatch, error mapping, pending-request bookkeeping |
73
73
  | [`src/types.ts`](src/types.ts) | Named request/result and notification payload types, indexed by method |
74
74
  | [`src/index.ts`](src/index.ts) | Consumer interface: the transport and the named wire types |
75
- | [`src/invariant.ts`](src/invariant.ts) | Invariant companion (no runtime invariant a pure wire library owns no event stream) |
75
+ | | No runtime invariant companion is published; a pure wire library (transport class + type declarations) with no event stream or mutable data relation of its own; both wire ends own their protocol behavior. |
76
76
 
77
77
  ### Frame dispatch
78
78
 
package/README.zh.md CHANGED
@@ -72,7 +72,7 @@ kind: "package-library"
72
72
  | [`src/transport.ts`](src/transport.ts) | `JsonRpcLineTransport`:行分帧、请求/响应/通知分发、错误映射、挂起请求记账 |
73
73
  | [`src/types.ts`](src/types.ts) | 具名请求/结果与通知载荷类型,按方法索引 |
74
74
  | [`src/index.ts`](src/index.ts) | 消费方接口:传输与具名协议类型 |
75
- | [`src/invariant.ts`](src/invariant.ts) | 不变式配套插件(无运行时不变式——纯协议库不持有事件流) |
75
+ | | 不发布运行时不变式伴生入口;纯协议库不持有事件流。 |
76
76
 
77
77
  ### 帧分发
78
78
 
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.1.2-alpha.3",
4
+ "version": "0.1.2-alpha.5",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -18,30 +18,23 @@
18
18
  "types": "./lib/types/index.d.ts",
19
19
  "default": "./lib/index.js"
20
20
  },
21
- "./invariant": {
22
- "types": "./lib/types/invariant.d.ts",
23
- "default": "./lib/invariant.js"
24
- },
25
21
  "./package.json": "./package.json"
26
22
  },
27
23
  "files": [
28
24
  "lib/index.js",
29
- "lib/invariant.js",
30
25
  "lib/types/**/*.d.ts"
31
26
  ],
32
27
  "license": "MIT",
33
28
  "peerDependencies": {
34
- "@deepseek-ai/dsh-llm": "^0.1.2-alpha.3",
35
- "@deepseek-ai/dsh-session": "^0.1.2-alpha.3",
36
- "@deepseek-ai/dsh-subagent": "^0.1.2-alpha.3",
37
- "@deepseek-ai/cordis": "^4.0.2",
38
- "@deepseek-ai/dsh-invariants": "^0.1.2-alpha.3"
29
+ "@deepseek-ai/dsh-llm": "^0.1.2-alpha.5",
30
+ "@deepseek-ai/dsh-session": "^0.1.2-alpha.5",
31
+ "@deepseek-ai/dsh-subagent": "^0.1.2-alpha.5",
32
+ "@deepseek-ai/cordis": "^4.0.2"
39
33
  },
40
34
  "devDependencies": {
41
- "@deepseek-ai/dsh-invariants": "^0.1.2-alpha.3",
42
- "@deepseek-ai/dsh-session": "^0.1.2-alpha.3",
43
- "@deepseek-ai/dsh-subagent": "^0.1.2-alpha.3",
44
- "@deepseek-ai/dsh-llm": "^0.1.2-alpha.3",
35
+ "@deepseek-ai/dsh-llm": "^0.1.2-alpha.5",
36
+ "@deepseek-ai/dsh-session": "^0.1.2-alpha.5",
37
+ "@deepseek-ai/dsh-subagent": "^0.1.2-alpha.5",
45
38
  "@deepseek-ai/cordis": "^4.0.2"
46
39
  }
47
40
  }
package/lib/invariant.js DELETED
@@ -1,24 +0,0 @@
1
- //#region lib/types/invariant.js
2
- /**
3
- * Package-owned invariant companion for `@deepseek-ai/dsh-sdk-protocol`.
4
- * @module @deepseek-ai/dsh-sdk-protocol/invariant
5
- */
6
- const PACKAGE_NAME = "@deepseek-ai/dsh-sdk-protocol";
7
- /** Cordis companion plugin name. */
8
- const name = "sdk-protocol-invariant";
9
- /** Service required before the companion can reserve package ownership. */
10
- const inject = ["invariants"];
11
- /**
12
- * No runtime invariant: a pure wire library (transport class + type
13
- * declarations) with no event stream or mutable data relation of its own;
14
- * both wire ends own their protocol behavior.
15
- */
16
- const install = () => {};
17
- /**
18
- * Register this package's invariant companion.
19
- * @param ctx - Cordis context carrying the invariant service.
20
- * @returns the installed registration's disposer after setup succeeds.
21
- */
22
- const apply = (ctx) => Promise.resolve(ctx.invariants.register(PACKAGE_NAME, install));
23
- //#endregion
24
- export { apply, inject, name };
@@ -1,16 +0,0 @@
1
- /**
2
- * Package-owned invariant companion for `@deepseek-ai/dsh-sdk-protocol`.
3
- * @module @deepseek-ai/dsh-sdk-protocol/invariant
4
- */
5
- import type { Context } from '@deepseek-ai/cordis';
6
- /** Cordis companion plugin name. */
7
- export declare const name = "sdk-protocol-invariant";
8
- /** Service required before the companion can reserve package ownership. */
9
- export declare const inject: string[];
10
- /**
11
- * Register this package's invariant companion.
12
- * @param ctx - Cordis context carrying the invariant service.
13
- * @returns the installed registration's disposer after setup succeeds.
14
- */
15
- export declare const apply: (ctx: Context) => Promise<() => void>;
16
- //# sourceMappingURL=invariant.d.ts.map