MCPcopy
hub / github.com/codeaashu/claude-code / firstCommandToken

Function firstCommandToken

src/utils/claudeCodeHints.ts:130–134  ·  view source on GitHub ↗
(command: string)

Source from the content-addressed store, hash-verified

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

Callers 1

extractClaudeCodeHintsFunction · 0.85

Calls 1

searchMethod · 0.65

Tested by

no test coverage detected