MCPcopy Create free account
hub / github.com/Noumena-Network/code / getModeLabel

Function getModeLabel

src/components/statusLine/starshipStatusLine.ts:26–42  ·  view source on GitHub ↗
(mode: PermissionMode)

Source from the content-addressed store, hash-verified

24const MAIN_THREAD_LABEL = 'Main'
25
26function getModeLabel(mode: PermissionMode): string | null {
27 switch (mode) {
28 case 'acceptEdits':
29 return 'accept edits'
30 case 'bypassPermissions':
31 return 'bypass'
32 case 'dontAsk':
33 return "don't ask"
34 case 'plan':
35 return 'plan'
36 case 'auto':
37 return 'auto'
38 case 'default':
39 default:
40 return null
41 }
42}
43
44function getModeBadgeColor(mode: PermissionMode): string {
45 switch (mode) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected