style: format after runtime unification

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Eyejoker
2026-03-23 00:44:04 +09:00
parent d4fc498268
commit a1324726b1
3 changed files with 71 additions and 71 deletions

View File

@@ -22,9 +22,7 @@ import {
getChannelFactory, getChannelFactory,
getRegisteredChannelNames, getRegisteredChannelNames,
} from './channels/registry.js'; } from './channels/registry.js';
import { import { writeGroupsSnapshot } from './agent-runner.js';
writeGroupsSnapshot,
} from './agent-runner.js';
import { import {
getAllChats, getAllChats,
getAllRegisteredGroups, getAllRegisteredGroups,

View File

@@ -31,10 +31,7 @@ vi.mock('./db.js', () => {
const withSeqs = (messages: Array<Record<string, unknown>>) => const withSeqs = (messages: Array<Record<string, unknown>>) =>
messages.map((message, index) => ({ messages.map((message, index) => ({
...message, ...message,
seq: seq: typeof message.seq === 'number' ? message.seq : index + 1,
typeof message.seq === 'number'
? message.seq
: index + 1,
})); }));
return { return {
@@ -50,7 +47,8 @@ vi.mock('./db.js', () => {
sinceSeqCursor: string, sinceSeqCursor: string,
botPrefix: string, botPrefix: string,
limit?: number, limit?: number,
) => withSeqs(getMessagesSince(chatJid, sinceSeqCursor, botPrefix, limit)), ) =>
withSeqs(getMessagesSince(chatJid, sinceSeqCursor, botPrefix, limit)),
), ),
getNewMessagesBySeq: vi.fn( getNewMessagesBySeq: vi.fn(
( (
@@ -65,8 +63,12 @@ vi.mock('./db.js', () => {
newSeqCursor?: string; newSeqCursor?: string;
newTimestamp?: string; newTimestamp?: string;
} }
| undefined = | undefined = getNewMessages(
getNewMessages(jids, lastSeqCursor, botPrefix, limit) || { jids,
lastSeqCursor,
botPrefix,
limit,
) || {
messages: [], messages: [],
newSeqCursor: '0', newSeqCursor: '0',
}; };