@deepseek-ai/dsh-session-reference 0.1.7-alpha.2 → 0.1.7-rc.1
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/typert.host.js +2 -38
- package/package.json +35 -35
package/lib/typert.host.js
CHANGED
|
@@ -360,7 +360,7 @@ export const TYPERT = {
|
|
|
360
360
|
},
|
|
361
361
|
{
|
|
362
362
|
"name": "MessageSourceMap",
|
|
363
|
-
"declaration": "export interface MessageSourceMap {\n user: { kind: 'user'; };\n model: ModelMessageSource;\n tool: ToolMessageSource;\n 'system-prompt': SystemPromptMessageSource;\n 'model-selection': { kind: 'model-selection'; } & ContextFormed;\n 'user-approval': { kind: 'user-approval'; } & ContextFormed;\n 'ptc-mode': { kind: 'ptc-mode'; };\n 'tool-registry': { kind: 'tool-registry'; };\n 'user-rpc': { kind: 'user'; rpcId: SessionRequestId; clientTimeZone?: string; };\n 'agent-message': AgentMessageSource;\n 'subagent-settled': SubagentSettledMessageSource;\n 'skill-invocation': SkillInvocationSource;\n 'cordis-host-runner': { kind: 'cordis-host-runner'; };\n
|
|
363
|
+
"declaration": "export interface MessageSourceMap {\n user: { kind: 'user'; };\n model: ModelMessageSource;\n tool: ToolMessageSource;\n 'system-prompt': SystemPromptMessageSource;\n 'model-selection': { kind: 'model-selection'; } & ContextFormed;\n 'user-approval': { kind: 'user-approval'; } & ContextFormed;\n 'ptc-mode': { kind: 'ptc-mode'; };\n 'tool-registry': { kind: 'tool-registry'; };\n 'user-rpc': { kind: 'user'; rpcId: SessionRequestId; clientTimeZone?: string; };\n 'agent-message': AgentMessageSource;\n 'subagent-settled': SubagentSettledMessageSource;\n 'skill-invocation': SkillInvocationSource;\n 'cordis-host-runner': { kind: 'cordis-host-runner'; };\n goal: GoalMessageSource;\n 'compact-checkpoint': CompactionCheckpointSource;\n 'session-reference': SessionReferenceSource;\n}"
|
|
364
364
|
},
|
|
365
365
|
{
|
|
366
366
|
"name": "ModelMessageSource",
|
|
@@ -428,7 +428,7 @@ export const TYPERT = {
|
|
|
428
428
|
},
|
|
429
429
|
{
|
|
430
430
|
"name": "SessionEventMap",
|
|
431
|
-
"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 'developer/message': { turn: number; step: number; message: DeveloperMessage; headerSeq?: SessionSeq; };\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; reason?: 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 'sandbox/mode': { mode: SandboxMode; source?: 'delegation'; };\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 'image/offload': { targets: ImageOffloadTarget[]; };\n 'session/title': SessionTitleEventData;\n 'todo/write': { todos: TodoItem[]; };\n 'model/selection': ModelSelection;\n 'subagent/descriptor': SubagentDescriptorData;\n 'permission/preset': { preset: string; };\n 'subagent/catalog': SubagentCatalogEvent;\n 'feedback/record': FeedbackRecord;\n '
|
|
431
|
+
"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 'developer/message': { turn: number; step: number; message: DeveloperMessage; headerSeq?: SessionSeq; };\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; reason?: 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 'sandbox/mode': { mode: SandboxMode; source?: 'delegation'; };\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 'image/offload': { targets: ImageOffloadTarget[]; };\n 'session/title': SessionTitleEventData;\n 'todo/write': { todos: TodoItem[]; };\n 'model/selection': ModelSelection;\n 'subagent/descriptor': SubagentDescriptorData;\n 'permission/preset': { preset: string; };\n 'subagent/catalog': SubagentCatalogEvent;\n 'feedback/record': FeedbackRecord;\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}"
|
|
432
432
|
},
|
|
433
433
|
{
|
|
434
434
|
"name": "SessionEventType",
|
|
@@ -538,42 +538,6 @@ export const TYPERT = {
|
|
|
538
538
|
"name": "SystemPromptUpdate",
|
|
539
539
|
"declaration": "export type SystemPromptUpdate = 'in-history';"
|
|
540
540
|
},
|
|
541
|
-
{
|
|
542
|
-
"name": "TeamId",
|
|
543
|
-
"declaration": "export type TeamId = Branded<'TeamId'>;"
|
|
544
|
-
},
|
|
545
|
-
{
|
|
546
|
-
"name": "TeamMemberPhase",
|
|
547
|
-
"declaration": "export type TeamMemberPhase = 'provisioning' | 'active' | 'failed';"
|
|
548
|
-
},
|
|
549
|
-
{
|
|
550
|
-
"name": "TeamMemberSnapshot",
|
|
551
|
-
"declaration": "export interface TeamMemberSnapshot {\n readonly id: SessionId;\n readonly name: string;\n readonly description: string;\n readonly provider: string;\n readonly context: 'fresh' | 'fork';\n readonly phase: TeamMemberPhase;\n readonly error?: string;\n}"
|
|
552
|
-
},
|
|
553
|
-
{
|
|
554
|
-
"name": "TeamMessageId",
|
|
555
|
-
"declaration": "export type TeamMessageId = Branded<'TeamMessageId'>;"
|
|
556
|
-
},
|
|
557
|
-
{
|
|
558
|
-
"name": "TeamMessageSnapshot",
|
|
559
|
-
"declaration": "export interface TeamMessageSnapshot {\n readonly id: TeamMessageId;\n readonly senderId: SessionId;\n readonly senderName: string;\n readonly targetId: SessionId;\n readonly content: ContentBlock[];\n}"
|
|
560
|
-
},
|
|
561
|
-
{
|
|
562
|
-
"name": "TeamMessageSource",
|
|
563
|
-
"declaration": "export interface TeamMessageSource {\n readonly kind: 'team-message';\n readonly teamId: TeamId;\n readonly messageId: TeamMessageId;\n readonly senderId: SessionId;\n readonly senderName: string;\n}"
|
|
564
|
-
},
|
|
565
|
-
{
|
|
566
|
-
"name": "TeamTaskId",
|
|
567
|
-
"declaration": "export type TeamTaskId = Branded<'TeamTaskId'>;"
|
|
568
|
-
},
|
|
569
|
-
{
|
|
570
|
-
"name": "TeamTaskSnapshot",
|
|
571
|
-
"declaration": "export interface TeamTaskSnapshot {\n readonly id: TeamTaskId;\n readonly revision: number;\n readonly subject: string;\n readonly description: string;\n readonly status: TeamTaskStatus;\n readonly ownerId?: SessionId;\n readonly blockedBy: TeamTaskId[];\n readonly writeScopes: string[];\n}"
|
|
572
|
-
},
|
|
573
|
-
{
|
|
574
|
-
"name": "TeamTaskStatus",
|
|
575
|
-
"declaration": "export type TeamTaskStatus = 'pending' | 'in_progress' | 'completed' | 'deleted';"
|
|
576
|
-
},
|
|
577
541
|
{
|
|
578
542
|
"name": "TextBlock",
|
|
579
543
|
"declaration": "export interface TextBlock {\n type: 'text';\n text: 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.7-
|
|
4
|
+
"version": "0.1.7-rc.1",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -45,25 +45,25 @@
|
|
|
45
45
|
"license": "MIT",
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"zod": "^4.4.3",
|
|
48
|
-
"@deepseek-ai/dsh-brand": "0.1.7-
|
|
49
|
-
"@deepseek-ai/
|
|
50
|
-
"@deepseek-ai/
|
|
48
|
+
"@deepseek-ai/dsh-brand": "0.1.7-rc.1",
|
|
49
|
+
"@deepseek-ai/dsh-util-values": "0.1.7-rc.1",
|
|
50
|
+
"@deepseek-ai/schemastery": "~3.18.4"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
|
-
"@deepseek-ai/dsh-
|
|
53
|
+
"@deepseek-ai/dsh-agent": "0.1.7-rc.1",
|
|
54
|
+
"@deepseek-ai/dsh-compaction": "0.1.7-rc.1",
|
|
55
|
+
"@deepseek-ai/dsh-output-retention": "0.1.7-rc.1",
|
|
54
56
|
"@deepseek-ai/cordis": "~4.0.4",
|
|
55
|
-
"@deepseek-ai/dsh-
|
|
56
|
-
"@deepseek-ai/dsh-
|
|
57
|
-
"@deepseek-ai/dsh-session": "0.1.7-
|
|
58
|
-
"@deepseek-ai/dsh-
|
|
59
|
-
"@deepseek-ai/dsh-
|
|
60
|
-
"@deepseek-ai/dsh-session-
|
|
61
|
-
"@deepseek-ai/dsh-
|
|
62
|
-
"@deepseek-ai/dsh-
|
|
63
|
-
"@deepseek-ai/dsh-
|
|
64
|
-
"@deepseek-ai/dsh-
|
|
65
|
-
"@deepseek-ai/dsh-subagent": "0.1.7-alpha.2",
|
|
66
|
-
"@deepseek-ai/dsh-agent": "0.1.7-alpha.2"
|
|
57
|
+
"@deepseek-ai/dsh-session": "0.1.7-rc.1",
|
|
58
|
+
"@deepseek-ai/dsh-session-projection-cache": "0.1.7-rc.1",
|
|
59
|
+
"@deepseek-ai/dsh-session-query": "0.1.7-rc.1",
|
|
60
|
+
"@deepseek-ai/dsh-spill": "0.1.7-rc.1",
|
|
61
|
+
"@deepseek-ai/dsh-subagent": "0.1.7-rc.1",
|
|
62
|
+
"@deepseek-ai/dsh-session-title": "0.1.7-rc.1",
|
|
63
|
+
"@deepseek-ai/dsh-system-prompt": "0.1.7-rc.1",
|
|
64
|
+
"@deepseek-ai/dsh-typert-protocol": "0.1.7-rc.1",
|
|
65
|
+
"@deepseek-ai/dsh-session-projection": "0.1.7-rc.1",
|
|
66
|
+
"@deepseek-ai/dsh-llm": "0.1.7-rc.1"
|
|
67
67
|
},
|
|
68
68
|
"peerDependenciesMeta": {
|
|
69
69
|
"@deepseek-ai/dsh-spill": {
|
|
@@ -77,23 +77,23 @@
|
|
|
77
77
|
"@deepseek-ai/cordis": "~4.0.4",
|
|
78
78
|
"@deepseek-ai/cordis-plugin-include": "~1.0.9",
|
|
79
79
|
"@deepseek-ai/cordis-plugin-loader": "~1.0.5",
|
|
80
|
-
"@deepseek-ai/dsh-
|
|
81
|
-
"@deepseek-ai/dsh-
|
|
82
|
-
"@deepseek-ai/dsh-
|
|
83
|
-
"@deepseek-ai/dsh-llm": "0.1.7-
|
|
84
|
-
"@deepseek-ai/dsh-output-retention": "0.1.7-
|
|
85
|
-
"@deepseek-ai/dsh-session
|
|
86
|
-
"@deepseek-ai/dsh-session": "0.1.7-
|
|
87
|
-
"@deepseek-ai/dsh-session-projection-cache": "0.1.7-
|
|
88
|
-
"@deepseek-ai/dsh-session-query": "0.1.7-
|
|
89
|
-
"@deepseek-ai/dsh-session-query-sqlite": "0.1.7-
|
|
90
|
-
"@deepseek-ai/dsh-session-title": "0.1.7-
|
|
91
|
-
"@deepseek-ai/dsh-spill": "0.1.7-
|
|
92
|
-
"@deepseek-ai/dsh-subagent": "0.1.7-
|
|
93
|
-
"@deepseek-ai/dsh-spill-local": "0.1.7-
|
|
94
|
-
"@deepseek-ai/dsh-system-prompt": "0.1.7-
|
|
95
|
-
"@deepseek-ai/dsh-
|
|
96
|
-
"@deepseek-ai/dsh-
|
|
97
|
-
"@deepseek-ai/dsh-
|
|
80
|
+
"@deepseek-ai/dsh-agent": "0.1.7-rc.1",
|
|
81
|
+
"@deepseek-ai/dsh-compaction": "0.1.7-rc.1",
|
|
82
|
+
"@deepseek-ai/dsh-fs-local": "0.1.7-rc.1",
|
|
83
|
+
"@deepseek-ai/dsh-llm": "0.1.7-rc.1",
|
|
84
|
+
"@deepseek-ai/dsh-output-retention": "0.1.7-rc.1",
|
|
85
|
+
"@deepseek-ai/dsh-session": "0.1.7-rc.1",
|
|
86
|
+
"@deepseek-ai/dsh-session-projection": "0.1.7-rc.1",
|
|
87
|
+
"@deepseek-ai/dsh-session-projection-cache": "0.1.7-rc.1",
|
|
88
|
+
"@deepseek-ai/dsh-session-query": "0.1.7-rc.1",
|
|
89
|
+
"@deepseek-ai/dsh-session-query-sqlite": "0.1.7-rc.1",
|
|
90
|
+
"@deepseek-ai/dsh-session-title": "0.1.7-rc.1",
|
|
91
|
+
"@deepseek-ai/dsh-spill": "0.1.7-rc.1",
|
|
92
|
+
"@deepseek-ai/dsh-subagent": "0.1.7-rc.1",
|
|
93
|
+
"@deepseek-ai/dsh-spill-local": "0.1.7-rc.1",
|
|
94
|
+
"@deepseek-ai/dsh-system-prompt": "0.1.7-rc.1",
|
|
95
|
+
"@deepseek-ai/dsh-tools": "0.1.7-rc.1",
|
|
96
|
+
"@deepseek-ai/dsh-typert-protocol": "0.1.7-rc.1",
|
|
97
|
+
"@deepseek-ai/dsh-tool-fs": "0.1.7-rc.1"
|
|
98
98
|
}
|
|
99
99
|
}
|