MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / firstCommandToken

Function firstCommandToken

source code/utils/claudeCodeHints.ts:132–136  ·  view source on GitHub ↗
(command: string)

Source from the content-addressed store, hash-verified

130}
131
132function firstCommandToken(command: string): string {
133 const trimmed = command.trim()
134 const spaceIdx = trimmed.search(/\s/)
135 return spaceIdx === -1 ? trimmed : trimmed.slice(0, spaceIdx)
136}
137
138// ============================================================================
139// Pending-hint store (useSyncExternalStore interface)

Callers 1

extractClaudeCodeHintsFunction · 0.85

Calls 1

searchMethod · 0.80

Tested by

no test coverage detected