Add comprehensive RPC protocol documentation

This commit is contained in:
Mario Zechner 2025-12-03 15:22:20 +01:00
parent faa0b5f6da
commit 92b2ba9e91
2 changed files with 470 additions and 2 deletions

View file

@ -1,4 +1,4 @@
import type { AgentState } from "@mariozechner/pi-agent-core";
import type { AgentState, AppMessage } from "@mariozechner/pi-agent-core";
import { randomBytes } from "crypto";
import { appendFileSync, existsSync, mkdirSync, readdirSync, readFileSync, statSync } from "fs";
import { homedir } from "os";
@ -25,7 +25,7 @@ export interface SessionHeader {
export interface SessionMessageEntry {
type: "message";
timestamp: string;
message: any; // AppMessage from agent state
message: AppMessage;
}
export interface ThinkingLevelChangeEntry {