@alwith/module-chat 0.5.27 → 0.5.28
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/{chunk-yg6vhdq9.js → chunk-8em7tfgz.js} +1 -1
- package/dist/chunk-f7mgf43p.js +2 -0
- package/dist/session-list/navigation-controls.js +1 -1
- package/dist/session-list/navigation-tabs.js +1 -1
- package/dist/session-list/session-list.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-zk6745qh.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{c}from"./chunk-90r8y97z.js";import{r}from"./chunk-eg86g265.js";import{m,u}from"./chunk-9gt81b51.js";import{je}from"./chunk-
|
|
1
|
+
import{c}from"./chunk-90r8y97z.js";import{r}from"./chunk-eg86g265.js";import{m,u}from"./chunk-9gt81b51.js";import{je}from"./chunk-f7mgf43p.js";import{cn as s}from"cn";import{ArrowLeftIcon as a,ArrowRightIcon as l,SlidersHorizontalIcon as p}from"lucide-react";import{DropdownMenu as d,DropdownMenuContent as g,DropdownMenuItem as f,DropdownMenuTrigger as w}from"@nyssance/shadcn/vega/components/ui/dropdown-menu";import{jsx as o,jsxs as L}from"react/jsx-runtime";function mr({onCollapseAll:i}){let{t:n}=r();return L(d,{children:[o(w,{render:o(je,{"aria-label":n("sessionList.filter"),title:n("sessionList.filter")}),children:o(p,{})}),o(g,{align:"end",className:"w-52",children:o(f,{onClick:i,children:n("sessionList.collapseAllGroups")})})]})}function gr({screen:i,onSwitch:n}){let{t:e}=r(),t=e(i==="main"?"sessionList.openLeading":"sessionList.backToMain");return o(u,{className:s(c,i==="main"?"justify-start":"justify-end"),"aria-label":t,title:t,onClick:n,children:o(m,{children:i==="main"?o(a,{}):o(l,{})})})}
|
|
2
2
|
export{mr,gr};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{c}from"./chunk-90r8y97z.js";import{cn as o}from"cn";import{motion as u}from"motion/react";import{jsx as i,jsxs as g}from"react/jsx-runtime";function je({active:n,expanded:r=!1,highlight:s=!0,className:a,...l}){return i("button",{type:"button","data-active":n?"":void 0,"aria-current":n?"page":void 0,className:o(s&&c,"focus-visible:outline-foreground/10 flex shrink-0 items-center justify-center rounded-[10px] outline-hidden [corner-shape:superellipse(1.5)] focus-visible:outline-2 focus-visible:outline-offset-2 [&_svg]:size-4",r?"h-[var(--navigation-row-height,30px)] min-w-[var(--navigation-row-height,30px)]":"size-[var(--navigation-row-height,30px)]",a),...l})}function fr({tabs:n,view:r,onViewChange:s,onReset:a,notifications:l,trailing:p,className:d}){return g("div",{className:o("relative mb-2 flex h-[var(--navigation-row-height,30px)] shrink-0 items-center gap-0.5",d),children:[i("div",{role:"tablist",className:"bg-foreground/5 flex h-[var(--navigation-row-height,30px)] w-52 flex-none items-center gap-0.5 rounded-[10px] [corner-shape:superellipse(1.5)]",children:n.map((e)=>{let t=r===e.key;return g(je,{role:"tab",active:t,expanded:t,highlight:!1,"aria-selected":t,title:e.title,onClick:()=>s(e.key),onDoubleClick:a&&(()=>a(e.key)),className:o("relative isolate h-[var(--navigation-row-height,30px)] min-w-[var(--navigation-row-height,30px)] justify-start rounded-[10px] px-[6px] text-sm [corner-shape:superellipse(1.5)] [&_svg]:relative [&_svg]:z-10 [&_svg]:size-[18px] [&_svg]:shrink-0",t?"grow transition-[flex-grow] duration-200 ease-out":"grow-0 duration-0"),children:[t&&i(u.span,{layoutId:"navigation-selected-pill","aria-hidden":"true",className:"bg-foreground/8 pointer-events-none absolute inset-0 -z-10 rounded-[10px] [corner-shape:superellipse(1.5)]",transition:{duration:0.2,ease:[0.22,1,0.36,1]}}),e.icon,l?.has(e.key)&&i("span",{"data-activity-notification":!0,"aria-hidden":"true",className:"bg-destructive pointer-events-none absolute top-1 right-1 z-20 size-1.5 rounded-full motion-safe:animate-[activity-notification-pulse_2s_ease-in-out_infinite]"}),i("span",{className:o("relative z-10 grid",t?"ms-1.5 grid-cols-[1fr] transition-[grid-template-columns,margin-inline-start] duration-200 ease-out":"ms-0 grid-cols-[0fr] duration-0"),children:i("span",{className:"min-w-0 overflow-hidden whitespace-nowrap",children:e.title})})]},e.key)})}),p!=null&&i("div",{className:"ms-auto flex shrink-0 items-center gap-0.5",children:p})]})}
|
|
2
|
+
export{je,fr};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{mr,gr}from"../chunk-
|
|
1
|
+
import{mr,gr}from"../chunk-8em7tfgz.js";import"../chunk-f7mgf43p.js";import"../chunk-9gt81b51.js";import"../chunk-42atrgm1.js";import"../chunk-kd87rt80.js";import"../chunk-eg86g265.js";import"../chunk-spfbykq8.js";import"../chunk-2f9vjmxz.js";import"../chunk-90r8y97z.js";export{gr as NavigationScreenSwitch,mr as SessionListFilter};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{je,fr}from"../chunk-
|
|
1
|
+
import{je,fr}from"../chunk-f7mgf43p.js";import"../chunk-90r8y97z.js";export{je as NavigationMenuIconButton,fr as NavigationTabs};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ye,c}from"../chunk-90r8y97z.js";import{ro,w}from"../chunk-spfbykq8.js";import{Cr,r,a,Lt,o,p}from"../chunk-eg86g265.js";import{P}from"../chunk-42atrgm1.js";import{ao,so,A}from"../chunk-2f9vjmxz.js";import{$e,Me,Ke}from"../chunk-kd87rt80.js";import{C,m,u,W,At,he,ve}from"../chunk-9gt81b51.js";import{Ne,ee,lr,q}from"../chunk-eqwga6j5.js";import{Nt,M}from"../chunk-s3h496tf.js";import{fe}from"../chunk-ee0krzt0.js";import{Ve,ue}from"../chunk-tk2471ny.js";import{on}from"../chunk-wcgwtn6h.js";import{nn}from"../chunk-6t5war9h.js";import{sr}from"../chunk-2fgwkj52.js";import{vr,yr,oo,xr,br}from"../chunk-dtsybj2a.js";import{rn,ur,O,te,pr}from"../chunk-2aw4d623.js";import"../chunk-bfqqsv6a.js";import{to,me}from"../chunk-zfxwm1g9.js";import{Mt}from"../chunk-02mwhdhw.js";import"../chunk-q0z9jq6p.js";import{dr}from"../chunk-546h1tk7.js";import{cr}from"../chunk-wc53vqaw.js";import{je,fr}from"../chunk-
|
|
1
|
+
import{ye,c}from"../chunk-90r8y97z.js";import{ro,w}from"../chunk-spfbykq8.js";import{Cr,r,a,Lt,o,p}from"../chunk-eg86g265.js";import{P}from"../chunk-42atrgm1.js";import{ao,so,A}from"../chunk-2f9vjmxz.js";import{$e,Me,Ke}from"../chunk-kd87rt80.js";import{C,m,u,W,At,he,ve}from"../chunk-9gt81b51.js";import{Ne,ee,lr,q}from"../chunk-eqwga6j5.js";import{Nt,M}from"../chunk-s3h496tf.js";import{fe}from"../chunk-ee0krzt0.js";import{Ve,ue}from"../chunk-tk2471ny.js";import{on}from"../chunk-wcgwtn6h.js";import{nn}from"../chunk-6t5war9h.js";import{sr}from"../chunk-2fgwkj52.js";import{vr,yr,oo,xr,br}from"../chunk-dtsybj2a.js";import{rn,ur,O,te,pr}from"../chunk-2aw4d623.js";import"../chunk-bfqqsv6a.js";import{to,me}from"../chunk-zfxwm1g9.js";import{Mt}from"../chunk-02mwhdhw.js";import"../chunk-q0z9jq6p.js";import{dr}from"../chunk-546h1tk7.js";import{cr}from"../chunk-wc53vqaw.js";import{je,fr}from"../chunk-f7mgf43p.js";import{Xn,Jn,It}from"../chunk-0wr12bg8.js";import{rr}from"../chunk-c26xgmyr.js";import{mr,gr}from"../chunk-8em7tfgz.js";import{wr}from"../chunk-99w9jq4v.js";import{ar}from"../chunk-rf5g26qv.js";import{hr}from"../chunk-az5ayr2d.js";import{sessionGroup as J}from"@nyssance/codex-acp-v2/client";import{cn as Z}from"cn";import{FolderClosedIcon as j,FolderOpenIcon as oe,MessagesSquareIcon as se}from"lucide-react";import{useMemo as ne,useState as T}from"react";import{Button as ie}from"@nyssance/shadcn/vega/components/ui/button";import{Skeleton as U}from"@nyssance/shadcn/vega/components/ui/skeleton";import{jsx as t,jsxs as g,Fragment as pe}from"react/jsx-runtime";var B=6,re=5;function ae(){let[f,S]=T(()=>new Map),[x,N]=T(()=>new Map),[d,v]=T(!1);return{open:f,setOpen:(i,s)=>S((y)=>new Map(y).set(i,s)),revealed:x,reveal:(i)=>N((s)=>new Map(s).set(i,Number.POSITIVE_INFINITY)),allProjects:d,showAllProjects:()=>v(!0),reset:()=>{S(new Map),v(!1)}}}function Pe({selectedId:f,onSelect:S,viewport:x,expansion:N,wrapGroupHeader:d,rowActions:v}){let i=r(),{t:s}=i,y=a(),E=o((e)=>e.sessionList),l=o((e)=>e.projectContext),L=o((e)=>e.sessionListLoaded),I=o((e)=>e.sessionListError),b=o((e)=>e.connection),F=o((e)=>e.connectionError),V=ae(),{open:z,setOpen:D,revealed:K,reveal:Q,allProjects:G,showAllProjects:X}=N??V,R=ne(()=>L&&l?Ne(E,l):[],[L,E,l]),Y=(e,n)=>t(on,{sessionRow:e,active:e.sessionId===f,onSelect:S,onHoverCardOpenChange:n,actions:v?.(e)},e.sessionId);return g(pe,{children:[!L&&I===null&&b!=="failed"&&(b!=="disconnected"||F===null)&&t("div",{"aria-busy":"true",className:"flex flex-col gap-0.5",children:["w-24","w-32"].map((e)=>g("div",{"data-slot":"project-skeleton-row",className:"relative flex h-[30px] w-full items-center gap-1 rounded-[10px] ps-1 pe-1.5 [corner-shape:superellipse(1.5)]",children:[t(m,{children:t(j,{className:"text-foreground/40 size-3.5"})}),t(U,{className:Z("bg-foreground/12 h-3 rounded-sm",e)}),t(U,{className:"bg-foreground/12 ms-auto h-2.5 w-4 rounded-sm"})]},e))}),I!==null&&g("div",{role:"alert",className:"text-muted-foreground flex flex-col items-start gap-2 px-3 py-4 text-sm",children:[t("span",{children:I}),t(ie,{variant:"outline",size:"sm",onClick:()=>void p(i,y.listSessions({reset:!0})),children:s("sessionList.retry")})]}),(G?R:R.slice(0,B)).map(([e,n])=>{let k=z.get(e)??!1,h=e===q,_=K.get(e)??re;return g(W,{wrapHeader:d&&((H)=>d(h?null:l&&n[0]?J(l,n[0]).cwd:e,H)),open:k,onOpenChange:(H)=>D(e,H),leading:h?t(se,{className:"text-foreground size-3.5 shrink-0"}):k?t(oe,{className:"text-foreground size-3.5 shrink-0"}):t(j,{className:"text-foreground size-3.5 shrink-0"}),label:h?s("sessionList.quickChats"):ee(e,l??void 0),count:n.length,children:[t(nn,{sessionRows:n.slice(0,_),viewport:x,renderRow:Y}),n.length>_&&t(u,{className:`${c} text-muted-foreground ps-8`,onClick:()=>Q(e),children:s("sessionList.showAll")})]},e)}),!G&&R.length>B&&t(u,{className:`${c} text-muted-foreground ps-[9px]`,onClick:X,children:s("sessionList.showAll")})]})}export{xr as AccountLanguageMenu,br as AccountMenu,vr as AccountMenuGroup,oo as AccountMenuItem,yr as AccountMenuSeparator,dr as ActivityList,sr as ArchivedSessions,cr as HelpMenu,M as HoverInfoAction,Nt as HoverInfoCard,c as MENU_HIGHLIGHT,W as NavigationGroup,rr as NavigationHeader,u as NavigationItemButton,m as NavigationLeading,je as NavigationMenuIconButton,gr as NavigationScreenSwitch,ve as NavigationSessionItem,C as NavigationStack,fr as NavigationTabs,P as OverflowMarquee,q as QUICK_CHATS_GROUP,ye as ROW_HIGHLIGHT,ao as RUN_STATE_COLOR,so as RUN_STATE_TEXT,fe as RowStopButton,ue as SessionInfoCard,Pe as SessionList,mr as SessionListFilter,Cr as SessionListProvider,on as SessionRow,A as SessionStateDot,wr as SessionStateMenu,Jn as ShortcutHint,Xn as ShortcutKey,It as ShortcutTooltip,ro as SidebarOverlayContext,$e as TRAILING_GROUP,Me as TrailingSlot,Ke as TrailingSwap,nn as VirtualSessionRows,me as displayShortcut,to as formatShortcutForDisplay,Ne as groupSessions,lr as isQuickChatDirectory,ee as projectName,Ve as relativeTime,ur as resetSessionNavigation,rn as sessionNavigationStore,ar as useActivityNotification,Mt as useActivityPreview,Lt as useDeleteSession,At as useNavigationHoverCardClose,he as useNavigationHoverCardPin,pr as useNavigationView,hr as useProjectSessions,a as useSessionListClient,ae as useSessionListExpansion,r as useSessionListHost,o as useSessionListState,O as useSessionNavigationState,te as useSetSessionNavigationState,w as useSidebarOverlay};
|
package/package.json
CHANGED
package/dist/chunk-zk6745qh.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{c}from"./chunk-90r8y97z.js";import{cn as o}from"cn";import{motion as u}from"motion/react";import{jsx as i,jsxs as g}from"react/jsx-runtime";function je({active:n,expanded:r=!1,highlight:s=!0,className:a,...l}){return i("button",{type:"button","data-active":n?"":void 0,"aria-current":n?"page":void 0,className:o(s&&c,"focus-visible:outline-foreground/10 flex shrink-0 items-center justify-center rounded-[10px] outline-hidden [corner-shape:superellipse(1.5)] focus-visible:outline-2 focus-visible:outline-offset-2 [&_svg]:size-4",r?"h-[var(--navigation-row-height)] min-w-[var(--navigation-row-height)]":"size-[var(--navigation-row-height)]",a),...l})}function fr({tabs:n,view:r,onViewChange:s,onReset:a,notifications:l,trailing:p,className:d}){return g("div",{className:o("relative mb-2 flex h-[var(--navigation-row-height,30px)] shrink-0 items-center gap-0.5",d),children:[i("div",{role:"tablist",className:"bg-foreground/5 flex h-[var(--navigation-row-height,30px)] w-52 flex-none items-center gap-0.5 rounded-[10px] [corner-shape:superellipse(1.5)]",children:n.map((e)=>{let t=r===e.key;return g(je,{role:"tab",active:t,expanded:t,highlight:!1,"aria-selected":t,title:e.title,onClick:()=>s(e.key),onDoubleClick:a&&(()=>a(e.key)),className:o("relative isolate h-[var(--navigation-row-height,30px)] min-w-[var(--navigation-row-height,30px)] justify-start rounded-[10px] px-[6px] text-sm [corner-shape:superellipse(1.5)] [&_svg]:relative [&_svg]:z-10 [&_svg]:size-[18px] [&_svg]:shrink-0",t?"grow transition-[flex-grow] duration-200 ease-out":"grow-0 duration-0"),children:[t&&i(u.span,{layoutId:"navigation-selected-pill","aria-hidden":"true",className:"bg-foreground/8 pointer-events-none absolute inset-0 -z-10 rounded-[10px] [corner-shape:superellipse(1.5)]",transition:{duration:0.2,ease:[0.22,1,0.36,1]}}),e.icon,l?.has(e.key)&&i("span",{"data-activity-notification":!0,"aria-hidden":"true",className:"bg-destructive pointer-events-none absolute top-1 right-1 z-20 size-1.5 rounded-full motion-safe:animate-[activity-notification-pulse_2s_ease-in-out_infinite]"}),i("span",{className:o("relative z-10 grid",t?"ms-1.5 grid-cols-[1fr] transition-[grid-template-columns,margin-inline-start] duration-200 ease-out":"ms-0 grid-cols-[0fr] duration-0"),children:i("span",{className:"min-w-0 overflow-hidden whitespace-nowrap",children:e.title})})]},e.key)})}),p!=null&&i("div",{className:"ms-auto flex shrink-0 items-center gap-0.5",children:p})]})}
|
|
2
|
-
export{je,fr};
|