@prismshadow/penguin-library-trace · library/trace/src/trace.ts:919

TraceIndexStore

interface

No JSDoc comment in source yet.

API

@Interface()
export abstract class TraceIndexStore {
  abstract upsertFile(row: TraceFileRow): void;
  abstract updateFileSize(
      projectId: string,
      agentId: string,
      sessionId: string,
      fileIndex: number,
      sizeBytes: number,
    ): void;
  abstract getPageStats(
      projectId: string,
      agentId: string,
      sessionId: string,
      fileIndex: number,
    ): string | null;
  abstract setPageStats(
      projectId: string,
      agentId: string,
      sessionId: string,
      fileIndex: number,
      sizeBytes: number,
      pageStats: string,
    ): void;
  abstract deleteFile(
      projectId: string,
      agentId: string,
      sessionId: string,
      fileIndex: number,
    ): void;
  abstract listFilesByAgent(projectId: string, agentId: string): TraceFileRow[];
  abstract listFilesBySession(
      projectId: string,
      agentId: string,
      sessionId: string,
    ): TraceFileRow[];
  abstract findAgentBySession(projectId: string, sessionId: string): string | null;
  abstract upsertSession(row: TraceSessionRow): void;
  abstract getSession(sessionId: string): TraceSessionRow | null;
  abstract listSessionsByAgent(projectId: string, agentId: string): TraceSessionRow[];
  abstract deleteBySession(sessionId: string): void;
  abstract deleteByAgent(projectId: string, agentId: string): void;
  abstract deleteByProject(projectId: string): void;
}

Contract Topology

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

Members (14)

upsertFile

upsertFile(row: TraceFileRow): void
@paramrowTraceFileRow
@returnsvoid

updateFileSize

updateFileSize(projectId: string, agentId: string, sessionId: string, fileIndex: number, sizeBytes: number): void
@paramprojectIdstring
@paramagentIdstring
@paramsessionIdstring
@paramfileIndexnumber
@paramsizeBytesnumber
@returnsvoid

getPageStats

getPageStats(projectId: string, agentId: string, sessionId: string, fileIndex: number): string | null
@paramprojectIdstring
@paramagentIdstring
@paramsessionIdstring
@paramfileIndexnumber
@returnsstring | null

setPageStats

setPageStats(projectId: string, agentId: string, sessionId: string, fileIndex: number, sizeBytes: number, pageStats: string): void
@paramprojectIdstring
@paramagentIdstring
@paramsessionIdstring
@paramfileIndexnumber
@paramsizeBytesnumber
@parampageStatsstring
@returnsvoid

deleteFile

deleteFile(projectId: string, agentId: string, sessionId: string, fileIndex: number): void
@paramprojectIdstring
@paramagentIdstring
@paramsessionIdstring
@paramfileIndexnumber
@returnsvoid

listFilesByAgent

listFilesByAgent(projectId: string, agentId: string): TraceFileRow[]
@paramprojectIdstring
@paramagentIdstring
@returnsTraceFileRow[]

listFilesBySession

listFilesBySession(projectId: string, agentId: string, sessionId: string): TraceFileRow[]
@paramprojectIdstring
@paramagentIdstring
@paramsessionIdstring
@returnsTraceFileRow[]

findAgentBySession

findAgentBySession(projectId: string, sessionId: string): string | null
@paramprojectIdstring
@paramsessionIdstring
@returnsstring | null

upsertSession

upsertSession(row: TraceSessionRow): void
@paramrowTraceSessionRow
@returnsvoid

getSession

getSession(sessionId: string): TraceSessionRow | null
@paramsessionIdstring
@returnsTraceSessionRow | null

listSessionsByAgent

listSessionsByAgent(projectId: string, agentId: string): TraceSessionRow[]
@paramprojectIdstring
@paramagentIdstring
@returnsTraceSessionRow[]

deleteBySession

deleteBySession(sessionId: string): void
@paramsessionIdstring
@returnsvoid

deleteByAgent

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

deleteByProject

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