nextclaw 0.9.20 → 0.9.21
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/dist/cli/index.js +246 -5
- package/package.json +5 -5
- package/ui-dist/assets/{ChannelsList-BYpcdBFv.js → ChannelsList-C49JQ-Zt.js} +1 -1
- package/ui-dist/assets/ChatPage-DIx05c6s.js +36 -0
- package/ui-dist/assets/{DocBrowser-BvlLr302.js → DocBrowser-CpOosDEI.js} +1 -1
- package/ui-dist/assets/{LogoBadge-BID710eK.js → LogoBadge-CL_8ZPXU.js} +1 -1
- package/ui-dist/assets/{MarketplacePage-D_tl0hcj.js → MarketplacePage-BOzko5s9.js} +2 -2
- package/ui-dist/assets/{ModelConfig-BqeVEjhR.js → ModelConfig-BZ4ZfaQB.js} +1 -1
- package/ui-dist/assets/ProvidersList-fPpJ5gl6.js +1 -0
- package/ui-dist/assets/{RuntimeConfig-JyVczyri.js → RuntimeConfig-Dt9pLB9P.js} +1 -1
- package/ui-dist/assets/{SecretsConfig-ZSYdLpVY.js → SecretsConfig-C1PU0Yy8.js} +2 -2
- package/ui-dist/assets/{SessionsConfig-DhS0WDzb.js → SessionsConfig-EskBOofQ.js} +2 -2
- package/ui-dist/assets/{card-C7lYDup4.js → card-C7Gtw2Vs.js} +1 -1
- package/ui-dist/assets/index-Cn6_2To7.js +8 -0
- package/ui-dist/assets/{index-Bzp2eV6w.css → index-nEYGCJTC.css} +1 -1
- package/ui-dist/assets/{input-C9Q7iTLs.js → input-oBvxsnV9.js} +1 -1
- package/ui-dist/assets/{label-kgXDZMBc.js → label-C7F8lMpQ.js} +1 -1
- package/ui-dist/assets/{page-layout-BhDWJV70.js → page-layout-DO8BlScF.js} +1 -1
- package/ui-dist/assets/session-run-status-Kg0FwAPn.js +3 -0
- package/ui-dist/assets/{switch-CqwpGPEL.js → switch-C6a5GyZB.js} +1 -1
- package/ui-dist/assets/{tabs-custom-B4iGlgEu.js → tabs-custom-BatFap5k.js} +1 -1
- package/ui-dist/assets/{useConfirmDialog-C6M6VCjI.js → useConfirmDialog-zJzVKMdu.js} +2 -2
- package/ui-dist/assets/{vendor-Ch2nf8A7.js → vendor-TlME1INH.js} +82 -97
- package/ui-dist/index.html +3 -3
- package/ui-dist/assets/ChatPage-Bm4KmiRF.js +0 -34
- package/ui-dist/assets/ProvidersList-CdMUUfu2.js +0 -1
- package/ui-dist/assets/index-D0qBgcW3.js +0 -7
- package/ui-dist/assets/session-run-status-X3zQMK00.js +0 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{r as i,
|
|
1
|
+
import{r as i,an as b,aY as w,ah as ie,j as s,aj as j,am as le,ao as h,ap as D,aq as ce,ar as de,as as ue,au as fe,av as ge,aw as me,at as pe,aZ as ve,aE as xe}from"./vendor-TlME1INH.js";import{c as N,t as x}from"./index-Cn6_2To7.js";import{B as I}from"./page-layout-DO8BlScF.js";function Ne(e,t){return i.useReducer((o,a)=>t[o][a]??o,e)}var E=e=>{const{present:t,children:o}=e,a=De(t),r=typeof o=="function"?o({present:a.isPresent}):i.Children.only(o),n=b(a.ref,he(r));return typeof o=="function"||a.isPresent?i.cloneElement(r,{ref:n}):null};E.displayName="Presence";function De(e){const[t,o]=i.useState(),a=i.useRef(null),r=i.useRef(e),n=i.useRef("none"),l=e?"mounted":"unmounted",[c,u]=Ne(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const d=y(a.current);n.current=c==="mounted"?d:"none"},[c]),w(()=>{const d=a.current,f=r.current;if(f!==e){const C=n.current,p=y(d);e?u("MOUNT"):p==="none"||(d==null?void 0:d.display)==="none"?u("UNMOUNT"):u(f&&C!==p?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,u]),w(()=>{if(t){let d;const f=t.ownerDocument.defaultView??window,m=p=>{const re=y(a.current).includes(CSS.escape(p.animationName));if(p.target===t&&re&&(u("ANIMATION_END"),!r.current)){const se=t.style.animationFillMode;t.style.animationFillMode="forwards",d=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=se)})}},C=p=>{p.target===t&&(n.current=y(a.current))};return t.addEventListener("animationstart",C),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{f.clearTimeout(d),t.removeEventListener("animationstart",C),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:i.useCallback(d=>{a.current=d?getComputedStyle(d):null,o(d)},[])}}function y(e){return(e==null?void 0:e.animationName)||"none"}function he(e){var a,r;let t=(a=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:a.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var O="Dialog",[M]=ce(O),[Ce,g]=M(O),T=e=>{const{__scopeDialog:t,children:o,open:a,defaultOpen:r,onOpenChange:n,modal:l=!0}=e,c=i.useRef(null),u=i.useRef(null),[d,f]=ie({prop:a,defaultProp:r??!1,onChange:n,caller:O});return s.jsx(Ce,{scope:t,triggerRef:c,contentRef:u,contentId:j(),titleId:j(),descriptionId:j(),open:d,onOpenChange:f,onOpenToggle:i.useCallback(()=>f(m=>!m),[f]),modal:l,children:o})};T.displayName=O;var S="DialogTrigger",ye=i.forwardRef((e,t)=>{const{__scopeDialog:o,...a}=e,r=g(S,o),n=b(t,r.triggerRef);return s.jsx(h.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":_(r.open),...a,ref:n,onClick:D(e.onClick,r.onOpenToggle)})});ye.displayName=S;var A="DialogPortal",[Re,F]=M(A,{forceMount:void 0}),L=e=>{const{__scopeDialog:t,forceMount:o,children:a,container:r}=e,n=g(A,t);return s.jsx(Re,{scope:t,forceMount:o,children:i.Children.map(a,l=>s.jsx(E,{present:o||n.open,children:s.jsx(le,{asChild:!0,container:r,children:l})}))})};L.displayName=A;var R="DialogOverlay",W=i.forwardRef((e,t)=>{const o=F(R,e.__scopeDialog),{forceMount:a=o.forceMount,...r}=e,n=g(R,e.__scopeDialog);return n.modal?s.jsx(E,{present:a||n.open,children:s.jsx(Ee,{...r,ref:t})}):null});W.displayName=R;var be=pe("DialogOverlay.RemoveScroll"),Ee=i.forwardRef((e,t)=>{const{__scopeDialog:o,...a}=e,r=g(R,o);return s.jsx(ue,{as:be,allowPinchZoom:!0,shards:[r.contentRef],children:s.jsx(h.div,{"data-state":_(r.open),...a,ref:t,style:{pointerEvents:"auto",...a.style}})})}),v="DialogContent",k=i.forwardRef((e,t)=>{const o=F(v,e.__scopeDialog),{forceMount:a=o.forceMount,...r}=e,n=g(v,e.__scopeDialog);return s.jsx(E,{present:a||n.open,children:n.modal?s.jsx(Oe,{...r,ref:t}):s.jsx(je,{...r,ref:t})})});k.displayName=v;var Oe=i.forwardRef((e,t)=>{const o=g(v,e.__scopeDialog),a=i.useRef(null),r=b(t,o.contentRef,a);return i.useEffect(()=>{const n=a.current;if(n)return de(n)},[]),s.jsx(U,{...e,ref:r,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:D(e.onCloseAutoFocus,n=>{var l;n.preventDefault(),(l=o.triggerRef.current)==null||l.focus()}),onPointerDownOutside:D(e.onPointerDownOutside,n=>{const l=n.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0;(l.button===2||c)&&n.preventDefault()}),onFocusOutside:D(e.onFocusOutside,n=>n.preventDefault())})}),je=i.forwardRef((e,t)=>{const o=g(v,e.__scopeDialog),a=i.useRef(!1),r=i.useRef(!1);return s.jsx(U,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:n=>{var l,c;(l=e.onCloseAutoFocus)==null||l.call(e,n),n.defaultPrevented||(a.current||(c=o.triggerRef.current)==null||c.focus(),n.preventDefault()),a.current=!1,r.current=!1},onInteractOutside:n=>{var u,d;(u=e.onInteractOutside)==null||u.call(e,n),n.defaultPrevented||(a.current=!0,n.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const l=n.target;((d=o.triggerRef.current)==null?void 0:d.contains(l))&&n.preventDefault(),n.detail.originalEvent.type==="focusin"&&r.current&&n.preventDefault()}})}),U=i.forwardRef((e,t)=>{const{__scopeDialog:o,trapFocus:a,onOpenAutoFocus:r,onCloseAutoFocus:n,...l}=e,c=g(v,o),u=i.useRef(null),d=b(t,u);return fe(),s.jsxs(s.Fragment,{children:[s.jsx(ge,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:r,onUnmountAutoFocus:n,children:s.jsx(me,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":_(c.open),...l,ref:d,onDismiss:()=>c.onOpenChange(!1)})}),s.jsxs(s.Fragment,{children:[s.jsx(Ae,{titleId:c.titleId}),s.jsx(_e,{contentRef:u,descriptionId:c.descriptionId})]})]})}),P="DialogTitle",$=i.forwardRef((e,t)=>{const{__scopeDialog:o,...a}=e,r=g(P,o);return s.jsx(h.h2,{id:r.titleId,...a,ref:t})});$.displayName=P;var G="DialogDescription",B=i.forwardRef((e,t)=>{const{__scopeDialog:o,...a}=e,r=g(G,o);return s.jsx(h.p,{id:r.descriptionId,...a,ref:t})});B.displayName=G;var z="DialogClose",H=i.forwardRef((e,t)=>{const{__scopeDialog:o,...a}=e,r=g(z,o);return s.jsx(h.button,{type:"button",...a,ref:t,onClick:D(e.onClick,()=>r.onOpenChange(!1))})});H.displayName=z;function _(e){return e?"open":"closed"}var V="DialogTitleWarning",[$e,q]=ve(V,{contentName:v,titleName:P,docsSlug:"dialog"}),Ae=({titleId:e})=>{const t=q(V),o=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
2
2
|
|
|
3
3
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
4
4
|
|
|
5
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(o))},[o,e]),null},Pe="DialogDescriptionWarning",_e=({contentRef:e,descriptionId:t})=>{const a=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${q(Pe).contentName}}.`;return i.useEffect(()=>{var n;const r=(n=e.current)==null?void 0:n.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(a))},[a,e,t]),null},
|
|
5
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(o))},[o,e]),null},Pe="DialogDescriptionWarning",_e=({contentRef:e,descriptionId:t})=>{const a=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${q(Pe).contentName}}.`;return i.useEffect(()=>{var n;const r=(n=e.current)==null?void 0:n.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(a))},[a,e,t]),null},we=T,Ie=L,Y=W,Z=k,K=$,X=B,Me=H;const Te=we,Se=Ie,J=i.forwardRef(({className:e,...t},o)=>s.jsx(Y,{ref:o,className:N("fixed inset-0 z-50 bg-black/40 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));J.displayName=Y.displayName;const Q=i.forwardRef(({className:e,children:t,...o},a)=>s.jsxs(Se,{children:[s.jsx(J,{}),s.jsxs(Z,{ref:a,className:N("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-gray-200/50 bg-white p-6 shadow-xl duration-base data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-2xl",e),...o,children:[t,s.jsxs(Me,{className:"absolute right-4 top-4 rounded-lg p-1 opacity-70 ring-offset-white transition-all duration-fast hover:opacity-100 hover:bg-gray-100 focus:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 disabled:pointer-events-none",children:[s.jsx(xe,{className:"h-4 w-4 text-gray-500"}),s.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Q.displayName=Z.displayName;const ee=({className:e,...t})=>s.jsx("div",{className:N("flex flex-col space-y-2 text-center sm:text-left",e),...t});ee.displayName="DialogHeader";const te=({className:e,...t})=>s.jsx("div",{className:N("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-3",e),...t});te.displayName="DialogFooter";const ne=i.forwardRef(({className:e,...t},o)=>s.jsx(K,{ref:o,className:N("text-lg font-semibold leading-tight tracking-tight text-gray-900",e),...t}));ne.displayName=K.displayName;const oe=i.forwardRef(({className:e,...t},o)=>s.jsx(X,{ref:o,className:N("text-sm text-gray-500 leading-relaxed",e),...t}));oe.displayName=X.displayName;const Fe=({open:e,onOpenChange:t,title:o,description:a,confirmLabel:r=x("confirm"),cancelLabel:n=x("cancel"),variant:l="default",onConfirm:c,onCancel:u})=>{const d=()=>{c(),t(!1)},f=()=>{u(),t(!1)};return s.jsx(Te,{open:e,onOpenChange:t,children:s.jsxs(Q,{className:"[&>:last-child]:hidden",onCloseAutoFocus:m=>m.preventDefault(),children:[s.jsxs(ee,{children:[s.jsx(ne,{children:o}),a?s.jsx(oe,{children:a}):null]}),s.jsxs(te,{className:"gap-2 sm:gap-0",children:[s.jsx(I,{type:"button",variant:"outline",onClick:f,children:n}),s.jsx(I,{type:"button",variant:l==="destructive"?"destructive":"default",onClick:d,children:r})]})]})})},Le={open:!1,title:"",description:"",confirmLabel:x("confirm"),cancelLabel:x("cancel"),variant:"default",resolve:null};function Ge(){const[e,t]=i.useState(Le),o=i.useCallback(n=>new Promise(l=>{t({open:!0,title:n.title,description:n.description??"",confirmLabel:n.confirmLabel??x("confirm"),cancelLabel:n.cancelLabel??x("cancel"),variant:n.variant??"default",resolve:c=>{l(c),t(u=>({...u,open:!1,resolve:null}))}})}),[]),a=i.useCallback(n=>{t(l=>(!n&&l.resolve&&l.resolve(!1),{...l,open:n,resolve:n?l.resolve:null}))},[]),r=i.useCallback(()=>s.jsx(Fe,{open:e.open,onOpenChange:a,title:e.title,description:e.description||void 0,confirmLabel:e.confirmLabel,cancelLabel:e.cancelLabel,variant:e.variant,onConfirm:()=>{var n;return(n=e.resolve)==null?void 0:n.call(e,!0)},onCancel:()=>{var n;return(n=e.resolve)==null?void 0:n.call(e,!1)}}),[e,a]);return{confirm:o,ConfirmDialog:r}}export{E as P,Ge as u};
|