@burdenoff/fluidgrids-fe-sdk 2026.1111.13 → 2026.1111.15

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 (43) hide show
  1. package/README.md +41 -0
  2. package/dist/{ExecutionDetailPage-CDkJeeu2.js → ExecutionDetailPage-DO38vZ_F.js} +4 -4
  3. package/dist/{FluidGridsProvider-CDZjKmfD.js → FluidGridsProvider-B9RR_CI_.js} +237 -325
  4. package/dist/{HistoryPage-DnVGN_72.js → HistoryPage-CA42pU85.js} +1 -1
  5. package/dist/{InsightsPage-CGRpZtGu.js → InsightsPage-CBoN_Mj9.js} +2 -2
  6. package/dist/{ManagedAiPolicyAuthority-DbJBledZ.js → ManagedAiPolicyAuthority-CKihmbJE.js} +2 -2
  7. package/dist/{MissingNodesInstallModal-Ca4f--lw.js → MissingNodesInstallModal-Dm0nMBXM.js} +1 -1
  8. package/dist/{TemplateConfigurationModal-ChQsXf0-.js → TemplateConfigurationModal-Bs_V-E4u.js} +1 -1
  9. package/dist/{TemplateDetailPanel-C0YiVdub.js → TemplateDetailPanel-MlT39VLG.js} +1 -1
  10. package/dist/{TemplatesPage-QXtq6mI3.js → TemplatesPage-CHVpWBuw.js} +5 -4
  11. package/dist/{WorkflowSearchRedirect-B4nHALJg.js → WorkflowSearchRedirect-3gyHcYY2.js} +38 -51
  12. package/dist/{WorkflowShareDialog-ByTSWwwR.js → WorkflowShareDialog-0Ai1HED-.js} +2 -1
  13. package/dist/{WorkflowsList-B9F2e8M6.js → WorkflowsList-CJ3KmMHX.js} +5 -4
  14. package/dist/agent-tools.d.ts +3 -0
  15. package/dist/agent-tools.js +5 -0
  16. package/dist/{agentTools-C0g2OWvI.js → agentTools-B1IK1JEO.js} +2 -2
  17. package/dist/{canvasNoteTools-BUWY18XK.js → canvasNoteTools-eewVHVuy.js} +3 -2
  18. package/dist/executions.js +1 -1
  19. package/dist/{flow-builder-BvCQAGDR.js → flow-builder-C_3sY3pZ.js} +54 -209
  20. package/dist/fluidgridsEvents-CNdcrUNN.js +310 -0
  21. package/dist/history.js +1 -1
  22. package/dist/index-CHeY7_A1.d.ts +105 -0
  23. package/dist/{index-CLqh2u28.d.ts → index-DRf25-D3.d.ts} +7 -105
  24. package/dist/index.d.ts +3 -2
  25. package/dist/index.js +21 -946
  26. package/dist/marksStore-DGCXjTmZ.js +151 -0
  27. package/dist/{node-detail-view-CPD_NSZc.js → node-detail-view-CAws5qjg.js} +3 -3
  28. package/dist/observability.d.ts +1 -1
  29. package/dist/observability.js +1 -1
  30. package/dist/{quick-config-panel-DHkYGaCL.js → quick-config-panel-DOzNkSVV.js} +2 -2
  31. package/dist/settings.js +1 -1
  32. package/dist/templates.js +1 -1
  33. package/dist/uiMarkTools-nlmzsHQM.js +937 -0
  34. package/dist/{useExecutions-BqoD7XWi.js → useExecutions-DkS0FTfw.js} +2 -1
  35. package/dist/{useObservability-Cs-5_NHh.js → useObservability-BkxhHZsX.js} +2 -1
  36. package/dist/{useRunHistory-CEL-CIz-.js → useRunHistory-DHehG09Z.js} +1 -1
  37. package/dist/{useWorkflows-Bwpvfdgv.js → useWorkflows-DyhtoVwp.js} +25 -5
  38. package/dist/workflow-builder.js +2 -2
  39. package/dist/workflow-route.d.ts +33 -0
  40. package/dist/workflow-route.js +4 -0
  41. package/dist/workflowRouteData-BkfVOc-O.js +169 -0
  42. package/dist/workflows-list.js +1 -1
  43. package/package.json +9 -1
