Documentation
¶
Index ¶
- Constants
- func BuildChatDir(baseDir string) (string, error)
- func BuildUniqueChatPath(cwd, title string) (string, error)
- func BuildUniqueChatPathForFileName(baseDir, fileName string) (string, error)
- func BuildUniqueChatPathInDir(chatDir, fileName string) (string, error)
- func ChatProjectionFrontmatter(file ChatProjectionFile) string
- func DefaultConversationWorkdir(baseDir string) string
- func EnsureChatProjectionFile(file ChatProjectionFile) error
- func NormalizeChatFileName(fileName string) (string, error)
- type ChatFileMeta
- type ChatProjectionFile
Constants ¶
View Source
const ChatProtocolV2 = "chat-v2"
Variables ¶
This section is empty.
Functions ¶
func BuildChatDir ¶
func BuildUniqueChatPath ¶
func ChatProjectionFrontmatter ¶
func ChatProjectionFrontmatter(file ChatProjectionFile) string
func EnsureChatProjectionFile ¶
func EnsureChatProjectionFile(file ChatProjectionFile) error
func NormalizeChatFileName ¶
Types ¶
type ChatFileMeta ¶
type ChatFileMeta struct {
ThreadID string
Protocol string
Title string
CreatedAt time.Time
UpdatedAt time.Time
}
ChatFileMeta is the canonical metadata parsed from chat markdown frontmatter. It is used only for projection/index maintenance. Runtime session truth lives in session JSONL, not markdown.
func ReadChatFileMeta ¶
func ReadChatFileMeta(path string) (*ChatFileMeta, error)
ReadChatFileMeta extracts metadata from YAML frontmatter (first --- block).
Click to show internal directories.
Click to hide internal directories.