@claude-sessions/web 0.4.5 → 0.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/client/_app/immutable/assets/0.cQgYior5.css +1 -0
- package/build/client/_app/immutable/assets/0.cQgYior5.css.br +0 -0
- package/build/client/_app/immutable/assets/0.cQgYior5.css.gz +0 -0
- package/build/client/_app/immutable/chunks/B8g5xi4b.js +1 -0
- package/build/client/_app/immutable/chunks/B8g5xi4b.js.br +0 -0
- package/build/client/_app/immutable/chunks/B8g5xi4b.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CG99hqDQ.js +2 -0
- package/build/client/_app/immutable/chunks/CG99hqDQ.js.br +0 -0
- package/build/client/_app/immutable/chunks/CG99hqDQ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CiIZzKcO.js +1 -0
- package/build/client/_app/immutable/chunks/CiIZzKcO.js.br +0 -0
- package/build/client/_app/immutable/chunks/CiIZzKcO.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BmH_exS6.js → DDmWtjsj.js} +1 -1
- package/build/client/_app/immutable/chunks/DDmWtjsj.js.br +0 -0
- package/build/client/_app/immutable/chunks/DDmWtjsj.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DWa7QuMS.js +1 -0
- package/build/client/_app/immutable/chunks/DWa7QuMS.js.br +0 -0
- package/build/client/_app/immutable/chunks/DWa7QuMS.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dw50LpzA.js +1 -0
- package/build/client/_app/immutable/chunks/Dw50LpzA.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dw50LpzA.js.gz +0 -0
- package/build/client/_app/immutable/chunks/aZi3OCpL.js +96 -0
- package/build/client/_app/immutable/chunks/aZi3OCpL.js.br +0 -0
- package/build/client/_app/immutable/chunks/aZi3OCpL.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.CYY1PZCN.js +2 -0
- package/build/client/_app/immutable/entry/app.CYY1PZCN.js.br +0 -0
- package/build/client/_app/immutable/entry/app.CYY1PZCN.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.D84fuMw9.js +1 -0
- package/build/client/_app/immutable/entry/start.D84fuMw9.js.br +2 -0
- package/build/client/_app/immutable/entry/start.D84fuMw9.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.B2uv-WBM.js +1 -0
- package/build/client/_app/immutable/nodes/0.B2uv-WBM.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.B2uv-WBM.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.BoxEAqK6.js +1 -0
- package/build/client/_app/immutable/nodes/1.BoxEAqK6.js.br +3 -0
- package/build/client/_app/immutable/nodes/1.BoxEAqK6.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{2.yd31CwaR.js → 2.mKAMmHlh.js} +1 -1
- package/build/client/_app/immutable/nodes/2.mKAMmHlh.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.mKAMmHlh.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.Dj8iwfME.js +4 -0
- package/build/client/_app/immutable/nodes/3.Dj8iwfME.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.Dj8iwfME.js.gz +0 -0
- package/build/client/_app/version.json +1 -1
- package/build/client/_app/version.json.br +0 -0
- package/build/client/_app/version.json.gz +0 -0
- package/build/handler.js +290 -228
- package/build/server/chunks/0-DChhR3gd.js +17 -0
- package/build/server/chunks/{0-D3SWM5E2.js.map → 0-DChhR3gd.js.map} +1 -1
- package/build/server/chunks/1-BBSPd3nB.js +9 -0
- package/build/server/chunks/{1-CXfgX4ux.js.map → 1-BBSPd3nB.js.map} +1 -1
- package/build/server/chunks/2-C20RW_lJ.js +9 -0
- package/build/server/chunks/{2-MV5uDYTL.js.map → 2-C20RW_lJ.js.map} +1 -1
- package/build/server/chunks/3-D3wL2YSE.js +9 -0
- package/build/server/chunks/{3-CsnDqfbG.js.map → 3-D3wL2YSE.js.map} +1 -1
- package/build/server/chunks/{InputModal-B9P0hP_j.js → InputModal-1qJGryUa.js} +6 -7
- package/build/server/chunks/InputModal-1qJGryUa.js.map +1 -0
- package/build/server/chunks/{Toast-DWQ-hmJu.js → Toast-C9b_dWm4.js} +7 -8
- package/build/server/chunks/Toast-C9b_dWm4.js.map +1 -0
- package/build/server/chunks/_layout.svelte-CdDMC1RI.js +134 -0
- package/build/server/chunks/_layout.svelte-CdDMC1RI.js.map +1 -0
- package/build/server/chunks/{_page.svelte-CGQGusC6.js → _page.svelte-CVL9fjg-.js} +10 -13
- package/build/server/chunks/_page.svelte-CVL9fjg-.js.map +1 -0
- package/build/server/chunks/{_page.svelte-BiD6gfpa.js → _page.svelte-Dx2ikKP_.js} +451 -497
- package/build/server/chunks/_page.svelte-Dx2ikKP_.js.map +1 -0
- package/build/server/chunks/{_server.ts-CDdRYdYO.js → _server.ts-B3M-jxF5.js} +2 -2
- package/build/server/chunks/{_server.ts-CDdRYdYO.js.map → _server.ts-B3M-jxF5.js.map} +1 -1
- package/build/server/chunks/{_server.ts-iCUks3KF.js → _server.ts-BCOHCAjW.js} +2 -2
- package/build/server/chunks/{_server.ts-iCUks3KF.js.map → _server.ts-BCOHCAjW.js.map} +1 -1
- package/build/server/chunks/{_server.ts-ChObRyrd.js → _server.ts-BGA9W8aM.js} +2 -2
- package/build/server/chunks/{_server.ts-ChObRyrd.js.map → _server.ts-BGA9W8aM.js.map} +1 -1
- package/build/server/chunks/{_server.ts-D5wsc-pR.js → _server.ts-BWxgSwZN.js} +2 -2
- package/build/server/chunks/{_server.ts-D5wsc-pR.js.map → _server.ts-BWxgSwZN.js.map} +1 -1
- package/build/server/chunks/{_server.ts-kfmLCgu8.js → _server.ts-C0mKXnG1.js} +2 -2
- package/build/server/chunks/{_server.ts-kfmLCgu8.js.map → _server.ts-C0mKXnG1.js.map} +1 -1
- package/build/server/chunks/{_server.ts-BsgoVOBd.js → _server.ts-C9GYaVf1.js} +3 -3
- package/build/server/chunks/{_server.ts-BsgoVOBd.js.map → _server.ts-C9GYaVf1.js.map} +1 -1
- package/build/server/chunks/{_server.ts-CPDPReZU.js → _server.ts-COPvamIQ.js} +2 -2
- package/build/server/chunks/{_server.ts-CPDPReZU.js.map → _server.ts-COPvamIQ.js.map} +1 -1
- package/build/server/chunks/{_server.ts-DLSXCOEM.js → _server.ts-CrKc6LEy.js} +2 -2
- package/build/server/chunks/{_server.ts-DLSXCOEM.js.map → _server.ts-CrKc6LEy.js.map} +1 -1
- package/build/server/chunks/{_server.ts-CKxzPqOL.js → _server.ts-DOSGEHuw.js} +2 -2
- package/build/server/chunks/{_server.ts-CKxzPqOL.js.map → _server.ts-DOSGEHuw.js.map} +1 -1
- package/build/server/chunks/{_server.ts-Be1LFWpG.js → _server.ts-DP0i5Bdl.js} +2 -2
- package/build/server/chunks/{_server.ts-Be1LFWpG.js.map → _server.ts-DP0i5Bdl.js.map} +1 -1
- package/build/server/chunks/{_server.ts-crvQ7CTS.js → _server.ts-DmN9rdOH.js} +3 -3
- package/build/server/chunks/{_server.ts-crvQ7CTS.js.map → _server.ts-DmN9rdOH.js.map} +1 -1
- package/build/server/chunks/{_server.ts-Brg38LxG.js → _server.ts-DmWsoikX.js} +2 -2
- package/build/server/chunks/{_server.ts-Brg38LxG.js.map → _server.ts-DmWsoikX.js.map} +1 -1
- package/build/server/chunks/{_server.ts-BOyCbZXG.js → _server.ts-F01KLghS.js} +2 -2
- package/build/server/chunks/{_server.ts-BOyCbZXG.js.map → _server.ts-F01KLghS.js.map} +1 -1
- package/build/server/chunks/{_server.ts-blDzB5RZ.js → _server.ts-QLTE_2dV.js} +2 -2
- package/build/server/chunks/{_server.ts-blDzB5RZ.js.map → _server.ts-QLTE_2dV.js.map} +1 -1
- package/build/server/chunks/{_server.ts-Fv64R5tZ.js → _server.ts-WZF_VFnZ.js} +2 -2
- package/build/server/chunks/{_server.ts-Fv64R5tZ.js.map → _server.ts-WZF_VFnZ.js.map} +1 -1
- package/build/server/chunks/{_server.ts-Dc0z7zpD.js → _server.ts-rTWeIoSC.js} +3 -3
- package/build/server/chunks/{_server.ts-Dc0z7zpD.js.map → _server.ts-rTWeIoSC.js.map} +1 -1
- package/build/server/chunks/{index4-B6vRxXfo.js → client-BtcIwznP.js} +3 -23
- package/build/server/chunks/client-BtcIwznP.js.map +1 -0
- package/build/server/chunks/{error.svelte-BNCG_dZH.js → error.svelte-B02-pvoO.js} +5 -4
- package/build/server/chunks/error.svelte-B02-pvoO.js.map +1 -0
- package/build/server/chunks/index-CoD1IJuy.js.map +1 -1
- package/build/server/chunks/index2-B2Ld-FFX.js +3575 -0
- package/build/server/chunks/index2-B2Ld-FFX.js.map +1 -0
- package/build/server/chunks/{index3-D8yIZRD-.js → index3-DNyQGNm8.js} +3 -3
- package/build/server/chunks/index3-DNyQGNm8.js.map +1 -0
- package/build/server/chunks/index4-CfOR2iO6.js +21 -0
- package/build/server/chunks/index4-CfOR2iO6.js.map +1 -0
- package/build/server/chunks/root-B5iYE7yO.js +1182 -0
- package/build/server/chunks/root-B5iYE7yO.js.map +1 -0
- package/build/server/chunks/{session-BwU3zV40.js → session-Dxp1vf6f.js} +2 -2
- package/build/server/chunks/{session-BwU3zV40.js.map → session-Dxp1vf6f.js.map} +1 -1
- package/build/server/index.js +703 -1411
- package/build/server/index.js.map +1 -1
- package/build/server/manifest.js +21 -21
- package/build/server/manifest.js.map +1 -1
- package/package.json +23 -23
- package/build/client/_app/immutable/assets/0.BTIBK81-.css +0 -1
- package/build/client/_app/immutable/assets/0.BTIBK81-.css.br +0 -0
- package/build/client/_app/immutable/assets/0.BTIBK81-.css.gz +0 -0
- package/build/client/_app/immutable/chunks/B-Z9hXPk.js +0 -1
- package/build/client/_app/immutable/chunks/B-Z9hXPk.js.br +0 -0
- package/build/client/_app/immutable/chunks/B-Z9hXPk.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BmH_exS6.js.br +0 -0
- package/build/client/_app/immutable/chunks/BmH_exS6.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cr0eW1j3.js +0 -1
- package/build/client/_app/immutable/chunks/Cr0eW1j3.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cr0eW1j3.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DOXVKi87.js +0 -2
- package/build/client/_app/immutable/chunks/DOXVKi87.js.br +0 -0
- package/build/client/_app/immutable/chunks/DOXVKi87.js.gz +0 -0
- package/build/client/_app/immutable/chunks/WodlV_jD.js +0 -96
- package/build/client/_app/immutable/chunks/WodlV_jD.js.br +0 -0
- package/build/client/_app/immutable/chunks/WodlV_jD.js.gz +0 -0
- package/build/client/_app/immutable/chunks/YXuXYbOb.js +0 -1
- package/build/client/_app/immutable/chunks/YXuXYbOb.js.br +0 -0
- package/build/client/_app/immutable/chunks/YXuXYbOb.js.gz +0 -0
- package/build/client/_app/immutable/chunks/vDyoI7lw.js +0 -1
- package/build/client/_app/immutable/chunks/vDyoI7lw.js.br +0 -0
- package/build/client/_app/immutable/chunks/vDyoI7lw.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.Kf_4i_t0.js +0 -2
- package/build/client/_app/immutable/entry/app.Kf_4i_t0.js.br +0 -0
- package/build/client/_app/immutable/entry/app.Kf_4i_t0.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.DrVGwFzz.js +0 -1
- package/build/client/_app/immutable/entry/start.DrVGwFzz.js.br +0 -0
- package/build/client/_app/immutable/entry/start.DrVGwFzz.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.Dfn2ZpXY.js +0 -1
- package/build/client/_app/immutable/nodes/0.Dfn2ZpXY.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.Dfn2ZpXY.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.CWRD2TOY.js +0 -1
- package/build/client/_app/immutable/nodes/1.CWRD2TOY.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.CWRD2TOY.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.yd31CwaR.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.yd31CwaR.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.Dh5fbLPm.js +0 -4
- package/build/client/_app/immutable/nodes/3.Dh5fbLPm.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.Dh5fbLPm.js.gz +0 -0
- package/build/server/chunks/0-D3SWM5E2.js +0 -17
- package/build/server/chunks/1-CXfgX4ux.js +0 -9
- package/build/server/chunks/2-MV5uDYTL.js +0 -9
- package/build/server/chunks/3-CsnDqfbG.js +0 -9
- package/build/server/chunks/InputModal-B9P0hP_j.js.map +0 -1
- package/build/server/chunks/Toast-DWQ-hmJu.js.map +0 -1
- package/build/server/chunks/_layout.svelte-Cgt3CiZy.js +0 -106
- package/build/server/chunks/_layout.svelte-Cgt3CiZy.js.map +0 -1
- package/build/server/chunks/_page.svelte-BiD6gfpa.js.map +0 -1
- package/build/server/chunks/_page.svelte-CGQGusC6.js.map +0 -1
- package/build/server/chunks/error.svelte-BNCG_dZH.js.map +0 -1
- package/build/server/chunks/exports-BXvEiaiv.js +0 -238
- package/build/server/chunks/exports-BXvEiaiv.js.map +0 -1
- package/build/server/chunks/index-D4ev3Ona.js +0 -1352
- package/build/server/chunks/index-D4ev3Ona.js.map +0 -1
- package/build/server/chunks/index2-ybZwlzIk.js +0 -1925
- package/build/server/chunks/index2-ybZwlzIk.js.map +0 -1
- package/build/server/chunks/index3-D8yIZRD-.js.map +0 -1
- package/build/server/chunks/index4-B6vRxXfo.js.map +0 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { d as attr } from './
|
|
2
|
-
import { a1 as escape_html } from './index2-ybZwlzIk.js';
|
|
1
|
+
import { k as escape_html, d as attr } from './index2-B2Ld-FFX.js';
|
|
3
2
|
|
|
4
3
|
function InputModal($$renderer, $$props) {
|
|
5
4
|
$$renderer.component(($$renderer2) => {
|
|
@@ -16,21 +15,21 @@ function InputModal($$renderer, $$props) {
|
|
|
16
15
|
} = $$props;
|
|
17
16
|
let inputValue = "";
|
|
18
17
|
if (show) {
|
|
19
|
-
$$renderer2.push("<!--[-->");
|
|
18
|
+
$$renderer2.push("<!--[0-->");
|
|
20
19
|
$$renderer2.push(`<div class="fixed inset-0 bg-black/50 flex items-center justify-center z-50" role="dialog" aria-modal="true" tabindex="-1"><div class="bg-gh-bg-secondary border border-gh-border rounded-lg p-6 w-[400px] shadow-xl text-gh-text"><h2 class="text-lg font-semibold mb-4">${escape_html(title)}</h2> `);
|
|
21
20
|
if (label) {
|
|
22
|
-
$$renderer2.push("<!--[-->");
|
|
21
|
+
$$renderer2.push("<!--[0-->");
|
|
23
22
|
$$renderer2.push(`<label class="block text-sm text-gh-text-secondary mb-2">${escape_html(label)}</label>`);
|
|
24
23
|
} else {
|
|
25
|
-
$$renderer2.push("<!--[
|
|
24
|
+
$$renderer2.push("<!--[-1-->");
|
|
26
25
|
}
|
|
27
26
|
$$renderer2.push(`<!--]--> <input${attr("value", inputValue)} type="text"${attr("placeholder", placeholder)} class="w-full px-3 py-2 text-sm rounded-md border border-gh-border bg-gh-bg focus:outline-none focus:border-gh-accent"/> <div class="flex gap-2 justify-end mt-6"><button class="px-4 py-2 text-sm rounded-md border border-gh-border hover:bg-gh-border-subtle">${escape_html(cancelText)}</button> <button class="px-4 py-2 text-sm rounded-md bg-gh-accent text-white hover:bg-blue-700">${escape_html(confirmText)}</button></div></div></div>`);
|
|
28
27
|
} else {
|
|
29
|
-
$$renderer2.push("<!--[
|
|
28
|
+
$$renderer2.push("<!--[-1-->");
|
|
30
29
|
}
|
|
31
30
|
$$renderer2.push(`<!--]-->`);
|
|
32
31
|
});
|
|
33
32
|
}
|
|
34
33
|
|
|
35
34
|
export { InputModal as I };
|
|
36
|
-
//# sourceMappingURL=InputModal-
|
|
35
|
+
//# sourceMappingURL=InputModal-1qJGryUa.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InputModal-1qJGryUa.js","sources":["../../../.svelte-kit/adapter-node/chunks/InputModal.js"],"sourcesContent":["import { e as escape_html, a as attr } from \"./index.js\";\nfunction InputModal($$renderer, $$props) {\n $$renderer.component(($$renderer2) => {\n let {\n show,\n title,\n label = \"\",\n placeholder = \"\",\n initialValue = \"\",\n confirmText = \"Save\",\n cancelText = \"Cancel\",\n onConfirm,\n onCancel\n } = $$props;\n let inputValue = \"\";\n if (show) {\n $$renderer2.push(\"<!--[0-->\");\n $$renderer2.push(`<div class=\"fixed inset-0 bg-black/50 flex items-center justify-center z-50\" role=\"dialog\" aria-modal=\"true\" tabindex=\"-1\"><div class=\"bg-gh-bg-secondary border border-gh-border rounded-lg p-6 w-[400px] shadow-xl text-gh-text\"><h2 class=\"text-lg font-semibold mb-4\">${escape_html(title)}</h2> `);\n if (label) {\n $$renderer2.push(\"<!--[0-->\");\n $$renderer2.push(`<label class=\"block text-sm text-gh-text-secondary mb-2\">${escape_html(label)}</label>`);\n } else {\n $$renderer2.push(\"<!--[-1-->\");\n }\n $$renderer2.push(`<!--]--> <input${attr(\"value\", inputValue)} type=\"text\"${attr(\"placeholder\", placeholder)} class=\"w-full px-3 py-2 text-sm rounded-md border border-gh-border bg-gh-bg focus:outline-none focus:border-gh-accent\"/> <div class=\"flex gap-2 justify-end mt-6\"><button class=\"px-4 py-2 text-sm rounded-md border border-gh-border hover:bg-gh-border-subtle\">${escape_html(cancelText)}</button> <button class=\"px-4 py-2 text-sm rounded-md bg-gh-accent text-white hover:bg-blue-700\">${escape_html(confirmText)}</button></div></div></div>`);\n } else {\n $$renderer2.push(\"<!--[-1-->\");\n }\n $$renderer2.push(`<!--]-->`);\n });\n}\nexport {\n InputModal as I\n};\n"],"names":[],"mappings":";;AACA,SAAS,UAAU,CAAC,UAAU,EAAE,OAAO,EAAE;AACzC,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,WAAW,KAAK;AACxC,IAAI,IAAI;AACR,MAAM,IAAI;AACV,MAAM,KAAK;AACX,MAAM,KAAK,GAAG,EAAE;AAChB,MAAM,WAAW,GAAG,EAAE;AACtB,MAAM,YAAY,GAAG,EAAE;AACvB,MAAM,WAAW,GAAG,MAAM;AAC1B,MAAM,UAAU,GAAG,QAAQ;AAC3B,MAAM,SAAS;AACf,MAAM;AACN,KAAK,GAAG,OAAO;AACf,IAAI,IAAI,UAAU,GAAG,EAAE;AACvB,IAAI,IAAI,IAAI,EAAE;AACd,MAAM,WAAW,CAAC,IAAI,CAAC,WAAW,CAAC;AACnC,MAAM,WAAW,CAAC,IAAI,CAAC,CAAC,0QAA0Q,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC;AAC/T,MAAM,IAAI,KAAK,EAAE;AACjB,QAAQ,WAAW,CAAC,IAAI,CAAC,WAAW,CAAC;AACrC,QAAQ,WAAW,CAAC,IAAI,CAAC,CAAC,yDAAyD,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,CAAC;AAClH,MAAM,CAAC,MAAM;AACb,QAAQ,WAAW,CAAC,IAAI,CAAC,YAAY,CAAC;AACtC,MAAM;AACN,MAAM,WAAW,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,IAAI,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC,YAAY,EAAE,IAAI,CAAC,aAAa,EAAE,WAAW,CAAC,CAAC,kQAAkQ,EAAE,WAAW,CAAC,UAAU,CAAC,CAAC,iGAAiG,EAAE,WAAW,CAAC,WAAW,CAAC,CAAC,2BAA2B,CAAC,CAAC;AACviB,IAAI,CAAC,MAAM;AACX,MAAM,WAAW,CAAC,IAAI,CAAC,YAAY,CAAC;AACpC,IAAI;AACJ,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC;AAChC,EAAE,CAAC,CAAC;AACJ;;;;"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a1 as escape_html, a7 as ssr_context, a0 as writable, a8 as get, a9 as derived } from './index2-ybZwlzIk.js';
|
|
1
|
+
import { k as escape_html, l as attr_class, f as stringify, av as bind_props, aw as ssr_context, w as writable, ax as get, n as derived } from './index2-B2Ld-FFX.js';
|
|
3
2
|
import { marked } from 'marked';
|
|
4
|
-
import { F as maskHomePath$1 } from './index3-
|
|
3
|
+
import { F as maskHomePath$1 } from './index3-DNyQGNm8.js';
|
|
5
4
|
|
|
6
5
|
function onDestroy(fn) {
|
|
7
6
|
/** @type {SSRContext} */
|
|
@@ -34,10 +33,10 @@ function ConfirmModal($$renderer, $$props) {
|
|
|
34
33
|
onCancel
|
|
35
34
|
} = $$props;
|
|
36
35
|
if (show) {
|
|
37
|
-
$$renderer2.push("<!--[-->");
|
|
36
|
+
$$renderer2.push("<!--[0-->");
|
|
38
37
|
$$renderer2.push(`<div class="fixed inset-0 bg-black/50 flex items-center justify-center z-50" role="dialog" aria-modal="true" tabindex="-1"><div class="bg-gh-bg-secondary border border-gh-border rounded-lg p-6 w-[380px] shadow-xl text-gh-text"><h2 class="text-lg font-semibold mb-3">${escape_html(title)}</h2> <p class="text-sm text-gh-text-secondary mb-6 whitespace-pre-wrap">${escape_html(message)}</p> <div class="flex gap-2 justify-end"><button class="px-4 py-2 text-sm rounded-md border border-gh-border hover:bg-gh-border-subtle">${escape_html(cancelText)}</button> <button${attr_class(`px-4 py-2 text-sm rounded-md ${stringify(variant === "danger" ? "bg-gh-red text-white hover:bg-red-700" : "bg-gh-accent text-white hover:bg-blue-700")}`)}>${escape_html(confirmText)}</button></div></div></div>`);
|
|
39
38
|
} else {
|
|
40
|
-
$$renderer2.push("<!--[
|
|
39
|
+
$$renderer2.push("<!--[-1-->");
|
|
41
40
|
}
|
|
42
41
|
$$renderer2.push(`<!--]-->`);
|
|
43
42
|
});
|
|
@@ -66,10 +65,10 @@ function Toast($$renderer, $$props) {
|
|
|
66
65
|
onDestroy(() => {
|
|
67
66
|
});
|
|
68
67
|
if (message) {
|
|
69
|
-
$$renderer2.push("<!--[-->");
|
|
68
|
+
$$renderer2.push("<!--[0-->");
|
|
70
69
|
$$renderer2.push(`<div${attr_class(`fixed bottom-4 left-1/2 -translate-x-1/2 text-white px-4 py-2 rounded-lg shadow-lg z-50 flex items-center gap-3 animate-fade-in ${stringify(variantClasses[variant])}`, "svelte-1cpok13")}><span>${escape_html(message)}</span> <button class="text-white/70 hover:text-white transition-colors" title="Dismiss">✕</button></div>`);
|
|
71
70
|
} else {
|
|
72
|
-
$$renderer2.push("<!--[
|
|
71
|
+
$$renderer2.push("<!--[-1-->");
|
|
73
72
|
}
|
|
74
73
|
$$renderer2.push(`<!--]-->`);
|
|
75
74
|
bind_props($$props, { message });
|
|
@@ -77,4 +76,4 @@ function Toast($$renderer, $$props) {
|
|
|
77
76
|
}
|
|
78
77
|
|
|
79
78
|
export { ConfirmModal as C, Toast as T, appConfig as a, formatDate as b, formatProjectName as f, maskHomePath as m, truncate as t };
|
|
80
|
-
//# sourceMappingURL=Toast-
|
|
79
|
+
//# sourceMappingURL=Toast-C9b_dWm4.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Toast-C9b_dWm4.js","sources":["../../../.svelte-kit/adapter-node/chunks/Toast.js"],"sourcesContent":["import { aj as ssr_context, e as escape_html, c as attr_class, s as stringify, ak as bind_props } from \"./index.js\";\nimport { marked } from \"marked\";\nimport { d as derived, w as writable, g as get } from \"./index2.js\";\nimport { F as maskHomePath$1 } from \"./index3.js\";\nfunction onDestroy(fn) {\n /** @type {SSRContext} */\n ssr_context.r.on_destroy(fn);\n}\nconst appConfig = writable({ version: \"\", homeDir: \"\", currentProjectName: \"\" });\nconst maskHomePath = (text, homeDir) => {\n const home = homeDir ?? get(appConfig).homeDir;\n if (!home) {\n return text.replace(\n /(?:\\/Users\\/[^/\\s]+|C:\\\\Users\\\\[^\\\\\\s]+)(?=[/\\\\]|(?=\\s|$|[)\"'\\]}>,:;]))/g,\n \"~\"\n );\n }\n return maskHomePath$1(text, home);\n};\nderived(appConfig, ($config) => {\n return (text) => maskHomePath(text, $config.homeDir);\n});\nfunction ConfirmModal($$renderer, $$props) {\n $$renderer.component(($$renderer2) => {\n let {\n show,\n title,\n message,\n confirmText = \"Confirm\",\n cancelText = \"Cancel\",\n variant = \"default\",\n onConfirm,\n onCancel\n } = $$props;\n if (show) {\n $$renderer2.push(\"<!--[0-->\");\n $$renderer2.push(`<div class=\"fixed inset-0 bg-black/50 flex items-center justify-center z-50\" role=\"dialog\" aria-modal=\"true\" tabindex=\"-1\"><div class=\"bg-gh-bg-secondary border border-gh-border rounded-lg p-6 w-[380px] shadow-xl text-gh-text\"><h2 class=\"text-lg font-semibold mb-3\">${escape_html(title)}</h2> <p class=\"text-sm text-gh-text-secondary mb-6 whitespace-pre-wrap\">${escape_html(message)}</p> <div class=\"flex gap-2 justify-end\"><button class=\"px-4 py-2 text-sm rounded-md border border-gh-border hover:bg-gh-border-subtle\">${escape_html(cancelText)}</button> <button${attr_class(`px-4 py-2 text-sm rounded-md ${stringify(variant === \"danger\" ? \"bg-gh-red text-white hover:bg-red-700\" : \"bg-gh-accent text-white hover:bg-blue-700\")}`)}>${escape_html(confirmText)}</button></div></div></div>`);\n } else {\n $$renderer2.push(\"<!--[-1-->\");\n }\n $$renderer2.push(`<!--]-->`);\n });\n}\nmarked.setOptions({\n breaks: true,\n gfm: true\n});\nconst formatDate = (dateStr) => {\n if (!dateStr) return \"-\";\n return new Date(dateStr).toLocaleString();\n};\nconst truncate = (str, len) => str.length > len ? str.slice(0, len) + \"...\" : str;\nconst formatProjectName = (displayName) => {\n return maskHomePath(displayName);\n};\nfunction Toast($$renderer, $$props) {\n $$renderer.component(($$renderer2) => {\n let { message = void 0, variant = \"success\", duration = 3e3 } = $$props;\n const variantClasses = {\n success: \"bg-gh-green/90\",\n error: \"bg-gh-red/90\",\n info: \"bg-gh-accent/90\",\n warning: \"bg-yellow-600/90\"\n };\n onDestroy(() => {\n });\n if (message) {\n $$renderer2.push(\"<!--[0-->\");\n $$renderer2.push(`<div${attr_class(`fixed bottom-4 left-1/2 -translate-x-1/2 text-white px-4 py-2 rounded-lg shadow-lg z-50 flex items-center gap-3 animate-fade-in ${stringify(variantClasses[variant])}`, \"svelte-1cpok13\")}><span>${escape_html(message)}</span> <button class=\"text-white/70 hover:text-white transition-colors\" title=\"Dismiss\">✕</button></div>`);\n } else {\n $$renderer2.push(\"<!--[-1-->\");\n }\n $$renderer2.push(`<!--]-->`);\n bind_props($$props, { message });\n });\n}\nexport {\n ConfirmModal as C,\n Toast as T,\n formatProjectName as a,\n appConfig as b,\n formatDate as f,\n maskHomePath as m,\n truncate as t\n};\n"],"names":[],"mappings":";;;;AAIA,SAAS,SAAS,CAAC,EAAE,EAAE;AACvB;AACA,EAAE,WAAW,CAAC,CAAC,CAAC,UAAU,CAAC,EAAE,CAAC;AAC9B;AACK,MAAC,SAAS,GAAG,QAAQ,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,kBAAkB,EAAE,EAAE,EAAE;AAC1E,MAAC,YAAY,GAAG,CAAC,IAAI,EAAE,OAAO,KAAK;AACxC,EAAE,MAAM,IAAI,GAAG,OAAO,IAAI,GAAG,CAAC,SAAS,CAAC,CAAC,OAAO;AAChD,EAAE,IAAI,CAAC,IAAI,EAAE;AACb,IAAI,OAAO,IAAI,CAAC,OAAO;AACvB,MAAM,0EAA0E;AAChF,MAAM;AACN,KAAK;AACL,EAAE;AACF,EAAE,OAAO,cAAc,CAAC,IAAI,EAAE,IAAI,CAAC;AACnC;AACA,OAAO,CAAC,SAAS,EAAE,CAAC,OAAO,KAAK;AAChC,EAAE,OAAO,CAAC,IAAI,KAAK,YAAY,CAAC,IAAI,EAAE,OAAO,CAAC,OAAO,CAAC;AACtD,CAAC,CAAC;AACF,SAAS,YAAY,CAAC,UAAU,EAAE,OAAO,EAAE;AAC3C,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,WAAW,KAAK;AACxC,IAAI,IAAI;AACR,MAAM,IAAI;AACV,MAAM,KAAK;AACX,MAAM,OAAO;AACb,MAAM,WAAW,GAAG,SAAS;AAC7B,MAAM,UAAU,GAAG,QAAQ;A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S,KAAK,CAAC,UAAU,EAAE,OAAO,EAAE;AACpC,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,WAAW,KAAK;AACxC,IAAI,IAAI,EAAE,OAAO,GAAG,MAAM,EAAE,OAAO,GAAG,SAAS,EAAE,QAAQ,GAAG,GAAG,EAAE,GAAG,OAAO;AAC3E,IAAI,MAAM,cAAc,GAAG;AAC3B,MAAM,OAAO,EAAE,gBAAgB;AAC/B,MAAM,KAAK,EAAE,cAAc;AAC3B,MAAM,IAAI,EAAE,iBAAiB;AAC7B,MAAM,OAAO,EAAE;AACf,KAAK;AACL,IAAI,SAAS,CAAC,MAAM;AACpB,IAAI,CAAC,CAAC;AACN,IAAI,IAAI,OAAO,EAAE;AACjB,MAAM,WAAW,CAAC,IAAI,CAAC,WAAW,CAAC;AACnC,MAAM,WAAW,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,gIAAgI,EAAE,SAAS,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,gBAAgB,CAAC,CAAC,OAAO,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC,yGAAyG,CAAC,CAAC;AAC7W,IAAI,CAAC,MAAM;AACX,MAAM,WAAW,CAAC,IAAI,CAAC,YAAY,CAAC;AACpC,IAAI;AACJ,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC;AAChC,IAAI,UAAU,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,CAAC;AACpC,EAAE,CAAC,CAAC;AACJ;;;;"}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { h as head, d as attr, f as stringify, j as store_get, k as escape_html, l as attr_class, m as derived, w as writable, n as derived$1, o as unsubscribe_stores } from './index2-B2Ld-FFX.js';
|
|
2
|
+
import './root-B5iYE7yO.js';
|
|
3
|
+
import './client-BtcIwznP.js';
|
|
4
|
+
import { p as page } from './index4-CfOR2iO6.js';
|
|
5
|
+
import { C as ConfirmModal, T as Toast } from './Toast-C9b_dWm4.js';
|
|
6
|
+
import './index3-DNyQGNm8.js';
|
|
7
|
+
import 'marked';
|
|
8
|
+
import 'fs';
|
|
9
|
+
import 'fs/promises';
|
|
10
|
+
import 'os';
|
|
11
|
+
import 'path';
|
|
12
|
+
import 'effect';
|
|
13
|
+
import 'crypto';
|
|
14
|
+
|
|
15
|
+
const getStoredPreference = () => {
|
|
16
|
+
if (typeof localStorage === "undefined") return "system";
|
|
17
|
+
const stored = localStorage.getItem("theme");
|
|
18
|
+
if (stored === "light" || stored === "dark" || stored === "system") return stored;
|
|
19
|
+
return "system";
|
|
20
|
+
};
|
|
21
|
+
const getSystemTheme = () => {
|
|
22
|
+
if (typeof window === "undefined") return "dark";
|
|
23
|
+
return window.matchMedia("(prefers-color-scheme: light)").matches ? "light" : "dark";
|
|
24
|
+
};
|
|
25
|
+
const themePreference = writable(getStoredPreference());
|
|
26
|
+
const effectiveTheme = derived$1(themePreference, ($pref) => {
|
|
27
|
+
if ($pref === "system") return getSystemTheme();
|
|
28
|
+
return $pref;
|
|
29
|
+
});
|
|
30
|
+
function _layout($$renderer, $$props) {
|
|
31
|
+
$$renderer.component(($$renderer2) => {
|
|
32
|
+
var $$store_subs;
|
|
33
|
+
let { children } = $$props;
|
|
34
|
+
const isSessionPage = derived(() => page.url.pathname.startsWith("/session/"));
|
|
35
|
+
const currentSessionInfo = derived(() => {
|
|
36
|
+
if (!isSessionPage()) return null;
|
|
37
|
+
const match = page.url.pathname.match(/^\/session\/([^/]+)\/([^/]+)/);
|
|
38
|
+
if (!match) return null;
|
|
39
|
+
return {
|
|
40
|
+
projectName: decodeURIComponent(match[1]),
|
|
41
|
+
sessionId: decodeURIComponent(match[2])
|
|
42
|
+
};
|
|
43
|
+
});
|
|
44
|
+
let cleaning = false;
|
|
45
|
+
let shuttingDown = false;
|
|
46
|
+
let toastMessage = null;
|
|
47
|
+
let toastVariant = "info";
|
|
48
|
+
let confirmModal = {
|
|
49
|
+
show: false,
|
|
50
|
+
title: "",
|
|
51
|
+
message: "",
|
|
52
|
+
variant: "default",
|
|
53
|
+
onConfirm: () => {
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
const closeConfirm = () => {
|
|
57
|
+
confirmModal = { ...confirmModal, show: false };
|
|
58
|
+
};
|
|
59
|
+
let searchQuery = "";
|
|
60
|
+
let $$settled = true;
|
|
61
|
+
let $$inner_renderer;
|
|
62
|
+
function $$render_inner($$renderer3) {
|
|
63
|
+
head("12qhfyh", $$renderer3, ($$renderer4) => {
|
|
64
|
+
$$renderer4.title(($$renderer5) => {
|
|
65
|
+
$$renderer5.push(`<title>Claude Sessions</title>`);
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
$$renderer3.push(`<div class="min-h-screen flex flex-col bg-gh-bg text-gh-text"><header class="bg-gh-bg-secondary border-b border-gh-border px-8 py-4 flex justify-between items-center"><div class="flex items-center gap-3"><a${attr("href", currentSessionInfo() ? `/#project=${encodeURIComponent(currentSessionInfo().projectName)}` : "/")} class="flex items-center gap-2 hover:text-gh-accent"${attr("title", currentSessionInfo() ? "Back to project" : "Claude Sessions")}><svg class="w-6 h-6 text-gh-accent" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"></path></svg> <span class="text-2xl font-semibold hidden sm:inline">Claude Sessions</span></a> `);
|
|
69
|
+
{
|
|
70
|
+
$$renderer3.push("<!--[-1-->");
|
|
71
|
+
}
|
|
72
|
+
$$renderer3.push(`<!--]--> <button class="p-1.5 rounded-md text-gh-text-secondary hover:text-gh-text hover:bg-gh-border-subtle transition-colors"${attr("title", `Theme: ${stringify(store_get($$store_subs ??= {}, "$themePreference", themePreference))} (${stringify(store_get($$store_subs ??= {}, "$effectiveTheme", effectiveTheme))})`)}>`);
|
|
73
|
+
if (store_get($$store_subs ??= {}, "$effectiveTheme", effectiveTheme) === "light") {
|
|
74
|
+
$$renderer3.push("<!--[0-->");
|
|
75
|
+
$$renderer3.push(`<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"></path></svg>`);
|
|
76
|
+
} else if (store_get($$store_subs ??= {}, "$themePreference", themePreference) === "system") {
|
|
77
|
+
$$renderer3.push("<!--[1-->");
|
|
78
|
+
$$renderer3.push(`<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"></path></svg>`);
|
|
79
|
+
} else {
|
|
80
|
+
$$renderer3.push("<!--[-1-->");
|
|
81
|
+
$$renderer3.push(`<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"></path></svg>`);
|
|
82
|
+
}
|
|
83
|
+
$$renderer3.push(`<!--]--></button></div> <div class="relative flex-1 max-w-md mx-8"><input type="text" placeholder="Search sessions..."${attr("value", searchQuery)} class="w-full px-4 py-2 bg-gh-bg border border-gh-border rounded-md text-sm focus:outline-none focus:border-gh-accent"/> `);
|
|
84
|
+
{
|
|
85
|
+
$$renderer3.push("<!--[-1-->");
|
|
86
|
+
}
|
|
87
|
+
$$renderer3.push(`<!--]--> `);
|
|
88
|
+
{
|
|
89
|
+
$$renderer3.push("<!--[-1-->");
|
|
90
|
+
}
|
|
91
|
+
$$renderer3.push(`<!--]--></div> <div class="flex gap-2"><button class="bg-gh-border-subtle border border-gh-border text-gh-text px-4 py-2 rounded-md text-sm transition-colors hover:bg-gh-border hover:border-gh-text-secondary disabled:opacity-50 disabled:cursor-not-allowed"${attr("disabled", cleaning, true)}>${escape_html("Cleanup")}</button> <button class="bg-gh-red border border-gh-red text-white px-4 py-2 rounded-md text-sm transition-colors hover:bg-red-700 disabled:opacity-50 disabled:cursor-not-allowed"${attr("disabled", shuttingDown, true)}>${escape_html("Shutdown")}</button></div></header> <main${attr_class(`flex-1 ${stringify(isSessionPage() ? "" : "p-8 max-w-7xl mx-auto")} w-full overflow-y-auto`)}>`);
|
|
92
|
+
children($$renderer3);
|
|
93
|
+
$$renderer3.push(`<!----></main></div> `);
|
|
94
|
+
{
|
|
95
|
+
$$renderer3.push("<!--[-1-->");
|
|
96
|
+
}
|
|
97
|
+
$$renderer3.push(`<!--]--> `);
|
|
98
|
+
{
|
|
99
|
+
$$renderer3.push("<!--[-1-->");
|
|
100
|
+
}
|
|
101
|
+
$$renderer3.push(`<!--]--> `);
|
|
102
|
+
ConfirmModal($$renderer3, {
|
|
103
|
+
show: confirmModal.show,
|
|
104
|
+
title: confirmModal.title,
|
|
105
|
+
message: confirmModal.message,
|
|
106
|
+
variant: confirmModal.variant,
|
|
107
|
+
onConfirm: confirmModal.onConfirm,
|
|
108
|
+
onCancel: closeConfirm
|
|
109
|
+
});
|
|
110
|
+
$$renderer3.push(`<!----> `);
|
|
111
|
+
Toast($$renderer3, {
|
|
112
|
+
variant: toastVariant,
|
|
113
|
+
get message() {
|
|
114
|
+
return toastMessage;
|
|
115
|
+
},
|
|
116
|
+
set message($$value) {
|
|
117
|
+
toastMessage = $$value;
|
|
118
|
+
$$settled = false;
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
$$renderer3.push(`<!---->`);
|
|
122
|
+
}
|
|
123
|
+
do {
|
|
124
|
+
$$settled = true;
|
|
125
|
+
$$inner_renderer = $$renderer2.copy();
|
|
126
|
+
$$render_inner($$inner_renderer);
|
|
127
|
+
} while (!$$settled);
|
|
128
|
+
$$renderer2.subsume($$inner_renderer);
|
|
129
|
+
if ($$store_subs) unsubscribe_stores($$store_subs);
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export { _layout as default };
|
|
134
|
+
//# sourceMappingURL=_layout.svelte-CdDMC1RI.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_layout.svelte-CdDMC1RI.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/_layout.svelte.js"],"sourcesContent":["import { h as head, a as attr, d as derived$1, s as stringify, b as store_get, e as escape_html, c as attr_class, f as unsubscribe_stores } from \"../../chunks/index.js\";\nimport \"@sveltejs/kit/internal\";\nimport \"../../chunks/exports.js\";\nimport \"../../chunks/utils2.js\";\nimport \"@sveltejs/kit/internal/server\";\nimport \"../../chunks/root.js\";\nimport \"../../chunks/client.js\";\nimport { p as page } from \"../../chunks/index4.js\";\nimport { C as ConfirmModal, T as Toast } from \"../../chunks/Toast.js\";\nimport { w as writable, d as derived } from \"../../chunks/index2.js\";\nimport \"../../chunks/index3.js\";\nconst getStoredPreference = () => {\n if (typeof localStorage === \"undefined\") return \"system\";\n const stored = localStorage.getItem(\"theme\");\n if (stored === \"light\" || stored === \"dark\" || stored === \"system\") return stored;\n return \"system\";\n};\nconst getSystemTheme = () => {\n if (typeof window === \"undefined\") return \"dark\";\n return window.matchMedia(\"(prefers-color-scheme: light)\").matches ? \"light\" : \"dark\";\n};\nconst themePreference = writable(getStoredPreference());\nconst effectiveTheme = derived(themePreference, ($pref) => {\n if ($pref === \"system\") return getSystemTheme();\n return $pref;\n});\nfunction _layout($$renderer, $$props) {\n $$renderer.component(($$renderer2) => {\n var $$store_subs;\n let { children } = $$props;\n const isSessionPage = derived$1(() => page.url.pathname.startsWith(\"/session/\"));\n const currentSessionInfo = derived$1(() => {\n if (!isSessionPage()) return null;\n const match = page.url.pathname.match(/^\\/session\\/([^/]+)\\/([^/]+)/);\n if (!match) return null;\n return {\n projectName: decodeURIComponent(match[1]),\n sessionId: decodeURIComponent(match[2])\n };\n });\n let cleaning = false;\n let shuttingDown = false;\n let toastMessage = null;\n let toastVariant = \"info\";\n let confirmModal = {\n show: false,\n title: \"\",\n message: \"\",\n variant: \"default\",\n onConfirm: () => {\n }\n };\n const closeConfirm = () => {\n confirmModal = { ...confirmModal, show: false };\n };\n let searchQuery = \"\";\n let $$settled = true;\n let $$inner_renderer;\n function $$render_inner($$renderer3) {\n head(\"12qhfyh\", $$renderer3, ($$renderer4) => {\n $$renderer4.title(($$renderer5) => {\n $$renderer5.push(`<title>Claude Sessions</title>`);\n });\n });\n $$renderer3.push(`<div class=\"min-h-screen flex flex-col bg-gh-bg text-gh-text\"><header class=\"bg-gh-bg-secondary border-b border-gh-border px-8 py-4 flex justify-between items-center\"><div class=\"flex items-center gap-3\"><a${attr(\"href\", currentSessionInfo() ? `/#project=${encodeURIComponent(currentSessionInfo().projectName)}` : \"/\")} class=\"flex items-center gap-2 hover:text-gh-accent\"${attr(\"title\", currentSessionInfo() ? \"Back to project\" : \"Claude Sessions\")}><svg class=\"w-6 h-6 text-gh-accent\" fill=\"none\" stroke=\"currentColor\" viewBox=\"0 0 24 24\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z\"></path></svg> <span class=\"text-2xl font-semibold hidden sm:inline\">Claude Sessions</span></a> `);\n {\n $$renderer3.push(\"<!--[-1-->\");\n }\n $$renderer3.push(`<!--]--> <button class=\"p-1.5 rounded-md text-gh-text-secondary hover:text-gh-text hover:bg-gh-border-subtle transition-colors\"${attr(\"title\", `Theme: ${stringify(store_get($$store_subs ??= {}, \"$themePreference\", themePreference))} (${stringify(store_get($$store_subs ??= {}, \"$effectiveTheme\", effectiveTheme))})`)}>`);\n if (store_get($$store_subs ??= {}, \"$effectiveTheme\", effectiveTheme) === \"light\") {\n $$renderer3.push(\"<!--[0-->\");\n $$renderer3.push(`<svg class=\"w-5 h-5\" fill=\"none\" stroke=\"currentColor\" viewBox=\"0 0 24 24\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z\"></path></svg>`);\n } else if (store_get($$store_subs ??= {}, \"$themePreference\", themePreference) === \"system\") {\n $$renderer3.push(\"<!--[1-->\");\n $$renderer3.push(`<svg class=\"w-5 h-5\" fill=\"none\" stroke=\"currentColor\" viewBox=\"0 0 24 24\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z\"></path></svg>`);\n } else {\n $$renderer3.push(\"<!--[-1-->\");\n $$renderer3.push(`<svg class=\"w-5 h-5\" fill=\"none\" stroke=\"currentColor\" viewBox=\"0 0 24 24\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z\"></path></svg>`);\n }\n $$renderer3.push(`<!--]--></button></div> <div class=\"relative flex-1 max-w-md mx-8\"><input type=\"text\" placeholder=\"Search sessions...\"${attr(\"value\", searchQuery)} class=\"w-full px-4 py-2 bg-gh-bg border border-gh-border rounded-md text-sm focus:outline-none focus:border-gh-accent\"/> `);\n {\n $$renderer3.push(\"<!--[-1-->\");\n }\n $$renderer3.push(`<!--]--> `);\n {\n $$renderer3.push(\"<!--[-1-->\");\n }\n $$renderer3.push(`<!--]--></div> <div class=\"flex gap-2\"><button class=\"bg-gh-border-subtle border border-gh-border text-gh-text px-4 py-2 rounded-md text-sm transition-colors hover:bg-gh-border hover:border-gh-text-secondary disabled:opacity-50 disabled:cursor-not-allowed\"${attr(\"disabled\", cleaning, true)}>${escape_html(\"Cleanup\")}</button> <button class=\"bg-gh-red border border-gh-red text-white px-4 py-2 rounded-md text-sm transition-colors hover:bg-red-700 disabled:opacity-50 disabled:cursor-not-allowed\"${attr(\"disabled\", shuttingDown, true)}>${escape_html(\"Shutdown\")}</button></div></header> <main${attr_class(`flex-1 ${stringify(isSessionPage() ? \"\" : \"p-8 max-w-7xl mx-auto\")} w-full overflow-y-auto`)}>`);\n children($$renderer3);\n $$renderer3.push(`<!----></main></div> `);\n {\n $$renderer3.push(\"<!--[-1-->\");\n }\n $$renderer3.push(`<!--]--> `);\n {\n $$renderer3.push(\"<!--[-1-->\");\n }\n $$renderer3.push(`<!--]--> `);\n ConfirmModal($$renderer3, {\n show: confirmModal.show,\n title: confirmModal.title,\n message: confirmModal.message,\n variant: confirmModal.variant,\n onConfirm: confirmModal.onConfirm,\n onCancel: closeConfirm\n });\n $$renderer3.push(`<!----> `);\n Toast($$renderer3, {\n variant: toastVariant,\n get message() {\n return toastMessage;\n },\n set message($$value) {\n toastMessage = $$value;\n $$settled = false;\n }\n });\n $$renderer3.push(`<!---->`);\n }\n do {\n $$settled = true;\n $$inner_renderer = $$renderer2.copy();\n $$render_inner($$inner_renderer);\n } while (!$$settled);\n $$renderer2.subsume($$inner_renderer);\n if ($$store_subs) unsubscribe_stores($$store_subs);\n });\n}\nexport {\n _layout as default\n};\n"],"names":["derived","derived$1"],"mappings":";;;;;;;;;;;;;;AAWA,MAAM,mBAAmB,GAAG,MAAM;AAClC,EAAE,IAAI,OAAO,YAAY,KAAK,WAAW,EAAE,OAAO,QAAQ;AAC1D,EAAE,MAAM,MAAM,GAAG,YAAY,CAAC,OAAO,CAAC,OAAO,C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CAAC,WAAW,EAAE;AACzB,QAAQ,OAAO,EAAE,YAAY;AAC7B,QAAQ,IAAI,OAAO,GAAG;AACtB,UAAU,OAAO,YAAY;AAC7B,QAAQ,CAAC;AACT,QAAQ,IAAI,OAAO,CAAC,OAAO,EAAE;AAC7B,UAAU,YAAY,GAAG,OAAO;AAChC,UAAU,SAAS,GAAG,KAAK;AAC3B,QAAQ;AACR,OAAO,CAAC;AACR,MAAM,WAAW,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC;AACjC,IAAI;AACJ,IAAI,GAAG;AACP,MAAM,SAAS,GAAG,IAAI;AACtB,MAAM,gBAAgB,GAAG,WAAW,CAAC,IAAI,EAAE;AAC3C,MAAM,cAAc,CAAC,gBAAgB,CAAC;AACtC,IAAI,CAAC,QAAQ,CAAC,SAAS;AACvB,IAAI,WAAW,CAAC,OAAO,CAAC,gBAAgB,CAAC;AACzC,IAAI,IAAI,YAAY,EAAE,kBAAkB,CAAC,YAAY,CAAC;AACtD,EAAE,CAAC,CAAC;AACJ;;;;"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { h as head } from './
|
|
2
|
-
import
|
|
3
|
-
import { T as Toast, C as ConfirmModal } from './Toast-
|
|
4
|
-
import { I as InputModal } from './InputModal-
|
|
5
|
-
import './index3-
|
|
6
|
-
import
|
|
7
|
-
import './exports-BXvEiaiv.js';
|
|
1
|
+
import { h as head, k as escape_html, m as derived } from './index2-B2Ld-FFX.js';
|
|
2
|
+
import './client-BtcIwznP.js';
|
|
3
|
+
import { T as Toast, C as ConfirmModal } from './Toast-C9b_dWm4.js';
|
|
4
|
+
import { I as InputModal } from './InputModal-1qJGryUa.js';
|
|
5
|
+
import './index3-DNyQGNm8.js';
|
|
6
|
+
import './root-B5iYE7yO.js';
|
|
8
7
|
import 'marked';
|
|
9
8
|
import 'fs';
|
|
10
9
|
import 'fs/promises';
|
|
@@ -38,20 +37,18 @@ function _page($$renderer, $$props) {
|
|
|
38
37
|
const closeInput = () => {
|
|
39
38
|
inputModal = { ...inputModal, show: false };
|
|
40
39
|
};
|
|
41
|
-
|
|
42
|
-
decodeURIComponent(page.params.id ?? "");
|
|
43
|
-
const displayTitle = "Untitled";
|
|
40
|
+
const displayTitle = derived(() => "Untitled");
|
|
44
41
|
let $$settled = true;
|
|
45
42
|
let $$inner_renderer;
|
|
46
43
|
function $$render_inner($$renderer3) {
|
|
47
44
|
head("ik3mmh", $$renderer3, ($$renderer4) => {
|
|
48
45
|
$$renderer4.title(($$renderer5) => {
|
|
49
|
-
$$renderer5.push(`<title>${escape_html(displayTitle)} - Claude Sessions</title>`);
|
|
46
|
+
$$renderer5.push(`<title>${escape_html(displayTitle())} - Claude Sessions</title>`);
|
|
50
47
|
});
|
|
51
48
|
});
|
|
52
49
|
$$renderer3.push(`<div class="h-screen bg-gh-bg">`);
|
|
53
50
|
{
|
|
54
|
-
$$renderer3.push("<!--[-->");
|
|
51
|
+
$$renderer3.push("<!--[0-->");
|
|
55
52
|
$$renderer3.push(`<div class="flex items-center justify-center h-full"><div class="text-gh-muted">Loading...</div></div>`);
|
|
56
53
|
}
|
|
57
54
|
$$renderer3.push(`<!--]--></div> `);
|
|
@@ -94,4 +91,4 @@ function _page($$renderer, $$props) {
|
|
|
94
91
|
}
|
|
95
92
|
|
|
96
93
|
export { _page as default };
|
|
97
|
-
//# sourceMappingURL=_page.svelte-
|
|
94
|
+
//# sourceMappingURL=_page.svelte-CVL9fjg-.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_page.svelte-CVL9fjg-.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/session/_project_/_id_/_page.svelte.js"],"sourcesContent":["import { h as head, e as escape_html, d as derived } from \"../../../../../chunks/index.js\";\nimport \"../../../../../chunks/client.js\";\nimport { T as Toast, C as ConfirmModal } from \"../../../../../chunks/Toast.js\";\nimport { I as InputModal } from \"../../../../../chunks/InputModal.js\";\nimport \"../../../../../chunks/index3.js\";\nfunction _page($$renderer, $$props) {\n $$renderer.component(($$renderer2) => {\n let toast = null;\n let confirmModal = {\n show: false,\n title: \"\",\n message: \"\",\n variant: \"default\",\n onConfirm: () => {\n }\n };\n let inputModal = {\n show: false,\n title: \"\",\n label: \"\",\n initialValue: \"\",\n onConfirm: () => {\n }\n };\n const closeConfirm = () => {\n confirmModal = { ...confirmModal, show: false };\n };\n const closeInput = () => {\n inputModal = { ...inputModal, show: false };\n };\n const displayTitle = derived(() => \"Untitled\");\n let $$settled = true;\n let $$inner_renderer;\n function $$render_inner($$renderer3) {\n head(\"ik3mmh\", $$renderer3, ($$renderer4) => {\n $$renderer4.title(($$renderer5) => {\n $$renderer5.push(`<title>${escape_html(displayTitle())} - Claude Sessions</title>`);\n });\n });\n $$renderer3.push(`<div class=\"h-screen bg-gh-bg\">`);\n {\n $$renderer3.push(\"<!--[0-->\");\n $$renderer3.push(`<div class=\"flex items-center justify-center h-full\"><div class=\"text-gh-muted\">Loading...</div></div>`);\n }\n $$renderer3.push(`<!--]--></div> `);\n Toast($$renderer3, {\n get message() {\n return toast;\n },\n set message($$value) {\n toast = $$value;\n $$settled = false;\n }\n });\n $$renderer3.push(`<!----> `);\n ConfirmModal($$renderer3, {\n show: confirmModal.show,\n title: confirmModal.title,\n message: confirmModal.message,\n variant: confirmModal.variant,\n onConfirm: confirmModal.onConfirm,\n onCancel: closeConfirm\n });\n $$renderer3.push(`<!----> `);\n InputModal($$renderer3, {\n show: inputModal.show,\n title: inputModal.title,\n label: inputModal.label,\n initialValue: inputModal.initialValue,\n onConfirm: inputModal.onConfirm,\n onCancel: closeInput\n });\n $$renderer3.push(`<!---->`);\n }\n do {\n $$settled = true;\n $$inner_renderer = $$renderer2.copy();\n $$render_inner($$inner_renderer);\n } while (!$$settled);\n $$renderer2.subsume($$inner_renderer);\n });\n}\nexport {\n _page as default\n};\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAKA,SAAS,KAAK,CAAC,UAAU,EAAE,OAAO,EAAE;AACpC,EAAE,U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