From c8f4c0d1cf7214341d9cc8d40f58def8eee4c2d3 Mon Sep 17 00:00:00 2001 From: can1357 Date: Sat, 28 Feb 2026 12:17:10 +0100 Subject: [PATCH] fix(natives): validate macOS appearance native exports --- packages/natives/src/native.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/natives/src/native.ts b/packages/natives/src/native.ts index 962eeec87..f4af6d48e 100644 --- a/packages/natives/src/native.ts +++ b/packages/natives/src/native.ts @@ -11,6 +11,7 @@ import { $env, getNativesDir, logger } from "@oh-my-pi/pi-utils"; import packageJson from "../package.json"; import type { NativeBindings } from "./bindings"; import { embeddedAddon } from "./embedded-addon"; +import "./appearance/types"; import "./ast/types"; import "./clipboard/types"; import "./glob/types"; @@ -270,6 +271,8 @@ function validateNative(bindings: NativeBindings, source: string): void { checkFn("invalidateFsScanCache"); checkFn("astFind"); checkFn("astReplace"); + checkFn("detectMacOSAppearance"); + checkFn("MacAppearanceObserver"); if (missing.length) { throw new Error( `Native addon missing exports (${source}). Missing: ${missing.join(", ")}. ` +