Skip to content

@codesoul-co/hypha-adapters-local / react-continuation-checkpoint-store

Using this module

Use the React continuation checkpoint store module for persisting and reading data at this boundary. It exports 1 class, 1 interface.

Import from the package entrypoint

ts
import {
  SQLiteReActContinuationCheckpointStore,
} from '@codesoul-co/hypha-adapters-local';

import type {
  SQLiteReActContinuationCheckpointStoreOptions,
} from '@codesoul-co/hypha-adapters-local';

Usage patterns

  • Use the 1 type/interface export as static contracts in application code, adapters, or tests. Import them with import type; they do not exist at runtime.
  • The module exposes 1 class as constructable runtime implementations. Each symbol entry lists its constructor and public methods.

Public exports

SymbolKindSignatureDescription
SQLiteReActContinuationCheckpointStoreclassnew SQLiteReActContinuationCheckpointStore(options: SQLiteReActContinuationCheckpointStoreOptions): SQLiteReActContinuationCheckpointStoreLocal durable materialization for resumable ReAct work. Runtime Events remain the execution truth. This store contains only bounded, schema-validated continuation material and rejects stale checkpoint writers.
SQLiteReActContinuationCheckpointStoreOptionsinterfaceinterface SQLiteReActContinuationCheckpointStoreOptionsSQLite ReAct Continuation Checkpoint Store Options interface with 3 public fields or methods.

SQLiteReActContinuationCheckpointStore

Local durable materialization for resumable ReAct work. Runtime Events remain the execution truth. This store contains only bounded, schema-validated continuation material and rejects stale checkpoint writers.

Declaration

text
export declare class SQLiteReActContinuationCheckpointStore implements ReActContinuationCheckpointStore {
    constructor(options: SQLiteReActContinuationCheckpointStoreOptions);
    put(input: ReActContinuationCheckpoint, idempotencyKey: string): Promise<ReActContinuationCheckpointPutResult>;
    get(runId: string, stepId: string, expectedScopeHash: string): Promise<ReActContinuationCheckpoint | null>;
    delete(runId: string, stepId: string, expectedScopeHash: string, expectedStepSequence?: number): Promise<boolean>;
    close(): void;
}

Public members

MemberKindSignatureDescription
closemethodclose(): voidPublic method; parameters and return type are shown in the signature.
constructorconstructor(options: SQLiteReActContinuationCheckpointStoreOptions): SQLiteReActContinuationCheckpointStoreCreates an instance of this class.
deletemethoddelete(runId: string, stepId: string, expectedScopeHash: string, expectedStepSequence?: number): Promise<boolean>Public method; parameters and return type are shown in the signature.
getmethodget(runId: string, stepId: string, expectedScopeHash: string): Promise<ReActContinuationCheckpoint | null>Public method; parameters and return type are shown in the signature.
putmethodput(input: ReActContinuationCheckpoint, idempotencyKey: string): Promise<ReActContinuationCheckpointPutResult>Public method; parameters and return type are shown in the signature.

SQLiteReActContinuationCheckpointStoreOptions

SQLite ReAct Continuation Checkpoint Store Options interface with 3 public fields or methods.

  • Kind: interface
  • Import: import type { SQLiteReActContinuationCheckpointStoreOptions } from '@codesoul-co/hypha-adapters-local';
  • Source module: react-continuation-checkpoint-store

Declaration

text
export interface SQLiteReActContinuationCheckpointStoreOptions {
    filename: string;
    maxIdempotencyRecordsPerCheckpoint?: number;
    maxCheckpointBytes?: number;
}

Contract members

MemberKindSignatureDescription
filenamepropertyfilename: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
maxCheckpointBytespropertymaxCheckpointBytes?: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
maxIdempotencyRecordsPerCheckpointpropertymaxIdempotencyRecordsPerCheckpoint?: numberPublic property; its type, readonly modifier and optionality are shown in the signature.