@deepseek-ai/dsh-api-session-controller 0.1.3-alpha.2 → 0.1.5-alpha.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 +2 -2
- package/README.md +12 -2
- package/README.zh.md +12 -2
- package/lib/client.js +248 -30
- package/lib/index.js +125 -31
- package/lib/typert.host.js +149 -58
- package/lib/typert.remote-client.js +74 -34
- package/lib/types/agent.js +6 -8
- package/lib/types/client/session-wire-event.d.ts +11 -0
- package/lib/types/client/session-wire-event.js +43 -0
- package/lib/types/client/transport.js +6 -0
- package/lib/types/commands.d.ts +1 -1
- package/lib/types/commands.js +14 -4
- package/lib/types/control.d.ts +0 -1
- package/lib/types/control.js +19 -22
- package/lib/types/index.d.ts +12 -0
- package/lib/types/index.js +18 -2
- package/lib/types/media-references.d.ts +16 -0
- package/lib/types/media-references.js +77 -0
- package/lib/types/types.d.ts +17 -7
- package/package.json +71 -64
package/lib/typert.host.js
CHANGED
|
@@ -99,6 +99,10 @@ const _deepseek_ai_dsh_api_session_controller_session_control_result$schema = z.
|
|
|
99
99
|
'projections': z.record(z.intersection(z.string(), z.unknown()), z.object({
|
|
100
100
|
'asOfSeq': z.number().readonly(),
|
|
101
101
|
'values': z.intersection(z.object({
|
|
102
|
+
'inbox': z.object({
|
|
103
|
+
'next-turn': z.array(z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema4)), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema4))])).readonly(),
|
|
104
|
+
'next-step': z.array(z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema4)), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema4))])).readonly(),
|
|
105
|
+
}).optional(),
|
|
102
106
|
'agentPreset': z.union([z.literal(null), z.string()]).optional(),
|
|
103
107
|
'title': z.union([z.literal(null), z.string()]).optional(),
|
|
104
108
|
'todos': z.union([z.literal(null), z.array(z.object({
|
|
@@ -129,6 +133,19 @@ const _deepseek_ai_dsh_api_session_controller_session_control_result$schema = z.
|
|
|
129
133
|
'reasoningEffort': z.string().readonly().optional(),
|
|
130
134
|
})]).readonly(),
|
|
131
135
|
}).optional(),
|
|
136
|
+
'subagentCatalog': z.array(z.union([z.intersection(z.object({
|
|
137
|
+
'id': z.intersection(z.string(), z.unknown()).readonly(),
|
|
138
|
+
'createdAt': z.number().readonly(),
|
|
139
|
+
}), z.object({
|
|
140
|
+
'mode': z.literal("one-shot").readonly(),
|
|
141
|
+
'label': z.string().readonly().optional(),
|
|
142
|
+
})), z.intersection(z.object({
|
|
143
|
+
'id': z.intersection(z.string(), z.unknown()).readonly(),
|
|
144
|
+
'createdAt': z.number().readonly(),
|
|
145
|
+
}), z.object({
|
|
146
|
+
'mode': z.literal("continuable").readonly(),
|
|
147
|
+
'label': z.string().readonly(),
|
|
148
|
+
}))])).optional(),
|
|
132
149
|
'subagentTiming': z.object({
|
|
133
150
|
'settledMs': z.number(),
|
|
134
151
|
'active': z.object({
|
|
@@ -227,12 +244,8 @@ const _deepseek_ai_dsh_api_session_controller_session_follow_result$schema = z.u
|
|
|
227
244
|
'time': z.number().readonly(),
|
|
228
245
|
'data': z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema3)), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema3))]).readonly(),
|
|
229
246
|
'ignorable': z.literal(true).readonly().optional(),
|
|
230
|
-
'sourceEventSeqs': z.
|
|
231
|
-
'surfaceOp': z.union([z.literal(
|
|
232
|
-
'op': z.literal("replace").readonly(),
|
|
233
|
-
'start': z.number().readonly(),
|
|
234
|
-
'end': z.number().readonly(),
|
|
235
|
-
})]).readonly().optional(),
|
|
247
|
+
'sourceEventSeqs': z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema3)), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema3))]).readonly().optional(),
|
|
248
|
+
'surfaceOp': z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema3)), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema3))]).readonly().optional(),
|
|
236
249
|
}).readonly(),
|
|
237
250
|
}), z.object({
|
|
238
251
|
'type': z.literal("snapshot").readonly(),
|
|
@@ -256,18 +269,18 @@ const _deepseek_ai_dsh_api_session_controller_session_follow_result$schema = z.u
|
|
|
256
269
|
'time': z.number().readonly(),
|
|
257
270
|
'data': z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema3)), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema3))]).readonly(),
|
|
258
271
|
'ignorable': z.literal(true).readonly().optional(),
|
|
259
|
-
'sourceEventSeqs': z.
|
|
260
|
-
'surfaceOp': z.union([z.literal(
|
|
261
|
-
'op': z.literal("replace").readonly(),
|
|
262
|
-
'start': z.number().readonly(),
|
|
263
|
-
'end': z.number().readonly(),
|
|
264
|
-
})]).readonly().optional(),
|
|
272
|
+
'sourceEventSeqs': z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema3)), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema3))]).readonly().optional(),
|
|
273
|
+
'surfaceOp': z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema3)), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema3))]).readonly().optional(),
|
|
265
274
|
}).readonly(),
|
|
266
275
|
})).readonly(),
|
|
267
276
|
'hasMore': z.boolean().readonly(),
|
|
268
277
|
'projections': z.object({
|
|
269
278
|
'asOfSeq': z.number().readonly(),
|
|
270
279
|
'values': z.intersection(z.object({
|
|
280
|
+
'inbox': z.object({
|
|
281
|
+
'next-turn': z.array(z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema3)), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema3))])).readonly(),
|
|
282
|
+
'next-step': z.array(z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema3)), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema3))])).readonly(),
|
|
283
|
+
}).optional(),
|
|
271
284
|
'agentPreset': z.union([z.literal(null), z.string()]).optional(),
|
|
272
285
|
'title': z.union([z.literal(null), z.string()]).optional(),
|
|
273
286
|
'todos': z.union([z.literal(null), z.array(z.object({
|
|
@@ -298,6 +311,19 @@ const _deepseek_ai_dsh_api_session_controller_session_follow_result$schema = z.u
|
|
|
298
311
|
'reasoningEffort': z.string().readonly().optional(),
|
|
299
312
|
})]).readonly(),
|
|
300
313
|
}).optional(),
|
|
314
|
+
'subagentCatalog': z.array(z.union([z.intersection(z.object({
|
|
315
|
+
'id': z.intersection(z.string(), z.unknown()).readonly(),
|
|
316
|
+
'createdAt': z.number().readonly(),
|
|
317
|
+
}), z.object({
|
|
318
|
+
'mode': z.literal("one-shot").readonly(),
|
|
319
|
+
'label': z.string().readonly().optional(),
|
|
320
|
+
})), z.intersection(z.object({
|
|
321
|
+
'id': z.intersection(z.string(), z.unknown()).readonly(),
|
|
322
|
+
'createdAt': z.number().readonly(),
|
|
323
|
+
}), z.object({
|
|
324
|
+
'mode': z.literal("continuable").readonly(),
|
|
325
|
+
'label': z.string().readonly(),
|
|
326
|
+
}))])).optional(),
|
|
301
327
|
'subagentTiming': z.object({
|
|
302
328
|
'settledMs': z.number(),
|
|
303
329
|
'active': z.object({
|
|
@@ -395,6 +421,10 @@ const _deepseek_ai_dsh_api_session_controller_session_list_result$schema = z.obj
|
|
|
395
421
|
'projections': z.object({
|
|
396
422
|
'asOfSeq': z.number().readonly(),
|
|
397
423
|
'values': z.intersection(z.object({
|
|
424
|
+
'inbox': z.object({
|
|
425
|
+
'next-turn': z.array(z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema)), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema))])).readonly(),
|
|
426
|
+
'next-step': z.array(z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema)), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema))])).readonly(),
|
|
427
|
+
}).optional(),
|
|
398
428
|
'agentPreset': z.union([z.literal(null), z.string()]).optional(),
|
|
399
429
|
'title': z.union([z.literal(null), z.string()]).optional(),
|
|
400
430
|
'todos': z.union([z.literal(null), z.array(z.object({
|
|
@@ -425,6 +455,19 @@ const _deepseek_ai_dsh_api_session_controller_session_list_result$schema = z.obj
|
|
|
425
455
|
'reasoningEffort': z.string().readonly().optional(),
|
|
426
456
|
})]).readonly(),
|
|
427
457
|
}).optional(),
|
|
458
|
+
'subagentCatalog': z.array(z.union([z.intersection(z.object({
|
|
459
|
+
'id': z.intersection(z.string(), z.unknown()).readonly(),
|
|
460
|
+
'createdAt': z.number().readonly(),
|
|
461
|
+
}), z.object({
|
|
462
|
+
'mode': z.literal("one-shot").readonly(),
|
|
463
|
+
'label': z.string().readonly().optional(),
|
|
464
|
+
})), z.intersection(z.object({
|
|
465
|
+
'id': z.intersection(z.string(), z.unknown()).readonly(),
|
|
466
|
+
'createdAt': z.number().readonly(),
|
|
467
|
+
}), z.object({
|
|
468
|
+
'mode': z.literal("continuable").readonly(),
|
|
469
|
+
'label': z.string().readonly(),
|
|
470
|
+
}))])).optional(),
|
|
428
471
|
'subagentTiming': z.object({
|
|
429
472
|
'settledMs': z.number(),
|
|
430
473
|
'active': z.object({
|
|
@@ -492,6 +535,7 @@ const _deepseek_ai_dsh_api_session_controller_session_modelCatalog_result$schema
|
|
|
492
535
|
})).readonly(),
|
|
493
536
|
})
|
|
494
537
|
const _deepseek_ai_dsh_api_session_controller_session_openWorkspacePath_parameter_0$schema = z.object({
|
|
538
|
+
'action': z.literal("reveal").readonly().optional(),
|
|
495
539
|
'path': z.string().readonly(),
|
|
496
540
|
})
|
|
497
541
|
const _deepseek_ai_dsh_api_session_controller_session_openWorkspacePath_result$schema = z.object({
|
|
@@ -520,12 +564,8 @@ const _deepseek_ai_dsh_api_session_controller_session_page_result$schema = z.obj
|
|
|
520
564
|
'time': z.number().readonly(),
|
|
521
565
|
'data': z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema2)), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema2))]).readonly(),
|
|
522
566
|
'ignorable': z.literal(true).readonly().optional(),
|
|
523
|
-
'sourceEventSeqs': z.
|
|
524
|
-
'surfaceOp': z.union([z.literal(
|
|
525
|
-
'op': z.literal("replace").readonly(),
|
|
526
|
-
'start': z.number().readonly(),
|
|
527
|
-
'end': z.number().readonly(),
|
|
528
|
-
})]).readonly().optional(),
|
|
567
|
+
'sourceEventSeqs': z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema2)), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema2))]).readonly().optional(),
|
|
568
|
+
'surfaceOp': z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema2)), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema2))]).readonly().optional(),
|
|
529
569
|
}).readonly(),
|
|
530
570
|
})).readonly(),
|
|
531
571
|
'hasMore': z.boolean().readonly(),
|
|
@@ -716,7 +756,7 @@ export const TYPERT = {
|
|
|
716
756
|
typeSymbol: '@deepseek-ai/dsh-api-session-controller/types#SessionAttachmentValue',
|
|
717
757
|
schema: _deepseek_ai_dsh_api_session_controller_session_attachment_result$schema,
|
|
718
758
|
},
|
|
719
|
-
sourceLocation: {"file":"packages/api/session-controller/src/index.ts","line":
|
|
759
|
+
sourceLocation: {"file":"packages/api/session-controller/src/index.ts","line":357,"column":3},
|
|
720
760
|
},
|
|
721
761
|
{
|
|
722
762
|
id: '@deepseek-ai/dsh-api-session-controller#session/cancel',
|
|
@@ -741,7 +781,7 @@ export const TYPERT = {
|
|
|
741
781
|
typeSymbol: '@deepseek-ai/dsh-api-session-controller/types#SessionCancelValue',
|
|
742
782
|
schema: _deepseek_ai_dsh_api_session_controller_session_cancel_result$schema,
|
|
743
783
|
},
|
|
744
|
-
sourceLocation: {"file":"packages/api/session-controller/src/index.ts","line":
|
|
784
|
+
sourceLocation: {"file":"packages/api/session-controller/src/index.ts","line":377,"column":3},
|
|
745
785
|
},
|
|
746
786
|
{
|
|
747
787
|
id: '@deepseek-ai/dsh-api-session-controller#session/canOpenWorkspacePath',
|
|
@@ -756,7 +796,7 @@ export const TYPERT = {
|
|
|
756
796
|
typeSymbol: '@deepseek-ai/dsh-api-session-controller#session/canOpenWorkspacePath:result',
|
|
757
797
|
schema: _deepseek_ai_dsh_api_session_controller_session_canOpenWorkspacePath_result$schema,
|
|
758
798
|
},
|
|
759
|
-
sourceLocation: {"file":"packages/api/session-controller/src/index.ts","line":
|
|
799
|
+
sourceLocation: {"file":"packages/api/session-controller/src/index.ts","line":272,"column":3},
|
|
760
800
|
},
|
|
761
801
|
{
|
|
762
802
|
id: '@deepseek-ai/dsh-api-session-controller#session/control',
|
|
@@ -773,7 +813,7 @@ export const TYPERT = {
|
|
|
773
813
|
typeSymbol: '@deepseek-ai/dsh-api-session-controller/types#SessionControlFrame',
|
|
774
814
|
schema: _deepseek_ai_dsh_api_session_controller_session_control_result$schema,
|
|
775
815
|
},
|
|
776
|
-
sourceLocation: {"file":"packages/api/session-controller/src/index.ts","line":
|
|
816
|
+
sourceLocation: {"file":"packages/api/session-controller/src/index.ts","line":410,"column":3},
|
|
777
817
|
},
|
|
778
818
|
{
|
|
779
819
|
id: '@deepseek-ai/dsh-api-session-controller#session/create',
|
|
@@ -798,7 +838,7 @@ export const TYPERT = {
|
|
|
798
838
|
typeSymbol: '@deepseek-ai/dsh-api-session-controller/types#SessionCreateValue',
|
|
799
839
|
schema: _deepseek_ai_dsh_api_session_controller_session_create_result$schema,
|
|
800
840
|
},
|
|
801
|
-
sourceLocation: {"file":"packages/api/session-controller/src/index.ts","line":
|
|
841
|
+
sourceLocation: {"file":"packages/api/session-controller/src/index.ts","line":244,"column":3},
|
|
802
842
|
},
|
|
803
843
|
{
|
|
804
844
|
id: '@deepseek-ai/dsh-api-session-controller#session/follow',
|
|
@@ -825,7 +865,7 @@ export const TYPERT = {
|
|
|
825
865
|
typeSymbol: '@deepseek-ai/dsh-api-session-controller/types#SessionFollowFrame',
|
|
826
866
|
schema: _deepseek_ai_dsh_api_session_controller_session_follow_result$schema,
|
|
827
867
|
},
|
|
828
|
-
sourceLocation: {"file":"packages/api/session-controller/src/index.ts","line":
|
|
868
|
+
sourceLocation: {"file":"packages/api/session-controller/src/index.ts","line":400,"column":3},
|
|
829
869
|
},
|
|
830
870
|
{
|
|
831
871
|
id: '@deepseek-ai/dsh-api-session-controller#session/fork',
|
|
@@ -850,7 +890,7 @@ export const TYPERT = {
|
|
|
850
890
|
typeSymbol: '@deepseek-ai/dsh-api-session-controller/types#SessionForkValue',
|
|
851
891
|
schema: _deepseek_ai_dsh_api_session_controller_session_fork_result$schema,
|
|
852
892
|
},
|
|
853
|
-
sourceLocation: {"file":"packages/api/session-controller/src/index.ts","line":
|
|
893
|
+
sourceLocation: {"file":"packages/api/session-controller/src/index.ts","line":335,"column":3},
|
|
854
894
|
},
|
|
855
895
|
{
|
|
856
896
|
id: '@deepseek-ai/dsh-api-session-controller#session/list',
|
|
@@ -876,7 +916,7 @@ export const TYPERT = {
|
|
|
876
916
|
typeSymbol: '@deepseek-ai/dsh-api-session-controller/types#SessionListValue',
|
|
877
917
|
schema: _deepseek_ai_dsh_api_session_controller_session_list_result$schema,
|
|
878
918
|
},
|
|
879
|
-
sourceLocation: {"file":"packages/api/session-controller/src/index.ts","line":
|
|
919
|
+
sourceLocation: {"file":"packages/api/session-controller/src/index.ts","line":223,"column":9},
|
|
880
920
|
},
|
|
881
921
|
{
|
|
882
922
|
id: '@deepseek-ai/dsh-api-session-controller#session/modelCatalog',
|
|
@@ -891,7 +931,7 @@ export const TYPERT = {
|
|
|
891
931
|
typeSymbol: '@deepseek-ai/dsh-api-session-controller/types#ModelCatalog',
|
|
892
932
|
schema: _deepseek_ai_dsh_api_session_controller_session_modelCatalog_result$schema,
|
|
893
933
|
},
|
|
894
|
-
sourceLocation: {"file":"packages/api/session-controller/src/index.ts","line":
|
|
934
|
+
sourceLocation: {"file":"packages/api/session-controller/src/index.ts","line":263,"column":3},
|
|
895
935
|
},
|
|
896
936
|
{
|
|
897
937
|
id: '@deepseek-ai/dsh-api-session-controller#session/openWorkspacePath',
|
|
@@ -917,7 +957,7 @@ export const TYPERT = {
|
|
|
917
957
|
typeSymbol: '@deepseek-ai/dsh-api-session-controller/types#SessionOpenWorkspacePathValue',
|
|
918
958
|
schema: _deepseek_ai_dsh_api_session_controller_session_openWorkspacePath_result$schema,
|
|
919
959
|
},
|
|
920
|
-
sourceLocation: {"file":"packages/api/session-controller/src/index.ts","line":
|
|
960
|
+
sourceLocation: {"file":"packages/api/session-controller/src/index.ts","line":293,"column":9},
|
|
921
961
|
},
|
|
922
962
|
{
|
|
923
963
|
id: '@deepseek-ai/dsh-api-session-controller#session/page',
|
|
@@ -943,7 +983,7 @@ export const TYPERT = {
|
|
|
943
983
|
typeSymbol: '@deepseek-ai/dsh-api-session-controller/types#SessionPage',
|
|
944
984
|
schema: _deepseek_ai_dsh_api_session_controller_session_page_result$schema,
|
|
945
985
|
},
|
|
946
|
-
sourceLocation: {"file":"packages/api/session-controller/src/index.ts","line":
|
|
986
|
+
sourceLocation: {"file":"packages/api/session-controller/src/index.ts","line":388,"column":3},
|
|
947
987
|
},
|
|
948
988
|
{
|
|
949
989
|
id: '@deepseek-ai/dsh-api-session-controller#session/prompt',
|
|
@@ -969,7 +1009,7 @@ export const TYPERT = {
|
|
|
969
1009
|
typeSymbol: '@deepseek-ai/dsh-api-session-controller/types#SessionPromptValue',
|
|
970
1010
|
schema: _deepseek_ai_dsh_api_session_controller_session_prompt_result$schema,
|
|
971
1011
|
},
|
|
972
|
-
sourceLocation: {"file":"packages/api/session-controller/src/index.ts","line":
|
|
1012
|
+
sourceLocation: {"file":"packages/api/session-controller/src/index.ts","line":346,"column":3},
|
|
973
1013
|
},
|
|
974
1014
|
{
|
|
975
1015
|
id: '@deepseek-ai/dsh-api-session-controller#session/rename',
|
|
@@ -994,7 +1034,7 @@ export const TYPERT = {
|
|
|
994
1034
|
typeSymbol: '@deepseek-ai/dsh-api-session-controller/types#SessionRenameValue',
|
|
995
1035
|
schema: _deepseek_ai_dsh_api_session_controller_session_rename_result$schema,
|
|
996
1036
|
},
|
|
997
|
-
sourceLocation: {"file":"packages/api/session-controller/src/index.ts","line":
|
|
1037
|
+
sourceLocation: {"file":"packages/api/session-controller/src/index.ts","line":325,"column":3},
|
|
998
1038
|
},
|
|
999
1039
|
{
|
|
1000
1040
|
id: '@deepseek-ai/dsh-api-session-controller#session/search',
|
|
@@ -1020,7 +1060,7 @@ export const TYPERT = {
|
|
|
1020
1060
|
typeSymbol: '@deepseek-ai/dsh-api-session-controller/types#SessionSearchValue',
|
|
1021
1061
|
schema: _deepseek_ai_dsh_api_session_controller_session_search_result$schema,
|
|
1022
1062
|
},
|
|
1023
|
-
sourceLocation: {"file":"packages/api/session-controller/src/index.ts","line":
|
|
1063
|
+
sourceLocation: {"file":"packages/api/session-controller/src/index.ts","line":234,"column":3},
|
|
1024
1064
|
},
|
|
1025
1065
|
{
|
|
1026
1066
|
id: '@deepseek-ai/dsh-api-session-controller#session/selectModel',
|
|
@@ -1045,7 +1085,7 @@ export const TYPERT = {
|
|
|
1045
1085
|
typeSymbol: '@deepseek-ai/dsh-api-session-controller/types#SessionSelectModelValue',
|
|
1046
1086
|
schema: _deepseek_ai_dsh_api_session_controller_session_selectModel_result$schema,
|
|
1047
1087
|
},
|
|
1048
|
-
sourceLocation: {"file":"packages/api/session-controller/src/index.ts","line":
|
|
1088
|
+
sourceLocation: {"file":"packages/api/session-controller/src/index.ts","line":254,"column":3},
|
|
1049
1089
|
},
|
|
1050
1090
|
{
|
|
1051
1091
|
id: '@deepseek-ai/dsh-api-session-controller#session/updateQueue',
|
|
@@ -1070,7 +1110,7 @@ export const TYPERT = {
|
|
|
1070
1110
|
typeSymbol: '@deepseek-ai/dsh-api-session-controller/types#SessionUpdateQueueValue',
|
|
1071
1111
|
schema: _deepseek_ai_dsh_api_session_controller_session_updateQueue_result$schema,
|
|
1072
1112
|
},
|
|
1073
|
-
sourceLocation: {"file":"packages/api/session-controller/src/index.ts","line":
|
|
1113
|
+
sourceLocation: {"file":"packages/api/session-controller/src/index.ts","line":367,"column":3},
|
|
1074
1114
|
},
|
|
1075
1115
|
{
|
|
1076
1116
|
id: '@deepseek-ai/dsh-api-session-controller#skills/list',
|
|
@@ -1165,6 +1205,13 @@ export const TYPERT = {
|
|
|
1165
1205
|
"summary": "Report whether this deployment can hand a Session workspace path to a native desktop.",
|
|
1166
1206
|
"jsDoc": "/**\n * Report whether this deployment can hand a Session workspace path to a native desktop.\n * @returns true when the matching open operation is available.\n */"
|
|
1167
1207
|
},
|
|
1208
|
+
{
|
|
1209
|
+
"kind": "method",
|
|
1210
|
+
"name": "workspaceDesktop",
|
|
1211
|
+
"signature": "workspaceDesktop(): { name: string; available: boolean; fileManager: 'finder' | 'explorer' | 'directory' | null }",
|
|
1212
|
+
"summary": "Describe the serving desktop for authenticated file-action routes.",
|
|
1213
|
+
"jsDoc": "/**\n * Describe the serving desktop for authenticated file-action routes.\n * @returns Host name, configured availability, and platform-specific file-manager behavior.\n */"
|
|
1214
|
+
},
|
|
1168
1215
|
{
|
|
1169
1216
|
"kind": "method",
|
|
1170
1217
|
"name": "openWorkspacePath",
|
|
@@ -1347,7 +1394,15 @@ export const TYPERT = {
|
|
|
1347
1394
|
},
|
|
1348
1395
|
{
|
|
1349
1396
|
"name": "EpochHeader",
|
|
1350
|
-
"declaration": "export interface EpochHeader {\n config: LlmCallConfig;\n adapterDefaults?: LlmCallConfigAdapterDefaults;\n
|
|
1397
|
+
"declaration": "export interface EpochHeader {\n config: LlmCallConfig;\n adapterDefaults?: LlmCallConfigAdapterDefaults;\n tools?: ToolSchema[];\n}"
|
|
1398
|
+
},
|
|
1399
|
+
{
|
|
1400
|
+
"name": "FeedbackCategory",
|
|
1401
|
+
"declaration": "export type FeedbackCategory = 'task-result' | 'instruction-following' | 'product-interaction' | 'service-stability' | 'resource-cost' | 'security-privacy-permission' | 'other';"
|
|
1402
|
+
},
|
|
1403
|
+
{
|
|
1404
|
+
"name": "FeedbackRecord",
|
|
1405
|
+
"declaration": "export interface FeedbackRecord {\n readonly text?: string;\n readonly category?: FeedbackCategory;\n}"
|
|
1351
1406
|
},
|
|
1352
1407
|
{
|
|
1353
1408
|
"name": "FileAttachmentRef",
|
|
@@ -1427,12 +1482,16 @@ export const TYPERT = {
|
|
|
1427
1482
|
},
|
|
1428
1483
|
{
|
|
1429
1484
|
"name": "Inbox",
|
|
1430
|
-
"declaration": "export
|
|
1485
|
+
"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}"
|
|
1431
1486
|
},
|
|
1432
1487
|
{
|
|
1433
1488
|
"name": "InboxTarget",
|
|
1434
1489
|
"declaration": "export type InboxTarget = 'next-turn' | 'next-step';"
|
|
1435
1490
|
},
|
|
1491
|
+
{
|
|
1492
|
+
"name": "InboxWireState",
|
|
1493
|
+
"declaration": "export interface InboxWireState {\n readonly 'next-turn': readonly JsonValue[];\n readonly 'next-step': readonly JsonValue[];\n}"
|
|
1494
|
+
},
|
|
1436
1495
|
{
|
|
1437
1496
|
"name": "JobId",
|
|
1438
1497
|
"declaration": "export type JobId = Branded<'JobId'>;"
|
|
@@ -1467,7 +1526,7 @@ export const TYPERT = {
|
|
|
1467
1526
|
},
|
|
1468
1527
|
{
|
|
1469
1528
|
"name": "MessageFeedbackItem",
|
|
1470
|
-
"declaration": "export interface MessageFeedbackItem {\n readonly messageId: MessageId;\n readonly rating: MessageFeedbackRating;\n readonly note?: string;\n readonly version: MessageFeedbackVersion;\n readonly createdAt: number;\n readonly updatedAt: number;\n}"
|
|
1529
|
+
"declaration": "export interface MessageFeedbackItem {\n readonly messageId: MessageId;\n readonly rating: MessageFeedbackRating;\n readonly note?: string;\n readonly category?: FeedbackCategory;\n readonly version: MessageFeedbackVersion;\n readonly createdAt: number;\n readonly updatedAt: number;\n}"
|
|
1471
1530
|
},
|
|
1472
1531
|
{
|
|
1473
1532
|
"name": "MessageFeedbackPut",
|
|
@@ -1575,7 +1634,7 @@ export const TYPERT = {
|
|
|
1575
1634
|
},
|
|
1576
1635
|
{
|
|
1577
1636
|
"name": "RemoteErrorDetailsMap",
|
|
1578
|
-
"declaration": "export interface RemoteErrorDetailsMap {\n 'gateway/bad-request': { readonly issues?: readonly object[]; };\n 'gateway/cancelled': {};\n 'gateway/internal': {};\n 'llm/model-discovery-rejected': { readonly settingsNs: string; readonly baseURL?: string; };\n 'session/not-found': { readonly sessionId: SessionId; };\n 'agent-preset/not-found': { readonly agentPreset: string; readonly available: readonly string[]; };\n 'agent-preset/invalid': { readonly agentPreset: string; readonly reason: string; };\n 'agent-preset/read-only': { readonly agentPreset: string; readonly reason: string; };\n 'agent-preset/locked': { readonly sessionId: SessionId; readonly agentPreset: string; };\n 'workspace/not-found': { readonly workspaceId: WorkspaceId; };\n 'session/model-unavailable': { readonly provider: string; readonly model: string; };\n 'session/conflict': { readonly sessionId: SessionId; readonly requestedCwd: string; readonly existingCwd?: string; };\n 'session/agent-busy': { readonly reason: string; };\n 'session/invalid-time-zone': { readonly value: string; };\n 'session/workspace-attach-failed': { readonly sessionId: SessionId; readonly workspaceId: string; };\n 'agent-preset/conflict': { readonly sessionId: SessionId; readonly requestedPreset: string; readonly existingPreset?: string; };\n 'session/attachment-invalid': { readonly reason: string; };\n 'session/queue-item-not-found': { readonly itemId: MessageId; };\n 'session/steer-unavailable': { readonly itemId: MessageId; };\n 'session/title-invalid': { readonly sessionId: SessionId; };\n 'session/fork-unavailable': { readonly sessionId: SessionId; };\n 'subagent/not-found': { readonly parentSessionId: SessionId; readonly childSessionId: SessionId; };\n 'subagent/catalog-diagnostic': { readonly parentSessionId: SessionId; readonly childSessionId: SessionId; readonly reason: 'corrupt' | 'unsupported' | 'unavailable'; };\n 'subagent/invalid-time-zone': { readonly value: string; };\n 'subagent/parent-unavailable': { readonly parentSessionId: SessionId; };\n 'subagent/not-resumable': { readonly childSessionId: SessionId; };\n 'subagent/unauthorized': { readonly childSessionId: SessionId; };\n 'subagent/attachment-invalid': { readonly reason: string; };\n 'subagent/delivery-unavailable': { readonly childSessionId: SessionId; };\n 'subagent/projections-unavailable': {};\n 'settings/rejected': { readonly ns: string; };\n 'settings/conflict': { readonly ns: string; readonly expected: number; readonly actual: number; };\n 'credential/rejected': { readonly ref: string; };\n 'workspace/invalid-path': { readonly path: string; };\n 'workspace/name-conflict': { readonly name: string; };\n 'workspace/move-invalid': { readonly workspaceId: WorkspaceId; readonly sessionId: SessionId; readonly beforeSessionId?: SessionId; };\n 'directory-picker/unavailable': { readonly capability: string; };\n 'directory-picker/unreadable': { readonly path: string; };\n 'directory-picker/exists': { readonly path: string; };\n 'directory-picker/create-failed': { readonly path: string; };\n}"
|
|
1637
|
+
"declaration": "export interface RemoteErrorDetailsMap {\n 'gateway/bad-request': { readonly issues?: readonly object[]; };\n 'gateway/cancelled': {};\n 'gateway/internal': {};\n 'llm/model-discovery-rejected': { readonly settingsNs: string; readonly baseURL?: string; };\n 'session/not-found': { readonly sessionId: SessionId; };\n 'agent-preset/not-found': { readonly agentPreset: string; readonly available: readonly string[]; };\n 'agent-preset/invalid': { readonly agentPreset: string; readonly reason: string; };\n 'agent-preset/read-only': { readonly agentPreset: string; readonly reason: string; };\n 'agent-preset/locked': { readonly sessionId: SessionId; readonly agentPreset: string; };\n 'workspace/not-found': { readonly workspaceId: WorkspaceId; };\n 'session/model-unavailable': { readonly provider: string; readonly model: string; };\n 'session/conflict': { readonly sessionId: SessionId; readonly requestedCwd: string; readonly existingCwd?: string; };\n 'session/agent-busy': { readonly reason: string; };\n 'session/invalid-time-zone': { readonly value: string; };\n 'session/workspace-attach-failed': { readonly sessionId: SessionId; readonly workspaceId: string; };\n 'agent-preset/conflict': { readonly sessionId: SessionId; readonly requestedPreset: string; readonly existingPreset?: string; };\n 'session/attachment-invalid': { readonly reason: string; };\n 'session/queue-item-not-found': { readonly itemId: MessageId; };\n 'session/steer-unavailable': { readonly itemId: MessageId; };\n 'session/title-invalid': { readonly sessionId: SessionId; };\n 'session/fork-unavailable': { readonly sessionId: SessionId; };\n 'subagent/not-found': { readonly parentSessionId: SessionId; readonly childSessionId: SessionId; };\n 'subagent/catalog-diagnostic': { readonly parentSessionId: SessionId; readonly childSessionId: SessionId; readonly reason: 'corrupt' | 'unsupported' | 'unavailable'; };\n 'subagent/invalid-time-zone': { readonly value: string; };\n 'subagent/parent-unavailable': { readonly parentSessionId: SessionId; };\n 'subagent/not-resumable': { readonly childSessionId: SessionId; };\n 'subagent/unauthorized': { readonly childSessionId: SessionId; };\n 'subagent/attachment-invalid': { readonly reason: string; };\n 'subagent/delivery-unavailable': { readonly childSessionId: SessionId; };\n 'subagent/projections-unavailable': {};\n 'settings/rejected': { readonly ns: string; };\n 'settings/conflict': { readonly ns: string; readonly expected: number; readonly actual: number; };\n 'credential/rejected': { readonly ref: string; };\n 'workspace/invalid-path': { readonly path: string; };\n 'workspace/name-conflict': { readonly name: string; };\n 'workspace/move-invalid': { readonly workspaceId: WorkspaceId; readonly sessionId: SessionId; readonly beforeSessionId?: SessionId; };\n 'directory-picker/unavailable': { readonly capability: string; };\n 'directory-picker/unreadable': { readonly path: string; };\n 'directory-picker/exists': { readonly path: string; };\n 'directory-picker/create-failed': { readonly path: string; };\n 'workspace-file/not-found': { readonly path: string; };\n 'workspace-file/outside-workspace': { readonly path: string; };\n 'workspace-file/too-large': { readonly path: string; readonly limit: number; };\n 'workspace-file/not-text': { readonly path: string; };\n 'workspace-file/not-regular-file': { readonly path: string; readonly kind: 'directory' | 'symlink' | 'other'; };\n 'workspace-file/not-directory': { readonly path: string; readonly kind: 'file' | 'symlink' | 'other'; };\n}"
|
|
1579
1638
|
},
|
|
1580
1639
|
{
|
|
1581
1640
|
"name": "ReplayEnvelope",
|
|
@@ -1583,7 +1642,7 @@ export const TYPERT = {
|
|
|
1583
1642
|
},
|
|
1584
1643
|
{
|
|
1585
1644
|
"name": "RequestContext",
|
|
1586
|
-
"declaration": "export interface RequestContext {\n provider: string;\n model: string;\n contextWindow?: number;\n}"
|
|
1645
|
+
"declaration": "export interface RequestContext {\n provider: string;\n model: string;\n contextWindow?: number;\n systemPromptUpdate?: SystemPromptUpdate;\n}"
|
|
1587
1646
|
},
|
|
1588
1647
|
{
|
|
1589
1648
|
"name": "RequestHeaderReason",
|
|
@@ -1647,7 +1706,7 @@ export const TYPERT = {
|
|
|
1647
1706
|
},
|
|
1648
1707
|
{
|
|
1649
1708
|
"name": "SessionEvent",
|
|
1650
|
-
"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 ? {
|
|
1709
|
+
"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];"
|
|
1651
1710
|
},
|
|
1652
1711
|
{
|
|
1653
1712
|
"name": "SessionEventEntry",
|
|
@@ -1655,7 +1714,7 @@ export const TYPERT = {
|
|
|
1655
1714
|
},
|
|
1656
1715
|
{
|
|
1657
1716
|
"name": "SessionEventMap",
|
|
1658
|
-
"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/
|
|
1717
|
+
"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 'subagent/catalog': SubagentCatalogEvent;\n 'feedback/record': FeedbackRecord;\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}"
|
|
1659
1718
|
},
|
|
1660
1719
|
{
|
|
1661
1720
|
"name": "SessionEventType",
|
|
@@ -1715,7 +1774,7 @@ export const TYPERT = {
|
|
|
1715
1774
|
},
|
|
1716
1775
|
{
|
|
1717
1776
|
"name": "SessionOpenWorkspacePathRequest",
|
|
1718
|
-
"declaration": "export interface SessionOpenWorkspacePathRequest {\n readonly path: string;\n}"
|
|
1777
|
+
"declaration": "export interface SessionOpenWorkspacePathRequest {\n readonly action?: 'reveal';\n readonly path: string;\n}"
|
|
1719
1778
|
},
|
|
1720
1779
|
{
|
|
1721
1780
|
"name": "SessionOpenWorkspacePathValue",
|
|
@@ -1739,7 +1798,7 @@ export const TYPERT = {
|
|
|
1739
1798
|
},
|
|
1740
1799
|
{
|
|
1741
1800
|
"name": "SessionProjectionMap",
|
|
1742
|
-
"declaration": "export interface SessionProjectionMap {\n agentPreset: string | null;\n title: string | null;\n todos: TodoItem[] | null;\n sessionListMetadata: SessionListMetadata;\n imageLimits: ImageAttachmentLimits;\n modelSelection: ModelSelectionProjection;\n subagentTiming: SubagentTimingProjection;\n subagent: SubagentIdentityProjection | null;\n goal: GoalProjection | null;\n}"
|
|
1801
|
+
"declaration": "export interface SessionProjectionMap {\n inbox: InboxWireState;\n agentPreset: string | null;\n title: string | null;\n todos: TodoItem[] | null;\n sessionListMetadata: SessionListMetadata;\n imageLimits: ImageAttachmentLimits;\n modelSelection: ModelSelectionProjection;\n subagentCatalog: SubagentCatalogEntry[];\n subagentTiming: SubagentTimingProjection;\n subagent: SubagentIdentityProjection | null;\n goal: GoalProjection | null;\n}"
|
|
1743
1802
|
},
|
|
1744
1803
|
{
|
|
1745
1804
|
"name": "SessionProjectionUpdate",
|
|
@@ -1847,16 +1906,12 @@ export const TYPERT = {
|
|
|
1847
1906
|
},
|
|
1848
1907
|
{
|
|
1849
1908
|
"name": "SessionWireEvent",
|
|
1850
|
-
"declaration": "export interface SessionWireEvent {\n readonly type: string;\n readonly seq: number;\n readonly time: number;\n readonly data: JsonValue;\n readonly ignorable?: true;\n readonly sourceEventSeqs?:
|
|
1909
|
+
"declaration": "export interface SessionWireEvent {\n readonly type: string;\n readonly seq: number;\n readonly time: number;\n readonly data: JsonValue;\n readonly ignorable?: true;\n readonly sourceEventSeqs?: JsonValue;\n readonly surfaceOp?: JsonValue;\n}"
|
|
1851
1910
|
},
|
|
1852
1911
|
{
|
|
1853
1912
|
"name": "SessionWireHeader",
|
|
1854
1913
|
"declaration": "export interface SessionWireHeader {\n readonly version: number;\n readonly id: SessionId;\n readonly createdAt: number;\n readonly cwd?: string;\n readonly parentSession?: SessionId;\n readonly isSeeded: boolean;\n readonly origin?: 'subagent';\n readonly delegationDepth?: number;\n readonly agentPreset?: string;\n}"
|
|
1855
1914
|
},
|
|
1856
|
-
{
|
|
1857
|
-
"name": "SessionWireSurfaceOp",
|
|
1858
|
-
"declaration": "export type SessionWireSurfaceOp = 'append' | { readonly op: 'replace'; readonly start: number; readonly end: number; };"
|
|
1859
|
-
},
|
|
1860
1915
|
{
|
|
1861
1916
|
"name": "SkillInvocationSource",
|
|
1862
1917
|
"declaration": "export interface SkillInvocationSource {\n readonly kind: 'skill-invocation';\n readonly name: string;\n readonly form: 'instructions';\n}"
|
|
@@ -1865,6 +1920,14 @@ export const TYPERT = {
|
|
|
1865
1920
|
"name": "StreamChunk",
|
|
1866
1921
|
"declaration": "export type StreamChunk = { type: 'block-start'; index: number; blockType: ContentBlockType; } | { type: 'text-delta'; index: number; text: string; } | { type: 'reasoning-delta'; index: number; text: string; } | { type: 'tool-call-delta'; index: number; id: ToolCallId; name?: string; argumentsDelta: string; } | { type: 'block-end'; index: number; block: ContentBlock; } | { type: 'usage'; usage: TokenUsage; } | { type: 'finish'; reason: FinishReason; replayState?: ReplayEnvelope; };"
|
|
1867
1922
|
},
|
|
1923
|
+
{
|
|
1924
|
+
"name": "SubagentCatalogEntry",
|
|
1925
|
+
"declaration": "export type SubagentCatalogEntry = { readonly id: SessionId; readonly createdAt: number; } & ({ readonly mode: 'one-shot'; readonly label?: string; } | { readonly mode: 'continuable'; readonly label: string; });"
|
|
1926
|
+
},
|
|
1927
|
+
{
|
|
1928
|
+
"name": "SubagentCatalogEvent",
|
|
1929
|
+
"declaration": "export type SubagentCatalogEvent = { readonly version: 0; readonly childId: SessionId; readonly childCreatedAt: number; } & ({ readonly mode: 'one-shot'; readonly label?: string; } | { readonly mode: 'continuable'; readonly label: string; });"
|
|
1930
|
+
},
|
|
1868
1931
|
{
|
|
1869
1932
|
"name": "SubagentDescriptorBase",
|
|
1870
1933
|
"declaration": "export interface SubagentDescriptorBase {\n readonly version: number;\n readonly mode: 'one-shot' | 'continuable';\n readonly provider: string;\n}"
|
|
@@ -1887,7 +1950,7 @@ export const TYPERT = {
|
|
|
1887
1950
|
},
|
|
1888
1951
|
{
|
|
1889
1952
|
"name": "SurfaceEventType",
|
|
1890
|
-
"declaration": "export type SurfaceEventType = 'user/message' | 'assistant/message' | 'tool/result';"
|
|
1953
|
+
"declaration": "export type SurfaceEventType = 'system/message' | 'user/message' | 'assistant/message' | 'tool/result';"
|
|
1891
1954
|
},
|
|
1892
1955
|
{
|
|
1893
1956
|
"name": "SurfaceIntent",
|
|
@@ -1895,7 +1958,15 @@ export const TYPERT = {
|
|
|
1895
1958
|
},
|
|
1896
1959
|
{
|
|
1897
1960
|
"name": "SurfaceOp",
|
|
1898
|
-
"declaration": "export type SurfaceOp = 'append' | { op: 'replace';
|
|
1961
|
+
"declaration": "export type SurfaceOp = 'append' | { op: 'replace'; startSeq: SessionSeq; endSeq: SessionSeq; };"
|
|
1962
|
+
},
|
|
1963
|
+
{
|
|
1964
|
+
"name": "SystemMessage",
|
|
1965
|
+
"declaration": "export interface SystemMessage extends Message {\n readonly role: 'system';\n readonly source: MessageSourceMap['plugin'];\n}"
|
|
1966
|
+
},
|
|
1967
|
+
{
|
|
1968
|
+
"name": "SystemPromptUpdate",
|
|
1969
|
+
"declaration": "export type SystemPromptUpdate = 'in-history';"
|
|
1899
1970
|
},
|
|
1900
1971
|
{
|
|
1901
1972
|
"name": "TeamId",
|
|
@@ -2114,7 +2185,15 @@ export const TYPERT = {
|
|
|
2114
2185
|
},
|
|
2115
2186
|
{
|
|
2116
2187
|
"name": "EpochHeader",
|
|
2117
|
-
"declaration": "export interface EpochHeader {\n config: LlmCallConfig;\n adapterDefaults?: LlmCallConfigAdapterDefaults;\n
|
|
2188
|
+
"declaration": "export interface EpochHeader {\n config: LlmCallConfig;\n adapterDefaults?: LlmCallConfigAdapterDefaults;\n tools?: ToolSchema[];\n}"
|
|
2189
|
+
},
|
|
2190
|
+
{
|
|
2191
|
+
"name": "FeedbackCategory",
|
|
2192
|
+
"declaration": "export type FeedbackCategory = 'task-result' | 'instruction-following' | 'product-interaction' | 'service-stability' | 'resource-cost' | 'security-privacy-permission' | 'other';"
|
|
2193
|
+
},
|
|
2194
|
+
{
|
|
2195
|
+
"name": "FeedbackRecord",
|
|
2196
|
+
"declaration": "export interface FeedbackRecord {\n readonly text?: string;\n readonly category?: FeedbackCategory;\n}"
|
|
2118
2197
|
},
|
|
2119
2198
|
{
|
|
2120
2199
|
"name": "FileAttachmentRef",
|
|
@@ -2190,7 +2269,7 @@ export const TYPERT = {
|
|
|
2190
2269
|
},
|
|
2191
2270
|
{
|
|
2192
2271
|
"name": "Inbox",
|
|
2193
|
-
"declaration": "export
|
|
2272
|
+
"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}"
|
|
2194
2273
|
},
|
|
2195
2274
|
{
|
|
2196
2275
|
"name": "InboxTarget",
|
|
@@ -2222,7 +2301,7 @@ export const TYPERT = {
|
|
|
2222
2301
|
},
|
|
2223
2302
|
{
|
|
2224
2303
|
"name": "MessageFeedbackItem",
|
|
2225
|
-
"declaration": "export interface MessageFeedbackItem {\n readonly messageId: MessageId;\n readonly rating: MessageFeedbackRating;\n readonly note?: string;\n readonly version: MessageFeedbackVersion;\n readonly createdAt: number;\n readonly updatedAt: number;\n}"
|
|
2304
|
+
"declaration": "export interface MessageFeedbackItem {\n readonly messageId: MessageId;\n readonly rating: MessageFeedbackRating;\n readonly note?: string;\n readonly category?: FeedbackCategory;\n readonly version: MessageFeedbackVersion;\n readonly createdAt: number;\n readonly updatedAt: number;\n}"
|
|
2226
2305
|
},
|
|
2227
2306
|
{
|
|
2228
2307
|
"name": "MessageFeedbackPut",
|
|
@@ -2290,7 +2369,7 @@ export const TYPERT = {
|
|
|
2290
2369
|
},
|
|
2291
2370
|
{
|
|
2292
2371
|
"name": "RequestContext",
|
|
2293
|
-
"declaration": "export interface RequestContext {\n provider: string;\n model: string;\n contextWindow?: number;\n}"
|
|
2372
|
+
"declaration": "export interface RequestContext {\n provider: string;\n model: string;\n contextWindow?: number;\n systemPromptUpdate?: SystemPromptUpdate;\n}"
|
|
2294
2373
|
},
|
|
2295
2374
|
{
|
|
2296
2375
|
"name": "RequestHeaderReason",
|
|
@@ -2306,11 +2385,11 @@ export const TYPERT = {
|
|
|
2306
2385
|
},
|
|
2307
2386
|
{
|
|
2308
2387
|
"name": "SessionEvent",
|
|
2309
|
-
"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 ? {
|
|
2388
|
+
"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];"
|
|
2310
2389
|
},
|
|
2311
2390
|
{
|
|
2312
2391
|
"name": "SessionEventMap",
|
|
2313
|
-
"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/
|
|
2392
|
+
"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 'subagent/catalog': SubagentCatalogEvent;\n 'feedback/record': FeedbackRecord;\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}"
|
|
2314
2393
|
},
|
|
2315
2394
|
{
|
|
2316
2395
|
"name": "SessionEventType",
|
|
@@ -2368,6 +2447,10 @@ export const TYPERT = {
|
|
|
2368
2447
|
"name": "StreamChunk",
|
|
2369
2448
|
"declaration": "export type StreamChunk = { type: 'block-start'; index: number; blockType: ContentBlockType; } | { type: 'text-delta'; index: number; text: string; } | { type: 'reasoning-delta'; index: number; text: string; } | { type: 'tool-call-delta'; index: number; id: ToolCallId; name?: string; argumentsDelta: string; } | { type: 'block-end'; index: number; block: ContentBlock; } | { type: 'usage'; usage: TokenUsage; } | { type: 'finish'; reason: FinishReason; replayState?: ReplayEnvelope; };"
|
|
2370
2449
|
},
|
|
2450
|
+
{
|
|
2451
|
+
"name": "SubagentCatalogEvent",
|
|
2452
|
+
"declaration": "export type SubagentCatalogEvent = { readonly version: 0; readonly childId: SessionId; readonly childCreatedAt: number; } & ({ readonly mode: 'one-shot'; readonly label?: string; } | { readonly mode: 'continuable'; readonly label: string; });"
|
|
2453
|
+
},
|
|
2371
2454
|
{
|
|
2372
2455
|
"name": "SubagentDescriptorBase",
|
|
2373
2456
|
"declaration": "export interface SubagentDescriptorBase {\n readonly version: number;\n readonly mode: 'one-shot' | 'continuable';\n readonly provider: string;\n}"
|
|
@@ -2382,7 +2465,7 @@ export const TYPERT = {
|
|
|
2382
2465
|
},
|
|
2383
2466
|
{
|
|
2384
2467
|
"name": "SurfaceEventType",
|
|
2385
|
-
"declaration": "export type SurfaceEventType = 'user/message' | 'assistant/message' | 'tool/result';"
|
|
2468
|
+
"declaration": "export type SurfaceEventType = 'system/message' | 'user/message' | 'assistant/message' | 'tool/result';"
|
|
2386
2469
|
},
|
|
2387
2470
|
{
|
|
2388
2471
|
"name": "SurfaceIntent",
|
|
@@ -2390,7 +2473,15 @@ export const TYPERT = {
|
|
|
2390
2473
|
},
|
|
2391
2474
|
{
|
|
2392
2475
|
"name": "SurfaceOp",
|
|
2393
|
-
"declaration": "export type SurfaceOp = 'append' | { op: 'replace';
|
|
2476
|
+
"declaration": "export type SurfaceOp = 'append' | { op: 'replace'; startSeq: SessionSeq; endSeq: SessionSeq; };"
|
|
2477
|
+
},
|
|
2478
|
+
{
|
|
2479
|
+
"name": "SystemMessage",
|
|
2480
|
+
"declaration": "export interface SystemMessage extends Message {\n readonly role: 'system';\n readonly source: MessageSourceMap['plugin'];\n}"
|
|
2481
|
+
},
|
|
2482
|
+
{
|
|
2483
|
+
"name": "SystemPromptUpdate",
|
|
2484
|
+
"declaration": "export type SystemPromptUpdate = 'in-history';"
|
|
2394
2485
|
},
|
|
2395
2486
|
{
|
|
2396
2487
|
"name": "TeamId",
|