fix: restore CI lint/build

This commit is contained in:
Peter Steinberger
2026-01-17 07:59:45 +00:00
parent 7630c6dccb
commit 5986175268
2 changed files with 7 additions and 4 deletions

View File

@@ -12,7 +12,11 @@ import {
type HookStatusReport, type HookStatusReport,
} from "../hooks/hooks-status.js"; } from "../hooks/hooks-status.js";
import { loadConfig, writeConfigFile } from "../config/io.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 { recordHookInstall } from "../hooks/installs.js";
import { defaultRuntime } from "../runtime.js"; import { defaultRuntime } from "../runtime.js";
import { formatDocsLink } from "../terminal/links.js"; import { formatDocsLink } from "../terminal/links.js";
@@ -732,8 +736,7 @@ export function registerHooksCli(program: Command): void {
continue; continue;
} }
const nextVersion = const nextVersion = result.version ?? (await readInstalledPackageVersion(result.targetDir));
result.version ?? (await readInstalledPackageVersion(result.targetDir));
nextCfg = recordHookInstall(nextCfg, { nextCfg = recordHookInstall(nextCfg, {
hookId, hookId,
source: "npm", source: "npm",

View File

@@ -102,7 +102,7 @@ export function normalizeAttachments(ctx: MsgContext): MediaAttachment[] {
export function resolveAttachmentKind( export function resolveAttachmentKind(
attachment: MediaAttachment, attachment: MediaAttachment,
): "image" | "audio" | "video" | "unknown" { ): "image" | "audio" | "video" | "document" | "unknown" {
const kind = kindFromMime(attachment.mime); const kind = kindFromMime(attachment.mime);
if (kind !== "unknown") return kind; if (kind !== "unknown") return kind;