@deepseek-ai/dsh-sdk-client 0.1.2-alpha.3 → 0.1.2-alpha.4
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 +2 -2
- package/README.md +1 -1
- package/README.zh.md +1 -1
- package/package.json +8 -15
- package/lib/invariant.js +0 -24
- package/lib/types/invariant.d.ts +0 -16
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:
|
|
6
|
-
README.zh.md:
|
|
5
|
+
README.md: 49898081640c700686b5a30b963180fa6b52717a
|
|
6
|
+
README.zh.md: de799585c2bec0c62eae31e7de52e6f921c8c96b
|
package/README.md
CHANGED
|
@@ -76,7 +76,7 @@ The client is two layers over one wire: `DeepSeekHarness` (owned runs) over `Har
|
|
|
76
76
|
| [`src/dispose.ts`](src/dispose.ts) | Private teardown ladder: stdin EOF → SIGTERM → SIGKILL to actual exit |
|
|
77
77
|
| [`src/types.ts`](src/types.ts) | Launch and timeout options, notification shapes, `RunResult` |
|
|
78
78
|
| [`src/index.ts`](src/index.ts) | Consumer interface: the two client layers and caller-facing types |
|
|
79
|
-
|
|
|
79
|
+
| — | No runtime invariant companion is published; this client library runs outside any harness context (its peer is a separate runtime process); the runtime's own packages own the event-stream relations. |
|
|
80
80
|
|
|
81
81
|
### Owned activity flow
|
|
82
82
|
|
package/README.zh.md
CHANGED
|
@@ -76,7 +76,7 @@ console.log(result.finalResponse)
|
|
|
76
76
|
| [`src/dispose.ts`](src/dispose.ts) | 私有关闭阶梯:stdin EOF → SIGTERM → SIGKILL 直到真正退出 |
|
|
77
77
|
| [`src/types.ts`](src/types.ts) | 启动与超时选项、通知结构、`RunResult` |
|
|
78
78
|
| [`src/index.ts`](src/index.ts) | 消费方接口:两层客户端与面向调用方的类型 |
|
|
79
|
-
|
|
|
79
|
+
| — | 不发布运行时不变式伴生入口;对端是独立运行时进程。 |
|
|
80
80
|
|
|
81
81
|
### 自有活动流程
|
|
82
82
|
|
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.2-alpha.
|
|
4
|
+
"version": "0.1.2-alpha.4",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -18,33 +18,26 @@
|
|
|
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
|
"dependencies": {
|
|
34
|
-
"@deepseek-ai/dsh": "0.1.2-alpha.
|
|
29
|
+
"@deepseek-ai/dsh": "0.1.2-alpha.4"
|
|
35
30
|
},
|
|
36
31
|
"peerDependencies": {
|
|
37
|
-
"@deepseek-ai/dsh-llm": "^0.1.2-alpha.
|
|
38
|
-
"@deepseek-ai/dsh-
|
|
39
|
-
"@deepseek-ai/dsh-session": "^0.1.2-alpha.
|
|
40
|
-
"@deepseek-ai/dsh-sdk-protocol": "^0.1.2-alpha.3",
|
|
32
|
+
"@deepseek-ai/dsh-llm": "^0.1.2-alpha.4",
|
|
33
|
+
"@deepseek-ai/dsh-sdk-protocol": "^0.1.2-alpha.4",
|
|
34
|
+
"@deepseek-ai/dsh-session": "^0.1.2-alpha.4",
|
|
41
35
|
"@deepseek-ai/cordis": "^4.0.2"
|
|
42
36
|
},
|
|
43
37
|
"devDependencies": {
|
|
44
|
-
"@deepseek-ai/dsh-
|
|
45
|
-
"@deepseek-ai/dsh-
|
|
46
|
-
"@deepseek-ai/dsh-
|
|
47
|
-
"@deepseek-ai/dsh-session": "^0.1.2-alpha.3",
|
|
38
|
+
"@deepseek-ai/dsh-llm": "^0.1.2-alpha.4",
|
|
39
|
+
"@deepseek-ai/dsh-sdk-protocol": "^0.1.2-alpha.4",
|
|
40
|
+
"@deepseek-ai/dsh-session": "^0.1.2-alpha.4",
|
|
48
41
|
"@deepseek-ai/cordis": "^4.0.2"
|
|
49
42
|
}
|
|
50
43
|
}
|
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-client`.
|
|
4
|
-
* @module @deepseek-ai/dsh-sdk-client/invariant
|
|
5
|
-
*/
|
|
6
|
-
const PACKAGE_NAME = "@deepseek-ai/dsh-sdk-client";
|
|
7
|
-
/** Cordis companion plugin name. */
|
|
8
|
-
const name = "sdk-client-invariant";
|
|
9
|
-
/** Service required before the companion can reserve package ownership. */
|
|
10
|
-
const inject = ["invariants"];
|
|
11
|
-
/**
|
|
12
|
-
* No runtime invariant: this client library runs outside any harness context
|
|
13
|
-
* (its peer is a separate runtime process); the runtime's own packages own
|
|
14
|
-
* the event-stream relations.
|
|
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 };
|
package/lib/types/invariant.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Package-owned invariant companion for `@deepseek-ai/dsh-sdk-client`.
|
|
3
|
-
* @module @deepseek-ai/dsh-sdk-client/invariant
|
|
4
|
-
*/
|
|
5
|
-
import type { Context } from '@deepseek-ai/cordis';
|
|
6
|
-
/** Cordis companion plugin name. */
|
|
7
|
-
export declare const name = "sdk-client-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
|