chore: migrate to oxlint and oxfmt

Co-authored-by: Christoph Nakazawa <christoph.pojer@gmail.com>
This commit is contained in:
Peter Steinberger
2026-01-14 14:31:43 +00:00
parent 912ebffc63
commit c379191f80
1480 changed files with 28608 additions and 43547 deletions

View File

@@ -1,12 +1,7 @@
import type { ClawdbotConfig } from "../../config/config.js";
import type { SessionEntry } from "../../config/sessions.js";
import type { MsgContext } from "../templating.js";
import type {
ElevatedLevel,
ReasoningLevel,
ThinkLevel,
VerboseLevel,
} from "../thinking.js";
import type { ElevatedLevel, ReasoningLevel, ThinkLevel, VerboseLevel } from "../thinking.js";
import type { ReplyPayload } from "../types.js";
import { buildStatusReply } from "./commands.js";
import {
@@ -176,11 +171,7 @@ export async function applyInlineDirectiveOverrides(params: {
currentElevatedLevel,
});
let statusReply: ReplyPayload | undefined;
if (
directives.hasStatusDirective &&
allowTextCommands &&
command.isAuthorizedSender
) {
if (directives.hasStatusDirective && allowTextCommands && command.isAuthorizedSender) {
statusReply = await buildStatusReply({
cfg,
command,
@@ -192,8 +183,7 @@ export async function applyInlineDirectiveOverrides(params: {
contextTokens,
resolvedThinkLevel: resolvedDefaultThinkLevel,
resolvedVerboseLevel: (currentVerboseLevel ?? "off") as VerboseLevel,
resolvedReasoningLevel: (currentReasoningLevel ??
"off") as ReasoningLevel,
resolvedReasoningLevel: (currentReasoningLevel ?? "off") as ReasoningLevel,
resolvedElevatedLevel,
resolveDefaultThinkingLevel: async () => resolvedDefaultThinkLevel,
isGroup,
@@ -284,9 +274,7 @@ export async function applyInlineDirectiveOverrides(params: {
contextTokens = persisted.contextTokens;
const perMessageQueueMode =
directives.hasQueueDirective && !directives.queueReset
? directives.queueMode
: undefined;
directives.hasQueueDirective && !directives.queueReset ? directives.queueMode : undefined;
const perMessageQueueOptions =
directives.hasQueueDirective && !directives.queueReset
? {