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

Function getModeBadgeColor

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

Source from the content-addressed store, hash-verified

42}
43
44function getModeBadgeColor(mode: PermissionMode): string {
45 switch (mode) {
46 case 'acceptEdits':
47 return 'autoAccept'
48 case 'bypassPermissions':
49 case 'dontAsk':
50 return 'error'
51 case 'plan':
52 return 'planMode'
53 case 'auto':
54 return 'warning'
55 case 'default':
56 default:
57 return 'subtle'
58 }
59}
60
61function getContextColor(remaining: number): string {
62 if (remaining <= 10) return 'error'

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected