@powerhousedao/workflow 6.2.3-dev.49 → 6.2.3-dev.51
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/browser/{BlockSelector-D9Wg49c_.js → BlockSelector-CzJnQWsh.js} +1179 -256
- package/dist/browser/BlockSelector-CzJnQWsh.js.map +1 -0
- package/dist/browser/assets/{entry-CnkwwnNv.js → entry-BETsJgYg.js} +3 -2
- package/dist/browser/assets/{projection-entry-CAGnE-12.js → projection-entry-CdlLTrjU.js} +3 -2
- package/dist/browser/{connection-form-Deth9pL1.js → connection-form-cCgfAa1A.js} +3 -3
- package/dist/browser/{connection-form-Deth9pL1.js.map → connection-form-cCgfAa1A.js.map} +1 -1
- package/dist/browser/{data-tree-Cw9dKR16.js → data-tree-S_SwaRve.js} +2 -2
- package/dist/browser/{data-tree-Cw9dKR16.js.map → data-tree-S_SwaRve.js.map} +1 -1
- package/dist/browser/document-models/index.js +2 -2
- package/dist/browser/document-models/workflow/index.js +2 -2
- package/dist/browser/{document-models-B7IwLbfO.js → document-models-B08jDa_s.js} +27 -3
- package/dist/browser/{document-models-B7IwLbfO.js.map → document-models-B08jDa_s.js.map} +1 -1
- package/dist/browser/{editor-B1KotawV.js → editor-CQyfDOIN.js} +61 -31
- package/dist/browser/editor-CQyfDOIN.js.map +1 -0
- package/dist/browser/{editor-8y31-Vvp.js → editor-CVXRNht0.js} +5 -5
- package/dist/browser/{editor-8y31-Vvp.js.map → editor-CVXRNht0.js.map} +1 -1
- package/dist/{node/editor-CGF4AwQw.mjs → browser/editor-CbpyTAEC.js} +7 -7
- package/dist/{node/editor-CGF4AwQw.mjs.map → browser/editor-CbpyTAEC.js.map} +1 -1
- package/dist/browser/editors/connection-editor/module.js +1 -1
- package/dist/browser/editors/workflow-editor/module.js +1 -1
- package/dist/browser/editors/workflow-studio/module.js +1 -1
- package/dist/browser/index.js +33 -10
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/{module-D4UiG9ii.js → module-ozS5EVRx.js} +2 -2
- package/dist/browser/module-ozS5EVRx.js.map +1 -0
- package/dist/browser/reactor/index.js +2 -2
- package/dist/browser/{runtime-queries-IZG_nonR.js → runtime-queries-2hn7fcKn.js} +18 -12
- package/dist/browser/runtime-queries-2hn7fcKn.js.map +1 -0
- package/dist/browser/{trigger-text-CZvKJJxp.js → trigger-text-Cfyx8tMq.js} +5 -5
- package/dist/browser/{trigger-text-CZvKJJxp.js.map → trigger-text-Cfyx8tMq.js.map} +1 -1
- package/dist/browser/{upgrade-manifests-C_9cyumV.js → upgrade-manifests-DHGmgHKW.js} +2 -2
- package/dist/browser/{upgrade-manifests-C_9cyumV.js.map → upgrade-manifests-DHGmgHKW.js.map} +1 -1
- package/dist/browser/{workflow-DFLQ2cFr.js → workflow-DoewHe4K.js} +2 -2
- package/dist/browser/{workflow-DFLQ2cFr.js.map → workflow-DoewHe4K.js.map} +1 -1
- package/dist/node/{BlockSelector-DTy0Bxvb.mjs → BlockSelector-g9m3yaJj.mjs} +1179 -256
- package/dist/node/BlockSelector-g9m3yaJj.mjs.map +1 -0
- package/dist/node/{connection-form-Bj7pbTyf.mjs → connection-form-h0PidbTI.mjs} +3 -3
- package/dist/node/{connection-form-Bj7pbTyf.mjs.map → connection-form-h0PidbTI.mjs.map} +1 -1
- package/dist/node/{data-tree-UIM5O3VM.mjs → data-tree-CKKeR7qj.mjs} +2 -2
- package/dist/node/{data-tree-UIM5O3VM.mjs.map → data-tree-CKKeR7qj.mjs.map} +1 -1
- package/dist/node/document-models/index.mjs +2 -2
- package/dist/node/document-models/workflow/index.mjs +2 -2
- package/dist/node/{editor-CoNRLOuV.mjs → editor-BAbYXi7T.mjs} +5 -5
- package/dist/node/{editor-CoNRLOuV.mjs.map → editor-BAbYXi7T.mjs.map} +1 -1
- package/dist/node/{editor-Bz2ZN5MI.mjs → editor-DCsT8WsQ.mjs} +61 -31
- package/dist/node/editor-DCsT8WsQ.mjs.map +1 -0
- package/dist/{browser/editor-7K-gL3BU.js → node/editor-EeTeVS3A.mjs} +7 -7
- package/dist/node/editor-EeTeVS3A.mjs.map +1 -0
- package/dist/node/editors/connection-editor/module.mjs +1 -1
- package/dist/node/editors/workflow-editor/module.mjs +1 -1
- package/dist/node/editors/workflow-studio/module.mjs +1 -1
- package/dist/node/index.mjs +58 -11
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/{module-BsqRZox1.mjs → module-uKdoLIga.mjs} +2 -2
- package/dist/node/module-uKdoLIga.mjs.map +1 -0
- package/dist/node/pieces/reactor/descriptor.json +1 -1
- package/dist/node/pieces/reactor/package.json +1 -1
- package/dist/node/{runtime-queries-BM6I7dDA.mjs → runtime-queries-BtTx8FU3.mjs} +18 -12
- package/dist/node/runtime-queries-BtTx8FU3.mjs.map +1 -0
- package/dist/node/{trigger-text-ARkrvW6N.mjs → trigger-text-CtSXg0KB.mjs} +5 -5
- package/dist/node/{trigger-text-ARkrvW6N.mjs.map → trigger-text-CtSXg0KB.mjs.map} +1 -1
- package/dist/node/{upgrade-manifests-CYZfts3a.mjs → upgrade-manifests-D-pLniUG.mjs} +2 -2
- package/dist/node/{upgrade-manifests-CYZfts3a.mjs.map → upgrade-manifests-D-pLniUG.mjs.map} +1 -1
- package/dist/node/{workflow-BpfdBHyS.mjs → workflow-Dy-309pE.mjs} +2 -2
- package/dist/node/{workflow-BpfdBHyS.mjs.map → workflow-Dy-309pE.mjs.map} +1 -1
- package/dist/powerhouse.manifest.json +26 -2
- package/dist/style.css +99 -28
- package/dist/types/ai/tools.d.ts +4 -4
- package/dist/types/ai/tools.d.ts.map +1 -1
- package/dist/types/document-models/workflow/v1/gen/schema/types.d.ts +13 -6
- package/dist/types/document-models/workflow/v1/gen/schema/types.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/runtime-api.d.ts +2 -1
- package/dist/types/editors/workflow-editor/runtime-api.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/runtime-client.d.ts +26 -5
- package/dist/types/editors/workflow-editor/runtime-client.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/runtime-context.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/ui/BlockSelector.d.ts +15 -2
- package/dist/types/editors/workflow-editor/ui/BlockSelector.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/ui/CanvasContextMenu.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/ui/PickerPopover.d.ts +12 -0
- package/dist/types/editors/workflow-editor/ui/PickerPopover.d.ts.map +1 -0
- package/dist/types/editors/workflow-editor/ui/ScheduleBuilder.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/ui/StepTest.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/ui/VirtualList.d.ts +14 -0
- package/dist/types/editors/workflow-editor/ui/VirtualList.d.ts.map +1 -0
- package/dist/types/editors/workflow-editor/ui/ap-nodes.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/ui/block-picker-layout.test.d.ts +2 -0
- package/dist/types/editors/workflow-editor/ui/block-picker-layout.test.d.ts.map +1 -0
- package/dist/types/editors/workflow-editor/ui/forms.d.ts +1 -1
- package/dist/types/editors/workflow-editor/ui/forms.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/ui/picker-placement.d.ts +19 -0
- package/dist/types/editors/workflow-editor/ui/picker-placement.d.ts.map +1 -0
- package/dist/types/editors/workflow-editor/ui/picker-recent.d.ts +4 -0
- package/dist/types/editors/workflow-editor/ui/picker-recent.d.ts.map +1 -0
- package/dist/types/editors/workflow-editor/ui/piece-source.d.ts +23 -3
- package/dist/types/editors/workflow-editor/ui/piece-source.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/ui/query-keys.d.ts +2 -2
- package/dist/types/editors/workflow-editor/ui/query-keys.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/ui/step-test.d.ts +2 -0
- package/dist/types/editors/workflow-editor/ui/step-test.d.ts.map +1 -1
- package/dist/types/editors/workflow-studio/components/RunsTable.d.ts.map +1 -1
- package/dist/types/editors/workflow-studio/components/run-format.d.ts +4 -0
- package/dist/types/editors/workflow-studio/components/run-format.d.ts.map +1 -1
- package/dist/types/scripts/ui-stack.d.ts +1 -1
- package/dist/types/scripts/ui-stack.d.ts.map +1 -1
- package/package.json +10 -10
- package/dist/browser/BlockSelector-D9Wg49c_.js.map +0 -1
- package/dist/browser/editor-7K-gL3BU.js.map +0 -1
- package/dist/browser/editor-B1KotawV.js.map +0 -1
- package/dist/browser/module-D4UiG9ii.js.map +0 -1
- package/dist/browser/runtime-queries-IZG_nonR.js.map +0 -1
- package/dist/node/BlockSelector-DTy0Bxvb.mjs.map +0 -1
- package/dist/node/editor-Bz2ZN5MI.mjs.map +0 -1
- package/dist/node/module-BsqRZox1.mjs.map +0 -1
- package/dist/node/runtime-queries-BM6I7dDA.mjs.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as Workflow } from "../module-
|
|
1
|
+
import { t as Workflow } from "../module-ozS5EVRx.js";
|
|
2
2
|
import { t as Connection } from "../module-B2BMwu5E.js";
|
|
3
|
-
import { t as upgradeManifests } from "../upgrade-manifests-
|
|
3
|
+
import { t as upgradeManifests } from "../upgrade-manifests-DHGmgHKW.js";
|
|
4
4
|
export { Connection as ConnectionV1, Workflow as WorkflowV1, upgradeManifests };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $ as ConcurrencyModeSchema, A as addStep, At as WorkflowEdgeSchema, B as revertToPublished, C as setWorkflowStatus, Ct as SetWorkflowStatusInputSchema, D as clearTrigger, Dt as UpdateStepPositionInputSchema, E as setVariable, Et as UpdateStepInputSchema, F as creators_exports$3, Ft as WorkflowVariableSchema, G as removeEdge, H as setPolicy, I as setLastRun, It as definedNonNullAnySchema, J as AddStepPositionInputSchema, K as AddEdgeInputSchema, L as setLastTest, Lt as isDefinedNonNullAny, M as removeStep, Mt as WorkflowStateSchema, N as setStepConfig, Nt as WorkflowStatusSchema, O as creators_exports$5, Ot as UpdateStepRetryPolicyInputSchema, P as updateStep, Pt as WorkflowStepSchema, Q as ClearTriggerInputSchema, R as creators_exports$2, S as setWorkflowName, St as SetWorkflowNameInputSchema, T as removeVariable, Tt as TriggerBindingSchema, U as addEdge, V as creators_exports$1, W as creators_exports, X as AddStepRetryPolicyInputSchema, Y as AddStepPropertySettingInputSchema, Z as BackoffKindSchema, _ as reducer, _t as SetStepConfigPropertySettingInputSchema, at as PublishedWorkflowSchema, b as creators_exports$7, bt as SetVariableInputSchema, c as WorkflowPHStateSchema, ct as RemoveVariableInputSchema, d as isWorkflowDocument, dt as RunStatusSchema, et as FailureModeSchema, f as isWorkflowState, ft as SetLastRunInputSchema, g as supportedVersions, gt as SetStepConfigInputSchema, h as latestVersion, ht as SetPolicyRetryPolicyInputSchema, i as initialLocalState, it as PublishWorkflowInputSchema, j as creators_exports$4, jt as WorkflowPolicySchema, k as setTrigger, kt as VariableTypeSchema, l as assertIsWorkflowDocument, lt as RetryPolicySchema, m as workflowUpgradeManifest, mt as SetPolicyInputSchema, n as utils, nt as PropertyModeSchema, o as WorkflowDocumentHeaderSchema, ot as RemoveEdgeInputSchema, p as workflowDocumentType, pt as SetLastTestInputSchema, q as AddStepInputSchema, r as initialGlobalState, rt as PropertySettingSchema, s as WorkflowDocumentSchema, st as RemoveStepInputSchema, t as Workflow, tt as PointSchema, u as assertIsWorkflowState, ut as RevertToPublishedInputSchema, v as documentModel, vt as SetTriggerInputSchema, w as creators_exports$6, wt as StepTestRecordSchema, x as setWorkflowDescription, xt as SetWorkflowDescriptionInputSchema, y as actions, yt as SetTriggerPropertySettingInputSchema, z as publishWorkflow } from "../../module-
|
|
2
|
-
import { a as createState, c as defaultLocalState, i as useWorkflowDocumentsInSelectedFolder, l as defaultPHState, n as useWorkflowDocumentById, o as createWorkflowDocument, r as useWorkflowDocumentsInSelectedDrive, s as defaultGlobalState, t as useSelectedWorkflowDocument, u as WorkflowController } from "../../workflow-
|
|
1
|
+
import { $ as ConcurrencyModeSchema, A as addStep, At as WorkflowEdgeSchema, B as revertToPublished, C as setWorkflowStatus, Ct as SetWorkflowStatusInputSchema, D as clearTrigger, Dt as UpdateStepPositionInputSchema, E as setVariable, Et as UpdateStepInputSchema, F as creators_exports$3, Ft as WorkflowVariableSchema, G as removeEdge, H as setPolicy, I as setLastRun, It as definedNonNullAnySchema, J as AddStepPositionInputSchema, K as AddEdgeInputSchema, L as setLastTest, Lt as isDefinedNonNullAny, M as removeStep, Mt as WorkflowStateSchema, N as setStepConfig, Nt as WorkflowStatusSchema, O as creators_exports$5, Ot as UpdateStepRetryPolicyInputSchema, P as updateStep, Pt as WorkflowStepSchema, Q as ClearTriggerInputSchema, R as creators_exports$2, S as setWorkflowName, St as SetWorkflowNameInputSchema, T as removeVariable, Tt as TriggerBindingSchema, U as addEdge, V as creators_exports$1, W as creators_exports, X as AddStepRetryPolicyInputSchema, Y as AddStepPropertySettingInputSchema, Z as BackoffKindSchema, _ as reducer, _t as SetStepConfigPropertySettingInputSchema, at as PublishedWorkflowSchema, b as creators_exports$7, bt as SetVariableInputSchema, c as WorkflowPHStateSchema, ct as RemoveVariableInputSchema, d as isWorkflowDocument, dt as RunStatusSchema, et as FailureModeSchema, f as isWorkflowState, ft as SetLastRunInputSchema, g as supportedVersions, gt as SetStepConfigInputSchema, h as latestVersion, ht as SetPolicyRetryPolicyInputSchema, i as initialLocalState, it as PublishWorkflowInputSchema, j as creators_exports$4, jt as WorkflowPolicySchema, k as setTrigger, kt as VariableTypeSchema, l as assertIsWorkflowDocument, lt as RetryPolicySchema, m as workflowUpgradeManifest, mt as SetPolicyInputSchema, n as utils, nt as PropertyModeSchema, o as WorkflowDocumentHeaderSchema, ot as RemoveEdgeInputSchema, p as workflowDocumentType, pt as SetLastTestInputSchema, q as AddStepInputSchema, r as initialGlobalState, rt as PropertySettingSchema, s as WorkflowDocumentSchema, st as RemoveStepInputSchema, t as Workflow, tt as PointSchema, u as assertIsWorkflowState, ut as RevertToPublishedInputSchema, v as documentModel, vt as SetTriggerInputSchema, w as creators_exports$6, wt as StepTestRecordSchema, x as setWorkflowDescription, xt as SetWorkflowDescriptionInputSchema, y as actions, yt as SetTriggerPropertySettingInputSchema, z as publishWorkflow } from "../../module-ozS5EVRx.js";
|
|
2
|
+
import { a as createState, c as defaultLocalState, i as useWorkflowDocumentsInSelectedFolder, l as defaultPHState, n as useWorkflowDocumentById, o as createWorkflowDocument, r as useWorkflowDocumentsInSelectedDrive, s as defaultGlobalState, t as useSelectedWorkflowDocument, u as WorkflowController } from "../../workflow-DoewHe4K.js";
|
|
3
3
|
export { AddEdgeInputSchema, AddStepInputSchema, AddStepPositionInputSchema, AddStepPropertySettingInputSchema, AddStepRetryPolicyInputSchema, BackoffKindSchema, ClearTriggerInputSchema, ConcurrencyModeSchema, FailureModeSchema, PointSchema, PropertyModeSchema, PropertySettingSchema, PublishWorkflowInputSchema, PublishedWorkflowSchema, RemoveEdgeInputSchema, RemoveStepInputSchema, RemoveVariableInputSchema, RetryPolicySchema, RevertToPublishedInputSchema, RunStatusSchema, SetLastRunInputSchema, SetLastTestInputSchema, SetPolicyInputSchema, SetPolicyRetryPolicyInputSchema, SetStepConfigInputSchema, SetStepConfigPropertySettingInputSchema, SetTriggerInputSchema, SetTriggerPropertySettingInputSchema, SetVariableInputSchema, SetWorkflowDescriptionInputSchema, SetWorkflowNameInputSchema, SetWorkflowStatusInputSchema, StepTestRecordSchema, TriggerBindingSchema, UpdateStepInputSchema, UpdateStepPositionInputSchema, UpdateStepRetryPolicyInputSchema, VariableTypeSchema, Workflow, WorkflowController, WorkflowDocumentHeaderSchema, WorkflowDocumentSchema, WorkflowEdgeSchema, WorkflowPHStateSchema, WorkflowPolicySchema, WorkflowStateSchema, WorkflowStatusSchema, WorkflowStepSchema, WorkflowVariableSchema, actions, addEdge, addStep, assertIsWorkflowDocument, assertIsWorkflowState, clearTrigger, createState, createWorkflowDocument, defaultGlobalState, defaultLocalState, defaultPHState, definedNonNullAnySchema, documentModel, initialGlobalState, initialLocalState, isDefinedNonNullAny, isWorkflowDocument, isWorkflowState, latestVersion, publishWorkflow, reducer, removeEdge, removeStep, removeVariable, revertToPublished, setLastRun, setLastTest, setPolicy, setStepConfig, setTrigger, setVariable, setWorkflowDescription, setWorkflowName, setWorkflowStatus, supportedVersions, updateStep, useSelectedWorkflowDocument, useWorkflowDocumentById, useWorkflowDocumentsInSelectedDrive, useWorkflowDocumentsInSelectedFolder, utils, workflowDocumentType, creators_exports as workflowEdgesActions, creators_exports$1 as workflowPolicyActions, creators_exports$2 as workflowPublishingActions, creators_exports$3 as workflowRuntimeActions, creators_exports$4 as workflowStepsActions, creators_exports$5 as workflowTriggerActions, workflowUpgradeManifest, creators_exports$6 as workflowVariablesActions, creators_exports$7 as workflowWorkflowActions };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as Workflow } from "./module-
|
|
1
|
+
import { t as Workflow } from "./module-ozS5EVRx.js";
|
|
2
2
|
import { t as Connection } from "./module-B2BMwu5E.js";
|
|
3
3
|
//#region powerhouse.manifest.json
|
|
4
4
|
var powerhouse_manifest_default = {
|
|
@@ -83,10 +83,34 @@ var powerhouse_manifest_default = {
|
|
|
83
83
|
"description": "File-size ceiling for both directions: a FILE property hydrated from a URL, data URI or attachment ref, and ctx.files.write.",
|
|
84
84
|
"default": "8388608"
|
|
85
85
|
},
|
|
86
|
+
{
|
|
87
|
+
"name": "PH_WORKFLOWS_ATTACHMENT_CACHE_BYTES",
|
|
88
|
+
"type": "var",
|
|
89
|
+
"description": "Bytes of downloaded attachments kept on disk by content, so later steps and runs skip the download. 0 turns the cache off.",
|
|
90
|
+
"default": "1073741824"
|
|
91
|
+
},
|
|
86
92
|
{
|
|
87
93
|
"name": "PH_WORKFLOWS_RUN_RETENTION_DAYS",
|
|
88
94
|
"type": "var",
|
|
89
|
-
"description": "Deletes finished workflow runs older than this many days, with their step executions, in an hourly sweep.
|
|
95
|
+
"description": "Deletes finished workflow runs older than this many days, with their step executions, in an hourly sweep. On by default at 30 days; 0, \"off\" or \"never\" keeps every run, which lets the journal grow without bound.",
|
|
96
|
+
"default": "30"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"name": "PH_WORKFLOWS_MAX_QUEUED_FIRINGS",
|
|
100
|
+
"type": "var",
|
|
101
|
+
"description": "Firings of one workflow that may wait for its concurrency slot under QUEUE or a bounded PARALLEL. Past it a firing is journaled as a CANCELLED run instead of waiting.",
|
|
102
|
+
"default": "100"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"name": "PH_WORKFLOWS_SINGLETON_OWNER",
|
|
106
|
+
"type": "var",
|
|
107
|
+
"description": "Names this process as the owner of workflow execution, which is a singleton: exactly one reactor runs workflows. Unset, the owner is <hostname>/<hash of the journal's storage location>, stable per deployment slot, so a restart re-claims its own lease once the old process's heartbeat is stale; a different owner is refused until the holder's lease expires."
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"name": "PH_WORKFLOWS_HOST_CALL_TIMEOUT_MS",
|
|
111
|
+
"type": "var",
|
|
112
|
+
"description": "How long one call a piece makes of its host (ctx.store, ctx.reactor) may take before the step gives up on it. Raised to the step's own timeoutSeconds when that is longer. A WRITING call that times out records the step INDETERMINATE rather than FAILED, since the write may have been committed.",
|
|
113
|
+
"default": "10000"
|
|
90
114
|
}
|
|
91
115
|
]
|
|
92
116
|
};
|
|
@@ -100,4 +124,4 @@ const documentModels = [Connection, Workflow];
|
|
|
100
124
|
//#endregion
|
|
101
125
|
export { powerhouse_manifest_default as n, documentModels as t };
|
|
102
126
|
|
|
103
|
-
//# sourceMappingURL=document-models-
|
|
127
|
+
//# sourceMappingURL=document-models-B08jDa_s.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document-models-
|
|
1
|
+
{"version":3,"file":"document-models-B08jDa_s.js","names":["ConnectionV1","WorkflowV1"],"sources":["../../powerhouse.manifest.json","../../document-models/document-models.ts"],"sourcesContent":["","import { Connection as ConnectionV1 } from \"document-models/connection/v1\";\nimport { Workflow as WorkflowV1 } from \"document-models/workflow/v1\";\n\n/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\n\nexport const documentModels = [ConnectionV1, WorkflowV1] as const;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACQA,MAAa,iBAAiB,CAACA,YAAcC,QAAU"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { r as __toESM, t as __commonJSMin } from "./rolldown-runtime-DC62tzP2.js";
|
|
2
2
|
import { c as planFromAuth, o as packageFromConnectorId, r as connectorIdForPiece } from "./piece-auth-BS5CtQOG.js";
|
|
3
|
-
import { $ as isCoreBlock, X as STEP_PRESETS, Z as TRIGGER_PRESETS, at as triggerFields, dt as expandDocumentRefs, f as stepOutputTreeQuery, ft as flowPorts, gt as scheduleConfigIssue, h as blockRefKey, ht as parseScheduleConfig, i as outputTreeQuery, it as triggerBlock, mt as knownPorts, n as catalogQuery, nt as stepBlock, rt as stepFields, tt as sameBlock, u as runsQuery, ut as documentRefsIn, v as TEST_TRIGGER_KIND, y as realRuns } from "./runtime-queries-
|
|
4
|
-
import { y as actions } from "./module-
|
|
5
|
-
import { $ as
|
|
3
|
+
import { $ as isCoreBlock, X as STEP_PRESETS, Z as TRIGGER_PRESETS, at as triggerFields, dt as expandDocumentRefs, f as stepOutputTreeQuery, ft as flowPorts, gt as scheduleConfigIssue, h as blockRefKey, ht as parseScheduleConfig, i as outputTreeQuery, it as triggerBlock, mt as knownPorts, n as catalogQuery, nt as stepBlock, rt as stepFields, tt as sameBlock, u as runsQuery, ut as documentRefsIn, v as TEST_TRIGGER_KIND, y as realRuns } from "./runtime-queries-2hn7fcKn.js";
|
|
4
|
+
import { y as actions } from "./module-ozS5EVRx.js";
|
|
5
|
+
import { $ as useTestStepRunner, At as Switch, B as useBlockForms, Ct as Button, Dt as IconButton, E as formatDuration, Et as Hint, F as toneOf, Ft as textAreaClass, G as useDesignTime, H as useBlockResolutions, It as textInputClass, J as useDynamicPrefetch, K as useDynamicCache, L as DesignTimeProvider, Lt as Icon, Ot as Segmented, Pt as invalidClass, Q as useRunById, R as useBlockForm, Rt as isIconName, S as TONE_TEXT, T as formatAbsolute, Tt as FieldLabel, U as useCachedBlockForm, V as useBlockPorts, W as useConnectionList, X as useOptionSearch, Y as useLatestRun, Z as useResolvedProp, a as BlockResolutionsProvider, at as parsePropList, bt as useRuntime, c as runsDifferentVersion, ct as storedSchema, d as versionBadge, dt as withSetting, et as useTestTrigger, f as blockMeta, ft as workflowReadiness, g as usePieceLogos, h as useBlockMeta, i as PickerPopover, it as isPropVisible, jt as Tabs, k as formatWhen, kt as Select, l as updateVersion, lt as stripOptions, m as pieceLogo, n as BlockSelector, nt as blockMissing, o as VersionSummary, ot as resolverInputFor, p as pieceDisplayName, pt as WorkflowRuntimeProvider, q as useDynamicLookup, r as PICKER_SIZE, rt as isEmptyValue, s as resolutionText, st as settingFor, t as BlockLogo, tt as useWebhookEndpoint, u as useResolution, ut as undeclaredPortIssues, wt as FieldError, x as TONE_DOT, xt as useRuntimeActions, y as RUN_TONE, yt as useRunsQuery, z as useBlockFormLoader, zt as DocumentErrorBoundary } from "./BlockSelector-CzJnQWsh.js";
|
|
6
6
|
import { A as REACTOR_CONNECTOR_ID, y as actions$1 } from "./module-B2BMwu5E.js";
|
|
7
7
|
import { t as useConnectionDocumentById } from "./connection-BP17lpt3.js";
|
|
8
|
-
import { t as useSelectedWorkflowDocument } from "./workflow-
|
|
9
|
-
import { a as useSignInGate, f as connectionCallbacks, g as newUndoGroup, h as groupedAction, i as useReactorAccessDenial, l as reactorConnections, m as UndoRedo, n as SignInPrompt, o as missingInPublished, p as BackButton, r as usePublisher, s as runsAsText, t as ConnectionForm } from "./connection-form-
|
|
10
|
-
import { a as StepError, c as PublishButton, d as ReactorDenialNote, f as StatusToggle, g as uniqueStepKey, h as hasDraftChanges, i as DataViewer, l as PublishState, m as VARIABLES_VIEW, n as describeSchedule, o as Modal, p as usePublish, r as describeTrigger, s as DraftBanner, t as describeCron, u as PublishedMissingNote } from "./trigger-text-
|
|
8
|
+
import { t as useSelectedWorkflowDocument } from "./workflow-DoewHe4K.js";
|
|
9
|
+
import { a as useSignInGate, f as connectionCallbacks, g as newUndoGroup, h as groupedAction, i as useReactorAccessDenial, l as reactorConnections, m as UndoRedo, n as SignInPrompt, o as missingInPublished, p as BackButton, r as usePublisher, s as runsAsText, t as ConnectionForm } from "./connection-form-cCgfAa1A.js";
|
|
10
|
+
import { a as StepError, c as PublishButton, d as ReactorDenialNote, f as StatusToggle, g as uniqueStepKey, h as hasDraftChanges, i as DataViewer, l as PublishState, m as VARIABLES_VIEW, n as describeSchedule, o as Modal, p as usePublish, r as describeTrigger, s as DraftBanner, t as describeCron, u as PublishedMissingNote } from "./trigger-text-Cfyx8tMq.js";
|
|
11
11
|
import * as m from "react";
|
|
12
12
|
import React, { Fragment, Suspense, createContext, forwardRef, lazy, memo, useCallback, useContext, useEffect, useId, useLayoutEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
|
|
13
13
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -3797,12 +3797,17 @@ function TimeField(props) {
|
|
|
3797
3797
|
}
|
|
3798
3798
|
})] });
|
|
3799
3799
|
}
|
|
3800
|
+
function isEvery(text) {
|
|
3801
|
+
const every = Number(text);
|
|
3802
|
+
return text !== "" && Number.isInteger(every) && every >= 1;
|
|
3803
|
+
}
|
|
3800
3804
|
function EveryInput(props) {
|
|
3801
3805
|
const [text, setText] = useState(String(props.every));
|
|
3802
|
-
const [
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
+
const [seen, setSeen] = useState(props.every);
|
|
3807
|
+
const [typing, setTyping] = useState(false);
|
|
3808
|
+
if (seen !== props.every) {
|
|
3809
|
+
setSeen(props.every);
|
|
3810
|
+
if (!typing) setText(String(props.every));
|
|
3806
3811
|
}
|
|
3807
3812
|
return /* @__PURE__ */ jsx("input", {
|
|
3808
3813
|
id: props.id,
|
|
@@ -3812,14 +3817,14 @@ function EveryInput(props) {
|
|
|
3812
3817
|
className: `${textInputClass} w-24 tabular-nums`,
|
|
3813
3818
|
value: text,
|
|
3814
3819
|
onChange: (event) => {
|
|
3820
|
+
setTyping(true);
|
|
3815
3821
|
setText(event.target.value);
|
|
3816
|
-
|
|
3817
|
-
if (event.target.value !== "" && Number.isInteger(every) && every >= 1) {
|
|
3818
|
-
setSaved(every);
|
|
3819
|
-
props.onCommit(every);
|
|
3820
|
-
}
|
|
3822
|
+
if (isEvery(event.target.value)) props.onCommit(Number(event.target.value));
|
|
3821
3823
|
},
|
|
3822
|
-
onBlur: () =>
|
|
3824
|
+
onBlur: () => {
|
|
3825
|
+
setTyping(false);
|
|
3826
|
+
if (!isEvery(text)) setText(String(props.every));
|
|
3827
|
+
}
|
|
3823
3828
|
});
|
|
3824
3829
|
}
|
|
3825
3830
|
function ScheduleBuilder(props) {
|
|
@@ -3996,6 +4001,11 @@ function explainTestError(error) {
|
|
|
3996
4001
|
targets: []
|
|
3997
4002
|
};
|
|
3998
4003
|
}
|
|
4004
|
+
function testOutcomeView(status) {
|
|
4005
|
+
if (status === "SUCCEEDED") return "output";
|
|
4006
|
+
if (status === "INDETERMINATE") return "indeterminate";
|
|
4007
|
+
return "failed";
|
|
4008
|
+
}
|
|
3999
4009
|
//#endregion
|
|
4000
4010
|
//#region editors/workflow-editor/ui/test-state.ts
|
|
4001
4011
|
function testState(block, runStatus) {
|
|
@@ -4080,6 +4090,19 @@ function TestError(props) {
|
|
|
4080
4090
|
}) : null]
|
|
4081
4091
|
});
|
|
4082
4092
|
}
|
|
4093
|
+
function TestIndeterminate(props) {
|
|
4094
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
4095
|
+
role: "alert",
|
|
4096
|
+
className: "flex flex-col gap-1.5 rounded-md bg-wf-warn/10 p-2.5 text-xs text-wf-warn",
|
|
4097
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
4098
|
+
className: "font-medium",
|
|
4099
|
+
children: "Indeterminate: this test may have written something. Check the target before testing again."
|
|
4100
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
4101
|
+
className: "whitespace-pre-wrap break-words",
|
|
4102
|
+
children: props.error
|
|
4103
|
+
})]
|
|
4104
|
+
});
|
|
4105
|
+
}
|
|
4083
4106
|
function LastTestResult(props) {
|
|
4084
4107
|
const run = useRunById(props.step.lastTest?.runId);
|
|
4085
4108
|
if (!props.step.lastTest) return null;
|
|
@@ -4146,12 +4169,12 @@ function StepTestSection(props) {
|
|
|
4146
4169
|
ran: false,
|
|
4147
4170
|
model: props.model,
|
|
4148
4171
|
onSelect: props.onSelect
|
|
4149
|
-
}) : attempt.outcome.status === "
|
|
4172
|
+
}) : testOutcomeView(attempt.outcome.status) === "failed" ? /* @__PURE__ */ jsx(TestError, {
|
|
4150
4173
|
error: attempt.outcome.error ?? "The test failed",
|
|
4151
4174
|
ran: attempt.outcome.runId !== null,
|
|
4152
4175
|
model: props.model,
|
|
4153
4176
|
onSelect: props.onSelect
|
|
4154
|
-
}) : /* @__PURE__ */ jsx(DataViewer, {
|
|
4177
|
+
}) : testOutcomeView(attempt.outcome.status) === "indeterminate" ? /* @__PURE__ */ jsx(TestIndeterminate, { error: attempt.outcome.error ?? "A host call the step made timed out" }) : /* @__PURE__ */ jsx(DataViewer, {
|
|
4155
4178
|
label: "Output",
|
|
4156
4179
|
value: attempt.outcome.output,
|
|
4157
4180
|
root: `steps.${step.key}.output`
|
|
@@ -16680,6 +16703,8 @@ const PORT_LABEL_CLASSES = {
|
|
|
16680
16703
|
};
|
|
16681
16704
|
function AddButton(props) {
|
|
16682
16705
|
const [open, setOpen] = useState(false);
|
|
16706
|
+
const anchor = useRef(null);
|
|
16707
|
+
const close = useCallback(() => setOpen(false), []);
|
|
16683
16708
|
const size = props.size ?? 20;
|
|
16684
16709
|
const label = props.label;
|
|
16685
16710
|
return /* @__PURE__ */ jsxs("div", {
|
|
@@ -16689,6 +16714,7 @@ function AddButton(props) {
|
|
|
16689
16714
|
height: size
|
|
16690
16715
|
},
|
|
16691
16716
|
children: [/* @__PURE__ */ jsx("button", {
|
|
16717
|
+
ref: anchor,
|
|
16692
16718
|
type: "button",
|
|
16693
16719
|
"aria-label": props.title,
|
|
16694
16720
|
"aria-expanded": open,
|
|
@@ -16713,10 +16739,13 @@ function AddButton(props) {
|
|
|
16713
16739
|
fill: "none"
|
|
16714
16740
|
})
|
|
16715
16741
|
})
|
|
16716
|
-
}), open ? /* @__PURE__ */ jsx(
|
|
16717
|
-
|
|
16718
|
-
|
|
16719
|
-
children: /* @__PURE__ */ jsx(BlockSelector, {
|
|
16742
|
+
}), open ? /* @__PURE__ */ jsx(PickerPopover, {
|
|
16743
|
+
anchor,
|
|
16744
|
+
onClose: close,
|
|
16745
|
+
children: (placement) => /* @__PURE__ */ jsx(BlockSelector, {
|
|
16746
|
+
anchor,
|
|
16747
|
+
width: placement.width,
|
|
16748
|
+
height: placement.height,
|
|
16720
16749
|
title: props.title,
|
|
16721
16750
|
presets: props.presets,
|
|
16722
16751
|
showPieces: props.showPieces,
|
|
@@ -16730,7 +16759,7 @@ function AddButton(props) {
|
|
|
16730
16759
|
setOpen(false);
|
|
16731
16760
|
props.onPick(preset);
|
|
16732
16761
|
},
|
|
16733
|
-
onClose:
|
|
16762
|
+
onClose: close
|
|
16734
16763
|
})
|
|
16735
16764
|
}) : null]
|
|
16736
16765
|
});
|
|
@@ -16928,10 +16957,6 @@ const PICKERS = {
|
|
|
16928
16957
|
insertStep: "Insert step",
|
|
16929
16958
|
changeTrigger: "Choose a trigger"
|
|
16930
16959
|
};
|
|
16931
|
-
const PICKER_SIZE = {
|
|
16932
|
-
width: 320,
|
|
16933
|
-
height: 400
|
|
16934
|
-
};
|
|
16935
16960
|
function CanvasContextMenu(props) {
|
|
16936
16961
|
const [picker, setPicker] = useState(null);
|
|
16937
16962
|
const containerRef = useRef(null);
|
|
@@ -16942,17 +16967,20 @@ function CanvasContextMenu(props) {
|
|
|
16942
16967
|
const onKeyDown = (event) => {
|
|
16943
16968
|
if (event.key === "Escape") props.onClose();
|
|
16944
16969
|
};
|
|
16945
|
-
window.addEventListener("mousedown", onMouseDown);
|
|
16970
|
+
window.addEventListener("mousedown", onMouseDown, true);
|
|
16946
16971
|
window.addEventListener("keydown", onKeyDown);
|
|
16947
16972
|
window.addEventListener("scroll", props.onClose, true);
|
|
16948
16973
|
return () => {
|
|
16949
|
-
window.removeEventListener("mousedown", onMouseDown);
|
|
16974
|
+
window.removeEventListener("mousedown", onMouseDown, true);
|
|
16950
16975
|
window.removeEventListener("keydown", onKeyDown);
|
|
16951
16976
|
window.removeEventListener("scroll", props.onClose, true);
|
|
16952
16977
|
};
|
|
16953
16978
|
}, [props]);
|
|
16954
16979
|
const items = contextMenuItems(props.state.target, props.model, props.portsOf);
|
|
16955
|
-
const size = picker ?
|
|
16980
|
+
const size = picker ? {
|
|
16981
|
+
width: Math.min(PICKER_SIZE.width, window.innerWidth - 16),
|
|
16982
|
+
height: Math.min(PICKER_SIZE.height, window.innerHeight - 16)
|
|
16983
|
+
} : {
|
|
16956
16984
|
width: 176,
|
|
16957
16985
|
height: menuHeight(items.length)
|
|
16958
16986
|
};
|
|
@@ -16972,6 +17000,8 @@ function CanvasContextMenu(props) {
|
|
|
16972
17000
|
title: PICKERS[picker] ?? "",
|
|
16973
17001
|
presets: picker === "changeTrigger" ? TRIGGER_PRESETS : STEP_PRESETS,
|
|
16974
17002
|
showPieces: true,
|
|
17003
|
+
width: size.width,
|
|
17004
|
+
height: size.height,
|
|
16975
17005
|
pieceMode: picker === "changeTrigger" ? "triggers" : "actions",
|
|
16976
17006
|
onPick: (preset) => props.onAction(picker, preset),
|
|
16977
17007
|
onClose: props.onClose
|
|
@@ -17565,4 +17595,4 @@ function Editor() {
|
|
|
17565
17595
|
//#endregion
|
|
17566
17596
|
export { Editor as default };
|
|
17567
17597
|
|
|
17568
|
-
//# sourceMappingURL=editor-
|
|
17598
|
+
//# sourceMappingURL=editor-CQyfDOIN.js.map
|