nextclaw 0.16.17 → 0.16.19

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 (43) hide show
  1. package/dist/cli/index.js +224 -68
  2. package/package.json +6 -6
  3. package/ui-dist/assets/{ChannelsList-BqsOYnXz.js → ChannelsList-c6t0mn89.js} +2 -2
  4. package/ui-dist/assets/ChatPage-2A8MjFld.js +37 -0
  5. package/ui-dist/assets/{DocBrowser-BmL0QXBZ.js → DocBrowser-DNArT9C7.js} +1 -1
  6. package/ui-dist/assets/{LogoBadge-C1HiPZPf.js → LogoBadge-Bg6qKIGM.js} +1 -1
  7. package/ui-dist/assets/MarketplacePage-Bdg8GqQ6.js +49 -0
  8. package/ui-dist/assets/{McpMarketplacePage-CLHFnNBd.js → McpMarketplacePage-CU6gr58O.js} +2 -2
  9. package/ui-dist/assets/{ModelConfig-LQSR58tc.js → ModelConfig-CHlpmjUg.js} +1 -1
  10. package/ui-dist/assets/ProvidersList-CwTZF2yz.js +1 -0
  11. package/ui-dist/assets/RemoteAccessPage-bBI52qCV.js +1 -0
  12. package/ui-dist/assets/RuntimeConfig-BvifZdub.js +1 -0
  13. package/ui-dist/assets/{SearchConfig-Chzo_JGs.js → SearchConfig-COmMqF50.js} +1 -1
  14. package/ui-dist/assets/{SecretsConfig-CEIbjZYA.js → SecretsConfig-u9OrM8fR.js} +2 -2
  15. package/ui-dist/assets/SessionsConfig-Cu8ou527.js +2 -0
  16. package/ui-dist/assets/chat-session-display-cb3oTJlV.js +1 -0
  17. package/ui-dist/assets/index-BRfdTpro.js +8 -0
  18. package/ui-dist/assets/index-Bro-iRcb.css +1 -0
  19. package/ui-dist/assets/{label-GACO2RzW.js → label-DkFojDz9.js} +1 -1
  20. package/ui-dist/assets/{page-layout-DjXaK3A3.js → page-layout-DJ1cEM0C.js} +1 -1
  21. package/ui-dist/assets/popover-OLgPYzWf.js +1 -0
  22. package/ui-dist/assets/security-config-C1kqOE-O.js +1 -0
  23. package/ui-dist/assets/skeleton-CZp_aCj4.js +1 -0
  24. package/ui-dist/assets/{status-dot-IWEBezqb.js → status-dot-Cf8rkmc5.js} +1 -1
  25. package/ui-dist/assets/{switch-DCHAJSrA.js → switch-CF529ZId.js} +1 -1
  26. package/ui-dist/assets/tabs-custom-BweiG3H2.js +1 -0
  27. package/ui-dist/assets/useConfirmDialog-_kYcW1mi.js +1 -0
  28. package/ui-dist/assets/{vendor-CNhxtHCf.js → vendor-BEQcLDx6.js} +97 -87
  29. package/ui-dist/index.html +3 -3
  30. package/ui-dist/assets/ChatPage-CJBYKR-Y.js +0 -38
  31. package/ui-dist/assets/MarketplacePage-BIRP0NRS.js +0 -49
  32. package/ui-dist/assets/ProvidersList-CwI-mxah.js +0 -1
  33. package/ui-dist/assets/RemoteAccessPage-Cw5BqZb6.js +0 -1
  34. package/ui-dist/assets/RuntimeConfig-DbowSRAb.js +0 -1
  35. package/ui-dist/assets/SessionsConfig-BR8GfGWL.js +0 -2
  36. package/ui-dist/assets/chat-message-CPG7zxRR.js +0 -3
  37. package/ui-dist/assets/index-j6A_-1b6.js +0 -8
  38. package/ui-dist/assets/index-kaPUhd-8.css +0 -1
  39. package/ui-dist/assets/popover-DTaFiTmU.js +0 -1
  40. package/ui-dist/assets/security-config-Dk-yoKvK.js +0 -1
  41. package/ui-dist/assets/skeleton-Dm2xOBSA.js +0 -1
  42. package/ui-dist/assets/tabs-custom-DKSbDSB9.js +0 -1
  43. package/ui-dist/assets/useConfirmDialog-ByJ8A8n7.js +0 -1
