@bryanhu/codexly 0.8.0 → 0.9.0
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.
- package/CHANGELOG.md +13 -1
- package/README.md +1 -1
- package/README.zh-CN.md +1 -1
- package/dist/{chunk-NAHIDASP.js → chunk-7XFCPPAG.js} +37 -2
- package/dist/{chunk-CGZ44LHJ.js → chunk-HEWCIXCQ.js} +45 -12
- package/dist/cli.js +5 -4
- package/dist/providers/codex/index.js +1 -1
- package/dist/server/index.js +2 -2
- package/dist/web/.vite/manifest.json +40 -40
- package/dist/web/.vite/manifest.json.br +0 -0
- package/dist/web/.vite/manifest.json.gz +0 -0
- package/dist/web/assets/{chunk-BO2N2NFS-Du4ZYlrF.js → chunk-BO2N2NFS-C9-C2tVf.js} +4 -4
- package/dist/web/assets/chunk-BO2N2NFS-C9-C2tVf.js.br +0 -0
- package/dist/web/assets/chunk-BO2N2NFS-C9-C2tVf.js.gz +0 -0
- package/dist/web/assets/{code-highlighter-CsBwNeVP.js → code-highlighter-Bc0RuXH6.js} +1 -1
- package/dist/web/assets/code-highlighter-Bc0RuXH6.js.br +0 -0
- package/dist/web/assets/code-highlighter-Bc0RuXH6.js.gz +0 -0
- package/dist/web/assets/{code-languages-CPYTSY-8.js → code-languages-Dyc6uij-.js} +1 -1
- package/dist/web/assets/code-languages-Dyc6uij-.js.br +0 -0
- package/dist/web/assets/code-languages-Dyc6uij-.js.gz +0 -0
- package/dist/web/assets/{file-review-dialog-CotyuYId.js → file-review-dialog-DO97in5h.js} +2 -2
- package/dist/web/assets/file-review-dialog-DO97in5h.js.br +0 -0
- package/dist/web/assets/file-review-dialog-DO97in5h.js.gz +0 -0
- package/dist/web/assets/{git-history-panel-CUvtjCk7.js → git-history-panel-CqKWTKwH.js} +2 -2
- package/dist/web/assets/git-history-panel-CqKWTKwH.js.br +0 -0
- package/dist/web/assets/git-history-panel-CqKWTKwH.js.gz +0 -0
- package/dist/web/assets/global-settings-dialog-CcncTTuP.js +1 -0
- package/dist/web/assets/global-settings-dialog-CcncTTuP.js.br +0 -0
- package/dist/web/assets/global-settings-dialog-CcncTTuP.js.gz +0 -0
- package/dist/web/assets/{highlighted-body-OFNGDK62-BoYHrzPS.js → highlighted-body-OFNGDK62-D6sPM03A.js} +1 -1
- package/dist/web/assets/highlighted-body-OFNGDK62-D6sPM03A.js.br +0 -0
- package/dist/web/assets/highlighted-body-OFNGDK62-D6sPM03A.js.gz +0 -0
- package/dist/web/assets/{index-zqp46jqN.js → index-D07js1WI.js} +3 -3
- package/dist/web/assets/index-D07js1WI.js.br +0 -0
- package/dist/web/assets/index-D07js1WI.js.gz +0 -0
- package/dist/web/assets/{lazy-message-response-CG0j4yJD.js → lazy-message-response-BCtctszr.js} +2 -2
- package/dist/web/assets/lazy-message-response-BCtctszr.js.br +0 -0
- package/dist/web/assets/lazy-message-response-BCtctszr.js.gz +0 -0
- package/dist/web/assets/mermaid-GHXKKRXX-DPTLsg8Y.js +1 -0
- package/dist/web/assets/mermaid-GHXKKRXX-DPTLsg8Y.js.br +1 -0
- package/dist/web/assets/mermaid-GHXKKRXX-DPTLsg8Y.js.gz +0 -0
- package/dist/web/assets/{message-response-HPRWZrlE.js → message-response-Bx5gf4FU.js} +1 -1
- package/dist/web/assets/message-response-Bx5gf4FU.js.br +0 -0
- package/dist/web/assets/message-response-Bx5gf4FU.js.gz +0 -0
- package/dist/web/assets/{patch-diff-viewer-CMgdM7ny.js → patch-diff-viewer-DGu83IBP.js} +2 -2
- package/dist/web/assets/patch-diff-viewer-DGu83IBP.js.br +0 -0
- package/dist/web/assets/patch-diff-viewer-DGu83IBP.js.gz +0 -0
- package/dist/web/assets/{project-file-popup-page-DLcWrRDd.js → project-file-popup-page-CVtCt_XU.js} +1 -1
- package/dist/web/assets/project-file-popup-page-CVtCt_XU.js.br +0 -0
- package/dist/web/assets/project-file-popup-page-CVtCt_XU.js.gz +0 -0
- package/dist/web/assets/{project-source-panel-BAOR4fTj.js → project-source-panel-BEBbL2Id.js} +3 -3
- package/dist/web/assets/project-source-panel-BEBbL2Id.js.br +0 -0
- package/dist/web/assets/project-source-panel-BEBbL2Id.js.gz +0 -0
- package/dist/web/assets/{shiki-bundle-BD1THhST.js → shiki-bundle-4bLwaf7_.js} +1 -1
- package/dist/web/assets/shiki-bundle-4bLwaf7_.js.br +0 -0
- package/dist/web/assets/shiki-bundle-4bLwaf7_.js.gz +0 -0
- package/dist/web/assets/{workbench-inspector-changes-NQ5C_cXN.js → workbench-inspector-changes-BLY-8Tfn.js} +1 -1
- package/dist/web/assets/workbench-inspector-changes-BLY-8Tfn.js.br +0 -0
- package/dist/web/assets/workbench-inspector-changes-BLY-8Tfn.js.gz +0 -0
- package/dist/web/assets/{workbench-shell-B5fsrpDH.js → workbench-shell-DSfvZh4Q.js} +4 -4
- package/dist/web/assets/workbench-shell-DSfvZh4Q.js.br +0 -0
- package/dist/web/assets/workbench-shell-DSfvZh4Q.js.gz +0 -0
- package/dist/web/index.html +1 -1
- package/dist/web/index.html.br +0 -0
- package/dist/web/index.html.gz +0 -0
- package/package.json +1 -1
- package/dist/web/assets/chunk-BO2N2NFS-Du4ZYlrF.js.br +0 -0
- package/dist/web/assets/chunk-BO2N2NFS-Du4ZYlrF.js.gz +0 -0
- package/dist/web/assets/code-highlighter-CsBwNeVP.js.br +0 -0
- package/dist/web/assets/code-highlighter-CsBwNeVP.js.gz +0 -0
- package/dist/web/assets/code-languages-CPYTSY-8.js.br +0 -0
- package/dist/web/assets/code-languages-CPYTSY-8.js.gz +0 -0
- package/dist/web/assets/file-review-dialog-CotyuYId.js.br +0 -0
- package/dist/web/assets/file-review-dialog-CotyuYId.js.gz +0 -0
- package/dist/web/assets/git-history-panel-CUvtjCk7.js.br +0 -0
- package/dist/web/assets/git-history-panel-CUvtjCk7.js.gz +0 -0
- package/dist/web/assets/global-settings-dialog-B8gBgus7.js +0 -1
- package/dist/web/assets/global-settings-dialog-B8gBgus7.js.br +0 -0
- package/dist/web/assets/global-settings-dialog-B8gBgus7.js.gz +0 -0
- package/dist/web/assets/highlighted-body-OFNGDK62-BoYHrzPS.js.br +0 -0
- package/dist/web/assets/highlighted-body-OFNGDK62-BoYHrzPS.js.gz +0 -0
- package/dist/web/assets/index-zqp46jqN.js.br +0 -0
- package/dist/web/assets/index-zqp46jqN.js.gz +0 -0
- package/dist/web/assets/lazy-message-response-CG0j4yJD.js.br +0 -0
- package/dist/web/assets/lazy-message-response-CG0j4yJD.js.gz +0 -0
- package/dist/web/assets/mermaid-GHXKKRXX-BRvawXSo.js +0 -1
- package/dist/web/assets/mermaid-GHXKKRXX-BRvawXSo.js.br +0 -0
- package/dist/web/assets/mermaid-GHXKKRXX-BRvawXSo.js.gz +0 -0
- package/dist/web/assets/message-response-HPRWZrlE.js.br +0 -0
- package/dist/web/assets/message-response-HPRWZrlE.js.gz +0 -0
- package/dist/web/assets/patch-diff-viewer-CMgdM7ny.js.br +0 -0
- package/dist/web/assets/patch-diff-viewer-CMgdM7ny.js.gz +0 -0
- package/dist/web/assets/project-file-popup-page-DLcWrRDd.js.br +0 -0
- package/dist/web/assets/project-file-popup-page-DLcWrRDd.js.gz +0 -0
- package/dist/web/assets/project-source-panel-BAOR4fTj.js.br +0 -0
- package/dist/web/assets/project-source-panel-BAOR4fTj.js.gz +0 -0
- package/dist/web/assets/shiki-bundle-BD1THhST.js.br +0 -0
- package/dist/web/assets/shiki-bundle-BD1THhST.js.gz +0 -0
- package/dist/web/assets/workbench-inspector-changes-NQ5C_cXN.js.br +0 -0
- package/dist/web/assets/workbench-inspector-changes-NQ5C_cXN.js.gz +0 -0
- package/dist/web/assets/workbench-shell-B5fsrpDH.js.br +0 -0
- package/dist/web/assets/workbench-shell-B5fsrpDH.js.gz +0 -0
|
Binary file
|
|
Binary file
|
package/dist/web/index.html
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<meta name="theme-color" content="#181818" media="(prefers-color-scheme: dark)" />
|
|
8
8
|
<link rel="icon" href="/favicon.svg?v=4" type="image/svg+xml" />
|
|
9
9
|
<title>Codexly</title>
|
|
10
|
-
<script type="module" crossorigin src="/assets/index-
|
|
10
|
+
<script type="module" crossorigin src="/assets/index-D07js1WI.js"></script>
|
|
11
11
|
<link rel="modulepreload" crossorigin href="/assets/rolldown-runtime-QTnfLwEv.js">
|
|
12
12
|
<link rel="modulepreload" crossorigin href="/assets/react-runtime-CVaUQXZF.js">
|
|
13
13
|
<link rel="modulepreload" crossorigin href="/assets/bundle-mjs-rHxsej31.js">
|
package/dist/web/index.html.br
CHANGED
|
Binary file
|
package/dist/web/index.html.gz
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{i as t,t as n}from"./react-runtime-CVaUQXZF.js";import{D as r,E as i,T as a,v as o,w as s,y as c}from"./dist-Cib4eRMP.js";import{R as l,i as u,n as d,t as f,v as p}from"./tooltip-D3tWiAWP.js";import{c as m,l as h,t as g}from"./checkbox-nYXSVVQi.js";import{n as _,r as v,t as y}from"./loader-circle-B1P6CG7G.js";import{a as b,c as x,i as S,l as C,n as w,r as T,s as E,t as D}from"./workbench-pet-canvas-BLh6Qsla.js";import{t as O}from"./check-BOdEYGxk.js";import{c as ee,l as k,s as A}from"./provider-connection-queries-CSumXgIL.js";import{d as j,y as M}from"./prompt-input-controls-CJyoVdGf.js";import{t as N}from"./git-commit-horizontal-BezTHHvd.js";import{n as P,t as F}from"./lazy-message-response-CG0j4yJD.js";import{t as I}from"./upload-C2JxJnmn.js";import{H as te,K as ne,V as re,_ as ie,et as ae,f as oe,g as L,h as R,i as se,it as z,m as B,n as ce,p as le,r as ue,s as de,t as V,v as H}from"./index-zqp46jqN.js";var U=s(`book-open`,[[`path`,{d:`M12 7v14`,key:`1akyts`}],[`path`,{d:`M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z`,key:`ruj8y`}]]),W=s(`download`,[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]),G=s(`image-off`,[[`line`,{x1:`2`,x2:`22`,y1:`2`,y2:`22`,key:`a6p6uj`}],[`path`,{d:`M10.41 10.41a2 2 0 1 1-2.83-2.83`,key:`1bzlo9`}],[`line`,{x1:`13.5`,x2:`6`,y1:`13.5`,y2:`21`,key:`1q0aeu`}],[`line`,{x1:`18`,x2:`21`,y1:`12`,y2:`15`,key:`5mozeu`}],[`path`,{d:`M3.59 3.59A1.99 1.99 0 0 0 3 5v14a2 2 0 0 0 2 2h14c.55 0 1.052-.22 1.41-.59`,key:`mmje98`}],[`path`,{d:`M21 15V5a2 2 0 0 0-2-2H9`,key:`43el77`}]]),K=s(`images`,[[`path`,{d:`m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16`,key:`9kzy35`}],[`path`,{d:`M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2`,key:`1t0f0t`}],[`circle`,{cx:`13`,cy:`7`,r:`1`,fill:`currentColor`,key:`1obus6`}],[`rect`,{x:`8`,y:`2`,width:`14`,height:`14`,rx:`2`,key:`1gvhby`}]]),q=s(`monitor-cog`,[[`path`,{d:`M12 17v4`,key:`1riwvh`}],[`path`,{d:`m14.305 7.53.923-.382`,key:`1mlnsw`}],[`path`,{d:`m15.228 4.852-.923-.383`,key:`82mpwg`}],[`path`,{d:`m16.852 3.228-.383-.924`,key:`ln4sir`}],[`path`,{d:`m16.852 8.772-.383.923`,key:`1dejw0`}],[`path`,{d:`m19.148 3.228.383-.924`,key:`192kgf`}],[`path`,{d:`m19.53 9.696-.382-.924`,key:`fiavlr`}],[`path`,{d:`m20.772 4.852.924-.383`,key:`1j8mgp`}],[`path`,{d:`m20.772 7.148.924.383`,key:`zix9be`}],[`path`,{d:`M22 13v2a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7`,key:`1tnzv8`}],[`path`,{d:`M8 21h8`,key:`1ev6f3`}],[`circle`,{cx:`18`,cy:`6`,r:`3`,key:`1h7g24`}]]),fe=s(`moon`,[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`,key:`kfwtm`}]]),pe=s(`network`,[[`rect`,{x:`16`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`4q2zg0`}],[`rect`,{x:`2`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`8cvhb9`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`6`,rx:`1`,key:`1egb70`}],[`path`,{d:`M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3`,key:`1jsf9p`}],[`path`,{d:`M12 12V8`,key:`2874zd`}]]),me=s(`palette`,[[`path`,{d:`M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z`,key:`e79jfc`}],[`circle`,{cx:`13.5`,cy:`6.5`,r:`.5`,fill:`currentColor`,key:`1okk4w`}],[`circle`,{cx:`17.5`,cy:`10.5`,r:`.5`,fill:`currentColor`,key:`f64h9f`}],[`circle`,{cx:`6.5`,cy:`12.5`,r:`.5`,fill:`currentColor`,key:`qy21gx`}],[`circle`,{cx:`8.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`fotxhn`}]]),J=s(`paw-print`,[[`circle`,{cx:`11`,cy:`4`,r:`2`,key:`vol9p0`}],[`circle`,{cx:`18`,cy:`8`,r:`2`,key:`17gozi`}],[`circle`,{cx:`20`,cy:`16`,r:`2`,key:`1v9bxh`}],[`path`,{d:`M9 10a5 5 0 0 1 5 5v3.5a3.5 3.5 0 0 1-6.84 1.045Q6.52 17.48 4.46 16.84A3.5 3.5 0 0 1 5.5 10Z`,key:`1ydw1z`}]]),he=s(`server-cog`,[[`path`,{d:`m10.852 14.772-.383.923`,key:`11vil6`}],[`path`,{d:`M13.148 14.772a3 3 0 1 0-2.296-5.544l-.383-.923`,key:`1v3clb`}],[`path`,{d:`m13.148 9.228.383-.923`,key:`t2zzyc`}],[`path`,{d:`m13.53 15.696-.382-.924a3 3 0 1 1-2.296-5.544`,key:`1bxfiv`}],[`path`,{d:`m14.772 10.852.923-.383`,key:`k9m8cz`}],[`path`,{d:`m14.772 13.148.923.383`,key:`1xvhww`}],[`path`,{d:`M4.5 10H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-.5`,key:`tn8das`}],[`path`,{d:`M4.5 14H4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2h-.5`,key:`1g2pve`}],[`path`,{d:`M6 18h.01`,key:`uhywen`}],[`path`,{d:`M6 6h.01`,key:`1utrut`}],[`path`,{d:`m9.228 10.852-.923-.383`,key:`1wtb30`}],[`path`,{d:`m9.228 13.148-.923.383`,key:`1a830x`}]]),ge=s(`sun`,[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]),Y=e(t(),1),X=n(),_e=[{icon:me,id:`appearance`},{icon:K,id:`background`},{icon:J,id:`pets`},{icon:he,id:`provider`},{icon:C,id:`agent`},{icon:N,id:`commit`},{icon:q,id:`integration`},{icon:pe,id:`access`},{icon:E,id:`about`}],ve=[{ariaKey:`appearance.automaticMode`,icon:q,labelKey:`appearance.automatic`,value:`system`},{ariaKey:`appearance.lightMode`,icon:ge,labelKey:`appearance.light`,value:`light`},{ariaKey:`appearance.darkMode`,icon:fe,labelKey:`appearance.dark`,value:`dark`}];function Z({activeSection:e,children:t,id:n,title:r}){return(0,X.jsxs)(`section`,{hidden:e!==n,id:`settings-panel-${n}`,children:[(0,X.jsx)(`h3`,{className:`mb-4 text-heading font-semibold`,children:r}),(0,X.jsx)(`div`,{className:`divide-y divide-separator`,children:t})]})}function Q({alignStart:e=!1,children:t,label:n}){return(0,X.jsxs)(`div`,{className:`grid min-h-16 gap-3 py-3 sm:grid-cols-[9rem_minmax(0,1fr)] ${e?`items-start`:`items-center`}`,children:[(0,X.jsx)(`span`,{className:`text-body-small font-medium text-foreground ${e?`pt-2`:``}`,children:n}),t]})}function ye({disabled:e,enabled:t,onChange:n}){let{t:i}=r(`settings`),a=i(`fields.fastMode`);return(0,X.jsx)(Q,{label:a,children:(0,X.jsx)(g,{"aria-label":a,checked:t,disabled:e,onCheckedChange:e=>{n(e===!0)}})})}function be({ariaLabel:e,icon:t,label:n,onClick:r,selected:i}){return(0,X.jsxs)(o,{"aria-label":e,"aria-pressed":i,className:`inline-flex h-8 items-center justify-center gap-1 rounded-[5px] px-1 text-body-small font-medium transition-colors ${i?`bg-raised text-foreground shadow-control`:`text-muted-foreground hover:text-foreground`}`,onClick:r,type:`button`,variant:`ghost`,children:[(0,X.jsx)(t,{"aria-hidden":`true`,className:`hidden size-4 min-[360px]:block`}),(0,X.jsx)(`span`,{children:n})]})}function xe({activeSection:e,language:t,notificationsEnabled:n,onLanguageChange:i,onNotificationsChange:a,onThemeChange:o,theme:s}){let{t:c}=r(`settings`);return(0,X.jsxs)(Z,{activeSection:e,id:`appearance`,title:c(`sections.appearance`),children:[(0,X.jsx)(Q,{label:c(`appearance.colorMode`),children:(0,X.jsx)(`div`,{className:`grid grid-cols-3 rounded-control bg-control p-0.5`,children:ve.map(e=>(0,X.jsx)(be,{ariaLabel:c(e.ariaKey),icon:e.icon,label:c(e.labelKey),onClick:()=>{o(e.value)},selected:s===e.value},e.value))})}),(0,X.jsx)(Q,{label:c(`appearance.language`),children:(0,X.jsxs)($,{"aria-label":c(`appearance.language`),onChange:e=>{i(e.currentTarget.value)},value:t,children:[(0,X.jsx)(`option`,{value:`zh-CN`,children:c(`languages.zhCN`)}),(0,X.jsx)(`option`,{value:`en`,children:c(`languages.en`)})]})}),(0,X.jsx)(Q,{label:c(`appearance.notifications`),children:(0,X.jsxs)($,{"aria-label":c(`appearance.notifications`),onChange:e=>{a(e.currentTarget.value===`enabled`)},value:n?`enabled`:`disabled`,children:[(0,X.jsx)(`option`,{value:`enabled`,children:c(`notifications.enabled`)}),(0,X.jsx)(`option`,{value:`disabled`,children:c(`notifications.disabled`)})]})})]})}function Se({ariaLabel:e,disabled:t,models:n,onChange:r,value:i}){return(0,X.jsx)($,{"aria-label":e,disabled:t,onChange:e=>{r(e.currentTarget.value)},value:i,children:n.map(e=>(0,X.jsx)(`option`,{value:e.id,children:e.displayName},e.id))})}function Ce({ariaLabel:e,disabled:t,model:n,onChange:i,value:a}){let{t:o}=r(`settings`);return(0,X.jsx)($,{"aria-label":e,disabled:t,onChange:e=>{i(e.currentTarget.value)},value:a,children:n?.supportedReasoningEfforts.map(e=>(0,X.jsx)(`option`,{value:e.id,children:o(`effort.${e.id}`,{defaultValue:e.id})},e.id))})}function $(e){return(0,X.jsxs)(`div`,{className:`relative min-w-0`,children:[(0,X.jsx)(j,{className:`h-9 w-full max-w-none !border !border-separator-strong !bg-control px-2.5 pr-8 text-body-small text-foreground`,...e}),(0,X.jsx)(_,{"aria-hidden":`true`,className:`pointer-events-none absolute right-2.5 top-1/2 size-3.5 -translate-y-1/2 text-muted-foreground`})]})}function we(e,t,n){let r=e.find(e=>e.id===t);if(r===void 0)return{model:t,reasoningEffort:n};let i=r.supportedReasoningEfforts.some(e=>e.id===n)?n:r.defaultReasoningEffort;return{model:r.id,reasoningEffort:i}}function Te(e){return b(e)}function Ee(e,t){return S(e,t)}function De(e){let t=e.find(e=>e.isDefault)??e[0];return{approvalPolicy:`on-request`,approvalsReviewer:`user`,commitMessageModel:p,commitMessagePrompt:``,defaultOpenAppId:null,fastMode:!1,followUpBehavior:`queue`,model:t?.id??``,pet:{enabled:!1,selectedPetId:null},reasoningEffort:t?.defaultReasoningEffort??``,sandboxMode:`workspace-write`}}function Oe(){return typeof window>`u`?`system`:V(window.localStorage)}async function ke(e,t,n){await n.saveGlobalSettings(e),await n.applyBrowserSettings(t)}function Ae({notes:e,onClose:t,open:n,version:i}){let{t:a}=r(`settings`);return(0,X.jsx)(re,{onOpenChange:e=>{e||t()},open:n,children:(0,X.jsxs)(te,{"aria-labelledby":`app-release-notes-title`,className:`max-h-[min(80dvh,40rem)] max-w-2xl grid-rows-[auto_minmax(0,1fr)] overflow-hidden p-0`,children:[(0,X.jsxs)(`header`,{className:`flex items-center gap-3 px-5 pt-5`,children:[(0,X.jsx)(ne,{className:`min-w-0 flex-1`,id:`app-release-notes-title`,children:a(`about.releaseNotesTitle`,{version:i})}),(0,X.jsx)(o,{"aria-label":a(`actions.closeReleaseNotes`),onClick:t,size:`icon-sm`,type:`button`,variant:`ghost`,children:(0,X.jsx)(ae,{"aria-hidden":`true`,className:`size-4`})})]}),(0,X.jsx)(`div`,{className:`min-h-0 overflow-y-auto border-t border-separator px-5 py-4`,children:e===null?(0,X.jsx)(`p`,{className:`text-body-small text-muted-foreground`,children:a(`about.releaseNotesUnavailable`)}):(0,X.jsx)(F,{className:`text-body-small`,mode:`static`,children:e})})]})})}function je({activeSection:e,appInfo:t,error:n,isPending:i,isUpdatePending:a,onRetry:s,onUpdate:l}){let{t:u}=r(`settings`),d=(0,Y.useRef)(m()),f=(0,Y.useRef)(m()),[p,h]=(0,Y.useState)(!1),[g,_]=(0,Y.useState)(!1),[v,b]=(0,Y.useState)(!1),S=v||a===!0,C=()=>f.current.run(async()=>{h(!0);try{await s()}finally{h(!1)}});return(0,X.jsx)(Z,{activeSection:e,id:`about`,title:u(`sections.about`),children:i?(0,X.jsx)(`p`,{className:`py-5 text-body-small text-muted-foreground`,role:`status`,children:u(`about.loading`)}):n!==null||t===void 0?(0,X.jsxs)(`div`,{className:`flex items-center justify-between gap-3 py-4`,role:`alert`,children:[(0,X.jsx)(`p`,{className:`text-body-small text-danger`,children:u(`errors.appInfo`)}),(0,X.jsxs)(o,{onClick:()=>void s(),size:`sm`,type:`button`,variant:`ghost`,children:[(0,X.jsx)(k,{"aria-hidden":`true`,"data-icon":`inline-start`}),u(`about.retry`)]})]}):(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(Q,{label:u(`about.codexlyVersion`),children:(0,X.jsx)(`span`,{className:`font-mono text-body-small text-foreground`,children:t.appVersion})}),(0,X.jsx)(Q,{label:u(`about.codexVersion`),children:(0,X.jsx)(`span`,{className:`font-mono text-body-small text-foreground`,children:t.codexVersion})}),(0,X.jsx)(Q,{label:u(`about.github`),children:(0,X.jsx)(o,{asChild:!0,className:`justify-self-start`,size:`sm`,variant:`link`,children:(0,X.jsxs)(`a`,{href:`https://github.com/BryanHoo/Codexly`,rel:`noopener noreferrer`,target:`_blank`,children:[(0,X.jsx)(x,{"aria-hidden":`true`,"data-icon":`inline-start`}),`BryanHoo/Codexly`]})})}),(0,X.jsx)(Q,{alignStart:!0,label:u(`about.update`),children:(0,X.jsxs)(`div`,{className:`flex min-w-0 flex-wrap items-center gap-2 py-2`,children:[(0,X.jsx)(`p`,{className:c(`shrink-0 text-body-small`,t.status===`available`?`text-warning`:t.status===`check-failed`?`text-danger`:`text-muted-foreground`),role:t.status===`check-failed`?`alert`:`status`,children:t.status===`available`&&t.latestVersion!==null?u(`about.available`,{version:t.latestVersion}):t.status===`restart-required`?u(`about.restartRequired`):t.status===`check-failed`?u(`errors.updateCheck`):u(`about.current`)}),(0,X.jsxs)(o,{disabled:p,onClick:()=>void C(),size:`sm`,type:`button`,variant:`ghost`,children:[p?(0,X.jsx)(y,{"aria-hidden":`true`,className:`animate-spin`,"data-icon":`inline-start`}):(0,X.jsx)(k,{"aria-hidden":`true`,"data-icon":`inline-start`}),u(p?`about.checking`:`about.check`)]}),t.status===`available`&&t.latestVersion!==null?(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(o,{onClick:()=>{_(!0)},size:`sm`,type:`button`,variant:`outline`,children:[(0,X.jsx)(U,{"aria-hidden":`true`,"data-icon":`inline-start`}),u(`about.releaseNotes`)]}),(0,X.jsxs)(o,{disabled:S,onClick:()=>{let e=t.latestVersion;e!==null&&d.current.run(async()=>{b(!0);try{await l(e)}catch{}finally{b(!1)}})},size:`sm`,type:`button`,children:[S?(0,X.jsx)(y,{"aria-hidden":`true`,className:`animate-spin`,"data-icon":`inline-start`}):(0,X.jsx)(W,{"aria-hidden":`true`,"data-icon":`inline-start`}),S?u(`about.updating`):u(`about.updateTo`,{version:t.latestVersion})]})]}):null]})}),t.latestVersion===null?null:(0,X.jsx)(Ae,{notes:t.releaseNotes,onClose:()=>{_(!1)},open:g,version:t.latestVersion})]})})}function Me({activeSection:e,onLogout:t}){let{t:n}=r(`settings`),[i,a]=(0,Y.useState)(!1);return(0,X.jsx)(Z,{activeSection:e,id:`access`,title:n(`sections.access`),children:(0,X.jsx)(Q,{label:n(`access.currentSession`),children:(0,X.jsxs)(`div`,{className:`flex min-w-0 flex-col items-start gap-2 py-1`,children:[(0,X.jsx)(`p`,{className:`text-body-small text-muted-foreground`,children:n(`access.sessionDescription`)}),(0,X.jsxs)(o,{className:`inline-flex h-8 items-center gap-2 rounded-control bg-control px-3 text-body-small font-medium text-danger hover:bg-control-hover focus-visible:shadow-focus disabled:opacity-50`,disabled:i||t===void 0,onClick:()=>{t!==void 0&&(a(!0),t().catch(()=>void 0).finally(()=>{a(!1)}))},type:`button`,variant:`ghost`,children:[(0,X.jsx)(z,{"aria-hidden":`true`,"data-icon":`inline-start`}),n(i?`access.loggingOut`:`access.logout`)]})]})})})}var Ne=[];function Pe(e,t){let n=t.find(t=>t.id===e.selectedPetId)?.id??t.find(e=>e.id===`codex`)?.id??t[0]?.id;return n===void 0?{enabled:!1,selectedPetId:e.selectedPetId}:{enabled:!0,selectedPetId:n}}function Fe({pet:e}){return e.availability===`ready`?(0,X.jsx)(`span`,{className:`size-12 shrink-0 overflow-hidden`,"aria-hidden":`true`,children:(0,X.jsx)(D,{animationName:`idle`,pet:e})}):(0,X.jsx)(`span`,{className:`grid size-12 shrink-0 place-items-center rounded-control bg-control text-muted-foreground`,children:(0,X.jsx)(J,{"aria-hidden":`true`,className:`size-5`})})}function Ie({error:e,isLoading:t,onEnabledChange:n,onPetSelect:i,onRefresh:a,pets:s,settings:c}){let{t:l}=r(`settings`);return(0,X.jsxs)(`section`,{id:`settings-panel-pets`,children:[(0,X.jsxs)(`div`,{className:`mb-4 flex min-w-0 items-center justify-between gap-3`,children:[(0,X.jsx)(`h3`,{className:`text-heading font-semibold`,children:l(`sections.pets`)}),(0,X.jsxs)(o,{onClick:a,size:`sm`,type:`button`,variant:`ghost`,children:[(0,X.jsx)(k,{"aria-hidden":`true`,"data-icon":`inline-start`}),l(`pets.refresh`)]})]}),(0,X.jsxs)(`label`,{className:`flex min-h-12 items-center justify-between gap-3 border-b border-separator py-3 text-body-small font-medium`,children:[(0,X.jsx)(`span`,{children:l(`pets.enabled`)}),(0,X.jsx)(g,{"aria-label":l(`pets.enabled`),checked:c.enabled,disabled:t||s.length===0,onCheckedChange:e=>{n(e===!0)}})]}),t?(0,X.jsx)(`p`,{className:`grid min-h-36 place-items-center text-body-small text-muted-foreground`,role:`status`,children:l(`pets.loading`)}):e!==null&&s.length===0?(0,X.jsxs)(`div`,{className:`grid min-h-36 place-items-center gap-3 py-5 text-center`,role:`alert`,children:[(0,X.jsx)(`p`,{className:`text-body-small text-danger`,children:l(`pets.errors.load`)}),(0,X.jsxs)(o,{onClick:a,size:`sm`,type:`button`,variant:`outline`,children:[(0,X.jsx)(k,{"aria-hidden":`true`,"data-icon":`inline-start`}),l(`common:actions.retry`)]})]}):(0,X.jsxs)(X.Fragment,{children:[e===null?null:(0,X.jsx)(`p`,{className:`mt-3 text-body-small text-danger`,role:`alert`,children:l(`pets.errors.load`)}),(0,X.jsx)(`div`,{"aria-label":l(`pets.selectionLabel`),className:`grid gap-2 py-4 sm:grid-cols-2`,role:`radiogroup`,children:s.map(e=>{let t=c.selectedPetId===e.id;return(0,X.jsxs)(o,{"aria-checked":t,className:`h-auto min-w-0 items-center justify-start gap-3 whitespace-normal border p-3 text-left ${t?`border-brand bg-control-active text-foreground`:`border-separator-strong bg-panel text-foreground`}`,onClick:()=>{i(e.id)},role:`radio`,type:`button`,variant:`ghost`,children:[(0,X.jsx)(Fe,{pet:e}),(0,X.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,X.jsx)(`span`,{className:`block truncate font-medium`,children:e.displayName}),(0,X.jsx)(`span`,{className:`mt-0.5 line-clamp-2 block text-label text-muted-foreground`,children:e.description}),(0,X.jsxs)(`span`,{className:`mt-1 inline-flex items-center gap-1 text-label text-muted-foreground`,children:[e.availability===`ready`?null:(0,X.jsx)(W,{"aria-hidden":`true`,className:`size-3`}),l(`pets.availability.${e.availability}`)]})]})]},e.id)})})]})]})}function Le({onChange:e,settings:t}){let n=l(),r=v(T()),i=h(w(n)),a=r.data?.data??Ne,o=(0,Y.useRef)(new Set),s=i.mutate,c=(0,Y.useCallback)(e=>{o.current.has(e)||(o.current.add(e),s(e,{onError:()=>{o.current.delete(e)}}))},[s]);(0,Y.useEffect)(()=>{for(let e of a)e.availability===`downloadable`&&c(e.id)},[c,a]);let u=(n,r=t.enabled)=>{let i=a.find(e=>e.id===n);e(r?{enabled:!0,selectedPetId:n}:{enabled:!1,selectedPetId:n}),i?.availability===`downloadable`&&c(n)};return(0,X.jsx)(Ie,{error:r.error??i.error,isLoading:r.isPending,onEnabledChange:n=>{if(!n){e({enabled:!1,selectedPetId:t.selectedPetId});return}let r=Pe(t,a);r.enabled&&u(r.selectedPetId,!0)},onPetSelect:u,onRefresh:()=>{r.refetch()},pets:a,settings:t})}function Re(){return typeof window>`u`?oe:ie(window.localStorage)}function ze(){let[e,t]=(0,Y.useState)(Re),[n,r]=(0,Y.useState)([]),[i,a]=(0,Y.useState)(()=>new Set),[o,s]=(0,Y.useState)(()=>new Set);return(0,Y.useEffect)(()=>{let e=!1;return L().then(t=>{e||(r(t),a(new Set(t.map(e=>e.id))))}).catch(()=>{e||(r([]),a(new Set))}),()=>{e=!0}},[]),{addCustomBackgroundFiles:e=>{let n=e.map(e=>B(e));n.length!==0&&(r(e=>[...e,...n]),t(e=>({...e,mode:`custom`,selectedCustomImageId:n.at(-1)?.id??e.selectedCustomImageId})))},background:e,backgroundMutation:(0,Y.useMemo)(()=>({deletedImageIds:[...o],imagesToSave:n.filter(e=>!i.has(e.id))}),[n,o,i]),customBackgroundMissing:e.mode===`custom`&&(e.selectedCustomImageId===null||!n.some(t=>t.id===e.selectedCustomImageId)),customImages:n,removeCustomBackgroundImage:a=>{let o=H(n,a,e.selectedCustomImageId);r(o.images),t(e=>({...e,selectedCustomImageId:e.selectedCustomImageId===a?o.selectedCustomImageId:e.selectedCustomImageId})),i.has(a)&&s(e=>new Set(e).add(a))},selectCustomBackgroundImage:e=>{t(t=>({...t,mode:`custom`,selectedCustomImageId:e}))},setBackground:t}}var Be=[{ariaKey:`background.noneAria`,icon:G,labelKey:`background.none`,value:`none`},{ariaKey:`background.customAria`,icon:P,labelKey:`background.custom`,value:`custom`},{ariaKey:`background.bingAria`,icon:M,labelKey:`background.bing`,value:`bing`}];function Ve({ariaLabel:e,disabled:t,id:n,label:r,onChange:i,value:a}){return(0,X.jsxs)(`div`,{className:`space-y-1`,children:[(0,X.jsx)(`label`,{className:`text-label font-medium text-foreground`,htmlFor:n,children:r}),(0,X.jsxs)(`div`,{className:`grid grid-cols-[minmax(0,1fr)_3rem] items-center gap-3`,children:[(0,X.jsx)(`input`,{"aria-label":e,className:`h-11 w-full accent-brand sm:h-8`,disabled:t,id:n,max:`95`,min:`0`,onChange:e=>{i(Number(e.currentTarget.value))},step:`1`,type:`range`,value:a}),(0,X.jsxs)(`output`,{className:`text-right text-body-small tabular-nums text-muted-foreground`,htmlFor:n,children:[a,`%`]})]})]})}function He({disabled:e,image:t,onRemove:n,onSelect:i,selected:a}){let{t:s}=r(`settings`),[c,l]=(0,Y.useState)(null);return(0,Y.useEffect)(()=>{let e=URL.createObjectURL(t.blob);return l(e),()=>{URL.revokeObjectURL(e)}},[t.blob]),(0,X.jsxs)(`div`,{className:`group relative aspect-square min-w-0`,children:[(0,X.jsx)(`button`,{"aria-label":s(`background.selectImage`,{name:t.name}),"aria-pressed":a,className:`size-full overflow-hidden rounded-control border-2 bg-control outline-none transition-colors focus-visible:shadow-focus ${a?`border-brand`:`border-transparent hover:border-separator-strong`}`,disabled:e,onClick:i,type:`button`,children:c===null?null:(0,X.jsx)(`img`,{alt:``,"aria-hidden":`true`,className:`size-full object-cover`,decoding:`async`,src:c})}),a?(0,X.jsx)(`span`,{"aria-hidden":`true`,className:`pointer-events-none absolute bottom-1 left-1 grid size-5 place-items-center rounded-full bg-brand text-brand-contrast shadow-control`,children:(0,X.jsx)(O,{className:`size-3.5`})}):null,(0,X.jsxs)(f,{children:[(0,X.jsx)(u,{asChild:!0,children:(0,X.jsx)(o,{"aria-label":s(`background.deleteImage`,{name:t.name}),className:`absolute right-1 top-1 size-7 bg-dialog/95 text-foreground opacity-100 shadow-control sm:opacity-0 sm:group-hover:opacity-100 sm:group-focus-within:opacity-100`,disabled:e,onClick:n,size:`icon-sm`,type:`button`,variant:`ghost`,children:(0,X.jsx)(A,{"aria-hidden":`true`,className:`size-3.5`})})}),(0,X.jsx)(d,{children:s(`background.delete`)})]})]})}function Ue({customImages:e,disabled:t,onCustomFilesAdd:n,onCustomImageRemove:i,onCustomImageSelect:a,onPreferenceChange:s,preference:c}){let{t:l}=r(`settings`),u=(0,Y.useRef)(null),[d,f]=(0,Y.useState)(null),p=e=>{s({...c,mode:e})};return(0,X.jsxs)(`div`,{className:`min-w-0 space-y-5`,children:[(0,X.jsx)(`div`,{className:`grid grid-cols-3 rounded-control bg-control p-0.5`,children:Be.map(({ariaKey:e,icon:n,labelKey:r,value:i})=>(0,X.jsxs)(o,{"aria-label":l(e),"aria-pressed":c.mode===i,className:c.mode===i?`h-8 gap-1 px-1 text-body-small text-foreground shadow-control`:`h-8 gap-1 px-1 text-body-small`,disabled:t,onClick:()=>{p(i)},type:`button`,variant:c.mode===i?`secondary`:`ghost`,children:[(0,X.jsx)(n,{"aria-hidden":`true`,className:`hidden size-4 min-[360px]:block`}),(0,X.jsx)(`span`,{children:l(r)})]},i))}),c.mode===`custom`?(0,X.jsxs)(`div`,{className:`space-y-3`,children:[(0,X.jsxs)(`div`,{"aria-label":l(`background.galleryLabel`),className:`grid grid-cols-3 gap-2 min-[420px]:grid-cols-4 sm:grid-cols-5`,role:`group`,children:[e.map(e=>(0,X.jsx)(He,{disabled:t,image:e,onRemove:()=>{i(e.id)},onSelect:()=>{a(e.id)},selected:c.selectedCustomImageId===e.id},e.id)),(0,X.jsxs)(`button`,{"aria-label":l(`background.uploadInput`),className:`flex aspect-square min-w-0 flex-col items-center justify-center gap-1 rounded-control border border-dashed border-separator-strong bg-control text-label text-muted-foreground outline-none transition-colors hover:bg-control-hover hover:text-foreground focus-visible:shadow-focus disabled:opacity-50`,disabled:t,onClick:()=>{u.current?.click()},type:`button`,children:[(0,X.jsx)(I,{"aria-hidden":`true`,className:`size-4`}),(0,X.jsx)(`span`,{children:l(`background.upload`)})]})]}),(0,X.jsx)(`input`,{accept:`image/gif,image/jpeg,image/png,image/webp`,"aria-label":l(`background.uploadInput`),className:`hidden`,multiple:!0,onChange:e=>{let t=[...e.currentTarget.files??[]];if(t.length!==0){if(t.some(e=>!R(e))){f(l(`background.invalidImage`)),e.currentTarget.value=``;return}f(null),n(t),e.currentTarget.value=``}},ref:u,type:`file`}),e.length===0?(0,X.jsx)(`p`,{className:`text-label text-muted-foreground`,children:l(`background.uploadRequired`)}):null,d===null?null:(0,X.jsx)(`p`,{className:`text-label text-danger`,role:`alert`,children:d})]}):null,(0,X.jsxs)(`div`,{className:`space-y-3`,children:[(0,X.jsx)(Ve,{ariaLabel:l(`background.overlayOpacity`),disabled:t||c.mode===`none`,id:`background-opacity`,label:l(`background.overlayOpacityLabel`),onChange:e=>{s({...c,overlayOpacity:e})},value:c.overlayOpacity}),(0,X.jsx)(Ve,{ariaLabel:l(`background.blur`),disabled:t||c.mode===`none`,id:`background-blur`,label:l(`background.blurLabel`),onChange:e=>{s({...c,blurPercentage:e})},value:c.blurPercentage})]})]})}function We({activeSection:e,customImages:t,disabled:n,onCustomFilesAdd:i,onCustomImageRemove:a,onCustomImageSelect:o,onPreferenceChange:s,preference:c}){let{t:l}=r(`settings`);return(0,X.jsx)(Z,{activeSection:e,id:`background`,title:l(`sections.background`),children:(0,X.jsx)(`div`,{className:`py-3`,children:(0,X.jsx)(Ue,{customImages:t,disabled:n,onCustomFilesAdd:i,onCustomImageRemove:a,onCustomImageSelect:o,onPreferenceChange:s,preference:c})})})}function Ge({accessMode:e=`local`,appInfo:t,appInfoError:n=null,apps:s,error:c,fastModeAvailable:l=!1,initialSection:p=`appearance`,isAppInfoPending:h=!1,isAppUpdatePending:g=!1,isPending:_,models:v,onClose:y,onLogoutAccess:b,onRetry:x,onRetryAppInfo:S=()=>void 0,onSave:C,onUpdate:w=()=>Promise.resolve(),settings:T}){let{t:E}=r(`settings`),D=(0,Y.useRef)(m()),[O,k]=(0,Y.useState)(p),[A,j]=(0,Y.useState)(()=>T??De(v)),[M,N]=(0,Y.useState)(Oe),{addCustomBackgroundFiles:P,background:F,backgroundMutation:I,customBackgroundMissing:ie,customImages:oe,removeCustomBackgroundImage:L,selectCustomBackgroundImage:R,setBackground:z}=ze(),[B,V]=(0,Y.useState)(i),[H,U]=(0,Y.useState)(ue),[W,G]=(0,Y.useState)(!1),K=v.find(e=>e.id===A.model);(0,Y.useEffect)(()=>{T!==void 0&&j(T)},[T]);let q=()=>{W||y()};return(0,X.jsx)(re,{onOpenChange:e=>{e||q()},open:!0,children:(0,X.jsx)(te,{"aria-labelledby":`global-settings-title`,className:`h-[min(88dvh,38rem)] max-w-[54rem] overflow-hidden p-0`,onEscapeKeyDown:e=>{W&&e.preventDefault()},onInteractOutside:e=>{W&&e.preventDefault()},children:(0,X.jsxs)(`form`,{className:`grid h-full min-h-0 grid-rows-[auto_minmax(0,1fr)_auto]`,onSubmit:e=>{e.preventDefault(),!(T===void 0||_||W)&&D.current.run(async()=>{G(!0);try{await ke(A,{background:F,customBackgroundMutation:I,language:B,notificationsEnabled:H,theme:M},{applyBrowserSettings:async e=>{await le(e.background,e.customBackgroundMutation),typeof window<`u`&&ce(e.theme),se(e.notificationsEnabled),await a(e.language)},saveGlobalSettings:C}),y()}catch{}finally{G(!1)}})},children:[(0,X.jsxs)(`header`,{className:`flex h-12 items-center gap-2.5 px-4 shadow-toolbar`,children:[(0,X.jsx)(ee,{className:`size-4 text-brand`,"aria-hidden":`true`}),(0,X.jsx)(ne,{className:`min-w-0 flex-1 truncate text-heading font-semibold`,id:`global-settings-title`,children:E(`title`)}),(0,X.jsxs)(f,{children:[(0,X.jsx)(u,{asChild:!0,children:(0,X.jsx)(o,{"aria-label":E(`actions.closeDialog`),disabled:W,onClick:q,size:`icon-sm`,type:`button`,variant:`ghost`,children:(0,X.jsx)(ae,{className:`size-4`,"aria-hidden":`true`})})}),(0,X.jsx)(d,{children:E(`actions.close`)})]})]}),(0,X.jsxs)(`div`,{className:`grid min-h-0 grid-rows-[auto_minmax(0,1fr)] sm:grid-cols-[var(--ui-layout-settings-sidebar-width)_minmax(0,1fr)] sm:grid-rows-1`,children:[(0,X.jsx)(`aside`,{className:`min-w-0 bg-control px-2 py-2 sm:px-3 sm:py-4 sm:shadow-divider`,children:(0,X.jsx)(`nav`,{"aria-label":E(`navigationLabel`),className:`flex min-w-0 gap-1 overflow-x-auto sm:flex-col sm:overflow-visible`,children:_e.filter(t=>t.id!==`access`||e===`lan`).map(e=>{let t=e.icon,n=O===e.id;return(0,X.jsxs)(o,{variant:`ghost`,"aria-controls":`settings-panel-${e.id}`,"aria-current":n?`page`:void 0,className:`flex h-9 shrink-0 items-center gap-2 rounded-control px-2.5 text-left text-body-small font-medium transition-colors focus-visible:shadow-focus sm:w-full ${n?`bg-brand text-brand-contrast shadow-control`:`text-muted-foreground hover:bg-control-hover hover:text-foreground`}`,contentAlign:`start`,onClick:()=>{k(e.id)},type:`button`,children:[(0,X.jsx)(t,{"aria-hidden":`true`,className:`size-4 shrink-0`}),(0,X.jsx)(`span`,{children:E(`sections.${e.id}`)})]},e.id)})})}),(0,X.jsxs)(`div`,{className:`min-h-0 overflow-y-auto px-5 py-5 sm:px-7 sm:py-6`,children:[(0,X.jsx)(je,{activeSection:O,...t===void 0?{}:{appInfo:t},error:n,isPending:h,isUpdatePending:g,onRetry:S,onUpdate:w}),O===`provider`?(0,X.jsxs)(`section`,{id:`settings-panel-provider`,children:[(0,X.jsx)(`h3`,{className:`mb-4 text-heading font-semibold`,children:E(`sections.provider`)}),(0,X.jsx)(de,{})]}):O===`about`?null:c===null?_||T===void 0?(0,X.jsx)(`div`,{className:`grid min-h-40 place-items-center text-body-small text-muted-foreground`,role:`status`,children:E(`loading`)}):(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(xe,{activeSection:O,language:B,notificationsEnabled:H,onLanguageChange:V,onNotificationsChange:U,onThemeChange:N,theme:M}),(0,X.jsx)(We,{activeSection:O,customImages:oe,disabled:W,onCustomFilesAdd:P,onCustomImageRemove:L,onCustomImageSelect:R,onPreferenceChange:z,preference:F}),O===`pets`?(0,X.jsx)(Le,{onChange:e=>{j(t=>({...t,pet:e}))},settings:A.pet}):null,e===`lan`?(0,X.jsx)(Me,{activeSection:O,...b===void 0?{}:{onLogout:b}}):null,(0,X.jsxs)(Z,{activeSection:O,id:`agent`,title:E(`sections.agent`),children:[(0,X.jsx)(Q,{label:E(`fields.approvalPolicy`),children:(0,X.jsxs)($,{"aria-label":E(`fields.approvalPolicy`),disabled:W,onChange:e=>{let t=e.currentTarget.value;j(e=>Ee(e,t))},value:Te(A),children:[(0,X.jsx)(`option`,{value:`on-request`,children:E(`approval.onRequest`)}),(0,X.jsx)(`option`,{value:`auto-review`,children:E(`approval.autoReview`)}),(0,X.jsx)(`option`,{value:`never`,children:E(`approval.never`)})]})}),(0,X.jsx)(Q,{label:E(`fields.sandbox`),children:(0,X.jsxs)($,{"aria-label":E(`fields.sandbox`),disabled:W,onChange:e=>{let t=e.currentTarget.value;j(e=>({...e,sandboxMode:t}))},value:A.sandboxMode,children:[(0,X.jsx)(`option`,{value:`read-only`,children:E(`sandbox.readOnly`)}),(0,X.jsx)(`option`,{value:`workspace-write`,children:E(`sandbox.workspaceWrite`)}),(0,X.jsx)(`option`,{value:`danger-full-access`,children:E(`sandbox.dangerFullAccess`)})]})}),(0,X.jsx)(Q,{label:E(`fields.followUpMessages`),children:(0,X.jsxs)($,{"aria-label":E(`fields.followUpMessages`),disabled:W,onChange:e=>{let t=e.currentTarget.value;j(e=>({...e,followUpBehavior:t}))},value:A.followUpBehavior,children:[(0,X.jsx)(`option`,{value:`queue`,children:E(`followUp.queue`)}),(0,X.jsx)(`option`,{value:`steer`,children:E(`followUp.steer`)})]})}),l?(0,X.jsx)(ye,{disabled:W,enabled:A.fastMode,onChange:e=>{j(t=>({...t,fastMode:e}))}}):null,(0,X.jsx)(Q,{label:E(`fields.model`),children:(0,X.jsx)(Se,{ariaLabel:E(`fields.model`),disabled:W,models:v,onChange:e=>{j(t=>({...t,...we(v,e,t.reasoningEffort)}))},value:A.model})}),(0,X.jsx)(Q,{label:E(`fields.reasoningEffort`),children:(0,X.jsx)(Ce,{ariaLabel:E(`fields.reasoningEffort`),disabled:W||K===void 0,model:K,onChange:e=>{j(t=>({...t,reasoningEffort:e}))},value:A.reasoningEffort})})]}),(0,X.jsxs)(Z,{activeSection:O,id:`commit`,title:E(`sections.commit`),children:[(0,X.jsx)(Q,{label:E(`fields.model`),children:(0,X.jsx)(Se,{ariaLabel:E(`fields.commitModel`),disabled:W,models:v,onChange:e=>{j(t=>({...t,commitMessageModel:e}))},value:A.commitMessageModel})}),(0,X.jsx)(Q,{alignStart:!0,label:E(`fields.prompt`),children:(0,X.jsx)(`textarea`,{"aria-label":E(`fields.commitMessagePrompt`),className:`h-28 w-full resize-none rounded-control border border-separator-strong bg-panel px-3 py-2 text-body-small text-foreground outline-none focus:border-brand focus:shadow-focus disabled:opacity-50`,disabled:W,maxLength:4e3,onChange:e=>{let t=e.currentTarget.value;j(e=>({...e,commitMessagePrompt:t}))},value:A.commitMessagePrompt})})]}),(0,X.jsx)(Z,{activeSection:O,id:`integration`,title:E(`sections.integration`),children:(0,X.jsx)(Q,{label:E(`fields.defaultOpenWith`),children:(0,X.jsxs)($,{"aria-label":E(`fields.defaultOpenWith`),disabled:W,onChange:e=>{let t=e.currentTarget.value;j(e=>({...e,defaultOpenAppId:t===``?null:t}))},value:A.defaultOpenAppId??``,children:[(0,X.jsx)(`option`,{value:``,children:E(`integration.automatic`)}),s.filter(e=>e.kind!==`system-default`).map(e=>(0,X.jsx)(`option`,{value:e.id,children:e.name},e.id))]})})})]}):(0,X.jsxs)(`div`,{className:`flex min-h-40 flex-col items-center justify-center gap-3`,role:`alert`,children:[(0,X.jsx)(`p`,{className:`text-body-small text-danger`,children:E(`errors.load`)}),(0,X.jsx)(o,{variant:`ghost`,className:`h-8 rounded-control bg-control px-3 text-body-small font-medium hover:bg-control-hover`,onClick:()=>void x(),type:`button`,children:E(`common:actions.retry`)})]})]})]}),(0,X.jsxs)(`footer`,{className:`flex min-h-14 items-center justify-end gap-2 px-4 shadow-[0_-1px_0_var(--ui-color-separator)] sm:px-5`,children:[(0,X.jsx)(o,{variant:`ghost`,className:`h-8 rounded-control px-3 text-body-small text-muted-foreground hover:bg-control-hover hover:text-foreground disabled:opacity-50`,disabled:W,onClick:q,type:`button`,children:E(O===`provider`?`actions.close`:`actions.cancel`)}),O===`provider`?null:(0,X.jsx)(o,{disabled:_||W||T===void 0||ie,type:`submit`,variant:`default`,children:E(W?`actions.saving`:`actions.save`)})]})]})})})}export{Ge as GlobalSettingsDialog,we as resolveGlobalSettingsModel};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as e}from"./chunk-BO2N2NFS-Du4ZYlrF.js";export{e as Mermaid};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|