From dee013426923785b1bcd57fa55fc28276bf57acf Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Tue, 17 Feb 2026 00:32:20 +0000 Subject: [PATCH] style: reformat dedupe-touched files --- src/agents/anthropic-payload-log.ts | 4 ++-- src/agents/cache-trace.ts | 2 +- src/agents/tools/canvas-tool.ts | 2 +- src/agents/tools/nodes-tool.ts | 4 ++-- src/agents/tools/web-fetch.ts | 2 +- src/agents/tools/web-search.ts | 4 ++-- src/commands/status-all.ts | 4 ++-- src/commands/status.command.ts | 4 ++-- src/gateway/openresponses-http.ts | 10 +++++----- src/media-understanding/apply.ts | 14 +++++++------- src/media/input-files.ts | 2 +- 11 files changed, 26 insertions(+), 26 deletions(-) diff --git a/src/agents/anthropic-payload-log.ts b/src/agents/anthropic-payload-log.ts index 03c2cbc1c1..b2bdfa3a4d 100644 --- a/src/agents/anthropic-payload-log.ts +++ b/src/agents/anthropic-payload-log.ts @@ -1,7 +1,7 @@ -import crypto from "node:crypto"; -import path from "node:path"; import type { AgentMessage, StreamFn } from "@mariozechner/pi-agent-core"; import type { Api, Model } from "@mariozechner/pi-ai"; +import crypto from "node:crypto"; +import path from "node:path"; import { resolveStateDir } from "../config/paths.js"; import { createSubsystemLogger } from "../logging/subsystem.js"; import { resolveUserPath } from "../utils.js"; diff --git a/src/agents/cache-trace.ts b/src/agents/cache-trace.ts index 0cc770dabe..c73dad9033 100644 --- a/src/agents/cache-trace.ts +++ b/src/agents/cache-trace.ts @@ -1,6 +1,6 @@ +import type { AgentMessage, StreamFn } from "@mariozechner/pi-agent-core"; import crypto from "node:crypto"; import path from "node:path"; -import type { AgentMessage, StreamFn } from "@mariozechner/pi-agent-core"; import type { OpenClawConfig } from "../config/config.js"; import { resolveStateDir } from "../config/paths.js"; import { resolveUserPath } from "../utils.js"; diff --git a/src/agents/tools/canvas-tool.ts b/src/agents/tools/canvas-tool.ts index 77ddb56db4..561d7f46c0 100644 --- a/src/agents/tools/canvas-tool.ts +++ b/src/agents/tools/canvas-tool.ts @@ -1,6 +1,6 @@ +import { Type } from "@sinclair/typebox"; import crypto from "node:crypto"; import fs from "node:fs/promises"; -import { Type } from "@sinclair/typebox"; import { writeBase64ToFile } from "../../cli/nodes-camera.js"; import { canvasSnapshotTempPath, parseCanvasSnapshotPayload } from "../../cli/nodes-canvas.js"; import { imageMimeFromFormat } from "../../media/mime.js"; diff --git a/src/agents/tools/nodes-tool.ts b/src/agents/tools/nodes-tool.ts index 7add129efa..cc5355c1b0 100644 --- a/src/agents/tools/nodes-tool.ts +++ b/src/agents/tools/nodes-tool.ts @@ -1,6 +1,7 @@ -import crypto from "node:crypto"; import type { AgentToolResult } from "@mariozechner/pi-agent-core"; import { Type } from "@sinclair/typebox"; +import crypto from "node:crypto"; +import type { OpenClawConfig } from "../../config/config.js"; import { type CameraFacing, cameraTempPath, @@ -16,7 +17,6 @@ import { writeScreenRecordToFile, } from "../../cli/nodes-screen.js"; import { parseDurationMs } from "../../cli/parse-duration.js"; -import type { OpenClawConfig } from "../../config/config.js"; import { imageMimeFromFormat } from "../../media/mime.js"; import { resolveSessionAgentId } from "../agent-scope.js"; import { optionalStringEnum, stringEnum } from "../schema/typebox.js"; diff --git a/src/agents/tools/web-fetch.ts b/src/agents/tools/web-fetch.ts index 9206386a79..805ff01b78 100644 --- a/src/agents/tools/web-fetch.ts +++ b/src/agents/tools/web-fetch.ts @@ -1,5 +1,6 @@ import { Type } from "@sinclair/typebox"; import type { OpenClawConfig } from "../../config/config.js"; +import type { AnyAgentTool } from "./common.js"; import { fetchWithSsrFGuard } from "../../infra/net/fetch-guard.js"; import { matchesHostnameAllowlist, @@ -10,7 +11,6 @@ import { logDebug } from "../../logger.js"; import { wrapExternalContent, wrapWebContent } from "../../security/external-content.js"; import { normalizeSecretInput } from "../../utils/normalize-secret-input.js"; import { stringEnum } from "../schema/typebox.js"; -import type { AnyAgentTool } from "./common.js"; import { jsonResult, readNumberParam, readStringParam } from "./common.js"; import { extractReadableContent, diff --git a/src/agents/tools/web-search.ts b/src/agents/tools/web-search.ts index a47737594d..511b530e63 100644 --- a/src/agents/tools/web-search.ts +++ b/src/agents/tools/web-search.ts @@ -1,10 +1,10 @@ import { Type } from "@sinclair/typebox"; -import { formatCliCommand } from "../../cli/command-format.js"; import type { OpenClawConfig } from "../../config/config.js"; +import type { AnyAgentTool } from "./common.js"; +import { formatCliCommand } from "../../cli/command-format.js"; import { matchesHostnameAllowlist, normalizeHostnameAllowlist } from "../../infra/net/ssrf.js"; import { wrapWebContent } from "../../security/external-content.js"; import { normalizeSecretInput } from "../../utils/normalize-secret-input.js"; -import type { AnyAgentTool } from "./common.js"; import { jsonResult, readNumberParam, readStringParam } from "./common.js"; import { CacheEntry, diff --git a/src/commands/status-all.ts b/src/commands/status-all.ts index e7b38cb0ec..7983a70e18 100644 --- a/src/commands/status-all.ts +++ b/src/commands/status-all.ts @@ -1,10 +1,11 @@ +import type { GatewayService } from "../daemon/service.js"; +import type { RuntimeEnv } from "../runtime.js"; import { buildWorkspaceSkillStatus } from "../agents/skills-status.js"; import { formatCliCommand } from "../cli/command-format.js"; import { withProgress } from "../cli/progress.js"; import { loadConfig, readConfigFileSnapshot, resolveGatewayPort } from "../config/config.js"; import { readLastGatewayErrorLine } from "../daemon/diagnostics.js"; import { resolveNodeService } from "../daemon/node-service.js"; -import type { GatewayService } from "../daemon/service.js"; import { resolveGatewayService } from "../daemon/service.js"; import { buildGatewayConnectionDetails, callGateway } from "../gateway/call.js"; import { normalizeControlUiBasePath } from "../gateway/control-ui-shared.js"; @@ -20,7 +21,6 @@ import { readTailscaleStatusJson } from "../infra/tailscale.js"; import { normalizeUpdateChannel, resolveUpdateChannelDisplay } from "../infra/update-channels.js"; import { checkUpdateStatus, formatGitInstallLabel } from "../infra/update-check.js"; import { runExec } from "../process/exec.js"; -import type { RuntimeEnv } from "../runtime.js"; import { VERSION } from "../version.js"; import { resolveControlUiLinks } from "./onboard-helpers.js"; import { getAgentLocalStatuses } from "./status-all/agents.js"; diff --git a/src/commands/status.command.ts b/src/commands/status.command.ts index e06feb42af..e500b689a6 100644 --- a/src/commands/status.command.ts +++ b/src/commands/status.command.ts @@ -1,10 +1,11 @@ +import type { HeartbeatEventPayload } from "../infra/heartbeat-events.js"; +import type { RuntimeEnv } from "../runtime.js"; import { formatCliCommand } from "../cli/command-format.js"; import { withProgress } from "../cli/progress.js"; import { resolveGatewayPort } from "../config/config.js"; import { buildGatewayConnectionDetails, callGateway } from "../gateway/call.js"; import { info } from "../globals.js"; import { formatTimeAgo } from "../infra/format-time/format-relative.ts"; -import type { HeartbeatEventPayload } from "../infra/heartbeat-events.js"; import { formatUsageReportLines, loadProviderUsageSummary } from "../infra/provider-usage.js"; import { normalizeUpdateChannel, resolveUpdateChannelDisplay } from "../infra/update-channels.js"; import { formatGitInstallLabel } from "../infra/update-check.js"; @@ -14,7 +15,6 @@ import { resolveMemoryVectorState, type Tone, } from "../memory/status-format.js"; -import type { RuntimeEnv } from "../runtime.js"; import { runSecurityAudit } from "../security/audit.js"; import { renderTable } from "../terminal/table.js"; import { theme } from "../terminal/theme.js"; diff --git a/src/gateway/openresponses-http.ts b/src/gateway/openresponses-http.ts index 3fe440d4c3..2fc00dbdef 100644 --- a/src/gateway/openresponses-http.ts +++ b/src/gateway/openresponses-http.ts @@ -6,13 +6,15 @@ * @see https://www.open-responses.com/ */ -import { randomUUID } from "node:crypto"; import type { IncomingMessage, ServerResponse } from "node:http"; +import { randomUUID } from "node:crypto"; import type { ClientToolDefinition } from "../agents/pi-embedded-runner/run/params.js"; -import { createDefaultDeps } from "../cli/deps.js"; -import { agentCommand } from "../commands/agent.js"; import type { ImageContent } from "../commands/agent/types.js"; import type { GatewayHttpResponsesConfig } from "../config/types.gateway.js"; +import type { AuthRateLimiter } from "./auth-rate-limit.js"; +import type { ResolvedGatewayAuth } from "./auth.js"; +import { createDefaultDeps } from "../cli/deps.js"; +import { agentCommand } from "../commands/agent.js"; import { emitAgentEvent, onAgentEvent } from "../infra/agent-events.js"; import { logWarn } from "../logger.js"; import { @@ -34,8 +36,6 @@ import { buildAgentMessageFromConversationEntries, type ConversationEntry, } from "./agent-prompt.js"; -import type { AuthRateLimiter } from "./auth-rate-limit.js"; -import type { ResolvedGatewayAuth } from "./auth.js"; import { sendJson, setSseHeaders, writeDone } from "./http-common.js"; import { handleGatewayPostJsonEndpoint } from "./http-endpoint-helpers.js"; import { resolveAgentIdForRequest, resolveSessionKey } from "./http-utils.js"; diff --git a/src/media-understanding/apply.ts b/src/media-understanding/apply.ts index 6de29873bb..712add0629 100644 --- a/src/media-understanding/apply.ts +++ b/src/media-understanding/apply.ts @@ -1,7 +1,13 @@ import path from "node:path"; -import { finalizeInboundContext } from "../auto-reply/reply/inbound-context.js"; import type { MsgContext } from "../auto-reply/templating.js"; import type { OpenClawConfig } from "../config/config.js"; +import type { + MediaUnderstandingCapability, + MediaUnderstandingDecision, + MediaUnderstandingOutput, + MediaUnderstandingProvider, +} from "./types.js"; +import { finalizeInboundContext } from "../auto-reply/reply/inbound-context.js"; import { logVerbose, shouldLogVerbose } from "../globals.js"; import { extractFileContentFromSource, @@ -23,12 +29,6 @@ import { normalizeMediaAttachments, runCapability, } from "./runner.js"; -import type { - MediaUnderstandingCapability, - MediaUnderstandingDecision, - MediaUnderstandingOutput, - MediaUnderstandingProvider, -} from "./types.js"; export type ApplyMediaUnderstandingResult = { outputs: MediaUnderstandingOutput[]; diff --git a/src/media/input-files.ts b/src/media/input-files.ts index 61fc067ef9..d77531e5ba 100644 --- a/src/media/input-files.ts +++ b/src/media/input-files.ts @@ -1,5 +1,5 @@ -import { fetchWithSsrFGuard } from "../infra/net/fetch-guard.js"; import type { SsrFPolicy } from "../infra/net/ssrf.js"; +import { fetchWithSsrFGuard } from "../infra/net/fetch-guard.js"; import { logWarn } from "../logger.js"; import { estimateBase64DecodedBytes } from "./base64.js"; import { readResponseWithLimit } from "./read-response-with-limit.js";