@burdenoff/microfe-cosmicintersection 2026.1107.1 → 2026.1108.2

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 (42) hide show
  1. package/dist/cosmicintersection/api/cosmicApi.d.ts +222 -1
  2. package/dist/cosmicintersection/api/cosmicApi.d.ts.map +1 -1
  3. package/dist/cosmicintersection/api/cosmicApi.js +332 -133
  4. package/dist/cosmicintersection/api/cosmicApi.js.map +1 -1
  5. package/dist/cosmicintersection/components/AiRunAttribution.d.ts +18 -0
  6. package/dist/cosmicintersection/components/AiRunAttribution.d.ts.map +1 -0
  7. package/dist/cosmicintersection/components/AiRunAttribution.js +39 -0
  8. package/dist/cosmicintersection/components/AiRunAttribution.js.map +1 -0
  9. package/dist/cosmicintersection/components/ReleaseDraftDialog.d.ts +15 -0
  10. package/dist/cosmicintersection/components/ReleaseDraftDialog.d.ts.map +1 -0
  11. package/dist/cosmicintersection/components/ReleaseDraftDialog.js +193 -0
  12. package/dist/cosmicintersection/components/ReleaseDraftDialog.js.map +1 -0
  13. package/dist/cosmicintersection/components/RunTriageCard.d.ts +15 -0
  14. package/dist/cosmicintersection/components/RunTriageCard.d.ts.map +1 -0
  15. package/dist/cosmicintersection/components/RunTriageCard.js +282 -0
  16. package/dist/cosmicintersection/components/RunTriageCard.js.map +1 -0
  17. package/dist/cosmicintersection/components/SchemaProposalPanel.d.ts +18 -0
  18. package/dist/cosmicintersection/components/SchemaProposalPanel.d.ts.map +1 -0
  19. package/dist/cosmicintersection/components/SchemaProposalPanel.js +277 -0
  20. package/dist/cosmicintersection/components/SchemaProposalPanel.js.map +1 -0
  21. package/dist/cosmicintersection/components/index.d.ts +4 -0
  22. package/dist/cosmicintersection/components/index.d.ts.map +1 -1
  23. package/dist/cosmicintersection/components/index.js +5 -1
  24. package/dist/cosmicintersection/pages/access/AccessPage.d.ts.map +1 -1
  25. package/dist/cosmicintersection/pages/access/AccessPage.js +348 -326
  26. package/dist/cosmicintersection/pages/access/AccessPage.js.map +1 -1
  27. package/dist/cosmicintersection/pages/datasets/DatasetDetailPage.d.ts.map +1 -1
  28. package/dist/cosmicintersection/pages/datasets/DatasetDetailPage.js +732 -543
  29. package/dist/cosmicintersection/pages/datasets/DatasetDetailPage.js.map +1 -1
  30. package/dist/cosmicintersection/pages/discovery/DiscoveryPage.d.ts.map +1 -1
  31. package/dist/cosmicintersection/pages/discovery/DiscoveryPage.js +268 -119
  32. package/dist/cosmicintersection/pages/discovery/DiscoveryPage.js.map +1 -1
  33. package/dist/cosmicintersection/pages/notebooks/NotebookDetailPage.d.ts.map +1 -1
  34. package/dist/cosmicintersection/pages/notebooks/NotebookDetailPage.js +322 -307
  35. package/dist/cosmicintersection/pages/notebooks/NotebookDetailPage.js.map +1 -1
  36. package/dist/cosmicintersection/pages/releases/ReleasesPage.d.ts.map +1 -1
  37. package/dist/cosmicintersection/pages/releases/ReleasesPage.js +276 -241
  38. package/dist/cosmicintersection/pages/releases/ReleasesPage.js.map +1 -1
  39. package/dist/cosmicintersection/pages/runs/RunDetailPage.d.ts.map +1 -1
  40. package/dist/cosmicintersection/pages/runs/RunDetailPage.js +190 -185
  41. package/dist/cosmicintersection/pages/runs/RunDetailPage.js.map +1 -1
  42. package/package.json +1 -1
@@ -9,12 +9,13 @@ import { DiscussionPanel as d } from "../../components/DiscussionPanel.js";
9
9
  import { useFileDownloadUrl as f } from "../../components/FileUploadField.js";
10
10
  import { PageLayout as p } from "../../components/PageLayout.js";
11
11
  import { StatusBadge as m } from "../../components/StatusBadge.js";
12
+ import { ReleaseDraftDialog as h } from "../../components/ReleaseDraftDialog.js";
12
13
  import "../../components/index.js";
13
14
  import { useTrackRecentItem as ee } from "../../lib/useTrackRecentItem.js";
14
- import { useMemo as h, useState as g } from "react";
15
- import { Fragment as _, jsx as v, jsxs as y } from "react/jsx-runtime";
16
- import { useParams as b } from "react-router";
17
- import { Beaker as x, Database as te, Download as S, FileCode2 as C, MessageSquare as w, Pencil as T, Play as E, Share2 as D, Sparkles as O } from "lucide-react";
15
+ import { useMemo as g, useState as _ } from "react";
16
+ import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
17
+ import { useParams as te } from "react-router";
18
+ import { Beaker as ne, Database as x, Download as S, FileCode2 as C, MessageSquare as w, Pencil as T, Play as E, Share2 as D, Sparkles as O } from "lucide-react";
18
19
  import { Badge as k, Button as A, Dialog as j, DialogContent as M, DialogDescription as N, DialogFooter as P, DialogHeader as F, DialogTitle as I, Input as L, Label as R, Switch as z, Table as B, TableBody as V, TableCell as H, TableHead as U, TableHeader as W, TableRow as G } from "@burdenoff/fe-libs/ui";
