@meridianlabs/inspect-scout-viewer 0.4.13 → 0.4.15
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/index.js +64 -26
- package/lib/index.js.map +1 -1
- package/lib/src/components/icons.d.ts +1 -0
- package/lib/src/components/transcript/transform/fixups.d.ts +1 -1
- package/lib/src/types/api-types.d.ts +1 -1
- package/lib/src/types/generated.d.ts +6 -1
- package/lib/styles/index.css +17 -9
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -10571,7 +10571,8 @@ const ApplicationIcons = {
|
|
|
10571
10571
|
operator: "bi bi-person-workspace",
|
|
10572
10572
|
tokens: "bi bi-list",
|
|
10573
10573
|
time: "bi bi-clock",
|
|
10574
|
-
execution: "bi bi-stopwatch"
|
|
10574
|
+
execution: "bi bi-stopwatch",
|
|
10575
|
+
cost: "bi bi-currency-dollar"
|
|
10575
10576
|
},
|
|
10576
10577
|
link: "bi bi-link-45deg",
|
|
10577
10578
|
logging: loggingIcons,
|
|
@@ -138246,16 +138247,18 @@ function isEventInput(input2) {
|
|
|
138246
138247
|
function isEventsInput(input2) {
|
|
138247
138248
|
return input2.inputType === "events";
|
|
138248
138249
|
}
|
|
138249
|
-
const boolean = "
|
|
138250
|
-
const valueTable = "
|
|
138251
|
-
const
|
|
138252
|
-
const
|
|
138253
|
-
const
|
|
138250
|
+
const boolean = "_boolean_8citi_1";
|
|
138251
|
+
const valueTable = "_valueTable_8citi_25";
|
|
138252
|
+
const valueKey = "_valueKey_8citi_32";
|
|
138253
|
+
const inline = "_inline_8citi_38";
|
|
138254
|
+
const valueValue = "_valueValue_8citi_38";
|
|
138255
|
+
const value$2 = "_value_8citi_25";
|
|
138254
138256
|
const styles$Q = {
|
|
138255
138257
|
boolean,
|
|
138256
|
-
"true": "
|
|
138257
|
-
"false": "
|
|
138258
|
+
"true": "_true_8citi_13",
|
|
138259
|
+
"false": "_false_8citi_19",
|
|
138258
138260
|
valueTable,
|
|
138261
|
+
valueKey,
|
|
138259
138262
|
inline,
|
|
138260
138263
|
valueValue,
|
|
138261
138264
|
value: value$2
|
|
@@ -138375,25 +138378,53 @@ const ValueTable = ({
|
|
|
138375
138378
|
references,
|
|
138376
138379
|
style: style2
|
|
138377
138380
|
}) => {
|
|
138378
|
-
const
|
|
138379
|
-
|
|
138380
|
-
|
|
138381
|
+
const sortedKeys = Object.keys(value2).sort((a2, b2) => {
|
|
138382
|
+
const aVal = value2[a2];
|
|
138383
|
+
const bVal = value2[b2];
|
|
138384
|
+
if (typeof aVal === "boolean" && typeof bVal === "boolean") {
|
|
138385
|
+
return Number(bVal) - Number(aVal);
|
|
138386
|
+
} else if (typeof aVal === "number" && typeof bVal === "number") {
|
|
138387
|
+
return bVal - aVal;
|
|
138388
|
+
} else {
|
|
138389
|
+
return 0;
|
|
138390
|
+
}
|
|
138391
|
+
});
|
|
138392
|
+
const keysToDisplay = sortedKeys.slice(0, maxTableSize);
|
|
138393
|
+
const notShown = Object.keys(value2).length - maxTableSize;
|
|
138394
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
138381
138395
|
"div",
|
|
138382
138396
|
{
|
|
138383
138397
|
className: clsx(
|
|
138384
138398
|
styles$Q.valueTable,
|
|
138385
138399
|
style2 === "inline" ? styles$Q.inline : styles$Q.block
|
|
138386
138400
|
),
|
|
138387
|
-
children:
|
|
138388
|
-
|
|
138389
|
-
|
|
138390
|
-
|
|
138391
|
-
|
|
138392
|
-
|
|
138393
|
-
|
|
138394
|
-
|
|
138395
|
-
|
|
138396
|
-
/* @__PURE__ */ jsxRuntimeExports.
|
|
138401
|
+
children: [
|
|
138402
|
+
keysToDisplay.map((key2, index) => {
|
|
138403
|
+
const displayValue = renderValue(
|
|
138404
|
+
index,
|
|
138405
|
+
value2[key2],
|
|
138406
|
+
result2,
|
|
138407
|
+
references,
|
|
138408
|
+
interactive
|
|
138409
|
+
);
|
|
138410
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Fragment, { children: [
|
|
138411
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
138412
|
+
"div",
|
|
138413
|
+
{
|
|
138414
|
+
className: clsx(
|
|
138415
|
+
styles$Q.valueKey,
|
|
138416
|
+
"text-style-label",
|
|
138417
|
+
"text-style-secondary",
|
|
138418
|
+
"text-size-smallest"
|
|
138419
|
+
),
|
|
138420
|
+
children: key2
|
|
138421
|
+
}
|
|
138422
|
+
),
|
|
138423
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$Q.valueValue), children: displayValue })
|
|
138424
|
+
] }, `value-table-row-${key2}`);
|
|
138425
|
+
}),
|
|
138426
|
+
notShown > 0 && /* @__PURE__ */ jsxRuntimeExports.jsxs(Fragment, { children: [
|
|
138427
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
138397
138428
|
"div",
|
|
138398
138429
|
{
|
|
138399
138430
|
className: clsx(
|
|
@@ -138402,12 +138433,15 @@ const ValueTable = ({
|
|
|
138402
138433
|
"text-style-secondary",
|
|
138403
138434
|
"text-size-smallest"
|
|
138404
138435
|
),
|
|
138405
|
-
children:
|
|
138436
|
+
children: [
|
|
138437
|
+
notShown,
|
|
138438
|
+
" more…"
|
|
138439
|
+
]
|
|
138406
138440
|
}
|
|
138407
138441
|
),
|
|
138408
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$Q.valueValue)
|
|
138409
|
-
] }, `value-table-row
|
|
138410
|
-
|
|
138442
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$Q.valueValue) })
|
|
138443
|
+
] }, `value-table-row-more`)
|
|
138444
|
+
]
|
|
138411
138445
|
}
|
|
138412
138446
|
);
|
|
138413
138447
|
};
|
|
@@ -140007,6 +140041,8 @@ const SampleLimitEventView = ({
|
|
|
140007
140041
|
return "Operator Canceled";
|
|
140008
140042
|
case "working":
|
|
140009
140043
|
return "Execution Time Limit Exceeded";
|
|
140044
|
+
case "cost":
|
|
140045
|
+
return "Cost Limit Exceeded";
|
|
140010
140046
|
}
|
|
140011
140047
|
};
|
|
140012
140048
|
const resolve_icon = (type) => {
|
|
@@ -140023,6 +140059,8 @@ const SampleLimitEventView = ({
|
|
|
140023
140059
|
return ApplicationIcons.limits.operator;
|
|
140024
140060
|
case "working":
|
|
140025
140061
|
return ApplicationIcons.limits.execution;
|
|
140062
|
+
case "cost":
|
|
140063
|
+
return ApplicationIcons.limits.cost;
|
|
140026
140064
|
}
|
|
140027
140065
|
};
|
|
140028
140066
|
const title2 = resolve_title(eventNode.event.type);
|
|
@@ -150180,7 +150218,7 @@ const optimalColumnLayout = (scannerSummaries) => {
|
|
|
150180
150218
|
return Math.max(max2, valStr.length);
|
|
150181
150219
|
}, 0);
|
|
150182
150220
|
gridColParts.push(
|
|
150183
|
-
`minmax(${Math.min(Math.max((maxKeyLen + maxValueLen) * 10, 135),
|
|
150221
|
+
`minmax(${Math.min(Math.max((maxKeyLen + maxValueLen) * 10, 135), 200)}px, 4fr)`
|
|
150184
150222
|
);
|
|
150185
150223
|
} else {
|
|
150186
150224
|
gridColParts.push("3fr");
|