@burdenoff/microfe-cosmicintersection 2026.1108.1 → 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.
Files changed (90) hide show
  1. package/dist/cosmicintersection/api/cosmicApi.d.ts +14 -0
  2. package/dist/cosmicintersection/api/cosmicApi.d.ts.map +1 -1
  3. package/dist/cosmicintersection/api/cosmicApi.js +71 -56
  4. package/dist/cosmicintersection/api/cosmicApi.js.map +1 -1
  5. package/dist/cosmicintersection/api/databricksTransport.d.ts +13 -0
  6. package/dist/cosmicintersection/api/databricksTransport.d.ts.map +1 -0
  7. package/dist/cosmicintersection/api/databricksTransport.js +38 -0
  8. package/dist/cosmicintersection/api/databricksTransport.js.map +1 -0
  9. package/dist/cosmicintersection/components/ActionMenu.js +17 -17
  10. package/dist/cosmicintersection/components/DatabricksQueueForm.d.ts +13 -0
  11. package/dist/cosmicintersection/components/DatabricksQueueForm.d.ts.map +1 -0
  12. package/dist/cosmicintersection/components/DatabricksQueueForm.js +221 -0
  13. package/dist/cosmicintersection/components/DatabricksQueueForm.js.map +1 -0
  14. package/dist/cosmicintersection/components/DatabricksRunPanel.d.ts +6 -0
  15. package/dist/cosmicintersection/components/DatabricksRunPanel.d.ts.map +1 -0
  16. package/dist/cosmicintersection/components/DatabricksRunPanel.js +206 -0
  17. package/dist/cosmicintersection/components/DatabricksRunPanel.js.map +1 -0
  18. package/dist/cosmicintersection/components/EntityFormShell.js +7 -7
  19. package/dist/cosmicintersection/components/EntityTagsField.js +8 -8
  20. package/dist/cosmicintersection/components/ErrorState.js +4 -4
  21. package/dist/cosmicintersection/components/FileUploadField.js +8 -8
  22. package/dist/cosmicintersection/components/Pagination.js +6 -6
  23. package/dist/cosmicintersection/components/ReleaseDraftDialog.js +17 -17
  24. package/dist/cosmicintersection/components/RunTriageCard.js +12 -12
  25. package/dist/cosmicintersection/components/SchemaProposalPanel.js +35 -35
  26. package/dist/cosmicintersection/components/SchemaProposalPanel.js.map +1 -1
  27. package/dist/cosmicintersection/components/WorkspaceTagsPicker.js +12 -12
  28. package/dist/cosmicintersection/components/index.js +7 -7
  29. package/dist/cosmicintersection/context/CosmicIntersectionContext.d.ts +2 -0
  30. package/dist/cosmicintersection/context/CosmicIntersectionContext.d.ts.map +1 -1
  31. package/dist/cosmicintersection/context/CosmicIntersectionContext.js +17 -13
  32. package/dist/cosmicintersection/context/CosmicIntersectionContext.js.map +1 -1
  33. package/dist/cosmicintersection/hooks/useDatabricksExecutions.d.ts +69 -0
  34. package/dist/cosmicintersection/hooks/useDatabricksExecutions.d.ts.map +1 -0
  35. package/dist/cosmicintersection/hooks/useDatabricksExecutions.js +89 -0
  36. package/dist/cosmicintersection/hooks/useDatabricksExecutions.js.map +1 -0
  37. package/dist/cosmicintersection/hooks/useDatabricksQueueForm.d.ts +59 -0
  38. package/dist/cosmicintersection/hooks/useDatabricksQueueForm.d.ts.map +1 -0
  39. package/dist/cosmicintersection/hooks/useDatabricksQueueForm.js +158 -0
  40. package/dist/cosmicintersection/hooks/useDatabricksQueueForm.js.map +1 -0
  41. package/dist/cosmicintersection/lib/databricksForm.d.ts +4 -0
  42. package/dist/cosmicintersection/lib/databricksForm.d.ts.map +1 -0
  43. package/dist/cosmicintersection/lib/databricksForm.js +31 -0
  44. package/dist/cosmicintersection/lib/databricksForm.js.map +1 -0
  45. package/dist/cosmicintersection/lib/databricksIntent.d.ts +19 -0
  46. package/dist/cosmicintersection/lib/databricksIntent.d.ts.map +1 -0
  47. package/dist/cosmicintersection/lib/databricksIntent.js +60 -0
  48. package/dist/cosmicintersection/lib/databricksIntent.js.map +1 -0
  49. package/dist/cosmicintersection/lib/databricksPresentation.d.ts +5 -0
  50. package/dist/cosmicintersection/lib/databricksPresentation.d.ts.map +1 -0
  51. package/dist/cosmicintersection/lib/databricksPresentation.js +27 -0
  52. package/dist/cosmicintersection/lib/databricksPresentation.js.map +1 -0
  53. package/dist/cosmicintersection/pages/access/AccessPage.js +62 -62
  54. package/dist/cosmicintersection/pages/access/AccessPage.js.map +1 -1
  55. package/dist/cosmicintersection/pages/analyses/AnalysesPage.js +107 -107
  56. package/dist/cosmicintersection/pages/analyses/AnalysesPage.js.map +1 -1
  57. package/dist/cosmicintersection/pages/collections/CollectionDetailPage.js +24 -24
  58. package/dist/cosmicintersection/pages/collections/CollectionsPage.js +12 -12
  59. package/dist/cosmicintersection/pages/dashboard/DashboardPage.js +18 -18
  60. package/dist/cosmicintersection/pages/datasets/DatasetDetailPage.js +91 -91
  61. package/dist/cosmicintersection/pages/datasets/DatasetsPage.js +209 -209
  62. package/dist/cosmicintersection/pages/datasets/DatasetsPage.js.map +1 -1
  63. package/dist/cosmicintersection/pages/discovery/DiscoveryPage.js +98 -98
  64. package/dist/cosmicintersection/pages/discovery/DiscoveryPage.js.map +1 -1
  65. package/dist/cosmicintersection/pages/lineage/LineagePage.js +15 -15
  66. package/dist/cosmicintersection/pages/notebooks/NotebookDetailPage.js +139 -139
  67. package/dist/cosmicintersection/pages/notebooks/NotebookDetailPage.js.map +1 -1
  68. package/dist/cosmicintersection/pages/notebooks/NotebooksPage.js +34 -34
  69. package/dist/cosmicintersection/pages/pipelines/PipelineDetailPage.js +39 -39
  70. package/dist/cosmicintersection/pages/pipelines/PipelineDetailPage.js.map +1 -1
  71. package/dist/cosmicintersection/pages/pipelines/PipelineFormPage.js +107 -107
  72. package/dist/cosmicintersection/pages/pipelines/PipelineFormPage.js.map +1 -1
  73. package/dist/cosmicintersection/pages/pipelines/PipelinesPage.js +32 -32
  74. package/dist/cosmicintersection/pages/releases/ReleasesPage.d.ts.map +1 -1
  75. package/dist/cosmicintersection/pages/releases/ReleasesPage.js +193 -161
  76. package/dist/cosmicintersection/pages/releases/ReleasesPage.js.map +1 -1
  77. package/dist/cosmicintersection/pages/runs/RunDetailPage.d.ts.map +1 -1
  78. package/dist/cosmicintersection/pages/runs/RunDetailPage.js +250 -213
  79. package/dist/cosmicintersection/pages/runs/RunDetailPage.js.map +1 -1
  80. package/dist/cosmicintersection/pages/runs/RunsPage.js +31 -31
  81. package/dist/cosmicintersection/pages/sources/SourceDetailPage.js +41 -41
  82. package/dist/cosmicintersection/pages/sources/SourcesPage.js +122 -122
  83. package/dist/cosmicintersection/pages/sources/SourcesPage.js.map +1 -1
  84. package/dist/generated/wspace-operations.d.ts +243 -0
  85. package/dist/generated/wspace-operations.d.ts.map +1 -0
  86. package/dist/generated/wspace-operations.js +1472 -0
  87. package/dist/generated/wspace-operations.js.map +1 -0
  88. package/dist/generated/wspace-types.d.ts +183281 -30204
  89. package/dist/generated/wspace-types.d.ts.map +1 -1
  90. package/package.json +10 -7
