local-operator-ui 0.46.0 → 0.46.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.
Files changed (109) hide show
  1. package/out/main/index.js +6073 -3148
  2. package/out/preload/index.js +49 -25
  3. package/out/renderer/assets/{_basePickBy-Bg2PntRn.js → _basePickBy-DRfj0nMs.js} +1 -1
  4. package/out/renderer/assets/{_baseUniq-Sw_DRRUZ.js → _baseUniq-_66zsZEt.js} +1 -1
  5. package/out/renderer/assets/addressOverlayList-AR8aOeNw.js +1 -0
  6. package/out/renderer/assets/{addressOverlayList-B7X6o95l.css → addressOverlayList-Csi0NFuY.css} +1 -1
  7. package/out/renderer/assets/agent-details-page-BHNSL3ah.js +6 -0
  8. package/out/renderer/assets/agent-hub-page-BZQXuZfR.js +6 -0
  9. package/out/renderer/assets/agents-page-DkNXjymR.js +14 -0
  10. package/out/renderer/assets/approvalsOverlay-DCoEhZQ9.js +1 -0
  11. package/out/renderer/assets/{arc-BjEpYkt3.js → arc-BXfBwNqW.js} +1 -1
  12. package/out/renderer/assets/{architectureDiagram-IEHRJDOE-n2nrkgqq.js → architectureDiagram-IEHRJDOE-ChF6YQN8.js} +1 -1
  13. package/out/renderer/assets/{blockDiagram-JOT3LUYC-CBHAlphe.js → blockDiagram-JOT3LUYC-Dx86_dfW.js} +1 -1
  14. package/out/renderer/assets/{book-open-1zGbkXts.js → book-open-KA0S3bsq.js} +1 -1
  15. package/out/renderer/assets/browser-page-BGKTEL-Y.js +1 -0
  16. package/out/renderer/assets/{browser-webauthn-prompt-DF7G3wHO.js → browser-webauthn-prompt-D_Jq5XpE.js} +1 -1
  17. package/out/renderer/assets/{building-2-xAIkeocN.js → building-2-28qEBngA.js} +1 -1
  18. package/out/renderer/assets/{c4Diagram-VJAJSXHY-BeEL1M9r.js → c4Diagram-VJAJSXHY-efMMgoVM.js} +1 -1
  19. package/out/renderer/assets/channel-B39qZeT9.js +1 -0
  20. package/out/renderer/assets/{chunk-4BMEZGHF-DrBLki1x.js → chunk-4BMEZGHF-B-6vtvTz.js} +1 -1
  21. package/out/renderer/assets/{chunk-A2AXSNBT-CcpqDYyq.js → chunk-A2AXSNBT-D2tqnzB0.js} +1 -1
  22. package/out/renderer/assets/{chunk-AEK57VVT-By2248qy.js → chunk-AEK57VVT-h6Wtx2p3.js} +1 -1
  23. package/out/renderer/assets/{chunk-D6G4REZN-70TDt_Io.js → chunk-D6G4REZN-wSNXJiq9.js} +1 -1
  24. package/out/renderer/assets/{chunk-RZ5BOZE2-xZsyOq6V.js → chunk-RZ5BOZE2-D4_t9t1x.js} +1 -1
  25. package/out/renderer/assets/{chunk-XZIHB7SX-DvNMGF5J.js → chunk-XZIHB7SX-B8JVDCJh.js} +1 -1
  26. package/out/renderer/assets/classDiagram-GIVACNV2-D2KR8UHd.js +1 -0
  27. package/out/renderer/assets/classDiagram-v2-COTLJTTW-D2KR8UHd.js +1 -0
  28. package/out/renderer/assets/clone-DcCCUUL_.js +1 -0
  29. package/out/renderer/assets/{console-mirror-DLnj_s8B.js → console-mirror-BRY8oE4K.js} +1 -1
  30. package/out/renderer/assets/{consoleCapture-D06Kq6KP.js → consoleCapture-B26psDi1.js} +1 -1
  31. package/out/renderer/assets/{conversation-input-sync-wILdIPP1.js → conversation-input-sync-B43QzK-n.js} +168 -168
  32. package/out/renderer/assets/{dagre-OKDRZEBW-CLd7U4De.js → dagre-OKDRZEBW-Cavj0RaJ.js} +1 -1
  33. package/out/renderer/assets/{diagram-SSKATNLV-nSRWWPzA.js → diagram-SSKATNLV-svyEwxLR.js} +1 -1
  34. package/out/renderer/assets/{diagram-VNBRO52H-D3LSHEXi.js → diagram-VNBRO52H-D1szj8BO.js} +1 -1
  35. package/out/renderer/assets/{erDiagram-Q7BY3M3F-CwYNgJEl.js → erDiagram-Q7BY3M3F-CMn1BA_s.js} +1 -1
  36. package/out/renderer/assets/{error-boundary-BwM9HB5p.js → error-boundary-Ddujf9jK.js} +2 -2
  37. package/out/renderer/assets/{flowDiagram-4HSFHLVR-Dd8IxxGC.js → flowDiagram-4HSFHLVR-DgdJYGTZ.js} +1 -1
  38. package/out/renderer/assets/{ganttDiagram-APWFNJXF-JScwUa8i.js → ganttDiagram-APWFNJXF-BVjTSdjH.js} +1 -1
  39. package/out/renderer/assets/{gitGraphDiagram-7IBYFJ6S-CniLBv5X.js → gitGraphDiagram-7IBYFJ6S-C8vZN_4k.js} +1 -1
  40. package/out/renderer/assets/{graph-DLIX7dfC.js → graph-CSB82Wjd.js} +1 -1
  41. package/out/renderer/assets/{hash-CfghQFJz.js → hash-CXletPCe.js} +1 -1
  42. package/out/renderer/assets/{heart-CbNuxwI-.js → heart-ChqhVcC1.js} +1 -1
  43. package/out/renderer/assets/{index-CH-k2xgZ.js → index-CJecPbzP.js} +211 -206
  44. package/out/renderer/assets/index-CTLf-QEl.css +1 -0
  45. package/out/renderer/assets/{index-A1hV3Zf6.js → index-CccvxpxI.js} +1 -1
  46. package/out/renderer/assets/{index-BIxwLxvA.js → index-CuuaNMEg.js} +1 -1
  47. package/out/renderer/assets/{index-BIOVGPUK.js → index-Il-cKDVk.js} +1 -1
  48. package/out/renderer/assets/infoDiagram-PH2N3AL5-BTctONIN.js +2 -0
  49. package/out/renderer/assets/{installer-qsxCAFP3.js → installer-DRgLGcFq.js} +1 -1
  50. package/out/renderer/assets/{journeyDiagram-U35MCT3I-9Mk8BYjc.js → journeyDiagram-U35MCT3I-9GtPf7zz.js} +1 -1
  51. package/out/renderer/assets/{kanban-definition-NDS4AKOZ-CJT2kV3V.js → kanban-definition-NDS4AKOZ-N4tsmcBW.js} +1 -1
  52. package/out/renderer/assets/{layout-HxyRPQFo.js → layout-UxHKWbiY.js} +1 -1
  53. package/out/renderer/assets/{legacy-agents-page-CP11tw2r.js → legacy-agents-page-0ZCLAr7P.js} +8 -8
  54. package/out/renderer/assets/{library-page-DCvoJ9B1.js → library-page-DQmGWxFa.js} +8 -8
  55. package/out/renderer/assets/{mermaid.core-JDDWxi_1.js → mermaid.core-DTB7E8bD.js} +5 -5
  56. package/out/renderer/assets/{mesh-page-Nt5c_UBP.js → mesh-page-DP4g7a0_.js} +1 -1
  57. package/out/renderer/assets/messages-L4id_Ryc.js +27 -0
  58. package/out/renderer/assets/{mindmap-definition-ALO5MXBD-EnBWrd7h.js → mindmap-definition-ALO5MXBD-BOs9kE5s.js} +1 -1
  59. package/out/renderer/assets/{mini-BYAAu7K2.js → mini-Dis9Zg2y.js} +1 -1
  60. package/out/renderer/assets/{notebook-pen-C8ZCuuoa.js → notebook-pen-C97D4Lb8.js} +1 -1
  61. package/out/renderer/assets/{notifications-page-Bs0KizWL.js → notifications-page-ZpHMSLuT.js} +1 -1
  62. package/out/renderer/assets/{org-access-Bui0nch2.js → org-access-C8SmcBoM.js} +1 -1
  63. package/out/renderer/assets/{org-surface-gate-CfqBVm1m.js → org-surface-gate-P5Ccl5Db.js} +1 -1
  64. package/out/renderer/assets/{page-header-ieQr-cSr.js → page-header-Dozu6EMr.js} +1 -1
  65. package/out/renderer/assets/{path-utils-Cpj2hmLX.js → path-utils-iOrDaMni.js} +33 -33
  66. package/out/renderer/assets/{pieDiagram-IB7DONF6-DYDYBgsV.js → pieDiagram-IB7DONF6-Dp4lOC8w.js} +1 -1
  67. package/out/renderer/assets/{project-markdown-BG7r7Py7.js → project-markdown-4piBJLBp.js} +1 -1
  68. package/out/renderer/assets/{projects-page-Cw7uMv2F.js → projects-page-BNrrxQKd.js} +5 -5
  69. package/out/renderer/assets/{publication-validation-Bop1t9Rh.js → publication-validation-fzv0GPNg.js} +1 -1
  70. package/out/renderer/assets/{quadrantDiagram-7GDLP6J5-CoLcq4Bm.js → quadrantDiagram-7GDLP6J5-DHSWrmWe.js} +1 -1
  71. package/out/renderer/assets/{radar-MK3ICKWK-Dva6bZY9.js → radar-MK3ICKWK-C3Sk-j7T.js} +1 -1
  72. package/out/renderer/assets/{radient-auth-buttons-BwliPxWF.js → radient-auth-buttons-DR-PzmA2.js} +1 -1
  73. package/out/renderer/assets/{requirementDiagram-KVF5MWMF-BAYToXyc.js → requirementDiagram-KVF5MWMF-DWK-NTdV.js} +1 -1
  74. package/out/renderer/assets/{sankeyDiagram-QLVOVGJD-DSNfEfFy.js → sankeyDiagram-QLVOVGJD-CHF12Qn9.js} +1 -1
  75. package/out/renderer/assets/{schedules-page-DCGkJc3y.js → schedules-page-Cejq3oxe.js} +1 -1
  76. package/out/renderer/assets/{sequenceDiagram-X6HHIX6F-CQ-BX5x7.js → sequenceDiagram-X6HHIX6F-gzXAv6CR.js} +1 -1
  77. package/out/renderer/assets/{settings-page-CHq-2h3E.js → settings-page-C2wIopns.js} +6 -6
  78. package/out/renderer/assets/{smartart-D7OeUYx2.js → smartart-DyN93A-y.js} +1 -1
  79. package/out/renderer/assets/{stateDiagram-DGXRK772-C1MDmeSB.js → stateDiagram-DGXRK772-CLXAEwra.js} +1 -1
  80. package/out/renderer/assets/stateDiagram-v2-YXO3MK2T-Di8DZG5E.js +1 -0
  81. package/out/renderer/assets/team-bridge-page-CEu3-avn.js +16 -0
  82. package/out/renderer/assets/{timeline-definition-BDJGKUSR-80bVHpbY.js → timeline-definition-BDJGKUSR-DwtUlWh4.js} +1 -1
  83. package/out/renderer/assets/{use-default-on-banner-BVJsVIHY.js → use-default-on-banner-B_1V5kjv.js} +1 -1
  84. package/out/renderer/assets/use-download-agent-mutation-CALWx-Q2.js +56 -0
  85. package/out/renderer/assets/{use-session-snapshot-DVBRW4Uy.js → use-session-snapshot-vIClawM8.js} +1 -1
  86. package/out/renderer/assets/{xychartDiagram-VJFVF3MP-BpWfZyAr.js → xychartDiagram-VJFVF3MP-DAZMV-19.js} +1 -1
  87. package/out/renderer/browser-address-overlay-list.html +2 -2
  88. package/out/renderer/browser-approvals-overlay.html +2 -2
  89. package/out/renderer/console-capture.html +6 -6
  90. package/out/renderer/index.html +8 -8
  91. package/out/renderer/installer.html +5 -5
  92. package/out/renderer/mini.html +8 -8
  93. package/package.json +2 -2
  94. package/out/renderer/assets/addressOverlayList-SGt8bawf.js +0 -1
  95. package/out/renderer/assets/agent-details-page-HD9ux8Ah.js +0 -6
  96. package/out/renderer/assets/agent-hub-page-Dzr7pO0y.js +0 -6
  97. package/out/renderer/assets/agents-page-l7a_qK5a.js +0 -14
  98. package/out/renderer/assets/approvalsOverlay-4fcnnxqV.js +0 -1
  99. package/out/renderer/assets/browser-page-4sDvzTWx.js +0 -1
  100. package/out/renderer/assets/channel-B1PQ42_m.js +0 -1
  101. package/out/renderer/assets/classDiagram-GIVACNV2-D6nDNM9M.js +0 -1
  102. package/out/renderer/assets/classDiagram-v2-COTLJTTW-D6nDNM9M.js +0 -1
  103. package/out/renderer/assets/clone-CP1xdDT6.js +0 -1
  104. package/out/renderer/assets/index-iwMVQVee.css +0 -1
  105. package/out/renderer/assets/infoDiagram-PH2N3AL5-BdAARVKc.js +0 -2
  106. package/out/renderer/assets/messages-BaR4LA7j.js +0 -27
  107. package/out/renderer/assets/stateDiagram-v2-YXO3MK2T-D88m2aTt.js +0 -1
  108. package/out/renderer/assets/team-bridge-page-DiTUSNgx.js +0 -21
  109. package/out/renderer/assets/use-download-agent-mutation-CZ6tp236.js +0 -56
