@claude-sessions/web 0.4.7-beta.1 → 0.4.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. package/build/client/_app/immutable/chunks/{Dw50LpzA.js → 6j6qgi5m.js} +1 -1
  2. package/build/client/_app/immutable/chunks/6j6qgi5m.js.br +0 -0
  3. package/build/client/_app/immutable/chunks/6j6qgi5m.js.gz +0 -0
  4. package/build/client/_app/immutable/chunks/BkKWBf8s.js +1 -0
  5. package/build/client/_app/immutable/chunks/BkKWBf8s.js.br +0 -0
  6. package/build/client/_app/immutable/chunks/BkKWBf8s.js.gz +0 -0
  7. package/build/client/_app/immutable/chunks/CursEjUX.js +1 -0
  8. package/build/client/_app/immutable/chunks/CursEjUX.js.br +0 -0
  9. package/build/client/_app/immutable/chunks/CursEjUX.js.gz +0 -0
  10. package/build/client/_app/immutable/chunks/{B8g5xi4b.js → D1duoKAw.js} +1 -1
  11. package/build/client/_app/immutable/chunks/D1duoKAw.js.br +0 -0
  12. package/build/client/_app/immutable/chunks/D1duoKAw.js.gz +0 -0
  13. package/build/client/_app/immutable/chunks/DB1q-JFC.js +1 -0
  14. package/build/client/_app/immutable/chunks/DB1q-JFC.js.br +0 -0
  15. package/build/client/_app/immutable/chunks/DB1q-JFC.js.gz +0 -0
  16. package/build/client/_app/immutable/chunks/{BWaY6ujL.js → HCtei06b.js} +1 -1
  17. package/build/client/_app/immutable/chunks/HCtei06b.js.br +0 -0
  18. package/build/client/_app/immutable/chunks/HCtei06b.js.gz +0 -0
  19. package/build/client/_app/immutable/chunks/WK3b3g7j.js +2 -0
  20. package/build/client/_app/immutable/chunks/WK3b3g7j.js.br +0 -0
  21. package/build/client/_app/immutable/chunks/WK3b3g7j.js.gz +0 -0
  22. package/build/client/_app/immutable/chunks/_v9tgGMR.js +100 -0
  23. package/build/client/_app/immutable/chunks/_v9tgGMR.js.br +0 -0
  24. package/build/client/_app/immutable/chunks/_v9tgGMR.js.gz +0 -0
  25. package/build/client/_app/immutable/entry/{app.CTjFL720.js → app.8EIXmrxu.js} +2 -2
  26. package/build/client/_app/immutable/entry/app.8EIXmrxu.js.br +0 -0
  27. package/build/client/_app/immutable/entry/app.8EIXmrxu.js.gz +0 -0
  28. package/build/client/_app/immutable/entry/start.B1RcmDxV.js +1 -0
  29. package/build/client/_app/immutable/entry/start.B1RcmDxV.js.br +0 -0
  30. package/build/client/_app/immutable/entry/start.B1RcmDxV.js.gz +0 -0
  31. package/build/client/_app/immutable/nodes/{0.DbsRMSGz.js → 0.C3-EWlLD.js} +1 -1
  32. package/build/client/_app/immutable/nodes/0.C3-EWlLD.js.br +0 -0
  33. package/build/client/_app/immutable/nodes/0.C3-EWlLD.js.gz +0 -0
  34. package/build/client/_app/immutable/nodes/{1.CzCkEGH-.js → 1.LTLF-xkJ.js} +1 -1
  35. package/build/client/_app/immutable/nodes/1.LTLF-xkJ.js.br +0 -0
  36. package/build/client/_app/immutable/nodes/1.LTLF-xkJ.js.gz +0 -0
  37. package/build/client/_app/immutable/nodes/{2.BRrV1M8V.js → 2.JKvSvrXU.js} +1 -1
  38. package/build/client/_app/immutable/nodes/2.JKvSvrXU.js.br +0 -0
  39. package/build/client/_app/immutable/nodes/2.JKvSvrXU.js.gz +0 -0
  40. package/build/client/_app/immutable/nodes/{3.CThHCmon.js → 3.QvG7KcU-.js} +1 -1
  41. package/build/client/_app/immutable/nodes/3.QvG7KcU-.js.br +0 -0
  42. package/build/client/_app/immutable/nodes/3.QvG7KcU-.js.gz +0 -0
  43. package/build/client/_app/version.json +1 -1
  44. package/build/client/_app/version.json.br +0 -0
  45. package/build/client/_app/version.json.gz +0 -0
  46. package/build/server/chunks/{0-B-m2U1BP.js → 0-Bmmq9ZM6.js} +3 -3
  47. package/build/server/chunks/{0-B-m2U1BP.js.map → 0-Bmmq9ZM6.js.map} +1 -1
  48. package/build/server/chunks/1-QC3Sx1LV.js +9 -0
  49. package/build/server/chunks/{1-BxbzQf60.js.map → 1-QC3Sx1LV.js.map} +1 -1
  50. package/build/server/chunks/2-Dw5NPnTj.js +9 -0
  51. package/build/server/chunks/{2-B1OQIXg9.js.map → 2-Dw5NPnTj.js.map} +1 -1
  52. package/build/server/chunks/3-BcDPYoSg.js +9 -0
  53. package/build/server/chunks/{3-QNnRFpXn.js.map → 3-BcDPYoSg.js.map} +1 -1
  54. package/build/server/chunks/{InputModal-B2QW71Rc.js → InputModal-Cp5WgcYP.js} +2 -2
  55. package/build/server/chunks/{InputModal-B2QW71Rc.js.map → InputModal-Cp5WgcYP.js.map} +1 -1
  56. package/build/server/chunks/{Toast-C0Uluww6.js → Toast-AVuTocXd.js} +2 -2
  57. package/build/server/chunks/{Toast-C0Uluww6.js.map → Toast-AVuTocXd.js.map} +1 -1
  58. package/build/server/chunks/{_layout.svelte-rcGJkEsi.js → _layout.svelte-DaSyc-mf.js} +5 -5
  59. package/build/server/chunks/{_layout.svelte-rcGJkEsi.js.map → _layout.svelte-DaSyc-mf.js.map} +1 -1
  60. package/build/server/chunks/{_page.svelte-BBAp4Vom.js → _page.svelte-D0jFzJtD.js} +12 -5
  61. package/build/server/chunks/_page.svelte-D0jFzJtD.js.map +1 -0
  62. package/build/server/chunks/{_page.svelte-JEzT1D1F.js → _page.svelte-D3EVHdvH.js} +5 -5
  63. package/build/server/chunks/{_page.svelte-JEzT1D1F.js.map → _page.svelte-D3EVHdvH.js.map} +1 -1
  64. package/build/server/chunks/{_server.ts-L0d7krv-.js → _server.ts-DousfQCX.js} +2 -2
  65. package/build/server/chunks/_server.ts-DousfQCX.js.map +1 -0
  66. package/build/server/chunks/{client-CJUAsTTN.js → client-C63uMw4h.js} +4 -3
  67. package/build/server/chunks/client-C63uMw4h.js.map +1 -0
  68. package/build/server/chunks/{error.svelte-CYLEgCzL.js → error.svelte-7ySp2asi.js} +4 -4
  69. package/build/server/chunks/{error.svelte-CYLEgCzL.js.map → error.svelte-7ySp2asi.js.map} +1 -1
  70. package/build/server/chunks/index-CoD1IJuy.js.map +1 -1
  71. package/build/server/chunks/{index-CUeePJRv.js → index-Dqbd-Nxp.js} +256 -235
  72. package/build/server/chunks/index-Dqbd-Nxp.js.map +1 -0
  73. package/build/server/chunks/{index3-BKokHvI9.js → index3-vPlrIIie.js} +3 -3
  74. package/build/server/chunks/{index3-BKokHvI9.js.map → index3-vPlrIIie.js.map} +1 -1
  75. package/build/server/index.js +99 -13
  76. package/build/server/index.js.map +1 -1
  77. package/build/server/manifest.js +6 -6
  78. package/build/server/manifest.js.map +1 -1
  79. package/package.json +23 -20
  80. package/build/client/_app/immutable/chunks/B8g5xi4b.js.br +0 -0
  81. package/build/client/_app/immutable/chunks/B8g5xi4b.js.gz +0 -0
  82. package/build/client/_app/immutable/chunks/BWaY6ujL.js.br +0 -0
  83. package/build/client/_app/immutable/chunks/BWaY6ujL.js.gz +0 -0
  84. package/build/client/_app/immutable/chunks/BfRp2rnv.js +0 -100
  85. package/build/client/_app/immutable/chunks/BfRp2rnv.js.br +0 -0
  86. package/build/client/_app/immutable/chunks/BfRp2rnv.js.gz +0 -0
  87. package/build/client/_app/immutable/chunks/CG99hqDQ.js +0 -2
  88. package/build/client/_app/immutable/chunks/CG99hqDQ.js.br +0 -0
  89. package/build/client/_app/immutable/chunks/CG99hqDQ.js.gz +0 -0
  90. package/build/client/_app/immutable/chunks/CfsdC4sQ.js +0 -1
  91. package/build/client/_app/immutable/chunks/CfsdC4sQ.js.br +0 -0
  92. package/build/client/_app/immutable/chunks/CfsdC4sQ.js.gz +0 -0
  93. package/build/client/_app/immutable/chunks/DWa7QuMS.js +0 -1
  94. package/build/client/_app/immutable/chunks/DWa7QuMS.js.br +0 -0
  95. package/build/client/_app/immutable/chunks/DWa7QuMS.js.gz +0 -0
  96. package/build/client/_app/immutable/chunks/DjDr02vs.js +0 -1
  97. package/build/client/_app/immutable/chunks/DjDr02vs.js.br +0 -0
  98. package/build/client/_app/immutable/chunks/DjDr02vs.js.gz +0 -0
  99. package/build/client/_app/immutable/chunks/Dw50LpzA.js.br +0 -0
  100. package/build/client/_app/immutable/chunks/Dw50LpzA.js.gz +0 -0
  101. package/build/client/_app/immutable/entry/app.CTjFL720.js.br +0 -0
  102. package/build/client/_app/immutable/entry/app.CTjFL720.js.gz +0 -0
  103. package/build/client/_app/immutable/entry/start.Chk6JwCE.js +0 -1
  104. package/build/client/_app/immutable/entry/start.Chk6JwCE.js.br +0 -0
  105. package/build/client/_app/immutable/entry/start.Chk6JwCE.js.gz +0 -0
  106. package/build/client/_app/immutable/nodes/0.DbsRMSGz.js.br +0 -0
  107. package/build/client/_app/immutable/nodes/0.DbsRMSGz.js.gz +0 -0
  108. package/build/client/_app/immutable/nodes/1.CzCkEGH-.js.br +0 -2
  109. package/build/client/_app/immutable/nodes/1.CzCkEGH-.js.gz +0 -0
  110. package/build/client/_app/immutable/nodes/2.BRrV1M8V.js.br +0 -0
  111. package/build/client/_app/immutable/nodes/2.BRrV1M8V.js.gz +0 -0
  112. package/build/client/_app/immutable/nodes/3.CThHCmon.js.br +0 -0
  113. package/build/client/_app/immutable/nodes/3.CThHCmon.js.gz +0 -0
  114. package/build/server/chunks/1-BxbzQf60.js +0 -9
  115. package/build/server/chunks/2-B1OQIXg9.js +0 -9
  116. package/build/server/chunks/3-QNnRFpXn.js +0 -9
  117. package/build/server/chunks/_page.svelte-BBAp4Vom.js.map +0 -1
  118. package/build/server/chunks/_server.ts-L0d7krv-.js.map +0 -1
  119. package/build/server/chunks/client-CJUAsTTN.js.map +0 -1
  120. package/build/server/chunks/index-CUeePJRv.js.map +0 -1
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.DbsRMSGz.js","../chunks/CG99hqDQ.js","../chunks/DWa7QuMS.js","../chunks/B8g5xi4b.js","../chunks/BfRp2rnv.js","../chunks/DjDr02vs.js","../assets/Toast.BpcxWUYz.css","../chunks/Dw50LpzA.js","../chunks/CfsdC4sQ.js","../chunks/BWaY6ujL.js","../assets/0.nXM4xjKW.css","../nodes/1.CzCkEGH-.js","../nodes/2.BRrV1M8V.js","../nodes/3.CThHCmon.js"])))=>i.map(i=>d[i]);
2
- import{l as D,Y as G,k as H,Z as Q,_ as W,a0 as Z,v as z,q as I,ah as J,w as K,b as p,ag as X,g as f,ai as $,Q as ee,M as te,p as re,y as se,u as ae,o as ne,s as x,aj as oe,f as k,e as ce,c as ie,d as le,r as ue,h as A,t as de}from"../chunks/DWa7QuMS.js";import{h as fe,m as me,u as he,f as V,a as P,g as S,t as _e,s as ve}from"../chunks/CG99hqDQ.js";import{B as ge,p as T,i as j,b as L}from"../chunks/B8g5xi4b.js";function C(o,e,s){var l;D&&(l=K,G());var c=new ge(o);H(()=>{var t=e()??null;if(D){var r=W(l),a=r===J,E=t!==null;if(a!==E){var m=Z();z(m),c.anchor=m,I(!1),c.ensure(t,t&&(n=>s(n,t))),I(!0);return}}c.ensure(t,t&&(n=>s(n,t)))},Q)}function ye(o){return class extends Ee{constructor(e){super({component:o,...e})}}}class Ee{#t;#e;constructor(e){var s=new Map,l=(t,r)=>{var a=te(r,!1,!1);return s.set(t,a),a};const c=new Proxy({...e.props||{},$$events:{}},{get(t,r){return f(s.get(r)??l(r,Reflect.get(t,r)))},has(t,r){return r===X?!0:(f(s.get(r)??l(r,Reflect.get(t,r))),Reflect.has(t,r))},set(t,r,a){return p(s.get(r)??l(r,a),a),Reflect.set(t,r,a)}});this.#e=(e.hydrate?fe:me)(e.component,{target:e.target,anchor:e.anchor,props:c,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),(!e?.props?.$$host||e.sync===!1)&&$(),this.#t=c.$$events;for(const t of Object.keys(this.#e))t==="$set"||t==="$destroy"||t==="$on"||ee(this,t,{get(){return this.#e[t]},set(r){this.#e[t]=r},enumerable:!0});this.#e.$set=t=>{Object.assign(c,t)},this.#e.$destroy=()=>{he(this.#e)}}$set(e){this.#e.$set(e)}$on(e,s){this.#t[e]=this.#t[e]||[];const l=(...c)=>s.call(this,...c);return this.#t[e].push(l),()=>{this.#t[e]=this.#t[e].filter(c=>c!==l)}}$destroy(){this.#e.$destroy()}}const be="modulepreload",Pe=function(o,e){return new URL(o,e).href},M={},O=function(e,s,l){let c=Promise.resolve();if(s&&s.length>0){let m=function(n){return Promise.all(n.map(d=>Promise.resolve(d).then(h=>({status:"fulfilled",value:h}),h=>({status:"rejected",reason:h}))))};const r=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),E=a?.nonce||a?.getAttribute("nonce");c=m(s.map(n=>{if(n=Pe(n,l),n in M)return;M[n]=!0;const d=n.endsWith(".css"),h=d?'[rel="stylesheet"]':"";if(l)for(let _=r.length-1;_>=0;_--){const i=r[_];if(i.href===n&&(!d||i.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${n}"]${h}`))return;const u=document.createElement("link");if(u.rel=d?"stylesheet":be,d||(u.as="script"),u.crossOrigin="",u.href=n,E&&u.setAttribute("nonce",E),document.head.appendChild(u),d)return new Promise((_,i)=>{u.addEventListener("load",_),u.addEventListener("error",()=>i(new Error(`Unable to preload CSS for ${n}`)))})}))}function t(r){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=r,window.dispatchEvent(a),!a.defaultPrevented)throw r}return c.then(r=>{for(const a of r||[])a.status==="rejected"&&t(a.reason);return e().catch(t)})},Te={};var Re=V('<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>'),we=V("<!> <!>",1);function ke(o,e){re(e,!0);let s=T(e,"components",23,()=>[]),l=T(e,"data_0",3,null),c=T(e,"data_1",3,null);se(()=>e.stores.page.set(e.page)),ae(()=>{e.stores,e.page,e.constructors,s(),e.form,l(),c(),e.stores.page.notify()});let t=x(!1),r=x(!1),a=x(null);ne(()=>{const i=e.stores.page.subscribe(()=>{f(t)&&(p(r,!0),oe().then(()=>{p(a,document.title||"untitled page",!0)}))});return p(t,!0),i});const E=A(()=>e.constructors[1]);var m=we(),n=k(m);{var d=i=>{const v=A(()=>e.constructors[0]);var g=S(),R=k(g);C(R,()=>f(v),(y,b)=>{L(b(y,{get data(){return l()},get form(){return e.form},get params(){return e.page.params},children:(w,pe)=>{var N=S(),B=k(N);C(B,()=>f(E),(Y,F)=>{L(F(Y,{get data(){return c()},get form(){return e.form},get params(){return e.page.params}}),U=>s()[1]=U,()=>s()?.[1])}),P(w,N)},$$slots:{default:!0}}),w=>s()[0]=w,()=>s()?.[0])}),P(i,g)},h=i=>{const v=A(()=>e.constructors[0]);var g=S(),R=k(g);C(R,()=>f(v),(y,b)=>{L(b(y,{get data(){return l()},get form(){return e.form},get params(){return e.page.params}}),w=>s()[0]=w,()=>s()?.[0])}),P(i,g)};j(n,i=>{e.constructors[1]?i(d):i(h,-1)})}var u=ce(n,2);{var _=i=>{var v=Re(),g=le(v);{var R=y=>{var b=_e();de(()=>ve(b,f(a))),P(y,b)};j(g,y=>{f(r)&&y(R)})}ue(v),P(i,v)};j(u,i=>{f(t)&&i(_)})}P(o,m),ie()}const je=ye(ke),Le=[()=>O(()=>import("../nodes/0.DbsRMSGz.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]),import.meta.url),()=>O(()=>import("../nodes/1.CzCkEGH-.js"),__vite__mapDeps([11,1,2,9,5,8]),import.meta.url),()=>O(()=>import("../nodes/2.BRrV1M8V.js"),__vite__mapDeps([12,1,2,3,4,5,6]),import.meta.url),()=>O(()=>import("../nodes/3.CThHCmon.js"),__vite__mapDeps([13,1,2,3,7,8,5,9,4,6]),import.meta.url)],Ce=[],Ne={"/":[2],"/session/[project]/[id]":[3]},q={handleError:(({error:o})=>{console.error(o)}),reroute:(()=>{}),transport:{}},Oe=Object.fromEntries(Object.entries(q.transport).map(([o,e])=>[o,e.decode])),De=Object.fromEntries(Object.entries(q.transport).map(([o,e])=>[o,e.encode])),Ie=!1,Me=(o,e)=>Oe[o](e);export{Me as decode,Oe as decoders,Ne as dictionary,De as encoders,Ie as hash,q as hooks,Te as matchers,Le as nodes,je as root,Ce as server_loads};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.C3-EWlLD.js","../chunks/WK3b3g7j.js","../chunks/DB1q-JFC.js","../chunks/D1duoKAw.js","../chunks/_v9tgGMR.js","../chunks/CursEjUX.js","../assets/Toast.BpcxWUYz.css","../chunks/6j6qgi5m.js","../chunks/BkKWBf8s.js","../chunks/HCtei06b.js","../assets/0.nXM4xjKW.css","../nodes/1.LTLF-xkJ.js","../nodes/2.JKvSvrXU.js","../nodes/3.QvG7KcU-.js"])))=>i.map(i=>d[i]);
2
+ import{l as D,Y as G,k as H,Z as Q,_ as W,a0 as Z,v as z,q as I,ah as J,w as K,b as p,ag as X,g as f,ai as $,Q as ee,M as te,p as re,y as se,u as ae,o as ne,s as x,aj as oe,f as k,e as ce,c as ie,d as le,r as ue,h as A,t as de}from"../chunks/DB1q-JFC.js";import{h as fe,m as me,u as he,f as V,a as P,g as S,t as _e,s as ve}from"../chunks/WK3b3g7j.js";import{B as ge,p as T,i as j,b as L}from"../chunks/D1duoKAw.js";function C(o,e,s){var l;D&&(l=K,G());var c=new ge(o);H(()=>{var t=e()??null;if(D){var r=W(l),a=r===J,E=t!==null;if(a!==E){var m=Z();z(m),c.anchor=m,I(!1),c.ensure(t,t&&(n=>s(n,t))),I(!0);return}}c.ensure(t,t&&(n=>s(n,t)))},Q)}function ye(o){return class extends Ee{constructor(e){super({component:o,...e})}}}class Ee{#t;#e;constructor(e){var s=new Map,l=(t,r)=>{var a=te(r,!1,!1);return s.set(t,a),a};const c=new Proxy({...e.props||{},$$events:{}},{get(t,r){return f(s.get(r)??l(r,Reflect.get(t,r)))},has(t,r){return r===X?!0:(f(s.get(r)??l(r,Reflect.get(t,r))),Reflect.has(t,r))},set(t,r,a){return p(s.get(r)??l(r,a),a),Reflect.set(t,r,a)}});this.#e=(e.hydrate?fe:me)(e.component,{target:e.target,anchor:e.anchor,props:c,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),(!e?.props?.$$host||e.sync===!1)&&$(),this.#t=c.$$events;for(const t of Object.keys(this.#e))t==="$set"||t==="$destroy"||t==="$on"||ee(this,t,{get(){return this.#e[t]},set(r){this.#e[t]=r},enumerable:!0});this.#e.$set=t=>{Object.assign(c,t)},this.#e.$destroy=()=>{he(this.#e)}}$set(e){this.#e.$set(e)}$on(e,s){this.#t[e]=this.#t[e]||[];const l=(...c)=>s.call(this,...c);return this.#t[e].push(l),()=>{this.#t[e]=this.#t[e].filter(c=>c!==l)}}$destroy(){this.#e.$destroy()}}const be="modulepreload",Pe=function(o,e){return new URL(o,e).href},M={},O=function(e,s,l){let c=Promise.resolve();if(s&&s.length>0){let m=function(n){return Promise.all(n.map(d=>Promise.resolve(d).then(h=>({status:"fulfilled",value:h}),h=>({status:"rejected",reason:h}))))};const r=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),E=a?.nonce||a?.getAttribute("nonce");c=m(s.map(n=>{if(n=Pe(n,l),n in M)return;M[n]=!0;const d=n.endsWith(".css"),h=d?'[rel="stylesheet"]':"";if(l)for(let _=r.length-1;_>=0;_--){const i=r[_];if(i.href===n&&(!d||i.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${n}"]${h}`))return;const u=document.createElement("link");if(u.rel=d?"stylesheet":be,d||(u.as="script"),u.crossOrigin="",u.href=n,E&&u.setAttribute("nonce",E),document.head.appendChild(u),d)return new Promise((_,i)=>{u.addEventListener("load",_),u.addEventListener("error",()=>i(new Error(`Unable to preload CSS for ${n}`)))})}))}function t(r){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=r,window.dispatchEvent(a),!a.defaultPrevented)throw r}return c.then(r=>{for(const a of r||[])a.status==="rejected"&&t(a.reason);return e().catch(t)})},Te={};var Re=V('<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>'),we=V("<!> <!>",1);function ke(o,e){re(e,!0);let s=T(e,"components",23,()=>[]),l=T(e,"data_0",3,null),c=T(e,"data_1",3,null);se(()=>e.stores.page.set(e.page)),ae(()=>{e.stores,e.page,e.constructors,s(),e.form,l(),c(),e.stores.page.notify()});let t=x(!1),r=x(!1),a=x(null);ne(()=>{const i=e.stores.page.subscribe(()=>{f(t)&&(p(r,!0),oe().then(()=>{p(a,document.title||"untitled page",!0)}))});return p(t,!0),i});const E=A(()=>e.constructors[1]);var m=we(),n=k(m);{var d=i=>{const v=A(()=>e.constructors[0]);var g=S(),R=k(g);C(R,()=>f(v),(y,b)=>{L(b(y,{get data(){return l()},get form(){return e.form},get params(){return e.page.params},children:(w,pe)=>{var N=S(),B=k(N);C(B,()=>f(E),(Y,F)=>{L(F(Y,{get data(){return c()},get form(){return e.form},get params(){return e.page.params}}),U=>s()[1]=U,()=>s()?.[1])}),P(w,N)},$$slots:{default:!0}}),w=>s()[0]=w,()=>s()?.[0])}),P(i,g)},h=i=>{const v=A(()=>e.constructors[0]);var g=S(),R=k(g);C(R,()=>f(v),(y,b)=>{L(b(y,{get data(){return l()},get form(){return e.form},get params(){return e.page.params}}),w=>s()[0]=w,()=>s()?.[0])}),P(i,g)};j(n,i=>{e.constructors[1]?i(d):i(h,-1)})}var u=ce(n,2);{var _=i=>{var v=Re(),g=le(v);{var R=y=>{var b=_e();de(()=>ve(b,f(a))),P(y,b)};j(g,y=>{f(r)&&y(R)})}ue(v),P(i,v)};j(u,i=>{f(t)&&i(_)})}P(o,m),ie()}const je=ye(ke),Le=[()=>O(()=>import("../nodes/0.C3-EWlLD.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]),import.meta.url),()=>O(()=>import("../nodes/1.LTLF-xkJ.js"),__vite__mapDeps([11,1,2,9,5,8]),import.meta.url),()=>O(()=>import("../nodes/2.JKvSvrXU.js"),__vite__mapDeps([12,1,2,3,4,5,6]),import.meta.url),()=>O(()=>import("../nodes/3.QvG7KcU-.js"),__vite__mapDeps([13,1,2,3,7,8,5,9,4,6]),import.meta.url)],Ce=[],Ne={"/":[2],"/session/[project]/[id]":[3]},q={handleError:(({error:o})=>{console.error(o)}),reroute:(()=>{}),transport:{}},Oe=Object.fromEntries(Object.entries(q.transport).map(([o,e])=>[o,e.decode])),De=Object.fromEntries(Object.entries(q.transport).map(([o,e])=>[o,e.encode])),Ie=!1,Me=(o,e)=>Oe[o](e);export{Me as decode,Oe as decoders,Ne as dictionary,De as encoders,Ie as hash,q as hooks,Te as matchers,Le as nodes,je as root,Ce as server_loads};
@@ -0,0 +1 @@
1
+ import{a as r}from"../chunks/BkKWBf8s.js";import{w as t}from"../chunks/CursEjUX.js";export{t as load_css,r as start};
@@ -1 +1 @@
1
- import{d as Lt,f as b,b as N,e as dt,a as i,s as u,c as Qe,t as W}from"../chunks/CG99hqDQ.js";import{I as qt,J as Jt,p as Kt,s as g,a as ct,o as ht,f as de,t as C,c as Qt,b as s,K as Ft,$ as Gt,d as o,e as a,g as e,r as n,h as L}from"../chunks/DWa7QuMS.js";import{i as v,a as Xt,s as ut}from"../chunks/B8g5xi4b.js";import{k as Yt,C as Zt,T as er,n as tr,a as rr,o as ce,p as He,q as ar,t as Le,v as sr,w as qe,x as or,y as Se,z as nr,A as lr,B as ir}from"../chunks/BfRp2rnv.js";import{h as dr}from"../chunks/Dw50LpzA.js";import{g as cr}from"../chunks/CfsdC4sQ.js";import{p as vt}from"../chunks/BWaY6ujL.js";const hr=!0,Br=Object.freeze(Object.defineProperty({__proto__:null,ssr:hr},Symbol.toStringTag,{value:"Module"})),pt=()=>{if(typeof localStorage>"u")return"system";const x=localStorage.getItem("theme");return x==="light"||x==="dark"||x==="system"?x:"system"},Ke=()=>typeof window>"u"?"dark":window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark",he=qt(pt()),gt=Jt(he,x=>x==="system"?Ke():x),Je=x=>{typeof document<"u"&&(document.documentElement.dataset.theme=x)},ur=()=>{const x=pt(),O=x==="system"?Ke():x;Je(O);const U=window.matchMedia("(prefers-color-scheme: light)"),G=()=>{let I="system";he.subscribe(Ie=>I=Ie)(),I==="system"&&Je(Ke())};U.addEventListener("change",G);const ue=gt.subscribe(I=>{Je(I)}),je=he.subscribe(I=>{typeof localStorage<"u"&&localStorage.setItem("theme",I)});return()=>{U.removeEventListener("change",G),ue(),je()}},vr=()=>{he.update(x=>{const O=["light","dark","system"],U=O.indexOf(x);return O[(U+1)%O.length]})};var pr=b('<span class="text-xs text-gh-text-secondary bg-gh-border px-2 py-0.5 rounded hidden sm:inline"> </span>'),gr=Qe('<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="M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"></path></svg>'),mr=Qe('<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="M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"></path></svg>'),fr=Qe('<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="M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"></path></svg>'),xr=b('<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>'),br=b('<div class="px-4 py-3 text-sm text-gh-text-secondary">Searching...</div>'),_r=b('<div class="px-4 py-3 text-sm text-gh-text-secondary">No results found</div>'),yr=b('<div class="text-xs text-gh-text-secondary mt-1 line-clamp-2"> </div>'),wr=b('<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>'),Cr=b('<div class="px-4 py-2 text-xs text-gh-text-secondary border-t border-gh-border">Searching content...</div>'),kr=b("<!> <!>",1),$r=b('<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>'),Tr=b(" <!>",1),Sr=b("<!> ",1),jr=b("<!> ",1),Ir=b('<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 text-gh-text"><h2 id="cleanup-modal-title" class="text-lg font-semibold mb-4">Cleanup Options</h2> <div class="space-y-3 text-gh-text"><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">Preserve 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>'),Mr=b('<div class="fixed bottom-4 right-4 bg-gh-green text-white px-5 py-3 rounded-md text-sm z-50"><!> <!> <!> <!></div>'),Nr=b('<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> <!> <button class="p-1.5 rounded-md text-gh-text-secondary hover:text-gh-text hover:bg-gh-border-subtle transition-colors"><!></button></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 Wr(x,O){Kt(O,!0);const U=()=>ut(he,"$themePreference",ue),G=()=>ut(gt,"$effectiveTheme",ue),[ue,je]=Xt(),I=L(()=>vt.url.pathname.startsWith("/session/")),Ie=t=>{const r="___DOT___";let d=t.replace(/--/g,r).replace(/-/g,"/").replace(new RegExp(r,"g"),"/.");const m=d.match(/^\/Users\/[^/]+\/(.+)$/);return m?`~/${m[1]}`:d},X=L(()=>{if(!e(I))return null;const t=vt.url.pathname.match(/^\/session\/([^/]+)\/([^/]+)/);return t?{projectName:decodeURIComponent(t[1]),sessionId:decodeURIComponent(t[2])}:null});let ve=g(""),q=g(!1),Me=g(!1),pe=g(!1),R=g(null),T=g(null),Ne=g(null),Fe=g("info"),D=g(ct({show:!1,title:"",message:"",variant:"default",onConfirm:()=>{}}));const Oe=(t,r="info")=>{s(Ne,t,!0),s(Fe,r,!0)},mt=(t,r,d,m="default")=>{s(D,{show:!0,title:t,message:r,variant:m,onConfirm:d},!0)},Ge=()=>{s(D,{...e(D),show:!1},!0)};let ge=g(""),_=g(ct([])),Y=g(!1),me=g(!1),J=g(!1),Re=null,M=g(!0),Z=g(!0),P=g(!0),V=g(!1),De=L(()=>e(R)?.reduce((t,r)=>t+r.emptySessions.length,0)??0),ee=L(()=>e(R)?.reduce((t,r)=>t+r.emptyWithTodosCount,0)??0),fe=L(()=>e(R)?.reduce((t,r)=>t+r.orphanAgentCount,0)??0),xe=L(()=>e(R)?.reduce((t,r)=>t+r.orphanTodoCount,0)??0),be=L(()=>e(Z)?e(De)-e(ee):e(De));ht(()=>ur()),ht(async()=>{try{const t=await tr();s(ve,t.version,!0),rr.set({version:t.version,homeDir:t.homeDir,currentProjectName:t.currentProjectName})}catch{s(ve,"unknown")}});const ft=()=>{mt("Shutdown","Shutdown the server?",async()=>{Ge(),s(Me,!0);try{await or()}catch{}},"danger")},xt=async()=>{try{s(R,await sr(),!0),s(pe,!0)}catch(t){Oe(`Error: ${t}`,"error")}},Pe=()=>{s(pe,!1),s(R,null)},bt=async()=>{if(e(be)===0&&!e(P)&&!e(V)){Oe("Nothing to clean up","warning");return}s(q,!0);try{s(T,await nr({clearEmpty:e(M),clearInvalid:!1,skipWithTodos:e(Z),clearOrphanAgents:e(P),clearOrphanTodos:e(V)}),!0),s(pe,!1),s(R,null),setTimeout(()=>{s(T,null),window.location.reload()},2e3)}catch(t){Oe(`Error: ${t}`,"error")}finally{s(q,!1)}},_t=t=>{const r=t.target.value;if(s(ge,r,!0),Re&&clearTimeout(Re),!r.trim()){s(_,[],!0),s(J,!1);return}Re=setTimeout(()=>yt(r),300)},ze=t=>{const r=e(X);return r?[...t].sort((d,m)=>{const y=d.projectName===r.projectName&&d.sessionId===r.sessionId,p=m.projectName===r.projectName&&m.sessionId===r.sessionId;return y&&!p?-1:!y&&p?1:0}):t},yt=async t=>{if(!t.trim())return;const r=e(X);s(Y,!0),s(J,!0);try{const d=await qe(t,{searchContent:!1,project:r?.projectName});s(_,ze(d),!0)}catch(d){console.error("Title search error:",d)}finally{s(Y,!1)}s(me,!0);try{if(r){const p=await qe(t,{searchContent:!0,project:r.projectName}),f=new Set(e(_).map(k=>`${k.projectName}:${k.sessionId}`)),w=p.filter(k=>!f.has(`${k.projectName}:${k.sessionId}`));s(_,ze([...e(_),...w]),!0)}const d=await qe(t,{searchContent:!0}),m=new Set(e(_).map(p=>`${p.projectName}:${p.sessionId}`)),y=d.filter(p=>!m.has(`${p.projectName}:${p.sessionId}`));s(_,ze([...e(_),...y]),!0)}catch(d){console.error("Content search error:",d)}finally{s(me,!1)}},wt=t=>{s(ge,""),s(_,[],!0),s(J,!1),cr(`/session/${encodeURIComponent(t.projectName)}/${encodeURIComponent(t.sessionId)}`)},Ct=()=>{setTimeout(()=>{s(J,!1)},200)};var Xe=Nr();dr("12qhfyh",t=>{Ft(()=>{Gt.title="Claude Sessions"})});var Ee=de(Xe),Ae=o(Ee),Be=o(Ae),We=o(Be),Ye=a(We,2);{var kt=t=>{var r=pr(),d=o(r);n(r),C(()=>u(d,`v${e(ve)??""}`)),i(t,r)};v(Ye,t=>{e(ve)&&t(kt)})}var _e=a(Ye,2),$t=o(_e);{var Tt=t=>{var r=gr();i(t,r)},St=t=>{var r=mr();i(t,r)},jt=t=>{var r=fr();i(t,r)};v($t,t=>{G()==="light"?t(Tt):U()==="system"?t(St,1):t(jt,-1)})}n(_e),n(Be);var Ue=a(Be,2),K=o(Ue);ce(K);var Ze=a(K,2);{var It=t=>{var r=xr();i(t,r)};v(Ze,t=>{(e(Y)||e(me))&&t(It)})}var Mt=a(Ze,2);{var Nt=t=>{var r=$r(),d=o(r);{var m=f=>{var w=br();i(f,w)},y=f=>{var w=_r();i(f,w)},p=f=>{var w=kr(),k=de(w);lr(k,17,()=>e(_),ir,(c,$)=>{var H=wr(),re=o(H),E=o(re),ae=o(E,!0);n(E);var Q=a(E,2),we=o(Q,!0);n(Q);var Ce=a(Q,2),ke=o(Ce,!0);n(Ce),n(re);var se=a(re,2);{var $e=A=>{var oe=yr(),ne=o(oe,!0);n(oe),C(()=>u(ne,e($).snippet)),i(A,oe)};v(se,A=>{e($).snippet&&A($e)})}n(H),C(A=>{Le(E,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"}`),u(ae,e($).matchType==="title"?"Title":"Content"),u(we,A),u(ke,e($).title)},[()=>Ie(e($).projectName)]),N("click",H,()=>wt(e($))),i(c,H)});var z=a(k,2);{var h=c=>{var $=Cr();i(c,$)};v(z,c=>{e(me)&&c(h)})}i(f,w)};v(d,f=>{e(_).length===0&&e(Y)?f(m):e(_).length===0?f(y,1):f(p,-1)})}n(r),i(t,r)};v(Mt,t=>{e(J)&&(e(_).length>0||e(Y))&&t(Nt)})}n(Ue);var et=a(Ue,2),te=o(et),Ot=o(te,!0);n(te);var ye=a(te,2),Rt=o(ye,!0);n(ye),n(et),n(Ae);var Ve=a(Ae,2),Dt=o(Ve);Yt(Dt,()=>O.children),n(Ve),n(Ee);var tt=a(Ee,2);{var Pt=t=>{var r=Ir(),d=o(r),m=a(o(d),2),y=o(m),p=o(y);ce(p);var f=a(p,2),w=a(o(f)),k=o(w);n(w),n(f),n(y);var z=a(y,2);let h;var c=o(z);ce(c);var $=a(c,2),H=a(o($)),re=o(H);n(H),n($),n(z);var E=a(z,2),ae=o(E);ce(ae);var Q=a(ae,2),we=a(o(Q)),Ce=o(we);n(we),n(Q),n(E);var ke=a(E,2),se=o(ke);ce(se);var $e=a(se,2),A=a(o($e)),oe=o(A);n(A),n($e),n(ke),n(m);var ne=a(m,2),st=o(ne);{var At=l=>{var j=Tr(),B=de(j),le=a(B);{var ie=S=>{var F=W();C(()=>u(F,`(skipping ${e(ee)??""} with todos)`)),i(S,F)};v(le,S=>{e(Z)&&e(ee)>0&&S(ie)})}C(()=>u(B,`Will delete ${e(be)??""} session${e(be)!==1?"s":""} `)),i(l,j)};v(st,l=>{e(M)&&l(At)})}var ot=a(st,2);{var Bt=l=>{var j=Sr(),B=de(j);{var le=S=>{var F=W(",");i(S,F)};v(B,S=>{e(M)&&S(le)})}var ie=a(B);C(()=>u(ie,` ${e(fe)??""} orphan agent${e(fe)!==1?"s":""}`)),i(l,j)};v(ot,l=>{e(P)&&e(fe)>0&&l(Bt)})}var nt=a(ot,2);{var Wt=l=>{var j=jr(),B=de(j);{var le=S=>{var F=W(",");i(S,F)};v(B,S=>{(e(M)||e(P))&&S(le)})}var ie=a(B);C(()=>u(ie,` ${e(xe)??""} orphan todo${e(xe)!==1?"s":""}`)),i(l,j)};v(nt,l=>{e(V)&&e(xe)>0&&l(Wt)})}var Ut=a(nt,2);{var Vt=l=>{var j=W("Nothing selected");i(l,j)};v(Ut,l=>{!e(M)&&!e(P)&&!e(V)&&l(Vt)})}n(ne);var lt=a(ne,2),it=o(lt),Te=a(it,2),Ht=o(Te,!0);n(Te),n(lt),n(d),n(r),C(()=>{u(k,`(${e(De)??""})`),h=Le(z,1,"flex items-center gap-3 cursor-pointer ml-6",null,h,{"opacity-50":!e(M)}),c.disabled=!e(M),u(re,`(${e(ee)>0?`-${e(ee)}`:"0"})`),u(Ce,`(${e(fe)??""})`),u(oe,`(${e(xe)??""})`),Te.disabled=e(q)||e(be)===0&&!e(P)&&!e(V),u(Ht,e(q)?"Cleaning...":"Execute Cleanup")}),N("click",r,l=>l.target===l.currentTarget&&Pe()),N("keydown",r,l=>l.key==="Escape"&&Pe()),Se(p,()=>e(M),l=>s(M,l)),Se(c,()=>e(Z),l=>s(Z,l)),Se(ae,()=>e(P),l=>s(P,l)),Se(se,()=>e(V),l=>s(V,l)),N("click",it,Pe),N("click",Te,bt),i(t,r)};v(tt,t=>{e(pe)&&e(R)&&t(Pt)})}var rt=a(tt,2);{var zt=t=>{var r=Mr(),d=o(r);{var m=h=>{var c=W();C(()=>u(c,`Removed ${e(T).removedMessageCount??""} invalid messages.`)),i(h,c)};v(d,h=>{e(T).removedMessageCount>0&&h(m)})}var y=a(d,2);{var p=h=>{var c=W();C(()=>u(c,`Deleted ${e(T).deletedCount??""} empty sessions.`)),i(h,c)};v(y,h=>{e(T).deletedCount>0&&h(p)})}var f=a(y,2);{var w=h=>{var c=W();C(()=>u(c,`Deleted ${e(T).deletedOrphanAgentCount??""} orphan agents.`)),i(h,c)};v(f,h=>{e(T).deletedOrphanAgentCount>0&&h(w)})}var k=a(f,2);{var z=h=>{var c=W();C(()=>u(c,`Deleted ${e(T).deletedOrphanTodoCount??""} orphan todos.`)),i(h,c)};v(k,h=>{e(T).deletedOrphanTodoCount>0&&h(z)})}n(r),i(t,r)};v(rt,t=>{e(T)&&t(zt)})}var at=a(rt,2);Zt(at,{get show(){return e(D).show},get title(){return e(D).title},get message(){return e(D).message},get variant(){return e(D).variant},get onConfirm(){return e(D).onConfirm},onCancel:Ge});var Et=a(at,2);er(Et,{get variant(){return e(Fe)},get message(){return e(Ne)},set message(t){s(Ne,t,!0)}}),C(t=>{He(We,"href",t),He(We,"title",e(X)?"Back to project":"Claude Sessions"),He(_e,"title",`Theme: ${U()??""} (${G()??""})`),ar(K,e(ge)),te.disabled=e(q),u(Ot,e(q)?"Cleaning...":"Cleanup"),ye.disabled=e(Me),u(Rt,e(Me)?"Shutting down...":"Shutdown"),Le(Ve,1,`flex-1 ${e(I)?"":"p-8 max-w-7xl mx-auto"} w-full overflow-y-auto`)},[()=>e(X)?`/#project=${encodeURIComponent(e(X).projectName)}`:"/"]),N("click",_e,function(...t){vr?.apply(this,t)}),N("input",K,_t),dt("focus",K,()=>e(ge)&&s(J,!0)),dt("blur",K,Ct),N("click",te,xt),N("click",ye,ft),i(x,Xe),Qt(),je()}Lt(["click","input","keydown"]);export{Wr as component,Br as universal};
1
+ import{d as Lt,f as b,b as N,e as dt,a as i,s as u,c as Qe,t as W}from"../chunks/WK3b3g7j.js";import{I as qt,J as Jt,p as Kt,s as g,a as ct,o as ht,f as de,t as C,c as Qt,b as s,K as Ft,$ as Gt,d as o,e as a,g as e,r as n,h as L}from"../chunks/DB1q-JFC.js";import{i as v,a as Xt,s as ut}from"../chunks/D1duoKAw.js";import{k as Yt,C as Zt,T as er,n as tr,a as rr,o as ce,p as He,q as ar,t as Le,v as sr,w as qe,x as or,y as Se,z as nr,A as lr,B as ir}from"../chunks/_v9tgGMR.js";import{h as dr}from"../chunks/6j6qgi5m.js";import{g as cr}from"../chunks/BkKWBf8s.js";import{p as vt}from"../chunks/HCtei06b.js";const hr=!0,Br=Object.freeze(Object.defineProperty({__proto__:null,ssr:hr},Symbol.toStringTag,{value:"Module"})),pt=()=>{if(typeof localStorage>"u")return"system";const x=localStorage.getItem("theme");return x==="light"||x==="dark"||x==="system"?x:"system"},Ke=()=>typeof window>"u"?"dark":window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark",he=qt(pt()),gt=Jt(he,x=>x==="system"?Ke():x),Je=x=>{typeof document<"u"&&(document.documentElement.dataset.theme=x)},ur=()=>{const x=pt(),O=x==="system"?Ke():x;Je(O);const U=window.matchMedia("(prefers-color-scheme: light)"),G=()=>{let I="system";he.subscribe(Ie=>I=Ie)(),I==="system"&&Je(Ke())};U.addEventListener("change",G);const ue=gt.subscribe(I=>{Je(I)}),je=he.subscribe(I=>{typeof localStorage<"u"&&localStorage.setItem("theme",I)});return()=>{U.removeEventListener("change",G),ue(),je()}},vr=()=>{he.update(x=>{const O=["light","dark","system"],U=O.indexOf(x);return O[(U+1)%O.length]})};var pr=b('<span class="text-xs text-gh-text-secondary bg-gh-border px-2 py-0.5 rounded hidden sm:inline"> </span>'),gr=Qe('<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="M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"></path></svg>'),mr=Qe('<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="M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"></path></svg>'),fr=Qe('<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="M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"></path></svg>'),xr=b('<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>'),br=b('<div class="px-4 py-3 text-sm text-gh-text-secondary">Searching...</div>'),_r=b('<div class="px-4 py-3 text-sm text-gh-text-secondary">No results found</div>'),yr=b('<div class="text-xs text-gh-text-secondary mt-1 line-clamp-2"> </div>'),wr=b('<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>'),Cr=b('<div class="px-4 py-2 text-xs text-gh-text-secondary border-t border-gh-border">Searching content...</div>'),kr=b("<!> <!>",1),$r=b('<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>'),Tr=b(" <!>",1),Sr=b("<!> ",1),jr=b("<!> ",1),Ir=b('<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 text-gh-text"><h2 id="cleanup-modal-title" class="text-lg font-semibold mb-4">Cleanup Options</h2> <div class="space-y-3 text-gh-text"><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">Preserve 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>'),Mr=b('<div class="fixed bottom-4 right-4 bg-gh-green text-white px-5 py-3 rounded-md text-sm z-50"><!> <!> <!> <!></div>'),Nr=b('<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> <!> <button class="p-1.5 rounded-md text-gh-text-secondary hover:text-gh-text hover:bg-gh-border-subtle transition-colors"><!></button></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 Wr(x,O){Kt(O,!0);const U=()=>ut(he,"$themePreference",ue),G=()=>ut(gt,"$effectiveTheme",ue),[ue,je]=Xt(),I=L(()=>vt.url.pathname.startsWith("/session/")),Ie=t=>{const r="___DOT___";let d=t.replace(/--/g,r).replace(/-/g,"/").replace(new RegExp(r,"g"),"/.");const m=d.match(/^\/Users\/[^/]+\/(.+)$/);return m?`~/${m[1]}`:d},X=L(()=>{if(!e(I))return null;const t=vt.url.pathname.match(/^\/session\/([^/]+)\/([^/]+)/);return t?{projectName:decodeURIComponent(t[1]),sessionId:decodeURIComponent(t[2])}:null});let ve=g(""),q=g(!1),Me=g(!1),pe=g(!1),R=g(null),T=g(null),Ne=g(null),Fe=g("info"),D=g(ct({show:!1,title:"",message:"",variant:"default",onConfirm:()=>{}}));const Oe=(t,r="info")=>{s(Ne,t,!0),s(Fe,r,!0)},mt=(t,r,d,m="default")=>{s(D,{show:!0,title:t,message:r,variant:m,onConfirm:d},!0)},Ge=()=>{s(D,{...e(D),show:!1},!0)};let ge=g(""),_=g(ct([])),Y=g(!1),me=g(!1),J=g(!1),Re=null,M=g(!0),Z=g(!0),P=g(!0),V=g(!1),De=L(()=>e(R)?.reduce((t,r)=>t+r.emptySessions.length,0)??0),ee=L(()=>e(R)?.reduce((t,r)=>t+r.emptyWithTodosCount,0)??0),fe=L(()=>e(R)?.reduce((t,r)=>t+r.orphanAgentCount,0)??0),xe=L(()=>e(R)?.reduce((t,r)=>t+r.orphanTodoCount,0)??0),be=L(()=>e(Z)?e(De)-e(ee):e(De));ht(()=>ur()),ht(async()=>{try{const t=await tr();s(ve,t.version,!0),rr.set({version:t.version,homeDir:t.homeDir,currentProjectName:t.currentProjectName})}catch{s(ve,"unknown")}});const ft=()=>{mt("Shutdown","Shutdown the server?",async()=>{Ge(),s(Me,!0);try{await or()}catch{}},"danger")},xt=async()=>{try{s(R,await sr(),!0),s(pe,!0)}catch(t){Oe(`Error: ${t}`,"error")}},Pe=()=>{s(pe,!1),s(R,null)},bt=async()=>{if(e(be)===0&&!e(P)&&!e(V)){Oe("Nothing to clean up","warning");return}s(q,!0);try{s(T,await nr({clearEmpty:e(M),clearInvalid:!1,skipWithTodos:e(Z),clearOrphanAgents:e(P),clearOrphanTodos:e(V)}),!0),s(pe,!1),s(R,null),setTimeout(()=>{s(T,null),window.location.reload()},2e3)}catch(t){Oe(`Error: ${t}`,"error")}finally{s(q,!1)}},_t=t=>{const r=t.target.value;if(s(ge,r,!0),Re&&clearTimeout(Re),!r.trim()){s(_,[],!0),s(J,!1);return}Re=setTimeout(()=>yt(r),300)},ze=t=>{const r=e(X);return r?[...t].sort((d,m)=>{const y=d.projectName===r.projectName&&d.sessionId===r.sessionId,p=m.projectName===r.projectName&&m.sessionId===r.sessionId;return y&&!p?-1:!y&&p?1:0}):t},yt=async t=>{if(!t.trim())return;const r=e(X);s(Y,!0),s(J,!0);try{const d=await qe(t,{searchContent:!1,project:r?.projectName});s(_,ze(d),!0)}catch(d){console.error("Title search error:",d)}finally{s(Y,!1)}s(me,!0);try{if(r){const p=await qe(t,{searchContent:!0,project:r.projectName}),f=new Set(e(_).map(k=>`${k.projectName}:${k.sessionId}`)),w=p.filter(k=>!f.has(`${k.projectName}:${k.sessionId}`));s(_,ze([...e(_),...w]),!0)}const d=await qe(t,{searchContent:!0}),m=new Set(e(_).map(p=>`${p.projectName}:${p.sessionId}`)),y=d.filter(p=>!m.has(`${p.projectName}:${p.sessionId}`));s(_,ze([...e(_),...y]),!0)}catch(d){console.error("Content search error:",d)}finally{s(me,!1)}},wt=t=>{s(ge,""),s(_,[],!0),s(J,!1),cr(`/session/${encodeURIComponent(t.projectName)}/${encodeURIComponent(t.sessionId)}`)},Ct=()=>{setTimeout(()=>{s(J,!1)},200)};var Xe=Nr();dr("12qhfyh",t=>{Ft(()=>{Gt.title="Claude Sessions"})});var Ee=de(Xe),Ae=o(Ee),Be=o(Ae),We=o(Be),Ye=a(We,2);{var kt=t=>{var r=pr(),d=o(r);n(r),C(()=>u(d,`v${e(ve)??""}`)),i(t,r)};v(Ye,t=>{e(ve)&&t(kt)})}var _e=a(Ye,2),$t=o(_e);{var Tt=t=>{var r=gr();i(t,r)},St=t=>{var r=mr();i(t,r)},jt=t=>{var r=fr();i(t,r)};v($t,t=>{G()==="light"?t(Tt):U()==="system"?t(St,1):t(jt,-1)})}n(_e),n(Be);var Ue=a(Be,2),K=o(Ue);ce(K);var Ze=a(K,2);{var It=t=>{var r=xr();i(t,r)};v(Ze,t=>{(e(Y)||e(me))&&t(It)})}var Mt=a(Ze,2);{var Nt=t=>{var r=$r(),d=o(r);{var m=f=>{var w=br();i(f,w)},y=f=>{var w=_r();i(f,w)},p=f=>{var w=kr(),k=de(w);lr(k,17,()=>e(_),ir,(c,$)=>{var H=wr(),re=o(H),E=o(re),ae=o(E,!0);n(E);var Q=a(E,2),we=o(Q,!0);n(Q);var Ce=a(Q,2),ke=o(Ce,!0);n(Ce),n(re);var se=a(re,2);{var $e=A=>{var oe=yr(),ne=o(oe,!0);n(oe),C(()=>u(ne,e($).snippet)),i(A,oe)};v(se,A=>{e($).snippet&&A($e)})}n(H),C(A=>{Le(E,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"}`),u(ae,e($).matchType==="title"?"Title":"Content"),u(we,A),u(ke,e($).title)},[()=>Ie(e($).projectName)]),N("click",H,()=>wt(e($))),i(c,H)});var z=a(k,2);{var h=c=>{var $=Cr();i(c,$)};v(z,c=>{e(me)&&c(h)})}i(f,w)};v(d,f=>{e(_).length===0&&e(Y)?f(m):e(_).length===0?f(y,1):f(p,-1)})}n(r),i(t,r)};v(Mt,t=>{e(J)&&(e(_).length>0||e(Y))&&t(Nt)})}n(Ue);var et=a(Ue,2),te=o(et),Ot=o(te,!0);n(te);var ye=a(te,2),Rt=o(ye,!0);n(ye),n(et),n(Ae);var Ve=a(Ae,2),Dt=o(Ve);Yt(Dt,()=>O.children),n(Ve),n(Ee);var tt=a(Ee,2);{var Pt=t=>{var r=Ir(),d=o(r),m=a(o(d),2),y=o(m),p=o(y);ce(p);var f=a(p,2),w=a(o(f)),k=o(w);n(w),n(f),n(y);var z=a(y,2);let h;var c=o(z);ce(c);var $=a(c,2),H=a(o($)),re=o(H);n(H),n($),n(z);var E=a(z,2),ae=o(E);ce(ae);var Q=a(ae,2),we=a(o(Q)),Ce=o(we);n(we),n(Q),n(E);var ke=a(E,2),se=o(ke);ce(se);var $e=a(se,2),A=a(o($e)),oe=o(A);n(A),n($e),n(ke),n(m);var ne=a(m,2),st=o(ne);{var At=l=>{var j=Tr(),B=de(j),le=a(B);{var ie=S=>{var F=W();C(()=>u(F,`(skipping ${e(ee)??""} with todos)`)),i(S,F)};v(le,S=>{e(Z)&&e(ee)>0&&S(ie)})}C(()=>u(B,`Will delete ${e(be)??""} session${e(be)!==1?"s":""} `)),i(l,j)};v(st,l=>{e(M)&&l(At)})}var ot=a(st,2);{var Bt=l=>{var j=Sr(),B=de(j);{var le=S=>{var F=W(",");i(S,F)};v(B,S=>{e(M)&&S(le)})}var ie=a(B);C(()=>u(ie,` ${e(fe)??""} orphan agent${e(fe)!==1?"s":""}`)),i(l,j)};v(ot,l=>{e(P)&&e(fe)>0&&l(Bt)})}var nt=a(ot,2);{var Wt=l=>{var j=jr(),B=de(j);{var le=S=>{var F=W(",");i(S,F)};v(B,S=>{(e(M)||e(P))&&S(le)})}var ie=a(B);C(()=>u(ie,` ${e(xe)??""} orphan todo${e(xe)!==1?"s":""}`)),i(l,j)};v(nt,l=>{e(V)&&e(xe)>0&&l(Wt)})}var Ut=a(nt,2);{var Vt=l=>{var j=W("Nothing selected");i(l,j)};v(Ut,l=>{!e(M)&&!e(P)&&!e(V)&&l(Vt)})}n(ne);var lt=a(ne,2),it=o(lt),Te=a(it,2),Ht=o(Te,!0);n(Te),n(lt),n(d),n(r),C(()=>{u(k,`(${e(De)??""})`),h=Le(z,1,"flex items-center gap-3 cursor-pointer ml-6",null,h,{"opacity-50":!e(M)}),c.disabled=!e(M),u(re,`(${e(ee)>0?`-${e(ee)}`:"0"})`),u(Ce,`(${e(fe)??""})`),u(oe,`(${e(xe)??""})`),Te.disabled=e(q)||e(be)===0&&!e(P)&&!e(V),u(Ht,e(q)?"Cleaning...":"Execute Cleanup")}),N("click",r,l=>l.target===l.currentTarget&&Pe()),N("keydown",r,l=>l.key==="Escape"&&Pe()),Se(p,()=>e(M),l=>s(M,l)),Se(c,()=>e(Z),l=>s(Z,l)),Se(ae,()=>e(P),l=>s(P,l)),Se(se,()=>e(V),l=>s(V,l)),N("click",it,Pe),N("click",Te,bt),i(t,r)};v(tt,t=>{e(pe)&&e(R)&&t(Pt)})}var rt=a(tt,2);{var zt=t=>{var r=Mr(),d=o(r);{var m=h=>{var c=W();C(()=>u(c,`Removed ${e(T).removedMessageCount??""} invalid messages.`)),i(h,c)};v(d,h=>{e(T).removedMessageCount>0&&h(m)})}var y=a(d,2);{var p=h=>{var c=W();C(()=>u(c,`Deleted ${e(T).deletedCount??""} empty sessions.`)),i(h,c)};v(y,h=>{e(T).deletedCount>0&&h(p)})}var f=a(y,2);{var w=h=>{var c=W();C(()=>u(c,`Deleted ${e(T).deletedOrphanAgentCount??""} orphan agents.`)),i(h,c)};v(f,h=>{e(T).deletedOrphanAgentCount>0&&h(w)})}var k=a(f,2);{var z=h=>{var c=W();C(()=>u(c,`Deleted ${e(T).deletedOrphanTodoCount??""} orphan todos.`)),i(h,c)};v(k,h=>{e(T).deletedOrphanTodoCount>0&&h(z)})}n(r),i(t,r)};v(rt,t=>{e(T)&&t(zt)})}var at=a(rt,2);Zt(at,{get show(){return e(D).show},get title(){return e(D).title},get message(){return e(D).message},get variant(){return e(D).variant},get onConfirm(){return e(D).onConfirm},onCancel:Ge});var Et=a(at,2);er(Et,{get variant(){return e(Fe)},get message(){return e(Ne)},set message(t){s(Ne,t,!0)}}),C(t=>{He(We,"href",t),He(We,"title",e(X)?"Back to project":"Claude Sessions"),He(_e,"title",`Theme: ${U()??""} (${G()??""})`),ar(K,e(ge)),te.disabled=e(q),u(Ot,e(q)?"Cleaning...":"Cleanup"),ye.disabled=e(Me),u(Rt,e(Me)?"Shutting down...":"Shutdown"),Le(Ve,1,`flex-1 ${e(I)?"":"p-8 max-w-7xl mx-auto"} w-full overflow-y-auto`)},[()=>e(X)?`/#project=${encodeURIComponent(e(X).projectName)}`:"/"]),N("click",_e,function(...t){vr?.apply(this,t)}),N("input",K,_t),dt("focus",K,()=>e(ge)&&s(J,!0)),dt("blur",K,Ct),N("click",te,xt),N("click",ye,ft),i(x,Xe),Qt(),je()}Lt(["click","input","keydown"]);export{Wr as component,Br as universal};
@@ -1 +1 @@
1
- import{f as v,a as b,s as c}from"../chunks/CG99hqDQ.js";import{x,y,u as i,z as k,A as u,B as z,g as h,D as A,F as B,G as D,p as E,f as F,t as G,c as j,d as m,r as _,e as q}from"../chunks/DWa7QuMS.js";import{p as g}from"../chunks/BWaY6ujL.js";function w(r=!1){const t=x,e=t.l.u;if(!e)return;let a=()=>A(t.s);if(r){let o=0,s={};const f=B(()=>{let p=!1;const l=t.s;for(const n in l)l[n]!==s[n]&&(s[n]=l[n],p=!0);return p&&o++,o});a=()=>h(f)}e.b.length&&y(()=>{d(t,a),u(e.b)}),i(()=>{const o=k(()=>e.m.map(z));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()}D();var C=v("<h1> </h1> <p> </p>",1);function K(r,t){E(t,!1),w();var e=C(),a=F(e),o=m(a,!0);_(a);var s=q(a,2),f=m(s,!0);_(s),G(()=>{c(o,g.status),c(f,g.error?.message)}),b(r,e),j()}export{K as component};
1
+ import{f as v,a as b,s as c}from"../chunks/WK3b3g7j.js";import{x,y,u as i,z as k,A as u,B as z,g as h,D as A,F as B,G as D,p as E,f as F,t as G,c as j,d as m,r as _,e as q}from"../chunks/DB1q-JFC.js";import{p as g}from"../chunks/HCtei06b.js";function w(r=!1){const t=x,e=t.l.u;if(!e)return;let a=()=>A(t.s);if(r){let o=0,s={};const f=B(()=>{let p=!1;const l=t.s;for(const n in l)l[n]!==s[n]&&(s[n]=l[n],p=!0);return p&&o++,o});a=()=>h(f)}e.b.length&&y(()=>{d(t,a),u(e.b)}),i(()=>{const o=k(()=>e.m.map(z));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()}D();var C=v("<h1> </h1> <p> </p>",1);function K(r,t){E(t,!1),w();var e=C(),a=F(e),o=m(a,!0);_(a);var s=q(a,2),f=m(s,!0);_(s),G(()=>{c(o,g.status),c(f,g.error?.message)}),b(r,e),j()}export{K as component};
@@ -1,4 +1,4 @@
1
- import{f as W,a as k,s as Te}from"../chunks/CG99hqDQ.js";import{p as _e,s as g,a as y,u as xe,g as e,b as o,o as Ie,f as De,c as $e,d as se,e as N,h as oe,r as ae,t as Ae}from"../chunks/DWa7QuMS.js";import{s as be,i as ne,a as Fe}from"../chunks/B8g5xi4b.js";import{P as Le,S as Re,T as Oe,C as Ee,I as Ve,e as H,a as ke,g as U,l as He,r as Ue,b as We,c as qe,d as ze,f as Be,h as Ge,i as Je,u as Ke,s as Qe,m as Xe,j as Ye}from"../chunks/BfRp2rnv.js";var Ze=W('<div class="fixed bottom-4 right-4 bg-gh-accent text-white px-4 py-2 rounded">Loading...</div>'),et=W('<div class="fixed bottom-4 right-4 bg-gh-red text-white px-4 py-2 rounded"> </div>'),tt=W('<div class="grid grid-cols-[350px_1fr] gap-4 h-[calc(100vh-120px)]"><!> <!></div> <!> <!> <!> <!> <!>',1);function rt(re,ie){_e(ie,!0);const q=()=>be(ke,"$appConfig",ce),[ce,ue]=Fe();let h=g(y([])),c=g(y(new Map)),f=g(y(new Map)),m=g(y(new Set)),i=g(null),l=g(y([])),$=g(y([])),A=g(y([])),w=g(!1),P=g(null),d=g(null),x=g(null),T=g("summary"),_=g("desc"),j=g(y({show:!1,title:"",message:"",variant:"default",onConfirm:()=>{}})),v=g(y({show:!1,title:"",label:"",initialValue:"",onConfirm:()=>{}}));const b=(t,s,a,n="default")=>{o(j,{show:!0,title:t,message:s,variant:n,onConfirm:a},!0)},I=()=>{o(j,{...e(j),show:!1},!0)},z=(t,s,a,n)=>{o(v,{show:!0,title:t,label:s,initialValue:a,onConfirm:n},!0)},F=()=>{o(v,{...e(v),show:!1},!0)},L=()=>{const t=window.location.hash.slice(1),s=new URLSearchParams(t);return{project:s.get("project")??void 0,session:s.get("session")??void 0}},M=(t,s)=>{const a=new URLSearchParams;t&&a.set("project",t),s&&a.set("session",s);const n=a.toString();window.history.replaceState(null,"",n?`#${n}`:window.location.pathname)},de=async()=>{o(w,!0),o(d,null);try{o(h,await He(),!0)}catch(t){o(d,String(t),!0)}finally{o(w,!1)}},R=async t=>{if(!e(c).has(t)){o(P,t,!0);try{const s=await H(t,{field:e(T),order:e(_)}),a=[],n=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}),n.set(r.id,r);e(c).set(t,a),o(c,new Map(e(c)),!0),e(f).set(t,n),o(f,new Map(e(f)),!0)}catch(s){o(d,String(s),!0)}finally{o(P,null)}}},O=async()=>{const{project:t,session:s}=L();if(t&&(await R(t),e(m).add(t),o(m,new Set(e(m)),!0),s)){const n=e(c).get(t)?.find(r=>r.id===s);n&&await B(n,!1)}},le=async()=>{const{project:t}=L();if(t)return;const s=q().currentProjectName;if(!s)return;e(h).find(n=>n.name===s)&&(await R(s),e(m).add(s),o(m,new Set(e(m)),!0),M(s))},pe=async t=>{e(m).has(t)?(e(m).delete(t),o(m,new Set(e(m)),!0),e(i)?.projectName===t&&M()):(await R(t),e(m).add(t),o(m,new Set(e(m)),!0),M(t,e(i)?.projectName===t?e(i).id:void 0))},B=async(t,s=!0)=>{o(i,t,!0),o(w,!0),o(d,null);try{o(l,await U(t.projectName,t.id),!0);const a=e(f).get(t.projectName)?.get(t.id);if(a){const n=a.todos?.sessionTodos??[],r=a.todos?.agentTodos?.flatMap(p=>p.todos)??[];o($,[...n,...r],!0),o(A,a.agents??[],!0)}else{const n=await qe(t.projectName,t.id),r=n.todos?.sessionTodos??[],p=n.todos?.agentTodos?.flatMap(u=>u.todos)??[];o($,[...r,...p],!0),o(A,n.agents??[],!0)}s&&M(t.projectName,t.id)}catch(a){o(d,String(a),!0)}finally{o(w,!1)}},ge=(t,s)=>{t.stopPropagation(),b("Delete Session",`Delete session "${s.title}"?`,async()=>{I();try{await Ge(s.projectName,s.id);const a=e(c).get(s.projectName);a&&(e(c).set(s.projectName,a.filter(n=>n.id!==s.id)),o(c,new Map(e(c)),!0)),e(i)?.id===s.id&&(o(i,null),o(l,[],!0),M(s.projectName))}catch(a){o(d,String(a),!0)}},"danger")},fe=(t,s)=>{t.stopPropagation();const a=e(f).get(s.projectName)?.get(s.id),n=We(a?.customTitle,a?.currentSummary,s.title,1/0,"");z("Rename Session","Sets custom-title for CLI, first summary for VSCode extension",n,async r=>{if(F(),r!==n)try{await Je(s.projectName,s.id,r),a&&(a.customTitle=r,a.currentSummary=r,a.summaries.length>0?a.summaries[0]={...a.summaries[0],summary:r}:a.summaries=[{summary:r}]),o(c,new Map(e(c)),!0),o(f,new Map(e(f)),!0),e(i)?.id===s.id&&o(l,await U(s.projectName,s.id),!0)}catch(p){o(d,String(p),!0)}})},me=async t=>{if(!e(i))return;const s=t.uuid||t.messageId||t.leafUuid;if(!s)return;const a=t.type==="file-history-snapshot"?"file-history-snapshot":t.type==="summary"?"summary":void 0,n=[...e(l)];ze(n,s,a),o(l,n,!0);const p=e(c).get(e(i).projectName)?.find(u=>u.id===e(i).id);p&&(p.messageCount=e(l).length,o(c,new Map(e(c)),!0)),Be(e(i).projectName,e(i).id,s,a).catch(u=>{o(d,String(u),!0)})},he=t=>{if(!e(i))return;const s=t.customTitle??"";z("Edit Custom Title","Custom title:",s,async a=>{if(F(),a!==s)try{await Ke(e(i).projectName,e(i).id,t.uuid,a),t.customTitle=a,o(l,[...e(l)],!0)}catch(n){o(d,String(n),!0)}})},Se=t=>{if(!e(i))return;const s=e(l).findIndex(r=>r.uuid===t.uuid),a=s,n=e(l).length-s;b("Split Session",`Split session at this message?
1
+ import{f as W,a as k,s as Te}from"../chunks/WK3b3g7j.js";import{p as _e,s as g,a as y,u as xe,g as e,b as o,o as Ie,f as De,c as $e,d as se,e as N,h as oe,r as ae,t as Ae}from"../chunks/DB1q-JFC.js";import{s as be,i as ne,a as Fe}from"../chunks/D1duoKAw.js";import{P as Le,S as Re,T as Oe,C as Ee,I as Ve,e as H,a as ke,g as U,l as He,r as Ue,b as We,c as qe,d as ze,f as Be,h as Ge,i as Je,u as Ke,s as Qe,m as Xe,j as Ye}from"../chunks/_v9tgGMR.js";var Ze=W('<div class="fixed bottom-4 right-4 bg-gh-accent text-white px-4 py-2 rounded">Loading...</div>'),et=W('<div class="fixed bottom-4 right-4 bg-gh-red text-white px-4 py-2 rounded"> </div>'),tt=W('<div class="grid grid-cols-[350px_1fr] gap-4 h-[calc(100vh-120px)]"><!> <!></div> <!> <!> <!> <!> <!>',1);function rt(re,ie){_e(ie,!0);const q=()=>be(ke,"$appConfig",ce),[ce,ue]=Fe();let h=g(y([])),c=g(y(new Map)),f=g(y(new Map)),m=g(y(new Set)),i=g(null),l=g(y([])),$=g(y([])),A=g(y([])),w=g(!1),P=g(null),d=g(null),x=g(null),T=g("summary"),_=g("desc"),j=g(y({show:!1,title:"",message:"",variant:"default",onConfirm:()=>{}})),v=g(y({show:!1,title:"",label:"",initialValue:"",onConfirm:()=>{}}));const b=(t,s,a,n="default")=>{o(j,{show:!0,title:t,message:s,variant:n,onConfirm:a},!0)},I=()=>{o(j,{...e(j),show:!1},!0)},z=(t,s,a,n)=>{o(v,{show:!0,title:t,label:s,initialValue:a,onConfirm:n},!0)},F=()=>{o(v,{...e(v),show:!1},!0)},L=()=>{const t=window.location.hash.slice(1),s=new URLSearchParams(t);return{project:s.get("project")??void 0,session:s.get("session")??void 0}},M=(t,s)=>{const a=new URLSearchParams;t&&a.set("project",t),s&&a.set("session",s);const n=a.toString();window.history.replaceState(null,"",n?`#${n}`:window.location.pathname)},de=async()=>{o(w,!0),o(d,null);try{o(h,await He(),!0)}catch(t){o(d,String(t),!0)}finally{o(w,!1)}},R=async t=>{if(!e(c).has(t)){o(P,t,!0);try{const s=await H(t,{field:e(T),order:e(_)}),a=[],n=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}),n.set(r.id,r);e(c).set(t,a),o(c,new Map(e(c)),!0),e(f).set(t,n),o(f,new Map(e(f)),!0)}catch(s){o(d,String(s),!0)}finally{o(P,null)}}},O=async()=>{const{project:t,session:s}=L();if(t&&(await R(t),e(m).add(t),o(m,new Set(e(m)),!0),s)){const n=e(c).get(t)?.find(r=>r.id===s);n&&await B(n,!1)}},le=async()=>{const{project:t}=L();if(t)return;const s=q().currentProjectName;if(!s)return;e(h).find(n=>n.name===s)&&(await R(s),e(m).add(s),o(m,new Set(e(m)),!0),M(s))},pe=async t=>{e(m).has(t)?(e(m).delete(t),o(m,new Set(e(m)),!0),e(i)?.projectName===t&&M()):(await R(t),e(m).add(t),o(m,new Set(e(m)),!0),M(t,e(i)?.projectName===t?e(i).id:void 0))},B=async(t,s=!0)=>{o(i,t,!0),o(w,!0),o(d,null);try{o(l,await U(t.projectName,t.id),!0);const a=e(f).get(t.projectName)?.get(t.id);if(a){const n=a.todos?.sessionTodos??[],r=a.todos?.agentTodos?.flatMap(p=>p.todos)??[];o($,[...n,...r],!0),o(A,a.agents??[],!0)}else{const n=await qe(t.projectName,t.id),r=n.todos?.sessionTodos??[],p=n.todos?.agentTodos?.flatMap(u=>u.todos)??[];o($,[...r,...p],!0),o(A,n.agents??[],!0)}s&&M(t.projectName,t.id)}catch(a){o(d,String(a),!0)}finally{o(w,!1)}},ge=(t,s)=>{t.stopPropagation(),b("Delete Session",`Delete session "${s.title}"?`,async()=>{I();try{await Ge(s.projectName,s.id);const a=e(c).get(s.projectName);a&&(e(c).set(s.projectName,a.filter(n=>n.id!==s.id)),o(c,new Map(e(c)),!0)),e(i)?.id===s.id&&(o(i,null),o(l,[],!0),M(s.projectName))}catch(a){o(d,String(a),!0)}},"danger")},fe=(t,s)=>{t.stopPropagation();const a=e(f).get(s.projectName)?.get(s.id),n=We(a?.customTitle,a?.currentSummary,s.title,1/0,"");z("Rename Session","Sets custom-title for CLI, first summary for VSCode extension",n,async r=>{if(F(),r!==n)try{await Je(s.projectName,s.id,r),a&&(a.customTitle=r,a.currentSummary=r,a.summaries.length>0?a.summaries[0]={...a.summaries[0],summary:r}:a.summaries=[{summary:r}]),o(c,new Map(e(c)),!0),o(f,new Map(e(f)),!0),e(i)?.id===s.id&&o(l,await U(s.projectName,s.id),!0)}catch(p){o(d,String(p),!0)}})},me=async t=>{if(!e(i))return;const s=t.uuid||t.messageId||t.leafUuid;if(!s)return;const a=t.type==="file-history-snapshot"?"file-history-snapshot":t.type==="summary"?"summary":void 0,n=[...e(l)];ze(n,s,a),o(l,n,!0);const p=e(c).get(e(i).projectName)?.find(u=>u.id===e(i).id);p&&(p.messageCount=e(l).length,o(c,new Map(e(c)),!0)),Be(e(i).projectName,e(i).id,s,a).catch(u=>{o(d,String(u),!0)})},he=t=>{if(!e(i))return;const s=t.customTitle??"";z("Edit Custom Title","Custom title:",s,async a=>{if(F(),a!==s)try{await Ke(e(i).projectName,e(i).id,t.uuid,a),t.customTitle=a,o(l,[...e(l)],!0)}catch(n){o(d,String(n),!0)}})},Se=t=>{if(!e(i))return;const s=e(l).findIndex(r=>r.uuid===t.uuid),a=s,n=e(l).length-s;b("Split Session",`Split session at this message?
2
2
 
3
3
  This session will keep ${n} messages (from here onwards).
4
4
  Old messages (${a}) will be moved to a new session.`,async()=>{I();const r=e(i).projectName,p=e(i).id;try{o(w,!0);const u=await Qe(r,p,t.uuid);if(u.success&&u.newSessionId){const C=await H(r,{field:e(T),order:e(_)}),D=[],ee=new Map;for(const S of C)D.push({id:S.id,projectName:r,title:S.title,messageCount:S.messageCount,createdAt:S.createdAt,updatedAt:S.updatedAt}),ee.set(S.id,S);e(c).set(r,D),o(c,new Map(e(c)),!0),e(f).set(r,ee),o(f,new Map(e(f)),!0);const te=e(h).find(S=>S.name===r);te&&(te.sessionCount=D.length,o(h,[...e(h)],!0)),o(l,e(l).slice(s),!0);const V=D.find(S=>S.id===p);V&&(V.messageCount=e(l).length,o(i,{...V},!0)),o(x,`Session split! Old messages moved to new session: ${u.newSessionId.slice(0,8)}...`)}else o(d,u.error??"Failed to split session",!0)}catch(u){o(d,String(u),!0)}finally{o(w,!1)}})},we=(t,s)=>{b("Move Session",`Move session "${t.title}" to ${s.split("-").pop()}?`,async()=>{I();try{o(w,!0);const a=await Xe(t.projectName,t.id,s);if(a.success){const n=e(c).get(t.projectName);n&&e(c).set(t.projectName,n.filter(C=>C.id!==t.id));const r=await Ye(s);e(c).set(s,r),o(c,new Map(e(c)),!0);const p=e(h).find(C=>C.name===t.projectName),u=e(h).find(C=>C.name===s);p&&p.sessionCount--,u&&u.sessionCount++,o(h,[...e(h)],!0),e(i)?.id===t.id&&(o(i,null),o(l,[],!0),M())}else o(d,a.error??"Failed to move session",!0)}catch(a){o(d,String(a),!0)}finally{o(w,!1)}})},ye=async(t,s)=>{t.stopPropagation();try{const a=await Ue(s.projectName,s.id);a.success?o(x,`Claude session started (PID: ${a.pid})`):o(d,a.error??"Failed to resume session",!0)}catch(a){o(d,String(a),!0)}};let G=g(!1);xe(()=>{if(q().currentProjectName&&e(h).length>0&&!e(G)){const{project:s}=L();s||(o(G,!0),le())}});const je=async(t,s)=>{o(T,t,!0),o(_,s,!0),localStorage.setItem("claudeSessionsSortField",t),localStorage.setItem("claudeSessionsSortOrder",s);for(const a of e(m)){o(P,a,!0);try{const n=await H(a,{field:t,order:s}),r=[],p=new Map;for(const u of n)r.push({id:u.id,projectName:a,title:u.title,messageCount:u.messageCount,createdAt:u.createdAt,updatedAt:u.updatedAt}),p.set(u.id,u);e(c).set(a,r),e(f).set(a,p)}catch(n){o(d,String(n),!0)}}o(c,new Map(e(c)),!0),o(f,new Map(e(f)),!0),o(P,null)},ve=()=>{const t=localStorage.getItem("claudeSessionsSortField"),s=localStorage.getItem("claudeSessionsSortOrder");t&&o(T,t,!0),s&&o(_,s,!0)};Ie(()=>(ve(),de().then(()=>O()),window.addEventListener("hashchange",O),()=>window.removeEventListener("hashchange",O)));var J=tt(),E=De(J),K=se(E);Le(K,{get projects(){return e(h)},get projectSessions(){return e(c)},get projectSessionData(){return e(f)},get expandedProjects(){return e(m)},get selectedSession(){return e(i)},get loadingProject(){return e(P)},get sortField(){return e(T)},get sortOrder(){return e(_)},onToggleProject:pe,onSelectSession:B,onRenameSession:fe,onDeleteSession:ge,onMoveSession:we,onResumeSession:ye,onSortChange:je});var Ce=N(K,2);{let t=oe(()=>e(i)?e(f).get(e(i).projectName)?.get(e(i).id)?.customTitle:void 0),s=oe(()=>e(i)?e(f).get(e(i).projectName)?.get(e(i).id)?.currentSummary:void 0);Re(Ce,{get session(){return e(i)},get messages(){return e(l)},get todos(){return e($)},get agents(){return e(A)},get customTitle(){return e(t)},get currentSummary(){return e(s)},onMessagesChange:a=>o(l,a,!0),onRefresh:async()=>{e(i)&&o(l,await U(e(i).projectName,e(i).id),!0)},onDeleteMessage:me,onEditTitle:he,onSplitSession:Se})}ae(E);var Q=N(E,2);{var Me=t=>{var s=Ze();k(t,s)};ne(Q,t=>{e(w)&&t(Me)})}var X=N(Q,2);{var Ne=t=>{var s=et(),a=se(s,!0);ae(s),Ae(()=>Te(a,e(d))),k(t,s)};ne(X,t=>{e(d)&&t(Ne)})}var Y=N(X,2);Oe(Y,{get message(){return e(x)},set message(t){o(x,t,!0)}});var Z=N(Y,2);Ee(Z,{get show(){return e(j).show},get title(){return e(j).title},get message(){return e(j).message},get variant(){return e(j).variant},get onConfirm(){return e(j).onConfirm},onCancel:I});var Pe=N(Z,2);Ve(Pe,{get show(){return e(v).show},get title(){return e(v).title},get label(){return e(v).label},get initialValue(){return e(v).initialValue},get onConfirm(){return e(v).onConfirm},onCancel:F}),k(re,J),$e(),ue()}export{rt as component};
@@ -1,4 +1,4 @@
1
- import{f as U,a as D,s as ne}from"../chunks/CG99hqDQ.js";import{p as ae,s as i,a as y,o as re,f as ie,g as e,c as le,i as ue,b as t,e as x,$ as ce,h as C,d as M,r as R,t as de}from"../chunks/DWa7QuMS.js";import{i as me}from"../chunks/B8g5xi4b.js";import{h as ge}from"../chunks/Dw50LpzA.js";import{g as fe}from"../chunks/CfsdC4sQ.js";import{p as P}from"../chunks/BWaY6ujL.js";import{T as pe,C as he,I as Se,l as ve,j as we,g as W,c as k,S as ye,u as Ce,s as Te,i as je,h as _e}from"../chunks/BfRp2rnv.js";var Ie=U('<div class="flex items-center justify-center h-full"><div class="text-gh-muted">Loading...</div></div>'),be=U('<div class="flex items-center justify-center h-full"><div class="text-gh-red"> </div></div>'),Ne=U('<div class="h-screen bg-gh-bg"><!></div> <!> <!> <!>',1);function Ve(q,z){ae(z,!0);let o=i(null),l=i(y([])),T=i(y([])),j=i(y([])),v=i(!0),c=i(null),_=i(null),$=i(""),f=i(void 0),d=i(void 0),m=i(y({show:!1,title:"",message:"",variant:"default",onConfirm:()=>{}})),g=i(y({show:!1,title:"",label:"",initialValue:"",onConfirm:()=>{}}));const V=(s,n,a,r="default")=>{t(m,{show:!0,title:s,message:n,variant:r,onConfirm:a},!0)},I=()=>{t(m,{...e(m),show:!1},!0)},E=(s,n,a,r)=>{t(g,{show:!0,title:s,label:n,initialValue:a,onConfirm:r},!0)},b=()=>{t(g,{...e(g),show:!1},!0)},p=C(()=>decodeURIComponent(P.params.project??"")),w=C(()=>decodeURIComponent(P.params.id??"")),B=C(()=>e(f)??(e(d)&&e(d).length>50?e(d).slice(0,47)+"...":e(d))??e(o)?.title??"Untitled"),O=C(()=>`/#project=${encodeURIComponent(e(p))}`),G=async()=>{t(v,!0),t(c,null);try{const n=(await ve()).find(S=>S.name===e(p));t($,n?.displayName??e(p),!0);const a=await we(e(p));t(o,a.find(S=>S.id===e(w))??{id:e(w),projectName:e(p),title:e(w),messageCount:0,updatedAt:new Date().toISOString()},!0),t(l,await W(e(p),e(w)),!0);const r=await k(e(p),e(w)),u=r.todos?.sessionTodos??[],h=r.todos?.agentTodos?.flatMap(S=>S.todos)??[];t(T,[...u,...h],!0),t(j,r.agents??[],!0),t(f,r.customTitle,!0),t(d,r.currentSummary,!0)}catch(s){t(c,String(s),!0)}finally{t(v,!1)}},H=s=>{if(!e(o))return;const n=s.customTitle??"";E("Edit Custom Title","Custom title:",n,async a=>{if(b(),a!==n)try{await Ce(e(o).projectName,e(o).id,s.uuid,a),s.customTitle=a,t(l,[...e(l)],!0)}catch(r){t(c,String(r),!0)}})},J=s=>{if(!e(o))return;const n=e(l).findIndex(u=>u.uuid===s.uuid),a=n,r=e(l).length-n;V("Split Session",`Split session at this message?
1
+ import{f as U,a as D,s as ne}from"../chunks/WK3b3g7j.js";import{p as ae,s as i,a as y,o as re,f as ie,g as e,c as le,i as ue,b as t,e as x,$ as ce,h as C,d as M,r as R,t as de}from"../chunks/DB1q-JFC.js";import{i as me}from"../chunks/D1duoKAw.js";import{h as ge}from"../chunks/6j6qgi5m.js";import{g as fe}from"../chunks/BkKWBf8s.js";import{p as P}from"../chunks/HCtei06b.js";import{T as pe,C as he,I as Se,l as ve,j as we,g as W,c as k,S as ye,u as Ce,s as Te,i as je,h as _e}from"../chunks/_v9tgGMR.js";var Ie=U('<div class="flex items-center justify-center h-full"><div class="text-gh-muted">Loading...</div></div>'),be=U('<div class="flex items-center justify-center h-full"><div class="text-gh-red"> </div></div>'),Ne=U('<div class="h-screen bg-gh-bg"><!></div> <!> <!> <!>',1);function Ve(q,z){ae(z,!0);let o=i(null),l=i(y([])),T=i(y([])),j=i(y([])),v=i(!0),c=i(null),_=i(null),$=i(""),f=i(void 0),d=i(void 0),m=i(y({show:!1,title:"",message:"",variant:"default",onConfirm:()=>{}})),g=i(y({show:!1,title:"",label:"",initialValue:"",onConfirm:()=>{}}));const V=(s,n,a,r="default")=>{t(m,{show:!0,title:s,message:n,variant:r,onConfirm:a},!0)},I=()=>{t(m,{...e(m),show:!1},!0)},E=(s,n,a,r)=>{t(g,{show:!0,title:s,label:n,initialValue:a,onConfirm:r},!0)},b=()=>{t(g,{...e(g),show:!1},!0)},p=C(()=>decodeURIComponent(P.params.project??"")),w=C(()=>decodeURIComponent(P.params.id??"")),B=C(()=>e(f)??(e(d)&&e(d).length>50?e(d).slice(0,47)+"...":e(d))??e(o)?.title??"Untitled"),O=C(()=>`/#project=${encodeURIComponent(e(p))}`),G=async()=>{t(v,!0),t(c,null);try{const n=(await ve()).find(S=>S.name===e(p));t($,n?.displayName??e(p),!0);const a=await we(e(p));t(o,a.find(S=>S.id===e(w))??{id:e(w),projectName:e(p),title:e(w),messageCount:0,updatedAt:new Date().toISOString()},!0),t(l,await W(e(p),e(w)),!0);const r=await k(e(p),e(w)),u=r.todos?.sessionTodos??[],h=r.todos?.agentTodos?.flatMap(S=>S.todos)??[];t(T,[...u,...h],!0),t(j,r.agents??[],!0),t(f,r.customTitle,!0),t(d,r.currentSummary,!0)}catch(s){t(c,String(s),!0)}finally{t(v,!1)}},H=s=>{if(!e(o))return;const n=s.customTitle??"";E("Edit Custom Title","Custom title:",n,async a=>{if(b(),a!==n)try{await Ce(e(o).projectName,e(o).id,s.uuid,a),s.customTitle=a,t(l,[...e(l)],!0)}catch(r){t(c,String(r),!0)}})},J=s=>{if(!e(o))return;const n=e(l).findIndex(u=>u.uuid===s.uuid),a=n,r=e(l).length-n;V("Split Session",`Split session at this message?
2
2
 
3
3
  This session will keep ${r} messages (from here onwards).
4
4
  Old messages (${a}) will be moved to a new session.`,async()=>{I();try{t(v,!0);const u=await Te(e(o).projectName,e(o).id,s.uuid);if(u.success&&u.newSessionId){t(l,e(l).slice(n),!0),t(_,`Session split! Old messages moved to new session: ${u.newSessionId.slice(0,8)}...`);try{const h=await k(e(o).projectName,e(o).id);t(d,h.currentSummary,!0),t(f,h.customTitle,!0),t(j,h.agents??[],!0);const S=h.todos?.sessionTodos??[],se=h.todos?.agentTodos?.flatMap(oe=>oe.todos)??[];t(T,[...S,...se],!0)}catch{}}else t(c,u.error??"Failed to split session",!0)}catch(u){t(c,String(u),!0)}finally{t(v,!1)}})},K=()=>{e(o)&&E("Rename Session","Session title:",e(f)??e(d)??e(o).title??"",async s=>{b();const n=s.trim();if(n)try{await je(e(o).projectName,e(o).id,n),t(f,n,!0);const a=await k(e(o).projectName,e(o).id);t(d,a.currentSummary,!0)}catch(a){t(c,String(a),!0)}})},Q=()=>{e(o)&&V("Delete Session",`Delete this session?
@@ -1 +1 @@
1
- {"version":"1773669320350"}
1
+ {"version":"1774276252981"}
Binary file
Binary file
@@ -7,11 +7,11 @@ var _layout_ts = /*#__PURE__*/Object.freeze({
7
7
 
8
8
  const index = 0;
9
9
  let component_cache;
10
- const component = async () => component_cache ??= (await import('./_layout.svelte-rcGJkEsi.js')).default;
10
+ const component = async () => component_cache ??= (await import('./_layout.svelte-DaSyc-mf.js')).default;
11
11
  const universal_id = "src/routes/+layout.ts";
12
- const imports = ["_app/immutable/nodes/0.DbsRMSGz.js","_app/immutable/chunks/CG99hqDQ.js","_app/immutable/chunks/DWa7QuMS.js","_app/immutable/chunks/B8g5xi4b.js","_app/immutable/chunks/BfRp2rnv.js","_app/immutable/chunks/DjDr02vs.js","_app/immutable/chunks/Dw50LpzA.js","_app/immutable/chunks/CfsdC4sQ.js","_app/immutable/chunks/BWaY6ujL.js"];
12
+ const imports = ["_app/immutable/nodes/0.C3-EWlLD.js","_app/immutable/chunks/WK3b3g7j.js","_app/immutable/chunks/DB1q-JFC.js","_app/immutable/chunks/D1duoKAw.js","_app/immutable/chunks/_v9tgGMR.js","_app/immutable/chunks/CursEjUX.js","_app/immutable/chunks/6j6qgi5m.js","_app/immutable/chunks/BkKWBf8s.js","_app/immutable/chunks/HCtei06b.js"];
13
13
  const stylesheets = ["_app/immutable/assets/Toast.BpcxWUYz.css","_app/immutable/assets/0.nXM4xjKW.css"];
14
14
  const fonts = [];
15
15
 
16
16
  export { component, fonts, imports, index, stylesheets, _layout_ts as universal, universal_id };
17
- //# sourceMappingURL=0-B-m2U1BP.js.map
17
+ //# sourceMappingURL=0-Bmmq9ZM6.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"0-B-m2U1BP.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.DbsRMSGz.js\",\"_app/immutable/chunks/CG99hqDQ.js\",\"_app/immutable/chunks/DWa7QuMS.js\",\"_app/immutable/chunks/B8g5xi4b.js\",\"_app/immutable/chunks/BfRp2rnv.js\",\"_app/immutable/chunks/DjDr02vs.js\",\"_app/immutable/chunks/Dw50LpzA.js\",\"_app/immutable/chunks/CfsdC4sQ.js\",\"_app/immutable/chunks/BWaY6ujL.js\"];\nexport const stylesheets = [\"_app/immutable/assets/Toast.BpcxWUYz.css\",\"_app/immutable/assets/0.nXM4xjKW.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,CAAC,mCAAmC;AAChV,MAAC,WAAW,GAAG,CAAC,0CAA0C,CAAC,sCAAsC;AACjG,MAAC,KAAK,GAAG;;;;"}
1
+ {"version":3,"file":"0-Bmmq9ZM6.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.C3-EWlLD.js\",\"_app/immutable/chunks/WK3b3g7j.js\",\"_app/immutable/chunks/DB1q-JFC.js\",\"_app/immutable/chunks/D1duoKAw.js\",\"_app/immutable/chunks/_v9tgGMR.js\",\"_app/immutable/chunks/CursEjUX.js\",\"_app/immutable/chunks/6j6qgi5m.js\",\"_app/immutable/chunks/BkKWBf8s.js\",\"_app/immutable/chunks/HCtei06b.js\"];\nexport const stylesheets = [\"_app/immutable/assets/Toast.BpcxWUYz.css\",\"_app/immutable/assets/0.nXM4xjKW.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,CAAC,mCAAmC;AAChV,MAAC,WAAW,GAAG,CAAC,0CAA0C,CAAC,sCAAsC;AACjG,MAAC,KAAK,GAAG;;;;"}
@@ -0,0 +1,9 @@
1
+ const index = 1;
2
+ let component_cache;
3
+ const component = async () => component_cache ??= (await import('./error.svelte-7ySp2asi.js')).default;
4
+ const imports = ["_app/immutable/nodes/1.LTLF-xkJ.js","_app/immutable/chunks/WK3b3g7j.js","_app/immutable/chunks/DB1q-JFC.js","_app/immutable/chunks/HCtei06b.js","_app/immutable/chunks/CursEjUX.js","_app/immutable/chunks/BkKWBf8s.js"];
5
+ const stylesheets = [];
6
+ const fonts = [];
7
+
8
+ export { component, fonts, imports, index, stylesheets };
9
+ //# sourceMappingURL=1-QC3Sx1LV.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"1-BxbzQf60.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.CzCkEGH-.js\",\"_app/immutable/chunks/CG99hqDQ.js\",\"_app/immutable/chunks/DWa7QuMS.js\",\"_app/immutable/chunks/BWaY6ujL.js\",\"_app/immutable/chunks/DjDr02vs.js\",\"_app/immutable/chunks/CfsdC4sQ.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,CAAC,mCAAmC;AACpO,MAAC,WAAW,GAAG;AACf,MAAC,KAAK,GAAG;;;;"}
1
+ {"version":3,"file":"1-QC3Sx1LV.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.LTLF-xkJ.js\",\"_app/immutable/chunks/WK3b3g7j.js\",\"_app/immutable/chunks/DB1q-JFC.js\",\"_app/immutable/chunks/HCtei06b.js\",\"_app/immutable/chunks/CursEjUX.js\",\"_app/immutable/chunks/BkKWBf8s.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,CAAC,mCAAmC;AACpO,MAAC,WAAW,GAAG;AACf,MAAC,KAAK,GAAG;;;;"}
@@ -0,0 +1,9 @@
1
+ const index = 2;
2
+ let component_cache;
3
+ const component = async () => component_cache ??= (await import('./_page.svelte-D0jFzJtD.js')).default;
4
+ const imports = ["_app/immutable/nodes/2.JKvSvrXU.js","_app/immutable/chunks/WK3b3g7j.js","_app/immutable/chunks/DB1q-JFC.js","_app/immutable/chunks/D1duoKAw.js","_app/immutable/chunks/_v9tgGMR.js","_app/immutable/chunks/CursEjUX.js"];
5
+ const stylesheets = ["_app/immutable/assets/Toast.BpcxWUYz.css"];
6
+ const fonts = [];
7
+
8
+ export { component, fonts, imports, index, stylesheets };
9
+ //# sourceMappingURL=2-Dw5NPnTj.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"2-B1OQIXg9.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.BRrV1M8V.js\",\"_app/immutable/chunks/CG99hqDQ.js\",\"_app/immutable/chunks/DWa7QuMS.js\",\"_app/immutable/chunks/B8g5xi4b.js\",\"_app/immutable/chunks/BfRp2rnv.js\",\"_app/immutable/chunks/DjDr02vs.js\"];\nexport const stylesheets = [\"_app/immutable/assets/Toast.BpcxWUYz.css\"];\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;AACpO,MAAC,WAAW,GAAG,CAAC,0CAA0C;AAC1D,MAAC,KAAK,GAAG;;;;"}
1
+ {"version":3,"file":"2-Dw5NPnTj.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.JKvSvrXU.js\",\"_app/immutable/chunks/WK3b3g7j.js\",\"_app/immutable/chunks/DB1q-JFC.js\",\"_app/immutable/chunks/D1duoKAw.js\",\"_app/immutable/chunks/_v9tgGMR.js\",\"_app/immutable/chunks/CursEjUX.js\"];\nexport const stylesheets = [\"_app/immutable/assets/Toast.BpcxWUYz.css\"];\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;AACpO,MAAC,WAAW,GAAG,CAAC,0CAA0C;AAC1D,MAAC,KAAK,GAAG;;;;"}
@@ -0,0 +1,9 @@
1
+ const index = 3;
2
+ let component_cache;
3
+ const component = async () => component_cache ??= (await import('./_page.svelte-D3EVHdvH.js')).default;
4
+ const imports = ["_app/immutable/nodes/3.QvG7KcU-.js","_app/immutable/chunks/WK3b3g7j.js","_app/immutable/chunks/DB1q-JFC.js","_app/immutable/chunks/D1duoKAw.js","_app/immutable/chunks/6j6qgi5m.js","_app/immutable/chunks/BkKWBf8s.js","_app/immutable/chunks/CursEjUX.js","_app/immutable/chunks/HCtei06b.js","_app/immutable/chunks/_v9tgGMR.js"];
5
+ const stylesheets = ["_app/immutable/assets/Toast.BpcxWUYz.css"];
6
+ const fonts = [];
7
+
8
+ export { component, fonts, imports, index, stylesheets };
9
+ //# sourceMappingURL=3-BcDPYoSg.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"3-QNnRFpXn.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.CThHCmon.js\",\"_app/immutable/chunks/CG99hqDQ.js\",\"_app/immutable/chunks/DWa7QuMS.js\",\"_app/immutable/chunks/B8g5xi4b.js\",\"_app/immutable/chunks/Dw50LpzA.js\",\"_app/immutable/chunks/CfsdC4sQ.js\",\"_app/immutable/chunks/DjDr02vs.js\",\"_app/immutable/chunks/BWaY6ujL.js\",\"_app/immutable/chunks/BfRp2rnv.js\"];\nexport const stylesheets = [\"_app/immutable/assets/Toast.BpcxWUYz.css\"];\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;AAChV,MAAC,WAAW,GAAG,CAAC,0CAA0C;AAC1D,MAAC,KAAK,GAAG;;;;"}
1
+ {"version":3,"file":"3-BcDPYoSg.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.QvG7KcU-.js\",\"_app/immutable/chunks/WK3b3g7j.js\",\"_app/immutable/chunks/DB1q-JFC.js\",\"_app/immutable/chunks/D1duoKAw.js\",\"_app/immutable/chunks/6j6qgi5m.js\",\"_app/immutable/chunks/BkKWBf8s.js\",\"_app/immutable/chunks/CursEjUX.js\",\"_app/immutable/chunks/HCtei06b.js\",\"_app/immutable/chunks/_v9tgGMR.js\"];\nexport const stylesheets = [\"_app/immutable/assets/Toast.BpcxWUYz.css\"];\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;AAChV,MAAC,WAAW,GAAG,CAAC,0CAA0C;AAC1D,MAAC,KAAK,GAAG;;;;"}
@@ -1,4 +1,4 @@
1
- import { x as escape_html, p as attr } from './index-CUeePJRv.js';
1
+ import { x as escape_html, p as attr } from './index-Dqbd-Nxp.js';
2
2
 
3
3
  function InputModal($$renderer, $$props) {
4
4
  $$renderer.component(($$renderer2) => {
@@ -32,4 +32,4 @@ function InputModal($$renderer, $$props) {
32
32
  }
33
33
 
34
34
  export { InputModal as I };
35
- //# sourceMappingURL=InputModal-B2QW71Rc.js.map
35
+ //# sourceMappingURL=InputModal-Cp5WgcYP.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InputModal-B2QW71Rc.js","sources":["../../../.svelte-kit/adapter-node/chunks/InputModal.js"],"sourcesContent":["import { e as escape_html, a as attr } from \"./root.js\";\nfunction InputModal($$renderer, $$props) {\n $$renderer.component(($$renderer2) => {\n let {\n show,\n title,\n label = \"\",\n placeholder = \"\",\n initialValue = \"\",\n confirmText = \"Save\",\n cancelText = \"Cancel\",\n onConfirm,\n onCancel\n } = $$props;\n let inputValue = \"\";\n if (show) {\n $$renderer2.push(\"<!--[0-->\");\n $$renderer2.push(`<div class=\"fixed inset-0 bg-black/50 flex items-center justify-center z-50\" role=\"dialog\" aria-modal=\"true\" tabindex=\"-1\"><div class=\"bg-gh-bg-secondary border border-gh-border rounded-lg p-6 w-[400px] shadow-xl text-gh-text\"><h2 class=\"text-lg font-semibold mb-4\">${escape_html(title)}</h2> `);\n if (label) {\n $$renderer2.push(\"<!--[0-->\");\n $$renderer2.push(`<label class=\"block text-sm text-gh-text-secondary mb-2\">${escape_html(label)}</label>`);\n } else {\n $$renderer2.push(\"<!--[-1-->\");\n }\n $$renderer2.push(`<!--]--> <input${attr(\"value\", inputValue)} type=\"text\"${attr(\"placeholder\", placeholder)} class=\"w-full px-3 py-2 text-sm rounded-md border border-gh-border bg-gh-bg focus:outline-none focus:border-gh-accent\"/> <div class=\"flex gap-2 justify-end mt-6\"><button class=\"px-4 py-2 text-sm rounded-md border border-gh-border hover:bg-gh-border-subtle\">${escape_html(cancelText)}</button> <button class=\"px-4 py-2 text-sm rounded-md bg-gh-accent text-white hover:bg-blue-700\">${escape_html(confirmText)}</button></div></div></div>`);\n } else {\n $$renderer2.push(\"<!--[-1-->\");\n }\n $$renderer2.push(`<!--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pC,IAAI;AACJ,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC;AAChC,EAAE,CAAC,CAAC;AACJ;;;;"}
1
+ {"version":3,"file":"InputModal-Cp5WgcYP.js","sources":["../../../.svelte-kit/adapter-node/chunks/InputModal.js"],"sourcesContent":["import { e as escape_html, a as attr } from \"./root.js\";\nfunction InputModal($$renderer, $$props) {\n $$renderer.component(($$renderer2) => {\n let {\n show,\n title,\n label = \"\",\n placeholder = \"\",\n initialValue = \"\",\n confirmText = \"Save\",\n cancelText = \"Cancel\",\n onConfirm,\n onCancel\n } = $$props;\n let inputValue = \"\";\n if (show) {\n $$renderer2.push(\"<!--[0-->\");\n $$renderer2.push(`<div class=\"fixed inset-0 bg-black/50 flex items-center justify-center z-50\" role=\"dialog\" aria-modal=\"true\" tabindex=\"-1\"><div class=\"bg-gh-bg-secondary border border-gh-border rounded-lg p-6 w-[400px] shadow-xl text-gh-text\"><h2 class=\"text-lg font-semibold mb-4\">${escape_html(title)}</h2> `);\n if (label) {\n $$renderer2.push(\"<!--[0-->\");\n $$renderer2.push(`<label class=\"block text-sm text-gh-text-secondary mb-2\">${escape_html(label)}</label>`);\n } else {\n $$renderer2.push(\"<!--[-1-->\");\n }\n $$renderer2.push(`<!--]--> <input${attr(\"value\", inputValue)} type=\"text\"${attr(\"placeholder\", placeholder)} class=\"w-full px-3 py-2 text-sm rounded-md border border-gh-border bg-gh-bg focus:outline-none focus:border-gh-accent\"/> <div class=\"flex gap-2 justify-end mt-6\"><button class=\"px-4 py-2 text-sm rounded-md border border-gh-border hover:bg-gh-border-subtle\">${escape_html(cancelText)}</button> <button class=\"px-4 py-2 text-sm rounded-md bg-gh-accent text-white hover:bg-blue-700\">${escape_html(confirmText)}</button></div></div></div>`);\n } else {\n $$renderer2.push(\"<!--[-1-->\");\n }\n $$renderer2.push(`<!--]-->`);\n });\n}\nexport {\n InputModal as I\n};\n"],"names":[],"mappings":";;AACA,SAAS,UAAU,CAAC,U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,EAAE,CAAC,CAAC;AACJ;;;;"}
@@ -1,4 +1,4 @@
1
- import { x as escape_html, y as attr_class, q as stringify, M as bind_props, N as ssr_context, l as writable, O as get, A as derived } from './index-CUeePJRv.js';
1
+ import { x as escape_html, y as attr_class, q as stringify, M as bind_props, N as ssr_context, l as writable, O as get, A as derived } from './index-Dqbd-Nxp.js';
2
2
  import { marked } from 'marked';
3
3
  import { F as maskHomePath$1 } from './index2-gxrJEKeb.js';
4
4
 
@@ -76,4 +76,4 @@ function Toast($$renderer, $$props) {
76
76
  }
77
77
 
78
78
  export { ConfirmModal as C, Toast as T, appConfig as a, formatDate as b, formatProjectName as f, maskHomePath as m, truncate as t };
79
- //# sourceMappingURL=Toast-C0Uluww6.js.map
79
+ //# sourceMappingURL=Toast-AVuTocXd.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Toast-C0Uluww6.js","sources":["../../../.svelte-kit/adapter-node/chunks/Toast.js"],"sourcesContent":["import { q as ssr_context, e as escape_html, c as attr_class, s as stringify, t as bind_props } from \"./root.js\";\nimport { marked } from \"marked\";\nimport { e as derived, w as writable, g as get } from \"./index.js\";\nimport { F as maskHomePath$1 } from \"./index2.js\";\nfunction onDestroy(fn) {\n /** @type {SSRContext} */\n ssr_context.r.on_destroy(fn);\n}\nconst appConfig = writable({ version: \"\", homeDir: \"\", currentProjectName: \"\" });\nconst maskHomePath = (text, homeDir) => {\n const home = homeDir ?? get(appConfig).homeDir;\n if (!home) {\n return text.replace(\n /(?:\\/Users\\/[^/\\s]+|C:\\\\Users\\\\[^\\\\\\s]+)(?=[/\\\\]|(?=\\s|$|[)\"'\\]}>,:;]))/g,\n \"~\"\n );\n }\n return maskHomePath$1(text, home);\n};\nderived(appConfig, ($config) => {\n return (text) => maskHomePath(text, $config.homeDir);\n});\nfunction ConfirmModal($$renderer, $$props) {\n $$renderer.component(($$renderer2) => {\n let {\n show,\n title,\n message,\n confirmText = \"Confirm\",\n cancelText = \"Cancel\",\n variant = \"default\",\n onConfirm,\n onCancel\n } = $$props;\n if (show) {\n $$renderer2.push(\"<!--[0-->\");\n $$renderer2.push(`<div class=\"fixed inset-0 bg-black/50 flex items-center justify-center z-50\" role=\"dialog\" aria-modal=\"true\" tabindex=\"-1\"><div class=\"bg-gh-bg-secondary border border-gh-border rounded-lg p-6 w-[380px] shadow-xl text-gh-text\"><h2 class=\"text-lg font-semibold mb-3\">${escape_html(title)}</h2> <p class=\"text-sm text-gh-text-secondary mb-6 whitespace-pre-wrap\">${escape_html(message)}</p> <div class=\"flex gap-2 justify-end\"><button class=\"px-4 py-2 text-sm rounded-md border border-gh-border hover:bg-gh-border-subtle\">${escape_html(cancelText)}</button> <button${attr_class(`px-4 py-2 text-sm rounded-md ${stringify(variant === \"danger\" ? \"bg-gh-red text-white hover:bg-red-700\" : \"bg-gh-accent text-white hover:bg-blue-700\")}`)}>${escape_html(confirmText)}</button></div></div></div>`);\n } else {\n $$renderer2.push(\"<!--[-1-->\");\n }\n $$renderer2.push(`<!--]-->`);\n });\n}\nmarked.setOptions({\n breaks: true,\n gfm: true\n});\nconst formatDate = (dateStr) => {\n if (!dateStr) return \"-\";\n return new Date(dateStr).toLocaleString();\n};\nconst truncate = (str, len) => str.length > len ? str.slice(0, len) + \"...\" : str;\nconst formatProjectName = (displayName) => {\n return maskHomePath(displayName);\n};\nfunction Toast($$renderer, $$props) {\n $$renderer.component(($$renderer2) => {\n let { message = void 0, variant = \"success\", duration = 3e3 } = $$props;\n const variantClasses = {\n success: \"bg-gh-green/90\",\n error: \"bg-gh-red/90\",\n info: \"bg-gh-accent/90\",\n warning: \"bg-yellow-600/90\"\n };\n onDestroy(() => {\n });\n if (message) {\n $$renderer2.push(\"<!--[0-->\");\n $$renderer2.push(`<div${attr_class(`fixed bottom-4 left-1/2 -translate-x-1/2 text-white px-4 py-2 rounded-lg shadow-lg z-50 flex items-center gap-3 animate-fade-in ${stringify(variantClasses[variant])}`, \"svelte-1cpok13\")}><span>${escape_html(message)}</span> <button class=\"text-white/70 hover:text-white transition-colors\" title=\"Dismiss\">✕</button></div>`);\n } else {\n $$renderer2.push(\"<!--[-1-->\");\n }\n $$renderer2.push(`<!--]-->`);\n bind_props($$props, { message });\n });\n}\nexport {\n ConfirmModal as C,\n Toast as T,\n formatProjectName as a,\n appConfig as b,\n formatDate as f,\n maskHomePath as m,\n truncate as t\n};\n"],"names":[],"mappings":";;;;AAIA,SAAS,SAAS,CAAC,EAAE,EAAE;AACvB;AACA,EAAE,WAAW,CAAC,CAAC,CAAC,UAAU,CAAC,EAAE,CAAC;AAC9B;AACK,MAAC,SAAS,GAAG,QAAQ,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,kBAAkB,EAAE,EAAE,EAAE;AAC1E,MAAC,YAAY,GAAG,CAAC,IAAI,EAAE,OAAO,KAAK;AACxC,EAAE,MAAM,IAAI,GAAG,OAAO,IAAI,GAAG,CAAC,SAAS,CAAC,CAAC,OAAO;AAChD,EAAE,IAAI,CAAC,IAAI,EAAE;AACb,IAAI,OAAO,IAAI,CAAC,OAAO;AACvB,MAAM,0EAA0E;AAChF,MAAM;AACN,KAAK;AACL,EAAE;AACF,EAAE,OAAO,cAAc,CAAC,IAAI,EAAE,IAAI,CAAC;AACnC;AACA,OAAO,CAAC,SAAS,EAAE,CAAC,OAAO,KAAK;AAChC,EAAE,OAAO,CAAC,IAAI,KAAK,YAAY,CAAC,IAAI,EAAE,OAAO,CAAC,OAAO,CAAC;AACtD,CAAC,CAAC;AACF,SAAS,YAAY,CAAC,UAAU,EAAE,OAAO,EAAE;AAC3C,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,WAAW,KAAK;AACxC,IAAI,IAAI;AACR,MAAM,IAAI;AACV,MAAM,KAAK;AACX,MAAM,OAAO;AACb,MAAM,WAAW,GAAG,SAAS;AAC7B,MAAM,UAAU,GAAG,QAAQ;AAC3B,MAAM,OAAO,GAAG,SAAS;AACzB,MAAM,SAAS;AACf,MAAM;AACN,KAAK,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AAC,CAAC,WAAW,KAAK;AACxC,IAAI,IAAI,EAAE,OAAO,GAAG,MAAM,EAAE,OAAO,GAAG,SAAS,EAAE,QAAQ,GAAG,GAAG,EAAE,GAAG,OAAO;AAC3E,IAAI,MAAM,cAAc,GAAG;AAC3B,MAAM,OAAO,EAAE,gBAAgB;AAC/B,MAAM,KAAK,EAAE,cAAc;AAC3B,MAAM,IAAI,EAAE,iBAAiB;AAC7B,MAAM,OAAO,EAAE;AACf,KAAK;AACL,IAAI,SAAS,CAAC,MAAM;AACpB,IAAI,CAAC,CAAC;AACN,IAAI,IAAI,OAAO,EAAE;AACjB,MAAM,WAAW,CAAC,IAAI,CAAC,WAAW,CAAC;AACnC,MAAM,WAAW,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,gIAAgI,EAAE,SAAS,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,gBAAgB,CAAC,CAAC,OAAO,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC,yGAAyG,CAAC,CAAC;AAC7W,IAAI,CAAC,MAAM;AACX,MAAM,WAAW,CAAC,IAAI,CAAC,YAAY,CAAC;AACpC,IAAI;AACJ,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC;AAChC,IAAI,UAAU,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,CAAC;AACpC,EAAE,CAAC,CAAC;AACJ;;;;"}
1
+ {"version":3,"file":"Toast-AVuTocXd.js","sources":["../../../.svelte-kit/adapter-node/chunks/Toast.js"],"sourcesContent":["import { q as ssr_context, e as escape_html, c as attr_class, s as stringify, t as bind_props } from \"./root.js\";\nimport { marked } from \"marked\";\nimport { e as derived, w as writable, g as get } from \"./index.js\";\nimport { F as maskHomePath$1 } from \"./index2.js\";\nfunction onDestroy(fn) {\n /** @type {SSRContext} */\n ssr_context.r.on_destroy(fn);\n}\nconst appConfig = writable({ version: \"\", homeDir: \"\", currentProjectName: \"\" });\nconst maskHomePath = (text, homeDir) => {\n const home = homeDir ?? get(appConfig).homeDir;\n if (!home) {\n return text.replace(\n /(?:\\/Users\\/[^/\\s]+|C:\\\\Users\\\\[^\\\\\\s]+)(?=[/\\\\]|(?=\\s|$|[)\"'\\]}>,:;]))/g,\n \"~\"\n );\n }\n return maskHomePath$1(text, home);\n};\nderived(appConfig, ($config) => {\n return (text) => maskHomePath(text, $config.homeDir);\n});\nfunction ConfirmModal($$renderer, $$props) {\n $$renderer.component(($$renderer2) => {\n let {\n show,\n title,\n message,\n confirmText = \"Confirm\",\n cancelText = \"Cancel\",\n variant = \"default\",\n onConfirm,\n onCancel\n } = $$props;\n if (show) {\n $$renderer2.push(\"<!--[0-->\");\n $$renderer2.push(`<div class=\"fixed inset-0 bg-black/50 flex items-center justify-center z-50\" role=\"dialog\" aria-modal=\"true\" tabindex=\"-1\"><div class=\"bg-gh-bg-secondary border border-gh-border rounded-lg p-6 w-[380px] shadow-xl text-gh-text\"><h2 class=\"text-lg font-semibold mb-3\">${escape_html(title)}</h2> <p class=\"text-sm text-gh-text-secondary mb-6 whitespace-pre-wrap\">${escape_html(message)}</p> <div class=\"flex gap-2 justify-end\"><button class=\"px-4 py-2 text-sm rounded-md border border-gh-border hover:bg-gh-border-subtle\">${escape_html(cancelText)}</button> <button${attr_class(`px-4 py-2 text-sm rounded-md ${stringify(variant === \"danger\" ? \"bg-gh-red text-white hover:bg-red-700\" : \"bg-gh-accent text-white hover:bg-blue-700\")}`)}>${escape_html(confirmText)}</button></div></div></div>`);\n } else {\n $$renderer2.push(\"<!--[-1-->\");\n }\n $$renderer2.push(`<!--]-->`);\n });\n}\nmarked.setOptions({\n breaks: true,\n gfm: true\n});\nconst formatDate = (dateStr) => {\n if (!dateStr) return \"-\";\n return new Date(dateStr).toLocaleString();\n};\nconst truncate = (str, len) => str.length > len ? str.slice(0, len) + \"...\" : str;\nconst formatProjectName = (displayName) => {\n return maskHomePath(displayName);\n};\nfunction Toast($$renderer, $$props) {\n $$renderer.component(($$renderer2) => {\n let { message = void 0, variant = \"success\", duration = 3e3 } = $$props;\n const variantClasses = {\n success: \"bg-gh-green/90\",\n error: \"bg-gh-red/90\",\n info: \"bg-gh-accent/90\",\n warning: \"bg-yellow-600/90\"\n };\n onDestroy(() => {\n });\n if (message) {\n $$renderer2.push(\"<!--[0-->\");\n $$renderer2.push(`<div${attr_class(`fixed bottom-4 left-1/2 -translate-x-1/2 text-white px-4 py-2 rounded-lg shadow-lg z-50 flex items-center gap-3 animate-fade-in ${stringify(variantClasses[variant])}`, \"svelte-1cpok13\")}><span>${escape_html(message)}</span> <button class=\"text-white/70 hover:text-white transition-colors\" title=\"Dismiss\">✕</button></div>`);\n } else {\n $$renderer2.push(\"<!--[-1-->\");\n }\n $$renderer2.push(`<!--]-->`);\n bind_props($$props, { message });\n });\n}\nexport {\n ConfirmModal as C,\n Toast as T,\n formatProjectName as a,\n appConfig as b,\n formatDate as f,\n maskHomePath as m,\n truncate as t\n};\n"],"names":[],"mappings":";;;;AAIA,SAAS,SAAS,CAAC,EAAE,EAAE;AACvB;AACA,EAAE,WAAW,CAAC,CAAC,CAAC,UAAU,CAAC,EAAE,CAAC;AAC9B;AACK,MAAC,SAAS,GAAG,QAAQ,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,kBAAkB,EAAE,EAAE,EAAE;AAC1E,MAAC,YAAY,GAAG,CAAC,IAAI,EAAE,OAAO,KAAK;AACxC,EAAE,MAAM,IAAI,GAAG,OAAO,IAAI,GAAG,CAAC,SAAS,CAAC,CAAC,OAAO;AAChD,EAAE,IAAI,CAAC,IAAI,EAAE;AACb,IAAI,OAAO,IAAI,CAAC,OAAO;AACvB,MAAM,0EAA0E;AAChF,MAAM;AACN,KAAK;AACL,EAAE;AACF,EAAE,OAAO,cAAc,CAAC,IAAI,EAAE,IAAI,CAAC;AACnC;AACA,OAAO,CAAC,SAAS,EAAE,CAAC,OAAO,KAAK;AAChC,EAAE,O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EAAE,OAAO,EAAE,CAAC;AACpC,EAAE,CAAC,CAAC;AACJ;;;;"}
@@ -1,8 +1,8 @@
1
- import { o as head, p as attr, q as stringify, t as store_get, x as escape_html, y as attr_class, z as derived, l as writable, A as derived$1, B as unsubscribe_stores } from './index-CUeePJRv.js';
1
+ import { o as head, p as attr, q as stringify, t as store_get, x as escape_html, y as attr_class, z as derived, l as writable, A as derived$1, B as unsubscribe_stores } from './index-Dqbd-Nxp.js';
2
2
  import './exports-7ECo9oy7.js';
3
- import './client-CJUAsTTN.js';
4
- import { p as page } from './index3-BKokHvI9.js';
5
- import { C as ConfirmModal, T as Toast } from './Toast-C0Uluww6.js';
3
+ import './client-C63uMw4h.js';
4
+ import { p as page } from './index3-vPlrIIie.js';
5
+ import { C as ConfirmModal, T as Toast } from './Toast-AVuTocXd.js';
6
6
  import './index2-gxrJEKeb.js';
7
7
  import 'marked';
8
8
  import 'fs';
@@ -131,4 +131,4 @@ function _layout($$renderer, $$props) {
131
131
  }
132
132
 
133
133
  export { _layout as default };
134
- //# sourceMappingURL=_layout.svelte-rcGJkEsi.js.map
134
+ //# sourceMappingURL=_layout.svelte-DaSyc-mf.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"_layout.svelte-rcGJkEsi.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/_layout.svelte.js"],"sourcesContent":["import { h as head, a as attr, d as derived$1, s as stringify, b as store_get, e as escape_html, c as attr_class, f as unsubscribe_stores } from \"../../chunks/root.js\";\nimport \"@sveltejs/kit/internal\";\nimport { w as writable, e as derived } from \"../../chunks/index.js\";\nimport \"../../chunks/utils2.js\";\nimport \"@sveltejs/kit/internal/server\";\nimport \"../../chunks/exports.js\";\nimport \"../../chunks/client.js\";\nimport { p as page } from \"../../chunks/index3.js\";\nimport { C as ConfirmModal, T as Toast } from \"../../chunks/Toast.js\";\nimport \"../../chunks/index2.js\";\nconst getStoredPreference = () => {\n if (typeof localStorage === \"undefined\") return \"system\";\n const stored = localStorage.getItem(\"theme\");\n if (stored === \"light\" || stored === \"dark\" || stored === \"system\") return stored;\n return \"system\";\n};\nconst getSystemTheme = () => {\n if (typeof window === \"undefined\") return \"dark\";\n return window.matchMedia(\"(prefers-color-scheme: light)\").matches ? \"light\" : \"dark\";\n};\nconst themePreference = writable(getStoredPreference());\nconst effectiveTheme = derived(themePreference, ($pref) => {\n if ($pref === \"system\") return getSystemTheme();\n return $pref;\n});\nfunction _layout($$renderer, $$props) {\n $$renderer.component(($$renderer2) => {\n var $$store_subs;\n let { children } = $$props;\n const isSessionPage = derived$1(() => page.url.pathname.startsWith(\"/session/\"));\n const currentSessionInfo = derived$1(() => {\n if (!isSessionPage()) return null;\n const match = page.url.pathname.match(/^\\/session\\/([^/]+)\\/([^/]+)/);\n if (!match) return null;\n return {\n projectName: decodeURIComponent(match[1]),\n sessionId: decodeURIComponent(match[2])\n };\n });\n let cleaning = false;\n let shuttingDown = false;\n let toastMessage = null;\n let toastVariant = \"info\";\n let confirmModal = {\n show: false,\n title: \"\",\n message: \"\",\n variant: \"default\",\n onConfirm: () => {\n }\n };\n const closeConfirm = () => {\n confirmModal = { ...confirmModal, show: false };\n };\n let searchQuery = \"\";\n let $$settled = true;\n let $$inner_renderer;\n function $$render_inner($$renderer3) {\n head(\"12qhfyh\", $$renderer3, ($$renderer4) => {\n $$renderer4.title(($$renderer5) => {\n $$renderer5.push(`<title>Claude Sessions</title>`);\n });\n });\n $$renderer3.push(`<div class=\"min-h-screen flex flex-col bg-gh-bg text-gh-text\"><header class=\"bg-gh-bg-secondary border-b border-gh-border px-8 py-4 flex justify-between items-center\"><div class=\"flex items-center gap-3\"><a${attr(\"href\", currentSessionInfo() ? `/#project=${encodeURIComponent(currentSessionInfo().projectName)}` : \"/\")} class=\"flex items-center gap-2 hover:text-gh-accent\"${attr(\"title\", currentSessionInfo() ? \"Back to project\" : \"Claude Sessions\")}><svg class=\"w-6 h-6 text-gh-accent\" fill=\"none\" stroke=\"currentColor\" viewBox=\"0 0 24 24\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z\"></path></svg> <span class=\"text-2xl font-semibold hidden sm:inline\">Claude Sessions</span></a> `);\n {\n $$renderer3.push(\"<!--[-1-->\");\n }\n $$renderer3.push(`<!--]--> <button class=\"p-1.5 rounded-md text-gh-text-secondary hover:text-gh-text hover:bg-gh-border-subtle transition-colors\"${attr(\"title\", `Theme: ${stringify(store_get($$store_subs ??= {}, \"$themePreference\", themePreference))} (${stringify(store_get($$store_subs ??= {}, \"$effectiveTheme\", effectiveTheme))})`)}>`);\n if (store_get($$store_subs ??= {}, \"$effectiveTheme\", effectiveTheme) === \"light\") {\n $$renderer3.push(\"<!--[0-->\");\n $$renderer3.push(`<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=\"M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z\"></path></svg>`);\n } else if (store_get($$store_subs ??= {}, \"$themePreference\", themePreference) === \"system\") {\n $$renderer3.push(\"<!--[1-->\");\n $$renderer3.push(`<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=\"M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z\"></path></svg>`);\n } else {\n $$renderer3.push(\"<!--[-1-->\");\n $$renderer3.push(`<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=\"M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z\"></path></svg>`);\n }\n $$renderer3.push(`<!--]--></button></div> <div class=\"relative flex-1 max-w-md mx-8\"><input type=\"text\" placeholder=\"Search sessions...\"${attr(\"value\", searchQuery)} class=\"w-full px-4 py-2 bg-gh-bg border border-gh-border rounded-md text-sm focus:outline-none focus:border-gh-accent\"/> `);\n {\n $$renderer3.push(\"<!--[-1-->\");\n }\n $$renderer3.push(`<!--]--> `);\n {\n $$renderer3.push(\"<!--[-1-->\");\n }\n $$renderer3.push(`<!--]--></div> <div class=\"flex gap-2\"><button class=\"bg-gh-border-subtle border border-gh-border text-gh-text px-4 py-2 rounded-md text-sm transition-colors hover:bg-gh-border hover:border-gh-text-secondary disabled:opacity-50 disabled:cursor-not-allowed\"${attr(\"disabled\", cleaning, true)}>${escape_html(\"Cleanup\")}</button> <button class=\"bg-gh-red border border-gh-red text-white px-4 py-2 rounded-md text-sm transition-colors hover:bg-red-700 disabled:opacity-50 disabled:cursor-not-allowed\"${attr(\"disabled\", shuttingDown, true)}>${escape_html(\"Shutdown\")}</button></div></header> <main${attr_class(`flex-1 ${stringify(isSessionPage() ? \"\" : \"p-8 max-w-7xl mx-auto\")} w-full overflow-y-auto`)}>`);\n children($$renderer3);\n $$renderer3.push(`<!----></main></div> `);\n {\n $$renderer3.push(\"<!--[-1-->\");\n }\n $$renderer3.push(`<!--]--> `);\n {\n $$renderer3.push(\"<!--[-1-->\");\n }\n $$renderer3.push(`<!--]--> `);\n ConfirmModal($$renderer3, {\n show: confirmModal.show,\n title: confirmModal.title,\n message: confirmModal.message,\n variant: confirmModal.variant,\n onConfirm: confirmModal.onConfirm,\n onCancel: closeConfirm\n });\n $$renderer3.push(`<!----> `);\n Toast($$renderer3, {\n variant: toastVariant,\n get message() {\n return toastMessage;\n },\n set message($$value) {\n toastMessage = $$value;\n $$settled = false;\n }\n });\n $$renderer3.push(`<!---->`);\n }\n do {\n $$settled = true;\n $$inner_renderer = $$renderer2.copy();\n $$render_inner($$inner_renderer);\n } while (!$$settled);\n $$renderer2.subsume($$inner_renderer);\n if ($$store_subs) unsubscribe_stores($$store_subs);\n });\n}\nexport {\n _layout as default\n};\n"],"names":["derived","derived$1"],"mappings":";;;;;;;;;;;;;;AAUA,MAAM,mBAAmB,GAAG,MAAM;AAClC,EAAE,IAAI,OAAO,YAAY,KAAK,WAAW,EAAE,OAAO,QAAQ;AAC1D,EAAE,MAAM,MAAM,GAAG,YAAY,CAAC,OAAO,CAAC,OAAO,CAAC;AAC9C,EAAE,IAAI,MAAM,KAAK,OAAO,IAAI,MAAM,KAAK,MAAM,IAAI,MAAM,KAAK,QAAQ,EAAE,OAAO,MAAM;AACnF,EAAE,OAAO,QAAQ;AACjB,CAAC;AACD,MAAM,cAAc,GAAG,MAAM;AAC7B,EAAE,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,OAAO,MAAM;AAClD,EAAE,OAAO,MAAM,CAAC,UAAU,CAAC,+BAA+B,CAAC,CAAC,OAAO,GAAG,OAAO,GAAG,MAAM;AACtF,CAAC;AACD,MAAM,eAAe,GAAG,QAAQ,CAAC,mBAAmB,EAAE,CAAC;AACvD,MAAM,cAAc,GAAGA,SAAO,CAAC,eAAe,EAAE,CAAC,KAAK,KAAK;AAC3D,EAAE,IAAI,KAAK,KAAK,QAAQ,EAAE,OAAO,cAAc,EAAE;AACjD,EAAE,OAAO,KAAK;AACd,CAAC,CAAC;AACF,SAAS,OAAO,CAAC,UAAU,EAAE,OAAO,EAAE;AACtC,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,WAAW,KAAK;AACxC,IAAI,IAAI,YAAY;AACpB,IAAI,IAAI,EAAE,QAAQ,EAAE,GAAG,OAAO;AAC9B,IAAI,MAAM,aAAa,GAAGC,OAAS,CAAC,MAAM,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC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,CAAC,SAAS,CAAC,CAAC;AACnC,MAAM,YAAY,CAAC,WAAW,EAAE;AAChC,QAAQ,IAAI,EAAE,YAAY,CAAC,IAAI;AAC/B,QAAQ,KAAK,EAAE,YAAY,CAAC,KAAK;AACjC,QAAQ,OAAO,EAAE,YAAY,CAAC,OAAO;AACrC,QAAQ,OAAO,EAAE,YAAY,CAAC,OAAO;AACrC,QAAQ,SAAS,EAAE,YAAY,CAAC,SAAS;AACzC,QAAQ,QAAQ,EAAE;AAClB,OAAO,CAAC;AACR,MAAM,WAAW,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC;AAClC,MAAM,KAAK,CAAC,WAAW,EAAE;AACzB,QAAQ,OAAO,EAAE,YAAY;AAC7B,QAAQ,IAAI,OAAO,GAAG;AACtB,UAAU,OAAO,YAAY;AAC7B,QAAQ,CAAC;AACT,QAAQ,IAAI,OAAO,CAAC,OAAO,EAAE;AAC7B,UAAU,YAAY,GAAG,OAAO;AAChC,UAAU,SAAS,GAAG,KAAK;AAC3B,QAAQ;AACR,OAAO,CAAC;AACR,MAAM,WAAW,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC;AACjC,IAAI;AACJ,IAAI,GAAG;AACP,MAAM,SAAS,GAAG,IAAI;AACtB,MAAM,gBAAgB,GAAG,WAAW,CAAC,IAAI,EAAE;AAC3C,MAAM,cAAc,CAAC,gBAAgB,CAAC;AACtC,IAAI,CAAC,QAAQ,CAAC,SAAS;AACvB,IAAI,WAAW,CAAC,OAAO,CAAC,gBAAgB,CAAC;AACzC,IAAI,IAAI,YAAY,EAAE,kBAAkB,CAAC,YAAY,CAAC;AACtD,EAAE,CAAC,CAAC;AACJ;;;;"}
1
+ {"version":3,"file":"_layout.svelte-DaSyc-mf.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/_layout.svelte.js"],"sourcesContent":["import { h as head, a as attr, d as derived$1, s as stringify, b as store_get, e as escape_html, c as attr_class, f as unsubscribe_stores } from \"../../chunks/root.js\";\nimport \"@sveltejs/kit/internal\";\nimport { w as writable, e as derived } from \"../../chunks/index.js\";\nimport \"../../chunks/utils2.js\";\nimport \"@sveltejs/kit/internal/server\";\nimport \"../../chunks/exports.js\";\nimport \"../../chunks/client.js\";\nimport { p as page } from \"../../chunks/index3.js\";\nimport { C as ConfirmModal, T as Toast } from \"../../chunks/Toast.js\";\nimport \"../../chunks/index2.js\";\nconst getStoredPreference = () => {\n if (typeof localStorage === \"undefined\") return \"system\";\n const stored = localStorage.getItem(\"theme\");\n if (stored === \"light\" || stored === \"dark\" || stored === \"system\") return stored;\n return \"system\";\n};\nconst getSystemTheme = () => {\n if (typeof window === \"undefined\") return \"dark\";\n return window.matchMedia(\"(prefers-color-scheme: light)\").matches ? \"light\" : \"dark\";\n};\nconst themePreference = writable(getStoredPreference());\nconst effectiveTheme = derived(themePreference, ($pref) => {\n if ($pref === \"system\") return getSystemTheme();\n return $pref;\n});\nfunction _layout($$renderer, $$props) {\n $$renderer.component(($$renderer2) => {\n var $$store_subs;\n let { children } = $$props;\n const isSessionPage = derived$1(() => page.url.pathname.startsWith(\"/session/\"));\n const currentSessionInfo = derived$1(() => {\n if (!isSessionPage()) return null;\n const match = page.url.pathname.match(/^\\/session\\/([^/]+)\\/([^/]+)/);\n if (!match) return null;\n return {\n projectName: decodeURIComponent(match[1]),\n sessionId: decodeURIComponent(match[2])\n };\n });\n let cleaning = false;\n let shuttingDown = false;\n let toastMessage = null;\n let toastVariant = \"info\";\n let confirmModal = {\n show: false,\n title: \"\",\n message: \"\",\n variant: \"default\",\n onConfirm: () => {\n }\n };\n const closeConfirm = () => {\n confirmModal = { ...confirmModal, show: false };\n };\n let searchQuery = \"\";\n let $$settled = true;\n let $$inner_renderer;\n function $$render_inner($$renderer3) {\n head(\"12qhfyh\", $$renderer3, ($$renderer4) => {\n $$renderer4.title(($$renderer5) => {\n $$renderer5.push(`<title>Claude Sessions</title>`);\n });\n });\n $$renderer3.push(`<div class=\"min-h-screen flex flex-col bg-gh-bg text-gh-text\"><header class=\"bg-gh-bg-secondary border-b border-gh-border px-8 py-4 flex justify-between items-center\"><div class=\"flex items-center gap-3\"><a${attr(\"href\", currentSessionInfo() ? `/#project=${encodeURIComponent(currentSessionInfo().projectName)}` : \"/\")} class=\"flex items-center gap-2 hover:text-gh-accent\"${attr(\"title\", currentSessionInfo() ? \"Back to project\" : \"Claude Sessions\")}><svg class=\"w-6 h-6 text-gh-accent\" fill=\"none\" stroke=\"currentColor\" viewBox=\"0 0 24 24\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z\"></path></svg> <span class=\"text-2xl font-semibold hidden sm:inline\">Claude Sessions</span></a> `);\n {\n $$renderer3.push(\"<!--[-1-->\");\n }\n $$renderer3.push(`<!--]--> <button class=\"p-1.5 rounded-md text-gh-text-secondary hover:text-gh-text hover:bg-gh-border-subtle transition-colors\"${attr(\"title\", `Theme: ${stringify(store_get($$store_subs ??= {}, \"$themePreference\", themePreference))} (${stringify(store_get($$store_subs ??= {}, \"$effectiveTheme\", effectiveTheme))})`)}>`);\n if (store_get($$store_subs ??= {}, \"$effectiveTheme\", effectiveTheme) === \"light\") {\n $$renderer3.push(\"<!--[0-->\");\n $$renderer3.push(`<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=\"M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z\"></path></svg>`);\n } else if (store_get($$store_subs ??= {}, \"$themePreference\", themePreference) === \"system\") {\n $$renderer3.push(\"<!--[1-->\");\n $$renderer3.push(`<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=\"M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z\"></path></svg>`);\n } else {\n $$renderer3.push(\"<!--[-1-->\");\n $$renderer3.push(`<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=\"M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z\"></path></svg>`);\n }\n $$renderer3.push(`<!--]--></button></div> <div class=\"relative flex-1 max-w-md mx-8\"><input type=\"text\" placeholder=\"Search sessions...\"${attr(\"value\", searchQuery)} class=\"w-full px-4 py-2 bg-gh-bg border border-gh-border rounded-md text-sm focus:outline-none focus:border-gh-accent\"/> `);\n {\n $$renderer3.push(\"<!--[-1-->\");\n }\n $$renderer3.push(`<!--]--> `);\n {\n $$renderer3.push(\"<!--[-1-->\");\n }\n $$renderer3.push(`<!--]--></div> <div class=\"flex gap-2\"><button class=\"bg-gh-border-subtle border border-gh-border text-gh-text px-4 py-2 rounded-md text-sm transition-colors hover:bg-gh-border hover:border-gh-text-secondary disabled:opacity-50 disabled:cursor-not-allowed\"${attr(\"disabled\", cleaning, true)}>${escape_html(\"Cleanup\")}</button> <button class=\"bg-gh-red border border-gh-red text-white px-4 py-2 rounded-md text-sm transition-colors hover:bg-red-700 disabled:opacity-50 disabled:cursor-not-allowed\"${attr(\"disabled\", shuttingDown, true)}>${escape_html(\"Shutdown\")}</button></div></header> <main${attr_class(`flex-1 ${stringify(isSessionPage() ? \"\" : \"p-8 max-w-7xl mx-auto\")} w-full overflow-y-auto`)}>`);\n children($$renderer3);\n $$renderer3.push(`<!----></main></div> `);\n {\n $$renderer3.push(\"<!--[-1-->\");\n }\n $$renderer3.push(`<!--]--> `);\n {\n $$renderer3.push(\"<!--[-1-->\");\n }\n $$renderer3.push(`<!--]--> `);\n ConfirmModal($$renderer3, {\n show: confirmModal.show,\n title: confirmModal.title,\n message: confirmModal.message,\n variant: confirmModal.variant,\n onConfirm: confirmModal.onConfirm,\n onCancel: closeConfirm\n });\n $$renderer3.push(`<!----> `);\n Toast($$renderer3, {\n variant: toastVariant,\n get message() {\n return toastMessage;\n },\n set message($$value) {\n toastMessage = $$value;\n $$settled = false;\n }\n });\n $$renderer3.push(`<!---->`);\n }\n do {\n $$settled = true;\n $$inner_renderer = $$renderer2.copy();\n $$render_inner($$inner_renderer);\n } while (!$$settled);\n $$renderer2.subsume($$inner_renderer);\n if ($$store_subs) unsubscribe_stores($$store_subs);\n });\n}\nexport {\n _layout as default\n};\n"],"names":["derived","derived$1"],"mappings":";;;;;;;;;;;;;;AAUA,MAAM,mBAAmB,GAAG,MAAM;AAClC,EAAE,IAAI,OAAO,YAAY,KAAK,WAAW,EAAE,OAAO,QAAQ;AAC1D,EAAE,MAAM,MAAM,GAAG,YAAY,CAAC,OAAO,CAAC,OAAO,CAAC;AAC9C,EAAE,IAAI,MAAM,KAAK,OAAO,IAAI,MAAM,KAAK,MAAM,IAAI,MAAM,KAAK,QAAQ,EAAE,OAAO,MAAM;AACnF,EAAE,OAAO,QAAQ;AACjB,CAAC;AACD,MAAM,cAAc,GAAG,MAAM;AAC7B,EAAE,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,OAAO,MAAM;AAClD,EAAE,OAAO,MAAM,CAAC,UAAU,CAAC,+BAA+B,CAAC,CAAC,OAAO,GAAG,OAAO,GAAG,MAAM;AACtF,CAAC;AACD,MAAM,eAAe,GAAG,QAAQ,CAAC,mBAAmB,EAAE,CAAC;AACvD,MAAM,cAAc,GAAGA,SAAO,CAAC,eAAe,EAAE,CAAC,KAAK,KAAK;AAC3D,EAAE,IAAI,KAAK,KAAK,QAAQ,EAAE,OAAO,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I,WAAW,CAAC,OAAO,CAAC,gBAAgB,CAAC;AACzC,IAAI,IAAI,YAAY,EAAE,kBAAkB,CAAC,YAAY,CAAC;AACtD,EAAE,CAAC,CAAC;AACJ;;;;"}
@@ -1,7 +1,7 @@
1
- import { x as escape_html, E as ensure_array_like, p as attr, y as attr_class, q as stringify, z as derived, t as store_get, F as clsx, G as attributes, B as unsubscribe_stores, H as await_block, I as is_array, J as get_prototype_of, K as object_prototype } from './index-CUeePJRv.js';
1
+ import { x as escape_html, E as ensure_array_like, p as attr, y as attr_class, q as stringify, z as derived, t as store_get, F as clsx, G as attributes, B as unsubscribe_stores, H as await_block, I as is_array, J as get_prototype_of, K as object_prototype } from './index-Dqbd-Nxp.js';
2
2
  import { b as base } from './server-Bf8x1V_n.js';
3
- import { T as Toast, C as ConfirmModal, f as formatProjectName, a as appConfig, t as truncate, b as formatDate, m as maskHomePath } from './Toast-C0Uluww6.js';
4
- import { I as InputModal } from './InputModal-B2QW71Rc.js';
3
+ import { T as Toast, C as ConfirmModal, f as formatProjectName, a as appConfig, t as truncate, b as formatDate, m as maskHomePath } from './Toast-AVuTocXd.js';
4
+ import { I as InputModal } from './InputModal-Cp5WgcYP.js';
5
5
  import { T as TREE_ICONS, x as sortProjects, y as getTotalTodoCount, z as getDisplayTitle, A as sessionHasSubItems, B as getSessionTooltip, C as validateProgressMessages, v as validateChain, D as parseCommandMessage, E as deleteMessageWithChainRepair } from './index2-gxrJEKeb.js';
6
6
  import 'marked';
7
7
  import 'fs';
@@ -618,7 +618,14 @@ function MessageItem($$renderer, $$props) {
618
618
  $$renderer2.push(`<!--]--></ul></div>`);
619
619
  } else if (isSlashCommand() && commandData()) {
620
620
  $$renderer2.push("<!--[5-->");
621
- $$renderer2.push(`<div${attr("data-msg-id", msgId())} class="p-3 rounded-lg bg-gh-accent/15 border-l-3 border-l-gh-accent group relative"><div class="flex justify-between items-center text-xs text-gh-text-secondary"><span class="font-semibold text-gh-accent">${escape_html(commandData().name || "Command")}</span> <div class="flex items-center gap-2"><span>${escape_html(formatDate(msg.timestamp))}</span> `);
621
+ $$renderer2.push(`<div${attr("data-msg-id", msgId())} class="p-3 rounded-lg bg-gh-accent/15 border-l-3 border-l-gh-accent group relative"><div class="flex justify-between items-center text-xs text-gh-text-secondary"><span><span class="font-semibold text-gh-accent">${escape_html(commandData().name || "Command")}</span> `);
622
+ if (commandData().args) {
623
+ $$renderer2.push("<!--[0-->");
624
+ $$renderer2.push(`<span class="text-gh-text-secondary">${escape_html(commandData().args)}</span>`);
625
+ } else {
626
+ $$renderer2.push("<!--[-1-->");
627
+ }
628
+ $$renderer2.push(`<!--]--></span> <div class="flex items-center gap-2"><span>${escape_html(formatDate(msg.timestamp))}</span> `);
622
629
  splitButton($$renderer2);
623
630
  $$renderer2.push(`<!----> `);
624
631
  deleteButton($$renderer2);
@@ -1785,4 +1792,4 @@ Old messages (${oldMessagesCount}) will be moved to a new session.`, async () =>
1785
1792
  }
1786
1793
 
1787
1794
  export { _page as default };
1788
- //# sourceMappingURL=_page.svelte-BBAp4Vom.js.map
1795
+ //# sourceMappingURL=_page.svelte-D0jFzJtD.js.map