pi-roundtable-web 0.26.1 → 0.26.3
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 +24 -0
- package/README.md +25 -6
- package/dist/chunk-account-hck7mhf8.js +1 -0
- package/dist/chunk-action-menu-beqh40k6.js +1 -0
- package/dist/{chunk-agent-rdv7ekrt.js → chunk-agent-znnth24t.js} +1 -1
- package/dist/chunk-arranged-rooms-wfakrddk.js +1 -0
- package/dist/chunk-bulk-actions-c4tkvk9g.js +1 -0
- package/dist/chunk-character-creator-qwcsdytw.js +1 -0
- package/dist/{chunk-codeeditor-ajhgd33t.js → chunk-codeeditor-6xavqntt.js} +2 -2
- package/dist/chunk-confirm-z95j9jt3.js +1 -0
- package/dist/chunk-connectors-7xqsg5q5.js +1 -0
- package/dist/chunk-conversations-zc4mv6vj.js +1 -0
- package/dist/{chunk-drag-peyb8t0k.js → chunk-drag-0mefcvp3.js} +1 -1
- package/dist/chunk-entry-hrt97qed.js +1 -0
- package/dist/chunk-folder-list-nemtqbnc.js +1 -0
- package/dist/chunk-folds-xpg9qcwf.js +1 -0
- package/dist/chunk-gate-86r8a2vf.js +1 -0
- package/dist/chunk-group-scene-g24kxz6f.js +1 -0
- package/dist/chunk-group-table-851jm8ef.js +1 -0
- package/dist/chunk-host-icons-23zhqpmc.js +1 -0
- package/dist/chunk-host-picture-8tnh2wam.js +1 -0
- package/dist/chunk-host-state-j41sp065.js +1 -0
- package/dist/chunk-host-ui-cje7a9t9.js +1 -0
- package/dist/chunk-index-1fn8q4ps.js +2 -0
- package/dist/{chunk-index-73gh7kgr.js → chunk-index-30vw4nhh.js} +35 -3
- package/dist/{chunk-index-k7t14rwa.js → chunk-index-3aa5czxj.js} +2 -2
- package/dist/chunk-index-3k7sdph2.js +1 -0
- package/dist/{chunk-index-w31c4yjv.js → chunk-index-3wbyq10m.js} +2 -2
- package/dist/{chunk-index-vcyzwtk2.js → chunk-index-47yspxa4.js} +2 -2
- package/dist/chunk-index-4jf4jvfd.css +1 -0
- package/dist/chunk-index-4s1qj9we.js +2 -0
- package/dist/chunk-index-5fz5e1ct.js +2 -0
- package/dist/{chunk-index-5yzfrf7b.js → chunk-index-67p2sc14.js} +3 -3
- package/dist/{chunk-index-gyary7np.js → chunk-index-6c8mewwy.js} +12 -12
- package/dist/{chunk-index-yzsgsvnp.js → chunk-index-84wbc80d.js} +2 -2
- package/dist/{chunk-index-snzzfhk3.js → chunk-index-8eexybcx.js} +2 -2
- package/dist/{chunk-index-pk1yxkv4.js → chunk-index-agrvqf5b.js} +2 -2
- package/dist/chunk-index-azrnzgev.js +2 -0
- package/dist/{chunk-index-0xh24y25.js → chunk-index-c2ag3qw2.js} +2 -2
- package/dist/{chunk-index-kwcx62wb.js → chunk-index-e90kztkx.js} +3 -3
- package/dist/chunk-index-efgm0066.js +2 -0
- package/dist/{chunk-index-w2j3njb6.js → chunk-index-eh0wb6g0.js} +2 -2
- package/dist/{chunk-index-z9x4cnzf.js → chunk-index-eyc2rkq5.js} +2 -2
- package/dist/chunk-index-fe0m5mht.js +2 -0
- package/dist/{chunk-index-2yebd9tb.js → chunk-index-gt42wjby.js} +4 -4
- package/dist/{chunk-index-cvbdf2ca.js → chunk-index-hc0dgmrs.js} +2 -2
- package/dist/{chunk-index-eg55mqqe.js → chunk-index-hczrjnky.js} +1 -1
- package/dist/chunk-index-hrtyanda.js +2 -0
- package/dist/chunk-index-j479p62w.js +2 -0
- package/dist/chunk-index-jq970hsd.js +42 -0
- package/dist/chunk-index-kankja6p.js +50 -0
- package/dist/chunk-index-kb44jp50.js +2 -0
- package/dist/{chunk-index-m7fvw92f.js → chunk-index-m65cv329.js} +2 -2
- package/dist/chunk-index-mnwdbb4n.js +2 -0
- package/dist/chunk-index-n6zrc05a.js +2 -0
- package/dist/chunk-index-n93wqszt.js +8 -0
- package/dist/{chunk-index-zrvg23jd.js → chunk-index-nrexxkar.js} +2 -2
- package/dist/chunk-index-pgxgq61x.js +2 -0
- package/dist/chunk-index-q5vzjqr5.js +2 -0
- package/dist/chunk-index-qqwk157d.js +2 -0
- package/dist/{chunk-index-czdketze.js → chunk-index-r1v895tj.js} +2 -2
- package/dist/chunk-index-r3tqhew8.js +2 -0
- package/dist/chunk-index-raf772z6.js +2 -0
- package/dist/{chunk-index-dt9775ka.js → chunk-index-rcxz5w5d.js} +5 -5
- package/dist/chunk-index-rg9vh59e.js +1 -0
- package/dist/chunk-index-sxq69p1f.js +2 -0
- package/dist/chunk-index-taq2psr6.js +2 -0
- package/dist/{chunk-index-rmxbdmn2.js → chunk-index-tsxsy4qs.js} +2 -2
- package/dist/chunk-index-wc83vb0a.js +2 -0
- package/dist/chunk-index-xbs8q4kn.js +2 -0
- package/dist/chunk-index-xxbveevc.js +2 -0
- package/dist/{chunk-index-0fmmvgee.js → chunk-index-zx6yka30.js} +2 -2
- package/dist/chunk-lang-css-yrc25qk9.js +1 -0
- package/dist/{chunk-lang-dockerfile-k728ewsf.js → chunk-lang-dockerfile-tjxsnhr9.js} +1 -1
- package/dist/{chunk-lang-go-wjwgay4v.js → chunk-lang-go-drmfa25k.js} +3 -3
- package/dist/chunk-lang-html-rwe8epvf.js +1 -0
- package/dist/chunk-lang-javascript-d6x6qjtg.js +1 -0
- package/dist/{chunk-lang-json-7gd89mvs.js → chunk-lang-json-790swysy.js} +1 -1
- package/dist/{chunk-lang-markdown-b6qbe8bt.js → chunk-lang-markdown-483dkxcq.js} +5 -5
- package/dist/{chunk-lang-python-3v56y31b.js → chunk-lang-python-v9s40bzj.js} +2 -2
- package/dist/{chunk-lang-rust-kh0z74d1.js → chunk-lang-rust-z4gry1bf.js} +1 -1
- package/dist/{chunk-lang-shell-9zv0zvbx.js → chunk-lang-shell-egsvk8rj.js} +1 -1
- package/dist/{chunk-lang-sql-yw6bf3t7.js → chunk-lang-sql-75j3denr.js} +2 -2
- package/dist/{chunk-lang-toml-tg1r96nq.js → chunk-lang-toml-7dbjvhex.js} +1 -1
- package/dist/chunk-lang-typescript-1rv9vdcz.js +1 -0
- package/dist/{chunk-lang-xml-ev1mndd4.js → chunk-lang-xml-jg1sv4h2.js} +1 -1
- package/dist/{chunk-lang-yaml-fz5qpb3r.js → chunk-lang-yaml-g3v7s5je.js} +1 -1
- package/dist/chunk-layout-actions-6assr93n.js +1 -0
- package/dist/chunk-menu-items-9szcza00.js +2 -0
- package/dist/chunk-mode-toggle-bzbq7ycq.js +1 -0
- package/dist/{chunk-note-row-kd0fy7ee.js → chunk-note-row-g20h11pm.js} +2 -2
- package/dist/chunk-notes-gc8bssxn.js +1 -0
- package/dist/chunk-notice-bell-jehad6sx.js +1 -0
- package/dist/chunk-notices-prqkv7ge.js +1 -0
- package/dist/chunk-onboarding-mdtc2mb7.js +1 -0
- package/dist/chunk-overview-2j1s6kqg.js +1 -0
- package/dist/chunk-palette-4qt6ewem.js +1 -0
- package/dist/chunk-placement-items-2eect825.js +1 -0
- package/dist/chunk-profile-pfzyc04p.js +1 -0
- package/dist/chunk-prompt-history-2bcp2rky.js +1 -0
- package/dist/chunk-prompts-052mb05y.js +1 -0
- package/dist/chunk-room-confirms-asvmjh5s.js +1 -0
- package/dist/chunk-room-menu-dm2r2hk6.js +1 -0
- package/dist/chunk-rooms-menu-button-32hemzxc.js +1 -0
- package/dist/chunk-schedules-64h9gfwn.js +1 -0
- package/dist/{chunk-seat-menu-ys5v9abz.js → chunk-seat-menu-vrpc40v9.js} +1 -1
- package/dist/chunk-sheet-hosts-jaqx490x.js +1 -0
- package/dist/chunk-shortcut-help-bdbkdcs9.js +26 -0
- package/dist/chunk-shortcuts-qft33r8t.js +1 -0
- package/dist/chunk-skill-editor-z3dx2895.js +8 -0
- package/dist/chunk-skills-4jfcv39n.js +1 -0
- package/dist/chunk-switcher-list-xysjd4tw.js +1 -0
- package/dist/{chunk-tab-dot-r6brdbmw.js → chunk-tab-dot-1p68ybf8.js} +1 -1
- package/dist/chunk-table-0v4q4dx3.js +1 -0
- package/dist/chunk-table-seats-f683hx8k.js +1 -0
- package/dist/chunk-table2d-1a6atjhj.js +1 -0
- package/dist/chunk-table3d-k0ffeffj.js +4220 -0
- package/dist/chunk-thread-actions-4rpfg4fq.js +1 -0
- package/dist/chunk-thread-cards-t794fp4d.js +1 -0
- package/dist/chunk-thread-list-1pcygpka.js +1 -0
- package/dist/chunk-transcript-km4e3aey.js +1 -0
- package/dist/chunk-where-phjwqggy.js +1 -0
- package/dist/chunk-workspace-d064v56e.js +578 -0
- package/dist/chunk-zh-tw-qf18hcxc.js +1 -0
- package/dist/index.html +1 -2
- package/dist/sw.js +1 -1
- package/package.json +2 -2
- package/src/api-types.ts +27 -0
- package/src/app/api-http.ts +1 -1
- package/src/app/routes.ts +158 -3
- package/src/app/surface-threads.ts +1 -1
- package/src/app/surface.ts +2 -1
- package/src/app/threads.ts +31 -0
- package/src/auth/authenticator.ts +8 -1
- package/src/auth/sessions.ts +10 -3
- package/src/host/host-app.ts +15 -1
- package/src/host/read-all.ts +80 -0
- package/src/host/reads.ts +67 -0
- package/src/i18n/zh-tw.ts +110 -79
- package/src/options.ts +1 -1
- package/src/web-plugin.ts +12 -1
- package/dist/chunk-account-ghq105t4.js +0 -1
- package/dist/chunk-action-menu-me0g9qsc.js +0 -1
- package/dist/chunk-arranged-rooms-81rqhx9x.js +0 -1
- package/dist/chunk-character-creator-bd426yjw.js +0 -1
- package/dist/chunk-confirm-p3mts8mx.js +0 -1
- package/dist/chunk-connectors-bkv3xn83.js +0 -1
- package/dist/chunk-conversations-0e0vbxwr.js +0 -1
- package/dist/chunk-entry-mv7q8br0.js +0 -1
- package/dist/chunk-folder-list-era3tksh.js +0 -1
- package/dist/chunk-folds-hvws0bd5.js +0 -1
- package/dist/chunk-gate-hc7dd0fx.js +0 -1
- package/dist/chunk-group-scene-dkbpmbh5.js +0 -1
- package/dist/chunk-group-table-fqmxgdfw.js +0 -1
- package/dist/chunk-host-icons-4xde9ntk.js +0 -1
- package/dist/chunk-host-picture-014yzk20.js +0 -1
- package/dist/chunk-host-state-t56e5sdy.js +0 -1
- package/dist/chunk-host-ui-p1zy9nmp.js +0 -1
- package/dist/chunk-index-4t0r3t3b.js +0 -2
- package/dist/chunk-index-6twb7ccd.js +0 -2
- package/dist/chunk-index-7xffskfa.js +0 -8
- package/dist/chunk-index-aqw7cy5j.js +0 -1
- package/dist/chunk-index-b6ca02e8.js +0 -2
- package/dist/chunk-index-b8nvhcx5.js +0 -2
- package/dist/chunk-index-gr6e0hse.js +0 -2
- package/dist/chunk-index-j214tczc.js +0 -1
- package/dist/chunk-index-jd6632ef.js +0 -2
- package/dist/chunk-index-jw7dtshr.js +0 -2
- package/dist/chunk-index-mmg788a1.js +0 -2
- package/dist/chunk-index-mq0dacwr.js +0 -2
- package/dist/chunk-index-p53ak25v.js +0 -2
- package/dist/chunk-index-rbcz9jd4.css +0 -1
- package/dist/chunk-index-rnxj3z8k.js +0 -2
- package/dist/chunk-index-v3bmr0nw.js +0 -2
- package/dist/chunk-index-wrm8w165.js +0 -2
- package/dist/chunk-index-xh0mg9cw.js +0 -2
- package/dist/chunk-index-ybtvvx85.js +0 -2
- package/dist/chunk-index-zynq0b0w.js +0 -50
- package/dist/chunk-lang-css-88v3hp3d.js +0 -1
- package/dist/chunk-lang-html-07d47es4.js +0 -1
- package/dist/chunk-lang-javascript-fmhhgzwd.js +0 -1
- package/dist/chunk-lang-typescript-etjjvr2g.js +0 -1
- package/dist/chunk-layout-actions-48ecgtkg.js +0 -1
- package/dist/chunk-menu-items-1epy3h0t.js +0 -2
- package/dist/chunk-mode-toggle-fxmfxsa4.js +0 -1
- package/dist/chunk-notes-yb8f057c.js +0 -1
- package/dist/chunk-notice-bell-wr4f1rph.js +0 -1
- package/dist/chunk-notices-x07da5bb.js +0 -1
- package/dist/chunk-onboarding-csrkbh9z.js +0 -1
- package/dist/chunk-overview-avc2d30t.js +0 -1
- package/dist/chunk-palette-9nhp95bz.js +0 -1
- package/dist/chunk-placement-items-q694dpgk.js +0 -1
- package/dist/chunk-profile-6qemf3m7.js +0 -1
- package/dist/chunk-prompt-history-7enzp2p3.js +0 -1
- package/dist/chunk-prompts-nv6mrn0q.js +0 -1
- package/dist/chunk-room-confirms-zz7n61y7.js +0 -1
- package/dist/chunk-room-menu-rr6nzap1.js +0 -1
- package/dist/chunk-rooms-menu-button-zbtwj47d.js +0 -1
- package/dist/chunk-schedules-rw57nr0m.js +0 -1
- package/dist/chunk-sheet-hosts-jhvaacst.js +0 -1
- package/dist/chunk-skill-editor-sz8an8qr.js +0 -8
- package/dist/chunk-skills-tnr1h16h.js +0 -1
- package/dist/chunk-switcher-list-17enhrse.js +0 -1
- package/dist/chunk-table-r12cja6p.js +0 -1
- package/dist/chunk-table-seats-g3t392zz.js +0 -1
- package/dist/chunk-table2d-p3ezsdcj.js +0 -1
- package/dist/chunk-table3d-4x2n2b00.js +0 -4220
- package/dist/chunk-thread-actions-qc6ezkha.js +0 -1
- package/dist/chunk-transcript-n2s6dher.js +0 -1
- package/dist/chunk-where-f3scdydc.js +0 -1
- package/dist/chunk-workspace-xs023bxm.js +0 -1
- package/dist/chunk-zh-tw-efvmk3fd.js +0 -1
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a,o,r,t,m,e,n,s,us,K,Ie,b,d,f,y,O,on,Os,gs}from"./chunk-index-zynq0b0w.js";import{j}from"./chunk-index-w31c4yjv.js";import{Me,ti,Ms}from"./chunk-index-wrm8w165.js";import{Gt,$i,xr,Sr,wr}from"./chunk-index-p53ak25v.js";import{ue}from"./chunk-index-ybtvvx85.js";import{Rs,qe,Qr}from"./chunk-index-jd6632ef.js";import{Rt,Et}from"./chunk-index-zrvg23jd.js";var p=(i,l,u)=>f(i,{method:l,...u===void 0?{}:{body:JSON.stringify(u)}}),g=(i)=>encodeURIComponent(i),ve={createAgent:(i)=>p("agents","POST",i),archiveAgent:(i)=>p(`agents/${g(i)}/archive`,"POST"),restoreAgent:(i)=>p(`agents/${g(i)}/restore`,"POST"),deleteAgent:(i)=>p(`agents/${g(i)}`,"DELETE"),skills:(i)=>f(`agents/${g(i)}/skills`),setSkills:(i,l)=>p(`agents/${g(i)}/skills`,"PUT",l),archive:()=>f("archive"),createGroup:(i)=>p("groups","POST",i),group:(i)=>f(`groups/${g(i)}`),updateGroup:(i,l)=>p(`groups/${g(i)}`,"PATCH",l),archiveGroup:(i)=>p(`groups/${g(i)}/archive`,"POST"),restoreGroup:(i)=>p(`groups/${g(i)}/restore`,"POST"),deleteGroup:(i)=>p(`groups/${g(i)}`,"DELETE")};async function gt(){let i=await y.rooms();b.dispatch({type:"rooms_loaded",rooms:i.rooms})}function T(i){let{room:l}=i,u=d((c)=>{let N=Rt(c,(w)=>Ie(c,w)),C=Et(N,l),A=C.kind==="rest"?[]:C.siblings;return{name:c.rooms[l]?.view?.displayName??l,folder:C.kind==="folder"?C.folder:"",pinned:C.kind==="pinned",canUp:qe(A,l,"up")!==void 0,canDown:qe(A,l,"down")!==void 0}},l),h=d((c)=>c.folders),v=(c)=>{i.onClose(),Gt(l,c)},k=u.folder===""&&!u.pinned;return n("div",{className:"stack",children:[e("p",{className:"meta",children:u.name}),n("fieldset",{children:[e("legend",{className:"visually-hidden",children:t("Move to folder…")}),n("ul",{className:"menu",children:[e("li",{children:n("label",{className:"menu-item menu-link",children:[e("input",{type:"radio",name:"move-folder",checked:k,onChange:()=>v(null)}),e("span",{className:"menu-icon",children:e(s,{name:"rooms",size:18})}),e("span",{className:"menu-text",children:e("strong",{children:t("Ungrouped")})})]})}),h.map((c)=>e("li",{children:n("label",{className:"menu-item menu-link",children:[e("input",{type:"radio",name:"move-folder",checked:u.folder===c.id,onChange:()=>v(c.id)}),e("span",{className:"menu-icon",children:e(s,{name:"folder",size:18})}),e("span",{className:"menu-text",children:e("strong",{children:c.name})})]})},c.id)),e("li",{children:n("button",{type:"button",className:"menu-item menu-link",onClick:()=>Me({kind:"new",room:l}),children:[e("span",{className:"menu-icon",children:e(s,{name:"plus",size:18})}),e("span",{className:"menu-text",children:e("strong",{children:t("New folder…")})})]})})]})]}),u.canUp||u.canDown?n("ul",{className:"menu",children:[u.canUp?e("li",{children:n("button",{type:"button",className:"menu-item menu-link",onClick:()=>{i.onClose(),$i(l,"up")},children:[e("span",{className:"menu-icon",children:e(s,{name:"up",size:18})}),e("span",{className:"menu-text",children:e("strong",{children:t("Move up")})})]})}):null,u.canDown?e("li",{children:n("button",{type:"button",className:"menu-item menu-link",onClick:()=>{i.onClose(),$i(l,"down")},children:[e("span",{className:"menu-icon",children:e(s,{name:"down",size:18})}),e("span",{className:"menu-text",children:e("strong",{children:t("Move down")})})]})}):null]}):null]})}function D(i){return e(ue,{open:i.open,title:t("Move to folder…"),onClose:i.onClose,children:e(T,{room:i.room,onClose:i.onClose})})}function E(i){let{ask:l}=i,[u,h]=r(l.kind==="rename"?l.name:""),[v,k]=r(),[c,N]=r(!1),C=o(null);return a(()=>C.current?.focus(),[]),n("form",{className:"stack",onSubmit:async(w)=>{w.preventDefault();let F;try{F=Qr(u)}catch{k(t("Give the folder a name of 1 to 40 characters."));return}N(!0),k(void 0);let S;if(l.kind==="rename")S=await Sr(l.id,F,k)!==void 0;else{let P=await xr(F,k);if(S=P!==void 0,P&&l.room)await Gt(l.room,P)}if(N(!1),S)i.onClose()},children:[n("div",{className:"field",children:[e("label",{className:"field-label",htmlFor:"folder-name",children:t("Folder name")}),e("input",{id:"folder-name",type:"text",ref:C,value:u,autoComplete:"off",enterKeyHint:"done",maxLength:Rs*2,"aria-invalid":v?!0:void 0,onChange:(w)=>h(w.target.value)}),v?e("p",{className:"field-error",role:"alert",children:v}):null]}),n("div",{className:"actions",children:[e("button",{type:"button",className:"secondary",disabled:c,onClick:i.onClose,children:t("Cancel")}),e("button",{type:"submit",disabled:c,children:l.kind==="rename"?t("Rename"):t("Create")})]})]})}function R(){let i=Ms(),l=o(void 0);if(i)l.current=i;let u=l.current;if(!u)return null;let h=u.kind==="new"||u.kind==="rename";return n(m,{children:[h?e(ue,{open:i?.kind==="new"||i?.kind==="rename",title:u.kind==="rename"?t("Rename folder"):t("Add a folder"),onClose:ti,children:e(E,{ask:u,onClose:ti})}):null,u.kind==="delete"?e(j,{open:i?.kind==="delete",title:t("Delete folder"),confirmLabel:t("Delete folder"),tone:"danger",onClose:ti,onConfirm:async()=>{let v="";if(!await wr(u.id,(c)=>{v=c}))throw Error(v)},children:e("p",{children:t("Delete the folder {name}? Its rooms move to Ungrouped; no room is deleted.",{name:u.name})})}):null,u.kind==="move"?e(D,{open:i?.kind==="move",room:u.room,onClose:ti}):null]})}function G(i){return n(j,{open:i.open,title:t("Turn on yolo mode?"),confirmLabel:t("Turn on yolo mode"),tone:"yolo",...i.restoreFocus?{restoreFocus:i.restoreFocus}:{},onClose:i.onClose,onConfirm:async()=>{await y.setMode(i.room,{yolo:!0})},children:[e("p",{children:t("In this room, the agent's held actions are approved for you, without a card, as soon as they come up.")}),e("p",{children:t("Risky classes still ask: running as another user, deleting files, force pushes, disk, service and firewall changes, and anything that names its own approvers. The host can add more.")}),e("p",{children:t("Every approval it makes is written into the conversation, and a banner stays up while yolo mode is on.")})]})}function x(i){return e(j,{open:i.open,title:t("Start over {name}?",{name:i.name}),confirmLabel:t("Start over"),tone:"danger",...i.restoreFocus?{restoreFocus:i.restoreFocus}:{},onClose:i.onClose,onConfirm:async()=>{await y.startRoomOver(i.room)},children:e("p",{children:t("The current conversation is archived and the next message begins a new one. Long-term memory is kept. A turn that is running finishes first.")})})}function V(i){return e(j,{open:i.open,title:t("Archive {name}?",{name:i.name}),confirmLabel:t("Archive"),tone:"danger",...i.restoreFocus?{restoreFocus:i.restoreFocus}:{},onClose:i.onClose,onConfirm:async()=>{let l=i.room.indexOf("."),u=i.room.slice(l+1);if(i.room.slice(0,l).endsWith(":group"))await ve.archiveGroup(u);else await ve.archiveAgent(u);if(on(),await gt(),O(t("Archived {name}.",{name:i.name})),us().key===i.room)K("rooms")},children:e("p",{children:t("{name} stops answering and its schedules are cancelled. A group loses it as a member. The history is kept, and Archived in the room list restores it.",{name:i.name})})})}function Di(){return n(m,{children:[e(L,{}),e(R,{})]})}function L(){let i=gs(),l=o(void 0);if(i)l.current=i;let u=l.current;if(!u)return null;let h={room:u.room,name:u.name,restoreFocus:u.restoreFocus,onClose:Os};return n(m,{children:[e(G,{open:i?.kind==="yolo",...h}),e(x,{open:i?.kind==="start-over",...h}),e(V,{open:i?.kind==="archive",...h})]})}
|
|
2
|
-
export{ve,gt,Di};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Gn,B}from"./chunk-index-zynq0b0w.js";var i={pin:"M9 4h6l-1 6 3 3H7l3-3-1-6ZM12 13v7",folder:"M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7Z",up:"M6 15l6-6 6 6",down:"M6 9l6 6 6-6",edit:"M4 20h4L19 9l-4-4L4 16v4ZM13.5 6.5l4 4"};Gn(i);var o,{emit:e,use:r}=B();function Me(n){o=n,e()}function ti(){if(!o)return;o=void 0,e()}var Ms=()=>r(()=>o);
|
|
2
|
-
export{Me,ti,Ms};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{h,t,b}from"./chunk-index-zynq0b0w.js";import{Me}from"./chunk-index-wrm8w165.js";import{fn}from"./chunk-index-b8nvhcx5.js";import{qe}from"./chunk-index-jd6632ef.js";import{Et,ni}from"./chunk-index-zrvg23jd.js";var s=(e)=>e(),d=()=>(h("48ecgtkg"),import("./chunk-layout-actions-48ecgtkg.js"));function Tr(e,u=s){let o=Et(fn(),e),l=o.kind==="pinned",i=[{id:"pin",label:l?t("Unpin"):t("Pin"),icon:"pin",run:()=>{d().then((r)=>r.pinRoom(e,!l))}},{id:"move",label:t("Move to folder…"),icon:"folder",run:()=>u(()=>Me({kind:"move",room:e}))}];if(o.kind==="rest")return i;if(qe(o.siblings,e,"up"))i.push({id:"up",label:t("Move up"),icon:"up",run:()=>{d().then((r)=>r.nudgeRoom(e,"up"))}});if(qe(o.siblings,e,"down"))i.push({id:"down",label:t("Move down"),icon:"down",run:()=>{d().then((r)=>r.nudgeRoom(e,"down"))}});return i}function Zs(e){let u=b.getState(),o=u.folders.find((n)=>n.id===e);if(!o)return;let l=fn().folders.find((n)=>n.id===e)?.rooms??[],i=ni(l,(n)=>u.rooms[n]?.view?.muted===!0)==="all",r=u.folders.map((n)=>n.id),m=[{id:"rename",label:t("Rename"),icon:"edit",run:()=>Me({kind:"rename",id:e,name:o.name})}];if(l.length>0)m.push({id:"mute",label:i?t("Unmute the whole folder"):t("Mute the whole folder"),icon:i?"bell":"bell-off",run:()=>{d().then((n)=>n.muteFolder(e,!i))}});if(qe(r,e,"up"))m.push({id:"up",label:t("Move up"),icon:"up",run:()=>{d().then((n)=>n.nudgeFolder(e,"up"))}});if(qe(r,e,"down"))m.push({id:"down",label:t("Move down"),icon:"down",run:()=>{d().then((n)=>n.nudgeFolder(e,"down"))}});return m.push({id:"delete",label:t("Delete folder"),icon:"trash",tone:"danger",run:()=>Me({kind:"delete",id:e,name:o.name})}),{title:o.name,items:m}}
|
|
2
|
-
export{Tr,Zs};
|