@burdenoff/microfe-cosmicintersection 2026.1109.6 → 2026.1110.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 (31) hide show
  1. package/dist/cosmicintersection/CosmicIntersectionRoutes.d.ts.map +1 -1
  2. package/dist/cosmicintersection/CosmicIntersectionRoutes.js +35 -31
  3. package/dist/cosmicintersection/CosmicIntersectionRoutes.js.map +1 -1
  4. package/dist/cosmicintersection/api/cosmicApi.d.ts +125 -11
  5. package/dist/cosmicintersection/api/cosmicApi.d.ts.map +1 -1
  6. package/dist/cosmicintersection/api/cosmicApi.js +202 -116
  7. package/dist/cosmicintersection/api/cosmicApi.js.map +1 -1
  8. package/dist/cosmicintersection/pages/archive/ArchivePage.d.ts +3 -0
  9. package/dist/cosmicintersection/pages/archive/ArchivePage.d.ts.map +1 -0
  10. package/dist/cosmicintersection/pages/archive/ArchivePage.js +281 -0
  11. package/dist/cosmicintersection/pages/archive/ArchivePage.js.map +1 -0
  12. package/dist/cosmicintersection/pages/pipelines/PipelineDetailPage.d.ts.map +1 -1
  13. package/dist/cosmicintersection/pages/pipelines/PipelineDetailPage.js +142 -153
  14. package/dist/cosmicintersection/pages/pipelines/PipelineDetailPage.js.map +1 -1
  15. package/dist/cosmicintersection/pages/pipelines/PipelineFormPage.d.ts.map +1 -1
  16. package/dist/cosmicintersection/pages/pipelines/PipelineFormPage.js +177 -206
  17. package/dist/cosmicintersection/pages/pipelines/PipelineFormPage.js.map +1 -1
  18. package/dist/cosmicintersection/pages/pipelines/PipelinesPage.d.ts.map +1 -1
  19. package/dist/cosmicintersection/pages/pipelines/PipelinesPage.js +21 -57
  20. package/dist/cosmicintersection/pages/pipelines/PipelinesPage.js.map +1 -1
  21. package/dist/cosmicintersection/pages/runs/RunDetailPage.d.ts.map +1 -1
  22. package/dist/cosmicintersection/pages/runs/RunDetailPage.js +6 -11
  23. package/dist/cosmicintersection/pages/runs/RunDetailPage.js.map +1 -1
  24. package/dist/cosmicintersection/types/index.d.ts +1 -1
  25. package/dist/cosmicintersection/types/index.d.ts.map +1 -1
  26. package/dist/generated/global-types.d.ts +14560 -800
  27. package/dist/generated/global-types.d.ts.map +1 -1
  28. package/dist/generated/wspace-types.d.ts +2372 -8238
  29. package/dist/generated/wspace-types.d.ts.map +1 -1
  30. package/dist/test/fixtures.d.ts.map +1 -1
  31. package/package.json +1 -1
@@ -1,24 +1,19 @@
1
1
  import { useCosmicIntersection as e } from "../../context/CosmicIntersectionContext.js";
2
2
  import { notify as t } from "../../lib/toast.js";
3
- import { useCosCreatePipelineMutation as n, useCosPipelineQuery as r, useCosUpdatePipelineMutation as i } from "../../api/cosmicApi.js";
4
- import { EntityFormShell as a } from "../../components/EntityFormShell.js";
5
- import { WorkspaceTagsPicker as o } from "../../components/WorkspaceTagsPicker.js";
6
- import { formatEnumLabel as s } from "../../components/StatusBadge.js";
3
+ import { useCosCreatePipelineMutation as n, useCosPipelineQuery as r, useCosUpdatePipelineMutation as i, useRunnableWorkflowsQuery as ee } from "../../api/cosmicApi.js";
4
+ import { EntityFormShell as te } from "../../components/EntityFormShell.js";
5
+ import { WorkspaceTagsPicker as ne } from "../../components/WorkspaceTagsPicker.js";
6
+ import { formatEnumLabel as a } from "../../components/StatusBadge.js";
7
7
  import "../../components/index.js";
