@adecore/agents-react 0.69.1 → 0.70.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agents/provider-paths.js +3 -1
- package/dist/chat/activity.d.ts +2 -0
- package/dist/chat/activity.js +18 -4
- package/dist/chat/logic/timeline.js +3 -0
- package/dist/chat/logic/tools.d.ts +1 -0
- package/dist/chat/logic/tools.js +4 -0
- package/dist/chat/ui/ChatActivity.js +20 -17
- package/dist/chat/ui/rows/MessageRows.d.ts +2 -1
- package/dist/chat/ui/rows/MessageRows.js +61 -48
- package/dist/chat/ui/rows/Rows.js +163 -160
- package/dist/chat/ui/rows/WorkRows.js +125 -112
- package/dist/chat/ui/rows/WorkflowRow.js +2 -2
- package/dist/chat/waiting-on.js +3 -3
- package/dist/locales/en/agent-chat.d.ts +4 -0
- package/dist/locales/en/agent-chat.js +4 -0
- package/dist/locales/nl/agent-chat.d.ts +4 -0
- package/dist/locales/nl/agent-chat.js +4 -0
- package/dist/theme.css +3 -0
- package/dist/usage/format.js +4 -2
- package/package.json +9 -9
- package/src/agents/provider-paths.ts +4 -1
- package/src/chat/activity.ts +21 -5
- package/src/chat/logic/timeline.ts +4 -0
- package/src/chat/logic/tools.ts +5 -0
- package/src/chat/ui/ChatActivity.tsx +14 -8
- package/src/chat/ui/rows/MessageRows.tsx +3 -2
- package/src/chat/ui/rows/Rows.tsx +1 -1
- package/src/chat/ui/rows/WorkRows.tsx +5 -4
- package/src/chat/ui/rows/WorkflowRow.tsx +2 -2
- package/src/chat/waiting-on.ts +3 -6
- package/src/locales/en/agent-chat.ts +4 -0
- package/src/locales/nl/agent-chat.ts +4 -0
- package/src/theme.css +3 -0
- package/src/usage/format.ts +4 -2
|
@@ -14,7 +14,7 @@ import { useAwaitsApproval, useCurrentItem } from '../../../state/chats.js';
|
|
|
14
14
|
import { useChatActions } from '../../actions.js';
|
|
15
15
|
import { formatBytes } from '../../attachments.js';
|
|
16
16
|
import { lookKey, lookRunOf } from '../../logic/command-looks.js';
|
|
17
|
-
import { exitCodeOf, fileChanges, hasOutput, hasToolBody, liveOutput, readImagePath, shellCommand, toolCallLines, toolStartedAt, toolSummary, toolSummaryIsPath, unifiedChanges } from '../../logic/tools.js';
|
|
17
|
+
import { exitCodeOf, fileChanges, hasOutput, hasToolBody, liveOutput, readImagePath, shellCommand, toolCallLines, toolFailed, toolStartedAt, toolSummary, toolSummaryIsPath, unifiedChanges } from '../../logic/tools.js';
|
|
18
18
|
import { useTimelineFlash } from '../../timeline-flash.js';
|
|
19
19
|
import { AnsiOutput } from '../AnsiOutput.js';
|
|
20
20
|
import { DiffStack, ReviewStackView } from '../diff/DiffStack.js';
|
|
@@ -867,7 +867,7 @@ function DiffBody(t0) {
|
|
|
867
867
|
render: /*#__PURE__*/_jsx("pre", {}),
|
|
868
868
|
"data-find-field": "output",
|
|
869
869
|
className: "max-h-64",
|
|
870
|
-
viewportClassName: clsx("whitespace-pre-wrap font-mono text-code select-text", tool
|
|
870
|
+
viewportClassName: clsx("whitespace-pre-wrap font-mono text-code select-text", toolFailed(tool) ? "text-chat-removed" : "text-chat-output"),
|
|
871
871
|
children: /*#__PURE__*/_jsx(OutputText, {
|
|
872
872
|
text: text,
|
|
873
873
|
whole: whole,
|
|
@@ -905,7 +905,7 @@ function DiffBody(t0) {
|
|
|
905
905
|
}
|
|
906
906
|
/* What a call answered, muted under the call; a failure in the error color, or its exit code when the tool names one. */
|
|
907
907
|
function ToolOutput(t0) {
|
|
908
|
-
const $ = _c(
|
|
908
|
+
const $ = _c(24);
|
|
909
909
|
const {
|
|
910
910
|
tool,
|
|
911
911
|
chatId
|
|
@@ -920,19 +920,27 @@ function ToolOutput(t0) {
|
|
|
920
920
|
if (!hasOutput(text)) {
|
|
921
921
|
return null;
|
|
922
922
|
}
|
|
923
|
-
const failed = tool.state === "error";
|
|
924
|
-
let code;
|
|
925
923
|
let t1;
|
|
926
|
-
if ($[0] !==
|
|
924
|
+
if ($[0] !== tool) {
|
|
925
|
+
t1 = toolFailed(tool);
|
|
926
|
+
$[0] = tool;
|
|
927
|
+
$[1] = t1;
|
|
928
|
+
} else {
|
|
929
|
+
t1 = $[1];
|
|
930
|
+
}
|
|
931
|
+
const failed = t1;
|
|
932
|
+
let code;
|
|
933
|
+
let t2;
|
|
934
|
+
if ($[2] !== failed || $[3] !== text || $[4] !== tool.outputRef || $[5] !== whole) {
|
|
927
935
|
const {
|
|
928
|
-
code:
|
|
936
|
+
code: t3,
|
|
929
937
|
rest
|
|
930
938
|
} = failed ? exitCodeOf(text) : {
|
|
931
939
|
code: null,
|
|
932
940
|
rest: text
|
|
933
941
|
};
|
|
934
|
-
code =
|
|
935
|
-
|
|
942
|
+
code = t3;
|
|
943
|
+
t2 = hasOutput(rest) && /*#__PURE__*/_jsx(ScrollArea, {
|
|
936
944
|
render: /*#__PURE__*/_jsx("pre", {}),
|
|
937
945
|
"data-find-field": "output",
|
|
938
946
|
className: "max-h-64",
|
|
@@ -943,76 +951,76 @@ function ToolOutput(t0) {
|
|
|
943
951
|
stored: tool.outputRef !== undefined
|
|
944
952
|
})
|
|
945
953
|
});
|
|
946
|
-
$[
|
|
947
|
-
$[
|
|
948
|
-
$[
|
|
949
|
-
$[
|
|
950
|
-
$[
|
|
951
|
-
$[5] = t1;
|
|
952
|
-
} else {
|
|
953
|
-
code = $[4];
|
|
954
|
-
t1 = $[5];
|
|
955
|
-
}
|
|
956
|
-
let t2;
|
|
957
|
-
if ($[6] !== t) {
|
|
958
|
-
t2 = t("work.showFullOutput");
|
|
959
|
-
$[6] = t;
|
|
954
|
+
$[2] = failed;
|
|
955
|
+
$[3] = text;
|
|
956
|
+
$[4] = tool.outputRef;
|
|
957
|
+
$[5] = whole;
|
|
958
|
+
$[6] = code;
|
|
960
959
|
$[7] = t2;
|
|
961
960
|
} else {
|
|
961
|
+
code = $[6];
|
|
962
962
|
t2 = $[7];
|
|
963
963
|
}
|
|
964
964
|
let t3;
|
|
965
965
|
if ($[8] !== t) {
|
|
966
|
-
t3 = t("work.
|
|
966
|
+
t3 = t("work.showFullOutput");
|
|
967
967
|
$[8] = t;
|
|
968
968
|
$[9] = t3;
|
|
969
969
|
} else {
|
|
970
970
|
t3 = $[9];
|
|
971
971
|
}
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
972
|
+
let t4;
|
|
973
|
+
if ($[10] !== t) {
|
|
974
|
+
t4 = t("work.fullOutputFailed");
|
|
975
|
+
$[10] = t;
|
|
976
|
+
$[11] = t4;
|
|
977
|
+
} else {
|
|
978
|
+
t4 = $[11];
|
|
979
|
+
}
|
|
980
|
+
const t5 = tool.outputRef?.bytes;
|
|
981
|
+
let t6;
|
|
982
|
+
if ($[12] !== t3 || $[13] !== t4 || $[14] !== t5 || $[15] !== whole) {
|
|
983
|
+
t6 = /*#__PURE__*/_jsx(WholeBar, {
|
|
976
984
|
whole: whole,
|
|
977
|
-
label:
|
|
978
|
-
failedLabel:
|
|
979
|
-
bytes:
|
|
985
|
+
label: t3,
|
|
986
|
+
failedLabel: t4,
|
|
987
|
+
bytes: t5
|
|
980
988
|
});
|
|
981
|
-
$[
|
|
982
|
-
$[
|
|
983
|
-
$[12] = t4;
|
|
984
|
-
$[13] = whole;
|
|
989
|
+
$[12] = t3;
|
|
990
|
+
$[13] = t4;
|
|
985
991
|
$[14] = t5;
|
|
992
|
+
$[15] = whole;
|
|
993
|
+
$[16] = t6;
|
|
986
994
|
} else {
|
|
987
|
-
|
|
995
|
+
t6 = $[16];
|
|
988
996
|
}
|
|
989
|
-
let
|
|
990
|
-
if ($[
|
|
991
|
-
|
|
997
|
+
let t7;
|
|
998
|
+
if ($[17] !== code || $[18] !== t) {
|
|
999
|
+
t7 = code !== null && /*#__PURE__*/_jsx("div", {
|
|
992
1000
|
className: "text-status-error",
|
|
993
1001
|
children: t("work.exitCode", {
|
|
994
1002
|
code: String(code)
|
|
995
1003
|
})
|
|
996
1004
|
});
|
|
997
|
-
$[
|
|
998
|
-
$[
|
|
999
|
-
$[
|
|
1005
|
+
$[17] = code;
|
|
1006
|
+
$[18] = t;
|
|
1007
|
+
$[19] = t7;
|
|
1000
1008
|
} else {
|
|
1001
|
-
|
|
1009
|
+
t7 = $[19];
|
|
1002
1010
|
}
|
|
1003
|
-
let
|
|
1004
|
-
if ($[
|
|
1005
|
-
|
|
1006
|
-
children: [
|
|
1011
|
+
let t8;
|
|
1012
|
+
if ($[20] !== t2 || $[21] !== t6 || $[22] !== t7) {
|
|
1013
|
+
t8 = /*#__PURE__*/_jsxs(_Fragment, {
|
|
1014
|
+
children: [t2, t6, t7]
|
|
1007
1015
|
});
|
|
1008
|
-
$[
|
|
1009
|
-
$[
|
|
1010
|
-
$[
|
|
1011
|
-
$[
|
|
1016
|
+
$[20] = t2;
|
|
1017
|
+
$[21] = t6;
|
|
1018
|
+
$[22] = t7;
|
|
1019
|
+
$[23] = t8;
|
|
1012
1020
|
} else {
|
|
1013
|
-
|
|
1021
|
+
t8 = $[23];
|
|
1014
1022
|
}
|
|
1015
|
-
return
|
|
1023
|
+
return t8;
|
|
1016
1024
|
}
|
|
1017
1025
|
/* An opened call without a card: what it was asked in the foreground, what it answered muted below. With `chatId` it can ask for an output the thread keeps only the beginning of. */
|
|
1018
1026
|
export function ToolBody(t0) {
|
|
@@ -1177,7 +1185,7 @@ function _temp(t0) {
|
|
|
1177
1185
|
}, key);
|
|
1178
1186
|
}
|
|
1179
1187
|
export function WorkRow(t0) {
|
|
1180
|
-
const $ = _c(
|
|
1188
|
+
const $ = _c(62);
|
|
1181
1189
|
const {
|
|
1182
1190
|
tool,
|
|
1183
1191
|
chatId,
|
|
@@ -1295,9 +1303,17 @@ export function WorkRow(t0) {
|
|
|
1295
1303
|
} else {
|
|
1296
1304
|
t14 = $[32];
|
|
1297
1305
|
}
|
|
1298
|
-
|
|
1306
|
+
let t15;
|
|
1307
|
+
if ($[33] !== failed || $[34] !== tool) {
|
|
1308
|
+
t15 = failed ?? toolFailed(tool);
|
|
1309
|
+
$[33] = failed;
|
|
1310
|
+
$[34] = tool;
|
|
1311
|
+
$[35] = t15;
|
|
1312
|
+
} else {
|
|
1313
|
+
t15 = $[35];
|
|
1314
|
+
}
|
|
1299
1315
|
let t16;
|
|
1300
|
-
if ($[
|
|
1316
|
+
if ($[36] !== summary || $[37] !== t10 || $[38] !== t11 || $[39] !== t12 || $[40] !== t13 || $[41] !== t14 || $[42] !== t15 || $[43] !== t7 || $[44] !== t8 || $[45] !== t9 || $[46] !== tool.createdAt) {
|
|
1301
1317
|
t16 = /*#__PURE__*/_jsx(ToggleLine, {
|
|
1302
1318
|
icon: t7,
|
|
1303
1319
|
label: t8,
|
|
@@ -1311,61 +1327,61 @@ export function WorkRow(t0) {
|
|
|
1311
1327
|
failed: t15,
|
|
1312
1328
|
time: tool.createdAt
|
|
1313
1329
|
});
|
|
1314
|
-
$[
|
|
1315
|
-
$[
|
|
1316
|
-
$[
|
|
1317
|
-
$[
|
|
1318
|
-
$[
|
|
1319
|
-
$[
|
|
1320
|
-
$[
|
|
1321
|
-
$[
|
|
1322
|
-
$[
|
|
1323
|
-
$[
|
|
1324
|
-
$[
|
|
1325
|
-
$[
|
|
1326
|
-
} else {
|
|
1327
|
-
t16 = $[
|
|
1330
|
+
$[36] = summary;
|
|
1331
|
+
$[37] = t10;
|
|
1332
|
+
$[38] = t11;
|
|
1333
|
+
$[39] = t12;
|
|
1334
|
+
$[40] = t13;
|
|
1335
|
+
$[41] = t14;
|
|
1336
|
+
$[42] = t15;
|
|
1337
|
+
$[43] = t7;
|
|
1338
|
+
$[44] = t8;
|
|
1339
|
+
$[45] = t9;
|
|
1340
|
+
$[46] = tool.createdAt;
|
|
1341
|
+
$[47] = t16;
|
|
1342
|
+
} else {
|
|
1343
|
+
t16 = $[47];
|
|
1328
1344
|
}
|
|
1329
1345
|
let t17;
|
|
1330
|
-
if ($[
|
|
1346
|
+
if ($[48] !== ReadImage || $[49] !== image) {
|
|
1331
1347
|
t17 = image !== null && ReadImage !== null && /*#__PURE__*/_jsx(ReadImage, {
|
|
1332
1348
|
path: image
|
|
1333
1349
|
});
|
|
1334
|
-
$[
|
|
1335
|
-
$[
|
|
1336
|
-
$[
|
|
1350
|
+
$[48] = ReadImage;
|
|
1351
|
+
$[49] = image;
|
|
1352
|
+
$[50] = t17;
|
|
1337
1353
|
} else {
|
|
1338
|
-
t17 = $[
|
|
1354
|
+
t17 = $[50];
|
|
1339
1355
|
}
|
|
1340
1356
|
let t18;
|
|
1341
|
-
if ($[
|
|
1357
|
+
if ($[51] !== chatId || $[52] !== open || $[53] !== opens || $[54] !== tool) {
|
|
1342
1358
|
t18 = open && opens && /*#__PURE__*/_jsx(ToolBody, {
|
|
1343
1359
|
tool: tool,
|
|
1344
1360
|
chatId: chatId
|
|
1345
1361
|
});
|
|
1346
|
-
$[
|
|
1347
|
-
$[
|
|
1348
|
-
$[
|
|
1349
|
-
$[
|
|
1350
|
-
$[
|
|
1362
|
+
$[51] = chatId;
|
|
1363
|
+
$[52] = open;
|
|
1364
|
+
$[53] = opens;
|
|
1365
|
+
$[54] = tool;
|
|
1366
|
+
$[55] = t18;
|
|
1351
1367
|
} else {
|
|
1352
|
-
t18 = $[
|
|
1368
|
+
t18 = $[55];
|
|
1353
1369
|
}
|
|
1354
1370
|
let t19;
|
|
1355
|
-
if ($[
|
|
1371
|
+
if ($[56] !== t16 || $[57] !== t17 || $[58] !== t18 || $[59] !== t6 || $[60] !== tool.id) {
|
|
1356
1372
|
t19 = /*#__PURE__*/_jsxs("div", {
|
|
1357
1373
|
"data-find-item": tool.id,
|
|
1358
1374
|
className: t6,
|
|
1359
1375
|
children: [t16, t17, t18]
|
|
1360
1376
|
});
|
|
1361
|
-
$[
|
|
1362
|
-
$[
|
|
1363
|
-
$[
|
|
1364
|
-
$[
|
|
1365
|
-
$[
|
|
1366
|
-
$[
|
|
1377
|
+
$[56] = t16;
|
|
1378
|
+
$[57] = t17;
|
|
1379
|
+
$[58] = t18;
|
|
1380
|
+
$[59] = t6;
|
|
1381
|
+
$[60] = tool.id;
|
|
1382
|
+
$[61] = t19;
|
|
1367
1383
|
} else {
|
|
1368
|
-
t19 = $[
|
|
1384
|
+
t19 = $[61];
|
|
1369
1385
|
}
|
|
1370
1386
|
return t19;
|
|
1371
1387
|
}
|
|
@@ -1643,7 +1659,7 @@ export function WorkGroupRow(t0) {
|
|
|
1643
1659
|
const running = t1.length;
|
|
1644
1660
|
let t2;
|
|
1645
1661
|
if ($[2] !== tools) {
|
|
1646
|
-
t2 = tools.filter(
|
|
1662
|
+
t2 = tools.filter(toolFailed);
|
|
1647
1663
|
$[2] = tools;
|
|
1648
1664
|
$[3] = t2;
|
|
1649
1665
|
} else {
|
|
@@ -1654,7 +1670,7 @@ export function WorkGroupRow(t0) {
|
|
|
1654
1670
|
let latest;
|
|
1655
1671
|
let t3;
|
|
1656
1672
|
if ($[4] !== commandLooks || $[5] !== look || $[6] !== toolLooks || $[7] !== tools) {
|
|
1657
|
-
latest = tools.findLast(
|
|
1673
|
+
latest = tools.findLast(_temp5);
|
|
1658
1674
|
T0 = ToggleLine;
|
|
1659
1675
|
t3 = latest !== undefined ? callIcon(latest, commandLooks, toolLooks) : look === undefined ? toolIcon(tools[0].name) : /*#__PURE__*/_jsx(look.Mark, {
|
|
1660
1676
|
size: 12
|
|
@@ -1757,11 +1773,8 @@ export function WorkGroupRow(t0) {
|
|
|
1757
1773
|
* A settled turn folded behind how long it took and what it did. A line and not a button, like the
|
|
1758
1774
|
* tool lines it hides; the work reads fainter than the time so the eye lands on the time first.
|
|
1759
1775
|
*/
|
|
1760
|
-
function _temp6(tool_1) {
|
|
1761
|
-
return tool_1.state === "running";
|
|
1762
|
-
}
|
|
1763
1776
|
function _temp5(tool_0) {
|
|
1764
|
-
return tool_0.state === "
|
|
1777
|
+
return tool_0.state === "running";
|
|
1765
1778
|
}
|
|
1766
1779
|
function _temp4(tool) {
|
|
1767
1780
|
return tool.state === "running";
|
|
@@ -1787,7 +1800,7 @@ export function TurnFoldRow(t0) {
|
|
|
1787
1800
|
if ($[0] !== expandable || $[1] !== expanded || $[2] !== label || $[3] !== t1 || $[4] !== t2 || $[5] !== turn.state || $[6] !== work) {
|
|
1788
1801
|
const commandLooks = t1 === undefined ? [] : t1;
|
|
1789
1802
|
const toolLooks = t2 === undefined ? [] : t2;
|
|
1790
|
-
const brands = [...commandLooks, ...toolLooks].flatMap(
|
|
1803
|
+
const brands = [...commandLooks, ...toolLooks].flatMap(_temp6);
|
|
1791
1804
|
const t6 = expandable && "hover:bg-surface-hover";
|
|
1792
1805
|
const t7 = turn.state === "error" && "text-status-error";
|
|
1793
1806
|
let t8;
|
|
@@ -1932,7 +1945,7 @@ export function TurnFoldRow(t0) {
|
|
|
1932
1945
|
}
|
|
1933
1946
|
return t9;
|
|
1934
1947
|
}
|
|
1935
|
-
function
|
|
1948
|
+
function _temp6(t0) {
|
|
1936
1949
|
const {
|
|
1937
1950
|
brand
|
|
1938
1951
|
} = t0;
|
|
@@ -2048,7 +2061,7 @@ function ChangedFilesCard(t0) {
|
|
|
2048
2061
|
let t2;
|
|
2049
2062
|
let t3;
|
|
2050
2063
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2051
|
-
t2 = () => setExpanded(
|
|
2064
|
+
t2 = () => setExpanded(_temp7);
|
|
2052
2065
|
t3 = /*#__PURE__*/_jsx(Icon, {
|
|
2053
2066
|
icon: FileDiff,
|
|
2054
2067
|
size: 12,
|
|
@@ -2205,7 +2218,7 @@ function ChangedFilesCard(t0) {
|
|
|
2205
2218
|
* checkpoint but no stored diff asks the host for one, which is also how a running turn gets it.
|
|
2206
2219
|
* A diff the thread keeps only the first files of (`heldBack`) asks for the whole when a person does.
|
|
2207
2220
|
*/
|
|
2208
|
-
function
|
|
2221
|
+
function _temp7(value) {
|
|
2209
2222
|
return !value;
|
|
2210
2223
|
}
|
|
2211
2224
|
export function ChangedFilesRow(t0) {
|
|
@@ -2255,7 +2268,7 @@ export function ChangedFilesRow(t0) {
|
|
|
2255
2268
|
if (alive) {
|
|
2256
2269
|
setFetched(answer);
|
|
2257
2270
|
}
|
|
2258
|
-
}).catch(
|
|
2271
|
+
}).catch(_temp8);
|
|
2259
2272
|
return () => {
|
|
2260
2273
|
alive = false;
|
|
2261
2274
|
};
|
|
@@ -2277,7 +2290,7 @@ export function ChangedFilesRow(t0) {
|
|
|
2277
2290
|
const {
|
|
2278
2291
|
keyOf
|
|
2279
2292
|
} = useChatScope();
|
|
2280
|
-
const flash = useTimelineFlash(
|
|
2293
|
+
const flash = useTimelineFlash(_temp9);
|
|
2281
2294
|
let t6;
|
|
2282
2295
|
if ($[13] !== chatId || $[14] !== flash || $[15] !== keyOf || $[16] !== turnId) {
|
|
2283
2296
|
t6 = flash !== null && flash.opens && flash.key === keyOf(chatId) && flash.rowId === `files-${turnId}` ? flash.nonce : 0;
|
|
@@ -2296,7 +2309,7 @@ export function ChangedFilesRow(t0) {
|
|
|
2296
2309
|
const t8 = checkpointDiff.truncated;
|
|
2297
2310
|
let t9;
|
|
2298
2311
|
if ($[18] !== files) {
|
|
2299
|
-
t9 = files.reduce(
|
|
2312
|
+
t9 = files.reduce(_temp0, 0);
|
|
2300
2313
|
$[18] = files;
|
|
2301
2314
|
$[19] = t9;
|
|
2302
2315
|
} else {
|
|
@@ -2304,7 +2317,7 @@ export function ChangedFilesRow(t0) {
|
|
|
2304
2317
|
}
|
|
2305
2318
|
let t10;
|
|
2306
2319
|
if ($[20] !== files) {
|
|
2307
|
-
t10 = files.reduce(
|
|
2320
|
+
t10 = files.reduce(_temp1, 0);
|
|
2308
2321
|
$[20] = files;
|
|
2309
2322
|
$[21] = t10;
|
|
2310
2323
|
} else {
|
|
@@ -2394,16 +2407,16 @@ export function ChangedFilesRow(t0) {
|
|
|
2394
2407
|
}
|
|
2395
2408
|
return t7;
|
|
2396
2409
|
}
|
|
2397
|
-
function
|
|
2410
|
+
function _temp1(sum_0, file_0) {
|
|
2398
2411
|
return sum_0 + file_0.deleted;
|
|
2399
2412
|
}
|
|
2400
|
-
function
|
|
2413
|
+
function _temp0(sum, file) {
|
|
2401
2414
|
return sum + file.added;
|
|
2402
2415
|
}
|
|
2403
|
-
function
|
|
2416
|
+
function _temp9(s) {
|
|
2404
2417
|
return s.target;
|
|
2405
2418
|
}
|
|
2406
|
-
function
|
|
2419
|
+
function _temp8() {}
|
|
2407
2420
|
function ProviderReviewFiles(t0) {
|
|
2408
2421
|
const $ = _c(16);
|
|
2409
2422
|
const {
|
|
@@ -2429,7 +2442,7 @@ function ProviderReviewFiles(t0) {
|
|
|
2429
2442
|
} else {
|
|
2430
2443
|
t2 = $[4];
|
|
2431
2444
|
}
|
|
2432
|
-
t1 = reviews.filter(t2).flatMap(
|
|
2445
|
+
t1 = reviews.filter(t2).flatMap(_temp10);
|
|
2433
2446
|
$[0] = open;
|
|
2434
2447
|
$[1] = reviews;
|
|
2435
2448
|
$[2] = t1;
|
|
@@ -2487,7 +2500,7 @@ function ProviderReviewFiles(t0) {
|
|
|
2487
2500
|
return t2;
|
|
2488
2501
|
}
|
|
2489
2502
|
/* The fallback card, built from what the CLI itself reported about its edits. */
|
|
2490
|
-
function
|
|
2503
|
+
function _temp10(t0) {
|
|
2491
2504
|
const {
|
|
2492
2505
|
reviews: reviews_0
|
|
2493
2506
|
} = t0;
|
|
@@ -2529,7 +2542,7 @@ function ProviderChangedFiles(t0) {
|
|
|
2529
2542
|
entryFor(change.path || tool.id).edits.push(change);
|
|
2530
2543
|
}
|
|
2531
2544
|
}
|
|
2532
|
-
t1 = [...byPath].map(
|
|
2545
|
+
t1 = [...byPath].map(_temp11);
|
|
2533
2546
|
$[0] = tools;
|
|
2534
2547
|
$[1] = byPath;
|
|
2535
2548
|
$[2] = t1;
|
|
@@ -2569,7 +2582,7 @@ function ProviderChangedFiles(t0) {
|
|
|
2569
2582
|
return t3;
|
|
2570
2583
|
}
|
|
2571
2584
|
/* "Working for 00:14", under the mark of the call running last; between calls, a spinner. */
|
|
2572
|
-
function
|
|
2585
|
+
function _temp11(t0) {
|
|
2573
2586
|
const [path_0, entry] = t0;
|
|
2574
2587
|
return {
|
|
2575
2588
|
path: path_0,
|
|
@@ -8,7 +8,7 @@ import { useChatHost } from '../../../host/host.js';
|
|
|
8
8
|
import { useChatScope } from '../../../scope.js';
|
|
9
9
|
import { useChats } from '../../../state/chats.js';
|
|
10
10
|
import { useChatActions } from '../../actions.js';
|
|
11
|
-
import { hasToolBody } from '../../logic/tools.js';
|
|
11
|
+
import { hasToolBody, toolFailed } from '../../logic/tools.js';
|
|
12
12
|
import { workflowCounts, workflowDescription, workflowPhases } from '../../logic/workflow.js';
|
|
13
13
|
import { useSubagentSupport } from '../../subagent-support.js';
|
|
14
14
|
import { ROW_GUTTER } from '../icons.js';
|
|
@@ -242,7 +242,7 @@ export function WorkflowRow(t0) {
|
|
|
242
242
|
t6 = $[15];
|
|
243
243
|
}
|
|
244
244
|
const stop = t6;
|
|
245
|
-
const failed = tool
|
|
245
|
+
const failed = toolFailed(tool);
|
|
246
246
|
const t7 = running && "text-accent";
|
|
247
247
|
let t8;
|
|
248
248
|
if ($[16] !== t7) {
|
package/dist/chat/waiting-on.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { formatMoment } from '@adecore/ui/format';
|
|
2
2
|
import i18next from 'i18next';
|
|
3
|
-
import { backgroundTaskName } from './activity.js';
|
|
3
|
+
import { backgroundTaskName, backgroundTaskTime } from './activity.js';
|
|
4
4
|
/*
|
|
5
5
|
* The one thing a chat waits on, most pressing first: a child that needs the person, a child paused
|
|
6
6
|
* until a time, the oldest command or monitor in the background, background subagents and workflows,
|
|
@@ -62,7 +62,7 @@ export function waitingOnLabel(waiting, now) {
|
|
|
62
62
|
case 'command':
|
|
63
63
|
return t('waitingOn.command', {
|
|
64
64
|
command: backgroundTaskName(waiting.task),
|
|
65
|
-
age:
|
|
65
|
+
age: backgroundTaskTime(waiting.task, now)
|
|
66
66
|
});
|
|
67
67
|
case 'background':
|
|
68
68
|
if (waiting.subagents === 0 && waiting.workflows === 0) {
|
|
@@ -495,6 +495,10 @@ export default {
|
|
|
495
495
|
other: 'Background task',
|
|
496
496
|
others_one: '{{count}} background task',
|
|
497
497
|
others_other: '{{count}} background tasks',
|
|
498
|
+
wakeup: 'Scheduled wakeup',
|
|
499
|
+
wakeups_one: '{{count}} scheduled wakeup',
|
|
500
|
+
wakeups_other: '{{count}} scheduled wakeups',
|
|
501
|
+
wakesAt: 'wakes at {{time}}',
|
|
498
502
|
stop: 'Stop',
|
|
499
503
|
stopFailed: 'Could not stop task'
|
|
500
504
|
},
|
|
@@ -495,6 +495,10 @@ export default {
|
|
|
495
495
|
other: 'Achtergrondtaak',
|
|
496
496
|
others_one: '{{count}} achtergrondtaak',
|
|
497
497
|
others_other: '{{count}} achtergrondtaken',
|
|
498
|
+
wakeup: 'Geplande wekker',
|
|
499
|
+
wakeups_one: '{{count}} geplande wekker',
|
|
500
|
+
wakeups_other: '{{count}} geplande wekkers',
|
|
501
|
+
wakesAt: 'gaat af om {{time}}',
|
|
498
502
|
stop: 'Stoppen',
|
|
499
503
|
stopFailed: 'Kon de taak niet stoppen'
|
|
500
504
|
},
|
package/dist/theme.css
CHANGED
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
--chart-copilot: #64748b;
|
|
18
18
|
--chart-nanogpt: #34c759;
|
|
19
19
|
--chart-grok: #ff2d55;
|
|
20
|
+
--chart-antigravity: #5856d6;
|
|
20
21
|
/* What a chat's context holds, one color per part; the rest is the system's and stays gray. */
|
|
21
22
|
--chart-context-tools: #4d7ce6;
|
|
22
23
|
--chart-context-files: #9a63e0;
|
|
@@ -45,6 +46,7 @@
|
|
|
45
46
|
--chart-copilot: #94a3b8;
|
|
46
47
|
--chart-nanogpt: #30d158;
|
|
47
48
|
--chart-grok: #ff375f;
|
|
49
|
+
--chart-antigravity: #5e5ce6;
|
|
48
50
|
--chart-context-tools: #8aa7f5;
|
|
49
51
|
--chart-context-files: #b98af3;
|
|
50
52
|
--chart-context-conversation: #6dd08b;
|
|
@@ -79,6 +81,7 @@
|
|
|
79
81
|
--color-chart-copilot: var(--chart-copilot);
|
|
80
82
|
--color-chart-nanogpt: var(--chart-nanogpt);
|
|
81
83
|
--color-chart-grok: var(--chart-grok);
|
|
84
|
+
--color-chart-antigravity: var(--chart-antigravity);
|
|
82
85
|
--color-chart-context-tools: var(--chart-context-tools);
|
|
83
86
|
--color-chart-context-files: var(--chart-context-files);
|
|
84
87
|
--color-chart-context-conversation: var(--chart-context-conversation);
|
package/dist/usage/format.js
CHANGED
|
@@ -24,7 +24,8 @@ export const PROVIDER_LABELS = {
|
|
|
24
24
|
nanogpt: 'NanoGPT',
|
|
25
25
|
grok: 'Grok',
|
|
26
26
|
copilot: 'GitHub Copilot',
|
|
27
|
-
'anthropic-claude-api': 'Claude API'
|
|
27
|
+
'anthropic-claude-api': 'Claude API',
|
|
28
|
+
antigravity: 'Antigravity'
|
|
28
29
|
};
|
|
29
30
|
export const PROVIDER_COLORS = {
|
|
30
31
|
claude: 'var(--chart-claude)',
|
|
@@ -32,7 +33,8 @@ export const PROVIDER_COLORS = {
|
|
|
32
33
|
nanogpt: 'var(--chart-nanogpt)',
|
|
33
34
|
grok: 'var(--chart-grok)',
|
|
34
35
|
copilot: 'var(--chart-copilot)',
|
|
35
|
-
'anthropic-claude-api': 'var(--chart-claude-api)'
|
|
36
|
+
'anthropic-claude-api': 'var(--chart-claude-api)',
|
|
37
|
+
antigravity: 'var(--chart-antigravity)'
|
|
36
38
|
};
|
|
37
39
|
/*
|
|
38
40
|
* A slot is `2026-09-10` or `2026-09-10T14`, already in the viewer's own zone, so it is read as plain
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adecore/agents-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.70.0",
|
|
4
4
|
"description": "React agent chat threads, composers, approvals, provider accounts and usage views.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -72,12 +72,12 @@
|
|
|
72
72
|
"test:visuals": "bun --config=integration.bunfig.toml --conditions=source test ./src/chat/visual-viewport.integration.test.ts"
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
|
-
"@adecore/agent-contracts": "0.
|
|
76
|
-
"@adecore/editor": "0.
|
|
77
|
-
"@adecore/editor-react": "0.
|
|
78
|
-
"@adecore/intelligent-ui": "0.
|
|
79
|
-
"@adecore/merge": "0.
|
|
80
|
-
"@adecore/utils": "0.
|
|
75
|
+
"@adecore/agent-contracts": "0.70.0",
|
|
76
|
+
"@adecore/editor": "0.70.0",
|
|
77
|
+
"@adecore/editor-react": "0.70.0",
|
|
78
|
+
"@adecore/intelligent-ui": "0.70.0",
|
|
79
|
+
"@adecore/merge": "0.70.0",
|
|
80
|
+
"@adecore/utils": "0.70.0",
|
|
81
81
|
"@codemirror/commands": "^6.11.1",
|
|
82
82
|
"@codemirror/language": "^6.13.1",
|
|
83
83
|
"@codemirror/state": "^6.7.6",
|
|
@@ -101,14 +101,14 @@
|
|
|
101
101
|
"zustand": "^5.1.0"
|
|
102
102
|
},
|
|
103
103
|
"peerDependencies": {
|
|
104
|
-
"@adecore/ui": "^0.
|
|
104
|
+
"@adecore/ui": "^0.70.0",
|
|
105
105
|
"i18next": "^26.4.2 || ^27.0.0",
|
|
106
106
|
"react": "^19.3.0",
|
|
107
107
|
"react-dom": "^19.3.0",
|
|
108
108
|
"react-i18next": "^17.0.15 || ^18.0.0"
|
|
109
109
|
},
|
|
110
110
|
"devDependencies": {
|
|
111
|
-
"@adecore/ui": "0.
|
|
111
|
+
"@adecore/ui": "0.70.0",
|
|
112
112
|
"@types/bun": "^1.4.4",
|
|
113
113
|
"@types/react": "^19.3.0",
|
|
114
114
|
"@types/react-dom": "^19.3.0",
|
|
@@ -21,7 +21,10 @@ export const PROVIDER_PATHS: Record<UsageProvider, string> = {
|
|
|
21
21
|
codex: 'M21.55 10.004a5.416 5.416 0 00-.478-4.501c-1.217-2.09-3.662-3.166-6.05-2.66A5.59 5.59 0 0010.831 1C8.39.995 6.224 2.546 5.473 4.838A5.553 5.553 0 001.76 7.496a5.487 5.487 0 00.691 6.5 5.416 5.416 0 00.477 4.502c1.217 2.09 3.662 3.165 6.05 2.66A5.586 5.586 0 0013.168 23c2.443.006 4.61-1.546 5.361-3.84a5.554 5.554 0 003.715-2.66 5.488 5.488 0 00-.693-6.497v.001zm-8.381 11.558a4.199 4.199 0 01-2.675-.954c.034-.018.093-.05.132-.074l4.44-2.53a.71.71 0 00.364-.623v-6.176l1.877 1.069c.02.01.033.029.036.05v5.115c-.003 2.274-1.87 4.118-4.174 4.123zM4.192 17.78a4.059 4.059 0 01-.498-2.763c.032.019.09.055.131.078l4.44 2.53c.225.13.504.13.73 0l5.42-3.088v2.138a.068.068 0 01-.027.057L9.9 19.288c-1.999 1.136-4.552.46-5.707-1.51h-.001zM3.023 8.216A4.15 4.15 0 015.198 6.41l-.002.151v5.06a.711.711 0 00.364.624l5.42 3.087-1.876 1.07a.067.067 0 01-.063.005l-4.489-2.559c-1.995-1.14-2.679-3.658-1.53-5.63h.001zm15.417 3.54l-5.42-3.088L14.896 7.6a.067.067 0 01.063-.006l4.489 2.557c1.998 1.14 2.683 3.662 1.529 5.633a4.163 4.163 0 01-2.174 1.807V12.38a.71.71 0 00-.363-.623zm1.867-2.773a6.04 6.04 0 00-.132-.078l-4.44-2.53a.731.731 0 00-.729 0l-5.42 3.088V7.325a.068.068 0 01.027-.057L14.1 4.713c2-1.137 4.555-.46 5.707 1.513.487.833.664 1.809.499 2.757h.001zm-11.741 3.81l-1.877-1.068a.065.065 0 01-.036-.051V6.559c.001-2.277 1.873-4.122 4.181-4.12.976 0 1.92.338 2.671.954-.034.018-.092.05-.131.073l-4.44 2.53a.71.71 0 00-.365.623l-.003 6.173v.001zm1.02-2.168L12 9.25l2.414 1.375v2.75L12 14.75l-2.415-1.375v-2.75z',
|
|
22
22
|
nanogpt: 'M5 20V4h2.6l8.8 11.2V4H19v16h-2.6L7.6 8.8V20z',
|
|
23
23
|
grok: 'M6.469 8.776 16.512 23h-4.464L2.005 8.776H6.47Zm-.004 7.9 2.233 3.164L6.467 23H2l4.465-6.324ZM22 2.582V23h-3.659V7.764L22 2.582ZM22 1l-9.952 14.095-2.233-3.163L17.533 1H22Z',
|
|
24
|
-
copilot: siGithubcopilot.path
|
|
24
|
+
copilot: siGithubcopilot.path,
|
|
25
|
+
// The mark Google lists in the ACP registry (`antigravity-acp/icon.svg`), scaled from 16 to 24 units.
|
|
26
|
+
antigravity:
|
|
27
|
+
'M21.2178 22.0227C22.4906 22.9773 24.3996 22.341 22.6496 20.591C17.3997 15.4999 18.5132 1.5 11.9905 1.5C5.4678 1.5 6.5814 15.4999 1.3314 20.591C-0.5777 22.5 1.4905 22.9773 2.7632 22.0227C7.695 18.6818 7.3769 12.7955 11.9905 12.7955C16.6041 12.7955 16.286 18.6818 21.2178 22.0227Z'
|
|
25
28
|
};
|
|
26
29
|
|
|
27
30
|
/* The CLIs drawn with the logo of the usage page rather than their agent mark. */
|