@@ -1,26 +1,26 @@
1
1
  import { useCosmicIntersection as e } from "../../context/CosmicIntersectionContext.js";
2
- import { notify as t } from "../../lib/toast.js";
3
- import { useCosDatasetsQuery as ee, useCosNotebooksQuery as te, useCosPublishReleaseMutation as ne, useCosReleaseQuery as n, useCosReleasesQuery as re } from "../../api/cosmicApi.js";
4
- import { useTr as ie } from "../../../shared/hooks/useTr.js";
5
- import { ActionMenu as r } from "../../components/ActionMenu.js";
6
- import { EmptyState as ae } from "../../components/EmptyState.js";
7
- import { ErrorState as oe } from "../../components/ErrorState.js";
8
- import { LoadingState as se } from "../../components/LoadingState.js";
9
- import { SafeLink as i } from "../../components/SafeLink.js";
10
- import { DiscussionPanel as ce } from "../../components/DiscussionPanel.js";
11
- import { PageLayout as le } from "../../components/PageLayout.js";
12
- import { Pagination as ue, usePagination as de } from "../../components/Pagination.js";
13
- import { StatusBadge as a, formatEnumLabel as fe } from "../../components/StatusBadge.js";
2
+ import { SafeLink as t } from "../../components/SafeLink.js";
3
+ import { notify as n } from "../../lib/toast.js";
4
+ import { useCosDatasetsQuery as r, useCosMintDoiMutation as ee, useCosNotebooksQuery as te, useCosPublishReleaseMutation as ne, useCosReleaseQuery as re, useCosReleasesQuery as ie } from "../../api/cosmicApi.js";
5
+ import { useTr as ae } from "../../../shared/hooks/useTr.js";
6
+ import { ActionMenu as i } from "../../components/ActionMenu.js";
7
+ import { EmptyState as oe } from "../../components/EmptyState.js";
8
+ import { ErrorState as se } from "../../components/ErrorState.js";
9
+ import { LoadingState as ce } from "../../components/LoadingState.js";
10
+ import { DiscussionPanel as le } from "../../components/DiscussionPanel.js";
11
+ import { PageLayout as ue } from "../../components/PageLayout.js";
12
+ import { Pagination as de, usePagination as fe } from "../../components/Pagination.js";
13
+ import { StatusBadge as a, formatEnumLabel as pe } from "../../components/StatusBadge.js";
14
14
  import "../../components/index.js";
15
- import { useSelectedRecord as pe } from "../../lib/useSelectedRecord.js";
16
- import { ASSISTANT_AWARE_DIALOG_CONTENT_PROPS as me, ASSISTANT_AWARE_DIALOG_ROOT_PROPS as he } from "../../lib/assistantAwareDialog.js";
17
- import { useTrackRecentItem as ge } from "../../lib/useTrackRecentItem.js";
15
+ import { useSelectedRecord as me } from "../../lib/useSelectedRecord.js";
16
+ import { ASSISTANT_AWARE_DIALOG_CONTENT_PROPS as he, ASSISTANT_AWARE_DIALOG_ROOT_PROPS as ge } from "../../lib/assistantAwareDialog.js";
17
+ import { useTrackRecentItem as _e } from "../../lib/useTrackRecentItem.js";
18
18
  import { useMemo as o, useState as s } from "react";
19
19
  import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
