Expand description
Plan store: append-only jsonl, similar to transcript.
Each plan is appended as a JSON line. Supports reading latest plan. Backward compatible: can still read legacy single .json files.
Functionsยง
- append_
plan - Append a plan entry to the jsonl file.
- list_
plan_ files - List all plan files for a session (for UI / history browsing).
- plan_
path_ jsonl - Path for plan jsonl file: plans/{session_key}-{date}.jsonl
- plan_
path_ legacy - Legacy path: plans/{session_key}-{date}.json (single file, overwrite)
- read_
latest_ plan - Read the latest plan. Tries jsonl first (last entry), then legacy .json.