Format merged runtime files
This commit is contained in:
@@ -28,7 +28,8 @@ function createRootLogger(): Logger {
|
||||
}
|
||||
|
||||
export const logger =
|
||||
globalState.__ejclawLogger ?? (globalState.__ejclawLogger = createRootLogger());
|
||||
globalState.__ejclawLogger ??
|
||||
(globalState.__ejclawLogger = createRootLogger());
|
||||
|
||||
type LogBindings = Record<string, unknown>;
|
||||
|
||||
|
||||
@@ -1410,9 +1410,7 @@ describe('runAgentForGroup room memory', () => {
|
||||
);
|
||||
expect(
|
||||
vi.mocked(db.insertPairedTurnOutput).mock.invocationCallOrder[0],
|
||||
).toBeLessThan(
|
||||
onOutput.mock.invocationCallOrder[0],
|
||||
);
|
||||
).toBeLessThan(onOutput.mock.invocationCallOrder[0]);
|
||||
expect(
|
||||
vi.mocked(db.insertPairedTurnOutput).mock.invocationCallOrder[0],
|
||||
).toBeLessThan(
|
||||
|
||||
@@ -1156,10 +1156,7 @@ export function createMessageRuntime(deps: MessageRuntimeDeps): {
|
||||
await channel
|
||||
.setTyping?.(chatJid, true)
|
||||
?.catch((err) =>
|
||||
logger.warn(
|
||||
{ chatJid, err },
|
||||
'Failed to set typing indicator',
|
||||
),
|
||||
logger.warn({ chatJid, err }, 'Failed to set typing indicator'),
|
||||
);
|
||||
}
|
||||
return;
|
||||
|
||||
@@ -2,10 +2,7 @@ import {
|
||||
ARBITER_DEADLOCK_THRESHOLD,
|
||||
PAIRED_MAX_ROUND_TRIPS,
|
||||
} from './config.js';
|
||||
import {
|
||||
getPairedWorkspace,
|
||||
hasActiveCiWatcherForChat,
|
||||
} from './db.js';
|
||||
import { getPairedWorkspace, hasActiveCiWatcherForChat } from './db.js';
|
||||
import { logger } from './logger.js';
|
||||
import { markPairedTaskReviewReady } from './paired-workspace-manager.js';
|
||||
import {
|
||||
|
||||
@@ -278,9 +278,9 @@ describe('paired workspace manager', () => {
|
||||
db.getPairedTaskById('paired-task-no-owner-workspace')
|
||||
?.review_requested_at,
|
||||
).toBeNull();
|
||||
expect(
|
||||
db.getPairedTaskById('paired-task-no-owner-workspace')?.status,
|
||||
).toBe('active');
|
||||
expect(db.getPairedTaskById('paired-task-no-owner-workspace')?.status).toBe(
|
||||
'active',
|
||||
);
|
||||
});
|
||||
|
||||
it('uses the shared DB owner workspace across service-local data dirs', async () => {
|
||||
|
||||
Reference in New Issue
Block a user