@deepseek-ai/dsh-session 0.2.1-alpha.2 → 0.2.1-alpha.3
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/lib/index.js +3 -0
- package/lib/types/index.js +1 -0
- package/lib/types/known-event-types.js +2 -0
- package/lib/types/types.d.ts +5 -0
- package/locale/en.json +5 -0
- package/locale/zh.json +6 -0
- package/package.json +13 -11
package/lib/index.js
CHANGED
|
@@ -99,6 +99,8 @@ const KNOWN_SESSION_EVENT_TYPES = new Set([
|
|
|
99
99
|
"hook/invoked",
|
|
100
100
|
"hook/result",
|
|
101
101
|
"image/offload",
|
|
102
|
+
"job/registered",
|
|
103
|
+
"job/settled",
|
|
102
104
|
"llm/retry",
|
|
103
105
|
"llm/retry-started",
|
|
104
106
|
"model/selection",
|
|
@@ -1739,6 +1741,7 @@ var SessionStore = class extends Service {
|
|
|
1739
1741
|
typeCtx.typert.lookups.register("session", {
|
|
1740
1742
|
parameter: "session",
|
|
1741
1743
|
wire: "sessionId",
|
|
1744
|
+
resource: "session",
|
|
1742
1745
|
hostTypeSymbol: "@deepseek-ai/dsh-session#Session",
|
|
1743
1746
|
wireTypeSymbol: "@deepseek-ai/dsh-session/types#SessionId",
|
|
1744
1747
|
resolve: (sessionId) => this.get(sessionId)
|
package/lib/types/index.js
CHANGED
|
@@ -888,6 +888,7 @@ export class SessionStore extends Service {
|
|
|
888
888
|
typeCtx.typert.lookups.register('session', {
|
|
889
889
|
parameter: 'session',
|
|
890
890
|
wire: 'sessionId',
|
|
891
|
+
resource: 'session',
|
|
891
892
|
hostTypeSymbol: '@deepseek-ai/dsh-session#Session',
|
|
892
893
|
wireTypeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
893
894
|
resolve: sessionId => this.get(sessionId),
|
package/lib/types/types.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type Branded, type BrandedNumber } from '@deepseek-ai/dsh-brand';
|
|
2
2
|
import type { AssistantMessage, DeveloperMessage, AssistantStreamRecord, ToolCallId, LlmCallConfig, LlmCallConfigAdapterDefaults, LlmFailure, SystemMessage, SystemPromptUpdate, TokenUsage, ToolResultMessage, ToolSchema, UserMessage } from '@deepseek-ai/dsh-llm';
|
|
3
|
+
import type { TypertResource } from '@deepseek-ai/dsh-typert-protocol';
|
|
3
4
|
import type { JsonValue } from '@deepseek-ai/dsh-util-values';
|
|
4
5
|
/** Identifies one session in the store (and its persistence artifacts). */
|
|
5
6
|
export type SessionId = Branded<'SessionId'>;
|
|
@@ -542,6 +543,10 @@ export interface PluginRecord {
|
|
|
542
543
|
readonly data: unknown;
|
|
543
544
|
}
|
|
544
545
|
declare module '@deepseek-ai/dsh-typert-protocol' {
|
|
546
|
+
interface TypertResourceMap {
|
|
547
|
+
/** One Session; the Session Controller registers its default `sessionId` wire field. */
|
|
548
|
+
session: TypertResource<SessionId>;
|
|
549
|
+
}
|
|
545
550
|
interface RemoteErrorDetailsMap {
|
|
546
551
|
/** The named Session does not exist; produced by every layer that resolves a SessionId. */
|
|
547
552
|
'session/not-found': {
|
package/locale/zh.json
ADDED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepseek-ai/dsh-session",
|
|
3
3
|
"description": "Event-sourced session store for the DeepSeek Harness",
|
|
4
|
-
"version": "0.2.1-alpha.
|
|
4
|
+
"version": "0.2.1-alpha.3",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -31,27 +31,29 @@
|
|
|
31
31
|
"./surface": {
|
|
32
32
|
"types": "./lib/types/surface.d.ts",
|
|
33
33
|
"default": "./lib/types/surface.js"
|
|
34
|
-
}
|
|
34
|
+
},
|
|
35
|
+
"./locale/*.json": "./locale/*.json"
|
|
35
36
|
},
|
|
36
37
|
"files": [
|
|
38
|
+
"locale/*.json",
|
|
37
39
|
"lib/index.js",
|
|
38
40
|
"lib/types/**/*.js",
|
|
39
41
|
"lib/types/**/*.d.ts"
|
|
40
42
|
],
|
|
41
43
|
"license": "MIT",
|
|
42
44
|
"peerDependencies": {
|
|
43
|
-
"@deepseek-ai/dsh-scope": "0.2.1-alpha.
|
|
44
|
-
"@deepseek-ai/cordis": "~4.0.5-alpha.
|
|
45
|
+
"@deepseek-ai/dsh-scope": "0.2.1-alpha.3",
|
|
46
|
+
"@deepseek-ai/cordis": "~4.0.5-alpha.2"
|
|
45
47
|
},
|
|
46
48
|
"devDependencies": {
|
|
47
|
-
"@deepseek-ai/dsh-scope": "0.2.1-alpha.
|
|
48
|
-
"@deepseek-ai/dsh-typert-protocol": "0.2.1-alpha.
|
|
49
|
-
"@deepseek-ai/dsh-typert-registry": "0.2.1-alpha.
|
|
50
|
-
"@deepseek-ai/cordis": "~4.0.5-alpha.
|
|
49
|
+
"@deepseek-ai/dsh-scope": "0.2.1-alpha.3",
|
|
50
|
+
"@deepseek-ai/dsh-typert-protocol": "0.2.1-alpha.3",
|
|
51
|
+
"@deepseek-ai/dsh-typert-registry": "0.2.1-alpha.3",
|
|
52
|
+
"@deepseek-ai/cordis": "~4.0.5-alpha.2"
|
|
51
53
|
},
|
|
52
54
|
"dependencies": {
|
|
53
|
-
"@deepseek-ai/dsh-llm": "0.2.1-alpha.
|
|
54
|
-
"@deepseek-ai/dsh-brand": "0.2.1-alpha.
|
|
55
|
-
"@deepseek-ai/dsh-util-values": "0.2.1-alpha.
|
|
55
|
+
"@deepseek-ai/dsh-llm": "0.2.1-alpha.3",
|
|
56
|
+
"@deepseek-ai/dsh-brand": "0.2.1-alpha.3",
|
|
57
|
+
"@deepseek-ai/dsh-util-values": "0.2.1-alpha.3"
|
|
56
58
|
}
|
|
57
59
|
}
|