@burdenoff/fluidgrids-fe-sdk 2026.1112.7 → 2026.1112.9
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/{AiStudioPage-QGTFaVpx.js → AiStudioPage-DfoV1Olc.js} +5 -5
- package/dist/ApprovalInboxPage-Bb8H9ruw.js +1317 -0
- package/dist/{DataSinkDashboardPage-kyzcjpzL.js → DataSinkDashboardPage-Dt3xTBb8.js} +1 -1
- package/dist/{DataTablesPage-0U89KNBt.js → DataTablesPage-Zz23QZQp.js} +6 -4
- package/dist/Disclosure-DQiUKrqd.js +41 -0
- package/dist/{EntityTagPicker-dxfzv8aO.js → EntityTagPicker-CuZAMby_.js} +1 -1
- package/dist/{ExecutionDetailPage-D4Mdbzb2.js → ExecutionDetailPage-CcUxFexZ.js} +15 -14
- package/dist/{ExecutionsListPage-g_SPxAGX.js → ExecutionsListPage-JpByw6nA.js} +11 -9
- package/dist/{FailureTriagePanel-D4lJ4zqQ.js → FailureTriagePanel-BjatYyAa.js} +1 -1
- package/dist/{FluidGridsProvider-B1hgCbxG.js → FluidGridsProvider-TQ-aDPtn.js} +3 -3
- package/dist/{HistoryPage-C7NwkVNC.js → HistoryPage-s9pl5gyl.js} +2 -2
- package/dist/{InsightsPage-D9B_qW8e.js → InsightsPage-CtjJCky-.js} +4 -4
- package/dist/{MissingNodesInstallModal-BkkgeFeN.js → MissingNodesInstallModal-olEc52p2.js} +1 -1
- package/dist/{NodesPage-BEeUbIts.js → NodesPage-BSNpOUMX.js} +2 -2
- package/dist/OpenTemplateAsCodeButton-Dh3ee2OR.js +94 -0
- package/dist/PaidTemplateConfirm-DjmVi_m-.js +28 -0
- package/dist/{RunActionsMenu-DmO14hEE.js → RunActionsMenu-BE_1r3bF.js} +1 -50
- package/dist/{RunnersPage-CvAPHdfU.js → RunnersPage-CAt4YDhB.js} +2 -1
- package/dist/{SettingsPage-k21044-Z.js → SettingsPage-ywyjIAL8.js} +6 -6
- package/dist/{TagFilterSelect-CqhxcDjh.js → TagFilterSelect-DcusTt1p.js} +1 -1
- package/dist/{TaskQueuesPage-B86p51gH.js → TaskQueuesPage-C2dkenVF.js} +2 -2
- package/dist/TechnicalDetails-D4xGy201.js +19 -0
- package/dist/{TemplateCard-DanOe65C.js → TemplateCard--WYJZlA_.js} +293 -36
- package/dist/{TemplateConfigurationModal-CeMpPEhT.js → TemplateConfigurationModal-cd0-QVMZ.js} +20 -11
- package/dist/{TemplateDetailPanel-DnoA6mC3.js → TemplateDetailPanel-C-2JuXg6.js} +1 -1
- package/dist/TemplatePreview-BCnGjMuN.js +646 -0
- package/dist/{TemplatesPage-C7f2xq12.js → TemplatesPage-u7bXJYfv.js} +377 -138
- package/dist/{VariablesPage-BtoLjmUA.js → VariablesPage-CPL34WBc.js} +2 -358
- package/dist/{VersionDiffDialog-pLpG_I1r.js → VersionDiffDialog-c27yet_-.js} +1 -1
- package/dist/{WorkflowBuilder-Aslfa2vj.js → WorkflowBuilder-BWxBmBoP.js} +3 -3
- package/dist/{WorkflowBuilder-DY1_KJiV.js → WorkflowBuilder-DxAAPHsn.js} +8 -8
- package/dist/{WorkflowProposalCard-BjYAZH3q.js → WorkflowProposalCard-BvmJ5ea8.js} +1 -1
- package/dist/{WorkflowSearchRedirect-iPQBL6WO.js → WorkflowSearchRedirect-BGKduhfZ.js} +1 -1
- package/dist/{WorkflowShareDialog-DB-qJLB2.js → WorkflowShareDialog-BRwTF9QB.js} +1 -1
- package/dist/{WorkflowsList-rOxlI49U.js → WorkflowsList-Bocag4TX.js} +9 -8
- package/dist/{agentTools-B8gnHFVM.js → agentTools-JHtYGgd7.js} +3 -3
- package/dist/{api-JpNuowX4.js → api-Dw8nfVRD.js} +1 -1
- package/dist/{api-Dvitj1aT.js → api-m8hX_l2k.js} +1 -1
- package/dist/{canvasNoteTools-Cj7MvVDH.js → canvasNoteTools-B2ouyIbj.js} +2 -2
- package/dist/{HumanRequestCard-lbWDpWd7.js → channel-CZ70oI81.js} +5 -228
- package/dist/{code-editor-field-yJZEDJBi.js → code-editor-field-CWGZyNGM.js} +1 -1
- package/dist/executions.js +2 -2
- package/dist/{feature-flags-DM5myWaD.js → feature-flags-B_b8PJ6Z.js} +63 -3
- package/dist/flags.d.ts +1 -1
- package/dist/flags.js +1 -1
- package/dist/{flow-builder-dvqpKs8d.js → flow-builder-DzKPrW2r.js} +535 -313
- package/dist/{graphql-operation-types-z2oXfQvM.js → graphql-operation-types-DZVhCBEi.js} +250 -1
- package/dist/history.js +1 -1
- package/dist/{index-BcdtKBM-.d.ts → index-B4g88tCa.d.ts} +15 -1
- package/dist/{index-DNo9aFUT.d.ts → index-CGCAcRKo.d.ts} +32 -2
- package/dist/index.d.ts +3 -3
- package/dist/index.js +38 -38
- package/dist/{node-detail-view-ZnJ3Hvvo.js → node-detail-view-DNilUGcx.js} +9 -9
- package/dist/{node-editor-tab-body-BuiIr7VD.js → node-editor-tab-body-XBedxkpN.js} +3 -3
- package/dist/{node-endpoint-configs-typvqw2c.js → node-endpoint-configs-BI7zc8eM.js} +1 -1
- package/dist/nodes.js +1 -1
- package/dist/observability.d.ts +1 -1
- package/dist/observability.js +2 -2
- package/dist/{popover-mexhIFP3.js → popover-BC4r84K0.js} +3 -3
- package/dist/{quick-config-panel-EV66lJOM.js → quick-config-panel-BPmrhIOb.js} +3 -3
- package/dist/{schedule-panel-BeLfDNFh.js → schedule-panel-DJN1TDQH.js} +8 -8
- package/dist/settings.js +1 -1
- package/dist/{sidebar-node-editor-D85Moj5d.js → sidebar-node-editor-DKdfcd2r.js} +3 -3
- package/dist/templates.js +2 -2
- package/dist/{useAgentDefinitions-Uy6nhpKN.js → useAgentDefinitions-B4sw7bLw.js} +1 -1
- package/dist/{useDurableParity-04-5PTk2.js → useDurableParity-B3h8jqP0.js} +2 -2
- package/dist/{useEntityTags-D5C0tdLs.js → useEntityTags-BpDeLhzV.js} +1 -1
- package/dist/{useExecutions-DJXtbA15.js → useExecutions-BbkBSYpS.js} +2 -2
- package/dist/{useObservability-Dfgh4yjv.js → useObservability-BASo2sA3.js} +1 -1
- package/dist/{useRunHistory-BZQ3t68Q.js → useRunHistory-C3Pv_SJW.js} +2 -2
- package/dist/useVariables-cI8uLwye.js +361 -0
- package/dist/useWorkflowCodeExport-k5Emm4ZS.js +226 -0
- package/dist/{useWorkflows-CP-d3ygY.js → useWorkflows-CRUlQBd3.js} +2 -2
- package/dist/workflow-builder.js +4 -4
- package/dist/workflow-code-transfer-Cshsgf2H.js +375 -0
- package/dist/workflow-host.d.ts +1 -1
- package/dist/workflow-host.js +1 -1
- package/dist/workflow-pages.d.ts +1 -1
- package/dist/workflow-pages.js +19 -19
- package/dist/workflow-transfer-CQnQC-ke.js +104 -0
- package/dist/workflows-list.js +1 -1
- package/package.json +1 -1
- package/dist/ApprovalInboxPage-QAJim81n.js +0 -559
- package/dist/QuotaExhaustedDialog-Bj7AG_0y.js +0 -55
- package/dist/TemplatePreview-DY4GxnfC.js +0 -231
- package/dist/useWorkflowCodeExport-D0zapXXm.js +0 -643
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { r as useTr } from "./TranslationBridge-Da-TPgQm.js";
|
|
3
2
|
import { x as getFluidGridsConfig } from "./client-C9XSzSXr.js";
|
|
4
|
-
import {
|
|
5
|
-
import { useMemo
|
|
3
|
+
import { r as useTr } from "./TranslationBridge-Da-TPgQm.js";
|
|
4
|
+
import { useMemo } from "react";
|
|
6
5
|
import { Icon } from "@iconify/react";
|
|
7
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
-
import { toast } from "sonner";
|
|
9
|
-
import { Badge, Card, CardContent, CardHeader, Input, Label, Textarea } from "@burdenoff/fe-libs/ui";
|
|
10
|
-
import { Button as Button$1 } from "@burdenoff/fe-libs/button";
|
|
11
7
|
import { buildActorFallback, useActorProfiles } from "@burdenoff/fe-libs/shared";
|
|
12
8
|
|
|
13
9
|
// src/modules/human-response/utils/recipient.ts
|
|
@@ -203,18 +199,8 @@ function ApprovalApprovers({ request }) {
|
|
|
203
199
|
});
|
|
204
200
|
}
|
|
205
201
|
|
|
206
|
-
// src/modules/human-response/
|
|
207
|
-
/**
|
|
208
|
-
* One "Send and Wait for Response" ask in the in-app inbox (BOFF-7651): what was asked, of whom,
|
|
209
|
-
* through which channel and until when — and, when the caller may answer it in-app, the controls
|
|
210
|
-
* to do so (Approve / Decline, a text box, or the custom form). An approval with several approvers
|
|
211
|
-
* (BOFF-9956) also shows where its quorum stands and takes an optional comment with the answer.
|
|
212
|
-
*/
|
|
213
|
-
const CHANNEL_ICON = {
|
|
214
|
-
EMAIL: "mdi:email-outline",
|
|
215
|
-
SLACK: "mdi:slack",
|
|
216
|
-
IN_APP: "mdi:bell-outline"
|
|
217
|
-
};
|
|
202
|
+
// src/modules/human-response/utils/channel.ts
|
|
203
|
+
/** "email", "Slack" or "in-app": how an ask reached its recipient. */
|
|
218
204
|
function channelLabel(channel, tr) {
|
|
219
205
|
switch (channel) {
|
|
220
206
|
case "EMAIL": return tr("fluidgrids.humanResponse.channelEmail", "email");
|
|
@@ -222,214 +208,5 @@ function channelLabel(channel, tr) {
|
|
|
222
208
|
default: return tr("fluidgrids.humanResponse.channelInApp", "in-app");
|
|
223
209
|
}
|
|
224
210
|
}
|
|
225
|
-
function inputType(field) {
|
|
226
|
-
const type = (field.type || "text").toLowerCase();
|
|
227
|
-
return [
|
|
228
|
-
"email",
|
|
229
|
-
"number",
|
|
230
|
-
"date",
|
|
231
|
-
"tel",
|
|
232
|
-
"url"
|
|
233
|
-
].includes(type) ? type : "text";
|
|
234
|
-
}
|
|
235
|
-
function FormControls({ requestId, fields, values, onChange }) {
|
|
236
|
-
return /* @__PURE__ */ jsx("div", {
|
|
237
|
-
className: "space-y-3",
|
|
238
|
-
children: fields.map((field) => {
|
|
239
|
-
const id = `human-field-${requestId}-${field.name}`;
|
|
240
|
-
const label = `${field.label || field.name}${field.required ? " *" : ""}`;
|
|
241
|
-
const type = (field.type || "text").toLowerCase();
|
|
242
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
243
|
-
className: "space-y-1.5",
|
|
244
|
-
children: [/* @__PURE__ */ jsx(Label, {
|
|
245
|
-
htmlFor: id,
|
|
246
|
-
children: label
|
|
247
|
-
}), type === "textarea" ? /* @__PURE__ */ jsx(Textarea, {
|
|
248
|
-
id,
|
|
249
|
-
value: values[field.name] ?? "",
|
|
250
|
-
placeholder: field.placeholder ?? void 0,
|
|
251
|
-
onChange: (event) => onChange(field.name, event.target.value)
|
|
252
|
-
}) : type === "dropdown" || type === "select" ? /* @__PURE__ */ jsxs("select", {
|
|
253
|
-
id,
|
|
254
|
-
className: "w-full rounded-md border border-border-secondary bg-background-primary px-3 py-2 text-sm text-text-primary",
|
|
255
|
-
value: values[field.name] ?? "",
|
|
256
|
-
onChange: (event) => onChange(field.name, event.target.value),
|
|
257
|
-
children: [/* @__PURE__ */ jsx("option", {
|
|
258
|
-
value: "",
|
|
259
|
-
children: "—"
|
|
260
|
-
}), (field.options ?? []).map((option) => /* @__PURE__ */ jsx("option", {
|
|
261
|
-
value: option,
|
|
262
|
-
children: option
|
|
263
|
-
}, option))]
|
|
264
|
-
}) : /* @__PURE__ */ jsx(Input, {
|
|
265
|
-
id,
|
|
266
|
-
type: inputType(field),
|
|
267
|
-
value: values[field.name] ?? "",
|
|
268
|
-
placeholder: field.placeholder ?? void 0,
|
|
269
|
-
onChange: (event) => onChange(field.name, event.target.value)
|
|
270
|
-
})]
|
|
271
|
-
}, field.name);
|
|
272
|
-
})
|
|
273
|
-
});
|
|
274
|
-
}
|
|
275
|
-
/** Approve / Decline, with an optional comment that is recorded with the answer (BOFF-9956). */
|
|
276
|
-
function ApprovalControls({ request, loading, onAnswer }) {
|
|
277
|
-
const tr = useTr();
|
|
278
|
-
const [comment, setComment] = useState("");
|
|
279
|
-
const note = comment.trim() ? { comment: comment.trim() } : {};
|
|
280
|
-
const commentId = `human-comment-${request.id}`;
|
|
281
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
282
|
-
className: "space-y-2 pt-1",
|
|
283
|
-
children: [/* @__PURE__ */ jsxs("div", {
|
|
284
|
-
className: "space-y-1.5",
|
|
285
|
-
children: [/* @__PURE__ */ jsx(Label, {
|
|
286
|
-
htmlFor: commentId,
|
|
287
|
-
children: tr("fluidgrids.humanResponse.commentLabel", "Comment (optional)")
|
|
288
|
-
}), /* @__PURE__ */ jsx(Textarea, {
|
|
289
|
-
id: commentId,
|
|
290
|
-
value: comment,
|
|
291
|
-
maxLength: 2e3,
|
|
292
|
-
placeholder: tr("fluidgrids.humanResponse.commentPlaceholder", "Why you approve or decline. It is saved with your answer on the run."),
|
|
293
|
-
onChange: (event) => setComment(event.target.value),
|
|
294
|
-
"data-testid": "human-request-comment"
|
|
295
|
-
})]
|
|
296
|
-
}), /* @__PURE__ */ jsxs("div", {
|
|
297
|
-
className: "flex flex-wrap items-center gap-2",
|
|
298
|
-
children: [/* @__PURE__ */ jsxs(Button$1, {
|
|
299
|
-
"data-agent": "confirm",
|
|
300
|
-
size: "sm",
|
|
301
|
-
disabled: loading,
|
|
302
|
-
onClick: () => onAnswer({
|
|
303
|
-
action: "approve",
|
|
304
|
-
...note
|
|
305
|
-
}),
|
|
306
|
-
"data-testid": "human-request-approve",
|
|
307
|
-
children: [/* @__PURE__ */ jsx(Icon, {
|
|
308
|
-
icon: "mdi:check",
|
|
309
|
-
className: "mr-1.5",
|
|
310
|
-
width: 16
|
|
311
|
-
}), request.approveLabel]
|
|
312
|
-
}), request.approvalType === "double" && /* @__PURE__ */ jsxs(Button$1, {
|
|
313
|
-
"data-agent": "confirm",
|
|
314
|
-
size: "sm",
|
|
315
|
-
variant: "destructive",
|
|
316
|
-
disabled: loading,
|
|
317
|
-
onClick: () => onAnswer({
|
|
318
|
-
action: "decline",
|
|
319
|
-
...note
|
|
320
|
-
}),
|
|
321
|
-
"data-testid": "human-request-decline",
|
|
322
|
-
children: [/* @__PURE__ */ jsx(Icon, {
|
|
323
|
-
icon: "mdi:close",
|
|
324
|
-
className: "mr-1.5",
|
|
325
|
-
width: 16
|
|
326
|
-
}), request.declineLabel]
|
|
327
|
-
})]
|
|
328
|
-
})]
|
|
329
|
-
});
|
|
330
|
-
}
|
|
331
|
-
function HumanRequestCard({ request, onAnswered }) {
|
|
332
|
-
const tr = useTr();
|
|
333
|
-
const { respond, loading } = useRespondToHumanRequest();
|
|
334
|
-
const [text, setText] = useState("");
|
|
335
|
-
const [values, setValues] = useState({});
|
|
336
|
-
const submit = async (answer) => {
|
|
337
|
-
try {
|
|
338
|
-
const decision = await respond(request.id, answer);
|
|
339
|
-
toast.success(answeredToastText(decision, tr));
|
|
340
|
-
onAnswered();
|
|
341
|
-
} catch (err) {
|
|
342
|
-
toast.error(err instanceof Error ? err.message : tr("fluidgrids.humanResponse.failed", "Your response could not be recorded"));
|
|
343
|
-
}
|
|
344
|
-
};
|
|
345
|
-
const missingRequired = request.responseType === "CUSTOM_FORM" && request.fields.some((field) => field.required && !(values[field.name] ?? "").trim());
|
|
346
|
-
const emptyText = request.responseType === "FREE_TEXT" && !text.trim();
|
|
347
|
-
const recipient = useRecipientLabel(request, request.channel === "IN_APP" ? tr("fluidgrids.humanResponse.anyMember", "any workspace member") : "");
|
|
348
|
-
return /* @__PURE__ */ jsxs(Card, {
|
|
349
|
-
className: "border border-border-secondary bg-background-secondary",
|
|
350
|
-
"data-testid": "human-request-card",
|
|
351
|
-
"data-request-id": request.id,
|
|
352
|
-
children: [/* @__PURE__ */ jsxs(CardHeader, {
|
|
353
|
-
className: "pb-3",
|
|
354
|
-
children: [/* @__PURE__ */ jsxs("div", {
|
|
355
|
-
className: "flex flex-wrap items-center justify-between gap-2",
|
|
356
|
-
children: [/* @__PURE__ */ jsxs("div", {
|
|
357
|
-
className: "flex min-w-0 items-center gap-2",
|
|
358
|
-
children: [/* @__PURE__ */ jsx(Icon, {
|
|
359
|
-
icon: CHANNEL_ICON[request.channel] ?? "mdi:account-question",
|
|
360
|
-
width: 18,
|
|
361
|
-
className: "shrink-0 text-text-secondary"
|
|
362
|
-
}), /* @__PURE__ */ jsx("span", {
|
|
363
|
-
className: "truncate text-sm font-semibold text-text-primary",
|
|
364
|
-
children: request.title
|
|
365
|
-
})]
|
|
366
|
-
}), /* @__PURE__ */ jsx(Badge, {
|
|
367
|
-
variant: "outline",
|
|
368
|
-
className: "font-mono text-[10px]",
|
|
369
|
-
children: request.workflowKey
|
|
370
|
-
})]
|
|
371
|
-
}), /* @__PURE__ */ jsxs("p", {
|
|
372
|
-
className: "text-xs text-text-secondary",
|
|
373
|
-
children: [tr("fluidgrids.humanResponse.askedVia", "Asked {{recipient}} via {{channel}}", {
|
|
374
|
-
recipient,
|
|
375
|
-
channel: channelLabel(request.channel, tr)
|
|
376
|
-
}), request.expiresAt && ` · ${tr("fluidgrids.humanResponse.until", "until {{time}}", { time: new Date(request.expiresAt).toLocaleString() })}`]
|
|
377
|
-
})]
|
|
378
|
-
}), /* @__PURE__ */ jsxs(CardContent, {
|
|
379
|
-
className: "space-y-3",
|
|
380
|
-
children: [
|
|
381
|
-
request.message && /* @__PURE__ */ jsx("p", {
|
|
382
|
-
className: "whitespace-pre-wrap break-words text-sm text-text-primary",
|
|
383
|
-
children: request.message
|
|
384
|
-
}),
|
|
385
|
-
/* @__PURE__ */ jsx(ApprovalApprovers, { request }),
|
|
386
|
-
!request.canRespond && /* @__PURE__ */ jsx("p", {
|
|
387
|
-
className: "text-xs text-text-secondary",
|
|
388
|
-
children: notAnswerableText(request, channelLabel(request.channel, tr), tr)
|
|
389
|
-
}),
|
|
390
|
-
request.canRespond && request.responseType === "FREE_TEXT" && /* @__PURE__ */ jsxs("div", {
|
|
391
|
-
className: "space-y-1.5",
|
|
392
|
-
children: [/* @__PURE__ */ jsx(Label, {
|
|
393
|
-
htmlFor: `human-text-${request.id}`,
|
|
394
|
-
children: tr("fluidgrids.humanResponse.yourResponse", "Your response")
|
|
395
|
-
}), /* @__PURE__ */ jsx(Textarea, {
|
|
396
|
-
id: `human-text-${request.id}`,
|
|
397
|
-
value: text,
|
|
398
|
-
onChange: (event) => setText(event.target.value)
|
|
399
|
-
})]
|
|
400
|
-
}),
|
|
401
|
-
request.canRespond && request.responseType === "CUSTOM_FORM" && /* @__PURE__ */ jsx(FormControls, {
|
|
402
|
-
requestId: request.id,
|
|
403
|
-
fields: request.fields,
|
|
404
|
-
values,
|
|
405
|
-
onChange: (name, value) => setValues((current) => ({
|
|
406
|
-
...current,
|
|
407
|
-
[name]: value
|
|
408
|
-
}))
|
|
409
|
-
}),
|
|
410
|
-
request.canRespond && request.responseType === "APPROVAL" && /* @__PURE__ */ jsx(ApprovalControls, {
|
|
411
|
-
request,
|
|
412
|
-
loading,
|
|
413
|
-
onAnswer: submit
|
|
414
|
-
}),
|
|
415
|
-
request.canRespond && request.responseType !== "APPROVAL" && /* @__PURE__ */ jsx("div", {
|
|
416
|
-
className: "flex flex-wrap items-center gap-2 pt-1",
|
|
417
|
-
children: /* @__PURE__ */ jsxs(Button$1, {
|
|
418
|
-
"data-agent": "confirm",
|
|
419
|
-
size: "sm",
|
|
420
|
-
disabled: loading || missingRequired || emptyText,
|
|
421
|
-
onClick: () => submit(request.responseType === "FREE_TEXT" ? { text } : { values }),
|
|
422
|
-
"data-testid": "human-request-submit",
|
|
423
|
-
children: [/* @__PURE__ */ jsx(Icon, {
|
|
424
|
-
icon: "mdi:send",
|
|
425
|
-
className: "mr-1.5",
|
|
426
|
-
width: 16
|
|
427
|
-
}), request.submitLabel]
|
|
428
|
-
})
|
|
429
|
-
})
|
|
430
|
-
]
|
|
431
|
-
})]
|
|
432
|
-
});
|
|
433
|
-
}
|
|
434
211
|
|
|
435
|
-
export { useRecipientLabel as i,
|
|
212
|
+
export { useRecipientLabel as a, notAnswerableText as i, ApprovalApprovers as n, answeredToastText as r, channelLabel as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as __exportAll } from "./rolldown-runtime-hDbaFkMy.js";
|
|
3
3
|
import { g as toCodeMirrorDiagnostics } from "./node-operation-selection-DAbS6jSY.js";
|
|
4
|
-
import { Hn as useBuilderReadOnly } from "./FluidGridsProvider-
|
|
4
|
+
import { Hn as useBuilderReadOnly } from "./FluidGridsProvider-TQ-aDPtn.js";
|
|
5
5
|
import { useEffect, useMemo, useRef, useState } from "react";
|
|
6
6
|
import { cn } from "@burdenoff/fe-libs/utils";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
package/dist/executions.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as ExecutionsListPage } from "./ExecutionsListPage-
|
|
3
|
-
import { t as ExecutionDetailPage } from "./ExecutionDetailPage-
|
|
2
|
+
import { t as ExecutionsListPage } from "./ExecutionsListPage-JpByw6nA.js";
|
|
3
|
+
import { t as ExecutionDetailPage } from "./ExecutionDetailPage-CcUxFexZ.js";
|
|
4
4
|
|
|
5
5
|
export { ExecutionDetailPage, ExecutionsListPage };
|
|
@@ -94,7 +94,32 @@ const FLUIDGRIDS_FLAGS = {
|
|
|
94
94
|
* wspace-workflow-svc answers every suggestion field with FEATURE_DISABLED
|
|
95
95
|
* while it is off for the workspace.
|
|
96
96
|
*/
|
|
97
|
-
continuousOptimisation: "fluidgrids.continuous-optimisation"
|
|
97
|
+
continuousOptimisation: "fluidgrids.continuous-optimisation",
|
|
98
|
+
/**
|
|
99
|
+
* Phase D (BOFF-9907, PLAN-D §2.1) Generate with AI emits code: the
|
|
100
|
+
* Canvas | TypeScript | Python tabs of the AI panel. Needs `codeFirst`.
|
|
101
|
+
* A rollout gate, so it defaults OFF and fails closed (see
|
|
102
|
+
* {@link resolvePhaseDFlags}).
|
|
103
|
+
*/
|
|
104
|
+
aiCode: "fluidgrids.ai-code",
|
|
105
|
+
/**
|
|
106
|
+
* Phase D templates as code: *Open as code* on a template, and installing
|
|
107
|
+
* a tier-2 template from its sources. Needs
|
|
108
|
+
* `codeFirst`, plus `durableFunctions` for a tier-2 template. Defaults OFF.
|
|
109
|
+
*/
|
|
110
|
+
codeTemplates: "fluidgrids.code-templates",
|
|
111
|
+
/**
|
|
112
|
+
* Phase D n8n import (F-D3). A canvas feature, so it needs no other flag.
|
|
113
|
+
* Mirrored so every Phase D gate resolves the same way; the builder does
|
|
114
|
+
* not read it yet. Defaults OFF.
|
|
115
|
+
*/
|
|
116
|
+
n8nImport: "fluidgrids.n8n-import",
|
|
117
|
+
/**
|
|
118
|
+
* Phase D standalone activities (`startActivity`). Needs `codeFirst` and
|
|
119
|
+
* `durableFunctions`. The builder has no surface for it yet; the key is
|
|
120
|
+
* mirrored so every Phase D gate resolves the same way. Defaults OFF.
|
|
121
|
+
*/
|
|
122
|
+
standaloneActivities: "fluidgrids.standalone-activities"
|
|
98
123
|
};
|
|
99
124
|
/**
|
|
100
125
|
* The value each flag takes when it cannot be evaluated (no provider, still
|
|
@@ -114,7 +139,11 @@ const FLUIDGRIDS_FLAG_DEFAULTS = {
|
|
|
114
139
|
[FLUIDGRIDS_FLAGS.schedulePolicies]: false,
|
|
115
140
|
[FLUIDGRIDS_FLAGS.pythonDurableFunctions]: false,
|
|
116
141
|
[FLUIDGRIDS_FLAGS.workflowTests]: false,
|
|
117
|
-
[FLUIDGRIDS_FLAGS.continuousOptimisation]: false
|
|
142
|
+
[FLUIDGRIDS_FLAGS.continuousOptimisation]: false,
|
|
143
|
+
[FLUIDGRIDS_FLAGS.aiCode]: false,
|
|
144
|
+
[FLUIDGRIDS_FLAGS.codeTemplates]: false,
|
|
145
|
+
[FLUIDGRIDS_FLAGS.n8nImport]: false,
|
|
146
|
+
[FLUIDGRIDS_FLAGS.standaloneActivities]: false
|
|
118
147
|
};
|
|
119
148
|
/**
|
|
120
149
|
* Each evaluations map the provider has published as settled (loaded, not
|
|
@@ -233,6 +262,37 @@ function usePhaseCFlags() {
|
|
|
233
262
|
const context = useOptionalFeatureFlags();
|
|
234
263
|
return useMemo(() => resolvePhaseCFlags(context), [context]);
|
|
235
264
|
}
|
|
265
|
+
/** Every Phase D gate off: what a shell without the flags sees. */
|
|
266
|
+
const PHASE_D_FLAGS_OFF = Object.freeze({
|
|
267
|
+
aiCode: false,
|
|
268
|
+
codeTemplates: false,
|
|
269
|
+
codeTemplatesDurable: false,
|
|
270
|
+
n8nImport: false,
|
|
271
|
+
standaloneActivities: false
|
|
272
|
+
});
|
|
273
|
+
/** Resolves the Phase D gates from the optional flag context (exported for tests). */
|
|
274
|
+
function resolvePhaseDFlags(context) {
|
|
275
|
+
const flag = (key) => resolveFluidGridsFlag(context, key);
|
|
276
|
+
const n8nImport = flag(FLUIDGRIDS_FLAGS.n8nImport);
|
|
277
|
+
if (!flag(FLUIDGRIDS_FLAGS.codeFirst)) return {
|
|
278
|
+
...PHASE_D_FLAGS_OFF,
|
|
279
|
+
n8nImport
|
|
280
|
+
};
|
|
281
|
+
const durable = flag(FLUIDGRIDS_FLAGS.durableFunctions);
|
|
282
|
+
const codeTemplates = flag(FLUIDGRIDS_FLAGS.codeTemplates);
|
|
283
|
+
return {
|
|
284
|
+
aiCode: flag(FLUIDGRIDS_FLAGS.aiCode),
|
|
285
|
+
codeTemplates,
|
|
286
|
+
codeTemplatesDurable: codeTemplates && durable,
|
|
287
|
+
n8nImport,
|
|
288
|
+
standaloneActivities: durable && flag(FLUIDGRIDS_FLAGS.standaloneActivities)
|
|
289
|
+
};
|
|
290
|
+
}
|
|
291
|
+
/** {@link resolvePhaseDFlags} for the active workspace. */
|
|
292
|
+
function usePhaseDFlags() {
|
|
293
|
+
const context = useOptionalFeatureFlags();
|
|
294
|
+
return useMemo(() => resolvePhaseDFlags(context), [context]);
|
|
295
|
+
}
|
|
236
296
|
/**
|
|
237
297
|
* Whether the rollout gates have settled for the active workspace, so that an
|
|
238
298
|
* off gate means "off" rather than "not evaluated yet" (exported for tests).
|
|
@@ -293,4 +353,4 @@ function usePaletteGates() {
|
|
|
293
353
|
return useMemo(() => resolvePaletteGates(context), [context]);
|
|
294
354
|
}
|
|
295
355
|
|
|
296
|
-
export {
|
|
356
|
+
export { useWorkflowTestsEnabled as _, resolveFluidGridsFlagsSettled as a, useContinuousOptimisationEnabled as c, useFluidGridsFlag as d, useFluidGridsFlagsSettled as f, useSelfHostedWorkersEnabled as g, usePhaseDFlags as h, PHASE_D_FLAGS_OFF as i, useDurableFunctionNodesEnabled as l, usePhaseCFlags as m, FLUIDGRIDS_FLAG_DEFAULTS as n, resolvePhaseCFlags as o, usePaletteGates as p, PHASE_C_FLAGS_OFF as r, resolvePhaseDFlags as s, FLUIDGRIDS_FLAGS as t, useDurableParityEnabled as u };
|
package/dist/flags.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
2
|
+
import { _ as usePhaseCFlags, b as useWorkflowTestsEnabled, d as useContinuousOptimisationEnabled, f as useDurableFunctionNodesEnabled, h as useFluidGridsFlagsSettled, m as useFluidGridsFlag, n as FLUIDGRIDS_FLAG_DEFAULTS, o as PhaseCFlags, r as FluidGridsFlagKey, t as FLUIDGRIDS_FLAGS, y as useSelfHostedWorkersEnabled } from "./index-B4g88tCa.js";
|
|
3
3
|
export { FLUIDGRIDS_FLAGS, FLUIDGRIDS_FLAG_DEFAULTS, type FluidGridsFlagKey, type PhaseCFlags, useContinuousOptimisationEnabled, useDurableFunctionNodesEnabled, useFluidGridsFlag, useFluidGridsFlagsSettled, usePhaseCFlags, useSelfHostedWorkersEnabled, useWorkflowTestsEnabled };
|
package/dist/flags.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { _ as useWorkflowTestsEnabled, c as useContinuousOptimisationEnabled, d as useFluidGridsFlag, f as useFluidGridsFlagsSettled, g as useSelfHostedWorkersEnabled, l as useDurableFunctionNodesEnabled, m as usePhaseCFlags, n as FLUIDGRIDS_FLAG_DEFAULTS, t as FLUIDGRIDS_FLAGS } from "./feature-flags-B_b8PJ6Z.js";
|
|
3
3
|
|
|
4
4
|
export { FLUIDGRIDS_FLAGS, FLUIDGRIDS_FLAG_DEFAULTS, useContinuousOptimisationEnabled, useDurableFunctionNodesEnabled, useFluidGridsFlag, useFluidGridsFlagsSettled, usePhaseCFlags, useSelfHostedWorkersEnabled, useWorkflowTestsEnabled };
|