@burdenoff/fluidgrids-fe-sdk 2026.1115.9 → 2026.1115.11

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 (65) hide show
  1. package/dist/{AiStudioPage-CZTaVeQE.js → AiStudioPage-BeiquIMB.js} +4 -4
  2. package/dist/{DataSinkDashboardPage-CPq6-jZM.js → DataSinkDashboardPage-D6nE6EgZ.js} +1 -1
  3. package/dist/{ExecutionDetailPage-d29WPJDN.js → ExecutionDetailPage-B_P-YvYG.js} +9 -9
  4. package/dist/{ExecutionsListPage-xQthHGAJ.js → ExecutionsListPage-DG6_8hB3.js} +6 -6
  5. package/dist/{FailureTriagePanel-Cka9Rc1_.js → FailureTriagePanel-e_VMnag4.js} +1 -1
  6. package/dist/{FluidGridsProvider-BRC0WlAa.js → FluidGridsProvider-DX6Thg3Z.js} +539 -30
  7. package/dist/{HistoryPage-Drdk9j_Q.js → HistoryPage-Bovdj1vl.js} +3 -1
  8. package/dist/{InsightsPage-mYWZvyGR.js → InsightsPage-V48lDU2T.js} +5 -5
  9. package/dist/{OpenTemplateAsCodeButton-CQV-YHlJ.js → OpenTemplateAsCodeButton-9RVjbiNf.js} +2 -2
  10. package/dist/{PaidTemplateConfirm-Dog5moZa.js → PaidTemplateConfirm-BOV478tt.js} +1 -1
  11. package/dist/{SettingsPage-DFnqjkpT.js → SettingsPage-Bwq_VNLe.js} +5 -5
  12. package/dist/{TaskQueuesPage-CZQUO33o.js → TaskQueuesPage-OHvFFEwb.js} +1 -1
  13. package/dist/{TemplateCard-D2zt-kXW.js → TemplateCard-B4SfeuOJ.js} +45 -21
  14. package/dist/{TemplateConfigurationModal-D8eQsJXJ.js → TemplateConfigurationModal-DPuP9pgf.js} +1 -1
  15. package/dist/{TemplatePreview-BgdkcCF-.js → TemplatePreview-CGU41Exc.js} +5 -5
  16. package/dist/{TemplatesPage-t7rGU-BP.js → TemplatesPage-VKeqKdNZ.js} +9 -9
  17. package/dist/{WorkflowBuilder-CtTM79lP.js → WorkflowBuilder-CfUyB2cA.js} +13 -6
  18. package/dist/{WorkflowBuilder-BS9kVcgU.js → WorkflowBuilder-D1rKfRjJ.js} +3 -3
  19. package/dist/{WorkflowSearchRedirect-Bqdxr833.js → WorkflowSearchRedirect-Bkm8KsQy.js} +1 -1
  20. package/dist/{WorkflowShareDialog-D_G3TUGQ.js → WorkflowShareDialog-BhADbGPw.js} +1 -1
  21. package/dist/{WorkflowsList-DjKePEwo.js → WorkflowsList-BgE2Bcwo.js} +21 -14
  22. package/dist/{agentTools-DrVlHNeP.js → agentTools-CAC40gup.js} +1 -1
  23. package/dist/{ai-usage-DhSKp0tV.js → ai-usage-DCeF58v_.js} +1 -1
  24. package/dist/{app-4Qdv2_5b.js → app-Bn0ZStKe.js} +1 -1
  25. package/dist/{assert-rules-D9PNDTMK.js → assert-rules-Dh_rU0vR.js} +1 -1
  26. package/dist/{canvasNoteTools-Bo2QldkD.js → canvasNoteTools-CfvyJ2Mg.js} +1 -1
  27. package/dist/executions.js +2 -2
  28. package/dist/{flow-builder-CWfNAFd8.js → flow-builder-C-xoP1_y.js} +33 -53
  29. package/dist/{graphql-types-CxkVzQqA.js → graphql-types-BdhNiBrG.js} +57 -36
  30. package/dist/history.js +1 -1
  31. package/dist/{index-RWAuYE2j.d.ts → index-BaLeKY1T.d.ts} +3 -2
  32. package/dist/{index-72XFgvbn.d.ts → index-CY5mVmg6.d.ts} +4 -0
  33. package/dist/{index-C2ehY2Ld.d.ts → index-U_t_24Ac.d.ts} +133 -139
  34. package/dist/index.d.ts +4 -4
  35. package/dist/index.js +35 -34
  36. package/dist/{node-detail-view-D_N3kLtA.js → node-detail-view-CWPyhSWR.js} +4 -4
  37. package/dist/{node-editor-tab-body-BQ9JZa72.js → node-editor-tab-body-CMUbqr58.js} +2 -2
  38. package/dist/observability.d.ts +1 -1
  39. package/dist/observability.js +2 -2
  40. package/dist/{popover-DZdTN21a.js → popover-DlMR7TwZ.js} +1 -1
  41. package/dist/{quick-config-panel-BCUY4tQy.js → quick-config-panel-ClRN9k1I.js} +3 -3
  42. package/dist/{run-list-links-BwsCiBPB.js → run-list-links-BwWI_o0_.js} +1 -1
  43. package/dist/{run-mode-vpIlmfgY.js → run-mode-CVE9GZN4.js} +1 -1
  44. package/dist/{schedule-panel-B6FrpX9d.js → schedule-panel-BudusAdi.js} +5 -5
  45. package/dist/settings.js +1 -1
  46. package/dist/{sidebar-node-editor-CWrmlFlZ.js → sidebar-node-editor-COmLMrwX.js} +3 -3
  47. package/dist/{template-code-9dL1SUji.js → template-code-Bl1pFk6i.js} +1 -1
  48. package/dist/templates.js +2 -2
  49. package/dist/{use-workflow-tests-C4e6aJZS.js → use-workflow-tests-BLCJB0WJ.js} +2 -2
  50. package/dist/{useDurableParity-BtWk4d-i.js → useDurableParity-Cglyf8HC.js} +1 -1
  51. package/dist/{useExecutions-C9pVKexC.js → useExecutions-Cdgkadhu.js} +2 -2
  52. package/dist/{useGlobalStoreClient-C2P50Gj5.js → useGlobalStoreClient-BuSeLKRC.js} +1 -1
  53. package/dist/{useObservability-DsHX86Xl.js → useObservability-C3pjy6Ol.js} +1 -1
  54. package/dist/{useRunHistory-DUNLNOKA.js → useRunHistory-ORb_kIUO.js} +2 -2
  55. package/dist/{useWorkflowCodeExport-DSbfcehl.js → useWorkflowCodeExport-C7BTGUOA.js} +2 -2
  56. package/dist/{useWorkflows-B13Cp8tk.js → useWorkflows-DtuE-oYn.js} +1 -1
  57. package/dist/workflow-builder.d.ts +1 -1
  58. package/dist/workflow-builder.js +4 -4
  59. package/dist/{workflow-description-F3inwvof.js → workflow-description-Dt9VrAov.js} +1 -1
  60. package/dist/workflow-host.d.ts +1 -1
  61. package/dist/workflow-pages.d.ts +2 -2
  62. package/dist/workflow-pages.js +14 -14
  63. package/dist/{workflow-transfer-CsXh0mIi.js → workflow-transfer-Bg-d9IbR.js} +1 -1
  64. package/dist/workflows-list.js +1 -1
  65. package/package.json +1 -1
