@marimo-team/islands 0.25.3-dev465 → 0.25.3-dev468

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 (26) hide show
  1. package/dist/{ErrorBoundary-Bitt9N44.js → ErrorBoundary-Boj3j_O9.js} +1 -1
  2. package/dist/{code-visibility-CK8BfIsO.js → code-visibility-CKpE4dr8.js} +1 -1
  3. package/dist/{common-C-TqeXix.js → common-Bd2ykI45.js} +1 -1
  4. package/dist/{data-grid-overlay-editor-CilodNKx.js → data-grid-overlay-editor-CHMayxsD.js} +1 -1
  5. package/dist/{feedback-button-B_nA4iPT.js → feedback-button-DHTIg23_.js} +2 -2
  6. package/dist/{glide-data-editor-BQ0Ykfzt.js → glide-data-editor-D_06qAOd.js} +3 -3
  7. package/dist/{globals-BkrP88Os.js → globals-UfdaMAwk.js} +1 -1
  8. package/dist/main.js +8 -6
  9. package/dist/{number-overlay-editor-C9lu04cw.js → number-overlay-editor-Cc2hWES0.js} +1 -1
  10. package/dist/{reveal-component-BvH2Wxyh.js → reveal-component-lcstK0cn.js} +2 -2
  11. package/package.json +1 -1
  12. package/src/__mocks__/executions.ts +1 -0
  13. package/src/components/editor/cell/__tests__/useRunCells.test.tsx +1 -0
  14. package/src/core/cells/__tests__/runs.test.ts +1 -0
  15. package/src/core/cells/session.ts +1 -0
  16. package/src/core/executions/__tests__/atoms.test.ts +1 -0
  17. package/src/core/executions/__tests__/freshness.test.ts +1 -0
  18. package/src/core/executions/__tests__/interrupt.test.ts +1 -0
  19. package/src/core/executions/__tests__/output-lifecycle.test.ts +1 -0
  20. package/src/core/executions/__tests__/run.test.ts +1 -0
  21. package/src/core/executions/__tests__/select.test.ts +2 -0
  22. package/src/core/islands/__tests__/bridge.test.ts +1 -0
  23. package/src/core/notebook/replica/__tests__/executions.test.ts +8 -1
  24. package/src/core/notebook/replica/__tests__/results.test.ts +1 -0
  25. package/src/core/transports/__tests__/static.test.ts +1 -0
  26. package/src/core/wasm/__tests__/bridge.test.ts +3 -0
@@ -148,7 +148,7 @@ function L(e) {
148
148
  }
149
149
  //#endregion
150
150
  //#region src/components/editor/boundary/ErrorBoundary.tsx
