@marimo-team/islands 0.23.7-dev20 → 0.23.7-dev22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chat-ui-Cf4tuQ8s.js → chat-ui-Den2QMz-.js} +609 -223
- package/dist/{code-visibility-VP08CFE1.js → code-visibility-geywCqhR.js} +130 -153
- package/dist/{html-to-image-q0T1ijn_.js → html-to-image-DxWM1HVj.js} +2125 -2101
- package/dist/main.js +29 -29
- package/dist/{process-output-DTKS9bKk.js → process-output-DBYxXdrN.js} +1 -1
- package/dist/{reveal-component-ErqOa0Wd.js → reveal-component-BYYXwJoo.js} +2 -2
- package/dist/style.css +1 -1
- package/package.json +3 -3
- package/src/components/chat/chat-components.tsx +47 -0
- package/src/components/chat/chat-display.tsx +41 -7
- package/src/components/chat/chat-panel.tsx +37 -10
- package/src/components/chat/chat-utils.ts +42 -20
- package/src/components/chat/reasoning-accordion.tsx +14 -3
- package/src/components/chat/tool-call/shared.ts +13 -0
- package/src/components/chat/tool-call/tool-approval-card.tsx +62 -0
- package/src/components/chat/tool-call/tool-args.tsx +26 -0
- package/src/components/chat/tool-call/tool-call-view.tsx +99 -0
- package/src/components/chat/tool-call/tool-error-card.tsx +81 -0
- package/src/components/chat/tool-call/tool-history-row.tsx +153 -0
- package/src/components/chat/tool-call/tool-result.tsx +101 -0
- package/src/core/ai/tools/__tests__/registry.test.ts +10 -12
- package/src/core/ai/tools/registry.ts +9 -5
- package/src/components/chat/tool-call-accordion.tsx +0 -247
|
@@ -6,7 +6,7 @@ import { _ as Logger, c as Objects, g as cn, h as Events, m as useComposedRefs,
|
|
|
6
6
|
import { t as require_react } from "./react-DA-nE2FX.js";
|
|
7
7
|
import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
|
|
8
8
|
import { n as Copy, r as toast, t as copyToClipboard } from "./copy-DLf4aN7I.js";
|
|
9
|
-
import { $ as useCellActions, $t as getTracebackInfo, A as ChevronRightIcon, An as Minus,
|
|
9
|
+
import { $ as useCellActions, $t as getTracebackInfo, A as ChevronRightIcon, An as Minus, C as AccordionContent, En as Trash2, Ft as jotaiJsonStorage, Hn as esm_default, I as base64ToUint8Array, In as ExternalLink, Jt as useRequestClient, Kt as getRequestClient, Lt as PluralWord, M as PinLeftIcon, Mt as useChromeActions, N as PinRightIcon, O as CheckIcon, Pn as FileText, Pt as adaptForLocalStorage, Qt as extractAllTracebackInfo, R as extractBase64FromDataURL, S as Accordion, St as Checkbox, T as AccordionTrigger, Tn as Wrench, Un as import_lib, V as renderHTML, Vn as Braces, Y as notebookAtom, Zt as elementContainsMarimoCellFile, _n as atomWithStorage, _t as getCellDomProps, at as AnsiUp, bn as Close$1, c as Popover, cn as SCRATCH_CELL_ID, ct as kioskModeAtom, d as PopoverTrigger, dt as outputIsLoading, et as useCellIds, g as getDatasourceContext, gt as DATA_CELL_ID, hn as jsonToTSV, ht as sanitizeHtml, j as DotFilledIcon, jn as LoaderCircle, kn as NotebookPen, kt as goToCellLine, l as PopoverClose$1, lt as useInstallAllowed, m as useExpandedOutput, mn as jsonToMarkdown, n as MarkdownRenderer, nn as filenameAtom, on as CellOutputId, pn as jsonParseWithSpecialChar, q as getCellEditorView, s as Spinner, sn as HTMLCellId, t as toPng, tt as useCellNames, u as PopoverContent, ut as viewStateAtom, vt as displayCellName, w as AccordionItem, z as isDataURLString, zn as CircleX, zt as DATA_TYPE_ICON, __tla as __tla_0 } from "./html-to-image-DxWM1HVj.js";
|
|
10
10
|
import { o as useSize, u as createLucideIcon } from "./dist-D3ZI9nhS.js";
|
|
11
11
|
import { i as createReducerAndAtoms, r as Badge } from "./useLifecycle-BF6-z62y.js";
|
|
12
12
|
import { a as ListFilter, i as Table$1, o as ChartPie, t as $896ba0a80a8f4d36$export$85fd5fdf27bacc79 } from "./useDateFormatter-B_9k85Ex.js";
|
|
@@ -45,7 +45,7 @@ let __tla = Promise.all([
|
|
|
45
45
|
})()
|
|
46
46
|
]).then(async () => {
|
|
47
47
|
var _a;
|
|
48
|
-
let ArrowUpNarrowWide, BrickWall, BugPlay, ChartSpline, Cookie,
|
|
48
|
+
let ArrowUpNarrowWide, BrickWall, BugPlay, ChartSpline, Cookie, FunnelPlus, FunnelX, Keyboard, LayoutTemplate, ListFilterPlus, MessageCircle, Package, PanelRightClose, PanelRightOpen, PanelRight, PinOff, Rows2, Sparkles, SquareArrowOutUpRight, SquareStack, Terminal, TextAlignJustify, TextAlignStart, require_use_sync_external_store_shim_production, require_shim, import_react, import_jsx_runtime, CONTEXT_MENU_NAME, createContextMenuContext, createContextMenuScope, useMenuScope, ContextMenuProvider, useContextMenuContext, ContextMenu$1;
|
|
49
49
|
ArrowDownWideNarrow = createLucideIcon("arrow-down-wide-narrow", [
|
|
50
50
|
[
|
|
51
51
|
"path",
|
|
@@ -506,29 +506,6 @@ let __tla = Promise.all([
|
|
|
506
506
|
}
|
|
507
507
|
]
|
|
508
508
|
]);
|
|
509
|
-
ExternalLink = createLucideIcon("external-link", [
|
|
510
|
-
[
|
|
511
|
-
"path",
|
|
512
|
-
{
|
|
513
|
-
d: "M15 3h6v6",
|
|
514
|
-
key: "1q9fwt"
|
|
515
|
-
}
|
|
516
|
-
],
|
|
517
|
-
[
|
|
518
|
-
"path",
|
|
519
|
-
{
|
|
520
|
-
d: "M10 14 21 3",
|
|
521
|
-
key: "gplh6r"
|
|
522
|
-
}
|
|
523
|
-
],
|
|
524
|
-
[
|
|
525
|
-
"path",
|
|
526
|
-
{
|
|
527
|
-
d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",
|
|
528
|
-
key: "a6xqqp"
|
|
529
|
-
}
|
|
530
|
-
]
|
|
531
|
-
]);
|
|
532
509
|
EyeOff = createLucideIcon("eye-off", [
|
|
533
510
|
[
|
|
534
511
|
"path",
|
|
@@ -20413,131 +20390,131 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20413
20390
|
defaultProp: c,
|
|
20414
20391
|
onChange: NN
|
|
20415
20392
|
}, t[29] = c, t[30] = NN, t[31] = q, t[32] = PN) : PN = t[32];
|
|
20416
|
-
let [
|
|
20417
|
-
t[33] ===
|
|
20418
|
-
let
|
|
20419
|
-
t[35] !== _ || t[36] !== J || t[37] !== jN || t[38] !==
|
|
20393
|
+
let [FN, IN] = useControllableState(PN), LN;
|
|
20394
|
+
t[33] === FN ? LN = t[34] : (LN = (e2) => Array.isArray(FN) ? FN.includes(e2) : FN === e2, t[33] = FN, t[34] = LN);
|
|
20395
|
+
let RN = LN, zN;
|
|
20396
|
+
t[35] !== _ || t[36] !== J || t[37] !== jN || t[38] !== IN || t[39] !== FN ? (zN = (e2) => {
|
|
20420
20397
|
let t2 = e2;
|
|
20421
|
-
if (J) if (Array.isArray(
|
|
20422
|
-
let n2 =
|
|
20398
|
+
if (J) if (Array.isArray(FN)) if (FN.includes(t2)) {
|
|
20399
|
+
let n2 = FN.filter((t3) => t3 !== e2);
|
|
20423
20400
|
t2 = n2.length > 0 ? n2 : [];
|
|
20424
20401
|
} else t2 = [
|
|
20425
|
-
...
|
|
20402
|
+
...FN,
|
|
20426
20403
|
t2
|
|
20427
20404
|
];
|
|
20428
20405
|
else t2 = [
|
|
20429
20406
|
t2
|
|
20430
20407
|
];
|
|
20431
|
-
else
|
|
20432
|
-
|
|
20433
|
-
}, t[35] = _, t[36] = J, t[37] = jN, t[38] =
|
|
20434
|
-
let
|
|
20435
|
-
t[41] !== DN || t[42] !== d || t[43] !== J || t[44] !== E || t[45] !==
|
|
20436
|
-
let
|
|
20437
|
-
t[47] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
20408
|
+
else FN === e2 && (t2 = null);
|
|
20409
|
+
IN(t2), (_ ?? J) || jN(false);
|
|
20410
|
+
}, t[35] = _, t[36] = J, t[37] = jN, t[38] = IN, t[39] = FN, t[40] = zN) : zN = t[40];
|
|
20411
|
+
let BN = zN, VN;
|
|
20412
|
+
t[41] !== DN || t[42] !== d || t[43] !== J || t[44] !== E || t[45] !== FN ? (VN = () => J && DN && E ? E : FN == null ? E ?? "--" : Array.isArray(FN) ? FN.length === 0 ? E ?? "--" : FN.length === 1 && d !== void 0 ? d(FN[0]) : `${FN.length} selected` : d === void 0 ? E ?? "--" : d(FN), t[41] = DN, t[42] = d, t[43] = J, t[44] = E, t[45] = FN, t[46] = VN) : VN = t[46];
|
|
20413
|
+
let HN = VN, UN;
|
|
20414
|
+
t[47] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (UN = cn("relative"), t[47] = UN) : UN = t[47];
|
|
20415
|
+
let WN;
|
|
20416
|
+
t[48] === o ? WN = t[49] : (WN = cn("flex h-6 w-fit mb-1 shadow-xs-solid items-center justify-between rounded-sm border border-input bg-transparent px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground hover:shadow-sm-solid focus:outline-hidden focus:ring-1 focus:ring-ring focus:border-primary focus:shadow-md-solid disabled:cursor-not-allowed disabled:opacity-50", o), t[48] = o, t[49] = WN);
|
|
20438
20417
|
let GN;
|
|
20439
|
-
t[
|
|
20418
|
+
t[50] === HN ? GN = t[51] : (GN = HN(), t[50] = HN, t[51] = GN);
|
|
20440
20419
|
let KN;
|
|
20441
|
-
t[
|
|
20442
|
-
let qN;
|
|
20443
|
-
t[52] === KN ? qN = t[53] : (qN = (0, import_jsx_runtime.jsx)("span", {
|
|
20420
|
+
t[52] === GN ? KN = t[53] : (KN = (0, import_jsx_runtime.jsx)("span", {
|
|
20444
20421
|
className: "truncate flex-1 min-w-0",
|
|
20445
|
-
children:
|
|
20446
|
-
}), t[52] =
|
|
20447
|
-
let
|
|
20448
|
-
t[54] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
20422
|
+
children: GN
|
|
20423
|
+
}), t[52] = GN, t[53] = KN);
|
|
20424
|
+
let qN;
|
|
20425
|
+
t[54] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (qN = (0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
20449
20426
|
className: "ml-3 w-4 h-4 opacity-50 shrink-0"
|
|
20450
|
-
}), t[54] =
|
|
20451
|
-
let
|
|
20452
|
-
t[55] !== h || t[56] !== MN || t[57] !==
|
|
20427
|
+
}), t[54] = qN) : qN = t[54];
|
|
20428
|
+
let YN;
|
|
20429
|
+
t[55] !== h || t[56] !== MN || t[57] !== WN || t[58] !== KN ? (YN = (0, import_jsx_runtime.jsx)(PopoverTrigger, {
|
|
20453
20430
|
asChild: true,
|
|
20454
20431
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
20455
20432
|
id: h,
|
|
20456
|
-
className:
|
|
20433
|
+
className: WN,
|
|
20457
20434
|
"aria-expanded": MN,
|
|
20458
20435
|
children: [
|
|
20459
|
-
|
|
20460
|
-
|
|
20436
|
+
KN,
|
|
20437
|
+
qN
|
|
20461
20438
|
]
|
|
20462
20439
|
})
|
|
20463
|
-
}), t[55] = h, t[56] = MN, t[57] =
|
|
20464
|
-
let
|
|
20465
|
-
t[60] !== EN || t[61] !== y || t[62] !== A ? (
|
|
20440
|
+
}), t[55] = h, t[56] = MN, t[57] = WN, t[58] = KN, t[59] = YN) : YN = t[59];
|
|
20441
|
+
let XN;
|
|
20442
|
+
t[60] !== EN || t[61] !== y || t[62] !== A ? (XN = (0, import_jsx_runtime.jsx)(CommandInput, {
|
|
20466
20443
|
placeholder: EN,
|
|
20467
20444
|
rootClassName: "px-1 h-8",
|
|
20468
20445
|
autoFocus: true,
|
|
20469
20446
|
value: A,
|
|
20470
20447
|
onValueChange: y
|
|
20471
|
-
}), t[60] = EN, t[61] = y, t[62] = A, t[63] =
|
|
20472
|
-
let
|
|
20473
|
-
t[64] === $ ?
|
|
20448
|
+
}), t[60] = EN, t[61] = y, t[62] = A, t[63] = XN) : XN = t[63];
|
|
20449
|
+
let QN;
|
|
20450
|
+
t[64] === $ ? QN = t[65] : (QN = (0, import_jsx_runtime.jsx)(CommandEmpty, {
|
|
20474
20451
|
children: $
|
|
20475
|
-
}), t[64] = $, t[65] =
|
|
20452
|
+
}), t[64] = $, t[65] = QN);
|
|
20453
|
+
let $N;
|
|
20454
|
+
t[66] !== BN || t[67] !== RN ? ($N = {
|
|
20455
|
+
isSelected: RN,
|
|
20456
|
+
onSelect: BN
|
|
20457
|
+
}, t[66] = BN, t[67] = RN, t[68] = $N) : $N = t[68];
|
|
20476
20458
|
let eP;
|
|
20477
|
-
t[
|
|
20478
|
-
|
|
20479
|
-
onSelect: VN
|
|
20480
|
-
}, t[66] = VN, t[67] = zN, t[68] = eP) : eP = t[68];
|
|
20481
|
-
let tP;
|
|
20482
|
-
t[69] !== n || t[70] !== eP ? (tP = (0, import_jsx_runtime.jsx)(ComboboxContext, {
|
|
20483
|
-
value: eP,
|
|
20459
|
+
t[69] !== n || t[70] !== $N ? (eP = (0, import_jsx_runtime.jsx)(ComboboxContext, {
|
|
20460
|
+
value: $N,
|
|
20484
20461
|
children: n
|
|
20485
|
-
}), t[69] = n, t[70] =
|
|
20486
|
-
let
|
|
20487
|
-
t[72] !==
|
|
20462
|
+
}), t[69] = n, t[70] = $N, t[71] = eP) : eP = t[71];
|
|
20463
|
+
let tP;
|
|
20464
|
+
t[72] !== QN || t[73] !== eP ? (tP = (0, import_jsx_runtime.jsxs)(CommandList, {
|
|
20488
20465
|
className: "max-h-60 py-.5",
|
|
20489
20466
|
children: [
|
|
20490
|
-
|
|
20491
|
-
|
|
20467
|
+
QN,
|
|
20468
|
+
eP
|
|
20492
20469
|
]
|
|
20493
|
-
}), t[72] =
|
|
20494
|
-
let
|
|
20495
|
-
t[75] !== f || t[76] !== Q || t[77] !==
|
|
20470
|
+
}), t[72] = QN, t[73] = eP, t[74] = tP) : tP = t[74];
|
|
20471
|
+
let nP;
|
|
20472
|
+
t[75] !== f || t[76] !== Q || t[77] !== XN || t[78] !== tP ? (nP = (0, import_jsx_runtime.jsx)(PopoverContent, {
|
|
20496
20473
|
className: "w-full min-w-(--radix-popover-trigger-width) p-0",
|
|
20497
20474
|
align: "start",
|
|
20498
20475
|
children: (0, import_jsx_runtime.jsxs)(Command, {
|
|
20499
20476
|
filter: f,
|
|
20500
20477
|
shouldFilter: Q,
|
|
20501
20478
|
children: [
|
|
20502
|
-
|
|
20503
|
-
|
|
20479
|
+
XN,
|
|
20480
|
+
tP
|
|
20504
20481
|
]
|
|
20505
20482
|
})
|
|
20506
|
-
}), t[75] = f, t[76] = Q, t[77] =
|
|
20507
|
-
let
|
|
20508
|
-
t[80] !== MN || t[81] !== jN || t[82] !==
|
|
20483
|
+
}), t[75] = f, t[76] = Q, t[77] = XN, t[78] = tP, t[79] = nP) : nP = t[79];
|
|
20484
|
+
let rP;
|
|
20485
|
+
t[80] !== MN || t[81] !== jN || t[82] !== YN || t[83] !== nP ? (rP = (0, import_jsx_runtime.jsxs)(Popover, {
|
|
20509
20486
|
open: MN,
|
|
20510
20487
|
onOpenChange: jN,
|
|
20511
20488
|
children: [
|
|
20512
|
-
|
|
20513
|
-
|
|
20489
|
+
YN,
|
|
20490
|
+
nP
|
|
20514
20491
|
]
|
|
20515
|
-
}), t[80] = MN, t[81] = jN, t[82] =
|
|
20516
|
-
let
|
|
20517
|
-
t[85] !== DN || t[86] !== i || t[87] !== d || t[88] !==
|
|
20492
|
+
}), t[80] = MN, t[81] = jN, t[82] = YN, t[83] = nP, t[84] = rP) : rP = t[84];
|
|
20493
|
+
let iP;
|
|
20494
|
+
t[85] !== DN || t[86] !== i || t[87] !== d || t[88] !== BN || t[89] !== J || t[90] !== FN ? (iP = J && DN && (0, import_jsx_runtime.jsx)("div", {
|
|
20518
20495
|
className: cn("flex flex-col gap-1 items-start", i),
|
|
20519
|
-
children: Array.isArray(
|
|
20496
|
+
children: Array.isArray(FN) && FN.map((e2) => e2 == null ? null : (0, import_jsx_runtime.jsxs)(Badge, {
|
|
20520
20497
|
variant: "secondary",
|
|
20521
20498
|
children: [
|
|
20522
20499
|
(d == null ? void 0 : d(e2)) ?? String(e2),
|
|
20523
20500
|
(0, import_jsx_runtime.jsx)(CircleX, {
|
|
20524
20501
|
onClick: () => {
|
|
20525
|
-
|
|
20502
|
+
BN(e2);
|
|
20526
20503
|
},
|
|
20527
20504
|
className: "w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer"
|
|
20528
20505
|
})
|
|
20529
20506
|
]
|
|
20530
20507
|
}, String(e2)))
|
|
20531
|
-
}), t[85] = DN, t[86] = i, t[87] = d, t[88] =
|
|
20532
|
-
let
|
|
20533
|
-
return t[92] !== O || t[93] !==
|
|
20534
|
-
className:
|
|
20508
|
+
}), t[85] = DN, t[86] = i, t[87] = d, t[88] = BN, t[89] = J, t[90] = FN, t[91] = iP) : iP = t[91];
|
|
20509
|
+
let aP;
|
|
20510
|
+
return t[92] !== O || t[93] !== rP || t[94] !== iP ? (aP = (0, import_jsx_runtime.jsxs)("div", {
|
|
20511
|
+
className: UN,
|
|
20535
20512
|
...O,
|
|
20536
20513
|
children: [
|
|
20537
|
-
|
|
20538
|
-
|
|
20514
|
+
rP,
|
|
20515
|
+
iP
|
|
20539
20516
|
]
|
|
20540
|
-
}), t[92] = O, t[93] =
|
|
20517
|
+
}), t[92] = O, t[93] = rP, t[94] = iP, t[95] = aP) : aP = t[95], aP;
|
|
20541
20518
|
};
|
|
20542
20519
|
ComboboxItem = import_react.forwardRef((e, t) => {
|
|
20543
20520
|
let n = (0, import_compiler_runtime$21.c)(17), { children: i, className: o, value: s, onSelect: c, disabled: d } = e, f = typeof s == "object" && "value" in s ? s.value : String(s), h = import_react.use(ComboboxContext), _;
|
|
@@ -20613,7 +20590,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20613
20590
|
return t2 === "number" || t2 === "text" || t2 === "boolean" || t2 === "select";
|
|
20614
20591
|
}), I = (t2) => {
|
|
20615
20592
|
t2.id === e.columnId && t2.type === c && t2.operator === d && A(h);
|
|
20616
|
-
},
|
|
20593
|
+
}, U = (e2) => {
|
|
20617
20594
|
var _a2, _b;
|
|
20618
20595
|
if (!e2) return;
|
|
20619
20596
|
let n2 = ((_b = (_a2 = t.getColumn(e2)) == null ? void 0 : _a2.columnDef.meta) == null ? void 0 : _b.filterType) ?? "text", i2 = w;
|
|
@@ -20664,7 +20641,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20664
20641
|
(0, import_jsx_runtime.jsx)(Combobox, {
|
|
20665
20642
|
id: a,
|
|
20666
20643
|
value: _,
|
|
20667
|
-
onValueChange:
|
|
20644
|
+
onValueChange: U,
|
|
20668
20645
|
multiple: false,
|
|
20669
20646
|
placeholder: "Select column\u2026",
|
|
20670
20647
|
displayValue: (e2) => e2,
|
|
@@ -24132,76 +24109,76 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
24132
24109
|
t[4] !== o || t[5] !== E ? (O = E && E.kind === "cell" && !isWasm() && !isStaticNotebook() && o !== "__scratch__", t[4] = o, t[5] = E, t[6] = O) : O = t[6];
|
|
24133
24110
|
let A = O, M;
|
|
24134
24111
|
t[7] !== v || t[8] !== n ? (M = n && v && !isStaticNotebook(), t[7] = v, t[8] = n, t[9] = M) : M = t[9];
|
|
24135
|
-
let
|
|
24112
|
+
let z = M, U = !isStaticNotebook(), K = (e2) => {
|
|
24136
24113
|
n == null ? void 0 : n({
|
|
24137
24114
|
prompt: `My code gives the following error:
|
|
24138
24115
|
|
|
24139
24116
|
${_}`,
|
|
24140
24117
|
triggerImmediately: e2
|
|
24141
24118
|
});
|
|
24142
|
-
}, [q,
|
|
24143
|
-
t[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
24144
|
-
let
|
|
24145
|
-
t[11] ===
|
|
24146
|
-
let
|
|
24147
|
-
t[13] ===
|
|
24148
|
-
className:
|
|
24149
|
-
}), t[13] =
|
|
24150
|
-
let
|
|
24151
|
-
t[15] ===
|
|
24119
|
+
}, [q, Q] = _.split(":", 2), $ = d ? KEY : "", DN;
|
|
24120
|
+
t[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (DN = () => h(_temp$3), t[10] = DN) : DN = t[10];
|
|
24121
|
+
let ON = d ? "rotate-180" : "rotate-0", kN;
|
|
24122
|
+
t[11] === ON ? kN = t[12] : (kN = cn("h-4 w-4 text-muted-foreground transition-transform duration-200 shrink-0", ON), t[11] = ON, t[12] = kN);
|
|
24123
|
+
let AN;
|
|
24124
|
+
t[13] === kN ? AN = t[14] : (AN = (0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
24125
|
+
className: kN
|
|
24126
|
+
}), t[13] = kN, t[14] = AN);
|
|
24127
|
+
let jN = q || "Error", MN;
|
|
24128
|
+
t[15] === jN ? MN = t[16] : (MN = (0, import_jsx_runtime.jsxs)("span", {
|
|
24152
24129
|
className: "text-destructive",
|
|
24153
24130
|
children: [
|
|
24154
|
-
|
|
24131
|
+
jN,
|
|
24155
24132
|
":"
|
|
24156
24133
|
]
|
|
24157
|
-
}), t[15] =
|
|
24158
|
-
let
|
|
24159
|
-
t[17] !==
|
|
24134
|
+
}), t[15] = jN, t[16] = MN);
|
|
24135
|
+
let PN;
|
|
24136
|
+
t[17] !== Q || t[18] !== MN ? (PN = (0, import_jsx_runtime.jsxs)("div", {
|
|
24160
24137
|
className: "text-sm inline font-mono",
|
|
24161
24138
|
children: [
|
|
24162
|
-
|
|
24139
|
+
MN,
|
|
24163
24140
|
" ",
|
|
24164
|
-
|
|
24141
|
+
Q
|
|
24165
24142
|
]
|
|
24166
|
-
}), t[17] =
|
|
24167
|
-
let
|
|
24168
|
-
t[20] !==
|
|
24143
|
+
}), t[17] = Q, t[18] = MN, t[19] = PN) : PN = t[19];
|
|
24144
|
+
let IN;
|
|
24145
|
+
t[20] !== PN || t[21] !== AN ? (IN = (0, import_jsx_runtime.jsxs)("div", {
|
|
24169
24146
|
className: "flex gap-2 h-10 px-2 hover:bg-muted rounded-sm select-none items-center cursor-pointer transition-all",
|
|
24170
|
-
onClick:
|
|
24147
|
+
onClick: DN,
|
|
24171
24148
|
children: [
|
|
24172
|
-
|
|
24173
|
-
|
|
24149
|
+
AN,
|
|
24150
|
+
PN
|
|
24174
24151
|
]
|
|
24175
|
-
}), t[20] =
|
|
24176
|
-
let
|
|
24177
|
-
t[23] === c ?
|
|
24152
|
+
}), t[20] = PN, t[21] = AN, t[22] = IN) : IN = t[22];
|
|
24153
|
+
let LN;
|
|
24154
|
+
t[23] === c ? LN = t[24] : (LN = (0, import_jsx_runtime.jsx)(AccordionContent, {
|
|
24178
24155
|
className: "text-muted-foreground px-4 pt-2 text-xs overflow-auto",
|
|
24179
24156
|
children: c
|
|
24180
|
-
}), t[23] = c, t[24] =
|
|
24181
|
-
let
|
|
24182
|
-
t[25] !==
|
|
24157
|
+
}), t[23] = c, t[24] = LN);
|
|
24158
|
+
let RN;
|
|
24159
|
+
t[25] !== IN || t[26] !== LN ? (RN = (0, import_jsx_runtime.jsxs)(AccordionItem, {
|
|
24183
24160
|
value: KEY,
|
|
24184
24161
|
className: "border-none",
|
|
24185
24162
|
children: [
|
|
24186
|
-
|
|
24187
|
-
|
|
24163
|
+
IN,
|
|
24164
|
+
LN
|
|
24188
24165
|
]
|
|
24189
|
-
}), t[25] =
|
|
24190
|
-
let
|
|
24191
|
-
t[28] !==
|
|
24166
|
+
}), t[25] = IN, t[26] = LN, t[27] = RN) : RN = t[27];
|
|
24167
|
+
let zN;
|
|
24168
|
+
t[28] !== RN || t[29] !== $ ? (zN = (0, import_jsx_runtime.jsx)(Accordion, {
|
|
24192
24169
|
type: "single",
|
|
24193
24170
|
collapsible: true,
|
|
24194
|
-
value:
|
|
24195
|
-
children:
|
|
24196
|
-
}), t[28] =
|
|
24197
|
-
let
|
|
24198
|
-
t[31] !== K || t[32] !==
|
|
24171
|
+
value: $,
|
|
24172
|
+
children: RN
|
|
24173
|
+
}), t[28] = RN, t[29] = $, t[30] = zN) : zN = t[30];
|
|
24174
|
+
let VN;
|
|
24175
|
+
t[31] !== K || t[32] !== z ? (VN = z && (0, import_jsx_runtime.jsx)(AIFixButton, {
|
|
24199
24176
|
tooltip: "Fix with AI",
|
|
24200
24177
|
openPrompt: () => K(false),
|
|
24201
24178
|
applyAutofix: () => K(true)
|
|
24202
|
-
}), t[31] = K, t[32] =
|
|
24203
|
-
let
|
|
24204
|
-
t[34] !== A || t[35] !== E ? (
|
|
24179
|
+
}), t[31] = K, t[32] = z, t[33] = VN) : VN = t[33];
|
|
24180
|
+
let HN;
|
|
24181
|
+
t[34] !== A || t[35] !== E ? (HN = A && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
24205
24182
|
content: "Attach pdb to the exception point.",
|
|
24206
24183
|
children: (0, import_jsx_runtime.jsxs)(Button, {
|
|
24207
24184
|
size: "xs",
|
|
@@ -24218,9 +24195,9 @@ ${_}`,
|
|
|
24218
24195
|
"Launch debugger"
|
|
24219
24196
|
]
|
|
24220
24197
|
})
|
|
24221
|
-
}), t[34] = A, t[35] = E, t[36] =
|
|
24222
|
-
let
|
|
24223
|
-
t[37] !== _ || t[38] !== i ? (
|
|
24198
|
+
}), t[34] = A, t[35] = E, t[36] = HN) : HN = t[36];
|
|
24199
|
+
let UN;
|
|
24200
|
+
t[37] !== _ || t[38] !== i ? (UN = U && (0, import_jsx_runtime.jsxs)(DropdownMenu, {
|
|
24224
24201
|
children: [
|
|
24225
24202
|
(0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
|
|
24226
24203
|
asChild: true,
|
|
@@ -24288,24 +24265,24 @@ ${_}`,
|
|
|
24288
24265
|
]
|
|
24289
24266
|
})
|
|
24290
24267
|
]
|
|
24291
|
-
}), t[37] = _, t[38] = i, t[39] =
|
|
24292
|
-
let
|
|
24293
|
-
t[40] !==
|
|
24268
|
+
}), t[37] = _, t[38] = i, t[39] = UN) : UN = t[39];
|
|
24269
|
+
let WN;
|
|
24270
|
+
t[40] !== VN || t[41] !== HN || t[42] !== UN ? (WN = (0, import_jsx_runtime.jsxs)("div", {
|
|
24294
24271
|
className: "flex gap-2",
|
|
24295
24272
|
children: [
|
|
24296
|
-
zN,
|
|
24297
24273
|
VN,
|
|
24298
|
-
HN
|
|
24274
|
+
HN,
|
|
24275
|
+
UN
|
|
24299
24276
|
]
|
|
24300
|
-
}), t[40] =
|
|
24301
|
-
let
|
|
24302
|
-
return t[44] !==
|
|
24277
|
+
}), t[40] = VN, t[41] = HN, t[42] = UN, t[43] = WN) : WN = t[43];
|
|
24278
|
+
let GN;
|
|
24279
|
+
return t[44] !== zN || t[45] !== WN ? (GN = (0, import_jsx_runtime.jsxs)("div", {
|
|
24303
24280
|
className: "flex flex-col gap-2 min-w-full w-fit",
|
|
24304
24281
|
children: [
|
|
24305
|
-
|
|
24306
|
-
|
|
24282
|
+
zN,
|
|
24283
|
+
WN
|
|
24307
24284
|
]
|
|
24308
|
-
}), t[44] =
|
|
24285
|
+
}), t[44] = zN, t[45] = WN, t[46] = GN) : GN = t[46], GN;
|
|
24309
24286
|
};
|
|
24310
24287
|
function lastLine(e) {
|
|
24311
24288
|
var _a2, _b;
|
|
@@ -25691,7 +25668,7 @@ ${_}`,
|
|
|
25691
25668
|
return Logger.warn("Failed to get version from mount config"), null;
|
|
25692
25669
|
}
|
|
25693
25670
|
}
|
|
25694
|
-
marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.7-
|
|
25671
|
+
marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.7-dev22");
|
|
25695
25672
|
showCodeInRunModeAtom = atom(true);
|
|
25696
25673
|
atom(null);
|
|
25697
25674
|
var import_compiler_runtime = require_compiler_runtime();
|