@@ -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-JDDWxi_1.js";import{d as nt}from"./arc-BjEpYkt3.js";import"./conversation-input-sync-wILdIPP1.js";import"./index-A1hV3Zf6.js";import"./messages-BaR4LA7j.js";import"./path-utils-Cpj2hmLX.js";import"./error-boundary-BwM9HB5p.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)+`:
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-DTB7E8bD.js";import{d as nt}from"./arc-BXfBwNqW.js";import"./conversation-input-sync-B43QzK-n.js";import"./index-CccvxpxI.js";import"./messages-L4id_Ryc.js";import"./path-utils-iOrDaMni.js";import"./error-boundary-Ddujf9jK.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()+`
@@ -1 +1 @@
1
- import{r as d,j as e,c as p}from"./index-A1hV3Zf6.js";import{N as v,u as j,a as y}from"./index-CH-k2xgZ.js";import{u as _,A as w,a as M,B as h,X as k}from"./error-boundary-BwM9HB5p.js";import{t as s}from"./messages-BaR4LA7j.js";import{f as O}from"./path-utils-Cpj2hmLX.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
+ import{r as d,j as e,c as p}from"./index-CccvxpxI.js";import{N as v,u as j,a as y}from"./index-CJecPbzP.js";import{u as _,A as w,a as M,B as h,X as k}from"./error-boundary-Ddujf9jK.js";import{t as s}from"./messages-L4id_Ryc.js";import{f as O}from"./path-utils-iOrDaMni.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};
@@ -0,0 +1,56 @@
1
+ import{j as c,c as p,r as $}from"./index-CccvxpxI.js";import{c as d,u as T,j as Q}from"./error-boundary-Ddujf9jK.js";import{t as i}from"./messages-L4id_Ryc.js";import{c5 as E,c2 as K,c6 as B,b9 as M,ba as A,aZ as S,bK as V,a7 as N,bL as P}from"./conversation-input-sync-B43QzK-n.js";import{b7 as Y,b8 as Z,b9 as G,ba as W,bb as X,bc as J,bd as ee,be as H}from"./index-CJecPbzP.js";import{B as te}from"./book-open-KA0S3bsq.js";import{t as C,n as ae,a as D,g as ne,e as w,h as v,i as q,j as I,f as L}from"./en-US-CW_dDnkH.js";import{i as se,u as _,B as oe,q as ie}from"./path-utils-iOrDaMni.js";import{b as re,l as ce}from"./publication-validation-fzv0GPNg.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 ue=[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]],le=d("briefcase",ue);/**
7
+ * @license lucide-react v0.507.0 - ISC
8
+ *
9
+ * This source code is licensed under the ISC license.
10
+ * See the LICENSE file in the root directory of this source tree.
11
+ */const de=[["line",{x1:"18",x2:"18",y1:"20",y2:"10",key:"1xfpm4"}],["line",{x1:"12",x2:"12",y1:"20",y2:"4",key:"be30l9"}],["line",{x1:"6",x2:"6",y1:"20",y2:"14",key:"1r4le6"}]],he=d("chart-no-axes-column",de);/**
12
+ * @license lucide-react v0.507.0 - ISC
13
+ *
14
+ * This source code is licensed under the ISC license.
15
+ * See the LICENSE file in the root directory of this source tree.
16
+ */const me=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]],ge=d("clipboard-list",me);/**
17
+ * @license lucide-react v0.507.0 - ISC
18
+ *
19
+ * This source code is licensed under the ISC license.
20
+ * See the LICENSE file in the root directory of this source tree.
21
+ */const ye=[["path",{d:"M21.54 15H17a2 2 0 0 0-2 2v4.54",key:"1djwo0"}],["path",{d:"M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17",key:"1tzkfa"}],["path",{d:"M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05",key:"14pb5j"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],fe=d("earth",ye);/**
22
+ * @license lucide-react v0.507.0 - ISC
23
+ *
24
+ * This source code is licensed under the ISC license.
25
+ * See the LICENSE file in the root directory of this source tree.
26
+ */const pe=[["path",{d:"M12 17h.01",key:"p32p05"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",key:"1mlx9k"}],["path",{d:"M9.1 9a3 3 0 0 1 5.82 1c0 2-3 3-3 3",key:"mhlwft"}]],xe=d("file-question",pe);/**
27
+ * @license lucide-react v0.507.0 - ISC
28
+ *
29
+ * This source code is licensed under the ISC license.
30
+ * See the LICENSE file in the root directory of this source tree.
31
+ */const be=[["path",{d:"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2",key:"18mbvz"}],["path",{d:"M6.453 15h11.094",key:"3shlmq"}],["path",{d:"M8.5 2h7",key:"csnxdl"}]],ke=d("flask-conical",be);/**
32
+ * @license lucide-react v0.507.0 - ISC
33
+ *
34
+ * This source code is licensed under the ISC license.
35
+ * See the LICENSE file in the root directory of this source tree.
36
+ */const we=[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]],Me=d("graduation-cap",we);/**
37
+ * @license lucide-react v0.507.0 - ISC
38
+ *
39
+ * This source code is licensed under the ISC license.
40
+ * See the LICENSE file in the root directory of this source tree.
41
+ */const Ae=[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}],["path",{d:"M3.22 12H9.5l.5-1 2 4.5 2-7 1.5 3.5h5.27",key:"1uw2ng"}]],_e=d("heart-pulse",Ae);/**
42
+ * @license lucide-react v0.507.0 - ISC
43
+ *
44
+ * This source code is licensed under the ISC license.
45
+ * See the LICENSE file in the root directory of this source tree.
46
+ */const je=[["path",{d:"m3 11 18-5v12L3 14v-3z",key:"n962bs"}],["path",{d:"M11.6 16.8a3 3 0 1 1-5.8-1.6",key:"1yl0tm"}]],ze=d("megaphone",je);/**
47
+ * @license lucide-react v0.507.0 - ISC
48
+ *
49
+ * This source code is licensed under the ISC license.
50
+ * See the LICENSE file in the root directory of this source tree.
51
+ */const Se=[["path",{d:"m16 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"7g6ntu"}],["path",{d:"m2 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"ijws7r"}],["path",{d:"M7 21h10",key:"1b0cd5"}],["path",{d:"M12 3v18",key:"108xh3"}],["path",{d:"M3 7h2c2 0 5-1 7-2 2 1 5 2 7 2h2",key:"3gwbw2"}]],Ne=d("scale",Se);/**
52
+ * @license lucide-react v0.507.0 - ISC
53
+ *
54
+ * This source code is licensed under the ISC license.
55
+ * See the LICENSE file in the root directory of this source tree.
56
+ */const Ce=[["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"}]],De=d("shopping-cart",Ce);function ve(e,a){const o=+C(e)-+C(a);return o<0?-1:o>0?1:o}function qe(e){return a=>{const t=(e?Math[e]:Math.trunc)(a);return t===0?0:t}}function Ie(e,a,o){const t=ne(),n=o?.locale??t.locale??w,s=ve(e,a);if(isNaN(s))throw new RangeError("Invalid time value");const r=Object.assign({},o,{addSuffix:o?.addSuffix,comparison:s}),[m,g]=ae(o?.in,...s>0?[a,e]:[e,a]),h=qe(o?.roundingMethod??"round"),b=g.getTime()-m.getTime(),y=b/L,U=D(g)-D(m),f=(b-U)/L,k=o?.unit;let u;if(k?u=k:y<1?u="second":y<60?u="minute":y<v?u="hour":f<q?u="day":f<I?u="month":u="year",u==="second"){const l=h(b/1e3);return n.formatDistance("xSeconds",l,r)}else if(u==="minute"){const l=h(y);return n.formatDistance("xMinutes",l,r)}else if(u==="hour"){const l=h(y/60);return n.formatDistance("xHours",l,r)}else if(u==="day"){const l=h(f/v);return n.formatDistance("xDays",l,r)}else if(u==="month"){const l=h(f/q);return l===12&&k!=="month"?n.formatDistance("xYears",1,r):n.formatDistance("xMonths",l,r)}else{const l=h(f/I);return n.formatDistance("xYears",l,r)}}const Le={investment:{icon:c.jsx(le,{size:14,"aria-hidden":"true"}),get label(){return i("ui.hub.taxonomy.category.investment")}},accounting:{icon:c.jsx(te,{size:14,"aria-hidden":"true"}),get label(){return i("ui.hub.taxonomy.category.accounting")}},healthcare:{icon:c.jsx(_e,{size:14,"aria-hidden":"true"}),get label(){return i("ui.hub.taxonomy.category.healthcare")}},legal:{icon:c.jsx(Ne,{size:14,"aria-hidden":"true"}),get label(){return i("ui.hub.taxonomy.category.legal")}},software:{icon:c.jsx(B,{size:14,"aria-hidden":"true"}),get label(){return i("ui.hub.taxonomy.category.software")}},security:{icon:c.jsx(Z,{size:14,"aria-hidden":"true"}),get label(){return i("ui.hub.taxonomy.category.security")}},role_play:{icon:c.jsx(K,{size:14,"aria-hidden":"true"}),get label(){return i("ui.hub.taxonomy.category.role_play")}},personal_assistance:{icon:c.jsx(Y,{size:14,"aria-hidden":"true"}),get label(){return i("ui.hub.taxonomy.category.personal_assistance")}},education:{icon:c.jsx(Me,{size:14,"aria-hidden":"true"}),get label(){return i("ui.hub.taxonomy.category.education")}},marketing:{icon:c.jsx(ze,{size:14,"aria-hidden":"true"}),get label(){return i("ui.hub.taxonomy.category.marketing")}},sales:{icon:c.jsx(De,{size:14,"aria-hidden":"true"}),get label(){return i("ui.hub.taxonomy.category.sales")}},research:{icon:c.jsx(ke,{size:14,"aria-hidden":"true"}),get label(){return i("ui.hub.taxonomy.category.research")}},analysis:{icon:c.jsx(he,{size:14,"aria-hidden":"true"}),get label(){return i("ui.hub.taxonomy.category.analysis")}},management:{icon:c.jsx(ge,{size:14,"aria-hidden":"true"}),get label(){return i("ui.hub.taxonomy.category.management")}},social_media:{icon:c.jsx(fe,{size:14,"aria-hidden":"true"}),get label(){return i("ui.hub.taxonomy.category.social_media")}},other:{icon:c.jsx(xe,{size:14,"aria-hidden":"true"}),get label(){return i("ui.hub.taxonomy.category.other")}}};function x(e){const a=e.split("_").join(" ");return a.charAt(0).toUpperCase()+a.slice(1)}const Oe=e=>Le[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",Ze=({tags:e,categories:a,className:o})=>{if(T(),(!e||e.length===0)&&(!a||a.length===0))return null;const t=new Set((a??[]).map(s=>x(s).toLowerCase())),n=(e??[]).filter(s=>!t.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:[a?.map(s=>{const r=Oe(s);return c.jsxs("span",{className:p(O,"gap-1 font-medium text-ink-muted"),children:[r.icon,r.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 Ge(e,a=Date.now()){return Ie(e,a,{locale:{...w,formatDistance(o,t,n){switch(o){case"xSeconds":return i("ui.hub.comments.age.seconds",{count:t});case"xMinutes":return i("ui.hub.comments.age.minutes",{count:t});case"xHours":return i("ui.hub.comments.age.hours",{count:t});case"xDays":return i("ui.hub.comments.age.days",{count:t});case"xMonths":return i("ui.hub.comments.age.months",{count:t});case"xYears":return i("ui.hub.comments.age.years",{count:t});default:return i("ui.hub.comments.age.fallback",{duration:w.formatDistance(o,t,n)})}}}})}const We=({orgName:e,className:a})=>(T(),c.jsxs(Q,{variant:"neutral",className:p("gap-1",a),"data-testid":"agent-org-badge",title:e?i("ui.hub.taxonomy.origin.named",{name:e}):i("ui.hub.taxonomy.origin.unnamed"),children:[c.jsx(K,{"aria-hidden":"true"}),e??i("ui.hub.taxonomy.origin.organization")]})),Te=new Set(["qa","ai","api","tui","ux","ui"]),R=/[._-]+/,Xe=e=>e.toLowerCase().replace(R," "),Ee=e=>e.split(R).filter(Boolean).map(a=>Te.has(a.toLowerCase())?a.toUpperCase():a.charAt(0).toUpperCase()+a.slice(1)).join(" "),Je=e=>Ee(e),j={all:["agent-statuses"],page:e=>[...j.all,"page",[...e]]},Ke=e=>[...new Set(e)].sort(),et=({agentIds:e,enabled:a=!0})=>{const{isAuthenticated:o}=M(),t=e.join(","),n=$.useMemo(()=>Ke(e),[t]),s=se({queryKey:j.page(n),queryFn:async()=>(await G(n)).result?.statuses??{},enabled:a&&o&&n.length>0,staleTime:5*60*1e3,gcTime:10*60*1e3,refetchOnWindowFocus:!1,retry:!1});return{...s,statuses:s.data??{},isKnown:s.isSuccess}},tt=(e,a,o)=>o?e&&a[o]!==void 0:!1,F=(e,a,o)=>{e.setQueriesData({queryKey:j.all},t=>{if(!t)return t;const n=t[a]??{liked:!1,favourited:!1};return{...t,[a]:{...n,...o}}})},z=(e,{agentId:a,field:o,delta:t})=>{e.setQueriesData({queryKey:re.all},n=>{if(!n)return n;const s=n.result?.records??[];return s.some(r=>r.id===a)?{...n,result:{...n.result,records:s.map(r=>r.id===a?{...r,[o]:Math.max(0,(r[o]??0)+t)}:r)}}:n})},at=()=>{const e=_(),{isAuthenticated:a}=M();return A({mutationFn:async({agentId:t,isCurrentlyFavourited:n})=>{if(!a)throw new Error("Authentication required to favourite/unfavourite an agent.");if(!t)throw new Error("Agent ID is required.");return n?(await W(t),{favourited:!1,changed:!0}):{favourited:!0,changed:(await X(t)).result?.already_favourited!==!0}},onSuccess:({favourited:t,changed:n},s)=>{F(e,s.agentId,{favourited:t}),n&&z(e,{agentId:s.agentId,field:"favourite_count",delta:t?1:-1})}})},nt=()=>{const e=_(),{isAuthenticated:a}=M();return A({mutationFn:async({agentId:t,isCurrentlyLiked:n})=>{if(!a)throw new Error("Authentication required to like/unlike an agent.");if(!t)throw new Error("Agent ID is required.");return n?(await J(t),{liked:!1,changed:!0}):{liked:!0,changed:(await ee(t)).result?.already_liked!==!0}},onSuccess:({liked:t,changed:n},s)=>{F(e,s.agentId,{liked:t}),n&&z(e,{agentId:s.agentId,field:"like_count",delta:t?1:-1})}})},He=(e,a)=>{const o=[];for(const[,t]of e.getQueriesData({queryKey:H}))for(const n of t?.agents??[])n.id!==a&&o.push(n.name);return o},st=()=>{const e=_(),a=oe();return A({mutationFn:async({agentId:t})=>{if(!N.baseUrl)throw new Error("Local Operator API URL is not configured.");return P.downloadAgentFromRadient(N.baseUrl,t)},onSuccess:(t,n)=>{const s=t.result,r=s?.name?.trim()||n.agentName?.trim()||"Agent",m=s?.renamed_from?.trim()||null,g=s?.id?ce(r,He(e,s.id)):null;m?S(i("ui.notices.hub.downloaded_renamed",{name:r,existing:m})):g?V(i("ui.notices.hub.downloaded_collision",{name:r,existing:g})):S(i("ui.notices.hub.downloaded",{name:r})),e.invalidateQueries({queryKey:H}),z(e,{agentId:n.agentId,field:"download_count",delta:1}),t.result?.id?(ie.getState().stageDraft({kind:"agent",name:r}),a("/chat")):console.warn("Downloaded agent ID not found in response, cannot navigate to chat.")}})};export{Ze as A,Le as C,We as O,nt as a,at as b,Ge as c,st as d,Oe as e,Ie as f,Je as h,tt as i,Xe as n,et as u};
@@ -1 +1 @@
1
- import{d as c}from"./path-utils-Cpj2hmLX.js";import{r as n}from"./index-A1hV3Zf6.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
+ import{d as c}from"./path-utils-iOrDaMni.js";import{r as n}from"./index-CccvxpxI.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-JDDWxi_1.js";import{o as kt,n as Tt,q as Rt}from"./conversation-input-sync-wILdIPP1.js";import"./index-A1hV3Zf6.js";import"./messages-BaR4LA7j.js";import"./path-utils-Cpj2hmLX.js";import"./error-boundary-BwM9HB5p.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)+`:
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-DTB7E8bD.js";import{o as kt,n as Tt,q as Rt}from"./conversation-input-sync-B43QzK-n.js";import"./index-CccvxpxI.js";import"./messages-L4id_Ryc.js";import"./path-utils-iOrDaMni.js";import"./error-boundary-Ddujf9jK.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()+`
@@ -20,8 +20,8 @@
20
20
  http-equiv="Content-Security-Policy"
21
21
  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'"
22
22
  />
23
- <script type="module" crossorigin src="./assets/addressOverlayList-SGt8bawf.js"></script>
24
- <link rel="stylesheet" crossorigin href="./assets/addressOverlayList-B7X6o95l.css">
23
+ <script type="module" crossorigin src="./assets/addressOverlayList-AR8aOeNw.js"></script>
24
+ <link rel="stylesheet" crossorigin href="./assets/addressOverlayList-Csi0NFuY.css">
25
25
  </head>
26
26
  <body>
27
27
  <div id="address-list-root" aria-hidden="true">
@@ -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-4fcnnxqV.js"></script>
25
- <link rel="modulepreload" crossorigin href="./assets/messages-BaR4LA7j.js">
24
+ <script type="module" crossorigin src="./assets/approvalsOverlay-DCoEhZQ9.js"></script>
25
+ <link rel="modulepreload" crossorigin href="./assets/messages-L4id_Ryc.js">
26
26
  <link rel="stylesheet" crossorigin href="./assets/approvalsOverlay-BgfK3IlB.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-D06Kq6KP.js"></script>
10
- <link rel="modulepreload" crossorigin href="./assets/messages-BaR4LA7j.js">
11
- <link rel="modulepreload" crossorigin href="./assets/index-A1hV3Zf6.js">
12
- <link rel="modulepreload" crossorigin href="./assets/path-utils-Cpj2hmLX.js">
13
- <link rel="modulepreload" crossorigin href="./assets/console-mirror-DLnj_s8B.js">
14
- <link rel="stylesheet" crossorigin href="./assets/index-iwMVQVee.css">
9
+ <script type="module" crossorigin src="./assets/consoleCapture-B26psDi1.js"></script>
10
+ <link rel="modulepreload" crossorigin href="./assets/messages-L4id_Ryc.js">
11
+ <link rel="modulepreload" crossorigin href="./assets/index-CccvxpxI.js">
12
+ <link rel="modulepreload" crossorigin href="./assets/path-utils-iOrDaMni.js">
13
+ <link rel="modulepreload" crossorigin href="./assets/console-mirror-BRY8oE4K.js">
14
+ <link rel="stylesheet" crossorigin href="./assets/index-CTLf-QEl.css">
15
15
  <link rel="stylesheet" crossorigin href="./assets/console-mirror-DOrYoP_4.css">
16
16
  </head>
17
17
 
@@ -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-CH-k2xgZ.js"></script>
45
- <link rel="modulepreload" crossorigin href="./assets/messages-BaR4LA7j.js">
46
- <link rel="modulepreload" crossorigin href="./assets/index-A1hV3Zf6.js">
47
- <link rel="modulepreload" crossorigin href="./assets/path-utils-Cpj2hmLX.js">
48
- <link rel="modulepreload" crossorigin href="./assets/error-boundary-BwM9HB5p.js">
49
- <link rel="modulepreload" crossorigin href="./assets/conversation-input-sync-wILdIPP1.js">
50
- <link rel="modulepreload" crossorigin href="./assets/console-mirror-DLnj_s8B.js">
51
- <link rel="stylesheet" crossorigin href="./assets/index-iwMVQVee.css">
44
+ <script type="module" crossorigin src="./assets/index-CJecPbzP.js"></script>
45
+ <link rel="modulepreload" crossorigin href="./assets/messages-L4id_Ryc.js">
46
+ <link rel="modulepreload" crossorigin href="./assets/index-CccvxpxI.js">
47
+ <link rel="modulepreload" crossorigin href="./assets/path-utils-iOrDaMni.js">
48
+ <link rel="modulepreload" crossorigin href="./assets/error-boundary-Ddujf9jK.js">
49
+ <link rel="modulepreload" crossorigin href="./assets/conversation-input-sync-B43QzK-n.js">
50
+ <link rel="modulepreload" crossorigin href="./assets/console-mirror-BRY8oE4K.js">
51
+ <link rel="stylesheet" crossorigin href="./assets/index-CTLf-QEl.css">
52
52
  <link rel="stylesheet" crossorigin href="./assets/conversation-input-sync-Dp97JwKx.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-qsxCAFP3.js"></script>
12
- <link rel="modulepreload" crossorigin href="./assets/messages-BaR4LA7j.js">
13
- <link rel="modulepreload" crossorigin href="./assets/index-A1hV3Zf6.js">
14
- <link rel="modulepreload" crossorigin href="./assets/error-boundary-BwM9HB5p.js">
15
- <link rel="stylesheet" crossorigin href="./assets/index-iwMVQVee.css">
11
+ <script type="module" crossorigin src="./assets/installer-DRgLGcFq.js"></script>
12
+ <link rel="modulepreload" crossorigin href="./assets/messages-L4id_Ryc.js">
13
+ <link rel="modulepreload" crossorigin href="./assets/index-CccvxpxI.js">
14
+ <link rel="modulepreload" crossorigin href="./assets/error-boundary-Ddujf9jK.js">
15
+ <link rel="stylesheet" crossorigin href="./assets/index-CTLf-QEl.css">
16
16
  </head>
17
17
 
18
18
  <body>
@@ -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-BYAAu7K2.js"></script>
10
- <link rel="modulepreload" crossorigin href="./assets/messages-BaR4LA7j.js">
11
- <link rel="modulepreload" crossorigin href="./assets/index-A1hV3Zf6.js">
12
- <link rel="modulepreload" crossorigin href="./assets/error-boundary-BwM9HB5p.js">
13
- <link rel="modulepreload" crossorigin href="./assets/path-utils-Cpj2hmLX.js">
14
- <link rel="modulepreload" crossorigin href="./assets/conversation-input-sync-wILdIPP1.js">
15
- <link rel="modulepreload" crossorigin href="./assets/use-session-snapshot-DVBRW4Uy.js">
16
- <link rel="stylesheet" crossorigin href="./assets/index-iwMVQVee.css">
9
+ <script type="module" crossorigin src="./assets/mini-Dis9Zg2y.js"></script>
10
+ <link rel="modulepreload" crossorigin href="./assets/messages-L4id_Ryc.js">
11
+ <link rel="modulepreload" crossorigin href="./assets/index-CccvxpxI.js">
12
+ <link rel="modulepreload" crossorigin href="./assets/error-boundary-Ddujf9jK.js">
13
+ <link rel="modulepreload" crossorigin href="./assets/path-utils-iOrDaMni.js">
14
+ <link rel="modulepreload" crossorigin href="./assets/conversation-input-sync-B43QzK-n.js">
15
+ <link rel="modulepreload" crossorigin href="./assets/use-session-snapshot-vIClawM8.js">
16
+ <link rel="stylesheet" crossorigin href="./assets/index-CTLf-QEl.css">
17
17
  <link rel="stylesheet" crossorigin href="./assets/conversation-input-sync-Dp97JwKx.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.46.0",
3
+ "version": "0.46.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-card-document.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-approvals-route.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-actions-menu.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-guidance.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-wave-b-keyed-copy.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-model.test.mjs scripts/notifications-off.test.mjs scripts/notifications-operations.test.mjs scripts/notifications-page-pill.test.mjs scripts/notifications-reel-observer.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-attention-badge.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-archive-container.test.mjs scripts/team-bridge-archive.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-invitations.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-row-layout-pin.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 scripts/i18n/catalogue-locale.test.mjs scripts/i18n/device-tag-activation.test.mjs scripts/language-dialog-applies-on-pick.test.mjs scripts/i18n/chat-header-sidebar-copy.test.mjs scripts/user-attachments.test.mjs scripts/user-attachments-render.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/application-menu-labels.test.mjs scripts/approval-escape.test.mjs scripts/approvals-card-document.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-approvals-route.test.mjs scripts/browser-challenge-proof-passkey-servers.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-actions-menu.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-guidance.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-wave-b-keyed-copy.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/config-kind-word.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-model.test.mjs scripts/notifications-off.test.mjs scripts/notifications-operations.test.mjs scripts/notifications-page-pill.test.mjs scripts/notifications-reel-observer.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/passkey-notice.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-attention-badge.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-archive-container.test.mjs scripts/team-bridge-archive.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-invitations.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-row-layout-pin.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-panel-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 scripts/i18n/catalogue-locale.test.mjs scripts/i18n/device-tag-activation.test.mjs scripts/language-dialog-applies-on-pick.test.mjs scripts/i18n/chat-header-sidebar-copy.test.mjs scripts/agents-remaining-literals.test.mjs scripts/user-attachments.test.mjs scripts/user-attachments-render.test.mjs scripts/browser-address-overlay-list-child.test.mjs scripts/storybook-cache-prune.test.mjs scripts/with-storybook.test.mjs scripts/hub-check-now-body.test.mjs scripts/hub-incoming-review.test.mjs scripts/hub-incoming-preview.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 +0,0 @@
1
- const p=[["elevated","--lo-elevated"],["ink","--lo-ink"],["inkMuted","--lo-ink-muted"],["accent","--lo-accent"],["accentWash","--lo-accent-wash"],["rowHover","--lo-row-hover"],["hairline","--lo-hairline"],["control","--lo-control"]],d=document.getElementById("address-list-root"),w=document.getElementById("address-list-header"),m=document.getElementById("address-list-label"),a=document.getElementById("address-list-viewport"),l=document.getElementById("address-list-rows"),r=document.getElementById("address-list-notice");let u=0;function h(t){const e=t.getBoundingClientRect();return{top:e.top,height:e.height}}function g(){const t=Array.from(l.children),e=l.querySelector(".is-active");return{appliedSeq:u,rowCount:t.length,headerHeight:w.getBoundingClientRect().height,rowRects:t.map(n=>{const i=h(n),o=a.getBoundingClientRect();return{top:i.top-o.top,height:i.height}}),viewportHeight:a.getBoundingClientRect().height,scrollHeight:a.scrollHeight,innerHeight:window.innerHeight,visualHeight:window.visualViewport?.height??null,activeRowRect:e?(()=>{const n=h(e),i=a.getBoundingClientRect();return{top:n.top-i.top,height:n.height}})():null}}function v(t){u=t.seq,document.documentElement.dir=t.dir==="rtl"?"rtl":"ltr";for(const[e,n]of p){const i=t.theme[e];typeof i=="string"&&document.documentElement.style.setProperty(n,i)}if(m.textContent=t.label,typeof t.height=="number"&&t.height>0&&(d.style.height=`${t.height}px`),d.dataset.view=t.view.kind,t.view.kind==="rows"){const e=document.createDocumentFragment();t.view.rows.forEach((n,i)=>{const o=document.createElement("div");o.className="lo-row",o.dataset.index=String(i),i===t.active&&(o.classList.add("is-active"),o.dataset.active="true");const c=document.createElement("span");if(c.className="lo-row-text",c.dir="auto",c.textContent=n.text,o.append(c),n.title){const s=document.createElement("span");s.className="lo-row-title",s.dir="auto",s.textContent=n.title,o.append(s)}e.append(o)}),l.replaceChildren(e),r.textContent="",r.hidden=!0,r.dataset.kind=""}else l.replaceChildren(),r.hidden=!1,r.dataset.kind=t.view.notice,r.textContent=t.view.text;return g()}window.__loAddressOverlay={apply:v,measure:g};
@@ -1,6 +0,0 @@
1
- import{r as E,j as e,c as J}from"./index-A1hV3Zf6.js";import{i as xe,a as ge}from"./publication-validation-Bop1t9Rh.js";import{i as re,u as B,B as oe,A as fe,g as je}from"./path-utils-Cpj2hmLX.js";import{b9 as C,ba as O,W as Y,aZ as Q,bb as le,bc as be,bd as ee,V as pe,be as ye,bf as ve}from"./conversation-input-sync-wILdIPP1.js";import{c as we,u as Ne,L as Ce,T as te,B as l,S as K,r as ce,s as M,t as I,g as w,X as ke,v as N,A as se,a as ne,w as ae}from"./error-boundary-BwM9HB5p.js";import{c as Ae,h as De,u as Se,i as _e,a as Te,b as Ee,d as Fe,O as Pe,A as ze,f as ie}from"./use-download-agent-mutation-CZ6tp236.js";import{t as a}from"./messages-BaR4LA7j.js";import{i as qe,j as Le,k as Me,m as Ie,S as Ke,o as Be,p as Oe,q as Qe,s as Ue,A as Re,t as He,v as We}from"./index-CH-k2xgZ.js";import{H as Ve}from"./heart-CbNuxwI-.js";import"./en-US-CW_dDnkH.js";import"./book-open-1zGbkXts.js";import"./console-mirror-DLnj_s8B.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 Ye=[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]],Ze=we("message-circle",Ye),F={all:["agent-comments"],list:t=>[...F.all,"list",t]},$e=({agentId:t,enabled:o=!0})=>re({queryKey:F.list(t||"invalid"),queryFn:async()=>{if(!t)throw new Error("Agent ID is required to fetch comments.");return(await qe(t)).result},enabled:!!t&&o,staleTime:2*60*1e3,gcTime:5*60*1e3,refetchOnWindowFocus:!0}),Xe=()=>{const t=B(),{isAuthenticated:o}=C();return O({mutationFn:async n=>{const{agentId:r,data:s}=n;if(!o)throw new Error(a("ui.hub.comments.mutation.unauthorized"));return Le(r,s)},onSuccess:(n,r)=>{t.invalidateQueries({queryKey:F.list(r.agentId)}),Q(a("ui.hub.comments.mutation.posted"))},onError:n=>{Y(a("ui.hub.comments.mutation.post_failed",{reason:n.message}))}})},Ge=()=>{const t=B(),{isAuthenticated:o}=C();return O({mutationFn:async n=>{const{agentId:r,commentId:s,data:c}=n;if(!o)throw new Error(a("ui.hub.comments.mutation.unauthorized"));return Me(r,s,c)},onSuccess:(n,r)=>{t.invalidateQueries({queryKey:F.list(r.agentId)}),Q(a("ui.hub.comments.mutation.updated"))},onError:n=>{Y(a("ui.hub.comments.mutation.update_failed",{reason:n.message}))}})},Je=()=>{const t=B(),{isAuthenticated:o}=C();return O({mutationFn:async n=>{const{agentId:r,commentId:s}=n;if(!o)throw new Error(a("ui.hub.comments.mutation.unauthorized"));return Ie(r,s)},onSuccess:(n,r)=>{t.invalidateQueries({queryKey:F.list(r.agentId)}),Q(a("ui.hub.comments.mutation.deleted"))},onError:n=>{Y(a("ui.hub.comments.mutation.delete_failed",{reason:n.message}))}})},et=({agentId:t})=>{Ne();const{isAuthenticated:o,user:n}=C(),[r,s]=E.useState(""),[c,b]=E.useState(null),[x,k]=E.useState(""),{data:u,isLoading:p,error:A}=$e({agentId:t}),P=u?.records??[],g=Xe(),D=Ge(),U=Je(),S=async i=>{if(i.preventDefault(),!(!r.trim()||!o||!t))try{await g.mutateAsync({agentId:t,data:{text:r}}),s("")}catch(d){console.error("Submit comment error caught in component:",d)}},R=(i,d)=>{b(i),k(d)},m=()=>{b(null),k("")},y=async()=>{if(!(!c||!x.trim()||!o||!t))try{await D.mutateAsync({agentId:t,commentId:c,data:{text:x}}),m()}catch(i){console.error("Update comment error caught in component:",i)}},v=async i=>{if(!(!o||!t)&&window.confirm(a("ui.hub.comments.delete.confirm")))try{await U.mutateAsync({agentId:t,commentId:i})}catch(d){console.error("Delete comment error caught in component:",d)}},H=i=>o&&n?.radientUser?.account?.id===i.account_id;return e.jsxs("div",{className:"mt-6",children:[e.jsx("h2",{className:"mb-4 font-semibold text-heading text-ink",children:a("ui.hub.comments.heading")}),o?e.jsxs("div",{className:"mb-4 flex flex-col gap-1.5",children:[e.jsxs(Ce,{htmlFor:"new-comment",children:[e.jsx(Ze,{size:14,"aria-hidden":"true"}),a("ui.hub.comments.form.label")]}),e.jsxs("form",{onSubmit:S,className:"flex flex-col gap-3",children:[e.jsx(te,{id:"new-comment",placeholder:a("ui.hub.comments.form.placeholder"),rows:3,value:r,onChange:i=>s(i.target.value),required:!0}),e.jsx(l,{type:"submit",variant:"primary",disabled:g.isPending||!r.trim(),className:"self-end",children:g.isPending?e.jsx(K,{size:"sm",label:a("ui.hub.comments.form.posting")}):a("ui.hub.comments.form.submit")})]})]}):e.jsx("p",{className:"mt-6 mb-4 text-body-sm text-ink-muted",children:a("ui.hub.comments.form.sign_in")}),e.jsx(ce,{className:"my-6"}),p&&e.jsx("ul",{className:"flex flex-col",children:[...Array(3)].map((i,d)=>e.jsxs("li",{className:"flex gap-3 pb-6",children:[e.jsx(M,{children:e.jsx(I,{children:e.jsx(w,{className:"size-full"})})}),e.jsxs("div",{className:"flex w-full flex-col gap-1.5",children:[e.jsx(w,{className:"h-3.5 w-24"}),e.jsx(w,{className:"h-3 w-15"}),e.jsx(w,{className:"mt-2 h-3.5 w-full"}),e.jsx(w,{className:"h-3.5 w-4/5"})]})]},`skeleton-${d}`))}),A&&e.jsx("p",{role:"alert",className:"my-6 text-body-sm text-danger",children:a("ui.hub.comments.load_error",{reason:A.message})}),!p&&!A&&e.jsx("ul",{className:"flex flex-col gap-6",children:P.length===0?e.jsx("li",{className:"text-body-sm text-ink-muted",children:a("ui.hub.comments.empty")}):P.map(i=>c===i.id?e.jsxs("li",{className:"flex gap-3",children:[e.jsx(M,{children:e.jsx(I,{children:i.account_metadata?.name?.charAt(0).toUpperCase()||"?"})}),e.jsxs("div",{className:"flex w-full flex-col gap-2",children:[e.jsx(te,{rows:3,value:x,onChange:d=>k(d.target.value),autoFocus:!0,"aria-label":a("ui.hub.comments.edit.label")}),e.jsxs("div",{className:"flex justify-end gap-2",children:[e.jsxs(l,{variant:"secondary",size:"sm",onClick:m,children:[e.jsx(ke,{}),a("ui.hub.comments.edit.cancel")]}),e.jsxs(l,{variant:"primary",size:"sm",onClick:y,disabled:D.isPending||!x.trim(),children:[D.isPending?e.jsx(K,{size:"xs",label:a("ui.hub.comments.edit.saving")}):e.jsx(Ke,{}),a("ui.hub.comments.edit.save")]})]})]})]},i.id):e.jsxs("li",{className:"flex gap-3",children:[e.jsx(M,{children:e.jsx(I,{children:i.account_metadata?.name?.charAt(0).toUpperCase()||"?"})}),e.jsxs("div",{className:"w-full",children:[e.jsxs("div",{className:"flex w-full items-center justify-between",children:[e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-body text-ink",children:i.account_metadata?.name||a("ui.hub.comments.author.unknown")}),e.jsx("p",{className:"text-ink-muted text-meta",children:Ae(new Date(i.created_at))})]}),H(i)&&e.jsxs("div",{className:"flex gap-0.5",children:[e.jsx(N,{content:a("ui.hub.comments.edit.label"),children:e.jsx(l,{variant:"ghost",size:"icon-sm",onClick:()=>R(i.id,i.text),disabled:!!c,"aria-label":a("ui.hub.comments.edit.label"),children:e.jsx(Be,{})})}),e.jsx(N,{content:a("ui.hub.comments.delete.label"),children:e.jsx(l,{variant:"ghost",size:"icon-sm",onClick:()=>v(i.id),disabled:!!c,"aria-label":a("ui.hub.comments.delete.label"),children:e.jsx(le,{})})})]})]}),e.jsx("p",{className:"mt-2 text-body-sm text-ink whitespace-pre-wrap",children:i.text})]})]},i.id))})]})},Z={all:["agent-details"],detail:t=>[...Z.all,t]},tt=({agentId:t,enabled:o=!0})=>re({queryKey:Z.detail(t||"invalid"),queryFn:async()=>{if(!t)throw new Error("Agent ID is required to fetch details.");return await Oe(t)},select:r=>r.result,enabled:!!t&&o,staleTime:3e5,gcTime:6e5,refetchOnWindowFocus:!1}),st=()=>{const t=B(),o=oe(),{isAuthenticated:n}=C();return O({mutationFn:async({agentId:s})=>{if(!n)throw new Error("Authentication required to delist an agent.");if(!s)throw new Error("Agent ID is required to delist.");return Qe(s)},onSuccess:(s,c)=>{Q(a("ui.notices.hub.agent_delisted")),t.invalidateQueries({queryKey:Z.detail(c.agentId)}),xe(t),o("/agent-hub")},onError:s=>{console.error("Delist agent error:",s)}})},nt={like:"The like did not go through",favourite:"The favourite did not go through",download:"The download did not start",delist:"The agent was not delisted"},V=({children:t})=>e.jsx("span",{className:"inline-flex h-4 min-w-5 items-center text-meta text-ink-muted",children:t}),ft=()=>{const{agentId:t}=fe(),o=oe(),{isAuthenticated:n,user:r}=C(),{data:s,isLoading:c,isFetching:b,error:x,refetch:k}=tt({agentId:t??"",enabled:!!t}),u=s?.visibility==="org",p=s?De(s.name):"",{memberships:A}=Ue({enabled:u}),P=u?A.find(he=>he.tenant_id===s?.tenant_id)?.tenant_name??null:null,{statuses:g,isKnown:D,isError:U,isFetching:S,refetch:R}=Se({agentIds:t&&!u?[t]:[]}),m=_e(D,g,t),y=m&&g[t??""]?.liked===!0,v=m&&g[t??""]?.favourited===!0,H=s?.like_count??0,i=s?.favourite_count??0,d=s?.download_count??0,z=Te(),q=Ee(),_=Fe(),f=st(),[de,L]=E.useState(!1),[j,h]=E.useState(null),W=!!r&&!!s&&r.radientUser?.account?.id===s.account_id,$=()=>{!t||!n||z.isPending||(h(null),z.mutate({agentId:t,isCurrentlyLiked:y},{onError:()=>h("like")}))},X=()=>{!t||!n||q.isPending||(h(null),q.mutate({agentId:t,isCurrentlyFavourited:v},{onError:()=>h("favourite")}))},G=()=>{!t||!s||_.isPending||(h(null),_.mutate({agentId:s.id,agentName:s.name},{onError:()=>h("download")}))},ue=()=>{!t||!W||f.isPending||(h(null),f.mutate({agentId:t},{onError:()=>h("delist")}),L(!1))},T=j?j==="like"?{action:"like",error:z.error,retry:$}:j==="favourite"?{action:"favourite",error:q.error,retry:X}:j==="download"?{action:"download",error:_.error,retry:G}:{action:"delist",error:f.error,retry:void 0}:null,me=()=>{o("/agent-hub")};return c?e.jsx("div",{className:"flex h-full items-center justify-center",children:e.jsx(K,{label:"Loading agent details"})}):x?e.jsx("div",{className:"flex h-full items-center justify-center p-6",children:e.jsxs(se,{variant:"danger",className:"max-w-2xl",children:[e.jsx(ne,{children:"This agent could not be loaded"}),e.jsx(ae,{children:je("The Radient agent catalogue did not answer.",x)}),e.jsx("div",{className:"mt-2",children:e.jsx(l,{variant:"outline",size:"sm",onClick:()=>void k(),disabled:b,"aria-busy":b,children:b?"Trying…":"Try again"})})]})}):s?e.jsxs("div",{className:"m-6 flex flex-1 flex-col rounded-md bg-surface p-8",children:[e.jsxs("div",{className:"mb-6 flex items-center justify-between gap-4",children:[e.jsxs("div",{className:"flex min-w-0 items-center gap-4",children:[e.jsx(l,{variant:"ghost",size:"icon",onClick:me,"aria-label":"Back to Agent Hub",children:e.jsx(Re,{className:"rtl:-scale-x-100"})}),e.jsx(M,{className:"size-11 shrink-0",children:e.jsx(I,{children:e.jsx(He,{size:22,"aria-hidden":"true"})})}),e.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[e.jsx("h1",{className:"truncate text-display text-ink",children:p}),u&&e.jsx(Pe,{orgName:P})]})]}),e.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[!u&&e.jsxs(e.Fragment,{children:[e.jsx(N,{content:"Sign in to Radient to use this feature",disabled:n,children:e.jsx("span",{children:e.jsxs(l,{variant:"ghost",size:"sm",onClick:$,disabled:!n||z.isPending||!m,"aria-label":m?y?"Unlike agent":"Like agent":"Like state unavailable",className:J(y&&"text-danger"),children:[e.jsx(Ve,{fill:y?"currentColor":"none"}),e.jsx(V,{children:H})]})})}),e.jsx(N,{content:"Sign in to Radient to use this feature",disabled:n,children:e.jsx("span",{children:e.jsxs(l,{variant:"ghost",size:"sm",onClick:X,disabled:!n||q.isPending||!m,"aria-label":m?v?"Unfavourite agent":"Favourite agent":"Favourite state unavailable",className:J(v&&"text-warning"),children:[e.jsx(We,{fill:v?"currentColor":"none"}),e.jsx(V,{children:i})]})})})]}),e.jsx(N,{content:"Download agent to your computer",children:e.jsx("span",{children:e.jsxs(l,{variant:"ghost",size:"icon",onClick:G,disabled:_.isPending,"aria-label":"Download agent",className:"ml-1",children:[e.jsx(be,{}),e.jsx(V,{children:_.isPending?e.jsx(w,{className:"h-3.5 w-5"}):d})]})})}),W&&!u&&e.jsx(N,{content:"Permanently delist this agent from Agent Hub",children:e.jsx("span",{children:e.jsx(l,{variant:"ghost",size:"icon",onClick:()=>L(!0),disabled:f.isPending,"aria-label":"Delist agent",className:"ml-1 text-danger hover:bg-danger-wash hover:text-danger",children:e.jsx(le,{})})})})]})]}),n&&U&&!j&&!u&&e.jsxs("output",{className:"mb-6 flex flex-wrap items-center gap-2 text-meta text-warning","data-testid":"agent-details-status-unknown",children:[e.jsx("span",{children:"Your likes and favourites could not be read, so this agent's viewer state is not shown."}),e.jsx(l,{variant:"ghost",size:"sm",onClick:()=>void R(),disabled:S,"aria-busy":S,children:S?"Trying…":"Try again"})]}),T&&j&&e.jsxs(se,{variant:"danger",className:"mb-6","data-testid":"agent-details-error",children:[e.jsx(ne,{children:nt[j]}),e.jsx(ae,{children:ge(T.action,T.error,p)}),T.retry&&e.jsx("div",{className:"mt-2",children:e.jsx(l,{variant:"outline",size:"sm",onClick:T.retry,children:"Try again"})})]}),e.jsx(ze,{tags:s.tags,categories:s.categories}),e.jsxs("div",{className:"mt-4 mb-6 flex flex-col gap-2 text-body-sm text-ink-muted",children:[e.jsxs("p",{children:["Created by: ",s.account_metadata?.name??"Unknown",s.account_metadata?.email?` (${s.account_metadata.email})`:""]}),e.jsxs("p",{children:["Created: ",ie(new Date(s.created_at))," ago (",ee(s.created_at),")"]}),e.jsxs("p",{children:["Last modified: ",ie(new Date(s.updated_at))," ","ago (",ee(s.updated_at),")"]})]}),e.jsx("div",{className:"mt-2 mb-8 leading-relaxed text-body text-ink",children:s.description||"No description provided."}),e.jsx(ce,{className:"my-6"}),!u&&e.jsx(et,{agentId:s.id}),e.jsx(pe,{open:de,onClose:()=>L(!1),title:"Delist this agent?",maxWidth:"xs",actions:e.jsxs(e.Fragment,{children:[e.jsx(ye,{onClick:()=>L(!1),children:"Cancel"}),e.jsx(ve,{onClick:()=>{!t||!W||f.isPending||ue()},disabled:f.isPending,children:f.isPending?e.jsx(K,{size:"sm",label:"Delisting agent"}):"Delist"})]}),dialogProps:{"aria-describedby":"delist-dialog-description"},children:e.jsxs("div",{id:"delist-dialog-description",className:"text-body text-ink-muted",children:['This takes "',p,'" off the hub straight away, and nobody will be able to download it. You can upload it again later.']})})]}):e.jsx("div",{className:"flex h-full items-center justify-center",children:e.jsx("p",{className:"text-body text-ink",children:"Agent not found."})})};export{ft as AgentDetailsPage};