151
- var R = (0, T.lazy)(() => import("./feedback-button-B_nA4iPT.js").then((e) => ({ default: e.FeedbackModal }))), z = (e) => {
151
+ var R = (0, T.lazy)(() => import("./feedback-button-DHTIg23_.js").then((e) => ({ default: e.FeedbackModal }))), z = (e) => {
152
152
  let t = (0, w.c)(2), n;
153
153
  return t[0] === e.children ? n = t[1] : (n = /* @__PURE__ */ (0, N.jsx)(O, {
154
154
  FallbackComponent: B,
@@ -14,7 +14,7 @@ function y() {
14
14
  return e.warn("Failed to get version from mount config"), null;
15
15
  }
16
16
  }
17
- var b = y() || "0.25.3-dev465", x = s(b), S = s(!0);
17
+ var b = y() || "0.25.3-dev468", x = s(b), S = s(!0);
18
18
  s(null);
19
19
  //#endregion
20
20
  //#region src/core/wasm/state.ts
@@ -33,7 +33,7 @@ import { o as ba } from "./dist-DNkrY12t.js";
33
33
  import { a as xa, i as Sa, n as Ca, o as wa, r as Ta, t as Ea } from "./dialog-rgayPemF.js";
34
34
  import { t as Da } from "./useAsyncData-P5-Oovhq.js";
35
35
  import { n as W, t as G } from "./objectWithoutPropertiesLoose-BRDcTsfB.js";
36
- import { n as Oa, t as ka } from "./ErrorBoundary-Bitt9N44.js";
36
+ import { n as Oa, t as ka } from "./ErrorBoundary-Boj3j_O9.js";
37
37
  import { W as Aa, n as ja } from "./vega-loader.browser-Co9gYE8Z.js";
38
38
  import { a as Ma, n as Na, r as Pa, t as Fa } from "./loader-Bin_dutt.js";
39
39
  import { t as Ia } from "./useIframeCapabilities-HTZiVlGV.js";
@@ -2,7 +2,7 @@ import { a as e } from "./rolldown-runtime-BPCzCO3I.js";
2
2
  import { t } from "./react-Bgs_wQh3.js";
3
3
  import { t as n } from "./react-dom-DdqGVp5N.js";
4
4
  import { c as r, l as i, u as a } from "./data-grid-types-DIX_pCco.js";
5
- import { a as o, i as s, n as c, r as l } from "./glide-data-editor-BQ0Ykfzt.js";
5
+ import { a as o, i as s, n as c, r as l } from "./glide-data-editor-D_06qAOd.js";
6
6
  //#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.1_57c124ac5a994dbbf13fd11838cf9ba9/node_modules/@glideapps/glide-data-grid/dist/esm/internal/data-grid-overlay-editor/data-grid-overlay-editor-style.js
7
7
  var u = /* @__PURE__ */ e(t(), 1), d = /* @__PURE__ */ e(n(), 1), f = /*#__PURE__*/ o("div")({
8
8
  name: "DataGridOverlayEditorStyle",
@@ -4,13 +4,13 @@ import { t as r } from "./react-Bgs_wQh3.js";
4
4
  import { t as i } from "./compiler-runtime-C5KHtL5D.js";
5
5
  import { t as a } from "./copy-icon-CDvvlY90.js";
6
6
  import { D as o, I as s, K as c, O as l, P as u, an as d, en as f, i as p, n as m } from "./error-entries-CNH4hNt-.js";
7
- import { n as h, t as ee } from "./globals-BkrP88Os.js";
7
+ import { n as h, t as ee } from "./globals-UfdaMAwk.js";
8
8
  import { r as g } from "./assertNever-DOTNJ2Y4.js";
9
9
  import { t as _ } from "./jsx-runtime-D8btoEHk.js";
10
10
  import { Rt as te, St as ne, m as v } from "./use-restore-focus-BLj45Ibw.js";
11
11
  import { a as re, i as ie, n as ae, r as oe } from "./dialog-rgayPemF.js";
12
12
  import { t as se } from "./useAsyncData-P5-Oovhq.js";
13
- import { t as ce } from "./code-visibility-CK8BfIsO.js";
13
+ import { t as ce } from "./code-visibility-CKpE4dr8.js";
14
14
  //#region src/components/ui/skeleton.tsx
15
15
  var y = /* @__PURE__ */ e(r(), 1), b = i(), x = _(), le = (e) => {
16
16
  let n = (0, b.c)(8), r, i;
@@ -14,7 +14,7 @@ import { t as F } from "./jsx-runtime-D8btoEHk.js";
14
14
  import { d as ae, r as I } from "./use-restore-focus-BLj45Ibw.js";
15
15
  import { t as oe } from "./useEvent-BoN7U38T.js";
16
16
  import { n as L, t as se } from "./objectWithoutPropertiesLoose-BRDcTsfB.js";
17
- import { t as ce } from "./ErrorBoundary-Bitt9N44.js";
17
+ import { t as ce } from "./ErrorBoundary-Boj3j_O9.js";
18
18
  import { A as le, C as ue, D as de, E as fe, F as pe, I as me, L as he, M as ge, N as R, O as z, P as _e, R as ve, S as ye, T as be, _ as xe, a as Se, b as B, c as Ce, d as we, f as V, g as Te, h as Ee, i as De, j as H, k as Oe, l as ke, m as Ae, n as je, o as Me, p as Ne, r as U, s as Pe, t as Fe, u as Ie, v as Le, w as Re, x as ze, y as Be, z as Ve } from "./data-grid-types-DIX_pCco.js";
19
19
  //#region ../node_modules/.pnpm/@emotion+memoize@0.9.0/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js
20
20
  function He(e) {
@@ -7061,7 +7061,7 @@ function ds(e, t, n, r, i) {
7061
7061
  }
7062
7062
  //#endregion
7063
7063
  //#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.1_57c124ac5a994dbbf13fd11838cf9ba9/node_modules/@glideapps/glide-data-grid/dist/esm/data-editor/data-editor.js
7064
- var fs = /* @__PURE__ */ e(Tr(), 1), ps = /* @__PURE__ */ e(kr(), 1), ms = W.lazy(async () => await import("./data-grid-overlay-editor-CilodNKx.js")), hs = 0;
7064
+ var fs = /* @__PURE__ */ e(Tr(), 1), ps = /* @__PURE__ */ e(kr(), 1), ms = W.lazy(async () => await import("./data-grid-overlay-editor-CHMayxsD.js")), hs = 0;
7065
7065
  function gs(e) {
7066
7066
  return (0, fs.default)((0, ps.default)((0, ps.default)(e).filter((e) => e.span !== void 0).map((e) => (0, ao.default)((e.span?.[0] ?? 0) + 1, (e.span?.[1] ?? 0) + 1))));
7067
7067
  }
@@ -9284,7 +9284,7 @@ function Ys(e, t, n, r, i) {
9284
9284
  }
9285
9285
  //#endregion
9286
9286
  //#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.1_57c124ac5a994dbbf13fd11838cf9ba9/node_modules/@glideapps/glide-data-grid/dist/esm/cells/number-cell.js
9287
- var Xs = W.lazy(async () => await import("./number-overlay-editor-C9lu04cw.js")), Zs = {
9287
+ var Xs = W.lazy(async () => await import("./number-overlay-editor-Cc2hWES0.js")), Zs = {
9288
9288
  getAccessibilityString: (e) => e.data?.toString() ?? "",
9289
9289
  kind: U.Number,
9290
9290
  needsHover: (e) => e.hoverEffect === !0,
@@ -1,6 +1,6 @@
1
1
  import { h as e } from "./tooltip-CiJ919pg.js";
2
2
  import { St as t } from "./use-restore-focus-BLj45Ibw.js";
3
- import { r as n } from "./code-visibility-CK8BfIsO.js";
3
+ import { r as n } from "./code-visibility-CKpE4dr8.js";
4
4
  var r = e("triangle-alert", [
5
5
  ["path", {
6
6
  d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",
package/dist/main.js CHANGED
@@ -6,7 +6,7 @@ import { i as x, n as S, r as C, t as w } from "./copy-icon-CDvvlY90.js";
6
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-BBX2UucV.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-C-TqeXix.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-Bd2ykI45.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";
@@ -16,7 +16,7 @@ import { $t as Hi, At as Ui, B as Wi, Ct as Gi, D as Ki, Dt as qi, Ft as Ji, G a
16
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-DatAq1xF.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-BkrP88Os.js";
19
+ import { n as Xa, t as Za } from "./globals-UfdaMAwk.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-Bitt9N44.js";
43
+ import { t as lc } from "./ErrorBoundary-Boj3j_O9.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-CK8BfIsO.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-CKpE4dr8.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({
@@ -3099,6 +3099,7 @@ var Up = Ip({ offset: !0 }).describe("A date and time with its offset from UTC,
3099
3099
  notebook_id: Qp,
3100
3100
  runtime_id: fm.describe("The runtime that produced this run."),
3101
3101
  origin: Pm,
3102
+ created_at: Up.describe("When the host accepted the run, or when the runtime scheduled it."),
3102
3103
  state: Hm
3103
3104
  }).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"), Wm = G({
3104
3105
  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."),
@@ -3171,6 +3172,7 @@ var Up = Ip({ offset: !0 }).describe("A date and time with its offset from UTC,
3171
3172
  caused_by: qo([Km, 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."),
3172
3173
  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`."),
3173
3174
  code_fingerprint: cm.describe("Fingerprint of the code the execution evaluates. Fixed when the execution is published, while it is still queued."),
3175
+ created_at: qo([Up, bo()]).describe("When the runtime scheduled this execution. Null for a restored result, whose timing is unknown."),
3174
3176
  state: ah
3175
3177
  }).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"), sh = G({
3176
3178
  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."),
@@ -12904,7 +12906,7 @@ function AO(e, t) {
12904
12906
  }
12905
12907
  //#endregion
12906
12908
  //#region src/plugins/impl/DataEditorPlugin.tsx
12907
- var jO = Y.lazy(() => import("./glide-data-editor-BQ0Ykfzt.js").then((e) => e.t)), MO = fD("marimo-data-editor", { cssStyles: [FD, ID] }).withData(G({
12909
+ var jO = Y.lazy(() => import("./glide-data-editor-D_06qAOd.js").then((e) => e.t)), MO = fD("marimo-data-editor", { cssStyles: [FD, ID] }).withData(G({
12908
12910
  initialValue: G({ edits: H(G({
12909
12911
  rowIdx: K(),
12910
12912
  columnId: q(),
@@ -32627,7 +32629,7 @@ function NU(e) {
32627
32629
  }
32628
32630
  //#endregion
32629
32631
  //#region src/components/editor/renderers/slides-layout/slides-layout.tsx
32630
- var PU = Y.lazy(() => import("./reveal-component-BvH2Wxyh.js")), FU = (e) => {
32632
+ var PU = Y.lazy(() => import("./reveal-component-lcstK0cn.js")), FU = (e) => {
32631
32633
  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;
32632
32634
  t[0] !== i || t[1] !== n ? (d = jz(i, n), t[0] = i, t[1] = n, t[2] = d) : d = t[2];
32633
32635
  let { slideCells: f, skippedIds: p, noOutputIds: m, slideTypes: h, startCellIndex: g } = d, _;
@@ -1,6 +1,6 @@
1
1
  import { a as e } from "./rolldown-runtime-BPCzCO3I.js";
2
2
  import { t } from "./react-Bgs_wQh3.js";
3
- import { a as n } from "./glide-data-editor-BQ0Ykfzt.js";
3
+ import { a as n } from "./glide-data-editor-D_06qAOd.js";
4
4
  //#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.1_57c124ac5a994dbbf13fd11838cf9ba9/node_modules/@glideapps/glide-data-grid/dist/esm/internal/data-grid-overlay-editor/private/number-overlay-editor-style.js
5
5
  var r = /* @__PURE__ */ e(t()), i = /*#__PURE__*/ n("div")({
6
6
  name: "NumberOverlayEditorStyle",
@@ -3,14 +3,14 @@ import { g as t, h as n, i as r, m as i, t as a } from "./button-qQhINE7z.js";
3
3
  import { t as o } from "./react-Bgs_wQh3.js";
4
4
  import { t as s } from "./compiler-runtime-C5KHtL5D.js";
5
5
  import { h as c, t as l } from "./tooltip-CiJ919pg.js";
6
- import { Cn as u, En as d, Sn as f, dn as p, et as m, f as h, i as g, l as _, n as v, nt as y, r as b, t as x, tt as S, u as C } from "./common-C-TqeXix.js";
6
+ import { Cn as u, En as d, Sn as f, dn as p, et as m, f as h, i as g, l as _, n as v, nt as y, r as b, t as x, tt as S, u as C } from "./common-Bd2ykI45.js";
7
7
  import { M as w } from "./select-PQHWLm64.js";
8
8
  import { X as T } from "./dropdown-menu-B12Nf3Zf.js";
9
9
  import { t as E } from "./jsx-runtime-D8btoEHk.js";
10
10
  import { Rt as D, Vt as O, f as k, i as ee } from "./use-restore-focus-BLj45Ibw.js";
11
11
  import { t as A } from "./useEvent-BoN7U38T.js";
12
12
  import { o as te } from "./static-state-CWXd6dYX.js";
13
- import { n as ne, t as re } from "./code-visibility-CK8BfIsO.js";
13
+ import { n as ne, t as re } from "./code-visibility-CKpE4dr8.js";
14
14
  /* empty css */
15
15
  var j = c("sticky-note", [["path", {
16
16
  d: "M21 9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marimo-team/islands",
3
- "version": "0.25.3-dev465",
3
+ "version": "0.25.3-dev468",
4
4
  "main": "dist/main.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
@@ -66,6 +66,7 @@ function execution(
66
66
  caused_by: null,
67
67
  cell_id: cellId,
68
68
  code_fingerprint: "0f71456db2ea83f4",
69
+ created_at: T0,
69
70
  state,
70
71
  };
71
72
  }
@@ -41,6 +41,7 @@ function accepted(cells: Protocol.CellId[]): Protocol.Run {
41
41
  notebook_id: "n1",
42
42
  runtime_id: "r1",
43
43
  origin: { kind: "cells", cell_ids: cells },
44
+ created_at: "2026-10-01T09:20:00Z",
44
45
  state: { status: "queued" },
45
46
  };
46
47
  }
@@ -20,6 +20,7 @@ const queued = {
20
20
  caused_by: null,
21
21
  cell_id: "cell",
22
22
  code_fingerprint: "fp",
23
+ created_at: "2026-10-01T09:20:00Z",
23
24
  state: { status: "queued" },
24
25
  } satisfies Execution;
25
26
 
@@ -266,6 +266,7 @@ function resultRecord(
266
266
  caused_by: null,
267
267
  cell_id: cell.id,
268
268
  code_fingerprint: cell.code_fingerprint,
269
+ created_at: null,
269
270
  state: {
270
271
  status: "completed",
271
272
  started_at: null,
@@ -36,6 +36,7 @@ function run(
36
36
  notebook_id: "n1",
37
37
  runtime_id: "r1",
38
38
  origin: { kind: "cells", cell_ids: cells },
39
+ created_at: "2026-10-01T09:20:00Z",
39
40
  state:
40
41
  status === "completed"
41
42
  ? {
@@ -62,6 +62,7 @@ function record(
62
62
  run_id: "run-1",
63
63
  runtime_id: "r1",
64
64
  caused_by: null,
65
+ created_at: null,
65
66
  state: completed(),
66
67
  ...fields,
67
68
  };
@@ -29,6 +29,7 @@ function run(
29
29
  notebook_id: "n1",
30
30
  runtime_id: runtimeId,
31
31
  origin: { kind: "code", code: "pass" },
32
+ created_at: "2026-10-01T09:20:00Z",
32
33
  state:
33
34
  status === "completed"
34
35
  ? {
@@ -122,6 +122,7 @@ describe("output lifetime", () => {
122
122
  notebook_id: "n1",
123
123
  runtime_id: "r1",
124
124
  origin: { kind: "cells", cell_ids: [C1] },
125
+ created_at: "2026-10-01T09:20:00Z",
125
126
  state: { status: "queued" },
126
127
  };
127
128
  const pending = requestRun(store, [C1])!;
@@ -40,6 +40,7 @@ function accepted(cells: Protocol.CellId[]): Protocol.Run {
40
40
  notebook_id: "n1",
41
41
  runtime_id: "r1",
42
42
  origin: { kind: "cells", cell_ids: cells },
43
+ created_at: "2026-10-01T09:20:00Z",
43
44
  state: { status: "queued" },
44
45
  };
45
46
  }
@@ -32,6 +32,7 @@ function record(
32
32
  caused_by: null,
33
33
  cell_id: "c1",
34
34
  code_fingerprint: "0f71456db2ea83f4",
35
+ created_at: null,
35
36
  state: {
36
37
  status: "completed",
37
38
  started_at: T0,
@@ -63,6 +64,7 @@ function run(
63
64
  notebook_id: "n1",
64
65
  runtime_id: "r1",
65
66
  origin: { kind: "cells", cell_ids: cells },
67
+ created_at: "2026-10-01T09:20:00Z",
66
68
  state:
67
69
  status === "completed"
68
70
  ? {
@@ -821,6 +821,7 @@ describe("IslandsPyodideBridge", () => {
821
821
  notebook_id: "n1",
822
822
  runtime_id: "r1",
823
823
  origin: { kind: "cells", cell_ids: ["c1"] },
824
+ created_at: "2026-10-01T09:20:00Z",
824
825
  state: { status: "queued" },
825
826
  },
826
827
  });
@@ -220,7 +220,14 @@ describe("executions resource", () => {
220
220
  event: "run",
221
221
  id: cursor,
222
222
  data: {
223
- run: { id, notebook_id: "n1", runtime_id: "r1", origin, state },
223
+ run: {
224
+ id,
225
+ notebook_id: "n1",
226
+ runtime_id: "r1",
227
+ origin,
228
+ created_at: time,
229
+ state,
230
+ },
224
231
  time,
225
232
  },
226
233
  });
@@ -40,6 +40,7 @@ const restored = {
40
40
  caused_by: null,
41
41
  cell_id: "c3",
42
42
  code_fingerprint: "0f71456db2ea83f4",
43
+ created_at: null,
43
44
  state: {
44
45
  status: "completed",
45
46
  started_at: "2026-09-30T09:20:01Z",
@@ -113,6 +113,7 @@ describe("static notebook backend", () => {
113
113
  caused_by: null,
114
114
  cell_id: cell.id,
115
115
  code_fingerprint: cell.code_fingerprint,
116
+ created_at: null,
116
117
  state: {
117
118
  status: "completed",
118
119
  started_at: null,
@@ -275,6 +275,7 @@ it("raises the interrupt buffer for a cancelled running run before the worker ta
275
275
  notebook_id: "n1",
276
276
  runtime_id: "r1",
277
277
  origin: { kind: "code", code: "pass" },
278
+ created_at: "2026-10-01T09:20:00Z",
278
279
  state: { status: "running", started_at: "2026-10-01T09:20:11Z" },
279
280
  };
280
281
  const replicaWith = (status: string) =>
@@ -324,6 +325,7 @@ it.each(["running", "completed", null])(
324
325
  notebook_id: "n1",
325
326
  runtime_id: "r1",
326
327
  origin: { kind: "code", code: "pass" },
328
+ created_at: "2026-10-01T09:20:00Z",
327
329
  state: { status: "running", started_at: "2026-10-01T09:20:11Z" },
328
330
  };
329
331
  const replicaWith = (status: string) =>
@@ -400,6 +402,7 @@ it("raises the interrupt buffer once a run cancelled while queued starts", async
400
402
  notebook_id: "n1",
401
403
  runtime_id: "r1",
402
404
  origin: { kind: "code", code: "pass" },
405
+ created_at: "2026-10-01T09:20:00Z",
403
406
  state: { status: "queued" },
404
407
  };
405
408
  store.set(activeNotebookReplicaAtom, {