fix: update heartbeat.ts type signatures to accept SessionLookup | null (#169) (#175)

This commit is contained in:
Lauren ten Hoor
2026-02-13 20:49:20 +08:00
committed by GitHub
parent abbf05777c
commit cfd7ea9237

View File

@@ -224,7 +224,7 @@ export async function tick(opts: {
agentId?: string; agentId?: string;
config: HeartbeatConfig; config: HeartbeatConfig;
pluginConfig?: Record<string, unknown>; pluginConfig?: Record<string, unknown>;
sessions: SessionLookup; sessions: SessionLookup | null;
logger: { info(msg: string): void; warn(msg: string): void }; logger: { info(msg: string): void; warn(msg: string): void };
}): Promise<TickResult> { }): Promise<TickResult> {
const { workspaceDir, agentId, config, pluginConfig, sessions } = opts; const { workspaceDir, agentId, config, pluginConfig, sessions } = opts;
@@ -301,7 +301,7 @@ async function performHealthPass(
workspaceDir: string, workspaceDir: string,
groupId: string, groupId: string,
project: any, project: any,
sessions: SessionLookup, sessions: SessionLookup | null,
): Promise<number> { ): Promise<number> {
const { provider } = await createProvider({ repo: project.repo }); const { provider } = await createProvider({ repo: project.repo });
let fixedCount = 0; let fixedCount = 0;