From 88b92a9605f92e7b61a44a7e3477e718e6a626b1 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Wed, 24 Dec 2025 23:09:31 +0100 Subject: [PATCH] style: format gmail hooks and tools --- src/agents/pi-tools.ts | 2 +- src/hooks/gmail-ops.ts | 4 ++-- src/hooks/gmail.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/agents/pi-tools.ts b/src/agents/pi-tools.ts index 6f9a494b3..a0aa68539 100644 --- a/src/agents/pi-tools.ts +++ b/src/agents/pi-tools.ts @@ -150,7 +150,7 @@ function normalizeToolParameters(tool: AnyAgentTool): AnyAgentTool { properties: Object.keys(mergedProperties).length > 0 ? mergedProperties - : schema.properties ?? {}, + : (schema.properties ?? {}), ...(mergedRequired && mergedRequired.length > 0 ? { required: mergedRequired } : {}), diff --git a/src/hooks/gmail-ops.ts b/src/hooks/gmail-ops.ts index 0749abbf7..edc14194e 100644 --- a/src/hooks/gmail-ops.ts +++ b/src/hooks/gmail-ops.ts @@ -145,13 +145,13 @@ export async function runGmailSetup(opts: GmailSetupOptions) { const servePath = normalizeServePath( tailscaleMode !== "off" && !configuredServePath ? "/" - : configuredServePath ?? DEFAULT_GMAIL_SERVE_PATH, + : (configuredServePath ?? DEFAULT_GMAIL_SERVE_PATH), ); const tailscalePath = normalizeServePath( opts.tailscalePath ?? baseConfig.hooks?.gmail?.tailscale?.path ?? (tailscaleMode !== "off" - ? configuredServePath ?? DEFAULT_GMAIL_SERVE_PATH + ? (configuredServePath ?? DEFAULT_GMAIL_SERVE_PATH) : servePath), ); diff --git a/src/hooks/gmail.ts b/src/hooks/gmail.ts index d11d53ad8..bb64412d0 100644 --- a/src/hooks/gmail.ts +++ b/src/hooks/gmail.ts @@ -170,7 +170,7 @@ export function resolveGmailHookRuntimeConfig( ? hasExplicitServePath ? servePathRaw : DEFAULT_GMAIL_SERVE_PATH - : tailscalePathRaw ?? servePath, + : (tailscalePathRaw ?? servePath), ); return {