@deepseek-ai/dsh-session-reference 0.1.7-alpha.2 → 0.1.7-rc.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.
- package/README.i18n.yaml +66 -5
- package/lib/typert.host.js +63 -39
- package/package.json +35 -35
package/README.i18n.yaml
CHANGED
|
@@ -1,6 +1,67 @@
|
|
|
1
|
-
# Bilingual-pair consistency record (docs/i18n/README.md):
|
|
2
|
-
#
|
|
3
|
-
#
|
|
1
|
+
# Bilingual-pair consistency record for README.md (docs/i18n/README.md): per heading
|
|
2
|
+
# section, a hash of its English and Chinese blocks outside code blocks and generated regions.
|
|
3
|
+
# After editing either side, bring the other along and re-record with:
|
|
4
4
|
# pnpm run verify-translation-pairing --write packages/context/session-reference/README.md
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
/:
|
|
6
|
+
en: 5609ff124a8402a2
|
|
7
|
+
zh: dbe8216d8a5cad0a
|
|
8
|
+
/deepseek-ai-dsh-session-reference:
|
|
9
|
+
en: ac4de1b73582661f
|
|
10
|
+
zh: 348c1ee18d356ced
|
|
11
|
+
/deepseek-ai-dsh-session-reference/summary:
|
|
12
|
+
en: 3f295289f31296b6
|
|
13
|
+
zh: 8246ede26b9699fc
|
|
14
|
+
/deepseek-ai-dsh-session-reference/table-of-contents:
|
|
15
|
+
en: d152484eb41ac6b4
|
|
16
|
+
zh: 09388d293f9be9cb
|
|
17
|
+
/deepseek-ai-dsh-session-reference/use-this-package:
|
|
18
|
+
en: 5204d64418ff8969
|
|
19
|
+
zh: d7cabc99294e480e
|
|
20
|
+
/deepseek-ai-dsh-session-reference/use-this-package/mention-syntax:
|
|
21
|
+
en: d25be7f4b82afe02
|
|
22
|
+
zh: 6ad886a864d584b2
|
|
23
|
+
/deepseek-ai-dsh-session-reference/use-this-package/what-the-agent-gets:
|
|
24
|
+
en: 0942e28bfd0d07da
|
|
25
|
+
zh: ca109508b18b4c14
|
|
26
|
+
/deepseek-ai-dsh-session-reference/use-this-package/finding-sessions-to-reference:
|
|
27
|
+
en: 169f100ba62f2120
|
|
28
|
+
zh: 3fd4fc0bd73b2370
|
|
29
|
+
/deepseek-ai-dsh-session-reference/use-this-package/configuration:
|
|
30
|
+
en: d9abc1b28c3feb40
|
|
31
|
+
zh: ac85539027b37130
|
|
32
|
+
/deepseek-ai-dsh-session-reference/understand-the-implementation:
|
|
33
|
+
en: db349483e453caf7
|
|
34
|
+
zh: 70035c291e1efe84
|
|
35
|
+
/deepseek-ai-dsh-session-reference/understand-the-implementation/design-concept:
|
|
36
|
+
en: 5c7712ca91eaae1c
|
|
37
|
+
zh: 2d923b605afa7a88
|
|
38
|
+
/deepseek-ai-dsh-session-reference/understand-the-implementation/source-map:
|
|
39
|
+
en: 3a91f258bdfbe488
|
|
40
|
+
zh: 80301b5d6b218389
|
|
41
|
+
/deepseek-ai-dsh-session-reference/understand-the-implementation/main-flow:
|
|
42
|
+
en: 019e5e19f9b3d7fd
|
|
43
|
+
zh: 52ccf291f53d41fc
|
|
44
|
+
/deepseek-ai-dsh-session-reference/further-exploration:
|
|
45
|
+
en: ea488621aa03e4fd
|
|
46
|
+
zh: 205ba9e3197d7b30
|
|
47
|
+
/deepseek-ai-dsh-session-reference/model-experience:
|
|
48
|
+
en: 215e7ba838619b7b
|
|
49
|
+
zh: a311da3843709f90
|
|
50
|
+
/deepseek-ai-dsh-session-reference/model-experience/referenced-session-background:
|
|
51
|
+
en: 05d3418d162640be
|
|
52
|
+
zh: 3dd8407f2dc61586
|
|
53
|
+
/deepseek-ai-dsh-session-reference/model-experience/referenced-session-background/what-the-model-sees:
|
|
54
|
+
en: 375550519407bc3d
|
|
55
|
+
zh: 037324246f4fb515
|
|
56
|
+
/deepseek-ai-dsh-session-reference/model-experience/referenced-session-background/token-effect:
|
|
57
|
+
en: f3d69ed47a577be0
|
|
58
|
+
zh: 196a872914778634
|
|
59
|
+
/deepseek-ai-dsh-session-reference/model-experience/referenced-session-background/kv-cache-effect:
|
|
60
|
+
en: 530d6417585b5c9e
|
|
61
|
+
zh: abf1597589e8de17
|
|
62
|
+
/deepseek-ai-dsh-session-reference/known-limitations-and-deferred-work:
|
|
63
|
+
en: fce2f29b6a71b7f4
|
|
64
|
+
zh: 31440d93a112d5de
|
|
65
|
+
/deepseek-ai-dsh-session-reference/known-limitations-and-deferred-work/dev-note:
|
|
66
|
+
en: e67f633dc6fe7773
|
|
67
|
+
zh: 3bb0c20c93f16f98
|
package/lib/typert.host.js
CHANGED
|
@@ -98,6 +98,10 @@ export const TYPERT = {
|
|
|
98
98
|
}
|
|
99
99
|
],
|
|
100
100
|
"types": [
|
|
101
|
+
{
|
|
102
|
+
"name": "AfterScheduleRecord",
|
|
103
|
+
"declaration": "export interface AfterScheduleRecord {\n readonly id: ScheduleId;\n readonly kind: 'after';\n readonly title: string;\n readonly prompt: string;\n readonly afterSeconds: number;\n readonly scheduledAt: string;\n}"
|
|
104
|
+
},
|
|
101
105
|
{
|
|
102
106
|
"name": "Agent",
|
|
103
107
|
"declaration": "export interface Agent {\n readonly id: SessionId;\n readonly options: AgentOptions;\n readonly session: Session;\n readonly inbox: Inbox;\n readonly status: AgentStatus;\n readonly ctx: Context;\n cancel(cause: AgentCancelCause, options?: CancelOptions): void;\n whenIdle(): Promise<void>;\n runMaintenance<T>(task: (signal: AbortSignal) => Promise<T>): Promise<T>;\n send(message: UserMessage, target: InboxTarget, wakeup: boolean): void;\n followup(message: UserMessage): void;\n steer(message: UserMessage): void;\n inject(message: UserMessage): void;\n}"
|
|
@@ -142,6 +146,10 @@ export const TYPERT = {
|
|
|
142
146
|
"name": "AssistantStreamRecord",
|
|
143
147
|
"declaration": "export type AssistantStreamRecord = { readonly type: 'text-chunks'; readonly time0: number; readonly index: number; readonly dt: readonly number[]; readonly texts: readonly string[]; } | { readonly type: 'reasoning-chunks'; readonly time0: number; readonly index: number; readonly dt: readonly number[]; readonly texts: readonly string[]; } | { readonly type: 'tool-call-chunks'; readonly time0: number; readonly index: number; readonly dt: readonly number[]; readonly id: ToolCallId; readonly name?: string; readonly args: readonly string[]; } | { readonly type: 'chunk'; readonly time: number; readonly chunk: StreamChunk; };"
|
|
144
148
|
},
|
|
149
|
+
{
|
|
150
|
+
"name": "AtScheduleRecord",
|
|
151
|
+
"declaration": "export interface AtScheduleRecord {\n readonly id: ScheduleId;\n readonly kind: 'at';\n readonly title: string;\n readonly prompt: string;\n readonly scheduledAt: string;\n}"
|
|
152
|
+
},
|
|
145
153
|
{
|
|
146
154
|
"name": "AttachmentId",
|
|
147
155
|
"declaration": "export type AttachmentId = Branded<'AttachmentId'>;"
|
|
@@ -210,6 +218,14 @@ export const TYPERT = {
|
|
|
210
218
|
"name": "EpochHeader",
|
|
211
219
|
"declaration": "export interface EpochHeader {\n config: LlmCallConfig;\n adapterDefaults?: LlmCallConfigAdapterDefaults;\n tools?: ToolSchema[];\n system?: never;\n}"
|
|
212
220
|
},
|
|
221
|
+
{
|
|
222
|
+
"name": "EveryScheduleDispatchChange",
|
|
223
|
+
"declaration": "export interface EveryScheduleDispatchChange {\n readonly version: 1;\n readonly operation: 'dispatch';\n readonly id: ScheduleId;\n readonly acceptedAt: string;\n}"
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"name": "EveryScheduleRecord",
|
|
227
|
+
"declaration": "export interface EveryScheduleRecord {\n readonly id: ScheduleId;\n readonly kind: 'every';\n readonly title: string;\n readonly prompt: string;\n readonly everySeconds: number;\n readonly scheduledAt: string;\n}"
|
|
228
|
+
},
|
|
213
229
|
{
|
|
214
230
|
"name": "FeedbackCategory",
|
|
215
231
|
"declaration": "export type FeedbackCategory = 'task-result' | 'instruction-following' | 'product-interaction' | 'service-stability' | 'resource-cost' | 'security-privacy-permission' | 'other';"
|
|
@@ -306,6 +322,22 @@ export const TYPERT = {
|
|
|
306
322
|
"name": "KnownCatalogMode",
|
|
307
323
|
"declaration": "export type KnownCatalogMode = { readonly mode: 'one-shot'; readonly label?: string; } | { readonly mode: 'continuable'; readonly label: string; };"
|
|
308
324
|
},
|
|
325
|
+
{
|
|
326
|
+
"name": "LegacyAfterScheduleRecord",
|
|
327
|
+
"declaration": "export interface LegacyAfterScheduleRecord extends Omit<AfterScheduleRecord, 'title'> {\n readonly title?: string;\n}"
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
"name": "LegacyAtScheduleRecord",
|
|
331
|
+
"declaration": "export interface LegacyAtScheduleRecord extends Omit<AtScheduleRecord, 'title'> {\n readonly title?: string;\n}"
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
"name": "LegacyEveryScheduleRecord",
|
|
335
|
+
"declaration": "export interface LegacyEveryScheduleRecord extends Omit<EveryScheduleRecord, 'title'> {\n readonly title?: string;\n}"
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
"name": "LegacyScheduleRecord",
|
|
339
|
+
"declaration": "export type LegacyScheduleRecord = LegacyAfterScheduleRecord | LegacyAtScheduleRecord | LegacyEveryScheduleRecord;"
|
|
340
|
+
},
|
|
309
341
|
{
|
|
310
342
|
"name": "LlmCallConfig",
|
|
311
343
|
"declaration": "export interface LlmCallConfig {\n provider: string;\n model: string;\n reasoningEffort?: ReasoningEffortId;\n temperature?: number;\n maxTokens?: number;\n stop?: string[];\n}"
|
|
@@ -360,7 +392,7 @@ export const TYPERT = {
|
|
|
360
392
|
},
|
|
361
393
|
{
|
|
362
394
|
"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
|
|
395
|
+
"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 schedule: { kind: 'schedule'; } & ContextFormed;\n 'compact-checkpoint': CompactionCheckpointSource;\n 'session-reference': SessionReferenceSource;\n}"
|
|
364
396
|
},
|
|
365
397
|
{
|
|
366
398
|
"name": "ModelMessageSource",
|
|
@@ -370,6 +402,10 @@ export const TYPERT = {
|
|
|
370
402
|
"name": "ModelSelection",
|
|
371
403
|
"declaration": "export interface ModelSelection {\n readonly provider: string;\n readonly model: string;\n readonly reasoningEffort?: string;\n}"
|
|
372
404
|
},
|
|
405
|
+
{
|
|
406
|
+
"name": "OneShotScheduleDispatchChange",
|
|
407
|
+
"declaration": "export interface OneShotScheduleDispatchChange {\n readonly version: 1;\n readonly operation: 'dispatch';\n readonly id: ScheduleId;\n}"
|
|
408
|
+
},
|
|
373
409
|
{
|
|
374
410
|
"name": "OneShotSubagentDescriptorData",
|
|
375
411
|
"declaration": "export interface OneShotSubagentDescriptorData extends SubagentDescriptorBase {\n readonly mode: 'one-shot';\n readonly label?: string;\n}"
|
|
@@ -418,9 +454,29 @@ export const TYPERT = {
|
|
|
418
454
|
"name": "SandboxMode",
|
|
419
455
|
"declaration": "export type SandboxMode = 'read-only' | 'workspace-write' | 'danger-full-access';"
|
|
420
456
|
},
|
|
457
|
+
{
|
|
458
|
+
"name": "ScheduleChange",
|
|
459
|
+
"declaration": "export type ScheduleChange = ScheduleCreateChange | ScheduleDeleteChange | ScheduleDispatchChange;"
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
"name": "ScheduleCreateChange",
|
|
463
|
+
"declaration": "export interface ScheduleCreateChange {\n readonly version: 1;\n readonly operation: 'create';\n readonly schedule: LegacyScheduleRecord;\n}"
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
"name": "ScheduleDeleteChange",
|
|
467
|
+
"declaration": "export interface ScheduleDeleteChange {\n readonly version: 1;\n readonly operation: 'delete';\n readonly id: ScheduleId;\n}"
|
|
468
|
+
},
|
|
469
|
+
{
|
|
470
|
+
"name": "ScheduleDispatchChange",
|
|
471
|
+
"declaration": "export type ScheduleDispatchChange = OneShotScheduleDispatchChange | EveryScheduleDispatchChange;"
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
"name": "ScheduleId",
|
|
475
|
+
"declaration": "export type ScheduleId = Branded<'ScheduleId'>;"
|
|
476
|
+
},
|
|
421
477
|
{
|
|
422
478
|
"name": "Session",
|
|
423
|
-
"declaration": "export class Session {\n get surface(): SessionSurface;\n readonly header: SessionHeader;\n readonly inheritedEventCount: SessionLogOffset;\n get id(): SessionId;\n readonly firstLiveSeq: SessionLogOffset;\n readonly firstLifecycleSeq: SessionLogOffset;\n eventAt(seq: SessionSeq): SessionEvent | undefined;\n snapshotEvents(fromSeq: SessionLogOffset = SessionLogOffset(0), toSeqExclusive: SessionLogOffset = this.seq): readonly SessionEvent[];\n ownEvents(): readonly SessionEvent[];\n isOwnSeq(seq: SessionSeq): boolean;\n get seq(): SessionLogOffset;\n append<T extends SessionEventType>(type: T, data: SessionEventMap[T], ...opts: T extends SurfaceEventType ? [opts: SurfaceIntent<T>] : []): SessionEvent<T>;\n requestHeader(): EpochHeader | undefined;\n requestContext(): RequestContext | undefined;\n deriveMessages(): Message[];\n deriveEventMessage(event: SessionEvent): Message | null;\n}"
|
|
479
|
+
"declaration": "export class Session {\n get surface(): SessionSurface;\n readonly header: SessionHeader;\n readonly inheritedEventCount: SessionLogOffset;\n get id(): SessionId;\n readonly firstLiveSeq: SessionLogOffset;\n readonly firstLifecycleSeq: SessionLogOffset;\n eventAt(seq: SessionSeq): SessionEvent | undefined;\n snapshotEvents(fromSeq: SessionLogOffset = SessionLogOffset(0), toSeqExclusive: SessionLogOffset = this.seq): readonly SessionEvent[];\n ownEvents(): readonly SessionEvent[];\n isOwnSeq(seq: SessionSeq): boolean;\n get seq(): SessionLogOffset;\n append<T extends SessionEventType>(type: T, data: SessionEventMap[T], ...opts: T extends SurfaceEventType ? [opts: SurfaceIntent<T>] : []): SessionEvent<T>;\n requestHeader(): EpochHeader | undefined;\n requestContext(): RequestContext | undefined;\n toolHistory(): ToolHistory;\n deriveMessages(): Message[];\n deriveEventMessage(event: SessionEvent): Message | null;\n}"
|
|
424
480
|
},
|
|
425
481
|
{
|
|
426
482
|
"name": "SessionEvent",
|
|
@@ -428,7 +484,7 @@ export const TYPERT = {
|
|
|
428
484
|
},
|
|
429
485
|
{
|
|
430
486
|
"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 '
|
|
487
|
+
"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 'schedule/change': ScheduleChange;\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
488
|
},
|
|
433
489
|
{
|
|
434
490
|
"name": "SessionEventType",
|
|
@@ -538,42 +594,6 @@ export const TYPERT = {
|
|
|
538
594
|
"name": "SystemPromptUpdate",
|
|
539
595
|
"declaration": "export type SystemPromptUpdate = 'in-history';"
|
|
540
596
|
},
|
|
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
597
|
{
|
|
578
598
|
"name": "TextBlock",
|
|
579
599
|
"declaration": "export interface TextBlock {\n type: 'text';\n text: string;\n}"
|
|
@@ -598,6 +618,10 @@ export const TYPERT = {
|
|
|
598
618
|
"name": "ToolCallId",
|
|
599
619
|
"declaration": "export type ToolCallId = Branded<'ToolCallId'>;"
|
|
600
620
|
},
|
|
621
|
+
{
|
|
622
|
+
"name": "ToolHistory",
|
|
623
|
+
"declaration": "export interface ToolHistory {\n readonly tools: readonly ToolSchema[];\n readonly updates: readonly { readonly messageId: MessageId; readonly additions: readonly ToolSchema[]; }[];\n}"
|
|
624
|
+
},
|
|
601
625
|
{
|
|
602
626
|
"name": "ToolMessageSource",
|
|
603
627
|
"declaration": "export interface ToolMessageSource {\n kind: 'tool';\n callId: ToolCallId;\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.2",
|
|
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-
|
|
49
|
-
"@deepseek-ai/
|
|
50
|
-
"@deepseek-ai/
|
|
48
|
+
"@deepseek-ai/dsh-util-values": "0.1.7-rc.2",
|
|
49
|
+
"@deepseek-ai/dsh-brand": "0.1.7-rc.2",
|
|
50
|
+
"@deepseek-ai/schemastery": "~3.18.4"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
|
-
"@deepseek-ai/dsh-compaction": "0.1.7-alpha.2",
|
|
54
53
|
"@deepseek-ai/cordis": "~4.0.4",
|
|
55
|
-
"@deepseek-ai/dsh-
|
|
56
|
-
"@deepseek-ai/dsh-
|
|
57
|
-
"@deepseek-ai/dsh-
|
|
58
|
-
"@deepseek-ai/dsh-session
|
|
59
|
-
"@deepseek-ai/dsh-session-projection
|
|
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-
|
|
66
|
-
"@deepseek-ai/dsh-
|
|
54
|
+
"@deepseek-ai/dsh-agent": "0.1.7-rc.2",
|
|
55
|
+
"@deepseek-ai/dsh-compaction": "0.1.7-rc.2",
|
|
56
|
+
"@deepseek-ai/dsh-output-retention": "0.1.7-rc.2",
|
|
57
|
+
"@deepseek-ai/dsh-session": "0.1.7-rc.2",
|
|
58
|
+
"@deepseek-ai/dsh-session-projection": "0.1.7-rc.2",
|
|
59
|
+
"@deepseek-ai/dsh-session-projection-cache": "0.1.7-rc.2",
|
|
60
|
+
"@deepseek-ai/dsh-llm": "0.1.7-rc.2",
|
|
61
|
+
"@deepseek-ai/dsh-session-query": "0.1.7-rc.2",
|
|
62
|
+
"@deepseek-ai/dsh-session-title": "0.1.7-rc.2",
|
|
63
|
+
"@deepseek-ai/dsh-spill": "0.1.7-rc.2",
|
|
64
|
+
"@deepseek-ai/dsh-subagent": "0.1.7-rc.2",
|
|
65
|
+
"@deepseek-ai/dsh-system-prompt": "0.1.7-rc.2",
|
|
66
|
+
"@deepseek-ai/dsh-typert-protocol": "0.1.7-rc.2"
|
|
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-projection": "0.1.7-
|
|
86
|
-
"@deepseek-ai/dsh-session": "0.1.7-
|
|
87
|
-
"@deepseek-ai/dsh-session-
|
|
88
|
-
"@deepseek-ai/dsh-session
|
|
89
|
-
"@deepseek-ai/dsh-session-query-sqlite": "0.1.7-
|
|
90
|
-
"@deepseek-ai/dsh-
|
|
91
|
-
"@deepseek-ai/dsh-spill": "0.1.7-
|
|
92
|
-
"@deepseek-ai/dsh-
|
|
93
|
-
"@deepseek-ai/dsh-spill-local": "0.1.7-
|
|
94
|
-
"@deepseek-ai/dsh-
|
|
95
|
-
"@deepseek-ai/dsh-
|
|
96
|
-
"@deepseek-ai/dsh-tools": "0.1.7-
|
|
97
|
-
"@deepseek-ai/dsh-typert-protocol": "0.1.7-
|
|
80
|
+
"@deepseek-ai/dsh-agent": "0.1.7-rc.2",
|
|
81
|
+
"@deepseek-ai/dsh-compaction": "0.1.7-rc.2",
|
|
82
|
+
"@deepseek-ai/dsh-fs-local": "0.1.7-rc.2",
|
|
83
|
+
"@deepseek-ai/dsh-llm": "0.1.7-rc.2",
|
|
84
|
+
"@deepseek-ai/dsh-output-retention": "0.1.7-rc.2",
|
|
85
|
+
"@deepseek-ai/dsh-session-projection": "0.1.7-rc.2",
|
|
86
|
+
"@deepseek-ai/dsh-session-projection-cache": "0.1.7-rc.2",
|
|
87
|
+
"@deepseek-ai/dsh-session-query": "0.1.7-rc.2",
|
|
88
|
+
"@deepseek-ai/dsh-session": "0.1.7-rc.2",
|
|
89
|
+
"@deepseek-ai/dsh-session-query-sqlite": "0.1.7-rc.2",
|
|
90
|
+
"@deepseek-ai/dsh-subagent": "0.1.7-rc.2",
|
|
91
|
+
"@deepseek-ai/dsh-spill": "0.1.7-rc.2",
|
|
92
|
+
"@deepseek-ai/dsh-session-title": "0.1.7-rc.2",
|
|
93
|
+
"@deepseek-ai/dsh-spill-local": "0.1.7-rc.2",
|
|
94
|
+
"@deepseek-ai/dsh-tool-fs": "0.1.7-rc.2",
|
|
95
|
+
"@deepseek-ai/dsh-system-prompt": "0.1.7-rc.2",
|
|
96
|
+
"@deepseek-ai/dsh-tools": "0.1.7-rc.2",
|
|
97
|
+
"@deepseek-ai/dsh-typert-protocol": "0.1.7-rc.2"
|
|
98
98
|
}
|
|
99
99
|
}
|