midsomar 0.1.8 → 0.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/package.json +1 -1
  2. package/web-ui/assets/ar-C4xsRFR0.js +1 -1
  3. package/web-ui/assets/ar-dmlRltPj.js +3 -3
  4. package/web-ui/assets/br-CS-UU6Fg.js +3 -3
  5. package/web-ui/assets/br-XyupthPW.js +1 -1
  6. package/web-ui/assets/bs-BW2PeAiy.js +1 -1
  7. package/web-ui/assets/bs-BjpweuBW.js +3 -3
  8. package/web-ui/assets/da-2MqhfWgT.js +3 -3
  9. package/web-ui/assets/da-CgNNle9H.js +1 -1
  10. package/web-ui/assets/de-CELw_bn8.js +1 -1
  11. package/web-ui/assets/de-CdqM0zME.js +3 -3
  12. package/web-ui/assets/dialog-connect-provider-DLnpNUTc.js +1 -1
  13. package/web-ui/assets/dialog-settings-C0ClHN8Q.js +1 -1
  14. package/web-ui/assets/es-DCGlYCXN.js +1 -1
  15. package/web-ui/assets/es-_-j_uksi.js +3 -3
  16. package/web-ui/assets/fr-DZbGGwqB.js +3 -3
  17. package/web-ui/assets/fr-Du5j-zoY.js +1 -1
  18. package/web-ui/assets/index-BfNxi3ev.js +11 -11
  19. package/web-ui/assets/index-wflYMX4p.js +1 -1
  20. package/web-ui/assets/ja-B9nKmZ4y.js +3 -3
  21. package/web-ui/assets/ja-iJh2cVB-.js +1 -1
  22. package/web-ui/assets/ko-C92hX257.js +1 -1
  23. package/web-ui/assets/ko-Dq1_Aq_h.js +3 -3
  24. package/web-ui/assets/markdown-shiki.worker-sTYREXj-.js +2 -2
  25. package/web-ui/assets/no-CsX2bvW2.js +1 -1
  26. package/web-ui/assets/no-lkr3H0wq.js +3 -3
  27. package/web-ui/assets/opencode-D7rBuNi7.js +1 -1
  28. package/web-ui/assets/pl-U1SU7oID.js +1 -1
  29. package/web-ui/assets/pl-sy_5meMH.js +3 -3
  30. package/web-ui/assets/ru-CkmmQ1_k.js +1 -1
  31. package/web-ui/assets/ru-a87EhzgL.js +3 -3
  32. package/web-ui/assets/th-BWKOZ0j_.js +1 -1
  33. package/web-ui/assets/th-BdqWeqlh.js +3 -3
  34. package/web-ui/assets/tr-BiDFBY-2.js +3 -3
  35. package/web-ui/assets/tr-Ds4_hniB.js +1 -1
  36. package/web-ui/assets/uk-BVQd30TS.js +3 -3
  37. package/web-ui/assets/uk-fqr0bcE9.js +1 -1
  38. package/web-ui/assets/zh-B268Sls8.js +1 -1
  39. package/web-ui/assets/zh-BPUvYPSS.js +3 -3
  40. package/web-ui/assets/zht-Br909_dL.js +1 -1
  41. package/web-ui/assets/zht-zA5x0W7N.js +3 -3
  42. package/web-ui/favicon-v3.ico +0 -0
  43. package/web-ui/favicon-v3.svg +0 -0
  44. package/web-ui/favicon.ico +0 -0
  45. package/web-ui/favicon.svg +0 -0
  46. package/web-ui/index.html +5 -5
  47. package/web-ui/midsomar_black.png +0 -0
  48. package/web-ui/midsomar_logo.png +0 -0
  49. package/web-ui/midsomar_white.png +0 -0
  50. package/web-ui/site.webmanifest +2 -2
