Update GitHub Agent Browser and API library

This commit is contained in:
Vivek R
2025-06-24 00:57:44 +05:30
parent c85caa7a47
commit 00cd299c2b
2 changed files with 14 additions and 2 deletions

View File

@@ -479,6 +479,20 @@ export const api = {
}
},
/**
* Retrieves sessions for a specific project
* @param projectId - The ID of the project to retrieve sessions for
* @returns Promise resolving to an array of sessions
*/
async getProjectSessions(projectId: string): Promise<Session[]> {
try {
return await invoke<Session[]>('get_project_sessions', { projectId });
} catch (error) {
console.error("Failed to get project sessions:", error);
throw error;
}
},
/**
* Fetch list of agents from GitHub repository
* @returns Promise resolving to list of available agents on GitHub