Documentation
¶
Overview ¶
Package transcript reads Claude Code's session transcripts (JSON lines). A transcript is untrusted input: it is read only when it is a regular file under the projects folder, never through a link, and never more than a bounded amount.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContinuedIn ¶ added in v1.3.3
ContinuedIn is the id of the session that a resume moved this conversation into, from the last "continued-in" line at the end of the transcript. The id is untrusted: the caller checks it.
func Cwd ¶ added in v1.6.2
Cwd is the folder the conversation was started in: the first cwd field of a line, within the first part of the transcript. It is untrusted: the caller checks it.
func Find ¶ added in v1.6.2
Find is the transcript of a session, under any project of <configDir>/projects, or "" when there is none that Valid accepts. The caller has checked that id is a session id, so it cannot leave the folder.
func FirstPrompt ¶
FirstPrompt is the first line of the first real user message: messages that start with a tag (command and system wrappers) or are blank are skipped. A line that is not JSON is skipped.
Types ¶
This section is empty.