@agimon-ai/doompi-workflow 0.0.1-alpha.87 → 0.0.1-alpha.89

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.
@@ -727,9 +727,13 @@ function createWorkflowServerRuntime(host, serverHost) {
727
727
  description: "List workflow definitions available in this repository.",
728
728
  parameters: z.toJSONSchema(feature.listWorkflowsTool.getInputSchema()),
729
729
  executionMode: "serial",
730
- async execute(_toolCallId, parameters, signal) {
730
+ async execute(_toolCallId, parameters, signal, _onUpdate, context) {
731
731
  signal?.throwIfAborted();
732
- return callResult(await feature.listWorkflowsTool.execute(parameters));
732
+ const input = parameters;
733
+ return callResult(await feature.listWorkflowsTool.execute({
734
+ ...input,
735
+ directory: input?.directory === void 0 ? context.cwd : typeof input.directory === "string" ? resolve(context.cwd, input.directory) : input.directory
736
+ }));
733
737
  }
734
738
  },
735
739
  {