1.1.73: open-source local-lab only; drop skills and knowledge base.

This commit is contained in:
叫我小杨同学 committed 2026-10-23 15:55:53 +08:00
commit 2b6487c69c
95 files changed
+54050

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, options = {}) {
return hostAdapter().scheduleRestart(request, ctx, options);
}
export function scheduleCleanupRestart(opts) {
return hostAdapter().scheduleCleanupRestart(opts);
}
export function restartNote() {
return hostAdapter().restartNote();
}