@aidotnet/server-linux-x64 0.9.7 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/astra-server +2 -2
- package/bin/wwwroot/assets/ClientsPage-C-x5kPpG.js +9 -0
- package/bin/wwwroot/assets/KeyPage-CxvUUC6Z.js +1 -0
- package/bin/wwwroot/assets/ModelDetailPage-CQol60ci.js +1 -0
- package/bin/wwwroot/assets/ModelsPage-Bp1-Rhad.js +1 -0
- package/bin/wwwroot/assets/PluginsPage-YPDqytJ6.js +2 -0
- package/bin/wwwroot/assets/PrivacyPage-Co1ffmVU.js +1 -0
- package/bin/wwwroot/assets/ProviderDetailPage-CacRreeZ.js +3 -0
- package/bin/wwwroot/assets/ProvidersPage-DSwvae35.js +2 -0
- package/bin/wwwroot/assets/SettingsPage-CvIE8pBq.js +2 -0
- package/bin/wwwroot/assets/TokenDetailPage-w1XONN5-.js +1 -0
- package/bin/wwwroot/assets/TokenPoolEditor-BITgITLH.js +1 -0
- package/bin/wwwroot/assets/TokensPage-CiL0dLkj.js +1 -0
- package/bin/wwwroot/assets/{TracesPage-C9mYB_7E.js → TracesPage-zcvvDcj3.js} +2 -2
- package/bin/wwwroot/assets/TrayPanelPage-BwaSGRbR.js +1 -0
- package/bin/wwwroot/assets/{TrayPanelView-BpQQa0qi.js → TrayPanelView-CAF6qwfK.js} +1 -1
- package/bin/wwwroot/assets/alert-BhYHbQ5M.js +15 -0
- package/bin/wwwroot/assets/{arrow-down-DP0xP3tk.js → arrow-down-CHVkKqVB.js} +1 -1
- package/bin/wwwroot/assets/{arrow-left-UUQiUGQ1.js → arrow-left-ByzgpjKh.js} +1 -1
- package/bin/wwwroot/assets/{checkbox-BEWRhO5r.js → checkbox-B_oHm90b.js} +1 -1
- package/bin/wwwroot/assets/{cloud-download-DebyBXx2.js → cloud-download-DEv0Zu87.js} +1 -1
- package/bin/wwwroot/assets/confirm-morph-RDk31i1j.js +1 -0
- package/bin/wwwroot/assets/{download-C4--ZCHf.js → download-DXwZa8b6.js} +1 -1
- package/bin/wwwroot/assets/{ellipsis-D250KISp.js → ellipsis-DhvUvMq3.js} +1 -1
- package/bin/wwwroot/assets/{external-link-Bnshhxip.js → external-link-D9cY56rt.js} +1 -1
- package/bin/wwwroot/assets/{folder-open-BzVuhS53.js → folder-open-Dt-7Rdbw.js} +1 -1
- package/bin/wwwroot/assets/{index-DE_l9Wt4.css → index-Dt3DJ3Cx.css} +1 -1
- package/bin/wwwroot/assets/index-XVK9epgF.js +17 -0
- package/bin/wwwroot/assets/{log-out-DEZofPIg.js → log-out-wpGBd0OK.js} +1 -1
- package/bin/wwwroot/assets/minus-3JX68qL9.js +1 -0
- package/bin/wwwroot/assets/overlays-CF55BHOs.js +41 -0
- package/bin/wwwroot/assets/{pencil-DuD1bQje.js → pencil-BjMGSY_u.js} +1 -1
- package/bin/wwwroot/assets/{power-LE8gLJKc.js → power-zBXM8vYz.js} +1 -1
- package/bin/wwwroot/assets/radio-cards-BVdDbnT-.js +1 -0
- package/bin/wwwroot/assets/{rotate-ccw-Cx9vNOkF.js → rotate-ccw-Omdd6cJU.js} +1 -1
- package/bin/wwwroot/assets/{sortable.esm-B0eMzUNN.js → sortable.esm-CTCQ-9IR.js} +1 -1
- package/bin/wwwroot/index.html +4 -4
- package/package.json +1 -1
- package/bin/wwwroot/assets/ClientsPage-DEetiYfc.js +0 -9
- package/bin/wwwroot/assets/KeyPage-cq7HprCR.js +0 -1
- package/bin/wwwroot/assets/ModelDetailPage-Uj6p-r8V.js +0 -1
- package/bin/wwwroot/assets/ModelsPage-B-l5oEGF.js +0 -1
- package/bin/wwwroot/assets/PluginsPage-BH9KjyfC.js +0 -2
- package/bin/wwwroot/assets/PrivacyPage-C5XhVKZd.js +0 -1
- package/bin/wwwroot/assets/ProviderDetailPage-uLPHWm2i.js +0 -3
- package/bin/wwwroot/assets/ProvidersPage-CNU_ji4e.js +0 -2
- package/bin/wwwroot/assets/SettingsPage-B3tbYdLW.js +0 -2
- package/bin/wwwroot/assets/TokenDetailPage-BVyb_-ev.js +0 -1
- package/bin/wwwroot/assets/TokenPoolEditor-7LX143SO.js +0 -1
- package/bin/wwwroot/assets/TokensPage-vRrXvqkK.js +0 -1
- package/bin/wwwroot/assets/TrayPanelPage-NIkRrLCt.js +0 -1
- package/bin/wwwroot/assets/alert-CN1yWco4.js +0 -15
- package/bin/wwwroot/assets/confirm-morph-DwiVsert.js +0 -1
- package/bin/wwwroot/assets/index-CBrXkG99.js +0 -17
- package/bin/wwwroot/assets/minus-BAoIEc33.js +0 -1
- package/bin/wwwroot/assets/overlays-D2pWmtov.js +0 -41
- package/bin/wwwroot/assets/radio-cards-D1yOuSfh.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-CN1yWco4.js";import{z as ee}from"./index-CBrXkG99.js";var d=r(t(),1),f={root:`_root_8729c_1`,surface:`_surface_8729c_16`,trigger:`_trigger_8729c_39`,face:`_face_8729c_41`,icon:`_icon_8729c_64`,prompt:`_prompt_8729c_68`,secondary:`_secondary_8729c_70`,primary:`_primary_8729c_71`,status:`_status_8729c_90`,statusText:`_statusText_8729c_95`,check:`_check_8729c_97`,checkDisc:`_checkDisc_8729c_98`,checkTick:`_checkTick_8729c_99`,spinner:`_spinner_8729c_100`,spin:`_spin_8729c_100`,srOnly:`_srOnly_8729c_103`},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};
|