@prismshadow/penguin-library-project · library/project/src/project.ts:362

AgentIndex

interface

AgentIndex: the mechanism AgentsRepo implements.

API

@Interface()
export abstract class AgentIndex {
  abstract insertOrIgnore(row: AgentRow): void;
  abstract exists(projectId: string, agentId: string): boolean;
  abstract list(projectId: string): AgentRow[];
  abstract delete(projectId: string, agentId: string): void;
  abstract deleteByProject(projectId: string): void;
}

Contract Topology

Static AST wiring across @Module / @Provide / @Use

Members (5)

insertOrIgnore

insertOrIgnore(row: AgentRow): void
@paramrowAgentRow
@returnsvoid

exists

exists(projectId: string, agentId: string): boolean
@paramprojectIdstring
@paramagentIdstring
@returnsboolean

list

list(projectId: string): AgentRow[]
@paramprojectIdstring
@returnsAgentRow[]

delete

delete(projectId: string, agentId: string): void
@paramprojectIdstring
@paramagentIdstring
@returnsvoid

deleteByProject

deleteByProject(projectId: string): void
@paramprojectIdstring
@returnsvoid