@marimo-team/islands 0.25.3-dev468 → 0.25.3-dev470
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/{ErrorBoundary-Boj3j_O9.js → ErrorBoundary-3LJrlNzI.js} +1 -1
- package/dist/{chat-ui-BJSYaekC.js → chat-ui-BsDe6D0t.js} +3 -3
- package/dist/{code-visibility-CKpE4dr8.js → code-visibility-f8NmHyy_.js} +2 -2
- package/dist/{common-Bd2ykI45.js → common-BEFJcXFV.js} +3 -3
- package/dist/{data-grid-overlay-editor-CHMayxsD.js → data-grid-overlay-editor-LltopEoY.js} +1 -1
- package/dist/{error-entries-CNH4hNt-.js → error-entries--YT1ZOUW.js} +1 -1
- package/dist/{feedback-button-DHTIg23_.js → feedback-button-BZ5ny6wZ.js} +3 -3
- package/dist/{glide-data-editor-D_06qAOd.js → glide-data-editor-DxDBT3d6.js} +3 -3
- package/dist/{globals-UfdaMAwk.js → globals-KSh6LIwz.js} +1 -1
- package/dist/{html-to-image-BBX2UucV.js → html-to-image-DVDnVxmt.js} +1 -1
- package/dist/main.js +5654 -5615
- package/dist/{number-overlay-editor-Cc2hWES0.js → number-overlay-editor-JWDkZTpa.js} +1 -1
- package/dist/{process-output-DatAq1xF.js → process-output-DkPkAuZU.js} +2 -2
- package/dist/{reveal-component-lcstK0cn.js → reveal-component-B5RDDT9c.js} +2 -2
- package/package.json +1 -1
- package/src/__mocks__/executions.ts +6 -6
- package/src/components/editor/chrome/wrapper/__tests__/attachment-status.test.tsx +1 -1
- package/src/components/editor/chrome/wrapper/footer-items/attachment-status.tsx +1 -1
- package/src/components/editor/errors/__tests__/send-error-report-button.test.tsx +1 -1
- package/src/core/cells/__tests__/runs.test.ts +1 -1
- package/src/core/cells/__tests__/session.test.ts +1 -1
- package/src/core/cells/session.ts +3 -3
- package/src/core/executions/__tests__/freshness.test.ts +9 -9
- package/src/core/executions/__tests__/output-lifecycle.test.ts +1 -1
- package/src/core/executions/__tests__/output.test.ts +1 -1
- package/src/core/executions/__tests__/select.test.ts +5 -5
- package/src/core/executions/freshness.ts +2 -1
- package/src/core/executions/output.ts +2 -2
- package/src/core/executions/select.ts +1 -1
- package/src/core/islands/bridge.ts +6 -3
- package/src/core/notebook/replica/__tests__/executions.test.ts +1 -1
- package/src/core/notebook/replica/__tests__/replica.test.ts +1 -1
- package/src/core/notebook/replica/__tests__/results.test.ts +2 -2
- package/src/core/notebook/replica/execution-state.ts +2 -2
- package/src/core/notebook/replica/replica.ts +2 -2
- package/src/core/session/__tests__/useNotebookReplica.hook.test.tsx +1 -1
- package/src/core/transports/__tests__/static.test.ts +1 -1
- package/src/core/transports/static.ts +1 -1
- package/src/stories/cell.stories.tsx +1 -1
|
@@ -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-
|
|
3
|
+
import { a as n } from "./glide-data-editor-DxDBT3d6.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",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { T as e } from "./html-to-image-
|
|
1
|
+
import { T as e } from "./html-to-image-DVDnVxmt.js";
|
|
2
2
|
import { h as t } from "./tooltip-CiJ919pg.js";
|
|
3
|
-
import { Tt as n, wt as r } from "./error-entries
|
|
3
|
+
import { Tt as n, wt as r } from "./error-entries--YT1ZOUW.js";
|
|
4
4
|
import { r as i } from "./assertNever-DOTNJ2Y4.js";
|
|
5
5
|
var a = t("file", [["path", {
|
|
6
6
|
d: "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",
|
|
@@ -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-
|
|
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-BEFJcXFV.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-
|
|
13
|
+
import { n as ne, t as re } from "./code-visibility-f8NmHyy_.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
|
@@ -34,7 +34,7 @@ const T1 = "2026-10-01T09:20:12.500Z";
|
|
|
34
34
|
let sequence = 0;
|
|
35
35
|
|
|
36
36
|
const READY: Protocol.RuntimeState = { status: "ready" };
|
|
37
|
-
const SUCCEEDED: Protocol.
|
|
37
|
+
const SUCCEEDED: Protocol.ExecutionOutcome = { kind: "succeeded" };
|
|
38
38
|
|
|
39
39
|
/** An execution, or the output it set, as the stream delivers them. */
|
|
40
40
|
type ExecutionFixture = Protocol.Execution & { items?: readonly Item[] };
|
|
@@ -63,7 +63,7 @@ function execution(
|
|
|
63
63
|
id: `e${sequence}`,
|
|
64
64
|
run_id: "run-1",
|
|
65
65
|
runtime_id: "r1",
|
|
66
|
-
|
|
66
|
+
caused_by_id: null,
|
|
67
67
|
cell_id: cellId,
|
|
68
68
|
code_fingerprint: "0f71456db2ea83f4",
|
|
69
69
|
created_at: T0,
|
|
@@ -73,7 +73,7 @@ function execution(
|
|
|
73
73
|
|
|
74
74
|
function completed(
|
|
75
75
|
cellId: string | null,
|
|
76
|
-
outcome: Protocol.
|
|
76
|
+
outcome: Protocol.ExecutionOutcome = SUCCEEDED,
|
|
77
77
|
): Protocol.Execution {
|
|
78
78
|
return execution(cellId, {
|
|
79
79
|
status: "completed",
|
|
@@ -86,7 +86,7 @@ function completed(
|
|
|
86
86
|
|
|
87
87
|
function output(
|
|
88
88
|
execution: Protocol.Execution,
|
|
89
|
-
media: Protocol.
|
|
89
|
+
media: Protocol.Media | null,
|
|
90
90
|
): Protocol.Output {
|
|
91
91
|
return { id: `${execution.id}:output`, execution_id: execution.id, media };
|
|
92
92
|
}
|
|
@@ -169,7 +169,7 @@ export const MockExecutions = {
|
|
|
169
169
|
/** A completed execution and the output it showed. */
|
|
170
170
|
shown(
|
|
171
171
|
cellId: string | null,
|
|
172
|
-
display: Protocol.
|
|
172
|
+
display: Protocol.Media,
|
|
173
173
|
fields: Partial<Omit<Protocol.Execution, "id" | "state">> = {},
|
|
174
174
|
): readonly [Protocol.Execution, Protocol.Output] {
|
|
175
175
|
const execution = { ...completed(cellId), ...fields };
|
|
@@ -229,7 +229,7 @@ export const MockExecutions = {
|
|
|
229
229
|
path: null,
|
|
230
230
|
name: "Notebook",
|
|
231
231
|
operations: [],
|
|
232
|
-
|
|
232
|
+
modified_at: null,
|
|
233
233
|
};
|
|
234
234
|
},
|
|
235
235
|
|
|
@@ -183,7 +183,7 @@ function AttachmentStatusItem({ attachment }: { attachment: Attachment }) {
|
|
|
183
183
|
<div className="min-w-0 flex-1">
|
|
184
184
|
<h5 className="font-medium">{label}</h5>
|
|
185
185
|
<p className="text-xs text-muted-foreground mt-1">
|
|
186
|
-
Connected {timeAgo(attachment.
|
|
186
|
+
Connected {timeAgo(attachment.created_at)}
|
|
187
187
|
</p>
|
|
188
188
|
<p
|
|
189
189
|
className="text-xs font-mono text-muted-foreground truncate mt-1"
|
|
@@ -219,7 +219,7 @@ function resultRecord(
|
|
|
219
219
|
): StaticResult | null {
|
|
220
220
|
const primary = primaryOutputOf(sessionCell);
|
|
221
221
|
const id = `${EMBEDDED}:${cell.id}:result`;
|
|
222
|
-
let outcome: Protocol.
|
|
222
|
+
let outcome: Protocol.ExecutionOutcome;
|
|
223
223
|
let output: Protocol.Output | null = null;
|
|
224
224
|
if (primary === undefined) {
|
|
225
225
|
return null;
|
|
@@ -263,7 +263,7 @@ function resultRecord(
|
|
|
263
263
|
id,
|
|
264
264
|
run_id: `${EMBEDDED}:run`,
|
|
265
265
|
runtime_id: EMBEDDED,
|
|
266
|
-
|
|
266
|
+
caused_by_id: null,
|
|
267
267
|
cell_id: cell.id,
|
|
268
268
|
code_fingerprint: cell.code_fingerprint,
|
|
269
269
|
created_at: null,
|
|
@@ -377,7 +377,7 @@ export function readExport({
|
|
|
377
377
|
project_id: EMBEDDED,
|
|
378
378
|
path: filename,
|
|
379
379
|
name: filename ?? EMPTY_STRING,
|
|
380
|
-
|
|
380
|
+
modified_at: null,
|
|
381
381
|
},
|
|
382
382
|
document: {
|
|
383
383
|
notebook_id: EMBEDDED,
|
|
@@ -35,12 +35,12 @@ function cell(
|
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
const SUCCEEDED: Protocol.
|
|
38
|
+
const SUCCEEDED: Protocol.ExecutionOutcome = { kind: "succeeded" };
|
|
39
39
|
|
|
40
40
|
/** A completed state that read `depends_on`. */
|
|
41
41
|
function completed(
|
|
42
42
|
depends_on: Protocol.ExecutionCompleted["depends_on"] = {},
|
|
43
|
-
outcome: Protocol.
|
|
43
|
+
outcome: Protocol.ExecutionOutcome = SUCCEEDED,
|
|
44
44
|
): Protocol.ExecutionCompleted {
|
|
45
45
|
return {
|
|
46
46
|
status: "completed",
|
|
@@ -61,7 +61,7 @@ function record(
|
|
|
61
61
|
return {
|
|
62
62
|
run_id: "run-1",
|
|
63
63
|
runtime_id: "r1",
|
|
64
|
-
|
|
64
|
+
caused_by_id: null,
|
|
65
65
|
created_at: null,
|
|
66
66
|
state: completed(),
|
|
67
67
|
...fields,
|
|
@@ -77,7 +77,7 @@ function variable(
|
|
|
77
77
|
id: `${execution}-${name}`,
|
|
78
78
|
execution_id: execution,
|
|
79
79
|
name,
|
|
80
|
-
revision: { execution, update },
|
|
80
|
+
revision: { execution_id: execution, update },
|
|
81
81
|
type: null,
|
|
82
82
|
preview: null,
|
|
83
83
|
};
|
|
@@ -147,7 +147,7 @@ const e13 = record({
|
|
|
147
147
|
id: "e13",
|
|
148
148
|
cell_id: "k7f2",
|
|
149
149
|
code_fingerprint: K7F2_FINGERPRINT,
|
|
150
|
-
state: completed({ x: {
|
|
150
|
+
state: completed({ x: { execution_id: "e12", update: 0 } }),
|
|
151
151
|
});
|
|
152
152
|
|
|
153
153
|
describe("cellFreshness", () => {
|
|
@@ -223,7 +223,7 @@ describe("cellFreshness", () => {
|
|
|
223
223
|
id: "e15",
|
|
224
224
|
cell_id: "m",
|
|
225
225
|
code_fingerprint: "aaaa111122223333",
|
|
226
|
-
state: completed({ y: {
|
|
226
|
+
state: completed({ y: { execution_id: "e13", update: 0 } }),
|
|
227
227
|
});
|
|
228
228
|
const state = inputs({
|
|
229
229
|
cells: [c3, k7f2, m],
|
|
@@ -316,8 +316,8 @@ describe("cellFreshness", () => {
|
|
|
316
316
|
cell_id: "k7f2",
|
|
317
317
|
code_fingerprint: "stale",
|
|
318
318
|
state: completed({
|
|
319
|
-
x: {
|
|
320
|
-
z: {
|
|
319
|
+
x: { execution_id: "e12", update: 0 },
|
|
320
|
+
z: { execution_id: "e30", update: 0 },
|
|
321
321
|
}),
|
|
322
322
|
});
|
|
323
323
|
const state = inputs({
|
|
@@ -339,7 +339,7 @@ describe("cellFreshness", () => {
|
|
|
339
339
|
cell_id: "k7f2",
|
|
340
340
|
code_fingerprint: K7F2_FINGERPRINT,
|
|
341
341
|
state: completed(
|
|
342
|
-
{ x: {
|
|
342
|
+
{ x: { execution_id: "e12", update: 0 } },
|
|
343
343
|
{
|
|
344
344
|
kind: "skipped",
|
|
345
345
|
reason: "upstream-failed",
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
const C1 = cellId("c1");
|
|
16
16
|
const C2 = cellId("c2");
|
|
17
17
|
|
|
18
|
-
const HTML: Protocol.
|
|
18
|
+
const HTML: Protocol.Media = { mimetype: "text/html", data: "<b>1</b>" };
|
|
19
19
|
/** After every time the execution mocks use. */
|
|
20
20
|
const LATER = "2026-10-01T09:30:00Z";
|
|
21
21
|
|
|
@@ -29,7 +29,7 @@ function record(
|
|
|
29
29
|
return {
|
|
30
30
|
run_id: "run-1",
|
|
31
31
|
runtime_id: "r1",
|
|
32
|
-
|
|
32
|
+
caused_by_id: null,
|
|
33
33
|
cell_id: "c1",
|
|
34
34
|
code_fingerprint: "0f71456db2ea83f4",
|
|
35
35
|
created_at: null,
|
|
@@ -185,14 +185,14 @@ describe("cellExecutionView", () => {
|
|
|
185
185
|
});
|
|
186
186
|
|
|
187
187
|
it("reports how the last completed execution ended, with its timing", () => {
|
|
188
|
-
const completedWith = (outcome: Protocol.
|
|
188
|
+
const completedWith = (outcome: Protocol.ExecutionOutcome) => ({
|
|
189
189
|
status: "completed" as const,
|
|
190
190
|
started_at: T0,
|
|
191
191
|
completed_at: T1,
|
|
192
192
|
outcome,
|
|
193
193
|
depends_on: {},
|
|
194
194
|
});
|
|
195
|
-
const ended = (outcome: Protocol.
|
|
195
|
+
const ended = (outcome: Protocol.ExecutionOutcome) =>
|
|
196
196
|
cellExecutionView(
|
|
197
197
|
inputs({
|
|
198
198
|
executions: [execution({ id: "e1", state: completedWith(outcome) })],
|
|
@@ -211,7 +211,7 @@ describe("cellExecutionView", () => {
|
|
|
211
211
|
duration: 1500,
|
|
212
212
|
live: true,
|
|
213
213
|
});
|
|
214
|
-
const error = (kind: string): Protocol.
|
|
214
|
+
const error = (kind: string): Protocol.ExecutionOutcome => ({
|
|
215
215
|
kind: "failed",
|
|
216
216
|
error: {
|
|
217
217
|
kind,
|
|
@@ -225,7 +225,7 @@ describe("cellExecutionView", () => {
|
|
|
225
225
|
},
|
|
226
226
|
});
|
|
227
227
|
expect(ended(error("exception")).outcome).toBe("failed");
|
|
228
|
-
const skipped: Protocol.
|
|
228
|
+
const skipped: Protocol.ExecutionOutcome = {
|
|
229
229
|
kind: "skipped",
|
|
230
230
|
reason: "ancestor-stopped",
|
|
231
231
|
message: "",
|
|
@@ -113,7 +113,8 @@ export function freshnessOf(inputs: CellFreshnessInputs): CellFreshnessLookup {
|
|
|
113
113
|
continue;
|
|
114
114
|
}
|
|
115
115
|
const variable = variables.find(
|
|
116
|
-
(candidate) =>
|
|
116
|
+
(candidate) =>
|
|
117
|
+
candidate.revision.execution_id === revision.execution_id,
|
|
117
118
|
);
|
|
118
119
|
if (
|
|
119
120
|
variable === undefined ||
|
|
@@ -77,7 +77,7 @@ function endedAt(record: Protocol.Execution): number {
|
|
|
77
77
|
|
|
78
78
|
function valueOutput(
|
|
79
79
|
record: Protocol.Execution,
|
|
80
|
-
value: Protocol.
|
|
80
|
+
value: Protocol.Media,
|
|
81
81
|
): CellOutput {
|
|
82
82
|
return {
|
|
83
83
|
channel: "output",
|
|
@@ -143,7 +143,7 @@ export function cellError(error: Protocol.Error): CellError {
|
|
|
143
143
|
/** The notice a skipped cell shows in place of a value. */
|
|
144
144
|
function skippedOutput(
|
|
145
145
|
record: Protocol.Execution,
|
|
146
|
-
outcome: Protocol.
|
|
146
|
+
outcome: Protocol.ExecutionSkippedOutcome,
|
|
147
147
|
): CellOutput {
|
|
148
148
|
const cause = outcome.related[0];
|
|
149
149
|
if (cause !== undefined && outcome.reason === "upstream-stopped") {
|
|
@@ -11,7 +11,7 @@ import { completedAt, startedAt as startedAtOf } from "@/core/notebook/replica";
|
|
|
11
11
|
export type CellRunStatus = "idle" | "queued" | "running";
|
|
12
12
|
|
|
13
13
|
/** How a cell's last completed execution ended. */
|
|
14
|
-
export type CellOutcome = Protocol.
|
|
14
|
+
export type CellOutcome = Protocol.ExecutionOutcome["kind"];
|
|
15
15
|
|
|
16
16
|
export interface CellExecutionView {
|
|
17
17
|
readonly status: CellRunStatus;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
import {
|
|
5
5
|
NotebookClient,
|
|
6
|
-
type
|
|
6
|
+
type NotebookStreamEvent,
|
|
7
7
|
type NotebookTransport,
|
|
8
8
|
} from "@marimo-team/client";
|
|
9
9
|
import { getWorkerRPC } from "@/core/wasm/rpc";
|
|
@@ -175,7 +175,7 @@ export class IslandsPyodideBridge implements RunRequests, EditRequests {
|
|
|
175
175
|
return;
|
|
176
176
|
}
|
|
177
177
|
const frame = jsonParseWithSpecialChar(event) as
|
|
178
|
-
|
|
|
178
|
+
| NotebookStreamEvent
|
|
179
179
|
| { event: "marimo"; data: { marimo?: NotificationMessage } };
|
|
180
180
|
if (frame.event === "marimo") {
|
|
181
181
|
if (frame.data.marimo) {
|
|
@@ -193,7 +193,10 @@ export class IslandsPyodideBridge implements RunRequests, EditRequests {
|
|
|
193
193
|
);
|
|
194
194
|
}
|
|
195
195
|
|
|
196
|
-
private logIslandConsole(
|
|
196
|
+
private logIslandConsole(
|
|
197
|
+
cells: Map<string, CellId>,
|
|
198
|
+
frame: NotebookStreamEvent,
|
|
199
|
+
) {
|
|
197
200
|
switch (frame.event) {
|
|
198
201
|
case "reset":
|
|
199
202
|
cells.clear();
|
|
@@ -76,7 +76,7 @@ describe("executions resource", () => {
|
|
|
76
76
|
expect(resource(done).executions.get("e13")?.record.state).toHaveProperty(
|
|
77
77
|
"depends_on",
|
|
78
78
|
{
|
|
79
|
-
x: {
|
|
79
|
+
x: { execution_id: "e12", update: 0 },
|
|
80
80
|
},
|
|
81
81
|
);
|
|
82
82
|
expect(resource(done).runs.get("run-cells")?.state).toMatchObject({
|
|
@@ -37,7 +37,7 @@ const restored = {
|
|
|
37
37
|
id: "e-restored",
|
|
38
38
|
run_id: null,
|
|
39
39
|
runtime_id: null,
|
|
40
|
-
|
|
40
|
+
caused_by_id: null,
|
|
41
41
|
cell_id: "c3",
|
|
42
42
|
code_fingerprint: "0f71456db2ea83f4",
|
|
43
43
|
created_at: null,
|
|
@@ -81,7 +81,7 @@ describe("retained results", () => {
|
|
|
81
81
|
expect(done.get("c3")?.record.id).toBe("e12");
|
|
82
82
|
expect(done.get("c3")?.record.state.status).toBe("completed");
|
|
83
83
|
expect(done.get("k7f2")?.record.state).toHaveProperty("depends_on", {
|
|
84
|
-
x: {
|
|
84
|
+
x: { execution_id: "e12", update: 0 },
|
|
85
85
|
});
|
|
86
86
|
expect(done.get("c1")).toBeNull();
|
|
87
87
|
});
|
|
@@ -6,8 +6,8 @@ import type * as Protocol from "@marimo-team/client/protocol";
|
|
|
6
6
|
|
|
7
7
|
/** What an execution shows in place of a cell's output. */
|
|
8
8
|
export type Shown =
|
|
9
|
-
| { readonly kind: "output"; readonly media: Protocol.
|
|
10
|
-
| Exclude<Protocol.
|
|
9
|
+
| { readonly kind: "output"; readonly media: Protocol.Media | null }
|
|
10
|
+
| Exclude<Protocol.ExecutionOutcome, { kind: "succeeded" }>;
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* How an execution ended when it did not succeed, else its output. Null
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { Logger } from "@/utils/Logger";
|
|
6
6
|
import {
|
|
7
7
|
createNotebookReducer,
|
|
8
|
-
type
|
|
8
|
+
type NotebookStreamEvent,
|
|
9
9
|
NotebookEvents,
|
|
10
10
|
StreamStopped,
|
|
11
11
|
} from "@marimo-team/client";
|
|
@@ -55,7 +55,7 @@ export const EDITOR_EVENT_TYPES = [
|
|
|
55
55
|
"marimo",
|
|
56
56
|
] as const;
|
|
57
57
|
|
|
58
|
-
type EditorEvent =
|
|
58
|
+
type EditorEvent = NotebookStreamEvent<(typeof EDITOR_EVENT_TYPES)[number]>;
|
|
59
59
|
|
|
60
60
|
/** A native marimo notification, passed through without interpretation. */
|
|
61
61
|
const MarimoMessage = z.object({ marimo: z.unknown() });
|
|
@@ -106,7 +106,7 @@ describe("useNotebookReplica", () => {
|
|
|
106
106
|
identity: null,
|
|
107
107
|
kind: "agent",
|
|
108
108
|
name: "Notebook CLI",
|
|
109
|
-
|
|
109
|
+
created_at: "2026-10-01T09:20:03Z",
|
|
110
110
|
},
|
|
111
111
|
] satisfies AttachmentOutput[]);
|
|
112
112
|
expect(attachments.result.current.all).toEqual(
|
|
@@ -110,7 +110,7 @@ describe("static notebook backend", () => {
|
|
|
110
110
|
id: "embedded:result",
|
|
111
111
|
run_id: "embedded:run",
|
|
112
112
|
runtime_id: "embedded",
|
|
113
|
-
|
|
113
|
+
caused_by_id: null,
|
|
114
114
|
cell_id: cell.id,
|
|
115
115
|
code_fingerprint: cell.code_fingerprint,
|
|
116
116
|
created_at: null,
|