@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.
- package/dist/extensions/pi.cjs +6 -2
- package/dist/extensions/pi.cjs.map +1 -1
- package/dist/extensions/pi.mjs +6 -2
- package/dist/extensions/pi.mjs.map +1 -1
- package/dist/extensions/server.cjs +6 -2
- package/dist/extensions/server.cjs.map +1 -1
- package/dist/extensions/server.mjs +6 -2
- package/dist/extensions/server.mjs.map +1 -1
- package/dist/extensions/web.mjs +1 -1
- package/dist/extensions/web.mjs.map +1 -1
- package/package.json +9 -9
package/dist/extensions/pi.mjs
CHANGED
|
@@ -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
|
-
|
|
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
|
{
|