8
- import { useEntityTagSync as c } from "../../hooks/useEntityTagSync.js";
9
- import { describeError as l, mutationSucceeded as u } from "../../lib/mutationResult.js";
10
- import { useMemo as d, useState as f } from "react";
11
- import { jsx as p, jsxs as m } from "react/jsx-runtime";
12
- import { useParams as ee } from "react-router";
13
- import { Button as h, Input as g, Label as _, Select as v, SelectContent as y, SelectItem as b, SelectTrigger as x, SelectValue as S, Textarea as C } from "@burdenoff/fe-libs/ui";
14
- import { ArrowDown as w, ArrowUp as T, GripVertical as te, Plus as ne, Trash2 as E } from "lucide-react";
8
+ import { useEntityTagSync as o } from "../../hooks/useEntityTagSync.js";
9
+ import { describeError as s, mutationSucceeded as c } from "../../lib/mutationResult.js";
10
+ import { useMemo as re, useState as l } from "react";
11
+ import { jsx as u, jsxs as d } from "react/jsx-runtime";
12
+ import { useParams as ie } from "react-router";
13
+ import { Button as f, Input as p, Label as m, Select as h, SelectContent as g, SelectItem as _, SelectTrigger as v, SelectValue as y, Textarea as b } from "@burdenoff/fe-libs/ui";
14
+ import { ArrowDown as ae, ArrowUp as oe, GripVertical as x, Plus as S, Trash2 as C } from "lucide-react";
15
15
  //#region src/cosmicintersection/pages/pipelines/PipelineFormPage.tsx
