@meridianlabs/log-viewer 0.3.186 → 0.3.187
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/lib/app/samples/SampleDisplay.d.ts.map +1 -1
- package/lib/app/samples/chat/ChatMessage.d.ts +1 -0
- package/lib/app/samples/chat/ChatMessage.d.ts.map +1 -1
- package/lib/app/samples/chat/ChatMessageRow.d.ts +1 -0
- package/lib/app/samples/chat/ChatMessageRow.d.ts.map +1 -1
- package/lib/app/samples/chat/ChatView.d.ts +1 -0
- package/lib/app/samples/chat/ChatView.d.ts.map +1 -1
- package/lib/app/samples/transcript/ModelEventView.d.ts.map +1 -1
- package/lib/app/samples/transcript/event/utils.d.ts +1 -1
- package/lib/app/samples/transcript/event/utils.d.ts.map +1 -1
- package/lib/index.js +71 -41
- package/lib/index.js.map +1 -1
- package/lib/styles/index.css +35 -29
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SampleDisplay.d.ts","sourceRoot":"","sources":["../../../src/app/samples/SampleDisplay.tsx"],"names":[],"mappings":"AAWA,OAAO,EACL,EAAE,EAGF,SAAS,EAMV,MAAM,OAAO,CAAC;AAsCf,UAAU,kBAAkB;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IAC5C,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,
|
|
1
|
+
{"version":3,"file":"SampleDisplay.d.ts","sourceRoot":"","sources":["../../../src/app/samples/SampleDisplay.tsx"],"names":[],"mappings":"AAWA,OAAO,EACL,EAAE,EAGF,SAAS,EAMV,MAAM,OAAO,CAAC;AAsCf,UAAU,kBAAkB;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IAC5C,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CA4bhD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatMessage.d.ts","sourceRoot":"","sources":["../../../../src/app/samples/chat/ChatMessage.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAkB,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AActD,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,UAAU,gBAAgB;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,EAAE,eAAe,EAAE,CAAC;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,EAAE,qBAAqB,CAAC;IACrC,YAAY,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ChatMessage.d.ts","sourceRoot":"","sources":["../../../../src/app/samples/chat/ChatMessage.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAkB,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AActD,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,UAAU,gBAAgB;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,EAAE,eAAe,EAAE,CAAC;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,EAAE,qBAAqB,CAAC;IACrC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;CAC3B;AAED,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CA6G5C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatMessageRow.d.ts","sourceRoot":"","sources":["../../../../src/app/samples/chat/ChatMessageRow.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAE3B,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAEhD,UAAU,mBAAmB;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,eAAe,EAAE,eAAe,CAAC;IACjC,aAAa,EAAE,qBAAqB,CAAC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,YAAY,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ChatMessageRow.d.ts","sourceRoot":"","sources":["../../../../src/app/samples/chat/ChatMessageRow.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAE3B,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAEhD,UAAU,mBAAmB;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,eAAe,EAAE,eAAe,CAAC;IACjC,aAAa,EAAE,qBAAqB,CAAC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;CAC3B;AAED;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CAqElD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatView.d.ts","sourceRoot":"","sources":["../../../../src/app/samples/chat/ChatView.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAG/C,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAEhD,UAAU,aAAa;IACrB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,QAAQ,CAAC;IACnB,aAAa,CAAC,EAAE,qBAAqB,CAAC;IACtC,mCAAmC,CAAC,EAAE,OAAO,CAAC;IAC9C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC9B,YAAY,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ChatView.d.ts","sourceRoot":"","sources":["../../../../src/app/samples/chat/ChatView.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAG/C,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAEhD,UAAU,aAAa;IACrB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,QAAQ,CAAC;IACnB,aAAa,CAAC,EAAE,qBAAqB,CAAC;IACtC,mCAAmC,CAAC,EAAE,OAAO,CAAC;IAC9C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC9B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;CAC3B;AAED;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,CAyCtC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModelEventView.d.ts","sourceRoot":"","sources":["../../../../src/app/samples/transcript/ModelEventView.tsx"],"names":[],"mappings":"AAAA,OAAO,+BAA+B,CAAC;AACvC,OAAO,+BAA+B,CAAC;AACvC,OAAO,iCAAiC,CAAC;AAGzC,OAAO,EAAE,EAAE,EAA6B,MAAM,OAAO,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,UAAU,EAAsB,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"ModelEventView.d.ts","sourceRoot":"","sources":["../../../../src/app/samples/transcript/ModelEventView.tsx"],"names":[],"mappings":"AAAA,OAAO,+BAA+B,CAAC;AACvC,OAAO,+BAA+B,CAAC;AACvC,OAAO,iCAAiC,CAAC;AAGzC,OAAO,EAAE,EAAE,EAA6B,MAAM,OAAO,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,UAAU,EAAsB,MAAM,qBAAqB,CAAC;AAchF,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAG3D,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC,UAAU,mBAAmB;IAC3B,SAAS,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;IACjC,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC9B,aAAa,EAAE,OAAO,CAAC;IACvB,OAAO,CAAC,EAAE,gBAAgB,CAAC;CAC5B;AAED;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CA+KlD,CAAC;AAEF,UAAU,YAAY;IACpB,IAAI,EAAE,SAAS,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CAC/B;AAED,eAAO,MAAM,OAAO,EAAE,EAAE,CAAC,YAAY,CA6BpC,CAAC;AAEF,UAAU,gBAAgB;IACxB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAoB5C,CAAC"}
|
|
@@ -5,5 +5,5 @@ import { EventType } from '../types';
|
|
|
5
5
|
*/
|
|
6
6
|
export declare const eventTitle: (event: EventType) => string;
|
|
7
7
|
export declare const formatTiming: (timestamp: string, working_start?: number) => string;
|
|
8
|
-
export declare const formatTitle: (title: string, total_tokens?: number, working_start?: number | null) => string;
|
|
8
|
+
export declare const formatTitle: (title: string, total_tokens?: number, working_start?: number | null, role?: string) => string;
|
|
9
9
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/app/samples/transcript/event/utils.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAoBrC;;;GAGG;AACH,eAAO,MAAM,UAAU,GAAI,OAAO,SAAS,KAAG,MA+D7C,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,WAAW,MAAM,EAAE,gBAAgB,MAAM,WAMrE,CAAC;AAEF,eAAO,MAAM,WAAW,GACtB,OAAO,MAAM,EACb,eAAe,MAAM,EACrB,gBAAgB,MAAM,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/app/samples/transcript/event/utils.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAoBrC;;;GAGG;AACH,eAAO,MAAM,UAAU,GAAI,OAAO,SAAS,KAAG,MA+D7C,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,WAAW,MAAM,EAAE,gBAAgB,MAAM,WAMrE,CAAC;AAEF,eAAO,MAAM,WAAW,GACtB,OAAO,MAAM,EACb,eAAe,MAAM,EACrB,gBAAgB,MAAM,GAAG,IAAI,EAC7B,OAAO,MAAM,WAYd,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -99423,10 +99423,10 @@ const isAnsiOutput = (text2) => {
|
|
|
99423
99423
|
);
|
|
99424
99424
|
return ansiRegex.test(text2);
|
|
99425
99425
|
};
|
|
99426
|
-
const toolImage = "
|
|
99427
|
-
const output = "
|
|
99428
|
-
const textOutput = "
|
|
99429
|
-
const textCode = "
|
|
99426
|
+
const toolImage = "_toolImage_h7uyp_1";
|
|
99427
|
+
const output = "_output_h7uyp_6";
|
|
99428
|
+
const textOutput = "_textOutput_h7uyp_10";
|
|
99429
|
+
const textCode = "_textCode_h7uyp_19";
|
|
99430
99430
|
const styles$1p = {
|
|
99431
99431
|
toolImage,
|
|
99432
99432
|
output,
|
|
@@ -100228,11 +100228,20 @@ const ChatMessage = memo(
|
|
|
100228
100228
|
toolMessages,
|
|
100229
100229
|
indented: indented2,
|
|
100230
100230
|
toolCallStyle,
|
|
100231
|
-
allowLinking = true
|
|
100231
|
+
allowLinking = true,
|
|
100232
|
+
unlabeledRoles
|
|
100232
100233
|
}) => {
|
|
100233
100234
|
const messageUrl = useSampleMessageUrl(message2.id);
|
|
100234
|
-
const collapse = message2.role === "system" || message2.role === "user";
|
|
100235
100235
|
const [mouseOver, setMouseOver] = useState(false);
|
|
100236
|
+
const collapse = message2.role === "system" || message2.role === "user";
|
|
100237
|
+
const hideRole = unlabeledRoles?.includes(message2.role) ?? false;
|
|
100238
|
+
if (hideRole) {
|
|
100239
|
+
const content2 = message2.content;
|
|
100240
|
+
const hasVisibleContent = typeof content2 === "string" ? content2.trim().length > 0 : Array.isArray(content2) && content2.some((c2) => c2.type !== "tool_use");
|
|
100241
|
+
if (!hasVisibleContent) {
|
|
100242
|
+
return null;
|
|
100243
|
+
}
|
|
100244
|
+
}
|
|
100236
100245
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
100237
100246
|
"div",
|
|
100238
100247
|
{
|
|
@@ -100247,7 +100256,7 @@ const ChatMessage = memo(
|
|
|
100247
100256
|
onMouseEnter: () => setMouseOver(true),
|
|
100248
100257
|
onMouseLeave: () => setMouseOver(false),
|
|
100249
100258
|
children: [
|
|
100250
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
100259
|
+
!hideRole && /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
100251
100260
|
"div",
|
|
100252
100261
|
{
|
|
100253
100262
|
className: clsx(
|
|
@@ -100338,7 +100347,8 @@ const ChatMessageRow = ({
|
|
|
100338
100347
|
toolCallStyle,
|
|
100339
100348
|
indented: indented2,
|
|
100340
100349
|
highlightUserMessage,
|
|
100341
|
-
allowLinking = true
|
|
100350
|
+
allowLinking = true,
|
|
100351
|
+
unlabeledRoles
|
|
100342
100352
|
}) => {
|
|
100343
100353
|
if (number2) {
|
|
100344
100354
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
@@ -100369,7 +100379,8 @@ const ChatMessageRow = ({
|
|
|
100369
100379
|
toolMessages: resolvedMessage.toolMessages,
|
|
100370
100380
|
indented: indented2,
|
|
100371
100381
|
toolCallStyle,
|
|
100372
|
-
allowLinking
|
|
100382
|
+
allowLinking,
|
|
100383
|
+
unlabeledRoles
|
|
100373
100384
|
}
|
|
100374
100385
|
)
|
|
100375
100386
|
]
|
|
@@ -100393,7 +100404,8 @@ const ChatMessageRow = ({
|
|
|
100393
100404
|
toolMessages: resolvedMessage.toolMessages,
|
|
100394
100405
|
indented: indented2,
|
|
100395
100406
|
toolCallStyle,
|
|
100396
|
-
allowLinking
|
|
100407
|
+
allowLinking,
|
|
100408
|
+
unlabeledRoles
|
|
100397
100409
|
}
|
|
100398
100410
|
),
|
|
100399
100411
|
resolvedMessage.message.role === "user" ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { height: "10px" } }) : void 0
|
|
@@ -100487,7 +100499,8 @@ const ChatView = ({
|
|
|
100487
100499
|
indented: indented2,
|
|
100488
100500
|
numbered = true,
|
|
100489
100501
|
className: className2,
|
|
100490
|
-
allowLinking = true
|
|
100502
|
+
allowLinking = true,
|
|
100503
|
+
unlabeledRoles
|
|
100491
100504
|
}) => {
|
|
100492
100505
|
const collapsedMessages = resolveToolCallsIntoPreviousMessage ? resolveMessages(messages2) : messages2.map((msg) => {
|
|
100493
100506
|
return {
|
|
@@ -100506,7 +100519,8 @@ const ChatView = ({
|
|
|
100506
100519
|
indented: indented2,
|
|
100507
100520
|
toolCallStyle,
|
|
100508
100521
|
allowLinking,
|
|
100509
|
-
highlightUserMessage: true
|
|
100522
|
+
highlightUserMessage: true,
|
|
100523
|
+
unlabeledRoles
|
|
100510
100524
|
},
|
|
100511
100525
|
`${id}-msg-${index}`
|
|
100512
100526
|
);
|
|
@@ -106555,7 +106569,7 @@ const ViewerOptionsPopover = ({
|
|
|
106555
106569
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$1d.fullWidth, styles$1d.fullWidthPadded), children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$1d.logDir, children: logDir2 }) }),
|
|
106556
106570
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$1d.spacer) }),
|
|
106557
106571
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-label", "text-style-secondary"), children: "Version" }),
|
|
106558
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(), children: "0.3.
|
|
106572
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(), children: "0.3.187-0-g376e76891" }),
|
|
106559
106573
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-label", "text-style-secondary"), children: "Schema" }),
|
|
106560
106574
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(), children: DB_VERSION }),
|
|
106561
106575
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$1d.spacer) }),
|
|
@@ -167038,15 +167052,16 @@ const ChatViewVirtualListComponent = memo(
|
|
|
167038
167052
|
);
|
|
167039
167053
|
}
|
|
167040
167054
|
);
|
|
167041
|
-
const tabPanel = "
|
|
167042
|
-
const tabControls = "
|
|
167043
|
-
const fullWidth$1 = "
|
|
167044
|
-
const padded = "
|
|
167045
|
-
const error$2 = "
|
|
167046
|
-
const ansi = "
|
|
167047
|
-
const noTop = "
|
|
167048
|
-
const chat = "
|
|
167049
|
-
const transcriptContainer = "
|
|
167055
|
+
const tabPanel = "_tabPanel_20s9q_1";
|
|
167056
|
+
const tabControls = "_tabControls_20s9q_5";
|
|
167057
|
+
const fullWidth$1 = "_fullWidth_20s9q_12";
|
|
167058
|
+
const padded = "_padded_20s9q_25";
|
|
167059
|
+
const error$2 = "_error_20s9q_30";
|
|
167060
|
+
const ansi = "_ansi_20s9q_34";
|
|
167061
|
+
const noTop = "_noTop_20s9q_38";
|
|
167062
|
+
const chat = "_chat_20s9q_50";
|
|
167063
|
+
const transcriptContainer = "_transcriptContainer_20s9q_58";
|
|
167064
|
+
const overflowVisible$1 = "_overflowVisible_20s9q_62";
|
|
167050
167065
|
const styles$Z = {
|
|
167051
167066
|
tabPanel,
|
|
167052
167067
|
tabControls,
|
|
@@ -167056,7 +167071,8 @@ const styles$Z = {
|
|
|
167056
167071
|
ansi,
|
|
167057
167072
|
noTop,
|
|
167058
167073
|
chat,
|
|
167059
|
-
transcriptContainer
|
|
167074
|
+
transcriptContainer,
|
|
167075
|
+
overflowVisible: overflowVisible$1
|
|
167060
167076
|
};
|
|
167061
167077
|
function truncateMarkdown(markdown, maxLength = 250, ellipsis2 = "...") {
|
|
167062
167078
|
if (!markdown || markdown.length <= maxLength) {
|
|
@@ -168947,7 +168963,8 @@ const formatTiming = (timestamp2, working_start) => {
|
|
|
168947
168963
|
return formatDateTime(new Date(timestamp2));
|
|
168948
168964
|
}
|
|
168949
168965
|
};
|
|
168950
|
-
const formatTitle = (title2, total_tokens, working_start) => {
|
|
168966
|
+
const formatTitle = (title2, total_tokens, working_start, role2) => {
|
|
168967
|
+
const titleWithRole = role2 ? `${title2} – ${role2} –` : title2;
|
|
168951
168968
|
const subItems = [];
|
|
168952
168969
|
if (total_tokens) {
|
|
168953
168970
|
subItems.push(`${formatNumber(total_tokens)} tokens`);
|
|
@@ -168956,7 +168973,7 @@ const formatTitle = (title2, total_tokens, working_start) => {
|
|
|
168956
168973
|
subItems.push(`${formatTime$1(working_start)}`);
|
|
168957
168974
|
}
|
|
168958
168975
|
const subtitle = subItems.length > 0 ? ` (${subItems.join(", ")})` : "";
|
|
168959
|
-
return `${
|
|
168976
|
+
return `${titleWithRole}${subtitle}`;
|
|
168960
168977
|
};
|
|
168961
168978
|
const ApprovalEventView = ({
|
|
168962
168979
|
eventNode,
|
|
@@ -169522,16 +169539,16 @@ const EventSection = ({
|
|
|
169522
169539
|
children2
|
|
169523
169540
|
] });
|
|
169524
169541
|
};
|
|
169525
|
-
const container$c = "
|
|
169526
|
-
const all = "
|
|
169527
|
-
const tableSelection = "
|
|
169528
|
-
const codePre = "
|
|
169529
|
-
const code$3 = "
|
|
169530
|
-
const progress$1 = "
|
|
169531
|
-
const error$1 = "
|
|
169532
|
-
const toolConfig = "
|
|
169533
|
-
const toolChoice = "
|
|
169534
|
-
const traceback = "
|
|
169542
|
+
const container$c = "_container_1gr6b_1";
|
|
169543
|
+
const all = "_all_1gr6b_6";
|
|
169544
|
+
const tableSelection = "_tableSelection_1gr6b_12";
|
|
169545
|
+
const codePre = "_codePre_1gr6b_22";
|
|
169546
|
+
const code$3 = "_code_1gr6b_22";
|
|
169547
|
+
const progress$1 = "_progress_1gr6b_34";
|
|
169548
|
+
const error$1 = "_error_1gr6b_38";
|
|
169549
|
+
const toolConfig = "_toolConfig_1gr6b_54";
|
|
169550
|
+
const toolChoice = "_toolChoice_1gr6b_62";
|
|
169551
|
+
const traceback = "_traceback_1gr6b_71";
|
|
169535
169552
|
const styles$J = {
|
|
169536
169553
|
container: container$c,
|
|
169537
169554
|
all,
|
|
@@ -169685,14 +169702,17 @@ const ModelEventView = ({
|
|
|
169685
169702
|
}
|
|
169686
169703
|
}
|
|
169687
169704
|
const panelTitle = eventTitle(event);
|
|
169688
|
-
const
|
|
169705
|
+
const outputRole = outputMessages.length > 0 ? outputMessages[0].role : void 0;
|
|
169706
|
+
const outputTimestamp = event.completed ? formatDateTime(new Date(event.completed)) : void 0;
|
|
169707
|
+
const baseTurnLabel = context?.turnInfo ? `turn ${context.turnInfo.turnNumber}/${context.turnInfo.totalTurns}` : void 0;
|
|
169708
|
+
const turnLabel2 = [outputTimestamp, baseTurnLabel].filter(Boolean).join(" | ") || void 0;
|
|
169689
169709
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
169690
169710
|
EventPanel,
|
|
169691
169711
|
{
|
|
169692
169712
|
eventNodeId: eventNode.id,
|
|
169693
169713
|
depth: eventNode.depth,
|
|
169694
|
-
className: className2,
|
|
169695
|
-
title: formatTitle(panelTitle, totalUsage, callTime),
|
|
169714
|
+
className: clsx(className2),
|
|
169715
|
+
title: formatTitle(panelTitle, totalUsage, callTime, outputRole),
|
|
169696
169716
|
subTitle: formatTiming(event.timestamp, event.working_start),
|
|
169697
169717
|
icon: ApplicationIcons.model,
|
|
169698
169718
|
turnLabel: turnLabel2,
|
|
@@ -169706,7 +169726,8 @@ const ModelEventView = ({
|
|
|
169706
169726
|
numbered: false,
|
|
169707
169727
|
toolCallStyle: showToolCalls ? "complete" : "omit",
|
|
169708
169728
|
resolveToolCallsIntoPreviousMessage: context?.hasToolEvents !== false,
|
|
169709
|
-
allowLinking: false
|
|
169729
|
+
allowLinking: false,
|
|
169730
|
+
unlabeledRoles: ["assistant"]
|
|
169710
169731
|
}
|
|
169711
169732
|
),
|
|
169712
169733
|
event.error ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$J.error, children: [
|
|
@@ -180667,7 +180688,11 @@ const SampleDisplay = ({
|
|
|
180667
180688
|
TabPanel,
|
|
180668
180689
|
{
|
|
180669
180690
|
id: kSampleTranscriptTabId,
|
|
180670
|
-
className: clsx(
|
|
180691
|
+
className: clsx(
|
|
180692
|
+
"sample-tab",
|
|
180693
|
+
styles$Z.transcriptContainer,
|
|
180694
|
+
styles$Z.overflowVisible
|
|
180695
|
+
),
|
|
180671
180696
|
title: "Transcript",
|
|
180672
180697
|
onSelected: onSelectedTab,
|
|
180673
180698
|
selected: effectiveSelectedTab === kSampleTranscriptTabId || effectiveSelectedTab === void 0,
|
|
@@ -180701,7 +180726,12 @@ const SampleDisplay = ({
|
|
|
180701
180726
|
TabPanel,
|
|
180702
180727
|
{
|
|
180703
180728
|
id: kSampleMessagesTabId,
|
|
180704
|
-
className: clsx(
|
|
180729
|
+
className: clsx(
|
|
180730
|
+
"sample-tab",
|
|
180731
|
+
styles$Z.fullWidth,
|
|
180732
|
+
styles$Z.chat,
|
|
180733
|
+
styles$Z.overflowVisible
|
|
180734
|
+
),
|
|
180705
180735
|
title: "Messages",
|
|
180706
180736
|
onSelected: onSelectedTab,
|
|
180707
180737
|
selected: effectiveSelectedTab === kSampleMessagesTabId,
|