@blade-hq/agent-client 2610.0.0-beta.4 → 2610.0.0-beta.41

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/public-api.md CHANGED
@@ -3,7 +3,7 @@
3
3
  > 本文件由 `scripts/public-api-report.mjs` 生成,请勿手改。
4
4
  > 公共面变更时重新生成本报告,并同步更新 README 对应章节——CI 会校验两者。
5
5
 
6
- 共 136 个公开声明。
6
+ 共 174 个公开声明。
7
7
 
8
8
  ## `acceptedPostChatFollowupCompletesLatestRun` (function)
9
9
 
@@ -11,6 +11,12 @@
11
11
  acceptedPostChatFollowupCompletesLatestRun: (events: RawEvent[], updates: ProjectionUpdate[]) => boolean
12
12
  ```
13
13
 
14
+ ## `acknowledgeTurnEvents` (function)
15
+
16
+ ```ts
17
+ acknowledgeTurnEvents: (acknowledge?: () => void) => void
18
+ ```
19
+
14
20
  ## `ActiveCompactionState` (interface)
15
21
 
16
22
  ```ts
@@ -44,18 +50,23 @@ toolCallId: string
44
50
  append: (text: string) => void
45
51
  attach: (label: string, data: unknown) => void
46
52
  attachApp: (options: AttachAppOptions) => Promise<AppCliAttachment | null>
53
+ cancelQueued: (id: number) => Promise<boolean>
47
54
  compact: () => Promise<Record<string, unknown>>
48
55
  countFiles: (dirPath?: string) => Promise<number>
49
56
  dispose: () => void
50
57
  downloadFile: (filePath: string, downloadName?: string) => Promise<void>
51
58
  exitReplay: () => Promise<void>
52
59
  getState: () => SessionState
60
+ hasOlderHistory: boolean
53
61
  insertText: (text: string) => void
54
62
  isDisposed: boolean
55
63
  listDir: (dirPath?: string) => Promise<FileEntry[]>
64
+ listQueue: () => Promise<Array<{ id: number; message: string; }>>
65
+ loadOlderHistory: (options?: { beforeCommit?: () => void; }) => Promise<void>
56
66
  off: <K extends keyof AgentSessionEvents>(name: K, handler: (event: AgentSessionEvents[K]) => void) => void
57
67
  on: <K extends keyof AgentSessionEvents>(name: K, handler: (event: AgentSessionEvents[K]) => void) => () => void
58
68
  onCommand: (action: string, handler: CommandHandler) => () => void
69
+ queue: (content: string) => Promise<boolean>
59
70
  send: (content: MessageContent, options?: SendOptions) => Promise<boolean>
60
71
  sessionId: string
61
72
  setReplaySpeed: (speed: ReplaySpeed) => Promise<void>
