mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-30 04:45:02 +00:00
fix(security): centralize owner-only tool gating and scope maps
This commit is contained in:
@@ -5,6 +5,7 @@ export function createWhatsAppLoginTool(): ChannelAgentTool {
|
||||
return {
|
||||
label: "WhatsApp Login",
|
||||
name: "whatsapp_login",
|
||||
ownerOnly: true,
|
||||
description: "Generate a WhatsApp QR code for linking, or wait for the scan to complete.",
|
||||
// NOTE: Using Type.Unsafe for action enum instead of Type.Union([Type.Literal(...)]
|
||||
// because Claude API on Vertex AI rejects nested anyOf schemas as invalid JSON Schema.
|
||||
|
||||
Reference in New Issue
Block a user