@claude-sessions/web 0.1.3 → 0.1.6
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/build/client/_app/immutable/assets/0.Bn90K0hQ.css +1 -0
- package/build/client/_app/immutable/assets/0.Bn90K0hQ.css.br +0 -0
- package/build/client/_app/immutable/assets/0.Bn90K0hQ.css.gz +0 -0
- package/build/client/_app/immutable/chunks/BWTmO7Ce.js +1 -0
- package/build/client/_app/immutable/chunks/BWTmO7Ce.js.br +0 -0
- package/build/client/_app/immutable/chunks/BWTmO7Ce.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CT62nJYY.js → BxOe8SxU.js} +1 -1
- package/build/client/_app/immutable/chunks/BxOe8SxU.js.br +0 -0
- package/build/client/_app/immutable/chunks/{CT62nJYY.js.gz → BxOe8SxU.js.gz} +0 -0
- package/build/client/_app/immutable/chunks/CYkK8rm7.js +1 -0
- package/build/client/_app/immutable/chunks/CYkK8rm7.js.br +0 -0
- package/build/client/_app/immutable/chunks/CYkK8rm7.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CkjvdHcs.js +2 -0
- package/build/client/_app/immutable/chunks/CkjvdHcs.js.br +0 -0
- package/build/client/_app/immutable/chunks/CkjvdHcs.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D3aD1aET.js +70 -0
- package/build/client/_app/immutable/chunks/D3aD1aET.js.br +0 -0
- package/build/client/_app/immutable/chunks/D3aD1aET.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BafoOKc9.js → Dejy2au4.js} +1 -1
- package/build/client/_app/immutable/chunks/Dejy2au4.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dejy2au4.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{o-Bjofpm.js → E9IRgQhr.js} +1 -1
- package/build/client/_app/immutable/chunks/E9IRgQhr.js.br +0 -0
- package/build/client/_app/immutable/chunks/E9IRgQhr.js.gz +0 -0
- package/build/client/_app/immutable/chunks/akEBbnuI.js +2 -0
- package/build/client/_app/immutable/chunks/akEBbnuI.js.br +0 -0
- package/build/client/_app/immutable/chunks/akEBbnuI.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{DUJSYbul.js → od4vEq6Z.js} +1 -1
- package/build/client/_app/immutable/chunks/od4vEq6Z.js.br +0 -0
- package/build/client/_app/immutable/chunks/od4vEq6Z.js.gz +0 -0
- package/build/client/_app/immutable/entry/{app.gciVDuyS.js → app.BzwdIlKe.js} +2 -2
- package/build/client/_app/immutable/entry/app.BzwdIlKe.js.br +0 -0
- package/build/client/_app/immutable/entry/app.BzwdIlKe.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.CWxrX9lA.js +1 -0
- package/build/client/_app/immutable/entry/start.CWxrX9lA.js.br +2 -0
- package/build/client/_app/immutable/entry/start.CWxrX9lA.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.DaYtdWai.js +1 -0
- package/build/client/_app/immutable/nodes/0.DaYtdWai.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.DaYtdWai.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{1.3n2PoWku.js → 1.D5wTLv8r.js} +1 -1
- package/build/client/_app/immutable/nodes/1.D5wTLv8r.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.D5wTLv8r.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.B8y2ftwS.js +5 -0
- package/build/client/_app/immutable/nodes/2.B8y2ftwS.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.B8y2ftwS.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.vPl_02hO.js +5 -0
- package/build/client/_app/immutable/nodes/3.vPl_02hO.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.vPl_02hO.js.gz +0 -0
- package/build/client/_app/version.json +1 -1
- package/build/client/_app/version.json.br +0 -0
- package/build/client/_app/version.json.gz +0 -0
- package/build/server/chunks/0-COZ9DRTB.js +17 -0
- package/build/server/chunks/0-COZ9DRTB.js.map +1 -0
- package/build/server/chunks/1-tU4AnjlD.js +9 -0
- package/build/server/chunks/{1-Cy7-Trhc.js.map → 1-tU4AnjlD.js.map} +1 -1
- package/build/server/chunks/2-COXuwRCi.js +9 -0
- package/build/server/chunks/{2-DdbKgCRQ.js.map → 2-COXuwRCi.js.map} +1 -1
- package/build/server/chunks/3-C-uqf36P.js +9 -0
- package/build/server/chunks/{3-ChajL1u5.js.map → 3-C-uqf36P.js.map} +1 -1
- package/build/server/chunks/_layout.svelte-BnXBRxbo.js +54 -0
- package/build/server/chunks/_layout.svelte-BnXBRxbo.js.map +1 -0
- package/build/server/chunks/_page.svelte-BWLtdblA.js +27 -0
- package/build/server/chunks/_page.svelte-BWLtdblA.js.map +1 -0
- package/build/server/chunks/{_page.svelte-aKNJQPv7.js → _page.svelte-BlgbAbC7.js} +75 -12
- package/build/server/chunks/_page.svelte-BlgbAbC7.js.map +1 -0
- package/build/server/chunks/{_server.ts-Ct1aM7oM.js → _server.ts-B8oFtHLw.js} +2 -2
- package/build/server/chunks/{_server.ts-Ct1aM7oM.js.map → _server.ts-B8oFtHLw.js.map} +1 -1
- package/build/server/chunks/{_server.ts-CX2OSBPu.js → _server.ts-BH3tiz8k.js} +5 -3
- package/build/server/chunks/_server.ts-BH3tiz8k.js.map +1 -0
- package/build/server/chunks/{_server.ts-DpvRNbeb.js → _server.ts-BWD1vDL2.js} +2 -2
- package/build/server/chunks/{_server.ts-DpvRNbeb.js.map → _server.ts-BWD1vDL2.js.map} +1 -1
- package/build/server/chunks/{_server.ts-CCksYCXZ.js → _server.ts-C77kIGGi.js} +2 -2
- package/build/server/chunks/{_server.ts-CCksYCXZ.js.map → _server.ts-C77kIGGi.js.map} +1 -1
- package/build/server/chunks/{_server.ts-CGe0YpKG.js → _server.ts-D6nnLNiy.js} +2 -2
- package/build/server/chunks/{_server.ts-CGe0YpKG.js.map → _server.ts-D6nnLNiy.js.map} +1 -1
- package/build/server/chunks/_server.ts-D86Uvnin.js +70 -0
- package/build/server/chunks/_server.ts-D86Uvnin.js.map +1 -0
- package/build/server/chunks/{_server.ts-rpJjXfvd.js → _server.ts-DFjCXOy4.js} +2 -2
- package/build/server/chunks/{_server.ts-rpJjXfvd.js.map → _server.ts-DFjCXOy4.js.map} +1 -1
- package/build/server/chunks/{_server.ts-CD_4uJkj.js → _server.ts-Dzg3Ae7d.js} +2 -2
- package/build/server/chunks/{_server.ts-CD_4uJkj.js.map → _server.ts-Dzg3Ae7d.js.map} +1 -1
- package/build/server/chunks/{_server.ts-xEv6jMNA.js → _server.ts-OsUiItz4.js} +2 -2
- package/build/server/chunks/{_server.ts-xEv6jMNA.js.map → _server.ts-OsUiItz4.js.map} +1 -1
- package/build/server/chunks/{_server.ts-Bqrfz_A4.js → _server.ts-fWcsgf21.js} +2 -2
- package/build/server/chunks/{_server.ts-Bqrfz_A4.js.map → _server.ts-fWcsgf21.js.map} +1 -1
- package/build/server/chunks/_server.ts-w0O0qNUG.js +23 -0
- package/build/server/chunks/_server.ts-w0O0qNUG.js.map +1 -0
- package/build/server/chunks/{_server.ts-0jo3UZio.js → _server.ts-zfg_7KZ9.js} +2 -2
- package/build/server/chunks/{_server.ts-0jo3UZio.js.map → _server.ts-zfg_7KZ9.js.map} +1 -1
- package/build/server/chunks/{error.svelte-DSwQ3Zz_.js → error.svelte-CxBB_UKu.js} +2 -2
- package/build/server/chunks/{error.svelte-DSwQ3Zz_.js.map → error.svelte-CxBB_UKu.js.map} +1 -1
- package/build/server/chunks/{index-r8eP1RrU.js → index-CMvE0dm6.js} +2 -2
- package/build/server/chunks/{index-r8eP1RrU.js.map → index-CMvE0dm6.js.map} +1 -1
- package/build/server/chunks/{index2-D0Zh7Vw1.js → index2-WaECQEtG.js} +183 -9
- package/build/server/chunks/index2-WaECQEtG.js.map +1 -0
- package/build/server/chunks/{index3-bfpT4IJp.js → index3-NDyeileA.js} +4 -1
- package/build/server/chunks/{index3-bfpT4IJp.js.map → index3-NDyeileA.js.map} +1 -1
- package/build/server/index.js +2 -2
- package/build/server/index.js.map +1 -1
- package/build/server/manifest.js +29 -15
- package/build/server/manifest.js.map +1 -1
- package/package.json +2 -2
- package/build/client/_app/immutable/assets/0.CqfWlzYs.css +0 -1
- package/build/client/_app/immutable/assets/0.CqfWlzYs.css.br +0 -0
- package/build/client/_app/immutable/assets/0.CqfWlzYs.css.gz +0 -0
- package/build/client/_app/immutable/chunks/BOribQWn.js +0 -1
- package/build/client/_app/immutable/chunks/BOribQWn.js.br +0 -0
- package/build/client/_app/immutable/chunks/BOribQWn.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BafoOKc9.js.br +0 -0
- package/build/client/_app/immutable/chunks/BafoOKc9.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CCQbXIRh.js +0 -70
- package/build/client/_app/immutable/chunks/CCQbXIRh.js.br +0 -0
- package/build/client/_app/immutable/chunks/CCQbXIRh.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CT62nJYY.js.br +0 -0
- package/build/client/_app/immutable/chunks/DUJSYbul.js.br +0 -0
- package/build/client/_app/immutable/chunks/DUJSYbul.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Din2kIqo.js +0 -1
- package/build/client/_app/immutable/chunks/Din2kIqo.js.br +0 -0
- package/build/client/_app/immutable/chunks/Din2kIqo.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DlT7Bucz.js +0 -2
- package/build/client/_app/immutable/chunks/DlT7Bucz.js.br +0 -0
- package/build/client/_app/immutable/chunks/DlT7Bucz.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Du4NaMiq.js +0 -2
- package/build/client/_app/immutable/chunks/Du4NaMiq.js.br +0 -0
- package/build/client/_app/immutable/chunks/Du4NaMiq.js.gz +0 -0
- package/build/client/_app/immutable/chunks/o-Bjofpm.js.br +0 -0
- package/build/client/_app/immutable/chunks/o-Bjofpm.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.gciVDuyS.js.br +0 -0
- package/build/client/_app/immutable/entry/app.gciVDuyS.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.BNxd_KR3.js +0 -1
- package/build/client/_app/immutable/entry/start.BNxd_KR3.js.br +0 -2
- package/build/client/_app/immutable/entry/start.BNxd_KR3.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.GjFLDRx1.js +0 -1
- package/build/client/_app/immutable/nodes/0.GjFLDRx1.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.GjFLDRx1.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.3n2PoWku.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.3n2PoWku.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.Ba--qanC.js +0 -5
- package/build/client/_app/immutable/nodes/2.Ba--qanC.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.Ba--qanC.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.4nQx0JOJ.js +0 -5
- package/build/client/_app/immutable/nodes/3.4nQx0JOJ.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.4nQx0JOJ.js.gz +0 -0
- package/build/server/chunks/0-DC-AHISc.js +0 -17
- package/build/server/chunks/0-DC-AHISc.js.map +0 -1
- package/build/server/chunks/1-Cy7-Trhc.js +0 -9
- package/build/server/chunks/2-DdbKgCRQ.js +0 -9
- package/build/server/chunks/3-ChajL1u5.js +0 -9
- package/build/server/chunks/_layout.svelte-C-GMsPO4.js +0 -33
- package/build/server/chunks/_layout.svelte-C-GMsPO4.js.map +0 -1
- package/build/server/chunks/_page.svelte-BA1YHl6B.js +0 -27
- package/build/server/chunks/_page.svelte-BA1YHl6B.js.map +0 -1
- package/build/server/chunks/_page.svelte-aKNJQPv7.js.map +0 -1
- package/build/server/chunks/_server.ts-CX2OSBPu.js.map +0 -1
- package/build/server/chunks/index2-D0Zh7Vw1.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as u,j as o,H as _,k as t,l as g,C as m,m as l,n as a,q as n,v as p}from"./
|
|
1
|
+
import{i as u,j as o,H as _,k as t,l as g,C as m,m as l,n as a,q as n,v as p}from"./BxOe8SxU.js";function E(d,r){let s=null,f=t;var i;if(t){s=p;for(var e=g(document.head);e!==null&&(e.nodeType!==m||e.data!==d);)e=l(e);if(e===null)a(!1);else{var y=l(e);e.remove(),n(y)}}t||(i=document.head.appendChild(u()));try{o(()=>r(i),_)}finally{f&&(a(!0),n(s))}}export{E as h};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{i as D,j as pe,q as H,k as E,l as ve,E as he,g as W,_ as ge,G as _e,I as me,J as Z,n as F,v as L,C as Ee,aa as we,ab as ee,w as Ce,ac as C,A as q,D as Se,ad as ne,ae as Ie,af as V,ag as Ae,ah as Re,ai as Te,aj as $e,x as te,z as ie,ak as P,m as Ne,al as je,y as ye,am as fe,V as ce,an as Ue,ao as be,ap as xe,aq as Me,ar as Oe,as as Le}from"./BxOe8SxU.js";function Je(e,n){return n}function ke(e,n,r){for(var s=[],t=n.length,f,o=n.length,u=0;u<t;u++){let _=n[u];ie(_,()=>{if(f){if(f.pending.delete(_),f.done.add(_),f.pending.size===0){var p=e.outrogroups;z(V(f.done)),p.delete(f),p.size===0&&(e.outrogroups=null)}}else o-=1},!1)}if(o===0){var i=s.length===0&&r!==null;if(i){var d=r,c=d.parentNode;je(c),c.append(d),e.items.clear()}z(n,!i)}else f={pending:new Set(n),done:new Set},(e.outrogroups??(e.outrogroups=new Set)).add(f)}function z(e,n=!0){for(var r=0;r<e.length;r++)ye(e[r],n)}var re;function Ye(e,n,r,s,t,f=null){var o=e,u=new Map,i=(n&fe)!==0;if(i){var d=e;o=E?H(ve(d)):d.appendChild(D())}E&&he();var c=null,_=ge(()=>{var l=r();return Ae(l)?l:l==null?[]:V(l)}),p,v=!0;function A(){a.fallback=c,De(a,p,o,n,s),c!==null&&(p.length===0?(c.f&C)===0?te(c):(c.f^=C,x(c,null,o)):ie(c,()=>{c=null}))}var N=pe(()=>{p=W(_);var l=p.length;let j=!1;if(E){var y=_e(o)===me;y!==(l===0)&&(o=Z(),H(o),F(!1),j=!0)}for(var m=new Set,R=Ce,U=Se(),h=0;h<l;h+=1){E&&L.nodeType===Ee&&L.data===we&&(o=L,j=!0,F(!1));var T=p[h],b=s(T,h),g=v?null:u.get(b);g?(g.v&&ee(g.v,T),g.i&&ee(g.i,h),U&&R.skipped_effects.delete(g.e)):(g=He(u,v?o:re??(re=D()),T,b,h,t,n,r),v||(g.e.f|=C),u.set(b,g)),m.add(b)}if(l===0&&f&&!c&&(v?c=q(()=>f(o)):(c=q(()=>f(re??(re=D()))),c.f|=C)),E&&l>0&&H(Z()),!v)if(U){for(const[M,O]of u)m.has(M)||R.skipped_effects.add(O.e);R.oncommit(A),R.ondiscard(()=>{})}else A();j&&F(!0),W(_)}),a={effect:N,items:u,outrogroups:null,fallback:c};v=!1,E&&(o=L)}function De(e,n,r,s,t){var g,M,O,B,G,J,Y,K,X;var f=(s&Ue)!==0,o=n.length,u=e.items,i=e.effect.first,d,c=null,_,p=[],v=[],A,N,a,l;if(f)for(l=0;l<o;l+=1)A=n[l],N=t(A,l),a=u.get(N).e,(a.f&C)===0&&((M=(g=a.nodes)==null?void 0:g.a)==null||M.measure(),(_??(_=new Set)).add(a));for(l=0;l<o;l+=1){if(A=n[l],N=t(A,l),a=u.get(N).e,e.outrogroups!==null)for(const w of e.outrogroups)w.pending.delete(a),w.done.delete(a);if((a.f&C)!==0)if(a.f^=C,a===i)x(a,null,r);else{var j=c?c.next:i;a===e.effect.last&&(e.effect.last=a.prev),a.prev&&(a.prev.next=a.next),a.next&&(a.next.prev=a.prev),S(e,c,a),S(e,a,j),x(a,j,r),c=a,p=[],v=[],i=c.next;continue}if((a.f&P)!==0&&(te(a),f&&((B=(O=a.nodes)==null?void 0:O.a)==null||B.unfix(),(_??(_=new Set)).delete(a))),a!==i){if(d!==void 0&&d.has(a)){if(p.length<v.length){var y=v[0],m;c=y.prev;var R=p[0],U=p[p.length-1];for(m=0;m<p.length;m+=1)x(p[m],y,r);for(m=0;m<v.length;m+=1)d.delete(v[m]);S(e,R.prev,U.next),S(e,c,R),S(e,U,y),i=y,c=U,l-=1,p=[],v=[]}else d.delete(a),x(a,i,r),S(e,a.prev,a.next),S(e,a,c===null?e.effect.first:c.next),S(e,c,a),c=a;continue}for(p=[],v=[];i!==null&&i!==a;)(d??(d=new Set)).add(i),v.push(i),i=i.next;if(i===null)continue}(a.f&C)===0&&p.push(a),c=a,i=a.next}if(e.outrogroups!==null){for(const w of e.outrogroups)w.pending.size===0&&(z(V(w.done)),(G=e.outrogroups)==null||G.delete(w));e.outrogroups.size===0&&(e.outrogroups=null)}if(i!==null||d!==void 0){var h=[];if(d!==void 0)for(a of d)(a.f&P)===0&&h.push(a);for(;i!==null;)(i.f&P)===0&&i!==e.fallback&&h.push(i),i=i.next;var T=h.length;if(T>0){var b=(s&fe)!==0&&o===0?r:null;if(f){for(l=0;l<T;l+=1)(Y=(J=h[l].nodes)==null?void 0:J.a)==null||Y.measure();for(l=0;l<T;l+=1)(X=(K=h[l].nodes)==null?void 0:K.a)==null||X.fix()}ke(e,h,b)}}f&&ce(()=>{var w,Q;if(_!==void 0)for(a of _)(Q=(w=a.nodes)==null?void 0:w.a)==null||Q.apply()})}function He(e,n,r,s,t,f,o,u){var i=(o&Re)!==0?(o&Te)===0?Ie(r,!1,!1):ne(r):null,d=(o&$e)!==0?ne(t):null;return{v:i,i:d,e:q(()=>(f(n,i??r,d??t,u),()=>{e.delete(s)}))}}function x(e,n,r){if(e.nodes)for(var s=e.nodes.start,t=e.nodes.end,f=n&&(n.f&C)===0?n.nodes.start:r;s!==null;){var o=Ne(s);if(f.before(s),s===t)return;s=o}}function S(e,n,r){n===null?e.effect.first=r:n.next=r,r===null?e.effect.last=n:r.prev=n}function le(e){var n,r,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var t=e.length;for(n=0;n<t;n++)e[n]&&(r=le(e[n]))&&(s&&(s+=" "),s+=r)}else for(r in e)e[r]&&(s&&(s+=" "),s+=r);return s}function Fe(){for(var e,n,r=0,s="",t=arguments.length;r<t;r++)(e=arguments[r])&&(n=le(e))&&(s&&(s+=" "),s+=n);return s}function Ke(e){return typeof e=="object"?Fe(e):e??""}const se=[...`
|
|
2
|
+
\r\f \v\uFEFF`];function Pe(e,n,r){var s=e==null?"":""+e;if(n&&(s=s?s+" "+n:n),r){for(var t in r)if(r[t])s=s?s+" "+t:t;else if(s.length)for(var f=t.length,o=0;(o=s.indexOf(t,o))>=0;){var u=o+f;(o===0||se.includes(s[o-1]))&&(u===s.length||se.includes(s[u]))?s=(o===0?"":s.substring(0,o))+s.substring(u+1):o=u}}return s===""?null:s}function Xe(e,n,r,s,t,f){var o=e.__className;if(E||o!==r||o===void 0){var u=Pe(r,s,f);(!E||u!==e.getAttribute("class"))&&(u==null?e.removeAttribute("class"):e.className=u),e.__className=r}else if(f&&t!==f)for(var i in f){var d=!!f[i];(t==null||d!==!!t[i])&&e.classList.toggle(i,d)}return f}const qe=Symbol("is custom element"),ze=Symbol("is html");function Qe(e){if(E){var n=!1,r=()=>{if(!n){if(n=!0,e.hasAttribute("value")){var s=e.value;ae(e,"value",null),e.value=s}if(e.hasAttribute("checked")){var t=e.checked;ae(e,"checked",null),e.checked=t}}};e.__on_r=r,ce(r),be()}}function We(e,n){var r=ue(e);r.value===(r.value=n??void 0)||e.value===n&&(n!==0||e.nodeName!=="PROGRESS")||(e.value=n??"")}function ae(e,n,r,s){var t=ue(e);E&&(t[n]=e.getAttribute(n),n==="src"||n==="srcset"||n==="href"&&e.nodeName==="LINK")||t[n]!==(t[n]=r)&&(n==="loading"&&(e[Me]=r),r==null?e.removeAttribute(n):typeof r!="string"&&Ve(e).includes(n)?e[n]=r:e.setAttribute(n,r))}function ue(e){return e.__attributes??(e.__attributes={[qe]:e.nodeName.includes("-"),[ze]:e.namespaceURI===xe})}var oe=new Map;function Ve(e){var n=e.getAttribute("is")||e.nodeName,r=oe.get(n);if(r)return r;oe.set(n,r=[]);for(var s,t=e,f=Element.prototype;f!==t;){s=Le(t);for(var o in s)s[o].set&&r.push(o);t=Oe(t)}return r}const k="/api",I=async e=>{const n=await fetch(`${k}${e}`);if(!n.ok)throw new Error(await n.text());return n.json()},$=async(e,n)=>{const r=await fetch(`${k}${e}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(!r.ok)throw new Error(await r.text());return r.json()},de=async e=>{const n=await fetch(`${k}${e}`,{method:"DELETE"});if(!n.ok)throw new Error(await n.text());return n.json()},Be=async(e,n)=>{const r=await fetch(`${k}${e}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(!r.ok)throw new Error(await r.text());return r.json()},Ze=()=>I("/projects"),en=e=>I(`/sessions?project=${encodeURIComponent(e)}`),nn=(e,n)=>I(`/session?project=${encodeURIComponent(e)}&id=${encodeURIComponent(n)}`),rn=(e,n)=>de(`/session?project=${encodeURIComponent(e)}&id=${encodeURIComponent(n)}`),sn=(e,n,r)=>$("/session/rename",{project:e,id:n,title:r}),an=(e,n,r)=>de(`/message?project=${encodeURIComponent(e)}&session=${encodeURIComponent(n)}&uuid=${encodeURIComponent(r)}`),on=(e,n,r,s)=>Be(`/message?project=${encodeURIComponent(e)}&session=${encodeURIComponent(n)}&uuid=${encodeURIComponent(r)}`,{customTitle:s}),tn=e=>I("/cleanup"),fn=e=>$("/cleanup",e),cn=()=>I("/version"),ln=()=>$("/shutdown",{}),un=(e,n)=>$("/open-file",{sessionId:e,backupFileName:n}),dn=e=>$("/open-file",{filePath:e}),pn=(e,n,r)=>$("/session/split",{project:e,sessionId:n,messageUuid:r}),vn=(e,n,r)=>$("/session/move",{sourceProject:e,sessionId:n,targetProject:r}),hn=async e=>{try{return(await I(`/file-exists?path=${encodeURIComponent(e)}`)).exists}catch{return!1}},gn=(e,n)=>{const r=new URLSearchParams({q:e});return n!=null&&n.project&&r.set("project",n.project),n!=null&&n.searchContent&&r.set("content","true"),I(`/search?${r}`)},_n=e=>I(`/project/expand?project=${encodeURIComponent(e)}`);export{en as a,an as b,ln as c,rn as d,_n as e,gn as f,nn as g,cn as h,Qe as i,We as j,Xe as k,Ze as l,vn as m,fn as n,Ye as o,tn as p,Je as q,sn as r,pn as s,ae as t,on as u,hn as v,dn as w,Ke as x,un as y};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var M=Object.defineProperty;var y=a=>{throw TypeError(a)};var R=(a,e,t)=>e in a?M(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var A=(a,e,t)=>R(a,typeof e!="symbol"?e+"":e,t),w=(a,e,t)=>e.has(a)||y("Cannot "+t);var s=(a,e,t)=>(w(a,e,"read from private field"),t?t.call(a):e.get(a)),u=(a,e,t)=>e.has(a)?y("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(a):e.set(a,t),E=(a,e,t,i)=>(w(a,e,"write to private field"),i?i.call(a,t):e.set(a,t),t);import{w as T,x as S,y as k,z as B,i as F,A as x,k as g,v as N,B as C,D as I,j,E as q,F as z,G,I as H,J,q as L,n as D}from"./
|
|
1
|
+
var M=Object.defineProperty;var y=a=>{throw TypeError(a)};var R=(a,e,t)=>e in a?M(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var A=(a,e,t)=>R(a,typeof e!="symbol"?e+"":e,t),w=(a,e,t)=>e.has(a)||y("Cannot "+t);var s=(a,e,t)=>(w(a,e,"read from private field"),t?t.call(a):e.get(a)),u=(a,e,t)=>e.has(a)?y("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(a):e.set(a,t),E=(a,e,t,i)=>(w(a,e,"write to private field"),i?i.call(a,t):e.set(a,t),t);import{w as T,x as S,y as k,z as B,i as F,A as x,k as g,v as N,B as C,D as I,j,E as q,F as z,G,I as H,J,q as L,n as D}from"./BxOe8SxU.js";var d,l,c,_,v,m,b;class O{constructor(e,t=!0){A(this,"anchor");u(this,d,new Map);u(this,l,new Map);u(this,c,new Map);u(this,_,new Set);u(this,v,!0);u(this,m,()=>{var e=T;if(s(this,d).has(e)){var t=s(this,d).get(e),i=s(this,l).get(t);if(i)S(i),s(this,_).delete(t);else{var n=s(this,c).get(t);n&&(s(this,l).set(t,n.effect),s(this,c).delete(t),n.fragment.lastChild.remove(),this.anchor.before(n.fragment),i=n.effect)}for(const[f,r]of s(this,d)){if(s(this,d).delete(f),f===e)break;const h=s(this,c).get(r);h&&(k(h.effect),s(this,c).delete(r))}for(const[f,r]of s(this,l)){if(f===t||s(this,_).has(f))continue;const h=()=>{if(Array.from(s(this,d).values()).includes(f)){var p=document.createDocumentFragment();C(r,p),p.append(F()),s(this,c).set(f,{effect:r,fragment:p})}else k(r);s(this,_).delete(f),s(this,l).delete(f)};s(this,v)||!i?(s(this,_).add(f),B(r,h,!1)):h()}}});u(this,b,e=>{s(this,d).delete(e);const t=Array.from(s(this,d).values());for(const[i,n]of s(this,c))t.includes(i)||(k(n.effect),s(this,c).delete(i))});this.anchor=e,E(this,v,t)}ensure(e,t){var i=T,n=I();if(t&&!s(this,l).has(e)&&!s(this,c).has(e))if(n){var f=document.createDocumentFragment(),r=F();f.append(r),s(this,c).set(e,{effect:x(()=>t(r)),fragment:f})}else s(this,l).set(e,x(()=>t(this.anchor)));if(s(this,d).set(i,e),n){for(const[h,o]of s(this,l))h===e?i.skipped_effects.delete(o):i.skipped_effects.add(o);for(const[h,o]of s(this,c))h===e?i.skipped_effects.delete(o.effect):i.skipped_effects.add(o.effect);i.oncommit(s(this,m)),i.ondiscard(s(this,b))}else g&&(this.anchor=N),s(this,m).call(this)}}d=new WeakMap,l=new WeakMap,c=new WeakMap,_=new WeakMap,v=new WeakMap,m=new WeakMap,b=new WeakMap;function K(a,e,t=!1){g&&q();var i=new O(a),n=t?z:0;function f(r,h){if(g){const p=G(a)===H;if(r===p){var o=J();L(o),i.anchor=o,D(!1),i.ensure(r,h),D(!0);return}}i.ensure(r,h)}j(()=>{var r=!1;e((h,o=!0)=>{r=!0,f(o,h)}),r||f(!1,null)},n)}export{O as B,K as i};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.
|
|
2
|
-
var G=t=>{throw TypeError(t)};var M=(t,e,r)=>e.has(t)||G("Cannot "+r);var u=(t,e,r)=>(M(t,e,"read from private field"),r?r.call(t):e.get(t)),A=(t,e,r)=>e.has(t)?G("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),C=(t,e,r,n)=>(M(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r);import{k as K,E as Q,j as X,F as Z,e as S,a8 as $,g,
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.DaYtdWai.js","../chunks/CkjvdHcs.js","../chunks/BxOe8SxU.js","../chunks/od4vEq6Z.js","../chunks/akEBbnuI.js","../chunks/E9IRgQhr.js","../chunks/CYkK8rm7.js","../chunks/BWTmO7Ce.js","../assets/0.Bn90K0hQ.css","../nodes/1.D5wTLv8r.js","../nodes/2.B8y2ftwS.js","../chunks/D3aD1aET.js","../chunks/Dejy2au4.js","../nodes/3.vPl_02hO.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var G=t=>{throw TypeError(t)};var M=(t,e,r)=>e.has(t)||G("Cannot "+r);var u=(t,e,r)=>(M(t,e,"read from private field"),r?r.call(t):e.get(t)),A=(t,e,r)=>e.has(t)?G("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),C=(t,e,r,n)=>(M(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r);import{k as K,E as Q,j as X,F as Z,e as S,a8 as $,g,at as ee,au as te,ae as re,p as se,L as ae,M as ne,o as oe,s as T,av as ce,f as j,c as ie,b as le,d as ue,r as de,u as p,t as fe}from"../chunks/BxOe8SxU.js";import{h as me,m as he,u as _e,f as W,a as w,c as B,t as ve,s as ge}from"../chunks/CkjvdHcs.js";import{B as ye,i as D}from"../chunks/od4vEq6Z.js";import{p as I,b as V}from"../chunks/Dejy2au4.js";function F(t,e,r){K&&Q();var n=new ye(t);X(()=>{var c=e()??null;n.ensure(c,c&&(m=>r(m,c)))},Z)}function be(t){return class extends Ee{constructor(e){super({component:t,...e})}}}var y,f;class Ee{constructor(e){A(this,y);A(this,f);var m;var r=new Map,n=(a,s)=>{var i=re(s,!1,!1);return r.set(a,i),i};const c=new Proxy({...e.props||{},$$events:{}},{get(a,s){return g(r.get(s)??n(s,Reflect.get(a,s)))},has(a,s){return s===$?!0:(g(r.get(s)??n(s,Reflect.get(a,s))),Reflect.has(a,s))},set(a,s,i){return S(r.get(s)??n(s,i),i),Reflect.set(a,s,i)}});C(this,f,(e.hydrate?me:he)(e.component,{target:e.target,anchor:e.anchor,props:c,context:e.context,intro:e.intro??!1,recover:e.recover})),(!((m=e==null?void 0:e.props)!=null&&m.$$host)||e.sync===!1)&&ee(),C(this,y,c.$$events);for(const a of Object.keys(u(this,f)))a==="$set"||a==="$destroy"||a==="$on"||te(this,a,{get(){return u(this,f)[a]},set(s){u(this,f)[a]=s},enumerable:!0});u(this,f).$set=a=>{Object.assign(c,a)},u(this,f).$destroy=()=>{_e(u(this,f))}}$set(e){u(this,f).$set(e)}$on(e,r){u(this,y)[e]=u(this,y)[e]||[];const n=(...c)=>r.call(this,...c);return u(this,y)[e].push(n),()=>{u(this,y)[e]=u(this,y)[e].filter(c=>c!==n)}}$destroy(){u(this,f).$destroy()}}y=new WeakMap,f=new WeakMap;const Pe="modulepreload",Re=function(t,e){return new URL(t,e).href},N={},L=function(e,r,n){let c=Promise.resolve();if(r&&r.length>0){let a=function(l){return Promise.all(l.map(v=>Promise.resolve(v).then(b=>({status:"fulfilled",value:b}),b=>({status:"rejected",reason:b}))))};const s=document.getElementsByTagName("link"),i=document.querySelector("meta[property=csp-nonce]"),k=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));c=a(r.map(l=>{if(l=Re(l,n),l in N)return;N[l]=!0;const v=l.endsWith(".css"),b=v?'[rel="stylesheet"]':"";if(!!n)for(let o=s.length-1;o>=0;o--){const d=s[o];if(d.href===l&&(!v||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${b}`))return;const _=document.createElement("link");if(_.rel=v?"stylesheet":Pe,v||(_.as="script"),_.crossOrigin="",_.href=l,k&&_.setAttribute("nonce",k),document.head.appendChild(_),v)return new Promise((o,d)=>{_.addEventListener("load",o),_.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${l}`)))})}))}function m(a){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a}return c.then(a=>{for(const s of a||[])s.status==="rejected"&&m(s.reason);return e().catch(m)})},pe={};var we=W('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),ke=W("<!> <!>",1);function Oe(t,e){se(e,!0);let r=I(e,"components",23,()=>[]),n=I(e,"data_0",3,null),c=I(e,"data_1",3,null);ae(()=>e.stores.page.set(e.page)),ne(()=>{e.stores,e.page,e.constructors,r(),e.form,n(),c(),e.stores.page.notify()});let m=T(!1),a=T(!1),s=T(null);oe(()=>{const o=e.stores.page.subscribe(()=>{g(m)&&(S(a,!0),ce().then(()=>{S(s,document.title||"untitled page",!0)}))});return S(m,!0),o});const i=p(()=>e.constructors[1]);var k=ke(),l=j(k);{var v=o=>{const d=p(()=>e.constructors[0]);var E=B(),O=j(E);F(O,()=>g(d),(P,R)=>{V(R(P,{get data(){return n()},get form(){return e.form},get params(){return e.page.params},children:(h,je)=>{var U=B(),z=j(U);F(z,()=>g(i),(H,J)=>{V(J(H,{get data(){return c()},get form(){return e.form},get params(){return e.page.params}}),x=>r()[1]=x,()=>{var x;return(x=r())==null?void 0:x[1]})}),w(h,U)},$$slots:{default:!0}}),h=>r()[0]=h,()=>{var h;return(h=r())==null?void 0:h[0]})}),w(o,E)},b=o=>{const d=p(()=>e.constructors[0]);var E=B(),O=j(E);F(O,()=>g(d),(P,R)=>{V(R(P,{get data(){return n()},get form(){return e.form},get params(){return e.page.params}}),h=>r()[0]=h,()=>{var h;return(h=r())==null?void 0:h[0]})}),w(o,E)};D(l,o=>{e.constructors[1]?o(v):o(b,!1)})}var q=ie(l,2);{var _=o=>{var d=we(),E=ue(d);{var O=P=>{var R=ve();fe(()=>ge(R,g(s))),w(P,R)};D(E,P=>{g(a)&&P(O)})}de(d),w(o,d)};D(q,o=>{g(m)&&o(_)})}w(t,k),le()}const Be=be(Oe),De=[()=>L(()=>import("../nodes/0.DaYtdWai.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url),()=>L(()=>import("../nodes/1.D5wTLv8r.js"),__vite__mapDeps([9,1,2,7,6]),import.meta.url),()=>L(()=>import("../nodes/2.B8y2ftwS.js"),__vite__mapDeps([10,1,2,3,4,11,12]),import.meta.url),()=>L(()=>import("../nodes/3.vPl_02hO.js"),__vite__mapDeps([13,1,2,3,5,7,6,4,11,12]),import.meta.url)],Ie=[],Ve={"/":[2],"/session/[project]/[id]":[3]},Y={handleError:(({error:t})=>{console.error(t)}),reroute:(()=>{}),transport:{}},xe=Object.fromEntries(Object.entries(Y.transport).map(([t,e])=>[t,e.decode])),Fe=Object.fromEntries(Object.entries(Y.transport).map(([t,e])=>[t,e.encode])),qe=!1,Ue=(t,e)=>xe[t](e);export{Ue as decode,xe as decoders,Ve as dictionary,Fe as encoders,qe as hash,Y as hooks,pe as matchers,De as nodes,Be as root,Ie as server_loads};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{l as o,a as r}from"../chunks/CYkK8rm7.js";export{o as load_css,r as start};
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as gt,f as x,e as Qe,a as i,s as h,c as xt,t as z}from"../chunks/CkjvdHcs.js";import{j as ft,F as bt,a9 as _t,k as mt,N as yt,U as wt,p as Ct,s as g,a as kt,o as $t,f as Z,d as s,c as r,t as m,b as St,e as n,g as e,u as H,T as jt,r as o,$ as Tt}from"../chunks/BxOe8SxU.js";import{B as It,i as u}from"../chunks/od4vEq6Z.js";import{c as Nt,p as Rt,f as Ae,h as Ot,i as de,j as Mt,k as Ee,n as Dt,o as At,q as Et}from"../chunks/akEBbnuI.js";import{h as zt}from"../chunks/E9IRgQhr.js";import{g as Wt}from"../chunks/CYkK8rm7.js";import{p as qe}from"../chunks/BWTmO7Ce.js";function Pt(C,N,...W){var P=new It(C);ft(()=>{const R=N()??null;P.ensure(R,R&&(Q=>R(Q,...W)))},bt)}function we(C,N,W=N){_t(C,"change",P=>{var R=P?C.defaultChecked:C.checked;W(R)}),(mt&&C.defaultChecked!==C.checked||yt(N)==null)&&W(C.checked),wt(()=>{var P=N();C.checked=!!P})}const Ut=!0,ca=Object.freeze(Object.defineProperty({__proto__:null,ssr:Ut},Symbol.toStringTag,{value:"Module"}));var Bt=x('<span class="text-xs text-gh-text-secondary bg-gh-border px-2 py-0.5 rounded hidden sm:inline"> </span>'),Ft=x('<div class="absolute right-3 top-1/2 -translate-y-1/2"><svg class="animate-spin h-4 w-4 text-gh-text-secondary" viewBox="0 0 24 24"><circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4" fill="none"></circle><path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path></svg></div>'),Vt=x('<div class="px-4 py-3 text-sm text-gh-text-secondary">Searching...</div>'),Ht=x('<div class="px-4 py-3 text-sm text-gh-text-secondary">No results found</div>'),Qt=x('<div class="text-xs text-gh-text-secondary mt-1 line-clamp-2"> </div>'),qt=x('<button class="w-full text-left px-4 py-2 hover:bg-gh-border-subtle border-b border-gh-border last:border-b-0"><div class="flex items-center gap-2"><span> </span> <span class="text-xs text-gh-text-secondary truncate flex-shrink-0 max-w-[120px]"> </span> <span class="text-sm font-medium truncate"> </span></div> <!></button>'),Gt=x('<div class="px-4 py-2 text-xs text-gh-text-secondary border-t border-gh-border">Searching content...</div>'),Jt=x("<!> <!>",1),Kt=x('<div class="absolute top-full left-0 right-0 mt-1 bg-gh-bg-secondary border border-gh-border rounded-md shadow-lg max-h-80 overflow-y-auto z-50"><!></div>'),Lt=x(" <!>",1),Xt=x("<!> ",1),Yt=x("<!> ",1),Zt=x('<div class="fixed inset-0 bg-black/50 flex items-center justify-center z-50" role="dialog" aria-modal="true" aria-labelledby="cleanup-modal-title"><div class="bg-gh-bg-secondary border border-gh-border rounded-lg p-6 w-[400px] shadow-xl"><h2 id="cleanup-modal-title" class="text-lg font-semibold mb-4">Cleanup Options</h2> <div class="space-y-3"><label class="flex items-center gap-3 cursor-pointer"><input type="checkbox" class="w-4 h-4 rounded border-gh-border bg-gh-bg text-gh-green focus:ring-gh-green"/> <span class="flex-1">Delete empty sessions <span class="text-gh-text-secondary"> </span></span></label> <label><input type="checkbox" class="w-4 h-4 rounded border-gh-border bg-gh-bg text-gh-green focus:ring-gh-green disabled:opacity-50"/> <span class="flex-1">Skip sessions with todos <span class="text-gh-text-secondary"> </span></span></label> <label class="flex items-center gap-3 cursor-pointer"><input type="checkbox" class="w-4 h-4 rounded border-gh-border bg-gh-bg text-gh-green focus:ring-gh-green"/> <span class="flex-1">Delete orphan agents <span class="text-gh-text-secondary"> </span></span></label> <label class="flex items-center gap-3 cursor-pointer"><input type="checkbox" class="w-4 h-4 rounded border-gh-border bg-gh-bg text-gh-green focus:ring-gh-green"/> <span class="flex-1">Delete orphan todos <span class="text-gh-text-secondary"> </span></span></label></div> <div class="mt-4 pt-4 border-t border-gh-border text-sm text-gh-text-secondary"><!> <!> <!> <!></div> <div class="flex gap-2 mt-6 justify-end"><button class="px-4 py-2 text-sm rounded-md border border-gh-border hover:bg-gh-border-subtle">Cancel</button> <button class="px-4 py-2 text-sm rounded-md bg-gh-red text-white hover:bg-red-700 disabled:opacity-50"> </button></div></div></div>'),ea=x('<div class="fixed bottom-4 right-4 bg-gh-green text-white px-5 py-3 rounded-md text-sm z-50"><!> <!> <!> <!></div>'),ta=x('<div class="min-h-screen flex flex-col bg-gh-bg text-gh-text"><header class="bg-gh-bg-secondary border-b border-gh-border px-8 py-4 flex justify-between items-center"><div class="flex items-center gap-3"><a href="/" class="flex items-center gap-2 hover:text-gh-accent" title="Claude Sessions"><svg class="w-6 h-6 text-gh-accent" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"></path></svg> <span class="text-2xl font-semibold hidden sm:inline">Claude Sessions</span></a> <!></div> <div class="relative flex-1 max-w-md mx-8"><input type="text" placeholder="Search sessions..." class="w-full px-4 py-2 bg-gh-bg border border-gh-border rounded-md text-sm focus:outline-none focus:border-gh-accent"/> <!> <!></div> <div class="flex gap-2"><button class="bg-gh-border-subtle border border-gh-border text-gh-text px-4 py-2 rounded-md text-sm transition-colors hover:bg-gh-border hover:border-gh-text-secondary disabled:opacity-50 disabled:cursor-not-allowed"> </button> <button class="bg-gh-red border border-gh-red text-white px-4 py-2 rounded-md text-sm transition-colors hover:bg-red-700 disabled:opacity-50 disabled:cursor-not-allowed"> </button></div></header> <main><!></main></div> <!> <!>',1);function ia(C,N){Ct(N,!0);const W=H(()=>qe.url.pathname.startsWith("/session/")),P=t=>{let a=t.replace(/--/g,"\0").replace(/-/g,"/").replace(/\x00/g,"/.");const l=a.match(/^\/Users\/[^/]+\/(.+)$/);return l?`~/${l[1]}`:a},R=H(()=>{if(!e(W))return null;const t=qe.url.pathname.match(/^\/session\/([^/]+)\/([^/]+)/);return t?{projectName:decodeURIComponent(t[1]),sessionId:decodeURIComponent(t[2])}:null});let Q=g(""),q=g(!1),Ce=g(!1),ce=g(!1),O=g(null),k=g(null),ie=g(""),f=g(kt([])),ee=g(!1),ve=g(!1),G=g(!1),ke=null,T=g(!0),te=g(!0),M=g(!1),U=g(!1),$e=H(()=>{var t;return((t=e(O))==null?void 0:t.reduce((a,l)=>a+l.emptySessions.length,0))??0}),pe=H(()=>{var t;return((t=e(O))==null?void 0:t.reduce((a,l)=>a+l.emptyWithTodosCount,0))??0}),he=H(()=>{var t;return((t=e(O))==null?void 0:t.reduce((a,l)=>a+l.orphanAgentCount,0))??0}),ue=H(()=>{var t;return((t=e(O))==null?void 0:t.reduce((a,l)=>a+l.orphanTodoCount,0))??0}),ge=H(()=>e(te)?e($e)-e(pe):e($e));$t(async()=>{try{const t=await Ot();n(Q,t.version,!0)}catch{n(Q,"unknown")}});const Ge=async()=>{if(confirm("Shutdown the server?")){n(Ce,!0);try{await Nt()}catch{}}},Je=async()=>{try{n(O,await Rt(),!0),n(ce,!0)}catch(t){alert(`Error: ${t}`)}},ze=()=>{n(ce,!1),n(O,null)},Ke=async()=>{if(e(ge)===0&&!e(M)&&!e(U)){alert("Nothing to clean up");return}n(q,!0);try{n(k,await Dt({clearEmpty:e(T),clearInvalid:!1,skipWithTodos:e(te),clearOrphanAgents:e(M),clearOrphanTodos:e(U)}),!0),n(ce,!1),n(O,null),setTimeout(()=>{n(k,null),window.location.reload()},2e3)}catch(t){alert(`Error: ${t}`)}finally{n(q,!1)}},Le=t=>{const a=t.target.value;if(n(ie,a,!0),ke&&clearTimeout(ke),!a.trim()){n(f,[],!0),n(G,!1);return}ke=setTimeout(()=>Xe(a),300)},Se=t=>{const a=e(R);return a?[...t].sort((l,y)=>{const b=l.projectName===a.projectName&&l.sessionId===a.sessionId,v=y.projectName===a.projectName&&y.sessionId===a.sessionId;return b&&!v?-1:!b&&v?1:0}):t},Xe=async t=>{if(!t.trim())return;const a=e(R);n(ee,!0),n(G,!0);try{const l=await Ae(t,{searchContent:!1,project:a==null?void 0:a.projectName});n(f,Se(l),!0)}catch(l){console.error("Title search error:",l)}finally{n(ee,!1)}n(ve,!0);try{if(a){const v=await Ae(t,{searchContent:!0,project:a.projectName}),w=new Set(e(f).map($=>`${$.projectName}:${$.sessionId}`)),D=v.filter($=>!w.has(`${$.projectName}:${$.sessionId}`));n(f,Se([...e(f),...D]),!0)}const l=await Ae(t,{searchContent:!0}),y=new Set(e(f).map(v=>`${v.projectName}:${v.sessionId}`)),b=l.filter(v=>!y.has(`${v.projectName}:${v.sessionId}`));n(f,Se([...e(f),...b]),!0)}catch(l){console.error("Content search error:",l)}finally{n(ve,!1)}},Ye=t=>{n(ie,""),n(f,[],!0),n(G,!1),Wt(`/#project=${encodeURIComponent(t.projectName)}&session=${encodeURIComponent(t.sessionId)}`)},Ze=()=>{setTimeout(()=>{n(G,!1)},200)};var We=ta();zt("12qhfyh",t=>{jt(()=>{Tt.title="Claude Sessions"})});var je=Z(We),Te=s(je),Ie=s(Te),et=r(s(Ie),2);{var tt=t=>{var a=Bt(),l=s(a);o(a),m(()=>h(l,`v${e(Q)??""}`)),i(t,a)};u(et,t=>{e(Q)&&t(tt)})}o(Ie);var Ne=r(Ie,2),J=s(Ne);de(J),J.__input=Le;var Pe=r(J,2);{var at=t=>{var a=Ft();i(t,a)};u(Pe,t=>{(e(ee)||e(ve))&&t(at)})}var rt=r(Pe,2);{var st=t=>{var a=Kt(),l=s(a);{var y=v=>{var w=Vt();i(v,w)},b=v=>{var w=xt(),D=Z(w);{var $=c=>{var p=Ht();i(c,p)},A=c=>{var p=Jt(),re=Z(p);At(re,17,()=>e(f),Et,(I,_)=>{var B=qt();B.__click=()=>Ye(e(_));var K=s(B),L=s(K),be=s(L,!0);o(L);var F=r(L,2),_e=s(F,!0);o(F);var se=r(F,2),Me=s(se,!0);o(se),o(K);var oe=r(K,2);{var me=V=>{var X=Qt(),De=s(X,!0);o(X),m(()=>h(De,e(_).snippet)),i(V,X)};u(oe,V=>{e(_).snippet&&V(me)})}o(B),m(V=>{Ee(L,1,`text-xs px-1.5 py-0.5 rounded ${e(_).matchType==="title"?"bg-gh-green/20 text-gh-green":"bg-gh-accent/20 text-gh-accent"}`),h(be,e(_).matchType==="title"?"Title":"Content"),h(_e,V),h(Me,e(_).title)},[()=>P(e(_).projectName)]),i(I,B)});var fe=r(re,2);{var Oe=I=>{var _=Gt();i(I,_)};u(fe,I=>{e(ve)&&I(Oe)})}i(c,p)};u(D,c=>{e(f).length===0?c($):c(A,!1)},!0)}i(v,w)};u(l,v=>{e(f).length===0&&e(ee)?v(y):v(b,!1)})}o(a),i(t,a)};u(rt,t=>{e(G)&&(e(f).length>0||e(ee))&&t(st)})}o(Ne);var Ue=r(Ne,2),ae=s(Ue);ae.__click=Je;var ot=s(ae,!0);o(ae);var xe=r(ae,2);xe.__click=Ge;var nt=s(xe,!0);o(xe),o(Ue),o(Te);var Re=r(Te,2),lt=s(Re);Pt(lt,()=>N.children),o(Re),o(je);var Be=r(je,2);{var dt=t=>{var a=Zt();a.__click=d=>d.target===d.currentTarget&&ze();var l=s(a),y=r(s(l),2),b=s(y),v=s(b);de(v);var w=r(v,2),D=r(s(w)),$=s(D);o(D),o(w),o(b);var A=r(b,2);let c;var p=s(A);de(p);var re=r(p,2),fe=r(s(re)),Oe=s(fe);o(fe),o(re),o(A);var I=r(A,2),_=s(I);de(_);var B=r(_,2),K=r(s(B)),L=s(K);o(K),o(B),o(I);var be=r(I,2),F=s(be);de(F);var _e=r(F,2),se=r(s(_e)),Me=s(se);o(se),o(_e),o(be),o(y);var oe=r(y,2),me=s(oe);{var V=d=>{var j=Lt(),E=Z(j),ne=r(E);{var le=S=>{var Y=z();m(()=>h(Y,`(skipping ${e(pe)??""} with todos)`)),i(S,Y)};u(ne,S=>{e(te)&&e(pe)>0&&S(le)})}m(()=>h(E,`Will delete ${e(ge)??""} session${e(ge)!==1?"s":""} `)),i(d,j)};u(me,d=>{e(T)&&d(V)})}var X=r(me,2);{var De=d=>{var j=Xt(),E=Z(j);{var ne=S=>{var Y=z(",");i(S,Y)};u(E,S=>{e(T)&&S(ne)})}var le=r(E);m(()=>h(le,` ${e(he)??""} orphan agent${e(he)!==1?"s":""}`)),i(d,j)};u(X,d=>{e(M)&&e(he)>0&&d(De)})}var Fe=r(X,2);{var vt=d=>{var j=Yt(),E=Z(j);{var ne=S=>{var Y=z(",");i(S,Y)};u(E,S=>{(e(T)||e(M))&&S(ne)})}var le=r(E);m(()=>h(le,` ${e(ue)??""} orphan todo${e(ue)!==1?"s":""}`)),i(d,j)};u(Fe,d=>{e(U)&&e(ue)>0&&d(vt)})}var pt=r(Fe,2);{var ht=d=>{var j=z("Nothing selected");i(d,j)};u(pt,d=>{!e(T)&&!e(M)&&!e(U)&&d(ht)})}o(oe);var Ve=r(oe,2),He=s(Ve);He.__click=ze;var ye=r(He,2);ye.__click=Ke;var ut=s(ye,!0);o(ye),o(Ve),o(l),o(a),m(()=>{h($,`(${e($e)??""})`),c=Ee(A,1,"flex items-center gap-3 cursor-pointer ml-6",null,c,{"opacity-50":!e(T)}),p.disabled=!e(T),h(Oe,`(${e(pe)??""})`),h(L,`(${e(he)??""})`),h(Me,`(${e(ue)??""})`),ye.disabled=e(q)||e(ge)===0&&!e(M)&&!e(U),h(ut,e(q)?"Cleaning...":"Execute Cleanup")}),we(v,()=>e(T),d=>n(T,d)),we(p,()=>e(te),d=>n(te,d)),we(_,()=>e(M),d=>n(M,d)),we(F,()=>e(U),d=>n(U,d)),i(t,a)};u(Be,t=>{e(ce)&&e(O)&&t(dt)})}var ct=r(Be,2);{var it=t=>{var a=ea(),l=s(a);{var y=c=>{var p=z();m(()=>h(p,`Removed ${e(k).removedMessageCount??""} invalid messages.`)),i(c,p)};u(l,c=>{e(k).removedMessageCount>0&&c(y)})}var b=r(l,2);{var v=c=>{var p=z();m(()=>h(p,`Deleted ${e(k).deletedCount??""} empty sessions.`)),i(c,p)};u(b,c=>{e(k).deletedCount>0&&c(v)})}var w=r(b,2);{var D=c=>{var p=z();m(()=>h(p,`Deleted ${e(k).deletedOrphanAgentCount??""} orphan agents.`)),i(c,p)};u(w,c=>{e(k).deletedOrphanAgentCount>0&&c(D)})}var $=r(w,2);{var A=c=>{var p=z();m(()=>h(p,`Deleted ${e(k).deletedOrphanTodoCount??""} orphan todos.`)),i(c,p)};u($,c=>{e(k).deletedOrphanTodoCount>0&&c(A)})}o(a),i(t,a)};u(ct,t=>{e(k)&&t(it)})}m(()=>{Mt(J,e(ie)),ae.disabled=e(q),h(ot,e(q)?"Cleaning...":"Cleanup"),xe.disabled=e(Ce),h(nt,e(Ce)?"Shutting down...":"Shutdown"),Ee(Re,1,`flex-1 ${e(W)?"":"p-8 max-w-7xl mx-auto"} w-full overflow-y-auto`)}),Qe("focus",J,()=>e(ie)&&n(G,!0)),Qe("blur",J,Ze),i(C,We),St()}gt(["input","click"]);export{ia as component,ca as universal};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as v,a as b,s as c}from"../chunks/
|
|
1
|
+
import{f as v,a as b,s as c}from"../chunks/CkjvdHcs.js";import{K as x,L as k,M as i,N as y,O as u,P as E,g as h,Q as K,R as L,S as M,p as N,f as O,t as P,b as Q,c as R,d as m,r as _}from"../chunks/BxOe8SxU.js";import{p as g}from"../chunks/BWTmO7Ce.js";function S(r=!1){const t=x,e=t.l.u;if(!e)return;let a=()=>K(t.s);if(r){let o=0,s={};const l=L(()=>{let n=!1;const p=t.s;for(const f in p)p[f]!==s[f]&&(s[f]=p[f],n=!0);return n&&o++,o});a=()=>h(l)}e.b.length&&k(()=>{d(t,a),u(e.b)}),i(()=>{const o=y(()=>e.m.map(E));return()=>{for(const s of o)typeof s=="function"&&s()}}),e.a.length&&i(()=>{d(t,a),u(e.a)})}function d(r,t){if(r.l.s)for(const e of r.l.s)h(e);t()}M();var j=v("<h1> </h1> <p> </p>",1);function A(r,t){N(t,!1),S();var e=j(),a=O(e),o=m(a,!0);_(a);var s=R(a,2),l=m(s,!0);_(s),P(()=>{var n;c(o,g.status),c(l,(n=g.error)==null?void 0:n.message)}),b(r,e),Q()}export{A as component};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{f as T,a as _,s as Y}from"../chunks/CkjvdHcs.js";import{p as Z,s as f,a as v,o as ee,f as te,b as se,c as P,d as $,g as e,r as E,e as n,t as ne}from"../chunks/BxOe8SxU.js";import{i as A}from"../chunks/od4vEq6Z.js";import{l as ae,m as re,a as R,d as ie,r as oe,g as ce,s as le,u as de,b as ue,e as pe}from"../chunks/akEBbnuI.js";import{P as fe,M as ge}from"../chunks/D3aD1aET.js";var me=T('<div class="fixed bottom-4 right-4 bg-gh-accent text-white px-4 py-2 rounded">Loading...</div>'),he=T('<div class="fixed bottom-4 right-4 bg-gh-red text-white px-4 py-2 rounded"> </div>'),we=T('<div class="grid grid-cols-[350px_1fr] gap-4 h-[calc(100vh-120px)]"><!> <!></div> <!> <!>',1);function xe(F,H){Z(H,!0);let m=f(v([])),o=f(v(new Map)),j=f(v(new Map)),u=f(v(new Set)),c=f(null),d=f(v([])),p=f(!1),y=f(null),l=f(null);const k=()=>{const t=window.location.hash.slice(1),s=new URLSearchParams(t);return{project:s.get("project")??void 0,session:s.get("session")??void 0}},w=(t,s)=>{const a=new URLSearchParams;t&&a.set("project",t),s&&a.set("session",s);const i=a.toString();window.history.replaceState(null,"",i?`#${i}`:window.location.pathname)},U=async()=>{n(p,!0),n(l,null);try{n(m,await ae(),!0)}catch(t){n(l,String(t),!0)}finally{n(p,!1)}},C=async t=>{if(!e(o).has(t)){n(y,t,!0);try{const s=await pe(t),a=[],i=new Map;for(const r of s)a.push({id:r.id,projectName:t,title:r.title,messageCount:r.messageCount,createdAt:r.createdAt,updatedAt:r.updatedAt}),i.set(r.id,r);e(o).set(t,a),n(o,new Map(e(o)),!0),e(j).set(t,i),n(j,new Map(e(j)),!0)}catch(s){n(l,String(s),!0)}finally{n(y,null)}}},M=async()=>{const{project:t,session:s}=k();if(t&&(await C(t),e(u).add(t),n(u,new Set(e(u)),!0),s)){const a=e(o).get(t),i=a==null?void 0:a.find(r=>r.id===s);i&&await D(i,!1)}},q=async t=>{var s,a;e(u).has(t)?(e(u).delete(t),n(u,new Set(e(u)),!0),((s=e(c))==null?void 0:s.projectName)===t&&w()):(await C(t),e(u).add(t),n(u,new Set(e(u)),!0),w(t,((a=e(c))==null?void 0:a.projectName)===t?e(c).id:void 0))},D=async(t,s=!0)=>{n(c,t,!0),n(p,!0),n(l,null);try{n(d,await ce(t.projectName,t.id),!0),s&&w(t.projectName,t.id)}catch(a){n(l,String(a),!0)}finally{n(p,!1)}},z=async(t,s)=>{var a;if(t.stopPropagation(),!!confirm(`Delete session "${s.title}"?`))try{await ie(s.projectName,s.id);const i=e(o).get(s.projectName);i&&(e(o).set(s.projectName,i.filter(r=>r.id!==s.id)),n(o,new Map(e(o)),!0)),((a=e(c))==null?void 0:a.id)===s.id&&(n(c,null),n(d,[],!0),w(s.projectName))}catch(i){n(l,String(i),!0)}},B=async(t,s)=>{t.stopPropagation();const a=prompt("Enter new title:",s.title);if(a)try{await oe(s.projectName,s.id,a),s.title=a,n(o,new Map(e(o)),!0)}catch(i){n(l,String(i),!0)}},G=async t=>{if(!e(c)||!confirm("Delete this message?"))return;const s=t.uuid||t.messageId;if(s)try{await ue(e(c).projectName,e(c).id,s),n(d,e(d).filter(r=>(r.uuid||r.messageId)!==s),!0);const a=e(o).get(e(c).projectName),i=a==null?void 0:a.find(r=>r.id===e(c).id);i&&(i.messageCount=e(d).length,n(o,new Map(e(o)),!0))}catch(a){n(l,String(a),!0)}},J=async t=>{if(!e(c))return;const s=t.customTitle??"",a=prompt("Enter new custom title:",s);if(!(a===null||a===s))try{await de(e(c).projectName,e(c).id,t.uuid,a),t.customTitle=a,n(d,[...e(d)],!0)}catch(i){n(l,String(i),!0)}},K=async t=>{if(!e(c))return;const s=e(d).findIndex(r=>r.uuid===t.uuid),a=s,i=e(d).length-s;if(confirm(`Split session at this message?
|
|
2
|
+
|
|
3
|
+
This session will keep ${a} messages.
|
|
4
|
+
New session will have ${i} messages.`))try{n(p,!0);const r=await le(e(c).projectName,e(c).id,t.uuid);if(r.success&&r.newSessionId){const N=await R(e(c).projectName);e(o).set(e(c).projectName,N),n(o,new Map(e(o)),!0),n(d,e(d).slice(0,s),!0);const h=e(o).get(e(c).projectName),S=h==null?void 0:h.find(g=>g.id===e(c).id);S&&(S.messageCount=e(d).length,n(o,new Map(e(o)),!0)),alert(`Session split successfully!
|
|
5
|
+
New session ID: ${r.newSessionId}`)}else n(l,r.error??"Failed to split session",!0)}catch(r){n(l,String(r),!0)}finally{n(p,!1)}},O=async(t,s)=>{var a;if(confirm(`Move session "${t.title}" to ${s.split("-").pop()}?`))try{n(p,!0);const i=await re(t.projectName,t.id,s);if(i.success){const r=e(o).get(t.projectName);r&&e(o).set(t.projectName,r.filter(g=>g.id!==t.id));const N=await R(s);e(o).set(s,N),n(o,new Map(e(o)),!0);const h=e(m).find(g=>g.name===t.projectName),S=e(m).find(g=>g.name===s);h&&h.sessionCount--,S&&S.sessionCount++,n(m,[...e(m)],!0),((a=e(c))==null?void 0:a.id)===t.id&&(n(c,null),n(d,[],!0),w())}else n(l,i.error??"Failed to move session",!0)}catch(i){n(l,String(i),!0)}finally{n(p,!1)}};ee(async()=>(await U(),await M(),window.addEventListener("hashchange",M),()=>window.removeEventListener("hashchange",M)));var b=we(),x=te(b),I=$(x);fe(I,{get projects(){return e(m)},get projectSessions(){return e(o)},get projectSessionData(){return e(j)},get expandedProjects(){return e(u)},get selectedSession(){return e(c)},get loadingProject(){return e(y)},onToggleProject:q,onSelectSession:D,onRenameSession:B,onDeleteSession:z,onMoveSession:O});var Q=P(I,2);ge(Q,{get session(){return e(c)},get messages(){return e(d)},onDeleteMessage:G,onEditTitle:J,onSplitSession:K}),E(x);var L=P(x,2);{var V=t=>{var s=me();_(t,s)};A(L,t=>{e(p)&&t(V)})}var W=P(L,2);{var X=t=>{var s=he(),a=$(s,!0);E(s),ne(()=>Y(a,e(l))),_(t,s)};A(W,t=>{e(l)&&t(X)})}_(F,b),se()}export{xe as component};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{f as I,a as p,s as y,c as K}from"../chunks/CkjvdHcs.js";import{p as P,s as h,a as Q,o as V,t as N,b as W,h as X,c as b,d as l,g as e,$ as Y,r as d,u as D,e as a,f as Z}from"../chunks/BxOe8SxU.js";import{i as $}from"../chunks/od4vEq6Z.js";import{h as ee}from"../chunks/E9IRgQhr.js";import{p as E}from"../chunks/BWTmO7Ce.js";import{a as se,g as te,s as ae,u as ie,b as re}from"../chunks/akEBbnuI.js";import{M as oe}from"../chunks/D3aD1aET.js";var ne=I('<div class="flex items-center justify-center h-full"><div class="text-gh-muted">Loading...</div></div>'),le=I('<div class="flex items-center justify-center h-full"><div class="text-gh-red"> </div></div>'),de=I('<div class="min-h-screen flex flex-col bg-gh-bg"><header class="flex-shrink-0 p-4 border-b border-gh-border bg-gh-canvas"><div class="flex items-center gap-4"><a href="/" class="text-gh-muted hover:text-gh-fg" title="Back to home"><svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 19l-7-7m0 0l7-7m-7 7h18"></path></svg></a> <div><h1 class="text-lg font-semibold text-gh-fg"> </h1> <p class="text-sm text-gh-muted"> </p></div></div></header> <div class="flex-1 overflow-y-auto"><!></div></div>');function he(L,B){P(B,!0);let i=h(null),o=h(Q([])),m=h(!0),c=h(null);const v=D(()=>decodeURIComponent(E.params.project)),g=D(()=>decodeURIComponent(E.params.id)),R=async()=>{a(m,!0),a(c,null);try{const s=await se(e(v));a(i,s.find(t=>t.id===e(g))??{id:e(g),projectName:e(v),title:e(g),messageCount:0,updatedAt:new Date().toISOString()},!0),a(o,await te(e(v),e(g)),!0)}catch(s){a(c,String(s),!0)}finally{a(m,!1)}},U=async s=>{if(!e(i)||!confirm("Delete this message?"))return;const t=s.uuid||s.messageId;if(t)try{await re(e(i).projectName,e(i).id,t),a(o,e(o).filter(r=>(r.uuid||r.messageId)!==t),!0)}catch(r){a(c,String(r),!0)}},A=async s=>{if(!e(i))return;const t=s.customTitle??"",r=prompt("Enter new custom title:",t);if(!(r===null||r===t))try{await ie(e(i).projectName,e(i).id,s.uuid,r),s.customTitle=r,a(o,[...e(o)],!0)}catch(f){a(c,String(f),!0)}},F=async s=>{if(!e(i))return;const t=e(o).findIndex(n=>n.uuid===s.uuid),r=t,f=e(o).length-t;if(confirm(`Split session at this message?
|
|
2
|
+
|
|
3
|
+
This session will keep ${r} messages.
|
|
4
|
+
New session will have ${f} messages.`))try{a(m,!0);const n=await ae(e(i).projectName,e(i).id,s.uuid);n.success&&n.newSessionId?(a(o,e(o).slice(0,t),!0),alert(`Session split successfully!
|
|
5
|
+
New session ID: ${n.newSessionId}`)):a(c,n.error??"Failed to split session",!0)}catch(n){a(c,String(n),!0)}finally{a(m,!1)}};V(R);var x=de();ee("ik3mmh",s=>{X(()=>{var t;Y.title=`${((t=e(i))==null?void 0:t.title)??"Session"??""} - Claude Sessions`})});var S=l(x),j=l(S),k=b(l(j),2),_=l(k),H=l(_,!0);d(_);var C=b(_,2),O=l(C,!0);d(C),d(k),d(j),d(S);var T=b(S,2),q=l(T);{var z=s=>{var t=ne();p(s,t)},G=s=>{var t=K(),r=Z(t);{var f=u=>{var w=le(),M=l(w),J=l(M,!0);d(M),d(w),N(()=>y(J,e(c))),p(u,w)},n=u=>{oe(u,{get session(){return e(i)},get messages(){return e(o)},onDeleteMessage:U,onEditTitle:A,onSplitSession:F,showHeader:!1})};$(r,u=>{e(c)?u(f):u(n,!1)},!0)}p(s,t)};$(q,s=>{e(m)?s(z):s(G,!1)})}d(T),d(x),N(()=>{var s;y(H,((s=e(i))==null?void 0:s.title)??"Loading..."),y(O,e(v))}),p(L,x),W()}export{he as component};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"
|
|
1
|
+
{"version":"1766066232548"}
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const ssr = true;
|
|
2
|
+
|
|
3
|
+
var _layout_ts = /*#__PURE__*/Object.freeze({
|
|
4
|
+
__proto__: null,
|
|
5
|
+
ssr: ssr
|
|
6
|
+
});
|
|
7
|
+
|
|
8
|
+
const index = 0;
|
|
9
|
+
let component_cache;
|
|
10
|
+
const component = async () => component_cache ??= (await import('./_layout.svelte-BnXBRxbo.js')).default;
|
|
11
|
+
const universal_id = "src/routes/+layout.ts";
|
|
12
|
+
const imports = ["_app/immutable/nodes/0.DaYtdWai.js","_app/immutable/chunks/CkjvdHcs.js","_app/immutable/chunks/BxOe8SxU.js","_app/immutable/chunks/od4vEq6Z.js","_app/immutable/chunks/akEBbnuI.js","_app/immutable/chunks/E9IRgQhr.js","_app/immutable/chunks/CYkK8rm7.js","_app/immutable/chunks/BWTmO7Ce.js"];
|
|
13
|
+
const stylesheets = ["_app/immutable/assets/0.Bn90K0hQ.css"];
|
|
14
|
+
const fonts = [];
|
|
15
|
+
|
|
16
|
+
export { component, fonts, imports, index, stylesheets, _layout_ts as universal, universal_id };
|
|
17
|
+
//# sourceMappingURL=0-COZ9DRTB.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"0-COZ9DRTB.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/_layout.ts.js","../../../.svelte-kit/adapter-node/nodes/0.js"],"sourcesContent":["const ssr = true;\nexport {\n ssr\n};\n","import * as universal from '../entries/pages/_layout.ts.js';\n\nexport const index = 0;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/_layout.svelte.js')).default;\nexport { universal };\nexport const universal_id = \"src/routes/+layout.ts\";\nexport const imports = [\"_app/immutable/nodes/0.DaYtdWai.js\",\"_app/immutable/chunks/CkjvdHcs.js\",\"_app/immutable/chunks/BxOe8SxU.js\",\"_app/immutable/chunks/od4vEq6Z.js\",\"_app/immutable/chunks/akEBbnuI.js\",\"_app/immutable/chunks/E9IRgQhr.js\",\"_app/immutable/chunks/CYkK8rm7.js\",\"_app/immutable/chunks/BWTmO7Ce.js\"];\nexport const stylesheets = [\"_app/immutable/assets/0.Bn90K0hQ.css\"];\nexport const fonts = [];\n"],"names":[],"mappings":"AAAA,MAAM,GAAG,GAAG,IAAI;;;;;;;ACEJ,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,8BAAoC,CAAC,EAAE;AAElG,MAAC,YAAY,GAAG;AAChB,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AAC5S,MAAC,WAAW,GAAG,CAAC,sCAAsC;AACtD,MAAC,KAAK,GAAG;;;;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
const index = 1;
|
|
2
|
+
let component_cache;
|
|
3
|
+
const component = async () => component_cache ??= (await import('./error.svelte-CxBB_UKu.js')).default;
|
|
4
|
+
const imports = ["_app/immutable/nodes/1.D5wTLv8r.js","_app/immutable/chunks/CkjvdHcs.js","_app/immutable/chunks/BxOe8SxU.js","_app/immutable/chunks/BWTmO7Ce.js","_app/immutable/chunks/CYkK8rm7.js"];
|
|
5
|
+
const stylesheets = [];
|
|
6
|
+
const fonts = [];
|
|
7
|
+
|
|
8
|
+
export { component, fonts, imports, index, stylesheets };
|
|
9
|
+
//# sourceMappingURL=1-tU4AnjlD.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"1-
|
|
1
|
+
{"version":3,"file":"1-tU4AnjlD.js","sources":["../../../.svelte-kit/adapter-node/nodes/1.js"],"sourcesContent":["\n\nexport const index = 1;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/fallbacks/error.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/1.D5wTLv8r.js\",\"_app/immutable/chunks/CkjvdHcs.js\",\"_app/immutable/chunks/BxOe8SxU.js\",\"_app/immutable/chunks/BWTmO7Ce.js\",\"_app/immutable/chunks/CYkK8rm7.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAAsC,CAAC,EAAE;AACpG,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AAChM,MAAC,WAAW,GAAG;AACf,MAAC,KAAK,GAAG;;;;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
const index = 2;
|
|
2
|
+
let component_cache;
|
|
3
|
+
const component = async () => component_cache ??= (await import('./_page.svelte-BlgbAbC7.js')).default;
|
|
4
|
+
const imports = ["_app/immutable/nodes/2.B8y2ftwS.js","_app/immutable/chunks/CkjvdHcs.js","_app/immutable/chunks/BxOe8SxU.js","_app/immutable/chunks/od4vEq6Z.js","_app/immutable/chunks/akEBbnuI.js","_app/immutable/chunks/D3aD1aET.js","_app/immutable/chunks/Dejy2au4.js"];
|
|
5
|
+
const stylesheets = [];
|
|
6
|
+
const fonts = [];
|
|
7
|
+
|
|
8
|
+
export { component, fonts, imports, index, stylesheets };
|
|
9
|
+
//# sourceMappingURL=2-COXuwRCi.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"2-
|
|
1
|
+
{"version":3,"file":"2-COXuwRCi.js","sources":["../../../.svelte-kit/adapter-node/nodes/2.js"],"sourcesContent":["\n\nexport const index = 2;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/_page.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/2.B8y2ftwS.js\",\"_app/immutable/chunks/CkjvdHcs.js\",\"_app/immutable/chunks/BxOe8SxU.js\",\"_app/immutable/chunks/od4vEq6Z.js\",\"_app/immutable/chunks/akEBbnuI.js\",\"_app/immutable/chunks/D3aD1aET.js\",\"_app/immutable/chunks/Dejy2au4.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAAkC,CAAC,EAAE;AAChG,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AACxQ,MAAC,WAAW,GAAG;AACf,MAAC,KAAK,GAAG;;;;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
const index = 3;
|
|
2
|
+
let component_cache;
|
|
3
|
+
const component = async () => component_cache ??= (await import('./_page.svelte-BWLtdblA.js')).default;
|
|
4
|
+
const imports = ["_app/immutable/nodes/3.vPl_02hO.js","_app/immutable/chunks/CkjvdHcs.js","_app/immutable/chunks/BxOe8SxU.js","_app/immutable/chunks/od4vEq6Z.js","_app/immutable/chunks/E9IRgQhr.js","_app/immutable/chunks/BWTmO7Ce.js","_app/immutable/chunks/CYkK8rm7.js","_app/immutable/chunks/akEBbnuI.js","_app/immutable/chunks/D3aD1aET.js","_app/immutable/chunks/Dejy2au4.js"];
|
|
5
|
+
const stylesheets = [];
|
|
6
|
+
const fonts = [];
|
|
7
|
+
|
|
8
|
+
export { component, fonts, imports, index, stylesheets };
|
|
9
|
+
//# sourceMappingURL=3-C-uqf36P.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"3-
|
|
1
|
+
{"version":3,"file":"3-C-uqf36P.js","sources":["../../../.svelte-kit/adapter-node/nodes/3.js"],"sourcesContent":["\n\nexport const index = 3;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/session/_project_/_id_/_page.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/3.vPl_02hO.js\",\"_app/immutable/chunks/CkjvdHcs.js\",\"_app/immutable/chunks/BxOe8SxU.js\",\"_app/immutable/chunks/od4vEq6Z.js\",\"_app/immutable/chunks/E9IRgQhr.js\",\"_app/immutable/chunks/BWTmO7Ce.js\",\"_app/immutable/chunks/CYkK8rm7.js\",\"_app/immutable/chunks/akEBbnuI.js\",\"_app/immutable/chunks/D3aD1aET.js\",\"_app/immutable/chunks/Dejy2au4.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAAyD,CAAC,EAAE;AACvH,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AACpX,MAAC,WAAW,GAAG;AACf,MAAC,KAAK,GAAG;;;;"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { w as head, x as attr, y as attr_class, z as stringify } from './index-CMvE0dm6.js';
|
|
2
|
+
import './exports-BzHwARwz.js';
|
|
3
|
+
import { p as page } from './index3-NDyeileA.js';
|
|
4
|
+
import { e as escape_html } from './context-R2425nfV.js';
|
|
5
|
+
|
|
6
|
+
function _layout($$renderer, $$props) {
|
|
7
|
+
$$renderer.component(($$renderer2) => {
|
|
8
|
+
let { children } = $$props;
|
|
9
|
+
const isSessionPage = page.url.pathname.startsWith("/session/");
|
|
10
|
+
(() => {
|
|
11
|
+
if (!isSessionPage) return null;
|
|
12
|
+
const match = page.url.pathname.match(/^\/session\/([^/]+)\/([^/]+)/);
|
|
13
|
+
if (!match) return null;
|
|
14
|
+
return {
|
|
15
|
+
projectName: decodeURIComponent(match[1]),
|
|
16
|
+
sessionId: decodeURIComponent(match[2])
|
|
17
|
+
};
|
|
18
|
+
})();
|
|
19
|
+
let cleaning = false;
|
|
20
|
+
let shuttingDown = false;
|
|
21
|
+
let searchQuery = "";
|
|
22
|
+
head("12qhfyh", $$renderer2, ($$renderer3) => {
|
|
23
|
+
$$renderer3.title(($$renderer4) => {
|
|
24
|
+
$$renderer4.push(`<title>Claude Sessions</title>`);
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
$$renderer2.push(`<div class="min-h-screen flex flex-col bg-gh-bg text-gh-text"><header class="bg-gh-bg-secondary border-b border-gh-border px-8 py-4 flex justify-between items-center"><div class="flex items-center gap-3"><a href="/" class="flex items-center gap-2 hover:text-gh-accent" title="Claude Sessions"><svg class="w-6 h-6 text-gh-accent" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"></path></svg> <span class="text-2xl font-semibold hidden sm:inline">Claude Sessions</span></a> `);
|
|
28
|
+
{
|
|
29
|
+
$$renderer2.push("<!--[!-->");
|
|
30
|
+
}
|
|
31
|
+
$$renderer2.push(`<!--]--></div> <div class="relative flex-1 max-w-md mx-8"><input type="text" placeholder="Search sessions..."${attr("value", searchQuery)} class="w-full px-4 py-2 bg-gh-bg border border-gh-border rounded-md text-sm focus:outline-none focus:border-gh-accent"/> `);
|
|
32
|
+
{
|
|
33
|
+
$$renderer2.push("<!--[!-->");
|
|
34
|
+
}
|
|
35
|
+
$$renderer2.push(`<!--]--> `);
|
|
36
|
+
{
|
|
37
|
+
$$renderer2.push("<!--[!-->");
|
|
38
|
+
}
|
|
39
|
+
$$renderer2.push(`<!--]--></div> <div class="flex gap-2"><button class="bg-gh-border-subtle border border-gh-border text-gh-text px-4 py-2 rounded-md text-sm transition-colors hover:bg-gh-border hover:border-gh-text-secondary disabled:opacity-50 disabled:cursor-not-allowed"${attr("disabled", cleaning, true)}>${escape_html("Cleanup")}</button> <button class="bg-gh-red border border-gh-red text-white px-4 py-2 rounded-md text-sm transition-colors hover:bg-red-700 disabled:opacity-50 disabled:cursor-not-allowed"${attr("disabled", shuttingDown, true)}>${escape_html("Shutdown")}</button></div></header> <main${attr_class(`flex-1 ${stringify(isSessionPage ? "" : "p-8 max-w-7xl mx-auto")} w-full overflow-y-auto`)}>`);
|
|
40
|
+
children($$renderer2);
|
|
41
|
+
$$renderer2.push(`<!----></main></div> `);
|
|
42
|
+
{
|
|
43
|
+
$$renderer2.push("<!--[!-->");
|
|
44
|
+
}
|
|
45
|
+
$$renderer2.push(`<!--]--> `);
|
|
46
|
+
{
|
|
47
|
+
$$renderer2.push("<!--[!-->");
|
|
48
|
+
}
|
|
49
|
+
$$renderer2.push(`<!--]-->`);
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export { _layout as default };
|
|
54
|
+
//# sourceMappingURL=_layout.svelte-BnXBRxbo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_layout.svelte-BnXBRxbo.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/_layout.svelte.js"],"sourcesContent":["import { w as head, x as attr, y as attr_class, z as stringify } from \"../../chunks/index.js\";\nimport \"@sveltejs/kit/internal\";\nimport \"../../chunks/exports.js\";\nimport \"../../chunks/utils.js\";\nimport \"@sveltejs/kit/internal/server\";\nimport { p as page } from \"../../chunks/index3.js\";\nimport { e as escape_html } from \"../../chunks/context.js\";\nfunction _layout($$renderer, $$props) {\n $$renderer.component(($$renderer2) => {\n let { children } = $$props;\n const isSessionPage = page.url.pathname.startsWith(\"/session/\");\n (() => {\n if (!isSessionPage) return null;\n const match = page.url.pathname.match(/^\\/session\\/([^/]+)\\/([^/]+)/);\n if (!match) return null;\n return {\n projectName: decodeURIComponent(match[1]),\n sessionId: decodeURIComponent(match[2])\n };\n })();\n let cleaning = false;\n let shuttingDown = false;\n let searchQuery = \"\";\n head(\"12qhfyh\", $$renderer2, ($$renderer3) => {\n $$renderer3.title(($$renderer4) => {\n $$renderer4.push(`<title>Claude Sessions</title>`);\n });\n });\n $$renderer2.push(`<div class=\"min-h-screen flex flex-col bg-gh-bg text-gh-text\"><header class=\"bg-gh-bg-secondary border-b border-gh-border px-8 py-4 flex justify-between items-center\"><div class=\"flex items-center gap-3\"><a href=\"/\" class=\"flex items-center gap-2 hover:text-gh-accent\" title=\"Claude Sessions\"><svg class=\"w-6 h-6 text-gh-accent\" fill=\"none\" stroke=\"currentColor\" viewBox=\"0 0 24 24\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z\"></path></svg> <span class=\"text-2xl font-semibold hidden sm:inline\">Claude Sessions</span></a> `);\n {\n $$renderer2.push(\"<!--[!-->\");\n }\n $$renderer2.push(`<!--]--></div> <div class=\"relative flex-1 max-w-md mx-8\"><input type=\"text\" placeholder=\"Search sessions...\"${attr(\"value\", searchQuery)} class=\"w-full px-4 py-2 bg-gh-bg border border-gh-border rounded-md text-sm focus:outline-none focus:border-gh-accent\"/> `);\n {\n $$renderer2.push(\"<!--[!-->\");\n }\n $$renderer2.push(`<!--]--> `);\n {\n $$renderer2.push(\"<!--[!-->\");\n }\n $$renderer2.push(`<!--]--></div> <div class=\"flex gap-2\"><button class=\"bg-gh-border-subtle border border-gh-border text-gh-text px-4 py-2 rounded-md text-sm transition-colors hover:bg-gh-border hover:border-gh-text-secondary disabled:opacity-50 disabled:cursor-not-allowed\"${attr(\"disabled\", cleaning, true)}>${escape_html(\"Cleanup\")}</button> <button class=\"bg-gh-red border border-gh-red text-white px-4 py-2 rounded-md text-sm transition-colors hover:bg-red-700 disabled:opacity-50 disabled:cursor-not-allowed\"${attr(\"disabled\", shuttingDown, true)}>${escape_html(\"Shutdown\")}</button></div></header> <main${attr_class(`flex-1 ${stringify(isSessionPage ? \"\" : \"p-8 max-w-7xl mx-auto\")} w-full overflow-y-auto`)}>`);\n children($$renderer2);\n $$renderer2.push(`<!----></main></div> `);\n {\n $$renderer2.push(\"<!--[!-->\");\n }\n $$renderer2.push(`<!--]--> `);\n {\n $$renderer2.push(\"<!--[!-->\");\n }\n $$renderer2.push(`<!--]-->`);\n });\n}\nexport {\n _layout as default\n};\n"],"names":[],"mappings":";;;;;AAOA,SAAS,OAAO,CAAC,UAAU,EAAE,OAAO,EAAE;AACtC,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,WAAW,KAAK;AACxC,IAAI,IAAI,EAAE,QAAQ,EAAE,GAAG,OAAO;AAC9B,IAAI,MAAM,aAAa,GAAG,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,UAAU,CAAC,WAAW,CAAC;AACnE,IAAI,CAAC,MAAM;AACX,MAAM,IAAI,CAAC,aAAa,EAAE,OAAO,IAAI;AACrC,MAAM,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,KAAK,CAAC,8BAA8B,CAAC;AAC3E,MAAM,IAAI,CAAC,KAAK,EAAE,OAAO,IAAI;AAC7B,MAAM,OAAO;AACb,QAAQ,WAAW,EAAE,kBAAkB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AACjD,QAAQ,SAAS,EAAE,kBAAkB,CAAC,KAAK,CAAC,CAAC,CAAC;AAC9C,OAAO;AACP,IAAI,CAAC,GAAG;AACR,IAAI,IAAI,QAAQ,GAAG,KAAK;AACxB,IAAI,IAAI,YAAY,GAAG,KAAK;AAC5B,IAAI,IAAI,WAAW,GAAG,EAAE;AACxB,IAAI,IAAI,CAAC,SAAS,EAAE,WAAW,EAAE,CAAC,WAAW,KAAK;AAClD,MAAM,WAAW,CAAC,KAAK,CAAC,CAAC,WAAW,KAAK;AACzC,QAAQ,WAAW,CAAC,IAAI,CAAC,CAAC,8BAA8B,CAAC,CAAC;AAC1D,MAAM,CAAC,CAAC;AACR,IAAI,CAAC,CAAC;AACN,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC,6nBAA6nB,CAAC,CAAC;AACrpB,IAAI;AACJ,MAAM,WAAW,CAAC,IAAI,CAAC,WAAW,CAAC;AACnC,IAAI;AACJ,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC,6GAA6G,EAAE,IAAI,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC,0HAA0H,CAAC,CAAC;AAC5R,IAAI;AACJ,MAAM,WAAW,CAAC,IAAI,CAAC,WAAW,CAAC;AACnC,IAAI;AACJ,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC;AACjC,IAAI;AACJ,MAAM,WAAW,CAAC,IAAI,CAAC,WAAW,CAAC;AACnC,IAAI;AACJ,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC,gQAAgQ,EAAE,IAAI,CAAC,UAAU,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC,mLAAmL,EAAE,IAAI,CAAC,UAAU,EAAE,YAAY,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,UAAU,CAAC,CAAC,8BAA8B,EAAE,UAAU,CAAC,CAAC,OAAO,EAAE,SAAS,CAAC,aAAa,GAAG,EAAE,GAAG,uBAAuB,CAAC,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACltB,IAAI,QAAQ,CAAC,WAAW,CAAC;AACzB,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC,qBAAqB,CAAC,CAAC;AAC7C,IAAI;AACJ,MAAM,WAAW,CAAC,IAAI,CAAC,WAAW,CAAC;AACnC,IAAI;AACJ,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC;AACjC,IAAI;AACJ,MAAM,WAAW,CAAC,IAAI,CAAC,WAAW,CAAC;AACnC,IAAI;AACJ,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC;AAChC,EAAE,CAAC,CAAC;AACJ;;;;"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { w as head } from './index-CMvE0dm6.js';
|
|
2
|
+
import { p as page } from './index3-NDyeileA.js';
|
|
3
|
+
import './format-DGbVKLYO.js';
|
|
4
|
+
import { e as escape_html } from './context-R2425nfV.js';
|
|
5
|
+
import './exports-BzHwARwz.js';
|
|
6
|
+
import 'marked';
|
|
7
|
+
|
|
8
|
+
function _page($$renderer, $$props) {
|
|
9
|
+
$$renderer.component(($$renderer2) => {
|
|
10
|
+
const projectName = decodeURIComponent(page.params.project);
|
|
11
|
+
decodeURIComponent(page.params.id);
|
|
12
|
+
head("ik3mmh", $$renderer2, ($$renderer3) => {
|
|
13
|
+
$$renderer3.title(($$renderer4) => {
|
|
14
|
+
$$renderer4.push(`<title>${escape_html("Session")} - Claude Sessions</title>`);
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
$$renderer2.push(`<div class="min-h-screen flex flex-col bg-gh-bg"><header class="flex-shrink-0 p-4 border-b border-gh-border bg-gh-canvas"><div class="flex items-center gap-4"><a href="/" class="text-gh-muted hover:text-gh-fg" title="Back to home"><svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 19l-7-7m0 0l7-7m-7 7h18"></path></svg></a> <div><h1 class="text-lg font-semibold text-gh-fg">${escape_html("Loading...")}</h1> <p class="text-sm text-gh-muted">${escape_html(projectName)}</p></div></div></header> <div class="flex-1 overflow-y-auto">`);
|
|
18
|
+
{
|
|
19
|
+
$$renderer2.push("<!--[-->");
|
|
20
|
+
$$renderer2.push(`<div class="flex items-center justify-center h-full"><div class="text-gh-muted">Loading...</div></div>`);
|
|
21
|
+
}
|
|
22
|
+
$$renderer2.push(`<!--]--></div></div>`);
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export { _page as default };
|
|
27
|
+
//# sourceMappingURL=_page.svelte-BWLtdblA.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_page.svelte-BWLtdblA.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/session/_project_/_id_/_page.svelte.js"],"sourcesContent":["import { w as head } from \"../../../../../chunks/index.js\";\nimport { p as page } from \"../../../../../chunks/index3.js\";\nimport \"../../../../../chunks/format.js\";\nimport { e as escape_html } from \"../../../../../chunks/context.js\";\nfunction _page($$renderer, $$props) {\n $$renderer.component(($$renderer2) => {\n const projectName = decodeURIComponent(page.params.project);\n decodeURIComponent(page.params.id);\n head(\"ik3mmh\", $$renderer2, ($$renderer3) => {\n $$renderer3.title(($$renderer4) => {\n $$renderer4.push(`<title>${escape_html(\"Session\")} - Claude Sessions</title>`);\n });\n });\n $$renderer2.push(`<div class=\"min-h-screen flex flex-col bg-gh-bg\"><header class=\"flex-shrink-0 p-4 border-b border-gh-border bg-gh-canvas\"><div class=\"flex items-center gap-4\"><a href=\"/\" class=\"text-gh-muted hover:text-gh-fg\" title=\"Back to home\"><svg class=\"w-5 h-5\" fill=\"none\" stroke=\"currentColor\" viewBox=\"0 0 24 24\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M10 19l-7-7m0 0l7-7m-7 7h18\"></path></svg></a> <div><h1 class=\"text-lg font-semibold text-gh-fg\">${escape_html(\"Loading...\")}</h1> <p class=\"text-sm text-gh-muted\">${escape_html(projectName)}</p></div></div></header> <div class=\"flex-1 overflow-y-auto\">`);\n {\n $$renderer2.push(\"<!--[-->\");\n $$renderer2.push(`<div class=\"flex items-center justify-center h-full\"><div class=\"text-gh-muted\">Loading...</div></div>`);\n }\n $$renderer2.push(`<!--]--></div></div>`);\n });\n}\nexport {\n _page as default\n};\n"],"names":[],"mappings":";;;;;;;AAIA,SAAS,KAAK,CAAC,UAAU,EAAE,OAAO,EAAE;AACpC,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,WAAW,KAAK;AACxC,IAAI,MAAM,WAAW,GAAG,kBAAkB,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC;AAC/D,IAAI,kBAAkB,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC;AACtC,IAAI,IAAI,CAAC,QAAQ,EAAE,WAAW,EAAE,CAAC,WAAW,KAAK;AACjD,MAAM,WAAW,CAAC,KAAK,CAAC,CAAC,WAAW,KAAK;AACzC,QAAQ,WAAW,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC,0BAA0B,CAAC,CAAC;AACtF,MAAM,CAAC,CAAC;AACR,IAAI,CAAC,CAAC;AACN,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC,4dAA4d,EAAE,WAAW,CAAC,YAAY,CAAC,CAAC,uCAAuC,EAAE,WAAW,CAAC,WAAW,CAAC,CAAC,8DAA8D,CAAC,CAAC;AAChpB,IAAI;AACJ,MAAM,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC;AAClC,MAAM,WAAW,CAAC,IAAI,CAAC,CAAC,sGAAsG,CAAC,CAAC;AAChI,IAAI;AACJ,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC,oBAAoB,CAAC,CAAC;AAC5C,EAAE,CAAC,CAAC;AACJ;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { F as ensure_array_like, y as attr_class, x as attr, z as stringify } from './index-CMvE0dm6.js';
|
|
2
2
|
import { f as formatProjectName } from './format-DGbVKLYO.js';
|
|
3
3
|
import { e as escape_html } from './context-R2425nfV.js';
|
|
4
4
|
import 'marked';
|
|
@@ -8,10 +8,37 @@ function ProjectTree($$renderer, $$props) {
|
|
|
8
8
|
let {
|
|
9
9
|
projects,
|
|
10
10
|
projectSessions,
|
|
11
|
+
projectSessionData,
|
|
11
12
|
expandedProjects,
|
|
12
13
|
selectedSession,
|
|
13
14
|
loadingProject
|
|
14
15
|
} = $$props;
|
|
16
|
+
const getSessionData = (projectName, sessionId) => {
|
|
17
|
+
return projectSessionData.get(projectName)?.get(sessionId);
|
|
18
|
+
};
|
|
19
|
+
const getDisplayTitle = (session) => {
|
|
20
|
+
if (session.title) return session.title;
|
|
21
|
+
const data = getSessionData(session.projectName, session.id);
|
|
22
|
+
if (data?.lastSummary?.summary) {
|
|
23
|
+
const summary = data.lastSummary.summary;
|
|
24
|
+
return summary.length > 60 ? summary.slice(0, 57) + "..." : summary;
|
|
25
|
+
}
|
|
26
|
+
return "Untitled";
|
|
27
|
+
};
|
|
28
|
+
const getTooltipText = (session) => {
|
|
29
|
+
const data = getSessionData(session.projectName, session.id);
|
|
30
|
+
if (data?.lastSummary?.summary) {
|
|
31
|
+
return data.lastSummary.summary;
|
|
32
|
+
}
|
|
33
|
+
return session.title ?? "No summary available";
|
|
34
|
+
};
|
|
35
|
+
const hasAgentsOrTodos = (session) => {
|
|
36
|
+
const data = getSessionData(session.projectName, session.id);
|
|
37
|
+
return {
|
|
38
|
+
agents: data?.agents.length ?? 0,
|
|
39
|
+
todos: data?.todos.length ?? 0
|
|
40
|
+
};
|
|
41
|
+
};
|
|
15
42
|
const nonEmptyProjects = projects.filter((p) => p.sessionCount > 0);
|
|
16
43
|
let draggedSession = null;
|
|
17
44
|
let dropTargetProject = null;
|
|
@@ -35,7 +62,25 @@ function ProjectTree($$renderer, $$props) {
|
|
|
35
62
|
let session = each_array_1[$$index];
|
|
36
63
|
const isSelected = selectedSession?.id === session.id;
|
|
37
64
|
const isDragging = draggedSession?.id === session.id;
|
|
38
|
-
|
|
65
|
+
const sessionInfo = hasAgentsOrTodos(session);
|
|
66
|
+
const displayTitle = getDisplayTitle(session);
|
|
67
|
+
const tooltipText = getTooltipText(session);
|
|
68
|
+
const isSummaryFallback = !session.title && displayTitle !== "Untitled";
|
|
69
|
+
$$renderer2.push(`<li${attr_class(`relative flex items-center border-t border-gh-border-subtle group ${stringify(isSelected ? "bg-gh-accent/20 border-l-3 border-l-gh-accent" : "")} ${stringify(isDragging ? "opacity-50" : "")}`)} draggable="true"><button${attr_class(`w-full min-w-0 py-2 pr-2 bg-transparent border-none text-gh-text cursor-pointer text-left flex items-center gap-2 text-sm hover:bg-gh-border-subtle ${stringify(isSelected ? "pl-[calc(2em-3px)]" : "pl-[2em]")}`)}${attr("title", tooltipText)}><span${attr_class(`flex-1 min-w-0 overflow-hidden text-ellipsis whitespace-nowrap ${stringify(isSummaryFallback ? "italic text-gh-text-secondary" : "")}`)}>${escape_html(displayTitle)}</span> <span class="flex-shrink-0 flex items-center gap-2 text-xs text-gh-text-secondary"><span class="flex items-center gap-0.5"${attr("title", `${stringify(session.messageCount)} messages`)}><span>💬</span><span>${escape_html(session.messageCount)}</span></span> `);
|
|
70
|
+
if (sessionInfo.agents > 0) {
|
|
71
|
+
$$renderer2.push("<!--[-->");
|
|
72
|
+
$$renderer2.push(`<span class="flex items-center gap-0.5"${attr("title", `${stringify(sessionInfo.agents)} agent(s)`)}><span>🤖</span><span>${escape_html(sessionInfo.agents)}</span></span>`);
|
|
73
|
+
} else {
|
|
74
|
+
$$renderer2.push("<!--[!-->");
|
|
75
|
+
}
|
|
76
|
+
$$renderer2.push(`<!--]--> `);
|
|
77
|
+
if (sessionInfo.todos > 0) {
|
|
78
|
+
$$renderer2.push("<!--[-->");
|
|
79
|
+
$$renderer2.push(`<span class="flex items-center gap-0.5"${attr("title", `${stringify(sessionInfo.todos)} todo(s)`)}><span>📋</span><span>${escape_html(sessionInfo.todos)}</span></span>`);
|
|
80
|
+
} else {
|
|
81
|
+
$$renderer2.push("<!--[!-->");
|
|
82
|
+
}
|
|
83
|
+
$$renderer2.push(`<!--]--></span></button> <div${attr_class(`absolute right-0 top-1/2 -translate-y-1/2 flex gap-0.5 pr-2 opacity-0 group-hover:opacity-100 transition-opacity pl-4 ${stringify(isSelected ? "bg-gradient-to-l from-[color-mix(in_srgb,var(--color-gh-accent)_20%,var(--color-gh-bg))] from-80% to-transparent" : "bg-gradient-to-l from-gh-bg from-80% to-transparent")}`)}><button class="bg-transparent border-none cursor-pointer p-1 rounded hover:bg-gh-border text-xs" title="Rename">✏️</button> <button class="bg-transparent border-none cursor-pointer p-1 rounded hover:bg-gh-red/20 text-xs" title="Delete">🗑️</button></div></li>`);
|
|
39
84
|
}
|
|
40
85
|
$$renderer2.push(`<!--]-->`);
|
|
41
86
|
}
|
|
@@ -51,19 +96,35 @@ function ProjectTree($$renderer, $$props) {
|
|
|
51
96
|
function MessageList($$renderer, $$props) {
|
|
52
97
|
$$renderer.component(($$renderer2) => {
|
|
53
98
|
let {
|
|
54
|
-
messages
|
|
99
|
+
messages,
|
|
100
|
+
showHeader = true
|
|
55
101
|
} = $$props;
|
|
56
102
|
messages.findIndex((m) => m.type === "user" || m.type === "assistant" || m.type === "human");
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
103
|
+
(() => {
|
|
104
|
+
for (let i = messages.length - 1; i >= 0; i--) {
|
|
105
|
+
if (messages[i].isCompactSummary) {
|
|
106
|
+
return i;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
return -1;
|
|
110
|
+
})();
|
|
111
|
+
$$renderer2.push(`<section class="bg-gh-bg-secondary border border-gh-border rounded-lg overflow-hidden flex flex-col">`);
|
|
112
|
+
if (showHeader) {
|
|
113
|
+
$$renderer2.push("<!--[-->");
|
|
114
|
+
$$renderer2.push(`<div class="p-4 border-b border-gh-border bg-gh-bg flex justify-between items-start"><div class="flex-1 min-w-0">`);
|
|
115
|
+
{
|
|
116
|
+
$$renderer2.push("<!--[!-->");
|
|
117
|
+
$$renderer2.push(`<h2 class="text-base font-semibold">Messages</h2>`);
|
|
118
|
+
}
|
|
119
|
+
$$renderer2.push(`<!--]--></div> `);
|
|
120
|
+
{
|
|
121
|
+
$$renderer2.push("<!--[!-->");
|
|
122
|
+
}
|
|
123
|
+
$$renderer2.push(`<!--]--></div>`);
|
|
124
|
+
} else {
|
|
64
125
|
$$renderer2.push("<!--[!-->");
|
|
65
126
|
}
|
|
66
|
-
$$renderer2.push(`<!--]
|
|
127
|
+
$$renderer2.push(`<!--]--> `);
|
|
67
128
|
{
|
|
68
129
|
$$renderer2.push("<!--[!-->");
|
|
69
130
|
$$renderer2.push(`<p class="p-8 text-center text-gh-text-secondary">Select a session</p>`);
|
|
@@ -75,6 +136,7 @@ function _page($$renderer, $$props) {
|
|
|
75
136
|
$$renderer.component(($$renderer2) => {
|
|
76
137
|
let projects = [];
|
|
77
138
|
let projectSessions = /* @__PURE__ */ new Map();
|
|
139
|
+
let projectSessionData = /* @__PURE__ */ new Map();
|
|
78
140
|
let expandedProjects = /* @__PURE__ */ new Set();
|
|
79
141
|
let selectedSession = null;
|
|
80
142
|
let messages = [];
|
|
@@ -83,6 +145,7 @@ function _page($$renderer, $$props) {
|
|
|
83
145
|
ProjectTree($$renderer2, {
|
|
84
146
|
projects,
|
|
85
147
|
projectSessions,
|
|
148
|
+
projectSessionData,
|
|
86
149
|
expandedProjects,
|
|
87
150
|
selectedSession,
|
|
88
151
|
loadingProject
|
|
@@ -104,4 +167,4 @@ function _page($$renderer, $$props) {
|
|
|
104
167
|
}
|
|
105
168
|
|
|
106
169
|
export { _page as default };
|
|
107
|
-
//# sourceMappingURL=_page.svelte-
|
|
170
|
+
//# sourceMappingURL=_page.svelte-BlgbAbC7.js.map
|