@deepseek-ai/dsh-session-reference 0.1.5-alpha.1 → 0.1.5-alpha.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.
Files changed (2) hide show
  1. package/lib/typert.host.js +14 -2
  2. package/package.json +33 -33
@@ -198,6 +198,14 @@ export const TYPERT = {
198
198
  "name": "EpochHeader",
199
199
  "declaration": "export interface EpochHeader {\n config: LlmCallConfig;\n adapterDefaults?: LlmCallConfigAdapterDefaults;\n tools?: ToolSchema[];\n}"
200
200
  },
201
+ {
202
+ "name": "FeedbackCategory",
203
+ "declaration": "export type FeedbackCategory = 'task-result' | 'instruction-following' | 'product-interaction' | 'service-stability' | 'resource-cost' | 'security-privacy-permission' | 'other';"
204
+ },
205
+ {
206
+ "name": "FeedbackRecord",
207
+ "declaration": "export interface FeedbackRecord {\n readonly text?: string;\n readonly category?: FeedbackCategory;\n}"
208
+ },
201
209
  {
202
210
  "name": "FileAttachmentRef",
203
211
  "declaration": "export interface FileAttachmentRef {\n attachmentId: AttachmentId;\n name: string;\n bytes: number;\n}"
@@ -300,7 +308,7 @@ export const TYPERT = {
300
308
  },
301
309
  {
302
310
  "name": "MessageFeedbackItem",
303
- "declaration": "export interface MessageFeedbackItem {\n readonly messageId: MessageId;\n readonly rating: MessageFeedbackRating;\n readonly note?: string;\n readonly version: MessageFeedbackVersion;\n readonly createdAt: number;\n readonly updatedAt: number;\n}"
311
+ "declaration": "export interface MessageFeedbackItem {\n readonly messageId: MessageId;\n readonly rating: MessageFeedbackRating;\n readonly note?: string;\n readonly category?: FeedbackCategory;\n readonly version: MessageFeedbackVersion;\n readonly createdAt: number;\n readonly updatedAt: number;\n}"
304
312
  },
305
313
  {
306
314
  "name": "MessageFeedbackPut",
@@ -392,7 +400,7 @@ export const TYPERT = {
392
400
  },
393
401
  {
394
402
  "name": "SessionEventMap",
395
- "declaration": "export interface SessionEventMap {\n 'turn/start': { turn: number; };\n 'turn/end': { turn: number; reason: TurnEndReason; };\n 'step/start': { turn: number; step: number; };\n 'step/end': { turn: number; step: number; };\n 'user/message': UserMessage;\n 'system/message': { turn: number; step: number; message: SystemMessage; };\n 'assistant/message': { turn: number; step: number; message: AssistantMessage; stream: AssistantStreamRecord[]; usage?: TokenUsage; interrupted?: true; };\n 'assistant/attempt': { turn: number; step: number; stream: AssistantStreamRecord[]; };\n 'tool/call': { turn: number; step: number; callId: ToolCallId; name: string; arguments: string; };\n 'tool/result': { turn: number; step: number; message: ToolResultMessage; error?: { name: string; code: string; }; meta?: JsonValue; };\n 'request/header': { header: EpochHeader; reason: RequestHeaderReason; startsSeries?: true; };\n 'request/context': RequestContext;\n 'session/end-seed': { inherited?: true; };\n 'agent/inbox/spliced': { target: InboxTarget; start: number; removedCount?: number; inserted: UserMessage[]; outcome?: 'canceled'; };\n 'approval/asked': { id: ApprovalRequestId; toolName: string; callId?: ToolCallId; reason?: string; };\n 'approval/decided': { id: ApprovalRequestId; outcome: ApprovalOutcome; };\n 'approval/policy': { policy: ApprovalPolicy; source?: 'delegation'; };\n 'tool/ptc-dispatch-start': PtcDispatchStartEventData;\n 'tool/ptc-dispatch': PtcDispatchEventData;\n 'agent-preset/selected': { agentPreset: string; };\n 'command/run': { commandId: CommandId; name: string; args?: string; source: CommandSource; };\n 'command/done': { commandId: CommandId; kind: 'success' | 'error'; text?: string; sourceEventSeq?: import('@deepseek-ai/dsh-session/types').SessionSeq; };\n 'session/title': SessionTitleEventData;\n 'todo/write': { todos: TodoItem[]; };\n 'model/selection': ModelSelection;\n 'subagent/descriptor': SubagentDescriptorData;\n 'sandbox/mode': { mode: SandboxMode; source?: 'delegation'; };\n 'team/member': { version: 2; teamId: TeamId; member: TeamMemberSnapshot; };\n 'team/task': { version: 2; teamId: TeamId; task: TeamTaskSnapshot; };\n 'team/message/queued': { version: 2; teamId: TeamId; message: TeamMessageSnapshot; };\n 'team/message/delivered': { version: 2; teamId: TeamId; messageId: TeamMessageId; targetId: SessionId; };\n 'goal/change': GoalChangeMeta;\n 'feedback/message-put': MessageFeedbackPut;\n 'feedback/message-delete': MessageFeedbackDelete;\n 'compaction/start': { compactionId: CompactionId; sourceCommandId?: CommandId; turn: number | null; };\n 'compaction/summary': { compactionId: CompactionId; sourceCommandId?: CommandId; summary: ContentBlock[]; shadowedRange: { start: SessionSeq; end: SessionSeq; }; shadowedSeqs: SessionSeq[]; shadowedTokenCount: number; provider: string; model: string; maxTokens?: number; usage?: TokenUsage; } & ({ rawOutput: ContentBlock[]; llmStreamCall: true; } | { rawOutput?: ContentBlock[]; llmStreamCall?: never; });\n 'compaction/end': { compactionId: CompactionId; sourceCommandId?: CommandId; turn: number | null; error?: string; };\n 'compaction/prune': { shadowedRange: { start: SessionSeq; end: SessionSeq; }; shadowedSeqs: SessionSeq[]; shadowedTokenCount: number; };\n}"
403
+ "declaration": "export interface SessionEventMap {\n 'turn/start': { turn: number; };\n 'turn/end': { turn: number; reason: TurnEndReason; };\n 'step/start': { turn: number; step: number; };\n 'step/end': { turn: number; step: number; };\n 'user/message': UserMessage;\n 'system/message': { turn: number; step: number; message: SystemMessage; };\n 'assistant/message': { turn: number; step: number; message: AssistantMessage; stream: AssistantStreamRecord[]; usage?: TokenUsage; interrupted?: true; };\n 'assistant/attempt': { turn: number; step: number; stream: AssistantStreamRecord[]; };\n 'tool/call': { turn: number; step: number; callId: ToolCallId; name: string; arguments: string; };\n 'tool/result': { turn: number; step: number; message: ToolResultMessage; error?: { name: string; code: string; }; meta?: JsonValue; };\n 'request/header': { header: EpochHeader; reason: RequestHeaderReason; startsSeries?: true; };\n 'request/context': RequestContext;\n 'session/end-seed': { inherited?: true; };\n 'agent/inbox/spliced': { target: InboxTarget; start: number; removedCount?: number; inserted: UserMessage[]; outcome?: 'canceled'; };\n 'approval/asked': { id: ApprovalRequestId; toolName: string; callId?: ToolCallId; reason?: string; };\n 'approval/decided': { id: ApprovalRequestId; outcome: ApprovalOutcome; };\n 'approval/policy': { policy: ApprovalPolicy; source?: 'delegation'; };\n 'tool/ptc-dispatch-start': PtcDispatchStartEventData;\n 'tool/ptc-dispatch': PtcDispatchEventData;\n 'agent-preset/selected': { agentPreset: string; };\n 'command/run': { commandId: CommandId; name: string; args?: string; source: CommandSource; };\n 'command/done': { commandId: CommandId; kind: 'success' | 'error'; text?: string; sourceEventSeq?: import('@deepseek-ai/dsh-session/types').SessionSeq; };\n 'session/title': SessionTitleEventData;\n 'todo/write': { todos: TodoItem[]; };\n 'model/selection': ModelSelection;\n 'subagent/descriptor': SubagentDescriptorData;\n 'sandbox/mode': { mode: SandboxMode; source?: 'delegation'; };\n 'subagent/catalog': SubagentCatalogEvent;\n 'feedback/record': FeedbackRecord;\n 'team/member': { version: 2; teamId: TeamId; member: TeamMemberSnapshot; };\n 'team/task': { version: 2; teamId: TeamId; task: TeamTaskSnapshot; };\n 'team/message/queued': { version: 2; teamId: TeamId; message: TeamMessageSnapshot; };\n 'team/message/delivered': { version: 2; teamId: TeamId; messageId: TeamMessageId; targetId: SessionId; };\n 'goal/change': GoalChangeMeta;\n 'feedback/message-put': MessageFeedbackPut;\n 'feedback/message-delete': MessageFeedbackDelete;\n 'compaction/start': { compactionId: CompactionId; sourceCommandId?: CommandId; turn: number | null; };\n 'compaction/summary': { compactionId: CompactionId; sourceCommandId?: CommandId; summary: ContentBlock[]; shadowedRange: { start: SessionSeq; end: SessionSeq; }; shadowedSeqs: SessionSeq[]; shadowedTokenCount: number; provider: string; model: string; maxTokens?: number; usage?: TokenUsage; } & ({ rawOutput: ContentBlock[]; llmStreamCall: true; } | { rawOutput?: ContentBlock[]; llmStreamCall?: never; });\n 'compaction/end': { compactionId: CompactionId; sourceCommandId?: CommandId; turn: number | null; error?: string; };\n 'compaction/prune': { shadowedRange: { start: SessionSeq; end: SessionSeq; }; shadowedSeqs: SessionSeq[]; shadowedTokenCount: number; };\n}"
396
404
  },
397
405
  {
398
406
  "name": "SessionEventType",
@@ -462,6 +470,10 @@ export const TYPERT = {
462
470
  "name": "StreamChunk",
463
471
  "declaration": "export type StreamChunk = { type: 'block-start'; index: number; blockType: ContentBlockType; } | { type: 'text-delta'; index: number; text: string; } | { type: 'reasoning-delta'; index: number; text: string; } | { type: 'tool-call-delta'; index: number; id: ToolCallId; name?: string; argumentsDelta: string; } | { type: 'block-end'; index: number; block: ContentBlock; } | { type: 'usage'; usage: TokenUsage; } | { type: 'finish'; reason: FinishReason; replayState?: ReplayEnvelope; };"
464
472
  },
473
+ {
474
+ "name": "SubagentCatalogEvent",
475
+ "declaration": "export type SubagentCatalogEvent = { readonly version: 0; readonly childId: SessionId; readonly childCreatedAt: number; } & ({ readonly mode: 'one-shot'; readonly label?: string; } | { readonly mode: 'continuable'; readonly label: string; });"
476
+ },
465
477
  {
466
478
  "name": "SubagentDescriptorBase",
467
479
  "declaration": "export interface SubagentDescriptorBase {\n readonly version: number;\n readonly mode: 'one-shot' | 'continuable';\n readonly provider: string;\n}"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-session-reference",
3
3
  "description": "Cross-session snapshot references and durable untrusted model context (ctx.sessionReferenceResolver)",
4
- "version": "0.1.5-alpha.1",
4
+ "version": "0.1.5-alpha.2",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -45,24 +45,24 @@
45
45
  "license": "MIT",
46
46
  "dependencies": {
47
47
  "zod": "^4.4.3",
48
- "@deepseek-ai/dsh-brand": "^0.1.5-alpha.1",
49
- "@deepseek-ai/dsh-util-values": "^0.1.5-alpha.1",
48
+ "@deepseek-ai/dsh-brand": "^0.1.5-alpha.2",
49
+ "@deepseek-ai/dsh-util-values": "^0.1.5-alpha.2",
50
50
  "@deepseek-ai/schemastery": "^3.18.2"
51
51
  },
52
52
  "peerDependencies": {
53
- "@deepseek-ai/dsh-agent": "^0.1.5-alpha.1",
53
+ "@deepseek-ai/dsh-agent": "^0.1.5-alpha.2",
54
+ "@deepseek-ai/dsh-compaction": "^0.1.5-alpha.2",
55
+ "@deepseek-ai/dsh-llm": "^0.1.5-alpha.2",
56
+ "@deepseek-ai/dsh-output-retention": "^0.1.5-alpha.2",
54
57
  "@deepseek-ai/cordis": "^4.0.2",
55
- "@deepseek-ai/dsh-compaction": "^0.1.5-alpha.1",
56
- "@deepseek-ai/dsh-llm": "^0.1.5-alpha.1",
57
- "@deepseek-ai/dsh-output-retention": "^0.1.5-alpha.1",
58
- "@deepseek-ai/dsh-session-projection": "^0.1.5-alpha.1",
59
- "@deepseek-ai/dsh-session-projection-cache": "^0.1.5-alpha.1",
60
- "@deepseek-ai/dsh-session-query": "^0.1.5-alpha.1",
61
- "@deepseek-ai/dsh-session-title": "^0.1.5-alpha.1",
62
- "@deepseek-ai/dsh-spill": "^0.1.5-alpha.1",
63
- "@deepseek-ai/dsh-typert-protocol": "^0.1.5-alpha.1",
64
- "@deepseek-ai/dsh-session": "^0.1.5-alpha.1",
65
- "@deepseek-ai/dsh-system-prompt": "^0.1.5-alpha.1"
58
+ "@deepseek-ai/dsh-session": "^0.1.5-alpha.2",
59
+ "@deepseek-ai/dsh-session-projection": "^0.1.5-alpha.2",
60
+ "@deepseek-ai/dsh-session-projection-cache": "^0.1.5-alpha.2",
61
+ "@deepseek-ai/dsh-session-query": "^0.1.5-alpha.2",
62
+ "@deepseek-ai/dsh-session-title": "^0.1.5-alpha.2",
63
+ "@deepseek-ai/dsh-spill": "^0.1.5-alpha.2",
64
+ "@deepseek-ai/dsh-system-prompt": "^0.1.5-alpha.2",
65
+ "@deepseek-ai/dsh-typert-protocol": "^0.1.5-alpha.2"
66
66
  },
67
67
  "peerDependenciesMeta": {
68
68
  "@deepseek-ai/dsh-spill": {
@@ -73,25 +73,25 @@
73
73
  }
74
74
  },
75
75
  "devDependencies": {
76
- "@deepseek-ai/cordis": "^4.0.2",
77
76
  "@deepseek-ai/cordis-plugin-include": "^1.0.7",
77
+ "@deepseek-ai/cordis": "^4.0.2",
78
78
  "@deepseek-ai/cordis-plugin-loader": "^1.0.3",
79
- "@deepseek-ai/dsh-agent": "^0.1.5-alpha.1",
80
- "@deepseek-ai/dsh-compaction": "^0.1.5-alpha.1",
81
- "@deepseek-ai/dsh-fs-local": "^0.1.5-alpha.1",
82
- "@deepseek-ai/dsh-llm": "^0.1.5-alpha.1",
83
- "@deepseek-ai/dsh-session": "^0.1.5-alpha.1",
84
- "@deepseek-ai/dsh-session-projection": "^0.1.5-alpha.1",
85
- "@deepseek-ai/dsh-output-retention": "^0.1.5-alpha.1",
86
- "@deepseek-ai/dsh-session-projection-cache": "^0.1.5-alpha.1",
87
- "@deepseek-ai/dsh-session-query-sqlite": "^0.1.5-alpha.1",
88
- "@deepseek-ai/dsh-spill": "^0.1.5-alpha.1",
89
- "@deepseek-ai/dsh-session-query": "^0.1.5-alpha.1",
90
- "@deepseek-ai/dsh-spill-local": "^0.1.5-alpha.1",
91
- "@deepseek-ai/dsh-session-title": "^0.1.5-alpha.1",
92
- "@deepseek-ai/dsh-tools": "^0.1.5-alpha.1",
93
- "@deepseek-ai/dsh-tool-fs": "^0.1.5-alpha.1",
94
- "@deepseek-ai/dsh-typert-protocol": "^0.1.5-alpha.1",
95
- "@deepseek-ai/dsh-system-prompt": "^0.1.5-alpha.1"
79
+ "@deepseek-ai/dsh-agent": "^0.1.5-alpha.2",
80
+ "@deepseek-ai/dsh-fs-local": "^0.1.5-alpha.2",
81
+ "@deepseek-ai/dsh-llm": "^0.1.5-alpha.2",
82
+ "@deepseek-ai/dsh-output-retention": "^0.1.5-alpha.2",
83
+ "@deepseek-ai/dsh-session": "^0.1.5-alpha.2",
84
+ "@deepseek-ai/dsh-compaction": "^0.1.5-alpha.2",
85
+ "@deepseek-ai/dsh-session-projection": "^0.1.5-alpha.2",
86
+ "@deepseek-ai/dsh-session-query": "^0.1.5-alpha.2",
87
+ "@deepseek-ai/dsh-session-projection-cache": "^0.1.5-alpha.2",
88
+ "@deepseek-ai/dsh-session-query-sqlite": "^0.1.5-alpha.2",
89
+ "@deepseek-ai/dsh-spill": "^0.1.5-alpha.2",
90
+ "@deepseek-ai/dsh-spill-local": "^0.1.5-alpha.2",
91
+ "@deepseek-ai/dsh-system-prompt": "^0.1.5-alpha.2",
92
+ "@deepseek-ai/dsh-session-title": "^0.1.5-alpha.2",
93
+ "@deepseek-ai/dsh-tools": "^0.1.5-alpha.2",
94
+ "@deepseek-ai/dsh-typert-protocol": "^0.1.5-alpha.2",
95
+ "@deepseek-ai/dsh-tool-fs": "^0.1.5-alpha.2"
96
96
  }
97
97
  }