mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 03:22:44 +00:00
fix: xxxxx
This commit is contained in:
1
src/agents/pi-embedded-runner/compact.runtime.ts
Normal file
1
src/agents/pi-embedded-runner/compact.runtime.ts
Normal file
@@ -0,0 +1 @@
|
|||||||
|
export { compactEmbeddedPiSessionDirect } from "./compact.js";
|
||||||
@@ -69,9 +69,9 @@ export class LegacyContextEngine implements ContextEngine {
|
|||||||
customInstructions?: string;
|
customInstructions?: string;
|
||||||
legacyParams?: Record<string, unknown>;
|
legacyParams?: Record<string, unknown>;
|
||||||
}): Promise<CompactResult> {
|
}): Promise<CompactResult> {
|
||||||
// Import dynamically to avoid circular dependencies
|
// Import through a dedicated runtime boundary so the lazy edge remains effective.
|
||||||
const { compactEmbeddedPiSessionDirect } =
|
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
|
// legacyParams carries the full CompactEmbeddedPiSessionParams fields
|
||||||
// set by the caller in run.ts. We spread them and override the fields
|
// set by the caller in run.ts. We spread them and override the fields
|
||||||
|
|||||||
Reference in New Issue
Block a user