local-operator-ui 0.44.1 → 0.44.2
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 +720 -20
- package/out/preload/index.js +75 -4
- package/out/renderer/assets/{_basePickBy-ndHGqeK3.js → _basePickBy-LPJBKSk3.js} +1 -1
- package/out/renderer/assets/{_baseUniq-DKFx5rny.js → _baseUniq-D8M8HOYM.js} +1 -1
- package/out/renderer/assets/{agent-details-page-DPEkyWrQ.js → agent-details-page-CZuUDIS7.js} +2 -2
- package/out/renderer/assets/agent-hub-page-B2h53zmZ.js +6 -0
- package/out/renderer/assets/agents-page-DxPAtB0k.js +7 -0
- package/out/renderer/assets/{approvalsOverlay-DqenFdln.js → approvalsOverlay-BjR3EVfg.js} +1 -1
- package/out/renderer/assets/{arc-BW1-eqAD.js → arc-Blq81BHO.js} +1 -1
- package/out/renderer/assets/{architectureDiagram-IEHRJDOE-Bt4SPfEG.js → architectureDiagram-IEHRJDOE-BKX_zyB3.js} +1 -1
- package/out/renderer/assets/{blockDiagram-JOT3LUYC-DENsJjhF.js → blockDiagram-JOT3LUYC-DesagpJf.js} +1 -1
- package/out/renderer/assets/{book-open-C6y4tYxb.js → book-open-BGI5fs27.js} +1 -1
- package/out/renderer/assets/browser-page-C156D5SG.js +1 -0
- package/out/renderer/assets/{browser-webauthn-prompt-Cw1yV55x.js → browser-webauthn-prompt-dv7y6_dA.js} +1 -1
- package/out/renderer/assets/{building-2-3HN1Jd44.js → building-2-D2OTMmkt.js} +1 -1
- package/out/renderer/assets/{c4Diagram-VJAJSXHY-BSbyPibR.js → c4Diagram-VJAJSXHY-CWsH54Hv.js} +1 -1
- package/out/renderer/assets/channel-DEPypRI4.js +1 -0
- package/out/renderer/assets/{chunk-4BMEZGHF-0s8hO13R.js → chunk-4BMEZGHF-B0-zmu4b.js} +1 -1
- package/out/renderer/assets/{chunk-A2AXSNBT-C7C9468i.js → chunk-A2AXSNBT-RQCYYGRS.js} +1 -1
- package/out/renderer/assets/{chunk-AEK57VVT-DEnoRoZS.js → chunk-AEK57VVT-DwkZ07Wr.js} +1 -1
- package/out/renderer/assets/{chunk-D6G4REZN-CV1eSjZ5.js → chunk-D6G4REZN-BWg_1fD9.js} +1 -1
- package/out/renderer/assets/{chunk-RZ5BOZE2-DYUw7sGJ.js → chunk-RZ5BOZE2-3EjCkn2h.js} +1 -1
- package/out/renderer/assets/{chunk-XZIHB7SX-a1Gm7k6u.js → chunk-XZIHB7SX-DoadzlFd.js} +1 -1
- package/out/renderer/assets/classDiagram-GIVACNV2-D64NGwBp.js +1 -0
- package/out/renderer/assets/classDiagram-v2-COTLJTTW-D64NGwBp.js +1 -0
- package/out/renderer/assets/clone-BrsLxtaK.js +1 -0
- package/out/renderer/assets/{console-mirror-CNc2WEem.js → console-mirror-Cx1_mcwT.js} +10 -10
- package/out/renderer/assets/{consoleCapture-CYSIHyD6.js → consoleCapture-CBiwH6qH.js} +1 -1
- package/out/renderer/assets/{conversation-input-sync-nqpmI0zJ.js → conversation-input-sync-6W6mDd5c.js} +5 -5
- package/out/renderer/assets/{dagre-OKDRZEBW-BMpFclbT.js → dagre-OKDRZEBW-CkNv39Aw.js} +1 -1
- package/out/renderer/assets/{diagram-SSKATNLV-YtFgpAyc.js → diagram-SSKATNLV-DKGhEDc0.js} +1 -1
- package/out/renderer/assets/{diagram-VNBRO52H-RgXiwGWq.js → diagram-VNBRO52H-2dRMMinF.js} +1 -1
- package/out/renderer/assets/{erDiagram-Q7BY3M3F-Cc3Z_iPE.js → erDiagram-Q7BY3M3F-BaZqUE9f.js} +1 -1
- package/out/renderer/assets/{error-boundary-By5hceVb.js → error-boundary-BhcUnSSp.js} +2 -2
- package/out/renderer/assets/{flowDiagram-4HSFHLVR-KwbskmA7.js → flowDiagram-4HSFHLVR-DO71jsf7.js} +1 -1
- package/out/renderer/assets/{ganttDiagram-APWFNJXF-CQPssJrs.js → ganttDiagram-APWFNJXF-aaChmBo1.js} +1 -1
- package/out/renderer/assets/{gitGraphDiagram-7IBYFJ6S-BamwRKnz.js → gitGraphDiagram-7IBYFJ6S-DH2o95aG.js} +1 -1
- package/out/renderer/assets/{graph-CPVQL3U3.js → graph-BzuMIyA9.js} +1 -1
- package/out/renderer/assets/{hash-B6EnYJqO.js → hash-Bof-oLZ7.js} +1 -1
- package/out/renderer/assets/{heart-Bbe81rsc.js → heart-Bd5kZnjR.js} +1 -1
- package/out/renderer/assets/{index-VZJPlqAN.js → index-B0Ue5RBi.js} +1 -1
- package/out/renderer/assets/index-BABrnwf5.css +1 -0
- package/out/renderer/assets/{index-BFQ8MnMi.js → index-Bf_5C9hH.js} +188 -188
- package/out/renderer/assets/{index-CbXTthtT.js → index-CNnTZGuV.js} +1 -1
- package/out/renderer/assets/{index-AfF6GcLd.js → index-CxK1ypFa.js} +1 -1
- package/out/renderer/assets/infoDiagram-PH2N3AL5-DZJ-3Hbl.js +2 -0
- package/out/renderer/assets/{installer-BBvg9H1m.js → installer-BTKc-9AM.js} +1 -1
- package/out/renderer/assets/{journeyDiagram-U35MCT3I-D7Q5PjTQ.js → journeyDiagram-U35MCT3I-B1iYgquG.js} +1 -1
- package/out/renderer/assets/{kanban-definition-NDS4AKOZ-D84f-1NL.js → kanban-definition-NDS4AKOZ-D6b_9SBk.js} +1 -1
- package/out/renderer/assets/{layout-B9Rf382e.js → layout-BYe1V9vC.js} +1 -1
- package/out/renderer/assets/{legacy-agents-page-C3wRE_B2.js → legacy-agents-page-B4QsRAZI.js} +4 -4
- package/out/renderer/assets/{library-page-CQlL8tMz.js → library-page-VgK0BSR2.js} +3 -3
- package/out/renderer/assets/{mermaid.core-384l0qRV.js → mermaid.core-CENNKUw2.js} +5 -5
- package/out/renderer/assets/mesh-page-CEgyAVW-.js +1 -0
- package/out/renderer/assets/{messages-B-ZruEU4.js → messages-Bst4VOU3.js} +10 -10
- package/out/renderer/assets/{mindmap-definition-ALO5MXBD-DIQ8Tp4d.js → mindmap-definition-ALO5MXBD-DPYnshtf.js} +1 -1
- package/out/renderer/assets/{mini-DLXn148T.js → mini-DjdzboAc.js} +1 -1
- package/out/renderer/assets/{notebook-pen-NTSqgCct.js → notebook-pen-CZVJiq5R.js} +1 -1
- package/out/renderer/assets/org-access-DZc8cPye.js +1 -0
- package/out/renderer/assets/{org-surface-gate-J2cqQUny.js → org-surface-gate-Bj7rZIwL.js} +1 -1
- package/out/renderer/assets/{page-header-DYYNR6ta.js → page-header-Dtg6CqtK.js} +1 -1
- package/out/renderer/assets/{path-utils-Df1aSfST.js → path-utils-CzhWDDSj.js} +29 -29
- package/out/renderer/assets/{pieDiagram-IB7DONF6-O0elqS06.js → pieDiagram-IB7DONF6-1_U-X3IZ.js} +1 -1
- package/out/renderer/assets/{projects-page-CDZhwpg2.js → projects-page-Bw-AAZ11.js} +6 -6
- package/out/renderer/assets/publication-validation-Iutn5hzY.js +1 -0
- package/out/renderer/assets/{quadrantDiagram-7GDLP6J5-aIes5dKA.js → quadrantDiagram-7GDLP6J5-kbwdrehe.js} +1 -1
- package/out/renderer/assets/{radar-MK3ICKWK-UxRQC5wV.js → radar-MK3ICKWK-DpsIZo-R.js} +1 -1
- package/out/renderer/assets/{radient-auth-buttons-DD_c1yIy.js → radient-auth-buttons-C1Juzc0D.js} +1 -1
- package/out/renderer/assets/{requirementDiagram-KVF5MWMF-CHpwQCNK.js → requirementDiagram-KVF5MWMF-qtUg8gWV.js} +1 -1
- package/out/renderer/assets/{sankeyDiagram-QLVOVGJD-BshWvjPm.js → sankeyDiagram-QLVOVGJD-B6i8Lf5L.js} +1 -1
- package/out/renderer/assets/{schedules-page-CnzVmbRX.js → schedules-page-DjiYevaS.js} +1 -1
- package/out/renderer/assets/{sequenceDiagram-X6HHIX6F-ChmjS2T4.js → sequenceDiagram-X6HHIX6F-B3NVLrcT.js} +1 -1
- package/out/renderer/assets/settings-page-BUpTYpEG.js +287 -0
- package/out/renderer/assets/{smartart-Ccwq-Nc5.js → smartart-BTOCcWLh.js} +1 -1
- package/out/renderer/assets/{stateDiagram-DGXRK772-DdDHMkkC.js → stateDiagram-DGXRK772-nACatGwh.js} +1 -1
- package/out/renderer/assets/stateDiagram-v2-YXO3MK2T-LbiD2EL_.js +1 -0
- package/out/renderer/assets/team-bridge-page-BW45aiP2.js +21 -0
- package/out/renderer/assets/{timeline-definition-BDJGKUSR-BjD0dpVE.js → timeline-definition-BDJGKUSR-BXO43hMG.js} +1 -1
- package/out/renderer/assets/use-default-on-banner-DjHLTfeK.js +1 -0
- package/out/renderer/assets/{use-download-agent-mutation-BfQgsvf5.js → use-download-agent-mutation-D6QgUMMQ.js} +2 -2
- package/out/renderer/assets/{use-session-snapshot-WaDf8bZQ.js → use-session-snapshot-CI2ND9fV.js} +1 -1
- package/out/renderer/assets/{xychartDiagram-VJFVF3MP-BDqiFOiY.js → xychartDiagram-VJFVF3MP-CA90n1Qk.js} +1 -1
- package/out/renderer/browser-approvals-overlay.html +2 -2
- package/out/renderer/console-capture.html +6 -6
- package/out/renderer/index.html +8 -8
- package/out/renderer/installer.html +5 -5
- package/out/renderer/mini.html +8 -8
- package/package.json +2 -2
- package/out/renderer/assets/agent-hub-page-C_oaRRRS.js +0 -6
- package/out/renderer/assets/agents-page-B2-Fw5cY.js +0 -7
- package/out/renderer/assets/browser-page-4Pd09ZRi.js +0 -1
- package/out/renderer/assets/channel-BdO3JV1i.js +0 -1
- package/out/renderer/assets/classDiagram-GIVACNV2-QIHhGtkO.js +0 -1
- package/out/renderer/assets/classDiagram-v2-COTLJTTW-QIHhGtkO.js +0 -1
- package/out/renderer/assets/clone-DNk4VBpX.js +0 -1
- package/out/renderer/assets/index-CJBIsxq7.css +0 -1
- package/out/renderer/assets/infoDiagram-PH2N3AL5-9stnlWnw.js +0 -2
- package/out/renderer/assets/mesh-page-Dt9ym7fs.js +0 -1
- package/out/renderer/assets/org-access-Dg0_A14g.js +0 -1
- package/out/renderer/assets/publication-validation-xLDz3KF1.js +0 -1
- package/out/renderer/assets/settings-page-DLaEpBB3.js +0 -287
- package/out/renderer/assets/stateDiagram-v2-YXO3MK2T-BYZWnIq5.js +0 -1
- package/out/renderer/assets/team-bridge-page-CXwjsmIu.js +0 -21
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as s,c as xt,l as E,d as j,V as kt,W as vt,X as _t,Y as bt,D as wt,$ as St,z as Et}from"./mermaid.core-
|
|
1
|
+
import{_ as s,c as xt,l as E,d as j,V as kt,W as vt,X as _t,Y as bt,D as wt,$ as St,z as Et}from"./mermaid.core-CENNKUw2.js";import{d as nt}from"./arc-Blq81BHO.js";import"./conversation-input-sync-6W6mDd5c.js";import"./index-CNnTZGuV.js";import"./messages-Bst4VOU3.js";import"./path-utils-CzhWDDSj.js";import"./error-boundary-BhcUnSSp.js";var Q=function(){var n=s(function(x,i,a,c){for(a=a||{},c=x.length;c--;a[x[c]]=i);return a},"o"),t=[6,8,10,11,12,14,16,17,20,21],e=[1,9],l=[1,10],r=[1,11],d=[1,12],h=[1,13],f=[1,16],m=[1,17],u={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",20:"period",21:"event"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[18,1],[19,1]],performAction:s(function(i,a,c,p,y,o,w){var v=o.length-1;switch(y){case 1:return o[v-1];case 2:this.$=[];break;case 3:o[v-1].push(o[v]),this.$=o[v-1];break;case 4:case 5:this.$=o[v];break;case 6:case 7:this.$=[];break;case 8:p.getCommonDb().setDiagramTitle(o[v].substr(6)),this.$=o[v].substr(6);break;case 9:this.$=o[v].trim(),p.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=o[v].trim(),p.getCommonDb().setAccDescription(this.$);break;case 12:p.addSection(o[v].substr(8)),this.$=o[v].substr(8);break;case 15:p.addTask(o[v],0,""),this.$=o[v];break;case 16:p.addEvent(o[v].substr(2)),this.$=o[v];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},n(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:e,12:l,14:r,16:d,17:h,18:14,19:15,20:f,21:m},n(t,[2,7],{1:[2,1]}),n(t,[2,3]),{9:18,11:e,12:l,14:r,16:d,17:h,18:14,19:15,20:f,21:m},n(t,[2,5]),n(t,[2,6]),n(t,[2,8]),{13:[1,19]},{15:[1,20]},n(t,[2,11]),n(t,[2,12]),n(t,[2,13]),n(t,[2,14]),n(t,[2,15]),n(t,[2,16]),n(t,[2,4]),n(t,[2,9]),n(t,[2,10])],defaultActions:{},parseError:s(function(i,a){if(a.recoverable)this.trace(i);else{var c=new Error(i);throw c.hash=a,c}},"parseError"),parse:s(function(i){var a=this,c=[0],p=[],y=[null],o=[],w=this.table,v="",N=0,A=0,V=2,U=1,M=o.slice.call(arguments,1),g=Object.create(this.lexer),b={yy:{}};for(var L in this.yy)Object.prototype.hasOwnProperty.call(this.yy,L)&&(b.yy[L]=this.yy[L]);g.setInput(i,b.yy),b.yy.lexer=g,b.yy.parser=this,typeof g.yylloc>"u"&&(g.yylloc={});var P=g.yylloc;o.push(P);var W=g.options&&g.options.ranges;typeof b.yy.parseError=="function"?this.parseError=b.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Z(T){c.length=c.length-2*T,y.length=y.length-T,o.length=o.length-T}s(Z,"popStack");function tt(){var T;return T=p.pop()||g.lex()||U,typeof T!="number"&&(T instanceof Array&&(p=T,T=p.pop()),T=a.symbols_[T]||T),T}s(tt,"lex");for(var S,C,I,J,R={},B,$,et,O;;){if(C=c[c.length-1],this.defaultActions[C]?I=this.defaultActions[C]:((S===null||typeof S>"u")&&(S=tt()),I=w[C]&&w[C][S]),typeof I>"u"||!I.length||!I[0]){var K="";O=[];for(B in w[C])this.terminals_[B]&&B>V&&O.push("'"+this.terminals_[B]+"'");g.showPosition?K="Parse error on line "+(N+1)+`:
|
|
2
2
|
`+g.showPosition()+`
|
|
3
3
|
Expecting `+O.join(", ")+", got '"+(this.terminals_[S]||S)+"'":K="Parse error on line "+(N+1)+": Unexpected "+(S==U?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError(K,{text:g.match,token:this.terminals_[S]||S,line:g.yylineno,loc:P,expected:O})}if(I[0]instanceof Array&&I.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+S);switch(I[0]){case 1:c.push(S),y.push(g.yytext),o.push(g.yylloc),c.push(I[1]),S=null,A=g.yyleng,v=g.yytext,N=g.yylineno,P=g.yylloc;break;case 2:if($=this.productions_[I[1]][1],R.$=y[y.length-$],R._$={first_line:o[o.length-($||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-($||1)].first_column,last_column:o[o.length-1].last_column},W&&(R._$.range=[o[o.length-($||1)].range[0],o[o.length-1].range[1]]),J=this.performAction.apply(R,[v,A,N,b.yy,I[1],y,o].concat(M)),typeof J<"u")return J;$&&(c=c.slice(0,-1*$*2),y=y.slice(0,-1*$),o=o.slice(0,-1*$)),c.push(this.productions_[I[1]][0]),y.push(R.$),o.push(R._$),et=w[c[c.length-2]][c[c.length-1]],c.push(et);break;case 3:return!0}}return!0},"parse")},k=function(){var x={EOF:1,parseError:s(function(a,c){if(this.yy.parser)this.yy.parser.parseError(a,c);else throw new Error(a)},"parseError"),setInput:s(function(i,a){return this.yy=a||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:s(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var a=i.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:s(function(i){var a=i.length,c=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var p=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var y=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===p.length?this.yylloc.first_column:0)+p[p.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[y[0],y[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},"unput"),more:s(function(){return this._more=!0,this},"more"),reject:s(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:s(function(i){this.unput(this.match.slice(i))},"less"),pastInput:s(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var i=this.pastInput(),a=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as d,j as e,c as p}from"./index-CNnTZGuV.js";import{N as v,u as j,a as y}from"./index-Bf_5C9hH.js";import{u as _,A as w,a as M,B as h,X as k}from"./error-boundary-BhcUnSSp.js";import{t as s}from"./messages-Bst4VOU3.js";import{f as O}from"./path-utils-CzhWDDSj.js";const C=({consentText:t,pending:i,failure:a,onTurnOff:r,onDismiss:c,defaultExpanded:o=!1})=>{_();const[l,b]=d.useState(o),u=d.useId(),f=d.useId(),m=i!==null,n=i==="turn_off";return e.jsx("section",{"data-agent-messages-banner":"default-on","aria-label":s("ui.agentMessages.banner.title"),children:e.jsx(w,{variant:"info",className:p(v,"items-start border-transparent"),children:e.jsxs("div",{className:"flex w-full min-w-0 flex-col gap-2",children:[e.jsxs("div",{className:"flex w-full min-w-0 items-start gap-3",children:[e.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[e.jsx(M,{children:s("ui.agentMessages.banner.title")}),e.jsx("p",{className:"text-body-sm text-ink-muted",children:s("ui.agentMessages.banner.body")})]}),e.jsx(h,{variant:"ghost",size:"icon-sm",className:"shrink-0 text-ink-muted","aria-label":s("ui.agentMessages.banner.dismiss"),disabled:m,onClick:c,"data-agent-messages-banner-action":"dismiss",children:e.jsx(k,{"aria-hidden":"true"})})]}),e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx(h,{variant:"secondary",size:"sm",disabled:m,onClick:r,"aria-describedby":f,"data-agent-messages-banner-action":"turn_off",children:e.jsxs("span",{className:"grid",children:[e.jsx("span",{className:p("col-start-1 row-start-1",n&&"invisible"),"aria-hidden":n,children:s("ui.agentMessages.banner.turn_off")}),e.jsx("span",{className:p("col-start-1 row-start-1",!n&&"invisible"),"aria-hidden":!n,children:s("ui.agentMessages.banner.turning_off")})]})}),e.jsx(h,{variant:"ghost",size:"sm",className:"text-ink","aria-expanded":l,"aria-controls":l?u:void 0,onClick:()=>b(g=>!g),"data-agent-messages-banner-action":"read",children:l?s("ui.agentMessages.banner.hide"):s("ui.agentMessages.banner.read")}),e.jsx("span",{id:f,className:"text-pretty text-meta text-ink-muted",children:s("ui.agentMessages.banner.turn_off_hint")})]}),l&&e.jsx("section",{id:u,className:"rounded-md bg-sunken p-3 @max-[1024px]/bridge:max-h-[35dvh] @max-[1024px]/bridge:overflow-y-auto focus-visible:outline-2 focus-visible:outline-accent focus-visible:outline-offset-2","aria-label":s("ui.agentMessages.banner.read"),"data-agent-messages-banner-consent":"",children:t?e.jsx("p",{className:"max-w-prose whitespace-pre-wrap text-body-sm text-ink-muted",children:t}):e.jsx("p",{className:"text-body-sm text-ink-muted",children:s("ui.agentMessages.banner.consent_unavailable")})}),a&&e.jsx("p",{role:"alert",className:"text-body-sm text-ink",children:a==="turn_off"?s("ui.agentMessages.banner.turn_off_failed"):s("ui.agentMessages.banner.dismiss_failed")})]})})})};function E(t,i,a){const r=t?.tenant_id??null;return!j(o=>a&&r?o.defaultOnDismissed[y(a,r)]===!0:!1)&&O(t,i)}function z(t){const{api:i,accountId:a,tenantId:r,markerTenantId:c,onSettings:o,onChanged:l}=t,[b,u]=d.useState(null),[f,m]=d.useState(null),n=d.useRef(!1);async function g(x,N){if(!(n.current||!a)){n.current=!0,u(x),m(null);try{await N()}catch{m(x);return}finally{n.current=!1,u(null)}try{await l?.()}catch{}}}return{pending:b,failure:f,turnOff:()=>g("turn_off",async()=>{const x=await i.updateSettings({expected_account_id:a,...r?{tenant_id:r}:{},state:"disabled"});o?.(x)}),dismiss:()=>g("dismiss",async()=>{await i.dismissOnboarding(),a&&c&&j.getState().markDefaultOnDismissed(a,c)})}}export{C as D,z as a,E as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t as N,c as Q,n as
|
|
1
|
+
import{t as N,c as Q,n as B,a as S,g as V,e as k,h as D,i as C,j as v,f as q}from"./en-US-CW_dDnkH.js";import{j as c,c as p,r as P}from"./index-CNnTZGuV.js";import{c as d,u as T,z as Y}from"./error-boundary-BhcUnSSp.js";import{t as r}from"./messages-Bst4VOU3.js";import{bo as E,bc as H,bp as Z,ap as M,aq as A,ar as I,bi as G,a4 as L,bj as W}from"./conversation-input-sync-6W6mDd5c.js";import{b0 as X,b1 as J,b2 as ee,b3 as te,b4 as ae,b5 as ne,b6 as se,b7 as K}from"./index-Bf_5C9hH.js";import{B as oe}from"./book-open-BGI5fs27.js";import{i as re,u as _,B as ie,q as ce}from"./path-utils-CzhWDDSj.js";import{b as ue,l as le}from"./publication-validation-Iutn5hzY.js";/**
|
|
2
2
|
* @license lucide-react v0.507.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -53,4 +53,4 @@ import{t as N,c as Q,n as V,a as S,g as B,e as k,h as D,i as C,j as v,f as q}fro
|
|
|
53
53
|
*
|
|
54
54
|
* This source code is licensed under the ISC license.
|
|
55
55
|
* See the LICENSE file in the root directory of this source tree.
|
|
56
|
-
*/const ve=[["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"}]],qe=d("shopping-cart",ve);function Ie(e,t){const o=+N(e)-+N(t);return o<0?-1:o>0?1:o}function Le(e){return Q(e,Date.now())}function Oe(e){return t=>{const a=(e?Math[e]:Math.trunc)(t);return a===0?0:a}}function F(e,t,o){const a=
|
|
56
|
+
*/const ve=[["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"}]],qe=d("shopping-cart",ve);function Ie(e,t){const o=+N(e)-+N(t);return o<0?-1:o>0?1:o}function Le(e){return Q(e,Date.now())}function Oe(e){return t=>{const a=(e?Math[e]:Math.trunc)(t);return a===0?0:a}}function F(e,t,o){const a=V(),n=o?.locale??a.locale??k,s=Ie(e,t);if(isNaN(s))throw new RangeError("Invalid time value");const i=Object.assign({},o,{addSuffix:o?.addSuffix,comparison:s}),[m,g]=B(o?.in,...s>0?[t,e]:[e,t]),h=Oe(o?.roundingMethod??"round"),b=g.getTime()-m.getTime(),y=b/q,$=S(g)-S(m),f=(b-$)/q,w=o?.unit;let u;if(w?u=w:y<1?u="second":y<60?u="minute":y<D?u="hour":f<C?u="day":f<v?u="month":u="year",u==="second"){const l=h(b/1e3);return n.formatDistance("xSeconds",l,i)}else if(u==="minute"){const l=h(y);return n.formatDistance("xMinutes",l,i)}else if(u==="hour"){const l=h(y/60);return n.formatDistance("xHours",l,i)}else if(u==="day"){const l=h(f/D);return n.formatDistance("xDays",l,i)}else if(u==="month"){const l=h(f/C);return l===12&&w!=="month"?n.formatDistance("xYears",1,i):n.formatDistance("xMonths",l,i)}else{const l=h(f/v);return n.formatDistance("xYears",l,i)}}function We(e,t){return F(e,Le(e),t)}const Te={investment:{icon:c.jsx(he,{size:14,"aria-hidden":"true"}),get label(){return r("ui.hub.taxonomy.category.investment")}},accounting:{icon:c.jsx(oe,{size:14,"aria-hidden":"true"}),get label(){return r("ui.hub.taxonomy.category.accounting")}},healthcare:{icon:c.jsx(ze,{size:14,"aria-hidden":"true"}),get label(){return r("ui.hub.taxonomy.category.healthcare")}},legal:{icon:c.jsx(Ce,{size:14,"aria-hidden":"true"}),get label(){return r("ui.hub.taxonomy.category.legal")}},software:{icon:c.jsx(Z,{size:14,"aria-hidden":"true"}),get label(){return r("ui.hub.taxonomy.category.software")}},security:{icon:c.jsx(J,{size:14,"aria-hidden":"true"}),get label(){return r("ui.hub.taxonomy.category.security")}},role_play:{icon:c.jsx(H,{size:14,"aria-hidden":"true"}),get label(){return r("ui.hub.taxonomy.category.role_play")}},personal_assistance:{icon:c.jsx(X,{size:14,"aria-hidden":"true"}),get label(){return r("ui.hub.taxonomy.category.personal_assistance")}},education:{icon:c.jsx(_e,{size:14,"aria-hidden":"true"}),get label(){return r("ui.hub.taxonomy.category.education")}},marketing:{icon:c.jsx(Se,{size:14,"aria-hidden":"true"}),get label(){return r("ui.hub.taxonomy.category.marketing")}},sales:{icon:c.jsx(qe,{size:14,"aria-hidden":"true"}),get label(){return r("ui.hub.taxonomy.category.sales")}},research:{icon:c.jsx(Me,{size:14,"aria-hidden":"true"}),get label(){return r("ui.hub.taxonomy.category.research")}},analysis:{icon:c.jsx(ge,{size:14,"aria-hidden":"true"}),get label(){return r("ui.hub.taxonomy.category.analysis")}},management:{icon:c.jsx(fe,{size:14,"aria-hidden":"true"}),get label(){return r("ui.hub.taxonomy.category.management")}},social_media:{icon:c.jsx(xe,{size:14,"aria-hidden":"true"}),get label(){return r("ui.hub.taxonomy.category.social_media")}},other:{icon:c.jsx(we,{size:14,"aria-hidden":"true"}),get label(){return r("ui.hub.taxonomy.category.other")}}};function x(e){const t=e.split("_").join(" ");return t.charAt(0).toUpperCase()+t.slice(1)}const Ee=e=>Te[e]??{icon:c.jsx(E,{size:14,"aria-hidden":"true"}),label:x(e)},O="inline-flex min-h-5.5 items-center rounded-full border border-hairline bg-sunken px-2 text-meta leading-none",Xe=({tags:e,categories:t,className:o})=>{if(T(),(!e||e.length===0)&&(!t||t.length===0))return null;const a=new Set((t??[]).map(s=>x(s).toLowerCase())),n=(e??[]).filter(s=>!a.has(x(s).toLowerCase()));return c.jsxs("div",{className:p("relative flex flex-wrap items-center gap-1.5 overflow-hidden",o),"data-testid":"agent-tags-and-categories",children:[t?.map(s=>{const i=Ee(s);return c.jsxs("span",{className:p(O,"gap-1 font-medium text-ink-muted"),children:[i.icon,i.label]},s)}),n.map(s=>c.jsxs("span",{className:p(O,"gap-1 font-normal text-ink-dim"),children:[c.jsx(E,{size:12,"aria-hidden":"true"}),x(s)]},s))]})};function Je(e,t=Date.now()){return F(e,t,{locale:{...k,formatDistance(o,a,n){switch(o){case"xSeconds":return r("ui.hub.comments.age.seconds",{count:a});case"xMinutes":return r("ui.hub.comments.age.minutes",{count:a});case"xHours":return r("ui.hub.comments.age.hours",{count:a});case"xDays":return r("ui.hub.comments.age.days",{count:a});case"xMonths":return r("ui.hub.comments.age.months",{count:a});case"xYears":return r("ui.hub.comments.age.years",{count:a});default:return r("ui.hub.comments.age.fallback",{duration:k.formatDistance(o,a,n)})}}}})}const et=({orgName:e,className:t})=>(T(),c.jsxs(Y,{variant:"neutral",className:p("gap-1",t),"data-testid":"agent-org-badge",title:e?r("ui.hub.taxonomy.origin.named",{name:e}):r("ui.hub.taxonomy.origin.unnamed"),children:[c.jsx(H,{"aria-hidden":"true"}),e??r("ui.hub.taxonomy.origin.organization")]})),He=new Set(["qa","ai","api","tui","ux","ui"]),R=/[._-]+/,tt=e=>e.toLowerCase().replace(R," "),Ke=e=>e.split(R).filter(Boolean).map(t=>He.has(t.toLowerCase())?t.toUpperCase():t.charAt(0).toUpperCase()+t.slice(1)).join(" "),at=e=>Ke(e),j={all:["agent-statuses"],page:e=>[...j.all,"page",[...e]]},Fe=e=>[...new Set(e)].sort(),nt=({agentIds:e,enabled:t=!0})=>{const{isAuthenticated:o}=M(),a=e.join(","),n=P.useMemo(()=>Fe(e),[a]),s=re({queryKey:j.page(n),queryFn:async()=>(await ee(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}},st=(e,t,o)=>o?e&&t[o]!==void 0:!1,U=(e,t,o)=>{e.setQueriesData({queryKey:j.all},a=>{if(!a)return a;const n=a[t]??{liked:!1,favourited:!1};return{...a,[t]:{...n,...o}}})},z=(e,{agentId:t,field:o,delta:a})=>{e.setQueriesData({queryKey:ue.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})},ot=()=>{const e=_(),{isAuthenticated:t}=M();return A({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 te(a),{favourited:!1,changed:!0}):{favourited:!0,changed:(await ae(a)).result?.already_favourited!==!0}},onSuccess:({favourited:a,changed:n},s)=>{U(e,s.agentId,{favourited:a}),n&&z(e,{agentId:s.agentId,field:"favourite_count",delta:a?1:-1})}})},rt=()=>{const e=_(),{isAuthenticated:t}=M();return A({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 ne(a),{liked:!1,changed:!0}):{liked:!0,changed:(await se(a)).result?.already_liked!==!0}},onSuccess:({liked:a,changed:n},s)=>{U(e,s.agentId,{liked:a}),n&&z(e,{agentId:s.agentId,field:"like_count",delta:a?1:-1})}})},Re=(e,t)=>{const o=[];for(const[,a]of e.getQueriesData({queryKey:K}))for(const n of a?.agents??[])n.id!==t&&o.push(n.name);return o},it=()=>{const e=_(),t=ie();return A({mutationFn:async({agentId:a})=>{if(!L.baseUrl)throw new Error("Local Operator API URL is not configured.");return W.downloadAgentFromRadient(L.baseUrl,a)},onSuccess:(a,n)=>{const s=a.result,i=s?.name?.trim()||n.agentName?.trim()||"Agent",m=s?.renamed_from?.trim()||null,g=s?.id?le(i,Re(e,s.id)):null;m?I(r("ui.notices.hub.downloaded_renamed",{name:i,existing:m})):g?G(r("ui.notices.hub.downloaded_collision",{name:i,existing:g})):I(r("ui.notices.hub.downloaded",{name:i})),e.invalidateQueries({queryKey:K}),z(e,{agentId:n.agentId,field:"download_count",delta:1}),a.result?.id?(ce.getState().stageDraft({kind:"agent",name:i}),t("/chat")):console.warn("Downloaded agent ID not found in response, cannot navigate to chat.")}})};export{Xe as A,Te as C,et as O,rt as a,ot as b,Je as c,it as d,Ee as e,We as f,at as h,st as i,tt as n,nt as u};
|
package/out/renderer/assets/{use-session-snapshot-WaDf8bZQ.js → use-session-snapshot-CI2ND9fV.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as c}from"./path-utils-
|
|
1
|
+
import{d as c}from"./path-utils-CzhWDDSj.js";import{r as n}from"./index-CNnTZGuV.js";function s(){const[f,a]=n.useState(null),[l,o]=n.useState(null),r=n.useRef(null),u=n.useCallback(async e=>{r.current=e,a(t=>t&&t.id!==e?null:t),o(t=>t&&t.id!==e?null:t);try{const t=await c({op:"sessions.get",sessionId:e});if(r.current!==e)return;a({id:e,frontend:t.payload.frontend.snapshot})}catch{}try{const t=await c({op:"commands.entities",sessionId:e,command:"effort"});if(r.current!==e)return;o({id:e,entities:t.entities})}catch{}},[]);return{frontend:f?.frontend??null,effortEntities:l?.entities,refresh:u}}export{s as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as n,s as ii,g as ei,t as vt,q as si,a as ni,b as ai,l as Lt,K as oi,e as hi,z as ri,G as lt,F as Et,H as li,M as ci,i as ui,N as gi}from"./mermaid.core-
|
|
1
|
+
import{_ as n,s as ii,g as ei,t as vt,q as si,a as ni,b as ai,l as Lt,K as oi,e as hi,z as ri,G as lt,F as Et,H as li,M as ci,i as ui,N as gi}from"./mermaid.core-CENNKUw2.js";import{k as kt,l as Tt,n as Rt}from"./conversation-input-sync-6W6mDd5c.js";import"./index-CNnTZGuV.js";import"./messages-Bst4VOU3.js";import"./path-utils-CzhWDDSj.js";import"./error-boundary-BhcUnSSp.js";var at=function(){var t=n(function(B,h,l,c){for(l=l||{},c=B.length;c--;l[B[c]]=h);return l},"o"),i=[1,10,12,14,16,18,19,21,23],e=[2,6],s=[1,3],o=[1,5],p=[1,6],g=[1,7],m=[1,5,10,12,14,16,18,19,21,23,34,35,36],T=[1,25],E=[1,26],S=[1,28],R=[1,29],I=[1,30],V=[1,31],_=[1,32],L=[1,33],f=[1,34],C=[1,35],r=[1,36],D=[1,37],N=[1,43],yt=[1,42],bt=[1,47],$=[1,50],b=[1,10,12,14,16,18,19,21,23,34,35,36],J=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],P=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],At=[1,64],tt={trace:n(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:"EQUALS",46:"MULT",47:"DOT",48:"BRKT",49:"MINUS",50:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:n(function(h,l,c,u,y,a,X){var x=a.length-1;switch(y){case 5:u.setOrientation(a[x]);break;case 9:u.setDiagramTitle(a[x].text.trim());break;case 12:u.setLineData({text:"",type:"text"},a[x]);break;case 13:u.setLineData(a[x-1],a[x]);break;case 14:u.setBarData({text:"",type:"text"},a[x]);break;case 15:u.setBarData(a[x-1],a[x]);break;case 16:this.$=a[x].trim(),u.setAccTitle(this.$);break;case 17:case 18:this.$=a[x].trim(),u.setAccDescription(this.$);break;case 19:this.$=a[x-1];break;case 20:this.$=[Number(a[x-2]),...a[x]];break;case 21:this.$=[Number(a[x])];break;case 22:u.setXAxisTitle(a[x]);break;case 23:u.setXAxisTitle(a[x-1]);break;case 24:u.setXAxisTitle({type:"text",text:""});break;case 25:u.setXAxisBand(a[x]);break;case 26:u.setXAxisRangeData(Number(a[x-2]),Number(a[x]));break;case 27:this.$=a[x-1];break;case 28:this.$=[a[x-2],...a[x]];break;case 29:this.$=[a[x]];break;case 30:u.setYAxisTitle(a[x]);break;case 31:u.setYAxisTitle(a[x-1]);break;case 32:u.setYAxisTitle({type:"text",text:""});break;case 33:u.setYAxisRangeData(Number(a[x-2]),Number(a[x]));break;case 37:this.$={text:a[x],type:"text"};break;case 38:this.$={text:a[x],type:"text"};break;case 39:this.$={text:a[x],type:"markdown"};break;case 40:this.$=a[x];break;case 41:this.$=a[x-1]+""+a[x];break}},"anonymous"),table:[t(i,e,{3:1,4:2,7:4,5:s,34:o,35:p,36:g}),{1:[3]},t(i,e,{4:2,7:4,3:8,5:s,34:o,35:p,36:g}),t(i,e,{4:2,7:4,6:9,3:10,5:s,8:[1,11],34:o,35:p,36:g}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},t(m,[2,34]),t(m,[2,35]),t(m,[2,36]),{1:[2,1]},t(i,e,{4:2,7:4,3:21,5:s,34:o,35:p,36:g}),{1:[2,3]},t(m,[2,5]),t(i,[2,7],{4:22,34:o,35:p,36:g}),{11:23,37:24,38:T,39:E,40:27,41:S,42:R,43:I,44:V,45:_,46:L,47:f,48:C,49:r,50:D},{11:39,13:38,24:N,27:yt,29:40,30:41,37:24,38:T,39:E,40:27,41:S,42:R,43:I,44:V,45:_,46:L,47:f,48:C,49:r,50:D},{11:45,15:44,27:bt,33:46,37:24,38:T,39:E,40:27,41:S,42:R,43:I,44:V,45:_,46:L,47:f,48:C,49:r,50:D},{11:49,17:48,24:$,37:24,38:T,39:E,40:27,41:S,42:R,43:I,44:V,45:_,46:L,47:f,48:C,49:r,50:D},{11:52,17:51,24:$,37:24,38:T,39:E,40:27,41:S,42:R,43:I,44:V,45:_,46:L,47:f,48:C,49:r,50:D},{20:[1,53]},{22:[1,54]},t(b,[2,18]),{1:[2,2]},t(b,[2,8]),t(b,[2,9]),t(J,[2,37],{40:55,41:S,42:R,43:I,44:V,45:_,46:L,47:f,48:C,49:r,50:D}),t(J,[2,38]),t(J,[2,39]),t(P,[2,40]),t(P,[2,42]),t(P,[2,43]),t(P,[2,44]),t(P,[2,45]),t(P,[2,46]),t(P,[2,47]),t(P,[2,48]),t(P,[2,49]),t(P,[2,50]),t(P,[2,51]),t(b,[2,10]),t(b,[2,22],{30:41,29:56,24:N,27:yt}),t(b,[2,24]),t(b,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:T,39:E,40:27,41:S,42:R,43:I,44:V,45:_,46:L,47:f,48:C,49:r,50:D},t(b,[2,11]),t(b,[2,30],{33:60,27:bt}),t(b,[2,32]),{31:[1,61]},t(b,[2,12]),{17:62,24:$},{25:63,27:At},t(b,[2,14]),{17:65,24:$},t(b,[2,16]),t(b,[2,17]),t(P,[2,41]),t(b,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},t(b,[2,31]),{27:[1,69]},t(b,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},t(b,[2,15]),t(b,[2,26]),t(b,[2,27]),{11:59,32:72,37:24,38:T,39:E,40:27,41:S,42:R,43:I,44:V,45:_,46:L,47:f,48:C,49:r,50:D},t(b,[2,33]),t(b,[2,19]),{25:73,27:At},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:n(function(h,l){if(l.recoverable)this.trace(h);else{var c=new Error(h);throw c.hash=l,c}},"parseError"),parse:n(function(h){var l=this,c=[0],u=[],y=[null],a=[],X=this.table,x="",G=0,Ct=0,Kt=2,wt=1,Zt=a.slice.call(arguments,1),A=Object.create(this.lexer),W={yy:{}};for(var it in this.yy)Object.prototype.hasOwnProperty.call(this.yy,it)&&(W.yy[it]=this.yy[it]);A.setInput(h,W.yy),W.yy.lexer=A,W.yy.parser=this,typeof A.yylloc>"u"&&(A.yylloc={});var et=A.yylloc;a.push(et);var Jt=A.options&&A.options.ranges;typeof W.yy.parseError=="function"?this.parseError=W.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ti(k){c.length=c.length-2*k,y.length=y.length-k,a.length=a.length-k}n(ti,"popStack");function St(){var k;return k=u.pop()||A.lex()||wt,typeof k!="number"&&(k instanceof Array&&(u=k,k=u.pop()),k=l.symbols_[k]||k),k}n(St,"lex");for(var w,O,v,st,z={},j,M,_t,Q;;){if(O=c[c.length-1],this.defaultActions[O]?v=this.defaultActions[O]:((w===null||typeof w>"u")&&(w=St()),v=X[O]&&X[O][w]),typeof v>"u"||!v.length||!v[0]){var nt="";Q=[];for(j in X[O])this.terminals_[j]&&j>Kt&&Q.push("'"+this.terminals_[j]+"'");A.showPosition?nt="Parse error on line "+(G+1)+`:
|
|
2
2
|
`+A.showPosition()+`
|
|
3
3
|
Expecting `+Q.join(", ")+", got '"+(this.terminals_[w]||w)+"'":nt="Parse error on line "+(G+1)+": Unexpected "+(w==wt?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(nt,{text:A.match,token:this.terminals_[w]||w,line:A.yylineno,loc:et,expected:Q})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+O+", token: "+w);switch(v[0]){case 1:c.push(w),y.push(A.yytext),a.push(A.yylloc),c.push(v[1]),w=null,Ct=A.yyleng,x=A.yytext,G=A.yylineno,et=A.yylloc;break;case 2:if(M=this.productions_[v[1]][1],z.$=y[y.length-M],z._$={first_line:a[a.length-(M||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(M||1)].first_column,last_column:a[a.length-1].last_column},Jt&&(z._$.range=[a[a.length-(M||1)].range[0],a[a.length-1].range[1]]),st=this.performAction.apply(z,[x,Ct,G,W.yy,v[1],y,a].concat(Zt)),typeof st<"u")return st;M&&(c=c.slice(0,-1*M*2),y=y.slice(0,-1*M),a=a.slice(0,-1*M)),c.push(this.productions_[v[1]][0]),y.push(z.$),a.push(z._$),_t=X[c[c.length-2]][c[c.length-1]],c.push(_t);break;case 3:return!0}}return!0},"parse")},Qt=function(){var B={EOF:1,parseError:n(function(l,c){if(this.yy.parser)this.yy.parser.parseError(l,c);else throw new Error(l)},"parseError"),setInput:n(function(h,l){return this.yy=l||this.yy||{},this._input=h,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:n(function(){var h=this._input[0];this.yytext+=h,this.yyleng++,this.offset++,this.match+=h,this.matched+=h;var l=h.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),h},"input"),unput:n(function(h){var l=h.length,c=h.split(/(?:\r\n?|\n)/g);this._input=h+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var y=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===u.length?this.yylloc.first_column:0)+u[u.length-c.length].length-c[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[y[0],y[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},"unput"),more:n(function(){return this._more=!0,this},"more"),reject:n(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:n(function(h){this.unput(this.match.slice(h))},"less"),pastInput:n(function(){var h=this.matched.substr(0,this.matched.length-this.match.length);return(h.length>20?"...":"")+h.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:n(function(){var h=this.match;return h.length<20&&(h+=this._input.substr(0,20-h.length)),(h.substr(0,20)+(h.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:n(function(){var h=this.pastInput(),l=new Array(h.length+1).join("-");return h+this.upcomingInput()+`
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
http-equiv="Content-Security-Policy"
|
|
22
22
|
content="default-src 'none'; script-src 'self'; style-src 'self'; img-src 'none'; font-src 'none'; connect-src 'none'; object-src 'none'; base-uri 'none'; form-action 'none'"
|
|
23
23
|
/>
|
|
24
|
-
<script type="module" crossorigin src="./assets/approvalsOverlay-
|
|
25
|
-
<link rel="modulepreload" crossorigin href="./assets/messages-
|
|
24
|
+
<script type="module" crossorigin src="./assets/approvalsOverlay-BjR3EVfg.js"></script>
|
|
25
|
+
<link rel="modulepreload" crossorigin href="./assets/messages-Bst4VOU3.js">
|
|
26
26
|
<link rel="stylesheet" crossorigin href="./assets/approvalsOverlay-CX3DxhSv.css">
|
|
27
27
|
</head>
|
|
28
28
|
<body>
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
<title>Local Operator Console Capture</title>
|
|
7
7
|
<meta http-equiv="Content-Security-Policy"
|
|
8
8
|
content="default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; font-src 'self' data:" />
|
|
9
|
-
<script type="module" crossorigin src="./assets/consoleCapture-
|
|
10
|
-
<link rel="modulepreload" crossorigin href="./assets/messages-
|
|
11
|
-
<link rel="modulepreload" crossorigin href="./assets/index-
|
|
12
|
-
<link rel="modulepreload" crossorigin href="./assets/path-utils-
|
|
13
|
-
<link rel="modulepreload" crossorigin href="./assets/console-mirror-
|
|
14
|
-
<link rel="stylesheet" crossorigin href="./assets/index-
|
|
9
|
+
<script type="module" crossorigin src="./assets/consoleCapture-CBiwH6qH.js"></script>
|
|
10
|
+
<link rel="modulepreload" crossorigin href="./assets/messages-Bst4VOU3.js">
|
|
11
|
+
<link rel="modulepreload" crossorigin href="./assets/index-CNnTZGuV.js">
|
|
12
|
+
<link rel="modulepreload" crossorigin href="./assets/path-utils-CzhWDDSj.js">
|
|
13
|
+
<link rel="modulepreload" crossorigin href="./assets/console-mirror-Cx1_mcwT.js">
|
|
14
|
+
<link rel="stylesheet" crossorigin href="./assets/index-BABrnwf5.css">
|
|
15
15
|
<link rel="stylesheet" crossorigin href="./assets/console-mirror-DOrYoP_4.css">
|
|
16
16
|
</head>
|
|
17
17
|
|
package/out/renderer/index.html
CHANGED
|
@@ -41,14 +41,14 @@
|
|
|
41
41
|
<meta http-equiv="Content-Security-Policy"
|
|
42
42
|
content="default-src 'self'; connect-src 'self' http://localhost:1111 http://127.0.0.1:1111 http://localhost:8080 http://127.0.0.1:8080 https://api.radienthq.com https://us.i.posthog.com https://login.microsoftonline.com https://accounts.google.com; script-src 'self' https://us-assets.i.posthog.com https://accounts.google.com https://login.microsoftonline.com; style-src 'self' 'unsafe-inline' data:; img-src 'self' data: blob: http://localhost:1111 http://127.0.0.1:1111; media-src 'self' blob: http://localhost:1111 http://127.0.0.1:1111; font-src 'self' data:; frame-src 'self' data: blob: lo-supplement: http://localhost:1111 http://127.0.0.1:1111 https://accounts.google.com https://login.microsoftonline.com" />
|
|
43
43
|
<meta http-equiv="Cross-Origin-Opener-Policy" content="same-origin-allow-popups" />
|
|
44
|
-
<script type="module" crossorigin src="./assets/index-
|
|
45
|
-
<link rel="modulepreload" crossorigin href="./assets/messages-
|
|
46
|
-
<link rel="modulepreload" crossorigin href="./assets/index-
|
|
47
|
-
<link rel="modulepreload" crossorigin href="./assets/path-utils-
|
|
48
|
-
<link rel="modulepreload" crossorigin href="./assets/error-boundary-
|
|
49
|
-
<link rel="modulepreload" crossorigin href="./assets/conversation-input-sync-
|
|
50
|
-
<link rel="modulepreload" crossorigin href="./assets/console-mirror-
|
|
51
|
-
<link rel="stylesheet" crossorigin href="./assets/index-
|
|
44
|
+
<script type="module" crossorigin src="./assets/index-Bf_5C9hH.js"></script>
|
|
45
|
+
<link rel="modulepreload" crossorigin href="./assets/messages-Bst4VOU3.js">
|
|
46
|
+
<link rel="modulepreload" crossorigin href="./assets/index-CNnTZGuV.js">
|
|
47
|
+
<link rel="modulepreload" crossorigin href="./assets/path-utils-CzhWDDSj.js">
|
|
48
|
+
<link rel="modulepreload" crossorigin href="./assets/error-boundary-BhcUnSSp.js">
|
|
49
|
+
<link rel="modulepreload" crossorigin href="./assets/conversation-input-sync-6W6mDd5c.js">
|
|
50
|
+
<link rel="modulepreload" crossorigin href="./assets/console-mirror-Cx1_mcwT.js">
|
|
51
|
+
<link rel="stylesheet" crossorigin href="./assets/index-BABrnwf5.css">
|
|
52
52
|
<link rel="stylesheet" crossorigin href="./assets/conversation-input-sync-CAX4_ErH.css">
|
|
53
53
|
<link rel="stylesheet" crossorigin href="./assets/console-mirror-DOrYoP_4.css">
|
|
54
54
|
<link rel="stylesheet" crossorigin href="./assets/index-DHKnfVbX.css">
|
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP -->
|
|
9
9
|
<meta http-equiv="Content-Security-Policy"
|
|
10
10
|
content="default-src 'self'; connect-src 'self' http://localhost:1111 http://127.0.0.1:1111; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data: http://localhost:1111 http://127.0.0.1:1111; media-src 'self' http://localhost:1111 http://127.0.0.1:1111; font-src 'self' data:" />
|
|
11
|
-
<script type="module" crossorigin src="./assets/installer-
|
|
12
|
-
<link rel="modulepreload" crossorigin href="./assets/messages-
|
|
13
|
-
<link rel="modulepreload" crossorigin href="./assets/index-
|
|
14
|
-
<link rel="modulepreload" crossorigin href="./assets/error-boundary-
|
|
15
|
-
<link rel="stylesheet" crossorigin href="./assets/index-
|
|
11
|
+
<script type="module" crossorigin src="./assets/installer-BTKc-9AM.js"></script>
|
|
12
|
+
<link rel="modulepreload" crossorigin href="./assets/messages-Bst4VOU3.js">
|
|
13
|
+
<link rel="modulepreload" crossorigin href="./assets/index-CNnTZGuV.js">
|
|
14
|
+
<link rel="modulepreload" crossorigin href="./assets/error-boundary-BhcUnSSp.js">
|
|
15
|
+
<link rel="stylesheet" crossorigin href="./assets/index-BABrnwf5.css">
|
|
16
16
|
</head>
|
|
17
17
|
|
|
18
18
|
<body>
|
package/out/renderer/mini.html
CHANGED
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
<title>Local Operator Quick Send</title>
|
|
7
7
|
<meta http-equiv="Content-Security-Policy"
|
|
8
8
|
content="default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; font-src 'self' data:" />
|
|
9
|
-
<script type="module" crossorigin src="./assets/mini-
|
|
10
|
-
<link rel="modulepreload" crossorigin href="./assets/messages-
|
|
11
|
-
<link rel="modulepreload" crossorigin href="./assets/index-
|
|
12
|
-
<link rel="modulepreload" crossorigin href="./assets/error-boundary-
|
|
13
|
-
<link rel="modulepreload" crossorigin href="./assets/path-utils-
|
|
14
|
-
<link rel="modulepreload" crossorigin href="./assets/conversation-input-sync-
|
|
15
|
-
<link rel="modulepreload" crossorigin href="./assets/use-session-snapshot-
|
|
16
|
-
<link rel="stylesheet" crossorigin href="./assets/index-
|
|
9
|
+
<script type="module" crossorigin src="./assets/mini-DjdzboAc.js"></script>
|
|
10
|
+
<link rel="modulepreload" crossorigin href="./assets/messages-Bst4VOU3.js">
|
|
11
|
+
<link rel="modulepreload" crossorigin href="./assets/index-CNnTZGuV.js">
|
|
12
|
+
<link rel="modulepreload" crossorigin href="./assets/error-boundary-BhcUnSSp.js">
|
|
13
|
+
<link rel="modulepreload" crossorigin href="./assets/path-utils-CzhWDDSj.js">
|
|
14
|
+
<link rel="modulepreload" crossorigin href="./assets/conversation-input-sync-6W6mDd5c.js">
|
|
15
|
+
<link rel="modulepreload" crossorigin href="./assets/use-session-snapshot-CI2ND9fV.js">
|
|
16
|
+
<link rel="stylesheet" crossorigin href="./assets/index-BABrnwf5.css">
|
|
17
17
|
<link rel="stylesheet" crossorigin href="./assets/conversation-input-sync-CAX4_ErH.css">
|
|
18
18
|
</head>
|
|
19
19
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "local-operator-ui",
|
|
3
|
-
"version": "0.44.
|
|
3
|
+
"version": "0.44.2",
|
|
4
4
|
"productName": "Local Operator",
|
|
5
5
|
"description": "User interface for AI agent assistants that run Python code safely on your device through an intuitive chat interface. Supports local and cloud LLM models with built-in security features.",
|
|
6
6
|
"main": "./out/main/index.js",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"test:window-guards": "node scripts/window-guards-electron.test.mjs",
|
|
91
91
|
"test:window-glass": "node --test scripts/window-glass-cdp.test.mjs",
|
|
92
92
|
"test:tag-dialogs": "node scripts/run-desktop-tests.mjs scripts/chat-tag-dialogs-immediate.test.mjs",
|
|
93
|
-
"test:desktop": "node scripts/run-desktop-tests.mjs scripts/about-panel.test.mjs scripts/agent-class-toggle.test.mjs scripts/agent-hub-org-sharing.test.mjs scripts/agent-hub-public-teams.test.mjs scripts/agent-hub-queries.test.mjs scripts/agent-hub-skills-tab-count.test.mjs scripts/agent-hub-teams-tab-count.test.mjs scripts/agent-messages-busy.test.mjs scripts/agent-messages-dialog.test.mjs scripts/agent-messages-model.test.mjs scripts/agent-messages-settings.test.mjs scripts/agent-shell-spawn-env.test.mjs scripts/agents-composer-mount.test.mjs scripts/agents-config-probe-cadence.test.mjs scripts/agents-config-retry.test.mjs scripts/agents-config-summary.test.mjs scripts/agents-offer-dismiss.test.mjs scripts/agents-publication.test.mjs scripts/agents-source-and-recency-locale.test.mjs scripts/aida-rail-marks.test.mjs scripts/aida-sidebar.test.mjs scripts/analytics-channels.test.mjs scripts/analytics-rate-format.test.mjs scripts/analytics-session-table.test.mjs scripts/approval-escape.test.mjs scripts/approvals-overlay.test.mjs scripts/ask-composer-no-routing.test.mjs scripts/ask-dismiss-panel.test.mjs scripts/ask-dismiss.test.mjs scripts/ask-draft-swap.test.mjs scripts/ask-open-policy.test.mjs scripts/ask-open-render.test.mjs scripts/ask-options.test.mjs scripts/ask-other.test.mjs scripts/ask-queue.test.mjs scripts/ask-revise.test.mjs scripts/asks-app-regression.test.mjs scripts/at-mentions.test.mjs scripts/attachment-files.test.mjs scripts/attachment-live-row.test.mjs scripts/attachment-url.test.mjs scripts/attention-seen.test.mjs scripts/audio-engine.test.mjs scripts/audio-meter-stream.test.mjs scripts/audio-recording-levels.test.mjs scripts/authoring-refresh.test.mjs scripts/backend-error-surfaces.test.mjs scripts/backend-setting-combos.test.mjs scripts/backend-settings-collapse.test.mjs scripts/backend-settings-drafts.test.mjs scripts/backend-settings-tiers.test.mjs scripts/backend-spawn-address.test.mjs scripts/backend-version-drift.test.mjs scripts/browser-address-autocomplete.test.mjs scripts/browser-address-history.test.mjs scripts/browser-address-overlay.test.mjs scripts/browser-address-raises.test.mjs scripts/browser-approvals-dock-width.test.mjs scripts/browser-chord-renderer.test.mjs scripts/browser-chord.test.mjs scripts/browser-chrome-gaps.test.mjs scripts/browser-chrome-s4b-probe-rig.test.mjs scripts/browser-chrome.test.mjs scripts/browser-file-transfer-row.test.mjs scripts/browser-find-row.test.mjs scripts/browser-history-store.test.mjs scripts/browser-host.test.mjs scripts/browser-network-capture.test.mjs scripts/browser-page-controls.test.mjs scripts/browser-page-menu-focus.test.mjs scripts/browser-page-menu.test.mjs scripts/browser-queue-expiry.test.mjs scripts/browser-site-trigger.test.mjs scripts/browser-start-page.test.mjs scripts/browser-startup.test.mjs scripts/browser-tab-management.test.mjs scripts/browser-tab-strip-focus.test.mjs scripts/browser-toolbar.test.mjs scripts/browser-url-autocomplete.test.mjs scripts/browser-view-policy-kinds.test.mjs scripts/btw-aside.test.mjs scripts/build-env-guard.test.mjs scripts/bundled-runtime-layout.test.mjs scripts/canonical-chat.test.mjs scripts/canonical-notice.test.mjs scripts/canvas-file-freshness.test.mjs scripts/canvas-goals.test.mjs scripts/canvas-tab-close.test.mjs scripts/capture-evidence.test.mjs scripts/chat-archive-press.test.mjs scripts/chat-archived.test.mjs scripts/chat-device-model.test.mjs scripts/chat-device-placement.test.mjs scripts/chat-image-expand.test.mjs scripts/chat-keyboard-regions.test.mjs scripts/chat-link-affordances.test.mjs scripts/chat-list-sections.test.mjs scripts/chat-pane-floors.test.mjs scripts/chat-remote.test.mjs scripts/chat-search.test.mjs scripts/chat-session-copy-id.test.mjs scripts/chat-session-status.test.mjs scripts/chat-session-subagents.test.mjs scripts/chat-sidebar-agents.test.mjs scripts/chat-sidebar-archive.test.mjs scripts/chat-sidebar-connection-voices.test.mjs scripts/chat-sidebar-drafts.test.mjs scripts/chat-sidebar-hover-intent.test.mjs scripts/chat-sidebar-layout.test.mjs scripts/chat-sidebar-pins.test.mjs scripts/chat-sidebar-row-menu.test.mjs scripts/chat-sidebar-scope-paging.test.mjs scripts/chat-sidebar-sections.test.mjs scripts/chat-sidebar-selection.test.mjs scripts/chat-sidebar-tags.test.mjs scripts/chat-sidebar-time-order.test.mjs scripts/chat-sidebar-view.test.mjs scripts/chat-status-strip.test.mjs scripts/chat-title.test.mjs scripts/check-build-env.test.mjs scripts/check-design-kit.test.mjs scripts/check-evidence-structure.test.mjs scripts/check-geometry-sources.test.mjs scripts/check-runtime-deps.test.mjs scripts/check-vendored.test.mjs scripts/checkpoint-model.test.mjs scripts/checkpoint-rail.test.mjs scripts/child-reader-foot-react.test.mjs scripts/child-transcript-paging.test.mjs scripts/chrome-keychain.test.mjs scripts/ci-log-guard.test.mjs scripts/ci-scope.test.mjs scripts/clear-search.test.mjs scripts/click-proof-expect.test.mjs scripts/code-review-delayed-flag.test.mjs scripts/code-review-model.test.mjs scripts/code-review-refresh-cue.test.mjs scripts/code-review-row-layout.test.mjs scripts/collapse-plan-per-pass.test.mjs scripts/compact-receipt.test.mjs scripts/completion-view-ack.test.mjs scripts/composer-file-drop.test.mjs scripts/composer-queued-send.test.mjs scripts/composer-readings.test.mjs scripts/composer-refusal.test.mjs scripts/composer-seeding.test.mjs scripts/composer-send-failure.test.mjs scripts/composer-suggestions.test.mjs scripts/composer-tabs.test.mjs scripts/composer-text-authority.test.mjs scripts/composer-tip-react.test.mjs scripts/condense-parity.test.mjs scripts/conflict-markers.test.mjs scripts/connectivity-banner-copy.test.mjs scripts/connectivity-banner-notice.test.mjs scripts/console-close.test.mjs scripts/console-host.test.mjs scripts/console-i18n-fit.test.mjs scripts/console-mirror.test.mjs scripts/console-pack.test.mjs scripts/console-pane-render.test.mjs scripts/console-pane.test.mjs scripts/context-readout-monotonic.test.mjs scripts/copy-button-copy-locale.test.mjs scripts/credential-capture.test.mjs scripts/credential-composer.test.mjs scripts/cross-session-visibility.test.mjs scripts/currency-math.test.mjs scripts/daemon-discovery.test.mjs scripts/daemon-health-state.test.mjs scripts/daemon-observation.test.mjs scripts/default-effort-options.test.mjs scripts/delivery-gate.test.mjs scripts/desktop-contract.test.mjs scripts/desktop-feed.test.mjs scripts/desktop-notifier.test.mjs scripts/desktop-proxy.test.mjs scripts/desktop-renderer-transport.test.mjs scripts/desktop-stream.test.mjs scripts/desktop-test-concurrency.test.mjs scripts/desktop-test-lane-bound.test.mjs scripts/desktop-test-memory-guard.test.mjs scripts/desktop-test-shards.test.mjs scripts/desktop-watch-lease.test.mjs scripts/dev-driver-attach.test.mjs scripts/dev-driver-gate.test.mjs scripts/dev-shortcuts.test.mjs scripts/directory-listing.test.mjs scripts/document-direction.test.mjs scripts/draft-selection.test.mjs scripts/draft-slash-identity.test.mjs scripts/draft-splash.test.mjs scripts/drafts-clear-on-send.test.mjs scripts/echo-delivery.test.mjs scripts/evidence-fold.test.mjs scripts/evidence-histogram-parity.test.mjs scripts/evidence-manifest.test.mjs scripts/evidence-run-guard.test.mjs scripts/evidence-sign-in-states.test.mjs scripts/evidence-tz.test.mjs scripts/external-open-refusal.test.mjs scripts/file-blob-url.test.mjs scripts/finder-files.test.mjs scripts/finder-reveal-scroll.test.mjs scripts/fleet-asks.test.mjs scripts/fold-open.test.mjs scripts/frontend-replace.test.mjs scripts/header-identity-menu.test.mjs scripts/header-identity-model.test.mjs scripts/held-claim-reach.test.mjs scripts/hold-escape-claim.test.mjs scripts/hotkey-registration.test.mjs scripts/hub-link-copy.test.mjs scripts/hub-link-view.test.mjs scripts/hub-links-scene.test.mjs scripts/hub-mutation-safety.test.mjs scripts/hub-skill-alias.test.mjs scripts/hub-skill-state.test.mjs scripts/hub-skills-capability.test.mjs scripts/hub-updates.test.mjs scripts/i18n/absent-locale.test.mjs scripts/i18n/activation.test.mjs scripts/i18n/canvas-picker-review-remediation.test.mjs scripts/i18n/check-added-strings.test.mjs scripts/i18n/check-coverage.test.mjs scripts/i18n/check-strings.test.mjs scripts/i18n/context-parity.test.mjs scripts/i18n/es-activation.test.mjs scripts/i18n/format.test.mjs scripts/i18n/hi-activation.test.mjs scripts/i18n/ledger-assemble.test.mjs scripts/i18n/ledger-check.test.mjs scripts/i18n/locale-parity.test.mjs scripts/i18n/locale-reactivity.test.mjs scripts/i18n/ru-activation.test.mjs scripts/i18n/runtime.test.mjs scripts/i18n/surface-copy-reactivity.test.mjs scripts/i18n/table-pager-range.test.mjs scripts/i18n/typed-keys.test.mjs scripts/i18n/ur-activation.test.mjs scripts/i18n/vi-activation.test.mjs scripts/i18n/zh-CN-activation.test.mjs scripts/icon-identity.test.mjs scripts/image-actions.test.mjs scripts/image-gen-card.test.mjs scripts/image-preview-decode.test.mjs scripts/import-settings-section.test.mjs scripts/import-settings-view.test.mjs scripts/install-builtin-batch.test.mjs scripts/install-progress.test.mjs scripts/install-scripts-network.test.mjs scripts/integration-model.test.mjs scripts/interrupt-control.test.mjs scripts/interrupt-slot-hold-react.test.mjs scripts/job-cancel-panel.test.mjs scripts/job-controls.test.mjs scripts/journal-order-query.test.mjs scripts/keyboard-shortcuts-section.test.mjs scripts/keymap-chords.test.mjs scripts/keymap-dispatch.test.mjs scripts/keymap-persistence.test.mjs scripts/keymap-registry.test.mjs scripts/keymap-retention.test.mjs scripts/lane-leading.test.mjs scripts/lane-registration.test.mjs scripts/language-dialog.test.mjs scripts/language-live-updates.test.mjs scripts/launch-session.test.mjs scripts/launcher-watch.test.mjs scripts/library-card.test.mjs scripts/library-markdown.test.mjs scripts/library-model.test.mjs scripts/library-page.test.mjs scripts/library-pptx.test.mjs scripts/link-actions.test.mjs scripts/link-targets.test.mjs scripts/linux-sandbox.test.mjs scripts/live-seed-placement.test.mjs scripts/live-update-integrity.test.mjs scripts/loader-state-machine.test.mjs scripts/locale-direction.test.mjs scripts/logger-log-dir.test.mjs scripts/main-locale.test.mjs scripts/managed-python-transaction.test.mjs scripts/managed-python.test.mjs scripts/mark-all-read-control.test.mjs scripts/markdown-remend.test.mjs scripts/markdown-table-widths.test.mjs scripts/mcp-auth-complete-no-retry.test.mjs scripts/mcp-auth-surface.test.mjs scripts/mcp-catalog-parity.test.mjs scripts/mcp-catalog-transport.test.mjs scripts/mcp-failure-routing.test.mjs scripts/mcp-foreign-config-origin.test.mjs scripts/mcp-list-query.test.mjs scripts/mcp-target-resolution.test.mjs scripts/media-surface-floors.test.mjs scripts/mentioned-files.test.mjs scripts/merge-update-feed.test.mjs scripts/mesh-canvas-bench.test.mjs scripts/mesh-tab.test.mjs scripts/message-actions.test.mjs scripts/message-quote.test.mjs scripts/message-surface-floors.test.mjs scripts/mini-view-contract.test.mjs scripts/mini-view-dictation.test.mjs scripts/model-select-store.test.mjs scripts/model-setting-options.test.mjs scripts/monitor-cancel-dialog.test.mjs scripts/monitor-controls.test.mjs scripts/move-session.test.mjs scripts/navigation-gesture.test.mjs scripts/new-chat-row-evidence.test.mjs scripts/new-chat-row.test.mjs scripts/new-chat-shortcut.test.mjs scripts/no-hardlink-write.test.mjs scripts/no-websocket-plane.test.mjs scripts/notification-launch.test.mjs scripts/notification-lifetime.test.mjs scripts/notification-spawn-sites.test.mjs scripts/notifications-off.test.mjs scripts/older-history-slot.test.mjs scripts/onboarding-default-model.test.mjs scripts/onboarding-i18n-contract.test.mjs scripts/onboarding-search-step.test.mjs scripts/onboarding-step-block.test.mjs scripts/org-team-date-locale.test.mjs scripts/org-teams-summary.test.mjs scripts/overlay-drag-zones.test.mjs scripts/owned-serve-lifecycle.test.mjs scripts/pairing-card-copy.test.mjs scripts/palette-contract.test.mjs scripts/palette-focus.test.mjs scripts/palette-main-door.test.mjs scripts/palette-panel-request.test.mjs scripts/palette-recents.test.mjs scripts/palette-search.test.mjs scripts/palette-shortcut.test.mjs scripts/pane-slot-ground.test.mjs scripts/panel-chart-hover.test.mjs scripts/panel-chart-motion.test.mjs scripts/panel-info-credentials.test.mjs scripts/panel-info-fleet.test.mjs scripts/panel-info-session-age.test.mjs scripts/panel-presentation.test.mjs scripts/panel-rail.test.mjs scripts/panel-read-policy.test.mjs scripts/panel-top-inset.test.mjs scripts/path-utils.test.mjs scripts/peer-journal-source.test.mjs scripts/peer-source-unified.test.mjs scripts/peers-catalogue.test.mjs scripts/phone-access-block.test.mjs scripts/picker-default-checkbox.test.mjs scripts/picker-feedback.test.mjs scripts/picker-host-selection.test.mjs scripts/pre-push-gate.test.mjs scripts/preload-updater-surface.test.mjs scripts/preview-signed-urls.test.mjs scripts/project-update-assets.test.mjs scripts/project-view-perf.test.mjs scripts/projects-board-focus.test.mjs scripts/projects-card-click.test.mjs scripts/projects-entry-scroll.test.mjs scripts/projects-filters.test.mjs scripts/projects-force-done.test.mjs scripts/projects-i18n-locale.test.mjs scripts/projects-inline-edit.test.mjs scripts/projects-quick-send.test.mjs scripts/projects-request-update.test.mjs scripts/projects-search-index.test.mjs scripts/projects-search.test.mjs scripts/projects-sheet.test.mjs scripts/projects-sort.test.mjs scripts/projects-tab.test.mjs scripts/projects-time-window.test.mjs scripts/provider-catalog.test.mjs scripts/provider-chip-verdict.test.mjs scripts/provider-detail-remount.test.mjs scripts/provider-error-guidance.test.mjs scripts/provider-grid-error-copy.test.mjs scripts/provider-grid-pin.test.mjs scripts/provider-sign-in-flow.test.mjs scripts/provider-state.test.mjs scripts/provider-status.test.mjs scripts/prune-bundled-resources.test.mjs scripts/prune-python-seed.test.mjs scripts/ptt-keymap-binding.test.mjs scripts/python-bytecode-cache.test.mjs scripts/quota-notice.test.mjs scripts/radient-credits-guidance.test.mjs scripts/radient-session-issue.test.mjs scripts/radient-signout-authority.test.mjs scripts/radient-verify-callout.test.mjs scripts/receipt-fold-behaviour.test.mjs scripts/reconnect-page-gap.test.mjs scripts/relaunch-during-quit-proof.test.mjs scripts/reload-picker-close.test.mjs scripts/render-mac-entitlements.test.mjs scripts/renderer-driver-api.test.mjs scripts/resolve-package-union.test.mjs scripts/response-copy.test.mjs scripts/retention-duration.test.mjs scripts/reveal-record.test.mjs scripts/right-slot-memory.test.mjs scripts/right-slot-width.test.mjs scripts/row-state-floors.test.mjs scripts/rtl-layout.test.mjs scripts/run-child-reader.test.mjs scripts/run-desktop-tests.test.mjs scripts/run-detail-model.test.mjs scripts/run-detail-wake-label-locale.test.mjs scripts/run-panel-navigation.test.mjs scripts/scheduled-task-model.test.mjs scripts/scroll-region-to-top.test.mjs scripts/scrollbar-activity.test.mjs scripts/searchable-select.test.mjs scripts/secret-ask.test.mjs scripts/seed-label-gap.test.mjs scripts/seed-placement.test.mjs scripts/server-release-notes.test.mjs scripts/session-archive-delete.test.mjs scripts/session-asks.test.mjs scripts/session-cookies.test.mjs scripts/session-files-hook.test.mjs scripts/session-load-recovery.test.mjs scripts/session-load-sequence.test.mjs scripts/session-status-feed.test.mjs scripts/session-status-lifecycle.test.mjs scripts/session-status.test.mjs scripts/session-stream-token.test.mjs scripts/session-switch.test.mjs scripts/session-switcher.test.mjs scripts/settings-account-gate.test.mjs scripts/settings-language-row.test.mjs scripts/settings-section-routes.test.mjs scripts/settings-time-to-error.test.mjs scripts/shared-composer.test.mjs scripts/shell-path.test.mjs scripts/sidebar-account-reconnect.test.mjs scripts/sidebar-catalogue-gate.test.mjs scripts/sidebar-destinations.test.mjs scripts/sidebar-focus-hold.test.mjs scripts/sidebar-pin-order.test.mjs scripts/sidebar-split.test.mjs scripts/sidebar-tag-auto.test.mjs scripts/sidebar-tag-drag.test.mjs scripts/sidebar-tag-picker.test.mjs scripts/skill-highlight.test.mjs scripts/skill-invocation.test.mjs scripts/skill-list.test.mjs scripts/skill-row.test.mjs scripts/skill-seal-behaviour.test.mjs scripts/slash-contract.test.mjs scripts/slash-highlight.test.mjs scripts/slash-rank.test.mjs scripts/slash-row-format.test.mjs scripts/slash-submit.test.mjs scripts/slash-tags-popup.test.mjs scripts/slash-tags-reopen.test.mjs scripts/slash-tags.test.mjs scripts/slash-token.test.mjs scripts/soft-breaks.test.mjs scripts/sound-player.test.mjs scripts/sounds-fixture.test.mjs scripts/speech-clip.test.mjs scripts/speech-controls.test.mjs scripts/speech-selection.test.mjs scripts/speech-settings.test.mjs scripts/speech-store.test.mjs scripts/speech-target.test.mjs scripts/speech-user-copy.test.mjs scripts/spend-payment-basis.test.mjs scripts/stale-agent.test.mjs scripts/stale-caption.test.mjs scripts/stopped-row-measure.test.mjs scripts/storybook-query-fixture.test.mjs scripts/stream-order-live.test.mjs scripts/streaming-live-markdown.test.mjs scripts/streaming-markdown-parity.test.mjs scripts/stt-mic-gate-session.test.mjs scripts/subagent-pulse.test.mjs scripts/submit-latency.test.mjs scripts/suggestion-stack-react.test.mjs scripts/suggestion-stack.test.mjs scripts/supplement-collage.test.mjs scripts/supplement-disclosure.test.mjs scripts/supplement-file-actions.test.mjs scripts/supplement-image-grid.test.mjs scripts/supplement-model.test.mjs scripts/supplement-row.test.mjs scripts/team-bridge-arrival.test.mjs scripts/team-bridge-attachments.test.mjs scripts/team-bridge-auth-owner-mount.test.mjs scripts/team-bridge-avatar.test.mjs scripts/team-bridge-banner.test.mjs scripts/team-bridge-channels.test.mjs scripts/team-bridge-composer-ring.test.mjs scripts/team-bridge-directory.test.mjs scripts/team-bridge-drafts-scheduled.test.mjs scripts/team-bridge-model.test.mjs scripts/team-bridge-notifications-mount.test.mjs scripts/team-bridge-notify.test.mjs scripts/team-bridge-rail-profile-card.test.mjs scripts/team-bridge-reactions-behaviour.test.mjs scripts/team-bridge-reactions.test.mjs scripts/team-bridge-scope.test.mjs scripts/team-bridge-thread-gate.test.mjs scripts/team-bridge-threads.test.mjs scripts/team-initials.test.mjs scripts/team-member-overrides.test.mjs scripts/team-new-chat-stale-draft.test.mjs scripts/telemetry-launch.test.mjs scripts/telemetry-spawn-sites.test.mjs scripts/test-inventory.test.mjs scripts/theme-grid-navigation.test.mjs scripts/theme-inline.test.mjs scripts/theme-registry-exhaustiveness.test.mjs scripts/thread-search-contract.test.mjs scripts/thread-search-model.test.mjs scripts/thread-search-overlay.test.mjs scripts/titlebar-options.test.mjs scripts/toast-close-placement.test.mjs scripts/toast-lifetime.test.mjs scripts/tool-compose-lifecycle.test.mjs scripts/tool-row.test.mjs scripts/tooltip-browser-view.test.mjs scripts/trace-fold-behaviour.test.mjs scripts/trace-fold-model.test.mjs scripts/transcript-copy-affordances.test.mjs scripts/transcript-cursor-continuity.test.mjs scripts/transcript-deep-jump.test.mjs scripts/transcript-dom-window-hook.test.mjs scripts/transcript-dom-window.test.mjs scripts/transcript-fade.test.mjs scripts/transcript-focus-behaviour.test.mjs scripts/transcript-focus.test.mjs scripts/transcript-foot-slot.test.mjs scripts/transcript-journal-order.test.mjs scripts/transcript-loader.test.mjs scripts/transcript-paging-hook.test.mjs scripts/transcript-paging.test.mjs scripts/transcript-perflush-perf.test.mjs scripts/transcript-rail-refusal.test.mjs scripts/transcript-reducer.test.mjs scripts/transcript-strand-hold.test.mjs scripts/transcription-failure-copy.test.mjs scripts/transcription-transient-retry.test.mjs scripts/turn-answer-rail.test.mjs scripts/turn-collapse-behaviour.test.mjs scripts/turn-collapse-model.test.mjs scripts/turn-partition-predicate.test.mjs scripts/turn-segments.test.mjs scripts/turn-timestamp.test.mjs scripts/typed-row-call-sites.test.mjs scripts/undo-toasts.test.mjs scripts/update-affirmation.test.mjs scripts/update-fleet-drain.test.mjs scripts/update-global-guard.test.mjs scripts/update-global-install.test.mjs scripts/update-indicator-segments.test.mjs scripts/update-install-copy.test.mjs scripts/update-robustness.test.mjs scripts/update-rollover.test.mjs scripts/update-shipit.test.mjs scripts/update-window-report.test.mjs scripts/usage-container.test.mjs scripts/usage-view.test.mjs scripts/use-active-checkpoint.test.mjs scripts/use-checkpoints.test.mjs scripts/use-ever-in-view.test.mjs scripts/use-thread-search.test.mjs scripts/verify-bundled-uv.test.mjs scripts/verify-macos-artifacts.test.mjs scripts/viewer-record.test.mjs scripts/wake-cancel-panel.test.mjs scripts/wake-controls.test.mjs scripts/warm-session.test.mjs scripts/waveform-model.test.mjs scripts/webauthn.test.mjs scripts/window-chrome.test.mjs scripts/window-glass-main.test.mjs scripts/window-glass-renderer.test.mjs scripts/window-glass.test.mjs scripts/window-guards.test.mjs scripts/window-mode.test.mjs scripts/working-line-clock.test.mjs",
|
|
93
|
+
"test:desktop": "node scripts/run-desktop-tests.mjs scripts/about-panel.test.mjs scripts/agent-class-toggle.test.mjs scripts/agent-hub-org-sharing.test.mjs scripts/agent-hub-public-teams.test.mjs scripts/agent-hub-queries.test.mjs scripts/agent-hub-skills-tab-count.test.mjs scripts/agent-hub-teams-tab-count.test.mjs scripts/agent-messages-busy.test.mjs scripts/agent-messages-dialog.test.mjs scripts/agent-messages-model.test.mjs scripts/agent-messages-settings.test.mjs scripts/agent-shell-spawn-env.test.mjs scripts/agents-composer-mount.test.mjs scripts/agents-config-probe-cadence.test.mjs scripts/agents-config-retry.test.mjs scripts/agents-config-summary.test.mjs scripts/agents-offer-dismiss.test.mjs scripts/agents-publication.test.mjs scripts/agents-source-and-recency-locale.test.mjs scripts/aida-rail-marks.test.mjs scripts/aida-sidebar.test.mjs scripts/analytics-channels.test.mjs scripts/analytics-rate-format.test.mjs scripts/analytics-session-table.test.mjs scripts/approval-escape.test.mjs scripts/approvals-overlay.test.mjs scripts/ask-composer-no-routing.test.mjs scripts/ask-dismiss-panel.test.mjs scripts/ask-dismiss.test.mjs scripts/ask-draft-swap.test.mjs scripts/ask-open-policy.test.mjs scripts/ask-open-render.test.mjs scripts/ask-options.test.mjs scripts/ask-other.test.mjs scripts/ask-queue.test.mjs scripts/ask-revise.test.mjs scripts/asks-app-regression.test.mjs scripts/at-mentions.test.mjs scripts/attachment-files.test.mjs scripts/attachment-live-row.test.mjs scripts/attachment-url.test.mjs scripts/attention-seen.test.mjs scripts/audio-engine.test.mjs scripts/audio-meter-stream.test.mjs scripts/audio-recording-levels.test.mjs scripts/authoring-refresh.test.mjs scripts/backend-error-surfaces.test.mjs scripts/backend-setting-combos.test.mjs scripts/backend-settings-collapse.test.mjs scripts/backend-settings-drafts.test.mjs scripts/backend-settings-tiers.test.mjs scripts/backend-spawn-address.test.mjs scripts/backend-version-drift.test.mjs scripts/browser-address-autocomplete.test.mjs scripts/browser-address-history.test.mjs scripts/browser-address-overlay.test.mjs scripts/browser-address-raises.test.mjs scripts/browser-approvals-dock-width.test.mjs scripts/browser-chord-renderer.test.mjs scripts/browser-chord.test.mjs scripts/browser-chrome-gaps.test.mjs scripts/browser-chrome-s4b-probe-rig.test.mjs scripts/browser-chrome.test.mjs scripts/browser-file-transfer-row.test.mjs scripts/browser-find-row.test.mjs scripts/browser-history-store.test.mjs scripts/browser-host.test.mjs scripts/browser-network-capture.test.mjs scripts/browser-page-controls.test.mjs scripts/browser-page-menu-focus.test.mjs scripts/browser-page-menu.test.mjs scripts/browser-queue-expiry.test.mjs scripts/browser-site-trigger.test.mjs scripts/browser-start-page.test.mjs scripts/browser-startup.test.mjs scripts/browser-tab-management.test.mjs scripts/browser-tab-strip-focus.test.mjs scripts/browser-toolbar.test.mjs scripts/browser-url-autocomplete.test.mjs scripts/browser-view-policy-kinds.test.mjs scripts/btw-aside.test.mjs scripts/build-env-guard.test.mjs scripts/bundled-runtime-layout.test.mjs scripts/canonical-chat.test.mjs scripts/canonical-notice.test.mjs scripts/canvas-file-freshness.test.mjs scripts/canvas-goals.test.mjs scripts/canvas-tab-close.test.mjs scripts/capture-evidence.test.mjs scripts/chat-archive-press.test.mjs scripts/chat-archived.test.mjs scripts/chat-device-model.test.mjs scripts/chat-device-placement.test.mjs scripts/chat-image-expand.test.mjs scripts/chat-keyboard-regions.test.mjs scripts/chat-link-affordances.test.mjs scripts/chat-list-sections.test.mjs scripts/chat-pane-floors.test.mjs scripts/chat-remote.test.mjs scripts/chat-search.test.mjs scripts/chat-session-copy-id.test.mjs scripts/chat-session-status.test.mjs scripts/chat-session-subagents.test.mjs scripts/chat-sidebar-agents.test.mjs scripts/chat-sidebar-archive.test.mjs scripts/chat-sidebar-connection-voices.test.mjs scripts/chat-sidebar-drafts.test.mjs scripts/chat-sidebar-hover-intent.test.mjs scripts/chat-sidebar-layout.test.mjs scripts/chat-sidebar-pins.test.mjs scripts/chat-sidebar-row-menu.test.mjs scripts/chat-sidebar-scope-paging.test.mjs scripts/chat-sidebar-sections.test.mjs scripts/chat-sidebar-selection.test.mjs scripts/chat-sidebar-tags.test.mjs scripts/chat-sidebar-time-order.test.mjs scripts/chat-sidebar-view.test.mjs scripts/chat-status-strip.test.mjs scripts/chat-title.test.mjs scripts/check-build-env.test.mjs scripts/check-design-kit.test.mjs scripts/check-evidence-structure.test.mjs scripts/check-geometry-sources.test.mjs scripts/check-runtime-deps.test.mjs scripts/check-vendored.test.mjs scripts/checkpoint-model.test.mjs scripts/checkpoint-rail.test.mjs scripts/child-reader-foot-react.test.mjs scripts/child-transcript-paging.test.mjs scripts/chrome-keychain.test.mjs scripts/ci-log-guard.test.mjs scripts/ci-scope.test.mjs scripts/clear-search.test.mjs scripts/click-proof-expect.test.mjs scripts/code-review-delayed-flag.test.mjs scripts/code-review-model.test.mjs scripts/code-review-refresh-cue.test.mjs scripts/code-review-row-layout.test.mjs scripts/collapse-plan-per-pass.test.mjs scripts/compact-receipt.test.mjs scripts/completion-view-ack.test.mjs scripts/composer-file-drop.test.mjs scripts/composer-queued-send.test.mjs scripts/composer-readings.test.mjs scripts/composer-refusal.test.mjs scripts/composer-seeding.test.mjs scripts/composer-send-failure.test.mjs scripts/composer-suggestions.test.mjs scripts/composer-tabs.test.mjs scripts/composer-text-authority.test.mjs scripts/composer-tip-react.test.mjs scripts/condense-parity.test.mjs scripts/conflict-markers.test.mjs scripts/connectivity-banner-copy.test.mjs scripts/connectivity-banner-notice.test.mjs scripts/console-close.test.mjs scripts/console-host.test.mjs scripts/console-i18n-fit.test.mjs scripts/console-mirror.test.mjs scripts/console-pack.test.mjs scripts/console-pane-render.test.mjs scripts/console-pane.test.mjs scripts/context-readout-monotonic.test.mjs scripts/copy-button-copy-locale.test.mjs scripts/credential-capture.test.mjs scripts/credential-composer.test.mjs scripts/cross-session-visibility.test.mjs scripts/currency-math.test.mjs scripts/daemon-discovery.test.mjs scripts/daemon-health-state.test.mjs scripts/daemon-observation.test.mjs scripts/default-effort-options.test.mjs scripts/default-on-banner.test.mjs scripts/delivery-gate.test.mjs scripts/desktop-contract.test.mjs scripts/desktop-feed.test.mjs scripts/desktop-notifier.test.mjs scripts/desktop-proxy.test.mjs scripts/desktop-renderer-transport.test.mjs scripts/desktop-stream.test.mjs scripts/desktop-test-concurrency.test.mjs scripts/desktop-test-lane-bound.test.mjs scripts/desktop-test-memory-guard.test.mjs scripts/desktop-test-shards.test.mjs scripts/desktop-watch-lease.test.mjs scripts/dev-driver-attach.test.mjs scripts/dev-driver-gate.test.mjs scripts/dev-shortcuts.test.mjs scripts/directory-listing.test.mjs scripts/document-direction.test.mjs scripts/draft-selection.test.mjs scripts/draft-slash-identity.test.mjs scripts/draft-splash.test.mjs scripts/drafts-clear-on-send.test.mjs scripts/echo-delivery.test.mjs scripts/evidence-fold.test.mjs scripts/evidence-histogram-parity.test.mjs scripts/evidence-manifest.test.mjs scripts/evidence-run-guard.test.mjs scripts/evidence-sign-in-states.test.mjs scripts/evidence-tz.test.mjs scripts/external-open-refusal.test.mjs scripts/file-blob-url.test.mjs scripts/finder-files.test.mjs scripts/finder-reveal-scroll.test.mjs scripts/fleet-asks.test.mjs scripts/fold-open.test.mjs scripts/frontend-replace.test.mjs scripts/header-identity-menu.test.mjs scripts/header-identity-model.test.mjs scripts/held-claim-reach.test.mjs scripts/hold-escape-claim.test.mjs scripts/hotkey-registration.test.mjs scripts/hub-link-copy.test.mjs scripts/hub-link-view.test.mjs scripts/hub-links-scene.test.mjs scripts/hub-mutation-safety.test.mjs scripts/hub-skill-alias.test.mjs scripts/hub-skill-state.test.mjs scripts/hub-skills-capability.test.mjs scripts/hub-updates.test.mjs scripts/i18n/absent-locale.test.mjs scripts/i18n/activation.test.mjs scripts/i18n/canvas-picker-review-remediation.test.mjs scripts/i18n/check-added-strings.test.mjs scripts/i18n/check-coverage.test.mjs scripts/i18n/check-strings.test.mjs scripts/i18n/context-parity.test.mjs scripts/i18n/es-activation.test.mjs scripts/i18n/format.test.mjs scripts/i18n/hi-activation.test.mjs scripts/i18n/ledger-assemble.test.mjs scripts/i18n/ledger-check.test.mjs scripts/i18n/locale-parity.test.mjs scripts/i18n/locale-reactivity.test.mjs scripts/i18n/ru-activation.test.mjs scripts/i18n/runtime.test.mjs scripts/i18n/surface-copy-reactivity.test.mjs scripts/i18n/table-pager-range.test.mjs scripts/i18n/typed-keys.test.mjs scripts/i18n/ur-activation.test.mjs scripts/i18n/vi-activation.test.mjs scripts/i18n/zh-CN-activation.test.mjs scripts/icon-identity.test.mjs scripts/image-actions.test.mjs scripts/image-gen-card.test.mjs scripts/image-preview-decode.test.mjs scripts/import-settings-section.test.mjs scripts/import-settings-view.test.mjs scripts/install-builtin-batch.test.mjs scripts/install-progress.test.mjs scripts/install-scripts-network.test.mjs scripts/integration-model.test.mjs scripts/interrupt-control.test.mjs scripts/interrupt-slot-hold-react.test.mjs scripts/job-cancel-panel.test.mjs scripts/job-controls.test.mjs scripts/journal-order-query.test.mjs scripts/keyboard-shortcuts-section.test.mjs scripts/keymap-chords.test.mjs scripts/keymap-dispatch.test.mjs scripts/keymap-persistence.test.mjs scripts/keymap-registry.test.mjs scripts/keymap-retention.test.mjs scripts/lane-leading.test.mjs scripts/lane-registration.test.mjs scripts/language-dialog.test.mjs scripts/language-live-updates.test.mjs scripts/launch-session.test.mjs scripts/launcher-watch.test.mjs scripts/library-card.test.mjs scripts/library-markdown.test.mjs scripts/library-model.test.mjs scripts/library-page.test.mjs scripts/library-pptx.test.mjs scripts/link-actions.test.mjs scripts/link-targets.test.mjs scripts/linux-sandbox.test.mjs scripts/live-seed-placement.test.mjs scripts/live-update-integrity.test.mjs scripts/loader-state-machine.test.mjs scripts/locale-direction.test.mjs scripts/logger-log-dir.test.mjs scripts/main-locale.test.mjs scripts/managed-python-transaction.test.mjs scripts/managed-python.test.mjs scripts/mark-all-read-control.test.mjs scripts/markdown-remend.test.mjs scripts/markdown-table-widths.test.mjs scripts/mcp-auth-complete-no-retry.test.mjs scripts/mcp-auth-surface.test.mjs scripts/mcp-catalog-parity.test.mjs scripts/mcp-catalog-transport.test.mjs scripts/mcp-failure-routing.test.mjs scripts/mcp-foreign-config-origin.test.mjs scripts/mcp-list-query.test.mjs scripts/mcp-target-resolution.test.mjs scripts/media-surface-floors.test.mjs scripts/mentioned-files.test.mjs scripts/merge-update-feed.test.mjs scripts/mesh-canvas-bench.test.mjs scripts/mesh-tab.test.mjs scripts/message-actions.test.mjs scripts/message-quote.test.mjs scripts/message-surface-floors.test.mjs scripts/mini-view-contract.test.mjs scripts/mini-view-dictation.test.mjs scripts/model-select-store.test.mjs scripts/model-setting-options.test.mjs scripts/monitor-cancel-dialog.test.mjs scripts/monitor-controls.test.mjs scripts/move-session.test.mjs scripts/navigation-gesture.test.mjs scripts/new-chat-row-evidence.test.mjs scripts/new-chat-row.test.mjs scripts/new-chat-shortcut.test.mjs scripts/no-hardlink-write.test.mjs scripts/no-websocket-plane.test.mjs scripts/notification-launch.test.mjs scripts/notification-lifetime.test.mjs scripts/notification-spawn-sites.test.mjs scripts/notifications-off.test.mjs scripts/older-history-slot.test.mjs scripts/onboarding-default-model.test.mjs scripts/onboarding-i18n-contract.test.mjs scripts/onboarding-search-step.test.mjs scripts/onboarding-step-block.test.mjs scripts/org-team-date-locale.test.mjs scripts/org-teams-summary.test.mjs scripts/overlay-drag-zones.test.mjs scripts/owned-serve-lifecycle.test.mjs scripts/pairing-card-copy.test.mjs scripts/palette-contract.test.mjs scripts/palette-focus.test.mjs scripts/palette-main-door.test.mjs scripts/palette-panel-request.test.mjs scripts/palette-recents.test.mjs scripts/palette-search.test.mjs scripts/palette-shortcut.test.mjs scripts/pane-slot-ground.test.mjs scripts/panel-chart-hover.test.mjs scripts/panel-chart-motion.test.mjs scripts/panel-info-credentials.test.mjs scripts/panel-info-fleet.test.mjs scripts/panel-info-session-age.test.mjs scripts/panel-presentation.test.mjs scripts/panel-rail.test.mjs scripts/panel-read-policy.test.mjs scripts/panel-top-inset.test.mjs scripts/path-utils.test.mjs scripts/peer-journal-source.test.mjs scripts/peer-source-unified.test.mjs scripts/peers-catalogue.test.mjs scripts/phone-access-block.test.mjs scripts/picker-default-checkbox.test.mjs scripts/picker-feedback.test.mjs scripts/picker-host-selection.test.mjs scripts/pre-push-gate.test.mjs scripts/preload-updater-surface.test.mjs scripts/preview-signed-urls.test.mjs scripts/project-update-assets.test.mjs scripts/project-view-perf.test.mjs scripts/projects-board-focus.test.mjs scripts/projects-card-click.test.mjs scripts/projects-entry-scroll.test.mjs scripts/projects-filters.test.mjs scripts/projects-force-done.test.mjs scripts/projects-i18n-locale.test.mjs scripts/projects-inline-edit.test.mjs scripts/projects-quick-send.test.mjs scripts/projects-request-update.test.mjs scripts/projects-search-index.test.mjs scripts/projects-search.test.mjs scripts/projects-sheet.test.mjs scripts/projects-sort.test.mjs scripts/projects-tab.test.mjs scripts/projects-time-window.test.mjs scripts/provider-catalog.test.mjs scripts/provider-chip-verdict.test.mjs scripts/provider-detail-remount.test.mjs scripts/provider-error-guidance.test.mjs scripts/provider-grid-error-copy.test.mjs scripts/provider-grid-pin.test.mjs scripts/provider-sign-in-flow.test.mjs scripts/provider-state.test.mjs scripts/provider-status.test.mjs scripts/prune-bundled-resources.test.mjs scripts/prune-python-seed.test.mjs scripts/ptt-keymap-binding.test.mjs scripts/python-bytecode-cache.test.mjs scripts/quota-notice.test.mjs scripts/radient-credits-guidance.test.mjs scripts/radient-session-issue.test.mjs scripts/radient-signout-authority.test.mjs scripts/radient-verify-callout.test.mjs scripts/receipt-fold-behaviour.test.mjs scripts/reconnect-page-gap.test.mjs scripts/relaunch-during-quit-proof.test.mjs scripts/reload-picker-close.test.mjs scripts/render-mac-entitlements.test.mjs scripts/renderer-driver-api.test.mjs scripts/resolve-package-union.test.mjs scripts/response-copy.test.mjs scripts/retention-duration.test.mjs scripts/reveal-record.test.mjs scripts/right-slot-memory.test.mjs scripts/right-slot-width.test.mjs scripts/row-state-floors.test.mjs scripts/rtl-layout.test.mjs scripts/run-child-reader.test.mjs scripts/run-desktop-tests.test.mjs scripts/run-detail-model.test.mjs scripts/run-detail-wake-label-locale.test.mjs scripts/run-panel-navigation.test.mjs scripts/scheduled-task-model.test.mjs scripts/scroll-region-to-top.test.mjs scripts/scrollbar-activity.test.mjs scripts/searchable-select.test.mjs scripts/secret-ask.test.mjs scripts/seed-label-gap.test.mjs scripts/seed-placement.test.mjs scripts/server-release-notes.test.mjs scripts/session-archive-delete.test.mjs scripts/session-asks.test.mjs scripts/session-cookies.test.mjs scripts/session-files-hook.test.mjs scripts/session-load-recovery.test.mjs scripts/session-load-sequence.test.mjs scripts/session-status-feed.test.mjs scripts/session-status-lifecycle.test.mjs scripts/session-status.test.mjs scripts/session-stream-token.test.mjs scripts/session-switch.test.mjs scripts/session-switcher.test.mjs scripts/settings-account-gate.test.mjs scripts/settings-language-row.test.mjs scripts/settings-section-routes.test.mjs scripts/settings-time-to-error.test.mjs scripts/shared-composer.test.mjs scripts/shell-path.test.mjs scripts/sidebar-account-reconnect.test.mjs scripts/sidebar-catalogue-gate.test.mjs scripts/sidebar-destinations.test.mjs scripts/sidebar-focus-hold.test.mjs scripts/sidebar-own-avatar.test.mjs scripts/sidebar-pin-order.test.mjs scripts/sidebar-split.test.mjs scripts/sidebar-tag-auto.test.mjs scripts/sidebar-tag-drag.test.mjs scripts/sidebar-tag-picker.test.mjs scripts/skill-highlight.test.mjs scripts/skill-invocation.test.mjs scripts/skill-list.test.mjs scripts/skill-row.test.mjs scripts/skill-seal-behaviour.test.mjs scripts/skills-tab.test.mjs scripts/slash-contract.test.mjs scripts/slash-highlight.test.mjs scripts/slash-rank.test.mjs scripts/slash-row-format.test.mjs scripts/slash-submit.test.mjs scripts/slash-tags-popup.test.mjs scripts/slash-tags-reopen.test.mjs scripts/slash-tags.test.mjs scripts/slash-token.test.mjs scripts/soft-breaks.test.mjs scripts/sound-player.test.mjs scripts/sounds-fixture.test.mjs scripts/speech-clip.test.mjs scripts/speech-controls.test.mjs scripts/speech-selection.test.mjs scripts/speech-settings.test.mjs scripts/speech-store.test.mjs scripts/speech-target.test.mjs scripts/speech-user-copy.test.mjs scripts/spend-payment-basis.test.mjs scripts/stale-agent.test.mjs scripts/stale-caption.test.mjs scripts/stopped-row-measure.test.mjs scripts/storybook-query-fixture.test.mjs scripts/stream-order-live.test.mjs scripts/streaming-live-markdown.test.mjs scripts/streaming-markdown-parity.test.mjs scripts/stt-mic-gate-session.test.mjs scripts/subagent-pulse.test.mjs scripts/submit-latency.test.mjs scripts/suggestion-stack-react.test.mjs scripts/suggestion-stack.test.mjs scripts/supplement-collage.test.mjs scripts/supplement-disclosure.test.mjs scripts/supplement-file-actions.test.mjs scripts/supplement-image-grid.test.mjs scripts/supplement-model.test.mjs scripts/supplement-row.test.mjs scripts/team-bridge-arrival.test.mjs scripts/team-bridge-attachments.test.mjs scripts/team-bridge-auth-owner-mount.test.mjs scripts/team-bridge-avatar.test.mjs scripts/team-bridge-banner.test.mjs scripts/team-bridge-channels.test.mjs scripts/team-bridge-composer-ring.test.mjs scripts/team-bridge-directory.test.mjs scripts/team-bridge-drafts-scheduled.test.mjs scripts/team-bridge-model.test.mjs scripts/team-bridge-notifications-mount.test.mjs scripts/team-bridge-notify.test.mjs scripts/team-bridge-rail-profile-card.test.mjs scripts/team-bridge-reactions-behaviour.test.mjs scripts/team-bridge-reactions.test.mjs scripts/team-bridge-scope.test.mjs scripts/team-bridge-thread-gate.test.mjs scripts/team-bridge-threads.test.mjs scripts/team-initials.test.mjs scripts/team-member-overrides.test.mjs scripts/team-new-chat-stale-draft.test.mjs scripts/telemetry-launch.test.mjs scripts/telemetry-spawn-sites.test.mjs scripts/test-inventory.test.mjs scripts/theme-grid-navigation.test.mjs scripts/theme-inline.test.mjs scripts/theme-registry-exhaustiveness.test.mjs scripts/thread-search-contract.test.mjs scripts/thread-search-model.test.mjs scripts/thread-search-overlay.test.mjs scripts/titlebar-options.test.mjs scripts/toast-close-placement.test.mjs scripts/toast-lifetime.test.mjs scripts/tool-compose-lifecycle.test.mjs scripts/tool-row.test.mjs scripts/tooltip-browser-view.test.mjs scripts/trace-fold-behaviour.test.mjs scripts/trace-fold-model.test.mjs scripts/transcript-copy-affordances.test.mjs scripts/transcript-cursor-continuity.test.mjs scripts/transcript-deep-jump.test.mjs scripts/transcript-dom-window-hook.test.mjs scripts/transcript-dom-window.test.mjs scripts/transcript-fade.test.mjs scripts/transcript-focus-behaviour.test.mjs scripts/transcript-focus.test.mjs scripts/transcript-foot-slot.test.mjs scripts/transcript-journal-order.test.mjs scripts/transcript-loader.test.mjs scripts/transcript-paging-hook.test.mjs scripts/transcript-paging.test.mjs scripts/transcript-perflush-perf.test.mjs scripts/transcript-rail-refusal.test.mjs scripts/transcript-reducer.test.mjs scripts/transcript-strand-hold.test.mjs scripts/transcription-failure-copy.test.mjs scripts/transcription-transient-retry.test.mjs scripts/turn-answer-rail.test.mjs scripts/turn-collapse-behaviour.test.mjs scripts/turn-collapse-model.test.mjs scripts/turn-partition-predicate.test.mjs scripts/turn-segments.test.mjs scripts/turn-timestamp.test.mjs scripts/typed-row-call-sites.test.mjs scripts/undo-toasts.test.mjs scripts/update-affirmation.test.mjs scripts/update-fleet-drain.test.mjs scripts/update-global-guard.test.mjs scripts/update-global-install.test.mjs scripts/update-indicator-segments.test.mjs scripts/update-install-copy.test.mjs scripts/update-robustness.test.mjs scripts/update-rollover.test.mjs scripts/update-shipit.test.mjs scripts/update-window-report.test.mjs scripts/usage-container.test.mjs scripts/usage-view.test.mjs scripts/use-active-checkpoint.test.mjs scripts/use-checkpoints.test.mjs scripts/use-ever-in-view.test.mjs scripts/use-thread-search.test.mjs scripts/verify-bundled-uv.test.mjs scripts/verify-macos-artifacts.test.mjs scripts/viewer-record.test.mjs scripts/wake-cancel-panel.test.mjs scripts/wake-controls.test.mjs scripts/warm-session.test.mjs scripts/waveform-model.test.mjs scripts/webauthn.test.mjs scripts/window-chrome.test.mjs scripts/window-glass-main.test.mjs scripts/window-glass-renderer.test.mjs scripts/window-glass.test.mjs scripts/window-guards.test.mjs scripts/window-mode.test.mjs scripts/working-line-clock.test.mjs",
|
|
94
94
|
"check-evidence": "node scripts/check-evidence.mjs",
|
|
95
95
|
"check-evidence:parity": "node scripts/evidence-histogram-parity.mjs",
|
|
96
96
|
"check-edit-diffs": "node scripts/check-edit-diffs.mjs",
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{r,j as e,c as $}from"./index-CbXTthtT.js";import{A as Ds,D as yt,h as oe,u as ne,a as Re,c as ue,r as ss,d as je,a3 as gs,f as ts,a2 as vt,O as Nt}from"./path-utils-Df1aSfST.js";import{P as wt}from"./page-header-DYYNR6ta.js";import{c as _t,l as re,B as C,k as T,u as J,y as St,I as Ae,T as Ms,D as $e,a as He,b as Be,d as Ke,e as Qe,f as Ve,A as ge,m as fe,n as ke,Y as Ct,Z as Pt,_ as Tt,$ as It,F as fs,G as ks,H as js,J as ys,K as vs}from"./error-boundary-By5hceVb.js";import{ap as as,at as Ns,be as Rt,bf as Us,a4 as G,aq as ye,bc as $s,bg as At,ar as Et,bh as Lt,bi as Ot,P as Hs,ax as Bs,bj as Ce,bk as Ft,bl as zt}from"./conversation-input-sync-nqpmI0zJ.js";import{t as a}from"./messages-B-ZruEU4.js";import{a as qt,p as Ks,P as ce,u as Dt}from"./publication-validation-xLDz3KF1.js";import{h as ie,O as Mt,A as Ut,f as $t,a as Ht,b as Bt,d as Kt,e as Qs,C as Qt,c as Vt,n as Wt,u as Yt,i as Gt}from"./use-download-agent-mutation-BfQgsvf5.js";import{H as Jt}from"./heart-Bbe81rsc.js";import{z as Xt,aP as Zt,aO as ea,aQ as Vs,aR as Ws,aS as Ys,aT as sa,aU as ta,aK as is,aV as Je,aD as aa,aB as Gs,aW as ia,az as na,u as la,h as ra,c as ws,aI as ca,d as ua,H as oa,aX as da,x as ma,aY as ha}from"./index-BFQ8MnMi.js";import{n as ba,i as xa,H as pa,p as _s,a as ga,o as Js,u as fa}from"./org-access-Dg0_A14g.js";import{R as Xs}from"./radient-auth-buttons-DD_c1yIy.js";import{o as ka,a as We}from"./org-surface-gate-J2cqQUny.js";import{B as ja}from"./building-2-3HN1Jd44.js";import"./en-US-CW_dDnkH.js";import"./book-open-C6y4tYxb.js";import"./console-mirror-CNc2WEem.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 ya=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M17 12h.01",key:"1m0b6t"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M7 12h.01",key:"eqddd0"}]],va=_t("circle-ellipsis",ya),Na=({agent:s,isLiked:t,isFavourited:i,onLikeToggle:n,onFavouriteToggle:l,onDownload:d,isLikeActionLoading:m=!1,isFavouriteActionLoading:L=!1,isDownloading:p=!1,actionError:v=null,onRetryAction:O,showActions:S=!0,viewerStateKnown:x=!0,orgName:h=null})=>{const E=Ds(),{isAuthenticated:f}=as(),w=s.description??"",[I,F]=r.useState(!1),P=r.useRef(null),g=r.useCallback(A=>{if(P.current?.disconnect(),P.current=null,!A)return;const q=()=>F(A.scrollHeight-A.clientHeight>1);q();const K=new ResizeObserver(q);K.observe(A),P.current=K},[]),R=f?x?t?"Unlike agent":"Like agent":"Your likes could not be read, so this is not shown as unliked.":"Log in to Radient to like agents",k=f?x?i?"Unfavourite agent":"Favourite agent":"Your favourites could not be read, so this is not shown as unfavourited.":"Log in to Radient to favourite agents",j=x?t?"Unlike agent":"Like agent":"Like state unavailable",y=x?i?"Unfavourite agent":"Favourite agent":"Favourite state unavailable",u=s.visibility==="org",b=ie(s.name);return e.jsxs("div",{"data-glass-block":"",className:"flex h-full flex-col overflow-hidden rounded-md bg-surface transition-colors duration-fast ease-out-quart hover:bg-elevated",children:[e.jsxs("button",{type:"button",onClick:()=>E(`/agent-hub/${s.id}`),className:"flex min-h-0 flex-1 cursor-pointer flex-col gap-2 p-4 text-left","aria-label":`View details for ${b}`,children:[e.jsx("h3",{className:"truncate font-medium text-heading text-ink",children:b}),u&&e.jsx(Mt,{orgName:h}),e.jsx(re,{content:I?w:"",children:e.jsx("span",{ref:g,className:"line-clamp-3 min-h-0 text-body-sm text-ink-muted",children:w})}),e.jsxs("div",{className:"mt-auto flex flex-col gap-2 pt-2",children:[e.jsx(Ut,{tags:s.tags,categories:s.categories}),e.jsxs("p",{className:"truncate text-ink-dim text-meta",children:[s.account_metadata?.name??"Unknown author",e.jsx("span",{"aria-hidden":"true",className:"mx-1.5",children:"·"}),"updated ",$t(new Date(s.updated_at))," ago"]})]})]}),e.jsxs("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 border-t border-hairline px-3 py-2",children:[e.jsxs("div",{className:"flex min-w-0 items-center gap-0.5","data-viewer-state":u?"org":f?x?"known":"unknown":"signed-out",children:[!u&&e.jsxs(e.Fragment,{children:[e.jsx(re,{content:R,children:e.jsx("span",{children:e.jsxs(C,{variant:"ghost",size:"sm",onClick:f&&x?()=>n(s.id):void 0,disabled:m||!f||!x,"aria-label":j,className:$(t&&"text-danger"),children:[e.jsx(Jt,{fill:t?"currentColor":"none","data-testid":"agent-like-heart"}),e.jsx("span",{"data-testid":"agent-like-count",className:"inline-flex h-4 min-w-4 items-center font-mono text-mono-sm text-ink-muted",children:s.like_count??0})]})})}),e.jsx(re,{content:k,children:e.jsx("span",{children:e.jsxs(C,{variant:"ghost",size:"sm",onClick:f?()=>l(s.id):void 0,disabled:L||!f||!x,"aria-label":y,className:$(i&&"text-warning"),children:[e.jsx(Xt,{fill:i?"currentColor":"none","data-testid":"agent-favourite-star"}),e.jsx("span",{"data-testid":"agent-favourite-count",className:"inline-flex h-4 min-w-4 items-center font-mono text-mono-sm text-ink-muted",children:s.favourite_count??0})]})})})]}),e.jsx(re,{content:"Downloads",children:e.jsxs("span",{className:"ml-1 inline-flex items-center gap-1 pr-1 text-ink-dim",children:[e.jsx(Ns,{"aria-hidden":"true",className:"size-3.5"}),e.jsx("span",{className:"inline-flex h-4 min-w-6 items-center font-mono text-mono-sm",children:p?e.jsx(T,{className:"h-3 w-6"}):(s.download_count??0).toLocaleString()})]})})]}),S&&d&&e.jsx("div",{className:"ml-auto flex shrink-0 items-center",children:e.jsxs(C,{variant:"secondary",size:"sm",onClick:()=>d(s),disabled:p,"aria-label":`Download ${b}`,"data-tour-tag":"agent-hub-download-button",children:[e.jsx(Ns,{"data-testid":"agent-download"}),"Get"]})})]}),v&&e.jsxs("output",{"data-testid":"agent-card-error",className:"flex flex-wrap items-center gap-x-2 gap-y-1 border-t border-hairline px-3 py-2 text-body-sm text-danger",children:[e.jsx("span",{className:"min-w-0 flex-1",children:v}),O&&e.jsx(C,{variant:"ghost",size:"sm",onClick:O,children:"Try again"})]})]})},wa=({agent:s,status:t,viewerStateKnown:i=!0,orgName:n=null})=>{const{isAuthenticated:l}=as(),[d,m]=r.useState(null),L=t?.liked??!1,p=t?.favourited??!1,v=Ht(),O=Bt(),S=Kt(),x=()=>{!l||v.isPending||(m(null),v.mutate({agentId:s.id,isCurrentlyLiked:L},{onError:()=>m("like")}))},h=()=>{!l||O.isPending||(m(null),O.mutate({agentId:s.id,isCurrentlyFavourited:p},{onError:()=>m("favourite")}))},E=()=>{S.isPending||(m(null),S.mutate({agentId:s.id,agentName:s.name},{onError:()=>m("download")}))},f=d?d==="like"?{action:"like",error:v.error,retry:x}:d==="favourite"?{action:"favourite",error:O.error,retry:h}:{action:"download",error:S.error,retry:E}:null;return e.jsx(Na,{agent:s,isLiked:l&&L,isFavourited:l&&p,onLikeToggle:x,onFavouriteToggle:h,onDownload:E,isLikeActionLoading:v.isPending,isFavouriteActionLoading:O.isPending,isDownloading:S.isPending,viewerStateKnown:i,orgName:n,actionError:f?qt(f.action,f.error,ie(s.name)):null,onRetryAction:f?.retry})},Ss=({selected:s,onClick:t,children:i,...n})=>e.jsx("button",{type:"button",onClick:t,"aria-pressed":s,className:$("flex w-full cursor-pointer items-center gap-2.5 rounded-sm px-3 py-1.5 text-left","text-body-sm transition-colors duration-fast ease-out-quart",s?ea:"text-ink hover:bg-row-hover"),...n,children:i}),Cs=Object.keys(Qt),_a=s=>[...s].sort((t,i)=>{const n=Cs.indexOf(t),l=Cs.indexOf(i);return n!==-1&&l!==-1?n-l:n!==-1?-1:l!==-1?1:t.localeCompare(i)}),Sa=({selectedCategory:s,onSelectCategory:t,categories:i})=>{J();const n=_a(s&&!i.includes(s)?[...i,s]:i);return e.jsxs("div",{className:"flex h-full flex-col overflow-y-auto",children:[e.jsx("h2",{className:"mb-2 px-3 font-medium text-ink-dim text-meta",children:a("ui.hub.taxonomy.heading")}),e.jsxs("div",{className:"flex flex-col gap-0.5",children:[e.jsxs(Ss,{selected:s===null,onClick:()=>t(null),"data-testid":"category-all",children:[e.jsx("span",{className:"flex size-4 shrink-0 items-center justify-center",children:e.jsx(Zt,{size:16,"aria-hidden":"true"})}),a("ui.hub.taxonomy.all")]}),n.map(l=>{const d=Qs(l),m=l==="other"?e.jsx(va,{size:16}):d.icon;return e.jsxs(Ss,{selected:s===l,onClick:()=>t(l),"data-testid":`category-${l}`,children:[e.jsx("span",{className:"flex size-4 shrink-0 items-center justify-center",children:m}),d.label]},l)})]})]})},ns=({page:s,count:t,onChange:i,ariaLabel:n="Agent pages"})=>{const l=r.useRef(null),d=r.useRef(null),m=r.useRef(null);return r.useEffect(()=>{const L=m.current;m.current=null,L==="previous"&&l.current?.focus(),L==="next"&&d.current?.focus()},[s]),t<=1?null:e.jsxs("nav",{"aria-label":n,className:"mt-6 flex min-h-13 items-center justify-between gap-3 border-t border-hairline","data-testid":"agent-hub-pager",children:[e.jsxs("span",{className:"select-none text-meta text-ink-dim",children:["Page ",s," of ",t]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs(C,{variant:"secondary",size:"sm",ref:l,onClick:()=>{s-1<=1&&(m.current="next"),i(s-1)},disabled:s<=1,"aria-label":"Previous page",children:[e.jsx(Rt,{"aria-hidden":"true"}),"Previous"]}),e.jsxs(C,{variant:"secondary",size:"sm",ref:d,onClick:()=>{s+1>=t&&(m.current="previous"),i(s+1)},disabled:s>=t,"aria-label":"Next page",children:["Next",e.jsx(St,{"aria-hidden":"true"})]})]})]})},Ca=/alias/i;function Ps(s){return s instanceof yt?s.code==="alias-occupied"?!0:s.code==="origin-conflict"&&Ca.test(s.message):!1}const Pa=/\/+$/;function ls(s){const t=s.replace(Pa,"");try{const{pathname:i}=new URL(t);return i===""||i==="/"?`${t}/v1`:t}catch{return`${t}/v1`}}const Ts=s=>s?.skills===1&&s.revision_cas===1;function Ta(s,t=1,i=20){const n=new URL(Vs(s,"skills"));return n.searchParams.set("page",String(t)),n.searchParams.set("per_page",String(i)),Ws(n.toString())}function Ia(s,t){return Ws(Vs(s,"skills",t))}function Ra(s){return Us({operation:"org_skills.list",tenantId:s})}function Aa(s,t){return Us({operation:"org_skill.get",tenantId:s,skillId:t})}const rs=12,Pe={all:["public-teams"],list:(s,t)=>[...Pe.all,"list",{page:s,perPage:t}],detail:s=>[...Pe.all,"detail",s]},Ee=(s,t)=>t instanceof Ys?t.status===null?!1:t.status>=500&&s<1:s<1,Zs=({page:s=1,perPage:t=rs,enabled:i=!0}={})=>{const n=oe({queryKey:Pe.list(s,t),queryFn:()=>sa(G.radientBaseUrl,s,t),select:l=>l.result,enabled:i,retry:Ee,staleTime:3e5,gcTime:6e5,refetchOnWindowFocus:!1,placeholderData:l=>l});return{...n,teams:n.data?.records??[],isRefreshing:n.isFetching&&n.data!==void 0,pagination:n.data?{page:n.data.page,perPage:n.data.per_page,totalPages:n.data.total_pages,totalRecords:n.data.total_records}:void 0}},Ea=({teamId:s,enabled:t=!0})=>{const i=oe({queryKey:Pe.detail(s??""),queryFn:()=>ta(G.radientBaseUrl,s),select:n=>n.result,enabled:t&&!!s,retry:Ee,staleTime:3e5,gcTime:6e5,refetchOnWindowFocus:!1,retryOnMount:!1});return{...i,team:i.data}};function de(s){if(s.getQueryState(gs.capabilities)?.status!=="success"||!ue(s.getQueryData(gs.capabilities),"hub_skills"))throw new Error("This backend does not support the complete Hub Skills adapter.")}function et(s,t,i){const n=ne(),l=Re();return oe({queryKey:["hub-skills",G.radientBaseUrl,s.visibility,s.tenantId,t],enabled:i&&!l.isError&&ue(l.data,"hub_skills"),queryFn:async()=>{if(de(n),s.visibility==="org"){const m=(await Ra(s.tenantId)).result;return{rows:m.skills,pages:1,total:m.skills.length,contract:m.sync_contract}}const d=(await Ta(G.radientBaseUrl,t,20)).result;return{rows:d.records,pages:d.total_pages,total:d.total_records,contract:d.sync_contract}},staleTime:3e4,retry:s.visibility==="org"?ss:Ee,retryOnMount:!1,refetchOnWindowFocus:!1})}function La(s,t,i){const n=ne(),l=Re();return oe({queryKey:["hub-skill",G.radientBaseUrl,s.visibility,s.tenantId,t],enabled:i&&t!==null&&!l.isError&&ue(l.data,"hub_skills"),queryFn:async()=>(de(n),(s.visibility==="org"?await Aa(s.tenantId,t):await Ia(G.radientBaseUrl,t)).result),staleTime:3e4,retry:s.visibility==="org"?ss:Ee,retryOnMount:!1})}function cs(s,t){s.setQueryData(is,t.links)}function us(s){s.invalidateQueries({queryKey:is}),s.invalidateQueries({queryKey:["desktop","skills"]})}function Oa(){const s=ne();return ye({mutationFn:t=>(de(s),je({op:"hub.skillPull",requestId:t.requestId,hubId:t.remoteId,hubSource:ls(G.radientBaseUrl),visibility:t.scope.visibility,tenantId:t.scope.tenantId,localAlias:t.alias,subscribe:t.subscribe,autoPush:t.autoPush,confirmPublicEgress:t.consent})),onSuccess:t=>{cs(s,t)},onSettled:()=>{us(s)}})}function Fa(){const s=ne();return ye({mutationFn:t=>(de(s),je({op:"hub.skillSubscribe",requestId:t.requestId,hubId:t.remoteId,hubSource:ls(G.radientBaseUrl),visibility:t.scope.visibility,tenantId:t.scope.tenantId,localAlias:t.alias})),onSuccess:t=>{cs(s,t)},onSettled:()=>{us(s)}})}function za(){const s=ne();return ye({mutationFn:t=>(de(s),je({op:"hub.skillUnpull",requestId:t.requestId,linkId:t.linkId})),onSuccess:t=>{cs(s,t)},onSettled:()=>{us(s)}})}function qa(){const s=ne();return ye({mutationFn:t=>(de(s),je({op:"hub.skillPublish",requestId:t.requestId,...t.draft,dryRun:t.previewReceipt===void 0,...t.previewReceipt?{previewReceipt:t.previewReceipt,confirmPublish:!0}:{}})),onSuccess:t=>{t.local_link_receipt?.state==="complete"&&(s.invalidateQueries({queryKey:is}),s.invalidateQueries({queryKey:["desktop","skills"]}),s.invalidateQueries({queryKey:["hub-skills"]}))}})}const Da=/\/+$/;function Is(s){return s.replace(Da,"")}function Ma(s,t){return t.visibility==="public"?s.visibility==="public"&&!s.tenant_id:s.visibility==="org"&&s.tenant_id===t.tenantId}function Xe(s){const t=s.id??s.hub_id??"",i=s.tenantId??s.tenant_id??"";return`${t}\0${s.visibility}\0${i}`}function Ua(s,t){const i=Is(t),n=new Map;for(const l of s??[])l.kind==="skill"&&Is(l.hub_source)===i&&n.set(Xe({hub_id:l.hub_id,visibility:l.visibility,tenantId:l.tenant_id}),l);return n}function Rs(s,t,i=!0){if(!i)return{kind:"unknown"};if(!s)return{kind:"not-present"};const n=Je(s);return n==="present"&&(s.pull.state==="available"||t?.state==="available"&&!t.error_class)?{kind:"update",link:s,automatic:t?.auto_will_apply===!0||s.auto_will_apply}:n==="absent"?s.policy.subscribe?{kind:"subscribed",link:s}:{kind:"detached",link:s}:s.policy.subscribe?{kind:"pulled",link:s}:{kind:"manual",link:s}}function $a(s){return s?"policy":"create"}function Ha(s){return JSON.stringify({op:"pull",selected:s.selected,scope:s.scope,localAlias:s.localAlias,subscribe:s.subscribe,autoPush:s.autoPush,consent:s.consent})}function Ba({scope:s,source:t,verifiedCas:i,enabled:n=!0,heading:l=!0}){J();const d=r.useId(),[m,L]=r.useState(""),[p,v]=r.useState(""),[O,S]=r.useState(ba),[x,h]=r.useState(null),[E,f]=r.useState(!1),w=qa(),I=r.useRef(null),F=oe({queryKey:["desktop","skills","hub-publication"],queryFn:()=>je({op:"skills.list"}),staleTime:3e4,retry:!1}),P=`${s.visibility}:${s.tenantId??""}`,g=r.useRef(P);r.useEffect(()=>{g.current!==P&&(g.current=P,S(y=>({...y,autoPush:!1,confirmPublicEgress:!1})),h(null),f(!0))},[P]);const R={sourceSkill:m,localAlias:p,visibility:s.visibility,tenantId:s.tenantId,...O},k=x?xa(x,R):!1;r.useEffect(()=>{if(!x)return;const y=setTimeout(()=>{h(null),f(!0)},Math.max(0,Math.min(Date.parse(x.expires_at)-Date.now(),2147483647)));return()=>clearTimeout(y)},[x]);const j=y=>{if(!n||w.isPending||!m||!p||y&&!k)return;const u=JSON.stringify({draft:R,receipt:y?x?.preview_receipt:null}),b=I.current&&I.current.tuple===u&&(y||w.error)?I.current:{tuple:u,id:crypto.randomUUID()};I.current=b,y||(h(null),f(!1)),w.mutate({requestId:b.id,draft:R,...y&&x?{previewReceipt:x.preview_receipt}:{}},{onSuccess:A=>{A.preview?(h(A.preview),f(!1)):_s(A)&&h(null)}})};return e.jsxs("section",{className:"flex min-w-0 flex-col gap-4","data-hub-skill-publication":!0,children:[l&&e.jsx("h3",{className:"text-heading text-ink",children:a("ui.hub.skills.publish_title")}),e.jsx("label",{htmlFor:`${d}-source`,className:"text-body-sm text-ink",children:a("ui.hub.skills.select_authored")}),e.jsxs("select",{id:`${d}-source`,"data-testid":"hub-skill-publish-source",value:m,disabled:w.isPending||!n,className:"rounded-md border border-control bg-surface px-3 py-2 text-body-sm text-ink",onChange:y=>{L(y.target.value),v(y.target.value),h(null),S(u=>({...u,autoPush:!1,confirmPublicEgress:!1}))},children:[e.jsx("option",{value:"",children:a("ui.hub.skills.select_authored")}),F.data?.data.skills.map(y=>e.jsx("option",{value:y.name,children:y.name},y.name))]}),e.jsx("label",{htmlFor:`${d}-alias`,className:"text-body-sm text-ink",children:a("ui.hub.subscriptions.alias")}),e.jsx(Ae,{id:`${d}-alias`,"data-testid":"hub-skill-publish-alias",value:p,disabled:w.isPending||!n,onChange:y=>{v(y.target.value),S(u=>({...u,autoPush:!1,confirmPublicEgress:!1}))}}),e.jsx("p",{className:"text-meta text-ink-muted",children:a("ui.hub.skills.text_limits")}),e.jsx(pa,{value:O,onChange:S,source:t,item:m||p,visibility:s.visibility,organization:s.organization,destinationKey:`${P}:${m}`,canEnableAutoPush:i,disabled:w.isPending||!n}),F.isLoading&&e.jsx("output",{className:"text-meta text-ink-muted",children:a("ui.hub.skills.loading")}),F.error&&e.jsx("p",{role:"alert",className:"text-body-sm text-danger",children:a("ui.hub.status.other_error")}),w.error&&e.jsx("p",{role:"alert",className:"text-body-sm text-danger",children:a("ui.hub.links.action_failed",{direction:a("ui.hub.links.direction_push"),item:m||p,source:t})}),(E||x&&!k&&x.can_confirm)&&e.jsx("p",{role:"alert",className:"text-body-sm text-warning",children:a("ui.hub.links.preview_changed")}),x&&x.visibility===s.visibility&&x.tenant_id===s.tenantId&&e.jsxs("div",{className:"flex min-w-0 flex-col gap-3",children:[e.jsx("h4",{className:"text-body-sm text-ink",children:a("ui.hub.links.preview_payload",{source:t})}),e.jsx(Ms,{readOnly:!0,rows:12,"aria-label":a("ui.hub.links.preview_payload",{source:t}),value:JSON.stringify(x.proposal.fields,null,2),className:"max-h-96 bg-sunken text-mono-sm"}),x.warnings.map((y,u)=>e.jsx("p",{className:"break-words text-body-sm text-warning",children:y},`${u}-${y}`)),x.reason&&e.jsx("p",{className:"text-body-sm text-warning",children:aa(x.reason)})]}),w.data?.publication===null&&w.data.local_link_receipt?.state==="pending-reconciliation"&&e.jsx("output",{className:"text-body-sm text-warning","data-testid":"hub-skill-pending-reconcile",children:a("ui.hub.links.publication_pending")}),w.data?.publication&&e.jsx("output",{className:"text-body-sm text-ink","data-testid":"hub-skill-published",children:_s(w.data)?a("ui.hub.links.published",{item:w.data.link?.name??p,source:w.data.link?Gs(w.data.link):t}):a("ui.hub.skills.policy_pending")}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsx(C,{variant:"outline","data-testid":"hub-skill-publish-preview",disabled:!n||w.isPending||!m||!p,onClick:()=>j(!1),children:a("ui.hub.subscriptions.preview_publish")}),e.jsx(C,{"data-testid":"hub-skill-publish-confirm",disabled:!n||w.isPending||!k,onClick:()=>j(!0),children:a("ui.hub.links.confirm_publish")})]})]})}const Ka={available:"text-accent",applied:"text-success",failed:"text-danger",review:"text-warning",updating:"text-ink-muted"},Qa={available:"ui.hub.skills.update_available",applied:"ui.hub.skills.update_applied",failed:"ui.hub.skills.update_failed",review:"ui.hub.links.mark_review",updating:"ui.hub.links.mark_busy"},Va={"not-present":"ui.hub.skills.not_downloaded",subscribed:"ui.hub.skills.subscribed_absent",pulled:"ui.hub.skills.pulled",manual:"ui.hub.skills.manual",detached:"ui.hub.skills.detached"};function As(s,t,i){const n=t?ua(t):null;return n&&(s.kind==="update"||i&&(t?.state==="applied"||t?.state==="failed"||t?.error_class))?n:s.kind==="update"?{kind:"available",auto:s.automatic}:null}function Es(s,t){return s.kind==="unknown"?t:s.kind!=="update"?a(Va[s.kind]):a(s.link.policy.subscribe?"ui.hub.skills.pulled":"ui.hub.skills.manual")}function Ls({mark:s}){return J(),s?e.jsxs("span",{"data-hub-mark-state":s.kind,className:$("flex shrink-0 items-center gap-1 text-meta",Ka[s.kind]),children:[e.jsx(oa,{mark:s}),e.jsx("span",{children:a(Qa[s.kind])})]}):null}function Os(s,t){const i=s.publisher?.trim();return i?a("ui.hub.skills.published_by",{publisher:i}):s.visibility==="org"?t??a("ui.hub.links.source_unavailable"):a("ui.hub.skills.public_hub")}function Wa({scope:s,signedIn:t,accessible:i=!0}){J();const n=r.useId(),[l,d]=r.useState(1),[m,L]=r.useState(""),[p,v]=r.useState(null),[O,S]=r.useState(!1),[x,h]=r.useState("unsubscribe"),[E,f]=r.useState(!1),w=r.useRef(null),I=s.visibility==="public"?a("ui.hub.links.source_public"):s.organization?a("ui.hub.links.source_private",{organization:s.organization}):a("ui.hub.links.source_unavailable"),F=Re(),P=i&&ue(F.data,"hub_updates"),g=et(s,l,i&&(s.visibility==="public"||t)),R=Ts(g.data?.contract),k=La(s,p,R&&i),j=Oa(),y=Fa(),u=za(),b=ia(),A=na(i&&ue(F.data,"hub_links")),q=la(P),K=r.useMemo(()=>Ua(A.data?.links,ls(G.radientBaseUrl)),[A.data]),D=r.useMemo(()=>ra(q.data),[q.data]),U=j.data?.link?.link_id,N=!A.isLoading&&!A.error,M=A.error?a("ui.hub.skills.inventory_unknown"):a("ui.hub.links.loading"),te=k.data?.visibility===s.visibility&&(s.visibility==="public"?!k.data.tenant_id:k.data.tenant_id===s.tenantId),ae=i&&!k.error&&!g.error&&te&&Ts(k.data?.sync_contract)&&!!k.data?.revision,me=(g.data?.rows??[]).filter(o=>Ma(o,s)),ve=me.filter(o=>`${o.name} ${o.description}`.toLocaleLowerCase().includes(m.toLocaleLowerCase())),Q=me.find(o=>o.id===p),_=Q?K.get(Xe({id:Q.id,visibility:Q.visibility,tenantId:Q.tenant_id??null})):void 0,Ne=_?D.get(ws("skill",_.name)):void 0,he=Rs(_,Ne,N),se=_?Je(_)==="present":!1,Le=o=>{const z=K.get(Xe({id:o.id,visibility:o.visibility,tenantId:o.tenant_id??null})),Z=z?D.get(ws("skill",z.name)):void 0;return{link:z,update:Z,state:Rs(z,Z,N)}},be=o=>(w.current?.tuple!==o&&(w.current={tuple:o,id:crypto.randomUUID()}),w.current.id),le=o=>{if(!p||!ae||!t)return;const z=o?.name??Q?.name??"";if(!z)return;const Z=o?o.policy.subscribe:!1,pe=o?.policy.auto_push??!1,we=!1;j.mutate({requestId:be(Ha({selected:p,scope:s,localAlias:z,subscribe:Z,autoPush:pe,consent:we})),remoteId:p,scope:s,alias:z,subscribe:Z,autoPush:pe,consent:we})},Oe=()=>{if(!p||!ae||!t)return;if($a(_)==="policy"&&_){if(_.policy.subscribe||b.isPending)return;h("subscribe"),b.mutate({link:_,patch:{subscribe:!0}});return}const o=Q?.name??"";o&&y.mutate({requestId:be(JSON.stringify({op:"subscribe",selected:p,scope:s,localAlias:o})),remoteId:p,scope:s,alias:o})},Fe=()=>{_&&u.mutate({requestId:be(JSON.stringify({op:"unpull",link:_.link_id})),linkId:_.link_id},{onSuccess:()=>{j.reset(),y.reset()}})},V=()=>{!_||_.policy.subscribe===!1||b.isPending||!b.canWrite||(h("unsubscribe"),b.mutate({link:_,patch:{subscribe:!1}}))},X=t&&R&&i&&!g.error,xe=g.data?.total??me.length,H=g.error?null:g.isLoading?a("ui.hub.skills.loading"):s.organization?a("ui.hub.skills.count_shared",{count:xe,organization:s.organization}):a("ui.hub.skills.count",{count:xe});return e.jsxs("section",{className:"flex min-w-0 flex-col gap-4","data-hub-skills-library":!0,children:[s.visibility==="org"&&!t?e.jsx("p",{role:"alert",className:"text-body-sm text-warning",children:a("ui.hub.status.no_credential")}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsxs("div",{className:$("flex min-w-56 max-w-md flex-1 items-center rounded-sm border border-control bg-surface","transition-colors duration-fast ease-out-quart","has-[:focus-visible]:outline-solid has-[:focus-visible]:outline-2","has-[:focus-visible]:outline-accent has-[:focus-visible]:outline-offset-2"),children:[e.jsx($s,{"aria-hidden":"true",className:"ml-2 shrink-0 text-ink-dim"}),e.jsx(Ae,{id:`${n}-search`,type:"search","data-testid":"hub-skill-search",value:m,placeholder:a("ui.hub.skills.search"),"aria-label":a("ui.hub.skills.search"),onChange:o=>L(o.target.value),className:"h-8 min-w-0 flex-1 border-0 bg-transparent outline-none"})]}),X&&e.jsx(C,{variant:"secondary","data-testid":"hub-skill-publish-open",onClick:()=>f(!0),children:a("ui.hub.skills.publish_title")})]}),H!==null&&e.jsx("p",{"aria-live":"polite",className:"text-meta text-ink-dim","data-testid":"hub-skill-status",children:s.organization||g.isLoading?e.jsx("span",{"data-testid":"hub-skill-source",children:H}):e.jsxs(e.Fragment,{children:[e.jsx("span",{children:H})," · ",e.jsx("span",{"data-testid":"hub-skill-source",children:a("ui.hub.skills.public_hub")})]})}),g.error&&e.jsxs("div",{role:"alert",className:"flex flex-col items-start gap-2 text-body-sm text-warning",children:[e.jsx("p",{children:a("ui.hub.skills.catalogue_failed",{source:I})}),e.jsx(C,{variant:"outline",className:"self-start",disabled:g.isFetching,onClick:()=>void g.refetch(),children:a("ui.hub.links.retry")})]}),g.isSuccess&&!R&&e.jsx("p",{className:"text-body-sm text-warning",children:a("ui.hub.skills.unavailable")}),R&&e.jsxs(e.Fragment,{children:[ve.length===0&&e.jsx("p",{className:"text-body-sm text-ink-muted",children:a(m?"ui.hub.skills.search_empty":"ui.hub.skills.remote_empty")}),e.jsx("ul",{className:"grid list-none grid-cols-[repeat(auto-fill,minmax(17.5rem,1fr))] gap-6 p-0",children:ve.map(o=>{const z=Le(o),Z=As(z.state,z.update,z.link?Je(z.link)==="present":!1);return e.jsx("li",{className:"min-w-0",children:e.jsxs("button",{type:"button","aria-haspopup":"dialog","aria-expanded":p===o.id,"aria-label":a("ui.hub.skills.open_detail",{item:o.name}),"data-testid":"hub-skill-open","data-skill-id":o.id,"data-skill-state":z.state.kind,onClick:()=>{v(o.id),j.reset(),y.reset(),u.reset(),b.reset()},className:$("flex h-full w-full flex-col overflow-hidden rounded-md bg-surface text-left","transition-colors duration-fast ease-out-quart hover:bg-elevated","focus-visible:outline focus-visible:outline-2 focus-visible:outline-accent focus-visible:outline-offset-1"),children:[e.jsxs("span",{className:"flex min-h-0 flex-1 flex-col gap-2 p-4",children:[e.jsx("span",{className:"truncate font-medium text-heading text-ink",children:o.name}),o.description?e.jsx("span",{className:"line-clamp-3 text-body-sm text-ink-muted",children:o.description}):null,e.jsx("span",{className:"mt-auto truncate text-ink-dim text-meta",children:Os(o,s.organization)})]}),e.jsxs("span",{className:"flex items-center justify-between gap-2 border-t border-hairline px-4 py-2 text-meta",children:[e.jsx("span",{className:"truncate text-ink-muted",children:Es(z.state,M)}),e.jsx(Ls,{mark:Z})]})]})},o.id)})}),e.jsx(ns,{page:l,count:g.data?.pages??1,onChange:d,ariaLabel:a("ui.hub.skills.title")})]})]}),!i&&e.jsx("p",{role:"alert",className:"text-body-sm text-warning",children:a("ui.hub.status.access_lost")}),e.jsx($e,{open:!!p&&R,onOpenChange:o=>{o||v(null)},children:e.jsxs(He,{"data-hub-skill-detail":"",className:"max-h-[85vh] overflow-y-auto sm:max-w-2xl",children:[e.jsxs(Be,{children:[e.jsx(Ke,{"data-testid":"hub-skill-detail-name",children:k.data?.name??Q?.name??a("ui.hub.skills.title")}),e.jsx(Qe,{children:k.data&&te?Os(k.data,s.organization):I})]}),k.isLoading&&e.jsx("output",{className:"text-meta text-ink-muted",children:a("ui.hub.skills.loading")}),k.error&&e.jsx("p",{role:"alert",className:"text-body-sm text-warning",children:a("ui.hub.status.other_error")}),k.data&&te&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[e.jsxs("p",{className:"text-body-sm text-ink-muted",children:[Es(he,M),e.jsx("span",{"aria-hidden":"true",className:"mx-1.5",children:"·"}),a("ui.hub.skills.revision",{revision:String(k.data.content_revision)})]}),e.jsx(Ls,{mark:As(he,Ne,se)})]}),e.jsx("p",{"data-testid":"hub-skill-description",className:"max-w-3xl select-text whitespace-pre-wrap break-words text-body-sm text-ink-muted",children:k.data.description}),_&&se&&_.local_path&&e.jsx("p",{"data-testid":"hub-skill-local-path",className:"break-words font-mono text-meta text-ink-dim",children:a("ui.hub.skills.local_path",{path:`${_.local_path}`})}),e.jsx("h4",{className:"text-body-sm text-ink",children:a("ui.hub.skills.files")}),e.jsx("p",{className:"text-meta text-ink-muted",children:a("ui.hub.skills.file_count",{count:k.data.files.length})}),k.data.files.map(o=>e.jsxs("details",{className:"min-w-0",children:[e.jsx("summary",{className:"break-words text-mono-sm text-ink",children:o.path}),e.jsx(Ms,{readOnly:!0,rows:12,"aria-label":o.path,value:o.content,className:"max-h-96 bg-sunken text-mono-sm"})]},o.path)),_&&e.jsxs("div",{className:"flex flex-col gap-2 border-t border-hairline pt-3",children:[e.jsx(ca,{link:_}),_.policy.subscribe&&e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx(C,{variant:"outline",size:"sm","data-testid":"hub-skill-unsubscribe",disabled:b.isPending||!b.canWrite,onClick:V,children:a("ui.hub.skills.unsubscribe")}),e.jsx("span",{className:"text-meta text-ink-muted",children:a("ui.hub.skills.unsubscribe_help")})]}),b.error&&e.jsx("p",{role:"alert",className:"text-meta text-danger",children:a("ui.hub.subscriptions.save_failed",{setting:x==="subscribe"?a("ui.hub.subscriptions.subscribe"):a("ui.hub.skills.unsubscribe"),source:I})})]}),_&&se&&e.jsx(ga,{kind:"skill",name:_.name,enabled:P}),j.error&&e.jsx("p",{role:"alert",className:"text-body-sm text-danger","data-testid":"hub-skill-pull-failed",children:a(Ps(j.error)?"ui.hub.skills.local_exists":"ui.hub.skills.pull_failed")}),j.data&&!j.data.reports?.some(o=>o.applied||o.outcome==="unchanged")&&e.jsx("p",{role:"alert",className:"text-body-sm text-danger","data-testid":"hub-skill-pull-failed",children:a("ui.hub.skills.pull_failed")}),j.data?.link&&j.data.reports?.some(o=>o.link_id===U&&o.direction==="pull"&&o.applied)&&e.jsx("output",{"data-testid":"hub-skill-installed",className:"text-body-sm text-ink",children:a("ui.hub.skills.installed_alias",{item:j.data.link.name,source:Gs(j.data.link)})}),u.error&&e.jsx("p",{role:"alert",className:"text-body-sm text-danger","data-testid":"hub-skill-unpull-failed",children:a("ui.hub.skills.unpull_failed")}),y.error&&e.jsx("p",{role:"alert",className:"text-body-sm text-danger","data-testid":"hub-skill-subscribe-failed",children:a(Ps(y.error)?"ui.hub.skills.local_exists":"ui.hub.skills.subscribe_failed")}),!t&&e.jsx("p",{className:"text-meta text-ink-muted",children:a("ui.hub.status.no_credential")}),(!_||!se)&&e.jsxs(Ve,{className:"flex-row flex-wrap justify-start gap-2",children:[e.jsx(C,{"data-testid":"hub-skill-download",disabled:!t||!ae||j.isPending||!N,"aria-label":a("ui.hub.skills.pull_title",{item:k.data.name,source:I}),onClick:()=>le(_),children:a("ui.hub.skills.download")}),!_?.policy.subscribe&&e.jsx(C,{variant:"outline","data-testid":"hub-skill-subscribe",disabled:!t||!ae||!N||y.isPending||b.isPending||(_?!b.canWrite:!1),onClick:Oe,children:a("ui.hub.subscriptions.subscribe")})]}),_&&se&&e.jsx(Ve,{className:"flex-row flex-wrap justify-start gap-2",children:e.jsx(C,{variant:"outline","data-testid":"hub-skill-unpull",disabled:u.isPending,onClick:()=>{u.reset(),S(!0)},children:a("ui.hub.skills.unpull")})}),(!_||!se)&&e.jsx("p",{className:"text-meta text-ink-muted",children:_?.policy.subscribe?a("ui.hub.skills.download_help"):a("ui.hub.skills.subscribe_help")})]})]})}),e.jsx($e,{open:O,onOpenChange:o=>{o||S(!1)},children:e.jsxs(He,{className:"sm:max-w-md",children:[e.jsxs(Be,{children:[e.jsx(Ke,{children:a("ui.hub.skills.unpull_title",{item:k.data?.name??_?.name??""})}),e.jsx(Qe,{children:a("ui.hub.skills.unpull_body")})]}),e.jsxs(Ve,{children:[e.jsx(C,{variant:"outline",onClick:()=>S(!1),children:a("ui.hub.subscriptions.cancel")}),e.jsx(C,{"data-testid":"hub-skill-unpull-confirm",disabled:u.isPending,onClick:()=>{Fe(),S(!1)},children:a("ui.hub.skills.unpull")})]})]})}),e.jsx($e,{open:E,onOpenChange:f,children:e.jsxs(He,{className:"max-h-[85vh] overflow-y-auto sm:max-w-2xl",children:[e.jsxs(Be,{children:[e.jsx(Ke,{children:a("ui.hub.skills.publish_title")}),e.jsx(Qe,{children:I})]}),e.jsx(Ba,{scope:s,source:I,verifiedCas:R&&i&&t,enabled:R&&i&&t,heading:!1})]})})]})}const st={all:["org-teams"],list:s=>[...st.all,"list",s]},tt=({tenantId:s,enabled:t=!0})=>{const i=oe({queryKey:st.list(s??""),queryFn:async()=>(await da(s)).result??{teams:[]},enabled:t&&!!s,staleTime:3e5,gcTime:6e5,refetchOnWindowFocus:!1,retryOnMount:!1,retry:ss});return{...i,teams:i.data?.teams??[]}},Ya=(s,t)=>{const i=s?.name?.trim()||t?.trim()||"Team",n=s?.renamed_from?.trim()||null;return s?.invalid_name===!0&&n?{level:"warning",message:a("ui.notices.hub.team_pulled_renamed",{stored:i,published:n})}:n?{level:"success",message:a("ui.notices.hub.team_pulled_collision",{stored:i,published:n})}:{level:"success",message:a("ui.notices.hub.team_pulled",{name:i})}},at=()=>{const s=ne();return ye({mutationFn:async({teamId:t,tenantId:i})=>{if(!G.baseUrl)throw new Error("Local Operator API URL is not configured.");return Lt.pullOrgTeamFromRadient(G.baseUrl,t,i)},onSuccess:(t,i)=>{const n=Ya(t.result,i.name);n.level==="warning"?At(n.message):Et(n.message),s.invalidateQueries({queryKey:["desktop","teams"]})},onError:t=>{console.error("Pulling an organization team failed:",t)}})},Ga=/^v/i,it=s=>s.members.reduce((t,i)=>t+i.count,0),Ja=s=>s.count>1?`${s.role} ×${s.count}`:s.role,Ze=s=>s.members.map(Ja).join(", "),nt=s=>{const t=(s.version??"").trim().replace(Ga,"").trim();return t===""?null:t},lt=s=>{const t=s.account_metadata?.name?.trim();return t||null},Xa=s=>{const t=(s.description??"").trim();return t===""?null:t},es=240,Za=es/2,ei=(s,t)=>{if(t||s.length<=es)return s;const i=s.slice(0,es),n=i.lastIndexOf(" ");return`${(n>=Za?i.slice(0,n):i).trimEnd()}…`},Te=s=>Ot(s,{day:"numeric",month:"short",year:"numeric"}),Ie=s=>{if(!s)return null;const t=new Date(s);return Number.isNaN(t.getTime())?null:t},Fs=(s,t,i)=>{const n=i-t.getTime();let l;return n<0?l=Te(t):n<6e4?l=a("ui.hub.updates.ago.now"):l=Vt(t,i),{label:s,when:l,iso:t.toISOString(),exact:Te(t)}},si=(s,t=Date.now())=>{const i=Ie(s.updated_at);if(i)return Fs("updated",i,t);const n=Ie(s.created_date);return n?Fs("created",n,t):null},ti=s=>{const t=Ie(s.created_date),i=Ie(s.updated_at);return{created:t?Te(t):null,updated:i?Te(i):null}},ai=s=>s==="role"?a("ui.hub.teams.kind.role"):s==="specialist"?a("ui.hub.teams.kind.specialist"):s,ii=["refresh-hub","retry","sign-in"],ni=({tenantId:s,orgName:t})=>{const{teams:i,isLoading:n,isFetching:l,isError:d,error:m,refetch:L}=tt({tenantId:s}),p=Js(m),v=at(),[O,S]=r.useState(null),[x,h]=r.useState(null),E=r.useRef(new Map),f=r.useRef(null);r.useEffect(()=>{v.isPending||f.current===null||(E.current.get(f.current)?.focus(),f.current=null)},[v.isPending]);const[w,I]=r.useState(!1),[F,P]=r.useState(()=>new Set),g=(u,b)=>P(A=>{const q=new Set(A);return b?q.add(u):q.delete(u),q}),R=(u,b)=>{u.key!=="Escape"||!F.has(b)||(u.target instanceof Element?u.target:null)?.closest('[data-testid="org-team-pull-error"]')||(g(b,!1),u.currentTarget.querySelector("button[aria-expanded]")?.focus(),u.preventDefault())},k=r.useMemo(()=>{if(!Hs(v.error))return null;const u=i.find(b=>b.id===O);return Ks({code:v.error.code,message:v.error.message,details:v.error.details},{name:u?.name??"this team",hubAgentId:null,surface:"pull"})},[v.error,O,i]),j=(u,b)=>{switch(u){case"refresh-hub":L();break;case"retry":y(b);break;case"sign-in":I(!0);break}},y=u=>{v.isPending||(f.current=u.id,S(null),h(u.id),v.mutate({teamId:u.id,tenantId:s,name:u.name},{onSettled:()=>h(null),onError:()=>S(u.id)}))};return e.jsxs("section",{className:"mb-6 max-w-4xl rounded-md bg-surface","aria-label":a("ui.hub.teams.org.aria",{org:t??a("ui.hub.pages.scope.org_unnamed")}),"data-testid":"org-teams",children:[n&&e.jsxs("div",{"aria-hidden":"true",className:"flex flex-col divide-y divide-hairline","data-testid":"org-teams-loading",children:[e.jsx(Ye,{}),e.jsx(Ye,{}),e.jsx(Ye,{})]}),!n&&d&&e.jsxs(ge,{variant:p?"warning":"danger",className:"m-4 w-auto","data-testid":"org-teams-error",children:[e.jsx(fe,{children:p==="plan"?a("ui.hub.teams.org.plan_headline"):p==="no_access"?a("ui.hub.teams.org.no_access_headline"):a("ui.hub.teams.org.load_headline")}),e.jsx(ke,{children:p==="plan"?a("ui.hub.teams.org.plan_body",{org:t??a("ui.hub.pages.scope.org_unnamed")}):p==="no_access"?a("ui.hub.teams.org.no_access_body",{org:t??a("ui.hub.teams.org.that_organization")}):ts(a("ui.hub.teams.org.unreadable"),m)}),p!=="no_access"&&e.jsx("div",{className:"mt-2",children:e.jsx(C,{variant:"primary",size:"sm",onClick:()=>void L(),disabled:l,"aria-busy":l,children:l?a("ui.hub.teams.public.trying"):ce.retry})})]}),!n&&!d&&i.length===0&&e.jsx("p",{className:"p-4 text-body-sm text-ink-muted","data-testid":"org-teams-empty",children:a("ui.hub.teams.org.empty",{org:t??a("ui.hub.pages.scope.org_unnamed")})}),!n&&!d&&i.length>0&&e.jsx("ul",{className:"flex flex-col divide-y divide-hairline",children:i.map(u=>e.jsxs("li",{className:$(rt,"transition-colors duration-fast ease-out-quart hover:bg-elevated first:rounded-t-md last:rounded-b-md"),onKeyDown:b=>R(b,u.id),children:[e.jsx(Bs,{className:"min-w-0",open:F.has(u.id),onOpenChange:b=>g(u.id,b),summaryAlign:"firstLine",triggerClassName:"min-w-0",chevronClassName:"text-ink-dim mt-1",rowClassName:"py-0",summary:e.jsx(ci,{team:u,expanded:F.has(u.id)}),trailing:e.jsx("div",{className:"-mt-1 ml-3 shrink-0 self-start",children:e.jsx(C,{ref:b=>{b?E.current.set(u.id,b):E.current.delete(u.id)},variant:"secondary",size:"sm",onClick:()=>y(u),disabled:v.isPending,"aria-label":a("ui.hub.teams.pull_target",{name:ie(u.name)}),children:x===u.id?a("ui.hub.teams.pulling"):a("ui.hub.teams.pull")})}),children:e.jsx(ui,{team:u})}),O===u.id&&e.jsxs("div",{className:"mt-1 flex flex-col items-start gap-1 pl-5","data-testid":"org-team-pull-error",children:[e.jsx("output",{className:"text-meta text-danger",children:k?.body??v.error?.message??a("ui.hub.teams.pull_failed",{name:ie(u.name)})}),k?.actions.filter(b=>ii.includes(b)).map(b=>e.jsx(C,{variant:"primary",size:"sm",onClick:()=>j(b,u),children:ce[b]},b)),w&&e.jsx("div",{className:"mt-1","data-testid":"org-team-pull-reauth",children:e.jsx(Xs,{titleText:ce["sign-in"],descriptionText:"",onSignInSuccess:()=>{I(!1),S(null),L()}})})]})]},u.id))})]})},rt="px-4 py-3",ct=()=>e.jsxs(e.Fragment,{children:[e.jsx("span",{"aria-hidden":"true",className:"mx-1.5",children:"·"}),e.jsx("span",{className:"sr-only",children:", "})]}),li=({team:s})=>{J();const t=s.manager?.trim(),i=it(s);return e.jsxs("span",{className:"block truncate text-meta",children:[t?e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"text-ink-dim",children:a("ui.hub.teams.manager_label")})," ",e.jsx("span",{className:"text-ink-muted",children:t})]}):null,t?e.jsx(ct,{}):null,s.members.length===0?e.jsx("span",{className:"text-ink-dim",children:a("ui.hub.teams.no_members")}):e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"text-ink-dim",children:a("ui.hub.teams.member_count",{count:i})})," ",e.jsx("span",{className:"text-ink-muted",children:Ze(s)})]})]})},ri=({team:s})=>{const t=s.project?.trim(),i=lt(s),n=si(s),l=[];return t&&l.push({key:"project",node:t}),i&&l.push({key:"author",node:i}),n&&l.push({key:"recency",node:e.jsxs(e.Fragment,{children:[n.label," ",e.jsx(re,{content:n.exact,children:e.jsx("time",{dateTime:n.iso,children:n.when})})]})}),l.length===0?null:e.jsx("span",{className:"block truncate text-ink-dim text-meta",children:l.map((d,m)=>e.jsxs("span",{children:[m>0?e.jsx(ct,{}):null,d.node]},d.key))})},ci=({team:s,expanded:t})=>{J();const i=Xa(s),n=nt(s);return e.jsxs("span",{className:"flex min-w-0 flex-col",children:[e.jsxs("span",{className:"flex min-w-0 items-baseline",children:[e.jsx("span",{className:"truncate font-medium text-body text-ink",children:ie(s.name)}),n?e.jsxs("span",{className:"ml-2 shrink-0 text-ink-dim text-meta",children:["v",n]}):null]}),i?e.jsxs(e.Fragment,{children:[e.jsx("span",{...Ce,"aria-hidden":"true",className:$("mt-1 select-text break-words text-body-sm text-ink-muted",t?"line-clamp-[12] whitespace-pre-line":"line-clamp-2"),children:i}),e.jsx("span",{className:"sr-only",children:ei(i,t)})]}):e.jsx("span",{className:"mt-1 text-body-sm text-ink-dim",children:a("ui.hub.teams.no_description")}),e.jsxs("span",{className:"mt-1 flex min-w-0 flex-col",children:[e.jsx(li,{team:s}),e.jsx(ri,{team:s})]})]})},ui=({team:s})=>{J();const t=s.manager?.trim(),i=ti(s),n=[i.created?a("ui.hub.teams.detail.created",{date:i.created}):null,i.updated?a("ui.hub.teams.detail.updated",{date:i.updated}):null].filter(d=>d!==null),l=!!t||s.members.length>0;return e.jsxs("div",{className:"mt-1 flex flex-col gap-2",children:[l||n.length===0?e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsx("p",{className:"text-ink-dim text-meta",children:a("ui.hub.teams.members")}),e.jsxs("ul",{className:"flex flex-col gap-0.5",children:[t?e.jsxs("li",{className:"flex items-baseline gap-1.5",children:[e.jsx("span",{className:"text-body-sm text-ink-muted",children:t}),e.jsx("span",{className:"text-ink-dim text-meta",children:a("ui.hub.teams.manager")})]}):null,s.members.map(d=>e.jsxs("li",{className:"flex items-baseline gap-1.5",children:[e.jsx("span",{className:"text-body-sm text-ink-muted",children:d.role}),e.jsx("span",{className:"text-ink-dim text-meta",children:ai(d.kind)}),d.count>1?e.jsxs("span",{className:"text-ink-dim text-meta tabular-nums",children:["×",d.count]}):null]},`${d.kind}:${d.role}`)),l?null:e.jsx("li",{className:"text-ink-dim text-meta",children:a("ui.hub.teams.no_members")})]})]}):null,n.length>0?e.jsx("p",{className:"text-ink-dim text-meta",children:n.join(" · ")}):null]})},Ye=()=>e.jsxs("div",{className:$(rt,"pl-9"),"data-testid":"org-team-skeleton-row",children:[e.jsx("div",{className:"flex h-[1lh] items-center text-body",children:e.jsx(T,{className:"h-4.5 w-40"})}),e.jsxs("div",{className:"mt-1 flex h-[2lh] flex-col justify-evenly text-body-sm",children:[e.jsx(T,{className:"h-3.5 w-full"}),e.jsx(T,{className:"h-3.5 w-2/3"})]}),e.jsx("div",{className:"mt-1 flex h-[1lh] items-center text-meta",children:e.jsx(T,{className:"h-3 w-64"})}),e.jsx("div",{className:"flex h-[1lh] items-center text-meta",children:e.jsx(T,{className:"h-3 w-48"})})]}),ut=(s,t)=>t instanceof Ys?t.message:ts(s,t),oi=["refresh-hub","retry","sign-in"],di=({signedIn:s,onOpenSettings:t})=>{J();const[i,n]=r.useState(1),[l,d]=r.useState(""),{teams:m,isLoading:L,isFetching:p,isError:v,error:O,refetch:S,pagination:x}=Zs({page:i,perPage:rs}),h=at(),[E,f]=r.useState(null),[w,I]=r.useState(null),F=r.useRef(new Map),P=r.useRef(null);r.useEffect(()=>{h.isPending||P.current===null||(F.current.get(P.current)?.focus(),P.current=null)},[h.isPending]);const g=Wt(l.trim()),R=r.useMemo(()=>g?m.filter(N=>ie(N.name).toLowerCase().includes(g)||(N.description??"").toLowerCase().includes(g)):m,[m,g]),k=N=>{h.isPending||(f(null),I(N.id),P.current=N.id,h.mutate({teamId:N.id,name:N.name},{onSettled:()=>I(null),onError:()=>f(N.id)}))},j=r.useMemo(()=>{if(!Hs(h.error))return null;const N=m.find(M=>M.id===E);return Ks({code:h.error.code,message:h.error.message,details:h.error.details},{name:N?.name??"this team",hubAgentId:null,surface:"pull"})},[h.error,E,m]),y=j?.body??(vt(h.error)==="unauthorized"?a("ui.hub.teams.public.pull_no_signin"):a("ui.hub.teams.public.pull_failed")),[u,b]=r.useState(!1),A=(N,M)=>{switch(N){case"refresh-hub":S();break;case"retry":k(M);break;case"sign-in":b(!0);break}},q=L&&m.length===0,K=x?.totalRecords??m.length,D=r.useRef(null),U=N=>{const M=l!=="";d(N),M&&N===""&&D.current?.focus()};return e.jsxs("section",{"aria-label":a("ui.hub.teams.public.aria"),className:"flex flex-col","data-testid":"agent-hub-public-teams",children:[e.jsx("h2",{className:"sr-only",children:a("ui.hub.teams.public.aria")}),e.jsx("p",{className:"mb-3 max-w-3xl text-body-sm text-ink-muted",children:a("ui.hub.teams.public.intro")}),s?null:e.jsxs("div",{className:"mb-3 flex flex-wrap items-center gap-2","data-testid":"agent-hub-public-teams-signed-out",children:[e.jsx("span",{className:"text-meta text-ink-dim",children:a("ui.hub.teams.public.sign_in_hint")}),e.jsx(C,{variant:"secondary",size:"sm",onClick:t,children:a("ui.hub.teams.public.open_settings")})]}),e.jsx("div",{className:"mb-4 flex flex-wrap items-center gap-2",children:e.jsxs("div",{className:$("flex min-w-56 max-w-md flex-1 items-center rounded-sm border border-control bg-surface","transition-colors duration-fast ease-out-quart","has-[:focus-visible]:outline-solid has-[:focus-visible]:outline-2","has-[:focus-visible]:outline-accent has-[:focus-visible]:outline-offset-2"),children:[e.jsx($s,{"aria-hidden":"true",className:"ml-2 shrink-0 text-ink-dim"}),e.jsx(Ae,{ref:D,type:"search",value:l,onChange:N=>U(N.target.value),placeholder:a("ui.hub.teams.public.search_placeholder"),"aria-label":a("ui.hub.teams.public.search_aria"),className:"h-8 min-w-0 flex-1 border-0 bg-transparent outline-none","data-testid":"agent-hub-public-teams-search"})]})}),q&&e.jsxs("div",{"aria-hidden":"true",className:"flex max-w-4xl flex-col gap-3","data-testid":"agent-hub-public-teams-loading",children:[e.jsx(Ge,{}),e.jsx(Ge,{}),e.jsx(Ge,{})]}),!q&&v&&e.jsxs(ge,{variant:"danger",className:"w-auto max-w-2xl","data-testid":"agent-hub-public-teams-error",children:[e.jsx(fe,{children:a("ui.hub.teams.public.load_failed")}),e.jsx(ke,{children:ut(a("ui.hub.teams.public.catalogue_unreadable"),O)}),e.jsx("div",{className:"mt-2",children:e.jsx(C,{variant:"primary",size:"sm",onClick:()=>void S(),disabled:p,"aria-busy":p,children:p?a("ui.hub.teams.public.trying"):a("ui.common.actions.retry_again")})})]}),!q&&!v&&m.length===0&&e.jsx("p",{className:"max-w-2xl text-body-sm text-ink-muted","data-testid":"agent-hub-public-teams-empty",children:a("ui.hub.teams.public.empty")}),!q&&!v&&m.length>0&&e.jsxs(e.Fragment,{children:[!g||R.length>0?e.jsxs("p",{className:"mb-3 text-meta text-ink-dim","data-testid":"agent-hub-public-teams-status",children:[g?a("ui.hub.teams.public.match_line",{visible:String(R.length),total:m.length,query:l.trim()}):a("ui.hub.pages.status.count.teams",{count:K,scope:a("ui.hub.pages.status.scope.public")}),g?e.jsxs("span",{className:"text-ink-dim",children:[" ",a("ui.hub.teams.public.search_scope")]}):null]}):null,R.length===0?e.jsx("p",{className:"max-w-2xl text-body-sm text-ink-muted","data-testid":"agent-hub-public-teams-search-miss",children:a("ui.hub.teams.public.search_miss",{query:l.trim()})}):e.jsx("ul",{className:"flex max-w-4xl flex-col gap-3",children:R.map(N=>e.jsx(mi,{team:N,pulling:w===N.id,pullPending:h.isPending,onPull:k,pullButtonRef:M=>{M?F.current.set(N.id,M):F.current.delete(N.id)},failed:E===N.id,failureBody:y,treatment:j,onTreatmentAction:A,reauthenticating:u,onReauthenticated:()=>{b(!1),f(null),S()}},N.id))}),!g&&x&&x.totalPages>1&&e.jsx(ns,{count:x.totalPages,page:x.page,onChange:N=>{n(N),D.current?.scrollIntoView({block:"nearest"})}})]})]})},mi=({team:s,pulling:t,pullPending:i,onPull:n,failed:l,failureBody:d,treatment:m,onTreatmentAction:L,reauthenticating:p,onReauthenticated:v,pullButtonRef:O})=>{J();const[S,x]=r.useState(!1),h=Ea({teamId:S?s.id:void 0}),E=ie(s.name),f=nt(s),w=lt(s),I=s.manager?.trim(),F=it(s),P=(s.description??"").trim();return e.jsxs("li",{className:"rounded-md bg-surface p-4","data-testid":"agent-hub-public-team","data-team-name":s.name,children:[e.jsxs("div",{className:"flex items-start justify-between gap-3",children:[e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsxs("div",{className:"flex items-baseline",children:[e.jsx("h3",{className:"truncate font-medium text-heading text-ink",children:E}),f?e.jsxs("span",{className:"ml-2 shrink-0 text-ink-dim text-meta",children:["v",f]}):null]}),P?e.jsx("p",{...Ce,className:"mt-1 line-clamp-3 max-w-3xl select-text text-body-sm text-ink-muted",children:P}):e.jsx("p",{className:"mt-1 text-body-sm text-ink-dim",children:a("ui.hub.teams.no_description")}),e.jsxs("p",{className:"mt-2 flex flex-wrap items-baseline gap-x-2 text-meta",children:[I?e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"text-ink-dim",children:a("ui.hub.teams.manager_label")}),e.jsx("span",{className:"text-ink-muted",children:I})]}):null,s.members.length===0?e.jsx("span",{className:"text-ink-dim",children:a("ui.hub.teams.no_members")}):e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"text-ink-dim",children:a("ui.hub.teams.member_count",{count:F})}),e.jsx(re,{content:Ze(s),children:e.jsx("span",{className:"truncate text-ink-muted",children:Ze(s)})})]})]}),w?e.jsxs("p",{className:"mt-1 text-ink-dim text-meta",children:[a("ui.hub.teams.public.published_by")," ",e.jsx("span",{className:"text-ink-muted",children:w})]}):null]}),e.jsxs("div",{className:"flex shrink-0 flex-col items-end gap-2",children:[e.jsx(C,{ref:O,variant:"secondary",size:"sm",onClick:()=>n(s),disabled:i,"aria-label":a("ui.hub.teams.pull_target",{name:E}),children:t?a("ui.hub.teams.pulling"):a("ui.hub.teams.pull")}),l&&e.jsxs("div",{className:"flex max-w-56 flex-col items-end gap-1","data-testid":"agent-hub-public-team-pull-error",children:[e.jsx("output",{className:"text-right text-meta text-danger",children:d}),m?.actions.filter(g=>oi.includes(g)).map(g=>e.jsx(C,{variant:"primary",size:"sm",onClick:()=>L(g,s),children:ce[g]},g)),p&&e.jsx("div",{"data-testid":"agent-hub-public-team-pull-reauth",children:e.jsx(Xs,{titleText:ce["sign-in"],descriptionText:"",onSignInSuccess:v})})]})]})]}),e.jsx("div",{className:"mt-2",children:e.jsx(Bs,{summary:a("ui.hub.teams.brief.trigger"),open:S,onOpenChange:x,className:"w-full",triggerClassName:"w-full",triggerLabel:a("ui.hub.teams.brief.trigger_aria",{name:E}),chevronClassName:"text-ink-dim",children:e.jsx(hi,{detail:h})})})]})},hi=({detail:s})=>{if(J(),s.isLoading)return e.jsxs("div",{className:"flex flex-col gap-1","data-testid":"agent-hub-public-team-brief-loading",children:[e.jsx(T,{className:"h-[1lh] w-2/3"}),e.jsx(T,{className:"h-[2lh] w-full"})]});if(s.isError)return e.jsxs("div",{className:"flex flex-col items-start gap-1",children:[e.jsx("output",{className:"text-meta text-danger",children:ut(a("ui.hub.teams.brief.unreadable"),s.error)}),e.jsx(C,{variant:"primary",size:"sm",onClick:()=>void s.refetch(),disabled:s.isFetching,"aria-busy":s.isFetching,children:s.isFetching?a("ui.hub.teams.public.trying"):ce.retry})]});const t=s.team;if(!t)return null;const i=(t.instructions??"").trim(),n=(t.project??"").trim();return e.jsxs("div",{className:"flex max-w-3xl flex-col gap-3 text-body-sm","data-testid":"agent-hub-public-team-brief",children:[e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsx("p",{className:"text-ink-dim text-meta",children:a("ui.hub.teams.brief.collaboration")}),i?e.jsx("p",{...Ce,className:"whitespace-pre-line select-text text-ink-muted",children:i}):e.jsx("p",{className:"text-ink-dim",children:a("ui.hub.teams.brief.collaboration_empty")})]}),e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsx("p",{className:"text-ink-dim text-meta",children:a("ui.hub.teams.brief.project")}),n?e.jsx("p",{...Ce,className:"whitespace-pre-line select-text text-ink-muted",children:n}):e.jsx("p",{className:"text-ink-dim",children:a("ui.hub.teams.brief.project_empty")})]}),e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsx("p",{className:"text-ink-dim text-meta",children:a("ui.hub.teams.brief.roster")}),e.jsxs("ul",{className:"flex flex-col gap-0.5",children:[t.manager?.trim()?e.jsxs("li",{className:"flex items-baseline gap-1.5",children:[e.jsx("span",{className:"text-body-sm text-ink-muted",children:t.manager.trim()}),e.jsx("span",{className:"text-ink-dim text-meta",children:a("ui.hub.teams.manager")})]}):null,t.members.length===0?e.jsx("li",{className:"text-ink-dim",children:a("ui.hub.teams.no_members")}):t.members.map(l=>e.jsxs("li",{className:"flex items-baseline gap-1.5",children:[e.jsx("span",{className:"text-body-sm text-ink-muted",children:l.count>1?`${l.role} ×${l.count}`:l.role}),e.jsx("span",{className:"text-ink-dim text-meta",children:l.kind})]},`${l.kind}:${l.role}`))]})]})]})},Ge=()=>e.jsxs("div",{className:"rounded-md bg-surface p-4",children:[e.jsx(T,{className:"h-[1lh] w-1/3"}),e.jsx(T,{className:"mt-1 flex h-[3lh] w-full"}),e.jsx(T,{className:"mt-2 h-[1lh] w-2/3"})]}),bi=(s,t)=>{const[i,n]=r.useState(s);return r.useEffect(()=>{const l=setTimeout(()=>n(s),t);return()=>clearTimeout(l)},[s,t]),i},Se=[{value:"download_count:desc",label:"ui.hub.pages.sort.most_downloaded",sort:"download_count",order:"desc"},{value:"like_count:desc",label:"ui.hub.pages.sort.most_liked",sort:"like_count",order:"desc"},{value:"favourite_count:desc",label:"ui.hub.pages.sort.most_favourited",sort:"favourite_count",order:"desc"},{value:"created_at:desc",label:"ui.hub.pages.sort.newest",sort:"created_at",order:"desc"},{value:"updated_at:desc",label:"ui.hub.pages.sort.recently_updated",sort:"updated_at",order:"desc"},{value:"name:asc",label:"ui.hub.pages.sort.name_asc",sort:"name",order:"asc"}],xi=[{value:"name",label:"ui.hub.pages.search_field.name"},{value:"description",label:"ui.hub.pages.search_field.description"}],pi=300,B="public",zs={agents:"agent-hub-view-agents",teams:"agent-hub-view-teams",skills:"agent-hub-view-skills"},qs="agent-hub-view-panel",gi=()=>e.jsxs("div",{className:"flex h-full flex-col overflow-hidden rounded-md bg-surface",children:[e.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-2 p-4",children:[e.jsx(T,{className:"h-5.5 w-2/3"}),e.jsx(T,{className:"h-3.5 w-full"}),e.jsx(T,{className:"h-3.5 w-full"}),e.jsx(T,{className:"h-3.5 w-1/2"}),e.jsxs("div",{className:"mt-auto flex flex-col gap-2 pt-2",children:[e.jsxs("div",{className:"flex flex-col gap-1.5",children:[e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx(T,{className:"h-5.5 w-24"}),e.jsx(T,{className:"h-5.5 w-20"})]}),e.jsx("div",{className:"flex items-center gap-1.5",children:e.jsx(T,{className:"h-5.5 w-24"})})]}),e.jsx(T,{className:"h-4.5 w-32"})]})]}),e.jsxs("div",{className:"flex items-center gap-2 border-t border-hairline px-3 py-2",children:[e.jsx(T,{className:"size-4"}),e.jsx(T,{className:"h-4 w-6"}),e.jsx(T,{className:"size-4"}),e.jsx(T,{className:"h-4 w-6"}),e.jsx(T,{className:"ml-auto h-7 w-16"})]})]}),Oi=()=>{const s=Ds(),{isAuthenticated:t}=as(),[i,n]=r.useState(1),[l]=r.useState(12),[d,m]=r.useState(null),[L,p]=r.useState(""),[v,O]=r.useState("name"),[S,x]=r.useState(Se[0].value),[h,E]=r.useState(B),[f,w]=r.useState("agents");J();const[I,F]=r.useState([]),P=bi(L,pi),g=Se.find(c=>c.value===S)??Se[0],R=Re(),k=!R.isError&&ue(R.data,"hub_skills"),j=f==="skills"&&!k?"agents":f;r.useEffect(()=>{f==="skills"&&!k&&w("agents")},[f,k]);const y=Ft(),u=Nt(R.data,"radient_org"),b=t?ka(u,y??null):null,{memberships:A}=ma({enabled:We(u)}),q=r.useMemo(()=>fa(A),[A]),K=h===B||q.some(c=>c.tenant_id===h);r.useEffect(()=>{!K&&j!=="skills"&&E(B)},[K,j]);const D=h===B?null:q.find(c=>c.tenant_id===h)??null,U=D?.tenant_id,N=D?.tenant_name||null,M=d!==null||P!=="",te=tt({tenantId:U}),ae=Zs({page:1,perPage:rs,enabled:h===B}),me=U&&te.isSuccess?te.teams.length:null,ve=ae.isSuccess?ae.pagination?.totalRecords??null:null,Q=M?null:h===B?ve:me,_=h===B?{visibility:"public",tenantId:null}:{visibility:"org",tenantId:h},Ne=K&&(h===B||We(u)),he=et(_,1,k&&Ne&&(h===B||t)),se=he.isSuccess?he.data.total:null,Le=D?.role==="owner"||D?.role==="admin",be=r.useMemo(()=>new Map(A.map(c=>[c.tenant_id,c.tenant_name])),[A]),{data:le,agents:Oe,isLoading:Fe,isFetching:V,error:X,refetch:xe,pagination:H}=Dt({page:i,perPage:l,categories:d?[d]:void 0,name:v==="name"&&P||void 0,description:v==="description"&&P||void 0,sort:g.sort,order:g.order,tenantId:U}),o=D?Js(X):null,z=Oe??[],Z=V&&le!==void 0,{statuses:pe,isKnown:we,isError:ot,isFetching:ze,refetch:dt}=Yt({agentIds:U?[]:z.map(c=>c.id)}),qe=r.useRef(null),De=r.useRef(null),[os,mt]=r.useState(0);r.useEffect(()=>{os!==0&&(qe.current??De.current)?.focus()},[os]);const ds=r.useRef(null),Me=r.useRef(!1),Ue=r.useMemo(()=>[...new Set((le?.records??[]).flatMap(c=>c.categories??[]))],[le]);r.useEffect(()=>{F(c=>Ue.every(Y=>c.includes(Y))?c:[...new Set([...c,...Ue])])},[Ue]);const ht=()=>{m(null),p(""),n(1),mt(c=>c+1)},W=(Fe||V)&&le===void 0,ms=!W&&!M&&(X!==null||z.length===0);r.useEffect(()=>{!Me.current||W||(Me.current=!1,X?ds.current?.focus():(qe.current??De.current)?.focus())},[W,X]);const hs=r.useRef(null),bt=c=>{n(c),hs.current?.scrollIntoView({block:"nearest"})},xt=c=>{m(c),n(1)},pt=c=>{p(c),n(1)},gt=c=>{E(c),n(1)},bs=r.useRef(new Map),ft=c=>{O(c),n(1)},kt=H&&!M?H.totalRecords:null,_e=U?a("ui.hub.pages.status.scope.shared_with",{org:N??a("ui.hub.pages.scope.org_unnamed")}):a("ui.hub.pages.status.scope.public"),xs=(c,Y)=>Y==="team"?a("ui.hub.pages.status.count.teams",{count:c,scope:_e}):a("ui.hub.pages.status.count.agents",{count:c,scope:_e});let ee;return j==="skills"?ee=" ":j==="teams"?U?te.isLoading?ee=a("ui.hub.pages.status.loading_teams"):Q!==null?ee=xs(Q,"team"):ee=a("ui.hub.pages.status.teams_scope",{scope:_e}):ee=" ":W?ee=a("ui.hub.pages.status.loading_agents"):H?ee=xs(H.totalRecords,"agent"):ee=a("ui.hub.pages.status.agents_scope",{scope:_e}),e.jsxs("div",{className:"flex h-full flex-col gap-8 p-6",children:[e.jsx(wt,{title:a("ui.hub.pages.header.title"),subtitle:a("ui.hub.pages.header.subtitle"),icon:ha}),e.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-4",children:[b&&e.jsxs(ge,{variant:"warning",className:"max-w-2xl","data-testid":"agent-hub-org-unavailable",children:[e.jsx(fe,{children:a("ui.hub.pages.orgs_unavailable")}),e.jsx(ke,{children:b})]}),e.jsxs("div",{className:"flex shrink-0 flex-wrap items-center gap-x-4 gap-y-2","data-testid":"agent-hub-browse-bar",children:[e.jsx(Ct,{value:j,onValueChange:c=>w(c),children:e.jsx(Pt,{"aria-label":a("ui.hub.pages.browse_aria"),children:["agents","teams",...k?["skills"]:[]].map(c=>{const Y=c==="agents"?kt:c==="teams"?Q:se;return e.jsxs(Tt,{value:c,id:zs[c],"aria-controls":j===c?qs:void 0,"data-testid":`agent-hub-view-${c}`,children:[c==="agents"?a("ui.hub.pages.tab.agents"):c==="teams"?a("ui.hub.pages.tab.teams"):a("ui.hub.skills.title"),Y!==null&&e.jsx("span",{className:"min-w-[2ch] font-normal text-ink-dim tabular-nums",children:Y})]},c)})})}),q.length>0&&e.jsxs("div",{className:"ml-auto flex min-w-0 items-center gap-2",children:[e.jsx("span",{"aria-hidden":"true",className:"text-meta text-ink-muted",children:a("ui.hub.pages.scope_label")}),e.jsxs("fieldset",{className:"m-0 min-w-0 border-0 p-0","data-testid":"agent-hub-scope",children:[e.jsx("legend",{className:"sr-only",children:a("ui.hub.pages.scope_legend")}),e.jsx("div",{className:"flex flex-wrap gap-0.5 rounded-md bg-sunken p-0.5",children:[{value:B,label:a("ui.hub.pages.scope.public"),Icon:zt},...q.map(c=>({value:c.tenant_id,label:c.tenant_name||a("ui.hub.pages.scope.org_label"),Icon:ja}))].map(({value:c,label:Y,Icon:jt})=>e.jsxs(C,{ref:ps=>{ps?bs.current.set(c,ps):bs.current.delete(c)},variant:"ghost",size:"sm","aria-pressed":h===c,onClick:()=>gt(c),title:Y,"data-testid":`agent-hub-scope-${c===B?"public":`org-${c}`}`,className:$("max-w-48",h===c&&"bg-surface text-ink hover:bg-surface"),children:[e.jsx(jt,{"aria-hidden":"true"}),e.jsx("span",{className:"truncate",children:Y})]},c))})]})]})]}),e.jsx(It,{id:qs,labelledBy:zs[j],children:e.jsxs("div",{className:"flex min-h-0 flex-1 flex-row overflow-hidden",children:[j==="agents"&&e.jsx(e.Fragment,{children:e.jsx("div",{className:"mr-6 hidden w-60 shrink-0 rounded-md bg-surface p-2 md:block","data-glass-region":"panel","data-tour-tag":"agent-hub-sidebar-container",children:!ms&&e.jsx(Sa,{selectedCategory:d,onSelectCategory:xt,categories:I})})}),e.jsxs("div",{className:"flex min-w-0 flex-1 flex-col overflow-y-auto",children:[j==="agents"&&!ms&&e.jsxs("div",{className:"mb-4 flex flex-wrap items-center gap-2",children:[e.jsxs("div",{className:$("flex min-w-56 flex-1 items-center rounded-sm border border-control bg-surface","transition-colors duration-fast ease-out-quart","has-[:focus-visible]:outline-solid has-[:focus-visible]:outline-2","has-[:focus-visible]:outline-accent has-[:focus-visible]:outline-offset-2"),children:[e.jsx(Ae,{ref:qe,type:"search",value:L,onChange:c=>pt(c.target.value),placeholder:a("ui.hub.pages.search.placeholder"),"aria-label":a("ui.hub.pages.search.aria"),className:"h-8 min-w-0 flex-1 border-0 bg-transparent outline-none","data-testid":"agent-hub-search"}),e.jsxs(fs,{value:v,onValueChange:ft,children:[e.jsx(ks,{className:"w-auto shrink-0 border-y-0 border-l border-hairline border-r-0 bg-transparent pl-2 outline-none","aria-label":a("ui.hub.pages.search.scope_aria"),"data-testid":"agent-hub-search-scope",children:e.jsx(js,{})}),e.jsx(ys,{children:xi.map(c=>e.jsx(vs,{value:c.value,children:a(c.label)},c.value))})]})]}),e.jsxs(fs,{value:S,onValueChange:x,children:[e.jsx(ks,{className:"w-48","aria-label":a("ui.hub.pages.sort.aria"),"data-testid":"agent-hub-sort",children:e.jsx(js,{})}),e.jsx(ys,{children:Se.map(c=>e.jsx(vs,{value:c.value,children:a(c.label)},c.value))})]})]}),e.jsxs("p",{ref:hs,"aria-live":"polite",className:"mb-3 text-meta text-ink-dim","data-testid":"agent-hub-status",children:[ee,j==="agents"&&Z?e.jsxs(e.Fragment,{children:[" ",e.jsx("span",{"data-testid":"agent-hub-updating",children:a("ui.hub.pages.updating")})]}):null]}),j==="agents"&&e.jsxs(e.Fragment,{children:[t&&ot&&e.jsxs("output",{className:"mb-3 flex flex-wrap items-center gap-2 text-meta text-warning","data-testid":"agent-hub-status-unknown",children:[e.jsx("span",{children:a("ui.hub.pages.viewer_unknown")}),e.jsx(C,{variant:"ghost",size:"sm",onClick:()=>void dt(),disabled:ze,"aria-busy":ze,children:ze?"Trying…":"Try again"})]}),W&&e.jsx("div",{"data-testid":"agent-hub-loading",className:"grid grid-cols-[repeat(auto-fill,minmax(17.5rem,1fr))] gap-6",children:Array.from({length:6},(c,Y)=>e.jsx(gi,{},Y))}),W&&H===void 0&&e.jsx("div",{"aria-hidden":"true",className:"mt-6 flex min-h-13 items-center justify-center","data-testid":"agent-hub-pager-placeholder",children:e.jsx(T,{className:"h-4 w-24"})}),e.jsx("output",{"aria-live":"polite","data-testid":"agent-hub-outage",className:$(!W&&X&&!o?"block":"sr-only"),children:!W&&X&&!o&&e.jsxs(ge,{variant:"danger",className:"max-w-2xl","aria-busy":V,"data-testid":"agent-hub-error",children:[e.jsx(fe,{children:t?"The hub could not be loaded":"Sign in to use the hub"}),e.jsx(ke,{children:t?ts("The agent list could not be loaded.",X):"You are not signed in to Radient, so the hub has no credential to read the agent list with. Sign in on the settings page, then try again."}),e.jsx("div",{className:"mt-2",children:e.jsx(C,{ref:ds,variant:"outline",size:"sm",onClick:()=>{Me.current=!0,xe()},disabled:V,"aria-busy":V,children:V?"Trying…":"Try again"})})]})}),!W&&o&&D&&e.jsxs(ge,{variant:"warning",className:"max-w-2xl","data-testid":"agent-hub-org-no-access",children:[e.jsx(fe,{children:o==="plan"?"That organization needs an active Team plan":"You do not have access to that organization"}),e.jsx(ke,{children:o==="plan"?`Sharing agents inside an organization is part of the Team plan. An owner of ${D.tenant_name||"this organization"} can activate it in the Radient console, and then its agents will be listed here.`:`You are not a member of ${D.tenant_name||"that organization"}, so its agents are not listed here. An owner can invite you again.`}),o==="plan"&&e.jsx("div",{className:"mt-2",children:e.jsx(C,{variant:"primary",size:"sm",onClick:()=>void xe(),disabled:V,"aria-busy":V,children:V?"Trying…":"Try again"})})]}),!W&&!X&&e.jsx("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(17.5rem,1fr))] gap-6","aria-busy":Z,children:z.length===0?e.jsxs("div",{"data-testid":"agent-hub-empty",className:$("col-span-full w-full flex flex-col items-center gap-2 rounded-md bg-surface px-6 py-10 text-center",!U&&"max-w-2xl justify-self-center"),children:[e.jsx("p",{className:"text-heading text-ink",children:U?"This organization has no shared agents yet.":d?`No agents in ${Qs(d).label}.`:M?"No agents match that search.":"The hub is empty."}),e.jsx("p",{className:"max-w-md text-body-sm text-ink-muted",children:U?`Agents published into ${D?.tenant_name||"this organization"} appear here for its members.`:d?"Nothing in this category yet. Clear the filter to see the whole hub.":M?"No agent's name or description carries that. Clear it to see the whole hub.":"Nobody has published an agent yet. Yours could be the first."}),e.jsx("div",{className:"mt-2 flex flex-wrap items-center justify-center gap-2",children:M?e.jsx(C,{variant:"secondary",onClick:ht,children:d?"Clear filter":"Clear search"}):U&&!Le?null:e.jsx(C,{ref:De,variant:"secondary",onClick:()=>s("/agents"),children:a("ui.hub.pages.publish")})})]}):z.map(c=>e.jsx(wa,{agent:c,status:t?pe[c.id]:void 0,viewerStateKnown:t&&Gt(we,pe,c.id),orgName:c.visibility==="org"?be.get(c.tenant_id)??null:null},c.id))}),!W&&H&&H.totalPages>1&&e.jsx(ns,{count:H.totalPages,page:H.page,onChange:bt})]}),j==="skills"&&(k?e.jsx(Wa,{scope:h===B?{visibility:"public",tenantId:null,organization:null}:{visibility:"org",tenantId:h,organization:N},signedIn:t,accessible:K&&(h===B||We(u))},`skills:${h}`):e.jsx("p",{className:"text-body-sm text-warning",children:a("ui.hub.skills.unavailable")})),j==="teams"&&(D?e.jsx(ni,{tenantId:D.tenant_id,orgName:N}):e.jsx(di,{signedIn:t,onOpenSettings:()=>s("/settings")}))]})]})})]})]})};export{Oi as AgentHubPage};
|