const e=new Set([`off`,`ack`,`minimal`,`extensive`]);function t(t){if(t==null)return{kind:`missing`};if(typeof t!=`string`)return{kind:`invalid`};let n=t.trim();return n?e.has(n)?{kind:`ok`,value:n}:{kind:`invalid`}:{kind:`missing`}}function n(e){let n=t(e.value);switch(n.kind===`ok`?n.value:n.kind===`missing`?e.defaultLevel:e.invalidFallback){case`off`:return{level:`off`,ackEnabled:!1,agentReactionsEnabled:!1};case`ack`:return{level:`ack`,ackEnabled:!0,agentReactionsEnabled:!1};case`minimal`:return{level:`minimal`,ackEnabled:!1,agentReactionsEnabled:!0,agentReactionGuidance:`minimal`};case`extensive`:return{level:`extensive`,ackEnabled:!1,agentReactionsEnabled:!0,agentReactionGuidance:`extensive`};default:return{level:`minimal`,ackEnabled:!1,agentReactionsEnabled:!0,agentReactionGuidance:`minimal`}}}export{n as t};
