local-operator-ui 0.34.47 → 0.34.49
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/out/main/index.js +2259 -47
- package/out/preload/index.js +1 -0
- package/out/renderer/assets/{_basePickBy-B2JiaFKi.js → _basePickBy-Coq1U1Is.js} +1 -1
- package/out/renderer/assets/{_baseUniq-CfpDxOYw.js → _baseUniq-CN5nbj15.js} +1 -1
- package/out/renderer/assets/agent-details-page-BOHG1UL8.js +6 -0
- package/out/renderer/assets/agent-hub-page-lDe6m3U_.js +11 -0
- package/out/renderer/assets/agents-page-CS2ctxLL.js +7 -0
- package/out/renderer/assets/{arc-K65ZzfoN.js → arc-CyEksofH.js} +1 -1
- package/out/renderer/assets/architectureDiagram-IEHRJDOE-o2ZHU4e3.js +36 -0
- package/out/renderer/assets/{blockDiagram-JOT3LUYC-DpImr7tl.js → blockDiagram-JOT3LUYC-B0Yyp4_C.js} +1 -1
- package/out/renderer/assets/{book-open-BEOtYKZe.js → book-open-CEakesEi.js} +1 -1
- package/out/renderer/assets/browser-page-CjbkyuiR.js +1 -0
- package/out/renderer/assets/browser-webauthn-prompt-Dq82YVua.js +1 -0
- package/out/renderer/assets/{c4Diagram-VJAJSXHY-CD9xVR0f.js → c4Diagram-VJAJSXHY-DLUNsMlf.js} +1 -1
- package/out/renderer/assets/channel-BrqzOdfK.js +1 -0
- package/out/renderer/assets/{chunk-4BMEZGHF-CTvc3b4C.js → chunk-4BMEZGHF-TEJuQZ1Y.js} +1 -1
- package/out/renderer/assets/{chunk-A2AXSNBT-ByqThlbf.js → chunk-A2AXSNBT-B_dFl8CN.js} +1 -1
- package/out/renderer/assets/{chunk-AEK57VVT-DD6OqDr0.js → chunk-AEK57VVT-BZoQ5TO6.js} +1 -1
- package/out/renderer/assets/{chunk-D6G4REZN-DyRn0cWl.js → chunk-D6G4REZN-D1bYNZJL.js} +1 -1
- package/out/renderer/assets/{chunk-RZ5BOZE2-CnZV3WTJ.js → chunk-RZ5BOZE2-DbkFvpUt.js} +1 -1
- package/out/renderer/assets/{chunk-XZIHB7SX-DolFB-S0.js → chunk-XZIHB7SX-C0c85hT-.js} +1 -1
- package/out/renderer/assets/classDiagram-GIVACNV2-C4Q7B2pX.js +1 -0
- package/out/renderer/assets/classDiagram-v2-COTLJTTW-C4Q7B2pX.js +1 -0
- package/out/renderer/assets/clone-T21nSsyt.js +1 -0
- package/out/renderer/assets/{console-mirror-DpL-JwpC.js → console-mirror-DDhXu5hQ.js} +2 -2
- package/out/renderer/assets/consoleCapture-DomsRGWw.js +1 -0
- package/out/renderer/assets/{conversation-input-sync-BX8IVirL.js → conversation-input-sync-B3FVv0Mq.js} +257 -258
- package/out/renderer/assets/dagre-OKDRZEBW-CAb1XIuS.js +4 -0
- package/out/renderer/assets/diagram-SSKATNLV-CAh7vH7L.js +43 -0
- package/out/renderer/assets/diagram-VNBRO52H-CU4FF4Qr.js +24 -0
- package/out/renderer/assets/en-US-CHJkXXr4.js +1 -0
- package/out/renderer/assets/{erDiagram-Q7BY3M3F-CKncNCh2.js → erDiagram-Q7BY3M3F-CbnNz_kj.js} +1 -1
- package/out/renderer/assets/error-boundary-etstfCzN.js +126 -0
- package/out/renderer/assets/{flowDiagram-4HSFHLVR-DxgK_2s-.js → flowDiagram-4HSFHLVR-BB6aJVKV.js} +1 -1
- package/out/renderer/assets/{format-CZUObkkr.js → format-esAOn2VS.js} +1 -1
- package/out/renderer/assets/{ganttDiagram-APWFNJXF-C26kU1-9.js → ganttDiagram-APWFNJXF-CtOJM4d7.js} +1 -1
- package/out/renderer/assets/gitGraphDiagram-7IBYFJ6S-DvrevAjH.js +65 -0
- package/out/renderer/assets/{graph-CnXCW8BP.js → graph-DOR9Sgwh.js} +1 -1
- package/out/renderer/assets/index-5vl5RXGq.js +1 -0
- package/out/renderer/assets/index-9_-S4Njy.js +809 -0
- package/out/renderer/assets/index-CZ5usiad.js +7 -0
- package/out/renderer/assets/index-CftawgM9.js +57 -0
- package/out/renderer/assets/index-VwZaZzVv.css +1 -0
- package/out/renderer/assets/infoDiagram-PH2N3AL5-CTd32x3B.js +2 -0
- package/out/renderer/assets/installer-CjbOLDvI.js +1 -0
- package/out/renderer/assets/{journeyDiagram-U35MCT3I-C-Aue1NR.js → journeyDiagram-U35MCT3I-2BsbTilL.js} +1 -1
- package/out/renderer/assets/{kanban-definition-NDS4AKOZ-DhgXwdEM.js → kanban-definition-NDS4AKOZ-DoYAcNl0.js} +1 -1
- package/out/renderer/assets/{layout-Dw8q0WZh.js → layout-DSk91znb.js} +1 -1
- package/out/renderer/assets/legacy-agents-page-BGSPncrN.js +33 -0
- package/out/renderer/assets/{mermaid.core-CLdsX7Rp.js → mermaid.core-BqK7XNWH.js} +5 -5
- package/out/renderer/assets/mesh-page-BxEA5Aan.js +1 -0
- package/out/renderer/assets/mindmap-definition-ALO5MXBD-HV-ovM7g.js +95 -0
- package/out/renderer/assets/mini-Bco2ITLo.js +1 -0
- package/out/renderer/assets/{notebook-pen-B5Stfimb.js → notebook-pen-DsGb6zKu.js} +1 -1
- package/out/renderer/assets/org-access-B_xqEqnd.js +1 -0
- package/out/renderer/assets/{org-surface-gate-i_SGPHN5.js → org-surface-gate-D4SilXIt.js} +1 -1
- package/out/renderer/assets/{page-header-BR-fmx4f.js → page-header-DZ04Whs5.js} +1 -1
- package/out/renderer/assets/{parseISO-CZfAC2_J.js → parseISO-BHJWTxrA.js} +1 -1
- package/out/renderer/assets/{pieDiagram-IB7DONF6-DjDH1mVr.js → pieDiagram-IB7DONF6-BArx4Jik.js} +1 -1
- package/out/renderer/assets/{projects-page-CGRUr8ls.js → projects-page-DABVK4s_.js} +14 -14
- package/out/renderer/assets/publication-validation-BmkCCv-H.js +1 -0
- package/out/renderer/assets/{quadrantDiagram-7GDLP6J5-Ba5XUz4h.js → quadrantDiagram-7GDLP6J5-Dmmo_urD.js} +1 -1
- package/out/renderer/assets/{radar-MK3ICKWK-eQRm6qEE.js → radar-MK3ICKWK-D8Sc1Ajv.js} +1 -1
- package/out/renderer/assets/radient-auth-buttons-BmQt2D1Y.js +1 -0
- package/out/renderer/assets/{requirementDiagram-KVF5MWMF-BSpyCNos.js → requirementDiagram-KVF5MWMF-BU04-wPA.js} +1 -1
- package/out/renderer/assets/sankeyDiagram-QLVOVGJD-CIQO7kso.js +10 -0
- package/out/renderer/assets/schedules-page-DllGJFS2.js +115 -0
- package/out/renderer/assets/{sequenceDiagram-X6HHIX6F-DdHVib_S.js → sequenceDiagram-X6HHIX6F-BN2soxj_.js} +1 -1
- package/out/renderer/assets/settings-page-DKzDa5P5.js +292 -0
- package/out/renderer/assets/stateDiagram-DGXRK772-bGNaZvy4.js +1 -0
- package/out/renderer/assets/stateDiagram-v2-YXO3MK2T-CNVQhmQM.js +1 -0
- package/out/renderer/assets/{timeline-definition-BDJGKUSR-5dsF-6I0.js → timeline-definition-BDJGKUSR-DmM_eb2d.js} +1 -1
- package/out/renderer/assets/ui-preferences-store-Byw1dJtt.js +1 -0
- package/out/renderer/assets/use-download-agent-mutation-CXv_tRQE.js +61 -0
- package/out/renderer/assets/{use-memberships-query-BMGVy3RO.js → use-memberships-query-C4IVeIBl.js} +1 -1
- package/out/renderer/assets/{use-session-snapshot-D3QghcPD.js → use-session-snapshot-CrOrWGgL.js} +1 -1
- package/out/renderer/assets/{xychartDiagram-VJFVF3MP-DmEwPPnE.js → xychartDiagram-VJFVF3MP-CbbQZrKE.js} +1 -1
- package/out/renderer/console-capture.html +5 -5
- package/out/renderer/index.html +7 -7
- package/out/renderer/installer.html +4 -4
- package/out/renderer/mini.html +7 -7
- package/package.json +3 -5
- package/out/renderer/assets/agent-details-page-C0GdJMfq.js +0 -6
- package/out/renderer/assets/agent-hub-page-C6ze_xjQ.js +0 -11
- package/out/renderer/assets/agents-page-DSNLtN_J.js +0 -7
- package/out/renderer/assets/architectureDiagram-IEHRJDOE-CLJdV8y-.js +0 -36
- package/out/renderer/assets/browser-page-Hj-3V4SP.js +0 -1
- package/out/renderer/assets/browser-webauthn-prompt-4jHz_1RY.js +0 -1
- package/out/renderer/assets/channel-CjH9_X6K.js +0 -1
- package/out/renderer/assets/classDiagram-GIVACNV2-DNFX9Bxc.js +0 -1
- package/out/renderer/assets/classDiagram-v2-COTLJTTW-DNFX9Bxc.js +0 -1
- package/out/renderer/assets/clone-Dh-7KwYI.js +0 -1
- package/out/renderer/assets/consoleCapture-DD1Sq_ph.js +0 -1
- package/out/renderer/assets/dagre-OKDRZEBW-CDaLTqSD.js +0 -4
- package/out/renderer/assets/diagram-SSKATNLV-CT01eufZ.js +0 -43
- package/out/renderer/assets/diagram-VNBRO52H-Dm95zJ6Z.js +0 -24
- package/out/renderer/assets/en-US-BcB1DWxG.js +0 -1
- package/out/renderer/assets/error-boundary-BDLNfQKz.js +0 -126
- package/out/renderer/assets/gitGraphDiagram-7IBYFJ6S-B22ejsPk.js +0 -65
- package/out/renderer/assets/index-Be9pTy7F.js +0 -7
- package/out/renderer/assets/index-CnQsclLj.js +0 -809
- package/out/renderer/assets/index-DF_hRerL.js +0 -55
- package/out/renderer/assets/index-Dk4-Px6P.css +0 -1
- package/out/renderer/assets/index-UE_QEAqr.js +0 -1
- package/out/renderer/assets/infoDiagram-PH2N3AL5-DJZU3P7J.js +0 -2
- package/out/renderer/assets/installer-CIu909RT.js +0 -1
- package/out/renderer/assets/legacy-agents-page-u84wTmRV.js +0 -33
- package/out/renderer/assets/mesh-page-Dys9-2sY.js +0 -1
- package/out/renderer/assets/messages-Yrm2FT2V.js +0 -3
- package/out/renderer/assets/mindmap-definition-ALO5MXBD-BjBiqabY.js +0 -95
- package/out/renderer/assets/mini-BXXRy4rW.js +0 -1
- package/out/renderer/assets/org-access-CyjYN726.js +0 -1
- package/out/renderer/assets/publication-validation-B4k6VAFZ.js +0 -1
- package/out/renderer/assets/radient-auth-buttons-BW_zi2lF.js +0 -1
- package/out/renderer/assets/sankeyDiagram-QLVOVGJD-C-fzkOnd.js +0 -10
- package/out/renderer/assets/schedules-page-CiSL5P8q.js +0 -115
- package/out/renderer/assets/settings-page-C11l7qyA.js +0 -292
- package/out/renderer/assets/stateDiagram-DGXRK772-DEwuWkNd.js +0 -1
- package/out/renderer/assets/stateDiagram-v2-YXO3MK2T-DRPVtafh.js +0 -1
- package/out/renderer/assets/use-download-agent-mutation-DGGt-uXR.js +0 -61
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{s as W,a as P,S as N}from"./chunk-AEK57VVT-DD6OqDr0.js";import{_ as u,c as t,d as z,l as S,e as C,k as T,u as U}from"./mermaid.core-CLdsX7Rp.js";import{G as F}from"./graph-CnXCW8BP.js";import{l as O}from"./layout-Dw8q0WZh.js";import{y as J,z as X}from"./conversation-input-sync-BX8IVirL.js";import"./chunk-RZ5BOZE2-CnZV3WTJ.js";import"./index-DF_hRerL.js";import"./_baseUniq-CfpDxOYw.js";import"./_basePickBy-B2JiaFKi.js";import"./messages-Yrm2FT2V.js";import"./error-boundary-BDLNfQKz.js";var L={},D=u((e,i)=>{L[e]=i},"set"),Y=u(e=>L[e],"get"),G=u(()=>Object.keys(L),"keys"),I=u(()=>G().length,"size"),$={get:Y,set:D,keys:G,size:I},j=u(e=>e.append("circle").attr("class","start-state").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit).attr("cy",t().state.padding+t().state.sizeUnit),"drawStartState"),q=u(e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t().state.textHeight).attr("class","divider").attr("x2",t().state.textHeight*2).attr("y1",0).attr("y2",0),"drawDivider"),Z=u((e,i)=>{const d=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+2*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),o=d.node().getBBox();return e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",o.width+2*t().state.padding).attr("height",o.height+2*t().state.padding).attr("rx",t().state.radius),d},"drawSimpleState"),K=u((e,i)=>{const d=u(function(l,B,m){const k=l.append("tspan").attr("x",2*t().state.padding).text(B);m||k.attr("dy",t().state.textHeight)},"addTspan"),n=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+1.3*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.descriptions[0]).node().getBBox(),g=n.height,x=e.append("text").attr("x",t().state.padding).attr("y",g+t().state.padding*.4+t().state.dividerMargin+t().state.textHeight).attr("class","state-description");let a=!0,s=!0;i.descriptions.forEach(function(l){a||(d(x,l,s),s=!1),a=!1});const y=e.append("line").attr("x1",t().state.padding).attr("y1",t().state.padding+g+t().state.dividerMargin/2).attr("y2",t().state.padding+g+t().state.dividerMargin/2).attr("class","descr-divider"),p=x.node().getBBox(),c=Math.max(p.width,n.width);return y.attr("x2",c+3*t().state.padding),e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",c+2*t().state.padding).attr("height",p.height+g+2*t().state.padding).attr("rx",t().state.radius),e},"drawDescrState"),Q=u((e,i,d)=>{const o=t().state.padding,n=2*t().state.padding,g=e.node().getBBox(),x=g.width,a=g.x,s=e.append("text").attr("x",0).attr("y",t().state.titleShift).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),p=s.node().getBBox().width+n;let c=Math.max(p,x);c===x&&(c=c+n);let l;const B=e.node().getBBox();i.doc,l=a-o,p>x&&(l=(x-c)/2+o),Math.abs(a-B.x)<o&&p>x&&(l=a-(p-x)/2);const m=1-t().state.textHeight;return e.insert("rect",":first-child").attr("x",l).attr("y",m).attr("class",d?"alt-composit":"composit").attr("width",c).attr("height",B.height+t().state.textHeight+t().state.titleShift+1).attr("rx","0"),s.attr("x",l+o),p<=x&&s.attr("x",a+(c-n)/2-p/2+o),e.insert("rect",":first-child").attr("x",l).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",c).attr("height",t().state.textHeight*3).attr("rx",t().state.radius),e.insert("rect",":first-child").attr("x",l).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",c).attr("height",B.height+3+2*t().state.textHeight).attr("rx",t().state.radius),e},"addTitleAndBox"),V=u(e=>(e.append("circle").attr("class","end-state-outer").attr("r",t().state.sizeUnit+t().state.miniPadding).attr("cx",t().state.padding+t().state.sizeUnit+t().state.miniPadding).attr("cy",t().state.padding+t().state.sizeUnit+t().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit+2).attr("cy",t().state.padding+t().state.sizeUnit+2)),"drawEndState"),tt=u((e,i)=>{let d=t().state.forkWidth,o=t().state.forkHeight;if(i.parentId){let n=d;d=o,o=n}return e.append("rect").style("stroke","black").style("fill","black").attr("width",d).attr("height",o).attr("x",t().state.padding).attr("y",t().state.padding)},"drawForkJoinState"),et=u((e,i,d,o)=>{let n=0;const g=o.append("text");g.style("text-anchor","start"),g.attr("class","noteText");let x=e.replace(/\r\n/g,"<br/>");x=x.replace(/\n/g,"<br/>");const a=x.split(T.lineBreakRegex);let s=1.25*t().state.noteMargin;for(const y of a){const p=y.trim();if(p.length>0){const c=g.append("tspan");if(c.text(p),s===0){const l=c.node().getBBox();s+=l.height}n+=s,c.attr("x",i+t().state.noteMargin),c.attr("y",d+n+1.25*t().state.noteMargin)}}return{textWidth:g.node().getBBox().width,textHeight:n}},"_drawLongText"),at=u((e,i)=>{i.attr("class","state-note");const d=i.append("rect").attr("x",0).attr("y",t().state.padding),o=i.append("g"),{textWidth:n,textHeight:g}=et(e,0,0,o);return d.attr("height",g+2*t().state.noteMargin),d.attr("width",n+t().state.noteMargin*2),d},"drawNote"),_=u(function(e,i){const d=i.id,o={id:d,label:i.id,width:0,height:0},n=e.append("g").attr("id",d).attr("class","stateGroup");i.type==="start"&&j(n),i.type==="end"&&V(n),(i.type==="fork"||i.type==="join")&&tt(n,i),i.type==="note"&&at(i.note.text,n),i.type==="divider"&&q(n),i.type==="default"&&i.descriptions.length===0&&Z(n,i),i.type==="default"&&i.descriptions.length>0&&K(n,i);const g=n.node().getBBox();return o.width=g.width+2*t().state.padding,o.height=g.height+2*t().state.padding,$.set(d,o),o},"drawState"),A=0,it=u(function(e,i,d){const o=u(function(s){switch(s){case N.relationType.AGGREGATION:return"aggregation";case N.relationType.EXTENSION:return"extension";case N.relationType.COMPOSITION:return"composition";case N.relationType.DEPENDENCY:return"dependency"}},"getRelationType");i.points=i.points.filter(s=>!Number.isNaN(s.y));const n=i.points,g=J().x(function(s){return s.x}).y(function(s){return s.y}).curve(X),x=e.append("path").attr("d",g(n)).attr("id","edge"+A).attr("class","transition");let a="";if(t().state.arrowMarkerAbsolute&&(a=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,a=a.replace(/\(/g,"\\("),a=a.replace(/\)/g,"\\)")),x.attr("marker-end","url("+a+"#"+o(N.relationType.DEPENDENCY)+"End)"),d.title!==void 0){const s=e.append("g").attr("class","stateLabel"),{x:y,y:p}=U.calcLabelPosition(i.points),c=T.getRows(d.title);let l=0;const B=[];let m=0,k=0;for(let f=0;f<=c.length;f++){const h=s.append("text").attr("text-anchor","middle").text(c[f]).attr("x",y).attr("y",p+l),w=h.node().getBBox();m=Math.max(m,w.width),k=Math.min(k,w.x),S.info(w.x,y,p+l),l===0&&(l=h.node().getBBox().height,S.info("Title height",l,p)),B.push(h)}let E=l*c.length;if(c.length>1){const f=(c.length-1)*l*.5;B.forEach((h,w)=>h.attr("y",p+w*l-f)),E=l*c.length}const r=s.node().getBBox();s.insert("rect",":first-child").attr("class","box").attr("x",y-m/2-t().state.padding/2).attr("y",p-E/2-t().state.padding/2-3.5).attr("width",m+t().state.padding).attr("height",E+t().state.padding),S.info(r)}A++},"drawEdge"),b,H={},rt=u(function(){},"setConf"),nt=u(function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"insertMarkers"),st=u(function(e,i,d,o){b=t().state;const n=t().securityLevel;let g;n==="sandbox"&&(g=z("#i"+i));const x=n==="sandbox"?z(g.nodes()[0].contentDocument.body):z("body"),a=n==="sandbox"?g.nodes()[0].contentDocument:document;S.debug("Rendering diagram "+e);const s=x.select(`[id='${i}']`);nt(s);const y=o.db.getRootDoc();R(y,s,void 0,!1,x,a,o);const p=b.padding,c=s.node().getBBox(),l=c.width+p*2,B=c.height+p*2,m=l*1.75;C(s,B,m,b.useMaxWidth),s.attr("viewBox",`${c.x-b.padding} ${c.y-b.padding} `+l+" "+B)},"draw"),dt=u(e=>e?e.length*b.fontSizeFactor:1,"getLabelWidth"),R=u((e,i,d,o,n,g,x)=>{const a=new F({compound:!0,multigraph:!0});let s,y=!0;for(s=0;s<e.length;s++)if(e[s].stmt==="relation"){y=!1;break}d?a.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:y?1:b.edgeLengthFactor,nodeSep:y?1:50,isMultiGraph:!0}):a.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:y?1:b.edgeLengthFactor,nodeSep:y?1:50,ranker:"tight-tree",isMultiGraph:!0}),a.setDefaultEdgeLabel(function(){return{}});const p=x.db.getStates(),c=x.db.getRelations(),l=Object.keys(p);for(const r of l){const f=p[r];d&&(f.parentId=d);let h;if(f.doc){let w=i.append("g").attr("id",f.id).attr("class","stateGroup");h=R(f.doc,w,f.id,!o,n,g,x);{w=Q(w,f,o);let v=w.node().getBBox();h.width=v.width,h.height=v.height+b.padding/2,H[f.id]={y:b.compositTitleSize}}}else h=_(i,f,a);if(f.note){const w={descriptions:[],id:f.id+"-note",note:f.note,type:"note"},v=_(i,w,a);f.note.position==="left of"?(a.setNode(h.id+"-note",v),a.setNode(h.id,h)):(a.setNode(h.id,h),a.setNode(h.id+"-note",v)),a.setParent(h.id,h.id+"-group"),a.setParent(h.id+"-note",h.id+"-group")}else a.setNode(h.id,h)}S.debug("Count=",a.nodeCount(),a);let B=0;c.forEach(function(r){B++,S.debug("Setting edge",r),a.setEdge(r.id1,r.id2,{relation:r,width:dt(r.title),height:b.labelHeight*T.getRows(r.title).length,labelpos:"c"},"id"+B)}),O(a),S.debug("Graph after layout",a.nodes());const m=i.node();a.nodes().forEach(function(r){r!==void 0&&a.node(r)!==void 0?(S.warn("Node "+r+": "+JSON.stringify(a.node(r))),n.select("#"+m.id+" #"+r).attr("transform","translate("+(a.node(r).x-a.node(r).width/2)+","+(a.node(r).y+(H[r]?H[r].y:0)-a.node(r).height/2)+" )"),n.select("#"+m.id+" #"+r).attr("data-x-shift",a.node(r).x-a.node(r).width/2),g.querySelectorAll("#"+m.id+" #"+r+" .divider").forEach(h=>{const w=h.parentElement;let v=0,M=0;w&&(w.parentElement&&(v=w.parentElement.getBBox().width),M=parseInt(w.getAttribute("data-x-shift"),10),Number.isNaN(M)&&(M=0)),h.setAttribute("x1",0-M+8),h.setAttribute("x2",v-M-8)})):S.debug("No Node "+r+": "+JSON.stringify(a.node(r)))});let k=m.getBBox();a.edges().forEach(function(r){r!==void 0&&a.edge(r)!==void 0&&(S.debug("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(a.edge(r))),it(i,a.edge(r),a.edge(r).relation))}),k=m.getBBox();const E={id:d||"root",label:d||"root",width:0,height:0};return E.width=k.width+2*b.padding,E.height=k.height+2*b.padding,S.debug("Doc rendered",E,a),E},"renderDoc"),ot={setConf:rt,draw:st},Bt={parser:P,get db(){return new N(1)},renderer:ot,styles:W,init:u(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};export{Bt as diagram};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{s as r,b as e,a,S as s}from"./chunk-AEK57VVT-DD6OqDr0.js";import{_ as i}from"./mermaid.core-CLdsX7Rp.js";import"./chunk-RZ5BOZE2-CnZV3WTJ.js";import"./conversation-input-sync-BX8IVirL.js";import"./messages-Yrm2FT2V.js";import"./index-DF_hRerL.js";import"./error-boundary-BDLNfQKz.js";var n={parser:a,get db(){return new s(2)},renderer:e,styles:r,init:i(t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")};export{n as diagram};
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import{c as l,y as R}from"./error-boundary-BDLNfQKz.js";import{t as j,c as F,n as U,b as _,g as Q,f as B,h as S,i as z,j as N,a as C}from"./en-US-BcB1DWxG.js";import{j as r,c as g,r as V}from"./index-DF_hRerL.js";import{bJ as I,by as O,bK as P,B as w,C as Y,u as k,aH as b,aK as Z,aI as D,bD as G,aq as W,ah as v,bE as J}from"./conversation-input-sync-BX8IVirL.js";import{aF as X,aG as ee,aH as L}from"./index-CnQsclLj.js";import{B as te}from"./book-open-BEOtYKZe.js";import{k as ae,m as ne,n as se,o as oe,q as ie}from"./use-memberships-query-BMGVy3RO.js";import{b as re,l as ce}from"./publication-validation-B4k6VAFZ.js";/**
|
|
2
|
-
* @license lucide-react v0.507.0 - ISC
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the ISC license.
|
|
5
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/const le=[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]],ue=l("briefcase",le);/**
|
|
7
|
-
* @license lucide-react v0.507.0 - ISC
|
|
8
|
-
*
|
|
9
|
-
* This source code is licensed under the ISC license.
|
|
10
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/const de=[["line",{x1:"18",x2:"18",y1:"20",y2:"10",key:"1xfpm4"}],["line",{x1:"12",x2:"12",y1:"20",y2:"4",key:"be30l9"}],["line",{x1:"6",x2:"6",y1:"20",y2:"14",key:"1r4le6"}]],he=l("chart-no-axes-column",de);/**
|
|
12
|
-
* @license lucide-react v0.507.0 - ISC
|
|
13
|
-
*
|
|
14
|
-
* This source code is licensed under the ISC license.
|
|
15
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
16
|
-
*/const me=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]],fe=l("clipboard-list",me);/**
|
|
17
|
-
* @license lucide-react v0.507.0 - ISC
|
|
18
|
-
*
|
|
19
|
-
* This source code is licensed under the ISC license.
|
|
20
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
21
|
-
*/const ye=[["path",{d:"M21.54 15H17a2 2 0 0 0-2 2v4.54",key:"1djwo0"}],["path",{d:"M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17",key:"1tzkfa"}],["path",{d:"M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05",key:"14pb5j"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],ge=l("earth",ye);/**
|
|
22
|
-
* @license lucide-react v0.507.0 - ISC
|
|
23
|
-
*
|
|
24
|
-
* This source code is licensed under the ISC license.
|
|
25
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/const pe=[["path",{d:"M12 17h.01",key:"p32p05"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",key:"1mlx9k"}],["path",{d:"M9.1 9a3 3 0 0 1 5.82 1c0 2-3 3-3 3",key:"mhlwft"}]],xe=l("file-question",pe);/**
|
|
27
|
-
* @license lucide-react v0.507.0 - ISC
|
|
28
|
-
*
|
|
29
|
-
* This source code is licensed under the ISC license.
|
|
30
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
31
|
-
*/const we=[["path",{d:"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2",key:"18mbvz"}],["path",{d:"M6.453 15h11.094",key:"3shlmq"}],["path",{d:"M8.5 2h7",key:"csnxdl"}]],ke=l("flask-conical",we);/**
|
|
32
|
-
* @license lucide-react v0.507.0 - ISC
|
|
33
|
-
*
|
|
34
|
-
* This source code is licensed under the ISC license.
|
|
35
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
36
|
-
*/const be=[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]],Me=l("graduation-cap",be);/**
|
|
37
|
-
* @license lucide-react v0.507.0 - ISC
|
|
38
|
-
*
|
|
39
|
-
* This source code is licensed under the ISC license.
|
|
40
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/const Ae=[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}],["path",{d:"M3.22 12H9.5l.5-1 2 4.5 2-7 1.5 3.5h5.27",key:"1uw2ng"}]],je=l("heart-pulse",Ae);/**
|
|
42
|
-
* @license lucide-react v0.507.0 - ISC
|
|
43
|
-
*
|
|
44
|
-
* This source code is licensed under the ISC license.
|
|
45
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
46
|
-
*/const _e=[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]],Ze=l("heart",_e);/**
|
|
47
|
-
* @license lucide-react v0.507.0 - ISC
|
|
48
|
-
*
|
|
49
|
-
* This source code is licensed under the ISC license.
|
|
50
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
51
|
-
*/const Se=[["path",{d:"m3 11 18-5v12L3 14v-3z",key:"n962bs"}],["path",{d:"M11.6 16.8a3 3 0 1 1-5.8-1.6",key:"1yl0tm"}]],ze=l("megaphone",Se);/**
|
|
52
|
-
* @license lucide-react v0.507.0 - ISC
|
|
53
|
-
*
|
|
54
|
-
* This source code is licensed under the ISC license.
|
|
55
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
56
|
-
*/const Ne=[["path",{d:"m16 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"7g6ntu"}],["path",{d:"m2 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"ijws7r"}],["path",{d:"M7 21h10",key:"1b0cd5"}],["path",{d:"M12 3v18",key:"108xh3"}],["path",{d:"M3 7h2c2 0 5-1 7-2 2 1 5 2 7 2h2",key:"3gwbw2"}]],Ce=l("scale",Ne);/**
|
|
57
|
-
* @license lucide-react v0.507.0 - ISC
|
|
58
|
-
*
|
|
59
|
-
* This source code is licensed under the ISC license.
|
|
60
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
61
|
-
*/const De=[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]],ve=l("shopping-cart",De);function qe(e,t){const o=+j(e)-+j(t);return o<0?-1:o>0?1:o}function Ie(e){return F(e,Date.now())}function Oe(e){return t=>{const a=(e?Math[e]:Math.trunc)(t);return a===0?0:a}}function Le(e,t,o){const a=Q(),n=o?.locale??a.locale??B,s=qe(e,t);if(isNaN(s))throw new RangeError("Invalid time value");const i=Object.assign({},o,{addSuffix:o?.addSuffix,comparison:s}),[h,m]=U(o?.in,...s>0?[t,e]:[e,t]),d=Oe("round"),x=m.getTime()-h.getTime(),f=x/C,T=_(m)-_(h),y=(x-T)/C,K=o?.unit;let u;if(f<1?u="second":f<60?u="minute":f<S?u="hour":y<z?u="day":y<N?u="month":u="year",u==="second"){const c=d(x/1e3);return n.formatDistance("xSeconds",c,i)}else if(u==="minute"){const c=d(f);return n.formatDistance("xMinutes",c,i)}else if(u==="hour"){const c=d(f/60);return n.formatDistance("xHours",c,i)}else if(u==="day"){const c=d(y/S);return n.formatDistance("xDays",c,i)}else if(u==="month"){const c=d(y/z);return c===12&&K!=="month"?n.formatDistance("xYears",1,i):n.formatDistance("xMonths",c,i)}else{const c=d(y/N);return n.formatDistance("xYears",c,i)}}function Ge(e,t){return Le(e,Ie(e),t)}const $={investment:{icon:r.jsx(ue,{size:14,"aria-hidden":"true"}),label:"Investment"},accounting:{icon:r.jsx(te,{size:14,"aria-hidden":"true"}),label:"Accounting"},healthcare:{icon:r.jsx(je,{size:14,"aria-hidden":"true"}),label:"Healthcare"},legal:{icon:r.jsx(Ce,{size:14,"aria-hidden":"true"}),label:"Legal"},software:{icon:r.jsx(P,{size:14,"aria-hidden":"true"}),label:"Software"},security:{icon:r.jsx(ee,{size:14,"aria-hidden":"true"}),label:"Security"},role_play:{icon:r.jsx(O,{size:14,"aria-hidden":"true"}),label:"Role play"},personal_assistance:{icon:r.jsx(X,{size:14,"aria-hidden":"true"}),label:"Personal assistance"},education:{icon:r.jsx(Me,{size:14,"aria-hidden":"true"}),label:"Education"},marketing:{icon:r.jsx(ze,{size:14,"aria-hidden":"true"}),label:"Marketing"},sales:{icon:r.jsx(ve,{size:14,"aria-hidden":"true"}),label:"Sales"},research:{icon:r.jsx(ke,{size:14,"aria-hidden":"true"}),label:"Research"},analysis:{icon:r.jsx(he,{size:14,"aria-hidden":"true"}),label:"Analysis"},management:{icon:r.jsx(fe,{size:14,"aria-hidden":"true"}),label:"Management"},social_media:{icon:r.jsx(ge,{size:14,"aria-hidden":"true"}),label:"Social media"},other:{icon:r.jsx(xe,{size:14,"aria-hidden":"true"}),label:"Other"}};function p(e){const t=e.split("_").join(" ");return t.charAt(0).toUpperCase()+t.slice(1)}const $e=e=>$[e]??{icon:r.jsx(I,{size:14,"aria-hidden":"true"}),label:p(e)},q="inline-flex min-h-5.5 items-center rounded-full border border-hairline bg-sunken px-2 text-meta leading-none",We=({tags:e,categories:t,className:o})=>{if((!e||e.length===0)&&(!t||t.length===0))return null;const a=new Set((t??[]).map(s=>($[s]?.label??p(s)).toLowerCase())),n=(e??[]).filter(s=>!a.has(p(s).toLowerCase()));return r.jsxs("div",{className:g("relative flex flex-wrap items-center gap-1.5 overflow-hidden",o),"data-testid":"agent-tags-and-categories",children:[t?.map(s=>{const i=$e(s);return r.jsxs("span",{className:g(q,"gap-1 font-medium text-ink-muted"),children:[i.icon,i.label]},s)}),n.map(s=>r.jsxs("span",{className:g(q,"gap-1 font-normal text-ink-dim"),children:[r.jsx(I,{size:12,"aria-hidden":"true"}),p(s)]},s))]})},Je=({orgName:e,className:t})=>r.jsxs(R,{variant:"neutral",className:g("gap-1",t),"data-testid":"agent-org-badge",title:e?`Shared with ${e}, not the public hub`:"Shared with an organization, not the public hub",children:[r.jsx(O,{"aria-hidden":"true"}),e??"Organization"]}),He=new Set(["qa","ai","api","tui","ux","ui"]),H=/[._-]+/,Xe=e=>e.toLowerCase().replace(H," "),Ee=e=>e.split(H).filter(Boolean).map(t=>He.has(t.toLowerCase())?t.toUpperCase():t.charAt(0).toUpperCase()+t.slice(1)).join(" "),et=e=>Ee(e),M={all:["agent-statuses"],page:e=>[...M.all,"page",[...e]]},Te=e=>[...new Set(e)].sort(),tt=({agentIds:e,enabled:t=!0})=>{const{isAuthenticated:o}=w(),a=e.join(","),n=V.useMemo(()=>Te(e),[a]),s=Y({queryKey:M.page(n),queryFn:async()=>(await ae(n)).result?.statuses??{},enabled:t&&o&&n.length>0,staleTime:5*60*1e3,gcTime:10*60*1e3,refetchOnWindowFocus:!1,retry:!1});return{...s,statuses:s.data??{},isKnown:s.isSuccess}},at=(e,t,o)=>o?e&&t[o]!==void 0:!1,E=(e,t,o)=>{e.setQueriesData({queryKey:M.all},a=>{if(!a)return a;const n=a[t]??{liked:!1,favourited:!1};return{...a,[t]:{...n,...o}}})},A=(e,{agentId:t,field:o,delta:a})=>{e.setQueriesData({queryKey:re.all},n=>{if(!n)return n;const s=n.result?.records??[];return s.some(i=>i.id===t)?{...n,result:{...n.result,records:s.map(i=>i.id===t?{...i,[o]:Math.max(0,(i[o]??0)+a)}:i)}}:n})},nt=()=>{const e=k(),{isAuthenticated:t}=w();return b({mutationFn:async({agentId:a,isCurrentlyFavourited:n})=>{if(!t)throw new Error("Authentication required to favourite/unfavourite an agent.");if(!a)throw new Error("Agent ID is required.");return n?(await ne(a),{favourited:!1,changed:!0}):{favourited:!0,changed:(await se(a)).result?.already_favourited!==!0}},onSuccess:({favourited:a,changed:n},s)=>{E(e,s.agentId,{favourited:a}),n&&A(e,{agentId:s.agentId,field:"favourite_count",delta:a?1:-1})}})},st=()=>{const e=k(),{isAuthenticated:t}=w();return b({mutationFn:async({agentId:a,isCurrentlyLiked:n})=>{if(!t)throw new Error("Authentication required to like/unlike an agent.");if(!a)throw new Error("Agent ID is required.");return n?(await oe(a),{liked:!1,changed:!0}):{liked:!0,changed:(await ie(a)).result?.already_liked!==!0}},onSuccess:({liked:a,changed:n},s)=>{E(e,s.agentId,{liked:a}),n&&A(e,{agentId:s.agentId,field:"like_count",delta:a?1:-1})}})},Ke=(e,t)=>{const o=[];for(const[,a]of e.getQueriesData({queryKey:L}))for(const n of a?.agents??[])n.id!==t&&o.push(n.name);return o},ot=()=>{const e=k(),t=Z();return b({mutationFn:async({agentId:a})=>{if(!v.baseUrl)throw new Error("Local Operator API URL is not configured.");return J.downloadAgentFromRadient(v.baseUrl,a)},onSuccess:(a,n)=>{const s=a.result,i=s?.name?.trim()||n.agentName?.trim()||"Agent",h=s?.renamed_from?.trim()||null,m=s?.id?ce(i,Ke(e,s.id)):null;h?D(`Downloaded "${i}" — you already have an agent called "${h}".`):m?G(`Downloaded "${i}". You already have an agent called "${m}", so two agents now answer to that name and either may be picked. Rename one of them.`):D(`Downloaded "${i}" from the hub.`),e.invalidateQueries({queryKey:L}),A(e,{agentId:n.agentId,field:"download_count",delta:1}),a.result?.id?(W.getState().stageDraft({kind:"agent",name:i}),t("/chat")):console.warn("Downloaded agent ID not found in response, cannot navigate to chat.")}})};export{We as A,$ as C,Ze as H,Je as O,st as a,nt as b,ot as c,$e as d,Le as e,Ge as f,et as h,at as i,Xe as n,tt as u};
|