mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 15:40:44 +00:00
fix(ci): keep tool display serialization local
This commit is contained in:
@@ -1,10 +1,7 @@
|
||||
import fs from "node:fs";
|
||||
import path from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
import {
|
||||
TOOL_DISPLAY_CONFIG,
|
||||
serializeToolDisplayConfig,
|
||||
} from "../src/agents/tool-display-config.js";
|
||||
import { TOOL_DISPLAY_CONFIG, type ToolDisplayConfig } from "../src/agents/tool-display-config.js";
|
||||
|
||||
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
||||
const repoRoot = path.resolve(__dirname, "..");
|
||||
@@ -91,3 +88,7 @@ function collectToolNamesFromFile(sourcePath: string, names: Set<string>) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function serializeToolDisplayConfig(config: ToolDisplayConfig = TOOL_DISPLAY_CONFIG): string {
|
||||
return `${JSON.stringify(config, null, 2)}\n`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user