Skip to content

Rulvar API reference


Rulvar API reference / @rulvar/core / InMemoryTranscriptStore

Class: InMemoryTranscriptStore

Defined in: packages/core/src/stores/inmemory.ts:103

In-memory TranscriptStore. Refs follow the <runId>/<name> convention so list(runId) can filter without a side index.

Implements

Constructors

Constructor

ts
new InMemoryTranscriptStore(): InMemoryTranscriptStore;

Returns

InMemoryTranscriptStore

Methods

delete()

ts
delete(ref): Promise<void>;

Defined in: packages/core/src/stores/inmemory.ts:121

Deletes one blob; a missing ref is a no-op, never an error (M8-T04 amendment, OQ-20: retention is impossible without blob deletion). The cascade over a run's blobs is ENGINE-side (Engine.deleteRun), never a store obligation.

Parameters

ParameterType
refstring

Returns

Promise&lt;void&gt;

Implementation of

TranscriptStore.delete


get()

ts
get(ref): Promise<Bytes | null>;

Defined in: packages/core/src/stores/inmemory.ts:111

Parameters

ParameterType
refstring

Returns

Promise&lt;Bytes | null&gt;

Implementation of

TranscriptStore.get


list()

ts
list(runId): Promise<string[]>;

Defined in: packages/core/src/stores/inmemory.ts:116

Parameters

ParameterType
runIdstring

Returns

Promise&lt;string[]&gt;

Implementation of

TranscriptStore.list


put()

ts
put(ref, blob): Promise<void>;

Defined in: packages/core/src/stores/inmemory.ts:106

Parameters

ParameterType
refstring
blobBytes

Returns

Promise&lt;void&gt;

Implementation of

TranscriptStore.put