@claude-sessions/web 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/client/_app/immutable/assets/{0.BzlUta3p.css → 0.DHKfs7JC.css} +1 -1
- package/build/client/_app/immutable/assets/0.DHKfs7JC.css.br +0 -0
- package/build/client/_app/immutable/assets/{0.BzlUta3p.css.gz → 0.DHKfs7JC.css.gz} +0 -0
- package/build/client/_app/immutable/chunks/Bk8SkFX_.js +1 -0
- package/build/client/_app/immutable/chunks/Bk8SkFX_.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bk8SkFX_.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CSn8t8Ix.js +2 -0
- package/build/client/_app/immutable/chunks/CSn8t8Ix.js.br +0 -0
- package/build/client/_app/immutable/chunks/CSn8t8Ix.js.gz +0 -0
- package/build/client/_app/immutable/chunks/QKEgeM73.js +94 -0
- package/build/client/_app/immutable/chunks/QKEgeM73.js.br +0 -0
- package/build/client/_app/immutable/chunks/QKEgeM73.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{DMvHBIcO.js → byP5FZXC.js} +1 -1
- package/build/client/_app/immutable/chunks/byP5FZXC.js.br +0 -0
- package/build/client/_app/immutable/chunks/byP5FZXC.js.gz +0 -0
- package/build/client/_app/immutable/entry/{app.BFVhpE8U.js → app.DDSmw1G2.js} +2 -2
- package/build/client/_app/immutable/entry/app.DDSmw1G2.js.br +0 -0
- package/build/client/_app/immutable/entry/app.DDSmw1G2.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.BBRU_Ybm.js +1 -0
- package/build/client/_app/immutable/entry/start.BBRU_Ybm.js.br +2 -0
- package/build/client/_app/immutable/entry/start.BBRU_Ybm.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{0.DTNn6Nv5.js → 0.C3TdraPu.js} +1 -1
- package/build/client/_app/immutable/nodes/0.C3TdraPu.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.C3TdraPu.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{1.iBfsHklH.js → 1.Bm6PSLR5.js} +1 -1
- package/build/client/_app/immutable/nodes/1.Bm6PSLR5.js.br +2 -0
- package/build/client/_app/immutable/nodes/1.Bm6PSLR5.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.DWRsPVe4.js +6 -0
- package/build/client/_app/immutable/nodes/2.DWRsPVe4.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.DWRsPVe4.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.DMWHz6-z.js +5 -0
- package/build/client/_app/immutable/nodes/3.DMWHz6-z.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.DMWHz6-z.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-DAj7n0cW.js → 0-DpMV9SJd.js} +3 -3
- package/build/server/chunks/{0-DAj7n0cW.js.map → 0-DpMV9SJd.js.map} +1 -1
- package/build/server/chunks/{1-DsLKc6m0.js → 1-D9TH1iwG.js} +2 -2
- package/build/server/chunks/{1-DsLKc6m0.js.map → 1-D9TH1iwG.js.map} +1 -1
- package/build/server/chunks/{2-Cm8778AV.js → 2-tlqE1QP7.js} +3 -3
- package/build/server/chunks/{2-Cm8778AV.js.map → 2-tlqE1QP7.js.map} +1 -1
- package/build/server/chunks/{3-BoCwbD23.js → 3-BGGlUEp-.js} +3 -3
- package/build/server/chunks/{3-BoCwbD23.js.map → 3-BGGlUEp-.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-DLpJmaZS.js → _page.svelte-DEQJ0oPW.js} +26 -20
- package/build/server/chunks/_page.svelte-DEQJ0oPW.js.map +1 -0
- package/build/server/chunks/{_page.svelte-DA3WCVgK.js → _page.svelte-DfZkatW6.js} +11 -4
- package/build/server/chunks/_page.svelte-DfZkatW6.js.map +1 -0
- package/build/server/chunks/{_server.ts-Bk9kaXtX.js → _server.ts-6PvKvlXG.js} +2 -2
- package/build/server/chunks/{_server.ts-Bk9kaXtX.js.map → _server.ts-6PvKvlXG.js.map} +1 -1
- package/build/server/chunks/{_server.ts-zLFwe5yM.js → _server.ts-BfTOQnQK.js} +2 -2
- package/build/server/chunks/{_server.ts-zLFwe5yM.js.map → _server.ts-BfTOQnQK.js.map} +1 -1
- package/build/server/chunks/{_server.ts-BBpeToTn.js → _server.ts-CZpt6s0c.js} +2 -2
- package/build/server/chunks/{_server.ts-BBpeToTn.js.map → _server.ts-CZpt6s0c.js.map} +1 -1
- package/build/server/chunks/{_server.ts-BXxllvrb.js → _server.ts-CkPJa8rH.js} +3 -5
- package/build/server/chunks/_server.ts-CkPJa8rH.js.map +1 -0
- package/build/server/chunks/{_server.ts-4sDvSSRb.js → _server.ts-Cz-ezTau.js} +2 -2
- package/build/server/chunks/{_server.ts-4sDvSSRb.js.map → _server.ts-Cz-ezTau.js.map} +1 -1
- package/build/server/chunks/{_server.ts-CVaR-qp4.js → _server.ts-DFwI1irc.js} +2 -2
- package/build/server/chunks/{_server.ts-CVaR-qp4.js.map → _server.ts-DFwI1irc.js.map} +1 -1
- package/build/server/chunks/{_server.ts-DcACijgR.js → _server.ts-DKVHHXfU.js} +19 -3
- package/build/server/chunks/_server.ts-DKVHHXfU.js.map +1 -0
- package/build/server/chunks/{_server.ts-pGmvYVbI.js → _server.ts-DU60SaEW.js} +2 -2
- package/build/server/chunks/{_server.ts-pGmvYVbI.js.map → _server.ts-DU60SaEW.js.map} +1 -1
- package/build/server/chunks/{_server.ts-DFX9t3Jv.js → _server.ts-Ddoxzxdz.js} +2 -2
- package/build/server/chunks/{_server.ts-DFX9t3Jv.js.map → _server.ts-Ddoxzxdz.js.map} +1 -1
- package/build/server/chunks/{_server.ts-BP147CdC.js → _server.ts-DiZSiHH2.js} +2 -2
- package/build/server/chunks/{_server.ts-BP147CdC.js.map → _server.ts-DiZSiHH2.js.map} +1 -1
- package/build/server/chunks/{_server.ts-DoV0Z3Ol.js → _server.ts-Dq5S_aG6.js} +2 -2
- package/build/server/chunks/{_server.ts-DoV0Z3Ol.js.map → _server.ts-Dq5S_aG6.js.map} +1 -1
- package/build/server/chunks/{_server.ts-fk5WvpYu.js → _server.ts-SZ7xXULI.js} +2 -2
- package/build/server/chunks/{_server.ts-fk5WvpYu.js.map → _server.ts-SZ7xXULI.js.map} +1 -1
- package/build/server/chunks/{_server.ts-84s16FVR.js → _server.ts-_I5t7nvC.js} +2 -2
- package/build/server/chunks/{_server.ts-84s16FVR.js.map → _server.ts-_I5t7nvC.js.map} +1 -1
- package/build/server/chunks/{_server.ts-BlgHsHoW.js → _server.ts-g_2jTmWg.js} +2 -2
- package/build/server/chunks/{_server.ts-BlgHsHoW.js.map → _server.ts-g_2jTmWg.js.map} +1 -1
- package/build/server/chunks/{format-DGbVKLYO.js → format-DgNjDoEq.js} +2 -1
- package/build/server/chunks/format-DgNjDoEq.js.map +1 -0
- package/build/server/chunks/{index2-wXxKDk_P.js → index2-CWkjuG0Y.js} +112 -39
- package/build/server/chunks/index2-CWkjuG0Y.js.map +1 -0
- package/build/server/index.js +1 -1
- package/build/server/index.js.map +1 -1
- package/build/server/manifest.js +19 -19
- package/build/server/manifest.js.map +1 -1
- package/package.json +5 -3
- package/build/client/_app/immutable/assets/0.BzlUta3p.css.br +0 -0
- package/build/client/_app/immutable/chunks/BQGcGaM2.js +0 -2
- package/build/client/_app/immutable/chunks/BQGcGaM2.js.br +0 -0
- package/build/client/_app/immutable/chunks/BQGcGaM2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DMvHBIcO.js.br +0 -0
- package/build/client/_app/immutable/chunks/DMvHBIcO.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DOVwulI9.js +0 -1
- package/build/client/_app/immutable/chunks/DOVwulI9.js.br +0 -0
- package/build/client/_app/immutable/chunks/DOVwulI9.js.gz +0 -0
- package/build/client/_app/immutable/chunks/QaA9x3bR.js +0 -71
- package/build/client/_app/immutable/chunks/QaA9x3bR.js.br +0 -0
- package/build/client/_app/immutable/chunks/QaA9x3bR.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.BFVhpE8U.js.br +0 -0
- package/build/client/_app/immutable/entry/app.BFVhpE8U.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.CLU2DYMK.js +0 -1
- package/build/client/_app/immutable/entry/start.CLU2DYMK.js.br +0 -2
- package/build/client/_app/immutable/entry/start.CLU2DYMK.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.DTNn6Nv5.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.DTNn6Nv5.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.iBfsHklH.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.iBfsHklH.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.C1DsmfsD.js +0 -5
- package/build/client/_app/immutable/nodes/2.C1DsmfsD.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.C1DsmfsD.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.DKsummz1.js +0 -5
- package/build/client/_app/immutable/nodes/3.DKsummz1.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.DKsummz1.js.gz +0 -0
- package/build/server/chunks/_page.svelte-DA3WCVgK.js.map +0 -1
- package/build/server/chunks/_page.svelte-DLpJmaZS.js.map +0 -1
- package/build/server/chunks/_server.ts-BXxllvrb.js.map +0 -1
- package/build/server/chunks/_server.ts-DcACijgR.js.map +0 -1
- package/build/server/chunks/format-DGbVKLYO.js.map +0 -1
- package/build/server/chunks/index2-wXxKDk_P.js.map +0 -1
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as e,p as r}from"./
|
|
1
|
+
import{s as e,p as r}from"./Bk8SkFX_.js";const t={get error(){return r.error},get params(){return r.params},get status(){return r.status},get url(){return r.url}};e.updated.check;const a=t;export{a as p};
|
|
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,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/elvo9mAG.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/DvQL1cTO.js";import{B as ye,i as D}from"../chunks/Cu54-bNJ.js";import{p as I,b as V}from"../chunks/BK2z9s18.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.
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.C3TdraPu.js","../chunks/DvQL1cTO.js","../chunks/elvo9mAG.js","../chunks/Cu54-bNJ.js","../chunks/CSn8t8Ix.js","../chunks/B0nKMdd0.js","../chunks/Bk8SkFX_.js","../chunks/byP5FZXC.js","../assets/0.DHKfs7JC.css","../nodes/1.Bm6PSLR5.js","../nodes/2.DWRsPVe4.js","../chunks/QKEgeM73.js","../chunks/BK2z9s18.js","../nodes/3.DMWHz6-z.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/elvo9mAG.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/DvQL1cTO.js";import{B as ye,i as D}from"../chunks/Cu54-bNJ.js";import{p as I,b as V}from"../chunks/BK2z9s18.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.C3TdraPu.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url),()=>L(()=>import("../nodes/1.Bm6PSLR5.js"),__vite__mapDeps([9,1,2,7,6]),import.meta.url),()=>L(()=>import("../nodes/2.DWRsPVe4.js"),__vite__mapDeps([10,1,2,3,4,11,12]),import.meta.url),()=>L(()=>import("../nodes/3.DMWHz6-z.js"),__vite__mapDeps([13,1,2,3,5,4,12,7,6,11]),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/Bk8SkFX_.js";export{o as load_css,r as start};
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as ft,f,e as qe,a as i,s as h,c as _t,t as z}from"../chunks/DvQL1cTO.js";import{j as bt,F as mt,a9 as yt,k as wt,N as Ct,U as kt,p as $t,s as x,a as jt,o as St,f as Z,d as s,c as r,t as y,b as Tt,e as n,g as e,u as H,T as It,$ as Nt,r as o}from"../chunks/elvo9mAG.js";import{B as Rt,i as u}from"../chunks/Cu54-bNJ.js";import{h as Ot,p as Dt,i as Ae,j as Mt,k as de,f as Ge,n as Et,o as ze,q as At,t as zt,v as Ut}from"../chunks/BQGcGaM2.js";import{h as Wt}from"../chunks/B0nKMdd0.js";import{g as Bt}from"../chunks/DOVwulI9.js";import{p as Je}from"../chunks/DMvHBIcO.js";function Pt(C,R,...U){var W=new Rt(C);bt(()=>{const k=R()??null;W.ensure(k,k&&(Q=>k(Q,...U)))},mt)}function we(C,R,U=R){yt(C,"change",W=>{var k=W?C.defaultChecked:C.checked;U(k)}),(wt&&C.defaultChecked!==C.checked||Ct(R)==null)&&U(C.checked),kt(()=>{var W=R();C.checked=!!W})}const Ft=!0,va=Object.freeze(Object.defineProperty({__proto__:null,ssr:Ft},Symbol.toStringTag,{value:"Module"}));var Vt=f('<span class="text-xs text-gh-text-secondary bg-gh-border px-2 py-0.5 rounded hidden sm:inline"> </span>'),Ht=f('<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>'),Qt=f('<div class="px-4 py-3 text-sm text-gh-text-secondary">Searching...</div>'),qt=f('<div class="px-4 py-3 text-sm text-gh-text-secondary">No results found</div>'),Gt=f('<div class="text-xs text-gh-text-secondary mt-1 line-clamp-2"> </div>'),Jt=f('<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>'),Kt=f('<div class="px-4 py-2 text-xs text-gh-text-secondary border-t border-gh-border">Searching content...</div>'),Lt=f("<!> <!>",1),Xt=f('<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>'),Yt=f(" <!>",1),Zt=f("<!> ",1),ea=f("<!> ",1),ta=f('<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>'),aa=f('<div class="fixed bottom-4 right-4 bg-gh-green text-white px-5 py-3 rounded-md text-sm z-50"><!> <!> <!> <!></div>'),ra=f('<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 class="flex items-center gap-2 hover:text-gh-accent"><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 pa(C,R){$t(R,!0);const U=H(()=>Je.url.pathname.startsWith("/session/")),W=t=>{const a="___DOT___";let l=t.replace(/--/g,a).replace(/-/g,"/").replace(new RegExp(a,"g"),"/.");const g=l.match(/^\/Users\/[^/]+\/(.+)$/);return g?`~/${g[1]}`:l},k=H(()=>{if(!e(U))return null;const t=Je.url.pathname.match(/^\/session\/([^/]+)\/([^/]+)/);return t?{projectName:decodeURIComponent(t[1]),sessionId:decodeURIComponent(t[2])}:null});let Q=x(""),q=x(!1),Ce=x(!1),ce=x(!1),O=x(null),$=x(null),ie=x(""),_=x(jt([])),ee=x(!1),ve=x(!1),G=x(!1),ke=null,I=x(!0),te=x(!0),D=x(!1),B=x(!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));St(async()=>{try{const t=await Mt();n(Q,t.version,!0)}catch{n(Q,"unknown")}});const Ke=async()=>{if(confirm("Shutdown the server?")){n(Ce,!0);try{await Ot()}catch{}}},Le=async()=>{try{n(O,await Dt(),!0),n(ce,!0)}catch(t){alert(`Error: ${t}`)}},Ue=()=>{n(ce,!1),n(O,null)},Xe=async()=>{if(e(ge)===0&&!e(D)&&!e(B)){alert("Nothing to clean up");return}n(q,!0);try{n($,await At({clearEmpty:e(I),clearInvalid:!1,skipWithTodos:e(te),clearOrphanAgents:e(D),clearOrphanTodos:e(B)}),!0),n(ce,!1),n(O,null),setTimeout(()=>{n($,null),window.location.reload()},2e3)}catch(t){alert(`Error: ${t}`)}finally{n(q,!1)}},Ye=t=>{const a=t.target.value;if(n(ie,a,!0),ke&&clearTimeout(ke),!a.trim()){n(_,[],!0),n(G,!1);return}ke=setTimeout(()=>Ze(a),300)},je=t=>{const a=e(k);return a?[...t].sort((l,g)=>{const b=l.projectName===a.projectName&&l.sessionId===a.sessionId,v=g.projectName===a.projectName&&g.sessionId===a.sessionId;return b&&!v?-1:!b&&v?1:0}):t},Ze=async t=>{if(!t.trim())return;const a=e(k);n(ee,!0),n(G,!0);try{const l=await Ae(t,{searchContent:!1,project:a==null?void 0:a.projectName});n(_,je(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(_).map(j=>`${j.projectName}:${j.sessionId}`)),M=v.filter(j=>!w.has(`${j.projectName}:${j.sessionId}`));n(_,je([...e(_),...M]),!0)}const l=await Ae(t,{searchContent:!0}),g=new Set(e(_).map(v=>`${v.projectName}:${v.sessionId}`)),b=l.filter(v=>!g.has(`${v.projectName}:${v.sessionId}`));n(_,je([...e(_),...b]),!0)}catch(l){console.error("Content search error:",l)}finally{n(ve,!1)}},et=t=>{n(ie,""),n(_,[],!0),n(G,!1),Bt(`/session/${encodeURIComponent(t.projectName)}/${encodeURIComponent(t.sessionId)}`)},tt=()=>{setTimeout(()=>{n(G,!1)},200)};var We=ra();Wt("12qhfyh",t=>{It(()=>{Nt.title="Claude Sessions"})});var Se=Z(We),Te=s(Se),Ie=s(Te),Ne=s(Ie),at=r(Ne,2);{var rt=t=>{var a=Vt(),l=s(a);o(a),y(()=>h(l,`v${e(Q)??""}`)),i(t,a)};u(at,t=>{e(Q)&&t(rt)})}o(Ie);var Re=r(Ie,2),J=s(Re);de(J),J.__input=Ye;var Be=r(J,2);{var st=t=>{var a=Ht();i(t,a)};u(Be,t=>{(e(ee)||e(ve))&&t(st)})}var ot=r(Be,2);{var nt=t=>{var a=Xt(),l=s(a);{var g=v=>{var w=Qt();i(v,w)},b=v=>{var w=_t(),M=Z(w);{var j=c=>{var p=qt();i(c,p)},E=c=>{var p=Lt(),re=Z(p);zt(re,17,()=>e(_),Ut,(N,m)=>{var P=Jt();P.__click=()=>et(e(m));var K=s(P),L=s(K),_e=s(L,!0);o(L);var F=r(L,2),be=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=Gt(),Ee=s(X,!0);o(X),y(()=>h(Ee,e(m).snippet)),i(V,X)};u(oe,V=>{e(m).snippet&&V(me)})}o(P),y(V=>{ze(L,1,`text-xs px-1.5 py-0.5 rounded ${e(m).matchType==="title"?"bg-gh-green/20 text-gh-green":"bg-gh-accent/20 text-gh-accent"}`),h(_e,e(m).matchType==="title"?"Title":"Content"),h(be,V),h(Me,e(m).title)},[()=>W(e(m).projectName)]),i(N,P)});var fe=r(re,2);{var De=N=>{var m=Kt();i(N,m)};u(fe,N=>{e(ve)&&N(De)})}i(c,p)};u(M,c=>{e(_).length===0?c(j):c(E,!1)},!0)}i(v,w)};u(l,v=>{e(_).length===0&&e(ee)?v(g):v(b,!1)})}o(a),i(t,a)};u(ot,t=>{e(G)&&(e(_).length>0||e(ee))&&t(nt)})}o(Re);var Pe=r(Re,2),ae=s(Pe);ae.__click=Le;var lt=s(ae,!0);o(ae);var xe=r(ae,2);xe.__click=Ke;var dt=s(xe,!0);o(xe),o(Pe),o(Te);var Oe=r(Te,2),ct=s(Oe);Pt(ct,()=>R.children),o(Oe),o(Se);var Fe=r(Se,2);{var it=t=>{var a=ta();a.__click=d=>d.target===d.currentTarget&&Ue();var l=s(a),g=r(s(l),2),b=s(g),v=s(b);de(v);var w=r(v,2),M=r(s(w)),j=s(M);o(M),o(w),o(b);var E=r(b,2);let c;var p=s(E);de(p);var re=r(p,2),fe=r(s(re)),De=s(fe);o(fe),o(re),o(E);var N=r(E,2),m=s(N);de(m);var P=r(m,2),K=r(s(P)),L=s(K);o(K),o(P),o(N);var _e=r(N,2),F=s(_e);de(F);var be=r(F,2),se=r(s(be)),Me=s(se);o(se),o(be),o(_e),o(g);var oe=r(g,2),me=s(oe);{var V=d=>{var T=Yt(),A=Z(T),ne=r(A);{var le=S=>{var Y=z();y(()=>h(Y,`(skipping ${e(pe)??""} with todos)`)),i(S,Y)};u(ne,S=>{e(te)&&e(pe)>0&&S(le)})}y(()=>h(A,`Will delete ${e(ge)??""} session${e(ge)!==1?"s":""} `)),i(d,T)};u(me,d=>{e(I)&&d(V)})}var X=r(me,2);{var Ee=d=>{var T=Zt(),A=Z(T);{var ne=S=>{var Y=z(",");i(S,Y)};u(A,S=>{e(I)&&S(ne)})}var le=r(A);y(()=>h(le,` ${e(he)??""} orphan agent${e(he)!==1?"s":""}`)),i(d,T)};u(X,d=>{e(D)&&e(he)>0&&d(Ee)})}var Ve=r(X,2);{var ht=d=>{var T=ea(),A=Z(T);{var ne=S=>{var Y=z(",");i(S,Y)};u(A,S=>{(e(I)||e(D))&&S(ne)})}var le=r(A);y(()=>h(le,` ${e(ue)??""} orphan todo${e(ue)!==1?"s":""}`)),i(d,T)};u(Ve,d=>{e(B)&&e(ue)>0&&d(ht)})}var ut=r(Ve,2);{var gt=d=>{var T=z("Nothing selected");i(d,T)};u(ut,d=>{!e(I)&&!e(D)&&!e(B)&&d(gt)})}o(oe);var He=r(oe,2),Qe=s(He);Qe.__click=Ue;var ye=r(Qe,2);ye.__click=Xe;var xt=s(ye,!0);o(ye),o(He),o(l),o(a),y(()=>{h(j,`(${e($e)??""})`),c=ze(E,1,"flex items-center gap-3 cursor-pointer ml-6",null,c,{"opacity-50":!e(I)}),p.disabled=!e(I),h(De,`(${e(pe)??""})`),h(L,`(${e(he)??""})`),h(Me,`(${e(ue)??""})`),ye.disabled=e(q)||e(ge)===0&&!e(D)&&!e(B),h(xt,e(q)?"Cleaning...":"Execute Cleanup")}),we(v,()=>e(I),d=>n(I,d)),we(p,()=>e(te),d=>n(te,d)),we(m,()=>e(D),d=>n(D,d)),we(F,()=>e(B),d=>n(B,d)),i(t,a)};u(Fe,t=>{e(ce)&&e(O)&&t(it)})}var vt=r(Fe,2);{var pt=t=>{var a=aa(),l=s(a);{var g=c=>{var p=z();y(()=>h(p,`Removed ${e($).removedMessageCount??""} invalid messages.`)),i(c,p)};u(l,c=>{e($).removedMessageCount>0&&c(g)})}var b=r(l,2);{var v=c=>{var p=z();y(()=>h(p,`Deleted ${e($).deletedCount??""} empty sessions.`)),i(c,p)};u(b,c=>{e($).deletedCount>0&&c(v)})}var w=r(b,2);{var M=c=>{var p=z();y(()=>h(p,`Deleted ${e($).deletedOrphanAgentCount??""} orphan agents.`)),i(c,p)};u(w,c=>{e($).deletedOrphanAgentCount>0&&c(M)})}var j=r(w,2);{var E=c=>{var p=z();y(()=>h(p,`Deleted ${e($).deletedOrphanTodoCount??""} orphan todos.`)),i(c,p)};u(j,c=>{e($).deletedOrphanTodoCount>0&&c(E)})}o(a),i(t,a)};u(vt,t=>{e($)&&t(pt)})}y(t=>{Ge(Ne,"href",t),Ge(Ne,"title",e(k)?"Back to project":"Claude Sessions"),Et(J,e(ie)),ae.disabled=e(q),h(lt,e(q)?"Cleaning...":"Cleanup"),xe.disabled=e(Ce),h(dt,e(Ce)?"Shutting down...":"Shutdown"),ze(Oe,1,`flex-1 ${e(U)?"":"p-8 max-w-7xl mx-auto"} w-full overflow-y-auto`)},[()=>e(k)?`/#project=${encodeURIComponent(e(k).projectName)}`:"/"]),qe("focus",J,()=>e(ie)&&n(G,!0)),qe("blur",J,tt),i(C,We),Tt()}ft(["input","click"]);export{pa as component,va as universal};
|
|
1
|
+
import{d as ft,f,e as qe,a as i,s as h,c as _t,t as z}from"../chunks/DvQL1cTO.js";import{j as bt,F as mt,a9 as yt,k as wt,N as Ct,U as kt,p as $t,s as x,a as jt,o as St,f as Z,d as s,c as r,t as y,b as Tt,e as n,g as e,u as H,T as It,$ as Nt,r as o}from"../chunks/elvo9mAG.js";import{B as Rt,i as u}from"../chunks/Cu54-bNJ.js";import{h as Ot,p as Dt,i as Ae,j as Mt,k as de,f as Ge,n as Et,o as ze,q as At,t as zt,v as Ut}from"../chunks/CSn8t8Ix.js";import{h as Wt}from"../chunks/B0nKMdd0.js";import{g as Bt}from"../chunks/Bk8SkFX_.js";import{p as Je}from"../chunks/byP5FZXC.js";function Pt(C,R,...U){var W=new Rt(C);bt(()=>{const k=R()??null;W.ensure(k,k&&(Q=>k(Q,...U)))},mt)}function we(C,R,U=R){yt(C,"change",W=>{var k=W?C.defaultChecked:C.checked;U(k)}),(wt&&C.defaultChecked!==C.checked||Ct(R)==null)&&U(C.checked),kt(()=>{var W=R();C.checked=!!W})}const Ft=!0,va=Object.freeze(Object.defineProperty({__proto__:null,ssr:Ft},Symbol.toStringTag,{value:"Module"}));var Vt=f('<span class="text-xs text-gh-text-secondary bg-gh-border px-2 py-0.5 rounded hidden sm:inline"> </span>'),Ht=f('<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>'),Qt=f('<div class="px-4 py-3 text-sm text-gh-text-secondary">Searching...</div>'),qt=f('<div class="px-4 py-3 text-sm text-gh-text-secondary">No results found</div>'),Gt=f('<div class="text-xs text-gh-text-secondary mt-1 line-clamp-2"> </div>'),Jt=f('<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>'),Kt=f('<div class="px-4 py-2 text-xs text-gh-text-secondary border-t border-gh-border">Searching content...</div>'),Lt=f("<!> <!>",1),Xt=f('<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>'),Yt=f(" <!>",1),Zt=f("<!> ",1),ea=f("<!> ",1),ta=f('<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>'),aa=f('<div class="fixed bottom-4 right-4 bg-gh-green text-white px-5 py-3 rounded-md text-sm z-50"><!> <!> <!> <!></div>'),ra=f('<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 class="flex items-center gap-2 hover:text-gh-accent"><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 pa(C,R){$t(R,!0);const U=H(()=>Je.url.pathname.startsWith("/session/")),W=t=>{const a="___DOT___";let l=t.replace(/--/g,a).replace(/-/g,"/").replace(new RegExp(a,"g"),"/.");const g=l.match(/^\/Users\/[^/]+\/(.+)$/);return g?`~/${g[1]}`:l},k=H(()=>{if(!e(U))return null;const t=Je.url.pathname.match(/^\/session\/([^/]+)\/([^/]+)/);return t?{projectName:decodeURIComponent(t[1]),sessionId:decodeURIComponent(t[2])}:null});let Q=x(""),q=x(!1),Ce=x(!1),ce=x(!1),O=x(null),$=x(null),ie=x(""),_=x(jt([])),ee=x(!1),ve=x(!1),G=x(!1),ke=null,I=x(!0),te=x(!0),D=x(!1),B=x(!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));St(async()=>{try{const t=await Mt();n(Q,t.version,!0)}catch{n(Q,"unknown")}});const Ke=async()=>{if(confirm("Shutdown the server?")){n(Ce,!0);try{await Ot()}catch{}}},Le=async()=>{try{n(O,await Dt(),!0),n(ce,!0)}catch(t){alert(`Error: ${t}`)}},Ue=()=>{n(ce,!1),n(O,null)},Xe=async()=>{if(e(ge)===0&&!e(D)&&!e(B)){alert("Nothing to clean up");return}n(q,!0);try{n($,await At({clearEmpty:e(I),clearInvalid:!1,skipWithTodos:e(te),clearOrphanAgents:e(D),clearOrphanTodos:e(B)}),!0),n(ce,!1),n(O,null),setTimeout(()=>{n($,null),window.location.reload()},2e3)}catch(t){alert(`Error: ${t}`)}finally{n(q,!1)}},Ye=t=>{const a=t.target.value;if(n(ie,a,!0),ke&&clearTimeout(ke),!a.trim()){n(_,[],!0),n(G,!1);return}ke=setTimeout(()=>Ze(a),300)},je=t=>{const a=e(k);return a?[...t].sort((l,g)=>{const b=l.projectName===a.projectName&&l.sessionId===a.sessionId,v=g.projectName===a.projectName&&g.sessionId===a.sessionId;return b&&!v?-1:!b&&v?1:0}):t},Ze=async t=>{if(!t.trim())return;const a=e(k);n(ee,!0),n(G,!0);try{const l=await Ae(t,{searchContent:!1,project:a==null?void 0:a.projectName});n(_,je(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(_).map(j=>`${j.projectName}:${j.sessionId}`)),M=v.filter(j=>!w.has(`${j.projectName}:${j.sessionId}`));n(_,je([...e(_),...M]),!0)}const l=await Ae(t,{searchContent:!0}),g=new Set(e(_).map(v=>`${v.projectName}:${v.sessionId}`)),b=l.filter(v=>!g.has(`${v.projectName}:${v.sessionId}`));n(_,je([...e(_),...b]),!0)}catch(l){console.error("Content search error:",l)}finally{n(ve,!1)}},et=t=>{n(ie,""),n(_,[],!0),n(G,!1),Bt(`/session/${encodeURIComponent(t.projectName)}/${encodeURIComponent(t.sessionId)}`)},tt=()=>{setTimeout(()=>{n(G,!1)},200)};var We=ra();Wt("12qhfyh",t=>{It(()=>{Nt.title="Claude Sessions"})});var Se=Z(We),Te=s(Se),Ie=s(Te),Ne=s(Ie),at=r(Ne,2);{var rt=t=>{var a=Vt(),l=s(a);o(a),y(()=>h(l,`v${e(Q)??""}`)),i(t,a)};u(at,t=>{e(Q)&&t(rt)})}o(Ie);var Re=r(Ie,2),J=s(Re);de(J),J.__input=Ye;var Be=r(J,2);{var st=t=>{var a=Ht();i(t,a)};u(Be,t=>{(e(ee)||e(ve))&&t(st)})}var ot=r(Be,2);{var nt=t=>{var a=Xt(),l=s(a);{var g=v=>{var w=Qt();i(v,w)},b=v=>{var w=_t(),M=Z(w);{var j=c=>{var p=qt();i(c,p)},E=c=>{var p=Lt(),re=Z(p);zt(re,17,()=>e(_),Ut,(N,m)=>{var P=Jt();P.__click=()=>et(e(m));var K=s(P),L=s(K),_e=s(L,!0);o(L);var F=r(L,2),be=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=Gt(),Ee=s(X,!0);o(X),y(()=>h(Ee,e(m).snippet)),i(V,X)};u(oe,V=>{e(m).snippet&&V(me)})}o(P),y(V=>{ze(L,1,`text-xs px-1.5 py-0.5 rounded ${e(m).matchType==="title"?"bg-gh-green/20 text-gh-green":"bg-gh-accent/20 text-gh-accent"}`),h(_e,e(m).matchType==="title"?"Title":"Content"),h(be,V),h(Me,e(m).title)},[()=>W(e(m).projectName)]),i(N,P)});var fe=r(re,2);{var De=N=>{var m=Kt();i(N,m)};u(fe,N=>{e(ve)&&N(De)})}i(c,p)};u(M,c=>{e(_).length===0?c(j):c(E,!1)},!0)}i(v,w)};u(l,v=>{e(_).length===0&&e(ee)?v(g):v(b,!1)})}o(a),i(t,a)};u(ot,t=>{e(G)&&(e(_).length>0||e(ee))&&t(nt)})}o(Re);var Pe=r(Re,2),ae=s(Pe);ae.__click=Le;var lt=s(ae,!0);o(ae);var xe=r(ae,2);xe.__click=Ke;var dt=s(xe,!0);o(xe),o(Pe),o(Te);var Oe=r(Te,2),ct=s(Oe);Pt(ct,()=>R.children),o(Oe),o(Se);var Fe=r(Se,2);{var it=t=>{var a=ta();a.__click=d=>d.target===d.currentTarget&&Ue();var l=s(a),g=r(s(l),2),b=s(g),v=s(b);de(v);var w=r(v,2),M=r(s(w)),j=s(M);o(M),o(w),o(b);var E=r(b,2);let c;var p=s(E);de(p);var re=r(p,2),fe=r(s(re)),De=s(fe);o(fe),o(re),o(E);var N=r(E,2),m=s(N);de(m);var P=r(m,2),K=r(s(P)),L=s(K);o(K),o(P),o(N);var _e=r(N,2),F=s(_e);de(F);var be=r(F,2),se=r(s(be)),Me=s(se);o(se),o(be),o(_e),o(g);var oe=r(g,2),me=s(oe);{var V=d=>{var T=Yt(),A=Z(T),ne=r(A);{var le=S=>{var Y=z();y(()=>h(Y,`(skipping ${e(pe)??""} with todos)`)),i(S,Y)};u(ne,S=>{e(te)&&e(pe)>0&&S(le)})}y(()=>h(A,`Will delete ${e(ge)??""} session${e(ge)!==1?"s":""} `)),i(d,T)};u(me,d=>{e(I)&&d(V)})}var X=r(me,2);{var Ee=d=>{var T=Zt(),A=Z(T);{var ne=S=>{var Y=z(",");i(S,Y)};u(A,S=>{e(I)&&S(ne)})}var le=r(A);y(()=>h(le,` ${e(he)??""} orphan agent${e(he)!==1?"s":""}`)),i(d,T)};u(X,d=>{e(D)&&e(he)>0&&d(Ee)})}var Ve=r(X,2);{var ht=d=>{var T=ea(),A=Z(T);{var ne=S=>{var Y=z(",");i(S,Y)};u(A,S=>{(e(I)||e(D))&&S(ne)})}var le=r(A);y(()=>h(le,` ${e(ue)??""} orphan todo${e(ue)!==1?"s":""}`)),i(d,T)};u(Ve,d=>{e(B)&&e(ue)>0&&d(ht)})}var ut=r(Ve,2);{var gt=d=>{var T=z("Nothing selected");i(d,T)};u(ut,d=>{!e(I)&&!e(D)&&!e(B)&&d(gt)})}o(oe);var He=r(oe,2),Qe=s(He);Qe.__click=Ue;var ye=r(Qe,2);ye.__click=Xe;var xt=s(ye,!0);o(ye),o(He),o(l),o(a),y(()=>{h(j,`(${e($e)??""})`),c=ze(E,1,"flex items-center gap-3 cursor-pointer ml-6",null,c,{"opacity-50":!e(I)}),p.disabled=!e(I),h(De,`(${e(pe)??""})`),h(L,`(${e(he)??""})`),h(Me,`(${e(ue)??""})`),ye.disabled=e(q)||e(ge)===0&&!e(D)&&!e(B),h(xt,e(q)?"Cleaning...":"Execute Cleanup")}),we(v,()=>e(I),d=>n(I,d)),we(p,()=>e(te),d=>n(te,d)),we(m,()=>e(D),d=>n(D,d)),we(F,()=>e(B),d=>n(B,d)),i(t,a)};u(Fe,t=>{e(ce)&&e(O)&&t(it)})}var vt=r(Fe,2);{var pt=t=>{var a=aa(),l=s(a);{var g=c=>{var p=z();y(()=>h(p,`Removed ${e($).removedMessageCount??""} invalid messages.`)),i(c,p)};u(l,c=>{e($).removedMessageCount>0&&c(g)})}var b=r(l,2);{var v=c=>{var p=z();y(()=>h(p,`Deleted ${e($).deletedCount??""} empty sessions.`)),i(c,p)};u(b,c=>{e($).deletedCount>0&&c(v)})}var w=r(b,2);{var M=c=>{var p=z();y(()=>h(p,`Deleted ${e($).deletedOrphanAgentCount??""} orphan agents.`)),i(c,p)};u(w,c=>{e($).deletedOrphanAgentCount>0&&c(M)})}var j=r(w,2);{var E=c=>{var p=z();y(()=>h(p,`Deleted ${e($).deletedOrphanTodoCount??""} orphan todos.`)),i(c,p)};u(j,c=>{e($).deletedOrphanTodoCount>0&&c(E)})}o(a),i(t,a)};u(vt,t=>{e($)&&t(pt)})}y(t=>{Ge(Ne,"href",t),Ge(Ne,"title",e(k)?"Back to project":"Claude Sessions"),Et(J,e(ie)),ae.disabled=e(q),h(lt,e(q)?"Cleaning...":"Cleanup"),xe.disabled=e(Ce),h(dt,e(Ce)?"Shutting down...":"Shutdown"),ze(Oe,1,`flex-1 ${e(U)?"":"p-8 max-w-7xl mx-auto"} w-full overflow-y-auto`)},[()=>e(k)?`/#project=${encodeURIComponent(e(k).projectName)}`:"/"]),qe("focus",J,()=>e(ie)&&n(G,!0)),qe("blur",J,tt),i(C,We),Tt()}ft(["input","click"]);export{pa as component,va as universal};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as v,a as b,s as c}from"../chunks/DvQL1cTO.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/elvo9mAG.js";import{p as g}from"../chunks/
|
|
1
|
+
import{f as v,a as b,s as c}from"../chunks/DvQL1cTO.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/elvo9mAG.js";import{p as g}from"../chunks/byP5FZXC.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};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
{ ��6趐%��C��ܻLIJҽ�%p�X��"�b��fIA9�1CXZ�Ṧ^�~:��,��B����_?���+��6N�����_�)�}�: ��"���@��(�h+�r�ywI�x#JHQ�o����ZA�?t��r$#�;.�s�+�RnXn�܉��P��望���{��R�1�ۭ�3�/ֳ��_�[c=�ߔ�����ZL��e�da@^���j=�!��W�sRK��K`����5(۱�H���q/����{J_|f�bi bL��pz5�"-����k9����<���|���#tH0Z��C�F4���l��v�7�N=�;��a"v=XZ2��!%B�w]�*��,�
|
|
2
|
+
�V���s��������k��E�$\��%H�P�&�@ͪ�{jdkմ�����VZ��LT�1�j��3Q\5d��ߊʚA�BO�Iw��;)�I��Ԝ�
|
|
Binary file
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{f as L,a as $,s as ie}from"../chunks/DvQL1cTO.js";import{p as ce,s as m,a as y,o as de,f as ue,g as e,b as le,c as b,d as H,e as r,u as k,r as V,t as pe}from"../chunks/elvo9mAG.js";import{i as q}from"../chunks/Cu54-bNJ.js";import{l as me,m as ge,a as z,d as fe,r as Se,g as B,b as he,s as we,u as ye,c as je,e as ve}from"../chunks/CSn8t8Ix.js";import{P as Te,S as Me,g as Ne}from"../chunks/QKEgeM73.js";var xe=L('<div class="fixed bottom-4 right-4 bg-gh-accent text-white px-4 py-2 rounded">Loading...</div>'),_e=L('<div class="fixed bottom-4 right-4 bg-gh-red text-white px-4 py-2 rounded"> </div>'),Ce=L('<div class="grid grid-cols-[350px_1fr] gap-4 h-[calc(100vh-120px)]"><!> <!></div> <!> <!>',1);function Le(G,J){ce(J,!0);let j=m(y([])),c=m(y(new Map)),g=m(y(new Map)),p=m(y(new Set)),i=m(null),d=m(y([])),N=m(y([])),x=m(y([])),h=m(!1),_=m(null),u=m(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}},T=(t,s)=>{const n=new URLSearchParams;t&&n.set("project",t),s&&n.set("session",s);const o=n.toString();window.history.replaceState(null,"",o?`#${o}`:window.location.pathname)},O=async()=>{r(h,!0),r(u,null);try{r(j,await me(),!0)}catch(t){r(u,String(t),!0)}finally{r(h,!1)}},E=async t=>{if(!e(c).has(t)){r(_,t,!0);try{const s=await ve(t),n=[],o=new Map;for(const a of s)n.push({id:a.id,projectName:t,title:a.title,messageCount:a.messageCount,createdAt:a.createdAt,updatedAt:a.updatedAt}),o.set(a.id,a);e(c).set(t,n),r(c,new Map(e(c)),!0),e(g).set(t,o),r(g,new Map(e(g)),!0)}catch(s){r(u,String(s),!0)}finally{r(_,null)}}},C=async()=>{const{project:t,session:s}=K();if(t&&(await E(t),e(p).add(t),r(p,new Set(e(p)),!0),s)){const n=e(c).get(t),o=n==null?void 0:n.find(a=>a.id===s);o&&await A(o,!1)}},Q=async t=>{var s,n;e(p).has(t)?(e(p).delete(t),r(p,new Set(e(p)),!0),((s=e(i))==null?void 0:s.projectName)===t&&T()):(await E(t),e(p).add(t),r(p,new Set(e(p)),!0),T(t,((n=e(i))==null?void 0:n.projectName)===t?e(i).id:void 0))},A=async(t,s=!0)=>{var n,o,a,w,l,f,S;r(i,t,!0),r(h,!0),r(u,null);try{r(d,await B(t.projectName,t.id),!0);const v=(n=e(g).get(t.projectName))==null?void 0:n.get(t.id);if(v){const M=((o=v.todos)==null?void 0:o.sessionTodos)??[],I=((w=(a=v.todos)==null?void 0:a.agentTodos)==null?void 0:w.flatMap(D=>D.todos))??[];r(N,[...M,...I],!0),r(x,v.agents??[],!0)}else{const M=await he(t.projectName,t.id),I=((l=M.todos)==null?void 0:l.sessionTodos)??[],D=((S=(f=M.todos)==null?void 0:f.agentTodos)==null?void 0:S.flatMap(oe=>oe.todos))??[];r(N,[...I,...D],!0),r(x,M.agents??[],!0)}s&&T(t.projectName,t.id)}catch(v){r(u,String(v),!0)}finally{r(h,!1)}},W=async(t,s)=>{var n;if(t.stopPropagation(),!!confirm(`Delete session "${s.title}"?`))try{await fe(s.projectName,s.id);const o=e(c).get(s.projectName);o&&(e(c).set(s.projectName,o.filter(a=>a.id!==s.id)),r(c,new Map(e(c)),!0)),((n=e(i))==null?void 0:n.id)===s.id&&(r(i,null),r(d,[],!0),T(s.projectName))}catch(o){r(u,String(o),!0)}},X=async(t,s)=>{var w,l;t.stopPropagation();const n=(w=e(g).get(s.projectName))==null?void 0:w.get(s.id),o=Ne(n==null?void 0:n.customTitle,n==null?void 0:n.currentSummary,s.title,1/0,""),a=prompt(`Enter session title:
|
|
2
|
+
(Sets custom-title for CLI, first summary for VSCode extension)`,o);if(a!==null)try{await Se(s.projectName,s.id,a),n&&(n.customTitle=a,n.currentSummary=a,n.summaries.length>0?n.summaries[0]={...n.summaries[0],summary:a}:n.summaries=[{summary:a}]),r(c,new Map(e(c)),!0),r(g,new Map(e(g)),!0),((l=e(i))==null?void 0:l.id)===s.id&&r(d,await B(s.projectName,s.id),!0)}catch(f){r(u,String(f),!0)}},Y=async t=>{if(!e(i))return;const s=t.uuid||t.messageId||t.leafUuid;if(s)try{await je(e(i).projectName,e(i).id,s),r(d,e(d).filter(a=>(a.uuid||a.messageId||a.leafUuid)!==s),!0);const n=e(c).get(e(i).projectName),o=n==null?void 0:n.find(a=>a.id===e(i).id);o&&(o.messageCount=e(d).length,r(c,new Map(e(c)),!0))}catch(n){r(u,String(n),!0)}},Z=async t=>{if(!e(i))return;const s=t.customTitle??"",n=prompt("Enter new custom title:",s);if(!(n===null||n===s))try{await ye(e(i).projectName,e(i).id,t.uuid,n),t.customTitle=n,r(d,[...e(d)],!0)}catch(o){r(u,String(o),!0)}},ee=async t=>{if(!e(i))return;const s=e(d).findIndex(a=>a.uuid===t.uuid),n=s,o=e(d).length-s;if(confirm(`Split session at this message?
|
|
3
|
+
|
|
4
|
+
This session will keep ${n} messages.
|
|
5
|
+
New session will have ${o} messages.`))try{r(h,!0);const a=await we(e(i).projectName,e(i).id,t.uuid);if(a.success&&a.newSessionId){const w=await z(e(i).projectName);e(c).set(e(i).projectName,w),r(c,new Map(e(c)),!0),r(d,e(d).slice(0,s),!0);const l=e(c).get(e(i).projectName),f=l==null?void 0:l.find(S=>S.id===e(i).id);f&&(f.messageCount=e(d).length,r(c,new Map(e(c)),!0)),alert(`Session split successfully!
|
|
6
|
+
New session ID: ${a.newSessionId}`)}else r(u,a.error??"Failed to split session",!0)}catch(a){r(u,String(a),!0)}finally{r(h,!1)}},te=async(t,s)=>{var n;if(confirm(`Move session "${t.title}" to ${s.split("-").pop()}?`))try{r(h,!0);const o=await ge(t.projectName,t.id,s);if(o.success){const a=e(c).get(t.projectName);a&&e(c).set(t.projectName,a.filter(S=>S.id!==t.id));const w=await z(s);e(c).set(s,w),r(c,new Map(e(c)),!0);const l=e(j).find(S=>S.name===t.projectName),f=e(j).find(S=>S.name===s);l&&l.sessionCount--,f&&f.sessionCount++,r(j,[...e(j)],!0),((n=e(i))==null?void 0:n.id)===t.id&&(r(i,null),r(d,[],!0),T())}else r(u,o.error??"Failed to move session",!0)}catch(o){r(u,String(o),!0)}finally{r(h,!1)}};de(()=>(O().then(()=>C()),window.addEventListener("hashchange",C),()=>window.removeEventListener("hashchange",C)));var R=Ce(),P=ue(R),U=H(P);Te(U,{get projects(){return e(j)},get projectSessions(){return e(c)},get projectSessionData(){return e(g)},get expandedProjects(){return e(p)},get selectedSession(){return e(i)},get loadingProject(){return e(_)},onToggleProject:Q,onSelectSession:A,onRenameSession:X,onDeleteSession:W,onMoveSession:te});var se=b(U,2);{let t=k(()=>{var n,o;return e(i)?(o=(n=e(g).get(e(i).projectName))==null?void 0:n.get(e(i).id))==null?void 0:o.customTitle:void 0}),s=k(()=>{var n,o;return e(i)?(o=(n=e(g).get(e(i).projectName))==null?void 0:n.get(e(i).id))==null?void 0:o.currentSummary:void 0});Me(se,{get session(){return e(i)},get messages(){return e(d)},get todos(){return e(N)},get agents(){return e(x)},get customTitle(){return e(t)},get currentSummary(){return e(s)},onMessagesChange:n=>r(d,n,!0),onDeleteMessage:Y,onEditTitle:Z,onSplitSession:ee})}V(P);var F=b(P,2);{var ne=t=>{var s=xe();$(t,s)};q(F,t=>{e(h)&&t(ne)})}var re=b(F,2);{var ae=t=>{var s=_e(),n=H(s,!0);V(s),pe(()=>ie(n,e(u))),$(t,s)};q(re,t=>{e(u)&&t(ae)})}$(G,R),le()}export{Le as component};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{f as $,a as w,s as k,c as se}from"../chunks/DvQL1cTO.js";import{p as ae,s as d,a as N,o as re,t as P,b as ie,h as oe,c as D,d as c,g as e,u as M,$ as ne,r as u,e as s,f as le}from"../chunks/elvo9mAG.js";import{i as V}from"../chunks/Cu54-bNJ.js";import{h as de}from"../chunks/B0nKMdd0.js";import{f as ce,l as ue,a as me,g as fe,b as pe,s as ge,u as ve,c as he}from"../chunks/CSn8t8Ix.js";import{b as xe}from"../chunks/BK2z9s18.js";import{p as W}from"../chunks/byP5FZXC.js";import{S as Se}from"../chunks/QKEgeM73.js";var _e=$('<div class="flex items-center justify-center h-full"><div class="text-gh-muted">Loading...</div></div>'),we=$('<div class="flex items-center justify-center h-full"><div class="text-gh-red"> </div></div>'),ye=$('<div class="min-h-screen flex flex-col bg-gh-bg"><header class="flex-shrink-0 border-b border-gh-border bg-gh-canvas"><div class="flex items-center gap-4 p-4"><a class="text-gh-muted hover:text-gh-fg flex-shrink-0" title="Back to project"><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 class="flex-1 min-w-0"><h1 class="text-base font-semibold truncate"> </h1> <p class="text-sm text-gh-muted truncate"> </p></div></div></header> <div class="flex-1 overflow-y-auto"><!></div></div>');function Me(q,z){ae(z,!0);let o=d(null),n=d(N([])),U=d(N([])),E=d(N([])),v=d(!0),m=d(null),R=d(""),B=d(void 0),h=d(void 0),y=d(void 0);const g=M(()=>decodeURIComponent(W.params.project??"")),x=M(()=>decodeURIComponent(W.params.id??"")),A=M(()=>{var t;return e(B)??(e(h)&&e(h).length>50?e(h).slice(0,47)+"...":e(h))??((t=e(o))==null?void 0:t.title)??"Untitled"}),G=async()=>{var t,a,r;s(v,!0),s(m,null);try{const i=(await ue()).find(S=>S.name===e(g));s(R,(i==null?void 0:i.displayName)??e(g),!0);const p=await me(e(g));s(o,p.find(S=>S.id===e(x))??{id:e(x),projectName:e(g),title:e(x),messageCount:0,updatedAt:new Date().toISOString()},!0),s(n,await fe(e(g),e(x)),!0);const l=await pe(e(g),e(x)),_=((t=l.todos)==null?void 0:t.sessionTodos)??[],C=((r=(a=l.todos)==null?void 0:a.agentTodos)==null?void 0:r.flatMap(S=>S.todos))??[];s(U,[..._,...C],!0),s(E,l.agents??[],!0),s(B,l.customTitle,!0),s(h,l.currentSummary,!0)}catch(f){s(m,String(f),!0)}finally{s(v,!1)}},J=async t=>{if(!e(o)||!confirm("Delete this message?"))return;const a=t.uuid||t.messageId;if(a)try{await he(e(o).projectName,e(o).id,a),s(n,e(n).filter(r=>(r.uuid||r.messageId)!==a),!0)}catch(r){s(m,String(r),!0)}},K=async t=>{if(!e(o))return;const a=t.customTitle??"",r=prompt("Enter new custom title:",a);if(!(r===null||r===a))try{await ve(e(o).projectName,e(o).id,t.uuid,r),t.customTitle=r,s(n,[...e(n)],!0)}catch(f){s(m,String(f),!0)}},Q=async t=>{if(!e(o))return;const a=e(n).findIndex(i=>i.uuid===t.uuid),r=a,f=e(n).length-a;if(confirm(`Split session at this message?
|
|
2
|
+
|
|
3
|
+
This session will keep ${r} messages.
|
|
4
|
+
New session will have ${f} messages.`))try{s(v,!0);const i=await ge(e(o).projectName,e(o).id,t.uuid);i.success&&i.newSessionId?(s(n,e(n).slice(0,a),!0),alert(`Session split successfully!
|
|
5
|
+
New session ID: ${i.newSessionId}`)):s(m,i.error??"Failed to split session",!0)}catch(i){s(m,String(i),!0)}finally{s(v,!1)}};re(G);var b=ye();de("ik3mmh",t=>{oe(()=>{ne.title=`${e(A)??""} - Claude Sessions`})});var T=c(b),F=c(T),H=c(F),L=D(H,2),j=c(L),X=c(j,!0);u(j);var O=D(j,2),Y=c(O,!0);u(O),u(L),u(F),u(T);var I=D(T,2),Z=c(I);{var ee=t=>{var a=_e();w(t,a)},te=t=>{var a=se(),r=le(a);{var f=p=>{var l=we(),_=c(l),C=c(_,!0);u(_),u(l),P(()=>k(C,e(m))),w(p,l)},i=p=>{Se(p,{get session(){return e(o)},get messages(){return e(n)},get agents(){return e(E)},get todos(){return e(U)},onMessagesChange:l=>s(n,l,!0),onDeleteMessage:J,onEditTitle:K,onSplitSession:Q,get externalScrollContainer(){return e(y)},enableScroll:!1,fullWidth:!0,showHeader:!1})};V(r,p=>{e(m)?p(f):p(i,!1)},!0)}w(t,a)};V(Z,t=>{e(v)?t(ee):t(te,!1)})}u(I),xe(I,t=>s(y,t),()=>e(y)),u(b),P(t=>{ce(H,"href",t),k(X,e(A)),k(Y,e(R))},[()=>`/#project=${encodeURIComponent(e(g))}`]),w(q,b),ie()}export{Me as component};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"
|
|
1
|
+
{"version":"1766388725700"}
|
|
Binary file
|
|
Binary file
|
|
@@ -9,9 +9,9 @@ const index = 0;
|
|
|
9
9
|
let component_cache;
|
|
10
10
|
const component = async () => component_cache ??= (await import('./_layout.svelte-BsIPSbGo.js')).default;
|
|
11
11
|
const universal_id = "src/routes/+layout.ts";
|
|
12
|
-
const imports = ["_app/immutable/nodes/0.
|
|
13
|
-
const stylesheets = ["_app/immutable/assets/0.
|
|
12
|
+
const imports = ["_app/immutable/nodes/0.C3TdraPu.js","_app/immutable/chunks/DvQL1cTO.js","_app/immutable/chunks/elvo9mAG.js","_app/immutable/chunks/Cu54-bNJ.js","_app/immutable/chunks/CSn8t8Ix.js","_app/immutable/chunks/B0nKMdd0.js","_app/immutable/chunks/Bk8SkFX_.js","_app/immutable/chunks/byP5FZXC.js"];
|
|
13
|
+
const stylesheets = ["_app/immutable/assets/0.DHKfs7JC.css"];
|
|
14
14
|
const fonts = [];
|
|
15
15
|
|
|
16
16
|
export { component, fonts, imports, index, stylesheets, _layout_ts as universal, universal_id };
|
|
17
|
-
//# sourceMappingURL=0-
|
|
17
|
+
//# sourceMappingURL=0-DpMV9SJd.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"0-
|
|
1
|
+
{"version":3,"file":"0-DpMV9SJd.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.C3TdraPu.js\",\"_app/immutable/chunks/DvQL1cTO.js\",\"_app/immutable/chunks/elvo9mAG.js\",\"_app/immutable/chunks/Cu54-bNJ.js\",\"_app/immutable/chunks/CSn8t8Ix.js\",\"_app/immutable/chunks/B0nKMdd0.js\",\"_app/immutable/chunks/Bk8SkFX_.js\",\"_app/immutable/chunks/byP5FZXC.js\"];\nexport const stylesheets = [\"_app/immutable/assets/0.DHKfs7JC.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;;;;"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
const index = 1;
|
|
2
2
|
let component_cache;
|
|
3
3
|
const component = async () => component_cache ??= (await import('./error.svelte-CxBB_UKu.js')).default;
|
|
4
|
-
const imports = ["_app/immutable/nodes/1.
|
|
4
|
+
const imports = ["_app/immutable/nodes/1.Bm6PSLR5.js","_app/immutable/chunks/DvQL1cTO.js","_app/immutable/chunks/elvo9mAG.js","_app/immutable/chunks/byP5FZXC.js","_app/immutable/chunks/Bk8SkFX_.js"];
|
|
5
5
|
const stylesheets = [];
|
|
6
6
|
const fonts = [];
|
|
7
7
|
|
|
8
8
|
export { component, fonts, imports, index, stylesheets };
|
|
9
|
-
//# sourceMappingURL=1-
|
|
9
|
+
//# sourceMappingURL=1-D9TH1iwG.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"1-
|
|
1
|
+
{"version":3,"file":"1-D9TH1iwG.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.Bm6PSLR5.js\",\"_app/immutable/chunks/DvQL1cTO.js\",\"_app/immutable/chunks/elvo9mAG.js\",\"_app/immutable/chunks/byP5FZXC.js\",\"_app/immutable/chunks/Bk8SkFX_.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;;;;"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
const index = 2;
|
|
2
2
|
let component_cache;
|
|
3
|
-
const component = async () => component_cache ??= (await import('./_page.svelte-
|
|
4
|
-
const imports = ["_app/immutable/nodes/2.
|
|
3
|
+
const component = async () => component_cache ??= (await import('./_page.svelte-DEQJ0oPW.js')).default;
|
|
4
|
+
const imports = ["_app/immutable/nodes/2.DWRsPVe4.js","_app/immutable/chunks/DvQL1cTO.js","_app/immutable/chunks/elvo9mAG.js","_app/immutable/chunks/Cu54-bNJ.js","_app/immutable/chunks/CSn8t8Ix.js","_app/immutable/chunks/QKEgeM73.js","_app/immutable/chunks/BK2z9s18.js"];
|
|
5
5
|
const stylesheets = [];
|
|
6
6
|
const fonts = [];
|
|
7
7
|
|
|
8
8
|
export { component, fonts, imports, index, stylesheets };
|
|
9
|
-
//# sourceMappingURL=2-
|
|
9
|
+
//# sourceMappingURL=2-tlqE1QP7.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"2-
|
|
1
|
+
{"version":3,"file":"2-tlqE1QP7.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.DWRsPVe4.js\",\"_app/immutable/chunks/DvQL1cTO.js\",\"_app/immutable/chunks/elvo9mAG.js\",\"_app/immutable/chunks/Cu54-bNJ.js\",\"_app/immutable/chunks/CSn8t8Ix.js\",\"_app/immutable/chunks/QKEgeM73.js\",\"_app/immutable/chunks/BK2z9s18.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;;;;"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
const index = 3;
|
|
2
2
|
let component_cache;
|
|
3
|
-
const component = async () => component_cache ??= (await import('./_page.svelte-
|
|
4
|
-
const imports = ["_app/immutable/nodes/3.
|
|
3
|
+
const component = async () => component_cache ??= (await import('./_page.svelte-DfZkatW6.js')).default;
|
|
4
|
+
const imports = ["_app/immutable/nodes/3.DMWHz6-z.js","_app/immutable/chunks/DvQL1cTO.js","_app/immutable/chunks/elvo9mAG.js","_app/immutable/chunks/Cu54-bNJ.js","_app/immutable/chunks/B0nKMdd0.js","_app/immutable/chunks/CSn8t8Ix.js","_app/immutable/chunks/BK2z9s18.js","_app/immutable/chunks/byP5FZXC.js","_app/immutable/chunks/Bk8SkFX_.js","_app/immutable/chunks/QKEgeM73.js"];
|
|
5
5
|
const stylesheets = [];
|
|
6
6
|
const fonts = [];
|
|
7
7
|
|
|
8
8
|
export { component, fonts, imports, index, stylesheets };
|
|
9
|
-
//# sourceMappingURL=3-
|
|
9
|
+
//# sourceMappingURL=3-BGGlUEp-.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"3-
|
|
1
|
+
{"version":3,"file":"3-BGGlUEp-.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.DMWHz6-z.js\",\"_app/immutable/chunks/DvQL1cTO.js\",\"_app/immutable/chunks/elvo9mAG.js\",\"_app/immutable/chunks/Cu54-bNJ.js\",\"_app/immutable/chunks/B0nKMdd0.js\",\"_app/immutable/chunks/CSn8t8Ix.js\",\"_app/immutable/chunks/BK2z9s18.js\",\"_app/immutable/chunks/byP5FZXC.js\",\"_app/immutable/chunks/Bk8SkFX_.js\",\"_app/immutable/chunks/QKEgeM73.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;;;;"}
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import { F as ensure_array_like, y as attr_class, x as attr, z as stringify } from './index-CMvE0dm6.js';
|
|
2
|
-
import { f as formatProjectName } from './format-
|
|
2
|
+
import { f as formatProjectName } from './format-DgNjDoEq.js';
|
|
3
3
|
import { e as escape_html } from './context-R2425nfV.js';
|
|
4
4
|
import 'marked';
|
|
5
|
+
import './index2-CWkjuG0Y.js';
|
|
6
|
+
import 'fs';
|
|
7
|
+
import 'os';
|
|
8
|
+
import 'path';
|
|
9
|
+
import 'effect';
|
|
10
|
+
import 'fs/promises';
|
|
5
11
|
|
|
6
12
|
function ProjectTree($$renderer, $$props) {
|
|
7
13
|
$$renderer.component(($$renderer2) => {
|
|
@@ -19,8 +25,8 @@ function ProjectTree($$renderer, $$props) {
|
|
|
19
25
|
const getDisplayTitle = (session) => {
|
|
20
26
|
const data = getSessionData(session.projectName, session.id);
|
|
21
27
|
if (data?.customTitle) return data.customTitle;
|
|
22
|
-
if (data?.
|
|
23
|
-
const summary = data.
|
|
28
|
+
if (data?.currentSummary) {
|
|
29
|
+
const summary = data.currentSummary;
|
|
24
30
|
return summary.length > 60 ? summary.slice(0, 57) + "..." : summary;
|
|
25
31
|
}
|
|
26
32
|
if (session.title && session.title !== "Untitled") return session.title;
|
|
@@ -28,14 +34,14 @@ function ProjectTree($$renderer, $$props) {
|
|
|
28
34
|
};
|
|
29
35
|
const getTooltipText = (session) => {
|
|
30
36
|
const data = getSessionData(session.projectName, session.id);
|
|
31
|
-
if (data?.customTitle && data?.
|
|
32
|
-
return data.
|
|
37
|
+
if (data?.customTitle && data?.currentSummary) {
|
|
38
|
+
return data.currentSummary;
|
|
33
39
|
}
|
|
34
|
-
if (data?.
|
|
40
|
+
if (data?.currentSummary && session.title && session.title !== "Untitled") {
|
|
35
41
|
return session.title;
|
|
36
42
|
}
|
|
37
|
-
if (data?.
|
|
38
|
-
return data.
|
|
43
|
+
if (data?.currentSummary) {
|
|
44
|
+
return data.currentSummary;
|
|
39
45
|
}
|
|
40
46
|
return session.title ?? "No summary available";
|
|
41
47
|
};
|
|
@@ -76,7 +82,7 @@ function ProjectTree($$renderer, $$props) {
|
|
|
76
82
|
const displayTitle = getDisplayTitle(session);
|
|
77
83
|
const tooltipText = getTooltipText(session);
|
|
78
84
|
const data = getSessionData(session.projectName, session.id);
|
|
79
|
-
const isSummaryFallback = !data?.customTitle && !data?.
|
|
85
|
+
const isSummaryFallback = !data?.customTitle && !data?.currentSummary;
|
|
80
86
|
const isExpanded = expandedSessions.has(session.id);
|
|
81
87
|
const hasSubItems = sessionInfo.summaries > 0 || sessionInfo.agents > 0 || sessionInfo.todos > 0;
|
|
82
88
|
$$renderer2.push(`<li${attr_class(`relative 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"><div class="flex items-center">`);
|
|
@@ -102,9 +108,9 @@ function ProjectTree($$renderer, $$props) {
|
|
|
102
108
|
$$renderer2.push("<!--[!-->");
|
|
103
109
|
}
|
|
104
110
|
$$renderer2.push(`<!--]--></span></button> <div${attr_class(`absolute left-0 right-0 top-0 h-8 flex items-center opacity-0 group-hover:opacity-100 transition-opacity pointer-events-none ${stringify(isSelected ? "bg-gradient-to-r from-[color-mix(in_srgb,var(--color-gh-accent)_20%,var(--color-gh-bg))] via-[color-mix(in_srgb,var(--color-gh-accent)_20%,var(--color-gh-bg))] to-[color-mix(in_srgb,var(--color-gh-accent)_20%,var(--color-gh-bg))]" : "bg-gradient-to-r from-gh-bg via-gh-bg to-gh-bg")}`)}><span class="flex-1 min-w-0 pl-7 pr-2 text-xs text-gh-text-secondary italic overflow-hidden text-ellipsis whitespace-nowrap">`);
|
|
105
|
-
if (data?.
|
|
111
|
+
if (data?.currentSummary) {
|
|
106
112
|
$$renderer2.push("<!--[-->");
|
|
107
|
-
$$renderer2.push(`${escape_html(data.
|
|
113
|
+
$$renderer2.push(`${escape_html(data.currentSummary.length > 50 ? data.currentSummary.slice(0, 47) + "..." : data.currentSummary)}`);
|
|
108
114
|
} else {
|
|
109
115
|
$$renderer2.push("<!--[!-->");
|
|
110
116
|
$$renderer2.push(`${escape_html(displayTitle)}`);
|
|
@@ -119,14 +125,14 @@ function ProjectTree($$renderer, $$props) {
|
|
|
119
125
|
const each_array_2 = ensure_array_like(data.summaries);
|
|
120
126
|
for (let idx = 0, $$length3 = each_array_2.length; idx < $$length3; idx++) {
|
|
121
127
|
let summary = each_array_2[idx];
|
|
122
|
-
$$renderer2.push(`<li
|
|
123
|
-
if (
|
|
128
|
+
$$renderer2.push(`<li${attr_class(`py-1.5 px-4 pl-8 hover:bg-gh-border-subtle/50 flex flex-col gap-0.5 ${stringify(idx === 0 ? "text-gh-text" : "text-gh-text-secondary")}`)}${attr("title", summary.summary)}><div class="flex items-start gap-2"><span class="flex-shrink-0">📝</span> <span class="overflow-hidden text-ellipsis line-clamp-2">${escape_html(summary.summary.length > 100 ? summary.summary.slice(0, 97) + "..." : summary.summary)}</span></div> `);
|
|
129
|
+
if (summary.timestamp) {
|
|
124
130
|
$$renderer2.push("<!--[-->");
|
|
125
|
-
$$renderer2.push(`<span class="text-gh-
|
|
131
|
+
$$renderer2.push(`<span class="pl-6 text-[10px] text-gh-text-secondary/70">${escape_html(new Date(summary.timestamp).toLocaleString())}</span>`);
|
|
126
132
|
} else {
|
|
127
133
|
$$renderer2.push("<!--[!-->");
|
|
128
134
|
}
|
|
129
|
-
$$renderer2.push(`<!--]
|
|
135
|
+
$$renderer2.push(`<!--]--></li>`);
|
|
130
136
|
}
|
|
131
137
|
$$renderer2.push(`<!--]-->`);
|
|
132
138
|
} else {
|
|
@@ -190,8 +196,8 @@ function SessionViewer($$renderer, $$props) {
|
|
|
190
196
|
enableScroll = true,
|
|
191
197
|
fullWidth = false
|
|
192
198
|
} = $$props;
|
|
193
|
-
let
|
|
194
|
-
let
|
|
199
|
+
let undoStack = [];
|
|
200
|
+
let undoCountdown = 0;
|
|
195
201
|
messages.findIndex((m) => m.type === "user" || m.type === "assistant" || m.type === "human");
|
|
196
202
|
(() => {
|
|
197
203
|
for (let i = messages.length - 1; i >= 0; i--) {
|
|
@@ -227,9 +233,9 @@ function SessionViewer($$renderer, $$props) {
|
|
|
227
233
|
$$renderer2.push(`<div class="flex items-center justify-center h-full text-gh-text-secondary">Select a session to view</div>`);
|
|
228
234
|
}
|
|
229
235
|
$$renderer2.push(`<!--]--></div> `);
|
|
230
|
-
if (
|
|
236
|
+
if (undoStack.length > 0) {
|
|
231
237
|
$$renderer2.push("<!--[-->");
|
|
232
|
-
$$renderer2.push(`<div class="fixed bottom-4 left-1/2 -translate-x-1/2 bg-neutral-500/20 border border-neutral-600 rounded-lg shadow-2xl px-4 py-3 flex items-center gap-4 z-50 backdrop-blur-sm"><span class="text-sm text-white">${escape_html(
|
|
238
|
+
$$renderer2.push(`<div class="fixed bottom-4 left-1/2 -translate-x-1/2 bg-neutral-500/20 border border-neutral-600 rounded-lg shadow-2xl px-4 py-3 flex items-center gap-4 z-50 backdrop-blur-sm"><span class="text-sm text-white">${escape_html(undoStack.length === 1 ? "Message deleted" : `${undoStack.length} messages deleted`)}</span> <span class="text-xs text-gh-text-secondary tabular-nums">${escape_html(undoCountdown)}s</span> <button class="px-3 py-1 text-sm font-medium text-gh-accent hover:bg-gh-border-subtle rounded transition-colors">Undo</button> <button class="px-2 py-1 text-sm text-gh-text-secondary hover:text-gh-text hover:bg-gh-border-subtle rounded transition-colors" title="Dismiss (already deleted)">✕</button></div>`);
|
|
233
239
|
} else {
|
|
234
240
|
$$renderer2.push("<!--[!-->");
|
|
235
241
|
}
|
|
@@ -271,4 +277,4 @@ function _page($$renderer, $$props) {
|
|
|
271
277
|
}
|
|
272
278
|
|
|
273
279
|
export { _page as default };
|
|
274
|
-
//# sourceMappingURL=_page.svelte-
|
|
280
|
+
//# sourceMappingURL=_page.svelte-DEQJ0oPW.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_page.svelte-DEQJ0oPW.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/_page.svelte.js"],"sourcesContent":["import { F as ensure_array_like, y as attr_class, x as attr, z as stringify } from \"../../chunks/index.js\";\nimport { f as formatProjectName } from \"../../chunks/format.js\";\nimport { e as escape_html } from \"../../chunks/context.js\";\nfunction ProjectTree($$renderer, $$props) {\n $$renderer.component(($$renderer2) => {\n let {\n projects,\n projectSessions,\n projectSessionData,\n expandedProjects,\n selectedSession,\n loadingProject\n } = $$props;\n const getSessionData = (projectName, sessionId) => {\n return projectSessionData.get(projectName)?.get(sessionId);\n };\n const getDisplayTitle = (session) => {\n const data = getSessionData(session.projectName, session.id);\n if (data?.customTitle) return data.customTitle;\n if (data?.currentSummary) {\n const summary = data.currentSummary;\n return summary.length > 60 ? summary.slice(0, 57) + \"...\" : summary;\n }\n if (session.title && session.title !== \"Untitled\") return session.title;\n return \"Untitled\";\n };\n const getTooltipText = (session) => {\n const data = getSessionData(session.projectName, session.id);\n if (data?.customTitle && data?.currentSummary) {\n return data.currentSummary;\n }\n if (data?.currentSummary && session.title && session.title !== \"Untitled\") {\n return session.title;\n }\n if (data?.currentSummary) {\n return data.currentSummary;\n }\n return session.title ?? \"No summary available\";\n };\n const getSessionInfo = (session) => {\n const data = getSessionData(session.projectName, session.id);\n const todoCount = data?.todos ? data.todos.sessionTodos.length + data.todos.agentTodos.reduce((acc, at) => acc + at.todos.length, 0) : 0;\n return {\n agents: data?.agents.length ?? 0,\n todos: todoCount,\n summaries: data?.summaries.length ?? 0\n };\n };\n const nonEmptyProjects = projects.filter((p) => p.sessionCount > 0);\n let expandedSessions = /* @__PURE__ */ new Set();\n let draggedSession = null;\n let dropTargetProject = null;\n $$renderer2.push(`<aside class=\"bg-gh-bg-secondary border border-gh-border rounded-lg overflow-hidden flex flex-col\"><h2 class=\"p-4 text-base font-semibold border-b border-gh-border bg-gh-bg\">Projects (${escape_html(nonEmptyProjects.length)})</h2> <ul class=\"overflow-y-auto flex-1\"><!--[-->`);\n const each_array = ensure_array_like(nonEmptyProjects);\n for (let $$index_4 = 0, $$length = each_array.length; $$index_4 < $$length; $$index_4++) {\n let project = each_array[$$index_4];\n const isDropTarget = dropTargetProject === project.name;\n $$renderer2.push(`<li class=\"border-b border-gh-border-subtle\"><button${attr_class(`w-full py-3 px-4 bg-transparent border-none text-gh-text cursor-pointer text-left flex items-center gap-2 font-medium hover:bg-gh-border-subtle ${stringify(expandedProjects.has(project.name) ? \"bg-gh-accent/10\" : \"\")} ${stringify(isDropTarget ? \"bg-gh-green/20 ring-2 ring-gh-green ring-inset\" : \"\")}`)}><span class=\"text-xs w-3 text-gh-text-secondary\">${escape_html(expandedProjects.has(project.name) ? \"▼\" : \"▶\")}</span> <span class=\"flex-1 overflow-hidden text-ellipsis whitespace-nowrap\"${attr(\"title\", project.displayName)}>${escape_html(formatProjectName(project.displayName))}</span> <span class=\"bg-gh-border px-2 py-0.5 rounded-full text-xs font-normal\">${escape_html(project.sessionCount)}</span></button> `);\n if (expandedProjects.has(project.name)) {\n $$renderer2.push(\"<!--[-->\");\n $$renderer2.push(`<ul class=\"bg-gh-bg\">`);\n if (loadingProject === project.name) {\n $$renderer2.push(\"<!--[-->\");\n $$renderer2.push(`<li class=\"py-2 px-8 text-gh-text-secondary text-sm\">Loading...</li>`);\n } else {\n $$renderer2.push(\"<!--[!-->\");\n $$renderer2.push(`<!--[-->`);\n const each_array_1 = ensure_array_like(projectSessions.get(project.name) ?? []);\n for (let $$index_3 = 0, $$length2 = each_array_1.length; $$index_3 < $$length2; $$index_3++) {\n let session = each_array_1[$$index_3];\n const isSelected = selectedSession?.id === session.id;\n const isDragging = draggedSession?.id === session.id;\n const sessionInfo = getSessionInfo(session);\n const displayTitle = getDisplayTitle(session);\n const tooltipText = getTooltipText(session);\n const data = getSessionData(session.projectName, session.id);\n const isSummaryFallback = !data?.customTitle && !data?.currentSummary;\n const isExpanded = expandedSessions.has(session.id);\n const hasSubItems = sessionInfo.summaries > 0 || sessionInfo.agents > 0 || sessionInfo.todos > 0;\n $$renderer2.push(`<li${attr_class(`relative 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\"><div class=\"flex items-center\">`);\n if (hasSubItems) {\n $$renderer2.push(\"<!--[-->\");\n $$renderer2.push(`<button class=\"flex-shrink-0 w-5 h-8 flex items-center justify-center bg-transparent border-none cursor-pointer text-gh-text-secondary text-xs ml-1 z-10 relative\"${attr(\"title\", isExpanded ? \"Collapse\" : \"Expand\")}>${escape_html(isExpanded ? \"▼\" : \"▶\")}</button>`);\n } else {\n $$renderer2.push(\"<!--[!-->\");\n $$renderer2.push(`<span class=\"w-5 ml-1\"></span>`);\n }\n $$renderer2.push(`<!--]--> <button class=\"flex-1 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\"${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> `);\n if (sessionInfo.agents > 0) {\n $$renderer2.push(\"<!--[-->\");\n $$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>`);\n } else {\n $$renderer2.push(\"<!--[!-->\");\n }\n $$renderer2.push(`<!--]--> `);\n if (sessionInfo.todos > 0) {\n $$renderer2.push(\"<!--[-->\");\n $$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>`);\n } else {\n $$renderer2.push(\"<!--[!-->\");\n }\n $$renderer2.push(`<!--]--></span></button> <div${attr_class(`absolute left-0 right-0 top-0 h-8 flex items-center opacity-0 group-hover:opacity-100 transition-opacity pointer-events-none ${stringify(isSelected ? \"bg-gradient-to-r from-[color-mix(in_srgb,var(--color-gh-accent)_20%,var(--color-gh-bg))] via-[color-mix(in_srgb,var(--color-gh-accent)_20%,var(--color-gh-bg))] to-[color-mix(in_srgb,var(--color-gh-accent)_20%,var(--color-gh-bg))]\" : \"bg-gradient-to-r from-gh-bg via-gh-bg to-gh-bg\")}`)}><span class=\"flex-1 min-w-0 pl-7 pr-2 text-xs text-gh-text-secondary italic overflow-hidden text-ellipsis whitespace-nowrap\">`);\n if (data?.currentSummary) {\n $$renderer2.push(\"<!--[-->\");\n $$renderer2.push(`${escape_html(data.currentSummary.length > 50 ? data.currentSummary.slice(0, 47) + \"...\" : data.currentSummary)}`);\n } else {\n $$renderer2.push(\"<!--[!-->\");\n $$renderer2.push(`${escape_html(displayTitle)}`);\n }\n $$renderer2.push(`<!--]--></span> <div class=\"flex-shrink-0 flex gap-0.5 pr-2 pointer-events-auto\"><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></div></div> `);\n if (isExpanded && hasSubItems) {\n $$renderer2.push(\"<!--[-->\");\n $$renderer2.push(`<ul class=\"bg-gh-bg-secondary/50 border-t border-gh-border-subtle text-xs\">`);\n if (data?.summaries && data.summaries.length > 0) {\n $$renderer2.push(\"<!--[-->\");\n $$renderer2.push(`<!--[-->`);\n const each_array_2 = ensure_array_like(data.summaries);\n for (let idx = 0, $$length3 = each_array_2.length; idx < $$length3; idx++) {\n let summary = each_array_2[idx];\n $$renderer2.push(`<li${attr_class(`py-1.5 px-4 pl-8 hover:bg-gh-border-subtle/50 flex flex-col gap-0.5 ${stringify(idx === 0 ? \"text-gh-text\" : \"text-gh-text-secondary\")}`)}${attr(\"title\", summary.summary)}><div class=\"flex items-start gap-2\"><span class=\"flex-shrink-0\">📝</span> <span class=\"overflow-hidden text-ellipsis line-clamp-2\">${escape_html(summary.summary.length > 100 ? summary.summary.slice(0, 97) + \"...\" : summary.summary)}</span></div> `);\n if (summary.timestamp) {\n $$renderer2.push(\"<!--[-->\");\n $$renderer2.push(`<span class=\"pl-6 text-[10px] text-gh-text-secondary/70\">${escape_html(new Date(summary.timestamp).toLocaleString())}</span>`);\n } else {\n $$renderer2.push(\"<!--[!-->\");\n }\n $$renderer2.push(`<!--]--></li>`);\n }\n $$renderer2.push(`<!--]-->`);\n } else {\n $$renderer2.push(\"<!--[!-->\");\n }\n $$renderer2.push(`<!--]--> `);\n if (data?.todos?.sessionTodos && data.todos.sessionTodos.length > 0) {\n $$renderer2.push(\"<!--[-->\");\n $$renderer2.push(`<li class=\"py-1.5 px-4 pl-8 text-gh-text-secondary hover:bg-gh-border-subtle/50 flex items-start gap-2\"><span class=\"flex-shrink-0\">📋</span> <span>Session Todos (${escape_html(data.todos.sessionTodos.length)})</span></li>`);\n } else {\n $$renderer2.push(\"<!--[!-->\");\n }\n $$renderer2.push(`<!--]--> `);\n if (data?.todos?.agentTodos) {\n $$renderer2.push(\"<!--[-->\");\n $$renderer2.push(`<!--[-->`);\n const each_array_3 = ensure_array_like(data.todos.agentTodos);\n for (let $$index_1 = 0, $$length3 = each_array_3.length; $$index_1 < $$length3; $$index_1++) {\n let agentTodo = each_array_3[$$index_1];\n $$renderer2.push(`<li class=\"py-1.5 px-4 pl-8 text-gh-text-secondary hover:bg-gh-border-subtle/50 flex items-start gap-2\"><span class=\"flex-shrink-0\">📋</span> <span>Agent Todos (${escape_html(agentTodo.todos.length)})</span></li>`);\n }\n $$renderer2.push(`<!--]-->`);\n } else {\n $$renderer2.push(\"<!--[!-->\");\n }\n $$renderer2.push(`<!--]--> `);\n if (data?.agents && data.agents.length > 0) {\n $$renderer2.push(\"<!--[-->\");\n $$renderer2.push(`<!--[-->`);\n const each_array_4 = ensure_array_like(data.agents);\n for (let $$index_2 = 0, $$length3 = each_array_4.length; $$index_2 < $$length3; $$index_2++) {\n let agent = each_array_4[$$index_2];\n $$renderer2.push(`<li class=\"py-1.5 px-4 pl-8 text-gh-text-secondary hover:bg-gh-border-subtle/50 flex items-start gap-2\"${attr(\"title\", agent.name ?? agent.id)}><span class=\"flex-shrink-0\">🤖</span> <span class=\"overflow-hidden text-ellipsis whitespace-nowrap\">${escape_html(agent.name ?? agent.id.slice(0, 12) + \"...\")} (${escape_html(agent.messageCount)} msgs)</span></li>`);\n }\n $$renderer2.push(`<!--]-->`);\n } else {\n $$renderer2.push(\"<!--[!-->\");\n }\n $$renderer2.push(`<!--]--></ul>`);\n } else {\n $$renderer2.push(\"<!--[!-->\");\n }\n $$renderer2.push(`<!--]--></li>`);\n }\n $$renderer2.push(`<!--]-->`);\n }\n $$renderer2.push(`<!--]--></ul>`);\n } else {\n $$renderer2.push(\"<!--[!-->\");\n }\n $$renderer2.push(`<!--]--></li>`);\n }\n $$renderer2.push(`<!--]--></ul></aside>`);\n });\n}\nfunction SessionViewer($$renderer, $$props) {\n $$renderer.component(($$renderer2) => {\n let {\n messages,\n showHeader = true,\n enableScroll = true,\n fullWidth = false\n } = $$props;\n let undoStack = [];\n let undoCountdown = 0;\n messages.findIndex((m) => m.type === \"user\" || m.type === \"assistant\" || m.type === \"human\");\n (() => {\n for (let i = messages.length - 1; i >= 0; i--) {\n if (messages[i].isCompactSummary) {\n return i;\n }\n }\n return -1;\n })();\n $$renderer2.push(`<section${attr_class(`bg-gh-bg-secondary overflow-hidden flex flex-col ${stringify(fullWidth ? \"\" : \"border border-gh-border rounded-lg\")}`)}>`);\n if (showHeader) {\n $$renderer2.push(\"<!--[-->\");\n $$renderer2.push(`<div class=\"p-4 border-b border-gh-border bg-gh-bg flex flex-wrap justify-between items-start gap-2\"><div class=\"flex-1 min-w-[200px]\">`);\n {\n $$renderer2.push(\"<!--[!-->\");\n $$renderer2.push(`<h2 class=\"text-base font-semibold\">Messages</h2>`);\n }\n $$renderer2.push(`<!--]--></div> `);\n {\n $$renderer2.push(\"<!--[!-->\");\n }\n $$renderer2.push(`<!--]--></div>`);\n } else {\n $$renderer2.push(\"<!--[!-->\");\n }\n $$renderer2.push(`<!--]--> `);\n {\n $$renderer2.push(\"<!--[!-->\");\n }\n $$renderer2.push(`<!--]--> <div${attr_class(`flex-1 ${stringify(enableScroll ? \"overflow-y-auto\" : \"\")}`)}>`);\n {\n $$renderer2.push(\"<!--[-->\");\n $$renderer2.push(`<div class=\"flex items-center justify-center h-full text-gh-text-secondary\">Select a session to view</div>`);\n }\n $$renderer2.push(`<!--]--></div> `);\n if (undoStack.length > 0) {\n $$renderer2.push(\"<!--[-->\");\n $$renderer2.push(`<div class=\"fixed bottom-4 left-1/2 -translate-x-1/2 bg-neutral-500/20 border border-neutral-600 rounded-lg shadow-2xl px-4 py-3 flex items-center gap-4 z-50 backdrop-blur-sm\"><span class=\"text-sm text-white\">${escape_html(undoStack.length === 1 ? \"Message deleted\" : `${undoStack.length} messages deleted`)}</span> <span class=\"text-xs text-gh-text-secondary tabular-nums\">${escape_html(undoCountdown)}s</span> <button class=\"px-3 py-1 text-sm font-medium text-gh-accent hover:bg-gh-border-subtle rounded transition-colors\">Undo</button> <button class=\"px-2 py-1 text-sm text-gh-text-secondary hover:text-gh-text hover:bg-gh-border-subtle rounded transition-colors\" title=\"Dismiss (already deleted)\">✕</button></div>`);\n } else {\n $$renderer2.push(\"<!--[!-->\");\n }\n $$renderer2.push(`<!--]--></section>`);\n });\n}\nfunction _page($$renderer, $$props) {\n $$renderer.component(($$renderer2) => {\n let projects = [];\n let projectSessions = /* @__PURE__ */ new Map();\n let projectSessionData = /* @__PURE__ */ new Map();\n let expandedProjects = /* @__PURE__ */ new Set();\n let selectedSession = null;\n let messages = [];\n let loadingProject = null;\n $$renderer2.push(`<div class=\"grid grid-cols-[350px_1fr] gap-4 h-[calc(100vh-120px)]\">`);\n ProjectTree($$renderer2, {\n projects,\n projectSessions,\n projectSessionData,\n expandedProjects,\n selectedSession,\n loadingProject\n });\n $$renderer2.push(`<!----> `);\n SessionViewer($$renderer2, {\n messages\n });\n $$renderer2.push(`<!----></div> `);\n {\n $$renderer2.push(\"<!--[!-->\");\n }\n $$renderer2.push(`<!--]--> `);\n {\n $$renderer2.push(\"<!--[!-->\");\n }\n $$renderer2.push(`<!--]-->`);\n });\n}\nexport {\n _page as default\n};\n"],"names":[],"mappings":";;;;;;;;;;;AAGA,SAAS,WAAW,CAAC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-
|
|
3
|
+
import './format-DgNjDoEq.js';
|
|
4
4
|
import { e as escape_html } from './context-R2425nfV.js';
|
|
5
5
|
import './exports-BzHwARwz.js';
|
|
6
6
|
import 'marked';
|
|
7
|
+
import './index2-CWkjuG0Y.js';
|
|
8
|
+
import 'fs';
|
|
9
|
+
import 'os';
|
|
10
|
+
import 'path';
|
|
11
|
+
import 'effect';
|
|
12
|
+
import 'fs/promises';
|
|
7
13
|
|
|
8
14
|
function _page($$renderer, $$props) {
|
|
9
15
|
$$renderer.component(($$renderer2) => {
|
|
10
16
|
let projectDisplayName = "";
|
|
11
17
|
const projectName = decodeURIComponent(page.params.project ?? "");
|
|
12
18
|
decodeURIComponent(page.params.id ?? "");
|
|
19
|
+
const displayTitle = "Untitled";
|
|
13
20
|
head("ik3mmh", $$renderer2, ($$renderer3) => {
|
|
14
21
|
$$renderer3.title(($$renderer4) => {
|
|
15
|
-
$$renderer4.push(`<title>${escape_html(
|
|
22
|
+
$$renderer4.push(`<title>${escape_html(displayTitle)} - Claude Sessions</title>`);
|
|
16
23
|
});
|
|
17
24
|
});
|
|
18
|
-
$$renderer2.push(`<div class="min-h-screen flex flex-col bg-gh-bg"><header class="flex-shrink-0 border-b border-gh-border bg-gh-canvas"><div class="flex items-center gap-4 p-4"><a${attr("href", `/#project=${encodeURIComponent(projectName)}`)} class="text-gh-muted hover:text-gh-fg" title="Back to project"><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> <p class="text-sm text-gh-muted">${escape_html(projectDisplayName)}</p></div></header> <div class="flex-1 overflow-y-auto">`);
|
|
25
|
+
$$renderer2.push(`<div class="min-h-screen flex flex-col bg-gh-bg"><header class="flex-shrink-0 border-b border-gh-border bg-gh-canvas"><div class="flex items-center gap-4 p-4"><a${attr("href", `/#project=${encodeURIComponent(projectName)}`)} class="text-gh-muted hover:text-gh-fg flex-shrink-0" title="Back to project"><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 class="flex-1 min-w-0"><h1 class="text-base font-semibold truncate">${escape_html(displayTitle)}</h1> <p class="text-sm text-gh-muted truncate">${escape_html(projectDisplayName)}</p></div></div></header> <div class="flex-1 overflow-y-auto">`);
|
|
19
26
|
{
|
|
20
27
|
$$renderer2.push("<!--[-->");
|
|
21
28
|
$$renderer2.push(`<div class="flex items-center justify-center h-full"><div class="text-gh-muted">Loading...</div></div>`);
|
|
@@ -25,4 +32,4 @@ function _page($$renderer, $$props) {
|
|
|
25
32
|
}
|
|
26
33
|
|
|
27
34
|
export { _page as default };
|
|
28
|
-
//# sourceMappingURL=_page.svelte-
|
|
35
|
+
//# sourceMappingURL=_page.svelte-DfZkatW6.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_page.svelte-DfZkatW6.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/session/_project_/_id_/_page.svelte.js"],"sourcesContent":["import { w as head, x as attr } 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 let projectDisplayName = \"\";\n const projectName = decodeURIComponent(page.params.project ?? \"\");\n decodeURIComponent(page.params.id ?? \"\");\n const displayTitle = \"Untitled\";\n head(\"ik3mmh\", $$renderer2, ($$renderer3) => {\n $$renderer3.title(($$renderer4) => {\n $$renderer4.push(`<title>${escape_html(displayTitle)} - Claude Sessions</title>`);\n });\n });\n $$renderer2.push(`<div class=\"min-h-screen flex flex-col bg-gh-bg\"><header class=\"flex-shrink-0 border-b border-gh-border bg-gh-canvas\"><div class=\"flex items-center gap-4 p-4\"><a${attr(\"href\", `/#project=${encodeURIComponent(projectName)}`)} class=\"text-gh-muted hover:text-gh-fg flex-shrink-0\" title=\"Back to project\"><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 class=\"flex-1 min-w-0\"><h1 class=\"text-base font-semibold truncate\">${escape_html(displayTitle)}</h1> <p class=\"text-sm text-gh-muted truncate\">${escape_html(projectDisplayName)}</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,IAAI,kBAAkB,GAAG,EAAE;AAC/B,IAAI,MAAM,WAAW,GAAG,kBAAkB,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,IAAI,EAAE,CAAC;AACrE,IAAI,kBAAkB,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC;AAC5C,IAAI,MAAM,YAAY,GAAG,UAAU;AACnC,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,YAAY,CAAC,CAAC,0BAA0B,CAAC,CAAC;AACzF,MAAM,CAAC,CAAC;AACR,IAAI,CAAC,CAAC;AACN,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC,iKAAiK,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,UAAU,EAAE,kBAAkB,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,0VAA0V,EAAE,WAAW,CAAC,YAAY,CAAC,CAAC,gDAAgD,EAAE,WAAW,CAAC,kBAAkB,CAAC,CAAC,8DAA8D,CAAC,CAAC;AAC9vB,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,6 +1,6 @@
|
|
|
1
1
|
import { e as error, j as json } from './index-CoD1IJuy.js';
|
|
2
2
|
import { Effect } from 'effect';
|
|
3
|
-
import { l as loadAgentMessages } from './index2-
|
|
3
|
+
import { l as loadAgentMessages } from './index2-CWkjuG0Y.js';
|
|
4
4
|
import 'fs';
|
|
5
5
|
import 'os';
|
|
6
6
|
import 'path';
|
|
@@ -24,4 +24,4 @@ const GET = async ({ url }) => {
|
|
|
24
24
|
};
|
|
25
25
|
|
|
26
26
|
export { GET };
|
|
27
|
-
//# sourceMappingURL=_server.ts-
|
|
27
|
+
//# sourceMappingURL=_server.ts-6PvKvlXG.js.map
|