agent

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const EnvSessionName = "MUXAC_SESSION_NAME"

EnvSessionName is the environment variable used to pass the muxac session name.

Variables

This section is empty.

Functions

func JsonlPath

func JsonlPath(tool Tool, homeDir, projectDir, sessionID string) string

JsonlPath returns the tool-specific JSONL file path. Returns "" for tools that do not support JSONL.

func NormalizeEvent

func NormalizeEvent(tool Tool, rawEvent string) string

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

func ProjectDir(tool Tool, claudeProjectDir string) string

ProjectDir returns the project directory for the given tool.

Types

type Tool

type Tool int

Tool represents a supported agentic coding tool.

const (
	Unknown Tool = iota
	Claude
)

func DetectTool

func DetectTool(claudeProjectDir string) Tool

DetectTool determines which coding tool is running based on the tool-specific environment variable values.

func ToolFromString

func ToolFromString(s string) Tool

ToolFromString converts a database string back to a Tool value. Empty or unrecognized strings return Unknown.

func (Tool) String

func (t Tool) String() string

String returns the canonical name of the tool.

Jump to

Keyboard shortcuts

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