weifuwu 0.82.5 → 0.82.7

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.
@@ -60,6 +60,8 @@ export interface WfStep {
60
60
  content?: string;
61
61
  toolCallId?: string;
62
62
  name?: string;
63
+ /** 工具调用参数(JSON 字符串——前端工具卡片展示) */
64
+ args?: string;
63
65
  }
64
66
  export interface WfApprovalRequest {
65
67
  id: string;
package/dist/index.js CHANGED
@@ -3229,7 +3229,7 @@ function createAgent(client, config) {
3229
3229
  if (signal?.aborted) return;
3230
3230
  const name = tc.function?.name ?? "";
3231
3231
  const args = safeParseArgs(tc.function?.arguments ?? "");
3232
- emit("wf:step", { type: "tool", toolCallId: tc.id, name });
3232
+ emit("wf:step", { type: "tool", toolCallId: tc.id, name, args: tc.function?.arguments ?? "{}" });
3233
3233
  let execArgs = args;
3234
3234
  const needApproval = typeof config.humanInTheLoop === "function" ? config.humanInTheLoop({ name, args }) : !!config.humanInTheLoop;
3235
3235
  if (needApproval) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "weifuwu",
3
3
  "type": "module",
4
- "version": "0.82.5",
4
+ "version": "0.82.7",
5
5
  "description": "AI SaaS framework — (req, ctx) => Response",
6
6
  "exports": {
7
7
  ".": {