16
- var D = [
17
- "MANUAL",
18
- "SCHEDULED",
19
- "ON_INGEST",
20
- "WEBHOOK"
21
- ], O = [
16
+ var w = [
22
17
  "INGEST",
23
18
  "CALIBRATE",
24
19
  "TRANSFORM",
@@ -26,372 +21,348 @@ var D = [
26
21
  "EXPORT",
27
22
  "NOTIFY"
28
23
  ];
29
- function k(e) {
30
- return typeof e == "string" && O.includes(e);
24
+ function T(e) {
25
+ return typeof e == "string" && w.includes(e);
31
26
  }
32
- var A = 0, j = () => `step-${A += 1}`, re = {
27
+ var E = 0, D = () => `step-${E += 1}`, O = "none", se = {
33
28
  name: "",
34
29
  description: "",
35
- trigger: "MANUAL",
36
- schedule: "",
37
30
  steps: [],
31
+ workflowDefinitionId: O,
38
32
  tags: []
39
33
  };
40
- function ie(e) {
34
+ function ce(e) {
41
35
  if (!e) return [];
42
36
  let t = e.steps;
43
37
  if (!Array.isArray(t)) return [];
44
38
  let n = [];
45
39
  for (let e of t) if (e && typeof e == "object" && !Array.isArray(e)) {
46
40
  let t = e.kind, r = e.name;
47
- k(t) && n.push({
48
- id: j(),
41
+ T(t) && n.push({
42
+ id: D(),
49
43
  kind: t,
50
44
  name: typeof r == "string" ? r : ""
51
45
  });
52
46
  }
53
47
  return n;
54
48
  }
55
- function M(e) {
49
+ function k(e) {
56
50
  return e.map((e) => {
57
51
  let t = { kind: e.kind }, n = e.name.trim();
58
52
  return n && (t.name = n), t;
59
53
  });
60
54
  }
61
- function N() {
62
- let { id: A = "" } = ee(), N = !!A, { navigate: P } = e(), { data: ae, loading: oe } = r(A), [se, { loading: F }] = n(), [I, { loading: L }] = i(), [R, z] = f(re), { syncTags: B, syncing: V } = c("COSMICINTERSECTION_PIPELINE"), [H, U] = f({}), [W, G] = f(""), [K, q] = f(null), J = N ? ae?.cosPipeline : null, [ce, Y] = f(null);
63
- if (J && J.id !== ce) {
64
- Y(J.id), z({
65
- name: J.name ?? "",
66
- description: J.description ?? "",
67
- trigger: J.trigger ?? "MANUAL",
68
- schedule: J.schedule ?? "",
69
- steps: ie(J.definition),
70
- tags: J.tags ?? []
71
- });
72
- let e = { ...J.definition ?? {} };
73
- delete e.steps, U(e);
74
- }
55
+ function A() {
56
+ let { id: E = "" } = ie(), A = !!E, { navigate: j } = e(), { data: M, loading: N } = r(E), [P, { loading: F }] = n(), [I, { loading: L }] = i(), { data: R, loading: z } = ee(), B = R?.workflowDefinitions.items ?? [], [V, H] = l(se), { syncTags: U, syncing: W } = o("COSMICINTERSECTION_PIPELINE"), [G, K] = l(""), [q, J] = l(null), Y = A ? M?.cosPipeline : null, [le, ue] = l(null);
57
+ Y && Y.id !== le && (ue(Y.id), H({
58
+ name: Y.name ?? "",
59
+ description: Y.description ?? "",
60
+ steps: ce(Y.steps),
61
+ workflowDefinitionId: Y.workflowDefinitionId || O,
62
+ tags: Y.tags ?? []
63
+ }));
75
64
  let X = (e, t) => {
76
- z((n) => ({
65
+ H((n) => ({
77
66
  ...n,
78
67
  [e]: t
79
68
  }));
80
- }, le = d(() => JSON.stringify({
81
- ...H,
82
- steps: M(R.steps)
83
- }, null, 2), [H, R.steps]), ue = () => {
84
- X("steps", [...R.steps, {
85
- id: j(),
69
+ }, de = re(() => JSON.stringify({ steps: k(V.steps) }, null, 2), [V.steps]), fe = () => {
70
+ X("steps", [...V.steps, {
71
+ id: D(),
86
72
  kind: "INGEST",
87
73
  name: ""
88
74
  }]);
89
- }, de = (e) => {
90
- X("steps", R.steps.filter((t) => t.id !== e));
75
+ }, pe = (e) => {
76
+ X("steps", V.steps.filter((t) => t.id !== e));
91
77
  }, Z = (e, t) => {
92
- X("steps", R.steps.map((n) => n.id === e ? {
78
+ X("steps", V.steps.map((n) => n.id === e ? {
93
79
  ...n,
94
80
  ...t
95
81
  } : n));
96
82
  }, Q = (e, t) => {
97
83
  let n = e + t;
98
- if (n < 0 || n >= R.steps.length) return;
99
- let r = [...R.steps], [i] = r.splice(e, 1);
84
+ if (n < 0 || n >= V.steps.length) return;
85
+ let r = [...V.steps], [i] = r.splice(e, 1);
100
86
  r.splice(n, 0, i), X("steps", r);
101
- }, fe = () => {
87
+ }, me = () => {
102
88
  let e;
103
89
  try {
104
- e = JSON.parse(W);
90
+ e = JSON.parse(G);
105
91
  } catch (e) {
106
- q(l(e) ?? "Invalid JSON.");
92
+ J(s(e) ?? "Invalid JSON.");
107
93
  return;
108
94
  }
109
95
  if (!e || typeof e != "object" || Array.isArray(e)) {
110
- q("Definition must be a JSON object with a \"steps\" array.");
96
+ J("Steps must be a JSON object with a \"steps\" array.");
111
97
  return;
112
98
  }
113
99
  let n = e.steps;
114
100
  if (!Array.isArray(n)) {
115
- q("Definition must contain a \"steps\" array.");
101
+ J("Steps must contain a \"steps\" array.");
116
102
  return;
117
103
  }
118
104
  let r = [];
119
105
  for (let e of n) {
120
106
  if (!e || typeof e != "object" || Array.isArray(e)) {
121
- q("Each step must be an object with a \"kind\".");
107
+ J("Each step must be an object with a \"kind\".");
122
108
  return;
123
109
  }
124
110
  let t = e.kind;
125
- if (!k(t)) {
126
- q(`Invalid step kind "${String(t)}". Allowed: ${O.join(", ")}.`);
111
+ if (!T(t)) {
112
+ J(`Invalid step kind "${String(t)}". Allowed: ${w.join(", ")}.`);
127
113
  return;
128
114
  }
129
115
  let n = e.name;
130
116
  r.push({
131
- id: j(),
117
+ id: D(),
132
118
  kind: t,
133
119
  name: typeof n == "string" ? n : ""
134
120
  });
135
121
  }
136
- let i = { ...e };
137
- delete i.steps, U(i), X("steps", r), q(null), t.success("Steps updated", "The builder now reflects your JSON.");
138
- }, pe = async (e) => {
139
- if (e.preventDefault(), !R.name.trim()) {
122
+ X("steps", r), J(null), t.success("Steps updated", "The builder now reflects your JSON.");
123
+ }, he = async (e) => {
124
+ if (e.preventDefault(), !V.name.trim()) {
140
125
  t.error("Name is required", "Give the pipeline a name before saving.");
141
126
  return;
142
127
  }
143
- let n = M(R.steps), r = { ...H };
144
- delete r.steps;
145
- let i;
146
- i = n.length > 0 ? {
147
- ...r,
148
- steps: n
149
- } : Object.keys(r).length > 0 ? r : void 0;
150
- let a = R.trigger === "SCHEDULED" ? R.schedule.trim() : "";
128
+ let n = k(V.steps), r = n.length > 0 ? { steps: n } : void 0, i = V.workflowDefinitionId === O ? null : V.workflowDefinitionId;
151
129
  try {
152
- if (N) {
153
- let e = J?.tags ?? [], n = await I({ variables: {
154
- id: A,
130
+ if (A) {
131
+ let e = Y?.tags ?? [], n = await I({ variables: {
132
+ id: E,
155
133
  input: {
156
- name: R.name.trim(),
157
- description: R.description.trim() || void 0,
158
- trigger: R.trigger,
159
- schedule: a || void 0,
160
- definition: i,
161
- tags: R.tags
134
+ name: V.name.trim(),
135
+ description: V.description.trim() || void 0,
136
+ steps: r,
137
+ workflowDefinitionId: i,
138
+ tags: V.tags
162
139
  }
163
140
  } });
164
- if (!u(n, n.data?.cosUpdatePipeline?.id, "Could not update pipeline")) return;
165
- await B(A, R.tags, e) && t.success("Pipeline updated", `“${R.name.trim()}” was saved.`), P(`pipelines/${A}`);
141
+ if (!c(n, n.data?.cosUpdatePipeline?.id, "Could not update pipeline")) return;
142
+ await U(E, V.tags, e) && t.success("Pipeline updated", `“${V.name.trim()}” was saved.`), j(`pipelines/${E}`);
166
143
  return;
167
144
  }
168
- let e = await se({ variables: { input: {
169
- name: R.name.trim(),
170
- description: R.description.trim() || void 0,
171
- trigger: R.trigger,
172
- schedule: a || void 0,
173
- definition: i,
174
- tags: R.tags
145
+ let e = await P({ variables: { input: {
146
+ name: V.name.trim(),
147
+ description: V.description.trim() || void 0,
148
+ steps: r,
149
+ workflowDefinitionId: i ?? void 0,
150
+ tags: V.tags
175
151
  } } }), n = e.data?.cosCreatePipeline?.id;
176
- if (!u(e, n, "Could not create pipeline")) return;
177
- (!n || await B(n, R.tags)) && t.success("Pipeline created", `“${R.name.trim()}” is ready.`), P(n ? `pipelines/${n}` : "pipelines");
152
+ if (!c(e, n, "Could not create pipeline")) return;
153
+ (!n || await U(n, V.tags)) && t.success("Pipeline created", `“${V.name.trim()}” is ready.`), j(n ? `pipelines/${n}` : "pipelines");
178
154
  } catch (e) {
179
- t.error("Could not save pipeline", l(e));
155
+ t.error("Could not save pipeline", s(e));
180
156
  }
181
- }, $ = F || L || V;
182
- return /* @__PURE__ */ m(a, {
183
- title: N ? "Edit pipeline" : "New pipeline",
157
+ }, $ = F || L || W;
158
+ return /* @__PURE__ */ d(te, {
159
+ title: A ? "Edit pipeline" : "New pipeline",
184
160
  description: "Define how raw data is ingested, processed and released.",
185
- purpose: "A pipeline chains ordered steps (ingest, calibrate, transform, analyze, export) over your datasets. Choose how it is triggered, add an optional cron schedule, and build its steps below.",
186
- backLabel: N ? "Back to pipeline" : "Back to pipelines",
187
- onBack: () => P(N ? `pipelines/${A}` : "pipelines"),
188
- onSubmit: pe,
189
- submitLabel: N ? "Save changes" : "Create pipeline",
161
+ purpose: "A pipeline chains ordered steps (ingest, calibrate, transform, analyze, export) over your datasets. Runs start manually, or hand off to a canonical workflow for real triggers, schedules and retries. Build its steps below.",
162
+ backLabel: A ? "Back to pipeline" : "Back to pipelines",
163
+ onBack: () => j(A ? `pipelines/${E}` : "pipelines"),
164
+ onSubmit: he,
165
+ submitLabel: A ? "Save changes" : "Create pipeline",
190
166
  saving: $,
191
- submitDisabled: N && oe,
167
+ submitDisabled: A && N,
192
168
  children: [
193
- /* @__PURE__ */ m("div", {
169
+ /* @__PURE__ */ d("div", {
194
170
  className: "space-y-1",
195
- children: [/* @__PURE__ */ p(_, {
171
+ children: [/* @__PURE__ */ u(m, {
196
172
  htmlFor: "pipeline-name",
197
173
  children: "Name"
198
- }), /* @__PURE__ */ p(g, {
174
+ }), /* @__PURE__ */ u(p, {
199
175
  id: "pipeline-name",
200
- value: R.name,
176
+ value: V.name,
201
177
  onChange: (e) => X("name", e.target.value),
202
178
  placeholder: "e.g. Kepler DR3 ingest",
203
179
  required: !0
204
180
  })]
205
181
  }),
206
- /* @__PURE__ */ m("div", {
182
+ /* @__PURE__ */ d("div", {
207
183
  className: "space-y-1",
208
- children: [/* @__PURE__ */ p(_, {
184
+ children: [/* @__PURE__ */ u(m, {
209
185
  htmlFor: "pipeline-description",
210
186
  children: "Description"
211
- }), /* @__PURE__ */ p(C, {
187
+ }), /* @__PURE__ */ u(b, {
212
188
  id: "pipeline-description",
213
- value: R.description,
189
+ value: V.description,
214
190
  onChange: (e) => X("description", e.target.value),
215
191
  rows: 3,
216
192
  placeholder: "What this pipeline does and when it runs."
217
193
  })]
218
194
  }),
219
- /* @__PURE__ */ m("div", {
220
- className: "grid grid-cols-1 gap-4 md:grid-cols-2",
221
- children: [/* @__PURE__ */ m("div", {
222
- className: "space-y-1",
223
- children: [/* @__PURE__ */ p(_, {
224
- htmlFor: "pipeline-trigger",
225
- children: "Trigger"
226
- }), /* @__PURE__ */ m(v, {
227
- value: R.trigger,
228
- onValueChange: (e) => X("trigger", e),
229
- children: [/* @__PURE__ */ p(x, {
230
- id: "pipeline-trigger",
231
- "aria-label": "Trigger",
232
- children: /* @__PURE__ */ p(S, {})
233
- }), /* @__PURE__ */ p(y, { children: D.map((e) => /* @__PURE__ */ p(b, {
234
- value: e,
235
- children: s(e)
236
- }, e)) })]
237
- })]
238
- }), R.trigger === "SCHEDULED" ? /* @__PURE__ */ m("div", {
239
- className: "space-y-1",
240
- children: [
241
- /* @__PURE__ */ p(_, {
242
- htmlFor: "pipeline-schedule",
243
- children: "Schedule (cron)"
244
- }),
245
- /* @__PURE__ */ p(g, {
246
- id: "pipeline-schedule",
247
- value: R.schedule,
248
- onChange: (e) => X("schedule", e.target.value),
249
- placeholder: "0 2 * * *",
250
- className: "font-mono"
251
- }),
252
- /* @__PURE__ */ m("p", {
253
- className: "text-xs text-text-secondary",
254
- children: [
255
- "Standard 5-field cron expression, e.g. ",
256
- /* @__PURE__ */ p("span", {
257
- className: "font-mono",
258
- children: "0 2 * * *"
259
- }),
260
- " ",
261
- "for daily at 02:00."
262
- ]
263
- })
264
- ]
265
- }) : null]
195
+ /* @__PURE__ */ d("div", {
196
+ className: "space-y-1",
197
+ children: [
198
+ /* @__PURE__ */ u(m, {
199
+ htmlFor: "pipeline-workflow",
200
+ children: "Automation workflow"
201
+ }),
202
+ /* @__PURE__ */ d(h, {
203
+ value: V.workflowDefinitionId,
204
+ onValueChange: (e) => X("workflowDefinitionId", e),
205
+ children: [/* @__PURE__ */ u(v, {
206
+ id: "pipeline-workflow",
207
+ "aria-label": "Automation workflow",
208
+ children: /* @__PURE__ */ u(y, {})
209
+ }), /* @__PURE__ */ d(g, { children: [
210
+ /* @__PURE__ */ u(_, {
211
+ value: O,
212
+ children: "None — runs start manually"
213
+ }),
214
+ V.workflowDefinitionId !== O && !B.some((e) => e.id === V.workflowDefinitionId) ? /* @__PURE__ */ u(_, {
215
+ value: V.workflowDefinitionId,
216
+ children: "Unavailable workflow (no longer active)"
217
+ }) : null,
218
+ B.map((e) => /* @__PURE__ */ u(_, {
219
+ value: e.id,
220
+ children: `${e.name} (v${e.version})`
221
+ }, e.id))
222
+ ] })]
223
+ }),
224
+ /* @__PURE__ */ d("p", {
225
+ className: "text-xs text-text-secondary",
226
+ children: [
227
+ z ? "Loading workflows…" : B.length === 0 ? "No active workflows yet — build one in the Workflows module, then link it here." : "Starting a run hands off to this workflow in the shared engine (triggers, schedules, retries live there).",
228
+ " ",
229
+ /* @__PURE__ */ u("a", {
230
+ href: "/workflows",
231
+ className: "underline underline-offset-2",
232
+ children: "Open Workflows"
233
+ })
234
+ ]
235
+ })
236
+ ]
266
237
  }),
267
- /* @__PURE__ */ m("div", {
238
+ /* @__PURE__ */ d("div", {
268
239
  className: "space-y-2",
269
240
  children: [
270
- /* @__PURE__ */ p(_, { children: "Definition — steps" }),
271
- /* @__PURE__ */ p("p", {
241
+ /* @__PURE__ */ u(m, { children: "Steps" }),
242
+ /* @__PURE__ */ u("p", {
272
243
  className: "text-xs text-text-secondary",
273
- children: "The ordered stages this pipeline runs. Add a step, pick its kind, optionally name it, and reorder with the arrows."
244
+ children: "The ordered science stages this pipeline is expected to run (lineage only — execution semantics live in the linked workflow, if any). Add a step, pick its kind, optionally name it, and reorder with the arrows."
274
245
  }),
275
- R.steps.length === 0 ? /* @__PURE__ */ p("div", {
246
+ V.steps.length === 0 ? /* @__PURE__ */ u("div", {
276
247
  className: "rounded-card border border-dashed border-border-default bg-bg-sunken px-4 py-6 text-center",
277
- children: /* @__PURE__ */ p("p", {
248
+ children: /* @__PURE__ */ u("p", {
278
249
  className: "text-sm text-text-secondary",
279
250
  children: "No steps yet. Add the first stage to start building the flow."
280
251
  })
281
- }) : /* @__PURE__ */ p("ol", {
252
+ }) : /* @__PURE__ */ u("ol", {
282
253
  className: "space-y-2",
283
- children: R.steps.map((e, t) => /* @__PURE__ */ m("li", {
254
+ children: V.steps.map((e, t) => /* @__PURE__ */ d("li", {
284
255
  className: "flex items-center gap-2 rounded-card border border-border-default bg-bg-elevated p-2.5",
285
256
  children: [
286
- /* @__PURE__ */ m("span", {
257
+ /* @__PURE__ */ d("span", {
287
258
  className: "flex items-center gap-1.5 text-text-secondary",
288
- children: [/* @__PURE__ */ p(te, {
259
+ children: [/* @__PURE__ */ u(x, {
289
260
  className: "size-4 shrink-0",
290
261
  "aria-hidden": "true"
291
- }), /* @__PURE__ */ p("span", {
262
+ }), /* @__PURE__ */ u("span", {
292
263
  className: "w-4 text-xs font-semibold tabular-nums",
293
264
  children: t + 1
294
265
  })]
295
266
  }),
296
- /* @__PURE__ */ m("div", {
267
+ /* @__PURE__ */ d("div", {
297
268
  className: "grid min-w-0 flex-1 grid-cols-1 gap-2 sm:grid-cols-[10rem_1fr]",
298
- children: [/* @__PURE__ */ m(v, {
269
+ children: [/* @__PURE__ */ d(h, {
299
270
  value: e.kind,
300
271
  onValueChange: (t) => Z(e.id, { kind: t }),
301
- children: [/* @__PURE__ */ p(x, {
272
+ children: [/* @__PURE__ */ u(v, {
302
273
  "aria-label": `Kind for step ${t + 1}`,
303
- children: /* @__PURE__ */ p(S, {})
304
- }), /* @__PURE__ */ p(y, { children: O.map((e) => /* @__PURE__ */ p(b, {
274
+ children: /* @__PURE__ */ u(y, {})
275
+ }), /* @__PURE__ */ u(g, { children: w.map((e) => /* @__PURE__ */ u(_, {
305
276
  value: e,
306
- children: s(e)
277
+ children: a(e)
307
278
  }, e)) })]
308
- }), /* @__PURE__ */ p(g, {
279
+ }), /* @__PURE__ */ u(p, {
309
280
  value: e.name,
310
281
  onChange: (t) => Z(e.id, { name: t.target.value }),
311
282
  placeholder: "Optional step name",
312
283
  "aria-label": `Name for step ${t + 1}`
313
284
  })]
314
285
  }),
315
- /* @__PURE__ */ m("div", {
286
+ /* @__PURE__ */ d("div", {
316
287
  className: "flex shrink-0 items-center gap-0.5",
317
288
  children: [
318
- /* @__PURE__ */ p(h, {
289
+ /* @__PURE__ */ u(f, {
319
290
  type: "button",
320
291
  variant: "ghost",
321
292
  size: "icon-sm",
322
293
  onClick: () => Q(t, -1),
323
294
  disabled: t === 0,
324
295
  "aria-label": `Move step ${t + 1} up`,
325
- children: /* @__PURE__ */ p(T, { className: "size-4" })
296
+ children: /* @__PURE__ */ u(oe, { className: "size-4" })
326
297
  }),
327
- /* @__PURE__ */ p(h, {
298
+ /* @__PURE__ */ u(f, {
328
299
  type: "button",
329
300
  variant: "ghost",
330
301
  size: "icon-sm",
331
302
  onClick: () => Q(t, 1),
332
- disabled: t === R.steps.length - 1,
303
+ disabled: t === V.steps.length - 1,
333
304
  "aria-label": `Move step ${t + 1} down`,
334
- children: /* @__PURE__ */ p(w, { className: "size-4" })
305
+ children: /* @__PURE__ */ u(ae, { className: "size-4" })
335
306
  }),
336
- /* @__PURE__ */ p(h, {
307
+ /* @__PURE__ */ u(f, {
337
308
  type: "button",
338
309
  variant: "ghost",
339
310
  size: "icon-sm",
340
- onClick: () => de(e.id),
311
+ onClick: () => pe(e.id),
341
312
  "aria-label": `Remove step ${t + 1}`,
342
313
  className: "text-text-secondary hover:text-status-error-text",
343
- children: /* @__PURE__ */ p(E, { className: "size-4" })
314
+ children: /* @__PURE__ */ u(C, { className: "size-4" })
344
315
  })
345
316
  ]
346
317
  })
347
318
  ]
348
319
  }, e.id))
349
320
  }),
350
- /* @__PURE__ */ m(h, {
321
+ /* @__PURE__ */ d(f, {
351
322
  type: "button",
352
323
  variant: "outline",
353
324
  size: "sm",
354
- onClick: ue,
355
- children: [/* @__PURE__ */ p(ne, { className: "size-4" }), "Add step"]
325
+ onClick: fe,
326
+ children: [/* @__PURE__ */ u(S, { className: "size-4" }), "Add step"]
356
327
  }),
357
- /* @__PURE__ */ m("details", {
328
+ /* @__PURE__ */ d("details", {
358
329
  className: "group mt-2 rounded-card border border-border-default bg-bg-sunken",
359
330
  onToggle: (e) => {
360
- e.currentTarget.open && (G(le), q(null));
331
+ e.currentTarget.open && (K(de), J(null));
361
332
  },
362
- children: [/* @__PURE__ */ m("summary", {
333
+ children: [/* @__PURE__ */ d("summary", {
363
334
  className: "flex cursor-pointer list-none items-center justify-between px-4 py-2.5 text-sm font-medium text-text-secondary transition-colors hover:text-text-primary",
364
- children: ["Advanced — edit as JSON", /* @__PURE__ */ p("span", {
335
+ children: ["Advanced — edit as JSON", /* @__PURE__ */ u("span", {
365
336
  className: "text-xs transition-transform group-open:rotate-180",
366
337
  children: "▾"
367
338
  })]
368
- }), /* @__PURE__ */ m("div", {
339
+ }), /* @__PURE__ */ d("div", {
369
340
  className: "space-y-2 border-t border-border-seam p-4",
370
341
  children: [
371
- /* @__PURE__ */ p(C, {
372
- value: W,
342
+ /* @__PURE__ */ u(b, {
343
+ value: G,
373
344
  onChange: (e) => {
374
- G(e.target.value), q(null);
345
+ K(e.target.value), J(null);
375
346
  },
376
347
  rows: 8,
377
348
  spellCheck: !1,
378
349
  className: "font-mono text-xs",
379
- "aria-label": "Definition JSON"
350
+ "aria-label": "Steps JSON"
380
351
  }),
381
- K ? /* @__PURE__ */ p("p", {
352
+ q ? /* @__PURE__ */ u("p", {
382
353
  className: "text-xs text-status-error-text",
383
- children: K
354
+ children: q
384
355
  }) : null,
385
- /* @__PURE__ */ m("div", {
356
+ /* @__PURE__ */ d("div", {
386
357
  className: "flex items-center justify-between gap-2",
387
- children: [/* @__PURE__ */ p("p", {
358
+ children: [/* @__PURE__ */ u("p", {
388
359
  className: "text-xs text-text-secondary",
389
360
  children: "Edit the raw definition, then apply it back to the builder above."
390
- }), /* @__PURE__ */ p(h, {
361
+ }), /* @__PURE__ */ u(f, {
391
362
  type: "button",
392
363
  variant: "outline",
393
364
  size: "sm",
394
- onClick: fe,
365
+ onClick: me,
395
366
  children: "Apply to builder"
396
367
  })]
397
368
  })
@@ -400,8 +371,8 @@ function N() {
400
371
  })
401
372
  ]
402
373
  }),
403
- /* @__PURE__ */ p(o, {
404
- value: R.tags,
374
+ /* @__PURE__ */ u(ne, {
375
+ value: V.tags,
405
376
  onChange: (e) => X("tags", e),
406
377
  disabled: $
407
378
  })
@@ -409,6 +380,6 @@ function N() {
409
380
  });
410
381
  }
411
382
  //#endregion
412
- export { N as default };
383
+ export { A as default };
413
384
 
414
385
  //# sourceMappingURL=PipelineFormPage.js.map