mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 15:14:31 +00:00
style: apply oxfmt import ordering for check
This commit is contained in:
@@ -1,5 +1,3 @@
|
|||||||
import type { TlsOptions } from "node:tls";
|
|
||||||
import type { WebSocketServer } from "ws";
|
|
||||||
import {
|
import {
|
||||||
createServer as createHttpServer,
|
createServer as createHttpServer,
|
||||||
type Server as HttpServer,
|
type Server as HttpServer,
|
||||||
@@ -7,10 +5,8 @@ import {
|
|||||||
type ServerResponse,
|
type ServerResponse,
|
||||||
} from "node:http";
|
} from "node:http";
|
||||||
import { createServer as createHttpsServer } from "node:https";
|
import { createServer as createHttpsServer } from "node:https";
|
||||||
import type { CanvasHostHandler } from "../canvas-host/server.js";
|
import type { TlsOptions } from "node:tls";
|
||||||
import type { createSubsystemLogger } from "../logging/subsystem.js";
|
import type { WebSocketServer } from "ws";
|
||||||
import type { AuthRateLimiter } from "./auth-rate-limit.js";
|
|
||||||
import type { GatewayWsClient } from "./server/ws-types.js";
|
|
||||||
import { resolveAgentAvatar } from "../agents/identity-avatar.js";
|
import { resolveAgentAvatar } from "../agents/identity-avatar.js";
|
||||||
import {
|
import {
|
||||||
A2UI_PATH,
|
A2UI_PATH,
|
||||||
@@ -18,9 +14,12 @@ import {
|
|||||||
CANVAS_WS_PATH,
|
CANVAS_WS_PATH,
|
||||||
handleA2uiHttpRequest,
|
handleA2uiHttpRequest,
|
||||||
} from "../canvas-host/a2ui.js";
|
} from "../canvas-host/a2ui.js";
|
||||||
|
import type { CanvasHostHandler } from "../canvas-host/server.js";
|
||||||
import { loadConfig } from "../config/config.js";
|
import { loadConfig } from "../config/config.js";
|
||||||
|
import type { createSubsystemLogger } from "../logging/subsystem.js";
|
||||||
import { safeEqualSecret } from "../security/secret-equal.js";
|
import { safeEqualSecret } from "../security/secret-equal.js";
|
||||||
import { handleSlackHttpRequest } from "../slack/http/index.js";
|
import { handleSlackHttpRequest } from "../slack/http/index.js";
|
||||||
|
import type { AuthRateLimiter } from "./auth-rate-limit.js";
|
||||||
import {
|
import {
|
||||||
authorizeGatewayConnect,
|
authorizeGatewayConnect,
|
||||||
isLocalDirectRequest,
|
isLocalDirectRequest,
|
||||||
@@ -59,6 +58,7 @@ import {
|
|||||||
import { handleOpenAiHttpRequest } from "./openai-http.js";
|
import { handleOpenAiHttpRequest } from "./openai-http.js";
|
||||||
import { handleOpenResponsesHttpRequest } from "./openresponses-http.js";
|
import { handleOpenResponsesHttpRequest } from "./openresponses-http.js";
|
||||||
import { GATEWAY_CLIENT_MODES, normalizeGatewayClientMode } from "./protocol/client-info.js";
|
import { GATEWAY_CLIENT_MODES, normalizeGatewayClientMode } from "./protocol/client-info.js";
|
||||||
|
import type { GatewayWsClient } from "./server/ws-types.js";
|
||||||
import { handleToolsInvokeHttpRequest } from "./tools-invoke-http.js";
|
import { handleToolsInvokeHttpRequest } from "./tools-invoke-http.js";
|
||||||
|
|
||||||
type SubsystemLogger = ReturnType<typeof createSubsystemLogger>;
|
type SubsystemLogger = ReturnType<typeof createSubsystemLogger>;
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
import { describe, expect, test } from "vitest";
|
import { describe, expect, test } from "vitest";
|
||||||
import { WebSocket, WebSocketServer } from "ws";
|
import { WebSocket, WebSocketServer } from "ws";
|
||||||
import type { CanvasHostHandler } from "../canvas-host/server.js";
|
|
||||||
import type { ResolvedGatewayAuth } from "./auth.js";
|
|
||||||
import type { GatewayWsClient } from "./server/ws-types.js";
|
|
||||||
import { A2UI_PATH, CANVAS_HOST_PATH, CANVAS_WS_PATH } from "../canvas-host/a2ui.js";
|
import { A2UI_PATH, CANVAS_HOST_PATH, CANVAS_WS_PATH } from "../canvas-host/a2ui.js";
|
||||||
|
import type { CanvasHostHandler } from "../canvas-host/server.js";
|
||||||
import { createAuthRateLimiter } from "./auth-rate-limit.js";
|
import { createAuthRateLimiter } from "./auth-rate-limit.js";
|
||||||
|
import type { ResolvedGatewayAuth } from "./auth.js";
|
||||||
import { attachGatewayUpgradeHandler, createGatewayHttpServer } from "./server-http.js";
|
import { attachGatewayUpgradeHandler, createGatewayHttpServer } from "./server-http.js";
|
||||||
|
import type { GatewayWsClient } from "./server/ws-types.js";
|
||||||
import { withTempConfig } from "./test-temp-config.js";
|
import { withTempConfig } from "./test-temp-config.js";
|
||||||
|
|
||||||
async function listen(server: ReturnType<typeof createGatewayHttpServer>): Promise<{
|
async function listen(server: ReturnType<typeof createGatewayHttpServer>): Promise<{
|
||||||
|
|||||||
Reference in New Issue
Block a user