@@ -89,7 +100,7 @@ sessionUpdated: { intent?: string; status?: SessionStatus; model?: string | null
89
100
  taskListUpdated: { tasks: unknown[]; }
90
101
  toolCall: { toolCall: ToolCallInfo; turn: TurnProjection; }
91
102
  toolPreview: { toolCallId: string; type: "resource-html" | "resource-uri"; content: string; title: string; }
92
- toolResult: { toolCall: ToolCallInfo; turn: TurnProjection; }
103
+ toolResult: { toolCall: ToolCallInfo; turn: TurnProjection; source: "live" | "bootstrap_replay" | "reconnect_replay"; }
93
104
  workspaceChanged: { filePath?: string; }
94
105
  ```
95
106
 
@@ -133,6 +144,7 @@ tool_name: string | null | undefined
133
144
 
134
145
  ```ts
135
146
  custom: Record<number, string>
147
+ note: string | undefined
136
148
  selections: Record<number, number[]>
137
149
  ```
138
150
 
@@ -217,6 +229,7 @@ statusText: string
217
229
  auth: AuthResource
218
230
  blob: (method: HttpMethod, path: string) => Promise<Blob>
219
231
  buildAuthedUrl: (path: string) => string
232
+ computers: ComputersResource
220
233
  fetch: (method: HttpMethod, path: string, init?: BladeFetchInit, isRetry?: boolean) => Promise<Response>
221
234
  formData: (method: HttpMethod, path: string, form: FormData, options?: { expectOk?: boolean; onUploadProgress?: (progress: UploadProgress) => void; }) => Promise<Response>
222
235
  hasToken: () => boolean
@@ -246,7 +259,6 @@ baseUrl: string
246
259
  fetchImpl: { (input: RequestInfo | URL, init?: RequestInit): Promise<Response>; (input: string | URL | Request, init?: RequestInit): Promise<Response>; } | undefined
247
260
  onRefreshSuccess: (() => void | Promise<void>) | undefined
248
261
  socketToken: string | (() => string | null | undefined) | undefined
249
- streamTokens: boolean | undefined
250
262
  token: string | (() => string | null | undefined) | undefined
251
263
  tokenStorage: TokenStorageMode | undefined
252
264
  ```
@@ -257,12 +269,25 @@ tokenStorage: TokenStorageMode | undefined
257
269
  buildMessageContent: (text: string, attachments: Array<{ kind: "file"; name: string; uploadedPath?: string; textContent?: string | null; mimeType?: string; }>) => MessageContent
258
270
  ```
259
271
 
272
+ ## `canToggleComputer` (function)
273
+
274
+ ```ts
275
+ canToggleComputer: (computer: SessionComputer) => boolean
276
+ ```
277
+
278
+ ## `chatErrorForDisplay` (function)
279
+
280
+ ```ts
281
+ chatErrorForDisplay: (message: string, developer?: boolean) => string
282
+ ```
283
+
260
284
  ## `ChatMessage` (interface)
261
285
 
262
286
  ```ts
263
287
  blocks: ContentBlock[] | undefined
264
288
  compaction: CompactionInfo | undefined
265
289
  content: MessageContent
290
+ context: ContextProjectionData | undefined
266
291
  duration_ms: number | undefined
267
292
  entry_id: string | undefined
268
293
  kind: string | undefined
@@ -270,6 +295,7 @@ loop_name: string | undefined
270
295
  memory_refs: MemoryRefInfo[] | undefined
271
296
  parent_id: string | null | undefined
272
297
  reasoning: string | undefined
298
+ render_id: string | undefined
273
299
  role: "error" | "user" | "assistant" | "tool"
274
300
  status: "streaming" | "completed" | "paused" | "failed" | "interrupted" | undefined
275
301
  timestamp: string | undefined
@@ -317,6 +343,49 @@ tokens_before: number | null | undefined
317
343
  trigger: "auto" | "manual" | "forced_retry" | null | undefined
318
344
  ```
319
345
 
346
+ ## `computerDaemonVersion` (function)
347
+
348
+ ```ts
349
+ computerDaemonVersion: (computer: SessionComputer) => string
350
+ ```
351
+
352
+ ## `computerOS` (function)
353
+
354
+ ```ts
355
+ computerOS: (computer: SessionComputer) => ComputerOS
356
+ ```
357
+
358
+ ## `ComputerOS` (type)
359
+
360
+ ```ts
361
+ export type ComputerOS = "macos" | "windows" | "linux" | "unknown"
362
+ ```
363
+
364
+ ## `computerPlatformLabel` (function)
365
+
366
+ ```ts
367
+ computerPlatformLabel: (computer: SessionComputer) => string
368
+ ```
369
+
370
+ ## `ComputersResource` (class)
371
+
372
+ ```ts
373
+ list: (sessionId: string) => Promise<SessionComputerList>
374
+ setEnabled: (sessionId: string, computer: string, enabled: boolean) => Promise<SessionComputer>
375
+ ```
376
+
377
+ ## `computerState` (function)
378
+
379
+ ```ts
380
+ computerState: (computer: SessionComputer) => ComputerState
381
+ ```
382
+
383
+ ## `ComputerState` (type)
384
+
385
+ ```ts
386
+ export type ComputerState = "primary" | "enabled" | "offline" | "idle"
387
+ ```
388
+
320
389
  ## `connectEmbedded` (function)
321
390
 
322
391
  ```ts
@@ -333,6 +402,7 @@ export type ConnectionStatus = "connecting" | "connected" | "reconnecting" | "di
333
402
 
334
403
  ```ts
335
404
  content: unknown
405
+ delivery_id: string | null | undefined
336
406
  display_name: string | null | undefined
337
407
  tool_call_id: string | null | undefined
338
408
  tool_name: string | null | undefined
@@ -345,6 +415,69 @@ type: "text" | "thinking" | "tool_use" | "tool_result" | "tool_ui" | "tool_bridg
345
415
  contentPreview: (content: MessageContent, maxLen?: number) => string
346
416
  ```
347
417
 
418
+ ## `ContextAction` (type)
419
+
420
+ ```ts
421
+ export type ContextAction = "published" | "retained" | "removed"
422
+ ```
423
+
424
+ ## `ContextDisplayState` (interface)
425
+
426
+ ```ts
427
+ detail: string
428
+ isRemoved: boolean
429
+ summary: string
430
+ title: string
431
+ ```
432
+
433
+ ## `ContextGroupDisplayState` (interface)
434
+
435
+ ```ts
436
+ count: number
437
+ summary: string
438
+ title: string
439
+ ```
440
+
441
+ ## `contextProjectionData` (function)
442
+
443
+ ```ts
444
+ contextProjectionData: (fields: ContextProjectionFields) => ContextProjectionData | null
445
+ ```
446
+
447
+ ## `ContextProjectionData` (interface)
448
+
449
+ ```ts
450
+ context_action: ContextAction
451
+ context_key: string
452
+ context_kind: string
453
+ context_name: string
454
+ context_order: number
455
+ context_revision: string
456
+ display_summary: string | null | undefined
457
+ display_title: string | null | undefined
458
+ sources: ContextSourceInfo[]
459
+ ```
460
+
461
+ ## `ContextProjectionFields` (interface)
462
+
463
+ ```ts
464
+ context_action: ContextAction | null | undefined
465
+ context_key: string | null | undefined
466
+ context_kind: string | null | undefined
467
+ context_name: string | null | undefined
468
+ context_order: number | null | undefined
469
+ context_revision: string | null | undefined
470
+ display_summary: string | null | undefined
471
+ display_title: string | null | undefined
472
+ sources: ContextSourceInfo[] | null | undefined
473
+ ```
474
+
475
+ ## `ContextSourceInfo` (type)
476
+
477
+ ```ts
478
+ export type ContextSourceInfo = Record<string, unknown>
479
+ ```
480
+
348
481
  ## `createInitialSessionState` (function)
349
482
 
350
483
  ```ts
@@ -354,6 +487,7 @@ createInitialSessionState: (sessionId: string) => SessionState
354
487
  ## `CreateSessionRequest` (interface)
355
488
 
356
489
  ```ts
490
+ agent_runtime_id: string | null | undefined
357
491
  biz_role_id: string | null | undefined
358
492
  compaction_ratio: number | null | undefined
359
493
  daemon_id: string | null | undefined
@@ -364,7 +498,7 @@ intent: string | undefined
364
498
  memory_enabled: boolean | null | undefined
365
499
  model: string | null | undefined
366
500
  primary_skill_id: string | null | undefined
367
- runtime_type: "sandbox" | "daemon" | null | undefined
501
+ runtime_type: "sandbox" | "daemon" | "native" | null | undefined
368
502
  session_solution_asset_id: string | null | undefined
369
503
  solution_id: string | undefined
370
504
  solution_ref: PublishedSolutionRef | undefined
@@ -409,6 +543,12 @@ allowedOrigins: string[]
409
543
  iframe: HTMLIFrameElement | undefined
410
544
  ```
411
545
 
546
+ ## `EMPTY_PLATFORM_ENDPOINTS` (const)
547
+
548
+ ```ts
549
+ EMPTY_PLATFORM_ENDPOINTS: PlatformEndpoints
550
+ ```
551
+
412
552
  ## `ExchangeCodeParams` (interface)
413
553
 
414
554
  ```ts
@@ -465,6 +605,18 @@ label: string
465
605
  target: string
466
606
  ```
467
607
 
608
+ ## `getContextDisplayState` (function)
609
+
610
+ ```ts
611
+ getContextDisplayState: (context: ContextProjectionData) => ContextDisplayState
612
+ ```
613
+
614
+ ## `getContextGroupDisplayState` (function)
615
+
616
+ ```ts
617
+ getContextGroupDisplayState: (contexts: readonly ContextProjectionData[]) => ContextGroupDisplayState
618
+ ```
619
+
468
620
  ## `getFileParts` (function)
469
621
 
470
622
  ```ts
@@ -519,12 +671,24 @@ export type GlobalSearchResultItem =
519
671
  | GlobalSearchFileResult
520
672
  ```
521
673
 
674
+ ## `groupAdjacentContextRuns` (function)
675
+
676
+ ```ts
677
+ groupAdjacentContextRuns: (kinds: readonly (string | null)[]) => readonly (readonly number[])[]
678
+ ```
679
+
522
680
  ## `groupMessagesByLoop` (function)
523
681
 
524
682
  ```ts
525
683
  groupMessagesByLoop: (messages: ChatMessage[]) => MessageGroup[]
526
684
  ```
527
685
 
686
+ ## `hasChatRunEvent` (function)
687
+
688
+ ```ts
689
+ hasChatRunEvent: (events: RawEvent[]) => boolean
690
+ ```
691
+
528
692
  ## `HeadlessResource` (class)
529
693
 
530
694
  ```ts
@@ -533,6 +697,15 @@ runInSession: { <T = unknown>(sessionId: string, prompt: string, options: Headle
533
697
  runWithSession: { <T = unknown>(prompt: string, options: HeadlessRunOptions & { schema: JsonSchemaObject; }): Promise<HeadlessRunInSessionResult<T>>; (prompt: string, options?: HeadlessRunOptions): Promise<HeadlessRunInSessionResult<string>>; }
534
698
  ```
535
699
 
700
+ ## `HistoricalCommand` (interface)
701
+
702
+ ```ts
703
+ action: string
704
+ deliveryId: string
705
+ payload: unknown
706
+ toolCallId: string | undefined
707
+ ```
708
+
536
709
  ## `ImageUrlContentPart` (interface)
537
710
 
538
711
  ```ts
@@ -570,7 +743,7 @@ isCommandEnvelope: (value: unknown) => value is CommandEnvelope
570
743
  ## `isHiddenInternalMessage` (function)
571
744
 
572
745
  ```ts
573
- isHiddenInternalMessage: (message: Pick<ChatMessage, "role" | "content">) => boolean
746
+ isHiddenInternalMessage: (message: Pick<ChatMessage, "role" | "content">, options?: { includeLegacyForkContext?: boolean; }) => boolean
574
747
  ```
575
748
 
576
749
  ## `isInboundEnvelope` (function)
@@ -601,6 +774,27 @@ export enum LayoutType {
601
774
  }
602
775
  ```
603
776
 
777
+ ## `LiveRevisionState` (interface)
778
+
779
+ ```ts
780
+ byTurnId: ReadonlyMap<string, number>
781
+ current: number
782
+ ```
783
+
784
+ ## `loadPlatformEndpoints` (function)
785
+
786
+ ```ts
787
+ loadPlatformEndpoints: (options?: LoadPlatformEndpointsOptions) => Promise<PlatformEndpoints>
788
+ ```
789
+
790
+ ## `LoadPlatformEndpointsOptions` (interface)
791
+
792
+ ```ts
793
+ baseUrl: string | undefined
794
+ fetchImpl: { (input: RequestInfo | URL, init?: RequestInit): Promise<Response>; (input: string | URL | Request, init?: RequestInit): Promise<Response>; } | undefined
795
+ timeoutMs: number | undefined
796
+ ```
797
+
604
798
  ## `LoginOptions` (interface)
605
799
 
606
800
  ```ts
@@ -657,6 +851,8 @@ baseUrl: string | undefined
657
851
  default: string
658
852
  defaultServiceModel: string | undefined
659
853
  models: ModelOption[]
854
+ unavailableModelIds: string[] | undefined
855
+ unavailableProviderIds: string[] | undefined
660
856
  ```
661
857
 
662
858
  ## `ModelOption` (interface)
@@ -713,6 +909,18 @@ sequence: number
713
909
  turn_id: string
714
910
  ```
715
911
 
912
+ ## `PlatformEndpoints` (interface)
913
+
914
+ ```ts
915
+ services: Partial<Record<"os" | "hub" | "agent" | "oauth" | "llmGateway" | "gitea" | "tile", string>>
916
+ ```
917
+
918
+ ## `PlatformServiceName` (type)
919
+
920
+ ```ts
921
+ export type PlatformServiceName = (typeof PLATFORM_SERVICE_NAMES)[number]
922
+ ```
923
+
716
924
  ## `PostChatFollowup` (interface)
717
925
 
718
926
  ```ts
@@ -743,6 +951,12 @@ bizRoleId: string | undefined
743
951
  kind: "prepared"
744
952
  ```
745
953
 
954
+ ## `prependOlder` (function)
955
+
956
+ ```ts
957
+ prependOlder: (current: TurnProjection[], page: TurnProjection[]) => TurnProjection[]
958
+ ```
959
+
746
960
  ## `PrimarySkillParallelMode` (interface)
747
961
 
748
962
  ```ts
@@ -785,6 +999,24 @@ payload: Record<string, unknown>
785
999
  type: string
786
1000
  ```
787
1001
 
1002
+ ## `reconcileHistoricalUserTurns` (function)
1003
+
1004
+ ```ts
1005
+ reconcileHistoricalUserTurns: (currentTurns: TurnProjection[], incomingTurns: TurnProjection[]) => TurnProjection[]
1006
+ ```
1007
+
1008
+ ## `reconcileOptimisticUserTurns` (function)
1009
+
1010
+ ```ts
1011
+ reconcileOptimisticUserTurns: (currentTurns: TurnProjection[], incomingTurns: TurnProjection[]) => TurnProjection[]
1012
+ ```
1013
+
1014
+ ## `replaceWindow` (function)
1015
+
1016
+ ```ts
1017
+ replaceWindow: (current: TurnProjection[], page: TurnProjection[], liveRevisionAtStart: number, liveRevisions: LiveRevisionState) => TurnProjection[]
1018
+ ```
1019
+
788
1020
  ## `ReplayPreview` (interface)
789
1021
 
790
1022
  ```ts
@@ -819,6 +1051,12 @@ speed: ReplaySpeed | undefined
819
1051
  status: "replay" | "autonomous" | undefined
820
1052
  ```
821
1053
 
1054
+ ## `resolveServiceUrl` (function)
1055
+
1056
+ ```ts
1057
+ resolveServiceUrl: (endpoints: PlatformEndpoints, name: PlatformServiceName, path?: string) => string | null
1058
+ ```
1059
+
822
1060
  ## `ResultFeedback` (interface)
823
1061
 
824
1062
  ```ts
@@ -890,6 +1128,7 @@ SDK_VERSION: string
890
1128
 
891
1129
  ```ts
892
1130
  askUserAnswer: Record<string, unknown> | undefined
1131
+ kbIds: number[] | undefined
893
1132
  mode: string | undefined
894
1133
  model: string | undefined
895
1134
  replayDecision: "keep_replay" | "continue_replay" | undefined
@@ -897,6 +1136,33 @@ thinkingOverride: boolean | undefined
897
1136
  whatif: { from_step: number; quotes: Array<Record<string, unknown>>; deprecate_entry_ids: string[]; } | undefined
898
1137
  ```
899
1138
 
1139
+ ## `SessionComputer` (interface)
1140
+
1141
+ ```ts
1142
+ agent_runtimes: unknown[] | undefined
1143
+ allowed_paths: string[] | undefined
1144
+ arch: string | null | undefined
1145
+ blade_home: string | null | undefined
1146
+ created_at: string
1147
+ daemon_version: string | null | undefined
1148
+ enabled: boolean
1149
+ home: string | null | undefined
1150
+ hostname: string | null | undefined
1151
+ id: string
1152
+ is_primary: boolean
1153
+ label: string
1154
+ last_seen_at: string | null | undefined
1155
+ online: boolean
1156
+ os: string | null | undefined
1157
+ workspace: string | null | undefined
1158
+ ```
1159
+
1160
+ ## `SessionComputerList` (interface)
1161
+
1162
+ ```ts
1163
+ computers: SessionComputer[]
1164
+ ```
1165
+
900
1166
  ## `SessionConfig` (interface)
901
1167
 
902
1168
  ```ts
@@ -908,6 +1174,12 @@ memoryEnabled: boolean | undefined
908
1174
  model: string | undefined
909
1175
  ```
910
1176
 
1177
+ ## `SessionConnectOptions` (interface)
1178
+
1179
+ ```ts
1180
+ setup: ((session: AgentSession) => void) | undefined
1181
+ ```
1182
+
911
1183
  ## `SessionContextStats` (interface)
912
1184
 
913
1185
  ```ts
@@ -928,6 +1200,8 @@ solution: SolutionDefinition | undefined
928
1200
  ## `SessionDetail` (interface)
929
1201
 
930
1202
  ```ts
1203
+ agent_runtime_id: string | null | undefined
1204
+ ba_version: string | null | undefined
931
1205
  biz_role_id: string | null | undefined
932
1206
  bound_skill_id: string | null | undefined
933
1207
  created_at: string
@@ -952,6 +1226,7 @@ primary_skill_id: string | null | undefined
952
1226
  primary_skill_snapshot: PrimarySkillSnapshot | null | undefined
953
1227
  replay_state: ReplayState | null | undefined
954
1228
  runtime_type: string | null | undefined
1229
+ sandbox_version: string | null | undefined
955
1230
  shared: boolean | undefined
956
1231
  solution: Solution | null | undefined
957
1232
  solution_id: string | null | undefined
@@ -977,7 +1252,7 @@ tools_tokens: number | null | undefined
977
1252
  ## `SessionHub` (class)
978
1253
 
979
1254
  ```ts
980
- connect: (sessionId: string) => Promise<AgentSession>
1255
+ connect: (sessionId: string, options?: SessionConnectOptions) => Promise<AgentSession>
981
1256
  disconnect: () => void
982
1257
  disposeAll: () => void
983
1258
  getConnection: () => ConnectionStatus
@@ -1020,7 +1295,10 @@ SessionInfo = type({
1020
1295
  "disable_tools?": "string[]",
1021
1296
  "runtime_type?": "string | null",
1022
1297
  "daemon_id?": "string | null",
1298
+ "agent_runtime_id?": "string | null",
1023
1299
  "workspace_path?": "string | null",
1300
+ "ba_version?": "string | null",
1301
+ "sandbox_version?": "string | null",
1024
1302
  "match?": "unknown",
1025
1303
  })
1026
1304
  ```
@@ -1086,7 +1364,9 @@ getSessionCheckpoints: (sessionId: string, init?: RequestInit) => Promise<{ node
1086
1364
  getSessionContextStats: (sessionId: string, init?: RequestInit) => Promise<SessionContextStats>
1087
1365
  getSessionHistory: (sessionId: string, init?: RequestInit) => Promise<SessionHistory>
1088
1366
  getSessionTasks: (sessionId: string) => Promise<Task[]>
1367
+ getSessionTurnCommands: (sessionId: string) => Promise<HistoricalCommand[]>
1089
1368
  getSessionTurns: (sessionId: string) => Promise<TurnProjection[]>
1369
+ getSessionTurnsPage: (sessionId: string, options?: { limit?: number; before?: string; }) => Promise<SessionTurnsPage>
1090
1370
  getSharedSession: (token: string) => Promise<TurnProjection[]>
1091
1371
  importSession: (file: File, name?: string, solutionOverride?: string | null | ImportSessionOptions) => Promise<{ session_id: string; }>
1092
1372
  listBackgroundTasks: (sessionId: string, init?: RequestInit) => Promise<BackgroundTask[]>
@@ -1127,8 +1407,10 @@ askAnswers: Record<string, AskUserAnswerData>
1127
1407
  connection: ConnectionStatus
1128
1408
  errorMessage: string | null
1129
1409
  isStreaming: boolean
1410
+ loadingOlder: boolean
1130
1411
  messages: ChatMessage[]
1131
1412
  mode: "planning" | "executing" | null
1413
+ nextBefore: string | null
1132
1414
  replay: ReplaySnapshot | null
1133
1415
  sessionId: string
1134
1416
  status: "completed" | "failed" | "interrupted" | "running" | "created" | "waiting_for_input" | null
@@ -1144,6 +1426,14 @@ SessionStatus = type(
1144
1426
  )
1145
1427
  ```
1146
1428
 
1429
+ ## `SessionTurnsPage` (interface)
1430
+
1431
+ ```ts
1432
+ currentMode: "planning" | "executing"
1433
+ nextBefore: string | null
1434
+ turns: TurnProjection[]
1435
+ ```
1436
+
1147
1437
  ## `ShareLinkResult` (interface)
1148
1438
 
1149
1439
  ```ts
@@ -1236,6 +1526,12 @@ export type SolutionDefinition =
1236
1526
  export type SolutionRef = ExistingSolutionRef | PreparedSolutionAsset
1237
1527
  ```
1238
1528
 
1529
+ ## `sortComputers` (function)
1530
+
1531
+ ```ts
1532
+ sortComputers: (computers: SessionComputer[]) => SessionComputer[]
1533
+ ```
1534
+
1239
1535
  ## `Task` (type)
1240
1536
 
1241
1537
  ```ts
@@ -1328,13 +1624,26 @@ archived_count: number | null | undefined
1328
1624
  archived_files: ArchivedFileInfo[] | null | undefined
1329
1625
  archived_tool_calls: ArchivedToolCallInfo[] | null | undefined
1330
1626
  blocks: ContentBlock[]
1627
+ client_render_id: string | null | undefined
1628
+ client_request_id: string | null | undefined
1331
1629
  compaction_id: string | null | undefined
1630
+ context_action: ContextAction | null | undefined
1631
+ context_content: unknown
1632
+ context_key: string | null | undefined
1633
+ context_kind: string | null | undefined
1634
+ context_name: string | null | undefined
1635
+ context_order: number | null | undefined
1636
+ context_revision: string | null | undefined
1332
1637
  context_window: number | undefined
1638
+ display_summary: string | null | undefined
1639
+ display_title: string | null | undefined
1333
1640
  duration_ms: number | undefined
1334
1641
  failure_reason: string | null | undefined
1335
1642
  fallback_applied: boolean | null | undefined
1643
+ first_token_delivery_ms: number | null | undefined
1644
+ first_token_ms: number | null | undefined
1336
1645
  id: string
1337
- kind: "message" | "compaction" | undefined
1646
+ kind: "message" | "context" | "compaction" | undefined
1338
1647
  loop_id: string
1339
1648
  memory_refs: MemoryRef[] | null | undefined
1340
1649
  model: string | null | undefined
@@ -1343,8 +1652,10 @@ post_chat_followup: PostChatFollowup | null | undefined
1343
1652
  role: "user" | "assistant" | "system"
1344
1653
  saved_ratio: number | null | undefined
1345
1654
  sequence: number
1655
+ sources: ContextSourceInfo[] | null | undefined
1346
1656
  started_at: string | null | undefined
1347
1657
  status: "streaming" | "completed" | "paused" | "failed" | "interrupted"
1658
+ stream_duration_ms: number | null | undefined
1348
1659
  summary_full: string | null | undefined
1349
1660
  summary_preview: string | null | undefined
1350
1661
  tokens_after: number | null | undefined