import{d as t,g as s,f as e,c as r,h as o,i as a}from"../../nitro/nitro.mjs";import"node:http";import"node:https";import"node:crypto";import"stream";import"events";import"http";import"crypto";import"buffer";import"zlib";import"https";import"net";import"tls";import"url";import"node:events";import"node:buffer";import"node:fs";import"node:path";import"chokidar";import"path";import"@anthropic-ai/claude-code";import"fs";import"fs/promises";import"readline";import"node:url";const i=t(async t=>{try{const i=s(t);switch(i.action){case"list":return await e();case"sessions":const t=i.projectName,s=parseInt(i.limit)||5,p=parseInt(i.offset)||0;if(!t)throw r({statusCode:400,statusMessage:"Project name required"});return await a(t,s,p);case"messages":const m=i.projectName,n=i.sessionId;if(!m||!n)throw r({statusCode:400,statusMessage:"Project name and session ID required"});try{return await o(m,n)}catch(t){throw r({statusCode:t.statusCode||500,statusMessage:t.message||"Failed to fetch session messages"})}default:return await e()}}catch(t){throw r({statusCode:t.statusCode||500,statusMessage:t.message||"Internal Server Error"})}});export{i as default};
//# sourceMappingURL=projects.get.mjs.map
