preview

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClaudeInfo

func ClaudeInfo(sessionID, projectPath, workingDir string) string

ClaudeInfo returns the session info fields (Title/Time/Messages/Directory) as a styled string for the info viewport section. No section header is included; the caller provides the header via lipgloss.

func ClaudeMsgs

func ClaudeMsgs(sessionID, projectPath string) string

ClaudeMsgs returns the recent user messages as a styled bullet list. Returns empty string when the JSONL file is missing or has no user messages.

func DirListing

func DirListing(dir string) string

DirListing returns the directory listing as a string. Delegates to listDir; the caller is responsible for providing the section header.

func OpencodeInfo

func OpencodeInfo(sessionID, directory string) string

OpencodeInfo returns the session info fields from the Opencode SQLite DB as a styled string for the info viewport section. Returns empty string when the DB is absent or the session is not found.

func RenderClaude

func RenderClaude(w io.Writer, sessionID, projectPath, workingDir string)

RenderClaude writes a preview of a Claude Code session to w.

func RenderOpencode

func RenderOpencode(w io.Writer, sessionID, directory string)

RenderOpencode writes a preview of an Opencode session to w.

Types

This section is empty.

Jump to

Keyboard shortcuts

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