@burdenoff/fluidgrids-fe-sdk 2026.1110.8 → 2026.1110.10
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/{ExecutionDetailPage-2QOZ452U.js → ExecutionDetailPage-3KGB76K2.js} +8 -8
- package/dist/{ExecutionsListPage-FN5HPHB3.js → ExecutionsListPage-N2BNBGCV.js} +7 -7
- package/dist/{WorkflowBuilder-XF6VBYZB.js → WorkflowBuilder-P2SP7HAB.js} +15 -15
- package/dist/{WorkflowsList-CBMAAP2H.js → WorkflowsList-FALNWQEN.js} +7 -7
- package/dist/{agentTools-KO3YDCWV.js → agentTools-E3ZN3WTC.js} +23 -11
- package/dist/{chunk-RVRLVDZA.js → chunk-2VT5WVI3.js} +2 -2
- package/dist/{chunk-LSRF7JLO.js → chunk-33734243.js} +3 -10
- package/dist/{chunk-3WNMZOVH.js → chunk-4FPY66GH.js} +1 -1
- package/dist/{chunk-SL2EDFAT.js → chunk-5DVFEXZD.js} +1 -1
- package/dist/{chunk-LLGTTPON.js → chunk-5GTMQRJ5.js} +2 -2
- package/dist/{chunk-XSTTM74F.js → chunk-76GHBM7J.js} +1 -1
- package/dist/{chunk-W5ZTQQUI.js → chunk-7F3E4OCW.js} +1 -1
- package/dist/{chunk-CKF2FBUP.js → chunk-7IX4SWSA.js} +1 -1
- package/dist/{chunk-CRLEVO22.js → chunk-AXLHJUXU.js} +4 -4
- package/dist/{chunk-SUHVKRZU.js → chunk-BIZ43ZU3.js} +2 -2
- package/dist/{chunk-ED3DCUU5.js → chunk-DJDVI3QP.js} +4 -4
- package/dist/{chunk-JNSHR2J2.js → chunk-GGENPDMT.js} +1 -1
- package/dist/{chunk-NK7IQUZF.js → chunk-GWVVENHM.js} +1 -1
- package/dist/{chunk-7LMZZJQM.js → chunk-H6DN6XOI.js} +1 -1
- package/dist/{chunk-4FDWZFBP.js → chunk-HMU57O6H.js} +4 -4
- package/dist/{chunk-TOCD4SVA.js → chunk-ITZ36O6Z.js} +5 -5
- package/dist/{chunk-TNFMGVWW.js → chunk-JPHEF4FA.js} +55 -26
- package/dist/{chunk-K2X63CR2.js → chunk-JT6NAHAX.js} +51 -5
- package/dist/{chunk-PHJBQCQS.js → chunk-LNJNV3KS.js} +1 -1
- package/dist/{chunk-KQ43EVRO.js → chunk-ML37ETUG.js} +8 -8
- package/dist/{chunk-TIUSQ6MW.js → chunk-MYPP6HXG.js} +6 -5
- package/dist/{chunk-XM3IMHA7.js → chunk-OCOFY6YC.js} +4 -4
- package/dist/{chunk-R4HR4GZK.js → chunk-Q4RDLK6B.js} +5 -5
- package/dist/{chunk-YGWPVIGB.js → chunk-S3AT5TPO.js} +4 -4
- package/dist/{chunk-JGHDGMYV.js → chunk-TMXP27KI.js} +1 -1
- package/dist/{chunk-X7LWPPVE.js → chunk-W3PG3KXA.js} +65 -24
- package/dist/{chunk-QUYK5PAZ.js → chunk-XZSC2OFT.js} +1 -1
- package/dist/executions.js +9 -9
- package/dist/{global-operations-KADPYCYT.js → global-operations-RHGX2BNA.js} +1 -1
- package/dist/history.js +7 -7
- package/dist/index.js +39 -39
- package/dist/{node-detail-view-VF6UTUBV.js → node-detail-view-PLTLXAQA.js} +8 -8
- package/dist/observability.js +5 -5
- package/dist/{quick-config-panel-YX7UGEBR.js → quick-config-panel-M777ZZ46.js} +7 -7
- package/dist/settings.js +6 -6
- package/dist/templates.js +15 -15
- package/dist/workflow-builder.js +16 -16
- package/dist/workflow-preview.d.ts +1 -0
- package/dist/workflow-preview.js +9 -5
- package/dist/workflows-list.js +7 -7
- package/package.json +1 -1
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { computeAttachPosition, firstInputHandleId } from './chunk-
|
|
1
|
+
import { computeAttachPosition, firstInputHandleId } from './chunk-GGENPDMT.js';
|
|
2
2
|
import { deepClone, applyTemplateInputs } from './chunk-GEMNVFPK.js';
|
|
3
3
|
import { templatePreview } from './chunk-B6CCE2RW.js';
|
|
4
4
|
import { Input } from './chunk-IEVSFCFS.js';
|
|
5
5
|
import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogDescription, DialogFooter as DialogFooter$1 } from './chunk-YXMFRQYV.js';
|
|
6
6
|
import { Badge as Badge$1 } from './chunk-TFCIZFDM.js';
|
|
7
|
-
import { LogsPanel } from './chunk-
|
|
8
|
-
import { useNodeEditorTab, NodeEditorTabs, NodeInputFields, NodeEditorTabBody } from './chunk-
|
|
9
|
-
import { useGlobalStoreClient, NodeExecutionActions } from './chunk-
|
|
10
|
-
import { useNodeConfig, nodeSubtitle, nodeTitle } from './chunk-
|
|
11
|
-
import { CreateWorkflowRefusalDialog, WorkflowShareDialog, useWorkflowCodeExport, orderedExportFiles, fileBaseName, downloadWorkflowCodeExport, isLosslessReport, sortFidelityItems, isLossyFidelityItem, lineOfNode } from './chunk-
|
|
7
|
+
import { LogsPanel } from './chunk-XZSC2OFT.js';
|
|
8
|
+
import { useNodeEditorTab, NodeEditorTabs, NodeInputFields, NodeEditorTabBody } from './chunk-HMU57O6H.js';
|
|
9
|
+
import { useGlobalStoreClient, NodeExecutionActions } from './chunk-AXLHJUXU.js';
|
|
10
|
+
import { useNodeConfig, nodeSubtitle, nodeTitle } from './chunk-33734243.js';
|
|
11
|
+
import { CreateWorkflowRefusalDialog, WorkflowShareDialog, useWorkflowCodeExport, orderedExportFiles, fileBaseName, downloadWorkflowCodeExport, isLosslessReport, sortFidelityItems, isLossyFidelityItem, lineOfNode } from './chunk-GWVVENHM.js';
|
|
12
12
|
import { emptyTestCaseDraft, EntityTagPicker, useWorkflowProposal, WorkflowProposalCard, useWorkflowTests, pinnedOutputsFromCanvas, enabledCaseIds, isTestRunOpen, MAX_TEST_CASES, draftFromTestCase, testRunSummaryText, testStatusLabel, TEST_STATUS_TONE_CLASS, testStatusTone, MAX_CASE_NAME, nextSortOrder, draftToInput } from './chunk-POCNK7FY.js';
|
|
13
13
|
import { buildNodeDisplayMap } from './chunk-6NSPCR5C.js';
|
|
14
14
|
import { AiCreditBalanceSlot } from './chunk-Y53CVZVV.js';
|
|
15
|
-
import { countLifecycle, VersionLifecycleBar, VersionDiffDialog } from './chunk-
|
|
16
|
-
import { useRestoreWorkflowVersion, useWorkflowVersions, useActivateWorkflow, useDeleteWorkflow, useDeactivateWorkflow } from './chunk-
|
|
15
|
+
import { countLifecycle, VersionLifecycleBar, VersionDiffDialog } from './chunk-76GHBM7J.js';
|
|
16
|
+
import { useRestoreWorkflowVersion, useWorkflowVersions, useActivateWorkflow, useDeleteWorkflow, useDeactivateWorkflow } from './chunk-LNJNV3KS.js';
|
|
17
17
|
import { PublishCustomNodeAction } from './chunk-XRGAH6IQ.js';
|
|
18
18
|
import { Button } from './chunk-QJAZXCFQ.js';
|
|
19
19
|
import { useRequestedProposal } from './chunk-GLYINMOR.js';
|
|
20
|
-
import { useConnections, ConnectionFormDialog } from './chunk-
|
|
20
|
+
import { useConnections, ConnectionFormDialog } from './chunk-5DVFEXZD.js';
|
|
21
21
|
import { FluidGridsDocsLink } from './chunk-4VJ3MDOV.js';
|
|
22
22
|
import { SdkPermissionButton, FLUIDGRIDS_PERMISSIONS, useFluidGridsPermission, SdkPermissionGate } from './chunk-ERT444RG.js';
|
|
23
|
-
import { leaseCallQueue, RUNS_QUOTA_NAME, BILLING_PLANS_PATH, emitUpgradeClicked, FluidGridsContext, emitWorkflowCreated, emitTemplateUsed, ensureNodeConfigsLoaded, NODE_CONFIGS, useEditLeaseStore, useEditLeaseLocked, registerWorkflowNodeTypes, emitNodeInstalled, useNodeExecution, usePaletteGates, onNodeTypesUpdate, NODE_TYPES, getNodeMetadata, refetchStoreNodes, AVAILABLE_NODES, EDIT_SESSION_ID, useInsertNode, useSaveStatusStore, useManualSave, useDurableFunctionNodesEnabled, bannerOf, editStateFor, useSaveWorkflow, filterPaletteNodes, useFluidGridsAnalytics, useGuardedNavigate, sessionBeforeReload, forgetSessionForReload, releasesOnClose, touchesSavedFields, isLocked, watchLeavingLosesChanges, workflowFingerprint, savedEverythingBeforeLeaving, refusalOfQuota, buildStickyNode, NODES_METADATA, shouldReleaseForIdle, tickAction, rememberSessionForReload, leavingLosesChanges, buildOperationSeed, useDurableParityEnabled, useWorkflowTestsEnabled, useFluidGridsFlag, FLUIDGRIDS_FLAGS, useFlowValidator, saveIndicatorOf, departingSave, inAppLeaveTarget, isNodeConfigsInitialized, phaseAfterAcquire, rememberOwnStatusChange, useRunGuard, saveFailureActionOf, getNodeDetail, loadDefinitionJson, canAutosave, isNodeTypeHiddenFromPalette, AUTOSAVE_RETRY_DELAYS_MS, AUTOSAVE_DEBOUNCE_MS, editingLeaseLocked, autosaveAllowedFor, isFlowComplete, rememberRevision, phaseAfterTakeOver } from './chunk-
|
|
23
|
+
import { leaseCallQueue, RUNS_QUOTA_NAME, BILLING_PLANS_PATH, emitUpgradeClicked, FluidGridsContext, emitWorkflowCreated, emitTemplateUsed, ensureNodeConfigsLoaded, NODE_CONFIGS, useEditLeaseStore, useEditLeaseLocked, registerWorkflowNodeTypes, emitNodeInstalled, useNodeExecution, usePaletteGates, useCanvasEdges, onNodeTypesUpdate, NODE_TYPES, getNodeMetadata, refetchStoreNodes, AVAILABLE_NODES, EDIT_SESSION_ID, useInsertNode, useSaveStatusStore, useManualSave, useDurableFunctionNodesEnabled, bannerOf, editStateFor, useSaveWorkflow, filterPaletteNodes, useFluidGridsAnalytics, useGuardedNavigate, sessionBeforeReload, forgetSessionForReload, releasesOnClose, touchesSavedFields, isLocked, watchLeavingLosesChanges, workflowFingerprint, savedEverythingBeforeLeaving, refusalOfQuota, buildStickyNode, NODES_METADATA, shouldReleaseForIdle, tickAction, rememberSessionForReload, leavingLosesChanges, buildOperationSeed, useDurableParityEnabled, useWorkflowTestsEnabled, useFluidGridsFlag, FLUIDGRIDS_FLAGS, useFlowValidator, saveIndicatorOf, departingSave, inAppLeaveTarget, isNodeConfigsInitialized, phaseAfterAcquire, rememberOwnStatusChange, useRunGuard, saveFailureActionOf, getNodeDetail, loadDefinitionJson, canAutosave, isNodeTypeHiddenFromPalette, AUTOSAVE_RETRY_DELAYS_MS, AUTOSAVE_DEBOUNCE_MS, editingLeaseLocked, autosaveAllowedFor, isFlowComplete, rememberRevision, phaseAfterTakeOver } from './chunk-W3PG3KXA.js';
|
|
24
24
|
import { BuilderReadOnlyProvider, useBuilderReadOnly } from './chunk-SDZEAIIE.js';
|
|
25
|
-
import { useFlowStore, useIsValidConnection, NODE_TYPE_DRAG_DATA_FORMAT, NODE_OPERATION_DRAG_DATA_FORMAT, CODE_WORKFLOW_NODE_TYPE, STICKY_NOTE_TYPE, NodeTypeIcon, isImageIcon, isTriggerOperation, nodeAccent } from './chunk-
|
|
25
|
+
import { useFlowStore, useIsValidConnection, NODE_TYPE_DRAG_DATA_FORMAT, NODE_OPERATION_DRAG_DATA_FORMAT, CODE_WORKFLOW_NODE_TYPE, STICKY_NOTE_TYPE, NodeTypeIcon, isImageIcon, isTriggerOperation, nodeAccent } from './chunk-JT6NAHAX.js';
|
|
26
26
|
import { getGlobalStoreClient } from './chunk-TYI2XOSI.js';
|
|
27
|
-
import { GetMyNodeInstallationsDocument, BrowseWorkflowTemplatesDocument, InstallWorkflowNodeDocument, SubmitWorkflowTemplateDocument, MyWorkflowTemplateSubmissionsDocument, WithdrawWorkflowTemplateSubmissionDocument, InstallPurchasedNodeDocument, BrowseWorkflowNodesDocument, UninstallWorkflowNodeDocument, CreateStoreOrderDocument, GetNodeInstallableVersionsDocument, OrganizationPrivateNodesDocument, InstallOrganizationPrivateNodeDocument, UninstallOrganizationPrivateNodeDocument } from './chunk-
|
|
27
|
+
import { GetMyNodeInstallationsDocument, BrowseWorkflowTemplatesDocument, InstallWorkflowNodeDocument, SubmitWorkflowTemplateDocument, MyWorkflowTemplateSubmissionsDocument, WithdrawWorkflowTemplateSubmissionDocument, InstallPurchasedNodeDocument, BrowseWorkflowNodesDocument, UninstallWorkflowNodeDocument, CreateStoreOrderDocument, GetNodeInstallableVersionsDocument, OrganizationPrivateNodesDocument, InstallOrganizationPrivateNodeDocument, UninstallOrganizationPrivateNodeDocument } from './chunk-4FPY66GH.js';
|
|
28
28
|
import { cn } from './chunk-JL7CASN5.js';
|
|
29
29
|
import { WorkspaceRunsQuotaDocument, WorkflowGenerationTemplatesDocument, ReleaseWorkflowEditLeaseDocument, NodeSchemaIntrospectionDocument, AcquireWorkflowEditLeaseDocument, WorkflowEnvironmentsDocument, WorkflowPromotionRequestsDocument, DeployWorkflowVersionToDevDocument, RequestWorkflowPromotionDocument, ApproveWorkflowPromotionDocument, RejectWorkflowPromotionDocument, CancelWorkflowPromotionDocument, UpdateWorkflowEnvironmentPolicyDocument, WorkflowGitRepositoryDocument, WorkflowGitPushesDocument, WorkflowGitCommitsDocument, LinkWorkflowGitRepositoryDocument, UnlinkWorkflowGitRepositoryDocument, PushWorkflowToGitDocument, WorkflowGitDiffDocument, RestoreWorkflowFromGitDocument, WorkflowAuthoringDocument, WorkflowEditLeaseDocument, WorkflowVersioningDocument, WorkflowVersionDrainageDocument, ActivateWorkflowVersionCheckedDocument, WorkflowDefinitionDocument, NodeUsageStatusDocument, RemoveNodeFromWorkflowsDocument, SetWorkflowRolloutDocument, DeleteWorkflowRolloutDocument, TakeOverWorkflowEditLeaseDocument } from './chunk-UDS2FA24.js';
|
|
30
30
|
import { useTr } from './chunk-UULVIT25.js';
|
|
@@ -2696,6 +2696,25 @@ function getStoreNodeIcon(listingIcon, nodeType) {
|
|
|
2696
2696
|
);
|
|
2697
2697
|
return registered?.icon || null;
|
|
2698
2698
|
}
|
|
2699
|
+
function storeNodeDisplayVersion(manifest, manifestVersion) {
|
|
2700
|
+
const record = typeof manifest === "string" ? parseManifest(manifest) : manifest;
|
|
2701
|
+
if (typeof record === "object" && record !== null) {
|
|
2702
|
+
const { nodeVersion, identity } = record;
|
|
2703
|
+
if (typeof nodeVersion === "string" && nodeVersion.trim())
|
|
2704
|
+
return nodeVersion.trim();
|
|
2705
|
+
const identityVersion = identity?.version;
|
|
2706
|
+
if (typeof identityVersion === "string" && identityVersion.trim())
|
|
2707
|
+
return identityVersion.trim();
|
|
2708
|
+
}
|
|
2709
|
+
return manifestVersion?.trim() || void 0;
|
|
2710
|
+
}
|
|
2711
|
+
function parseManifest(text) {
|
|
2712
|
+
try {
|
|
2713
|
+
return JSON.parse(text);
|
|
2714
|
+
} catch {
|
|
2715
|
+
return void 0;
|
|
2716
|
+
}
|
|
2717
|
+
}
|
|
2699
2718
|
function isStoreNodeHiddenFromPalette(node, durableFunctionsEnabled = false) {
|
|
2700
2719
|
return isNodeTypeHiddenFromPalette(
|
|
2701
2720
|
getStoreNodeType(node, false),
|
|
@@ -3859,6 +3878,10 @@ function StoreNodeDetail({ node, onBack }) {
|
|
|
3859
3878
|
const installedVersion = installation?.installedVersion;
|
|
3860
3879
|
const installationId = installation?.installationId;
|
|
3861
3880
|
const latestVersion = node.manifestVersion;
|
|
3881
|
+
const displayVersion = storeNodeDisplayVersion(
|
|
3882
|
+
node.manifest,
|
|
3883
|
+
node.manifestVersion
|
|
3884
|
+
);
|
|
3862
3885
|
const hasUpdate = isInstalled && !!installedVersion && !!latestVersion && installedVersion !== latestVersion;
|
|
3863
3886
|
const isFree = node.pricingModel === "FREE";
|
|
3864
3887
|
const isPurchased = node.isPurchased === true;
|
|
@@ -3926,7 +3949,7 @@ function StoreNodeDetail({ node, onBack }) {
|
|
|
3926
3949
|
"Node updated!"
|
|
3927
3950
|
),
|
|
3928
3951
|
{
|
|
3929
|
-
description: `${node.name} updated to v${latestVersion}.`
|
|
3952
|
+
description: `${node.name} updated to v${displayVersion ?? latestVersion}.`
|
|
3930
3953
|
}
|
|
3931
3954
|
);
|
|
3932
3955
|
await refreshAvailableNodes();
|
|
@@ -4118,7 +4141,7 @@ function StoreNodeDetail({ node, onBack }) {
|
|
|
4118
4141
|
),
|
|
4119
4142
|
" ",
|
|
4120
4143
|
"v",
|
|
4121
|
-
latestVersion
|
|
4144
|
+
displayVersion ?? latestVersion
|
|
4122
4145
|
]
|
|
4123
4146
|
}
|
|
4124
4147
|
),
|
|
@@ -4142,7 +4165,7 @@ function StoreNodeDetail({ node, onBack }) {
|
|
|
4142
4165
|
"fluidgrids.builder.storeNodeDetail.installedBadge",
|
|
4143
4166
|
"Installed"
|
|
4144
4167
|
),
|
|
4145
|
-
installedVersion ? ` v${installedVersion}` : ""
|
|
4168
|
+
installedVersion ? ` v${displayVersion ?? installedVersion}` : ""
|
|
4146
4169
|
]
|
|
4147
4170
|
}
|
|
4148
4171
|
),
|
|
@@ -4188,12 +4211,17 @@ function StoreNodeDetail({ node, onBack }) {
|
|
|
4188
4211
|
/* @__PURE__ */ jsx(Download, { className: "size-3" }),
|
|
4189
4212
|
formatDownloads(node.downloads ?? 0)
|
|
4190
4213
|
] }),
|
|
4191
|
-
|
|
4214
|
+
displayVersion && /* @__PURE__ */ jsxs("span", { className: "opacity-80", children: [
|
|
4192
4215
|
"v",
|
|
4193
|
-
|
|
4216
|
+
displayVersion
|
|
4194
4217
|
] })
|
|
4195
4218
|
] }),
|
|
4196
|
-
node.description && /* @__PURE__ */ jsx(
|
|
4219
|
+
(node.longDescription || node.description) && /* @__PURE__ */ jsx(
|
|
4220
|
+
StoreNodeDescription,
|
|
4221
|
+
{
|
|
4222
|
+
text: node.longDescription || node.description || ""
|
|
4223
|
+
}
|
|
4224
|
+
),
|
|
4197
4225
|
(isInstalled || isPrebuilt) && /* @__PURE__ */ jsx("div", { className: "mb-4 -mx-3 rounded-lg border border-border/50", children: /* @__PURE__ */ jsx(StoreNodeOperations, { nodeType }) }),
|
|
4198
4226
|
node.publisher && /* @__PURE__ */ jsxs("div", { className: "mb-4 p-2.5 rounded-lg bg-muted/50 flex items-center gap-2", children: [
|
|
4199
4227
|
/* @__PURE__ */ jsx("div", { className: "size-6 rounded bg-muted flex items-center justify-center shrink-0", children: /* @__PURE__ */ jsx("span", { className: "text-xs font-bold text-muted-foreground", children: node.publisher.name.charAt(0) }) }),
|
|
@@ -4243,7 +4271,7 @@ function StoreNodeDetail({ node, onBack }) {
|
|
|
4243
4271
|
),
|
|
4244
4272
|
" ",
|
|
4245
4273
|
"v",
|
|
4246
|
-
latestVersion
|
|
4274
|
+
displayVersion ?? latestVersion
|
|
4247
4275
|
] })
|
|
4248
4276
|
}
|
|
4249
4277
|
),
|
|
@@ -4314,7 +4342,7 @@ function StoreNodeDetail({ node, onBack }) {
|
|
|
4314
4342
|
"fluidgrids.builder.storeNodeDetail.versionLatest",
|
|
4315
4343
|
"Latest"
|
|
4316
4344
|
),
|
|
4317
|
-
latestVersion ? ` (${latestVersion})` : ""
|
|
4345
|
+
latestVersion ? ` (${displayVersion ?? latestVersion})` : ""
|
|
4318
4346
|
] }),
|
|
4319
4347
|
olderVersions.map((v) => /* @__PURE__ */ jsxs("option", { value: v.version, children: [
|
|
4320
4348
|
v.version,
|
|
@@ -4805,7 +4833,7 @@ function DesktopSidebarFragment({
|
|
|
4805
4833
|
);
|
|
4806
4834
|
if (nodesToInstall.length > 0) {
|
|
4807
4835
|
const { getGlobalStoreClient: getStore } = await import('./global-client-PJ5LANJA.js');
|
|
4808
|
-
const { InstallWorkflowNodeDocument: InstallWorkflowNodeDocument2 } = await import('./global-operations-
|
|
4836
|
+
const { InstallWorkflowNodeDocument: InstallWorkflowNodeDocument2 } = await import('./global-operations-RHGX2BNA.js');
|
|
4809
4837
|
const { getFluidGridsConfig: getFluidGridsConfig3 } = await import('./config-66FUPSG5.js');
|
|
4810
4838
|
const storeClient = getStore();
|
|
4811
4839
|
const cfg = getFluidGridsConfig3();
|
|
@@ -4925,7 +4953,7 @@ function DesktopSidebarFragment({
|
|
|
4925
4953
|
});
|
|
4926
4954
|
try {
|
|
4927
4955
|
const { getGlobalStoreClient: getStoreClient } = await import('./global-client-PJ5LANJA.js');
|
|
4928
|
-
const { InstallWorkflowNodeDocument: InstallWorkflowNodeDocument2 } = await import('./global-operations-
|
|
4956
|
+
const { InstallWorkflowNodeDocument: InstallWorkflowNodeDocument2 } = await import('./global-operations-RHGX2BNA.js');
|
|
4929
4957
|
const storeClient = getStoreClient();
|
|
4930
4958
|
if (storeClient) {
|
|
4931
4959
|
throwIfResultError(
|
|
@@ -20497,12 +20525,12 @@ function EditLeaseBanner() {
|
|
|
20497
20525
|
);
|
|
20498
20526
|
}
|
|
20499
20527
|
var LazyNodeDetailView = lazy(
|
|
20500
|
-
() => import('./node-detail-view-
|
|
20528
|
+
() => import('./node-detail-view-PLTLXAQA.js').then((m) => ({
|
|
20501
20529
|
default: m.NodeDetailView
|
|
20502
20530
|
}))
|
|
20503
20531
|
);
|
|
20504
20532
|
var LazyQuickConfigPanel = lazy(
|
|
20505
|
-
() => import('./quick-config-panel-
|
|
20533
|
+
() => import('./quick-config-panel-M777ZZ46.js').then((m) => ({
|
|
20506
20534
|
default: m.QuickConfigPanel
|
|
20507
20535
|
}))
|
|
20508
20536
|
);
|
|
@@ -20564,7 +20592,7 @@ var FlowBuilder = ({ readOnly = false }) => {
|
|
|
20564
20592
|
);
|
|
20565
20593
|
useEffect(() => {
|
|
20566
20594
|
let cancelled = false;
|
|
20567
|
-
void import('./agentTools-
|
|
20595
|
+
void import('./agentTools-E3ZN3WTC.js').then(({ createBuilderAgentTools }) => {
|
|
20568
20596
|
if (cancelled) return;
|
|
20569
20597
|
setAgentTools(
|
|
20570
20598
|
createBuilderAgentTools({
|
|
@@ -20590,6 +20618,7 @@ var FlowBuilder = ({ readOnly = false }) => {
|
|
|
20590
20618
|
];
|
|
20591
20619
|
})
|
|
20592
20620
|
);
|
|
20621
|
+
const canvasEdges = useCanvasEdges(nodes, edges);
|
|
20593
20622
|
const closeQuickConfig = useFlowStore((s) => s.actions.quickConfig.close);
|
|
20594
20623
|
const ndvOpen = useFlowStore((s) => !!s.workflow.ndv);
|
|
20595
20624
|
const quickConfigOpen = useFlowStore((s) => !!s.workflow.quickConfig);
|
|
@@ -20713,7 +20742,7 @@ var FlowBuilder = ({ readOnly = false }) => {
|
|
|
20713
20742
|
nodes,
|
|
20714
20743
|
onNodesChange: handleNodesChange,
|
|
20715
20744
|
edgeTypes: edgeTypes2,
|
|
20716
|
-
edges,
|
|
20745
|
+
edges: canvasEdges,
|
|
20717
20746
|
onEdgesChange,
|
|
20718
20747
|
...canvasEditingProps(editingBlocked, {
|
|
20719
20748
|
onConnect,
|
|
@@ -1336,6 +1336,30 @@ NodeCardBody.displayName = "NodeCardBody";
|
|
|
1336
1336
|
function isDynamicSpec(spec) {
|
|
1337
1337
|
return !!spec && !Array.isArray(spec) && typeof spec.fromStateRecord === "string";
|
|
1338
1338
|
}
|
|
1339
|
+
function hasNodeManifest(nodeData) {
|
|
1340
|
+
if (typeof nodeData !== "object" || nodeData === null) return false;
|
|
1341
|
+
const manifest = nodeData;
|
|
1342
|
+
return [
|
|
1343
|
+
"operations",
|
|
1344
|
+
"outputHandles",
|
|
1345
|
+
"inputHandles",
|
|
1346
|
+
"nodeAdapters",
|
|
1347
|
+
"name"
|
|
1348
|
+
].some((key) => manifest[key] !== void 0 && manifest[key] !== null);
|
|
1349
|
+
}
|
|
1350
|
+
function handleManifestOf(data, registryNodeData) {
|
|
1351
|
+
const own = data?.nodeData;
|
|
1352
|
+
if (hasNodeManifest(own)) return own;
|
|
1353
|
+
return registryNodeData ?? own;
|
|
1354
|
+
}
|
|
1355
|
+
function nodeAdaptersOf(nodeData, registryNodeData) {
|
|
1356
|
+
const manifest = handleManifestOf(
|
|
1357
|
+
{ nodeData },
|
|
1358
|
+
registryNodeData
|
|
1359
|
+
);
|
|
1360
|
+
const adapters = manifest?.nodeAdapters;
|
|
1361
|
+
return Array.isArray(adapters) ? adapters : void 0;
|
|
1362
|
+
}
|
|
1339
1363
|
var DEFAULT_HANDLES = [{ id: "source", label: "" }];
|
|
1340
1364
|
var BUILTIN_OUTPUT_HANDLES = {
|
|
1341
1365
|
"internal:wait-for-signal": [
|
|
@@ -1343,8 +1367,8 @@ var BUILTIN_OUTPUT_HANDLES = {
|
|
|
1343
1367
|
{ id: "timedOut", label: "Timed out", tone: "warning" }
|
|
1344
1368
|
]
|
|
1345
1369
|
};
|
|
1346
|
-
function resolveOutputHandles(data, nodeType) {
|
|
1347
|
-
const nodeData = data
|
|
1370
|
+
function resolveOutputHandles(data, nodeType, registryNodeData) {
|
|
1371
|
+
const nodeData = handleManifestOf(data, registryNodeData);
|
|
1348
1372
|
const operationsBlob = Array.isArray(nodeData?.operations) ? void 0 : nodeData?.operations;
|
|
1349
1373
|
const operationList = Array.isArray(nodeData?.operations) ? nodeData.operations : operationsBlob?.operations ?? [];
|
|
1350
1374
|
const operationName = typeof data?.operation_name === "string" ? data.operation_name : void 0;
|
|
@@ -1362,12 +1386,34 @@ function resolveOutputHandles(data, nodeType) {
|
|
|
1362
1386
|
return spec;
|
|
1363
1387
|
}
|
|
1364
1388
|
var DEFAULT_INPUT_HANDLES = [{ id: "target", label: "" }];
|
|
1365
|
-
function resolveInputHandles(data) {
|
|
1366
|
-
const nodeData = data
|
|
1389
|
+
function resolveInputHandles(data, registryNodeData) {
|
|
1390
|
+
const nodeData = handleManifestOf(data, registryNodeData);
|
|
1367
1391
|
const spec = nodeData?.inputHandles ?? nodeData?.operations?.inputHandles;
|
|
1368
1392
|
if (!Array.isArray(spec) || spec.length === 0) return DEFAULT_INPUT_HANDLES;
|
|
1369
1393
|
return spec;
|
|
1370
1394
|
}
|
|
1395
|
+
var PLAIN_OUTPUT_IDS = /* @__PURE__ */ new Set(["source", "output"]);
|
|
1396
|
+
function landingSourceHandle(portIds, stored) {
|
|
1397
|
+
if (!stored) return portIds[0] ?? null;
|
|
1398
|
+
if (portIds.includes(stored)) return stored;
|
|
1399
|
+
if (!PLAIN_OUTPUT_IDS.has(stored)) return null;
|
|
1400
|
+
const plain = portIds.filter((id) => PLAIN_OUTPUT_IDS.has(id));
|
|
1401
|
+
return plain.length === 1 ? plain[0] : null;
|
|
1402
|
+
}
|
|
1403
|
+
function alignPlainOutputEdges(edges, sourcePortIds) {
|
|
1404
|
+
let changed = false;
|
|
1405
|
+
const aligned = edges.map((edge) => {
|
|
1406
|
+
const stored = edge.sourceHandle;
|
|
1407
|
+
if (!stored || !PLAIN_OUTPUT_IDS.has(stored)) return edge;
|
|
1408
|
+
const ports = sourcePortIds(edge.source);
|
|
1409
|
+
if (!ports) return edge;
|
|
1410
|
+
const landing = landingSourceHandle(ports, stored);
|
|
1411
|
+
if (!landing || landing === stored) return edge;
|
|
1412
|
+
changed = true;
|
|
1413
|
+
return { ...edge, sourceHandle: landing };
|
|
1414
|
+
});
|
|
1415
|
+
return changed ? aligned : edges;
|
|
1416
|
+
}
|
|
1371
1417
|
function outputHandlesSpacerHeight(count) {
|
|
1372
1418
|
return count > 2 ? (count - 2) * 26 : 0;
|
|
1373
1419
|
}
|
|
@@ -1953,4 +1999,4 @@ function LogicNodeCard({
|
|
|
1953
1999
|
);
|
|
1954
2000
|
}
|
|
1955
2001
|
|
|
1956
|
-
export { CODE_WORKFLOW_NODE_TYPE, DEFAULT_STICKY_COLOR, InputHandles, LogicNodeCard, NODE_OPERATION_DRAG_DATA_FORMAT, NODE_TYPE_DRAG_DATA_FORMAT, NodeCard, NodeCardBody, NodeCardHeader, NodeTypeIcon, OutputHandles, STICKY_COLORS, STICKY_NOTE_TYPE, WAIT_FOR_SIGNAL_NODE_TYPE, changedSourceFiles, childRunIdOf, defaultSourcePath, diagnosticsByPath, interfaceFields, interfaceHandlers, isEditableSourcePath, isImageIcon, isNodeTrigger, isTriggerOperation, mergeStickyNotes, nodeAccent, outputHandlesSpacerHeight, partitionStickyNotes, projectLanguage, readCodeWorkflowState, readSignalName, resolveInputHandles, resolveOperationName, resolveOutputHandles, resolveStickyColor, sourceLanguageOf, stickySurfaceStyle, synchronizeOperationUpdate, useFlowStore, useIsValidConnection };
|
|
2002
|
+
export { CODE_WORKFLOW_NODE_TYPE, DEFAULT_STICKY_COLOR, InputHandles, LogicNodeCard, NODE_OPERATION_DRAG_DATA_FORMAT, NODE_TYPE_DRAG_DATA_FORMAT, NodeCard, NodeCardBody, NodeCardHeader, NodeTypeIcon, OutputHandles, STICKY_COLORS, STICKY_NOTE_TYPE, WAIT_FOR_SIGNAL_NODE_TYPE, alignPlainOutputEdges, changedSourceFiles, childRunIdOf, defaultSourcePath, diagnosticsByPath, hasNodeManifest, interfaceFields, interfaceHandlers, isEditableSourcePath, isImageIcon, isNodeTrigger, isTriggerOperation, landingSourceHandle, mergeStickyNotes, nodeAccent, nodeAdaptersOf, outputHandlesSpacerHeight, partitionStickyNotes, projectLanguage, readCodeWorkflowState, readSignalName, resolveInputHandles, resolveOperationName, resolveOutputHandles, resolveStickyColor, sourceLanguageOf, stickySurfaceStyle, synchronizeOperationUpdate, useFlowStore, useIsValidConnection };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useFluidGridsAnalytics, emitWorkflowCreated, emitRunStarted, runTriggerFromMode, openRunQuotaUpgradePrompt, emitWorkflowPublished } from './chunk-
|
|
1
|
+
import { useFluidGridsAnalytics, emitWorkflowCreated, emitRunStarted, runTriggerFromMode, openRunQuotaUpgradePrompt, emitWorkflowPublished } from './chunk-W3PG3KXA.js';
|
|
2
2
|
import { WorkflowDefinitionsDocument, WorkflowDefinitionDocument, WorkflowVersionsDocument, CreateWorkflowDefinitionDocument, ImportWorkflowDocument, PreviewN8nImportDocument, UpdateWorkflowDefinitionDocument, CreateWorkflowVersionDocument, DeleteWorkflowDefinitionDocument, DuplicateWorkflowDocument, RestoreWorkflowVersionDocument, TriggerWorkflowDocument, WorkflowRunsDocument, WorkflowRunDocument, DashboardSummaryDocument, ActivateWorkflowDefinitionDocument, DeactivateWorkflowDefinitionDocument } from './chunk-UDS2FA24.js';
|
|
3
3
|
import { useTr } from './chunk-UULVIT25.js';
|
|
4
4
|
import { getFluidGridsClient } from './chunk-PDODDDHY.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { isGuidedTourIntent, pickGuidedTour, withoutGuidedTourIntent, isCreateIntent, decideMissingWorkflow } from './chunk-NRI7AUBH.js';
|
|
2
2
|
import { registerLiveCanvasHandler } from './chunk-PIKYQE7P.js';
|
|
3
|
-
import { useWorkflowReloadStore, releaseLeaseKeptForReload, useInstalledNodes, buildNodeCheck, FlowBuilderPage, buildRequiredNodeTypes } from './chunk-
|
|
4
|
-
import { paramsFromOperation } from './chunk-
|
|
5
|
-
import { CreateWorkflowRefusalDialog } from './chunk-
|
|
6
|
-
import { canvasFromDefinition } from './chunk-
|
|
7
|
-
import { useLazyWorkflowDefinition, useCreateWorkflow } from './chunk-
|
|
8
|
-
import { refetchStoreNodes, BILLING_PLANS_PATH, ensureNodeConfigsLoaded, codeBuildIdOf, rememberRevision, blankWorkflowCreateInput, classifyCreateRefusal, NODE_CONFIGS, resolveNodeOperation, createConfiguredNode, useSaveStatusStore, workflowFingerprint, registerWorkflowNodeTypes } from './chunk-
|
|
9
|
-
import { useFlowStore, mergeStickyNotes } from './chunk-
|
|
3
|
+
import { useWorkflowReloadStore, releaseLeaseKeptForReload, useInstalledNodes, buildNodeCheck, FlowBuilderPage, buildRequiredNodeTypes } from './chunk-JPHEF4FA.js';
|
|
4
|
+
import { paramsFromOperation } from './chunk-33734243.js';
|
|
5
|
+
import { CreateWorkflowRefusalDialog } from './chunk-GWVVENHM.js';
|
|
6
|
+
import { canvasFromDefinition } from './chunk-7IX4SWSA.js';
|
|
7
|
+
import { useLazyWorkflowDefinition, useCreateWorkflow } from './chunk-LNJNV3KS.js';
|
|
8
|
+
import { refetchStoreNodes, BILLING_PLANS_PATH, ensureNodeConfigsLoaded, codeBuildIdOf, rememberRevision, blankWorkflowCreateInput, classifyCreateRefusal, NODE_CONFIGS, resolveNodeOperation, createConfiguredNode, useSaveStatusStore, workflowFingerprint, registerWorkflowNodeTypes } from './chunk-W3PG3KXA.js';
|
|
9
|
+
import { useFlowStore, mergeStickyNotes } from './chunk-JT6NAHAX.js';
|
|
10
10
|
import { WorkflowDefinitionDocument } from './chunk-UDS2FA24.js';
|
|
11
11
|
import { useTr } from './chunk-UULVIT25.js';
|
|
12
12
|
import { getFluidGridsClient } from './chunk-PDODDDHY.js';
|
|
@@ -1015,7 +1015,7 @@ function WorkflowItem({
|
|
|
1015
1015
|
setInstallErrors([]);
|
|
1016
1016
|
try {
|
|
1017
1017
|
const { getGlobalStoreClient } = await import('./global-client-PJ5LANJA.js');
|
|
1018
|
-
const { InstallWorkflowNodeDocument } = await import('./global-operations-
|
|
1018
|
+
const { InstallWorkflowNodeDocument } = await import('./global-operations-RHGX2BNA.js');
|
|
1019
1019
|
const { getFluidGridsConfig: getFluidGridsConfig2 } = await import('./config-66FUPSG5.js');
|
|
1020
1020
|
const storeClient = getGlobalStoreClient();
|
|
1021
1021
|
const cfg = getFluidGridsConfig2();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { useNodeSelectedEvent, Card, FluidGridsMark } from './chunk-
|
|
1
|
+
import { useNodeSelectedEvent, Card, FluidGridsMark } from './chunk-JPHEF4FA.js';
|
|
2
2
|
import { Input } from './chunk-IEVSFCFS.js';
|
|
3
|
-
import { useWorkflowDefinition } from './chunk-
|
|
3
|
+
import { useWorkflowDefinition } from './chunk-LNJNV3KS.js';
|
|
4
4
|
import { Button } from './chunk-QJAZXCFQ.js';
|
|
5
|
-
import { FluidGridsProvider } from './chunk-
|
|
6
|
-
import { useFlowStore } from './chunk-
|
|
5
|
+
import { FluidGridsProvider, useCanvasEdges } from './chunk-W3PG3KXA.js';
|
|
6
|
+
import { useFlowStore } from './chunk-JT6NAHAX.js';
|
|
7
7
|
import { cn } from './chunk-JL7CASN5.js';
|
|
8
8
|
import { useTr } from './chunk-UULVIT25.js';
|
|
9
9
|
import { useState, useRef, useEffect, useCallback } from 'react';
|
|
@@ -174,6 +174,7 @@ function FlowBuilderInner({
|
|
|
174
174
|
s.actions.edges.onConnect
|
|
175
175
|
])
|
|
176
176
|
);
|
|
177
|
+
const canvasEdges = useCanvasEdges(nodes, edges);
|
|
177
178
|
const [workflowName, setWorkflowName] = useState(
|
|
178
179
|
workflow?.name || "Untitled Workflow"
|
|
179
180
|
);
|
|
@@ -326,7 +327,7 @@ function FlowBuilderInner({
|
|
|
326
327
|
ReactFlow,
|
|
327
328
|
{
|
|
328
329
|
nodes,
|
|
329
|
-
edges,
|
|
330
|
+
edges: canvasEdges,
|
|
330
331
|
onNodesChange: readonly ? void 0 : onNodesChange,
|
|
331
332
|
onEdgesChange: readonly ? void 0 : onEdgesChange,
|
|
332
333
|
onConnect: readonly ? void 0 : onConnect,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ActionPoliciesTab, BUDGET_DIMENSIONS, withBudgetLimit, budgetInputValue, withBudgetMode, checkCodecServerUrl } from './chunk-5NZANNKX.js';
|
|
2
|
-
import { LogStreamingTab } from './chunk-
|
|
3
|
-
import { AgentsTab, useConnections } from './chunk-
|
|
2
|
+
import { LogStreamingTab } from './chunk-TMXP27KI.js';
|
|
3
|
+
import { AgentsTab, useConnections } from './chunk-5DVFEXZD.js';
|
|
4
4
|
import { useResource, fetchPauseRules, FieldError, fetchSearchAttributes, StatusPill, NativeSelect, fetchArchiveSettings, fetchCodecServerSettings, deletePauseRule, createPauseRule, deleteSearchAttribute, createSearchAttribute, saveArchiveSettings, clearArchiveSettings, saveCodecServerSettings } from './chunk-VXVLQ3LX.js';
|
|
5
5
|
import { FluidGridsDocsLink } from './chunk-4VJ3MDOV.js';
|
|
6
6
|
import { useFluidGridsPermission, FLUIDGRIDS_PERMISSIONS } from './chunk-ERT444RG.js';
|
|
7
|
-
import { useFluidGridsFlag, FLUIDGRIDS_FLAGS, usePhaseCFlags, useSaveStatusStore, findSaveConflict, useDurableParityEnabled } from './chunk-
|
|
8
|
-
import { useFlowStore } from './chunk-
|
|
7
|
+
import { useFluidGridsFlag, FLUIDGRIDS_FLAGS, usePhaseCFlags, useSaveStatusStore, findSaveConflict, useDurableParityEnabled } from './chunk-W3PG3KXA.js';
|
|
8
|
+
import { useFlowStore } from './chunk-JT6NAHAX.js';
|
|
9
9
|
import { getGlobalStoreClient } from './chunk-TYI2XOSI.js';
|
|
10
10
|
import { useWorkflowDefinitionQuery, useUpdateWorkflowDefinitionMutation, useWorkflowDefinitionsQuery, ManagedAiWorkspacePolicyDocument, UpdateManagedAiWorkspacePolicyDocument, DurableHistoryCapsDocument, UpdateDurableHistoryCapsDocument } from './chunk-UDS2FA24.js';
|
|
11
11
|
import { useTr } from './chunk-UULVIT25.js';
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { useDurableRunFields, useRunHistory, useDeterminismStatus, useRunStackTrace, RunHistoryView, SignalRunDialog, terminateDurableRun } from './chunk-
|
|
2
|
-
import { useDurableParityRunFields, hasAgentNodeState, agentNodeTraces, orderNodesByExecution, useRunPending, useRunMetadata, ExecutionStatusBadge, NodeTimeline, RunLogViewer, NodeStatusBadge, setRunVersioningOverride } from './chunk-
|
|
3
|
-
import { useExecution, useExecutionActions, useAutoRefresh, runChainLinks, shortRunId, callbackTone, parseMetadataDefinition, overrideRequestOf } from './chunk-
|
|
1
|
+
import { useDurableRunFields, useRunHistory, useDeterminismStatus, useRunStackTrace, RunHistoryView, SignalRunDialog, terminateDurableRun } from './chunk-7F3E4OCW.js';
|
|
2
|
+
import { useDurableParityRunFields, hasAgentNodeState, agentNodeTraces, orderNodesByExecution, useRunPending, useRunMetadata, ExecutionStatusBadge, NodeTimeline, RunLogViewer, NodeStatusBadge, setRunVersioningOverride } from './chunk-2VT5WVI3.js';
|
|
3
|
+
import { useExecution, useExecutionActions, useAutoRefresh, runChainLinks, shortRunId, callbackTone, parseMetadataDefinition, overrideRequestOf } from './chunk-H6DN6XOI.js';
|
|
4
4
|
import { fetchRunFailureClusters, OPEN_STATUSES, dismissRunFailureCluster, BUCKET_LABELS } from './chunk-GA3DS2ZJ.js';
|
|
5
5
|
import { aiCost, formatTokens, modelLabel } from './chunk-NZAYYUQ4.js';
|
|
6
6
|
import { useRunPolicyDecisions, RunPolicyDecisions, checkCodecServerUrl, containsEncodedPayload, formatBudgetUsd, isEncodedPayload, encodedPayloadBytes, decodePayloads, CodecServerError } from './chunk-5NZANNKX.js';
|
|
7
7
|
import { EntityTagPicker, canSaveRunAsTestCase, useWorkflowProposal, WorkflowProposalCard, MAX_CASE_NAME, saveRunAsTestCase } from './chunk-POCNK7FY.js';
|
|
8
8
|
import { buildNodeDisplayMap, formatRunVersion, nodeDisplayTitle } from './chunk-6NSPCR5C.js';
|
|
9
9
|
import { AiCreditBalanceSlot } from './chunk-Y53CVZVV.js';
|
|
10
|
-
import { useWorkflowVersions } from './chunk-
|
|
10
|
+
import { useWorkflowVersions } from './chunk-LNJNV3KS.js';
|
|
11
11
|
import { readTyped, writeTyped, useResource, fetchCodecServerSettings, fetchRunControlFields, fetchPauseRules, RUN_CONTROL_DIALOG_STYLE, fetchRunHistoryArchive, parseJsonInput, NativeSelect, JsonField, FieldError, StatusPill, JsonBlock, fetchSignalTokens, parseJsonObjectInput, queryRun, revokeSignalToken, upsertRunSearchAttributes, newRunControlId, fetchRunUpdate, createSignalToken, pauseActivities, unpauseActivities, resetActivities, updateActivityOptions, completeActivityById, failActivityById, sendRunUpdate, resetRunToLastCleanTask, resetRun } from './chunk-VXVLQ3LX.js';
|
|
12
12
|
import { useFluidGridsPermission, FLUIDGRIDS_PERMISSIONS, SdkPermissionButton } from './chunk-ERT444RG.js';
|
|
13
|
-
import { useDurableFunctionNodesEnabled, useDurableParityEnabled, usePhaseCFlags, runSignalTargets, canSignalRun, formatElapsedMs, runDurationMs, useWorkflowTestsEnabled, durableInterfaceOf } from './chunk-
|
|
13
|
+
import { useDurableFunctionNodesEnabled, useDurableParityEnabled, usePhaseCFlags, runSignalTargets, canSignalRun, formatElapsedMs, runDurationMs, useWorkflowTestsEnabled, durableInterfaceOf } from './chunk-W3PG3KXA.js';
|
|
14
14
|
import { TaskQueuesDocument, TaskQueueStatsDocument, CreateTaskQueueDocument, UpdateTaskQueueDocument, DeleteTaskQueueDocument, WorkflowWorkersDocument, WorkerTokensDocument, CreateWorkerTokenDocument, RotateWorkerTokenDocument, DeleteWorkerTokenDocument, SetWorkerTokenConnectionAllowlistDocument, RunLogsDocument, RunLogAppendedDocument, ExplainRunDocument, RunAiUsageDocument } from './chunk-UDS2FA24.js';
|
|
15
15
|
import { useTr } from './chunk-UULVIT25.js';
|
|
16
16
|
import { getFluidGridsClient, getFluidGridsClientSafe } from './chunk-PDODDDHY.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { TEMPLATE_STORE_CATEGORIES, useImportWorkflowTemplate, FlowBuilderPage, useWorkflowTemplates, TemplateCard, useTemplateSubmissions, usePublishToStore } from './chunk-
|
|
2
|
-
import { QuotaExhaustedDialog } from './chunk-
|
|
1
|
+
import { TEMPLATE_STORE_CATEGORIES, useImportWorkflowTemplate, FlowBuilderPage, useWorkflowTemplates, TemplateCard, useTemplateSubmissions, usePublishToStore } from './chunk-JPHEF4FA.js';
|
|
2
|
+
import { QuotaExhaustedDialog } from './chunk-GWVVENHM.js';
|
|
3
3
|
import { templatesControls } from './chunk-FNZZ5JJL.js';
|
|
4
|
-
import { useWorkflowDefinitions, useDuplicateWorkflow, useLazyWorkflowDefinition } from './chunk-
|
|
4
|
+
import { useWorkflowDefinitions, useDuplicateWorkflow, useLazyWorkflowDefinition } from './chunk-LNJNV3KS.js';
|
|
5
5
|
import { useFluidGridsPageControls } from './chunk-PJAWNFJV.js';
|
|
6
6
|
import { FluidGridsDocsLink } from './chunk-4VJ3MDOV.js';
|
|
7
7
|
import { SdkPermissionButton, FLUIDGRIDS_PERMISSIONS } from './chunk-ERT444RG.js';
|
|
8
|
-
import { BILLING_PLANS_PATH, useFluidGridsAnalytics, emitTemplateUsed, isQuotaExhaustedFailure } from './chunk-
|
|
8
|
+
import { BILLING_PLANS_PATH, useFluidGridsAnalytics, emitTemplateUsed, isQuotaExhaustedFailure } from './chunk-W3PG3KXA.js';
|
|
9
9
|
import { useTr } from './chunk-UULVIT25.js';
|
|
10
10
|
import { useState, useEffect, useCallback, useMemo } from 'react';
|
|
11
11
|
import { useParams, useNavigate } from 'react-router';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LOG_STREAM_DESTINATIONS, CREATE_LOG_STREAM_DESTINATION, UPDATE_LOG_STREAM_DESTINATION, DELETE_LOG_STREAM_DESTINATION, TEST_LOG_STREAM_DESTINATION, REPLAY_WORKFLOW_RUN, RETRY_WORKFLOW_RUNS, OBSERVABILITY_DASHBOARD_SUMMARY, OBSERVABILITY_FAILED_RUNS, OBSERVABILITY_DATA_SINKS, OBSERVABILITY_DATA_SINK_DATA } from './chunk-5ERAJC2I.js';
|
|
2
|
-
import { useFluidGridsAnalytics, emitRunStarted, openRunQuotaUpgradePrompt, useFluidGridsFlag, FLUIDGRIDS_FLAGS } from './chunk-
|
|
2
|
+
import { useFluidGridsAnalytics, emitRunStarted, openRunQuotaUpgradePrompt, useFluidGridsFlag, FLUIDGRIDS_FLAGS } from './chunk-W3PG3KXA.js';
|
|
3
3
|
import { useTr } from './chunk-UULVIT25.js';
|
|
4
4
|
import { getFluidGridsClient } from './chunk-PDODDDHY.js';
|
|
5
5
|
import { throwIfResultError, describeOperationError, emitFluidGridsEvent } from './chunk-JKLZ6YZ3.js';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { useBuilderReadOnly } from './chunk-SDZEAIIE.js';
|
|
2
|
-
import { STICKY_NOTE_TYPE, useFlowStore, resolveStickyColor, STICKY_COLORS, stickySurfaceStyle, resolveOperationName, synchronizeOperationUpdate, isNodeTrigger, resolveOutputHandles, resolveInputHandles, outputHandlesSpacerHeight, WAIT_FOR_SIGNAL_NODE_TYPE, CODE_WORKFLOW_NODE_TYPE, readSignalName, LogicNodeCard, NodeCard, NodeCardHeader, NodeCardBody, InputHandles, OutputHandles, NodeTypeIcon, nodeAccent, readCodeWorkflowState, interfaceFields, interfaceHandlers, partitionStickyNotes, DEFAULT_STICKY_COLOR } from './chunk-
|
|
2
|
+
import { STICKY_NOTE_TYPE, useFlowStore, resolveStickyColor, STICKY_COLORS, stickySurfaceStyle, nodeAdaptersOf, resolveOperationName, synchronizeOperationUpdate, isNodeTrigger, resolveOutputHandles, resolveInputHandles, outputHandlesSpacerHeight, WAIT_FOR_SIGNAL_NODE_TYPE, CODE_WORKFLOW_NODE_TYPE, readSignalName, LogicNodeCard, NodeCard, NodeCardHeader, NodeCardBody, InputHandles, OutputHandles, hasNodeManifest, NodeTypeIcon, nodeAccent, readCodeWorkflowState, interfaceFields, interfaceHandlers, partitionStickyNotes, DEFAULT_STICKY_COLOR, alignPlainOutputEdges } from './chunk-JT6NAHAX.js';
|
|
3
3
|
import { getGlobalStoreClient, createGlobalStoreClient, setGlobalStoreClient, resetGlobalStoreClient } from './chunk-TYI2XOSI.js';
|
|
4
|
-
import { GetMyNodeInstallationsDocument } from './chunk-
|
|
4
|
+
import { GetMyNodeInstallationsDocument } from './chunk-4FPY66GH.js';
|
|
5
5
|
import { fetchAllNodeEndpointConfigs, NodeManifestDocument, ExecuteStepDocument, TriggerWorkflowDocument, RunFromNodeDocument, ExecutionDetailDocument, WorkflowRunDocument, UpdateWorkflowDefinitionDocument, CreateWorkflowDefinitionDocument, CreateWorkflowVersionDocument, WorkflowDefinitionDocument } from './chunk-UDS2FA24.js';
|
|
6
6
|
import { useTr, ENGLISH_FALLBACK_TRANSLATOR, FluidGridsTranslationProvider } from './chunk-UULVIT25.js';
|
|
7
7
|
import { waitForFluidGridsClient, getFluidGridsClient, getFluidGridsClientSafe, createFluidGridsClient, setFluidGridsClient, resetFluidGridsClient } from './chunk-PDODDDHY.js';
|
|
8
8
|
import { throwIfResultError, describeOperationError, emitFluidGridsEvent, emitOperationErrorEvent, emitRunCompletedOnce } from './chunk-JKLZ6YZ3.js';
|
|
9
9
|
import { getFluidGridsConfig, validateTrustedOrigin, resetFluidGridsExecutionState, resetFluidGridsConfig, setFluidGridsConfig } from './chunk-UEG2WC3G.js';
|
|
10
|
-
import { memo, createContext, useState, useRef, useEffect, useCallback, useMemo,
|
|
10
|
+
import { memo, createContext, useState, useRef, useEffect, useCallback, useMemo, useSyncExternalStore, useContext } from 'react';
|
|
11
11
|
import { useOptionalFeatureFlags } from '@burdenoff/fe-libs/shared/feature-flags';
|
|
12
12
|
import { dispatchUpgradePrompt } from '@burdenoff/fe-libs/shared/components';
|
|
13
13
|
import { nanoid as nanoid$1 } from 'nanoid/non-secure';
|
|
@@ -1356,6 +1356,43 @@ function runControlNodeSubtitle(tr, nodeType, state) {
|
|
|
1356
1356
|
return readSearchAttributesSummary(state);
|
|
1357
1357
|
return void 0;
|
|
1358
1358
|
}
|
|
1359
|
+
function useNodeRegistryRevision() {
|
|
1360
|
+
return useSyncExternalStore(
|
|
1361
|
+
onNodeTypesUpdate,
|
|
1362
|
+
getNodeRegistryRevision,
|
|
1363
|
+
getNodeRegistryRevision
|
|
1364
|
+
);
|
|
1365
|
+
}
|
|
1366
|
+
|
|
1367
|
+
// src/builder/hooks/use-bare-node-registry.ts
|
|
1368
|
+
function useNodeConnections(nodeType, nodeData) {
|
|
1369
|
+
const registryRevision = useNodeRegistryRevision();
|
|
1370
|
+
const registryManifest = hasNodeManifest(nodeData) ? void 0 : registryNodeData(nodeType);
|
|
1371
|
+
return {
|
|
1372
|
+
registryManifest,
|
|
1373
|
+
adapters: nodeAdaptersOf(nodeData, registryManifest),
|
|
1374
|
+
registryRevision
|
|
1375
|
+
};
|
|
1376
|
+
}
|
|
1377
|
+
function sourcePortIdsOf(node) {
|
|
1378
|
+
const data = typeof node.data === "object" && node.data !== null ? node.data : void 0;
|
|
1379
|
+
const registry = registryNodeData(node.type);
|
|
1380
|
+
const outputs = resolveOutputHandles(data, node.type, registry).map(
|
|
1381
|
+
(handle) => handle.id
|
|
1382
|
+
);
|
|
1383
|
+
const adapters = (nodeAdaptersOf(data?.nodeData, registry) ?? []).map((adapter) => adapter?.name).filter((name) => typeof name === "string" && !!name);
|
|
1384
|
+
return [...outputs, ...adapters];
|
|
1385
|
+
}
|
|
1386
|
+
function useCanvasEdges(nodes, edges) {
|
|
1387
|
+
const registryRevision = useNodeRegistryRevision();
|
|
1388
|
+
return useMemo(() => {
|
|
1389
|
+
const byId = new Map(nodes.map((node) => [node.id, node]));
|
|
1390
|
+
return alignPlainOutputEdges(edges, (nodeId) => {
|
|
1391
|
+
const node = byId.get(nodeId);
|
|
1392
|
+
return node ? sourcePortIdsOf(node) : void 0;
|
|
1393
|
+
});
|
|
1394
|
+
}, [nodes, edges, registryRevision]);
|
|
1395
|
+
}
|
|
1359
1396
|
function InfoRow({ label, value }) {
|
|
1360
1397
|
if (!value) return null;
|
|
1361
1398
|
return /* @__PURE__ */ jsxs("div", { className: "flex gap-2 text-sm", children: [
|
|
@@ -4368,6 +4405,7 @@ function SubNodeComponent({
|
|
|
4368
4405
|
nodeType
|
|
4369
4406
|
}) {
|
|
4370
4407
|
const meta = useMemo(() => getNodeDetail(nodeType), [nodeType]);
|
|
4408
|
+
const connections = useNodeConnections(nodeType, data?.nodeData);
|
|
4371
4409
|
const deleteNode = useDeleteNode();
|
|
4372
4410
|
const readOnly = useBuilderReadOnly();
|
|
4373
4411
|
const [showNodePropertiesOf] = useFlowStore(
|
|
@@ -4423,7 +4461,7 @@ function SubNodeComponent({
|
|
|
4423
4461
|
children: "\xD7"
|
|
4424
4462
|
}
|
|
4425
4463
|
),
|
|
4426
|
-
/* @__PURE__ */ jsx(AdapterConnectors, { nodeId: id, adapters:
|
|
4464
|
+
/* @__PURE__ */ jsx(AdapterConnectors, { nodeId: id, adapters: connections.adapters })
|
|
4427
4465
|
] })
|
|
4428
4466
|
);
|
|
4429
4467
|
}
|
|
@@ -4432,6 +4470,11 @@ var getNodeMetadata = (value) => {
|
|
|
4432
4470
|
function NodeComponent(props) {
|
|
4433
4471
|
const { id, isConnectable, selected, data, dragging } = props;
|
|
4434
4472
|
const tr = useTr();
|
|
4473
|
+
const connections = useNodeConnections(
|
|
4474
|
+
value?.type,
|
|
4475
|
+
data?.nodeData
|
|
4476
|
+
);
|
|
4477
|
+
const { registryManifest, registryRevision } = connections;
|
|
4435
4478
|
const docsUrl = useNodeDocsUrl(
|
|
4436
4479
|
value?.type,
|
|
4437
4480
|
data?.nodeData?.version || data?.version
|
|
@@ -4448,8 +4491,11 @@ var getNodeMetadata = (value) => {
|
|
|
4448
4491
|
const sourceNode = nodeLookup.get(edge.source);
|
|
4449
4492
|
if (!sourceNode) continue;
|
|
4450
4493
|
const sourceNodeData = sourceNode.data;
|
|
4451
|
-
const sourceAdapters =
|
|
4452
|
-
|
|
4494
|
+
const sourceAdapters = nodeAdaptersOf(
|
|
4495
|
+
sourceNodeData?.nodeData,
|
|
4496
|
+
registryNodeData(sourceNode.type)
|
|
4497
|
+
);
|
|
4498
|
+
if (sourceAdapters) {
|
|
4453
4499
|
const adapterNames = sourceAdapters.map((a) => a.name);
|
|
4454
4500
|
if (adapterNames.includes(edge.sourceHandle)) {
|
|
4455
4501
|
return true;
|
|
@@ -4457,7 +4503,7 @@ var getNodeMetadata = (value) => {
|
|
|
4457
4503
|
}
|
|
4458
4504
|
}
|
|
4459
4505
|
return false;
|
|
4460
|
-
}, [data?.isAdapterInstance, edges, id, nodeLookup]);
|
|
4506
|
+
}, [data?.isAdapterInstance, edges, id, nodeLookup, registryRevision]);
|
|
4461
4507
|
const nodeType = value?.type;
|
|
4462
4508
|
const meta = useMemo(() => getNodeDetail(nodeType), [nodeType]);
|
|
4463
4509
|
const durableEnabled = useDurableFunctionNodesEnabled();
|
|
@@ -4637,10 +4683,12 @@ var getNodeMetadata = (value) => {
|
|
|
4637
4683
|
);
|
|
4638
4684
|
const outputHandles = resolveOutputHandles(
|
|
4639
4685
|
data,
|
|
4640
|
-
value?.type
|
|
4686
|
+
value?.type,
|
|
4687
|
+
registryManifest
|
|
4641
4688
|
);
|
|
4642
4689
|
const inputHandles = resolveInputHandles(
|
|
4643
|
-
data
|
|
4690
|
+
data,
|
|
4691
|
+
registryManifest
|
|
4644
4692
|
);
|
|
4645
4693
|
const handleSpacer = outputHandlesSpacerHeight(
|
|
4646
4694
|
Math.max(outputHandles.length, inputHandles.length)
|
|
@@ -4690,13 +4738,7 @@ var getNodeMetadata = (value) => {
|
|
|
4690
4738
|
onCancelRename: handleCancelRename
|
|
4691
4739
|
}
|
|
4692
4740
|
),
|
|
4693
|
-
/* @__PURE__ */ jsx(
|
|
4694
|
-
AdapterConnectors,
|
|
4695
|
-
{
|
|
4696
|
-
nodeId: id,
|
|
4697
|
-
adapters: data?.nodeData?.nodeAdapters
|
|
4698
|
-
}
|
|
4699
|
-
),
|
|
4741
|
+
/* @__PURE__ */ jsx(AdapterConnectors, { nodeId: id, adapters: connections.adapters }),
|
|
4700
4742
|
stepGuard.dialog
|
|
4701
4743
|
] });
|
|
4702
4744
|
}
|
|
@@ -4770,13 +4812,7 @@ var getNodeMetadata = (value) => {
|
|
|
4770
4812
|
}
|
|
4771
4813
|
),
|
|
4772
4814
|
stepGuard.dialog,
|
|
4773
|
-
/* @__PURE__ */ jsx(
|
|
4774
|
-
AdapterConnectors,
|
|
4775
|
-
{
|
|
4776
|
-
nodeId: id,
|
|
4777
|
-
adapters: data?.nodeData?.nodeAdapters
|
|
4778
|
-
}
|
|
4779
|
-
)
|
|
4815
|
+
/* @__PURE__ */ jsx(AdapterConnectors, { nodeId: id, adapters: connections.adapters })
|
|
4780
4816
|
] });
|
|
4781
4817
|
}
|
|
4782
4818
|
return {
|
|
@@ -5011,6 +5047,11 @@ function liveInternalOperations(type) {
|
|
|
5011
5047
|
const operations = NODE_CONFIGS.find((c) => c.type === type)?.operations;
|
|
5012
5048
|
return Array.isArray(operations) && operations.length > 0 ? operations : void 0;
|
|
5013
5049
|
}
|
|
5050
|
+
function registryNodeData(type) {
|
|
5051
|
+
if (!type) return void 0;
|
|
5052
|
+
const manifest = NODE_CONFIGS.find((c) => c.type === type)?.defaultData?.nodeData;
|
|
5053
|
+
return manifest ? manifest : void 0;
|
|
5054
|
+
}
|
|
5014
5055
|
function ensureNodeConfigsLoaded() {
|
|
5015
5056
|
if (isInitialized) {
|
|
5016
5057
|
return Promise.resolve();
|
|
@@ -5119,4 +5160,4 @@ function createNodeWithDefaultData(type, data) {
|
|
|
5119
5160
|
return Object.assign(createNodeData(type, defaultData), data);
|
|
5120
5161
|
}
|
|
5121
5162
|
|
|
5122
|
-
export { AUTOSAVE_DEBOUNCE_MS, AUTOSAVE_RETRY_DELAYS_MS, AVAILABLE_NODES, BILLING_PLANS_PATH, DURABLE_FUNCTION_NODE_TYPES, EDIT_SESSION_ID, FLUIDGRIDS_FLAGS, FLUIDGRIDS_FLAG_DEFAULTS, FluidGridsContext, FluidGridsProvider, NODES_METADATA, NODE_CONFIGS, NODE_TYPES, PHASE_C_FLAGS_OFF, RUNS_QUOTA_NAME, RUN_CONTROL_NODE_TYPES, WORKFLOWS_QUOTA_NAME, WORKFLOW_TEST_NODE_TYPES, autosaveAllowedFor, bannerOf, blankWorkflowCreateInput, buildOperationSeed, buildStickyNode, builderPathOf, canAutosave, canSignalRun, classifyCreateRefusal, clearCodeWorkflowDefinitionCache, codeBuildIdOf, connectionsForAdapter, createConfiguredNode, createThenOpen, declaredOutputFields, declaredSignals, departingSave, durableInterfaceOf, editStateFor, editingLeaseLocked, emitNodeInstalled, emitRunFailed, emitRunLimitHit, emitRunStarted, emitTemplateUsed, emitUpgradeClicked, emitWorkflowCreated, emitWorkflowLimitHit, emitWorkflowPublished, ensureNodeConfigsLoaded, fieldsFromIO, fieldsFromValue, filterPaletteNodes, findQuotaRefusal, findSaveConflict, forgetSessionForReload, formatElapsedMs, formatParameterValue, getNodeDetail, getNodeMetadata,
|
|
5163
|
+
export { AUTOSAVE_DEBOUNCE_MS, AUTOSAVE_RETRY_DELAYS_MS, AVAILABLE_NODES, BILLING_PLANS_PATH, DURABLE_FUNCTION_NODE_TYPES, EDIT_SESSION_ID, FLUIDGRIDS_FLAGS, FLUIDGRIDS_FLAG_DEFAULTS, FluidGridsContext, FluidGridsProvider, NODES_METADATA, NODE_CONFIGS, NODE_TYPES, PHASE_C_FLAGS_OFF, RUNS_QUOTA_NAME, RUN_CONTROL_NODE_TYPES, WORKFLOWS_QUOTA_NAME, WORKFLOW_TEST_NODE_TYPES, autosaveAllowedFor, bannerOf, blankWorkflowCreateInput, buildOperationSeed, buildStickyNode, builderPathOf, canAutosave, canSignalRun, classifyCreateRefusal, clearCodeWorkflowDefinitionCache, codeBuildIdOf, connectionsForAdapter, createConfiguredNode, createThenOpen, declaredOutputFields, declaredSignals, departingSave, durableInterfaceOf, editStateFor, editingLeaseLocked, emitNodeInstalled, emitRunFailed, emitRunLimitHit, emitRunStarted, emitTemplateUsed, emitUpgradeClicked, emitWorkflowCreated, emitWorkflowLimitHit, emitWorkflowPublished, ensureNodeConfigsLoaded, fieldsFromIO, fieldsFromValue, filterPaletteNodes, findQuotaRefusal, findSaveConflict, forgetSessionForReload, formatElapsedMs, formatParameterValue, getNodeDetail, getNodeMetadata, inAppLeaveTarget, isDurableFunctionNodeType, isFlowComplete, isLocked, isNodeConfigsInitialized, isNodeTypeHiddenFromPalette, isOptionalAdapter, isParamVisible, isQuotaExhaustedFailure, isRunControlNodeType, leaseCallQueue, leavingLosesChanges, liveInternalOperations, loadDefinitionJson, matchesAdapterProvider, newConnectionProviderKey, nodeStateDurationMs, nodesOf, onNodeTypesUpdate, openRunQuotaUpgradePrompt, parseParameterValue, parseRawSignalPayload, pathToExpression, payloadFromCardValues, phaseAfterAcquire, phaseAfterTakeOver, readDisplayOptions, refetchStoreNodes, refusalOfQuota, registerWorkflowNodeTypes, registryNodeData, releasesOnClose, rememberOwnStatusChange, rememberRevision, rememberSessionForReload, replaceAdapterConnections, resolveFluidGridsFlagsSettled, resolveNodeOperation, resolvePhaseCFlags, runDurationMs, runSignalTargets, runTriggerFromMode, saveFailureActionOf, saveIndicatorOf, savedEverythingBeforeLeaving, sessionBeforeReload, shouldReleaseForIdle, signalPayloadCard, structuredParameterType, subscribeWorkflowSaved, tickAction, touchesSavedFields, useCanvasEdges, useCodeWorkflowInterface, useContinuousOptimisationEnabled, useDurableFunctionNodesEnabled, useDurableParityEnabled, useEditLeaseLocked, useEditLeaseStore, useFlowValidator, useFluidGridsAnalytics, useFluidGridsContext, useFluidGridsFlag, useFluidGridsFlagsSettled, useGuardedNavigate, useInsertNode, useManualSave, useNodeExecution, useNodeRegistryRevision, usePaletteGates, usePhaseCFlags, useRunGuard, useSaveStatusStore, useSaveWorkflow, useSelfHostedWorkersEnabled, useWorkflowTestsEnabled, watchLeavingLosesChanges, workflowFingerprint };
|