20
- import { BookOpen as _e, Database as ve, ExternalLink as d, NotebookPen as ye, Plus as be, Rocket as f } from "lucide-react";
21
- import { Button as p, Dialog as m, DialogClose as xe, DialogContent as h, DialogDescription as g, DialogFooter as _, DialogHeader as v, DialogTitle as y, Input as Se, Label as Ce, Select as we, SelectContent as Te, SelectItem as b, SelectTrigger as Ee, SelectValue as x, Table as De, TableBody as Oe, TableCell as S, TableHead as C, TableHeader as ke, TableRow as w } from "@burdenoff/fe-libs/ui";
20
+ import { Button as d, Checkbox as ve, Dialog as f, DialogClose as ye, DialogContent as p, DialogDescription as m, DialogFooter as h, DialogHeader as g, DialogTitle as _, Input as be, Label as xe, Select as Se, SelectContent as Ce, SelectItem as v, SelectTrigger as we, SelectValue as Te, Table as Ee, TableBody as De, TableCell as y, TableHead as b, TableHeader as Oe, TableRow as x } from "@burdenoff/fe-libs/ui";
21
+ import { BookOpen as S, Database as ke, ExternalLink as C, NotebookPen as Ae, Plus as je, Rocket as w } from "lucide-react";
22
22
  //#region src/cosmicintersection/pages/releases/ReleasesPage.tsx
