Skip to content

Commit 461ff8a

Browse files
committed
feat: use checkpoints for handoff
1 parent 55bb930 commit 461ff8a

26 files changed

Lines changed: 2154 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
@@ -34,7 +34,7 @@ import {
3434
isOpenAIModel,
3535
} from "@posthog/agent/gateway-models";
3636
import { getLlmGatewayUrl } from "@posthog/agent/posthog-api";
37-
import type { OnLogCallback } from "@posthog/agent/types";
37+
import type * as AgentTypes from "@posthog/agent/types";
3838
import { getCurrentBranch } from "@posthog/git/queries";
3939
import type { IAppMeta } from "@posthog/platform/app-meta";
4040
import type { IBundledResources } from "@posthog/platform/bundled-resources";
@@ -180,7 +180,7 @@ function createTappedWritableStream(
180180
});
181181
}
182182

183-
const onAgentLog: OnLogCallback = (level, scope, message, data) => {
183+
const onAgentLog: AgentTypes.OnLogCallback = (level, scope, message, data) => {
184184
const scopedLog = logger.scope(scope);
185185
if (data !== undefined) {
186186
scopedLog[level as keyof typeof scopedLog](message, data);

0 commit comments

Comments
 (0)