@deepseek-ai/dsh-client-file-upload 0.1.3-alpha.2 → 0.1.5-alpha.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 +15 -7
- package/package.json +12 -12
package/lib/typert.host.js
CHANGED
|
@@ -227,7 +227,7 @@ export const TYPERT = {
|
|
|
227
227
|
},
|
|
228
228
|
{
|
|
229
229
|
"name": "EpochHeader",
|
|
230
|
-
"declaration": "export interface EpochHeader {\n config: LlmCallConfig;\n adapterDefaults?: LlmCallConfigAdapterDefaults;\n
|
|
230
|
+
"declaration": "export interface EpochHeader {\n config: LlmCallConfig;\n adapterDefaults?: LlmCallConfigAdapterDefaults;\n tools?: ToolSchema[];\n}"
|
|
231
231
|
},
|
|
232
232
|
{
|
|
233
233
|
"name": "FileAttachmentRef",
|
|
@@ -307,7 +307,7 @@ export const TYPERT = {
|
|
|
307
307
|
},
|
|
308
308
|
{
|
|
309
309
|
"name": "Inbox",
|
|
310
|
-
"declaration": "export
|
|
310
|
+
"declaration": "export interface Inbox {\n readonly nextTurn: readonly UserMessage[];\n readonly nextStep: readonly UserMessage[];\n clear(): void;\n append(target: InboxTarget, message: UserMessage): void;\n prepend(target: InboxTarget, message: UserMessage): void;\n replace(messageId: MessageId, newMessage: UserMessage): boolean;\n remove(messageId: MessageId): boolean;\n splice(target: InboxTarget, start: number, deleteCount: number, inserted: UserMessage[]): UserMessage[];\n}"
|
|
311
311
|
},
|
|
312
312
|
{
|
|
313
313
|
"name": "InboxTarget",
|
|
@@ -411,7 +411,7 @@ export const TYPERT = {
|
|
|
411
411
|
},
|
|
412
412
|
{
|
|
413
413
|
"name": "RequestContext",
|
|
414
|
-
"declaration": "export interface RequestContext {\n provider: string;\n model: string;\n contextWindow?: number;\n}"
|
|
414
|
+
"declaration": "export interface RequestContext {\n provider: string;\n model: string;\n contextWindow?: number;\n systemPromptUpdate?: SystemPromptUpdate;\n}"
|
|
415
415
|
},
|
|
416
416
|
{
|
|
417
417
|
"name": "RequestHeaderReason",
|
|
@@ -427,11 +427,11 @@ export const TYPERT = {
|
|
|
427
427
|
},
|
|
428
428
|
{
|
|
429
429
|
"name": "SessionEvent",
|
|
430
|
-
"declaration": "export type SessionEvent<T extends SessionEventType = SessionEventType> = { [K in SessionEventType]: { type: K; seq: SessionSeq; time: number; data: SessionEventMap[K]; ignorable?: true; } & (K extends SurfaceEventType ? {
|
|
430
|
+
"declaration": "export type SessionEvent<T extends SessionEventType = SessionEventType> = { [K in SessionEventType]: { type: K; seq: SessionSeq; time: number; data: SessionEventMap[K]; ignorable?: true; } & (K extends SurfaceEventType ? SurfaceIntent<K> : { surfaceOp?: never; sourceEventSeqs?: never; }) }[T];"
|
|
431
431
|
},
|
|
432
432
|
{
|
|
433
433
|
"name": "SessionEventMap",
|
|
434
|
-
"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 '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/
|
|
434
|
+
"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}"
|
|
435
435
|
},
|
|
436
436
|
{
|
|
437
437
|
"name": "SessionEventType",
|
|
@@ -503,7 +503,7 @@ export const TYPERT = {
|
|
|
503
503
|
},
|
|
504
504
|
{
|
|
505
505
|
"name": "SurfaceEventType",
|
|
506
|
-
"declaration": "export type SurfaceEventType = 'user/message' | 'assistant/message' | 'tool/result';"
|
|
506
|
+
"declaration": "export type SurfaceEventType = 'system/message' | 'user/message' | 'assistant/message' | 'tool/result';"
|
|
507
507
|
},
|
|
508
508
|
{
|
|
509
509
|
"name": "SurfaceIntent",
|
|
@@ -511,7 +511,15 @@ export const TYPERT = {
|
|
|
511
511
|
},
|
|
512
512
|
{
|
|
513
513
|
"name": "SurfaceOp",
|
|
514
|
-
"declaration": "export type SurfaceOp = 'append' | { op: 'replace';
|
|
514
|
+
"declaration": "export type SurfaceOp = 'append' | { op: 'replace'; startSeq: SessionSeq; endSeq: SessionSeq; };"
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
"name": "SystemMessage",
|
|
518
|
+
"declaration": "export interface SystemMessage extends Message {\n readonly role: 'system';\n readonly source: MessageSourceMap['plugin'];\n}"
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
"name": "SystemPromptUpdate",
|
|
522
|
+
"declaration": "export type SystemPromptUpdate = 'in-history';"
|
|
515
523
|
},
|
|
516
524
|
{
|
|
517
525
|
"name": "TeamId",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepseek-ai/dsh-client-file-upload",
|
|
3
3
|
"description": "Agent-scoped browser file upload, streaming intake, and staged receipt service",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.5-alpha.1",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -59,23 +59,23 @@
|
|
|
59
59
|
],
|
|
60
60
|
"dependencies": {
|
|
61
61
|
"zod": "^4.4.3",
|
|
62
|
-
"@deepseek-ai/dsh-
|
|
63
|
-
"@deepseek-ai/dsh-
|
|
62
|
+
"@deepseek-ai/dsh-brand": "^0.1.5-alpha.1",
|
|
63
|
+
"@deepseek-ai/dsh-typert-protocol": "^0.1.5-alpha.1"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
66
|
"@deepseek-ai/cordis": "^4.0.2",
|
|
67
|
-
"@deepseek-ai/dsh-scope": "^0.1.
|
|
67
|
+
"@deepseek-ai/dsh-scope": "^0.1.5-alpha.1"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
|
+
"@deepseek-ai/dsh-client-connection": "^0.1.5-alpha.1",
|
|
71
|
+
"@deepseek-ai/dsh-commands": "^0.1.5-alpha.1",
|
|
70
72
|
"@deepseek-ai/cordis": "^4.0.2",
|
|
71
|
-
"@deepseek-ai/dsh-agent": "^0.1.
|
|
72
|
-
"@deepseek-ai/dsh-
|
|
73
|
-
"@deepseek-ai/dsh-
|
|
74
|
-
"@deepseek-ai/dsh-
|
|
75
|
-
"@deepseek-ai/dsh-
|
|
76
|
-
"@deepseek-ai/dsh-
|
|
77
|
-
"@deepseek-ai/dsh-attachment": "^0.1.3-alpha.2",
|
|
78
|
-
"@deepseek-ai/dsh-api-remotes": "^0.1.3-alpha.2"
|
|
73
|
+
"@deepseek-ai/dsh-agent": "^0.1.5-alpha.1",
|
|
74
|
+
"@deepseek-ai/dsh-util-crypto": "^0.1.5-alpha.1",
|
|
75
|
+
"@deepseek-ai/dsh-scope": "^0.1.5-alpha.1",
|
|
76
|
+
"@deepseek-ai/dsh-api-remotes": "^0.1.5-alpha.1",
|
|
77
|
+
"@deepseek-ai/dsh-session": "^0.1.5-alpha.1",
|
|
78
|
+
"@deepseek-ai/dsh-attachment": "^0.1.5-alpha.1"
|
|
79
79
|
},
|
|
80
80
|
"scripts": {
|
|
81
81
|
"bundle": "tsdown",
|