@@ -12,11 +12,12 @@ import { t as WorkflowDefinitionDocument } from "./WorkflowDefinitionDocument-DZ
12
12
  import { a as emitOperationErrorEvent, i as emitFluidGridsEvent, o as emitRunCompletedOnce } from "./token-refresh-link-BjN7H4qA.js";
13
13
  import { i as emitRunStarted, n as emitRunFailed, r as emitRunLimitHit, s as emitWorkflowCreated } from "./fluidgridsEvents-Dm5CaHtr.js";
14
14
  import { n as QUOTA_EXHAUSTED_CODE, r as RUNS_QUOTA_NAME, s as findQuotaRefusal } from "./quota-Cdt8yz7N.js";
15
- import { c as setFluidGridsConfig, l as validateTrustedOrigin, o as resetFluidGridsConfig, r as getFluidGridsConfig, s as resetFluidGridsExecutionState } from "./config-X97zrIvn.js";
15
+ import { a as getGraphQLEndpoint, c as setFluidGridsConfig, l as validateTrustedOrigin, o as resetFluidGridsConfig, r as getFluidGridsConfig, s as resetFluidGridsExecutionState } from "./config-X97zrIvn.js";
16
16
  import { C as TriggerWorkflowDocument, D as ExecutionDetailDocument, E as ExecutionsListDocument, O as RunFromNodeDocument, S as EventRegistrationsDocument, T as CreateWorkflowDefinitionDocument, _ as savesInPlace, b as writeAutosavePreference, d as mergeDefinitionJson, f as readAutosavePreference, g as saveFailureOf, i as canAutosave, k as ExecuteStepDocument, m as runPreparationOf, n as AUTOSAVE_PREFERENCE_KEY, o as createSaveQueue, s as editStateOf, u as leaveNeedsConfirmation, v as toastsSaveFailure, w as CreateWorkflowVersionDocument, x as NodeEndpointConfigsDocument, y as workflowFingerprint } from "./workflow-save-state-DUE9lNwQ.js";
17
+ import { a as matchWorkflowBuilderRoute } from "./workflowRouteData-BkfVOc-O.js";
18
+ import { Co as BuilderTimingOrigin, So as BuilderTimingKind, Yw as NodeManifestDetail, wo as BuilderTimingStep } from "./graphql-types-BdhNiBrG.js";
17
19
  import { a as useFgAskableAction } from "./askAboutBridge-ByYsQams.js";
18
20
  import { i as readableNodeType } from "./run-display-UjLAoYqQ.js";
19
- import { Kw as NodeManifestDetail } from "./graphql-types-CxkVzQqA.js";
20
21
  import { t as provideNodeRegistryRefresh } from "./node-registry-refresh-s3okf83X.js";
