mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-19 06:57:26 +00:00
chore: format imports in gateway and session tools
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
import { Type } from "@sinclair/typebox";
|
import { Type } from "@sinclair/typebox";
|
||||||
import type { GatewayMessageChannel } from "../../utils/message-channel.js";
|
import type { GatewayMessageChannel } from "../../utils/message-channel.js";
|
||||||
import type { AnyAgentTool } from "./common.js";
|
|
||||||
import { optionalStringEnum } from "../schema/typebox.js";
|
import { optionalStringEnum } from "../schema/typebox.js";
|
||||||
import { spawnSubagentDirect } from "../subagent-spawn.js";
|
import { spawnSubagentDirect } from "../subagent-spawn.js";
|
||||||
|
import type { AnyAgentTool } from "./common.js";
|
||||||
import { jsonResult, readStringParam } from "./common.js";
|
import { jsonResult, readStringParam } from "./common.js";
|
||||||
|
|
||||||
const SessionsSpawnToolSchema = Type.Object({
|
const SessionsSpawnToolSchema = Type.Object({
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import type { Command } from "commander";
|
import type { Command } from "commander";
|
||||||
import type { DaemonInstallOptions, GatewayRpcOpts } from "./types.js";
|
|
||||||
import { inheritOptionFromParent } from "../command-options.js";
|
import { inheritOptionFromParent } from "../command-options.js";
|
||||||
import {
|
import {
|
||||||
runDaemonInstall,
|
runDaemonInstall,
|
||||||
@@ -9,6 +8,7 @@ import {
|
|||||||
runDaemonStop,
|
runDaemonStop,
|
||||||
runDaemonUninstall,
|
runDaemonUninstall,
|
||||||
} from "./runners.js";
|
} from "./runners.js";
|
||||||
|
import type { DaemonInstallOptions, GatewayRpcOpts } from "./types.js";
|
||||||
|
|
||||||
function resolveInstallOptions(
|
function resolveInstallOptions(
|
||||||
cmdOpts: DaemonInstallOptions,
|
cmdOpts: DaemonInstallOptions,
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
import type { Command } from "commander";
|
|
||||||
import fs from "node:fs";
|
import fs from "node:fs";
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
|
import type { Command } from "commander";
|
||||||
import type { GatewayAuthMode } from "../../config/config.js";
|
import type { GatewayAuthMode } from "../../config/config.js";
|
||||||
import type { GatewayWsLogStyle } from "../../gateway/ws-logging.js";
|
|
||||||
import {
|
import {
|
||||||
CONFIG_PATH,
|
CONFIG_PATH,
|
||||||
loadConfig,
|
loadConfig,
|
||||||
@@ -12,6 +11,7 @@ import {
|
|||||||
} from "../../config/config.js";
|
} from "../../config/config.js";
|
||||||
import { resolveGatewayAuth } from "../../gateway/auth.js";
|
import { resolveGatewayAuth } from "../../gateway/auth.js";
|
||||||
import { startGatewayServer } from "../../gateway/server.js";
|
import { startGatewayServer } from "../../gateway/server.js";
|
||||||
|
import type { GatewayWsLogStyle } from "../../gateway/ws-logging.js";
|
||||||
import { setGatewayWsLogStyle } from "../../gateway/ws-logging.js";
|
import { setGatewayWsLogStyle } from "../../gateway/ws-logging.js";
|
||||||
import { setVerbose } from "../../globals.js";
|
import { setVerbose } from "../../globals.js";
|
||||||
import { GatewayLockError } from "../../infra/gateway-lock.js";
|
import { GatewayLockError } from "../../infra/gateway-lock.js";
|
||||||
|
|||||||
Reference in New Issue
Block a user