fix: publish scoped Desktop package

This commit is contained in:
Leon
2026-10-03 18:19:44 +08:00
parent d59a5d14ef
commit f44d7e02a9
8 changed files with 19 additions and 19 deletions

View File

@@ -101,7 +101,7 @@ interface ModelDirectoryState {
interface ModelDirectory {
store: SnapshotStore<ModelDirectoryState>;
load(): Promise<unknown>;
select(selection: ModelSelection): Promise<void>;
select(selection: ModelSelection): Promise<{ ok: boolean }>;
}
interface SliderProps {
@@ -831,7 +831,7 @@ export function apply(ctx: ClientContext) {
if (available) void directory.load().catch(() => undefined);
},
select: (selection: ModelSelection) => available
? directory.select(selection).then(() => true, () => false)
? directory.select(selection).then((result) => result.ok, () => false)
: Promise.resolve(false),
};
},