@agimon-ai/doompi-workflow 0.0.1-alpha.89 → 0.0.1-alpha.90
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.
|
@@ -756,9 +756,13 @@ function createWorkflowServerRuntime(host, serverHost) {
|
|
|
756
756
|
description: "Start a workflow run and return its recorded launch result.",
|
|
757
757
|
parameters: zod.z.toJSONSchema(feature.runTool.getInputSchema()),
|
|
758
758
|
executionMode: "serial",
|
|
759
|
-
async execute(_toolCallId, parameters, signal) {
|
|
759
|
+
async execute(_toolCallId, parameters, signal, _onUpdate, context) {
|
|
760
760
|
signal?.throwIfAborted();
|
|
761
|
-
|
|
761
|
+
const input = parameters;
|
|
762
|
+
return callResult(await launch({
|
|
763
|
+
...input,
|
|
764
|
+
...typeof input.workflowPath === "string" ? { workflowPath: (0, node_path.resolve)(context.cwd, input.workflowPath) } : {}
|
|
765
|
+
}));
|
|
762
766
|
}
|
|
763
767
|
},
|
|
764
768
|
{
|