sessionname

package
v1.48.3 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: GPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanNativeTitle added in v1.47.1

func CleanNativeTitle(title string) string

func GenerateSessionLabel

func GenerateSessionLabel(sessionID string) string

GenerateSessionLabel generates a friendly name with session ID prefix. Returns a string like "bold 06ddb8f7" for better session identification.

func GenerateSessionName

func GenerateSessionName(sessionID string) string

GenerateSessionName generates a friendly single-word name from a session ID (UUID). Returns a deterministic name like "cat" or "eagle".

Args:

  • sessionID: UUID string (e.g., "73b5e210-ec1a-4294-96e4-c2aecb2e1063")

Returns:

  • Friendly name string (e.g., "peak")

func NativeTitle added in v1.47.1

func NativeTitle(product, sessionID, transcriptPath string) string

NativeTitle reads only exact-session metadata on the hook's own host. Native on-disk formats are best effort: absent or unsupported metadata returns an empty title so callers retain the deterministic session label. No caching allows a rename to become visible on the next hook.

Types

This section is empty.

Jump to

Keyboard shortcuts

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