SessionRuntimeModule · packages/server/src/runtime/session-sources.ts:27

SessionSources

component

No JSDoc comment in source yet.

API

@Component()
export class SessionSources implements SessionOrigins {
  set(sessionId: string, source: RecordedSource): void;
  get(sessionId: string): RecordedSource | undefined;
  delete(sessionId: string): void;
}

Dependencies & Wiring

Extracted from class decorators
implementsinterfaces

Methods (3)

set

set(sessionId: string, source: RecordedSource): void

Records a Session's source as read from session_meta (null: a head that records none).

@paramsessionIdstring
@paramsourceRecordedSource
@returnsvoid

get

get(sessionId: string): RecordedSource | undefined

What the Session's meta records: a source, null for a head that records none (read it through readRecordedSource), undefined when this process has not seen the meta.

@paramsessionIdstring
@returnsRecordedSource | undefined

delete

delete(sessionId: string): void

Drops a deleted Session's entry (bulk Agent/Project deletion may leave stale entries; they are never matched again).

@paramsessionIdstring
@returnsvoid