@pstdio/ui 0.7.1 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{MermaidComponent-D7Baqkwx.js → MermaidComponent-Cz_Iob5U.js} +56 -53
- package/dist/MermaidComponent-Cz_Iob5U.js.map +1 -0
- package/dist/chat-ui.js +117 -117
- package/dist/chat-ui.js.map +1 -1
- package/dist/components/breadcrumb.d.ts +2 -0
- package/dist/components/chat-ui/tool-rendering/build-timeline.d.ts +2 -2
- package/dist/components/chat-ui/tool-rendering/shared.d.ts +1 -1
- package/dist/components/{tickets/ticket-board.d.ts → data-renderer/data-renderer-board.d.ts} +15 -14
- package/dist/components/data-renderer/data-renderer-card.d.ts +15 -0
- package/dist/components/data-renderer/data-renderer-grouping.d.ts +23 -0
- package/dist/components/data-renderer/data-renderer-helpers.d.ts +66 -0
- package/dist/components/data-renderer/data-renderer-list.d.ts +28 -0
- package/dist/components/data-renderer/data-renderer-toolbar.d.ts +12 -0
- package/dist/components/data-renderer/data-renderer.d.ts +29 -0
- package/dist/components/data-renderer/display-menu.d.ts +16 -0
- package/dist/components/data-renderer/filter-menu.d.ts +12 -0
- package/dist/components/data-renderer/types.d.ts +98 -0
- package/dist/components/data-renderer/use-data-renderer-store.d.ts +56 -0
- package/dist/components/data-renderer/use-resolved-attributes.d.ts +14 -0
- package/dist/components/diff-viewer/diff-card-body.d.ts +10 -0
- package/dist/components/diff-viewer/diff-card-content.d.ts +1 -0
- package/dist/components/diff-viewer/diff-card.d.ts +1 -0
- package/dist/components/diff-viewer/diff-size.d.ts +2 -0
- package/dist/components/icon-color-picker.d.ts +13 -0
- package/dist/components/list-row/list-row-content.d.ts +9 -0
- package/dist/components/list-row/list-row.types.d.ts +1 -0
- package/dist/components/resource-context-menu.d.ts +1 -1
- package/dist/components/rich-text/shared/lexical-code.d.ts +2 -0
- package/dist/components/rich-text/shared/plugins/CodePlugin/CodeBlockPlugin.d.ts +1 -1
- package/dist/components/rich-text/shared/prism-global.d.ts +2 -0
- package/dist/components/status-option-editor/index.d.ts +2 -0
- package/dist/components/status-option-editor/status-option-editor.d.ts +2 -0
- package/dist/components/status-option-editor/status-option-editor.types.d.ts +39 -0
- package/dist/components/status-option-editor/status-option-row.d.ts +16 -0
- package/dist/components/tab-strip/tab-visibility-filter.d.ts +19 -0
- package/dist/components/tab-strip/tab-visibility.store.d.ts +41 -0
- package/dist/components/tree-list/tree-list-model.d.ts +58 -0
- package/dist/components/tree-list/tree-list-node-row.d.ts +20 -0
- package/dist/components/tree-list/tree-list-order-filter.d.ts +3 -0
- package/dist/components/tree-list/tree-list-order.store.d.ts +42 -0
- package/dist/components/tree-list/tree-list-reorder.d.ts +13 -0
- package/dist/components/tree-list/tree-list-section-header.d.ts +14 -0
- package/dist/components/tree-list/tree-list-sortable.d.ts +22 -0
- package/dist/components/tree-list/tree-list-visibility-filter.d.ts +17 -0
- package/dist/components/tree-list/tree-list-visibility.store.d.ts +45 -0
- package/dist/components/tree-list/tree-list.d.ts +7 -27
- package/dist/components/tree-list/tree-list.types.d.ts +2 -0
- package/dist/components/tree-list/use-tree-list-keyboard-navigation.d.ts +15 -0
- package/dist/get-file-type-icon-ufFb0IkR.js +102 -0
- package/dist/get-file-type-icon-ufFb0IkR.js.map +1 -0
- package/dist/index.d.ts +32 -12
- package/dist/index.js +6470 -5163
- package/dist/index.js.map +1 -1
- package/dist/{rich-message-33DPxuWJ.js → rich-message-CEOSsdR2.js} +428 -421
- package/dist/rich-message-CEOSsdR2.js.map +1 -0
- package/dist/rich-text.js +26 -26
- package/dist/rich-text.js.map +1 -1
- package/dist/theme/custom/index.d.ts +0 -3
- package/dist/theme/index.d.ts +1 -1
- package/dist/theme/recipes/menu.d.ts +1 -1
- package/dist/theme/recipes/tabs.d.ts +30 -0
- package/dist/theme/tokens/colors.d.ts +6 -0
- package/dist/{theme-D-aCJqTf.js → theme-qP4YOZ2R.js} +197 -148
- package/dist/theme-qP4YOZ2R.js.map +1 -0
- package/dist/theme.js +2 -4
- package/dist/utils/browser-storage.d.ts +7 -0
- package/dist/utils/prism.d.ts +1 -0
- package/package.json +8 -3
- package/dist/MermaidComponent-D7Baqkwx.js.map +0 -1
- package/dist/components/tickets/display-menu.d.ts +0 -15
- package/dist/components/tickets/filter-menu.d.ts +0 -11
- package/dist/components/tickets/tag-badge.d.ts +0 -10
- package/dist/components/tickets/tag-option-icon.d.ts +0 -2
- package/dist/components/tickets/ticket-card.d.ts +0 -30
- package/dist/components/tickets/ticket-grouping.d.ts +0 -22
- package/dist/components/tickets/ticket-list.d.ts +0 -31
- package/dist/components/tickets/tickets-workspace.d.ts +0 -38
- package/dist/components/tickets/types.d.ts +0 -64
- package/dist/components/tickets/use-workspace-store.d.ts +0 -51
- package/dist/components/tickets/workspace-helpers.d.ts +0 -18
- package/dist/get-file-type-icon-Bwqf1WXA.js +0 -101
- package/dist/get-file-type-icon-Bwqf1WXA.js.map +0 -1
- package/dist/rich-message-33DPxuWJ.js.map +0 -1
- package/dist/theme/custom/monokai.json.d.ts +0 -80
- package/dist/theme-D-aCJqTf.js.map +0 -1
package/dist/chat-ui.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsx as l, jsxs as w, Fragment as
|
|
1
|
+
import { jsx as l, jsxs as w, Fragment as Lt } from "react/jsx-runtime";
|
|
2
2
|
import { c as T } from "react/compiler-runtime";
|
|
3
|
-
import { chakra as Bn, AbsoluteCenter as Ln, IconButton as
|
|
4
|
-
import { ArrowDownIcon as Hn, ShieldX as Wn, ShieldCheck as Nn, Check as
|
|
3
|
+
import { chakra as Bn, AbsoluteCenter as Ln, IconButton as vt, defineSlotRecipe as vn, createSlotRecipeContext as $n, Text as q, Code as Qt, Button as Ke, HStack as Ee, Box as I, Flex as Ce, Stack as Z, Textarea as On, Tooltip as it, Portal as Dn, Kbd as Fn, Spacer as zn, Timeline as qn, Span as Ue, Avatar as qe, Card as le, Link as Zt, Spinner as $t, Skeleton as Qn } from "@chakra-ui/react";
|
|
4
|
+
import { ArrowDownIcon as Hn, ShieldX as Wn, ShieldCheck as Nn, Check as en, Square as Vn, ArrowUp as jn, Copy as Un, Move as Kn, FileDown as Gn, FileUp as Xn, FileDiff as Yn, Trash2 as Jn, FilePen as Zn, FileText as es, ListTree as ts, Terminal as tn, ListTodo as ns, CircleQuestionMark as ss, File as os, Globe as rs, Search as is, AlertTriangle as nn, DotIcon as ls, ChevronUpIcon as as, MessageCircleIcon as cs } from "lucide-react";
|
|
5
5
|
import { StickToBottom as us, useStickToBottomContext as ct } from "use-stick-to-bottom";
|
|
6
|
-
import { S as
|
|
6
|
+
import { S as ut, T as sn } from "./get-file-type-icon-ufFb0IkR.js";
|
|
7
7
|
import { useRef as Qe, useEffect as we, useState as G } from "react";
|
|
8
|
-
import { i as
|
|
8
|
+
import { i as At, P as ds, h as fs, R as on, j as ps } from "./rich-message-CEOSsdR2.js";
|
|
9
9
|
import "@lexical/react/LexicalCollaborationContext";
|
|
10
10
|
import "@lexical/react/LexicalCollaborationPlugin";
|
|
11
11
|
import "@lexical/react/LexicalComposer";
|
|
@@ -17,11 +17,11 @@ import "@lexical/react/LexicalRichTextPlugin";
|
|
|
17
17
|
import "@lexical/react/LexicalTabIndentationPlugin";
|
|
18
18
|
import "y-websocket";
|
|
19
19
|
import "yjs";
|
|
20
|
-
import "@lexical/code";
|
|
21
20
|
import "@lexical/react/LexicalComposerContext";
|
|
22
21
|
import "@lexical/utils";
|
|
23
22
|
import "lexical";
|
|
24
23
|
import "react-dom";
|
|
24
|
+
import "@lexical/code";
|
|
25
25
|
import "@lexical/link";
|
|
26
26
|
import "@lexical/list";
|
|
27
27
|
import "@lexical/rich-text";
|
|
@@ -33,7 +33,7 @@ import "@lexical/react/LexicalHistoryPlugin";
|
|
|
33
33
|
import "@lexical/react/LexicalOnChangePlugin";
|
|
34
34
|
import "@lexical/react/LexicalTreeView";
|
|
35
35
|
import "@lexical/react/LexicalClickableLinkPlugin";
|
|
36
|
-
import { C as rn, R as ms, a as hs, D as gs, b as ln, A as
|
|
36
|
+
import { C as rn, R as ms, a as hs, D as gs, b as ln, A as Ht, E as bs } from "./radio-DJtQY9po.js";
|
|
37
37
|
import { useVirtualizer as ys } from "@tanstack/react-virtual";
|
|
38
38
|
const xs = {
|
|
39
39
|
"aria-roledescription": "conversation",
|
|
@@ -70,7 +70,7 @@ const xs = {
|
|
|
70
70
|
role: "list"
|
|
71
71
|
}, e[3] = c, e[4] = u) : (c = e[3], u = e[4]);
|
|
72
72
|
let d;
|
|
73
|
-
return e[5] !== n || e[6] !== o || e[7] !== i || e[8] !== a ? (d = /* @__PURE__ */ l(
|
|
73
|
+
return e[5] !== n || e[6] !== o || e[7] !== i || e[8] !== a ? (d = /* @__PURE__ */ l(ut, { ...o, height: "full", width: "full", showHorizontalScrollbar: !1, viewportRef: i, contentRef: a, verticalScrollbarProps: c, contentProps: u, children: n }), e[5] = n, e[6] = o, e[7] = i, e[8] = a, e[9] = d) : d = e[9], d;
|
|
74
74
|
}, ws = {
|
|
75
75
|
axis: "horizontal",
|
|
76
76
|
bottom: "md",
|
|
@@ -81,8 +81,8 @@ const xs = {
|
|
|
81
81
|
scrollToBottom: o
|
|
82
82
|
} = ct();
|
|
83
83
|
let s;
|
|
84
|
-
return e[0] !== n || e[1] !== t || e[2] !== o ? (s = !n && /* @__PURE__ */ l(Ln, { ...ws, children: /* @__PURE__ */ l(
|
|
85
|
-
},
|
|
84
|
+
return e[0] !== n || e[1] !== t || e[2] !== o ? (s = !n && /* @__PURE__ */ l(Ln, { ...ws, children: /* @__PURE__ */ l(vt, { rounded: "full", onClick: () => o(), variant: "outline", size: "xs", ...t, children: /* @__PURE__ */ l(Hn, { size: 16 }) }) }), e[0] = n, e[1] = t, e[2] = o, e[3] = s) : s = e[3], s;
|
|
85
|
+
}, Rt = {
|
|
86
86
|
Root: Ss,
|
|
87
87
|
Viewport: Ts,
|
|
88
88
|
ScrollToBottom: ks
|
|
@@ -220,11 +220,11 @@ const xs = {
|
|
|
220
220
|
let c;
|
|
221
221
|
e[2] !== n ? (c = /* @__PURE__ */ w(q, { textStyle: "label/S/medium", color: "fg", children: [
|
|
222
222
|
"Allow ",
|
|
223
|
-
/* @__PURE__ */ l(
|
|
223
|
+
/* @__PURE__ */ l(Qt, { size: "sm", children: n }),
|
|
224
224
|
"?"
|
|
225
225
|
] }), e[2] = n, e[3] = c) : c = e[3];
|
|
226
226
|
let u;
|
|
227
|
-
e[4] !== a ? (u = a ? /* @__PURE__ */ l(
|
|
227
|
+
e[4] !== a ? (u = a ? /* @__PURE__ */ l(ut, { maxH: "6rem", children: /* @__PURE__ */ l(Qt, { size: "sm", whiteSpace: "pre-wrap", display: "block", width: "100%", children: a }) }) : null, e[4] = a, e[5] = u) : u = e[5];
|
|
228
228
|
let d;
|
|
229
229
|
e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ l(Wn, { size: 14 }), e[6] = d) : d = e[6];
|
|
230
230
|
let p;
|
|
@@ -385,7 +385,7 @@ function Fs(t, e) {
|
|
|
385
385
|
tabIndex: -1
|
|
386
386
|
}, size: "xs", children: /* @__PURE__ */ l(q, { textStyle: "label/XS/regular", color: "fg", children: t.label }) }) }, `${t.label}-${e}`);
|
|
387
387
|
}
|
|
388
|
-
const ae = (t, e) => t.id ?? `question-${e}`,
|
|
388
|
+
const ae = (t, e) => t.id ?? `question-${e}`, Pt = (t) => t ? JSON.stringify(t.questions.map((e, n) => ({
|
|
389
389
|
id: ae(e, n),
|
|
390
390
|
question: e.question,
|
|
391
391
|
multiple: !!e.multiple,
|
|
@@ -402,7 +402,7 @@ const ae = (t, e) => t.id ?? `question-${e}`, Et = (t) => t ? JSON.stringify(t.q
|
|
|
402
402
|
u.length !== 0 && o.push(`${r.question}: ${u.join(", ")}`);
|
|
403
403
|
}
|
|
404
404
|
return o;
|
|
405
|
-
}, qs = (t) => typeof t != "string",
|
|
405
|
+
}, qs = (t) => typeof t != "string", Ot = (t, e) => {
|
|
406
406
|
if (qs(e)) return e;
|
|
407
407
|
const n = e.trim();
|
|
408
408
|
if (n.length === 0) return {};
|
|
@@ -414,18 +414,18 @@ const ae = (t, e) => t.id ?? `question-${e}`, Et = (t) => t ? JSON.stringify(t.q
|
|
|
414
414
|
return o;
|
|
415
415
|
}, Qs = (t, e, n) => {
|
|
416
416
|
if (!t) return typeof n == "string" ? n.trim() : "";
|
|
417
|
-
const o =
|
|
417
|
+
const o = Ot(t, n), s = zs(t, e, o), r = typeof n == "string" ? n.trim() : "", i = t.questions.some((a) => a.allowCustomAnswer);
|
|
418
418
|
return r.length > 0 && !i && s.push(`Additional response: ${r}`), s.join(`
|
|
419
419
|
`);
|
|
420
420
|
}, Hs = (t, e, n) => {
|
|
421
|
-
const o =
|
|
421
|
+
const o = Ot(t, n);
|
|
422
422
|
return t.questions.map((s, r) => {
|
|
423
423
|
const i = ae(s, r), a = e[i] ?? [], c = o[i]?.trim();
|
|
424
424
|
return c ? [...a, c] : a;
|
|
425
425
|
});
|
|
426
426
|
}, Ws = (t, e, n) => {
|
|
427
427
|
if (!t) return !1;
|
|
428
|
-
const o =
|
|
428
|
+
const o = Ot(t, n);
|
|
429
429
|
for (let s = 0; s < t.questions.length; s += 1) {
|
|
430
430
|
const r = t.questions[s];
|
|
431
431
|
if (!r.required) continue;
|
|
@@ -460,7 +460,7 @@ const ae = (t, e) => t.id ?? `question-${e}`, Et = (t) => t ? JSON.stringify(t.q
|
|
|
460
460
|
let b;
|
|
461
461
|
e[5] !== c || e[6] !== s ? (b = () => c(s), e[5] = c, e[6] = s, e[7] = b) : b = e[7];
|
|
462
462
|
let y;
|
|
463
|
-
e[8] !== d || e[9] !== s ? (y = d ? /* @__PURE__ */ l(
|
|
463
|
+
e[8] !== d || e[9] !== s ? (y = d ? /* @__PURE__ */ l(en, { "aria-hidden": "true" }) : s + 1, e[8] = d, e[9] = s, e[10] = y) : y = e[10];
|
|
464
464
|
let x;
|
|
465
465
|
e[11] !== r || e[12] !== f || e[13] !== h || e[14] !== g || e[15] !== b || e[16] !== y || e[17] !== m ? (x = /* @__PURE__ */ l(Ke, { id: f, role: "tab", "aria-label": h, "aria-selected": r, "aria-controls": g, size: "xs", variant: m, minW: "8", onClick: b, children: y }), e[11] = r, e[12] = f, e[13] = h, e[14] = g, e[15] = b, e[16] = y, e[17] = m, e[18] = x) : x = e[18];
|
|
466
466
|
let _;
|
|
@@ -505,7 +505,7 @@ const ae = (t, e) => t.id ?? `question-${e}`, Et = (t) => t ? JSON.stringify(t.q
|
|
|
505
505
|
e[0] !== n ? (o = Ns(n), e[0] = n, e[1] = o) : o = e[1];
|
|
506
506
|
const s = o;
|
|
507
507
|
let r;
|
|
508
|
-
e[2] !== n ? (r =
|
|
508
|
+
e[2] !== n ? (r = Pt(n), e[2] = n, e[3] = r) : r = e[3];
|
|
509
509
|
const i = r;
|
|
510
510
|
let a;
|
|
511
511
|
return e[4] !== t || e[5] !== i || e[6] !== s ? (a = /* @__PURE__ */ l(Us, { ...t, questions: s }, i), e[4] = t, e[5] = i, e[6] = s, e[7] = a) : a = e[7], a;
|
|
@@ -523,11 +523,11 @@ const ae = (t, e) => t.id ?? `question-${e}`, Et = (t) => t ? JSON.stringify(t.q
|
|
|
523
523
|
e[5] !== n ? (a = n ? /* @__PURE__ */ l(Vn, { size: 16, strokeWidth: 2, fill: "currentColor" }) : /* @__PURE__ */ l(jn, { size: 16, strokeWidth: 2 }), e[5] = n, e[6] = a) : a = e[6];
|
|
524
524
|
const c = a;
|
|
525
525
|
let u;
|
|
526
|
-
e[7] !== i || e[8] !== c || e[9] !== o || e[10] !== r ? (u = /* @__PURE__ */ l(
|
|
526
|
+
e[7] !== i || e[8] !== c || e[9] !== o || e[10] !== r ? (u = /* @__PURE__ */ l(vt, { "data-testid": "send-message-button", size: "sm", variant: "solid", borderRadius: "full", colorPalette: "primary", "aria-label": i, title: r, ...o, children: c }), e[7] = i, e[8] = c, e[9] = o, e[10] = r, e[11] = u) : u = e[11];
|
|
527
527
|
const d = u;
|
|
528
528
|
if (r) {
|
|
529
529
|
let p;
|
|
530
|
-
e[12] !== s || e[13] !== r ? (p = s ? /* @__PURE__ */ w(
|
|
530
|
+
e[12] !== s || e[13] !== r ? (p = s ? /* @__PURE__ */ w(Lt, { children: [
|
|
531
531
|
r,
|
|
532
532
|
" ",
|
|
533
533
|
/* @__PURE__ */ l(Fn, { fontSize: "xs", children: s })
|
|
@@ -565,7 +565,7 @@ const ae = (t, e) => t.id ?? `question-${e}`, Et = (t) => t ? JSON.stringify(t.q
|
|
|
565
565
|
e[0] !== i ? (x = i === void 0 ? [] : i, e[0] = i, e[1] = x) : x = e[1];
|
|
566
566
|
const _ = x, C = c === void 0 ? !1 : c, k = f === void 0 ? !1 : f, R = g === void 0 ? !1 : g, [P, M] = G(!1), [B, Q] = G(n), [L, H] = G(0);
|
|
567
567
|
let ee;
|
|
568
|
-
e[2] !== n ? (ee = () =>
|
|
568
|
+
e[2] !== n ? (ee = () => At(n), e[2] = n, e[3] = ee) : ee = e[3];
|
|
569
569
|
const [_e, Ae] = G(ee);
|
|
570
570
|
let $;
|
|
571
571
|
e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = {}, e[4] = $) : $ = e[4];
|
|
@@ -574,7 +574,7 @@ const ae = (t, e) => t.id ?? `question-${e}`, Et = (t) => t ? JSON.stringify(t.q
|
|
|
574
574
|
e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (W = {}, e[5] = W) : W = e[5];
|
|
575
575
|
const [O, fe] = G(W), Re = Qe(null), We = Qe(u);
|
|
576
576
|
let Be;
|
|
577
|
-
e[6] !== h ? (Be =
|
|
577
|
+
e[6] !== h ? (Be = Pt(h), e[6] = h, e[7] = Be) : Be = e[7];
|
|
578
578
|
const Ye = Qe(Be);
|
|
579
579
|
let Le, ne;
|
|
580
580
|
e[8] !== u ? (Le = () => {
|
|
@@ -582,11 +582,11 @@ const ae = (t, e) => t.id ?? `question-${e}`, Et = (t) => t ? JSON.stringify(t.q
|
|
|
582
582
|
}, ne = [u], e[8] = u, e[9] = Le, e[10] = ne) : (Le = e[9], ne = e[10]), we(Le, ne);
|
|
583
583
|
let se, Ne;
|
|
584
584
|
e[11] !== n ? (se = () => {
|
|
585
|
-
const A =
|
|
585
|
+
const A = At(n);
|
|
586
586
|
Q(n), H(Js), Ae(A), te({}), fe({}), We.current?.(A);
|
|
587
587
|
}, Ne = [n], e[11] = n, e[12] = se, e[13] = Ne) : (se = e[12], Ne = e[13]), we(se, Ne);
|
|
588
588
|
let pe;
|
|
589
|
-
e[14] !== h ? (pe =
|
|
589
|
+
e[14] !== h ? (pe = Pt(h), e[14] = h, e[15] = pe) : pe = e[15];
|
|
590
590
|
const X = pe;
|
|
591
591
|
let me, he;
|
|
592
592
|
e[16] !== X ? (me = () => {
|
|
@@ -617,7 +617,7 @@ const ae = (t, e) => t.id ?? `question-${e}`, Et = (t) => t ? JSON.stringify(t.q
|
|
|
617
617
|
e[24] !== n ? (V = (A) => {
|
|
618
618
|
const Se = A === void 0 ? !1 : A;
|
|
619
619
|
Q(n), H(Zs);
|
|
620
|
-
const ie =
|
|
620
|
+
const ie = At(n);
|
|
621
621
|
Ae(ie), te({}), fe({}), We.current?.(ie), Se && requestAnimationFrame(() => {
|
|
622
622
|
Ie();
|
|
623
623
|
});
|
|
@@ -664,18 +664,18 @@ const ae = (t, e) => t.id ?? `question-${e}`, Et = (t) => t ? JSON.stringify(t.q
|
|
|
664
664
|
e[51] !== U || e[52] !== v ? (Je = () => {
|
|
665
665
|
v(U);
|
|
666
666
|
}, e[51] = U, e[52] = v, e[53] = Je) : Je = e[53];
|
|
667
|
-
const
|
|
667
|
+
const mt = Je;
|
|
668
668
|
let Ze;
|
|
669
669
|
e[54] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ze = (A, Se, ie) => {
|
|
670
670
|
const Ve = ae(A, Se);
|
|
671
671
|
te((je) => {
|
|
672
|
-
const
|
|
672
|
+
const _t = je[Ve] ?? [], qt = _t.includes(ie);
|
|
673
673
|
return A.multiple ? {
|
|
674
674
|
...je,
|
|
675
|
-
[Ve]:
|
|
675
|
+
[Ve]: qt ? _t.filter((Pn) => Pn !== ie) : [..._t, ie]
|
|
676
676
|
} : {
|
|
677
677
|
...je,
|
|
678
|
-
[Ve]:
|
|
678
|
+
[Ve]: qt ? [] : [ie]
|
|
679
679
|
};
|
|
680
680
|
});
|
|
681
681
|
}, e[54] = Ze) : Ze = e[54];
|
|
@@ -691,13 +691,13 @@ const ae = (t, e) => t.id ?? `question-${e}`, Et = (t) => t ? JSON.stringify(t.q
|
|
|
691
691
|
const En = et;
|
|
692
692
|
let tt;
|
|
693
693
|
e[56] !== d ? (tt = d ? /* @__PURE__ */ l(q, { textStyle: "label/M/regular", color: "fg.subtle", pointerEvents: "none", position: "absolute", top: "0", children: d }) : void 0, e[56] = d, e[57] = tt) : tt = e[57];
|
|
694
|
-
const
|
|
694
|
+
const ht = tt, gt = k ? "-1px" : void 0, bt = k ? "0" : void 0, yt = P ? "blue.border" : "border.muted", xt = P ? "mid" : "low", St = P ? 1 : 0, Tt = P ? "blue.border" : "border";
|
|
695
695
|
let $e;
|
|
696
|
-
e[58] !==
|
|
697
|
-
borderColor:
|
|
696
|
+
e[58] !== Tt ? ($e = {
|
|
697
|
+
borderColor: Tt,
|
|
698
698
|
boxShadow: "mid",
|
|
699
699
|
zIndex: 1
|
|
700
|
-
}, e[58] =
|
|
700
|
+
}, e[58] = Tt, e[59] = $e) : $e = e[59];
|
|
701
701
|
let nt;
|
|
702
702
|
e[60] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (nt = {
|
|
703
703
|
borderColor: "blue.border",
|
|
@@ -707,16 +707,16 @@ const ae = (t, e) => t.id ?? `question-${e}`, Et = (t) => t ? JSON.stringify(t.q
|
|
|
707
707
|
let st;
|
|
708
708
|
e[61] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (st = () => M(!1), e[61] = st) : st = e[61];
|
|
709
709
|
let Oe;
|
|
710
|
-
e[62] !== O || e[63] !== L || e[64] !== B || e[65] !== xe || e[66] !== C || e[67] !== u || e[68] !==
|
|
710
|
+
e[62] !== O || e[63] !== L || e[64] !== B || e[65] !== xe || e[66] !== C || e[67] !== u || e[68] !== ht || e[69] !== h || e[70] !== E ? (Oe = h ? /* @__PURE__ */ l(Ks, { questionPrompt: h, selectedOptionsByQuestion: E, customAnswersByQuestion: O, onToggleOption: Mn, onCustomAnswerChange: En }) : /* @__PURE__ */ l(ut, { maxH: "10rem", showHorizontalScrollbar: !1, contentProps: {
|
|
711
711
|
pr: "2xs"
|
|
712
|
-
}, children: /* @__PURE__ */ l(ds, { defaultState: B, isEditable: !C, placeholder:
|
|
712
|
+
}, children: /* @__PURE__ */ l(ds, { defaultState: B, isEditable: !C, placeholder: ht, onChange: (A) => {
|
|
713
713
|
Ae(A), u?.(A);
|
|
714
|
-
}, onSubmit: xe }, L) }), e[62] = O, e[63] = L, e[64] = B, e[65] = xe, e[66] = C, e[67] = u, e[68] =
|
|
714
|
+
}, onSubmit: xe }, L) }), e[62] = O, e[63] = L, e[64] = B, e[65] = xe, e[66] = C, e[67] = u, e[68] = ht, e[69] = h, e[70] = E, e[71] = Oe) : Oe = e[71];
|
|
715
715
|
let ot;
|
|
716
716
|
e[72] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ot = /* @__PURE__ */ l(zn, {}), e[72] = ot) : ot = e[72];
|
|
717
|
-
const
|
|
717
|
+
const wt = D ? "Stop Response" : "Message Sending", kt = y ? void 0 : "Enter", Ct = U === "none";
|
|
718
718
|
let De;
|
|
719
|
-
e[73] !== D || e[74] !==
|
|
719
|
+
e[73] !== D || e[74] !== mt || e[75] !== wt || e[76] !== kt || e[77] !== Ct ? (De = /* @__PURE__ */ l(Gs, { canInterrupt: D, title: wt, shortcut: kt, onClick: mt, disabled: Ct }), e[73] = D, e[74] = mt, e[75] = wt, e[76] = kt, e[77] = Ct, e[78] = De) : De = e[78];
|
|
720
720
|
let Fe;
|
|
721
721
|
e[79] !== m || e[80] !== De ? (Fe = /* @__PURE__ */ w(Ee, { gap: "1", mt: "md", children: [
|
|
722
722
|
m,
|
|
@@ -730,7 +730,7 @@ const ae = (t, e) => t.id ?? `question-${e}`, Et = (t) => t ? JSON.stringify(t.q
|
|
|
730
730
|
Fe
|
|
731
731
|
] }), e[82] = p, e[83] = Oe, e[84] = Fe, e[85] = ze) : ze = e[85];
|
|
732
732
|
let rt;
|
|
733
|
-
return e[86] !==
|
|
733
|
+
return e[86] !== gt || e[87] !== bt || e[88] !== yt || e[89] !== xt || e[90] !== St || e[91] !== $e || e[92] !== ze ? (rt = /* @__PURE__ */ l(I, { ref: Re, position: "relative", width: "100%", paddingX: "xs", paddingY: "md", mt: gt, bg: "bg", borderRadius: "md", borderTopRadius: bt, borderWidth: "1px", borderStyle: "solid", borderColor: yt, boxShadow: xt, zIndex: St, transition: "box-shadow 0.2s ease-in-out, border-color 0.2s ease-in-out", _hover: $e, _focusWithin: nt, onClick: be, onBlur: st, children: ze }), e[86] = gt, e[87] = bt, e[88] = yt, e[89] = xt, e[90] = St, e[91] = $e, e[92] = ze, e[93] = rt) : rt = e[93], rt;
|
|
734
734
|
};
|
|
735
735
|
function Ys() {
|
|
736
736
|
}
|
|
@@ -740,7 +740,7 @@ function Js(t) {
|
|
|
740
740
|
function Zs(t) {
|
|
741
741
|
return t + 1;
|
|
742
742
|
}
|
|
743
|
-
const eo = (t = "") => JSON.stringify(fs(t)), to = 360, no = 4, so = "min(10vh, 4rem)", dn = "min(70dvh, calc(100dvh - 12rem), 22rem)",
|
|
743
|
+
const eo = (t = "") => JSON.stringify(fs(t)), to = 360, no = 4, so = "min(10vh, 4rem)", dn = "min(70dvh, calc(100dvh - 12rem), 22rem)", It = 1, oo = (t) => t.parts.reduce((e, n) => n.type !== "text" ? e : {
|
|
744
744
|
lineCount: e.lineCount + n.text.split(/\r\n|\r|\n/).length,
|
|
745
745
|
textLength: e.textLength + n.text.length
|
|
746
746
|
}, {
|
|
@@ -755,14 +755,14 @@ const eo = (t = "") => JSON.stringify(fs(t)), to = 360, no = 4, so = "min(10vh,
|
|
|
755
755
|
return n > to || e > no;
|
|
756
756
|
}, io = (t, e) => {
|
|
757
757
|
const n = Math.max(0, t.scrollHeight - t.clientHeight);
|
|
758
|
-
return e === 0 || n <=
|
|
758
|
+
return e === 0 || n <= It ? !1 : e < 0 ? t.scrollTop > It : t.scrollTop < n - It;
|
|
759
759
|
}, lo = (t) => t.type === "text", ao = (t) => (t.parts ?? []).filter(lo).map((e) => e.text.trim()).filter(Boolean).join(`
|
|
760
760
|
|
|
761
761
|
`), co = (t, e, n) => t.createdAt ? new Intl.DateTimeFormat(e, {
|
|
762
762
|
hour: "numeric",
|
|
763
763
|
minute: "2-digit",
|
|
764
764
|
timeZone: n
|
|
765
|
-
}).format(new Date(t.createdAt)) : "",
|
|
765
|
+
}).format(new Date(t.createdAt)) : "", Bt = (t) => {
|
|
766
766
|
const e = T(20), {
|
|
767
767
|
message: n,
|
|
768
768
|
alwaysVisible: o,
|
|
@@ -794,13 +794,13 @@ const eo = (t = "") => JSON.stringify(fs(t)), to = 360, no = 4, so = "min(10vh,
|
|
|
794
794
|
let C;
|
|
795
795
|
e[8] !== f ? (C = f ? /* @__PURE__ */ l(q, { textStyle: "label/XS/regular", color: "fg.muted", children: f }) : null, e[8] = f, e[9] = C) : C = e[9];
|
|
796
796
|
let k;
|
|
797
|
-
e[10] !== i || e[11] !== y || e[12] !== p || e[13] !== a ? (k = p ? /* @__PURE__ */ l(I, { opacity: i ? "1" : "0", pointerEvents: i ? "auto" : "none", transition: "opacity 120ms ease", css:
|
|
797
|
+
e[10] !== i || e[11] !== y || e[12] !== p || e[13] !== a ? (k = p ? /* @__PURE__ */ l(I, { opacity: i ? "1" : "0", pointerEvents: i ? "auto" : "none", transition: "opacity 120ms ease", css: Wt, children: /* @__PURE__ */ l(sn, { content: a ? "Copied" : "Copy message", children: /* @__PURE__ */ l(vt, { "aria-label": a ? "Copied" : "Copy message", variant: "ghost", size: "2xs", onClick: y, children: a ? /* @__PURE__ */ l(en, { size: 12 }) : /* @__PURE__ */ l(Un, { size: 12 }) }) }) }) : null, e[10] = i, e[11] = y, e[12] = p, e[13] = a, e[14] = k) : k = e[14];
|
|
798
798
|
let R;
|
|
799
|
-
return e[15] !== k || e[16] !== x || e[17] !== _ || e[18] !== C ? (R = /* @__PURE__ */ w(Ee, { "data-chat-message-action-panel": "true", gap: "2xs", minH: "6", opacity: x, pointerEvents: _, transition: "opacity 120ms ease", css:
|
|
799
|
+
return e[15] !== k || e[16] !== x || e[17] !== _ || e[18] !== C ? (R = /* @__PURE__ */ w(Ee, { "data-chat-message-action-panel": "true", gap: "2xs", minH: "6", opacity: x, pointerEvents: _, transition: "opacity 120ms ease", css: Wt, children: [
|
|
800
800
|
C,
|
|
801
801
|
k
|
|
802
802
|
] }), e[15] = k, e[16] = x, e[17] = _, e[18] = C, e[19] = R) : R = e[19], R;
|
|
803
|
-
},
|
|
803
|
+
}, Wt = {
|
|
804
804
|
"[data-chat-message-with-actions]:hover &, [data-chat-message-with-actions]:focus-within &": {
|
|
805
805
|
opacity: 1,
|
|
806
806
|
pointerEvents: "auto"
|
|
@@ -824,11 +824,11 @@ const eo = (t = "") => JSON.stringify(fs(t)), to = 360, no = 4, so = "min(10vh,
|
|
|
824
824
|
e[3] !== n ? (s = /* @__PURE__ */ l(on, { defaultState: n, fullWidth: !0 }), e[3] = n, e[4] = s) : s = e[4];
|
|
825
825
|
let r;
|
|
826
826
|
return e[5] !== o || e[6] !== s ? (r = /* @__PURE__ */ l(I, { ...o, children: s }), e[5] = o, e[6] = s, e[7] = r) : r = e[7], r;
|
|
827
|
-
}, fo = uo,
|
|
828
|
-
const e =
|
|
827
|
+
}, fo = uo, dt = (t) => t.replace(/^tool-/i, "").replace(/([a-z0-9])([A-Z])/g, "$1_$2").replace(/[\s-]+/g, "_").toLowerCase(), po = (t) => {
|
|
828
|
+
const e = dt(t), n = e.replace(/_/g, "");
|
|
829
829
|
return [.../* @__PURE__ */ new Set([t, e, n])];
|
|
830
830
|
}, fn = {
|
|
831
|
-
shell:
|
|
831
|
+
shell: tn,
|
|
832
832
|
ls: ts,
|
|
833
833
|
read_file: es,
|
|
834
834
|
write_file: Zn,
|
|
@@ -839,17 +839,17 @@ const eo = (t = "") => JSON.stringify(fs(t)), to = 360, no = 4, so = "min(10vh,
|
|
|
839
839
|
move_file: Kn
|
|
840
840
|
}, mo = {
|
|
841
841
|
dot: ls,
|
|
842
|
-
danger:
|
|
842
|
+
danger: nn,
|
|
843
843
|
search: is,
|
|
844
844
|
browser: rs,
|
|
845
845
|
file: os,
|
|
846
846
|
question: ss,
|
|
847
847
|
todo: ns,
|
|
848
|
-
terminal:
|
|
848
|
+
terminal: tn,
|
|
849
849
|
...fn
|
|
850
|
-
},
|
|
851
|
-
if (!t) return
|
|
852
|
-
const e =
|
|
850
|
+
}, Nt = "dot", ho = (t) => Object.hasOwn(fn, t), go = (t) => mo[t], pn = (t) => {
|
|
851
|
+
if (!t) return Nt;
|
|
852
|
+
const e = dt(t);
|
|
853
853
|
if (ho(e)) return e;
|
|
854
854
|
const n = e.replace(/_/g, "");
|
|
855
855
|
switch (e) {
|
|
@@ -877,10 +877,10 @@ const eo = (t = "") => JSON.stringify(fs(t)), to = 360, no = 4, so = "min(10vh,
|
|
|
877
877
|
case "file":
|
|
878
878
|
return "file";
|
|
879
879
|
default:
|
|
880
|
-
return n === "todowrite" || n === "todo" ? "todo" :
|
|
880
|
+
return n === "todowrite" || n === "todo" ? "todo" : Nt;
|
|
881
881
|
}
|
|
882
882
|
};
|
|
883
|
-
function
|
|
883
|
+
function Dt(t) {
|
|
884
884
|
const e = t.lastIndexOf("/");
|
|
885
885
|
return e >= 0 ? t.slice(e + 1) : t;
|
|
886
886
|
}
|
|
@@ -891,7 +891,7 @@ function lt(t) {
|
|
|
891
891
|
let n = e;
|
|
892
892
|
return (n.startsWith("a/") || n.startsWith("b/")) && (n = n.slice(2)), n.replace(/^\/+/, "").replace(/\\/g, "/");
|
|
893
893
|
}
|
|
894
|
-
const
|
|
894
|
+
const ft = (t) => t.startsWith("--- "), Ft = (t) => t.startsWith("+++ "), zt = (t) => t.startsWith("@@"), bo = (t) => t.startsWith("+") && !(Ft(t) || t === "+++"), yo = (t) => t.startsWith("-") && !(ft(t) || t === "---"), xo = (t, e) => {
|
|
895
895
|
t.has(e) || t.set(e, {
|
|
896
896
|
additions: 0,
|
|
897
897
|
deletions: 0
|
|
@@ -903,13 +903,13 @@ const dt = (t) => t.startsWith("--- "), Dt = (t) => t.startsWith("+++ "), Ft = (
|
|
|
903
903
|
const n = t.get(e);
|
|
904
904
|
n && (n.deletions += 1);
|
|
905
905
|
}, wo = (t, e, n) => {
|
|
906
|
-
if (
|
|
906
|
+
if (ft(t))
|
|
907
907
|
return {
|
|
908
908
|
...e,
|
|
909
909
|
lastMinusHeader: lt(t.slice(4)),
|
|
910
910
|
inHunk: !1
|
|
911
911
|
};
|
|
912
|
-
if (
|
|
912
|
+
if (Ft(t)) {
|
|
913
913
|
const s = lt(t.slice(4)) ?? e.lastMinusHeader;
|
|
914
914
|
return s && xo(n, s), {
|
|
915
915
|
...e,
|
|
@@ -917,7 +917,7 @@ const dt = (t) => t.startsWith("--- "), Dt = (t) => t.startsWith("+++ "), Ft = (
|
|
|
917
917
|
inHunk: !1
|
|
918
918
|
};
|
|
919
919
|
}
|
|
920
|
-
return e.currentPath ?
|
|
920
|
+
return e.currentPath ? zt(t) ? {
|
|
921
921
|
...e,
|
|
922
922
|
inHunk: !0
|
|
923
923
|
} : e.inHunk ? bo(t) ? (So(n, e.currentPath), e) : (yo(t) && To(n, e.currentPath), e) : e : e;
|
|
@@ -945,7 +945,7 @@ function mn(t) {
|
|
|
945
945
|
function ko(t) {
|
|
946
946
|
return mn(t).map((e) => ({
|
|
947
947
|
kind: "diff",
|
|
948
|
-
fileName:
|
|
948
|
+
fileName: Dt(e.filePath),
|
|
949
949
|
filePath: e.filePath,
|
|
950
950
|
additions: e.additions,
|
|
951
951
|
deletions: e.deletions
|
|
@@ -954,7 +954,7 @@ function ko(t) {
|
|
|
954
954
|
function Co(t) {
|
|
955
955
|
return mn(t).map((e) => e.filePath);
|
|
956
956
|
}
|
|
957
|
-
const hn = (t) =>
|
|
957
|
+
const hn = (t) => ft(t) || t.startsWith("diff --git "), _o = (t) => t.startsWith(" ") || t.startsWith("+") || t.startsWith("-") ? !1 : t.trim() !== "", Ao = (t, e, n) => {
|
|
958
958
|
if (t.startsWith(" ")) {
|
|
959
959
|
const o = t.slice(1);
|
|
960
960
|
e.push(o), n.push(o);
|
|
@@ -969,14 +969,14 @@ const hn = (t) => dt(t) || t.startsWith("diff --git "), _o = (t) => t.startsWith
|
|
|
969
969
|
let s = e;
|
|
970
970
|
for (; s < t.length; ) {
|
|
971
971
|
const r = t[s] || "";
|
|
972
|
-
if (hn(r) ||
|
|
972
|
+
if (hn(r) || zt(r) || _o(r))
|
|
973
973
|
break;
|
|
974
974
|
Ao(r, n, o), s += 1;
|
|
975
975
|
}
|
|
976
976
|
return (n.length > 0 || o.length > 0) && (n.push(""), o.push("")), s;
|
|
977
977
|
}, Io = (t, e) => {
|
|
978
978
|
const n = lt((t[e] || "").slice(4)), o = t[e + 1] || "";
|
|
979
|
-
if (!
|
|
979
|
+
if (!Ft(o)) return {
|
|
980
980
|
nextIndex: e + 1
|
|
981
981
|
};
|
|
982
982
|
const r = lt(o.slice(4)) ?? n ?? "", i = [], a = [];
|
|
@@ -984,7 +984,7 @@ const hn = (t) => dt(t) || t.startsWith("diff --git "), _o = (t) => t.startsWith
|
|
|
984
984
|
for (; c < t.length; ) {
|
|
985
985
|
const u = t[c] || "";
|
|
986
986
|
if (hn(u)) break;
|
|
987
|
-
if (!
|
|
987
|
+
if (!zt(u)) {
|
|
988
988
|
c += 1;
|
|
989
989
|
continue;
|
|
990
990
|
}
|
|
@@ -1007,7 +1007,7 @@ function Mo(t) {
|
|
|
1007
1007
|
let o = 0;
|
|
1008
1008
|
for (; o < e.length; ) {
|
|
1009
1009
|
const s = e[o] || "";
|
|
1010
|
-
if (!
|
|
1010
|
+
if (!ft(s)) {
|
|
1011
1011
|
o += 1;
|
|
1012
1012
|
continue;
|
|
1013
1013
|
}
|
|
@@ -1028,7 +1028,7 @@ const Eo = {
|
|
|
1028
1028
|
read: "Read file",
|
|
1029
1029
|
skill: "Load skill",
|
|
1030
1030
|
todowrite: "Update todos"
|
|
1031
|
-
},
|
|
1031
|
+
}, Vt = {
|
|
1032
1032
|
pending: "queued",
|
|
1033
1033
|
error: "failed",
|
|
1034
1034
|
"output-error": "failed",
|
|
@@ -1044,7 +1044,7 @@ const Eo = {
|
|
|
1044
1044
|
const e = t.state?.status ?? t.status;
|
|
1045
1045
|
if (!e || typeof e != "string") return null;
|
|
1046
1046
|
const n = e.replace(/-/g, "_");
|
|
1047
|
-
return
|
|
1047
|
+
return Vt[n] ? Vt[n] : n.includes("stream") ? "running" : null;
|
|
1048
1048
|
}, bn = (t) => {
|
|
1049
1049
|
const e = t.state?.status ?? t.status;
|
|
1050
1050
|
return e === "error" || e === "output-error" || e === "failed";
|
|
@@ -1122,13 +1122,13 @@ const Eo = {
|
|
|
1122
1122
|
for (const o of t)
|
|
1123
1123
|
e.has(o.filePath) || (e.add(o.filePath), n.push({
|
|
1124
1124
|
kind: "diff",
|
|
1125
|
-
fileName:
|
|
1125
|
+
fileName: Dt(o.filePath),
|
|
1126
1126
|
filePath: o.filePath,
|
|
1127
1127
|
additions: o.additions,
|
|
1128
1128
|
deletions: o.deletions
|
|
1129
1129
|
}));
|
|
1130
1130
|
return n;
|
|
1131
|
-
}, Qo = (t) => Array.from(new Set(t.map((e) => e.filePath))),
|
|
1131
|
+
}, Qo = (t) => Array.from(new Set(t.map((e) => e.filePath))), pt = (t) => {
|
|
1132
1132
|
const e = Ge(t);
|
|
1133
1133
|
return S(t.state?.output) ?? S(e?.returnDisplay) ?? S(e?.preview) ?? S(e?.stdout) ?? S(e?.content);
|
|
1134
1134
|
}, Ho = (t) => {
|
|
@@ -1142,7 +1142,7 @@ const Eo = {
|
|
|
1142
1142
|
return S(e?.name) ?? S(e?.skillName) ?? S(e?.skill) ?? S(e?.skill_name) ?? void 0;
|
|
1143
1143
|
}, Sn = (t) => ({
|
|
1144
1144
|
kind: "link",
|
|
1145
|
-
text:
|
|
1145
|
+
text: Dt(t),
|
|
1146
1146
|
filePath: t
|
|
1147
1147
|
}), de = (t, e) => !bn(t) || !t.state?.errorText ? e : [{
|
|
1148
1148
|
type: "comment",
|
|
@@ -1267,7 +1267,7 @@ const Eo = {
|
|
|
1267
1267
|
blocks: de(t, [])
|
|
1268
1268
|
};
|
|
1269
1269
|
}, nr = (t) => {
|
|
1270
|
-
const e = Pe(t), n = Ge(t), o = S(e?.command) ?? void 0, s = ue(t, o, "Run command"), r = [], i =
|
|
1270
|
+
const e = Pe(t), n = Ge(t), o = S(e?.command) ?? void 0, s = ue(t, o, "Run command"), r = [], i = pt(t);
|
|
1271
1271
|
i && r.push({
|
|
1272
1272
|
type: "code",
|
|
1273
1273
|
language: "text",
|
|
@@ -1287,7 +1287,7 @@ const Eo = {
|
|
|
1287
1287
|
blocks: de(t, r)
|
|
1288
1288
|
};
|
|
1289
1289
|
}, sr = (t) => {
|
|
1290
|
-
const e = Pe(t), n =
|
|
1290
|
+
const e = Pe(t), n = pt(t), o = S(e?.pattern) ?? void 0, s = ue(t, o, "Search files"), r = n ? [{
|
|
1291
1291
|
type: "code",
|
|
1292
1292
|
language: "text",
|
|
1293
1293
|
code: n
|
|
@@ -1298,7 +1298,7 @@ const Eo = {
|
|
|
1298
1298
|
blocks: de(t, r)
|
|
1299
1299
|
};
|
|
1300
1300
|
}, or = (t) => {
|
|
1301
|
-
const e = Pe(t), n =
|
|
1301
|
+
const e = Pe(t), n = pt(t), o = S(e?.pattern) ?? void 0, s = ue(t, o, "Find files"), r = [];
|
|
1302
1302
|
if (n) {
|
|
1303
1303
|
const i = n.split(/\r?\n/).map((a) => a.trim()).filter((a) => a.length > 0);
|
|
1304
1304
|
i.length > 0 && r.push({
|
|
@@ -1312,7 +1312,7 @@ const Eo = {
|
|
|
1312
1312
|
blocks: de(t, r)
|
|
1313
1313
|
};
|
|
1314
1314
|
}, rr = (t) => {
|
|
1315
|
-
const e =
|
|
1315
|
+
const e = pt(t), n = e ? Ho(e) : null, o = Wo(t) ?? n?.skillName, s = ue(t, o, "Load skill"), r = n?.content ?? e, i = r ? [{
|
|
1316
1316
|
type: "code",
|
|
1317
1317
|
language: "markdown",
|
|
1318
1318
|
code: r
|
|
@@ -1322,17 +1322,17 @@ const Eo = {
|
|
|
1322
1322
|
title: s,
|
|
1323
1323
|
blocks: de(t, i)
|
|
1324
1324
|
};
|
|
1325
|
-
},
|
|
1325
|
+
}, Mt = (t) => typeof t == "string" && t.trim().length > 0 ? t : null, wn = (t) => !t || typeof t != "object" || Array.isArray(t) ? null : t, ir = (t) => {
|
|
1326
1326
|
const e = wn(t);
|
|
1327
1327
|
if (!e) return null;
|
|
1328
|
-
const n =
|
|
1328
|
+
const n = Mt(e.content) ?? Mt(e.title);
|
|
1329
1329
|
if (!n) return null;
|
|
1330
|
-
const o =
|
|
1330
|
+
const o = Mt(e.status);
|
|
1331
1331
|
return {
|
|
1332
1332
|
label: n,
|
|
1333
1333
|
checked: o === "completed"
|
|
1334
1334
|
};
|
|
1335
|
-
},
|
|
1335
|
+
}, jt = (t) => {
|
|
1336
1336
|
if (!t) return {
|
|
1337
1337
|
items: [],
|
|
1338
1338
|
explicit: !1
|
|
@@ -1356,7 +1356,7 @@ const Eo = {
|
|
|
1356
1356
|
prependErrorBlock: o
|
|
1357
1357
|
} = t;
|
|
1358
1358
|
return (s) => {
|
|
1359
|
-
const r =
|
|
1359
|
+
const r = jt(s.state?.input), i = jt(s.state?.output), a = i.explicit ? i : r;
|
|
1360
1360
|
if (!a.explicit) return null;
|
|
1361
1361
|
const c = a.items, u = `${c.length} item${c.length === 1 ? "" : "s"}`, d = e(s, u, "Update todos");
|
|
1362
1362
|
if (c.length === 0)
|
|
@@ -1382,11 +1382,11 @@ const Eo = {
|
|
|
1382
1382
|
buildBaseTitle: ue,
|
|
1383
1383
|
buildIndicator: ce,
|
|
1384
1384
|
prependErrorBlock: de
|
|
1385
|
-
}),
|
|
1385
|
+
}), Ut = lr({
|
|
1386
1386
|
buildBaseTitle: ue,
|
|
1387
1387
|
buildIndicator: ce,
|
|
1388
1388
|
prependErrorBlock: de
|
|
1389
|
-
}),
|
|
1389
|
+
}), Kt = () => ({
|
|
1390
1390
|
apply_patch: jo,
|
|
1391
1391
|
bash: nr,
|
|
1392
1392
|
edit: Ko,
|
|
@@ -1395,16 +1395,16 @@ const Eo = {
|
|
|
1395
1395
|
question: ar,
|
|
1396
1396
|
read: tr,
|
|
1397
1397
|
skill: rr,
|
|
1398
|
-
todo_write:
|
|
1399
|
-
todowrite:
|
|
1400
|
-
}),
|
|
1398
|
+
todo_write: Ut,
|
|
1399
|
+
todowrite: Ut
|
|
1400
|
+
}), Gt = {
|
|
1401
1401
|
pending: "queued",
|
|
1402
1402
|
error: "failed",
|
|
1403
1403
|
"output-error": "failed",
|
|
1404
1404
|
"input-streaming": "running",
|
|
1405
1405
|
"input-available": "queued"
|
|
1406
1406
|
}, cr = (t) => t.split(" ").filter((e) => e.length > 0).map((e) => e[0].toUpperCase() + e.slice(1)).join(" "), ur = (t) => {
|
|
1407
|
-
const e =
|
|
1407
|
+
const e = dt(t ?? "tool").replace(/_/g, " ");
|
|
1408
1408
|
return cr(e);
|
|
1409
1409
|
}, kn = (t) => t === "error" || t === "output-error", dr = (t) => kn(t.state?.status) ? {
|
|
1410
1410
|
type: "icon",
|
|
@@ -1412,7 +1412,7 @@ const Eo = {
|
|
|
1412
1412
|
} : {
|
|
1413
1413
|
type: "icon",
|
|
1414
1414
|
icon: pn(t.tool ?? "tool")
|
|
1415
|
-
}, fr = (t) => !t || typeof t != "string" ? null :
|
|
1415
|
+
}, fr = (t) => !t || typeof t != "string" ? null : Gt[t] ? Gt[t] : t.includes("stream") ? "running" : null, Xt = (t) => {
|
|
1416
1416
|
if (typeof t == "string") return t;
|
|
1417
1417
|
if (t == null) return null;
|
|
1418
1418
|
try {
|
|
@@ -1426,13 +1426,13 @@ const Eo = {
|
|
|
1426
1426
|
type: "comment",
|
|
1427
1427
|
text: t.state.errorText
|
|
1428
1428
|
});
|
|
1429
|
-
const n =
|
|
1429
|
+
const n = Xt(t.state?.input);
|
|
1430
1430
|
n && e.push({
|
|
1431
1431
|
type: "code",
|
|
1432
1432
|
language: "json",
|
|
1433
1433
|
code: n
|
|
1434
1434
|
});
|
|
1435
|
-
const o =
|
|
1435
|
+
const o = Xt(t.state?.output);
|
|
1436
1436
|
return o && e.push({
|
|
1437
1437
|
type: "code",
|
|
1438
1438
|
language: "json",
|
|
@@ -1454,9 +1454,9 @@ const Eo = {
|
|
|
1454
1454
|
blocks: pr(t)
|
|
1455
1455
|
};
|
|
1456
1456
|
}, hr = (t) => t ? {
|
|
1457
|
-
...
|
|
1457
|
+
...Kt(),
|
|
1458
1458
|
...t
|
|
1459
|
-
} :
|
|
1459
|
+
} : Kt(), gr = (t, e) => {
|
|
1460
1460
|
const n = t.tool ?? "tool";
|
|
1461
1461
|
for (const o of po(n)) {
|
|
1462
1462
|
const s = e[o];
|
|
@@ -1518,7 +1518,7 @@ function Tr(t) {
|
|
|
1518
1518
|
color: d
|
|
1519
1519
|
}, e[3] = d, e[4] = p) : p = e[4];
|
|
1520
1520
|
let m;
|
|
1521
|
-
return e[5] !== s || e[6] !== n.text || e[7] !== i || e[8] !== a || e[9] !== c || e[10] !== u || e[11] !== p ? (m = /* @__PURE__ */ l(
|
|
1521
|
+
return e[5] !== s || e[6] !== n.text || e[7] !== i || e[8] !== a || e[9] !== c || e[10] !== u || e[11] !== p ? (m = /* @__PURE__ */ l(Zt, { href: i, fontWeight: s, color: a, textDecoration: "none", cursor: c, onClick: u, _hover: p, children: n.text }), e[5] = s, e[6] = n.text, e[7] = i, e[8] = a, e[9] = c, e[10] = u, e[11] = p, e[12] = m) : m = e[12], m;
|
|
1522
1522
|
}
|
|
1523
1523
|
function wr(t) {
|
|
1524
1524
|
const e = T(12), {
|
|
@@ -1534,7 +1534,7 @@ function wr(t) {
|
|
|
1534
1534
|
textDecoration: "underline"
|
|
1535
1535
|
}, e[3] = c, e[4] = u) : u = e[4];
|
|
1536
1536
|
let d;
|
|
1537
|
-
return e[5] !== s || e[6] !== n.text || e[7] !== r || e[8] !== i || e[9] !== a || e[10] !== u ? (d = /* @__PURE__ */ l(
|
|
1537
|
+
return e[5] !== s || e[6] !== n.text || e[7] !== r || e[8] !== i || e[9] !== a || e[10] !== u ? (d = /* @__PURE__ */ l(Zt, { href: r, fontWeight: s, color: i, textDecoration: "underline", onClick: a, _hover: u, children: n.text }), e[5] = s, e[6] = n.text, e[7] = r, e[8] = i, e[9] = a, e[10] = u, e[11] = d) : d = e[11], d;
|
|
1538
1538
|
}
|
|
1539
1539
|
function kr(t) {
|
|
1540
1540
|
const e = T(6), {
|
|
@@ -1606,7 +1606,7 @@ function Ar(t) {
|
|
|
1606
1606
|
let r;
|
|
1607
1607
|
e[0] !== n ? (r = /* @__PURE__ */ l(I, { as: "code", children: n }), e[0] = n, e[1] = r) : r = e[1];
|
|
1608
1608
|
let i;
|
|
1609
|
-
return e[2] !== s || e[3] !== r ? (i = /* @__PURE__ */ l(
|
|
1609
|
+
return e[2] !== s || e[3] !== r ? (i = /* @__PURE__ */ l(ut, { background: "bg.code", color: "fg", borderRadius: "md", showHorizontalScrollbar: !0, showVerticalScrollbar: !1, children: /* @__PURE__ */ l(I, { as: "pre", padding: "sm", fontFamily: "mono", fontSize: "xs", lineHeight: "shorter", whiteSpace: "pre", "aria-label": s, children: r }) }), e[2] = s, e[3] = r, e[4] = i) : i = e[4], i;
|
|
1610
1610
|
}
|
|
1611
1611
|
function Rr(t) {
|
|
1612
1612
|
const e = T(30), {
|
|
@@ -1661,7 +1661,7 @@ function Rr(t) {
|
|
|
1661
1661
|
onOpenFile: o
|
|
1662
1662
|
}), e[25] = n, e[26] = o, e[27] = s) : s = e[27];
|
|
1663
1663
|
let r;
|
|
1664
|
-
return e[28] !== s ? (r = /* @__PURE__ */ l(
|
|
1664
|
+
return e[28] !== s ? (r = /* @__PURE__ */ l(Lt, { children: s }), e[28] = s, e[29] = r) : r = e[29], r;
|
|
1665
1665
|
}
|
|
1666
1666
|
}
|
|
1667
1667
|
}
|
|
@@ -1737,7 +1737,7 @@ function Er(t) {
|
|
|
1737
1737
|
function Pr(t, e) {
|
|
1738
1738
|
return t.id ? `id:${t.id}` : `idx:${e}`;
|
|
1739
1739
|
}
|
|
1740
|
-
const Br = (t) =>
|
|
1740
|
+
const Br = (t) => dt(t.tool ?? "").replace(/_/g, "") === "question", Lr = (t) => {
|
|
1741
1741
|
const e = t.state?.output;
|
|
1742
1742
|
return typeof e == "string" ? e.trim().length > 0 : Array.isArray(e) ? e.length > 0 : e && typeof e == "object" ? Object.keys(e).length > 0 : e != null;
|
|
1743
1743
|
};
|
|
@@ -1773,7 +1773,7 @@ function vr(t) {
|
|
|
1773
1773
|
function $r(t) {
|
|
1774
1774
|
return !Br(t) || Lr(t);
|
|
1775
1775
|
}
|
|
1776
|
-
const Or = (t) => t.type === "tool",
|
|
1776
|
+
const Or = (t) => t.type === "tool", Et = (t) => t >= 1e3 ? `${(t / 1e3).toFixed(1)}k` : String(t), Dr = (t) => {
|
|
1777
1777
|
if (t.message && t.message.trim().length > 0)
|
|
1778
1778
|
return t.message;
|
|
1779
1779
|
const {
|
|
@@ -1847,29 +1847,29 @@ function _n(t) {
|
|
|
1847
1847
|
break e;
|
|
1848
1848
|
}
|
|
1849
1849
|
case "error": {
|
|
1850
|
-
p.push(/* @__PURE__ */ l(I, { py: "2", width: "full", children: /* @__PURE__ */ l(
|
|
1850
|
+
p.push(/* @__PURE__ */ l(I, { py: "2", width: "full", children: /* @__PURE__ */ l(Ht, { borderRadius: "xs", status: "error", colorPalette: "red", title: Dr(f), size: "sm" }) }, h));
|
|
1851
1851
|
break e;
|
|
1852
1852
|
}
|
|
1853
1853
|
case "token_usage": {
|
|
1854
1854
|
p.push(/* @__PURE__ */ l(I, { children: /* @__PURE__ */ w(q, { fontSize: "xs", color: "fg.subtle", children: [
|
|
1855
1855
|
"Tokens: ",
|
|
1856
|
-
|
|
1856
|
+
Et(f.inputTokens),
|
|
1857
1857
|
" in / ",
|
|
1858
|
-
|
|
1858
|
+
Et(f.outputTokens),
|
|
1859
1859
|
" out",
|
|
1860
|
-
f.cacheReadTokens ? ` / ${
|
|
1860
|
+
f.cacheReadTokens ? ` / ${Et(f.cacheReadTokens)} cache read` : ""
|
|
1861
1861
|
] }) }, h));
|
|
1862
1862
|
break e;
|
|
1863
1863
|
}
|
|
1864
1864
|
case "alert": {
|
|
1865
|
-
p.push(/* @__PURE__ */ l(I, { width: "full", children: /* @__PURE__ */ l(
|
|
1865
|
+
p.push(/* @__PURE__ */ l(I, { width: "full", children: /* @__PURE__ */ l(Ht, { borderRadius: "xs", status: f.status === "loading" ? "info" : f.status, colorPalette: Fr[f.status], title: f.title, icon: f.status === "loading" ? /* @__PURE__ */ l($t, { size: "sm" }) : void 0, size: "sm", children: f.message }) }, h));
|
|
1866
1866
|
break e;
|
|
1867
1867
|
}
|
|
1868
1868
|
default:
|
|
1869
1869
|
p.push(null);
|
|
1870
1870
|
}
|
|
1871
1871
|
}
|
|
1872
|
-
d = /* @__PURE__ */ l(
|
|
1872
|
+
d = /* @__PURE__ */ l(Lt, { children: p }), e[2] = a, e[3] = i, e[4] = n.id, e[5] = s, e[6] = u, e[7] = d;
|
|
1873
1873
|
} else
|
|
1874
1874
|
d = e[7];
|
|
1875
1875
|
return d;
|
|
@@ -1902,7 +1902,7 @@ const qr = (t) => t === "user" || t === "assistant" || t === "developer" ? t : "
|
|
|
1902
1902
|
groups: e,
|
|
1903
1903
|
leadingResponses: n
|
|
1904
1904
|
};
|
|
1905
|
-
}, An = 720, Nr = 1, Vr = 3, jr = 20,
|
|
1905
|
+
}, An = 720, Nr = 1, Vr = 3, jr = 20, Yt = 1, Ur = 4, Rn = 8, Kr = (t, e) => [...t.map((n) => ({
|
|
1906
1906
|
type: "leading-response",
|
|
1907
1907
|
key: n.id,
|
|
1908
1908
|
message: n
|
|
@@ -1915,7 +1915,7 @@ const qr = (t) => t === "user" || t === "assistant" || t === "developer" ? t : "
|
|
|
1915
1915
|
if (t === 0) return 0;
|
|
1916
1916
|
const n = t * An + (t - 1) * Rn;
|
|
1917
1917
|
return Math.max(n - e, 0);
|
|
1918
|
-
}, Xr = (t) => t?.clientHeight || Nr, Yr = (t, e) => Math.abs(t.scrollTop - e.scrollTop) <=
|
|
1918
|
+
}, Xr = (t) => t?.clientHeight || Nr, Yr = (t, e) => Math.abs(t.scrollTop - e.scrollTop) <= Yt && Math.abs(t.totalSize - e.totalSize) <= Yt, Jr = (t, e) => ({
|
|
1919
1919
|
scrollTop: t?.scrollTop ?? 0,
|
|
1920
1920
|
totalSize: e
|
|
1921
1921
|
}), Zr = (t) => {
|
|
@@ -1964,7 +1964,7 @@ const qr = (t) => t === "user" || t === "assistant" || t === "developer" ? t : "
|
|
|
1964
1964
|
const o = qr(t.role);
|
|
1965
1965
|
return /* @__PURE__ */ l(ke.Root, { from: o, children: /* @__PURE__ */ w(ke.Content, { from: o, children: [
|
|
1966
1966
|
/* @__PURE__ */ l(_n, { message: t, streaming: e, hideQuestionForms: n }),
|
|
1967
|
-
o === "assistant" || o === "user" ? /* @__PURE__ */ l(
|
|
1967
|
+
o === "assistant" || o === "user" ? /* @__PURE__ */ l(Bt, { message: t, alwaysVisible: o === "user", copyAlwaysVisible: o !== "user" }) : null
|
|
1968
1968
|
] }) });
|
|
1969
1969
|
}, ti = (t) => {
|
|
1970
1970
|
io(t.currentTarget, t.deltaY) && t.stopPropagation();
|
|
@@ -1996,7 +1996,7 @@ const qr = (t) => t === "user" || t === "assistant" || t === "developer" ? t : "
|
|
|
1996
1996
|
let P;
|
|
1997
1997
|
e[13] !== k || e[14] !== R || e[15] !== g || e[16] !== b || e[17] !== y || e[18] !== x || e[19] !== _ || e[20] !== C ? (P = /* @__PURE__ */ l(I, { "data-sticky-user-message-content": g, display: "flex", flexDirection: "column", gap: "sm", maxH: b, minH: "0", overflowY: y, px: x, py: _, pb: C, onWheel: k, children: R }), e[13] = k, e[14] = R, e[15] = g, e[16] = b, e[17] = y, e[18] = x, e[19] = _, e[20] = C, e[21] = P) : P = e[21];
|
|
1998
1998
|
let M;
|
|
1999
|
-
e[22] !== n.userMessage || e[23] !== a || e[24] !== r || e[25] !== m ? (M = a ? /* @__PURE__ */ l(ei, { label: r ? "Show less" : "Show more", onClick: m, actionPanel: /* @__PURE__ */ l(
|
|
1999
|
+
e[22] !== n.userMessage || e[23] !== a || e[24] !== r || e[25] !== m ? (M = a ? /* @__PURE__ */ l(ei, { label: r ? "Show less" : "Show more", onClick: m, actionPanel: /* @__PURE__ */ l(Bt, { message: n.userMessage, alwaysVisible: !0, copyAlwaysVisible: !1 }) }) : /* @__PURE__ */ l(Bt, { message: n.userMessage, alwaysVisible: !0, copyAlwaysVisible: !1 }), e[22] = n.userMessage, e[23] = a, e[24] = r, e[25] = m, e[26] = M) : M = e[26];
|
|
2000
2000
|
let B;
|
|
2001
2001
|
e[27] !== d || e[28] !== P || e[29] !== M || e[30] !== f || e[31] !== h ? (B = /* @__PURE__ */ l(I, { position: "sticky", top: "0", zIndex: 1, children: /* @__PURE__ */ l(ke.Root, { from: "user", children: /* @__PURE__ */ w(ke.Content, { from: "user", maxH: d, overflow: "hidden", p: f, position: h, children: [
|
|
2002
2002
|
P,
|
|
@@ -2123,18 +2123,18 @@ const qr = (t) => t === "user" || t === "assistant" || t === "developer" ? t : "
|
|
|
2123
2123
|
let be;
|
|
2124
2124
|
e[13] !== pe || e[14] !== Re || e[15] !== O || e[16] !== $ || e[17] !== me || e[18] !== fe || e[19] !== E || e[20] !== L ? (be = $ ? /* @__PURE__ */ l(ii, { leadingResponses: fe, groups: O, streaming: L, hideActiveQuestionForms: me, expandedStickyMessageIds: Re, onToggleStickyMessage: ve, onReady: () => Ye(E) }, E) : pe, e[13] = pe, e[14] = Re, e[15] = O, e[16] = $, e[17] = me, e[18] = fe, e[19] = E, e[20] = L, e[21] = be) : be = e[21];
|
|
2125
2125
|
let V;
|
|
2126
|
-
e[22] !== ge || e[23] !== be ? (V = /* @__PURE__ */ l(
|
|
2126
|
+
e[22] !== ge || e[23] !== be ? (V = /* @__PURE__ */ l(Rt.Viewport, { visibility: ge, children: be }), e[22] = ge, e[23] = be, e[24] = V) : V = e[24];
|
|
2127
2127
|
let Y;
|
|
2128
|
-
e[25] !== oe ? (Y = oe ? /* @__PURE__ */ l(
|
|
2128
|
+
e[25] !== oe ? (Y = oe ? /* @__PURE__ */ l(Rt.ScrollToBottom, { "aria-label": "Scroll to latest message" }) : null, e[25] = oe, e[26] = Y) : Y = e[26];
|
|
2129
2129
|
let D;
|
|
2130
|
-
e[27] !== N || e[28] !== V || e[29] !== Y ? (D = /* @__PURE__ */ w(
|
|
2130
|
+
e[27] !== N || e[28] !== V || e[29] !== Y ? (D = /* @__PURE__ */ w(Rt.Root, { children: [
|
|
2131
2131
|
N,
|
|
2132
2132
|
V,
|
|
2133
2133
|
Y
|
|
2134
2134
|
] }), e[27] = N, e[28] = V, e[29] = Y, e[30] = D) : D = e[30];
|
|
2135
2135
|
let F;
|
|
2136
2136
|
e[31] !== he ? (F = he ? /* @__PURE__ */ w(Ee, { gap: "xs", px: "sm", py: "2xs", children: [
|
|
2137
|
-
/* @__PURE__ */ l(
|
|
2137
|
+
/* @__PURE__ */ l($t, { size: "xs", color: "fg.muted" }),
|
|
2138
2138
|
/* @__PURE__ */ l(q, { textStyle: "label/XS/regular", color: "fg.muted", children: "Working..." })
|
|
2139
2139
|
] }) : null, e[31] = he, e[32] = F) : F = e[32];
|
|
2140
2140
|
const z = X ? "0" : "xs";
|
|
@@ -2164,14 +2164,14 @@ function li(t, e) {
|
|
|
2164
2164
|
function ai() {
|
|
2165
2165
|
return /* @__PURE__ */ new Set();
|
|
2166
2166
|
}
|
|
2167
|
-
const
|
|
2167
|
+
const Jt = (t) => /* @__PURE__ */ l(Z, { gap: "xs", w: "full", children: t.map((e, n) => /* @__PURE__ */ l(Qn, { height: "3", width: e, borderRadius: "xs" }, `${e}-${n}`)) }), Ki = () => {
|
|
2168
2168
|
const t = T(2);
|
|
2169
2169
|
let e;
|
|
2170
|
-
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ l(ke.Root, { from: "user", children: /* @__PURE__ */ l(ke.Content, { from: "user", children:
|
|
2170
|
+
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ l(ke.Root, { from: "user", children: /* @__PURE__ */ l(ke.Content, { from: "user", children: Jt(["72%", "46%"]) }) }), t[0] = e) : e = t[0];
|
|
2171
2171
|
let n;
|
|
2172
2172
|
return t[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ w(Z, { minH: "full", py: "xs", gap: "0", children: [
|
|
2173
2173
|
e,
|
|
2174
|
-
/* @__PURE__ */ l(ke.Root, { from: "assistant", children: /* @__PURE__ */ l(ke.Content, { from: "assistant", children:
|
|
2174
|
+
/* @__PURE__ */ l(ke.Root, { from: "assistant", children: /* @__PURE__ */ l(ke.Content, { from: "assistant", children: Jt(["76%", "62%", "40%"]) }) })
|
|
2175
2175
|
] }), t[1] = n) : n = t[1], n;
|
|
2176
2176
|
}, Gi = (t) => {
|
|
2177
2177
|
const e = T(14), {
|
|
@@ -2184,10 +2184,10 @@ const Yt = (t) => /* @__PURE__ */ l(Z, { gap: "xs", w: "full", children: t.map((
|
|
|
2184
2184
|
} = t, c = i === void 0 ? "ready" : i, u = o > 0 || s > 0, d = c === "error" ? "border.error" : "border.muted", p = c === "error" ? "bg.error" : "bg.subtle";
|
|
2185
2185
|
let m;
|
|
2186
2186
|
e[0] !== o || e[1] !== n || e[2] !== s || e[3] !== u || e[4] !== c || e[5] !== a ? (m = c === "loading" ? /* @__PURE__ */ w(Ee, { gap: "xs", minW: "0", children: [
|
|
2187
|
-
/* @__PURE__ */ l(
|
|
2187
|
+
/* @__PURE__ */ l($t, { size: "xs", color: "fg.muted" }),
|
|
2188
2188
|
/* @__PURE__ */ l(q, { textStyle: "label/S/regular", color: "fg.muted", truncate: !0, children: a ?? "Setting up workspace..." })
|
|
2189
2189
|
] }) : c === "error" ? /* @__PURE__ */ w(Ee, { gap: "xs", minW: "0", children: [
|
|
2190
|
-
/* @__PURE__ */ l(
|
|
2190
|
+
/* @__PURE__ */ l(nn, { size: 14, color: "var(--chakra-colors-fg-error)" }),
|
|
2191
2191
|
/* @__PURE__ */ l(q, { textStyle: "label/S/regular", color: "fg.error", truncate: !0, children: a ?? "Workspace setup failed" })
|
|
2192
2192
|
] }) : u ? /* @__PURE__ */ l(ln, { label: n, additions: o, deletions: s, variant: "ghost", size: "small", _hover: {
|
|
2193
2193
|
background: "transparent"
|
|
@@ -2206,7 +2206,7 @@ export {
|
|
|
2206
2206
|
Xs as ChatInput,
|
|
2207
2207
|
ke as ChatMessage,
|
|
2208
2208
|
Ui as ChatPanel,
|
|
2209
|
-
|
|
2209
|
+
Rt as ChatPrimitives,
|
|
2210
2210
|
Ki as ChatSkeleton,
|
|
2211
2211
|
Gi as ChatWorkspaceHub,
|
|
2212
2212
|
Gs as SendButton,
|