Skip to main content

Module plan

Module plan 

Source
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.