@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.
@@ -691,8 +691,12 @@ function createWorkflowTools(dependencies, renderers = () => ({})) {
691
691
  parameters: z.toJSONSchema(listWorkflowsTool.getInputSchema()),
692
692
  renderShell: "self",
693
693
  ...renderers(LIST_WORKFLOWS_TOOL_NAME),
694
- async execute(_toolCallId, params) {
695
- return toAgentToolResult(LIST_WORKFLOWS_TOOL_NAME, await listWorkflowsTool.execute(params));
694
+ async execute(_toolCallId, params, _signal, _onUpdate, ctx) {
695
+ const input = params;
696
+ return toAgentToolResult(LIST_WORKFLOWS_TOOL_NAME, await listWorkflowsTool.execute({
697
+ ...input,
698
+ directory: input?.directory === void 0 ? ctx.cwd : typeof input.directory === "string" ? resolve(ctx.cwd, input.directory) : input.directory
699
+ }));
696
700
  }
697
701
  },
698
702
  {