@@ -1,3 +1,3 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-wflYMX4p.js","assets/index-BfNxi3ev.js","assets/index-S3QimprQ.css","assets/row-DA4cIOhp.js","assets/LROKH5N7-D8CK0ENS.js","assets/row-DVVVLbFk.css","assets/settings-keybinds-BOa6QxJ6.js","assets/list-FiQEDby0.js","assets/dialog-connect-provider-DLnpNUTc.js","assets/index-Bd5IF--R.css"])))=>i.map(i=>d[i]);
2
- import{co as Oe,b_ as J,c5 as Ve,c6 as _e,bV as pe,c4 as je,ck as he,aD as z,aQ as Me,ch as $e,cg as ye,aI as ce,bm as Re,b6 as r,au as e,a2 as w,bL as d,af as Ze,a9 as Ke,B as q,T as K,ba as W,aa as se,bB as Ge,bC as qe,be as Ue,bf as Qe,bM as He,bN as We,bc as ge,ac as Xe,I as j,bD as Ye,bg as Je,bO as et,S as tt,bv as rt,bZ as me,l as G,Y as xe,V as te,Z as be,o as Y,$ as nt,a0 as st,y as it,Q as lt,cf as at,c9 as ot,bw as le,N as ie,a8 as re,bG as ne,c1 as ct,bX as gt,u as dt,ce as ut,W as pt,X as ht,aK as mt,a7 as C,bK as vt,b as ft}from"./index-BfNxi3ev.js";import{S as $}from"./switch-CVS6td1r.js";import{u as xt,a as E,S as bt}from"./settings-keybinds-BOa6QxJ6.js";import{L as wt,u as _t,a as $t,D as yt}from"./dialog-connect-provider-DLnpNUTc.js";import"./LROKH5N7-D8CK0ENS.js";import"./list-FiQEDby0.js";var St=d("<div data-action=settings-new-layout-designs>"),de=d('<div class="flex flex-col gap-1">'),Ct=d('<span class="flex items-center gap-2">'),kt=d("<div data-action=settings-auto-accept-permissions>"),Pt=d("<div data-action=settings-feed-reasoning-summaries>"),Tt=d("<div data-action=settings-feed-shell-tool-parts-expanded>"),Dt=d("<div data-action=settings-feed-edit-tool-parts-expanded>"),Ft=d("<div data-action=settings-show-file-tree>"),It=d("<div data-action=settings-show-navigation>"),zt=d("<div data-action=settings-show-search>"),Et=d("<div data-action=settings-show-status>"),At=d("<div data-action=settings-show-custom-agents>"),H=d('<div class="flex flex-col gap-1"><h3 class="text-14-medium text-text-strong pb-2">'),ue=d('<div class="w-full sm:w-[220px]">'),Nt=d("<div data-action=settings-notifications-agent>"),Lt=d("<div data-action=settings-notifications-permissions>"),Bt=d("<div data-action=settings-notifications-errors>"),Ot=d("<div data-action=settings-release-notes>"),Vt=d("<div data-action=settings-pinch-zoom>"),jt=d("<div data-action=settings-wayland>"),Mt=d("<span class=text-text-weak>"),Rt=d('<div class="flex items-center gap-2"><span>'),Zt=d('<div class="flex flex-col h-full overflow-y-auto no-scrollbar px-4 pb-10 sm:px-10 sm:pb-10"><div class="sticky top-0 z-10 bg-[linear-gradient(to_bottom,var(--surface-stronger-non-alpha)_calc(100%_-_24px),transparent)]"><div class="flex flex-col gap-1 pt-6 pb-8"><h2 class="text-16-medium text-text-strong"></h2></div></div><div class="flex flex-col gap-8 w-full">'),Kt=d('<div class="flex flex-wrap items-center gap-4 py-3 border-b border-border-weak-base last:border-none sm:flex-nowrap"><div class="flex min-w-0 flex-1 flex-col gap-0.5"><span class="text-14-medium text-text-strong"></span><span class="text-12-regular text-text-weak"></span></div><div class="flex w-full justify-end sm:w-auto sm:shrink-0">');let M={cleanup:void 0,timeout:void 0,run:0};const Se=()=>{M.run+=1,M.cleanup&&M.cleanup(),clearTimeout(M.timeout),M.cleanup=void 0},we=i=>{if(Se(),!i)return;const t=++M.run;M.timeout=setTimeout(()=>{rt(i).then(a=>{if(M.run!==t){a?.();return}M.cleanup=a})},100)},Gt=()=>{const i=Oe(),t=J(),a=Ve(),c=_e(),v=pe(),m=je(),l=he(),_=xt(),y=z(()=>c.platform==="desktop"&&c.os==="linux"),k=z(()=>Me(m.dir)),P=z(()=>{const o=k();return o?m.id?a.isAutoAccepting(m.id,o):a.isAutoAcceptingDirectory(o):!1}),T=o=>{const s=k();if(s){if(!m.id){if(a.isAutoAcceptingDirectory(s)===o)return;a.toggleAutoAcceptDirectory(s);return}if(o){a.enableAutoAccept(m.id,s);return}a.disableAutoAccept(m.id,s)}},A=z(()=>c.platform==="desktop"),N=z(()=>i.ids().map(o=>({id:o,name:i.name(o)}))),F=$e(),L=ye(),[O]=ce(async()=>{const o=L();return await o.protocol==="v1"?(await o.client.pty.shells()).data??[]:[]},{initialValue:[]}),[U,{refetch:h}]=ce(()=>!!(y()&&c.getDisplayBackend),()=>Promise.resolve(c.getDisplayBackend?.()??null).catch(()=>null),{initialValue:null}),[u,{mutate:b}]=ce(()=>!!(A()&&c.getPinchZoomEnabled),()=>Promise.resolve(c.getPinchZoomEnabled?.()??!1).catch(()=>!1),{initialValue:!1});Re(()=>{i.loadThemes()});const B={id:"auto",value:"",label:t.t("settings.general.row.shell.autoDefault")},R=z(()=>F().data.config.shell??""),Z=z(()=>{const o=O.latest,s=F().data.config.shell,n=new Map;for(const g of o)n.set(g.name,(n.get(g.name)||0)+1);const p=[B,...o.map(g=>{const ve=(n.get(g.name)||0)>1,fe=ve?g.path:g.name,Be=g.acceptable?fe:`${fe} (${t.t("settings.general.row.shell.terminalOnly")})`;return{id:g.path,value:ve?g.path:g.name,label:Be}})];return s&&!p.some(g=>g.value===s)&&p.push({id:s,value:s,label:s}),p}),ae=o=>{const s=c.setDisplayBackend?.(o?"wayland":"auto");s&&s.finally(()=>{h()})},X=o=>{b(o);const s=c.setPinchZoomEnabled?.(o);s&&s.catch(()=>b(!o))},ee=z(()=>[{value:"system",label:t.t("theme.scheme.system")},{value:"light",label:t.t("theme.scheme.light")},{value:"dark",label:t.t("theme.scheme.dark")}]),x=z(()=>t.locales.map(o=>({value:o,label:t.label(o)}))),D={id:"none",label:"sound.option.none"},S=[D,...tt],I=()=>Je(l.appearance.font()),V=()=>Ye(l.appearance.uiFont()),oe=()=>et(l.appearance.terminalFont()),Q=(o,s,n,p)=>({options:S,current:o()?S.find(g=>g.id===s())??D:D,value:g=>g.id,label:g=>t.t(g.label),onHighlight:g=>{g&&we(g.id==="none"?void 0:g.id)},onSelect:g=>{if(g){if(g.id==="none"){n(!1),Se();return}n(!0),p(g.id),we(g.id)}},variant:"secondary",size:"small",triggerVariant:"settings"}),Te=()=>(()=>{var o=de();return r(o,e(E,{get children(){return e(f,{get title(){return(()=>{var s=Ct();return r(s,()=>t.t("settings.general.row.newInterface.title"),null),r(s,e(Ke,{variant:"accent",get children(){return t.t("settings.general.row.newInterface.badge")}}),null),s})()},get description(){return t.t("settings.general.row.newInterface.description")},get children(){var s=St();return r(s,e($,{get checked(){return l.general.newLayoutDesigns()},onChange:n=>{l.general.setNewLayoutDesigns(n),n&&Ze(()=>import("./index-wflYMX4p.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])).then(p=>{v.show(()=>e(p.DialogSettings,{}))})}})),s}})}})),o})(),De=()=>(()=>{var o=de();return r(o,e(E,{get children(){return e(f,{get title(){return t.t("settings.general.row.newInterfaceNotice.title")},get description(){return t.t("settings.general.row.newInterfaceNotice.description")},get children(){return e(q,{size:"small",variant:"ghost",get onClick(){return l.general.dismissNewInterfaceNotice},get children(){return t.t("settings.general.row.newInterfaceNotice.dismiss")}})}})}})),o})(),Fe=()=>(()=>{var o=de();return r(o,e(E,{get children(){return[e(f,{get title(){return t.t("settings.general.row.language.title")},get description(){return t.t("settings.general.row.language.description")},get children(){return e(K,{"data-action":"settings-language",get options(){return x()},get current(){return x().find(s=>s.value===t.locale())},value:s=>s.value,label:s=>s.label,onSelect:s=>s&&t.setLocale(s.value),variant:"secondary",size:"small",triggerVariant:"settings"})}}),e(f,{get title(){return t.t("command.permissions.autoaccept.enable")},get description(){return t.t("toast.permissions.autoaccept.on.description")},get children(){var s=kt();return r(s,e($,{get checked(){return P()},get disabled(){return!k()},onChange:T})),s}}),e(f,{get title(){return t.t("settings.general.row.shell.title")},get description(){return t.t("settings.general.row.shell.description")},get children(){return e(K,{"data-action":"settings-shell",get options(){return Z()},get current(){return Z().find(s=>s.value===R())??B},value:s=>s.id,label:s=>s.label,onSelect:s=>{s&&s.value!==R()&&F().updateConfig({shell:s.value})},variant:"secondary",size:"small",triggerVariant:"settings",triggerStyle:{"min-width":"180px"}})}}),e(f,{get title(){return t.t("settings.general.row.reasoningSummaries.title")},get description(){return t.t("settings.general.row.reasoningSummaries.description")},get children(){var s=Pt();return r(s,e($,{get checked(){return l.general.showReasoningSummaries()},onChange:n=>l.general.setShowReasoningSummaries(n)})),s}}),e(f,{get title(){return t.t("settings.general.row.shellToolPartsExpanded.title")},get description(){return t.t("settings.general.row.shellToolPartsExpanded.description")},get children(){var s=Tt();return r(s,e($,{get checked(){return l.general.shellToolPartsExpanded()},onChange:n=>l.general.setShellToolPartsExpanded(n)})),s}}),e(f,{get title(){return t.t("settings.general.row.editToolPartsExpanded.title")},get description(){return t.t("settings.general.row.editToolPartsExpanded.description")},get children(){var s=Dt();return r(s,e($,{get checked(){return l.general.editToolPartsExpanded()},onChange:n=>l.general.setEditToolPartsExpanded(n)})),s}})]}})),o})(),Ie=()=>(()=>{var o=H(),s=o.firstChild;return r(s,()=>t.t("settings.general.section.advanced")),r(o,e(E,{get children(){return[e(f,{get title(){return t.t("settings.general.row.showFileTree.title")},get description(){return t.t("settings.general.row.showFileTree.description")},get children(){var n=Ft();return r(n,e($,{get checked(){return l.general.showFileTree()},onChange:p=>l.general.setShowFileTree(p)})),n}}),e(f,{get title(){return t.t("settings.general.row.showNavigation.title")},get description(){return t.t("settings.general.row.showNavigation.description")},get children(){var n=It();return r(n,e($,{get checked(){return l.general.showNavigation()},onChange:p=>l.general.setShowNavigation(p)})),n}}),e(f,{get title(){return t.t("settings.general.row.showSearch.title")},get description(){return t.t("settings.general.row.showSearch.description")},get children(){var n=zt();return r(n,e($,{get checked(){return l.general.showSearch()},onChange:p=>l.general.setShowSearch(p)})),n}}),e(f,{get title(){return t.t("settings.general.row.showStatus.title")},get description(){return t.t("settings.general.row.showStatus.description")},get children(){var n=Et();return r(n,e($,{get checked(){return l.general.showStatus()},onChange:p=>l.general.setShowStatus(p)})),n}}),e(f,{get title(){return t.t("settings.general.row.showCustomAgents.title")},get description(){return t.t("settings.general.row.showCustomAgents.description")},get children(){var n=At();return r(n,e($,{get checked(){return l.general.showCustomAgents()},onChange:p=>l.general.setShowCustomAgents(p)})),n}})]}}),null),o})(),ze=()=>(()=>{var o=H(),s=o.firstChild;return r(s,()=>t.t("settings.general.section.appearance")),r(o,e(E,{get children(){return[e(f,{get title(){return t.t("settings.general.row.colorScheme.title")},get description(){return t.t("settings.general.row.colorScheme.description")},get children(){return e(K,{"data-action":"settings-color-scheme",get options(){return ee()},get current(){return ee().find(n=>n.value===i.colorScheme())},value:n=>n.value,label:n=>n.label,onSelect:n=>n&&i.setColorScheme(n.value),variant:"secondary",size:"small",triggerVariant:"settings",triggerStyle:{"min-width":"220px"}})}}),e(f,{get title(){return t.t("settings.general.row.theme.title")},get description(){return[W(()=>t.t("settings.general.row.theme.description"))," ",e(wt,{href:"https://opencode.ai/docs/themes/",get children(){return t.t("common.learnMore")}})]},get children(){return e(K,{"data-action":"settings-theme",get options(){return N()},get current(){return N().find(n=>n.id===i.themeId())},value:n=>n.id,label:n=>n.name,onSelect:n=>{n&&i.setTheme(n.id)},variant:"secondary",size:"small",triggerVariant:"settings"})}}),e(f,{get title(){return t.t("settings.general.row.uiFont.title")},get description(){return t.t("settings.general.row.uiFont.description")},get children(){var n=ue();return r(n,e(se,{"data-action":"settings-ui-font",get label(){return t.t("settings.general.row.uiFont.title")},hideLabel:!0,type:"text",get value(){return V()},onChange:p=>l.appearance.setUIFont(p),placeholder:Ge,spellcheck:!1,autocorrect:"off",autocomplete:"off",autocapitalize:"off",class:"text-12-regular",get style(){return{"font-family":qe(l.appearance.uiFont())}}})),n}}),e(f,{get title(){return t.t("settings.general.row.font.title")},get description(){return t.t("settings.general.row.font.description")},get children(){var n=ue();return r(n,e(se,{"data-action":"settings-code-font",get label(){return t.t("settings.general.row.font.title")},hideLabel:!0,type:"text",get value(){return I()},onChange:p=>l.appearance.setFont(p),placeholder:Ue,spellcheck:!1,autocorrect:"off",autocomplete:"off",autocapitalize:"off",class:"text-12-regular",get style(){return{"font-family":Qe(l.appearance.font())}}})),n}}),e(f,{get title(){return t.t("settings.general.row.terminalFont.title")},get description(){return t.t("settings.general.row.terminalFont.description")},get children(){var n=ue();return r(n,e(se,{"data-action":"settings-terminal-font",get label(){return t.t("settings.general.row.terminalFont.title")},hideLabel:!0,type:"text",get value(){return oe()},onChange:p=>l.appearance.setTerminalFont(p),placeholder:He,spellcheck:!1,autocorrect:"off",autocomplete:"off",autocapitalize:"off",class:"text-12-regular",get style(){return{"font-family":We(l.appearance.terminalFont())}}})),n}})]}}),null),o})(),Ee=()=>(()=>{var o=H(),s=o.firstChild;return r(s,()=>t.t("settings.general.section.notifications")),r(o,e(E,{get children(){return[e(f,{get title(){return t.t("settings.general.notifications.agent.title")},get description(){return t.t("settings.general.notifications.agent.description")},get children(){var n=Nt();return r(n,e($,{get checked(){return l.notifications.agent()},onChange:p=>l.notifications.setAgent(p)})),n}}),e(f,{get title(){return t.t("settings.general.notifications.permissions.title")},get description(){return t.t("settings.general.notifications.permissions.description")},get children(){var n=Lt();return r(n,e($,{get checked(){return l.notifications.permissions()},onChange:p=>l.notifications.setPermissions(p)})),n}}),e(f,{get title(){return t.t("settings.general.notifications.errors.title")},get description(){return t.t("settings.general.notifications.errors.description")},get children(){var n=Bt();return r(n,e($,{get checked(){return l.notifications.errors()},onChange:p=>l.notifications.setErrors(p)})),n}})]}}),null),o})(),Ae=()=>(()=>{var o=H(),s=o.firstChild;return r(s,()=>t.t("settings.general.section.sounds")),r(o,e(E,{get children(){return[e(f,{get title(){return t.t("settings.general.sounds.agent.title")},get description(){return t.t("settings.general.sounds.agent.description")},get children(){return e(K,ge({"data-action":"settings-sounds-agent"},()=>Q(()=>l.sounds.agentEnabled(),()=>l.sounds.agent(),n=>l.sounds.setAgentEnabled(n),n=>l.sounds.setAgent(n))))}}),e(f,{get title(){return t.t("settings.general.sounds.permissions.title")},get description(){return t.t("settings.general.sounds.permissions.description")},get children(){return e(K,ge({"data-action":"settings-sounds-permissions"},()=>Q(()=>l.sounds.permissionsEnabled(),()=>l.sounds.permissions(),n=>l.sounds.setPermissionsEnabled(n),n=>l.sounds.setPermissions(n))))}}),e(f,{get title(){return t.t("settings.general.sounds.errors.title")},get description(){return t.t("settings.general.sounds.errors.description")},get children(){return e(K,ge({"data-action":"settings-sounds-errors"},()=>Q(()=>l.sounds.errorsEnabled(),()=>l.sounds.errors(),n=>l.sounds.setErrorsEnabled(n),n=>l.sounds.setErrors(n))))}})]}}),null),o})(),Ne=()=>(()=>{var o=H(),s=o.firstChild;return r(s,()=>t.t("settings.general.section.updates")),r(o,e(E,{get children(){return[e(f,{get title(){return t.t("settings.general.row.releaseNotes.title")},get description(){return t.t("settings.general.row.releaseNotes.description")},get children(){var n=Ot();return r(n,e($,{get checked(){return l.general.releaseNotes()},onChange:p=>l.general.setReleaseNotes(p)})),n}}),e(f,{get title(){return t.t("settings.updates.row.check.title")},get description(){return t.t("settings.updates.row.check.description")},get children(){return e(q,{size:"small",variant:"secondary",get disabled(){return!_.action().run},get onClick(){return _.run},get children(){return t.t(_.action().label)}})}})]}}),null),o})(),Le=()=>e(w,{get when(){return A()},get children(){var o=H(),s=o.firstChild;return r(s,()=>t.t("settings.general.section.display")),r(o,e(E,{get children(){return[e(f,{get title(){return t.t("settings.general.row.pinchZoom.title")},get description(){return t.t("settings.general.row.pinchZoom.description")},get children(){var n=Vt();return r(n,e($,{get checked(){return u.latest},onChange:X})),n}}),e(w,{get when(){return y()},get children(){return e(f,{get title(){return(()=>{var n=Rt(),p=n.firstChild;return r(p,()=>t.t("settings.general.row.wayland.title")),r(n,e(Xe,{get value(){return t.t("settings.general.row.wayland.tooltip")},placement:"top",get children(){var g=Mt();return r(g,e(j,{name:"help",size:"small"})),g}}),null),n})()},get description(){return t.t("settings.general.row.wayland.description")},get children(){var n=jt();return r(n,e($,{get checked(){return U.latest==="wayland"},onChange:ae})),n}})}})]}}),null),o}});return(()=>{var o=Zt(),s=o.firstChild,n=s.firstChild,p=n.firstChild,g=s.nextSibling;return r(p,()=>t.t("settings.tab.general")),r(g,e(w,{get when(){return l.general.layoutTransitionAvailable()},get children(){return e(Te,{})}}),null),r(g,e(w,{get when(){return l.general.newInterfaceNoticeVisible()},get children(){return e(De,{})}}),null),r(g,e(Fe,{}),null),r(g,e(ze,{}),null),r(g,e(Ee,{}),null),r(g,e(Ae,{}),null),r(g,e(Ne,{}),null),r(g,e(Le,{}),null),r(g,e(w,{get when(){return A()},get children(){return e(Ie,{})}}),null),o})()},f=i=>(()=>{var t=Kt(),a=t.firstChild,c=a.firstChild,v=c.nextSibling,m=a.nextSibling;return r(c,()=>i.title),r(v,()=>i.description),r(m,()=>i.children),t})();function Ce(i){const t=me(),a=he();return e(w,{get when(){return a.general.newLayoutDesigns()},get fallback(){return i.children},get children(){return e(w,{get when(){return t.settings.server.selected()},children:c=>e(qt,{get server(){return c()},get children(){return i.children}})})}})}function qt(i){const t=me(),a=()=>t.ensureServerCtx(i.server);return e(lt,{get client(){return a().queryClient},get children(){return e(nt,{server:()=>i.server,get children(){return e(st,{get children(){return e(it,{get children(){return i.children}})}})}})}})}function ke(){const i=me(),t=he(),a=z(()=>t.general.newLayoutDesigns()?i.settings.server.selected():void 0);return e(w,{get when(){return a()},children:c=>e(G,{gutter:4,placement:"bottom-end",get children(){return[e(G.Trigger,{as:q,variant:"secondary",size:"large",class:"h-8 max-w-[260px] gap-2 px-2 py-1.5 data-[expanded]:bg-surface-base-active",get children(){return[e(xe,{get health(){return i.servers.health[te.key(c())]}}),e(be,{get conn(){return c()},get status(){return i.servers.health[te.key(c())]},class:"flex items-center gap-2 min-w-0 flex-1",nameClass:"text-14-regular text-text-base truncate",versionClass:"hidden"}),e(j,{name:"chevron-down",size:"small",class:"text-icon-weak shrink-0"})]}}),e(G.Portal,{get children(){return e(G.Content,{class:"w-[320px] mt-1 [&_[data-slot=dropdown-menu-radio-item]]:pl-2 [&_[data-slot=dropdown-menu-radio-item]]:pr-2",get children(){return e(G.RadioGroup,{get value(){return i.settings.server.key},onChange:v=>{typeof v=="string"&&i.settings.server.set(te.Key.make(v))},get children(){return e(Y,{get each(){return i.servers.list()},children:v=>{const m=te.key(v),l=()=>i.servers.health[m]?.healthy===!1;return e(G.RadioItem,{value:m,get disabled(){return l()},get children(){return[e(xe,{get health(){return i.servers.health[m]}}),e(be,{conn:v,get dimmed(){return l()},get status(){return i.servers.health[m]},class:"flex items-center gap-2 min-w-0 flex-1",nameClass:"text-14-regular text-text-base truncate",versionClass:"text-12-regular text-text-weak truncate"}),e(G.ItemIndicator,{get children(){return e(j,{name:"check-small",size:"small",class:"text-icon-weak"})}})]}})}})}})}})}})]}})})}var Ut=d('<div class="flex items-center justify-between gap-4 min-h-16 border-b border-border-weak-base last:border-none flex-wrap py-3"data-component=custom-provider-section><div class="flex flex-col min-w-0"><div class="flex flex-wrap items-center gap-x-3 gap-y-1"><span class="text-14-medium text-text-strong"></span></div><span class="text-12-regular text-text-weak pl-8">'),Qt=d('<div class="flex flex-col h-full overflow-y-auto no-scrollbar px-4 pb-10 sm:px-10 sm:pb-10"><div class="sticky top-0 z-10 bg-[linear-gradient(to_bottom,var(--surface-stronger-non-alpha)_calc(100%_-_24px),transparent)]"><div class="flex items-center justify-between gap-4 pt-6 pb-8 max-w-[720px]"><h2 class="text-16-medium text-text-strong"></h2></div></div><div class="flex flex-col gap-8 max-w-[720px]"><div class="flex flex-col gap-1"data-component=connected-providers-section><h3 class="text-14-medium text-text-strong pb-2"></h3></div><div class="flex flex-col gap-1"><h3 class="text-14-medium text-text-strong pb-2">'),Ht=d('<div class="py-4 text-14-regular text-text-weak">'),Wt=d('<div class="group flex flex-wrap items-center justify-between gap-4 min-h-16 py-3 border-b border-border-weak-base last:border-none"><div class="flex items-center gap-3 min-w-0"><span class="text-14-medium text-text-strong truncate">'),Xt=d('<span class="text-14-regular text-text-base opacity-0 group-hover:opacity-100 transition-opacity duration-200 pr-3 cursor-default">'),Yt=d('<div class="flex flex-wrap items-center justify-between gap-4 min-h-16 py-3 border-b border-border-weak-base last:border-none"><div class="flex flex-col min-w-0"><div class="flex items-center gap-x-3"><span class="text-14-medium text-text-strong">'),Jt=d('<span class="text-12-regular text-text-weak pl-8">');const er=[{match:i=>i==="opencode",key:"dialog.provider.opencode.note"},{match:i=>i==="opencode-go",key:"dialog.provider.opencodeGo.tagline"},{match:i=>i==="anthropic",key:"dialog.provider.anthropic.note"},{match:i=>i.startsWith("github-copilot"),key:"dialog.provider.copilot.note"},{match:i=>i==="openai",key:"dialog.provider.openai.note"},{match:i=>i==="google",key:"dialog.provider.google.note"},{match:i=>i==="openrouter",key:"dialog.provider.openrouter.note"},{match:i=>i==="vercel",key:"dialog.provider.vercel.note"}],tr=i=>e(Ce,{get children(){return e(rr,{get onBack(){return i.onBack}})}}),rr=i=>{const t=pe(),a=J(),c=ye(),v=at(),m=$e(),l=ot(()=>{}),_=_t({onBack:i.onBack}),y=h=>{_.select(h),t.show(()=>e(yt,{controller:_}))},k=z(()=>l.connected().filter(h=>h.id!=="opencode"||Object.values(h.models).find(u=>u.cost?.input))),P=z(()=>{const h=new Set(k().map(b=>b.id)),u=l.popular().filter(b=>!h.has(b.id)).slice();return u.sort((b,B)=>le.indexOf(b.id)-le.indexOf(B.id)),u}),T=h=>{if(!("source"in h))return;const u=h.source;if(u==="env"||u==="api"||u==="config"||u==="custom")return u},A=h=>{const u=T(h);return u==="env"?a.t("settings.providers.tag.environment"):u==="api"?a.t("provider.connect.method.apiKey"):u==="config"?L(h.id)?a.t("settings.providers.tag.custom"):a.t("settings.providers.tag.config"):u==="custom"?a.t("settings.providers.tag.custom"):a.t("settings.providers.tag.other")},N=h=>T(h)!=="env"&&(v()==="v1"||!L(h.id)),F=h=>er.find(u=>u.match(h))?.key,L=h=>{const u=m().data.config.provider?.[h];return!(!u||u.npm!=="@ai-sdk/openai-compatible"||!u.models||Object.keys(u.models).length===0)},O=async(h,u)=>{if(v()!=="v1")return;const b=m().data.config.disabled_providers??[],B=b.includes(h)?b:[...b,h];m().set("config","disabled_providers",B),await m().updateConfig({disabled_providers:B}).then(()=>{ne({variant:"success",icon:"circle-check",title:a.t("provider.disconnect.toast.disconnected.title",{provider:u}),description:a.t("provider.disconnect.toast.disconnected.description",{provider:u})})}).catch(R=>{m().set("config","disabled_providers",b);const Z=R instanceof Error?R.message:String(R);ne({title:a.t("common.requestFailed"),description:Z})})},U=async(h,u)=>{if(L(h)){await c().client.auth.remove({providerID:h}).catch(()=>{}),await O(h,u);return}await c().client.auth.remove({providerID:h}).then(async()=>{await c().client.global.dispose(),ne({variant:"success",icon:"circle-check",title:a.t("provider.disconnect.toast.disconnected.title",{provider:u}),description:a.t("provider.disconnect.toast.disconnected.description",{provider:u})})}).catch(b=>{const B=b instanceof Error?b.message:String(b);ne({title:a.t("common.requestFailed"),description:B})})};return(()=>{var h=Qt(),u=h.firstChild,b=u.firstChild,B=b.firstChild,R=u.nextSibling,Z=R.firstChild,ae=Z.firstChild,X=Z.nextSibling,ee=X.firstChild;return r(B,()=>a.t("settings.providers.title")),r(b,e(ke,{}),null),r(ae,()=>a.t("settings.providers.section.connected")),r(Z,e(E,{get children(){return e(w,{get when(){return k().length>0},get fallback(){return(()=>{var x=Ht();return r(x,()=>a.t("settings.providers.connected.empty")),x})()},get children(){return e(Y,{get each(){return k()},children:x=>(()=>{var D=Wt(),S=D.firstChild,I=S.firstChild;return r(S,e(ie,{get id(){return x.id},class:"size-5 shrink-0 icon-strong-base"}),I),r(I,()=>x.name),r(S,e(re,{get children(){return A(x)}}),null),r(D,e(w,{get when(){return N(x)},get fallback(){return(()=>{var V=Xt();return r(V,()=>a.t("settings.providers.connected.environmentDescription")),V})()},get children(){return e(q,{size:"large",variant:"ghost",onClick:()=>void U(x.id,x.name),get children(){return a.t("common.disconnect")}})}}),null),D})()})}})}}),null),r(ee,()=>a.t("settings.providers.section.popular")),r(X,e(E,{get children(){return[e(Y,{get each(){return P()},children:x=>(()=>{var D=Yt(),S=D.firstChild,I=S.firstChild,V=I.firstChild;return r(I,e(ie,{get id(){return x.id},class:"size-5 shrink-0 icon-strong-base"}),V),r(V,()=>x.name),r(I,e(w,{get when(){return x.id==="opencode"},get children(){return e(re,{get children(){return a.t("dialog.provider.tag.recommended")}})}}),null),r(I,e(w,{get when(){return x.id==="opencode-go"},get children(){return e(re,{get children(){return a.t("dialog.provider.tag.recommended")}})}}),null),r(S,e(w,{get when(){return F(x.id)},children:oe=>(()=>{var Q=Jt();return r(Q,()=>a.t(oe())),Q})()}),null),r(D,e(q,{size:"large",variant:"secondary",icon:"plus-small",onClick:()=>y(x.id),get children(){return a.t("common.connect")}}),null),D})()}),e(w,{get when(){return v()==="v1"},get children(){var x=Ut(),D=x.firstChild,S=D.firstChild,I=S.firstChild,V=S.nextSibling;return r(S,e(ie,{id:"synthetic",class:"size-5 shrink-0 icon-strong-base"}),I),r(I,()=>a.t("provider.custom.title")),r(S,e(re,{get children(){return a.t("settings.providers.tag.custom")}}),null),r(V,()=>a.t("settings.providers.custom.description")),r(x,e(q,{size:"large",variant:"secondary",icon:"plus-small",onClick:()=>{t.show(()=>e($t,{get onBack(){return t.close}}))},get children(){return a.t("common.connect")}}),null),x}})]}}),null),r(X,e(q,{variant:"ghost",class:"px-0 py-0 mt-5 text-14-medium text-text-interactive-base text-left justify-start hover:bg-transparent active:bg-transparent",onClick:()=>y(),get children(){return a.t("dialog.provider.viewAll")}}),null),h})()};var Pe=d('<div class="flex flex-col items-center justify-center py-12 text-center"><span class="text-14-regular text-text-weak">'),nr=d('<span class="text-14-regular text-text-strong mt-1">&quot;<!>&quot;'),sr=d('<div class="flex flex-col h-full overflow-y-auto no-scrollbar px-4 pb-10 sm:px-10 sm:pb-10"><div class="sticky top-0 z-10 bg-[linear-gradient(to_bottom,var(--surface-stronger-non-alpha)_calc(100%_-_24px),transparent)]"><div class="flex flex-col gap-4 pt-6 pb-6 max-w-[720px]"><div class="flex items-center justify-between gap-4"><h2 class="text-16-medium text-text-strong"></h2></div><div class="flex items-center gap-2 px-3 h-9 rounded-lg bg-surface-base"></div></div></div><div class="flex flex-col gap-8 max-w-[720px]">'),ir=d('<div class="flex flex-col gap-1"><div class="flex items-center gap-2 pb-2"><span class="text-14-medium text-text-strong">'),lr=d('<div class="flex flex-wrap items-center justify-between gap-4 py-3 border-b border-border-weak-base last:border-none"><div class=min-w-0><span class="text-14-regular text-text-strong truncate block"></span></div><div class=flex-shrink-0>');const ar=i=>(()=>{var t=Pe(),a=t.firstChild;return r(a,()=>i.label),t})(),or=i=>(()=>{var t=Pe(),a=t.firstChild;return r(a,()=>i.message),r(t,e(w,{get when(){return i.filter},get children(){var c=nr(),v=c.firstChild,m=v.nextSibling;return m.nextSibling,r(c,()=>i.filter,m),c}}),null),t})(),cr=()=>e(Ce,{get children(){return e(gr,{})}}),gr=()=>{const i=J(),t=ct(),a=gt({items:c=>t.list(),key:c=>`${c.provider.id}:${c.id}`,filterKeys:["provider.name","name","id"],sortBy:(c,v)=>c.name.localeCompare(v.name),groupBy:c=>c.provider.id,sortGroupsBy:(c,v)=>{const m=le.indexOf(c.category),l=le.indexOf(v.category),_=m>=0,y=l>=0;if(_&&!y)return-1;if(!_&&y)return 1;if(_&&y)return m-l;const k=c.items[0].provider.name,P=v.items[0].provider.name;return k.localeCompare(P)}});return(()=>{var c=sr(),v=c.firstChild,m=v.firstChild,l=m.firstChild,_=l.firstChild,y=l.nextSibling,k=v.nextSibling;return r(_,()=>i.t("settings.models.title")),r(l,e(ke,{}),null),r(y,e(j,{name:"magnifying-glass",class:"text-icon-weak-base flex-shrink-0"}),null),r(y,e(se,{variant:"ghost",type:"text",get value(){return a.filter()},get onChange(){return a.onInput},get placeholder(){return i.t("dialog.model.search.placeholder")},spellcheck:!1,autocorrect:"off",autocomplete:"off",autocapitalize:"off",class:"flex-1"}),null),r(y,e(w,{get when(){return a.filter()},get children(){return e(dt,{icon:"circle-x",variant:"ghost",get onClick(){return a.clear}})}}),null),r(k,e(w,{get when(){return!a.grouped.loading},get fallback(){return e(ar,{get label(){return`${i.t("common.loading")}${i.t("common.loading.ellipsis")}`}})},get children(){return e(w,{get when(){return a.flat().length>0},get fallback(){return e(or,{get message(){return i.t("dialog.model.empty")},get filter(){return a.filter()}})},get children(){return e(Y,{get each(){return a.grouped.latest},children:P=>(()=>{var T=ir(),A=T.firstChild,N=A.firstChild;return r(A,e(ie,{get id(){return P.category},class:"size-5 shrink-0 icon-strong-base"}),N),r(N,()=>P.items[0].provider.name),r(T,e(E,{get children(){return e(Y,{get each(){return P.items},children:F=>{const L={providerID:F.provider.id,modelID:F.id};return(()=>{var O=lr(),U=O.firstChild,h=U.firstChild,u=U.nextSibling;return r(h,()=>F.name),r(u,e($,{get checked(){return t.visible(L)},onChange:b=>{t.setVisibility(L,b)},hideLabel:!0,get children(){return F.name}})),O})()}})}}),null),T})()})}})}})),c})()};var dr=d('<div class="flex flex-1 min-h-0 flex-col gap-4 pt-6"><div class="text-16-medium text-text-strong">'),ur=d('<div class="flex flex-col h-full overflow-y-auto no-scrollbar px-4 pb-10 sm:px-10 sm:pb-10"><div class="flex flex-col flex-1 min-h-0 max-w-[720px]">'),pr=d('<div class="sticky top-0 z-10 bg-[linear-gradient(to_bottom,var(--surface-stronger-non-alpha)_calc(100%_-_24px),transparent)]"><div class="flex flex-col gap-1 pt-6 pb-8"><h2 class="text-16-medium text-text-strong">');const hr=()=>{const i=J(),t=ut();return(()=>{var a=ur(),c=a.firstChild;return r(c,e(w,{get when(){return t.isFormMode()},get fallback(){return[(()=>{var v=pr(),m=v.firstChild,l=m.firstChild;return r(l,()=>i.t("status.popover.tab.servers")),v})(),e(ht,{controller:t})]},get children(){var v=dr(),m=v.firstChild;return r(m,()=>t.formTitle()),r(v,e(pt,{controller:t}),null),v}})),a})()};var mr=d('<div class="flex flex-col justify-between h-full w-full gap-4"><div class="flex flex-col gap-3 w-full pt-3"><div class="flex flex-col gap-3"><div class="flex flex-col gap-1.5"><div class="flex flex-col gap-1.5 w-full"></div></div><div class="flex flex-col gap-1.5"><div class="flex flex-col gap-1.5 w-full"></div></div></div></div><div class="flex flex-col gap-1 pl-1 py-1 text-12-medium text-text-weak"><span></span><span class=text-11-regular>v');const vr=i=>{const t=J(),a=_e(),c=pe(),[v,m]=mt(i.defaultValue??"general"),l=()=>{c.show(()=>e(vr,{defaultValue:"providers"}))};return e(ft,{size:"x-large",transition:!0,get children(){return e(C,{orientation:"vertical",variant:"settings",get value(){return v()},onChange:_=>void vt(()=>m(_)),class:"h-full settings-dialog",get children(){return[e(C.List,{get children(){var _=mr(),y=_.firstChild,k=y.firstChild,P=k.firstChild,T=P.firstChild,A=P.nextSibling,N=A.firstChild,F=y.nextSibling,L=F.firstChild,O=L.nextSibling;return O.firstChild,r(P,e(C.SectionTitle,{get children(){return t.t("settings.section.desktop")}}),T),r(T,e(C.Trigger,{value:"general",get children(){return[e(j,{name:"sliders"}),W(()=>t.t("settings.tab.general"))]}}),null),r(T,e(C.Trigger,{value:"shortcuts",get children(){return[e(j,{name:"keyboard"}),W(()=>t.t("settings.tab.shortcuts"))]}}),null),r(T,e(C.Trigger,{value:"servers",get children(){return[e(j,{name:"server"}),W(()=>t.t("status.popover.tab.servers"))]}}),null),r(A,e(C.SectionTitle,{get children(){return t.t("settings.section.server")}}),N),r(N,e(C.Trigger,{value:"providers",get children(){return[e(j,{name:"providers"}),W(()=>t.t("settings.providers.title"))]}}),null),r(N,e(C.Trigger,{value:"models",get children(){return[e(j,{name:"models"}),W(()=>t.t("settings.models.title"))]}}),null),r(L,()=>t.t("app.name.desktop")),r(O,()=>a.version,null),_}}),e(C.Content,{value:"general",class:"no-scrollbar",get children(){return e(Gt,{})}}),e(C.Content,{value:"shortcuts",class:"no-scrollbar",get children(){return e(bt,{})}}),e(C.Content,{value:"servers",class:"no-scrollbar",get children(){return e(hr,{})}}),e(C.Content,{value:"providers",class:"no-scrollbar",get children(){return e(tr,{onBack:l})}}),e(C.Content,{value:"models",class:"no-scrollbar",get children(){return e(cr,{})}})]}})}})};export{vr as DialogSettings};
2
+ import{co as Oe,b_ as J,c5 as Ve,c6 as _e,bV as pe,c4 as je,ck as he,aD as z,aQ as Me,ch as $e,cg as ye,aI as ce,bm as Re,b6 as r,au as e,a2 as w,bL as d,af as Ze,a9 as Ke,B as q,T as K,ba as W,aa as se,bB as Ge,bC as qe,be as Ue,bf as Qe,bM as He,bN as We,bc as ge,ac as Xe,I as j,bD as Ye,bg as Je,bO as et,S as tt,bv as rt,bZ as me,l as G,Y as xe,V as te,Z as be,o as Y,$ as nt,a0 as st,y as it,Q as lt,cf as at,c9 as ot,bw as le,N as ie,a8 as re,bG as ne,c1 as ct,bX as gt,u as dt,ce as ut,W as pt,X as ht,aK as mt,a7 as C,bK as vt,b as ft}from"./index-BfNxi3ev.js";import{S as $}from"./switch-CVS6td1r.js";import{u as xt,a as E,S as bt}from"./settings-keybinds-BOa6QxJ6.js";import{L as wt,u as _t,a as $t,D as yt}from"./dialog-connect-provider-DLnpNUTc.js";import"./LROKH5N7-D8CK0ENS.js";import"./list-FiQEDby0.js";var St=d("<div data-action=settings-new-layout-designs>"),de=d('<div class="flex flex-col gap-1">'),Ct=d('<span class="flex items-center gap-2">'),kt=d("<div data-action=settings-auto-accept-permissions>"),Pt=d("<div data-action=settings-feed-reasoning-summaries>"),Tt=d("<div data-action=settings-feed-shell-tool-parts-expanded>"),Dt=d("<div data-action=settings-feed-edit-tool-parts-expanded>"),Ft=d("<div data-action=settings-show-file-tree>"),It=d("<div data-action=settings-show-navigation>"),zt=d("<div data-action=settings-show-search>"),Et=d("<div data-action=settings-show-status>"),At=d("<div data-action=settings-show-custom-agents>"),H=d('<div class="flex flex-col gap-1"><h3 class="text-14-medium text-text-strong pb-2">'),ue=d('<div class="w-full sm:w-[220px]">'),Nt=d("<div data-action=settings-notifications-agent>"),Lt=d("<div data-action=settings-notifications-permissions>"),Bt=d("<div data-action=settings-notifications-errors>"),Ot=d("<div data-action=settings-release-notes>"),Vt=d("<div data-action=settings-pinch-zoom>"),jt=d("<div data-action=settings-wayland>"),Mt=d("<span class=text-text-weak>"),Rt=d('<div class="flex items-center gap-2"><span>'),Zt=d('<div class="flex flex-col h-full overflow-y-auto no-scrollbar px-4 pb-10 sm:px-10 sm:pb-10"><div class="sticky top-0 z-10 bg-[linear-gradient(to_bottom,var(--surface-stronger-non-alpha)_calc(100%_-_24px),transparent)]"><div class="flex flex-col gap-1 pt-6 pb-8"><h2 class="text-16-medium text-text-strong"></h2></div></div><div class="flex flex-col gap-8 w-full">'),Kt=d('<div class="flex flex-wrap items-center gap-4 py-3 border-b border-border-weak-base last:border-none sm:flex-nowrap"><div class="flex min-w-0 flex-1 flex-col gap-0.5"><span class="text-14-medium text-text-strong"></span><span class="text-12-regular text-text-weak"></span></div><div class="flex w-full justify-end sm:w-auto sm:shrink-0">');let M={cleanup:void 0,timeout:void 0,run:0};const Se=()=>{M.run+=1,M.cleanup&&M.cleanup(),clearTimeout(M.timeout),M.cleanup=void 0},we=i=>{if(Se(),!i)return;const t=++M.run;M.timeout=setTimeout(()=>{rt(i).then(a=>{if(M.run!==t){a?.();return}M.cleanup=a})},100)},Gt=()=>{const i=Oe(),t=J(),a=Ve(),c=_e(),v=pe(),m=je(),l=he(),_=xt(),y=z(()=>c.platform==="desktop"&&c.os==="linux"),k=z(()=>Me(m.dir)),P=z(()=>{const o=k();return o?m.id?a.isAutoAccepting(m.id,o):a.isAutoAcceptingDirectory(o):!1}),T=o=>{const s=k();if(s){if(!m.id){if(a.isAutoAcceptingDirectory(s)===o)return;a.toggleAutoAcceptDirectory(s);return}if(o){a.enableAutoAccept(m.id,s);return}a.disableAutoAccept(m.id,s)}},A=z(()=>c.platform==="desktop"),N=z(()=>i.ids().map(o=>({id:o,name:i.name(o)}))),F=$e(),L=ye(),[O]=ce(async()=>{const o=L();return await o.protocol==="v1"?(await o.client.pty.shells()).data??[]:[]},{initialValue:[]}),[U,{refetch:h}]=ce(()=>!!(y()&&c.getDisplayBackend),()=>Promise.resolve(c.getDisplayBackend?.()??null).catch(()=>null),{initialValue:null}),[u,{mutate:b}]=ce(()=>!!(A()&&c.getPinchZoomEnabled),()=>Promise.resolve(c.getPinchZoomEnabled?.()??!1).catch(()=>!1),{initialValue:!1});Re(()=>{i.loadThemes()});const B={id:"auto",value:"",label:t.t("settings.general.row.shell.autoDefault")},R=z(()=>F().data.config.shell??""),Z=z(()=>{const o=O.latest,s=F().data.config.shell,n=new Map;for(const g of o)n.set(g.name,(n.get(g.name)||0)+1);const p=[B,...o.map(g=>{const ve=(n.get(g.name)||0)>1,fe=ve?g.path:g.name,Be=g.acceptable?fe:`${fe} (${t.t("settings.general.row.shell.terminalOnly")})`;return{id:g.path,value:ve?g.path:g.name,label:Be}})];return s&&!p.some(g=>g.value===s)&&p.push({id:s,value:s,label:s}),p}),ae=o=>{const s=c.setDisplayBackend?.(o?"wayland":"auto");s&&s.finally(()=>{h()})},X=o=>{b(o);const s=c.setPinchZoomEnabled?.(o);s&&s.catch(()=>b(!o))},ee=z(()=>[{value:"system",label:t.t("theme.scheme.system")},{value:"light",label:t.t("theme.scheme.light")},{value:"dark",label:t.t("theme.scheme.dark")}]),x=z(()=>t.locales.map(o=>({value:o,label:t.label(o)}))),D={id:"none",label:"sound.option.none"},S=[D,...tt],I=()=>Je(l.appearance.font()),V=()=>Ye(l.appearance.uiFont()),oe=()=>et(l.appearance.terminalFont()),Q=(o,s,n,p)=>({options:S,current:o()?S.find(g=>g.id===s())??D:D,value:g=>g.id,label:g=>t.t(g.label),onHighlight:g=>{g&&we(g.id==="none"?void 0:g.id)},onSelect:g=>{if(g){if(g.id==="none"){n(!1),Se();return}n(!0),p(g.id),we(g.id)}},variant:"secondary",size:"small",triggerVariant:"settings"}),Te=()=>(()=>{var o=de();return r(o,e(E,{get children(){return e(f,{get title(){return(()=>{var s=Ct();return r(s,()=>t.t("settings.general.row.newInterface.title"),null),r(s,e(Ke,{variant:"accent",get children(){return t.t("settings.general.row.newInterface.badge")}}),null),s})()},get description(){return t.t("settings.general.row.newInterface.description")},get children(){var s=St();return r(s,e($,{get checked(){return l.general.newLayoutDesigns()},onChange:n=>{l.general.setNewLayoutDesigns(n),n&&Ze(()=>import("./index-wflYMX4p.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])).then(p=>{v.show(()=>e(p.DialogSettings,{}))})}})),s}})}})),o})(),De=()=>(()=>{var o=de();return r(o,e(E,{get children(){return e(f,{get title(){return t.t("settings.general.row.newInterfaceNotice.title")},get description(){return t.t("settings.general.row.newInterfaceNotice.description")},get children(){return e(q,{size:"small",variant:"ghost",get onClick(){return l.general.dismissNewInterfaceNotice},get children(){return t.t("settings.general.row.newInterfaceNotice.dismiss")}})}})}})),o})(),Fe=()=>(()=>{var o=de();return r(o,e(E,{get children(){return[e(f,{get title(){return t.t("settings.general.row.language.title")},get description(){return t.t("settings.general.row.language.description")},get children(){return e(K,{"data-action":"settings-language",get options(){return x()},get current(){return x().find(s=>s.value===t.locale())},value:s=>s.value,label:s=>s.label,onSelect:s=>s&&t.setLocale(s.value),variant:"secondary",size:"small",triggerVariant:"settings"})}}),e(f,{get title(){return t.t("command.permissions.autoaccept.enable")},get description(){return t.t("toast.permissions.autoaccept.on.description")},get children(){var s=kt();return r(s,e($,{get checked(){return P()},get disabled(){return!k()},onChange:T})),s}}),e(f,{get title(){return t.t("settings.general.row.shell.title")},get description(){return t.t("settings.general.row.shell.description")},get children(){return e(K,{"data-action":"settings-shell",get options(){return Z()},get current(){return Z().find(s=>s.value===R())??B},value:s=>s.id,label:s=>s.label,onSelect:s=>{s&&s.value!==R()&&F().updateConfig({shell:s.value})},variant:"secondary",size:"small",triggerVariant:"settings",triggerStyle:{"min-width":"180px"}})}}),e(f,{get title(){return t.t("settings.general.row.reasoningSummaries.title")},get description(){return t.t("settings.general.row.reasoningSummaries.description")},get children(){var s=Pt();return r(s,e($,{get checked(){return l.general.showReasoningSummaries()},onChange:n=>l.general.setShowReasoningSummaries(n)})),s}}),e(f,{get title(){return t.t("settings.general.row.shellToolPartsExpanded.title")},get description(){return t.t("settings.general.row.shellToolPartsExpanded.description")},get children(){var s=Tt();return r(s,e($,{get checked(){return l.general.shellToolPartsExpanded()},onChange:n=>l.general.setShellToolPartsExpanded(n)})),s}}),e(f,{get title(){return t.t("settings.general.row.editToolPartsExpanded.title")},get description(){return t.t("settings.general.row.editToolPartsExpanded.description")},get children(){var s=Dt();return r(s,e($,{get checked(){return l.general.editToolPartsExpanded()},onChange:n=>l.general.setEditToolPartsExpanded(n)})),s}})]}})),o})(),Ie=()=>(()=>{var o=H(),s=o.firstChild;return r(s,()=>t.t("settings.general.section.advanced")),r(o,e(E,{get children(){return[e(f,{get title(){return t.t("settings.general.row.showFileTree.title")},get description(){return t.t("settings.general.row.showFileTree.description")},get children(){var n=Ft();return r(n,e($,{get checked(){return l.general.showFileTree()},onChange:p=>l.general.setShowFileTree(p)})),n}}),e(f,{get title(){return t.t("settings.general.row.showNavigation.title")},get description(){return t.t("settings.general.row.showNavigation.description")},get children(){var n=It();return r(n,e($,{get checked(){return l.general.showNavigation()},onChange:p=>l.general.setShowNavigation(p)})),n}}),e(f,{get title(){return t.t("settings.general.row.showSearch.title")},get description(){return t.t("settings.general.row.showSearch.description")},get children(){var n=zt();return r(n,e($,{get checked(){return l.general.showSearch()},onChange:p=>l.general.setShowSearch(p)})),n}}),e(f,{get title(){return t.t("settings.general.row.showStatus.title")},get description(){return t.t("settings.general.row.showStatus.description")},get children(){var n=Et();return r(n,e($,{get checked(){return l.general.showStatus()},onChange:p=>l.general.setShowStatus(p)})),n}}),e(f,{get title(){return t.t("settings.general.row.showCustomAgents.title")},get description(){return t.t("settings.general.row.showCustomAgents.description")},get children(){var n=At();return r(n,e($,{get checked(){return l.general.showCustomAgents()},onChange:p=>l.general.setShowCustomAgents(p)})),n}})]}}),null),o})(),ze=()=>(()=>{var o=H(),s=o.firstChild;return r(s,()=>t.t("settings.general.section.appearance")),r(o,e(E,{get children(){return[e(f,{get title(){return t.t("settings.general.row.colorScheme.title")},get description(){return t.t("settings.general.row.colorScheme.description")},get children(){return e(K,{"data-action":"settings-color-scheme",get options(){return ee()},get current(){return ee().find(n=>n.value===i.colorScheme())},value:n=>n.value,label:n=>n.label,onSelect:n=>n&&i.setColorScheme(n.value),variant:"secondary",size:"small",triggerVariant:"settings",triggerStyle:{"min-width":"220px"}})}}),e(f,{get title(){return t.t("settings.general.row.theme.title")},get description(){return[W(()=>t.t("settings.general.row.theme.description"))," ",e(wt,{href:"https://opencode.ai/docs/themes/",get children(){return t.t("common.learnMore")}})]},get children(){return e(K,{"data-action":"settings-theme",get options(){return N()},get current(){return N().find(n=>n.id===i.themeId())},value:n=>n.id,label:n=>n.name,onSelect:n=>{n&&i.setTheme(n.id)},variant:"secondary",size:"small",triggerVariant:"settings"})}}),e(f,{get title(){return t.t("settings.general.row.uiFont.title")},get description(){return t.t("settings.general.row.uiFont.description")},get children(){var n=ue();return r(n,e(se,{"data-action":"settings-ui-font",get label(){return t.t("settings.general.row.uiFont.title")},hideLabel:!0,type:"text",get value(){return V()},onChange:p=>l.appearance.setUIFont(p),placeholder:Ge,spellcheck:!1,autocorrect:"off",autocomplete:"off",autocapitalize:"off",class:"text-12-regular",get style(){return{"font-family":qe(l.appearance.uiFont())}}})),n}}),e(f,{get title(){return t.t("settings.general.row.font.title")},get description(){return t.t("settings.general.row.font.description")},get children(){var n=ue();return r(n,e(se,{"data-action":"settings-code-font",get label(){return t.t("settings.general.row.font.title")},hideLabel:!0,type:"text",get value(){return I()},onChange:p=>l.appearance.setFont(p),placeholder:Ue,spellcheck:!1,autocorrect:"off",autocomplete:"off",autocapitalize:"off",class:"text-12-regular",get style(){return{"font-family":Qe(l.appearance.font())}}})),n}}),e(f,{get title(){return t.t("settings.general.row.terminalFont.title")},get description(){return t.t("settings.general.row.terminalFont.description")},get children(){var n=ue();return r(n,e(se,{"data-action":"settings-terminal-font",get label(){return t.t("settings.general.row.terminalFont.title")},hideLabel:!0,type:"text",get value(){return oe()},onChange:p=>l.appearance.setTerminalFont(p),placeholder:He,spellcheck:!1,autocorrect:"off",autocomplete:"off",autocapitalize:"off",class:"text-12-regular",get style(){return{"font-family":We(l.appearance.terminalFont())}}})),n}})]}}),null),o})(),Ee=()=>(()=>{var o=H(),s=o.firstChild;return r(s,()=>t.t("settings.general.section.notifications")),r(o,e(E,{get children(){return[e(f,{get title(){return t.t("settings.general.notifications.agent.title")},get description(){return t.t("settings.general.notifications.agent.description")},get children(){var n=Nt();return r(n,e($,{get checked(){return l.notifications.agent()},onChange:p=>l.notifications.setAgent(p)})),n}}),e(f,{get title(){return t.t("settings.general.notifications.permissions.title")},get description(){return t.t("settings.general.notifications.permissions.description")},get children(){var n=Lt();return r(n,e($,{get checked(){return l.notifications.permissions()},onChange:p=>l.notifications.setPermissions(p)})),n}}),e(f,{get title(){return t.t("settings.general.notifications.errors.title")},get description(){return t.t("settings.general.notifications.errors.description")},get children(){var n=Bt();return r(n,e($,{get checked(){return l.notifications.errors()},onChange:p=>l.notifications.setErrors(p)})),n}})]}}),null),o})(),Ae=()=>(()=>{var o=H(),s=o.firstChild;return r(s,()=>t.t("settings.general.section.sounds")),r(o,e(E,{get children(){return[e(f,{get title(){return t.t("settings.general.sounds.agent.title")},get description(){return t.t("settings.general.sounds.agent.description")},get children(){return e(K,ge({"data-action":"settings-sounds-agent"},()=>Q(()=>l.sounds.agentEnabled(),()=>l.sounds.agent(),n=>l.sounds.setAgentEnabled(n),n=>l.sounds.setAgent(n))))}}),e(f,{get title(){return t.t("settings.general.sounds.permissions.title")},get description(){return t.t("settings.general.sounds.permissions.description")},get children(){return e(K,ge({"data-action":"settings-sounds-permissions"},()=>Q(()=>l.sounds.permissionsEnabled(),()=>l.sounds.permissions(),n=>l.sounds.setPermissionsEnabled(n),n=>l.sounds.setPermissions(n))))}}),e(f,{get title(){return t.t("settings.general.sounds.errors.title")},get description(){return t.t("settings.general.sounds.errors.description")},get children(){return e(K,ge({"data-action":"settings-sounds-errors"},()=>Q(()=>l.sounds.errorsEnabled(),()=>l.sounds.errors(),n=>l.sounds.setErrorsEnabled(n),n=>l.sounds.setErrors(n))))}})]}}),null),o})(),Ne=()=>(()=>{var o=H(),s=o.firstChild;return r(s,()=>t.t("settings.general.section.updates")),r(o,e(E,{get children(){return[e(f,{get title(){return t.t("settings.general.row.releaseNotes.title")},get description(){return t.t("settings.general.row.releaseNotes.description")},get children(){var n=Ot();return r(n,e($,{get checked(){return l.general.releaseNotes()},onChange:p=>l.general.setReleaseNotes(p)})),n}}),e(f,{get title(){return t.t("settings.updates.row.check.title")},get description(){return t.t("settings.updates.row.check.description")},get children(){return e(q,{size:"small",variant:"secondary",get disabled(){return!_.action().run},get onClick(){return _.run},get children(){return t.t(_.action().label)}})}})]}}),null),o})(),Le=()=>e(w,{get when(){return A()},get children(){var o=H(),s=o.firstChild;return r(s,()=>t.t("settings.general.section.display")),r(o,e(E,{get children(){return[e(f,{get title(){return t.t("settings.general.row.pinchZoom.title")},get description(){return t.t("settings.general.row.pinchZoom.description")},get children(){var n=Vt();return r(n,e($,{get checked(){return u.latest},onChange:X})),n}}),e(w,{get when(){return y()},get children(){return e(f,{get title(){return(()=>{var n=Rt(),p=n.firstChild;return r(p,()=>t.t("settings.general.row.wayland.title")),r(n,e(Xe,{get value(){return t.t("settings.general.row.wayland.tooltip")},placement:"top",get children(){var g=Mt();return r(g,e(j,{name:"help",size:"small"})),g}}),null),n})()},get description(){return t.t("settings.general.row.wayland.description")},get children(){var n=jt();return r(n,e($,{get checked(){return U.latest==="wayland"},onChange:ae})),n}})}})]}}),null),o}});return(()=>{var o=Zt(),s=o.firstChild,n=s.firstChild,p=n.firstChild,g=s.nextSibling;return r(p,()=>t.t("settings.tab.general")),r(g,e(w,{get when(){return l.general.layoutTransitionAvailable()},get children(){return e(Te,{})}}),null),r(g,e(w,{get when(){return l.general.newInterfaceNoticeVisible()},get children(){return e(De,{})}}),null),r(g,e(Fe,{}),null),r(g,e(ze,{}),null),r(g,e(Ee,{}),null),r(g,e(Ae,{}),null),r(g,e(Ne,{}),null),r(g,e(Le,{}),null),r(g,e(w,{get when(){return A()},get children(){return e(Ie,{})}}),null),o})()},f=i=>(()=>{var t=Kt(),a=t.firstChild,c=a.firstChild,v=c.nextSibling,m=a.nextSibling;return r(c,()=>i.title),r(v,()=>i.description),r(m,()=>i.children),t})();function Ce(i){const t=me(),a=he();return e(w,{get when(){return a.general.newLayoutDesigns()},get fallback(){return i.children},get children(){return e(w,{get when(){return t.settings.server.selected()},children:c=>e(qt,{get server(){return c()},get children(){return i.children}})})}})}function qt(i){const t=me(),a=()=>t.ensureServerCtx(i.server);return e(lt,{get client(){return a().queryClient},get children(){return e(nt,{server:()=>i.server,get children(){return e(st,{get children(){return e(it,{get children(){return i.children}})}})}})}})}function ke(){const i=me(),t=he(),a=z(()=>t.general.newLayoutDesigns()?i.settings.server.selected():void 0);return e(w,{get when(){return a()},children:c=>e(G,{gutter:4,placement:"bottom-end",get children(){return[e(G.Trigger,{as:q,variant:"secondary",size:"large",class:"h-8 max-w-[260px] gap-2 px-2 py-1.5 data-[expanded]:bg-surface-base-active",get children(){return[e(xe,{get health(){return i.servers.health[te.key(c())]}}),e(be,{get conn(){return c()},get status(){return i.servers.health[te.key(c())]},class:"flex items-center gap-2 min-w-0 flex-1",nameClass:"text-14-regular text-text-base truncate",versionClass:"hidden"}),e(j,{name:"chevron-down",size:"small",class:"text-icon-weak shrink-0"})]}}),e(G.Portal,{get children(){return e(G.Content,{class:"w-[320px] mt-1 [&_[data-slot=dropdown-menu-radio-item]]:pl-2 [&_[data-slot=dropdown-menu-radio-item]]:pr-2",get children(){return e(G.RadioGroup,{get value(){return i.settings.server.key},onChange:v=>{typeof v=="string"&&i.settings.server.set(te.Key.make(v))},get children(){return e(Y,{get each(){return i.servers.list()},children:v=>{const m=te.key(v),l=()=>i.servers.health[m]?.healthy===!1;return e(G.RadioItem,{value:m,get disabled(){return l()},get children(){return[e(xe,{get health(){return i.servers.health[m]}}),e(be,{conn:v,get dimmed(){return l()},get status(){return i.servers.health[m]},class:"flex items-center gap-2 min-w-0 flex-1",nameClass:"text-14-regular text-text-base truncate",versionClass:"text-12-regular text-text-weak truncate"}),e(G.ItemIndicator,{get children(){return e(j,{name:"check-small",size:"small",class:"text-icon-weak"})}})]}})}})}})}})}})]}})})}var Ut=d('<div class="flex items-center justify-between gap-4 min-h-16 border-b border-border-weak-base last:border-none flex-wrap py-3"data-component=custom-provider-section><div class="flex flex-col min-w-0"><div class="flex flex-wrap items-center gap-x-3 gap-y-1"><span class="text-14-medium text-text-strong"></span></div><span class="text-12-regular text-text-weak pl-8">'),Qt=d('<div class="flex flex-col h-full overflow-y-auto no-scrollbar px-4 pb-10 sm:px-10 sm:pb-10"><div class="sticky top-0 z-10 bg-[linear-gradient(to_bottom,var(--surface-stronger-non-alpha)_calc(100%_-_24px),transparent)]"><div class="flex items-center justify-between gap-4 pt-6 pb-8 max-w-[720px]"><h2 class="text-16-medium text-text-strong"></h2></div></div><div class="flex flex-col gap-8 max-w-[720px]"><div class="flex flex-col gap-1"data-component=connected-providers-section><h3 class="text-14-medium text-text-strong pb-2"></h3></div><div class="flex flex-col gap-1"><h3 class="text-14-medium text-text-strong pb-2">'),Ht=d('<div class="py-4 text-14-regular text-text-weak">'),Wt=d('<div class="group flex flex-wrap items-center justify-between gap-4 min-h-16 py-3 border-b border-border-weak-base last:border-none"><div class="flex items-center gap-3 min-w-0"><span class="text-14-medium text-text-strong truncate">'),Xt=d('<span class="text-14-regular text-text-base opacity-0 group-hover:opacity-100 transition-opacity duration-200 pr-3 cursor-default">'),Yt=d('<div class="flex flex-wrap items-center justify-between gap-4 min-h-16 py-3 border-b border-border-weak-base last:border-none"><div class="flex flex-col min-w-0"><div class="flex items-center gap-x-3"><span class="text-14-medium text-text-strong">'),Jt=d('<span class="text-12-regular text-text-weak pl-8">');const er=[{match:i=>i==="opencode",key:"dialog.provider.opencode.note"},{match:i=>i==="opencode-go",key:"dialog.provider.opencodeGo.tagline"},{match:i=>i==="anthropic",key:"dialog.provider.anthropic.note"},{match:i=>i.startsWith("github-copilot"),key:"dialog.provider.copilot.note"},{match:i=>i==="openai",key:"dialog.provider.openai.note"},{match:i=>i==="google",key:"dialog.provider.google.note"},{match:i=>i==="openrouter",key:"dialog.provider.openrouter.note"},{match:i=>i==="vercel",key:"dialog.provider.vercel.note"}],tr=i=>e(Ce,{get children(){return e(rr,{get onBack(){return i.onBack}})}}),rr=i=>{const t=pe(),a=J(),c=ye(),v=at(),m=$e(),l=ot(()=>{}),_=_t({onBack:i.onBack}),y=h=>{_.select(h),t.show(()=>e(yt,{controller:_}))},k=z(()=>l.connected().filter(h=>h.id!=="opencode"||Object.values(h.models??{}).find(u=>u.cost?.input))),P=z(()=>{const h=new Set(k().map(b=>b.id)),u=l.popular().filter(b=>!h.has(b.id)).slice();return u.sort((b,B)=>le.indexOf(b.id)-le.indexOf(B.id)),u}),T=h=>{if(!("source"in h))return;const u=h.source;if(u==="env"||u==="api"||u==="config"||u==="custom")return u},A=h=>{const u=T(h);return u==="env"?a.t("settings.providers.tag.environment"):u==="api"?a.t("provider.connect.method.apiKey"):u==="config"?L(h.id)?a.t("settings.providers.tag.custom"):a.t("settings.providers.tag.config"):u==="custom"?a.t("settings.providers.tag.custom"):a.t("settings.providers.tag.other")},N=h=>T(h)!=="env"&&(v()==="v1"||!L(h.id)),F=h=>er.find(u=>u.match(h))?.key,L=h=>{const u=m().data.config.provider?.[h];return!(!u||u.npm!=="@ai-sdk/openai-compatible"||!u.models||Object.keys(u.models).length===0)},O=async(h,u)=>{if(v()!=="v1")return;const b=m().data.config.disabled_providers??[],B=b.includes(h)?b:[...b,h];m().set("config","disabled_providers",B),await m().updateConfig({disabled_providers:B}).then(()=>{ne({variant:"success",icon:"circle-check",title:a.t("provider.disconnect.toast.disconnected.title",{provider:u}),description:a.t("provider.disconnect.toast.disconnected.description",{provider:u})})}).catch(R=>{m().set("config","disabled_providers",b);const Z=R instanceof Error?R.message:String(R);ne({title:a.t("common.requestFailed"),description:Z})})},U=async(h,u)=>{if(L(h)){await c().client.auth.remove({providerID:h}).catch(()=>{}),await O(h,u);return}await c().client.auth.remove({providerID:h}).then(async()=>{await c().client.global.dispose(),ne({variant:"success",icon:"circle-check",title:a.t("provider.disconnect.toast.disconnected.title",{provider:u}),description:a.t("provider.disconnect.toast.disconnected.description",{provider:u})})}).catch(b=>{const B=b instanceof Error?b.message:String(b);ne({title:a.t("common.requestFailed"),description:B})})};return(()=>{var h=Qt(),u=h.firstChild,b=u.firstChild,B=b.firstChild,R=u.nextSibling,Z=R.firstChild,ae=Z.firstChild,X=Z.nextSibling,ee=X.firstChild;return r(B,()=>a.t("settings.providers.title")),r(b,e(ke,{}),null),r(ae,()=>a.t("settings.providers.section.connected")),r(Z,e(E,{get children(){return e(w,{get when(){return k().length>0},get fallback(){return(()=>{var x=Ht();return r(x,()=>a.t("settings.providers.connected.empty")),x})()},get children(){return e(Y,{get each(){return k()},children:x=>(()=>{var D=Wt(),S=D.firstChild,I=S.firstChild;return r(S,e(ie,{get id(){return x.id},class:"size-5 shrink-0 icon-strong-base"}),I),r(I,()=>x.name),r(S,e(re,{get children(){return A(x)}}),null),r(D,e(w,{get when(){return N(x)},get fallback(){return(()=>{var V=Xt();return r(V,()=>a.t("settings.providers.connected.environmentDescription")),V})()},get children(){return e(q,{size:"large",variant:"ghost",onClick:()=>void U(x.id,x.name),get children(){return a.t("common.disconnect")}})}}),null),D})()})}})}}),null),r(ee,()=>a.t("settings.providers.section.popular")),r(X,e(E,{get children(){return[e(Y,{get each(){return P()},children:x=>(()=>{var D=Yt(),S=D.firstChild,I=S.firstChild,V=I.firstChild;return r(I,e(ie,{get id(){return x.id},class:"size-5 shrink-0 icon-strong-base"}),V),r(V,()=>x.name),r(I,e(w,{get when(){return x.id==="opencode"},get children(){return e(re,{get children(){return a.t("dialog.provider.tag.recommended")}})}}),null),r(I,e(w,{get when(){return x.id==="opencode-go"},get children(){return e(re,{get children(){return a.t("dialog.provider.tag.recommended")}})}}),null),r(S,e(w,{get when(){return F(x.id)},children:oe=>(()=>{var Q=Jt();return r(Q,()=>a.t(oe())),Q})()}),null),r(D,e(q,{size:"large",variant:"secondary",icon:"plus-small",onClick:()=>y(x.id),get children(){return a.t("common.connect")}}),null),D})()}),e(w,{get when(){return v()==="v1"},get children(){var x=Ut(),D=x.firstChild,S=D.firstChild,I=S.firstChild,V=S.nextSibling;return r(S,e(ie,{id:"synthetic",class:"size-5 shrink-0 icon-strong-base"}),I),r(I,()=>a.t("provider.custom.title")),r(S,e(re,{get children(){return a.t("settings.providers.tag.custom")}}),null),r(V,()=>a.t("settings.providers.custom.description")),r(x,e(q,{size:"large",variant:"secondary",icon:"plus-small",onClick:()=>{t.show(()=>e($t,{get onBack(){return t.close}}))},get children(){return a.t("common.connect")}}),null),x}})]}}),null),r(X,e(q,{variant:"ghost",class:"px-0 py-0 mt-5 text-14-medium text-text-interactive-base text-left justify-start hover:bg-transparent active:bg-transparent",onClick:()=>y(),get children(){return a.t("dialog.provider.viewAll")}}),null),h})()};var Pe=d('<div class="flex flex-col items-center justify-center py-12 text-center"><span class="text-14-regular text-text-weak">'),nr=d('<span class="text-14-regular text-text-strong mt-1">&quot;<!>&quot;'),sr=d('<div class="flex flex-col h-full overflow-y-auto no-scrollbar px-4 pb-10 sm:px-10 sm:pb-10"><div class="sticky top-0 z-10 bg-[linear-gradient(to_bottom,var(--surface-stronger-non-alpha)_calc(100%_-_24px),transparent)]"><div class="flex flex-col gap-4 pt-6 pb-6 max-w-[720px]"><div class="flex items-center justify-between gap-4"><h2 class="text-16-medium text-text-strong"></h2></div><div class="flex items-center gap-2 px-3 h-9 rounded-lg bg-surface-base"></div></div></div><div class="flex flex-col gap-8 max-w-[720px]">'),ir=d('<div class="flex flex-col gap-1"><div class="flex items-center gap-2 pb-2"><span class="text-14-medium text-text-strong">'),lr=d('<div class="flex flex-wrap items-center justify-between gap-4 py-3 border-b border-border-weak-base last:border-none"><div class=min-w-0><span class="text-14-regular text-text-strong truncate block"></span></div><div class=flex-shrink-0>');const ar=i=>(()=>{var t=Pe(),a=t.firstChild;return r(a,()=>i.label),t})(),or=i=>(()=>{var t=Pe(),a=t.firstChild;return r(a,()=>i.message),r(t,e(w,{get when(){return i.filter},get children(){var c=nr(),v=c.firstChild,m=v.nextSibling;return m.nextSibling,r(c,()=>i.filter,m),c}}),null),t})(),cr=()=>e(Ce,{get children(){return e(gr,{})}}),gr=()=>{const i=J(),t=ct(),a=gt({items:c=>t.list(),key:c=>`${c.provider.id}:${c.id}`,filterKeys:["provider.name","name","id"],sortBy:(c,v)=>c.name.localeCompare(v.name),groupBy:c=>c.provider.id,sortGroupsBy:(c,v)=>{const m=le.indexOf(c.category),l=le.indexOf(v.category),_=m>=0,y=l>=0;if(_&&!y)return-1;if(!_&&y)return 1;if(_&&y)return m-l;const k=c.items[0].provider.name,P=v.items[0].provider.name;return k.localeCompare(P)}});return(()=>{var c=sr(),v=c.firstChild,m=v.firstChild,l=m.firstChild,_=l.firstChild,y=l.nextSibling,k=v.nextSibling;return r(_,()=>i.t("settings.models.title")),r(l,e(ke,{}),null),r(y,e(j,{name:"magnifying-glass",class:"text-icon-weak-base flex-shrink-0"}),null),r(y,e(se,{variant:"ghost",type:"text",get value(){return a.filter()},get onChange(){return a.onInput},get placeholder(){return i.t("dialog.model.search.placeholder")},spellcheck:!1,autocorrect:"off",autocomplete:"off",autocapitalize:"off",class:"flex-1"}),null),r(y,e(w,{get when(){return a.filter()},get children(){return e(dt,{icon:"circle-x",variant:"ghost",get onClick(){return a.clear}})}}),null),r(k,e(w,{get when(){return!a.grouped.loading},get fallback(){return e(ar,{get label(){return`${i.t("common.loading")}${i.t("common.loading.ellipsis")}`}})},get children(){return e(w,{get when(){return a.flat().length>0},get fallback(){return e(or,{get message(){return i.t("dialog.model.empty")},get filter(){return a.filter()}})},get children(){return e(Y,{get each(){return a.grouped.latest},children:P=>(()=>{var T=ir(),A=T.firstChild,N=A.firstChild;return r(A,e(ie,{get id(){return P.category},class:"size-5 shrink-0 icon-strong-base"}),N),r(N,()=>P.items[0].provider.name),r(T,e(E,{get children(){return e(Y,{get each(){return P.items},children:F=>{const L={providerID:F.provider.id,modelID:F.id};return(()=>{var O=lr(),U=O.firstChild,h=U.firstChild,u=U.nextSibling;return r(h,()=>F.name),r(u,e($,{get checked(){return t.visible(L)},onChange:b=>{t.setVisibility(L,b)},hideLabel:!0,get children(){return F.name}})),O})()}})}}),null),T})()})}})}})),c})()};var dr=d('<div class="flex flex-1 min-h-0 flex-col gap-4 pt-6"><div class="text-16-medium text-text-strong">'),ur=d('<div class="flex flex-col h-full overflow-y-auto no-scrollbar px-4 pb-10 sm:px-10 sm:pb-10"><div class="flex flex-col flex-1 min-h-0 max-w-[720px]">'),pr=d('<div class="sticky top-0 z-10 bg-[linear-gradient(to_bottom,var(--surface-stronger-non-alpha)_calc(100%_-_24px),transparent)]"><div class="flex flex-col gap-1 pt-6 pb-8"><h2 class="text-16-medium text-text-strong">');const hr=()=>{const i=J(),t=ut();return(()=>{var a=ur(),c=a.firstChild;return r(c,e(w,{get when(){return t.isFormMode()},get fallback(){return[(()=>{var v=pr(),m=v.firstChild,l=m.firstChild;return r(l,()=>i.t("status.popover.tab.servers")),v})(),e(ht,{controller:t})]},get children(){var v=dr(),m=v.firstChild;return r(m,()=>t.formTitle()),r(v,e(pt,{controller:t}),null),v}})),a})()};var mr=d('<div class="flex flex-col justify-between h-full w-full gap-4"><div class="flex flex-col gap-3 w-full pt-3"><div class="flex flex-col gap-3"><div class="flex flex-col gap-1.5"><div class="flex flex-col gap-1.5 w-full"></div></div><div class="flex flex-col gap-1.5"><div class="flex flex-col gap-1.5 w-full"></div></div></div></div><div class="flex flex-col gap-1 pl-1 py-1 text-12-medium text-text-weak"><span></span><span class=text-11-regular>v');const vr=i=>{const t=J(),a=_e(),c=pe(),[v,m]=mt(i.defaultValue??"general"),l=()=>{c.show(()=>e(vr,{defaultValue:"providers"}))};return e(ft,{size:"x-large",transition:!0,get children(){return e(C,{orientation:"vertical",variant:"settings",get value(){return v()},onChange:_=>void vt(()=>m(_)),class:"h-full settings-dialog",get children(){return[e(C.List,{get children(){var _=mr(),y=_.firstChild,k=y.firstChild,P=k.firstChild,T=P.firstChild,A=P.nextSibling,N=A.firstChild,F=y.nextSibling,L=F.firstChild,O=L.nextSibling;return O.firstChild,r(P,e(C.SectionTitle,{get children(){return t.t("settings.section.desktop")}}),T),r(T,e(C.Trigger,{value:"general",get children(){return[e(j,{name:"sliders"}),W(()=>t.t("settings.tab.general"))]}}),null),r(T,e(C.Trigger,{value:"shortcuts",get children(){return[e(j,{name:"keyboard"}),W(()=>t.t("settings.tab.shortcuts"))]}}),null),r(T,e(C.Trigger,{value:"servers",get children(){return[e(j,{name:"server"}),W(()=>t.t("status.popover.tab.servers"))]}}),null),r(A,e(C.SectionTitle,{get children(){return t.t("settings.section.server")}}),N),r(N,e(C.Trigger,{value:"providers",get children(){return[e(j,{name:"providers"}),W(()=>t.t("settings.providers.title"))]}}),null),r(N,e(C.Trigger,{value:"models",get children(){return[e(j,{name:"models"}),W(()=>t.t("settings.models.title"))]}}),null),r(L,()=>t.t("app.name.desktop")),r(O,()=>a.version,null),_}}),e(C.Content,{value:"general",class:"no-scrollbar",get children(){return e(Gt,{})}}),e(C.Content,{value:"shortcuts",class:"no-scrollbar",get children(){return e(bt,{})}}),e(C.Content,{value:"servers",class:"no-scrollbar",get children(){return e(hr,{})}}),e(C.Content,{value:"providers",class:"no-scrollbar",get children(){return e(tr,{onBack:l})}}),e(C.Content,{value:"models",class:"no-scrollbar",get children(){return e(cr,{})}})]}})}})};export{vr as DialogSettings};
3
3
  //# sourceMappingURL=dialog-settings-C0ClHN8Q.js.map
@@ -1,2 +1,2 @@
1
- const e={"ui.sessionReview.title":"Cambios de la sesión","ui.sessionReview.title.git":"Cambios de Git","ui.sessionReview.title.branch":"Cambios de la rama","ui.sessionReview.title.lastTurn":"Cambios del último turno","ui.sessionReview.diffStyle.unified":"Unificado","ui.sessionReview.diffStyle.split":"Dividido","ui.sessionReview.openFile":"Abrir archivo","ui.sessionReview.selection.line":"línea {{line}}","ui.sessionReview.selection.lines":"líneas {{start}}-{{end}}","ui.sessionReview.expandAll":"Expandir todo","ui.sessionReview.collapseAll":"Colapsar todo","ui.sessionReview.change.added":"Añadido","ui.sessionReview.change.removed":"Eliminado","ui.sessionReview.change.modified":"Modificado","ui.sessionReview.image.loading":"Cargando...","ui.sessionReview.image.placeholder":"Imagen","ui.sessionReview.largeDiff.title":"Diff demasiado grande para renderizar","ui.sessionReview.largeDiff.meta":"Límite: {{limit}} líneas modificadas. Actual: {{current}} líneas modificadas.","ui.sessionReview.largeDiff.renderAnyway":"Renderizar de todos modos","ui.sessionReviewV2.expandMode":"Expandir o colapsar diff","ui.sessionReviewV2.filterFiles":"Filtrar archivos","ui.sessionReviewV2.toggleSidebar":"Alternar árbol de archivos","ui.sessionReviewV2.showAllLines":"Mostrar todas las líneas","ui.sessionReviewV2.hideNonDiffLines":"Ocultar líneas sin cambios","ui.sessionReviewV2.unifiedDiff":"Diff unificado","ui.sessionReviewV2.splitDiff":"Diff dividido","ui.sessionReviewV2.previousFile":"Archivo anterior","ui.sessionReviewV2.nextFile":"Siguiente archivo","ui.sessionReviewV2.diffView":"Vista de diff","ui.sessionReviewV2.empty.noGit.title":"No hay cambios rastreados","ui.sessionReviewV2.empty.noGit.description":"Rastrea, revisa y deshaz cambios en este proyecto","ui.sessionReviewV2.empty.noGit.action":"Crear repositorio Git","ui.sessionReviewV2.empty.noGit.actionLoading":"Creando repositorio Git...","ui.sessionReviewV2.empty.changes.title":"Aún no hay cambios en los archivos","ui.sessionReviewV2.empty.changes.description":"Los cambios del proyecto aparecerán aquí","ui.fileMedia.kind.image":"imagen","ui.fileMedia.kind.audio":"audio","ui.fileMedia.state.removed":"Archivo de {{kind}} eliminado","ui.fileMedia.state.loading":"Cargando archivo de {{kind}}","ui.fileMedia.state.error":"Error en el archivo de {{kind}}","ui.fileMedia.state.unavailable":"Archivo de {{kind}} no disponible","ui.fileMedia.binary.title":"Archivo binario","ui.fileMedia.binary.description.path":"No se puede mostrar {{path}} porque es un archivo binario.","ui.fileMedia.binary.description.default":"No se puede mostrar este archivo porque es un archivo binario.","ui.lineComment.label.prefix":"Comentar en ","ui.lineComment.label.suffix":"","ui.lineComment.editorLabel.prefix":"Comentando en ","ui.lineComment.editorLabel.suffix":"","ui.lineComment.placeholder":"Añadir comentario","ui.lineComment.submit":"Comentar","ui.lineComment.cancel":"Cancelar","ui.sessionTurn.steps.show":"Mostrar pasos","ui.sessionTurn.steps.hide":"Ocultar pasos","ui.sessionTurn.summary.response":"Respuesta","ui.sessionTurn.diff.showMore":"Mostrar más cambios ({{count}})","ui.sessionTurn.diffs.changed.one":"Archivo modificado: {{count}}","ui.sessionTurn.diffs.changed.other":"Archivos modificados: {{count}}","ui.sessionTurn.diffs.showAll":"Mostrar todos","ui.sessionTurn.diffs.showLess":"Mostrar menos","ui.sessionTurn.diffs.more":"+{{count}} más","ui.sessionTurn.retry.retrying":"reintentando","ui.sessionTurn.retry.inSeconds":"en {{seconds}}s","ui.sessionTurn.retry.attempt":"intento #{{attempt}}","ui.sessionTurn.retry.attemptLine":"{{line}} - intento #{{attempt}}","ui.sessionTurn.retry.geminiHot":"gemini está demasiado saturado","ui.sessionTurn.error.freeUsageExceeded":"Límite de uso gratuito excedido","ui.sessionTurn.error.addCredits":"Añadir créditos","dialog.usageExceeded.freeTier.title":"Límite gratuito alcanzado","dialog.usageExceeded.freeTier.description":"Suscríbete a OpenCode Go para acceso fiable a los mejores modelos de código abierto, desde $5/mes.","dialog.usageExceeded.freeTier.actionLabel":"Suscribirse","dialog.usageExceeded.accountRateLimit.title":"Límite de Go alcanzado","dialog.usageExceeded.accountRateLimit.description":"Límite de uso alcanzado. Para seguir usando este modelo ahora, habilita el uso desde tu saldo disponible","dialog.usageExceeded.accountRateLimit.actionLabel":"Abrir configuración","ui.sessionTurn.status.delegating":"Delegando trabajo","ui.sessionTurn.status.planning":"Planificando siguientes pasos","ui.sessionTurn.status.gatheringContext":"Explorando","ui.sessionTurn.status.gatheredContext":"Explorado","ui.sessionTurn.status.searchingCodebase":"Buscando en la base de código","ui.sessionTurn.status.searchingWeb":"Buscando en la web","ui.sessionTurn.status.makingEdits":"Realizando ediciones","ui.sessionTurn.status.runningCommands":"Ejecutando comandos","ui.sessionTurn.status.thinking":"Pensando","ui.sessionTurn.status.thinkingWithTopic":"Pensando - {{topic}}","ui.sessionTurn.status.gatheringThoughts":"Recopilando pensamientos","ui.sessionTurn.status.consideringNextSteps":"Considerando siguientes pasos","ui.messagePart.questions.dismissed":"Preguntas descartadas","ui.messagePart.compaction":"Sesión compactada","ui.messagePart.context.read.one":"{{count}} lectura","ui.messagePart.context.read.other":"{{count}} lecturas","ui.messagePart.context.search.one":"{{count}} búsqueda","ui.messagePart.context.search.other":"{{count}} búsquedas","ui.messagePart.context.list.one":"{{count}} lista","ui.messagePart.context.list.other":"{{count}} listas","ui.messagePart.diagnostic.error":"Error","ui.messagePart.title.edit":"Editar","ui.messagePart.title.write":"Escribir","ui.messagePart.option.typeOwnAnswer":"Escribe tu propia respuesta","ui.messagePart.review.title":"Revisa tus respuestas","ui.list.loading":"Cargando","ui.list.empty":"Sin resultados","ui.list.clearFilter":"Borrar filtro","ui.list.emptyWithFilter.prefix":"Sin resultados para","ui.list.emptyWithFilter.suffix":"","ui.messageNav.newMessage":"Nuevo mensaje","ui.textField.copyToClipboard":"Copiar al portapapeles","ui.textField.copyLink":"Copiar enlace","ui.textField.copied":"Copiado","ui.imagePreview.alt":"Vista previa de imagen","ui.scrollView.ariaLabel":"contenido desplazable","ui.tool.read":"Leer","ui.tool.loaded":"Cargado","ui.tool.list":"Listar","ui.tool.glob":"Glob","ui.tool.grep":"Grep","ui.tool.webfetch":"Webfetch","ui.tool.websearch":"Búsqueda web","ui.tool.shell":"Shell","ui.tool.patch":"Parche","ui.tool.todos":"Tareas","ui.tool.todos.read":"Leer tareas","ui.tool.questions":"Preguntas","ui.tool.agent":"Agente {{type}}","ui.tool.agent.default":"Agente","ui.common.file.one":"archivo","ui.common.file.other":"archivos","ui.common.question.one":"pregunta","ui.common.question.other":"preguntas","ui.common.add":"Añadir","ui.common.back":"Atrás","ui.common.cancel":"Cancelar","ui.common.confirm":"Confirmar","ui.common.dismiss":"Descartar","ui.common.close":"Cerrar","ui.common.next":"Siguiente","ui.common.submit":"Enviar","ui.common.showMore":"Mostrar más","ui.permission.deny":"Denegar","ui.permission.allowAlways":"Permitir siempre","ui.permission.allowOnce":"Permitir una vez","ui.message.expand":"Expandir mensaje","ui.message.collapse":"Colapsar mensaje","ui.message.copy":"Copiar","ui.message.copyMessage":"Copiar mensaje","ui.message.forkMessage":"Bifurcar a nueva sesión","ui.message.revertMessage":"Restablecer a este punto","ui.message.copyResponse":"Copiar respuesta","ui.message.copied":"¡Copiado!","ui.message.interrupted":"Interrumpido","ui.message.queued":"En cola","ui.message.attachment.alt":"adjunto","ui.patch.action.deleted":"Eliminado","ui.patch.action.created":"Creado","ui.patch.action.moved":"Movido","ui.patch.action.patched":"Parcheado","ui.question.subtitle.answered":"{{count}} respondidas","ui.question.answer.none":"(sin respuesta)","ui.question.review.notAnswered":"(no respondida)","ui.question.multiHint":"Selecciona todas las que correspondan","ui.question.singleHint":"Selecciona una respuesta","ui.question.custom.placeholder":"Escribe tu respuesta...","ui.fileSearch.placeholder":"Buscar","ui.fileSearch.previousMatch":"Anterior","ui.fileSearch.nextMatch":"Siguiente","ui.fileSearch.close":"Cerrar búsqueda","ui.tool.task":"Tarea","ui.tool.skill":"Habilidad","ui.basicTool.called":"Llamado `{{tool}}`","ui.toolErrorCard.failed":"Falló","ui.toolErrorCard.copyError":"Copiar error","ui.message.duration.seconds":"{{count}}s","ui.message.duration.minutesSeconds":"{{minutes}}m {{seconds}}s"};export{e as dict};
1
+ const e={"ui.sessionReview.title":"Cambios de la sesión","ui.sessionReview.title.git":"Cambios de Git","ui.sessionReview.title.branch":"Cambios de la rama","ui.sessionReview.title.lastTurn":"Cambios del último turno","ui.sessionReview.diffStyle.unified":"Unificado","ui.sessionReview.diffStyle.split":"Dividido","ui.sessionReview.openFile":"Abrir archivo","ui.sessionReview.selection.line":"línea {{line}}","ui.sessionReview.selection.lines":"líneas {{start}}-{{end}}","ui.sessionReview.expandAll":"Expandir todo","ui.sessionReview.collapseAll":"Colapsar todo","ui.sessionReview.change.added":"Añadido","ui.sessionReview.change.removed":"Eliminado","ui.sessionReview.change.modified":"Modificado","ui.sessionReview.image.loading":"Cargando...","ui.sessionReview.image.placeholder":"Imagen","ui.sessionReview.largeDiff.title":"Diff demasiado grande para renderizar","ui.sessionReview.largeDiff.meta":"Límite: {{limit}} líneas modificadas. Actual: {{current}} líneas modificadas.","ui.sessionReview.largeDiff.renderAnyway":"Renderizar de todos modos","ui.sessionReviewV2.expandMode":"Expandir o colapsar diff","ui.sessionReviewV2.filterFiles":"Filtrar archivos","ui.sessionReviewV2.toggleSidebar":"Alternar árbol de archivos","ui.sessionReviewV2.showAllLines":"Mostrar todas las líneas","ui.sessionReviewV2.hideNonDiffLines":"Ocultar líneas sin cambios","ui.sessionReviewV2.unifiedDiff":"Diff unificado","ui.sessionReviewV2.splitDiff":"Diff dividido","ui.sessionReviewV2.previousFile":"Archivo anterior","ui.sessionReviewV2.nextFile":"Siguiente archivo","ui.sessionReviewV2.diffView":"Vista de diff","ui.sessionReviewV2.empty.noGit.title":"No hay cambios rastreados","ui.sessionReviewV2.empty.noGit.description":"Rastrea, revisa y deshaz cambios en este proyecto","ui.sessionReviewV2.empty.noGit.action":"Crear repositorio Git","ui.sessionReviewV2.empty.noGit.actionLoading":"Creando repositorio Git...","ui.sessionReviewV2.empty.changes.title":"Aún no hay cambios en los archivos","ui.sessionReviewV2.empty.changes.description":"Los cambios del proyecto aparecerán aquí","ui.fileMedia.kind.image":"imagen","ui.fileMedia.kind.audio":"audio","ui.fileMedia.state.removed":"Archivo de {{kind}} eliminado","ui.fileMedia.state.loading":"Cargando archivo de {{kind}}","ui.fileMedia.state.error":"Error en el archivo de {{kind}}","ui.fileMedia.state.unavailable":"Archivo de {{kind}} no disponible","ui.fileMedia.binary.title":"Archivo binario","ui.fileMedia.binary.description.path":"No se puede mostrar {{path}} porque es un archivo binario.","ui.fileMedia.binary.description.default":"No se puede mostrar este archivo porque es un archivo binario.","ui.lineComment.label.prefix":"Comentar en ","ui.lineComment.label.suffix":"","ui.lineComment.editorLabel.prefix":"Comentando en ","ui.lineComment.editorLabel.suffix":"","ui.lineComment.placeholder":"Añadir comentario","ui.lineComment.submit":"Comentar","ui.lineComment.cancel":"Cancelar","ui.sessionTurn.steps.show":"Mostrar pasos","ui.sessionTurn.steps.hide":"Ocultar pasos","ui.sessionTurn.summary.response":"Respuesta","ui.sessionTurn.diff.showMore":"Mostrar más cambios ({{count}})","ui.sessionTurn.diffs.changed.one":"Archivo modificado: {{count}}","ui.sessionTurn.diffs.changed.other":"Archivos modificados: {{count}}","ui.sessionTurn.diffs.showAll":"Mostrar todos","ui.sessionTurn.diffs.showLess":"Mostrar menos","ui.sessionTurn.diffs.more":"+{{count}} más","ui.sessionTurn.retry.retrying":"reintentando","ui.sessionTurn.retry.inSeconds":"en {{seconds}}s","ui.sessionTurn.retry.attempt":"intento #{{attempt}}","ui.sessionTurn.retry.attemptLine":"{{line}} - intento #{{attempt}}","ui.sessionTurn.retry.geminiHot":"gemini está demasiado saturado","ui.sessionTurn.error.freeUsageExceeded":"Límite de uso gratuito excedido","ui.sessionTurn.error.addCredits":"Añadir créditos","dialog.usageExceeded.freeTier.title":"Límite gratuito alcanzado","dialog.usageExceeded.freeTier.description":"Suscríbete a midsomar Go para acceso fiable a los mejores modelos de código abierto, desde $5/mes.","dialog.usageExceeded.freeTier.actionLabel":"Suscribirse","dialog.usageExceeded.accountRateLimit.title":"Límite de Go alcanzado","dialog.usageExceeded.accountRateLimit.description":"Límite de uso alcanzado. Para seguir usando este modelo ahora, habilita el uso desde tu saldo disponible","dialog.usageExceeded.accountRateLimit.actionLabel":"Abrir configuración","ui.sessionTurn.status.delegating":"Delegando trabajo","ui.sessionTurn.status.planning":"Planificando siguientes pasos","ui.sessionTurn.status.gatheringContext":"Explorando","ui.sessionTurn.status.gatheredContext":"Explorado","ui.sessionTurn.status.searchingCodebase":"Buscando en la base de código","ui.sessionTurn.status.searchingWeb":"Buscando en la web","ui.sessionTurn.status.makingEdits":"Realizando ediciones","ui.sessionTurn.status.runningCommands":"Ejecutando comandos","ui.sessionTurn.status.thinking":"Pensando","ui.sessionTurn.status.thinkingWithTopic":"Pensando - {{topic}}","ui.sessionTurn.status.gatheringThoughts":"Recopilando pensamientos","ui.sessionTurn.status.consideringNextSteps":"Considerando siguientes pasos","ui.messagePart.questions.dismissed":"Preguntas descartadas","ui.messagePart.compaction":"Sesión compactada","ui.messagePart.context.read.one":"{{count}} lectura","ui.messagePart.context.read.other":"{{count}} lecturas","ui.messagePart.context.search.one":"{{count}} búsqueda","ui.messagePart.context.search.other":"{{count}} búsquedas","ui.messagePart.context.list.one":"{{count}} lista","ui.messagePart.context.list.other":"{{count}} listas","ui.messagePart.diagnostic.error":"Error","ui.messagePart.title.edit":"Editar","ui.messagePart.title.write":"Escribir","ui.messagePart.option.typeOwnAnswer":"Escribe tu propia respuesta","ui.messagePart.review.title":"Revisa tus respuestas","ui.list.loading":"Cargando","ui.list.empty":"Sin resultados","ui.list.clearFilter":"Borrar filtro","ui.list.emptyWithFilter.prefix":"Sin resultados para","ui.list.emptyWithFilter.suffix":"","ui.messageNav.newMessage":"Nuevo mensaje","ui.textField.copyToClipboard":"Copiar al portapapeles","ui.textField.copyLink":"Copiar enlace","ui.textField.copied":"Copiado","ui.imagePreview.alt":"Vista previa de imagen","ui.scrollView.ariaLabel":"contenido desplazable","ui.tool.read":"Leer","ui.tool.loaded":"Cargado","ui.tool.list":"Listar","ui.tool.glob":"Glob","ui.tool.grep":"Grep","ui.tool.webfetch":"Webfetch","ui.tool.websearch":"Búsqueda web","ui.tool.shell":"Shell","ui.tool.patch":"Parche","ui.tool.todos":"Tareas","ui.tool.todos.read":"Leer tareas","ui.tool.questions":"Preguntas","ui.tool.agent":"Agente {{type}}","ui.tool.agent.default":"Agente","ui.common.file.one":"archivo","ui.common.file.other":"archivos","ui.common.question.one":"pregunta","ui.common.question.other":"preguntas","ui.common.add":"Añadir","ui.common.back":"Atrás","ui.common.cancel":"Cancelar","ui.common.confirm":"Confirmar","ui.common.dismiss":"Descartar","ui.common.close":"Cerrar","ui.common.next":"Siguiente","ui.common.submit":"Enviar","ui.common.showMore":"Mostrar más","ui.permission.deny":"Denegar","ui.permission.allowAlways":"Permitir siempre","ui.permission.allowOnce":"Permitir una vez","ui.message.expand":"Expandir mensaje","ui.message.collapse":"Colapsar mensaje","ui.message.copy":"Copiar","ui.message.copyMessage":"Copiar mensaje","ui.message.forkMessage":"Bifurcar a nueva sesión","ui.message.revertMessage":"Restablecer a este punto","ui.message.copyResponse":"Copiar respuesta","ui.message.copied":"¡Copiado!","ui.message.interrupted":"Interrumpido","ui.message.queued":"En cola","ui.message.attachment.alt":"adjunto","ui.patch.action.deleted":"Eliminado","ui.patch.action.created":"Creado","ui.patch.action.moved":"Movido","ui.patch.action.patched":"Parcheado","ui.question.subtitle.answered":"{{count}} respondidas","ui.question.answer.none":"(sin respuesta)","ui.question.review.notAnswered":"(no respondida)","ui.question.multiHint":"Selecciona todas las que correspondan","ui.question.singleHint":"Selecciona una respuesta","ui.question.custom.placeholder":"Escribe tu respuesta...","ui.fileSearch.placeholder":"Buscar","ui.fileSearch.previousMatch":"Anterior","ui.fileSearch.nextMatch":"Siguiente","ui.fileSearch.close":"Cerrar búsqueda","ui.tool.task":"Tarea","ui.tool.skill":"Habilidad","ui.basicTool.called":"Llamado `{{tool}}`","ui.toolErrorCard.failed":"Falló","ui.toolErrorCard.copyError":"Copiar error","ui.message.duration.seconds":"{{count}}s","ui.message.duration.minutesSeconds":"{{minutes}}m {{seconds}}s"};export{e as dict};
2
2
  //# sourceMappingURL=es-DCGlYCXN.js.map