@powerhousedao/workflow 6.2.3-dev.84 → 6.2.3-dev.85
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-CtoMNZ9A.js → BlockSelector-BKAJwJ4Y.js} +74 -6
- package/dist/browser/BlockSelector-BKAJwJ4Y.js.map +1 -0
- package/dist/browser/{PieceMarkdown-U6OUTwRi.js → PieceMarkdown-DSdZd-Jc.js} +34 -8
- package/dist/browser/PieceMarkdown-DSdZd-Jc.js.map +1 -0
- package/dist/browser/{connection-form-_H-tP2Vk.js → connection-form-DltdMa8F.js} +3 -3
- package/dist/browser/{connection-form-_H-tP2Vk.js.map → connection-form-DltdMa8F.js.map} +1 -1
- package/dist/browser/{data-tree-CjWQllC7.js → data-tree-DAw8e0j8.js} +25 -12
- package/dist/browser/data-tree-DAw8e0j8.js.map +1 -0
- package/dist/browser/document-models/index.js +2 -2
- package/dist/browser/document-models/workflow/index.js +2 -2
- package/dist/browser/{document-models-DSK5cn8B.js → document-models-C2SAP1SX.js} +2 -2
- package/dist/browser/{document-models-DSK5cn8B.js.map → document-models-C2SAP1SX.js.map} +1 -1
- package/dist/browser/{editor-B1AzXxaF.js → editor--J61vLSC.js} +435 -51
- package/dist/browser/editor--J61vLSC.js.map +1 -0
- package/dist/browser/{editor-DgdTF2up.js → editor-CZLe6CAF.js} +5 -5
- package/dist/browser/{editor-DgdTF2up.js.map → editor-CZLe6CAF.js.map} +1 -1
- package/dist/browser/{editor-B9069RYZ.js → editor-Dl6lzxkM.js} +26 -18
- package/dist/browser/{editor-B9069RYZ.js.map → editor-Dl6lzxkM.js.map} +1 -1
- package/dist/browser/editors/connection-editor/module.js +1 -1
- package/dist/browser/editors/runtime/index.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 +3 -3
- package/dist/browser/{module-eOpxJVIl.js → module-mFCt9WHJ.js} +2 -2
- package/dist/browser/module-mFCt9WHJ.js.map +1 -0
- package/dist/browser/reactor/index.js +2 -2
- package/dist/browser/{runtime-queries-LAcyniYz.js → runtime-queries-D81Ghpok.js} +105 -4
- package/dist/browser/runtime-queries-D81Ghpok.js.map +1 -0
- package/dist/browser/{trigger-text-BgpPIXEJ.js → trigger-text-BSVi5oGZ.js} +392 -387
- package/dist/browser/trigger-text-BSVi5oGZ.js.map +1 -0
- package/dist/browser/{upgrade-manifests-CLYUPqBs.js → upgrade-manifests-C2Qa6myy.js} +2 -2
- package/dist/browser/{upgrade-manifests-CLYUPqBs.js.map → upgrade-manifests-C2Qa6myy.js.map} +1 -1
- package/dist/browser/{workflow-Cn1UP-eJ.js → workflow-BFdnSGRD.js} +2 -2
- package/dist/browser/{workflow-Cn1UP-eJ.js.map → workflow-BFdnSGRD.js.map} +1 -1
- package/dist/node/{BlockSelector-CbdgYJfp.mjs → BlockSelector-Bcb5NJ_X.mjs} +74 -6
- package/dist/node/BlockSelector-Bcb5NJ_X.mjs.map +1 -0
- package/dist/node/{PieceMarkdown-DwpCBISY.mjs → PieceMarkdown-CUSdTMH4.mjs} +34 -8
- package/dist/node/{PieceMarkdown-DwpCBISY.mjs.map → PieceMarkdown-CUSdTMH4.mjs.map} +1 -1
- package/dist/node/{connection-form-DPbyrUIm.mjs → connection-form-DF5418sz.mjs} +3 -3
- package/dist/node/{connection-form-DPbyrUIm.mjs.map → connection-form-DF5418sz.mjs.map} +1 -1
- package/dist/node/{data-tree-CXa2kEuD.mjs → data-tree-CebWVI_P.mjs} +25 -12
- package/dist/node/{data-tree-CXa2kEuD.mjs.map → data-tree-CebWVI_P.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-D3MlbYBN.mjs → editor-BmRWQvRs.mjs} +435 -51
- package/dist/node/editor-BmRWQvRs.mjs.map +1 -0
- package/dist/node/{editor-DzxyNgYk.mjs → editor-J0op3mM7.mjs} +5 -5
- package/dist/node/{editor-DzxyNgYk.mjs.map → editor-J0op3mM7.mjs.map} +1 -1
- package/dist/node/{editor-BGz1Ljdk.mjs → editor-UzRtZp-A.mjs} +26 -18
- package/dist/node/{editor-BGz1Ljdk.mjs.map → editor-UzRtZp-A.mjs.map} +1 -1
- package/dist/node/editors/connection-editor/module.mjs +1 -1
- package/dist/node/editors/runtime/index.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 +3 -3
- package/dist/node/{module-D9Zx5Zow.mjs → module-CuTg45ct.mjs} +2 -2
- package/dist/{browser/module-eOpxJVIl.js.map → node/module-CuTg45ct.mjs.map} +1 -1
- package/dist/node/pieces/ai/descriptor.json +1 -1
- package/dist/node/pieces/ai/package.json +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-CatdoDey.mjs → runtime-queries-VXJsWno5.mjs} +110 -5
- package/dist/node/runtime-queries-VXJsWno5.mjs.map +1 -0
- package/dist/node/{trigger-text-yNCaB6pd.mjs → trigger-text-BvEzEani.mjs} +392 -387
- package/dist/node/trigger-text-BvEzEani.mjs.map +1 -0
- package/dist/node/{upgrade-manifests-C4akaA_X.mjs → upgrade-manifests-BA5OaR4H.mjs} +2 -2
- package/dist/node/{upgrade-manifests-C4akaA_X.mjs.map → upgrade-manifests-BA5OaR4H.mjs.map} +1 -1
- package/dist/node/{workflow-DqF9VsBQ.mjs → workflow-BgURVzdc.mjs} +2 -2
- package/dist/node/{workflow-DqF9VsBQ.mjs.map → workflow-BgURVzdc.mjs.map} +1 -1
- package/dist/powerhouse.manifest.json +2 -2
- package/dist/style.css +1 -1
- package/dist/types/document-models/workflow/v1/gen/schema/types.d.ts +1 -1
- package/dist/types/document-models/workflow/v1/gen/schema/types.d.ts.map +1 -1
- package/dist/types/editors/shared/controls.d.ts.map +1 -1
- package/dist/types/editors/shared/data-tree.d.ts.map +1 -1
- package/dist/types/editors/shared/icons.d.ts +1 -0
- package/dist/types/editors/shared/icons.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/editor.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/runtime-client.d.ts +39 -0
- package/dist/types/editors/workflow-editor/runtime-client.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/runtime-context.d.ts +10 -1
- package/dist/types/editors/workflow-editor/runtime-context.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/runtime-queries.d.ts +21 -1
- package/dist/types/editors/workflow-editor/runtime-queries.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/ui/BlockSelector.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/ui/PieceMarkdown.d.ts +2 -1
- package/dist/types/editors/workflow-editor/ui/PieceMarkdown.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/ui/PropertyForm.d.ts +4 -0
- package/dist/types/editors/workflow-editor/ui/PropertyForm.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/ui/block-meta.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/ui/blocks.d.ts +4 -0
- package/dist/types/editors/workflow-editor/ui/blocks.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/ui/query-keys.d.ts +9 -0
- package/dist/types/editors/workflow-editor/ui/query-keys.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/Sidebar.d.ts +3 -0
- package/dist/types/editors/workflow-studio/components/Sidebar.d.ts.map +1 -1
- package/dist/types/editors/workflow-studio/components/Waitpoints.d.ts +49 -0
- package/dist/types/editors/workflow-studio/components/Waitpoints.d.ts.map +1 -0
- package/dist/types/editors/workflow-studio/components/WorkflowBoard.d.ts +3 -0
- package/dist/types/editors/workflow-studio/components/WorkflowBoard.d.ts.map +1 -1
- package/dist/types/editors/workflow-studio/components/WorkflowStudio.d.ts.map +1 -1
- package/dist/types/editors/workflow-studio/components/run-format.d.ts +2 -1
- package/dist/types/editors/workflow-studio/components/run-format.d.ts.map +1 -1
- package/dist/types/editors/workflow-studio/components/waitpoints-view.test.d.ts +2 -0
- package/dist/types/editors/workflow-studio/components/waitpoints-view.test.d.ts.map +1 -0
- package/dist/types/editors/workflow-studio/components/waitpoints.test.d.ts +2 -0
- package/dist/types/editors/workflow-studio/components/waitpoints.test.d.ts.map +1 -0
- package/dist/types/test/waitpoint-record.d.ts +3 -0
- package/dist/types/test/waitpoint-record.d.ts.map +1 -0
- package/dist/workflow.css +2 -0
- package/package.json +9 -9
- package/dist/browser/BlockSelector-CtoMNZ9A.js.map +0 -1
- package/dist/browser/PieceMarkdown-U6OUTwRi.js.map +0 -1
- package/dist/browser/data-tree-CjWQllC7.js.map +0 -1
- package/dist/browser/editor-B1AzXxaF.js.map +0 -1
- package/dist/browser/runtime-queries-LAcyniYz.js.map +0 -1
- package/dist/browser/trigger-text-BgpPIXEJ.js.map +0 -1
- package/dist/node/BlockSelector-CbdgYJfp.mjs.map +0 -1
- package/dist/node/editor-D3MlbYBN.mjs.map +0 -1
- package/dist/node/module-D9Zx5Zow.mjs.map +0 -1
- package/dist/node/runtime-queries-CatdoDey.mjs.map +0 -1
- package/dist/node/trigger-text-yNCaB6pd.mjs.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerhousedao/piece-ai",
|
|
3
|
-
"version": "6.2.3-dev.
|
|
3
|
+
"version": "6.2.3-dev.85",
|
|
4
4
|
"displayName": "AI",
|
|
5
5
|
"logoUrl": "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20114%20114%22%3E%3Cpath%20fill%3D%22%23161616%22%20fill-rule%3D%22evenodd%22%20d%3D%22M15.2%200H98.8C107.195%200%20114%206.805%20114%2015.2V98.8C114%20107.195%20107.195%20114%2098.8%20114H15.2C6.805%20114%200%20107.195%200%2098.8V15.2C0%206.805%206.805%200%2015.2%200ZM25.5%2082L42%2032H53L69.5%2082H58.5L55%2071H40L36.5%2082ZM43%2061H52L47.5%2046.5ZM77.5%2032H88.5V82H77.5Z%22%2F%3E%3C%2Fsvg%3E",
|
|
6
6
|
"actions": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerhousedao/piece-ai",
|
|
3
|
-
"version": "6.2.3-dev.
|
|
3
|
+
"version": "6.2.3-dev.85",
|
|
4
4
|
"description": "Call AI models from OpenAI, Anthropic, Google or TypeSafe, or any OpenAI-compatible server such as Ollama, vLLM or OpenRouter.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.mjs",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerhousedao/piece-reactor",
|
|
3
|
-
"version": "6.2.3-dev.
|
|
3
|
+
"version": "6.2.3-dev.85",
|
|
4
4
|
"displayName": "Powerhouse Reactor",
|
|
5
5
|
"logoUrl": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMTQgMTE0IiBmaWxsPSJub25lIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZmlsbD0iIzE2MTYxNiIgZD0iTTcxLjI5MTkgMEwyNC4zNDE1IDM4Ljg3NzJDMTcuNDU0OCA0NC41Nzk4IDE2Ljk1MzkgNTQuOTY1OSAyMy4yNiA2MS4zMDQ3TDM5LjUwMjggNzcuNjMxOEM0NC4yNjg0IDgyLjQyMjEgNDUuMjk5NiA4OS43ODM0IDQyLjAzMzUgOTUuNjk4OEwzMS45MjkgMTE0SDE1LjJDNi44MDUyNyAxMTQgMCAxMDcuMTk1IDAgOTguOFYxNS4yQzAgNi44MDUyNyA2LjgwNTI3IDAgMTUuMiAwSDcxLjI5MTlaTTgwLjExMSAwTDcxLjM0MTIgMTUuOTc1OEM2OC4xMDc4IDIxLjg2NiA2OS4xMjU1IDI5LjE4MDQgNzMuODQ0MSAzMy45NjQxTDkxLjA3NTEgNTEuNDMzMUM5Ny4zNjc0IDU3LjgxMjQgOTYuODA0NCA2OC4yMjI3IDg5Ljg2MDcgNzMuODg2MUw0MC42NzgyIDExNEg5OC44QzEwNy4xOTUgMTE0IDExNCAxMDcuMTk1IDExNCA5OC44VjE1LjJDMTE0IDYuODA1MjcgMTA3LjE5NSAwIDk4LjggMEg4MC4xMTFaIi8+PC9zdmc+",
|
|
6
6
|
"actions": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerhousedao/piece-reactor",
|
|
3
|
-
"version": "6.2.3-dev.
|
|
3
|
+
"version": "6.2.3-dev.85",
|
|
4
4
|
"description": "Read and write Powerhouse documents on the reactor this workflow runs in: create documents, dispatch actions, read state, schemas and indexes, and fire on document events.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.mjs",
|
|
@@ -102,9 +102,13 @@ const BRANCH_PORTS = [
|
|
|
102
102
|
"false",
|
|
103
103
|
ERROR_PORT
|
|
104
104
|
];
|
|
105
|
+
const STOP_PORTS = [ERROR_PORT];
|
|
105
106
|
function knownPorts(block) {
|
|
106
107
|
if (block.kind === "trigger") return TRIGGER_PORTS;
|
|
107
|
-
|
|
108
|
+
if (block.pieceName !== "@powerhousedao/piece-core") return PIECE_ACTION_PORTS;
|
|
109
|
+
if (block.name === "branch") return BRANCH_PORTS;
|
|
110
|
+
if (block.name === "stop") return STOP_PORTS;
|
|
111
|
+
return PIECE_ACTION_PORTS;
|
|
108
112
|
}
|
|
109
113
|
const DOCUMENT_REF_KEY = "$documentRef";
|
|
110
114
|
const MAX_DEPTH = 64;
|
|
@@ -320,6 +324,10 @@ const SCHEDULE_TRIGGER = core("trigger", "schedule");
|
|
|
320
324
|
const WEBHOOK_TRIGGER = core("trigger", "webhook");
|
|
321
325
|
const BRANCH_BLOCK = core("action", "branch");
|
|
322
326
|
const ASSERT_BLOCK = core("action", "assert");
|
|
327
|
+
const DELAY_BLOCK = core("action", "delay");
|
|
328
|
+
const APPROVAL_BLOCK = core("action", "approval");
|
|
329
|
+
const STOP_BLOCK = core("action", "stop");
|
|
330
|
+
const WAIT_FOR_WEBHOOK_BLOCK = core("action", "waitForWebhook");
|
|
323
331
|
function sameBlock(a, b) {
|
|
324
332
|
return Boolean(a && b && blockKey(a) === blockKey(b));
|
|
325
333
|
}
|
|
@@ -444,6 +452,46 @@ const STEP_PRESETS = [
|
|
|
444
452
|
allowValues: []
|
|
445
453
|
}
|
|
446
454
|
},
|
|
455
|
+
{
|
|
456
|
+
label: "Delay",
|
|
457
|
+
block: DELAY_BLOCK,
|
|
458
|
+
group: "core",
|
|
459
|
+
description: "Waits for a while, or until a date, then carries on.",
|
|
460
|
+
defaultConfig: {
|
|
461
|
+
mode: "for",
|
|
462
|
+
amount: 5,
|
|
463
|
+
unit: "minutes"
|
|
464
|
+
}
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
label: "Request approval",
|
|
468
|
+
block: APPROVAL_BLOCK,
|
|
469
|
+
group: "core",
|
|
470
|
+
description: "Waits until someone approves or rejects the run.",
|
|
471
|
+
defaultConfig: {
|
|
472
|
+
title: "",
|
|
473
|
+
approveLabel: "Approve",
|
|
474
|
+
rejectLabel: "Reject",
|
|
475
|
+
reasonRequiredOn: "none"
|
|
476
|
+
}
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
label: "Respond and wait for webhook",
|
|
480
|
+
block: WAIT_FOR_WEBHOOK_BLOCK,
|
|
481
|
+
group: "core",
|
|
482
|
+
description: "Answers the caller with a resume URL, then waits until it is called.",
|
|
483
|
+
defaultConfig: {
|
|
484
|
+
responseType: "json",
|
|
485
|
+
includeResumeUrl: true
|
|
486
|
+
}
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
label: "Stop run",
|
|
490
|
+
block: STOP_BLOCK,
|
|
491
|
+
group: "core",
|
|
492
|
+
description: "Ends the run successfully, optionally answering the caller.",
|
|
493
|
+
defaultConfig: { responseType: "json" }
|
|
494
|
+
},
|
|
447
495
|
{
|
|
448
496
|
label: "Create document",
|
|
449
497
|
block: reactor("action", "document-create"),
|
|
@@ -768,11 +816,15 @@ async function blockResolutions(t, workflowId) {
|
|
|
768
816
|
}
|
|
769
817
|
}`, { workflowId })).workflowRuntime.blockResolutions;
|
|
770
818
|
}
|
|
819
|
+
const WAITPOINT_FIELDS = `id runId workflowId stepId stepKey stepPath pieceName
|
|
820
|
+
blockName type kind status createdAt resumeAt expiresAt resolvedAt decidedBy
|
|
821
|
+
approval { title body approveLabel rejectLabel reasonRequiredOn approvers }`;
|
|
771
822
|
const RUN_ROW_FIELDS = `id workflowId workflowName workflowVersion triggerKind
|
|
772
823
|
triggerPayload status error errorName startedAt endedAt rerunOf warningNotes`;
|
|
773
824
|
const STEP_ROW_FIELDS = "stepId stepKey pieceName blockName status port error errorName startedAt endedAt";
|
|
774
825
|
const RUN_FIELDS = `${RUN_ROW_FIELDS} steps { ${STEP_ROW_FIELDS} input output }`;
|
|
775
826
|
const RUN_LIST_FIELDS = `${RUN_ROW_FIELDS} steps { ${STEP_ROW_FIELDS} }`;
|
|
827
|
+
const RUN_DETAIL_FIELDS = `${RUN_FIELDS} waitpoints { ${WAITPOINT_FIELDS} }`;
|
|
776
828
|
function scopeVariables(scope, limit) {
|
|
777
829
|
return {
|
|
778
830
|
workflowId: scope.workflowId ?? null,
|
|
@@ -803,7 +855,33 @@ async function fetchRunsPage(t, scope = {}, cursor = null) {
|
|
|
803
855
|
})).workflowRuntime.runsPage;
|
|
804
856
|
}
|
|
805
857
|
async function fetchRun(t, runId) {
|
|
806
|
-
return (await t.gql(`query Run($id: String!) { workflowRuntime { run(id: $id) { ${
|
|
858
|
+
return (await t.gql(`query Run($id: String!) { workflowRuntime { run(id: $id) { ${RUN_DETAIL_FIELDS} } } }`, { id: runId })).workflowRuntime.run;
|
|
859
|
+
}
|
|
860
|
+
async function fetchWaitingRuns(t, scope = {}) {
|
|
861
|
+
return (await t.gql(`query WaitingRuns($driveId: String, $workflowId: String, $first: Int) {
|
|
862
|
+
workflowRuntime {
|
|
863
|
+
waitingRuns(driveId: $driveId, workflowId: $workflowId, first: $first) {
|
|
864
|
+
${RUN_LIST_FIELDS} waitpoints { ${WAITPOINT_FIELDS} }
|
|
865
|
+
}
|
|
866
|
+
}
|
|
867
|
+
}`, {
|
|
868
|
+
driveId: scope.driveId ?? null,
|
|
869
|
+
workflowId: scope.workflowId ?? null,
|
|
870
|
+
first: scope.first ?? null
|
|
871
|
+
})).workflowRuntime.waitingRuns;
|
|
872
|
+
}
|
|
873
|
+
async function resolveWaitpoint(t, waitpointId, approved, reason) {
|
|
874
|
+
return (await t.gql(`mutation ResolveWaitpoint($waitpointId: String!, $approved: Boolean!, $reason: String) {
|
|
875
|
+
workflowRuntime {
|
|
876
|
+
resolveWaitpoint(waitpointId: $waitpointId, approved: $approved, reason: $reason) {
|
|
877
|
+
${WAITPOINT_FIELDS}
|
|
878
|
+
}
|
|
879
|
+
}
|
|
880
|
+
}`, {
|
|
881
|
+
waitpointId,
|
|
882
|
+
approved,
|
|
883
|
+
reason: reason ?? null
|
|
884
|
+
})).workflowRuntime.resolveWaitpoint;
|
|
807
885
|
}
|
|
808
886
|
async function fireWorkflow(t, workflowId, payload) {
|
|
809
887
|
return (await t.gql(`mutation Fire($workflowId: String!, $payload: Unknown) {
|
|
@@ -818,6 +896,11 @@ async function rerunRun(t, runId) {
|
|
|
818
896
|
workflowRuntime { rerun(runId: $runId) { runId status error } }
|
|
819
897
|
}`, { runId })).workflowRuntime.rerun;
|
|
820
898
|
}
|
|
899
|
+
async function cancelRun(t, runId) {
|
|
900
|
+
return (await t.gql(`mutation CancelRun($runId: String!) {
|
|
901
|
+
workflowRuntime { cancelRun(runId: $runId) { runId status error } }
|
|
902
|
+
}`, { runId })).workflowRuntime.cancelRun;
|
|
903
|
+
}
|
|
821
904
|
async function loadBlockOptions(t, block, propName, input, connectionId, searchValue, reactorConnectionId) {
|
|
822
905
|
return (await t.gql(`query Options($block: BlockInput!, $propName: String!, $input: Unknown, $connectionId: String, $searchValue: String, $reactorConnectionId: String) {
|
|
823
906
|
workflowRuntime { blockOptions(block: $block, propName: $propName, input: $input, connectionId: $connectionId, searchValue: $searchValue, reactorConnectionId: $reactorConnectionId) }
|
|
@@ -857,8 +940,11 @@ const operations = {
|
|
|
857
940
|
fetchRuns,
|
|
858
941
|
fetchRunsPage,
|
|
859
942
|
fetchRun,
|
|
943
|
+
fetchWaitingRuns,
|
|
860
944
|
fireWorkflow,
|
|
861
945
|
rerunRun,
|
|
946
|
+
resolveWaitpoint,
|
|
947
|
+
cancelRun,
|
|
862
948
|
loadBlockOptions
|
|
863
949
|
};
|
|
864
950
|
function createRuntimeClient(url, options = {}) {
|
|
@@ -2664,6 +2750,16 @@ const runtimeKeys = {
|
|
|
2664
2750
|
limit: runsScope.limit ?? null
|
|
2665
2751
|
}
|
|
2666
2752
|
],
|
|
2753
|
+
waitingRuns: (scope, waiting) => [
|
|
2754
|
+
scope,
|
|
2755
|
+
"runs",
|
|
2756
|
+
"waiting",
|
|
2757
|
+
{
|
|
2758
|
+
driveId: waiting.driveId ?? null,
|
|
2759
|
+
workflowId: waiting.workflowId ?? null,
|
|
2760
|
+
first: waiting.first ?? null
|
|
2761
|
+
}
|
|
2762
|
+
],
|
|
2667
2763
|
run: (scope, runId) => [
|
|
2668
2764
|
scope,
|
|
2669
2765
|
"run",
|
|
@@ -2769,7 +2865,16 @@ function runsOfPages(pages) {
|
|
|
2769
2865
|
return true;
|
|
2770
2866
|
});
|
|
2771
2867
|
}
|
|
2772
|
-
const
|
|
2868
|
+
const waitingRunsQuery = (client, scope) => queryOptions({
|
|
2869
|
+
queryKey: runtimeKeys.waitingRuns(client.url, scope),
|
|
2870
|
+
queryFn: () => client.fetchWaitingRuns(scope),
|
|
2871
|
+
staleTime: 0
|
|
2872
|
+
});
|
|
2873
|
+
const FINISHED = /* @__PURE__ */ new Set([
|
|
2874
|
+
"SUCCEEDED",
|
|
2875
|
+
"FAILED",
|
|
2876
|
+
"CANCELLED"
|
|
2877
|
+
]);
|
|
2773
2878
|
const runQuery = (client, runId) => queryOptions({
|
|
2774
2879
|
queryKey: runtimeKeys.run(client.url, runId),
|
|
2775
2880
|
queryFn: () => client.fetchRun(runId),
|
|
@@ -2781,6 +2886,6 @@ const secretStatQuery = (client, ref) => queryOptions({
|
|
|
2781
2886
|
staleTime: 0
|
|
2782
2887
|
});
|
|
2783
2888
|
//#endregion
|
|
2784
|
-
export {
|
|
2889
|
+
export { DELAY_BLOCK as $, isValidTimeout as A, timeoutManager as B, hasPreviousPage as C, flowPorts as Ct, pendingThenable as D, parseManualInputs as Dt, notifyManager as E, manualDefault as Et, resolveEnabled as F, fetchRun as G, DEFAULT_RUNTIME_URL as H, resolveStaleTime as I, isSyncingError as J, fetchRuns as K, shallowEqualObjects as L, noop as M, replaceData as N, focusManager as O, parseScheduleConfig as Ot, replaceEqualDeep as P, CORE_PIECE as Q, shouldThrowError as R, hasNextPage as S, expandDocumentRefs as St, fetchState as T, knownPorts as Tt, RuntimeRequestError as U, Subscribable as V, createRuntimeClient as W, ASSERT_BLOCK as X, APPROVAL_BLOCK as Y, BRANCH_BLOCK as Z, queryKind as _, ManualPayloadError as _t, pieceActionsQuery as a, TRIGGER_PRESETS as at, realRuns as b, coerceManualPayload as bt, runQuery as c, isCoreBlock as ct, secretStatQuery as d, stepBlock as dt, MANUAL_TRIGGER as et, stepOutputTreeQuery as f, stepFields as ft, blockRefKey as g, DOCUMENT_REF_KEY as gt, SHARED_STALE_MS as h, CORE_PIECE_NAME as ht, outputTreeQuery as i, STOP_BLOCK as it, keepPreviousData as j, isServer as k, scheduleConfigIssue as kt, runsOfPages as l, pinBlock as lt, RESOLVER_STALE_MS as m, triggerFields as mt, catalogQuery as n, SCHEDULE_TRIGGER as nt, pieceTriggersQuery as o, WAIT_FOR_WEBHOOK_BLOCK as ot, waitingRunsQuery as p, triggerBlock as pt, fetchRunsPage as q, createRuntimeQueryClient as r, STEP_PRESETS as rt, runPagesQuery as s, WEBHOOK_TRIGGER as st, blockFormQuery as t, REACTOR_PIECE as tt, runsQuery as u, sameBlock as ut, runtimeKeys as v, NEXT_PORT as vt, infiniteQueryBehavior as w, isDocumentRefMarker as wt, QueryClient as x, documentRefsIn as xt, TEST_TRIGGER_KIND as y, checkTriggerStrategy as yt, timeUntilStale as z };
|
|
2785
2890
|
|
|
2786
|
-
//# sourceMappingURL=runtime-queries-
|
|
2891
|
+
//# sourceMappingURL=runtime-queries-VXJsWno5.mjs.map
|