test(assistant): align admin tool descriptions
This commit is contained in:
@@ -967,8 +967,8 @@ describe("assistant router tool gating", () => {
|
|||||||
expect(toolDescriptions.get("commit_dispo_import_batch")).toContain("Always confirm first");
|
expect(toolDescriptions.get("commit_dispo_import_batch")).toContain("Always confirm first");
|
||||||
expect(toolDescriptions.get("get_system_settings")).toContain("Admin role");
|
expect(toolDescriptions.get("get_system_settings")).toContain("Admin role");
|
||||||
expect(toolDescriptions.get("update_system_settings")).toContain("Always confirm first");
|
expect(toolDescriptions.get("update_system_settings")).toContain("Always confirm first");
|
||||||
expect(toolDescriptions.get("get_ai_configured")).toContain("authenticated user");
|
expect(toolDescriptions.get("get_ai_configured")).toContain("Admin role");
|
||||||
expect(toolDescriptions.get("list_system_role_configs")).toContain("authenticated user");
|
expect(toolDescriptions.get("list_system_role_configs")).toContain("Admin role");
|
||||||
expect(toolDescriptions.get("update_system_role_config")).toContain("Admin role");
|
expect(toolDescriptions.get("update_system_role_config")).toContain("Admin role");
|
||||||
expect(toolDescriptions.get("list_webhooks")).toContain("Secrets are masked");
|
expect(toolDescriptions.get("list_webhooks")).toContain("Secrets are masked");
|
||||||
expect(toolDescriptions.get("create_webhook")).toContain("Always confirm first");
|
expect(toolDescriptions.get("create_webhook")).toContain("Always confirm first");
|
||||||
|
|||||||
@@ -3374,7 +3374,7 @@ export const TOOL_DEFINITIONS: ToolDef[] = [
|
|||||||
type: "function",
|
type: "function",
|
||||||
function: {
|
function: {
|
||||||
name: "get_ai_configured",
|
name: "get_ai_configured",
|
||||||
description: "Get whether AI is configured for the current system via the real settings router. Available to any authenticated user.",
|
description: "Get whether AI is configured for the current system via the real settings router. Admin role required.",
|
||||||
parameters: {
|
parameters: {
|
||||||
type: "object",
|
type: "object",
|
||||||
properties: {},
|
properties: {},
|
||||||
@@ -3385,7 +3385,7 @@ export const TOOL_DEFINITIONS: ToolDef[] = [
|
|||||||
type: "function",
|
type: "function",
|
||||||
function: {
|
function: {
|
||||||
name: "list_system_role_configs",
|
name: "list_system_role_configs",
|
||||||
description: "List system role configuration defaults via the real system-role-config router. Available to any authenticated user.",
|
description: "List system role configuration defaults via the real system-role-config router. Admin role required.",
|
||||||
parameters: {
|
parameters: {
|
||||||
type: "object",
|
type: "object",
|
||||||
properties: {},
|
properties: {},
|
||||||
|
|||||||
Reference in New Issue
Block a user