nextclaw 0.18.0 → 0.18.1
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 +10906 -8757
- package/package.json +15 -15
- package/resources/USAGE.md +30 -3
- package/ui-dist/assets/ChannelsList-M9FTK1Ak.js +8 -0
- package/ui-dist/assets/DocBrowser-CH7-GxlL.js +1 -0
- package/ui-dist/assets/{DocBrowser-6ReNjvzF.js → DocBrowser-DMfr0Oow.js} +1 -1
- package/ui-dist/assets/{DocBrowserContext-B6SpA7Qs.js → DocBrowserContext-BXydqby-.js} +1 -1
- package/ui-dist/assets/{LogoBadge-ByNLYg65.js → LogoBadge-hO7tY7hE.js} +1 -1
- package/ui-dist/assets/ModelConfig-CNIgLf0e.js +1 -0
- package/ui-dist/assets/{ProviderScopedModelInput-Da7khnBA.js → ProviderScopedModelInput-B3HWP4oz.js} +1 -1
- package/ui-dist/assets/ProvidersList-CHjMnRhX.js +1 -0
- package/ui-dist/assets/RuntimeConfig-psp8nMSG.js +1 -0
- package/ui-dist/assets/SearchConfig-CSoKip1f.js +1 -0
- package/ui-dist/assets/{SecretsConfig-D281Rotl.js → SecretsConfig-MEt6MjuD.js} +2 -2
- package/ui-dist/assets/SessionsConfig-DifCiXwR.js +2 -0
- package/ui-dist/assets/{app-query-client-VnFElj4E.js → app-query-client-9jNewezV.js} +1 -1
- package/ui-dist/assets/{book-open-BdcxxoQu.js → book-open-DzdUViDm.js} +1 -1
- package/ui-dist/assets/chat-page-CLp0UV0Y.js +58 -0
- package/ui-dist/assets/chat-session-display-DsYHx0RZ.js +1 -0
- package/ui-dist/assets/{chunk-JZWAC4HX-DK5HPmIK.js → chunk-JZWAC4HX-C5dEc8hV.js} +1 -1
- package/ui-dist/assets/{client-_i4MU2bB.js → client-C-8fH7-c.js} +1 -1
- package/ui-dist/assets/{config-DtIQwrHF.js → config-CBScxsdV.js} +1 -1
- package/ui-dist/assets/config-split-page-BUout_Ak.js +1 -0
- package/ui-dist/assets/{createLucideIcon-BSeTgkZW.js → createLucideIcon-dy5ie7Ox.js} +1 -1
- package/ui-dist/assets/desktop-update-config-2BS6BMkW.js +1 -0
- package/ui-dist/assets/{dist-ccBFUi-o.js → dist-BruyLa92.js} +1 -1
- package/ui-dist/assets/{dist-6TrrnPCR.js → dist-Cy7_j6hA.js} +1 -1
- package/ui-dist/assets/{download-BhDxnyvU.js → download-BD0ETkB-.js} +1 -1
- package/ui-dist/assets/{external-link-BgErLCNT.js → external-link-kZSAO8nT.js} +1 -1
- package/ui-dist/assets/{hash-Bl7dr_UG.js → hash-BHJC2Ovu.js} +1 -1
- package/ui-dist/assets/{i18n-eDHeDY0n.js → i18n-CpTZLchQ.js} +1 -1
- package/ui-dist/assets/index-mW8W2FUu.css +1 -0
- package/ui-dist/assets/index-zDZfXoI4.js +6 -0
- package/ui-dist/assets/{infiniteQueryBehavior-ZDS92Qpp.js → infiniteQueryBehavior-CyER9hv0.js} +1 -1
- package/ui-dist/assets/loader-circle-Bc2gCU33.js +1 -0
- package/ui-dist/assets/{logos-x89HbrZ4.js → logos-B7gRObP8.js} +1 -1
- package/ui-dist/assets/marketplace-page-3qVMnF3d.js +1 -0
- package/ui-dist/assets/marketplace-page-BhFIeQzI.js +49 -0
- package/ui-dist/assets/mcp-marketplace-page-DYfteJ1D.js +40 -0
- package/ui-dist/assets/{page-layout-vZnghcFy.js → page-layout-0UcO9H9Z.js} +1 -1
- package/ui-dist/assets/play-CKDjSQFL.js +1 -0
- package/ui-dist/assets/plus-CG0QrVY_.js +1 -0
- package/ui-dist/assets/{refresh-ccw-DT98i__E.js → refresh-ccw-COVhNHtN.js} +1 -1
- package/ui-dist/assets/{refresh-cw-C47QSEwg.js → refresh-cw-Bcv40SXy.js} +1 -1
- package/ui-dist/assets/remote-access-page-CWHG-sug.js +1 -0
- package/ui-dist/assets/{rotate-cw-JtFzpNn6.js → rotate-cw-oHMKJMC8.js} +1 -1
- package/ui-dist/assets/{save-3S6-H3Xw.js → save-EqJPOF0G.js} +1 -1
- package/ui-dist/assets/search-BCAlB8nz.js +1 -0
- package/ui-dist/assets/security-config-Slh0Mayz.js +1 -0
- package/ui-dist/assets/select-CVz0t7MF.js +41 -0
- package/ui-dist/assets/setting-row-CbVHAuQt.js +1 -0
- package/ui-dist/assets/skeleton-D5rdKvzy.js +1 -0
- package/ui-dist/assets/{status-dot-vbanNPFU.js → status-dot-DpPtVzQT.js} +1 -1
- package/ui-dist/assets/{switch-BsLtHOH-.js → switch-CM29eCAR.js} +1 -1
- package/ui-dist/assets/{tabs-custom-D3HYMt6k.js → tabs-custom-YcZUWn3o.js} +1 -1
- package/ui-dist/assets/tag-chip-DMXdnLcj.js +1 -0
- package/ui-dist/assets/{trash-2-G48scll7.js → trash-2-mJT6oWa2.js} +1 -1
- package/ui-dist/assets/{use-infinite-scroll-loader-DkNhD-42.js → use-infinite-scroll-loader-DJ1L81Dz.js} +1 -1
- package/ui-dist/assets/{useConfirmDialog-BkvTN-vd.js → useConfirmDialog-BsVuqu1x.js} +1 -1
- package/ui-dist/assets/{useMutation-CBWjE2uj.js → useMutation-CNcz2fgt.js} +1 -1
- package/ui-dist/assets/x-Czwxm82I.js +1 -0
- package/ui-dist/index.html +22 -22
- package/ui-dist/runtime-icons/claude.ico +0 -0
- package/ui-dist/runtime-icons/codex-openai.svg +6 -0
- package/ui-dist/runtime-icons/hermes-agent.png +0 -0
- package/ui-dist/assets/ChannelsList-Ita2Zm1_.js +0 -8
- package/ui-dist/assets/DocBrowser-BNwbPHf4.js +0 -1
- package/ui-dist/assets/MarketplacePage-CjX2MWww.js +0 -1
- package/ui-dist/assets/MarketplacePage-D0sDlYX4.js +0 -49
- package/ui-dist/assets/McpMarketplacePage-BGKJm1sJ.js +0 -40
- package/ui-dist/assets/ModelConfig-BzZenCH-.js +0 -1
- package/ui-dist/assets/ProvidersList-BbVzRxjY.js +0 -1
- package/ui-dist/assets/RemoteAccessPage-BaDH_X1Q.js +0 -1
- package/ui-dist/assets/RuntimeConfig-F_XKGgLm.js +0 -1
- package/ui-dist/assets/SearchConfig-BGkzXQP-.js +0 -1
- package/ui-dist/assets/SessionsConfig-ChHQ7M5c.js +0 -2
- package/ui-dist/assets/chat-page-Doe0yTtB.js +0 -58
- package/ui-dist/assets/chat-session-display-cw78aiI_.js +0 -1
- package/ui-dist/assets/config-layout-CHs0mAaR.js +0 -1
- package/ui-dist/assets/desktop-update-config-Dpcf4BKG.js +0 -1
- package/ui-dist/assets/index-CF9xve0E.js +0 -6
- package/ui-dist/assets/index-FgA52VBt.css +0 -1
- package/ui-dist/assets/loader-circle-ACM1s51e.js +0 -1
- package/ui-dist/assets/play-CFUwCA2E.js +0 -1
- package/ui-dist/assets/plus-rYsv72JG.js +0 -1
- package/ui-dist/assets/popover-Bg1VoTZ6.js +0 -1
- package/ui-dist/assets/search-3kFR_zh9.js +0 -1
- package/ui-dist/assets/security-config-BWaiARNk.js +0 -1
- package/ui-dist/assets/select-DJ2MUjBB.js +0 -41
- package/ui-dist/assets/skeleton-ByQepn0M.js +0 -1
- package/ui-dist/assets/x-ByDbItbq.js +0 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{_ as e,i as t,m as n,n as r,p as i,t as a,u as o}from"./i18n-CpTZLchQ.js";import{r as s}from"./dist-BruyLa92.js";import{a as c,i as l,n as u,r as d,t as f}from"./select-CVz0t7MF.js";import{t as p}from"./createLucideIcon-dy5ie7Ox.js";import{t as m}from"./hash-BHJC2Ovu.js";import{t as h}from"./refresh-cw-Bcv40SXy.js";import{t as g}from"./search-BCAlB8nz.js";import{i as _,l as v,n as y,t as b,u as x}from"./chat-session-display-DsYHx0RZ.js";import{A as ee,B as te,Dt as S,E as C,M as w,Mt as T,mt as E,wt as D}from"./index-zDZfXoI4.js";import{n as O,t as k}from"./page-layout-0UcO9H9Z.js";import{t as A}from"./useConfirmDialog-BsVuqu1x.js";var j=p(`Clock`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`polyline`,{points:`12 6 12 12 16 14`,key:`68esgv`}]]),M=p(`Inbox`,[[`polyline`,{points:`22 12 16 12 14 15 10 15 8 12 2 12`,key:`o97t9d`}],[`path`,{d:`M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z`,key:`oot6mr`}]]),N=e(n(),1),P=i(),F=`__unknown_channel__`;function I(e){return r(e)}function L(e){let t=e.indexOf(`:`);return t<=0?F:e.slice(0,t).trim()||F}function R(e){return e===F?t(`sessionsUnknownChannel`):e}function z(e){return e===`service`?`system`:e===`tool`?`tool`:e}function B(e){let t=[];for(let n of e.parts){if(n.type===`text`||n.type===`rich-text`||n.type===`reasoning`){t.push(n.text);continue}if(n.type===`tool-invocation`){let e=n.toolName?.trim()?`[${n.toolName.trim()}]`:`[tool]`;if(n.state===`result`&&typeof n.result==`string`&&n.result.trim()){t.push(`${e} ${n.result.trim()}`);continue}t.push(e)}}return t.join(`
|
|
2
|
+
`).trim()}function V({session:e,summary:t,channel:n,isSelected:r,onSelect:i}){let s=R(n),c=b(e);return(0,P.jsxs)(`button`,{onClick:i,className:o(`w-full text-left p-3.5 rounded-xl transition-all duration-200 outline-none focus:outline-none focus:ring-0 group`,r?`bg-brand-50 border border-brand-100/50`:`bg-transparent border border-transparent hover:bg-gray-50/80`),children:[(0,P.jsxs)(`div`,{className:`flex items-start justify-between mb-1.5`,children:[(0,P.jsx)(`div`,{className:o(`font-semibold truncate pr-2 flex-1 text-sm`,r?`text-brand-800`:`text-gray-900`),children:c}),(0,P.jsx)(`div`,{className:o(`text-[10px] font-bold px-2 py-0.5 rounded-full shrink-0 capitalize`,r?`bg-white text-brand-600 shadow-[0_1px_2px_rgba(0,0,0,0.02)]`:`bg-gray-100 text-gray-500`),children:s})]}),(0,P.jsxs)(`div`,{className:o(`flex items-center text-xs justify-between mt-2 font-medium`,r?`text-brand-600/80`:`text-gray-400`),children:[(0,P.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,P.jsx)(`span`,{className:`inline-flex h-3.5 w-3.5 shrink-0 items-center justify-center`,children:t.status===`running`?(0,P.jsx)(v,{status:`running`}):null}),(0,P.jsx)(j,{className:`w-3.5 h-3.5 opacity-70`}),(0,P.jsx)(`span`,{className:`truncate max-w-[100px]`,children:a(t.updatedAt)})]}),(0,P.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,P.jsx)(S,{className:`w-3.5 h-3.5 opacity-70`}),(0,P.jsx)(`span`,{children:t.messageCount})]})]})]})}function H({message:e}){let t=z(e.role),n=t===`user`,r=B(e);return(0,P.jsx)(`div`,{className:o(`flex w-full mb-6`,n?`justify-end`:`justify-start`),children:(0,P.jsxs)(`div`,{className:o(`max-w-[85%] rounded-[1.25rem] p-5 flex gap-3 text-sm`,n?`bg-primary text-white rounded-tr-sm`:`bg-gray-50 text-gray-800 rounded-tl-sm border border-gray-100/50`),children:[(0,P.jsx)(`div`,{className:`shrink-0 pt-0.5`,children:n?(0,P.jsx)(x,{className:`w-4 h-4 text-primary-100`}):(0,P.jsx)(T,{className:`w-4 h-4 text-gray-400`})}),(0,P.jsxs)(`div`,{className:`flex-1 space-y-1 overflow-x-hidden`,children:[(0,P.jsxs)(`div`,{className:`flex items-baseline justify-between gap-4 mb-2`,children:[(0,P.jsx)(`span`,{className:o(`font-semibold text-xs capitalize`,n?`text-primary-50`:`text-gray-900`),children:t}),(0,P.jsx)(`span`,{className:o(`text-[10px]`,n?`text-primary-200`:`text-gray-400`),children:I(e.timestamp)})]}),(0,P.jsx)(`div`,{className:`whitespace-pre-wrap break-words leading-relaxed text-[15px]`,children:r||`-`})]})]})})}function U(){let[e,n]=(0,N.useState)(``),[r]=(0,N.useState)(100),[i,a]=(0,N.useState)(null),[p,x]=(0,N.useState)(`all`),[T,j]=(0,N.useState)(``),[I,z]=(0,N.useState)(``),[B,U]=(0,N.useState)(!1),W=w({limit:r}),G=ee(i,300),K=te(),q=C(),{confirm:ne,ConfirmDialog:re}=A(),J=(0,N.useMemo)(()=>W.data?.sessions??[],[W.data?.sessions]),Y=(0,N.useMemo)(()=>_(J),[J]),X=(0,N.useMemo)(()=>new Map(J.map(e=>[e.sessionId,e])),[J]),Z=(0,N.useMemo)(()=>Y.filter(t=>p!==`all`&&L(t.key)!==p?!1:y(t,e)),[e,p,Y]),Q=(0,N.useMemo)(()=>Y.find(e=>e.key===i)??null,[i,Y]),$=(0,N.useMemo)(()=>i?X.get(i)??null:null,[i,X]),ie=(0,N.useMemo)(()=>{let e=new Set;for(let t of Y)e.add(L(t.key));return Array.from(e).sort((e,t)=>e===F?1:t===F?-1:e.localeCompare(t))},[Y]);return(0,N.useEffect)(()=>{i&&!X.has(i)&&a(null)},[i,X]),(0,N.useEffect)(()=>{Q?(j(Q.label||``),z(Q.preferredModel||``)):(j(``),z(``)),U(!1)},[Q]),(0,P.jsxs)(O,{fullHeight:!0,children:[(0,P.jsx)(k,{title:t(`sessionsPageTitle`),description:t(`sessionsPageDescription`)}),(0,P.jsxs)(`div`,{className:`flex-1 flex gap-6 min-h-0 relative`,children:[(0,P.jsxs)(`div`,{className:`w-[320px] flex flex-col shrink-0 bg-white rounded-2xl shadow-sm border border-gray-200 overflow-hidden`,children:[(0,P.jsxs)(`div`,{className:`px-4 py-4 border-b border-gray-100 bg-white z-10 shrink-0 space-y-3`,children:[(0,P.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,P.jsxs)(`span`,{className:`text-[11px] font-semibold text-gray-400 uppercase tracking-wider`,children:[Y.length,` `,t(`sessionsListTitle`)]}),(0,P.jsx)(s,{variant:`ghost`,size:`icon`,className:`h-7 w-7 rounded-lg text-gray-400 hover:text-gray-700 hover:bg-gray-100`,onClick:()=>W.refetch(),children:(0,P.jsx)(h,{className:o(`h-3.5 w-3.5`,W.isFetching&&`animate-spin`)})})]}),(0,P.jsxs)(f,{value:p,onValueChange:x,children:[(0,P.jsx)(l,{className:`w-full h-8.5 rounded-lg bg-gray-50/50 hover:bg-gray-100 border-gray-200 focus:ring-0 shadow-none text-xs font-medium text-gray-700`,children:(0,P.jsx)(c,{placeholder:t(`sessionsAllChannels`)})}),(0,P.jsxs)(u,{className:`rounded-xl shadow-lg border-gray-100 max-w-[280px]`,children:[(0,P.jsx)(d,{value:`all`,className:`rounded-lg text-xs`,children:t(`sessionsAllChannels`)}),ie.map(e=>(0,P.jsx)(d,{value:e,className:`rounded-lg text-xs truncate pr-6`,children:R(e)},e))]})]}),(0,P.jsxs)(`div`,{className:`relative w-full`,children:[(0,P.jsx)(g,{className:`h-3.5 w-3.5 absolute left-3 top-2.5 text-gray-400`}),(0,P.jsx)(E,{value:e,onChange:e=>n(e.target.value),placeholder:t(`sessionsSearchPlaceholder`),className:`pl-8 h-8.5 rounded-lg bg-gray-50/50 border-gray-200 focus-visible:bg-white text-xs`})]})]}),(0,P.jsx)(`div`,{className:`flex-1 overflow-y-auto p-3 space-y-1 pb-10 custom-scrollbar relative`,children:W.isLoading?(0,P.jsx)(`div`,{className:`text-sm text-gray-400 p-4 text-center`,children:t(`sessionsLoading`)}):Z.length===0?(0,P.jsxs)(`div`,{className:`text-sm text-gray-400 p-4 text-center border-2 border-dashed border-gray-100 rounded-xl mt-4`,children:[(0,P.jsx)(M,{className:`w-8 h-8 mx-auto mb-2 text-gray-300`}),t(`sessionsEmpty`)]}):Z.map(e=>{let t=X.get(e.key);return t?(0,P.jsx)(V,{session:e,summary:t,channel:L(e.key),isSelected:i===e.key,onSelect:()=>a(e.key)},e.key):null})})]}),(0,P.jsxs)(`div`,{className:`flex-1 min-w-0 flex flex-col overflow-hidden relative bg-white rounded-2xl shadow-sm border border-gray-200`,children:[(K.isPending||q.isPending)&&(0,P.jsx)(`div`,{className:`absolute top-0 left-0 w-full h-1 bg-primary/20 overflow-hidden z-20`,children:(0,P.jsx)(`div`,{className:`h-full bg-primary animate-pulse w-1/3 rounded-r-full`})}),i&&Q&&$?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(`div`,{className:`shrink-0 border-b border-gray-100 bg-white px-8 py-5 z-10 space-y-4`,children:[(0,P.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,P.jsxs)(`div`,{className:`flex items-center gap-4`,children:[(0,P.jsx)(`div`,{className:`h-12 w-12 rounded-[14px] bg-gray-50 border border-gray-100 flex items-center justify-center text-gray-400 shrink-0`,children:(0,P.jsx)(m,{className:`h-6 w-6`})}),(0,P.jsxs)(`div`,{children:[(0,P.jsxs)(`div`,{className:`flex items-center gap-2.5 mb-1.5`,children:[(0,P.jsx)(`h3`,{className:`text-lg font-bold text-gray-900 tracking-tight`,children:b(Q)}),(0,P.jsx)(`span`,{className:`text-[10px] font-bold px-2 py-0.5 rounded-full bg-gray-100 text-gray-500 uppercase tracking-widest`,children:R(L(Q.key))}),$.status===`running`?(0,P.jsx)(v,{status:`running`,className:`h-4 w-4`}):null]}),(0,P.jsx)(`div`,{className:`text-xs text-gray-500 font-mono break-all line-clamp-1 opacity-70`,title:i,children:i})]})]}),(0,P.jsxs)(`div`,{className:`flex items-center gap-2 shrink-0`,children:[(0,P.jsxs)(s,{variant:`outline`,size:`sm`,onClick:()=>U(!B),className:o(`h-8.5 rounded-lg shadow-none border-gray-200 transition-all text-xs font-semibold`,B?`bg-gray-100 text-gray-900`:`hover:bg-gray-50 hover:text-gray-900`),children:[(0,P.jsx)(D,{className:`w-3.5 h-3.5 mr-1.5`}),t(`sessionsMetadata`)]}),(0,P.jsx)(s,{variant:`outline`,size:`sm`,onClick:async()=>{i&&await ne({title:t(`sessionsDeleteConfirm`)+`?`,variant:`destructive`,confirmLabel:t(`sessionsDeleteConfirm`)})&&q.mutate({sessionId:i},{onSuccess:()=>a(null)})},className:`h-8.5 rounded-lg shadow-none hover:bg-red-50 hover:text-red-600 hover:border-red-200 border-gray-200 text-xs font-semibold text-red-500`,children:t(`delete`)})]})]}),B&&(0,P.jsxs)(`div`,{className:`flex items-center gap-3 bg-gray-50/50 p-3 rounded-lg border border-gray-100 animate-slide-in`,children:[(0,P.jsx)(E,{placeholder:t(`sessionsLabelPlaceholder`),value:T,onChange:e=>j(e.target.value),className:`h-8 text-sm bg-white`}),(0,P.jsx)(E,{placeholder:t(`sessionsModelPlaceholder`),value:I,onChange:e=>z(e.target.value),className:`h-8 text-sm bg-white`}),(0,P.jsx)(s,{size:`sm`,onClick:()=>{i&&(K.mutate({sessionId:i,data:{label:T.trim()||null,preferredModel:I.trim()||null}}),U(!1))},className:`h-8 px-4 shrink-0 shadow-none`,disabled:K.isPending,children:t(`sessionsSaveMeta`)})]})]}),(0,P.jsxs)(`div`,{className:`flex-1 overflow-y-auto p-6 relative [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:bg-gray-300/80 [&::-webkit-scrollbar-thumb]:rounded-full`,children:[G.isLoading&&(0,P.jsx)(`div`,{className:`absolute inset-0 flex items-center justify-center bg-gray-50/50 backdrop-blur-sm z-10`,children:(0,P.jsxs)(`div`,{className:`flex flex-col items-center gap-3 animate-pulse`,children:[(0,P.jsx)(h,{className:`w-6 h-6 text-primary animate-spin`}),(0,P.jsx)(`span`,{className:`text-sm font-medium text-gray-500`,children:t(`sessionsHistoryLoading`)})]})}),G.error&&(0,P.jsx)(`div`,{className:`text-center p-6 bg-red-50 rounded-xl text-red-600 border border-red-100 text-sm`,children:G.error.message}),!G.isLoading&&G.data?.messages.length===0&&(0,P.jsxs)(`div`,{className:`h-full flex flex-col items-center justify-center text-gray-400`,children:[(0,P.jsx)(S,{className:`w-12 h-12 mb-3 text-gray-300`}),(0,P.jsx)(`p`,{className:`text-sm`,children:t(`sessionsEmpty`)})]}),(0,P.jsx)(`div`,{className:`max-w-3xl mx-auto`,children:(G.data?.messages??[]).map(e=>(0,P.jsx)(H,{message:e},e.id))})]})]}):(0,P.jsxs)(`div`,{className:`flex-1 flex flex-col items-center justify-center text-gray-400 p-8 h-full bg-white`,children:[(0,P.jsx)(`div`,{className:`w-20 h-20 bg-gray-50 rounded-3xl flex items-center justify-center mb-6 border border-gray-100 shadow-[0_2px_8px_-2px_rgba(0,0,0,0.02)] rotate-3`,children:(0,P.jsx)(M,{className:`h-8 w-8 text-gray-300 -rotate-3`})}),(0,P.jsx)(`h3`,{className:`text-lg font-bold text-gray-900 mb-2`,children:t(`sessionsNoSelectionTitle`)}),(0,P.jsx)(`p`,{className:`text-sm text-center max-w-sm leading-relaxed`,children:t(`sessionsNoSelectionDescription`)})]})]})]}),(0,P.jsx)(re,{})]})}export{U as SessionsConfig};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as e,C as t,E as n,S as r,T as i,b as a,c as o,d as s,f as c,k as l,m as u,p as d,w as f,x as p,y as m}from"./client-
|
|
1
|
+
import{A as e,C as t,E as n,S as r,T as i,b as a,c as o,d as s,f as c,k as l,m as u,p as d,w as f,x as p,y as m}from"./client-C-8fH7-c.js";import{r as h}from"./infiniteQueryBehavior-CyER9hv0.js";var g=class extends e{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new o({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=_(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=_(e);if(typeof t==`string`){let n=this.#t.get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=_(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=_(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){d.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>r(t,e))}findAll(e={}){return this.getAll().filter(t=>r(e,t))}notify(e){d.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return d.batch(()=>Promise.all(e.map(e=>e.continue().catch(f))))}};function _(e){return e.options.scope?.id}var v=class extends e{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??p(r,t),a=this.get(i);return a||(a=new s({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){d.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let n={exact:!0,...e};return this.getAll().find(e=>t(n,e))}findAll(e={}){let n=this.getAll();return Object.keys(e).length>0?n.filter(n=>t(e,n)):n}notify(e){d.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){d.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){d.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},y=new class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new v,this.#t=e.mutationCache||new g,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=u.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=c.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),r=this.#e.build(this,t),i=r.state.data;return i===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(n(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(i))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=m(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return d.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;d.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return d.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=d.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(f).catch(f)}invalidateQueries(e,t={}){return d.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=d.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(f)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(f)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let r=this.#e.build(this,t);return r.isStaleByTime(n(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(f).catch(f)}fetchInfiniteQuery(e){return e.behavior=h(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(f).catch(f)}ensureInfiniteQueryData(e){return e.behavior=h(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return c.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(a(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{i(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(a(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{i(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=p(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===l&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}}({defaultOptions:{queries:{retry:1,refetchOnWindowFocus:!0}}});export{y as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./createLucideIcon-
|
|
1
|
+
import{t as e}from"./createLucideIcon-dy5ie7Ox.js";var t=e(`BookOpen`,[[`path`,{d:`M12 7v14`,key:`1akyts`}],[`path`,{d:`M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z`,key:`ruj8y`}]]);export{t};
|