No JSDoc comment in source yet.
API
@Component()
export class AgentsRepo implements AgentIndex {
@Use() private readonly db!: Db;
insertOrIgnore(row: AgentRow): void;
exists(projectId: string, agentId: string): boolean;
list(projectId: string): AgentRow[];
delete(projectId: string, agentId: string): void;
deleteByProject(projectId: string): void;
}Dependencies & Wiring
Extracted from class decoratorsMethods (5)
insertOrIgnore
insertOrIgnore(row: AgentRow): voidIdempotent insert: backfills an untracked Agent discovered via directory scan; shared with explicit creation.
@paramrow
AgentRow@returns
voidexists
exists(projectId: string, agentId: string): boolean@paramprojectId
string@paramagentId
string@returns
booleanlist
list(projectId: string): AgentRow[]@paramprojectId
string@returns
AgentRow[]delete
delete(projectId: string, agentId: string): void@paramprojectId
string@paramagentId
string@returns
voiddeleteByProject
deleteByProject(projectId: string): void@paramprojectId
string@returns
void