@powerhousedao/workflow 6.2.3-dev.50 → 6.2.3-dev.52
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-eaXC56EC.js → BlockSelector-CzJnQWsh.js} +1172 -254
- package/dist/browser/BlockSelector-CzJnQWsh.js.map +1 -0
- package/dist/browser/assets/{entry-E7pSm84X.js → entry-BETsJgYg.js} +2 -2
- package/dist/browser/assets/{projection-entry-UE4mfnXc.js → projection-entry-CdlLTrjU.js} +2 -2
- package/dist/browser/{connection-form-Db1YlNk2.js → connection-form-cCgfAa1A.js} +3 -3
- package/dist/browser/{connection-form-Db1YlNk2.js.map → connection-form-cCgfAa1A.js.map} +1 -1
- package/dist/browser/{data-tree-ClKfWUgI.js → data-tree-S_SwaRve.js} +2 -2
- package/dist/browser/{data-tree-ClKfWUgI.js.map → data-tree-S_SwaRve.js.map} +1 -1
- package/dist/browser/{document-models-DDiMjugM.js → document-models-B08jDa_s.js} +6 -1
- package/dist/browser/{document-models-DDiMjugM.js.map → document-models-B08jDa_s.js.map} +1 -1
- package/dist/browser/{editor-DFS8U1MR.js → editor-CQyfDOIN.js} +39 -27
- package/dist/browser/editor-CQyfDOIN.js.map +1 -0
- package/dist/browser/{editor-aRP2k9qa.js → editor-CVXRNht0.js} +4 -4
- package/dist/browser/{editor-aRP2k9qa.js.map → editor-CVXRNht0.js.map} +1 -1
- package/dist/browser/{editor-BgJ0RzSj.js → editor-CbpyTAEC.js} +4 -4
- package/dist/browser/{editor-BgJ0RzSj.js.map → 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 +32 -9
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/reactor/index.js +1 -1
- package/dist/browser/{runtime-queries-Bcd7IS3T.js → runtime-queries-2hn7fcKn.js} +17 -11
- package/dist/browser/runtime-queries-2hn7fcKn.js.map +1 -0
- package/dist/browser/{trigger-text-DxpCRgMq.js → trigger-text-Cfyx8tMq.js} +4 -4
- package/dist/browser/{trigger-text-DxpCRgMq.js.map → trigger-text-Cfyx8tMq.js.map} +1 -1
- package/dist/node/{BlockSelector-DidV3yJx.mjs → BlockSelector-g9m3yaJj.mjs} +1172 -254
- package/dist/node/BlockSelector-g9m3yaJj.mjs.map +1 -0
- package/dist/node/{connection-form-BitMCIRb.mjs → connection-form-h0PidbTI.mjs} +3 -3
- package/dist/node/{connection-form-BitMCIRb.mjs.map → connection-form-h0PidbTI.mjs.map} +1 -1
- package/dist/node/{data-tree-Cn50TNYN.mjs → data-tree-CKKeR7qj.mjs} +2 -2
- package/dist/node/{data-tree-Cn50TNYN.mjs.map → data-tree-CKKeR7qj.mjs.map} +1 -1
- package/dist/node/{editor-BsWzr32t.mjs → editor-BAbYXi7T.mjs} +4 -4
- package/dist/node/{editor-BsWzr32t.mjs.map → editor-BAbYXi7T.mjs.map} +1 -1
- package/dist/node/{editor-i7ovccfO.mjs → editor-DCsT8WsQ.mjs} +39 -27
- package/dist/node/editor-DCsT8WsQ.mjs.map +1 -0
- package/dist/node/{editor-D7GDdxR3.mjs → editor-EeTeVS3A.mjs} +4 -4
- package/dist/node/{editor-D7GDdxR3.mjs.map → editor-EeTeVS3A.mjs.map} +1 -1
- 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 +36 -8
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/pieces/reactor/descriptor.json +1 -1
- package/dist/node/pieces/reactor/package.json +1 -1
- package/dist/node/{runtime-queries-CZ7vFHoG.mjs → runtime-queries-BtTx8FU3.mjs} +17 -11
- package/dist/node/runtime-queries-BtTx8FU3.mjs.map +1 -0
- package/dist/node/{trigger-text-aHI7jqvP.mjs → trigger-text-CtSXg0KB.mjs} +4 -4
- package/dist/node/{trigger-text-aHI7jqvP.mjs.map → trigger-text-CtSXg0KB.mjs.map} +1 -1
- package/dist/powerhouse.manifest.json +6 -1
- 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/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 +25 -4
- 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/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/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/scripts/ui-stack.d.ts +1 -1
- package/dist/types/scripts/ui-stack.d.ts.map +1 -1
- package/package.json +8 -8
- package/dist/browser/BlockSelector-eaXC56EC.js.map +0 -1
- package/dist/browser/editor-DFS8U1MR.js.map +0 -1
- package/dist/browser/runtime-queries-Bcd7IS3T.js.map +0 -1
- package/dist/node/BlockSelector-DidV3yJx.mjs.map +0 -1
- package/dist/node/editor-i7ovccfO.mjs.map +0 -1
- package/dist/node/runtime-queries-CZ7vFHoG.mjs.map +0 -1
|
@@ -101,6 +101,11 @@ var powerhouse_manifest_default = {
|
|
|
101
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
102
|
"default": "100"
|
|
103
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
|
+
},
|
|
104
109
|
{
|
|
105
110
|
"name": "PH_WORKFLOWS_HOST_CALL_TIMEOUT_MS",
|
|
106
111
|
"type": "var",
|
|
@@ -119,4 +124,4 @@ const documentModels = [Connection, Workflow];
|
|
|
119
124
|
//#endregion
|
|
120
125
|
export { powerhouse_manifest_default as n, documentModels as t };
|
|
121
126
|
|
|
122
|
-
//# 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-
|
|
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
4
|
import { y as actions } from "./module-ozS5EVRx.js";
|
|
5
|
-
import { $ as
|
|
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
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-
|
|
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-
|
|
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) {
|
|
@@ -16698,6 +16703,8 @@ const PORT_LABEL_CLASSES = {
|
|
|
16698
16703
|
};
|
|
16699
16704
|
function AddButton(props) {
|
|
16700
16705
|
const [open, setOpen] = useState(false);
|
|
16706
|
+
const anchor = useRef(null);
|
|
16707
|
+
const close = useCallback(() => setOpen(false), []);
|
|
16701
16708
|
const size = props.size ?? 20;
|
|
16702
16709
|
const label = props.label;
|
|
16703
16710
|
return /* @__PURE__ */ jsxs("div", {
|
|
@@ -16707,6 +16714,7 @@ function AddButton(props) {
|
|
|
16707
16714
|
height: size
|
|
16708
16715
|
},
|
|
16709
16716
|
children: [/* @__PURE__ */ jsx("button", {
|
|
16717
|
+
ref: anchor,
|
|
16710
16718
|
type: "button",
|
|
16711
16719
|
"aria-label": props.title,
|
|
16712
16720
|
"aria-expanded": open,
|
|
@@ -16731,10 +16739,13 @@ function AddButton(props) {
|
|
|
16731
16739
|
fill: "none"
|
|
16732
16740
|
})
|
|
16733
16741
|
})
|
|
16734
|
-
}), open ? /* @__PURE__ */ jsx(
|
|
16735
|
-
|
|
16736
|
-
|
|
16737
|
-
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,
|
|
16738
16749
|
title: props.title,
|
|
16739
16750
|
presets: props.presets,
|
|
16740
16751
|
showPieces: props.showPieces,
|
|
@@ -16748,7 +16759,7 @@ function AddButton(props) {
|
|
|
16748
16759
|
setOpen(false);
|
|
16749
16760
|
props.onPick(preset);
|
|
16750
16761
|
},
|
|
16751
|
-
onClose:
|
|
16762
|
+
onClose: close
|
|
16752
16763
|
})
|
|
16753
16764
|
}) : null]
|
|
16754
16765
|
});
|
|
@@ -16946,10 +16957,6 @@ const PICKERS = {
|
|
|
16946
16957
|
insertStep: "Insert step",
|
|
16947
16958
|
changeTrigger: "Choose a trigger"
|
|
16948
16959
|
};
|
|
16949
|
-
const PICKER_SIZE = {
|
|
16950
|
-
width: 320,
|
|
16951
|
-
height: 400
|
|
16952
|
-
};
|
|
16953
16960
|
function CanvasContextMenu(props) {
|
|
16954
16961
|
const [picker, setPicker] = useState(null);
|
|
16955
16962
|
const containerRef = useRef(null);
|
|
@@ -16960,17 +16967,20 @@ function CanvasContextMenu(props) {
|
|
|
16960
16967
|
const onKeyDown = (event) => {
|
|
16961
16968
|
if (event.key === "Escape") props.onClose();
|
|
16962
16969
|
};
|
|
16963
|
-
window.addEventListener("mousedown", onMouseDown);
|
|
16970
|
+
window.addEventListener("mousedown", onMouseDown, true);
|
|
16964
16971
|
window.addEventListener("keydown", onKeyDown);
|
|
16965
16972
|
window.addEventListener("scroll", props.onClose, true);
|
|
16966
16973
|
return () => {
|
|
16967
|
-
window.removeEventListener("mousedown", onMouseDown);
|
|
16974
|
+
window.removeEventListener("mousedown", onMouseDown, true);
|
|
16968
16975
|
window.removeEventListener("keydown", onKeyDown);
|
|
16969
16976
|
window.removeEventListener("scroll", props.onClose, true);
|
|
16970
16977
|
};
|
|
16971
16978
|
}, [props]);
|
|
16972
16979
|
const items = contextMenuItems(props.state.target, props.model, props.portsOf);
|
|
16973
|
-
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
|
+
} : {
|
|
16974
16984
|
width: 176,
|
|
16975
16985
|
height: menuHeight(items.length)
|
|
16976
16986
|
};
|
|
@@ -16990,6 +17000,8 @@ function CanvasContextMenu(props) {
|
|
|
16990
17000
|
title: PICKERS[picker] ?? "",
|
|
16991
17001
|
presets: picker === "changeTrigger" ? TRIGGER_PRESETS : STEP_PRESETS,
|
|
16992
17002
|
showPieces: true,
|
|
17003
|
+
width: size.width,
|
|
17004
|
+
height: size.height,
|
|
16993
17005
|
pieceMode: picker === "changeTrigger" ? "triggers" : "actions",
|
|
16994
17006
|
onPick: (preset) => props.onAction(picker, preset),
|
|
16995
17007
|
onClose: props.onClose
|
|
@@ -17583,4 +17595,4 @@ function Editor() {
|
|
|
17583
17595
|
//#endregion
|
|
17584
17596
|
export { Editor as default };
|
|
17585
17597
|
|
|
17586
|
-
//# sourceMappingURL=editor-
|
|
17598
|
+
//# sourceMappingURL=editor-CQyfDOIN.js.map
|