@@ -1 +0,0 @@
1
- import{r as c,j as e,e as M}from"./vendor-CNhxtHCf.js";import{a9 as O,aa as R,ab as I,ac as B,ad as _,C as u,a6 as h,a7 as x,t as s,a8 as m,J as p,B as j,I as l}from"./index-j6A_-1b6.js";import{L as o}from"./label-GACO2RzW.js";import{S as G}from"./switch-DCHAJSrA.js";import{P as J,a as V}from"./page-layout-DjXaK3A3.js";const W=8;function A(r){return r.trim().length>=W}function L(r,n){return r!==n?(M.error(s("authPasswordMismatch")),!1):!0}function q(){const r=O(),n=R(),S=I(),g=B(),y=_(),[f,U]=c.useState(""),[i,N]=c.useState(""),[w,b]=c.useState(""),[d,v]=c.useState(""),[P,C]=c.useState(""),t=r.data,E=f.trim().length>0&&A(i)&&i===w&&!n.isPending,D=A(d)&&d===P&&!g.isPending,T=async()=>{if(L(i,w))try{await n.mutateAsync({username:f.trim(),password:i}),N(""),b("")}catch{}},F=async()=>{if(L(d,P))try{await g.mutateAsync({password:d}),v(""),C("")}catch{}},H=async a=>{try{await S.mutateAsync({enabled:a})}catch{}},k=async()=>{try{await y.mutateAsync()}catch{}};return r.isLoading&&!t?e.jsxs(u,{children:[e.jsxs(h,{children:[e.jsx(x,{children:s("authSecurityTitle")}),e.jsx(m,{children:s("authSecurityDescription")})]}),e.jsx(p,{className:"text-sm text-gray-500",children:s("loading")})]}):r.isError||!t?e.jsxs(u,{children:[e.jsxs(h,{children:[e.jsx(x,{children:s("authSecurityTitle")}),e.jsx(m,{children:s("authSecurityDescription")})]}),e.jsxs(p,{className:"space-y-4",children:[e.jsx("p",{className:"text-sm text-gray-500",children:s("authStatusLoadFailed")}),e.jsx(j,{variant:"outline",onClick:()=>{r.refetch()},children:s("authRetryStatus")})]})]}):t.configured?e.jsxs(u,{children:[e.jsxs(h,{children:[e.jsx(x,{children:s("authSecurityTitle")}),e.jsx(m,{children:s("authSecurityDescription")})]}),e.jsxs(p,{className:"space-y-6",children:[e.jsxs("div",{className:"rounded-xl border border-gray-200 p-4",children:[e.jsxs("div",{className:"flex flex-col gap-4 md:flex-row md:items-start md:justify-between",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-sm font-medium text-gray-900",children:s("authStatusLabel")}),e.jsx("p",{className:"text-sm text-gray-600",children:s("authStatusConfiguredUser").replace("{username}",t.username??"")}),e.jsx("p",{className:"text-xs text-gray-500",children:s("authUsernameFixedHelp")})]}),e.jsx("span",{className:"inline-flex items-center rounded-full bg-gray-100 px-3 py-1 text-xs font-medium text-gray-700",children:t.enabled?s("enabled"):s("disabled")})]}),e.jsxs("div",{className:"mt-4 flex flex-col gap-4 border-t border-gray-200 pt-4 md:flex-row md:items-center md:justify-between",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-sm font-medium text-gray-900",children:s("authEnableLabel")}),e.jsx("p",{className:"text-xs text-gray-500",children:t.enabled?s("authEnableOnHelp"):s("authEnableOffHelp")})]}),e.jsx(G,{checked:t.enabled,disabled:S.isPending,onCheckedChange:a=>{H(a)}})]})]}),e.jsxs("div",{className:"rounded-xl border border-gray-200 p-4 space-y-4",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-sm font-medium text-gray-900",children:s("authPasswordSectionTitle")}),e.jsx("p",{className:"text-xs text-gray-500",children:s("authPasswordSectionDescription")})]}),e.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(o,{htmlFor:"auth-password-next",children:s("authPassword")}),e.jsx(l,{id:"auth-password-next",type:"password",value:d,onChange:a=>v(a.target.value),placeholder:s("authPasswordPlaceholder")})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(o,{htmlFor:"auth-password-confirm",children:s("authConfirmPassword")}),e.jsx(l,{id:"auth-password-confirm",type:"password",value:P,onChange:a=>C(a.target.value),placeholder:s("authConfirmPasswordPlaceholder")})]})]}),e.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[e.jsx(j,{type:"button",disabled:!D,onClick:()=>void F(),children:g.isPending?s("authPasswordUpdating"):s("authPasswordAction")}),t.enabled&&t.authenticated?e.jsx(j,{type:"button",variant:"outline",disabled:y.isPending,onClick:()=>void k(),children:y.isPending?s("authLoggingOut"):s("authLogoutAction")}):null]}),e.jsx("p",{className:"text-xs text-gray-500",children:s("authSessionMemoryNotice")})]})]})]}):e.jsxs(u,{children:[e.jsxs(h,{children:[e.jsx(x,{children:s("authSecurityTitle")}),e.jsx(m,{children:s("authSecurityDescription")})]}),e.jsxs(p,{className:"space-y-5",children:[e.jsxs("div",{className:"rounded-xl border border-dashed border-gray-200 bg-gray-50/70 p-4",children:[e.jsx("p",{className:"text-sm font-medium text-gray-900",children:s("authSetupTitle")}),e.jsx("p",{className:"mt-1 text-sm text-gray-500",children:s("authSetupDescription")})]}),e.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(o,{htmlFor:"auth-setup-username",children:s("authUsername")}),e.jsx(l,{id:"auth-setup-username",value:f,onChange:a=>U(a.target.value),placeholder:s("authUsernamePlaceholder")})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(o,{htmlFor:"auth-setup-password",children:s("authPassword")}),e.jsx(l,{id:"auth-setup-password",type:"password",value:i,onChange:a=>N(a.target.value),placeholder:s("authPasswordPlaceholder")})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(o,{htmlFor:"auth-setup-confirm",children:s("authConfirmPassword")}),e.jsx(l,{id:"auth-setup-confirm",type:"password",value:w,onChange:a=>b(a.target.value),placeholder:s("authConfirmPasswordPlaceholder")}),e.jsx("p",{className:"text-xs text-gray-500",children:s("authPasswordMinLengthHint")})]}),e.jsx(j,{type:"button",disabled:!E,onClick:()=>void T(),children:n.isPending?s("authSettingUp"):s("authSetupAction")})]})]})}function Z(){return e.jsxs(J,{className:"space-y-6",children:[e.jsx(V,{title:s("authSecurityTitle"),description:s("authSecurityDescription")}),e.jsx(q,{})]})}export{Z as SecurityConfig};
@@ -1 +0,0 @@
1
- import{j as t}from"./vendor-CNhxtHCf.js";import{c as o}from"./index-j6A_-1b6.js";function m({className:e,...s}){return t.jsx("div",{className:o("animate-pulse rounded-md bg-slate-200",e),...s})}export{m as S};
@@ -1 +0,0 @@
1
- import{j as e}from"./vendor-CNhxtHCf.js";import{as as m,c as s}from"./index-j6A_-1b6.js";function c({tabs:a,activeTab:i,onChange:o,className:n}){return e.jsx("div",{className:s("flex items-center gap-6 border-b border-gray-200/60 mb-6",n),children:a.map(t=>{const r=i===t.id;return e.jsxs("button",{onClick:()=>o(t.id),className:s("relative pb-3 text-[14px] font-medium transition-all duration-fast flex items-center gap-1.5",r?"text-gray-900":"text-gray-600 hover:text-gray-900"),children:[t.label,t.count!==void 0&&e.jsx("span",{className:s("text-[11px] font-medium","text-gray-500"),children:m(t.count)}),r&&e.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-[2px] bg-primary rounded-full"})]},t.id)})})}export{c as T};
@@ -1 +0,0 @@
1
- import{j as a,r as t}from"./vendor-CNhxtHCf.js";import{am as p,an as C,ao as h,ap as x,aq as g,ar as D,B as d,t as i}from"./index-j6A_-1b6.js";const j=({open:l,onOpenChange:r,title:c,description:o,confirmLabel:s=i("confirm"),cancelLabel:e=i("cancel"),variant:n="default",onConfirm:u,onCancel:f})=>{const m=()=>{u(),r(!1)},v=()=>{f(),r(!1)};return a.jsx(p,{open:l,onOpenChange:r,children:a.jsxs(C,{className:"[&>:last-child]:hidden",onCloseAutoFocus:b=>b.preventDefault(),children:[a.jsxs(h,{children:[a.jsx(x,{children:c}),o?a.jsx(g,{children:o}):null]}),a.jsxs(D,{className:"gap-2 sm:gap-0",children:[a.jsx(d,{type:"button",variant:"outline",onClick:v,children:e}),a.jsx(d,{type:"button",variant:n==="destructive"?"destructive":"default",onClick:m,children:s})]})]})})},L={open:!1,title:"",description:"",confirmLabel:i("confirm"),cancelLabel:i("cancel"),variant:"default",resolve:null};function y(){const[l,r]=t.useState(L),c=t.useCallback(e=>new Promise(n=>{r({open:!0,title:e.title,description:e.description??"",confirmLabel:e.confirmLabel??i("confirm"),cancelLabel:e.cancelLabel??i("cancel"),variant:e.variant??"default",resolve:u=>{n(u),r(f=>({...f,open:!1,resolve:null}))}})}),[]),o=t.useCallback(e=>{r(n=>(!e&&n.resolve&&n.resolve(!1),{...n,open:e,resolve:e?n.resolve:null}))},[]),s=t.useCallback(()=>a.jsx(j,{open:l.open,onOpenChange:o,title:l.title,description:l.description||void 0,confirmLabel:l.confirmLabel,cancelLabel:l.cancelLabel,variant:l.variant,onConfirm:()=>{var e;return(e=l.resolve)==null?void 0:e.call(l,!0)},onCancel:()=>{var e;return(e=l.resolve)==null?void 0:e.call(l,!1)}}),[l,o]);return{confirm:c,ConfirmDialog:s}}export{y as u};