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