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

@@ -37,9 +37,7 @@ export async function dispatchReplyFromConfig(params: {
const originatingTo = ctx.OriginatingTo;
const currentSurface = (ctx.Surface ?? ctx.Provider)?.toLowerCase();
const shouldRouteToOriginating =
isRoutableChannel(originatingChannel) &&
originatingTo &&
originatingChannel !== currentSurface;
isRoutableChannel(originatingChannel) && originatingTo && originatingChannel !== currentSurface;
/**
* Helper to send a payload via route-reply (async).
@@ -66,9 +64,7 @@ export async function dispatchReplyFromConfig(params: {
abortSignal,
});
if (!result.ok) {
logVerbose(
`dispatch-from-config: route-reply failed: ${result.error ?? "unknown error"}`,
);
logVerbose(`dispatch-from-config: route-reply failed: ${result.error ?? "unknown error"}`);
}
};
@@ -129,11 +125,7 @@ export async function dispatchReplyFromConfig(params: {
cfg,
);
const replies = replyResult
? Array.isArray(replyResult)
? replyResult
: [replyResult]
: [];
const replies = replyResult ? (Array.isArray(replyResult) ? replyResult : [replyResult]) : [];
let queuedFinal = false;
let routedFinalCount = 0;