diff --git a/src/commands/agents.providers.ts b/src/commands/agents.providers.ts index bc1c85ba9..e5e5cbce3 100644 --- a/src/commands/agents.providers.ts +++ b/src/commands/agents.providers.ts @@ -1,5 +1,9 @@ import { resolveChannelDefaultAccountId } from "../channels/plugins/helpers.js"; -import { getChannelPlugin, listChannelPlugins, normalizeChannelId } from "../channels/plugins/index.js"; +import { + getChannelPlugin, + listChannelPlugins, + normalizeChannelId, +} from "../channels/plugins/index.js"; import type { ChannelId } from "../channels/plugins/types.js"; import type { ClawdbotConfig } from "../config/config.js"; import type { AgentBinding } from "../config/types.js"; diff --git a/src/config/config.sandbox-docker.test.ts b/src/config/config.sandbox-docker.test.ts index d16304a72..2bc0ff43e 100644 --- a/src/config/config.sandbox-docker.test.ts +++ b/src/config/config.sandbox-docker.test.ts @@ -9,10 +9,7 @@ describe("sandbox docker config", () => { defaults: { sandbox: { docker: { - binds: [ - "/var/run/docker.sock:/var/run/docker.sock", - "/home/user/source:/source:rw", - ], + binds: ["/var/run/docker.sock:/var/run/docker.sock", "/home/user/source:/source:rw"], }, }, }, diff --git a/src/gateway/hooks.ts b/src/gateway/hooks.ts index e64f587ea..6065d121d 100644 --- a/src/gateway/hooks.ts +++ b/src/gateway/hooks.ts @@ -141,8 +141,7 @@ const listHookChannelValues = () => ["last", ...listChannelPlugins().map((plugin export type HookMessageChannel = ChannelId | "last"; const getHookChannelSet = () => new Set(listHookChannelValues()); -export const getHookChannelError = () => - `channel must be ${listHookChannelValues().join("|")}`; +export const getHookChannelError = () => `channel must be ${listHookChannelValues().join("|")}`; export function resolveHookChannel(raw: unknown): HookMessageChannel | null { if (raw === undefined) return "last"; diff --git a/src/plugins/types.ts b/src/plugins/types.ts index c70863689..c4fe25842 100644 --- a/src/plugins/types.ts +++ b/src/plugins/types.ts @@ -112,9 +112,7 @@ export type ClawdbotPluginApi = { tool: AnyAgentTool | ClawdbotPluginToolFactory, opts?: { name?: string; names?: string[] }, ) => void; - registerChannel: ( - registration: ClawdbotPluginChannelRegistration | ChannelPlugin, - ) => void; + registerChannel: (registration: ClawdbotPluginChannelRegistration | ChannelPlugin) => void; registerGatewayMethod: (method: string, handler: GatewayRequestHandler) => void; registerCli: (registrar: ClawdbotPluginCliRegistrar, opts?: { commands?: string[] }) => void; registerService: (service: ClawdbotPluginService) => void; diff --git a/src/utils/message-channel.ts b/src/utils/message-channel.ts index bae71560a..704ea0fd1 100644 --- a/src/utils/message-channel.ts +++ b/src/utils/message-channel.ts @@ -86,7 +86,9 @@ export const listGatewayAgentChannelAliases = (): string[] => export type GatewayAgentChannelHint = GatewayMessageChannel | "last"; export const listGatewayAgentChannelValues = (): string[] => - Array.from(new Set([...listGatewayMessageChannels(), "last", ...listGatewayAgentChannelAliases()])); + Array.from( + new Set([...listGatewayMessageChannels(), "last", ...listGatewayAgentChannelAliases()]), + ); export function isGatewayMessageChannel(value: string): value is GatewayMessageChannel { return listGatewayMessageChannels().includes(value as GatewayMessageChannel);