21
22
  import { createContext, memo, useCallback, useContext, useEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
22
23
  import { useNavigate, useParams } from "react-router";
@@ -36,6 +37,7 @@ import { AlertDialog, AlertDialogCancel, AlertDialogContent, AlertDialogDescript
36
37
  import { InfoCircledIcon } from "@radix-ui/react-icons";
37
38
  import { dispatchUpgradePrompt } from "@burdenoff/fe-libs/shared/components";
38
39
  import { useEventBus } from "@burdenoff/fe-libs/shared/events";
40
+ import { print } from "graphql";
39
41
  import { Button as Button$1 } from "@burdenoff/fe-libs/button";
40
42
  import { v4 } from "uuid";
41
43
 
@@ -471,6 +473,86 @@ function useNodeDocsUrl(nodeType, nodeVersion) {
471
473
  return docsUrl;
472
474
  }
473
475
 
476
+ // src/generated/documents/wspace/ReportBuilderTimingsDocument.ts
477
+ const ReportBuilderTimingsDocument = {
478
+ "kind": "Document",
479
+ "definitions": [{
480
+ "kind": "OperationDefinition",
481
+ "operation": "mutation",
482
+ "name": {
483
+ "kind": "Name",
484
+ "value": "ReportBuilderTimings"
485
+ },
486
+ "variableDefinitions": [{
487
+ "kind": "VariableDefinition",
488
+ "variable": {
489
+ "kind": "Variable",
490
+ "name": {
491
+ "kind": "Name",
492
+ "value": "input"
493
+ }
494
+ },
495
+ "type": {
496
+ "kind": "NonNullType",
497
+ "type": {
498
+ "kind": "NamedType",
499
+ "name": {
500
+ "kind": "Name",
501
+ "value": "ReportBuilderTimingsInput"
502
+ }
503
+ }
504
+ },
505
+ "directives": []
506
+ }],
507
+ "directives": [],
508
+ "selectionSet": {
509
+ "kind": "SelectionSet",
510
+ "selections": [{
511
+ "kind": "Field",
512
+ "name": {
513
+ "kind": "Name",
514
+ "value": "reportBuilderTimings"
515
+ },
516
+ "arguments": [{
517
+ "kind": "Argument",
518
+ "name": {
519
+ "kind": "Name",
520
+ "value": "input"
521
+ },
522
+ "value": {
523
+ "kind": "Variable",
524
+ "name": {
525
+ "kind": "Name",
526
+ "value": "input"
527
+ }
528
+ }
529
+ }],
530
+ "directives": [],
531
+ "selectionSet": {
532
+ "kind": "SelectionSet",
533
+ "selections": [{
534
+ "kind": "Field",
535
+ "name": {
536
+ "kind": "Name",
537
+ "value": "accepted"
538
+ },
539
+ "arguments": [],
540
+ "directives": []
541
+ }, {
542
+ "kind": "Field",
543
+ "name": {
544
+ "kind": "Name",
545
+ "value": "dropped"
546
+ },
547
+ "arguments": [],
548
+ "directives": []
549
+ }]
550
+ }
551
+ }]
552
+ }
553
+ }]
554
+ };
555
+
474
556
  // src/generated/documents/wspace/SaveWorkflowDraftDocument.ts
475
557
  const SaveWorkflowDraftDocument = {
476
558
  "kind": "Document",
@@ -2316,11 +2398,11 @@ function resolveNodeOperation(data, fallbackOperations) {
2316
2398
  function isRecord$3(value) {
2317
2399
  return typeof value === "object" && value !== null && !Array.isArray(value);
2318
2400
  }
2319
- function record$1(value) {
2401
+ function record$2(value) {
2320
2402
  return isRecord$3(value) ? value : void 0;
2321
2403
  }
2322
2404
  function declaredType(schema) {
2323
- const type = typeof schema === "string" ? schema : record$1(schema)?.type;
2405
+ const type = typeof schema === "string" ? schema : record$2(schema)?.type;
2324
2406
  return typeof type === "string" ? type.toLowerCase().trim() : "";
2325
2407
  }
2326
2408
  function structuredParameterType(schema) {
@@ -2329,19 +2411,19 @@ function structuredParameterType(schema) {
2329
2411
  if (type === "object") return "object";
2330
2412
  }
2331
2413
  function itemSchema(schema) {
2332
- return record$1(schema)?.items ?? declaredType(schema).match(/^array<(.+)>$/)?.[1];
2414
+ return record$2(schema)?.items ?? declaredType(schema).match(/^array<(.+)>$/)?.[1];
2333
2415
  }
2334
2416
  function matchesSchema(value, schema) {
2335
2417
  const type = declaredType(schema);
2336
2418
  const structured = structuredParameterType(schema);
2337
2419
  if (structured === "array") return Array.isArray(value) && value.every((item) => matchesSchema(item, itemSchema(schema)));
2338
2420
  if (structured === "object") {
2339
- const object = record$1(value);
2421
+ const object = record$2(value);
2340
2422
  if (!object) return false;
2341
- const definition = record$1(schema);
2423
+ const definition = record$2(schema);
2342
2424
  const required = definition?.required;
2343
2425
  if (Array.isArray(required) && required.some((key) => typeof key === "string" && !Object.hasOwn(object, key))) return false;
2344
- return Object.entries(record$1(definition?.properties) ?? {}).every(([key, property]) => Object.hasOwn(object, key) ? matchesSchema(object[key], property) : record$1(property)?.required !== true);
2426
+ return Object.entries(record$2(definition?.properties) ?? {}).every(([key, property]) => Object.hasOwn(object, key) ? matchesSchema(object[key], property) : record$2(property)?.required !== true);
2345
2427
  }
2346
2428
  if (type === "string") return typeof value === "string";
2347
2429
  if (type === "number") return typeof value === "number" && Number.isFinite(value);
@@ -2380,7 +2462,7 @@ function parseParameterValue(schema, value) {
2380
2462
  };
2381
2463
  }
2382
2464
  }
2383
- if (type === "array" ? !Array.isArray(parsed) : !record$1(parsed)) return {
2465
+ if (type === "array" ? !Array.isArray(parsed) : !record$2(parsed)) return {
2384
2466
  valid: false,
2385
2467
  error: `Expected a JSON ${type}.`
2386
2468
  };
@@ -2399,9 +2481,9 @@ function formatParameterValue(value) {
2399
2481
  }
2400
2482
  function normalizeNodeParameters(data, fallbackOperations, mappedFields = /* @__PURE__ */ new Set()) {
2401
2483
  const operation = resolveNodeOperation(data, fallbackOperations).selected;
2402
- const fields = record$1(operation?.input_fields);
2403
- const args = record$1(data.args);
2404
- const state = record$1(args?.state) ?? {};
2484
+ const fields = record$2(operation?.input_fields);
2485
+ const args = record$2(data.args);
2486
+ const state = record$2(args?.state) ?? {};
2405
2487
  if (!fields) return data;
2406
2488
  const visible = dropHiddenParameters(state, fields, mappedFields);
2407
2489
  const structuredFields = Object.entries(fields).filter(([name, schema]) => structuredParameterType(schema) && !mappedFields.has(name));
@@ -2430,7 +2512,7 @@ function normalizeNodeParameters(data, fallbackOperations, mappedFields = /* @__
2430
2512
  function normalizeWorkflowParameters(nodes, edges, fallbackOperations) {
2431
2513
  return nodes.map((node) => {
2432
2514
  if (node.data.disabled === true) return node;
2433
- const mappedFields = new Set(edges.filter((edge) => edge.target === node.id).flatMap((edge) => Object.entries(record$1(record$1(record$1(edge)?.mapping)?.definition) ?? {}).filter(([, definition]) => typeof definition === "string" ? definition.trim().length > 0 : definition !== void 0).map(([name]) => name)));
2515
+ const mappedFields = new Set(edges.filter((edge) => edge.target === node.id).flatMap((edge) => Object.entries(record$2(record$2(record$2(edge)?.mapping)?.definition) ?? {}).filter(([, definition]) => typeof definition === "string" ? definition.trim().length > 0 : definition !== void 0).map(([name]) => name)));
2434
2516
  try {
2435
2517
  return {
2436
2518
  ...node,
@@ -2624,6 +2706,408 @@ var RunNodeDetailsLoader = class {
2624
2706
  }
2625
2707
  };
2626
2708
 
2709
+ // src/telemetry/builderTimings.ts
2710
+ /**
2711
+ * Browser timings of three builder steps a person waits on (BOFF-11772):
2712
+ *
2713
+ * - BUILDER_LOAD: opening a workflow until its canvas is drawn, after a full
2714
+ * page load on the builder's address (COLD) or from inside the app (IN_APP);
2715
+ * - WORKFLOW_SAVE: an explicit save until the saved state is shown, for the
2716
+ * draft save (DRAFT) or a version save (VERSION). Autosave is not measured;
2717
+ * - RUN_RESULT_SHOWN: the request of the status poll that saw the run end
2718
+ * until the finished run is drawn (POLL).
2719
+ *
2720
+ * Samples are queued in memory and sent in small batches to
2721
+ * `reportBuilderTimings` on wspace-workflow-svc, which only records them in a
2722
+ * histogram. The payload is enums and numbers: no ids, names, paths or user
2723
+ * agent. Every API here is best effort and silent: nothing reaches a toast, an
2724
+ * error boundary or the SDK's error events, and no request is retried.
2725
+ *
2726
+ * Transport: a `fetch` with `keepalive` to the configured workspace gateway,
2727
+ * carrying exactly the headers the SDK's own Apollo auth link sends
2728
+ * (`authorization`, `x-workspace-authorization`, `x-workspace-id`,
2729
+ * `x-tenant-id`, `x-product-id`). It does not go through the host's Apollo
2730
+ * client: in the FluidGrids app that client is the shell's, whose error link
2731
+ * raises a global error toast for any failed operation, whose mutation link
2732
+ * refetches every active query after a successful mutation, and whose batched
2733
+ * HTTP link drops `keepalive`.
2734
+ *
2735
+ * Timing uses `performance.now()` only. A measurement is dropped when the tab
2736
+ * was hidden at its start or became hidden before its end: a background tab
2737
+ * throttles timers and frames, and nobody is waiting on it.
2738
+ *
2739
+ * This module holds no React state and is safe to import anywhere.
2740
+ */
2741
+ /** The server's accepted range; a sample outside it is not sent. */
2742
+ const MAX_DURATION_MS = 12e4;
2743
+ /** The server records at most this many samples per call. */
2744
+ const MAX_SAMPLES_PER_FLUSH = 20;
2745
+ /** Pending samples kept; the oldest is dropped beyond this. */
2746
+ const MAX_QUEUED_SAMPLES = 50;
2747
+ /** Samples a page load may queue in total, to stop a runaway loop. */
2748
+ const MAX_SAMPLES_PER_PAGE_LOAD = 100;
2749
+ /** Queue length that sends a batch at once. */
2750
+ const FLUSH_AT_SAMPLES = 10;
2751
+ /** Time after the first sample entered an empty queue that sends it. */
2752
+ const FLUSH_DELAY_MS = 15e3;
2753
+ /** How long an in-app navigation mark stays usable. */
2754
+ const NAVIGATION_MARK_TTL_MS = 3e4;
2755
+ /** Where the host mounts the builder routes, as matched for a cold load. */
2756
+ const WORKFLOWS_BASE_PATH = "/workflows";
2757
+ const MAX_REMEMBERED_RUNS = 200;
2758
+ function freshState(send = sendWithFetch, now = defaultNow, random = Math.random) {
2759
+ return {
2760
+ sampled: null,
2761
+ queue: [],
2762
+ queuedThisPage: 0,
2763
+ flushTimer: null,
2764
+ hiddenEpoch: 0,
2765
+ listening: false,
2766
+ hiddenAtStart: false,
2767
+ navigationMark: null,
2768
+ coldAvailable: true,
2769
+ pendingLoad: null,
2770
+ reportedRuns: /* @__PURE__ */ new Set(),
2771
+ send,
2772
+ now,
2773
+ random
2774
+ };
2775
+ }
2776
+ function defaultNow() {
2777
+ return typeof performance !== "undefined" ? performance.now() : 0;
2778
+ }
2779
+ let state = freshState();
2780
+ function settingsOf(config) {
2781
+ const settings = config.builderTimings;
2782
+ const enabled = settings?.enabled ?? config.productId === "fluidgrids";
2783
+ const rate = settings?.sampleRate;
2784
+ return {
2785
+ enabled,
2786
+ sampleRate: typeof rate === "number" && Number.isFinite(rate) ? Math.min(1, Math.max(0, rate)) : 1
2787
+ };
2788
+ }
2789
+ /** Whether this page load reports timings. */
2790
+ function active() {
2791
+ const { enabled, sampleRate } = settingsOf(getFluidGridsConfig());
2792
+ if (!enabled) return false;
2793
+ if (state.sampled === null) state.sampled = state.random() < sampleRate;
2794
+ return state.sampled;
2795
+ }
2796
+ function isHidden() {
2797
+ return typeof document !== "undefined" && document.visibilityState === "hidden";
2798
+ }
2799
+ function onVisibilityChange() {
2800
+ if (!isHidden()) return;
2801
+ state.hiddenEpoch += 1;
2802
+ flushBuilderTimings({ keepalive: true });
2803
+ }
2804
+ function onPageHide() {
2805
+ flushBuilderTimings({ keepalive: true });
2806
+ }
2807
+ function listen() {
2808
+ if (state.listening || typeof document === "undefined") return;
2809
+ state.listening = true;
2810
+ state.hiddenAtStart = isHidden() || wasEverHiddenBefore();
2811
+ document.addEventListener("visibilitychange", onVisibilityChange);
2812
+ if (typeof window !== "undefined") window.addEventListener("pagehide", onPageHide);
2813
+ }
2814
+ /**
2815
+ * Whether the document was hidden at any time before this module listened,
2816
+ * where the browser keeps visibility-state entries (Chromium). Elsewhere a
2817
+ * page loaded in the background is still caught by `hiddenAtStart`.
2818
+ */
2819
+ function wasEverHiddenBefore() {
2820
+ try {
2821
+ if (typeof performance === "undefined") return false;
2822
+ return performance.getEntriesByType("visibility-state").some((entry) => entry.name === "hidden");
2823
+ } catch {
2824
+ return false;
2825
+ }
2826
+ }
2827
+ function begin(start) {
2828
+ listen();
2829
+ if (isHidden()) return null;
2830
+ return {
2831
+ start: start ?? state.now(),
2832
+ epoch: state.hiddenEpoch
2833
+ };
2834
+ }
2835
+ /** Calls `done` after the next paint that follows the current React commit. */
2836
+ function afterNextPaint(done) {
2837
+ const next = () => setTimeout(done, 0);
2838
+ if (typeof requestAnimationFrame === "function") requestAnimationFrame(next);
2839
+ else next();
2840
+ }
2841
+ /** Finishes a measurement after the next paint, unless the tab was hidden. */
2842
+ function finish(measurement, step, kind, extraValid = () => true) {
2843
+ afterNextPaint(() => {
2844
+ if (state.hiddenEpoch !== measurement.epoch || isHidden()) return;
2845
+ if (!extraValid()) return;
2846
+ record$1({
2847
+ step,
2848
+ kind,
2849
+ durationMs: state.now() - measurement.start
2850
+ });
2851
+ });
2852
+ }
2853
+ function validDuration(durationMs) {
2854
+ return Number.isFinite(durationMs) && durationMs >= 0 && durationMs <= 12e4;
2855
+ }
2856
+ /** Queues one sample (for the measuring helpers below and tests). */
2857
+ function record$1(sample) {
2858
+ try {
2859
+ if (!active() || !validDuration(sample.durationMs)) return;
2860
+ if (state.queuedThisPage >= 100) return;
2861
+ listen();
2862
+ state.queuedThisPage += 1;
2863
+ state.queue.push({
2864
+ step: sample.step,
2865
+ kind: sample.kind,
2866
+ durationMs: Math.round(sample.durationMs * 10) / 10
2867
+ });
2868
+ if (state.queue.length > 50) state.queue.shift();
2869
+ if (state.queue.length >= 10) flushBuilderTimings();
2870
+ else if (state.flushTimer === null) state.flushTimer = setTimeout(() => {
2871
+ state.flushTimer = null;
2872
+ flushBuilderTimings();
2873
+ }, FLUSH_DELAY_MS);
2874
+ } catch {}
2875
+ }
2876
+ /**
2877
+ * Sends the pending samples. A normal flush sends one batch of at most
2878
+ * {@link MAX_SAMPLES_PER_FLUSH} and leaves the rest for the next one; a
2879
+ * `keepalive` flush (the tab is being hidden or left) sends everything, in
2880
+ * batches. Never throws, never waits on anything the UI waits on.
2881
+ */
2882
+ function flushBuilderTimings(options = {}) {
2883
+ try {
2884
+ if (state.flushTimer !== null) {
2885
+ clearTimeout(state.flushTimer);
2886
+ state.flushTimer = null;
2887
+ }
2888
+ if (state.queue.length === 0) return;
2889
+ if (!settingsOf(getFluidGridsConfig()).enabled) {
2890
+ state.queue = [];
2891
+ return;
2892
+ }
2893
+ if (!hasUsableAuthToken()) {
2894
+ state.queue = [];
2895
+ return;
2896
+ }
2897
+ const keepalive = options.keepalive === true;
2898
+ do
2899
+ dispatch(state.queue.splice(0, 20), keepalive);
2900
+ while (keepalive && state.queue.length > 0);
2901
+ if (state.queue.length > 0) state.flushTimer = setTimeout(() => {
2902
+ state.flushTimer = null;
2903
+ flushBuilderTimings();
2904
+ }, FLUSH_DELAY_MS);
2905
+ } catch {}
2906
+ }
2907
+ function dispatch(batch, keepalive) {
2908
+ try {
2909
+ state.send(batch, { keepalive }).catch(debugLog);
2910
+ } catch (error) {
2911
+ debugLog(error);
2912
+ }
2913
+ }
2914
+ function debugLog(error) {
2915
+ if (isDevelopment()) console.debug("[builderTimings] not sent", error);
2916
+ }
2917
+ function isDevelopment() {
2918
+ return import.meta.env?.DEV === true;
2919
+ }
2920
+ /**
2921
+ * A token is usable when it is set and, for a JWT, not about to expire: an
2922
+ * expired token would make the gateway refuse the call, and telemetry must not
2923
+ * be the request that starts a refresh or a sign-in.
2924
+ */
2925
+ function hasUsableAuthToken() {
2926
+ const token = getFluidGridsConfig().authToken;
2927
+ if (!token) return false;
2928
+ const exp = jwtExpiry(token);
2929
+ return exp === null || exp * 1e3 > Date.now() + 5e3;
2930
+ }
2931
+ function jwtExpiry(token) {
2932
+ const payload = token.split(".")[1];
2933
+ if (!payload || typeof atob !== "function") return null;
2934
+ try {
2935
+ const json = atob(payload.replace(/-/g, "+").replace(/_/g, "/"));
2936
+ const parsed = JSON.parse(json);
2937
+ if (typeof parsed !== "object" || parsed === null || !("exp" in parsed)) return null;
2938
+ return typeof parsed.exp === "number" ? parsed.exp : null;
2939
+ } catch {
2940
+ return null;
2941
+ }
2942
+ }
2943
+ const REPORT_QUERY = print(ReportBuilderTimingsDocument);
2944
+ /** The default transport: see the module comment. */
2945
+ async function sendWithFetch(samples, { keepalive }) {
2946
+ if (typeof fetch !== "function") return null;
2947
+ const config = getFluidGridsConfig();
2948
+ if (!config.apiGatewayUrl || !config.authToken) return null;
2949
+ const headers = {
2950
+ "content-type": "application/json",
2951
+ authorization: `Bearer ${config.authToken}`,
2952
+ "x-workspace-id": config.workspaceId
2953
+ };
2954
+ if (config.workspaceToken) headers["x-workspace-authorization"] = `Bearer ${config.workspaceToken}`;
2955
+ if (config.tenantId) headers["x-tenant-id"] = config.tenantId;
2956
+ if (config.productId) headers["x-product-id"] = config.productId;
2957
+ const response = await fetch(getGraphQLEndpoint(config.apiGatewayUrl), {
2958
+ method: "POST",
2959
+ headers,
2960
+ body: JSON.stringify({
2961
+ operationName: "ReportBuilderTimings",
2962
+ query: REPORT_QUERY,
2963
+ variables: { input: {
2964
+ samples,
2965
+ origin: "APP"
2966
+ } }
2967
+ }),
2968
+ keepalive,
2969
+ credentials: "omit"
2970
+ });
2971
+ return response.ok ? null : response.status;
2972
+ }
2973
+ /**
2974
+ * Call synchronously in a click handler that opens an existing workflow in
2975
+ * the builder from inside the app. The next builder load within
2976
+ * {@link NAVIGATION_MARK_TTL_MS} is reported as IN_APP from this moment.
2977
+ */
2978
+ function markBuilderNavigation() {
2979
+ try {
2980
+ if (!active()) return;
2981
+ state.navigationMark = begin();
2982
+ state.coldAvailable = false;
2983
+ } catch {}
2984
+ }
2985
+ /** Whether this document was loaded on a builder address. */
2986
+ function coldLoadQualifies() {
2987
+ if (typeof performance === "undefined") return false;
2988
+ const entry = performance.getEntriesByType("navigation")[0];
2989
+ if (!entry || !("type" in entry) || entry.type !== "navigate" && entry.type !== "reload") return false;
2990
+ try {
2991
+ return matchWorkflowBuilderRoute(new URL(entry.name).pathname, WORKFLOWS_BASE_PATH) !== null;
2992
+ } catch {
2993
+ return false;
2994
+ }
2995
+ }
2996
+ /**
2997
+ * Call when the builder page has applied a fetched, existing workflow to the
2998
+ * flow store. `loadToken` names that load (workflow, version and the page's
2999
+ * load number); a later call replaces an earlier one. Not called for a new
3000
+ * workflow, a reload inside the builder or a failed load.
3001
+ */
3002
+ function noteWorkflowApplied(loadToken) {
3003
+ try {
3004
+ state.pendingLoad = null;
3005
+ if (!active()) return;
3006
+ const mark = state.navigationMark;
3007
+ state.navigationMark = null;
3008
+ if (mark && state.now() - mark.start <= 3e4) {
3009
+ state.coldAvailable = false;
3010
+ state.pendingLoad = {
3011
+ token: loadToken,
3012
+ kind: "IN_APP",
3013
+ measurement: mark,
3014
+ cold: false
3015
+ };
3016
+ return;
3017
+ }
3018
+ if (!state.coldAvailable) return;
3019
+ state.coldAvailable = false;
3020
+ listen();
3021
+ if (mark || state.hiddenAtStart || !coldLoadQualifies()) return;
3022
+ state.pendingLoad = {
3023
+ token: loadToken,
3024
+ kind: "COLD",
3025
+ measurement: {
3026
+ start: 0,
3027
+ epoch: 0
3028
+ },
3029
+ cold: true
3030
+ };
3031
+ } catch {}
3032
+ }
3033
+ /**
3034
+ * Call when a builder load failed or was abandoned: neither a COLD sample nor
3035
+ * an IN_APP sample from the same click is then taken from a later retry, and
3036
+ * a pending load is dropped.
3037
+ */
3038
+ function noteBuilderLoadAbandoned() {
3039
+ state.pendingLoad = null;
3040
+ state.coldAvailable = false;
3041
+ state.navigationMark = null;
3042
+ }
3043
+ /** Call when the builder page unmounts: a load it started is not finished. */
3044
+ function cancelPendingBuilderLoad() {
3045
+ state.pendingLoad = null;
3046
+ }
3047
+ /**
3048
+ * Call when the canvas has initialised and fitted its view. Completes the
3049
+ * pending builder load, if any, after the next paint.
3050
+ */
3051
+ function noteCanvasInit() {
3052
+ try {
3053
+ const pending = state.pendingLoad;
3054
+ if (!pending) return;
3055
+ state.pendingLoad = null;
3056
+ finish(pending.measurement, "BUILDER_LOAD", pending.kind, () => !pending.cold || !state.hiddenAtStart);
3057
+ } catch {}
3058
+ }
3059
+ /**
3060
+ * Starts measuring an explicit save (button or shortcut). Returns null when
3061
+ * nothing is measured (disabled, unsampled or a hidden tab).
3062
+ */
3063
+ function startWorkflowSaveTiming() {
3064
+ try {
3065
+ if (!active()) return null;
3066
+ const measurement = begin();
3067
+ if (!measurement) return null;
3068
+ let done = false;
3069
+ return { shown(kind) {
3070
+ if (done) return;
3071
+ done = true;
3072
+ finish(measurement, "WORKFLOW_SAVE", kind);
3073
+ } };
3074
+ } catch {
3075
+ return null;
3076
+ }
3077
+ }
3078
+ function startRunPollTiming(runId) {
3079
+ try {
3080
+ if (!active() || state.reportedRuns.has(runId)) return {
3081
+ runId,
3082
+ measurement: null
3083
+ };
3084
+ return {
3085
+ runId,
3086
+ measurement: begin()
3087
+ };
3088
+ } catch {
3089
+ return {
3090
+ runId,
3091
+ measurement: null
3092
+ };
3093
+ }
3094
+ }
3095
+ /**
3096
+ * Call once the poll that saw the run end has been committed to the builder.
3097
+ * Reports at most once per run.
3098
+ */
3099
+ function noteRunResultShown(poll) {
3100
+ try {
3101
+ if (!poll.measurement || state.reportedRuns.has(poll.runId)) return;
3102
+ state.reportedRuns.add(poll.runId);
3103
+ if (state.reportedRuns.size > MAX_REMEMBERED_RUNS) {
3104
+ const oldest = state.reportedRuns.values().next().value;
3105
+ if (oldest !== void 0) state.reportedRuns.delete(oldest);
3106
+ }
3107
+ finish(poll.measurement, "RUN_RESULT_SHOWN", "POLL");
3108
+ } catch {}
3109
+ }
3110
+
2627
3111
  // src/hooks/useNodeExecution.ts
2628
3112
  const TRIGGER_WORKFLOW = TriggerWorkflowDocument;
2629
3113
  const EXECUTE_STEP = ExecuteStepDocument;
@@ -2869,6 +3353,7 @@ function useNodeExecution() {
2869
3353
  const doPoll = async () => {
2870
3354
  if (activeRunIdRef.current !== runId) return;
2871
3355
  const startedAt = Date.now();
3356
+ const pollTiming = startRunPollTiming(runId);
2872
3357
  try {
2873
3358
  const result = await client.query({
2874
3359
  query: BuilderRunStatusDocument,
@@ -2910,6 +3395,7 @@ function useNodeExecution() {
2910
3395
  });
2911
3396
  completeExecution();
2912
3397
  cleanup();
3398
+ noteRunResultShown(pollTiming);
2913
3399
  return;
2914
3400
  }
2915
3401
  scheduleNext(startedAt);
@@ -4063,7 +4549,7 @@ function useSaveWorkflow() {
4063
4549
  const navigate = useNavigate();
4064
4550
  const { bus, workspaceId } = useFluidGridsAnalytics();
4065
4551
  const setWorkflow = useFlowStore((s) => s.actions.setWorkflow);
4066
- const performSave = useCallback(async (snapshot, silent, asNewVersion) => {
4552
+ const performSave = useCallback(async (snapshot, silent, asNewVersion, timing) => {
4067
4553
  const stillOpen = () => useFlowStore.getState().loadGeneration === snapshot.generation;
4068
4554
  try {
4069
4555
  const { workflow } = snapshot;
@@ -4102,10 +4588,13 @@ function useSaveWorkflow() {
4102
4588
  rememberRevision(savedDbId, data.updateWorkflowDefinition.revision);
4103
4589
  forgetCachedDefinition(client, savedDbId);
4104
4590
  operation = "updated";
4105
- if (!silent) toast.success("Workflow saved", {
4106
- description: `Updated version ${savedVersion}`,
4107
- dismissible: true
4108
- });
4591
+ if (!silent) {
4592
+ toast.success("Workflow saved", {
4593
+ description: `Updated version ${savedVersion}`,
4594
+ dismissible: true
4595
+ });
4596
+ timing?.shown("DRAFT");
4597
+ }
4109
4598
  } else if (isDraft && !workflow.dbId) {
4110
4599
  const { data } = throwIfResultError(await client.mutate({
4111
4600
  mutation: CreateWorkflowDefinitionDocument,
@@ -4138,10 +4627,13 @@ function useSaveWorkflow() {
4138
4627
  });
4139
4628
  if (mintedKey) navigate(`../workflow/${workflowKey}/${savedVersion}`, { replace: true });
4140
4629
  }
4141
- if (!silent) toast.success("Workflow saved", {
4142
- description: `Created version ${savedVersion}`,
4143
- dismissible: true
4144
- });
4630
+ if (!silent) {
4631
+ toast.success("Workflow saved", {
4632
+ description: `Created version ${savedVersion}`,
4633
+ dismissible: true
4634
+ });
4635
+ timing?.shown("VERSION");
4636
+ }
4145
4637
  } else {
4146
4638
  const { data } = throwIfResultError(await client.mutate({
4147
4639
  mutation: CreateWorkflowVersionDocument,
@@ -4173,10 +4665,13 @@ function useSaveWorkflow() {
4173
4665
  });
4174
4666
  navigate(`../workflow/${workflowKey}/${savedVersion}`, { replace: true });
4175
4667
  }
4176
- if (!silent) toast.success("New version created", {
4177
- description: `Saved as version ${savedVersion} (Draft)`,
4178
- dismissible: true
4179
- });
4668
+ if (!silent) {
4669
+ toast.success("New version created", {
4670
+ description: `Saved as version ${savedVersion} (Draft)`,
4671
+ dismissible: true
4672
+ });
4673
+ timing?.shown("VERSION");
4674
+ }
4180
4675
  }
4181
4676
  if (savedDbId) {
4182
4677
  notifyWorkflowSaved(workflowKey);
@@ -4229,12 +4724,14 @@ function useSaveWorkflow() {
4229
4724
  ]);
4230
4725
  return {
4231
4726
  saveToBackend: useCallback((options = {}) => {
4727
+ const silent = options.silent ?? false;
4728
+ const timing = silent ? null : startWorkflowSaveTiming();
4232
4729
  const flow = useFlowStore.getState();
4233
4730
  const snapshot = options.snapshot ?? snapshotForSave(flow.workflow, flow.loadGeneration, params);
4234
4731
  const isOpen = () => useFlowStore.getState().loadGeneration === snapshot.generation;
4235
4732
  return workflowSaveQueue.run(async () => {
4236
4733
  if (isOpen()) statusActions.beginSave();
4237
- const outcome = await performSave(snapshot, options.silent ?? false, options.asNewVersion ?? false);
4734
+ const outcome = await performSave(snapshot, silent, options.asNewVersion ?? false, timing);
4238
4735
  recordSaveOutcome(outcome, {
4239
4736
  open: isOpen(),
4240
4737
  baseline: {
@@ -8720,7 +9217,7 @@ function registerWorkflowNodeTypes(workflowNodes) {
8720
9217
 
8721
9218
  // src/components/FluidGridsProvider.tsx
8722
9219
  const FluidGridsContext = createContext(null);
8723
- function FluidGridsProvider({ apiGatewayUrl, globalApiUrl, authToken, workspaceToken, workspaceId, productId, userId, trustedOrigins, devportalBasePath, tenantId, organizationId, t, theme, auth, onEvent, workspaceClient: externalWorkspaceClient, globalClient: externalGlobalClient, apolloClient: legacyClient, children }) {
9220
+ function FluidGridsProvider({ apiGatewayUrl, globalApiUrl, authToken, workspaceToken, workspaceId, productId, userId, trustedOrigins, devportalBasePath, tenantId, organizationId, t, theme, auth, onEvent, builderTimings, workspaceClient: externalWorkspaceClient, globalClient: externalGlobalClient, apolloClient: legacyClient, children }) {
8724
9221
  validateTrustedOrigin(trustedOrigins);
8725
9222
  const [selection, setSelection] = useState(() => ({
8726
9223
  prop: productId,
@@ -8818,9 +9315,13 @@ function FluidGridsProvider({ apiGatewayUrl, globalApiUrl, authToken, workspaceT
8818
9315
  }, [globalClient]);
8819
9316
  const appliedTokens = useRef(null);
8820
9317
  const ownedHostHooks = useRef(/* @__PURE__ */ new Set());
9318
+ const timingsSet = builderTimings !== void 0;
9319
+ const timingsEnabled = builderTimings?.enabled;
9320
+ const timingsSampleRate = builderTimings?.sampleRate;
8821
9321
  useEffect(() => () => {
8822
9322
  appliedTokens.current = null;
8823
9323
  ownedHostHooks.current.clear();
9324
+ flushBuilderTimings({ keepalive: true });
8824
9325
  resetFluidGridsConfig();
8825
9326
  }, []);
8826
9327
  useEffect(() => {
@@ -8854,6 +9355,11 @@ function FluidGridsProvider({ apiGatewayUrl, globalApiUrl, authToken, workspaceT
8854
9355
  if (writes("theme", theme)) patch.theme = theme;
8855
9356
  if (writes("auth", auth)) patch.auth = auth;
8856
9357
  if (writes("onEvent", onEvent)) patch.onEvent = onEvent;
9358
+ const timings = !timingsSet ? void 0 : {
9359
+ enabled: timingsEnabled,
9360
+ sampleRate: timingsSampleRate
9361
+ };
9362
+ if (writes("builderTimings", timings)) patch.builderTimings = timings;
8857
9363
  setFluidGridsConfig(patch);
8858
9364
  }, [
8859
9365
  apiGatewayUrl,
@@ -8868,7 +9374,10 @@ function FluidGridsProvider({ apiGatewayUrl, globalApiUrl, authToken, workspaceT
8868
9374
  organizationId,
8869
9375
  theme,
8870
9376
  auth,
8871
- onEvent
9377
+ onEvent,
9378
+ timingsSet,
9379
+ timingsEnabled,
9380
+ timingsSampleRate
8872
9381
  ]);
8873
9382
  const contextValue = useMemo(() => {
8874
9383
  return {
@@ -8916,4 +9425,4 @@ function useFluidGridsContext() {
8916
9425
  return context;
8917
9426
  }
8918
9427
 
8919
- export { resolveLoadOptionsSpec as $, structuredParameterType as $t, describeRunError as A, useMarkdownRenderer as An, useEditLeaseStore as At, coerceNumber as B, EDIT_SESSION_ID as Bt, getNodeMetadata as C, isOptionalAdapter as Cn, classifyCreateRefusal as Ct, runQuestions as D, getNodeDetail as Dn, useSaveStatusStore as Dt, isFailedStatus as E, replaceAdapterConnections as En, saveIndicatorOf as Et, useInsertNode as F, phaseAfterAcquire as Ft, paramsFromOperation as G, rememberRevision as Gt, nodeSubtitle as H, rememberSessionForReload as Ht, MissingParametersDialog as I, phaseAfterTakeOver as It, resolveUiSpec as J, formatElapsedMs as Jt, selectedOperationOf as K, revisionOf as Kt, useRunGuard as L, releasesOnClose as Lt, SENSITIVE_PARAM as M, isLocked as Mt, buildOperationSeed as N, leaseCallQueue as Nt, runStepQuestions as O, buildStickyNode as On, workflowSaveQueue as Ot, createConfiguredNode as P, leaseCallSequence as Pt, optionListValues as Q, parseParameterValue as Qt, workflowParameterIssues as R, shouldReleaseForIdle as Rt, fetchAllNodeEndpointConfigs as S, connectionsForAdapter as Sn, builderPathOf as St, failureQuestions as T, newConnectionProviderKey as Tn, refusalOfQuota as Tt, nodeTitle as U, sessionBeforeReload as Ut, fixedParameterState as V, forgetSessionForReload as Vt, optionText as W, rememberOwnStatusChange as Wt, isStringOptionList as X, runDurationMs as Xt, stripSubmitActions as Y, nodeStateDurationMs as Yt, optionListText as Z, formatParameterValue as Zt, registerNodeManifests as _, NodePaletteEntriesDocument as _n, watchLeavingLosesChanges as _t, NODES_METADATA as a, useCanvasEdges as an, latestNodeLog as at, scheduleNodePaletteLoad as b, BuilderRunNodeDetailsDocument as bn, useSaveWorkflow as bt, ensureInstalledNodeTypesLoaded as c, loadDefinitionJson as cn, useGuardedNavigate as ct, ensureNodeTypesLoaded as d, declaredSignals as dn, departingSave as dt, fieldsFromValue as en, ConditionTreeBuilder as et, ensureRegistryNodeTypesLoaded as f, durableInterfaceOf as fn, editStateFor as ft, refetchStoreNodes as g, signalPayloadCard as gn, touchesSavedFields as gt, prefetchNodeType as h, runSignalTargets as hn, savedEverythingBeforeLeaving as ht, AVAILABLE_NODES as i, openRunQuotaUpgradePrompt as in, parseMappingValue as it, describeRunStep as j, bannerOf as jt, describeRun as k, loadMarkdown as kn, useEditLeaseLocked as kt, ensureNodeConfigsLoaded as l, useCodeWorkflowInterface as ln, useManualSave as lt, onNodeTypesUpdate as m, payloadFromCardValues as mn, leavingLosesChanges as mt, FluidGridsProvider as n, isParamVisible as nn, casesFromRules as nt, NODE_CONFIGS as o, useNodeRegistryRevision as on, boundFieldsOf as ot, isNodeConfigsInitialized as p, parseRawSignalPayload as pn, editingLeaseLocked as pt, useNodeConfig as q, useNodeExecution as qt, useFluidGridsContext as r, useFluidGridsAnalytics as rn, FieldTree as rt, NODE_TYPES as s, clearCodeWorkflowDefinitionCache as sn, missingRequiredParameters as st, FluidGridsContext as t, resolveNodeOperation as tn, SwitchRulesEditor as tt, ensureNodeTypeReady as u, canSignalRun as un, autosaveAllowedFor as ut, registerWorkflowNodeTypes as v, NodeManifestsDocument as vn, isFlowComplete as vt, useLatestFailedRun as w, matchesAdapterProvider as wn, createThenOpen as wt, GetMyNodeInstallationsDocument as x, SaveWorkflowDraftDocument as xn, blankWorkflowCreateInput as xt, registryNodeData as y, BuilderRunStatusDocument as yn, useFlowValidator as yt, asRecord as z, tickAction as zt };
9428
+ export { resolveLoadOptionsSpec as $, noteWorkflowApplied as $t, describeRunError as A, isOptionalAdapter as An, useEditLeaseStore as At, coerceNumber as B, EDIT_SESSION_ID as Bt, getNodeMetadata as C, NodePaletteEntriesDocument as Cn, classifyCreateRefusal as Ct, runQuestions as D, SaveWorkflowDraftDocument as Dn, useSaveStatusStore as Dt, isFailedStatus as E, BuilderRunNodeDetailsDocument as En, saveIndicatorOf as Et, useInsertNode as F, buildStickyNode as Fn, phaseAfterAcquire as Ft, paramsFromOperation as G, rememberRevision as Gt, nodeSubtitle as H, rememberSessionForReload as Ht, MissingParametersDialog as I, loadMarkdown as In, phaseAfterTakeOver as It, resolveUiSpec as J, cancelPendingBuilderLoad as Jt, selectedOperationOf as K, revisionOf as Kt, useRunGuard as L, useMarkdownRenderer as Ln, releasesOnClose as Lt, SENSITIVE_PARAM as M, newConnectionProviderKey as Mn, isLocked as Mt, buildOperationSeed as N, replaceAdapterConnections as Nn, leaseCallQueue as Nt, runStepQuestions as O, ReportBuilderTimingsDocument as On, workflowSaveQueue as Ot, createConfiguredNode as P, getNodeDetail as Pn, leaseCallSequence as Pt, optionListValues as Q, noteCanvasInit as Qt, workflowParameterIssues as R, shouldReleaseForIdle as Rt, fetchAllNodeEndpointConfigs as S, signalPayloadCard as Sn, builderPathOf as St, failureQuestions as T, BuilderRunStatusDocument as Tn, refusalOfQuota as Tt, nodeTitle as U, sessionBeforeReload as Ut, fixedParameterState as V, forgetSessionForReload as Vt, optionText as W, rememberOwnStatusChange as Wt, isStringOptionList as X, markBuilderNavigation as Xt, stripSubmitActions as Y, flushBuilderTimings as Yt, optionListText as Z, noteBuilderLoadAbandoned as Zt, registerNodeManifests as _, declaredSignals as _n, watchLeavingLosesChanges as _t, NODES_METADATA as a, structuredParameterType as an, latestNodeLog as at, scheduleNodePaletteLoad as b, payloadFromCardValues as bn, useSaveWorkflow as bt, ensureInstalledNodeTypesLoaded as c, isParamVisible as cn, useGuardedNavigate as ct, ensureNodeTypesLoaded as d, useCanvasEdges as dn, departingSave as dt, formatElapsedMs as en, ConditionTreeBuilder as et, ensureRegistryNodeTypesLoaded as f, useNodeRegistryRevision as fn, editStateFor as ft, refetchStoreNodes as g, canSignalRun as gn, touchesSavedFields as gt, prefetchNodeType as h, useCodeWorkflowInterface as hn, savedEverythingBeforeLeaving as ht, AVAILABLE_NODES as i, parseParameterValue as in, parseMappingValue as it, describeRunStep as j, matchesAdapterProvider as jn, bannerOf as jt, describeRun as k, connectionsForAdapter as kn, useEditLeaseLocked as kt, ensureNodeConfigsLoaded as l, useFluidGridsAnalytics as ln, useManualSave as lt, onNodeTypesUpdate as m, loadDefinitionJson as mn, leavingLosesChanges as mt, FluidGridsProvider as n, runDurationMs as nn, casesFromRules as nt, NODE_CONFIGS as o, fieldsFromValue as on, boundFieldsOf as ot, isNodeConfigsInitialized as p, clearCodeWorkflowDefinitionCache as pn, editingLeaseLocked as pt, useNodeConfig as q, useNodeExecution as qt, useFluidGridsContext as r, formatParameterValue as rn, FieldTree as rt, NODE_TYPES as s, resolveNodeOperation as sn, missingRequiredParameters as st, FluidGridsContext as t, nodeStateDurationMs as tn, SwitchRulesEditor as tt, ensureNodeTypeReady as u, openRunQuotaUpgradePrompt as un, autosaveAllowedFor as ut, registerWorkflowNodeTypes as v, durableInterfaceOf as vn, isFlowComplete as vt, useLatestFailedRun as w, NodeManifestsDocument as wn, createThenOpen as wt, GetMyNodeInstallationsDocument as x, runSignalTargets as xn, blankWorkflowCreateInput as xt, registryNodeData as y, parseRawSignalPayload as yn, useFlowValidator as yt, asRecord as z, tickAction as zt };