MCPcopy Create free account
hub / github.com/RioArisk/claudecode_api_RemoteControl / normalizeApprovalMode

Function normalizeApprovalMode

lib/logger.js:59–62  ·  view source on GitHub ↗
(mode)

Source from the content-addressed store, hash-verified

57}
58
59function normalizeApprovalMode(mode) {
60 const normalized = String(mode || '').toLowerCase();
61 return Object.prototype.hasOwnProperty.call(APPROVAL_MODE_ORDER, normalized) ? normalized : 'default';
62}
63
64function computeConnectedHighestApprovalMode() {
65 if (!state.wss) return 'default';

Calls

no outgoing calls

Tested by

no test coverage detected