feat(server): synthetic root doc (#14794)

This commit is contained in:
DarkSky
2026-04-06 17:16:34 +08:00
committed by GitHub
parent 64149d909a
commit 193ec14ad3
35 changed files with 1784 additions and 409 deletions
@@ -59,6 +59,22 @@ export class CopilotContextModel extends BaseModel {
return row;
}
async getAccessInfo(id: string) {
return await this.db.aiContext.findFirst({
where: { id },
select: {
id: true,
sessionId: true,
session: {
select: {
userId: true,
workspaceId: true,
},
},
},
});
}
async getConfig(id: string) {
const row = await this.get(id);
if (row) {