feat: 发布 1.1.7,Web / 桌面端分开安装并跟随当前桌面目录清洗

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
叫我小杨同学andCursor committed 2026-09-18 18:26:11 +08:00
1 parent 2529db6088
commit e84671d20a
14 files changed
+1370 -345

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
import { adapterFor, detectSurface } from "./surface.js";
import * as desktop from "./desktop.js";
import * as web from "./web.js";
const ADAPTERS = {
web,
desktop,
};
export function currentSurface(input) {
return detectSurface(input);
}
export function hostAdapter(kind = detectSurface()) {
return ADAPTERS[adapterFor(kind)] || web;
}
export function scheduleRestart(request, ctx) {
return hostAdapter().scheduleRestart(request, ctx);
}
export function scheduleCleanupRestart(opts) {
return hostAdapter().scheduleCleanupRestart(opts);
}
export function restartNote() {
return hostAdapter().restartNote();
}