"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5938],{45:(e,t,l)=>{l.d(t,{default:()=>o});var a=l(12115),n={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},r=l(64250);let s=(0,a.createContext)({}),o=(0,a.forwardRef)((e,t)=>{var l,o,d;let{color:c,size:i,strokeWidth:u,absoluteStrokeWidth:m,className:h="",children:p,iconNode:f,...g}=e,{size:x=24,strokeWidth:b=2,absoluteStrokeWidth:j=!1,color:w="currentColor",className:k=""}=null!=(l=(0,a.useContext)(s))?l:{},v=(null!=m?m:j)?24*Number(null!=u?u:b)/Number(null!=i?i:x):null!=u?u:b;return(0,a.createElement)("svg",{ref:t,...n,width:null!=(o=null!=i?i:x)?o:n.width,height:null!=(d=null!=i?i:x)?d:n.height,stroke:null!=c?c:w,strokeWidth:v,className:(0,r.z)("lucide",k,h),...!p&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(g)&&{"aria-hidden":"true"},...g},[...f.map(e=>{let[t,l]=e;return(0,a.createElement)(t,l)}),...Array.isArray(p)?p:[p]])})},13185:(e,t,l)=>{l.d(t,{A:()=>o});var a=l(12115),n=l(64250);let r=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,l)=>l?l.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)};var s=l(45);let o=(e,t)=>{let l=(0,a.forwardRef)((l,o)=>{let{className:d,...c}=l;return(0,a.createElement)(s.default,{ref:o,iconNode:t,className:(0,n.z)("lucide-".concat(r(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),"lucide-".concat(e),d),...c})});return l.displayName=r(e),l}},34788:(e,t,l)=>{l.d(t,{A:()=>a});let a=(0,l(13185).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},64250:(e,t,l)=>{l.d(t,{z:()=>a});let a=function(){for(var e=arguments.length,t=Array(e),l=0;l<e;l++)t[l]=arguments[l];return t.filter((e,t,l)=>!!e&&""!==e.trim()&&l.indexOf(e)===t).join(" ").trim()}},85649:(e,t,l)=>{l.d(t,{A:()=>s});var a=l(95155),n=l(12115),r=l(34788);function s(e){let{open:t,onClose:l,eyebrow:s,title:o,tone:d="default",size:c="default",children:i}=e,u=n.useRef(null);return n.useEffect(()=>{let e=u.current;e&&(t&&!e.open&&("function"==typeof e.showModal?e.showModal():e.setAttribute("open","")),!t&&e.open&&e.close())},[t]),n.useEffect(()=>{let e=u.current;if(!e)return;let t=e=>{e.preventDefault(),l()};return e.addEventListener("cancel",t),()=>e.removeEventListener("cancel",t)},[l]),(0,a.jsx)("dialog",{ref:u,className:"agents-modal".concat("wide"===c?" agents-modal--wide":""),onClick:e=>{e.target===u.current&&l()},children:t?(0,a.jsxs)("div",{className:"agents-modal-card".concat("danger"===d?" agents-modal-card--danger":""),onClick:e=>e.stopPropagation(),children:[(0,a.jsxs)("header",{className:"agents-modal-head",children:[(0,a.jsxs)("div",{children:[s?(0,a.jsx)("span",{className:"admin-kicker",children:s}):null,(0,a.jsx)("h2",{children:o})]}),(0,a.jsx)("button",{type:"button",className:"agents-modal-close",onClick:l,"aria-label":"Close",children:(0,a.jsx)(r.A,{size:14})})]}),i]}):null})}},95938:(e,t,l)=>{l.r(t),l.d(t,{default:()=>r});var a=l(95155),n=l(85649);function r(e){let{open:t,busy:l,onConfirm:r,onCancel:s}=e;return(0,a.jsx)(n.A,{open:t,onClose:()=>!l&&(null==s?void 0:s()),eyebrow:"Trust mode",title:"Enable trust mode?",children:(0,a.jsxs)("div",{className:"agents-modal-form",children:[(0,a.jsx)("p",{className:"agents-modal-help",children:"The main agent will execute file writes, terminal commands, and process actions without per-call approval."}),(0,a.jsxs)("section",{className:"agents-modal-section",children:[(0,a.jsxs)("div",{className:"agents-modal-section-head",children:[(0,a.jsx)("span",{children:"Still blocked"}),(0,a.jsx)("small",{children:"These commands are always denied, even in trust mode."})]}),(0,a.jsxs)("div",{className:"agents-modal-chip-row",children:[(0,a.jsx)("code",{children:"sudo"}),(0,a.jsx)("code",{children:"rm -rf"}),(0,a.jsx)("code",{children:"git reset --hard"})]})]}),(0,a.jsx)("p",{className:"agents-modal-help",children:"You can flip back at any time."}),(0,a.jsxs)("footer",{className:"agents-modal-foot",children:[(0,a.jsx)("button",{type:"button",className:"admin-button secondary",onClick:s,disabled:l,children:"Cancel"}),(0,a.jsx)("button",{type:"button",className:"admin-button",onClick:r,disabled:l,autoFocus:!0,children:l?"Enabling…":"Enable trust mode"})]})]})})}}}]);