Skip to content

Commit b03adac

Browse files
committed
feat: use checkpoints for handoff
1 parent a7ee881 commit b03adac

26 files changed

Lines changed: 2153 additions & 168 deletions

apps/code/src/main/services/agent/service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import {
3030
isOpenAIModel,
3131
} from "@posthog/agent/gateway-models";
3232
import { getLlmGatewayUrl } from "@posthog/agent/posthog-api";
33-
import type { OnLogCallback } from "@posthog/agent/types";
33+
import type * as AgentTypes from "@posthog/agent/types";
3434
import { getCurrentBranch } from "@posthog/git/queries";
3535
import { isAuthError } from "@shared/errors";
3636
import type { AcpMessage } from "@shared/types/session-events";
@@ -173,7 +173,7 @@ function createTappedWritableStream(
173173
});
174174
}
175175

176-
const onAgentLog: OnLogCallback = (level, scope, message, data) => {
176+
const onAgentLog: AgentTypes.OnLogCallback = (level, scope, message, data) => {
177177
const scopedLog = logger.scope(scope);
178178
if (data !== undefined) {
179179
scopedLog[level as keyof typeof scopedLog](message, data);

0 commit comments

Comments
 (0)