@lumerahq/ui 0.20.1-dev.0 → 0.20.1
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/CHANGELOG.md +2 -2
- package/dist/{RecordSheet-QIaJy2yB.js → RecordSheet-DXoTTH7T.js} +135 -131
- package/dist/components/{assistant → agent-chat}/SessionRail.d.ts +1 -1
- package/dist/components/agent-chat/SessionRail.d.ts.map +1 -0
- package/dist/components/agent-chat/index.d.ts +1 -0
- package/dist/components/agent-chat/index.d.ts.map +1 -1
- package/dist/components/assistant/AssistantChat.d.ts +2 -1
- package/dist/components/assistant/AssistantChat.d.ts.map +1 -1
- package/dist/components/assistant/AssistantPage.d.ts +2 -1
- package/dist/components/assistant/AssistantPage.d.ts.map +1 -1
- package/dist/components/assistant/AssistantWidget.d.ts +2 -1
- package/dist/components/assistant/AssistantWidget.d.ts.map +1 -1
- package/dist/components/assistant/index.d.ts +0 -1
- package/dist/components/assistant/index.d.ts.map +1 -1
- package/dist/components/index.d.ts +2 -2
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +1 -1
- package/dist/{highlighted-body-OFNGDK62-CmQu6WAu.js → highlighted-body-OFNGDK62-95pvcwdb.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/mermaid-GHXKKRXX-Dq4bMBai.js +4 -0
- package/package.json +1 -1
- package/dist/components/assistant/SessionRail.d.ts.map +0 -1
- package/dist/mermaid-GHXKKRXX-BVhL5XWj.js +0 -4
package/CHANGELOG.md
CHANGED
|
@@ -15,7 +15,7 @@ The assistant surfaces now render on `AgentChat`, so existing apps get the redes
|
|
|
15
15
|
### Changed
|
|
16
16
|
|
|
17
17
|
- `AssistantChat` is a thin wrapper over `AgentChat` that keeps the data-sync transport; `AssistantPage` and `AssistantWidget` render through it. The old transcript, composer, and header are gone, with the `.assistant-md` rules and the `pulse-dot` keyframe only they used.
|
|
18
|
-
- On these surfaces the empty state
|
|
18
|
+
- On these surfaces the empty state shows `title` and the subtitle or scopes, so `emptyTitle` and `emptyDescription` are ignored. A read-only `AssistantPage` with no session says "No conversations yet." in the rail.
|
|
19
19
|
|
|
20
20
|
### Deprecated
|
|
21
21
|
|
|
@@ -23,7 +23,7 @@ Still exported so existing apps keep compiling; removed in a later major.
|
|
|
23
23
|
|
|
24
24
|
- `AssistantChat`, `AssistantPage`, `AssistantWidget`: use `AgentChat`, with `withDataSync` for `onDataChange`, `SessionRail` plus `useAgentChatSessions` for a page, and your own launcher for a widget.
|
|
25
25
|
- `AssistantComposerChip`: the same shape as `AgentChatComposerChip`.
|
|
26
|
-
- `emptyTitle` on the three surfaces.
|
|
26
|
+
- `emptyTitle` and `emptyDescription` on the three surfaces.
|
|
27
27
|
|
|
28
28
|
## 0.20.0
|
|
29
29
|
|
|
@@ -23975,7 +23975,7 @@ var lr = (e) => {
|
|
|
23975
23975
|
for (; t > 0 && e[t - 1] === `
|
|
23976
23976
|
`; ) t--;
|
|
23977
23977
|
return e.slice(0, t);
|
|
23978
|
-
}, cr = lazy(() => import("./highlighted-body-OFNGDK62-
|
|
23978
|
+
}, cr = lazy(() => import("./highlighted-body-OFNGDK62-95pvcwdb.js").then((e) => ({ default: e.HighlightedCodeBlockBody }))), st = ({ code: e, language: t, className: o, children: n, isIncomplete: r = false, startLine: s2, lineNumbers: a, ...l }) => {
|
|
23979
23979
|
let i = y2(), d2 = useMemo(() => lr(e), [e]), c2 = useMemo(() => ({ bg: "transparent", fg: "inherit", tokens: d2.split(`
|
|
23980
23980
|
`).map((p2) => [{ content: p2, color: "inherit", bgColor: "transparent", htmlStyle: {}, offset: 0 }]) }), [d2]);
|
|
23981
23981
|
return jsx(nt.Provider, { value: { code: e }, children: jsxs(ot, { isIncomplete: r, language: t, children: [jsx(rt, { language: t }), n ? jsx("div", { className: i("pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end"), children: jsx("div", { className: i("pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur"), "data-streamdown": "code-block-actions", children: n }) }) : null, jsx(Suspense, { fallback: jsx(At, { className: o, language: t, lineNumbers: a, result: c2, startLine: s2, ...l }), children: jsx(cr, { className: o, code: d2, language: t, lineNumbers: a, raw: c2, startLine: s2, ...l }) })] }) });
|
|
@@ -24337,7 +24337,7 @@ var vo = ({ children: e, className: t, showControls: o, showCopy: n = true, show
|
|
|
24337
24337
|
let l = y2(), i = o && n, d2 = o && r, c2 = o && s2, p2 = i || d2 || c2;
|
|
24338
24338
|
return jsxs("div", { className: l("my-4 flex flex-col gap-2 rounded-lg border border-border bg-sidebar p-2"), "data-streamdown": "table-wrapper", children: [p2 ? jsxs("div", { className: l("flex items-center justify-end gap-1"), children: [i ? jsx(Te, {}) : null, d2 ? jsx(Pe, {}) : null, c2 ? jsx(Co, { showCopy: i, showDownload: d2, children: e }) : null] }) : null, jsx("div", { className: l("border-collapse overflow-x-auto overflow-y-auto rounded-md border border-border bg-background"), children: jsx("table", { className: l("w-full divide-y divide-border", t), "data-streamdown": "table", ...a, children: e }) })] });
|
|
24339
24339
|
};
|
|
24340
|
-
var es = /startLine=(\d+)/, ts = /\bnoLineNumbers\b/, os = lazy(() => import("./mermaid-GHXKKRXX-
|
|
24340
|
+
var es = /startLine=(\d+)/, ts = /\bnoLineNumbers\b/, os = lazy(() => import("./mermaid-GHXKKRXX-Dq4bMBai.js").then((e) => ({ default: e.Mermaid }))), ns = /language-([^\s]+)/;
|
|
24341
24341
|
function qe(e, t) {
|
|
24342
24342
|
if (!(e != null && e.position || t != null && t.position)) return true;
|
|
24343
24343
|
if (!(e != null && e.position && (t != null && t.position))) return false;
|
|
@@ -29561,112 +29561,6 @@ function booleanValue(value) {
|
|
|
29561
29561
|
function isPresent(value) {
|
|
29562
29562
|
return value != null;
|
|
29563
29563
|
}
|
|
29564
|
-
const MUTATING_METHODS = /* @__PURE__ */ new Set(["POST", "PATCH", "PUT", "DELETE"]);
|
|
29565
|
-
function isMutatingToolCall(tc) {
|
|
29566
|
-
if (tc?.name !== "lumera_api") return false;
|
|
29567
|
-
const input = tc.input ?? {};
|
|
29568
|
-
const method = String(input.method ?? "GET").toUpperCase();
|
|
29569
|
-
if (!MUTATING_METHODS.has(method)) return false;
|
|
29570
|
-
const path2 = String(input.path ?? "");
|
|
29571
|
-
if (/\/api\/pb\/collections\/[^/]+\/records/.test(path2)) return true;
|
|
29572
|
-
if (/\/api\/automation-runs/.test(path2)) return true;
|
|
29573
|
-
if (/\/api\/pb\/(?:api\/)?sql$/.test(path2)) {
|
|
29574
|
-
const body = input.body;
|
|
29575
|
-
const sql = String(body?.sql ?? input.sql ?? "");
|
|
29576
|
-
return /^\s*(insert|update|delete|upsert)\b/i.test(sql);
|
|
29577
|
-
}
|
|
29578
|
-
return true;
|
|
29579
|
-
}
|
|
29580
|
-
function withDataSync(transport, onMutation) {
|
|
29581
|
-
const subscribe = transport.subscribe;
|
|
29582
|
-
if (!subscribe) return transport;
|
|
29583
|
-
return {
|
|
29584
|
-
...transport,
|
|
29585
|
-
subscribe: (request, handlers2) => subscribe(request, {
|
|
29586
|
-
...handlers2,
|
|
29587
|
-
onEvent: (event) => {
|
|
29588
|
-
handlers2.onEvent(event);
|
|
29589
|
-
if (event.type === "tool_end" && isMutatingToolCall(event.toolCall)) {
|
|
29590
|
-
onMutation();
|
|
29591
|
-
}
|
|
29592
|
-
}
|
|
29593
|
-
})
|
|
29594
|
-
};
|
|
29595
|
-
}
|
|
29596
|
-
function useDataSyncTransport(transport, onDataChange, debounceMs = 350) {
|
|
29597
|
-
const cbRef = useRef(onDataChange);
|
|
29598
|
-
cbRef.current = onDataChange;
|
|
29599
|
-
const timer = useRef(null);
|
|
29600
|
-
const fire = useCallback(() => {
|
|
29601
|
-
if (timer.current) clearTimeout(timer.current);
|
|
29602
|
-
timer.current = setTimeout(() => cbRef.current?.(), debounceMs);
|
|
29603
|
-
}, [debounceMs]);
|
|
29604
|
-
return useMemo(() => {
|
|
29605
|
-
if (!transport) return transport;
|
|
29606
|
-
return withDataSync(transport, fire);
|
|
29607
|
-
}, [transport, fire]);
|
|
29608
|
-
}
|
|
29609
|
-
function AssistantChat({
|
|
29610
|
-
agentId,
|
|
29611
|
-
sessionId,
|
|
29612
|
-
transport,
|
|
29613
|
-
showHeader = true,
|
|
29614
|
-
title = "Assistant",
|
|
29615
|
-
subtitle,
|
|
29616
|
-
headerLeft,
|
|
29617
|
-
headerRight,
|
|
29618
|
-
scopes,
|
|
29619
|
-
suggestions,
|
|
29620
|
-
composerChips,
|
|
29621
|
-
placeholder = "Ask a question…",
|
|
29622
|
-
emptyDescription,
|
|
29623
|
-
toolRenderers,
|
|
29624
|
-
onDataChange,
|
|
29625
|
-
onTurnComplete,
|
|
29626
|
-
onNewChat,
|
|
29627
|
-
enableAttachments,
|
|
29628
|
-
webSearch,
|
|
29629
|
-
historyLimit,
|
|
29630
|
-
watchdog = true,
|
|
29631
|
-
discoveryPoll,
|
|
29632
|
-
disabled,
|
|
29633
|
-
readOnly,
|
|
29634
|
-
className
|
|
29635
|
-
}) {
|
|
29636
|
-
const syncedTransport = useDataSyncTransport(transport, onDataChange);
|
|
29637
|
-
return /* @__PURE__ */ jsx(
|
|
29638
|
-
AgentChat,
|
|
29639
|
-
{
|
|
29640
|
-
agentId,
|
|
29641
|
-
sessionId,
|
|
29642
|
-
transport: syncedTransport,
|
|
29643
|
-
name: title,
|
|
29644
|
-
description: scopes && scopes.length > 0 ? scopes.join(" · ") : subtitle,
|
|
29645
|
-
suggestions,
|
|
29646
|
-
composerChips,
|
|
29647
|
-
onNewChat,
|
|
29648
|
-
headerLeft,
|
|
29649
|
-
headerRight,
|
|
29650
|
-
labels: { placeholder, emptyDescription },
|
|
29651
|
-
features: {
|
|
29652
|
-
header: showHeader,
|
|
29653
|
-
attachments: enableAttachments ?? Boolean(transport.uploadFile),
|
|
29654
|
-
webSearch
|
|
29655
|
-
},
|
|
29656
|
-
renderers: { toolRenderers },
|
|
29657
|
-
historyLimit,
|
|
29658
|
-
watchdog,
|
|
29659
|
-
discoveryPoll,
|
|
29660
|
-
disabled,
|
|
29661
|
-
readOnly,
|
|
29662
|
-
onTurnComplete: () => {
|
|
29663
|
-
onTurnComplete?.();
|
|
29664
|
-
onDataChange?.();
|
|
29665
|
-
},
|
|
29666
|
-
className: cn$2("min-h-0 rounded-none border-0 shadow-none", className)
|
|
29667
|
-
}
|
|
29668
|
-
);
|
|
29669
|
-
}
|
|
29670
29564
|
function SessionRail({ sessions, activeSessionId, isLoading, onSelect, onNew, onRename }) {
|
|
29671
29565
|
const [renamingId, setRenamingId] = useState(null);
|
|
29672
29566
|
const [renameValue, setRenameValue] = useState("");
|
|
@@ -29808,6 +29702,113 @@ function formatRelative(value) {
|
|
|
29808
29702
|
if (d2 < 7) return `${d2}d ago`;
|
|
29809
29703
|
return new Date(value).toLocaleDateString();
|
|
29810
29704
|
}
|
|
29705
|
+
const MUTATING_METHODS = /* @__PURE__ */ new Set(["POST", "PATCH", "PUT", "DELETE"]);
|
|
29706
|
+
function isMutatingToolCall(tc) {
|
|
29707
|
+
if (tc?.name !== "lumera_api") return false;
|
|
29708
|
+
const input = tc.input ?? {};
|
|
29709
|
+
const method = String(input.method ?? "GET").toUpperCase();
|
|
29710
|
+
if (!MUTATING_METHODS.has(method)) return false;
|
|
29711
|
+
const path2 = String(input.path ?? "");
|
|
29712
|
+
if (/\/api\/pb\/collections\/[^/]+\/records/.test(path2)) return true;
|
|
29713
|
+
if (/\/api\/automation-runs/.test(path2)) return true;
|
|
29714
|
+
if (/\/api\/pb\/(?:api\/)?sql$/.test(path2)) {
|
|
29715
|
+
const body = input.body;
|
|
29716
|
+
const sql = String(body?.sql ?? input.sql ?? "");
|
|
29717
|
+
return /^\s*(insert|update|delete|upsert)\b/i.test(sql);
|
|
29718
|
+
}
|
|
29719
|
+
return true;
|
|
29720
|
+
}
|
|
29721
|
+
function withDataSync(transport, onMutation) {
|
|
29722
|
+
const subscribe = transport.subscribe;
|
|
29723
|
+
if (!subscribe) return transport;
|
|
29724
|
+
return {
|
|
29725
|
+
...transport,
|
|
29726
|
+
subscribe: (request, handlers2) => subscribe(request, {
|
|
29727
|
+
...handlers2,
|
|
29728
|
+
onEvent: (event) => {
|
|
29729
|
+
handlers2.onEvent(event);
|
|
29730
|
+
if (event.type === "tool_end" && isMutatingToolCall(event.toolCall)) {
|
|
29731
|
+
onMutation();
|
|
29732
|
+
}
|
|
29733
|
+
}
|
|
29734
|
+
})
|
|
29735
|
+
};
|
|
29736
|
+
}
|
|
29737
|
+
function useDataSyncTransport(transport, onDataChange, debounceMs = 350) {
|
|
29738
|
+
const cbRef = useRef(onDataChange);
|
|
29739
|
+
cbRef.current = onDataChange;
|
|
29740
|
+
const timer = useRef(null);
|
|
29741
|
+
const fire = useCallback(() => {
|
|
29742
|
+
if (timer.current) clearTimeout(timer.current);
|
|
29743
|
+
timer.current = setTimeout(() => cbRef.current?.(), debounceMs);
|
|
29744
|
+
}, [debounceMs]);
|
|
29745
|
+
return useMemo(() => {
|
|
29746
|
+
if (!transport) return transport;
|
|
29747
|
+
return withDataSync(transport, fire);
|
|
29748
|
+
}, [transport, fire]);
|
|
29749
|
+
}
|
|
29750
|
+
function AssistantChat({
|
|
29751
|
+
agentId,
|
|
29752
|
+
sessionId,
|
|
29753
|
+
transport,
|
|
29754
|
+
showHeader = true,
|
|
29755
|
+
title = "Assistant",
|
|
29756
|
+
subtitle,
|
|
29757
|
+
headerLeft,
|
|
29758
|
+
headerRight,
|
|
29759
|
+
scopes,
|
|
29760
|
+
suggestions,
|
|
29761
|
+
composerChips,
|
|
29762
|
+
placeholder = "Ask a question…",
|
|
29763
|
+
toolRenderers,
|
|
29764
|
+
onDataChange,
|
|
29765
|
+
onTurnComplete,
|
|
29766
|
+
onNewChat,
|
|
29767
|
+
enableAttachments,
|
|
29768
|
+
webSearch,
|
|
29769
|
+
historyLimit,
|
|
29770
|
+
watchdog = true,
|
|
29771
|
+
discoveryPoll,
|
|
29772
|
+
disabled,
|
|
29773
|
+
readOnly,
|
|
29774
|
+
className
|
|
29775
|
+
}) {
|
|
29776
|
+
const syncedTransport = useDataSyncTransport(transport, onDataChange);
|
|
29777
|
+
const labels = useMemo(() => ({ placeholder }), [placeholder]);
|
|
29778
|
+
const features = useMemo(
|
|
29779
|
+
() => ({ header: showHeader, attachments: enableAttachments ?? Boolean(transport.uploadFile), webSearch }),
|
|
29780
|
+
[showHeader, enableAttachments, transport.uploadFile, webSearch]
|
|
29781
|
+
);
|
|
29782
|
+
const renderers = useMemo(() => ({ toolRenderers }), [toolRenderers]);
|
|
29783
|
+
return /* @__PURE__ */ jsx(
|
|
29784
|
+
AgentChat,
|
|
29785
|
+
{
|
|
29786
|
+
agentId,
|
|
29787
|
+
sessionId,
|
|
29788
|
+
transport: syncedTransport,
|
|
29789
|
+
name: title,
|
|
29790
|
+
description: scopes && scopes.length > 0 ? scopes.join(" · ") : subtitle,
|
|
29791
|
+
suggestions,
|
|
29792
|
+
composerChips,
|
|
29793
|
+
onNewChat,
|
|
29794
|
+
headerLeft,
|
|
29795
|
+
headerRight,
|
|
29796
|
+
labels,
|
|
29797
|
+
features,
|
|
29798
|
+
renderers,
|
|
29799
|
+
historyLimit,
|
|
29800
|
+
watchdog,
|
|
29801
|
+
discoveryPoll,
|
|
29802
|
+
disabled,
|
|
29803
|
+
readOnly,
|
|
29804
|
+
onTurnComplete: () => {
|
|
29805
|
+
onTurnComplete?.();
|
|
29806
|
+
onDataChange?.();
|
|
29807
|
+
},
|
|
29808
|
+
className: cn$2("min-h-0 rounded-none border-0 shadow-none", className)
|
|
29809
|
+
}
|
|
29810
|
+
);
|
|
29811
|
+
}
|
|
29811
29812
|
function newSessionId(prefix) {
|
|
29812
29813
|
return `${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 8)}`;
|
|
29813
29814
|
}
|
|
@@ -29819,8 +29820,6 @@ function AssistantPage({
|
|
|
29819
29820
|
scopes,
|
|
29820
29821
|
suggestions,
|
|
29821
29822
|
placeholder,
|
|
29822
|
-
emptyTitle,
|
|
29823
|
-
emptyDescription,
|
|
29824
29823
|
toolRenderers,
|
|
29825
29824
|
onDataChange,
|
|
29826
29825
|
enableAttachments,
|
|
@@ -29854,7 +29853,6 @@ function AssistantPage({
|
|
|
29854
29853
|
setActiveSessionId(newSessionId(newChatPrefix));
|
|
29855
29854
|
}
|
|
29856
29855
|
}, [activeSessionId, mutationsBlocked, sessions.isLoading, sessions.activeSessionId, newChatPrefix]);
|
|
29857
|
-
const noSessionAvailable = mutationsBlocked && !sessions.isLoading && !activeSessionId && sessions.sessions.length === 0;
|
|
29858
29856
|
const chatDisabled = Boolean(disabled || !activeSessionId);
|
|
29859
29857
|
const startNewChat = useCallback(() => setActiveSessionId(newSessionId(newChatPrefix)), [newChatPrefix]);
|
|
29860
29858
|
const handleNew = mutationsBlocked ? void 0 : startNewChat;
|
|
@@ -29883,8 +29881,6 @@ function AssistantPage({
|
|
|
29883
29881
|
scopes,
|
|
29884
29882
|
suggestions,
|
|
29885
29883
|
placeholder,
|
|
29886
|
-
emptyTitle,
|
|
29887
|
-
emptyDescription: noSessionAvailable ? "No conversations yet." : emptyDescription,
|
|
29888
29884
|
toolRenderers,
|
|
29889
29885
|
onDataChange,
|
|
29890
29886
|
onNewChat: handleNew,
|
|
@@ -29919,8 +29915,6 @@ function AssistantWidget({
|
|
|
29919
29915
|
suggestions,
|
|
29920
29916
|
quickActions,
|
|
29921
29917
|
placeholder,
|
|
29922
|
-
emptyTitle,
|
|
29923
|
-
emptyDescription,
|
|
29924
29918
|
toolRenderers,
|
|
29925
29919
|
onDataChange,
|
|
29926
29920
|
enableAttachments,
|
|
@@ -29944,10 +29938,19 @@ function AssistantWidget({
|
|
|
29944
29938
|
children: open2 ? /* @__PURE__ */ jsx(X$2, { className: "size-5", "aria-hidden": "true" }) : /* @__PURE__ */ jsx(Bot, { className: "size-5", "aria-hidden": "true" })
|
|
29945
29939
|
}
|
|
29946
29940
|
),
|
|
29947
|
-
open2 && /* @__PURE__ */ jsx("div", { className: "fixed right-5 bottom-20 z-50 flex h-[min(640px,calc(100vh-7rem))] w-[440px] max-w-[calc(100vw-2.5rem)] flex-col overflow-hidden rounded-2xl border border-border bg-background shadow-2xl animate-[agent-chat-in_.15s_ease-out]", children: loading ? /* @__PURE__ */ jsxs(
|
|
29948
|
-
/* @__PURE__ */
|
|
29949
|
-
|
|
29950
|
-
|
|
29941
|
+
open2 && /* @__PURE__ */ jsx("div", { className: "fixed right-5 bottom-20 z-50 flex h-[min(640px,calc(100vh-7rem))] w-[440px] max-w-[calc(100vw-2.5rem)] flex-col overflow-hidden rounded-2xl border border-border bg-background shadow-2xl animate-[agent-chat-in_.15s_ease-out]", children: loading || error2 || !transport ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
29942
|
+
/* @__PURE__ */ jsxs("header", { className: "flex items-center gap-3 border-b border-border px-4 py-3", children: [
|
|
29943
|
+
/* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
29944
|
+
/* @__PURE__ */ jsx("p", { className: "truncate text-sm font-semibold leading-tight", children: title }),
|
|
29945
|
+
subtitle && /* @__PURE__ */ jsx("p", { className: "truncate text-xs text-muted-foreground", children: subtitle })
|
|
29946
|
+
] }),
|
|
29947
|
+
/* @__PURE__ */ jsx(CloseButton, { onClick: () => setOpen(false) })
|
|
29948
|
+
] }),
|
|
29949
|
+
loading ? /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 p-4 text-sm text-muted-foreground", children: [
|
|
29950
|
+
/* @__PURE__ */ jsx(LoaderCircle, { className: "size-4 animate-spin", "aria-hidden": "true" }),
|
|
29951
|
+
" Loading…"
|
|
29952
|
+
] }) : /* @__PURE__ */ jsx("div", { className: "p-4 text-sm text-destructive", children: error2 || "Could not connect." })
|
|
29953
|
+
] }) : /* @__PURE__ */ jsx(
|
|
29951
29954
|
AssistantChat,
|
|
29952
29955
|
{
|
|
29953
29956
|
className: "min-h-0 flex-1",
|
|
@@ -29959,8 +29962,6 @@ function AssistantWidget({
|
|
|
29959
29962
|
suggestions,
|
|
29960
29963
|
composerChips: quickActions,
|
|
29961
29964
|
placeholder,
|
|
29962
|
-
emptyTitle,
|
|
29963
|
-
emptyDescription,
|
|
29964
29965
|
toolRenderers,
|
|
29965
29966
|
onDataChange,
|
|
29966
29967
|
enableAttachments,
|
|
@@ -29968,20 +29969,23 @@ function AssistantWidget({
|
|
|
29968
29969
|
historyLimit,
|
|
29969
29970
|
disabled,
|
|
29970
29971
|
readOnly,
|
|
29971
|
-
headerRight: /* @__PURE__ */ jsx(
|
|
29972
|
-
"button",
|
|
29973
|
-
{
|
|
29974
|
-
type: "button",
|
|
29975
|
-
onClick: () => setOpen(false),
|
|
29976
|
-
"aria-label": "Close",
|
|
29977
|
-
className: "rounded-md p-1.5 text-muted-foreground transition hover:bg-muted hover:text-foreground",
|
|
29978
|
-
children: /* @__PURE__ */ jsx(X$2, { className: "size-4", "aria-hidden": "true" })
|
|
29979
|
-
}
|
|
29980
|
-
)
|
|
29972
|
+
headerRight: /* @__PURE__ */ jsx(CloseButton, { onClick: () => setOpen(false) })
|
|
29981
29973
|
}
|
|
29982
29974
|
) })
|
|
29983
29975
|
] });
|
|
29984
29976
|
}
|
|
29977
|
+
function CloseButton({ onClick }) {
|
|
29978
|
+
return /* @__PURE__ */ jsx(
|
|
29979
|
+
"button",
|
|
29980
|
+
{
|
|
29981
|
+
type: "button",
|
|
29982
|
+
onClick,
|
|
29983
|
+
"aria-label": "Close",
|
|
29984
|
+
className: "rounded-md p-1.5 text-muted-foreground transition hover:bg-muted hover:text-foreground",
|
|
29985
|
+
children: /* @__PURE__ */ jsx(X$2, { className: "size-4", "aria-hidden": "true" })
|
|
29986
|
+
}
|
|
29987
|
+
);
|
|
29988
|
+
}
|
|
29985
29989
|
function RunDownloadAction({ run }) {
|
|
29986
29990
|
const [isDownloading, setIsDownloading] = useState(false);
|
|
29987
29991
|
const files = run.artifacts;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SessionRail.d.ts","sourceRoot":"","sources":["../../../src/components/agent-chat/SessionRail.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,gBAAgB,EAAE,CAAC;IAC7B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;IACnB,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CAC/C;AAED,iFAAiF;AACjF,wBAAgB,WAAW,CAAC,EAAE,QAAQ,EAAE,eAAe,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,gBAAgB,2CAiHhH"}
|
|
@@ -7,6 +7,7 @@ export { DefaultContentBlock } from './DefaultContentBlock';
|
|
|
7
7
|
export type { LumeraAgentChatTransportOptions } from './lumera-agent-transport';
|
|
8
8
|
export { createLumeraAgentChatTransport } from './lumera-agent-transport';
|
|
9
9
|
export { AgentChatMarkdown, type AgentChatMarkdownProps } from './Markdown';
|
|
10
|
+
export { SessionRail, type SessionRailProps } from './SessionRail';
|
|
10
11
|
export { isSessionActive, parseSessionActivity, type SessionActivity, } from './session-activity';
|
|
11
12
|
export { defaultToolRenderers, findRenderer, getCollectionMap, humanizeCollectionName, isExploratoryToolCallError, warmCollectionCache, } from './tool-renderers';
|
|
12
13
|
export { ToolCallCard, type ToolCallCardProps, ToolRenderersProvider, useToolRenderers, } from './tool-renderers/ToolCallCard';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/agent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BAAqB,EACrB,oBAAoB,EACpB,qBAAqB,EACrB,aAAa,EACb,kBAAkB,EAClB,4BAA4B,EAC5B,oBAAoB,EACpB,uBAAuB,EACvB,sBAAsB,EACtB,WAAW,EACX,kBAAkB,EAClB,eAAe,EACf,2BAA2B,EAC3B,gBAAgB,EAChB,6BAA6B,EAC7B,oBAAoB,EACpB,iBAAiB,EACjB,wBAAwB,EACxB,oBAAoB,EACpB,cAAc,EACd,cAAc,EACd,6BAA6B,EAC7B,kBAAkB,EAClB,8BAA8B,EAC9B,qBAAqB,EACrB,gBAAgB,EAChB,2BAA2B,EAC3B,0BAA0B,EAC1B,oBAAoB,EACpB,uBAAuB,EACvB,oBAAoB,EACpB,qBAAqB,EACrB,qBAAqB,EACrB,uBAAuB,EACvB,kBAAkB,EAClB,sBAAsB,EACtB,mBAAmB,EACnB,iBAAiB,EACjB,sBAAsB,EACtB,kBAAkB,EAClB,aAAa,EACb,mBAAmB,GACpB,MAAM,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/agent-chat/index.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,aAAa,EAAE,KAAK,iBAAiB,EAAE,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACjG,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EACL,uBAAuB,EACvB,SAAS,EACT,oBAAoB,EACpB,eAAe,EACf,uBAAuB,GACxB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,YAAY,EAAE,+BAA+B,EAAE,MAAM,0BAA0B,CAAC;AAChF,OAAO,EAAE,8BAA8B,EAAE,MAAM,0BAA0B,CAAC;AAC1E,OAAO,EAAE,iBAAiB,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B,sBAAsB,EACtB,mBAAmB,EACnB,iBAAiB,EACjB,sBAAsB,EACtB,kBAAkB,EAClB,aAAa,EACb,mBAAmB,GACpB,MAAM,SAAS,CAAC"}
|
|
@@ -18,6 +18,7 @@ export interface AssistantChatProps {
|
|
|
18
18
|
placeholder?: string;
|
|
19
19
|
/** @deprecated Since 0.20.1 the empty state is titled with `title`; the value is ignored. */
|
|
20
20
|
emptyTitle?: string;
|
|
21
|
+
/** @deprecated Since 0.20.1 the empty state shows the subtitle or scopes; the value is ignored. */
|
|
21
22
|
emptyDescription?: string;
|
|
22
23
|
toolRenderers?: AgentChatToolRenderer[];
|
|
23
24
|
/** Fires (debounced) the moment the agent completes a mutating tool call, and
|
|
@@ -45,5 +46,5 @@ export interface AssistantChatProps {
|
|
|
45
46
|
* @deprecated Since 0.20.1. Use `AgentChat` directly; wrap the transport with
|
|
46
47
|
* `withDataSync` (or `useDataSyncTransport`) to keep the `onDataChange` behaviour.
|
|
47
48
|
*/
|
|
48
|
-
export declare function AssistantChat({ agentId, sessionId, transport, showHeader, title, subtitle, headerLeft, headerRight, scopes, suggestions, composerChips, placeholder,
|
|
49
|
+
export declare function AssistantChat({ agentId, sessionId, transport, showHeader, title, subtitle, headerLeft, headerRight, scopes, suggestions, composerChips, placeholder, toolRenderers, onDataChange, onTurnComplete, onNewChat, enableAttachments, webSearch, historyLimit, watchdog, discoveryPoll, disabled, readOnly, className, }: AssistantChatProps): import("react/jsx-runtime").JSX.Element;
|
|
49
50
|
//# sourceMappingURL=AssistantChat.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AssistantChat.d.ts","sourceRoot":"","sources":["../../../src/components/assistant/AssistantChat.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"AssistantChat.d.ts","sourceRoot":"","sources":["../../../src/components/assistant/AssistantChat.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAW,MAAM,OAA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B,mEAAmE;IACnE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,EAC5B,OAAO,EACP,SAAS,EACT,SAAS,EACT,UAAiB,EACjB,KAAmB,EACnB,QAAQ,EACR,UAAU,EACV,WAAW,EACX,MAAM,EACN,WAAW,EACX,aAAa,EACb,WAA+B,EAC/B,aAAa,EACb,YAAY,EACZ,cAAc,EACd,SAAS,EACT,iBAAiB,EACjB,SAAS,EACT,YAAY,EACZ,QAAe,EACf,aAAa,EACb,QAAQ,EACR,QAAQ,EACR,SAAS,GACV,EAAE,kBAAkB,2CAoCpB"}
|
|
@@ -10,6 +10,7 @@ export interface AssistantPageProps {
|
|
|
10
10
|
placeholder?: string;
|
|
11
11
|
/** @deprecated Since 0.20.1 the empty state is titled with `title`; the value is ignored. */
|
|
12
12
|
emptyTitle?: string;
|
|
13
|
+
/** @deprecated Since 0.20.1 the empty state shows the subtitle or scopes; the value is ignored. */
|
|
13
14
|
emptyDescription?: string;
|
|
14
15
|
toolRenderers?: AgentChatToolRenderer[];
|
|
15
16
|
onDataChange?: () => void;
|
|
@@ -34,5 +35,5 @@ export interface AssistantPageProps {
|
|
|
34
35
|
* @deprecated Since 0.20.1. Compose `SessionRail`, `useAgentChatSessions`, and
|
|
35
36
|
* `AgentChat` in the host instead; the README has the page recipe.
|
|
36
37
|
*/
|
|
37
|
-
export declare function AssistantPage({ agentId, transport, title, subtitle, scopes, suggestions, placeholder,
|
|
38
|
+
export declare function AssistantPage({ agentId, transport, title, subtitle, scopes, suggestions, placeholder, toolRenderers, onDataChange, enableAttachments, webSearch, historyLimit, discoveryPoll, activityPollMs, disabled, readOnly, sessionFilter, newChatPrefix, className, }: AssistantPageProps): import("react/jsx-runtime").JSX.Element;
|
|
38
39
|
//# sourceMappingURL=AssistantPage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AssistantPage.d.ts","sourceRoot":"","sources":["../../../src/components/assistant/AssistantPage.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"AssistantPage.d.ts","sourceRoot":"","sources":["../../../src/components/assistant/AssistantPage.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,qBAAqB,EAAE,KAAK,kBAAkB,EAAe,MAAM,yBAAyB,CAAC;AAC3G,OAAO,EAAE,KAAK,sBAAsB,EAAsD,MAAM,SAAS,CAAC;AAI1G,MAAM,WAAW,kBAAkB;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,kBAAkB,CAAC;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,6FAA6F;IAC7F,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,mGAAmG;IACnG,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,aAAa,CAAC,EAAE,qBAAqB,EAAE,CAAC;IACxC,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,oFAAoF;IACpF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gGAAgG;IAChG,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,yFAAyF;IACzF,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,oFAAoF;IACpF,aAAa,CAAC,EAAE,sBAAsB,CAAC;IACvC,mDAAmD;IACnD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAMD;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,EAC5B,OAAO,EACP,SAAS,EACT,KAAmB,EACnB,QAAQ,EACR,MAAM,EACN,WAAW,EACX,WAAW,EACX,aAAa,EACb,YAAY,EACZ,iBAAiB,EACjB,SAAS,EACT,YAAY,EACZ,aAAa,EACb,cAAc,EACd,QAAQ,EACR,QAAQ,EACR,aAAa,EACb,aAA0B,EAC1B,SAAS,GACV,EAAE,kBAAkB,2CAgFpB"}
|
|
@@ -12,6 +12,7 @@ export interface AssistantWidgetProps {
|
|
|
12
12
|
placeholder?: string;
|
|
13
13
|
/** @deprecated Since 0.20.1 the empty state is titled with `title`; the value is ignored. */
|
|
14
14
|
emptyTitle?: string;
|
|
15
|
+
/** @deprecated Since 0.20.1 the empty state shows the subtitle or scopes; the value is ignored. */
|
|
15
16
|
emptyDescription?: string;
|
|
16
17
|
toolRenderers?: AgentChatToolRenderer[];
|
|
17
18
|
onDataChange?: () => void;
|
|
@@ -32,5 +33,5 @@ export interface AssistantWidgetProps {
|
|
|
32
33
|
* @deprecated Since 0.20.1. Render `AgentChat` inside your own launcher; the
|
|
33
34
|
* README has the launcher recipe.
|
|
34
35
|
*/
|
|
35
|
-
export declare function AssistantWidget({ agentId, sessionId, transport, title, subtitle, suggestions, quickActions, placeholder,
|
|
36
|
+
export declare function AssistantWidget({ agentId, sessionId, transport, title, subtitle, suggestions, quickActions, placeholder, toolRenderers, onDataChange, enableAttachments, webSearch, historyLimit, disabled, readOnly, loading, error, defaultOpen, }: AssistantWidgetProps): import("react/jsx-runtime").JSX.Element;
|
|
36
37
|
//# sourceMappingURL=AssistantWidget.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AssistantWidget.d.ts","sourceRoot":"","sources":["../../../src/components/assistant/AssistantWidget.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAGhH,MAAM,WAAW,oBAAoB;IACnC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,uEAAuE;IACvE,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,kBAAkB,GAAG,IAAI,CAAC;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,4DAA4D;IAC5D,YAAY,CAAC,EAAE,qBAAqB,EAAE,CAAC;IACvC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,6FAA6F;IAC7F,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,aAAa,CAAC,EAAE,qBAAqB,EAAE,CAAC;IACxC,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,2EAA2E;IAC3E,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,mFAAmF;IACnF,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,qCAAqC;IACrC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,EAC9B,OAAO,EACP,SAAS,EACT,SAAS,EACT,KAAmB,EACnB,QAAQ,EACR,WAAW,EACX,YAAY,EACZ,WAAW,EACX,
|
|
1
|
+
{"version":3,"file":"AssistantWidget.d.ts","sourceRoot":"","sources":["../../../src/components/assistant/AssistantWidget.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AA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AssistantChat';
|
|
|
3
3
|
export { AssistantPage, type AssistantPageProps } from './AssistantPage';
|
|
4
4
|
export { AssistantWidget, type AssistantWidgetProps } from './AssistantWidget';
|
|
5
5
|
export { isMutatingToolCall, useDataSyncTransport, withDataSync } from './agent-data-sync';
|
|
6
|
-
export { SessionRail, type SessionRailProps } from './SessionRail';
|
|
7
6
|
/** @deprecated Since 0.20.1; the same shape as `AgentChatComposerChip`. */
|
|
8
7
|
export type AssistantComposerChip = AgentChatComposerChip;
|
|
9
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/assistant/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAMrE,OAAO,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACzE,OAAO,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,KAAK,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAC/E,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC3F,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/assistant/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAMrE,OAAO,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACzE,OAAO,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,KAAK,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAC/E,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC3F,2EAA2E;AAC3E,MAAM,MAAM,qBAAqB,GAAG,qBAAqB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export type { ColumnType, FormatOptions } from '../lib/formatters';
|
|
2
2
|
export type { ActivityStripItem, ActivityStripProps, AgentChatAbortRequest, AgentChatAction, AgentChatActionBlock, AgentChatActiveStatus, AgentChatAgentProfile, AgentChatAgentRequest, AgentChatAppearance, AgentChatBlockRendererProps, AgentChatCollectionMap, AgentChatCompactionBlock, AgentChatComposerActions, AgentChatComposerChip, AgentChatComposerRendererProps, AgentChatComposerState, AgentChatContentBlock, AgentChatCustomBlock, AgentChatFeatureFlags, AgentChatFile, AgentChatFileBlock, AgentChatHeaderRendererProps, AgentChatHistoryPage, AgentChatHistoryRequest, AgentChatHistoryResult, AgentChatID, AgentChatInfoBlock, AgentChatLabels, AgentChatLoadEarlierRequest, AgentChatMarkdownProps, AgentChatMessage, AgentChatMessageRendererProps, AgentChatMessageRole, AgentChatMetadata, AgentChatOperationStatus, AgentChatPendingFile, AgentChatPhase, AgentChatProps, AgentChatRenameSessionRequest, AgentChatRenderers, AgentChatResizableWidthOptions, AgentChatRetryRequest, AgentChatSession, AgentChatSessionListRequest, AgentChatSessionListResult, AgentChatStreamEvent, AgentChatStreamHandlers, AgentChatSubmitInput, AgentChatSubmitResult, AgentChatSubscription, AgentChatTerminalStatus, AgentChatTextBlock, AgentChatThinkingBlock, AgentChatTokenUsage, AgentChatToolCall, AgentChatToolCallBlock, AgentChatToolCallLike, AgentChatToolRenderer, AgentChatTransport, AgentChatTurn, AgentChatTurnStatus, LumeraAgentChatTransportOptions, SessionActivity, } from './agent-chat';
|
|
3
|
-
export { ActivityStrip, AgentChat, AgentChatMarkdown, ArtifactCard, activityDurationSeconds, chatMarkdownComponents, clipLabel, createLumeraAgentChatTransport, DefaultContentBlock, defaultToolRenderers, encodeActivityLabels, findRenderer, getCollectionMap, humanizeCollectionName, isActivityBlock, isExploratoryToolCallError, isSessionActive, parseSessionActivity, summarizeActivityLabels, ToolCallCard, type ToolCallCardProps, ToolRenderersProvider, useToolRenderers, warmCollectionCache, } from './agent-chat';
|
|
4
|
-
export { AssistantChat, type AssistantChatProps, type AssistantComposerChip, AssistantPage, type AssistantPageProps, AssistantWidget, type AssistantWidgetProps, isMutatingToolCall,
|
|
3
|
+
export { ActivityStrip, AgentChat, AgentChatMarkdown, ArtifactCard, activityDurationSeconds, chatMarkdownComponents, clipLabel, createLumeraAgentChatTransport, DefaultContentBlock, defaultToolRenderers, encodeActivityLabels, findRenderer, getCollectionMap, humanizeCollectionName, isActivityBlock, isExploratoryToolCallError, isSessionActive, parseSessionActivity, SessionRail, type SessionRailProps, summarizeActivityLabels, ToolCallCard, type ToolCallCardProps, ToolRenderersProvider, useToolRenderers, warmCollectionCache, } from './agent-chat';
|
|
4
|
+
export { AssistantChat, type AssistantChatProps, type AssistantComposerChip, AssistantPage, type AssistantPageProps, AssistantWidget, type AssistantWidgetProps, isMutatingToolCall, useDataSyncTransport, withDataSync, } from './assistant';
|
|
5
5
|
export { AutomationRunList } from './automation/AutomationRunList';
|
|
6
6
|
export { AutomationRunner } from './automation/AutomationRunner';
|
|
7
7
|
export { type ColumnDef, DataTable, DataTableFilters, type DataTableFiltersProps, DataTablePagination, type DataTablePaginationProps, type DataTableProps, type FilterColumn, RecordSheet, type RecordSheetProps, } from './data-table';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAKA,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAClE,YAAY,EACV,iBAAiB,EACjB,kBAAkB,EAClB,qBAAqB,EACrB,eAAe,EACf,oBAAoB,EACpB,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,EACrB,mBAAmB,EACnB,2BAA2B,EAC3B,sBAAsB,EACtB,wBAAwB,EACxB,wBAAwB,EACxB,q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,EAClB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAKA,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAClE,YAAY,EACV,iBAAiB,EACjB,kBAAkB,EAClB,qBAAqB,EACrB,eAAe,EACf,oBAAoB,EACpB,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,EACrB,mBAAmB,EACnB,2BAA2B,EAC3B,sBAAsB,EACtB,wBAAwB,EACxB,wBAAwB,EACxB,qBAAqB,EACrB,8BAA8B,EAC9B,sBAAsB,EACtB,qBAAqB,EACrB,oBAAoB,EACpB,qBAAqB,EACrB,aAAa,EACb,kBAAkB,EAClB,4BAA4B,EAC5B,oBAAoB,EACpB,uBAAuB,EACvB,sBAAsB,EACtB,WAAW,EACX,kBAAkB,EAClB,eAAe,EACf,2BAA2B,EAC3B,sBAAsB,EACtB,gBAAgB,EAChB,6BAA6B,EAC7B,oBAAoB,EACpB,iBAAiB,EACjB,wBAAwB,EACxB,oBAAoB,EACpB,cAAc,EACd,cAAc,EACd,6BAA6B,EAC7B,kBAAkB,EAClB,8BAA8B,EAC9B,qBAAqB,EACrB,gBAAgB,EAChB,2BAA2B,EAC3B,0BAA0B,EAC1B,oBAAoB,EACpB,uBAAuB,EACvB,oBAAoB,EACpB,qBAAqB,EACrB,qBAAqB,EACrB,uBAAuB,EACvB,kBAAkB,EAClB,sBAAsB,EACtB,mBAAmB,EACnB,iBAAiB,EACjB,sBAAsB,EACtB,qBAAqB,EACrB,qBAAqB,EACrB,kBAAkB,EAClB,aAAa,EACb,mBAAmB,EACnB,+BAA+B,EAC/B,eAAe,GAChB,MAAM,cAAc,CAAC;AAMtB,OAAO,EACL,aAAa,EACb,SAAS,EACT,iBAAiB,EACjB,YAAY,EACZ,uBAAuB,EACvB,sBAAsB,EACtB,SAAS,EACT,8BAA8B,EAC9B,mBAAmB,EACnB,oBAAoB,EACpB,oBAAoB,EACpB,YAAY,EACZ,gBAAgB,EAChB,sBAAsB,EACtB,eAAe,EACf,0BAA0B,EAC1B,eAAe,EACf,oBAAoB,EACpB,WAAW,EACX,KAAK,gBAAgB,EACrB,uBAAuB,EACvB,YAAY,EACZ,KAAK,iBAAiB,EACtB,qBAAqB,EACrB,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,aAAa,EACb,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,aAAa,EACb,KAAK,kBAAkB,EACvB,eAAe,EACf,KAAK,oBAAoB,EACzB,kBAAkB,EAClB,oBAAoB,EACpB,YAAY,GACb,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEjE,OAAO,EACL,KAAK,SAAS,EACd,SAAS,EACT,gBAAgB,EAChB,KAAK,qBAAqB,EAC1B,mBAAmB,EACnB,KAAK,wBAAwB,EAC7B,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,WAAW,EACX,KAAK,gBAAgB,GACtB,MAAM,cAAc,CAAC"}
|
package/dist/components/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A, a, b, c, d, e, f, g, h, D, i, j, k, R, S, T, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, B, C, E, F, G } from "../RecordSheet-
|
|
1
|
+
import { A, a, b, c, d, e, f, g, h, D, i, j, k, R, S, T, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, B, C, E, F, G } from "../RecordSheet-DXoTTH7T.js";
|
|
2
2
|
export {
|
|
3
3
|
A as ActivityStrip,
|
|
4
4
|
a as AgentChat,
|
package/dist/{highlighted-body-OFNGDK62-CmQu6WAu.js → highlighted-body-OFNGDK62-95pvcwdb.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as R$1, L as Li, J as At } from "./RecordSheet-
|
|
1
|
+
import { I as R$1, L as Li, J as At } from "./RecordSheet-DXoTTH7T.js";
|
|
2
2
|
import { useContext, useState, useEffect } from "react";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
var R = ({ code: s, language: e, raw: t, className: h, startLine: d, lineNumbers: m, ...p }) => {
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A, a, b, c, d, e, f, g, h, D, i, j, k, R, S, T, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, B, C, E, F, G } from "./RecordSheet-
|
|
1
|
+
import { A, a, b, c, d, e, f, g, h, D, i, j, k, R, S, T, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, B, C, E, F, G } from "./RecordSheet-DXoTTH7T.js";
|
|
2
2
|
import { a as a2, u as u2, b as b2, c as c2 } from "./use-automation-run-BaW82zqJ.js";
|
|
3
3
|
import { u as u3, a as a3, b as b3, c as c3, d as d2, e as e2, f as f2, g as g2 } from "./use-sql-table-_aMNbZ6w.js";
|
|
4
4
|
import { B as B2, E as E2, a as a4, b as b4, c as c4, d as d3, e as e3, f as f3, g as g3, h as h2, i as i2, j as j2, k as k2, l as l2, m as m2, n as n2, o as o2, p as p2, q as q2, r as r2, s as s2, t as t2, u as u4, v as v2, w as w2, x as x2, y as y2, z as z2, A as A2, C as C2, D as D2, F as F2, G as G2, H, I, J, K, L, M, N, O, P, Q, R as R2, S as S2, T as T2, U, V, W, X, Y, Z, _, $, a0, a1 } from "./automations-DD15itWa.js";
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SessionRail.d.ts","sourceRoot":"","sources":["../../../src/components/assistant/SessionRail.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAGhE,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,gBAAgB,EAAE,CAAC;IAC7B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;IACnB,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CAC/C;AAED,iFAAiF;AACjF,wBAAgB,WAAW,CAAC,EAAE,QAAQ,EAAE,eAAe,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,gBAAgB,2CAiHhH"}
|