Documentation
¶
Index ¶
- Constants
- func DecodeProjectPath(sourceKey string) string
- func DecodeProjectPathFromSourceKey(sourceKey string) string
- func ExtractBasename(sourceKey string) string
- func ExtractParentSessionID(sourceKey string) string
- func ExtractSessionIDFromPath(sourceKey string) string
- func HasOnlyReadToolUses(tus []ToolUse) bool
- func SerializeToolUses(tus []ToolUse, contentTypes []string) sql.NullString
- type ExtractedFields
- type ToolUse
Constants ¶
const ProviderName = "claude_code"
Variables ¶
This section is empty.
Functions ¶
func DecodeProjectPath ¶
DecodeProjectPath decodes the project path from a Claude source key. Claude stores projects under ~/.claude/projects/<encoded-path>/, where the encoded path replaces "/" with "-".
func DecodeProjectPathFromSourceKey ¶
DecodeProjectPathFromSourceKey decodes the project path from a Claude source key.
func ExtractBasename ¶
ExtractBasename returns the filename without extension.
func ExtractParentSessionID ¶
ExtractParentSessionID extracts the parent session UUID from a subagent path.
func ExtractSessionIDFromPath ¶
ExtractSessionIDFromPath extracts the UUID session ID from a JSONL filename.
func HasOnlyReadToolUses ¶
HasOnlyReadToolUses reports whether every extracted tool_use is Read.
func SerializeToolUses ¶
func SerializeToolUses(tus []ToolUse, contentTypes []string) sql.NullString
SerializeToolUses returns tool uses and content types as a JSON NullString.
Types ¶
type ExtractedFields ¶
type ExtractedFields = extractedFields
ExtractedFields aliases extractedFields for hook integration.
func ExtractFields ¶
func ExtractFields(line string) ExtractedFields
ExtractFields parses a single Claude JSONL line and returns structured fields.