const actual = fs.readFileSync(outputPath, "utf8"); if (actual !== expected) {
console.error(
`tool-display snapshot is stale: ${path.relative(repoRoot, outputPath)}\nrun: pnpm tool-display:write`,
);
process.exit(1);
}
process.stdout.write("tool-display snapshot is up to date\n");
function ensureCoreToolCoverage() { const toolNames = new Set<string>(); for (const sourcePath of toolSources) {
collectToolNamesFromFile(sourcePath, toolNames);
} for (const entry of fs.readdirSync(path.join(repoRoot, "src/agents/tools"))) { if (!entry.endsWith(".ts") || entry.endsWith(".test.ts")) { continue;
}
collectToolNamesFromFile(path.join(repoRoot, "src/agents/tools", entry), toolNames);
} const missing = [...toolNames].filter((name) => !TOOL_DISPLAY_CONFIG.tools[name]).toSorted(); if (missing.length > 0) {
console.error(
`tool-display metadata missing for runtime tools: ${missing.join(", ")}\nupdate: src/agents/tool-display-config.ts`,
);
process.exit(1);
}
}
function collectToolNamesFromFile(sourcePath: string, names: Set<string>) { const source = fs.readFileSync(sourcePath, "utf8"); for (const match of source.matchAll(/\bname:\s*"([A-Za-z0-9_-]+)"/g)) { const name = match[1]?.trim(); if (name) {
names.add(name);
}
}
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.12 Sekunden
(vorverarbeitet am 2026-06-07)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.