@sentry/junior-dashboard 0.61.0 → 0.63.0
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/dist/app.d.ts +1 -0
- package/dist/app.js +44 -37
- package/dist/assets.d.ts +2 -0
- package/dist/client/api.d.ts +1 -1
- package/dist/client/components/Metric.d.ts +22 -0
- package/dist/client/components/TelemetryMetrics.d.ts +24 -0
- package/dist/client/components/TranscriptText.d.ts +1 -0
- package/dist/client/components/transcriptRenderModel.d.ts +24 -8
- package/dist/client/format.d.ts +65 -13
- package/dist/client/toolInvocations.d.ts +7 -0
- package/dist/client/types.d.ts +17 -100
- package/dist/client.js +59 -55992
- package/dist/handler.js +44 -37
- package/dist/index.d.ts +8 -0
- package/dist/index.js +564 -0
- package/dist/nitro.d.ts +6 -1
- package/dist/tailwind.css +1 -1
- package/dist/url.d.ts +13 -0
- package/package.json +8 -5
- package/src/app.ts +24 -16
- package/src/assets.ts +2 -0
- package/src/auth.ts +2 -35
- package/src/client/components/ConversationRowStats.tsx +3 -2
- package/src/client/components/Metric.tsx +159 -0
- package/src/client/components/TelemetryMetrics.tsx +124 -0
- package/src/client/components/ToolFrame.tsx +3 -3
- package/src/client/components/TranscriptText.tsx +5 -2
- package/src/client/components/TranscriptToolView.tsx +9 -7
- package/src/client/components/TranscriptTurn.tsx +435 -84
- package/src/client/components/TurnDurationChart.tsx +229 -78
- package/src/client/components/transcriptRenderModel.ts +66 -22
- package/src/client/format.ts +369 -103
- package/src/client/pages/ConversationPage.tsx +77 -38
- package/src/client/toolInvocations.ts +16 -0
- package/src/client/types.ts +34 -90
- package/src/index.ts +74 -0
- package/src/nitro.ts +6 -1
- package/src/url.ts +68 -0
|
@@ -39,14 +39,14 @@ export function ToolFrame(props: {
|
|
|
39
39
|
|
|
40
40
|
/** Provide the shared transcript tool-frame shell for nonstandard part views. */
|
|
41
41
|
export function toolFrameClass(): string {
|
|
42
|
-
return "border border-[#beaaff]/20
|
|
42
|
+
return "border-l border-[#beaaff]/20 pl-3 transition-colors hover:border-[#beaaff]/40";
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
function toolHeaderClass(interactive: boolean): string {
|
|
46
46
|
return cn(
|
|
47
|
-
"grid grid-cols-[minmax(0,1fr)_auto] items-start gap-3
|
|
47
|
+
"grid grid-cols-[minmax(0,1fr)_auto] items-start gap-3 py-1.5 font-mono text-[0.82rem] leading-tight text-[#b8b8b8] max-md:grid-cols-1 max-md:gap-1",
|
|
48
48
|
interactive
|
|
49
|
-
? "cursor-pointer hover:
|
|
49
|
+
? "cursor-pointer list-none transition-colors hover:text-[#d6d6d6] [&::-webkit-details-marker]:hidden"
|
|
50
50
|
: "cursor-default",
|
|
51
51
|
);
|
|
52
52
|
}
|
|
@@ -3,15 +3,18 @@ import {
|
|
|
3
3
|
HighlightedCode,
|
|
4
4
|
StructuredMarkup,
|
|
5
5
|
} from "../code";
|
|
6
|
-
import { canRenderStructuredMarkup, parseMarkdownBlocks } from "../format";
|
|
6
|
+
import { canRenderStructuredMarkup, parseMarkdownBlocks, transcriptRoleKind } from "../format";
|
|
7
7
|
|
|
8
8
|
/** Render transcript markdown/code blocks with structured markup expansion. */
|
|
9
9
|
export function TranscriptText(props: {
|
|
10
10
|
firstChildIndex: number;
|
|
11
11
|
lastChildIndex: number;
|
|
12
|
+
role?: string;
|
|
12
13
|
text: string;
|
|
13
14
|
}) {
|
|
14
|
-
const blocks = parseMarkdownBlocks(props.text
|
|
15
|
+
const blocks = parseMarkdownBlocks(props.text, {
|
|
16
|
+
outputOnly: transcriptRoleKind(props.role ?? "") === "assistant",
|
|
17
|
+
});
|
|
15
18
|
let seenChildren = props.firstChildIndex;
|
|
16
19
|
|
|
17
20
|
return (
|
|
@@ -38,7 +38,9 @@ export function TranscriptToolView(props: {
|
|
|
38
38
|
? formatMs(props.resultTimestamp - props.timestamp)
|
|
39
39
|
: undefined;
|
|
40
40
|
const meta = [
|
|
41
|
-
|
|
41
|
+
typeof props.timestamp === "number"
|
|
42
|
+
? formatMessageTimestamp(props.timestamp)
|
|
43
|
+
: undefined,
|
|
42
44
|
duration,
|
|
43
45
|
props.result ? formatBytes(outputBytes) : undefined,
|
|
44
46
|
props.result ? undefined : "missing result",
|
|
@@ -51,7 +53,7 @@ export function TranscriptToolView(props: {
|
|
|
51
53
|
meta={meta}
|
|
52
54
|
raw
|
|
53
55
|
signature={
|
|
54
|
-
<strong className="min-w-0 break-words font-bold text-
|
|
56
|
+
<strong className="min-w-0 break-words font-bold text-[#d6d6d6]">
|
|
55
57
|
{toolName}
|
|
56
58
|
</strong>
|
|
57
59
|
}
|
|
@@ -74,7 +76,7 @@ export function TranscriptToolView(props: {
|
|
|
74
76
|
meta={meta}
|
|
75
77
|
signature={
|
|
76
78
|
<>
|
|
77
|
-
<strong className="min-w-0 break-words font-bold text-
|
|
79
|
+
<strong className="min-w-0 break-words font-bold text-[#d6d6d6]">
|
|
78
80
|
{toolName}
|
|
79
81
|
</strong>
|
|
80
82
|
{isPreviewableValue(input) ? (
|
|
@@ -113,12 +115,12 @@ function ToolBodySection(props: {
|
|
|
113
115
|
return (
|
|
114
116
|
<div
|
|
115
117
|
className={cn(
|
|
116
|
-
"border-t border-white/10
|
|
117
|
-
props.padded === false ? "" : "py-
|
|
118
|
+
"border-t border-white/10",
|
|
119
|
+
props.padded === false ? "" : "py-2",
|
|
118
120
|
)}
|
|
119
121
|
>
|
|
120
122
|
{props.label ? (
|
|
121
|
-
<div className="pb-2 font-mono text-[0.78rem]
|
|
123
|
+
<div className="pb-2 font-mono text-[0.78rem] leading-none text-[#888]">
|
|
122
124
|
{props.label}
|
|
123
125
|
</div>
|
|
124
126
|
) : null}
|
|
@@ -173,7 +175,7 @@ function ToolArgEntry(props: { index: number; name: string; value: string }) {
|
|
|
173
175
|
return (
|
|
174
176
|
<span>
|
|
175
177
|
{props.index > 0 ? <span className="text-[#888]">, </span> : null}
|
|
176
|
-
<span className="text-
|
|
178
|
+
<span className="text-[#d6d6d6]">{props.name}</span>
|
|
177
179
|
<span className="text-[#888]">: </span>
|
|
178
180
|
<ToolArgValue value={props.value} />
|
|
179
181
|
</span>
|