@claude-sessions/web 0.3.6 → 0.4.0
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.DYXbBCWs.css → 0.CdaICEam.css} +1 -1
- package/build/client/_app/immutable/assets/0.CdaICEam.css.br +0 -0
- package/build/client/_app/immutable/assets/0.CdaICEam.css.gz +0 -0
- package/build/client/_app/immutable/chunks/6qMZRyTA.js +90 -0
- package/build/client/_app/immutable/chunks/6qMZRyTA.js.br +0 -0
- package/build/client/_app/immutable/chunks/6qMZRyTA.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{fuY-CvTV.js → BezDCpdL.js} +1 -1
- package/build/client/_app/immutable/chunks/BezDCpdL.js.br +0 -0
- package/build/client/_app/immutable/chunks/{fuY-CvTV.js.gz → BezDCpdL.js.gz} +0 -0
- package/build/client/_app/immutable/chunks/{DcWNafsM.js → Ct7gnOMS.js} +1 -1
- package/build/client/_app/immutable/chunks/Ct7gnOMS.js.br +0 -0
- package/build/client/_app/immutable/chunks/Ct7gnOMS.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D36ll3tU.js +1 -0
- package/build/client/_app/immutable/chunks/D36ll3tU.js.br +0 -0
- package/build/client/_app/immutable/chunks/D36ll3tU.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DSHOiHEu.js +1 -0
- package/build/client/_app/immutable/chunks/DSHOiHEu.js.br +0 -0
- package/build/client/_app/immutable/chunks/DSHOiHEu.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DW1ZKM0I.js +2 -0
- package/build/client/_app/immutable/chunks/DW1ZKM0I.js.br +0 -0
- package/build/client/_app/immutable/chunks/DW1ZKM0I.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{pOdkXMWy.js → pIpqdOQZ.js} +1 -1
- package/build/client/_app/immutable/chunks/pIpqdOQZ.js.br +0 -0
- package/build/client/_app/immutable/chunks/pIpqdOQZ.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.B8IwrV9r.js +2 -0
- package/build/client/_app/immutable/entry/app.B8IwrV9r.js.br +0 -0
- package/build/client/_app/immutable/entry/app.B8IwrV9r.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.BWG5JAGE.js +1 -0
- package/build/client/_app/immutable/entry/start.BWG5JAGE.js.br +2 -0
- package/build/client/_app/immutable/entry/start.BWG5JAGE.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{0.DF486Jx8.js → 0.DErsC77t.js} +1 -1
- package/build/client/_app/immutable/nodes/0.DErsC77t.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.DErsC77t.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.CttaK5cr.js +1 -0
- package/build/client/_app/immutable/nodes/1.CttaK5cr.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.CttaK5cr.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.BoE8-2iz.js +4 -0
- package/build/client/_app/immutable/nodes/2.BoE8-2iz.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.BoE8-2iz.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{3.BTRmienV.js → 3.CNK57PCS.js} +1 -1
- package/build/client/_app/immutable/nodes/3.CNK57PCS.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.CNK57PCS.js.gz +0 -0
- package/build/client/_app/version.json +1 -1
- package/build/client/_app/version.json.br +0 -0
- package/build/client/_app/version.json.gz +0 -0
- package/build/server/chunks/0-BVOw-QLW.js +17 -0
- package/build/server/chunks/{0-C1tKSwb7.js.map → 0-BVOw-QLW.js.map} +1 -1
- package/build/server/chunks/{1-8QnOFtMX.js → 1-DcWoDxkF.js} +2 -2
- package/build/server/chunks/{1-8QnOFtMX.js.map → 1-DcWoDxkF.js.map} +1 -1
- package/build/server/chunks/2-CeDc2VGX.js +9 -0
- package/build/server/chunks/{2-BbS_vUwz.js.map → 2-CeDc2VGX.js.map} +1 -1
- package/build/server/chunks/3-CnCgC9Lk.js +9 -0
- package/build/server/chunks/{3-BVtnE6Kr.js.map → 3-CnCgC9Lk.js.map} +1 -1
- package/build/server/chunks/{Toast-D3sVLrlO.js → Toast-D4IwVuee.js} +2 -2
- package/build/server/chunks/{Toast-D3sVLrlO.js.map → Toast-D4IwVuee.js.map} +1 -1
- package/build/server/chunks/{_layout.svelte-KTC0oyHj.js → _layout.svelte-D8RsKs1I.js} +4 -3
- package/build/server/chunks/{_layout.svelte-KTC0oyHj.js.map → _layout.svelte-D8RsKs1I.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-D_xW6Yds.js → _page.svelte-CnzAaQ3o.js} +4 -3
- package/build/server/chunks/{_page.svelte-D_xW6Yds.js.map → _page.svelte-CnzAaQ3o.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-CvL830BO.js → _page.svelte-DLMeV_uH.js} +98 -23
- package/build/server/chunks/_page.svelte-DLMeV_uH.js.map +1 -0
- package/build/server/chunks/{_server.ts-borf0i-v.js → _server.ts-3KinOGG2.js} +3 -2
- package/build/server/chunks/{_server.ts-borf0i-v.js.map → _server.ts-3KinOGG2.js.map} +1 -1
- package/build/server/chunks/{_server.ts-DPo66JVf.js → _server.ts-B0L-omzE.js} +3 -2
- package/build/server/chunks/{_server.ts-DPo66JVf.js.map → _server.ts-B0L-omzE.js.map} +1 -1
- package/build/server/chunks/{_server.ts-CRd1MDnD.js → _server.ts-BDll_uG4.js} +3 -2
- package/build/server/chunks/{_server.ts-CRd1MDnD.js.map → _server.ts-BDll_uG4.js.map} +1 -1
- package/build/server/chunks/{_server.ts-CWnf2RCD.js → _server.ts-BI9MivzV.js} +3 -2
- package/build/server/chunks/{_server.ts-CWnf2RCD.js.map → _server.ts-BI9MivzV.js.map} +1 -1
- package/build/server/chunks/{_server.ts-BDKO_r0M.js → _server.ts-BUP1oLdG.js} +3 -2
- package/build/server/chunks/{_server.ts-BDKO_r0M.js.map → _server.ts-BUP1oLdG.js.map} +1 -1
- package/build/server/chunks/{_server.ts-CTER39j6.js → _server.ts-CFN6ekMg.js} +3 -2
- package/build/server/chunks/{_server.ts-CTER39j6.js.map → _server.ts-CFN6ekMg.js.map} +1 -1
- package/build/server/chunks/{_server.ts-DMzMXupq.js → _server.ts-C_J07ZgO.js} +3 -2
- package/build/server/chunks/{_server.ts-DMzMXupq.js.map → _server.ts-C_J07ZgO.js.map} +1 -1
- package/build/server/chunks/{_server.ts-BDdOrUm-.js → _server.ts-Chx6z8Ha.js} +3 -2
- package/build/server/chunks/{_server.ts-BDdOrUm-.js.map → _server.ts-Chx6z8Ha.js.map} +1 -1
- package/build/server/chunks/{_server.ts-BFsqNiXS.js → _server.ts-CijK2VGG.js} +3 -2
- package/build/server/chunks/_server.ts-CijK2VGG.js.map +1 -0
- package/build/server/chunks/{_server.ts-po4mdWWb.js → _server.ts-Csnu3HvS.js} +7 -3
- package/build/server/chunks/_server.ts-Csnu3HvS.js.map +1 -0
- package/build/server/chunks/{_server.ts-DgD-RBYB.js → _server.ts-DS4LtLJR.js} +3 -2
- package/build/server/chunks/_server.ts-DS4LtLJR.js.map +1 -0
- package/build/server/chunks/{_server.ts-C_H4jlVN.js → _server.ts-DrDTz9tO.js} +3 -2
- package/build/server/chunks/{_server.ts-C_H4jlVN.js.map → _server.ts-DrDTz9tO.js.map} +1 -1
- package/build/server/chunks/{_server.ts-CXZmher3.js → _server.ts-Qm-5UM6l.js} +3 -2
- package/build/server/chunks/{_server.ts-CXZmher3.js.map → _server.ts-Qm-5UM6l.js.map} +1 -1
- package/build/server/chunks/{_server.ts-DRZvwFlM.js → _server.ts-WMEN7B0K.js} +3 -2
- package/build/server/chunks/{_server.ts-DRZvwFlM.js.map → _server.ts-WMEN7B0K.js.map} +1 -1
- package/build/server/chunks/{_server.ts-B5D9rUXb.js → _server.ts-u9CxsloP.js} +4 -3
- package/build/server/chunks/_server.ts-u9CxsloP.js.map +1 -0
- package/build/server/chunks/{index3-DdYd59t8.js → index3-BOWsMtX4.js} +564 -401
- package/build/server/chunks/index3-BOWsMtX4.js.map +1 -0
- package/build/server/index.js +1 -1
- package/build/server/index.js.map +1 -1
- package/build/server/manifest.js +20 -20
- package/build/server/manifest.js.map +1 -1
- package/package.json +2 -2
- package/build/client/_app/immutable/assets/0.DYXbBCWs.css.br +0 -0
- package/build/client/_app/immutable/assets/0.DYXbBCWs.css.gz +0 -0
- package/build/client/_app/immutable/chunks/3YQG9eo5.js +0 -1
- package/build/client/_app/immutable/chunks/3YQG9eo5.js.br +0 -0
- package/build/client/_app/immutable/chunks/3YQG9eo5.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C68Ru4Jq.js +0 -90
- package/build/client/_app/immutable/chunks/C68Ru4Jq.js.br +0 -0
- package/build/client/_app/immutable/chunks/C68Ru4Jq.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DcWNafsM.js.br +0 -0
- package/build/client/_app/immutable/chunks/DcWNafsM.js.gz +0 -0
- package/build/client/_app/immutable/chunks/HaThayHP.js +0 -1
- package/build/client/_app/immutable/chunks/HaThayHP.js.br +0 -0
- package/build/client/_app/immutable/chunks/HaThayHP.js.gz +0 -0
- package/build/client/_app/immutable/chunks/fuY-CvTV.js.br +0 -0
- package/build/client/_app/immutable/chunks/nUq5tIUU.js +0 -2
- package/build/client/_app/immutable/chunks/nUq5tIUU.js.br +0 -0
- package/build/client/_app/immutable/chunks/nUq5tIUU.js.gz +0 -0
- package/build/client/_app/immutable/chunks/pOdkXMWy.js.br +0 -0
- package/build/client/_app/immutable/chunks/pOdkXMWy.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.DkWXveC0.js +0 -2
- package/build/client/_app/immutable/entry/app.DkWXveC0.js.br +0 -0
- package/build/client/_app/immutable/entry/app.DkWXveC0.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.BV9cT3WI.js +0 -1
- package/build/client/_app/immutable/entry/start.BV9cT3WI.js.br +0 -2
- package/build/client/_app/immutable/entry/start.BV9cT3WI.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.DF486Jx8.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.DF486Jx8.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.Xhn6lFbI.js +0 -1
- package/build/client/_app/immutable/nodes/1.Xhn6lFbI.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.Xhn6lFbI.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.MZuWFdHT.js +0 -4
- package/build/client/_app/immutable/nodes/2.MZuWFdHT.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.MZuWFdHT.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.BTRmienV.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.BTRmienV.js.gz +0 -0
- package/build/server/chunks/0-C1tKSwb7.js +0 -17
- package/build/server/chunks/2-BbS_vUwz.js +0 -9
- package/build/server/chunks/3-BVtnE6Kr.js +0 -9
- package/build/server/chunks/_page.svelte-CvL830BO.js.map +0 -1
- package/build/server/chunks/_server.ts-B5D9rUXb.js.map +0 -1
- package/build/server/chunks/_server.ts-BFsqNiXS.js.map +0 -1
- package/build/server/chunks/_server.ts-DgD-RBYB.js.map +0 -1
- package/build/server/chunks/_server.ts-po4mdWWb.js.map +0 -1
- package/build/server/chunks/index3-DdYd59t8.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { b as attr_class, s as stringify, j as bind_props } from './index2-Da0doXJY.js';
|
|
2
2
|
import { Y as escape_html, a2 as ssr_context, X as writable, a3 as get, a4 as derived } from './index-DzYX9r1_.js';
|
|
3
3
|
import { marked } from 'marked';
|
|
4
|
-
import { v as maskHomePath$1 } from './index3-
|
|
4
|
+
import { v as maskHomePath$1 } from './index3-BOWsMtX4.js';
|
|
5
5
|
|
|
6
6
|
function onDestroy(fn) {
|
|
7
7
|
/** @type {SSRContext} */
|
|
@@ -77,4 +77,4 @@ function Toast($$renderer, $$props) {
|
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
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-
|
|
80
|
+
//# sourceMappingURL=Toast-D4IwVuee.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toast-
|
|
1
|
+
{"version":3,"file":"Toast-D4IwVuee.js","sources":["../../../.svelte-kit/adapter-node/chunks/Toast.js"],"sourcesContent":["import { b as attr_class, s as stringify, j as bind_props } from \"./index2.js\";\nimport { $ as ssr_context, V as escape_html } from \"./context.js\";\nimport { marked } from \"marked\";\nimport { d as derived, w as writable, g as get } from \"./index.js\";\nimport { v 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(\"<!--[-->\");\n $$renderer2.push(`<div class=\"fixed inset-0 bg-black/50 flex items-center justify-center z-50\" role=\"dialog\" aria-modal=\"true\"><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(\"<!--[!-->\");\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(\"<!--[-->\");\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(\"<!--[!-->\");\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":";;;;;AAKA,SAAS,SAAS,CAAC,EAAE,EAAE;AACvB;AACA,EAAE,WAAW,CAAC,CAAC,CAAC,UAAU,CAAC,EAAE,CAAC;AAC9B;AACK,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AACN,IAAI,IAAI,OAAO,EAAE;AACjB,MAAM,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC;AAClC,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,WAAW,CAAC;AACnC,IAAI;AACJ,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC;AAChC,IAAI,UAAU,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,CAAC;AACpC,EAAE,CAAC,CAAC;AACJ;;;;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { h as head, a as attr, b as attr_class, s as stringify } from './index2-Da0doXJY.js';
|
|
2
2
|
import './exports-BXvEiaiv.js';
|
|
3
3
|
import { p as page } from './index4-BUZEWk-I.js';
|
|
4
|
-
import { C as ConfirmModal, T as Toast } from './Toast-
|
|
5
|
-
import './index3-
|
|
4
|
+
import { C as ConfirmModal, T as Toast } from './Toast-D4IwVuee.js';
|
|
5
|
+
import './index3-BOWsMtX4.js';
|
|
6
6
|
import { Y as escape_html } from './index-DzYX9r1_.js';
|
|
7
7
|
import 'marked';
|
|
8
8
|
import 'fs';
|
|
@@ -10,6 +10,7 @@ import 'os';
|
|
|
10
10
|
import 'path';
|
|
11
11
|
import 'effect';
|
|
12
12
|
import 'fs/promises';
|
|
13
|
+
import 'crypto';
|
|
13
14
|
|
|
14
15
|
function _layout($$renderer, $$props) {
|
|
15
16
|
$$renderer.component(($$renderer2) => {
|
|
@@ -102,4 +103,4 @@ function _layout($$renderer, $$props) {
|
|
|
102
103
|
}
|
|
103
104
|
|
|
104
105
|
export { _layout as default };
|
|
105
|
-
//# sourceMappingURL=_layout.svelte-
|
|
106
|
+
//# sourceMappingURL=_layout.svelte-D8RsKs1I.js.map
|
package/build/server/chunks/{_layout.svelte-KTC0oyHj.js.map → _layout.svelte-D8RsKs1I.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_layout.svelte-
|
|
1
|
+
{"version":3,"file":"_layout.svelte-D8RsKs1I.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/_layout.svelte.js"],"sourcesContent":["import { h as head, a as attr, b as attr_class, s as stringify } from \"../../chunks/index2.js\";\nimport \"@sveltejs/kit/internal\";\nimport \"../../chunks/exports.js\";\nimport \"../../chunks/utils.js\";\nimport \"@sveltejs/kit/internal/server\";\nimport { p as page } from \"../../chunks/index4.js\";\nimport { C as ConfirmModal, T as Toast } from \"../../chunks/Toast.js\";\nimport \"../../chunks/index3.js\";\nimport { V as escape_html } from \"../../chunks/context.js\";\nfunction _layout($$renderer, $$props) {\n $$renderer.component(($$renderer2) => {\n let { children } = $$props;\n const isSessionPage = page.url.pathname.startsWith(\"/session/\");\n const currentSessionInfo = (() => {\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(\"<!--[!-->\");\n }\n $$renderer3.push(`<!--]--></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(\"<!--[!-->\");\n }\n $$renderer3.push(`<!--]--> `);\n {\n $$renderer3.push(\"<!--[!-->\");\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(\"<!--[!-->\");\n }\n $$renderer3.push(`<!--]--> `);\n {\n $$renderer3.push(\"<!--[!-->\");\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 });\n}\nexport {\n _layout as default\n};\n"],"names":[],"mappings":";;;;;;;;;;;;;;AASA,SAAS,OAAO,CAAC,UAAU,EAAE,OAAO,EAAE;AACtC,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,WAAW,KAAK;AACxC,IAAI,IAAI,EAAE,QAAQ,EAAE,GAAG,OAAO;AAC9B,IAAI,MAAM,aAAa,GAAG,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,UAAU,CAAC,WAAW,CAAC;AACnE,IAAI,MAAM,kBAAkB,GAAG,CAAC,MAAM;AACtC,MAAM,IAAI,CAAC,aAAa,EAAE,OAAO,IAAI;AACrC,MAAM,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,KAAK,CAAC,8BAA8B,CAAC;AAC3E,MAAM,IAAI,CAAC,KAAK,EAAE,OAAO,IAAI;AAC7B,MAAM,OAAO;AACb,QAAQ,WAAW,EAAE,kBAAkB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AACjD,QAAQ,SAAS,EAAE,kBAAkB,CAAC,KAAK,CAAC,CAAC,CAAC;AAC9C,OAAO;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K;AACjC,QAAQ,OAAO,EAAE,YAAY,CAAC,OAAO;AACrC,QAAQ,OAAO,EAAE,YAAY,CAAC,OAAO;AACrC,QAAQ,SAAS,EAAE,YAAY,CAAC,SAAS;AACzC,QAAQ,QAAQ,EAAE;AAClB,OAAO,CAAC;AACR,MAAM,WAAW,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC;AAClC,MAAM,KAAK,CAAC,WAAW,EAAE;AACzB,QAAQ,OAAO,EAAE,YAAY;AAC7B,QAAQ,IAAI,OAAO,GAAG;AACtB,UAAU,OAAO,YAAY;AAC7B,QAAQ,CAAC;AACT,QAAQ,IAAI,OAAO,CAAC,OAAO,EAAE;AAC7B,UAAU,YAAY,GAAG,OAAO;AAChC,UAAU,SAAS,GAAG,KAAK;AAC3B,QAAQ;AACR,OAAO,CAAC;AACR,MAAM,WAAW,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC;AACjC,IAAI;AACJ,IAAI,GAAG;AACP,MAAM,SAAS,GAAG,IAAI;AACtB,MAAM,gBAAgB,GAAG,WAAW,CAAC,IAAI,EAAE;AAC3C,MAAM,cAAc,CAAC,gBAAgB,CAAC;AACtC,IAAI,CAAC,QAAQ,CAAC,SAAS;AACvB,IAAI,WAAW,CAAC,OAAO,CAAC,gBAAgB,CAAC;AACzC,EAAE,CAAC,CAAC;AACJ;;;;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { h as head } from './index2-Da0doXJY.js';
|
|
2
2
|
import { p as page } from './index4-BUZEWk-I.js';
|
|
3
|
-
import { T as Toast, C as ConfirmModal } from './Toast-
|
|
3
|
+
import { T as Toast, C as ConfirmModal } from './Toast-D4IwVuee.js';
|
|
4
4
|
import { I as InputModal } from './InputModal-XaplAR5y.js';
|
|
5
|
-
import './index3-
|
|
5
|
+
import './index3-BOWsMtX4.js';
|
|
6
6
|
import { Y as escape_html } from './index-DzYX9r1_.js';
|
|
7
7
|
import './exports-BXvEiaiv.js';
|
|
8
8
|
import 'marked';
|
|
@@ -11,6 +11,7 @@ import 'os';
|
|
|
11
11
|
import 'path';
|
|
12
12
|
import 'effect';
|
|
13
13
|
import 'fs/promises';
|
|
14
|
+
import 'crypto';
|
|
14
15
|
|
|
15
16
|
function _page($$renderer, $$props) {
|
|
16
17
|
$$renderer.component(($$renderer2) => {
|
|
@@ -93,4 +94,4 @@ function _page($$renderer, $$props) {
|
|
|
93
94
|
}
|
|
94
95
|
|
|
95
96
|
export { _page as default };
|
|
96
|
-
//# sourceMappingURL=_page.svelte-
|
|
97
|
+
//# sourceMappingURL=_page.svelte-CnzAaQ3o.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_page.svelte-
|
|
1
|
+
{"version":3,"file":"_page.svelte-CnzAaQ3o.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/session/_project_/_id_/_page.svelte.js"],"sourcesContent":["import { h as head } from \"../../../../../chunks/index2.js\";\nimport { p as page } from \"../../../../../chunks/index4.js\";\nimport { T as Toast, C as ConfirmModal } from \"../../../../../chunks/Toast.js\";\nimport { I as InputModal } from \"../../../../../chunks/InputModal.js\";\nimport \"../../../../../chunks/index3.js\";\nimport { V as escape_html } from \"../../../../../chunks/context.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 decodeURIComponent(page.params.project ?? \"\");\n decodeURIComponent(page.params.id ?? \"\");\n const displayTitle = \"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(\"<!--[-->\");\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":";;;;;;;;;;;;;;;AAMA,SAAS,KAAK,CAAC,UAAU,EAAE,OAAO,EAAE;AACpC,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,WAAW,KAAK;AACxC,IAAI,IAAI,KAAK,GAAG,IAAI;AACpB,IAAI,IAAI,YAAY,GAAG;AACvB,MAAM,IAAI,EAAE,KAAK;AACjB,MAAM,KAAK,EAAE,EAAE;AACf,MAAM,OAAO,EAAE,EAAE;AACjB,MAAM,OAAO,EAAE,SAAS;AACxB,MAAM,SAAS,EAAE,MAAM;AACvB,MAAM;AACN,KAAK;AACL,IAAI,IAAI,UAAU,GAAG;AACrB,MAAM,IAAI,EAAE,KAAK;AACjB,MAAM,KAAK,EAAE,EAAE;AACf,MAAM,KAAK,EAAE,EAAE;AACf,MAAM,Y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,15 @@
|
|
|
1
1
|
import { Y as escape_html, Z as is_array, _ as get_prototype_of, $ as object_prototype } from './index-DzYX9r1_.js';
|
|
2
|
-
import { T as Toast, C as ConfirmModal, f as formatProjectName, a as appConfig, t as truncate, b as formatDate, m as maskHomePath } from './Toast-
|
|
2
|
+
import { T as Toast, C as ConfirmModal, f as formatProjectName, a as appConfig, t as truncate, b as formatDate, m as maskHomePath } from './Toast-D4IwVuee.js';
|
|
3
3
|
import { I as InputModal } from './InputModal-XaplAR5y.js';
|
|
4
|
-
import { c as store_get, e as ensure_array_like,
|
|
5
|
-
import { t as sortProjects, u as getDisplayTitle } from './index3-
|
|
4
|
+
import { c as store_get, e as ensure_array_like, a as attr, b as attr_class, s as stringify, u as unsubscribe_stores, d as attributes, f as await_block, g as clsx } from './index2-Da0doXJY.js';
|
|
5
|
+
import { t as sortProjects, u as getDisplayTitle } from './index3-BOWsMtX4.js';
|
|
6
6
|
import 'marked';
|
|
7
7
|
import 'fs';
|
|
8
8
|
import 'os';
|
|
9
9
|
import 'path';
|
|
10
10
|
import 'effect';
|
|
11
11
|
import 'fs/promises';
|
|
12
|
+
import 'crypto';
|
|
12
13
|
|
|
13
14
|
const empty = [];
|
|
14
15
|
function snapshot(value, skip_warning = false, no_tojson = false) {
|
|
@@ -149,7 +150,12 @@ const checkFileExists = async (filePath) => {
|
|
|
149
150
|
return false;
|
|
150
151
|
}
|
|
151
152
|
};
|
|
152
|
-
const expandProject = (projectName) =>
|
|
153
|
+
const expandProject = (projectName, sortOptions) => {
|
|
154
|
+
const params = new URLSearchParams({ project: projectName });
|
|
155
|
+
if (sortOptions?.field) params.set("sortField", sortOptions.field);
|
|
156
|
+
if (sortOptions?.order) params.set("sortOrder", sortOptions.order);
|
|
157
|
+
return get(`/project/expand?${params.toString()}`);
|
|
158
|
+
};
|
|
153
159
|
const resumeSession = (projectName, sessionId) => post("/session/resume", { projectName, sessionId });
|
|
154
160
|
const maskHomePaths = (text) => {
|
|
155
161
|
return maskHomePath(text);
|
|
@@ -721,10 +727,25 @@ function ProjectTree($$renderer, $$props) {
|
|
|
721
727
|
expandedProjects,
|
|
722
728
|
selectedSession,
|
|
723
729
|
loadingProject,
|
|
730
|
+
sortField,
|
|
731
|
+
sortOrder,
|
|
724
732
|
onRenameSession,
|
|
725
733
|
onDeleteSession,
|
|
726
|
-
onResumeSession
|
|
734
|
+
onResumeSession,
|
|
735
|
+
onSortChange
|
|
727
736
|
} = $$props;
|
|
737
|
+
const sortFieldLabels = {
|
|
738
|
+
summary: "Summary Time",
|
|
739
|
+
modified: "Modified",
|
|
740
|
+
created: "Created",
|
|
741
|
+
updated: "Last Message",
|
|
742
|
+
messageCount: "Messages",
|
|
743
|
+
title: "Title"
|
|
744
|
+
};
|
|
745
|
+
const handleSortFieldChange = (e) => {
|
|
746
|
+
const target = e.target;
|
|
747
|
+
onSortChange?.(target.value, sortOrder);
|
|
748
|
+
};
|
|
728
749
|
const getSessionData = (projectName, sessionId) => {
|
|
729
750
|
return projectSessionData.get(projectName)?.get(sessionId);
|
|
730
751
|
};
|
|
@@ -767,10 +788,29 @@ function ProjectTree($$renderer, $$props) {
|
|
|
767
788
|
let expandedSessions = selectedSession ? /* @__PURE__ */ new Set([selectedSession.id]) : /* @__PURE__ */ new Set();
|
|
768
789
|
let draggedSession = null;
|
|
769
790
|
let dropTargetProject = null;
|
|
770
|
-
$$renderer2.push(`<aside class="bg-gh-bg-secondary border border-gh-border rounded-lg overflow-hidden flex flex-col"><
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
791
|
+
$$renderer2.push(`<aside class="bg-gh-bg-secondary border border-gh-border rounded-lg overflow-hidden flex flex-col"><div class="p-4 border-b border-gh-border bg-gh-bg"><h2 class="text-base font-semibold mb-2">Projects (${escape_html(sortedProjects.length)})</h2> <div class="flex items-center gap-2 text-sm"><span class="text-gh-text-secondary">Sort:</span> `);
|
|
792
|
+
$$renderer2.select(
|
|
793
|
+
{
|
|
794
|
+
class: "bg-gh-bg-secondary border border-gh-border rounded px-2 py-1 text-sm text-gh-text cursor-pointer hover:border-gh-accent focus:border-gh-accent focus:outline-none",
|
|
795
|
+
value: sortField,
|
|
796
|
+
onchange: handleSortFieldChange
|
|
797
|
+
},
|
|
798
|
+
($$renderer3) => {
|
|
799
|
+
$$renderer3.push(`<!--[-->`);
|
|
800
|
+
const each_array = ensure_array_like(Object.entries(sortFieldLabels));
|
|
801
|
+
for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
|
|
802
|
+
let [value, label] = each_array[$$index];
|
|
803
|
+
$$renderer3.option({ value }, ($$renderer4) => {
|
|
804
|
+
$$renderer4.push(`${escape_html(label)}`);
|
|
805
|
+
});
|
|
806
|
+
}
|
|
807
|
+
$$renderer3.push(`<!--]-->`);
|
|
808
|
+
}
|
|
809
|
+
);
|
|
810
|
+
$$renderer2.push(` <button class="bg-gh-bg-secondary border border-gh-border rounded px-2 py-1 text-sm cursor-pointer hover:border-gh-accent hover:bg-gh-border-subtle"${attr("title", sortOrder === "desc" ? "Descending (newest first)" : "Ascending (oldest first)")}>${escape_html(sortOrder === "desc" ? "↓" : "↑")}</button></div></div> <ul class="overflow-y-auto flex-1"><!--[-->`);
|
|
811
|
+
const each_array_1 = ensure_array_like(sortedProjects);
|
|
812
|
+
for (let $$index_5 = 0, $$length = each_array_1.length; $$index_5 < $$length; $$index_5++) {
|
|
813
|
+
let project = each_array_1[$$index_5];
|
|
774
814
|
const isDropTarget = dropTargetProject === project.name;
|
|
775
815
|
$$renderer2.push(`<li class="border-b border-gh-border-subtle"><button${attr_class(`w-full py-3 px-4 bg-transparent border-none text-gh-text cursor-pointer text-left flex items-center gap-2 font-medium hover:bg-gh-border-subtle ${stringify(expandedProjects.has(project.name) ? "bg-gh-accent/10" : "")} ${stringify(isDropTarget ? "bg-gh-green/20 ring-2 ring-gh-green ring-inset" : "")}`)}><span class="text-xs w-3 text-gh-text-secondary">${escape_html(expandedProjects.has(project.name) ? "▼" : "▶")}</span> <span class="flex-1 overflow-hidden text-ellipsis whitespace-nowrap"${attr("title", project.displayName)}>${escape_html(formatProjectName(project.displayName))}</span> <span class="bg-gh-border px-2 py-0.5 rounded-full text-xs font-normal">${escape_html(project.sessionCount)}</span></button> `);
|
|
776
816
|
if (expandedProjects.has(project.name)) {
|
|
@@ -782,9 +822,9 @@ function ProjectTree($$renderer, $$props) {
|
|
|
782
822
|
} else {
|
|
783
823
|
$$renderer2.push("<!--[!-->");
|
|
784
824
|
$$renderer2.push(`<!--[-->`);
|
|
785
|
-
const
|
|
786
|
-
for (let $$
|
|
787
|
-
let session =
|
|
825
|
+
const each_array_2 = ensure_array_like(projectSessions.get(project.name) ?? []);
|
|
826
|
+
for (let $$index_4 = 0, $$length2 = each_array_2.length; $$index_4 < $$length2; $$index_4++) {
|
|
827
|
+
let session = each_array_2[$$index_4];
|
|
788
828
|
const isSelected = selectedSession?.id === session.id;
|
|
789
829
|
const isDragging = draggedSession?.id === session.id;
|
|
790
830
|
const sessionInfo = getSessionInfo(session);
|
|
@@ -866,9 +906,9 @@ function ProjectTree($$renderer, $$props) {
|
|
|
866
906
|
if (data?.summaries && data.summaries.length > 0) {
|
|
867
907
|
$$renderer2.push("<!--[-->");
|
|
868
908
|
$$renderer2.push(`<!--[-->`);
|
|
869
|
-
const
|
|
870
|
-
for (let idx = 0, $$length3 =
|
|
871
|
-
let summary =
|
|
909
|
+
const each_array_3 = ensure_array_like(data.summaries);
|
|
910
|
+
for (let idx = 0, $$length3 = each_array_3.length; idx < $$length3; idx++) {
|
|
911
|
+
let summary = each_array_3[idx];
|
|
872
912
|
$$renderer2.push(`<li${attr_class(`py-1.5 px-4 pl-8 hover:bg-gh-border-subtle/50 flex flex-col gap-0.5 ${stringify(idx === 0 ? "text-gh-text" : "text-gh-text-secondary")}`)}${attr("title", summary.summary)}><div class="flex items-start gap-2"><span class="flex-shrink-0">📝</span> <span class="overflow-hidden text-ellipsis line-clamp-2">${escape_html(summary.summary.length > 100 ? summary.summary.slice(0, 97) + "..." : summary.summary)}</span></div> `);
|
|
873
913
|
if (summary.timestamp) {
|
|
874
914
|
$$renderer2.push("<!--[-->");
|
|
@@ -893,9 +933,9 @@ function ProjectTree($$renderer, $$props) {
|
|
|
893
933
|
if (data?.todos?.agentTodos) {
|
|
894
934
|
$$renderer2.push("<!--[-->");
|
|
895
935
|
$$renderer2.push(`<!--[-->`);
|
|
896
|
-
const
|
|
897
|
-
for (let $$
|
|
898
|
-
let agentTodo =
|
|
936
|
+
const each_array_4 = ensure_array_like(data.todos.agentTodos);
|
|
937
|
+
for (let $$index_2 = 0, $$length3 = each_array_4.length; $$index_2 < $$length3; $$index_2++) {
|
|
938
|
+
let agentTodo = each_array_4[$$index_2];
|
|
899
939
|
$$renderer2.push(`<li class="py-1.5 px-4 pl-8 text-gh-text-secondary hover:bg-gh-border-subtle/50 flex items-start gap-2"><span class="flex-shrink-0">📋</span> <span>Agent Todos (${escape_html(agentTodo.todos.length)})</span></li>`);
|
|
900
940
|
}
|
|
901
941
|
$$renderer2.push(`<!--]-->`);
|
|
@@ -906,9 +946,9 @@ function ProjectTree($$renderer, $$props) {
|
|
|
906
946
|
if (data?.agents && data.agents.length > 0) {
|
|
907
947
|
$$renderer2.push("<!--[-->");
|
|
908
948
|
$$renderer2.push(`<!--[-->`);
|
|
909
|
-
const
|
|
910
|
-
for (let $$
|
|
911
|
-
let agent =
|
|
949
|
+
const each_array_5 = ensure_array_like(data.agents);
|
|
950
|
+
for (let $$index_3 = 0, $$length3 = each_array_5.length; $$index_3 < $$length3; $$index_3++) {
|
|
951
|
+
let agent = each_array_5[$$index_3];
|
|
912
952
|
$$renderer2.push(`<li class="py-1.5 px-4 pl-8 text-gh-text-secondary hover:bg-gh-border-subtle/50 flex items-start gap-2"${attr("title", agent.name ?? agent.id)}><span class="flex-shrink-0">🤖</span> <span class="overflow-hidden text-ellipsis whitespace-nowrap">${escape_html(agent.name ?? agent.id.slice(0, 12) + "...")} (${escape_html(agent.messageCount)} msgs)</span></li>`);
|
|
913
953
|
}
|
|
914
954
|
$$renderer2.push(`<!--]-->`);
|
|
@@ -1110,6 +1150,8 @@ function _page($$renderer, $$props) {
|
|
|
1110
1150
|
let loadingProject = null;
|
|
1111
1151
|
let error = null;
|
|
1112
1152
|
let toast = null;
|
|
1153
|
+
let sortField = "summary";
|
|
1154
|
+
let sortOrder = "desc";
|
|
1113
1155
|
let confirmModal = {
|
|
1114
1156
|
show: false,
|
|
1115
1157
|
title: "",
|
|
@@ -1291,6 +1333,36 @@ Old messages (${oldMessagesCount}) will be moved to a new session.`, async () =>
|
|
|
1291
1333
|
error = String(e2);
|
|
1292
1334
|
}
|
|
1293
1335
|
};
|
|
1336
|
+
const handleSortChange = async (field, order) => {
|
|
1337
|
+
sortField = field;
|
|
1338
|
+
sortOrder = order;
|
|
1339
|
+
for (const projectName of expandedProjects) {
|
|
1340
|
+
loadingProject = projectName;
|
|
1341
|
+
try {
|
|
1342
|
+
const sessionDataList = await expandProject(projectName, { field, order });
|
|
1343
|
+
const sessions = [];
|
|
1344
|
+
const dataMap = /* @__PURE__ */ new Map();
|
|
1345
|
+
for (const data of sessionDataList) {
|
|
1346
|
+
sessions.push({
|
|
1347
|
+
id: data.id,
|
|
1348
|
+
projectName,
|
|
1349
|
+
title: data.title,
|
|
1350
|
+
messageCount: data.messageCount,
|
|
1351
|
+
createdAt: data.createdAt,
|
|
1352
|
+
updatedAt: data.updatedAt
|
|
1353
|
+
});
|
|
1354
|
+
dataMap.set(data.id, data);
|
|
1355
|
+
}
|
|
1356
|
+
projectSessions.set(projectName, sessions);
|
|
1357
|
+
projectSessionData.set(projectName, dataMap);
|
|
1358
|
+
} catch (e) {
|
|
1359
|
+
error = String(e);
|
|
1360
|
+
}
|
|
1361
|
+
}
|
|
1362
|
+
projectSessions = new Map(projectSessions);
|
|
1363
|
+
projectSessionData = new Map(projectSessionData);
|
|
1364
|
+
loadingProject = null;
|
|
1365
|
+
};
|
|
1294
1366
|
let $$settled = true;
|
|
1295
1367
|
let $$inner_renderer;
|
|
1296
1368
|
function $$render_inner($$renderer3) {
|
|
@@ -1302,9 +1374,12 @@ Old messages (${oldMessagesCount}) will be moved to a new session.`, async () =>
|
|
|
1302
1374
|
expandedProjects,
|
|
1303
1375
|
selectedSession,
|
|
1304
1376
|
loadingProject,
|
|
1377
|
+
sortField,
|
|
1378
|
+
sortOrder,
|
|
1305
1379
|
onRenameSession: handleRenameSession,
|
|
1306
1380
|
onDeleteSession: handleDeleteSession,
|
|
1307
|
-
onResumeSession: handleResumeSession
|
|
1381
|
+
onResumeSession: handleResumeSession,
|
|
1382
|
+
onSortChange: handleSortChange
|
|
1308
1383
|
});
|
|
1309
1384
|
$$renderer3.push(`<!----> `);
|
|
1310
1385
|
SessionViewer($$renderer3, {
|
|
@@ -1373,4 +1448,4 @@ Old messages (${oldMessagesCount}) will be moved to a new session.`, async () =>
|
|
|
1373
1448
|
}
|
|
1374
1449
|
|
|
1375
1450
|
export { _page as default };
|
|
1376
|
-
//# sourceMappingURL=_page.svelte-
|
|
1451
|
+
//# sourceMappingURL=_page.svelte-DLMeV_uH.js.map
|