spacehub

surshar / claude-code

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

Built by Anthropic · github.com/anthropics

claude-code / mods / telemetry / hooks / entries / choice-token / choice-token.ts
8 lines · 327 BRaw
1/**
2 * The shape of a Choice member: a lowercase token of at most 64 characters,
3 * of letters, digits, `_` and `-`.
4 *
5 * Unlike a name or a key (TOKEN), it may start with a digit (a bucket such
6 * as `110_to_143`) and carry a hyphen (a kind such as `merge-base`).
7 */
8export const CHOICE_TOKEN = /^[a-z0-9][a-z0-9_-]{0,63}$/