@burdenoff/microfe-cosmicintersection 2026.1108.2 → 2026.1109.1
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/cosmicintersection/api/databricksTransport.d.ts +13 -0
- package/dist/cosmicintersection/api/databricksTransport.d.ts.map +1 -0
- package/dist/cosmicintersection/api/databricksTransport.js +38 -0
- package/dist/cosmicintersection/api/databricksTransport.js.map +1 -0
- package/dist/cosmicintersection/components/ActionMenu.js +17 -17
- package/dist/cosmicintersection/components/DatabricksQueueForm.d.ts +13 -0
- package/dist/cosmicintersection/components/DatabricksQueueForm.d.ts.map +1 -0
- package/dist/cosmicintersection/components/DatabricksQueueForm.js +221 -0
- package/dist/cosmicintersection/components/DatabricksQueueForm.js.map +1 -0
- package/dist/cosmicintersection/components/DatabricksRunPanel.d.ts +6 -0
- package/dist/cosmicintersection/components/DatabricksRunPanel.d.ts.map +1 -0
- package/dist/cosmicintersection/components/DatabricksRunPanel.js +206 -0
- package/dist/cosmicintersection/components/DatabricksRunPanel.js.map +1 -0
- package/dist/cosmicintersection/components/EntityFormShell.js +7 -7
- package/dist/cosmicintersection/components/EntityTagsField.js +8 -8
- package/dist/cosmicintersection/components/ErrorState.js +4 -4
- package/dist/cosmicintersection/components/FileUploadField.js +8 -8
- package/dist/cosmicintersection/components/Pagination.js +6 -6
- package/dist/cosmicintersection/components/ReleaseDraftDialog.js +17 -17
- package/dist/cosmicintersection/components/RunTriageCard.js +12 -12
- package/dist/cosmicintersection/components/SchemaProposalPanel.js +35 -35
- package/dist/cosmicintersection/components/SchemaProposalPanel.js.map +1 -1
- package/dist/cosmicintersection/components/WorkspaceTagsPicker.js +12 -12
- package/dist/cosmicintersection/components/index.js +7 -7
- package/dist/cosmicintersection/context/CosmicIntersectionContext.d.ts +2 -0
- package/dist/cosmicintersection/context/CosmicIntersectionContext.d.ts.map +1 -1
- package/dist/cosmicintersection/context/CosmicIntersectionContext.js +17 -13
- package/dist/cosmicintersection/context/CosmicIntersectionContext.js.map +1 -1
- package/dist/cosmicintersection/hooks/useDatabricksExecutions.d.ts +69 -0
- package/dist/cosmicintersection/hooks/useDatabricksExecutions.d.ts.map +1 -0
- package/dist/cosmicintersection/hooks/useDatabricksExecutions.js +89 -0
- package/dist/cosmicintersection/hooks/useDatabricksExecutions.js.map +1 -0
- package/dist/cosmicintersection/hooks/useDatabricksQueueForm.d.ts +59 -0
- package/dist/cosmicintersection/hooks/useDatabricksQueueForm.d.ts.map +1 -0
- package/dist/cosmicintersection/hooks/useDatabricksQueueForm.js +158 -0
- package/dist/cosmicintersection/hooks/useDatabricksQueueForm.js.map +1 -0
- package/dist/cosmicintersection/lib/databricksForm.d.ts +4 -0
- package/dist/cosmicintersection/lib/databricksForm.d.ts.map +1 -0
- package/dist/cosmicintersection/lib/databricksForm.js +31 -0
- package/dist/cosmicintersection/lib/databricksForm.js.map +1 -0
- package/dist/cosmicintersection/lib/databricksIntent.d.ts +19 -0
- package/dist/cosmicintersection/lib/databricksIntent.d.ts.map +1 -0
- package/dist/cosmicintersection/lib/databricksIntent.js +60 -0
- package/dist/cosmicintersection/lib/databricksIntent.js.map +1 -0
- package/dist/cosmicintersection/lib/databricksPresentation.d.ts +5 -0
- package/dist/cosmicintersection/lib/databricksPresentation.d.ts.map +1 -0
- package/dist/cosmicintersection/lib/databricksPresentation.js +27 -0
- package/dist/cosmicintersection/lib/databricksPresentation.js.map +1 -0
- package/dist/cosmicintersection/pages/access/AccessPage.js +62 -62
- package/dist/cosmicintersection/pages/access/AccessPage.js.map +1 -1
- package/dist/cosmicintersection/pages/analyses/AnalysesPage.js +107 -107
- package/dist/cosmicintersection/pages/analyses/AnalysesPage.js.map +1 -1
- package/dist/cosmicintersection/pages/collections/CollectionDetailPage.js +24 -24
- package/dist/cosmicintersection/pages/collections/CollectionsPage.js +12 -12
- package/dist/cosmicintersection/pages/dashboard/DashboardPage.js +18 -18
- package/dist/cosmicintersection/pages/datasets/DatasetDetailPage.js +91 -91
- package/dist/cosmicintersection/pages/datasets/DatasetsPage.js +209 -209
- package/dist/cosmicintersection/pages/datasets/DatasetsPage.js.map +1 -1
- package/dist/cosmicintersection/pages/discovery/DiscoveryPage.js +98 -98
- package/dist/cosmicintersection/pages/discovery/DiscoveryPage.js.map +1 -1
- package/dist/cosmicintersection/pages/lineage/LineagePage.js +15 -15
- package/dist/cosmicintersection/pages/notebooks/NotebookDetailPage.js +139 -139
- package/dist/cosmicintersection/pages/notebooks/NotebookDetailPage.js.map +1 -1
- package/dist/cosmicintersection/pages/notebooks/NotebooksPage.js +34 -34
- package/dist/cosmicintersection/pages/pipelines/PipelineDetailPage.js +39 -39
- package/dist/cosmicintersection/pages/pipelines/PipelineDetailPage.js.map +1 -1
- package/dist/cosmicintersection/pages/pipelines/PipelineFormPage.js +107 -107
- package/dist/cosmicintersection/pages/pipelines/PipelineFormPage.js.map +1 -1
- package/dist/cosmicintersection/pages/pipelines/PipelinesPage.js +32 -32
- package/dist/cosmicintersection/pages/releases/ReleasesPage.js +213 -213
- package/dist/cosmicintersection/pages/releases/ReleasesPage.js.map +1 -1
- package/dist/cosmicintersection/pages/runs/RunDetailPage.d.ts.map +1 -1
- package/dist/cosmicintersection/pages/runs/RunDetailPage.js +250 -213
- package/dist/cosmicintersection/pages/runs/RunDetailPage.js.map +1 -1
- package/dist/cosmicintersection/pages/runs/RunsPage.js +31 -31
- package/dist/cosmicintersection/pages/sources/SourceDetailPage.js +41 -41
- package/dist/cosmicintersection/pages/sources/SourcesPage.js +122 -122
- package/dist/cosmicintersection/pages/sources/SourcesPage.js.map +1 -1
- package/dist/generated/wspace-operations.d.ts +243 -0
- package/dist/generated/wspace-operations.d.ts.map +1 -0
- package/dist/generated/wspace-operations.js +1472 -0
- package/dist/generated/wspace-operations.js.map +1 -0
- package/dist/generated/wspace-types.d.ts +183281 -30204
- package/dist/generated/wspace-types.d.ts.map +1 -1
- package/package.json +10 -7
|
@@ -16,8 +16,8 @@ import { ASSISTANT_AWARE_DIALOG_CONTENT_PROPS as y, ASSISTANT_AWARE_DIALOG_ROOT_
|
|
|
16
16
|
import { useTrackRecentItem as ee } from "../../lib/useTrackRecentItem.js";
|
|
17
17
|
import { useMemo as x, useState as S } from "react";
|
|
18
18
|
import { Fragment as C, jsx as w, jsxs as T } from "react/jsx-runtime";
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
19
|
+
import { Badge as E, Button as D, Dialog as O, DialogClose as k, DialogContent as A, DialogDescription as j, DialogFooter as M, DialogHeader as N, DialogTitle as P, Input as F, Label as I, Select as L, SelectContent as R, SelectItem as z, SelectTrigger as B, SelectValue as V, Switch as H, Table as te, TableBody as ne, TableCell as U, TableHead as W, TableHeader as re, TableRow as ie, Textarea as ae } from "@burdenoff/fe-libs/ui";
|
|
20
|
+
import { BarChart3 as G, Beaker as K, Download as q, ExternalLink as oe, Play as J, Sparkles as se } from "lucide-react";
|
|
21
21
|
//#region src/cosmicintersection/pages/analyses/AnalysesPage.tsx
|
|
22
22
|
function Y(e) {
|
|
23
23
|
return !!e.outputFile?.id || !!(e.results && Object.keys(e.results).length > 0);
|
|
@@ -92,7 +92,7 @@ function Q({ fileId: e }) {
|
|
|
92
92
|
target: "_blank",
|
|
93
93
|
rel: "noopener noreferrer",
|
|
94
94
|
className: "inline-flex items-center gap-1 text-sm text-text-primary underline-offset-2 hover:underline",
|
|
95
|
-
children: [/* @__PURE__ */ w(
|
|
95
|
+
children: [/* @__PURE__ */ w(q, {
|
|
96
96
|
className: "size-3.5",
|
|
97
97
|
"aria-hidden": "true"
|
|
98
98
|
}), "Download output"]
|
|
@@ -104,21 +104,21 @@ function Q({ fileId: e }) {
|
|
|
104
104
|
}
|
|
105
105
|
function ue({ analysis: e, onOpenChange: t }) {
|
|
106
106
|
let n = e?.results ?? null, r = !!(n && Object.keys(n).length > 0), i = !!e?.outputFile?.id;
|
|
107
|
-
return /* @__PURE__ */ w(
|
|
107
|
+
return /* @__PURE__ */ w(O, {
|
|
108
108
|
...b,
|
|
109
109
|
open: !!e,
|
|
110
110
|
onOpenChange: t,
|
|
111
|
-
children: /* @__PURE__ */ w(
|
|
111
|
+
children: /* @__PURE__ */ w(A, {
|
|
112
112
|
...y,
|
|
113
113
|
className: "max-h-[85vh] max-w-2xl overflow-y-auto",
|
|
114
114
|
children: e ? /* @__PURE__ */ T(C, { children: [
|
|
115
|
-
/* @__PURE__ */ T(
|
|
115
|
+
/* @__PURE__ */ T(N, { children: [/* @__PURE__ */ T(P, {
|
|
116
116
|
className: "flex items-center gap-2",
|
|
117
|
-
children: [/* @__PURE__ */ w(
|
|
117
|
+
children: [/* @__PURE__ */ w(G, {
|
|
118
118
|
className: "size-5 text-text-secondary",
|
|
119
119
|
"aria-hidden": "true"
|
|
120
120
|
}), "Analysis results"]
|
|
121
|
-
}), /* @__PURE__ */ T(
|
|
121
|
+
}), /* @__PURE__ */ T(j, { children: [e.title, e.method ? ` · ${e.method}` : ""] })] }),
|
|
122
122
|
/* @__PURE__ */ T("div", {
|
|
123
123
|
className: "space-y-5",
|
|
124
124
|
children: [
|
|
@@ -136,9 +136,9 @@ function ue({ analysis: e, onOpenChange: t }) {
|
|
|
136
136
|
}) : null
|
|
137
137
|
]
|
|
138
138
|
}),
|
|
139
|
-
/* @__PURE__ */ w(
|
|
139
|
+
/* @__PURE__ */ w(M, { children: /* @__PURE__ */ w(k, {
|
|
140
140
|
asChild: !0,
|
|
141
|
-
children: /* @__PURE__ */ w(
|
|
141
|
+
children: /* @__PURE__ */ w(D, {
|
|
142
142
|
type: "button",
|
|
143
143
|
variant: "outline",
|
|
144
144
|
children: "Close"
|
|
@@ -177,15 +177,15 @@ function de({ open: e, onOpenChange: n, onCompleted: r }) {
|
|
|
177
177
|
} }), { data: ee, loading: x } = a({ pagination: {
|
|
178
178
|
limit: 100,
|
|
179
179
|
offset: 0
|
|
180
|
-
} }), [C, { loading: E }] = s(),
|
|
180
|
+
} }), [C, { loading: E }] = s(), k = y?.cosListNotebooks.items ?? [], te = ee?.cosListDatasets.items ?? [], ne = () => {
|
|
181
181
|
u(""), f(""), m(!1), g("NOTEBOOK"), v("");
|
|
182
182
|
};
|
|
183
|
-
return /* @__PURE__ */ w(
|
|
183
|
+
return /* @__PURE__ */ w(O, {
|
|
184
184
|
open: e,
|
|
185
185
|
onOpenChange: (e) => {
|
|
186
186
|
E || n(e);
|
|
187
187
|
},
|
|
188
|
-
children: /* @__PURE__ */ w(
|
|
188
|
+
children: /* @__PURE__ */ w(A, { children: /* @__PURE__ */ T("form", {
|
|
189
189
|
onSubmit: async (e) => {
|
|
190
190
|
e.preventDefault();
|
|
191
191
|
let a = l.trim();
|
|
@@ -203,17 +203,17 @@ function de({ open: e, onOpenChange: n, onCompleted: r }) {
|
|
|
203
203
|
aiAssisted: p,
|
|
204
204
|
...h === "NOTEBOOK" ? { notebookId: _ } : { datasetId: _ }
|
|
205
205
|
} } });
|
|
206
|
-
o.error || !o.data?.cosRunAnalysis?.id || (t.success(i("cosmicintersection.pages.analyses.analysisStarted", "Analysis started"), i("cosmicintersection.pages.analyses.analysisStartedDescription", "“{{name}}” is now running.", { name: a })),
|
|
206
|
+
o.error || !o.data?.cosRunAnalysis?.id || (t.success(i("cosmicintersection.pages.analyses.analysisStarted", "Analysis started"), i("cosmicintersection.pages.analyses.analysisStartedDescription", "“{{name}}” is now running.", { name: a })), ne(), n(!1), r());
|
|
207
207
|
},
|
|
208
208
|
className: "space-y-4",
|
|
209
209
|
children: [
|
|
210
|
-
/* @__PURE__ */ T(
|
|
210
|
+
/* @__PURE__ */ T(N, { children: [/* @__PURE__ */ w(P, { children: "Run analysis" }), /* @__PURE__ */ w(j, { children: "Launch a new analysis against a notebook or a dataset. Exactly one source is required." })] }),
|
|
211
211
|
/* @__PURE__ */ T("div", {
|
|
212
212
|
className: "space-y-1.5",
|
|
213
|
-
children: [/* @__PURE__ */ w(
|
|
213
|
+
children: [/* @__PURE__ */ w(I, {
|
|
214
214
|
htmlFor: "run-title",
|
|
215
215
|
children: "Title"
|
|
216
|
-
}), /* @__PURE__ */ w(
|
|
216
|
+
}), /* @__PURE__ */ w(F, {
|
|
217
217
|
id: "run-title",
|
|
218
218
|
value: l,
|
|
219
219
|
onChange: (e) => u(e.target.value),
|
|
@@ -225,42 +225,42 @@ function de({ open: e, onOpenChange: n, onCompleted: r }) {
|
|
|
225
225
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
|
|
226
226
|
children: [/* @__PURE__ */ T("div", {
|
|
227
227
|
className: "space-y-1.5",
|
|
228
|
-
children: [/* @__PURE__ */ w(
|
|
228
|
+
children: [/* @__PURE__ */ w(I, {
|
|
229
229
|
htmlFor: "run-source-kind",
|
|
230
230
|
children: "Source type"
|
|
231
|
-
}), /* @__PURE__ */ T(
|
|
231
|
+
}), /* @__PURE__ */ T(L, {
|
|
232
232
|
value: h,
|
|
233
233
|
onValueChange: (e) => {
|
|
234
234
|
g(e), v("");
|
|
235
235
|
},
|
|
236
|
-
children: [/* @__PURE__ */ w(
|
|
236
|
+
children: [/* @__PURE__ */ w(B, {
|
|
237
237
|
id: "run-source-kind",
|
|
238
238
|
"aria-label": "Source type",
|
|
239
|
-
children: /* @__PURE__ */ w(
|
|
240
|
-
}), /* @__PURE__ */ T(
|
|
239
|
+
children: /* @__PURE__ */ w(V, {})
|
|
240
|
+
}), /* @__PURE__ */ T(R, { children: [/* @__PURE__ */ w(z, {
|
|
241
241
|
value: "NOTEBOOK",
|
|
242
242
|
children: "Notebook"
|
|
243
|
-
}), /* @__PURE__ */ w(
|
|
243
|
+
}), /* @__PURE__ */ w(z, {
|
|
244
244
|
value: "DATASET",
|
|
245
245
|
children: "Dataset"
|
|
246
246
|
})] })]
|
|
247
247
|
})]
|
|
248
248
|
}), /* @__PURE__ */ T("div", {
|
|
249
249
|
className: "space-y-1.5",
|
|
250
|
-
children: [/* @__PURE__ */ w(
|
|
250
|
+
children: [/* @__PURE__ */ w(I, {
|
|
251
251
|
htmlFor: "run-source-id",
|
|
252
252
|
children: h === "NOTEBOOK" ? "Notebook" : "Dataset"
|
|
253
|
-
}), /* @__PURE__ */ T(
|
|
253
|
+
}), /* @__PURE__ */ T(L, {
|
|
254
254
|
value: _,
|
|
255
255
|
onValueChange: (e) => v(e),
|
|
256
|
-
children: [/* @__PURE__ */ w(
|
|
256
|
+
children: [/* @__PURE__ */ w(B, {
|
|
257
257
|
id: "run-source-id",
|
|
258
258
|
"aria-label": "Analysis source",
|
|
259
|
-
children: /* @__PURE__ */ w(
|
|
260
|
-
}), /* @__PURE__ */ w(
|
|
259
|
+
children: /* @__PURE__ */ w(V, { placeholder: (h === "NOTEBOOK" ? b : x) ? "Loading…" : `Select a ${h === "NOTEBOOK" ? "notebook" : "dataset"}` })
|
|
260
|
+
}), /* @__PURE__ */ w(R, { children: h === "NOTEBOOK" ? k.map((e) => /* @__PURE__ */ w(z, {
|
|
261
261
|
value: e.id,
|
|
262
262
|
children: e.title
|
|
263
|
-
}, e.id)) :
|
|
263
|
+
}, e.id)) : te.map((e) => /* @__PURE__ */ w(z, {
|
|
264
264
|
value: e.id,
|
|
265
265
|
children: e.name
|
|
266
266
|
}, e.id)) })]
|
|
@@ -269,10 +269,10 @@ function de({ open: e, onOpenChange: n, onCompleted: r }) {
|
|
|
269
269
|
}),
|
|
270
270
|
/* @__PURE__ */ T("div", {
|
|
271
271
|
className: "space-y-1.5",
|
|
272
|
-
children: [/* @__PURE__ */ w(
|
|
272
|
+
children: [/* @__PURE__ */ w(I, {
|
|
273
273
|
htmlFor: "run-method",
|
|
274
274
|
children: "Method"
|
|
275
|
-
}), /* @__PURE__ */ w(
|
|
275
|
+
}), /* @__PURE__ */ w(F, {
|
|
276
276
|
id: "run-method",
|
|
277
277
|
value: d,
|
|
278
278
|
onChange: (e) => f(e.target.value),
|
|
@@ -281,26 +281,26 @@ function de({ open: e, onOpenChange: n, onCompleted: r }) {
|
|
|
281
281
|
}),
|
|
282
282
|
/* @__PURE__ */ T("div", {
|
|
283
283
|
className: "flex items-center gap-3",
|
|
284
|
-
children: [/* @__PURE__ */ w(
|
|
284
|
+
children: [/* @__PURE__ */ w(H, {
|
|
285
285
|
id: "run-ai",
|
|
286
286
|
checked: p,
|
|
287
287
|
onCheckedChange: (e) => m(e)
|
|
288
|
-
}), /* @__PURE__ */ w(
|
|
288
|
+
}), /* @__PURE__ */ w(I, {
|
|
289
289
|
htmlFor: "run-ai",
|
|
290
290
|
className: "cursor-pointer",
|
|
291
291
|
children: "AI-assisted analysis"
|
|
292
292
|
})]
|
|
293
293
|
}),
|
|
294
|
-
/* @__PURE__ */ T(
|
|
294
|
+
/* @__PURE__ */ T(M, { children: [/* @__PURE__ */ w(D, {
|
|
295
295
|
type: "button",
|
|
296
296
|
variant: "outline",
|
|
297
297
|
onClick: () => n(!1),
|
|
298
298
|
disabled: E,
|
|
299
299
|
children: "Cancel"
|
|
300
|
-
}), /* @__PURE__ */ T(
|
|
300
|
+
}), /* @__PURE__ */ T(D, {
|
|
301
301
|
type: "submit",
|
|
302
302
|
disabled: E,
|
|
303
|
-
children: [/* @__PURE__ */ w(
|
|
303
|
+
children: [/* @__PURE__ */ w(J, { className: "size-4" }), E ? "Starting…" : "Run analysis"]
|
|
304
304
|
})] })
|
|
305
305
|
]
|
|
306
306
|
}) })
|
|
@@ -308,12 +308,12 @@ function de({ open: e, onOpenChange: n, onCompleted: r }) {
|
|
|
308
308
|
}
|
|
309
309
|
function fe({ analysis: e, onOpenChange: n, onCompleted: r }) {
|
|
310
310
|
let [a, o] = S("COMPLETED"), [s, l] = S(""), [u, d] = S(""), [f, { loading: m }] = i(), h = c();
|
|
311
|
-
return /* @__PURE__ */ w(
|
|
311
|
+
return /* @__PURE__ */ w(O, {
|
|
312
312
|
open: !!e,
|
|
313
313
|
onOpenChange: (e) => {
|
|
314
314
|
m || n(e);
|
|
315
315
|
},
|
|
316
|
-
children: /* @__PURE__ */ w(
|
|
316
|
+
children: /* @__PURE__ */ w(A, { children: /* @__PURE__ */ T("form", {
|
|
317
317
|
onSubmit: async (i) => {
|
|
318
318
|
if (i.preventDefault(), !e) return;
|
|
319
319
|
let o = $(s, h);
|
|
@@ -331,27 +331,27 @@ function fe({ analysis: e, onOpenChange: n, onCompleted: r }) {
|
|
|
331
331
|
},
|
|
332
332
|
className: "space-y-4",
|
|
333
333
|
children: [
|
|
334
|
-
/* @__PURE__ */ T(
|
|
334
|
+
/* @__PURE__ */ T(N, { children: [/* @__PURE__ */ w(P, { children: "Complete analysis" }), /* @__PURE__ */ T(j, { children: [
|
|
335
335
|
"Record the outcome for ",
|
|
336
336
|
e ? `“${e.title}”` : "this analysis",
|
|
337
337
|
". Attach results or an output artifact if you have them."
|
|
338
338
|
] })] }),
|
|
339
339
|
/* @__PURE__ */ T("div", {
|
|
340
340
|
className: "space-y-1.5",
|
|
341
|
-
children: [/* @__PURE__ */ w(
|
|
341
|
+
children: [/* @__PURE__ */ w(I, {
|
|
342
342
|
htmlFor: "complete-status",
|
|
343
343
|
children: "Outcome"
|
|
344
|
-
}), /* @__PURE__ */ T(
|
|
344
|
+
}), /* @__PURE__ */ T(L, {
|
|
345
345
|
value: a,
|
|
346
346
|
onValueChange: (e) => o(e),
|
|
347
|
-
children: [/* @__PURE__ */ w(
|
|
347
|
+
children: [/* @__PURE__ */ w(B, {
|
|
348
348
|
id: "complete-status",
|
|
349
349
|
"aria-label": "Outcome",
|
|
350
|
-
children: /* @__PURE__ */ w(
|
|
351
|
-
}), /* @__PURE__ */ T(
|
|
350
|
+
children: /* @__PURE__ */ w(V, {})
|
|
351
|
+
}), /* @__PURE__ */ T(R, { children: [/* @__PURE__ */ w(z, {
|
|
352
352
|
value: "COMPLETED",
|
|
353
353
|
children: "Completed"
|
|
354
|
-
}), /* @__PURE__ */ w(
|
|
354
|
+
}), /* @__PURE__ */ w(z, {
|
|
355
355
|
value: "FAILED",
|
|
356
356
|
children: "Failed"
|
|
357
357
|
})] })]
|
|
@@ -360,11 +360,11 @@ function fe({ analysis: e, onOpenChange: n, onCompleted: r }) {
|
|
|
360
360
|
/* @__PURE__ */ T("div", {
|
|
361
361
|
className: "space-y-1.5",
|
|
362
362
|
children: [
|
|
363
|
-
/* @__PURE__ */ w(
|
|
363
|
+
/* @__PURE__ */ w(I, {
|
|
364
364
|
htmlFor: "complete-results",
|
|
365
365
|
children: "Results (JSON)"
|
|
366
366
|
}),
|
|
367
|
-
/* @__PURE__ */ w(
|
|
367
|
+
/* @__PURE__ */ w(ae, {
|
|
368
368
|
id: "complete-results",
|
|
369
369
|
value: s,
|
|
370
370
|
onChange: (e) => l(e.target.value),
|
|
@@ -384,13 +384,13 @@ function fe({ analysis: e, onOpenChange: n, onCompleted: r }) {
|
|
|
384
384
|
label: "Attach output file",
|
|
385
385
|
hint: "Optional output artifact (plots, tables, exports). Stored in workspace files."
|
|
386
386
|
}),
|
|
387
|
-
/* @__PURE__ */ T(
|
|
387
|
+
/* @__PURE__ */ T(M, { children: [/* @__PURE__ */ w(D, {
|
|
388
388
|
type: "button",
|
|
389
389
|
variant: "outline",
|
|
390
390
|
onClick: () => n(!1),
|
|
391
391
|
disabled: m,
|
|
392
392
|
children: "Cancel"
|
|
393
|
-
}), /* @__PURE__ */ w(
|
|
393
|
+
}), /* @__PURE__ */ w(D, {
|
|
394
394
|
type: "submit",
|
|
395
395
|
disabled: m,
|
|
396
396
|
children: m ? "Saving…" : "Save outcome"
|
|
@@ -400,13 +400,13 @@ function fe({ analysis: e, onOpenChange: n, onCompleted: r }) {
|
|
|
400
400
|
});
|
|
401
401
|
}
|
|
402
402
|
function pe() {
|
|
403
|
-
let { navigate: t } = e(), i = c(), [s, p] = S(void 0), [m, g] = S(!1), [y, b] = S(null), { data: O, loading:
|
|
403
|
+
let { navigate: t } = e(), i = c(), [s, p] = S(void 0), [m, g] = S(!1), [y, b] = S(null), { data: O, loading: k, error: A, refetch: j } = n({ status: s }), { data: M } = o({ pagination: {
|
|
404
404
|
limit: 100,
|
|
405
405
|
offset: 0
|
|
406
|
-
} }), { data:
|
|
406
|
+
} }), { data: N } = a({ pagination: {
|
|
407
407
|
limit: 100,
|
|
408
408
|
offset: 0
|
|
409
|
-
} }),
|
|
409
|
+
} }), P = O?.cosListAnalyses ?? [], { selectedId: F, select: I } = v(), H = F ? P.find((e) => e.id === F) ?? null : null, { data: ae } = r(F, { skip: H !== null || k || !O }), q = ae?.cosAnalysis ?? null, Q = H ?? (q && q.id === F ? q : null), $ = (e) => I(e ? e.id : null);
|
|
410
410
|
ee(Q ? {
|
|
411
411
|
type: "analysis",
|
|
412
412
|
id: Q.id,
|
|
@@ -415,13 +415,13 @@ function pe() {
|
|
|
415
415
|
} : null);
|
|
416
416
|
let pe = x(() => {
|
|
417
417
|
let e = /* @__PURE__ */ new Map();
|
|
418
|
-
for (let t of
|
|
418
|
+
for (let t of M?.cosListNotebooks.items ?? []) e.set(t.id, t.title);
|
|
419
419
|
return e;
|
|
420
|
-
}, [
|
|
420
|
+
}, [M]), me = x(() => {
|
|
421
421
|
let e = /* @__PURE__ */ new Map();
|
|
422
|
-
for (let t of
|
|
422
|
+
for (let t of N?.cosListDatasets.items ?? []) e.set(t.id, t.name);
|
|
423
423
|
return e;
|
|
424
|
-
}, [
|
|
424
|
+
}, [N]), he = (e) => e.notebookId ? {
|
|
425
425
|
label: pe.get(e.notebookId) ?? "Notebook",
|
|
426
426
|
path: `notebooks/${e.notebookId}`
|
|
427
427
|
} : e.datasetId ? {
|
|
@@ -432,18 +432,18 @@ function pe() {
|
|
|
432
432
|
return [...Y(e) ? [{
|
|
433
433
|
key: "view-results",
|
|
434
434
|
label: "View results",
|
|
435
|
-
icon:
|
|
435
|
+
icon: G,
|
|
436
436
|
onSelect: () => $(e)
|
|
437
437
|
}] : [], ...t ? [{
|
|
438
438
|
key: "complete",
|
|
439
439
|
label: "Complete…",
|
|
440
|
-
icon:
|
|
440
|
+
icon: K,
|
|
441
441
|
onSelect: () => b(e)
|
|
442
442
|
}] : []];
|
|
443
|
-
}, _e = /* @__PURE__ */ T(
|
|
443
|
+
}, _e = /* @__PURE__ */ T(D, {
|
|
444
444
|
type: "button",
|
|
445
445
|
onClick: () => g(!0),
|
|
446
|
-
children: [/* @__PURE__ */ w(
|
|
446
|
+
children: [/* @__PURE__ */ w(J, { className: "size-4" }), i("cosmicintersection.pages.analyses.create", "Run analysis")]
|
|
447
447
|
});
|
|
448
448
|
return /* @__PURE__ */ T(h, {
|
|
449
449
|
title: i("cosmicintersection.pages.analyses.title", "Analyses"),
|
|
@@ -458,71 +458,71 @@ function pe() {
|
|
|
458
458
|
className: "text-sm text-text-secondary",
|
|
459
459
|
htmlFor: "analysis-status-filter",
|
|
460
460
|
children: "Status"
|
|
461
|
-
}), /* @__PURE__ */ T(
|
|
461
|
+
}), /* @__PURE__ */ T(L, {
|
|
462
462
|
value: s ?? X,
|
|
463
463
|
onValueChange: (e) => p(e === X ? void 0 : e),
|
|
464
|
-
children: [/* @__PURE__ */ w(
|
|
464
|
+
children: [/* @__PURE__ */ w(B, {
|
|
465
465
|
id: "analysis-status-filter",
|
|
466
466
|
className: "w-48",
|
|
467
467
|
"aria-label": "Filter by status",
|
|
468
|
-
children: /* @__PURE__ */ w(
|
|
469
|
-
}), /* @__PURE__ */ T(
|
|
468
|
+
children: /* @__PURE__ */ w(V, {})
|
|
469
|
+
}), /* @__PURE__ */ T(R, { children: [/* @__PURE__ */ w(z, {
|
|
470
470
|
value: X,
|
|
471
471
|
children: "All statuses"
|
|
472
|
-
}), ce.map((e) => /* @__PURE__ */ w(
|
|
472
|
+
}), ce.map((e) => /* @__PURE__ */ w(z, {
|
|
473
473
|
value: e.value,
|
|
474
474
|
children: e.label
|
|
475
475
|
}, e.value))] })]
|
|
476
476
|
})]
|
|
477
|
-
}),
|
|
477
|
+
}), k ? /* @__PURE__ */ w(f, {
|
|
478
478
|
variant: "rows",
|
|
479
479
|
rows: 6,
|
|
480
480
|
label: i("cosmicintersection.pages.analyses.loading", "Loading analyses…")
|
|
481
|
-
}) :
|
|
481
|
+
}) : A ? /* @__PURE__ */ w(d, {
|
|
482
482
|
message: i("cosmicintersection.pages.analyses.error", "We could not load analyses. Please try again."),
|
|
483
|
-
onRetry: () => void
|
|
484
|
-
}) :
|
|
485
|
-
icon:
|
|
483
|
+
onRetry: () => void j()
|
|
484
|
+
}) : P.length === 0 ? /* @__PURE__ */ w(u, {
|
|
485
|
+
icon: K,
|
|
486
486
|
title: s ? i("cosmicintersection.pages.analyses.emptyFilterTitle", "No analyses match this filter.") : i("cosmicintersection.pages.analyses.emptyTitle", "No analyses yet."),
|
|
487
487
|
description: s ? i("cosmicintersection.pages.analyses.emptyFilterDescription", "Try a different status filter.") : i("cosmicintersection.pages.analyses.emptyDescription", "Run an analysis against a notebook or dataset to see results here."),
|
|
488
|
-
action: s ? void 0 : /* @__PURE__ */ T(
|
|
488
|
+
action: s ? void 0 : /* @__PURE__ */ T(D, {
|
|
489
489
|
type: "button",
|
|
490
490
|
onClick: () => g(!0),
|
|
491
|
-
children: [/* @__PURE__ */ w(
|
|
491
|
+
children: [/* @__PURE__ */ w(J, { className: "size-4" }), i("cosmicintersection.pages.analyses.create", "Run analysis")]
|
|
492
492
|
})
|
|
493
493
|
}) : /* @__PURE__ */ T(C, { children: [/* @__PURE__ */ w("div", {
|
|
494
494
|
className: "hidden rounded-card border border-border-default bg-bg-elevated md:block",
|
|
495
|
-
children: /* @__PURE__ */ T(
|
|
495
|
+
children: /* @__PURE__ */ T(te, {
|
|
496
496
|
className: "table-auto",
|
|
497
497
|
"data-testid": "analyses-table",
|
|
498
|
-
children: [/* @__PURE__ */ w(
|
|
499
|
-
/* @__PURE__ */ w(
|
|
500
|
-
/* @__PURE__ */ w(
|
|
501
|
-
/* @__PURE__ */ w(
|
|
502
|
-
/* @__PURE__ */ w(
|
|
503
|
-
/* @__PURE__ */ w(
|
|
504
|
-
/* @__PURE__ */ w(
|
|
505
|
-
/* @__PURE__ */ w(
|
|
506
|
-
/* @__PURE__ */ w(
|
|
507
|
-
/* @__PURE__ */ w(
|
|
498
|
+
children: [/* @__PURE__ */ w(re, { children: /* @__PURE__ */ T(ie, { children: [
|
|
499
|
+
/* @__PURE__ */ w(W, { children: "Title" }),
|
|
500
|
+
/* @__PURE__ */ w(W, { children: "Method" }),
|
|
501
|
+
/* @__PURE__ */ w(W, { children: "AI" }),
|
|
502
|
+
/* @__PURE__ */ w(W, { children: "Status" }),
|
|
503
|
+
/* @__PURE__ */ w(W, { children: "Source" }),
|
|
504
|
+
/* @__PURE__ */ w(W, { children: "Started" }),
|
|
505
|
+
/* @__PURE__ */ w(W, { children: "Finished" }),
|
|
506
|
+
/* @__PURE__ */ w(W, { children: "Output" }),
|
|
507
|
+
/* @__PURE__ */ w(W, {
|
|
508
508
|
className: "w-12 text-right",
|
|
509
509
|
children: "Actions"
|
|
510
510
|
})
|
|
511
|
-
] }) }), /* @__PURE__ */ w(
|
|
511
|
+
] }) }), /* @__PURE__ */ w(ne, { children: P.map((e) => {
|
|
512
512
|
let n = he(e);
|
|
513
|
-
return /* @__PURE__ */ T(
|
|
514
|
-
/* @__PURE__ */ w(
|
|
513
|
+
return /* @__PURE__ */ T(ie, { children: [
|
|
514
|
+
/* @__PURE__ */ w(U, {
|
|
515
515
|
className: "font-medium text-text-primary",
|
|
516
516
|
children: e.title
|
|
517
517
|
}),
|
|
518
|
-
/* @__PURE__ */ w(
|
|
518
|
+
/* @__PURE__ */ w(U, {
|
|
519
519
|
className: "text-text-secondary",
|
|
520
520
|
children: e.method ?? "—"
|
|
521
521
|
}),
|
|
522
|
-
/* @__PURE__ */ w(
|
|
522
|
+
/* @__PURE__ */ w(U, { children: e.aiAssisted ? /* @__PURE__ */ T(E, {
|
|
523
523
|
variant: "secondary",
|
|
524
524
|
className: "gap-1",
|
|
525
|
-
children: [/* @__PURE__ */ w(
|
|
525
|
+
children: [/* @__PURE__ */ w(se, {
|
|
526
526
|
className: "size-3",
|
|
527
527
|
"aria-hidden": "true"
|
|
528
528
|
}), "AI"]
|
|
@@ -530,12 +530,12 @@ function pe() {
|
|
|
530
530
|
className: "text-text-secondary",
|
|
531
531
|
children: "—"
|
|
532
532
|
}) }),
|
|
533
|
-
/* @__PURE__ */ w(
|
|
534
|
-
/* @__PURE__ */ w(
|
|
533
|
+
/* @__PURE__ */ w(U, { children: /* @__PURE__ */ w(_, { status: e.status }) }),
|
|
534
|
+
/* @__PURE__ */ w(U, { children: n ? /* @__PURE__ */ T("button", {
|
|
535
535
|
type: "button",
|
|
536
536
|
onClick: () => t(n.path),
|
|
537
537
|
className: "inline-flex max-w-[12rem] items-center gap-1 truncate text-sm text-text-primary underline-offset-2 hover:underline",
|
|
538
|
-
children: [/* @__PURE__ */ w(
|
|
538
|
+
children: [/* @__PURE__ */ w(oe, {
|
|
539
539
|
className: "size-3.5 shrink-0",
|
|
540
540
|
"aria-hidden": "true"
|
|
541
541
|
}), /* @__PURE__ */ w("span", {
|
|
@@ -546,21 +546,21 @@ function pe() {
|
|
|
546
546
|
className: "text-text-secondary",
|
|
547
547
|
children: "—"
|
|
548
548
|
}) }),
|
|
549
|
-
/* @__PURE__ */ w(
|
|
549
|
+
/* @__PURE__ */ w(U, {
|
|
550
550
|
className: "text-text-secondary",
|
|
551
551
|
children: /* @__PURE__ */ w(le, { value: e.startedAt })
|
|
552
552
|
}),
|
|
553
|
-
/* @__PURE__ */ w(
|
|
553
|
+
/* @__PURE__ */ w(U, {
|
|
554
554
|
className: "text-text-secondary",
|
|
555
555
|
children: /* @__PURE__ */ w(le, { value: e.finishedAt })
|
|
556
556
|
}),
|
|
557
|
-
/* @__PURE__ */ w(
|
|
557
|
+
/* @__PURE__ */ w(U, { children: Y(e) ? /* @__PURE__ */ T(D, {
|
|
558
558
|
type: "button",
|
|
559
559
|
variant: "outline",
|
|
560
560
|
size: "sm",
|
|
561
561
|
className: "h-auto gap-1 px-2 py-1",
|
|
562
562
|
onClick: () => $(e),
|
|
563
|
-
children: [/* @__PURE__ */ w(
|
|
563
|
+
children: [/* @__PURE__ */ w(G, {
|
|
564
564
|
className: "size-3.5",
|
|
565
565
|
"aria-hidden": "true"
|
|
566
566
|
}), "View"]
|
|
@@ -568,7 +568,7 @@ function pe() {
|
|
|
568
568
|
className: "text-text-secondary",
|
|
569
569
|
children: "—"
|
|
570
570
|
}) }),
|
|
571
|
-
/* @__PURE__ */ w(
|
|
571
|
+
/* @__PURE__ */ w(U, {
|
|
572
572
|
className: "text-right",
|
|
573
573
|
children: /* @__PURE__ */ w(l, {
|
|
574
574
|
ariaLabel: `Actions for ${e.title}`,
|
|
@@ -581,7 +581,7 @@ function pe() {
|
|
|
581
581
|
})
|
|
582
582
|
}), /* @__PURE__ */ w("ul", {
|
|
583
583
|
className: "space-y-3 md:hidden",
|
|
584
|
-
children:
|
|
584
|
+
children: P.map((e) => {
|
|
585
585
|
let n = he(e), r = e.status === "PENDING" || e.status === "RUNNING";
|
|
586
586
|
return /* @__PURE__ */ T("li", {
|
|
587
587
|
className: "space-y-3 rounded-card border border-border-default bg-bg-elevated p-4",
|
|
@@ -601,10 +601,10 @@ function pe() {
|
|
|
601
601
|
}),
|
|
602
602
|
/* @__PURE__ */ T("div", {
|
|
603
603
|
className: "flex flex-wrap items-center gap-2",
|
|
604
|
-
children: [e.aiAssisted ? /* @__PURE__ */ T(
|
|
604
|
+
children: [e.aiAssisted ? /* @__PURE__ */ T(E, {
|
|
605
605
|
variant: "secondary",
|
|
606
606
|
className: "gap-1",
|
|
607
|
-
children: [/* @__PURE__ */ w(
|
|
607
|
+
children: [/* @__PURE__ */ w(se, {
|
|
608
608
|
className: "size-3",
|
|
609
609
|
"aria-hidden": "true"
|
|
610
610
|
}), "AI"]
|
|
@@ -612,7 +612,7 @@ function pe() {
|
|
|
612
612
|
type: "button",
|
|
613
613
|
onClick: () => t(n.path),
|
|
614
614
|
className: "inline-flex max-w-full items-center gap-1 truncate text-sm text-text-primary underline-offset-2 hover:underline",
|
|
615
|
-
children: [/* @__PURE__ */ w(
|
|
615
|
+
children: [/* @__PURE__ */ w(oe, {
|
|
616
616
|
className: "size-3.5 shrink-0",
|
|
617
617
|
"aria-hidden": "true"
|
|
618
618
|
}), /* @__PURE__ */ w("span", {
|
|
@@ -639,18 +639,18 @@ function pe() {
|
|
|
639
639
|
}),
|
|
640
640
|
Y(e) || r ? /* @__PURE__ */ T("div", {
|
|
641
641
|
className: "flex flex-wrap gap-2",
|
|
642
|
-
children: [Y(e) ? /* @__PURE__ */ T(
|
|
642
|
+
children: [Y(e) ? /* @__PURE__ */ T(D, {
|
|
643
643
|
type: "button",
|
|
644
644
|
variant: "outline",
|
|
645
645
|
size: "sm",
|
|
646
646
|
onClick: () => $(e),
|
|
647
|
-
children: [/* @__PURE__ */ w(
|
|
648
|
-
}) : null, r ? /* @__PURE__ */ T(
|
|
647
|
+
children: [/* @__PURE__ */ w(G, { className: "size-4" }), "View results"]
|
|
648
|
+
}) : null, r ? /* @__PURE__ */ T(D, {
|
|
649
649
|
type: "button",
|
|
650
650
|
variant: "outline",
|
|
651
651
|
size: "sm",
|
|
652
652
|
onClick: () => b(e),
|
|
653
|
-
children: [/* @__PURE__ */ w(
|
|
653
|
+
children: [/* @__PURE__ */ w(K, { className: "size-4" }), "Complete"]
|
|
654
654
|
}) : null]
|
|
655
655
|
}) : null
|
|
656
656
|
]
|
|
@@ -661,14 +661,14 @@ function pe() {
|
|
|
661
661
|
/* @__PURE__ */ w(de, {
|
|
662
662
|
open: m,
|
|
663
663
|
onOpenChange: g,
|
|
664
|
-
onCompleted: () => void
|
|
664
|
+
onCompleted: () => void j()
|
|
665
665
|
}),
|
|
666
666
|
/* @__PURE__ */ w(fe, {
|
|
667
667
|
analysis: y,
|
|
668
668
|
onOpenChange: (e) => {
|
|
669
669
|
e || b(null);
|
|
670
670
|
},
|
|
671
|
-
onCompleted: () => void
|
|
671
|
+
onCompleted: () => void j()
|
|
672
672
|
}, y?.id ?? "none"),
|
|
673
673
|
/* @__PURE__ */ w(ue, {
|
|
674
674
|
analysis: Q,
|