From 5115f6fdf3642ea5adbbe81bf5a57195ff45c85e Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Tue, 17 Feb 2026 00:58:42 +0000 Subject: [PATCH] style: normalize imports for oxfmt 0.33 --- src/agents/apply-patch.ts | 6 ++--- src/agents/skills/config.ts | 2 +- src/config/plugin-auto-enable.ts | 2 +- src/config/redact-snapshot.ts | 2 +- src/hooks/config.ts | 2 +- .../heartbeat-runner.transcript-prune.test.ts | 2 +- src/memory/manager.ts | 24 +++++++++---------- 7 files changed, 20 insertions(+), 20 deletions(-) diff --git a/src/agents/apply-patch.ts b/src/agents/apply-patch.ts index d07c419efa..ef756b37a2 100644 --- a/src/agents/apply-patch.ts +++ b/src/agents/apply-patch.ts @@ -1,10 +1,10 @@ -import type { AgentTool } from "@mariozechner/pi-agent-core"; -import { Type } from "@sinclair/typebox"; import fs from "node:fs/promises"; import path from "node:path"; -import type { SandboxFsBridge } from "./sandbox/fs-bridge.js"; +import type { AgentTool } from "@mariozechner/pi-agent-core"; +import { Type } from "@sinclair/typebox"; import { applyUpdateHunk } from "./apply-patch-update.js"; import { assertSandboxPath, resolveSandboxInputPath } from "./sandbox-paths.js"; +import type { SandboxFsBridge } from "./sandbox/fs-bridge.js"; const BEGIN_PATCH_MARKER = "*** Begin Patch"; const END_PATCH_MARKER = "*** End Patch"; diff --git a/src/agents/skills/config.ts b/src/agents/skills/config.ts index 7662927e6c..212dc9907c 100644 --- a/src/agents/skills/config.ts +++ b/src/agents/skills/config.ts @@ -1,5 +1,4 @@ import type { OpenClawConfig, SkillConfig } from "../../config/config.js"; -import type { SkillEligibilityContext, SkillEntry } from "./types.js"; import { evaluateRuntimeRequires, hasBinary, @@ -8,6 +7,7 @@ import { resolveRuntimePlatform, } from "../../shared/config-eval.js"; import { resolveSkillKey } from "./frontmatter.js"; +import type { SkillEligibilityContext, SkillEntry } from "./types.js"; const DEFAULT_CONFIG_VALUES: Record = { "browser.enabled": true, diff --git a/src/config/plugin-auto-enable.ts b/src/config/plugin-auto-enable.ts index 1ad048a355..40e8270860 100644 --- a/src/config/plugin-auto-enable.ts +++ b/src/config/plugin-auto-enable.ts @@ -1,4 +1,3 @@ -import type { OpenClawConfig } from "./config.js"; import { normalizeProviderId } from "../agents/model-selection.js"; import { getChannelPluginCatalogEntry, @@ -11,6 +10,7 @@ import { } from "../channels/registry.js"; import { isRecord } from "../utils.js"; import { hasAnyWhatsAppAuth } from "../web/accounts.js"; +import type { OpenClawConfig } from "./config.js"; import { ensurePluginAllowlisted } from "./plugins-allowlist.js"; type PluginEnableChange = { diff --git a/src/config/redact-snapshot.ts b/src/config/redact-snapshot.ts index 81b02b8225..0059138a41 100644 --- a/src/config/redact-snapshot.ts +++ b/src/config/redact-snapshot.ts @@ -1,6 +1,6 @@ -import type { ConfigFileSnapshot } from "./types.openclaw.js"; import { createSubsystemLogger } from "../logging/subsystem.js"; import { isSensitiveConfigPath, type ConfigUiHints } from "./schema.hints.js"; +import type { ConfigFileSnapshot } from "./types.openclaw.js"; const log = createSubsystemLogger("config/redaction"); const ENV_VAR_PLACEHOLDER_PATTERN = /^\$\{[^}]*\}$/; diff --git a/src/hooks/config.ts b/src/hooks/config.ts index df02802740..0a7aa89fef 100644 --- a/src/hooks/config.ts +++ b/src/hooks/config.ts @@ -1,5 +1,4 @@ import type { OpenClawConfig, HookConfig } from "../config/config.js"; -import type { HookEligibilityContext, HookEntry } from "./types.js"; import { evaluateRuntimeRequires, hasBinary, @@ -8,6 +7,7 @@ import { resolveRuntimePlatform, } from "../shared/config-eval.js"; import { resolveHookKey } from "./frontmatter.js"; +import type { HookEligibilityContext, HookEntry } from "./types.js"; const DEFAULT_CONFIG_VALUES: Record = { "browser.enabled": true, diff --git a/src/infra/heartbeat-runner.transcript-prune.test.ts b/src/infra/heartbeat-runner.transcript-prune.test.ts index 24785d908c..cea7f17249 100644 --- a/src/infra/heartbeat-runner.transcript-prune.test.ts +++ b/src/infra/heartbeat-runner.transcript-prune.test.ts @@ -1,9 +1,9 @@ import fs from "node:fs/promises"; import path from "node:path"; import { beforeEach, describe, expect, it, vi } from "vitest"; -import type { OpenClawConfig } from "../config/config.js"; import { telegramPlugin } from "../../extensions/telegram/src/channel.js"; import { setTelegramRuntime } from "../../extensions/telegram/src/runtime.js"; +import type { OpenClawConfig } from "../config/config.js"; import { resolveMainSessionKey } from "../config/sessions.js"; import { setActivePluginRegistry } from "../plugins/runtime.js"; import { createPluginRuntime } from "../plugins/runtime/index.js"; diff --git a/src/memory/manager.ts b/src/memory/manager.ts index 88253c085f..a0124e1b72 100644 --- a/src/memory/manager.ts +++ b/src/memory/manager.ts @@ -1,19 +1,11 @@ -import type { DatabaseSync } from "node:sqlite"; -import { type FSWatcher } from "chokidar"; import fs from "node:fs/promises"; import path from "node:path"; -import type { ResolvedMemorySearchConfig } from "../agents/memory-search.js"; -import type { OpenClawConfig } from "../config/config.js"; -import type { - MemoryEmbeddingProbeResult, - MemoryProviderStatus, - MemorySearchManager, - MemorySearchResult, - MemorySource, - MemorySyncProgressUpdate, -} from "./types.js"; +import type { DatabaseSync } from "node:sqlite"; +import { type FSWatcher } from "chokidar"; import { resolveAgentDir, resolveAgentWorkspaceDir } from "../agents/agent-scope.js"; +import type { ResolvedMemorySearchConfig } from "../agents/memory-search.js"; import { resolveMemorySearchConfig } from "../agents/memory-search.js"; +import type { OpenClawConfig } from "../config/config.js"; import { createSubsystemLogger } from "../logging/subsystem.js"; import { createEmbeddingProvider, @@ -28,6 +20,14 @@ import { isMemoryPath, normalizeExtraMemoryPaths } from "./internal.js"; import { MemoryManagerEmbeddingOps } from "./manager-embedding-ops.js"; import { searchKeyword, searchVector } from "./manager-search.js"; import { extractKeywords } from "./query-expansion.js"; +import type { + MemoryEmbeddingProbeResult, + MemoryProviderStatus, + MemorySearchManager, + MemorySearchResult, + MemorySource, + MemorySyncProgressUpdate, +} from "./types.js"; const SNIPPET_MAX_CHARS = 700; const VECTOR_TABLE = "chunks_vec"; const FTS_TABLE = "chunks_fts";