fix: xxxxx

This commit is contained in:
Vincent Koc
2026-03-06 19:45:55 -05:00
parent 42e3d8d693
commit 063b9aabe2
2 changed files with 3 additions and 2 deletions

View File

@@ -0,0 +1 @@
export { compactEmbeddedPiSessionDirect } from "./compact.js";

View File

@@ -69,9 +69,9 @@ export class LegacyContextEngine implements ContextEngine {
customInstructions?: string;
legacyParams?: Record<string, unknown>;
}): Promise<CompactResult> {
// Import dynamically to avoid circular dependencies
// Import through a dedicated runtime boundary so the lazy edge remains effective.
const { compactEmbeddedPiSessionDirect } =
await import("../agents/pi-embedded-runner/compact.js");
await import("../agents/pi-embedded-runner/compact.runtime.js");
// legacyParams carries the full CompactEmbeddedPiSessionParams fields
// set by the caller in run.ts. We spread them and override the fields