@kimuson/claude-code-viewer 0.7.3 → 0.7.4

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 (39) hide show
  1. package/dist/main.js +65 -24
  2. package/dist/main.js.map +3 -3
  3. package/dist/static/assets/{AuthProvider-Ds-c4CWc.js → AuthProvider-BuZnJ5E7.js} +2 -2
  4. package/dist/static/assets/NotFound-Dwvf0Bo3.js +1 -0
  5. package/dist/static/assets/ProtectedRoute-CTOJTf-s.js +1 -0
  6. package/dist/static/assets/card-5CIj0Vrs.js +1 -0
  7. package/dist/static/assets/createLucideIcon-CRmASjPp.js +1 -0
  8. package/dist/static/assets/{dist-CG2L4mx5.js → dist-B0PGU2Rq.js} +1 -1
  9. package/dist/static/assets/dist-DiNC9I1q.js +84 -0
  10. package/dist/static/assets/{eye-SsvAY8oF.js → eye-DomqS332.js} +1 -1
  11. package/dist/static/assets/{index-DNPVlDui.css → index-B5oyQ9A3.css} +1 -1
  12. package/dist/static/assets/index-PituKE8G.js +20 -0
  13. package/dist/static/assets/{input-B_6IT1CP.js → input-DxYncE22.js} +1 -1
  14. package/dist/static/assets/{label-Cw6sZ5kQ.js → label-BIlZTnVW.js} +1 -1
  15. package/dist/static/assets/{login-CKSjZM5v.js → login-BgVcUPOp.js} +1 -1
  16. package/dist/static/assets/markdown-parser-vendor-Dm3WZMeS.js +29 -0
  17. package/dist/static/assets/{projects-DH0K12HM.js → projects-BrdJ1LSG.js} +1 -1
  18. package/dist/static/assets/{refractor-vendor-B-OUwWR7.js → refractor-vendor-CoTYH44G.js} +1 -1
  19. package/dist/static/assets/{routes-CzLZwWu9.js → routes-BCc9450k.js} +1 -1
  20. package/dist/static/assets/session-BruJZygw.js +2 -0
  21. package/dist/static/assets/session-DXLe2gKP.js +13 -0
  22. package/dist/static/assets/session-DheVJS_-.js +1 -0
  23. package/dist/static/assets/{syntax-highlighter-vendor-CwGXx8v4.js → syntax-highlighter-vendor-E92u2I9N.js} +4 -4
  24. package/dist/static/assets/{xterm-vendor-DRG2K165.js → xterm-vendor-C7zPO6uk.js} +3 -3
  25. package/dist/static/index.html +11 -9
  26. package/dist/static/sw.js +1 -1
  27. package/package.json +11 -8
  28. package/dist/static/assets/ProtectedRoute-BTfjJdM-.js +0 -1
  29. package/dist/static/assets/card-DGrqtTaC.js +0 -1
  30. package/dist/static/assets/createLucideIcon-BL_meogc.js +0 -1
  31. package/dist/static/assets/dist-Cartj9I0.js +0 -84
  32. package/dist/static/assets/index-Bmg7UpkS.js +0 -20
  33. package/dist/static/assets/markdown-parser-vendor-D9j1a-bm.js +0 -29
  34. package/dist/static/assets/session-DItKrSkz.js +0 -12
  35. package/dist/static/assets/session-DdZMHc5j.js +0 -1
  36. /package/dist/static/assets/{messages-BugsdlC4.js → messages-CCdvpjPA.js} +0 -0
  37. /package/dist/static/assets/{messages-C9GGR_pN.js → messages-CXMLmBXL.js} +0 -0
  38. /package/dist/static/assets/{messages-CXGVSZXJ.js → messages-D1gyj6vH.js} +0 -0
  39. /package/dist/static/assets/{workbox-window.prod.es5-DaBTyiAs.js → workbox-window.prod.es5-DHdPsNjM.js} +0 -0
