feat: session source in session_meta and an Automated sidebar folder (#40)

Co-authored-by: Alice <alice@prismshadow.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Yaowei Zheng
2026-07-23 00:58:43 +08:00
committed by GitHub
parent e0bf1706b9
commit c380113e26
30 changed files with 1023 additions and 74 deletions
+9 -2
View File
@@ -185,9 +185,16 @@ export const getAgentTraces = (projectId: string, agentId: string) =>
// Session ---------------------------------------------------------------------
export const listSessions = (projectId: string, agentId: string) =>
/** Optional paging (both absent = full list): the store requests `limit+1` per page to detect "has more". */
export const listSessions = (
projectId: string,
agentId: string,
paging?: { offset: number; limit: number },
) =>
apiFetch<SessionsResponse>(
`/api/projects/${encodeURIComponent(projectId)}/agents/${encodeURIComponent(agentId)}/sessions`,
`/api/projects/${encodeURIComponent(projectId)}/agents/${encodeURIComponent(agentId)}/sessions${
paging ? `?limit=${paging.limit}&offset=${paging.offset}` : ""
}`,
);
/** Server directory browsing: `path` is an absolute path; empty means start from the server's home directory. */