From 59861752685ca97240b82d0d005cd477edb50e2d Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sat, 17 Jan 2026 07:59:45 +0000 Subject: [PATCH] fix: restore CI lint/build --- src/cli/hooks-cli.ts | 9 ++++++--- src/media-understanding/attachments.ts | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) 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;