@tangle-network/agent-app 0.45.2 → 0.45.4
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/assistant/index.js +2 -2
- package/dist/assistant/index.js.map +1 -1
- package/dist/chat-routes/index.js +1 -1
- package/dist/{chunk-AOQ4FCSH.js → chunk-CS6MJDIM.js} +11 -1
- package/dist/chunk-CS6MJDIM.js.map +1 -0
- package/dist/{chunk-RDK3CN7Y.js → chunk-YRFB2KEA.js} +95 -86
- package/dist/chunk-YRFB2KEA.js.map +1 -0
- package/dist/sandbox/index.d.ts +1 -0
- package/dist/sandbox/index.js +1 -1
- package/dist/web-react/index.d.ts +9 -2
- package/dist/web-react/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-AOQ4FCSH.js.map +0 -1
- package/dist/chunk-RDK3CN7Y.js.map +0 -1
|
@@ -1601,7 +1601,7 @@ function ChatComposer({
|
|
|
1601
1601
|
seed,
|
|
1602
1602
|
onSeedApplied,
|
|
1603
1603
|
controls,
|
|
1604
|
-
controlsPlacement = "
|
|
1604
|
+
controlsPlacement = "inline",
|
|
1605
1605
|
onAttach,
|
|
1606
1606
|
onAttachFolder,
|
|
1607
1607
|
pendingFiles = [],
|
|
@@ -1735,8 +1735,8 @@ function ChatComposer({
|
|
|
1735
1735
|
);
|
|
1736
1736
|
const folderChips = pendingFiles.filter((f) => f.kind === "folder");
|
|
1737
1737
|
const fileChips = pendingFiles.filter((f) => f.kind !== "folder");
|
|
1738
|
-
const showFooter = controls != null && controlsPlacement === "footer";
|
|
1739
1738
|
const showAbove = controls != null && controlsPlacement === "above";
|
|
1739
|
+
const showInline = controls != null && !showAbove;
|
|
1740
1740
|
return /* @__PURE__ */ jsxs7(
|
|
1741
1741
|
"div",
|
|
1742
1742
|
{
|
|
@@ -1779,89 +1779,98 @@ function ChatComposer({
|
|
|
1779
1779
|
},
|
|
1780
1780
|
f.id
|
|
1781
1781
|
)) }),
|
|
1782
|
-
/* @__PURE__ */ jsxs7(
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1782
|
+
/* @__PURE__ */ jsxs7(
|
|
1783
|
+
"div",
|
|
1784
|
+
{
|
|
1785
|
+
"data-testid": "composer-card",
|
|
1786
|
+
className: "flex flex-col gap-1.5 rounded-2xl border border-border bg-card px-3 py-2.5 transition focus-within:border-primary/40 focus-within:ring-2 focus-within:ring-primary/15",
|
|
1787
|
+
children: [
|
|
1788
|
+
/* @__PURE__ */ jsx9(
|
|
1789
|
+
"textarea",
|
|
1790
|
+
{
|
|
1791
|
+
ref: textareaRef,
|
|
1792
|
+
value: text,
|
|
1793
|
+
onChange: (e) => setText(e.target.value),
|
|
1794
|
+
onKeyDown: handleKeyDown,
|
|
1795
|
+
placeholder,
|
|
1796
|
+
disabled,
|
|
1797
|
+
rows: 2,
|
|
1798
|
+
"aria-label": "Message input",
|
|
1799
|
+
className: "max-h-[168px] min-h-[56px] w-full resize-none bg-transparent px-1.5 py-1 text-[15px] leading-6 text-foreground outline-none placeholder:text-muted-foreground disabled:opacity-50"
|
|
1800
|
+
}
|
|
1801
|
+
),
|
|
1802
|
+
/* @__PURE__ */ jsxs7("div", { className: "flex items-end gap-2", children: [
|
|
1803
|
+
onAttach && /* @__PURE__ */ jsxs7(Fragment3, { children: [
|
|
1804
|
+
/* @__PURE__ */ jsx9(
|
|
1805
|
+
"button",
|
|
1806
|
+
{
|
|
1807
|
+
type: "button",
|
|
1808
|
+
onClick: () => fileInputRef.current?.click(),
|
|
1809
|
+
disabled,
|
|
1810
|
+
"aria-label": "Attach files",
|
|
1811
|
+
title: "Attach files",
|
|
1812
|
+
className: "shrink-0 rounded-lg p-2 text-muted-foreground transition hover:bg-accent/40 hover:text-foreground disabled:opacity-50 focus:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
1813
|
+
children: /* @__PURE__ */ jsx9(PaperclipGlyph, { className: "h-4 w-4" })
|
|
1814
|
+
}
|
|
1815
|
+
),
|
|
1816
|
+
/* @__PURE__ */ jsx9("input", { ref: fileInputRef, type: "file", multiple: true, className: "hidden", accept, onChange: handleFileChange })
|
|
1817
|
+
] }),
|
|
1818
|
+
onAttachFolder && /* @__PURE__ */ jsxs7(Fragment3, { children: [
|
|
1819
|
+
/* @__PURE__ */ jsx9(
|
|
1820
|
+
"button",
|
|
1821
|
+
{
|
|
1822
|
+
type: "button",
|
|
1823
|
+
onClick: () => folderInputRef.current?.click(),
|
|
1824
|
+
disabled,
|
|
1825
|
+
"aria-label": "Attach folder",
|
|
1826
|
+
title: "Attach folder",
|
|
1827
|
+
className: "shrink-0 rounded-lg p-2 text-muted-foreground transition hover:bg-accent/40 hover:text-foreground disabled:opacity-50 focus:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
1828
|
+
children: /* @__PURE__ */ jsx9(FolderGlyph, { className: "h-4 w-4" })
|
|
1829
|
+
}
|
|
1830
|
+
),
|
|
1831
|
+
/* @__PURE__ */ jsx9(
|
|
1832
|
+
"input",
|
|
1833
|
+
{
|
|
1834
|
+
ref: folderInputRef,
|
|
1835
|
+
type: "file",
|
|
1836
|
+
multiple: true,
|
|
1837
|
+
className: "hidden",
|
|
1838
|
+
onChange: handleFolderChange,
|
|
1839
|
+
...{ webkitdirectory: "" }
|
|
1840
|
+
}
|
|
1841
|
+
)
|
|
1842
|
+
] }),
|
|
1843
|
+
/* @__PURE__ */ jsx9("div", { className: "flex min-w-0 flex-1 items-center gap-1.5 overflow-x-auto [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", children: showInline && controls }),
|
|
1844
|
+
isStreaming ? /* @__PURE__ */ jsxs7(
|
|
1845
|
+
"button",
|
|
1846
|
+
{
|
|
1847
|
+
type: "button",
|
|
1848
|
+
onClick: onCancel,
|
|
1849
|
+
"aria-label": "Stop response",
|
|
1850
|
+
className: "inline-flex shrink-0 items-center gap-1.5 rounded-full bg-destructive/15 px-3.5 py-2 text-sm font-medium text-destructive transition hover:bg-destructive/25 focus:outline-none focus-visible:ring-2 focus-visible:ring-destructive/50",
|
|
1851
|
+
children: [
|
|
1852
|
+
/* @__PURE__ */ jsx9(StopGlyph, { className: "h-3.5 w-3.5" }),
|
|
1853
|
+
/* @__PURE__ */ jsx9("span", { children: "Stop" })
|
|
1854
|
+
]
|
|
1855
|
+
}
|
|
1856
|
+
) : /* @__PURE__ */ jsxs7(
|
|
1857
|
+
"button",
|
|
1858
|
+
{
|
|
1859
|
+
type: "button",
|
|
1860
|
+
onClick: send,
|
|
1861
|
+
disabled: !canSend,
|
|
1862
|
+
"aria-label": sendLabel,
|
|
1863
|
+
className: "inline-flex shrink-0 items-center gap-1.5 rounded-full bg-primary px-3.5 py-2 text-sm font-medium text-primary-foreground shadow-sm transition hover:bg-primary/90 disabled:cursor-not-allowed disabled:opacity-40 focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-card",
|
|
1864
|
+
children: [
|
|
1865
|
+
/* @__PURE__ */ jsx9(SendGlyph, { className: "h-3.5 w-3.5" }),
|
|
1866
|
+
/* @__PURE__ */ jsx9("span", { children: sendLabel })
|
|
1867
|
+
]
|
|
1868
|
+
}
|
|
1869
|
+
)
|
|
1870
|
+
] })
|
|
1871
|
+
]
|
|
1872
|
+
}
|
|
1873
|
+
),
|
|
1865
1874
|
focusShortcut && /* @__PURE__ */ jsx9("div", { className: "mt-1.5 flex justify-end px-1", children: /* @__PURE__ */ jsxs7("span", { className: "text-xs text-muted-foreground", children: [
|
|
1866
1875
|
/* @__PURE__ */ jsx9("kbd", { className: "rounded border border-border bg-background px-1 py-0.5 text-[10px]", children: "Cmd" }),
|
|
1867
1876
|
/* @__PURE__ */ jsx9("kbd", { className: "ml-0.5 rounded border border-border bg-background px-1 py-0.5 text-[10px]", children: "L" }),
|
|
@@ -4300,4 +4309,4 @@ export {
|
|
|
4300
4309
|
useThinkingSeconds,
|
|
4301
4310
|
ChatMessages
|
|
4302
4311
|
};
|
|
4303
|
-
//# sourceMappingURL=chunk-
|
|
4312
|
+
//# sourceMappingURL=chunk-YRFB2KEA.js.map
|