@aidotnet/server-win32-x64 0.9.8 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/bin/astra-server.exe +2 -2
  2. package/bin/wwwroot/assets/ClientsPage-yvH-Xced.js +9 -0
  3. package/bin/wwwroot/assets/KeyPage-BlWKpgZL.js +1 -0
  4. package/bin/wwwroot/assets/ModelDetailPage-c9aoi6S2.js +1 -0
  5. package/bin/wwwroot/assets/ModelsPage-DmcYCWJO.js +1 -0
  6. package/bin/wwwroot/assets/PluginsPage-BgfNvPdm.js +2 -0
  7. package/bin/wwwroot/assets/PrivacyPage-iONsWjbl.js +1 -0
  8. package/bin/wwwroot/assets/ProviderDetailPage-CVj77bXz.js +3 -0
  9. package/bin/wwwroot/assets/ProvidersPage-DTvOdDd4.js +2 -0
  10. package/bin/wwwroot/assets/SettingsPage-ZDgOrQMV.js +2 -0
  11. package/bin/wwwroot/assets/TokenDetailPage-BJD5rGrZ.js +1 -0
  12. package/bin/wwwroot/assets/TokenPoolEditor-GOd8DN1-.js +1 -0
  13. package/bin/wwwroot/assets/TokensPage-DT0CVYpJ.js +1 -0
  14. package/bin/wwwroot/assets/{TracesPage-DAjYsF5k.js → TracesPage-Cj0c4GKq.js} +2 -2
  15. package/bin/wwwroot/assets/TrayPanelPage-Dthr37fq.js +1 -0
  16. package/bin/wwwroot/assets/{TrayPanelView-1autLKIz.js → TrayPanelView-7STMKSTt.js} +1 -1
  17. package/bin/wwwroot/assets/alert-KgpEotCZ.js +15 -0
  18. package/bin/wwwroot/assets/{arrow-down-DIo4Iybg.js → arrow-down-BwZ-daLS.js} +1 -1
  19. package/bin/wwwroot/assets/{arrow-left-B7DqBOxQ.js → arrow-left-B5IEi5Me.js} +1 -1
  20. package/bin/wwwroot/assets/{checkbox-CUAekJs1.js → checkbox-DLiNIUYi.js} +1 -1
  21. package/bin/wwwroot/assets/{cloud-download-COJstFl5.js → cloud-download-Bhe1ha3g.js} +1 -1
  22. package/bin/wwwroot/assets/confirm-morph-D3GPwStZ.js +1 -0
  23. package/bin/wwwroot/assets/{download-Dve63YDJ.js → download-DgvysAd-.js} +1 -1
  24. package/bin/wwwroot/assets/{ellipsis-SmvUEQlc.js → ellipsis-BKYXK9ZY.js} +1 -1
  25. package/bin/wwwroot/assets/{external-link-CQ8wJBOs.js → external-link-C7TfjMl0.js} +1 -1
  26. package/bin/wwwroot/assets/{folder-open-V0CK0D6f.js → folder-open-WM2YXOga.js} +1 -1
  27. package/bin/wwwroot/assets/index-CyQRla2Z.js +17 -0
  28. package/bin/wwwroot/assets/{index-DSgPt6Uk.css → index-mjtUIQz2.css} +1 -1
  29. package/bin/wwwroot/assets/{log-out-Dzmb45h2.js → log-out-D3DvCmEE.js} +1 -1
  30. package/bin/wwwroot/assets/minus-D-gPZ3Ij.js +1 -0
  31. package/bin/wwwroot/assets/overlays-bTwHP7bW.js +41 -0
  32. package/bin/wwwroot/assets/{pencil-5PpasSHz.js → pencil-DBvyHjr7.js} +1 -1
  33. package/bin/wwwroot/assets/{power-DoWuVvKE.js → power-cslNYTfi.js} +1 -1
  34. package/bin/wwwroot/assets/radio-cards--guPrK-j.js +1 -0
  35. package/bin/wwwroot/assets/{rotate-ccw-BJDy-Bx1.js → rotate-ccw-Do-zgFiV.js} +1 -1
  36. package/bin/wwwroot/assets/{sortable.esm-CY5jqvlZ.js → sortable.esm-hjj0-faq.js} +1 -1
  37. package/bin/wwwroot/index.html +4 -4
  38. package/package.json +1 -1
  39. package/bin/wwwroot/assets/ClientsPage-DwuCmaMA.js +0 -9
  40. package/bin/wwwroot/assets/KeyPage-D22G9exh.js +0 -1
  41. package/bin/wwwroot/assets/ModelDetailPage-CtEe3nDq.js +0 -1
  42. package/bin/wwwroot/assets/ModelsPage-BAJW8FPu.js +0 -1
  43. package/bin/wwwroot/assets/PluginsPage-9EMVrsea.js +0 -2
  44. package/bin/wwwroot/assets/PrivacyPage-g8ho6j8u.js +0 -1
  45. package/bin/wwwroot/assets/ProviderDetailPage-BLs7jq5a.js +0 -3
  46. package/bin/wwwroot/assets/ProvidersPage-DhSkTIdK.js +0 -2
  47. package/bin/wwwroot/assets/SettingsPage-BZez5aoM.js +0 -2
  48. package/bin/wwwroot/assets/TokenDetailPage-C_VGV38o.js +0 -1
  49. package/bin/wwwroot/assets/TokenPoolEditor-e5PfKzn0.js +0 -1
  50. package/bin/wwwroot/assets/TokensPage-TgWI6m95.js +0 -1
  51. package/bin/wwwroot/assets/TrayPanelPage-B0Y6_cPI.js +0 -1
  52. package/bin/wwwroot/assets/alert-CcrJvGnK.js +0 -15
  53. package/bin/wwwroot/assets/confirm-morph-BGnUHR1w.js +0 -1
  54. package/bin/wwwroot/assets/index-CgzwkyWy.js +0 -17
  55. package/bin/wwwroot/assets/minus-BQtIL8M8.js +0 -1
  56. package/bin/wwwroot/assets/overlays-BFWKSPFr.js +0 -41
  57. package/bin/wwwroot/assets/radio-cards-BtiPxnj8.js +0 -1
