dsh-edge 0.18.0 → 0.19.0-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 +8 -8
- package/README.zh.md +8 -8
- package/THIRD_PARTY_NOTICES.md +2011 -449
- package/dist/assets/fonts/Montserrat-OFL.txt +93 -0
- package/dist/assets/fonts/montserrat-light-Cvd2VjE_.woff2 +0 -0
- package/dist/assets/fonts/montserrat-medium-B4OyO9CN.woff2 +0 -0
- package/dist/assets/fonts/montserrat-regular-DYep38cA.woff2 +0 -0
- package/dist/assets/index-Cq6ljTv2.css +1 -0
- package/dist/assets/index-Dy0OhsZ5.js +127 -0
- package/dist/assets/langs/asciidoc-Ve4PFQV2.js +2 -0
- package/dist/assets/langs/bat-BkioyH1T.js +2 -0
- package/dist/assets/langs/bibtex-CHM0blh-.js +2 -0
- package/dist/assets/langs/clojure-P80f7IUj.js +2 -0
- package/dist/assets/langs/cmake-D1j8_8rp.js +2 -0
- package/dist/assets/langs/csv-fuZLfV_i.js +2 -0
- package/dist/assets/langs/dart-bE4Kk8sk.js +2 -0
- package/dist/assets/langs/diff-D97Zzqfu.js +2 -0
- package/dist/assets/langs/dotenv-Da5cRb03.js +2 -0
- package/dist/assets/langs/elixir-CvYZzuDY.js +2 -0
- package/dist/assets/langs/erlang-DsQrWhSR.js +2 -0
- package/dist/assets/langs/fish-BvzEVeQv.js +2 -0
- package/dist/assets/langs/fsharp-CXgrBDvD.js +2 -0
- package/dist/assets/langs/graphql-DujV8YkJ.js +2 -0
- package/dist/assets/langs/groovy-gcz8RCvz.js +2 -0
- package/dist/assets/langs/haskell-Df6bDoY_.js +2 -0
- package/dist/assets/langs/hcl-BWvSN4gD.js +2 -0
- package/dist/assets/langs/html-derivative-DOyKdj44.js +2 -0
- package/dist/assets/langs/html-fwsONPVS.js +2 -0
- package/dist/assets/langs/http-DcV90OkR.js +2 -0
- package/dist/assets/langs/javascript-DI5JR1nB.js +2 -0
- package/dist/assets/langs/julia-BpJ6DjL_.js +2 -0
- package/dist/assets/langs/latex-B4C7GdlO.js +2 -0
- package/dist/assets/langs/log-2UxHyX5q.js +2 -0
- package/dist/assets/langs/make-CHLpvVh8.js +2 -0
- package/dist/assets/langs/nix-CwoSXNpI.js +2 -0
- package/dist/assets/langs/perl-DsWkoyyU.js +2 -0
- package/dist/assets/langs/php-LEPfNACG.js +2 -0
- package/dist/assets/langs/powershell-Dpen1YoG.js +2 -0
- package/dist/assets/langs/proto-C7zT0LnQ.js +2 -0
- package/dist/assets/langs/r-Dspwwk_N.js +2 -0
- package/dist/assets/langs/rst-BbocfKWr.js +2 -0
- package/dist/assets/langs/ruby-R292Iif0.js +2 -0
- package/dist/assets/langs/scala-C151Ov-r.js +2 -0
- package/dist/assets/langs/svelte-DNMY6jOf.js +2 -0
- package/dist/assets/langs/system-verilog-CnnmHF94.js +2 -0
- package/dist/assets/langs/vb-D17OF-Vu.js +2 -0
- package/dist/assets/langs/verilog-BQ8w6xss.js +2 -0
- package/dist/assets/langs/vue-Dq2x6432.js +2 -0
- package/dist/favicon-dark.svg +3 -0
- package/dist/favicon.svg +0 -5
- package/dist/index.html +5 -4
- package/dist/manifest.webmanifest +3 -4
- package/dist/plugins/@deepseek-ai/dsh-api-gateway/client.js +353 -101
- package/dist/plugins/@deepseek-ai/dsh-api-job-controller/client.js +367 -0
- package/dist/plugins/@deepseek-ai/dsh-api-remotes/client.js +7223 -3584
- package/dist/plugins/@deepseek-ai/dsh-api-session-controller/client.js +1107 -991
- package/dist/plugins/@deepseek-ai/dsh-api-workspace-controller/client.js +119 -6
- package/dist/plugins/@deepseek-ai/dsh-api-workspace-files/client.js +41 -35
- package/dist/plugins/@deepseek-ai/dsh-client-connection/client.js +354 -5279
- package/dist/plugins/@deepseek-ai/dsh-client-file-upload/client.js +10 -23
- package/dist/plugins/@deepseek-ai/dsh-client-locale/client.js +234 -80
- package/dist/plugins/@deepseek-ai/dsh-client-modules/client.js +554 -46
- package/dist/plugins/@deepseek-ai/dsh-client-shortcuts/client.js +2006 -0
- package/dist/plugins/@deepseek-ai/dsh-client-ui-agent-preset/client.js +1090 -914
- package/dist/plugins/@deepseek-ai/dsh-client-ui-approval/client.js +79 -6
- package/dist/plugins/@deepseek-ai/dsh-client-ui-attachment/client.js +126 -155
- package/dist/plugins/@deepseek-ai/dsh-client-ui-chat/client.js +5776 -1593
- package/dist/plugins/@deepseek-ai/dsh-client-ui-commands/client.js +375 -121
- package/dist/plugins/@deepseek-ai/dsh-client-ui-conversation/client.js +3524 -1923
- package/dist/plugins/@deepseek-ai/dsh-client-ui-deliverables/client.js +1615 -258
- package/dist/plugins/@deepseek-ai/dsh-client-ui-directory-picker-browse/client.js +9 -9
- package/dist/plugins/@deepseek-ai/dsh-client-ui-goal/client.js +25 -10
- package/dist/plugins/@deepseek-ai/dsh-client-ui-input-trigger/client.js +169 -24
- package/dist/plugins/@deepseek-ai/dsh-client-ui-jobs/client.js +413 -63
- package/dist/plugins/@deepseek-ai/dsh-client-ui-layout/client.js +131 -14
- package/dist/plugins/@deepseek-ai/dsh-client-ui-message-feedback/client.js +24 -22
- package/dist/plugins/@deepseek-ai/dsh-client-ui-model-selection/client.js +281 -128
- package/dist/plugins/@deepseek-ai/dsh-client-ui-open-in-app/client.js +674 -223
- package/dist/plugins/@deepseek-ai/dsh-client-ui-plan/client.js +596 -18
- package/dist/plugins/@deepseek-ai/dsh-client-ui-reference/client.js +92 -9
- package/dist/plugins/@deepseek-ai/dsh-client-ui-renderer/client.js +467 -59
- package/dist/plugins/@deepseek-ai/dsh-client-ui-session/client.js +231 -72
- package/dist/plugins/@deepseek-ai/dsh-client-ui-settings/client.js +281 -117
- package/dist/plugins/@deepseek-ai/dsh-client-ui-settings-general/client.js +642 -122
- package/dist/plugins/@deepseek-ai/dsh-client-ui-settings-models/client.js +1565 -438
- package/dist/plugins/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/client.js +201 -75
- package/dist/plugins/@deepseek-ai/dsh-client-ui-settings-plugins/client.js +30 -1628
- package/dist/plugins/@deepseek-ai/dsh-client-ui-shortcuts/client.js +1163 -0
- package/dist/plugins/@deepseek-ai/dsh-client-ui-sidebar/client.js +165 -39
- package/dist/plugins/@deepseek-ai/dsh-client-ui-sidebar-browser/client.js +1648 -0
- package/dist/plugins/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/client.js +5515 -25622
- package/dist/plugins/@deepseek-ai/dsh-client-ui-sidebar-files/client.js +419 -118
- package/dist/plugins/@deepseek-ai/dsh-client-ui-sidebar-right/client.js +5692 -260
- package/dist/plugins/@deepseek-ai/dsh-client-ui-skill/client.js +156 -41
- package/dist/plugins/@deepseek-ai/dsh-client-ui-subagent/client.js +386 -263
- package/dist/plugins/@deepseek-ai/dsh-client-ui-theme/client.js +183 -73
- package/dist/plugins/@deepseek-ai/dsh-client-ui-tool/client.js +2367 -429
- package/dist/plugins/@deepseek-ai/dsh-client-ui-trajectory/client.js +788 -270
- package/dist/plugins/@deepseek-ai/dsh-client-ui-user-questions/client.js +87 -79
- package/dist/plugins/@deepseek-ai/dsh-client-ui-workflow-run/client.js +28 -14
- package/dist/plugins/@deepseek-ai/dsh-client-ui-workspace/client.js +2647 -1044
- package/dist/plugins/@deepseek-ai/dsh-typert-registry/client.js +22 -7
- package/dist/plugins/dsh-edge-client-ui/client.js +1 -10
- package/package.json +96 -86
- package/scripts/cli.mjs +16 -4
- package/scripts/install.d.mts +12 -2
- package/scripts/install.mjs +36 -9
- package/scripts/legal-files.mjs +15 -0
- package/worker/direct/index.js +2564 -1822
- package/worker/isolated/index.js +2144 -1402
- package/dist/assets/index-BKQ_L1z6.js +0 -117
- package/dist/assets/index-DPX2bQLO.css +0 -1
- package/dist/assets/langs/html-CfGypltT.js +0 -2
- package/dist/assets/langs/php-DJl5gRdb.js +0 -2
- package/dist/assets/langs/ruby-5eNB0pDK.js +0 -2
- package/dist/plugins/@deepseek-ai/dsh-client-ui-permission-presets/client.js +0 -505
- package/dist/plugins/@deepseek-ai/dsh-client-ui-schedule/client.js +0 -307
|
@@ -41,6 +41,15 @@ window.__ModuleLoader__.load({
|
|
|
41
41
|
return (0, _deepseek_ai_dsh_client_store.createSnapshotStore)(false, { persist: { name: "dsh.trajectory.duration" } });
|
|
42
42
|
}
|
|
43
43
|
//#endregion
|
|
44
|
+
//#region lib/types/client/string-wrapping-store.js
|
|
45
|
+
/**
|
|
46
|
+
* Create the browser-wide default for expanded JSON strings.
|
|
47
|
+
* @returns A persisted preference sampled only when a string is expanded.
|
|
48
|
+
*/
|
|
49
|
+
function createTrajectoryStringWrappingStore() {
|
|
50
|
+
return (0, _deepseek_ai_dsh_client_store.createSnapshotStore)(false, { persist: { name: "dsh.trajectory.jsonStringWrapping" } });
|
|
51
|
+
}
|
|
52
|
+
//#endregion
|
|
44
53
|
//#region lib/types/client/locales.js
|
|
45
54
|
/** `trajectory` namespace dictionaries for the complete trajectory surface. */
|
|
46
55
|
/** Dictionary namespace owned by this plugin. */
|
|
@@ -79,7 +88,7 @@ window.__ModuleLoader__.load({
|
|
|
79
88
|
"turn.label": "第 {turn} 轮",
|
|
80
89
|
"section.betweenTurns": "轮次之间",
|
|
81
90
|
"group.message": "消息",
|
|
82
|
-
"group.step": "
|
|
91
|
+
"group.step": "第 {step} 步",
|
|
83
92
|
"group.compaction": "压缩 {seq}",
|
|
84
93
|
"status.failed": "失败",
|
|
85
94
|
"status.pending": "等待中",
|
|
@@ -156,6 +165,13 @@ window.__ModuleLoader__.load({
|
|
|
156
165
|
"record.payloadJson": "参数 JSON",
|
|
157
166
|
"record.outputJson": "结果 JSON",
|
|
158
167
|
"record.thinking": "思考",
|
|
168
|
+
"record.wrapLines": "自动换行",
|
|
169
|
+
"code.source": "代码",
|
|
170
|
+
"code.output": "输出",
|
|
171
|
+
"code.copySource": "复制代码",
|
|
172
|
+
"code.copyOutput": "复制输出",
|
|
173
|
+
"code.originalJson": "原始 JSON",
|
|
174
|
+
"code.running": "执行中…",
|
|
159
175
|
"record.systemPromptMissing": "本次请求没有系统提示词",
|
|
160
176
|
"record.toolsMissing": "本次请求没有工具",
|
|
161
177
|
"record.systemPrompt": "系统提示词",
|
|
@@ -215,11 +231,21 @@ window.__ModuleLoader__.load({
|
|
|
215
231
|
"layout.compactionFailed": "上下文压缩失败",
|
|
216
232
|
"layout.compacted": "上下文已压缩",
|
|
217
233
|
"layout.toolCallOnly": "仅工具调用",
|
|
218
|
-
"
|
|
234
|
+
"attachment.list": "附件",
|
|
235
|
+
"attachment.imageName": "图片 {index}",
|
|
236
|
+
"layout.imageCount": "图片 ×{count}",
|
|
219
237
|
"layout.fileAttachments": "文件 ×{count}",
|
|
220
238
|
"layout.initialSystemPrompt": "初始系统提示词",
|
|
221
239
|
"layout.systemPromptUpdated": "系统提示词已更新",
|
|
222
240
|
"layout.toolsUpdated": "工具已更新",
|
|
241
|
+
"layout.toolAdded": "已添加工具:{name}",
|
|
242
|
+
"layout.toolRemoved": "已移除工具:{name}",
|
|
243
|
+
"layout.toolUpdateNotice": "工具已更新",
|
|
244
|
+
"layout.toolsAdded": "新增:{names}",
|
|
245
|
+
"layout.toolsAddedCount": "新增 {count} 个",
|
|
246
|
+
"layout.toolsChanged": "新增 {added} 个,移除 {removed} 个",
|
|
247
|
+
"layout.toolsRemoved": "移除:{names}",
|
|
248
|
+
"layout.toolsRemovedCount": "移除 {count} 个",
|
|
223
249
|
"layout.systemPromptAndToolsUpdated": "系统提示词和工具已更新",
|
|
224
250
|
"layout.compactionInterrupted": "上下文压缩在完成前被中断。"
|
|
225
251
|
};
|
|
@@ -334,6 +360,13 @@ window.__ModuleLoader__.load({
|
|
|
334
360
|
"record.payloadJson": "Payload JSON",
|
|
335
361
|
"record.outputJson": "Result JSON",
|
|
336
362
|
"record.thinking": "Thinking",
|
|
363
|
+
"record.wrapLines": "Wrap lines",
|
|
364
|
+
"code.source": "Code",
|
|
365
|
+
"code.output": "Output",
|
|
366
|
+
"code.copySource": "Copy code",
|
|
367
|
+
"code.copyOutput": "Copy output",
|
|
368
|
+
"code.originalJson": "Original JSON",
|
|
369
|
+
"code.running": "Running…",
|
|
337
370
|
"record.systemPromptMissing": "No system prompt in this request",
|
|
338
371
|
"record.toolsMissing": "No tools in this request",
|
|
339
372
|
"record.systemPrompt": "System Prompt",
|
|
@@ -393,15 +426,72 @@ window.__ModuleLoader__.load({
|
|
|
393
426
|
"layout.compactionFailed": "Compaction failed",
|
|
394
427
|
"layout.compacted": "Context compacted",
|
|
395
428
|
"layout.toolCallOnly": "Tool call only",
|
|
396
|
-
"
|
|
429
|
+
"attachment.list": "Attachments",
|
|
430
|
+
"attachment.imageName": "Image {index}",
|
|
431
|
+
"layout.imageCount": "Images ×{count}",
|
|
397
432
|
"layout.fileAttachments": "Files ×{count}",
|
|
398
433
|
"layout.initialSystemPrompt": "Initial System Prompt",
|
|
399
434
|
"layout.systemPromptUpdated": "System Prompt Updated",
|
|
400
435
|
"layout.toolsUpdated": "Tools Updated",
|
|
436
|
+
"layout.toolAdded": "Tool added: {name}",
|
|
437
|
+
"layout.toolRemoved": "Tool removed: {name}",
|
|
438
|
+
"layout.toolUpdateNotice": "Tools updated",
|
|
439
|
+
"layout.toolsAdded": "Added: {names}",
|
|
440
|
+
"layout.toolsAddedCount": "{count} added",
|
|
441
|
+
"layout.toolsChanged": "{added} added, {removed} removed",
|
|
442
|
+
"layout.toolsRemoved": "Removed: {names}",
|
|
443
|
+
"layout.toolsRemovedCount": "{count} removed",
|
|
401
444
|
"layout.systemPromptAndToolsUpdated": "System Prompt and Tools Updated",
|
|
402
445
|
"layout.compactionInterrupted": "Compaction was interrupted before completion."
|
|
403
446
|
};
|
|
404
447
|
//#endregion
|
|
448
|
+
//#region ../../llm/llm/src/assistant-stream.ts
|
|
449
|
+
/**
|
|
450
|
+
* Whether one chunk carries the model's first output token for latency measurement.
|
|
451
|
+
* @param chunk - any stream chunk.
|
|
452
|
+
* @returns true for a non-empty text, reasoning, or Tool-call arguments fragment and for
|
|
453
|
+
* every name-bearing Tool-call delta; false for block, usage, and finish chunks.
|
|
454
|
+
*/
|
|
455
|
+
function isTokenDelta$1(chunk) {
|
|
456
|
+
switch (chunk.type) {
|
|
457
|
+
case "text-delta":
|
|
458
|
+
case "reasoning-delta": return chunk.text !== "";
|
|
459
|
+
case "tool-call-delta": return chunk.argumentsDelta !== "" || chunk.name !== void 0;
|
|
460
|
+
default: return false;
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
function firstRunMemberTime(run, predicate) {
|
|
464
|
+
const fragments = run.type === "tool-call-chunks" ? run.args : run.texts;
|
|
465
|
+
let time = run.time0;
|
|
466
|
+
for (let index = 0; index < fragments.length; index += 1) {
|
|
467
|
+
if (index > 0) time += run.dt[index - 1];
|
|
468
|
+
if (predicate(fragments[index])) return time;
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
/**
|
|
472
|
+
* Time of the first member of one packed run that {@link isTokenDelta} accepts: a
|
|
473
|
+
* name-bearing Tool-call run starts at its first member, otherwise the first non-empty fragment.
|
|
474
|
+
* Stops scanning at that member.
|
|
475
|
+
* @param run - one packed delta run.
|
|
476
|
+
* @returns the member's reconstructed time, or undefined when no member qualifies.
|
|
477
|
+
*/
|
|
478
|
+
function runFirstTokenTime(run) {
|
|
479
|
+
if (run.type === "tool-call-chunks" && run.name !== void 0) return run.time0;
|
|
480
|
+
return firstRunMemberTime(run, (fragment) => fragment !== "");
|
|
481
|
+
}
|
|
482
|
+
/**
|
|
483
|
+
* Time of the first token in one compact stream per {@link isTokenDelta}, read from the
|
|
484
|
+
* records themselves and stopping at the first qualifying member.
|
|
485
|
+
* @param stream - compact records from one durable Assistant settlement.
|
|
486
|
+
* @returns the first token's time, or undefined when the stream carries no token.
|
|
487
|
+
*/
|
|
488
|
+
function assistantStreamFirstTokenTime(stream) {
|
|
489
|
+
for (const record of stream) {
|
|
490
|
+
const time = record.type === "chunk" ? isTokenDelta$1(record.chunk) ? record.time : void 0 : runFirstTokenTime(record);
|
|
491
|
+
if (time !== void 0) return time;
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
//#endregion
|
|
405
495
|
//#region lib/types/client/trajectory-definition-common.js
|
|
406
496
|
/**
|
|
407
497
|
* Wrap one contribution in the Engine-owned target envelope.
|
|
@@ -470,7 +560,7 @@ window.__ModuleLoader__.load({
|
|
|
470
560
|
* @param source - Logged `user/message` source.
|
|
471
561
|
* @returns Role and label rendered by Trajectory.
|
|
472
562
|
*/
|
|
473
|
-
function
|
|
563
|
+
function contextProducer(source) {
|
|
474
564
|
const record = asRecord(source);
|
|
475
565
|
const kind = record === null ? null : readString(record, "kind");
|
|
476
566
|
if (record === null || kind === null) return {
|
|
@@ -486,10 +576,6 @@ window.__ModuleLoader__.load({
|
|
|
486
576
|
role: "inject",
|
|
487
577
|
label: joined(collect(record, "changes", "path")) ?? kind
|
|
488
578
|
};
|
|
489
|
-
case "plugin": return {
|
|
490
|
-
role: "inject",
|
|
491
|
-
label: readString(record, "plugin") ?? kind
|
|
492
|
-
};
|
|
493
579
|
case "skill-invocation": return {
|
|
494
580
|
role: "inject",
|
|
495
581
|
label: readString(record, "name") ?? kind
|
|
@@ -722,10 +808,17 @@ window.__ModuleLoader__.load({
|
|
|
722
808
|
...isTokenDelta(chunk) && state.firstTokenTime === void 0 ? { firstTokenTime: time } : {}
|
|
723
809
|
};
|
|
724
810
|
}
|
|
811
|
+
/** The Step retains its first token across live chunks and settled retry attempts. */
|
|
812
|
+
function settleTiming(state, event) {
|
|
813
|
+
return {
|
|
814
|
+
...state,
|
|
815
|
+
firstTokenTime: state.firstTokenTime ?? assistantStreamFirstTokenTime(event.data.stream)
|
|
816
|
+
};
|
|
817
|
+
}
|
|
725
818
|
function settleMessage(state, match, event) {
|
|
726
819
|
const blocks = toAssistantBlocks(event.data.message.content);
|
|
727
820
|
return {
|
|
728
|
-
...state,
|
|
821
|
+
...settleTiming(state, event),
|
|
729
822
|
sawChunk: false,
|
|
730
823
|
blocks,
|
|
731
824
|
visibleBlocks: countVisibleBlocks(blocks),
|
|
@@ -746,6 +839,9 @@ window.__ModuleLoader__.load({
|
|
|
746
839
|
if (event.type === "assistant/live-chunk") {
|
|
747
840
|
state ??= initialState(event.data.turn, event.data.step, event.seq, event.time, false);
|
|
748
841
|
state = updateChunk(state, event.data.chunk, event.seq, event.time);
|
|
842
|
+
} else if (event.type === "assistant/attempt") {
|
|
843
|
+
state ??= initialState(event.data.turn, event.data.step, event.seq, event.time, false);
|
|
844
|
+
state = settleTiming(state, event);
|
|
749
845
|
} else if (event.type === "assistant/message") {
|
|
750
846
|
state ??= initialState(event.data.turn, event.data.step, event.seq, event.time, false);
|
|
751
847
|
state = settleMessage(state, match, event);
|
|
@@ -769,7 +865,7 @@ window.__ModuleLoader__.load({
|
|
|
769
865
|
step: state.step,
|
|
770
866
|
blocks: toAssistantBlocks(event.data.message.content),
|
|
771
867
|
usage: event.data.usage,
|
|
772
|
-
|
|
868
|
+
providerMetadata: {
|
|
773
869
|
provider: event.data.message.source.provider,
|
|
774
870
|
model: event.data.message.source.model
|
|
775
871
|
},
|
|
@@ -815,7 +911,7 @@ window.__ModuleLoader__.load({
|
|
|
815
911
|
},
|
|
816
912
|
...node?.messageId === void 0 ? {} : {
|
|
817
913
|
resultSeq: node.seq,
|
|
818
|
-
...node.
|
|
914
|
+
...node.providerMetadata === void 0 ? {} : { providerMetadata: node.providerMetadata }
|
|
819
915
|
},
|
|
820
916
|
...state.usage === void 0 ? {} : { usage: state.usage }
|
|
821
917
|
};
|
|
@@ -829,7 +925,7 @@ window.__ModuleLoader__.load({
|
|
|
829
925
|
id: `${event.data.turn}:${event.data.step}`,
|
|
830
926
|
role: "start"
|
|
831
927
|
};
|
|
832
|
-
if (event.type === "assistant/live-chunk" || event.type === "assistant/message" || event.type === "llm/retry" || event.type === "step/end") return {
|
|
928
|
+
if (event.type === "assistant/live-chunk" || event.type === "assistant/message" || event.type === "assistant/attempt" || event.type === "llm/retry" || event.type === "step/end") return {
|
|
833
929
|
id: `${event.data.turn}:${event.data.step}`,
|
|
834
930
|
role: "update"
|
|
835
931
|
};
|
|
@@ -842,6 +938,7 @@ window.__ModuleLoader__.load({
|
|
|
842
938
|
update: (context, match) => {
|
|
843
939
|
if (match.event.type === "assistant/live-chunk") return updateChunk(context.state, match.event.data.chunk, match.event.seq, match.event.time);
|
|
844
940
|
if (match.event.type === "assistant/message") return settleMessage(context.state, match, match.event);
|
|
941
|
+
if (match.event.type === "assistant/attempt") return settleTiming(context.state, match.event);
|
|
845
942
|
if (match.event.type === "step/end") return {
|
|
846
943
|
...context.state,
|
|
847
944
|
stepEnd: match
|
|
@@ -863,7 +960,7 @@ window.__ModuleLoader__.load({
|
|
|
863
960
|
};
|
|
864
961
|
},
|
|
865
962
|
publication: (match) => {
|
|
866
|
-
if (match.event.type === "step/start") return "none";
|
|
963
|
+
if (match.event.type === "step/start" || match.event.type === "assistant/attempt") return "none";
|
|
867
964
|
if (match.event.type !== "assistant/live-chunk") return "immediate";
|
|
868
965
|
const type = match.event.data.chunk.type;
|
|
869
966
|
return type === "usage" || type === "finish" ? "none" : "animation-frame";
|
|
@@ -932,7 +1029,7 @@ window.__ModuleLoader__.load({
|
|
|
932
1029
|
function checkpointId(event) {
|
|
933
1030
|
if (event.type !== "user/message") return void 0;
|
|
934
1031
|
const source = event.data.source;
|
|
935
|
-
return source.kind === "
|
|
1032
|
+
return source.kind === "compact-checkpoint" && typeof source.compactionId === "string" && source.compactionId !== "" ? source.compactionId : void 0;
|
|
936
1033
|
}
|
|
937
1034
|
function eventCompactionId(event) {
|
|
938
1035
|
if (event.type !== "compaction/start" && event.type !== "compaction/summary" && event.type !== "compaction/end") return void 0;
|
|
@@ -958,7 +1055,7 @@ window.__ModuleLoader__.load({
|
|
|
958
1055
|
resultSeq: summary.seq,
|
|
959
1056
|
summary: summary.data.summary,
|
|
960
1057
|
...summary.data.rawOutput === void 0 ? {} : { rawOutput: summary.data.rawOutput },
|
|
961
|
-
|
|
1058
|
+
providerMetadata: {
|
|
962
1059
|
provider: summary.data.provider,
|
|
963
1060
|
model: summary.data.model
|
|
964
1061
|
},
|
|
@@ -1121,11 +1218,25 @@ window.__ModuleLoader__.load({
|
|
|
1121
1218
|
const trajectoryMessageDefinition = {
|
|
1122
1219
|
kind: "trajectory-input-message",
|
|
1123
1220
|
target: "trajectory",
|
|
1124
|
-
match: (event) =>
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1221
|
+
match: (event) => {
|
|
1222
|
+
return event.type === "user/message" || event.type === "developer/message" ? {
|
|
1223
|
+
id: String(event.seq),
|
|
1224
|
+
role: "start"
|
|
1225
|
+
} : null;
|
|
1226
|
+
},
|
|
1128
1227
|
start: (_context, match, reader) => {
|
|
1228
|
+
if (match.event.type === "developer/message") {
|
|
1229
|
+
const { seq, time, data: { message } } = match.event;
|
|
1230
|
+
return {
|
|
1231
|
+
kind: "context",
|
|
1232
|
+
seq,
|
|
1233
|
+
time,
|
|
1234
|
+
content: message.content,
|
|
1235
|
+
source: message.source,
|
|
1236
|
+
producer: contextProducer(message.source),
|
|
1237
|
+
form: contextForm(message.source)
|
|
1238
|
+
};
|
|
1239
|
+
}
|
|
1129
1240
|
if (match.event.type !== "user/message") throw new Error("trajectory-input-message start requires user/message");
|
|
1130
1241
|
const event = match.event;
|
|
1131
1242
|
if (event.data.source.kind !== "user") return {
|
|
@@ -1134,7 +1245,7 @@ window.__ModuleLoader__.load({
|
|
|
1134
1245
|
time: event.time,
|
|
1135
1246
|
content: event.data.content,
|
|
1136
1247
|
source: event.data.source,
|
|
1137
|
-
|
|
1248
|
+
producer: contextProducer(event.data.source),
|
|
1138
1249
|
form: contextForm(event.data.source)
|
|
1139
1250
|
};
|
|
1140
1251
|
return reader.previous("trajectory-inbox-next-step")?.state.currentClaimed.has(String(event.data.id)) === true ? {
|
|
@@ -1190,6 +1301,7 @@ window.__ModuleLoader__.load({
|
|
|
1190
1301
|
role: "start"
|
|
1191
1302
|
} : null,
|
|
1192
1303
|
start: (_context, match, reader) => {
|
|
1304
|
+
if (match.event.type === "assistant/live-chunk") throw new Error("system-message requires a durable event");
|
|
1193
1305
|
const prior = reader.previous("trajectory-system-message")?.state;
|
|
1194
1306
|
const state = inspect(prior, match.event);
|
|
1195
1307
|
const node = state.effective;
|
|
@@ -1521,6 +1633,7 @@ window.__ModuleLoader__.load({
|
|
|
1521
1633
|
/** Trajectory target factory preserving the existing stage-oriented view model. */
|
|
1522
1634
|
const trajectoryViewDefinition = {
|
|
1523
1635
|
target: "trajectory",
|
|
1636
|
+
toolCallFocus: (callId) => callId,
|
|
1524
1637
|
create: () => new TrajectorySnapshotBuilder()
|
|
1525
1638
|
};
|
|
1526
1639
|
/**
|
|
@@ -1537,6 +1650,7 @@ window.__ModuleLoader__.load({
|
|
|
1537
1650
|
function rootCall(match) {
|
|
1538
1651
|
if (match.event.type !== "tool/call") throw new Error("trajectory-tool-call start requires tool/call");
|
|
1539
1652
|
return {
|
|
1653
|
+
phase: "start",
|
|
1540
1654
|
callId: String(match.event.data.callId),
|
|
1541
1655
|
name: match.event.data.name,
|
|
1542
1656
|
argsRaw: match.event.data.arguments,
|
|
@@ -1548,19 +1662,19 @@ window.__ModuleLoader__.load({
|
|
|
1548
1662
|
}
|
|
1549
1663
|
function rootResult(match, previous) {
|
|
1550
1664
|
if (match.event.type !== "tool/result") return void 0;
|
|
1551
|
-
const
|
|
1665
|
+
const message = match.event.data.message;
|
|
1552
1666
|
return {
|
|
1553
1667
|
kind: "tool-result",
|
|
1554
1668
|
seq: match.event.seq,
|
|
1555
1669
|
time: match.event.time,
|
|
1556
|
-
callId: String(
|
|
1670
|
+
callId: String(message.source.callId),
|
|
1557
1671
|
call: previous === void 0 ? null : {
|
|
1558
1672
|
name: previous.name,
|
|
1559
1673
|
argsRaw: previous.argsRaw
|
|
1560
1674
|
},
|
|
1561
1675
|
callTime: previous?.time ?? null,
|
|
1562
|
-
content:
|
|
1563
|
-
isError:
|
|
1676
|
+
content: message.content,
|
|
1677
|
+
isError: message.isError === true,
|
|
1564
1678
|
...match.event.data.error === void 0 ? {} : { error: match.event.data.error },
|
|
1565
1679
|
meta: match.event.data.meta,
|
|
1566
1680
|
subCalls: []
|
|
@@ -1574,6 +1688,7 @@ window.__ModuleLoader__.load({
|
|
|
1574
1688
|
}
|
|
1575
1689
|
function childCall(match, data) {
|
|
1576
1690
|
return {
|
|
1691
|
+
phase: "start",
|
|
1577
1692
|
callId: data.subCallId,
|
|
1578
1693
|
parentCallId: data.parentCallId,
|
|
1579
1694
|
name: data.name,
|
|
@@ -1598,6 +1713,7 @@ window.__ModuleLoader__.load({
|
|
|
1598
1713
|
callTime: previous === void 0 || "kind" in previous ? null : previous.time,
|
|
1599
1714
|
content: data.content ?? [],
|
|
1600
1715
|
isError: data.isError === true,
|
|
1716
|
+
...data.error === void 0 ? {} : { error: data.error },
|
|
1601
1717
|
subCalls: []
|
|
1602
1718
|
};
|
|
1603
1719
|
}
|
|
@@ -1766,7 +1882,7 @@ window.__ModuleLoader__.load({
|
|
|
1766
1882
|
}
|
|
1767
1883
|
};
|
|
1768
1884
|
/**
|
|
1769
|
-
* Register the Trajectory Tool lifecycle.
|
|
1885
|
+
* Register the Trajectory Tool lifecycle with raw native and PTC error details.
|
|
1770
1886
|
*
|
|
1771
1887
|
* @param ctx - Plugin context receiving the Definition.
|
|
1772
1888
|
*/
|
|
@@ -3657,8 +3773,49 @@ window.__ModuleLoader__.load({
|
|
|
3657
3773
|
return source.length < text.length || preview.length < compact.length ? `${preview}…` : preview;
|
|
3658
3774
|
}
|
|
3659
3775
|
//#endregion
|
|
3776
|
+
//#region lib/types/client/code-program.js
|
|
3777
|
+
/** Recorded name of the programmatic tool-calling entry point. */
|
|
3778
|
+
const PTC_TOOL_NAME = "run_code";
|
|
3779
|
+
function record(value) {
|
|
3780
|
+
return typeof value === "object" && value !== null && !Array.isArray(value) ? value : void 0;
|
|
3781
|
+
}
|
|
3782
|
+
function parseRecord(value) {
|
|
3783
|
+
if (value === void 0) return void 0;
|
|
3784
|
+
try {
|
|
3785
|
+
return record(JSON.parse(value));
|
|
3786
|
+
} catch {
|
|
3787
|
+
return;
|
|
3788
|
+
}
|
|
3789
|
+
}
|
|
3790
|
+
function recordedLanguage(schemaRaw) {
|
|
3791
|
+
const description = record(record(record(parseRecord(schemaRaw)?.parameters)?.properties)?.code)?.description;
|
|
3792
|
+
if (typeof description !== "string") return void 0;
|
|
3793
|
+
const typescript = /\bTypeScript\b/i.test(description);
|
|
3794
|
+
if (typescript === /\bPython\b/i.test(description)) return void 0;
|
|
3795
|
+
return typescript ? "typescript" : "python";
|
|
3796
|
+
}
|
|
3797
|
+
/**
|
|
3798
|
+
* Resolve a PTC program without guessing its language from source or current runtime settings.
|
|
3799
|
+
* @param cell - Recorded tool arguments and the schema visible at call time.
|
|
3800
|
+
* @returns The program, or undefined for another tool or unsupported arguments.
|
|
3801
|
+
*/
|
|
3802
|
+
function codeProgram(cell) {
|
|
3803
|
+
if (cell.kind !== "tool" && cell.kind !== "subtool") return void 0;
|
|
3804
|
+
if (cell.toolName !== "run_code" || cell.inputDetail === void 0) return void 0;
|
|
3805
|
+
const args = parseRecord(cell.inputDetail);
|
|
3806
|
+
if (typeof args?.code !== "string") return void 0;
|
|
3807
|
+
if (args.description !== void 0 && typeof args.description !== "string") return void 0;
|
|
3808
|
+
return {
|
|
3809
|
+
rawInput: cell.inputDetail,
|
|
3810
|
+
source: args.code,
|
|
3811
|
+
description: typeof args.description === "string" && args.description.trim() !== "" ? args.description : args.code.split(/\r?\n/).find((line) => line.trim() !== "")?.trim() ?? "",
|
|
3812
|
+
arguments: args,
|
|
3813
|
+
language: recordedLanguage(cell.schemaDetail)
|
|
3814
|
+
};
|
|
3815
|
+
}
|
|
3816
|
+
//#endregion
|
|
3660
3817
|
//#region \0dsh-css:/home/runner/work/deepseek-harness/deepseek-harness/packages/client/ui-trajectory/src/client/TrajectoryTable.module.css.mjs
|
|
3661
|
-
const css$3 = ".Y0dWHa_split{--dsh-scrollbar-thumb:var(--dsw-alias-scrollbar-bg-l2);--dsh-scrollbar-thumb-hover:var(--dsw-alias-scrollbar-hover-l2);background:var(--dsw-alias-bg-layer-1);flex:1;width:100%;min-height:0;display:flex;position:relative;overflow:hidden;container-type:inline-size}.Y0dWHa_tablePane{min-width:0;padding-bottom:var(--dsh-trajectory-bottom-clearance,0px);flex:1;position:relative;overflow:hidden auto;container:Y0dWHa_trajectory-table/inline-size}.Y0dWHa_historyLoading{z-index:5;pointer-events:none;height:0;position:sticky;top:0;overflow:visible}.Y0dWHa_historyLoadingBar{box-sizing:border-box;border-bottom:.5px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-1);width:100%;height:30px;color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xxs-12);justify-content:center;align-items:center;gap:6px;display:flex}.Y0dWHa_historyLoadingSpinner{box-sizing:border-box;border:1.5px solid var(--dsw-alias-border-l2);border-top-color:var(--dsw-alias-state-business-primary);corner-shape:round;border-radius:50%;width:10px;height:10px;animation:.7s linear infinite Y0dWHa_history-loading-spin}.Y0dWHa_table tbody .Y0dWHa_historyLoadRow td{height:30px;padding:0}.Y0dWHa_table tbody .Y0dWHa_historyLoadRow+tr[data-turn-start=true] td:before{content:none}.Y0dWHa_historyLoadButton{background:var(--dsw-alias-bg-layer-1);width:100%;height:29px;color:var(--dsw-alias-label-secondary);cursor:pointer;font:var(--dsw-font-xxs-12);border:0;justify-content:center;align-items:center;gap:6px;display:flex}.Y0dWHa_historyLoadButton:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}.Y0dWHa_historyLoadButton:focus-visible{outline:2px solid var(--dsw-alias-state-business-primary);outline-offset:-2px}.Y0dWHa_historyLoadButton:disabled{cursor:default}.Y0dWHa_visuallyHidden{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.Y0dWHa_table:not([data-scroll-ready=true]){visibility:hidden}@keyframes Y0dWHa_history-loading-spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.Y0dWHa_historyLoadingSpinner{animation:none}}.Y0dWHa_table{--trajectory-turn-accent:color-mix(in srgb, var(--dsw-static-blue-500) 22%, var(--dsw-alias-bg-layer-1));border-spacing:0;table-layout:fixed;width:100%;min-width:0;color:var(--dsw-alias-label-primary);background:var(--dsw-alias-bg-layer-1);font:var(--dsw-font-xxs-12)}.Y0dWHa_eventColumn{width:122px}.Y0dWHa_contentColumn{width:auto}.Y0dWHa_table th{z-index:3;box-sizing:border-box;border-bottom:.5px solid var(--dsw-alias-border-l2);height:30px;color:var(--dsw-alias-label-tertiary);background:var(--dsw-specific-sidebar-fill);font:var(--dsw-font-xxs-12);text-align:left;text-overflow:ellipsis;user-select:none;white-space:nowrap;padding:0 8px;font-weight:500;position:sticky;top:0;overflow:hidden}.Y0dWHa_eventHeader{text-align:right!important;padding-right:4px!important}.Y0dWHa_table td{box-sizing:border-box;border-bottom:.5px solid var(--dsw-alias-border-l1);text-overflow:ellipsis;white-space:nowrap;height:30px;padding:0 8px;overflow:hidden}.Y0dWHa_table tbody .Y0dWHa_virtualSpacer{pointer-events:none}.Y0dWHa_table tbody .Y0dWHa_virtualSpacer td{height:var(--trajectory-virtual-spacer-height);border:0;padding:0}.Y0dWHa_table tbody tr:not([data-collapsed-summary]):not([data-virtual-spacer]):not([data-history-load]){cursor:default;transition:background-color .12s var(--ds-ease-in-out), opacity .12s var(--ds-ease-in-out);outline:none}.Y0dWHa_table tbody tr[data-timeline-focus=outside]{opacity:.24}.Y0dWHa_table tbody tr:not([data-collapsed-summary]):not([data-virtual-spacer]):not([data-history-load]):not([data-selected=true]):hover{background:var(--dsw-alias-interactive-bg-hover)}.Y0dWHa_table tbody tr[data-request-only=true]:hover{background:0 0}.Y0dWHa_table tbody tr[data-request-only=true] td{border-bottom:0;height:0;padding-top:0;padding-bottom:0}.Y0dWHa_table tbody tr[data-terminal-request-boundary=true] td{height:9px}.Y0dWHa_table tbody tr[data-request-only=true] .Y0dWHa_turnRail{top:-15px;bottom:0}.Y0dWHa_table tbody tr:not([data-collapsed-summary]):focus-visible{box-shadow:inset 0 0 0 1px var(--dsw-alias-state-business-primary)}.Y0dWHa_table tbody tr[data-selected=true]{background:var(--dsw-alias-interactive-bg-active)}.Y0dWHa_requestBoundaryControl{--request-boundary-base-left:12px;z-index:6;top:-8px;left:calc(var(--request-boundary-base-left) + var(--request-boundary-offset,0px));cursor:pointer;background:0 0;border:0;width:16px;height:16px;padding:0;position:absolute}.Y0dWHa_requestBoundaryControl:before{corner-shape:round;background:var(--dsw-alias-label-caption);width:5px;height:5px;box-shadow:0 0 0 2px var(--dsw-alias-bg-layer-1), 0 0 0 3px transparent;content:\"\";transition:background .12s var(--ds-ease-in-out), box-shadow .12s var(--ds-ease-in-out);border-radius:50%;position:absolute;top:5.5px;left:5.5px}.Y0dWHa_requestBoundaryControl:after{border:.5px solid var(--dsw-alias-border-l1);width:max-content;color:var(--dsw-alias-label-secondary);background:var(--dsw-alias-bg-layer-1);content:attr(data-label);font:9px/12px var(--ds-font-family-code);opacity:0;pointer-events:none;transition:opacity .12s var(--ds-ease-in-out), transform .12s var(--ds-ease-in-out);user-select:none;white-space:nowrap;border-radius:2px;padding:0 4px;position:absolute;top:2px;left:17px;transform:translate(-2px);box-shadow:0 2px 6px #0000001f}.Y0dWHa_requestBoundaryControl:hover:before,.Y0dWHa_requestBoundaryControl:focus-visible:before{background:var(--dsw-alias-brand-primary-new-colorprimary-new-color)}.Y0dWHa_requestBoundaryControlActive:before,.Y0dWHa_requestBoundaryControlActive:hover:before,.Y0dWHa_requestBoundaryControlActive:focus-visible:before{background:color-mix(in srgb, var(--dsw-alias-brand-primary-new-colorprimary-new-color) 18%, var(--dsw-alias-bg-layer-1));box-shadow:0 0 0 1.5px var(--dsw-alias-brand-primary-new-colorprimary-new-color)}.Y0dWHa_requestBoundaryControl[data-request-status=error]:before,.Y0dWHa_requestBoundaryControl[data-request-status=error]:hover:before,.Y0dWHa_requestBoundaryControl[data-request-status=error]:focus-visible:before{background:var(--dsw-alias-state-error-primary)}.Y0dWHa_requestBoundaryControl:hover:after,.Y0dWHa_requestBoundaryControl:focus-visible:after{opacity:1;transform:translate(0)}.Y0dWHa_requestBoundaryControl:focus-visible{outline:none}.Y0dWHa_table tbody tr:has(.Y0dWHa_requestBoundaryControl:hover):not([data-selected=true]){background:0 0}.Y0dWHa_event{position:relative}.Y0dWHa_turnRail,.Y0dWHa_selectionRail{background:var(--dsw-alias-brand-primary-new-colorprimary-new-color);pointer-events:none;position:absolute;left:0}.Y0dWHa_turnRail{z-index:4;background:var(--trajectory-turn-accent);width:2px;top:-1px;bottom:-1px}.Y0dWHa_table tbody tr[data-turn-end=true] .Y0dWHa_turnRail{bottom:0}.Y0dWHa_selectionRail{z-index:5;width:3px;top:0;bottom:0}.Y0dWHa_table tbody tr[data-error=true] .Y0dWHa_turnRail{background:color-mix(in srgb, var(--dsw-alias-state-error-primary) 22%, var(--dsw-alias-bg-layer-1))}.Y0dWHa_table tbody tr[data-error=true] .Y0dWHa_selectionRail{background:var(--dsw-alias-state-error-primary)}.Y0dWHa_table tbody tr[data-turn-start=true] td{position:relative;overflow:visible}.Y0dWHa_table tbody tr[data-turn-start=true]:not(:first-child) td:before{z-index:1;background:var(--dsw-alias-border-l1);content:\"\";pointer-events:none;height:2px;position:absolute;top:0;left:0;right:0;transform:translateY(-50%)}.Y0dWHa_event{padding-left:36px!important;padding-right:4px!important;overflow:visible!important}.Y0dWHa_turnLabel{z-index:3;box-sizing:border-box;width:max-content;color:var(--dsw-alias-label-tertiary);background:var(--dsw-alias-bg-module-platform);font:8px/10px var(--ds-font-family-code);font-variant-numeric:tabular-nums;user-select:none;white-space:nowrap;border-radius:0 0 2px;flex:none;align-items:center;padding:1px 5px;display:inline-grid;position:absolute;top:0;left:0}.Y0dWHa_turnLabelFull,.Y0dWHa_turnLabelCompact{opacity:1;white-space:nowrap;grid-area:1/1;max-width:64px;overflow:hidden}.Y0dWHa_turnLabelCompact{opacity:0;max-width:0}.Y0dWHa_turnLabelActive{color:color-mix(in srgb, var(--dsw-static-blue-500) 55%, var(--dsw-alias-label-tertiary));background:var(--trajectory-turn-accent)}.Y0dWHa_eventInner{justify-content:flex-start;align-items:center;min-width:0;height:100%;display:flex}.Y0dWHa_kindSlot{flex:none;justify-content:flex-end;align-items:flex-end;width:76px;display:flex}.Y0dWHa_kindSlot [role=tooltip]{background:var(--dsw-alias-bg-layer-2);box-shadow:var(--dsw-elevation-panel);color:var(--dsw-alias-label-primary);border:0}.Y0dWHa_content{color:var(--dsw-alias-label-primary);padding-left:4px!important}.Y0dWHa_kindTag{box-sizing:border-box;letter-spacing:.035em;user-select:none;border:1px solid #0000;border-radius:4px;flex:none;align-items:center;height:19px;padding:0 5px;font-size:10px;font-weight:650;line-height:16px;display:inline-flex}.Y0dWHa_kindTagIcon{opacity:0;flex:none;justify-content:center;align-items:center;width:0;height:13px;display:inline-flex;overflow:hidden;transform:scale(.8)}.Y0dWHa_kindTagLabel{opacity:1;white-space:nowrap;max-width:72px;display:inline-block;overflow:hidden}.Y0dWHa_table .Y0dWHa_kindSlot .Y0dWHa_message{justify-content:center;width:100%}@container Y0dWHa_trajectory-table (width<=620px){.Y0dWHa_eventColumn{width:50px}.Y0dWHa_event{padding-left:28px!important;padding-right:3px!important}.Y0dWHa_requestBoundaryControl{--request-boundary-base-left:6px}.Y0dWHa_kindSlot{width:19px}.Y0dWHa_kindTag,.Y0dWHa_table .Y0dWHa_kindSlot .Y0dWHa_message{justify-content:center;width:19px;padding-left:0;padding-right:0}.Y0dWHa_kindTagIcon{opacity:1;width:13px;transform:scale(1)}.Y0dWHa_kindTagLabel,.Y0dWHa_turnLabelFull{opacity:0;max-width:0}.Y0dWHa_turnLabelCompact{opacity:1;max-width:64px}}@media (prefers-reduced-motion:no-preference){.Y0dWHa_eventColumn,.Y0dWHa_event,.Y0dWHa_requestBoundaryControl,.Y0dWHa_kindSlot,.Y0dWHa_kindTag,.Y0dWHa_kindTagIcon,.Y0dWHa_kindTagLabel,.Y0dWHa_turnLabelFull,.Y0dWHa_turnLabelCompact{transition-duration:.18s;transition-timing-function:var(--ds-ease-in-out)}.Y0dWHa_eventColumn,.Y0dWHa_kindSlot{transition-property:width}.Y0dWHa_event{transition-property:padding-right,padding-left}.Y0dWHa_requestBoundaryControl{transition-property:left}.Y0dWHa_kindTag{transition-property:padding-right,padding-left}.Y0dWHa_kindTagIcon{transition-property:width,opacity,transform}.Y0dWHa_kindTagLabel,.Y0dWHa_turnLabelFull,.Y0dWHa_turnLabelCompact{transition-property:max-width,opacity}}.Y0dWHa_user{color:var(--dsw-alias-state-business-primary);background:var(--dsw-alias-state-business-tertiary)}.Y0dWHa_systemNeutral{color:var(--dsw-alias-label-secondary);background:var(--dsw-alias-bg-module-platform)}.Y0dWHa_contextGreen{color:color-mix(in srgb, var(--dsw-alias-state-success-primary) 68%, var(--dsw-alias-label-secondary));background:var(--dsw-alias-state-success-tertiary)}.Y0dWHa_compacted{color:var(--dsw-alias-label-secondary);background:var(--dsw-alias-bg-module-platform)}.Y0dWHa_compactedSummary{font:var(--dsw-font-xs-13);margin-top:12px;padding:0 0 14px}.Y0dWHa_promptDiffSections{flex-direction:column;gap:14px;max-height:100%;padding:10px 14px 14px;display:flex;overflow:auto}.Y0dWHa_promptDiffSection{min-width:0}.Y0dWHa_promptDiffTitle{color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xs-strong-13);user-select:none;margin:0 0 6px}.Y0dWHa_promptDiff{color:var(--dsw-alias-label-primary);background:var(--dsw-alias-bg-layer-1);font:11px/17px var(--ds-font-family-code);white-space:pre;margin:0;overflow:auto}.Y0dWHa_promptDiff span{min-width:max-content;padding:0 6px;display:block}.Y0dWHa_promptDiffLinemeta{color:var(--dsw-alias-label-caption);background:var(--dsw-alias-bg-module-platform);user-select:none}.Y0dWHa_promptDiffLinecontext{color:var(--dsw-alias-label-secondary)}.Y0dWHa_promptDiffLineadded{color:color-mix(in srgb, var(--dsw-alias-state-success-primary) 72%, var(--dsw-alias-label-primary));background:var(--dsw-alias-state-success-tertiary)}.Y0dWHa_promptDiffLineremoved{color:var(--dsw-alias-state-error-primary);background:color-mix(in srgb, var(--dsw-alias-state-error-primary) 12%, var(--dsw-alias-bg-layer-1))}.Y0dWHa_assistantVioletBright{color:color-mix(in srgb, var(--dsw-alias-brand-primary-new-colorprimary-new-color) 60%, var(--dsw-alias-state-error-secondary));background:color-mix(in srgb, color-mix(in srgb, var(--dsw-alias-brand-primary-new-colorprimary-new-color) 55%, var(--dsw-alias-state-error-secondary)) 15%, var(--dsw-alias-bg-layer-1))}.Y0dWHa_toolAmber{color:var(--dsw-alias-state-warn-label);background:var(--dsw-alias-state-warn-tertiary)}.Y0dWHa_subtoolAmber{color:color-mix(in srgb, var(--dsw-alias-state-warn-label) 62%, var(--dsw-alias-label-tertiary));background:color-mix(in srgb, var(--dsw-alias-state-warn-tertiary) 58%, var(--dsw-alias-bg-layer-1))}.Y0dWHa_contentText{text-overflow:ellipsis;white-space:nowrap;min-width:0;display:block;overflow:hidden}.Y0dWHa_toolCallOnly{color:var(--dsw-alias-label-tertiary)}.Y0dWHa_table tbody tr[data-collapsed-summary=turn] td,.Y0dWHa_table tbody tr[data-collapsed-summary=assistant] td{height:20px}.Y0dWHa_table tbody tr[data-collapsed-summary]{cursor:pointer;transition:background-color .12s var(--ds-ease-in-out);outline:none}.Y0dWHa_table tbody tr[data-collapsed-summary]:hover{background:var(--dsw-alias-interactive-bg-hover)}.Y0dWHa_table tbody tr[data-collapsed-summary]:focus-visible{box-shadow:inset 0 0 0 1px var(--dsw-alias-state-business-primary)}.Y0dWHa_collapsedTurnContent{min-width:0;color:var(--dsw-alias-label-secondary);align-items:center;font-size:12px;line-height:16px;display:flex}.Y0dWHa_collapsedTurnEllipsis{color:var(--dsw-alias-label-tertiary);user-select:none;flex:none;margin-right:6px;font-weight:600}.Y0dWHa_collapsedTurnText{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.Y0dWHa_resultPreview{grid-template-columns:clamp(180px, var(--trajectory-tool-request-width,calc(36cqw - 56px)), 480px) minmax(0, 1fr);align-items:center;gap:8px;min-width:0;display:grid}.Y0dWHa_resultRequest,.Y0dWHa_inlineResultText{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.Y0dWHa_toolCallNameTypeface{color:var(--dsw-alias-label-primary);font:400 12px/18px Menlo,Consolas,Liberation Mono,PingFang SC,Microsoft YaHei}.Y0dWHa_toolCallPayload{color:var(--dsw-alias-label-secondary);font:400 12px/18px var(--ds-font-family-code);margin-left:7px}.Y0dWHa_table tbody tr[data-kind=tool] .Y0dWHa_contentText,.Y0dWHa_table tbody tr[data-kind=subtool] .Y0dWHa_contentText,.Y0dWHa_table tbody tr[data-kind=tool] .Y0dWHa_resultPreview,.Y0dWHa_table tbody tr[data-kind=subtool] .Y0dWHa_resultPreview{font-family:var(--ds-font-family-code);font-size:12px}.Y0dWHa_table tbody tr[data-kind=subtool] .Y0dWHa_content{padding-left:26px}.Y0dWHa_inlineResult{min-width:0;color:var(--dsw-alias-label-secondary);align-items:center;display:flex}.Y0dWHa_noOutputText{color:var(--dsw-alias-label-caption)}.Y0dWHa_arrow{color:var(--dsw-alias-label-caption);flex:none;margin-right:8px}.Y0dWHa_error,.Y0dWHa_overview dd.Y0dWHa_error,.Y0dWHa_details .Y0dWHa_errorPayload{color:var(--dsw-alias-state-error-primary)}.Y0dWHa_details .Y0dWHa_errorPayload .Y0dWHa_resultBlockText{color:inherit}.Y0dWHa_details .Y0dWHa_jsonPayload.Y0dWHa_errorPayload,.Y0dWHa_details .Y0dWHa_jsonPreview.Y0dWHa_errorPayload{--json-tree-property:var(--dsw-alias-state-error-primary);--json-tree-string:var(--dsw-alias-state-error-primary);--json-tree-number:var(--dsw-alias-state-error-primary);--json-tree-keyword:var(--dsw-alias-state-error-primary);--json-tree-punctuation:var(--dsw-alias-state-error-primary);--json-tree-icon:var(--dsw-alias-state-error-primary)}.Y0dWHa_details{border-left:.5px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-1);flex-direction:column;flex:none;width:clamp(320px,38%,440px);min-width:0;max-width:calc(100% - 280px);min-height:0;display:flex;position:relative}.Y0dWHa_detailsResizeHandle{z-index:6;cursor:col-resize;touch-action:none;user-select:none;background:0 0;border:0;width:8px;padding:0;position:absolute;top:0;bottom:0;left:-4px}.Y0dWHa_detailsResizeHandle:focus-visible{outline:none}.Y0dWHa_detailsHeader{box-sizing:border-box;border-bottom:.5px solid var(--dsw-alias-border-l2);flex:none;justify-content:space-between;align-items:center;height:42px;padding:0 8px 0 12px;display:flex}.Y0dWHa_detailsTitle{min-width:0;color:var(--dsw-alias-label-primary);align-items:center;gap:8px;display:flex}.Y0dWHa_requestDetailsDot{corner-shape:round;background:var(--dsw-alias-label-secondary);border-radius:50%;flex:none;width:5px;height:5px}.Y0dWHa_requestDetailsName{font:500 12px/16px var(--ds-font-family-code);flex:none}.Y0dWHa_detailsLocation{min-width:0;color:var(--dsw-alias-label-tertiary);font:11px/16px var(--ds-font-family-code);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.Y0dWHa_close{width:28px;height:28px;color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border:0;border-radius:6px;flex:none;justify-content:center;align-items:center;padding:0;font-size:18px;line-height:18px;display:inline-flex}.Y0dWHa_close:hover{color:var(--dsw-alias-label-primary);background:var(--dsw-alias-interactive-bg-hover)}.Y0dWHa_detailTabs{box-sizing:border-box;border-bottom:.5px solid var(--dsw-alias-border-l2);overscroll-behavior-x:contain;scrollbar-width:none;white-space:nowrap;flex:none;gap:1px;width:100%;min-width:0;max-width:100%;height:34px;padding:0 8px;display:flex;overflow:auto hidden}.Y0dWHa_detailTabs::-webkit-scrollbar{display:none}.Y0dWHa_detailTab{color:var(--dsw-alias-label-tertiary);cursor:pointer;font:var(--dsw-font-xs-13);background:0 0;border:0;flex:none;padding:0 9px;position:relative}.Y0dWHa_detailTab:hover{color:var(--dsw-alias-label-primary);background:var(--dsw-alias-interactive-bg-hover)}.Y0dWHa_detailTabActive{color:var(--dsw-alias-state-business-primary)}.Y0dWHa_detailTabActive:after{background:var(--dsw-alias-state-business-primary);content:\"\";border-radius:1px 1px 0 0;height:2px;position:absolute;bottom:0;left:9px;right:9px}.Y0dWHa_close:focus-visible,.Y0dWHa_detailTab:focus-visible{outline:1px solid var(--dsw-alias-state-business-primary);outline-offset:-1px}.Y0dWHa_detailBody{min-height:0;padding-bottom:var(--dsh-trajectory-bottom-clearance,0px);scrollbar-gutter:stable;flex:1;overflow:hidden auto}.Y0dWHa_detailBodySummary{box-sizing:border-box;padding-bottom:calc(12px + var(--dsh-trajectory-bottom-clearance,0px));flex-direction:column;display:flex;overflow:hidden}.Y0dWHa_detailBodySummary>.Y0dWHa_overview{overscroll-behavior:contain;flex:0 auto;min-height:0;overflow:auto}.Y0dWHa_detailBodySummary>.Y0dWHa_compactedSummary{flex:1;min-height:0;overflow:auto}.Y0dWHa_summaryScrollRegion{--dsh-scrollbar-thumb:transparent;--dsh-scrollbar-thumb-hover:transparent}.Y0dWHa_summaryScrollRegion:hover,.Y0dWHa_summaryScrollRegion:focus-within{--dsh-scrollbar-thumb:var(--dsw-alias-scrollbar-bg-l2);--dsh-scrollbar-thumb-hover:var(--dsw-alias-scrollbar-hover-l2)}.Y0dWHa_compactedSummary .Y0dWHa_markdownPayload{padding-right:18px}.Y0dWHa_overview{font:var(--dsw-font-xs-13);margin:0;padding:8px 0}.Y0dWHa_overviewParentLinks{gap:14px;display:flex}.Y0dWHa_overviewHierarchyNavLink{all:unset;color:var(--dsw-alias-label-secondary);cursor:pointer;font:inherit;opacity:1;align-items:center;gap:1px;display:inline-flex}.Y0dWHa_overviewHierarchyNavLink:hover{color:var(--dsw-alias-label-primary)}.Y0dWHa_overviewHierarchyJumpIconTight{color:var(--dsw-alias-label-caption);flex:none}.Y0dWHa_overviewHierarchyNavLink:hover .Y0dWHa_overviewHierarchyJumpIconTight,.Y0dWHa_overviewHierarchyNavLink:focus-visible .Y0dWHa_overviewHierarchyJumpIconTight{color:var(--dsw-alias-label-primary)}.Y0dWHa_overviewHierarchyNavLink:focus-visible{color:var(--dsw-alias-label-primary);outline:1px solid var(--dsw-alias-state-business-primary);outline-offset:2px}.Y0dWHa_overview>div{grid-template-columns:94px minmax(0,1fr);align-items:center;min-height:22px;padding:0 14px;display:grid}.Y0dWHa_overview>.Y0dWHa_requestTokenDetail dt{padding-left:12px}.Y0dWHa_usagePanel{padding:4px 0 10px}.Y0dWHa_usageGroup+.Y0dWHa_usageGroup{margin-top:8px}.Y0dWHa_usageHeading{color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xs-strong-13);user-select:none;margin:0;padding:4px 14px 1px}.Y0dWHa_usageGroup .Y0dWHa_overview{padding:0}.Y0dWHa_overview dt{color:var(--dsw-alias-label-tertiary)}.Y0dWHa_overview dd{min-width:0;color:var(--dsw-alias-label-primary);text-overflow:ellipsis;white-space:nowrap;margin:0;overflow:hidden}.Y0dWHa_timestampToggle{all:unset;color:inherit;cursor:pointer;font:inherit;user-select:text}.Y0dWHa_timestampToggle:focus-visible{outline:1px solid var(--dsw-alias-state-business-primary);outline-offset:2px}.Y0dWHa_overviewSections{border-top:0;flex-direction:column;flex:1;min-height:min-content;display:flex;overflow:hidden}.Y0dWHa_overviewSection{flex-direction:column;flex:1 1 0;min-height:28px;max-height:max-content;display:flex;overflow:hidden}.Y0dWHa_overviewSection+.Y0dWHa_overviewSection{padding-top:8px}.Y0dWHa_overviewHeading{box-sizing:border-box;width:100%;height:28px;color:var(--dsw-alias-label-secondary);background:var(--dsw-alias-bg-layer-1);font:var(--dsw-font-xs-strong-13);user-select:none;flex:none;align-items:flex-end;margin:0;padding:0 0 3px 14px;display:flex}.Y0dWHa_overviewTitle{width:max-content;height:auto;color:inherit;cursor:pointer;font:inherit;user-select:none;background:0 0;border:0;flex:none;align-items:center;gap:3px;padding:0;line-height:1;display:inline-flex}.Y0dWHa_overviewTitleIcon{color:var(--dsw-alias-label-caption);flex:none}.Y0dWHa_overviewTitle:hover .Y0dWHa_overviewTitleIcon{color:var(--dsw-alias-label-primary)}.Y0dWHa_overviewTitle:focus-visible{outline:1px solid var(--dsw-alias-state-business-primary);outline-offset:2px}.Y0dWHa_overviewTitle:focus-visible .Y0dWHa_overviewTitleIcon{color:var(--dsw-alias-state-business-primary)}.Y0dWHa_overviewPreview{overscroll-behavior:contain;background:var(--dsw-alias-bg-layer-1);flex:1;min-height:0;overflow:auto}.Y0dWHa_overviewPreview>:last-child{margin-bottom:0;padding-bottom:0}.Y0dWHa_overviewPreview .Y0dWHa_jsonPreview>:first-child,.Y0dWHa_overviewPreview .Y0dWHa_schemaTree>:first-child{padding-bottom:0}.Y0dWHa_overviewPreview .Y0dWHa_schemaTree{margin-bottom:0}.Y0dWHa_overviewPreview .Y0dWHa_overview{padding:2px 0 0}.Y0dWHa_overviewPreview .Y0dWHa_overview>div{min-height:22px}.Y0dWHa_markdownPreview,.Y0dWHa_markdownPayload{color:var(--dsw-alias-label-primary)}.Y0dWHa_markdownPreview>div,.Y0dWHa_markdownPayload>div{font:var(--dsw-font-xs-13);gap:8px}.Y0dWHa_markdownPreview>div h1,.Y0dWHa_markdownPayload>div h1{font:600 16px/22px var(--dsw-font-family)}.Y0dWHa_markdownPreview>div h2,.Y0dWHa_markdownPayload>div h2{font:600 15px/22px var(--dsw-font-family)}.Y0dWHa_markdownPreview>div :where(h3,h4,h5,h6),.Y0dWHa_markdownPayload>div :where(h3,h4,h5,h6){font:600 14px/20px var(--dsw-font-family)}.Y0dWHa_markdownPreview>div :not(pre)>code,.Y0dWHa_markdownPayload>div :not(pre)>code{font:12px/18px var(--ds-font-family-code)}.Y0dWHa_markdownPreview>div table,.Y0dWHa_markdownPayload>div table{font:var(--dsw-font-xs-13)}.Y0dWHa_markdownPreview>div>:first-child{margin-top:0}.Y0dWHa_markdownPreview>div>:last-child{margin-bottom:0}.Y0dWHa_markdownPreview>div :where(h1,h2,h3){margin:12px 0 6px}.Y0dWHa_markdownPreview>div :where(h4,h5,h6){margin:10px 0 5px}.Y0dWHa_markdownPreview>div :where(p,ul,ol){margin:8px 0}.Y0dWHa_markdownPreview>div li:not(:first-child){margin-top:3px}.Y0dWHa_markdownPreview>div blockquote{margin-top:8px}.Y0dWHa_markdownPreview>div hr{margin:14px 0}.Y0dWHa_markdownPreview>div>.md-code-block{margin:10px 0}.Y0dWHa_assistantContent .Y0dWHa_markdownPayload,.Y0dWHa_assistantContent .Y0dWHa_payload{min-height:0}.Y0dWHa_thinkingQuote{border-left:2px solid var(--dsw-alias-markdown-citation);color:var(--dsw-alias-label-secondary);background:0 0;margin:6px 14px 0 12px;padding-left:6px}.Y0dWHa_thinkingQuoteOnlyPreview{margin-bottom:8px}.Y0dWHa_detailBody>.Y0dWHa_assistantContentRendered .Y0dWHa_thinkingQuote{margin-top:14px}.Y0dWHa_thinkingToggle{width:max-content;height:18px;color:var(--dsw-alias-label-tertiary);cursor:pointer;font:600 12px/18px var(--dsw-font-family);user-select:none;background:0 0;border:0;align-items:center;gap:2px;padding:0;display:flex}.Y0dWHa_thinkingChevron{transition:transform .12s var(--ds-ease-in-out);flex:none}.Y0dWHa_thinkingToggle[aria-expanded=true] .Y0dWHa_thinkingChevron{transform:rotate(90deg)}.Y0dWHa_thinkingToggle:hover{color:var(--dsw-alias-label-secondary)}.Y0dWHa_thinkingToggle:focus-visible{outline:1px solid var(--dsw-alias-state-business-primary);outline-offset:2px}.Y0dWHa_thinkingQuote .Y0dWHa_markdownPreview,.Y0dWHa_thinkingQuote .Y0dWHa_markdownPayload,.Y0dWHa_thinkingQuote .Y0dWHa_payload{min-height:0;color:var(--dsw-alias-label-secondary);background:0 0;padding:2px 0}.Y0dWHa_assistantOutput{background:var(--dsw-alias-bg-layer-1)}.Y0dWHa_markdownPreview{padding:6px 14px 8px}.Y0dWHa_markdownPayload{min-height:100%;padding:14px}.Y0dWHa_jsonPayload{min-height:100%}.Y0dWHa_jsonPreview{min-height:0}.Y0dWHa_schema{background:var(--dsw-alias-bg-layer-1);min-height:100%}.Y0dWHa_schemaPreview{min-height:0}.Y0dWHa_schemaIntro{padding:12px 14px 6px}.Y0dWHa_schemaPreview .Y0dWHa_schemaIntro{padding-top:6px}.Y0dWHa_schemaName{color:var(--dsw-alias-label-primary);font:600 12px/18px var(--ds-font-family-code);margin:0}.Y0dWHa_schemaDescription{color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xs-13);white-space:pre-wrap;margin:2px 0 0}.Y0dWHa_schemaParameters{min-width:0}.Y0dWHa_schemaParametersTitle{color:var(--dsw-alias-label-tertiary);font:600 11px/16px var(--dsw-font-family);user-select:none;margin:0;padding:4px 14px 2px}.Y0dWHa_schemaTree{margin:0 6px 8px 0}.Y0dWHa_payload{box-sizing:border-box;overflow-wrap:anywhere;min-height:100%;color:var(--dsw-alias-label-primary);background:var(--dsw-alias-markdown-code-block);font:12px/19px var(--ds-font-family-code);tab-size:2;white-space:pre-wrap;margin:0;padding:14px}.Y0dWHa_payloadPreview{min-height:0;padding:6px 14px 8px}.Y0dWHa_sourceBlocks{box-sizing:border-box;min-height:100%;padding:12px 14px}.Y0dWHa_sourceBlock+.Y0dWHa_sourceBlock{margin-top:14px}.Y0dWHa_sourceBlockHeader,.Y0dWHa_sourceBlockJumpTarget{user-select:none;align-items:center;gap:3px;width:max-content;margin-bottom:3px;display:flex}.Y0dWHa_sourceBlockJumpTarget{all:unset;cursor:pointer;user-select:none;align-items:center;gap:3px;width:max-content;margin-bottom:3px;display:flex}.Y0dWHa_sourceBlockLabel{color:var(--dsw-alias-label-tertiary);font:11px/16px var(--ds-font-family-code)}.Y0dWHa_sourceBlockJumpIcon{color:var(--dsw-alias-label-caption);flex:none}.Y0dWHa_sourceBlockJumpTarget:hover .Y0dWHa_sourceBlockJumpIcon{color:var(--dsw-alias-label-primary)}.Y0dWHa_sourceBlockJumpTarget:focus-visible{outline:none}.Y0dWHa_sourceBlockJumpTarget:focus-visible .Y0dWHa_sourceBlockJumpIcon{color:var(--dsw-alias-state-business-primary)}.Y0dWHa_sourceBlockContent{overflow-wrap:anywhere;color:var(--dsw-alias-label-primary);font:12px/19px var(--ds-font-family-code);tab-size:2;white-space:pre-wrap;background:0 0;margin:0}.Y0dWHa_messageImages{flex-direction:column;gap:8px;margin:8px 14px 14px;display:flex}.Y0dWHa_messageImagesPreview{gap:6px;margin:6px 14px 8px}.Y0dWHa_assistantToolCalls{box-sizing:border-box;max-width:100%;color:var(--dsw-alias-label-secondary);font:11px/17px var(--ds-font-family-code);margin:2px 14px 12px;padding:0;list-style:none}.Y0dWHa_assistantToolCallsPreview{margin-top:2px;margin-bottom:8px}.Y0dWHa_assistantToolCalls li{min-width:0}.Y0dWHa_assistantToolCallButton{all:unset;box-sizing:border-box;cursor:pointer;border-radius:3px;align-items:center;width:calc(100% + 4px);min-width:0;height:19px;margin-left:-4px;padding:0 4px;display:flex}.Y0dWHa_assistantToolCallButton:hover{background:var(--dsw-alias-interactive-bg-hover)}.Y0dWHa_assistantToolCallButton:focus-visible{background:var(--dsw-alias-interactive-bg-hover);outline:1px solid var(--dsw-alias-state-business-primary);outline-offset:-1px}.Y0dWHa_assistantToolCallIcon{color:var(--dsw-alias-label-caption);flex:none;margin-right:5px}.Y0dWHa_assistantToolCallButton:hover .Y0dWHa_assistantToolCallIcon,.Y0dWHa_assistantToolCallButton:focus-visible .Y0dWHa_assistantToolCallIcon{color:var(--dsw-alias-label-secondary)}.Y0dWHa_assistantToolCallText{white-space:nowrap;flex:1;min-width:0;display:flex;overflow:hidden}.Y0dWHa_assistantToolCallName{color:var(--dsw-alias-label-secondary);flex:none;margin-right:5px;font-weight:500}.Y0dWHa_assistantToolCallArgs{min-width:0;color:var(--dsw-alias-label-tertiary);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.Y0dWHa_systemPrompt{box-sizing:border-box}.Y0dWHa_toolCatalog{min-height:100%;padding:8px 0 16px}.Y0dWHa_toolCatalogItem{border-bottom:.5px solid var(--dsw-alias-border-l1)}.Y0dWHa_toolCatalogSummary{box-sizing:border-box;cursor:pointer;user-select:none;grid-template-columns:12px 12px max-content minmax(0,1fr);align-items:center;gap:5px;min-height:30px;padding:4px 12px;list-style:none;display:grid}.Y0dWHa_toolCatalogSummary::-webkit-details-marker{display:none}.Y0dWHa_toolCatalogSummary:hover{background:var(--dsw-alias-interactive-bg-hover)}.Y0dWHa_toolCatalogSummary:focus-visible{background:var(--dsw-alias-interactive-bg-hover);outline:1px solid var(--dsw-alias-state-business-primary);outline-offset:-1px}.Y0dWHa_toolCatalogChevron,.Y0dWHa_toolCatalogIcon{color:var(--dsw-alias-label-caption)}.Y0dWHa_toolCatalogChevron{transition:transform .1s var(--ds-ease-in-out)}.Y0dWHa_toolCatalogItem[open] .Y0dWHa_toolCatalogChevron{transform:rotate(90deg)}.Y0dWHa_toolCatalogName{color:var(--dsw-alias-label-primary);font:500 12px/18px var(--ds-font-family-code)}.Y0dWHa_toolCatalogDescription{min-width:0;color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xs-13);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.Y0dWHa_toolCatalogDefinition{background:var(--dsw-alias-bg-base);padding:0 0 8px 29px}.Y0dWHa_toolCatalogFullDescription{color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xs-13);white-space:pre-wrap;margin:0;padding:7px 14px 4px 0}.Y0dWHa_toolCatalogTree{margin-left:-14px;margin-right:6px}.Y0dWHa_resultBlocks{box-sizing:border-box;flex-direction:column;gap:10px;min-height:100%;padding:14px;display:flex}.Y0dWHa_resultBlocksPreview{gap:6px;min-height:0;padding:6px 14px 8px}.Y0dWHa_resultBlockText{overflow-wrap:anywhere;color:var(--dsw-alias-label-primary);font:12px/19px var(--ds-font-family-code);tab-size:2;white-space:pre-wrap;background:0 0;margin:0}.Y0dWHa_overviewPreview .Y0dWHa_noPayload{padding:6px 14px 8px}.Y0dWHa_noPayload{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xs-13);margin:0;padding:18px 14px}@media (width<=760px){.Y0dWHa_details{z-index:5;border-left-color:var(--dsw-alias-border-l3);width:min(92%,420px);max-width:92%;position:absolute;top:0;bottom:0;right:0;box-shadow:-12px 0 32px #00000024}}";
|
|
3818
|
+
const css$3 = ".Y0dWHa_split{--dsh-scrollbar-thumb:var(--dsw-alias-scrollbar-bg-l2);--dsh-scrollbar-thumb-hover:var(--dsw-alias-scrollbar-hover-l2);background:var(--dsw-alias-bg-layer-1);flex:1;width:100%;min-height:0;display:flex;position:relative;overflow:hidden;container-type:inline-size}.Y0dWHa_tablePane{min-width:0;padding-bottom:var(--dsh-trajectory-bottom-clearance,0px);flex:1;position:relative;overflow:hidden auto;container:Y0dWHa_trajectory-table/inline-size}.Y0dWHa_historyLoading{z-index:5;pointer-events:none;height:0;position:sticky;top:0;overflow:visible}.Y0dWHa_historyLoadingBar{box-sizing:border-box;border-bottom:.5px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-1);width:100%;height:30px;color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xxs-12);justify-content:center;align-items:center;gap:6px;display:flex}.Y0dWHa_table tbody .Y0dWHa_historyLoadRow td{height:30px;padding:0}.Y0dWHa_table tbody .Y0dWHa_historyLoadRow+tr[data-turn-start=true] td:before{content:none}.Y0dWHa_historyLoadButton{background:var(--dsw-alias-bg-layer-1);width:100%;height:29px;color:var(--dsw-alias-label-secondary);cursor:pointer;font:var(--dsw-font-xxs-12);border:0;justify-content:center;align-items:center;gap:6px;display:flex}.Y0dWHa_historyLoadButton:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}.Y0dWHa_historyLoadButton:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:-2px}.Y0dWHa_historyLoadButton:disabled{cursor:default}.Y0dWHa_visuallyHidden{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.Y0dWHa_table:not([data-scroll-ready=true]){visibility:hidden}.Y0dWHa_table{--trajectory-turn-accent:color-mix(in srgb, var(--dsw-static-blue-500) 22%, var(--dsw-alias-bg-layer-1));border-spacing:0;table-layout:fixed;width:100%;min-width:0;color:var(--dsw-alias-label-primary);background:var(--dsw-alias-bg-layer-1);font:var(--dsw-font-xxs-12)}.Y0dWHa_eventColumn{width:122px}.Y0dWHa_eventColumn:where(:lang(zh)){width:84px}.Y0dWHa_contentColumn{width:auto}.Y0dWHa_table th{z-index:3;box-sizing:border-box;border-bottom:.5px solid var(--dsw-alias-border-l2);height:30px;color:var(--dsw-alias-label-tertiary);background:var(--dsw-specific-sidebar-fill);font:var(--dsw-font-xxs-12);text-align:left;text-overflow:ellipsis;user-select:none;white-space:nowrap;padding:0 8px;font-weight:500;position:sticky;top:0;overflow:hidden}.Y0dWHa_eventHeader{text-align:right!important;padding-right:4px!important}.Y0dWHa_table td{box-sizing:border-box;border-bottom:.5px solid var(--dsw-alias-border-l1);text-overflow:ellipsis;white-space:nowrap;height:30px;padding:0 8px;overflow:hidden}.Y0dWHa_table tbody .Y0dWHa_virtualSpacer{pointer-events:none}.Y0dWHa_table tbody .Y0dWHa_virtualSpacer td{height:var(--trajectory-virtual-spacer-height);border:0;padding:0}.Y0dWHa_table tbody tr:not([data-collapsed-summary]):not([data-virtual-spacer]):not([data-history-load]){cursor:default;transition:background-color .12s var(--ds-ease-in-out), opacity .12s var(--ds-ease-in-out);outline:none}.Y0dWHa_table tbody tr[data-timeline-focus=outside]{opacity:.24}.Y0dWHa_table tbody tr:not([data-collapsed-summary]):not([data-virtual-spacer]):not([data-history-load]):not([data-selected=true]):hover{background:var(--dsw-alias-interactive-bg-hover)}.Y0dWHa_table tbody tr[data-request-only=true]:hover{background:0 0}.Y0dWHa_table tbody tr[data-request-only=true] td{border-bottom:0;height:0;padding-top:0;padding-bottom:0}.Y0dWHa_table tbody tr[data-terminal-request-boundary=true] td{height:9px}.Y0dWHa_table tbody tr[data-request-only=true] .Y0dWHa_turnRail{top:-15px;bottom:0}.Y0dWHa_table tbody tr:not([data-collapsed-summary]):focus-visible{box-shadow:inset 0 0 0 1px var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary))}.Y0dWHa_table tbody tr[data-selected=true]{background:var(--dsw-alias-interactive-bg-active)}.Y0dWHa_requestBoundaryControl{--request-boundary-base-left:12px;z-index:6;top:-8px;left:calc(var(--request-boundary-base-left) + var(--request-boundary-offset,0px));cursor:pointer;background:0 0;border:0;width:16px;height:16px;padding:0;position:absolute}.Y0dWHa_requestBoundaryControl:before{corner-shape:round;background:var(--dsw-alias-label-caption);width:5px;height:5px;box-shadow:0 0 0 2px var(--dsw-alias-bg-layer-1), 0 0 0 3px transparent;content:\"\";transition:background .12s var(--ds-ease-in-out), box-shadow .12s var(--ds-ease-in-out);border-radius:50%;position:absolute;top:5.5px;left:5.5px}.Y0dWHa_requestBoundaryControl:after{border:.5px solid var(--dsw-alias-border-l1);width:max-content;color:var(--dsw-alias-label-secondary);background:var(--dsw-alias-bg-layer-1);content:attr(data-label);font:9px/12px var(--ds-font-family-code);opacity:0;pointer-events:none;transition:opacity .12s var(--ds-ease-in-out), transform .12s var(--ds-ease-in-out);user-select:none;white-space:nowrap;border-radius:2px;padding:0 4px;position:absolute;top:2px;left:17px;transform:translate(-2px);box-shadow:0 2px 6px #0000001f}.Y0dWHa_requestBoundaryControl:hover:before,.Y0dWHa_requestBoundaryControl:focus-visible:before{background:var(--dsw-alias-brand-primary-new-colorprimary-new-color)}.Y0dWHa_requestBoundaryControlActive:before,.Y0dWHa_requestBoundaryControlActive:hover:before,.Y0dWHa_requestBoundaryControlActive:focus-visible:before{background:color-mix(in srgb, var(--dsw-alias-brand-primary-new-colorprimary-new-color) 18%, var(--dsw-alias-bg-layer-1));box-shadow:0 0 0 1.5px var(--dsw-alias-state-business-primary)}.Y0dWHa_requestBoundaryControl[data-request-status=error]:before,.Y0dWHa_requestBoundaryControl[data-request-status=error]:hover:before,.Y0dWHa_requestBoundaryControl[data-request-status=error]:focus-visible:before{background:var(--dsw-alias-state-error-primary)}.Y0dWHa_requestBoundaryControl:hover:after,.Y0dWHa_requestBoundaryControl:focus-visible:after{opacity:1;transform:translate(0)}.Y0dWHa_requestBoundaryControl:focus-visible{outline:none}.Y0dWHa_table tbody tr:has(.Y0dWHa_requestBoundaryControl:hover):not([data-selected=true]){background:0 0}.Y0dWHa_event{position:relative}.Y0dWHa_turnRail,.Y0dWHa_selectionRail{background:var(--dsw-alias-brand-primary-new-colorprimary-new-color);pointer-events:none;position:absolute;left:0}.Y0dWHa_turnRail{z-index:4;background:var(--trajectory-turn-accent);width:2px;top:-1px;bottom:-1px}.Y0dWHa_table tbody tr[data-turn-end=true] .Y0dWHa_turnRail{bottom:0}.Y0dWHa_selectionRail{z-index:5;width:3px;top:0;bottom:0}.Y0dWHa_table tbody tr[data-error=true] .Y0dWHa_turnRail{background:color-mix(in srgb, var(--dsw-alias-state-error-primary) 22%, var(--dsw-alias-bg-layer-1))}.Y0dWHa_table tbody tr[data-error=true] .Y0dWHa_selectionRail{background:var(--dsw-alias-state-error-primary)}.Y0dWHa_table tbody tr[data-turn-start=true] td{position:relative;overflow:visible}.Y0dWHa_table tbody tr[data-turn-start=true]:not(:first-child) td:before{z-index:1;background:var(--dsw-alias-border-l1);content:\"\";pointer-events:none;height:2px;position:absolute;top:0;left:0;right:0;transform:translateY(-50%)}.Y0dWHa_event{padding-left:36px!important;padding-right:4px!important;overflow:visible!important}.Y0dWHa_turnLabel{z-index:3;box-sizing:border-box;width:max-content;color:var(--dsw-alias-label-tertiary);background:var(--dsw-alias-bg-module-platform);font:8px/10px var(--ds-font-family-code);font-variant-numeric:tabular-nums;user-select:none;white-space:nowrap;border-radius:0 0 2px;flex:none;align-items:center;padding:1px 5px;display:inline-grid;position:absolute;top:0;left:0}.Y0dWHa_turnLabelFull,.Y0dWHa_turnLabelCompact{opacity:1;white-space:nowrap;grid-area:1/1;max-width:64px;overflow:hidden}.Y0dWHa_turnLabelCompact{opacity:0;max-width:0}.Y0dWHa_turnLabelActive{color:color-mix(in srgb, var(--dsw-static-blue-500) 55%, var(--dsw-alias-label-tertiary));background:var(--trajectory-turn-accent)}.Y0dWHa_eventInner{justify-content:flex-start;align-items:center;min-width:0;height:100%;display:flex}.Y0dWHa_kindSlot{flex:none;justify-content:flex-end;align-items:flex-end;width:76px;display:flex}.Y0dWHa_kindSlot:where(:lang(zh)){width:44px}.Y0dWHa_kindSlot [role=tooltip]{background:var(--dsw-alias-bg-layer-2);box-shadow:var(--dsw-elevation-panel);color:var(--dsw-alias-label-primary);border:0}.Y0dWHa_content{color:var(--dsw-alias-label-primary);padding-left:4px!important}.Y0dWHa_kindTag{box-sizing:border-box;border-radius:var(--dsw-radius-xs);letter-spacing:.035em;user-select:none;border:1px solid #0000;flex:none;align-items:center;height:19px;padding:0 5px;font-size:10px;font-weight:650;line-height:16px;display:inline-flex}.Y0dWHa_kindTagIcon{opacity:0;flex:none;justify-content:center;align-items:center;width:0;height:13px;display:inline-flex;overflow:hidden;transform:scale(.8)}.Y0dWHa_kindTagLabel{opacity:1;white-space:nowrap;max-width:72px;display:inline-block;overflow:hidden}.Y0dWHa_table .Y0dWHa_kindSlot .Y0dWHa_message{justify-content:center;width:100%}@container Y0dWHa_trajectory-table (width<=620px){.Y0dWHa_eventColumn{width:50px}.Y0dWHa_event{padding-left:28px!important;padding-right:3px!important}.Y0dWHa_requestBoundaryControl{--request-boundary-base-left:6px}.Y0dWHa_kindSlot{width:19px}.Y0dWHa_kindTag,.Y0dWHa_table .Y0dWHa_kindSlot .Y0dWHa_message{justify-content:center;width:19px;padding-left:0;padding-right:0}.Y0dWHa_kindTagIcon{opacity:1;width:13px;transform:scale(1)}.Y0dWHa_kindTagLabel,.Y0dWHa_turnLabelFull{opacity:0;max-width:0}.Y0dWHa_turnLabelCompact{opacity:1;max-width:64px}}@media (prefers-reduced-motion:no-preference){.Y0dWHa_eventColumn,.Y0dWHa_event,.Y0dWHa_requestBoundaryControl,.Y0dWHa_kindSlot,.Y0dWHa_kindTag,.Y0dWHa_kindTagIcon,.Y0dWHa_kindTagLabel,.Y0dWHa_turnLabelFull,.Y0dWHa_turnLabelCompact{transition-duration:.18s;transition-timing-function:var(--ds-ease-in-out)}.Y0dWHa_eventColumn,.Y0dWHa_kindSlot{transition-property:width}.Y0dWHa_event{transition-property:padding-right,padding-left}.Y0dWHa_requestBoundaryControl{transition-property:left}.Y0dWHa_kindTag{transition-property:padding-right,padding-left}.Y0dWHa_kindTagIcon{transition-property:width,opacity,transform}.Y0dWHa_kindTagLabel,.Y0dWHa_turnLabelFull,.Y0dWHa_turnLabelCompact{transition-property:max-width,opacity}}.Y0dWHa_user{color:var(--dsw-alias-state-business-primary);background:var(--dsw-alias-state-business-tertiary)}.Y0dWHa_systemNeutral{color:var(--dsw-alias-label-secondary);background:var(--dsw-alias-bg-module-platform)}.Y0dWHa_contextGreen{color:color-mix(in srgb, var(--dsw-alias-state-success-primary) 68%, var(--dsw-alias-label-secondary));background:var(--dsw-alias-state-success-tertiary)}.Y0dWHa_compacted{color:var(--dsw-alias-label-secondary);background:var(--dsw-alias-bg-module-platform)}.Y0dWHa_compactedSummary{font:var(--dsw-font-xs-13);margin-top:12px;padding:0 0 14px}.Y0dWHa_promptDiffSections{flex-direction:column;gap:14px;max-height:100%;padding:10px 14px 14px;display:flex;overflow:auto}.Y0dWHa_promptDiffSection{min-width:0}.Y0dWHa_promptDiffTitle{color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xs-strong-13);user-select:none;margin:0 0 6px}.Y0dWHa_promptDiff{color:var(--dsw-alias-label-primary);background:var(--dsw-alias-bg-layer-1);font:11px/17px var(--ds-font-family-code);white-space:pre;margin:0;overflow:auto}.Y0dWHa_promptDiff span{min-width:max-content;padding:0 6px;display:block}.Y0dWHa_promptDiffLinemeta{color:var(--dsw-alias-label-caption);background:var(--dsw-alias-bg-module-platform);user-select:none}.Y0dWHa_promptDiffLinecontext{color:var(--dsw-alias-label-secondary)}.Y0dWHa_promptDiffLineadded{color:color-mix(in srgb, var(--dsw-alias-state-success-primary) 72%, var(--dsw-alias-label-primary));background:var(--dsw-alias-state-success-tertiary)}.Y0dWHa_promptDiffLineremoved{color:var(--dsw-alias-state-error-primary);background:color-mix(in srgb, var(--dsw-alias-state-error-primary) 12%, var(--dsw-alias-bg-layer-1))}.Y0dWHa_assistantVioletBright{color:color-mix(in srgb, var(--dsw-alias-brand-primary-new-colorprimary-new-color) 60%, var(--dsw-alias-state-error-secondary));background:color-mix(in srgb, color-mix(in srgb, var(--dsw-alias-brand-primary-new-colorprimary-new-color) 55%, var(--dsw-alias-state-error-secondary)) 15%, var(--dsw-alias-bg-layer-1))}.Y0dWHa_toolAmber{color:var(--dsw-alias-state-warn-label);background:var(--dsw-alias-state-warn-tertiary)}.Y0dWHa_subtoolAmber{color:color-mix(in srgb, var(--dsw-alias-state-warn-label) 62%, var(--dsw-alias-label-tertiary));background:color-mix(in srgb, var(--dsw-alias-state-warn-tertiary) 58%, var(--dsw-alias-bg-layer-1))}.Y0dWHa_contentText{text-overflow:ellipsis;white-space:nowrap;min-width:0;display:block;overflow:hidden}.Y0dWHa_toolCallOnly{color:var(--dsw-alias-label-tertiary)}.Y0dWHa_table tbody tr[data-collapsed-summary=turn] td,.Y0dWHa_table tbody tr[data-collapsed-summary=assistant] td{height:20px}.Y0dWHa_table tbody tr[data-collapsed-summary]{cursor:pointer;transition:background-color .12s var(--ds-ease-in-out);outline:none}.Y0dWHa_table tbody tr[data-collapsed-summary]:hover{background:var(--dsw-alias-interactive-bg-hover)}.Y0dWHa_table tbody tr[data-collapsed-summary]:focus-visible{box-shadow:inset 0 0 0 1px var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary))}.Y0dWHa_collapsedTurnContent{min-width:0;color:var(--dsw-alias-label-secondary);align-items:center;font-size:12px;line-height:16px;display:flex}.Y0dWHa_collapsedTurnEllipsis{color:var(--dsw-alias-label-tertiary);user-select:none;flex:none;margin-right:6px;font-weight:600}.Y0dWHa_collapsedTurnText{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.Y0dWHa_resultPreview{grid-template-columns:clamp(180px, var(--trajectory-tool-request-width,calc(36cqw - 56px)), 480px) minmax(0, 1fr);align-items:center;gap:8px;min-width:0;display:grid}.Y0dWHa_resultRequest,.Y0dWHa_inlineResultText{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.Y0dWHa_toolCallNameTypeface{color:var(--dsw-alias-label-primary);font:400 12px/18px Menlo,Consolas,Liberation Mono,PingFang SC,Microsoft YaHei}.Y0dWHa_toolCallPayload{color:var(--dsw-alias-label-secondary);font:400 12px/18px var(--ds-font-family-code);margin-left:7px}.Y0dWHa_table tbody tr[data-kind=tool] .Y0dWHa_contentText,.Y0dWHa_table tbody tr[data-kind=subtool] .Y0dWHa_contentText,.Y0dWHa_table tbody tr[data-kind=tool] .Y0dWHa_resultPreview,.Y0dWHa_table tbody tr[data-kind=subtool] .Y0dWHa_resultPreview{font-family:var(--ds-font-family-code);font-size:12px}.Y0dWHa_table tbody tr[data-kind=subtool] .Y0dWHa_content{padding-left:26px}.Y0dWHa_inlineResult{min-width:0;color:var(--dsw-alias-label-secondary);align-items:center;display:flex}.Y0dWHa_noOutputText{color:var(--dsw-alias-label-caption)}.Y0dWHa_arrow{color:var(--dsw-alias-label-caption);flex:none;margin-right:8px}.Y0dWHa_error,.Y0dWHa_overview dd.Y0dWHa_error,.Y0dWHa_details .Y0dWHa_errorPayload{color:var(--dsw-alias-state-error-primary)}.Y0dWHa_details .Y0dWHa_errorPayload .Y0dWHa_resultBlockText{color:inherit}.Y0dWHa_details .Y0dWHa_jsonPayload.Y0dWHa_errorPayload,.Y0dWHa_details .Y0dWHa_jsonPreview.Y0dWHa_errorPayload{--json-tree-property:var(--dsw-alias-state-error-primary);--json-tree-string:var(--dsw-alias-state-error-primary);--json-tree-number:var(--dsw-alias-state-error-primary);--json-tree-keyword:var(--dsw-alias-state-error-primary);--json-tree-punctuation:var(--dsw-alias-state-error-primary);--json-tree-icon:var(--dsw-alias-state-error-primary)}.Y0dWHa_details{border-left:.5px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-1);flex-direction:column;flex:none;width:clamp(320px,38%,440px);min-width:0;max-width:calc(100% - 280px);min-height:0;display:flex;position:relative}.Y0dWHa_detailsResizeHandle{z-index:6;cursor:col-resize;touch-action:none;user-select:none;background:0 0;border:0;width:8px;padding:0;position:absolute;top:0;bottom:0;left:-4px}.Y0dWHa_detailsResizeHandle:focus-visible{outline:none}.Y0dWHa_detailsHeader{box-sizing:border-box;border-bottom:.5px solid var(--dsw-alias-border-l2);flex:none;justify-content:space-between;align-items:center;height:42px;padding:0 8px 0 12px;display:flex}.Y0dWHa_detailsTitle{min-width:0;color:var(--dsw-alias-label-primary);align-items:center;gap:8px;display:flex}.Y0dWHa_requestDetailsDot{corner-shape:round;background:var(--dsw-alias-label-secondary);border-radius:50%;flex:none;width:5px;height:5px}.Y0dWHa_requestDetailsName{font:500 12px/16px var(--ds-font-family-code);flex:none}.Y0dWHa_detailsLocation{min-width:0;color:var(--dsw-alias-label-tertiary);font:11px/16px var(--ds-font-family-code);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.Y0dWHa_close{border-radius:var(--dsw-radius-sm);width:28px;height:28px;color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border:0;flex:none;justify-content:center;align-items:center;padding:0;font-size:18px;line-height:18px;display:inline-flex}.Y0dWHa_close:hover{color:var(--dsw-alias-label-primary);background:var(--dsw-alias-interactive-bg-hover)}.Y0dWHa_detailTabs{box-sizing:border-box;border-bottom:.5px solid var(--dsw-alias-border-l2);overscroll-behavior-x:contain;scrollbar-width:none;white-space:nowrap;flex:none;gap:1px;width:100%;min-width:0;max-width:100%;height:34px;padding:0 8px;display:flex;overflow:auto hidden}.Y0dWHa_detailTabs::-webkit-scrollbar{display:none}.Y0dWHa_detailTab{color:var(--dsw-alias-label-tertiary);cursor:pointer;font:var(--dsw-font-xs-13);background:0 0;border:0;flex:none;padding:0 9px;position:relative}.Y0dWHa_detailTab:hover{color:var(--dsw-alias-label-primary);background:var(--dsw-alias-interactive-bg-hover)}.Y0dWHa_detailTabActive{color:var(--dsw-alias-state-business-primary)}.Y0dWHa_detailTabActive:after{background:var(--dsw-alias-state-business-primary);content:\"\";border-radius:1px 1px 0 0;height:2px;position:absolute;bottom:0;left:9px;right:9px}.Y0dWHa_close:focus-visible,.Y0dWHa_detailTab:focus-visible{outline:1px solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:-1px}.Y0dWHa_detailBody{min-height:0;padding-bottom:var(--dsh-trajectory-bottom-clearance,0px);scrollbar-gutter:stable;flex:1;overflow:hidden auto}.Y0dWHa_detailBodySummary{box-sizing:border-box;padding-bottom:calc(12px + var(--dsh-trajectory-bottom-clearance,0px));flex-direction:column;display:flex;overflow:hidden}.Y0dWHa_detailBodySummary>.Y0dWHa_overview{overscroll-behavior:contain;flex:0 auto;min-height:0;padding-bottom:0;overflow:auto}.Y0dWHa_detailBodySummary>.Y0dWHa_compactedSummary{flex:1;min-height:0;overflow:auto}.Y0dWHa_summaryScrollRegion{--dsh-scrollbar-thumb:transparent;--dsh-scrollbar-thumb-hover:transparent}.Y0dWHa_summaryScrollRegion:hover,.Y0dWHa_summaryScrollRegion:focus-within{--dsh-scrollbar-thumb:var(--dsw-alias-scrollbar-bg-l2);--dsh-scrollbar-thumb-hover:var(--dsw-alias-scrollbar-hover-l2)}.Y0dWHa_compactedSummary .Y0dWHa_markdownPayload{padding-right:18px}.Y0dWHa_overview{font:var(--dsw-font-xs-13);margin:0;padding:8px 0}.Y0dWHa_overviewParentLinks{gap:14px;display:flex}.Y0dWHa_overviewHierarchyNavLink{all:unset;color:var(--dsw-alias-label-secondary);cursor:pointer;font:inherit;opacity:1;align-items:center;gap:1px;display:inline-flex}.Y0dWHa_overviewHierarchyNavLink:hover{color:var(--dsw-alias-label-primary)}.Y0dWHa_overviewHierarchyJumpIconTight{color:var(--dsw-alias-label-caption);flex:none}.Y0dWHa_overviewHierarchyNavLink:hover .Y0dWHa_overviewHierarchyJumpIconTight,.Y0dWHa_overviewHierarchyNavLink:focus-visible .Y0dWHa_overviewHierarchyJumpIconTight{color:var(--dsw-alias-label-primary)}.Y0dWHa_overviewHierarchyNavLink:focus-visible{color:var(--dsw-alias-label-primary);outline:1px solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:2px}.Y0dWHa_overview>div{grid-template-columns:94px minmax(0,1fr);align-items:center;min-height:22px;padding:0 14px;display:grid}.Y0dWHa_overview>.Y0dWHa_requestTokenDetail dt{padding-left:12px}.Y0dWHa_usagePanel{padding:4px 0 10px}.Y0dWHa_usageGroup+.Y0dWHa_usageGroup{margin-top:8px}.Y0dWHa_usageHeading{color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xs-strong-13);user-select:none;margin:0;padding:4px 14px 1px}.Y0dWHa_usageGroup .Y0dWHa_overview{padding:0}.Y0dWHa_overview dt{color:var(--dsw-alias-label-tertiary)}.Y0dWHa_overview dd{min-width:0;color:var(--dsw-alias-label-primary);text-overflow:ellipsis;white-space:nowrap;margin:0;overflow:hidden}.Y0dWHa_timestampToggle{all:unset;color:inherit;cursor:pointer;font:inherit;user-select:text}.Y0dWHa_timestampToggle:focus-visible{outline:1px solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:2px}.Y0dWHa_overviewSections{border-top:0;flex-direction:column;flex:1;min-height:min-content;display:flex;overflow:hidden}.Y0dWHa_overviewSection{flex-direction:column;flex:1 1 0;min-height:24px;max-height:max-content;display:flex;overflow:hidden}.Y0dWHa_overviewSection+.Y0dWHa_overviewSection{padding-top:2px}.Y0dWHa_overviewHeading{box-sizing:border-box;width:100%;height:24px;color:var(--dsw-alias-label-secondary);background:var(--dsw-alias-bg-layer-1);font:var(--dsw-font-xs-strong-13);user-select:none;flex:none;align-items:flex-end;margin:0;padding:0 0 3px 14px;display:flex}.Y0dWHa_overviewTitle{width:max-content;height:auto;color:inherit;cursor:pointer;font:inherit;user-select:none;background:0 0;border:0;flex:none;align-items:center;gap:3px;padding:0;line-height:1;display:inline-flex}.Y0dWHa_overviewTitleIcon{color:var(--dsw-alias-label-caption);flex:none}.Y0dWHa_overviewTitle:hover .Y0dWHa_overviewTitleIcon{color:var(--dsw-alias-label-primary)}.Y0dWHa_overviewTitle:focus-visible{outline:1px solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:2px}.Y0dWHa_overviewTitle:focus-visible .Y0dWHa_overviewTitleIcon{color:var(--dsw-alias-state-business-primary)}.Y0dWHa_overviewPreview{overscroll-behavior:contain;background:var(--dsw-alias-bg-layer-1);flex:1;min-height:0;overflow:auto}.Y0dWHa_overviewPreview[data-scroll-more]{mask-image:linear-gradient(#000 calc(100% - 12px),#0000)}.Y0dWHa_overviewPreview>:last-child{margin-bottom:0;padding-bottom:0}.Y0dWHa_programDescription{color:var(--dsw-alias-label-primary);font:var(--dsw-font-xs-13);white-space:pre-wrap;overflow-wrap:anywhere;flex:none;margin:0;padding:8px 14px 2px}.Y0dWHa_programIcon{vertical-align:-2px;margin-right:4px}.Y0dWHa_programSummary{font-family:var(--dsw-font-family);margin-left:5px}.Y0dWHa_detailBodyProgram,.Y0dWHa_programPanel{flex-direction:column;min-height:0;display:flex;overflow:hidden}.Y0dWHa_programPanel{background:var(--dsw-alias-bg-layer-1);flex:1}.Y0dWHa_programActions{flex:none;align-items:center;gap:4px;height:16px;margin-left:auto;padding-right:14px;display:inline-flex}.Y0dWHa_programLanguage{color:var(--dsw-alias-label-tertiary);font:11px/16px var(--ds-font-family-code);padding-right:4px}.Y0dWHa_programAction{box-sizing:border-box;width:20px;height:16px;color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border:0;justify-content:center;align-items:center;padding:0;display:inline-flex}.Y0dWHa_programAction:hover{color:var(--dsw-alias-label-primary)}.Y0dWHa_programAction[aria-pressed=true]{color:var(--dsw-alias-state-business-primary)}.Y0dWHa_programAction[data-state=failed]{color:var(--dsw-alias-state-error-primary)}.Y0dWHa_programAction:focus-visible{outline:1px solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:-1px}.Y0dWHa_programContent{min-width:0;min-height:0}.Y0dWHa_programPanel>.Y0dWHa_programContent{overscroll-behavior:contain;flex:1;overflow:auto}.Y0dWHa_programSource{background:var(--dsw-alias-bg-layer-1);--dsl-code-block-line-white-space:pre;border-radius:0;margin:0!important}.Y0dWHa_programSource :where(pre){font:12px/16px var(--ds-font-family-code);overflow-wrap:normal;word-break:normal;tab-size:2;border-radius:0;padding:2px 14px 8px;overflow:visible;background:var(--dsw-alias-bg-layer-1)!important}.Y0dWHa_programSource pre code>.line{box-sizing:border-box;width:max-content;min-width:100%}.Y0dWHa_programContent[data-wrap=true] .Y0dWHa_programSource{--dsl-code-block-line-white-space:pre-wrap}.Y0dWHa_programContent[data-wrap=true] .Y0dWHa_programSource pre code>.line{overflow-wrap:anywhere;word-break:break-all;width:auto}.Y0dWHa_programOutput{color:var(--dsw-alias-label-primary);font:12px/16px var(--ds-font-family-code);white-space:pre-wrap;overflow-wrap:anywhere;margin:0;padding:2px 14px 8px}.Y0dWHa_programError:first-line{color:var(--dsw-alias-state-error-primary);font-weight:600}.Y0dWHa_overviewPreview .Y0dWHa_jsonPreview>:first-child,.Y0dWHa_overviewPreview .Y0dWHa_schemaTree>:first-child{padding-top:2px;padding-bottom:0}.Y0dWHa_overviewPreview .Y0dWHa_schemaTree{margin-bottom:0}.Y0dWHa_overviewPreview .Y0dWHa_overview{padding:2px 0 0}.Y0dWHa_overviewPreview .Y0dWHa_overview>div{min-height:22px}.Y0dWHa_markdownPreview,.Y0dWHa_markdownPayload{color:var(--dsw-alias-label-primary)}.Y0dWHa_markdownPreview>div:not([data-markdown-variant=compact]),.Y0dWHa_markdownPayload>div:not([data-markdown-variant=compact]){font:var(--dsw-font-xs-13);gap:8px}.Y0dWHa_markdownPreview>div:not([data-markdown-variant=compact]) h1,.Y0dWHa_markdownPayload>div:not([data-markdown-variant=compact]) h1{font:600 16px/22px var(--dsw-font-family)}.Y0dWHa_markdownPreview>div:not([data-markdown-variant=compact]) h2,.Y0dWHa_markdownPayload>div:not([data-markdown-variant=compact]) h2{font:600 15px/22px var(--dsw-font-family)}.Y0dWHa_markdownPreview>div:not([data-markdown-variant=compact]) :where(h3,h4,h5,h6),.Y0dWHa_markdownPayload>div:not([data-markdown-variant=compact]) :where(h3,h4,h5,h6){font:600 14px/20px var(--dsw-font-family)}.Y0dWHa_markdownPreview>div:not([data-markdown-variant=compact]) :not(pre)>code,.Y0dWHa_markdownPayload>div:not([data-markdown-variant=compact]) :not(pre)>code{font:12px/18px var(--ds-font-family-code)}.Y0dWHa_markdownPreview>div:not([data-markdown-variant=compact]) table,.Y0dWHa_markdownPayload>div:not([data-markdown-variant=compact]) table{font:var(--dsw-font-xs-13)}.Y0dWHa_markdownPreview>div:not([data-markdown-variant=compact])>:first-child{margin-top:0}.Y0dWHa_markdownPreview>div:not([data-markdown-variant=compact])>:last-child{margin-bottom:0}.Y0dWHa_markdownPreview>div:not([data-markdown-variant=compact]) :where(h1,h2,h3){margin:12px 0 6px}.Y0dWHa_markdownPreview>div:not([data-markdown-variant=compact]) :where(h4,h5,h6){margin:10px 0 5px}.Y0dWHa_markdownPreview>div:not([data-markdown-variant=compact]) :where(p,ul,ol){margin:8px 0}.Y0dWHa_markdownPreview>div:not([data-markdown-variant=compact]) li:not(:first-child){margin-top:3px}.Y0dWHa_markdownPreview>div:not([data-markdown-variant=compact]) blockquote{margin-top:8px}.Y0dWHa_markdownPreview>div:not([data-markdown-variant=compact]) hr{margin:14px 0}.Y0dWHa_markdownPreview>div:not([data-markdown-variant=compact])>.md-code-block{margin:10px 0}.Y0dWHa_assistantContent .Y0dWHa_markdownPayload,.Y0dWHa_assistantContent .Y0dWHa_payload{min-height:0}.Y0dWHa_thinkingQuote{--dsh-content-font-size-secondary:13px;--dsh-content-font-delta-secondary:0px;border-left:2px solid var(--dsw-alias-markdown-citation);color:var(--dsw-alias-label-secondary);background:0 0;margin:6px 14px 0 12px;padding-left:6px}.Y0dWHa_thinkingQuoteOnlyPreview{margin-bottom:8px}.Y0dWHa_detailBody>.Y0dWHa_assistantContentRendered .Y0dWHa_thinkingQuote{margin-top:14px}.Y0dWHa_thinkingToggle{width:max-content;height:18px;color:var(--dsw-alias-label-tertiary);cursor:pointer;font:600 12px/18px var(--dsw-font-family);user-select:none;background:0 0;border:0;align-items:center;gap:2px;padding:0;display:flex}.Y0dWHa_thinkingChevron{transition:transform .12s var(--ds-ease-in-out);flex:none}.Y0dWHa_thinkingToggle[aria-expanded=true] .Y0dWHa_thinkingChevron{transform:rotate(90deg)}.Y0dWHa_thinkingToggle:hover{color:var(--dsw-alias-label-secondary)}.Y0dWHa_thinkingToggle:focus-visible{outline:1px solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:2px}.Y0dWHa_thinkingQuote .Y0dWHa_markdownPreview,.Y0dWHa_thinkingQuote .Y0dWHa_markdownPayload,.Y0dWHa_thinkingQuote .Y0dWHa_payload{min-height:0;color:var(--dsw-alias-label-secondary);background:0 0;padding:2px 0}.Y0dWHa_assistantOutput{background:var(--dsw-alias-bg-layer-1)}.Y0dWHa_markdownPreview{padding:2px 14px 8px}.Y0dWHa_markdownPayload{min-height:100%;padding:14px}.Y0dWHa_jsonPayload{min-height:100%}.Y0dWHa_jsonPreview{min-height:0}.Y0dWHa_schema{background:var(--dsw-alias-bg-layer-1);min-height:100%}.Y0dWHa_schemaPreview{min-height:0}.Y0dWHa_schemaIntro{padding:12px 14px 6px}.Y0dWHa_schemaPreview .Y0dWHa_schemaIntro{padding-top:2px}.Y0dWHa_schemaName{color:var(--dsw-alias-label-primary);font:600 12px/18px var(--ds-font-family-code);margin:0}.Y0dWHa_schemaDescription{color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xs-13);white-space:pre-wrap;margin:2px 0 0}.Y0dWHa_schemaParameters{min-width:0}.Y0dWHa_schemaParametersTitle{color:var(--dsw-alias-label-tertiary);font:600 11px/16px var(--dsw-font-family);user-select:none;margin:0;padding:4px 14px 2px}.Y0dWHa_schemaTree{margin:0 6px 8px 0}.Y0dWHa_payload{box-sizing:border-box;overflow-wrap:anywhere;min-height:100%;color:var(--dsw-alias-label-primary);background:var(--dsw-alias-markdown-code-block);font:12px/19px var(--ds-font-family-code);tab-size:2;white-space:pre-wrap;margin:0;padding:14px}.Y0dWHa_payloadPreview{min-height:0;padding:2px 14px 8px}.Y0dWHa_sourceBlocks{box-sizing:border-box;min-height:100%;padding:12px 14px}.Y0dWHa_sourceBlock+.Y0dWHa_sourceBlock{margin-top:14px}.Y0dWHa_sourceBlockHeader,.Y0dWHa_sourceBlockJumpTarget{user-select:none;align-items:center;gap:3px;width:max-content;margin-bottom:3px;display:flex}.Y0dWHa_sourceBlockJumpTarget{all:unset;cursor:pointer;user-select:none;align-items:center;gap:3px;width:max-content;margin-bottom:3px;display:flex}.Y0dWHa_sourceBlockLabel{color:var(--dsw-alias-label-tertiary);font:11px/16px var(--ds-font-family-code)}.Y0dWHa_sourceBlockJumpIcon{color:var(--dsw-alias-label-caption);flex:none}.Y0dWHa_sourceBlockJumpTarget:hover .Y0dWHa_sourceBlockJumpIcon{color:var(--dsw-alias-label-primary)}.Y0dWHa_sourceBlockJumpTarget:focus-visible{outline:none}.Y0dWHa_sourceBlockJumpTarget:focus-visible .Y0dWHa_sourceBlockJumpIcon{color:var(--dsw-alias-state-business-primary)}.Y0dWHa_sourceBlockContent{overflow-wrap:anywhere;color:var(--dsw-alias-label-primary);font:12px/19px var(--ds-font-family-code);tab-size:2;white-space:pre-wrap;background:0 0;margin:0}.Y0dWHa_messageImages{flex-direction:column;gap:8px;margin:8px 14px 14px;display:flex}.Y0dWHa_attachments{flex-direction:column;gap:8px;margin:8px 14px 14px;padding:0;list-style:none;display:flex}.Y0dWHa_attachmentsPreview{gap:6px;margin-block:6px 8px}.Y0dWHa_attachmentRow{border:.5px solid var(--dsw-alias-border-l2-darkmode-thin);border-radius:var(--dsw-radius-lg);align-items:center;gap:10px;min-width:0;padding:8px;display:flex}.Y0dWHa_attachmentIcon{flex:0 0 48px;place-items:center;width:48px;height:48px;display:grid}.Y0dWHa_attachmentInfo{flex-direction:column;flex:1;gap:3px;min-width:0;display:flex}.Y0dWHa_attachmentName{color:var(--dsw-alias-label-primary);text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:18px;overflow:hidden}.Y0dWHa_attachmentMetadata{color:var(--dsw-alias-label-tertiary);text-overflow:ellipsis;white-space:nowrap;font-size:11px;line-height:16px;overflow:hidden}.Y0dWHa_attachmentDisclosure{border:.5px solid var(--dsw-alias-border-l2-darkmode-thin);border-radius:var(--dsw-radius-md);margin-block:8px}.Y0dWHa_attachmentDisclosure>summary{cursor:pointer;padding:8px}.Y0dWHa_attachmentDisclosure>summary .Y0dWHa_attachmentName{display:block}.Y0dWHa_attachmentDisclosure>summary:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:2px}.Y0dWHa_attachmentDisclosure>pre{padding:0 8px 8px}.Y0dWHa_assistantToolCalls{box-sizing:border-box;max-width:100%;color:var(--dsw-alias-label-secondary);font:11px/17px var(--ds-font-family-code);margin:2px 14px 12px;padding:0;list-style:none}.Y0dWHa_assistantToolCallsPreview{margin-top:2px;margin-bottom:8px}.Y0dWHa_assistantToolCalls li{min-width:0}.Y0dWHa_assistantToolCallButton{all:unset;box-sizing:border-box;border-radius:var(--dsw-radius-xs);cursor:pointer;align-items:center;width:calc(100% + 4px);min-width:0;height:19px;margin-left:-4px;padding:0 4px;display:flex}.Y0dWHa_assistantToolCallButton:hover{background:var(--dsw-alias-interactive-bg-hover)}.Y0dWHa_assistantToolCallButton:focus-visible{background:var(--dsw-alias-interactive-bg-hover);outline:1px solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:-1px}.Y0dWHa_assistantToolCallIcon{color:var(--dsw-alias-label-caption);flex:none;margin-right:5px}.Y0dWHa_assistantToolCallButton:hover .Y0dWHa_assistantToolCallIcon,.Y0dWHa_assistantToolCallButton:focus-visible .Y0dWHa_assistantToolCallIcon{color:var(--dsw-alias-label-secondary)}.Y0dWHa_assistantToolCallText{white-space:nowrap;flex:1;min-width:0;display:flex;overflow:hidden}.Y0dWHa_assistantToolCallName{color:var(--dsw-alias-label-secondary);flex:none;margin-right:5px;font-weight:500}.Y0dWHa_assistantToolCallArgs{min-width:0;color:var(--dsw-alias-label-tertiary);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.Y0dWHa_systemPrompt{box-sizing:border-box}.Y0dWHa_toolCatalog{min-height:100%;padding:8px 0 16px}.Y0dWHa_toolCatalogItem{border-bottom:.5px solid var(--dsw-alias-border-l1)}.Y0dWHa_toolCatalogSummary{box-sizing:border-box;cursor:pointer;user-select:none;grid-template-columns:12px 12px max-content minmax(0,1fr);align-items:center;gap:5px;min-height:30px;padding:4px 12px;list-style:none;display:grid}.Y0dWHa_toolCatalogSummary::-webkit-details-marker{display:none}.Y0dWHa_toolCatalogSummary:hover{background:var(--dsw-alias-interactive-bg-hover)}.Y0dWHa_toolCatalogSummary:focus-visible{background:var(--dsw-alias-interactive-bg-hover);outline:1px solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:-1px}.Y0dWHa_toolCatalogChevron,.Y0dWHa_toolCatalogIcon{color:var(--dsw-alias-label-caption)}.Y0dWHa_toolCatalogChevron{transition:transform .1s var(--ds-ease-in-out)}.Y0dWHa_toolCatalogItem[open] .Y0dWHa_toolCatalogChevron{transform:rotate(90deg)}.Y0dWHa_toolCatalogName{color:var(--dsw-alias-label-primary);font:500 12px/18px var(--ds-font-family-code)}.Y0dWHa_toolCatalogDescription{min-width:0;color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xs-13);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.Y0dWHa_toolCatalogDefinition{background:var(--dsw-alias-bg-base);padding:0 0 8px 29px}.Y0dWHa_toolCatalogFullDescription{color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xs-13);white-space:pre-wrap;margin:0;padding:7px 14px 4px 0}.Y0dWHa_toolCatalogTree{margin-left:-14px;margin-right:6px}.Y0dWHa_resultBlocks{box-sizing:border-box;flex-direction:column;gap:10px;min-height:100%;padding:14px;display:flex}.Y0dWHa_resultBlocksPreview{gap:6px;min-height:0;padding:2px 14px 8px}.Y0dWHa_resultBlockText{overflow-wrap:anywhere;color:var(--dsw-alias-label-primary);font:12px/19px var(--ds-font-family-code);tab-size:2;white-space:pre-wrap;background:0 0;margin:0}.Y0dWHa_overviewPreview .Y0dWHa_noPayload{padding:2px 14px 0}.Y0dWHa_noPayload{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xs-13);margin:0;padding:18px 14px}@media (width<=760px){.Y0dWHa_details{z-index:5;border-left-color:var(--dsw-alias-border-l3);width:min(92%,420px);max-width:92%;position:absolute;top:0;bottom:0;right:0;box-shadow:-12px 0 32px #00000024}}.Y0dWHa_toolUpdatePayload{white-space:pre;overflow-x:auto}";
|
|
3662
3819
|
const tagId$3 = "@deepseek-ai/dsh-client-ui-trajectory/TrajectoryTable.module.css";
|
|
3663
3820
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$3) + "]") === null) {
|
|
3664
3821
|
const tag = document.createElement("style");
|
|
@@ -3680,6 +3837,14 @@ window.__ModuleLoader__.load({
|
|
|
3680
3837
|
"assistantToolCalls": "Y0dWHa_assistantToolCalls",
|
|
3681
3838
|
"assistantToolCallsPreview": "Y0dWHa_assistantToolCallsPreview",
|
|
3682
3839
|
"assistantVioletBright": "Y0dWHa_assistantVioletBright",
|
|
3840
|
+
"attachmentDisclosure": "Y0dWHa_attachmentDisclosure",
|
|
3841
|
+
"attachmentIcon": "Y0dWHa_attachmentIcon",
|
|
3842
|
+
"attachmentInfo": "Y0dWHa_attachmentInfo",
|
|
3843
|
+
"attachmentMetadata": "Y0dWHa_attachmentMetadata",
|
|
3844
|
+
"attachmentName": "Y0dWHa_attachmentName",
|
|
3845
|
+
"attachmentRow": "Y0dWHa_attachmentRow",
|
|
3846
|
+
"attachments": "Y0dWHa_attachments",
|
|
3847
|
+
"attachmentsPreview": "Y0dWHa_attachmentsPreview",
|
|
3683
3848
|
"close": "Y0dWHa_close",
|
|
3684
3849
|
"collapsedTurnContent": "Y0dWHa_collapsedTurnContent",
|
|
3685
3850
|
"collapsedTurnEllipsis": "Y0dWHa_collapsedTurnEllipsis",
|
|
@@ -3691,6 +3856,7 @@ window.__ModuleLoader__.load({
|
|
|
3691
3856
|
"contentText": "Y0dWHa_contentText",
|
|
3692
3857
|
"contextGreen": "Y0dWHa_contextGreen",
|
|
3693
3858
|
"detailBody": "Y0dWHa_detailBody",
|
|
3859
|
+
"detailBodyProgram": "Y0dWHa_detailBodyProgram",
|
|
3694
3860
|
"detailBodySummary": "Y0dWHa_detailBodySummary",
|
|
3695
3861
|
"detailTab": "Y0dWHa_detailTab",
|
|
3696
3862
|
"detailTabActive": "Y0dWHa_detailTabActive",
|
|
@@ -3706,12 +3872,10 @@ window.__ModuleLoader__.load({
|
|
|
3706
3872
|
"eventColumn": "Y0dWHa_eventColumn",
|
|
3707
3873
|
"eventHeader": "Y0dWHa_eventHeader",
|
|
3708
3874
|
"eventInner": "Y0dWHa_eventInner",
|
|
3709
|
-
"history-loading-spin": "Y0dWHa_history-loading-spin",
|
|
3710
3875
|
"historyLoadButton": "Y0dWHa_historyLoadButton",
|
|
3711
3876
|
"historyLoadRow": "Y0dWHa_historyLoadRow",
|
|
3712
3877
|
"historyLoading": "Y0dWHa_historyLoading",
|
|
3713
3878
|
"historyLoadingBar": "Y0dWHa_historyLoadingBar",
|
|
3714
|
-
"historyLoadingSpinner": "Y0dWHa_historyLoadingSpinner",
|
|
3715
3879
|
"inlineResult": "Y0dWHa_inlineResult",
|
|
3716
3880
|
"inlineResultText": "Y0dWHa_inlineResultText",
|
|
3717
3881
|
"jsonPayload": "Y0dWHa_jsonPayload",
|
|
@@ -3724,7 +3888,6 @@ window.__ModuleLoader__.load({
|
|
|
3724
3888
|
"markdownPreview": "Y0dWHa_markdownPreview",
|
|
3725
3889
|
"message": "Y0dWHa_message",
|
|
3726
3890
|
"messageImages": "Y0dWHa_messageImages",
|
|
3727
|
-
"messageImagesPreview": "Y0dWHa_messageImagesPreview",
|
|
3728
3891
|
"noOutputText": "Y0dWHa_noOutputText",
|
|
3729
3892
|
"noPayload": "Y0dWHa_noPayload",
|
|
3730
3893
|
"overview": "Y0dWHa_overview",
|
|
@@ -3739,6 +3902,17 @@ window.__ModuleLoader__.load({
|
|
|
3739
3902
|
"overviewTitleIcon": "Y0dWHa_overviewTitleIcon",
|
|
3740
3903
|
"payload": "Y0dWHa_payload",
|
|
3741
3904
|
"payloadPreview": "Y0dWHa_payloadPreview",
|
|
3905
|
+
"programAction": "Y0dWHa_programAction",
|
|
3906
|
+
"programActions": "Y0dWHa_programActions",
|
|
3907
|
+
"programContent": "Y0dWHa_programContent",
|
|
3908
|
+
"programDescription": "Y0dWHa_programDescription",
|
|
3909
|
+
"programError": "Y0dWHa_programError",
|
|
3910
|
+
"programIcon": "Y0dWHa_programIcon",
|
|
3911
|
+
"programLanguage": "Y0dWHa_programLanguage",
|
|
3912
|
+
"programOutput": "Y0dWHa_programOutput",
|
|
3913
|
+
"programPanel": "Y0dWHa_programPanel",
|
|
3914
|
+
"programSource": "Y0dWHa_programSource",
|
|
3915
|
+
"programSummary": "Y0dWHa_programSummary",
|
|
3742
3916
|
"promptDiff": "Y0dWHa_promptDiff",
|
|
3743
3917
|
"promptDiffLineadded": "Y0dWHa_promptDiffLineadded",
|
|
3744
3918
|
"promptDiffLinecontext": "Y0dWHa_promptDiffLinecontext",
|
|
@@ -3799,6 +3973,7 @@ window.__ModuleLoader__.load({
|
|
|
3799
3973
|
"toolCatalogName": "Y0dWHa_toolCatalogName",
|
|
3800
3974
|
"toolCatalogSummary": "Y0dWHa_toolCatalogSummary",
|
|
3801
3975
|
"toolCatalogTree": "Y0dWHa_toolCatalogTree",
|
|
3976
|
+
"toolUpdatePayload": "Y0dWHa_toolUpdatePayload",
|
|
3802
3977
|
"trajectory-table": "Y0dWHa_trajectory-table",
|
|
3803
3978
|
"turnLabel": "Y0dWHa_turnLabel",
|
|
3804
3979
|
"turnLabelActive": "Y0dWHa_turnLabelActive",
|
|
@@ -3897,11 +4072,11 @@ window.__ModuleLoader__.load({
|
|
|
3897
4072
|
});
|
|
3898
4073
|
}
|
|
3899
4074
|
const KIND_ICON = {
|
|
3900
|
-
system: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.
|
|
3901
|
-
user: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.
|
|
4075
|
+
system: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconSettingsOutlineRegular, { size: 13 }),
|
|
4076
|
+
user: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconUserOutlineRegular, { size: 13 }),
|
|
3902
4077
|
context: (0, react_jsx_runtime.jsx)(InformationIcon, {}),
|
|
3903
4078
|
compacted: (0, react_jsx_runtime.jsx)(CompactedIcon, {}),
|
|
3904
|
-
message: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.
|
|
4079
|
+
message: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconSparkleRegular, { size: 13 }),
|
|
3905
4080
|
tool: (0, react_jsx_runtime.jsx)(ToolWrenchIcon, {}),
|
|
3906
4081
|
subtool: (0, react_jsx_runtime.jsx)(ToolWrenchIcon, {})
|
|
3907
4082
|
};
|
|
@@ -3971,8 +4146,8 @@ window.__ModuleLoader__.load({
|
|
|
3971
4146
|
copyCompactJson: t("copy.compactJson"),
|
|
3972
4147
|
copied: t("copied"),
|
|
3973
4148
|
copyFailed: t("copy.failed"),
|
|
3974
|
-
collapseNode: t("
|
|
3975
|
-
expandNode: t("
|
|
4149
|
+
collapseNode: t("collapse"),
|
|
4150
|
+
expandNode: t("expand"),
|
|
3976
4151
|
copyButtonTitle: (action) => t("copy.optionsHint", { action })
|
|
3977
4152
|
};
|
|
3978
4153
|
}
|
|
@@ -4321,13 +4496,15 @@ window.__ModuleLoader__.load({
|
|
|
4321
4496
|
})]
|
|
4322
4497
|
});
|
|
4323
4498
|
}
|
|
4324
|
-
function RequestOptions({ options, preview = false, t }) {
|
|
4499
|
+
function RequestOptions({ options, preview = false, stringWrapping, t }) {
|
|
4325
4500
|
if (options === void 0) return (0, react_jsx_runtime.jsx)("p", {
|
|
4326
4501
|
className: TrajectoryTable_module_css_default.noPayload,
|
|
4327
4502
|
children: t("options.notRecorded")
|
|
4328
4503
|
});
|
|
4329
4504
|
return (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.JsonTree, {
|
|
4330
4505
|
data: options,
|
|
4506
|
+
stringWrapping,
|
|
4507
|
+
collapsedStringLines: preview ? 3 : 12,
|
|
4331
4508
|
label: t("options.json"),
|
|
4332
4509
|
labels: jsonTreeLabels(t),
|
|
4333
4510
|
className: preview ? TrajectoryTable_module_css_default.jsonPreview : TrajectoryTable_module_css_default.jsonPayload
|
|
@@ -4338,10 +4515,6 @@ window.__ModuleLoader__.load({
|
|
|
4338
4515
|
const properties = source;
|
|
4339
4516
|
const kind = properties.kind;
|
|
4340
4517
|
if (kind === "user") return t("source.user");
|
|
4341
|
-
if (kind === "plugin") {
|
|
4342
|
-
const plugin = properties.plugin;
|
|
4343
|
-
return typeof plugin === "string" && plugin !== "" ? t("source.pluginNamed", { plugin }) : t("source.plugin");
|
|
4344
|
-
}
|
|
4345
4518
|
if (kind === "goal") {
|
|
4346
4519
|
const round = properties.round;
|
|
4347
4520
|
return typeof round === "number" && round > 0 ? t("source.goalRound", { round }) : t("source.goal");
|
|
@@ -4349,7 +4522,7 @@ window.__ModuleLoader__.load({
|
|
|
4349
4522
|
if (typeof kind !== "string" || kind === "") return t("source.unknown");
|
|
4350
4523
|
return `${kind[0]?.toUpperCase() ?? ""}${kind.slice(1)}`;
|
|
4351
4524
|
}
|
|
4352
|
-
function MessageSource({ record, t }) {
|
|
4525
|
+
function MessageSource({ record, stringWrapping, t }) {
|
|
4353
4526
|
const source = record.cell.messageSource;
|
|
4354
4527
|
if (source === void 0) return (0, react_jsx_runtime.jsx)("p", {
|
|
4355
4528
|
className: TrajectoryTable_module_css_default.noPayload,
|
|
@@ -4357,6 +4530,8 @@ window.__ModuleLoader__.load({
|
|
|
4357
4530
|
});
|
|
4358
4531
|
return (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.JsonTree, {
|
|
4359
4532
|
data: typeof source === "object" && source !== null ? source : { value: source },
|
|
4533
|
+
stringWrapping,
|
|
4534
|
+
collapsedStringLines: 12,
|
|
4360
4535
|
label: t("source.messageJson"),
|
|
4361
4536
|
labels: jsonTreeLabels(t),
|
|
4362
4537
|
className: TrajectoryTable_module_css_default.jsonPayload
|
|
@@ -4427,9 +4602,9 @@ window.__ModuleLoader__.load({
|
|
|
4427
4602
|
},
|
|
4428
4603
|
...record.cell.inputDetail ? [{
|
|
4429
4604
|
id: "input",
|
|
4430
|
-
labelKey: "tab.payload"
|
|
4605
|
+
labelKey: codeProgram(record.cell) === void 0 ? "tab.payload" : "code.source"
|
|
4431
4606
|
}] : [],
|
|
4432
|
-
...record.cell.outputDetail ? [{
|
|
4607
|
+
...record.cell.outputDetail || codeProgram(record.cell) !== void 0 ? [{
|
|
4433
4608
|
id: "output",
|
|
4434
4609
|
labelKey: "tab.result"
|
|
4435
4610
|
}] : [],
|
|
@@ -4445,6 +4620,8 @@ window.__ModuleLoader__.load({
|
|
|
4445
4620
|
}
|
|
4446
4621
|
function recordDisplayText(cell, t) {
|
|
4447
4622
|
if (isToolCallOnly(cell, t)) return "";
|
|
4623
|
+
const program = codeProgram(cell);
|
|
4624
|
+
if (program !== void 0) return `${PTC_TOOL_NAME} · ${program.description.replace(/\s+/g, " ")}`;
|
|
4448
4625
|
if (cell.previewMarkdown !== void 0) {
|
|
4449
4626
|
const preview = trajectoryPreviewText(cell.previewMarkdown);
|
|
4450
4627
|
if (cell.text === "") return preview;
|
|
@@ -4457,11 +4634,16 @@ window.__ModuleLoader__.load({
|
|
|
4457
4634
|
function recordResultText(cell) {
|
|
4458
4635
|
return cell.resultPreviewMarkdown === void 0 ? cell.result : trajectoryPreviewText(cell.resultPreviewMarkdown);
|
|
4459
4636
|
}
|
|
4460
|
-
function toolCallTextParts(
|
|
4461
|
-
if (kind !== "tool" && kind !== "subtool") return void 0;
|
|
4637
|
+
function toolCallTextParts(cell, text) {
|
|
4638
|
+
if (cell.kind !== "tool" && cell.kind !== "subtool") return void 0;
|
|
4639
|
+
const program = cell.toolName === PTC_TOOL_NAME;
|
|
4462
4640
|
const separator = text.indexOf(" · ");
|
|
4463
|
-
if (separator === -1) return {
|
|
4641
|
+
if (separator === -1) return {
|
|
4642
|
+
name: text,
|
|
4643
|
+
program
|
|
4644
|
+
};
|
|
4464
4645
|
return {
|
|
4646
|
+
program,
|
|
4465
4647
|
name: text.slice(0, separator),
|
|
4466
4648
|
args: text.slice(separator + 3)
|
|
4467
4649
|
};
|
|
@@ -4473,6 +4655,7 @@ window.__ModuleLoader__.load({
|
|
|
4473
4655
|
const displayText = (0, react.useMemo)(() => recordDisplayText(cell, t), [
|
|
4474
4656
|
cell.kind,
|
|
4475
4657
|
cell.text,
|
|
4658
|
+
cell.toolName,
|
|
4476
4659
|
cell.previewMarkdown,
|
|
4477
4660
|
cell.inputDetail,
|
|
4478
4661
|
cell.outputDetail,
|
|
@@ -4481,7 +4664,7 @@ window.__ModuleLoader__.load({
|
|
|
4481
4664
|
]);
|
|
4482
4665
|
const resultText = (0, react.useMemo)(() => recordResultText(cell), [cell.result, cell.resultPreviewMarkdown]);
|
|
4483
4666
|
const toolCallOnly = isToolCallOnly(cell, t);
|
|
4484
|
-
const toolCallText = toolCallTextParts(cell
|
|
4667
|
+
const toolCallText = toolCallTextParts(cell, displayText);
|
|
4485
4668
|
return children({
|
|
4486
4669
|
displayText,
|
|
4487
4670
|
listDisplayText: toolCallOnly ? t("record.toolCallOnly") : toolCallText === void 0 ? displayText : [toolCallText.name, toolCallText.args].filter(Boolean).join(" "),
|
|
@@ -4496,21 +4679,25 @@ window.__ModuleLoader__.load({
|
|
|
4496
4679
|
children: t("record.toolCallOnly")
|
|
4497
4680
|
});
|
|
4498
4681
|
if (toolCallText === void 0) return displayText || "—";
|
|
4499
|
-
return (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [(0, react_jsx_runtime.
|
|
4682
|
+
return (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [(0, react_jsx_runtime.jsxs)("span", {
|
|
4500
4683
|
className: TrajectoryTable_module_css_default.toolCallNameTypeface,
|
|
4501
|
-
children: toolCallText.
|
|
4684
|
+
children: [toolCallText.program && (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconCodeOutlineRegular, {
|
|
4685
|
+
className: TrajectoryTable_module_css_default.programIcon,
|
|
4686
|
+
size: 12
|
|
4687
|
+
}), toolCallText.name || "—"]
|
|
4502
4688
|
}), toolCallText.args !== void 0 && (0, react_jsx_runtime.jsx)("span", {
|
|
4503
|
-
className: TrajectoryTable_module_css_default.toolCallPayload,
|
|
4689
|
+
className: toolCallText.program ? TrajectoryTable_module_css_default.programSummary : TrajectoryTable_module_css_default.toolCallPayload,
|
|
4504
4690
|
children: toolCallText.args
|
|
4505
4691
|
})] });
|
|
4506
4692
|
}
|
|
4507
|
-
function MarkdownFragment({ text, rendered, preview, t }) {
|
|
4693
|
+
function MarkdownFragment({ text, rendered, preview, variant = "body", t }) {
|
|
4508
4694
|
const labels = (0, react.useMemo)(() => markdownLabels(t), [t]);
|
|
4509
4695
|
if (rendered) return (0, react_jsx_runtime.jsx)("div", {
|
|
4510
4696
|
className: preview ? TrajectoryTable_module_css_default.markdownPreview : TrajectoryTable_module_css_default.markdownPayload,
|
|
4511
4697
|
children: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.MarkdownText, {
|
|
4512
4698
|
text,
|
|
4513
|
-
labels
|
|
4699
|
+
labels,
|
|
4700
|
+
variant
|
|
4514
4701
|
})
|
|
4515
4702
|
});
|
|
4516
4703
|
return (0, react_jsx_runtime.jsx)("pre", {
|
|
@@ -4518,60 +4705,113 @@ window.__ModuleLoader__.load({
|
|
|
4518
4705
|
children: text
|
|
4519
4706
|
});
|
|
4520
4707
|
}
|
|
4521
|
-
function SourceBlocks({ blocks, onOpenCall,
|
|
4708
|
+
function SourceBlocks({ blocks, onOpenCall, t }) {
|
|
4709
|
+
const attachments = new Map(recordAttachments(blocks, t).map((entry) => [entry.index, entry]));
|
|
4522
4710
|
return (0, react_jsx_runtime.jsx)("div", {
|
|
4523
4711
|
className: TrajectoryTable_module_css_default.sourceBlocks,
|
|
4524
|
-
children: blocks.map((block, index) =>
|
|
4525
|
-
|
|
4526
|
-
|
|
4527
|
-
|
|
4528
|
-
|
|
4529
|
-
"aria-label": t("block.openSummary", { index: index + 1 }),
|
|
4530
|
-
title: t("block.openSummaryTitle"),
|
|
4531
|
-
onClick: () => {
|
|
4532
|
-
if (block.callId !== void 0) onOpenCall(block.callId);
|
|
4533
|
-
},
|
|
4534
|
-
children: [(0, react_jsx_runtime.jsx)("span", {
|
|
4712
|
+
children: blocks.map((block, index) => {
|
|
4713
|
+
const attachment = attachments.get(index);
|
|
4714
|
+
return attachment !== void 0 ? (0, react_jsx_runtime.jsxs)("details", {
|
|
4715
|
+
className: TrajectoryTable_module_css_default.attachmentDisclosure,
|
|
4716
|
+
children: [(0, react_jsx_runtime.jsxs)("summary", { children: [(0, react_jsx_runtime.jsx)("span", {
|
|
4535
4717
|
className: TrajectoryTable_module_css_default.sourceBlockLabel,
|
|
4536
4718
|
children: t("block.label", {
|
|
4537
4719
|
index: index + 1,
|
|
4538
4720
|
type: block.type
|
|
4539
4721
|
})
|
|
4540
|
-
}), (0, react_jsx_runtime.jsx)(
|
|
4541
|
-
className: TrajectoryTable_module_css_default.
|
|
4542
|
-
|
|
4722
|
+
}), (0, react_jsx_runtime.jsx)("span", {
|
|
4723
|
+
className: TrajectoryTable_module_css_default.attachmentName,
|
|
4724
|
+
title: attachment.name,
|
|
4725
|
+
children: attachment.name
|
|
4726
|
+
})] }), (0, react_jsx_runtime.jsx)("pre", {
|
|
4727
|
+
className: TrajectoryTable_module_css_default.sourceBlockContent,
|
|
4728
|
+
children: block.content
|
|
4543
4729
|
})]
|
|
4544
|
-
}) : (0, react_jsx_runtime.
|
|
4545
|
-
className: TrajectoryTable_module_css_default.
|
|
4546
|
-
children: (0, react_jsx_runtime.
|
|
4547
|
-
|
|
4548
|
-
|
|
4549
|
-
|
|
4550
|
-
|
|
4730
|
+
}, index) : (0, react_jsx_runtime.jsxs)("section", {
|
|
4731
|
+
className: TrajectoryTable_module_css_default.sourceBlock,
|
|
4732
|
+
children: [block.callId !== void 0 ? (0, react_jsx_runtime.jsxs)("button", {
|
|
4733
|
+
type: "button",
|
|
4734
|
+
className: TrajectoryTable_module_css_default.sourceBlockJumpTarget,
|
|
4735
|
+
"aria-label": t("block.openSummary", { index: index + 1 }),
|
|
4736
|
+
title: t("block.openSummaryTitle"),
|
|
4737
|
+
onClick: () => {
|
|
4738
|
+
if (block.callId !== void 0) onOpenCall(block.callId);
|
|
4739
|
+
},
|
|
4740
|
+
children: [(0, react_jsx_runtime.jsx)("span", {
|
|
4741
|
+
className: TrajectoryTable_module_css_default.sourceBlockLabel,
|
|
4742
|
+
children: t("block.label", {
|
|
4743
|
+
index: index + 1,
|
|
4744
|
+
type: block.type
|
|
4745
|
+
})
|
|
4746
|
+
}), (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconChevronRightOutlineRegular, {
|
|
4747
|
+
className: TrajectoryTable_module_css_default.sourceBlockJumpIcon,
|
|
4748
|
+
size: 12
|
|
4749
|
+
})]
|
|
4750
|
+
}) : (0, react_jsx_runtime.jsx)("div", {
|
|
4751
|
+
className: TrajectoryTable_module_css_default.sourceBlockHeader,
|
|
4752
|
+
children: (0, react_jsx_runtime.jsx)("span", {
|
|
4753
|
+
className: TrajectoryTable_module_css_default.sourceBlockLabel,
|
|
4754
|
+
children: t("block.label", {
|
|
4755
|
+
index: index + 1,
|
|
4756
|
+
type: block.type
|
|
4757
|
+
})
|
|
4551
4758
|
})
|
|
4552
|
-
})
|
|
4553
|
-
|
|
4554
|
-
|
|
4555
|
-
|
|
4556
|
-
}
|
|
4557
|
-
|
|
4558
|
-
children: block.content
|
|
4559
|
-
})]
|
|
4560
|
-
}, index))
|
|
4759
|
+
}), (0, react_jsx_runtime.jsx)("pre", {
|
|
4760
|
+
className: TrajectoryTable_module_css_default.sourceBlockContent,
|
|
4761
|
+
children: block.content
|
|
4762
|
+
})]
|
|
4763
|
+
}, index);
|
|
4764
|
+
})
|
|
4561
4765
|
});
|
|
4562
4766
|
}
|
|
4563
|
-
function
|
|
4564
|
-
|
|
4767
|
+
function recordAttachments(blocks, t) {
|
|
4768
|
+
let imageIndex = 0;
|
|
4769
|
+
return (blocks ?? []).flatMap((block, index) => {
|
|
4770
|
+
const ref = block.attachment ?? block.file;
|
|
4771
|
+
if (ref === void 0) return [];
|
|
4772
|
+
if (block.attachment !== void 0) imageIndex += 1;
|
|
4773
|
+
return [{
|
|
4774
|
+
block,
|
|
4775
|
+
index,
|
|
4776
|
+
name: ref.name ?? t("attachment.imageName", { index: imageIndex }),
|
|
4777
|
+
metadata: [
|
|
4778
|
+
block.attachment?.mediaType ?? (0, _deepseek_ai_dsh_client_ui_primitives.fileExtension)(ref.name ?? "").toUpperCase(),
|
|
4779
|
+
(0, _deepseek_ai_dsh_client_ui_primitives.fileSizeText)(ref.bytes),
|
|
4780
|
+
...block.attachment === void 0 ? [] : [`${block.attachment.width} × ${block.attachment.height}`]
|
|
4781
|
+
].filter(Boolean).join(" · ")
|
|
4782
|
+
}];
|
|
4783
|
+
});
|
|
4565
4784
|
}
|
|
4566
|
-
function
|
|
4567
|
-
const
|
|
4568
|
-
if (
|
|
4569
|
-
return (0, react_jsx_runtime.jsx)("
|
|
4570
|
-
className: preview ? `${TrajectoryTable_module_css_default.
|
|
4571
|
-
|
|
4572
|
-
|
|
4573
|
-
|
|
4574
|
-
|
|
4785
|
+
function RecordAttachments({ blocks, preview, renderImages, t }) {
|
|
4786
|
+
const attachments = recordAttachments(blocks, t);
|
|
4787
|
+
if (attachments.length === 0) return null;
|
|
4788
|
+
return (0, react_jsx_runtime.jsx)("ul", {
|
|
4789
|
+
className: preview ? `${TrajectoryTable_module_css_default.attachments} ${TrajectoryTable_module_css_default.attachmentsPreview}` : TrajectoryTable_module_css_default.attachments,
|
|
4790
|
+
"aria-label": t("attachment.list"),
|
|
4791
|
+
children: attachments.map(({ block, index, name, metadata }) => (0, react_jsx_runtime.jsxs)("li", {
|
|
4792
|
+
className: TrajectoryTable_module_css_default.attachmentRow,
|
|
4793
|
+
children: [block.attachment !== void 0 ? renderImages({
|
|
4794
|
+
images: [{
|
|
4795
|
+
attachment: block.attachment,
|
|
4796
|
+
label: name
|
|
4797
|
+
}],
|
|
4798
|
+
align: "start",
|
|
4799
|
+
thumbnail: true
|
|
4800
|
+
}) : (0, react_jsx_runtime.jsx)("span", {
|
|
4801
|
+
className: TrajectoryTable_module_css_default.attachmentIcon,
|
|
4802
|
+
children: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.FileTypeIcon, { path: name })
|
|
4803
|
+
}), (0, react_jsx_runtime.jsxs)("div", {
|
|
4804
|
+
className: TrajectoryTable_module_css_default.attachmentInfo,
|
|
4805
|
+
children: [(0, react_jsx_runtime.jsx)("span", {
|
|
4806
|
+
className: TrajectoryTable_module_css_default.attachmentName,
|
|
4807
|
+
title: name,
|
|
4808
|
+
children: name
|
|
4809
|
+
}), (0, react_jsx_runtime.jsx)("span", {
|
|
4810
|
+
className: TrajectoryTable_module_css_default.attachmentMetadata,
|
|
4811
|
+
children: metadata
|
|
4812
|
+
})]
|
|
4813
|
+
})]
|
|
4814
|
+
}, index))
|
|
4575
4815
|
});
|
|
4576
4816
|
}
|
|
4577
4817
|
function AssistantToolCalls({ blocks, preview, onOpenCall, t }) {
|
|
@@ -4630,7 +4870,7 @@ window.__ModuleLoader__.load({
|
|
|
4630
4870
|
})
|
|
4631
4871
|
});
|
|
4632
4872
|
}
|
|
4633
|
-
function ToolCatalog({ tools, t }) {
|
|
4873
|
+
function ToolCatalog({ tools, stringWrapping, t }) {
|
|
4634
4874
|
if (tools.length === 0) return (0, react_jsx_runtime.jsx)("p", {
|
|
4635
4875
|
className: TrajectoryTable_module_css_default.noPayload,
|
|
4636
4876
|
children: t("record.toolsMissing")
|
|
@@ -4642,7 +4882,7 @@ window.__ModuleLoader__.load({
|
|
|
4642
4882
|
children: [(0, react_jsx_runtime.jsxs)("summary", {
|
|
4643
4883
|
className: TrajectoryTable_module_css_default.toolCatalogSummary,
|
|
4644
4884
|
children: [
|
|
4645
|
-
(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.
|
|
4885
|
+
(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconChevronRightOutlineRegular, {
|
|
4646
4886
|
className: TrajectoryTable_module_css_default.toolCatalogChevron,
|
|
4647
4887
|
size: 12
|
|
4648
4888
|
}),
|
|
@@ -4663,6 +4903,7 @@ window.__ModuleLoader__.load({
|
|
|
4663
4903
|
children: tool.description
|
|
4664
4904
|
}), (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.JsonTree, {
|
|
4665
4905
|
data: tool.parameters,
|
|
4906
|
+
stringWrapping,
|
|
4666
4907
|
label: t("record.namedParametersJson", { name: tool.name }),
|
|
4667
4908
|
labels: jsonTreeLabels(t),
|
|
4668
4909
|
className: TrajectoryTable_module_css_default.toolCatalogTree
|
|
@@ -4754,10 +4995,13 @@ window.__ModuleLoader__.load({
|
|
|
4754
4995
|
});
|
|
4755
4996
|
}
|
|
4756
4997
|
function MarkdownRecordContent({ record, rendered, preview = false, thinkingExpanded, onThinkingExpandedChange, onOpenCall, renderImages, t }) {
|
|
4998
|
+
if (record.cell.sourceBlocks?.length && record.cell.sourceBlocks.every((block) => block.type === "tool-addition" || block.type === "tool-removal")) return (0, react_jsx_runtime.jsx)("pre", {
|
|
4999
|
+
className: `${TrajectoryTable_module_css_default.payload} ${TrajectoryTable_module_css_default.toolUpdatePayload}`,
|
|
5000
|
+
children: record.cell.inputDetail
|
|
5001
|
+
});
|
|
4757
5002
|
if (!rendered && record.cell.sourceBlocks && record.cell.sourceBlocks.length > 0) return (0, react_jsx_runtime.jsx)(SourceBlocks, {
|
|
4758
5003
|
blocks: record.cell.sourceBlocks,
|
|
4759
5004
|
onOpenCall,
|
|
4760
|
-
renderImages,
|
|
4761
5005
|
t
|
|
4762
5006
|
});
|
|
4763
5007
|
if (record.cell.thinkingDetail) {
|
|
@@ -4779,7 +5023,7 @@ window.__ModuleLoader__.load({
|
|
|
4779
5023
|
onClick: () => {
|
|
4780
5024
|
onThinkingExpandedChange(!thinkingExpanded);
|
|
4781
5025
|
},
|
|
4782
|
-
children: [t("record.thinking"), (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.
|
|
5026
|
+
children: [t("record.thinking"), (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconChevronRightOutlineRegular, {
|
|
4783
5027
|
className: TrajectoryTable_module_css_default.thinkingChevron,
|
|
4784
5028
|
size: 12
|
|
4785
5029
|
})]
|
|
@@ -4787,6 +5031,7 @@ window.__ModuleLoader__.load({
|
|
|
4787
5031
|
text: record.cell.thinkingDetail,
|
|
4788
5032
|
rendered,
|
|
4789
5033
|
preview,
|
|
5034
|
+
variant: "compact",
|
|
4790
5035
|
t
|
|
4791
5036
|
})]
|
|
4792
5037
|
}),
|
|
@@ -4805,25 +5050,26 @@ window.__ModuleLoader__.load({
|
|
|
4805
5050
|
onOpenCall,
|
|
4806
5051
|
t
|
|
4807
5052
|
}),
|
|
4808
|
-
(0, react_jsx_runtime.jsx)(
|
|
5053
|
+
(0, react_jsx_runtime.jsx)(RecordAttachments, {
|
|
4809
5054
|
blocks: record.cell.sourceBlocks,
|
|
4810
5055
|
preview,
|
|
4811
|
-
renderImages
|
|
5056
|
+
renderImages,
|
|
5057
|
+
t
|
|
4812
5058
|
})
|
|
4813
5059
|
]
|
|
4814
5060
|
});
|
|
4815
5061
|
}
|
|
4816
5062
|
const source = markdownSource(record);
|
|
4817
|
-
const
|
|
5063
|
+
const hasAttachments = record.cell.sourceBlocks?.some((block) => block.attachment !== void 0 || block.file !== void 0) === true;
|
|
4818
5064
|
const hasToolCalls = record.cell.kind === "message" && record.cell.sourceBlocks?.some((block) => block.type === "tool-call") === true;
|
|
4819
|
-
if (!source && !
|
|
5065
|
+
if (!source && !hasAttachments && !hasToolCalls) {
|
|
4820
5066
|
const emptyLabel = isToolCallOnly(record.cell, t) ? t("record.toolCallOnly") : record.cell.text || t("record.noContent");
|
|
4821
5067
|
return (0, react_jsx_runtime.jsx)("p", {
|
|
4822
5068
|
className: TrajectoryTable_module_css_default.noPayload,
|
|
4823
5069
|
children: emptyLabel
|
|
4824
5070
|
});
|
|
4825
5071
|
}
|
|
4826
|
-
if (!rendered || !
|
|
5072
|
+
if (!rendered || !hasAttachments && !hasToolCalls) return (0, react_jsx_runtime.jsx)(MarkdownFragment, {
|
|
4827
5073
|
text: source ?? "",
|
|
4828
5074
|
rendered,
|
|
4829
5075
|
preview,
|
|
@@ -4842,14 +5088,15 @@ window.__ModuleLoader__.load({
|
|
|
4842
5088
|
onOpenCall,
|
|
4843
5089
|
t
|
|
4844
5090
|
}),
|
|
4845
|
-
(0, react_jsx_runtime.jsx)(
|
|
5091
|
+
(0, react_jsx_runtime.jsx)(RecordAttachments, {
|
|
4846
5092
|
blocks: record.cell.sourceBlocks,
|
|
4847
5093
|
preview,
|
|
4848
|
-
renderImages
|
|
5094
|
+
renderImages,
|
|
5095
|
+
t
|
|
4849
5096
|
})
|
|
4850
5097
|
] });
|
|
4851
5098
|
}
|
|
4852
|
-
function RecordTiming({ record, t }) {
|
|
5099
|
+
function RecordTiming({ record, preview = false, t }) {
|
|
4853
5100
|
return record.cell.kind === "message" && record.cell.assistantMetrics !== void 0 ? (0, react_jsx_runtime.jsx)(AssistantTimingPanel, {
|
|
4854
5101
|
metrics: record.cell.assistantMetrics,
|
|
4855
5102
|
t
|
|
@@ -4861,13 +5108,14 @@ window.__ModuleLoader__.load({
|
|
|
4861
5108
|
t
|
|
4862
5109
|
})] }),
|
|
4863
5110
|
(0, react_jsx_runtime.jsxs)("div", { children: [(0, react_jsx_runtime.jsx)("dt", { children: t("timing.duration") }), (0, react_jsx_runtime.jsx)("dd", { children: formatElapsedSeconds(record.cell.timeSeconds, t) })] }),
|
|
4864
|
-
(0, react_jsx_runtime.jsxs)("div", { children: [(0, react_jsx_runtime.jsx)("dt", { children: t("timing.source") }), (0, react_jsx_runtime.jsx)("dd", { children: record.cell.timeSeconds === null ? t("timing.notAvailable") : t("timing.sessionTimestamps") })] })
|
|
5111
|
+
!preview && (0, react_jsx_runtime.jsxs)("div", { children: [(0, react_jsx_runtime.jsx)("dt", { children: t("timing.source") }), (0, react_jsx_runtime.jsx)("dd", { children: record.cell.timeSeconds === null ? t("timing.notAvailable") : t("timing.sessionTimestamps") })] })
|
|
4865
5112
|
]
|
|
4866
5113
|
});
|
|
4867
5114
|
}
|
|
4868
|
-
function RequestTiming({ assistant, anchor, request, t }) {
|
|
5115
|
+
function RequestTiming({ assistant, anchor, request, preview = false, t }) {
|
|
4869
5116
|
if (assistant !== void 0) return (0, react_jsx_runtime.jsx)(RecordTiming, {
|
|
4870
5117
|
record: assistant,
|
|
5118
|
+
preview,
|
|
4871
5119
|
t
|
|
4872
5120
|
});
|
|
4873
5121
|
if (request?.startedAt !== void 0) {
|
|
@@ -4880,7 +5128,7 @@ window.__ModuleLoader__.load({
|
|
|
4880
5128
|
t
|
|
4881
5129
|
})] }),
|
|
4882
5130
|
(0, react_jsx_runtime.jsxs)("div", { children: [(0, react_jsx_runtime.jsx)("dt", { children: t("timing.duration") }), (0, react_jsx_runtime.jsx)("dd", { children: formatElapsedSeconds(duration, t) })] }),
|
|
4883
|
-
(0, react_jsx_runtime.jsxs)("div", { children: [(0, react_jsx_runtime.jsx)("dt", { children: t("timing.source") }), (0, react_jsx_runtime.jsx)("dd", { children: duration === null ? t("timing.sessionTimestampsRunning") : t("timing.sessionTimestamps") })] })
|
|
5131
|
+
!preview && (0, react_jsx_runtime.jsxs)("div", { children: [(0, react_jsx_runtime.jsx)("dt", { children: t("timing.source") }), (0, react_jsx_runtime.jsx)("dd", { children: duration === null ? t("timing.sessionTimestampsRunning") : t("timing.sessionTimestamps") })] })
|
|
4884
5132
|
]
|
|
4885
5133
|
});
|
|
4886
5134
|
}
|
|
@@ -4892,7 +5140,7 @@ window.__ModuleLoader__.load({
|
|
|
4892
5140
|
})] }), (0, react_jsx_runtime.jsxs)("div", { children: [(0, react_jsx_runtime.jsx)("dt", { children: t("timing.duration") }), (0, react_jsx_runtime.jsx)("dd", { children: formatElapsedSeconds(null, t) })] })]
|
|
4893
5141
|
});
|
|
4894
5142
|
}
|
|
4895
|
-
function RecordPayload({ record, direction, preview = false, renderImages, t }) {
|
|
5143
|
+
function RecordPayload({ record, direction, preview = false, renderImages, stringWrapping, t }) {
|
|
4896
5144
|
const value = direction === "input" ? record.cell.inputDetail : record.cell.outputDetail;
|
|
4897
5145
|
const missing = direction === "input" ? t("record.noPayload") : t("record.noResult");
|
|
4898
5146
|
if (!value) return (0, react_jsx_runtime.jsx)("p", {
|
|
@@ -4905,6 +5153,8 @@ window.__ModuleLoader__.load({
|
|
|
4905
5153
|
const json = parseJsonContainer(value);
|
|
4906
5154
|
if (direction === "output" && record.cell.outputBlocks?.length === 1 && record.cell.outputBlocks[0]?.type === "text" && json !== void 0) return (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.JsonTree, {
|
|
4907
5155
|
data: json,
|
|
5156
|
+
stringWrapping,
|
|
5157
|
+
collapsedStringLines: preview ? 3 : 12,
|
|
4908
5158
|
label: t("record.resultJson"),
|
|
4909
5159
|
labels: jsonTreeLabels(t),
|
|
4910
5160
|
className: payloadClassName
|
|
@@ -4925,6 +5175,8 @@ window.__ModuleLoader__.load({
|
|
|
4925
5175
|
});
|
|
4926
5176
|
if (json !== void 0) return (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.JsonTree, {
|
|
4927
5177
|
data: json,
|
|
5178
|
+
stringWrapping,
|
|
5179
|
+
collapsedStringLines: preview ? 3 : 12,
|
|
4928
5180
|
label: t(direction === "input" ? "record.payloadJson" : "record.outputJson"),
|
|
4929
5181
|
labels: jsonTreeLabels(t),
|
|
4930
5182
|
className: payloadClassName
|
|
@@ -4939,7 +5191,7 @@ window.__ModuleLoader__.load({
|
|
|
4939
5191
|
children: value
|
|
4940
5192
|
});
|
|
4941
5193
|
}
|
|
4942
|
-
function RecordSchema({ record, preview = false, t }) {
|
|
5194
|
+
function RecordSchema({ record, preview = false, stringWrapping, t }) {
|
|
4943
5195
|
if (!record.cell.schemaDetail) return (0, react_jsx_runtime.jsx)("p", {
|
|
4944
5196
|
className: TrajectoryTable_module_css_default.noPayload,
|
|
4945
5197
|
children: t("record.schemaUnavailable")
|
|
@@ -4963,6 +5215,8 @@ window.__ModuleLoader__.load({
|
|
|
4963
5215
|
children: t("record.parameters")
|
|
4964
5216
|
}), (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.JsonTree, {
|
|
4965
5217
|
data: schema.parameters,
|
|
5218
|
+
stringWrapping,
|
|
5219
|
+
collapsedStringLines: preview ? 3 : 12,
|
|
4966
5220
|
label: t("record.namedParametersJson", { name: schema.name }),
|
|
4967
5221
|
labels: jsonTreeLabels(t),
|
|
4968
5222
|
className: TrajectoryTable_module_css_default.schemaTree
|
|
@@ -4997,23 +5251,200 @@ window.__ModuleLoader__.load({
|
|
|
4997
5251
|
return;
|
|
4998
5252
|
}
|
|
4999
5253
|
}
|
|
5000
|
-
function
|
|
5254
|
+
function InspectorCopyButton({ text, label, t }) {
|
|
5255
|
+
const [state, setState] = (0, react.useState)("idle");
|
|
5256
|
+
(0, react.useEffect)(() => {
|
|
5257
|
+
if (state === "idle") return;
|
|
5258
|
+
const timer = setTimeout(() => {
|
|
5259
|
+
setState("idle");
|
|
5260
|
+
}, 1500);
|
|
5261
|
+
return () => {
|
|
5262
|
+
clearTimeout(timer);
|
|
5263
|
+
};
|
|
5264
|
+
}, [state]);
|
|
5265
|
+
const title = state === "idle" ? label : t(state === "copied" ? "copied" : "copy.failed");
|
|
5266
|
+
return (0, react_jsx_runtime.jsx)("button", {
|
|
5267
|
+
type: "button",
|
|
5268
|
+
className: TrajectoryTable_module_css_default.programAction,
|
|
5269
|
+
"data-state": state,
|
|
5270
|
+
"aria-label": title,
|
|
5271
|
+
title,
|
|
5272
|
+
onClick: () => {
|
|
5273
|
+
(0, _deepseek_ai_dsh_client_ui_primitives.writeClipboard)(text).then((ok) => {
|
|
5274
|
+
setState(ok ? "copied" : "failed");
|
|
5275
|
+
});
|
|
5276
|
+
},
|
|
5277
|
+
children: state === "copied" ? (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconCheckOutlineRegular, { size: 12 }) : (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconCopyOutlineRegular, { size: 12 })
|
|
5278
|
+
});
|
|
5279
|
+
}
|
|
5280
|
+
function ProgramInput({ program, initialWrapped, stringWrapping, onOpen, t }) {
|
|
5281
|
+
const contentsId = (0, react.useId)();
|
|
5282
|
+
const [wrapped, setWrapped] = (0, react.useState)(initialWrapped);
|
|
5283
|
+
const [showJson, setShowJson] = (0, react.useState)(false);
|
|
5284
|
+
const actions = (0, react_jsx_runtime.jsxs)("span", {
|
|
5285
|
+
className: TrajectoryTable_module_css_default.programActions,
|
|
5286
|
+
children: [
|
|
5287
|
+
!showJson && program.language !== void 0 && (0, react_jsx_runtime.jsx)("span", {
|
|
5288
|
+
className: TrajectoryTable_module_css_default.programLanguage,
|
|
5289
|
+
children: program.language
|
|
5290
|
+
}),
|
|
5291
|
+
!showJson && (0, react_jsx_runtime.jsx)("button", {
|
|
5292
|
+
type: "button",
|
|
5293
|
+
className: TrajectoryTable_module_css_default.programAction,
|
|
5294
|
+
"aria-label": t("record.wrapLines"),
|
|
5295
|
+
title: t("record.wrapLines"),
|
|
5296
|
+
"aria-pressed": wrapped,
|
|
5297
|
+
"aria-controls": contentsId,
|
|
5298
|
+
onClick: () => {
|
|
5299
|
+
const next = !wrapped;
|
|
5300
|
+
setWrapped(next);
|
|
5301
|
+
stringWrapping?.setDefault(next);
|
|
5302
|
+
},
|
|
5303
|
+
children: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconWrapLinesOutlineRegular, { size: 12 })
|
|
5304
|
+
}),
|
|
5305
|
+
onOpen === void 0 && (0, react_jsx_runtime.jsx)("button", {
|
|
5306
|
+
type: "button",
|
|
5307
|
+
className: TrajectoryTable_module_css_default.programAction,
|
|
5308
|
+
"aria-label": t("code.originalJson"),
|
|
5309
|
+
title: t("code.originalJson"),
|
|
5310
|
+
"aria-pressed": showJson,
|
|
5311
|
+
"aria-controls": contentsId,
|
|
5312
|
+
onClick: () => {
|
|
5313
|
+
setShowJson((value) => !value);
|
|
5314
|
+
},
|
|
5315
|
+
children: (0, react_jsx_runtime.jsxs)("svg", {
|
|
5316
|
+
width: "12",
|
|
5317
|
+
height: "12",
|
|
5318
|
+
viewBox: "0 0 16 16",
|
|
5319
|
+
fill: "none",
|
|
5320
|
+
stroke: "currentColor",
|
|
5321
|
+
strokeWidth: "1.5",
|
|
5322
|
+
strokeLinecap: "round",
|
|
5323
|
+
strokeLinejoin: "round",
|
|
5324
|
+
"aria-hidden": "true",
|
|
5325
|
+
children: [(0, react_jsx_runtime.jsx)("path", { d: "M6 2H5a2 2 0 0 0-2 2v2a2 2 0 0 1-2 2 2 2 0 0 1 2 2v2a2 2 0 0 0 2 2h1" }), (0, react_jsx_runtime.jsx)("path", { d: "M10 2h1a2 2 0 0 1 2 2v2a2 2 0 0 0 2 2 2 2 0 0 0-2 2v2a2 2 0 0 1-2 2h-1" })]
|
|
5326
|
+
})
|
|
5327
|
+
}),
|
|
5328
|
+
(0, react_jsx_runtime.jsx)(InspectorCopyButton, {
|
|
5329
|
+
text: showJson ? program.rawInput : program.source,
|
|
5330
|
+
label: t(showJson ? "copy.json" : "code.copySource"),
|
|
5331
|
+
t
|
|
5332
|
+
})
|
|
5333
|
+
]
|
|
5334
|
+
});
|
|
5335
|
+
const body = (0, react_jsx_runtime.jsx)("div", {
|
|
5336
|
+
id: contentsId,
|
|
5337
|
+
className: TrajectoryTable_module_css_default.programContent,
|
|
5338
|
+
"data-wrap": wrapped,
|
|
5339
|
+
children: showJson ? (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.JsonTree, {
|
|
5340
|
+
data: program.arguments,
|
|
5341
|
+
label: t("record.parametersJson"),
|
|
5342
|
+
labels: jsonTreeLabels(t),
|
|
5343
|
+
stringWrapping
|
|
5344
|
+
}) : (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.CodeBlock, {
|
|
5345
|
+
code: program.source,
|
|
5346
|
+
lang: program.language,
|
|
5347
|
+
lineNumbers: true,
|
|
5348
|
+
showHeader: false,
|
|
5349
|
+
className: TrajectoryTable_module_css_default.programSource,
|
|
5350
|
+
copyLabel: t("code.copySource"),
|
|
5351
|
+
copiedLabel: t("copied")
|
|
5352
|
+
})
|
|
5353
|
+
});
|
|
5354
|
+
return onOpen === void 0 ? (0, react_jsx_runtime.jsxs)("section", {
|
|
5355
|
+
className: TrajectoryTable_module_css_default.programPanel,
|
|
5356
|
+
children: [(0, react_jsx_runtime.jsxs)("header", {
|
|
5357
|
+
className: TrajectoryTable_module_css_default.overviewHeading,
|
|
5358
|
+
children: [(0, react_jsx_runtime.jsx)("span", { children: t("code.source") }), actions]
|
|
5359
|
+
}), body]
|
|
5360
|
+
}) : (0, react_jsx_runtime.jsx)(OverviewSection, {
|
|
5361
|
+
label: t("code.source"),
|
|
5362
|
+
onOpen,
|
|
5363
|
+
actions,
|
|
5364
|
+
children: body
|
|
5365
|
+
});
|
|
5366
|
+
}
|
|
5367
|
+
function ProgramOutput({ record, stringWrapping, onOpen, t }) {
|
|
5368
|
+
const output = record.cell.outputDetail;
|
|
5369
|
+
const json = output === void 0 || record.cell.isError === true ? void 0 : parseJsonContainer(output);
|
|
5370
|
+
const actions = output === void 0 ? void 0 : (0, react_jsx_runtime.jsx)("span", {
|
|
5371
|
+
className: TrajectoryTable_module_css_default.programActions,
|
|
5372
|
+
children: (0, react_jsx_runtime.jsx)(InspectorCopyButton, {
|
|
5373
|
+
text: output,
|
|
5374
|
+
label: t("code.copyOutput"),
|
|
5375
|
+
t
|
|
5376
|
+
})
|
|
5377
|
+
});
|
|
5378
|
+
const body = (0, react_jsx_runtime.jsx)("div", {
|
|
5379
|
+
className: TrajectoryTable_module_css_default.programContent,
|
|
5380
|
+
children: output === void 0 || output === "" ? (0, react_jsx_runtime.jsx)("p", {
|
|
5381
|
+
className: TrajectoryTable_module_css_default.noPayload,
|
|
5382
|
+
children: t(stateOf(record) === "running" ? "code.running" : "record.noOutput")
|
|
5383
|
+
}) : json !== void 0 ? (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.JsonTree, {
|
|
5384
|
+
data: json,
|
|
5385
|
+
label: t("record.outputJson"),
|
|
5386
|
+
labels: jsonTreeLabels(t),
|
|
5387
|
+
stringWrapping,
|
|
5388
|
+
collapsedStringLines: onOpen === void 0 ? 12 : 3
|
|
5389
|
+
}) : (0, react_jsx_runtime.jsx)("pre", {
|
|
5390
|
+
className: `${TrajectoryTable_module_css_default.programOutput} ${record.cell.isError === true ? TrajectoryTable_module_css_default.programError : ""}`,
|
|
5391
|
+
children: output
|
|
5392
|
+
})
|
|
5393
|
+
});
|
|
5394
|
+
return onOpen === void 0 ? (0, react_jsx_runtime.jsxs)("section", {
|
|
5395
|
+
className: TrajectoryTable_module_css_default.programPanel,
|
|
5396
|
+
children: [(0, react_jsx_runtime.jsxs)("header", {
|
|
5397
|
+
className: TrajectoryTable_module_css_default.overviewHeading,
|
|
5398
|
+
children: [(0, react_jsx_runtime.jsx)("span", { children: t("code.output") }), actions]
|
|
5399
|
+
}), body]
|
|
5400
|
+
}) : (0, react_jsx_runtime.jsx)(OverviewSection, {
|
|
5401
|
+
label: t("code.output"),
|
|
5402
|
+
onOpen,
|
|
5403
|
+
actions,
|
|
5404
|
+
children: body
|
|
5405
|
+
});
|
|
5406
|
+
}
|
|
5407
|
+
function OverviewSection({ label, onOpen, actions, children }) {
|
|
5408
|
+
const previewRef = (0, react.useRef)(null);
|
|
5409
|
+
const [hasMore, setHasMore] = (0, react.useState)(false);
|
|
5410
|
+
const measureOverflow = (0, react.useCallback)((preview) => {
|
|
5411
|
+
setHasMore(preview.scrollHeight - preview.clientHeight - preview.scrollTop > 1);
|
|
5412
|
+
}, []);
|
|
5413
|
+
(0, react.useLayoutEffect)(() => {
|
|
5414
|
+
const preview = previewRef.current;
|
|
5415
|
+
const measure = () => {
|
|
5416
|
+
measureOverflow(preview);
|
|
5417
|
+
};
|
|
5418
|
+
measure();
|
|
5419
|
+
if (typeof ResizeObserver === "undefined") return;
|
|
5420
|
+
const observer = new ResizeObserver(measure);
|
|
5421
|
+
observer.observe(preview);
|
|
5422
|
+
for (const child of preview.children) observer.observe(child);
|
|
5423
|
+
return () => {
|
|
5424
|
+
observer.disconnect();
|
|
5425
|
+
};
|
|
5426
|
+
}, [children, measureOverflow]);
|
|
5001
5427
|
return (0, react_jsx_runtime.jsxs)("section", {
|
|
5002
5428
|
className: TrajectoryTable_module_css_default.overviewSection,
|
|
5003
|
-
children: [(0, react_jsx_runtime.
|
|
5429
|
+
children: [(0, react_jsx_runtime.jsxs)("h3", {
|
|
5004
5430
|
className: TrajectoryTable_module_css_default.overviewHeading,
|
|
5005
|
-
children: (0, react_jsx_runtime.jsxs)("button", {
|
|
5431
|
+
children: [(0, react_jsx_runtime.jsxs)("button", {
|
|
5006
5432
|
type: "button",
|
|
5007
5433
|
className: TrajectoryTable_module_css_default.overviewTitle,
|
|
5008
5434
|
onClick: onOpen,
|
|
5009
|
-
children: [(0, react_jsx_runtime.jsx)("span", { children: label }), (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.
|
|
5435
|
+
children: [(0, react_jsx_runtime.jsx)("span", { children: label }), (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconChevronRightOutlineRegular, {
|
|
5010
5436
|
className: TrajectoryTable_module_css_default.overviewTitleIcon,
|
|
5011
5437
|
size: 12
|
|
5012
5438
|
})]
|
|
5013
|
-
})
|
|
5439
|
+
}), actions]
|
|
5014
5440
|
}), (0, react_jsx_runtime.jsx)("div", {
|
|
5441
|
+
ref: previewRef,
|
|
5015
5442
|
className: `${TrajectoryTable_module_css_default.overviewPreview} ${TrajectoryTable_module_css_default.summaryScrollRegion}`,
|
|
5016
5443
|
"data-summary-scroll-region": "",
|
|
5444
|
+
"data-scroll-more": hasMore || void 0,
|
|
5445
|
+
onScroll: (event) => {
|
|
5446
|
+
measureOverflow(event.currentTarget);
|
|
5447
|
+
},
|
|
5017
5448
|
children
|
|
5018
5449
|
})]
|
|
5019
5450
|
});
|
|
@@ -5024,11 +5455,12 @@ window.__ModuleLoader__.load({
|
|
|
5024
5455
|
* @param props - Grouped trajectory data and whole-ledger fold state.
|
|
5025
5456
|
* @returns The ledger and an optional local record inspector.
|
|
5026
5457
|
*/
|
|
5027
|
-
function TrajectoryTable({ t, renderImages, requestNumbers: sessionRequestNumbers, turns, streamingCells = [], timelineFocusIndexes = null, searchMatchIndexes = null, onSelectedIndexChange, onRecordSelect, recordSelection = null, recordFocus = null, historyLoading = false, olderHistoryLoading = false, historyStartSeq, hasOlderRecords = false, onLoadOlder, onClearSelection, collapsedTurns, onToggleTurn, collapsedAssistants, onToggleAssistant, inspectCallId = null, onInspectApplied }) {
|
|
5458
|
+
function TrajectoryTable({ t, stringWrapping, renderImages, requestNumbers: sessionRequestNumbers, turns, streamingCells = [], timelineFocusIndexes = null, searchMatchIndexes = null, onSelectedIndexChange, onRecordSelect, recordSelection = null, recordFocus = null, historyLoading = false, olderHistoryLoading = false, historyStartSeq, hasOlderRecords = false, onLoadOlder, onClearSelection, collapsedTurns, onToggleTurn, collapsedAssistants, onToggleAssistant, inspectCallId = null, onInspectApplied }) {
|
|
5028
5459
|
const [selectedRecordId, setSelectedRecordId] = (0, react.useState)(null);
|
|
5029
5460
|
const [selectedRequest, setSelectedRequest] = (0, react.useState)(null);
|
|
5030
5461
|
const [activeTab, setActiveTab] = (0, react.useState)("overview");
|
|
5031
|
-
const [
|
|
5462
|
+
const [codeWrappingOnOpen, setCodeWrappingOnOpen] = (0, react.useState)(false);
|
|
5463
|
+
const [thinkingDisclosure, setThinkingDisclosure] = (0, react.useState)();
|
|
5032
5464
|
const [detailsWidth, setDetailsWidth] = (0, react.useState)(null);
|
|
5033
5465
|
const [toolRequestOffset, setToolRequestOffset] = (0, react.useState)(null);
|
|
5034
5466
|
const detailsResizeDrag = (0, react.useRef)(null);
|
|
@@ -5055,6 +5487,14 @@ window.__ModuleLoader__.load({
|
|
|
5055
5487
|
}, [streamingCellsByIndex]);
|
|
5056
5488
|
const selectedTemplate = (0, react.useMemo)(() => selectedRecordId === null ? void 0 : allRecords.find((record) => trajectoryRecordId(record.cell) === selectedRecordId), [allRecords, selectedRecordId]);
|
|
5057
5489
|
const selected = selectedTemplate === void 0 ? void 0 : currentRecord(selectedTemplate);
|
|
5490
|
+
const selectedProgram = selected === void 0 ? void 0 : codeProgram(selected.cell);
|
|
5491
|
+
const thinkingExpanded = thinkingDisclosure?.recordId === selectedRecordId ? thinkingDisclosure.expanded : selected?.cell.kind === "message" && Boolean(selected.cell.thinkingDetail?.trim());
|
|
5492
|
+
const setThinkingExpanded = (expanded) => {
|
|
5493
|
+
if (selectedRecordId !== null) setThinkingDisclosure({
|
|
5494
|
+
recordId: selectedRecordId,
|
|
5495
|
+
expanded
|
|
5496
|
+
});
|
|
5497
|
+
};
|
|
5058
5498
|
const selectedIndex = selected?.cell.index ?? null;
|
|
5059
5499
|
(0, react.useEffect)(() => {
|
|
5060
5500
|
onSelectedIndexChange?.(selectedIndex);
|
|
@@ -5155,6 +5595,7 @@ window.__ModuleLoader__.load({
|
|
|
5155
5595
|
const hasSelectedHierarchy = selectedAssistantRequestTarget !== void 0 || selectedParents.message !== void 0 || selectedParents.tool !== void 0;
|
|
5156
5596
|
const splitStyle = toolRequestOffset === null ? void 0 : { "--trajectory-tool-request-width": `calc(58cqw - ${toolRequestOffset}px)` };
|
|
5157
5597
|
const activateTab = (tab) => {
|
|
5598
|
+
setCodeWrappingOnOpen(stringWrapping?.getDefault() ?? false);
|
|
5158
5599
|
tabHistory.current.delete(tab);
|
|
5159
5600
|
tabHistory.current.add(tab);
|
|
5160
5601
|
setActiveTab(tab);
|
|
@@ -5168,6 +5609,7 @@ window.__ModuleLoader__.load({
|
|
|
5168
5609
|
onClearSelection?.();
|
|
5169
5610
|
};
|
|
5170
5611
|
const selectRecord = (0, react.useCallback)((index) => {
|
|
5612
|
+
setCodeWrappingOnOpen(stringWrapping?.getDefault() ?? false);
|
|
5171
5613
|
const record = allRecords.find((candidate) => candidate.cell.index === index);
|
|
5172
5614
|
onRecordSelect?.(index);
|
|
5173
5615
|
setSelectedRequest(null);
|
|
@@ -5176,7 +5618,11 @@ window.__ModuleLoader__.load({
|
|
|
5176
5618
|
const tabs = detailTabs(record);
|
|
5177
5619
|
const available = new Set(tabs.map((tab) => tab.id));
|
|
5178
5620
|
setActiveTab([...tabHistory.current].reverse().find((tab) => available.has(tab)) ?? tabs[0]?.id ?? "overview");
|
|
5179
|
-
}, [
|
|
5621
|
+
}, [
|
|
5622
|
+
allRecords,
|
|
5623
|
+
onRecordSelect,
|
|
5624
|
+
stringWrapping
|
|
5625
|
+
]);
|
|
5180
5626
|
(0, react.useEffect)(() => {
|
|
5181
5627
|
if (recordSelection === null || appliedRecordSelection.current === recordSelection) return;
|
|
5182
5628
|
appliedRecordSelection.current = recordSelection;
|
|
@@ -5386,10 +5832,7 @@ window.__ModuleLoader__.load({
|
|
|
5386
5832
|
"aria-live": "polite",
|
|
5387
5833
|
children: (0, react_jsx_runtime.jsxs)("span", {
|
|
5388
5834
|
className: TrajectoryTable_module_css_default.historyLoadingBar,
|
|
5389
|
-
children: [(0, react_jsx_runtime.jsx)("
|
|
5390
|
-
className: TrajectoryTable_module_css_default.historyLoadingSpinner,
|
|
5391
|
-
"aria-hidden": "true"
|
|
5392
|
-
}), t("history.loadingTrajectory")]
|
|
5835
|
+
children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.StateDot, { state: "ongoing" }), t("history.loadingTrajectory")]
|
|
5393
5836
|
})
|
|
5394
5837
|
}), (0, react_jsx_runtime.jsxs)("table", {
|
|
5395
5838
|
className: TrajectoryTable_module_css_default.table,
|
|
@@ -5412,10 +5855,7 @@ window.__ModuleLoader__.load({
|
|
|
5412
5855
|
if (pane !== null) requestOlder(pane, false);
|
|
5413
5856
|
},
|
|
5414
5857
|
children: [
|
|
5415
|
-
olderBusy && (0, react_jsx_runtime.jsx)("
|
|
5416
|
-
className: TrajectoryTable_module_css_default.historyLoadingSpinner,
|
|
5417
|
-
"aria-hidden": "true"
|
|
5418
|
-
}),
|
|
5858
|
+
olderBusy && (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.StateDot, { state: "ongoing" }),
|
|
5419
5859
|
(0, react_jsx_runtime.jsx)("span", {
|
|
5420
5860
|
"aria-hidden": "true",
|
|
5421
5861
|
children: olderBusy ? t("history.loadingEarlier") : t("history.loadEarlier")
|
|
@@ -5455,8 +5895,9 @@ window.__ModuleLoader__.load({
|
|
|
5455
5895
|
const requestLabel = request === void 0 ? void 0 : t(requestInfo?.purpose === "compaction" ? "request.labelCompaction" : "request.label", { request });
|
|
5456
5896
|
const requestSelected = requestInfo !== void 0 && selectedRequest?.identity === requestIdentity(requestInfo);
|
|
5457
5897
|
const sectionActive = record.turn === null ? activeSection === record.section : activeTurn === record.turn;
|
|
5898
|
+
const singleToolNotice = record.cell.kind === "context" && record.cell.sourceBlocks?.length === 1 && record.cell.sourceBlocks.every((block) => block.type === "tool-addition" || block.type === "tool-removal");
|
|
5458
5899
|
return (0, react_jsx_runtime.jsxs)("tr", {
|
|
5459
|
-
tabIndex: isRequestOnly ? -1 : 0,
|
|
5900
|
+
tabIndex: isRequestOnly || singleToolNotice ? -1 : 0,
|
|
5460
5901
|
"aria-rowindex": position + 1 + historyRowOffset,
|
|
5461
5902
|
"aria-label": isCollapsedSummary ? t("request.collapsedSummary", {
|
|
5462
5903
|
kind: t(record.collapsedSummaryKind === "turn" ? "request.collapsedTurn" : "request.collapsedAssistant"),
|
|
@@ -5481,14 +5922,14 @@ window.__ModuleLoader__.load({
|
|
|
5481
5922
|
"data-collapsed-summary": record.collapsedSummaryKind,
|
|
5482
5923
|
"data-selected": !isCollapsedSummary && selectedIndex === record.cell.index || void 0,
|
|
5483
5924
|
"data-timeline-focus": isCollapsedSummary || timelineFocusIndexes === null ? void 0 : timelineFocusIndexes.has(record.cell.index) ? "inside" : "outside",
|
|
5484
|
-
onClick: isRequestOnly ? void 0 : isCollapsedSummary ? () => {
|
|
5925
|
+
onClick: isRequestOnly || singleToolNotice ? void 0 : isCollapsedSummary ? () => {
|
|
5485
5926
|
if (record.collapsedSummaryKind === "turn" && record.turn !== null) onToggleTurn(record.turn);
|
|
5486
5927
|
else onToggleAssistant(trajectoryRecordId(record.cell));
|
|
5487
5928
|
} : () => {
|
|
5488
5929
|
selectRecord(record.cell.index);
|
|
5489
5930
|
},
|
|
5490
5931
|
onDoubleClick: (event) => {
|
|
5491
|
-
if (isCollapsedSummary || isRequestOnly) return;
|
|
5932
|
+
if (isCollapsedSummary || isRequestOnly || singleToolNotice) return;
|
|
5492
5933
|
if (record.turn !== null && collapsedTurns.has(record.turn)) {
|
|
5493
5934
|
event.preventDefault();
|
|
5494
5935
|
onToggleTurn(record.turn);
|
|
@@ -5506,7 +5947,7 @@ window.__ModuleLoader__.load({
|
|
|
5506
5947
|
onToggleTurn(record.turn);
|
|
5507
5948
|
},
|
|
5508
5949
|
onKeyDown: (event) => {
|
|
5509
|
-
if (isRequestOnly) return;
|
|
5950
|
+
if (isRequestOnly || singleToolNotice) return;
|
|
5510
5951
|
if (event.key !== "Enter" && event.key !== " ") return;
|
|
5511
5952
|
event.preventDefault();
|
|
5512
5953
|
if (isCollapsedSummary) {
|
|
@@ -5754,7 +6195,7 @@ window.__ModuleLoader__.load({
|
|
|
5754
6195
|
}),
|
|
5755
6196
|
(0, react_jsx_runtime.jsxs)("div", {
|
|
5756
6197
|
id: "trajectory-detail-panel",
|
|
5757
|
-
className: activeTab === "overview" ? `${TrajectoryTable_module_css_default.detailBody} ${TrajectoryTable_module_css_default.detailBodySummary}` : TrajectoryTable_module_css_default.detailBody,
|
|
6198
|
+
className: activeTab === "overview" ? `${TrajectoryTable_module_css_default.detailBody} ${TrajectoryTable_module_css_default.detailBodySummary}` : selectedProgram !== void 0 && (activeTab === "input" || activeTab === "output") ? `${TrajectoryTable_module_css_default.detailBody} ${TrajectoryTable_module_css_default.detailBodyProgram}` : TrajectoryTable_module_css_default.detailBody,
|
|
5758
6199
|
role: "tabpanel",
|
|
5759
6200
|
"aria-labelledby": `trajectory-detail-${activeTab}`,
|
|
5760
6201
|
children: [
|
|
@@ -5792,7 +6233,7 @@ window.__ModuleLoader__.load({
|
|
|
5792
6233
|
onClick: () => {
|
|
5793
6234
|
openRecordSummary(selectedRequestResult);
|
|
5794
6235
|
},
|
|
5795
|
-
children: [(0, react_jsx_runtime.jsx)("span", { children: selectedRequestInfo.purpose === "compaction" ? t("details.compacted") : t("details.assistantMessage") }), (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.
|
|
6236
|
+
children: [(0, react_jsx_runtime.jsx)("span", { children: selectedRequestInfo.purpose === "compaction" ? t("details.compacted") : t("details.assistantMessage") }), (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconChevronRightOutlineRegular, {
|
|
5796
6237
|
className: TrajectoryTable_module_css_default.overviewHierarchyJumpIconTight,
|
|
5797
6238
|
size: 11
|
|
5798
6239
|
})]
|
|
@@ -5810,6 +6251,7 @@ window.__ModuleLoader__.load({
|
|
|
5810
6251
|
children: (0, react_jsx_runtime.jsx)(RequestOptions, {
|
|
5811
6252
|
options: selectedRequestOptions,
|
|
5812
6253
|
preview: true,
|
|
6254
|
+
stringWrapping,
|
|
5813
6255
|
t
|
|
5814
6256
|
})
|
|
5815
6257
|
}),
|
|
@@ -5832,6 +6274,7 @@ window.__ModuleLoader__.load({
|
|
|
5832
6274
|
assistant: selectedRequestAssistant,
|
|
5833
6275
|
anchor: selectedRequestAnchor,
|
|
5834
6276
|
request: selectedRequestInfo,
|
|
6277
|
+
preview: true,
|
|
5835
6278
|
t
|
|
5836
6279
|
})
|
|
5837
6280
|
})
|
|
@@ -5839,6 +6282,7 @@ window.__ModuleLoader__.load({
|
|
|
5839
6282
|
})] }),
|
|
5840
6283
|
selectedRequestInfo !== void 0 && activeTab === "options" && (0, react_jsx_runtime.jsx)(RequestOptions, {
|
|
5841
6284
|
options: selectedRequestOptions,
|
|
6285
|
+
stringWrapping,
|
|
5842
6286
|
t
|
|
5843
6287
|
}),
|
|
5844
6288
|
selectedRequestInfo !== void 0 && activeTab === "usage" && (0, react_jsx_runtime.jsx)(RequestUsagePanel, {
|
|
@@ -5869,6 +6313,7 @@ window.__ModuleLoader__.load({
|
|
|
5869
6313
|
})),
|
|
5870
6314
|
selectedPrompt !== void 0 && activeTab === "tools" && (0, react_jsx_runtime.jsx)(ToolCatalog, {
|
|
5871
6315
|
tools: selectedPrompt.tools,
|
|
6316
|
+
stringWrapping,
|
|
5872
6317
|
t
|
|
5873
6318
|
}),
|
|
5874
6319
|
!promptSelected && selected?.cell.kind === "compacted" && selectedState !== void 0 && activeTab === "overview" && (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [(0, react_jsx_runtime.jsxs)("dl", {
|
|
@@ -5895,151 +6340,178 @@ window.__ModuleLoader__.load({
|
|
|
5895
6340
|
t
|
|
5896
6341
|
})
|
|
5897
6342
|
})] }),
|
|
5898
|
-
!promptSelected && selected !== void 0 && selected.cell.kind !== "compacted" && selectedState !== void 0 && activeTab === "overview" && (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
|
|
5899
|
-
|
|
5900
|
-
|
|
5901
|
-
|
|
5902
|
-
|
|
5903
|
-
|
|
5904
|
-
|
|
5905
|
-
|
|
5906
|
-
|
|
5907
|
-
|
|
5908
|
-
|
|
5909
|
-
|
|
5910
|
-
children: [(0, react_jsx_runtime.jsx)("span", { children: messageSourceLabel(selected.cell.messageSource, t) }), (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconChevronRightOutline14, {
|
|
5911
|
-
className: TrajectoryTable_module_css_default.overviewHierarchyJumpIconTight,
|
|
5912
|
-
size: 11
|
|
5913
|
-
})]
|
|
5914
|
-
})
|
|
5915
|
-
})] }),
|
|
5916
|
-
hasSelectedHierarchy && (0, react_jsx_runtime.jsxs)("div", { children: [(0, react_jsx_runtime.jsx)("dt", { children: selectedAssistantRequestTarget !== void 0 ? t("details.source") : t("details.hierarchy") }), (0, react_jsx_runtime.jsxs)("dd", {
|
|
5917
|
-
className: TrajectoryTable_module_css_default.overviewParentLinks,
|
|
5918
|
-
children: [
|
|
5919
|
-
selectedAssistantRequestTarget !== void 0 && (0, react_jsx_runtime.jsxs)("button", {
|
|
5920
|
-
type: "button",
|
|
5921
|
-
className: TrajectoryTable_module_css_default.overviewHierarchyNavLink,
|
|
5922
|
-
onClick: () => {
|
|
5923
|
-
selectRequest(selectedAssistantRequestTarget);
|
|
5924
|
-
},
|
|
5925
|
-
children: [(0, react_jsx_runtime.jsx)("span", { children: t("request.label", { request: selectedAssistantRequest ?? "—" }) }), (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconChevronRightOutline14, {
|
|
5926
|
-
className: TrajectoryTable_module_css_default.overviewHierarchyJumpIconTight,
|
|
5927
|
-
size: 11
|
|
5928
|
-
})]
|
|
5929
|
-
}),
|
|
5930
|
-
selectedParentMessage !== void 0 && (0, react_jsx_runtime.jsxs)("button", {
|
|
5931
|
-
type: "button",
|
|
5932
|
-
className: TrajectoryTable_module_css_default.overviewHierarchyNavLink,
|
|
5933
|
-
onClick: () => {
|
|
5934
|
-
openRecordSummary(selectedParentMessage);
|
|
5935
|
-
},
|
|
5936
|
-
children: [(0, react_jsx_runtime.jsx)("span", { children: t("details.assistantMessage") }), (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconChevronRightOutline14, {
|
|
5937
|
-
className: TrajectoryTable_module_css_default.overviewHierarchyJumpIconTight,
|
|
5938
|
-
size: 11
|
|
5939
|
-
})]
|
|
5940
|
-
}),
|
|
5941
|
-
selectedParentTool !== void 0 && (0, react_jsx_runtime.jsxs)("button", {
|
|
6343
|
+
!promptSelected && selected !== void 0 && selected.cell.kind !== "compacted" && selectedState !== void 0 && activeTab === "overview" && (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
|
|
6344
|
+
selectedProgram !== void 0 && selectedProgram.description !== "" && (0, react_jsx_runtime.jsx)("p", {
|
|
6345
|
+
className: TrajectoryTable_module_css_default.programDescription,
|
|
6346
|
+
children: selectedProgram.description
|
|
6347
|
+
}),
|
|
6348
|
+
(0, react_jsx_runtime.jsxs)("dl", {
|
|
6349
|
+
className: `${TrajectoryTable_module_css_default.overview} ${TrajectoryTable_module_css_default.summaryScrollRegion}`,
|
|
6350
|
+
"data-summary-scroll-region": "",
|
|
6351
|
+
children: [
|
|
6352
|
+
selected.cell.messageSource !== void 0 && (0, react_jsx_runtime.jsxs)("div", { children: [(0, react_jsx_runtime.jsx)("dt", { children: t("details.source") }), (0, react_jsx_runtime.jsx)("dd", {
|
|
6353
|
+
className: TrajectoryTable_module_css_default.overviewParentLinks,
|
|
6354
|
+
children: (0, react_jsx_runtime.jsxs)("button", {
|
|
5942
6355
|
type: "button",
|
|
5943
6356
|
className: TrajectoryTable_module_css_default.overviewHierarchyNavLink,
|
|
5944
6357
|
onClick: () => {
|
|
5945
|
-
|
|
6358
|
+
activateTab("source");
|
|
5946
6359
|
},
|
|
5947
|
-
children: [(0, react_jsx_runtime.jsx)("span", { children:
|
|
6360
|
+
children: [(0, react_jsx_runtime.jsx)("span", { children: messageSourceLabel(selected.cell.messageSource, t) }), (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconChevronRightOutlineRegular, {
|
|
5948
6361
|
className: TrajectoryTable_module_css_default.overviewHierarchyJumpIconTight,
|
|
5949
6362
|
size: 11
|
|
5950
6363
|
})]
|
|
5951
6364
|
})
|
|
5952
|
-
]
|
|
5953
|
-
|
|
5954
|
-
|
|
5955
|
-
|
|
5956
|
-
|
|
5957
|
-
|
|
5958
|
-
|
|
5959
|
-
|
|
5960
|
-
|
|
5961
|
-
|
|
5962
|
-
|
|
5963
|
-
|
|
5964
|
-
|
|
5965
|
-
|
|
5966
|
-
|
|
5967
|
-
|
|
5968
|
-
|
|
5969
|
-
|
|
5970
|
-
|
|
5971
|
-
|
|
5972
|
-
|
|
5973
|
-
|
|
5974
|
-
|
|
5975
|
-
|
|
5976
|
-
|
|
5977
|
-
|
|
5978
|
-
|
|
5979
|
-
|
|
6365
|
+
})] }),
|
|
6366
|
+
hasSelectedHierarchy && (0, react_jsx_runtime.jsxs)("div", { children: [(0, react_jsx_runtime.jsx)("dt", { children: selectedAssistantRequestTarget !== void 0 ? t("details.source") : t("details.hierarchy") }), (0, react_jsx_runtime.jsxs)("dd", {
|
|
6367
|
+
className: TrajectoryTable_module_css_default.overviewParentLinks,
|
|
6368
|
+
children: [
|
|
6369
|
+
selectedAssistantRequestTarget !== void 0 && (0, react_jsx_runtime.jsxs)("button", {
|
|
6370
|
+
type: "button",
|
|
6371
|
+
className: TrajectoryTable_module_css_default.overviewHierarchyNavLink,
|
|
6372
|
+
onClick: () => {
|
|
6373
|
+
selectRequest(selectedAssistantRequestTarget);
|
|
6374
|
+
},
|
|
6375
|
+
children: [(0, react_jsx_runtime.jsx)("span", { children: t("request.label", { request: selectedAssistantRequest ?? "—" }) }), (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconChevronRightOutlineRegular, {
|
|
6376
|
+
className: TrajectoryTable_module_css_default.overviewHierarchyJumpIconTight,
|
|
6377
|
+
size: 11
|
|
6378
|
+
})]
|
|
6379
|
+
}),
|
|
6380
|
+
selectedParentMessage !== void 0 && (0, react_jsx_runtime.jsxs)("button", {
|
|
6381
|
+
type: "button",
|
|
6382
|
+
className: TrajectoryTable_module_css_default.overviewHierarchyNavLink,
|
|
6383
|
+
onClick: () => {
|
|
6384
|
+
openRecordSummary(selectedParentMessage);
|
|
6385
|
+
},
|
|
6386
|
+
children: [(0, react_jsx_runtime.jsx)("span", { children: t("details.assistantMessage") }), (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconChevronRightOutlineRegular, {
|
|
6387
|
+
className: TrajectoryTable_module_css_default.overviewHierarchyJumpIconTight,
|
|
6388
|
+
size: 11
|
|
6389
|
+
})]
|
|
6390
|
+
}),
|
|
6391
|
+
selectedParentTool !== void 0 && (0, react_jsx_runtime.jsxs)("button", {
|
|
6392
|
+
type: "button",
|
|
6393
|
+
className: TrajectoryTable_module_css_default.overviewHierarchyNavLink,
|
|
6394
|
+
onClick: () => {
|
|
6395
|
+
openRecordSummary(selectedParentTool);
|
|
6396
|
+
},
|
|
6397
|
+
children: [(0, react_jsx_runtime.jsx)("span", { children: t("details.toolCall") }), (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconChevronRightOutlineRegular, {
|
|
6398
|
+
className: TrajectoryTable_module_css_default.overviewHierarchyJumpIconTight,
|
|
6399
|
+
size: 11
|
|
6400
|
+
})]
|
|
6401
|
+
})
|
|
6402
|
+
]
|
|
6403
|
+
})] }),
|
|
6404
|
+
(0, react_jsx_runtime.jsxs)("div", { children: [(0, react_jsx_runtime.jsx)("dt", { children: t("details.status") }), (0, react_jsx_runtime.jsx)("dd", {
|
|
6405
|
+
className: selectedState === "error" ? TrajectoryTable_module_css_default.error : void 0,
|
|
6406
|
+
children: statusLabel(selectedState, t)
|
|
6407
|
+
})] }),
|
|
6408
|
+
selected.cell.kind === "message" && (0, react_jsx_runtime.jsx)(TokenRows, {
|
|
6409
|
+
cell: selected.cell,
|
|
5980
6410
|
t
|
|
5981
|
-
})
|
|
5982
|
-
|
|
5983
|
-
|
|
5984
|
-
|
|
6411
|
+
}),
|
|
6412
|
+
(selected.cell.kind === "user" || selected.cell.kind === "context") && (0, react_jsx_runtime.jsxs)("div", { children: [(0, react_jsx_runtime.jsx)("dt", { children: t("timing.duration") }), (0, react_jsx_runtime.jsx)("dd", { children: formatElapsedSeconds(selected.cell.timeSeconds, t) })] })
|
|
6413
|
+
]
|
|
6414
|
+
}),
|
|
6415
|
+
(0, react_jsx_runtime.jsxs)("div", {
|
|
6416
|
+
className: TrajectoryTable_module_css_default.overviewSections,
|
|
6417
|
+
children: [
|
|
6418
|
+
selectedProgram !== void 0 ? (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [(0, react_jsx_runtime.jsx)(ProgramInput, {
|
|
6419
|
+
program: selectedProgram,
|
|
6420
|
+
initialWrapped: codeWrappingOnOpen,
|
|
6421
|
+
stringWrapping,
|
|
5985
6422
|
onOpen: () => {
|
|
5986
6423
|
activateTab("input");
|
|
5987
6424
|
},
|
|
5988
|
-
|
|
6425
|
+
t
|
|
6426
|
+
}, `preview:${selectedRecordId}`), (0, react_jsx_runtime.jsx)(ProgramOutput, {
|
|
6427
|
+
record: selected,
|
|
6428
|
+
stringWrapping,
|
|
6429
|
+
onOpen: () => {
|
|
6430
|
+
activateTab("output");
|
|
6431
|
+
},
|
|
6432
|
+
t
|
|
6433
|
+
})] }) : isMarkdownRecord(selected) ? (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, { children: (0, react_jsx_runtime.jsx)(OverviewSection, {
|
|
6434
|
+
label: t("tab.preview"),
|
|
6435
|
+
onOpen: () => {
|
|
6436
|
+
activateTab("rendered");
|
|
6437
|
+
},
|
|
6438
|
+
children: (0, react_jsx_runtime.jsx)(MarkdownRecordContent, {
|
|
5989
6439
|
record: selected,
|
|
5990
|
-
direction: "input",
|
|
5991
|
-
preview: true,
|
|
5992
6440
|
renderImages,
|
|
6441
|
+
rendered: true,
|
|
6442
|
+
preview: true,
|
|
6443
|
+
thinkingExpanded,
|
|
6444
|
+
onThinkingExpandedChange: setThinkingExpanded,
|
|
6445
|
+
onOpenCall: openCallSummary,
|
|
5993
6446
|
t
|
|
5994
6447
|
})
|
|
5995
|
-
}),
|
|
5996
|
-
|
|
5997
|
-
|
|
6448
|
+
}) }) : (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
|
|
6449
|
+
selected.cell.inputDetail && (0, react_jsx_runtime.jsx)(OverviewSection, {
|
|
6450
|
+
label: t("tab.payload"),
|
|
6451
|
+
onOpen: () => {
|
|
6452
|
+
activateTab("input");
|
|
6453
|
+
},
|
|
6454
|
+
children: (0, react_jsx_runtime.jsx)(RecordPayload, {
|
|
6455
|
+
record: selected,
|
|
6456
|
+
direction: "input",
|
|
6457
|
+
preview: true,
|
|
6458
|
+
renderImages,
|
|
6459
|
+
stringWrapping,
|
|
6460
|
+
t
|
|
6461
|
+
})
|
|
6462
|
+
}),
|
|
6463
|
+
selected.cell.outputDetail && (0, react_jsx_runtime.jsx)(OverviewSection, {
|
|
6464
|
+
label: t("tab.result"),
|
|
6465
|
+
onOpen: () => {
|
|
6466
|
+
activateTab("output");
|
|
6467
|
+
},
|
|
6468
|
+
children: (0, react_jsx_runtime.jsx)(RecordPayload, {
|
|
6469
|
+
record: selected,
|
|
6470
|
+
direction: "output",
|
|
6471
|
+
preview: true,
|
|
6472
|
+
renderImages,
|
|
6473
|
+
stringWrapping,
|
|
6474
|
+
t
|
|
6475
|
+
})
|
|
6476
|
+
}),
|
|
6477
|
+
(0, react_jsx_runtime.jsx)(OverviewSection, {
|
|
6478
|
+
label: t("tab.schema"),
|
|
6479
|
+
onOpen: () => {
|
|
6480
|
+
activateTab("schema");
|
|
6481
|
+
},
|
|
6482
|
+
children: (0, react_jsx_runtime.jsx)(RecordSchema, {
|
|
6483
|
+
record: selected,
|
|
6484
|
+
preview: true,
|
|
6485
|
+
stringWrapping,
|
|
6486
|
+
t
|
|
6487
|
+
})
|
|
6488
|
+
})
|
|
6489
|
+
] }),
|
|
6490
|
+
selectedAssistantRequestTarget !== void 0 && (0, react_jsx_runtime.jsx)(OverviewSection, {
|
|
6491
|
+
label: t("timing.request"),
|
|
5998
6492
|
onOpen: () => {
|
|
5999
|
-
|
|
6493
|
+
selectRequest(selectedAssistantRequestTarget, "timing");
|
|
6000
6494
|
},
|
|
6001
|
-
children: (0, react_jsx_runtime.jsx)(
|
|
6495
|
+
children: (0, react_jsx_runtime.jsx)(RecordTiming, {
|
|
6002
6496
|
record: selected,
|
|
6003
|
-
direction: "output",
|
|
6004
6497
|
preview: true,
|
|
6005
|
-
renderImages,
|
|
6006
6498
|
t
|
|
6007
6499
|
})
|
|
6008
6500
|
}),
|
|
6009
|
-
(0, react_jsx_runtime.jsx)(OverviewSection, {
|
|
6010
|
-
label: t("tab.
|
|
6501
|
+
(selected.cell.kind === "tool" || selected.cell.kind === "subtool") && (0, react_jsx_runtime.jsx)(OverviewSection, {
|
|
6502
|
+
label: t("tab.timing"),
|
|
6011
6503
|
onOpen: () => {
|
|
6012
|
-
activateTab("
|
|
6504
|
+
activateTab("timing");
|
|
6013
6505
|
},
|
|
6014
|
-
children: (0, react_jsx_runtime.jsx)(
|
|
6506
|
+
children: (0, react_jsx_runtime.jsx)(RecordTiming, {
|
|
6015
6507
|
record: selected,
|
|
6016
6508
|
preview: true,
|
|
6017
6509
|
t
|
|
6018
6510
|
})
|
|
6019
6511
|
})
|
|
6020
|
-
]
|
|
6021
|
-
|
|
6022
|
-
|
|
6023
|
-
onOpen: () => {
|
|
6024
|
-
selectRequest(selectedAssistantRequestTarget, "timing");
|
|
6025
|
-
},
|
|
6026
|
-
children: (0, react_jsx_runtime.jsx)(RecordTiming, {
|
|
6027
|
-
record: selected,
|
|
6028
|
-
t
|
|
6029
|
-
})
|
|
6030
|
-
}),
|
|
6031
|
-
(selected.cell.kind === "tool" || selected.cell.kind === "subtool") && (0, react_jsx_runtime.jsx)(OverviewSection, {
|
|
6032
|
-
label: t("tab.timing"),
|
|
6033
|
-
onOpen: () => {
|
|
6034
|
-
activateTab("timing");
|
|
6035
|
-
},
|
|
6036
|
-
children: (0, react_jsx_runtime.jsx)(RecordTiming, {
|
|
6037
|
-
record: selected,
|
|
6038
|
-
t
|
|
6039
|
-
})
|
|
6040
|
-
})
|
|
6041
|
-
]
|
|
6042
|
-
})] }),
|
|
6512
|
+
]
|
|
6513
|
+
})
|
|
6514
|
+
] }),
|
|
6043
6515
|
!promptSelected && selected !== void 0 && activeTab === "rendered" && (0, react_jsx_runtime.jsx)(MarkdownRecordContent, {
|
|
6044
6516
|
record: selected,
|
|
6045
6517
|
renderImages,
|
|
@@ -6060,22 +6532,35 @@ window.__ModuleLoader__.load({
|
|
|
6060
6532
|
}),
|
|
6061
6533
|
!promptSelected && selected !== void 0 && activeTab === "source" && (0, react_jsx_runtime.jsx)(MessageSource, {
|
|
6062
6534
|
record: selected,
|
|
6535
|
+
stringWrapping,
|
|
6063
6536
|
t
|
|
6064
6537
|
}),
|
|
6065
|
-
!promptSelected && selected !== void 0 && activeTab === "input" && (0, react_jsx_runtime.jsx)(RecordPayload, {
|
|
6538
|
+
!promptSelected && selected !== void 0 && activeTab === "input" && (selectedProgram === void 0 ? (0, react_jsx_runtime.jsx)(RecordPayload, {
|
|
6066
6539
|
record: selected,
|
|
6067
6540
|
direction: "input",
|
|
6068
6541
|
renderImages,
|
|
6542
|
+
stringWrapping,
|
|
6069
6543
|
t
|
|
6070
|
-
}),
|
|
6071
|
-
|
|
6544
|
+
}) : (0, react_jsx_runtime.jsx)(ProgramInput, {
|
|
6545
|
+
program: selectedProgram,
|
|
6546
|
+
initialWrapped: codeWrappingOnOpen,
|
|
6547
|
+
stringWrapping,
|
|
6548
|
+
t
|
|
6549
|
+
}, `input:${selectedRecordId}`)),
|
|
6550
|
+
!promptSelected && selected !== void 0 && activeTab === "output" && (selectedProgram === void 0 ? (0, react_jsx_runtime.jsx)(RecordPayload, {
|
|
6072
6551
|
record: selected,
|
|
6073
6552
|
direction: "output",
|
|
6074
6553
|
renderImages,
|
|
6554
|
+
stringWrapping,
|
|
6075
6555
|
t
|
|
6076
|
-
}),
|
|
6556
|
+
}) : (0, react_jsx_runtime.jsx)(ProgramOutput, {
|
|
6557
|
+
record: selected,
|
|
6558
|
+
stringWrapping,
|
|
6559
|
+
t
|
|
6560
|
+
})),
|
|
6077
6561
|
!promptSelected && selected !== void 0 && activeTab === "schema" && (0, react_jsx_runtime.jsx)(RecordSchema, {
|
|
6078
6562
|
record: selected,
|
|
6563
|
+
stringWrapping,
|
|
6079
6564
|
t
|
|
6080
6565
|
}),
|
|
6081
6566
|
!promptSelected && selected !== void 0 && activeTab === "timing" && (0, react_jsx_runtime.jsx)(RecordTiming, {
|
|
@@ -6090,7 +6575,7 @@ window.__ModuleLoader__.load({
|
|
|
6090
6575
|
}
|
|
6091
6576
|
//#endregion
|
|
6092
6577
|
//#region \0dsh-css:/home/runner/work/deepseek-harness/deepseek-harness/packages/client/ui-trajectory/src/client/TrajectoryToolbar.module.css.mjs
|
|
6093
|
-
const css$2 = ".fV0t5q_root{z-index:4;box-sizing:border-box;width:100%;height:var(--dsh-trajectory-toolbar-height);border-bottom:.5px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-1);position:sticky;top:0}.fV0t5q_inner{box-sizing:border-box;align-items:center;gap:8px;width:100%;height:100%;padding:0 6px;display:flex}.fV0t5q_actions{flex:none;align-items:center;gap:2px;display:flex}.fV0t5q_toggle{height:20px;color:var(--dsw-alias-label-tertiary);cursor:pointer;font:var(--dsw-font-xxs-12);background:0 0;border:0;
|
|
6578
|
+
const css$2 = ".fV0t5q_root{z-index:4;box-sizing:border-box;width:100%;height:var(--dsh-trajectory-toolbar-height);border-bottom:.5px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-1);position:sticky;top:0}.fV0t5q_inner{box-sizing:border-box;align-items:center;gap:8px;width:100%;height:100%;padding:0 6px;display:flex}.fV0t5q_actions{flex:none;align-items:center;gap:2px;display:flex}.fV0t5q_toggle{border-radius:var(--dsw-radius-sm);height:20px;color:var(--dsw-alias-label-tertiary);cursor:pointer;font:var(--dsw-font-xxs-12);background:0 0;border:0;flex:none;align-items:center;gap:4px;padding:0 7px;display:inline-flex}.fV0t5q_toggle:hover,.fV0t5q_toggle[aria-pressed=true]{color:var(--dsw-alias-label-primary);background:var(--dsw-alias-interactive-bg-hover)}.fV0t5q_toggle:focus-visible{outline:1px solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:1px}.fV0t5q_toggleIcon{stroke:currentColor;stroke-width:1.25px;stroke-linecap:round;stroke-linejoin:round;flex:none;width:12px;height:12px}.fV0t5q_control{box-sizing:border-box;width:88px;height:20px;color:var(--dsw-alias-label-tertiary);cursor:pointer;font:var(--dsw-font-xxs-12);background:0 0;border:0;border-radius:0;flex:none;justify-content:center;align-items:center;gap:4px;padding:0 5px;display:inline-flex}.fV0t5q_control[hidden]{display:none}.fV0t5q_control:hover:not(:disabled),.fV0t5q_control[aria-checked=true],.fV0t5q_control[aria-pressed=true]{color:var(--dsw-alias-label-primary)}.fV0t5q_control:focus-visible{outline:1px solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:1px}.fV0t5q_control:disabled{color:var(--dsw-alias-label-dimmed);cursor:not-allowed}.fV0t5q_controlTrack{background:var(--dsw-alias-border-l2);width:20px;height:10px;transition:background-color .12s var(--ds-ease-in-out);border-radius:5px;flex:none;display:inline-block;position:relative}.fV0t5q_controlThumb{corner-shape:round;background:var(--dsw-alias-bg-layer-1);width:6px;height:6px;transition:transform .12s var(--ds-ease-in-out);border-radius:50%;position:absolute;top:2px;left:2px}.fV0t5q_controlTrack[data-on=true]{background:var(--dsw-alias-state-business-primary)}.fV0t5q_controlTrack[data-on=true] .fV0t5q_controlThumb{transform:translate(10px)}.fV0t5q_action{border-radius:var(--dsw-radius-sm);height:20px;color:var(--dsw-alias-label-tertiary);cursor:pointer;font:var(--dsw-font-xxs-12);background:0 0;border:0;flex:none;align-items:center;gap:4px;padding:0 5px;display:inline-flex}.fV0t5q_action:hover{color:var(--dsw-alias-label-primary);background:var(--dsw-alias-interactive-bg-hover)}.fV0t5q_action:focus-visible{outline:1px solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:1px}.fV0t5q_actionIcon{color:var(--dsw-alias-label-tertiary);font:14px/14px var(--ds-font-family-code)}.fV0t5q_search{border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-sm);min-width:84px;height:22px;color:var(--dsw-alias-label-caption);background:var(--dsw-alias-bg-layer-2);flex:0 164px;align-items:center;gap:4px;margin-left:auto;padding:0 6px;display:flex}.fV0t5q_search:hover{border-color:var(--dsw-alias-label-caption)}.fV0t5q_search:focus-within{border-color:var(--dsw-alias-state-business-primary);background:var(--dsw-alias-bg-layer-1)}.fV0t5q_searchIcon{flex:none}.fV0t5q_searchInput{width:100%;min-width:0;color:var(--dsw-alias-label-primary);font:var(--dsw-font-xxs-12);background:0 0;border:0;outline:0;padding:0}.fV0t5q_searchInput::placeholder{color:var(--dsw-alias-label-caption)}.fV0t5q_searchInput::-webkit-search-cancel-button{cursor:pointer;width:12px;height:12px}";
|
|
6094
6579
|
const tagId$2 = "@deepseek-ai/dsh-client-ui-trajectory/TrajectoryToolbar.module.css";
|
|
6095
6580
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$2) + "]") === null) {
|
|
6096
6581
|
const tag = document.createElement("style");
|
|
@@ -6197,7 +6682,7 @@ window.__ModuleLoader__.load({
|
|
|
6197
6682
|
]
|
|
6198
6683
|
}), (0, react_jsx_runtime.jsxs)("div", {
|
|
6199
6684
|
className: TrajectoryToolbar_module_css_default.search,
|
|
6200
|
-
children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.
|
|
6685
|
+
children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconSearchOutlineRegular, {
|
|
6201
6686
|
size: 11,
|
|
6202
6687
|
className: TrajectoryToolbar_module_css_default.searchIcon
|
|
6203
6688
|
}), (0, react_jsx_runtime.jsx)("input", {
|
|
@@ -6343,7 +6828,7 @@ window.__ModuleLoader__.load({
|
|
|
6343
6828
|
}
|
|
6344
6829
|
//#endregion
|
|
6345
6830
|
//#region \0dsh-css:/home/runner/work/deepseek-harness/deepseek-harness/packages/client/ui-trajectory/src/client/TrajectoryTimeline.module.css.mjs
|
|
6346
|
-
const css$1 = "._1p9O6q_root{z-index:1;isolation:isolate;border-bottom:.5px solid var(--dsw-alias-border-l2);user-select:none;flex:none;position:relative}._1p9O6q_root [role=tooltip]{font:var(--dsw-font-xxxs-11)}._1p9O6q_plot{background:var(--dsw-alias-bg-layer-2);grid-template-columns:44px minmax(0,1fr);height:50px;display:grid;overflow:hidden}._1p9O6q_labels{border-right:.5px solid var(--dsw-alias-border-l1);color:var(--dsw-alias-label-caption);font:var(--dsw-font-xs-13);font-size:10px;line-height:1;position:relative}._1p9O6q_labels span{text-align:right;justify-content:flex-end;align-items:center;height:8px;display:flex;position:absolute;right:3px}._1p9O6q_labels span:first-child{top:7px}._1p9O6q_labels span:nth-child(2){top:21px}._1p9O6q_labels span:nth-child(3){top:35px}._1p9O6q_track{cursor:crosshair;touch-action:none;position:relative;overflow:hidden}._1p9O6q_track[data-panning=true]{cursor:grabbing}._1p9O6q_earlierHistory{z-index:5;appearance:none;box-sizing:border-box;background:linear-gradient(to right, var(--dsw-alias-bg-layer-2) 0, var(--dsw-alias-bg-layer-2) 38%, transparent 100%);width:28px;color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xs-13);opacity:.72;cursor:pointer;border:0;outline:none;justify-content:flex-start;align-items:center;padding-left:3px;line-height:1;display:flex;position:absolute;top:0;bottom:0;left:0}._1p9O6q_earlierHistory:hover{opacity:1}._1p9O6q_earlierHistory[aria-disabled=true]{cursor:default}._1p9O6q_earlierHistory:focus-visible{box-shadow:inset 0 0 0 1px var(--dsw-alias-
|
|
6831
|
+
const css$1 = "._1p9O6q_root{z-index:1;isolation:isolate;border-bottom:.5px solid var(--dsw-alias-border-l2);user-select:none;flex:none;position:relative}._1p9O6q_root [role=tooltip]{font:var(--dsw-font-xxxs-11)}._1p9O6q_plot{background:var(--dsw-alias-bg-layer-2);grid-template-columns:44px minmax(0,1fr);height:50px;display:grid;overflow:hidden}._1p9O6q_labels{border-right:.5px solid var(--dsw-alias-border-l1);color:var(--dsw-alias-label-caption);font:var(--dsw-font-xs-13);font-size:10px;line-height:1;position:relative}._1p9O6q_labels span{text-align:right;justify-content:flex-end;align-items:center;height:8px;display:flex;position:absolute;right:3px}._1p9O6q_labels span:first-child{top:7px}._1p9O6q_labels span:nth-child(2){top:21px}._1p9O6q_labels span:nth-child(3){top:35px}._1p9O6q_track{cursor:crosshair;touch-action:none;position:relative;overflow:hidden}._1p9O6q_track[data-panning=true]{cursor:grabbing}._1p9O6q_earlierHistory{z-index:5;appearance:none;box-sizing:border-box;background:linear-gradient(to right, var(--dsw-alias-bg-layer-2) 0, var(--dsw-alias-bg-layer-2) 38%, transparent 100%);width:28px;color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xs-13);opacity:.72;cursor:pointer;border:0;outline:none;justify-content:flex-start;align-items:center;padding-left:3px;line-height:1;display:flex;position:absolute;top:0;bottom:0;left:0}._1p9O6q_earlierHistory:hover{opacity:1}._1p9O6q_earlierHistory[aria-disabled=true]{cursor:default}._1p9O6q_earlierHistory:focus-visible{box-shadow:inset 0 0 0 1px var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary))}._1p9O6q_empty{color:var(--dsw-alias-label-caption);font:var(--dsw-font-xs-13);position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}._1p9O6q_track:focus-visible{outline:1px solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:-1px}._1p9O6q_lanes{z-index:2;top:7px;bottom:7px;left:var(--trajectory-domain-left);width:var(--trajectory-domain-width);position:absolute}._1p9O6q_turnBoundaries{z-index:3;top:0;bottom:0;left:var(--trajectory-domain-left);width:var(--trajectory-domain-width);pointer-events:none;position:absolute}@media (prefers-reduced-motion:no-preference){._1p9O6q_lanes[data-animate-viewport=true],._1p9O6q_turnBoundaries[data-animate-viewport=true]{transition:left .18s ease-out}}._1p9O6q_turnBoundary{top:0;bottom:0;left:var(--trajectory-turn-left);background:var(--dsw-alias-border-l2);width:.5px;position:absolute}._1p9O6q_span{top:calc(var(--trajectory-span-lane) * 14px);left:calc(var(--trajectory-span-left) + var(--trajectory-span-gap));width:max(2px, calc(var(--trajectory-span-width) - var(--trajectory-span-gap) - var(--trajectory-span-gap)));background:var(--dsw-alias-label-secondary);opacity:.78;border-radius:1px;min-width:2px;height:8px;position:absolute}._1p9O6q_span[data-timeline-span=user]{background:var(--dsw-alias-state-business-primary)}._1p9O6q_span[data-timeline-span=context]{background:color-mix(in srgb, var(--dsw-alias-state-success-primary) 68%, var(--dsw-alias-label-secondary))}._1p9O6q_span[data-timeline-span=message]{--trajectory-assistant-decoding-color:color-mix(in srgb, var(--dsw-alias-brand-primary-new-colorprimary-new-color) 60%, var(--dsw-alias-state-error-secondary));--trajectory-assistant-ttft-color:color-mix(in srgb, var(--trajectory-assistant-decoding-color) 54%, var(--dsw-alias-bg-layer-2));background:var(--trajectory-assistant-decoding-color);opacity:1}._1p9O6q_span[data-timeline-span=message][data-assistant-timing=true]{background:linear-gradient(to right, var(--trajectory-assistant-ttft-color) 0, var(--trajectory-assistant-ttft-color) var(--trajectory-assistant-ttft), var(--trajectory-assistant-decoding-color) var(--trajectory-assistant-ttft), var(--trajectory-assistant-decoding-color) 100%)}._1p9O6q_span[data-timeline-span=tool],._1p9O6q_span[data-timeline-span=subtool]{background:var(--dsw-alias-state-warn-label);opacity:1}._1p9O6q_span[data-error=true]{background:var(--dsw-alias-state-error-primary)}._1p9O6q_span[data-equal-duration=true]{width:8px;min-width:8px}._1p9O6q_span[data-selected=false]{opacity:.2}._1p9O6q_span[data-hovered=true]:not([data-current=true]){z-index:1;opacity:1;box-shadow:0 0 0 1px var(--dsw-alias-bg-layer-2), 0 0 0 2px color-mix(in srgb, var(--dsw-alias-state-business-primary) 80%, transparent)}._1p9O6q_span[data-current=true]{z-index:1;opacity:1;box-shadow:0 0 0 1px var(--dsw-alias-bg-layer-2), 0 0 0 2px var(--dsw-alias-state-business-primary)}._1p9O6q_span[data-search-match=false]{opacity:.14}._1p9O6q_selection{z-index:1;top:0;bottom:0;left:var(--trajectory-selection-left);width:var(--trajectory-selection-width);background:color-mix(in srgb, var(--dsw-alias-state-business-primary) 12%, transparent);min-width:1px;box-shadow:-100vw 0 0 100vw color-mix(in srgb, var(--dsw-alias-bg-layer-1) 58%, transparent), 100vw 0 0 100vw color-mix(in srgb, var(--dsw-alias-bg-layer-1) 58%, transparent);pointer-events:none;position:absolute}._1p9O6q_selectionEdges{z-index:4;top:0;bottom:0;left:var(--trajectory-selection-left);width:var(--trajectory-selection-width);pointer-events:none;min-width:1px;position:absolute}._1p9O6q_hoverLine{z-index:4;top:0;bottom:0;left:clamp(0px, calc(var(--trajectory-hover-left) - 1px), calc(100% - 2px));background:var(--dsw-alias-state-business-primary);pointer-events:none;width:2px;position:absolute}._1p9O6q_selectionEdges:before,._1p9O6q_selectionEdges:after{background:var(--dsw-alias-state-business-primary);content:\"\";width:3px;position:absolute;top:0;bottom:0}._1p9O6q_selectionEdges:before{left:0}._1p9O6q_selectionEdges:after{right:0}._1p9O6q_selectionEdges[data-dragging=true]:before,._1p9O6q_selectionEdges[data-dragging=true]:after{width:2px}._1p9O6q_selection[data-dragging=true]{background:color-mix(in srgb, var(--dsw-alias-state-business-primary) 18%, transparent)}";
|
|
6347
6832
|
const tagId$1 = "@deepseek-ai/dsh-client-ui-trajectory/TrajectoryTimeline.module.css";
|
|
6348
6833
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$1) + "]") === null) {
|
|
6349
6834
|
const tag = document.createElement("style");
|
|
@@ -6869,12 +7354,32 @@ window.__ModuleLoader__.load({
|
|
|
6869
7354
|
return entry.kind === "system" && entry.change.kind === "initial" ? Number.NEGATIVE_INFINITY : entry.seq;
|
|
6870
7355
|
}
|
|
6871
7356
|
function inputCellDetail(node, t) {
|
|
7357
|
+
if (node.kind === "context" && node.content.length > 0 && node.content.every((block) => block.type === "tool-addition" || block.type === "tool-removal")) {
|
|
7358
|
+
const added = node.content.flatMap((block) => block.type === "tool-addition" ? [block.toolName] : []);
|
|
7359
|
+
const removed = node.content.flatMap((block) => block.type === "tool-removal" ? [block.toolName] : []);
|
|
7360
|
+
const single = node.content.length === 1 ? node.content[0] : void 0;
|
|
7361
|
+
const summary = added.length > 0 && removed.length > 0 ? t("layout.toolsChanged", {
|
|
7362
|
+
added: added.length,
|
|
7363
|
+
removed: removed.length
|
|
7364
|
+
}) : added.length > 0 ? t("layout.toolsAddedCount", { count: added.length }) : t("layout.toolsRemovedCount", { count: removed.length });
|
|
7365
|
+
return {
|
|
7366
|
+
text: single !== void 0 ? t(single.type === "tool-addition" ? "layout.toolAdded" : "layout.toolRemoved", { name: single.toolName }) : `${t("layout.toolUpdateNotice")} · ${summary}`,
|
|
7367
|
+
sourceSeq: node.seq,
|
|
7368
|
+
sourceBlocks: node.content.map((block) => ({
|
|
7369
|
+
type: block.type,
|
|
7370
|
+
content: block.toolName
|
|
7371
|
+
})),
|
|
7372
|
+
...single !== void 0 ? {} : { inputDetail: [...added.length > 0 ? [t("layout.toolsAdded", { names: added.join(", ") })] : [], ...removed.length > 0 ? [t("layout.toolsRemoved", { names: removed.join(", ") })] : []].join("\n") },
|
|
7373
|
+
timeSeconds: 0,
|
|
7374
|
+
startedAt: finiteTime(node.time)
|
|
7375
|
+
};
|
|
7376
|
+
}
|
|
6872
7377
|
const preview = previewContent(node.content);
|
|
6873
7378
|
const previewMarkdown = preview === "" ? void 0 : preview;
|
|
6874
7379
|
const images = imageBlockCount(node.content);
|
|
6875
7380
|
const files = fileBlockCount(node.content);
|
|
6876
7381
|
return {
|
|
6877
|
-
text: [
|
|
7382
|
+
text: [images > 0 ? t("layout.imageCount", { count: images }) : void 0, files > 0 ? t("layout.fileAttachments", { count: files }) : void 0].filter((value) => value !== void 0).join(" · "),
|
|
6878
7383
|
...previewMarkdown === void 0 ? {} : { previewMarkdown },
|
|
6879
7384
|
sourceSeq: node.seq,
|
|
6880
7385
|
messageSource: node.source,
|
|
@@ -6903,6 +7408,7 @@ window.__ModuleLoader__.load({
|
|
|
6903
7408
|
if (startedAt !== null) callStartById.set(result.callId, startedAt);
|
|
6904
7409
|
}
|
|
6905
7410
|
for (const call of runningCalls) {
|
|
7411
|
+
if (call.phase === "preparing") continue;
|
|
6906
7412
|
const startedAt = finiteTime(call.time);
|
|
6907
7413
|
if (startedAt !== null) callStartById.set(call.callId, startedAt);
|
|
6908
7414
|
}
|
|
@@ -7174,7 +7680,7 @@ window.__ModuleLoader__.load({
|
|
|
7174
7680
|
}
|
|
7175
7681
|
const seenCalls = collectCallIds(turns);
|
|
7176
7682
|
for (const call of runningCalls) {
|
|
7177
|
-
if (seenCalls.has(call.callId)) continue;
|
|
7683
|
+
if (call.phase === "preparing" || seenCalls.has(call.callId)) continue;
|
|
7178
7684
|
const laidList = [{
|
|
7179
7685
|
absTime: null,
|
|
7180
7686
|
toolName: call.name,
|
|
@@ -7399,7 +7905,7 @@ window.__ModuleLoader__.load({
|
|
|
7399
7905
|
}
|
|
7400
7906
|
if (tools.size > 0) return t("layout.toolCallOnly");
|
|
7401
7907
|
const images = blocks.filter((block) => block.kind === "image").length;
|
|
7402
|
-
if (images > 0) return t("layout.
|
|
7908
|
+
if (images > 0) return t("layout.imageCount", { count: images });
|
|
7403
7909
|
return "";
|
|
7404
7910
|
}
|
|
7405
7911
|
function promptChangeLabel(change, t) {
|
|
@@ -7424,11 +7930,10 @@ window.__ModuleLoader__.load({
|
|
|
7424
7930
|
callId: block.callId,
|
|
7425
7931
|
toolName: block.name
|
|
7426
7932
|
};
|
|
7427
|
-
case "image": return {
|
|
7933
|
+
case "image": return sourceBlock({
|
|
7428
7934
|
type: "image",
|
|
7429
|
-
content: "",
|
|
7430
7935
|
attachment: block.attachment
|
|
7431
|
-
};
|
|
7936
|
+
});
|
|
7432
7937
|
case "other": return sourceBlock(block.block);
|
|
7433
7938
|
}
|
|
7434
7939
|
}
|
|
@@ -7443,10 +7948,10 @@ window.__ModuleLoader__.load({
|
|
|
7443
7948
|
type: type === "reasoning" ? "thinking" : type,
|
|
7444
7949
|
content: block.text
|
|
7445
7950
|
};
|
|
7446
|
-
if (type === "image" && typeof block.attachment === "object" && block.attachment !== null && typeof block.attachment.attachmentId === "string") return {
|
|
7951
|
+
if ((type === "image" || type === "file") && typeof block.attachment === "object" && block.attachment !== null && typeof block.attachment.attachmentId === "string") return {
|
|
7447
7952
|
type,
|
|
7448
|
-
content:
|
|
7449
|
-
attachment: block.attachment
|
|
7953
|
+
content: stringifySourceValue(value),
|
|
7954
|
+
...type === "image" ? { attachment: block.attachment } : { file: block.attachment }
|
|
7450
7955
|
};
|
|
7451
7956
|
return {
|
|
7452
7957
|
type,
|
|
@@ -7563,6 +8068,7 @@ window.__ModuleLoader__.load({
|
|
|
7563
8068
|
const out = [];
|
|
7564
8069
|
let index = startIndex;
|
|
7565
8070
|
for (const sub of subs) {
|
|
8071
|
+
if (!("kind" in sub) && sub.phase === "preparing") continue;
|
|
7566
8072
|
const settled = "kind" in sub;
|
|
7567
8073
|
const resultPreview = settled ? summarizeResult(sub, t) : void 0;
|
|
7568
8074
|
const laid = {
|
|
@@ -7595,6 +8101,7 @@ window.__ModuleLoader__.load({
|
|
|
7595
8101
|
}
|
|
7596
8102
|
function summarizeCall(name, argsRaw) {
|
|
7597
8103
|
return {
|
|
8104
|
+
toolName: name,
|
|
7598
8105
|
text: name,
|
|
7599
8106
|
...argsRaw === "" ? {} : { previewMarkdown: argsRaw }
|
|
7600
8107
|
};
|
|
@@ -7606,7 +8113,7 @@ window.__ModuleLoader__.load({
|
|
|
7606
8113
|
resultPreviewMarkdown: block.text
|
|
7607
8114
|
};
|
|
7608
8115
|
const images = imageBlockCount(node.content);
|
|
7609
|
-
if (images > 0) return { result: t("layout.
|
|
8116
|
+
if (images > 0) return { result: t("layout.imageCount", { count: images }) };
|
|
7610
8117
|
return { result: t("record.noOutput") };
|
|
7611
8118
|
}
|
|
7612
8119
|
function resultAsText(result) {
|
|
@@ -7620,7 +8127,7 @@ window.__ModuleLoader__.load({
|
|
|
7620
8127
|
const text = node.content.filter((block) => block.type === "text" && typeof block.text === "string").map((block) => block.type === "text" ? block.text : "").join("\n");
|
|
7621
8128
|
if (text !== "") return text;
|
|
7622
8129
|
const images = imageBlockCount(node.content);
|
|
7623
|
-
if (images > 0) return t("layout.
|
|
8130
|
+
if (images > 0) return t("layout.imageCount", { count: images });
|
|
7624
8131
|
if (node.content.length === 0 || node.content.every((block) => block.type === "text" && (typeof block.text !== "string" || block.text === ""))) return t("record.noOutput");
|
|
7625
8132
|
return JSON.stringify(node.content, null, 2);
|
|
7626
8133
|
}
|
|
@@ -7812,7 +8319,7 @@ window.__ModuleLoader__.load({
|
|
|
7812
8319
|
...total?.reasoning === void 0 && usage.reasoning === void 0 ? {} : { reasoning: (total?.reasoning ?? 0) + (usage.reasoning ?? 0) }
|
|
7813
8320
|
};
|
|
7814
8321
|
}
|
|
7815
|
-
function TrajectoryView({ useSession, useTrajectory, useDuration, loadOlder, loadImage, setActualDuration, viewRequest, completeViewRequest, renderSlot, t }) {
|
|
8322
|
+
function TrajectoryView({ useSession, useTrajectory, useDuration, loadOlder, loadImage, setActualDuration, viewRequest, completeViewRequest, renderSlot, t, jsonStringWrapping }) {
|
|
7816
8323
|
const [collapsedTurns, setCollapsedTurns] = (0, react.useState)(EMPTY_TURN_IDS);
|
|
7817
8324
|
const renderImages = (0, react.useCallback)((owner) => renderSlot("conversation.trajectory.images", {
|
|
7818
8325
|
...owner,
|
|
@@ -7900,8 +8407,8 @@ window.__ModuleLoader__.load({
|
|
|
7900
8407
|
const turn = request?.turn ?? node?.turn;
|
|
7901
8408
|
const step = request?.step ?? node?.step;
|
|
7902
8409
|
if (turn === void 0 || step === void 0) continue;
|
|
7903
|
-
const provider = request?.
|
|
7904
|
-
const model = request?.
|
|
8410
|
+
const provider = request?.providerMetadata?.provider ?? node?.providerMetadata?.provider;
|
|
8411
|
+
const model = request?.providerMetadata?.model ?? node?.providerMetadata?.model;
|
|
7905
8412
|
const requestConfig = request?.requestConfig ?? node?.requestConfig;
|
|
7906
8413
|
numbered.push({
|
|
7907
8414
|
seq: entry.seq,
|
|
@@ -7940,8 +8447,8 @@ window.__ModuleLoader__.load({
|
|
|
7940
8447
|
...request.error === void 0 ? {} : { error: request.error },
|
|
7941
8448
|
...request.errorCode === void 0 ? {} : { errorCode: request.errorCode },
|
|
7942
8449
|
resultSeq: request.startSeq,
|
|
7943
|
-
...request.
|
|
7944
|
-
...request.
|
|
8450
|
+
...request.providerMetadata?.provider === void 0 ? {} : { provider: request.providerMetadata.provider },
|
|
8451
|
+
...request.providerMetadata?.model === void 0 ? {} : { model: request.providerMetadata.model },
|
|
7945
8452
|
...request.requestConfig === void 0 ? {} : { requestConfig: request.requestConfig },
|
|
7946
8453
|
...usage === void 0 ? {} : { usage },
|
|
7947
8454
|
...cumulativeUsage === void 0 ? {} : { cumulativeUsage }
|
|
@@ -8147,6 +8654,10 @@ window.__ModuleLoader__.load({
|
|
|
8147
8654
|
className: views_module_css_default.ledger,
|
|
8148
8655
|
children: (0, react_jsx_runtime.jsx)(TrajectoryTable, {
|
|
8149
8656
|
t,
|
|
8657
|
+
stringWrapping: jsonStringWrapping === void 0 ? void 0 : {
|
|
8658
|
+
...jsonStringWrapping,
|
|
8659
|
+
label: t("record.wrapLines")
|
|
8660
|
+
},
|
|
8150
8661
|
renderImages,
|
|
8151
8662
|
requestNumbers,
|
|
8152
8663
|
turns: timelineTurns,
|
|
@@ -8211,6 +8722,7 @@ window.__ModuleLoader__.load({
|
|
|
8211
8722
|
}), "ui-trajectory: dictionaries");
|
|
8212
8723
|
const t = ctx.locale.bind(NS);
|
|
8213
8724
|
const duration = createTrajectoryDurationStore();
|
|
8725
|
+
const stringWrapping = createTrajectoryStringWrappingStore();
|
|
8214
8726
|
registerTrajectoryMessageDefinitions(ctx);
|
|
8215
8727
|
registerTrajectoryRequestHeaderDefinition(ctx);
|
|
8216
8728
|
registerTrajectoryAssistantDefinition(ctx);
|
|
@@ -8237,6 +8749,12 @@ window.__ModuleLoader__.load({
|
|
|
8237
8749
|
const trajectory = ctx.uiConversation.binding(sessionId).target("trajectory");
|
|
8238
8750
|
return {
|
|
8239
8751
|
hooks: { duration },
|
|
8752
|
+
jsonStringWrapping: {
|
|
8753
|
+
getDefault: () => stringWrapping.getSnapshot(),
|
|
8754
|
+
setDefault: (value) => {
|
|
8755
|
+
stringWrapping.set(value);
|
|
8756
|
+
}
|
|
8757
|
+
},
|
|
8240
8758
|
loadOlder: async () => {
|
|
8241
8759
|
const before = trajectory.getSnapshot();
|
|
8242
8760
|
await session.loadOlder();
|