fix(pi): align package graph and declare compaction summaries

This commit is contained in:
Vincent Koc
2026-03-19 10:56:33 -07:00
parent 13be4b4cc2
commit d9e9a9e819
3 changed files with 36 additions and 8 deletions

16
src/types/pi-agent-core.d.ts vendored Normal file
View 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;
};
}
}