@@ -1 +0,0 @@
1
- import{Ai as e,Ca as t,E as n,Ea as r,Fi as i,Mi as a,Pi as o,Sa as s,ht as c,ji as l,ki as u}from"./alert-CcrJvGnK.js";import{z as ee}from"./index-CgzwkyWy.js";var d=r(t(),1),f={root:`_root_154xn_1`,surface:`_surface_154xn_31`,trigger:`_trigger_154xn_77`,face:`_face_154xn_81`,icon:`_icon_154xn_127`,prompt:`_prompt_154xn_135`,secondary:`_secondary_154xn_139`,primary:`_primary_154xn_141`,status:`_status_154xn_179`,statusText:`_statusText_154xn_189`,check:`_check_154xn_193`,checkDisc:`_checkDisc_154xn_195`,checkTick:`_checkTick_154xn_197`,spinner:`_spinner_154xn_199`,spin:`_spin_154xn_199`,srOnly:`_srOnly_154xn_205`},p=s(),m=12,{blur:h}=n,g=[...n.ease.enter],_=[...n.ease.standard],v=(e,t)=>{let n=2*Math.PI/(e*1.2);return{type:`spring`,stiffness:n*n,damping:2*(1-t)*n,mass:1}},te=v(.44,.18),y=v(.34,0),b=v(.36,.06),x=()=>()=>{};function ne(){let e=(0,d.useSyncExternalStore)(x,()=>!0,()=>!1);return!!l()&&e}var S={hidden:e=>({opacity:0,x:e*m,filter:`blur(${h.soft}px)`}),shown:{opacity:1,x:0,filter:`blur(0px)`,transition:{x:b,opacity:{duration:.2,ease:g,delay:.04},filter:{duration:.22,ease:g,delay:.04}}},gone:e=>({opacity:0,x:e*-12*.6,filter:`blur(${h.soft}px)`,transition:{x:b,opacity:{duration:.12,ease:_},filter:{duration:.12,ease:_}}})},C={hidden:{opacity:0},shown:{opacity:1,transition:{duration:.14}},gone:{opacity:0,transition:{duration:.1}}};function re({id:e,direction:t,reduced:n,onSize:r,children:a,labelledBy:o}){let s=(0,d.useRef)(null),c=i();return(0,d.useLayoutEffect)(()=>{let t=s.current;if(!t||!c)return;let n=()=>{let n=t.style.flex;t.style.flex=`none`;let i=t.offsetWidth;t.style.flex=n,r(e,i)};if(n(),typeof ResizeObserver>`u`)return;let i=new ResizeObserver(n);return i.observe(t),()=>i.disconnect()},[e,r,c]),(0,p.jsx)(u.div,{ref:s,className:f.face,"data-face":e,custom:t,role:o?`group`:void 0,"aria-labelledby":o,variants:n?C:S,initial:`hidden`,animate:`shown`,exit:`gone`,inert:!c||void 0,children:a})}function ie({reduced:e}){return(0,p.jsxs)(`svg`,{className:f.check,viewBox:`0 0 18 18`,fill:`none`,"aria-hidden":`true`,children:[(0,p.jsx)(u.circle,{className:f.checkDisc,cx:`9`,cy:`9`,r:`8`,style:{transformOrigin:`9px 9px`},initial:!e&&{scale:.4,opacity:0},animate:{scale:1,opacity:1},transition:{scale:v(.34,.3),opacity:{duration:.12}}}),(0,p.jsx)(u.path,{className:f.checkTick,d:`M5.6 9.3 7.8 11.4 12.4 6.7`,strokeWidth:`1.9`,strokeLinecap:`round`,strokeLinejoin:`round`,initial:!e&&{pathLength:0},animate:{pathLength:1},transition:{duration:.28,ease:g,delay:.12}})]})}function w({label:t,icon:n,prompt:r,confirmLabel:i=`Delete`,cancelLabel:s=`Cancel`,pendingLabel:l=`Deleting`,doneLabel:m=`Deleted`,errorLabel:h=`Couldn’t finish`,retryLabel:g=`Retry`,undoLabel:_=`Undo`,undoingLabel:v=`Restoring`,tone:b=`danger`,onConfirm:x,onUndo:S,onCancel:C,state:w,defaultState:ae=`idle`,onStateChange:T,confirmTimeout:oe=6e3,resultTimeout:se=5e3,cancelOnOutsidePress:E=!0,disabled:D=!1,className:ce,ref:le}){let O=ne(),k=`${(0,d.useId)()}-prompt`,A=(0,d.useRef)(null);(0,d.useImperativeHandle)(le,()=>A.current,[]);let[ue,de]=(0,d.useState)(ae),j=w??ue,[M,N]=(0,d.useState)(1),[P,F]=(0,d.useState)(`confirm`),[fe,I]=(0,d.useState)(``),L=(0,d.useRef)({state:j,onStateChange:T,controlled:w!==void 0});(0,d.useLayoutEffect)(()=>{L.current={state:j,onStateChange:T,controlled:w!==void 0}});let R=(0,d.useRef)(!1),z=(0,d.useRef)(0),B=(0,d.useCallback)(e=>{if(e===L.current.state)return;let t=A.current;R.current=!!t&&(t.contains(document.activeElement)||document.activeElement===document.body),N(e===`idle`?-1:1),L.current.controlled||de(e),L.current.state=e,L.current.onStateChange?.(e)},[]),V=(0,d.useCallback)(()=>{z.current++,B(`idle`)},[B]),H=(0,d.useCallback)(async e=>{let t=e===`confirm`?x:S,n=++z.current;F(e);let r;try{r=t?.()}catch{B(`error`),I(h);return}if(r&&typeof r.then==`function`){B(`pending`),I(e===`confirm`?l:v);try{await r}catch{if(n!==z.current)return;B(`error`),I(h);return}if(n!==z.current)return}if(e===`undo`){B(`idle`),I(`Undone`);return}B(`done`),I(S?`${m}. ${_} is available.`:m)},[m,h,B,x,S,l,_,v]),U=(0,d.useCallback)(()=>{C?.(),V(),I(`Cancelled`)},[C,V]),W=(0,d.useRef)(()=>{});(0,d.useLayoutEffect)(()=>{W.current=()=>{L.current.state===`confirming`?U():V()}});let G=a(`auto`),K=(0,d.useRef)(0),q=(0,d.useRef)(0),pe=(0,d.useCallback)((t,n)=>{if(t!==L.current.state||Math.abs(n-K.current)<.5)return;let r=K.current;if(K.current=n,!r||O){G.jump(`auto`);return}G.get()===`auto`&&G.jump(r);let i=++q.current;e(G,n,n>r?te:y).then(()=>{i===q.current&&G.jump(`auto`)})},[O,G]),J=a(1),Y=(0,d.useRef)(null),X=(0,d.useRef)({hover:!1,hidden:!1}),Z=j===`confirming`?oe:j===`done`||j===`error`?se:0,Q=(0,d.useCallback)(()=>{let e=Y.current;e&&(X.current.hover||X.current.hidden?e.pause():e.play())},[]);(0,d.useEffect)(()=>{if(!Z)return;J.jump(1);let t=e(J,0,{duration:Z/1e3,ease:`linear`});return Y.current=t,t.then(()=>{Y.current===t&&(Y.current=null,W.current())}),Q(),()=>{Y.current===t&&(Y.current=null),t.stop()}},[J,j,Q,Z]),(0,d.useEffect)(()=>{let e=()=>{X.current.hidden=document.hidden,Q()};return document.addEventListener(`visibilitychange`,e),()=>document.removeEventListener(`visibilitychange`,e)},[Q]),(0,d.useEffect)(()=>{if(j!==`confirming`||!E)return;let e=e=>{A.current?.contains(e.target)||U()};return document.addEventListener(`pointerdown`,e),()=>document.removeEventListener(`pointerdown`,e)},[U,E,j]),(0,d.useLayoutEffect)(()=>{if(!R.current)return;R.current=!1;let e=A.current;e&&(e.querySelector(`[data-face="${j}"]`)?.querySelector(`[data-autofocus]:not(:disabled)`)??e).focus({preventScroll:!0})},[j]);let me=e=>{e.key===`Escape`&&(j===`confirming`?(e.preventDefault(),e.stopPropagation(),U()):(j===`done`||j===`error`)&&(e.preventDefault(),e.stopPropagation(),V()))},$=r??(0,p.jsxs)(p.Fragment,{children:[t,`?`]}),he=(()=>{switch(j){case`confirming`:return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`span`,{id:k,className:f.prompt,children:$}),(0,p.jsx)(`button`,{type:`button`,className:f.secondary,"data-autofocus":!0,onClick:U,children:s}),(0,p.jsx)(`button`,{type:`button`,className:f.primary,onClick:()=>void H(`confirm`),children:i})]});case`pending`:return(0,p.jsxs)(`span`,{className:f.status,children:[(0,p.jsx)(ee,{className:f.spinner,size:16,strokeWidth:1.75,"aria-hidden":`true`}),(0,p.jsx)(`span`,{children:P===`undo`?v:l})]});case`done`:return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)(`span`,{className:f.status,"data-tone":`success`,children:[(0,p.jsx)(ie,{reduced:O}),(0,p.jsx)(`span`,{className:f.statusText,children:m})]}),S&&(0,p.jsx)(`button`,{type:`button`,className:f.secondary,"data-autofocus":!0,onClick:()=>void H(`undo`),children:_})]});case`error`:return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)(`span`,{className:f.status,"data-tone":`danger`,children:[(0,p.jsx)(c,{size:16,strokeWidth:1.75,"aria-hidden":`true`}),(0,p.jsx)(`span`,{className:f.statusText,children:h})]}),(0,p.jsx)(`button`,{type:`button`,className:f.secondary,"data-autofocus":!0,onClick:()=>void H(P),children:g})]});default:return(0,p.jsxs)(`button`,{type:`button`,className:f.trigger,"data-autofocus":!0,disabled:D,onClick:()=>{I(typeof $==`string`?$:``),B(`confirming`)},children:[n&&(0,p.jsx)(`span`,{className:f.icon,"aria-hidden":`true`,children:n}),(0,p.jsx)(`span`,{children:t})]})}})();return(0,p.jsxs)(`div`,{ref:A,className:[f.root,ce].filter(Boolean).join(` `),"data-state":j,"data-tone":b,"data-disabled":D||void 0,tabIndex:-1,onKeyDown:me,"aria-busy":j===`pending`||void 0,onPointerEnter:()=>{X.current.hover=!0,Q()},onPointerLeave:()=>{X.current.hover=!1,Q()},onPointerCancel:()=>{X.current.hover=!1,Q()},children:[(0,p.jsx)(u.div,{className:f.surface,style:{width:G},children:(0,p.jsx)(o,{initial:!1,custom:M,children:(0,p.jsx)(re,{id:j,direction:M,reduced:O,onSize:pe,labelledBy:j===`confirming`?k:void 0,children:he},j)})}),(0,p.jsx)(`span`,{className:f.srOnly,role:`status`,"aria-live":`polite`,children:fe})]})}export{w as t};