style: run oxfmt and fix gate failures

This commit is contained in:
Peter Steinberger
2026-02-18 01:29:02 +00:00
parent 638853c6d2
commit 31f9be126c
1119 changed files with 2110 additions and 2102 deletions

View File

@@ -1,10 +1,10 @@
import { chunkTextWithMode, resolveChunkMode } from "../../auto-reply/chunk.js";
import type { ReplyPayload } from "../../auto-reply/types.js";
import type { RuntimeEnv } from "../../runtime.js";
import type { createIMessageRpcClient } from "../client.js";
import { chunkTextWithMode, resolveChunkMode } from "../../auto-reply/chunk.js";
import { loadConfig } from "../../config/config.js";
import { resolveMarkdownTableMode } from "../../config/markdown-tables.js";
import { convertMarkdownTables } from "../../markdown/tables.js";
import type { RuntimeEnv } from "../../runtime.js";
import type { createIMessageRpcClient } from "../client.js";
import { sendMessageIMessage } from "../send.js";
type SentMessageCache = {

View File

@@ -1,3 +1,5 @@
import type { OpenClawConfig } from "../../config/config.js";
import type { MonitorIMessageOpts, IMessagePayload } from "./types.js";
import { hasControlCommand } from "../../auto-reply/command-detection.js";
import {
formatInboundEnvelope,
@@ -14,7 +16,6 @@ import { finalizeInboundContext } from "../../auto-reply/reply/inbound-context.j
import { buildMentionRegexes, matchesMentionPatterns } from "../../auto-reply/reply/mentions.js";
import { resolveControlCommandGate } from "../../channels/command-gating.js";
import { logInboundDrop } from "../../channels/logging.js";
import type { OpenClawConfig } from "../../config/config.js";
import {
resolveChannelGroupPolicy,
resolveChannelGroupRequireMention,
@@ -26,7 +27,6 @@ import {
isAllowedIMessageSender,
normalizeIMessageHandle,
} from "../targets.js";
import type { MonitorIMessageOpts, IMessagePayload } from "./types.js";
type IMessageReplyContext = {
id?: string;

View File

@@ -1,4 +1,5 @@
import fs from "node:fs/promises";
import type { IMessagePayload, MonitorIMessageOpts } from "./types.js";
import { resolveHumanDelayConfig } from "../../agents/identity.js";
import { resolveTextChunkLimit } from "../../auto-reply/chunk.js";
import { hasControlCommand } from "../../auto-reply/command-detection.js";
@@ -39,7 +40,6 @@ import {
} from "./inbound-processing.js";
import { parseIMessageNotification } from "./parse-notification.js";
import { normalizeAllowList, resolveRuntime } from "./runtime.js";
import type { IMessagePayload, MonitorIMessageOpts } from "./types.js";
/**
* Try to detect remote host from an SSH wrapper script like:

View File

@@ -1,5 +1,5 @@
import { createNonExitingRuntime, type RuntimeEnv } from "../../runtime.js";
import type { MonitorIMessageOpts } from "./types.js";
import { createNonExitingRuntime, type RuntimeEnv } from "../../runtime.js";
export function resolveRuntime(opts: MonitorIMessageOpts): RuntimeEnv {
return opts.runtime ?? createNonExitingRuntime();