mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 12:31:23 +00:00
fix(tool-display): satisfy format/lint and address review feedback
- extract web_search/web_fetch detail resolvers into common module\n- fix node -c classification so file path remains positional\n- remove dead git subcommands set\n- keep exec summary refinements (heredoc/node check/git -C/preamble strip)\n- make tests cover node -c syntax-check path\n- run format:check, tsgo, lint, and focused e2e tests
This commit is contained in:
committed by
Peter Steinberger
parent
24f213e7ed
commit
facfa410a7
@@ -123,8 +123,18 @@ describe("tool display details", () => {
|
||||
},
|
||||
}),
|
||||
);
|
||||
const nodeShortCheckDetail = formatToolDetail(
|
||||
resolveToolDisplay({
|
||||
name: "exec",
|
||||
args: {
|
||||
command: "node -c /tmp/test.js",
|
||||
workdir: "/Users/adityasingh/.openclaw/workspace",
|
||||
},
|
||||
}),
|
||||
);
|
||||
|
||||
expect(pyDetail).toContain("run python3 inline script (heredoc)");
|
||||
expect(nodeCheckDetail).toContain("check js syntax for /tmp/test.js");
|
||||
expect(nodeShortCheckDetail).toContain("check js syntax for /tmp/test.js");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user