@marimo-team/islands 0.25.3-dev462 → 0.25.3-dev464

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.
Files changed (50) hide show
  1. package/dist/{ErrorBoundary-BnH_3-iX.js → ErrorBoundary-BUp3s8bW.js} +1 -1
  2. package/dist/assets/__vite-browser-external-DoIBUY2I.js +1 -0
  3. package/dist/assets/{worker-D70Lo75A.js → worker-DFvnFhLF.js} +2 -2
  4. package/dist/{chat-ui-Ci-OmyBN.js → chat-ui-DFoH-uxc.js} +3 -3
  5. package/dist/{code-visibility-9cVyvQDR.js → code-visibility-JyOG3ytM.js} +2 -2
  6. package/dist/{common-BFNJT3tG.js → common-DsPeHITU.js} +4 -4
  7. package/dist/{data-grid-overlay-editor-CQpih6Vr.js → data-grid-overlay-editor-D6RpA9b2.js} +1 -1
  8. package/dist/{error-entries-DMWlemUn.js → error-entries-C9OKfJKe.js} +283 -279
  9. package/dist/{feedback-button-D_xvjRAC.js → feedback-button-w5jJOd6o.js} +3 -3
  10. package/dist/{glide-data-editor-ttA3lt4w.js → glide-data-editor-lWcwB0Si.js} +3 -3
  11. package/dist/{globals-DgHMWwtp.js → globals-BFICoaLo.js} +1 -1
  12. package/dist/{html-to-image-CDlYnllr.js → html-to-image-BiWLL4Tu.js} +1 -1
  13. package/dist/main.js +163 -176
  14. package/dist/{number-overlay-editor-VuSNPGWk.js → number-overlay-editor-BDYmg8YM.js} +1 -1
  15. package/dist/{process-output-89n_C_pU.js → process-output-ClyiXL-f.js} +2 -2
  16. package/dist/{reveal-component-D63GuWKz.js → reveal-component-B63xZtLQ.js} +2 -2
  17. package/package.json +1 -1
  18. package/src/__mocks__/executions.ts +2 -2
  19. package/src/__mocks__/notebook.ts +6 -3
  20. package/src/components/dependency-graph/minimap-content.tsx +1 -1
  21. package/src/components/editor/notebook-cell.tsx +6 -6
  22. package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +2 -2
  23. package/src/components/slides/slide-cell-view.tsx +2 -2
  24. package/src/core/ai/context/providers/__tests__/error.test.ts +0 -4
  25. package/src/core/cells/__tests__/cell.test.ts +8 -8
  26. package/src/core/cells/__tests__/runs.test.ts +1 -1
  27. package/src/core/cells/__tests__/session.test.ts +2 -2
  28. package/src/core/cells/__tests__/utils.test.ts +2 -2
  29. package/src/core/cells/cell.ts +2 -2
  30. package/src/core/cells/execution-console.ts +18 -13
  31. package/src/core/cells/runs.ts +10 -2
  32. package/src/core/cells/session.ts +1 -1
  33. package/src/core/cells/utils.ts +2 -2
  34. package/src/core/executions/__tests__/atoms.test.ts +1 -1
  35. package/src/core/executions/__tests__/interrupt.test.ts +1 -1
  36. package/src/core/executions/__tests__/output.test.ts +26 -5
  37. package/src/core/executions/__tests__/select.test.ts +4 -4
  38. package/src/core/executions/output.ts +16 -4
  39. package/src/core/islands/__tests__/bridge.test.ts +8 -1
  40. package/src/core/islands/bridge.ts +7 -3
  41. package/src/core/notebook/replica/__tests__/executions.test.ts +65 -10
  42. package/src/core/notebook/replica/__tests__/replica.test.ts +3 -1
  43. package/src/core/notebook/replica/__tests__/results.test.ts +2 -2
  44. package/src/core/notebook/replica/replica.ts +2 -8
  45. package/src/core/notebook/replica/resources/executions.ts +28 -6
  46. package/src/core/session/__tests__/backend.test.ts +1 -1
  47. package/src/core/session/__tests__/useNotebookSession.hook.test.tsx +8 -11
  48. package/src/core/session/useNotebookSession.tsx +1 -1
  49. package/src/stories/layout/vertical/one-column.stories.tsx +1 -2
  50. package/dist/assets/__vite-browser-external-DxDOnHRB.js +0 -1
