@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_server.ts-CijK2VGG.js","sources":["../../../.svelte-kit/adapter-node/entries/endpoints/api/message/_server.ts.js"],"sourcesContent":["import { error, json } from \"@sveltejs/kit\";\nimport { Effect } from \"effect\";\nimport { g as getSessionsDir, r as restoreMessage, d as deleteMessage } from \"../../../../chunks/index3.js\";\nimport * as fs from \"node:fs/promises\";\nimport * as path from \"node:path\";\nconst updateCustomTitle = (projectName, sessionId, messageUuid, newTitle) => Effect.gen(function* () {\n const filePath = path.join(getSessionsDir(), projectName, `${sessionId}.jsonl`);\n const content = yield* Effect.tryPromise(() => fs.readFile(filePath, \"utf-8\"));\n const lines = content.trim().split(\"\\n\").filter(Boolean);\n const messages = lines.map((line) => JSON.parse(line));\n const targetIndex = messages.findIndex((m) => m.uuid === messageUuid);\n if (targetIndex === -1) {\n return { success: false, error: \"Message not found\" };\n }\n const msg = messages[targetIndex];\n if (msg.type !== \"custom-title\") {\n return { success: false, error: \"Message is not a custom-title type\" };\n }\n msg.customTitle = newTitle;\n const newContent = messages.map((m) => JSON.stringify(m)).join(\"\\n\") + \"\\n\";\n yield* Effect.tryPromise(() => fs.writeFile(filePath, newContent, \"utf-8\"));\n return { success: true };\n});\nconst POST = async ({ url, request }) => {\n const projectName = url.searchParams.get(\"project\");\n const sessionId = url.searchParams.get(\"session\");\n if (!projectName || !sessionId) {\n throw error(400, \"project and session parameters required\");\n }\n const body = await request.json();\n const { message, index } = body;\n if (!message || typeof index !== \"number\") {\n throw error(400, \"message and index are required\");\n }\n const result = await Effect.runPromise(\n restoreMessage(projectName, sessionId, message, index)\n );\n return json(result);\n};\nconst DELETE = async ({ url }) => {\n const projectName = url.searchParams.get(\"project\");\n const sessionId = url.searchParams.get(\"session\");\n const messageUuid = url.searchParams.get(\"uuid\");\n if (!projectName || !sessionId || !messageUuid) {\n throw error(400, \"project, session, and uuid parameters required\");\n }\n const result = await Effect.runPromise(deleteMessage(projectName, sessionId, messageUuid));\n return json(result);\n};\nconst PATCH = async ({ url, request }) => {\n const projectName = url.searchParams.get(\"project\");\n const sessionId = url.searchParams.get(\"session\");\n const messageUuid = url.searchParams.get(\"uuid\");\n if (!projectName || !sessionId || !messageUuid) {\n throw error(400, \"project, session, and uuid parameters required\");\n }\n const body = await request.json();\n const { customTitle } = body;\n if (!customTitle) {\n throw error(400, \"customTitle is required\");\n }\n const result = await Effect.runPromise(\n updateCustomTitle(projectName, sessionId, messageUuid, customTitle)\n );\n return json(result);\n};\nexport {\n DELETE,\n PATCH,\n POST\n};\n"],"names":[],"mappings":";;;;;;;;;;;AAKA,MAAM,iBAAiB,GAAG,CAAC,WAAW,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,KAAK,MAAM,CAAC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ClD,IAAI,MAAM,KAAK,CAAC,GAAG,EAAE,gDAAgD,CAAC;AACtE,EAAE;AACF,EAAE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,aAAa,CAAC,WAAW,EAAE,SAAS,EAAE,WAAW,CAAC,CAAC;AAC5F,EAAE,OAAO,IAAI,CAAC,MAAM,CAAC;AACrB;AACK,MAAC,KAAK,GAAG,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,KAAK;AAC1C,EAAE,MAAM,WAAW,GAAG,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,SAAS,CAAC;AACrD,EAAE,MAAM,SAAS,GAAG,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,SAAS,CAAC;AACnD,EAAE,MAAM,WAAW,GAAG,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,MAAM,CAAC;AAClD,EAAE,IAAI,CAAC,WAAW,IAAI,CAAC,SAAS,IAAI,CAAC,WAAW,EAAE;AAClD,IAAI,MAAM,KAAK,CAAC,GAAG,EAAE,gDAAgD,CAAC;AACtE,EAAE;AACF,EAAE,MAAM,IAAI,GAAG,MAAM,OAAO,CAAC,IAAI,EAAE;AACnC,EAAE,MAAM,EAAE,WAAW,EAAE,GAAG,IAAI;AAC9B,EAAE,IAAI,CAAC,WAAW,EAAE;AACpB,IAAI,MAAM,KAAK,CAAC,GAAG,EAAE,yBAAyB,CAAC;AAC/C,EAAE;AACF,EAAE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,UAAU;AACxC,IAAI,iBAAiB,CAAC,WAAW,EAAE,SAAS,EAAE,WAAW,EAAE,WAAW;AACtE,GAAG;AACH,EAAE,OAAO,IAAI,CAAC,MAAM,CAAC;AACrB;;;;"}
|
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
import { e as error, j as json } from './index-CoD1IJuy.js';
|
|
2
2
|
import { Effect } from 'effect';
|
|
3
|
-
import { b as loadProjectTreeData } from './index3-
|
|
3
|
+
import { b as loadProjectTreeData } from './index3-BOWsMtX4.js';
|
|
4
4
|
import 'fs';
|
|
5
5
|
import 'os';
|
|
6
6
|
import 'path';
|
|
7
7
|
import 'fs/promises';
|
|
8
|
+
import 'crypto';
|
|
8
9
|
|
|
9
10
|
const GET = async ({ url }) => {
|
|
10
11
|
const projectName = url.searchParams.get("project");
|
|
11
12
|
if (!projectName) {
|
|
12
13
|
throw error(400, "project parameter required");
|
|
13
14
|
}
|
|
14
|
-
const
|
|
15
|
+
const sortField = url.searchParams.get("sortField");
|
|
16
|
+
const sortOrder = url.searchParams.get("sortOrder");
|
|
17
|
+
const sortOptions = sortField && sortOrder ? { field: sortField, order: sortOrder } : { field: "summary", order: "desc" };
|
|
18
|
+
const result = await Effect.runPromise(loadProjectTreeData(projectName, sortOptions));
|
|
15
19
|
if (!result) {
|
|
16
20
|
throw error(404, "Project not found");
|
|
17
21
|
}
|
|
@@ -19,4 +23,4 @@ const GET = async ({ url }) => {
|
|
|
19
23
|
};
|
|
20
24
|
|
|
21
25
|
export { GET };
|
|
22
|
-
//# sourceMappingURL=_server.ts-
|
|
26
|
+
//# sourceMappingURL=_server.ts-Csnu3HvS.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_server.ts-Csnu3HvS.js","sources":["../../../.svelte-kit/adapter-node/entries/endpoints/api/project/expand/_server.ts.js"],"sourcesContent":["import { error, json } from \"@sveltejs/kit\";\nimport { Effect } from \"effect\";\nimport { b as loadProjectTreeData } from \"../../../../../chunks/index3.js\";\nconst GET = async ({ url }) => {\n const projectName = url.searchParams.get(\"project\");\n if (!projectName) {\n throw error(400, \"project parameter required\");\n }\n const sortField = url.searchParams.get(\"sortField\");\n const sortOrder = url.searchParams.get(\"sortOrder\");\n const sortOptions = sortField && sortOrder ? { field: sortField, order: sortOrder } : { field: \"summary\", order: \"desc\" };\n const result = await Effect.runPromise(loadProjectTreeData(projectName, sortOptions));\n if (!result) {\n throw error(404, \"Project not found\");\n }\n return json(result.sessions);\n};\nexport {\n GET\n};\n"],"names":[],"mappings":";;;;;;;;;AAGK,MAAC,GAAG,GAAG,OAAO,EAAE,GAAG,EAAE,KAAK;AAC/B,EAAE,MAAM,WAAW,GAAG,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,SAAS,CAAC;AACrD,EAAE,IAAI,CAAC,WAAW,EAAE;AACpB,IAAI,MAAM,KAAK,CAAC,GAAG,EAAE,4BAA4B,CAAC;AAClD,EAAE;AACF,EAAE,MAAM,SAAS,GAAG,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,WAAW,CAAC;AACrD,EAAE,MAAM,SAAS,GAAG,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,WAAW,CAAC;AACrD,EAAE,MAAM,WAAW,GAAG,SAAS,IAAI,SAAS,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE;AAC3H,EAAE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,mBAAmB,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;AACvF,EAAE,IAAI,CAAC,MAAM,EAAE;AACf,IAAI,MAAM,KAAK,CAAC,GAAG,EAAE,mBAAmB,CAAC;AACzC,EAAE;AACF,EAAE,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC;AAC9B;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { j as json } from './index-CoD1IJuy.js';
|
|
2
|
-
import { k as folderNameToPath } from './index3-
|
|
2
|
+
import { k as folderNameToPath } from './index3-BOWsMtX4.js';
|
|
3
3
|
import { spawn } from 'child_process';
|
|
4
4
|
import * as os from 'node:os';
|
|
5
5
|
import 'fs';
|
|
@@ -7,6 +7,7 @@ import 'os';
|
|
|
7
7
|
import 'path';
|
|
8
8
|
import 'effect';
|
|
9
9
|
import 'fs/promises';
|
|
10
|
+
import 'crypto';
|
|
10
11
|
|
|
11
12
|
var resumeSession = (options) => {
|
|
12
13
|
const { sessionId, cwd, fork = false, args = [] } = options;
|
|
@@ -92,4 +93,4 @@ const POST = async ({ request }) => {
|
|
|
92
93
|
};
|
|
93
94
|
|
|
94
95
|
export { POST };
|
|
95
|
-
//# sourceMappingURL=_server.ts-
|
|
96
|
+
//# sourceMappingURL=_server.ts-DS4LtLJR.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_server.ts-DS4LtLJR.js","sources":["../../../.svelte-kit/adapter-node/entries/endpoints/api/session/resume/_server.ts.js"],"sourcesContent":["import { json } from \"@sveltejs/kit\";\nimport { k as folderNameToPath } from \"../../../../../chunks/index3.js\";\nimport { spawn } from \"child_process\";\nimport * as os from \"node:os\";\nvar resumeSession = (options) => {\n const { sessionId, cwd, fork = false, args = [] } = options;\n try {\n const claudeArgs = [\"--resume\", sessionId];\n if (fork) {\n claudeArgs.push(\"--fork-session\");\n }\n claudeArgs.push(...args);\n const claudeCommand = `claude ${claudeArgs.join(\" \")}`;\n const workingDir = cwd ?? process.cwd();\n if (process.platform === \"darwin\") {\n const escapedDir = workingDir.replace(/\\\\/g, \"\\\\\\\\\").replace(/\"/g, '\\\\\"');\n const escapedCmd = claudeCommand.replace(/\\\\/g, \"\\\\\\\\\").replace(/\"/g, '\\\\\"');\n const script = `\ntell application \"Terminal\"\n activate\n set newWindow to do script \"cd \\\\\"${escapedDir}\\\\\" && ${escapedCmd}\"\n set frontmost of newWindow to true\nend tell\ntell application \"System Events\"\n set frontmost of process \"Terminal\" to true\nend tell\n`;\n const child = spawn(\"osascript\", [\"-e\", script], {\n detached: true,\n stdio: \"ignore\"\n });\n child.unref();\n return { success: true, pid: child.pid };\n }\n if (process.platform === \"win32\") {\n const child = spawn(\"cmd\", [\"/c\", \"start\", \"cmd\", \"/k\", claudeCommand], {\n cwd: workingDir,\n detached: true,\n stdio: \"ignore\"\n });\n child.unref();\n return { success: true, pid: child.pid };\n }\n const terminals = [\"gnome-terminal\", \"konsole\", \"xterm\"];\n for (const term of terminals) {\n try {\n const child = spawn(term, [\"--\", \"bash\", \"-c\", `cd \"${workingDir}\" && ${claudeCommand}`], {\n detached: true,\n stdio: \"ignore\"\n });\n child.unref();\n return { success: true, pid: child.pid };\n } catch {\n continue;\n }\n }\n return { success: false, error: \"No supported terminal emulator found\" };\n } catch (error) {\n return {\n success: false,\n error: error instanceof Error ? error.message : String(error)\n };\n }\n};\nconst POST = async ({ request }) => {\n try {\n const { projectName, sessionId } = await request.json();\n if (!projectName || !sessionId) {\n return json({ error: \"Missing projectName or sessionId\" }, { status: 400 });\n }\n const folderPath = folderNameToPath(projectName);\n const homeDir = os.homedir();\n const cwd = folderPath.startsWith(\"~\") ? folderPath.replace(\"~\", homeDir) : folderPath;\n const result = resumeSession({\n sessionId,\n cwd\n });\n if (result.success) {\n return json({ success: true, pid: result.pid });\n } else {\n return json({ error: result.error }, { status: 500 });\n }\n } catch (error) {\n return json({ error: String(error) }, { status: 500 });\n }\n};\nexport {\n POST\n};\n"],"names":[],"mappings":";;;;;;;;;;;AAIA,IAAI,aAAa,GAAG,CAAC,OAAO,KAAK;AACjC,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,EAAE,IAAI,GAAG,KAAK,EAAE,IAAI,GAAG,EAAE,EAAE,GAAG,OAAO;AAC7D,EAAE,IAAI;AACN,IAAI,MAAM,UAAU,GAAG,CAAC,UAAU,EAAE,SAAS,CAAC;AAC9C,IAAI,IAAI,IAAI,EAAE;AACd,MAAM,UAAU,CAAC,IAAI,CAAC,gBAAgB,CAAC;AACvC,IAAI;AACJ,IAAI,UAAU,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;AAC5B,IAAI,MAAM,aAAa,GAAG,CAAC,OAAO,EAAE,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAC1D,IAAI,MAAM,UAAU,GAAG,GAAG,IAAI,OAAO,CAAC,GAAG,EAAE;AAC3C,IAAI,IAAI,OA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UAAU,CAAC,GAAG,CAAC,GAAG,UAAU,CAAC,OAAO,CAAC,GAAG,EAAE,OAAO,CAAC,GAAG,UAAU;AAC1F,IAAI,MAAM,MAAM,GAAG,aAAa,CAAC;AACjC,MAAM,SAAS;AACf,MAAM;AACN,KAAK,CAAC;AACN,IAAI,IAAI,MAAM,CAAC,OAAO,EAAE;AACxB,MAAM,OAAO,IAAI,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,CAAC,GAAG,EAAE,CAAC;AACrD,IAAI,CAAC,MAAM;AACX,MAAM,OAAO,IAAI,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;AAC3D,IAAI;AACJ,EAAE,CAAC,CAAC,OAAO,KAAK,EAAE;AAClB,IAAI,OAAO,IAAI,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;AAC1D,EAAE;AACF;;;;"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { e as error, j as json } from './index-CoD1IJuy.js';
|
|
2
2
|
import { Effect } from 'effect';
|
|
3
|
-
import { n as splitSession } from './index3-
|
|
3
|
+
import { n as splitSession } from './index3-BOWsMtX4.js';
|
|
4
4
|
import 'fs';
|
|
5
5
|
import 'os';
|
|
6
6
|
import 'path';
|
|
7
7
|
import 'fs/promises';
|
|
8
|
+
import 'crypto';
|
|
8
9
|
|
|
9
10
|
const POST = async ({ request }) => {
|
|
10
11
|
const body = await request.json();
|
|
@@ -17,4 +18,4 @@ const POST = async ({ request }) => {
|
|
|
17
18
|
};
|
|
18
19
|
|
|
19
20
|
export { POST };
|
|
20
|
-
//# sourceMappingURL=_server.ts-
|
|
21
|
+
//# sourceMappingURL=_server.ts-DrDTz9tO.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_server.ts-
|
|
1
|
+
{"version":3,"file":"_server.ts-DrDTz9tO.js","sources":["../../../.svelte-kit/adapter-node/entries/endpoints/api/session/split/_server.ts.js"],"sourcesContent":["import { error, json } from \"@sveltejs/kit\";\nimport { Effect } from \"effect\";\nimport { n as splitSession } from \"../../../../../chunks/index3.js\";\nconst POST = async ({ request }) => {\n const body = await request.json();\n const { project, sessionId, messageUuid } = body;\n if (!project || !sessionId || !messageUuid) {\n throw error(400, \"project, sessionId, and messageUuid are required\");\n }\n const result = await Effect.runPromise(splitSession(project, sessionId, messageUuid));\n return json(result);\n};\nexport {\n POST\n};\n"],"names":[],"mappings":";;;;;;;;;AAGK,MAAC,IAAI,GAAG,OAAO,EAAE,OAAO,EAAE,KAAK;AACpC,EAAE,MAAM,IAAI,GAAG,MAAM,OAAO,CAAC,IAAI,EAAE;AACnC,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,GAAG,IAAI;AAClD,EAAE,IAAI,CAAC,OAAO,IAAI,CAAC,SAAS,IAAI,CAAC,WAAW,EAAE;AAC9C,IAAI,MAAM,KAAK,CAAC,GAAG,EAAE,kDAAkD,CAAC;AACxE,EAAE;AACF,EAAE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,YAAY,CAAC,OAAO,EAAE,SAAS,EAAE,WAAW,CAAC,CAAC;AACvF,EAAE,OAAO,IAAI,CAAC,MAAM,CAAC;AACrB;;;;"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { e as error, j as json } from './index-CoD1IJuy.js';
|
|
2
2
|
import { Effect } from 'effect';
|
|
3
|
-
import { f as deleteSession, h as readSession } from './index3-
|
|
3
|
+
import { f as deleteSession, h as readSession } from './index3-BOWsMtX4.js';
|
|
4
4
|
import 'fs';
|
|
5
5
|
import 'os';
|
|
6
6
|
import 'path';
|
|
7
7
|
import 'fs/promises';
|
|
8
|
+
import 'crypto';
|
|
8
9
|
|
|
9
10
|
const GET = async ({ url }) => {
|
|
10
11
|
const projectName = url.searchParams.get("project");
|
|
@@ -26,4 +27,4 @@ const DELETE = async ({ url }) => {
|
|
|
26
27
|
};
|
|
27
28
|
|
|
28
29
|
export { DELETE, GET };
|
|
29
|
-
//# sourceMappingURL=_server.ts-
|
|
30
|
+
//# sourceMappingURL=_server.ts-Qm-5UM6l.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_server.ts-
|
|
1
|
+
{"version":3,"file":"_server.ts-Qm-5UM6l.js","sources":["../../../.svelte-kit/adapter-node/entries/endpoints/api/session/_server.ts.js"],"sourcesContent":["import { error, json } from \"@sveltejs/kit\";\nimport { Effect } from \"effect\";\nimport { f as readSession, h as deleteSession } from \"../../../../chunks/index3.js\";\nconst GET = async ({ url }) => {\n const projectName = url.searchParams.get(\"project\");\n const sessionId = url.searchParams.get(\"id\");\n if (!projectName || !sessionId) {\n throw error(400, \"project and id parameters required\");\n }\n const messages = await Effect.runPromise(readSession(projectName, sessionId));\n return json(messages);\n};\nconst DELETE = async ({ url }) => {\n const projectName = url.searchParams.get(\"project\");\n const sessionId = url.searchParams.get(\"id\");\n if (!projectName || !sessionId) {\n throw error(400, \"project and id parameters required\");\n }\n const result = await Effect.runPromise(deleteSession(projectName, sessionId));\n return json(result);\n};\nexport {\n DELETE,\n GET\n};\n"],"names":[],"mappings":";;;;;;;;;AAGK,MAAC,GAAG,GAAG,OAAO,EAAE,GAAG,EAAE,KAAK;AAC/B,EAAE,MAAM,WAAW,GAAG,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,SAAS,CAAC;AACrD,EAAE,MAAM,SAAS,GAAG,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,IAAI,CAAC;AAC9C,EAAE,IAAI,CAAC,WAAW,IAAI,CAAC,SAAS,EAAE;AAClC,IAAI,MAAM,KAAK,CAAC,GAAG,EAAE,oCAAoC,CAAC;AAC1D,EAAE;AACF,EAAE,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,WAAW,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;AAC/E,EAAE,OAAO,IAAI,CAAC,QAAQ,CAAC;AACvB;AACK,MAAC,MAAM,GAAG,OAAO,EAAE,GAAG,EAAE,KAAK;AAClC,EAAE,MAAM,WAAW,GAAG,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,SAAS,CAAC;AACrD,EAAE,MAAM,SAAS,GAAG,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,IAAI,CAAC;AAC9C,EAAE,IAAI,CAAC,WAAW,IAAI,CAAC,SAAS,EAAE;AAClC,IAAI,MAAM,KAAK,CAAC,GAAG,EAAE,oCAAoC,CAAC;AAC1D,EAAE;AACF,EAAE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,aAAa,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;AAC/E,EAAE,OAAO,IAAI,CAAC,MAAM,CAAC;AACrB;;;;"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { e as error, j as json } from './index-CoD1IJuy.js';
|
|
2
2
|
import { Effect } from 'effect';
|
|
3
|
-
import { o as loadSessionTreeData } from './index3-
|
|
3
|
+
import { o as loadSessionTreeData } from './index3-BOWsMtX4.js';
|
|
4
4
|
import 'fs';
|
|
5
5
|
import 'os';
|
|
6
6
|
import 'path';
|
|
7
7
|
import 'fs/promises';
|
|
8
|
+
import 'crypto';
|
|
8
9
|
|
|
9
10
|
const GET = async ({ url }) => {
|
|
10
11
|
const projectName = url.searchParams.get("project");
|
|
@@ -23,4 +24,4 @@ const GET = async ({ url }) => {
|
|
|
23
24
|
};
|
|
24
25
|
|
|
25
26
|
export { GET };
|
|
26
|
-
//# sourceMappingURL=_server.ts-
|
|
27
|
+
//# sourceMappingURL=_server.ts-WMEN7B0K.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_server.ts-
|
|
1
|
+
{"version":3,"file":"_server.ts-WMEN7B0K.js","sources":["../../../.svelte-kit/adapter-node/entries/endpoints/api/session/tree-data/_server.ts.js"],"sourcesContent":["import { error, json } from \"@sveltejs/kit\";\nimport { Effect } from \"effect\";\nimport { o as loadSessionTreeData } from \"../../../../../chunks/index3.js\";\nconst GET = async ({ url }) => {\n const projectName = url.searchParams.get(\"project\");\n const sessionId = url.searchParams.get(\"id\");\n if (!projectName) {\n throw error(400, \"project parameter required\");\n }\n if (!sessionId) {\n throw error(400, \"id parameter required\");\n }\n const result = await Effect.runPromise(loadSessionTreeData(projectName, sessionId));\n if (!result) {\n throw error(404, \"Session not found\");\n }\n return json(result);\n};\nexport {\n GET\n};\n"],"names":[],"mappings":";;;;;;;;;AAGK,MAAC,GAAG,GAAG,OAAO,EAAE,GAAG,EAAE,KAAK;AAC/B,EAAE,MAAM,WAAW,GAAG,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,SAAS,CAAC;AACrD,EAAE,MAAM,SAAS,GAAG,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,IAAI,CAAC;AAC9C,EAAE,IAAI,CAAC,WAAW,EAAE;AACpB,IAAI,MAAM,KAAK,CAAC,GAAG,EAAE,4BAA4B,CAAC;AAClD,EAAE;AACF,EAAE,IAAI,CAAC,SAAS,EAAE;AAClB,IAAI,MAAM,KAAK,CAAC,GAAG,EAAE,uBAAuB,CAAC;AAC7C,EAAE;AACF,EAAE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,mBAAmB,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;AACrF,EAAE,IAAI,CAAC,MAAM,EAAE;AACf,IAAI,MAAM,KAAK,CAAC,GAAG,EAAE,mBAAmB,CAAC;AACzC,EAAE;AACF,EAAE,OAAO,IAAI,CAAC,MAAM,CAAC;AACrB;;;;"}
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import { j as json } from './index-CoD1IJuy.js';
|
|
2
2
|
import { homedir } from 'os';
|
|
3
|
-
import { q as pathToFolderName } from './index3-
|
|
3
|
+
import { q as pathToFolderName } from './index3-BOWsMtX4.js';
|
|
4
4
|
import 'fs';
|
|
5
5
|
import 'path';
|
|
6
6
|
import 'effect';
|
|
7
7
|
import 'fs/promises';
|
|
8
|
+
import 'crypto';
|
|
8
9
|
|
|
9
10
|
const currentProjectName = pathToFolderName(process.env.INIT_CWD || process.cwd());
|
|
10
11
|
const GET = async () => {
|
|
11
12
|
return json({
|
|
12
|
-
version: "0.
|
|
13
|
+
version: "0.4.0",
|
|
13
14
|
homeDir: homedir(),
|
|
14
15
|
currentProjectName
|
|
15
16
|
});
|
|
16
17
|
};
|
|
17
18
|
|
|
18
19
|
export { GET };
|
|
19
|
-
//# sourceMappingURL=_server.ts-
|
|
20
|
+
//# sourceMappingURL=_server.ts-u9CxsloP.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_server.ts-u9CxsloP.js","sources":["../../../.svelte-kit/adapter-node/entries/endpoints/api/version/_server.ts.js"],"sourcesContent":["import { json } from \"@sveltejs/kit\";\nimport { homedir } from \"os\";\nimport { q as pathToFolderName } from \"../../../../chunks/index3.js\";\nconst currentProjectName = pathToFolderName(process.env.INIT_CWD || process.cwd());\nconst GET = async () => {\n return json({\n version: \"0.4.0\",\n homeDir: homedir(),\n currentProjectName\n });\n};\nexport {\n GET\n};\n"],"names":[],"mappings":";;;;;;;;;AAGA,MAAM,kBAAkB,GAAG,gBAAgB,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC;AAC7E,MAAC,GAAG,GAAG,YAAY;AACxB,EAAE,OAAO,IAAI,CAAC;AACd,IAAI,OAAO,EAAE,OAAO;AACpB,IAAI,OAAO,EAAE,OAAO,EAAE;AACtB,IAAI;AACJ,GAAG,CAAC;AACJ;;;;"}
|