Documentation
¶
Overview ¶
ABOUTME: Warp session deep-link capture for click-to-focus. ABOUTME: Validates WARP_FOCUS_URL / WARP_TERMINAL_SESSION_UUID and rejects unrelated Warp URIs.
Index ¶
Constants ¶
const ( // FocusURLEnv is the channel-aware deep link Warp injects into each pane. FocusURLEnv = "WARP_FOCUS_URL" // SessionUUIDEnv is the 32-char hex UUID of the originating Warp pane. SessionUUIDEnv = "WARP_TERMINAL_SESSION_UUID" )
Variables ¶
This section is empty.
Functions ¶
func FromEnv ¶
func FromEnv() string
FromEnv returns a validated Warp session focus URL from the current process environment. Prefers WARP_FOCUS_URL (channel-aware). Falls back to WARP_TERMINAL_SESSION_UUID as warp://session/<hex>, then to tmux's copy of those variables when the process is inside tmux. Empty when this process is not a Warp host (for example Cursor or VS Code launched from a Warp pane, which inherit Warp's environment).
func FromSessionUUID ¶
FromSessionUUID builds warp://session/<hex> from a 32-char hex UUID or a dashed UUID. Preview/OSS channels cannot be inferred from the UUID alone.
func IsWarpHost ¶
func IsWarpHost() bool
IsWarpHost reports whether this process is running in a Warp terminal session, as opposed to an app that merely inherited Warp's environment (Cursor, VS Code, Ghostty launched from a Warp pane).
Types ¶
This section is empty.