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

Function getModeFromInput

src/components/PromptInput/inputModes.ts:16–21  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

14}
15
16export function getModeFromInput(input: string): HistoryMode {
17 if (input.startsWith('!')) {
18 return 'bash'
19 }
20 return 'prompt'
21}
22
23export function getValueFromInput(input: string): string {
24 const mode = getModeFromInput(input)

Callers 7

getValueFromInputFunction · 0.85
PromptInputFunction · 0.85
onTextPasteFunction · 0.85
loadHistoryEntriesFunction · 0.85
useArrowKeyHistoryFunction · 0.85
useHistorySearchFunction · 0.85
acceptSuggestionTextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected