@claude-sessions/web 0.1.8 → 0.1.9
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/chunks/{D3aD1aET.js → BmgUV-OZ.js} +20 -20
- package/build/client/_app/immutable/chunks/BmgUV-OZ.js.br +0 -0
- package/build/client/_app/immutable/chunks/BmgUV-OZ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{EGDZltUG.js → DIdnLQ2J.js} +1 -1
- package/build/client/_app/immutable/chunks/DIdnLQ2J.js.br +0 -0
- package/build/client/_app/immutable/chunks/DIdnLQ2J.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{D0OcmONp.js → DVqJsTXH.js} +1 -1
- package/build/client/_app/immutable/chunks/DVqJsTXH.js.br +0 -0
- package/build/client/_app/immutable/chunks/DVqJsTXH.js.gz +0 -0
- package/build/client/_app/immutable/entry/{app.D80yg1NL.js → app.BrFSuCuw.js} +2 -2
- package/build/client/_app/immutable/entry/app.BrFSuCuw.js.br +0 -0
- package/build/client/_app/immutable/entry/app.BrFSuCuw.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.CoWVGtze.js +1 -0
- package/build/client/_app/immutable/entry/start.CoWVGtze.js.br +2 -0
- package/build/client/_app/immutable/entry/start.CoWVGtze.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{0.BApXFq1x.js → 0.CBmF4jwI.js} +1 -1
- package/build/client/_app/immutable/nodes/0.CBmF4jwI.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.CBmF4jwI.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{1.DPNizCjI.js → 1.Dy2lJ-WY.js} +1 -1
- package/build/client/_app/immutable/nodes/1.Dy2lJ-WY.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.Dy2lJ-WY.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{2.B8y2ftwS.js → 2.B3l3mhPg.js} +1 -1
- package/build/client/_app/immutable/nodes/2.B3l3mhPg.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.B3l3mhPg.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{3.D97nWX6e.js → 3.BGtShXcH.js} +1 -1
- package/build/client/_app/immutable/nodes/3.BGtShXcH.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.BGtShXcH.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-J36WYlN0.js → 0-CJnJjLuU.js} +2 -2
- package/build/server/chunks/{0-J36WYlN0.js.map → 0-CJnJjLuU.js.map} +1 -1
- package/build/server/chunks/{1-CZSaQ3Ep.js → 1-CRuXk6Te.js} +2 -2
- package/build/server/chunks/{1-CZSaQ3Ep.js.map → 1-CRuXk6Te.js.map} +1 -1
- package/build/server/chunks/{2-COXuwRCi.js → 2-S-DySAd8.js} +2 -2
- package/build/server/chunks/{2-COXuwRCi.js.map → 2-S-DySAd8.js.map} +1 -1
- package/build/server/chunks/{3-Ds63b9uE.js → 3-B4MAWY85.js} +2 -2
- package/build/server/chunks/{3-Ds63b9uE.js.map → 3-B4MAWY85.js.map} +1 -1
- package/build/server/chunks/{_server.ts-DI74Xl30.js → _server.ts-BCmGQeSo.js} +2 -2
- package/build/server/chunks/{_server.ts-DI74Xl30.js.map → _server.ts-BCmGQeSo.js.map} +1 -1
- package/build/server/chunks/{_server.ts-B1De5lZK.js → _server.ts-BcbZpFD0.js} +2 -2
- package/build/server/chunks/{_server.ts-B1De5lZK.js.map → _server.ts-BcbZpFD0.js.map} +1 -1
- package/build/server/chunks/{_server.ts-CDm0MAFM.js → _server.ts-Bh90MAYF.js} +2 -2
- package/build/server/chunks/{_server.ts-CDm0MAFM.js.map → _server.ts-Bh90MAYF.js.map} +1 -1
- package/build/server/chunks/{_server.ts-BZYlR_ao.js → _server.ts-Bxa6aZc2.js} +2 -2
- package/build/server/chunks/{_server.ts-BZYlR_ao.js.map → _server.ts-Bxa6aZc2.js.map} +1 -1
- package/build/server/chunks/{_server.ts-C3YWJ6IN.js → _server.ts-BxagrnO0.js} +2 -2
- package/build/server/chunks/{_server.ts-C3YWJ6IN.js.map → _server.ts-BxagrnO0.js.map} +1 -1
- package/build/server/chunks/{_server.ts--x-JQptT.js → _server.ts-BzmUdix3.js} +2 -2
- package/build/server/chunks/{_server.ts--x-JQptT.js.map → _server.ts-BzmUdix3.js.map} +1 -1
- package/build/server/chunks/{_server.ts-Cv3MZGwW.js → _server.ts-C-rL3Szt.js} +2 -2
- package/build/server/chunks/{_server.ts-Cv3MZGwW.js.map → _server.ts-C-rL3Szt.js.map} +1 -1
- package/build/server/chunks/{_server.ts-Bayc9-T3.js → _server.ts-CY9T4t0H.js} +2 -2
- package/build/server/chunks/{_server.ts-Bayc9-T3.js.map → _server.ts-CY9T4t0H.js.map} +1 -1
- package/build/server/chunks/{_server.ts-XiNhi5ky.js → _server.ts-CmUCnNll.js} +2 -2
- package/build/server/chunks/{_server.ts-XiNhi5ky.js.map → _server.ts-CmUCnNll.js.map} +1 -1
- package/build/server/chunks/{_server.ts-CArZFH97.js → _server.ts-DsueDvyv.js} +2 -2
- package/build/server/chunks/{_server.ts-CArZFH97.js.map → _server.ts-DsueDvyv.js.map} +1 -1
- package/build/server/chunks/{_server.ts-aC8xGyP7.js → _server.ts-HlacJ7sM.js} +2 -2
- package/build/server/chunks/{_server.ts-aC8xGyP7.js.map → _server.ts-HlacJ7sM.js.map} +1 -1
- package/build/server/chunks/{_server.ts-BZ0umQja.js → _server.ts-YwtnEMzH.js} +2 -2
- package/build/server/chunks/{_server.ts-BZ0umQja.js.map → _server.ts-YwtnEMzH.js.map} +1 -1
- package/build/server/chunks/{index2-DBAACJkS.js → index2-DY0iJkqO.js} +85 -40
- package/build/server/chunks/index2-DY0iJkqO.js.map +1 -0
- package/build/server/index.js +1 -1
- package/build/server/index.js.map +1 -1
- package/build/server/manifest.js +17 -17
- package/build/server/manifest.js.map +1 -1
- package/package.json +2 -2
- package/build/client/_app/immutable/chunks/D0OcmONp.js.br +0 -0
- package/build/client/_app/immutable/chunks/D0OcmONp.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D3aD1aET.js.br +0 -0
- package/build/client/_app/immutable/chunks/D3aD1aET.js.gz +0 -0
- package/build/client/_app/immutable/chunks/EGDZltUG.js.br +0 -0
- package/build/client/_app/immutable/chunks/EGDZltUG.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.D80yg1NL.js.br +0 -0
- package/build/client/_app/immutable/entry/app.D80yg1NL.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.CC5Ias1c.js +0 -1
- package/build/client/_app/immutable/entry/start.CC5Ias1c.js.br +0 -2
- package/build/client/_app/immutable/entry/start.CC5Ias1c.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.BApXFq1x.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.BApXFq1x.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.DPNizCjI.js.br +0 -2
- package/build/client/_app/immutable/nodes/1.DPNizCjI.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.B8y2ftwS.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.B8y2ftwS.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.D97nWX6e.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.D97nWX6e.js.gz +0 -0
- package/build/server/chunks/index2-DBAACJkS.js.map +0 -1
|
@@ -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/BxOe8SxU.js";import{h as me,m as he,u as _e,f as W,a as w,c as B,t as ve,s as ge}from"../chunks/CkjvdHcs.js";import{B as ye,i as D}from"../chunks/od4vEq6Z.js";import{p as I,b as V}from"../chunks/Dejy2au4.js";function F(t,e,r){K&&Q();var n=new ye(t);X(()=>{var c=e()??null;n.ensure(c,c&&(m=>r(m,c)))},Z)}function be(t){return class extends Ee{constructor(e){super({component:t,...e})}}}var y,f;class Ee{constructor(e){A(this,y);A(this,f);var m;var r=new Map,n=(a,s)=>{var i=re(s,!1,!1);return r.set(a,i),i};const c=new Proxy({...e.props||{},$$events:{}},{get(a,s){return g(r.get(s)??n(s,Reflect.get(a,s)))},has(a,s){return s===$?!0:(g(r.get(s)??n(s,Reflect.get(a,s))),Reflect.has(a,s))},set(a,s,i){return S(r.get(s)??n(s,i),i),Reflect.set(a,s,i)}});C(this,f,(e.hydrate?me:he)(e.component,{target:e.target,anchor:e.anchor,props:c,context:e.context,intro:e.intro??!1,recover:e.recover})),(!((m=e==null?void 0:e.props)!=null&&m.$$host)||e.sync===!1)&&ee(),C(this,y,c.$$events);for(const a of Object.keys(u(this,f)))a==="$set"||a==="$destroy"||a==="$on"||te(this,a,{get(){return u(this,f)[a]},set(s){u(this,f)[a]=s},enumerable:!0});u(this,f).$set=a=>{Object.assign(c,a)},u(this,f).$destroy=()=>{_e(u(this,f))}}$set(e){u(this,f).$set(e)}$on(e,r){u(this,y)[e]=u(this,y)[e]||[];const n=(...c)=>r.call(this,...c);return u(this,y)[e].push(n),()=>{u(this,y)[e]=u(this,y)[e].filter(c=>c!==n)}}$destroy(){u(this,f).$destroy()}}y=new WeakMap,f=new WeakMap;const Pe="modulepreload",Re=function(t,e){return new URL(t,e).href},N={},L=function(e,r,n){let c=Promise.resolve();if(r&&r.length>0){let a=function(l){return Promise.all(l.map(v=>Promise.resolve(v).then(b=>({status:"fulfilled",value:b}),b=>({status:"rejected",reason:b}))))};const s=document.getElementsByTagName("link"),i=document.querySelector("meta[property=csp-nonce]"),k=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));c=a(r.map(l=>{if(l=Re(l,n),l in N)return;N[l]=!0;const v=l.endsWith(".css"),b=v?'[rel="stylesheet"]':"";if(!!n)for(let o=s.length-1;o>=0;o--){const d=s[o];if(d.href===l&&(!v||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${b}`))return;const _=document.createElement("link");if(_.rel=v?"stylesheet":Pe,v||(_.as="script"),_.crossOrigin="",_.href=l,k&&_.setAttribute("nonce",k),document.head.appendChild(_),v)return new Promise((o,d)=>{_.addEventListener("load",o),_.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${l}`)))})}))}function m(a){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a}return c.then(a=>{for(const s of a||[])s.status==="rejected"&&m(s.reason);return e().catch(m)})},pe={};var we=W('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),ke=W("<!> <!>",1);function Oe(t,e){se(e,!0);let r=I(e,"components",23,()=>[]),n=I(e,"data_0",3,null),c=I(e,"data_1",3,null);ae(()=>e.stores.page.set(e.page)),ne(()=>{e.stores,e.page,e.constructors,r(),e.form,n(),c(),e.stores.page.notify()});let m=T(!1),a=T(!1),s=T(null);oe(()=>{const o=e.stores.page.subscribe(()=>{g(m)&&(S(a,!0),ce().then(()=>{S(s,document.title||"untitled page",!0)}))});return S(m,!0),o});const i=p(()=>e.constructors[1]);var k=ke(),l=j(k);{var v=o=>{const d=p(()=>e.constructors[0]);var E=B(),O=j(E);F(O,()=>g(d),(P,R)=>{V(R(P,{get data(){return n()},get form(){return e.form},get params(){return e.page.params},children:(h,je)=>{var U=B(),z=j(U);F(z,()=>g(i),(H,J)=>{V(J(H,{get data(){return c()},get form(){return e.form},get params(){return e.page.params}}),x=>r()[1]=x,()=>{var x;return(x=r())==null?void 0:x[1]})}),w(h,U)},$$slots:{default:!0}}),h=>r()[0]=h,()=>{var h;return(h=r())==null?void 0:h[0]})}),w(o,E)},b=o=>{const d=p(()=>e.constructors[0]);var E=B(),O=j(E);F(O,()=>g(d),(P,R)=>{V(R(P,{get data(){return n()},get form(){return e.form},get params(){return e.page.params}}),h=>r()[0]=h,()=>{var h;return(h=r())==null?void 0:h[0]})}),w(o,E)};D(l,o=>{e.constructors[1]?o(v):o(b,!1)})}var q=ie(l,2);{var _=o=>{var d=we(),E=ue(d);{var O=P=>{var R=ve();fe(()=>ge(R,g(s))),w(P,R)};D(E,P=>{g(a)&&P(O)})}de(d),w(o,d)};D(q,o=>{g(m)&&o(_)})}w(t,k),le()}const Be=be(Oe),De=[()=>L(()=>import("../nodes/0.
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.CBmF4jwI.js","../chunks/CkjvdHcs.js","../chunks/BxOe8SxU.js","../chunks/od4vEq6Z.js","../chunks/akEBbnuI.js","../chunks/E9IRgQhr.js","../chunks/DIdnLQ2J.js","../chunks/DVqJsTXH.js","../assets/0.Bn90K0hQ.css","../nodes/1.Dy2lJ-WY.js","../nodes/2.B3l3mhPg.js","../chunks/BmgUV-OZ.js","../chunks/Dejy2au4.js","../nodes/3.BGtShXcH.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var G=t=>{throw TypeError(t)};var M=(t,e,r)=>e.has(t)||G("Cannot "+r);var u=(t,e,r)=>(M(t,e,"read from private field"),r?r.call(t):e.get(t)),A=(t,e,r)=>e.has(t)?G("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),C=(t,e,r,n)=>(M(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r);import{k as K,E as Q,j as X,F as Z,e as S,a8 as $,g,at as ee,au as te,ae as re,p as se,L as ae,M as ne,o as oe,s as T,av as ce,f as j,c as ie,b as le,d as ue,r as de,u as p,t as fe}from"../chunks/BxOe8SxU.js";import{h as me,m as he,u as _e,f as W,a as w,c as B,t as ve,s as ge}from"../chunks/CkjvdHcs.js";import{B as ye,i as D}from"../chunks/od4vEq6Z.js";import{p as I,b as V}from"../chunks/Dejy2au4.js";function F(t,e,r){K&&Q();var n=new ye(t);X(()=>{var c=e()??null;n.ensure(c,c&&(m=>r(m,c)))},Z)}function be(t){return class extends Ee{constructor(e){super({component:t,...e})}}}var y,f;class Ee{constructor(e){A(this,y);A(this,f);var m;var r=new Map,n=(a,s)=>{var i=re(s,!1,!1);return r.set(a,i),i};const c=new Proxy({...e.props||{},$$events:{}},{get(a,s){return g(r.get(s)??n(s,Reflect.get(a,s)))},has(a,s){return s===$?!0:(g(r.get(s)??n(s,Reflect.get(a,s))),Reflect.has(a,s))},set(a,s,i){return S(r.get(s)??n(s,i),i),Reflect.set(a,s,i)}});C(this,f,(e.hydrate?me:he)(e.component,{target:e.target,anchor:e.anchor,props:c,context:e.context,intro:e.intro??!1,recover:e.recover})),(!((m=e==null?void 0:e.props)!=null&&m.$$host)||e.sync===!1)&&ee(),C(this,y,c.$$events);for(const a of Object.keys(u(this,f)))a==="$set"||a==="$destroy"||a==="$on"||te(this,a,{get(){return u(this,f)[a]},set(s){u(this,f)[a]=s},enumerable:!0});u(this,f).$set=a=>{Object.assign(c,a)},u(this,f).$destroy=()=>{_e(u(this,f))}}$set(e){u(this,f).$set(e)}$on(e,r){u(this,y)[e]=u(this,y)[e]||[];const n=(...c)=>r.call(this,...c);return u(this,y)[e].push(n),()=>{u(this,y)[e]=u(this,y)[e].filter(c=>c!==n)}}$destroy(){u(this,f).$destroy()}}y=new WeakMap,f=new WeakMap;const Pe="modulepreload",Re=function(t,e){return new URL(t,e).href},N={},L=function(e,r,n){let c=Promise.resolve();if(r&&r.length>0){let a=function(l){return Promise.all(l.map(v=>Promise.resolve(v).then(b=>({status:"fulfilled",value:b}),b=>({status:"rejected",reason:b}))))};const s=document.getElementsByTagName("link"),i=document.querySelector("meta[property=csp-nonce]"),k=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));c=a(r.map(l=>{if(l=Re(l,n),l in N)return;N[l]=!0;const v=l.endsWith(".css"),b=v?'[rel="stylesheet"]':"";if(!!n)for(let o=s.length-1;o>=0;o--){const d=s[o];if(d.href===l&&(!v||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${b}`))return;const _=document.createElement("link");if(_.rel=v?"stylesheet":Pe,v||(_.as="script"),_.crossOrigin="",_.href=l,k&&_.setAttribute("nonce",k),document.head.appendChild(_),v)return new Promise((o,d)=>{_.addEventListener("load",o),_.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${l}`)))})}))}function m(a){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a}return c.then(a=>{for(const s of a||[])s.status==="rejected"&&m(s.reason);return e().catch(m)})},pe={};var we=W('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),ke=W("<!> <!>",1);function Oe(t,e){se(e,!0);let r=I(e,"components",23,()=>[]),n=I(e,"data_0",3,null),c=I(e,"data_1",3,null);ae(()=>e.stores.page.set(e.page)),ne(()=>{e.stores,e.page,e.constructors,r(),e.form,n(),c(),e.stores.page.notify()});let m=T(!1),a=T(!1),s=T(null);oe(()=>{const o=e.stores.page.subscribe(()=>{g(m)&&(S(a,!0),ce().then(()=>{S(s,document.title||"untitled page",!0)}))});return S(m,!0),o});const i=p(()=>e.constructors[1]);var k=ke(),l=j(k);{var v=o=>{const d=p(()=>e.constructors[0]);var E=B(),O=j(E);F(O,()=>g(d),(P,R)=>{V(R(P,{get data(){return n()},get form(){return e.form},get params(){return e.page.params},children:(h,je)=>{var U=B(),z=j(U);F(z,()=>g(i),(H,J)=>{V(J(H,{get data(){return c()},get form(){return e.form},get params(){return e.page.params}}),x=>r()[1]=x,()=>{var x;return(x=r())==null?void 0:x[1]})}),w(h,U)},$$slots:{default:!0}}),h=>r()[0]=h,()=>{var h;return(h=r())==null?void 0:h[0]})}),w(o,E)},b=o=>{const d=p(()=>e.constructors[0]);var E=B(),O=j(E);F(O,()=>g(d),(P,R)=>{V(R(P,{get data(){return n()},get form(){return e.form},get params(){return e.page.params}}),h=>r()[0]=h,()=>{var h;return(h=r())==null?void 0:h[0]})}),w(o,E)};D(l,o=>{e.constructors[1]?o(v):o(b,!1)})}var q=ie(l,2);{var _=o=>{var d=we(),E=ue(d);{var O=P=>{var R=ve();fe(()=>ge(R,g(s))),w(P,R)};D(E,P=>{g(a)&&P(O)})}de(d),w(o,d)};D(q,o=>{g(m)&&o(_)})}w(t,k),le()}const Be=be(Oe),De=[()=>L(()=>import("../nodes/0.CBmF4jwI.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url),()=>L(()=>import("../nodes/1.Dy2lJ-WY.js"),__vite__mapDeps([9,1,2,7,6]),import.meta.url),()=>L(()=>import("../nodes/2.B3l3mhPg.js"),__vite__mapDeps([10,1,2,3,4,11,12]),import.meta.url),()=>L(()=>import("../nodes/3.BGtShXcH.js"),__vite__mapDeps([13,1,2,3,5,7,6,4,11,12]),import.meta.url)],Ie=[],Ve={"/":[2],"/session/[project]/[id]":[3]},Y={handleError:(({error:t})=>{console.error(t)}),reroute:(()=>{}),transport:{}},xe=Object.fromEntries(Object.entries(Y.transport).map(([t,e])=>[t,e.decode])),Fe=Object.fromEntries(Object.entries(Y.transport).map(([t,e])=>[t,e.encode])),qe=!1,Ue=(t,e)=>xe[t](e);export{Ue as decode,xe as decoders,Ve as dictionary,Fe as encoders,qe as hash,Y as hooks,pe as matchers,De as nodes,Be as root,Ie as server_loads};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{l as o,a as r}from"../chunks/DIdnLQ2J.js";export{o as load_css,r as start};
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as gt,f as x,e as Qe,a as i,s as h,c as xt,t as z}from"../chunks/CkjvdHcs.js";import{j as ft,F as bt,a9 as _t,k as mt,N as yt,U as wt,p as Ct,s as g,a as kt,o as $t,f as Z,d as s,c as r,t as m,b as St,e as n,g as e,u as H,T as jt,r as o,$ as Tt}from"../chunks/BxOe8SxU.js";import{B as It,i as u}from"../chunks/od4vEq6Z.js";import{c as Nt,p as Rt,f as Ae,h as Ot,i as de,j as Mt,k as Ee,n as Dt,o as At,q as Et}from"../chunks/akEBbnuI.js";import{h as zt}from"../chunks/E9IRgQhr.js";import{g as Wt}from"../chunks/EGDZltUG.js";import{p as qe}from"../chunks/D0OcmONp.js";function Pt(C,N,...W){var P=new It(C);ft(()=>{const R=N()??null;P.ensure(R,R&&(Q=>R(Q,...W)))},bt)}function we(C,N,W=N){_t(C,"change",P=>{var R=P?C.defaultChecked:C.checked;W(R)}),(mt&&C.defaultChecked!==C.checked||yt(N)==null)&&W(C.checked),wt(()=>{var P=N();C.checked=!!P})}const Ut=!0,ca=Object.freeze(Object.defineProperty({__proto__:null,ssr:Ut},Symbol.toStringTag,{value:"Module"}));var Bt=x('<span class="text-xs text-gh-text-secondary bg-gh-border px-2 py-0.5 rounded hidden sm:inline"> </span>'),Ft=x('<div class="absolute right-3 top-1/2 -translate-y-1/2"><svg class="animate-spin h-4 w-4 text-gh-text-secondary" viewBox="0 0 24 24"><circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4" fill="none"></circle><path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path></svg></div>'),Vt=x('<div class="px-4 py-3 text-sm text-gh-text-secondary">Searching...</div>'),Ht=x('<div class="px-4 py-3 text-sm text-gh-text-secondary">No results found</div>'),Qt=x('<div class="text-xs text-gh-text-secondary mt-1 line-clamp-2"> </div>'),qt=x('<button class="w-full text-left px-4 py-2 hover:bg-gh-border-subtle border-b border-gh-border last:border-b-0"><div class="flex items-center gap-2"><span> </span> <span class="text-xs text-gh-text-secondary truncate flex-shrink-0 max-w-[120px]"> </span> <span class="text-sm font-medium truncate"> </span></div> <!></button>'),Gt=x('<div class="px-4 py-2 text-xs text-gh-text-secondary border-t border-gh-border">Searching content...</div>'),Jt=x("<!> <!>",1),Kt=x('<div class="absolute top-full left-0 right-0 mt-1 bg-gh-bg-secondary border border-gh-border rounded-md shadow-lg max-h-80 overflow-y-auto z-50"><!></div>'),Lt=x(" <!>",1),Xt=x("<!> ",1),Yt=x("<!> ",1),Zt=x('<div class="fixed inset-0 bg-black/50 flex items-center justify-center z-50" role="dialog" aria-modal="true" aria-labelledby="cleanup-modal-title"><div class="bg-gh-bg-secondary border border-gh-border rounded-lg p-6 w-[400px] shadow-xl"><h2 id="cleanup-modal-title" class="text-lg font-semibold mb-4">Cleanup Options</h2> <div class="space-y-3"><label class="flex items-center gap-3 cursor-pointer"><input type="checkbox" class="w-4 h-4 rounded border-gh-border bg-gh-bg text-gh-green focus:ring-gh-green"/> <span class="flex-1">Delete empty sessions <span class="text-gh-text-secondary"> </span></span></label> <label><input type="checkbox" class="w-4 h-4 rounded border-gh-border bg-gh-bg text-gh-green focus:ring-gh-green disabled:opacity-50"/> <span class="flex-1">Skip sessions with todos <span class="text-gh-text-secondary"> </span></span></label> <label class="flex items-center gap-3 cursor-pointer"><input type="checkbox" class="w-4 h-4 rounded border-gh-border bg-gh-bg text-gh-green focus:ring-gh-green"/> <span class="flex-1">Delete orphan agents <span class="text-gh-text-secondary"> </span></span></label> <label class="flex items-center gap-3 cursor-pointer"><input type="checkbox" class="w-4 h-4 rounded border-gh-border bg-gh-bg text-gh-green focus:ring-gh-green"/> <span class="flex-1">Delete orphan todos <span class="text-gh-text-secondary"> </span></span></label></div> <div class="mt-4 pt-4 border-t border-gh-border text-sm text-gh-text-secondary"><!> <!> <!> <!></div> <div class="flex gap-2 mt-6 justify-end"><button class="px-4 py-2 text-sm rounded-md border border-gh-border hover:bg-gh-border-subtle">Cancel</button> <button class="px-4 py-2 text-sm rounded-md bg-gh-red text-white hover:bg-red-700 disabled:opacity-50"> </button></div></div></div>'),ea=x('<div class="fixed bottom-4 right-4 bg-gh-green text-white px-5 py-3 rounded-md text-sm z-50"><!> <!> <!> <!></div>'),ta=x('<div class="min-h-screen flex flex-col bg-gh-bg text-gh-text"><header class="bg-gh-bg-secondary border-b border-gh-border px-8 py-4 flex justify-between items-center"><div class="flex items-center gap-3"><a href="/" class="flex items-center gap-2 hover:text-gh-accent" title="Claude Sessions"><svg class="w-6 h-6 text-gh-accent" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"></path></svg> <span class="text-2xl font-semibold hidden sm:inline">Claude Sessions</span></a> <!></div> <div class="relative flex-1 max-w-md mx-8"><input type="text" placeholder="Search sessions..." class="w-full px-4 py-2 bg-gh-bg border border-gh-border rounded-md text-sm focus:outline-none focus:border-gh-accent"/> <!> <!></div> <div class="flex gap-2"><button class="bg-gh-border-subtle border border-gh-border text-gh-text px-4 py-2 rounded-md text-sm transition-colors hover:bg-gh-border hover:border-gh-text-secondary disabled:opacity-50 disabled:cursor-not-allowed"> </button> <button class="bg-gh-red border border-gh-red text-white px-4 py-2 rounded-md text-sm transition-colors hover:bg-red-700 disabled:opacity-50 disabled:cursor-not-allowed"> </button></div></header> <main><!></main></div> <!> <!>',1);function ia(C,N){Ct(N,!0);const W=H(()=>qe.url.pathname.startsWith("/session/")),P=t=>{let a=t.replace(/--/g,"\0").replace(/-/g,"/").replace(/\x00/g,"/.");const l=a.match(/^\/Users\/[^/]+\/(.+)$/);return l?`~/${l[1]}`:a},R=H(()=>{if(!e(W))return null;const t=qe.url.pathname.match(/^\/session\/([^/]+)\/([^/]+)/);return t?{projectName:decodeURIComponent(t[1]),sessionId:decodeURIComponent(t[2])}:null});let Q=g(""),q=g(!1),Ce=g(!1),ce=g(!1),O=g(null),k=g(null),ie=g(""),f=g(kt([])),ee=g(!1),ve=g(!1),G=g(!1),ke=null,T=g(!0),te=g(!0),M=g(!1),U=g(!1),$e=H(()=>{var t;return((t=e(O))==null?void 0:t.reduce((a,l)=>a+l.emptySessions.length,0))??0}),pe=H(()=>{var t;return((t=e(O))==null?void 0:t.reduce((a,l)=>a+l.emptyWithTodosCount,0))??0}),he=H(()=>{var t;return((t=e(O))==null?void 0:t.reduce((a,l)=>a+l.orphanAgentCount,0))??0}),ue=H(()=>{var t;return((t=e(O))==null?void 0:t.reduce((a,l)=>a+l.orphanTodoCount,0))??0}),ge=H(()=>e(te)?e($e)-e(pe):e($e));$t(async()=>{try{const t=await Ot();n(Q,t.version,!0)}catch{n(Q,"unknown")}});const Ge=async()=>{if(confirm("Shutdown the server?")){n(Ce,!0);try{await Nt()}catch{}}},Je=async()=>{try{n(O,await Rt(),!0),n(ce,!0)}catch(t){alert(`Error: ${t}`)}},ze=()=>{n(ce,!1),n(O,null)},Ke=async()=>{if(e(ge)===0&&!e(M)&&!e(U)){alert("Nothing to clean up");return}n(q,!0);try{n(k,await Dt({clearEmpty:e(T),clearInvalid:!1,skipWithTodos:e(te),clearOrphanAgents:e(M),clearOrphanTodos:e(U)}),!0),n(ce,!1),n(O,null),setTimeout(()=>{n(k,null),window.location.reload()},2e3)}catch(t){alert(`Error: ${t}`)}finally{n(q,!1)}},Le=t=>{const a=t.target.value;if(n(ie,a,!0),ke&&clearTimeout(ke),!a.trim()){n(f,[],!0),n(G,!1);return}ke=setTimeout(()=>Xe(a),300)},Se=t=>{const a=e(R);return a?[...t].sort((l,y)=>{const b=l.projectName===a.projectName&&l.sessionId===a.sessionId,v=y.projectName===a.projectName&&y.sessionId===a.sessionId;return b&&!v?-1:!b&&v?1:0}):t},Xe=async t=>{if(!t.trim())return;const a=e(R);n(ee,!0),n(G,!0);try{const l=await Ae(t,{searchContent:!1,project:a==null?void 0:a.projectName});n(f,Se(l),!0)}catch(l){console.error("Title search error:",l)}finally{n(ee,!1)}n(ve,!0);try{if(a){const v=await Ae(t,{searchContent:!0,project:a.projectName}),w=new Set(e(f).map($=>`${$.projectName}:${$.sessionId}`)),D=v.filter($=>!w.has(`${$.projectName}:${$.sessionId}`));n(f,Se([...e(f),...D]),!0)}const l=await Ae(t,{searchContent:!0}),y=new Set(e(f).map(v=>`${v.projectName}:${v.sessionId}`)),b=l.filter(v=>!y.has(`${v.projectName}:${v.sessionId}`));n(f,Se([...e(f),...b]),!0)}catch(l){console.error("Content search error:",l)}finally{n(ve,!1)}},Ye=t=>{n(ie,""),n(f,[],!0),n(G,!1),Wt(`/#project=${encodeURIComponent(t.projectName)}&session=${encodeURIComponent(t.sessionId)}`)},Ze=()=>{setTimeout(()=>{n(G,!1)},200)};var We=ta();zt("12qhfyh",t=>{jt(()=>{Tt.title="Claude Sessions"})});var je=Z(We),Te=s(je),Ie=s(Te),et=r(s(Ie),2);{var tt=t=>{var a=Bt(),l=s(a);o(a),m(()=>h(l,`v${e(Q)??""}`)),i(t,a)};u(et,t=>{e(Q)&&t(tt)})}o(Ie);var Ne=r(Ie,2),J=s(Ne);de(J),J.__input=Le;var Pe=r(J,2);{var at=t=>{var a=Ft();i(t,a)};u(Pe,t=>{(e(ee)||e(ve))&&t(at)})}var rt=r(Pe,2);{var st=t=>{var a=Kt(),l=s(a);{var y=v=>{var w=Vt();i(v,w)},b=v=>{var w=xt(),D=Z(w);{var $=c=>{var p=Ht();i(c,p)},A=c=>{var p=Jt(),re=Z(p);At(re,17,()=>e(f),Et,(I,_)=>{var B=qt();B.__click=()=>Ye(e(_));var K=s(B),L=s(K),be=s(L,!0);o(L);var F=r(L,2),_e=s(F,!0);o(F);var se=r(F,2),Me=s(se,!0);o(se),o(K);var oe=r(K,2);{var me=V=>{var X=Qt(),De=s(X,!0);o(X),m(()=>h(De,e(_).snippet)),i(V,X)};u(oe,V=>{e(_).snippet&&V(me)})}o(B),m(V=>{Ee(L,1,`text-xs px-1.5 py-0.5 rounded ${e(_).matchType==="title"?"bg-gh-green/20 text-gh-green":"bg-gh-accent/20 text-gh-accent"}`),h(be,e(_).matchType==="title"?"Title":"Content"),h(_e,V),h(Me,e(_).title)},[()=>P(e(_).projectName)]),i(I,B)});var fe=r(re,2);{var Oe=I=>{var _=Gt();i(I,_)};u(fe,I=>{e(ve)&&I(Oe)})}i(c,p)};u(D,c=>{e(f).length===0?c($):c(A,!1)},!0)}i(v,w)};u(l,v=>{e(f).length===0&&e(ee)?v(y):v(b,!1)})}o(a),i(t,a)};u(rt,t=>{e(G)&&(e(f).length>0||e(ee))&&t(st)})}o(Ne);var Ue=r(Ne,2),ae=s(Ue);ae.__click=Je;var ot=s(ae,!0);o(ae);var xe=r(ae,2);xe.__click=Ge;var nt=s(xe,!0);o(xe),o(Ue),o(Te);var Re=r(Te,2),lt=s(Re);Pt(lt,()=>N.children),o(Re),o(je);var Be=r(je,2);{var dt=t=>{var a=Zt();a.__click=d=>d.target===d.currentTarget&&ze();var l=s(a),y=r(s(l),2),b=s(y),v=s(b);de(v);var w=r(v,2),D=r(s(w)),$=s(D);o(D),o(w),o(b);var A=r(b,2);let c;var p=s(A);de(p);var re=r(p,2),fe=r(s(re)),Oe=s(fe);o(fe),o(re),o(A);var I=r(A,2),_=s(I);de(_);var B=r(_,2),K=r(s(B)),L=s(K);o(K),o(B),o(I);var be=r(I,2),F=s(be);de(F);var _e=r(F,2),se=r(s(_e)),Me=s(se);o(se),o(_e),o(be),o(y);var oe=r(y,2),me=s(oe);{var V=d=>{var j=Lt(),E=Z(j),ne=r(E);{var le=S=>{var Y=z();m(()=>h(Y,`(skipping ${e(pe)??""} with todos)`)),i(S,Y)};u(ne,S=>{e(te)&&e(pe)>0&&S(le)})}m(()=>h(E,`Will delete ${e(ge)??""} session${e(ge)!==1?"s":""} `)),i(d,j)};u(me,d=>{e(T)&&d(V)})}var X=r(me,2);{var De=d=>{var j=Xt(),E=Z(j);{var ne=S=>{var Y=z(",");i(S,Y)};u(E,S=>{e(T)&&S(ne)})}var le=r(E);m(()=>h(le,` ${e(he)??""} orphan agent${e(he)!==1?"s":""}`)),i(d,j)};u(X,d=>{e(M)&&e(he)>0&&d(De)})}var Fe=r(X,2);{var vt=d=>{var j=Yt(),E=Z(j);{var ne=S=>{var Y=z(",");i(S,Y)};u(E,S=>{(e(T)||e(M))&&S(ne)})}var le=r(E);m(()=>h(le,` ${e(ue)??""} orphan todo${e(ue)!==1?"s":""}`)),i(d,j)};u(Fe,d=>{e(U)&&e(ue)>0&&d(vt)})}var pt=r(Fe,2);{var ht=d=>{var j=z("Nothing selected");i(d,j)};u(pt,d=>{!e(T)&&!e(M)&&!e(U)&&d(ht)})}o(oe);var Ve=r(oe,2),He=s(Ve);He.__click=ze;var ye=r(He,2);ye.__click=Ke;var ut=s(ye,!0);o(ye),o(Ve),o(l),o(a),m(()=>{h($,`(${e($e)??""})`),c=Ee(A,1,"flex items-center gap-3 cursor-pointer ml-6",null,c,{"opacity-50":!e(T)}),p.disabled=!e(T),h(Oe,`(${e(pe)??""})`),h(L,`(${e(he)??""})`),h(Me,`(${e(ue)??""})`),ye.disabled=e(q)||e(ge)===0&&!e(M)&&!e(U),h(ut,e(q)?"Cleaning...":"Execute Cleanup")}),we(v,()=>e(T),d=>n(T,d)),we(p,()=>e(te),d=>n(te,d)),we(_,()=>e(M),d=>n(M,d)),we(F,()=>e(U),d=>n(U,d)),i(t,a)};u(Be,t=>{e(ce)&&e(O)&&t(dt)})}var ct=r(Be,2);{var it=t=>{var a=ea(),l=s(a);{var y=c=>{var p=z();m(()=>h(p,`Removed ${e(k).removedMessageCount??""} invalid messages.`)),i(c,p)};u(l,c=>{e(k).removedMessageCount>0&&c(y)})}var b=r(l,2);{var v=c=>{var p=z();m(()=>h(p,`Deleted ${e(k).deletedCount??""} empty sessions.`)),i(c,p)};u(b,c=>{e(k).deletedCount>0&&c(v)})}var w=r(b,2);{var D=c=>{var p=z();m(()=>h(p,`Deleted ${e(k).deletedOrphanAgentCount??""} orphan agents.`)),i(c,p)};u(w,c=>{e(k).deletedOrphanAgentCount>0&&c(D)})}var $=r(w,2);{var A=c=>{var p=z();m(()=>h(p,`Deleted ${e(k).deletedOrphanTodoCount??""} orphan todos.`)),i(c,p)};u($,c=>{e(k).deletedOrphanTodoCount>0&&c(A)})}o(a),i(t,a)};u(ct,t=>{e(k)&&t(it)})}m(()=>{Mt(J,e(ie)),ae.disabled=e(q),h(ot,e(q)?"Cleaning...":"Cleanup"),xe.disabled=e(Ce),h(nt,e(Ce)?"Shutting down...":"Shutdown"),Ee(Re,1,`flex-1 ${e(W)?"":"p-8 max-w-7xl mx-auto"} w-full overflow-y-auto`)}),Qe("focus",J,()=>e(ie)&&n(G,!0)),Qe("blur",J,Ze),i(C,We),St()}gt(["input","click"]);export{ia as component,ca as universal};
|
|
1
|
+
import{d as gt,f as x,e as Qe,a as i,s as h,c as xt,t as z}from"../chunks/CkjvdHcs.js";import{j as ft,F as bt,a9 as _t,k as mt,N as yt,U as wt,p as Ct,s as g,a as kt,o as $t,f as Z,d as s,c as r,t as m,b as St,e as n,g as e,u as H,T as jt,r as o,$ as Tt}from"../chunks/BxOe8SxU.js";import{B as It,i as u}from"../chunks/od4vEq6Z.js";import{c as Nt,p as Rt,f as Ae,h as Ot,i as de,j as Mt,k as Ee,n as Dt,o as At,q as Et}from"../chunks/akEBbnuI.js";import{h as zt}from"../chunks/E9IRgQhr.js";import{g as Wt}from"../chunks/DIdnLQ2J.js";import{p as qe}from"../chunks/DVqJsTXH.js";function Pt(C,N,...W){var P=new It(C);ft(()=>{const R=N()??null;P.ensure(R,R&&(Q=>R(Q,...W)))},bt)}function we(C,N,W=N){_t(C,"change",P=>{var R=P?C.defaultChecked:C.checked;W(R)}),(mt&&C.defaultChecked!==C.checked||yt(N)==null)&&W(C.checked),wt(()=>{var P=N();C.checked=!!P})}const Ut=!0,ca=Object.freeze(Object.defineProperty({__proto__:null,ssr:Ut},Symbol.toStringTag,{value:"Module"}));var Bt=x('<span class="text-xs text-gh-text-secondary bg-gh-border px-2 py-0.5 rounded hidden sm:inline"> </span>'),Ft=x('<div class="absolute right-3 top-1/2 -translate-y-1/2"><svg class="animate-spin h-4 w-4 text-gh-text-secondary" viewBox="0 0 24 24"><circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4" fill="none"></circle><path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path></svg></div>'),Vt=x('<div class="px-4 py-3 text-sm text-gh-text-secondary">Searching...</div>'),Ht=x('<div class="px-4 py-3 text-sm text-gh-text-secondary">No results found</div>'),Qt=x('<div class="text-xs text-gh-text-secondary mt-1 line-clamp-2"> </div>'),qt=x('<button class="w-full text-left px-4 py-2 hover:bg-gh-border-subtle border-b border-gh-border last:border-b-0"><div class="flex items-center gap-2"><span> </span> <span class="text-xs text-gh-text-secondary truncate flex-shrink-0 max-w-[120px]"> </span> <span class="text-sm font-medium truncate"> </span></div> <!></button>'),Gt=x('<div class="px-4 py-2 text-xs text-gh-text-secondary border-t border-gh-border">Searching content...</div>'),Jt=x("<!> <!>",1),Kt=x('<div class="absolute top-full left-0 right-0 mt-1 bg-gh-bg-secondary border border-gh-border rounded-md shadow-lg max-h-80 overflow-y-auto z-50"><!></div>'),Lt=x(" <!>",1),Xt=x("<!> ",1),Yt=x("<!> ",1),Zt=x('<div class="fixed inset-0 bg-black/50 flex items-center justify-center z-50" role="dialog" aria-modal="true" aria-labelledby="cleanup-modal-title"><div class="bg-gh-bg-secondary border border-gh-border rounded-lg p-6 w-[400px] shadow-xl"><h2 id="cleanup-modal-title" class="text-lg font-semibold mb-4">Cleanup Options</h2> <div class="space-y-3"><label class="flex items-center gap-3 cursor-pointer"><input type="checkbox" class="w-4 h-4 rounded border-gh-border bg-gh-bg text-gh-green focus:ring-gh-green"/> <span class="flex-1">Delete empty sessions <span class="text-gh-text-secondary"> </span></span></label> <label><input type="checkbox" class="w-4 h-4 rounded border-gh-border bg-gh-bg text-gh-green focus:ring-gh-green disabled:opacity-50"/> <span class="flex-1">Skip sessions with todos <span class="text-gh-text-secondary"> </span></span></label> <label class="flex items-center gap-3 cursor-pointer"><input type="checkbox" class="w-4 h-4 rounded border-gh-border bg-gh-bg text-gh-green focus:ring-gh-green"/> <span class="flex-1">Delete orphan agents <span class="text-gh-text-secondary"> </span></span></label> <label class="flex items-center gap-3 cursor-pointer"><input type="checkbox" class="w-4 h-4 rounded border-gh-border bg-gh-bg text-gh-green focus:ring-gh-green"/> <span class="flex-1">Delete orphan todos <span class="text-gh-text-secondary"> </span></span></label></div> <div class="mt-4 pt-4 border-t border-gh-border text-sm text-gh-text-secondary"><!> <!> <!> <!></div> <div class="flex gap-2 mt-6 justify-end"><button class="px-4 py-2 text-sm rounded-md border border-gh-border hover:bg-gh-border-subtle">Cancel</button> <button class="px-4 py-2 text-sm rounded-md bg-gh-red text-white hover:bg-red-700 disabled:opacity-50"> </button></div></div></div>'),ea=x('<div class="fixed bottom-4 right-4 bg-gh-green text-white px-5 py-3 rounded-md text-sm z-50"><!> <!> <!> <!></div>'),ta=x('<div class="min-h-screen flex flex-col bg-gh-bg text-gh-text"><header class="bg-gh-bg-secondary border-b border-gh-border px-8 py-4 flex justify-between items-center"><div class="flex items-center gap-3"><a href="/" class="flex items-center gap-2 hover:text-gh-accent" title="Claude Sessions"><svg class="w-6 h-6 text-gh-accent" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"></path></svg> <span class="text-2xl font-semibold hidden sm:inline">Claude Sessions</span></a> <!></div> <div class="relative flex-1 max-w-md mx-8"><input type="text" placeholder="Search sessions..." class="w-full px-4 py-2 bg-gh-bg border border-gh-border rounded-md text-sm focus:outline-none focus:border-gh-accent"/> <!> <!></div> <div class="flex gap-2"><button class="bg-gh-border-subtle border border-gh-border text-gh-text px-4 py-2 rounded-md text-sm transition-colors hover:bg-gh-border hover:border-gh-text-secondary disabled:opacity-50 disabled:cursor-not-allowed"> </button> <button class="bg-gh-red border border-gh-red text-white px-4 py-2 rounded-md text-sm transition-colors hover:bg-red-700 disabled:opacity-50 disabled:cursor-not-allowed"> </button></div></header> <main><!></main></div> <!> <!>',1);function ia(C,N){Ct(N,!0);const W=H(()=>qe.url.pathname.startsWith("/session/")),P=t=>{let a=t.replace(/--/g,"\0").replace(/-/g,"/").replace(/\x00/g,"/.");const l=a.match(/^\/Users\/[^/]+\/(.+)$/);return l?`~/${l[1]}`:a},R=H(()=>{if(!e(W))return null;const t=qe.url.pathname.match(/^\/session\/([^/]+)\/([^/]+)/);return t?{projectName:decodeURIComponent(t[1]),sessionId:decodeURIComponent(t[2])}:null});let Q=g(""),q=g(!1),Ce=g(!1),ce=g(!1),O=g(null),k=g(null),ie=g(""),f=g(kt([])),ee=g(!1),ve=g(!1),G=g(!1),ke=null,T=g(!0),te=g(!0),M=g(!1),U=g(!1),$e=H(()=>{var t;return((t=e(O))==null?void 0:t.reduce((a,l)=>a+l.emptySessions.length,0))??0}),pe=H(()=>{var t;return((t=e(O))==null?void 0:t.reduce((a,l)=>a+l.emptyWithTodosCount,0))??0}),he=H(()=>{var t;return((t=e(O))==null?void 0:t.reduce((a,l)=>a+l.orphanAgentCount,0))??0}),ue=H(()=>{var t;return((t=e(O))==null?void 0:t.reduce((a,l)=>a+l.orphanTodoCount,0))??0}),ge=H(()=>e(te)?e($e)-e(pe):e($e));$t(async()=>{try{const t=await Ot();n(Q,t.version,!0)}catch{n(Q,"unknown")}});const Ge=async()=>{if(confirm("Shutdown the server?")){n(Ce,!0);try{await Nt()}catch{}}},Je=async()=>{try{n(O,await Rt(),!0),n(ce,!0)}catch(t){alert(`Error: ${t}`)}},ze=()=>{n(ce,!1),n(O,null)},Ke=async()=>{if(e(ge)===0&&!e(M)&&!e(U)){alert("Nothing to clean up");return}n(q,!0);try{n(k,await Dt({clearEmpty:e(T),clearInvalid:!1,skipWithTodos:e(te),clearOrphanAgents:e(M),clearOrphanTodos:e(U)}),!0),n(ce,!1),n(O,null),setTimeout(()=>{n(k,null),window.location.reload()},2e3)}catch(t){alert(`Error: ${t}`)}finally{n(q,!1)}},Le=t=>{const a=t.target.value;if(n(ie,a,!0),ke&&clearTimeout(ke),!a.trim()){n(f,[],!0),n(G,!1);return}ke=setTimeout(()=>Xe(a),300)},Se=t=>{const a=e(R);return a?[...t].sort((l,y)=>{const b=l.projectName===a.projectName&&l.sessionId===a.sessionId,v=y.projectName===a.projectName&&y.sessionId===a.sessionId;return b&&!v?-1:!b&&v?1:0}):t},Xe=async t=>{if(!t.trim())return;const a=e(R);n(ee,!0),n(G,!0);try{const l=await Ae(t,{searchContent:!1,project:a==null?void 0:a.projectName});n(f,Se(l),!0)}catch(l){console.error("Title search error:",l)}finally{n(ee,!1)}n(ve,!0);try{if(a){const v=await Ae(t,{searchContent:!0,project:a.projectName}),w=new Set(e(f).map($=>`${$.projectName}:${$.sessionId}`)),D=v.filter($=>!w.has(`${$.projectName}:${$.sessionId}`));n(f,Se([...e(f),...D]),!0)}const l=await Ae(t,{searchContent:!0}),y=new Set(e(f).map(v=>`${v.projectName}:${v.sessionId}`)),b=l.filter(v=>!y.has(`${v.projectName}:${v.sessionId}`));n(f,Se([...e(f),...b]),!0)}catch(l){console.error("Content search error:",l)}finally{n(ve,!1)}},Ye=t=>{n(ie,""),n(f,[],!0),n(G,!1),Wt(`/#project=${encodeURIComponent(t.projectName)}&session=${encodeURIComponent(t.sessionId)}`)},Ze=()=>{setTimeout(()=>{n(G,!1)},200)};var We=ta();zt("12qhfyh",t=>{jt(()=>{Tt.title="Claude Sessions"})});var je=Z(We),Te=s(je),Ie=s(Te),et=r(s(Ie),2);{var tt=t=>{var a=Bt(),l=s(a);o(a),m(()=>h(l,`v${e(Q)??""}`)),i(t,a)};u(et,t=>{e(Q)&&t(tt)})}o(Ie);var Ne=r(Ie,2),J=s(Ne);de(J),J.__input=Le;var Pe=r(J,2);{var at=t=>{var a=Ft();i(t,a)};u(Pe,t=>{(e(ee)||e(ve))&&t(at)})}var rt=r(Pe,2);{var st=t=>{var a=Kt(),l=s(a);{var y=v=>{var w=Vt();i(v,w)},b=v=>{var w=xt(),D=Z(w);{var $=c=>{var p=Ht();i(c,p)},A=c=>{var p=Jt(),re=Z(p);At(re,17,()=>e(f),Et,(I,_)=>{var B=qt();B.__click=()=>Ye(e(_));var K=s(B),L=s(K),be=s(L,!0);o(L);var F=r(L,2),_e=s(F,!0);o(F);var se=r(F,2),Me=s(se,!0);o(se),o(K);var oe=r(K,2);{var me=V=>{var X=Qt(),De=s(X,!0);o(X),m(()=>h(De,e(_).snippet)),i(V,X)};u(oe,V=>{e(_).snippet&&V(me)})}o(B),m(V=>{Ee(L,1,`text-xs px-1.5 py-0.5 rounded ${e(_).matchType==="title"?"bg-gh-green/20 text-gh-green":"bg-gh-accent/20 text-gh-accent"}`),h(be,e(_).matchType==="title"?"Title":"Content"),h(_e,V),h(Me,e(_).title)},[()=>P(e(_).projectName)]),i(I,B)});var fe=r(re,2);{var Oe=I=>{var _=Gt();i(I,_)};u(fe,I=>{e(ve)&&I(Oe)})}i(c,p)};u(D,c=>{e(f).length===0?c($):c(A,!1)},!0)}i(v,w)};u(l,v=>{e(f).length===0&&e(ee)?v(y):v(b,!1)})}o(a),i(t,a)};u(rt,t=>{e(G)&&(e(f).length>0||e(ee))&&t(st)})}o(Ne);var Ue=r(Ne,2),ae=s(Ue);ae.__click=Je;var ot=s(ae,!0);o(ae);var xe=r(ae,2);xe.__click=Ge;var nt=s(xe,!0);o(xe),o(Ue),o(Te);var Re=r(Te,2),lt=s(Re);Pt(lt,()=>N.children),o(Re),o(je);var Be=r(je,2);{var dt=t=>{var a=Zt();a.__click=d=>d.target===d.currentTarget&&ze();var l=s(a),y=r(s(l),2),b=s(y),v=s(b);de(v);var w=r(v,2),D=r(s(w)),$=s(D);o(D),o(w),o(b);var A=r(b,2);let c;var p=s(A);de(p);var re=r(p,2),fe=r(s(re)),Oe=s(fe);o(fe),o(re),o(A);var I=r(A,2),_=s(I);de(_);var B=r(_,2),K=r(s(B)),L=s(K);o(K),o(B),o(I);var be=r(I,2),F=s(be);de(F);var _e=r(F,2),se=r(s(_e)),Me=s(se);o(se),o(_e),o(be),o(y);var oe=r(y,2),me=s(oe);{var V=d=>{var j=Lt(),E=Z(j),ne=r(E);{var le=S=>{var Y=z();m(()=>h(Y,`(skipping ${e(pe)??""} with todos)`)),i(S,Y)};u(ne,S=>{e(te)&&e(pe)>0&&S(le)})}m(()=>h(E,`Will delete ${e(ge)??""} session${e(ge)!==1?"s":""} `)),i(d,j)};u(me,d=>{e(T)&&d(V)})}var X=r(me,2);{var De=d=>{var j=Xt(),E=Z(j);{var ne=S=>{var Y=z(",");i(S,Y)};u(E,S=>{e(T)&&S(ne)})}var le=r(E);m(()=>h(le,` ${e(he)??""} orphan agent${e(he)!==1?"s":""}`)),i(d,j)};u(X,d=>{e(M)&&e(he)>0&&d(De)})}var Fe=r(X,2);{var vt=d=>{var j=Yt(),E=Z(j);{var ne=S=>{var Y=z(",");i(S,Y)};u(E,S=>{(e(T)||e(M))&&S(ne)})}var le=r(E);m(()=>h(le,` ${e(ue)??""} orphan todo${e(ue)!==1?"s":""}`)),i(d,j)};u(Fe,d=>{e(U)&&e(ue)>0&&d(vt)})}var pt=r(Fe,2);{var ht=d=>{var j=z("Nothing selected");i(d,j)};u(pt,d=>{!e(T)&&!e(M)&&!e(U)&&d(ht)})}o(oe);var Ve=r(oe,2),He=s(Ve);He.__click=ze;var ye=r(He,2);ye.__click=Ke;var ut=s(ye,!0);o(ye),o(Ve),o(l),o(a),m(()=>{h($,`(${e($e)??""})`),c=Ee(A,1,"flex items-center gap-3 cursor-pointer ml-6",null,c,{"opacity-50":!e(T)}),p.disabled=!e(T),h(Oe,`(${e(pe)??""})`),h(L,`(${e(he)??""})`),h(Me,`(${e(ue)??""})`),ye.disabled=e(q)||e(ge)===0&&!e(M)&&!e(U),h(ut,e(q)?"Cleaning...":"Execute Cleanup")}),we(v,()=>e(T),d=>n(T,d)),we(p,()=>e(te),d=>n(te,d)),we(_,()=>e(M),d=>n(M,d)),we(F,()=>e(U),d=>n(U,d)),i(t,a)};u(Be,t=>{e(ce)&&e(O)&&t(dt)})}var ct=r(Be,2);{var it=t=>{var a=ea(),l=s(a);{var y=c=>{var p=z();m(()=>h(p,`Removed ${e(k).removedMessageCount??""} invalid messages.`)),i(c,p)};u(l,c=>{e(k).removedMessageCount>0&&c(y)})}var b=r(l,2);{var v=c=>{var p=z();m(()=>h(p,`Deleted ${e(k).deletedCount??""} empty sessions.`)),i(c,p)};u(b,c=>{e(k).deletedCount>0&&c(v)})}var w=r(b,2);{var D=c=>{var p=z();m(()=>h(p,`Deleted ${e(k).deletedOrphanAgentCount??""} orphan agents.`)),i(c,p)};u(w,c=>{e(k).deletedOrphanAgentCount>0&&c(D)})}var $=r(w,2);{var A=c=>{var p=z();m(()=>h(p,`Deleted ${e(k).deletedOrphanTodoCount??""} orphan todos.`)),i(c,p)};u($,c=>{e(k).deletedOrphanTodoCount>0&&c(A)})}o(a),i(t,a)};u(ct,t=>{e(k)&&t(it)})}m(()=>{Mt(J,e(ie)),ae.disabled=e(q),h(ot,e(q)?"Cleaning...":"Cleanup"),xe.disabled=e(Ce),h(nt,e(Ce)?"Shutting down...":"Shutdown"),Ee(Re,1,`flex-1 ${e(W)?"":"p-8 max-w-7xl mx-auto"} w-full overflow-y-auto`)}),Qe("focus",J,()=>e(ie)&&n(G,!0)),Qe("blur",J,Ze),i(C,We),St()}gt(["input","click"]);export{ia as component,ca as universal};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as v,a as b,s as c}from"../chunks/CkjvdHcs.js";import{K as x,L as k,M as i,N as y,O as u,P as E,g as h,Q as K,R as L,S as M,p as N,f as O,t as P,b as Q,c as R,d as m,r as _}from"../chunks/BxOe8SxU.js";import{p as g}from"../chunks/
|
|
1
|
+
import{f as v,a as b,s as c}from"../chunks/CkjvdHcs.js";import{K as x,L as k,M as i,N as y,O as u,P as E,g as h,Q as K,R as L,S as M,p as N,f as O,t as P,b as Q,c as R,d as m,r as _}from"../chunks/BxOe8SxU.js";import{p as g}from"../chunks/DVqJsTXH.js";function S(r=!1){const t=x,e=t.l.u;if(!e)return;let a=()=>K(t.s);if(r){let o=0,s={};const l=L(()=>{let n=!1;const p=t.s;for(const f in p)p[f]!==s[f]&&(s[f]=p[f],n=!0);return n&&o++,o});a=()=>h(l)}e.b.length&&k(()=>{d(t,a),u(e.b)}),i(()=>{const o=y(()=>e.m.map(E));return()=>{for(const s of o)typeof s=="function"&&s()}}),e.a.length&&i(()=>{d(t,a),u(e.a)})}function d(r,t){if(r.l.s)for(const e of r.l.s)h(e);t()}M();var j=v("<h1> </h1> <p> </p>",1);function A(r,t){N(t,!1),S();var e=j(),a=O(e),o=m(a,!0);_(a);var s=R(a,2),l=m(s,!0);_(s),P(()=>{var n;c(o,g.status),c(l,(n=g.error)==null?void 0:n.message)}),b(r,e),Q()}export{A as component};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{f as T,a as _,s as Y}from"../chunks/CkjvdHcs.js";import{p as Z,s as f,a as v,o as ee,f as te,b as se,c as P,d as $,g as e,r as E,e as n,t as ne}from"../chunks/BxOe8SxU.js";import{i as A}from"../chunks/od4vEq6Z.js";import{l as ae,m as re,a as R,d as ie,r as oe,g as ce,s as le,u as de,b as ue,e as pe}from"../chunks/akEBbnuI.js";import{P as fe,M as ge}from"../chunks/
|
|
1
|
+
import{f as T,a as _,s as Y}from"../chunks/CkjvdHcs.js";import{p as Z,s as f,a as v,o as ee,f as te,b as se,c as P,d as $,g as e,r as E,e as n,t as ne}from"../chunks/BxOe8SxU.js";import{i as A}from"../chunks/od4vEq6Z.js";import{l as ae,m as re,a as R,d as ie,r as oe,g as ce,s as le,u as de,b as ue,e as pe}from"../chunks/akEBbnuI.js";import{P as fe,M as ge}from"../chunks/BmgUV-OZ.js";var me=T('<div class="fixed bottom-4 right-4 bg-gh-accent text-white px-4 py-2 rounded">Loading...</div>'),he=T('<div class="fixed bottom-4 right-4 bg-gh-red text-white px-4 py-2 rounded"> </div>'),we=T('<div class="grid grid-cols-[350px_1fr] gap-4 h-[calc(100vh-120px)]"><!> <!></div> <!> <!>',1);function xe(F,H){Z(H,!0);let m=f(v([])),o=f(v(new Map)),j=f(v(new Map)),u=f(v(new Set)),c=f(null),d=f(v([])),p=f(!1),y=f(null),l=f(null);const k=()=>{const t=window.location.hash.slice(1),s=new URLSearchParams(t);return{project:s.get("project")??void 0,session:s.get("session")??void 0}},w=(t,s)=>{const a=new URLSearchParams;t&&a.set("project",t),s&&a.set("session",s);const i=a.toString();window.history.replaceState(null,"",i?`#${i}`:window.location.pathname)},U=async()=>{n(p,!0),n(l,null);try{n(m,await ae(),!0)}catch(t){n(l,String(t),!0)}finally{n(p,!1)}},C=async t=>{if(!e(o).has(t)){n(y,t,!0);try{const s=await pe(t),a=[],i=new Map;for(const r of s)a.push({id:r.id,projectName:t,title:r.title,messageCount:r.messageCount,createdAt:r.createdAt,updatedAt:r.updatedAt}),i.set(r.id,r);e(o).set(t,a),n(o,new Map(e(o)),!0),e(j).set(t,i),n(j,new Map(e(j)),!0)}catch(s){n(l,String(s),!0)}finally{n(y,null)}}},M=async()=>{const{project:t,session:s}=k();if(t&&(await C(t),e(u).add(t),n(u,new Set(e(u)),!0),s)){const a=e(o).get(t),i=a==null?void 0:a.find(r=>r.id===s);i&&await D(i,!1)}},q=async t=>{var s,a;e(u).has(t)?(e(u).delete(t),n(u,new Set(e(u)),!0),((s=e(c))==null?void 0:s.projectName)===t&&w()):(await C(t),e(u).add(t),n(u,new Set(e(u)),!0),w(t,((a=e(c))==null?void 0:a.projectName)===t?e(c).id:void 0))},D=async(t,s=!0)=>{n(c,t,!0),n(p,!0),n(l,null);try{n(d,await ce(t.projectName,t.id),!0),s&&w(t.projectName,t.id)}catch(a){n(l,String(a),!0)}finally{n(p,!1)}},z=async(t,s)=>{var a;if(t.stopPropagation(),!!confirm(`Delete session "${s.title}"?`))try{await ie(s.projectName,s.id);const i=e(o).get(s.projectName);i&&(e(o).set(s.projectName,i.filter(r=>r.id!==s.id)),n(o,new Map(e(o)),!0)),((a=e(c))==null?void 0:a.id)===s.id&&(n(c,null),n(d,[],!0),w(s.projectName))}catch(i){n(l,String(i),!0)}},B=async(t,s)=>{t.stopPropagation();const a=prompt("Enter new title:",s.title);if(a)try{await oe(s.projectName,s.id,a),s.title=a,n(o,new Map(e(o)),!0)}catch(i){n(l,String(i),!0)}},G=async t=>{if(!e(c)||!confirm("Delete this message?"))return;const s=t.uuid||t.messageId;if(s)try{await ue(e(c).projectName,e(c).id,s),n(d,e(d).filter(r=>(r.uuid||r.messageId)!==s),!0);const a=e(o).get(e(c).projectName),i=a==null?void 0:a.find(r=>r.id===e(c).id);i&&(i.messageCount=e(d).length,n(o,new Map(e(o)),!0))}catch(a){n(l,String(a),!0)}},J=async t=>{if(!e(c))return;const s=t.customTitle??"",a=prompt("Enter new custom title:",s);if(!(a===null||a===s))try{await de(e(c).projectName,e(c).id,t.uuid,a),t.customTitle=a,n(d,[...e(d)],!0)}catch(i){n(l,String(i),!0)}},K=async t=>{if(!e(c))return;const s=e(d).findIndex(r=>r.uuid===t.uuid),a=s,i=e(d).length-s;if(confirm(`Split session at this message?
|
|
2
2
|
|
|
3
3
|
This session will keep ${a} messages.
|
|
4
4
|
New session will have ${i} messages.`))try{n(p,!0);const r=await le(e(c).projectName,e(c).id,t.uuid);if(r.success&&r.newSessionId){const N=await R(e(c).projectName);e(o).set(e(c).projectName,N),n(o,new Map(e(o)),!0),n(d,e(d).slice(0,s),!0);const h=e(o).get(e(c).projectName),S=h==null?void 0:h.find(g=>g.id===e(c).id);S&&(S.messageCount=e(d).length,n(o,new Map(e(o)),!0)),alert(`Session split successfully!
|
|
Binary file
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{f as I,a as p,s as y,c as K}from"../chunks/CkjvdHcs.js";import{p as P,s as h,a as Q,o as V,t as N,b as W,h as X,c as b,d as l,g as e,$ as Y,r as d,u as D,e as a,f as Z}from"../chunks/BxOe8SxU.js";import{i as $}from"../chunks/od4vEq6Z.js";import{h as ee}from"../chunks/E9IRgQhr.js";import{p as E}from"../chunks/
|
|
1
|
+
import{f as I,a as p,s as y,c as K}from"../chunks/CkjvdHcs.js";import{p as P,s as h,a as Q,o as V,t as N,b as W,h as X,c as b,d as l,g as e,$ as Y,r as d,u as D,e as a,f as Z}from"../chunks/BxOe8SxU.js";import{i as $}from"../chunks/od4vEq6Z.js";import{h as ee}from"../chunks/E9IRgQhr.js";import{p as E}from"../chunks/DVqJsTXH.js";import{a as se,g as te,s as ae,u as ie,b as re}from"../chunks/akEBbnuI.js";import{M as oe}from"../chunks/BmgUV-OZ.js";var ne=I('<div class="flex items-center justify-center h-full"><div class="text-gh-muted">Loading...</div></div>'),le=I('<div class="flex items-center justify-center h-full"><div class="text-gh-red"> </div></div>'),de=I('<div class="min-h-screen flex flex-col bg-gh-bg"><header class="flex-shrink-0 p-4 border-b border-gh-border bg-gh-canvas"><div class="flex items-center gap-4"><a href="/" class="text-gh-muted hover:text-gh-fg" title="Back to home"><svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 19l-7-7m0 0l7-7m-7 7h18"></path></svg></a> <div><h1 class="text-lg font-semibold text-gh-fg"> </h1> <p class="text-sm text-gh-muted"> </p></div></div></header> <div class="flex-1 overflow-y-auto"><!></div></div>');function he(L,B){P(B,!0);let i=h(null),o=h(Q([])),m=h(!0),c=h(null);const v=D(()=>decodeURIComponent(E.params.project)),g=D(()=>decodeURIComponent(E.params.id)),R=async()=>{a(m,!0),a(c,null);try{const s=await se(e(v));a(i,s.find(t=>t.id===e(g))??{id:e(g),projectName:e(v),title:e(g),messageCount:0,updatedAt:new Date().toISOString()},!0),a(o,await te(e(v),e(g)),!0)}catch(s){a(c,String(s),!0)}finally{a(m,!1)}},U=async s=>{if(!e(i)||!confirm("Delete this message?"))return;const t=s.uuid||s.messageId;if(t)try{await re(e(i).projectName,e(i).id,t),a(o,e(o).filter(r=>(r.uuid||r.messageId)!==t),!0)}catch(r){a(c,String(r),!0)}},A=async s=>{if(!e(i))return;const t=s.customTitle??"",r=prompt("Enter new custom title:",t);if(!(r===null||r===t))try{await ie(e(i).projectName,e(i).id,s.uuid,r),s.customTitle=r,a(o,[...e(o)],!0)}catch(f){a(c,String(f),!0)}},F=async s=>{if(!e(i))return;const t=e(o).findIndex(n=>n.uuid===s.uuid),r=t,f=e(o).length-t;if(confirm(`Split session at this message?
|
|
2
2
|
|
|
3
3
|
This session will keep ${r} messages.
|
|
4
4
|
New session will have ${f} messages.`))try{a(m,!0);const n=await ae(e(i).projectName,e(i).id,s.uuid);n.success&&n.newSessionId?(a(o,e(o).slice(0,t),!0),alert(`Session split successfully!
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"
|
|
1
|
+
{"version":"1766116699231"}
|
|
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-BnXBRxbo.js')).default;
|
|
11
11
|
const universal_id = "src/routes/+layout.ts";
|
|
12
|
-
const imports = ["_app/immutable/nodes/0.
|
|
12
|
+
const imports = ["_app/immutable/nodes/0.CBmF4jwI.js","_app/immutable/chunks/CkjvdHcs.js","_app/immutable/chunks/BxOe8SxU.js","_app/immutable/chunks/od4vEq6Z.js","_app/immutable/chunks/akEBbnuI.js","_app/immutable/chunks/E9IRgQhr.js","_app/immutable/chunks/DIdnLQ2J.js","_app/immutable/chunks/DVqJsTXH.js"];
|
|
13
13
|
const stylesheets = ["_app/immutable/assets/0.Bn90K0hQ.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-CJnJjLuU.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"0-
|
|
1
|
+
{"version":3,"file":"0-CJnJjLuU.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.CBmF4jwI.js\",\"_app/immutable/chunks/CkjvdHcs.js\",\"_app/immutable/chunks/BxOe8SxU.js\",\"_app/immutable/chunks/od4vEq6Z.js\",\"_app/immutable/chunks/akEBbnuI.js\",\"_app/immutable/chunks/E9IRgQhr.js\",\"_app/immutable/chunks/DIdnLQ2J.js\",\"_app/immutable/chunks/DVqJsTXH.js\"];\nexport const stylesheets = [\"_app/immutable/assets/0.Bn90K0hQ.css\"];\nexport const fonts = [];\n"],"names":[],"mappings":"AAAA,MAAM,GAAG,GAAG,IAAI;;;;;;;ACEJ,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,8BAAoC,CAAC,EAAE;AAElG,MAAC,YAAY,GAAG;AAChB,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AAC5S,MAAC,WAAW,GAAG,CAAC,sCAAsC;AACtD,MAAC,KAAK,GAAG;;;;"}
|
|
@@ -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.Dy2lJ-WY.js","_app/immutable/chunks/CkjvdHcs.js","_app/immutable/chunks/BxOe8SxU.js","_app/immutable/chunks/DVqJsTXH.js","_app/immutable/chunks/DIdnLQ2J.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-CRuXk6Te.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"1-
|
|
1
|
+
{"version":3,"file":"1-CRuXk6Te.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.Dy2lJ-WY.js\",\"_app/immutable/chunks/CkjvdHcs.js\",\"_app/immutable/chunks/BxOe8SxU.js\",\"_app/immutable/chunks/DVqJsTXH.js\",\"_app/immutable/chunks/DIdnLQ2J.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
3
|
const component = async () => component_cache ??= (await import('./_page.svelte-BlgbAbC7.js')).default;
|
|
4
|
-
const imports = ["_app/immutable/nodes/2.
|
|
4
|
+
const imports = ["_app/immutable/nodes/2.B3l3mhPg.js","_app/immutable/chunks/CkjvdHcs.js","_app/immutable/chunks/BxOe8SxU.js","_app/immutable/chunks/od4vEq6Z.js","_app/immutable/chunks/akEBbnuI.js","_app/immutable/chunks/BmgUV-OZ.js","_app/immutable/chunks/Dejy2au4.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-S-DySAd8.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"2-
|
|
1
|
+
{"version":3,"file":"2-S-DySAd8.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.B3l3mhPg.js\",\"_app/immutable/chunks/CkjvdHcs.js\",\"_app/immutable/chunks/BxOe8SxU.js\",\"_app/immutable/chunks/od4vEq6Z.js\",\"_app/immutable/chunks/akEBbnuI.js\",\"_app/immutable/chunks/BmgUV-OZ.js\",\"_app/immutable/chunks/Dejy2au4.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAAkC,CAAC,EAAE;AAChG,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AACxQ,MAAC,WAAW,GAAG;AACf,MAAC,KAAK,GAAG;;;;"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
const index = 3;
|
|
2
2
|
let component_cache;
|
|
3
3
|
const component = async () => component_cache ??= (await import('./_page.svelte-BWLtdblA.js')).default;
|
|
4
|
-
const imports = ["_app/immutable/nodes/3.
|
|
4
|
+
const imports = ["_app/immutable/nodes/3.BGtShXcH.js","_app/immutable/chunks/CkjvdHcs.js","_app/immutable/chunks/BxOe8SxU.js","_app/immutable/chunks/od4vEq6Z.js","_app/immutable/chunks/E9IRgQhr.js","_app/immutable/chunks/DVqJsTXH.js","_app/immutable/chunks/DIdnLQ2J.js","_app/immutable/chunks/akEBbnuI.js","_app/immutable/chunks/BmgUV-OZ.js","_app/immutable/chunks/Dejy2au4.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-B4MAWY85.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"3-
|
|
1
|
+
{"version":3,"file":"3-B4MAWY85.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.BGtShXcH.js\",\"_app/immutable/chunks/CkjvdHcs.js\",\"_app/immutable/chunks/BxOe8SxU.js\",\"_app/immutable/chunks/od4vEq6Z.js\",\"_app/immutable/chunks/E9IRgQhr.js\",\"_app/immutable/chunks/DVqJsTXH.js\",\"_app/immutable/chunks/DIdnLQ2J.js\",\"_app/immutable/chunks/akEBbnuI.js\",\"_app/immutable/chunks/BmgUV-OZ.js\",\"_app/immutable/chunks/Dejy2au4.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAAyD,CAAC,EAAE;AACvH,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AACpX,MAAC,WAAW,GAAG;AACf,MAAC,KAAK,GAAG;;;;"}
|
|
@@ -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 { s as searchSessions } from './index2-
|
|
3
|
+
import { s as searchSessions } from './index2-DY0iJkqO.js';
|
|
4
4
|
import 'fs';
|
|
5
5
|
import 'os';
|
|
6
6
|
import 'path';
|
|
@@ -20,4 +20,4 @@ const GET = async ({ url }) => {
|
|
|
20
20
|
};
|
|
21
21
|
|
|
22
22
|
export { GET };
|
|
23
|
-
//# sourceMappingURL=_server.ts-
|
|
23
|
+
//# sourceMappingURL=_server.ts-BCmGQeSo.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_server.ts-
|
|
1
|
+
{"version":3,"file":"_server.ts-BCmGQeSo.js","sources":["../../../.svelte-kit/adapter-node/entries/endpoints/api/search/_server.ts.js"],"sourcesContent":["import { error, json } from \"@sveltejs/kit\";\nimport { Effect } from \"effect\";\nimport { s as searchSessions } from \"../../../../chunks/index2.js\";\nconst GET = async ({ url }) => {\n const query = url.searchParams.get(\"q\");\n if (!query) {\n throw error(400, \"q parameter required\");\n }\n const projectName = url.searchParams.get(\"project\") ?? void 0;\n const searchContent = url.searchParams.get(\"content\") === \"true\";\n const results = await Effect.runPromise(\n searchSessions(query, { projectName, searchContent })\n );\n return json(results);\n};\nexport {\n GET\n};\n"],"names":[],"mappings":";;;;;;;;AAGK,MAAC,GAAG,GAAG,OAAO,EAAE,GAAG,EAAE,KAAK;AAC/B,EAAE,MAAM,KAAK,GAAG,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,GAAG,CAAC;AACzC,EAAE,IAAI,CAAC,KAAK,EAAE;AACd,IAAI,MAAM,KAAK,CAAC,GAAG,EAAE,sBAAsB,CAAC;AAC5C,EAAE;AACF,EAAE,MAAM,WAAW,GAAG,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,MAAM;AAC/D,EAAE,MAAM,aAAa,GAAG,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,SAAS,CAAC,KAAK,MAAM;AAClE,EAAE,MAAM,OAAO,GAAG,MAAM,MAAM,CAAC,UAAU;AACzC,IAAI,cAAc,CAAC,KAAK,EAAE,EAAE,WAAW,EAAE,aAAa,EAAE;AACxD,GAAG;AACH,EAAE,OAAO,IAAI,CAAC,OAAO,CAAC;AACtB;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as json } from './index-CoD1IJuy.js';
|
|
2
2
|
import { Effect } from 'effect';
|
|
3
|
-
import { l as listProjects } from './index2-
|
|
3
|
+
import { l as listProjects } from './index2-DY0iJkqO.js';
|
|
4
4
|
import 'fs';
|
|
5
5
|
import 'os';
|
|
6
6
|
import 'path';
|
|
@@ -12,4 +12,4 @@ const GET = async () => {
|
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
export { GET };
|
|
15
|
-
//# sourceMappingURL=_server.ts-
|
|
15
|
+
//# sourceMappingURL=_server.ts-BcbZpFD0.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_server.ts-
|
|
1
|
+
{"version":3,"file":"_server.ts-BcbZpFD0.js","sources":["../../../.svelte-kit/adapter-node/entries/endpoints/api/projects/_server.ts.js"],"sourcesContent":["import { json } from \"@sveltejs/kit\";\nimport { Effect } from \"effect\";\nimport { l as listProjects } from \"../../../../chunks/index2.js\";\nconst GET = async () => {\n const projects = await Effect.runPromise(listProjects);\n return json(projects);\n};\nexport {\n GET\n};\n"],"names":[],"mappings":";;;;;;;;AAGK,MAAC,GAAG,GAAG,YAAY;AACxB,EAAE,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,YAAY,CAAC;AACxD,EAAE,OAAO,IAAI,CAAC,QAAQ,CAAC;AACvB;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as json } from './index-CoD1IJuy.js';
|
|
2
2
|
import { Effect } from 'effect';
|
|
3
|
-
import { m as moveSession } from './index2-
|
|
3
|
+
import { m as moveSession } from './index2-DY0iJkqO.js';
|
|
4
4
|
import 'fs';
|
|
5
5
|
import 'os';
|
|
6
6
|
import 'path';
|
|
@@ -24,4 +24,4 @@ const POST = async ({ request }) => {
|
|
|
24
24
|
};
|
|
25
25
|
|
|
26
26
|
export { POST };
|
|
27
|
-
//# sourceMappingURL=_server.ts-
|
|
27
|
+
//# sourceMappingURL=_server.ts-Bh90MAYF.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_server.ts-
|
|
1
|
+
{"version":3,"file":"_server.ts-Bh90MAYF.js","sources":["../../../.svelte-kit/adapter-node/entries/endpoints/api/session/move/_server.ts.js"],"sourcesContent":["import { json } from \"@sveltejs/kit\";\nimport { Effect } from \"effect\";\nimport { m as moveSession } from \"../../../../../chunks/index2.js\";\nconst POST = async ({ request }) => {\n const body = await request.json();\n if (!body.sourceProject || !body.sessionId || !body.targetProject) {\n return json({ success: false, error: \"Missing required parameters\" }, { status: 400 });\n }\n if (body.sourceProject === body.targetProject) {\n return json(\n { success: false, error: \"Source and target projects are the same\" },\n { status: 400 }\n );\n }\n const result = await Effect.runPromise(\n moveSession(body.sourceProject, body.sessionId, body.targetProject)\n );\n return json(result);\n};\nexport {\n POST\n};\n"],"names":[],"mappings":";;;;;;;;AAGK,MAAC,IAAI,GAAG,OAAO,EAAE,OAAO,EAAE,KAAK;AACpC,EAAE,MAAM,IAAI,GAAG,MAAM,OAAO,CAAC,IAAI,EAAE;AACnC,EAAE,IAAI,CAAC,IAAI,CAAC,aAAa,IAAI,CAAC,IAAI,CAAC,SAAS,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE;AACrE,IAAI,OAAO,IAAI,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,6BAA6B,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;AAC1F,EAAE;AACF,EAAE,IAAI,IAAI,CAAC,aAAa,KAAK,IAAI,CAAC,aAAa,EAAE;AACjD,IAAI,OAAO,IAAI;AACf,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,yCAAyC,EAAE;AAC1E,MAAM,EAAE,MAAM,EAAE,GAAG;AACnB,KAAK;AACL,EAAE;AACF,EAAE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,UAAU;AACxC,IAAI,WAAW,CAAC,IAAI,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,aAAa;AACtE,GAAG;AACH,EAAE,OAAO,IAAI,CAAC,MAAM,CAAC;AACrB;;;;"}
|
|
@@ -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 { d as deleteMessage, g as getSessionsDir } from './index2-
|
|
3
|
+
import { d as deleteMessage, g as getSessionsDir } from './index2-DY0iJkqO.js';
|
|
4
4
|
import * as fs from 'node:fs/promises';
|
|
5
5
|
import * as path from 'node:path';
|
|
6
6
|
import 'fs';
|
|
@@ -55,4 +55,4 @@ const PATCH = async ({ url, request }) => {
|
|
|
55
55
|
};
|
|
56
56
|
|
|
57
57
|
export { DELETE, PATCH };
|
|
58
|
-
//# sourceMappingURL=_server.ts-
|
|
58
|
+
//# sourceMappingURL=_server.ts-Bxa6aZc2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_server.ts-
|
|
1
|
+
{"version":3,"file":"_server.ts-Bxa6aZc2.js","sources":["../../../.svelte-kit/adapter-node/entries/endpoints/api/message/_server.ts.js"],"sourcesContent":["import { error, json } from \"@sveltejs/kit\";\nimport { Effect } from \"effect\";\nimport { g as getSessionsDir, d as deleteMessage } from \"../../../../chunks/index2.js\";\nimport * as fs from \"node:fs/promises\";\nimport * as path from \"node:path\";\nconst updateCustomTitle = (projectName, sessionId, messageUuid, newTitle) => Effect.gen(function* () {\n const filePath = path.join(getSessionsDir(), projectName, `${sessionId}.jsonl`);\n const content = yield* Effect.tryPromise(() => fs.readFile(filePath, \"utf-8\"));\n const lines = content.trim().split(\"\\n\").filter(Boolean);\n const messages = lines.map((line) => JSON.parse(line));\n const targetIndex = messages.findIndex((m) => m.uuid === messageUuid);\n if (targetIndex === -1) {\n return { success: false, error: \"Message not found\" };\n }\n const msg = messages[targetIndex];\n if (msg.type !== \"custom-title\") {\n return { success: false, error: \"Message is not a custom-title type\" };\n }\n msg.customTitle = newTitle;\n const newContent = messages.map((m) => JSON.stringify(m)).join(\"\\n\") + \"\\n\";\n yield* Effect.tryPromise(() => fs.writeFile(filePath, newContent, \"utf-8\"));\n return { success: true };\n});\nconst DELETE = async ({ url }) => {\n const projectName = url.searchParams.get(\"project\");\n const sessionId = url.searchParams.get(\"session\");\n const messageUuid = url.searchParams.get(\"uuid\");\n if (!projectName || !sessionId || !messageUuid) {\n throw error(400, \"project, session, and uuid parameters required\");\n }\n const result = await Effect.runPromise(deleteMessage(projectName, sessionId, messageUuid));\n return json(result);\n};\nconst PATCH = async ({ url, request }) => {\n const projectName = url.searchParams.get(\"project\");\n const sessionId = url.searchParams.get(\"session\");\n const messageUuid = url.searchParams.get(\"uuid\");\n if (!projectName || !sessionId || !messageUuid) {\n throw error(400, \"project, session, and uuid parameters required\");\n }\n const body = await request.json();\n const { customTitle } = body;\n if (!customTitle) {\n throw error(400, \"customTitle is required\");\n }\n const result = await Effect.runPromise(\n updateCustomTitle(projectName, sessionId, messageUuid, customTitle)\n );\n return json(result);\n};\nexport {\n DELETE,\n PATCH\n};\n"],"names":[],"mappings":";;;;;;;;;;AAKA,MAAM,iBAAiB,GAAG,CAAC,WAAW,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,KAAK,MAAM,CAAC,GAAG,CAAC,aAAa;AACrG,EAAE,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,WAAW,EAAE,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;AACjF,EAAE,MAAM,OAAO,GAAG,OAAO,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;AAChF,EAAE,MAAM,KAAK,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC;AAC1D,EAAE,MAAM,QAAQ,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;AACxD,EAAE,MAAM,WAAW,GAAG,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,KAAK,WAAW,CAAC;AACvE,EAAE,IAAI,WAAW,KAAK,EAAE,EAAE;AAC1B,IAAI,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,mBAAmB,EAAE;AACzD,EAAE;AACF,EAAE,MAAM,GAAG,GAAG,QAAQ,CAAC,WAAW,CAAC;AACnC,EAAE,IAAI,GAAG,CAAC,IAAI,KAAK,cAAc,EAAE;AACnC,IAAI,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,oCAAoC,EAAE;AAC1E,EAAE;AACF,EAAE,GAAG,CAAC,WAAW,GAAG,QAAQ;AAC5B,EAAE,MAAM,UAAU,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI;AAC7E,EAAE,OAAO,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,QAAQ,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;AAC7E,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE;AAC1B,CAAC,CAAC;AACG,MAAC,MAAM,GAAG,OAAO,EAAE,GAAG,EAAE,KAAK;AAClC,EAAE,MAAM,WAAW,GAAG,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,SAAS,CAAC;AACrD,EAAE,MAAM,SAAS,GAAG,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,SAAS,CAAC;AACnD,EAAE,MAAM,WAAW,GAAG,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,MAAM,CAAC;AAClD,EAAE,IAAI,CAAC,WAAW,IAAI,CAAC,SAAS,IAAI,CAAC,WAAW,EAAE;AAClD,IAAI,MAAM,KAAK,CAAC,GAAG,EAAE,gDAAgD,CAAC;AACtE,EAAE;AACF,EAAE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,aAAa,CAAC,WAAW,EAAE,SAAS,EAAE,WAAW,CAAC,CAAC;AAC5F,EAAE,OAAO,IAAI,CAAC,MAAM,CAAC;AACrB;AACK,MAAC,KAAK,GAAG,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,KAAK;AAC1C,EAAE,MAAM,WAAW,GAAG,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,SAAS,CAAC;AACrD,EAAE,MAAM,SAAS,GAAG,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,SAAS,CAAC;AACnD,EAAE,MAAM,WAAW,GAAG,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,MAAM,CAAC;AAClD,EAAE,IAAI,CAAC,WAAW,IAAI,CAAC,SAAS,IAAI,CAAC,WAAW,EAAE;AAClD,IAAI,MAAM,KAAK,CAAC,GAAG,EAAE,gDAAgD,CAAC;AACtE,EAAE;AACF,EAAE,MAAM,IAAI,GAAG,MAAM,OAAO,CAAC,IAAI,EAAE;AACnC,EAAE,MAAM,EAAE,WAAW,EAAE,GAAG,IAAI;AAC9B,EAAE,IAAI,CAAC,WAAW,EAAE;AACpB,IAAI,MAAM,KAAK,CAAC,GAAG,EAAE,yBAAyB,CAAC;AAC/C,EAAE;AACF,EAAE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,UAAU;AACxC,IAAI,iBAAiB,CAAC,WAAW,EAAE,SAAS,EAAE,WAAW,EAAE,WAAW;AACtE,GAAG;AACH,EAAE,OAAO,IAAI,CAAC,MAAM,CAAC;AACrB;;;;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { j as json } from './index-CoD1IJuy.js';
|
|
2
2
|
|
|
3
3
|
const GET = async () => {
|
|
4
|
-
return json({ version: "0.1.
|
|
4
|
+
return json({ version: "0.1.9" });
|
|
5
5
|
};
|
|
6
6
|
|
|
7
7
|
export { GET };
|
|
8
|
-
//# sourceMappingURL=_server.ts-
|
|
8
|
+
//# sourceMappingURL=_server.ts-BxagrnO0.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_server.ts-
|
|
1
|
+
{"version":3,"file":"_server.ts-BxagrnO0.js","sources":["../../../.svelte-kit/adapter-node/entries/endpoints/api/version/_server.ts.js"],"sourcesContent":["import { json } from \"@sveltejs/kit\";\nconst GET = async () => {\n return json({ version: \"0.1.9\" });\n};\nexport {\n GET\n};\n"],"names":[],"mappings":";;AACK,MAAC,GAAG,GAAG,YAAY;AACxB,EAAE,OAAO,IAAI,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;AACnC;;;;"}
|
|
@@ -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 { e as deleteSession, r as readSession } from './index2-
|
|
3
|
+
import { e as deleteSession, r as readSession } from './index2-DY0iJkqO.js';
|
|
4
4
|
import 'fs';
|
|
5
5
|
import 'os';
|
|
6
6
|
import 'path';
|
|
@@ -26,4 +26,4 @@ const DELETE = async ({ url }) => {
|
|
|
26
26
|
};
|
|
27
27
|
|
|
28
28
|
export { DELETE, GET };
|
|
29
|
-
//# sourceMappingURL=_server.ts
|
|
29
|
+
//# sourceMappingURL=_server.ts-BzmUdix3.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_server.ts
|
|
1
|
+
{"version":3,"file":"_server.ts-BzmUdix3.js","sources":["../../../.svelte-kit/adapter-node/entries/endpoints/api/session/_server.ts.js"],"sourcesContent":["import { error, json } from \"@sveltejs/kit\";\nimport { Effect } from \"effect\";\nimport { r as readSession, e as deleteSession } from \"../../../../chunks/index2.js\";\nconst GET = async ({ url }) => {\n const projectName = url.searchParams.get(\"project\");\n const sessionId = url.searchParams.get(\"id\");\n if (!projectName || !sessionId) {\n throw error(400, \"project and id parameters required\");\n }\n const messages = await Effect.runPromise(readSession(projectName, sessionId));\n return json(messages);\n};\nconst DELETE = async ({ url }) => {\n const projectName = url.searchParams.get(\"project\");\n const sessionId = url.searchParams.get(\"id\");\n if (!projectName || !sessionId) {\n throw error(400, \"project and id parameters required\");\n }\n const result = await Effect.runPromise(deleteSession(projectName, sessionId));\n return json(result);\n};\nexport {\n DELETE,\n GET\n};\n"],"names":[],"mappings":";;;;;;;;AAGK,MAAC,GAAG,GAAG,OAAO,EAAE,GAAG,EAAE,KAAK;AAC/B,EAAE,MAAM,WAAW,GAAG,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,SAAS,CAAC;AACrD,EAAE,MAAM,SAAS,GAAG,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,IAAI,CAAC;AAC9C,EAAE,IAAI,CAAC,WAAW,IAAI,CAAC,SAAS,EAAE;AAClC,IAAI,MAAM,KAAK,CAAC,GAAG,EAAE,oCAAoC,CAAC;AAC1D,EAAE;AACF,EAAE,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,WAAW,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;AAC/E,EAAE,OAAO,IAAI,CAAC,QAAQ,CAAC;AACvB;AACK,MAAC,MAAM,GAAG,OAAO,EAAE,GAAG,EAAE,KAAK;AAClC,EAAE,MAAM,WAAW,GAAG,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,SAAS,CAAC;AACrD,EAAE,MAAM,SAAS,GAAG,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,IAAI,CAAC;AAC9C,EAAE,IAAI,CAAC,WAAW,IAAI,CAAC,SAAS,EAAE;AAClC,IAAI,MAAM,KAAK,CAAC,GAAG,EAAE,oCAAoC,CAAC;AAC1D,EAAE;AACF,EAAE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,aAAa,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;AAC/E,EAAE,OAAO,IAAI,CAAC,MAAM,CAAC;AACrB;;;;"}
|
|
@@ -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 { h as getSessionFiles } from './index2-
|
|
3
|
+
import { h as getSessionFiles } from './index2-DY0iJkqO.js';
|
|
4
4
|
import 'fs';
|
|
5
5
|
import 'os';
|
|
6
6
|
import 'path';
|
|
@@ -17,4 +17,4 @@ const GET = async ({ url }) => {
|
|
|
17
17
|
};
|
|
18
18
|
|
|
19
19
|
export { GET };
|
|
20
|
-
//# sourceMappingURL=_server.ts-
|
|
20
|
+
//# sourceMappingURL=_server.ts-C-rL3Szt.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_server.ts-
|
|
1
|
+
{"version":3,"file":"_server.ts-C-rL3Szt.js","sources":["../../../.svelte-kit/adapter-node/entries/endpoints/api/session/files/_server.ts.js"],"sourcesContent":["import { error, json } from \"@sveltejs/kit\";\nimport { Effect } from \"effect\";\nimport { h as getSessionFiles } from \"../../../../../chunks/index2.js\";\nconst GET = async ({ url }) => {\n const projectName = url.searchParams.get(\"project\");\n const sessionId = url.searchParams.get(\"id\");\n if (!projectName || !sessionId) {\n throw error(400, \"project and id parameters required\");\n }\n const result = await Effect.runPromise(getSessionFiles(projectName, sessionId));\n return json(result);\n};\nexport {\n GET\n};\n"],"names":[],"mappings":";;;;;;;;AAGK,MAAC,GAAG,GAAG,OAAO,EAAE,GAAG,EAAE,KAAK;AAC/B,EAAE,MAAM,WAAW,GAAG,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,SAAS,CAAC;AACrD,EAAE,MAAM,SAAS,GAAG,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,IAAI,CAAC;AAC9C,EAAE,IAAI,CAAC,WAAW,IAAI,CAAC,SAAS,EAAE;AAClC,IAAI,MAAM,KAAK,CAAC,GAAG,EAAE,oCAAoC,CAAC;AAC1D,EAAE;AACF,EAAE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,eAAe,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;AACjF,EAAE,OAAO,IAAI,CAAC,MAAM,CAAC;AACrB;;;;"}
|
|
@@ -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 { i as renameSession } from './index2-
|
|
3
|
+
import { i as renameSession } from './index2-DY0iJkqO.js';
|
|
4
4
|
import 'fs';
|
|
5
5
|
import 'os';
|
|
6
6
|
import 'path';
|
|
@@ -18,4 +18,4 @@ const POST = async ({ request }) => {
|
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
export { POST };
|
|
21
|
-
//# sourceMappingURL=_server.ts-
|
|
21
|
+
//# sourceMappingURL=_server.ts-CY9T4t0H.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_server.ts-
|
|
1
|
+
{"version":3,"file":"_server.ts-CY9T4t0H.js","sources":["../../../.svelte-kit/adapter-node/entries/endpoints/api/session/rename/_server.ts.js"],"sourcesContent":["import { error, json } from \"@sveltejs/kit\";\nimport { Effect } from \"effect\";\nimport { i as renameSession } from \"../../../../../chunks/index2.js\";\nconst POST = async ({ request }) => {\n const body = await request.json();\n if (!body.project || !body.id || !body.title) {\n throw error(400, \"project, id, and title required\");\n }\n const result = await Effect.runPromise(\n renameSession(body.project, body.id, body.title, body.summary)\n );\n return json(result);\n};\nexport {\n POST\n};\n"],"names":[],"mappings":";;;;;;;;AAGK,MAAC,IAAI,GAAG,OAAO,EAAE,OAAO,EAAE,KAAK;AACpC,EAAE,MAAM,IAAI,GAAG,MAAM,OAAO,CAAC,IAAI,EAAE;AACnC,EAAE,IAAI,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE;AAChD,IAAI,MAAM,KAAK,CAAC,GAAG,EAAE,iCAAiC,CAAC;AACvD,EAAE;AACF,EAAE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,UAAU;AACxC,IAAI,aAAa,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,OAAO;AACjE,GAAG;AACH,EAAE,OAAO,IAAI,CAAC,MAAM,CAAC;AACrB;;;;"}
|
|
@@ -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 { j as splitSession } from './index2-
|
|
3
|
+
import { j as splitSession } from './index2-DY0iJkqO.js';
|
|
4
4
|
import 'fs';
|
|
5
5
|
import 'os';
|
|
6
6
|
import 'path';
|
|
@@ -17,4 +17,4 @@ const POST = async ({ request }) => {
|
|
|
17
17
|
};
|
|
18
18
|
|
|
19
19
|
export { POST };
|
|
20
|
-
//# sourceMappingURL=_server.ts-
|
|
20
|
+
//# sourceMappingURL=_server.ts-CmUCnNll.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_server.ts-
|
|
1
|
+
{"version":3,"file":"_server.ts-CmUCnNll.js","sources":["../../../.svelte-kit/adapter-node/entries/endpoints/api/session/split/_server.ts.js"],"sourcesContent":["import { error, json } from \"@sveltejs/kit\";\nimport { Effect } from \"effect\";\nimport { j as splitSession } from \"../../../../../chunks/index2.js\";\nconst POST = async ({ request }) => {\n const body = await request.json();\n const { project, sessionId, messageUuid } = body;\n if (!project || !sessionId || !messageUuid) {\n throw error(400, \"project, sessionId, and messageUuid are required\");\n }\n const result = await Effect.runPromise(splitSession(project, sessionId, messageUuid));\n return json(result);\n};\nexport {\n POST\n};\n"],"names":[],"mappings":";;;;;;;;AAGK,MAAC,IAAI,GAAG,OAAO,EAAE,OAAO,EAAE,KAAK;AACpC,EAAE,MAAM,IAAI,GAAG,MAAM,OAAO,CAAC,IAAI,EAAE;AACnC,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,GAAG,IAAI;AAClD,EAAE,IAAI,CAAC,OAAO,IAAI,CAAC,SAAS,IAAI,CAAC,WAAW,EAAE;AAC9C,IAAI,MAAM,KAAK,CAAC,GAAG,EAAE,kDAAkD,CAAC;AACxE,EAAE;AACF,EAAE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,YAAY,CAAC,OAAO,EAAE,SAAS,EAAE,WAAW,CAAC,CAAC;AACvF,EAAE,OAAO,IAAI,CAAC,MAAM,CAAC;AACrB;;;;"}
|
|
@@ -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 { a as listSessions, f as findLinkedAgents, b as findLinkedTodos, r as readSession } from './index2-
|
|
3
|
+
import { a as listSessions, f as findLinkedAgents, b as findLinkedTodos, r as readSession } from './index2-DY0iJkqO.js';
|
|
4
4
|
import 'fs';
|
|
5
5
|
import 'os';
|
|
6
6
|
import 'path';
|
|
@@ -67,4 +67,4 @@ const GET = async ({ url }) => {
|
|
|
67
67
|
};
|
|
68
68
|
|
|
69
69
|
export { GET };
|
|
70
|
-
//# sourceMappingURL=_server.ts-
|
|
70
|
+
//# sourceMappingURL=_server.ts-DsueDvyv.js.map
|