diff --git a/src/cli/hooks-cli.ts b/src/cli/hooks-cli.ts index 6f4aa7f04..7e933b607 100644 --- a/src/cli/hooks-cli.ts +++ b/src/cli/hooks-cli.ts @@ -12,7 +12,11 @@ import { type HookStatusReport, } from "../hooks/hooks-status.js"; import { loadConfig, writeConfigFile } from "../config/io.js"; -import { installHooksFromNpmSpec, installHooksFromPath, resolveHookInstallDir } from "../hooks/install.js"; +import { + installHooksFromNpmSpec, + installHooksFromPath, + resolveHookInstallDir, +} from "../hooks/install.js"; import { recordHookInstall } from "../hooks/installs.js"; import { defaultRuntime } from "../runtime.js"; import { formatDocsLink } from "../terminal/links.js"; @@ -732,8 +736,7 @@ export function registerHooksCli(program: Command): void { continue; } - const nextVersion = - result.version ?? (await readInstalledPackageVersion(result.targetDir)); + const nextVersion = result.version ?? (await readInstalledPackageVersion(result.targetDir)); nextCfg = recordHookInstall(nextCfg, { hookId, source: "npm", diff --git a/src/media-understanding/attachments.ts b/src/media-understanding/attachments.ts index 8250464a7..07c326e63 100644 --- a/src/media-understanding/attachments.ts +++ b/src/media-understanding/attachments.ts @@ -102,7 +102,7 @@ export function normalizeAttachments(ctx: MsgContext): MediaAttachment[] { export function resolveAttachmentKind( attachment: MediaAttachment, -): "image" | "audio" | "video" | "unknown" { +): "image" | "audio" | "video" | "document" | "unknown" { const kind = kindFromMime(attachment.mime); if (kind !== "unknown") return kind;