package/README.md CHANGED
@@ -270,6 +270,47 @@ import {
270
270
  - Nodes cannot be dragged, connected, selected or deleted; pan and zoom work.
271
271
  - `prefers-reduced-motion: reduce` turns every animation off.
272
272
 
273
+ ## Starting the builder's data early (optional)
274
+
275
+ On a cold load of a builder address the builder's own code takes a while to
276
+ arrive. A host can start the builder's read as soon as it knows the route and the
277
+ person's workspace token, and the builder takes the answer when it opens instead
278
+ of asking again. `./workflow-route` imports nothing else from the SDK, so it can
279
+ sit on the host's entry.
280
+
281
+ ```ts
282
+ import {
283
+ matchWorkflowBuilderRoute,
284
+ prefetchWorkflowForBuilder,
285
+ } from "@burdenoff/fluidgrids-fe-sdk/workflow-route";
286
+
287
+ const route = matchWorkflowBuilderRoute(location.pathname, "/workflows");
288
+ if (route && workspaceId && workspaceToken) {
289
+ prefetchWorkflowForBuilder({
290
+ ...route,
291
+ workspaceId, // the builder takes the read only for the same workspace
292
+ // The host's own GraphQL fetch with the person's tokens. Send it on its own
293
+ // request: a batch window would give back what starting early gains.
294
+ request: ({ operationName, query, variables }) =>
295
+ hostGraphqlFetch({ operationName, query, variables, batch: false }),
296
+ });
297
+ }
298
+ ```
299
+
300
+ - A read is handed to the builder once, for the same workspace, workflow key and
301
+ version, and only within 15 seconds of its start (`PREFETCHED_WORKFLOW_TTL_MS`).
302
+ - A read that fails, answers with errors or answers for another workflow is not
303
+ used: the builder sends its own read and reports the problem as before.
304
+ - Without a started read the builder sends its read itself, on its own request
305
+ (`context: { sendUnbatched: true }`), so a batching host client does not hold it.
306
+
307
+ ## Agent tools (optional)
308
+
309
+ `./agent-tools` carries FluidGrids' AI agent tools (`createFluidGridsAgentTools`)
310
+ and the assistant's point-at tools and callouts (`createUiMarkTools`,
311
+ `AgentCalloutOverlay`) without the rest of the SDK, for a shell that mounts them on
312
+ every page. The main entry still exports them.
313
+
273
314
  ## Styling
274
315
 
275
316
  The SDK uses Tailwind CSS for styling. Make sure you have Tailwind configured in your project, or import the pre-built styles:
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import { $r as WorkflowRunMetadataDocument, A as CreateWorkerTokenDocument, An as SetWorkerTokenConnectionAllowlistDocument, Bi as describeOperationError, Gn as TaskQueuesDocument, Mn as SetWorkflowRunVersioningOverrideDocument, Oi as getFluidGridsClient, Sn as RunLogsDocument, Sr as WorkflowBatchOperationUpdatedDocument, U as DeleteTaskQueueDocument, Ui as throwIfResultError, W as DeleteWorkerTokenDocument, Wn as TaskQueueStatsDocument, Xr as WorkflowRunHierarchyDocument, aa as useExecutionsStore, bn as RunLogAppendedDocument, c as AgentTraceDocument, dn as RotateWorkerTokenDocument, dt as ExplainRunDocument, ei as WorkflowRunPendingDocument, fn as RunAiUsageDocument, hr as WorkerTokensDocument, ia as DEFAULT_EXECUTIONS_FILTER, k as CreateTaskQueueDocument, ki as getFluidGridsClientSafe, nt as DurableParityRunFieldsDocument, oa as __exportAll, or as UpdateTaskQueueDocument, qi as getFluidGridsConfig, ri as WorkflowRunsCountDocument, s as AgentStepUpdatedDocument, wi as WorkflowWorkersDocument } from "./node-endpoint-configs-DHFGA5MQ.js";
3
- import { $n as useWorkflowTestsEnabled, Fn as durableInterfaceOf, Kn as useDurableFunctionNodesEnabled, Nn as canSignalRun, Rn as runSignalTargets, Zn as usePhaseCFlags, en as formatElapsedMs, nn as runDurationMs, qn as useDurableParityEnabled, tn as nodeStateDurationMs } from "./FluidGridsProvider-CDZjKmfD.js";
3
+ import { Ln as usePhaseCFlags, Mn as useDurableFunctionNodesEnabled, Nn as useDurableParityEnabled, an as runDurationMs, in as nodeStateDurationMs, rn as formatElapsedMs, wn as runSignalTargets, xn as durableInterfaceOf, yn as canSignalRun, zn as useWorkflowTestsEnabled } from "./FluidGridsProvider-B9RR_CI_.js";
4
4
  import { r as useTr } from "./TranslationBridge-Da-TPgQm.js";
