Documentation
¶
Overview ¶
Package naming contains shared naming helpers used by loom-mcp code generators.
The functions in this package centralize identifier sanitization and related naming conventions so generated code remains consistent across generators.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HumanizeTitle ¶
HumanizeTitle converts a slug-like name (snake_case, kebab-case, dotted) into a conservative Title Case string.
func Identifier ¶
Identifier builds a stable dotted identifier by sanitizing parts and joining them with '.'.
func QueueName ¶
QueueName builds a deterministic queue identifier for workflows/activities by sanitizing its parts and joining them with underscores.
func SanitizeToken ¶
SanitizeToken converts an arbitrary string into a filesystem-safe token. It is used to derive deterministic directory/package fragments from user input (agent names, toolset names, etc).
The returned token:
- is lower snake_case
- contains only [a-z0-9_]
- never starts/ends with '_' and never contains repeated "__"
When the sanitized result is empty, SanitizeToken returns fallback.
Types ¶
This section is empty.