mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 21:48:27 +00:00
chore: migrate to oxlint and oxfmt
Co-authored-by: Christoph Nakazawa <christoph.pojer@gmail.com>
This commit is contained in:
@@ -1,7 +1,4 @@
|
||||
import {
|
||||
formatToolSummary,
|
||||
resolveToolDisplay,
|
||||
} from "../agents/tool-display.js";
|
||||
import { formatToolSummary, resolveToolDisplay } from "../agents/tool-display.js";
|
||||
import { shortenHomeInString, shortenHomePath } from "../utils.js";
|
||||
|
||||
export function shortenPath(p: string): string {
|
||||
@@ -17,10 +14,7 @@ export function shortenMeta(meta: string): string {
|
||||
return `${shortenHomeInString(base)}${rest}`;
|
||||
}
|
||||
|
||||
export function formatToolAggregate(
|
||||
toolName?: string,
|
||||
metas?: string[],
|
||||
): string {
|
||||
export function formatToolAggregate(toolName?: string, metas?: string[]): string {
|
||||
const filtered = (metas ?? []).filter(Boolean).map(shortenMeta);
|
||||
const display = resolveToolDisplay({ name: toolName });
|
||||
const prefix = `${display.emoji} ${display.label}`;
|
||||
|
||||
Reference in New Issue
Block a user