5
- import { h as useWorkflowDefinitions, v as useWorkflowVersions } from "./useWorkflows-Bwpvfdgv.js";
5
+ import { h as useWorkflowDefinitions, v as useWorkflowVersions } from "./useWorkflows-DyhtoVwp.js";
6
6
  import { $u as ErrorType, L as AgentStepKind, LF as WorkflowQueryRejectCondition, RF as WorkflowResetType, bF as WorkflowBatchOperationType, hI as FLUIDGRIDS_PERMISSIONS, tI as WorkflowUpdateWaitFor, vI as SdkPermissionButton, xI as useFluidGridsPermission, yP as VersioningBehavior } from "./graphql-types-XcDLtFwU.js";
7
- import { _ as statusCountFilter, c as OPERATORS_BY_TYPE, d as STATUS_COUNT_GROUP_BY, f as callbackTone, g as shortRunId, h as runChainLinks, i as useExecutionStats, l as buildSearchAttributeFilter, m as parseMetadataDefinition, n as useExecution, o as useExecutionsWithStore, p as overrideRequestOf, r as useExecutionActions, s as EMPTY_SEARCH_FILTER, t as useAutoRefresh, u as searchFilterConflicts, v as statusCountsOf, y as validateDateRange } from "./useExecutions-BqoD7XWi.js";
7
+ import { _ as statusCountFilter, c as OPERATORS_BY_TYPE, d as STATUS_COUNT_GROUP_BY, f as callbackTone, g as shortRunId, h as runChainLinks, i as useExecutionStats, l as buildSearchAttributeFilter, m as parseMetadataDefinition, n as useExecution, o as useExecutionsWithStore, p as overrideRequestOf, r as useExecutionActions, s as EMPTY_SEARCH_FILTER, t as useAutoRefresh, u as searchFilterConflicts, v as statusCountsOf, y as validateDateRange } from "./useExecutions-DkS0FTfw.js";
8
8
  import { n as useFluidGridsPageControls } from "./pageControlsBridge-0pX9s-3k.js";
9
9
  import { t as executionsControls } from "./pageControlSpecs-DZJ9K37m.js";
10
10
  import { t as FluidGridsDocsLink } from "./FluidGridsDocsLink-JxkBpOeb.js";
@@ -13,7 +13,7 @@ import { C as useAvailableTags, _ as buildNodeDisplayMap, b as EntityTagPicker,
13
13
  import { t as AiCreditBalanceSlot } from "./aiCreditsBridge-BuE92tKo.js";
14
14
  import { a as fetchRunFailureClusters, i as dismissRunFailureCluster, o as runListFilterFromSearch, r as OPEN_STATUSES, s as runListLinkKey, t as BUCKET_LABELS } from "./FailureTriagePanel-BHiduL7A.js";
15
15
  import { a as encodedPayloadBytes, f as EffectBadge, h as useRunPolicyDecisions, i as decodePayloads, l as formatBudgetUsd, n as checkCodecServerUrl, o as isEncodedPayload, r as containsEncodedPayload, t as CodecServerError } from "./codec-client-DstqyzTN.js";
16
- import { a as useDurableRunFields, i as useDeterminismStatus, n as SignalRunDialog, o as useRunStackTrace, r as terminateDurableRun, s as RunHistoryView, t as useRunHistory } from "./useRunHistory-CEL-CIz-.js";
16
+ import { a as useDurableRunFields, i as useDeterminismStatus, n as SignalRunDialog, o as useRunStackTrace, r as terminateDurableRun, s as RunHistoryView, t as useRunHistory } from "./useRunHistory-DHehG09Z.js";
17
17
  import { a as formatTokens, d as formatMicroUsd, o as modelLabel, r as aiCost } from "./ai-usage-D5p7ZeRR.js";
18
18
  import { useCallback, useEffect, useMemo, useRef, useState } from "react";
19
19
  import { Link, useNavigate, useParams, useSearchParams } from "react-router";