@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 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)
@@ -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),
@@ -41,6 +41,8 @@ export const KNOWN_SESSION_EVENT_TYPES = new Set([
41
41
  'hook/invoked',
42
42
  'hook/result',
43
43
  'image/offload',
44
+ 'job/registered',
45
+ 'job/settled',
44
46
  'llm/retry',
45
47
  'llm/retry-started',
46
48
  'model/selection',
@@ -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/en.json ADDED
@@ -0,0 +1,5 @@
1
+ {
2
+ "meta": {
3
+ "title": "session"
4
+ }
5
+ }
package/locale/zh.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "会话记录",
4
+ "description": "记录会话中的消息、工具调用和运行事件。"
5
+ }
6
+ }
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.2",
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.2",
44
- "@deepseek-ai/cordis": "~4.0.5-alpha.1"
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.2",
48
- "@deepseek-ai/dsh-typert-protocol": "0.2.1-alpha.2",
49
- "@deepseek-ai/dsh-typert-registry": "0.2.1-alpha.2",
50
- "@deepseek-ai/cordis": "~4.0.5-alpha.1"
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.2",
54
- "@deepseek-ai/dsh-brand": "0.2.1-alpha.2",
55
- "@deepseek-ai/dsh-util-values": "0.2.1-alpha.2"
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
  }