Skip to main content

Module constants

Module constants 

Source

Enums§

LaunchMethod
Terminal launch methods for AI tool execution.

Constants§

AI_TOOL_POLL_MS
Poll interval in milliseconds when waiting for AI tool completion.
AI_TOOL_TIMEOUT_SECS
Timeout in seconds for AI tool execution (e.g., PR description generation).
CLAUDE_SESSION_PREFIX_LENGTH
Claude native session path prefix length threshold.
CONFIG_KEY_BASE_BRANCH
Git config key templates for metadata storage.
CONFIG_KEY_BASE_PATH
CONFIG_KEY_INTENDED_BRANCH
HOOK_EVENTS
Valid hook events for lifecycle hooks.
MAX_SESSION_NAME_LENGTH
Maximum session name length for tmux/zellij compatibility. Zellij uses Unix sockets which have a ~108 byte path limit.
MIN_GIT_VERSION
Minimum required Git version for worktree features.
MIN_GIT_VERSION_MAJOR
Minimum Git major version.
MIN_GIT_VERSION_MINOR
Minimum Git minor version (when major == MIN_GIT_VERSION_MAJOR).
PRESET_NAMES
Available AI tool preset names.
SECS_PER_DAY
Seconds in one day (24 * 60 * 60).
SECS_PER_DAY_F64
Seconds in one day as f64 (for floating-point age calculations).

Functions§

all_term_values
Return all valid --term values: canonical launch methods + aliases.
default_worktree_path
Generate default worktree path: ../<repo>-<branch>.
format_config_key
Format a git config key by replacing {} with the branch name.
home_dir_or_fallback
Return the user’s home directory, falling back to "." if unavailable.
launch_method_aliases
Build the alias map for launch methods. First letter: i=iTerm, t=tmux, z=Zellij, w=WezTerm Second: w=window, t=tab, p=pane For panes: h=horizontal, v=vertical
path_age_days
Compute the age of a file in fractional days, or None on error.
sanitize_branch_name
Convert branch name to safe directory name.
strip_unc
Strip Windows UNC path prefix (\\?\) which canonicalize() adds. Git doesn’t understand UNC paths, so we must strip them.
version_meets_minimum
Check if a semver version string meets a minimum (major, minor).