feat: proje secimi ve otomatik ekip akisini ekle

This commit is contained in:
2026-03-17 00:40:50 +03:00
parent 3641190a77
commit c312b83604
6 changed files with 130 additions and 5 deletions

View File

@@ -52,5 +52,15 @@ export function registerSocketHandlers(io, sessionManager) {
sessionManager.clearLogs();
callback?.({ ok: true });
});
socket.on("project:select", async ({ projectPath }, callback) => {
try {
await sessionManager.setProjectPath(projectPath);
callback?.({ ok: true, projectPath: sessionManager.getState().currentProjectPath });
} catch (error) {
socket.emit("session:error", { message: error.message });
callback?.({ ok: false, error: error.message });
}
});
});
}