From faefa4089d0fdf153961d4dbf6feda58d6b6a29a Mon Sep 17 00:00:00 2001 From: scoootscooob Date: Tue, 17 Mar 2026 22:03:44 -0700 Subject: [PATCH] style: normalize oxfmt formatting --- extensions/imessage/runtime-api.ts | 5 ++++- extensions/imessage/src/channel.runtime.ts | 5 +---- extensions/imessage/src/channel.ts | 6 +++--- extensions/moonshot/index.ts | 2 +- src/agents/tools/web-search.test.ts | 6 +----- 5 files changed, 10 insertions(+), 14 deletions(-) diff --git a/extensions/imessage/runtime-api.ts b/extensions/imessage/runtime-api.ts index 57eb1ed64aa..6cd9966f193 100644 --- a/extensions/imessage/runtime-api.ts +++ b/extensions/imessage/runtime-api.ts @@ -18,7 +18,10 @@ export { normalizeIMessageMessagingTarget, } from "../../src/channels/plugins/normalize/imessage.js"; export { IMessageConfigSchema } from "../../src/config/zod-schema.providers-core.js"; -export { resolveIMessageGroupRequireMention, resolveIMessageGroupToolPolicy } from "./src/group-policy.js"; +export { + resolveIMessageGroupRequireMention, + resolveIMessageGroupToolPolicy, +} from "./src/group-policy.js"; export { monitorIMessageProvider } from "./src/monitor.js"; export type { MonitorIMessageOpts } from "./src/monitor.js"; diff --git a/extensions/imessage/src/channel.runtime.ts b/extensions/imessage/src/channel.runtime.ts index 4df9d5651d5..32cd39a1d64 100644 --- a/extensions/imessage/src/channel.runtime.ts +++ b/extensions/imessage/src/channel.runtime.ts @@ -1,8 +1,5 @@ import { resolveOutboundSendDep } from "openclaw/plugin-sdk/channel-runtime"; -import { - PAIRING_APPROVED_MESSAGE, - resolveChannelMediaMaxBytes, -} from "../runtime-api.js"; +import { PAIRING_APPROVED_MESSAGE, resolveChannelMediaMaxBytes } from "../runtime-api.js"; import type { ResolvedIMessageAccount } from "./accounts.js"; import { monitorIMessageProvider } from "./monitor.js"; import { probeIMessage } from "./probe.js"; diff --git a/extensions/imessage/src/channel.ts b/extensions/imessage/src/channel.ts index 22faf226e89..27a26a9db88 100644 --- a/extensions/imessage/src/channel.ts +++ b/extensions/imessage/src/channel.ts @@ -1,6 +1,9 @@ import { buildAccountScopedAllowlistConfigEditor } from "openclaw/plugin-sdk/allowlist-config-edit"; import { resolveOutboundSendDep } from "openclaw/plugin-sdk/channel-runtime"; import { buildOutboundBaseSessionKey } from "openclaw/plugin-sdk/core"; +import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime"; +import { type RoutePeer } from "openclaw/plugin-sdk/routing"; +import { buildPassiveProbedChannelStatusSummary } from "../../shared/channel-status-summary.js"; import { collectStatusIssuesFromLastError, DEFAULT_ACCOUNT_ID, @@ -8,9 +11,6 @@ import { normalizeIMessageMessagingTarget, type ChannelPlugin, } from "../runtime-api.js"; -import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime"; -import { type RoutePeer } from "openclaw/plugin-sdk/routing"; -import { buildPassiveProbedChannelStatusSummary } from "../../shared/channel-status-summary.js"; import { resolveIMessageAccount, type ResolvedIMessageAccount } from "./accounts.js"; import { resolveIMessageGroupRequireMention, diff --git a/extensions/moonshot/index.ts b/extensions/moonshot/index.ts index 3a8ed52c805..241d53e6014 100644 --- a/extensions/moonshot/index.ts +++ b/extensions/moonshot/index.ts @@ -1,6 +1,6 @@ import { definePluginEntry } from "openclaw/plugin-sdk/core"; -import { buildSingleProviderApiKeyCatalog } from "openclaw/plugin-sdk/provider-catalog"; import { createProviderApiKeyAuthMethod } from "openclaw/plugin-sdk/provider-auth"; +import { buildSingleProviderApiKeyCatalog } from "openclaw/plugin-sdk/provider-catalog"; import { createMoonshotThinkingWrapper, resolveMoonshotThinkingType, diff --git a/src/agents/tools/web-search.test.ts b/src/agents/tools/web-search.test.ts index cb9cabfe87f..8edaca15b94 100644 --- a/src/agents/tools/web-search.test.ts +++ b/src/agents/tools/web-search.test.ts @@ -27,7 +27,6 @@ const { resolveKimiApiKey, resolveKimiModel, resolveKimiBaseUrl, extractKimiCita moonshotTesting; const kimiApiKeyEnv = ["KIMI_API", "KEY"].join("_"); -const moonshotApiKeyEnv = ["MOONSHOT_API", "KEY"].join("_"); const openRouterApiKeyEnv = ["OPENROUTER_API", "KEY"].join("_"); const perplexityApiKeyEnv = ["PERPLEXITY_API", "KEY"].join("_"); const openRouterPerplexityApiKey = ["sk", "or", "v1", "test"].join("-"); @@ -231,10 +230,7 @@ describe("web_search kimi config resolution", () => { it("extracts citations from search_results", () => { expect( extractKimiCitations({ - search_results: [ - { url: "https://example.com/one" }, - { url: "https://example.com/two" }, - ], + search_results: [{ url: "https://example.com/one" }, { url: "https://example.com/two" }], }), ).toEqual(["https://example.com/one", "https://example.com/two"]); });