@burdenoff/fluidgrids-fe-sdk 2026.1030.1 → 2026.1030.3
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-GWBKNRLH.js → ExecutionDetailPage-UJXTRVYM.js} +10 -10
- package/dist/{ExecutionsListPage-XWHKPZ4I.js → ExecutionsListPage-ZSMTA5QN.js} +7 -7
- package/dist/{WorkflowBuilder-G7BNJ2PN.js → WorkflowBuilder-NSBAOTQB.js} +10 -10
- package/dist/{WorkflowsList-MJ7PDJSS.js → WorkflowsList-VH7ZKQJE.js} +7 -7
- package/dist/{chunk-MJHWM6J6.js → chunk-5CRJD5YU.js} +3 -3
- package/dist/{chunk-R5VDESMI.js → chunk-5EHMEGSO.js} +4 -4
- package/dist/{chunk-BTQJL6D7.js → chunk-63H4FFY7.js} +1 -1
- package/dist/{chunk-WHTA6KAS.js → chunk-6DNT5QP5.js} +136 -136
- package/dist/{chunk-ARQDZCJH.js → chunk-7RVPPQOG.js} +5 -5
- package/dist/{chunk-GQTEHWWY.js → chunk-AW3UXMNI.js} +3 -2
- package/dist/{chunk-64ZGBHEP.js → chunk-C4LNSLQX.js} +2 -2
- package/dist/{chunk-2QHNITN3.js → chunk-FQBRK4R5.js} +3 -3
- package/dist/{chunk-LAV7QQ7Q.js → chunk-HO7CZM3V.js} +1 -1
- package/dist/{chunk-IZCDTR5O.js → chunk-HWPPD2WE.js} +1 -1
- package/dist/{chunk-Z6I6A47T.js → chunk-INMYNHJL.js} +1 -1
- package/dist/{chunk-FLN3KOG5.js → chunk-IQFPFSFN.js} +2 -2
- package/dist/{chunk-HGLZOGGQ.js → chunk-KK5VQ322.js} +4 -4
- package/dist/{chunk-7QNSQMAX.js → chunk-NHQXWTOK.js} +3 -3
- package/dist/{chunk-H4AZBUWM.js → chunk-OGYAC7QW.js} +1 -1
- package/dist/{chunk-4TSFUGBA.js → chunk-OTO46JVO.js} +2 -2
- package/dist/{chunk-CNDA4WB7.js → chunk-P4WCNDP7.js} +40 -30
- package/dist/{chunk-QZS6DTJX.js → chunk-QJ4P5Y47.js} +25 -15
- package/dist/{chunk-JFAGVOWU.js → chunk-SU5W4OOE.js} +8 -8
- package/dist/{chunk-B26HQYWR.js → chunk-TGGTM5RW.js} +1 -1
- package/dist/{chunk-TBRZKV2D.js → chunk-VKM2BI46.js} +2 -2
- package/dist/{chunk-C3XYKJ46.js → chunk-WMI2OSWG.js} +5 -5
- package/dist/{chunk-SJBJ3D7A.js → chunk-WNC3UP2A.js} +1 -1
- package/dist/{chunk-Y6IEOGIU.js → chunk-Z6THCS3L.js} +13 -2
- package/dist/executions.js +11 -11
- package/dist/history.js +4 -4
- package/dist/index.d.ts +26 -1
- package/dist/index.js +1217 -242
- package/dist/nodes.js +2 -2
- package/dist/observability.js +5 -5
- package/dist/settings.js +6 -6
- package/dist/templates.js +9 -9
- package/dist/workflow-builder.js +11 -11
- package/dist/workflows-list.js +7 -7
- package/package.json +1 -1
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
export { ExecutionDetailPage } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
1
|
+
export { ExecutionDetailPage } from './chunk-SU5W4OOE.js';
|
|
2
|
+
import './chunk-KK5VQ322.js';
|
|
3
|
+
import './chunk-VKM2BI46.js';
|
|
4
|
+
import './chunk-IQFPFSFN.js';
|
|
5
|
+
import './chunk-63H4FFY7.js';
|
|
6
6
|
import './chunk-5ERAJC2I.js';
|
|
7
|
-
import './chunk-
|
|
8
|
-
import './chunk-
|
|
7
|
+
import './chunk-NHQXWTOK.js';
|
|
8
|
+
import './chunk-INMYNHJL.js';
|
|
9
9
|
import './chunk-Y53CVZVV.js';
|
|
10
10
|
import './chunk-D3UWK7GY.js';
|
|
11
|
-
import './chunk-
|
|
11
|
+
import './chunk-OTO46JVO.js';
|
|
12
12
|
import './chunk-PJAWNFJV.js';
|
|
13
13
|
import './chunk-Z3FYBDE3.js';
|
|
14
|
-
import './chunk-
|
|
14
|
+
import './chunk-Z6THCS3L.js';
|
|
15
15
|
import './chunk-JL7CASN5.js';
|
|
16
16
|
import './chunk-PXIFUMLA.js';
|
|
17
17
|
import './chunk-6AMNEX2Y.js';
|
|
18
18
|
import './chunk-JUUYPCFY.js';
|
|
19
|
-
import './chunk-
|
|
19
|
+
import './chunk-AW3UXMNI.js';
|
|
20
20
|
import './chunk-UULVIT25.js';
|
|
21
21
|
import './chunk-NTWG3CJX.js';
|
|
22
22
|
import './chunk-62GWEYJ5.js';
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
export { ExecutionsListPage } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
export { ExecutionsListPage } from './chunk-5EHMEGSO.js';
|
|
2
|
+
import './chunk-KK5VQ322.js';
|
|
3
|
+
import './chunk-VKM2BI46.js';
|
|
4
4
|
import './chunk-5ERAJC2I.js';
|
|
5
|
-
import './chunk-
|
|
5
|
+
import './chunk-INMYNHJL.js';
|
|
6
6
|
import './chunk-D3UWK7GY.js';
|
|
7
|
-
import './chunk-
|
|
7
|
+
import './chunk-OTO46JVO.js';
|
|
8
8
|
import './chunk-PJAWNFJV.js';
|
|
9
9
|
import './chunk-Z3FYBDE3.js';
|
|
10
10
|
import './chunk-4VJ3MDOV.js';
|
|
11
|
-
import './chunk-
|
|
11
|
+
import './chunk-Z6THCS3L.js';
|
|
12
12
|
import './chunk-JL7CASN5.js';
|
|
13
13
|
import './chunk-PXIFUMLA.js';
|
|
14
14
|
import './chunk-6AMNEX2Y.js';
|
|
15
15
|
import './chunk-JUUYPCFY.js';
|
|
16
|
-
import './chunk-
|
|
16
|
+
import './chunk-AW3UXMNI.js';
|
|
17
17
|
import './chunk-UULVIT25.js';
|
|
18
18
|
import './chunk-NTWG3CJX.js';
|
|
19
19
|
import './chunk-62GWEYJ5.js';
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
export { WorkflowBuilder } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { WorkflowBuilder } from './chunk-7RVPPQOG.js';
|
|
2
|
+
import './chunk-HWPPD2WE.js';
|
|
3
3
|
import './chunk-PIKYQE7P.js';
|
|
4
|
-
import './chunk-
|
|
4
|
+
import './chunk-6DNT5QP5.js';
|
|
5
5
|
import './chunk-GEMNVFPK.js';
|
|
6
6
|
import './chunk-IEVSFCFS.js';
|
|
7
7
|
import './chunk-YXMFRQYV.js';
|
|
8
8
|
import './chunk-BQXVT32O.js';
|
|
9
|
-
import './chunk-
|
|
10
|
-
import './chunk-
|
|
11
|
-
import './chunk-
|
|
9
|
+
import './chunk-C4LNSLQX.js';
|
|
10
|
+
import './chunk-NHQXWTOK.js';
|
|
11
|
+
import './chunk-INMYNHJL.js';
|
|
12
12
|
import './chunk-Y53CVZVV.js';
|
|
13
|
-
import './chunk-
|
|
13
|
+
import './chunk-OTO46JVO.js';
|
|
14
14
|
import './chunk-Z3FYBDE3.js';
|
|
15
|
-
import './chunk-
|
|
15
|
+
import './chunk-TGGTM5RW.js';
|
|
16
16
|
import './chunk-4VJ3MDOV.js';
|
|
17
|
-
import './chunk-
|
|
17
|
+
import './chunk-Z6THCS3L.js';
|
|
18
18
|
import './chunk-JL7CASN5.js';
|
|
19
19
|
import './chunk-PXIFUMLA.js';
|
|
20
20
|
import './chunk-6AMNEX2Y.js';
|
|
21
21
|
import './chunk-JUUYPCFY.js';
|
|
22
|
-
import './chunk-
|
|
22
|
+
import './chunk-AW3UXMNI.js';
|
|
23
23
|
import './chunk-UULVIT25.js';
|
|
24
24
|
import './chunk-NTWG3CJX.js';
|
|
25
25
|
import './chunk-62GWEYJ5.js';
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
export { WorkflowsList } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
export { WorkflowsList } from './chunk-QJ4P5Y47.js';
|
|
2
|
+
import './chunk-HWPPD2WE.js';
|
|
3
|
+
import './chunk-VKM2BI46.js';
|
|
4
4
|
import './chunk-5ERAJC2I.js';
|
|
5
|
-
import './chunk-
|
|
5
|
+
import './chunk-C4LNSLQX.js';
|
|
6
6
|
import './chunk-D3UWK7GY.js';
|
|
7
|
-
import './chunk-
|
|
7
|
+
import './chunk-OTO46JVO.js';
|
|
8
8
|
import './chunk-PJAWNFJV.js';
|
|
9
9
|
import './chunk-Z3FYBDE3.js';
|
|
10
10
|
import './chunk-4VJ3MDOV.js';
|
|
11
|
-
import './chunk-
|
|
11
|
+
import './chunk-Z6THCS3L.js';
|
|
12
12
|
import './chunk-JL7CASN5.js';
|
|
13
13
|
import './chunk-PXIFUMLA.js';
|
|
14
14
|
import './chunk-6AMNEX2Y.js';
|
|
15
15
|
import './chunk-JUUYPCFY.js';
|
|
16
|
-
import './chunk-
|
|
16
|
+
import './chunk-AW3UXMNI.js';
|
|
17
17
|
import './chunk-UULVIT25.js';
|
|
18
18
|
import './chunk-NTWG3CJX.js';
|
|
19
19
|
import './chunk-62GWEYJ5.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Card, FluidGridsMark } from './chunk-
|
|
1
|
+
import { Card, FluidGridsMark } from './chunk-6DNT5QP5.js';
|
|
2
2
|
import { Input } from './chunk-IEVSFCFS.js';
|
|
3
3
|
import { Button } from './chunk-BQXVT32O.js';
|
|
4
|
-
import { useWorkflowDefinition } from './chunk-
|
|
5
|
-
import { FluidGridsProvider, useFlowStore } from './chunk-
|
|
4
|
+
import { useWorkflowDefinition } from './chunk-OTO46JVO.js';
|
|
5
|
+
import { FluidGridsProvider, useFlowStore } from './chunk-Z6THCS3L.js';
|
|
6
6
|
import { cn } from './chunk-JL7CASN5.js';
|
|
7
7
|
import { useTr } from './chunk-UULVIT25.js';
|
|
8
8
|
import { useState, useRef, useEffect, useCallback } from 'react';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { useRunStatusCounts, ExecutionStats, ExecutionFilters, ExecutionTable, ExecutionCards, ExecutionTimeline, Pagination, runStatusLabels } from './chunk-
|
|
2
|
-
import { useExecutionsWithStore, useExecutionStats, useExecutionActions, useAutoRefresh, WORKFLOW_ID_MAX_LENGTH } from './chunk-
|
|
3
|
-
import { useWorkflowDefinitions } from './chunk-
|
|
1
|
+
import { useRunStatusCounts, ExecutionStats, ExecutionFilters, ExecutionTable, ExecutionCards, ExecutionTimeline, Pagination, runStatusLabels } from './chunk-KK5VQ322.js';
|
|
2
|
+
import { useExecutionsWithStore, useExecutionStats, useExecutionActions, useAutoRefresh, WORKFLOW_ID_MAX_LENGTH } from './chunk-VKM2BI46.js';
|
|
3
|
+
import { useWorkflowDefinitions } from './chunk-OTO46JVO.js';
|
|
4
4
|
import { FluidGridsDocsLink } from './chunk-4VJ3MDOV.js';
|
|
5
|
-
import { useDurableParityEnabled } from './chunk-
|
|
5
|
+
import { useDurableParityEnabled } from './chunk-Z6THCS3L.js';
|
|
6
6
|
import { useExecutionsStore } from './chunk-6AMNEX2Y.js';
|
|
7
7
|
import { useTr } from './chunk-UULVIT25.js';
|
|
8
8
|
import { useRef, useCallback, useMemo, useState, useEffect } from 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { throwIfResultError, describeOperationError } from './chunk-
|
|
1
|
+
import { throwIfResultError, describeOperationError } from './chunk-Z6THCS3L.js';
|
|
2
2
|
import { useTr } from './chunk-UULVIT25.js';
|
|
3
3
|
import { getFluidGridsClient } from './chunk-NTWG3CJX.js';
|
|
4
4
|
import { useState, useCallback, useEffect, useMemo } from 'react';
|
|
@@ -2,18 +2,18 @@ import { deepClone, applyTemplateInputs } from './chunk-GEMNVFPK.js';
|
|
|
2
2
|
import { Input } from './chunk-IEVSFCFS.js';
|
|
3
3
|
import { Dialog as Dialog$1, DialogContent as DialogContent$1, DialogHeader as DialogHeader$1, DialogTitle as DialogTitle$1, DialogDescription as DialogDescription$1, DialogFooter } from './chunk-YXMFRQYV.js';
|
|
4
4
|
import { Badge as Badge$1, Button } from './chunk-BQXVT32O.js';
|
|
5
|
-
import { QuotaExhaustedDialog, useWorkflowCodeExport, orderedExportFiles, fileBaseName, downloadWorkflowCodeExport, isLosslessReport, sortFidelityItems, isLossyFidelityItem, lineOfNode } from './chunk-
|
|
6
|
-
import { EntityTagPicker, useWorkflowProposal, WorkflowProposalCard, useRunHistory, RunHistoryView, SignalRunDialog } from './chunk-
|
|
5
|
+
import { QuotaExhaustedDialog, useWorkflowCodeExport, orderedExportFiles, fileBaseName, downloadWorkflowCodeExport, isLosslessReport, sortFidelityItems, isLossyFidelityItem, lineOfNode } from './chunk-C4LNSLQX.js';
|
|
6
|
+
import { EntityTagPicker, useWorkflowProposal, WorkflowProposalCard, useRunHistory, RunHistoryView, SignalRunDialog } from './chunk-NHQXWTOK.js';
|
|
7
7
|
import { AiCreditBalanceSlot } from './chunk-Y53CVZVV.js';
|
|
8
|
-
import { useRestoreWorkflowVersion, useWorkflowVersions, useActivateWorkflow, useDeleteWorkflow, useLazyWorkflowDefinition, useDeactivateWorkflow } from './chunk-
|
|
9
|
-
import { isAgentNodeType, AgentDefinitionSelectField } from './chunk-
|
|
8
|
+
import { useRestoreWorkflowVersion, useWorkflowVersions, useActivateWorkflow, useDeleteWorkflow, useLazyWorkflowDefinition, useDeactivateWorkflow } from './chunk-OTO46JVO.js';
|
|
9
|
+
import { isAgentNodeType, AgentDefinitionSelectField } from './chunk-TGGTM5RW.js';
|
|
10
10
|
import { FluidGridsDocsLink } from './chunk-4VJ3MDOV.js';
|
|
11
|
-
import { leaseCallQueue, NODE_CONFIGS, createConfiguredNode, resolveOutputHandles, resolveInputHandles, isNodeConfigsInitialized, useFlowStore, getNodeDetail, useSaveStatusStore, isNodeTypeHiddenFromPalette, liveInternalOperations, resolveNodeOperation, readDisplayOptions, parseParameterValue, canAutosave, STICKY_NOTE_TYPE, isNodeTrigger, resolveUiSpec, RUNS_QUOTA_NAME, throwIfResultError, BILLING_PLANS_PATH, emitUpgradeClicked, FluidGridsContext, emitWorkflowCreated, emitTemplateUsed, ensureNodeConfigsLoaded, useEditLeaseStore, useEditLeaseLocked, registerWorkflowNodeTypes, emitNodeInstalled, useNodeExecution, useDurableFunctionNodesEnabled, onNodeTypesUpdate, NODE_TYPES, getNodeMetadata, useIsValidConnection, BuilderReadOnlyProvider, refetchStoreNodes, AVAILABLE_NODES, EDIT_SESSION_ID, useFluidGridsPermission, FLUIDGRIDS_PERMISSIONS, useInsertNode, NODE_TYPE_DRAG_DATA_FORMAT, NODE_OPERATION_DRAG_DATA_FORMAT, CODE_WORKFLOW_NODE_TYPE, SdkPermissionButton, bannerOf, useSaveWorkflow, useBuilderReadOnly, fieldsFromValue, filterPaletteNodes, useFluidGridsAnalytics, sessionBeforeReload, forgetSessionForReload, releasesOnClose, editStateOf, workflowFingerprint, isLocked, buildStickyNode, useNodeRegistryRevision, fieldsFromIO, readCodeWorkflowState, useCodeWorkflowInterface, clearCodeWorkflowDefinitionCache, isParamVisible, ConnectionSelector, structuredParameterType, nodeAccent, NodeTypeIcon, NODES_METADATA, shouldReleaseForIdle, tickAction, rememberSessionForReload, useDurableParityEnabled, useConnections, ConnectionFormDialog, useFluidGridsFlag, FLUIDGRIDS_FLAGS, saveIndicatorOf, inAppLeaveTarget, declaredOutputFields, subscribeWorkflowSaved, pathToExpression, diagnosticsByPath, interfaceHandlers, declaredSignals, ExpressionEditor, toCodeMirrorDiagnostics, formatParameterValue, leaveNeedsConfirmation, phaseAfterAcquire,
|
|
11
|
+
import { leaseCallQueue, NODE_CONFIGS, createConfiguredNode, resolveOutputHandles, resolveInputHandles, isNodeConfigsInitialized, useFlowStore, getNodeDetail, useSaveStatusStore, isNodeTypeHiddenFromPalette, liveInternalOperations, resolveNodeOperation, readDisplayOptions, parseParameterValue, canAutosave, STICKY_NOTE_TYPE, isNodeTrigger, resolveUiSpec, RUNS_QUOTA_NAME, throwIfResultError, BILLING_PLANS_PATH, emitUpgradeClicked, FluidGridsContext, emitWorkflowCreated, emitTemplateUsed, ensureNodeConfigsLoaded, useEditLeaseStore, useEditLeaseLocked, registerWorkflowNodeTypes, emitNodeInstalled, useNodeExecution, useDurableFunctionNodesEnabled, onNodeTypesUpdate, NODE_TYPES, getNodeMetadata, useIsValidConnection, BuilderReadOnlyProvider, refetchStoreNodes, AVAILABLE_NODES, EDIT_SESSION_ID, useFluidGridsPermission, FLUIDGRIDS_PERMISSIONS, useInsertNode, NODE_TYPE_DRAG_DATA_FORMAT, NODE_OPERATION_DRAG_DATA_FORMAT, CODE_WORKFLOW_NODE_TYPE, SdkPermissionButton, bannerOf, useSaveWorkflow, useBuilderReadOnly, fieldsFromValue, filterPaletteNodes, useFluidGridsAnalytics, sessionBeforeReload, forgetSessionForReload, releasesOnClose, editStateOf, workflowFingerprint, isLocked, buildStickyNode, useNodeRegistryRevision, fieldsFromIO, readCodeWorkflowState, useCodeWorkflowInterface, clearCodeWorkflowDefinitionCache, isParamVisible, ConnectionSelector, structuredParameterType, nodeAccent, NodeTypeIcon, NODES_METADATA, shouldReleaseForIdle, tickAction, rememberSessionForReload, buildOperationSeed, useDurableParityEnabled, useConnections, ConnectionFormDialog, useFluidGridsFlag, FLUIDGRIDS_FLAGS, saveIndicatorOf, inAppLeaveTarget, declaredOutputFields, subscribeWorkflowSaved, pathToExpression, diagnosticsByPath, interfaceHandlers, declaredSignals, ExpressionEditor, toCodeMirrorDiagnostics, formatParameterValue, leaveNeedsConfirmation, phaseAfterAcquire, describeOperationError, rememberOwnStatusChange, snapshotForSave, childRunIdOf, defaultSourcePath, projectLanguage, changedSourceFiles, isEditableSourcePath, sourceLanguageOf, interfaceFields, isImageIcon, NODES, synchronizeOperationUpdate, NodePropertyPanel, loadDefinitionJson, openRunQuotaUpgradePrompt, isTriggerOperation, canRenderOperationPanel, runPreparationOf, resolveOperationName, savesInPlace, AUTOSAVE_RETRY_DELAYS_MS, AUTOSAVE_DEBOUNCE_MS, rememberRevision, phaseAfterTakeOver } from './chunk-Z6THCS3L.js';
|
|
12
12
|
import { cn } from './chunk-JL7CASN5.js';
|
|
13
13
|
import { getGlobalStoreClient } from './chunk-PXIFUMLA.js';
|
|
14
14
|
import { getFluidGridsConfig } from './chunk-6AMNEX2Y.js';
|
|
15
15
|
import { GetMyNodeInstallationsDocument, BrowseWorkflowTemplatesDocument, InstallWorkflowNodeDocument, InstallPurchasedNodeDocument, BrowseWorkflowNodesDocument, UninstallWorkflowNodeDocument, CreateStoreOrderDocument, GetNodeInstallableVersionsDocument, OrganizationPrivateNodesDocument, InstallOrganizationPrivateNodeDocument, UninstallOrganizationPrivateNodeDocument } from './chunk-JUUYPCFY.js';
|
|
16
|
-
import { WorkspaceRunsQuotaDocument, ReleaseWorkflowEditLeaseDocument, NodeSchemaIntrospectionDocument, useWorkflowPinnedDataQuery, usePinNodeDataMutation, useUnpinNodeDataMutation, useRunFromNodeEligibilityQuery, EventRegistrationsDocument, AcquireWorkflowEditLeaseDocument,
|
|
16
|
+
import { WorkspaceRunsQuotaDocument, WorkflowGenerationTemplatesDocument, ReleaseWorkflowEditLeaseDocument, NodeSchemaIntrospectionDocument, useWorkflowPinnedDataQuery, usePinNodeDataMutation, useUnpinNodeDataMutation, useRunFromNodeEligibilityQuery, EventRegistrationsDocument, AcquireWorkflowEditLeaseDocument, WorkflowEnvironmentsDocument, WorkflowPromotionRequestsDocument, DeployWorkflowVersionToDevDocument, RequestWorkflowPromotionDocument, ApproveWorkflowPromotionDocument, RejectWorkflowPromotionDocument, CancelWorkflowPromotionDocument, UpdateWorkflowEnvironmentPolicyDocument, WorkflowGitRepositoryDocument, WorkflowGitPushesDocument, WorkflowGitCommitsDocument, LinkWorkflowGitRepositoryDocument, UnlinkWorkflowGitRepositoryDocument, PushWorkflowToGitDocument, WorkflowGitDiffDocument, RestoreWorkflowFromGitDocument, WorkflowAuthoringDocument, NodeStatesDocument, PreviewScheduleDocument, WorkflowEditLeaseDocument, WorkflowVersioningDocument, WorkflowVersionDrainageDocument, ActivateWorkflowVersionCheckedDocument, WorkflowDefinitionDocument, WorkflowCodeSourceDocument, WorkflowEditLeaseStatusDocument, BuildWorkflowCodeDocument, WebhookTestListenerDocument, StopWebhookTestListenerDocument, ListenForWebhookTestEventDocument, NodeUsageStatusDocument, RemoveNodeFromWorkflowsDocument, SetWorkflowRolloutDocument, DeleteWorkflowRolloutDocument, TakeOverWorkflowEditLeaseDocument } from './chunk-AW3UXMNI.js';
|
|
17
17
|
import { useTr } from './chunk-UULVIT25.js';
|
|
18
18
|
import { getFluidGridsClient, waitForFluidGridsClient, getFluidGridsClientSafe } from './chunk-NTWG3CJX.js';
|
|
19
19
|
import { __export } from './chunk-62GWEYJ5.js';
|
|
@@ -21936,6 +21936,105 @@ function useEditLease(enabled) {
|
|
|
21936
21936
|
};
|
|
21937
21937
|
}, [enabled, workflowKey]);
|
|
21938
21938
|
}
|
|
21939
|
+
function useAiWorkflowTemplates(enabled) {
|
|
21940
|
+
const [templates, setTemplates] = useState(
|
|
21941
|
+
[]
|
|
21942
|
+
);
|
|
21943
|
+
useEffect(() => {
|
|
21944
|
+
if (!enabled) return;
|
|
21945
|
+
let active = true;
|
|
21946
|
+
getFluidGridsClient().query({
|
|
21947
|
+
query: WorkflowGenerationTemplatesDocument,
|
|
21948
|
+
fetchPolicy: "cache-first"
|
|
21949
|
+
}).then((result) => {
|
|
21950
|
+
if (active)
|
|
21951
|
+
setTemplates(result.data?.workflowGenerationTemplates ?? []);
|
|
21952
|
+
}).catch(() => {
|
|
21953
|
+
if (active) setTemplates([]);
|
|
21954
|
+
});
|
|
21955
|
+
return () => {
|
|
21956
|
+
active = false;
|
|
21957
|
+
};
|
|
21958
|
+
}, [enabled]);
|
|
21959
|
+
return templates;
|
|
21960
|
+
}
|
|
21961
|
+
|
|
21962
|
+
// src/builder/lib/ai-draft.ts
|
|
21963
|
+
var AI_DRAFT_MAX_PROMPT_LENGTH = 4e3;
|
|
21964
|
+
function isRecord(value) {
|
|
21965
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
21966
|
+
}
|
|
21967
|
+
function stringOr(value, fallback) {
|
|
21968
|
+
return typeof value === "string" && value.trim() !== "" ? value : fallback;
|
|
21969
|
+
}
|
|
21970
|
+
function draftToCanvas(definitionJson) {
|
|
21971
|
+
const data = isRecord(definitionJson) && isRecord(definitionJson.data) ? definitionJson.data : {};
|
|
21972
|
+
const rawNodes = Array.isArray(data.nodes) ? data.nodes : [];
|
|
21973
|
+
const rawEdges = Array.isArray(data.edges) ? data.edges : [];
|
|
21974
|
+
const nodes = rawNodes.filter(isRecord).flatMap((raw) => {
|
|
21975
|
+
if (typeof raw.id !== "string" || typeof raw.type !== "string") return [];
|
|
21976
|
+
const position = isRecord(raw.position) ? {
|
|
21977
|
+
x: typeof raw.position.x === "number" ? raw.position.x : 0,
|
|
21978
|
+
y: typeof raw.position.y === "number" ? raw.position.y : 0
|
|
21979
|
+
} : { x: 0, y: 0 };
|
|
21980
|
+
const nodeData = isRecord(raw.data) ? raw.data : {};
|
|
21981
|
+
const node2 = {
|
|
21982
|
+
...raw,
|
|
21983
|
+
id: raw.id,
|
|
21984
|
+
type: raw.type,
|
|
21985
|
+
position,
|
|
21986
|
+
data: nodeData,
|
|
21987
|
+
selected: false
|
|
21988
|
+
};
|
|
21989
|
+
return [node2];
|
|
21990
|
+
});
|
|
21991
|
+
const ids = new Set(nodes.map((node2) => node2.id));
|
|
21992
|
+
const edges = rawEdges.filter(isRecord).flatMap((raw) => {
|
|
21993
|
+
if (typeof raw.source !== "string" || typeof raw.target !== "string") {
|
|
21994
|
+
return [];
|
|
21995
|
+
}
|
|
21996
|
+
if (!ids.has(raw.source) || !ids.has(raw.target)) return [];
|
|
21997
|
+
const edge = {
|
|
21998
|
+
id: stringOr(raw.id, `e-${raw.source}-${raw.target}`),
|
|
21999
|
+
source: raw.source,
|
|
22000
|
+
target: raw.target,
|
|
22001
|
+
type: stringOr(raw.type, "deletable"),
|
|
22002
|
+
...typeof raw.sourceHandle === "string" ? { sourceHandle: raw.sourceHandle } : {},
|
|
22003
|
+
...typeof raw.targetHandle === "string" ? { targetHandle: raw.targetHandle } : {}
|
|
22004
|
+
};
|
|
22005
|
+
return [edge];
|
|
22006
|
+
});
|
|
22007
|
+
return { nodes, edges };
|
|
22008
|
+
}
|
|
22009
|
+
function enrichDraftNodes(nodes, seed) {
|
|
22010
|
+
return nodes.map((node2) => {
|
|
22011
|
+
const data = isRecord(node2.data) ? node2.data : {};
|
|
22012
|
+
const rootOperation = node2.operation_name;
|
|
22013
|
+
let operationName;
|
|
22014
|
+
if (typeof data.operation_name === "string") {
|
|
22015
|
+
operationName = data.operation_name;
|
|
22016
|
+
} else if (typeof rootOperation === "string") {
|
|
22017
|
+
operationName = rootOperation;
|
|
22018
|
+
}
|
|
22019
|
+
if (!node2.type || !operationName) return node2;
|
|
22020
|
+
const seeded = seed(node2.type, operationName, data);
|
|
22021
|
+
if (!seeded) return node2;
|
|
22022
|
+
const seededArgs = isRecord(seeded.args) ? seeded.args : {};
|
|
22023
|
+
const defaults = isRecord(seededArgs.state) ? seededArgs.state : {};
|
|
22024
|
+
const draftArgs = isRecord(data.args) ? data.args : {};
|
|
22025
|
+
const draftState = isRecord(draftArgs.state) ? draftArgs.state : {};
|
|
22026
|
+
return {
|
|
22027
|
+
...node2,
|
|
22028
|
+
data: {
|
|
22029
|
+
...seeded,
|
|
22030
|
+
args: { ...seededArgs, state: { ...defaults, ...draftState } }
|
|
22031
|
+
}
|
|
22032
|
+
};
|
|
22033
|
+
});
|
|
22034
|
+
}
|
|
22035
|
+
function canvasHasWork(nodes) {
|
|
22036
|
+
return nodes.length > 1;
|
|
22037
|
+
}
|
|
21939
22038
|
function findEdges(node2, connectedEdges) {
|
|
21940
22039
|
const outgoingEdges = connectedEdges.filter(
|
|
21941
22040
|
(edge) => edge.source === node2.id
|
|
@@ -34595,7 +34694,7 @@ function useWebhookRegistration(workflowKey, triggerNodeId, enabled = true) {
|
|
|
34595
34694
|
}
|
|
34596
34695
|
|
|
34597
34696
|
// src/builder/components/ndv/node-option-values.ts
|
|
34598
|
-
function
|
|
34697
|
+
function isRecord2(value) {
|
|
34599
34698
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
34600
34699
|
}
|
|
34601
34700
|
function isParameterName(value) {
|
|
@@ -34603,19 +34702,19 @@ function isParameterName(value) {
|
|
|
34603
34702
|
}
|
|
34604
34703
|
function isStringOptionList(schema) {
|
|
34605
34704
|
if (structuredParameterType(schema) !== "array") return false;
|
|
34606
|
-
const type = typeof schema === "string" ? schema :
|
|
34705
|
+
const type = typeof schema === "string" ? schema : isRecord2(schema) ? schema.type : void 0;
|
|
34607
34706
|
const inlineItem = typeof type === "string" ? type.trim().toLowerCase().match(/^array<(.+)>$/)?.[1] : void 0;
|
|
34608
|
-
const item = (
|
|
34707
|
+
const item = (isRecord2(schema) ? schema.items : void 0) ?? inlineItem;
|
|
34609
34708
|
if (item === void 0) return true;
|
|
34610
|
-
const itemType = typeof item === "string" ? item :
|
|
34709
|
+
const itemType = typeof item === "string" ? item : isRecord2(item) ? item.type : void 0;
|
|
34611
34710
|
return typeof itemType === "string" && itemType.trim().toLowerCase() === "string";
|
|
34612
34711
|
}
|
|
34613
34712
|
function readLoadOptionsSpec(value) {
|
|
34614
|
-
if (!
|
|
34713
|
+
if (!isRecord2(value) || typeof value.operation !== "string" || typeof value.labelField !== "string" || typeof value.valueField !== "string")
|
|
34615
34714
|
return void 0;
|
|
34616
34715
|
let parameterArgs;
|
|
34617
34716
|
if (value.parameterArgs !== void 0) {
|
|
34618
|
-
if (!
|
|
34717
|
+
if (!isRecord2(value.parameterArgs)) return void 0;
|
|
34619
34718
|
parameterArgs = {};
|
|
34620
34719
|
for (const [argument, parameter] of Object.entries(value.parameterArgs)) {
|
|
34621
34720
|
if (!isParameterName(argument) || typeof parameter !== "string" || !isParameterName(parameter))
|
|
@@ -34628,7 +34727,7 @@ function readLoadOptionsSpec(value) {
|
|
|
34628
34727
|
labelField: value.labelField,
|
|
34629
34728
|
valueField: value.valueField,
|
|
34630
34729
|
resultPath: typeof value.resultPath === "string" ? value.resultPath : void 0,
|
|
34631
|
-
staticArgs:
|
|
34730
|
+
staticArgs: isRecord2(value.staticArgs) ? value.staticArgs : void 0,
|
|
34632
34731
|
parameterArgs
|
|
34633
34732
|
};
|
|
34634
34733
|
}
|
|
@@ -34655,7 +34754,7 @@ function resolveLoadOptionsSpec(spec, values, defaults = {}, unavailableParamete
|
|
|
34655
34754
|
function containsExpression(value) {
|
|
34656
34755
|
if (typeof value === "string") return /\{\{|\$\{|^\$\./.test(value);
|
|
34657
34756
|
if (Array.isArray(value)) return value.some(containsExpression);
|
|
34658
|
-
return
|
|
34757
|
+
return isRecord2(value) && Object.values(value).some(containsExpression);
|
|
34659
34758
|
}
|
|
34660
34759
|
function optionListValues(value) {
|
|
34661
34760
|
if (value === void 0 || value === null || value === "") return [];
|
|
@@ -34686,17 +34785,17 @@ function optionListText(value) {
|
|
|
34686
34785
|
}
|
|
34687
34786
|
|
|
34688
34787
|
// src/builder/lib/multiline-parameters.ts
|
|
34689
|
-
function
|
|
34788
|
+
function isRecord3(value) {
|
|
34690
34789
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
34691
34790
|
}
|
|
34692
34791
|
function multilineParameters(operation) {
|
|
34693
34792
|
const names = /* @__PURE__ */ new Set();
|
|
34694
|
-
if (!
|
|
34793
|
+
if (!isRecord3(operation)) return names;
|
|
34695
34794
|
const legacyCard = operation.adaptive_card ?? operation.adaptiveCard;
|
|
34696
34795
|
const resolved = resolveUiSpec({
|
|
34697
34796
|
name: typeof operation.name === "string" ? operation.name : void 0,
|
|
34698
34797
|
ui: operation.ui,
|
|
34699
|
-
adaptive_card:
|
|
34798
|
+
adaptive_card: isRecord3(legacyCard) ? legacyCard : void 0
|
|
34700
34799
|
});
|
|
34701
34800
|
const pending = resolved?.spec.blocks.flatMap(
|
|
34702
34801
|
(block) => block.type === "adaptive_card" ? [block.card] : []
|
|
@@ -34711,7 +34810,7 @@ function multilineParameters(operation) {
|
|
|
34711
34810
|
pending.push(...element);
|
|
34712
34811
|
continue;
|
|
34713
34812
|
}
|
|
34714
|
-
if (!
|
|
34813
|
+
if (!isRecord3(element)) continue;
|
|
34715
34814
|
if (element.type === "Input.Text" && element.isMultiline === true && typeof element.id === "string") {
|
|
34716
34815
|
const name = element.id.replace(/^(?:args\.)?state\./, "");
|
|
34717
34816
|
if (name) names.add(name);
|
|
@@ -34724,9 +34823,9 @@ function multilineParameters(operation) {
|
|
|
34724
34823
|
element.card
|
|
34725
34824
|
);
|
|
34726
34825
|
}
|
|
34727
|
-
if (
|
|
34826
|
+
if (isRecord3(operation.input_fields)) {
|
|
34728
34827
|
for (const [name, field] of Object.entries(operation.input_fields)) {
|
|
34729
|
-
if (!
|
|
34828
|
+
if (!isRecord3(field)) continue;
|
|
34730
34829
|
if (field.isMultiline === true) names.add(name);
|
|
34731
34830
|
else if (field.isMultiline === false) names.delete(name);
|
|
34732
34831
|
}
|
|
@@ -37616,7 +37715,7 @@ function defaultScheduleRule() {
|
|
|
37616
37715
|
function isScheduleRuleField(value) {
|
|
37617
37716
|
return typeof value === "string" && SCHEDULE_RULE_FIELDS.some((field) => field === value);
|
|
37618
37717
|
}
|
|
37619
|
-
function
|
|
37718
|
+
function isRecord4(value) {
|
|
37620
37719
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
37621
37720
|
}
|
|
37622
37721
|
function toNumber(value) {
|
|
@@ -37712,10 +37811,10 @@ function rulesFromLegacyState(state) {
|
|
|
37712
37811
|
return [defaultScheduleRule()];
|
|
37713
37812
|
}
|
|
37714
37813
|
function normalizeScheduleState(state) {
|
|
37715
|
-
const source =
|
|
37814
|
+
const source = isRecord4(state) ? state : {};
|
|
37716
37815
|
let rules;
|
|
37717
37816
|
if (Array.isArray(source.rules)) {
|
|
37718
|
-
rules = source.rules.filter(
|
|
37817
|
+
rules = source.rules.filter(isRecord4).map(normalizeScheduleRule);
|
|
37719
37818
|
if (rules.length === 0) rules = [defaultScheduleRule()];
|
|
37720
37819
|
} else {
|
|
37721
37820
|
rules = rulesFromLegacyState(source);
|
|
@@ -37727,7 +37826,7 @@ function normalizeScheduleState(state) {
|
|
|
37727
37826
|
return { rules, timezone, misfirePolicy, misfireGraceSeconds };
|
|
37728
37827
|
}
|
|
37729
37828
|
function isLegacyScheduleState(state) {
|
|
37730
|
-
if (!
|
|
37829
|
+
if (!isRecord4(state) || Array.isArray(state.rules)) return false;
|
|
37731
37830
|
return state.mode !== void 0 || toTrimmedString(state.cronExpression) !== "" || toNumber(state.interval) !== void 0;
|
|
37732
37831
|
}
|
|
37733
37832
|
function inRange(value, min, max) {
|
|
@@ -38713,17 +38812,17 @@ var PLATFORM_EVENT_SOURCES_QUERY = gql`
|
|
|
38713
38812
|
`;
|
|
38714
38813
|
var CACHE_TTL_MS2 = 3 * 60 * 1e3;
|
|
38715
38814
|
var caches = /* @__PURE__ */ new WeakMap();
|
|
38716
|
-
function
|
|
38815
|
+
function isRecord5(value) {
|
|
38717
38816
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
38718
38817
|
}
|
|
38719
38818
|
function readPlatformEventSources(data) {
|
|
38720
|
-
const list =
|
|
38819
|
+
const list = isRecord5(data) ? data.platformEventSources : void 0;
|
|
38721
38820
|
if (!Array.isArray(list)) return [];
|
|
38722
38821
|
const sources = [];
|
|
38723
38822
|
for (const item of list) {
|
|
38724
|
-
if (!
|
|
38823
|
+
if (!isRecord5(item) || typeof item.module !== "string") continue;
|
|
38725
38824
|
const recordTypes = Array.isArray(item.recordTypes) ? item.recordTypes.flatMap(
|
|
38726
|
-
(type) =>
|
|
38825
|
+
(type) => isRecord5(type) && typeof type.name === "string" ? [
|
|
38727
38826
|
{
|
|
38728
38827
|
name: type.name,
|
|
38729
38828
|
actions: Array.isArray(type.actions) ? type.actions.filter(
|
|
@@ -43608,7 +43707,7 @@ async function refreshOpenRevision() {
|
|
|
43608
43707
|
}
|
|
43609
43708
|
|
|
43610
43709
|
// src/utils/workflow-definition-diff.ts
|
|
43611
|
-
function
|
|
43710
|
+
function isRecord6(value) {
|
|
43612
43711
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
43613
43712
|
}
|
|
43614
43713
|
function equalJson(left, right) {
|
|
@@ -43616,7 +43715,7 @@ function equalJson(left, right) {
|
|
|
43616
43715
|
if (Array.isArray(left) && Array.isArray(right)) {
|
|
43617
43716
|
return left.length === right.length && left.every((value, index) => equalJson(value, right[index]));
|
|
43618
43717
|
}
|
|
43619
|
-
if (
|
|
43718
|
+
if (isRecord6(left) && isRecord6(right)) {
|
|
43620
43719
|
const leftKeys = Object.keys(left).sort((a, b) => a.localeCompare(b));
|
|
43621
43720
|
const rightKeys = Object.keys(right).sort((a, b) => a.localeCompare(b));
|
|
43622
43721
|
return leftKeys.length === rightKeys.length && leftKeys.every(
|
|
@@ -43629,7 +43728,7 @@ function diffWorkflowDefinitionJson(before, after, maxEntries = 2e3) {
|
|
|
43629
43728
|
const entries = [];
|
|
43630
43729
|
const visit2 = (left, right, path) => {
|
|
43631
43730
|
if (entries.length >= maxEntries || equalJson(left, right)) return;
|
|
43632
|
-
if (
|
|
43731
|
+
if (isRecord6(left) && isRecord6(right)) {
|
|
43633
43732
|
const keys = [
|
|
43634
43733
|
.../* @__PURE__ */ new Set([...Object.keys(left), ...Object.keys(right)])
|
|
43635
43734
|
].sort((a, b) => a.localeCompare(b));
|
|
@@ -43819,13 +43918,13 @@ function prodRollout(rollouts) {
|
|
|
43819
43918
|
) ?? null;
|
|
43820
43919
|
}
|
|
43821
43920
|
function isDurableDefinition(definitionJson) {
|
|
43822
|
-
if (!
|
|
43921
|
+
if (!isRecord7(definitionJson)) return false;
|
|
43823
43922
|
const code = definitionJson.code;
|
|
43824
|
-
if (!
|
|
43825
|
-
const workflows =
|
|
43826
|
-
return
|
|
43923
|
+
if (!isRecord7(code) || typeof code.buildId !== "string") return false;
|
|
43924
|
+
const workflows = isRecord7(code.exports) ? code.exports.workflows : null;
|
|
43925
|
+
return isRecord7(workflows) && Object.keys(workflows).length > 0;
|
|
43827
43926
|
}
|
|
43828
|
-
function
|
|
43927
|
+
function isRecord7(value) {
|
|
43829
43928
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
43830
43929
|
}
|
|
43831
43930
|
var EMPTY_STATE = {
|
|
@@ -47061,105 +47160,6 @@ function GitSyncPanel({
|
|
|
47061
47160
|
}
|
|
47062
47161
|
);
|
|
47063
47162
|
}
|
|
47064
|
-
function useAiWorkflowTemplates(enabled) {
|
|
47065
|
-
const [templates, setTemplates] = useState(
|
|
47066
|
-
[]
|
|
47067
|
-
);
|
|
47068
|
-
useEffect(() => {
|
|
47069
|
-
if (!enabled) return;
|
|
47070
|
-
let active = true;
|
|
47071
|
-
getFluidGridsClient().query({
|
|
47072
|
-
query: WorkflowGenerationTemplatesDocument,
|
|
47073
|
-
fetchPolicy: "cache-first"
|
|
47074
|
-
}).then((result) => {
|
|
47075
|
-
if (active)
|
|
47076
|
-
setTemplates(result.data?.workflowGenerationTemplates ?? []);
|
|
47077
|
-
}).catch(() => {
|
|
47078
|
-
if (active) setTemplates([]);
|
|
47079
|
-
});
|
|
47080
|
-
return () => {
|
|
47081
|
-
active = false;
|
|
47082
|
-
};
|
|
47083
|
-
}, [enabled]);
|
|
47084
|
-
return templates;
|
|
47085
|
-
}
|
|
47086
|
-
|
|
47087
|
-
// src/builder/lib/ai-draft.ts
|
|
47088
|
-
var AI_DRAFT_MAX_PROMPT_LENGTH = 4e3;
|
|
47089
|
-
function isRecord7(value) {
|
|
47090
|
-
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
47091
|
-
}
|
|
47092
|
-
function stringOr(value, fallback) {
|
|
47093
|
-
return typeof value === "string" && value.trim() !== "" ? value : fallback;
|
|
47094
|
-
}
|
|
47095
|
-
function draftToCanvas(definitionJson) {
|
|
47096
|
-
const data = isRecord7(definitionJson) && isRecord7(definitionJson.data) ? definitionJson.data : {};
|
|
47097
|
-
const rawNodes = Array.isArray(data.nodes) ? data.nodes : [];
|
|
47098
|
-
const rawEdges = Array.isArray(data.edges) ? data.edges : [];
|
|
47099
|
-
const nodes = rawNodes.filter(isRecord7).flatMap((raw) => {
|
|
47100
|
-
if (typeof raw.id !== "string" || typeof raw.type !== "string") return [];
|
|
47101
|
-
const position = isRecord7(raw.position) ? {
|
|
47102
|
-
x: typeof raw.position.x === "number" ? raw.position.x : 0,
|
|
47103
|
-
y: typeof raw.position.y === "number" ? raw.position.y : 0
|
|
47104
|
-
} : { x: 0, y: 0 };
|
|
47105
|
-
const nodeData = isRecord7(raw.data) ? raw.data : {};
|
|
47106
|
-
const node2 = {
|
|
47107
|
-
...raw,
|
|
47108
|
-
id: raw.id,
|
|
47109
|
-
type: raw.type,
|
|
47110
|
-
position,
|
|
47111
|
-
data: nodeData,
|
|
47112
|
-
selected: false
|
|
47113
|
-
};
|
|
47114
|
-
return [node2];
|
|
47115
|
-
});
|
|
47116
|
-
const ids = new Set(nodes.map((node2) => node2.id));
|
|
47117
|
-
const edges = rawEdges.filter(isRecord7).flatMap((raw) => {
|
|
47118
|
-
if (typeof raw.source !== "string" || typeof raw.target !== "string") {
|
|
47119
|
-
return [];
|
|
47120
|
-
}
|
|
47121
|
-
if (!ids.has(raw.source) || !ids.has(raw.target)) return [];
|
|
47122
|
-
const edge = {
|
|
47123
|
-
id: stringOr(raw.id, `e-${raw.source}-${raw.target}`),
|
|
47124
|
-
source: raw.source,
|
|
47125
|
-
target: raw.target,
|
|
47126
|
-
type: stringOr(raw.type, "deletable"),
|
|
47127
|
-
...typeof raw.sourceHandle === "string" ? { sourceHandle: raw.sourceHandle } : {},
|
|
47128
|
-
...typeof raw.targetHandle === "string" ? { targetHandle: raw.targetHandle } : {}
|
|
47129
|
-
};
|
|
47130
|
-
return [edge];
|
|
47131
|
-
});
|
|
47132
|
-
return { nodes, edges };
|
|
47133
|
-
}
|
|
47134
|
-
function enrichDraftNodes(nodes, seed) {
|
|
47135
|
-
return nodes.map((node2) => {
|
|
47136
|
-
const data = isRecord7(node2.data) ? node2.data : {};
|
|
47137
|
-
const rootOperation = node2.operation_name;
|
|
47138
|
-
let operationName;
|
|
47139
|
-
if (typeof data.operation_name === "string") {
|
|
47140
|
-
operationName = data.operation_name;
|
|
47141
|
-
} else if (typeof rootOperation === "string") {
|
|
47142
|
-
operationName = rootOperation;
|
|
47143
|
-
}
|
|
47144
|
-
if (!node2.type || !operationName) return node2;
|
|
47145
|
-
const seeded = seed(node2.type, operationName, data);
|
|
47146
|
-
if (!seeded) return node2;
|
|
47147
|
-
const seededArgs = isRecord7(seeded.args) ? seeded.args : {};
|
|
47148
|
-
const defaults = isRecord7(seededArgs.state) ? seededArgs.state : {};
|
|
47149
|
-
const draftArgs = isRecord7(data.args) ? data.args : {};
|
|
47150
|
-
const draftState = isRecord7(draftArgs.state) ? draftArgs.state : {};
|
|
47151
|
-
return {
|
|
47152
|
-
...node2,
|
|
47153
|
-
data: {
|
|
47154
|
-
...seeded,
|
|
47155
|
-
args: { ...seededArgs, state: { ...defaults, ...draftState } }
|
|
47156
|
-
}
|
|
47157
|
-
};
|
|
47158
|
-
});
|
|
47159
|
-
}
|
|
47160
|
-
function canvasHasWork(nodes) {
|
|
47161
|
-
return nodes.length > 1;
|
|
47162
|
-
}
|
|
47163
47163
|
var NO_TEMPLATE = "__none__";
|
|
47164
47164
|
function AiDraftPanel({
|
|
47165
47165
|
className,
|
|
@@ -48990,4 +48990,4 @@ var FlowBuilderPage = ({
|
|
|
48990
48990
|
] });
|
|
48991
48991
|
};
|
|
48992
48992
|
|
|
48993
|
-
export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, FlowBuilderPage, FluidGridsMark, Popover, PopoverContent, PopoverTrigger, RUNNER_INSTALL_SCRIPT_URL, RunOnSection, RunnerStatusPill, RunsUsageMeter, RunsUsageMeterView, TemplateCard, buildNodeCheck, buildRequiredNodeTypes, external_exports, readRunsQuota, releaseLeaseKeptForReload, runnerInstallCommand, runsQuotaLevel, summarizeRunsQuota, useImportWorkflowTemplate, useInstalledNodes, useRunnerActions, useRunners, useRunsQuota, useWorkflowReloadStore, useWorkflowTemplates };
|
|
48993
|
+
export { AI_DRAFT_MAX_PROMPT_LENGTH, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, FlowBuilderPage, FluidGridsMark, Popover, PopoverContent, PopoverTrigger, RUNNER_INSTALL_SCRIPT_URL, RunOnSection, RunnerStatusPill, RunsUsageMeter, RunsUsageMeterView, TemplateCard, buildNodeCheck, buildRequiredNodeTypes, draftToCanvas, enrichDraftNodes, external_exports, readRunsQuota, releaseLeaseKeptForReload, runnerInstallCommand, runsQuotaLevel, summarizeRunsQuota, useAiWorkflowTemplates, useImportWorkflowTemplate, useInstalledNodes, useRunnerActions, useRunners, useRunsQuota, useWorkflowReloadStore, useWorkflowTemplates };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { isGuidedTourIntent, pickGuidedTour, withoutGuidedTourIntent, isCreateIntent, CreateWorkflowRefusalDialog, decideMissingWorkflow } from './chunk-
|
|
1
|
+
import { isGuidedTourIntent, pickGuidedTour, withoutGuidedTourIntent, isCreateIntent, CreateWorkflowRefusalDialog, decideMissingWorkflow } from './chunk-HWPPD2WE.js';
|
|
2
2
|
import { registerLiveCanvasHandler } from './chunk-PIKYQE7P.js';
|
|
3
|
-
import { useWorkflowReloadStore, releaseLeaseKeptForReload, useInstalledNodes, buildNodeCheck, FlowBuilderPage, buildRequiredNodeTypes } from './chunk-
|
|
4
|
-
import { useLazyWorkflowDefinition, useCreateWorkflow } from './chunk-
|
|
5
|
-
import { useFlowStore, refetchStoreNodes, BILLING_PLANS_PATH, codeBuildIdOf, mergeStickyNotes, rememberRevision, blankWorkflowCreateInput, classifyCreateRefusal, useSaveStatusStore, workflowFingerprint, registerWorkflowNodeTypes, throwIfResultError } from './chunk-
|
|
3
|
+
import { useWorkflowReloadStore, releaseLeaseKeptForReload, useInstalledNodes, buildNodeCheck, FlowBuilderPage, buildRequiredNodeTypes } from './chunk-6DNT5QP5.js';
|
|
4
|
+
import { useLazyWorkflowDefinition, useCreateWorkflow } from './chunk-OTO46JVO.js';
|
|
5
|
+
import { useFlowStore, refetchStoreNodes, BILLING_PLANS_PATH, codeBuildIdOf, mergeStickyNotes, rememberRevision, blankWorkflowCreateInput, classifyCreateRefusal, useSaveStatusStore, workflowFingerprint, registerWorkflowNodeTypes, throwIfResultError } from './chunk-Z6THCS3L.js';
|
|
6
6
|
import { getFluidGridsConfig } from './chunk-6AMNEX2Y.js';
|
|
7
|
-
import { WorkflowDefinitionDocument } from './chunk-
|
|
7
|
+
import { WorkflowDefinitionDocument } from './chunk-AW3UXMNI.js';
|
|
8
8
|
import { useTr } from './chunk-UULVIT25.js';
|
|
9
9
|
import { getFluidGridsClient } from './chunk-NTWG3CJX.js';
|
|
10
10
|
import { useLocation, useNavigate, useParams } from 'react-router';
|