feat: deploy HoloLake mobile capabilities safely

This commit is contained in:
冰朔 2026-08-02 22:04:09 +08:00
commit 41b2016b8b
3 changed files with 236 additions and 3 deletions

View file

@ -256,6 +256,11 @@ function createApp(options = {}) {
session_ttl: manager.sessionTtl,
max_session_lifetime: manager.maxSessionLifetime,
auto_renew_on_activity: true,
hololake_mobile: {
email_session: Boolean(hololakeSessionManager),
knowledge_snapshot: Boolean(hololakeKnowledgeProvider),
ai_gateway: Boolean(hololakeAiGateway),
},
});
if (req.method === "GET" && url.pathname === "/api/public/capabilities") return json(res, 200, {
schema: "guanghu.lake-lamp-public-workorder/v1",