feat(assistant): extend audit and import parity
This commit is contained in:
@@ -108,6 +108,7 @@ const TOOL_PERMISSION_MAP: Record<string, string> = {
|
||||
create_estimate: "manageProjects",
|
||||
generate_project_cover: "manageProjects",
|
||||
remove_project_cover: "manageProjects",
|
||||
import_csv_data: PermissionKey.IMPORT_DATA,
|
||||
// Allocation management
|
||||
create_allocation: "manageAllocations",
|
||||
cancel_allocation: "manageAllocations",
|
||||
@@ -146,6 +147,14 @@ const COST_TOOLS = new Set([
|
||||
|
||||
/** Tools that follow controllerProcedure access rules in the main API. */
|
||||
const CONTROLLER_ONLY_TOOLS = new Set([
|
||||
"query_change_history",
|
||||
"get_entity_timeline",
|
||||
"export_resources_csv",
|
||||
"export_projects_csv",
|
||||
"list_audit_log_entries",
|
||||
"get_audit_log_entry",
|
||||
"get_audit_log_timeline",
|
||||
"get_audit_activity_summary",
|
||||
"get_chargeability_report",
|
||||
"get_resource_computation_graph",
|
||||
"get_project_computation_graph",
|
||||
@@ -153,6 +162,7 @@ const CONTROLLER_ONLY_TOOLS = new Set([
|
||||
|
||||
/** Tools that follow managerProcedure access rules in the main API. */
|
||||
const MANAGER_ONLY_TOOLS = new Set([
|
||||
"import_csv_data",
|
||||
"update_timeline_allocation_inline",
|
||||
"apply_timeline_project_shift",
|
||||
"quick_assign_timeline_resource",
|
||||
@@ -162,6 +172,8 @@ const MANAGER_ONLY_TOOLS = new Set([
|
||||
|
||||
/** Tools that are intentionally limited to ADMIN because the backing routers are admin-only today. */
|
||||
const ADMIN_ONLY_TOOLS = new Set([
|
||||
"list_dispo_import_batches",
|
||||
"get_dispo_import_batch",
|
||||
"create_country",
|
||||
"update_country",
|
||||
"create_metro_city",
|
||||
|
||||
Reference in New Issue
Block a user