import { filterToolsByPolicy } from "./pi-tools.policy.js"; import type { AnyAgentTool } from "./pi-tools.types.js"; import { isKnownCoreToolId } from "./tool-catalog.js"; import {
analyzeAllowlistByToolType,
buildPluginToolGroups,
expandPolicyWithPluginGroups,
normalizeToolName,
type ToolPolicyLike,
} from "./tool-policy.js";
function describeUnknownAllowlistSuffix(params: {
pluginOnlyAllowlist: boolean;
hasGatedCoreEntries: boolean;
hasOtherEntries: boolean;
}): string { const preface = params.pluginOnlyAllowlist
? "Allowlist contains only plugin entries; core tools will not be available."
: ""; const detail =
params.hasGatedCoreEntries && params.hasOtherEntries
? "Some entries are shipped core tools but unavailable in the current runtime/provider/model/config; other entries won't match any tool unless the plugin is enabled."
: params.hasGatedCoreEntries
? "These entries are shipped core tools but unavailable in the current runtime/provider/model/config."
: "These entries won't match any tool unless the plugin is enabled."; return preface ? `${preface} ${detail}` : detail;
}
export function resetToolPolicyWarningCacheForTest(): void {
seenToolPolicyWarnings.clear();
toolPolicyWarningOrder.length = 0;
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.9 Sekunden
(vorverarbeitet am 2026-06-10)
¤
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.