package/dist/main.js CHANGED
@@ -3,20 +3,20 @@ import { _ as a, a as o, d as s, g as c, h as l, i as u, l as d, m as f, n as p,
3
3
  import { t as y } from "./react-Bgs_wQh3.js";
4
4
  import { t as b } from "./compiler-runtime-C5KHtL5D.js";
5
5
  import { i as x, n as S, r as C, t as w } from "./copy-icon-CDvvlY90.js";
6
- import { B as T, Bt as E, Ct as D, E as O, F as k, Ft as A, I as j, It as M, L as N, Lt as P, M as F, Mt as I, O as L, Ot as R, P as z, R as B, Rt as ee, St as V, Ut as te, Vt as ne, Wt as re, X as ie, Z as ae, _ as oe, _t as se, a as ce, at as le, b as ue, bt as de, c as fe, ct as pe, dt as me, i as he, it as ge, j as _e, kt as ve, lt as ye, mt as be, n as xe, o as Se, ot as Ce, q as we, rt as Te, ut as Ee, vt as De, yt as Oe, z as ke, zt as Ae } from "./html-to-image-CDlYnllr.js";
6
+ import { B as T, Bt as E, Ct as D, E as O, F as k, Ft as A, I as j, It as M, L as N, Lt as P, M as F, Mt as I, O as L, Ot as R, P as z, R as B, Rt as ee, St as V, Ut as te, Vt as ne, Wt as re, X as ie, Z as ae, _ as oe, _t as se, a as ce, at as le, b as ue, bt as de, c as fe, ct as pe, dt as me, i as he, it as ge, j as _e, kt as ve, lt as ye, mt as be, n as xe, o as Se, ot as Ce, q as we, rt as Te, ut as Ee, vt as De, yt as Oe, z as ke, zt as Ae } from "./html-to-image-BiWLL4Tu.js";
7
7
  import { a as je, f as Me, h as Ne, i as Pe, m as Fe, n as Ie, o as Le, r as Re, t as ze } from "./tooltip-CiJ919pg.js";
8
8
  import { D as Be, E as Ve, S as He, T as Ue, _ as We, a as Ge, c as Ke, d as qe, f as Je, g as Ye, h as Xe, i as Ze, l as Qe, m as $e, n as et, o as tt, p as nt, r as rt, s as it, t as at, u as ot, v as st, w as ct, x as lt, y as ut } from "./spec-6shN7lEe.js";
9
- import { $ as dt, $t as ft, A as pt, An as mt, At as ht, B as gt, Bt as _t, C as vt, D as yt, Dn as bt, Dt as xt, E as St, En as Ct, Et as wt, F as Tt, Ft as Et, G as Dt, Gt as Ot, H as kt, Ht as At, I as jt, It as Mt, J as Nt, Jt as Pt, K as Ft, Kt as It, L as Lt, Lt as Rt, M as zt, Mn as Bt, Mt as Vt, N as Ht, Nt as Ut, O as Wt, On as Gt, Ot as Kt, P as qt, Pt as Jt, Q as Yt, Qt as Xt, R as Zt, Rt as Qt, S as $t, Sn as en, St as tn, T as nn, Tn as rn, Tt as an, U as on, Ut as sn, V as cn, Vt as ln, W as un, Wt as dn, X as fn, Xt as pn, Y as mn, Yt as hn, Z as gn, Zt as _n, _ as vn, _n as yn, _t as bn, an as xn, at as Sn, b as Cn, bn as wn, bt as Tn, c as En, cn as Dn, ct as On, d as kn, dn as An, dt as jn, en as Mn, f as Nn, fn as Pn, ft as Fn, g as In, gn as Ln, gt as Rn, h as zn, hn as Bn, ht as Vn, in as Hn, it as Un, j as Wn, jn as Gn, jt as Kn, k as qn, kn as Jn, kt as Yn, ln as Xn, lt as Zn, m as Qn, mn as $n, mt as er, nn as tr, on as nr, ot as rr, p as ir, pn as ar, pt as or, q as sr, qt as cr, r as lr, rn as ur, rt as dr, sn as fr, st as pr, t as mr, tn as hr, u as gr, un as _r, ut as vr, v as yr, vn as br, vt as xr, w as Sr, wn as Cr, x as wr, xn as Tr, xt as Er, y as Dr, yn as Or, yt as kr, z as Ar, zt as jr } from "./common-BFNJT3tG.js";
9
+ import { $ as dt, $t as ft, A as pt, An as mt, At as ht, B as gt, Bt as _t, C as vt, D as yt, Dn as bt, Dt as xt, E as St, En as Ct, Et as wt, F as Tt, Ft as Et, G as Dt, Gt as Ot, H as kt, Ht as At, I as jt, It as Mt, J as Nt, Jt as Pt, K as Ft, Kt as It, L as Lt, Lt as Rt, M as zt, Mn as Bt, Mt as Vt, N as Ht, Nt as Ut, O as Wt, On as Gt, Ot as Kt, P as qt, Pt as Jt, Q as Yt, Qt as Xt, R as Zt, Rt as Qt, S as $t, Sn as en, St as tn, T as nn, Tn as rn, Tt as an, U as on, Ut as sn, V as cn, Vt as ln, W as un, Wt as dn, X as fn, Xt as pn, Y as mn, Yt as hn, Z as gn, Zt as _n, _ as vn, _n as yn, _t as bn, an as xn, at as Sn, b as Cn, bn as wn, bt as Tn, c as En, cn as Dn, ct as On, d as kn, dn as An, dt as jn, en as Mn, f as Nn, fn as Pn, ft as Fn, g as In, gn as Ln, gt as Rn, h as zn, hn as Bn, ht as Vn, in as Hn, it as Un, j as Wn, jn as Gn, jt as Kn, k as qn, kn as Jn, kt as Yn, ln as Xn, lt as Zn, m as Qn, mn as $n, mt as er, nn as tr, on as nr, ot as rr, p as ir, pn as ar, pt as or, q as sr, qt as cr, r as lr, rn as ur, rt as dr, sn as fr, st as pr, t as mr, tn as hr, u as gr, un as _r, ut as vr, v as yr, vn as br, vt as xr, w as Sr, wn as Cr, x as wr, xn as Tr, xt as Er, y as Dr, yn as Or, yt as kr, z as Ar, zt as jr } from "./common-DsPeHITU.js";
10
10
  import { a as Mr, n as Nr, s as Pr, t as Fr } from "./useLifecycle-mKiMNa4V.js";
11
11
  import { t as Ir } from "./check-CApwK1fD.js";
12
12
  import { A as Lr, C as Rr, D as zr, M as Br, O as Vr, a as Hr, c as Ur, d as Wr, i as Gr, k as Kr, l as qr, n as Jr, o as Yr, r as Xr, s as Zr, t as Qr, w as $r, x as ei } from "./select-PQHWLm64.js";
13
13
  import { $ as ti, At as ni, B as ri, C as ii, Cn as ai, G as oi, Nt as si, Q as ci, Sn as li, T as ui, V as di, X as fi, Y as pi, Z as mi, _ as hi, a as gi, b as _i, c as vi, f as yi, g as bi, h as xi, i as Si, m as Ci, mt as wi, n as Ti, p as Ei, r as Di, rt as Oi, s as ki, t as Ai, v as ji, vt as Mi, w as Ni, xn as Pi, y as Fi } from "./dropdown-menu-B12Nf3Zf.js";
14
14
  import { c as Ii, i as Li, l as Ri, o as zi, s as Bi, t as Vi } from "./config-C8TXSDmC.js";
15
- import { $t as Hi, At as Ui, B as Wi, Ct as Gi, D as Ki, Dt as qi, Ft as Ji, G as Yi, It as Xi, J as Zi, K as Qi, Kt as $i, N as ea, Nt as ta, Pt as na, Qt as ra, R as ia, Rt as aa, St as oa, V as sa, X as ca, Xt as la, Y as ua, Z as da, Zt as fa, _ as pa, bt as ma, en as ha, f as ga, g as _a, h as va, ht as ya, l as ba, m as xa, mt as Sa, nn as Ca, nt as wa, q as Ta, qt as Ea, rt as Da, s as Oa, v as ka, vt as Aa, xt as ja, z as Ma } from "./error-entries-DMWlemUn.js";
16
- import { a as Na, d as Pa, i as Fa, n as Ia, o as La, r as Ra, s as za, t as Ba, u as Va } from "./process-output-89n_C_pU.js";
15
+ import { $t as Hi, At as Ui, B as Wi, Ct as Gi, D as Ki, Dt as qi, Ft as Ji, G as Yi, It as Xi, J as Zi, K as Qi, Kt as $i, N as ea, Nt as ta, Pt as na, Qt as ra, R as ia, Rt as aa, St as oa, V as sa, X as ca, Xt as la, Y as ua, Z as da, Zt as fa, _ as pa, bt as ma, en as ha, f as ga, g as _a, h as va, ht as ya, l as ba, m as xa, mt as Sa, nn as Ca, nt as wa, q as Ta, qt as Ea, rt as Da, s as Oa, v as ka, vt as Aa, xt as ja, z as Ma } from "./error-entries-C9OKfJKe.js";
16
+ import { a as Na, d as Pa, i as Fa, n as Ia, o as La, r as Ra, s as za, t as Ba, u as Va } from "./process-output-ClyiXL-f.js";
17
17
  import { t as Ha } from "./pencil-BC7pOv9g.js";
18
18
  import { a as Ua, c as Wa, d as Ga, f as Ka, i as qa, l as Ja, r as Ya } from "./glide-utils-D1McS0Pn.js";
19
- import { n as Xa, t as Za } from "./globals-DgHMWwtp.js";
19
+ import { n as Xa, t as Za } from "./globals-BFICoaLo.js";
20
20
  import { a as Qa, i as $a, n as eo, r as to, s as no, t as ro } from "./assertNever-DOTNJ2Y4.js";
21
21
  import { t as io } from "./react-dom-DdqGVp5N.js";
22
22
  import { t as ao } from "./jsx-runtime-D8btoEHk.js";
@@ -40,10 +40,10 @@ import { n as nc, t as rc } from "./esm-Bwp_FHP0.js";
40
40
  import { p as ic } from "./dist-DpYpG8Yc.js";
41
41
  import { t as ac } from "./useAsyncData-P5-Oovhq.js";
42
42
  import { n as oc, r as sc, t as cc } from "./useDeepCompareMemoize-CDhinwm7.js";
43
- import { t as lc } from "./ErrorBoundary-BnH_3-iX.js";
43
+ import { t as lc } from "./ErrorBoundary-BUp3s8bW.js";
44
44
  import { G as uc, W as dc } from "./vega-loader.browser-Co9gYE8Z.js";
45
45
  import { a as fc, n as pc } from "./loader-Bin_dutt.js";
46
- import { a as mc, c as hc, i as gc, l as _c, o as vc, s as yc, t as bc } from "./code-visibility-9cVyvQDR.js";
46
+ import { a as mc, c as hc, i as gc, l as _c, o as vc, s as yc, t as bc } from "./code-visibility-JyOG3ytM.js";
47
47
  import { t as xc } from "./esm-B9n0caHs.js";
48
48
  //#region ../node_modules/.pnpm/iconify-icon@2.3.0/node_modules/iconify-icon/dist/iconify-icon.mjs
49
49
  var Sc = Object.freeze({
@@ -3069,51 +3069,54 @@ var Up = Ip({ offset: !0 }).describe("A date and time with its offset from UTC,
3069
3069
  ]).describe("What a run was given when it was created, tagged on `kind`. A\n`cells` run was given the cells in `cell_ids`. A `code` run was\ngiven the code in `code`, which its scratch execution evaluates. A\n`runtime` run was given neither. The runtime scheduled it in\nresponse to a change, such as the cells that read a UI element\nafter its value changes. Other kinds are defined by later versions\nof this protocol.\n"), Om = G({ status: U(["queued"]) }), km = G({
3070
3070
  status: U(["running"]),
3071
3071
  started_at: Up.describe("When the first execution started.")
3072
- }), Am = U([
3073
- "succeeded",
3074
- "failed",
3075
- "interrupted"
3076
- ]).describe("How a run ended. `succeeded` means its work settled without an\nexecution error or interruption. `failed` means an execution's\ncode raised or the host could not finish the cycle. An execution\nskipped because of another cell does not fail its run. `interrupted`\nmeans the cycle was cut short by interruption, even if an earlier\nexecution failed. Execution outcomes retain their individual results.\n"), jm = G({
3072
+ }), Am = G({ kind: U(["succeeded"]) }), jm = G({
3073
+ kind: U(["failed"]),
3074
+ message: qo([q(), bo()]).describe("Why the host could not finish the cycle, to show people. Null when the run failed because an execution's code raised.")
3075
+ }), Mm = G({ kind: U(["cancelled"]) }), Nm = qo([
3076
+ Am,
3077
+ jm,
3078
+ Mm
3079
+ ]).describe("How a run ended, tagged on `kind`. `succeeded` means its work\nsettled without an execution failing or being cancelled. `failed`\nmeans an execution's code raised or the host could not finish the\ncycle. An execution skipped because of another cell does not fail\nits run. `cancelled` means the cycle was cut short by a cancel,\nan interrupt, or its runtime stopping, even if an earlier execution\nfailed. Execution outcomes retain their individual results.\n"), Pm = G({
3077
3080
  status: U(["completed"]),
3078
3081
  started_at: qo([Up, bo()]).describe("When the first execution started. Null if none started."),
3079
3082
  completed_at: Up.describe("When the run ended."),
3080
- outcome: Am.describe("An execution failure does not complete a run while other work remains. Interruption must have taken effect, not merely been requested.")
3081
- }), Mm = qo([
3083
+ outcome: Nm.describe("An execution failure does not complete a run while other work remains. Interruption must have taken effect, not merely been requested.")
3084
+ }), Fm = qo([
3082
3085
  Om,
3083
3086
  km,
3084
- jm
3085
- ]).describe("Where a run is in its lifecycle, tagged on `status`. A run is\n`queued` until its first execution starts and `running` until the\ncycle has settled or been terminated. It is `completed` once all\nmember executions are terminal and no more can be scheduled in this\nrun, and that state is final. A run can complete with no executions.\n"), Nm = G({
3087
+ Pm
3088
+ ]).describe("Where a run is in its lifecycle, tagged on `status`. A run is\n`queued` until its first execution starts and `running` until the\ncycle has settled or been terminated. It is `completed` once all\nmember executions are terminal and no more can be scheduled in this\nrun, and that state is final. A run can complete with no executions.\n"), Im = G({
3086
3089
  id: Cm,
3087
3090
  notebook_id: Qp,
3088
3091
  runtime_id: fm.describe("The runtime that produced this run."),
3089
3092
  origin: Dm,
3090
- state: Mm
3091
- }).describe("One bounded cycle of notebook work initiated by an action. It\nincludes synchronous callbacks and reactive work owned and awaited\nby the runtime's scheduler. Context inherited by an independent task\nrecords provenance, not ownership of the cycle. The host completes it\nonly after all member executions have ended and scheduling for the\ncycle has finished. Completion fixes its status and execution membership.\nIndependently triggered later work starts another run, even when\nits cause belongs to an earlier run. Every consumer attached to\nthe notebook sees it.\n\nRetention is up to the host and independent of replay history.\nHosts SHOULD retain ephemeral results briefly after completion to\nallow reconnection. Runs, executions, and items each have removal\nevents; a cell result may outlive its run.\n"), Pm = G({
3093
+ state: Fm
3094
+ }).describe("One bounded cycle of notebook work initiated by an action. It\nincludes synchronous callbacks and reactive work owned and awaited\nby the runtime's scheduler. Context inherited by an independent task\nrecords provenance, not ownership of the cycle. The host completes it\nonly after all member executions have ended and scheduling for the\ncycle has finished. Completion fixes its status and execution membership.\nIndependently triggered later work starts another run, even when\nits cause belongs to an earlier run. Every consumer attached to\nthe notebook sees it.\n\nRetention is up to the host and independent of replay history.\nHosts SHOULD retain ephemeral results briefly after completion to\nallow reconnection. Runs, executions, and items each have removal\nevents; a cell result may outlive its run.\n"), Lm = G({
3092
3095
  request_id: q().optional().describe("The `Idempotency-Key` of the request that caused this event. Omitted when no request did, and on snapshots unless that request's work is still in progress."),
3093
3096
  time: Up.optional().describe("When the host made this change. Present on live and replayed events; omitted on snapshots."),
3094
- run: Nm
3095
- }).describe("The data of the `run` event. The run as it now is."), Fm = G({
3097
+ run: Im
3098
+ }).describe("The data of the `run` event. The run as it now is."), Rm = G({
3096
3099
  event: U(["run"]),
3097
3100
  id: q().min(1).optional().describe("The resume cursor. Omitted on snapshot and reset events."),
3098
- data: Pm
3099
- }).describe("The `run` event, carried by the notebook stream."), Im = q().min(1).describe("Identifies an execution. Unique within the host."), Lm = G({ status: U(["queued"]) }), Rm = G({
3101
+ data: Lm
3102
+ }).describe("The `run` event, carried by the notebook stream."), zm = q().min(1).describe("Identifies an execution. Unique within the host."), Bm = G({ status: U(["queued"]) }), Vm = G({
3100
3103
  status: U(["running"]),
3101
3104
  started_at: Up.describe("When the code started executing.")
3102
- }), zm = G({ kind: U(["succeeded"]) }), Bm = G({
3105
+ }), Hm = G({
3103
3106
  line: Oo().min(0).describe("Zero-based line within the code."),
3104
3107
  character: Oo().min(0).describe("Zero-based offset in the line, in UTF-16 code units.")
3105
- }).describe("A position within code, using LSP coordinates."), Vm = G({
3106
- start: Bm,
3107
- end: Bm.describe("Exclusive end. Equal to start when only a point is known.")
3108
- }).describe("A span within code."), Hm = G({
3108
+ }).describe("A position within code, using LSP coordinates."), Um = G({
3109
+ start: Hm,
3110
+ end: Hm.describe("Exclusive end. Equal to start when only a point is known.")
3111
+ }).describe("A span within code."), Wm = G({
3109
3112
  mimetype: q().describe("The format of `data`, such as `text/html` or `image/png`."),
3110
3113
  data: q().describe("The rendered value, embedded so clients can display it independently of the runtime. JSON mimetypes are encoded as text and binary mimetypes as base64.")
3111
- }).describe("A rendered value."), Um = G({
3114
+ }).describe("A rendered value."), Gm = G({
3112
3115
  cell_id: nm,
3113
- range: qo([Vm, bo()]).describe("Where in that cell, when known."),
3116
+ range: qo([Um, bo()]).describe("Where in that cell, when known."),
3114
3117
  message: q().describe("What that cell contributes, such as `reads x from C`.")
3115
- }).describe("A cell involved in an error, possibly the one carrying it."), Wm = G({
3116
- kind: q().describe("The producer's identifier, scoped by source. Open; this protocol defines `exception`, `interrupted`, and `internal` for executions. Clients show unrecognized kinds as plain errors."),
3118
+ }).describe("A cell involved in an error, possibly the one carrying it."), Km = G({
3119
+ kind: q().describe("The producer's identifier, scoped by source. Open; this protocol defines `exception` and `internal` for executions. Clients show unrecognized kinds as plain errors."),
3117
3120
  message: q().describe("A description of the error to show people."),
3118
3121
  source: qo([q(), bo()]).describe("Who produced it, such as `marimo` or a SQL analyzer. Scopes kind."),
3119
3122
  severity: U([
@@ -3122,200 +3125,189 @@ var Up = Ip({ offset: !0 }).describe("A date and time with its offset from UTC,
3122
3125
  "information",
3123
3126
  "hint"
3124
3127
  ]).describe("Error unless the producer says otherwise. Only error affects scheduling."),
3125
- range: qo([Vm, bo()]).describe("Where in the code, when known."),
3128
+ range: qo([Um, bo()]).describe("Where in the code, when known."),
3126
3129
  name: qo([q(), bo()]).describe("The exception class, such as `ZeroDivisionError`. Set when kind is exception, null otherwise."),
3127
- traceback: qo([Hm, bo()]).describe("The traceback as rendered by the runtime, plain text or HTML by its mimetype. Null when unavailable or not shown."),
3128
- related: H(Um).describe("Every involved cell, including this one, in canonical order. Each copy of a cross-cell error carries the same list; clients deduplicate on kind and related cell ids. Empty when the error involves this code alone.")
3129
- }).describe("A problem shaped like an LSP diagnostic. Further members are\nkind-specific, as in Problem Details, and a client ignores\nmembers it does not know.\n"), Gm = G({
3130
- kind: U(["error"]),
3131
- error: Wm
3132
- }), Km = G({ kind: U(["interrupted"]) }), qm = G({
3130
+ traceback: qo([Wm, bo()]).describe("The traceback as rendered by the runtime, plain text or HTML by its mimetype. Null when unavailable or not shown."),
3131
+ related: H(Gm).describe("Every involved cell, including this one, in canonical order. Each copy of a cross-cell error carries the same list; clients deduplicate on kind and related cell ids. Empty when the error involves this code alone.")
3132
+ }).describe("A problem shaped like an LSP diagnostic. Further members are\nkind-specific, as in Problem Details, and a client ignores\nmembers it does not know.\n"), qm = G({
3133
+ kind: U(["failed"]),
3134
+ error: Km
3135
+ }), Jm = G({
3133
3136
  kind: U(["skipped"]),
3134
3137
  reason: q().describe("Why the cell did not evaluate. The string is open. This protocol\ndefines `upstream-failed`, a cell it depends on did not produce\nits value because it raised or could not resolve a reference,\n`upstream-stopped`, a cell it depends on stopped the cycle on\npurpose, and `superseded`, a later execution of the same cell\nreplaced this one before it started because the cell's source\nchanged while it waited. Clients show unrecognized reasons as\nskipped, with the message.\n"),
3135
3138
  message: q().describe("Why the cell did not run, to show in place of its output."),
3136
- related: H(Um).describe("The cells involved, the cause first and this cell last.")
3137
- }), Jm = qo([
3138
- zm,
3139
- Gm,
3140
- Km,
3141
- qm
3142
- ]).describe("How an execution ended, tagged on `kind`. A `succeeded` execution\nevaluated its code without raising, and what it showed is its\n`output` item. An `error` carries the error that ended it.\nAn `interrupted` execution was cancelled before or during execution.\nA `skipped` execution did not evaluate because of another cell; it\nhas no value and binds no variables. Other kinds are defined by\nlater versions of this protocol.\n"), Ym = G({
3143
- execution: Im.describe("The execution whose evaluation produced the value. Usually the variable's `execution_id`, and earlier when the runtime carried the value forward."),
3139
+ related: H(Gm).describe("The cells involved, the cause first and this cell last.")
3140
+ }), Ym = qo([
3141
+ Am,
3142
+ qm,
3143
+ Mm,
3144
+ Jm
3145
+ ]).describe("How an execution ended, tagged on `kind`. A `succeeded` execution\nevaluated its code without raising, and what it showed is its\n`output` item. A `failed` execution carries the error that ended it.\nA `cancelled` execution was stopped before or while it ran.\nA `skipped` execution did not evaluate because of another cell; it\nhas no value and binds no variables. Other kinds are defined by\nlater versions of this protocol.\n"), Xm = G({
3146
+ execution: zm.describe("The execution whose evaluation produced the value. Usually the variable's `execution_id`, and earlier when the runtime carried the value forward."),
3144
3147
  update: Oo().min(0).describe("How many times the value has been updated since it was produced. Zero at binding.")
3145
- }).describe("A variable's value at a point in time. Two revisions are equal\nwhen `execution` and `update` are equal. Clients compare\nrevisions for equality.\n"), Xm = G({
3148
+ }).describe("A variable's value at a point in time. Two revisions are equal\nwhen `execution` and `update` are equal. Clients compare\nrevisions for equality.\n"), Zm = G({
3146
3149
  status: U(["completed"]),
3147
3150
  started_at: qo([Up, bo()]).describe("When the code started executing. Null if the execution never started or the start time of a restored result is unknown."),
3148
3151
  completed_at: qo([Up, bo()]).describe("When the execution ended. Null for a restored result whose store does not record it."),
3149
- outcome: Jm,
3150
- depends_on: ms(q(), qo([Ym, bo()])).describe("The variable revisions this result is valid against, keyed by name. Null for a name no retained cell execution had bound. Stamped as the execution ends.")
3151
- }), Zm = qo([
3152
- Lm,
3153
- Rm,
3154
- Xm
3155
- ]).describe("Where an execution is in its lifecycle, tagged on `status`. An\nexecution is `queued` until it starts, `running` while code\nexecutes, and `completed` once it has ended with its `outcome`.\n"), Qm = G({
3156
- id: Im,
3152
+ outcome: Ym,
3153
+ depends_on: ms(q(), qo([Xm, bo()])).describe("The variable revisions this result is valid against, keyed by name. Null for a name no retained cell execution had bound. Stamped as the execution ends.")
3154
+ }), Qm = qo([
3155
+ Bm,
3156
+ Vm,
3157
+ Zm
3158
+ ]).describe("Where an execution is in its lifecycle, tagged on `status`. An\nexecution is `queued` until it starts, `running` while code\nexecutes, and `completed` once it has ended with its `outcome`.\n"), $m = G({
3159
+ id: zm,
3157
3160
  run_id: qo([Cm, bo()]).describe("The run that owns this execution. Every live execution belongs to exactly one run. May name a run the host has dropped. Null only for a restored result whose run is unknown."),
3158
3161
  runtime_id: qo([fm, bo()]).describe("The runtime that produced this execution. Live when it equals the current runtime's id. Null when the producer is unknown."),
3159
- caused_by: qo([Im, bo()]).describe("The execution in the same run whose code was running when this one was scheduled, such as scratch code that ran a cell, set a UI element's value, or wrote state, and the cells that reacted to it. Null for an execution a client requested and for the cells that reacted to one."),
3162
+ caused_by: qo([zm, bo()]).describe("The execution in the same run whose code was running when this one was scheduled, such as scratch code that ran a cell, set a UI element's value, or wrote state, and the cells that reacted to it. Null for an execution a client requested and for the cells that reacted to one."),
3160
3163
  cell_id: qo([nm, bo()]).describe("The cell this execution belongs to. Null for a scratch execution, which evaluates the code in its run's `origin`."),
3161
3164
  code_fingerprint: cm.describe("Fingerprint of the code the execution evaluates. Fixed when the execution is published, while it is still queued."),
3162
- state: Zm
3163
- }).describe("One cell evaluated within a run, or scratch code evaluated once.\nIt moves through `queued`, `running`, and `completed`, and ends with\none outcome. Side effects belong to the execution whose context\nproduced them, and items can arrive after completion while the\nexecution remains retained. Each new input belongs to a running\nexecution. Input calls from completed or removed executions raise\n`EOFError` in the calling code. A scratch execution has no cell and\nevaluates the code in its run's `origin`.\n"), $m = G({
3165
+ state: Qm
3166
+ }).describe("One cell evaluated within a run, or scratch code evaluated once.\nIt moves through `queued`, `running`, and `completed`, and ends with\none outcome. Side effects belong to the execution whose context\nproduced them, and items can arrive after completion while the\nexecution remains retained. Each new input belongs to a running\nexecution. Input calls from completed or removed executions raise\n`EOFError` in the calling code. A scratch execution has no cell and\nevaluates the code in its run's `origin`.\n"), eh = G({
3164
3167
  request_id: q().optional().describe("The `Idempotency-Key` of the request that caused this event. Omitted when no request did, and on snapshots unless that request's work is still in progress."),
3165
3168
  time: Up.optional().describe("When the host made this change. Present on live and replayed events; omitted on snapshots."),
3166
- execution: Qm
3167
- }).describe("The data of the `execution` event. The execution as it now is."), eh = G({
3169
+ execution: $m
3170
+ }).describe("The data of the `execution` event. The execution as it now is."), th = G({
3168
3171
  event: U(["execution"]),
3169
3172
  id: q().min(1).optional().describe("The resume cursor. Omitted on snapshot and reset events."),
3170
- data: $m
3171
- }).describe("The `execution` event, carried by the notebook stream."), th = q().min(1).describe("Identifies an output, console, display, input, or variable item uniquely within the host. Sending an item again with the same id replaces it."), nh = G({
3172
- id: th,
3173
- execution_id: Im,
3174
- media: qo([Hm, bo()]).describe("The output as last rendered. Null when the code set it to nothing or cleared it.")
3175
- }).describe("What an execution's code shows as its result, such as the value of\na cell's last expression. An execution has at most one, published\nonce the code first sets it. A producer replaces it by sending it\nagain with the same id, including after the execution completes,\nand it is removed with its execution.\n"), rh = G({
3173
+ data: eh
3174
+ }).describe("The `execution` event, carried by the notebook stream."), nh = q().min(1).describe("Identifies an output, console, input, or variable item uniquely within the host. Sending an item again with the same id replaces it."), rh = G({
3175
+ id: nh,
3176
+ execution_id: zm,
3177
+ media: qo([Wm, bo()]).describe("The output as last rendered. Null when the code set it to nothing or cleared it.")
3178
+ }).describe("What an execution's code shows as its result, such as the value of\na cell's last expression. An execution has at most one, published\nonce the code first sets it. A producer replaces it by sending it\nagain with the same id, including after the execution completes,\nand it is removed with its execution.\n"), ih = G({
3176
3179
  request_id: q().optional().describe("The `Idempotency-Key` of the request that caused this event. Omitted when no request did, and on snapshots unless that request's work is still in progress."),
3177
3180
  time: Up.optional().describe("When the host made this change. Present on live and replayed events; omitted on snapshots."),
3178
- output: nh
3179
- }).describe("The data of the `output` event. The output as it now is."), ih = G({
3181
+ output: rh
3182
+ }).describe("The data of the `output` event. The output as it now is."), ah = G({
3180
3183
  event: U(["output"]),
3181
3184
  id: q().min(1).optional().describe("The resume cursor. Omitted on snapshot and reset events."),
3182
- data: rh
3183
- }).describe("The `output` event, carried by the notebook stream."), ah = G({
3184
- id: th,
3185
- execution_id: Im,
3186
- seq: Oo().min(0).describe("Position among the execution's items, increasing in the order they were produced."),
3187
- name: U(["stdout", "stderr"]).describe("Which stream the text went to."),
3185
+ data: ih
3186
+ }).describe("The `output` event, carried by the notebook stream."), oh = G({
3187
+ kind: U(["text"]),
3188
+ stream: U(["stdout", "stderr"]).describe("Which stream the text went to."),
3188
3189
  text: q().describe("The text, exactly as written.")
3189
- }).describe("Text an execution wrote to stdout or stderr. Items are ordinary\nobjects: a producer replaces one by sending it again with the\nsame id, and items are removed with their execution.\n"), oh = G({
3190
+ }), sh = G({
3191
+ kind: U(["media"]),
3192
+ media: Wm.describe("Something rendered into the console, such as a figure from `plt.show()` or a formatted traceback.")
3193
+ }), ch = qo([oh, sh]), lh = G({
3194
+ id: nh,
3195
+ execution_id: zm,
3196
+ seq: Oo().min(0).describe("Position among the execution's console and input items, increasing in the order they were produced."),
3197
+ content: ch.describe("What was written, tagged on `kind`.")
3198
+ }).describe("One entry in an execution's console, which is text written to\nstdout or stderr, or media rendered among it. A producer replaces\nan entry by sending it again with the same id, and entries are\nremoved with their execution.\n"), uh = G({
3190
3199
  request_id: q().optional().describe("The `Idempotency-Key` of the request that caused this event. Omitted when no request did, and on snapshots unless that request's work is still in progress."),
3191
3200
  time: Up.optional().describe("When the host made this change. Present on live and replayed events; omitted on snapshots."),
3192
- console: ah
3193
- }).describe("The data of the `console` event. The console as it now is."), sh = G({
3201
+ console: lh
3202
+ }).describe("The data of the `console` event. The console as it now is."), dh = G({
3194
3203
  event: U(["console"]),
3195
3204
  id: q().min(1).optional().describe("The resume cursor. Omitted on snapshot and reset events."),
3196
- data: oh
3197
- }).describe("The `console` event, carried by the notebook stream."), ch = G({
3198
- id: th,
3199
- execution_id: Im,
3200
- seq: Oo().min(0).describe("Position among the execution's items, increasing in the order they were produced."),
3201
- content: Hm.describe("The rendered value.")
3202
- }).describe("A value an execution showed as a side effect, such as a figure\nfrom `plt.show()`. A producer replaces one by sending it again\nwith the same id, which is how a progress bar updates in place.\n"), lh = G({
3203
- request_id: q().optional().describe("The `Idempotency-Key` of the request that caused this event. Omitted when no request did, and on snapshots unless that request's work is still in progress."),
3204
- time: Up.optional().describe("When the host made this change. Present on live and replayed events; omitted on snapshots."),
3205
- display: ch
3206
- }).describe("The data of the `display` event. The display as it now is."), uh = G({
3207
- event: U(["display"]),
3208
- id: q().min(1).optional().describe("The resume cursor. Omitted on snapshot and reset events."),
3209
- data: lh
3210
- }).describe("The `display` event, carried by the notebook stream."), dh = U([
3205
+ data: uh
3206
+ }).describe("The `console` event, carried by the notebook stream."), fh = U([
3211
3207
  "pending",
3212
3208
  "answered",
3213
3209
  "cancelled"
3214
- ]).describe("An input starts `pending` while it waits for an answer. It becomes\n`answered` when the host accepts a reply for delivery, or `cancelled`\nwhen the host ends the wait while input is still pending. Both\n`answered` and `cancelled` are final. An answered input stays\nanswered if execution later fails before consuming the value.\n"), fh = G({
3215
- id: th.describe("Identifies this prompt uniquely across executions and runtime restarts."),
3216
- execution_id: Im,
3217
- seq: Oo().min(0).describe("Position among the execution's console, display, and input items, increasing in production order."),
3210
+ ]).describe("An input starts `pending` while it waits for an answer. It becomes\n`answered` when the host accepts a reply for delivery, or `cancelled`\nwhen the host ends the wait while input is still pending. Both\n`answered` and `cancelled` are final. An answered input stays\nanswered if execution later fails before consuming the value.\n"), ph = G({
3211
+ id: nh.describe("Identifies this prompt uniquely across executions and runtime restarts."),
3212
+ execution_id: zm,
3213
+ seq: Oo().min(0).describe("Position among the execution's console and input items, increasing in production order."),
3218
3214
  prompt: q().describe("The prompt to display, which may be empty."),
3219
3215
  password: W().describe("Whether clients must obscure the value as it is entered."),
3220
- status: dh
3221
- }).describe("A running execution's request for a line of text. Its identity,\nexecution, prompt, password flag, and position stay fixed while\nits status tracks the request. The record remains with its\nexecution after it is answered or cancelled. Submitted answers\ntravel through the reply endpoint to the runtime.\n"), ph = G({
3216
+ status: fh
3217
+ }).describe("A running execution's request for a line of text. Its identity,\nexecution, prompt, password flag, and position stay fixed while\nits status tracks the request. The record remains with its\nexecution after it is answered or cancelled. Submitted answers\ntravel through the reply endpoint to the runtime.\n"), mh = G({
3222
3218
  request_id: q().optional().describe("The `Idempotency-Key` of the request that caused this event. Omitted when no request did, and on snapshots unless that request's work is still in progress."),
3223
3219
  time: Up.optional().describe("When the host made this change. Present on live and replayed events; omitted on snapshots."),
3224
- input: fh
3225
- }).describe("The data of the `input` event. The input as it now is."), mh = G({
3220
+ input: ph
3221
+ }).describe("The data of the `input` event. The input as it now is."), hh = G({
3226
3222
  event: U(["input"]),
3227
3223
  id: q().min(1).optional().describe("The resume cursor. Omitted on snapshot and reset events."),
3228
- data: ph
3229
- }).describe("The `input` event, carried by the notebook stream."), hh = G({
3230
- id: th,
3231
- execution_id: Im.describe("The execution that bound the name."),
3224
+ data: mh
3225
+ }).describe("The `input` event, carried by the notebook stream."), gh = G({
3226
+ id: nh,
3227
+ execution_id: zm.describe("The execution that bound the name."),
3232
3228
  name: q().describe("The name in the namespace."),
3233
- revision: Ym,
3229
+ revision: Xm,
3234
3230
  type: qo([q(), bo()]).describe("The runtime's label for the value's type. A host may leave it null."),
3235
3231
  preview: qo([q(), bo()]).describe("A short rendering of the value. A host may leave it null.")
3236
- }).describe("A name a cell's execution bound in the notebook's namespace, with\nthe revision of its value. The execution binds it as it ends, and\nthe item is removed with the execution. An update, as when a\nstate setter runs or a client sets a value, advances the revision\nwithout binding again, and the producer sends the item again with\nthe same id. Hosts publish a cell execution's variables before its\n`completed` status, and remove a cell's previous execution and\nits items before publishing the next one. A scratch execution's\nnames live only while it runs, so it publishes no variables.\n"), gh = G({
3232
+ }).describe("A name a cell's execution bound in the notebook's namespace, with\nthe revision of its value. The execution binds it as it ends, and\nthe item is removed with the execution. An update, as when a\nstate setter runs or a client sets a value, advances the revision\nwithout binding again, and the producer sends the item again with\nthe same id. Hosts publish a cell execution's variables before its\n`completed` status, and remove a cell's previous execution and\nits items before publishing the next one. A scratch execution's\nnames live only while it runs, so it publishes no variables.\n"), _h = G({
3237
3233
  request_id: q().optional().describe("The `Idempotency-Key` of the request that caused this event. Omitted when no request did, and on snapshots unless that request's work is still in progress."),
3238
3234
  time: Up.optional().describe("When the host made this change. Present on live and replayed events; omitted on snapshots."),
3239
- variable: hh
3240
- }).describe("The data of the `variable` event. The variable as it now is."), _h = G({
3235
+ variable: gh
3236
+ }).describe("The data of the `variable` event. The variable as it now is."), vh = G({
3241
3237
  event: U(["variable"]),
3242
3238
  id: q().min(1).optional().describe("The resume cursor. Omitted on snapshot and reset events."),
3243
- data: gh
3244
- }).describe("The `variable` event, carried by the notebook stream."), vh = G({
3239
+ data: _h
3240
+ }).describe("The `variable` event, carried by the notebook stream."), yh = G({
3245
3241
  defs: H(q()).describe("Names this cell defines."),
3246
3242
  refs: H(q()).describe("Names this cell reads from other cells."),
3247
- errors: H(Wm).describe("Diagnostics about the code. Only an `error` affects scheduling. `multiple-definitions` lists the definers in `related`, each `range` at its definition; `cycle-dependencies` lists the cycle. Both are reported on every cell involved, differing only in `range`. Every other kind belongs to the analyzer named in `source`.")
3248
- }).describe("What a cell's text implies: the names it defines and reads, which\nare the edges of the dependency graph, and the errors found in the\ntext alone or across the set of cells. A pure function of the\ncode, so two producers compute the same values.\n"), yh = G({
3243
+ errors: H(Km).describe("Diagnostics about the code. Only an `error` affects scheduling. `multiple-definitions` lists the definers in `related`, each `range` at its definition; `cycle-dependencies` lists the cycle. Both are reported on every cell involved, differing only in `range`. Every other kind belongs to the analyzer named in `source`.")
3244
+ }).describe("What a cell's text implies: the names it defines and reads, which\nare the edges of the dependency graph, and the errors found in the\ntext alone or across the set of cells. A pure function of the\ncode, so two producers compute the same values.\n"), bh = G({
3249
3245
  notebook_id: Qp.describe("The notebook this analysis belongs to."),
3250
3246
  document_etag: rm.describe("The document revision this analysis describes. Equal to the document's `etag` while the analysis is current."),
3251
- cells: ms(q(), vh).describe("Every cell of that revision, by id.")
3252
- }).describe("What a document's cells imply, computed together over one\nrevision of the document so that cross-cell errors agree. One\nper notebook, and removed with it. It follows the document it\ndescribes, and `document_etag` says which revision that is.\n"), bh = G({
3247
+ cells: ms(q(), yh).describe("Every cell of that revision, by id.")
3248
+ }).describe("What a document's cells imply, computed together over one\nrevision of the document so that cross-cell errors agree. One\nper notebook, and removed with it. It follows the document it\ndescribes, and `document_etag` says which revision that is.\n"), xh = G({
3253
3249
  request_id: q().optional().describe("The `Idempotency-Key` of the request that caused this event. Omitted when no request did, and on snapshots unless that request's work is still in progress."),
3254
3250
  time: Up.optional().describe("When the host made this change. Present on live and replayed events; omitted on snapshots."),
3255
- analysis: yh
3256
- }).describe("The data of the `analysis` event. The analysis as it now is."), xh = G({
3251
+ analysis: bh
3252
+ }).describe("The data of the `analysis` event. The analysis as it now is."), Sh = G({
3257
3253
  event: U(["analysis"]),
3258
3254
  id: q().min(1).optional().describe("The resume cursor. Omitted on snapshot and reset events."),
3259
- data: bh
3260
- }).describe("The `analysis` event, carried by the notebook stream."), Sh = G({
3255
+ data: xh
3256
+ }).describe("The `analysis` event, carried by the notebook stream."), Ch = G({
3261
3257
  type: q().min(1).describe("A namespaced event type under a namespace the producer controls, such as `marimo.pair.agent-message`. Clients ignore types they do not recognize while retaining the stream cursor."),
3262
3258
  data: Zo().describe("Any JSON value, including null. The producer defines its schema and consumers of the type validate it.")
3263
- }).describe("A notebook occurrence with a producer-defined payload. It is replayed\nwhile event history is retained. Delivery is limited to live events\nand replay on the notebook stream, with `run_id` omitted from the\nstream's filters. The notebook is identified by the stream.\n"), Ch = G({
3264
- custom: Sh,
3259
+ }).describe("A notebook occurrence with a producer-defined payload. It is replayed\nwhile event history is retained. Delivery is limited to live events\nand replay on the notebook stream, with `run_id` omitted from the\nstream's filters. The notebook is identified by the stream.\n"), wh = G({
3260
+ custom: Ch,
3265
3261
  request_id: q().optional().describe("The `Idempotency-Key` of the request that caused this event. Omitted when no request did, and on snapshots unless that request's work is still in progress."),
3266
3262
  time: Up.describe("When the host emitted this event. Preserved on replay.")
3267
- }).describe("The data of a `custom` event. This envelope is standardized; the custom type and payload are defined by their producer."), wh = G({
3263
+ }).describe("The data of a `custom` event. This envelope is standardized; the custom type and payload are defined by their producer."), Th = G({
3268
3264
  event: U(["custom"]),
3269
3265
  id: q().min(1).optional().describe("The resume cursor. Omitted on snapshot and reset events."),
3270
- data: Ch
3271
- }).describe("The `custom` event, carried by the notebook stream."), Th = G({
3266
+ data: wh
3267
+ }).describe("The `custom` event, carried by the notebook stream."), Eh = G({
3272
3268
  request_id: q().optional().describe("The `Idempotency-Key` of the request that caused this event. Omitted when no request did, and on snapshots unless that request's work is still in progress."),
3273
3269
  time: Up.optional().describe("When the host made this change. Present on live and replayed events; omitted on snapshots."),
3274
3270
  id: q().describe("The id of the object that was removed.")
3275
- }).describe("The data of an event ending in `.removed`. The event name identifies the kind of object to delete from the client's view. Removing a notebook also removes its document and cells, and removing an execution removes its inputs. Clients discard these child records when they receive the parent's removal event."), Eh = G({
3271
+ }).describe("The data of an event ending in `.removed`. The event name identifies the kind of object to delete from the client's view. Removing a notebook also removes its document and cells, and removing an execution removes its inputs. Clients discard these child records when they receive the parent's removal event."), Dh = G({
3276
3272
  event: U(["project.removed"]),
3277
3273
  id: q().min(1).optional().describe("The resume cursor. Omitted on snapshot and reset events."),
3278
- data: Th
3279
- }).describe("The `project.removed` event, carried by the catalog stream."), Dh = G({
3274
+ data: Eh
3275
+ }).describe("The `project.removed` event, carried by the catalog stream."), Oh = G({
3280
3276
  event: U(["notebook.removed"]),
3281
3277
  id: q().min(1).optional().describe("The resume cursor. Omitted on snapshot and reset events."),
3282
- data: Th
3283
- }).describe("The `notebook.removed` event, carried by the catalog and notebook streams."), Oh = G({
3278
+ data: Eh
3279
+ }).describe("The `notebook.removed` event, carried by the catalog and notebook streams."), kh = G({
3284
3280
  event: U(["cell.removed"]),
3285
3281
  id: q().min(1).optional().describe("The resume cursor. Omitted on snapshot and reset events."),
3286
- data: Th
3287
- }).describe("The `cell.removed` event, carried by the notebook stream."), kh = G({
3282
+ data: Eh
3283
+ }).describe("The `cell.removed` event, carried by the notebook stream."), Ah = G({
3288
3284
  event: U(["runtime.removed"]),
3289
3285
  id: q().min(1).optional().describe("The resume cursor. Omitted on snapshot and reset events."),
3290
- data: Th
3291
- }).describe("The `runtime.removed` event, carried by the catalog and notebook streams."), Ah = G({
3286
+ data: Eh
3287
+ }).describe("The `runtime.removed` event, carried by the catalog and notebook streams."), jh = G({
3292
3288
  event: U(["attachment.removed"]),
3293
3289
  id: q().min(1).optional().describe("The resume cursor. Omitted on snapshot and reset events."),
3294
- data: Th
3295
- }).describe("The `attachment.removed` event, carried by the catalog and notebook streams."), jh = G({
3290
+ data: Eh
3291
+ }).describe("The `attachment.removed` event, carried by the catalog and notebook streams."), Mh = G({
3296
3292
  event: U(["run.removed"]),
3297
3293
  id: q().min(1).optional().describe("The resume cursor. Omitted on snapshot and reset events."),
3298
- data: Th
3299
- }).describe("The `run.removed` event, carried by the notebook stream."), Mh = G({
3294
+ data: Eh
3295
+ }).describe("The `run.removed` event, carried by the notebook stream."), Nh = G({
3300
3296
  event: U(["execution.removed"]),
3301
3297
  id: q().min(1).optional().describe("The resume cursor. Omitted on snapshot and reset events."),
3302
- data: Th
3303
- }).describe("The `execution.removed` event, carried by the notebook stream."), Nh = G({
3298
+ data: Eh
3299
+ }).describe("The `execution.removed` event, carried by the notebook stream."), Ph = G({
3304
3300
  event: U(["output.removed"]),
3305
3301
  id: q().min(1).optional().describe("The resume cursor. Omitted on snapshot and reset events."),
3306
- data: Th
3307
- }).describe("The `output.removed` event, carried by the notebook stream."), Ph = G({
3302
+ data: Eh
3303
+ }).describe("The `output.removed` event, carried by the notebook stream."), Fh = G({
3308
3304
  event: U(["console.removed"]),
3309
3305
  id: q().min(1).optional().describe("The resume cursor. Omitted on snapshot and reset events."),
3310
- data: Th
3311
- }).describe("The `console.removed` event, carried by the notebook stream."), Fh = G({
3312
- event: U(["display.removed"]),
3313
- id: q().min(1).optional().describe("The resume cursor. Omitted on snapshot and reset events."),
3314
- data: Th
3315
- }).describe("The `display.removed` event, carried by the notebook stream."), Ih = G({
3306
+ data: Eh
3307
+ }).describe("The `console.removed` event, carried by the notebook stream."), Ih = G({
3316
3308
  event: U(["variable.removed"]),
3317
3309
  id: q().min(1).optional().describe("The resume cursor. Omitted on snapshot and reset events."),
3318
- data: Th
3310
+ data: Eh
3319
3311
  }).describe("The `variable.removed` event, carried by the notebook stream."), Lh = G({
3320
3312
  event: U(["reset"]),
3321
3313
  id: q().min(1).optional().describe("The resume cursor. Omitted on snapshot and reset events."),
@@ -3332,16 +3324,14 @@ var Up = Ip({ offset: !0 }).describe("A date and time with its offset from UTC,
3332
3324
  dm,
3333
3325
  gm,
3334
3326
  Sm,
3335
- Fm,
3336
- eh,
3337
- ih,
3338
- sh,
3339
- uh,
3340
- mh,
3341
- _h,
3342
- xh,
3343
- wh,
3344
- Eh,
3327
+ Rm,
3328
+ th,
3329
+ ah,
3330
+ dh,
3331
+ hh,
3332
+ vh,
3333
+ Sh,
3334
+ Th,
3345
3335
  Dh,
3346
3336
  Oh,
3347
3337
  kh,
@@ -3366,12 +3356,11 @@ var Up = Ip({ offset: !0 }).describe("A date and time with its offset from UTC,
3366
3356
  "execution",
3367
3357
  "output",
3368
3358
  "console",
3369
- "display",
3370
3359
  "input",
3371
3360
  "variable",
3372
3361
  "analysis",
3373
3362
  "custom"
3374
- ]).describe("The kinds a stream carries, and the values `types` accepts. The catalog stream carries host, project, notebook, runtime, and attachment. A notebook's stream carries notebook, document, cell, runtime, attachment, run, execution, output, console, display, input, variable, analysis, and custom. Custom events describe occurrences rather than object state."), Vh = G({
3363
+ ]).describe("The kinds a stream carries, and the values `types` accepts. The catalog stream carries host, project, notebook, runtime, and attachment. A notebook's stream carries notebook, document, cell, runtime, attachment, run, execution, output, console, input, variable, analysis, and custom. Custom events describe occurrences rather than object state."), Vh = G({
3375
3364
  pid: Oo().min(1).describe("The process id."),
3376
3365
  started_at: Up.describe("When the process started.")
3377
3366
  }).describe("The process that wrote a record. A client checks that a process\nwith this `pid` that started at `started_at` still exists. If it\ndoes not, the record is stale and may be removed.\n");
@@ -3665,7 +3654,7 @@ var Tg = {
3665
3654
  query: {},
3666
3655
  headers: { "idempotency-key": !0 },
3667
3656
  body: dg,
3668
- responses: { 200: fh },
3657
+ responses: { 200: ph },
3669
3658
  problems: {
3670
3659
  400: [Hh],
3671
3660
  401: [Uh],
@@ -3699,7 +3688,7 @@ var Tg = {
3699
3688
  query: {},
3700
3689
  headers: { "idempotency-key": !0 },
3701
3690
  body: null,
3702
- responses: { 202: Nm },
3691
+ responses: { 202: Im },
3703
3692
  problems: {
3704
3693
  400: [Hh],
3705
3694
  401: [Uh],
@@ -3733,7 +3722,7 @@ var Tg = {
3733
3722
  query: {},
3734
3723
  headers: { "idempotency-key": !0 },
3735
3724
  body: ug,
3736
- responses: { 202: Nm },
3725
+ responses: { 202: Im },
3737
3726
  problems: {
3738
3727
  400: [Hh],
3739
3728
  401: [Uh],
@@ -3751,7 +3740,7 @@ var Tg = {
3751
3740
  query: {},
3752
3741
  headers: { "idempotency-key": !0 },
3753
3742
  body: cg,
3754
- responses: { 202: Nm },
3743
+ responses: { 202: Im },
3755
3744
  problems: {
3756
3745
  400: [Hh],
3757
3746
  401: [Uh],
@@ -4510,7 +4499,6 @@ var n_ = {
4510
4499
  "run",
4511
4500
  "execution",
4512
4501
  "console",
4513
- "display",
4514
4502
  "input",
4515
4503
  "output",
4516
4504
  "variable",
@@ -4642,7 +4630,7 @@ function u_(e) {
4642
4630
  }
4643
4631
  let f = e.get(a);
4644
4632
  if (o.event === "ready" && l.phase === "snapshot") {
4645
- for (let e of f.resources.executions.executions.values()) if (w(e.record, !0), e.output && T(e.output, e.record), s) for (let t of e.items.values()) t.kind === "display" && s(e.record, t, !1);
4633
+ for (let e of f.resources.executions.executions.values()) if (w(e.record, !0), e.output && T(e.output, e.record), s) for (let t of e.items.values()) t.kind === "console" && t.content.kind === "media" && s(e.record, t, !1);
4646
4634
  let e = x;
4647
4635
  x = [];
4648
4636
  for (let t of e) {
@@ -4671,9 +4659,8 @@ function u_(e) {
4671
4659
  return;
4672
4660
  }
4673
4661
  case "console":
4674
- case "display":
4675
4662
  case "input": {
4676
- let e = o.event === "console" ? o.data.console : o.event === "display" ? o.data.display : o.data.input, t = p.get(e.execution_id);
4663
+ let e = o.event === "console" ? o.data.console : o.data.input, t = p.get(e.execution_id);
4677
4664
  if (t && s) {
4678
4665
  let n = t.items.get(e.id);
4679
4666
  if (n) {
@@ -12439,7 +12426,7 @@ var vD = (e) => {
12439
12426
  output: t
12440
12427
  };
12441
12428
  } };
12442
- } }, wD = Y.lazy(() => import("./chat-ui-Ci-OmyBN.js").then((e) => ({ default: e.Chatbot }))), TD = H(G({
12429
+ } }, wD = Y.lazy(() => import("./chat-ui-DFoH-uxc.js").then((e) => ({ default: e.Chatbot }))), TD = H(G({
12443
12430
  id: q(),
12444
12431
  role: U([
12445
12432
  "system",
@@ -12908,7 +12895,7 @@ function CO(e, t) {
12908
12895
  }
12909
12896
  //#endregion
12910
12897
  //#region src/plugins/impl/DataEditorPlugin.tsx
12911
- var wO = Y.lazy(() => import("./glide-data-editor-ttA3lt4w.js").then((e) => e.t)), TO = aD("marimo-data-editor", { cssStyles: [OD, kD] }).withData(G({
12898
+ var wO = Y.lazy(() => import("./glide-data-editor-lWcwB0Si.js").then((e) => e.t)), TO = aD("marimo-data-editor", { cssStyles: [OD, kD] }).withData(G({
12912
12899
  initialValue: G({ edits: H(G({
12913
12900
  rowIdx: K(),
12914
12901
  columnId: q(),
@@ -32631,7 +32618,7 @@ function EU(e) {
32631
32618
  }
32632
32619
  //#endregion
32633
32620
  //#region src/components/editor/renderers/slides-layout/slides-layout.tsx
32634
- var DU = Y.lazy(() => import("./reveal-component-D63GuWKz.js")), OU = (e) => {
32621
+ var DU = Y.lazy(() => import("./reveal-component-B63xZtLQ.js")), OU = (e) => {
32635
32622
  let t = (0, Z.c)(33), { layout: n, setLayout: r, cells: i, mode: a } = e, o = Ao(Ws), s = a === "read" || o, c = Ao(Sa) > 1, [l, u] = (0, Y.useState)(null), d;
32636
32623
  t[0] !== i || t[1] !== n ? (d = wz(i, n), t[0] = i, t[1] = n, t[2] = d) : d = t[2];
32637
32624
  let { slideCells: f, skippedIds: p, noOutputIds: m, slideTypes: h, startCellIndex: g } = d, _;
@@ -33487,7 +33474,7 @@ var fW = (e) => {
33487
33474
  })
33488
33475
  }), t[24] = p, t[25] = g), g;
33489
33476
  }, hW = (0, Y.memo)((e) => {
33490
- let t = (0, Z.c)(53), { consoleOutputs: n, cellOutputArea: r, cellId: i, config: a, code: o, showCode: s, mode: c, name: u, kiosk: d, showErrorTracebacks: f } = e, p = (0, Y.useRef)(null), m = _r(i), { execution: h, freshness: g } = An(i), _ = h.outcome === "error", v = h.outcome === "skipped", y;
33477
+ let t = (0, Z.c)(53), { consoleOutputs: n, cellOutputArea: r, cellId: i, config: a, code: o, showCode: s, mode: c, name: u, kiosk: d, showErrorTracebacks: f } = e, p = (0, Y.useRef)(null), m = _r(i), { execution: h, freshness: g } = An(i), _ = h.outcome === "failed", v = h.outcome === "skipped", y;
33491
33478
  t[0] !== h || t[1] !== g ? (y = Nn(h, g, !1), t[0] = h, t[1] = g, t[2] = y) : y = t[2];
33492
33479
  let b = y, x;
33493
33480
  t[3] === h.status ? x = t[4] : (x = kn(h.status), t[3] = h.status, t[4] = x);
@@ -33553,7 +33540,7 @@ var fW = (e) => {
33553
33540
  }
33554
33541
  if (da({
33555
33542
  errored: _,
33556
- interrupted: h.outcome === "interrupted",
33543
+ interrupted: h.outcome === "cancelled",
33557
33544
  stopped: v,
33558
33545
  output: m,
33559
33546
  showErrorTracebacks: f
@@ -34573,7 +34560,7 @@ function kG(e, t) {
34573
34560
  }
34574
34561
  //#endregion
34575
34562
  //#region src/core/islands/worker/worker.tsx?worker&url
34576
- var AG = "/assets/worker-D70Lo75A.js", jG = class {
34563
+ var AG = "/assets/worker-DFvnFhLF.js", jG = class {
34577
34564
  url;
34578
34565
  name;
34579
34566
  constructor(e = {}) {
@@ -34659,13 +34646,13 @@ var NG = class {
34659
34646
  break;
34660
34647
  case "console": {
34661
34648
  let n = t.data.console, r = e.get(n.execution_id);
34662
- if (t.id !== void 0 && r !== void 0) {
34649
+ if (t.id !== void 0 && r !== void 0 && n.content.kind === "text") {
34663
34650
  let e = Gi({
34664
34651
  cell_id: r,
34665
34652
  console: {
34666
- channel: n.name,
34653
+ channel: n.content.stream,
34667
34654
  mimetype: "text/plain",
34668
- data: n.text,
34655
+ data: n.content.text,
34669
34656
  timestamp: t.data.time ? Date.parse(t.data.time) / 1e3 : Date.now() / 1e3
34670
34657
  }
34671
34658
  });