Documentation
¶
Index ¶
- Constants
- func CodexSessionLogPath(cacheDir, tmuxSessionName string) string
- func GeminiSessionFilePattern(homeDir, projectDir, sessionID string) string
- func JsonlPath(tool Tool, homeDir, projectDir, sessionID string) string
- func NormalizeEvent(tool Tool, rawEvent string) string
- func ProjectDir(tool Tool, geminiProjectDir, claudeProjectDir string) string
- type Tool
Constants ¶
const EnvSessionName = "MUXAC_SESSION_NAME"
EnvSessionName is the environment variable used to pass the muxac session name.
Variables ¶
This section is empty.
Functions ¶
func CodexSessionLogPath ¶ added in v0.0.4
CodexSessionLogPath returns the file path for a Codex TUI session log.
func GeminiSessionFilePattern ¶ added in v0.0.6
GeminiSessionFilePattern returns a glob pattern that matches the Gemini CLI session JSON file for the given project directory and session ID. Returns "" if sessionID is too short (< 8 characters).
func JsonlPath ¶
JsonlPath returns the tool-specific JSONL file path. Returns "" for tools that do not support JSONL.
func NormalizeEvent ¶
NormalizeEvent maps a tool-specific hook event name to the canonical event name used by the status package. For Claude, events are already canonical. For Unknown tools, Claude conventions are used as a fallback.
func ProjectDir ¶
ProjectDir returns the project directory for the given tool.
Types ¶
type Tool ¶
type Tool int
Tool represents a supported agentic coding tool.
func DetectTool ¶
DetectTool determines which coding tool is running based on the tool-specific environment variable values. Gemini CLI sets both GEMINI_PROJECT_DIR and CLAUDE_PROJECT_DIR, so it must be checked first.
func ToolFromString ¶
ToolFromString converts a database string back to a Tool value. Empty or unrecognized strings return Unknown.