wherdr 1.3.3 → 1.3.4
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/.output/nitro.json +1 -1
- package/.output/public/_nuxt/{CP8o925U.js → BEJHMUrj.js} +1 -1
- package/.output/public/_nuxt/BOtcEDnA.js +1 -0
- package/.output/public/_nuxt/BUaYhQ2r.js +6 -0
- package/.output/public/_nuxt/{yzABg5xl.js → Bpoxvzh6.js} +1 -1
- package/.output/public/_nuxt/C25ROUa9.js +3 -0
- package/.output/public/_nuxt/CDWjMk9C.js +2 -0
- package/.output/public/_nuxt/CJKsMzIp.js +1 -0
- package/.output/public/_nuxt/CJNhn9sA.js +36 -0
- package/.output/public/_nuxt/COCvtdHN.js +89 -0
- package/.output/public/_nuxt/{Ci8N4mWR.js → CXJnLmWv.js} +1 -1
- package/.output/public/_nuxt/{DT8qZ0Wv.js → Cl45J6_Q.js} +1 -1
- package/.output/public/_nuxt/CndPDbMI.js +2 -0
- package/.output/public/_nuxt/Ctbx58Um.js +23 -0
- package/.output/public/_nuxt/{CKhgznq4.js → DMLmW6JM.js} +43 -39
- package/.output/public/_nuxt/Dl1PHLOB.js +1 -0
- package/.output/public/_nuxt/{DaaJIRB3.js → Nhex3_iH.js} +1 -1
- package/.output/public/_nuxt/OpWX45i7.js +89 -0
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/4994f3a4-4126-4f57-a9e5-c7ebb25850bc.json +1 -0
- package/.output/public/_nuxt/dTj21DMs.js +1 -0
- package/.output/public/_nuxt/entry.BohTWE-n.css +2 -0
- package/.output/public/_nuxt/{Cr3SrGky.js → kwSoIiM7.js} +1 -1
- package/.output/public/_nuxt/mkEwYka4.js +1 -0
- package/.output/public/_nuxt/pdf.min.t82Z80JU.mjs +28 -0
- package/.output/public/_nuxt/pdf.worker.min.wgc6bjNh.mjs +28 -0
- package/.output/public/_nuxt/w7Rm7unj.js +1 -0
- package/.output/public/sw.js +1 -1
- package/.output/server/chunks/_/branding.mjs +1 -1
- package/.output/server/chunks/_/files.mjs +19 -6
- package/.output/server/chunks/_/machineOrder.mjs +1 -1
- package/.output/server/chunks/_/onboarding.mjs +1 -1
- package/.output/server/chunks/_/package.mjs +3 -1
- package/.output/server/chunks/_/plugins.mjs +6 -3
- package/.output/server/chunks/_/projectBoard.mjs +4 -7
- package/.output/server/chunks/_/projectsActions.mjs +1 -1
- package/.output/server/chunks/_/projectsPlugin.mjs +24 -50
- package/.output/server/chunks/_/projectsPlugin2.mjs +57 -0
- package/.output/server/chunks/_/restart.mjs +1 -1
- package/.output/server/chunks/_/reveal.mjs +1 -1
- package/.output/server/chunks/_/selfupdate.mjs +1 -1
- package/.output/server/chunks/_/settingstabs.mjs +36 -0
- package/.output/server/chunks/_/updates.mjs +1 -1
- package/.output/server/chunks/_/worktrees.mjs +1 -1
- package/.output/server/chunks/_/ws.mjs +1 -1
- package/.output/server/chunks/nitro/nitro.mjs +840 -367
- package/.output/server/chunks/routes/api/board.get.mjs +1 -0
- package/.output/server/chunks/routes/api/chat/image.get.mjs +1 -1
- package/.output/server/chunks/routes/api/chat.get.mjs +25 -5
- package/.output/server/chunks/routes/api/choose.post.mjs +14 -14
- package/.output/server/chunks/routes/api/claude-statusline.post.mjs +1 -1
- package/.output/server/chunks/routes/api/codex-update.post.mjs +1 -1
- package/.output/server/chunks/routes/api/commands.get.mjs +3 -2
- package/.output/server/chunks/routes/api/config.get.mjs +1 -1
- package/.output/server/chunks/routes/api/dirs.get.mjs +1 -1
- package/.output/server/chunks/routes/api/dismiss-stopped.post.mjs +1 -1
- package/.output/server/chunks/routes/api/dismiss.post.mjs +1 -1
- package/.output/server/chunks/routes/api/effort.post.mjs +1 -1
- package/.output/server/chunks/routes/api/efforts.get.mjs +1 -1
- package/.output/server/chunks/routes/api/file.post.mjs +1 -1
- package/.output/server/chunks/routes/api/files/download.get.mjs +10 -3
- package/.output/server/chunks/routes/api/gitroot.get.mjs +1 -1
- package/.output/server/chunks/routes/api/index.get.mjs +1 -0
- package/.output/server/chunks/routes/api/input.post.mjs +27 -10
- package/.output/server/chunks/routes/api/interrupt.post.mjs +1 -1
- package/.output/server/chunks/routes/api/isgit.get.mjs +1 -1
- package/.output/server/chunks/routes/api/machine/awake.get.mjs +1 -1
- package/.output/server/chunks/routes/api/machine/awake.post.mjs +1 -1
- package/.output/server/chunks/routes/api/machine/rename.post.mjs +1 -1
- package/.output/server/chunks/routes/api/menu.post.mjs +4 -1
- package/.output/server/chunks/routes/api/model.post.mjs +1 -1
- package/.output/server/chunks/routes/api/models.get.mjs +1 -1
- package/.output/server/chunks/routes/api/nav.post.mjs +34 -21
- package/.output/server/chunks/routes/api/phone.get.mjs +1 -1
- package/.output/server/chunks/routes/api/phone.post.mjs +1 -1
- package/.output/server/chunks/routes/api/plugins/actions.get.mjs +2 -0
- package/.output/server/chunks/routes/api/plugins/invoke.post.mjs +2 -0
- package/.output/server/chunks/routes/api/plugins/profiles.get.mjs +2 -0
- package/.output/server/chunks/routes/api/plugins/projects.get.mjs +3 -2
- package/.output/server/chunks/routes/api/plugins/projects.post.mjs +3 -2
- package/.output/server/chunks/routes/api/plugins/thread-limits.post.mjs +1 -1
- package/.output/server/chunks/routes/api/project/inbox.get.mjs +1 -0
- package/.output/server/chunks/routes/api/project/inbox.post.mjs +1 -0
- package/.output/server/chunks/routes/api/project/memory.get.mjs +1 -0
- package/.output/server/chunks/routes/api/project/report.get.mjs +1 -0
- package/.output/server/chunks/routes/api/project/routines.get.mjs +1 -0
- package/.output/server/chunks/routes/api/project/settings.get.mjs +1 -0
- package/.output/server/chunks/routes/api/project/thread.get.mjs +1 -0
- package/.output/server/chunks/routes/api/project/thread.post.mjs +2 -0
- package/.output/server/chunks/routes/api/prompt.post.mjs +1 -1
- package/.output/server/chunks/routes/api/push/quiet.post.mjs +1 -1
- package/.output/server/chunks/routes/api/push/subscribe.post.mjs +1 -1
- package/.output/server/chunks/routes/api/push/test.post.mjs +1 -1
- package/.output/server/chunks/routes/api/push/unsubscribe.post.mjs +1 -1
- package/.output/server/chunks/routes/api/quotas.get.mjs +1 -1
- package/.output/server/chunks/routes/api/requeue.post.mjs +1 -1
- package/.output/server/chunks/routes/api/screen-key.post.mjs +13 -10
- package/.output/server/chunks/routes/api/screen.get.mjs +2 -35
- package/.output/server/chunks/routes/api/search.get.mjs +1 -1
- package/.output/server/chunks/routes/api/seen.post.mjs +1 -1
- package/.output/server/chunks/routes/api/sessions.get.mjs +1 -1
- package/.output/server/chunks/routes/api/sessions.post.mjs +1 -1
- package/.output/server/chunks/routes/api/settings-tab.post.mjs +89 -0
- package/.output/server/chunks/routes/api/space.post.mjs +1 -1
- package/.output/server/chunks/routes/api/unqueue.post.mjs +1 -1
- package/.output/server/chunks/routes/api/update.get.mjs +1 -1
- package/.output/server/chunks/routes/api/update.post.mjs +1 -1
- package/.output/server/chunks/routes/api/upload.post.mjs +1 -1
- package/.output/server/chunks/routes/icons/_name_.get.mjs +1 -1
- package/.output/server/chunks/routes/renderer.mjs +2 -2
- package/.output/server/chunks/routes/uploads/_...name_.get.mjs +1 -1
- package/.output/server/chunks/routes/ws/_..._.mjs +1 -1
- package/.output/server/chunks/routes/ws/events.mjs +1 -1
- package/.output/server/chunks/routes/ws/term.mjs +1 -1
- package/.output/server/chunks/virtual/precomputed.mjs +1 -1
- package/.output/server/index.mjs +1 -1
- package/.output/server/package.json +1 -1
- package/README.md +44 -23
- package/package.json +3 -1
- package/skills/wherdr/SKILL.md +9 -3
- package/.output/public/_nuxt/B4Yk2tB1.js +0 -23
- package/.output/public/_nuxt/BBw_0a4M.js +0 -6
- package/.output/public/_nuxt/BSy6OCIY.js +0 -1
- package/.output/public/_nuxt/BX5PM2JQ.js +0 -1
- package/.output/public/_nuxt/BgPDnf2S.js +0 -1
- package/.output/public/_nuxt/BkOxQzbS.js +0 -2
- package/.output/public/_nuxt/CWwyK2XK.js +0 -2
- package/.output/public/_nuxt/CkbmecwS.js +0 -1
- package/.output/public/_nuxt/DAg9fiVh.js +0 -89
- package/.output/public/_nuxt/DcJi16XA.js +0 -1
- package/.output/public/_nuxt/SiL1FJ5s.js +0 -3
- package/.output/public/_nuxt/VpjCgSXu.js +0 -36
- package/.output/public/_nuxt/builds/meta/c735b6c0-1bd0-47d7-a208-d310f0a06287.json +0 -1
- package/.output/public/_nuxt/dPxB2L94.js +0 -89
- package/.output/public/_nuxt/entry.CGWKmYU3.css +0 -2
- package/.output/public/_nuxt/xYX85SPI.js +0 -1
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import{A as e,B as t,Ft as n,Hn as r,Jt as i,M as a,Mn as o,N as s,Ot as c,P as l,Pt as u,Rt as d,St as f,U as p,V as m,Zt as h,b as g,fr as _,gr as v,hr as y,ht as b,j as x,ln as S,mt as C,nn as w,sn as T,wn as E,zn as D}from"./C25ROUa9.js";import{_t as O,gt as k,vt as A}from"./CDWjMk9C.js";import{B as ee,Ct as j,E as M,F as te,H as N,I as P,It as F,J as I,Kt as L,N as R,V as ne,Wt as re,b as z,ct as B,gn as ie,ht as ae,k as V,kt as H,lt as oe,pt as U,rr as se,s as W,t as ce}from"./OpWX45i7.js";import{f as le,p as ue,u as de}from"./CXJnLmWv.js";import{c as fe,r as pe}from"./BUaYhQ2r.js";import{$ as me,E as he,F as ge,Fr as _e,Hr as ve,J as ye,M as be,Mr as xe,O as Se,Q as Ce,S as we,T as G,Ur as K,Vr as q,Wr as J,Y as Te,Z as Ee,_ as De,_r as Oe,_t as ke,b as Y,dr as Ae,fr as je,ft as Me,g as Ne,gr as Pe,gt as Fe,hr as Ie,ht as Le,i as Re,ii as ze,kr as Be,lt as Ve,m as He,mr as Ue,mt as X,n as We,p as Ge,pt as Ke,q as qe,qn as Je,r as Ye,st as Xe,ut as Ze,vr as Qe,w as $e,x as et,xr as tt,y as nt,yr as rt}from"./COCvtdHN.js";import{C as it,S as at,d as ot,f as st,g as Z,l as ct,n as lt,o as ut,p as dt,t as ft,x as pt}from"./CndPDbMI.js";import{a as mt,i as ht,n as gt,r as _t,s as vt,t as yt}from"./Nhex3_iH.js";import{B as bt,C as xt,G as St,K as Ct,V as wt,W as Tt,d as Et,f as Dt,h as Ot,m as kt,p as At,q as jt,u as Mt,x as Nt,z as Pt}from"#entry";var Ft=`radio.select`;function It(e,t,n){re(Ft,n,{originalEvent:e,value:t})}var Lt=p({inheritAttrs:!1,__name:`Radio`,props:{id:{type:String,required:!1},value:{type:null,required:!1},disabled:{type:Boolean,required:!1,default:!1},checked:{type:Boolean,required:!1,default:void 0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:[`update:checked`,`select`],setup(t,{emit:i}){let o=t,u=i,d=H(o,`checked`,u,{passive:o.checked===void 0}),{value:f}=D(o),{forwardRef:p,currentElement:h}=U(),_=jt(h),v=Ct(),y=e(()=>o.id&&h.value?document.querySelector(`[for="${o.id}"]`)?.innerText:void 0);function b(e){o.disabled||It(e,o.value,e=>{u(`select`,e),!e?.defaultPrevented&&(d.value=!0,_.value&&e.stopPropagation())})}return(e,t)=>(c(),l(g,null,[m(r(B),C({id:e.id,ref:r(p),role:`radio`,type:e.as===`button`?`button`:void 0,as:e.as,"aria-checked":r(d)??!1,"aria-label":y.value,"as-child":e.asChild,disabled:e.disabled?``:void 0,"data-state":r(d)?`checked`:`unchecked`,"data-disabled":e.disabled?``:void 0,value:r(f),required:e.required,name:e.name},{...r(v),...e.$attrs},{onClick:A(b,[`stop`])}),{default:T(()=>[n(e.$slots,`default`,{checked:r(d)})]),_:3},16,[`id`,`type`,`as`,`aria-checked`,`aria-label`,`as-child`,`disabled`,`data-state`,`data-disabled`,`value`,`required`,`name`]),r(_)&&e.name?(c(),a(r(St),C({key:0,type:`radio`,tabindex:`-1`,value:r(f),checked:!!r(d),name:e.name,disabled:e.disabled,required:e.required},r(v)),null,16,[`value`,`checked`,`name`,`disabled`,`required`])):s(`v-if`,!0)],64))}}),[Rt,zt]=L(`RadioGroupRoot`),Q=p({__name:`RadioGroupRoot`,props:{modelValue:{type:null,required:!1},defaultValue:{type:null,required:!1},disabled:{type:Boolean,required:!1,default:!1},orientation:{type:String,required:!1,default:void 0},dir:{type:String,required:!1},loop:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1,default:!1}},emits:[`update:modelValue`],setup(e,{emit:t}){let i=e,o=t,{forwardRef:l,currentElement:u}=U(),d=H(i,`modelValue`,o,{defaultValue:i.defaultValue,passive:i.modelValue===void 0}),{disabled:f,loop:p,orientation:h,name:g,required:_,dir:v}=D(i),y=ae(v),b=jt(u);return zt({modelValue:d,changeModelValue:e=>{d.value=e},disabled:f,loop:p,orientation:h,name:g?.value,required:_}),(e,t)=>(c(),a(r(I),{"as-child":``,orientation:r(h),dir:r(y),loop:r(p)},{default:T(()=>[m(r(B),{ref:r(l),role:`radiogroup`,"data-disabled":r(f)?``:void 0,"as-child":e.asChild,as:e.as,"aria-orientation":r(h),"aria-required":r(_),dir:r(y)},{default:T(()=>[n(e.$slots,`default`,{modelValue:r(d)}),r(b)&&r(g)?(c(),a(r(St),{key:0,required:r(_),disabled:r(f),value:r(d),name:r(g)},null,8,[`required`,`disabled`,`value`,`name`])):s(`v-if`,!0)]),_:3},8,[`data-disabled`,`as-child`,`as`,`aria-orientation`,`aria-required`,`dir`])]),_:3},8,[`orientation`,`dir`,`loop`]))}}),[Bt,Vt]=L(`RadioGroupItem`),Ht=p({inheritAttrs:!1,__name:`RadioGroupItem`,props:{id:{type:String,required:!1},value:{type:null,required:!1},disabled:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:[`select`],setup(t,{emit:i}){let s=t,l=i,{forwardRef:u,currentElement:d}=U(),f=Rt(),p=e(()=>f.disabled.value||s.disabled),h=e(()=>f.required.value||s.required),g=e(()=>pe(f.modelValue?.value,s.value));Vt({disabled:p,checked:g});let _=o(!1),v=[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`];j(`keydown`,e=>{v.includes(e.key)&&(_.value=!0)}),j(`keyup`,()=>{_.value=!1});function y(){setTimeout(()=>{_.value&&d.value?.click()},0)}let b=Ct();return(e,t)=>(c(),a(r(vt),{checked:g.value,disabled:p.value,"as-child":``,focusable:!p.value,active:g.value},{default:T(()=>[m(Lt,C({...r(b),...e.$attrs,...s},{ref:r(u),checked:g.value,required:h.value,disabled:p.value,"onUpdate:checked":t[0]||=t=>r(f).changeModelValue(e.value),onSelect:t[1]||=e=>l(`select`,e),onKeydown:t[2]||=O(A(()=>{},[`prevent`]),[`enter`]),onFocus:y}),{default:T(()=>[n(e.$slots,`default`,{checked:g.value,required:h.value,disabled:p.value})]),_:3},16,[`checked`,`required`,`disabled`])]),_:3},8,[`checked`,`disabled`,`focusable`,`active`]))}}),Ut=p({__name:`RadioGroupIndicator`,props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`span`}},setup(e){let{forwardRef:t}=U(),i=Bt();return(e,o)=>(c(),a(r(oe),{present:e.forceMount||r(i).checked.value},{default:T(()=>[m(r(B),C({ref:r(t),"data-state":r(i).checked.value?`checked`:`unchecked`,"data-disabled":r(i).disabled.value?``:void 0,"as-child":e.asChild,as:e.as},e.$attrs),{default:T(()=>[n(e.$slots,`default`)]),_:3},16,[`data-state`,`data-disabled`,`as-child`,`as`])]),_:3},8,[`present`]))}}),Wt={slots:{root:`relative`,fieldset:`flex gap-x-2`,legend:`mb-1 block font-medium text-default`,item:`flex items-start`,container:`flex items-center`,base:`rounded-full ring ring-inset ring-accented overflow-hidden focus-visible:outline-none`,indicator:`flex items-center justify-center size-full after:bg-default after:rounded-full`,wrapper:`w-full`,label:`block font-medium text-default`,icon:`shrink-0`,description:`text-muted`},variants:{color:{primary:{indicator:`bg-primary`},neutral:{indicator:`bg-inverted`},success:{indicator:`bg-success`},warning:{indicator:`bg-warning`},error:{indicator:`bg-error`},info:{indicator:`bg-info`}},variant:{list:{fieldset:`flex-wrap`,item:``},card:{fieldset:`flex-wrap`,item:[`border border-default rounded-lg hover:not-has-disabled:not-has-focus-visible:not-has-data-[state=checked]:bg-elevated/50`,`transition-colors`]},table:{item:[`border border-default hover:not-has-disabled:not-has-focus-visible:not-has-data-[state=checked]:bg-elevated/50`,`transition-colors`]}},orientation:{horizontal:{fieldset:`flex-row`},vertical:{fieldset:`flex-col`}},indicator:{start:{item:`flex-row`,wrapper:`ms-2`},end:{item:`flex-row-reverse`,wrapper:`me-2`},hidden:{base:`sr-only`,wrapper:`flex flex-col items-center gap-1 text-center`}},size:{xs:{fieldset:`gap-y-0.5`,legend:`text-xs`,base:`size-3`,item:`text-xs`,container:`h-4`,indicator:`after:size-1`},sm:{fieldset:`gap-y-0.5`,legend:`text-xs`,base:`size-3.5`,item:`text-xs`,container:`h-4`,indicator:`after:size-1`},md:{fieldset:`gap-y-1`,legend:`text-sm`,base:`size-4`,item:`text-sm`,container:`h-5`,indicator:`after:size-1.5`},lg:{fieldset:`gap-y-1`,legend:`text-sm`,base:`size-4.5`,item:`text-sm`,container:`h-5`,indicator:`after:size-1.5`},xl:{fieldset:`gap-y-1.5`,legend:`text-base`,base:`size-5`,item:`text-base`,container:`h-6`,indicator:`after:size-2`}},highlight:{true:``,false:``},disabled:{true:{item:`opacity-75`,base:`cursor-not-allowed`,label:`cursor-not-allowed`,description:`cursor-not-allowed`}},required:{true:{legend:`after:content-['*'] after:ms-0.5 after:text-error`}}},compoundVariants:[{indicator:`hidden`,class:{container:`h-auto`}},{variant:[`card`,`table`],highlight:!1,class:{item:`hover:not-has-disabled:not-has-focus-visible:not-has-data-[state=checked]:border-accented`}},{size:`xs`,indicator:`hidden`,class:{icon:`size-3`}},{size:`sm`,indicator:`hidden`,class:{icon:`size-3.5`}},{size:`md`,indicator:`hidden`,class:{icon:`size-4`}},{size:`lg`,indicator:`hidden`,class:{icon:`size-4.5`}},{size:`xl`,indicator:`hidden`,class:{icon:`size-5`}},{size:`xs`,variant:[`card`,`table`],class:{item:`p-2.5`}},{size:`sm`,variant:[`card`,`table`],class:{item:`p-3`}},{size:`md`,variant:[`card`,`table`],class:{item:`p-3.5`}},{size:`lg`,variant:[`card`,`table`],class:{item:`p-4`}},{size:`xl`,variant:[`card`,`table`],class:{item:`p-4.5`}},{orientation:`horizontal`,variant:`table`,class:{item:`first-of-type:rounded-s-lg last-of-type:rounded-e-lg`,fieldset:`gap-0 -space-x-px`}},{orientation:`vertical`,variant:`table`,class:{item:`first-of-type:rounded-t-lg last-of-type:rounded-b-lg`,fieldset:`gap-0 -space-y-px`}},{color:`primary`,variant:`list`,indicator:[`start`,`end`],class:{base:`outline-primary/25 focus-visible:outline-solid focus-visible:outline-3 focus-visible:ring-primary`}},{color:`neutral`,variant:`list`,indicator:[`start`,`end`],class:{base:`outline-neutral/25 focus-visible:outline-solid focus-visible:outline-3 focus-visible:ring-neutral`}},{color:`success`,variant:`list`,indicator:[`start`,`end`],class:{base:`outline-success/25 focus-visible:outline-solid focus-visible:outline-3 focus-visible:ring-success`}},{color:`warning`,variant:`list`,indicator:[`start`,`end`],class:{base:`outline-warning/25 focus-visible:outline-solid focus-visible:outline-3 focus-visible:ring-warning`}},{color:`error`,variant:`list`,indicator:[`start`,`end`],class:{base:`outline-error/25 focus-visible:outline-solid focus-visible:outline-3 focus-visible:ring-error`}},{color:`info`,variant:`list`,indicator:[`start`,`end`],class:{base:`outline-info/25 focus-visible:outline-solid focus-visible:outline-3 focus-visible:ring-info`}},{color:`neutral`,variant:`list`,indicator:[`start`,`end`],class:{base:`outline-inverted/25 focus-visible:outline-solid focus-visible:outline-3 focus-visible:ring-inverted`}},{color:`primary`,variant:[`card`,`table`],class:{item:`outline-primary/25 has-focus-visible:outline-3 not-has-disabled:has-focus-visible:border-primary has-focus-visible:z-[1]`}},{color:`neutral`,variant:[`card`,`table`],class:{item:`outline-neutral/25 has-focus-visible:outline-3 not-has-disabled:has-focus-visible:border-neutral has-focus-visible:z-[1]`}},{color:`success`,variant:[`card`,`table`],class:{item:`outline-success/25 has-focus-visible:outline-3 not-has-disabled:has-focus-visible:border-success has-focus-visible:z-[1]`}},{color:`warning`,variant:[`card`,`table`],class:{item:`outline-warning/25 has-focus-visible:outline-3 not-has-disabled:has-focus-visible:border-warning has-focus-visible:z-[1]`}},{color:`error`,variant:[`card`,`table`],class:{item:`outline-error/25 has-focus-visible:outline-3 not-has-disabled:has-focus-visible:border-error has-focus-visible:z-[1]`}},{color:`info`,variant:[`card`,`table`],class:{item:`outline-info/25 has-focus-visible:outline-3 not-has-disabled:has-focus-visible:border-info has-focus-visible:z-[1]`}},{color:`neutral`,variant:[`card`,`table`],class:{item:`outline-inverted/25 has-focus-visible:outline-3 not-has-disabled:has-focus-visible:border-inverted has-focus-visible:z-[1]`}},{color:`primary`,variant:`list`,indicator:`hidden`,class:{item:`outline-primary/25 has-focus-visible:outline-3 not-has-disabled:has-focus-visible:border-primary has-focus-visible:z-[1]`}},{color:`neutral`,variant:`list`,indicator:`hidden`,class:{item:`outline-neutral/25 has-focus-visible:outline-3 not-has-disabled:has-focus-visible:border-neutral has-focus-visible:z-[1]`}},{color:`success`,variant:`list`,indicator:`hidden`,class:{item:`outline-success/25 has-focus-visible:outline-3 not-has-disabled:has-focus-visible:border-success has-focus-visible:z-[1]`}},{color:`warning`,variant:`list`,indicator:`hidden`,class:{item:`outline-warning/25 has-focus-visible:outline-3 not-has-disabled:has-focus-visible:border-warning has-focus-visible:z-[1]`}},{color:`error`,variant:`list`,indicator:`hidden`,class:{item:`outline-error/25 has-focus-visible:outline-3 not-has-disabled:has-focus-visible:border-error has-focus-visible:z-[1]`}},{color:`info`,variant:`list`,indicator:`hidden`,class:{item:`outline-info/25 has-focus-visible:outline-3 not-has-disabled:has-focus-visible:border-info has-focus-visible:z-[1]`}},{color:`neutral`,variant:`list`,indicator:`hidden`,class:{item:`outline-inverted/25 has-focus-visible:outline-3 not-has-disabled:has-focus-visible:border-inverted has-focus-visible:z-[1]`}},{color:`primary`,variant:`card`,class:{item:`has-data-[state=checked]:border-primary/50 has-data-[state=checked]:bg-primary/10`}},{color:`neutral`,variant:`card`,class:{item:`has-data-[state=checked]:border-neutral/50 has-data-[state=checked]:bg-neutral/10`}},{color:`success`,variant:`card`,class:{item:`has-data-[state=checked]:border-success/50 has-data-[state=checked]:bg-success/10`}},{color:`warning`,variant:`card`,class:{item:`has-data-[state=checked]:border-warning/50 has-data-[state=checked]:bg-warning/10`}},{color:`error`,variant:`card`,class:{item:`has-data-[state=checked]:border-error/50 has-data-[state=checked]:bg-error/10`}},{color:`info`,variant:`card`,class:{item:`has-data-[state=checked]:border-info/50 has-data-[state=checked]:bg-info/10`}},{color:`neutral`,variant:`card`,class:{item:`has-data-[state=checked]:border-inverted/50 has-data-[state=checked]:bg-elevated`}},{color:`primary`,variant:`table`,class:{item:`has-data-[state=checked]:bg-primary/10 has-data-[state=checked]:border-primary/50 has-data-[state=checked]:z-[1]`}},{color:`neutral`,variant:`table`,class:{item:`has-data-[state=checked]:bg-neutral/10 has-data-[state=checked]:border-neutral/50 has-data-[state=checked]:z-[1]`}},{color:`success`,variant:`table`,class:{item:`has-data-[state=checked]:bg-success/10 has-data-[state=checked]:border-success/50 has-data-[state=checked]:z-[1]`}},{color:`warning`,variant:`table`,class:{item:`has-data-[state=checked]:bg-warning/10 has-data-[state=checked]:border-warning/50 has-data-[state=checked]:z-[1]`}},{color:`error`,variant:`table`,class:{item:`has-data-[state=checked]:bg-error/10 has-data-[state=checked]:border-error/50 has-data-[state=checked]:z-[1]`}},{color:`info`,variant:`table`,class:{item:`has-data-[state=checked]:bg-info/10 has-data-[state=checked]:border-info/50 has-data-[state=checked]:z-[1]`}},{color:`neutral`,variant:`table`,class:{item:`has-data-[state=checked]:bg-elevated has-data-[state=checked]:border-inverted/50 has-data-[state=checked]:z-[1]`}},{variant:[`card`,`table`],disabled:!0,class:{item:`cursor-not-allowed`}},{color:`primary`,indicator:`hidden`,highlight:!0,class:{item:`not-has-disabled:border-primary not-has-disabled:has-data-[state=checked]:border-primary`}},{color:`neutral`,indicator:`hidden`,highlight:!0,class:{item:`not-has-disabled:border-neutral not-has-disabled:has-data-[state=checked]:border-neutral`}},{color:`success`,indicator:`hidden`,highlight:!0,class:{item:`not-has-disabled:border-success not-has-disabled:has-data-[state=checked]:border-success`}},{color:`warning`,indicator:`hidden`,highlight:!0,class:{item:`not-has-disabled:border-warning not-has-disabled:has-data-[state=checked]:border-warning`}},{color:`error`,indicator:`hidden`,highlight:!0,class:{item:`not-has-disabled:border-error not-has-disabled:has-data-[state=checked]:border-error`}},{color:`info`,indicator:`hidden`,highlight:!0,class:{item:`not-has-disabled:border-info not-has-disabled:has-data-[state=checked]:border-info`}},{color:`neutral`,indicator:`hidden`,highlight:!0,class:{item:`not-has-disabled:border-inverted not-has-disabled:has-data-[state=checked]:border-inverted`}},{color:`primary`,highlight:!0,class:{base:`ring-primary`}},{color:`neutral`,highlight:!0,class:{base:`ring-neutral`}},{color:`success`,highlight:!0,class:{base:`ring-success`}},{color:`warning`,highlight:!0,class:{base:`ring-warning`}},{color:`error`,highlight:!0,class:{base:`ring-error`}},{color:`info`,highlight:!0,class:{base:`ring-info`}},{color:`neutral`,highlight:!0,class:{base:`ring-inverted`}}],defaultVariants:{highlight:!1,size:`md`,color:`primary`,variant:`list`,indicator:`start`}},Gt={__name:`URadioGroup`,props:{as:{type:null,required:!1},legend:{type:String,required:!1},valueKey:{type:null,required:!1,default:`value`},labelKey:{type:null,required:!1,default:`label`},descriptionKey:{type:null,required:!1,default:`description`},items:{type:null,required:!1},modelValue:{type:null,required:!1},defaultValue:{type:null,required:!1},size:{type:null,required:!1},variant:{type:null,required:!1},color:{type:null,required:!1},highlight:{type:Boolean,required:!1},orientation:{type:null,required:!1,default:`vertical`},indicator:{type:null,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1},disabled:{type:Boolean,required:!1},loop:{type:Boolean,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:[`change`,`update:modelValue`],setup(o,{emit:f}){let p=o,y=f,b=h(),S=ne(`radioGroup`,p),w=fe(),E=ee(F(S,`as`,`loop`,`required`),y),{emitFormChange:D,emitFormInput:O,color:k,name:A,size:j,highlight:M,id:I,disabled:L,ariaAttrs:re}=P(p,{bind:!1}),z=I.value??i(),B=e(()=>k.value??S.color),ie=e(()=>M.value??S.highlight),ae=e(()=>j.value??S.size),V=e(()=>L.value??S.disabled),H=e(()=>te({extend:Wt,...w.ui?.radioGroup||{}})({size:ae.value,color:B.value,highlight:ie.value,disabled:V.value,required:S.required,orientation:S.orientation,variant:S.variant,indicator:S.indicator}));function oe(e){if(e===null)return{id:`${z}:null`,value:void 0,label:void 0};if(typeof e==`string`||typeof e==`number`||typeof e==`bigint`)return{id:`${z}:${e}`,value:String(e),label:String(e)};let t=N(e,S.valueKey),n=N(e,S.labelKey),r=N(e,S.descriptionKey);return{...e,value:t,label:n,description:r,id:`${z}:${t}`}}let U=e(()=>S.items?S.items.map(oe):[]);function se(e){return S.indicator===`hidden`?e.icon:void 0}function W(e){let t=new Event(`change`,{target:{value:e}});y(`change`,t),D(),O()}return(e,i)=>(c(),a(r(Q),C({id:r(z)},r(E),{"model-value":r(S).modelValue,"default-value":r(S).defaultValue,orientation:r(S).orientation,name:r(A),disabled:V.value,"data-slot":`root`,class:H.value.root({class:[r(S).ui?.root,r(S).class]}),"onUpdate:modelValue":W}),{default:T(()=>[x(`fieldset`,C({"data-slot":`fieldset`,class:H.value.fieldset({class:r(S).ui?.fieldset})},r(re)),[r(S).legend||b.legend?(c(),l(`legend`,{key:0,"data-slot":`legend`,class:_(H.value.legend({class:r(S).ui?.legend}))},[n(e.$slots,`legend`,{},()=>[t(v(r(S).legend),1)])],2)):s(``,!0),(c(!0),l(g,null,u(U.value,i=>(c(),a(d(!r(S).variant||r(S).variant===`list`?`div`:r(Tt)),{key:i.value,"data-slot":`item`,class:_(H.value.item({class:[r(S).ui?.item,i.ui?.item,i.class],disabled:i.disabled||V.value}))},{default:T(()=>[x(`div`,{"data-slot":`container`,class:_(H.value.container({class:[r(S).ui?.container,i.ui?.container]}))},[m(r(Ht),{id:i.id,value:i.value,disabled:i.disabled||V.value,"data-slot":`base`,class:_(H.value.base({class:[r(S).ui?.base,i.ui?.base],disabled:i.disabled||V.value}))},{default:T(()=>[m(r(Ut),{"data-slot":`indicator`,class:_(H.value.indicator({class:[r(S).ui?.indicator,i.ui?.indicator]}))},null,8,[`class`])]),_:2},1032,[`id`,`value`,`disabled`,`class`])],2),se(i)||i.label||b.label||i.description||b.description?(c(),l(`div`,{key:0,"data-slot":`wrapper`,class:_(H.value.wrapper({class:[r(S).ui?.wrapper,i.ui?.wrapper]}))},[se(i)?(c(),a(R,{key:0,name:se(i),"data-slot":`icon`,class:_(H.value.icon({class:[r(S).ui?.icon,i.ui?.icon]}))},null,8,[`name`,`class`])):s(``,!0),i.label||b.label?(c(),a(d(!r(S).variant||r(S).variant===`list`?r(Tt):`p`),{key:1,for:i.id,"data-slot":`label`,class:_(H.value.label({class:[r(S).ui?.label,i.ui?.label],disabled:i.disabled||V.value}))},{default:T(()=>[n(e.$slots,`label`,{item:i,modelValue:r(S).modelValue},()=>[t(v(i.label),1)])]),_:2},1032,[`for`,`class`])):s(``,!0),i.description||b.description?(c(),l(`p`,{key:2,"data-slot":`description`,class:_(H.value.description({class:[r(S).ui?.description,i.ui?.description],disabled:i.disabled||V.value}))},[n(e.$slots,`description`,{item:i,modelValue:r(S).modelValue},()=>[t(v(i.description),1)])],2)):s(``,!0)],2)):s(``,!0)]),_:2},1032,[`class`]))),128))],16)]),_:3},16,[`id`,`model-value`,`default-value`,`orientation`,`name`,`disabled`,`class`]))}},Kt=`J’ai trouvé la cause : le cache n’était jamais invalidé après une mise à jour. Le correctif tient en trois points :
|
|
2
|
+
|
|
3
|
+
- vider l’entrée à chaque écriture ;
|
|
4
|
+
- ajouter un test de régression ;
|
|
5
|
+
- garder la durée de vie à 5 minutes.
|
|
6
|
+
|
|
7
|
+
\`\`\`ts
|
|
8
|
+
cache.delete(key)
|
|
9
|
+
await save(item)
|
|
10
|
+
\`\`\`
|
|
11
|
+
|
|
12
|
+
Tous les tests passent.`,qt=`Found the cause: the cache was never invalidated after an update. The fix has three parts:
|
|
13
|
+
|
|
14
|
+
- clear the entry on every write;
|
|
15
|
+
- add a regression test;
|
|
16
|
+
- keep the time to live at 5 minutes.
|
|
17
|
+
|
|
18
|
+
\`\`\`ts
|
|
19
|
+
cache.delete(key)
|
|
20
|
+
await save(item)
|
|
21
|
+
\`\`\`
|
|
22
|
+
|
|
23
|
+
All tests pass.`,$=e=>e===`fr`?Kt:qt,Jt=(e,t)=>e===`off`?null:t,Yt={class:`typing-preview`},Xt=[`aria-label`,`disabled`],Zt=Object.assign(p({__name:`TypingPreview`,setup(e){let t=ce($(q)),n=o(null),i=o(null),a=o(``),s=()=>{n.value=Jt(ke.value,Date.now())};return f(()=>{i.value&&(a.value=`${i.value.offsetHeight}px`),s()}),w([ke,et],s),(e,o)=>{let u=R,d=ut,f=ft;return c(),l(`figure`,Yt,[x(`figcaption`,null,[x(`span`,null,v((`t`in e?e.t:r(K))(`Preview`)),1),m(d,{text:(`t`in e?e.t:r(K))(`Replay`)},{default:T(()=>[x(`button`,{type:`button`,class:`typing-replay`,"aria-label":(`t`in e?e.t:r(K))(`Replay`),disabled:!(`typewriterActive`in e?e.typewriterActive:r(Le)),onClick:s},[m(u,{name:`i-lucide-rotate-ccw`})],8,Xt)]),_:1},8,[`text`])]),x(`div`,{ref_key:`box`,ref:i,class:`typing-sample md`,style:y({minHeight:r(a)})},[m(f,{html:r(t),typing:r(n),onDone:o[0]||=e=>n.value=null},null,8,[`html`,`typing`])],4)])}}}),{__name:`TypingPreview`}),Qt=[`data-mode`,`data-playing`],$t=[`aria-label`,`disabled`],en={class:`qt-conv`},tn={class:`qt-agent`},nn={class:`qt-tag one`},rn={class:`qt-tag two`},an={class:`qt-sent`},on={class:`qt-sent-q`},sn={class:`qt-sent-q`},cn={class:`qt-chips`},ln={class:`qt-chip one`},un={class:`qt-chip two`},dn={class:`qt-field`},fn={class:`qt-ph`},pn={class:`qt-tok one`},mn={class:`qt-ans one`},hn={class:`qt-tok two`},gn=Object.assign(p({__name:`QuoteTokensPreview`,props:{mode:{}},setup(e){let n=e,i=o(0),a=o(!1),s=()=>{Ee.value||(i.value++,a.value=!0)};return f(s),w(()=>n.mode,s),(n,o)=>{let u=R,d=ut;return c(),l(`figure`,{class:`qt-preview`,"data-mode":e.mode,"data-playing":r(a)},[x(`figcaption`,null,[x(`span`,null,v((`t`in n?n.t:r(K))(`Preview`)),1),m(d,{text:(`t`in n?n.t:r(K))(`Replay`)},{default:T(()=>[x(`button`,{type:`button`,class:`typing-replay`,"aria-label":(`t`in n?n.t:r(K))(`Replay`),disabled:`reducedMotion`in n?n.reducedMotion:r(Ee),onClick:s},[m(u,{name:`i-lucide-rotate-ccw`})],8,$t)]),_:1},8,[`text`])]),(c(),l(`div`,{key:r(i),class:`qt-stage`,"aria-hidden":`true`,onAnimationend:o[0]||=e=>a.value=!1},[x(`div`,en,[x(`div`,tn,[x(`p`,null,[t(v((`tl`in n?n.tl:r(J))(`Tea or coffee?`,`Thé ou café ?`))+` `,1),x(`span`,nn,`↳ `+v((`t`in n?n.t:r(K))(`Reply`)),1)]),x(`p`,null,[t(v((`tl`in n?n.tl:r(J))(`And your favorite series?`,`Et ta série préférée ?`))+` `,1),x(`span`,rn,`↳ `+v((`t`in n?n.t:r(K))(`Reply`)),1)])]),x(`div`,an,[x(`span`,on,[o[1]||=x(`b`,null,`↳ 09:12`,-1),t(v((`tl`in n?n.tl:r(J))(`Tea or coffee?`,`Thé ou café ?`)),1)]),x(`span`,null,v((`tl`in n?n.tl:r(J))(`Coffee.`,`Café.`)),1),x(`span`,sn,[o[2]||=x(`b`,null,`↳ 09:12`,-1),t(v((`tl`in n?n.tl:r(J))(`And your favorite series?`,`Et ta série préférée ?`)),1)]),o[3]||=x(`span`,null,`Lost !`,-1)])]),x(`div`,cn,[x(`span`,ln,[t(v((`tl`in n?n.tl:r(J))(`Tea or coffee?`,`Thé ou café ?`)),1),o[4]||=x(`i`,null,`✕`,-1)]),x(`span`,un,[t(v((`tl`in n?n.tl:r(J))(`And your favorite series?`,`Et ta série préférée ?`)),1),o[5]||=x(`i`,null,`✕`,-1)])]),x(`div`,dn,[x(`span`,fn,v((`tl`in n?n.tl:r(J))(`Message to Claude…`,`Message à Claude…`)),1),x(`span`,pn,[o[6]||=x(`b`,null,`↳`,-1),o[7]||=x(`em`,null,`Quote point 09:12 :`,-1),x(`span`,null,v((`tl`in n?n.tl:r(J))(`Tea or coffee?`,`Thé ou café ?`)),1),o[8]||=x(`em`,null,`—`,-1)]),x(`span`,mn,v((`tl`in n?n.tl:r(J))(`Coffee.`,`Café.`)),1),x(`span`,hn,[o[9]||=x(`b`,null,`↳`,-1),o[10]||=x(`em`,null,`Quote point 09:12 :`,-1),x(`span`,null,v((`tl`in n?n.tl:r(J))(`And your favorite series?`,`Et ta série préférée ?`)),1),o[11]||=x(`em`,null,`—`,-1)]),o[12]||=x(`span`,{class:`qt-ans two`},`Lost !`,-1),o[13]||=x(`span`,{class:`qt-send`},`↑`,-1)])],32))],8,Qt)}}}),{__name:`QuoteTokensPreview`}),_n={class:`settings-group`},vn={class:`settings-card wt-card`},yn={key:0,class:`muted`},bn={key:1,class:`muted`},xn={key:2,class:`wt-list`},Sn={class:`wt-main`},Cn={class:`wt-meta`},wn={class:`wt-path`},Tn=[`disabled`,`aria-label`,`onClick`],En={key:0,class:`spinner`},Dn={class:`muted`},On=Object.assign(p({__name:`WorktreesSection`,setup(n){f(yt);let i=e(()=>!!(G.value.machines&&G.value.machines.length>1)),d=e=>(G.value.machines||[]).find(t=>t.key===e)?.label||Se.value;function p(e){return e.prunable?K(`folder missing`):e.workspace?e.agents?J(`open · ${e.agents} agent${e.agents>1?`s`:``}`,`ouvert · ${e.agents} agent${e.agents>1?`s`:``}`):J(`open`,`ouvert`):K(`closed`)}let h=o(null);async function y(e){h.value=e.path,await gt(e),h.value=null}return(e,n)=>{let o=R;return c(),l(`div`,_n,[x(`h3`,null,v((`t`in e?e.t:r(K))(`Worktrees`)),1),x(`div`,vn,[(`worktrees`in e?e.worktrees:r(ht))===null?(c(),l(`p`,yn,[...n[0]||=[x(`span`,{class:`spinner`},null,-1)]])):(`worktrees`in e?e.worktrees:r(ht)).length?(c(),l(`ul`,xn,[(c(!0),l(g,null,u(`worktrees`in e?e.worktrees:r(ht),u=>(c(),l(`li`,{key:`${u.machine}|${u.path}`,class:_({open:u.workspace,gone:u.prunable})},[x(`div`,Sn,[x(`b`,null,[m(o,{name:`i-lucide-git-branch`}),t(v((`worktreeName`in e?e.worktreeName:r(_t))(u)),1)]),x(`span`,Cn,[t(v(u.repo),1),r(i)?(c(),l(g,{key:0},[t(` · `+v(d(u.machine)),1)],64)):s(``,!0),n[1]||=t(` · `,-1),x(`i`,null,v(p(u)),1)]),x(`span`,wn,v((`shortPath`in e?e.shortPath:r(_e))(u.path)),1)]),x(`button`,{type:`button`,class:`wt-del`,disabled:r(h)===u.path,"aria-label":(`t`in e?e.t:r(K))(`Delete`),onClick:e=>y(u)},[r(h)===u.path?(c(),l(`span`,En)):(c(),a(o,{key:1,name:`i-lucide-trash-2`}))],8,Tn)],2))),128))])):(c(),l(`p`,bn,v((`t`in e?e.t:r(K))(`No worktrees.`)),1)),x(`p`,Dn,v((`t`in e?e.t:r(K))(`Deleting a worktree removes its folder; the Git branch is kept.`)),1)])])}}}),{__name:`WorktreesSection`}),kn=`afloury/herdr-projects`,An=`https://github.com/${kn}`,jn=`eliasstravik/herdr-projects`,Mn=`herdr ${[`plugin`,`install`,kn,`--ref`,`v0.2.36`,`--yes`].join(` `)}`,Nn=`herdr plugin uninstall herdr-projects && ${Mn}`,Pn=`https://github.com/${jn}/blob/main/docs/old-installs.md`,Fn={class:`settings-group projects-plugin`},In={class:`projects-plugin-intro`},Ln={class:`projects-plugin-intro`},Rn=[`href`],zn={class:`projects-plugin-head`},Bn={key:0},Vn={key:1},Hn={key:2},Un={key:3,class:`unsupported`},Wn={key:4,class:`installed`},Gn={key:5},Kn={key:0,class:`projects-plugin-note`},qn={class:`projects-plugin-actions`},Jn={key:0,class:`projects-plugin-note`},Yn={key:2,class:`plugin-input-note reload projects-plugin-reload`},Xn={key:3,class:`plugin-input-note warn projects-plugin-reload projects-plugin-unsupported`},Zn={class:`projects-plugin-command`},Qn={class:`projects-plugin-actions tight`},$n={key:4,class:`plugin-input-note warn projects-plugin-reload projects-plugin-upstream`},er={class:`projects-plugin-command`},tr={class:`projects-plugin-actions tight`},nr={key:5,class:`projects-plugin-note`},rr={class:`settings-group projects-plugin-settings`},ir={id:`project-board`,class:`projects-board-title`},ar={class:`projects-plugin-intro`},or={class:`projects-board-lists`},sr={class:`also`},cr={class:`projects-plugin-note`},lr={class:`projects-board-example`},ur={class:`projects-plugin-note`},dr={class:`projects-plugin-note`},fr={class:`settings-toggle`},pr={id:`thread-limits`,class:`projects-board-title spaced`},mr={class:`projects-plugin-intro`},hr={class:`thread-limits`},gr=[`aria-label`,`disabled`,`onClick`],_r=[`aria-label`,`disabled`,`onClick`],vr={key:0,class:`projects-plugin-note`},yr={class:`projects-plugin-note`},br={class:`projects-plugin-actions`},xr=Object.assign(p({__name:`ProjectsPluginSettings`,props:{machines:{}},setup(n){let i=n,d=o({}),f=o({}),p=o({}),h=o({}),y=o({});async function b(e){if(e.online){p.value={...p.value,[e.key]:!0};try{let t=await We(`/api/plugins/projects?machine=${encodeURIComponent(e.key)}`);d.value={...d.value,[e.key]:t},f.value={...f.value,[e.key]:``}}catch(t){f.value={...f.value,[e.key]:t.message}}finally{p.value={...p.value,[e.key]:!1}}}}w(()=>i.machines.map(e=>`${e.key}:${e.online}`).join(`|`),()=>{for(let e of i.machines)b(e)},{immediate:!0});async function S(e){if(Be(),await ie(J(`Install herdr-projects 0.2 on ${e.label}? Herdr will download the plugin from GitHub and run its installer on this machine.`,`Installer herdr-projects 0.2 sur ${e.label} ? Herdr téléchargera le plugin depuis GitHub et exécutera son installation sur cette machine.`)+` `+K(`The v0.2.36 release provides a prebuilt binary.`),K(`Install`),`primary`)){h.value={...h.value,[e.key]:!0};try{await We(`/api/plugins/projects`,{machine:e.key}),X(J(`herdr-projects installed on ${e.label}.`,`herdr-projects installé sur ${e.label}.`)),y.value={...y.value,[e.key]:!0},await b(e)}catch(e){X(e.message,!0)}finally{h.value={...h.value,[e.key]:!1}}}}async function C(e,t=Mn){Be();try{await navigator.clipboard.writeText(t),X(J(`Command copied: paste it into a terminal on ${e.label}.`,`Commande copiée : colle-la dans un terminal de ${e.label}.`))}catch{X(K(`Copy failed`),!0)}}let D=e(()=>[{icon:`i-lucide-flask-conical`,name:J(`To test`,`À tester`),also:`To test, Testing, À vérifier`,what:J(`What you must check: Confirm, Problem, Question.`,`Ce que tu dois vérifier : Confirmer, Problème, Question.`)},{icon:`i-lucide-signpost`,name:J(`To decide`,`À décider`),also:`To decide, Décisions, Questions`,what:J(`Questions only you can unblock: Question, Answer.`,`Questions que toi seul peux trancher : Question, Répondre.`)},{icon:`i-lucide-git-pull-request`,name:J(`To review`,`À relire`),also:`To review, Relire, Relecture, Review(s), PR(s), Pull requests, À valider`,what:J(`Pull requests for you to review: Reviewed sends “✓ Reviewed: …”, Comment drafts feedback.`,`PR que tu dois relire : Relu envoie « ✓ Relu : … », Commenter prépare un retour.`)},{icon:`i-lucide-activity`,name:J(`In progress`,`En cours`),also:`In progress, Doing, WIP`,what:J(`What threads are really doing: open threads, live.`,`Ce que les threads font vraiment : threads ouverts, en direct.`)},{icon:`i-lucide-list-ordered`,name:J(`In queue`,`En file`),also:`In queue, Queue, Queued, Up next, File d’attente`,what:J(`Decided: the coordinator launches the first task as soon as a thread slot frees, in list order. Move up / down, Launch now, Clarify, Remove from queue (back to To do); the header shows the thread slots in use.`,`Décidé : le coordinateur lance la première tâche dès qu’une place de thread se libère, dans l’ordre de la liste. Monter / Descendre, Lancer maintenant, Préciser, Retirer de la file (retour en À faire) ; l’en-tête montre les places de thread occupées.`)},{icon:`i-lucide-octagon-alert`,name:J(`Blocked`,`Bloqué`),also:`Bloque, Bloquée(s), Blocked, On hold, En attente, Waiting, Stuck`,what:J(`Waiting for someone or something external: optional “— blocked by: …” reason; Unblock sends a request, Clarify prepares a message.`,`Attente de quelqu’un ou de quelque chose d’extérieur : raison facultative « — bloqué par : … » ; Débloquer envoie une demande, Préciser prépare un message.`)},{icon:`i-lucide-list-todo`,name:J(`To do`,`À faire`),also:`To do, Todo, Next, Soon, Prochainement`,what:J(`To do soon, in your priority order; never launched automatically. Move up / down, Queue it, Launch now (a thread if a slot is free, otherwise first in the queue), Clarify, Back to backlog.`,`À faire bientôt, dans ton ordre de priorité ; jamais lancé automatiquement. Monter / Descendre, Mettre en file, Lancer maintenant (un thread si une place est libre, sinon en tête de file), Préciser, Remettre au backlog.`)},{icon:`i-lucide-archive`,name:`Backlog`,also:`Later, Plus tard, Idées, Ideas, Someday`,what:J(`Everything else. Launch sends the task to the coordinator; Clarify prepares a message.`,`Tout le reste. Lancer envoie la tâche au coordinateur ; Préciser prépare un message.`)},{icon:`i-lucide-circle-check`,name:J(`Done`,`Fait`),also:`Done, Terminé, Finished`,what:J(`Filled by threads marked done.`,`Remplie par les threads marqués comme faits.`)}]);async function O(e,t){Be();try{await navigator.clipboard.writeText(e),X(t)}catch{X(K(`Copy failed`),!0)}}let k=()=>q===`en`?`en`:`fr`,A=qe,ee=()=>O(z(k()),J(`Template copied: paste it into the project’s TASKS.md.`,`Modèle copié : colle-le dans TASKS.md du projet.`)),j=o({}),M=o(``),te=new Map;function N(e){j.value=Object.fromEntries(e.map(e=>[e.key,e]))}async function P(){try{N((await We(`/api/plugins/thread-limits`)).machines),M.value=``}catch(e){M.value=e.message}}P();function F(e,t){Be();let n=j.value[e.key],r=n?.max??null,i=r===null?t>0?Math.max(1,n?.open||0):null:r+t<1?null:Math.min(99,r+t);if(i===r)return;let a=n?.open||0;j.value={...j.value,[e.key]:{key:e.key,label:e.label,open:a,threads:n?.threads||[],max:i,free:i===null?null:Math.max(0,i-a)}},clearTimeout(te.get(e.key)),te.set(e.key,setTimeout(async()=>{te.delete(e.key);try{N((await We(`/api/plugins/thread-limits`,{machine:e.key,max:i})).machines)}catch(e){X(e.message,!0),P()}},450))}let I=e=>J(`${e} open thread${e===1?``:`s`} · all projects`,`${e} thread${e>1?`s`:``} ouvert${e>1?`s`:``} · tous projets`),L=()=>O(W(k()),J(`Rules copied: paste them to the coordinator.`,`Règles copiées : colle-les au coordinateur.`));return(e,i)=>{let o=R,b=V,w=Nt;return c(),l(g,null,[x(`div`,Fn,[i[6]||=x(`h3`,null,`herdr-projects`,-1),x(`p`,In,v((`tl`in e?e.tl:r(J))(`herdr-projects groups coordinators and their threads by project, adding the Project panel and worktree repositories in wherdr. The plugin is optional: agents and other wherdr features still work without it.`,`herdr-projects regroupe les coordinateurs et leurs threads par projet, avec un panneau Projet et les dépôts de worktrees dans wherdr. Le plugin est facultatif : les agents et les autres fonctions de wherdr restent utilisables sans lui.`)),1),x(`p`,Ln,v((`tl`in e?e.tl:r(J))(`wherdr works with the 0.2 line of herdr-projects, installed from the fork below. herdr-projects 1.x, a different task board, is not supported yet.`,`wherdr fonctionne avec la version 0.2 de herdr-projects, installée depuis le fork ci-dessous. herdr-projects 1.x, un autre tableau de tâches, n’est pas encore pris en charge.`)),1),x(`a`,{class:`projects-plugin-link`,href:r(An),target:`_blank`,rel:`noopener noreferrer`},[t(v((`tl`in e?e.tl:r(J))(`View plugin repository`,`Voir le dépôt du plugin`))+` `,1),m(o,{name:`i-lucide-external-link`})],8,Rn),(c(!0),l(g,null,u(n.machines,n=>(c(),l(`div`,{key:n.key,class:`projects-plugin-machine`},[x(`div`,zn,[x(`strong`,null,v(n.label),1),n.online?r(p)[n.key]&&!r(d)[n.key]?(c(),l(`span`,Vn,v((`tl`in e?e.tl:r(J))(`Checking…`,`Vérification…`)),1)):r(f)[n.key]?(c(),l(`span`,Hn,v((`tl`in e?e.tl:r(J))(`Status unavailable`,`État indisponible`)),1)):r(d)[n.key]?.unsupported?(c(),l(`span`,Un,v((`tl`in e?e.tl:r(J))(`Not supported`,`Non pris en charge`))+v(r(d)[n.key]?.version?` · v${r(d)[n.key]?.version}`:``),1)):r(d)[n.key]?.installed?(c(),l(`span`,Wn,v((`tl`in e?e.tl:r(J))(`Installed`,`Installé`))+v(r(d)[n.key]?.version?` · v${r(d)[n.key]?.version}`:``),1)):(c(),l(`span`,Gn,v((`tl`in e?e.tl:r(J))(`Not installed`,`Non installé`)),1)):(c(),l(`span`,Bn,v((`tl`in e?e.tl:r(J))(`Offline`,`Hors ligne`)),1))]),n.online&&r(f)[n.key]?(c(),l(`p`,Kn,v(r(f)[n.key]),1)):s(``,!0),n.online&&r(d)[n.key]&&!r(d)[n.key]?.installed&&!r(f)[n.key]?(c(),l(g,{key:1},[x(`div`,qn,[r(d)[n.key]?.installable?(c(),a(b,{key:0,size:`sm`,color:`primary`,icon:`i-lucide-download`,loading:r(h)[n.key],onClick:e=>S(n)},{default:T(()=>[t(v((`tl`in e?e.tl:r(J))(`Install herdr-projects`,`Installer herdr-projects`)),1)]),_:1},8,[`loading`,`onClick`])):s(``,!0),m(b,{size:`sm`,color:`neutral`,variant:`outline`,icon:`i-lucide-copy`,onClick:e=>C(n)},{default:T(()=>[t(v((`t`in e?e.t:r(K))(`Copy command`)),1)]),_:1},8,[`onClick`])]),r(d)[n.key]?.installable?s(``,!0):(c(),l(`p`,Jn,v((`tl`in e?e.tl:r(J))(`Direct installation is unavailable here: run the command on this machine.`,`Installation directe indisponible ici : lance la commande sur cette machine.`)),1))],64)):s(``,!0),r(y)[n.key]?(c(),l(`div`,Yn,[m(o,{name:`i-lucide-refresh-cw`}),x(`div`,null,[x(`strong`,null,v((`tl`in e?e.tl:r(J))(`Reload the Herdr client config`,`Recharge la config du client Herdr`)),1),x(`p`,null,[t(v((`tl`in e?e.tl:r(J))(`In the Herdr terminal: `,`Dans le terminal Herdr : `)),1),i[1]||=x(`kbd`,null,`prefix`,-1),i[2]||=t(` + `,-1),i[3]||=x(`kbd`,null,`Shift`,-1),i[4]||=t(` + `,-1),i[5]||=x(`kbd`,null,`R`,-1),t(`. `+v((`tl`in e?e.tl:r(J))(`Then run “Set up the sidebar…” from an agent’s menu to install the sidebar and the hooks.`,`Puis lance « Set up the sidebar… » depuis le menu d’un agent pour installer la barre latérale et les hooks.`)),1)])])])):s(``,!0),r(d)[n.key]?.unsupported?(c(),l(`div`,Xn,[m(o,{name:`i-lucide-triangle-alert`}),x(`div`,null,[x(`strong`,null,v((`tl`in e?e.tl:r(J))(`herdr-projects 1.x is not supported by wherdr yet`,`herdr-projects 1.x n’est pas encore pris en charge par wherdr`)),1),x(`p`,null,v((`tl`in e?e.tl:r(J))(`1.x is a different task board: wherdr reads the 0.2 line (projects, TASKS.md, threads). To get the Project panel and the Board back, uninstall it and install 0.2 on this machine:`,`La 1.x est un autre tableau de tâches : wherdr lit la version 0.2 (projets, TASKS.md, threads). Pour retrouver le panneau Projet et le Board, désinstalle-la et installe la 0.2 sur cette machine :`)),1),x(`code`,Zn,v(r(Nn)),1),x(`p`,null,v((`tl`in e?e.tl:r(J))(`If you have 0.2 projects, do not run 1.x: its first run moves ~/.herdr-projects to ~/.herdr-projects-legacy. If it already ran, its guide explains how to go back.`,`Si tu as des projets 0.2, ne lance pas la 1.x : à son premier lancement, elle déplace ~/.herdr-projects vers ~/.herdr-projects-legacy. Si elle a déjà tourné, son guide explique comment revenir en arrière.`)),1),x(`div`,Qn,[m(b,{size:`sm`,color:`neutral`,variant:`outline`,icon:`i-lucide-copy`,onClick:e=>C(n,r(Nn))},{default:T(()=>[t(v((`t`in e?e.t:r(K))(`Copy command`)),1)]),_:1},8,[`onClick`]),m(b,{size:`sm`,color:`neutral`,variant:`ghost`,icon:`i-lucide-external-link`,to:r(Pn),target:`_blank`,rel:`noopener noreferrer`},{default:T(()=>[t(v((`tl`in e?e.tl:r(J))(`Going back to 0.2`,`Revenir à la 0.2`)),1)]),_:1},8,[`to`])])])])):r(d)[n.key]?.upstream?(c(),l(`div`,$n,[m(o,{name:`i-lucide-triangle-alert`}),x(`div`,null,[x(`strong`,null,v((`tl`in e?e.tl:r(J))(`Do not run “herdr-projects update” here`,`Ne lance pas « herdr-projects update » ici`)),1),x(`p`,null,v((`tl`in e?e.tl:r(J))(`This copy comes from ${r(jn)}, whose newest release is 1.x: updating would install it, wherdr would lose its projects, and 1.x would move ~/.herdr-projects. To stay on 0.2, reinstall it from the fork (your projects stay where they are):`,`Cette copie vient de ${r(jn)}, dont la dernière version est la 1.x : la mise à jour l’installerait, wherdr perdrait ses projets et la 1.x déplacerait ~/.herdr-projects. Pour rester sur la 0.2, réinstalle-la depuis le fork (tes projets ne bougent pas) :`)),1),x(`code`,er,v(r(Nn)),1),x(`div`,tr,[m(b,{size:`sm`,color:`neutral`,variant:`outline`,icon:`i-lucide-copy`,onClick:e=>C(n,r(Nn))},{default:T(()=>[t(v((`t`in e?e.t:r(K))(`Copy command`)),1)]),_:1},8,[`onClick`])])])])):s(``,!0),r(d)[n.key]?.installed&&!r(d)[n.key]?.enabled?(c(),l(`p`,nr,v((`tl`in e?e.tl:r(J))(`The plugin is disabled in Herdr.`,`Le plugin est désactivé dans Herdr.`)),1)):s(``,!0)]))),128))]),x(`div`,rr,[x(`h3`,null,v((`tl`in e?e.tl:r(J))(`herdr-projects settings`,`Réglages herdr-projects`)),1),x(`h4`,ir,v((`tl`in e?e.tl:r(J))(`Project board`,`Tableau du projet`)),1),x(`p`,ar,v((`tl`in e?e.tl:r(J))(`The Project panel reads TASKS.md: one list per ## heading, one task per line “- [ ] title (owner)”, the owner being read but not shown. Every list is optional: each project uses the ones chosen with its coordinator (a small project may only need Backlog, In progress and Done). The panel shows the lists present, always in the order below, each with its own buttons; every button sends a message to the coordinator, which edits TASKS.md.`,`Le panneau Projet lit TASKS.md : une liste par titre ##, une tâche par ligne « - [ ] titre (responsable) », le responsable étant lu mais pas affiché. Toutes les listes sont facultatives : chaque projet utilise celles choisies avec son coordinateur (un petit projet peut se contenter de Backlog, En cours et Fait). Le panneau affiche les listes présentes, toujours dans l’ordre ci-dessous, chacune avec ses boutons ; chaque bouton envoie un message au coordinateur, qui modifie TASKS.md.`)),1),x(`ul`,or,[(c(!0),l(g,null,u(r(D),t=>(c(),l(`li`,{key:t.name},[m(o,{name:t.icon},null,8,[`name`]),x(`div`,null,[x(`strong`,null,v(t.name),1),x(`span`,sr,v((`tl`in e?e.tl:r(J))(`also`,`aussi`))+` : `+v(t.also),1),x(`p`,null,v(t.what),1)])]))),128))]),x(`p`,cr,v((`tl`in e?e.tl:r(J))(`The only task decoration: badges the coordinator chooses, anywhere in the line. “[b:color(text)]”, or “[b:color(text)](target)” for a clickable ↗ badge: target = an https:// link (new tab) or a thread ID t-0140 (opens its tab). Color: red, orange, amber, green, teal, blue, violet, pink, gray (theme-aware), a #rgb / #rrggbb hex, or nothing (neutral); at most 24 characters shown. A URL in the text becomes a plain link. The coordinator rules below tell it to use them on its own when useful.`,`Seule décoration des tâches : les badges que le coordinateur choisit, n’importe où dans la ligne. « [b:couleur(texte)] », ou « [b:couleur(texte)](cible) » pour un badge cliquable ↗ : cible = lien https:// (nouvel onglet) ou ID de thread t-0140 (ouvre son onglet). Couleur : red, orange, amber, green, teal, blue, violet, pink, gray (suivent le thème), un hex #rgb / #rrggbb, ou rien (neutre) ; 24 caractères affichés au plus. Une URL dans le texte devient un lien simple. Les règles du coordinateur ci-dessous lui disent d’en user de lui-même quand c’est utile.`)),1),x(`pre`,lr,[x(`code`,null,`- [ ] `+v((`tl`in e?e.tl:r(J))(`Stop button on iPhone`,`Bouton Stop sur iPhone`))+` [b:red(bug)] [b:gray(t-0140)](t-0140) [b:blue(PR #12)](https://github.com/owner/repo/pull/12) (me)`,1)]),x(`p`,ur,v((`tl`in e?e.tl:r(J))(`Any other ## list is shown too, in a neutral style, after Backlog.`,`Toute autre liste ## s’affiche aussi, en style neutre, après Backlog.`)),1),x(`p`,dr,v((`tl`in e?e.tl:r(J))(`The lists in TASKS.md are the active lists: to add or remove one, ask the coordinator (there is no setting in wherdr).`,`Les listes présentes dans TASKS.md sont les listes actives : pour en ajouter ou en retirer une, demande-le au coordinateur (pas de réglage dans wherdr).`)),1),x(`label`,fr,[x(`span`,null,[x(`b`,null,v((`tl`in e?e.tl:r(J))(`Hide empty lists`,`Masquer les listes vides`)),1),x(`small`,null,v((`tl`in e?e.tl:r(J))(`Show a Project panel list only when it has items (In progress and Done included). Setting specific to this device.`,`Afficher une liste du panneau Projet seulement si elle a des éléments (En cours et Fait compris). Réglage propre à cet appareil.`)),1)]),m(w,{modelValue:r(A),"onUpdate:modelValue":i[0]||=e=>E(A)?A.value=e:null,color:`success`,size:`xl`},null,8,[`modelValue`])]),x(`h4`,pr,v((`tl`in e?e.tl:r(J))(`Max threads per machine`,`Threads max par machine`)),1),x(`p`,mr,v((`tl`in e?e.tl:r(J))(`herdr-projects limits threads per project (max_parallel_threads in PROJECT.md). This limit counts the open threads of every project on a machine. — = no global limit.`,`herdr-projects limite les threads par projet (max_parallel_threads dans PROJECT.md). Cette limite compte les threads ouverts de tous les projets d’une machine. — = pas de limite globale.`)),1),x(`div`,hr,[(c(!0),l(g,null,u(n.machines,t=>(c(),l(`div`,{key:t.key,class:`settings-stepper thread-limit`},[x(`span`,null,[x(`b`,null,v(t.label),1),x(`small`,null,v(I(r(j)[t.key]?.open||0)),1)]),x(`div`,null,[x(`button`,{type:`button`,"aria-label":(`tl`in e?e.tl:r(J))(`Lower the limit of ${t.label}`,`Baisser la limite de ${t.label}`),disabled:r(j)[t.key]?.max==null,onClick:e=>F(t,-1)},`−`,8,gr),x(`output`,{class:_({full:r(j)[t.key]?.max!=null&&(r(j)[t.key]?.free??1)===0})},v(r(j)[t.key]?.max??`—`),3),x(`button`,{type:`button`,"aria-label":(`tl`in e?e.tl:r(J))(`Raise the limit of ${t.label}`,`Monter la limite de ${t.label}`),disabled:(r(j)[t.key]?.max??0)>=r(99),onClick:e=>F(t,1)},`+`,8,_r)])]))),128))]),r(M)?(c(),l(`p`,vr,v(r(M)),1)):s(``,!0),x(`p`,yr,v((`tl`in e?e.tl:r(J))(`wherdr writes ${r(mt)} in each herdr-projects folder where a coordinator runs, refreshed on every change: the coordinator rules below tell it to check the machine before starting a thread (fallback: herdr-projects overview).`,`wherdr écrit ${r(mt)} dans chaque dossier herdr-projects où tourne un coordinateur, à chaque changement : les règles du coordinateur ci-dessous lui disent de vérifier la machine avant de lancer un thread (sinon : herdr-projects overview).`)),1),x(`div`,br,[m(b,{size:`sm`,color:`neutral`,variant:`outline`,icon:`i-lucide-file-text`,onClick:ee},{default:T(()=>[t(v((`tl`in e?e.tl:r(J))(`Copy TASKS.md template`,`Copier le modèle TASKS.md`)),1)]),_:1}),m(b,{size:`sm`,color:`neutral`,variant:`outline`,icon:`i-lucide-clipboard-list`,onClick:L},{default:T(()=>[t(v((`tl`in e?e.tl:r(J))(`Copy rules for the coordinator`,`Copier les règles pour le coordinateur`)),1)]),_:1})])])],64)}}}),{__name:`ProjectsPluginSettings`}),Sr=[`appearance`,`conversation`,`terminal`,`agents`,`plugins`,`phone`,`notifications`,`security`,`desktop`,`about`];function Cr(e){let t=e.historyBack;return!e.desk&&e.section?t===`/settings`?`history`:`list`:typeof t==`string`&&t.startsWith(`/`)&&!t.startsWith(`/settings`)?`history`:`home`}var wr={id:`settings`,class:`view settings-view`},Tr={class:`top bar settings-top`},Er=[`aria-label`],Dr=[`aria-current`,`onClick`],Or={class:`settings-section-title`},kr={class:`settings-section`},Ar={class:`settings-group`},jr=[`aria-expanded`],Mr={class:`theme-sw`},Nr={class:`theme-name`},Pr=[`aria-label`],Fr=[`aria-label`],Ir={class:`theme-section-title`},Lr={class:`theme-grid`},Rr=[`aria-checked`],zr={class:`theme-sw`},Br={class:`theme-name`},Vr=[`aria-checked`,`onClick`],Hr={class:`theme-sw`},Ur={class:`theme-name`},Wr={key:0},Gr={key:1},Kr={class:`muted settings-hint`},qr={class:`settings-group`},Jr={class:`muted settings-hint`},Yr={class:`settings-group`},Xr={class:`muted settings-hint`},Zr={class:`settings-group`},Qr={class:`settings-toggle`},$r={class:`settings-toggle`},ei={class:`settings-toggle`},ti={class:`settings-toggle`},ni={class:`settings-toggle`},ri={class:`settings-group`},ii={class:`muted settings-hint`},ai={class:`eyebrow settings-subhead`},oi={class:`settings-group`},si={key:0,class:`settings-toggle`},ci={class:`muted settings-hint`},li={class:`settings-group settings-width`},ui={class:`muted settings-hint`},di={class:`settings-section`},fi={class:`settings-group settings-typing`},pi={class:`muted settings-hint`},mi={class:`settings-group`},hi={class:`muted settings-lead`},gi={class:`muted settings-hint`},_i={class:`settings-group`},vi={class:`muted settings-lead`},yi={class:`muted settings-hint`},bi={class:`settings-section`},xi={class:`settings-group`},Si={class:`settings-toggle`},Ci={class:`settings-group`},wi={class:`settings-stepper`},Ti=[`aria-label`],Ei=[`aria-label`],Di={class:`settings-group settings-renderer`},Oi={class:`muted settings-hint`},ki={class:`settings-renderer-status`,role:`status`},Ai={class:`settings-section`},ji={class:`settings-group`},Mi={class:`muted agent-pref-intro`},Ni={key:0,class:`agent-pref-list`},Pi={key:0},Fi=[`checked`,`onChange`],Ii={key:1,class:`muted agent-pref-intro`},Li={class:`muted agent-pref-note`},Ri={class:`settings-section`},zi={class:`settings-group`},Bi={class:`settings-toggle quiet-toggle`},Vi={class:`notify-caption`},Hi={key:0,class:`muted notify-hint`},Ui={class:`notify-caption`},Wi={class:`settings-group`},Gi={class:`notify-caption`},Ki={class:`muted notify-hint`},qi={class:`settings-section`},Ji={class:`settings-section`},Yi={class:`settings-section`},Xi={class:`settings-group`},Zi={key:0,class:`settings-group`},Qi={class:`muted settings-hint`},$i={key:0,class:`muted settings-hint`},ea={key:0,class:`settings-section`},ta={class:`settings-group`},na={class:`muted settings-hint`},ra={class:`settings-group`},ia={class:`settings-action-keys`},aa={class:`settings-section`},oa={class:`settings-group`},sa={class:`settings-version`},ca={key:1,class:`muted settings-hint`};function la(){ze()}var ua=Object.assign(p({__name:`SettingsView`,setup(n){let i=xt.version,d=ue(),p=lt,h=le(),C=e(()=>Sr.includes(String(h.query.section))?h.query.section:null),T={appearance:`i-lucide-palette`,conversation:`i-lucide-message-square`,terminal:`i-lucide-square-terminal`,agents:`i-lucide-bot`,plugins:`i-lucide-puzzle`,phone:`i-lucide-smartphone`,notifications:`i-lucide-bell`,security:`i-lucide-lock`,desktop:`i-lucide-monitor`,about:`i-lucide-info`},D={appearance:`Appearance`,conversation:`Conversation`,terminal:`Terminal`,agents:`Agents`,plugins:`Plugins`,phone:`Phone`,notifications:`Notifications`,security:`Security`,desktop:`Desktop`,about:`About`},O=e(()=>Sr.filter(e=>e!==`desktop`||Y.value).map(e=>({id:e,label:K(D[e]),icon:T[e]}))),A=e(()=>C.value&&O.value.some(e=>e.id===C.value)?C.value:Y.value?`appearance`:null),ee=e(()=>O.value.find(e=>e.id===A.value)?.label||K(`Settings`)),j=o(null);w(C,()=>b(()=>{j.value&&(j.value.scrollTop=0)}));function te(e){if(e===C.value)return;let t={path:`/settings`,query:{section:e}};Y.value?d.replace(t):d.push(t)}function N(){let e=Cr({desk:Y.value,section:C.value,historyBack:history.state?.back});e===`list`?d.replace(`/settings`):e===`history`?d.back():de(`/`,{replace:!0})}f(async()=>{if(Y.value||typeof history.state?.back==`string`)return;let e=h.fullPath;await d.replace(`/`),await d.push(e)});let P=o(q);w(P,e=>{e!==q&&(ve(e),location.reload())});let F=Ze,I=Xe,L=Ve,ne=Ge,re=Re,z=we,B=Te,ie=e(()=>[{label:J(`Tokens, native field`,`Jetons, champ natif`),description:J(`Each “↳ … —” line is drawn as a token in the usual field. Typing, dictation and autocorrect unchanged. Default.`,`Chaque ligne « ↳ … — » est dessinée en jeton dans le champ habituel. Saisie, dictée et correction auto inchangées. Par défaut.`),value:`native`},{label:J(`Plain text`,`Texte simple`),description:J(`The same “↳ … —” lines, shown as plain text. A fallback if the tokens misbehave.`,`Les mêmes lignes « ↳ … — », affichées en texte simple. Un secours si les jetons se comportent mal.`),value:`lines`}]),ae=me,H=e(()=>[{label:J(`Icon`,`Icône`),description:J(`A small ↳ after each question, and a grey one after each point (on hover on a computer). Default.`,`Un petit ↳ après chaque question, et un gris après chaque point (au survol sur ordinateur). Par défaut.`),value:`icon`},{label:J(`Tap the text`,`Toucher le texte`),description:J(`No button: a question is underlined, tap it. A point: click it on a computer; on a phone, tap it, then “↳ Discuss”.`,`Aucun bouton : une question est soulignée, touche-la. Un point : clique-le sur ordinateur ; sur téléphone, touche-le, puis « ↳ Discuter ».`),value:`text`},{label:J(`List under the message`,`Liste sous le message`),description:J(`A number after each question and the questions listed under the message; “+ Quote a point”, then the point.`,`Un numéro après chaque question et les questions listées sous le message ; « + Citer un point », puis le point.`),value:`list`}]),oe=e({get:()=>ke.value,set:e=>{Fe.value=e}}),U=e(()=>[{label:K(`Off`),description:K(`The reply appears at once.`),value:`off`},{label:K(`Fast`),description:K(`Original speed · 0.5 to 2 s.`),value:`fast`},{label:K(`Medium`),description:K(`Twice as slow · 1 to 4 s.`),value:`medium`},{label:K(`Slow`),description:K(`Three times as slow · 1.5 to 6 s.`),value:`slow`}]),W=Ke,ce=Ne,fe=e(()=>[{label:K(`Normal`),description:K(`760 px column · terminal fitted to width.`),value:`normal`},{label:K(`Wide`),description:K(`Up to 1100 px · terminal fitted to width.`),value:`wide`},{label:K(`Full width`),description:K(`The whole width, terminal included.`),value:`full`}]),pe=nt,_e=[{label:K(`Conversation`),description:K(`Read the transcript first.`),value:`chat`},{label:K(`Terminal`),description:K(`Type straight into the pane.`),value:`term`}],G=ye,De=e(()=>[{label:K(`Remaining`),description:K(`What is left in each window, like Codex.`),value:`left`},{label:K(`Used`),description:K(`What has been used, like Claude.`),value:`used`}]),ze=dt,qe=e(()=>[{label:K(`Border only`),description:K(`A second color glides slowly around the border.`),value:`border`},{label:K(`Halo`),description:K(`The same, with a faint glow around the field.`),value:`halo`},{label:K(`None`),description:K(`Plain 1 px border, no animation.`),value:`off`}]),et=ot,ut=st,ft=e(()=>[{label:`wherdr grid`,description:K(`Dotted grid with light packets, like wherdr.dev.`),value:`wherdr`},{label:`herdr grid`,description:K(`Flat line grid, like herdr.dev.`),value:`herdr`}]),mt=[{label:`English`,value:`en`},{label:`Français`,value:`fr`}],ht=e(()=>Ye.value.machines?.filter(e=>e.local||!!e.home&&(ge(e.key)?.status===`online`||!ge(e.key)&&e.online))||[{key:``,label:Se.value||K(`This machine`),kinds:Ye.value.kinds}]),gt=e(()=>[...new Set(ht.value.flatMap(e=>e.kinds||[]))]);function _t(e){return!he.value.includes(e)}function vt(e,t){he.value=t?he.value.filter(t=>t!==e):[...he.value,e]}function yt(e){let t=ht.value.filter(t=>t.kinds.includes(e));return t.length===ht.value.length?``:t.map(e=>e.label||K(`This machine`)).join(`, `)}let St=je,Ct=[{label:K(`Project coordinators and agents outside projects`),value:`project_leads`},{label:K(`All agents`),value:`all`}],Tt=e({get:()=>Ae.value,set:e=>{Qe(e).catch(e=>X(e.message,!0))}}),jt=Pe,Ft=o(`all`),It=o(`manual`),Lt=e(()=>[{label:J(`This device`,`Cet appareil`),value:`device`,disabled:!St.value},{label:J(`All devices`,`Tous les appareils`),value:`all`}]),Rt=[{label:J(`1 hour`,`1 heure`),value:`hour`},{label:J(`Until tomorrow morning (8 am)`,`Jusqu’à demain matin (8 h)`),value:`morning`},{label:J(`Until turned back on`,`Jusqu’à réactivation`),value:`manual`}];w(Ue,e=>{if(!e)return;Ft.value=e.scope;let t=e.quiet.until===null?null:e.quiet.until-Date.now();It.value=t===null?`manual`:t<=36e5?`hour`:`morning`},{immediate:!0});async function zt(e){try{let t=Ue.value?.scope;e&&await rt(Ft.value,!0,tt(It.value)),t&&(!e||t!==Ft.value)&&await rt(t,!1)}catch(e){X(e.message,!0)}}let Q=e({get:()=>!!Ue.value,set:e=>{zt(e)}});function Bt(e){Ft.value=e,Q.value&&zt(!0)}function Vt(e){It.value=e,Q.value&&zt(!0)}let Ht=e(()=>{let e=Ue.value;if(!e)return``;let t=e.scope===`all`?J(`all devices`,`tous les appareils`):J(`this device`,`cet appareil`);if(e.quiet.until===null)return J(`Silenced on ${t} until turned back on.`,`Silence sur ${t} jusqu’à réactivation.`);let n=new Date(e.quiet.until),r=n.toLocaleTimeString(q,{hour:`2-digit`,minute:`2-digit`});return n.toDateString()===new Date(Ie.value).toDateString()?J(`Silenced on ${t} until ${r}.`,`Silence sur ${t} jusqu’à ${r}.`):J(`Silenced on ${t} until tomorrow ${r}.`,`Silence sur ${t} jusqu’à demain ${r}.`)}),Ut=e=>e===`agents`?J(`Agents`,`Agents`):e===`herdr`?`Herdr`:`wherdr`,Wt=e=>[e.c.bg,e.c.surface,e.c.line,e.c.text,e.c.accent,e.c.blue,e.c.rose,e.c.teal],Kt=e(()=>{let e=Ye.value.herdrTheme;return e?e.autoSwitch?`${e.darkName||`catppuccin`} / ${e.lightName||`catppuccin-latte`}`:e.name||`catppuccin`:null}),qt=e(()=>at(pt(Ye.value.herdrTheme,!1).id)),$=o(!1),Jt=e(()=>Z.value===`follow`?qt.value:at(Z.value)),Yt=e(()=>Z.value===`follow`?`${K(`Follow Herdr`)}${qt.value?` · ${qt.value.label}`:``}`:Jt.value?Jt.value.label:Z.value);function Xt(e){Z.value=e,Be()}let Qt=e=>{$e.value=Math.max(8,Math.min(20,$e.value+e))},$t=[{label:`WebGL`,value:`webgl`},{label:`HTML`,value:`html`}],en=e(()=>Me.value===`html-fallback`?K(`Active rendering: HTML (WebGL unavailable)`):Me.value===`html`?K(`Active rendering: HTML`):K(`Active rendering: WebGL`));w(W,Ce);let tn=At,nn=kt,rn=e(()=>Je.map(e=>({label:e===1?K(`1 day`):e===365?K(`1 year`):J(`${e} days`,`${e} jours`),value:e}))),an=e({get:()=>tn.value?.maxSessionDays??7,set:async e=>{try{await We(`/api/auth/max-session`,{days:e}),await He()}catch(e){X(e.message,!0)}nn()}}),on=e(()=>{let e=tn.value;if(!e?.deadline)return``;let t=new Date(e.deadline+Date.now()-(e.now??Date.now())).toLocaleString(q===`fr`?`fr-FR`:`en-GB`,{weekday:`short`,day:`numeric`,month:`short`,hour:`2-digit`,minute:`2-digit`});return J(`This device asks for the passkey again at the first opening after ${t}.`,`Cet appareil redemandera la clé d’accès à la première ouverture après le ${t}.`)});return f(bt),f(()=>{Ce(),be(),jt().then(Oe),nn()}),(e,n)=>{let o=V,d=R,f=Gt,h=Nt,b=Zt,C=gn,w=On,T=Et,D=xr,le=Ot,ue=Dt,de=M,me=Pt;return c(),l(`section`,wr,[x(`header`,Tr,[m(o,{icon:`i-lucide-chevron-left`,color:`neutral`,variant:`ghost`,size:`lg`,class:`icon-btn`,"aria-label":(`t`in e?e.t:r(K))(`Back`),onClick:N},null,8,[`aria-label`]),x(`h2`,null,v((`desk`in e?e.desk:r(Y))?(`t`in e?e.t:r(K))(`Settings`):r(ee)),1)]),x(`div`,{class:_([`settings-layout`,{"section-open":r(A)}])},[x(`nav`,{class:`settings-nav`,"aria-label":(`t`in e?e.t:r(K))(`Settings sections`)},[(c(!0),l(g,null,u(r(O),e=>(c(),l(`button`,{key:e.id,type:`button`,class:_([`settings-nav-item`,{selected:r(A)===e.id}]),"aria-current":r(A)===e.id?`page`:void 0,onClick:t=>te(e.id)},[m(d,{name:e.icon},null,8,[`name`]),x(`span`,null,v(e.label),1),m(d,{name:`i-lucide-chevron-right`,class:`settings-nav-arrow`})],10,Dr))),128))],8,Er),S(x(`div`,{ref_key:`body`,ref:j,class:`settings-body`},[x(`h2`,Or,v(r(ee)),1),S(x(`div`,kr,[x(`div`,Ar,[x(`h3`,null,v((`t`in e?e.t:r(K))(`Theme`)),1),x(`button`,{type:`button`,class:`theme-opt theme-current`,"aria-expanded":r($),onClick:n[0]||=e=>$.value=!r($)},[x(`span`,Mr,[(c(!0),l(g,null,u(r(Jt)?Wt(r(Jt)):[],(e,t)=>(c(),l(`i`,{key:t,style:y({background:e})},null,4))),128))]),x(`span`,Nr,[t(v(r(Yt)),1),x(`small`,null,v((`t`in e?e.t:r(K))(r($)?`Hide themes`:`Change theme`)),1)]),m(d,{name:r($)?`i-lucide-chevron-up`:`i-lucide-chevron-down`,class:`theme-check`},null,8,[`name`])],8,jr),S(x(`div`,{class:`theme-list`,role:`radiogroup`,"aria-label":(`t`in e?e.t:r(K))(`Theme`)},[(c(!0),l(g,null,u((`themeSections`in e?e.themeSections:r(it))(),i=>(c(),l(`section`,{key:i.group,class:`theme-section`,"aria-label":Ut(i.group)},[x(`h4`,Ir,v(Ut(i.group)),1),x(`div`,Lr,[i.group===`herdr`?(c(),l(`button`,{key:0,type:`button`,role:`radio`,class:_([`theme-opt`,{on:(`themeChoice`in e?e.themeChoice:r(Z))===(`FOLLOW_HERDR`in e?e.FOLLOW_HERDR:r(ct))}]),"aria-checked":(`themeChoice`in e?e.themeChoice:r(Z))===(`FOLLOW_HERDR`in e?e.FOLLOW_HERDR:r(ct)),onClick:n[1]||=t=>Xt(`FOLLOW_HERDR`in e?e.FOLLOW_HERDR:r(`follow`))},[x(`span`,zr,[(c(!0),l(g,null,u(r(qt)?Wt(r(qt)):[],(e,t)=>(c(),l(`i`,{key:t,style:y({background:e})},null,4))),128))]),x(`span`,Br,[t(v((`t`in e?e.t:r(K))(`Follow Herdr`)),1),x(`small`,null,v(r(Kt)?`config.toml · ${r(Kt)}`:(`t`in e?e.t:r(K))(`config.toml not found`)),1)]),(`themeChoice`in e?e.themeChoice:r(Z))===(`FOLLOW_HERDR`in e?e.FOLLOW_HERDR:r(`follow`))?(c(),a(d,{key:0,name:`i-lucide-check`,class:`theme-check`})):s(``,!0)],10,Rr)):s(``,!0),(c(!0),l(g,null,u(i.themes,n=>(c(),l(`button`,{key:n.id,type:`button`,role:`radio`,class:_([`theme-opt`,{on:(`themeChoice`in e?e.themeChoice:r(Z))===n.id}]),"aria-checked":(`themeChoice`in e?e.themeChoice:r(Z))===n.id,onClick:e=>Xt(n.id)},[x(`span`,Hr,[(c(!0),l(g,null,u(Wt(n),(e,t)=>(c(),l(`i`,{key:t,style:y({background:e})},null,4))),128))]),x(`span`,Ur,[t(v(n.label),1),n.id===(`DEFAULT_THEME`in e?e.DEFAULT_THEME:r(`wherdr-titanium`))?(c(),l(`small`,Wr,v((`t`in e?e.t:r(K))(`default`)),1)):n.light?(c(),l(`small`,Gr,v((`t`in e?e.t:r(K))(`light`)),1)):s(``,!0)]),(`themeChoice`in e?e.themeChoice:r(Z))===n.id?(c(),a(d,{key:0,name:`i-lucide-check`,class:`theme-check`})):s(``,!0)],10,Vr))),128))])],8,Fr))),128))],8,Pr),[[k,r($)]])]),x(`p`,Kr,v((`t`in e?e.t:r(K))(`The theme is saved on this device.`)),1),x(`div`,qr,[x(`h3`,null,v((`t`in e?e.t:r(K))(`Message field border on focus`)),1),m(f,{modelValue:r(ze),"onUpdate:modelValue":n[2]||=e=>E(ze)?ze.value=e:null,items:r(qe),variant:`table`,indicator:`end`,color:`primary`,size:`lg`,class:`settings-radio`},null,8,[`modelValue`,`items`]),x(`p`,Jr,v((`t`in e?e.t:r(K))(`Also on omp’s running actions (border only). Frozen when the system asks for reduced motion. Saved on this device.`)),1)]),x(`div`,Yr,[x(`h3`,null,v((`t`in e?e.t:r(K))(`Language`)),1),m(f,{modelValue:r(P),"onUpdate:modelValue":n[3]||=e=>E(P)?P.value=e:null,items:mt,variant:`table`,indicator:`end`,color:`primary`,size:`lg`,class:`settings-radio`},null,8,[`modelValue`])]),x(`p`,Xr,v((`t`in e?e.t:r(K))(`The interface language is saved on this device.`)),1),x(`div`,Zr,[x(`h3`,null,v((`t`in e?e.t:r(K))(`Home screen`)),1),x(`label`,Qr,[x(`span`,null,[x(`b`,null,v((`t`in e?e.t:r(K))(`Compact list`)),1),x(`small`,null,v((`t`in e?e.t:r(K))(`One line per agent or space: no preview, folder or model; an agent waiting for an answer shows its question and answers. Computer and phone. Saved on this device.`)),1)]),m(h,{modelValue:r(ne),"onUpdate:modelValue":n[4]||=e=>E(ne)?ne.value=e:null,color:`success`,size:`xl`},null,8,[`modelValue`])]),x(`label`,$r,[x(`span`,null,[x(`b`,null,v((`t`in e?e.t:r(K))(`Reorder automatically`)),1),x(`small`,null,v((`t`in e?e.t:r(K))(`In Ready, show unread agents before read ones. Saved on this device.`)),1)]),m(h,{modelValue:r(re),"onUpdate:modelValue":n[5]||=e=>E(re)?re.value=e:null,color:`success`,size:`xl`},null,8,[`modelValue`])]),x(`label`,ei,[x(`span`,null,[x(`b`,null,v((`t`in e?e.t:r(K))(`Show terminals`)),1),x(`small`,null,v((`t`in e?e.t:r(K))(`Show terminal spaces in the list, filed under Ready.`)),1)]),m(h,{modelValue:r(F),"onUpdate:modelValue":n[6]||=e=>E(F)?F.value=e:null,color:`success`,size:`xl`},null,8,[`modelValue`])]),x(`label`,ti,[x(`span`,null,[x(`b`,null,v((`t`in e?e.t:r(K))(`Show counters`)),1),x(`small`,null,v((`t`in e?e.t:r(K))(`Show agent counters on the home screen.`)),1)]),m(h,{modelValue:r(I),"onUpdate:modelValue":n[7]||=e=>E(I)?I.value=e:null,color:`success`,size:`xl`},null,8,[`modelValue`])]),x(`label`,ni,[x(`span`,null,[x(`b`,null,v((`t`in e?e.t:r(K))(`Show quotas`)),1),x(`small`,null,v((`t`in e?e.t:r(K))(`Show Claude and Codex quotas on the home screen.`)),1)]),m(h,{modelValue:r(L),"onUpdate:modelValue":n[8]||=e=>E(L)?L.value=e:null,color:`success`,size:`xl`},null,8,[`modelValue`])])]),x(`div`,ri,[x(`h3`,null,v((`t`in e?e.t:r(K))(`Quotas`)),1),m(f,{modelValue:r(G),"onUpdate:modelValue":n[9]||=e=>E(G)?G.value=e:null,items:r(De),variant:`table`,indicator:`end`,color:`primary`,size:`lg`,class:`settings-radio`},null,8,[`modelValue`,`items`]),x(`p`,ii,v((`t`in e?e.t:r(K))(`The color always flags a nearly exhausted quota. Saved on this device.`)),1)]),(`desk`in e?e.desk:r(Y))?(c(),l(g,{key:0},[x(`div`,ai,[x(`span`,null,v((`t`in e?e.t:r(K))(`Desktop`)),1)]),x(`div`,oi,[x(`h3`,null,v((`t`in e?e.t:r(K))(`Background`)),1),m(f,{modelValue:r(et),"onUpdate:modelValue":n[10]||=e=>E(et)?et.value=e:null,items:r(ft),variant:`table`,indicator:`end`,color:`primary`,size:`lg`,class:`settings-radio`},null,8,[`modelValue`,`items`]),r(et)===`wherdr`?(c(),l(`label`,si,[x(`span`,null,[x(`b`,null,v((`t`in e?e.t:r(K))(`Animated packets`)),1),x(`small`,null,v((`t`in e?e.t:r(K))(`Small glowing squares running along the wherdr grid.`)),1)]),m(h,{modelValue:r(ut),"onUpdate:modelValue":n[11]||=e=>E(ut)?ut.value=e:null,color:`success`,size:`xl`},null,8,[`modelValue`])])):s(``,!0),x(`p`,ci,v((`t`in e?e.t:r(K))(`In the margins of the conversation. Still when the system asks for reduced motion. Saved on this device.`)),1)]),x(`div`,li,[x(`h3`,null,v((`t`in e?e.t:r(K))(`Content width`)),1),m(f,{modelValue:r(ce),"onUpdate:modelValue":n[12]||=e=>E(ce)?ce.value=e:null,items:r(fe),variant:`table`,indicator:`end`,color:`primary`,size:`lg`,class:`settings-radio`},null,8,[`modelValue`,`items`]),x(`p`,ui,v((`t`in e?e.t:r(K))(`Conversation, terminal, settings and other content. Saved on this device.`)),1)])],64)):s(``,!0)],512),[[k,r(A)===`appearance`]]),S(x(`div`,di,[x(`div`,fi,[x(`h3`,null,v((`t`in e?e.t:r(K))(`Typewriter`)),1),m(f,{modelValue:r(oe),"onUpdate:modelValue":n[13]||=e=>E(oe)?oe.value=e:null,items:r(U),variant:`table`,indicator:`end`,color:`primary`,size:`lg`,class:`settings-radio`,disabled:`reducedMotion`in e?e.reducedMotion:r(Ee)},null,8,[`modelValue`,`items`,`disabled`]),x(`p`,pi,v((`t`in e?e.t:r(K))((`reducedMotion`in e?e.reducedMotion:r(Ee))?`Off: the system asks for reduced motion.`:`Only new replies are animated; history appears at once. Tap a reply while it types to show it in full. Saved on this device only.`)),1),x(`label`,{class:_([`settings-toggle encrypted-toggle`,{"is-disabled":!(`typewriterActive`in e?e.typewriterActive:r(Le))}])},[x(`span`,null,[x(`b`,null,v((`t`in e?e.t:r(K))(`Encrypted text`)),1),x(`small`,null,v((`t`in e?e.t:r(K))(`Writing advances in glyphs, then the text decrypts behind it.`)),1)]),m(h,{modelValue:r(z),"onUpdate:modelValue":n[14]||=e=>E(z)?z.value=e:null,disabled:!(`typewriterActive`in e?e.typewriterActive:r(Le)),color:`success`,size:`xl`},null,8,[`modelValue`,`disabled`])],2),r(A)===`conversation`?(c(),a(b,{key:0})):s(``,!0)]),x(`div`,mi,[x(`h3`,null,v((`tl`in e?e.tl:r(J))(`Reply style`,`Style de réponse`)),1),x(`p`,hi,v((`tl`in e?e.tl:r(J))(`Each question an agent asks, and each point it lists, can be quoted in the field to answer them one by one. Choose how they offer it.`,`Chaque question d’un agent, et chaque point qu’il liste, peut être cité dans le champ pour y répondre un par un. Choisis comment ils le proposent.`)),1),m(f,{modelValue:r(ae),"onUpdate:modelValue":n[15]||=e=>E(ae)?ae.value=e:null,items:r(H),variant:`table`,indicator:`end`,color:`primary`,size:`lg`,class:`settings-radio reply-style-radio`},null,8,[`modelValue`,`items`]),x(`p`,gi,v((`tl`in e?e.tl:r(J))(`Saved on this device.`,`Enregistré sur cet appareil.`)),1)]),x(`div`,_i,[x(`h3`,null,v((`tl`in e?e.tl:r(J))(`Quoted replies`,`Réponses citées`)),1),x(`p`,vi,v((`tl`in e?e.tl:r(J))(`Answer several questions, passages or decisions of an agent in one message: each one goes into the field as a “↳ … —” line that names the message and quotes it, your answer below. Choose how the field shows these lines; the message sent is the same.`,`Réponds à plusieurs questions, passages ou décisions d’un agent dans un seul message : chacun entre dans le champ sous la forme d’une ligne « ↳ … — » qui nomme le message et le cite, ta réponse en dessous. Choisis comment le champ affiche ces lignes ; le message envoyé est le même.`)),1),r(A)===`conversation`?(c(),a(C,{key:0,mode:r(B)},null,8,[`mode`])):s(``,!0),m(f,{modelValue:r(B),"onUpdate:modelValue":n[16]||=e=>E(B)?B.value=e:null,items:r(ie),variant:`table`,indicator:`end`,color:`primary`,size:`lg`,class:`settings-radio quote-mode-radio`},null,8,[`modelValue`,`items`]),x(`p`,yi,v((`tl`in e?e.tl:r(J))(`Saved on this device.`,`Enregistré sur cet appareil.`)),1)])],512),[[k,r(A)===`conversation`]]),S(x(`div`,bi,[x(`div`,xi,[x(`h3`,null,v((`t`in e?e.t:r(K))(`Home screen`)),1),x(`label`,Si,[x(`span`,null,[x(`b`,null,v((`t`in e?e.t:r(K))(`Show terminals`)),1),x(`small`,null,v((`t`in e?e.t:r(K))(`Show terminal spaces in the list, filed under Ready.`)),1)]),m(h,{modelValue:r(F),"onUpdate:modelValue":n[17]||=e=>E(F)?F.value=e:null,color:`success`,size:`xl`},null,8,[`modelValue`])])]),x(`div`,Ci,[x(`h3`,null,v((`t`in e?e.t:r(K))(`Text`)),1),x(`div`,wi,[x(`span`,null,v((`t`in e?e.t:r(K))(`Terminal text size`)),1),x(`div`,null,[x(`button`,{type:`button`,"aria-label":(`t`in e?e.t:r(K))(`Decrease text size`),onClick:n[18]||=e=>Qt(-1)},`A−`,8,Ti),x(`output`,null,v(`fontSize`in e?e.fontSize:r($e)),1),x(`button`,{type:`button`,"aria-label":(`t`in e?e.t:r(K))(`Increase text size`),onClick:n[19]||=e=>Qt(1)},`A+`,8,Ei)])])]),x(`div`,Di,[x(`h3`,null,v((`t`in e?e.t:r(K))(`Terminal rendering`)),1),m(f,{modelValue:r(W),"onUpdate:modelValue":n[20]||=e=>E(W)?W.value=e:null,items:$t,variant:`table`,indicator:`end`,color:`primary`,size:`lg`,class:`settings-radio`},null,8,[`modelValue`]),x(`p`,Oi,v((`t`in e?e.t:r(K))(`Rendering is saved on this device.`)),1),x(`p`,ki,v(r(en)),1)])],512),[[k,r(A)===`terminal`]]),S(x(`div`,Ai,[x(`div`,ji,[x(`h3`,null,v((`t`in e?e.t:r(K))(`New agent`)),1),x(`p`,Mi,v((`t`in e?e.t:r(K))(`Types shown in New agent. Terminal is always available.`)),1),r(gt).length?(c(),l(`div`,Ni,[(c(!0),l(g,null,u(r(gt),t=>(c(),l(`label`,{key:t,class:`settings-toggle`},[x(`span`,null,[x(`b`,null,v((`kindLabel`in e?e.kindLabel:r(xe))(t)),1),yt(t)?(c(),l(`small`,Pi,v(yt(t)),1)):s(``,!0)]),x(`input`,{class:`agent-pref-check`,type:`checkbox`,checked:_t(t),onChange:e=>vt(t,e.target.checked)},null,40,Fi)]))),128))])):(c(),l(`p`,Ii,v((`t`in e?e.t:r(K))(`No agents installed on online machines.`)),1)),x(`p`,Li,v((`t`in e?e.t:r(K))(`Choices saved on this device.`)),1)]),m(w)],512),[[k,r(A)===`agents`]]),S(x(`div`,Ri,[x(`div`,zi,[x(`label`,Bi,[x(`span`,null,[x(`b`,null,[m(d,{name:r(Q)?`i-lucide-bell-off`:`i-lucide-bell`},null,8,[`name`]),t(v((`tl`in e?e.tl:r(J))(`Do not disturb`,`Silence`)),1)]),x(`small`,null,v((`tl`in e?e.tl:r(J))(`No push notifications while it is on.`,`Aucune notification push tant qu’il est actif.`)),1)]),m(h,{modelValue:r(Q),"onUpdate:modelValue":n[21]||=e=>E(Q)?Q.value=e:null,color:`success`,size:`xl`},null,8,[`modelValue`])]),x(`p`,Vi,v((`tl`in e?e.tl:r(J))(`Silence on`,`Couper pour`)),1),m(f,{"model-value":r(Ft),items:r(Lt),variant:`table`,indicator:`end`,color:`primary`,size:`lg`,class:`settings-radio`,"onUpdate:modelValue":n[22]||=e=>Bt(e)},null,8,[`model-value`,`items`]),r(St)?s(``,!0):(c(),l(`p`,Hi,v((`tl`in e?e.tl:r(J))(`“This device” needs notifications turned on below.`,`« Cet appareil » demande d’activer les notifications ci-dessous.`)),1)),x(`p`,Ui,v((`tl`in e?e.tl:r(J))(`Duration`,`Durée`)),1),m(f,{"model-value":r(It),items:Rt,variant:`table`,indicator:`end`,color:`primary`,size:`lg`,class:`settings-radio`,"onUpdate:modelValue":n[23]||=e=>Vt(e)},null,8,[`model-value`]),x(`p`,{class:_([`muted notify-hint`,{"quiet-end":r(Q)}])},v(r(Ht)||(`tl`in e?e.tl:r(J))(`Notifications come back on by themselves at the end.`,`Retour automatique à la normale à la fin de la durée choisie.`)),3)]),x(`div`,Wi,[m(T),x(`p`,Gi,v((`t`in e?e.t:r(K))(`Notify for`)),1),m(f,{modelValue:r(Tt),"onUpdate:modelValue":n[24]||=e=>E(Tt)?Tt.value=e:null,items:Ct,variant:`table`,indicator:`end`,color:`primary`,size:`lg`,class:`settings-radio`},null,8,[`modelValue`]),x(`p`,Ki,v((`t`in e?e.t:r(K))(`Project threads remain visible and their unread messages are kept.`)),1)])],512),[[k,r(A)===`notifications`]]),S(x(`div`,qi,[m(D,{machines:(`appConfig`in e?e.appConfig:r(Ye)).machines||[{key:``,label:(`hostLabel`in e?e.hostLabel:r(Se))||(`t`in e?e.t:r(K))(`This machine`),local:!0,home:``,dirs:[],online:!0,kinds:[]}]},null,8,[`machines`])],512),[[k,r(A)===`plugins`]]),S(x(`div`,Ji,[m(le,{active:r(A)===`phone`},null,8,[`active`])],512),[[k,r(A)===`phone`]]),S(x(`div`,Yi,[x(`div`,Xi,[x(`h3`,null,v((`t`in e?e.t:r(K))(`Passkey`)),1),m(ue)]),r(tn)?.enabled?(c(),l(`div`,Zi,[x(`h3`,null,v((`t`in e?e.t:r(K))(`Ask for the passkey again after`)),1),m(f,{modelValue:r(an),"onUpdate:modelValue":n[25]||=e=>E(an)?an.value=e:null,items:r(rn),variant:`table`,indicator:`end`,color:`primary`,size:`lg`,class:`settings-radio`},null,8,[`modelValue`,`items`]),x(`p`,Qi,v((`t`in e?e.t:r(K))(`Counted from the last passkey unlock, used or not, for every device. Never in the middle of use: at the next opening of the app.`)),1),r(on)?(c(),l(`p`,$i,v(r(on)),1)):s(``,!0)])):s(``,!0)],512),[[k,r(A)===`security`]]),(`desk`in e?e.desk:r(Y))?S((c(),l(`div`,ea,[x(`div`,ta,[x(`h3`,null,v((`t`in e?e.t:r(K))(`Default pane view`)),1),m(f,{modelValue:r(pe),"onUpdate:modelValue":n[26]||=e=>E(pe)?pe.value=e:null,items:_e,variant:`table`,indicator:`end`,color:`primary`,size:`lg`,class:`settings-radio`},null,8,[`modelValue`]),x(`p`,na,v((`t`in e?e.t:r(K))(`What an agent pane opens on. A pane you switched to Terminal stays there. Saved on this device.`)),1)]),x(`div`,ra,[x(`h3`,null,v((`tl`in e?e.tl:r(J))(`Keyboard shortcuts`,`Raccourcis clavier`)),1),x(`button`,{type:`button`,class:`settings-action solo`,onClick:n[27]||=e=>p.value=!0},[m(d,{name:`i-lucide-keyboard`}),t(v((`tl`in e?e.tl:r(J))(`Show keyboard shortcuts`,`Voir les raccourcis clavier`))+` `,1),x(`span`,ia,[(c(!0),l(g,null,u((`shortcutKbds`in e?e.shortcutKbds:r(se))(`help`),e=>(c(),a(de,{key:e,value:e},null,8,[`value`]))),128))])])])],512)),[[k,r(A)===`desktop`]]):s(``,!0),S(x(`div`,aa,[x(`div`,oa,[x(`h3`,null,v((`t`in e?e.t:r(K))(`Application`)),1),x(`p`,sa,`wherdr · v`+v(r(i)),1),(`updateInfo`in e?e.updateInfo:r(wt))?.latest?(c(),a(me,{key:0,info:`updateInfo`in e?e.updateInfo:r(wt)},null,8,[`info`])):(`updateInfo`in e?e.updateInfo:r(wt))?.checked?(c(),l(`p`,ca,v((`t`in e?e.t:r(K))(`This is the latest version.`)),1)):s(``,!0),x(`button`,{type:`button`,class:`settings-action solo`,onClick:la},[m(d,{name:`i-lucide-refresh-cw`}),t(v((`t`in e?e.t:r(K))(`Reload app`)),1)]),x(`button`,{type:`button`,class:`settings-action solo`,onClick:n[28]||=(...t)=>(`openOnboarding`in e?e.openOnboarding:r(Mt))&&(`openOnboarding`in e?e.openOnboarding:r(Mt))(...t)},[m(d,{name:`i-lucide-compass`}),t(v((`tl`in e?e.tl:r(J))(`Setup guide`,`Guide de démarrage`)),1)])])],512),[[k,r(A)===`about`]])],512),[[k,r(A)]])],2)])}}}),{__name:`SettingsView`}),da=p({__name:`settings`,setup(e){return f(()=>{De.value=null}),(e,t)=>{let n=ua;return c(),a(n)}}});export{da as default};
|