diff --git a/src/agents/pi-auth-credentials.ts b/src/agents/pi-auth-credentials.ts index 6132bae43ec..59fbdc34251 100644 --- a/src/agents/pi-auth-credentials.ts +++ b/src/agents/pi-auth-credentials.ts @@ -2,8 +2,8 @@ import { normalizeOptionalString } from "../shared/string-coerce.js"; import type { AuthProfileCredential, AuthProfileStore } from "./auth-profiles.js"; import { normalizeProviderId } from "./provider-id.js"; -export type PiApiKeyCredential = { type: "api_key"; key: string }; -export type PiOAuthCredential = { +type PiApiKeyCredential = { type: "api_key"; key: string }; +type PiOAuthCredential = { type: "oauth"; access: string; refresh: string; @@ -13,7 +13,7 @@ export type PiOAuthCredential = { export type PiCredential = PiApiKeyCredential | PiOAuthCredential; export type PiCredentialMap = Record; -export function convertAuthProfileCredentialToPi(cred: AuthProfileCredential): PiCredential | null { +function convertAuthProfileCredentialToPi(cred: AuthProfileCredential): PiCredential | null { if (cred.type === "api_key") { const key = normalizeOptionalString(cred.key) ?? ""; if (!key) { diff --git a/src/agents/pi-bundle-mcp-names.ts b/src/agents/pi-bundle-mcp-names.ts index 489176eca6a..7345ee86a72 100644 --- a/src/agents/pi-bundle-mcp-names.ts +++ b/src/agents/pi-bundle-mcp-names.ts @@ -30,7 +30,7 @@ export function sanitizeServerName(raw: string, usedNames: Set): string return candidate; } -export function sanitizeToolName(raw: string): string { +function sanitizeToolName(raw: string): string { return sanitizeToolFragment(raw, "tool"); } diff --git a/src/agents/pi-embedded-subscribe.tools.ts b/src/agents/pi-embedded-subscribe.tools.ts index cf91eef3aab..e027662a3e2 100644 --- a/src/agents/pi-embedded-subscribe.tools.ts +++ b/src/agents/pi-embedded-subscribe.tools.ts @@ -325,7 +325,7 @@ export function filterToolResultMediaUrls( * returns base64 image data but no file path; those need a different delivery * path like saving to a temp file). */ -export type ToolResultMediaArtifact = { +type ToolResultMediaArtifact = { mediaUrls: string[]; audioAsVoice?: boolean; trustedLocalMedia?: boolean; diff --git a/src/agents/pi-settings.ts b/src/agents/pi-settings.ts index bd1ced83b3a..3046d406429 100644 --- a/src/agents/pi-settings.ts +++ b/src/agents/pi-settings.ts @@ -123,9 +123,7 @@ export function applyPiCompactionSettingsFromConfig(params: { } /** Decide whether Pi's internal auto-compaction should be disabled for this run. */ -export function shouldDisablePiAutoCompaction(params: { - contextEngineInfo?: ContextEngineInfo; -}): boolean { +function shouldDisablePiAutoCompaction(params: { contextEngineInfo?: ContextEngineInfo }): boolean { return params.contextEngineInfo?.ownsCompaction === true; }