import{d as t,g as o,c as r,e}from"../../nitro/nitro.mjs";import{promises as i}from"fs";import s from"path";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"@anthropic-ai/claude-code";import"fs/promises";import"readline";import"node:url";const p=t(async t=>{try{const p=o(t).projectId;if(!p)throw r({statusCode:400,statusMessage:"Project ID required"});const a=await e(p),d=s.join(a,".claude","settings.json");try{const t=await i.readFile(d,"utf8");return JSON.parse(t)}catch(t){if("ENOENT"===t.code)return{env:{},includeCoAuthoredBy:!0,cleanupPeriodDays:30,permissions:{defaultMode:"acceptEdits",allow:[],deny:[],additionalDirectories:[]}};throw t}}catch(t){throw r({statusCode:t.statusCode||500,statusMessage:t.message||"Failed to read project settings"})}});export{p as default};
//# sourceMappingURL=project-settings.get.mjs.map
