mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-04 01:20:24 +00:00
fix(pi): align package graph and declare compaction summaries
This commit is contained in:
16
src/types/pi-agent-core.d.ts
vendored
Normal file
16
src/types/pi-agent-core.d.ts
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
import "@mariozechner/pi-agent-core";
|
||||
|
||||
declare module "@mariozechner/pi-agent-core" {
|
||||
// OpenClaw persists compaction markers alongside normal agent history.
|
||||
interface CustomAgentMessages {
|
||||
compactionSummary: {
|
||||
role: "compactionSummary";
|
||||
summary: string;
|
||||
tokensBefore: number;
|
||||
timestamp: number | string;
|
||||
tokensAfter?: number;
|
||||
firstKeptEntryId?: string;
|
||||
details?: unknown;
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user