@metrevals/inspect-scout-viewer 0.2.3-beta.1763763280 → 0.2.3-beta.1763914048
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/appearance/icons.d.ts +1 -0
- package/lib/app/components/ToolButton.d.ts +8 -0
- package/lib/chat/ChatMessageRow.d.ts +4 -1
- package/lib/chat/ChatView.d.ts +1 -0
- package/lib/chat/ChatViewVirtualList.d.ts +1 -0
- package/lib/chat/MessageContents.d.ts +1 -4
- package/lib/index.js +602 -530
- package/lib/index.js.map +1 -1
- package/lib/state/store.d.ts +2 -0
- package/lib/styles/index.css +75 -32
- package/package.json +2 -2
package/lib/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React3 from "react";
|
|
2
|
-
import React3__default, { createContext, useContext, useRef, useCallback, useEffect, useMemo, Fragment, Children, isValidElement, useState, createElement, memo as memo$1,
|
|
2
|
+
import React3__default, { createContext, useContext, useRef, useCallback, useEffect, useMemo, Fragment, Children, isValidElement, forwardRef, useState, createElement, memo as memo$1, useImperativeHandle, useLayoutEffect, Suspense, Component as Component$1 } from "react";
|
|
3
3
|
import * as ReactDOM from "react-dom";
|
|
4
4
|
import ReactDOM__default, { createPortal } from "react-dom";
|
|
5
5
|
import { c as commonjsGlobal, g as getDefaultExportFromCjs } from "./_commonjsHelpers-DWwsNxpa.js";
|
|
@@ -779,9 +779,9 @@ function flattenRoutes(routes, branches = [], parentsMeta = [], parentPath = "",
|
|
|
779
779
|
function explodeOptionalSegments(path) {
|
|
780
780
|
let segments = path.split("/");
|
|
781
781
|
if (segments.length === 0) return [];
|
|
782
|
-
let [
|
|
783
|
-
let isOptional =
|
|
784
|
-
let required =
|
|
782
|
+
let [first2, ...rest] = segments;
|
|
783
|
+
let isOptional = first2.endsWith("?");
|
|
784
|
+
let required = first2.replace(/\?$/, "");
|
|
785
785
|
if (rest.length === 0) {
|
|
786
786
|
return isOptional ? [required, ""] : [required];
|
|
787
787
|
}
|
|
@@ -8035,7 +8035,7 @@ function requirePrism() {
|
|
|
8035
8035
|
*
|
|
8036
8036
|
* @param {ParentNode} [container=document]
|
|
8037
8037
|
*/
|
|
8038
|
-
highlight: function
|
|
8038
|
+
highlight: function highlight2(container2) {
|
|
8039
8039
|
var elements = (container2 || document).querySelectorAll(SELECTOR);
|
|
8040
8040
|
for (var i2 = 0, element; element = elements[i2++]; ) {
|
|
8041
8041
|
Prism2.highlightElement(element);
|
|
@@ -8148,9 +8148,9 @@ function debounce$2(func2, wait, options = {}) {
|
|
|
8148
8148
|
let result2;
|
|
8149
8149
|
let lastCallTime = null;
|
|
8150
8150
|
const later = () => {
|
|
8151
|
-
const
|
|
8152
|
-
if (
|
|
8153
|
-
timeout = setTimeout(later, wait -
|
|
8151
|
+
const last2 = Date.now() - (lastCallTime || 0);
|
|
8152
|
+
if (last2 < wait && last2 >= 0) {
|
|
8153
|
+
timeout = setTimeout(later, wait - last2);
|
|
8154
8154
|
} else {
|
|
8155
8155
|
timeout = null;
|
|
8156
8156
|
if (!options.leading) {
|
|
@@ -9404,6 +9404,7 @@ const createStore$1 = (api) => create$2()(
|
|
|
9404
9404
|
transcriptCollapsedEvents: {},
|
|
9405
9405
|
scopedErrors: {},
|
|
9406
9406
|
visibleScannerResults: [],
|
|
9407
|
+
highlightLabeled: false,
|
|
9407
9408
|
// Actions
|
|
9408
9409
|
setSingleFileMode: (enabled) => {
|
|
9409
9410
|
set3((state) => {
|
|
@@ -9693,6 +9694,11 @@ const createStore$1 = (api) => create$2()(
|
|
|
9693
9694
|
set3((state) => {
|
|
9694
9695
|
state.scansSearchText = text2;
|
|
9695
9696
|
});
|
|
9697
|
+
},
|
|
9698
|
+
setHighlightLabeled: (highlight2) => {
|
|
9699
|
+
set3((state) => {
|
|
9700
|
+
state.highlightLabeled = highlight2;
|
|
9701
|
+
});
|
|
9696
9702
|
}
|
|
9697
9703
|
})),
|
|
9698
9704
|
{
|
|
@@ -9898,7 +9904,7 @@ function useRafThrottle(callback) {
|
|
|
9898
9904
|
}, []);
|
|
9899
9905
|
return throttledCallback;
|
|
9900
9906
|
}
|
|
9901
|
-
const tabs$
|
|
9907
|
+
const tabs$2 = "_tabs_1sz0h_1";
|
|
9902
9908
|
const tabContents = "_tabContents_1sz0h_5";
|
|
9903
9909
|
const scrollable = "_scrollable_1sz0h_10";
|
|
9904
9910
|
const tab$1 = "_tab_1sz0h_1";
|
|
@@ -9907,7 +9913,7 @@ const tabIcon = "_tabIcon_1sz0h_29";
|
|
|
9907
9913
|
const tabTools = "_tabTools_1sz0h_33";
|
|
9908
9914
|
const tabStyle = "_tabStyle_1sz0h_43";
|
|
9909
9915
|
const moduleStyles = {
|
|
9910
|
-
tabs: tabs$
|
|
9916
|
+
tabs: tabs$2,
|
|
9911
9917
|
tabContents,
|
|
9912
9918
|
scrollable,
|
|
9913
9919
|
tab: tab$1,
|
|
@@ -10082,6 +10088,126 @@ const updateScannerParam = (searchParams, scanner) => {
|
|
|
10082
10088
|
const getScannerParam = (searchParams) => {
|
|
10083
10089
|
return searchParams.get(kScannerQueryParam) || void 0;
|
|
10084
10090
|
};
|
|
10091
|
+
const loggingIcons = {
|
|
10092
|
+
notset: "bi bi-card-text",
|
|
10093
|
+
debug: "bi bi-bug",
|
|
10094
|
+
http: "bi bi-download",
|
|
10095
|
+
info: "bi bi-info-square",
|
|
10096
|
+
warning: "bi bi-exclamation-triangle",
|
|
10097
|
+
error: "bi bi-x-circle",
|
|
10098
|
+
critical: "bi bi-fire"
|
|
10099
|
+
};
|
|
10100
|
+
const iconForMimeType = (mimeType) => {
|
|
10101
|
+
if (mimeType === "application/pdf") {
|
|
10102
|
+
return "bi bi-file-pdf";
|
|
10103
|
+
} else if (mimeType.startsWith("image/")) {
|
|
10104
|
+
return "bi bi-file-image";
|
|
10105
|
+
} else {
|
|
10106
|
+
return "bi bi-file-earmark";
|
|
10107
|
+
}
|
|
10108
|
+
};
|
|
10109
|
+
const ApplicationIcons = {
|
|
10110
|
+
// bi bi-x-diamond
|
|
10111
|
+
approve: "bi bi-shield",
|
|
10112
|
+
approvals: {
|
|
10113
|
+
approve: "bi bi-shield-check",
|
|
10114
|
+
reject: "bi bi-shield-x",
|
|
10115
|
+
terminate: "bi bi-shield-exclamation",
|
|
10116
|
+
escalate: "bi bi-box-arrow-up",
|
|
10117
|
+
modify: "bi bi-pencil-square"
|
|
10118
|
+
},
|
|
10119
|
+
arrows: {
|
|
10120
|
+
right: "bi bi-arrow-right"
|
|
10121
|
+
},
|
|
10122
|
+
checkbox: {
|
|
10123
|
+
checked: "bi bi-check-circle",
|
|
10124
|
+
unchecked: "bi bi-circle"
|
|
10125
|
+
},
|
|
10126
|
+
chevron: {
|
|
10127
|
+
right: "bi bi-chevron-right",
|
|
10128
|
+
down: "bi bi-chevron-down"
|
|
10129
|
+
},
|
|
10130
|
+
"clear-text": "bi bi-x-circle-fill",
|
|
10131
|
+
close: "bi bi-x",
|
|
10132
|
+
confirm: "bi bi-check",
|
|
10133
|
+
copy: "bi bi-copy",
|
|
10134
|
+
edit: "bi bi-pencil-square",
|
|
10135
|
+
error: "bi bi-exclamation-circle-fill",
|
|
10136
|
+
file: "bi bi-file-code",
|
|
10137
|
+
folder: "bi bi-folder",
|
|
10138
|
+
highlight: "bi bi-highlighter",
|
|
10139
|
+
info: "bi bi-info-circle",
|
|
10140
|
+
input: "bi bi-terminal",
|
|
10141
|
+
limits: {
|
|
10142
|
+
messages: "bi bi-chat-right-text",
|
|
10143
|
+
custom: "bi bi-exclamation-triangle",
|
|
10144
|
+
operator: "bi bi-person-workspace",
|
|
10145
|
+
tokens: "bi bi-list",
|
|
10146
|
+
time: "bi bi-clock",
|
|
10147
|
+
execution: "bi bi-stopwatch"
|
|
10148
|
+
},
|
|
10149
|
+
link: "bi bi-link-45deg",
|
|
10150
|
+
logging: loggingIcons,
|
|
10151
|
+
metadata: "bi bi-table",
|
|
10152
|
+
model: "bi bi-grid-3x3-gap",
|
|
10153
|
+
navbar: {
|
|
10154
|
+
home: "ii inspect-icon-home",
|
|
10155
|
+
back: "ii inspect-icon-back",
|
|
10156
|
+
forward: "ii inspect-icon-forward"
|
|
10157
|
+
},
|
|
10158
|
+
next: "bi bi-chevron-right",
|
|
10159
|
+
noSamples: "bi bi-ban",
|
|
10160
|
+
pendingTask: "bi bi-clock-fill",
|
|
10161
|
+
play: "bi bi-play-fill",
|
|
10162
|
+
previous: "bi bi-chevron-left",
|
|
10163
|
+
refuse: "bi bi-ban",
|
|
10164
|
+
role: {
|
|
10165
|
+
tool: "bi bi-tools"
|
|
10166
|
+
},
|
|
10167
|
+
sample: "bi bi-database",
|
|
10168
|
+
samples: "bi bi-file-spreadsheet",
|
|
10169
|
+
sandbox: "bi bi-box-seam",
|
|
10170
|
+
scorer: "bi bi-calculator",
|
|
10171
|
+
search: "bi bi-search",
|
|
10172
|
+
solvers: {
|
|
10173
|
+
use_tools: "bi bi-tools"
|
|
10174
|
+
},
|
|
10175
|
+
success: "bi bi-check-circle-fill",
|
|
10176
|
+
tree: {
|
|
10177
|
+
open: "bi bi-caret-down-fill",
|
|
10178
|
+
closed: "bi bi-caret-right-fill"
|
|
10179
|
+
}
|
|
10180
|
+
};
|
|
10181
|
+
const toolButton = "_toolButton_1y0d0_1";
|
|
10182
|
+
const latched = "_latched_1y0d0_17";
|
|
10183
|
+
const styles$1j = {
|
|
10184
|
+
toolButton,
|
|
10185
|
+
latched
|
|
10186
|
+
};
|
|
10187
|
+
const ToolButton = forwardRef(
|
|
10188
|
+
({ label: label2, icon: icon2, className: className2, latched: latched2, ...rest }, ref2) => {
|
|
10189
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
10190
|
+
"button",
|
|
10191
|
+
{
|
|
10192
|
+
ref: ref2,
|
|
10193
|
+
type: "button",
|
|
10194
|
+
className: clsx(
|
|
10195
|
+
styles$1j.toolButton,
|
|
10196
|
+
"btn",
|
|
10197
|
+
"btn-tools",
|
|
10198
|
+
className2,
|
|
10199
|
+
latched2 ? styles$1j.latched : void 0
|
|
10200
|
+
),
|
|
10201
|
+
...rest,
|
|
10202
|
+
children: [
|
|
10203
|
+
icon2 && /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: `${icon2}` }),
|
|
10204
|
+
label2
|
|
10205
|
+
]
|
|
10206
|
+
}
|
|
10207
|
+
);
|
|
10208
|
+
}
|
|
10209
|
+
);
|
|
10210
|
+
ToolButton.displayName = "ToolButton";
|
|
10085
10211
|
function __awaiter(thisArg, _arguments, P2, generator) {
|
|
10086
10212
|
function adopt(value2) {
|
|
10087
10213
|
return value2 instanceof P2 ? value2 : new P2(function(resolve2) {
|
|
@@ -24063,16 +24189,16 @@ pp$8.parseExportSpecifier = function(exports2) {
|
|
|
24063
24189
|
return this.finishNode(node2, "ExportSpecifier");
|
|
24064
24190
|
};
|
|
24065
24191
|
pp$8.parseExportSpecifiers = function(exports2) {
|
|
24066
|
-
var nodes = [],
|
|
24192
|
+
var nodes = [], first2 = true;
|
|
24067
24193
|
this.expect(types$1.braceL);
|
|
24068
24194
|
while (!this.eat(types$1.braceR)) {
|
|
24069
|
-
if (!
|
|
24195
|
+
if (!first2) {
|
|
24070
24196
|
this.expect(types$1.comma);
|
|
24071
24197
|
if (this.afterTrailingComma(types$1.braceR)) {
|
|
24072
24198
|
break;
|
|
24073
24199
|
}
|
|
24074
24200
|
} else {
|
|
24075
|
-
|
|
24201
|
+
first2 = false;
|
|
24076
24202
|
}
|
|
24077
24203
|
nodes.push(this.parseExportSpecifier(exports2));
|
|
24078
24204
|
}
|
|
@@ -24121,7 +24247,7 @@ pp$8.parseImportNamespaceSpecifier = function() {
|
|
|
24121
24247
|
return this.finishNode(node2, "ImportNamespaceSpecifier");
|
|
24122
24248
|
};
|
|
24123
24249
|
pp$8.parseImportSpecifiers = function() {
|
|
24124
|
-
var nodes = [],
|
|
24250
|
+
var nodes = [], first2 = true;
|
|
24125
24251
|
if (this.type === types$1.name) {
|
|
24126
24252
|
nodes.push(this.parseImportDefaultSpecifier());
|
|
24127
24253
|
if (!this.eat(types$1.comma)) {
|
|
@@ -24134,13 +24260,13 @@ pp$8.parseImportSpecifiers = function() {
|
|
|
24134
24260
|
}
|
|
24135
24261
|
this.expect(types$1.braceL);
|
|
24136
24262
|
while (!this.eat(types$1.braceR)) {
|
|
24137
|
-
if (!
|
|
24263
|
+
if (!first2) {
|
|
24138
24264
|
this.expect(types$1.comma);
|
|
24139
24265
|
if (this.afterTrailingComma(types$1.braceR)) {
|
|
24140
24266
|
break;
|
|
24141
24267
|
}
|
|
24142
24268
|
} else {
|
|
24143
|
-
|
|
24269
|
+
first2 = false;
|
|
24144
24270
|
}
|
|
24145
24271
|
nodes.push(this.parseImportSpecifier());
|
|
24146
24272
|
}
|
|
@@ -24153,15 +24279,15 @@ pp$8.parseWithClause = function() {
|
|
|
24153
24279
|
}
|
|
24154
24280
|
this.expect(types$1.braceL);
|
|
24155
24281
|
var attributeKeys = {};
|
|
24156
|
-
var
|
|
24282
|
+
var first2 = true;
|
|
24157
24283
|
while (!this.eat(types$1.braceR)) {
|
|
24158
|
-
if (!
|
|
24284
|
+
if (!first2) {
|
|
24159
24285
|
this.expect(types$1.comma);
|
|
24160
24286
|
if (this.afterTrailingComma(types$1.braceR)) {
|
|
24161
24287
|
break;
|
|
24162
24288
|
}
|
|
24163
24289
|
} else {
|
|
24164
|
-
|
|
24290
|
+
first2 = false;
|
|
24165
24291
|
}
|
|
24166
24292
|
var attr = this.parseImportAttribute();
|
|
24167
24293
|
var keyName = attr.key.type === "Identifier" ? attr.key.name : attr.key.value;
|
|
@@ -24284,9 +24410,9 @@ pp$7.toAssignableList = function(exprList, isBinding) {
|
|
|
24284
24410
|
}
|
|
24285
24411
|
}
|
|
24286
24412
|
if (end2) {
|
|
24287
|
-
var
|
|
24288
|
-
if (this.options.ecmaVersion === 6 && isBinding &&
|
|
24289
|
-
this.unexpected(
|
|
24413
|
+
var last2 = exprList[end2 - 1];
|
|
24414
|
+
if (this.options.ecmaVersion === 6 && isBinding && last2 && last2.type === "RestElement" && last2.argument.type !== "Identifier") {
|
|
24415
|
+
this.unexpected(last2.argument.start);
|
|
24290
24416
|
}
|
|
24291
24417
|
}
|
|
24292
24418
|
return exprList;
|
|
@@ -24321,10 +24447,10 @@ pp$7.parseBindingAtom = function() {
|
|
|
24321
24447
|
return this.parseIdent();
|
|
24322
24448
|
};
|
|
24323
24449
|
pp$7.parseBindingList = function(close, allowEmpty, allowTrailingComma, allowModifiers) {
|
|
24324
|
-
var elts = [],
|
|
24450
|
+
var elts = [], first2 = true;
|
|
24325
24451
|
while (!this.eat(close)) {
|
|
24326
|
-
if (
|
|
24327
|
-
|
|
24452
|
+
if (first2) {
|
|
24453
|
+
first2 = false;
|
|
24328
24454
|
} else {
|
|
24329
24455
|
this.expect(types$1.comma);
|
|
24330
24456
|
}
|
|
@@ -25131,12 +25257,12 @@ pp$5.parseParenAndDistinguishExpression = function(canBeArrow, forInit) {
|
|
|
25131
25257
|
if (this.options.ecmaVersion >= 6) {
|
|
25132
25258
|
this.next();
|
|
25133
25259
|
var innerStartPos = this.start, innerStartLoc = this.startLoc;
|
|
25134
|
-
var exprList = [],
|
|
25260
|
+
var exprList = [], first2 = true, lastIsComma = false;
|
|
25135
25261
|
var refDestructuringErrors = new DestructuringErrors(), oldYieldPos = this.yieldPos, oldAwaitPos = this.awaitPos, spreadStart;
|
|
25136
25262
|
this.yieldPos = 0;
|
|
25137
25263
|
this.awaitPos = 0;
|
|
25138
25264
|
while (this.type !== types$1.parenR) {
|
|
25139
|
-
|
|
25265
|
+
first2 ? first2 = false : this.expect(types$1.comma);
|
|
25140
25266
|
if (allowTrailingComma && this.afterTrailingComma(types$1.parenR, true)) {
|
|
25141
25267
|
lastIsComma = true;
|
|
25142
25268
|
break;
|
|
@@ -25276,17 +25402,17 @@ pp$5.isAsyncProp = function(prop) {
|
|
|
25276
25402
|
return !prop.computed && prop.key.type === "Identifier" && prop.key.name === "async" && (this.type === types$1.name || this.type === types$1.num || this.type === types$1.string || this.type === types$1.bracketL || this.type.keyword || this.options.ecmaVersion >= 9 && this.type === types$1.star) && !lineBreak.test(this.input.slice(this.lastTokEnd, this.start));
|
|
25277
25403
|
};
|
|
25278
25404
|
pp$5.parseObj = function(isPattern, refDestructuringErrors) {
|
|
25279
|
-
var node2 = this.startNode(),
|
|
25405
|
+
var node2 = this.startNode(), first2 = true, propHash = {};
|
|
25280
25406
|
node2.properties = [];
|
|
25281
25407
|
this.next();
|
|
25282
25408
|
while (!this.eat(types$1.braceR)) {
|
|
25283
|
-
if (!
|
|
25409
|
+
if (!first2) {
|
|
25284
25410
|
this.expect(types$1.comma);
|
|
25285
25411
|
if (this.options.ecmaVersion >= 5 && this.afterTrailingComma(types$1.braceR)) {
|
|
25286
25412
|
break;
|
|
25287
25413
|
}
|
|
25288
25414
|
} else {
|
|
25289
|
-
|
|
25415
|
+
first2 = false;
|
|
25290
25416
|
}
|
|
25291
25417
|
var prop = this.parseProperty(isPattern, refDestructuringErrors);
|
|
25292
25418
|
if (!isPattern) {
|
|
@@ -25506,15 +25632,15 @@ pp$5.checkParams = function(node2, allowDuplicates) {
|
|
|
25506
25632
|
}
|
|
25507
25633
|
};
|
|
25508
25634
|
pp$5.parseExprList = function(close, allowTrailingComma, allowEmpty, refDestructuringErrors) {
|
|
25509
|
-
var elts = [],
|
|
25635
|
+
var elts = [], first2 = true;
|
|
25510
25636
|
while (!this.eat(close)) {
|
|
25511
|
-
if (!
|
|
25637
|
+
if (!first2) {
|
|
25512
25638
|
this.expect(types$1.comma);
|
|
25513
25639
|
if (allowTrailingComma && this.afterTrailingComma(close)) {
|
|
25514
25640
|
break;
|
|
25515
25641
|
}
|
|
25516
25642
|
} else {
|
|
25517
|
-
|
|
25643
|
+
first2 = false;
|
|
25518
25644
|
}
|
|
25519
25645
|
var elt = void 0;
|
|
25520
25646
|
if (allowEmpty && this.type === types$1.comma) {
|
|
@@ -27934,7 +28060,7 @@ pp.readHexChar = function(len) {
|
|
|
27934
28060
|
};
|
|
27935
28061
|
pp.readWord1 = function() {
|
|
27936
28062
|
this.containsEsc = false;
|
|
27937
|
-
var word = "",
|
|
28063
|
+
var word = "", first2 = true, chunkStart = this.pos;
|
|
27938
28064
|
var astral = this.options.ecmaVersion >= 6;
|
|
27939
28065
|
while (this.pos < this.input.length) {
|
|
27940
28066
|
var ch = this.fullCharCodeAtPos();
|
|
@@ -27949,7 +28075,7 @@ pp.readWord1 = function() {
|
|
|
27949
28075
|
}
|
|
27950
28076
|
++this.pos;
|
|
27951
28077
|
var esc = this.readCodePoint();
|
|
27952
|
-
if (!(
|
|
28078
|
+
if (!(first2 ? isIdentifierStart : isIdentifierChar)(esc, astral)) {
|
|
27953
28079
|
this.invalidStringToken(escStart, "Invalid Unicode escape");
|
|
27954
28080
|
}
|
|
27955
28081
|
word += codePointToString(esc);
|
|
@@ -27957,7 +28083,7 @@ pp.readWord1 = function() {
|
|
|
27957
28083
|
} else {
|
|
27958
28084
|
break;
|
|
27959
28085
|
}
|
|
27960
|
-
|
|
28086
|
+
first2 = false;
|
|
27961
28087
|
}
|
|
27962
28088
|
return word + this.input.slice(chunkStart, this.pos);
|
|
27963
28089
|
};
|
|
@@ -34747,7 +34873,7 @@ function formatValue(v, options = {}) {
|
|
|
34747
34873
|
function toHTML(table2, options = {}) {
|
|
34748
34874
|
const names = columns(table2, options.columns);
|
|
34749
34875
|
const { align: align2, format: format2 } = formats(table2, names, options);
|
|
34750
|
-
const style2 = styles$
|
|
34876
|
+
const style2 = styles$1i(options);
|
|
34751
34877
|
const nullish = options.null;
|
|
34752
34878
|
const alignValue = (a2) => a2 === "c" ? "center" : a2 === "r" ? "right" : "left";
|
|
34753
34879
|
const escape2 = (s) => s.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
|
@@ -34777,7 +34903,7 @@ function toHTML(table2, options = {}) {
|
|
|
34777
34903
|
});
|
|
34778
34904
|
return text2 + "</tbody></table>";
|
|
34779
34905
|
}
|
|
34780
|
-
function styles$
|
|
34906
|
+
function styles$1i(options) {
|
|
34781
34907
|
return mapObject(
|
|
34782
34908
|
options.style,
|
|
34783
34909
|
(value2) => isFunction$1(value2) ? value2 : () => value2
|
|
@@ -38217,95 +38343,6 @@ const toRelativePath = (absolutePath, basePath) => {
|
|
|
38217
38343
|
}
|
|
38218
38344
|
return normalizedPath;
|
|
38219
38345
|
};
|
|
38220
|
-
const loggingIcons = {
|
|
38221
|
-
notset: "bi bi-card-text",
|
|
38222
|
-
debug: "bi bi-bug",
|
|
38223
|
-
http: "bi bi-download",
|
|
38224
|
-
info: "bi bi-info-square",
|
|
38225
|
-
warning: "bi bi-exclamation-triangle",
|
|
38226
|
-
error: "bi bi-x-circle",
|
|
38227
|
-
critical: "bi bi-fire"
|
|
38228
|
-
};
|
|
38229
|
-
const iconForMimeType = (mimeType) => {
|
|
38230
|
-
if (mimeType === "application/pdf") {
|
|
38231
|
-
return "bi bi-file-pdf";
|
|
38232
|
-
} else if (mimeType.startsWith("image/")) {
|
|
38233
|
-
return "bi bi-file-image";
|
|
38234
|
-
} else {
|
|
38235
|
-
return "bi bi-file-earmark";
|
|
38236
|
-
}
|
|
38237
|
-
};
|
|
38238
|
-
const ApplicationIcons = {
|
|
38239
|
-
// bi bi-x-diamond
|
|
38240
|
-
approve: "bi bi-shield",
|
|
38241
|
-
approvals: {
|
|
38242
|
-
approve: "bi bi-shield-check",
|
|
38243
|
-
reject: "bi bi-shield-x",
|
|
38244
|
-
terminate: "bi bi-shield-exclamation",
|
|
38245
|
-
escalate: "bi bi-box-arrow-up",
|
|
38246
|
-
modify: "bi bi-pencil-square"
|
|
38247
|
-
},
|
|
38248
|
-
arrows: {
|
|
38249
|
-
right: "bi bi-arrow-right"
|
|
38250
|
-
},
|
|
38251
|
-
checkbox: {
|
|
38252
|
-
checked: "bi bi-check-circle",
|
|
38253
|
-
unchecked: "bi bi-circle"
|
|
38254
|
-
},
|
|
38255
|
-
chevron: {
|
|
38256
|
-
right: "bi bi-chevron-right",
|
|
38257
|
-
down: "bi bi-chevron-down"
|
|
38258
|
-
},
|
|
38259
|
-
"clear-text": "bi bi-x-circle-fill",
|
|
38260
|
-
close: "bi bi-x",
|
|
38261
|
-
confirm: "bi bi-check",
|
|
38262
|
-
copy: "bi bi-copy",
|
|
38263
|
-
edit: "bi bi-pencil-square",
|
|
38264
|
-
error: "bi bi-exclamation-circle-fill",
|
|
38265
|
-
file: "bi bi-file-code",
|
|
38266
|
-
folder: "bi bi-folder",
|
|
38267
|
-
info: "bi bi-info-circle",
|
|
38268
|
-
input: "bi bi-terminal",
|
|
38269
|
-
limits: {
|
|
38270
|
-
messages: "bi bi-chat-right-text",
|
|
38271
|
-
custom: "bi bi-exclamation-triangle",
|
|
38272
|
-
operator: "bi bi-person-workspace",
|
|
38273
|
-
tokens: "bi bi-list",
|
|
38274
|
-
time: "bi bi-clock",
|
|
38275
|
-
execution: "bi bi-stopwatch"
|
|
38276
|
-
},
|
|
38277
|
-
link: "bi bi-link-45deg",
|
|
38278
|
-
logging: loggingIcons,
|
|
38279
|
-
metadata: "bi bi-table",
|
|
38280
|
-
model: "bi bi-grid-3x3-gap",
|
|
38281
|
-
navbar: {
|
|
38282
|
-
home: "ii inspect-icon-home",
|
|
38283
|
-
back: "ii inspect-icon-back",
|
|
38284
|
-
forward: "ii inspect-icon-forward"
|
|
38285
|
-
},
|
|
38286
|
-
next: "bi bi-chevron-right",
|
|
38287
|
-
noSamples: "bi bi-ban",
|
|
38288
|
-
pendingTask: "bi bi-clock-fill",
|
|
38289
|
-
play: "bi bi-play-fill",
|
|
38290
|
-
previous: "bi bi-chevron-left",
|
|
38291
|
-
refuse: "bi bi-ban",
|
|
38292
|
-
role: {
|
|
38293
|
-
tool: "bi bi-tools"
|
|
38294
|
-
},
|
|
38295
|
-
sample: "bi bi-database",
|
|
38296
|
-
samples: "bi bi-file-spreadsheet",
|
|
38297
|
-
sandbox: "bi bi-box-seam",
|
|
38298
|
-
scorer: "bi bi-calculator",
|
|
38299
|
-
search: "bi bi-search",
|
|
38300
|
-
solvers: {
|
|
38301
|
-
use_tools: "bi bi-tools"
|
|
38302
|
-
},
|
|
38303
|
-
success: "bi bi-check-circle-fill",
|
|
38304
|
-
tree: {
|
|
38305
|
-
open: "bi bi-caret-down-fill",
|
|
38306
|
-
closed: "bi bi-caret-right-fill"
|
|
38307
|
-
}
|
|
38308
|
-
};
|
|
38309
38346
|
const header$2 = "_header_oy6cz_1";
|
|
38310
38347
|
const bordered$1 = "_bordered_oy6cz_11";
|
|
38311
38348
|
const breadcrumbs = "_breadcrumbs_oy6cz_15";
|
|
@@ -38315,7 +38352,7 @@ const right$2 = "_right_oy6cz_41";
|
|
|
38315
38352
|
const toolbarButton = "_toolbarButton_oy6cz_50";
|
|
38316
38353
|
const pathContainer = "_pathContainer_oy6cz_58";
|
|
38317
38354
|
const hasChildren = "_hasChildren_oy6cz_62";
|
|
38318
|
-
const styles$
|
|
38355
|
+
const styles$1h = {
|
|
38319
38356
|
header: header$2,
|
|
38320
38357
|
bordered: bordered$1,
|
|
38321
38358
|
breadcrumbs,
|
|
@@ -38453,38 +38490,38 @@ const Navbar = ({ bordered: bordered2 = true, children: children2 }) => {
|
|
|
38453
38490
|
className: clsx(
|
|
38454
38491
|
"text-size-smaller",
|
|
38455
38492
|
"header-nav",
|
|
38456
|
-
styles$
|
|
38457
|
-
bordered2 ? styles$
|
|
38493
|
+
styles$1h.header,
|
|
38494
|
+
bordered2 ? styles$1h.bordered : void 0
|
|
38458
38495
|
),
|
|
38459
38496
|
"aria-label": "breadcrumb",
|
|
38460
38497
|
"data-unsearchable": true,
|
|
38461
38498
|
children: [
|
|
38462
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$
|
|
38463
|
-
backUrl && /* @__PURE__ */ jsxRuntimeExports.jsx(Link, { to: backUrl, className: clsx(styles$
|
|
38499
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$1h.left), children: [
|
|
38500
|
+
backUrl && /* @__PURE__ */ jsxRuntimeExports.jsx(Link, { to: backUrl, className: clsx(styles$1h.toolbarButton), children: /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: clsx(ApplicationIcons.navbar.back) }) }),
|
|
38464
38501
|
!singleFileMode && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
38465
38502
|
Link,
|
|
38466
38503
|
{
|
|
38467
38504
|
to: scansRoute(),
|
|
38468
|
-
className: clsx(styles$
|
|
38505
|
+
className: clsx(styles$1h.toolbarButton),
|
|
38469
38506
|
onClick: () => {
|
|
38470
38507
|
},
|
|
38471
38508
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: clsx(ApplicationIcons.navbar.home) })
|
|
38472
38509
|
}
|
|
38473
38510
|
),
|
|
38474
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$
|
|
38511
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$1h.pathContainer), ref: pathContainerRef, children: resultsDir ? /* @__PURE__ */ jsxRuntimeExports.jsx("ol", { className: clsx("breadcrumb", styles$1h.breadcrumbs), children: visibleSegments.map((segment2, index) => {
|
|
38475
38512
|
const isLast = index === visibleSegments.length - 1;
|
|
38476
38513
|
const shouldShowEllipsis = showEllipsis && index === 1 && visibleSegments.length >= 2;
|
|
38477
38514
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Fragment, { children: [
|
|
38478
|
-
shouldShowEllipsis && /* @__PURE__ */ jsxRuntimeExports.jsx("li", { className: clsx("breadcrumb-item", styles$
|
|
38515
|
+
shouldShowEllipsis && /* @__PURE__ */ jsxRuntimeExports.jsx("li", { className: clsx("breadcrumb-item", styles$1h.ellipsis), children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: "..." }) }),
|
|
38479
38516
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
38480
38517
|
"li",
|
|
38481
38518
|
{
|
|
38482
38519
|
className: clsx(
|
|
38483
|
-
styles$
|
|
38520
|
+
styles$1h.pathLink,
|
|
38484
38521
|
"breadcrumb-item",
|
|
38485
38522
|
isLast && !singleFileMode ? "active" : void 0
|
|
38486
38523
|
),
|
|
38487
|
-
children: segment2.url && !singleFileMode && !isLast ? /* @__PURE__ */ jsxRuntimeExports.jsx(Link, { to: segment2.url, children: segment2.text }) : /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: clsx(styles$
|
|
38524
|
+
children: segment2.url && !singleFileMode && !isLast ? /* @__PURE__ */ jsxRuntimeExports.jsx(Link, { to: segment2.url, children: segment2.text }) : /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: clsx(styles$1h.pathSegment), children: segment2.text })
|
|
38488
38525
|
}
|
|
38489
38526
|
)
|
|
38490
38527
|
] }, index);
|
|
@@ -38494,8 +38531,8 @@ const Navbar = ({ bordered: bordered2 = true, children: children2 }) => {
|
|
|
38494
38531
|
"div",
|
|
38495
38532
|
{
|
|
38496
38533
|
className: clsx(
|
|
38497
|
-
styles$
|
|
38498
|
-
children2 ? styles$
|
|
38534
|
+
styles$1h.right,
|
|
38535
|
+
children2 ? styles$1h.hasChildren : void 0
|
|
38499
38536
|
),
|
|
38500
38537
|
children: children2
|
|
38501
38538
|
}
|
|
@@ -39969,19 +40006,19 @@ const Card = ({ id: id2, children: children2, className: className2 }) => {
|
|
|
39969
40006
|
};
|
|
39970
40007
|
const container$g = "_container_1cz5u_1";
|
|
39971
40008
|
const traceback = "_traceback_1cz5u_5";
|
|
39972
|
-
const styles$
|
|
40009
|
+
const styles$1g = {
|
|
39973
40010
|
container: container$g,
|
|
39974
40011
|
traceback
|
|
39975
40012
|
};
|
|
39976
40013
|
const ErrorPanel$1 = ({ error: error2, traceback: traceback2 }) => {
|
|
39977
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Card, { className: clsx(styles$
|
|
40014
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Card, { className: clsx(styles$1g.container), children: [
|
|
39978
40015
|
/* @__PURE__ */ jsxRuntimeExports.jsx(CardHeader, { type: "modern", children: "Error" }),
|
|
39979
40016
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(CardBody, { children: [
|
|
39980
40017
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-smaller"), children: error2 }),
|
|
39981
40018
|
traceback2 && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
39982
40019
|
ANSIDisplay,
|
|
39983
40020
|
{
|
|
39984
|
-
className: clsx(styles$
|
|
40021
|
+
className: clsx(styles$1g.traceback, "text-size-smaller"),
|
|
39985
40022
|
output: traceback2
|
|
39986
40023
|
}
|
|
39987
40024
|
)
|
|
@@ -39992,7 +40029,7 @@ const labeledValue = "_labeledValue_6obbb_1";
|
|
|
39992
40029
|
const row$3 = "_row_6obbb_6";
|
|
39993
40030
|
const column = "_column_6obbb_10";
|
|
39994
40031
|
const labeledValueLabel = "_labeledValueLabel_6obbb_14";
|
|
39995
|
-
const styles$
|
|
40032
|
+
const styles$1f = {
|
|
39996
40033
|
labeledValue,
|
|
39997
40034
|
row: row$3,
|
|
39998
40035
|
column,
|
|
@@ -40010,8 +40047,8 @@ const LabeledValue = ({
|
|
|
40010
40047
|
"div",
|
|
40011
40048
|
{
|
|
40012
40049
|
className: clsx(
|
|
40013
|
-
styles$
|
|
40014
|
-
layout === "column" ? styles$
|
|
40050
|
+
styles$1f.labeledValue,
|
|
40051
|
+
layout === "column" ? styles$1f.column : styles$1f.row,
|
|
40015
40052
|
className2
|
|
40016
40053
|
),
|
|
40017
40054
|
style: {
|
|
@@ -40022,14 +40059,14 @@ const LabeledValue = ({
|
|
|
40022
40059
|
"div",
|
|
40023
40060
|
{
|
|
40024
40061
|
className: clsx(
|
|
40025
|
-
styles$
|
|
40062
|
+
styles$1f.labeledValueLabel,
|
|
40026
40063
|
"text-style-label",
|
|
40027
40064
|
"text-style-secondary"
|
|
40028
40065
|
),
|
|
40029
40066
|
children: label2
|
|
40030
40067
|
}
|
|
40031
40068
|
),
|
|
40032
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$
|
|
40069
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$1f.labeledValueValue), style: { ...valueStyle }, children: children2 })
|
|
40033
40070
|
]
|
|
40034
40071
|
}
|
|
40035
40072
|
);
|
|
@@ -43256,7 +43293,7 @@ const moreToggleButton = "_moreToggleButton_1ka1g_36";
|
|
|
43256
43293
|
const separator$4 = "_separator_1ka1g_44";
|
|
43257
43294
|
const inlineRight = "_inlineRight_1ka1g_50";
|
|
43258
43295
|
const blockLeft = "_blockLeft_1ka1g_56";
|
|
43259
|
-
const styles$
|
|
43296
|
+
const styles$1e = {
|
|
43260
43297
|
expandablePanel,
|
|
43261
43298
|
expandableBordered,
|
|
43262
43299
|
expandableCollapsed,
|
|
@@ -43308,10 +43345,10 @@ const ExpandablePanel = memo$1(
|
|
|
43308
43345
|
style: baseStyles,
|
|
43309
43346
|
ref: contentRef,
|
|
43310
43347
|
className: clsx(
|
|
43311
|
-
styles$
|
|
43312
|
-
collapsed ? styles$
|
|
43313
|
-
border ? styles$
|
|
43314
|
-
showToggle ? styles$
|
|
43348
|
+
styles$1e.expandablePanel,
|
|
43349
|
+
collapsed ? styles$1e.expandableCollapsed : void 0,
|
|
43350
|
+
border ? styles$1e.expandableBordered : void 0,
|
|
43351
|
+
showToggle ? styles$1e.padBottom : void 0,
|
|
43315
43352
|
className2
|
|
43316
43353
|
),
|
|
43317
43354
|
children: [
|
|
@@ -43337,7 +43374,7 @@ const ExpandablePanel = memo$1(
|
|
|
43337
43374
|
position: "block-left"
|
|
43338
43375
|
}
|
|
43339
43376
|
) }),
|
|
43340
|
-
showToggle && layout === "inline-right" && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$
|
|
43377
|
+
showToggle && layout === "inline-right" && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$1e.separator) })
|
|
43341
43378
|
] });
|
|
43342
43379
|
}
|
|
43343
43380
|
);
|
|
@@ -43356,15 +43393,15 @@ const MoreToggle = ({
|
|
|
43356
43393
|
"div",
|
|
43357
43394
|
{
|
|
43358
43395
|
className: clsx(
|
|
43359
|
-
styles$
|
|
43360
|
-
border ? styles$
|
|
43361
|
-
position === "inline-right" ? styles$
|
|
43396
|
+
styles$1e.moreToggle,
|
|
43397
|
+
border ? styles$1e.bordered : void 0,
|
|
43398
|
+
position === "inline-right" ? styles$1e.inlineRight : styles$1e.blockLeft
|
|
43362
43399
|
),
|
|
43363
43400
|
style: style2,
|
|
43364
43401
|
children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
43365
43402
|
"button",
|
|
43366
43403
|
{
|
|
43367
|
-
className: clsx(styles$
|
|
43404
|
+
className: clsx(styles$1e.moreToggleButton, "text-size-smallest"),
|
|
43368
43405
|
onClick: handleClick,
|
|
43369
43406
|
children: [
|
|
43370
43407
|
text2,
|
|
@@ -43461,7 +43498,7 @@ const keyPairBordered = "_keyPairBordered_qjlxf_9";
|
|
|
43461
43498
|
const key = "_key_qjlxf_1";
|
|
43462
43499
|
const pre = "_pre_qjlxf_19";
|
|
43463
43500
|
const treeIcon = "_treeIcon_qjlxf_23";
|
|
43464
|
-
const styles$
|
|
43501
|
+
const styles$1d = {
|
|
43465
43502
|
keyPairContainer,
|
|
43466
43503
|
keyPairBordered,
|
|
43467
43504
|
key,
|
|
@@ -43472,7 +43509,7 @@ const visible = "_visible_tm52u_1";
|
|
|
43472
43509
|
const hidden$2 = "_hidden_tm52u_5";
|
|
43473
43510
|
const pills = "_pills_tm52u_9";
|
|
43474
43511
|
const pill = "_pill_tm52u_9";
|
|
43475
|
-
const styles$
|
|
43512
|
+
const styles$1c = {
|
|
43476
43513
|
visible,
|
|
43477
43514
|
hidden: hidden$2,
|
|
43478
43515
|
pills,
|
|
@@ -43502,7 +43539,7 @@ const NavPills = ({ id: id2, children: children2 }) => {
|
|
|
43502
43539
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
43503
43540
|
"div",
|
|
43504
43541
|
{
|
|
43505
|
-
className: child["props"]?.title === activeItem ? styles$
|
|
43542
|
+
className: child["props"]?.title === activeItem ? styles$1c.visible : styles$1c.hidden,
|
|
43506
43543
|
children: child
|
|
43507
43544
|
},
|
|
43508
43545
|
`nav-pill-container-${idx}`
|
|
@@ -43512,7 +43549,7 @@ const NavPills = ({ id: id2, children: children2 }) => {
|
|
|
43512
43549
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
43513
43550
|
"ul",
|
|
43514
43551
|
{
|
|
43515
|
-
className: clsx("nav", "nav-pills", styles$
|
|
43552
|
+
className: clsx("nav", "nav-pills", styles$1c.pills),
|
|
43516
43553
|
role: "tablist",
|
|
43517
43554
|
"aria-orientation": "horizontal",
|
|
43518
43555
|
children: navPills
|
|
@@ -43548,7 +43585,7 @@ const NavPill = ({
|
|
|
43548
43585
|
"nav-link",
|
|
43549
43586
|
"text-style-label",
|
|
43550
43587
|
active ? "active " : "",
|
|
43551
|
-
styles$
|
|
43588
|
+
styles$1c.pill
|
|
43552
43589
|
),
|
|
43553
43590
|
"data-target": title2,
|
|
43554
43591
|
onClick: handleClick,
|
|
@@ -43564,7 +43601,7 @@ const Buckets = {
|
|
|
43564
43601
|
final: 1e3
|
|
43565
43602
|
};
|
|
43566
43603
|
const copyButton = "_copyButton_1goi8_1";
|
|
43567
|
-
const styles$
|
|
43604
|
+
const styles$1b = {
|
|
43568
43605
|
copyButton
|
|
43569
43606
|
};
|
|
43570
43607
|
const CopyButton = ({
|
|
@@ -43594,7 +43631,7 @@ const CopyButton = ({
|
|
|
43594
43631
|
"button",
|
|
43595
43632
|
{
|
|
43596
43633
|
type: "button",
|
|
43597
|
-
className: clsx("copy-button", styles$
|
|
43634
|
+
className: clsx("copy-button", styles$1b.copyButton, className2),
|
|
43598
43635
|
onClick: () => {
|
|
43599
43636
|
void handleClick();
|
|
43600
43637
|
},
|
|
@@ -43619,7 +43656,7 @@ const indented = "_indented_b8oe1_29";
|
|
|
43619
43656
|
const copyLink = "_copyLink_b8oe1_33";
|
|
43620
43657
|
const metadataLabel = "_metadataLabel_b8oe1_43";
|
|
43621
43658
|
const hover$1 = "_hover_b8oe1_47";
|
|
43622
|
-
const styles$
|
|
43659
|
+
const styles$1a = {
|
|
43623
43660
|
message,
|
|
43624
43661
|
systemRole,
|
|
43625
43662
|
messageGrid,
|
|
@@ -45499,7 +45536,7 @@ function smartquotes(state) {
|
|
|
45499
45536
|
}
|
|
45500
45537
|
}
|
|
45501
45538
|
function text_join(state) {
|
|
45502
|
-
let curr,
|
|
45539
|
+
let curr, last2;
|
|
45503
45540
|
const blockTokens = state.tokens;
|
|
45504
45541
|
const l2 = blockTokens.length;
|
|
45505
45542
|
for (let j2 = 0; j2 < l2; j2++) {
|
|
@@ -45511,18 +45548,18 @@ function text_join(state) {
|
|
|
45511
45548
|
tokens[curr].type = "text";
|
|
45512
45549
|
}
|
|
45513
45550
|
}
|
|
45514
|
-
for (curr =
|
|
45551
|
+
for (curr = last2 = 0; curr < max2; curr++) {
|
|
45515
45552
|
if (tokens[curr].type === "text" && curr + 1 < max2 && tokens[curr + 1].type === "text") {
|
|
45516
45553
|
tokens[curr + 1].content = tokens[curr].content + tokens[curr + 1].content;
|
|
45517
45554
|
} else {
|
|
45518
|
-
if (curr !==
|
|
45519
|
-
tokens[
|
|
45555
|
+
if (curr !== last2) {
|
|
45556
|
+
tokens[last2] = tokens[curr];
|
|
45520
45557
|
}
|
|
45521
|
-
|
|
45558
|
+
last2++;
|
|
45522
45559
|
}
|
|
45523
45560
|
}
|
|
45524
|
-
if (curr !==
|
|
45525
|
-
tokens.length =
|
|
45561
|
+
if (curr !== last2) {
|
|
45562
|
+
tokens.length = last2;
|
|
45526
45563
|
}
|
|
45527
45564
|
}
|
|
45528
45565
|
}
|
|
@@ -45673,32 +45710,32 @@ StateBlock.prototype.getLines = function getLines(begin, end2, indent, keepLastL
|
|
|
45673
45710
|
for (let i2 = 0, line2 = begin; line2 < end2; line2++, i2++) {
|
|
45674
45711
|
let lineIndent = 0;
|
|
45675
45712
|
const lineStart = this.bMarks[line2];
|
|
45676
|
-
let
|
|
45677
|
-
let
|
|
45713
|
+
let first2 = lineStart;
|
|
45714
|
+
let last2;
|
|
45678
45715
|
if (line2 + 1 < end2 || keepLastLF) {
|
|
45679
|
-
|
|
45716
|
+
last2 = this.eMarks[line2] + 1;
|
|
45680
45717
|
} else {
|
|
45681
|
-
|
|
45718
|
+
last2 = this.eMarks[line2];
|
|
45682
45719
|
}
|
|
45683
|
-
while (
|
|
45684
|
-
const ch = this.src.charCodeAt(
|
|
45720
|
+
while (first2 < last2 && lineIndent < indent) {
|
|
45721
|
+
const ch = this.src.charCodeAt(first2);
|
|
45685
45722
|
if (isSpace(ch)) {
|
|
45686
45723
|
if (ch === 9) {
|
|
45687
45724
|
lineIndent += 4 - (lineIndent + this.bsCount[line2]) % 4;
|
|
45688
45725
|
} else {
|
|
45689
45726
|
lineIndent++;
|
|
45690
45727
|
}
|
|
45691
|
-
} else if (
|
|
45728
|
+
} else if (first2 - lineStart < this.tShift[line2]) {
|
|
45692
45729
|
lineIndent++;
|
|
45693
45730
|
} else {
|
|
45694
45731
|
break;
|
|
45695
45732
|
}
|
|
45696
|
-
|
|
45733
|
+
first2++;
|
|
45697
45734
|
}
|
|
45698
45735
|
if (lineIndent > indent) {
|
|
45699
|
-
queue[i2] = new Array(lineIndent - indent + 1).join(" ") + this.src.slice(
|
|
45736
|
+
queue[i2] = new Array(lineIndent - indent + 1).join(" ") + this.src.slice(first2, last2);
|
|
45700
45737
|
} else {
|
|
45701
|
-
queue[i2] = this.src.slice(
|
|
45738
|
+
queue[i2] = this.src.slice(first2, last2);
|
|
45702
45739
|
}
|
|
45703
45740
|
}
|
|
45704
45741
|
return queue.join("");
|
|
@@ -45897,7 +45934,7 @@ function code$2(state, startLine, endLine) {
|
|
|
45897
45934
|
return false;
|
|
45898
45935
|
}
|
|
45899
45936
|
let nextLine = startLine + 1;
|
|
45900
|
-
let
|
|
45937
|
+
let last2 = nextLine;
|
|
45901
45938
|
while (nextLine < endLine) {
|
|
45902
45939
|
if (state.isEmpty(nextLine)) {
|
|
45903
45940
|
nextLine++;
|
|
@@ -45905,14 +45942,14 @@ function code$2(state, startLine, endLine) {
|
|
|
45905
45942
|
}
|
|
45906
45943
|
if (state.sCount[nextLine] - state.blkIndent >= 4) {
|
|
45907
45944
|
nextLine++;
|
|
45908
|
-
|
|
45945
|
+
last2 = nextLine;
|
|
45909
45946
|
continue;
|
|
45910
45947
|
}
|
|
45911
45948
|
break;
|
|
45912
45949
|
}
|
|
45913
|
-
state.line =
|
|
45950
|
+
state.line = last2;
|
|
45914
45951
|
const token2 = state.push("code_block", "code", 0);
|
|
45915
|
-
token2.content = state.getLines(startLine,
|
|
45952
|
+
token2.content = state.getLines(startLine, last2, 4 + state.blkIndent, false) + "\n";
|
|
45916
45953
|
token2.map = [startLine, state.line];
|
|
45917
45954
|
return true;
|
|
45918
45955
|
}
|
|
@@ -47732,25 +47769,25 @@ function link_pairs(state) {
|
|
|
47732
47769
|
}
|
|
47733
47770
|
}
|
|
47734
47771
|
function fragments_join(state) {
|
|
47735
|
-
let curr,
|
|
47772
|
+
let curr, last2;
|
|
47736
47773
|
let level = 0;
|
|
47737
47774
|
const tokens = state.tokens;
|
|
47738
47775
|
const max2 = state.tokens.length;
|
|
47739
|
-
for (curr =
|
|
47776
|
+
for (curr = last2 = 0; curr < max2; curr++) {
|
|
47740
47777
|
if (tokens[curr].nesting < 0) level--;
|
|
47741
47778
|
tokens[curr].level = level;
|
|
47742
47779
|
if (tokens[curr].nesting > 0) level++;
|
|
47743
47780
|
if (tokens[curr].type === "text" && curr + 1 < max2 && tokens[curr + 1].type === "text") {
|
|
47744
47781
|
tokens[curr + 1].content = tokens[curr].content + tokens[curr + 1].content;
|
|
47745
47782
|
} else {
|
|
47746
|
-
if (curr !==
|
|
47747
|
-
tokens[
|
|
47783
|
+
if (curr !== last2) {
|
|
47784
|
+
tokens[last2] = tokens[curr];
|
|
47748
47785
|
}
|
|
47749
|
-
|
|
47786
|
+
last2++;
|
|
47750
47787
|
}
|
|
47751
47788
|
}
|
|
47752
|
-
if (curr !==
|
|
47753
|
-
tokens.length =
|
|
47789
|
+
if (curr !== last2) {
|
|
47790
|
+
tokens.length = last2;
|
|
47754
47791
|
}
|
|
47755
47792
|
}
|
|
47756
47793
|
const _rules = [
|
|
@@ -49103,9 +49140,9 @@ function unescapeCodeHtmlEntities(str) {
|
|
|
49103
49140
|
}
|
|
49104
49141
|
);
|
|
49105
49142
|
}
|
|
49106
|
-
const content
|
|
49107
|
-
const styles$
|
|
49108
|
-
content
|
|
49143
|
+
const content = "_content_13ihw_1";
|
|
49144
|
+
const styles$19 = {
|
|
49145
|
+
content
|
|
49109
49146
|
};
|
|
49110
49147
|
forwardRef(
|
|
49111
49148
|
({ text: text2, style: style2, className: className2 }, ref2) => {
|
|
@@ -49113,7 +49150,7 @@ forwardRef(
|
|
|
49113
49150
|
"pre",
|
|
49114
49151
|
{
|
|
49115
49152
|
ref: ref2,
|
|
49116
|
-
className: clsx(styles$
|
|
49153
|
+
className: clsx(styles$19.content, "text-size-smaller", className2),
|
|
49117
49154
|
style: style2,
|
|
49118
49155
|
children: text2
|
|
49119
49156
|
}
|
|
@@ -49174,23 +49211,23 @@ const parsedJson = (text2) => {
|
|
|
49174
49211
|
return void 0;
|
|
49175
49212
|
};
|
|
49176
49213
|
const contentData = "_contentData_1sd1z_1";
|
|
49177
|
-
const styles$
|
|
49214
|
+
const styles$18 = {
|
|
49178
49215
|
contentData
|
|
49179
49216
|
};
|
|
49180
49217
|
const webSearch = "_webSearch_1376z_1";
|
|
49181
49218
|
const query$1 = "_query_1376z_8";
|
|
49182
|
-
const styles$
|
|
49219
|
+
const styles$17 = {
|
|
49183
49220
|
webSearch,
|
|
49184
49221
|
query: query$1
|
|
49185
49222
|
};
|
|
49186
49223
|
const WebSearch = ({ query: query2 }) => {
|
|
49187
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$
|
|
49224
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$17.webSearch, "text-size-smaller"), children: [
|
|
49188
49225
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: clsx("text-style-label", "text-style-secondary"), children: "Web Search:" }),
|
|
49189
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: clsx(styles$
|
|
49226
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: clsx(styles$17.query, "text-size-smallest"), children: query2 })
|
|
49190
49227
|
] });
|
|
49191
49228
|
};
|
|
49192
49229
|
const result$1 = "_result_1mixg_12";
|
|
49193
|
-
const styles$
|
|
49230
|
+
const styles$16 = {
|
|
49194
49231
|
result: result$1
|
|
49195
49232
|
};
|
|
49196
49233
|
const WebSearchResults = ({
|
|
@@ -49201,7 +49238,7 @@ const WebSearchResults = ({
|
|
|
49201
49238
|
"div",
|
|
49202
49239
|
{
|
|
49203
49240
|
className: clsx(
|
|
49204
|
-
styles$
|
|
49241
|
+
styles$16.label,
|
|
49205
49242
|
"text-style-label",
|
|
49206
49243
|
"text-style-secondary",
|
|
49207
49244
|
"text-size-smaller"
|
|
@@ -49209,10 +49246,10 @@ const WebSearchResults = ({
|
|
|
49209
49246
|
children: "Results"
|
|
49210
49247
|
}
|
|
49211
49248
|
),
|
|
49212
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("ol", { className: clsx(styles$
|
|
49249
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("ol", { className: clsx(styles$16.results, "text-size-smaller"), children: results.map((result2, index) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
49213
49250
|
"li",
|
|
49214
49251
|
{
|
|
49215
|
-
className: clsx(styles$
|
|
49252
|
+
className: clsx(styles$16.result, "text-style-secondary"),
|
|
49216
49253
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
49217
49254
|
"a",
|
|
49218
49255
|
{
|
|
@@ -49236,17 +49273,17 @@ const ContentDataView = ({ id: id2, contentData: contentData2 }) => {
|
|
|
49236
49273
|
);
|
|
49237
49274
|
if (!renderer) {
|
|
49238
49275
|
const { encrypted_content, ...record } = renderableData;
|
|
49239
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$
|
|
49276
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$18.contentData), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
49240
49277
|
RecordTree,
|
|
49241
49278
|
{
|
|
49242
49279
|
id: `${id2}-tree`,
|
|
49243
49280
|
record,
|
|
49244
|
-
className: clsx(styles$
|
|
49281
|
+
className: clsx(styles$18.data),
|
|
49245
49282
|
defaultExpandLevel: 0
|
|
49246
49283
|
}
|
|
49247
49284
|
) });
|
|
49248
49285
|
}
|
|
49249
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$
|
|
49286
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$18.contentData), children: renderer.render(renderableData) });
|
|
49250
49287
|
};
|
|
49251
49288
|
const webSearchServerToolRenderer = {
|
|
49252
49289
|
name: "WebSearch",
|
|
@@ -49288,7 +49325,7 @@ const serverToolRenderer = {
|
|
|
49288
49325
|
{
|
|
49289
49326
|
id: data2.name || "server-tool",
|
|
49290
49327
|
record: data2,
|
|
49291
|
-
className: clsx(styles$
|
|
49328
|
+
className: clsx(styles$18.data)
|
|
49292
49329
|
}
|
|
49293
49330
|
)
|
|
49294
49331
|
] });
|
|
@@ -49306,7 +49343,7 @@ const documentFrame = "_documentFrame_1576h_1";
|
|
|
49306
49343
|
const documentFrameTitle = "_documentFrameTitle_1576h_9";
|
|
49307
49344
|
const downloadLink = "_downloadLink_1576h_16";
|
|
49308
49345
|
const imageDocument = "_imageDocument_1576h_21";
|
|
49309
|
-
const styles$
|
|
49346
|
+
const styles$15 = {
|
|
49310
49347
|
documentFrame,
|
|
49311
49348
|
documentFrameTitle,
|
|
49312
49349
|
downloadLink,
|
|
@@ -49321,7 +49358,7 @@ const ContentDocumentView = ({
|
|
|
49321
49358
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(ContentDocumentFrame, { document: document2, downloadable: canDownloadFiles, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
49322
49359
|
"img",
|
|
49323
49360
|
{
|
|
49324
|
-
className: clsx(styles$
|
|
49361
|
+
className: clsx(styles$15.imageDocument),
|
|
49325
49362
|
src: document2.document,
|
|
49326
49363
|
alt: document2.filename,
|
|
49327
49364
|
id: id2
|
|
@@ -49346,17 +49383,17 @@ const ContentDocumentFrame = ({
|
|
|
49346
49383
|
"div",
|
|
49347
49384
|
{
|
|
49348
49385
|
className: clsx(
|
|
49349
|
-
styles$
|
|
49386
|
+
styles$15.documentFrame,
|
|
49350
49387
|
"text-size-small",
|
|
49351
49388
|
"text-style-secondary"
|
|
49352
49389
|
),
|
|
49353
49390
|
children: [
|
|
49354
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$
|
|
49391
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$15.documentFrameTitle), children: [
|
|
49355
49392
|
/* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: clsx(iconForMimeType(document2.mime_type)) }),
|
|
49356
49393
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: downloadable ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
49357
49394
|
"a",
|
|
49358
49395
|
{
|
|
49359
|
-
className: clsx(styles$
|
|
49396
|
+
className: clsx(styles$15.downloadLink),
|
|
49360
49397
|
onClick: () => {
|
|
49361
49398
|
},
|
|
49362
49399
|
children: document2.filename
|
|
@@ -49369,7 +49406,7 @@ const ContentDocumentFrame = ({
|
|
|
49369
49406
|
);
|
|
49370
49407
|
};
|
|
49371
49408
|
const jsonMessage = "_jsonMessage_oxf8d_1";
|
|
49372
|
-
const styles$
|
|
49409
|
+
const styles$14 = {
|
|
49373
49410
|
jsonMessage
|
|
49374
49411
|
};
|
|
49375
49412
|
const JsonMessageContent = ({
|
|
@@ -49382,7 +49419,7 @@ const JsonMessageContent = ({
|
|
|
49382
49419
|
{
|
|
49383
49420
|
id: id2,
|
|
49384
49421
|
record: json2,
|
|
49385
|
-
className: clsx(styles$
|
|
49422
|
+
className: clsx(styles$14.jsonMessage, className2),
|
|
49386
49423
|
useBorders: false
|
|
49387
49424
|
}
|
|
49388
49425
|
);
|
|
@@ -49394,7 +49431,7 @@ const decodeHtmlEntities = (text2) => {
|
|
|
49394
49431
|
};
|
|
49395
49432
|
const citations = "_citations_1ggvf_1";
|
|
49396
49433
|
const citationLink = "_citationLink_1ggvf_9";
|
|
49397
|
-
const styles$
|
|
49434
|
+
const styles$13 = {
|
|
49398
49435
|
citations,
|
|
49399
49436
|
citationLink
|
|
49400
49437
|
};
|
|
@@ -49402,7 +49439,7 @@ const MessageCitations = ({ citations: citations2 }) => {
|
|
|
49402
49439
|
if (citations2.length === 0) {
|
|
49403
49440
|
return void 0;
|
|
49404
49441
|
}
|
|
49405
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$
|
|
49442
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$13.citations, "text-size-smallest"), children: citations2.map((citation, index) => /* @__PURE__ */ jsxRuntimeExports.jsxs(Fragment, { children: [
|
|
49406
49443
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: index + 1 }),
|
|
49407
49444
|
/* @__PURE__ */ jsxRuntimeExports.jsx(MessageCitation, { citation })
|
|
49408
49445
|
] }, index)) });
|
|
@@ -49422,7 +49459,7 @@ const UrlCitation = ({
|
|
|
49422
49459
|
href: citation.url,
|
|
49423
49460
|
target: "_blank",
|
|
49424
49461
|
rel: "noopener noreferrer",
|
|
49425
|
-
className: clsx(styles$
|
|
49462
|
+
className: clsx(styles$13.citationLink),
|
|
49426
49463
|
title: citation.cited_text && typeof citation.cited_text === "string" ? `${citation.cited_text}
|
|
49427
49464
|
${citation.url}` : citation.url,
|
|
49428
49465
|
children: children2
|
|
@@ -49431,7 +49468,7 @@ ${citation.url}` : citation.url,
|
|
|
49431
49468
|
const OtherCitation = ({ children: children2 }) => /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: children2 });
|
|
49432
49469
|
const contentImage = "_contentImage_8rgix_1";
|
|
49433
49470
|
const reasoning = "_reasoning_8rgix_6";
|
|
49434
|
-
const styles$
|
|
49471
|
+
const styles$12 = {
|
|
49435
49472
|
contentImage,
|
|
49436
49473
|
reasoning
|
|
49437
49474
|
};
|
|
@@ -49442,7 +49479,7 @@ const args = "_args_1792k_22";
|
|
|
49442
49479
|
const argLabel = "_argLabel_1792k_31";
|
|
49443
49480
|
const error$2 = "_error_1792k_35";
|
|
49444
49481
|
const toolPanel = "_toolPanel_1792k_40";
|
|
49445
|
-
const styles$
|
|
49482
|
+
const styles$11 = {
|
|
49446
49483
|
mcpToolUse,
|
|
49447
49484
|
title: title$3,
|
|
49448
49485
|
titleText,
|
|
@@ -49463,23 +49500,23 @@ const McpToolUse = ({ id: id2, content: content2, className: className2 }) => {
|
|
|
49463
49500
|
const titleStr = content2.context ? `${content2.context} — ${content2.name}()` : `${content2.name}()`;
|
|
49464
49501
|
const listToolsResult = maybeListTools(content2);
|
|
49465
49502
|
const webSearchResult = maybeWebSearchResult(content2);
|
|
49466
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { id: id2, className: clsx(styles$
|
|
49503
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { id: id2, className: clsx(styles$11.mcpToolUse, className2), children: [
|
|
49467
49504
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
49468
49505
|
"div",
|
|
49469
49506
|
{
|
|
49470
49507
|
className: clsx(
|
|
49471
|
-
styles$
|
|
49508
|
+
styles$11.title,
|
|
49472
49509
|
"text-size-small",
|
|
49473
49510
|
"text-style-secondary"
|
|
49474
49511
|
),
|
|
49475
49512
|
children: [
|
|
49476
49513
|
/* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: ApplicationIcons.role.tool }),
|
|
49477
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: styles$
|
|
49478
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$
|
|
49514
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: styles$11.titleText, children: titleStr }),
|
|
49515
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$11.type, children: content2.type })
|
|
49479
49516
|
]
|
|
49480
49517
|
}
|
|
49481
49518
|
),
|
|
49482
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$
|
|
49519
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$11.args, children: [
|
|
49483
49520
|
Object.keys(args2).map((key2, index) => {
|
|
49484
49521
|
const value2 = args2[key2];
|
|
49485
49522
|
let valueRecord = void 0;
|
|
@@ -49498,7 +49535,7 @@ const McpToolUse = ({ id: id2, content: content2, className: className2 }) => {
|
|
|
49498
49535
|
}),
|
|
49499
49536
|
webSearchResult ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
49500
49537
|
/* @__PURE__ */ jsxRuntimeExports.jsx(LabelDiv, { label: "results" }),
|
|
49501
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(ValueDiv, { children: webSearchResult.result.map((result2, index) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$
|
|
49538
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(ValueDiv, { children: webSearchResult.result.map((result2, index) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$11.result, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
49502
49539
|
"a",
|
|
49503
49540
|
{
|
|
49504
49541
|
href: result2.url,
|
|
@@ -49513,7 +49550,7 @@ const McpToolUse = ({ id: id2, content: content2, className: className2 }) => {
|
|
|
49513
49550
|
{
|
|
49514
49551
|
id: `${id2}-output`,
|
|
49515
49552
|
collapse: true,
|
|
49516
|
-
className: clsx(styles$
|
|
49553
|
+
className: clsx(styles$11.toolPanel),
|
|
49517
49554
|
children: [
|
|
49518
49555
|
/* @__PURE__ */ jsxRuntimeExports.jsx(LabelDiv, { label: tool2.name }),
|
|
49519
49556
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(ValueDiv, { children: [
|
|
@@ -49531,7 +49568,7 @@ const McpToolUse = ({ id: id2, content: content2, className: className2 }) => {
|
|
|
49531
49568
|
}
|
|
49532
49569
|
) })) : void 0
|
|
49533
49570
|
] }),
|
|
49534
|
-
content2.error ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$
|
|
49571
|
+
content2.error ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$11.error, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { children: [
|
|
49535
49572
|
"Error: ",
|
|
49536
49573
|
content2.error
|
|
49537
49574
|
] }) }) : !listToolsResult && !webSearchResult ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-small"), children: /* @__PURE__ */ jsxRuntimeExports.jsx(ExpandablePanel, { id: `${id2}-output`, collapse: true, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -49588,7 +49625,7 @@ const LabelDiv = ({ label: label2 }) => {
|
|
|
49588
49625
|
"div",
|
|
49589
49626
|
{
|
|
49590
49627
|
className: clsx(
|
|
49591
|
-
styles$
|
|
49628
|
+
styles$11.argLabel,
|
|
49592
49629
|
"text-style-secondary",
|
|
49593
49630
|
"text-size-smaller"
|
|
49594
49631
|
),
|
|
@@ -49603,7 +49640,7 @@ const toolImage = "_toolImage_1wvgr_1";
|
|
|
49603
49640
|
const output = "_output_1wvgr_6";
|
|
49604
49641
|
const textOutput = "_textOutput_1wvgr_10";
|
|
49605
49642
|
const textCode = "_textCode_1wvgr_18";
|
|
49606
|
-
const styles$
|
|
49643
|
+
const styles$10 = {
|
|
49607
49644
|
toolImage,
|
|
49608
49645
|
output,
|
|
49609
49646
|
textOutput,
|
|
@@ -49622,7 +49659,7 @@ const ToolOutput = ({ output: output2, className: className2 }) => {
|
|
|
49622
49659
|
} else {
|
|
49623
49660
|
if (out.image.startsWith("data:")) {
|
|
49624
49661
|
outputs.push(
|
|
49625
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("img", { className: clsx(styles$
|
|
49662
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("img", { className: clsx(styles$10.toolImage), src: out.image }, key2)
|
|
49626
49663
|
);
|
|
49627
49664
|
} else {
|
|
49628
49665
|
outputs.push(/* @__PURE__ */ jsxRuntimeExports.jsx(ToolTextOutput, { text: String(out.image) }, key2));
|
|
@@ -49634,14 +49671,14 @@ const ToolOutput = ({ output: output2, className: className2 }) => {
|
|
|
49634
49671
|
/* @__PURE__ */ jsxRuntimeExports.jsx(ToolTextOutput, { text: String(output2) }, "tool-output-single")
|
|
49635
49672
|
);
|
|
49636
49673
|
}
|
|
49637
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$
|
|
49674
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$10.output, className2), children: outputs });
|
|
49638
49675
|
};
|
|
49639
49676
|
const ToolTextOutput = ({ text: text2 }) => {
|
|
49640
49677
|
if (isJson(text2)) {
|
|
49641
49678
|
const obj = JSON.parse(text2);
|
|
49642
49679
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(JsonMessageContent, { id: `1-json`, json: obj });
|
|
49643
49680
|
}
|
|
49644
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: clsx(styles$
|
|
49681
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: clsx(styles$10.textOutput, "tool-output"), children: /* @__PURE__ */ jsxRuntimeExports.jsx("code", { className: clsx("sourceCode", styles$10.textCode), children: text2.trim() }) });
|
|
49645
49682
|
};
|
|
49646
49683
|
const isMessageContent = (content2) => {
|
|
49647
49684
|
return typeof content2 === "object" && content2 !== null && "type" in content2 && typeof content2.type === "string";
|
|
@@ -49726,7 +49763,7 @@ const messageRenderers = {
|
|
|
49726
49763
|
className: isLast ? "no-last-para-padding" : ""
|
|
49727
49764
|
}
|
|
49728
49765
|
),
|
|
49729
|
-
c2.citations ? /* @__PURE__ */ jsxRuntimeExports.jsx(MessageCitations, { citations: c2.citations }) : void 0
|
|
49766
|
+
c2.citations && c2.citations.length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx(MessageCitations, { citations: c2.citations }) : void 0
|
|
49730
49767
|
] }, key2);
|
|
49731
49768
|
}
|
|
49732
49769
|
}
|
|
@@ -49740,7 +49777,7 @@ const messageRenderers = {
|
|
|
49740
49777
|
} else if (!text2) {
|
|
49741
49778
|
text2 = r2.summary || "Reasoning text not provided.";
|
|
49742
49779
|
}
|
|
49743
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$
|
|
49780
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$12.reasoning, "text-size-small"), children: [
|
|
49744
49781
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
49745
49782
|
"div",
|
|
49746
49783
|
{
|
|
@@ -49763,7 +49800,7 @@ const messageRenderers = {
|
|
|
49763
49800
|
render: (key2, content2, _isLast, _context) => {
|
|
49764
49801
|
const c2 = content2;
|
|
49765
49802
|
if (c2.image.startsWith("data:")) {
|
|
49766
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("img", { src: c2.image, className: styles$
|
|
49803
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("img", { src: c2.image, className: styles$12.contentImage }, key2);
|
|
49767
49804
|
} else {
|
|
49768
49805
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("code", { children: c2.image }, key2);
|
|
49769
49806
|
}
|
|
@@ -49887,11 +49924,120 @@ const normalizeContent$2 = (contents2) => {
|
|
|
49887
49924
|
return result2;
|
|
49888
49925
|
};
|
|
49889
49926
|
const isCitationWithRange = (citation) => Array.isArray(citation.cited_text);
|
|
49890
|
-
const
|
|
49891
|
-
|
|
49892
|
-
|
|
49893
|
-
|
|
49894
|
-
|
|
49927
|
+
const defaultContext = () => {
|
|
49928
|
+
return {
|
|
49929
|
+
citeOffset: 0,
|
|
49930
|
+
citations: []
|
|
49931
|
+
};
|
|
49932
|
+
};
|
|
49933
|
+
const MessageContents = ({ message: message2 }) => {
|
|
49934
|
+
const context = defaultContext();
|
|
49935
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: message2.content && /* @__PURE__ */ jsxRuntimeExports.jsx(MessageContent, { contents: message2.content, context }) });
|
|
49936
|
+
};
|
|
49937
|
+
const ChatMessage = memo$1(
|
|
49938
|
+
({ id: id2, message: message2, indented: indented2, allowLinking = true }) => {
|
|
49939
|
+
const messageUrl = void 0;
|
|
49940
|
+
const supportsLinking = useCallback(() => {
|
|
49941
|
+
return false;
|
|
49942
|
+
}, []);
|
|
49943
|
+
const toFullUrl = useCallback((url) => {
|
|
49944
|
+
return url;
|
|
49945
|
+
}, []);
|
|
49946
|
+
const collapse = message2.role === "system" || message2.role === "user";
|
|
49947
|
+
const [mouseOver, setMouseOver] = useState(false);
|
|
49948
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
49949
|
+
"div",
|
|
49950
|
+
{
|
|
49951
|
+
className: clsx(
|
|
49952
|
+
message2.role,
|
|
49953
|
+
"text-size-base",
|
|
49954
|
+
styles$1a.message,
|
|
49955
|
+
message2.role === "system" ? styles$1a.systemRole : void 0,
|
|
49956
|
+
message2.role === "user" ? styles$1a.userRole : void 0,
|
|
49957
|
+
mouseOver ? styles$1a.hover : void 0
|
|
49958
|
+
),
|
|
49959
|
+
onMouseEnter: () => setMouseOver(true),
|
|
49960
|
+
onMouseLeave: () => setMouseOver(false),
|
|
49961
|
+
children: [
|
|
49962
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
49963
|
+
"div",
|
|
49964
|
+
{
|
|
49965
|
+
className: clsx(
|
|
49966
|
+
styles$1a.messageGrid,
|
|
49967
|
+
message2.role === "tool" ? styles$1a.toolMessageGrid : void 0,
|
|
49968
|
+
"text-style-label"
|
|
49969
|
+
),
|
|
49970
|
+
children: [
|
|
49971
|
+
message2.role,
|
|
49972
|
+
message2.role === "tool" ? `: ${message2.function}` : "",
|
|
49973
|
+
supportsLinking() && messageUrl ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
49974
|
+
CopyButton,
|
|
49975
|
+
{
|
|
49976
|
+
icon: ApplicationIcons.link,
|
|
49977
|
+
value: toFullUrl(messageUrl),
|
|
49978
|
+
className: clsx(styles$1a.copyLink)
|
|
49979
|
+
}
|
|
49980
|
+
) : ""
|
|
49981
|
+
]
|
|
49982
|
+
}
|
|
49983
|
+
),
|
|
49984
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
49985
|
+
"div",
|
|
49986
|
+
{
|
|
49987
|
+
className: clsx(
|
|
49988
|
+
styles$1a.messageContents,
|
|
49989
|
+
indented2 ? styles$1a.indented : void 0
|
|
49990
|
+
),
|
|
49991
|
+
children: [
|
|
49992
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
49993
|
+
ExpandablePanel,
|
|
49994
|
+
{
|
|
49995
|
+
id: `${id2}-message`,
|
|
49996
|
+
collapse,
|
|
49997
|
+
lines: collapse ? 15 : 25,
|
|
49998
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(MessageContents, { message: message2 }, `${id2}-contents`)
|
|
49999
|
+
}
|
|
50000
|
+
),
|
|
50001
|
+
message2.metadata && Object.keys(message2.metadata).length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
50002
|
+
LabeledValue,
|
|
50003
|
+
{
|
|
50004
|
+
label: "Metadata",
|
|
50005
|
+
className: clsx(styles$1a.metadataLabel, "text-size-smaller"),
|
|
50006
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
50007
|
+
RecordTree,
|
|
50008
|
+
{
|
|
50009
|
+
record: message2.metadata,
|
|
50010
|
+
id: `${id2}-metadata`,
|
|
50011
|
+
defaultExpandLevel: 0
|
|
50012
|
+
}
|
|
50013
|
+
)
|
|
50014
|
+
}
|
|
50015
|
+
) : ""
|
|
50016
|
+
]
|
|
50017
|
+
}
|
|
50018
|
+
)
|
|
50019
|
+
]
|
|
50020
|
+
}
|
|
50021
|
+
);
|
|
50022
|
+
}
|
|
50023
|
+
);
|
|
50024
|
+
const grid$2 = "_grid_ws7d1_1";
|
|
50025
|
+
const number = "_number_ws7d1_8";
|
|
50026
|
+
const user = "_user_ws7d1_12";
|
|
50027
|
+
const container$f = "_container_ws7d1_18";
|
|
50028
|
+
const first = "_first_ws7d1_26";
|
|
50029
|
+
const last = "_last_ws7d1_33";
|
|
50030
|
+
const label$4 = "_label_ws7d1_40";
|
|
50031
|
+
const highlight = "_highlight_ws7d1_44";
|
|
50032
|
+
const styles$$ = {
|
|
50033
|
+
grid: grid$2,
|
|
50034
|
+
number,
|
|
50035
|
+
user,
|
|
50036
|
+
container: container$f,
|
|
50037
|
+
first,
|
|
50038
|
+
last,
|
|
50039
|
+
label: label$4,
|
|
50040
|
+
highlight
|
|
49895
50041
|
};
|
|
49896
50042
|
(function(Prism2) {
|
|
49897
50043
|
var envVars = "\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b";
|
|
@@ -50317,13 +50463,13 @@ const extractInput = (args2, inputDescriptor) => {
|
|
|
50317
50463
|
};
|
|
50318
50464
|
}
|
|
50319
50465
|
};
|
|
50320
|
-
const toolCallView = "
|
|
50321
|
-
const styles
|
|
50466
|
+
const toolCallView = "_toolCallView_x6cus_1";
|
|
50467
|
+
const styles$_ = {
|
|
50322
50468
|
toolCallView
|
|
50323
50469
|
};
|
|
50324
50470
|
const todoList = "_todoList_1t8rx_1";
|
|
50325
50471
|
const inProgress = "_inProgress_1t8rx_9";
|
|
50326
|
-
const styles$
|
|
50472
|
+
const styles$Z = {
|
|
50327
50473
|
todoList,
|
|
50328
50474
|
inProgress
|
|
50329
50475
|
};
|
|
@@ -50343,7 +50489,7 @@ const toToolTodos = (obj) => {
|
|
|
50343
50489
|
};
|
|
50344
50490
|
const TodoWriteInput = ({ contents: contents2, parentRef }) => {
|
|
50345
50491
|
const todoItems = toToolTodos(contents2);
|
|
50346
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref: parentRef, className: clsx(styles$
|
|
50492
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref: parentRef, className: clsx(styles$Z.todoList), children: todoItems.map((todo) => {
|
|
50347
50493
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
50348
50494
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
50349
50495
|
"i",
|
|
@@ -50358,9 +50504,9 @@ const TodoWriteInput = ({ contents: contents2, parentRef }) => {
|
|
|
50358
50504
|
"span",
|
|
50359
50505
|
{
|
|
50360
50506
|
className: clsx(
|
|
50361
|
-
styles$
|
|
50507
|
+
styles$Z.todoItem,
|
|
50362
50508
|
"text-size-smallest",
|
|
50363
|
-
todo.status === "in_progress" ? styles$
|
|
50509
|
+
todo.status === "in_progress" ? styles$Z.inProgress : void 0
|
|
50364
50510
|
),
|
|
50365
50511
|
children: todo.content
|
|
50366
50512
|
}
|
|
@@ -50371,7 +50517,7 @@ const TodoWriteInput = ({ contents: contents2, parentRef }) => {
|
|
|
50371
50517
|
const outputPre = "_outputPre_1jznn_1";
|
|
50372
50518
|
const toolView = "_toolView_1jznn_7";
|
|
50373
50519
|
const outputCode = "_outputCode_1jznn_15";
|
|
50374
|
-
const styles$
|
|
50520
|
+
const styles$Y = {
|
|
50375
50521
|
outputPre,
|
|
50376
50522
|
toolView,
|
|
50377
50523
|
outputCode
|
|
@@ -50388,7 +50534,7 @@ const ToolInput = (props) => {
|
|
|
50388
50534
|
{
|
|
50389
50535
|
markdown: toolCallView2.content,
|
|
50390
50536
|
ref: sourceCodeRef,
|
|
50391
|
-
className: clsx("tool-output", styles$
|
|
50537
|
+
className: clsx("tool-output", styles$Y.toolView, className2)
|
|
50392
50538
|
}
|
|
50393
50539
|
);
|
|
50394
50540
|
} else {
|
|
@@ -50418,8 +50564,8 @@ const RenderTool = ({
|
|
|
50418
50564
|
{
|
|
50419
50565
|
className: clsx(
|
|
50420
50566
|
"tool-output",
|
|
50421
|
-
styles$
|
|
50422
|
-
styles$
|
|
50567
|
+
styles$Y.outputPre,
|
|
50568
|
+
styles$Y.bottomMargin,
|
|
50423
50569
|
className2
|
|
50424
50570
|
),
|
|
50425
50571
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -50429,7 +50575,7 @@ const RenderTool = ({
|
|
|
50429
50575
|
"source-code",
|
|
50430
50576
|
"sourceCode",
|
|
50431
50577
|
contentType ? `language-${contentType}` : void 0,
|
|
50432
|
-
styles$
|
|
50578
|
+
styles$Y.outputCode
|
|
50433
50579
|
),
|
|
50434
50580
|
children: formattedContent
|
|
50435
50581
|
}
|
|
@@ -50440,16 +50586,16 @@ const RenderTool = ({
|
|
|
50440
50586
|
const image = "_image_1vcac_1";
|
|
50441
50587
|
const toolTitle = "_toolTitle_1vcac_6";
|
|
50442
50588
|
const description = "_description_1vcac_10";
|
|
50443
|
-
const styles$
|
|
50589
|
+
const styles$X = {
|
|
50444
50590
|
image,
|
|
50445
50591
|
toolTitle,
|
|
50446
50592
|
description
|
|
50447
50593
|
};
|
|
50448
50594
|
const ToolTitle = ({ title: title2, description: description2 }) => {
|
|
50449
50595
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Fragment, { children: [
|
|
50450
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: clsx("bi", "bi-tools", styles$
|
|
50451
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("code", { className: clsx("text-size-small", styles$
|
|
50452
|
-
description2 ? /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: clsx(styles$
|
|
50596
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: clsx("bi", "bi-tools", styles$X.image) }),
|
|
50597
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("code", { className: clsx("text-size-small", styles$X.toolTitle), children: title2 }),
|
|
50598
|
+
description2 ? /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: clsx(styles$X.description, "text-size-smallest"), children: [
|
|
50453
50599
|
"- ",
|
|
50454
50600
|
description2
|
|
50455
50601
|
] }) : void 0
|
|
@@ -50498,7 +50644,7 @@ const ToolCallView = ({
|
|
|
50498
50644
|
});
|
|
50499
50645
|
const contents2 = mode !== "compact" ? input2 : input2 || functionCall;
|
|
50500
50646
|
const context = defaultContext();
|
|
50501
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles
|
|
50647
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$_.toolCallView), children: [
|
|
50502
50648
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
|
|
50503
50649
|
mode !== "compact" && (!view || view.title) ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
50504
50650
|
ToolTitle,
|
|
@@ -50549,21 +50695,43 @@ const normalizeContent$1 = (output2) => {
|
|
|
50549
50695
|
];
|
|
50550
50696
|
}
|
|
50551
50697
|
};
|
|
50552
|
-
const
|
|
50553
|
-
|
|
50554
|
-
|
|
50555
|
-
|
|
50556
|
-
|
|
50557
|
-
|
|
50558
|
-
|
|
50559
|
-
|
|
50560
|
-
|
|
50561
|
-
|
|
50562
|
-
|
|
50698
|
+
const ChatMessageRow = ({
|
|
50699
|
+
index,
|
|
50700
|
+
parentName,
|
|
50701
|
+
labeled,
|
|
50702
|
+
labels,
|
|
50703
|
+
highlightLabeled,
|
|
50704
|
+
resolvedMessage,
|
|
50705
|
+
toolCallStyle,
|
|
50706
|
+
indented: indented2,
|
|
50707
|
+
highlightUserMessage,
|
|
50708
|
+
allowLinking = true
|
|
50563
50709
|
}) => {
|
|
50564
|
-
const
|
|
50565
|
-
|
|
50566
|
-
|
|
50710
|
+
const views = [];
|
|
50711
|
+
const viewLabels = [];
|
|
50712
|
+
const number2 = index + 1;
|
|
50713
|
+
const maxlabelLen = labels ? Object.values(labels).reduce((curr, r2) => {
|
|
50714
|
+
return Math.max(r2.length, curr);
|
|
50715
|
+
}, 0) : 3;
|
|
50716
|
+
const chatMessageLabel = labels && resolvedMessage.message.id ? labels[resolvedMessage.message.id] || " ".repeat(maxlabelLen * 2) : String(number2) || void 0;
|
|
50717
|
+
views.push(
|
|
50718
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
50719
|
+
ChatMessage,
|
|
50720
|
+
{
|
|
50721
|
+
id: `${parentName}-chat-messages`,
|
|
50722
|
+
message: resolvedMessage.message,
|
|
50723
|
+
toolMessages: resolvedMessage.toolMessages,
|
|
50724
|
+
indented: indented2,
|
|
50725
|
+
toolCallStyle,
|
|
50726
|
+
allowLinking
|
|
50727
|
+
}
|
|
50728
|
+
)
|
|
50729
|
+
);
|
|
50730
|
+
viewLabels.push(chatMessageLabel);
|
|
50731
|
+
if (toolCallStyle !== "omit" && resolvedMessage.message.role === "assistant" && resolvedMessage.message.tool_calls && resolvedMessage.message.tool_calls.length) {
|
|
50732
|
+
const toolMessages = resolvedMessage.toolMessages || [];
|
|
50733
|
+
let idx = 0;
|
|
50734
|
+
for (const tool_call of resolvedMessage.message.tool_calls) {
|
|
50567
50735
|
const { input: input2, description: description2, functionCall, contentType } = resolveToolInput(tool_call.function, tool_call.arguments);
|
|
50568
50736
|
let toolMessage;
|
|
50569
50737
|
if (tool_call.id) {
|
|
@@ -50573,36 +50741,79 @@ const MessageContents = ({
|
|
|
50573
50741
|
} else {
|
|
50574
50742
|
toolMessage = toolMessages[idx];
|
|
50575
50743
|
}
|
|
50744
|
+
const toolLabel = labels?.[toolMessage?.id || ""] || void 0;
|
|
50576
50745
|
const resolvedToolOutput = resolveToolMessage(toolMessage);
|
|
50746
|
+
viewLabels.push(toolLabel);
|
|
50577
50747
|
if (toolCallStyle === "compact") {
|
|
50578
|
-
|
|
50579
|
-
|
|
50580
|
-
|
|
50581
|
-
] }) }, `tool-call-${idx}`);
|
|
50582
|
-
} else if (toolCallStyle === "omit") {
|
|
50583
|
-
return void 0;
|
|
50748
|
+
views.push(
|
|
50749
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(ToolCallViewCompact, { idx, functionCall })
|
|
50750
|
+
);
|
|
50584
50751
|
} else {
|
|
50585
|
-
|
|
50586
|
-
|
|
50587
|
-
|
|
50588
|
-
|
|
50589
|
-
|
|
50590
|
-
|
|
50591
|
-
|
|
50592
|
-
|
|
50593
|
-
|
|
50594
|
-
|
|
50595
|
-
|
|
50596
|
-
|
|
50752
|
+
views.push(
|
|
50753
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
50754
|
+
ToolCallView,
|
|
50755
|
+
{
|
|
50756
|
+
id: `${index}-tool-call-${idx}`,
|
|
50757
|
+
functionCall,
|
|
50758
|
+
input: input2,
|
|
50759
|
+
description: description2,
|
|
50760
|
+
contentType,
|
|
50761
|
+
output: resolvedToolOutput,
|
|
50762
|
+
collapsible: false
|
|
50763
|
+
},
|
|
50764
|
+
`tool-call-${idx}`
|
|
50765
|
+
)
|
|
50597
50766
|
);
|
|
50598
50767
|
}
|
|
50599
|
-
|
|
50600
|
-
|
|
50601
|
-
|
|
50602
|
-
|
|
50603
|
-
|
|
50768
|
+
idx++;
|
|
50769
|
+
}
|
|
50770
|
+
}
|
|
50771
|
+
if (labeled) {
|
|
50772
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$$.grid), children: views.map((view, idx) => {
|
|
50773
|
+
const label2 = viewLabels[idx];
|
|
50774
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
50775
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
50776
|
+
"div",
|
|
50777
|
+
{
|
|
50778
|
+
className: clsx(
|
|
50779
|
+
"text-size-smaller",
|
|
50780
|
+
"text-style-secondary",
|
|
50781
|
+
styles$$.number,
|
|
50782
|
+
styles$$.label
|
|
50783
|
+
),
|
|
50784
|
+
children: label2
|
|
50785
|
+
}
|
|
50786
|
+
),
|
|
50787
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
50788
|
+
"div",
|
|
50789
|
+
{
|
|
50790
|
+
className: clsx(
|
|
50791
|
+
styles$$.container,
|
|
50792
|
+
highlightUserMessage && resolvedMessage.message.role === "user" ? styles$$.user : void 0,
|
|
50793
|
+
idx === 0 ? styles$$.first : void 0,
|
|
50794
|
+
idx === views.length - 1 ? styles$$.last : void 0,
|
|
50795
|
+
highlightLabeled && label2?.trim() ? styles$$.highlight : void 0
|
|
50796
|
+
),
|
|
50797
|
+
children: view
|
|
50798
|
+
}
|
|
50799
|
+
)
|
|
50800
|
+
] });
|
|
50801
|
+
}) }) });
|
|
50604
50802
|
} else {
|
|
50605
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
50803
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
50804
|
+
"div",
|
|
50805
|
+
{
|
|
50806
|
+
className: clsx(
|
|
50807
|
+
styles$$.container,
|
|
50808
|
+
styles$$.simple,
|
|
50809
|
+
highlightUserMessage && resolvedMessage.message.role === "user" ? styles$$.user : void 0
|
|
50810
|
+
),
|
|
50811
|
+
children: [
|
|
50812
|
+
views,
|
|
50813
|
+
resolvedMessage.message.role === "user" ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { height: "10px" } }) : void 0
|
|
50814
|
+
]
|
|
50815
|
+
}
|
|
50816
|
+
);
|
|
50606
50817
|
}
|
|
50607
50818
|
};
|
|
50608
50819
|
const resolveToolMessage = (toolMessage) => {
|
|
@@ -50655,192 +50866,11 @@ const resolveToolMessage = (toolMessage) => {
|
|
|
50655
50866
|
return result2;
|
|
50656
50867
|
}
|
|
50657
50868
|
};
|
|
50658
|
-
const
|
|
50659
|
-
({
|
|
50660
|
-
|
|
50661
|
-
|
|
50662
|
-
|
|
50663
|
-
indented: indented2,
|
|
50664
|
-
toolCallStyle,
|
|
50665
|
-
allowLinking = true
|
|
50666
|
-
}) => {
|
|
50667
|
-
const messageUrl = void 0;
|
|
50668
|
-
const supportsLinking = useCallback(() => {
|
|
50669
|
-
return false;
|
|
50670
|
-
}, []);
|
|
50671
|
-
const toFullUrl = useCallback((url) => {
|
|
50672
|
-
return url;
|
|
50673
|
-
}, []);
|
|
50674
|
-
const collapse = message2.role === "system" || message2.role === "user";
|
|
50675
|
-
const [mouseOver, setMouseOver] = useState(false);
|
|
50676
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
50677
|
-
"div",
|
|
50678
|
-
{
|
|
50679
|
-
className: clsx(
|
|
50680
|
-
message2.role,
|
|
50681
|
-
"text-size-base",
|
|
50682
|
-
styles$1b.message,
|
|
50683
|
-
message2.role === "system" ? styles$1b.systemRole : void 0,
|
|
50684
|
-
message2.role === "user" ? styles$1b.userRole : void 0,
|
|
50685
|
-
mouseOver ? styles$1b.hover : void 0
|
|
50686
|
-
),
|
|
50687
|
-
onMouseEnter: () => setMouseOver(true),
|
|
50688
|
-
onMouseLeave: () => setMouseOver(false),
|
|
50689
|
-
children: [
|
|
50690
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
50691
|
-
"div",
|
|
50692
|
-
{
|
|
50693
|
-
className: clsx(
|
|
50694
|
-
styles$1b.messageGrid,
|
|
50695
|
-
message2.role === "tool" ? styles$1b.toolMessageGrid : void 0,
|
|
50696
|
-
"text-style-label"
|
|
50697
|
-
),
|
|
50698
|
-
children: [
|
|
50699
|
-
message2.role,
|
|
50700
|
-
message2.role === "tool" ? `: ${message2.function}` : "",
|
|
50701
|
-
supportsLinking() && messageUrl ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
50702
|
-
CopyButton,
|
|
50703
|
-
{
|
|
50704
|
-
icon: ApplicationIcons.link,
|
|
50705
|
-
value: toFullUrl(messageUrl),
|
|
50706
|
-
className: clsx(styles$1b.copyLink)
|
|
50707
|
-
}
|
|
50708
|
-
) : ""
|
|
50709
|
-
]
|
|
50710
|
-
}
|
|
50711
|
-
),
|
|
50712
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
50713
|
-
"div",
|
|
50714
|
-
{
|
|
50715
|
-
className: clsx(
|
|
50716
|
-
styles$1b.messageContents,
|
|
50717
|
-
indented2 ? styles$1b.indented : void 0
|
|
50718
|
-
),
|
|
50719
|
-
children: [
|
|
50720
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
50721
|
-
ExpandablePanel,
|
|
50722
|
-
{
|
|
50723
|
-
id: `${id2}-message`,
|
|
50724
|
-
collapse,
|
|
50725
|
-
lines: collapse ? 15 : 25,
|
|
50726
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
50727
|
-
MessageContents,
|
|
50728
|
-
{
|
|
50729
|
-
id: `${id2}-contents`,
|
|
50730
|
-
message: message2,
|
|
50731
|
-
toolMessages,
|
|
50732
|
-
toolCallStyle
|
|
50733
|
-
},
|
|
50734
|
-
`${id2}-contents`
|
|
50735
|
-
)
|
|
50736
|
-
}
|
|
50737
|
-
),
|
|
50738
|
-
message2.metadata && Object.keys(message2.metadata).length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
50739
|
-
LabeledValue,
|
|
50740
|
-
{
|
|
50741
|
-
label: "Metadata",
|
|
50742
|
-
className: clsx(styles$1b.metadataLabel, "text-size-smaller"),
|
|
50743
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
50744
|
-
RecordTree,
|
|
50745
|
-
{
|
|
50746
|
-
record: message2.metadata,
|
|
50747
|
-
id: `${id2}-metadata`,
|
|
50748
|
-
defaultExpandLevel: 0
|
|
50749
|
-
}
|
|
50750
|
-
)
|
|
50751
|
-
}
|
|
50752
|
-
) : ""
|
|
50753
|
-
]
|
|
50754
|
-
}
|
|
50755
|
-
)
|
|
50756
|
-
]
|
|
50757
|
-
}
|
|
50758
|
-
);
|
|
50759
|
-
}
|
|
50760
|
-
);
|
|
50761
|
-
const grid$2 = "_grid_rmdrx_1";
|
|
50762
|
-
const number = "_number_rmdrx_7";
|
|
50763
|
-
const user = "_user_rmdrx_11";
|
|
50764
|
-
const container$f = "_container_rmdrx_16";
|
|
50765
|
-
const styles$X = {
|
|
50766
|
-
grid: grid$2,
|
|
50767
|
-
number,
|
|
50768
|
-
user,
|
|
50769
|
-
container: container$f
|
|
50770
|
-
};
|
|
50771
|
-
const ChatMessageRow = ({
|
|
50772
|
-
parentName,
|
|
50773
|
-
label: label2,
|
|
50774
|
-
resolvedMessage,
|
|
50775
|
-
toolCallStyle,
|
|
50776
|
-
indented: indented2,
|
|
50777
|
-
highlightUserMessage,
|
|
50778
|
-
allowLinking = true
|
|
50779
|
-
}) => {
|
|
50780
|
-
if (label2) {
|
|
50781
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
50782
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
50783
|
-
"div",
|
|
50784
|
-
{
|
|
50785
|
-
className: clsx(
|
|
50786
|
-
styles$X.grid,
|
|
50787
|
-
styles$X.container,
|
|
50788
|
-
highlightUserMessage && resolvedMessage.message.role === "user" ? styles$X.user : void 0
|
|
50789
|
-
),
|
|
50790
|
-
children: [
|
|
50791
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
50792
|
-
"div",
|
|
50793
|
-
{
|
|
50794
|
-
className: clsx(
|
|
50795
|
-
"text-size-smaller",
|
|
50796
|
-
"text-style-secondary",
|
|
50797
|
-
styles$X.number
|
|
50798
|
-
),
|
|
50799
|
-
children: label2
|
|
50800
|
-
}
|
|
50801
|
-
),
|
|
50802
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
50803
|
-
ChatMessage,
|
|
50804
|
-
{
|
|
50805
|
-
id: `${parentName}-chat-messages`,
|
|
50806
|
-
message: resolvedMessage.message,
|
|
50807
|
-
toolMessages: resolvedMessage.toolMessages,
|
|
50808
|
-
indented: indented2,
|
|
50809
|
-
toolCallStyle,
|
|
50810
|
-
allowLinking
|
|
50811
|
-
}
|
|
50812
|
-
)
|
|
50813
|
-
]
|
|
50814
|
-
}
|
|
50815
|
-
),
|
|
50816
|
-
resolvedMessage.message.role === "user" ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { height: "10px" } }) : void 0
|
|
50817
|
-
] });
|
|
50818
|
-
} else {
|
|
50819
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
50820
|
-
"div",
|
|
50821
|
-
{
|
|
50822
|
-
className: clsx(
|
|
50823
|
-
styles$X.container,
|
|
50824
|
-
styles$X.simple,
|
|
50825
|
-
highlightUserMessage && resolvedMessage.message.role === "user" ? styles$X.user : void 0
|
|
50826
|
-
),
|
|
50827
|
-
children: [
|
|
50828
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
50829
|
-
ChatMessage,
|
|
50830
|
-
{
|
|
50831
|
-
id: `${parentName}-chat-messages`,
|
|
50832
|
-
message: resolvedMessage.message,
|
|
50833
|
-
toolMessages: resolvedMessage.toolMessages,
|
|
50834
|
-
indented: indented2,
|
|
50835
|
-
toolCallStyle,
|
|
50836
|
-
allowLinking
|
|
50837
|
-
}
|
|
50838
|
-
),
|
|
50839
|
-
resolvedMessage.message.role === "user" ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { height: "10px" } }) : void 0
|
|
50840
|
-
]
|
|
50841
|
-
}
|
|
50842
|
-
);
|
|
50843
|
-
}
|
|
50869
|
+
const ToolCallViewCompact = ({ idx, functionCall }) => {
|
|
50870
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsxs("code", { className: clsx(styles$$.codeCompact), children: [
|
|
50871
|
+
"tool: ",
|
|
50872
|
+
functionCall
|
|
50873
|
+
] }) }, `tool-call-${idx}`);
|
|
50844
50874
|
};
|
|
50845
50875
|
const resolveMessages = (messages2) => {
|
|
50846
50876
|
const resolvedMessages = [];
|
|
@@ -50928,6 +50958,7 @@ const ChatView = ({
|
|
|
50928
50958
|
resolveToolCallsIntoPreviousMessage = true,
|
|
50929
50959
|
indented: indented2,
|
|
50930
50960
|
labeled = true,
|
|
50961
|
+
highlightLabeled = false,
|
|
50931
50962
|
className: className2,
|
|
50932
50963
|
allowLinking = true,
|
|
50933
50964
|
messageLabels
|
|
@@ -50939,14 +50970,14 @@ const ChatView = ({
|
|
|
50939
50970
|
};
|
|
50940
50971
|
});
|
|
50941
50972
|
const result2 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(className2), children: collapsedMessages.map((msg, index) => {
|
|
50942
|
-
const number2 = collapsedMessages.length > 1 && labeled ? index + 1 : void 0;
|
|
50943
|
-
const msgLabel = messageLabels && msg.message.id ? messageLabels[msg.message.id] : "";
|
|
50944
|
-
const label2 = msgLabel || number2;
|
|
50945
50973
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
50946
50974
|
ChatMessageRow,
|
|
50947
50975
|
{
|
|
50976
|
+
index,
|
|
50948
50977
|
parentName: id2 || "chat-view",
|
|
50949
|
-
|
|
50978
|
+
labeled,
|
|
50979
|
+
labels: messageLabels,
|
|
50980
|
+
highlightLabeled,
|
|
50950
50981
|
resolvedMessage: msg,
|
|
50951
50982
|
indented: indented2,
|
|
50952
50983
|
toolCallStyle,
|
|
@@ -51498,8 +51529,8 @@ const RecordTree = ({
|
|
|
51498
51529
|
"div",
|
|
51499
51530
|
{
|
|
51500
51531
|
className: clsx(
|
|
51501
|
-
styles$
|
|
51502
|
-
index < items.length - 1 && useBorders ? styles$
|
|
51532
|
+
styles$1d.keyPairContainer,
|
|
51533
|
+
index < items.length - 1 && useBorders ? styles$1d.keyPairBordered : void 0,
|
|
51503
51534
|
"text-size-small"
|
|
51504
51535
|
),
|
|
51505
51536
|
style: {
|
|
@@ -51512,7 +51543,7 @@ const RecordTree = ({
|
|
|
51512
51543
|
"data-index": index,
|
|
51513
51544
|
className: clsx(
|
|
51514
51545
|
kRecordTreeKey,
|
|
51515
|
-
styles$
|
|
51546
|
+
styles$1d.key,
|
|
51516
51547
|
"font-monospace",
|
|
51517
51548
|
"text-style-secondary"
|
|
51518
51549
|
),
|
|
@@ -51522,16 +51553,16 @@ const RecordTree = ({
|
|
|
51522
51553
|
setCollapsed(item2.id, !collapsedIds?.[item2.id]);
|
|
51523
51554
|
},
|
|
51524
51555
|
children: [
|
|
51525
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: item2.hasChildren ? /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: clsx(styles$
|
|
51556
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: item2.hasChildren ? /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: clsx(styles$1d.pre), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
51526
51557
|
"i",
|
|
51527
51558
|
{
|
|
51528
51559
|
className: clsx(
|
|
51529
51560
|
collapsedIds && collapsedIds[item2.id] ? ApplicationIcons.tree.closed : ApplicationIcons.tree.open,
|
|
51530
|
-
styles$
|
|
51561
|
+
styles$1d.treeIcon
|
|
51531
51562
|
)
|
|
51532
51563
|
}
|
|
51533
51564
|
) }) : void 0 }),
|
|
51534
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("pre", { className: clsx(styles$
|
|
51565
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("pre", { className: clsx(styles$1d.pre), children: [
|
|
51535
51566
|
item2.key,
|
|
51536
51567
|
":"
|
|
51537
51568
|
] })
|
|
@@ -52210,6 +52241,7 @@ const ChatViewVirtualList = memo$1(
|
|
|
52210
52241
|
toolCallStyle,
|
|
52211
52242
|
indented: indented2,
|
|
52212
52243
|
labeled = true,
|
|
52244
|
+
highlightLabeled = false,
|
|
52213
52245
|
scrollRef,
|
|
52214
52246
|
running,
|
|
52215
52247
|
allowLinking = true,
|
|
@@ -52261,6 +52293,7 @@ const ChatViewVirtualList = memo$1(
|
|
|
52261
52293
|
toolCallStyle,
|
|
52262
52294
|
indented: indented2,
|
|
52263
52295
|
labeled,
|
|
52296
|
+
highlightLabeled,
|
|
52264
52297
|
running,
|
|
52265
52298
|
allowLinking,
|
|
52266
52299
|
messageLabels
|
|
@@ -52279,6 +52312,7 @@ const ChatViewVirtualListComponent = memo$1(
|
|
|
52279
52312
|
toolCallStyle,
|
|
52280
52313
|
indented: indented2,
|
|
52281
52314
|
labeled = true,
|
|
52315
|
+
highlightLabeled,
|
|
52282
52316
|
scrollRef,
|
|
52283
52317
|
running,
|
|
52284
52318
|
allowLinking = true,
|
|
@@ -52304,16 +52338,14 @@ const ChatViewVirtualListComponent = memo$1(
|
|
|
52304
52338
|
}, [initialMessageId, collapsedMessages]);
|
|
52305
52339
|
const renderRow = useCallback(
|
|
52306
52340
|
(index, item2) => {
|
|
52307
|
-
const number2 = collapsedMessages.length > 1 && labeled ? index + 1 : void 0;
|
|
52308
|
-
const maxlabelLen = messageLabels ? Object.values(messageLabels).reduce((curr, r2) => {
|
|
52309
|
-
return Math.max(r2.length, curr);
|
|
52310
|
-
}, 0) : 0;
|
|
52311
|
-
const label2 = messageLabels && item2.message.id ? messageLabels[item2.message.id] || " ".repeat(maxlabelLen * 2) : number2 || void 0;
|
|
52312
52341
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
52313
52342
|
ChatMessageRow,
|
|
52314
52343
|
{
|
|
52344
|
+
index,
|
|
52315
52345
|
parentName: id2 || "chat-virtual-list",
|
|
52316
|
-
|
|
52346
|
+
labeled,
|
|
52347
|
+
highlightLabeled,
|
|
52348
|
+
labels: messageLabels,
|
|
52317
52349
|
resolvedMessage: item2,
|
|
52318
52350
|
indented: indented2,
|
|
52319
52351
|
toolCallStyle,
|
|
@@ -52322,7 +52354,14 @@ const ChatViewVirtualListComponent = memo$1(
|
|
|
52322
52354
|
}
|
|
52323
52355
|
);
|
|
52324
52356
|
},
|
|
52325
|
-
[
|
|
52357
|
+
[
|
|
52358
|
+
id2,
|
|
52359
|
+
labeled,
|
|
52360
|
+
indented2,
|
|
52361
|
+
toolCallStyle,
|
|
52362
|
+
collapsedMessages,
|
|
52363
|
+
highlightLabeled
|
|
52364
|
+
]
|
|
52326
52365
|
);
|
|
52327
52366
|
const Item = ({
|
|
52328
52367
|
children: children2,
|
|
@@ -63027,13 +63066,15 @@ const InputPanel = ({ result: result2 }) => {
|
|
|
63027
63066
|
const [searchParams] = useSearchParams();
|
|
63028
63067
|
const initialMessageId = searchParams.get("message");
|
|
63029
63068
|
const initialEventId = searchParams.get("event");
|
|
63069
|
+
const highlightLabeled = useStore((state) => state.highlightLabeled);
|
|
63030
63070
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref: scrollRef, className: clsx(styles$u.container), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
63031
63071
|
InputRenderer,
|
|
63032
63072
|
{
|
|
63033
63073
|
result: result2,
|
|
63034
63074
|
scrollRef,
|
|
63035
63075
|
initialMessageId,
|
|
63036
|
-
initialEventId
|
|
63076
|
+
initialEventId,
|
|
63077
|
+
highlightLabeled
|
|
63037
63078
|
}
|
|
63038
63079
|
) });
|
|
63039
63080
|
};
|
|
@@ -63042,7 +63083,8 @@ const InputRenderer = ({
|
|
|
63042
63083
|
className: className2,
|
|
63043
63084
|
scrollRef,
|
|
63044
63085
|
initialMessageId,
|
|
63045
|
-
initialEventId
|
|
63086
|
+
initialEventId,
|
|
63087
|
+
highlightLabeled
|
|
63046
63088
|
}) => {
|
|
63047
63089
|
switch (result2?.inputType) {
|
|
63048
63090
|
case "transcript": {
|
|
@@ -63067,7 +63109,8 @@ const InputRenderer = ({
|
|
|
63067
63109
|
className: className2,
|
|
63068
63110
|
scrollRef,
|
|
63069
63111
|
initialMessageId,
|
|
63070
|
-
labeled:
|
|
63112
|
+
labeled: true,
|
|
63113
|
+
highlightLabeled,
|
|
63071
63114
|
messageLabels: labels
|
|
63072
63115
|
}
|
|
63073
63116
|
);
|
|
@@ -65242,7 +65285,8 @@ const referenceTable = (result2) => {
|
|
|
65242
65285
|
ChatView,
|
|
65243
65286
|
{
|
|
65244
65287
|
messages: [result2.input],
|
|
65245
|
-
resolveToolCallsIntoPreviousMessage: false
|
|
65288
|
+
resolveToolCallsIntoPreviousMessage: false,
|
|
65289
|
+
labeled: false
|
|
65246
65290
|
}
|
|
65247
65291
|
);
|
|
65248
65292
|
}
|
|
@@ -65255,7 +65299,8 @@ const referenceTable = (result2) => {
|
|
|
65255
65299
|
ChatView,
|
|
65256
65300
|
{
|
|
65257
65301
|
messages: [msg],
|
|
65258
|
-
resolveToolCallsIntoPreviousMessage: false
|
|
65302
|
+
resolveToolCallsIntoPreviousMessage: false,
|
|
65303
|
+
labeled: false
|
|
65259
65304
|
}
|
|
65260
65305
|
);
|
|
65261
65306
|
};
|
|
@@ -65305,7 +65350,8 @@ const referenceTable = (result2) => {
|
|
|
65305
65350
|
ChatView,
|
|
65306
65351
|
{
|
|
65307
65352
|
messages: [msg],
|
|
65308
|
-
resolveToolCallsIntoPreviousMessage: false
|
|
65353
|
+
resolveToolCallsIntoPreviousMessage: false,
|
|
65354
|
+
labeled: false
|
|
65309
65355
|
}
|
|
65310
65356
|
);
|
|
65311
65357
|
};
|
|
@@ -65963,13 +66009,15 @@ const printIdentifier = (identifier, label2) => {
|
|
|
65963
66009
|
}
|
|
65964
66010
|
return val;
|
|
65965
66011
|
};
|
|
65966
|
-
const root$1 = "
|
|
65967
|
-
const tabSet$1 = "
|
|
65968
|
-
const tabControl$1 = "
|
|
66012
|
+
const root$1 = "_root_12il0_1";
|
|
66013
|
+
const tabSet$1 = "_tabSet_12il0_13";
|
|
66014
|
+
const tabControl$1 = "_tabControl_12il0_19";
|
|
66015
|
+
const tabs$1 = "_tabs_12il0_23";
|
|
65969
66016
|
const styles$n = {
|
|
65970
66017
|
root: root$1,
|
|
65971
66018
|
tabSet: tabSet$1,
|
|
65972
|
-
tabControl: tabControl$1
|
|
66019
|
+
tabControl: tabControl$1,
|
|
66020
|
+
tabs: tabs$1
|
|
65973
66021
|
};
|
|
65974
66022
|
const container$6 = "_container_g5onx_1";
|
|
65975
66023
|
const styles$m = {
|
|
@@ -66050,6 +66098,29 @@ const ScanResultPanel = () => {
|
|
|
66050
66098
|
return hasNonSpanEvents;
|
|
66051
66099
|
}, [selectedResult?.scanEvents]);
|
|
66052
66100
|
const hasError = selectedResult?.scanError !== void 0 && selectedResult?.scanError !== null;
|
|
66101
|
+
const highlightLabeled = useStore((state) => state.highlightLabeled);
|
|
66102
|
+
const setHighlightLabeled = useStore((state) => state.setHighlightLabeled);
|
|
66103
|
+
const toggleHighlightLabeled = useCallback(() => {
|
|
66104
|
+
setHighlightLabeled(!highlightLabeled);
|
|
66105
|
+
}, [highlightLabeled, setHighlightLabeled]);
|
|
66106
|
+
const tools2 = useMemo(() => {
|
|
66107
|
+
if (selectedTab === kTabIdInput && selectedResult?.inputType === "transcript" && selectedResult?.messageReferences.length > 0) {
|
|
66108
|
+
return [
|
|
66109
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
66110
|
+
ToolButton,
|
|
66111
|
+
{
|
|
66112
|
+
icon: ApplicationIcons.highlight,
|
|
66113
|
+
latched: !!highlightLabeled,
|
|
66114
|
+
onClick: toggleHighlightLabeled,
|
|
66115
|
+
label: "Highlight Refs"
|
|
66116
|
+
},
|
|
66117
|
+
"highlight-labeled"
|
|
66118
|
+
)
|
|
66119
|
+
];
|
|
66120
|
+
} else {
|
|
66121
|
+
return [];
|
|
66122
|
+
}
|
|
66123
|
+
}, [highlightLabeled, toggleHighlightLabeled, selectedTab, selectedResult]);
|
|
66053
66124
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$n.root), children: [
|
|
66054
66125
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Navbar, { children: visibleScannerResults.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(ScanResultNav, {}) }),
|
|
66055
66126
|
/* @__PURE__ */ jsxRuntimeExports.jsx(ActivityBar, { animating: !!loading || resultLoading }),
|
|
@@ -66062,6 +66133,7 @@ const ScanResultPanel = () => {
|
|
|
66062
66133
|
tabPanelsClassName: clsx(styles$n.tabSet),
|
|
66063
66134
|
tabControlsClassName: clsx(styles$n.tabControl),
|
|
66064
66135
|
className: clsx(styles$n.tabs),
|
|
66136
|
+
tools: tools2,
|
|
66065
66137
|
children: [
|
|
66066
66138
|
hasError ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
66067
66139
|
TabPanel,
|
|
@@ -83217,9 +83289,9 @@ var RowRangeSelectionContext = class {
|
|
|
83217
83289
|
if (start2.rowPinned === "bottom" && end2.rowPinned === "top") {
|
|
83218
83290
|
const top2 = _getNodesInRangeForSelection(pinnedRowModel, "top", end2, void 0);
|
|
83219
83291
|
const bottom2 = _getNodesInRangeForSelection(pinnedRowModel, "bottom", void 0, start2);
|
|
83220
|
-
const
|
|
83221
|
-
const
|
|
83222
|
-
return top2.concat(rowModel.getNodesInRangeForSelection(
|
|
83292
|
+
const first2 = rowModel.getRow(0);
|
|
83293
|
+
const last2 = rowModel.getRow(rowModel.getRowCount() - 1);
|
|
83294
|
+
return top2.concat(rowModel.getNodesInRangeForSelection(first2, last2) ?? []).concat(bottom2);
|
|
83223
83295
|
}
|
|
83224
83296
|
if (!start2.rowPinned && end2.rowPinned === "top") {
|
|
83225
83297
|
const pinned = _getNodesInRangeForSelection(pinnedRowModel, "top", end2, void 0);
|
|
@@ -83228,17 +83300,17 @@ var RowRangeSelectionContext = class {
|
|
|
83228
83300
|
if (start2.rowPinned === "top" && end2.rowPinned === "bottom") {
|
|
83229
83301
|
const top2 = _getNodesInRangeForSelection(pinnedRowModel, "top", start2, void 0);
|
|
83230
83302
|
const bottom2 = _getNodesInRangeForSelection(pinnedRowModel, "bottom", void 0, end2);
|
|
83231
|
-
const
|
|
83232
|
-
const
|
|
83233
|
-
return top2.concat(rowModel.getNodesInRangeForSelection(
|
|
83303
|
+
const first2 = rowModel.getRow(0);
|
|
83304
|
+
const last2 = rowModel.getRow(rowModel.getRowCount() - 1);
|
|
83305
|
+
return top2.concat(rowModel.getNodesInRangeForSelection(first2, last2) ?? []).concat(bottom2);
|
|
83234
83306
|
}
|
|
83235
83307
|
if (start2.rowPinned === "bottom" && end2.rowPinned === "bottom") {
|
|
83236
83308
|
return _getNodesInRangeForSelection(pinnedRowModel, "bottom", start2, end2);
|
|
83237
83309
|
}
|
|
83238
83310
|
if (!start2.rowPinned && end2.rowPinned === "bottom") {
|
|
83239
83311
|
const pinned = _getNodesInRangeForSelection(pinnedRowModel, "bottom", void 0, end2);
|
|
83240
|
-
const
|
|
83241
|
-
return (rowModel.getNodesInRangeForSelection(start2,
|
|
83312
|
+
const last2 = rowModel.getRow(rowModel.getRowCount());
|
|
83313
|
+
return (rowModel.getNodesInRangeForSelection(start2, last2) ?? []).concat(pinned);
|
|
83242
83314
|
}
|
|
83243
83315
|
return null;
|
|
83244
83316
|
}
|
|
@@ -86354,13 +86426,13 @@ var RowDropHighlightService = class extends BeanStub {
|
|
|
86354
86426
|
super.destroy();
|
|
86355
86427
|
}
|
|
86356
86428
|
clear() {
|
|
86357
|
-
const
|
|
86429
|
+
const last2 = this.row;
|
|
86358
86430
|
this.dragging = false;
|
|
86359
|
-
if (
|
|
86431
|
+
if (last2) {
|
|
86360
86432
|
this.uiLevel = 0;
|
|
86361
86433
|
this.position = "none";
|
|
86362
86434
|
this.row = null;
|
|
86363
|
-
|
|
86435
|
+
last2.dispatchRowEvent("rowHighlightChanged");
|
|
86364
86436
|
}
|
|
86365
86437
|
}
|
|
86366
86438
|
set(row2, dropIndicatorPosition) {
|
|
@@ -86382,8 +86454,8 @@ var RowDropHighlightService = class extends BeanStub {
|
|
|
86382
86454
|
fromDrag(draggingEvent) {
|
|
86383
86455
|
const rowsDrop = draggingEvent?.dropTarget;
|
|
86384
86456
|
if (rowsDrop) {
|
|
86385
|
-
const { highlight, target, position } = rowsDrop;
|
|
86386
|
-
if (
|
|
86457
|
+
const { highlight: highlight2, target, position } = rowsDrop;
|
|
86458
|
+
if (highlight2 && target && position !== "none") {
|
|
86387
86459
|
this.set(target, position);
|
|
86388
86460
|
this.dragging = true;
|
|
86389
86461
|
return;
|
|
@@ -111224,8 +111296,8 @@ var nodeHasLeafEdit = (children2, editModelSvc, column2) => {
|
|
|
111224
111296
|
for (let i2 = 0, len = children2.length; i2 < len; ++i2) {
|
|
111225
111297
|
const child = children2[i2];
|
|
111226
111298
|
if (child.data) {
|
|
111227
|
-
const
|
|
111228
|
-
if (
|
|
111299
|
+
const highlight2 = editHighlightFn(editModelSvc?.getEdit({ rowNode: child, column: column2 })) || editHighlightFn(editModelSvc?.getEdit({ rowNode: child.pinnedSibling, column: column2 }));
|
|
111300
|
+
if (highlight2) {
|
|
111229
111301
|
return true;
|
|
111230
111302
|
}
|
|
111231
111303
|
}
|
|
@@ -114307,14 +114379,14 @@ var updateRowNodeAfterSort = (rowNode) => {
|
|
|
114307
114379
|
}
|
|
114308
114380
|
for (let i2 = 0, lastIdx = childrenAfterSort.length - 1; i2 <= lastIdx; i2++) {
|
|
114309
114381
|
const child = childrenAfterSort[i2];
|
|
114310
|
-
const
|
|
114311
|
-
const
|
|
114312
|
-
if (child.firstChild !==
|
|
114313
|
-
child.firstChild =
|
|
114382
|
+
const first2 = i2 === 0;
|
|
114383
|
+
const last2 = i2 === lastIdx;
|
|
114384
|
+
if (child.firstChild !== first2) {
|
|
114385
|
+
child.firstChild = first2;
|
|
114314
114386
|
child.dispatchRowEvent("firstChildChanged");
|
|
114315
114387
|
}
|
|
114316
|
-
if (child.lastChild !==
|
|
114317
|
-
child.lastChild =
|
|
114388
|
+
if (child.lastChild !== last2) {
|
|
114389
|
+
child.lastChild = last2;
|
|
114318
114390
|
child.dispatchRowEvent("lastChildChanged");
|
|
114319
114391
|
}
|
|
114320
114392
|
if (child.childIndex !== i2) {
|