19
20
  //#region src/cosmicintersection/pages/notebooks/NotebookDetailPage.tsx
20
21
  function K(e) {
@@ -30,33 +31,33 @@ function K(e) {
30
31
  }
31
32
  function q({ fileId: e, label: t }) {
32
33
  let { data: n, loading: r } = f(e), i = n?.getFileDownloadUrl ?? null;
33
- return r ? /* @__PURE__ */ v("span", {
34
+ return r ? /* @__PURE__ */ y("span", {
34
35
  className: "text-xs text-text-secondary",
35
36
  children: "Resolving link…"
36
- }) : i ? /* @__PURE__ */ y("a", {
37
+ }) : i ? /* @__PURE__ */ b("a", {
37
38
  href: i,
38
39
  target: "_blank",
39
40
  rel: "noopener noreferrer",
40
41
  className: "inline-flex items-center gap-1 text-sm text-text-primary underline-offset-2 hover:underline",
41
- children: [/* @__PURE__ */ v(S, {
42
+ children: [/* @__PURE__ */ y(S, {
42
43
  className: "size-3.5",
43
44
  "aria-hidden": "true"
44
45
  }), t]
45
- }) : /* @__PURE__ */ y("span", {
46
+ }) : /* @__PURE__ */ b("span", {
46
47
  className: "text-xs text-text-secondary",
47
48
  children: ["File ", e]
48
49
  });
49
50
  }
50
- function J({ notebookId: e, open: n, onOpenChange: r, onCompleted: i }) {
51
- let [a, s] = g(""), [c, l] = g(""), [u, d] = g(!1), [f, { loading: p }] = o(), m = () => {
51
+ function re({ notebookId: e, open: n, onOpenChange: r, onCompleted: i }) {
52
+ let [a, s] = _(""), [c, l] = _(""), [u, d] = _(!1), [f, { loading: p }] = o(), m = () => {
52
53
  s(""), l(""), d(!1);
53
54
  };
54
- return /* @__PURE__ */ v(j, {
55
+ return /* @__PURE__ */ y(j, {
55
56
  open: n,
56
57
  onOpenChange: (e) => {
57
58
  p || r(e);
58
59
  },
59
- children: /* @__PURE__ */ v(M, { children: /* @__PURE__ */ y("form", {
60
+ children: /* @__PURE__ */ y(M, { children: /* @__PURE__ */ b("form", {
60
61
  onSubmit: async (n) => {
61
62
  n.preventDefault();
62
63
  let o = a.trim();
@@ -74,13 +75,13 @@ function J({ notebookId: e, open: n, onOpenChange: r, onCompleted: i }) {
74
75
  },
75
76
  className: "space-y-4",
76
77
  children: [
77
- /* @__PURE__ */ y(F, { children: [/* @__PURE__ */ v(I, { children: "Run analysis" }), /* @__PURE__ */ v(N, { children: "Launch a new analysis run against this notebook. It starts in the running state and can be completed later with results." })] }),
78
- /* @__PURE__ */ y("div", {
78
+ /* @__PURE__ */ b(F, { children: [/* @__PURE__ */ y(I, { children: "Run analysis" }), /* @__PURE__ */ y(N, { children: "Launch a new analysis run against this notebook. It starts in the running state and can be completed later with results." })] }),
79
+ /* @__PURE__ */ b("div", {
79
80
  className: "space-y-1.5",
80
- children: [/* @__PURE__ */ v(R, {
81
+ children: [/* @__PURE__ */ y(R, {
81
82
  htmlFor: "run-analysis-title",
82
83
  children: "Title"
83
- }), /* @__PURE__ */ v(L, {
84
+ }), /* @__PURE__ */ y(L, {
84
85
  id: "run-analysis-title",
85
86
  value: a,
86
87
  onChange: (e) => s(e.target.value),
@@ -88,393 +89,407 @@ function J({ notebookId: e, open: n, onOpenChange: r, onCompleted: i }) {
88
89
  required: !0
89
90
  })]
90
91
  }),
91
- /* @__PURE__ */ y("div", {
92
+ /* @__PURE__ */ b("div", {
92
93
  className: "space-y-1.5",
93
- children: [/* @__PURE__ */ v(R, {
94
+ children: [/* @__PURE__ */ y(R, {
94
95
  htmlFor: "run-analysis-method",
95
96
  children: "Method"
96
- }), /* @__PURE__ */ v(L, {
97
+ }), /* @__PURE__ */ y(L, {
97
98
  id: "run-analysis-method",
98
99
  value: c,
99
100
  onChange: (e) => l(e.target.value),
100
101
  placeholder: "e.g. box-least-squares"
101
102
  })]
102
103
  }),
103
- /* @__PURE__ */ y("div", {
104
+ /* @__PURE__ */ b("div", {
104
105
  className: "flex items-center gap-3",
105
- children: [/* @__PURE__ */ v(z, {
106
+ children: [/* @__PURE__ */ y(z, {
106
107
  id: "run-analysis-ai",
107
108
  checked: u,
108
109
  onCheckedChange: (e) => d(e)
109
- }), /* @__PURE__ */ v(R, {
110
+ }), /* @__PURE__ */ y(R, {
110
111
  htmlFor: "run-analysis-ai",
111
112
  className: "cursor-pointer",
112
113
  children: "AI-assisted analysis"
113
114
  })]
114
115
  }),
115
- /* @__PURE__ */ y(P, { children: [/* @__PURE__ */ v(A, {
116
+ /* @__PURE__ */ b(P, { children: [/* @__PURE__ */ y(A, {
116
117
  type: "button",
117
118
  variant: "outline",
118
119
  onClick: () => r(!1),
119
120
  disabled: p,
120
121
  children: "Cancel"
121
- }), /* @__PURE__ */ y(A, {
122
+ }), /* @__PURE__ */ b(A, {
122
123
  type: "submit",
123
124
  disabled: p,
124
- children: [/* @__PURE__ */ v(E, { className: "size-4" }), p ? "Starting…" : "Run analysis"]
125
+ children: [/* @__PURE__ */ y(E, { className: "size-4" }), p ? "Starting…" : "Run analysis"]
125
126
  })] })
126
127
  ]
127
128
  }) })
128
129
  });
129
130
  }
130
- function Y() {
131
- let { id: o = "" } = b(), { navigate: f } = e(), [S, j] = g(!1), { data: M, loading: N, error: P, refetch: F } = a(o), { data: I, loading: L, error: R, refetch: z } = n({ notebookId: o }), { data: Y } = i({ pagination: {
131
+ function J() {
132
+ let { id: o = "" } = te(), { navigate: f } = e(), [S, j] = _(!1), [M, N] = _(!1), { data: P, loading: F, error: I, refetch: L } = a(o), { data: R, loading: z, error: J, refetch: Y } = n({ notebookId: o }), { data: X } = i({ pagination: {
132
133
  limit: 100,
133
134
  offset: 0
134
- } }), [X] = r(), Z = M?.cosNotebook ?? null;
135
+ } }), [ie] = r(), Z = P?.cosNotebook ?? null;
135
136
  ee(Z ? {
136
137
  type: "notebook",
137
138
  id: Z.id,
138
139
  name: Z.title,
139
140
  path: `notebooks/${encodeURIComponent(Z.id)}`
140
141
  } : null);
141
- let Q = I?.cosListAnalyses ?? [], ne = h(() => {
142
+ let Q = R?.cosListAnalyses ?? [], ae = g(() => {
142
143
  let e = /* @__PURE__ */ new Map();
143
- for (let t of Y?.cosListDatasets.items ?? []) e.set(t.id, t.name);
144
+ for (let t of X?.cosListDatasets.items ?? []) e.set(t.id, t.name);
144
145
  return e;
145
- }, [Y]), re = async () => {
146
+ }, [X]), oe = async () => {
146
147
  if (!Z) return;
147
- let e = await X({ variables: { id: Z.id } });
148
+ let e = await ie({ variables: { id: Z.id } });
148
149
  if (e.error) throw Error(e.error.message);
149
150
  if (!e.data?.cosArchiveNotebook) throw t.error("Could not archive notebook", "The server did not confirm the change."), Error("Archive not confirmed");
150
- await F(), t.success("Notebook archived", `“${Z.title}” was archived.`);
151
+ await L(), t.success("Notebook archived", `“${Z.title}” was archived.`);
151
152
  };
152
- if (N) return /* @__PURE__ */ v(p, {
153
+ if (F) return /* @__PURE__ */ y(p, {
153
154
  title: "Notebook",
154
155
  backPath: "notebooks",
155
- children: /* @__PURE__ */ v(u, { label: "Loading notebook…" })
156
+ children: /* @__PURE__ */ y(u, { label: "Loading notebook…" })
156
157
  });
157
- if (P) return /* @__PURE__ */ v(p, {
158
+ if (I) return /* @__PURE__ */ y(p, {
158
159
  title: "Notebook",
159
160
  backPath: "notebooks",
160
- children: /* @__PURE__ */ v(l, {
161
+ children: /* @__PURE__ */ y(l, {
161
162
  message: "We could not load this notebook. Please try again.",
162
- onRetry: () => void F()
163
+ onRetry: () => void L()
163
164
  })
164
165
  });
165
- if (!Z) return /* @__PURE__ */ v(p, {
166
+ if (!Z) return /* @__PURE__ */ y(p, {
166
167
  title: "Notebook",
167
168
  backPath: "notebooks",
168
- children: /* @__PURE__ */ v(c, {
169
+ children: /* @__PURE__ */ y(c, {
169
170
  icon: C,
170
171
  title: "Notebook not found.",
171
172
  description: "This notebook may have been removed or is outside your current scope.",
172
- action: /* @__PURE__ */ v(A, {
173
+ action: /* @__PURE__ */ y(A, {
173
174
  type: "button",
174
175
  onClick: () => f("notebooks"),
175
176
  children: "Back to notebooks"
176
177
  })
177
178
  })
178
179
  });
179
- let $ = Z.environment && Object.keys(Z.environment).length > 0 ? JSON.stringify(Z.environment, null, 2) : null, ie = /* @__PURE__ */ y("div", {
180
+ let $ = Z.environment && Object.keys(Z.environment).length > 0 ? JSON.stringify(Z.environment, null, 2) : null, se = /* @__PURE__ */ b("div", {
180
181
  className: "flex items-center gap-2",
181
182
  children: [
182
- /* @__PURE__ */ y(A, {
183
+ /* @__PURE__ */ b(A, {
183
184
  type: "button",
184
185
  onClick: () => j(!0),
185
- children: [/* @__PURE__ */ v(E, { className: "size-4" }), "Run analysis"]
186
+ children: [/* @__PURE__ */ y(E, { className: "size-4" }), "Run analysis"]
186
187
  }),
187
- /* @__PURE__ */ y(A, {
188
+ /* @__PURE__ */ b(A, {
189
+ type: "button",
190
+ variant: "outline",
191
+ onClick: () => N(!0),
192
+ children: [/* @__PURE__ */ y(O, { className: "size-4" }), "Draft release"]
193
+ }),
194
+ /* @__PURE__ */ b(A, {
188
195
  type: "button",
189
196
  variant: "outline",
190
197
  onClick: () => f(`notebooks/${Z.id}/edit`),
191
- children: [/* @__PURE__ */ v(T, { className: "size-4" }), "Edit"]
198
+ children: [/* @__PURE__ */ y(T, { className: "size-4" }), "Edit"]
192
199
  }),
193
- /* @__PURE__ */ v(s, {
200
+ /* @__PURE__ */ y(s, {
194
201
  ariaLabel: `Actions for ${Z.title}`,
195
202
  entityName: Z.title,
196
- onDelete: Z.status === "ARCHIVED" ? void 0 : re,
203
+ onDelete: Z.status === "ARCHIVED" ? void 0 : oe,
197
204
  deleteLabel: "Archive notebook"
198
205
  })
199
206
  ]
200
207
  });
201
- return /* @__PURE__ */ y(p, {
208
+ return /* @__PURE__ */ b(p, {
202
209
  title: Z.title,
203
210
  description: "Notebook detail",
204
211
  backPath: "notebooks",
205
- actions: ie,
206
- children: [/* @__PURE__ */ y("div", {
207
- className: "space-y-6",
208
- children: [
209
- /* @__PURE__ */ y("section", {
210
- className: "rounded-card border border-border-default bg-bg-elevated p-6",
211
- children: [
212
- /* @__PURE__ */ y("div", {
213
- className: "flex flex-wrap items-center gap-3",
214
- children: [
215
- /* @__PURE__ */ v(m, { status: Z.status }),
216
- Z.runtime ? /* @__PURE__ */ y(k, {
217
- variant: "outline",
218
- children: ["Runtime: ", Z.runtime]
219
- }) : null,
220
- Z.isShared ? /* @__PURE__ */ y(k, {
221
- variant: "secondary",
222
- className: "gap-1",
223
- children: [
224
- /* @__PURE__ */ v(D, {
225
- className: "size-3",
226
- "aria-hidden": "true"
227
- }),
228
- "Shared",
229
- Z.shareSlug ? `: ${Z.shareSlug}` : ""
230
- ]
231
- }) : /* @__PURE__ */ v(k, {
232
- variant: "outline",
233
- children: "Private"
234
- })
235
- ]
236
- }),
237
- Z.description ? /* @__PURE__ */ v("p", {
238
- className: "mt-4 text-sm text-text-secondary",
239
- children: Z.description
240
- }) : /* @__PURE__ */ v("p", {
241
- className: "mt-4 text-sm text-text-secondary",
242
- children: "No description provided."
243
- }),
244
- /* @__PURE__ */ y("div", {
245
- className: "mt-6",
246
- children: [/* @__PURE__ */ v("p", {
247
- className: "text-xs uppercase tracking-wide text-text-secondary",
248
- children: "Linked datasets"
249
- }), Z.datasetIds.length === 0 ? /* @__PURE__ */ v("p", {
250
- className: "mt-2 text-sm text-text-secondary",
251
- children: "No datasets linked."
252
- }) : /* @__PURE__ */ v("div", {
253
- className: "mt-2 flex flex-wrap gap-2",
254
- children: Z.datasetIds.map((e) => {
255
- let t = ne.get(e);
256
- return /* @__PURE__ */ y(A, {
257
- type: "button",
212
+ actions: se,
213
+ children: [
214
+ /* @__PURE__ */ b("div", {
215
+ className: "space-y-6",
216
+ children: [
217
+ /* @__PURE__ */ b("section", {
218
+ className: "rounded-card border border-border-default bg-bg-elevated p-6",
219
+ children: [
220
+ /* @__PURE__ */ b("div", {
221
+ className: "flex flex-wrap items-center gap-3",
222
+ children: [
223
+ /* @__PURE__ */ y(m, { status: Z.status }),
224
+ Z.runtime ? /* @__PURE__ */ b(k, {
258
225
  variant: "outline",
259
- size: "sm",
260
- className: "h-auto gap-1.5 px-2.5 py-1",
261
- onClick: () => f(`datasets/${e}`),
262
- children: [/* @__PURE__ */ v(te, {
263
- className: "size-3.5 shrink-0",
264
- "aria-hidden": "true"
265
- }), /* @__PURE__ */ v("span", {
266
- className: t ? "max-w-[16rem] truncate" : "font-mono text-xs",
267
- children: t ?? e
268
- })]
269
- }, e);
270
- })
271
- })]
272
- }),
273
- /* @__PURE__ */ y("dl", {
274
- className: "mt-6 grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",
275
- children: [
276
- /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
226
+ children: ["Runtime: ", Z.runtime]
227
+ }) : null,
228
+ Z.isShared ? /* @__PURE__ */ b(k, {
229
+ variant: "secondary",
230
+ className: "gap-1",
231
+ children: [
232
+ /* @__PURE__ */ y(D, {
233
+ className: "size-3",
234
+ "aria-hidden": "true"
235
+ }),
236
+ "Shared",
237
+ Z.shareSlug ? `: ${Z.shareSlug}` : ""
238
+ ]
239
+ }) : /* @__PURE__ */ y(k, {
240
+ variant: "outline",
241
+ children: "Private"
242
+ })
243
+ ]
244
+ }),
245
+ Z.description ? /* @__PURE__ */ y("p", {
246
+ className: "mt-4 text-sm text-text-secondary",
247
+ children: Z.description
248
+ }) : /* @__PURE__ */ y("p", {
249
+ className: "mt-4 text-sm text-text-secondary",
250
+ children: "No description provided."
251
+ }),
252
+ /* @__PURE__ */ b("div", {
253
+ className: "mt-6",
254
+ children: [/* @__PURE__ */ y("p", {
277
255
  className: "text-xs uppercase tracking-wide text-text-secondary",
278
- children: "Created"
279
- }), /* @__PURE__ */ v("dd", {
280
- className: "mt-1 text-sm text-text-primary",
281
- children: K(Z.createdAt)
282
- })] }),
283
- /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
256
+ children: "Linked datasets"
257
+ }), Z.datasetIds.length === 0 ? /* @__PURE__ */ y("p", {
258
+ className: "mt-2 text-sm text-text-secondary",
259
+ children: "No datasets linked."
260
+ }) : /* @__PURE__ */ y("div", {
261
+ className: "mt-2 flex flex-wrap gap-2",
262
+ children: Z.datasetIds.map((e) => {
263
+ let t = ae.get(e);
264
+ return /* @__PURE__ */ b(A, {
265
+ type: "button",
266
+ variant: "outline",
267
+ size: "sm",
268
+ className: "h-auto gap-1.5 px-2.5 py-1",
269
+ onClick: () => f(`datasets/${e}`),
270
+ children: [/* @__PURE__ */ y(x, {
271
+ className: "size-3.5 shrink-0",
272
+ "aria-hidden": "true"
273
+ }), /* @__PURE__ */ y("span", {
274
+ className: t ? "max-w-[16rem] truncate" : "font-mono text-xs",
275
+ children: t ?? e
276
+ })]
277
+ }, e);
278
+ })
279
+ })]
280
+ }),
281
+ /* @__PURE__ */ b("dl", {
282
+ className: "mt-6 grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",
283
+ children: [
284
+ /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("dt", {
285
+ className: "text-xs uppercase tracking-wide text-text-secondary",
286
+ children: "Created"
287
+ }), /* @__PURE__ */ y("dd", {
288
+ className: "mt-1 text-sm text-text-primary",
289
+ children: K(Z.createdAt)
290
+ })] }),
291
+ /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("dt", {
292
+ className: "text-xs uppercase tracking-wide text-text-secondary",
293
+ children: "Updated"
294
+ }), /* @__PURE__ */ y("dd", {
295
+ className: "mt-1 text-sm text-text-primary",
296
+ children: K(Z.updatedAt)
297
+ })] }),
298
+ /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("dt", {
299
+ className: "text-xs uppercase tracking-wide text-text-secondary",
300
+ children: "Notebook file"
301
+ }), /* @__PURE__ */ y("dd", {
302
+ className: "mt-1 text-sm text-text-primary",
303
+ children: Z.file?.id ? /* @__PURE__ */ y(q, {
304
+ fileId: Z.file.id,
305
+ label: "Download notebook"
306
+ }) : /* @__PURE__ */ y("span", {
307
+ className: "text-text-secondary",
308
+ children: "No file attached"
309
+ })
310
+ })] })
311
+ ]
312
+ }),
313
+ Z.tags.length > 0 ? /* @__PURE__ */ b("div", {
314
+ className: "mt-6",
315
+ children: [/* @__PURE__ */ y("p", {
284
316
  className: "text-xs uppercase tracking-wide text-text-secondary",
285
- children: "Updated"
286
- }), /* @__PURE__ */ v("dd", {
287
- className: "mt-1 text-sm text-text-primary",
288
- children: K(Z.updatedAt)
289
- })] }),
290
- /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
317
+ children: "Tags"
318
+ }), /* @__PURE__ */ y("div", {
319
+ className: "mt-2 flex flex-wrap gap-2",
320
+ children: Z.tags.map((e) => /* @__PURE__ */ y(k, {
321
+ variant: "outline",
322
+ children: e
323
+ }, e))
324
+ })]
325
+ }) : null,
326
+ $ ? /* @__PURE__ */ b("div", {
327
+ className: "mt-6",
328
+ children: [/* @__PURE__ */ y("p", {
291
329
  className: "text-xs uppercase tracking-wide text-text-secondary",
292
- children: "Notebook file"
293
- }), /* @__PURE__ */ v("dd", {
294
- className: "mt-1 text-sm text-text-primary",
295
- children: Z.file?.id ? /* @__PURE__ */ v(q, {
296
- fileId: Z.file.id,
297
- label: "Download notebook"
298
- }) : /* @__PURE__ */ v("span", {
299
- className: "text-text-secondary",
300
- children: "No file attached"
301
- })
302
- })] })
303
- ]
304
- }),
305
- Z.tags.length > 0 ? /* @__PURE__ */ y("div", {
306
- className: "mt-6",
307
- children: [/* @__PURE__ */ v("p", {
308
- className: "text-xs uppercase tracking-wide text-text-secondary",
309
- children: "Tags"
310
- }), /* @__PURE__ */ v("div", {
311
- className: "mt-2 flex flex-wrap gap-2",
312
- children: Z.tags.map((e) => /* @__PURE__ */ v(k, {
313
- variant: "outline",
314
- children: e
315
- }, e))
316
- })]
317
- }) : null,
318
- $ ? /* @__PURE__ */ y("div", {
319
- className: "mt-6",
320
- children: [/* @__PURE__ */ v("p", {
321
- className: "text-xs uppercase tracking-wide text-text-secondary",
322
- children: "Environment"
323
- }), /* @__PURE__ */ v("pre", {
324
- className: "mt-2 max-h-64 overflow-auto rounded-card border border-border-default bg-bg-sunken p-4 font-mono text-xs text-text-primary",
325
- children: $
330
+ children: "Environment"
331
+ }), /* @__PURE__ */ y("pre", {
332
+ className: "mt-2 max-h-64 overflow-auto rounded-card border border-border-default bg-bg-sunken p-4 font-mono text-xs text-text-primary",
333
+ children: $
334
+ })]
335
+ }) : null
336
+ ]
337
+ }),
338
+ /* @__PURE__ */ b("section", {
339
+ className: "space-y-4",
340
+ children: [/* @__PURE__ */ b("div", {
341
+ className: "flex items-center gap-2",
342
+ children: [/* @__PURE__ */ y(w, {
343
+ className: "size-5 text-text-secondary",
344
+ "aria-hidden": "true"
345
+ }), /* @__PURE__ */ y("h2", {
346
+ className: "text-lg font-semibold text-text-primary",
347
+ children: "Discussion"
326
348
  })]
327
- }) : null
328
- ]
329
- }),
330
- /* @__PURE__ */ y("section", {
331
- className: "space-y-4",
332
- children: [/* @__PURE__ */ y("div", {
333
- className: "flex items-center gap-2",
334
- children: [/* @__PURE__ */ v(w, {
335
- className: "size-5 text-text-secondary",
336
- "aria-hidden": "true"
337
- }), /* @__PURE__ */ v("h2", {
338
- className: "text-lg font-semibold text-text-primary",
339
- children: "Discussion"
349
+ }), /* @__PURE__ */ y(d, {
350
+ entityType: "cosmicintersection-notebook",
351
+ entityId: Z.id,
352
+ title: Z.title,
353
+ widgetKey: "notebook-discussion"
340
354
  })]
341
- }), /* @__PURE__ */ v(d, {
342
- entityType: "cosmicintersection-notebook",
343
- entityId: Z.id,
344
- title: Z.title,
345
- widgetKey: "notebook-discussion"
346
- })]
347
- }),
348
- /* @__PURE__ */ y("section", {
349
- className: "space-y-4",
350
- children: [/* @__PURE__ */ y("div", {
351
- className: "flex flex-wrap items-center justify-between gap-3",
352
- children: [/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("h2", {
353
- className: "text-lg font-semibold text-text-primary",
354
- children: "Analyses"
355
- }), /* @__PURE__ */ v("p", {
356
- className: "text-sm text-text-secondary",
357
- children: "Analysis runs executed against this notebook."
358
- })] }), /* @__PURE__ */ y(A, {
359
- type: "button",
360
- variant: "outline",
361
- onClick: () => j(!0),
362
- children: [/* @__PURE__ */ v(E, { className: "size-4" }), "Run analysis"]
363
- })]
364
- }), L ? /* @__PURE__ */ v(u, {
365
- variant: "rows",
366
- rows: 3,
367
- label: "Loading analyses…"
368
- }) : R ? /* @__PURE__ */ v(l, {
369
- message: "We could not load analyses for this notebook.",
370
- onRetry: () => void z()
371
- }) : Q.length === 0 ? /* @__PURE__ */ v(c, {
372
- icon: x,
373
- title: "No analyses yet.",
374
- description: "Run an analysis to generate results and artifacts from this notebook.",
375
- action: /* @__PURE__ */ y(A, {
376
- type: "button",
377
- onClick: () => j(!0),
378
- children: [/* @__PURE__ */ v(E, { className: "size-4" }), "Run analysis"]
379
- })
380
- }) : /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v("div", {
381
- className: "hidden rounded-card border border-border-default bg-bg-elevated md:block",
382
- children: /* @__PURE__ */ y(B, { children: [/* @__PURE__ */ v(W, { children: /* @__PURE__ */ y(G, { children: [
383
- /* @__PURE__ */ v(U, { children: "Title" }),
384
- /* @__PURE__ */ v(U, { children: "Method" }),
385
- /* @__PURE__ */ v(U, { children: "AI" }),
386
- /* @__PURE__ */ v(U, { children: "Status" }),
387
- /* @__PURE__ */ v(U, { children: "Started" }),
388
- /* @__PURE__ */ v(U, { children: "Output" })
389
- ] }) }), /* @__PURE__ */ v(V, { children: Q.map((e) => /* @__PURE__ */ y(G, { children: [
390
- /* @__PURE__ */ v(H, {
391
- className: "font-medium text-text-primary",
392
- children: e.title
393
- }),
394
- /* @__PURE__ */ v(H, {
395
- className: "text-text-secondary",
396
- children: e.method ?? "—"
397
- }),
398
- /* @__PURE__ */ v(H, { children: e.aiAssisted ? /* @__PURE__ */ y(k, {
399
- variant: "secondary",
400
- className: "gap-1",
401
- children: [/* @__PURE__ */ v(O, {
402
- className: "size-3",
403
- "aria-hidden": "true"
404
- }), "AI"]
405
- }) : /* @__PURE__ */ v("span", {
406
- className: "text-text-secondary",
407
- children: "—"
408
- }) }),
409
- /* @__PURE__ */ v(H, { children: /* @__PURE__ */ v(m, { status: e.status }) }),
410
- /* @__PURE__ */ v(H, {
411
- className: "whitespace-nowrap text-text-secondary",
412
- children: K(e.startedAt)
413
- }),
414
- /* @__PURE__ */ v(H, { children: e.outputFile?.id ? /* @__PURE__ */ v(q, {
415
- fileId: e.outputFile.id,
416
- label: "Download"
417
- }) : e.results && Object.keys(e.results).length > 0 ? /* @__PURE__ */ v("span", {
418
- className: "text-xs text-text-secondary",
419
- children: "Results recorded"
420
- }) : /* @__PURE__ */ v("span", {
421
- className: "text-text-secondary",
422
- children: "—"
423
- }) })
424
- ] }, e.id)) })] })
425
- }), /* @__PURE__ */ v("ul", {
426
- className: "space-y-3 md:hidden",
427
- children: Q.map((e) => /* @__PURE__ */ y("li", {
428
- className: "space-y-2 rounded-card border border-border-default bg-bg-elevated p-4",
429
- children: [
430
- /* @__PURE__ */ y("div", {
431
- className: "flex items-start justify-between gap-3",
432
- children: [/* @__PURE__ */ y("div", {
433
- className: "min-w-0",
434
- children: [/* @__PURE__ */ v("p", {
435
- className: "truncate font-medium text-text-primary",
436
- children: e.title
437
- }), e.method ? /* @__PURE__ */ v("p", {
438
- className: "truncate text-xs text-text-secondary",
439
- children: e.method
440
- }) : null]
441
- }), /* @__PURE__ */ v(m, { status: e.status })]
355
+ }),
356
+ /* @__PURE__ */ b("section", {
357
+ className: "space-y-4",
358
+ children: [/* @__PURE__ */ b("div", {
359
+ className: "flex flex-wrap items-center justify-between gap-3",
360
+ children: [/* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("h2", {
361
+ className: "text-lg font-semibold text-text-primary",
362
+ children: "Analyses"
363
+ }), /* @__PURE__ */ y("p", {
364
+ className: "text-sm text-text-secondary",
365
+ children: "Analysis runs executed against this notebook."
366
+ })] }), /* @__PURE__ */ b(A, {
367
+ type: "button",
368
+ variant: "outline",
369
+ onClick: () => j(!0),
370
+ children: [/* @__PURE__ */ y(E, { className: "size-4" }), "Run analysis"]
371
+ })]
372
+ }), z ? /* @__PURE__ */ y(u, {
373
+ variant: "rows",
374
+ rows: 3,
375
+ label: "Loading analyses…"
376
+ }) : J ? /* @__PURE__ */ y(l, {
377
+ message: "We could not load analyses for this notebook.",
378
+ onRetry: () => void Y()
379
+ }) : Q.length === 0 ? /* @__PURE__ */ y(c, {
380
+ icon: ne,
381
+ title: "No analyses yet.",
382
+ description: "Run an analysis to generate results and artifacts from this notebook.",
383
+ action: /* @__PURE__ */ b(A, {
384
+ type: "button",
385
+ onClick: () => j(!0),
386
+ children: [/* @__PURE__ */ y(E, { className: "size-4" }), "Run analysis"]
387
+ })
388
+ }) : /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y("div", {
389
+ className: "hidden rounded-card border border-border-default bg-bg-elevated md:block",
390
+ children: /* @__PURE__ */ b(B, { children: [/* @__PURE__ */ y(W, { children: /* @__PURE__ */ b(G, { children: [
391
+ /* @__PURE__ */ y(U, { children: "Title" }),
392
+ /* @__PURE__ */ y(U, { children: "Method" }),
393
+ /* @__PURE__ */ y(U, { children: "AI" }),
394
+ /* @__PURE__ */ y(U, { children: "Status" }),
395
+ /* @__PURE__ */ y(U, { children: "Started" }),
396
+ /* @__PURE__ */ y(U, { children: "Output" })
397
+ ] }) }), /* @__PURE__ */ y(V, { children: Q.map((e) => /* @__PURE__ */ b(G, { children: [
398
+ /* @__PURE__ */ y(H, {
399
+ className: "font-medium text-text-primary",
400
+ children: e.title
442
401
  }),
443
- /* @__PURE__ */ y("div", {
444
- className: "flex flex-wrap items-center gap-2 text-xs text-text-secondary",
445
- children: [e.aiAssisted ? /* @__PURE__ */ y(k, {
446
- variant: "secondary",
447
- className: "gap-1",
448
- children: [/* @__PURE__ */ v(O, {
449
- className: "size-3",
450
- "aria-hidden": "true"
451
- }), "AI"]
452
- }) : null, /* @__PURE__ */ y("span", { children: ["Started ", K(e.startedAt)] })]
402
+ /* @__PURE__ */ y(H, {
403
+ className: "text-text-secondary",
404
+ children: e.method ?? "—"
453
405
  }),
454
- /* @__PURE__ */ v("div", { children: e.outputFile?.id ? /* @__PURE__ */ v(q, {
406
+ /* @__PURE__ */ y(H, { children: e.aiAssisted ? /* @__PURE__ */ b(k, {
407
+ variant: "secondary",
408
+ className: "gap-1",
409
+ children: [/* @__PURE__ */ y(O, {
410
+ className: "size-3",
411
+ "aria-hidden": "true"
412
+ }), "AI"]
413
+ }) : /* @__PURE__ */ y("span", {
414
+ className: "text-text-secondary",
415
+ children: "—"
416
+ }) }),
417
+ /* @__PURE__ */ y(H, { children: /* @__PURE__ */ y(m, { status: e.status }) }),
418
+ /* @__PURE__ */ y(H, {
419
+ className: "whitespace-nowrap text-text-secondary",
420
+ children: K(e.startedAt)
421
+ }),
422
+ /* @__PURE__ */ y(H, { children: e.outputFile?.id ? /* @__PURE__ */ y(q, {
455
423
  fileId: e.outputFile.id,
456
424
  label: "Download"
457
- }) : e.results && Object.keys(e.results).length > 0 ? /* @__PURE__ */ v("span", {
425
+ }) : e.results && Object.keys(e.results).length > 0 ? /* @__PURE__ */ y("span", {
458
426
  className: "text-xs text-text-secondary",
459
427
  children: "Results recorded"
460
- }) : /* @__PURE__ */ v("span", {
461
- className: "text-xs text-text-secondary",
462
- children: "No output"
428
+ }) : /* @__PURE__ */ y("span", {
429
+ className: "text-text-secondary",
430
+ children: "—"
463
431
  }) })
464
- ]
465
- }, e.id))
466
- })] })]
467
- })
468
- ]
469
- }), /* @__PURE__ */ v(J, {
470
- notebookId: Z.id,
471
- open: S,
472
- onOpenChange: j,
473
- onCompleted: () => void z()
474
- })]
432
+ ] }, e.id)) })] })
433
+ }), /* @__PURE__ */ y("ul", {
434
+ className: "space-y-3 md:hidden",
435
+ children: Q.map((e) => /* @__PURE__ */ b("li", {
436
+ className: "space-y-2 rounded-card border border-border-default bg-bg-elevated p-4",
437
+ children: [
438
+ /* @__PURE__ */ b("div", {
439
+ className: "flex items-start justify-between gap-3",
440
+ children: [/* @__PURE__ */ b("div", {
441
+ className: "min-w-0",
442
+ children: [/* @__PURE__ */ y("p", {
443
+ className: "truncate font-medium text-text-primary",
444
+ children: e.title
445
+ }), e.method ? /* @__PURE__ */ y("p", {
446
+ className: "truncate text-xs text-text-secondary",
447
+ children: e.method
448
+ }) : null]
449
+ }), /* @__PURE__ */ y(m, { status: e.status })]
450
+ }),
451
+ /* @__PURE__ */ b("div", {
452
+ className: "flex flex-wrap items-center gap-2 text-xs text-text-secondary",
453
+ children: [e.aiAssisted ? /* @__PURE__ */ b(k, {
454
+ variant: "secondary",
455
+ className: "gap-1",
456
+ children: [/* @__PURE__ */ y(O, {
457
+ className: "size-3",
458
+ "aria-hidden": "true"
459
+ }), "AI"]
460
+ }) : null, /* @__PURE__ */ b("span", { children: ["Started ", K(e.startedAt)] })]
461
+ }),
462
+ /* @__PURE__ */ y("div", { children: e.outputFile?.id ? /* @__PURE__ */ y(q, {
463
+ fileId: e.outputFile.id,
464
+ label: "Download"
465
+ }) : e.results && Object.keys(e.results).length > 0 ? /* @__PURE__ */ y("span", {
466
+ className: "text-xs text-text-secondary",
467
+ children: "Results recorded"
468
+ }) : /* @__PURE__ */ y("span", {
469
+ className: "text-xs text-text-secondary",
470
+ children: "No output"
471
+ }) })
472
+ ]
473
+ }, e.id))
474
+ })] })]
475
+ })
476
+ ]
477
+ }),
478
+ /* @__PURE__ */ y(re, {
479
+ notebookId: Z.id,
480
+ open: S,
481
+ onOpenChange: j,
482
+ onCompleted: () => void Y()
483
+ }),
484
+ /* @__PURE__ */ y(h, {
485
+ notebook: Z,
486
+ open: M,
487
+ onOpenChange: N
488
+ })
489
+ ]
475
490
  });
476
491
  }
477
492
  //#endregion
478
- export { Y as default };
493
+ export { J as default };
479
494
 
480
495
  //# sourceMappingURL=NotebookDetailPage.js.map