@@ -1 +1 @@
1
- import{r as e}from"./rolldown-runtime-Dw2cE7zH.js";import{d as t,f as n}from"./markdown-parser-vendor-D9j1a-bm.js";import{ct as r,n as i,st as a}from"./AuthProvider-Ds-c4CWc.js";var o=e(n()),s=t(),c=()=>{let e=r(),{isAuthenticated:t}=i();return(0,o.useEffect)(()=>{e(t?{to:`/projects`}:{to:`/login`})},[t,e]),(0,s.jsx)(`div`,{className:`min-h-screen flex items-center justify-center bg-background`,children:(0,s.jsx)(a,{className:`h-8 w-8 animate-spin text-muted-foreground`})})};export{c as component};
1
+ import{r as e}from"./rolldown-runtime-Dw2cE7zH.js";import{d as t,f as n}from"./markdown-parser-vendor-Dm3WZMeS.js";import{ct as r,n as i,st as a}from"./AuthProvider-BuZnJ5E7.js";var o=e(n()),s=t(),c=()=>{let e=r(),{isAuthenticated:t}=i();return(0,o.useEffect)(()=>{e(t?{to:`/projects`}:{to:`/login`})},[t,e]),(0,s.jsx)(`div`,{className:`min-h-screen flex items-center justify-center bg-background`,children:(0,s.jsx)(a,{className:`h-8 w-8 animate-spin text-muted-foreground`})})};export{c as component};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/session-DheVJS_-.js","assets/dist-B0PGU2Rq.js","assets/rolldown-runtime-Dw2cE7zH.js","assets/markdown-parser-vendor-Dm3WZMeS.js","assets/NotFound-Dwvf0Bo3.js","assets/card-5CIj0Vrs.js","assets/createLucideIcon-CRmASjPp.js","assets/session-DXLe2gKP.js","assets/syntax-highlighter-vendor-E92u2I9N.js","assets/refractor-vendor-CoTYH44G.js","assets/ProtectedRoute-CTOJTf-s.js","assets/dist-DiNC9I1q.js","assets/AuthProvider-BuZnJ5E7.js","assets/input-DxYncE22.js","assets/xterm-vendor-C7zPO6uk.js","assets/xterm-vendor-BrP-ENHg.css","assets/eye-DomqS332.js","assets/label-BIlZTnVW.js"])))=>i.map(i=>d[i]);
2
+ import{r as e}from"./rolldown-runtime-Dw2cE7zH.js";import{d as t,f as n}from"./markdown-parser-vendor-Dm3WZMeS.js";import{D as r,J as i,K as a,N as o,Y as s,ct as c,dt as l,lt as u,q as d}from"./AuthProvider-BuZnJ5E7.js";import{$ as f,Et as p,H as m,L as h,P as g,W as ee,_t as _,jt as te,lt as v,ot as y,tt as ne,ut as re,z as ie}from"./dist-DiNC9I1q.js";import{t as b}from"./createLucideIcon-CRmASjPp.js";import{c as ae,s as x}from"./card-5CIj0Vrs.js";function oe(e){return!!e?.isNotFound}var S=`__root__`;function C(e){if(e.statusCode=e.statusCode||e.code||307,!e._builtLocation&&!e.reloadDocument&&typeof e.href==`string`)try{new URL(e.href),e.reloadDocument=!0}catch{}let t=new Headers(e.headers);e.href&&t.get(`Location`)===null&&t.set(`Location`,e.href);let n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function se(e){return e instanceof Response&&!!e.options}var w=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=e=>{this.originalIndex=e.originalIndex;let t=this.options,n=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=S:this.parentRoute||_();let r=n?S:t?.path;r&&r!==`/`&&(r=v(r));let i=t?.id||r,a=n?S:y([this.parentRoute.id===`__root__`?``:this.parentRoute.id,i]);r===`__root__`&&(r=`/`),a!==`__root__`&&(a=y([`/`,a]));let o=a===`__root__`?`/`:y([this.parentRoute.fullPath,r]);this._path=r,this._id=a,this._fullPath=o,this._to=re(o)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e==`object`&&e&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>C({from:this.fullPath,...e}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error(`Route cannot have both an 'id' and a 'path' option.`)}},ce=class extends w{constructor(e){super(e)}},T=e(n(),1),E=T.createContext(void 0),D=T.createContext(void 0),O={state:void 0,get:()=>void 0,subscribe:()=>()=>{}};function k(e){let t=u(),n=T.useContext(e.from?D:E),r=e.from??n,i=r?e.from?t.stores.getMatchStoreByRouteId(r):t.stores.activeMatchStoresById.get(r):void 0,a=T.useRef(void 0);return ne(i??O,n=>{if((e.shouldThrow??!0)&&!n&&_(),n===void 0)return;let r=e.select?e.select(n):n;if(e.structuralSharing??t.options.defaultStructuralSharing){let e=te(a.current,r);return a.current=e,e}return r})}function A(e){return k({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function j(e){let{select:t,...n}=e;return k({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function M(e){return k({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{let n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function N(e){return k({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function P(e){return k({...e,select:t=>e.select?e.select(t.context):t.context})}var F=t(),I=class extends w{constructor(e){super(e),this.useMatch=e=>k({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>P({...e,from:this.id}),this.useSearch=e=>N({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>M({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>j({...e,from:this.id}),this.useLoaderData=e=>A({...e,from:this.id}),this.useNavigate=()=>c({from:this.fullPath}),this.Link=T.forwardRef((e,t)=>(0,F.jsx)(f,{ref:t,from:this.fullPath,...e}))}};function L(e){return new I(e)}var R=class extends ce{constructor(e){super(e),this.useMatch=e=>k({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>P({...e,from:this.id}),this.useSearch=e=>N({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>M({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>j({...e,from:this.id}),this.useLoaderData=e=>A({...e,from:this.id}),this.useNavigate=()=>c({from:this.fullPath}),this.Link=T.forwardRef((e,t)=>(0,F.jsx)(f,{ref:t,from:this.fullPath,...e}))}};function z(e){return new R(e)}function B(e){return typeof e==`object`?new V(e,{silent:!0}).createRoute(e):new V(e,{silent:!0}).createRoute}var V=class{constructor(e,t){this.path=e,this.createRoute=e=>{let t=L(e);return t.isRoot=!1,t},this.silent=t?.silent}};function H(e,t){let n,r,i,a,o=()=>(n||=e().then(e=>{n=void 0,r=e[t??`default`]}).catch(e=>{if(i=e,p(i)&&i instanceof Error&&typeof window<`u`&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${i.message}`;sessionStorage.getItem(e)||(sessionStorage.setItem(e,`1`),a=!0)}}),n),s=function(e){if(a)throw window.location.reload(),new Promise(()=>{});if(i)throw i;if(!r)if(l)l(o());else throw o();return T.createElement(r,e)};return s.preload=o,s}var U=`modulepreload`,W=function(e){return`/`+e},G={},K=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=W(t,n),t in G)return;G[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:U,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},le=b(`circle-alert`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]]),ue=b(`refresh-cw`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]);function de(e){return{onFetch:(t,n)=>{let r=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,c=t.state.data?.pages||[],l=t.state.data?.pageParams||[],u={pages:[],pageParams:[]},f=0,p=async()=>{let n=!1,p=e=>{a(e,()=>t.signal,()=>n=!0)},m=s(t.options,t.fetchOptions),h=async(e,r,a)=>{if(n)return Promise.reject();if(r==null&&e.pages.length)return Promise.resolve(e);let o=await m((()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:a?`backward`:`forward`,meta:t.options.meta};return p(e),e})()),{maxPages:s}=t.options,c=a?i:d;return{pages:c(e.pages,o,s),pageParams:c(e.pageParams,r,s)}};if(o&&c.length){let e=o===`backward`,t=e?J:q,n={pages:c,pageParams:l};u=await h(n,t(r,n),e)}else{let t=e??c.length;do{let e=f===0?l[0]??r.initialPageParam:q(r,u);if(f>0&&e==null)break;u=await h(u,e),f++}while(f<t)}return u};t.options.persister?t.fetchFn=()=>t.options.persister?.(p,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=p}}}function q(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function J(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}function fe(e,t){return t?q(e,t)!=null:!1}function pe(e,t){return!t||!e.getPreviousPageParam?!1:J(e,t)!=null}var me=ae(`relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current`,{variants:{variant:{default:`bg-card text-card-foreground`,destructive:`text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90`}},defaultVariants:{variant:`default`}}),he=({className:e,variant:t,...n})=>(0,F.jsx)(`div`,{"data-slot":`alert`,role:`alert`,className:x(me({variant:t}),e),...n}),ge=({className:e,...t})=>(0,F.jsx)(`div`,{"data-slot":`alert-title`,className:x(`col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight`,e),...t}),_e=({className:e,...t})=>(0,F.jsx)(`div`,{"data-slot":`alert-description`,className:x(`text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed`,e),...t}),ve=e=>{let t=(e+`=`.repeat((4-e.length%4)%4)).replace(/-/g,`+`).replace(/_/g,`/`),n=window.atob(t),r=new Uint8Array(n.length);for(let e=0;e<n.length;++e)r[e]=n.charCodeAt(e);return r.buffer},Y=()=>`serviceWorker`in navigator&&`PushManager`in window&&`Notification`in window,X=async e=>{let t=e?.forceResubscribe===!0,n=await navigator.serviceWorker.ready,i=await n.pushManager.getSubscription();if(i&&!t){await Z(i);return}i&&t&&await i.unsubscribe();let a=await n.pushManager.getSubscription();if(a){await Z(a);return}let o=await r.api.notifications[`vapid-public-key`].$get();if(!o.ok)return;let{publicKey:s}=await o.json();await Z(await n.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:ve(s)}))},ye=()=>{let e=(0,T.useRef)(!1);(0,T.useEffect)(()=>{e.current||(e.current=!0,Y()&&Notification.permission===`granted`&&X().catch(e=>{}))},[])},be=async()=>{if(!Y())return`denied`;let e=await Notification.requestPermission();return e===`granted`&&await X({forceResubscribe:!0}),e},Z=async e=>{let t=e.toJSON();if(t.endpoint===void 0||t.endpoint===``||t.keys===void 0)return;let n=t.keys.p256dh,i=t.keys.auth;n===void 0||n===``||i===void 0||i===``||await r.api.notifications[`push-subscription`].$post({json:{endpoint:t.endpoint,keys:{p256dh:n,auth:i}}})},xe=o({isConnected:!1}),Q=o([]),Se=o(new Set),Ce=()=>{let{config:e}=g(),t=(0,T.useMemo)(()=>e?.theme===`light`||e?.theme===`dark`?e?.theme:window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`,[e?.theme]);return{theme:e?.theme??`system`,resolvedTheme:t}},$=h([`sessions`,`mcp`,`tasks`,`scheduler`,`settings`,`system-info`]),we=()=>K(()=>import(`./session-DheVJS_-.js`),__vite__mapDeps([0,1,2,3,4,5,6])),Te=()=>K(()=>import(`./session-DXLe2gKP.js`),__vite__mapDeps([7,2,8,3,9,10,1,11,5,12,6,13,14,15,16,17])),Ee=h([`explorer`,`git`,`review`,`browser`]),De=m({sessionId:ee().optional(),tab:$.optional().default(`sessions`),rightPanel:ie().optional(),rightPanelTab:Ee.optional().default(`explorer`)}),Oe=B(`/projects/$projectId/session`)({validateSearch:De,component:H(Te,`component`),notFoundComponent:H(we,`notFoundComponent`)});export{C,se as S,oe as T,K as _,Q as a,z as b,ye as c,ge as d,fe as f,le as g,ue as h,Se as i,he as l,de as m,$ as n,xe as o,pe as p,Ce as r,be as s,Oe as t,_e as u,H as v,S as w,E as x,B as y};