23
- var T = "ALL", Ae = [
23
+ var T = "ALL", Me = [
24
24
  "DRAFT",
25
25
  "UNDER_REVIEW",
26
26
  "PUBLISHED",
@@ -43,56 +43,66 @@ function O(e) {
43
43
  return /^https?:\/\//i.test(t) ? t : `https://doi.org/${t.replace(/^doi:/i, "")}`;
44
44
  }
45
45
  function k() {
46
- let { navigate: k } = e(), A = ie(), [j, je] = s(T), M = de({
46
+ let { navigate: k } = e(), A = ae(), [j, Ne] = s(T), M = fe({
47
47
  pageSize: 20,
48
48
  resetKey: j
49
- }), { data: N, loading: P, error: F, refetch: I } = re({
49
+ }), { data: N, loading: P, error: F, refetch: I } = ie({
50
50
  status: j === T ? void 0 : j,
51
51
  pagination: {
52
52
  limit: M.limit,
53
53
  offset: M.offset
54
54
  }
55
- }), [Me, { loading: L }] = ne(), R = o(() => N?.cosListReleases.items ?? [], [N]), Ne = N?.cosListReleases.pageInfo, z = ee({ pagination: {
55
+ }), [Pe, { loading: L }] = ne(), [Fe, { loading: R }] = ee(), z = o(() => N?.cosListReleases.items ?? [], [N]), Ie = N?.cosListReleases.pageInfo, B = r({ pagination: {
56
56
  limit: 100,
57
57
  offset: 0
58
- } }), B = te({ pagination: {
58
+ } }), V = te({ pagination: {
59
59
  limit: 100,
60
60
  offset: 0
61
- } }), Pe = o(() => {
61
+ } }), Le = o(() => {
62
62
  let e = /* @__PURE__ */ new Map();
63
- for (let t of z.data?.cosListDatasets.items ?? []) e.set(t.id, t.name);
63
+ for (let t of B.data?.cosListDatasets.items ?? []) e.set(t.id, t.name);
64
64
  return e;
65
- }, [z.data]), V = o(() => {
65
+ }, [B.data]), H = o(() => {
66
66
  let e = /* @__PURE__ */ new Map();
67
- for (let t of B.data?.cosListNotebooks.items ?? []) e.set(t.id, t.title);
67
+ for (let t of V.data?.cosListNotebooks.items ?? []) e.set(t.id, t.title);
68
68
  return e;
69
- }, [B.data]), { selectedId: H, select: Fe } = pe(), U = o(() => H ? R.find((e) => e.id === H) ?? null : null, [R, H]), { data: Ie } = n(H, { skip: U !== null || P || !N }), W = Ie?.cosRelease ?? null, G = U ?? (W && W.id === H ? W : null), K = (e) => Fe(e ? e.id : null);
70
- ge(G ? {
69
+ }, [V.data]), { selectedId: U, select: Re } = me(), W = o(() => U ? z.find((e) => e.id === U) ?? null : null, [z, U]), { data: ze } = re(U, { skip: W !== null || P || !N }), G = ze?.cosRelease ?? null, K = W ?? (G && G.id === U ? G : null), q = (e) => Re(e ? e.id : null);
70
+ _e(K ? {
71
71
  type: "release",
72
- id: G.id,
73
- name: G.title,
74
- path: `releases?id=${encodeURIComponent(G.id)}`
72
+ id: K.id,
73
+ name: K.title,
74
+ path: `releases?id=${encodeURIComponent(K.id)}`
75
75
  } : null);
76
- let q = (e) => {
77
- K(null), k(e);
78
- }, [J, Y] = s(null), [X, Z] = s(""), Q = (e) => {
79
- Z(e.doi ?? ""), Y(e);
80
- }, Le = async () => {
81
- if (!J) return;
82
- let e = X.trim();
83
- (await Me({ variables: {
84
- id: J.id,
85
- doi: e || void 0
86
- } })).data?.cosPublishRelease?.id && (t.success(A("cosmicintersection.pages.releases.publishSuccess", "Release published"), A("cosmicintersection.pages.releases.publishSuccessDescription", "“{{name}}” is now public.", { name: J.title })), Y(null), Z(""), await I());
87
- }, $ = /* @__PURE__ */ u(p, {
76
+ let J = (e) => {
77
+ q(null), k(e);
78
+ }, [Y, X] = s(null), [Z, Q] = s(""), [Be, Ve] = s(!0), $ = (e) => {
79
+ Q(e.doi ?? ""), Ve(!0), X(e);
80
+ }, He = async () => {
81
+ if (!Y) return;
82
+ let e = Z.trim(), t = Be && e.length === 0, r = await Pe({ variables: {
83
+ id: Y.id,
84
+ doi: e || void 0,
85
+ mintDoi: t ? !0 : void 0
86
+ } });
87
+ if (r.data?.cosPublishRelease?.id) {
88
+ let e = r.data.cosPublishRelease.doi;
89
+ n.success(A("cosmicintersection.pages.releases.publishSuccess", "Release published"), A("cosmicintersection.pages.releases.publishSuccessDescription", "“{{name}}” is now public.", { name: Y.title })), t && !e && n.warning(A("cosmicintersection.pages.releases.doiMintFailedTitle", "DOI minting failed"), A("cosmicintersection.pages.releases.doiMintFailedDescription", "The release is published, but the automatic DOI registration did not complete. Retry from the release details.")), X(null), Q(""), await I();
90
+ }
91
+ }, Ue = async (e) => {
92
+ let t = (await Fe({ variables: { releaseId: e.id } })).data?.cosMintDoi;
93
+ t && (t.state === "FINDABLE" && t.doi ? n.success(A("cosmicintersection.pages.releases.doiMintedTitle", "DOI minted"), A("cosmicintersection.pages.releases.doiMintedDescription", "“{{name}}” is now registered as {{doi}}.", {
94
+ name: e.title,
95
+ doi: t.doi
96
+ })) : n.warning(A("cosmicintersection.pages.releases.doiMintFailedTitle", "DOI minting failed"), t.errorMessage ?? A("cosmicintersection.pages.releases.doiMintFailedDescription", "Retry later.")), await I());
97
+ }, We = /* @__PURE__ */ u(d, {
88
98
  type: "button",
89
99
  onClick: () => k("releases/create"),
90
- children: [/* @__PURE__ */ l(be, { className: "size-4" }), A("cosmicintersection.pages.releases.create", "New release")]
100
+ children: [/* @__PURE__ */ l(je, { className: "size-4" }), A("cosmicintersection.pages.releases.create", "New release")]
91
101
  });
92
- return /* @__PURE__ */ u(le, {
102
+ return /* @__PURE__ */ u(ue, {
93
103
  title: A("cosmicintersection.pages.releases.title", "Releases"),
94
104
  description: A("cosmicintersection.pages.releases.description", "Citable, versioned publications that bundle datasets and notebooks for the community."),
95
- actions: $,
105
+ actions: We,
96
106
  children: [
97
107
  /* @__PURE__ */ u("div", {
98
108
  className: "space-y-4",
@@ -100,77 +110,77 @@ function k() {
100
110
  className: "flex flex-wrap items-center gap-3",
101
111
  children: /* @__PURE__ */ l("div", {
102
112
  className: "w-full max-w-[14rem]",
103
- children: /* @__PURE__ */ u(we, {
113
+ children: /* @__PURE__ */ u(Se, {
104
114
  value: j,
105
- onValueChange: je,
106
- children: [/* @__PURE__ */ l(Ee, {
115
+ onValueChange: Ne,
116
+ children: [/* @__PURE__ */ l(we, {
107
117
  "aria-label": "Filter by status",
108
- children: /* @__PURE__ */ l(x, { placeholder: "All statuses" })
109
- }), /* @__PURE__ */ u(Te, { children: [/* @__PURE__ */ l(b, {
118
+ children: /* @__PURE__ */ l(Te, { placeholder: "All statuses" })
119
+ }), /* @__PURE__ */ u(Ce, { children: [/* @__PURE__ */ l(v, {
110
120
  value: T,
111
121
  children: "All statuses"
112
- }), Ae.map((e) => /* @__PURE__ */ l(b, {
122
+ }), Me.map((e) => /* @__PURE__ */ l(v, {
113
123
  value: e,
114
- children: fe(e)
124
+ children: pe(e)
115
125
  }, e))] })]
116
126
  })
117
127
  })
118
128
  }), (() => {
119
- if (P) return /* @__PURE__ */ l(se, {
129
+ if (P) return /* @__PURE__ */ l(ce, {
120
130
  variant: "rows",
121
131
  rows: 6,
122
132
  label: A("cosmicintersection.pages.releases.loading", "Loading releases…")
123
133
  });
124
- if (F) return /* @__PURE__ */ l(oe, {
134
+ if (F) return /* @__PURE__ */ l(se, {
125
135
  message: F.message,
126
136
  onRetry: () => void I()
127
137
  });
128
- if (R.length === 0) {
138
+ if (z.length === 0) {
129
139
  let e = j !== T;
130
- return /* @__PURE__ */ l(ae, {
131
- icon: f,
140
+ return /* @__PURE__ */ l(oe, {
141
+ icon: w,
132
142
  title: e ? A("cosmicintersection.pages.releases.emptyFilterTitle", "No releases match this filter") : A("cosmicintersection.pages.releases.emptyTitle", "No releases yet"),
133
143
  description: e ? A("cosmicintersection.pages.releases.emptyFilterDescription", "Try clearing the status filter to see more releases.") : A("cosmicintersection.pages.releases.emptyDescription", "Package datasets and notebooks into a citable, versioned release for publication."),
134
- action: e ? void 0 : $
144
+ action: e ? void 0 : We
135
145
  });
136
146
  }
137
147
  return /* @__PURE__ */ u(c, { children: [
138
148
  /* @__PURE__ */ l("div", {
139
149
  className: "hidden rounded-card border border-border-default bg-bg-elevated md:block",
140
- children: /* @__PURE__ */ u(De, { children: [/* @__PURE__ */ l(ke, { children: /* @__PURE__ */ u(w, { children: [
141
- /* @__PURE__ */ l(C, { children: "Title" }),
142
- /* @__PURE__ */ l(C, { children: "Version" }),
143
- /* @__PURE__ */ l(C, { children: "Status" }),
144
- /* @__PURE__ */ l(C, { children: "DOI" }),
145
- /* @__PURE__ */ l(C, { children: "Authors" }),
146
- /* @__PURE__ */ l(C, { children: "Published" }),
147
- /* @__PURE__ */ l(C, { children: "License" }),
148
- /* @__PURE__ */ l(C, {
150
+ children: /* @__PURE__ */ u(Ee, { children: [/* @__PURE__ */ l(Oe, { children: /* @__PURE__ */ u(x, { children: [
151
+ /* @__PURE__ */ l(b, { children: "Title" }),
152
+ /* @__PURE__ */ l(b, { children: "Version" }),
153
+ /* @__PURE__ */ l(b, { children: "Status" }),
154
+ /* @__PURE__ */ l(b, { children: "DOI" }),
155
+ /* @__PURE__ */ l(b, { children: "Authors" }),
156
+ /* @__PURE__ */ l(b, { children: "Published" }),
157
+ /* @__PURE__ */ l(b, { children: "License" }),
158
+ /* @__PURE__ */ l(b, {
149
159
  className: "text-right",
150
160
  children: "Actions"
151
161
  })
152
- ] }) }), /* @__PURE__ */ l(Oe, { children: R.map((e) => /* @__PURE__ */ u(w, { children: [
153
- /* @__PURE__ */ l(S, { children: /* @__PURE__ */ l("button", {
162
+ ] }) }), /* @__PURE__ */ l(De, { children: z.map((e) => /* @__PURE__ */ u(x, { children: [
163
+ /* @__PURE__ */ l(y, { children: /* @__PURE__ */ l("button", {
154
164
  type: "button",
155
- onClick: () => K(e),
165
+ onClick: () => q(e),
156
166
  className: "text-left font-medium text-text-primary underline-offset-2 hover:underline focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-border-focus",
157
167
  children: e.title
158
168
  }) }),
159
- /* @__PURE__ */ l(S, {
169
+ /* @__PURE__ */ l(y, {
160
170
  className: "whitespace-nowrap text-sm text-text-secondary",
161
171
  children: e.version || "—"
162
172
  }),
163
- /* @__PURE__ */ l(S, { children: /* @__PURE__ */ l(a, { status: e.status }) }),
164
- /* @__PURE__ */ l(S, {
173
+ /* @__PURE__ */ l(y, { children: /* @__PURE__ */ l(a, { status: e.status }) }),
174
+ /* @__PURE__ */ l(y, {
165
175
  className: "max-w-[14rem]",
166
- children: e.doi ? /* @__PURE__ */ u(i, {
176
+ children: e.doi ? /* @__PURE__ */ u(t, {
167
177
  href: O(e.doi),
168
178
  className: "inline-flex items-center gap-1 truncate text-sm text-text-primary underline-offset-2 hover:underline",
169
179
  fallbackClassName: "block truncate text-sm text-text-secondary",
170
180
  children: [/* @__PURE__ */ l("span", {
171
181
  className: "truncate",
172
182
  children: e.doi
173
- }), /* @__PURE__ */ l(d, {
183
+ }), /* @__PURE__ */ l(C, {
174
184
  className: "size-3.5 shrink-0",
175
185
  "aria-hidden": "true"
176
186
  })]
@@ -179,7 +189,7 @@ function k() {
179
189
  children: "—"
180
190
  })
181
191
  }),
182
- /* @__PURE__ */ l(S, {
192
+ /* @__PURE__ */ l(y, {
183
193
  className: "max-w-[14rem]",
184
194
  children: e.authors.length === 0 ? /* @__PURE__ */ l("span", {
185
195
  className: "text-sm text-text-secondary",
@@ -189,24 +199,24 @@ function k() {
189
199
  children: e.authors.join(", ")
190
200
  })
191
201
  }),
192
- /* @__PURE__ */ l(S, {
202
+ /* @__PURE__ */ l(y, {
193
203
  className: "whitespace-nowrap text-sm text-text-secondary",
194
204
  children: D(e.publishedAt)
195
205
  }),
196
- /* @__PURE__ */ l(S, {
206
+ /* @__PURE__ */ l(y, {
197
207
  className: "whitespace-nowrap text-sm text-text-secondary",
198
208
  children: e.license || "—"
199
209
  }),
200
- /* @__PURE__ */ l(S, {
210
+ /* @__PURE__ */ l(y, {
201
211
  className: "text-right",
202
- children: /* @__PURE__ */ l(r, {
212
+ children: /* @__PURE__ */ l(i, {
203
213
  ariaLabel: `Actions for ${e.title}`,
204
- onView: () => K(e),
214
+ onView: () => q(e),
205
215
  extraItems: E(e.status) ? [{
206
216
  key: "publish",
207
217
  label: A("cosmicintersection.pages.releases.publish", "Publish"),
208
- icon: f,
209
- onSelect: () => Q(e)
218
+ icon: w,
219
+ onSelect: () => $(e)
210
220
  }] : []
211
221
  })
212
222
  })
@@ -214,7 +224,7 @@ function k() {
214
224
  }),
215
225
  /* @__PURE__ */ l("ul", {
216
226
  className: "space-y-3 md:hidden",
217
- children: R.map((e) => /* @__PURE__ */ l("li", {
227
+ children: z.map((e) => /* @__PURE__ */ l("li", {
218
228
  className: "rounded-card border border-border-default bg-bg-elevated",
219
229
  children: /* @__PURE__ */ u("div", {
220
230
  className: "flex items-start justify-between gap-2 p-4",
@@ -225,7 +235,7 @@ function k() {
225
235
  className: "flex flex-wrap items-center gap-2",
226
236
  children: [/* @__PURE__ */ l("button", {
227
237
  type: "button",
228
- onClick: () => K(e),
238
+ onClick: () => q(e),
229
239
  className: "truncate text-left font-medium text-text-primary underline-offset-2 hover:underline",
230
240
  children: e.title
231
241
  }), /* @__PURE__ */ l(a, { status: e.status })]
@@ -242,37 +252,37 @@ function k() {
242
252
  className: "line-clamp-1 text-xs text-text-secondary",
243
253
  children: e.authors.join(", ")
244
254
  }) : null,
245
- e.doi ? /* @__PURE__ */ u(i, {
255
+ e.doi ? /* @__PURE__ */ u(t, {
246
256
  href: O(e.doi),
247
257
  className: "inline-flex items-center gap-1 text-xs text-text-primary underline-offset-2 hover:underline",
248
258
  fallbackClassName: "block truncate text-xs text-text-secondary",
249
259
  children: [/* @__PURE__ */ u("span", {
250
260
  className: "truncate",
251
261
  children: ["DOI: ", e.doi]
252
- }), /* @__PURE__ */ l(d, {
262
+ }), /* @__PURE__ */ l(C, {
253
263
  className: "size-3 shrink-0",
254
264
  "aria-hidden": "true"
255
265
  })]
256
266
  }) : null
257
267
  ]
258
- }), /* @__PURE__ */ l(r, {
268
+ }), /* @__PURE__ */ l(i, {
259
269
  ariaLabel: `Actions for ${e.title}`,
260
- onView: () => K(e),
270
+ onView: () => q(e),
261
271
  extraItems: E(e.status) ? [{
262
272
  key: "publish",
263
273
  label: A("cosmicintersection.pages.releases.publish", "Publish"),
264
- icon: f,
265
- onSelect: () => Q(e)
274
+ icon: w,
275
+ onSelect: () => $(e)
266
276
  }] : []
267
277
  })]
268
278
  })
269
279
  }, e.id))
270
280
  }),
271
- /* @__PURE__ */ l(ue, {
281
+ /* @__PURE__ */ l(de, {
272
282
  offset: M.offset,
273
283
  limit: M.limit,
274
- loadedCount: R.length,
275
- hasMore: Ne?.hasMore ?? !1,
284
+ loadedCount: z.length,
285
+ hasMore: Ie?.hasMore ?? !1,
276
286
  onPrev: M.prevPage,
277
287
  onNext: M.nextPage,
278
288
  itemLabel: A("cosmicintersection.pages.releases.itemLabel", "releases"),
@@ -281,25 +291,25 @@ function k() {
281
291
  ] });
282
292
  })()]
283
293
  }),
284
- /* @__PURE__ */ l(m, {
285
- ...he,
286
- open: G !== null,
287
- onOpenChange: (e) => e ? void 0 : K(null),
288
- children: /* @__PURE__ */ l(h, {
289
- ...me,
294
+ /* @__PURE__ */ l(f, {
295
+ ...ge,
296
+ open: K !== null,
297
+ onOpenChange: (e) => e ? void 0 : q(null),
298
+ children: /* @__PURE__ */ l(p, {
299
+ ...he,
290
300
  className: "max-h-[85vh] max-w-lg overflow-y-auto",
291
- children: G ? /* @__PURE__ */ u(c, { children: [
292
- /* @__PURE__ */ u(v, { children: [/* @__PURE__ */ u(y, {
301
+ children: K ? /* @__PURE__ */ u(c, { children: [
302
+ /* @__PURE__ */ u(g, { children: [/* @__PURE__ */ u(_, {
293
303
  className: "flex items-center gap-2",
294
- children: [/* @__PURE__ */ l(_e, {
304
+ children: [/* @__PURE__ */ l(S, {
295
305
  className: "size-5 text-text-secondary",
296
306
  "aria-hidden": "true"
297
- }), G.title]
298
- }), /* @__PURE__ */ u(g, { children: [
307
+ }), K.title]
308
+ }), /* @__PURE__ */ u(m, { children: [
299
309
  "Version ",
300
- G.version || "—",
310
+ K.version || "—",
301
311
  " · ",
302
- /* @__PURE__ */ l(a, { status: G.status })
312
+ /* @__PURE__ */ l(a, { status: K.status })
303
313
  ] })] }),
304
314
  /* @__PURE__ */ u("div", {
305
315
  className: "space-y-4 text-sm",
@@ -309,7 +319,7 @@ function k() {
309
319
  children: "Abstract"
310
320
  }), /* @__PURE__ */ l("p", {
311
321
  className: "mt-1 whitespace-pre-wrap text-text-primary",
312
- children: G.abstract?.trim() || "No abstract provided."
322
+ children: K.abstract?.trim() || "No abstract provided."
313
323
  })] }),
314
324
  /* @__PURE__ */ u("div", {
315
325
  className: "grid grid-cols-2 gap-4",
@@ -319,32 +329,32 @@ function k() {
319
329
  children: "Authors"
320
330
  }), /* @__PURE__ */ l("p", {
321
331
  className: "mt-1 text-text-primary",
322
- children: G.authors.length ? G.authors.join(", ") : "—"
332
+ children: K.authors.length ? K.authors.join(", ") : "—"
323
333
  })] }),
324
334
  /* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("p", {
325
335
  className: "text-xs font-medium uppercase tracking-wide text-text-secondary",
326
336
  children: "License"
327
337
  }), /* @__PURE__ */ l("p", {
328
338
  className: "mt-1 text-text-primary",
329
- children: G.license || "—"
339
+ children: K.license || "—"
330
340
  })] }),
331
341
  /* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("p", {
332
342
  className: "text-xs font-medium uppercase tracking-wide text-text-secondary",
333
343
  children: "Published"
334
344
  }), /* @__PURE__ */ l("p", {
335
345
  className: "mt-1 text-text-primary",
336
- children: D(G.publishedAt)
346
+ children: D(K.publishedAt)
337
347
  })] }),
338
348
  /* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("p", {
339
349
  className: "text-xs font-medium uppercase tracking-wide text-text-secondary",
340
350
  children: "DOI"
341
351
  }), /* @__PURE__ */ l("p", {
342
352
  className: "mt-1",
343
- children: G.doi ? /* @__PURE__ */ u(i, {
344
- href: O(G.doi),
353
+ children: K.doi ? /* @__PURE__ */ u(t, {
354
+ href: O(K.doi),
345
355
  className: "inline-flex items-center gap-1 text-text-primary underline-offset-2 hover:underline",
346
356
  fallbackClassName: "text-text-secondary",
347
- children: [G.doi, /* @__PURE__ */ l(d, {
357
+ children: [K.doi, /* @__PURE__ */ l(C, {
348
358
  className: "size-3.5",
349
359
  "aria-hidden": "true"
350
360
  })]
@@ -359,23 +369,23 @@ function k() {
359
369
  className: "text-xs font-medium uppercase tracking-wide text-text-secondary",
360
370
  children: [
361
371
  "Datasets (",
362
- G.datasetIds.length,
372
+ K.datasetIds.length,
363
373
  ")"
364
374
  ]
365
375
  }), /* @__PURE__ */ l("div", {
366
376
  className: "mt-1 flex flex-wrap gap-1.5",
367
- children: G.datasetIds.length === 0 ? /* @__PURE__ */ l("span", {
377
+ children: K.datasetIds.length === 0 ? /* @__PURE__ */ l("span", {
368
378
  className: "text-text-secondary",
369
379
  children: "None linked."
370
- }) : G.datasetIds.map((e) => {
371
- let t = Pe.get(e);
372
- return /* @__PURE__ */ u(p, {
380
+ }) : K.datasetIds.map((e) => {
381
+ let t = Le.get(e);
382
+ return /* @__PURE__ */ u(d, {
373
383
  type: "button",
374
384
  variant: "outline",
375
385
  size: "sm",
376
386
  className: "h-auto gap-1 px-2 py-1",
377
- onClick: () => q(`datasets/${e}`),
378
- children: [/* @__PURE__ */ l(ve, {
387
+ onClick: () => J(`datasets/${e}`),
388
+ children: [/* @__PURE__ */ l(ke, {
379
389
  className: "size-3.5",
380
390
  "aria-hidden": "true"
381
391
  }), /* @__PURE__ */ l("span", {
@@ -390,18 +400,18 @@ function k() {
390
400
  children: "Notebook"
391
401
  }), /* @__PURE__ */ l("div", {
392
402
  className: "mt-1",
393
- children: G.notebookId ? /* @__PURE__ */ u(p, {
403
+ children: K.notebookId ? /* @__PURE__ */ u(d, {
394
404
  type: "button",
395
405
  variant: "outline",
396
406
  size: "sm",
397
407
  className: "h-auto gap-1 px-2 py-1",
398
- onClick: () => q(`notebooks/${G.notebookId}`),
399
- children: [/* @__PURE__ */ l(ye, {
408
+ onClick: () => J(`notebooks/${K.notebookId}`),
409
+ children: [/* @__PURE__ */ l(Ae, {
400
410
  className: "size-3.5",
401
411
  "aria-hidden": "true"
402
412
  }), /* @__PURE__ */ l("span", {
403
- className: V.get(G.notebookId) ? "" : "font-mono text-xs",
404
- children: V.get(G.notebookId) ?? G.notebookId
413
+ className: H.get(K.notebookId) ? "" : "font-mono text-xs",
414
+ children: H.get(K.notebookId) ?? K.notebookId
405
415
  })]
406
416
  }) : /* @__PURE__ */ l("span", {
407
417
  className: "text-text-secondary",
@@ -413,41 +423,51 @@ function k() {
413
423
  children: "Discussion"
414
424
  }), /* @__PURE__ */ l("div", {
415
425
  className: "mt-2",
416
- children: /* @__PURE__ */ l(ce, {
426
+ children: /* @__PURE__ */ l(le, {
417
427
  entityType: "cosmicintersection-release",
418
- entityId: G.id,
419
- title: G.title,
428
+ entityId: K.id,
429
+ title: K.title,
420
430
  widgetKey: "release-discussion"
421
431
  })
422
432
  })] })
423
433
  ]
424
434
  }),
425
- /* @__PURE__ */ u(_, { children: [E(G.status) ? /* @__PURE__ */ u(p, {
426
- type: "button",
427
- onClick: () => {
428
- let e = G;
429
- K(null), Q(e);
430
- },
431
- children: [/* @__PURE__ */ l(f, { className: "size-4" }), "Publish"]
432
- }) : null, /* @__PURE__ */ l(xe, {
433
- asChild: !0,
434
- children: /* @__PURE__ */ l(p, {
435
+ /* @__PURE__ */ u(h, { children: [
436
+ E(K.status) ? /* @__PURE__ */ u(d, {
437
+ type: "button",
438
+ onClick: () => {
439
+ let e = K;
440
+ q(null), $(e);
441
+ },
442
+ children: [/* @__PURE__ */ l(w, { className: "size-4" }), "Publish"]
443
+ }) : null,
444
+ K.status === "PUBLISHED" && !K.doi ? /* @__PURE__ */ u(d, {
435
445
  type: "button",
436
446
  variant: "outline",
437
- children: "Close"
447
+ disabled: R,
448
+ onClick: () => void Ue(K),
449
+ children: [/* @__PURE__ */ l(S, { className: "size-4" }), R ? A("cosmicintersection.pages.releases.mintingDoi", "Minting DOI…") : A("cosmicintersection.pages.releases.mintDoi", "Mint DOI")]
450
+ }) : null,
451
+ /* @__PURE__ */ l(ye, {
452
+ asChild: !0,
453
+ children: /* @__PURE__ */ l(d, {
454
+ type: "button",
455
+ variant: "outline",
456
+ children: "Close"
457
+ })
438
458
  })
439
- })] })
459
+ ] })
440
460
  ] }) : null
441
461
  })
442
462
  }),
443
- /* @__PURE__ */ l(m, {
444
- open: J !== null,
445
- onOpenChange: (e) => e || L ? void 0 : Y(null),
446
- children: /* @__PURE__ */ u(h, {
463
+ /* @__PURE__ */ l(f, {
464
+ open: Y !== null,
465
+ onOpenChange: (e) => e || L ? void 0 : X(null),
466
+ children: /* @__PURE__ */ u(p, {
447
467
  className: "max-w-md",
448
468
  children: [
449
- /* @__PURE__ */ u(v, { children: [/* @__PURE__ */ l(y, { children: A("cosmicintersection.pages.releases.publishRelease", "Publish release") }), /* @__PURE__ */ l(g, { children: J ? A("cosmicintersection.pages.releases.publishDescription", "Publish “{{name}}” to make it publicly citable. You can attach a DOI now or later.", { name: J.title }) : "" })] }),
450
- J ? /* @__PURE__ */ u(c, { children: [/* @__PURE__ */ l("p", {
469
+ /* @__PURE__ */ u(g, { children: [/* @__PURE__ */ l(_, { children: A("cosmicintersection.pages.releases.publishRelease", "Publish release") }), /* @__PURE__ */ l(m, { children: Y ? A("cosmicintersection.pages.releases.publishDescription", "Publish “{{name}}” to make it publicly citable. You can attach a DOI now or later.", { name: Y.title }) : "" })] }),
470
+ Y ? /* @__PURE__ */ u(c, { children: [/* @__PURE__ */ l("p", {
451
471
  className: "rounded-card border border-status-warning-border bg-status-warning-bg-subtle px-3 py-2 text-sm text-status-warning-text",
452
472
  children: A("cosmicintersection.pages.releases.publishIrreversible", "Publishing is irreversible: it mints a persistent identifier for this release. An agent can draft a release, but only you can publish it.")
453
473
  }), /* @__PURE__ */ u("dl", {
@@ -460,8 +480,8 @@ function k() {
460
480
  children: "Authors"
461
481
  }), /* @__PURE__ */ l("dd", {
462
482
  className: "mt-0.5 truncate text-sm text-text-primary",
463
- title: J.authors.join(", "),
464
- children: J.authors.length ? J.authors.join(", ") : "—"
483
+ title: Y.authors.join(", "),
484
+ children: Y.authors.length ? Y.authors.join(", ") : "—"
465
485
  })]
466
486
  }),
467
487
  /* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("dt", {
@@ -469,7 +489,7 @@ function k() {
469
489
  children: "Datasets"
470
490
  }), /* @__PURE__ */ l("dd", {
471
491
  className: "mt-0.5 text-sm tabular-nums text-text-primary",
472
- children: J.datasetIds.length
492
+ children: Y.datasetIds.length
473
493
  })] }),
474
494
  /* @__PURE__ */ u("div", {
475
495
  className: "col-span-3 min-w-0",
@@ -478,7 +498,7 @@ function k() {
478
498
  children: "License"
479
499
  }), /* @__PURE__ */ l("dd", {
480
500
  className: "mt-0.5 truncate text-sm text-text-primary",
481
- children: J.license || "—"
501
+ children: Y.license || "—"
482
502
  })]
483
503
  })
484
504
  ]
@@ -486,33 +506,45 @@ function k() {
486
506
  /* @__PURE__ */ u("div", {
487
507
  className: "space-y-2",
488
508
  children: [
489
- /* @__PURE__ */ l(Ce, {
509
+ /* @__PURE__ */ l(xe, {
490
510
  htmlFor: "release-doi",
491
511
  children: A("cosmicintersection.pages.releases.doiOptional", "DOI (optional)")
492
512
  }),
493
- /* @__PURE__ */ l(Se, {
513
+ /* @__PURE__ */ l(be, {
494
514
  id: "release-doi",
495
- value: X,
496
- onChange: (e) => Z(e.target.value),
515
+ value: Z,
516
+ onChange: (e) => Q(e.target.value),
497
517
  placeholder: "10.1234/cosmic.2026.0001"
498
518
  }),
499
519
  /* @__PURE__ */ l("p", {
500
520
  className: "text-xs text-text-secondary",
501
521
  children: A("cosmicintersection.pages.releases.doiHint", "A Digital Object Identifier makes the release permanently referenceable.")
522
+ }),
523
+ /* @__PURE__ */ u("label", {
524
+ className: "flex items-center gap-2 text-sm text-text-primary",
525
+ children: [/* @__PURE__ */ l(ve, {
526
+ checked: Be && Z.trim().length === 0,
527
+ disabled: Z.trim().length > 0,
528
+ onCheckedChange: (e) => Ve(e === !0)
529
+ }), A("cosmicintersection.pages.releases.autoMintDoi", "Mint a DOI automatically on publish")]
530
+ }),
531
+ /* @__PURE__ */ l("p", {
532
+ className: "text-xs text-text-secondary",
533
+ children: A("cosmicintersection.pages.releases.autoMintDoiHint", "Registers the release with a DataCite-minted DOI — no manual identifier needed.")
502
534
  })
503
535
  ]
504
536
  }),
505
- /* @__PURE__ */ u(_, { children: [/* @__PURE__ */ l(p, {
537
+ /* @__PURE__ */ u(h, { children: [/* @__PURE__ */ l(d, {
506
538
  type: "button",
507
539
  variant: "outline",
508
- onClick: () => Y(null),
540
+ onClick: () => X(null),
509
541
  disabled: L,
510
542
  children: A("cosmicintersection.common.cancel", "Cancel")
511
- }), /* @__PURE__ */ u(p, {
543
+ }), /* @__PURE__ */ u(d, {
512
544
  type: "button",
513
- onClick: () => void Le(),
545
+ onClick: () => void He(),
514
546
  disabled: L,
515
- children: [/* @__PURE__ */ l(f, { className: "size-4" }), L ? A("cosmicintersection.pages.releases.publishing", "Publishing…") : A("cosmicintersection.pages.releases.publishRelease", "Publish release")]
547
+ children: [/* @__PURE__ */ l(w, { className: "size-4" }), L ? A("cosmicintersection.pages.releases.publishing", "Publishing…") : A("cosmicintersection.pages.releases.publishRelease", "Publish release")]
516
548
  })] })
517
549
  ]
518
550
  })