pi-roundtable-web 0.24.2 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +33 -0
- package/README.md +51 -9
- package/dist/chunk-action-menu-qe839g4b.js +1 -0
- package/dist/chunk-agent-0pm9p3nn.js +1 -0
- package/dist/chunk-arranged-rooms-enpfswmg.js +1 -0
- package/dist/chunk-character-creator-6yf29xwx.js +1 -0
- package/dist/chunk-codeeditor-gdbdg7rp.js +2 -0
- package/dist/chunk-confirm-xrw7d732.js +1 -0
- package/dist/chunk-connectors-anhghy3k.js +1 -0
- package/dist/chunk-conversations-ry228aes.js +1 -0
- package/dist/chunk-drag-q4fx9b22.js +1 -0
- package/dist/chunk-entry-he1embgp.js +1 -0
- package/dist/chunk-folder-list-5cp8stna.js +1 -0
- package/dist/chunk-folds-hff104tk.js +1 -0
- package/dist/chunk-group-scene-h228jdat.js +1 -0
- package/dist/chunk-index-0p5h2kdz.js +2 -0
- package/dist/chunk-index-0pt08yd9.js +1 -0
- package/dist/chunk-index-12bw9yj8.js +2 -0
- package/dist/chunk-index-18gxy79n.js +47 -0
- package/dist/{chunk-index-mpm90318.js → chunk-index-27qca4mr.js} +2 -2
- package/dist/chunk-index-2ad17eh4.js +2 -0
- package/dist/chunk-index-31wh5twj.js +52 -0
- package/dist/chunk-index-4dy94pbz.js +2 -0
- package/dist/chunk-index-4ecjtdy8.js +13 -0
- package/dist/chunk-index-4v1b7ks9.js +2 -0
- package/dist/chunk-index-5d8yjj4m.js +2 -0
- package/dist/chunk-index-89ajmxh7.js +2 -0
- package/dist/chunk-index-9b1kt7qw.css +1 -0
- package/dist/chunk-index-9jqcskb4.js +14 -0
- package/dist/chunk-index-b9ny4623.js +2 -0
- package/dist/chunk-index-bvfqjh77.js +2 -0
- package/dist/chunk-index-d5abvq7v.js +2 -0
- package/dist/chunk-index-e1dr6g10.js +2 -0
- package/dist/chunk-index-gpkzhq1g.js +2 -0
- package/dist/chunk-index-hk3xyy20.js +2 -0
- package/dist/chunk-index-jm23vn03.js +4 -0
- package/dist/chunk-index-k7gh0jvz.js +2 -0
- package/dist/{chunk-index-6t68gbex.js → chunk-index-krtk6nn2.js} +2 -2
- package/dist/chunk-index-ky42ev0b.js +2 -0
- package/dist/chunk-index-pa2yyqh0.js +2 -0
- package/dist/chunk-index-pcvt668q.js +2 -0
- package/dist/chunk-index-pqw27eye.js +1 -0
- package/dist/chunk-index-s681nny9.js +2 -0
- package/dist/chunk-index-wmbmmrd4.js +302 -0
- package/dist/chunk-index-ymbjrsp6.js +2 -0
- package/dist/chunk-index-zfd00hwb.js +2 -0
- package/dist/chunk-lang-css-t85r8rz0.js +1 -0
- package/dist/{chunk-lang-dockerfile-ey0nvhhm.js → chunk-lang-dockerfile-d5mzxs60.js} +1 -1
- package/dist/{chunk-lang-go-403qsw9f.js → chunk-lang-go-830fmhba.js} +3 -3
- package/dist/chunk-lang-html-n6jparge.js +1 -0
- package/dist/chunk-lang-javascript-xj00cp97.js +1 -0
- package/dist/chunk-lang-json-5eaarz7j.js +1 -0
- package/dist/chunk-lang-markdown-zxx8eke8.js +6 -0
- package/dist/{chunk-lang-python-9jk5a49y.js → chunk-lang-python-fjw84w10.js} +2 -2
- package/dist/chunk-lang-rust-5rbp2zdk.js +1 -0
- package/dist/{chunk-lang-shell-cgq6q0kj.js → chunk-lang-shell-vzagpym3.js} +1 -1
- package/dist/chunk-lang-sql-0c2w9c2y.js +2 -0
- package/dist/{chunk-lang-toml-xh45nm68.js → chunk-lang-toml-yr9fv6eb.js} +1 -1
- package/dist/chunk-lang-typescript-8f6yywt3.js +1 -0
- package/dist/{chunk-lang-xml-1mh879j9.js → chunk-lang-xml-eze08p42.js} +1 -1
- package/dist/{chunk-lang-yaml-jac98srt.js → chunk-lang-yaml-c4b6ft3y.js} +1 -1
- package/dist/chunk-layout-actions-bv0chj41.js +1 -0
- package/dist/chunk-menu-items-jrwxycr1.js +2 -0
- package/dist/chunk-notes-9b7pgqfe.js +1 -0
- package/dist/chunk-overview-8yw71esz.js +1 -0
- package/dist/chunk-palette-frms7axe.js +1 -0
- package/dist/chunk-placement-items-fvfy9m0y.js +1 -0
- package/dist/chunk-prompt-history-yrqehads.js +1 -0
- package/dist/chunk-prompts-g6609tqx.js +1 -0
- package/dist/chunk-room-confirms-0a2y0925.js +1 -0
- package/dist/chunk-room-menu-g11q97br.js +1 -0
- package/dist/chunk-rooms-menu-button-h9qge48n.js +1 -0
- package/dist/chunk-schedules-ezmacrbj.js +1 -0
- package/dist/chunk-seat-menu-jv4s7hmj.js +1 -0
- package/dist/chunk-sheet-hosts-b0azyfhb.js +1 -0
- package/dist/chunk-skill-editor-h6k6whwg.js +8 -0
- package/dist/chunk-skills-gqcfhq56.js +1 -0
- package/dist/chunk-switcher-list-mcpamqnj.js +1 -0
- package/dist/chunk-table-s8cde1xz.js +1 -0
- package/dist/chunk-table-seats-wqkjn8bc.js +1 -0
- package/dist/chunk-table2d-4sje1fr0.js +1 -0
- package/dist/chunk-table3d-h64skazp.js +4220 -0
- package/dist/chunk-transcript-c59c6mpm.js +1 -0
- package/dist/chunk-workspace-0cyspkk4.js +1 -0
- package/dist/chunk-zh-tw-nc93jm10.js +1 -0
- package/dist/index.html +1 -1
- package/dist/sw.js +1 -1
- package/package.json +3 -3
- package/src/api-types.ts +214 -2
- package/src/app/api-http.ts +66 -0
- package/src/app/app.ts +18 -1
- package/src/app/card-log.ts +6 -0
- package/src/app/layout-routes.ts +239 -0
- package/src/app/layout.ts +133 -0
- package/src/app/prompt-routes.ts +167 -0
- package/src/app/room-log.ts +7 -0
- package/src/app/rooms.ts +23 -0
- package/src/app/routes.ts +155 -131
- package/src/app/skill-doc-routes.ts +122 -0
- package/src/app/team-routes.ts +457 -0
- package/src/app/threads.ts +14 -0
- package/src/i18n/zh-tw.ts +177 -10
- package/src/layout-order.ts +210 -0
- package/src/push/mutes.ts +17 -0
- package/src/web-plugin.ts +25 -0
- package/dist/chunk-action-menu-7v5fce2v.js +0 -1
- package/dist/chunk-agent-2rw4ydw2.js +0 -1
- package/dist/chunk-agent-sheet-2q24dkkf.js +0 -3
- package/dist/chunk-character-creator-8q6ympxj.js +0 -1
- package/dist/chunk-codeeditor-fgmq298t.js +0 -2
- package/dist/chunk-connectors-mr53r7fh.js +0 -1
- package/dist/chunk-conversations-4vy2z6w9.js +0 -1
- package/dist/chunk-entry-jg1eem82.js +0 -1
- package/dist/chunk-group-scene-na95b1te.js +0 -1
- package/dist/chunk-index-11rjg8a8.js +0 -1
- package/dist/chunk-index-1y50d6sj.js +0 -2
- package/dist/chunk-index-5y2r0eaj.js +0 -47
- package/dist/chunk-index-7fphxxzd.js +0 -14
- package/dist/chunk-index-80f1zkp6.css +0 -1
- package/dist/chunk-index-87h45frg.js +0 -2
- package/dist/chunk-index-bnwmssyn.js +0 -2
- package/dist/chunk-index-ckgbszwt.js +0 -51
- package/dist/chunk-index-fmjjekhd.js +0 -2
- package/dist/chunk-index-t1m65yn6.js +0 -13
- package/dist/chunk-index-t711t17m.js +0 -2
- package/dist/chunk-index-txv7qvyy.js +0 -2
- package/dist/chunk-index-wr3dg24d.js +0 -2
- package/dist/chunk-index-yx683d5n.js +0 -2
- package/dist/chunk-lang-css-fkdg3x8x.js +0 -1
- package/dist/chunk-lang-html-v8h9g977.js +0 -1
- package/dist/chunk-lang-javascript-ykb2vhaa.js +0 -1
- package/dist/chunk-lang-json-2rze3rpy.js +0 -1
- package/dist/chunk-lang-markdown-6w2htnfc.js +0 -6
- package/dist/chunk-lang-rust-24fggcqx.js +0 -1
- package/dist/chunk-lang-sql-gjywb9ke.js +0 -2
- package/dist/chunk-lang-typescript-qh6rebyb.js +0 -1
- package/dist/chunk-menu-items-zjpyj51b.js +0 -2
- package/dist/chunk-notes-sjba7kw3.js +0 -1
- package/dist/chunk-overview-26r77kb6.js +0 -1
- package/dist/chunk-room-confirms-851184ep.js +0 -1
- package/dist/chunk-room-menu-8y9c026y.js +0 -1
- package/dist/chunk-skills-56s4hdbn.js +0 -1
- package/dist/chunk-table-qykpvp32.js +0 -1
- package/dist/chunk-table2d-k60ressj.js +0 -1
- package/dist/chunk-table3d-bv2ajk39.js +0 -4220
- package/dist/chunk-transcript-vekz1mh6.js +0 -1
- package/dist/chunk-workspace-hevefd0d.js +0 -1
- package/dist/chunk-zh-tw-5r2wjre0.js +0 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{s,vn,l,r,t,p,e,n,a,He,d,_t,Q,oe,In,$e,at,Bn,ht,qn,bi,Fn,Gn,Zn}from"./chunk-index-31wh5twj.js";import{N}from"./chunk-index-5d8yjj4m.js";function K(o,i,c,m){if(!o)return;let u=o.pending.at(-1);if(u&&!u.failed)return{id:`p${u.id}`,who:"owner",author:i,text:u.text,files:[],live:!1,pending:!0};if(o.typing&&o.progress.text!==""){let h=o.agent??m;return{id:`s${o.messages.at(-1)?.id??0}`,who:"agent",agent:h,author:c(h),text:o.progress.text,files:[],live:!0,pending:!1}}let g=o.live.at(-1);if(g)return{id:`l${g.live??g.id}`,who:"agent",agent:g.agent,author:g.author,text:g.text,files:g.files,live:!0,pending:!1};for(let h=o.messages.length-1;h>=0;h-=1){let f=o.messages[h];if(!f||f.kind==="system")continue;return{id:`m${f.id}`,who:f.kind==="owner"?"owner":"agent",agent:f.agent,author:f.author,text:f.text,files:f.files,live:!1,pending:!1}}return}function B(o,i,c){return o.cardOrder.map((u)=>({id:u,card:o.cards[u]})).filter((u)=>u.card?.room===i).filter((u)=>u.card.outcome===void 0||c===void 0||u.card.after>=c)}var W=90;function Z(o,i,c,m={}){if(m.instant)return i;let u=o+c/1000*(m.cps??W);return Math.min(i,Math.max(o,u))}function O(){let o,i="",c=0,m=0;return{get shown(){return Math.floor(m)},get done(){return Math.floor(m)>=c},feed(u,g){if(u!==o){let h=i!==""&&(g.startsWith(i)||i.startsWith(g));if(o=u,!h)m=0}if(i=g,c=Array.from(g).length,m>c)m=c},step(u,g){m=Z(m,c,u,{instant:g})},finish(){m=c}}}var F=(o,i)=>Array.from(o).slice(0,i).join("");function ji(o,i){if(!o)return null;let c=i.find((m)=>m.name===o||m.key===o);return c?c.name:null}function Ki(o,i){if(!o||o.who!=="agent"||o.agent===void 0)return null;return i.includes(o.agent)?o.agent:null}function Ji(o,i,c){return c&&c.lineId===i?c.member:o}function j(o){let i=l(O()),[,c]=vn((h)=>h+1,0),m=He();i.current.feed(o?.id??"",o?.text??"");let u=o?.text??"",g=o?.id;return s(()=>{let h=i.current;if(m||u===""||g===void 0){h.finish(),c();return}let f=performance.now(),v=0,w=()=>{let x=performance.now();if(h.step(x-f,!1),f=x,c(),!h.done)v=requestAnimationFrame(w)};if(!h.done)v=requestAnimationFrame(w);return()=>cancelAnimationFrame(v)},[m,g,u]),{shown:i.current.shown,done:i.current.done,finish(){i.current.finish(),c()}}}function fi(o){let i=d((f)=>f.rooms[o]),c=d((f)=>f.principal?.name)??t("You"),m=d((f)=>{let v={};for(let w of Object.values(f.rooms))if(w.view?.kind==="agent")v[w.view.name]=w.view.displayName;return v}),u=i?.view,h=K(i,c,(f)=>(f===void 0?void 0:m[f])??f??u?.displayName??o,u?.kind==="agent"?u.name:void 0);return{room:i,view:u,line:h}}function z(o){let{loaded:i,error:c}=o,m=d((f)=>f.rooms[o.roomKey]),[u,g]=r(!1),h=l(null);return s(()=>{if(o.open&&i)h.current?.scrollTo({top:h.current.scrollHeight})},[o.open,i]),e(N,{open:o.open,title:`${o.name} · ${t("Log")}`,onClose:o.onClose,children:n("div",{className:"scene-log",ref:h,children:[c?e("p",{className:"failure-text",children:c}):null,m?.more?e("button",{type:"button",className:"secondary older",disabled:u,onClick:async()=>{g(!0),await Gn(o.roomKey),g(!1)},children:u?t("Loading…"):t("Load earlier messages")}):null,e(Zn,{roomKey:o.roomKey,enterAfter:void 0,quotable:!0})]})})}function gn(o){let{roomKey:i}=o,c=_t(),m=Q(),u=Fn(i),g=o.streams!==!1;s(()=>{if(!g)return;return c.focus(i),()=>c.focus(void 0)},[c,i,g]);let h=d((y)=>y.limits),f=d((y)=>B(y,i,y.rooms[i]?.messages.at(-1)?.id)),v=at(),{room:w,view:x,line:b}=fi(i),C=x?.kind==="agent"?x:void 0,k=C?C.name:b?.who==="agent"?b.agent:void 0,E=$e(k?v[k]:void 0),S=C?C.displayName:b?b.author:x?.displayName??i,{shown:D,done:M,finish:P}=j(b),[T,A]=r(!1),[R,H]=r(!1),I=b?.who==="owner"&&!C?{["--agent-accent"]:"var(--accent)"}:E,q=Boolean(w?.typing)&&(!b||b.who==="owner"),V=b?F(b.text,D):"";return n("section",{className:"scene-box","data-open":o.open||void 0,"data-collapsed":R||void 0,"data-who":b?.who,style:I,"aria-label":t("Log"),children:[n("header",{className:"scene-tab",children:[C||b?.who==="agent"?e("span",{className:"scene-chip",children:e(oe,{spec:k?v[k]:void 0,name:k??S,size:34,live:!1})}):null,e("strong",{className:"scene-name",children:S}),n("span",{className:"scene-tools",children:[o.onBack?e("button",{type:"button",className:"icon-button","aria-label":t("Back to the whole table"),onClick:o.onBack,children:e(a,{name:"back"})}):null,o.onMenu?e("button",{type:"button",className:"icon-button scene-more","aria-label":t("More"),"aria-haspopup":"menu",onClick:(y)=>o.onMenu?.(y.currentTarget),children:e(a,{name:"more"})}):null,n("button",{type:"button",className:"icon-button scene-log-button","aria-label":t("Log"),"aria-haspopup":"dialog",onClick:()=>A(!0),children:[e(a,{name:"conversations"}),e("span",{children:t("Log")})]}),e("button",{type:"button",className:"icon-button scene-collapse","aria-label":R?t("Show the message box"):t("Hide the message box"),"aria-expanded":!R,onClick:()=>H((y)=>!y),children:e(a,{name:"menu"})})]})]}),n("div",{className:"scene-body",children:[e("div",{className:"scene-line","data-live":b?.live||void 0,"aria-live":"polite",...M?{}:{role:"button",tabIndex:0,title:t("Tap to show the whole message"),onClick:P,onKeyDown:(y)=>{if(y.key==="Enter"||y.key===" ")y.preventDefault(),P()}},children:b?n(p,{children:[C&&b.who==="owner"?e("span",{className:"scene-from",children:b.author}):null,e(ht,{source:V}),M?e(bi,{files:b.files}):null]}):null}),q&&w?e(Bn,{name:S,progress:w.progress}):null,f.map(({id:y,card:L})=>e("div",{className:"scene-card",children:e(qn,{card:L,timeZone:m.timeZone})},y))]}),x?.readOnly?null:e("div",{className:"scene-composer",children:e(In,{draftKey:i,name:x?.displayName??i,limits:h,stoppable:Boolean(w?.stoppable),onSend:(y,L)=>c.say(i,y,L),onStop:()=>c.send({type:"stop",room:i})},i)}),e(z,{roomKey:i,open:T,loaded:u.loaded,error:u.error,name:x?.displayName??i,onClose:()=>A(!1)})]})}
|
|
2
|
+
export{ji,Ki,Ji,fi,gn};
|