claude-mux 0.7.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -2
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +1 -1
- package/dist/utils/version.d.ts +1 -1
- package/dist/utils/version.js +1 -1
- package/dist/web/client/_app/immutable/chunks/{DU91Ml7U.js → BGcEgn7w.js} +1 -1
- package/{web/.svelte-kit/output/client/_app/immutable/chunks/DmdO6ygw.js → dist/web/client/_app/immutable/chunks/By6CYjmE.js} +1 -1
- package/dist/web/client/_app/immutable/chunks/{HKNo9LID.js → CR5jMWGV.js} +1 -1
- package/{web/.svelte-kit/output/client/_app/immutable/entry/app.CGIBnoln.js → dist/web/client/_app/immutable/entry/app.DmtnygN7.js} +2 -2
- package/dist/web/client/_app/immutable/entry/start.fYmelGlC.js +1 -0
- package/dist/web/client/_app/immutable/nodes/{0.CqlJ9a31.js → 0.DGDAdwT5.js} +1 -1
- package/dist/web/client/_app/immutable/nodes/{1.BQUZh2-w.js → 1.Cg8dWgUN.js} +1 -1
- package/dist/web/client/_app/immutable/nodes/{2.CCV1YdgF.js → 2.DItUEo3e.js} +1 -1
- package/dist/web/client/_app/immutable/nodes/{3.D9tDCdq8.js → 3.dHui0twF.js} +1 -1
- package/dist/web/client/_app/immutable/nodes/{4.BqPyNkFA.js → 4.CiEHP0cr.js} +1 -1
- package/dist/web/client/_app/version.json +1 -1
- package/dist/web/server/chunks/{0-BHWsmCJv.js → 0-BmRg-l2z.js} +5 -5
- package/dist/web/server/chunks/{0-BHWsmCJv.js.map → 0-BmRg-l2z.js.map} +1 -1
- package/dist/web/server/chunks/{1-YRx6A8Tm.js → 1-CPgO8U7d.js} +3 -3
- package/dist/web/server/chunks/{1-YRx6A8Tm.js.map → 1-CPgO8U7d.js.map} +1 -1
- package/dist/web/server/chunks/{2-eC6JuGAo.js → 2--ZO5fZp_.js} +5 -5
- package/dist/web/server/chunks/{2-eC6JuGAo.js.map → 2--ZO5fZp_.js.map} +1 -1
- package/dist/web/server/chunks/{3-Bk-wV20p.js → 3-7HqSep9c.js} +3 -3
- package/dist/web/server/chunks/{3-Bk-wV20p.js.map → 3-7HqSep9c.js.map} +1 -1
- package/dist/web/server/chunks/{4-nteBgDrW.js → 4-C1PCdmY0.js} +4 -4
- package/dist/web/server/chunks/{4-nteBgDrW.js.map → 4-C1PCdmY0.js.map} +1 -1
- package/dist/web/server/index.js +1 -1
- package/dist/web/server/index.js.map +1 -1
- package/dist/web/server/manifest.js +10 -10
- package/dist/web/server/manifest.js.map +1 -1
- package/docs/release-checklist.md +8 -34
- package/docs/removing-hooks.md +14 -14
- package/package.json +1 -1
- package/src/cli.ts +1 -1
- package/src/utils/version.ts +1 -1
- package/web/.svelte-kit/adapter-bun/chunks/internal.js +1 -1
- package/web/.svelte-kit/adapter-bun/manifest-full.js +1 -1
- package/web/.svelte-kit/adapter-bun/manifest.js +1 -1
- package/web/.svelte-kit/adapter-bun/nodes/0.js +1 -1
- package/web/.svelte-kit/adapter-bun/nodes/1.js +1 -1
- package/web/.svelte-kit/adapter-bun/nodes/2.js +1 -1
- package/web/.svelte-kit/adapter-bun/nodes/3.js +1 -1
- package/web/.svelte-kit/adapter-bun/nodes/4.js +1 -1
- package/web/.svelte-kit/adapter-node/.vite/manifest.json +200 -15
- package/web/.svelte-kit/adapter-node/_app/immutable/assets/AllSessionsPanel.BKhqOrbV.css +1 -0
- package/web/.svelte-kit/adapter-node/_app/immutable/assets/_layout.WptSHSUl.css +1 -0
- package/web/.svelte-kit/adapter-node/_app/immutable/assets/_page.DldLgTc-.css +1 -0
- package/web/.svelte-kit/adapter-node/_app/immutable/assets/_page.DoNWy7tW.css +1 -0
- package/web/.svelte-kit/adapter-node/chunks/AllSessionsPanel.svelte_svelte_type_style_lang.js +49 -0
- package/web/.svelte-kit/adapter-node/chunks/alert-dialog-description.js +2670 -0
- package/web/.svelte-kit/adapter-node/chunks/auth.js +59 -0
- package/web/.svelte-kit/adapter-node/chunks/button.js +82 -0
- package/web/.svelte-kit/adapter-node/chunks/client.js +29 -0
- package/web/.svelte-kit/adapter-node/chunks/context.js +28 -16
- package/web/.svelte-kit/adapter-node/chunks/events.js +121 -0
- package/web/.svelte-kit/adapter-node/chunks/index.js +1 -1
- package/web/.svelte-kit/adapter-node/chunks/index2.js +186 -68
- package/web/.svelte-kit/adapter-node/chunks/internal.js +5 -90
- package/web/.svelte-kit/adapter-node/chunks/pane.js +82 -0
- package/web/.svelte-kit/adapter-node/chunks/sessions-json.js +16 -1
- package/web/.svelte-kit/adapter-node/chunks/sessions.svelte.js +174 -12
- package/web/.svelte-kit/adapter-node/chunks/ws-handlers.js +782 -0
- package/web/.svelte-kit/adapter-node/entries/endpoints/api/auth/login/_server.ts.js +22 -0
- package/web/.svelte-kit/adapter-node/entries/endpoints/api/auth/logout/_server.ts.js +9 -0
- package/web/.svelte-kit/adapter-node/entries/endpoints/api/beads/_server.ts.js +22 -0
- package/web/.svelte-kit/adapter-node/entries/endpoints/api/chrome/_server.ts.js +30 -0
- package/web/.svelte-kit/adapter-node/entries/endpoints/api/files/image/_server.ts.js +53 -0
- package/web/.svelte-kit/adapter-node/entries/endpoints/api/sessions/_id_/kill/_server.ts.js +12 -6
- package/web/.svelte-kit/adapter-node/entries/endpoints/api/sessions/_id_/restart/_server.ts.js +40 -0
- package/web/.svelte-kit/adapter-node/entries/endpoints/api/sessions/_id_/screenshots/_server.ts.js +28 -0
- package/web/.svelte-kit/adapter-node/entries/endpoints/api/sessions/_id_/send/_server.ts.js +11 -4
- package/web/.svelte-kit/adapter-node/entries/endpoints/api/sessions/_server.ts.js +1 -78
- package/web/.svelte-kit/adapter-node/entries/endpoints/api/sessions/_target_/output/_server.ts.js +2 -2
- package/web/.svelte-kit/adapter-node/entries/endpoints/api/tmux/panes/_server.ts.js +21 -0
- package/web/.svelte-kit/adapter-node/entries/fallbacks/error.svelte.js +1 -18
- package/web/.svelte-kit/adapter-node/entries/hooks.server.js +105 -0
- package/web/.svelte-kit/adapter-node/entries/pages/_layout.svelte.js +493 -6
- package/web/.svelte-kit/adapter-node/entries/pages/_page.svelte.js +3024 -54
- package/web/.svelte-kit/adapter-node/entries/pages/login/_page.server.ts.js +15 -0
- package/web/.svelte-kit/adapter-node/entries/pages/login/_page.svelte.js +37 -0
- package/web/.svelte-kit/adapter-node/entries/pages/session/_target_/_page.svelte.js +623 -46
- package/web/.svelte-kit/adapter-node/manifest-full.js +67 -3
- package/web/.svelte-kit/adapter-node/manifest.js +67 -3
- package/web/.svelte-kit/adapter-node/nodes/0.js +2 -2
- package/web/.svelte-kit/adapter-node/nodes/1.js +1 -1
- package/web/.svelte-kit/adapter-node/nodes/2.js +2 -2
- package/web/.svelte-kit/adapter-node/nodes/3.js +6 -4
- package/web/.svelte-kit/adapter-node/nodes/4.js +8 -0
- package/web/.svelte-kit/ambient.d.ts +28 -2
- package/web/.svelte-kit/generated/server/internal.js +1 -1
- package/web/.svelte-kit/output/client/.vite/manifest.json +44 -44
- package/web/.svelte-kit/output/client/_app/immutable/chunks/{DU91Ml7U.js → BGcEgn7w.js} +1 -1
- package/{dist/web/client/_app/immutable/chunks/DmdO6ygw.js → web/.svelte-kit/output/client/_app/immutable/chunks/By6CYjmE.js} +1 -1
- package/web/.svelte-kit/output/client/_app/immutable/chunks/{HKNo9LID.js → CR5jMWGV.js} +1 -1
- package/{dist/web/client/_app/immutable/entry/app.CGIBnoln.js → web/.svelte-kit/output/client/_app/immutable/entry/app.DmtnygN7.js} +2 -2
- package/web/.svelte-kit/output/client/_app/immutable/entry/start.fYmelGlC.js +1 -0
- package/web/.svelte-kit/output/client/_app/immutable/nodes/{0.CqlJ9a31.js → 0.DGDAdwT5.js} +1 -1
- package/web/.svelte-kit/output/client/_app/immutable/nodes/{1.BQUZh2-w.js → 1.Cg8dWgUN.js} +1 -1
- package/web/.svelte-kit/output/client/_app/immutable/nodes/{2.CCV1YdgF.js → 2.DItUEo3e.js} +1 -1
- package/web/.svelte-kit/output/client/_app/immutable/nodes/{3.D9tDCdq8.js → 3.dHui0twF.js} +1 -1
- package/web/.svelte-kit/output/client/_app/immutable/nodes/{4.BqPyNkFA.js → 4.CiEHP0cr.js} +1 -1
- package/web/.svelte-kit/output/client/_app/version.json +1 -1
- package/web/.svelte-kit/output/server/chunks/internal.js +1 -1
- package/web/.svelte-kit/output/server/manifest-full.js +1 -1
- package/web/.svelte-kit/output/server/manifest.js +1 -1
- package/web/.svelte-kit/output/server/nodes/0.js +1 -1
- package/web/.svelte-kit/output/server/nodes/1.js +1 -1
- package/web/.svelte-kit/output/server/nodes/2.js +1 -1
- package/web/.svelte-kit/output/server/nodes/3.js +1 -1
- package/web/.svelte-kit/output/server/nodes/4.js +1 -1
- package/dist/web/client/_app/immutable/entry/start.CJk8zB1j.js +0 -1
- package/web/.svelte-kit/adapter-node/_app/immutable/assets/_layout.4NiX29PU.css +0 -1
- package/web/.svelte-kit/adapter-node/_app/immutable/assets/_page.BEMzYUGV.css +0 -1
- package/web/.svelte-kit/adapter-node/_app/immutable/assets/_page.DOJn7TG7.css +0 -1
- package/web/.svelte-kit/output/client/_app/immutable/entry/start.CJk8zB1j.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b3 as pn,h as rt,i as ke,bd as gn,f as Re,g as p,I as vn,J as mn,K as he,L as Ft,M as Mt,F as Et,af as bn,aU as yn,aB as pe,y as wn,D as Ht,H as Sn,a6 as En,aX as Tn,aS as Zt,be as Cn,ap as Ut,bf as An,bg as Pn,T as _n,C as Lt,bh as q,z as De,B as Fe,bi as Bt,bj as In,aR as On,A as xn,aj as Nn,O as kn,ag as Rn,bk as Me,bl as Dn,s as O,d as E,Z as zt,ad as A,bm as ge,ao as gt,bn as Fn,bo as ve,bp as Mn,u as Ln,k as Rt,l as Kt,ac as Bn,p as P,x as T,a as _,R as M,c as Z,r as Q,bq as Vn,br as jn,b as Gt}from"./BHwiZXRv.js";import{s as Wn}from"./
|
|
1
|
+
import{b3 as pn,h as rt,i as ke,bd as gn,f as Re,g as p,I as vn,J as mn,K as he,L as Ft,M as Mt,F as Et,af as bn,aU as yn,aB as pe,y as wn,D as Ht,H as Sn,a6 as En,aX as Tn,aS as Zt,be as Cn,ap as Ut,bf as An,bg as Pn,T as _n,C as Lt,bh as q,z as De,B as Fe,bi as Bt,bj as In,aR as On,A as xn,aj as Nn,O as kn,ag as Rn,bk as Me,bl as Dn,s as O,d as E,Z as zt,ad as A,bm as ge,ao as gt,bn as Fn,bo as ve,bp as Mn,u as Ln,k as Rt,l as Kt,ac as Bn,p as P,x as T,a as _,R as M,c as Z,r as Q,bq as Vn,br as jn,b as Gt}from"./BHwiZXRv.js";import{s as Wn}from"./BGcEgn7w.js";import{r as Hn,o as V,c as C,a as S,p as ut,f as G,m as Un,u as zn}from"./U4ip-C0d.js";import{c as $}from"./C9P-coqM.js";import{B as Kn,p as b,i as z,r as D,c as j,b as Le}from"./B5U4_V3d.js";import{i as Vt,e as x,f as tt,g as et,j as Be}from"./cgUjKIhX.js";function Gn(){return Symbol(pn)}function qn(n,t,e){rt&&ke();var r=new Kn(n),s=!gn();Re(()=>{var o=t();s&&o!==null&&typeof o=="object"&&(o={}),r.ensure(o,e)})}function fi(n,t){return t}function Xn(n,t,e){for(var r=[],s=t.length,o,i=t.length,a=0;a<s;a++){let m=t[a];Fe(m,()=>{if(o){if(o.pending.delete(m),o.done.add(m),o.pending.size===0){var g=n.outrogroups;qt(Zt(o.done)),g.delete(o),g.size===0&&(n.outrogroups=null)}}else i-=1},!1)}if(i===0){var c=r.length===0&&e!==null;if(c){var u=e,l=u.parentNode;On(l),l.append(u),n.items.clear()}qt(t,!c)}else o={pending:new Set(t),done:new Set},(n.outrogroups??=new Set).add(o)}function qt(n,t=!0){for(var e=0;e<n.length;e++)xn(n[e],t)}var me;function hi(n,t,e,r,s,o=null){var i=n,a=new Map,c=(t&Me)!==0;if(c){var u=n;i=rt?Ft(Nn(u)):u.appendChild(Lt())}rt&&ke();var l=null,m=En(()=>{var y=e();return Tn(y)?y:y==null?[]:Zt(y)}),g,h=!0;function v(){f.fallback=l,Yn(f,g,i,t,r),l!==null&&(g.length===0?(l.f&q)===0?De(l):(l.f^=q,yt(l,null,i)):Fe(l,()=>{l=null}))}var d=Re(()=>{g=p(m);var y=g.length;let R=!1;if(rt){var L=vn(i)===mn;L!==(y===0)&&(i=he(),Ft(i),Mt(!1),R=!0)}for(var I=new Set,Y=wn,B=Sn(),F=0;F<y;F+=1){rt&&Et.nodeType===bn&&Et.data===yn&&(i=Et,R=!0,Mt(!1));var U=g[F],W=r(U,F),k=h?null:a.get(W);k?(k.v&&pe(k.v,U),k.i&&pe(k.i,F),B&&Y.skipped_effects.delete(k.e)):(k=Jn(a,h?i:me??=Lt(),U,W,F,s,t,e),h||(k.e.f|=q),a.set(W,k)),I.add(W)}if(y===0&&o&&!l&&(h?l=Ht(()=>o(i)):(l=Ht(()=>o(me??=Lt())),l.f|=q)),rt&&y>0&&Ft(he()),!h)if(B){for(const[ot,de]of a)I.has(ot)||Y.skipped_effects.add(de.e);Y.oncommit(v),Y.ondiscard(()=>{})}else v();R&&Mt(!0),p(m)}),f={effect:d,items:a,outrogroups:null,fallback:l};h=!1,rt&&(i=Et)}function vt(n){for(;n!==null&&(n.f&In)===0;)n=n.next;return n}function Yn(n,t,e,r,s){var o=(r&Dn)!==0,i=t.length,a=n.items,c=vt(n.effect.first),u,l=null,m,g=[],h=[],v,d,f,y;if(o)for(y=0;y<i;y+=1)v=t[y],d=s(v,y),f=a.get(d).e,(f.f&q)===0&&(f.nodes?.a?.measure(),(m??=new Set).add(f));for(y=0;y<i;y+=1){if(v=t[y],d=s(v,y),f=a.get(d).e,n.outrogroups!==null)for(const k of n.outrogroups)k.pending.delete(f),k.done.delete(f);if((f.f&q)!==0)if(f.f^=q,f===c)yt(f,null,e);else{var R=l?l.next:c;f===n.effect.last&&(n.effect.last=f.prev),f.prev&&(f.prev.next=f.next),f.next&&(f.next.prev=f.prev),J(n,l,f),J(n,f,R),yt(f,R,e),l=f,g=[],h=[],c=vt(l.next);continue}if((f.f&Bt)!==0&&(De(f),o&&(f.nodes?.a?.unfix(),(m??=new Set).delete(f))),f!==c){if(u!==void 0&&u.has(f)){if(g.length<h.length){var L=h[0],I;l=L.prev;var Y=g[0],B=g[g.length-1];for(I=0;I<g.length;I+=1)yt(g[I],L,e);for(I=0;I<h.length;I+=1)u.delete(h[I]);J(n,Y.prev,B.next),J(n,l,Y),J(n,B,L),c=L,l=B,y-=1,g=[],h=[]}else u.delete(f),yt(f,c,e),J(n,f.prev,f.next),J(n,f,l===null?n.effect.first:l.next),J(n,l,f),l=f;continue}for(g=[],h=[];c!==null&&c!==f;)(u??=new Set).add(c),h.push(c),c=vt(c.next);if(c===null)continue}(f.f&q)===0&&g.push(f),l=f,c=vt(f.next)}if(n.outrogroups!==null){for(const k of n.outrogroups)k.pending.size===0&&(qt(Zt(k.done)),n.outrogroups?.delete(k));n.outrogroups.size===0&&(n.outrogroups=null)}if(c!==null||u!==void 0){var F=[];if(u!==void 0)for(f of u)(f.f&Bt)===0&&F.push(f);for(;c!==null;)(c.f&Bt)===0&&c!==n.fallback&&F.push(c),c=vt(c.next);var U=F.length;if(U>0){var W=(r&Me)!==0&&i===0?e:null;if(o){for(y=0;y<U;y+=1)F[y].nodes?.a?.measure();for(y=0;y<U;y+=1)F[y].nodes?.a?.fix()}Xn(n,F,W)}}o&&kn(()=>{if(m!==void 0)for(f of m)f.nodes?.a?.apply()})}function Jn(n,t,e,r,s,o,i,a){var c=(i&An)!==0?(i&Pn)===0?_n(e,!1,!1):Ut(e):null,u=(i&Cn)!==0?Ut(s):null;return{v:c,i:u,e:Ht(()=>(o(t,c??e,u??s,a),()=>{n.delete(r)}))}}function yt(n,t,e){if(n.nodes)for(var r=n.nodes.start,s=n.nodes.end,o=t&&(t.f&q)===0?t.nodes.start:e;r!==null;){var i=Rn(r);if(o.before(r),r===s)return;r=i}}function J(n,t,e){t===null?n.effect.first=e:t.next=e,e===null?n.effect.last=t:e.prev=t}const Zn=()=>{const n=Wn;return{page:{subscribe:n.page.subscribe},navigating:{subscribe:n.navigating.subscribe},updated:n.updated}},pi={subscribe(n){return Zn().page.subscribe(n)}},Qn={pingInterval:3e4,pongTimeout:1e4,baseReconnectDelay:1e3,maxReconnectDelay:3e4};class $n{#t=O(!1);get connected(){return p(this.#t)}set connected(t){E(this.#t,t,!0)}ws=null;pingTimer=null;reconnectTimer=null;lastPong=0;reconnectAttempts=0;visibilityHandler=null;config;constructor(t){this.config={...Qn,...t}}shouldReconnect(){return!0}onConnected(){}onDisconnected(){}doConnect(){if(this.ws)return;const t=this.getWsUrl();this.ws=new WebSocket(t),this.ws.onopen=()=>{this.connected=!0,this.reconnectAttempts=0,this.lastPong=Date.now(),this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),this.startPingTimer(),this.setupVisibilityHandler(),this.onConnected()},this.ws.onmessage=e=>{if(e.data==="pong"){this.lastPong=Date.now();return}this.handleMessage(e)},this.ws.onclose=()=>{this.connected=!1,this.ws=null,this.stopPingTimer(),this.onDisconnected(),this.shouldReconnect()&&this.scheduleReconnect()},this.ws.onerror=()=>{this.ws?.close()}}doDisconnect(){this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),this.stopPingTimer(),this.removeVisibilityHandler(),this.connected=!1,this.reconnectAttempts=0,this.ws&&(this.ws.onopen=null,this.ws.onclose=null,this.ws.onerror=null,this.ws.onmessage=null,this.ws.readyState!==WebSocket.CLOSED&&this.ws.close(),this.ws=null)}forceReconnect(){this.reconnectAttempts=0,this.ws&&(this.ws.onclose=null,this.ws.close(),this.ws=null),this.stopPingTimer(),this.connected=!1,this.doConnect()}startPingTimer(){this.stopPingTimer(),this.pingTimer=setInterval(()=>{if(this.ws?.readyState===WebSocket.OPEN){if(Date.now()-this.lastPong>this.config.pingInterval+this.config.pongTimeout){this.ws?.close();return}this.ws.send("ping")}},this.config.pingInterval)}stopPingTimer(){this.pingTimer&&(clearInterval(this.pingTimer),this.pingTimer=null)}scheduleReconnect(){if(this.reconnectTimer)return;const t=Math.min(this.config.baseReconnectDelay*Math.pow(2,this.reconnectAttempts)+Math.random()*1e3,this.config.maxReconnectDelay);this.reconnectAttempts++,this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.doConnect()},t)}setupVisibilityHandler(){this.visibilityHandler||(this.visibilityHandler=()=>{document.visibilityState==="visible"&&this.shouldReconnect()&&(!this.ws||this.ws.readyState!==WebSocket.OPEN?this.forceReconnect():this.ws.send("ping"))},document.addEventListener("visibilitychange",this.visibilityHandler))}removeVisibilityHandler(){this.visibilityHandler&&(document.removeEventListener("visibilitychange",this.visibilityHandler),this.visibilityHandler=null)}}class tr extends $n{#t=O(zt([]));get sessions(){return p(this.#t)}set sessions(t){E(this.#t,t,!0)}#e=O(!1);get paused(){return p(this.#e)}set paused(t){E(this.#e,t,!0)}#n=O(zt([]));get savedProjects(){return p(this.#n)}set savedProjects(t){E(this.#n,t,!0)}getWsUrl(){return`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/api/sessions/stream`}getLogPrefix(){return"[sessions]"}handleMessage(t){if(this.paused)return;const e=JSON.parse(t.data);e.sessions&&(this.sessions=e.sessions)}connect(){this.doConnect()}disconnect(){this.doDisconnect()}togglePause(){this.paused=!this.paused}loadSavedProjects(){try{this.savedProjects=JSON.parse(localStorage.getItem("claude-mux-projects")||"[]")}catch{this.savedProjects=[]}}saveProject(t){this.savedProjects.includes(t)||(this.savedProjects=[...this.savedProjects,t],localStorage.setItem("claude-mux-projects",JSON.stringify(this.savedProjects)))}removeProject(t){this.savedProjects=this.savedProjects.filter(e=>e!==t),localStorage.setItem("claude-mux-projects",JSON.stringify(this.savedProjects))}}const gi=new tr;function vi(n){switch(n){case"permission":case"waiting":return"#e74c3c";case"idle":return"#f39c12";case"busy":return"#27ae60";default:return"#666"}}function mi(n){let t=0;for(let r=0;r<n.length;r++)t=n.charCodeAt(r)+((t<<5)-t);return`hsl(${Math.abs(t)%360}, 60%, 40%)`}function St(n){return n!==null&&typeof n=="object"}const er=["string","number","bigint","boolean"];function Xt(n){return n==null||er.includes(typeof n)?!0:Array.isArray(n)?n.every(t=>Xt(t)):typeof n=="object"?Object.getPrototypeOf(n)===Object.prototype:!1}const _t=Symbol("box"),Ve=Symbol("is-writable");function w(n,t){const e=A(n);return t?{[_t]:!0,[Ve]:!0,get current(){return p(e)},set current(r){t(r)}}:{[_t]:!0,get current(){return n()}}}function nr(n){return St(n)&&_t in n}function rr(n){let t=O(zt(n));return{[_t]:!0,[Ve]:!0,get current(){return p(t)},set current(e){E(t,e,!0)}}}function je(...n){return function(t){for(const e of n)if(e){if(t.defaultPrevented)return;typeof e=="function"?e.call(this,t):e.current?.call(this,t)}}}var be=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,sr=/\n/g,ir=/^\s*/,or=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,ar=/^:\s*/,cr=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,ur=/^[;\s]*/,lr=/^\s+|\s+$/g,dr=`
|
|
2
2
|
`,ye="/",we="*",st="",fr="comment",hr="declaration";function pr(n,t){if(typeof n!="string")throw new TypeError("First argument must be a string");if(!n)return[];t=t||{};var e=1,r=1;function s(v){var d=v.match(sr);d&&(e+=d.length);var f=v.lastIndexOf(dr);r=~f?v.length-f:r+v.length}function o(){var v={line:e,column:r};return function(d){return d.position=new i(v),u(),d}}function i(v){this.start=v,this.end={line:e,column:r},this.source=t.source}i.prototype.content=n;function a(v){var d=new Error(t.source+":"+e+":"+r+": "+v);if(d.reason=v,d.filename=t.source,d.line=e,d.column=r,d.source=n,!t.silent)throw d}function c(v){var d=v.exec(n);if(d){var f=d[0];return s(f),n=n.slice(f.length),d}}function u(){c(ir)}function l(v){var d;for(v=v||[];d=m();)d!==!1&&v.push(d);return v}function m(){var v=o();if(!(ye!=n.charAt(0)||we!=n.charAt(1))){for(var d=2;st!=n.charAt(d)&&(we!=n.charAt(d)||ye!=n.charAt(d+1));)++d;if(d+=2,st===n.charAt(d-1))return a("End of comment missing");var f=n.slice(2,d-2);return r+=2,s(f),n=n.slice(d),r+=2,v({type:fr,comment:f})}}function g(){var v=o(),d=c(or);if(d){if(m(),!c(ar))return a("property missing ':'");var f=c(cr),y=v({type:hr,property:Se(d[0].replace(be,st)),value:f?Se(f[0].replace(be,st)):st});return c(ur),y}}function h(){var v=[];l(v);for(var d;d=g();)d!==!1&&(v.push(d),l(v));return v}return u(),h()}function Se(n){return n?n.replace(lr,st):st}function gr(n,t){let e=null;if(!n||typeof n!="string")return e;const r=pr(n),s=typeof t=="function";return r.forEach(o=>{if(o.type!=="declaration")return;const{property:i,value:a}=o;s?t(i,a,o):a&&(e=e||{},e[i]=a)}),e}const vr=/\d/,mr=["-","_","/","."];function br(n=""){if(!vr.test(n))return n!==n.toLowerCase()}function yr(n){const t=[];let e="",r,s;for(const o of n){const i=mr.includes(o);if(i===!0){t.push(e),e="",r=void 0;continue}const a=br(o);if(s===!1){if(r===!1&&a===!0){t.push(e),e=o,r=a;continue}if(r===!0&&a===!1&&e.length>1){const c=e.at(-1);t.push(e.slice(0,Math.max(0,e.length-1))),e=c+o,r=a;continue}}e+=o,r=a,s=i}return t.push(e),t}function We(n){return n?yr(n).map(t=>Sr(t)).join(""):""}function wr(n){return Er(We(n||""))}function Sr(n){return n?n[0].toUpperCase()+n.slice(1):""}function Er(n){return n?n[0].toLowerCase()+n.slice(1):""}function Tt(n){if(!n)return{};const t={};function e(r,s){if(r.startsWith("-moz-")||r.startsWith("-webkit-")||r.startsWith("-ms-")||r.startsWith("-o-")){t[We(r)]=s;return}if(r.startsWith("--")){t[r]=s;return}t[wr(r)]=s}return gr(n,e),t}function wt(...n){return(...t)=>{for(const e of n)typeof e=="function"&&e(...t)}}function Tr(n,t){const e=RegExp(n,"g");return r=>{if(typeof r!="string")throw new TypeError(`expected an argument of type string, but got ${typeof r}`);return r.match(e)?r.replace(e,t):r}}const Cr=Tr(/[A-Z]/,n=>`-${n.toLowerCase()}`);function Ar(n){if(!n||typeof n!="object"||Array.isArray(n))throw new TypeError(`expected an argument of type object, but got ${typeof n}`);return Object.keys(n).map(t=>`${Cr(t)}: ${n[t]};`).join(`
|
|
3
3
|
`)}function Pr(n={}){return Ar(n).replace(`
|
|
4
4
|
`," ")}const _r=["onabort","onanimationcancel","onanimationend","onanimationiteration","onanimationstart","onauxclick","onbeforeinput","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncompositionend","oncompositionstart","oncompositionupdate","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onfocusin","onfocusout","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onselectionchange","onselectstart","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitioncancel","ontransitionend","ontransitionrun","ontransitionstart","onvolumechange","onwaiting","onwebkitanimationend","onwebkitanimationiteration","onwebkitanimationstart","onwebkittransitionend","onwheel"],Ir=new Set(_r);function Or(n){return Ir.has(n)}function K(...n){const t={...n[0]};for(let e=1;e<n.length;e++){const r=n[e];if(r){for(const s of Object.keys(r)){const o=t[s],i=r[s],a=typeof o=="function",c=typeof i=="function";if(a&&Or(s)){const u=o,l=i;t[s]=je(u,l)}else if(a&&c)t[s]=wt(o,i);else if(s==="class"){const u=Xt(o),l=Xt(i);u&&l?t[s]=Vt(o,i):u?t[s]=Vt(o):l&&(t[s]=Vt(i))}else if(s==="style"){const u=typeof o=="object",l=typeof i=="object",m=typeof o=="string",g=typeof i=="string";if(u&&l)t[s]={...o,...i};else if(u&&g){const h=Tt(i);t[s]={...o,...h}}else if(m&&l){const h=Tt(o);t[s]={...h,...i}}else if(m&&g){const h=Tt(o),v=Tt(i);t[s]={...h,...v}}else u?t[s]=o:l?t[s]=i:m?t[s]=o:g&&(t[s]=i)}else t[s]=i!==void 0?i:o}for(const s of Object.getOwnPropertySymbols(r)){const o=t[s],i=r[s];t[s]=i!==void 0?i:o}}}return typeof t.style=="object"&&(t.style=Pr(t.style).replaceAll(`
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.
|
|
2
|
-
import{d as k,a8 as G,g as m,aa as Q,Q as W,T as Y,p as z,u as F,k as H,ab as J,ac as K,x as O,b as X,a as Z,s as x,c as $,r as ee,ad as L,t as te}from"../chunks/BHwiZXRv.js";import{h as re,m as se,u as ne,a as b,c as S,f as V,t as ae,s as oe}from"../chunks/U4ip-C0d.js";import{p as j,i as A,b as C}from"../chunks/B5U4_V3d.js";import{c as T}from"../chunks/C9P-coqM.js";function ce(o){return class extends ie{constructor(e){super({component:o,...e})}}}class ie{#t;#e;constructor(e){var n=new Map,i=(r,t)=>{var s=Y(t,!1,!1);return n.set(r,s),s};const l=new Proxy({...e.props||{},$$events:{}},{get(r,t){return m(n.get(t)??i(t,Reflect.get(r,t)))},has(r,t){return t===G?!0:(m(n.get(t)??i(t,Reflect.get(r,t))),Reflect.has(r,t))},set(r,t,s){return k(n.get(t)??i(t,s),s),Reflect.set(r,t,s)}});this.#e=(e.hydrate?re:se)(e.component,{target:e.target,anchor:e.anchor,props:l,context:e.context,intro:e.intro??!1,recover:e.recover}),(!e?.props?.$$host||e.sync===!1)&&Q(),this.#t=l.$$events;for(const r of Object.keys(this.#e))r==="$set"||r==="$destroy"||r==="$on"||W(this,r,{get(){return this.#e[r]},set(t){this.#e[r]=t},enumerable:!0});this.#e.$set=r=>{Object.assign(l,r)},this.#e.$destroy=()=>{ne(this.#e)}}$set(e){this.#e.$set(e)}$on(e,n){this.#t[e]=this.#t[e]||[];const i=(...l)=>n.call(this,...l);return this.#t[e].push(i),()=>{this.#t[e]=this.#t[e].filter(l=>l!==i)}}$destroy(){this.#e.$destroy()}}const le="modulepreload",ue=function(o,e){return new URL(o,e).href},I={},R=function(e,n,i){let l=Promise.resolve();if(n&&n.length>0){let w=function(c){return Promise.all(c.map(d=>Promise.resolve(d).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}))))};const t=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),p=s?.nonce||s?.getAttribute("nonce");l=w(n.map(c=>{if(c=ue(c,i),c in I)return;I[c]=!0;const d=c.endsWith(".css"),f=d?'[rel="stylesheet"]':"";if(i)for(let h=t.length-1;h>=0;h--){const a=t[h];if(a.href===c&&(!d||a.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${f}`))return;const u=document.createElement("link");if(u.rel=d?"stylesheet":le,d||(u.as="script"),u.crossOrigin="",u.href=c,p&&u.setAttribute("nonce",p),document.head.appendChild(u),d)return new Promise((h,a)=>{u.addEventListener("load",h),u.addEventListener("error",()=>a(new Error(`Unable to preload CSS for ${c}`)))})}))}function r(t){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=t,window.dispatchEvent(s),!s.defaultPrevented)throw t}return l.then(t=>{for(const s of t||[])s.status==="rejected"&&r(s.reason);return e().catch(r)})},Ee={};var de=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>'),me=V("<!> <!>",1);function fe(o,e){z(e,!0);let n=j(e,"components",23,()=>[]),i=j(e,"data_0",3,null),l=j(e,"data_1",3,null);F(()=>e.stores.page.set(e.page)),H(()=>{e.stores,e.page,e.constructors,n(),e.form,i(),l(),e.stores.page.notify()});let r=x(!1),t=x(!1),s=x(null);J(()=>{const a=e.stores.page.subscribe(()=>{m(r)&&(k(t,!0),K().then(()=>{k(s,document.title||"untitled page",!0)}))});return k(r,!0),a});const p=L(()=>e.constructors[1]);var w=me(),c=O(w);{var d=a=>{const _=L(()=>e.constructors[0]);var v=S(),E=O(v);T(E,()=>m(_),(g,y)=>{C(y(g,{get data(){return i()},get form(){return e.form},get params(){return e.page.params},children:(P,_e)=>{var D=S(),N=O(D);T(N,()=>m(p),(q,U)=>{C(U(q,{get data(){return l()},get form(){return e.form},get params(){return e.page.params}}),B=>n()[1]=B,()=>n()?.[1])}),b(P,D)},$$slots:{default:!0}}),P=>n()[0]=P,()=>n()?.[0])}),b(a,v)},f=a=>{const _=L(()=>e.constructors[0]);var v=S(),E=O(v);T(E,()=>m(_),(g,y)=>{C(y(g,{get data(){return i()},get form(){return e.form},get params(){return e.page.params}}),P=>n()[0]=P,()=>n()?.[0])}),b(a,v)};A(c,a=>{e.constructors[1]?a(d):a(f,!1)})}var u=X(c,2);{var h=a=>{var _=de(),v=$(_);{var E=g=>{var y=ae();te(()=>oe(y,m(s))),b(g,y)};A(v,g=>{m(t)&&g(E)})}ee(_),b(a,_)};A(u,a=>{m(r)&&a(h)})}b(o,w),Z()}const Pe=ce(fe),Re=[()=>R(()=>import("../nodes/0.
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.DGDAdwT5.js","../chunks/U4ip-C0d.js","../chunks/BHwiZXRv.js","../chunks/B5U4_V3d.js","../chunks/cgUjKIhX.js","../chunks/CR5jMWGV.js","../chunks/BGcEgn7w.js","../chunks/C9P-coqM.js","../chunks/Cegv0r8x.js","../chunks/By6CYjmE.js","../chunks/-3mUPuLP.js","../assets/AllSessionsPanel.CGHY3HLy.css","../assets/0.WptSHSUl.css","../nodes/1.Cg8dWgUN.js","../nodes/2.DItUEo3e.js","../assets/2.s6Kx4oz1.css","../nodes/3.dHui0twF.js","../nodes/4.CiEHP0cr.js","../assets/4.DoNWy7tW.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{d as k,a8 as G,g as m,aa as Q,Q as W,T as Y,p as z,u as F,k as H,ab as J,ac as K,x as O,b as X,a as Z,s as x,c as $,r as ee,ad as L,t as te}from"../chunks/BHwiZXRv.js";import{h as re,m as se,u as ne,a as b,c as S,f as V,t as ae,s as oe}from"../chunks/U4ip-C0d.js";import{p as j,i as A,b as C}from"../chunks/B5U4_V3d.js";import{c as T}from"../chunks/C9P-coqM.js";function ce(o){return class extends ie{constructor(e){super({component:o,...e})}}}class ie{#t;#e;constructor(e){var n=new Map,i=(r,t)=>{var s=Y(t,!1,!1);return n.set(r,s),s};const l=new Proxy({...e.props||{},$$events:{}},{get(r,t){return m(n.get(t)??i(t,Reflect.get(r,t)))},has(r,t){return t===G?!0:(m(n.get(t)??i(t,Reflect.get(r,t))),Reflect.has(r,t))},set(r,t,s){return k(n.get(t)??i(t,s),s),Reflect.set(r,t,s)}});this.#e=(e.hydrate?re:se)(e.component,{target:e.target,anchor:e.anchor,props:l,context:e.context,intro:e.intro??!1,recover:e.recover}),(!e?.props?.$$host||e.sync===!1)&&Q(),this.#t=l.$$events;for(const r of Object.keys(this.#e))r==="$set"||r==="$destroy"||r==="$on"||W(this,r,{get(){return this.#e[r]},set(t){this.#e[r]=t},enumerable:!0});this.#e.$set=r=>{Object.assign(l,r)},this.#e.$destroy=()=>{ne(this.#e)}}$set(e){this.#e.$set(e)}$on(e,n){this.#t[e]=this.#t[e]||[];const i=(...l)=>n.call(this,...l);return this.#t[e].push(i),()=>{this.#t[e]=this.#t[e].filter(l=>l!==i)}}$destroy(){this.#e.$destroy()}}const le="modulepreload",ue=function(o,e){return new URL(o,e).href},I={},R=function(e,n,i){let l=Promise.resolve();if(n&&n.length>0){let w=function(c){return Promise.all(c.map(d=>Promise.resolve(d).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}))))};const t=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),p=s?.nonce||s?.getAttribute("nonce");l=w(n.map(c=>{if(c=ue(c,i),c in I)return;I[c]=!0;const d=c.endsWith(".css"),f=d?'[rel="stylesheet"]':"";if(i)for(let h=t.length-1;h>=0;h--){const a=t[h];if(a.href===c&&(!d||a.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${f}`))return;const u=document.createElement("link");if(u.rel=d?"stylesheet":le,d||(u.as="script"),u.crossOrigin="",u.href=c,p&&u.setAttribute("nonce",p),document.head.appendChild(u),d)return new Promise((h,a)=>{u.addEventListener("load",h),u.addEventListener("error",()=>a(new Error(`Unable to preload CSS for ${c}`)))})}))}function r(t){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=t,window.dispatchEvent(s),!s.defaultPrevented)throw t}return l.then(t=>{for(const s of t||[])s.status==="rejected"&&r(s.reason);return e().catch(r)})},Ee={};var de=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>'),me=V("<!> <!>",1);function fe(o,e){z(e,!0);let n=j(e,"components",23,()=>[]),i=j(e,"data_0",3,null),l=j(e,"data_1",3,null);F(()=>e.stores.page.set(e.page)),H(()=>{e.stores,e.page,e.constructors,n(),e.form,i(),l(),e.stores.page.notify()});let r=x(!1),t=x(!1),s=x(null);J(()=>{const a=e.stores.page.subscribe(()=>{m(r)&&(k(t,!0),K().then(()=>{k(s,document.title||"untitled page",!0)}))});return k(r,!0),a});const p=L(()=>e.constructors[1]);var w=me(),c=O(w);{var d=a=>{const _=L(()=>e.constructors[0]);var v=S(),E=O(v);T(E,()=>m(_),(g,y)=>{C(y(g,{get data(){return i()},get form(){return e.form},get params(){return e.page.params},children:(P,_e)=>{var D=S(),N=O(D);T(N,()=>m(p),(q,U)=>{C(U(q,{get data(){return l()},get form(){return e.form},get params(){return e.page.params}}),B=>n()[1]=B,()=>n()?.[1])}),b(P,D)},$$slots:{default:!0}}),P=>n()[0]=P,()=>n()?.[0])}),b(a,v)},f=a=>{const _=L(()=>e.constructors[0]);var v=S(),E=O(v);T(E,()=>m(_),(g,y)=>{C(y(g,{get data(){return i()},get form(){return e.form},get params(){return e.page.params}}),P=>n()[0]=P,()=>n()?.[0])}),b(a,v)};A(c,a=>{e.constructors[1]?a(d):a(f,!1)})}var u=X(c,2);{var h=a=>{var _=de(),v=$(_);{var E=g=>{var y=ae();te(()=>oe(y,m(s))),b(g,y)};A(v,g=>{m(t)&&g(E)})}ee(_),b(a,_)};A(u,a=>{m(r)&&a(h)})}b(o,w),Z()}const Pe=ce(fe),Re=[()=>R(()=>import("../nodes/0.DGDAdwT5.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]),import.meta.url),()=>R(()=>import("../nodes/1.Cg8dWgUN.js"),__vite__mapDeps([13,1,2,10,6]),import.meta.url),()=>R(()=>import("../nodes/2.DItUEo3e.js"),__vite__mapDeps([14,1,2,10,4,3,9,5,6,7,11,15]),import.meta.url),()=>R(()=>import("../nodes/3.dHui0twF.js"),__vite__mapDeps([16,1,2,3,4,6]),import.meta.url),()=>R(()=>import("../nodes/4.CiEHP0cr.js"),__vite__mapDeps([17,1,2,3,7,4,5,6,8,18]),import.meta.url)],pe=[],we={"/":[2],"/login":[-4],"/session/[target]":[4]},M={handleError:(({error:o})=>{console.error(o)}),reroute:(()=>{}),transport:{}},he=Object.fromEntries(Object.entries(M.transport).map(([o,e])=>[o,e.decode])),Oe=Object.fromEntries(Object.entries(M.transport).map(([o,e])=>[o,e.encode])),ke=!1,xe=(o,e)=>he[o](e);export{xe as decode,he as decoders,we as dictionary,Oe as encoders,ke as hash,M as hooks,Ee as matchers,Re as nodes,Pe as root,pe as server_loads};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{l as o,a as r}from"../chunks/BGcEgn7w.js";export{o as load_css,r as start};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as Re,s as z,a as o,f as u,t as Te,c as xe,w as Ue}from"../chunks/U4ip-C0d.js";import{s as M,Z as Be,g as e,d as v,p as De,c as i,b as a,r as s,t as P,a as ze,x as le,n as ve,k as Ae,ad as pe,ab as Ne,ak as Oe}from"../chunks/BHwiZXRv.js";import{i as R,p as Fe,s as We,a as Me,b as He}from"../chunks/B5U4_V3d.js";import{c as Y,s as ue,d as he,B as Ie,a as Se,h as $e,e as Le}from"../chunks/cgUjKIhX.js";import{R as Ke,e as je,a as Pe,p as Xe,s as Je}from"../chunks/HKNo9LID.js";import{g as Ve}from"../chunks/DU91Ml7U.js";import{i as Ye}from"../chunks/Cegv0r8x.js";import{B as qe,A as Ze}from"../chunks/DmdO6ygw.js";const Ge=!0,Ce=Ge;class Qe extends Ke{#e=M(Be([]));get issues(){return e(this.#e)}set issues(t){v(this.#e,t,!0)}#t=M("open");get filter(){return e(this.#t)}set filter(t){v(this.#t,t,!0)}#s=M(null);get currentProject(){return e(this.#s)}set currentProject(t){v(this.#s,t,!0)}#i=M(!1);get loading(){return e(this.#i)}set loading(t){v(this.#i,t,!0)}#a=M(null);get error(){return e(this.#a)}set error(t){v(this.#a,t,!0)}get filteredIssues(){const t=this.issues;switch(this.filter){case"ready":return t.filter(b=>b.status==="open"&&(!b.dependencies||!b.dependencies.some(K=>K.type==="blocked_by")));case"open":return t.filter(b=>b.status!=="closed"&&b.status!=="deferred");default:return t}}get issueCount(){return this.filteredIssues.length}getWsUrl(){const t=window.location.protocol==="https:"?"wss:":"ws:",p=encodeURIComponent(this.currentProject||"");return`${t}//${window.location.host}/api/beads/stream?project=${p}`}getLogPrefix(){return"[beads]"}shouldReconnect(){return!!this.currentProject}handleMessage(t){try{const p=JSON.parse(t.data);p.issues&&(this.issues=p.issues,this.error=null)}catch(p){console.error("[beads] Failed to parse message:",p)}}onConnected(){this.loading=!1,this.error=null}onDisconnected(){}setProject(t){t!==this.currentProject&&(this.currentProject&&this.doDisconnect(),this.currentProject=t,this.issues=[],this.error=null,t&&Ce&&(this.loading=!0,this.doConnect()))}setFilter(t){this.filter=t}refresh(){this.currentProject&&this.forceReconnect()}connect(){this.currentProject&&Ce&&this.doConnect()}disconnect(){this.doDisconnect()}}const de=new Qe;var et=u('<div class="description svelte-1yk20pg"> </div>'),tt=u('<div class="detail-row svelte-1yk20pg"><span class="detail-label svelte-1yk20pg">Assignee</span> <span class="detail-value svelte-1yk20pg"> </span></div>'),st=u('<div class="detail-row svelte-1yk20pg"><span class="detail-label svelte-1yk20pg">Owner</span> <span class="detail-value svelte-1yk20pg"> </span></div>'),it=u('<div class="detail-row svelte-1yk20pg"><span class="detail-label svelte-1yk20pg">Dependencies</span> <span class="detail-value svelte-1yk20pg"> </span></div>'),at=u('<div class="detail-row svelte-1yk20pg"><span class="detail-label svelte-1yk20pg">Updated</span> <span class="detail-value svelte-1yk20pg"> </span></div>'),nt=u("<iconify-icon></iconify-icon> Use ID",3),rt=u('<div class="issue-details svelte-1yk20pg"><div class="full-title svelte-1yk20pg"> </div> <!> <div class="details-mobile svelte-1yk20pg"><div class="detail-row svelte-1yk20pg"><span class="detail-label svelte-1yk20pg">Status</span> <span class="detail-value status-value svelte-1yk20pg"> </span></div> <div class="detail-row svelte-1yk20pg"><span class="detail-label svelte-1yk20pg">Type</span> <span class="detail-value svelte-1yk20pg"> </span></div></div> <div class="details-desktop svelte-1yk20pg"><div class="detail-row svelte-1yk20pg"><span class="detail-label svelte-1yk20pg">Status</span> <span class="detail-value status-value svelte-1yk20pg"> </span></div> <div class="detail-row svelte-1yk20pg"><span class="detail-label svelte-1yk20pg">Type</span> <span class="detail-value svelte-1yk20pg"> </span></div> <!> <!> <!> <div class="detail-row svelte-1yk20pg"><span class="detail-label svelte-1yk20pg">Created</span> <span class="detail-value svelte-1yk20pg"> </span></div> <!> <div class="detail-row svelte-1yk20pg"><span class="detail-label svelte-1yk20pg">ID</span> <span class="detail-value id-value svelte-1yk20pg"> </span></div></div> <!></div>'),ot=u('<div><button class="issue-item svelte-1yk20pg" type="button"><span class="status-dot svelte-1yk20pg"></span> <span class="issue-title svelte-1yk20pg"> </span> <span class="priority-badge svelte-1yk20pg"> </span> <iconify-icon></iconify-icon></button> <!></div>',2);function lt(oe,t){De(t,!0);let p=M(!1);function b(h){switch(h){case"in_progress":return"#27ae60";case"open":return"#f39c12";case"blocked":return"#e74c3c";default:return"#888888"}}function K(h){switch(h){case 0:return"#e74c3c";case 1:return"#e67e22";case 2:return"#f39c12";case 3:return"#3498db";default:return"#888888"}}function B(h){return h.replace("_"," ")}function S(h){return h?new Date(h).toLocaleDateString():"—"}function Z(){v(p,!e(p))}function F(h){h.stopPropagation(),t.onSelect?.(t.issue)}var X=ot();let y;var C=i(X);C.__click=Z;var te=i(C),se=a(te,2),T=i(se,!0);s(se);var D=a(se,2),H=i(D);s(D);var J=a(D,2);P(()=>Y(J,"icon",e(p)?"mdi:chevron-up":"mdi:chevron-down")),ue(J,1,"chevron svelte-1yk20pg"),s(C);var N=a(C,2);{var $=h=>{var m=rt(),j=i(m),ie=i(j,!0);s(j);var G=a(j,2);{var re=l=>{var _=et(),E=i(_,!0);s(_),P(()=>z(E,t.issue.description)),o(l,_)};R(G,l=>{t.issue.description&&l(re)})}var q=a(G,2),c=i(q),x=a(i(c),2),L=i(x,!0);s(x),s(c);var n=a(c,2),f=a(i(n),2),g=i(f,!0);s(f),s(n),s(q);var I=a(q,2),W=i(I),A=a(i(W),2),U=i(A,!0);s(A),s(W);var O=a(W,2),r=a(i(O),2),d=i(r,!0);s(r),s(O);var k=a(O,2);{var w=l=>{var _=tt(),E=a(i(_),2),ee=i(E,!0);s(E),s(_),P(()=>z(ee,t.issue.assignee)),o(l,_)};R(k,l=>{t.issue.assignee&&l(w)})}var ae=a(k,2);{var me=l=>{var _=st(),E=a(i(_),2),ee=i(E,!0);s(E),s(_),P(()=>z(ee,t.issue.owner)),o(l,_)};R(ae,l=>{t.issue.owner&&l(me)})}var ce=a(ae,2);{var ge=l=>{var _=it(),E=a(i(_),2),ee=i(E,!0);s(E),s(_),P(be=>z(ee,be),[()=>t.issue.dependencies.map(be=>be.depends_on_id).join(", ")]),o(l,_)};R(ce,l=>{t.issue.dependencies&&t.issue.dependencies.length>0&&l(ge)})}var ne=a(ce,2),V=a(i(ne),2),_e=i(V,!0);s(V),s(ne);var ye=a(ne,2);{var we=l=>{var _=at(),E=a(i(_),2),ee=i(E,!0);s(E),s(_),P(be=>z(ee,be),[()=>S(t.issue.updated_at)]),o(l,_)};R(ye,l=>{t.issue.updated_at&&l(we)})}var fe=a(ye,2),ke=a(i(fe),2),Ee=i(ke,!0);s(ke),s(fe),s(I);var Q=a(I,2);Ie(Q,{variant:"outline",size:"sm",onclick:F,class:"use-id-btn",children:(l,_)=>{var E=nt(),ee=le(E);Y(ee,"icon","mdi:arrow-right-circle"),ve(),o(l,E)},$$slots:{default:!0}}),s(m),P((l,_,E,ee,be)=>{z(ie,t.issue.title),he(x,`color: ${l??""}`),z(L,_),z(g,t.issue.issue_type),he(A,`color: ${E??""}`),z(U,ee),z(d,t.issue.issue_type),z(_e,be),z(Ee,t.issue.id)},[()=>b(t.issue.status),()=>B(t.issue.status),()=>b(t.issue.status),()=>B(t.issue.status),()=>S(t.issue.created_at)]),o(h,m)};R(N,h=>{e(p)&&h($)})}s(X),P((h,m)=>{y=ue(X,1,"issue-wrapper svelte-1yk20pg",null,y,{expanded:e(p)}),he(te,`background: ${h??""}`),z(T,t.issue.title),he(D,`background: ${m??""}`),z(H,`P${t.issue.priority??""}`)},[()=>b(t.issue.status),()=>K(t.issue.priority)]),o(oe,X),ze()}Re(["click"]);var ct=u('<div class="loading svelte-ye9143">Loading issues...</div>'),dt=u('<div class="error svelte-ye9143"> </div>'),vt=u('<div class="empty svelte-ye9143">No issues</div>'),ut=u('<div class="panel-content svelte-ye9143"><div class="filter-buttons svelte-ye9143"></div> <div><!></div></div>'),_t=u('<div class="beads-panel svelte-ye9143"><button class="panel-header svelte-ye9143" type="button"><iconify-icon></iconify-icon> <span>Issues</span> <!> <iconify-icon></iconify-icon></button> <!></div>',2);function ft(oe,t){De(t,!0);let p=M(!0);Ae(()=>{de.setProject(t.project)});function b(){v(p,!e(p))}function K(T){de.setFilter(T)}function B(T){t.onSelect?.(T)}const S=[{label:"Ready",value:"ready"},{label:"Open",value:"open"},{label:"All",value:"all"}];var Z=_t(),F=i(Z);F.__click=b;var X=i(F);Y(X,"icon","mdi:checkbox-multiple-marked-outline");var y=a(X,4);qe(y,{variant:"outline",class:"ml-auto issue-count",children:(T,D)=>{ve();var H=Te();P(()=>z(H,de.issueCount)),o(T,H)},$$slots:{default:!0}});var C=a(y,2);P(()=>Y(C,"icon",e(p)?"mdi:chevron-down":"mdi:chevron-right")),ue(C,1,"chevron svelte-ye9143"),s(F);var te=a(F,2);{var se=T=>{var D=ut(),H=i(D);je(H,21,()=>S,m=>m.value,(m,j)=>{{let ie=pe(()=>de.filter===e(j).value?"default":"ghost");Ie(m,{get variant(){return e(ie)},size:"sm",onclick:()=>K(e(j).value),class:"filter-btn",children:(G,re)=>{ve();var q=Te();P(()=>z(q,e(j).label)),o(G,q)},$$slots:{default:!0}})}}),s(H);var J=a(H,2),N=i(J);{var $=m=>{var j=ct();o(m,j)},h=m=>{var j=xe(),ie=le(j);{var G=q=>{var c=dt(),x=i(c,!0);s(c),P(()=>z(x,de.error)),o(q,c)},re=q=>{var c=xe(),x=le(c);{var L=f=>{var g=vt();o(f,g)},n=f=>{var g=xe(),I=le(g);je(I,17,()=>de.filteredIssues,W=>W.id,(W,A)=>{lt(W,{get issue(){return e(A)},onSelect:B})}),o(f,g)};R(x,f=>{de.filteredIssues.length===0?f(L):f(n,!1)},!0)}o(q,c)};R(ie,q=>{de.error?q(G):q(re,!1)},!0)}o(m,j)};R(N,m=>{de.loading?m($):m(h,!1)})}s(J),s(D),o(T,D)};R(te,T=>{e(p)&&T(se)})}s(Z),o(oe,Z),ze()}Re(["click"]);var pt=u('<div class="empty svelte-i8iwb7">No screenshots</div>'),ht=u("<iconify-icon></iconify-icon>",2),mt=u('<div class="screenshot-item svelte-i8iwb7"><button class="thumbnail svelte-i8iwb7"><img loading="lazy" class="svelte-i8iwb7"/></button> <!></div>'),gt=u('<div class="screenshots-grid svelte-i8iwb7"></div>'),yt=u('<div class="panel-content svelte-i8iwb7"><!></div>'),wt=u("<iconify-icon></iconify-icon> <span>Close</span>",3),bt=u("<iconify-icon></iconify-icon> <span>Delete</span>",3),kt=u('<div class="modal-overlay svelte-i8iwb7" role="dialog" aria-modal="true" tabindex="-1"><div class="modal-content svelte-i8iwb7" role="document"><img class="modal-image svelte-i8iwb7"/> <div class="modal-actions svelte-i8iwb7"><!> <!></div> <div class="swipe-hint svelte-i8iwb7"><iconify-icon></iconify-icon> <span>Swipe left to close</span></div></div></div>',2),St=u('<div class="screenshots-panel svelte-i8iwb7"><button class="panel-header svelte-i8iwb7" type="button"><iconify-icon></iconify-icon> <span>Screenshots</span> <!> <iconify-icon></iconify-icon></button> <!></div> <!>',3);function xt(oe,t){De(t,!0);let p=M(!0),b=M(null),K=M(0),B=M(0),S=M(!1);function Z(){v(p,!e(p))}async function F(c){await fetch(`/api/sessions/${encodeURIComponent(t.sessionId)}/screenshots?path=${encodeURIComponent(c)}`,{method:"DELETE"}),e(b)===c&&v(b,null)}function X(c){v(b,c,!0)}function y(){v(b,null),D()}function C(c){return c.split("/").pop()||c}function te(c){v(K,c.touches[0].clientX,!0),v(B,e(K),!0),v(S,!0)}function se(c){e(S)&&v(B,c.touches[0].clientX,!0)}function T(){if(!e(S))return;e(B)-e(K)<-100&&y(),D()}function D(){v(S,!1),v(K,0),v(B,0)}const H=pe(()=>e(S)?Math.min(0,e(B)-e(K)):0);var J=St(),N=le(J),$=i(N);$.__click=Z;var h=i($);Y(h,"icon","mdi:image-multiple");var m=a(h,4);qe(m,{variant:"outline",class:"ml-auto screenshot-count",children:(c,x)=>{ve();var L=Te();P(()=>z(L,t.screenshots.length)),o(c,L)},$$slots:{default:!0}});var j=a(m,2);P(()=>Y(j,"icon",e(p)?"mdi:chevron-down":"mdi:chevron-right")),ue(j,1,"chevron svelte-i8iwb7"),s($);var ie=a($,2);{var G=c=>{var x=yt(),L=i(x);{var n=g=>{var I=pt();o(g,I)},f=g=>{var I=gt();je(I,21,()=>t.screenshots,W=>W.path,(W,A)=>{var U=mt(),O=i(U);O.__click=()=>X(e(A).path);var r=i(O);s(O);var d=a(O,2);Ie(d,{variant:"ghost",size:"icon-sm",class:"dismiss-btn",onclick:()=>F(e(A).path),title:"Dismiss screenshot",children:(k,w)=>{var ae=ht();Y(ae,"icon","mdi:close"),o(k,ae)},$$slots:{default:!0}}),s(U),P((k,w,ae)=>{Se(O,"title",k),Se(r,"src",`/api/files/image?path=${w??""}`),Se(r,"alt",ae)},[()=>C(e(A).path),()=>encodeURIComponent(e(A).path),()=>C(e(A).path)]),o(W,U)}),s(I),o(g,I)};R(L,g=>{t.screenshots.length===0?g(n):g(f,!1)})}s(x),o(c,x)};R(ie,c=>{e(p)&&c(G)})}s(N);var re=a(N,2);{var q=c=>{var x=kt();x.__click=y,x.__keydown=U=>U.key==="Escape"&&y();var L=i(x);L.__click=U=>U.stopPropagation(),L.__touchstart=te,L.__touchmove=se,L.__touchend=T;var n=i(L),f=a(n,2),g=i(f);Ie(g,{variant:"secondary",size:"sm",onclick:y,class:"modal-btn",children:(U,O)=>{var r=wt(),d=le(r);Y(d,"icon","mdi:close"),ve(2),o(U,r)},$$slots:{default:!0}});var I=a(g,2);Ie(I,{variant:"destructive",size:"sm",onclick:()=>F(e(b)),class:"modal-btn",children:(U,O)=>{var r=bt(),d=le(r);Y(d,"icon","mdi:delete"),ve(2),o(U,r)},$$slots:{default:!0}}),s(f);var W=a(f,2),A=i(W);Y(A,"icon","mdi:gesture-swipe-left"),ve(2),s(W),s(L),s(x),P((U,O)=>{he(L,`transform: translateX(${e(H)??""}px)`),Se(n,"src",`/api/files/image?path=${U??""}`),Se(n,"alt",O)},[()=>encodeURIComponent(e(b)),()=>C(e(b))]),o(c,x)};R(re,c=>{e(b)&&c(q)})}o(oe,J),ze()}Re(["click","keydown","touchstart","touchmove","touchend"]);var It=u("<iconify-icon></iconify-icon>",2),Et=u('<div class="session-action svelte-1wiqrar"> </div>'),Pt=u('<a><span class="icon-slot svelte-1wiqrar"><span class="state-dot svelte-1wiqrar"></span></span> <div class="session-info svelte-1wiqrar"><div class="session-name svelte-1wiqrar"> </div> <!></div></a>'),Rt=u('<div class="empty svelte-1wiqrar">No active sessions</div>'),Dt=u('<div class="sessions-list svelte-1wiqrar"></div>'),zt=u('<div class="sessions-panel"><button class="panel-header svelte-1wiqrar" type="button"><iconify-icon></iconify-icon> <span>Sessions</span> <!> <iconify-icon></iconify-icon></button> <!></div>',2),Tt=u('<nav class="sidebar-sessions svelte-1wiqrar"><div class="sidebar-header svelte-1wiqrar"><a href="/" class="home-link svelte-1wiqrar"><iconify-icon></iconify-icon> <span> </span></a> <!></div> <div class="scroll-content svelte-1wiqrar"><!> <!> <!></div></nav>',2);function jt(oe,t){De(t,!0);const p=()=>Me(Xe,"$page",b),[b,K]=We();let B=Fe(t,"hideSessionsList",3,!1),S=M(!0);function Z(){v(S,!e(S))}const F=pe(()=>p().url.pathname.startsWith("/session/")),X=pe(()=>p().params.target?decodeURIComponent(p().params.target):null),y=pe(()=>Pe.sessions.find(n=>n.tmux_target===e(X)||n.id===e(X))),C=pe(()=>{const n=e(y)?.cwd||e(y)?.git_root;if(!n)return null;const f=n.split("/").filter(Boolean);return f[f.length-1]||null}),te=pe(()=>{const n=e(y)?.git_root||e(y)?.cwd;return n?Pe.sessions.filter(f=>f.git_root===n||f.cwd===n):Pe.sessions});async function se(){const n=e(y)?.cwd||e(y)?.git_root;if(!n)return;const g=await(await fetch("/api/projects/new-session",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({cwd:n})})).json();if(g.ok&&g.session){const I=g.session+":1.1";t.onSelect?.(),Ve(`/session/${encodeURIComponent(I)}`)}}function T(n){e(F)&&(Ye.inject(n.id),t.onSelect?.())}var D=Tt(),H=i(D),J=i(H);J.__click=function(...n){t.onSelect?.apply(this,n)};var N=i(J);Y(N,"icon","mdi:folder-outline");var $=a(N,2),h=i($,!0);s($),s(J);var m=a(J,2);{var j=n=>{Ie(n,{variant:"ghost",size:"icon-sm",onclick:se,title:"New session in this project",class:"new-session-btn",children:(f,g)=>{var I=It();Y(I,"icon","mdi:plus"),o(f,I)},$$slots:{default:!0}})};R(m,n=>{e(y)?.cwd&&n(j)})}s(H);var ie=a(H,2),G=i(ie);{var re=n=>{var f=zt(),g=i(f);g.__click=Z;var I=i(g);Y(I,"icon","mdi:console");var W=a(I,4);qe(W,{variant:"outline",class:"ml-auto session-count",children:(r,d)=>{ve();var k=Te();P(()=>z(k,e(te).length)),o(r,k)},$$slots:{default:!0}});var A=a(W,2);P(()=>Y(A,"icon",e(S)?"mdi:chevron-down":"mdi:chevron-right")),ue(A,1,"chevron svelte-1wiqrar"),s(g);var U=a(g,2);{var O=r=>{var d=Dt();je(d,21,()=>e(te),k=>k.id,(k,w)=>{var ae=xe(),me=le(ae);{var ce=ge=>{var ne=Pt();let V;ne.__click=function(...l){t.onSelect?.apply(this,l)};var _e=i(ne),ye=i(_e);s(_e);var we=a(_e,2),fe=i(we),ke=i(fe,!0);s(fe);var Ee=a(fe,2);{var Q=l=>{var _=Et(),E=i(_,!0);s(_),P(()=>z(E,e(w).current_action)),o(l,_)};R(Ee,l=>{e(w).current_action&&l(Q)})}s(we),s(ne),P((l,_)=>{Se(ne,"href",`/session/${l??""}`),V=ue(ne,1,"session-item svelte-1wiqrar",null,V,{active:e(w).tmux_target===e(X)||e(w).id===e(X)}),he(ye,`background: ${_??""}`),z(ke,e(w).pane_title||e(w).tmux_target)},[()=>encodeURIComponent(e(w).tmux_target),()=>Je(e(w).state)]),o(ge,ne)};R(me,ge=>{e(w).tmux_target&&ge(ce)})}o(k,ae)},k=>{var w=Rt();o(k,w)}),s(d),o(r,d)};R(U,r=>{e(S)&&r(O)})}s(f),o(n,f)};R(G,n=>{B()||n(re)})}var q=a(G,2);{var c=n=>{ft(n,{get project(){return e(y).git_root},onSelect:T})};R(q,n=>{e(y)?.beads_enabled&&n(c)})}var x=a(q,2);{var L=n=>{xt(n,{get sessionId(){return e(y).id},get screenshots(){return e(y).screenshots}})};R(x,n=>{e(y)?.screenshots&&e(y).screenshots.length>0&&n(L)})}s(ie),s(D),P(()=>z(h,e(C)||"Sessions")),o(oe,D),ze(),K()}Re(["click"]);var qt=Ue(u('<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"/> <meta name="apple-mobile-web-app-capable" content="yes"/> <script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"><\/script>',1)),Lt=u('<aside><!> <div class="resize-handle svelte-12qhfyh" role="separator" aria-orientation="vertical"></div></aside>'),Ct=u('<button class="backdrop svelte-12qhfyh" aria-label="Close menu"></button>'),Wt=u('<div><!> <main class="content svelte-12qhfyh"><button class="hamburger svelte-12qhfyh" aria-label="Toggle menu"><iconify-icon></iconify-icon></button> <!></main> <aside><div class="resize-handle resize-handle-left svelte-12qhfyh" role="separator" aria-orientation="vertical"></div> <!> <div class="resize-handle resize-handle-right svelte-12qhfyh" role="separator" aria-orientation="vertical"></div></aside> <!></div>',2);function Ht(oe,t){De(t,!0);const p=()=>Me(Xe,"$page",b),[b,K]=We();let B=M(!1),S=M(null),Z=0,F=0,X=!1;const y=1200;let C=M(!1);const te="claude-mux-sidebar-width",se="claude-mux-split-panel-width",T=200,D=500,H=250,J=350;let N=M(H),$=M(J),h=M(!1),m=M(!1),j=0;const ie=pe(()=>p().url.pathname.startsWith("/session/"));Ne(()=>{Pe.connect();{v(C,window.innerWidth>=y);const r=()=>{v(C,window.innerWidth>=y)};window.addEventListener("resize",r);const d=localStorage.getItem(te);if(d){const w=parseInt(d,10);w>=T&&w<=D&&v(N,w,!0)}const k=localStorage.getItem(se);if(k){const w=parseInt(k,10);w>=T&&w<=D&&v($,w,!0)}return()=>window.removeEventListener("resize",r)}}),Oe(()=>{Pe.disconnect()});function G(r){r.preventDefault(),v(h,!0),e(S)&&(j=e(S).getBoundingClientRect().right),document.addEventListener("mousemove",re),document.addEventListener("mouseup",q)}function re(r){if(e(h))if(e(C)){const d=Math.min(D,Math.max(T,j-r.clientX));v(N,d,!0)}else{const d=j-e(N),k=Math.min(D,Math.max(T,r.clientX-d));v(N,k,!0)}}function q(){v(h,!1),document.removeEventListener("mousemove",re),document.removeEventListener("mouseup",q),localStorage.setItem(te,e(N).toString())}function c(r){r.preventDefault(),v(m,!0),document.addEventListener("mousemove",x),document.addEventListener("mouseup",L)}function x(r){if(!e(m))return;const d=Math.min(D,Math.max(T,r.clientX));v($,d,!0)}function L(){v(m,!1),document.removeEventListener("mousemove",x),document.removeEventListener("mouseup",L),localStorage.setItem(se,e($).toString())}function n(){v(B,!1)}function f(r){Z=r.touches[0].clientX,F=Z,X=!0}function g(r){if(!X||!e(S))return;F=r.touches[0].clientX;const d=F-Z;d<0&&(e(S).style.transform=`translateX(${d}px)`)}function I(){if(!X||!e(S))return;X=!1,F-Z<-80&&n(),e(S).style.transform=""}var W=xe();$e("12qhfyh",r=>{var d=qt();ve(4),o(r,d)});var A=le(W);{var U=r=>{var d=Wt();let k;var w=i(d);{var ae=Q=>{var l=Lt();let _;var E=i(l);Ze(E,{compact:!0});var ee=a(E,2);ee.__mousedown=c,s(l),P(()=>{_=ue(l,1,"split-panel svelte-12qhfyh",null,_,{resizing:e(m)}),he(l,`--split-panel-width: ${e($)??""}px`)}),o(Q,l)};R(w,Q=>{e(C)&&Q(ae)})}var me=a(w,2),ce=i(me);ce.__click=()=>v(B,!e(B));var ge=i(ce);Y(ge,"icon","mdi:menu"),s(ce);var ne=a(ce,2);Le(ne,()=>t.children),s(me);var V=a(me,2);let _e;V.__touchstart=f,V.__touchmove=g,V.__touchend=I;var ye=i(V);ye.__mousedown=G;var we=a(ye,2);jt(we,{onSelect:n,get hideSessionsList(){return e(C)}});var fe=a(we,2);fe.__mousedown=G,s(V),He(V,Q=>v(S,Q),()=>e(S));var ke=a(V,2);{var Ee=Q=>{var l=Ct();l.__click=n,o(Q,l)};R(ke,Q=>{e(B)&&Q(Ee)})}s(d),P(()=>{k=ue(d,1,"app-shell svelte-12qhfyh",null,k,{"split-view":e(C),"resizing-any":e(h)||e(m)}),_e=ue(V,1,"sidebar svelte-12qhfyh",null,_e,{open:e(B),resizing:e(h)}),he(V,`--sidebar-width: ${e(N)??""}px`)}),o(r,d)},O=r=>{var d=xe(),k=le(d);Le(k,()=>t.children),o(r,d)};R(A,r=>{e(ie)?r(U):r(O,!1)})}o(oe,W),ze(),K()}Re(["mousedown","click","touchstart","touchmove","touchend"]);export{Ht as component};
|
|
1
|
+
import{g as Re,s as z,a as o,f as u,t as Te,c as xe,w as Ue}from"../chunks/U4ip-C0d.js";import{s as M,Z as Be,g as e,d as v,p as De,c as i,b as a,r as s,t as P,a as ze,x as le,n as ve,k as Ae,ad as pe,ab as Ne,ak as Oe}from"../chunks/BHwiZXRv.js";import{i as R,p as Fe,s as We,a as Me,b as He}from"../chunks/B5U4_V3d.js";import{c as Y,s as ue,d as he,B as Ie,a as Se,h as $e,e as Le}from"../chunks/cgUjKIhX.js";import{R as Ke,e as je,a as Pe,p as Xe,s as Je}from"../chunks/CR5jMWGV.js";import{g as Ve}from"../chunks/BGcEgn7w.js";import{i as Ye}from"../chunks/Cegv0r8x.js";import{B as qe,A as Ze}from"../chunks/By6CYjmE.js";const Ge=!0,Ce=Ge;class Qe extends Ke{#e=M(Be([]));get issues(){return e(this.#e)}set issues(t){v(this.#e,t,!0)}#t=M("open");get filter(){return e(this.#t)}set filter(t){v(this.#t,t,!0)}#s=M(null);get currentProject(){return e(this.#s)}set currentProject(t){v(this.#s,t,!0)}#i=M(!1);get loading(){return e(this.#i)}set loading(t){v(this.#i,t,!0)}#a=M(null);get error(){return e(this.#a)}set error(t){v(this.#a,t,!0)}get filteredIssues(){const t=this.issues;switch(this.filter){case"ready":return t.filter(b=>b.status==="open"&&(!b.dependencies||!b.dependencies.some(K=>K.type==="blocked_by")));case"open":return t.filter(b=>b.status!=="closed"&&b.status!=="deferred");default:return t}}get issueCount(){return this.filteredIssues.length}getWsUrl(){const t=window.location.protocol==="https:"?"wss:":"ws:",p=encodeURIComponent(this.currentProject||"");return`${t}//${window.location.host}/api/beads/stream?project=${p}`}getLogPrefix(){return"[beads]"}shouldReconnect(){return!!this.currentProject}handleMessage(t){try{const p=JSON.parse(t.data);p.issues&&(this.issues=p.issues,this.error=null)}catch(p){console.error("[beads] Failed to parse message:",p)}}onConnected(){this.loading=!1,this.error=null}onDisconnected(){}setProject(t){t!==this.currentProject&&(this.currentProject&&this.doDisconnect(),this.currentProject=t,this.issues=[],this.error=null,t&&Ce&&(this.loading=!0,this.doConnect()))}setFilter(t){this.filter=t}refresh(){this.currentProject&&this.forceReconnect()}connect(){this.currentProject&&Ce&&this.doConnect()}disconnect(){this.doDisconnect()}}const de=new Qe;var et=u('<div class="description svelte-1yk20pg"> </div>'),tt=u('<div class="detail-row svelte-1yk20pg"><span class="detail-label svelte-1yk20pg">Assignee</span> <span class="detail-value svelte-1yk20pg"> </span></div>'),st=u('<div class="detail-row svelte-1yk20pg"><span class="detail-label svelte-1yk20pg">Owner</span> <span class="detail-value svelte-1yk20pg"> </span></div>'),it=u('<div class="detail-row svelte-1yk20pg"><span class="detail-label svelte-1yk20pg">Dependencies</span> <span class="detail-value svelte-1yk20pg"> </span></div>'),at=u('<div class="detail-row svelte-1yk20pg"><span class="detail-label svelte-1yk20pg">Updated</span> <span class="detail-value svelte-1yk20pg"> </span></div>'),nt=u("<iconify-icon></iconify-icon> Use ID",3),rt=u('<div class="issue-details svelte-1yk20pg"><div class="full-title svelte-1yk20pg"> </div> <!> <div class="details-mobile svelte-1yk20pg"><div class="detail-row svelte-1yk20pg"><span class="detail-label svelte-1yk20pg">Status</span> <span class="detail-value status-value svelte-1yk20pg"> </span></div> <div class="detail-row svelte-1yk20pg"><span class="detail-label svelte-1yk20pg">Type</span> <span class="detail-value svelte-1yk20pg"> </span></div></div> <div class="details-desktop svelte-1yk20pg"><div class="detail-row svelte-1yk20pg"><span class="detail-label svelte-1yk20pg">Status</span> <span class="detail-value status-value svelte-1yk20pg"> </span></div> <div class="detail-row svelte-1yk20pg"><span class="detail-label svelte-1yk20pg">Type</span> <span class="detail-value svelte-1yk20pg"> </span></div> <!> <!> <!> <div class="detail-row svelte-1yk20pg"><span class="detail-label svelte-1yk20pg">Created</span> <span class="detail-value svelte-1yk20pg"> </span></div> <!> <div class="detail-row svelte-1yk20pg"><span class="detail-label svelte-1yk20pg">ID</span> <span class="detail-value id-value svelte-1yk20pg"> </span></div></div> <!></div>'),ot=u('<div><button class="issue-item svelte-1yk20pg" type="button"><span class="status-dot svelte-1yk20pg"></span> <span class="issue-title svelte-1yk20pg"> </span> <span class="priority-badge svelte-1yk20pg"> </span> <iconify-icon></iconify-icon></button> <!></div>',2);function lt(oe,t){De(t,!0);let p=M(!1);function b(h){switch(h){case"in_progress":return"#27ae60";case"open":return"#f39c12";case"blocked":return"#e74c3c";default:return"#888888"}}function K(h){switch(h){case 0:return"#e74c3c";case 1:return"#e67e22";case 2:return"#f39c12";case 3:return"#3498db";default:return"#888888"}}function B(h){return h.replace("_"," ")}function S(h){return h?new Date(h).toLocaleDateString():"—"}function Z(){v(p,!e(p))}function F(h){h.stopPropagation(),t.onSelect?.(t.issue)}var X=ot();let y;var C=i(X);C.__click=Z;var te=i(C),se=a(te,2),T=i(se,!0);s(se);var D=a(se,2),H=i(D);s(D);var J=a(D,2);P(()=>Y(J,"icon",e(p)?"mdi:chevron-up":"mdi:chevron-down")),ue(J,1,"chevron svelte-1yk20pg"),s(C);var N=a(C,2);{var $=h=>{var m=rt(),j=i(m),ie=i(j,!0);s(j);var G=a(j,2);{var re=l=>{var _=et(),E=i(_,!0);s(_),P(()=>z(E,t.issue.description)),o(l,_)};R(G,l=>{t.issue.description&&l(re)})}var q=a(G,2),c=i(q),x=a(i(c),2),L=i(x,!0);s(x),s(c);var n=a(c,2),f=a(i(n),2),g=i(f,!0);s(f),s(n),s(q);var I=a(q,2),W=i(I),A=a(i(W),2),U=i(A,!0);s(A),s(W);var O=a(W,2),r=a(i(O),2),d=i(r,!0);s(r),s(O);var k=a(O,2);{var w=l=>{var _=tt(),E=a(i(_),2),ee=i(E,!0);s(E),s(_),P(()=>z(ee,t.issue.assignee)),o(l,_)};R(k,l=>{t.issue.assignee&&l(w)})}var ae=a(k,2);{var me=l=>{var _=st(),E=a(i(_),2),ee=i(E,!0);s(E),s(_),P(()=>z(ee,t.issue.owner)),o(l,_)};R(ae,l=>{t.issue.owner&&l(me)})}var ce=a(ae,2);{var ge=l=>{var _=it(),E=a(i(_),2),ee=i(E,!0);s(E),s(_),P(be=>z(ee,be),[()=>t.issue.dependencies.map(be=>be.depends_on_id).join(", ")]),o(l,_)};R(ce,l=>{t.issue.dependencies&&t.issue.dependencies.length>0&&l(ge)})}var ne=a(ce,2),V=a(i(ne),2),_e=i(V,!0);s(V),s(ne);var ye=a(ne,2);{var we=l=>{var _=at(),E=a(i(_),2),ee=i(E,!0);s(E),s(_),P(be=>z(ee,be),[()=>S(t.issue.updated_at)]),o(l,_)};R(ye,l=>{t.issue.updated_at&&l(we)})}var fe=a(ye,2),ke=a(i(fe),2),Ee=i(ke,!0);s(ke),s(fe),s(I);var Q=a(I,2);Ie(Q,{variant:"outline",size:"sm",onclick:F,class:"use-id-btn",children:(l,_)=>{var E=nt(),ee=le(E);Y(ee,"icon","mdi:arrow-right-circle"),ve(),o(l,E)},$$slots:{default:!0}}),s(m),P((l,_,E,ee,be)=>{z(ie,t.issue.title),he(x,`color: ${l??""}`),z(L,_),z(g,t.issue.issue_type),he(A,`color: ${E??""}`),z(U,ee),z(d,t.issue.issue_type),z(_e,be),z(Ee,t.issue.id)},[()=>b(t.issue.status),()=>B(t.issue.status),()=>b(t.issue.status),()=>B(t.issue.status),()=>S(t.issue.created_at)]),o(h,m)};R(N,h=>{e(p)&&h($)})}s(X),P((h,m)=>{y=ue(X,1,"issue-wrapper svelte-1yk20pg",null,y,{expanded:e(p)}),he(te,`background: ${h??""}`),z(T,t.issue.title),he(D,`background: ${m??""}`),z(H,`P${t.issue.priority??""}`)},[()=>b(t.issue.status),()=>K(t.issue.priority)]),o(oe,X),ze()}Re(["click"]);var ct=u('<div class="loading svelte-ye9143">Loading issues...</div>'),dt=u('<div class="error svelte-ye9143"> </div>'),vt=u('<div class="empty svelte-ye9143">No issues</div>'),ut=u('<div class="panel-content svelte-ye9143"><div class="filter-buttons svelte-ye9143"></div> <div><!></div></div>'),_t=u('<div class="beads-panel svelte-ye9143"><button class="panel-header svelte-ye9143" type="button"><iconify-icon></iconify-icon> <span>Issues</span> <!> <iconify-icon></iconify-icon></button> <!></div>',2);function ft(oe,t){De(t,!0);let p=M(!0);Ae(()=>{de.setProject(t.project)});function b(){v(p,!e(p))}function K(T){de.setFilter(T)}function B(T){t.onSelect?.(T)}const S=[{label:"Ready",value:"ready"},{label:"Open",value:"open"},{label:"All",value:"all"}];var Z=_t(),F=i(Z);F.__click=b;var X=i(F);Y(X,"icon","mdi:checkbox-multiple-marked-outline");var y=a(X,4);qe(y,{variant:"outline",class:"ml-auto issue-count",children:(T,D)=>{ve();var H=Te();P(()=>z(H,de.issueCount)),o(T,H)},$$slots:{default:!0}});var C=a(y,2);P(()=>Y(C,"icon",e(p)?"mdi:chevron-down":"mdi:chevron-right")),ue(C,1,"chevron svelte-ye9143"),s(F);var te=a(F,2);{var se=T=>{var D=ut(),H=i(D);je(H,21,()=>S,m=>m.value,(m,j)=>{{let ie=pe(()=>de.filter===e(j).value?"default":"ghost");Ie(m,{get variant(){return e(ie)},size:"sm",onclick:()=>K(e(j).value),class:"filter-btn",children:(G,re)=>{ve();var q=Te();P(()=>z(q,e(j).label)),o(G,q)},$$slots:{default:!0}})}}),s(H);var J=a(H,2),N=i(J);{var $=m=>{var j=ct();o(m,j)},h=m=>{var j=xe(),ie=le(j);{var G=q=>{var c=dt(),x=i(c,!0);s(c),P(()=>z(x,de.error)),o(q,c)},re=q=>{var c=xe(),x=le(c);{var L=f=>{var g=vt();o(f,g)},n=f=>{var g=xe(),I=le(g);je(I,17,()=>de.filteredIssues,W=>W.id,(W,A)=>{lt(W,{get issue(){return e(A)},onSelect:B})}),o(f,g)};R(x,f=>{de.filteredIssues.length===0?f(L):f(n,!1)},!0)}o(q,c)};R(ie,q=>{de.error?q(G):q(re,!1)},!0)}o(m,j)};R(N,m=>{de.loading?m($):m(h,!1)})}s(J),s(D),o(T,D)};R(te,T=>{e(p)&&T(se)})}s(Z),o(oe,Z),ze()}Re(["click"]);var pt=u('<div class="empty svelte-i8iwb7">No screenshots</div>'),ht=u("<iconify-icon></iconify-icon>",2),mt=u('<div class="screenshot-item svelte-i8iwb7"><button class="thumbnail svelte-i8iwb7"><img loading="lazy" class="svelte-i8iwb7"/></button> <!></div>'),gt=u('<div class="screenshots-grid svelte-i8iwb7"></div>'),yt=u('<div class="panel-content svelte-i8iwb7"><!></div>'),wt=u("<iconify-icon></iconify-icon> <span>Close</span>",3),bt=u("<iconify-icon></iconify-icon> <span>Delete</span>",3),kt=u('<div class="modal-overlay svelte-i8iwb7" role="dialog" aria-modal="true" tabindex="-1"><div class="modal-content svelte-i8iwb7" role="document"><img class="modal-image svelte-i8iwb7"/> <div class="modal-actions svelte-i8iwb7"><!> <!></div> <div class="swipe-hint svelte-i8iwb7"><iconify-icon></iconify-icon> <span>Swipe left to close</span></div></div></div>',2),St=u('<div class="screenshots-panel svelte-i8iwb7"><button class="panel-header svelte-i8iwb7" type="button"><iconify-icon></iconify-icon> <span>Screenshots</span> <!> <iconify-icon></iconify-icon></button> <!></div> <!>',3);function xt(oe,t){De(t,!0);let p=M(!0),b=M(null),K=M(0),B=M(0),S=M(!1);function Z(){v(p,!e(p))}async function F(c){await fetch(`/api/sessions/${encodeURIComponent(t.sessionId)}/screenshots?path=${encodeURIComponent(c)}`,{method:"DELETE"}),e(b)===c&&v(b,null)}function X(c){v(b,c,!0)}function y(){v(b,null),D()}function C(c){return c.split("/").pop()||c}function te(c){v(K,c.touches[0].clientX,!0),v(B,e(K),!0),v(S,!0)}function se(c){e(S)&&v(B,c.touches[0].clientX,!0)}function T(){if(!e(S))return;e(B)-e(K)<-100&&y(),D()}function D(){v(S,!1),v(K,0),v(B,0)}const H=pe(()=>e(S)?Math.min(0,e(B)-e(K)):0);var J=St(),N=le(J),$=i(N);$.__click=Z;var h=i($);Y(h,"icon","mdi:image-multiple");var m=a(h,4);qe(m,{variant:"outline",class:"ml-auto screenshot-count",children:(c,x)=>{ve();var L=Te();P(()=>z(L,t.screenshots.length)),o(c,L)},$$slots:{default:!0}});var j=a(m,2);P(()=>Y(j,"icon",e(p)?"mdi:chevron-down":"mdi:chevron-right")),ue(j,1,"chevron svelte-i8iwb7"),s($);var ie=a($,2);{var G=c=>{var x=yt(),L=i(x);{var n=g=>{var I=pt();o(g,I)},f=g=>{var I=gt();je(I,21,()=>t.screenshots,W=>W.path,(W,A)=>{var U=mt(),O=i(U);O.__click=()=>X(e(A).path);var r=i(O);s(O);var d=a(O,2);Ie(d,{variant:"ghost",size:"icon-sm",class:"dismiss-btn",onclick:()=>F(e(A).path),title:"Dismiss screenshot",children:(k,w)=>{var ae=ht();Y(ae,"icon","mdi:close"),o(k,ae)},$$slots:{default:!0}}),s(U),P((k,w,ae)=>{Se(O,"title",k),Se(r,"src",`/api/files/image?path=${w??""}`),Se(r,"alt",ae)},[()=>C(e(A).path),()=>encodeURIComponent(e(A).path),()=>C(e(A).path)]),o(W,U)}),s(I),o(g,I)};R(L,g=>{t.screenshots.length===0?g(n):g(f,!1)})}s(x),o(c,x)};R(ie,c=>{e(p)&&c(G)})}s(N);var re=a(N,2);{var q=c=>{var x=kt();x.__click=y,x.__keydown=U=>U.key==="Escape"&&y();var L=i(x);L.__click=U=>U.stopPropagation(),L.__touchstart=te,L.__touchmove=se,L.__touchend=T;var n=i(L),f=a(n,2),g=i(f);Ie(g,{variant:"secondary",size:"sm",onclick:y,class:"modal-btn",children:(U,O)=>{var r=wt(),d=le(r);Y(d,"icon","mdi:close"),ve(2),o(U,r)},$$slots:{default:!0}});var I=a(g,2);Ie(I,{variant:"destructive",size:"sm",onclick:()=>F(e(b)),class:"modal-btn",children:(U,O)=>{var r=bt(),d=le(r);Y(d,"icon","mdi:delete"),ve(2),o(U,r)},$$slots:{default:!0}}),s(f);var W=a(f,2),A=i(W);Y(A,"icon","mdi:gesture-swipe-left"),ve(2),s(W),s(L),s(x),P((U,O)=>{he(L,`transform: translateX(${e(H)??""}px)`),Se(n,"src",`/api/files/image?path=${U??""}`),Se(n,"alt",O)},[()=>encodeURIComponent(e(b)),()=>C(e(b))]),o(c,x)};R(re,c=>{e(b)&&c(q)})}o(oe,J),ze()}Re(["click","keydown","touchstart","touchmove","touchend"]);var It=u("<iconify-icon></iconify-icon>",2),Et=u('<div class="session-action svelte-1wiqrar"> </div>'),Pt=u('<a><span class="icon-slot svelte-1wiqrar"><span class="state-dot svelte-1wiqrar"></span></span> <div class="session-info svelte-1wiqrar"><div class="session-name svelte-1wiqrar"> </div> <!></div></a>'),Rt=u('<div class="empty svelte-1wiqrar">No active sessions</div>'),Dt=u('<div class="sessions-list svelte-1wiqrar"></div>'),zt=u('<div class="sessions-panel"><button class="panel-header svelte-1wiqrar" type="button"><iconify-icon></iconify-icon> <span>Sessions</span> <!> <iconify-icon></iconify-icon></button> <!></div>',2),Tt=u('<nav class="sidebar-sessions svelte-1wiqrar"><div class="sidebar-header svelte-1wiqrar"><a href="/" class="home-link svelte-1wiqrar"><iconify-icon></iconify-icon> <span> </span></a> <!></div> <div class="scroll-content svelte-1wiqrar"><!> <!> <!></div></nav>',2);function jt(oe,t){De(t,!0);const p=()=>Me(Xe,"$page",b),[b,K]=We();let B=Fe(t,"hideSessionsList",3,!1),S=M(!0);function Z(){v(S,!e(S))}const F=pe(()=>p().url.pathname.startsWith("/session/")),X=pe(()=>p().params.target?decodeURIComponent(p().params.target):null),y=pe(()=>Pe.sessions.find(n=>n.tmux_target===e(X)||n.id===e(X))),C=pe(()=>{const n=e(y)?.cwd||e(y)?.git_root;if(!n)return null;const f=n.split("/").filter(Boolean);return f[f.length-1]||null}),te=pe(()=>{const n=e(y)?.git_root||e(y)?.cwd;return n?Pe.sessions.filter(f=>f.git_root===n||f.cwd===n):Pe.sessions});async function se(){const n=e(y)?.cwd||e(y)?.git_root;if(!n)return;const g=await(await fetch("/api/projects/new-session",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({cwd:n})})).json();if(g.ok&&g.session){const I=g.session+":1.1";t.onSelect?.(),Ve(`/session/${encodeURIComponent(I)}`)}}function T(n){e(F)&&(Ye.inject(n.id),t.onSelect?.())}var D=Tt(),H=i(D),J=i(H);J.__click=function(...n){t.onSelect?.apply(this,n)};var N=i(J);Y(N,"icon","mdi:folder-outline");var $=a(N,2),h=i($,!0);s($),s(J);var m=a(J,2);{var j=n=>{Ie(n,{variant:"ghost",size:"icon-sm",onclick:se,title:"New session in this project",class:"new-session-btn",children:(f,g)=>{var I=It();Y(I,"icon","mdi:plus"),o(f,I)},$$slots:{default:!0}})};R(m,n=>{e(y)?.cwd&&n(j)})}s(H);var ie=a(H,2),G=i(ie);{var re=n=>{var f=zt(),g=i(f);g.__click=Z;var I=i(g);Y(I,"icon","mdi:console");var W=a(I,4);qe(W,{variant:"outline",class:"ml-auto session-count",children:(r,d)=>{ve();var k=Te();P(()=>z(k,e(te).length)),o(r,k)},$$slots:{default:!0}});var A=a(W,2);P(()=>Y(A,"icon",e(S)?"mdi:chevron-down":"mdi:chevron-right")),ue(A,1,"chevron svelte-1wiqrar"),s(g);var U=a(g,2);{var O=r=>{var d=Dt();je(d,21,()=>e(te),k=>k.id,(k,w)=>{var ae=xe(),me=le(ae);{var ce=ge=>{var ne=Pt();let V;ne.__click=function(...l){t.onSelect?.apply(this,l)};var _e=i(ne),ye=i(_e);s(_e);var we=a(_e,2),fe=i(we),ke=i(fe,!0);s(fe);var Ee=a(fe,2);{var Q=l=>{var _=Et(),E=i(_,!0);s(_),P(()=>z(E,e(w).current_action)),o(l,_)};R(Ee,l=>{e(w).current_action&&l(Q)})}s(we),s(ne),P((l,_)=>{Se(ne,"href",`/session/${l??""}`),V=ue(ne,1,"session-item svelte-1wiqrar",null,V,{active:e(w).tmux_target===e(X)||e(w).id===e(X)}),he(ye,`background: ${_??""}`),z(ke,e(w).pane_title||e(w).tmux_target)},[()=>encodeURIComponent(e(w).tmux_target),()=>Je(e(w).state)]),o(ge,ne)};R(me,ge=>{e(w).tmux_target&&ge(ce)})}o(k,ae)},k=>{var w=Rt();o(k,w)}),s(d),o(r,d)};R(U,r=>{e(S)&&r(O)})}s(f),o(n,f)};R(G,n=>{B()||n(re)})}var q=a(G,2);{var c=n=>{ft(n,{get project(){return e(y).git_root},onSelect:T})};R(q,n=>{e(y)?.beads_enabled&&n(c)})}var x=a(q,2);{var L=n=>{xt(n,{get sessionId(){return e(y).id},get screenshots(){return e(y).screenshots}})};R(x,n=>{e(y)?.screenshots&&e(y).screenshots.length>0&&n(L)})}s(ie),s(D),P(()=>z(h,e(C)||"Sessions")),o(oe,D),ze(),K()}Re(["click"]);var qt=Ue(u('<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"/> <meta name="apple-mobile-web-app-capable" content="yes"/> <script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"><\/script>',1)),Lt=u('<aside><!> <div class="resize-handle svelte-12qhfyh" role="separator" aria-orientation="vertical"></div></aside>'),Ct=u('<button class="backdrop svelte-12qhfyh" aria-label="Close menu"></button>'),Wt=u('<div><!> <main class="content svelte-12qhfyh"><button class="hamburger svelte-12qhfyh" aria-label="Toggle menu"><iconify-icon></iconify-icon></button> <!></main> <aside><div class="resize-handle resize-handle-left svelte-12qhfyh" role="separator" aria-orientation="vertical"></div> <!> <div class="resize-handle resize-handle-right svelte-12qhfyh" role="separator" aria-orientation="vertical"></div></aside> <!></div>',2);function Ht(oe,t){De(t,!0);const p=()=>Me(Xe,"$page",b),[b,K]=We();let B=M(!1),S=M(null),Z=0,F=0,X=!1;const y=1200;let C=M(!1);const te="claude-mux-sidebar-width",se="claude-mux-split-panel-width",T=200,D=500,H=250,J=350;let N=M(H),$=M(J),h=M(!1),m=M(!1),j=0;const ie=pe(()=>p().url.pathname.startsWith("/session/"));Ne(()=>{Pe.connect();{v(C,window.innerWidth>=y);const r=()=>{v(C,window.innerWidth>=y)};window.addEventListener("resize",r);const d=localStorage.getItem(te);if(d){const w=parseInt(d,10);w>=T&&w<=D&&v(N,w,!0)}const k=localStorage.getItem(se);if(k){const w=parseInt(k,10);w>=T&&w<=D&&v($,w,!0)}return()=>window.removeEventListener("resize",r)}}),Oe(()=>{Pe.disconnect()});function G(r){r.preventDefault(),v(h,!0),e(S)&&(j=e(S).getBoundingClientRect().right),document.addEventListener("mousemove",re),document.addEventListener("mouseup",q)}function re(r){if(e(h))if(e(C)){const d=Math.min(D,Math.max(T,j-r.clientX));v(N,d,!0)}else{const d=j-e(N),k=Math.min(D,Math.max(T,r.clientX-d));v(N,k,!0)}}function q(){v(h,!1),document.removeEventListener("mousemove",re),document.removeEventListener("mouseup",q),localStorage.setItem(te,e(N).toString())}function c(r){r.preventDefault(),v(m,!0),document.addEventListener("mousemove",x),document.addEventListener("mouseup",L)}function x(r){if(!e(m))return;const d=Math.min(D,Math.max(T,r.clientX));v($,d,!0)}function L(){v(m,!1),document.removeEventListener("mousemove",x),document.removeEventListener("mouseup",L),localStorage.setItem(se,e($).toString())}function n(){v(B,!1)}function f(r){Z=r.touches[0].clientX,F=Z,X=!0}function g(r){if(!X||!e(S))return;F=r.touches[0].clientX;const d=F-Z;d<0&&(e(S).style.transform=`translateX(${d}px)`)}function I(){if(!X||!e(S))return;X=!1,F-Z<-80&&n(),e(S).style.transform=""}var W=xe();$e("12qhfyh",r=>{var d=qt();ve(4),o(r,d)});var A=le(W);{var U=r=>{var d=Wt();let k;var w=i(d);{var ae=Q=>{var l=Lt();let _;var E=i(l);Ze(E,{compact:!0});var ee=a(E,2);ee.__mousedown=c,s(l),P(()=>{_=ue(l,1,"split-panel svelte-12qhfyh",null,_,{resizing:e(m)}),he(l,`--split-panel-width: ${e($)??""}px`)}),o(Q,l)};R(w,Q=>{e(C)&&Q(ae)})}var me=a(w,2),ce=i(me);ce.__click=()=>v(B,!e(B));var ge=i(ce);Y(ge,"icon","mdi:menu"),s(ce);var ne=a(ce,2);Le(ne,()=>t.children),s(me);var V=a(me,2);let _e;V.__touchstart=f,V.__touchmove=g,V.__touchend=I;var ye=i(V);ye.__mousedown=G;var we=a(ye,2);jt(we,{onSelect:n,get hideSessionsList(){return e(C)}});var fe=a(we,2);fe.__mousedown=G,s(V),He(V,Q=>v(S,Q),()=>e(S));var ke=a(V,2);{var Ee=Q=>{var l=Ct();l.__click=n,o(Q,l)};R(ke,Q=>{e(B)&&Q(Ee)})}s(d),P(()=>{k=ue(d,1,"app-shell svelte-12qhfyh",null,k,{"split-view":e(C),"resizing-any":e(h)||e(m)}),_e=ue(V,1,"sidebar svelte-12qhfyh",null,_e,{open:e(B),resizing:e(h)}),he(V,`--sidebar-width: ${e(N)??""}px`)}),o(r,d)},O=r=>{var d=xe(),k=le(d);Le(k,()=>t.children),o(r,d)};R(A,r=>{e(ie)?r(U):r(O,!1)})}o(oe,W),ze(),K()}Re(["mousedown","click","touchstart","touchmove","touchend"]);export{Ht as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as u,f as h,s}from"../chunks/U4ip-C0d.js";import{i as g}from"../chunks/-3mUPuLP.js";import{p as l,x as v,t as d,a as x,c as e,r as o,b as _}from"../chunks/BHwiZXRv.js";import{s as $,p}from"../chunks/
|
|
1
|
+
import{a as u,f as h,s}from"../chunks/U4ip-C0d.js";import{i as g}from"../chunks/-3mUPuLP.js";import{p as l,x as v,t as d,a as x,c as e,r as o,b as _}from"../chunks/BHwiZXRv.js";import{s as $,p}from"../chunks/BGcEgn7w.js";const b={get error(){return p.error},get status(){return p.status}};$.updated.check;const m=b;var k=h("<h1> </h1> <p> </p>",1);function y(i,c){l(c,!1),g();var t=k(),r=v(t),f=e(r,!0);o(r);var a=_(r,2),n=e(a,!0);o(a),d(()=>{s(f,m.status),s(n,m.error?.message)}),u(i,t),x()}export{y as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as r,f as t}from"../chunks/U4ip-C0d.js";import"../chunks/-3mUPuLP.js";import{e as s,$ as m,c as i,r as p}from"../chunks/BHwiZXRv.js";import{h as n}from"../chunks/cgUjKIhX.js";import{A as c}from"../chunks/
|
|
1
|
+
import{a as r,f as t}from"../chunks/U4ip-C0d.js";import"../chunks/-3mUPuLP.js";import{e as s,$ as m,c as i,r as p}from"../chunks/BHwiZXRv.js";import{h as n}from"../chunks/cgUjKIhX.js";import{A as c}from"../chunks/By6CYjmE.js";var d=t('<div class="root-page svelte-1uha8ag"><!></div>');function $(o){var a=d();n("1uha8ag",f=>{s(()=>{m.title="claude-mux"})});var e=i(a);c(e,{}),p(a),r(o,a)}export{$ as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as C,a as m,t as P,f as _,s as y}from"../chunks/U4ip-C0d.js";import{p as B,t as v,g as s,a as L,s as h,e as N,c as i,b as x,$ as O,r as l,n as T,d as o}from"../chunks/BHwiZXRv.js";import{i as W}from"../chunks/B5U4_V3d.js";import{h as q,B as z,b as D,r as E}from"../chunks/cgUjKIhX.js";import{g as J}from"../chunks/
|
|
1
|
+
import{e as C,a as m,t as P,f as _,s as y}from"../chunks/U4ip-C0d.js";import{p as B,t as v,g as s,a as L,s as h,e as N,c as i,b as x,$ as O,r as l,n as T,d as o}from"../chunks/BHwiZXRv.js";import{i as W}from"../chunks/B5U4_V3d.js";import{h as q,B as z,b as D,r as E}from"../chunks/cgUjKIhX.js";import{g as J}from"../chunks/BGcEgn7w.js";var A=_('<p class="text-sm text-red-400"> </p>'),F=_('<div class="flex min-h-screen items-center justify-center bg-stone-950 p-4"><div class="w-full max-w-sm space-y-6"><div class="text-center"><h1 class="text-2xl font-bold text-stone-100">Claude Watch</h1> <p class="mt-2 text-sm text-stone-400">Enter password to continue</p></div> <form class="space-y-4"><div><input type="password" placeholder="Password" required class="w-full rounded-md border border-stone-700 bg-stone-900 px-4 py-2 text-stone-100 placeholder-stone-500 focus:border-stone-500 focus:outline-none focus:ring-1 focus:ring-stone-500 disabled:opacity-50"/></div> <!> <!></form></div></div>');function Q(w,$){B($,!0);let d=h(""),r=h(""),n=h(!1);async function S(e){e.preventDefault(),o(r,""),o(n,!0);try{const t=await fetch("/api/auth/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:s(d)})}),a=await t.json();if(t.ok){J("/");return}else o(r,a.error||"Login failed",!0)}catch{o(r,"Network error")}finally{o(n,!1)}}var p=F();q("1x05zx6",e=>{N(()=>{O.title="Login - Claude Watch"})});var g=i(p),c=x(i(g),2),f=i(c),u=i(f);E(u),l(f);var b=x(f,2);{var j=e=>{var t=A(),a=i(t,!0);l(t),v(()=>y(a,s(r))),m(e,t)};W(b,e=>{s(r)&&e(j)})}var k=x(b,2);z(k,{type:"submit",class:"w-full",get disabled(){return s(n)},children:(e,t)=>{T();var a=P();v(()=>y(a,s(n)?"Signing in...":"Sign in")),m(e,a)},$$slots:{default:!0}}),l(c),l(g),l(p),v(()=>u.disabled=s(n)),C("submit",c,S),D(u,()=>s(d),e=>o(d,e)),m(w,p),L()}export{Q as component};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as It,d as ce,a as i,s as K,c as Kt,t as Z,f as h,g as de,e as At}from"../chunks/U4ip-C0d.js";import{t as z,h as Bt,i as Mt,a0 as pe,ae as ue,F as Ht,af as fe,ag as me,ah as he,ai as ve,L as _e,aj as V,s as E,g as e,d as x,ad as L,Z as ge,p as Lt,x as g,c as S,b as f,r as T,n as $,a as Ft,k as ht,ak as ye,al as $e,$ as be,am as we}from"../chunks/BHwiZXRv.js";import{p as Te,i as _t,b as Ut,s as xe,a as Se}from"../chunks/B5U4_V3d.js";import{c as O}from"../chunks/C9P-coqM.js";import{s as vt,h as Ce,B as k,a as ke,b as Pe,c as P,d as ze}from"../chunks/cgUjKIhX.js";import{R as Re,e as Ne,s as je,a as Oe,A as Ee,b as Ie,c as Ae,d as Be,f as Me,g as He,h as Ue,i as We,p as De}from"../chunks/
|
|
1
|
+
import{b as It,d as ce,a as i,s as K,c as Kt,t as Z,f as h,g as de,e as At}from"../chunks/U4ip-C0d.js";import{t as z,h as Bt,i as Mt,a0 as pe,ae as ue,F as Ht,af as fe,ag as me,ah as he,ai as ve,L as _e,aj as V,s as E,g as e,d as x,ad as L,Z as ge,p as Lt,x as g,c as S,b as f,r as T,n as $,a as Ft,k as ht,ak as ye,al as $e,$ as be,am as we}from"../chunks/BHwiZXRv.js";import{p as Te,i as _t,b as Ut,s as xe,a as Se}from"../chunks/B5U4_V3d.js";import{c as O}from"../chunks/C9P-coqM.js";import{s as vt,h as Ce,B as k,a as ke,b as Pe,c as P,d as ze}from"../chunks/cgUjKIhX.js";import{R as Re,e as Ne,s as je,a as Oe,A as Ee,b as Ie,c as Ae,d as Be,f as Me,g as He,h as Ue,i as We,p as De}from"../chunks/CR5jMWGV.js";import{g as Je}from"../chunks/BGcEgn7w.js";import{i as Wt}from"../chunks/Cegv0r8x.js";function Ke(r,s,l=!1,u=!1,j=!1){var p=r,y="";z(()=>{var v=pe;if(y===(y=s()??"")){Bt&&Mt();return}if(v.nodes!==null&&(ue(v.nodes.start,v.nodes.end),v.nodes=null),y!==""){if(Bt){Ht.data;for(var m=Mt(),d=m;m!==null&&(m.nodeType!==fe||m.data!=="");)d=m,m=me(m);if(m===null)throw he(),ve;It(Ht,d),p=_e(m);return}var n=y+"";l?n=`<svg>${n}</svg>`:u&&(n=`<math>${n}</math>`);var w=ce(n);if((l||u)&&(w=V(w)),It(V(w),w.lastChild),l||u)for(;V(w);)p.before(V(w));else p.before(w)}})}const b={userPrompt:/^❯\s/,claudeResponse:/^●\s+\S/,workingIndicator:/^●\s*$/,toolResult:/^(\s*)⎿/,indentedContent:/^(\s{2,}|\t)/,separator:/^─{5,}/,toolCall:/^●\s+([\w-]+)\s*\(/,mcpToolCall:/^●\s+([\w-]+)\s+-\s+([\w_]+)\s+\(MCP\)/,spinner:/[⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠐⠂⠄]/,statusHint:/(Esc to interrupt|ctrl\+c to interrupt|Esc to cancel|to cycle\))/i,progressBar:/^\s*[\w-]+\s+\[.*\]\s+\w+@/};function Le(r,s){return b.separator.test(r)?"separator":b.mcpToolCall.test(r)||b.toolCall.test(r)?"tool-call":b.workingIndicator.test(r)?"spinner":b.userPrompt.test(r)?"user-prompt":b.claudeResponse.test(r)?"claude-response":b.toolResult.test(r)?"tool-result":s==="tool-call"&&b.indentedContent.test(r)?"tool-call":s==="tool-result"&&b.indentedContent.test(r)?"tool-result":b.statusHint.test(r)||b.progressBar.test(r)?"status":b.spinner.test(r)&&r.length<100?"spinner":"plain"}function Fe(r){const s=r.match(b.mcpToolCall);if(s)return`${s[1]}:${s[2]}`;const l=r.match(b.toolCall);if(l)return l[1]}function Ge(r){return b.toolCall.test(r)||b.mcpToolCall.test(r)}const Ye={"user-prompt":{plain:!1,spinner:!1},"claude-response":{plain:!1,spinner:!1},"tool-call":{"tool-call":!1,"tool-result":!1,spinner:!1},"tool-result":{"tool-result":!1,spinner:!1},separator:{},status:{status:!1},spinner:{spinner:!1},plain:{plain:!1}};function qe(r,s,l){if(!r||s==="separator"||s==="user-prompt"||s==="tool-call"&&Ge(l))return!0;const u=Ye[r.type]?.[s];return u!==void 0?u:r.type!==s}function Ze(r){if(!r||r.trim()==="")return[];const s=r.split(`
|
|
2
2
|
`),l=[];let u=null,j=0;for(const p of s){if(p.trim()==="")continue;const y=u?.type??null,v=Le(p,y);if(qe(u,v,p)){if(u&&u.content.trim()&&l.push(u),u={id:++j,type:v,content:p},v==="tool-call"){const m=Fe(p);m&&(u.metadata={toolName:m})}}else u&&(u.content+=`
|
|
3
3
|
`+p)}return u&&u.content.trim()&&l.push(u),l}function Qe(r){return{userPrompts:r.filter(s=>s.type==="user-prompt").length,claudeResponses:r.filter(s=>s.type==="claude-response").length,toolCalls:r.filter(s=>s.type==="tool-call").length,hasActiveSpinner:r.some(s=>s.type==="spinner")}}class Ve extends Re{#t=E("");get output(){return e(this.#t)}set output(s){x(this.#t,s,!0)}#e=L(()=>Ze(this.output));get parsedBlocks(){return e(this.#e)}set parsedBlocks(s){x(this.#e,s)}#s=L(()=>Qe(this.parsedBlocks));get stats(){return e(this.#s)}set stats(s){x(this.#s,s)}target=null;resizeTimer=null;lastSentSize=null;getWsUrl(){const s=window.location.protocol==="https:"?"wss:":"ws:",l=encodeURIComponent(this.target);return`${s}//${window.location.host}/api/sessions/${l}/stream`}getLogPrefix(){return"[terminal]"}shouldReconnect(){return this.target!==null}handleMessage(s){const l=JSON.parse(s.data);l.output!==void 0&&(this.output=l.output)}connect(s){if(s&&!(this.ws&&this.target===s)){if(this.ws){const l=this.target;this.target=null,this.doDisconnect(),this.target=l}this.target!==s&&(this.output=""),this.target=s,this.doConnect()}}disconnect(){this.resizeTimer&&(clearTimeout(this.resizeTimer),this.resizeTimer=null),this.lastSentSize=null,this.target=null,this.doDisconnect()}sendResize(s,l){!this.ws||this.ws.readyState!==WebSocket.OPEN||this.lastSentSize?.cols===s&&this.lastSentSize?.rows===l||(this.resizeTimer&&clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout(()=>{this.ws&&this.ws.readyState===WebSocket.OPEN&&(this.ws.send(JSON.stringify({type:"resize",cols:s,rows:l})),this.lastSentSize={cols:s,rows:l}),this.resizeTimer=null},150))}}const J=new Ve,Gt="claude-mux-preferences",Dt={terminalTheming:!0};function Xe(){try{const r=localStorage.getItem(Gt);if(r)return{...Dt,...JSON.parse(r)}}catch{}return Dt}function Jt(r){try{localStorage.setItem(Gt,JSON.stringify(r))}catch{}}class ts{#t=E(ge(Xe()));get prefs(){return e(this.#t)}set prefs(s){x(this.#t,s,!0)}get terminalTheming(){return this.prefs.terminalTheming}set terminalTheming(s){this.prefs.terminalTheming=s,Jt(this.prefs)}toggle(s){typeof this.prefs[s]=="boolean"&&(this.prefs[s]=!this.prefs[s],Jt(this.prefs))}}const X=new ts;var es=h("<span> </span>"),ss=h(`<span><!><!></span>
|
|
4
4
|
`,1),os=h("<pre></pre>");function rs(r,s){Lt(s,!0);const l=Te(s,"class",3,""),u={"user-prompt":"terminal-user-prompt","claude-response":"terminal-claude-response","tool-call":"terminal-tool-call","tool-result":"terminal-tool-result",separator:"terminal-separator",status:"terminal-status",spinner:"terminal-spinner",plain:"terminal-plain"},j={Read:"tool-read",Write:"tool-write",Edit:"tool-edit",Update:"tool-edit",NotebookEdit:"tool-edit",Glob:"tool-search",Grep:"tool-search",Search:"tool-search",Bash:"tool-bash",Task:"tool-task",WebFetch:"tool-web",WebSearch:"tool-web",TodoWrite:"tool-todo","chrome-devtools":"tool-browser",mcp:"tool-browser"};function p(d){if(!d)return"tool-default";if(j[d])return j[d];for(const[n,w]of Object.entries(j))if(d.toLowerCase().includes(n.toLowerCase()))return w;return"tool-default"}function y(d){return d.split(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"
|
|
1
|
+
{"version":"1769884070678"}
|
|
@@ -3,16 +3,16 @@ const index = 0;
|
|
|
3
3
|
let component_cache;
|
|
4
4
|
const component = async () => component_cache ??= (await import("./_layout.svelte-BIF9eZCY.js")).default;
|
|
5
5
|
const imports = [
|
|
6
|
-
"_app/immutable/nodes/0.
|
|
6
|
+
"_app/immutable/nodes/0.DGDAdwT5.js",
|
|
7
7
|
"_app/immutable/chunks/U4ip-C0d.js",
|
|
8
8
|
"_app/immutable/chunks/BHwiZXRv.js",
|
|
9
9
|
"_app/immutable/chunks/B5U4_V3d.js",
|
|
10
10
|
"_app/immutable/chunks/cgUjKIhX.js",
|
|
11
|
-
"_app/immutable/chunks/
|
|
12
|
-
"_app/immutable/chunks/
|
|
11
|
+
"_app/immutable/chunks/CR5jMWGV.js",
|
|
12
|
+
"_app/immutable/chunks/BGcEgn7w.js",
|
|
13
13
|
"_app/immutable/chunks/C9P-coqM.js",
|
|
14
14
|
"_app/immutable/chunks/Cegv0r8x.js",
|
|
15
|
-
"_app/immutable/chunks/
|
|
15
|
+
"_app/immutable/chunks/By6CYjmE.js",
|
|
16
16
|
"_app/immutable/chunks/-3mUPuLP.js"
|
|
17
17
|
];
|
|
18
18
|
const stylesheets = ["_app/immutable/assets/AllSessionsPanel.CGHY3HLy.css", "_app/immutable/assets/0.WptSHSUl.css"];
|
|
@@ -20,4 +20,4 @@ const fonts = [];
|
|
|
20
20
|
|
|
21
21
|
//#endregion
|
|
22
22
|
export { component, fonts, imports, index, stylesheets };
|
|
23
|
-
//# sourceMappingURL=0-
|
|
23
|
+
//# sourceMappingURL=0-BmRg-l2z.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"0-
|
|
1
|
+
{"version":3,"file":"0-BmRg-l2z.js","names":[],"sources":["../../../../web/.svelte-kit/adapter-bun/nodes/0.js"],"sourcesContent":["\n\nexport const index = 0;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/_layout.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/0.DGDAdwT5.js\",\"_app/immutable/chunks/U4ip-C0d.js\",\"_app/immutable/chunks/BHwiZXRv.js\",\"_app/immutable/chunks/B5U4_V3d.js\",\"_app/immutable/chunks/cgUjKIhX.js\",\"_app/immutable/chunks/CR5jMWGV.js\",\"_app/immutable/chunks/BGcEgn7w.js\",\"_app/immutable/chunks/C9P-coqM.js\",\"_app/immutable/chunks/Cegv0r8x.js\",\"_app/immutable/chunks/By6CYjmE.js\",\"_app/immutable/chunks/-3mUPuLP.js\"];\nexport const stylesheets = [\"_app/immutable/assets/AllSessionsPanel.CGHY3HLy.css\",\"_app/immutable/assets/0.WptSHSUl.css\"];\nexport const fonts = [];\n"],"mappings":";AAEA,MAAa,QAAQ;AACrB,IAAI;AACJ,MAAa,YAAY,YAAY,qBAAqB,MAAM,OAAO,iCAAuC;AAC9G,MAAa,UAAU;CAAC;CAAqC;CAAoC;CAAoC;CAAoC;CAAoC;CAAoC;CAAoC;CAAoC;CAAoC;CAAoC;CAAoC;AACra,MAAa,cAAc,CAAC,uDAAsD,uCAAuC;AACzH,MAAa,QAAQ,EAAE"}
|
|
@@ -3,15 +3,15 @@ const index = 1;
|
|
|
3
3
|
let component_cache;
|
|
4
4
|
const component = async () => component_cache ??= (await import("./error.svelte-D-c-9pTE.js")).default;
|
|
5
5
|
const imports = [
|
|
6
|
-
"_app/immutable/nodes/1.
|
|
6
|
+
"_app/immutable/nodes/1.Cg8dWgUN.js",
|
|
7
7
|
"_app/immutable/chunks/U4ip-C0d.js",
|
|
8
8
|
"_app/immutable/chunks/BHwiZXRv.js",
|
|
9
9
|
"_app/immutable/chunks/-3mUPuLP.js",
|
|
10
|
-
"_app/immutable/chunks/
|
|
10
|
+
"_app/immutable/chunks/BGcEgn7w.js"
|
|
11
11
|
];
|
|
12
12
|
const stylesheets = [];
|
|
13
13
|
const fonts = [];
|
|
14
14
|
|
|
15
15
|
//#endregion
|
|
16
16
|
export { component, fonts, imports, index, stylesheets };
|
|
17
|
-
//# sourceMappingURL=1-
|
|
17
|
+
//# sourceMappingURL=1-CPgO8U7d.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"1-
|
|
1
|
+
{"version":3,"file":"1-CPgO8U7d.js","names":[],"sources":["../../../../web/.svelte-kit/adapter-bun/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.Cg8dWgUN.js\",\"_app/immutable/chunks/U4ip-C0d.js\",\"_app/immutable/chunks/BHwiZXRv.js\",\"_app/immutable/chunks/-3mUPuLP.js\",\"_app/immutable/chunks/BGcEgn7w.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"mappings":";AAEA,MAAa,QAAQ;AACrB,IAAI;AACJ,MAAa,YAAY,YAAY,qBAAqB,MAAM,OAAO,+BAAyC;AAChH,MAAa,UAAU;CAAC;CAAqC;CAAoC;CAAoC;CAAoC;CAAoC;AAC7M,MAAa,cAAc,EAAE;AAC7B,MAAa,QAAQ,EAAE"}
|
|
@@ -3,15 +3,15 @@ const index = 2;
|
|
|
3
3
|
let component_cache;
|
|
4
4
|
const component = async () => component_cache ??= (await import("./_page.svelte-CnfJk6cu.js")).default;
|
|
5
5
|
const imports = [
|
|
6
|
-
"_app/immutable/nodes/2.
|
|
6
|
+
"_app/immutable/nodes/2.DItUEo3e.js",
|
|
7
7
|
"_app/immutable/chunks/U4ip-C0d.js",
|
|
8
8
|
"_app/immutable/chunks/BHwiZXRv.js",
|
|
9
9
|
"_app/immutable/chunks/-3mUPuLP.js",
|
|
10
10
|
"_app/immutable/chunks/cgUjKIhX.js",
|
|
11
11
|
"_app/immutable/chunks/B5U4_V3d.js",
|
|
12
|
-
"_app/immutable/chunks/
|
|
13
|
-
"_app/immutable/chunks/
|
|
14
|
-
"_app/immutable/chunks/
|
|
12
|
+
"_app/immutable/chunks/By6CYjmE.js",
|
|
13
|
+
"_app/immutable/chunks/CR5jMWGV.js",
|
|
14
|
+
"_app/immutable/chunks/BGcEgn7w.js",
|
|
15
15
|
"_app/immutable/chunks/C9P-coqM.js"
|
|
16
16
|
];
|
|
17
17
|
const stylesheets = ["_app/immutable/assets/AllSessionsPanel.CGHY3HLy.css", "_app/immutable/assets/2.s6Kx4oz1.css"];
|
|
@@ -19,4 +19,4 @@ const fonts = [];
|
|
|
19
19
|
|
|
20
20
|
//#endregion
|
|
21
21
|
export { component, fonts, imports, index, stylesheets };
|
|
22
|
-
//# sourceMappingURL=2
|
|
22
|
+
//# sourceMappingURL=2--ZO5fZp_.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"2
|
|
1
|
+
{"version":3,"file":"2--ZO5fZp_.js","names":[],"sources":["../../../../web/.svelte-kit/adapter-bun/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.DItUEo3e.js\",\"_app/immutable/chunks/U4ip-C0d.js\",\"_app/immutable/chunks/BHwiZXRv.js\",\"_app/immutable/chunks/-3mUPuLP.js\",\"_app/immutable/chunks/cgUjKIhX.js\",\"_app/immutable/chunks/B5U4_V3d.js\",\"_app/immutable/chunks/By6CYjmE.js\",\"_app/immutable/chunks/CR5jMWGV.js\",\"_app/immutable/chunks/BGcEgn7w.js\",\"_app/immutable/chunks/C9P-coqM.js\"];\nexport const stylesheets = [\"_app/immutable/assets/AllSessionsPanel.CGHY3HLy.css\",\"_app/immutable/assets/2.s6Kx4oz1.css\"];\nexport const fonts = [];\n"],"mappings":";AAEA,MAAa,QAAQ;AACrB,IAAI;AACJ,MAAa,YAAY,YAAY,qBAAqB,MAAM,OAAO,+BAAqC;AAC5G,MAAa,UAAU;CAAC;CAAqC;CAAoC;CAAoC;CAAoC;CAAoC;CAAoC;CAAoC;CAAoC;CAAoC;CAAoC;AACjY,MAAa,cAAc,CAAC,uDAAsD,uCAAuC;AACzH,MAAa,QAAQ,EAAE"}
|
|
@@ -17,16 +17,16 @@ let component_cache;
|
|
|
17
17
|
const component = async () => component_cache ??= (await import("./_page.svelte-Be6iabRn.js")).default;
|
|
18
18
|
const server_id = "src/routes/login/+page.server.ts";
|
|
19
19
|
const imports = [
|
|
20
|
-
"_app/immutable/nodes/3.
|
|
20
|
+
"_app/immutable/nodes/3.dHui0twF.js",
|
|
21
21
|
"_app/immutable/chunks/U4ip-C0d.js",
|
|
22
22
|
"_app/immutable/chunks/BHwiZXRv.js",
|
|
23
23
|
"_app/immutable/chunks/B5U4_V3d.js",
|
|
24
24
|
"_app/immutable/chunks/cgUjKIhX.js",
|
|
25
|
-
"_app/immutable/chunks/
|
|
25
|
+
"_app/immutable/chunks/BGcEgn7w.js"
|
|
26
26
|
];
|
|
27
27
|
const stylesheets = [];
|
|
28
28
|
const fonts = [];
|
|
29
29
|
|
|
30
30
|
//#endregion
|
|
31
31
|
export { component, fonts, imports, index, _page_server_ts_exports as server, server_id, stylesheets };
|
|
32
|
-
//# sourceMappingURL=3-
|
|
32
|
+
//# sourceMappingURL=3-7HqSep9c.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"3-
|
|
1
|
+
{"version":3,"file":"3-7HqSep9c.js","names":[],"sources":["../../../../web/.svelte-kit/adapter-bun/entries/pages/login/_page.server.ts.js","../../../../web/.svelte-kit/adapter-bun/nodes/3.js"],"sourcesContent":["import { redirect } from \"@sveltejs/kit\";\nimport { i as isAuthEnabled, A as AUTH_COOKIE, a as validateAuthToken } from \"../../../chunks/auth.js\";\nconst load = async ({ cookies }) => {\n if (!isAuthEnabled()) {\n throw redirect(302, \"/\");\n }\n const token = cookies.get(AUTH_COOKIE.name);\n if (validateAuthToken(token)) {\n throw redirect(302, \"/\");\n }\n return {};\n};\nexport {\n load\n};\n","import * as server from '../entries/pages/login/_page.server.ts.js';\n\nexport const index = 3;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/login/_page.svelte.js')).default;\nexport { server };\nexport const server_id = \"src/routes/login/+page.server.ts\";\nexport const imports = [\"_app/immutable/nodes/3.dHui0twF.js\",\"_app/immutable/chunks/U4ip-C0d.js\",\"_app/immutable/chunks/BHwiZXRv.js\",\"_app/immutable/chunks/B5U4_V3d.js\",\"_app/immutable/chunks/cgUjKIhX.js\",\"_app/immutable/chunks/BGcEgn7w.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"mappings":";;;;;;AAEA,MAAM,OAAO,OAAO,EAAE,cAAc;AAClC,KAAI,CAAC,eAAe,CAClB,OAAM,SAAS,KAAK,IAAI;AAG1B,KAAI,kBADU,QAAQ,IAAI,YAAY,KAAK,CACf,CAC1B,OAAM,SAAS,KAAK,IAAI;AAE1B,QAAO,EAAE;;;;;ACRX,MAAa,QAAQ;AACrB,IAAI;AACJ,MAAa,YAAY,YAAY,qBAAqB,MAAM,OAAO,+BAA2C;AAElH,MAAa,YAAY;AACzB,MAAa,UAAU;CAAC;CAAqC;CAAoC;CAAoC;CAAoC;CAAoC;CAAoC;AACjP,MAAa,cAAc,EAAE;AAC7B,MAAa,QAAQ,EAAE"}
|
|
@@ -3,14 +3,14 @@ const index = 4;
|
|
|
3
3
|
let component_cache;
|
|
4
4
|
const component = async () => component_cache ??= (await import("./_page.svelte-C_fGJVSE.js")).default;
|
|
5
5
|
const imports = [
|
|
6
|
-
"_app/immutable/nodes/4.
|
|
6
|
+
"_app/immutable/nodes/4.CiEHP0cr.js",
|
|
7
7
|
"_app/immutable/chunks/U4ip-C0d.js",
|
|
8
8
|
"_app/immutable/chunks/BHwiZXRv.js",
|
|
9
9
|
"_app/immutable/chunks/B5U4_V3d.js",
|
|
10
10
|
"_app/immutable/chunks/C9P-coqM.js",
|
|
11
11
|
"_app/immutable/chunks/cgUjKIhX.js",
|
|
12
|
-
"_app/immutable/chunks/
|
|
13
|
-
"_app/immutable/chunks/
|
|
12
|
+
"_app/immutable/chunks/CR5jMWGV.js",
|
|
13
|
+
"_app/immutable/chunks/BGcEgn7w.js",
|
|
14
14
|
"_app/immutable/chunks/Cegv0r8x.js"
|
|
15
15
|
];
|
|
16
16
|
const stylesheets = ["_app/immutable/assets/4.DoNWy7tW.css"];
|
|
@@ -18,4 +18,4 @@ const fonts = [];
|
|
|
18
18
|
|
|
19
19
|
//#endregion
|
|
20
20
|
export { component, fonts, imports, index, stylesheets };
|
|
21
|
-
//# sourceMappingURL=4-
|
|
21
|
+
//# sourceMappingURL=4-C1PCdmY0.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"4-
|
|
1
|
+
{"version":3,"file":"4-C1PCdmY0.js","names":[],"sources":["../../../../web/.svelte-kit/adapter-bun/nodes/4.js"],"sourcesContent":["\n\nexport const index = 4;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/session/_target_/_page.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/4.CiEHP0cr.js\",\"_app/immutable/chunks/U4ip-C0d.js\",\"_app/immutable/chunks/BHwiZXRv.js\",\"_app/immutable/chunks/B5U4_V3d.js\",\"_app/immutable/chunks/C9P-coqM.js\",\"_app/immutable/chunks/cgUjKIhX.js\",\"_app/immutable/chunks/CR5jMWGV.js\",\"_app/immutable/chunks/BGcEgn7w.js\",\"_app/immutable/chunks/Cegv0r8x.js\"];\nexport const stylesheets = [\"_app/immutable/assets/4.DoNWy7tW.css\"];\nexport const fonts = [];\n"],"mappings":";AAEA,MAAa,QAAQ;AACrB,IAAI;AACJ,MAAa,YAAY,YAAY,qBAAqB,MAAM,OAAO,+BAAsD;AAC7H,MAAa,UAAU;CAAC;CAAqC;CAAoC;CAAoC;CAAoC;CAAoC;CAAoC;CAAoC;CAAoC;CAAoC;AAC7V,MAAa,cAAc,CAAC,uCAAuC;AACnE,MAAa,QAAQ,EAAE"}
|
package/dist/web/server/index.js
CHANGED
|
@@ -1495,7 +1495,7 @@ const options = {
|
|
|
1495
1495
|
<div class="error">
|
|
1496
1496
|
<span class="status">` + status + "</span>\n <div class=\"message\">\n <h1>" + message + "</h1>\n </div>\n </div>\n </body>\n</html>\n"
|
|
1497
1497
|
},
|
|
1498
|
-
version_hash: "
|
|
1498
|
+
version_hash: "pjqx4m"
|
|
1499
1499
|
};
|
|
1500
1500
|
async function get_hooks() {let websocket;
|
|
1501
1501
|
let handle;
|