internal/

directory
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2026 License: MIT

Directories

Path Synopsis
Package cli is the sitrep command line: it parses arguments, runs the commands and prints their answers.
Package cli is the sitrep command line: it parses arguments, runs the commands and prints their answers.
Package clitest runs the sitrep program in a throwaway HOME, through scenarios of commands, and compares what it printed and left behind with golden files.
Package clitest runs the sitrep program in a throwaway HOME, through scenarios of commands, and compares what it printed and left behind with golden files.
Package clock lets code and tests agree on what time it is.
Package clock lets code and tests agree on what time it is.
Package conf reads sitrep's settings: the environment first, then sitrep.conf in the state folder.
Package conf reads sitrep's settings: the environment first, then sitrep.conf in the state folder.
Package histlog is the history log: one JSON line appended for each change sitrep makes to its state, and none for a read.
Package histlog is the history log: one JSON line appended for each change sitrep makes to its state, and none for a read.
Package hook handles the Claude Code hook events SessionStart, UserPromptSubmit, Stop and SessionEnd: it keeps each session's notes, state word and queue current, answers the + commands, and starts the summarizer.
Package hook handles the Claude Code hook events SessionStart, UserPromptSubmit, Stop and SessionEnd: it keeps each session's notes, state word and queue current, answers the + commands, and starts the summarizer.
Package live decides what is running: Claude Code's live-session registry, the state word a hook left, and how long a session's transcript has been quiet.
Package live decides what is running: Claude Code's live-session registry, the state word a hook left, and how long a session's transcript has been quiet.
Package migrate moves the state of the old flat layout (0.4 and before: <id>.txt, .<id>.state and so on, all in the state folder) into one folder per session.
Package migrate moves the state of the old flat layout (0.4 and before: <id>.txt, .<id>.state and so on, all in the state folder) into one folder per session.
Package notes is the per-session text file (Objective, Progress, Now) and the pin that keeps the summarizer from rewriting it.
Package notes is the per-session text file (Objective, Progress, Now) and the pin that keeps the summarizer from rewriting it.
Package prune finds sessions that are over, marks them ended, and says which hold queue items.
Package prune finds sessions that are over, marks them ended, and says which hold queue items.
Package queue holds the work queues: one file per session and one for the inbox, a line per item.
Package queue holds the work queues: one file per session and one for the inbox, a line per item.
Package render draws the plain text listing that `sitrep ls` prints, from a snapshot: an Inbox, then a table of sessions with their Objective, Progress and Now, and optionally their queues.
Package render draws the plain text listing that `sitrep ls` prints, from a snapshot: an Inbox, then a table of sessions with their Objective, Progress and Now, and optionally their queues.
Package runner is the one place sitrep starts other programs (ps, tmux, cmux, claude), so tests can replace them.
Package runner is the one place sitrep starts other programs (ps, tmux, cmux, claude), so tests can replace them.
Package settings edits Claude Code's settings.json in place: only the keys sitrep owns change, and the rest of the file (other keys, their order, the user's formatting) stays byte for byte.
Package settings edits Claude Code's settings.json in place: only the keys sitrep owns change, and the rest of the file (other keys, their order, the user's formatting) stays byte for byte.
Package setup puts sitrep's block on Claude Code's status line, and takes it off again.
Package setup puts sitrep's block on Claude Code's status line, and takes it off again.
Package snapshot is the one picture of everything sitrep knows: the sessions that ran in the last day, their notes and queues, and the inbox.
Package snapshot is the one picture of everything sitrep knows: the sessions that ran in the last day, their notes and queues, and the inbox.
Package state is where sitrep keeps its files: the folder, the session ids that name them, and the way they are written.
Package state is where sitrep keeps its files: the folder, the session ids that name them, and the way they are written.
Package statetest helps tests write session files by the names of the old flat layout (<id>.txt, .<id>.state), which many of them are written in, into the session folders of the layout in use.
Package statetest helps tests write session files by the names of the old flat layout (<id>.txt, .<id>.state), which many of them are written in, into the session folders of the layout in use.
Package statusline draws the sitrep block of Claude Code's status line: the optional upstream status line (such as Claude HUD) first, then the session's Objective, Progress and Now, and a queue line.
Package statusline draws the sitrep block of Claude Code's status line: the optional upstream status line (such as Claude HUD) first, then the session's Objective, Progress and Now, and a queue line.
Package textsafe makes text from prompts, transcripts, models and settings safe to store and to print (invariant 1 in AGENTS.md).
Package textsafe makes text from prompts, transcripts, models and settings safe to store and to print (invariant 1 in AGENTS.md).
Package transcript reads Claude Code's session transcripts (JSON lines).
Package transcript reads Claude Code's session transcripts (JSON lines).
Package tui is sitrep's full-screen dashboard: tabs for a Cards view and a Table view, a detail pane, jumping to a session's terminal, and the queue and prune screens.
Package tui is sitrep's full-screen dashboard: tabs for a Cards view and a Table view, a detail pane, jumping to a session's terminal, and the queue and prune screens.
Package update tells a user that a newer release exists.
Package update tells a user that a newer release exists.
Package version holds the version of the program.
Package version holds the version of the program.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL