From 2ab7aedcce9d41949082c8aff9efbf1ec7a72c30 Mon Sep 17 00:00:00 2001 From: Eyejoker Date: Mon, 23 Mar 2026 06:39:47 +0900 Subject: [PATCH] style: format extracted runtime helpers --- src/group-queue-ipc.ts | 5 ++++- src/group-queue.ts | 5 +---- src/message-runtime-rules.ts | 5 +---- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/src/group-queue-ipc.ts b/src/group-queue-ipc.ts index eafc288..ba521ec 100644 --- a/src/group-queue-ipc.ts +++ b/src/group-queue-ipc.ts @@ -3,7 +3,10 @@ import path from 'path'; import { DATA_DIR } from './config.js'; -export function queueFollowUpMessage(groupFolder: string, text: string): string { +export function queueFollowUpMessage( + groupFolder: string, + text: string, +): string { const inputDir = path.join(DATA_DIR, 'ipc', groupFolder, 'input'); fs.mkdirSync(inputDir, { recursive: true }); const filename = `${Date.now()}-${Math.random().toString(36).slice(2, 6)}.json`; diff --git a/src/group-queue.ts b/src/group-queue.ts index 88cea37..7902d55 100644 --- a/src/group-queue.ts +++ b/src/group-queue.ts @@ -1,10 +1,7 @@ import { ChildProcess } from 'child_process'; import { MAX_CONCURRENT_AGENTS } from './config.js'; -import { - queueFollowUpMessage, - writeCloseSentinel, -} from './group-queue-ipc.js'; +import { queueFollowUpMessage, writeCloseSentinel } from './group-queue-ipc.js'; import { logger } from './logger.js'; interface QueuedTask { diff --git a/src/message-runtime-rules.ts b/src/message-runtime-rules.ts index 3af80fb..6ef4b14 100644 --- a/src/message-runtime-rules.ts +++ b/src/message-runtime-rules.ts @@ -1,7 +1,4 @@ -import { - getLastHumanMessageTimestamp, - isPairedRoomJid, -} from './db.js'; +import { getLastHumanMessageTimestamp, isPairedRoomJid } from './db.js'; import { filterProcessableMessages } from './bot-message-filter.js'; import { normalizeStoredSeqCursor } from './message-cursor.js'; import { isTriggerAllowed, loadSenderAllowlist } from './sender-allowlist.js';