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:
Aditya Singh
2026-02-16 22:52:27 +01:00
committed by Peter Steinberger
parent 24f213e7ed
commit facfa410a7
4 changed files with 97 additions and 86 deletions

View File

@@ -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");
});
});