@athenaintel/react 0.15.1 → 0.16.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/chat-ui.cjs +1 -1
- package/dist/chat-ui.js +2 -2
- package/dist/index.cjs +347 -89
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +348 -90
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/tools/file-tool-uis.d.ts +8 -0
- package/dist/tools/todo-plan-store.d.ts +29 -0
- package/dist/tools/write-todos-tool-ui.d.ts +1 -0
- package/dist/{use-rest-conversation-history-DYvfgoBF.js → use-rest-conversation-history-BZ9Pl9kF.js} +2 -2
- package/dist/{use-rest-conversation-history-DYvfgoBF.js.map → use-rest-conversation-history-BZ9Pl9kF.js.map} +1 -1
- package/dist/{use-rest-conversation-history-CBPqoHoe.cjs → use-rest-conversation-history-DqpE-QGK.cjs} +2 -2
- package/dist/{use-rest-conversation-history-CBPqoHoe.cjs.map → use-rest-conversation-history-DqpE-QGK.cjs.map} +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -19,7 +19,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
19
19
|
});
|
|
20
20
|
var _mutations, _scopes, _mutationId, _a2, _queries, _b, _queryCache, _mutationCache, _defaultOptions, _queryDefaults, _mutationDefaults, _mountCount, _unsubscribeFocus, _unsubscribeOnline, _c;
|
|
21
21
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
22
|
-
const useRestConversationHistory = require("./use-rest-conversation-history-
|
|
22
|
+
const useRestConversationHistory = require("./use-rest-conversation-history-DqpE-QGK.cjs");
|
|
23
23
|
const React = require("react");
|
|
24
24
|
const jsxRuntime = require("react/jsx-runtime");
|
|
25
25
|
const react = require("@assistant-ui/react");
|
|
@@ -2228,7 +2228,7 @@ class Doc {
|
|
|
2228
2228
|
return new F(...args, lines.join("\n"));
|
|
2229
2229
|
}
|
|
2230
2230
|
}
|
|
2231
|
-
const version = {
|
|
2231
|
+
const version$1 = {
|
|
2232
2232
|
major: 4,
|
|
2233
2233
|
minor: 4,
|
|
2234
2234
|
patch: 3
|
|
@@ -2239,7 +2239,7 @@ const $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
2239
2239
|
inst ?? (inst = {});
|
|
2240
2240
|
inst._zod.def = def;
|
|
2241
2241
|
inst._zod.bag = inst._zod.bag || {};
|
|
2242
|
-
inst._zod.version = version;
|
|
2242
|
+
inst._zod.version = version$1;
|
|
2243
2243
|
const checks = [...inst._zod.def.checks ?? []];
|
|
2244
2244
|
if (inst._zod.traits.has("$ZodCheck")) {
|
|
2245
2245
|
checks.unshift(inst);
|
|
@@ -8982,11 +8982,11 @@ function createContextScope(scopeName, createContextScopeDeps = []) {
|
|
|
8982
8982
|
return [createContext3, composeContextScopes(createScope, ...createContextScopeDeps)];
|
|
8983
8983
|
}
|
|
8984
8984
|
__name$d(createContextScope, "createContextScope");
|
|
8985
|
-
function composeContextScopes(...
|
|
8986
|
-
const baseScope =
|
|
8987
|
-
if (
|
|
8985
|
+
function composeContextScopes(...scopes2) {
|
|
8986
|
+
const baseScope = scopes2[0];
|
|
8987
|
+
if (scopes2.length === 1) return baseScope;
|
|
8988
8988
|
const createScope = /* @__PURE__ */ __name$d(() => {
|
|
8989
|
-
const scopeHooks =
|
|
8989
|
+
const scopeHooks = scopes2.map((createScope2) => ({
|
|
8990
8990
|
useScope: createScope2(),
|
|
8991
8991
|
scopeName: createScope2.scopeName
|
|
8992
8992
|
}));
|
|
@@ -10772,22 +10772,22 @@ function TooltipContent({
|
|
|
10772
10772
|
}
|
|
10773
10773
|
const createStoreImpl = (createState) => {
|
|
10774
10774
|
let state;
|
|
10775
|
-
const
|
|
10775
|
+
const listeners2 = /* @__PURE__ */ new Set();
|
|
10776
10776
|
const setState = (partial2, replace2) => {
|
|
10777
10777
|
const nextState = typeof partial2 === "function" ? partial2(state) : partial2;
|
|
10778
10778
|
if (!Object.is(nextState, state)) {
|
|
10779
10779
|
const previousState = state;
|
|
10780
10780
|
state = (replace2 != null ? replace2 : typeof nextState !== "object" || nextState === null) ? nextState : Object.assign({}, state, nextState);
|
|
10781
|
-
|
|
10781
|
+
listeners2.forEach((listener) => listener(state, previousState));
|
|
10782
10782
|
}
|
|
10783
10783
|
};
|
|
10784
10784
|
const getState2 = () => state;
|
|
10785
10785
|
const getInitialState = () => initialState;
|
|
10786
|
-
const
|
|
10787
|
-
|
|
10788
|
-
return () =>
|
|
10786
|
+
const subscribe2 = (listener) => {
|
|
10787
|
+
listeners2.add(listener);
|
|
10788
|
+
return () => listeners2.delete(listener);
|
|
10789
10789
|
};
|
|
10790
|
-
const api = { setState, getState: getState2, getInitialState, subscribe };
|
|
10790
|
+
const api = { setState, getState: getState2, getInitialState, subscribe: subscribe2 };
|
|
10791
10791
|
const initialState = state = createState(setState, getState2, api);
|
|
10792
10792
|
return api;
|
|
10793
10793
|
};
|
|
@@ -23480,40 +23480,40 @@ function detectMentionTypeFromUrl(url) {
|
|
|
23480
23480
|
* This source code is licensed under the ISC license.
|
|
23481
23481
|
* See the LICENSE file in the root directory of this source tree.
|
|
23482
23482
|
*/
|
|
23483
|
-
const __iconNode$
|
|
23483
|
+
const __iconNode$L = [
|
|
23484
23484
|
["path", { d: "M12 5v14", key: "s699le" }],
|
|
23485
23485
|
["path", { d: "m19 12-7 7-7-7", key: "1idqje" }]
|
|
23486
23486
|
];
|
|
23487
|
-
const ArrowDown = useRestConversationHistory.createLucideIcon("arrow-down", __iconNode$
|
|
23487
|
+
const ArrowDown = useRestConversationHistory.createLucideIcon("arrow-down", __iconNode$L);
|
|
23488
23488
|
/**
|
|
23489
23489
|
* @license lucide-react v0.575.0 - ISC
|
|
23490
23490
|
*
|
|
23491
23491
|
* This source code is licensed under the ISC license.
|
|
23492
23492
|
* See the LICENSE file in the root directory of this source tree.
|
|
23493
23493
|
*/
|
|
23494
|
-
const __iconNode$
|
|
23494
|
+
const __iconNode$K = [
|
|
23495
23495
|
["path", { d: "m12 19-7-7 7-7", key: "1l729n" }],
|
|
23496
23496
|
["path", { d: "M19 12H5", key: "x3x0zl" }]
|
|
23497
23497
|
];
|
|
23498
|
-
const ArrowLeft = useRestConversationHistory.createLucideIcon("arrow-left", __iconNode$
|
|
23498
|
+
const ArrowLeft = useRestConversationHistory.createLucideIcon("arrow-left", __iconNode$K);
|
|
23499
23499
|
/**
|
|
23500
23500
|
* @license lucide-react v0.575.0 - ISC
|
|
23501
23501
|
*
|
|
23502
23502
|
* This source code is licensed under the ISC license.
|
|
23503
23503
|
* See the LICENSE file in the root directory of this source tree.
|
|
23504
23504
|
*/
|
|
23505
|
-
const __iconNode$
|
|
23505
|
+
const __iconNode$J = [
|
|
23506
23506
|
["path", { d: "M5 12h14", key: "1ays0h" }],
|
|
23507
23507
|
["path", { d: "m12 5 7 7-7 7", key: "xquz4c" }]
|
|
23508
23508
|
];
|
|
23509
|
-
const ArrowRight = useRestConversationHistory.createLucideIcon("arrow-right", __iconNode$
|
|
23509
|
+
const ArrowRight = useRestConversationHistory.createLucideIcon("arrow-right", __iconNode$J);
|
|
23510
23510
|
/**
|
|
23511
23511
|
* @license lucide-react v0.575.0 - ISC
|
|
23512
23512
|
*
|
|
23513
23513
|
* This source code is licensed under the ISC license.
|
|
23514
23514
|
* See the LICENSE file in the root directory of this source tree.
|
|
23515
23515
|
*/
|
|
23516
|
-
const __iconNode$
|
|
23516
|
+
const __iconNode$I = [
|
|
23517
23517
|
[
|
|
23518
23518
|
"path",
|
|
23519
23519
|
{
|
|
@@ -23545,14 +23545,14 @@ const __iconNode$H = [
|
|
|
23545
23545
|
["path", { d: "m12 8 4.74-2.85", key: "3rx089" }],
|
|
23546
23546
|
["path", { d: "M12 13.5V8", key: "1io7kd" }]
|
|
23547
23547
|
];
|
|
23548
|
-
const Boxes = useRestConversationHistory.createLucideIcon("boxes", __iconNode$
|
|
23548
|
+
const Boxes = useRestConversationHistory.createLucideIcon("boxes", __iconNode$I);
|
|
23549
23549
|
/**
|
|
23550
23550
|
* @license lucide-react v0.575.0 - ISC
|
|
23551
23551
|
*
|
|
23552
23552
|
* This source code is licensed under the ISC license.
|
|
23553
23553
|
* See the LICENSE file in the root directory of this source tree.
|
|
23554
23554
|
*/
|
|
23555
|
-
const __iconNode$
|
|
23555
|
+
const __iconNode$H = [
|
|
23556
23556
|
["path", { d: "M12 18V5", key: "adv99a" }],
|
|
23557
23557
|
["path", { d: "M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4", key: "1e3is1" }],
|
|
23558
23558
|
["path", { d: "M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5", key: "1gqd8o" }],
|
|
@@ -23562,27 +23562,27 @@ const __iconNode$G = [
|
|
|
23562
23562
|
["path", { d: "M6 18a4 4 0 0 1-2-7.464", key: "k1g0md" }],
|
|
23563
23563
|
["path", { d: "M6.003 5.125a4 4 0 0 0-2.526 5.77", key: "q97ue3" }]
|
|
23564
23564
|
];
|
|
23565
|
-
const Brain = useRestConversationHistory.createLucideIcon("brain", __iconNode$
|
|
23565
|
+
const Brain = useRestConversationHistory.createLucideIcon("brain", __iconNode$H);
|
|
23566
23566
|
/**
|
|
23567
23567
|
* @license lucide-react v0.575.0 - ISC
|
|
23568
23568
|
*
|
|
23569
23569
|
* This source code is licensed under the ISC license.
|
|
23570
23570
|
* See the LICENSE file in the root directory of this source tree.
|
|
23571
23571
|
*/
|
|
23572
|
-
const __iconNode$
|
|
23572
|
+
const __iconNode$G = [
|
|
23573
23573
|
["path", { d: "M12 12h.01", key: "1mp3jc" }],
|
|
23574
23574
|
["path", { d: "M16 6V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2", key: "1ksdt3" }],
|
|
23575
23575
|
["path", { d: "M22 13a18.15 18.15 0 0 1-20 0", key: "12hx5q" }],
|
|
23576
23576
|
["rect", { width: "20", height: "14", x: "2", y: "6", rx: "2", key: "i6l2r4" }]
|
|
23577
23577
|
];
|
|
23578
|
-
const BriefcaseBusiness = useRestConversationHistory.createLucideIcon("briefcase-business", __iconNode$
|
|
23578
|
+
const BriefcaseBusiness = useRestConversationHistory.createLucideIcon("briefcase-business", __iconNode$G);
|
|
23579
23579
|
/**
|
|
23580
23580
|
* @license lucide-react v0.575.0 - ISC
|
|
23581
23581
|
*
|
|
23582
23582
|
* This source code is licensed under the ISC license.
|
|
23583
23583
|
* See the LICENSE file in the root directory of this source tree.
|
|
23584
23584
|
*/
|
|
23585
|
-
const __iconNode$
|
|
23585
|
+
const __iconNode$F = [
|
|
23586
23586
|
[
|
|
23587
23587
|
"path",
|
|
23588
23588
|
{ d: "M17 19a1 1 0 0 1-1-1v-2a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a1 1 0 0 1-1 1z", key: "trhst0" }
|
|
@@ -23597,153 +23597,153 @@ const __iconNode$E = [
|
|
|
23597
23597
|
],
|
|
23598
23598
|
["path", { d: "M7 5V3", key: "1t1388" }]
|
|
23599
23599
|
];
|
|
23600
|
-
const Cable = useRestConversationHistory.createLucideIcon("cable", __iconNode$
|
|
23600
|
+
const Cable = useRestConversationHistory.createLucideIcon("cable", __iconNode$F);
|
|
23601
23601
|
/**
|
|
23602
23602
|
* @license lucide-react v0.575.0 - ISC
|
|
23603
23603
|
*
|
|
23604
23604
|
* This source code is licensed under the ISC license.
|
|
23605
23605
|
* See the LICENSE file in the root directory of this source tree.
|
|
23606
23606
|
*/
|
|
23607
|
-
const __iconNode$
|
|
23607
|
+
const __iconNode$E = [
|
|
23608
23608
|
["path", { d: "M3 3v16a2 2 0 0 0 2 2h16", key: "c24i48" }],
|
|
23609
23609
|
["path", { d: "M7 16h8", key: "srdodz" }],
|
|
23610
23610
|
["path", { d: "M7 11h12", key: "127s9w" }],
|
|
23611
23611
|
["path", { d: "M7 6h3", key: "w9rmul" }]
|
|
23612
23612
|
];
|
|
23613
|
-
const ChartBar = useRestConversationHistory.createLucideIcon("chart-bar", __iconNode$
|
|
23613
|
+
const ChartBar = useRestConversationHistory.createLucideIcon("chart-bar", __iconNode$E);
|
|
23614
23614
|
/**
|
|
23615
23615
|
* @license lucide-react v0.575.0 - ISC
|
|
23616
23616
|
*
|
|
23617
23617
|
* This source code is licensed under the ISC license.
|
|
23618
23618
|
* See the LICENSE file in the root directory of this source tree.
|
|
23619
23619
|
*/
|
|
23620
|
-
const __iconNode$
|
|
23620
|
+
const __iconNode$D = [
|
|
23621
23621
|
["path", { d: "M3 3v16a2 2 0 0 0 2 2h16", key: "c24i48" }],
|
|
23622
23622
|
["path", { d: "M18 17V9", key: "2bz60n" }],
|
|
23623
23623
|
["path", { d: "M13 17V5", key: "1frdt8" }],
|
|
23624
23624
|
["path", { d: "M8 17v-3", key: "17ska0" }]
|
|
23625
23625
|
];
|
|
23626
|
-
const ChartColumn = useRestConversationHistory.createLucideIcon("chart-column", __iconNode$
|
|
23626
|
+
const ChartColumn = useRestConversationHistory.createLucideIcon("chart-column", __iconNode$D);
|
|
23627
23627
|
/**
|
|
23628
23628
|
* @license lucide-react v0.575.0 - ISC
|
|
23629
23629
|
*
|
|
23630
23630
|
* This source code is licensed under the ISC license.
|
|
23631
23631
|
* See the LICENSE file in the root directory of this source tree.
|
|
23632
23632
|
*/
|
|
23633
|
-
const __iconNode$
|
|
23634
|
-
const ChevronUp = useRestConversationHistory.createLucideIcon("chevron-up", __iconNode$
|
|
23633
|
+
const __iconNode$C = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]];
|
|
23634
|
+
const ChevronUp = useRestConversationHistory.createLucideIcon("chevron-up", __iconNode$C);
|
|
23635
23635
|
/**
|
|
23636
23636
|
* @license lucide-react v0.575.0 - ISC
|
|
23637
23637
|
*
|
|
23638
23638
|
* This source code is licensed under the ISC license.
|
|
23639
23639
|
* See the LICENSE file in the root directory of this source tree.
|
|
23640
23640
|
*/
|
|
23641
|
-
const __iconNode$
|
|
23641
|
+
const __iconNode$B = [
|
|
23642
23642
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
23643
23643
|
["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
|
|
23644
23644
|
["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
|
|
23645
23645
|
];
|
|
23646
|
-
const CircleAlert = useRestConversationHistory.createLucideIcon("circle-alert", __iconNode$
|
|
23646
|
+
const CircleAlert = useRestConversationHistory.createLucideIcon("circle-alert", __iconNode$B);
|
|
23647
23647
|
/**
|
|
23648
23648
|
* @license lucide-react v0.575.0 - ISC
|
|
23649
23649
|
*
|
|
23650
23650
|
* This source code is licensed under the ISC license.
|
|
23651
23651
|
* See the LICENSE file in the root directory of this source tree.
|
|
23652
23652
|
*/
|
|
23653
|
-
const __iconNode$
|
|
23653
|
+
const __iconNode$A = [
|
|
23654
23654
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
23655
23655
|
["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
|
|
23656
23656
|
];
|
|
23657
|
-
const CircleCheck = useRestConversationHistory.createLucideIcon("circle-check", __iconNode$
|
|
23657
|
+
const CircleCheck = useRestConversationHistory.createLucideIcon("circle-check", __iconNode$A);
|
|
23658
23658
|
/**
|
|
23659
23659
|
* @license lucide-react v0.575.0 - ISC
|
|
23660
23660
|
*
|
|
23661
23661
|
* This source code is licensed under the ISC license.
|
|
23662
23662
|
* See the LICENSE file in the root directory of this source tree.
|
|
23663
23663
|
*/
|
|
23664
|
-
const __iconNode$
|
|
23664
|
+
const __iconNode$z = [
|
|
23665
23665
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
23666
23666
|
["path", { d: "m15 9-6 6", key: "1uzhvr" }],
|
|
23667
23667
|
["path", { d: "m9 9 6 6", key: "z0biqf" }]
|
|
23668
23668
|
];
|
|
23669
|
-
const CircleX = useRestConversationHistory.createLucideIcon("circle-x", __iconNode$
|
|
23669
|
+
const CircleX = useRestConversationHistory.createLucideIcon("circle-x", __iconNode$z);
|
|
23670
23670
|
/**
|
|
23671
23671
|
* @license lucide-react v0.575.0 - ISC
|
|
23672
23672
|
*
|
|
23673
23673
|
* This source code is licensed under the ISC license.
|
|
23674
23674
|
* See the LICENSE file in the root directory of this source tree.
|
|
23675
23675
|
*/
|
|
23676
|
-
const __iconNode$
|
|
23677
|
-
const Circle = useRestConversationHistory.createLucideIcon("circle", __iconNode$
|
|
23676
|
+
const __iconNode$y = [["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]];
|
|
23677
|
+
const Circle = useRestConversationHistory.createLucideIcon("circle", __iconNode$y);
|
|
23678
23678
|
/**
|
|
23679
23679
|
* @license lucide-react v0.575.0 - ISC
|
|
23680
23680
|
*
|
|
23681
23681
|
* This source code is licensed under the ISC license.
|
|
23682
23682
|
* See the LICENSE file in the root directory of this source tree.
|
|
23683
23683
|
*/
|
|
23684
|
-
const __iconNode$
|
|
23684
|
+
const __iconNode$x = [
|
|
23685
23685
|
["rect", { width: "8", height: "4", x: "8", y: "2", rx: "1", ry: "1", key: "tgr4d6" }],
|
|
23686
23686
|
["path", { d: "M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2", key: "4jdomd" }],
|
|
23687
23687
|
["path", { d: "M16 4h2a2 2 0 0 1 2 2v4", key: "3hqy98" }],
|
|
23688
23688
|
["path", { d: "M21 14H11", key: "1bme5i" }],
|
|
23689
23689
|
["path", { d: "m15 10-4 4 4 4", key: "5dvupr" }]
|
|
23690
23690
|
];
|
|
23691
|
-
const ClipboardCopy = useRestConversationHistory.createLucideIcon("clipboard-copy", __iconNode$
|
|
23691
|
+
const ClipboardCopy = useRestConversationHistory.createLucideIcon("clipboard-copy", __iconNode$x);
|
|
23692
23692
|
/**
|
|
23693
23693
|
* @license lucide-react v0.575.0 - ISC
|
|
23694
23694
|
*
|
|
23695
23695
|
* This source code is licensed under the ISC license.
|
|
23696
23696
|
* See the LICENSE file in the root directory of this source tree.
|
|
23697
23697
|
*/
|
|
23698
|
-
const __iconNode$
|
|
23698
|
+
const __iconNode$w = [
|
|
23699
23699
|
["path", { d: "m18 16 4-4-4-4", key: "1inbqp" }],
|
|
23700
23700
|
["path", { d: "m6 8-4 4 4 4", key: "15zrgr" }],
|
|
23701
23701
|
["path", { d: "m14.5 4-5 16", key: "e7oirm" }]
|
|
23702
23702
|
];
|
|
23703
|
-
const CodeXml = useRestConversationHistory.createLucideIcon("code-xml", __iconNode$
|
|
23703
|
+
const CodeXml = useRestConversationHistory.createLucideIcon("code-xml", __iconNode$w);
|
|
23704
23704
|
/**
|
|
23705
23705
|
* @license lucide-react v0.575.0 - ISC
|
|
23706
23706
|
*
|
|
23707
23707
|
* This source code is licensed under the ISC license.
|
|
23708
23708
|
* See the LICENSE file in the root directory of this source tree.
|
|
23709
23709
|
*/
|
|
23710
|
-
const __iconNode$
|
|
23710
|
+
const __iconNode$v = [
|
|
23711
23711
|
["path", { d: "M12 15V3", key: "m9g1x1" }],
|
|
23712
23712
|
["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }],
|
|
23713
23713
|
["path", { d: "m7 10 5 5 5-5", key: "brsn70" }]
|
|
23714
23714
|
];
|
|
23715
|
-
const Download = useRestConversationHistory.createLucideIcon("download", __iconNode$
|
|
23715
|
+
const Download = useRestConversationHistory.createLucideIcon("download", __iconNode$v);
|
|
23716
23716
|
/**
|
|
23717
23717
|
* @license lucide-react v0.575.0 - ISC
|
|
23718
23718
|
*
|
|
23719
23719
|
* This source code is licensed under the ISC license.
|
|
23720
23720
|
* See the LICENSE file in the root directory of this source tree.
|
|
23721
23721
|
*/
|
|
23722
|
-
const __iconNode$
|
|
23722
|
+
const __iconNode$u = [
|
|
23723
23723
|
["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
|
|
23724
23724
|
["circle", { cx: "19", cy: "12", r: "1", key: "1wjl8i" }],
|
|
23725
23725
|
["circle", { cx: "5", cy: "12", r: "1", key: "1pcz8c" }]
|
|
23726
23726
|
];
|
|
23727
|
-
const Ellipsis = useRestConversationHistory.createLucideIcon("ellipsis", __iconNode$
|
|
23727
|
+
const Ellipsis = useRestConversationHistory.createLucideIcon("ellipsis", __iconNode$u);
|
|
23728
23728
|
/**
|
|
23729
23729
|
* @license lucide-react v0.575.0 - ISC
|
|
23730
23730
|
*
|
|
23731
23731
|
* This source code is licensed under the ISC license.
|
|
23732
23732
|
* See the LICENSE file in the root directory of this source tree.
|
|
23733
23733
|
*/
|
|
23734
|
-
const __iconNode$
|
|
23734
|
+
const __iconNode$t = [
|
|
23735
23735
|
["path", { d: "M15 3h6v6", key: "1q9fwt" }],
|
|
23736
23736
|
["path", { d: "M10 14 21 3", key: "gplh6r" }],
|
|
23737
23737
|
["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
|
|
23738
23738
|
];
|
|
23739
|
-
const ExternalLink = useRestConversationHistory.createLucideIcon("external-link", __iconNode$
|
|
23739
|
+
const ExternalLink = useRestConversationHistory.createLucideIcon("external-link", __iconNode$t);
|
|
23740
23740
|
/**
|
|
23741
23741
|
* @license lucide-react v0.575.0 - ISC
|
|
23742
23742
|
*
|
|
23743
23743
|
* This source code is licensed under the ISC license.
|
|
23744
23744
|
* See the LICENSE file in the root directory of this source tree.
|
|
23745
23745
|
*/
|
|
23746
|
-
const __iconNode$
|
|
23746
|
+
const __iconNode$s = [
|
|
23747
23747
|
[
|
|
23748
23748
|
"path",
|
|
23749
23749
|
{
|
|
@@ -23755,14 +23755,14 @@ const __iconNode$r = [
|
|
|
23755
23755
|
["path", { d: "M9 15h6", key: "cctwl0" }],
|
|
23756
23756
|
["path", { d: "M12 18v-6", key: "17g6i2" }]
|
|
23757
23757
|
];
|
|
23758
|
-
const FilePlus = useRestConversationHistory.createLucideIcon("file-plus", __iconNode$
|
|
23758
|
+
const FilePlus = useRestConversationHistory.createLucideIcon("file-plus", __iconNode$s);
|
|
23759
23759
|
/**
|
|
23760
23760
|
* @license lucide-react v0.575.0 - ISC
|
|
23761
23761
|
*
|
|
23762
23762
|
* This source code is licensed under the ISC license.
|
|
23763
23763
|
* See the LICENSE file in the root directory of this source tree.
|
|
23764
23764
|
*/
|
|
23765
|
-
const __iconNode$
|
|
23765
|
+
const __iconNode$r = [
|
|
23766
23766
|
[
|
|
23767
23767
|
"path",
|
|
23768
23768
|
{
|
|
@@ -23776,14 +23776,14 @@ const __iconNode$q = [
|
|
|
23776
23776
|
["path", { d: "M8 17h2", key: "2yhykz" }],
|
|
23777
23777
|
["path", { d: "M14 17h2", key: "10kma7" }]
|
|
23778
23778
|
];
|
|
23779
|
-
const FileSpreadsheet = useRestConversationHistory.createLucideIcon("file-spreadsheet", __iconNode$
|
|
23779
|
+
const FileSpreadsheet = useRestConversationHistory.createLucideIcon("file-spreadsheet", __iconNode$r);
|
|
23780
23780
|
/**
|
|
23781
23781
|
* @license lucide-react v0.575.0 - ISC
|
|
23782
23782
|
*
|
|
23783
23783
|
* This source code is licensed under the ISC license.
|
|
23784
23784
|
* See the LICENSE file in the root directory of this source tree.
|
|
23785
23785
|
*/
|
|
23786
|
-
const __iconNode$
|
|
23786
|
+
const __iconNode$q = [
|
|
23787
23787
|
[
|
|
23788
23788
|
"path",
|
|
23789
23789
|
{
|
|
@@ -23792,14 +23792,14 @@ const __iconNode$p = [
|
|
|
23792
23792
|
}
|
|
23793
23793
|
]
|
|
23794
23794
|
];
|
|
23795
|
-
const FolderOpen = useRestConversationHistory.createLucideIcon("folder-open", __iconNode$
|
|
23795
|
+
const FolderOpen = useRestConversationHistory.createLucideIcon("folder-open", __iconNode$q);
|
|
23796
23796
|
/**
|
|
23797
23797
|
* @license lucide-react v0.575.0 - ISC
|
|
23798
23798
|
*
|
|
23799
23799
|
* This source code is licensed under the ISC license.
|
|
23800
23800
|
* See the LICENSE file in the root directory of this source tree.
|
|
23801
23801
|
*/
|
|
23802
|
-
const __iconNode$
|
|
23802
|
+
const __iconNode$p = [
|
|
23803
23803
|
[
|
|
23804
23804
|
"path",
|
|
23805
23805
|
{
|
|
@@ -23822,39 +23822,39 @@ const __iconNode$o = [
|
|
|
23822
23822
|
}
|
|
23823
23823
|
]
|
|
23824
23824
|
];
|
|
23825
|
-
const Layers = useRestConversationHistory.createLucideIcon("layers", __iconNode$
|
|
23825
|
+
const Layers = useRestConversationHistory.createLucideIcon("layers", __iconNode$p);
|
|
23826
23826
|
/**
|
|
23827
23827
|
* @license lucide-react v0.575.0 - ISC
|
|
23828
23828
|
*
|
|
23829
23829
|
* This source code is licensed under the ISC license.
|
|
23830
23830
|
* See the LICENSE file in the root directory of this source tree.
|
|
23831
23831
|
*/
|
|
23832
|
-
const __iconNode$
|
|
23832
|
+
const __iconNode$o = [
|
|
23833
23833
|
["path", { d: "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71", key: "1cjeqo" }],
|
|
23834
23834
|
["path", { d: "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71", key: "19qd67" }]
|
|
23835
23835
|
];
|
|
23836
|
-
const Link = useRestConversationHistory.createLucideIcon("link", __iconNode$
|
|
23836
|
+
const Link = useRestConversationHistory.createLucideIcon("link", __iconNode$o);
|
|
23837
23837
|
/**
|
|
23838
23838
|
* @license lucide-react v0.575.0 - ISC
|
|
23839
23839
|
*
|
|
23840
23840
|
* This source code is licensed under the ISC license.
|
|
23841
23841
|
* See the LICENSE file in the root directory of this source tree.
|
|
23842
23842
|
*/
|
|
23843
|
-
const __iconNode$
|
|
23843
|
+
const __iconNode$n = [
|
|
23844
23844
|
["path", { d: "M13 5h8", key: "a7qcls" }],
|
|
23845
23845
|
["path", { d: "M13 12h8", key: "h98zly" }],
|
|
23846
23846
|
["path", { d: "M13 19h8", key: "c3s6r1" }],
|
|
23847
23847
|
["path", { d: "m3 17 2 2 4-4", key: "1jhpwq" }],
|
|
23848
23848
|
["path", { d: "m3 7 2 2 4-4", key: "1obspn" }]
|
|
23849
23849
|
];
|
|
23850
|
-
const ListChecks = useRestConversationHistory.createLucideIcon("list-checks", __iconNode$
|
|
23850
|
+
const ListChecks = useRestConversationHistory.createLucideIcon("list-checks", __iconNode$n);
|
|
23851
23851
|
/**
|
|
23852
23852
|
* @license lucide-react v0.575.0 - ISC
|
|
23853
23853
|
*
|
|
23854
23854
|
* This source code is licensed under the ISC license.
|
|
23855
23855
|
* See the LICENSE file in the root directory of this source tree.
|
|
23856
23856
|
*/
|
|
23857
|
-
const __iconNode$
|
|
23857
|
+
const __iconNode$m = [
|
|
23858
23858
|
["path", { d: "M12 2v4", key: "3427ic" }],
|
|
23859
23859
|
["path", { d: "m16.2 7.8 2.9-2.9", key: "r700ao" }],
|
|
23860
23860
|
["path", { d: "M18 12h4", key: "wj9ykh" }],
|
|
@@ -23864,27 +23864,27 @@ const __iconNode$l = [
|
|
|
23864
23864
|
["path", { d: "M2 12h4", key: "j09sii" }],
|
|
23865
23865
|
["path", { d: "m4.9 4.9 2.9 2.9", key: "giyufr" }]
|
|
23866
23866
|
];
|
|
23867
|
-
const Loader = useRestConversationHistory.createLucideIcon("loader", __iconNode$
|
|
23867
|
+
const Loader = useRestConversationHistory.createLucideIcon("loader", __iconNode$m);
|
|
23868
23868
|
/**
|
|
23869
23869
|
* @license lucide-react v0.575.0 - ISC
|
|
23870
23870
|
*
|
|
23871
23871
|
* This source code is licensed under the ISC license.
|
|
23872
23872
|
* See the LICENSE file in the root directory of this source tree.
|
|
23873
23873
|
*/
|
|
23874
|
-
const __iconNode$
|
|
23874
|
+
const __iconNode$l = [
|
|
23875
23875
|
["path", { d: "M15 3h6v6", key: "1q9fwt" }],
|
|
23876
23876
|
["path", { d: "m21 3-7 7", key: "1l2asr" }],
|
|
23877
23877
|
["path", { d: "m3 21 7-7", key: "tjx5ai" }],
|
|
23878
23878
|
["path", { d: "M9 21H3v-6", key: "wtvkvv" }]
|
|
23879
23879
|
];
|
|
23880
|
-
const Maximize2 = useRestConversationHistory.createLucideIcon("maximize-2", __iconNode$
|
|
23880
|
+
const Maximize2 = useRestConversationHistory.createLucideIcon("maximize-2", __iconNode$l);
|
|
23881
23881
|
/**
|
|
23882
23882
|
* @license lucide-react v0.575.0 - ISC
|
|
23883
23883
|
*
|
|
23884
23884
|
* This source code is licensed under the ISC license.
|
|
23885
23885
|
* See the LICENSE file in the root directory of this source tree.
|
|
23886
23886
|
*/
|
|
23887
|
-
const __iconNode$
|
|
23887
|
+
const __iconNode$k = [
|
|
23888
23888
|
[
|
|
23889
23889
|
"path",
|
|
23890
23890
|
{
|
|
@@ -23895,27 +23895,27 @@ const __iconNode$j = [
|
|
|
23895
23895
|
["path", { d: "M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14", key: "1853fq" }],
|
|
23896
23896
|
["path", { d: "M8 6v8", key: "15ugcq" }]
|
|
23897
23897
|
];
|
|
23898
|
-
const Megaphone = useRestConversationHistory.createLucideIcon("megaphone", __iconNode$
|
|
23898
|
+
const Megaphone = useRestConversationHistory.createLucideIcon("megaphone", __iconNode$k);
|
|
23899
23899
|
/**
|
|
23900
23900
|
* @license lucide-react v0.575.0 - ISC
|
|
23901
23901
|
*
|
|
23902
23902
|
* This source code is licensed under the ISC license.
|
|
23903
23903
|
* See the LICENSE file in the root directory of this source tree.
|
|
23904
23904
|
*/
|
|
23905
|
-
const __iconNode$
|
|
23905
|
+
const __iconNode$j = [
|
|
23906
23906
|
["path", { d: "m14 10 7-7", key: "oa77jy" }],
|
|
23907
23907
|
["path", { d: "M20 10h-6V4", key: "mjg0md" }],
|
|
23908
23908
|
["path", { d: "m3 21 7-7", key: "tjx5ai" }],
|
|
23909
23909
|
["path", { d: "M4 14h6v6", key: "rmj7iw" }]
|
|
23910
23910
|
];
|
|
23911
|
-
const Minimize2 = useRestConversationHistory.createLucideIcon("minimize-2", __iconNode$
|
|
23911
|
+
const Minimize2 = useRestConversationHistory.createLucideIcon("minimize-2", __iconNode$j);
|
|
23912
23912
|
/**
|
|
23913
23913
|
* @license lucide-react v0.575.0 - ISC
|
|
23914
23914
|
*
|
|
23915
23915
|
* This source code is licensed under the ISC license.
|
|
23916
23916
|
* See the LICENSE file in the root directory of this source tree.
|
|
23917
23917
|
*/
|
|
23918
|
-
const __iconNode$
|
|
23918
|
+
const __iconNode$i = [
|
|
23919
23919
|
["path", { d: "M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4", key: "re6nr2" }],
|
|
23920
23920
|
["path", { d: "M2 6h4", key: "aawbzj" }],
|
|
23921
23921
|
["path", { d: "M2 10h4", key: "l0bgd4" }],
|
|
@@ -23929,25 +23929,25 @@ const __iconNode$h = [
|
|
|
23929
23929
|
}
|
|
23930
23930
|
]
|
|
23931
23931
|
];
|
|
23932
|
-
const NotebookPen = useRestConversationHistory.createLucideIcon("notebook-pen", __iconNode$
|
|
23932
|
+
const NotebookPen = useRestConversationHistory.createLucideIcon("notebook-pen", __iconNode$i);
|
|
23933
23933
|
/**
|
|
23934
23934
|
* @license lucide-react v0.575.0 - ISC
|
|
23935
23935
|
*
|
|
23936
23936
|
* This source code is licensed under the ISC license.
|
|
23937
23937
|
* See the LICENSE file in the root directory of this source tree.
|
|
23938
23938
|
*/
|
|
23939
|
-
const __iconNode$
|
|
23939
|
+
const __iconNode$h = [
|
|
23940
23940
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
23941
23941
|
["path", { d: "M3 9h18", key: "1pudct" }]
|
|
23942
23942
|
];
|
|
23943
|
-
const PanelTop = useRestConversationHistory.createLucideIcon("panel-top", __iconNode$
|
|
23943
|
+
const PanelTop = useRestConversationHistory.createLucideIcon("panel-top", __iconNode$h);
|
|
23944
23944
|
/**
|
|
23945
23945
|
* @license lucide-react v0.575.0 - ISC
|
|
23946
23946
|
*
|
|
23947
23947
|
* This source code is licensed under the ISC license.
|
|
23948
23948
|
* See the LICENSE file in the root directory of this source tree.
|
|
23949
23949
|
*/
|
|
23950
|
-
const __iconNode$
|
|
23950
|
+
const __iconNode$g = [
|
|
23951
23951
|
[
|
|
23952
23952
|
"path",
|
|
23953
23953
|
{
|
|
@@ -23956,14 +23956,14 @@ const __iconNode$f = [
|
|
|
23956
23956
|
}
|
|
23957
23957
|
]
|
|
23958
23958
|
];
|
|
23959
|
-
const Paperclip = useRestConversationHistory.createLucideIcon("paperclip", __iconNode$
|
|
23959
|
+
const Paperclip = useRestConversationHistory.createLucideIcon("paperclip", __iconNode$g);
|
|
23960
23960
|
/**
|
|
23961
23961
|
* @license lucide-react v0.575.0 - ISC
|
|
23962
23962
|
*
|
|
23963
23963
|
* This source code is licensed under the ISC license.
|
|
23964
23964
|
* See the LICENSE file in the root directory of this source tree.
|
|
23965
23965
|
*/
|
|
23966
|
-
const __iconNode$
|
|
23966
|
+
const __iconNode$f = [
|
|
23967
23967
|
["path", { d: "M13 21h8", key: "1jsn5i" }],
|
|
23968
23968
|
[
|
|
23969
23969
|
"path",
|
|
@@ -23973,14 +23973,14 @@ const __iconNode$e = [
|
|
|
23973
23973
|
}
|
|
23974
23974
|
]
|
|
23975
23975
|
];
|
|
23976
|
-
const PenLine = useRestConversationHistory.createLucideIcon("pen-line", __iconNode$
|
|
23976
|
+
const PenLine = useRestConversationHistory.createLucideIcon("pen-line", __iconNode$f);
|
|
23977
23977
|
/**
|
|
23978
23978
|
* @license lucide-react v0.575.0 - ISC
|
|
23979
23979
|
*
|
|
23980
23980
|
* This source code is licensed under the ISC license.
|
|
23981
23981
|
* See the LICENSE file in the root directory of this source tree.
|
|
23982
23982
|
*/
|
|
23983
|
-
const __iconNode$
|
|
23983
|
+
const __iconNode$e = [
|
|
23984
23984
|
[
|
|
23985
23985
|
"path",
|
|
23986
23986
|
{
|
|
@@ -23989,26 +23989,26 @@ const __iconNode$d = [
|
|
|
23989
23989
|
}
|
|
23990
23990
|
]
|
|
23991
23991
|
];
|
|
23992
|
-
const Play = useRestConversationHistory.createLucideIcon("play", __iconNode$
|
|
23992
|
+
const Play = useRestConversationHistory.createLucideIcon("play", __iconNode$e);
|
|
23993
23993
|
/**
|
|
23994
23994
|
* @license lucide-react v0.575.0 - ISC
|
|
23995
23995
|
*
|
|
23996
23996
|
* This source code is licensed under the ISC license.
|
|
23997
23997
|
* See the LICENSE file in the root directory of this source tree.
|
|
23998
23998
|
*/
|
|
23999
|
-
const __iconNode$
|
|
23999
|
+
const __iconNode$d = [
|
|
24000
24000
|
["path", { d: "M2 3h20", key: "91anmk" }],
|
|
24001
24001
|
["path", { d: "M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3", key: "2k9sn8" }],
|
|
24002
24002
|
["path", { d: "m7 21 5-5 5 5", key: "bip4we" }]
|
|
24003
24003
|
];
|
|
24004
|
-
const Presentation = useRestConversationHistory.createLucideIcon("presentation", __iconNode$
|
|
24004
|
+
const Presentation = useRestConversationHistory.createLucideIcon("presentation", __iconNode$d);
|
|
24005
24005
|
/**
|
|
24006
24006
|
* @license lucide-react v0.575.0 - ISC
|
|
24007
24007
|
*
|
|
24008
24008
|
* This source code is licensed under the ISC license.
|
|
24009
24009
|
* See the LICENSE file in the root directory of this source tree.
|
|
24010
24010
|
*/
|
|
24011
|
-
const __iconNode$
|
|
24011
|
+
const __iconNode$c = [
|
|
24012
24012
|
[
|
|
24013
24013
|
"path",
|
|
24014
24014
|
{
|
|
@@ -24024,7 +24024,22 @@ const __iconNode$b = [
|
|
|
24024
24024
|
}
|
|
24025
24025
|
]
|
|
24026
24026
|
];
|
|
24027
|
-
const Quote = useRestConversationHistory.createLucideIcon("quote", __iconNode$
|
|
24027
|
+
const Quote = useRestConversationHistory.createLucideIcon("quote", __iconNode$c);
|
|
24028
|
+
/**
|
|
24029
|
+
* @license lucide-react v0.575.0 - ISC
|
|
24030
|
+
*
|
|
24031
|
+
* This source code is licensed under the ISC license.
|
|
24032
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
24033
|
+
*/
|
|
24034
|
+
const __iconNode$b = [
|
|
24035
|
+
["path", { d: "M3 7V5a2 2 0 0 1 2-2h2", key: "aa7l1z" }],
|
|
24036
|
+
["path", { d: "M17 3h2a2 2 0 0 1 2 2v2", key: "4qcy5o" }],
|
|
24037
|
+
["path", { d: "M21 17v2a2 2 0 0 1-2 2h-2", key: "6vwrx8" }],
|
|
24038
|
+
["path", { d: "M7 21H5a2 2 0 0 1-2-2v-2", key: "ioqczr" }],
|
|
24039
|
+
["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }],
|
|
24040
|
+
["path", { d: "m16 16-1.9-1.9", key: "1dq9hf" }]
|
|
24041
|
+
];
|
|
24042
|
+
const ScanSearch = useRestConversationHistory.createLucideIcon("scan-search", __iconNode$b);
|
|
24028
24043
|
/**
|
|
24029
24044
|
* @license lucide-react v0.575.0 - ISC
|
|
24030
24045
|
*
|
|
@@ -27132,7 +27147,14 @@ const ReadAssetToolUIImpl = ({
|
|
|
27132
27147
|
const resolvedAssetCount = Math.max(assetCount, new Set(resultAssetIds).size);
|
|
27133
27148
|
const primaryAsset = getAssetInfo(firstAssetId || resultAssetIds[0] || "");
|
|
27134
27149
|
const resultTitle = (_a3 = resultItems.find((item) => item.title)) == null ? void 0 : _a3.title;
|
|
27135
|
-
const
|
|
27150
|
+
const isOpaqueId = (label) => /^asset_[0-9a-f-]{8,}/i.test(label);
|
|
27151
|
+
const primaryLabel = resultTitle ?? (isOpaqueId(primaryAsset.name) ? "1 document" : primaryAsset.name);
|
|
27152
|
+
const sourceList = resolvedAssetCount > 1 ? resultItems.filter((item) => typeof item.title === "string" && item.title !== "").map((item, index) => ({
|
|
27153
|
+
key: item.asset_id ?? `${index}-${item.title}`,
|
|
27154
|
+
label: item.title,
|
|
27155
|
+
failed: item.success === false
|
|
27156
|
+
})) : [];
|
|
27157
|
+
const assetLabel = resolvedAssetCount > 1 ? `${resolvedAssetCount} documents` : primaryLabel;
|
|
27136
27158
|
const statusTitle = isRunning ? "Reviewing asset content" : hasError ? "Asset content review failed" : hasPartialIssues ? "Asset content reviewed with issues" : "Asset content review complete";
|
|
27137
27159
|
const badge = hasPartialIssues ? `${failedItems.length} ${failedItems.length === 1 ? "issue" : "issues"}` : resolvedAssetCount > 1 ? `${resolvedAssetCount} sources` : workbookData ? "Workbook review" : "Content review";
|
|
27138
27160
|
const hasContent = (isComplete || isIncomplete) && (resultText || workbookData);
|
|
@@ -27172,6 +27194,24 @@ const ReadAssetToolUIImpl = ({
|
|
|
27172
27194
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-1.5 w-8 animate-pulse rounded-full bg-blue-100" })
|
|
27173
27195
|
] })
|
|
27174
27196
|
] }),
|
|
27197
|
+
sourceList.length > 1 && /* @__PURE__ */ jsxRuntime.jsxs("ul", { className: "border-t px-4 py-2", children: [
|
|
27198
|
+
sourceList.slice(0, 8).map((source) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
27199
|
+
"li",
|
|
27200
|
+
{
|
|
27201
|
+
className: "flex items-center gap-2 py-0.5 text-[12px] text-muted-foreground",
|
|
27202
|
+
children: [
|
|
27203
|
+
source.failed ? /* @__PURE__ */ jsxRuntime.jsx(CircleAlert, { className: "size-3.5 shrink-0 text-red-400" }) : /* @__PURE__ */ jsxRuntime.jsx(CircleCheck, { className: "size-3.5 shrink-0 text-emerald-500" }),
|
|
27204
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "min-w-0 truncate", children: source.label })
|
|
27205
|
+
]
|
|
27206
|
+
},
|
|
27207
|
+
source.key
|
|
27208
|
+
)),
|
|
27209
|
+
sourceList.length > 8 && /* @__PURE__ */ jsxRuntime.jsxs("li", { className: "py-0.5 text-[11px] text-muted-foreground/70", children: [
|
|
27210
|
+
"and ",
|
|
27211
|
+
sourceList.length - 8,
|
|
27212
|
+
" more"
|
|
27213
|
+
] })
|
|
27214
|
+
] }),
|
|
27175
27215
|
hasError && errorMessage && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "border-t bg-red-50/50 px-4 py-2.5", children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-[12px] leading-relaxed text-red-600", children: errorMessage }) }),
|
|
27176
27216
|
hasContent && !hasError && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "border-t", children: [
|
|
27177
27217
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -27205,6 +27245,176 @@ const ReadAssetToolUI = React.memo(
|
|
|
27205
27245
|
ReadAssetToolUIImpl
|
|
27206
27246
|
);
|
|
27207
27247
|
ReadAssetToolUI.displayName = "ReadAssetToolUI";
|
|
27248
|
+
function friendlyWorkspacePath(value) {
|
|
27249
|
+
if (typeof value !== "string" || value.trim() === "") return void 0;
|
|
27250
|
+
const path = value.trim();
|
|
27251
|
+
if (path.includes("large_tool_results")) {
|
|
27252
|
+
return "detailed results from an earlier step";
|
|
27253
|
+
}
|
|
27254
|
+
if (path.includes("/memory/")) return "session memory";
|
|
27255
|
+
if (path.includes("/skills/")) return "a skill reference";
|
|
27256
|
+
const base2 = path.split("/").filter(Boolean).pop();
|
|
27257
|
+
return base2 ?? path;
|
|
27258
|
+
}
|
|
27259
|
+
function rawDetails(result) {
|
|
27260
|
+
if (result === null || result === void 0) return null;
|
|
27261
|
+
if (typeof result === "string") {
|
|
27262
|
+
return result.trim() !== "" ? result : null;
|
|
27263
|
+
}
|
|
27264
|
+
if (typeof result === "object") {
|
|
27265
|
+
const inner = result.result;
|
|
27266
|
+
if (typeof inner === "string") {
|
|
27267
|
+
return inner.trim() !== "" ? inner : null;
|
|
27268
|
+
}
|
|
27269
|
+
}
|
|
27270
|
+
const data = normalizeResult(result);
|
|
27271
|
+
if (data === null) return null;
|
|
27272
|
+
const text2 = JSON.stringify(data, null, 2);
|
|
27273
|
+
return text2.trim() !== "" ? text2 : null;
|
|
27274
|
+
}
|
|
27275
|
+
function makeQuietFileToolUI(spec) {
|
|
27276
|
+
const Impl = ({ args, result, status }) => {
|
|
27277
|
+
const typedArgs = args;
|
|
27278
|
+
let subtitle;
|
|
27279
|
+
for (const key of spec.subtitleArgs) {
|
|
27280
|
+
subtitle = friendlyWorkspacePath(typedArgs == null ? void 0 : typedArgs[key]);
|
|
27281
|
+
if (subtitle) break;
|
|
27282
|
+
}
|
|
27283
|
+
const isRunning = (status == null ? void 0 : status.type) === "running";
|
|
27284
|
+
const isFailed = (status == null ? void 0 : status.type) === "incomplete";
|
|
27285
|
+
const errorMsg = isFailed ? String(status.error ?? "") : null;
|
|
27286
|
+
const details = (status == null ? void 0 : status.type) === "complete" ? rawDetails(result) : null;
|
|
27287
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
27288
|
+
ToolCard,
|
|
27289
|
+
{
|
|
27290
|
+
icon: spec.icon,
|
|
27291
|
+
status: (status == null ? void 0 : status.type) ?? "complete",
|
|
27292
|
+
title: isRunning ? spec.runningTitle : isFailed ? spec.failedTitle : spec.doneTitle,
|
|
27293
|
+
subtitle: subtitle ? truncate(subtitle, 70) : void 0,
|
|
27294
|
+
error: errorMsg || void 0,
|
|
27295
|
+
children: details && /* @__PURE__ */ jsxRuntime.jsx(ExpandableSection, { label: spec.detailsLabel, children: /* @__PURE__ */ jsxRuntime.jsx("pre", { className: "max-h-64 overflow-auto whitespace-pre-wrap break-all text-[11px] leading-snug text-muted-foreground", children: truncate(details, 6e3) }) })
|
|
27296
|
+
}
|
|
27297
|
+
);
|
|
27298
|
+
};
|
|
27299
|
+
const Quiet = React.memo(Impl);
|
|
27300
|
+
Quiet.displayName = `QuietFileToolUI(${spec.doneTitle})`;
|
|
27301
|
+
return Quiet;
|
|
27302
|
+
}
|
|
27303
|
+
const ReadFileToolUI = makeQuietFileToolUI({
|
|
27304
|
+
icon: ScanSearch,
|
|
27305
|
+
runningTitle: "Reviewing working files…",
|
|
27306
|
+
doneTitle: "Reviewed working files",
|
|
27307
|
+
failedTitle: "Couldn't review working files",
|
|
27308
|
+
subtitleArgs: ["file_path", "path"],
|
|
27309
|
+
detailsLabel: "Show details"
|
|
27310
|
+
});
|
|
27311
|
+
const ListFilesToolUI = makeQuietFileToolUI({
|
|
27312
|
+
icon: FolderOpen,
|
|
27313
|
+
runningTitle: "Checking the workspace…",
|
|
27314
|
+
doneTitle: "Checked the workspace",
|
|
27315
|
+
failedTitle: "Couldn't check the workspace",
|
|
27316
|
+
subtitleArgs: ["path"],
|
|
27317
|
+
detailsLabel: "Show files"
|
|
27318
|
+
});
|
|
27319
|
+
const WriteFileToolUI = makeQuietFileToolUI({
|
|
27320
|
+
icon: useRestConversationHistory.FileText,
|
|
27321
|
+
runningTitle: "Saving working files…",
|
|
27322
|
+
doneTitle: "Saved working files",
|
|
27323
|
+
failedTitle: "Couldn't save working files",
|
|
27324
|
+
subtitleArgs: ["file_path", "path"],
|
|
27325
|
+
detailsLabel: "Show details"
|
|
27326
|
+
});
|
|
27327
|
+
const EditFileToolUI = makeQuietFileToolUI({
|
|
27328
|
+
icon: PenLine,
|
|
27329
|
+
runningTitle: "Updating working files…",
|
|
27330
|
+
doneTitle: "Updated working files",
|
|
27331
|
+
failedTitle: "Couldn't update working files",
|
|
27332
|
+
subtitleArgs: ["file_path", "path"],
|
|
27333
|
+
detailsLabel: "Show details"
|
|
27334
|
+
});
|
|
27335
|
+
const SearchFilesToolUI = makeQuietFileToolUI({
|
|
27336
|
+
icon: useRestConversationHistory.Search,
|
|
27337
|
+
runningTitle: "Searching working files…",
|
|
27338
|
+
doneTitle: "Searched working files",
|
|
27339
|
+
failedTitle: "Couldn't search working files",
|
|
27340
|
+
subtitleArgs: ["pattern", "query", "path"],
|
|
27341
|
+
detailsLabel: "Show matches"
|
|
27342
|
+
});
|
|
27343
|
+
const DEFAULT_SCOPE = "default";
|
|
27344
|
+
let nextSeq = 1;
|
|
27345
|
+
const scopes = /* @__PURE__ */ new Map();
|
|
27346
|
+
const listeners = /* @__PURE__ */ new Set();
|
|
27347
|
+
let version = 0;
|
|
27348
|
+
function emit() {
|
|
27349
|
+
version++;
|
|
27350
|
+
for (const listener of listeners) listener();
|
|
27351
|
+
}
|
|
27352
|
+
function scopeEntries(scope) {
|
|
27353
|
+
let entries = scopes.get(scope);
|
|
27354
|
+
if (!entries) {
|
|
27355
|
+
entries = /* @__PURE__ */ new Map();
|
|
27356
|
+
scopes.set(scope, entries);
|
|
27357
|
+
}
|
|
27358
|
+
return entries;
|
|
27359
|
+
}
|
|
27360
|
+
function allocatePlanSeq() {
|
|
27361
|
+
return nextSeq++;
|
|
27362
|
+
}
|
|
27363
|
+
function registerPlanCard(scope, seq, plan, isWriting) {
|
|
27364
|
+
scopeEntries(scope).set(seq, { seq, plan, isWriting });
|
|
27365
|
+
emit();
|
|
27366
|
+
}
|
|
27367
|
+
function updatePlanCard(scope, seq, plan, isWriting) {
|
|
27368
|
+
var _a3;
|
|
27369
|
+
const entry = (_a3 = scopes.get(scope)) == null ? void 0 : _a3.get(seq);
|
|
27370
|
+
if (!entry) return;
|
|
27371
|
+
entry.plan = plan;
|
|
27372
|
+
entry.isWriting = isWriting;
|
|
27373
|
+
emit();
|
|
27374
|
+
}
|
|
27375
|
+
function unregisterPlanCard(scope, seq) {
|
|
27376
|
+
const entries = scopes.get(scope);
|
|
27377
|
+
if (!entries) return;
|
|
27378
|
+
if (entries.delete(seq)) {
|
|
27379
|
+
if (entries.size === 0) scopes.delete(scope);
|
|
27380
|
+
emit();
|
|
27381
|
+
}
|
|
27382
|
+
}
|
|
27383
|
+
function latestPlanSeq(scope) {
|
|
27384
|
+
const entries = scopes.get(scope);
|
|
27385
|
+
if (!entries) return null;
|
|
27386
|
+
let latest = null;
|
|
27387
|
+
for (const seq of entries.keys()) {
|
|
27388
|
+
if (latest === null || seq > latest) latest = seq;
|
|
27389
|
+
}
|
|
27390
|
+
return latest;
|
|
27391
|
+
}
|
|
27392
|
+
function latestPlanEntry(scope) {
|
|
27393
|
+
var _a3;
|
|
27394
|
+
const seq = latestPlanSeq(scope);
|
|
27395
|
+
return seq === null ? null : ((_a3 = scopes.get(scope)) == null ? void 0 : _a3.get(seq)) ?? null;
|
|
27396
|
+
}
|
|
27397
|
+
function subscribe(listener) {
|
|
27398
|
+
listeners.add(listener);
|
|
27399
|
+
return () => {
|
|
27400
|
+
listeners.delete(listener);
|
|
27401
|
+
};
|
|
27402
|
+
}
|
|
27403
|
+
const getVersion = () => version;
|
|
27404
|
+
function usePlanScope() {
|
|
27405
|
+
return React.useContext(AthenaThreadIdContext) ?? DEFAULT_SCOPE;
|
|
27406
|
+
}
|
|
27407
|
+
function useIsLatestPlanCard(scope, seq) {
|
|
27408
|
+
React.useSyncExternalStore(subscribe, getVersion, getVersion);
|
|
27409
|
+
const latest = latestPlanSeq(scope);
|
|
27410
|
+
return latest === null || latest === seq;
|
|
27411
|
+
}
|
|
27412
|
+
function useLatestTodoPlan() {
|
|
27413
|
+
const scope = usePlanScope();
|
|
27414
|
+
React.useSyncExternalStore(subscribe, getVersion, getVersion);
|
|
27415
|
+
const entry = latestPlanEntry(scope);
|
|
27416
|
+
return entry ? { plan: entry.plan, isWriting: entry.isWriting } : null;
|
|
27417
|
+
}
|
|
27208
27418
|
const STEP_STATUSES = [
|
|
27209
27419
|
"pending",
|
|
27210
27420
|
"in_progress",
|
|
@@ -27318,17 +27528,50 @@ function PlanBadge({
|
|
|
27318
27528
|
}
|
|
27319
27529
|
);
|
|
27320
27530
|
}
|
|
27531
|
+
function usePlanCardRegistration(plan, isWriting) {
|
|
27532
|
+
const scope = usePlanScope();
|
|
27533
|
+
const [seq] = React.useState(allocatePlanSeq);
|
|
27534
|
+
React.useEffect(() => {
|
|
27535
|
+
registerPlanCard(scope, seq, plan, isWriting);
|
|
27536
|
+
return () => unregisterPlanCard(scope, seq);
|
|
27537
|
+
}, [scope, seq]);
|
|
27538
|
+
React.useEffect(() => {
|
|
27539
|
+
updatePlanCard(scope, seq, plan, isWriting);
|
|
27540
|
+
}, [scope, seq, plan, isWriting]);
|
|
27541
|
+
return useIsLatestPlanCard(scope, seq);
|
|
27542
|
+
}
|
|
27543
|
+
const HiddenWriteTodosToolUIImpl = ({
|
|
27544
|
+
args,
|
|
27545
|
+
argsText,
|
|
27546
|
+
result,
|
|
27547
|
+
status
|
|
27548
|
+
}) => {
|
|
27549
|
+
const plan = React.useMemo(
|
|
27550
|
+
() => parseTodoPlan({ args, argsText, result }),
|
|
27551
|
+
[args, argsText, result]
|
|
27552
|
+
);
|
|
27553
|
+
usePlanCardRegistration(plan, (status == null ? void 0 : status.type) === "running");
|
|
27554
|
+
return null;
|
|
27555
|
+
};
|
|
27556
|
+
const HiddenWriteTodosToolUI = React.memo(
|
|
27557
|
+
HiddenWriteTodosToolUIImpl
|
|
27558
|
+
);
|
|
27559
|
+
HiddenWriteTodosToolUI.displayName = "HiddenWriteTodosToolUI";
|
|
27321
27560
|
const WriteTodosToolUIImpl = ({
|
|
27322
27561
|
args,
|
|
27323
27562
|
argsText,
|
|
27324
27563
|
result,
|
|
27325
27564
|
status
|
|
27326
27565
|
}) => {
|
|
27327
|
-
const
|
|
27566
|
+
const plan = React.useMemo(
|
|
27328
27567
|
() => parseTodoPlan({ args, argsText, result }),
|
|
27329
27568
|
[args, argsText, result]
|
|
27330
27569
|
);
|
|
27570
|
+
const { steps, changeDescription } = plan;
|
|
27331
27571
|
const [collapsed, setCollapsed] = React.useState(false);
|
|
27572
|
+
const isWriting = (status == null ? void 0 : status.type) === "running";
|
|
27573
|
+
const isLatest = usePlanCardRegistration(plan, isWriting);
|
|
27574
|
+
if (!isLatest) return null;
|
|
27332
27575
|
const completed = steps.filter((s) => s.status === "completed").length;
|
|
27333
27576
|
const stopped = steps.filter(
|
|
27334
27577
|
(s) => s.status === "cancelled" || s.status === "failed"
|
|
@@ -27336,7 +27579,6 @@ const WriteTodosToolUIImpl = ({
|
|
|
27336
27579
|
const current = steps.find((s) => s.status === "in_progress");
|
|
27337
27580
|
const total = steps.length;
|
|
27338
27581
|
const resolved = completed + stopped;
|
|
27339
|
-
const isWriting = (status == null ? void 0 : status.type) === "running";
|
|
27340
27582
|
const isDone = total > 0 && resolved === total;
|
|
27341
27583
|
if (total === 0) {
|
|
27342
27584
|
return isWriting ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "my-3 flex w-full items-center gap-2 rounded-xl border border-border/60 bg-background px-4 py-3 shadow-sm", children: [
|
|
@@ -30549,7 +30791,15 @@ const TOOL_UI_REGISTRY = {
|
|
|
30549
30791
|
run_sql: RunSqlToolUI,
|
|
30550
30792
|
run_database_sql: RunSqlToolUI,
|
|
30551
30793
|
run_sql_query_tool: RunSqlToolUI,
|
|
30552
|
-
write_todos: WriteTodosToolUI
|
|
30794
|
+
write_todos: WriteTodosToolUI,
|
|
30795
|
+
// Deep-agent workspace-file tools — quiet plain-English cards; the generic
|
|
30796
|
+
// fallback dumped raw scratch-space JSON (see file-tool-uis.tsx).
|
|
30797
|
+
read_file: ReadFileToolUI,
|
|
30798
|
+
ls: ListFilesToolUI,
|
|
30799
|
+
write_file: WriteFileToolUI,
|
|
30800
|
+
edit_file: EditFileToolUI,
|
|
30801
|
+
glob: SearchFilesToolUI,
|
|
30802
|
+
grep: SearchFilesToolUI
|
|
30553
30803
|
};
|
|
30554
30804
|
const TOOLKIT_THEMES = {
|
|
30555
30805
|
Web: { color: "#7BCCFA" },
|
|
@@ -33488,18 +33738,23 @@ exports.DEFAULT_ATHENA_TRANSPORT = DEFAULT_ATHENA_TRANSPORT;
|
|
|
33488
33738
|
exports.DEFAULT_AUTO_OPEN_TOOLS = DEFAULT_AUTO_OPEN_TOOLS;
|
|
33489
33739
|
exports.DEFAULT_STATEWIRE_MODEL = DEFAULT_STATEWIRE_MODEL;
|
|
33490
33740
|
exports.DescribeDatabaseToolUI = DescribeDatabaseToolUI;
|
|
33741
|
+
exports.EditFileToolUI = EditFileToolUI;
|
|
33491
33742
|
exports.EmailSearchToolUI = EmailSearchToolUI;
|
|
33492
33743
|
exports.ExpandableSection = ExpandableSection;
|
|
33493
33744
|
exports.FileUploadButton = FileUploadButton;
|
|
33494
33745
|
exports.GetDatabaseTableSchemaToolUI = GetDatabaseTableSchemaToolUI;
|
|
33746
|
+
exports.HiddenWriteTodosToolUI = HiddenWriteTodosToolUI;
|
|
33495
33747
|
exports.ListDatabaseTablesToolUI = ListDatabaseTablesToolUI;
|
|
33748
|
+
exports.ListFilesToolUI = ListFilesToolUI;
|
|
33496
33749
|
exports.NestedPtcMessages = NestedPtcMessages;
|
|
33497
33750
|
exports.OpenAssetToolUI = OpenAssetToolUI;
|
|
33498
33751
|
exports.OpenBrowserToolUI = OpenBrowserToolUI;
|
|
33499
33752
|
exports.PTC_SUBCALL_DID_NOT_COMPLETE_MESSAGE = PTC_SUBCALL_DID_NOT_COMPLETE_MESSAGE;
|
|
33500
33753
|
exports.ReadAssetToolUI = ReadAssetToolUI;
|
|
33754
|
+
exports.ReadFileToolUI = ReadFileToolUI;
|
|
33501
33755
|
exports.RunPythonCodeToolUI = RunPythonCodeToolUI;
|
|
33502
33756
|
exports.RunSqlToolUI = RunSqlToolUI;
|
|
33757
|
+
exports.SearchFilesToolUI = SearchFilesToolUI;
|
|
33503
33758
|
exports.StatewireApprovalCard = StatewireApprovalCard;
|
|
33504
33759
|
exports.StatewireClientToolBridge = StatewireClientToolBridge;
|
|
33505
33760
|
exports.StatewireConnectionBanner = StatewireConnectionBanner;
|
|
@@ -33526,6 +33781,7 @@ exports.TooltipProvider = TooltipProvider;
|
|
|
33526
33781
|
exports.TooltipTrigger = TooltipTrigger;
|
|
33527
33782
|
exports.UpdateSheetRangeToolUI = UpdateSheetRangeToolUI;
|
|
33528
33783
|
exports.WebSearchToolUI = WebSearchToolUI;
|
|
33784
|
+
exports.WriteFileToolUI = WriteFileToolUI;
|
|
33529
33785
|
exports.WriteTodosToolUI = WriteTodosToolUI;
|
|
33530
33786
|
exports.allowsMidRunSend = allowsMidRunSend;
|
|
33531
33787
|
exports.asHitlApproval = asHitlApproval;
|
|
@@ -33539,6 +33795,7 @@ exports.conversationSummaryFromIndexEntry = conversationSummaryFromIndexEntry;
|
|
|
33539
33795
|
exports.convertLangChainToThreadMessages = convertLangChainToThreadMessages;
|
|
33540
33796
|
exports.createAssetToolUI = createAssetToolUI;
|
|
33541
33797
|
exports.formatToolName = formatToolName;
|
|
33798
|
+
exports.friendlyWorkspacePath = friendlyWorkspacePath;
|
|
33542
33799
|
exports.getAssetInfo = getAssetInfo;
|
|
33543
33800
|
exports.hasStatewireThreadExtras = hasStatewireThreadExtras;
|
|
33544
33801
|
exports.isAthenaCitationUrl = isAthenaCitationUrl;
|
|
@@ -33570,6 +33827,7 @@ exports.useAthenaThreadListAdapter = useAthenaThreadListAdapter;
|
|
|
33570
33827
|
exports.useAthenaThreadManager = useAthenaThreadManager;
|
|
33571
33828
|
exports.useComposerAttachment = useComposerAttachment;
|
|
33572
33829
|
exports.useFileUpload = useFileUpload;
|
|
33830
|
+
exports.useLatestTodoPlan = useLatestTodoPlan;
|
|
33573
33831
|
exports.useMentionSuggestions = useMentionSuggestions;
|
|
33574
33832
|
exports.useParentAuth = useParentAuth;
|
|
33575
33833
|
exports.useParentBridge = useParentBridge;
|