@athenaintel/react 0.10.0 → 0.10.2
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/index.cjs +855 -112
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +10 -2
- package/dist/index.js +855 -112
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11239,12 +11239,12 @@ var styleHookSingleton = function() {
|
|
|
11239
11239
|
};
|
|
11240
11240
|
var styleSingleton = function() {
|
|
11241
11241
|
var useStyle = styleHookSingleton();
|
|
11242
|
-
var
|
|
11242
|
+
var Sheet2 = function(_a2) {
|
|
11243
11243
|
var styles = _a2.styles, dynamic = _a2.dynamic;
|
|
11244
11244
|
useStyle(styles, dynamic);
|
|
11245
11245
|
return null;
|
|
11246
11246
|
};
|
|
11247
|
-
return
|
|
11247
|
+
return Sheet2;
|
|
11248
11248
|
};
|
|
11249
11249
|
var zeroGap = {
|
|
11250
11250
|
left: 0,
|
|
@@ -58019,10 +58019,10 @@ function childNodes(node) {
|
|
|
58019
58019
|
var _node$content$content, _node$content;
|
|
58020
58020
|
return (_node$content$content = node === null || node === void 0 || (_node$content = node.content) === null || _node$content === void 0 ? void 0 : _node$content.content) !== null && _node$content$content !== void 0 ? _node$content$content : [];
|
|
58021
58021
|
}
|
|
58022
|
-
const Table = Node3.create({
|
|
58022
|
+
const Table$1 = Node3.create({
|
|
58023
58023
|
name: "table"
|
|
58024
58024
|
});
|
|
58025
|
-
const Table$1 = Table.extend({
|
|
58025
|
+
const Table$1$1 = Table$1.extend({
|
|
58026
58026
|
/**
|
|
58027
58027
|
* @return {{markdown: MarkdownNodeSpec}}
|
|
58028
58028
|
*/
|
|
@@ -58251,7 +58251,7 @@ const Strike$1 = Strike.extend({
|
|
|
58251
58251
|
};
|
|
58252
58252
|
}
|
|
58253
58253
|
});
|
|
58254
|
-
const markdownExtensions = [Blockquote$1, BulletList$1, CodeBlock$1, HardBreak$1, Heading$1, HorizontalRule$1, HTMLNode, Image$1$1, ListItem$1, OrderedList$1, Paragraph$1, Table$1, TaskItem$1, TaskList$1, Text$1, Bold$1, Code$1$1, HTMLMark, Italic$1, Link$1$1, Strike$1];
|
|
58254
|
+
const markdownExtensions = [Blockquote$1, BulletList$1, CodeBlock$1, HardBreak$1, Heading$1, HorizontalRule$1, HTMLNode, Image$1$1, ListItem$1, OrderedList$1, Paragraph$1, Table$1$1, TaskItem$1, TaskList$1, Text$1, Bold$1, Code$1$1, HTMLMark, Italic$1, Link$1$1, Strike$1];
|
|
58255
58255
|
function getMarkdownSpec(extension) {
|
|
58256
58256
|
var _extension$storage, _markdownExtensions$f;
|
|
58257
58257
|
const markdownSpec = (_extension$storage = extension.storage) === null || _extension$storage === void 0 ? void 0 : _extension$storage.markdown;
|
|
@@ -61546,9 +61546,13 @@ const TiptapComposer = ({ tools = [] }) => {
|
|
|
61546
61546
|
quoteRef.current = quote;
|
|
61547
61547
|
const isUploadingRef = useRef(isUploading);
|
|
61548
61548
|
isUploadingRef.current = isUploading;
|
|
61549
|
+
const isThreadRunning = useAuiState((s) => s.thread.isRunning);
|
|
61550
|
+
const isThreadRunningRef = useRef(isThreadRunning);
|
|
61551
|
+
isThreadRunningRef.current = isThreadRunning;
|
|
61549
61552
|
const handleSubmit = useCallback(() => {
|
|
61550
61553
|
var _a2;
|
|
61551
61554
|
if (isUploadingRef.current) return;
|
|
61555
|
+
if (isThreadRunningRef.current) return;
|
|
61552
61556
|
const editor2 = editorRef.current;
|
|
61553
61557
|
if (!editor2) return;
|
|
61554
61558
|
const currentAttachments = attachmentsRef.current;
|
|
@@ -61768,40 +61772,40 @@ const createLucideIcon = (iconName, iconNode) => {
|
|
|
61768
61772
|
* This source code is licensed under the ISC license.
|
|
61769
61773
|
* See the LICENSE file in the root directory of this source tree.
|
|
61770
61774
|
*/
|
|
61771
|
-
const __iconNode$
|
|
61775
|
+
const __iconNode$R = [
|
|
61772
61776
|
["path", { d: "M12 5v14", key: "s699le" }],
|
|
61773
61777
|
["path", { d: "m19 12-7 7-7-7", key: "1idqje" }]
|
|
61774
61778
|
];
|
|
61775
|
-
const ArrowDown = createLucideIcon("arrow-down", __iconNode$
|
|
61779
|
+
const ArrowDown = createLucideIcon("arrow-down", __iconNode$R);
|
|
61776
61780
|
/**
|
|
61777
61781
|
* @license lucide-react v0.575.0 - ISC
|
|
61778
61782
|
*
|
|
61779
61783
|
* This source code is licensed under the ISC license.
|
|
61780
61784
|
* See the LICENSE file in the root directory of this source tree.
|
|
61781
61785
|
*/
|
|
61782
|
-
const __iconNode$
|
|
61786
|
+
const __iconNode$Q = [
|
|
61783
61787
|
["path", { d: "M5 12h14", key: "1ays0h" }],
|
|
61784
61788
|
["path", { d: "m12 5 7 7-7 7", key: "xquz4c" }]
|
|
61785
61789
|
];
|
|
61786
|
-
const ArrowRight = createLucideIcon("arrow-right", __iconNode$
|
|
61790
|
+
const ArrowRight = createLucideIcon("arrow-right", __iconNode$Q);
|
|
61787
61791
|
/**
|
|
61788
61792
|
* @license lucide-react v0.575.0 - ISC
|
|
61789
61793
|
*
|
|
61790
61794
|
* This source code is licensed under the ISC license.
|
|
61791
61795
|
* See the LICENSE file in the root directory of this source tree.
|
|
61792
61796
|
*/
|
|
61793
|
-
const __iconNode$
|
|
61797
|
+
const __iconNode$P = [
|
|
61794
61798
|
["path", { d: "m5 12 7-7 7 7", key: "hav0vg" }],
|
|
61795
61799
|
["path", { d: "M12 19V5", key: "x0mq9r" }]
|
|
61796
61800
|
];
|
|
61797
|
-
const ArrowUp = createLucideIcon("arrow-up", __iconNode$
|
|
61801
|
+
const ArrowUp = createLucideIcon("arrow-up", __iconNode$P);
|
|
61798
61802
|
/**
|
|
61799
61803
|
* @license lucide-react v0.575.0 - ISC
|
|
61800
61804
|
*
|
|
61801
61805
|
* This source code is licensed under the ISC license.
|
|
61802
61806
|
* See the LICENSE file in the root directory of this source tree.
|
|
61803
61807
|
*/
|
|
61804
|
-
const __iconNode$
|
|
61808
|
+
const __iconNode$O = [
|
|
61805
61809
|
["path", { d: "M12 7v14", key: "1akyts" }],
|
|
61806
61810
|
[
|
|
61807
61811
|
"path",
|
|
@@ -61811,14 +61815,14 @@ const __iconNode$K = [
|
|
|
61811
61815
|
}
|
|
61812
61816
|
]
|
|
61813
61817
|
];
|
|
61814
|
-
const BookOpen = createLucideIcon("book-open", __iconNode$
|
|
61818
|
+
const BookOpen = createLucideIcon("book-open", __iconNode$O);
|
|
61815
61819
|
/**
|
|
61816
61820
|
* @license lucide-react v0.575.0 - ISC
|
|
61817
61821
|
*
|
|
61818
61822
|
* This source code is licensed under the ISC license.
|
|
61819
61823
|
* See the LICENSE file in the root directory of this source tree.
|
|
61820
61824
|
*/
|
|
61821
|
-
const __iconNode$
|
|
61825
|
+
const __iconNode$N = [
|
|
61822
61826
|
["path", { d: "M12 18V5", key: "adv99a" }],
|
|
61823
61827
|
["path", { d: "M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4", key: "1e3is1" }],
|
|
61824
61828
|
["path", { d: "M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5", key: "1gqd8o" }],
|
|
@@ -61828,170 +61832,170 @@ const __iconNode$J = [
|
|
|
61828
61832
|
["path", { d: "M6 18a4 4 0 0 1-2-7.464", key: "k1g0md" }],
|
|
61829
61833
|
["path", { d: "M6.003 5.125a4 4 0 0 0-2.526 5.77", key: "q97ue3" }]
|
|
61830
61834
|
];
|
|
61831
|
-
const Brain = createLucideIcon("brain", __iconNode$
|
|
61835
|
+
const Brain = createLucideIcon("brain", __iconNode$N);
|
|
61832
61836
|
/**
|
|
61833
61837
|
* @license lucide-react v0.575.0 - ISC
|
|
61834
61838
|
*
|
|
61835
61839
|
* This source code is licensed under the ISC license.
|
|
61836
61840
|
* See the LICENSE file in the root directory of this source tree.
|
|
61837
61841
|
*/
|
|
61838
|
-
const __iconNode$
|
|
61842
|
+
const __iconNode$M = [
|
|
61839
61843
|
["path", { d: "M3 3v16a2 2 0 0 0 2 2h16", key: "c24i48" }],
|
|
61840
61844
|
["path", { d: "M18 17V9", key: "2bz60n" }],
|
|
61841
61845
|
["path", { d: "M13 17V5", key: "1frdt8" }],
|
|
61842
61846
|
["path", { d: "M8 17v-3", key: "17ska0" }]
|
|
61843
61847
|
];
|
|
61844
|
-
const ChartColumn = createLucideIcon("chart-column", __iconNode$
|
|
61848
|
+
const ChartColumn = createLucideIcon("chart-column", __iconNode$M);
|
|
61845
61849
|
/**
|
|
61846
61850
|
* @license lucide-react v0.575.0 - ISC
|
|
61847
61851
|
*
|
|
61848
61852
|
* This source code is licensed under the ISC license.
|
|
61849
61853
|
* See the LICENSE file in the root directory of this source tree.
|
|
61850
61854
|
*/
|
|
61851
|
-
const __iconNode$
|
|
61852
|
-
const Check = createLucideIcon("check", __iconNode$
|
|
61855
|
+
const __iconNode$L = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]];
|
|
61856
|
+
const Check = createLucideIcon("check", __iconNode$L);
|
|
61853
61857
|
/**
|
|
61854
61858
|
* @license lucide-react v0.575.0 - ISC
|
|
61855
61859
|
*
|
|
61856
61860
|
* This source code is licensed under the ISC license.
|
|
61857
61861
|
* See the LICENSE file in the root directory of this source tree.
|
|
61858
61862
|
*/
|
|
61859
|
-
const __iconNode$
|
|
61860
|
-
const ChevronDown = createLucideIcon("chevron-down", __iconNode$
|
|
61863
|
+
const __iconNode$K = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]];
|
|
61864
|
+
const ChevronDown = createLucideIcon("chevron-down", __iconNode$K);
|
|
61861
61865
|
/**
|
|
61862
61866
|
* @license lucide-react v0.575.0 - ISC
|
|
61863
61867
|
*
|
|
61864
61868
|
* This source code is licensed under the ISC license.
|
|
61865
61869
|
* See the LICENSE file in the root directory of this source tree.
|
|
61866
61870
|
*/
|
|
61867
|
-
const __iconNode$
|
|
61868
|
-
const ChevronRight = createLucideIcon("chevron-right", __iconNode$
|
|
61871
|
+
const __iconNode$J = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]];
|
|
61872
|
+
const ChevronRight = createLucideIcon("chevron-right", __iconNode$J);
|
|
61869
61873
|
/**
|
|
61870
61874
|
* @license lucide-react v0.575.0 - ISC
|
|
61871
61875
|
*
|
|
61872
61876
|
* This source code is licensed under the ISC license.
|
|
61873
61877
|
* See the LICENSE file in the root directory of this source tree.
|
|
61874
61878
|
*/
|
|
61875
|
-
const __iconNode$
|
|
61879
|
+
const __iconNode$I = [
|
|
61876
61880
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
61877
61881
|
["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
|
|
61878
61882
|
["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
|
|
61879
61883
|
];
|
|
61880
|
-
const CircleAlert = createLucideIcon("circle-alert", __iconNode$
|
|
61884
|
+
const CircleAlert = createLucideIcon("circle-alert", __iconNode$I);
|
|
61881
61885
|
/**
|
|
61882
61886
|
* @license lucide-react v0.575.0 - ISC
|
|
61883
61887
|
*
|
|
61884
61888
|
* This source code is licensed under the ISC license.
|
|
61885
61889
|
* See the LICENSE file in the root directory of this source tree.
|
|
61886
61890
|
*/
|
|
61887
|
-
const __iconNode$
|
|
61891
|
+
const __iconNode$H = [
|
|
61888
61892
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
61889
61893
|
["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
|
|
61890
61894
|
];
|
|
61891
|
-
const CircleCheck = createLucideIcon("circle-check", __iconNode$
|
|
61895
|
+
const CircleCheck = createLucideIcon("circle-check", __iconNode$H);
|
|
61892
61896
|
/**
|
|
61893
61897
|
* @license lucide-react v0.575.0 - ISC
|
|
61894
61898
|
*
|
|
61895
61899
|
* This source code is licensed under the ISC license.
|
|
61896
61900
|
* See the LICENSE file in the root directory of this source tree.
|
|
61897
61901
|
*/
|
|
61898
|
-
const __iconNode$
|
|
61902
|
+
const __iconNode$G = [
|
|
61899
61903
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
61900
61904
|
["path", { d: "m15 9-6 6", key: "1uzhvr" }],
|
|
61901
61905
|
["path", { d: "m9 9 6 6", key: "z0biqf" }]
|
|
61902
61906
|
];
|
|
61903
|
-
const CircleX = createLucideIcon("circle-x", __iconNode$
|
|
61907
|
+
const CircleX = createLucideIcon("circle-x", __iconNode$G);
|
|
61904
61908
|
/**
|
|
61905
61909
|
* @license lucide-react v0.575.0 - ISC
|
|
61906
61910
|
*
|
|
61907
61911
|
* This source code is licensed under the ISC license.
|
|
61908
61912
|
* See the LICENSE file in the root directory of this source tree.
|
|
61909
61913
|
*/
|
|
61910
|
-
const __iconNode$
|
|
61914
|
+
const __iconNode$F = [
|
|
61911
61915
|
["rect", { width: "8", height: "4", x: "8", y: "2", rx: "1", ry: "1", key: "tgr4d6" }],
|
|
61912
61916
|
["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" }],
|
|
61913
61917
|
["path", { d: "M16 4h2a2 2 0 0 1 2 2v4", key: "3hqy98" }],
|
|
61914
61918
|
["path", { d: "M21 14H11", key: "1bme5i" }],
|
|
61915
61919
|
["path", { d: "m15 10-4 4 4 4", key: "5dvupr" }]
|
|
61916
61920
|
];
|
|
61917
|
-
const ClipboardCopy = createLucideIcon("clipboard-copy", __iconNode$
|
|
61921
|
+
const ClipboardCopy = createLucideIcon("clipboard-copy", __iconNode$F);
|
|
61918
61922
|
/**
|
|
61919
61923
|
* @license lucide-react v0.575.0 - ISC
|
|
61920
61924
|
*
|
|
61921
61925
|
* This source code is licensed under the ISC license.
|
|
61922
61926
|
* See the LICENSE file in the root directory of this source tree.
|
|
61923
61927
|
*/
|
|
61924
|
-
const __iconNode$
|
|
61928
|
+
const __iconNode$E = [
|
|
61925
61929
|
["path", { d: "m16 18 6-6-6-6", key: "eg8j8" }],
|
|
61926
61930
|
["path", { d: "m8 6-6 6 6 6", key: "ppft3o" }]
|
|
61927
61931
|
];
|
|
61928
|
-
const Code = createLucideIcon("code", __iconNode$
|
|
61932
|
+
const Code = createLucideIcon("code", __iconNode$E);
|
|
61929
61933
|
/**
|
|
61930
61934
|
* @license lucide-react v0.575.0 - ISC
|
|
61931
61935
|
*
|
|
61932
61936
|
* This source code is licensed under the ISC license.
|
|
61933
61937
|
* See the LICENSE file in the root directory of this source tree.
|
|
61934
61938
|
*/
|
|
61935
|
-
const __iconNode$
|
|
61939
|
+
const __iconNode$D = [
|
|
61936
61940
|
["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
|
|
61937
61941
|
["path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2", key: "zix9uf" }]
|
|
61938
61942
|
];
|
|
61939
|
-
const Copy = createLucideIcon("copy", __iconNode$
|
|
61943
|
+
const Copy = createLucideIcon("copy", __iconNode$D);
|
|
61940
61944
|
/**
|
|
61941
61945
|
* @license lucide-react v0.575.0 - ISC
|
|
61942
61946
|
*
|
|
61943
61947
|
* This source code is licensed under the ISC license.
|
|
61944
61948
|
* See the LICENSE file in the root directory of this source tree.
|
|
61945
61949
|
*/
|
|
61946
|
-
const __iconNode$
|
|
61950
|
+
const __iconNode$C = [
|
|
61947
61951
|
["ellipse", { cx: "12", cy: "5", rx: "9", ry: "3", key: "msslwz" }],
|
|
61948
61952
|
["path", { d: "M3 5V19A9 3 0 0 0 21 19V5", key: "1wlel7" }],
|
|
61949
61953
|
["path", { d: "M3 12A9 3 0 0 0 21 12", key: "mv7ke4" }]
|
|
61950
61954
|
];
|
|
61951
|
-
const Database = createLucideIcon("database", __iconNode$
|
|
61955
|
+
const Database = createLucideIcon("database", __iconNode$C);
|
|
61952
61956
|
/**
|
|
61953
61957
|
* @license lucide-react v0.575.0 - ISC
|
|
61954
61958
|
*
|
|
61955
61959
|
* This source code is licensed under the ISC license.
|
|
61956
61960
|
* See the LICENSE file in the root directory of this source tree.
|
|
61957
61961
|
*/
|
|
61958
|
-
const __iconNode$
|
|
61962
|
+
const __iconNode$B = [
|
|
61959
61963
|
["path", { d: "M12 15V3", key: "m9g1x1" }],
|
|
61960
61964
|
["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }],
|
|
61961
61965
|
["path", { d: "m7 10 5 5 5-5", key: "brsn70" }]
|
|
61962
61966
|
];
|
|
61963
|
-
const Download = createLucideIcon("download", __iconNode$
|
|
61967
|
+
const Download = createLucideIcon("download", __iconNode$B);
|
|
61964
61968
|
/**
|
|
61965
61969
|
* @license lucide-react v0.575.0 - ISC
|
|
61966
61970
|
*
|
|
61967
61971
|
* This source code is licensed under the ISC license.
|
|
61968
61972
|
* See the LICENSE file in the root directory of this source tree.
|
|
61969
61973
|
*/
|
|
61970
|
-
const __iconNode$
|
|
61974
|
+
const __iconNode$A = [
|
|
61971
61975
|
["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
|
|
61972
61976
|
["circle", { cx: "19", cy: "12", r: "1", key: "1wjl8i" }],
|
|
61973
61977
|
["circle", { cx: "5", cy: "12", r: "1", key: "1pcz8c" }]
|
|
61974
61978
|
];
|
|
61975
|
-
const Ellipsis = createLucideIcon("ellipsis", __iconNode$
|
|
61979
|
+
const Ellipsis = createLucideIcon("ellipsis", __iconNode$A);
|
|
61976
61980
|
/**
|
|
61977
61981
|
* @license lucide-react v0.575.0 - ISC
|
|
61978
61982
|
*
|
|
61979
61983
|
* This source code is licensed under the ISC license.
|
|
61980
61984
|
* See the LICENSE file in the root directory of this source tree.
|
|
61981
61985
|
*/
|
|
61982
|
-
const __iconNode$
|
|
61986
|
+
const __iconNode$z = [
|
|
61983
61987
|
["path", { d: "M15 3h6v6", key: "1q9fwt" }],
|
|
61984
61988
|
["path", { d: "M10 14 21 3", key: "gplh6r" }],
|
|
61985
61989
|
["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
|
|
61986
61990
|
];
|
|
61987
|
-
const ExternalLink = createLucideIcon("external-link", __iconNode$
|
|
61991
|
+
const ExternalLink = createLucideIcon("external-link", __iconNode$z);
|
|
61988
61992
|
/**
|
|
61989
61993
|
* @license lucide-react v0.575.0 - ISC
|
|
61990
61994
|
*
|
|
61991
61995
|
* This source code is licensed under the ISC license.
|
|
61992
61996
|
* See the LICENSE file in the root directory of this source tree.
|
|
61993
61997
|
*/
|
|
61994
|
-
const __iconNode$
|
|
61998
|
+
const __iconNode$y = [
|
|
61995
61999
|
[
|
|
61996
62000
|
"path",
|
|
61997
62001
|
{
|
|
@@ -62003,14 +62007,14 @@ const __iconNode$u = [
|
|
|
62003
62007
|
["path", { d: "M9 15h6", key: "cctwl0" }],
|
|
62004
62008
|
["path", { d: "M12 18v-6", key: "17g6i2" }]
|
|
62005
62009
|
];
|
|
62006
|
-
const FilePlus = createLucideIcon("file-plus", __iconNode$
|
|
62010
|
+
const FilePlus = createLucideIcon("file-plus", __iconNode$y);
|
|
62007
62011
|
/**
|
|
62008
62012
|
* @license lucide-react v0.575.0 - ISC
|
|
62009
62013
|
*
|
|
62010
62014
|
* This source code is licensed under the ISC license.
|
|
62011
62015
|
* See the LICENSE file in the root directory of this source tree.
|
|
62012
62016
|
*/
|
|
62013
|
-
const __iconNode$
|
|
62017
|
+
const __iconNode$x = [
|
|
62014
62018
|
[
|
|
62015
62019
|
"path",
|
|
62016
62020
|
{
|
|
@@ -62024,14 +62028,14 @@ const __iconNode$t = [
|
|
|
62024
62028
|
["path", { d: "M8 17h2", key: "2yhykz" }],
|
|
62025
62029
|
["path", { d: "M14 17h2", key: "10kma7" }]
|
|
62026
62030
|
];
|
|
62027
|
-
const FileSpreadsheet = createLucideIcon("file-spreadsheet", __iconNode$
|
|
62031
|
+
const FileSpreadsheet = createLucideIcon("file-spreadsheet", __iconNode$x);
|
|
62028
62032
|
/**
|
|
62029
62033
|
* @license lucide-react v0.575.0 - ISC
|
|
62030
62034
|
*
|
|
62031
62035
|
* This source code is licensed under the ISC license.
|
|
62032
62036
|
* See the LICENSE file in the root directory of this source tree.
|
|
62033
62037
|
*/
|
|
62034
|
-
const __iconNode$
|
|
62038
|
+
const __iconNode$w = [
|
|
62035
62039
|
[
|
|
62036
62040
|
"path",
|
|
62037
62041
|
{
|
|
@@ -62044,14 +62048,14 @@ const __iconNode$s = [
|
|
|
62044
62048
|
["path", { d: "M16 13H8", key: "t4e002" }],
|
|
62045
62049
|
["path", { d: "M16 17H8", key: "z1uh3a" }]
|
|
62046
62050
|
];
|
|
62047
|
-
const FileText = createLucideIcon("file-text", __iconNode$
|
|
62051
|
+
const FileText = createLucideIcon("file-text", __iconNode$w);
|
|
62048
62052
|
/**
|
|
62049
62053
|
* @license lucide-react v0.575.0 - ISC
|
|
62050
62054
|
*
|
|
62051
62055
|
* This source code is licensed under the ISC license.
|
|
62052
62056
|
* See the LICENSE file in the root directory of this source tree.
|
|
62053
62057
|
*/
|
|
62054
|
-
const __iconNode$
|
|
62058
|
+
const __iconNode$v = [
|
|
62055
62059
|
[
|
|
62056
62060
|
"path",
|
|
62057
62061
|
{
|
|
@@ -62061,14 +62065,14 @@ const __iconNode$r = [
|
|
|
62061
62065
|
],
|
|
62062
62066
|
["path", { d: "M14 2v5a1 1 0 0 0 1 1h5", key: "wfsgrz" }]
|
|
62063
62067
|
];
|
|
62064
|
-
const File$1 = createLucideIcon("file", __iconNode$
|
|
62068
|
+
const File$1 = createLucideIcon("file", __iconNode$v);
|
|
62065
62069
|
/**
|
|
62066
62070
|
* @license lucide-react v0.575.0 - ISC
|
|
62067
62071
|
*
|
|
62068
62072
|
* This source code is licensed under the ISC license.
|
|
62069
62073
|
* See the LICENSE file in the root directory of this source tree.
|
|
62070
62074
|
*/
|
|
62071
|
-
const __iconNode$
|
|
62075
|
+
const __iconNode$u = [
|
|
62072
62076
|
[
|
|
62073
62077
|
"path",
|
|
62074
62078
|
{
|
|
@@ -62077,38 +62081,38 @@ const __iconNode$q = [
|
|
|
62077
62081
|
}
|
|
62078
62082
|
]
|
|
62079
62083
|
];
|
|
62080
|
-
const FolderOpen = createLucideIcon("folder-open", __iconNode$
|
|
62084
|
+
const FolderOpen = createLucideIcon("folder-open", __iconNode$u);
|
|
62081
62085
|
/**
|
|
62082
62086
|
* @license lucide-react v0.575.0 - ISC
|
|
62083
62087
|
*
|
|
62084
62088
|
* This source code is licensed under the ISC license.
|
|
62085
62089
|
* See the LICENSE file in the root directory of this source tree.
|
|
62086
62090
|
*/
|
|
62087
|
-
const __iconNode$
|
|
62091
|
+
const __iconNode$t = [
|
|
62088
62092
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
62089
62093
|
["path", { d: "M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20", key: "13o1zl" }],
|
|
62090
62094
|
["path", { d: "M2 12h20", key: "9i4pu4" }]
|
|
62091
62095
|
];
|
|
62092
|
-
const Globe = createLucideIcon("globe", __iconNode$
|
|
62096
|
+
const Globe = createLucideIcon("globe", __iconNode$t);
|
|
62093
62097
|
/**
|
|
62094
62098
|
* @license lucide-react v0.575.0 - ISC
|
|
62095
62099
|
*
|
|
62096
62100
|
* This source code is licensed under the ISC license.
|
|
62097
62101
|
* See the LICENSE file in the root directory of this source tree.
|
|
62098
62102
|
*/
|
|
62099
|
-
const __iconNode$
|
|
62103
|
+
const __iconNode$s = [
|
|
62100
62104
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", ry: "2", key: "1m3agn" }],
|
|
62101
62105
|
["circle", { cx: "9", cy: "9", r: "2", key: "af1f0g" }],
|
|
62102
62106
|
["path", { d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21", key: "1xmnt7" }]
|
|
62103
62107
|
];
|
|
62104
|
-
const Image = createLucideIcon("image", __iconNode$
|
|
62108
|
+
const Image = createLucideIcon("image", __iconNode$s);
|
|
62105
62109
|
/**
|
|
62106
62110
|
* @license lucide-react v0.575.0 - ISC
|
|
62107
62111
|
*
|
|
62108
62112
|
* This source code is licensed under the ISC license.
|
|
62109
62113
|
* See the LICENSE file in the root directory of this source tree.
|
|
62110
62114
|
*/
|
|
62111
|
-
const __iconNode$
|
|
62115
|
+
const __iconNode$r = [
|
|
62112
62116
|
[
|
|
62113
62117
|
"path",
|
|
62114
62118
|
{
|
|
@@ -62131,46 +62135,46 @@ const __iconNode$n = [
|
|
|
62131
62135
|
}
|
|
62132
62136
|
]
|
|
62133
62137
|
];
|
|
62134
|
-
const Layers = createLucideIcon("layers", __iconNode$
|
|
62138
|
+
const Layers = createLucideIcon("layers", __iconNode$r);
|
|
62135
62139
|
/**
|
|
62136
62140
|
* @license lucide-react v0.575.0 - ISC
|
|
62137
62141
|
*
|
|
62138
62142
|
* This source code is licensed under the ISC license.
|
|
62139
62143
|
* See the LICENSE file in the root directory of this source tree.
|
|
62140
62144
|
*/
|
|
62141
|
-
const __iconNode$
|
|
62145
|
+
const __iconNode$q = [
|
|
62142
62146
|
["rect", { width: "7", height: "7", x: "3", y: "3", rx: "1", key: "1g98yp" }],
|
|
62143
62147
|
["rect", { width: "7", height: "7", x: "14", y: "3", rx: "1", key: "6d4xhi" }],
|
|
62144
62148
|
["rect", { width: "7", height: "7", x: "14", y: "14", rx: "1", key: "nxv5o0" }],
|
|
62145
62149
|
["rect", { width: "7", height: "7", x: "3", y: "14", rx: "1", key: "1bb6yr" }]
|
|
62146
62150
|
];
|
|
62147
|
-
const LayoutGrid = createLucideIcon("layout-grid", __iconNode$
|
|
62151
|
+
const LayoutGrid = createLucideIcon("layout-grid", __iconNode$q);
|
|
62148
62152
|
/**
|
|
62149
62153
|
* @license lucide-react v0.575.0 - ISC
|
|
62150
62154
|
*
|
|
62151
62155
|
* This source code is licensed under the ISC license.
|
|
62152
62156
|
* See the LICENSE file in the root directory of this source tree.
|
|
62153
62157
|
*/
|
|
62154
|
-
const __iconNode$
|
|
62158
|
+
const __iconNode$p = [
|
|
62155
62159
|
["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" }],
|
|
62156
62160
|
["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" }]
|
|
62157
62161
|
];
|
|
62158
|
-
const Link = createLucideIcon("link", __iconNode$
|
|
62162
|
+
const Link = createLucideIcon("link", __iconNode$p);
|
|
62159
62163
|
/**
|
|
62160
62164
|
* @license lucide-react v0.575.0 - ISC
|
|
62161
62165
|
*
|
|
62162
62166
|
* This source code is licensed under the ISC license.
|
|
62163
62167
|
* See the LICENSE file in the root directory of this source tree.
|
|
62164
62168
|
*/
|
|
62165
|
-
const __iconNode$
|
|
62166
|
-
const LoaderCircle = createLucideIcon("loader-circle", __iconNode$
|
|
62169
|
+
const __iconNode$o = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]];
|
|
62170
|
+
const LoaderCircle = createLucideIcon("loader-circle", __iconNode$o);
|
|
62167
62171
|
/**
|
|
62168
62172
|
* @license lucide-react v0.575.0 - ISC
|
|
62169
62173
|
*
|
|
62170
62174
|
* This source code is licensed under the ISC license.
|
|
62171
62175
|
* See the LICENSE file in the root directory of this source tree.
|
|
62172
62176
|
*/
|
|
62173
|
-
const __iconNode$
|
|
62177
|
+
const __iconNode$n = [
|
|
62174
62178
|
["path", { d: "M12 2v4", key: "3427ic" }],
|
|
62175
62179
|
["path", { d: "m16.2 7.8 2.9-2.9", key: "r700ao" }],
|
|
62176
62180
|
["path", { d: "M18 12h4", key: "wj9ykh" }],
|
|
@@ -62180,38 +62184,38 @@ const __iconNode$j = [
|
|
|
62180
62184
|
["path", { d: "M2 12h4", key: "j09sii" }],
|
|
62181
62185
|
["path", { d: "m4.9 4.9 2.9 2.9", key: "giyufr" }]
|
|
62182
62186
|
];
|
|
62183
|
-
const Loader = createLucideIcon("loader", __iconNode$
|
|
62187
|
+
const Loader = createLucideIcon("loader", __iconNode$n);
|
|
62184
62188
|
/**
|
|
62185
62189
|
* @license lucide-react v0.575.0 - ISC
|
|
62186
62190
|
*
|
|
62187
62191
|
* This source code is licensed under the ISC license.
|
|
62188
62192
|
* See the LICENSE file in the root directory of this source tree.
|
|
62189
62193
|
*/
|
|
62190
|
-
const __iconNode$
|
|
62194
|
+
const __iconNode$m = [
|
|
62191
62195
|
["path", { d: "m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7", key: "132q7q" }],
|
|
62192
62196
|
["rect", { x: "2", y: "4", width: "20", height: "16", rx: "2", key: "izxlao" }]
|
|
62193
62197
|
];
|
|
62194
|
-
const Mail = createLucideIcon("mail", __iconNode$
|
|
62198
|
+
const Mail = createLucideIcon("mail", __iconNode$m);
|
|
62195
62199
|
/**
|
|
62196
62200
|
* @license lucide-react v0.575.0 - ISC
|
|
62197
62201
|
*
|
|
62198
62202
|
* This source code is licensed under the ISC license.
|
|
62199
62203
|
* See the LICENSE file in the root directory of this source tree.
|
|
62200
62204
|
*/
|
|
62201
|
-
const __iconNode$
|
|
62205
|
+
const __iconNode$l = [
|
|
62202
62206
|
["path", { d: "M15 3h6v6", key: "1q9fwt" }],
|
|
62203
62207
|
["path", { d: "m21 3-7 7", key: "1l2asr" }],
|
|
62204
62208
|
["path", { d: "m3 21 7-7", key: "tjx5ai" }],
|
|
62205
62209
|
["path", { d: "M9 21H3v-6", key: "wtvkvv" }]
|
|
62206
62210
|
];
|
|
62207
|
-
const Maximize2 = createLucideIcon("maximize-2", __iconNode$
|
|
62211
|
+
const Maximize2 = createLucideIcon("maximize-2", __iconNode$l);
|
|
62208
62212
|
/**
|
|
62209
62213
|
* @license lucide-react v0.575.0 - ISC
|
|
62210
62214
|
*
|
|
62211
62215
|
* This source code is licensed under the ISC license.
|
|
62212
62216
|
* See the LICENSE file in the root directory of this source tree.
|
|
62213
62217
|
*/
|
|
62214
|
-
const __iconNode$
|
|
62218
|
+
const __iconNode$k = [
|
|
62215
62219
|
[
|
|
62216
62220
|
"path",
|
|
62217
62221
|
{
|
|
@@ -62220,39 +62224,39 @@ const __iconNode$g = [
|
|
|
62220
62224
|
}
|
|
62221
62225
|
]
|
|
62222
62226
|
];
|
|
62223
|
-
const MessageSquare = createLucideIcon("message-square", __iconNode$
|
|
62227
|
+
const MessageSquare = createLucideIcon("message-square", __iconNode$k);
|
|
62224
62228
|
/**
|
|
62225
62229
|
* @license lucide-react v0.575.0 - ISC
|
|
62226
62230
|
*
|
|
62227
62231
|
* This source code is licensed under the ISC license.
|
|
62228
62232
|
* See the LICENSE file in the root directory of this source tree.
|
|
62229
62233
|
*/
|
|
62230
|
-
const __iconNode$
|
|
62234
|
+
const __iconNode$j = [
|
|
62231
62235
|
["path", { d: "m14 10 7-7", key: "oa77jy" }],
|
|
62232
62236
|
["path", { d: "M20 10h-6V4", key: "mjg0md" }],
|
|
62233
62237
|
["path", { d: "m3 21 7-7", key: "tjx5ai" }],
|
|
62234
62238
|
["path", { d: "M4 14h6v6", key: "rmj7iw" }]
|
|
62235
62239
|
];
|
|
62236
|
-
const Minimize2 = createLucideIcon("minimize-2", __iconNode$
|
|
62240
|
+
const Minimize2 = createLucideIcon("minimize-2", __iconNode$j);
|
|
62237
62241
|
/**
|
|
62238
62242
|
* @license lucide-react v0.575.0 - ISC
|
|
62239
62243
|
*
|
|
62240
62244
|
* This source code is licensed under the ISC license.
|
|
62241
62245
|
* See the LICENSE file in the root directory of this source tree.
|
|
62242
62246
|
*/
|
|
62243
|
-
const __iconNode$
|
|
62247
|
+
const __iconNode$i = [
|
|
62244
62248
|
["rect", { width: "20", height: "14", x: "2", y: "3", rx: "2", key: "48i651" }],
|
|
62245
62249
|
["line", { x1: "8", x2: "16", y1: "21", y2: "21", key: "1svkeh" }],
|
|
62246
62250
|
["line", { x1: "12", x2: "12", y1: "17", y2: "21", key: "vw1qmm" }]
|
|
62247
62251
|
];
|
|
62248
|
-
const Monitor = createLucideIcon("monitor", __iconNode$
|
|
62252
|
+
const Monitor = createLucideIcon("monitor", __iconNode$i);
|
|
62249
62253
|
/**
|
|
62250
62254
|
* @license lucide-react v0.575.0 - ISC
|
|
62251
62255
|
*
|
|
62252
62256
|
* This source code is licensed under the ISC license.
|
|
62253
62257
|
* See the LICENSE file in the root directory of this source tree.
|
|
62254
62258
|
*/
|
|
62255
|
-
const __iconNode$
|
|
62259
|
+
const __iconNode$h = [
|
|
62256
62260
|
["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" }],
|
|
62257
62261
|
["path", { d: "M2 6h4", key: "aawbzj" }],
|
|
62258
62262
|
["path", { d: "M2 10h4", key: "l0bgd4" }],
|
|
@@ -62266,14 +62270,14 @@ const __iconNode$d = [
|
|
|
62266
62270
|
}
|
|
62267
62271
|
]
|
|
62268
62272
|
];
|
|
62269
|
-
const NotebookPen = createLucideIcon("notebook-pen", __iconNode$
|
|
62273
|
+
const NotebookPen = createLucideIcon("notebook-pen", __iconNode$h);
|
|
62270
62274
|
/**
|
|
62271
62275
|
* @license lucide-react v0.575.0 - ISC
|
|
62272
62276
|
*
|
|
62273
62277
|
* This source code is licensed under the ISC license.
|
|
62274
62278
|
* See the LICENSE file in the root directory of this source tree.
|
|
62275
62279
|
*/
|
|
62276
|
-
const __iconNode$
|
|
62280
|
+
const __iconNode$g = [
|
|
62277
62281
|
[
|
|
62278
62282
|
"path",
|
|
62279
62283
|
{
|
|
@@ -62282,14 +62286,14 @@ const __iconNode$c = [
|
|
|
62282
62286
|
}
|
|
62283
62287
|
]
|
|
62284
62288
|
];
|
|
62285
|
-
const Paperclip = createLucideIcon("paperclip", __iconNode$
|
|
62289
|
+
const Paperclip = createLucideIcon("paperclip", __iconNode$g);
|
|
62286
62290
|
/**
|
|
62287
62291
|
* @license lucide-react v0.575.0 - ISC
|
|
62288
62292
|
*
|
|
62289
62293
|
* This source code is licensed under the ISC license.
|
|
62290
62294
|
* See the LICENSE file in the root directory of this source tree.
|
|
62291
62295
|
*/
|
|
62292
|
-
const __iconNode$
|
|
62296
|
+
const __iconNode$f = [
|
|
62293
62297
|
["path", { d: "M13 21h8", key: "1jsn5i" }],
|
|
62294
62298
|
[
|
|
62295
62299
|
"path",
|
|
@@ -62299,37 +62303,53 @@ const __iconNode$b = [
|
|
|
62299
62303
|
}
|
|
62300
62304
|
]
|
|
62301
62305
|
];
|
|
62302
|
-
const PenLine = createLucideIcon("pen-line", __iconNode$
|
|
62306
|
+
const PenLine = createLucideIcon("pen-line", __iconNode$f);
|
|
62303
62307
|
/**
|
|
62304
62308
|
* @license lucide-react v0.575.0 - ISC
|
|
62305
62309
|
*
|
|
62306
62310
|
* This source code is licensed under the ISC license.
|
|
62307
62311
|
* See the LICENSE file in the root directory of this source tree.
|
|
62308
62312
|
*/
|
|
62309
|
-
const __iconNode$
|
|
62313
|
+
const __iconNode$e = [
|
|
62314
|
+
[
|
|
62315
|
+
"path",
|
|
62316
|
+
{
|
|
62317
|
+
d: "M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",
|
|
62318
|
+
key: "10ikf1"
|
|
62319
|
+
}
|
|
62320
|
+
]
|
|
62321
|
+
];
|
|
62322
|
+
const Play = createLucideIcon("play", __iconNode$e);
|
|
62323
|
+
/**
|
|
62324
|
+
* @license lucide-react v0.575.0 - ISC
|
|
62325
|
+
*
|
|
62326
|
+
* This source code is licensed under the ISC license.
|
|
62327
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
62328
|
+
*/
|
|
62329
|
+
const __iconNode$d = [
|
|
62310
62330
|
["path", { d: "M5 12h14", key: "1ays0h" }],
|
|
62311
62331
|
["path", { d: "M12 5v14", key: "s699le" }]
|
|
62312
62332
|
];
|
|
62313
|
-
const Plus = createLucideIcon("plus", __iconNode$
|
|
62333
|
+
const Plus = createLucideIcon("plus", __iconNode$d);
|
|
62314
62334
|
/**
|
|
62315
62335
|
* @license lucide-react v0.575.0 - ISC
|
|
62316
62336
|
*
|
|
62317
62337
|
* This source code is licensed under the ISC license.
|
|
62318
62338
|
* See the LICENSE file in the root directory of this source tree.
|
|
62319
62339
|
*/
|
|
62320
|
-
const __iconNode$
|
|
62340
|
+
const __iconNode$c = [
|
|
62321
62341
|
["path", { d: "M2 3h20", key: "91anmk" }],
|
|
62322
62342
|
["path", { d: "M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3", key: "2k9sn8" }],
|
|
62323
62343
|
["path", { d: "m7 21 5-5 5 5", key: "bip4we" }]
|
|
62324
62344
|
];
|
|
62325
|
-
const Presentation = createLucideIcon("presentation", __iconNode$
|
|
62345
|
+
const Presentation = createLucideIcon("presentation", __iconNode$c);
|
|
62326
62346
|
/**
|
|
62327
62347
|
* @license lucide-react v0.575.0 - ISC
|
|
62328
62348
|
*
|
|
62329
62349
|
* This source code is licensed under the ISC license.
|
|
62330
62350
|
* See the LICENSE file in the root directory of this source tree.
|
|
62331
62351
|
*/
|
|
62332
|
-
const __iconNode$
|
|
62352
|
+
const __iconNode$b = [
|
|
62333
62353
|
[
|
|
62334
62354
|
"path",
|
|
62335
62355
|
{
|
|
@@ -62345,38 +62365,38 @@ const __iconNode$8 = [
|
|
|
62345
62365
|
}
|
|
62346
62366
|
]
|
|
62347
62367
|
];
|
|
62348
|
-
const Quote = createLucideIcon("quote", __iconNode$
|
|
62368
|
+
const Quote = createLucideIcon("quote", __iconNode$b);
|
|
62349
62369
|
/**
|
|
62350
62370
|
* @license lucide-react v0.575.0 - ISC
|
|
62351
62371
|
*
|
|
62352
62372
|
* This source code is licensed under the ISC license.
|
|
62353
62373
|
* See the LICENSE file in the root directory of this source tree.
|
|
62354
62374
|
*/
|
|
62355
|
-
const __iconNode$
|
|
62375
|
+
const __iconNode$a = [
|
|
62356
62376
|
["path", { d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8", key: "v9h5vc" }],
|
|
62357
62377
|
["path", { d: "M21 3v5h-5", key: "1q7to0" }],
|
|
62358
62378
|
["path", { d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16", key: "3uifl3" }],
|
|
62359
62379
|
["path", { d: "M8 16H3v5", key: "1cv678" }]
|
|
62360
62380
|
];
|
|
62361
|
-
const RefreshCw = createLucideIcon("refresh-cw", __iconNode$
|
|
62381
|
+
const RefreshCw = createLucideIcon("refresh-cw", __iconNode$a);
|
|
62362
62382
|
/**
|
|
62363
62383
|
* @license lucide-react v0.575.0 - ISC
|
|
62364
62384
|
*
|
|
62365
62385
|
* This source code is licensed under the ISC license.
|
|
62366
62386
|
* See the LICENSE file in the root directory of this source tree.
|
|
62367
62387
|
*/
|
|
62368
|
-
const __iconNode$
|
|
62388
|
+
const __iconNode$9 = [
|
|
62369
62389
|
["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
|
|
62370
62390
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
|
|
62371
62391
|
];
|
|
62372
|
-
const Search = createLucideIcon("search", __iconNode$
|
|
62392
|
+
const Search = createLucideIcon("search", __iconNode$9);
|
|
62373
62393
|
/**
|
|
62374
62394
|
* @license lucide-react v0.575.0 - ISC
|
|
62375
62395
|
*
|
|
62376
62396
|
* This source code is licensed under the ISC license.
|
|
62377
62397
|
* See the LICENSE file in the root directory of this source tree.
|
|
62378
62398
|
*/
|
|
62379
|
-
const __iconNode$
|
|
62399
|
+
const __iconNode$8 = [
|
|
62380
62400
|
[
|
|
62381
62401
|
"path",
|
|
62382
62402
|
{
|
|
@@ -62386,17 +62406,57 @@ const __iconNode$5 = [
|
|
|
62386
62406
|
],
|
|
62387
62407
|
["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
|
|
62388
62408
|
];
|
|
62389
|
-
const Settings = createLucideIcon("settings", __iconNode$
|
|
62409
|
+
const Settings = createLucideIcon("settings", __iconNode$8);
|
|
62390
62410
|
/**
|
|
62391
62411
|
* @license lucide-react v0.575.0 - ISC
|
|
62392
62412
|
*
|
|
62393
62413
|
* This source code is licensed under the ISC license.
|
|
62394
62414
|
* See the LICENSE file in the root directory of this source tree.
|
|
62395
62415
|
*/
|
|
62396
|
-
const __iconNode$
|
|
62416
|
+
const __iconNode$7 = [
|
|
62417
|
+
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", ry: "2", key: "1m3agn" }],
|
|
62418
|
+
["line", { x1: "3", x2: "21", y1: "9", y2: "9", key: "1vqk6q" }],
|
|
62419
|
+
["line", { x1: "3", x2: "21", y1: "15", y2: "15", key: "o2sbyz" }],
|
|
62420
|
+
["line", { x1: "9", x2: "9", y1: "9", y2: "21", key: "1ib60c" }],
|
|
62421
|
+
["line", { x1: "15", x2: "15", y1: "9", y2: "21", key: "1n26ft" }]
|
|
62422
|
+
];
|
|
62423
|
+
const Sheet = createLucideIcon("sheet", __iconNode$7);
|
|
62424
|
+
/**
|
|
62425
|
+
* @license lucide-react v0.575.0 - ISC
|
|
62426
|
+
*
|
|
62427
|
+
* This source code is licensed under the ISC license.
|
|
62428
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
62429
|
+
*/
|
|
62430
|
+
const __iconNode$6 = [
|
|
62397
62431
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }]
|
|
62398
62432
|
];
|
|
62399
|
-
const Square = createLucideIcon("square", __iconNode$
|
|
62433
|
+
const Square = createLucideIcon("square", __iconNode$6);
|
|
62434
|
+
/**
|
|
62435
|
+
* @license lucide-react v0.575.0 - ISC
|
|
62436
|
+
*
|
|
62437
|
+
* This source code is licensed under the ISC license.
|
|
62438
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
62439
|
+
*/
|
|
62440
|
+
const __iconNode$5 = [
|
|
62441
|
+
["path", { d: "M15 3v18", key: "14nvp0" }],
|
|
62442
|
+
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
62443
|
+
["path", { d: "M21 9H3", key: "1338ky" }],
|
|
62444
|
+
["path", { d: "M21 15H3", key: "9uk58r" }]
|
|
62445
|
+
];
|
|
62446
|
+
const TableProperties = createLucideIcon("table-properties", __iconNode$5);
|
|
62447
|
+
/**
|
|
62448
|
+
* @license lucide-react v0.575.0 - ISC
|
|
62449
|
+
*
|
|
62450
|
+
* This source code is licensed under the ISC license.
|
|
62451
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
62452
|
+
*/
|
|
62453
|
+
const __iconNode$4 = [
|
|
62454
|
+
["path", { d: "M12 3v18", key: "108xh3" }],
|
|
62455
|
+
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
62456
|
+
["path", { d: "M3 9h18", key: "1pudct" }],
|
|
62457
|
+
["path", { d: "M3 15h18", key: "5xshup" }]
|
|
62458
|
+
];
|
|
62459
|
+
const Table = createLucideIcon("table", __iconNode$4);
|
|
62400
62460
|
/**
|
|
62401
62461
|
* @license lucide-react v0.575.0 - ISC
|
|
62402
62462
|
*
|
|
@@ -62463,6 +62523,10 @@ function CollapsibleContent({ ...props }) {
|
|
|
62463
62523
|
return /* @__PURE__ */ jsx(CollapsibleContent$1, { "data-slot": "collapsible-content", ...props });
|
|
62464
62524
|
}
|
|
62465
62525
|
const ANIMATION_DURATION = 200;
|
|
62526
|
+
function truncateLine(text2, max2 = 70) {
|
|
62527
|
+
const oneLine = text2.replace(/\s+/g, " ").trim();
|
|
62528
|
+
return oneLine.length > max2 ? `${oneLine.slice(0, max2)}...` : oneLine;
|
|
62529
|
+
}
|
|
62466
62530
|
const TOOL_META = {
|
|
62467
62531
|
// Search & Browse
|
|
62468
62532
|
search: { displayName: "Searching the web", icon: Search, describer: (a) => a.query ? `"${a.query}"` : "" },
|
|
@@ -62488,15 +62552,23 @@ const TOOL_META = {
|
|
|
62488
62552
|
replace_markdown_in_athena_document: { displayName: "Updating document", icon: PenLine },
|
|
62489
62553
|
// Spreadsheets
|
|
62490
62554
|
create_new_sheet: { displayName: "Creating spreadsheet", icon: ChartColumn },
|
|
62491
|
-
update_sheet_range: { displayName: "Updating spreadsheet", icon: ChartColumn
|
|
62555
|
+
update_sheet_range: { displayName: "Updating spreadsheet", icon: ChartColumn, describer: (a) => {
|
|
62556
|
+
const range = a.range ?? "";
|
|
62557
|
+
const explanation = a.explanation ?? "";
|
|
62558
|
+
return explanation ? `${range}: ${truncateLine(explanation)}` : range;
|
|
62559
|
+
} },
|
|
62492
62560
|
// Presentations
|
|
62493
62561
|
create_powerpoint_deck: { displayName: "Building presentation", icon: Monitor },
|
|
62494
62562
|
execute_presentation_code: { displayName: "Generating slides", icon: Monitor },
|
|
62495
62563
|
// Code & Data
|
|
62496
62564
|
run_python_code: { displayName: "Running analysis", icon: Code },
|
|
62497
|
-
run_sql_query_tool: { displayName: "
|
|
62565
|
+
run_sql_query_tool: { displayName: "Running SQL query", icon: Database, describer: (a) => a.sql_query ?? a.query ?? a.sql ? `"${truncateLine(a.sql_query ?? a.query ?? a.sql)}"` : "" },
|
|
62566
|
+
run_database_sql: { displayName: "Running SQL query", icon: Database, describer: (a) => a.sql_query ?? a.query ?? a.sql ? `"${truncateLine(a.sql_query ?? a.query ?? a.sql)}"` : "" },
|
|
62567
|
+
run_sql: { displayName: "Running SQL query", icon: Database, describer: (a) => a.sql_query ?? a.query ?? a.sql ? `"${truncateLine(a.sql_query ?? a.query ?? a.sql)}"` : "" },
|
|
62498
62568
|
create_database: { displayName: "Setting up database", icon: Database },
|
|
62499
|
-
|
|
62569
|
+
describe_database: { displayName: "Inspecting database", icon: Database },
|
|
62570
|
+
list_database_tables: { displayName: "Listing database tables", icon: Database },
|
|
62571
|
+
get_database_table_schema: { displayName: "Reading table schema", icon: Database, describer: (a) => a.table_name ?? "" },
|
|
62500
62572
|
computer_asset_exec: { displayName: "Running command", icon: Monitor },
|
|
62501
62573
|
// Notebooks
|
|
62502
62574
|
create_new_notebook: { displayName: "Creating notebook", icon: BookOpen },
|
|
@@ -63209,7 +63281,7 @@ function isWorkbookFormat(value) {
|
|
|
63209
63281
|
const workbook = obj.workbook;
|
|
63210
63282
|
return Array.isArray(workbook.sheets);
|
|
63211
63283
|
}
|
|
63212
|
-
function parseA1Range(range) {
|
|
63284
|
+
function parseA1Range$1(range) {
|
|
63213
63285
|
const match2 = range.match(/^([A-Z]+)(\d+)(?::([A-Z]+)(\d+))?$/i);
|
|
63214
63286
|
if (!match2) return null;
|
|
63215
63287
|
const colToNumber = (letters) => letters.toUpperCase().split("").reduce((acc, char) => acc * 26 + (char.charCodeAt(0) - 64), 0);
|
|
@@ -63237,7 +63309,7 @@ function formatCellValue(value) {
|
|
|
63237
63309
|
}
|
|
63238
63310
|
function WorkbookPreview({ workbook }) {
|
|
63239
63311
|
return /* @__PURE__ */ jsx("div", { className: "space-y-3", children: workbook.workbook.sheets.map((sheet) => {
|
|
63240
|
-
const parsedRange = parseA1Range(sheet.dimension);
|
|
63312
|
+
const parsedRange = parseA1Range$1(sheet.dimension);
|
|
63241
63313
|
if (!parsedRange) return null;
|
|
63242
63314
|
const maxRows = Math.min(parsedRange.endRow - parsedRange.startRow + 1, 12);
|
|
63243
63315
|
const maxCols = Math.min(parsedRange.endCol - parsedRange.startCol + 1, 8);
|
|
@@ -64431,6 +64503,661 @@ const OpenAssetToolUI = memo(
|
|
|
64431
64503
|
OpenAssetToolUIImpl
|
|
64432
64504
|
);
|
|
64433
64505
|
OpenAssetToolUI.displayName = "OpenAssetToolUI";
|
|
64506
|
+
const DescribeDatabaseToolUIImpl = ({
|
|
64507
|
+
toolName,
|
|
64508
|
+
args,
|
|
64509
|
+
result,
|
|
64510
|
+
status
|
|
64511
|
+
}) => {
|
|
64512
|
+
const typedArgs = args;
|
|
64513
|
+
const data = useMemo(() => normalizeResult(result), [result]);
|
|
64514
|
+
const title = typeof (data == null ? void 0 : data.title) === "string" ? data.title : null;
|
|
64515
|
+
const provider = typeof (data == null ? void 0 : data.provider) === "string" ? data.provider : null;
|
|
64516
|
+
const databaseName = typeof (data == null ? void 0 : data.database_name) === "string" ? data.database_name : null;
|
|
64517
|
+
const tableCount = typeof (data == null ? void 0 : data.table_count) === "number" ? data.table_count : null;
|
|
64518
|
+
const dbStatus = typeof (data == null ? void 0 : data.status) === "string" ? data.status : null;
|
|
64519
|
+
const isRunning = (status == null ? void 0 : status.type) === "running";
|
|
64520
|
+
const isComplete = (status == null ? void 0 : status.type) === "complete";
|
|
64521
|
+
const errorMsg = (status == null ? void 0 : status.type) === "incomplete" ? status.error : null;
|
|
64522
|
+
return /* @__PURE__ */ jsx(
|
|
64523
|
+
ToolCard,
|
|
64524
|
+
{
|
|
64525
|
+
icon: Database,
|
|
64526
|
+
status: (status == null ? void 0 : status.type) ?? "complete",
|
|
64527
|
+
title: isRunning ? "Inspecting database..." : title ? `Database: ${title}` : "Database overview",
|
|
64528
|
+
subtitle: databaseName ?? void 0,
|
|
64529
|
+
toolName,
|
|
64530
|
+
args: typedArgs,
|
|
64531
|
+
result,
|
|
64532
|
+
badge: isComplete && tableCount !== null ? `${tableCount} ${tableCount === 1 ? "table" : "tables"}` : void 0,
|
|
64533
|
+
error: errorMsg,
|
|
64534
|
+
children: isComplete && (title || provider || databaseName || dbStatus) && /* @__PURE__ */ jsx("div", { className: "border-t border-border/40 px-4 py-2.5", children: /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 text-[11px]", children: [
|
|
64535
|
+
title && /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-0.5 min-w-0", children: [
|
|
64536
|
+
/* @__PURE__ */ jsx("span", { className: "font-medium text-muted-foreground", children: "Name" }),
|
|
64537
|
+
/* @__PURE__ */ jsx("span", { className: "truncate text-foreground/80", children: title })
|
|
64538
|
+
] }),
|
|
64539
|
+
provider && /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-0.5 min-w-0", children: [
|
|
64540
|
+
/* @__PURE__ */ jsx("span", { className: "font-medium text-muted-foreground", children: "Provider" }),
|
|
64541
|
+
/* @__PURE__ */ jsx("span", { className: "truncate text-foreground/80 capitalize", children: provider })
|
|
64542
|
+
] }),
|
|
64543
|
+
databaseName && /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-0.5 min-w-0", children: [
|
|
64544
|
+
/* @__PURE__ */ jsx("span", { className: "font-medium text-muted-foreground", children: "Database" }),
|
|
64545
|
+
/* @__PURE__ */ jsx("span", { className: "truncate font-mono text-foreground/80", children: databaseName })
|
|
64546
|
+
] }),
|
|
64547
|
+
dbStatus && /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-0.5 min-w-0", children: [
|
|
64548
|
+
/* @__PURE__ */ jsx("span", { className: "font-medium text-muted-foreground", children: "Status" }),
|
|
64549
|
+
/* @__PURE__ */ jsxs(
|
|
64550
|
+
"span",
|
|
64551
|
+
{
|
|
64552
|
+
className: cn(
|
|
64553
|
+
"inline-flex w-fit items-center gap-1 rounded-full px-1.5 py-0.5 text-[10px] font-medium capitalize",
|
|
64554
|
+
dbStatus === "active" ? "bg-emerald-50 text-emerald-700" : "bg-muted text-muted-foreground"
|
|
64555
|
+
),
|
|
64556
|
+
children: [
|
|
64557
|
+
/* @__PURE__ */ jsx(
|
|
64558
|
+
"span",
|
|
64559
|
+
{
|
|
64560
|
+
className: cn(
|
|
64561
|
+
"size-1.5 rounded-full",
|
|
64562
|
+
dbStatus === "active" ? "bg-emerald-500" : "bg-muted-foreground"
|
|
64563
|
+
)
|
|
64564
|
+
}
|
|
64565
|
+
),
|
|
64566
|
+
dbStatus
|
|
64567
|
+
]
|
|
64568
|
+
}
|
|
64569
|
+
)
|
|
64570
|
+
] })
|
|
64571
|
+
] }) })
|
|
64572
|
+
}
|
|
64573
|
+
);
|
|
64574
|
+
};
|
|
64575
|
+
const DescribeDatabaseToolUI = memo(
|
|
64576
|
+
DescribeDatabaseToolUIImpl
|
|
64577
|
+
);
|
|
64578
|
+
DescribeDatabaseToolUI.displayName = "DescribeDatabaseToolUI";
|
|
64579
|
+
const ListDatabaseTablesToolUIImpl = ({
|
|
64580
|
+
toolName,
|
|
64581
|
+
args,
|
|
64582
|
+
result,
|
|
64583
|
+
status
|
|
64584
|
+
}) => {
|
|
64585
|
+
const typedArgs = args;
|
|
64586
|
+
const data = useMemo(() => normalizeResult(result), [result]);
|
|
64587
|
+
const tables = useMemo(() => {
|
|
64588
|
+
if (!data || !Array.isArray(data.tables)) return [];
|
|
64589
|
+
return data.tables.map((t) => {
|
|
64590
|
+
const item = t ?? {};
|
|
64591
|
+
return {
|
|
64592
|
+
table_name: typeof item.table_name === "string" ? item.table_name : "",
|
|
64593
|
+
schema_name: typeof item.schema_name === "string" ? item.schema_name : void 0,
|
|
64594
|
+
row_count: typeof item.row_count === "number" ? item.row_count : void 0
|
|
64595
|
+
};
|
|
64596
|
+
});
|
|
64597
|
+
}, [data]);
|
|
64598
|
+
const isRunning = (status == null ? void 0 : status.type) === "running";
|
|
64599
|
+
const isComplete = (status == null ? void 0 : status.type) === "complete";
|
|
64600
|
+
const errorMsg = (status == null ? void 0 : status.type) === "incomplete" ? status.error : null;
|
|
64601
|
+
return /* @__PURE__ */ jsx(
|
|
64602
|
+
ToolCard,
|
|
64603
|
+
{
|
|
64604
|
+
icon: Table,
|
|
64605
|
+
status: (status == null ? void 0 : status.type) ?? "complete",
|
|
64606
|
+
title: isRunning ? "Listing database tables..." : "Database tables",
|
|
64607
|
+
toolName,
|
|
64608
|
+
args: typedArgs,
|
|
64609
|
+
result,
|
|
64610
|
+
badge: isComplete && tables.length > 0 ? `${tables.length} ${tables.length === 1 ? "table" : "tables"}` : void 0,
|
|
64611
|
+
error: errorMsg,
|
|
64612
|
+
children: isComplete && tables.length > 0 && /* @__PURE__ */ jsx(
|
|
64613
|
+
ExpandableSection,
|
|
64614
|
+
{
|
|
64615
|
+
label: "Show tables",
|
|
64616
|
+
defaultOpen: tables.length <= 10,
|
|
64617
|
+
children: /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-0.5", children: tables.map((t) => {
|
|
64618
|
+
const qualified = t.schema_name ? `${t.schema_name}.${t.table_name}` : t.table_name;
|
|
64619
|
+
return /* @__PURE__ */ jsxs(
|
|
64620
|
+
"div",
|
|
64621
|
+
{
|
|
64622
|
+
className: "flex items-center justify-between gap-3 rounded-md px-2 py-1 hover:bg-muted/40",
|
|
64623
|
+
children: [
|
|
64624
|
+
/* @__PURE__ */ jsxs("div", { className: "flex min-w-0 items-center gap-1.5", children: [
|
|
64625
|
+
/* @__PURE__ */ jsx(Table, { className: "size-3 shrink-0 text-muted-foreground/60" }),
|
|
64626
|
+
/* @__PURE__ */ jsx("span", { className: "truncate font-mono text-[12px] text-foreground/90", children: qualified })
|
|
64627
|
+
] }),
|
|
64628
|
+
t.row_count !== void 0 && /* @__PURE__ */ jsxs("span", { className: "shrink-0 text-[10px] tabular-nums text-muted-foreground", children: [
|
|
64629
|
+
t.row_count.toLocaleString(),
|
|
64630
|
+
" ",
|
|
64631
|
+
t.row_count === 1 ? "row" : "rows"
|
|
64632
|
+
] })
|
|
64633
|
+
]
|
|
64634
|
+
},
|
|
64635
|
+
qualified
|
|
64636
|
+
);
|
|
64637
|
+
}) })
|
|
64638
|
+
}
|
|
64639
|
+
)
|
|
64640
|
+
}
|
|
64641
|
+
);
|
|
64642
|
+
};
|
|
64643
|
+
const ListDatabaseTablesToolUI = memo(
|
|
64644
|
+
ListDatabaseTablesToolUIImpl
|
|
64645
|
+
);
|
|
64646
|
+
ListDatabaseTablesToolUI.displayName = "ListDatabaseTablesToolUI";
|
|
64647
|
+
const GetDatabaseTableSchemaToolUIImpl = ({
|
|
64648
|
+
toolName,
|
|
64649
|
+
args,
|
|
64650
|
+
result,
|
|
64651
|
+
status
|
|
64652
|
+
}) => {
|
|
64653
|
+
const typedArgs = args;
|
|
64654
|
+
const data = useMemo(() => normalizeResult(result), [result]);
|
|
64655
|
+
const tableName = (typeof (data == null ? void 0 : data.table_name) === "string" ? data.table_name : null) ?? (typeof (typedArgs == null ? void 0 : typedArgs.table_name) === "string" ? typedArgs.table_name : null);
|
|
64656
|
+
const schemaName = typeof (data == null ? void 0 : data.schema_name) === "string" ? data.schema_name : null;
|
|
64657
|
+
const columns = useMemo(() => {
|
|
64658
|
+
if (!data || !Array.isArray(data.columns)) return [];
|
|
64659
|
+
return data.columns.map((c) => {
|
|
64660
|
+
const item = c ?? {};
|
|
64661
|
+
return {
|
|
64662
|
+
name: typeof item.name === "string" ? item.name : "",
|
|
64663
|
+
data_type: typeof item.data_type === "string" ? item.data_type : "",
|
|
64664
|
+
is_nullable: typeof item.is_nullable === "boolean" ? item.is_nullable : void 0,
|
|
64665
|
+
default_value: typeof item.default_value === "string" ? item.default_value : null,
|
|
64666
|
+
max_length: typeof item.max_length === "number" ? item.max_length : null
|
|
64667
|
+
};
|
|
64668
|
+
});
|
|
64669
|
+
}, [data]);
|
|
64670
|
+
const isRunning = (status == null ? void 0 : status.type) === "running";
|
|
64671
|
+
const isComplete = (status == null ? void 0 : status.type) === "complete";
|
|
64672
|
+
const errorMsg = (status == null ? void 0 : status.type) === "incomplete" ? status.error : null;
|
|
64673
|
+
const displayName = tableName ? schemaName ? `${schemaName}.${tableName}` : tableName : null;
|
|
64674
|
+
return /* @__PURE__ */ jsx(
|
|
64675
|
+
ToolCard,
|
|
64676
|
+
{
|
|
64677
|
+
icon: TableProperties,
|
|
64678
|
+
status: (status == null ? void 0 : status.type) ?? "complete",
|
|
64679
|
+
title: isRunning ? "Reading table schema..." : displayName ? `Schema: ${displayName}` : "Table schema",
|
|
64680
|
+
toolName,
|
|
64681
|
+
args: typedArgs,
|
|
64682
|
+
result,
|
|
64683
|
+
badge: isComplete && columns.length > 0 ? `${columns.length} ${columns.length === 1 ? "column" : "columns"}` : void 0,
|
|
64684
|
+
error: errorMsg,
|
|
64685
|
+
children: isComplete && columns.length > 0 && /* @__PURE__ */ jsx(
|
|
64686
|
+
ExpandableSection,
|
|
64687
|
+
{
|
|
64688
|
+
label: "Show columns",
|
|
64689
|
+
defaultOpen: columns.length <= 12,
|
|
64690
|
+
children: /* @__PURE__ */ jsx("div", { className: "overflow-hidden rounded-md border border-border/40", children: /* @__PURE__ */ jsxs("table", { className: "w-full text-[11px]", children: [
|
|
64691
|
+
/* @__PURE__ */ jsx("thead", { className: "bg-muted/50", children: /* @__PURE__ */ jsxs("tr", { children: [
|
|
64692
|
+
/* @__PURE__ */ jsx("th", { className: "px-2 py-1.5 text-left font-medium text-muted-foreground", children: "Column" }),
|
|
64693
|
+
/* @__PURE__ */ jsx("th", { className: "px-2 py-1.5 text-left font-medium text-muted-foreground", children: "Type" }),
|
|
64694
|
+
/* @__PURE__ */ jsx("th", { className: "px-2 py-1.5 text-right font-medium text-muted-foreground", children: "Nullable" })
|
|
64695
|
+
] }) }),
|
|
64696
|
+
/* @__PURE__ */ jsx("tbody", { children: columns.map((col) => {
|
|
64697
|
+
const typeLabel = col.max_length != null ? `${col.data_type}(${col.max_length})` : col.data_type;
|
|
64698
|
+
return /* @__PURE__ */ jsxs(
|
|
64699
|
+
"tr",
|
|
64700
|
+
{
|
|
64701
|
+
className: "border-t border-border/30",
|
|
64702
|
+
title: col.default_value ? `default: ${col.default_value}` : void 0,
|
|
64703
|
+
children: [
|
|
64704
|
+
/* @__PURE__ */ jsx("td", { className: "whitespace-nowrap px-2 py-1 font-mono text-foreground/90", children: col.name }),
|
|
64705
|
+
/* @__PURE__ */ jsx("td", { className: "whitespace-nowrap px-2 py-1 text-muted-foreground", children: typeLabel }),
|
|
64706
|
+
/* @__PURE__ */ jsx("td", { className: "whitespace-nowrap px-2 py-1 text-right", children: col.is_nullable === false ? /* @__PURE__ */ jsx("span", { className: "rounded bg-amber-50 px-1 py-0.5 text-[10px] font-medium text-amber-700", children: "NOT NULL" }) : /* @__PURE__ */ jsx("span", { className: "text-muted-foreground/50", children: "—" }) })
|
|
64707
|
+
]
|
|
64708
|
+
},
|
|
64709
|
+
col.name
|
|
64710
|
+
);
|
|
64711
|
+
}) })
|
|
64712
|
+
] }) })
|
|
64713
|
+
}
|
|
64714
|
+
)
|
|
64715
|
+
}
|
|
64716
|
+
);
|
|
64717
|
+
};
|
|
64718
|
+
const GetDatabaseTableSchemaToolUI = memo(
|
|
64719
|
+
GetDatabaseTableSchemaToolUIImpl
|
|
64720
|
+
);
|
|
64721
|
+
GetDatabaseTableSchemaToolUI.displayName = "GetDatabaseTableSchemaToolUI";
|
|
64722
|
+
const SQL_KEYWORDS = /* @__PURE__ */ new Set([
|
|
64723
|
+
"SELECT",
|
|
64724
|
+
"FROM",
|
|
64725
|
+
"WHERE",
|
|
64726
|
+
"JOIN",
|
|
64727
|
+
"LEFT",
|
|
64728
|
+
"RIGHT",
|
|
64729
|
+
"INNER",
|
|
64730
|
+
"OUTER",
|
|
64731
|
+
"FULL",
|
|
64732
|
+
"CROSS",
|
|
64733
|
+
"ON",
|
|
64734
|
+
"USING",
|
|
64735
|
+
"AND",
|
|
64736
|
+
"OR",
|
|
64737
|
+
"NOT",
|
|
64738
|
+
"IN",
|
|
64739
|
+
"IS",
|
|
64740
|
+
"NULL",
|
|
64741
|
+
"AS",
|
|
64742
|
+
"ORDER",
|
|
64743
|
+
"BY",
|
|
64744
|
+
"GROUP",
|
|
64745
|
+
"HAVING",
|
|
64746
|
+
"LIMIT",
|
|
64747
|
+
"OFFSET",
|
|
64748
|
+
"UNION",
|
|
64749
|
+
"ALL",
|
|
64750
|
+
"DISTINCT",
|
|
64751
|
+
"INSERT",
|
|
64752
|
+
"INTO",
|
|
64753
|
+
"VALUES",
|
|
64754
|
+
"UPDATE",
|
|
64755
|
+
"SET",
|
|
64756
|
+
"DELETE",
|
|
64757
|
+
"CREATE",
|
|
64758
|
+
"TABLE",
|
|
64759
|
+
"DROP",
|
|
64760
|
+
"ALTER",
|
|
64761
|
+
"ADD",
|
|
64762
|
+
"COLUMN",
|
|
64763
|
+
"INDEX",
|
|
64764
|
+
"PRIMARY",
|
|
64765
|
+
"KEY",
|
|
64766
|
+
"FOREIGN",
|
|
64767
|
+
"REFERENCES",
|
|
64768
|
+
"CONSTRAINT",
|
|
64769
|
+
"CASCADE",
|
|
64770
|
+
"CASE",
|
|
64771
|
+
"WHEN",
|
|
64772
|
+
"THEN",
|
|
64773
|
+
"ELSE",
|
|
64774
|
+
"END",
|
|
64775
|
+
"WITH",
|
|
64776
|
+
"RECURSIVE",
|
|
64777
|
+
"ASC",
|
|
64778
|
+
"DESC",
|
|
64779
|
+
"BETWEEN",
|
|
64780
|
+
"LIKE",
|
|
64781
|
+
"ILIKE",
|
|
64782
|
+
"EXISTS",
|
|
64783
|
+
"ANY",
|
|
64784
|
+
"SOME",
|
|
64785
|
+
"RETURNING",
|
|
64786
|
+
"OVER",
|
|
64787
|
+
"PARTITION",
|
|
64788
|
+
"WINDOW"
|
|
64789
|
+
]);
|
|
64790
|
+
const SQL_FUNCTIONS = /* @__PURE__ */ new Set([
|
|
64791
|
+
"COUNT",
|
|
64792
|
+
"SUM",
|
|
64793
|
+
"AVG",
|
|
64794
|
+
"MIN",
|
|
64795
|
+
"MAX",
|
|
64796
|
+
"ROUND",
|
|
64797
|
+
"CAST",
|
|
64798
|
+
"COALESCE",
|
|
64799
|
+
"NULLIF",
|
|
64800
|
+
"UPPER",
|
|
64801
|
+
"LOWER",
|
|
64802
|
+
"LENGTH",
|
|
64803
|
+
"SUBSTRING",
|
|
64804
|
+
"TRIM",
|
|
64805
|
+
"CONCAT",
|
|
64806
|
+
"DATE",
|
|
64807
|
+
"NOW",
|
|
64808
|
+
"CURRENT_DATE",
|
|
64809
|
+
"CURRENT_TIMESTAMP",
|
|
64810
|
+
"EXTRACT",
|
|
64811
|
+
"DATE_TRUNC",
|
|
64812
|
+
"ROW_NUMBER",
|
|
64813
|
+
"RANK",
|
|
64814
|
+
"DENSE_RANK",
|
|
64815
|
+
"LAG",
|
|
64816
|
+
"LEAD"
|
|
64817
|
+
]);
|
|
64818
|
+
function highlightSql(code2) {
|
|
64819
|
+
let result = "";
|
|
64820
|
+
let i = 0;
|
|
64821
|
+
while (i < code2.length) {
|
|
64822
|
+
if (code2.slice(i, i + 2) === "--") {
|
|
64823
|
+
const end = code2.indexOf("\n", i);
|
|
64824
|
+
const str = end >= 0 ? code2.slice(i, end) : code2.slice(i);
|
|
64825
|
+
result += `<span style="color:var(--aui-syn-comment, #6a9955)">${escapeHtml(str)}</span>`;
|
|
64826
|
+
i += str.length;
|
|
64827
|
+
continue;
|
|
64828
|
+
}
|
|
64829
|
+
if (code2[i] === "'" || code2[i] === '"') {
|
|
64830
|
+
const q = code2[i];
|
|
64831
|
+
let j = i + 1;
|
|
64832
|
+
while (j < code2.length && code2[j] !== q) {
|
|
64833
|
+
if (code2[j] === "\\") j++;
|
|
64834
|
+
j++;
|
|
64835
|
+
}
|
|
64836
|
+
const str = code2.slice(i, j + 1);
|
|
64837
|
+
result += `<span style="color:var(--aui-syn-string, #ce9178)">${escapeHtml(str)}</span>`;
|
|
64838
|
+
i = j + 1;
|
|
64839
|
+
continue;
|
|
64840
|
+
}
|
|
64841
|
+
if (/\d/.test(code2[i]) && (i === 0 || /[\s(,=[\-+*/:!<>]/.test(code2[i - 1]))) {
|
|
64842
|
+
const m = code2.slice(i).match(/^(\d+\.?\d*)/);
|
|
64843
|
+
if (m) {
|
|
64844
|
+
result += `<span style="color:var(--aui-syn-number, #b5cea8)">${escapeHtml(m[1])}</span>`;
|
|
64845
|
+
i += m[1].length;
|
|
64846
|
+
continue;
|
|
64847
|
+
}
|
|
64848
|
+
}
|
|
64849
|
+
if (/[a-zA-Z_]/.test(code2[i])) {
|
|
64850
|
+
const m = code2.slice(i).match(/^[a-zA-Z_]\w*/);
|
|
64851
|
+
if (m) {
|
|
64852
|
+
const word = m[0];
|
|
64853
|
+
const upper = word.toUpperCase();
|
|
64854
|
+
if (SQL_KEYWORDS.has(upper)) {
|
|
64855
|
+
result += `<span style="color:var(--aui-syn-keyword, #569cd6)">${escapeHtml(word)}</span>`;
|
|
64856
|
+
} else if (SQL_FUNCTIONS.has(upper)) {
|
|
64857
|
+
result += `<span style="color:var(--aui-syn-func, #dcdcaa)">${escapeHtml(word)}</span>`;
|
|
64858
|
+
} else {
|
|
64859
|
+
result += escapeHtml(word);
|
|
64860
|
+
}
|
|
64861
|
+
i += word.length;
|
|
64862
|
+
continue;
|
|
64863
|
+
}
|
|
64864
|
+
}
|
|
64865
|
+
result += escapeHtml(code2[i]);
|
|
64866
|
+
i++;
|
|
64867
|
+
}
|
|
64868
|
+
return result;
|
|
64869
|
+
}
|
|
64870
|
+
const SyntaxHighlightedSql = memo(({ code: code2 }) => {
|
|
64871
|
+
const highlighted = useMemo(() => highlightSql(code2), [code2]);
|
|
64872
|
+
return /* @__PURE__ */ jsx(
|
|
64873
|
+
"pre",
|
|
64874
|
+
{
|
|
64875
|
+
className: "whitespace-pre-wrap break-words text-[11px] leading-relaxed font-mono",
|
|
64876
|
+
dangerouslySetInnerHTML: { __html: highlighted }
|
|
64877
|
+
}
|
|
64878
|
+
);
|
|
64879
|
+
});
|
|
64880
|
+
SyntaxHighlightedSql.displayName = "SyntaxHighlightedSql";
|
|
64881
|
+
function parseSqlResult(result) {
|
|
64882
|
+
const empty2 = { columns: [], rows: [], rowCount: null };
|
|
64883
|
+
const data = normalizeResult(result);
|
|
64884
|
+
if (!data) return empty2;
|
|
64885
|
+
const inner = data.result && typeof data.result === "object" && !Array.isArray(data.result) ? data.result : data;
|
|
64886
|
+
const rawRows = inner.rows ?? inner.data ?? inner.records;
|
|
64887
|
+
if (!Array.isArray(rawRows)) return empty2;
|
|
64888
|
+
const rows = rawRows.filter(
|
|
64889
|
+
(r2) => typeof r2 === "object" && r2 !== null && !Array.isArray(r2)
|
|
64890
|
+
);
|
|
64891
|
+
let columns = [];
|
|
64892
|
+
if (Array.isArray(inner.columns)) {
|
|
64893
|
+
columns = inner.columns.map((c) => {
|
|
64894
|
+
if (typeof c === "string") return c;
|
|
64895
|
+
if (c && typeof c === "object") {
|
|
64896
|
+
const name = c.name;
|
|
64897
|
+
return typeof name === "string" ? name : null;
|
|
64898
|
+
}
|
|
64899
|
+
return null;
|
|
64900
|
+
}).filter((c) => c !== null);
|
|
64901
|
+
}
|
|
64902
|
+
if (columns.length === 0 && rows.length > 0) {
|
|
64903
|
+
columns = Object.keys(rows[0]);
|
|
64904
|
+
}
|
|
64905
|
+
const rowCount = typeof inner.row_count === "number" ? inner.row_count : typeof inner.rowCount === "number" ? inner.rowCount : rows.length;
|
|
64906
|
+
return { columns, rows, rowCount };
|
|
64907
|
+
}
|
|
64908
|
+
const RunSqlToolUIImpl = ({
|
|
64909
|
+
toolName,
|
|
64910
|
+
args,
|
|
64911
|
+
result,
|
|
64912
|
+
status
|
|
64913
|
+
}) => {
|
|
64914
|
+
const typedArgs = args;
|
|
64915
|
+
const sqlQuery = (typedArgs == null ? void 0 : typedArgs.sql_query) ?? (typedArgs == null ? void 0 : typedArgs.query) ?? (typedArgs == null ? void 0 : typedArgs.sql) ?? "";
|
|
64916
|
+
const trimmedQuery = sqlQuery.trim();
|
|
64917
|
+
const isRunning = (status == null ? void 0 : status.type) === "running";
|
|
64918
|
+
const isComplete = (status == null ? void 0 : status.type) === "complete";
|
|
64919
|
+
const errorMsg = (status == null ? void 0 : status.type) === "incomplete" ? status.error : null;
|
|
64920
|
+
const parsed = useMemo(
|
|
64921
|
+
() => isComplete ? parseSqlResult(result) : null,
|
|
64922
|
+
[result, isComplete]
|
|
64923
|
+
);
|
|
64924
|
+
const querySubtitle = useMemo(() => {
|
|
64925
|
+
if (!trimmedQuery) return void 0;
|
|
64926
|
+
const oneLine = trimmedQuery.replace(/\s+/g, " ");
|
|
64927
|
+
return truncate(oneLine, 80);
|
|
64928
|
+
}, [trimmedQuery]);
|
|
64929
|
+
return /* @__PURE__ */ jsxs(
|
|
64930
|
+
ToolCard,
|
|
64931
|
+
{
|
|
64932
|
+
icon: Play,
|
|
64933
|
+
status: (status == null ? void 0 : status.type) ?? "complete",
|
|
64934
|
+
title: isRunning ? "Running SQL query..." : "SQL query",
|
|
64935
|
+
subtitle: querySubtitle,
|
|
64936
|
+
toolName,
|
|
64937
|
+
args: typedArgs,
|
|
64938
|
+
result,
|
|
64939
|
+
badge: isComplete && parsed && parsed.rowCount !== null ? `${parsed.rowCount} ${parsed.rowCount === 1 ? "row" : "rows"}` : void 0,
|
|
64940
|
+
error: errorMsg,
|
|
64941
|
+
children: [
|
|
64942
|
+
trimmedQuery && /* @__PURE__ */ jsx(
|
|
64943
|
+
ExpandableSection,
|
|
64944
|
+
{
|
|
64945
|
+
label: "Show query",
|
|
64946
|
+
defaultOpen: isComplete && (!parsed || parsed.rows.length === 0),
|
|
64947
|
+
children: /* @__PURE__ */ jsx(SyntaxHighlightedSql, { code: trimmedQuery })
|
|
64948
|
+
}
|
|
64949
|
+
),
|
|
64950
|
+
isComplete && parsed && parsed.rows.length > 0 && /* @__PURE__ */ jsxs("div", { className: "border-t border-border/40", children: [
|
|
64951
|
+
/* @__PURE__ */ jsx("div", { className: "max-h-72 overflow-auto", children: /* @__PURE__ */ jsxs("table", { className: "w-full text-[11px]", children: [
|
|
64952
|
+
/* @__PURE__ */ jsx("thead", { className: "sticky top-0 bg-muted/60 backdrop-blur", children: /* @__PURE__ */ jsx("tr", { children: parsed.columns.map((col) => /* @__PURE__ */ jsx(
|
|
64953
|
+
"th",
|
|
64954
|
+
{
|
|
64955
|
+
className: "whitespace-nowrap px-2 py-1.5 text-left font-medium text-muted-foreground",
|
|
64956
|
+
children: col
|
|
64957
|
+
},
|
|
64958
|
+
col
|
|
64959
|
+
)) }) }),
|
|
64960
|
+
/* @__PURE__ */ jsx("tbody", { children: parsed.rows.slice(0, 50).map((row, i) => /* @__PURE__ */ jsx(
|
|
64961
|
+
"tr",
|
|
64962
|
+
{
|
|
64963
|
+
className: "border-t border-border/30 hover:bg-muted/20",
|
|
64964
|
+
children: parsed.columns.map((col) => {
|
|
64965
|
+
const value = row[col];
|
|
64966
|
+
const isNull = value === null || value === void 0;
|
|
64967
|
+
const str = isNull ? "" : typeof value === "object" ? JSON.stringify(value) : String(value);
|
|
64968
|
+
return /* @__PURE__ */ jsx(
|
|
64969
|
+
"td",
|
|
64970
|
+
{
|
|
64971
|
+
className: "max-w-[240px] truncate whitespace-nowrap px-2 py-1 text-foreground/80",
|
|
64972
|
+
title: isNull ? "null" : str,
|
|
64973
|
+
children: isNull ? /* @__PURE__ */ jsx("span", { className: "italic text-muted-foreground/60", children: "null" }) : str
|
|
64974
|
+
},
|
|
64975
|
+
col
|
|
64976
|
+
);
|
|
64977
|
+
})
|
|
64978
|
+
},
|
|
64979
|
+
i
|
|
64980
|
+
)) })
|
|
64981
|
+
] }) }),
|
|
64982
|
+
parsed.rows.length > 50 && /* @__PURE__ */ jsxs("div", { className: "border-t border-border/30 px-4 py-1.5 text-[10px] text-muted-foreground", children: [
|
|
64983
|
+
"Showing first 50 of ",
|
|
64984
|
+
parsed.rows.length,
|
|
64985
|
+
" rows"
|
|
64986
|
+
] })
|
|
64987
|
+
] }),
|
|
64988
|
+
isComplete && parsed && parsed.rows.length === 0 && parsed.rowCount === 0 && /* @__PURE__ */ jsx("div", { className: "border-t border-border/40 px-4 py-2.5", children: /* @__PURE__ */ jsx("span", { className: "text-[11px] italic text-muted-foreground", children: "Query returned no rows" }) })
|
|
64989
|
+
]
|
|
64990
|
+
}
|
|
64991
|
+
);
|
|
64992
|
+
};
|
|
64993
|
+
const RunSqlToolUI = memo(
|
|
64994
|
+
RunSqlToolUIImpl
|
|
64995
|
+
);
|
|
64996
|
+
RunSqlToolUI.displayName = "RunSqlToolUI";
|
|
64997
|
+
function parseA1Range(range) {
|
|
64998
|
+
const stripped = range.replace(/^(?:'[^']+'|[^'!]+)!/, "");
|
|
64999
|
+
const match2 = stripped.match(/^([A-Z]+)(\d+)/i);
|
|
65000
|
+
if (!match2) return null;
|
|
65001
|
+
return { startCol: match2[1].toUpperCase(), startRow: parseInt(match2[2], 10) };
|
|
65002
|
+
}
|
|
65003
|
+
function colNumToLetter(n) {
|
|
65004
|
+
let result = "";
|
|
65005
|
+
let num = n;
|
|
65006
|
+
while (num > 0) {
|
|
65007
|
+
num--;
|
|
65008
|
+
result = String.fromCharCode(65 + num % 26) + result;
|
|
65009
|
+
num = Math.floor(num / 26);
|
|
65010
|
+
}
|
|
65011
|
+
return result;
|
|
65012
|
+
}
|
|
65013
|
+
function parseCellsToGrid(cells) {
|
|
65014
|
+
let parsed = null;
|
|
65015
|
+
if (typeof cells === "string") {
|
|
65016
|
+
try {
|
|
65017
|
+
parsed = JSON.parse(cells);
|
|
65018
|
+
} catch {
|
|
65019
|
+
return null;
|
|
65020
|
+
}
|
|
65021
|
+
} else if (Array.isArray(cells)) {
|
|
65022
|
+
parsed = cells;
|
|
65023
|
+
}
|
|
65024
|
+
if (!parsed || !Array.isArray(parsed)) return null;
|
|
65025
|
+
return parsed.map((row) => {
|
|
65026
|
+
if (!Array.isArray(row)) return [];
|
|
65027
|
+
return row.map((cell) => {
|
|
65028
|
+
if (cell == null) return "";
|
|
65029
|
+
if (typeof cell === "object" && cell !== null) {
|
|
65030
|
+
const c = cell;
|
|
65031
|
+
if (c.formula) return c.formula;
|
|
65032
|
+
if (c.value !== void 0 && c.value !== null) return String(c.value);
|
|
65033
|
+
return "";
|
|
65034
|
+
}
|
|
65035
|
+
return String(cell);
|
|
65036
|
+
});
|
|
65037
|
+
});
|
|
65038
|
+
}
|
|
65039
|
+
const MAX_SHEET_DISPLAY_ROWS = 30;
|
|
65040
|
+
const UpdateSheetRangeToolUIImpl = ({
|
|
65041
|
+
toolName,
|
|
65042
|
+
args,
|
|
65043
|
+
result,
|
|
65044
|
+
status
|
|
65045
|
+
}) => {
|
|
65046
|
+
const typedArgs = args;
|
|
65047
|
+
const range = (typedArgs == null ? void 0 : typedArgs.range) ?? "";
|
|
65048
|
+
const explanation = (typedArgs == null ? void 0 : typedArgs.explanation) ?? "";
|
|
65049
|
+
const assetId = (typedArgs == null ? void 0 : typedArgs.asset_id) ?? (typedArgs == null ? void 0 : typedArgs.assetId) ?? "";
|
|
65050
|
+
const data = useMemo(() => normalizeResult(result), [result]);
|
|
65051
|
+
const success = (data == null ? void 0 : data.success) === true;
|
|
65052
|
+
const resultAssetId = extractAssetId(result);
|
|
65053
|
+
const isRunning = (status == null ? void 0 : status.type) === "running";
|
|
65054
|
+
const isComplete = (status == null ? void 0 : status.type) === "complete";
|
|
65055
|
+
const errorMsg = (status == null ? void 0 : status.type) === "incomplete" ? status.error : null;
|
|
65056
|
+
const grid = useMemo(
|
|
65057
|
+
() => parseCellsToGrid(typedArgs == null ? void 0 : typedArgs.cells),
|
|
65058
|
+
[typedArgs == null ? void 0 : typedArgs.cells]
|
|
65059
|
+
);
|
|
65060
|
+
const rangeInfo = useMemo(() => parseA1Range(range), [range]);
|
|
65061
|
+
const { headers, displayRows, totalRows } = useMemo(() => {
|
|
65062
|
+
if (!grid || grid.length === 0) {
|
|
65063
|
+
return { headers: [], displayRows: [], totalRows: 0 };
|
|
65064
|
+
}
|
|
65065
|
+
const maxCols = Math.max(...grid.map((r2) => r2.length));
|
|
65066
|
+
const startColNum = rangeInfo ? rangeInfo.startCol.split("").reduce((acc, c) => acc * 26 + c.charCodeAt(0) - 64, 0) : 1;
|
|
65067
|
+
const hdrs = Array.from(
|
|
65068
|
+
{ length: maxCols },
|
|
65069
|
+
(_, i) => colNumToLetter(startColNum + i)
|
|
65070
|
+
);
|
|
65071
|
+
const capped = grid.slice(0, MAX_SHEET_DISPLAY_ROWS);
|
|
65072
|
+
return { headers: hdrs, displayRows: capped, totalRows: grid.length };
|
|
65073
|
+
}, [grid, rangeInfo]);
|
|
65074
|
+
const openAsset = useAssetPanelStore((s) => s.openAsset);
|
|
65075
|
+
const effectiveAssetId = resultAssetId ?? (assetId.startsWith("asset_") ? assetId : null);
|
|
65076
|
+
const title = isRunning ? explanation ? `Updating ${range}: ${explanation}` : `Updating sheet range ${range}...` : explanation ? `Updated ${range}: ${explanation}` : `Updated sheet range ${range}`;
|
|
65077
|
+
return /* @__PURE__ */ jsxs(
|
|
65078
|
+
ToolCard,
|
|
65079
|
+
{
|
|
65080
|
+
icon: Sheet,
|
|
65081
|
+
status: (status == null ? void 0 : status.type) ?? "complete",
|
|
65082
|
+
title: truncate(title, 80),
|
|
65083
|
+
subtitle: !explanation && range ? `Range: ${range}` : void 0,
|
|
65084
|
+
toolName,
|
|
65085
|
+
args: typedArgs,
|
|
65086
|
+
result,
|
|
65087
|
+
badge: isComplete && success && grid ? `${totalRows} ${totalRows === 1 ? "row" : "rows"}` : void 0,
|
|
65088
|
+
error: errorMsg,
|
|
65089
|
+
children: [
|
|
65090
|
+
headers.length > 0 && displayRows.length > 0 && /* @__PURE__ */ jsxs(
|
|
65091
|
+
ExpandableSection,
|
|
65092
|
+
{
|
|
65093
|
+
label: `Show data (${totalRows} ${totalRows === 1 ? "row" : "rows"})`,
|
|
65094
|
+
defaultOpen: totalRows <= 10,
|
|
65095
|
+
children: [
|
|
65096
|
+
/* @__PURE__ */ jsx("div", { className: "overflow-auto max-h-72", children: /* @__PURE__ */ jsxs("table", { className: "w-full text-[11px]", children: [
|
|
65097
|
+
/* @__PURE__ */ jsx("thead", { className: "sticky top-0 bg-muted/60 backdrop-blur", children: /* @__PURE__ */ jsxs("tr", { children: [
|
|
65098
|
+
/* @__PURE__ */ jsx("th", { className: "w-8 px-1.5 py-1 text-right font-medium text-muted-foreground/60", children: "#" }),
|
|
65099
|
+
headers.map((h2) => /* @__PURE__ */ jsx(
|
|
65100
|
+
"th",
|
|
65101
|
+
{
|
|
65102
|
+
className: "whitespace-nowrap px-2 py-1 text-center font-medium text-muted-foreground",
|
|
65103
|
+
children: h2
|
|
65104
|
+
},
|
|
65105
|
+
h2
|
|
65106
|
+
))
|
|
65107
|
+
] }) }),
|
|
65108
|
+
/* @__PURE__ */ jsx("tbody", { children: displayRows.map((row, i) => {
|
|
65109
|
+
const rowNum = ((rangeInfo == null ? void 0 : rangeInfo.startRow) ?? 1) + i;
|
|
65110
|
+
return /* @__PURE__ */ jsxs("tr", { className: "border-t border-border/30 hover:bg-muted/20", children: [
|
|
65111
|
+
/* @__PURE__ */ jsx("td", { className: "w-8 px-1.5 py-0.5 text-right tabular-nums text-muted-foreground/60", children: rowNum }),
|
|
65112
|
+
headers.map((h2, j) => {
|
|
65113
|
+
const val = row[j] ?? "";
|
|
65114
|
+
const isFormula = typeof val === "string" && val.startsWith("=");
|
|
65115
|
+
return /* @__PURE__ */ jsx(
|
|
65116
|
+
"td",
|
|
65117
|
+
{
|
|
65118
|
+
className: cn(
|
|
65119
|
+
"max-w-[180px] truncate whitespace-nowrap px-2 py-0.5 text-foreground/80",
|
|
65120
|
+
isFormula && "font-mono text-blue-600"
|
|
65121
|
+
),
|
|
65122
|
+
title: val,
|
|
65123
|
+
children: val || /* @__PURE__ */ jsx("span", { className: "text-muted-foreground/30", children: "—" })
|
|
65124
|
+
},
|
|
65125
|
+
h2
|
|
65126
|
+
);
|
|
65127
|
+
})
|
|
65128
|
+
] }, i);
|
|
65129
|
+
}) })
|
|
65130
|
+
] }) }),
|
|
65131
|
+
totalRows > MAX_SHEET_DISPLAY_ROWS && /* @__PURE__ */ jsxs("div", { className: "px-2 py-1 text-[10px] text-muted-foreground", children: [
|
|
65132
|
+
"Showing first ",
|
|
65133
|
+
MAX_SHEET_DISPLAY_ROWS,
|
|
65134
|
+
" of ",
|
|
65135
|
+
totalRows,
|
|
65136
|
+
" rows"
|
|
65137
|
+
] })
|
|
65138
|
+
]
|
|
65139
|
+
}
|
|
65140
|
+
),
|
|
65141
|
+
effectiveAssetId && isComplete && !errorMsg && /* @__PURE__ */ jsx("div", { className: "border-t border-border/40 px-4 py-2", children: /* @__PURE__ */ jsxs(
|
|
65142
|
+
"button",
|
|
65143
|
+
{
|
|
65144
|
+
type: "button",
|
|
65145
|
+
onClick: () => openAsset(effectiveAssetId, { type: "spreadsheet" }),
|
|
65146
|
+
className: "flex items-center gap-1.5 rounded-md border border-border/60 px-3 py-1.5 text-xs font-medium text-muted-foreground transition-colors hover:bg-muted/50 hover:text-foreground",
|
|
65147
|
+
children: [
|
|
65148
|
+
/* @__PURE__ */ jsx(ExternalLink, { className: "size-3" }),
|
|
65149
|
+
"Open spreadsheet"
|
|
65150
|
+
]
|
|
65151
|
+
}
|
|
65152
|
+
) })
|
|
65153
|
+
]
|
|
65154
|
+
}
|
|
65155
|
+
);
|
|
65156
|
+
};
|
|
65157
|
+
const UpdateSheetRangeToolUI = memo(
|
|
65158
|
+
UpdateSheetRangeToolUIImpl
|
|
65159
|
+
);
|
|
65160
|
+
UpdateSheetRangeToolUI.displayName = "UpdateSheetRangeToolUI";
|
|
64434
65161
|
function createAssetToolUI(config2) {
|
|
64435
65162
|
const Component = (props) => /* @__PURE__ */ jsx(
|
|
64436
65163
|
CreateAssetToolUIImpl,
|
|
@@ -64460,7 +65187,16 @@ const TOOL_UI_REGISTRY = {
|
|
|
64460
65187
|
create_new_notebook: CreateNotebookToolUI,
|
|
64461
65188
|
execute_presentation_code: ExecutePresentationCodeToolUI,
|
|
64462
65189
|
run_python_code: RunPythonCodeToolUI,
|
|
64463
|
-
open_asset_in_workspace: OpenAssetToolUI
|
|
65190
|
+
open_asset_in_workspace: OpenAssetToolUI,
|
|
65191
|
+
// Spreadsheet toolkit
|
|
65192
|
+
update_sheet_range: UpdateSheetRangeToolUI,
|
|
65193
|
+
// Database toolkit
|
|
65194
|
+
describe_database: DescribeDatabaseToolUI,
|
|
65195
|
+
list_database_tables: ListDatabaseTablesToolUI,
|
|
65196
|
+
get_database_table_schema: GetDatabaseTableSchemaToolUI,
|
|
65197
|
+
run_sql: RunSqlToolUI,
|
|
65198
|
+
run_database_sql: RunSqlToolUI,
|
|
65199
|
+
run_sql_query_tool: RunSqlToolUI
|
|
64464
65200
|
};
|
|
64465
65201
|
const falsyToString = (value) => typeof value === "boolean" ? `${value}` : value === 0 ? "0" : value;
|
|
64466
65202
|
const cx = clsx;
|
|
@@ -64897,9 +65633,9 @@ const DEFAULT_SUGGESTIONS = [
|
|
|
64897
65633
|
prompt: "Search the web for the latest developments in enterprise AI adoption, then create a document summarizing the key trends, market data, and strategic implications."
|
|
64898
65634
|
},
|
|
64899
65635
|
{
|
|
64900
|
-
icon:
|
|
64901
|
-
title: "
|
|
64902
|
-
prompt: "
|
|
65636
|
+
icon: Search,
|
|
65637
|
+
title: "Compare recent AI model launches",
|
|
65638
|
+
prompt: "Search the web for the latest major AI model launches from OpenAI, Anthropic, and Google, then summarize the release dates, standout capabilities, and practical tradeoffs in a concise comparison table."
|
|
64903
65639
|
},
|
|
64904
65640
|
{
|
|
64905
65641
|
icon: Presentation,
|
|
@@ -65153,10 +65889,11 @@ const ComposerSendWithQuote = () => {
|
|
|
65153
65889
|
const { attachments, clearAttachments, isUploading } = useAttachments();
|
|
65154
65890
|
const editorRef = useComposerEditorRef();
|
|
65155
65891
|
const editorEmpty = useComposerEditorEmpty();
|
|
65892
|
+
const isThreadRunning = useAuiState((s) => s.thread.isRunning);
|
|
65156
65893
|
const hasExtras = !!quote || attachments.length > 0;
|
|
65157
65894
|
const handleSend = useCallback(() => {
|
|
65158
65895
|
var _a2;
|
|
65159
|
-
if (isUploading) return;
|
|
65896
|
+
if (isUploading || isThreadRunning) return;
|
|
65160
65897
|
const editor = editorRef.current;
|
|
65161
65898
|
if (!editor && !quote && attachments.length === 0) return;
|
|
65162
65899
|
const userText = ((_a2 = editor == null ? void 0 : editor.getMarkdown()) == null ? void 0 : _a2.trim()) ?? "";
|
|
@@ -65180,7 +65917,7 @@ const ComposerSendWithQuote = () => {
|
|
|
65180
65917
|
composerRuntime.send();
|
|
65181
65918
|
}
|
|
65182
65919
|
editor == null ? void 0 : editor.clear();
|
|
65183
|
-
}, [aui, composerRuntime, quote, attachments, hasExtras, isUploading, clearQuote, clearAttachments, editorRef, appUrl]);
|
|
65920
|
+
}, [aui, composerRuntime, quote, attachments, hasExtras, isUploading, isThreadRunning, clearQuote, clearAttachments, editorRef, appUrl]);
|
|
65184
65921
|
return /* @__PURE__ */ jsx(
|
|
65185
65922
|
TooltipIconButton,
|
|
65186
65923
|
{
|
|
@@ -65192,7 +65929,7 @@ const ComposerSendWithQuote = () => {
|
|
|
65192
65929
|
className: "aui-composer-send size-8 rounded-full",
|
|
65193
65930
|
"aria-label": "Send message",
|
|
65194
65931
|
onClick: handleSend,
|
|
65195
|
-
disabled: isUploading || editorEmpty && !hasExtras,
|
|
65932
|
+
disabled: isUploading || isThreadRunning || editorEmpty && !hasExtras,
|
|
65196
65933
|
children: /* @__PURE__ */ jsx(ArrowUp, { className: "aui-composer-send-icon size-4" })
|
|
65197
65934
|
}
|
|
65198
65935
|
);
|
|
@@ -65210,7 +65947,10 @@ const MessageError = () => /* @__PURE__ */ jsx(MessagePrimitiveError, { children
|
|
|
65210
65947
|
}
|
|
65211
65948
|
) })
|
|
65212
65949
|
] }) });
|
|
65213
|
-
const AthenaAssistantMessageEmpty = () =>
|
|
65950
|
+
const AthenaAssistantMessageEmpty = ({ status }) => {
|
|
65951
|
+
if ((status == null ? void 0 : status.type) !== "running") return null;
|
|
65952
|
+
return /* @__PURE__ */ jsx("span", { className: "shimmer text-[13px] text-muted-foreground", children: "Thinking..." });
|
|
65953
|
+
};
|
|
65214
65954
|
const AthenaReasoningPart = ({
|
|
65215
65955
|
text: text2,
|
|
65216
65956
|
status,
|
|
@@ -65838,8 +66578,6 @@ const Toolkits = {
|
|
|
65838
66578
|
MARKETING: "marketing_toolkit",
|
|
65839
66579
|
/** FDE implementations and workflows. */
|
|
65840
66580
|
FDE: "fde_toolkit",
|
|
65841
|
-
/** Code repository search via Greptile. */
|
|
65842
|
-
GREPTILE: "greptile_toolkit",
|
|
65843
66581
|
/** SharePoint / Google Drive / workspace file access. */
|
|
65844
66582
|
EXTERNAL_DRIVE: "external_drive_toolkit",
|
|
65845
66583
|
/** Reusable playbooks and prompts. */
|
|
@@ -65878,12 +66616,16 @@ export {
|
|
|
65878
66616
|
DEFAULT_API_URL,
|
|
65879
66617
|
DEFAULT_APP_URL,
|
|
65880
66618
|
DEFAULT_BACKEND_URL,
|
|
66619
|
+
DescribeDatabaseToolUI,
|
|
65881
66620
|
EmailSearchToolUI,
|
|
65882
66621
|
ExpandableSection,
|
|
65883
66622
|
FileUploadButton,
|
|
66623
|
+
GetDatabaseTableSchemaToolUI,
|
|
66624
|
+
ListDatabaseTablesToolUI,
|
|
65884
66625
|
OpenAssetToolUI,
|
|
65885
66626
|
ReadAssetToolUI,
|
|
65886
66627
|
RunPythonCodeToolUI,
|
|
66628
|
+
RunSqlToolUI,
|
|
65887
66629
|
TOOL_UI_REGISTRY,
|
|
65888
66630
|
ThreadList,
|
|
65889
66631
|
TiptapComposer,
|
|
@@ -65902,6 +66644,7 @@ export {
|
|
|
65902
66644
|
TooltipIconButton,
|
|
65903
66645
|
TooltipProvider,
|
|
65904
66646
|
TooltipTrigger,
|
|
66647
|
+
UpdateSheetRangeToolUI,
|
|
65905
66648
|
WebSearchToolUI,
|
|
65906
66649
|
buttonVariants,
|
|
65907
66650
|
clearAutoOpenedAssets,
|