/api/v1/browser/desktop/{sessionId}/* proxies Selkies HTTP and WebSocket,
console sessions only. The holder of the active human lease gets the control
password, everyone else the view-only one; the WS bridge rechecks every 3s
and drops the connection on role change so the client reconnects downgraded.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
39 lines
1.3 KiB
TypeScript
39 lines
1.3 KiB
TypeScript
import { acquisitionOrganizeModule } from "./acquisition-organize/index.ts";
|
|
import { agentModule } from "./agent/index.ts";
|
|
import { authSettingsModule } from "./auth-settings/index.ts";
|
|
import { browserModule } from "./browser/index.ts";
|
|
import { cacheModule } from "./cache/index.ts";
|
|
import { desktopModule } from "./desktop/index.ts";
|
|
import { fileManagerModule } from "./file-manager/index.ts";
|
|
import { mcpModule } from "./mcp/index.ts";
|
|
import { piModule } from "./pi/index.ts";
|
|
import { schedulesModule } from "./schedules/index.ts";
|
|
import { searchModule } from "./search/index.ts";
|
|
import { sourcesIdentityModule } from "./sources-identity/index.ts";
|
|
import { systemModule } from "./system/index.ts";
|
|
import type { ServerModule } from "./types.ts";
|
|
import { webSearchModule } from "./websearch/index.ts";
|
|
|
|
export type * from "./types.ts";
|
|
|
|
/**
|
|
* 模块清单:http/app.ts(路由)与 worker(任务/中继/后台循环)都从这里取。
|
|
* 顺序即注册顺序;auth-settings 在前(其它模块的路由依赖它的登录门禁中间件)。
|
|
*/
|
|
export const SERVER_MODULES: readonly ServerModule[] = [
|
|
authSettingsModule,
|
|
sourcesIdentityModule,
|
|
acquisitionOrganizeModule,
|
|
agentModule,
|
|
fileManagerModule,
|
|
piModule,
|
|
schedulesModule,
|
|
searchModule,
|
|
browserModule,
|
|
desktopModule,
|
|
mcpModule,
|
|
webSearchModule,
|
|
cacheModule,
|
|
systemModule,
|
|
];
|