@deepseek-ai/dsh-cordis-host-runner 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 +126 -78
- package/package.json +17 -17
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/extensions/cordis-host-runner/README.md
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
/:
|
|
6
|
+
en: ac7eacf5f9b1e727
|
|
7
|
+
zh: 61461cb68f91fcce
|
|
8
|
+
/deepseek-ai-dsh-cordis-host-runner:
|
|
9
|
+
en: ac416c2eb5e0a00f
|
|
10
|
+
zh: 924964cf4466b874
|
|
11
|
+
/deepseek-ai-dsh-cordis-host-runner/summary:
|
|
12
|
+
en: 8ff708e868c265c4
|
|
13
|
+
zh: 9b727e6b7a15fa64
|
|
14
|
+
/deepseek-ai-dsh-cordis-host-runner/table-of-contents:
|
|
15
|
+
en: d152484eb41ac6b4
|
|
16
|
+
zh: 09388d293f9be9cb
|
|
17
|
+
/deepseek-ai-dsh-cordis-host-runner/use-this-package:
|
|
18
|
+
en: bdaba8036acf80c9
|
|
19
|
+
zh: 2dd8f972c3023a8a
|
|
20
|
+
/deepseek-ai-dsh-cordis-host-runner/use-this-package/minimal-configuration:
|
|
21
|
+
en: 0be8b7f1580ca751
|
|
22
|
+
zh: 984c4757e9d6e094
|
|
23
|
+
/deepseek-ai-dsh-cordis-host-runner/use-this-package/what-a-run-does:
|
|
24
|
+
en: a3c86c081974a710
|
|
25
|
+
zh: 180e1b7824c070d4
|
|
26
|
+
/deepseek-ai-dsh-cordis-host-runner/use-this-package/what-happens-to-definitions:
|
|
27
|
+
en: d1a8777f171d22bb
|
|
28
|
+
zh: 7f6aa4c2680557b1
|
|
29
|
+
/deepseek-ai-dsh-cordis-host-runner/use-this-package/trust-stance:
|
|
30
|
+
en: 9098942013393325
|
|
31
|
+
zh: 282917313e96a2d3
|
|
32
|
+
/deepseek-ai-dsh-cordis-host-runner/understand-the-implementation:
|
|
33
|
+
en: b0a536c0d00cbdb8
|
|
34
|
+
zh: 08e5d813aa6a612a
|
|
35
|
+
/deepseek-ai-dsh-cordis-host-runner/understand-the-implementation/design-philosophy:
|
|
36
|
+
en: 2193b1c446b388fc
|
|
37
|
+
zh: 6173e0e3e2df6812
|
|
38
|
+
/deepseek-ai-dsh-cordis-host-runner/understand-the-implementation/source-map:
|
|
39
|
+
en: f567eacc1072b96c
|
|
40
|
+
zh: 7f50499d9740f802
|
|
41
|
+
/deepseek-ai-dsh-cordis-host-runner/understand-the-implementation/how-a-run-flows:
|
|
42
|
+
en: 40d63d9a75d233e6
|
|
43
|
+
zh: 96954bf346c6d9e6
|
|
44
|
+
/deepseek-ai-dsh-cordis-host-runner/further-exploration:
|
|
45
|
+
en: 6f2dabcc9d095569
|
|
46
|
+
zh: 8df32d4b138ff7c7
|
|
47
|
+
/deepseek-ai-dsh-cordis-host-runner/model-experience:
|
|
48
|
+
en: 215e7ba838619b7b
|
|
49
|
+
zh: a311da3843709f90
|
|
50
|
+
/deepseek-ai-dsh-cordis-host-runner/model-experience/run-outcomes-refusals-and-diagnostics-relayed-to-the-owning-session:
|
|
51
|
+
en: f53130bb645f50df
|
|
52
|
+
zh: 603361c566527789
|
|
53
|
+
/deepseek-ai-dsh-cordis-host-runner/model-experience/run-outcomes-refusals-and-diagnostics-relayed-to-the-owning-session/what-the-model-sees:
|
|
54
|
+
en: 743dbef78fa3a8ad
|
|
55
|
+
zh: 2aa4e404e908cf22
|
|
56
|
+
/deepseek-ai-dsh-cordis-host-runner/model-experience/run-outcomes-refusals-and-diagnostics-relayed-to-the-owning-session/token-effect:
|
|
57
|
+
en: c7ef63dd8179a97e
|
|
58
|
+
zh: e66545088d00956a
|
|
59
|
+
/deepseek-ai-dsh-cordis-host-runner/model-experience/run-outcomes-refusals-and-diagnostics-relayed-to-the-owning-session/kv-cache-effect:
|
|
60
|
+
en: bbc4338c3035757a
|
|
61
|
+
zh: f51f4848786d5606
|
|
62
|
+
/deepseek-ai-dsh-cordis-host-runner/known-limitations-and-deferred-work:
|
|
63
|
+
en: 1f10688ae249a077
|
|
64
|
+
zh: ab2ff597e1769b81
|
|
65
|
+
/deepseek-ai-dsh-cordis-host-runner/known-limitations-and-deferred-work/dev-note:
|
|
66
|
+
en: 8111315620c52980
|
|
67
|
+
zh: 261bf47eecf96bad
|
package/lib/typert.host.js
CHANGED
|
@@ -864,6 +864,10 @@ export const TYPERT = {
|
|
|
864
864
|
}
|
|
865
865
|
],
|
|
866
866
|
"types": [
|
|
867
|
+
{
|
|
868
|
+
"name": "AfterScheduleRecord",
|
|
869
|
+
"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}"
|
|
870
|
+
},
|
|
867
871
|
{
|
|
868
872
|
"name": "Agent",
|
|
869
873
|
"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}"
|
|
@@ -908,6 +912,10 @@ export const TYPERT = {
|
|
|
908
912
|
"name": "AssistantStreamRecord",
|
|
909
913
|
"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; };"
|
|
910
914
|
},
|
|
915
|
+
{
|
|
916
|
+
"name": "AtScheduleRecord",
|
|
917
|
+
"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}"
|
|
918
|
+
},
|
|
911
919
|
{
|
|
912
920
|
"name": "AttachmentId",
|
|
913
921
|
"declaration": "export type AttachmentId = Branded<'AttachmentId'>;"
|
|
@@ -1004,6 +1012,14 @@ export const TYPERT = {
|
|
|
1004
1012
|
"name": "EpochHeader",
|
|
1005
1013
|
"declaration": "export interface EpochHeader {\n config: LlmCallConfig;\n adapterDefaults?: LlmCallConfigAdapterDefaults;\n tools?: ToolSchema[];\n system?: never;\n}"
|
|
1006
1014
|
},
|
|
1015
|
+
{
|
|
1016
|
+
"name": "EveryScheduleDispatchChange",
|
|
1017
|
+
"declaration": "export interface EveryScheduleDispatchChange {\n readonly version: 1;\n readonly operation: 'dispatch';\n readonly id: ScheduleId;\n readonly acceptedAt: string;\n}"
|
|
1018
|
+
},
|
|
1019
|
+
{
|
|
1020
|
+
"name": "EveryScheduleRecord",
|
|
1021
|
+
"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}"
|
|
1022
|
+
},
|
|
1007
1023
|
{
|
|
1008
1024
|
"name": "FeedbackCategory",
|
|
1009
1025
|
"declaration": "export type FeedbackCategory = 'task-result' | 'instruction-following' | 'product-interaction' | 'service-stability' | 'resource-cost' | 'security-privacy-permission' | 'other';"
|
|
@@ -1108,6 +1124,22 @@ export const TYPERT = {
|
|
|
1108
1124
|
"name": "KnownCatalogMode",
|
|
1109
1125
|
"declaration": "export type KnownCatalogMode = { readonly mode: 'one-shot'; readonly label?: string; } | { readonly mode: 'continuable'; readonly label: string; };"
|
|
1110
1126
|
},
|
|
1127
|
+
{
|
|
1128
|
+
"name": "LegacyAfterScheduleRecord",
|
|
1129
|
+
"declaration": "export interface LegacyAfterScheduleRecord extends Omit<AfterScheduleRecord, 'title'> {\n readonly title?: string;\n}"
|
|
1130
|
+
},
|
|
1131
|
+
{
|
|
1132
|
+
"name": "LegacyAtScheduleRecord",
|
|
1133
|
+
"declaration": "export interface LegacyAtScheduleRecord extends Omit<AtScheduleRecord, 'title'> {\n readonly title?: string;\n}"
|
|
1134
|
+
},
|
|
1135
|
+
{
|
|
1136
|
+
"name": "LegacyEveryScheduleRecord",
|
|
1137
|
+
"declaration": "export interface LegacyEveryScheduleRecord extends Omit<EveryScheduleRecord, 'title'> {\n readonly title?: string;\n}"
|
|
1138
|
+
},
|
|
1139
|
+
{
|
|
1140
|
+
"name": "LegacyScheduleRecord",
|
|
1141
|
+
"declaration": "export type LegacyScheduleRecord = LegacyAfterScheduleRecord | LegacyAtScheduleRecord | LegacyEveryScheduleRecord;"
|
|
1142
|
+
},
|
|
1111
1143
|
{
|
|
1112
1144
|
"name": "LlmCallConfig",
|
|
1113
1145
|
"declaration": "export interface LlmCallConfig {\n provider: string;\n model: string;\n reasoningEffort?: ReasoningEffortId;\n temperature?: number;\n maxTokens?: number;\n stop?: string[];\n}"
|
|
@@ -1162,7 +1194,7 @@ export const TYPERT = {
|
|
|
1162
1194
|
},
|
|
1163
1195
|
{
|
|
1164
1196
|
"name": "MessageSourceMap",
|
|
1165
|
-
"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
|
|
1197
|
+
"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}"
|
|
1166
1198
|
},
|
|
1167
1199
|
{
|
|
1168
1200
|
"name": "ModelMessageSource",
|
|
@@ -1172,6 +1204,10 @@ export const TYPERT = {
|
|
|
1172
1204
|
"name": "ModelSelection",
|
|
1173
1205
|
"declaration": "export interface ModelSelection {\n readonly provider: string;\n readonly model: string;\n readonly reasoningEffort?: string;\n}"
|
|
1174
1206
|
},
|
|
1207
|
+
{
|
|
1208
|
+
"name": "OneShotScheduleDispatchChange",
|
|
1209
|
+
"declaration": "export interface OneShotScheduleDispatchChange {\n readonly version: 1;\n readonly operation: 'dispatch';\n readonly id: ScheduleId;\n}"
|
|
1210
|
+
},
|
|
1175
1211
|
{
|
|
1176
1212
|
"name": "OneShotSubagentDescriptorData",
|
|
1177
1213
|
"declaration": "export interface OneShotSubagentDescriptorData extends SubagentDescriptorBase {\n readonly mode: 'one-shot';\n readonly label?: string;\n}"
|
|
@@ -1216,9 +1252,29 @@ export const TYPERT = {
|
|
|
1216
1252
|
"name": "SandboxMode",
|
|
1217
1253
|
"declaration": "export type SandboxMode = 'read-only' | 'workspace-write' | 'danger-full-access';"
|
|
1218
1254
|
},
|
|
1255
|
+
{
|
|
1256
|
+
"name": "ScheduleChange",
|
|
1257
|
+
"declaration": "export type ScheduleChange = ScheduleCreateChange | ScheduleDeleteChange | ScheduleDispatchChange;"
|
|
1258
|
+
},
|
|
1259
|
+
{
|
|
1260
|
+
"name": "ScheduleCreateChange",
|
|
1261
|
+
"declaration": "export interface ScheduleCreateChange {\n readonly version: 1;\n readonly operation: 'create';\n readonly schedule: LegacyScheduleRecord;\n}"
|
|
1262
|
+
},
|
|
1263
|
+
{
|
|
1264
|
+
"name": "ScheduleDeleteChange",
|
|
1265
|
+
"declaration": "export interface ScheduleDeleteChange {\n readonly version: 1;\n readonly operation: 'delete';\n readonly id: ScheduleId;\n}"
|
|
1266
|
+
},
|
|
1267
|
+
{
|
|
1268
|
+
"name": "ScheduleDispatchChange",
|
|
1269
|
+
"declaration": "export type ScheduleDispatchChange = OneShotScheduleDispatchChange | EveryScheduleDispatchChange;"
|
|
1270
|
+
},
|
|
1271
|
+
{
|
|
1272
|
+
"name": "ScheduleId",
|
|
1273
|
+
"declaration": "export type ScheduleId = Branded<'ScheduleId'>;"
|
|
1274
|
+
},
|
|
1219
1275
|
{
|
|
1220
1276
|
"name": "Session",
|
|
1221
|
-
"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}"
|
|
1277
|
+
"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}"
|
|
1222
1278
|
},
|
|
1223
1279
|
{
|
|
1224
1280
|
"name": "SessionEvent",
|
|
@@ -1226,7 +1282,7 @@ export const TYPERT = {
|
|
|
1226
1282
|
},
|
|
1227
1283
|
{
|
|
1228
1284
|
"name": "SessionEventMap",
|
|
1229
|
-
"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 '
|
|
1285
|
+
"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}"
|
|
1230
1286
|
},
|
|
1231
1287
|
{
|
|
1232
1288
|
"name": "SessionEventType",
|
|
@@ -1324,42 +1380,6 @@ export const TYPERT = {
|
|
|
1324
1380
|
"name": "SystemPromptUpdate",
|
|
1325
1381
|
"declaration": "export type SystemPromptUpdate = 'in-history';"
|
|
1326
1382
|
},
|
|
1327
|
-
{
|
|
1328
|
-
"name": "TeamId",
|
|
1329
|
-
"declaration": "export type TeamId = Branded<'TeamId'>;"
|
|
1330
|
-
},
|
|
1331
|
-
{
|
|
1332
|
-
"name": "TeamMemberPhase",
|
|
1333
|
-
"declaration": "export type TeamMemberPhase = 'provisioning' | 'active' | 'failed';"
|
|
1334
|
-
},
|
|
1335
|
-
{
|
|
1336
|
-
"name": "TeamMemberSnapshot",
|
|
1337
|
-
"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}"
|
|
1338
|
-
},
|
|
1339
|
-
{
|
|
1340
|
-
"name": "TeamMessageId",
|
|
1341
|
-
"declaration": "export type TeamMessageId = Branded<'TeamMessageId'>;"
|
|
1342
|
-
},
|
|
1343
|
-
{
|
|
1344
|
-
"name": "TeamMessageSnapshot",
|
|
1345
|
-
"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}"
|
|
1346
|
-
},
|
|
1347
|
-
{
|
|
1348
|
-
"name": "TeamMessageSource",
|
|
1349
|
-
"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}"
|
|
1350
|
-
},
|
|
1351
|
-
{
|
|
1352
|
-
"name": "TeamTaskId",
|
|
1353
|
-
"declaration": "export type TeamTaskId = Branded<'TeamTaskId'>;"
|
|
1354
|
-
},
|
|
1355
|
-
{
|
|
1356
|
-
"name": "TeamTaskSnapshot",
|
|
1357
|
-
"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}"
|
|
1358
|
-
},
|
|
1359
|
-
{
|
|
1360
|
-
"name": "TeamTaskStatus",
|
|
1361
|
-
"declaration": "export type TeamTaskStatus = 'pending' | 'in_progress' | 'completed' | 'deleted';"
|
|
1362
|
-
},
|
|
1363
1383
|
{
|
|
1364
1384
|
"name": "TextBlock",
|
|
1365
1385
|
"declaration": "export interface TextBlock {\n type: 'text';\n text: string;\n}"
|
|
@@ -1384,6 +1404,10 @@ export const TYPERT = {
|
|
|
1384
1404
|
"name": "ToolCallId",
|
|
1385
1405
|
"declaration": "export type ToolCallId = Branded<'ToolCallId'>;"
|
|
1386
1406
|
},
|
|
1407
|
+
{
|
|
1408
|
+
"name": "ToolHistory",
|
|
1409
|
+
"declaration": "export interface ToolHistory {\n readonly tools: readonly ToolSchema[];\n readonly updates: readonly { readonly messageId: MessageId; readonly additions: readonly ToolSchema[]; }[];\n}"
|
|
1410
|
+
},
|
|
1387
1411
|
{
|
|
1388
1412
|
"name": "ToolMessageSource",
|
|
1389
1413
|
"declaration": "export interface ToolMessageSource {\n kind: 'tool';\n callId: ToolCallId;\n}"
|
|
@@ -1579,6 +1603,10 @@ export const TYPERT = {
|
|
|
1579
1603
|
}
|
|
1580
1604
|
],
|
|
1581
1605
|
"types": [
|
|
1606
|
+
{
|
|
1607
|
+
"name": "AfterScheduleRecord",
|
|
1608
|
+
"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}"
|
|
1609
|
+
},
|
|
1582
1610
|
{
|
|
1583
1611
|
"name": "Agent",
|
|
1584
1612
|
"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}"
|
|
@@ -1627,6 +1655,10 @@ export const TYPERT = {
|
|
|
1627
1655
|
"name": "AssistantStreamRecord",
|
|
1628
1656
|
"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; };"
|
|
1629
1657
|
},
|
|
1658
|
+
{
|
|
1659
|
+
"name": "AtScheduleRecord",
|
|
1660
|
+
"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}"
|
|
1661
|
+
},
|
|
1630
1662
|
{
|
|
1631
1663
|
"name": "AttachmentId",
|
|
1632
1664
|
"declaration": "export type AttachmentId = Branded<'AttachmentId'>;"
|
|
@@ -1819,6 +1851,14 @@ export const TYPERT = {
|
|
|
1819
1851
|
"name": "EpochHeader",
|
|
1820
1852
|
"declaration": "export interface EpochHeader {\n config: LlmCallConfig;\n adapterDefaults?: LlmCallConfigAdapterDefaults;\n tools?: ToolSchema[];\n system?: never;\n}"
|
|
1821
1853
|
},
|
|
1854
|
+
{
|
|
1855
|
+
"name": "EveryScheduleDispatchChange",
|
|
1856
|
+
"declaration": "export interface EveryScheduleDispatchChange {\n readonly version: 1;\n readonly operation: 'dispatch';\n readonly id: ScheduleId;\n readonly acceptedAt: string;\n}"
|
|
1857
|
+
},
|
|
1858
|
+
{
|
|
1859
|
+
"name": "EveryScheduleRecord",
|
|
1860
|
+
"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}"
|
|
1861
|
+
},
|
|
1822
1862
|
{
|
|
1823
1863
|
"name": "FeedbackCategory",
|
|
1824
1864
|
"declaration": "export type FeedbackCategory = 'task-result' | 'instruction-following' | 'product-interaction' | 'service-stability' | 'resource-cost' | 'security-privacy-permission' | 'other';"
|
|
@@ -1915,6 +1955,22 @@ export const TYPERT = {
|
|
|
1915
1955
|
"name": "KnownCatalogMode",
|
|
1916
1956
|
"declaration": "export type KnownCatalogMode = { readonly mode: 'one-shot'; readonly label?: string; } | { readonly mode: 'continuable'; readonly label: string; };"
|
|
1917
1957
|
},
|
|
1958
|
+
{
|
|
1959
|
+
"name": "LegacyAfterScheduleRecord",
|
|
1960
|
+
"declaration": "export interface LegacyAfterScheduleRecord extends Omit<AfterScheduleRecord, 'title'> {\n readonly title?: string;\n}"
|
|
1961
|
+
},
|
|
1962
|
+
{
|
|
1963
|
+
"name": "LegacyAtScheduleRecord",
|
|
1964
|
+
"declaration": "export interface LegacyAtScheduleRecord extends Omit<AtScheduleRecord, 'title'> {\n readonly title?: string;\n}"
|
|
1965
|
+
},
|
|
1966
|
+
{
|
|
1967
|
+
"name": "LegacyEveryScheduleRecord",
|
|
1968
|
+
"declaration": "export interface LegacyEveryScheduleRecord extends Omit<EveryScheduleRecord, 'title'> {\n readonly title?: string;\n}"
|
|
1969
|
+
},
|
|
1970
|
+
{
|
|
1971
|
+
"name": "LegacyScheduleRecord",
|
|
1972
|
+
"declaration": "export type LegacyScheduleRecord = LegacyAfterScheduleRecord | LegacyAtScheduleRecord | LegacyEveryScheduleRecord;"
|
|
1973
|
+
},
|
|
1918
1974
|
{
|
|
1919
1975
|
"name": "LlmCallConfig",
|
|
1920
1976
|
"declaration": "export interface LlmCallConfig {\n provider: string;\n model: string;\n reasoningEffort?: ReasoningEffortId;\n temperature?: number;\n maxTokens?: number;\n stop?: string[];\n}"
|
|
@@ -1969,7 +2025,7 @@ export const TYPERT = {
|
|
|
1969
2025
|
},
|
|
1970
2026
|
{
|
|
1971
2027
|
"name": "MessageSourceMap",
|
|
1972
|
-
"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
|
|
2028
|
+
"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}"
|
|
1973
2029
|
},
|
|
1974
2030
|
{
|
|
1975
2031
|
"name": "ModelMessageSource",
|
|
@@ -1979,6 +2035,10 @@ export const TYPERT = {
|
|
|
1979
2035
|
"name": "ModelSelection",
|
|
1980
2036
|
"declaration": "export interface ModelSelection {\n readonly provider: string;\n readonly model: string;\n readonly reasoningEffort?: string;\n}"
|
|
1981
2037
|
},
|
|
2038
|
+
{
|
|
2039
|
+
"name": "OneShotScheduleDispatchChange",
|
|
2040
|
+
"declaration": "export interface OneShotScheduleDispatchChange {\n readonly version: 1;\n readonly operation: 'dispatch';\n readonly id: ScheduleId;\n}"
|
|
2041
|
+
},
|
|
1982
2042
|
{
|
|
1983
2043
|
"name": "OneShotSubagentDescriptorData",
|
|
1984
2044
|
"declaration": "export interface OneShotSubagentDescriptorData extends SubagentDescriptorBase {\n readonly mode: 'one-shot';\n readonly label?: string;\n}"
|
|
@@ -2023,9 +2083,29 @@ export const TYPERT = {
|
|
|
2023
2083
|
"name": "SandboxMode",
|
|
2024
2084
|
"declaration": "export type SandboxMode = 'read-only' | 'workspace-write' | 'danger-full-access';"
|
|
2025
2085
|
},
|
|
2086
|
+
{
|
|
2087
|
+
"name": "ScheduleChange",
|
|
2088
|
+
"declaration": "export type ScheduleChange = ScheduleCreateChange | ScheduleDeleteChange | ScheduleDispatchChange;"
|
|
2089
|
+
},
|
|
2090
|
+
{
|
|
2091
|
+
"name": "ScheduleCreateChange",
|
|
2092
|
+
"declaration": "export interface ScheduleCreateChange {\n readonly version: 1;\n readonly operation: 'create';\n readonly schedule: LegacyScheduleRecord;\n}"
|
|
2093
|
+
},
|
|
2094
|
+
{
|
|
2095
|
+
"name": "ScheduleDeleteChange",
|
|
2096
|
+
"declaration": "export interface ScheduleDeleteChange {\n readonly version: 1;\n readonly operation: 'delete';\n readonly id: ScheduleId;\n}"
|
|
2097
|
+
},
|
|
2098
|
+
{
|
|
2099
|
+
"name": "ScheduleDispatchChange",
|
|
2100
|
+
"declaration": "export type ScheduleDispatchChange = OneShotScheduleDispatchChange | EveryScheduleDispatchChange;"
|
|
2101
|
+
},
|
|
2102
|
+
{
|
|
2103
|
+
"name": "ScheduleId",
|
|
2104
|
+
"declaration": "export type ScheduleId = Branded<'ScheduleId'>;"
|
|
2105
|
+
},
|
|
2026
2106
|
{
|
|
2027
2107
|
"name": "Session",
|
|
2028
|
-
"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}"
|
|
2108
|
+
"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}"
|
|
2029
2109
|
},
|
|
2030
2110
|
{
|
|
2031
2111
|
"name": "SessionEvent",
|
|
@@ -2033,7 +2113,7 @@ export const TYPERT = {
|
|
|
2033
2113
|
},
|
|
2034
2114
|
{
|
|
2035
2115
|
"name": "SessionEventMap",
|
|
2036
|
-
"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 '
|
|
2116
|
+
"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}"
|
|
2037
2117
|
},
|
|
2038
2118
|
{
|
|
2039
2119
|
"name": "SessionEventType",
|
|
@@ -2131,42 +2211,6 @@ export const TYPERT = {
|
|
|
2131
2211
|
"name": "SystemPromptUpdate",
|
|
2132
2212
|
"declaration": "export type SystemPromptUpdate = 'in-history';"
|
|
2133
2213
|
},
|
|
2134
|
-
{
|
|
2135
|
-
"name": "TeamId",
|
|
2136
|
-
"declaration": "export type TeamId = Branded<'TeamId'>;"
|
|
2137
|
-
},
|
|
2138
|
-
{
|
|
2139
|
-
"name": "TeamMemberPhase",
|
|
2140
|
-
"declaration": "export type TeamMemberPhase = 'provisioning' | 'active' | 'failed';"
|
|
2141
|
-
},
|
|
2142
|
-
{
|
|
2143
|
-
"name": "TeamMemberSnapshot",
|
|
2144
|
-
"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}"
|
|
2145
|
-
},
|
|
2146
|
-
{
|
|
2147
|
-
"name": "TeamMessageId",
|
|
2148
|
-
"declaration": "export type TeamMessageId = Branded<'TeamMessageId'>;"
|
|
2149
|
-
},
|
|
2150
|
-
{
|
|
2151
|
-
"name": "TeamMessageSnapshot",
|
|
2152
|
-
"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}"
|
|
2153
|
-
},
|
|
2154
|
-
{
|
|
2155
|
-
"name": "TeamMessageSource",
|
|
2156
|
-
"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}"
|
|
2157
|
-
},
|
|
2158
|
-
{
|
|
2159
|
-
"name": "TeamTaskId",
|
|
2160
|
-
"declaration": "export type TeamTaskId = Branded<'TeamTaskId'>;"
|
|
2161
|
-
},
|
|
2162
|
-
{
|
|
2163
|
-
"name": "TeamTaskSnapshot",
|
|
2164
|
-
"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}"
|
|
2165
|
-
},
|
|
2166
|
-
{
|
|
2167
|
-
"name": "TeamTaskStatus",
|
|
2168
|
-
"declaration": "export type TeamTaskStatus = 'pending' | 'in_progress' | 'completed' | 'deleted';"
|
|
2169
|
-
},
|
|
2170
2214
|
{
|
|
2171
2215
|
"name": "TextBlock",
|
|
2172
2216
|
"declaration": "export interface TextBlock {\n type: 'text';\n text: string;\n}"
|
|
@@ -2191,6 +2235,10 @@ export const TYPERT = {
|
|
|
2191
2235
|
"name": "ToolCallId",
|
|
2192
2236
|
"declaration": "export type ToolCallId = Branded<'ToolCallId'>;"
|
|
2193
2237
|
},
|
|
2238
|
+
{
|
|
2239
|
+
"name": "ToolHistory",
|
|
2240
|
+
"declaration": "export interface ToolHistory {\n readonly tools: readonly ToolSchema[];\n readonly updates: readonly { readonly messageId: MessageId; readonly additions: readonly ToolSchema[]; }[];\n}"
|
|
2241
|
+
},
|
|
2194
2242
|
{
|
|
2195
2243
|
"name": "ToolMessageSource",
|
|
2196
2244
|
"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-cordis-host-runner",
|
|
3
3
|
"description": "Dynamic package definition registry, host-half sandbox lifecycle, and invoke handler table for model-mounted dual-half packages",
|
|
4
|
-
"version": "0.1.7-
|
|
4
|
+
"version": "0.1.7-rc.2",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -45,28 +45,28 @@
|
|
|
45
45
|
"license": "MIT",
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"zod": "^4.4.3",
|
|
48
|
-
"@deepseek-ai/
|
|
49
|
-
"@deepseek-ai/
|
|
48
|
+
"@deepseek-ai/schemastery": "~3.18.4",
|
|
49
|
+
"@deepseek-ai/dsh-util-values": "0.1.7-rc.2"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"@deepseek-ai/dsh-agent": "0.1.7-alpha.2",
|
|
53
|
-
"@deepseek-ai/dsh-brand": "0.1.7-alpha.2",
|
|
54
|
-
"@deepseek-ai/dsh-llm": "0.1.7-alpha.2",
|
|
55
|
-
"@deepseek-ai/dsh-scope": "0.1.7-alpha.2",
|
|
56
|
-
"@deepseek-ai/dsh-session": "0.1.7-alpha.2",
|
|
57
|
-
"@deepseek-ai/dsh-tools": "0.1.7-alpha.2",
|
|
58
52
|
"@deepseek-ai/cordis": "~4.0.4",
|
|
59
|
-
"@deepseek-ai/dsh-
|
|
53
|
+
"@deepseek-ai/dsh-agent": "0.1.7-rc.2",
|
|
54
|
+
"@deepseek-ai/dsh-llm": "0.1.7-rc.2",
|
|
55
|
+
"@deepseek-ai/dsh-brand": "0.1.7-rc.2",
|
|
56
|
+
"@deepseek-ai/dsh-session": "0.1.7-rc.2",
|
|
57
|
+
"@deepseek-ai/dsh-tools": "0.1.7-rc.2",
|
|
58
|
+
"@deepseek-ai/dsh-typert-protocol": "0.1.7-rc.2",
|
|
59
|
+
"@deepseek-ai/dsh-scope": "0.1.7-rc.2"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@deepseek-ai/cordis": "~4.0.4",
|
|
63
63
|
"@deepseek-ai/cordis-plugin-timer": "~1.1.6",
|
|
64
|
-
"@deepseek-ai/dsh-agent": "0.1.7-
|
|
65
|
-
"@deepseek-ai/dsh-brand": "0.1.7-
|
|
66
|
-
"@deepseek-ai/dsh-
|
|
67
|
-
"@deepseek-ai/dsh-
|
|
68
|
-
"@deepseek-ai/dsh-
|
|
69
|
-
"@deepseek-ai/dsh-
|
|
70
|
-
"@deepseek-ai/dsh-typert-protocol": "0.1.7-
|
|
64
|
+
"@deepseek-ai/dsh-agent": "0.1.7-rc.2",
|
|
65
|
+
"@deepseek-ai/dsh-brand": "0.1.7-rc.2",
|
|
66
|
+
"@deepseek-ai/dsh-scope": "0.1.7-rc.2",
|
|
67
|
+
"@deepseek-ai/dsh-session": "0.1.7-rc.2",
|
|
68
|
+
"@deepseek-ai/dsh-tools": "0.1.7-rc.2",
|
|
69
|
+
"@deepseek-ai/dsh-llm": "0.1.7-rc.2",
|
|
70
|
+
"@deepseek-ai/dsh-typert-protocol": "0.1.7-rc.2"
|
|
71
71
|
}
|
|
72
72
|
}
|