playerthree/benchmark-store
playerthree/benchmark-store: benchmark publication storage (atomic JSON files or PostgreSQL) and validated import.
Interfaces
BenchmarkPublicationStore
Defined in: packages/playerthree/src/benchmark-store.ts:8
Methods
get()
get(id): Promise<BenchmarkPublication | null>;Defined in: packages/playerthree/src/benchmark-store.ts:10
Parameters
| Parameter | Type |
|---|---|
id | string |
Returns
Promise<BenchmarkPublication | null>
list()
list(): Promise<BenchmarkPublication[]>;Defined in: packages/playerthree/src/benchmark-store.ts:11
Returns
Promise<BenchmarkPublication[]>
put()
put(publication): Promise<void>;Defined in: packages/playerthree/src/benchmark-store.ts:9
Parameters
| Parameter | Type |
|---|---|
publication | BenchmarkPublication |
Returns
Promise<void>
withdraw()
withdraw(id): Promise<void>;Defined in: packages/playerthree/src/benchmark-store.ts:12
Parameters
| Parameter | Type |
|---|---|
id | string |
Returns
Promise<void>
Type Aliases
BenchmarkQuery
type BenchmarkQuery = (text, params) => Promise<Record<string, unknown>[]>;Defined in: packages/playerthree/src/benchmark-store.ts:88
Parameters
| Parameter | Type |
|---|---|
text | string |
params | unknown[] |
Returns
Promise<Record<string, unknown>[]>
Functions
importBenchmarkPublication()
function importBenchmarkPublication(store, input): Promise<BenchmarkPublication>;Defined in: packages/playerthree/src/benchmark-store.ts:118
Validation proves internal consistency, never trusted evaluation or model authorship.
Parameters
| Parameter | Type |
|---|---|
store | BenchmarkPublicationStore |
input | unknown |
Returns
Promise<BenchmarkPublication>
jsonBenchmarkStore()
function jsonBenchmarkStore(directory): BenchmarkPublicationStore;Defined in: packages/playerthree/src/benchmark-store.ts:29
Atomic no-overwrite creation and separate permanent tombstones coordinate CLI/server processes.
Parameters
| Parameter | Type |
|---|---|
directory | string |
Returns
postgresBenchmarkStore()
function postgresBenchmarkStore(query, game): BenchmarkPublicationStore;Defined in: packages/playerthree/src/benchmark-store.ts:90
Uses the existing PostgresStorage.query; no series foreign key or retention cascade.
Parameters
| Parameter | Type |
|---|---|
query | BenchmarkQuery |
game | string |
Returns
writeBenchmarkJson()
function writeBenchmarkJson(
path,
value,
exclusive?
): Promise<void>;Defined in: packages/playerthree/src/benchmark-store.ts:16
Durable atomic replacement; callers own serialization. No provider keys or transcripts belong in these files.
Parameters
| Parameter | Type | Default value |
|---|---|---|
path | string | undefined |
value | unknown | undefined |
exclusive? | boolean | false |
Returns
Promise<void>
