@blade-hq/agent-react 2610.0.0-beta.50 → 2610.0.0-beta.52
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.md +18 -1
- package/dist/chunk-G3PMV62Z.js +36 -0
- package/dist/{chunk-ZXXLY4RM.js → chunk-MAAMCOAU.js} +8 -32
- package/dist/{chunk-ZXXLY4RM.js.map → chunk-MAAMCOAU.js.map} +1 -1
- package/dist/components/ChatInput.d.ts +4 -3
- package/dist/components/ChatSurface.d.ts +5 -3
- package/dist/components/McpAppCard.d.ts +14 -0
- package/dist/components/SessionPluginConfigDialog.d.ts +10 -0
- package/dist/components/SessionPluginConfigForm.d.ts +14 -0
- package/dist/components/SessionPluginIcon.d.ts +19 -0
- package/dist/components/SessionQueuePanel.d.ts +25 -0
- package/dist/components/ToolUiCardView.d.ts +9 -0
- package/dist/components/plugin-config-draft.d.ts +13 -0
- package/dist/components/plugin-config-schema.d.ts +6 -0
- package/dist/embed/entry.d.ts +17 -0
- package/dist/{highlighted-body-B3W2YXNL-YD7FAP6V.js → highlighted-body-B3W2YXNL-IASCZDV2.js} +3 -2
- package/dist/{highlighted-body-B3W2YXNL-YD7FAP6V.js.map → highlighted-body-B3W2YXNL-IASCZDV2.js.map} +1 -1
- package/dist/index.d.ts +11 -0
- package/dist/index.js +42642 -2196
- package/dist/index.js.map +1 -1
- package/dist/mermaid-3ZIDBTTL-BPVVWTVV.js +9 -0
- package/dist/mermaid-3ZIDBTTL-BPVVWTVV.js.map +1 -0
- package/dist/style.full.css +1 -1
- package/dist/webapi-W3IB5DO4.js +2481 -0
- package/dist/webapi-W3IB5DO4.js.map +1 -0
- package/package.json +2 -2
- package/public-api.md +431 -6
- package/dist/mermaid-3ZIDBTTL-N7YKJ3SM.js +0 -8
- /package/dist/{mermaid-3ZIDBTTL-N7YKJ3SM.js.map → chunk-G3PMV62Z.js.map} +0 -0
package/public-api.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
> 本文件由 `scripts/public-api-report.mjs` 生成,请勿手改。
|
|
4
4
|
> 公共面变更时重新生成本报告,并同步更新 README 对应章节——CI 会校验两者。
|
|
5
5
|
|
|
6
|
-
共
|
|
6
|
+
共 299 个公开声明。
|
|
7
7
|
|
|
8
8
|
## `acceptedPostChatFollowupCompletesLatestRun` (function)
|
|
9
9
|
|
|
@@ -76,12 +76,12 @@ toolCallId: string
|
|
|
76
76
|
## `AgentSession` (class)
|
|
77
77
|
|
|
78
78
|
```ts
|
|
79
|
-
append: (text: string) => void
|
|
80
79
|
attach: (label: string, data: unknown) => void
|
|
81
80
|
attachApp: (options: AttachAppOptions) => Promise<AppCliAttachment | null>
|
|
82
|
-
|
|
81
|
+
cancelQueuedMessage: (itemId: string, expectedVersion?: number) => Promise<QueueOperationResult>
|
|
83
82
|
compact: () => Promise<Record<string, unknown>>
|
|
84
83
|
countFiles: (dirPath?: string) => Promise<number>
|
|
84
|
+
deliverQueuedMessage: (itemId: string, expectedVersion: number) => Promise<QueueOperationResult>
|
|
85
85
|
dispose: () => void
|
|
86
86
|
downloadFile: (filePath: string, downloadName?: string) => Promise<void>
|
|
87
87
|
exitReplay: () => Promise<void>
|
|
@@ -90,17 +90,20 @@ hasOlderHistory: boolean
|
|
|
90
90
|
insertText: (text: string) => void
|
|
91
91
|
isDisposed: boolean
|
|
92
92
|
listDir: (dirPath?: string) => Promise<FileEntry[]>
|
|
93
|
-
listQueue: () => Promise<Array<{ id: number; message: string; }>>
|
|
94
93
|
loadOlderHistory: (options?: { beforeCommit?: () => void; }) => Promise<void>
|
|
95
94
|
off: <K extends keyof AgentSessionEvents>(name: K, handler: (event: AgentSessionEvents[K]) => void) => void
|
|
96
95
|
on: <K extends keyof AgentSessionEvents>(name: K, handler: (event: AgentSessionEvents[K]) => void) => () => void
|
|
97
96
|
onCommand: (action: string, handler: CommandHandler) => () => void
|
|
98
|
-
|
|
97
|
+
queueMessage: (content: string) => Promise<QueueOperationResult>
|
|
98
|
+
refreshQueue: () => Promise<QueueOperationResult>
|
|
99
|
+
reorderQueuedMessages: (expectedRevision: number, orderedIds: string[]) => Promise<QueueOperationResult>
|
|
100
|
+
resumeQueue: () => Promise<QueueOperationResult>
|
|
99
101
|
send: (content: MessageContent, options?: SendOptions) => Promise<boolean>
|
|
100
102
|
sessionId: string
|
|
101
103
|
setReplaySpeed: (speed: ReplaySpeed) => Promise<void>
|
|
102
104
|
stop: () => Promise<Record<string, unknown>>
|
|
103
105
|
subscribe: (listener: () => void) => () => void
|
|
106
|
+
updateQueuedMessage: (itemId: string, expectedVersion: number, content: string) => Promise<QueueOperationResult>
|
|
104
107
|
```
|
|
105
108
|
|
|
106
109
|
## `AgentSessionEventName` (type)
|
|
@@ -128,7 +131,7 @@ sandboxOom: { toolCallId: string; }
|
|
|
128
131
|
sessionUpdated: { intent?: string; status?: SessionStatus; model?: string | null; boundSkillId?: string | null; replayState?: Record<string, unknown> | null; }
|
|
129
132
|
taskListUpdated: { tasks: unknown[]; }
|
|
130
133
|
toolCall: { toolCall: ToolCallInfo; turn: TurnProjection; }
|
|
131
|
-
toolPreview: { toolCallId: string; type: "resource-html" | "resource-uri"; content: string; title: string; }
|
|
134
|
+
toolPreview: { toolCallId: string; type: "resource-html" | "resource-uri"; content: string; title: string; mcpApp?: McpAppData; }
|
|
132
135
|
toolResult: { toolCall: ToolCallInfo; turn: TurnProjection; source: "live" | "bootstrap_replay" | "reconnect_replay"; }
|
|
133
136
|
workspaceChanged: { filePath?: string; }
|
|
134
137
|
```
|
|
@@ -290,6 +293,7 @@ responseFromInit: (path: string, init?: RequestInit) => Promise<Response>
|
|
|
290
293
|
sessions: SessionsResource
|
|
291
294
|
setBaseUrl: (baseUrl: string) => void
|
|
292
295
|
setToken: (token: string | null) => void
|
|
296
|
+
siteVisits: SiteVisitsResource
|
|
293
297
|
socket: () => TypedSocket
|
|
294
298
|
text: (method: HttpMethod, path: string) => Promise<string>
|
|
295
299
|
textFromInit: (path: string, init?: RequestInit) => Promise<string>
|
|
@@ -326,6 +330,30 @@ client: BladeClient
|
|
|
326
330
|
buildMessageContent: (text: string, attachments: Array<{ kind: "file"; name: string; uploadedPath?: string; textContent?: string | null; mimeType?: string; }>) => MessageContent
|
|
327
331
|
```
|
|
328
332
|
|
|
333
|
+
## `buildToolUiCardKey` (function)
|
|
334
|
+
|
|
335
|
+
```ts
|
|
336
|
+
buildToolUiCardKey: (toolCallId: string, type: ToolUiCardContentType, content: string) => string
|
|
337
|
+
```
|
|
338
|
+
|
|
339
|
+
## `canCancelQueuedMessage` (function)
|
|
340
|
+
|
|
341
|
+
```ts
|
|
342
|
+
canCancelQueuedMessage: (item: QueuedMessage) => boolean
|
|
343
|
+
```
|
|
344
|
+
|
|
345
|
+
## `canDeliverQueuedMessage` (function)
|
|
346
|
+
|
|
347
|
+
```ts
|
|
348
|
+
canDeliverQueuedMessage: (item: QueuedMessage) => boolean
|
|
349
|
+
```
|
|
350
|
+
|
|
351
|
+
## `canEditQueuedMessage` (function)
|
|
352
|
+
|
|
353
|
+
```ts
|
|
354
|
+
canEditQueuedMessage: (item: QueuedMessage) => boolean
|
|
355
|
+
```
|
|
356
|
+
|
|
329
357
|
## `canToggleComputer` (function)
|
|
330
358
|
|
|
331
359
|
```ts
|
|
@@ -450,12 +478,24 @@ reset: () => void
|
|
|
450
478
|
seedSequence: (maxSeq: number) => void
|
|
451
479
|
```
|
|
452
480
|
|
|
481
|
+
## `collectInlineToolUiCards` (function)
|
|
482
|
+
|
|
483
|
+
```ts
|
|
484
|
+
collectInlineToolUiCards: (messages: ChatMessage[]) => InlineToolUiCardEntry[]
|
|
485
|
+
```
|
|
486
|
+
|
|
453
487
|
## `collectMemoryRefs` (function)
|
|
454
488
|
|
|
455
489
|
```ts
|
|
456
490
|
collectMemoryRefs: (messages: ChatMessage[]) => MemoryRefInfo[]
|
|
457
491
|
```
|
|
458
492
|
|
|
493
|
+
## `collectPreviewToolUiCards` (function)
|
|
494
|
+
|
|
495
|
+
```ts
|
|
496
|
+
collectPreviewToolUiCards: (messages: ChatMessage[]) => PreviewToolUiCardEntry[]
|
|
497
|
+
```
|
|
498
|
+
|
|
459
499
|
## `CommandEnvelope` (interface)
|
|
460
500
|
|
|
461
501
|
```ts
|
|
@@ -727,6 +767,12 @@ iframe: HTMLIFrameElement | undefined
|
|
|
727
767
|
EMPTY_PLATFORM_ENDPOINTS: PlatformEndpoints
|
|
728
768
|
```
|
|
729
769
|
|
|
770
|
+
## `EMPTY_SESSION_QUEUE` (const)
|
|
771
|
+
|
|
772
|
+
```ts
|
|
773
|
+
EMPTY_SESSION_QUEUE: SessionQueueSnapshot
|
|
774
|
+
```
|
|
775
|
+
|
|
730
776
|
## `ExchangeCodeParams` (interface)
|
|
731
777
|
|
|
732
778
|
```ts
|
|
@@ -963,6 +1009,14 @@ direction: "host-to-agent"
|
|
|
963
1009
|
payload: unknown
|
|
964
1010
|
```
|
|
965
1011
|
|
|
1012
|
+
## `InlineToolUiCardEntry` (interface)
|
|
1013
|
+
|
|
1014
|
+
```ts
|
|
1015
|
+
card: ToolUiCard
|
|
1016
|
+
key: string
|
|
1017
|
+
toolCallId: string
|
|
1018
|
+
```
|
|
1019
|
+
|
|
966
1020
|
## `isAgentComputerCommand` (function)
|
|
967
1021
|
|
|
968
1022
|
```ts
|
|
@@ -975,6 +1029,12 @@ isAgentComputerCommand: (command: string) => boolean
|
|
|
975
1029
|
isAgentComputerToolCall: (argumentsJson: string | null | undefined) => boolean
|
|
976
1030
|
```
|
|
977
1031
|
|
|
1032
|
+
## `isAppDevToolUiCard` (function)
|
|
1033
|
+
|
|
1034
|
+
```ts
|
|
1035
|
+
isAppDevToolUiCard: (card: ToolUiCard, isAppDev: boolean) => boolean
|
|
1036
|
+
```
|
|
1037
|
+
|
|
978
1038
|
## `isCommandEnvelope` (function)
|
|
979
1039
|
|
|
980
1040
|
```ts
|
|
@@ -993,12 +1053,36 @@ isHiddenInternalMessage: (message: Pick<ChatMessage, "role" | "content">, option
|
|
|
993
1053
|
isInboundEnvelope: (value: unknown) => value is InboundEnvelope
|
|
994
1054
|
```
|
|
995
1055
|
|
|
1056
|
+
## `isInternalStatusToolUiCard` (function)
|
|
1057
|
+
|
|
1058
|
+
```ts
|
|
1059
|
+
isInternalStatusToolUiCard: (card: { title?: string | null; } | null) => boolean
|
|
1060
|
+
```
|
|
1061
|
+
|
|
1062
|
+
## `isMcpAppData` (function)
|
|
1063
|
+
|
|
1064
|
+
```ts
|
|
1065
|
+
isMcpAppData: (value: unknown) => value is McpAppData
|
|
1066
|
+
```
|
|
1067
|
+
|
|
996
1068
|
## `isPlanUpdateTool` (function)
|
|
997
1069
|
|
|
998
1070
|
```ts
|
|
999
1071
|
isPlanUpdateTool: (toolCall: Pick<ToolCallInfo, "name">) => boolean
|
|
1000
1072
|
```
|
|
1001
1073
|
|
|
1074
|
+
## `isSessionQueueSnapshot` (function)
|
|
1075
|
+
|
|
1076
|
+
```ts
|
|
1077
|
+
isSessionQueueSnapshot: (value: unknown) => value is SessionQueueSnapshot
|
|
1078
|
+
```
|
|
1079
|
+
|
|
1080
|
+
## `isToolUiCard` (function)
|
|
1081
|
+
|
|
1082
|
+
```ts
|
|
1083
|
+
isToolUiCard: (value: unknown) => value is ToolUiCard
|
|
1084
|
+
```
|
|
1085
|
+
|
|
1002
1086
|
## `latestPostChatFollowup` (function)
|
|
1003
1087
|
|
|
1004
1088
|
```ts
|
|
@@ -1154,6 +1238,64 @@ mode: "streaming" | "static" | undefined
|
|
|
1154
1238
|
sessionId: string | undefined
|
|
1155
1239
|
```
|
|
1156
1240
|
|
|
1241
|
+
## `McpAppArchive` (interface)
|
|
1242
|
+
|
|
1243
|
+
```ts
|
|
1244
|
+
html: string
|
|
1245
|
+
mimeType: string
|
|
1246
|
+
plugin: string
|
|
1247
|
+
previousToolInput: Record<string, unknown> | undefined
|
|
1248
|
+
previousToolResult: Record<string, unknown> | undefined
|
|
1249
|
+
resourceMeta: Record<string, unknown>
|
|
1250
|
+
resourceUri: string
|
|
1251
|
+
sourceId: string
|
|
1252
|
+
toolInput: Record<string, unknown>
|
|
1253
|
+
toolResult: Record<string, unknown>
|
|
1254
|
+
```
|
|
1255
|
+
|
|
1256
|
+
## `McpAppCard` (function)
|
|
1257
|
+
|
|
1258
|
+
```ts
|
|
1259
|
+
McpAppCard: ({ sessionId, sourceId, client: suppliedClient, onMessage: suppliedOnMessage }: { sessionId: string; sourceId: string; client?: BladeClient; onMessage?: (message: McpAppMessage) => void; }) => JSX.Element
|
|
1260
|
+
```
|
|
1261
|
+
|
|
1262
|
+
## `McpAppContextState` (interface)
|
|
1263
|
+
|
|
1264
|
+
```ts
|
|
1265
|
+
content: string
|
|
1266
|
+
plugin: string | null
|
|
1267
|
+
revision: string
|
|
1268
|
+
server_alias: string | null
|
|
1269
|
+
```
|
|
1270
|
+
|
|
1271
|
+
## `McpAppContextUpdate` (interface)
|
|
1272
|
+
|
|
1273
|
+
```ts
|
|
1274
|
+
content: string
|
|
1275
|
+
expected_revision: string | null
|
|
1276
|
+
request_id: string
|
|
1277
|
+
```
|
|
1278
|
+
|
|
1279
|
+
## `McpAppData` (interface)
|
|
1280
|
+
|
|
1281
|
+
```ts
|
|
1282
|
+
mimeType: string
|
|
1283
|
+
resourceMeta: Record<string, unknown>
|
|
1284
|
+
resourceUri: string
|
|
1285
|
+
sourceId: string
|
|
1286
|
+
toolInput: Record<string, unknown>
|
|
1287
|
+
toolResult: Record<string, unknown>
|
|
1288
|
+
```
|
|
1289
|
+
|
|
1290
|
+
## `McpAppMessage` (interface)
|
|
1291
|
+
|
|
1292
|
+
```ts
|
|
1293
|
+
content: string
|
|
1294
|
+
label: string
|
|
1295
|
+
sessionId: string
|
|
1296
|
+
sourceId: string
|
|
1297
|
+
```
|
|
1298
|
+
|
|
1157
1299
|
## `MemoryRef` (interface)
|
|
1158
1300
|
|
|
1159
1301
|
```ts
|
|
@@ -1269,6 +1411,12 @@ userText: string
|
|
|
1269
1411
|
parsePlanUpdate: (argumentsJson: string) => PlanUpdateData | null
|
|
1270
1412
|
```
|
|
1271
1413
|
|
|
1414
|
+
## `parseQueueAck` (function)
|
|
1415
|
+
|
|
1416
|
+
```ts
|
|
1417
|
+
parseQueueAck: (response: unknown, fallbackSessionId: string) => QueueOperationResult
|
|
1418
|
+
```
|
|
1419
|
+
|
|
1272
1420
|
## `parseWhatIfPrompt` (function)
|
|
1273
1421
|
|
|
1274
1422
|
```ts
|
|
@@ -1378,6 +1526,15 @@ kind: "prepared"
|
|
|
1378
1526
|
prependOlder: (current: TurnProjection[], page: TurnProjection[]) => TurnProjection[]
|
|
1379
1527
|
```
|
|
1380
1528
|
|
|
1529
|
+
## `PreviewToolUiCardEntry` (interface)
|
|
1530
|
+
|
|
1531
|
+
```ts
|
|
1532
|
+
blocks: ContentBlock[]
|
|
1533
|
+
card: ToolUiCard
|
|
1534
|
+
key: string
|
|
1535
|
+
toolCall: ToolCallInfo
|
|
1536
|
+
```
|
|
1537
|
+
|
|
1381
1538
|
## `PrimarySkillParallelMode` (interface)
|
|
1382
1539
|
|
|
1383
1540
|
```ts
|
|
@@ -1413,6 +1570,59 @@ export type PublishedSolutionRef =
|
|
|
1413
1570
|
| { source: "hub"; org: string; name: string }
|
|
1414
1571
|
```
|
|
1415
1572
|
|
|
1573
|
+
## `QueueAck` (interface)
|
|
1574
|
+
|
|
1575
|
+
```ts
|
|
1576
|
+
items: QueuedMessage[] | undefined
|
|
1577
|
+
message: string | null | undefined
|
|
1578
|
+
pause_reason: string | null | undefined
|
|
1579
|
+
paused: boolean | undefined
|
|
1580
|
+
revision: number | undefined
|
|
1581
|
+
session_id: string | undefined
|
|
1582
|
+
status: "error" | "ok" | "conflict"
|
|
1583
|
+
```
|
|
1584
|
+
|
|
1585
|
+
## `QueuedMessage` (interface)
|
|
1586
|
+
|
|
1587
|
+
```ts
|
|
1588
|
+
content: string
|
|
1589
|
+
created_at: string
|
|
1590
|
+
error: string | undefined
|
|
1591
|
+
id: string
|
|
1592
|
+
position: number
|
|
1593
|
+
status: QueuedMessageStatus
|
|
1594
|
+
target_run_id: string | undefined
|
|
1595
|
+
updated_at: string
|
|
1596
|
+
version: number
|
|
1597
|
+
```
|
|
1598
|
+
|
|
1599
|
+
## `QueuedMessageStatus` (type)
|
|
1600
|
+
|
|
1601
|
+
```ts
|
|
1602
|
+
export type QueuedMessageStatus = "pending" | "delivering" | "claimed" | "consumed" | "cancelled"
|
|
1603
|
+
```
|
|
1604
|
+
|
|
1605
|
+
## `queuedMessageStatusLabel` (function)
|
|
1606
|
+
|
|
1607
|
+
```ts
|
|
1608
|
+
queuedMessageStatusLabel: (status: QueuedMessageStatus) => string
|
|
1609
|
+
```
|
|
1610
|
+
|
|
1611
|
+
## `QueueOperationResult` (interface)
|
|
1612
|
+
|
|
1613
|
+
```ts
|
|
1614
|
+
conflict: boolean
|
|
1615
|
+
message: string | null
|
|
1616
|
+
ok: boolean
|
|
1617
|
+
snapshot: SessionQueueSnapshot | null
|
|
1618
|
+
```
|
|
1619
|
+
|
|
1620
|
+
## `queuePauseReasonLabel` (function)
|
|
1621
|
+
|
|
1622
|
+
```ts
|
|
1623
|
+
queuePauseReasonLabel: (reason: string | null | undefined) => string | null
|
|
1624
|
+
```
|
|
1625
|
+
|
|
1416
1626
|
## `RawEvent` (interface)
|
|
1417
1627
|
|
|
1418
1628
|
```ts
|
|
@@ -1516,6 +1726,12 @@ status: "replay" | "autonomous" | undefined
|
|
|
1516
1726
|
resolveServiceUrl: (endpoints: PlatformEndpoints, name: PlatformServiceName, path?: string) => string | null
|
|
1517
1727
|
```
|
|
1518
1728
|
|
|
1729
|
+
## `resolveToolUiCardContent` (function)
|
|
1730
|
+
|
|
1731
|
+
```ts
|
|
1732
|
+
resolveToolUiCardContent: (card: ToolUiCard) => { type: ToolUiCardContentType; content: string; } | null
|
|
1733
|
+
```
|
|
1734
|
+
|
|
1519
1735
|
## `ResultFeedback` (interface)
|
|
1520
1736
|
|
|
1521
1737
|
```ts
|
|
@@ -1789,6 +2005,9 @@ sessionId: string
|
|
|
1789
2005
|
|
|
1790
2006
|
```ts
|
|
1791
2007
|
active: boolean
|
|
2008
|
+
config: SessionPluginConfigSummary | undefined
|
|
2009
|
+
display_name: string | null | undefined
|
|
2010
|
+
icon: string | null | undefined
|
|
1792
2011
|
installed: boolean | null
|
|
1793
2012
|
name: string
|
|
1794
2013
|
projected: boolean
|
|
@@ -1803,6 +2022,121 @@ status: string
|
|
|
1803
2022
|
export type SessionPluginActivation = Pick<SessionPlugin, "name" | "active" | "status" | "reason">
|
|
1804
2023
|
```
|
|
1805
2024
|
|
|
2025
|
+
## `SessionPluginConfigDialog` (function)
|
|
2026
|
+
|
|
2027
|
+
```ts
|
|
2028
|
+
SessionPluginConfigDialog: ({ client, sessionId, plugin, ...props }: SessionPluginConfigDialogProps) => JSX.Element
|
|
2029
|
+
```
|
|
2030
|
+
|
|
2031
|
+
## `SessionPluginConfigDialogProps` (interface)
|
|
2032
|
+
|
|
2033
|
+
```ts
|
|
2034
|
+
client: BladeClient
|
|
2035
|
+
onClose: () => void
|
|
2036
|
+
onSaved: ((state: SessionPluginConfigState) => void) | undefined
|
|
2037
|
+
plugin: Pick<SessionPlugin, "name" | "display_name" | "icon">
|
|
2038
|
+
sessionId: string
|
|
2039
|
+
```
|
|
2040
|
+
|
|
2041
|
+
## `SessionPluginConfigDraft` (interface)
|
|
2042
|
+
|
|
2043
|
+
```ts
|
|
2044
|
+
remove: string[]
|
|
2045
|
+
set: SessionPluginConfigSet[]
|
|
2046
|
+
```
|
|
2047
|
+
|
|
2048
|
+
## `SessionPluginConfigError` (interface)
|
|
2049
|
+
|
|
2050
|
+
```ts
|
|
2051
|
+
message: string
|
|
2052
|
+
path: string
|
|
2053
|
+
```
|
|
2054
|
+
|
|
2055
|
+
## `SessionPluginConfigForm` (function)
|
|
2056
|
+
|
|
2057
|
+
```ts
|
|
2058
|
+
SessionPluginConfigForm: ({ config, submitting, errors, failure, onSubmit, onCancel, }: SessionPluginConfigFormProps) => JSX.Element
|
|
2059
|
+
```
|
|
2060
|
+
|
|
2061
|
+
## `SessionPluginConfigFormProps` (interface)
|
|
2062
|
+
|
|
2063
|
+
```ts
|
|
2064
|
+
config: SessionPluginConfigState
|
|
2065
|
+
errors: SessionPluginConfigError[]
|
|
2066
|
+
failure: string | null
|
|
2067
|
+
onCancel: () => void
|
|
2068
|
+
onSubmit: (draft: SessionPluginConfigDraft) => void
|
|
2069
|
+
submitting: boolean
|
|
2070
|
+
```
|
|
2071
|
+
|
|
2072
|
+
## `SessionPluginConfigSet` (interface)
|
|
2073
|
+
|
|
2074
|
+
```ts
|
|
2075
|
+
path: string
|
|
2076
|
+
value: unknown
|
|
2077
|
+
```
|
|
2078
|
+
|
|
2079
|
+
## `SessionPluginConfigState` (interface)
|
|
2080
|
+
|
|
2081
|
+
```ts
|
|
2082
|
+
errors: SessionPluginConfigError[]
|
|
2083
|
+
reason: string | null
|
|
2084
|
+
revision: string | null
|
|
2085
|
+
schema: Record<string, unknown> | null
|
|
2086
|
+
state: SessionPluginConfigStateName
|
|
2087
|
+
values: Record<string, unknown>
|
|
2088
|
+
write_only: string[]
|
|
2089
|
+
```
|
|
2090
|
+
|
|
2091
|
+
## `SessionPluginConfigStateName` (type)
|
|
2092
|
+
|
|
2093
|
+
```ts
|
|
2094
|
+
export type SessionPluginConfigStateName = "not_required" | "required" | "configured" | "error"
|
|
2095
|
+
```
|
|
2096
|
+
|
|
2097
|
+
## `SessionPluginConfigSummary` (type)
|
|
2098
|
+
|
|
2099
|
+
```ts
|
|
2100
|
+
export type SessionPluginConfigSummary =
|
|
2101
|
+
| SessionPluginConfigStateName
|
|
2102
|
+
| "unchecked"
|
|
2103
|
+
```
|
|
2104
|
+
|
|
2105
|
+
## `SessionPluginConfigUpdate` (interface)
|
|
2106
|
+
|
|
2107
|
+
```ts
|
|
2108
|
+
expected_revision: string | null | undefined
|
|
2109
|
+
remove: string[] | undefined
|
|
2110
|
+
set: SessionPluginConfigSet[] | undefined
|
|
2111
|
+
```
|
|
2112
|
+
|
|
2113
|
+
## `SessionPluginIcon` (function)
|
|
2114
|
+
|
|
2115
|
+
```ts
|
|
2116
|
+
SessionPluginIcon: ({ client, sessionId, plugin, className }: SessionPluginIconProps) => JSX.Element
|
|
2117
|
+
```
|
|
2118
|
+
|
|
2119
|
+
## `SessionPluginIconProps` (interface)
|
|
2120
|
+
|
|
2121
|
+
```ts
|
|
2122
|
+
className: string | undefined
|
|
2123
|
+
client: BladeClient
|
|
2124
|
+
plugin: Pick<SessionPlugin, "name" | "icon">
|
|
2125
|
+
sessionId: string
|
|
2126
|
+
```
|
|
2127
|
+
|
|
2128
|
+
## `sessionPluginLabel` (function)
|
|
2129
|
+
|
|
2130
|
+
```ts
|
|
2131
|
+
sessionPluginLabel: (plugin: Pick<SessionPlugin, "name" | "display_name">) => string
|
|
2132
|
+
```
|
|
2133
|
+
|
|
2134
|
+
## `SessionPluginLabelProps` (interface)
|
|
2135
|
+
|
|
2136
|
+
```ts
|
|
2137
|
+
plugin: Pick<SessionPlugin, "name" | "display_name">
|
|
2138
|
+
```
|
|
2139
|
+
|
|
1806
2140
|
## `SessionPluginSelector` (function)
|
|
1807
2141
|
|
|
1808
2142
|
```ts
|
|
@@ -1838,6 +2172,38 @@ model: string | undefined
|
|
|
1838
2172
|
solution: SolutionRef | undefined
|
|
1839
2173
|
```
|
|
1840
2174
|
|
|
2175
|
+
## `SessionQueuePanel` (function)
|
|
2176
|
+
|
|
2177
|
+
```ts
|
|
2178
|
+
SessionQueuePanel: ({ snapshot, canDeliver, pendingItemId, notice, onResume, onCancel, onEdit, onRequeue, onMove, onReorder, onDeliver, }: SessionQueuePanelProps) => JSX.Element | null
|
|
2179
|
+
```
|
|
2180
|
+
|
|
2181
|
+
## `SessionQueuePanelProps` (interface)
|
|
2182
|
+
|
|
2183
|
+
```ts
|
|
2184
|
+
canDeliver: boolean
|
|
2185
|
+
notice: string | null | undefined
|
|
2186
|
+
onCancel: (item: QueuedMessage) => void
|
|
2187
|
+
onDeliver: (item: QueuedMessage) => void
|
|
2188
|
+
onEdit: (item: QueuedMessage, content: string) => boolean | undefined | Promise<boolean>
|
|
2189
|
+
onMove: (item: QueuedMessage, delta: -1 | 1) => void
|
|
2190
|
+
onReorder: (orderedIds: string[]) => void
|
|
2191
|
+
onRequeue: ((content: string) => Promise<boolean>) | undefined
|
|
2192
|
+
onResume: () => void
|
|
2193
|
+
pendingItemId: string | null | undefined
|
|
2194
|
+
snapshot: SessionQueueSnapshot
|
|
2195
|
+
```
|
|
2196
|
+
|
|
2197
|
+
## `SessionQueueSnapshot` (interface)
|
|
2198
|
+
|
|
2199
|
+
```ts
|
|
2200
|
+
items: QueuedMessage[]
|
|
2201
|
+
pause_reason: string | null
|
|
2202
|
+
paused: boolean
|
|
2203
|
+
revision: number
|
|
2204
|
+
session_id: string
|
|
2205
|
+
```
|
|
2206
|
+
|
|
1841
2207
|
## `SessionSetupError` (class)
|
|
1842
2208
|
|
|
1843
2209
|
```ts
|
|
@@ -1859,6 +2225,7 @@ export type SessionSetupStage = "solution" | "session" | "skill" | "connection"
|
|
|
1859
2225
|
|
|
1860
2226
|
```ts
|
|
1861
2227
|
attachAppCli: (sessionId: string, definition: AppCliDefinition) => Promise<AppCliAttachment>
|
|
2228
|
+
callMcpApp: (sessionId: string, sourceId: string, request: { request_id: string; name: string; arguments: Record<string, unknown>; }, init?: RequestInit) => Promise<{ response: Record<string, unknown>; replayed: boolean; }>
|
|
1862
2229
|
checkoutSession: (sessionId: string, checkpointId: string, position: "before" | "turn_end", mode?: "both" | "conversation" | "code", linear?: boolean) => Promise<{ id: string; content: string; position: string; mode?: string; files_restored?: boolean; linear?: boolean; }>
|
|
1863
2230
|
connect: (sessionId: string) => Promise<AgentSession>
|
|
1864
2231
|
copyFile: (sessionId: string, filePath: string) => Promise<{ path: string; }>
|
|
@@ -1872,13 +2239,17 @@ deleteFile: (sessionId: string, filePath: string) => Promise<void>
|
|
|
1872
2239
|
deleteSession: (sessionId: string, options?: { deleteWorkspace?: boolean; }) => Promise<{ deleted: boolean; workspace_deleted?: boolean; }>
|
|
1873
2240
|
downloadFile: (sessionId: string, filePath: string, downloadName?: string) => Promise<void>
|
|
1874
2241
|
exportSession: (sessionId: string) => Promise<void>
|
|
2242
|
+
fetchSessionPluginIcon: (sessionId: string, name: string) => Promise<Blob>
|
|
1875
2243
|
getBackgroundTask: (sessionId: string, taskId: string, tail?: number, init?: RequestInit) => Promise<BackgroundTask>
|
|
1876
2244
|
getDownloadDirUrl: (sessionId: string, dirPath: string) => string
|
|
2245
|
+
getMcpApp: (sessionId: string, sourceId: string, init?: RequestInit) => Promise<McpAppArchive>
|
|
2246
|
+
getMcpAppContext: (sessionId: string, sourceId: string, init?: RequestInit) => Promise<McpAppContextState>
|
|
1877
2247
|
getReplayPreview: (sessionId: string) => Promise<ReplayPreview>
|
|
1878
2248
|
getSession: (sessionId: string, init?: RequestInit) => Promise<SessionDetail>
|
|
1879
2249
|
getSessionCheckpoints: (sessionId: string, init?: RequestInit) => Promise<{ nodes: CheckpointNode[]; leaf_id: string | null; }>
|
|
1880
2250
|
getSessionContextStats: (sessionId: string, init?: RequestInit) => Promise<SessionContextStats>
|
|
1881
2251
|
getSessionHistory: (sessionId: string, init?: RequestInit) => Promise<SessionHistory>
|
|
2252
|
+
getSessionPluginConfig: (sessionId: string, name: string, init?: RequestInit) => Promise<{ plugin: string; config: SessionPluginConfigState; }>
|
|
1882
2253
|
getSessionTasks: (sessionId: string) => Promise<Task[]>
|
|
1883
2254
|
getSessionTurnCommands: (sessionId: string) => Promise<HistoricalCommand[]>
|
|
1884
2255
|
getSessionTurns: (sessionId: string) => Promise<TurnProjection[]>
|
|
@@ -1892,6 +2263,7 @@ listSessionPlugins: (sessionId: string, init?: RequestInit) => Promise<{ plugins
|
|
|
1892
2263
|
listSessions: (template_id_prefix?: string, solution_id?: string) => Promise<SessionInfo[]>
|
|
1893
2264
|
listSessionsPaginated: (params: { limit: number; offset: number; template_id_prefix?: string; solution_id?: string; solution_registry_id?: string; q?: string; chat_project_id?: string; }) => Promise<PaginatedSessionsResult>
|
|
1894
2265
|
listSessionsWithSkillData: () => Promise<SkillDevSession[]>
|
|
2266
|
+
onMcpAppChanged: (sessionId: string, sourceId: string, listener: () => void) => () => void
|
|
1895
2267
|
pinSession: (sessionId: string, pinned: boolean) => Promise<SessionInfo>
|
|
1896
2268
|
previewImport: (file: File) => Promise<ImportPreview>
|
|
1897
2269
|
probeSessionUrl: (sessionId: string, url: string) => Promise<{ reachable: boolean; requires_proxy: boolean; }>
|
|
@@ -1900,6 +2272,7 @@ renameFile: (sessionId: string, filePath: string, newName: string) => Promise<{
|
|
|
1900
2272
|
revokeShare: (sessionId: string, token: string) => Promise<{ revoked: boolean; }>
|
|
1901
2273
|
rewindSession: (sessionId: string, checkpointId: string) => Promise<{ id: string; content: string; }>
|
|
1902
2274
|
searchOwnedContent: (params: { q: string; limit?: number; }) => Promise<GlobalSearchResult>
|
|
2275
|
+
sessionPluginIconUrl: (sessionId: string, name: string) => string
|
|
1903
2276
|
setSessionEnv: (sessionId: string, env: Record<string, string>) => Promise<SessionDetail>
|
|
1904
2277
|
setSessionPluginActivation: (sessionId: string, name: string, active: boolean, init?: RequestInit) => Promise<{ plugin: SessionPluginActivation; sync_version: number; }>
|
|
1905
2278
|
shareFile: (sessionId: string, sourcePath: string, linkName?: string, shareFolder?: string) => Promise<{ path: string; target: string; }>
|
|
@@ -1908,9 +2281,11 @@ stopBackgroundTask: (sessionId: string, taskId: string) => Promise<BackgroundTas
|
|
|
1908
2281
|
switchBranch: (sessionId: string, checkpointId: string) => Promise<{ id: string; leaf_id: string; }>
|
|
1909
2282
|
tokenizeMessages: (messages: Array<Record<string, unknown>>, options?: { model?: string; add_generation_prompt?: boolean; enable_thinking?: boolean | null; tools?: Array<Record<string, unknown>>; }) => Promise<TokenizeResult>
|
|
1910
2283
|
tokenizePrompt: (prompt: string, model?: string) => Promise<TokenizeResult>
|
|
2284
|
+
updateMcpAppContext: (sessionId: string, sourceId: string, body: McpAppContextUpdate, init?: RequestInit) => Promise<{ status: "accepted"; revision: string; }>
|
|
1911
2285
|
updateReplaySession: (sessionId: string, payload: { speed?: ReplaySpeed; status?: "autonomous"; }) => Promise<{ replay_state: SessionInfo["replay_state"]; }>
|
|
1912
2286
|
updateSession: (sessionId: string, payload: { intent?: string; chat_project_id?: string | null; }) => Promise<SessionDetail>
|
|
1913
2287
|
updateSessionMemory: (sessionId: string, memoryEnabled: boolean) => Promise<{ memory_enabled: boolean; }>
|
|
2288
|
+
updateSessionPluginConfig: (sessionId: string, name: string, update: SessionPluginConfigUpdate, init?: RequestInit) => Promise<{ plugin: string; config: SessionPluginConfigState; }>
|
|
1914
2289
|
updateSharing: (sessionId: string, shared: boolean) => Promise<{ shared: boolean; }>
|
|
1915
2290
|
uploadFiles: (sessionId: string, dirPath: string, files: FileList | File[] | UploadFileEntry[], options?: UploadFilesOptions) => Promise<{ uploaded: string[]; failed: string[]; }>
|
|
1916
2291
|
writeFile: (sessionId: string, filePath: string, content: string) => Promise<{ success: boolean; }>
|
|
@@ -1929,6 +2304,7 @@ loadingOlder: boolean
|
|
|
1929
2304
|
messages: ChatMessage[]
|
|
1930
2305
|
mode: "planning" | "executing" | null
|
|
1931
2306
|
nextBefore: string | null
|
|
2307
|
+
queue: SessionQueueSnapshot
|
|
1932
2308
|
replay: ReplaySnapshot | null
|
|
1933
2309
|
sessionId: string
|
|
1934
2310
|
status: "completed" | "failed" | "interrupted" | "running" | "created" | "waiting_for_input" | null
|
|
@@ -1960,6 +2336,30 @@ token: string
|
|
|
1960
2336
|
url: string
|
|
1961
2337
|
```
|
|
1962
2338
|
|
|
2339
|
+
## `shouldApplySnapshot` (function)
|
|
2340
|
+
|
|
2341
|
+
```ts
|
|
2342
|
+
shouldApplySnapshot: (current: SessionQueueSnapshot | undefined, next: SessionQueueSnapshot) => boolean
|
|
2343
|
+
```
|
|
2344
|
+
|
|
2345
|
+
## `SiteVisitsResource` (class)
|
|
2346
|
+
|
|
2347
|
+
```ts
|
|
2348
|
+
record: () => Promise<SiteVisitsSummary>
|
|
2349
|
+
summary: () => Promise<SiteVisitsSummary>
|
|
2350
|
+
```
|
|
2351
|
+
|
|
2352
|
+
## `SiteVisitsSummary` (interface)
|
|
2353
|
+
|
|
2354
|
+
```ts
|
|
2355
|
+
as_of: string
|
|
2356
|
+
date: string
|
|
2357
|
+
timezone: string
|
|
2358
|
+
today_pv: number
|
|
2359
|
+
today_uv: number
|
|
2360
|
+
total_pv: number
|
|
2361
|
+
```
|
|
2362
|
+
|
|
1963
2363
|
## `SkillDefinition` (interface)
|
|
1964
2364
|
|
|
1965
2365
|
```ts
|
|
@@ -2129,6 +2529,31 @@ status: "done" | "error" | "cancelled" | "awaiting_answer" | "pending" | undefin
|
|
|
2129
2529
|
export type ToolCallRenderer = (info: ToolCallInfo) => ReactNode | null
|
|
2130
2530
|
```
|
|
2131
2531
|
|
|
2532
|
+
## `ToolUiCard` (interface)
|
|
2533
|
+
|
|
2534
|
+
```ts
|
|
2535
|
+
archived: boolean | undefined
|
|
2536
|
+
height: number
|
|
2537
|
+
mcpApp: McpAppData | undefined
|
|
2538
|
+
resourceHTML: string | undefined
|
|
2539
|
+
resourceUri: string | undefined
|
|
2540
|
+
resourceURI: string | undefined
|
|
2541
|
+
target: "inline" | "preview"
|
|
2542
|
+
title: string | undefined
|
|
2543
|
+
```
|
|
2544
|
+
|
|
2545
|
+
## `ToolUiCardContentType` (type)
|
|
2546
|
+
|
|
2547
|
+
```ts
|
|
2548
|
+
export type ToolUiCardContentType = "resource-html" | "resource-uri"
|
|
2549
|
+
```
|
|
2550
|
+
|
|
2551
|
+
## `ToolUiCardView` (function)
|
|
2552
|
+
|
|
2553
|
+
```ts
|
|
2554
|
+
ToolUiCardView: ({ card, sessionId }: { card: ToolUiCard; sessionId?: string; }) => JSX.Element | null
|
|
2555
|
+
```
|
|
2556
|
+
|
|
2132
2557
|
## `toReplaySnapshot` (function)
|
|
2133
2558
|
|
|
2134
2559
|
```ts
|
|
File without changes
|