@burdenoff/fluidgrids-fe-sdk 2026.1112.10 → 2026.1113.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.
- package/dist/{AiStudioPage-Q3455WO6.js → AiStudioPage-D3MAk-bs.js} +5 -5
- package/dist/{DataSinkDashboardPage-B5bqPnUn.js → DataSinkDashboardPage-Dc2QuJbL.js} +1 -1
- package/dist/{DataTablesPage-Zz23QZQp.js → DataTablesPage-Cv4veaKK.js} +3 -3
- package/dist/{EntityTagPicker-CuZAMby_.js → EntityTagPicker-D8ws706D.js} +1 -1
- package/dist/{ExecutionDetailPage-UyXErYuS.js → ExecutionDetailPage-CTVGE-d-.js} +168 -24
- package/dist/{ExecutionsListPage-CUJQA0Vk.js → ExecutionsListPage-J0sJPuoM.js} +8 -8
- package/dist/{FailureTriagePanel-BjatYyAa.js → FailureTriagePanel-BbYFYeV_.js} +1 -1
- package/dist/{FluidGridsProvider-CGi9a1So.js → FluidGridsProvider-C4FVNz0n.js} +1 -1
- package/dist/{HistoryPage-DLqmeQ12.js → HistoryPage-B9XcTPrO.js} +2 -2
- package/dist/{InsightsPage-CqtPCpj7.js → InsightsPage-DFOltjyj.js} +3 -3
- package/dist/{MissingNodesInstallModal-Df4fEAnr.js → MissingNodesInstallModal-D8H-YNCJ.js} +1 -1
- package/dist/{OpenTemplateAsCodeButton-BmuHhDRr.js → OpenTemplateAsCodeButton-hH26HQCk.js} +1 -1
- package/dist/{PaidTemplateConfirm-BTrK35af.js → PaidTemplateConfirm-DoKWMBtR.js} +1 -1
- package/dist/{SettingsPage-CVvaQ_g9.js → SettingsPage-DEKPCVVP.js} +5 -5
- package/dist/{TagFilterSelect-DcusTt1p.js → TagFilterSelect-CwM2-DU6.js} +1 -1
- package/dist/{TaskQueuesPage-C2dkenVF.js → TaskQueuesPage-Dhi6SIT4.js} +1 -1
- package/dist/{TemplateCard-DFbYdC2c.js → TemplateCard-DVSd_4zJ.js} +3 -3
- package/dist/{TemplateConfigurationModal-Dw2UgWYF.js → TemplateConfigurationModal-BKi1z7z7.js} +2 -2
- package/dist/{TemplateDetailPanel-DDySr7_1.js → TemplateDetailPanel-DK1gF7P5.js} +1 -1
- package/dist/{TemplatePreview-D8zWdTGv.js → TemplatePreview-DuSX2Q7H.js} +5 -5
- package/dist/{TemplatesPage-XCwxJjN6.js → TemplatesPage-CAWHh61l.js} +5 -5
- package/dist/{VariablesPage-DpiLh99E.js → VariablesPage-D7CoatWf.js} +1 -1
- package/dist/{VersionDiffDialog-c27yet_-.js → VersionDiffDialog-DGwysiyE.js} +1 -1
- package/dist/{WorkflowBuilder-BaNAX7Nk.js → WorkflowBuilder-BJgqDboZ.js} +3 -3
- package/dist/{WorkflowBuilder-CXqwzR7a.js → WorkflowBuilder-DAeoQi5E.js} +8 -8
- package/dist/{WorkflowProposalCard-BvmJ5ea8.js → WorkflowProposalCard-DGMdZC4R.js} +191 -4
- package/dist/{WorkflowSearchRedirect-DsQ71VcC.js → WorkflowSearchRedirect-CMEvd_AR.js} +1 -1
- package/dist/{WorkflowShareDialog-BRwTF9QB.js → WorkflowShareDialog-BgHRsDP0.js} +1 -1
- package/dist/{WorkflowsList-DQW-WLl5.js → WorkflowsList-CcQPxWKL.js} +7 -7
- package/dist/{agentTools-edsllozS.js → agentTools-DKpNKztf.js} +3 -3
- package/dist/{api-m8hX_l2k.js → api-DQtHXbIg.js} +1 -1
- package/dist/{api-Dw8nfVRD.js → api-MeAm6g7E.js} +1 -1
- package/dist/{canvasNoteTools-DzNTcQGo.js → canvasNoteTools-C_AN79m0.js} +2 -2
- package/dist/{code-editor-field-B2l-B8in.js → code-editor-field-Dt6KNWwN.js} +1 -1
- package/dist/executions.js +2 -2
- package/dist/{flow-builder-B2JGvYeK.js → flow-builder-D3Hl2AFk.js} +511 -258
- package/dist/{graphql-operation-types-DZVhCBEi.js → graphql-operation-types-C9qbvRa8.js} +306 -1
- package/dist/history.js +1 -1
- package/dist/{index-ChYBGz_a.d.ts → index-CWcP-tG1.d.ts} +62 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +32 -32
- package/dist/{node-detail-view-BDXhEGVD.js → node-detail-view-bVLeYarT.js} +8 -8
- package/dist/{node-editor-tab-body-DBnsqYUK.js → node-editor-tab-body-JHHVtQgR.js} +2 -2
- package/dist/observability.d.ts +1 -1
- package/dist/observability.js +2 -2
- package/dist/{popover-Cl7_tXph.js → popover-Xx3gN7vg.js} +2 -2
- package/dist/{quick-config-panel-C_Z0RXEG.js → quick-config-panel-BvVQXuIL.js} +3 -3
- package/dist/{schedule-panel-CFAKmrBH.js → schedule-panel-DCb40TPN.js} +191 -75
- package/dist/settings.js +1 -1
- package/dist/{sidebar-node-editor-DZZlDElK.js → sidebar-node-editor-DxCWFZG2.js} +3 -3
- package/dist/templates.js +2 -2
- package/dist/{useAgentDefinitions-B4sw7bLw.js → useAgentDefinitions-_hgNCK1A.js} +1 -1
- package/dist/{useDurableParity-jtqJF547.js → useDurableParity-CcLeCDfv.js} +2 -2
- package/dist/{useEntityTags-BpDeLhzV.js → useEntityTags-Db4Pc8_M.js} +1 -1
- package/dist/{useExecutions-D2iKpt1Z.js → useExecutions-DOpG1pUQ.js} +2 -2
- package/dist/{useObservability-DIhzs9F-.js → useObservability-rQmwhoZZ.js} +1 -1
- package/dist/{useRunHistory-BhVY82Pg.js → useRunHistory-COn6dl7l.js} +2 -2
- package/dist/{useWorkflowCodeExport-BXy4NPsE.js → useWorkflowCodeExport-ZoUJKRSK.js} +2 -2
- package/dist/{useWorkflowOrganization-C4y6BOnN.js → useWorkflowOrganization-QxVePSkk.js} +1 -1
- package/dist/{useWorkflows-Clsu0o8t.js → useWorkflows-jOW60YmD.js} +2 -2
- package/dist/workflow-builder.js +4 -4
- package/dist/{workflow-code-transfer-DemcCpOv.js → workflow-code-transfer-l9wO34S0.js} +1 -1
- package/dist/workflow-pages.d.ts +1 -1
- package/dist/workflow-pages.js +16 -16
- package/dist/workflows-list.js +1 -1
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as __exportAll } from "./rolldown-runtime-hDbaFkMy.js";
|
|
3
|
-
import { h as useWorkflowDefinitions, l as useLazyWorkflowDefinition, s as useDuplicateWorkflow } from "./useWorkflows-
|
|
4
|
-
import { C as useGlobalStoreClient, m as useWorkflowTemplates, r as isPaidTemplate, s as useTemplateImportFlow, t as TemplateCard } from "./TemplateCard-
|
|
3
|
+
import { h as useWorkflowDefinitions, l as useLazyWorkflowDefinition, s as useDuplicateWorkflow } from "./useWorkflows-jOW60YmD.js";
|
|
4
|
+
import { C as useGlobalStoreClient, m as useWorkflowTemplates, r as isPaidTemplate, s as useTemplateImportFlow, t as TemplateCard } from "./TemplateCard-DVSd_4zJ.js";
|
|
5
5
|
import { kI as WorkflowStatus } from "./graphql-types-v6CTGwA0.js";
|
|
6
6
|
import { i as SdkPermissionButton, t as FLUIDGRIDS_PERMISSIONS } from "./constants-dcxg6zG6.js";
|
|
7
|
-
import { S as QuotaExhaustedDialog } from "./workflow-code-transfer-
|
|
7
|
+
import { S as QuotaExhaustedDialog } from "./workflow-code-transfer-l9wO34S0.js";
|
|
8
8
|
import { r as useTr } from "./TranslationBridge-Da-TPgQm.js";
|
|
9
|
-
import { O as MyWorkflowTemplateSubmissionsDocument, P as WithdrawWorkflowTemplateSubmissionDocument, j as SubmitWorkflowTemplateDocument, t as FluidGridsContext, yn as useFluidGridsAnalytics } from "./FluidGridsProvider-
|
|
9
|
+
import { O as MyWorkflowTemplateSubmissionsDocument, P as WithdrawWorkflowTemplateSubmissionDocument, j as SubmitWorkflowTemplateDocument, t as FluidGridsContext, yn as useFluidGridsAnalytics } from "./FluidGridsProvider-C4FVNz0n.js";
|
|
10
10
|
import { a as emitTemplateUsed } from "./fluidgridsEvents-Dm5CaHtr.js";
|
|
11
11
|
import { n as useFluidGridsPageControls } from "./pageControlsBridge-0pX9s-3k.js";
|
|
12
12
|
import { r as templatesControls } from "./pageControlSpecs-DZJ9K37m.js";
|
|
@@ -16,7 +16,7 @@ import { _ as throwIfResultError, m as describeOperationError, x as getFluidGrid
|
|
|
16
16
|
import { n as formatRunVersion } from "./run-display-BycKYSU0.js";
|
|
17
17
|
import { n as useNavigationV2 } from "./useNavigationV2-C2WeqN7d.js";
|
|
18
18
|
import { t as TechnicalDetails } from "./TechnicalDetails-D4xGy201.js";
|
|
19
|
-
import { t as PaidTemplateConfirm } from "./PaidTemplateConfirm-
|
|
19
|
+
import { t as PaidTemplateConfirm } from "./PaidTemplateConfirm-DoKWMBtR.js";
|
|
20
20
|
import { t as cn } from "./cn-QqidFIgr.js";
|
|
21
21
|
import { useCallback, useContext, useEffect, useMemo, useState } from "react";
|
|
22
22
|
import { useNavigate } from "react-router";
|
|
@@ -5,7 +5,7 @@ import { n as useNavigationV2 } from "./useNavigationV2-C2WeqN7d.js";
|
|
|
5
5
|
import { m as describeOperationError } from "./client-C9XSzSXr.js";
|
|
6
6
|
import { t as ConfirmActionDialog } from "./ConfirmActionDialog-D9Pir3bc.js";
|
|
7
7
|
import { t as Disclosure } from "./Disclosure-DQiUKrqd.js";
|
|
8
|
-
import { a as useWorkflowProjects } from "./useWorkflowOrganization-
|
|
8
|
+
import { a as useWorkflowProjects } from "./useWorkflowOrganization-QxVePSkk.js";
|
|
9
9
|
import { i as SdkPermissionButton, t as FLUIDGRIDS_PERMISSIONS } from "./constants-dcxg6zG6.js";
|
|
10
10
|
import { a as useSecretsProviderConfigs, c as useVariables, i as useSaveSecretsProviderConfig, n as useDeleteVariable, o as useTestSecretsProviderConnection, r as useRevealVariableValue, s as useUpdateVariable, t as useCreateVariable } from "./useVariables-2ddyJX4a.js";
|
|
11
11
|
import { useCallback, useEffect, useRef, useState } from "react";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { r as useTr } from "./TranslationBridge-Da-TPgQm.js";
|
|
3
3
|
import { _ as throwIfResultError, m as describeOperationError, n as getFluidGridsClient } from "./client-C9XSzSXr.js";
|
|
4
|
-
import {
|
|
4
|
+
import { Ar as WorkflowDefinitionDocument, wi as WorkflowVersionDiffDocument } from "./graphql-operation-types-C9qbvRa8.js";
|
|
5
5
|
import { t as canvasFromDefinition } from "./definition-canvas-Bshn_dSP.js";
|
|
6
6
|
import { memo, useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
7
7
|
import { Background, Controls, Handle, MiniMap, Position, ReactFlow, ReactFlowProvider } from "@xyflow/react";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { n as FluidGridsProvider, xn as useCanvasEdges } from "./FluidGridsProvider-
|
|
2
|
+
import { n as FluidGridsProvider, xn as useCanvasEdges } from "./FluidGridsProvider-C4FVNz0n.js";
|
|
3
3
|
import { H as useFlowStore } from "./node-operation-selection-DAbS6jSY.js";
|
|
4
4
|
import { t as Button } from "./button-DG7y_FVJ.js";
|
|
5
5
|
import { d as Input } from "./dialog-Cjb4lB4D.js";
|
|
6
|
-
import { w as Card } from "./TemplateCard-
|
|
6
|
+
import { w as Card } from "./TemplateCard-DVSd_4zJ.js";
|
|
7
7
|
import { t as cn } from "./cn-QqidFIgr.js";
|
|
8
8
|
import { r as useTr } from "./TranslationBridge-Da-TPgQm.js";
|
|
9
|
-
import { _ as useNodeSelectedEvent, v as FluidGridsMark } from "./flow-builder-
|
|
9
|
+
import { _ as useNodeSelectedEvent, v as FluidGridsMark } from "./flow-builder-D3Hl2AFk.js";
|
|
10
10
|
import { useCallback, useEffect, useRef, useState } from "react";
|
|
11
11
|
import { Background, Controls, Handle, MarkerType, MiniMap, Position, ReactFlow, ReactFlowProvider, useReactFlow } from "@xyflow/react";
|
|
12
12
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as __exportAll } from "./rolldown-runtime-hDbaFkMy.js";
|
|
3
|
-
import { d as releaseLeaseKeptForReload, f as useWorkflowReloadStore, t as FlowBuilderPage } from "./flow-builder-
|
|
3
|
+
import { d as releaseLeaseKeptForReload, f as useWorkflowReloadStore, t as FlowBuilderPage } from "./flow-builder-D3Hl2AFk.js";
|
|
4
4
|
import { n as registerLiveCanvasHandler } from "./liveCanvas-D5ytXDp8.js";
|
|
5
5
|
import { _ as throwIfResultError, n as getFluidGridsClient, x as getFluidGridsConfig } from "./client-C9XSzSXr.js";
|
|
6
|
-
import {
|
|
6
|
+
import { Ar as WorkflowDefinitionDocument } from "./graphql-operation-types-C9qbvRa8.js";
|
|
7
7
|
import { r as useTr } from "./TranslationBridge-Da-TPgQm.js";
|
|
8
|
-
import { At as classifyCreateRefusal, Ot as blankWorkflowCreateInput, Pt as useSaveStatusStore, Q as paramsFromOperation, Qt as rememberRevision, V as createConfiguredNode, _n as resolveNodeOperation, cn as workflowFingerprint, g as registerWorkflowNodeTypes, h as registerNodeManifests, m as refetchStoreNodes, o as NODE_CONFIGS, rn as codeBuildIdOf, u as ensureNodeTypesLoaded } from "./FluidGridsProvider-
|
|
8
|
+
import { At as classifyCreateRefusal, Ot as blankWorkflowCreateInput, Pt as useSaveStatusStore, Q as paramsFromOperation, Qt as rememberRevision, V as createConfiguredNode, _n as resolveNodeOperation, cn as workflowFingerprint, g as registerWorkflowNodeTypes, h as registerNodeManifests, m as refetchStoreNodes, o as NODE_CONFIGS, rn as codeBuildIdOf, u as ensureNodeTypesLoaded } from "./FluidGridsProvider-C4FVNz0n.js";
|
|
9
9
|
import { F as mergeStickyNotes, H as useFlowStore } from "./node-operation-selection-DAbS6jSY.js";
|
|
10
10
|
import { t as canvasFromDefinition } from "./definition-canvas-Bshn_dSP.js";
|
|
11
|
-
import { l as useLazyWorkflowDefinition, n as useCreateWorkflow } from "./useWorkflows-
|
|
12
|
-
import { S as useInstalledNodes, c as buildNodeCheck, l as buildRequiredNodeTypes, u as getWorkflowNodeTypes } from "./TemplateCard-
|
|
11
|
+
import { l as useLazyWorkflowDefinition, n as useCreateWorkflow } from "./useWorkflows-jOW60YmD.js";
|
|
12
|
+
import { S as useInstalledNodes, c as buildNodeCheck, l as buildRequiredNodeTypes, u as getWorkflowNodeTypes } from "./TemplateCard-DVSd_4zJ.js";
|
|
13
13
|
import { c as withoutGuidedTourIntent, l as decideMissingWorkflow, o as isGuidedTourIntent, s as pickGuidedTour, u as isCreateIntent } from "./firstWorkflow-C_h0KMB2.js";
|
|
14
14
|
import { t as BILLING_PLANS_PATH } from "./quota-Cdt8yz7N.js";
|
|
15
|
-
import { c as CreateWorkflowRefusalDialog } from "./useWorkflowCodeExport-
|
|
15
|
+
import { c as CreateWorkflowRefusalDialog } from "./useWorkflowCodeExport-ZoUJKRSK.js";
|
|
16
16
|
import { Suspense, lazy, useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
17
17
|
import { useLocation, useNavigate, useParams } from "react-router";
|
|
18
18
|
import { Icon } from "@iconify/react";
|
|
@@ -1088,7 +1088,7 @@ function GuidedTourStarter({ ready }) {
|
|
|
1088
1088
|
}
|
|
1089
1089
|
|
|
1090
1090
|
// src/builder/app/workflow/work/page.tsx
|
|
1091
|
-
const LazyMissingNodesInstallModal = lazy(() => import("./MissingNodesInstallModal-
|
|
1091
|
+
const LazyMissingNodesInstallModal = lazy(() => import("./MissingNodesInstallModal-D8H-YNCJ.js").then((m) => ({ default: m.MissingNodesInstallModal })));
|
|
1092
1092
|
function WorkflowItem({ readonly = false }) {
|
|
1093
1093
|
if (readonly) {
|
|
1094
1094
|
const queryParams = new URLSearchParams(window.location.search);
|
|
@@ -1160,7 +1160,7 @@ function WorkflowItem({ readonly = false }) {
|
|
|
1160
1160
|
setInstallErrors([]);
|
|
1161
1161
|
try {
|
|
1162
1162
|
const { getGlobalStoreClient } = await import("./node-registry-refresh-Dy0uRg9f.js").then((n) => n.a);
|
|
1163
|
-
const { InstallWorkflowNodeDocument } = await import("./FluidGridsProvider-
|
|
1163
|
+
const { InstallWorkflowNodeDocument } = await import("./FluidGridsProvider-C4FVNz0n.js").then((n) => n.y);
|
|
1164
1164
|
const { getFluidGridsConfig } = await import("./client-C9XSzSXr.js").then((n) => n.b);
|
|
1165
1165
|
const storeClient = getGlobalStoreClient();
|
|
1166
1166
|
const cfg = getFluidGridsConfig();
|
|
@@ -1,14 +1,201 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { _ as throwIfResultError, h as isForbiddenError, n as getFluidGridsClient } from "./client-C9XSzSXr.js";
|
|
2
|
+
import { _ as throwIfResultError, h as isForbiddenError, n as getFluidGridsClient, r as getFluidGridsClientSafe } from "./client-C9XSzSXr.js";
|
|
3
3
|
import { r as useTr } from "./TranslationBridge-Da-TPgQm.js";
|
|
4
|
-
import {
|
|
4
|
+
import { $t as RejectWorkflowProposalDocument, En as RunWorkflowTestsDocument, Jt as ProposeWorkflowChangeDocument, Q as DeleteWorkflowTestCaseDocument, R as CreateWorkflowTestCaseDocument, Si as WorkflowTestRunsDocument, Yr as WorkflowProposalDocument, bi as WorkflowTestRunDocument, l as ApplyWorkflowProposalDocument, mr as UpdateWorkflowTestCaseDocument, qt as ProposeRunFixDocument, s as AgentTokenDeltaDocument, w as CancelWorkflowProposalDocument, yi as WorkflowTestCasesDocument, z as CreateWorkflowTestCaseFromRunDocument } from "./graphql-operation-types-C9qbvRa8.js";
|
|
5
5
|
import { MI as WorkflowTestExpectedStatus, NI as WorkflowTestRunSource, PI as WorkflowTestRunStatus, jI as WorkflowTestAssertionOperator, jd as ErrorType } from "./graphql-types-v6CTGwA0.js";
|
|
6
6
|
import { a as notifyFluidGridsAiCreditsUpdated } from "./aiCreditsBridge-BuE92tKo.js";
|
|
7
|
-
import { useCallback, useEffect, useRef, useState } from "react";
|
|
7
|
+
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
8
8
|
import { Icon } from "@iconify/react";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
import { Badge, Button } from "@burdenoff/fe-libs/ui";
|
|
11
11
|
|
|
12
|
+
// src/modules/executions/utils/agent-token-stream.ts
|
|
13
|
+
/** Longest reply kept per iteration; the PLAN step holds the full text. */
|
|
14
|
+
const AGENT_TOKEN_STREAM_MAX_CHARS = 2e5;
|
|
15
|
+
/** The key of one model turn: node execution and iteration. */
|
|
16
|
+
function agentTokenStreamKey(delta) {
|
|
17
|
+
return `${delta.nodeId}|${delta.nodeStateId ?? ""}|${delta.iteration}`;
|
|
18
|
+
}
|
|
19
|
+
function capped(text) {
|
|
20
|
+
return text.length > 2e5 ? {
|
|
21
|
+
text: text.slice(0, AGENT_TOKEN_STREAM_MAX_CHARS),
|
|
22
|
+
truncated: true
|
|
23
|
+
} : {
|
|
24
|
+
text,
|
|
25
|
+
truncated: false
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
function isDelta(value) {
|
|
29
|
+
if (typeof value !== "object" || value === null) return false;
|
|
30
|
+
const delta = value;
|
|
31
|
+
return typeof delta.nodeId === "string" && typeof delta.iteration === "number" && Number.isInteger(delta.iteration) && delta.iteration >= 0 && typeof delta.offset === "number" && Number.isInteger(delta.offset) && delta.offset >= 0 && typeof delta.delta === "string";
|
|
32
|
+
}
|
|
33
|
+
/** The text of a stream after one delta (see the module comment). */
|
|
34
|
+
function applyText(current, delta) {
|
|
35
|
+
const before = current?.text ?? "";
|
|
36
|
+
if (delta.reset) return {
|
|
37
|
+
text: delta.delta,
|
|
38
|
+
gap: delta.offset > 0
|
|
39
|
+
};
|
|
40
|
+
if (delta.offset === before.length) return {
|
|
41
|
+
text: before + delta.delta,
|
|
42
|
+
gap: current?.gap ?? false
|
|
43
|
+
};
|
|
44
|
+
if (delta.offset < before.length) return {
|
|
45
|
+
text: before.slice(0, delta.offset) + delta.delta,
|
|
46
|
+
gap: current?.gap ?? false
|
|
47
|
+
};
|
|
48
|
+
return {
|
|
49
|
+
text: before + delta.delta,
|
|
50
|
+
gap: true
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* `current` with a batch of deltas applied, in order. Returns `current` itself
|
|
55
|
+
* when nothing in the batch was usable, so callers can skip a re-render.
|
|
56
|
+
*/
|
|
57
|
+
function applyAgentTokenDeltas(current, deltas, now = Date.now()) {
|
|
58
|
+
let next = null;
|
|
59
|
+
for (const raw of deltas) {
|
|
60
|
+
if (!isDelta(raw)) continue;
|
|
61
|
+
const nodeStateId = raw.nodeStateId ?? null;
|
|
62
|
+
const key = agentTokenStreamKey({
|
|
63
|
+
...raw,
|
|
64
|
+
nodeStateId
|
|
65
|
+
});
|
|
66
|
+
const held = (next ?? current).get(key);
|
|
67
|
+
if (held?.done && !raw.reset) continue;
|
|
68
|
+
next ??= new Map(current);
|
|
69
|
+
const { text, gap } = applyText(held, raw);
|
|
70
|
+
const limited = capped(text);
|
|
71
|
+
next.set(key, {
|
|
72
|
+
key,
|
|
73
|
+
runId: raw.runId,
|
|
74
|
+
nodeId: raw.nodeId,
|
|
75
|
+
nodeStateId,
|
|
76
|
+
iteration: raw.iteration,
|
|
77
|
+
text: limited.text,
|
|
78
|
+
done: raw.done === true,
|
|
79
|
+
error: typeof raw.error === "string" && raw.error.length > 0 ? raw.error : null,
|
|
80
|
+
gap,
|
|
81
|
+
truncated: limited.truncated || (held?.truncated ?? false),
|
|
82
|
+
order: held?.order ?? next.size,
|
|
83
|
+
updatedAt: now
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
return next ?? current;
|
|
87
|
+
}
|
|
88
|
+
/** The streams in the order they started (node execution, then iteration). */
|
|
89
|
+
function sortedAgentTokenStreams(streams) {
|
|
90
|
+
return [...streams.values()].sort((a, b) => a.order - b.order);
|
|
91
|
+
}
|
|
92
|
+
/** The streams of one AI Agent node execution, by iteration. */
|
|
93
|
+
function agentTokenStreamsFor(streams, nodeStateId, nodeId) {
|
|
94
|
+
return streams.filter((stream) => nodeStateId !== null && stream.nodeStateId !== null ? stream.nodeStateId === nodeStateId : stream.nodeId === nodeId).sort((a, b) => a.iteration - b.iteration);
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* The state of a stream for the reader: a failed call, a finished one, one
|
|
98
|
+
* still being written, or one the run stopped writing (cancelled, or the
|
|
99
|
+
* worker went away) before the turn ended.
|
|
100
|
+
*/
|
|
101
|
+
function agentLiveReplyState(stream, runLive) {
|
|
102
|
+
if (stream.error) return "failed";
|
|
103
|
+
if (stream.done) return "done";
|
|
104
|
+
return runLive ? "streaming" : "stopped";
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* The stream the builder's chat shows: the newest turn of the newest node
|
|
108
|
+
* execution of an AI Agent node (`agentNodeIds`), or of any node when that set
|
|
109
|
+
* is empty.
|
|
110
|
+
*/
|
|
111
|
+
function latestAgentTokenStream(streams, agentNodeIds) {
|
|
112
|
+
let latest = null;
|
|
113
|
+
for (const stream of streams.values()) {
|
|
114
|
+
if (agentNodeIds && agentNodeIds.size > 0) {
|
|
115
|
+
if (!agentNodeIds.has(stream.nodeId)) continue;
|
|
116
|
+
}
|
|
117
|
+
if (!latest || stream.order > latest.order) latest = stream;
|
|
118
|
+
}
|
|
119
|
+
return latest;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
// src/modules/executions/hooks/useAgentTokenStream.ts
|
|
123
|
+
/**
|
|
124
|
+
* useAgentTokenStream — a run's AI Agent model replies while the model is
|
|
125
|
+
* still writing them (BOFF-9938), for the run page's Agent tab and the
|
|
126
|
+
* builder's chat panel.
|
|
127
|
+
*
|
|
128
|
+
* Subscribes to `agentTokenDelta(runId)` while `enabled`, and folds every
|
|
129
|
+
* batch into one stream per model turn (node execution and iteration, see
|
|
130
|
+
* `agent-token-stream.ts`). The stream carries no history: a turn that started
|
|
131
|
+
* before the subscription opened shows only what arrives after. Turning
|
|
132
|
+
* `enabled` off closes the subscription but keeps the streams already held,
|
|
133
|
+
* so a reader can keep showing them until the step trace has the final text.
|
|
134
|
+
* A different `runId` starts from nothing.
|
|
135
|
+
*/
|
|
136
|
+
const EMPTY_STREAMS = /* @__PURE__ */ new Map();
|
|
137
|
+
/**
|
|
138
|
+
* Follow a run's model replies: subscribe to `agentTokenDelta` and hand each
|
|
139
|
+
* non-empty batch to `onDeltas`. Returns the function that closes the
|
|
140
|
+
* subscription; nothing is called back after it ran. A failed or ended
|
|
141
|
+
* subscription only reports `onStreaming(false)`: the step trace and the node
|
|
142
|
+
* output still carry every reply, so the stream is an accelerator.
|
|
143
|
+
*/
|
|
144
|
+
function followAgentTokenDeltas(client, runId, { onDeltas, onStreaming }) {
|
|
145
|
+
let stopped = false;
|
|
146
|
+
const subscription = client.subscribe({
|
|
147
|
+
query: AgentTokenDeltaDocument,
|
|
148
|
+
variables: { runId }
|
|
149
|
+
}).subscribe({
|
|
150
|
+
next: ({ data }) => {
|
|
151
|
+
if (stopped) return;
|
|
152
|
+
onStreaming(true);
|
|
153
|
+
const deltas = data?.agentTokenDelta ?? [];
|
|
154
|
+
if (deltas.length > 0) onDeltas(deltas, Date.now());
|
|
155
|
+
},
|
|
156
|
+
error: () => {
|
|
157
|
+
if (!stopped) onStreaming(false);
|
|
158
|
+
},
|
|
159
|
+
complete: () => {
|
|
160
|
+
if (!stopped) onStreaming(false);
|
|
161
|
+
}
|
|
162
|
+
});
|
|
163
|
+
return () => {
|
|
164
|
+
stopped = true;
|
|
165
|
+
subscription.unsubscribe();
|
|
166
|
+
onStreaming(false);
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
function useAgentTokenStream(runId, { enabled }) {
|
|
170
|
+
const [state, setState] = useState(null);
|
|
171
|
+
const [streaming, setStreaming] = useState(false);
|
|
172
|
+
useEffect(() => {
|
|
173
|
+
const client = getFluidGridsClientSafe();
|
|
174
|
+
if (!runId || !enabled || !client) return void 0;
|
|
175
|
+
return followAgentTokenDeltas(client, runId, {
|
|
176
|
+
onStreaming: setStreaming,
|
|
177
|
+
onDeltas: (deltas, receivedAt) => setState((previous) => {
|
|
178
|
+
const held = previous?.runId === runId ? previous.streams : EMPTY_STREAMS;
|
|
179
|
+
const streams = applyAgentTokenDeltas(held, deltas, receivedAt);
|
|
180
|
+
if (streams === held && previous?.runId === runId) return previous;
|
|
181
|
+
return {
|
|
182
|
+
runId,
|
|
183
|
+
streams,
|
|
184
|
+
lastDeltaAt: receivedAt
|
|
185
|
+
};
|
|
186
|
+
})
|
|
187
|
+
});
|
|
188
|
+
}, [runId, enabled]);
|
|
189
|
+
const current = runId && state?.runId === runId ? state : null;
|
|
190
|
+
const byKey = current?.streams ?? EMPTY_STREAMS;
|
|
191
|
+
return {
|
|
192
|
+
streams: useMemo(() => sortedAgentTokenStreams(byKey), [byKey]),
|
|
193
|
+
byKey,
|
|
194
|
+
streaming: enabled && !!runId && streaming,
|
|
195
|
+
lastDeltaAt: current?.lastDeltaAt ?? null
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
|
|
12
199
|
// src/builder/lib/assert-rules.ts
|
|
13
200
|
/** Every operator, in the order the editors offer them. */
|
|
14
201
|
const ASSERT_OPERATORS = [
|
|
@@ -1242,4 +1429,4 @@ function WorkflowProposalCard({ proposal, isDeciding = false, onOpenWorkflow, on
|
|
|
1242
1429
|
});
|
|
1243
1430
|
}
|
|
1244
1431
|
|
|
1245
|
-
export { rowsFromRules as C, readAssertRulesSetting as S, ASSERT_OPERATORS as _, TEST_STATUS_TONE_CLASS as a, normaliseAssertRules as b, draftToInput as c, isTestRunOpen as d, nextSortOrder as f, testStatusTone as g, testStatusLabel as h, useWorkflowTests as i, emptyTestCaseDraft as l, testRunSummaryText as m, useWorkflowProposal as n, canSaveRunAsTestCase as o, pinnedOutputsFromCanvas as p, saveRunAsTestCase as r, draftFromTestCase as s, WorkflowProposalCard as t, enabledCaseIds as u, describeAssertRuleProblem as v, ruleFromRow as w, operatorSpec as x, emptyAssertRuleRow as y };
|
|
1432
|
+
export { rowsFromRules as C, agentTokenStreamsFor as D, agentLiveReplyState as E, latestAgentTokenStream as O, readAssertRulesSetting as S, useAgentTokenStream as T, ASSERT_OPERATORS as _, TEST_STATUS_TONE_CLASS as a, normaliseAssertRules as b, draftToInput as c, isTestRunOpen as d, nextSortOrder as f, testStatusTone as g, testStatusLabel as h, useWorkflowTests as i, emptyTestCaseDraft as l, testRunSummaryText as m, useWorkflowProposal as n, canSaveRunAsTestCase as o, pinnedOutputsFromCanvas as p, saveRunAsTestCase as r, draftFromTestCase as s, WorkflowProposalCard as t, enabledCaseIds as u, describeAssertRuleProblem as v, ruleFromRow as w, operatorSpec as x, emptyAssertRuleRow as y };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as __exportAll } from "./rolldown-runtime-hDbaFkMy.js";
|
|
3
|
-
import { m as useWorkflowDefinition } from "./useWorkflows-
|
|
3
|
+
import { m as useWorkflowDefinition } from "./useWorkflows-jOW60YmD.js";
|
|
4
4
|
import { Navigate, useParams } from "react-router";
|
|
5
5
|
import { Icon } from "@iconify/react";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -3,7 +3,7 @@ import { t as __exportAll } from "./rolldown-runtime-hDbaFkMy.js";
|
|
|
3
3
|
import { n as getFluidGridsClient } from "./client-C9XSzSXr.js";
|
|
4
4
|
import { r as useTr } from "./TranslationBridge-Da-TPgQm.js";
|
|
5
5
|
import { DI as WorkflowSharePrincipalType, II as WorkflowVisibility, JF as WorkflowAccess, OI as WorkflowShareRole } from "./graphql-types-v6CTGwA0.js";
|
|
6
|
-
import {
|
|
6
|
+
import { In as ShareWorkflowDocument, mi as WorkflowSharingDocument } from "./graphql-operation-types-C9qbvRa8.js";
|
|
7
7
|
import { useMemo } from "react";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
9
9
|
import { ResourceShareDialog, createSharePrincipalLister } from "@burdenoff/fe-libs/connections";
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as __exportAll } from "./rolldown-runtime-hDbaFkMy.js";
|
|
3
|
-
import { c as useImportWorkflow, h as useWorkflowDefinitions, l as useLazyWorkflowDefinition, n as useCreateWorkflow, o as useDeleteWorkflow, s as useDuplicateWorkflow, u as usePreviewN8nImport } from "./useWorkflows-
|
|
4
|
-
import { jt as createThenOpen, t as FluidGridsContext } from "./FluidGridsProvider-
|
|
5
|
-
import { a as saveWorkflowDescription, c as CreateWorkflowRefusalDialog, o as visibleWorkflowDescription, r as commitWorkflowDescription, s as workflowDescriptionCharactersLeft, t as useExportWorkflowAs } from "./useWorkflowCodeExport-
|
|
3
|
+
import { c as useImportWorkflow, h as useWorkflowDefinitions, l as useLazyWorkflowDefinition, n as useCreateWorkflow, o as useDeleteWorkflow, s as useDuplicateWorkflow, u as usePreviewN8nImport } from "./useWorkflows-jOW60YmD.js";
|
|
4
|
+
import { jt as createThenOpen, t as FluidGridsContext } from "./FluidGridsProvider-C4FVNz0n.js";
|
|
5
|
+
import { a as saveWorkflowDescription, c as CreateWorkflowRefusalDialog, o as visibleWorkflowDescription, r as commitWorkflowDescription, s as workflowDescriptionCharactersLeft, t as useExportWorkflowAs } from "./useWorkflowCodeExport-ZoUJKRSK.js";
|
|
6
6
|
import { c as isQuotaExhaustedFailure, t as BILLING_PLANS_PATH } from "./quota-Cdt8yz7N.js";
|
|
7
7
|
import { H as useFlowStore } from "./node-operation-selection-DAbS6jSY.js";
|
|
8
8
|
import { a as SdkPermissionGate, i as SdkPermissionButton, s as useFluidGridsPermission, t as FLUIDGRIDS_PERMISSIONS } from "./constants-dcxg6zG6.js";
|
|
9
|
-
import { S as QuotaExhaustedDialog, a as assertImportByteSize, g as readProjectArchive, h as primaryImportModule, i as MAX_IMPORT_SOURCE_BYTES, l as importAcceptAttribute, n as ImportSourceError, r as MAX_IMPORT_ARCHIVE_BYTES, s as checkTypeScriptImport, t as CODE_EXPORT_FORMATS, u as importFileKind, v as typeScriptImportSource, x as workflowNameFromFile, y as typeScriptModuleFile } from "./workflow-code-transfer-
|
|
9
|
+
import { S as QuotaExhaustedDialog, a as assertImportByteSize, g as readProjectArchive, h as primaryImportModule, i as MAX_IMPORT_SOURCE_BYTES, l as importAcceptAttribute, n as ImportSourceError, r as MAX_IMPORT_ARCHIVE_BYTES, s as checkTypeScriptImport, t as CODE_EXPORT_FORMATS, u as importFileKind, v as typeScriptImportSource, x as workflowNameFromFile, y as typeScriptModuleFile } from "./workflow-code-transfer-l9wO34S0.js";
|
|
10
10
|
import { r as useTr } from "./TranslationBridge-Da-TPgQm.js";
|
|
11
11
|
import { YF as WorkflowAccessFilter, rI as WorkflowExportFormat } from "./graphql-types-v6CTGwA0.js";
|
|
12
|
-
import { i as canShareWorkflow, r as canEditWorkflow, t as WorkflowShareDialog } from "./WorkflowShareDialog-
|
|
12
|
+
import { i as canShareWorkflow, r as canEditWorkflow, t as WorkflowShareDialog } from "./WorkflowShareDialog-BgHRsDP0.js";
|
|
13
13
|
import { i as useOpenRequest, n as ACTION_PARAM_VALUES, r as useActionParam } from "./useActionParam-B0ebTZmg.js";
|
|
14
14
|
import { d as useFluidGridsFlag, t as FLUIDGRIDS_FLAGS } from "./feature-flags-B_b8PJ6Z.js";
|
|
15
15
|
import { n as downloadWorkflowExport, r as parseWorkflowImport } from "./workflow-transfer-CQnQC-ke.js";
|
|
16
|
-
import { a as useWorkflowProjects, i as useWorkflowProjectActions, n as useWorkflowFolderActions, r as useWorkflowFolders, t as useBulkWorkflowActions } from "./useWorkflowOrganization-
|
|
16
|
+
import { a as useWorkflowProjects, i as useWorkflowProjectActions, n as useWorkflowFolderActions, r as useWorkflowFolders, t as useBulkWorkflowActions } from "./useWorkflowOrganization-QxVePSkk.js";
|
|
17
17
|
import { m as describeOperationError, n as getFluidGridsClient } from "./client-C9XSzSXr.js";
|
|
18
|
-
import { a as useExecutions } from "./useExecutions-
|
|
18
|
+
import { a as useExecutions } from "./useExecutions-DOpG1pUQ.js";
|
|
19
19
|
import { a as firstWorkflowProgress, i as builderPathFor, r as GUIDED_TOUR_STATE } from "./firstWorkflow-C_h0KMB2.js";
|
|
20
20
|
import { n as useFluidGridsPageControls } from "./pageControlsBridge-0pX9s-3k.js";
|
|
21
21
|
import { i as workflowsListControls } from "./pageControlSpecs-DZJ9K37m.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { $ as selectedOperationOf, J as fixedParameterState, Pt as useSaveStatusStore, Q as paramsFromOperation, Tt as isFlowComplete, V as createConfiguredNode, X as nodeTitle, _ as registryNodeData, _t as autosaveAllowedFor, f as isNodeConfigsInitialized, o as NODE_CONFIGS, z as SENSITIVE_PARAM } from "./FluidGridsProvider-
|
|
2
|
+
import { $ as selectedOperationOf, J as fixedParameterState, Pt as useSaveStatusStore, Q as paramsFromOperation, Tt as isFlowComplete, V as createConfiguredNode, X as nodeTitle, _ as registryNodeData, _t as autosaveAllowedFor, f as isNodeConfigsInitialized, o as NODE_CONFIGS, z as SENSITIVE_PARAM } from "./FluidGridsProvider-C4FVNz0n.js";
|
|
3
3
|
import { E as resolveOutputHandles, H as useFlowStore, T as resolveInputHandles } from "./node-operation-selection-DAbS6jSY.js";
|
|
4
|
-
import { F as isNodeTypeHiddenFromPalette } from "./TemplateCard-
|
|
5
|
-
import { g as computeAttachPosition } from "./flow-builder-
|
|
4
|
+
import { F as isNodeTypeHiddenFromPalette } from "./TemplateCard-DVSd_4zJ.js";
|
|
5
|
+
import { g as computeAttachPosition } from "./flow-builder-D3Hl2AFk.js";
|
|
6
6
|
import { AgentToolError, defineAgentTool } from "@burdenoff/fe-libs/shared/agent-tools";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { d as readTyped, f as writeTyped } from "./shared-CMfn30xT.js";
|
|
3
|
-
import {
|
|
3
|
+
import { Bn as StartBatchOperationDocument, Bt as PauseActivityDocument, E as CompleteActivityByIdDocument, Er as WorkflowBatchOperationsDocument, Ht as PauseWorkflowScheduleDocument, I as CreateWorkflowSearchAttributeDocument, L as CreateWorkflowSignalTokenDocument, Or as WorkflowCodeBundleSdkDocument, Qn as TriggerWorkflowScheduleDocument, T as CodecServerSettingsDocument, Vn as StartBatchTerminateDocument, W as DeleteActivityPauseRuleDocument, Xt as QueryWorkflowRunDocument, Z as DeleteWorkflowSearchAttributeDocument, _n as RunControlFieldsDocument, ar as UpdateArchiveSettingsDocument, b as CancelBatchOperationDocument, br as WorkflowActivityPauseRulesDocument, cn as ResetWorkflowRunToLastCleanTaskDocument, d as ArchiveSettingsDocument, er as UnpauseActivityDocument, gi as WorkflowSignalTokensDocument, hr as UpsertWorkflowRunSearchAttributesDocument, ht as FailActivityByIdDocument, ir as UpdateActivityOptionsDocument, k as CreateActivityPauseRuleDocument, li as WorkflowScheduleDescribeDocument, oi as WorkflowRunUpdateDocument, on as ResetActivityDocument, or as UpdateCodecServerSettingsDocument, p as BackfillWorkflowScheduleDocument, pi as WorkflowSearchAttributesDocument, pn as RevokeWorkflowSignalTokenDocument, pr as UpdateWorkflowRunDocument, sn as ResetWorkflowRunDocument, ti as WorkflowRunHistoryArchiveDocument, tr as UnpauseWorkflowScheduleDocument, wr as WorkflowBatchOperationDocument, zn as StartBatchExportDocument } from "./graphql-operation-types-C9qbvRa8.js";
|
|
4
4
|
|
|
5
5
|
// src/modules/run-control/api.ts
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { d as readTyped, f as writeTyped } from "./shared-CMfn30xT.js";
|
|
3
|
-
import {
|
|
3
|
+
import { G as DeleteTaskQueueDocument, Jn as TaskQueuesDocument, K as DeleteWorkerTokenDocument, M as CreateWorkerTokenDocument, Nn as SetWorkerTokenConnectionAllowlistDocument, Oi as WorkflowWorkersDocument, j as CreateTaskQueueDocument, lr as UpdateTaskQueueDocument, mn as RotateWorkerTokenDocument, qn as TaskQueueStatsDocument, vr as WorkerTokensDocument } from "./graphql-operation-types-C9qbvRa8.js";
|
|
4
4
|
|
|
5
5
|
// src/modules/task-queues/api.ts
|
|
6
6
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { n as useAgentMarksStore, r as toPlainText } from "./marksStore-DGCXjTmZ.js";
|
|
3
|
-
import { $ as selectedOperationOf, Q as paramsFromOperation, X as nodeTitle } from "./FluidGridsProvider-
|
|
3
|
+
import { $ as selectedOperationOf, Q as paramsFromOperation, X as nodeTitle } from "./FluidGridsProvider-C4FVNz0n.js";
|
|
4
4
|
import { H as useFlowStore } from "./node-operation-selection-DAbS6jSY.js";
|
|
5
|
-
import { p as notesKeyOf } from "./flow-builder-
|
|
5
|
+
import { p as notesKeyOf } from "./flow-builder-D3Hl2AFk.js";
|
|
6
6
|
import { AgentToolError, defineAgentTool } from "@burdenoff/fe-libs/shared/agent-tools";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
|
|
@@ -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 { Un as useBuilderReadOnly } from "./FluidGridsProvider-
|
|
4
|
+
import { Un as useBuilderReadOnly } from "./FluidGridsProvider-C4FVNz0n.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-J0sJPuoM.js";
|
|
3
|
+
import { t as ExecutionDetailPage } from "./ExecutionDetailPage-CTVGE-d-.js";
|
|
4
4
|
|
|
5
5
|
export { ExecutionDetailPage, ExecutionsListPage };
|