MCPcopy Index your code
hub / github.com/codeaashu/claude-code / isExternalPermissionMode

Function isExternalPermissionMode

src/utils/permissions/PermissionMode.ts:97–105  ·  view source on GitHub ↗
(
  mode: PermissionMode,
)

Source from the content-addressed store, hash-verified

95 * auto is ant-only and excluded from external modes.
96 */
97export function isExternalPermissionMode(
98 mode: PermissionMode,
99): mode is ExternalPermissionMode {
100 // External users can't have auto, so always true for them
101 if (process.env.USER_TYPE !== 'ant') {
102 return true
103 }
104 return mode !== 'auto' && mode !== 'bubble'
105}
106
107function getModeConfig(mode: PermissionMode): PermissionModeConfig {
108 return PERMISSION_MODE_CONFIG[mode] ?? PERMISSION_MODE_CONFIG.default!

Callers 1

onChangeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected