@deepseek-ai/dsh-api-terminal-controller 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 +18 -18
package/lib/typert.host.js
CHANGED
|
@@ -947,7 +947,7 @@ export const TYPERT = {
|
|
|
947
947
|
},
|
|
948
948
|
{
|
|
949
949
|
"name": "MessageSourceMap",
|
|
950
|
-
"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
|
|
950
|
+
"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}"
|
|
951
951
|
},
|
|
952
952
|
{
|
|
953
953
|
"name": "ModelMessageSource",
|
|
@@ -1011,7 +1011,7 @@ export const TYPERT = {
|
|
|
1011
1011
|
},
|
|
1012
1012
|
{
|
|
1013
1013
|
"name": "SessionEventMap",
|
|
1014
|
-
"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 '
|
|
1014
|
+
"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}"
|
|
1015
1015
|
},
|
|
1016
1016
|
{
|
|
1017
1017
|
"name": "SessionEventType",
|
|
@@ -1109,42 +1109,6 @@ export const TYPERT = {
|
|
|
1109
1109
|
"name": "SystemPromptUpdate",
|
|
1110
1110
|
"declaration": "export type SystemPromptUpdate = 'in-history';"
|
|
1111
1111
|
},
|
|
1112
|
-
{
|
|
1113
|
-
"name": "TeamId",
|
|
1114
|
-
"declaration": "export type TeamId = Branded<'TeamId'>;"
|
|
1115
|
-
},
|
|
1116
|
-
{
|
|
1117
|
-
"name": "TeamMemberPhase",
|
|
1118
|
-
"declaration": "export type TeamMemberPhase = 'provisioning' | 'active' | 'failed';"
|
|
1119
|
-
},
|
|
1120
|
-
{
|
|
1121
|
-
"name": "TeamMemberSnapshot",
|
|
1122
|
-
"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}"
|
|
1123
|
-
},
|
|
1124
|
-
{
|
|
1125
|
-
"name": "TeamMessageId",
|
|
1126
|
-
"declaration": "export type TeamMessageId = Branded<'TeamMessageId'>;"
|
|
1127
|
-
},
|
|
1128
|
-
{
|
|
1129
|
-
"name": "TeamMessageSnapshot",
|
|
1130
|
-
"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}"
|
|
1131
|
-
},
|
|
1132
|
-
{
|
|
1133
|
-
"name": "TeamMessageSource",
|
|
1134
|
-
"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}"
|
|
1135
|
-
},
|
|
1136
|
-
{
|
|
1137
|
-
"name": "TeamTaskId",
|
|
1138
|
-
"declaration": "export type TeamTaskId = Branded<'TeamTaskId'>;"
|
|
1139
|
-
},
|
|
1140
|
-
{
|
|
1141
|
-
"name": "TeamTaskSnapshot",
|
|
1142
|
-
"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}"
|
|
1143
|
-
},
|
|
1144
|
-
{
|
|
1145
|
-
"name": "TeamTaskStatus",
|
|
1146
|
-
"declaration": "export type TeamTaskStatus = 'pending' | 'in_progress' | 'completed' | 'deleted';"
|
|
1147
|
-
},
|
|
1148
1112
|
{
|
|
1149
1113
|
"name": "TerminalAttachmentId",
|
|
1150
1114
|
"declaration": "export type TerminalAttachmentId = Branded<'TerminalAttachmentId'>;"
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepseek-ai/dsh-api-terminal-controller",
|
|
3
3
|
"description": "Session-owned interactive terminals with shell discovery, screen recovery and typed Remote control",
|
|
4
|
-
"version": "0.1.7-
|
|
4
|
+
"version": "0.1.7-rc.1",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -53,30 +53,30 @@
|
|
|
53
53
|
"@xterm/headless": "^6.0.0",
|
|
54
54
|
"@xterm/addon-serialize": "^0.14.0",
|
|
55
55
|
"zod": "^4.4.3",
|
|
56
|
-
"@deepseek-ai/dsh-
|
|
57
|
-
"@deepseek-ai/dsh-
|
|
58
|
-
"@deepseek-ai/dsh-typert-protocol": "0.1.7-
|
|
56
|
+
"@deepseek-ai/dsh-deque": "0.1.7-rc.1",
|
|
57
|
+
"@deepseek-ai/dsh-lazy-require": "0.1.7-rc.1",
|
|
58
|
+
"@deepseek-ai/dsh-typert-protocol": "0.1.7-rc.1",
|
|
59
59
|
"@deepseek-ai/schemastery": "~3.18.4"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
|
-
"@deepseek-ai/dsh-subprocess": "0.1.7-
|
|
62
|
+
"@deepseek-ai/dsh-subprocess": "0.1.7-rc.1",
|
|
63
63
|
"@deepseek-ai/cordis": "~4.0.4"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"@deepseek-ai/cordis": "~4.0.4",
|
|
67
|
-
"@deepseek-ai/dsh-agent": "0.1.7-
|
|
68
|
-
"@deepseek-ai/dsh-
|
|
69
|
-
"@deepseek-ai/dsh-
|
|
70
|
-
"@deepseek-ai/dsh-client-store": "0.1.7-
|
|
71
|
-
"@deepseek-ai/dsh-fs": "0.1.7-
|
|
72
|
-
"@deepseek-ai/dsh-remote-mock": "0.1.7-
|
|
73
|
-
"@deepseek-ai/dsh-sandbox": "0.1.7-
|
|
74
|
-
"@deepseek-ai/dsh-sandbox-policy": "0.1.7-
|
|
75
|
-
"@deepseek-ai/dsh-session": "0.1.7-
|
|
76
|
-
"@deepseek-ai/dsh-session-projection": "0.1.7-
|
|
77
|
-
"@deepseek-ai/dsh-subprocess": "0.1.7-
|
|
78
|
-
"@deepseek-ai/dsh-subprocess-local": "0.1.7-
|
|
79
|
-
"@deepseek-ai/dsh-util-crypto": "0.1.7-
|
|
67
|
+
"@deepseek-ai/dsh-agent": "0.1.7-rc.1",
|
|
68
|
+
"@deepseek-ai/dsh-api-gateway": "0.1.7-rc.1",
|
|
69
|
+
"@deepseek-ai/dsh-brand": "0.1.7-rc.1",
|
|
70
|
+
"@deepseek-ai/dsh-client-store": "0.1.7-rc.1",
|
|
71
|
+
"@deepseek-ai/dsh-fs": "0.1.7-rc.1",
|
|
72
|
+
"@deepseek-ai/dsh-remote-mock": "0.1.7-rc.1",
|
|
73
|
+
"@deepseek-ai/dsh-sandbox": "0.1.7-rc.1",
|
|
74
|
+
"@deepseek-ai/dsh-sandbox-policy": "0.1.7-rc.1",
|
|
75
|
+
"@deepseek-ai/dsh-session": "0.1.7-rc.1",
|
|
76
|
+
"@deepseek-ai/dsh-session-projection": "0.1.7-rc.1",
|
|
77
|
+
"@deepseek-ai/dsh-subprocess": "0.1.7-rc.1",
|
|
78
|
+
"@deepseek-ai/dsh-subprocess-local": "0.1.7-rc.1",
|
|
79
|
+
"@deepseek-ai/dsh-util-crypto": "0.1.7-rc.1"
|
|
80
80
|
},
|
|
81
81
|
"files": [
|
|
82
82
|
"lib/index.js",
|