summaries chat client

This commit is contained in:
Storme-bit
2026-04-21 02:52:31 -07:00
parent 01f35b7b82
commit 59918d5733
4 changed files with 44 additions and 7 deletions
@@ -176,6 +176,13 @@ async function updateSummary(id, { content, tokenCount, episodeRange }) {
return res.json();
}
async function getSummariesByProject(projectId) {
const res = await fetch(`${BASE_URL}/projects/${projectId}/summaries`);
if (!res.ok) throw new Error(`Failed to fetch summaries: ${res.status}`);
return res.json();
}
// add to module.exports too
module.exports = {
getSessionByExternalId,
createSession,
@@ -197,4 +204,5 @@ module.exports = {
getSummariesBySession,
createSummary,
updateSummary,
getSummariesByProject,
}