feat(assistant): align resource tool visibility with read audiences

This commit is contained in:
2026-03-30 10:11:55 +02:00
parent bd654251f7
commit 65fe7ce04f
4 changed files with 54 additions and 1 deletions
+2 -1
View File
@@ -24,7 +24,6 @@ const MAX_OPENAI_TOOL_DEFINITIONS = 128;
const ALWAYS_INCLUDED_TOOL_NAMES = new Set([
"get_current_user",
"search_resources",
"get_resource",
"search_projects",
"get_project",
@@ -238,12 +237,14 @@ const PLANNING_READ_TOOLS = new Set([
/** Tools that require broad people-directory visibility because the backing routes expose resource-linked counts. */
const RESOURCE_OVERVIEW_TOOLS = new Set([
"search_resources",
"get_country",
"list_org_units",
]);
/** Tools that follow controllerProcedure access rules in the main API. */
const CONTROLLER_ONLY_TOOLS = new Set([
"search_by_skill",
"search_projects",
"get_project",
"search_estimates",