@agimon-ai/doompi-workflow 0.0.1-alpha.86 → 0.0.1-alpha.88

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