@lvce-editor/chat-debug-view 2.7.0 → 2.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1334,6 +1334,22 @@ const getCss = () => {
|
|
|
1334
1334
|
.TokenBoolean {
|
|
1335
1335
|
color: var(--vscode-debugTokenExpression-boolean, var(--vscode-charts-yellow, #dcdcaa));
|
|
1336
1336
|
}
|
|
1337
|
+
|
|
1338
|
+
.ChatOrderedList{
|
|
1339
|
+
margin:0;
|
|
1340
|
+
padding:0;
|
|
1341
|
+
padding-left:10px;
|
|
1342
|
+
}
|
|
1343
|
+
|
|
1344
|
+
.ChatOrderedListItem{
|
|
1345
|
+
margin:0;
|
|
1346
|
+
padding:0;
|
|
1347
|
+
}
|
|
1348
|
+
|
|
1349
|
+
.ChatToolCalls{
|
|
1350
|
+
margin:0;
|
|
1351
|
+
padding:0;
|
|
1352
|
+
}
|
|
1337
1353
|
`;
|
|
1338
1354
|
};
|
|
1339
1355
|
|
|
@@ -1357,6 +1373,7 @@ const text = data => {
|
|
|
1357
1373
|
};
|
|
1358
1374
|
|
|
1359
1375
|
const HandleInput = 4;
|
|
1376
|
+
const HandleFilterInput = 5;
|
|
1360
1377
|
|
|
1361
1378
|
const numberRegex = /^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/;
|
|
1362
1379
|
const getTokenSegments = json => {
|
|
@@ -1485,7 +1502,7 @@ const getChatDebugViewDom = (sessionId, errorMessage, filterValue, showEventStre
|
|
|
1485
1502
|
childCount: 0,
|
|
1486
1503
|
className: 'InputBox',
|
|
1487
1504
|
name: Filter,
|
|
1488
|
-
onInput:
|
|
1505
|
+
onInput: HandleFilterInput,
|
|
1489
1506
|
placeholder: 'Filter events',
|
|
1490
1507
|
type: Input,
|
|
1491
1508
|
value: filterValue
|
|
@@ -1544,6 +1561,10 @@ const getVisibleEvents = (events, showInputEvents, showResponsePartEvents, showE
|
|
|
1544
1561
|
if (!showEventStreamFinishedEvents && event.type === 'event-stream-finished') {
|
|
1545
1562
|
return false;
|
|
1546
1563
|
}
|
|
1564
|
+
// hide session creation events by default — not useful in the debug view
|
|
1565
|
+
if (event.type === 'chat-session-created') {
|
|
1566
|
+
return false;
|
|
1567
|
+
}
|
|
1547
1568
|
return true;
|
|
1548
1569
|
});
|
|
1549
1570
|
};
|
|
@@ -1605,6 +1626,9 @@ const render2 = (uid, diffResult) => {
|
|
|
1605
1626
|
|
|
1606
1627
|
const renderEventListeners = () => {
|
|
1607
1628
|
return [{
|
|
1629
|
+
name: HandleFilterInput,
|
|
1630
|
+
params: ['handleInput', TargetName, TargetValue]
|
|
1631
|
+
}, {
|
|
1608
1632
|
name: HandleInput,
|
|
1609
1633
|
params: ['handleInput', TargetName, TargetValue, TargetChecked]
|
|
1610
1634
|
}];
|