Skip to content

@codesoul-co/hypha-adapters-local / index

Using this module

Aggregates the public entrypoint exports for @codesoul-co/hypha-adapters-local; applications import these symbols from the package entrypoint instead of internal file paths.

Import from the package entrypoint

ts
import {
  ArtifactStoreToolPort,
  FileArtifactStore,
  FileMCPCapabilityCatalogStore,
  FileToolContractSnapshotStore,
  FileToolObservationStore,
  FileToolRuntimeStore,
  InMemoryArtifactStore,
  InMemoryStructuredStore,
} from '@codesoul-co/hypha-adapters-local';

import type {
  FileArtifactStoreOptions,
  FileToolRuntimeStoreOptions,
  LocalAdapterProfile,
  LocalHashEmbeddingProviderOptions,
  LocalStorageBackbone,
  LocalStorageBackboneOptions,
  LocalVectorIndexProviderOptions,
  SQLiteEventStoreOptions,
} from '@codesoul-co/hypha-adapters-local';

// The complete export list is documented below.

Usage patterns

  • Use the 9 type/interface exports as static contracts in application code, adapters, or tests. Import them with import type; they do not exist at runtime.
  • The module exposes 14 classes as constructable runtime implementations. Each symbol entry lists its constructor and public methods.
  • The module exposes 2 functions as direct operation entrypoints. Every overload, required/optional parameter, and return type is documented below.
  • The 1 constant/enum export provides stable values, schemas, definitions, or defaults. Reuse these exports instead of copying internal values into an application.

Public exports

SymbolKindSignatureDescription
ArtifactStoreToolPortclassnew ArtifactStoreToolPort(artifacts: ArtifactStoreProvider): ArtifactStoreToolPortArtifact Store Tool Port class with 2 public constructor or member entries; its exact declarations are listed below.
FileArtifactStoreclassnew FileArtifactStore(options: FileArtifactStoreOptions): FileArtifactStoreFile Artifact Store class with 4 public constructor or member entries; its exact declarations are listed below.
FileMCPCapabilityCatalogStoreclassnew FileMCPCapabilityCatalogStore(filename: string): FileMCPCapabilityCatalogStoreFile MCP Capability Catalog Store class with 3 public constructor or member entries; its exact declarations are listed below.
FileToolContractSnapshotStoreclassnew FileToolContractSnapshotStore(rootPath: string): FileToolContractSnapshotStoreFile Tool Contract Snapshot Store class with 3 public constructor or member entries; its exact declarations are listed below.
FileToolObservationStoreclassnew FileToolObservationStore(rootPath: string): FileToolObservationStoreFile Tool Observation Store class with 2 public constructor or member entries; its exact declarations are listed below.
FileToolRuntimeStoreclassnew FileToolRuntimeStore(options: FileToolRuntimeStoreOptions): FileToolRuntimeStoreFile Tool Runtime Store class with 13 public constructor or member entries; its exact declarations are listed below.
InMemoryArtifactStoreclassnew InMemoryArtifactStore(): InMemoryArtifactStoreIn Memory Artifact Store class with 4 public constructor or member entries; its exact declarations are listed below.
InMemoryStructuredStoreclassnew InMemoryStructuredStore(): InMemoryStructuredStoreIn Memory Structured Store class with 7 public constructor or member entries; its exact declarations are listed below.
InMemoryVectorIndexProviderclassnew InMemoryVectorIndexProvider(): InMemoryVectorIndexProviderIn Memory Vector Index Provider class with 4 public constructor or member entries; its exact declarations are listed below.
LocalHashEmbeddingProviderclassnew LocalHashEmbeddingProvider(options?: LocalHashEmbeddingProviderOptions): LocalHashEmbeddingProviderZero-dependency lexical embedding for the local backbone. This is deliberately named by its algorithm rather than presented as a neural semantic model. Token and character n-gram feature hashing gives related local text stable overlap while keeping dimensions and persistence deterministic. Deployments that require semantic recall should inject a concrete embedding Provider through createLocalStorageBackbone.
LocalVectorIndexProviderclassnew LocalVectorIndexProvider(options: LocalVectorIndexProviderOptions): LocalVectorIndexProviderLocal Vector Index Provider class with 4 public constructor or member entries; its exact declarations are listed below.
MockEmbeddingProviderclassnew MockEmbeddingProvider(): MockEmbeddingProviderMock Embedding Provider class with 2 public constructor or member entries; its exact declarations are listed below.
SQLiteEventStoreclassnew SQLiteEventStore(options: SQLiteEventStoreOptions): SQLiteEventStoreSQLite Event Store class with 6 public constructor or member entries; its exact declarations are listed below.
SQLiteStructuredStoreclassnew SQLiteStructuredStore(options: SQLiteStructuredStoreOptions): SQLiteStructuredStoreSQLite Structured Store class with 7 public constructor or member entries; its exact declarations are listed below.
LOCAL_ADAPTER_TYPESconstantconst LOCAL_ADAPTER_TYPES: readonly ["sqlite", "local-vector", "file-artifact"]LOCAL ADAPTER TYPES constant exported by the index module.
createLocalStorageBackbonefunctioncreateLocalStorageBackbone(options: LocalStorageBackboneOptions): LocalStorageBackboneCreate Local Storage Backbone function with 1 public call signature; parameters and return types are listed below.
createLocalStorageProfilesfunctioncreateLocalStorageProfiles(input: { eventDbFilename: string; structuredDbFilename: string; vectorFilename: string; artifactRootPath: string; }): StorageProviderProfile[]Create Local Storage Profiles function with 1 public call signature; parameters and return types are listed below.
FileArtifactStoreOptionsinterfaceinterface FileArtifactStoreOptionsFile Artifact Store Options interface with 1 public fields or methods.
FileToolRuntimeStoreOptionsinterfaceinterface FileToolRuntimeStoreOptionsFile Tool Runtime Store Options interface with 1 public fields or methods.
LocalAdapterProfileinterfaceinterface LocalAdapterProfileLocal Adapter Profile interface with 4 public fields or methods.
LocalHashEmbeddingProviderOptionsinterfaceinterface LocalHashEmbeddingProviderOptionsLocal Hash Embedding Provider Options interface with 1 public fields or methods.
LocalStorageBackboneinterfaceinterface LocalStorageBackboneLocal Storage Backbone interface with 7 public fields or methods.
LocalStorageBackboneOptionsinterfaceinterface LocalStorageBackboneOptionsLocal Storage Backbone Options interface with 8 public fields or methods.
LocalVectorIndexProviderOptionsinterfaceinterface LocalVectorIndexProviderOptionsLocal Vector Index Provider Options interface with 1 public fields or methods.
SQLiteEventStoreOptionsinterfaceinterface SQLiteEventStoreOptionsSQLite Event Store Options interface with 3 public fields or methods.
SQLiteStructuredStoreOptionsinterfaceinterface SQLiteStructuredStoreOptionsSQLite Structured Store Options interface with 3 public fields or methods.

ArtifactStoreToolPort

Artifact Store Tool Port class with 2 public constructor or member entries; its exact declarations are listed below.

  • Kind: class
  • Import: import { ArtifactStoreToolPort } from '@codesoul-co/hypha-adapters-local';
  • Source module: index

Declaration

text
export declare class ArtifactStoreToolPort implements ToolArtifactPort {
    constructor(artifacts: ArtifactStoreProvider);
    store(request: {
            invocationId: string;
            toolId: string;
            value: unknown;
            mimeType?: string;
            metadata?: Record<string, unknown>;
        }): Promise<string>;
}

Public members

MemberKindSignatureDescription
constructorconstructor(artifacts: ArtifactStoreProvider): ArtifactStoreToolPortCreates an instance of this class.
storemethodstore(request: { invocationId: string; toolId: string; value: unknown; mimeType?: string; metadata?: Record<string, unknown>; }): Promise<string>Public method; parameters and return type are shown in the signature.

FileArtifactStore

File Artifact Store class with 4 public constructor or member entries; its exact declarations are listed below.

  • Kind: class
  • Import: import { FileArtifactStore } from '@codesoul-co/hypha-adapters-local';
  • Source module: index

Declaration

text
export declare class FileArtifactStore implements ArtifactStoreProvider {
    constructor(options: FileArtifactStoreOptions);
    put(filePath: string, content: Buffer | string, meta?: ArtifactMeta): Promise<ArtifactRef>;
    get(ref: ArtifactRef): Promise<Buffer>;
    delete(ref: ArtifactRef): Promise<void>;
}

Public members

MemberKindSignatureDescription
constructorconstructor(options: FileArtifactStoreOptions): FileArtifactStoreCreates an instance of this class.
deletemethoddelete(ref: ArtifactRef): Promise<void>Public method; parameters and return type are shown in the signature.
getmethodget(ref: ArtifactRef): Promise<Buffer>Public method; parameters and return type are shown in the signature.
putmethodput(filePath: string, content: Buffer | string, meta?: ArtifactMeta): Promise<ArtifactRef>Public method; parameters and return type are shown in the signature.

FileMCPCapabilityCatalogStore

File MCP Capability Catalog Store class with 3 public constructor or member entries; its exact declarations are listed below.

  • Kind: class
  • Import: import { FileMCPCapabilityCatalogStore } from '@codesoul-co/hypha-adapters-local';
  • Source module: index

Declaration

text
export declare class FileMCPCapabilityCatalogStore implements MCPCapabilityCatalogStore {
    constructor(filename: string);
    list(serverId?: string): Promise<MCPCapabilityRecord[]>;
    save(record: MCPCapabilityRecord, options?: {
            expected?: MCPCapabilityRecord | null;
        }): Promise<boolean>;
}

Public members

MemberKindSignatureDescription
constructorconstructor(filename: string): FileMCPCapabilityCatalogStoreCreates an instance of this class.
listmethodlist(serverId?: string): Promise<MCPCapabilityRecord[]>Public method; parameters and return type are shown in the signature.
savemethodsave(record: MCPCapabilityRecord, options?: { expected?: MCPCapabilityRecord | null; }): Promise<boolean>Public method; parameters and return type are shown in the signature.

FileToolContractSnapshotStore

File Tool Contract Snapshot Store class with 3 public constructor or member entries; its exact declarations are listed below.

  • Kind: class
  • Import: import { FileToolContractSnapshotStore } from '@codesoul-co/hypha-adapters-local';
  • Source module: index

Declaration

text
export declare class FileToolContractSnapshotStore implements ToolContractSnapshotStore {
    constructor(rootPath: string);
    get(snapshotId: string): Promise<ToolContractSnapshot | null>;
    save(snapshot: ToolContractSnapshot): Promise<void>;
}

Public members

MemberKindSignatureDescription
constructorconstructor(rootPath: string): FileToolContractSnapshotStoreCreates an instance of this class.
getmethodget(snapshotId: string): Promise<ToolContractSnapshot | null>Public method; parameters and return type are shown in the signature.
savemethodsave(snapshot: ToolContractSnapshot): Promise<void>Public method; parameters and return type are shown in the signature.

FileToolObservationStore

File Tool Observation Store class with 2 public constructor or member entries; its exact declarations are listed below.

  • Kind: class
  • Import: import { FileToolObservationStore } from '@codesoul-co/hypha-adapters-local';
  • Source module: index

Declaration

text
export declare class FileToolObservationStore implements ToolObservationPort {
    constructor(rootPath: string);
    record(request: {
            invocationId: string;
            toolId: string;
            toolRevision: string;
            runId: string;
            stepId: string;
            inputHash: string;
            outputHash: string;
            value: unknown;
            artifactRefs?: string[];
            provenance: Record<string, unknown>;
        }): Promise<string>;
}

Public members

MemberKindSignatureDescription
constructorconstructor(rootPath: string): FileToolObservationStoreCreates an instance of this class.
recordmethodrecord(request: { invocationId: string; toolId: string; toolRevision: string; runId: string; stepId: string; inputHash: string; outputHash: string; value: unknown; artifactRefs?: string[]; provenance: Record<string, unknown>; }): Promise<string>Public method; parameters and return type are shown in the signature.

FileToolRuntimeStore

File Tool Runtime Store class with 13 public constructor or member entries; its exact declarations are listed below.

  • Kind: class
  • Import: import { FileToolRuntimeStore } from '@codesoul-co/hypha-adapters-local';
  • Source module: index

Declaration

text
export declare class FileToolRuntimeStore implements ToolInvocationStore, ToolApprovalStore {
    constructor(options: FileToolRuntimeStoreOptions);
    get(invocationId: string): Promise<ToolInvocationRecord | null>;
    findByIdempotency(request: ToolIdempotencyLookup): Promise<ToolInvocationRecord | null>;
    list(request?: ToolInvocationListRequest): Promise<ToolInvocationRecord[]>;
    create(record: ToolInvocationRecord): Promise<ToolInvocationRecord>;
    update(invocationId: string, patch: ToolInvocationPatch, options?: {
            expectedStatuses?: readonly ToolInvocationStatus[];
            expectedRevision?: number;
        }): Promise<ToolInvocationRecord>;
    getCompleted(invocationId: string): Promise<ToolCallResult | null>;
    saveCompleted(invocationId: string, result: ToolCallResult): Promise<void>;
    getRequest(invocationId: string): Promise<ToolApprovalRequest | null>;
    requestApproval(request: ToolApprovalRequest): Promise<ToolApprovalRequest>;
    getGrant(invocationId: string): Promise<ToolApprovalGrant | null>;
    approve(invocationId: string, approvedBy: string, options?: {
            approvedAt?: string;
            expiresAt?: string;
        }): Promise<ToolApprovalGrant>;
    reject(invocationId: string): Promise<ToolApprovalRequest>;
}

Public members

MemberKindSignatureDescription
approvemethodapprove(invocationId: string, approvedBy: string, options?: { approvedAt?: string; expiresAt?: string; }): Promise<ToolApprovalGrant>Public method; parameters and return type are shown in the signature.
constructorconstructor(options: FileToolRuntimeStoreOptions): FileToolRuntimeStoreCreates an instance of this class.
createmethodcreate(record: ToolInvocationRecord): Promise<ToolInvocationRecord>Public method; parameters and return type are shown in the signature.
findByIdempotencymethodfindByIdempotency(request: ToolIdempotencyLookup): Promise<ToolInvocationRecord | null>Public method; parameters and return type are shown in the signature.
getmethodget(invocationId: string): Promise<ToolInvocationRecord | null>Public method; parameters and return type are shown in the signature.
getCompletedmethodgetCompleted(invocationId: string): Promise<ToolCallResult | null>Public method; parameters and return type are shown in the signature.
getGrantmethodgetGrant(invocationId: string): Promise<ToolApprovalGrant | null>Public method; parameters and return type are shown in the signature.
getRequestmethodgetRequest(invocationId: string): Promise<ToolApprovalRequest | null>Public method; parameters and return type are shown in the signature.
listmethodlist(request?: ToolInvocationListRequest): Promise<ToolInvocationRecord[]>Public method; parameters and return type are shown in the signature.
rejectmethodreject(invocationId: string): Promise<ToolApprovalRequest>Public method; parameters and return type are shown in the signature.
requestApprovalmethodrequestApproval(request: ToolApprovalRequest): Promise<ToolApprovalRequest>Public method; parameters and return type are shown in the signature.
saveCompletedmethodsaveCompleted(invocationId: string, result: ToolCallResult): Promise<void>Public method; parameters and return type are shown in the signature.
updatemethodupdate(invocationId: string, patch: ToolInvocationPatch, options?: { expectedStatuses?: readonly ToolInvocationStatus[]; expectedRevision?: number; }): Promise<ToolInvocationRecord>Public method; parameters and return type are shown in the signature.

InMemoryArtifactStore

In Memory Artifact Store class with 4 public constructor or member entries; its exact declarations are listed below.

  • Kind: class
  • Import: import { InMemoryArtifactStore } from '@codesoul-co/hypha-adapters-local';
  • Source module: index

Declaration

text
export declare class InMemoryArtifactStore implements ArtifactStoreProvider {
    put(path: string, content: Buffer | string, meta?: ArtifactMeta): Promise<ArtifactRef>;
    get(ref: ArtifactRef): Promise<Buffer>;
    delete(ref: ArtifactRef): Promise<void>;
}

Public members

MemberKindSignatureDescription
constructorconstructor(): InMemoryArtifactStoreCreates an instance of this class.
deletemethoddelete(ref: ArtifactRef): Promise<void>Public method; parameters and return type are shown in the signature.
getmethodget(ref: ArtifactRef): Promise<Buffer>Public method; parameters and return type are shown in the signature.
putmethodput(path: string, content: Buffer | string, meta?: ArtifactMeta): Promise<ArtifactRef>Public method; parameters and return type are shown in the signature.

InMemoryStructuredStore

In Memory Structured Store class with 7 public constructor or member entries; its exact declarations are listed below.

  • Kind: class
  • Import: import { InMemoryStructuredStore } from '@codesoul-co/hypha-adapters-local';
  • Source module: index

Declaration

text
export declare class InMemoryStructuredStore implements StructuredStoreProvider {
    get<T>(table: string, id: string): Promise<T | null>;
    insert<T extends {
            id: string;
        }>(table: string, record: T): Promise<void>;
    update<T>(table: string, id: string, patch: Partial<T>): Promise<void>;
    delete(table: string, id: string): Promise<void>;
    query<T>(table: string, query: StructuredQuery): Promise<T[]>;
    transaction<T>(fn: (tx: StructuredStoreProvider) => Promise<T>): Promise<T>;
}

Public members

MemberKindSignatureDescription
constructorconstructor(): InMemoryStructuredStoreCreates an instance of this class.
deletemethoddelete(table: string, id: string): Promise<void>Public method; parameters and return type are shown in the signature.
getmethodget<T>(table: string, id: string): Promise<T | null>Public method; parameters and return type are shown in the signature.
insertmethodinsert<T extends { id: string; }>(table: string, record: T): Promise<void>Public method; parameters and return type are shown in the signature.
querymethodquery<T>(table: string, query: StructuredQuery): Promise<T[]>Public method; parameters and return type are shown in the signature.
transactionmethodtransaction<T>(fn: (tx: StructuredStoreProvider) => Promise<T>): Promise<T>Public method; parameters and return type are shown in the signature.
updatemethodupdate<T>(table: string, id: string, patch: Partial<T>): Promise<void>Public method; parameters and return type are shown in the signature.

InMemoryVectorIndexProvider

In Memory Vector Index Provider class with 4 public constructor or member entries; its exact declarations are listed below.

  • Kind: class
  • Import: import { InMemoryVectorIndexProvider } from '@codesoul-co/hypha-adapters-local';
  • Source module: index

Declaration

text
export declare class InMemoryVectorIndexProvider implements VectorIndexProvider {
    upsert(records: VectorRecord[]): Promise<void>;
    search(query: VectorQuery): Promise<VectorSearchResult[]>;
    delete(ids: string[]): Promise<void>;
}

Public members

MemberKindSignatureDescription
constructorconstructor(): InMemoryVectorIndexProviderCreates an instance of this class.
deletemethoddelete(ids: string[]): Promise<void>Public method; parameters and return type are shown in the signature.
searchmethodsearch(query: VectorQuery): Promise<VectorSearchResult[]>Public method; parameters and return type are shown in the signature.
upsertmethodupsert(records: VectorRecord[]): Promise<void>Public method; parameters and return type are shown in the signature.

LocalHashEmbeddingProvider

Zero-dependency lexical embedding for the local backbone. This is deliberately named by its algorithm rather than presented as a neural semantic model. Token and character n-gram feature hashing gives related local text stable overlap while keeping dimensions and persistence deterministic. Deployments that require semantic recall should inject a concrete embedding Provider through createLocalStorageBackbone.

  • Kind: class
  • Import: import { LocalHashEmbeddingProvider } from '@codesoul-co/hypha-adapters-local';
  • Source module: index

Declaration

text
export declare class LocalHashEmbeddingProvider implements EmbeddingProvider {
    constructor(options?: LocalHashEmbeddingProviderOptions);
    embed(input: string[]): Promise<number[][]>;
}

Public members

MemberKindSignatureDescription
constructorconstructor(options?: LocalHashEmbeddingProviderOptions): LocalHashEmbeddingProviderCreates an instance of this class.
embedmethodembed(input: string[]): Promise<number[][]>Public method; parameters and return type are shown in the signature.

LocalVectorIndexProvider

Local Vector Index Provider class with 4 public constructor or member entries; its exact declarations are listed below.

  • Kind: class
  • Import: import { LocalVectorIndexProvider } from '@codesoul-co/hypha-adapters-local';
  • Source module: index

Declaration

text
export declare class LocalVectorIndexProvider implements VectorIndexProvider {
    constructor(options: LocalVectorIndexProviderOptions);
    upsert(records: VectorRecord[]): Promise<void>;
    search(query: VectorQuery): Promise<VectorSearchResult[]>;
    delete(ids: string[]): Promise<void>;
}

Public members

MemberKindSignatureDescription
constructorconstructor(options: LocalVectorIndexProviderOptions): LocalVectorIndexProviderCreates an instance of this class.
deletemethoddelete(ids: string[]): Promise<void>Public method; parameters and return type are shown in the signature.
searchmethodsearch(query: VectorQuery): Promise<VectorSearchResult[]>Public method; parameters and return type are shown in the signature.
upsertmethodupsert(records: VectorRecord[]): Promise<void>Public method; parameters and return type are shown in the signature.

MockEmbeddingProvider

Mock Embedding Provider class with 2 public constructor or member entries; its exact declarations are listed below.

  • Kind: class
  • Import: import { MockEmbeddingProvider } from '@codesoul-co/hypha-adapters-local';
  • Source module: index

Declaration

text
export declare class MockEmbeddingProvider implements EmbeddingProvider {
    embed(input: string[]): Promise<number[][]>;
}

Public members

MemberKindSignatureDescription
constructorconstructor(): MockEmbeddingProviderCreates an instance of this class.
embedmethodembed(input: string[]): Promise<number[][]>Public method; parameters and return type are shown in the signature.

SQLiteEventStore

SQLite Event Store class with 6 public constructor or member entries; its exact declarations are listed below.

  • Kind: class
  • Import: import { SQLiteEventStore } from '@codesoul-co/hypha-adapters-local';
  • Source module: index

Declaration

text
export declare class SQLiteEventStore implements EventStore, TraceRecorder {
    constructor(options: SQLiteEventStoreOptions);
    append(event: FrameworkEvent): Promise<void>;
    record(event: FrameworkEvent): Promise<void>;
    list(filter?: EventFilter): Promise<FrameworkEvent[]>;
    exportJsonl(filename: string, filter?: EventFilter): Promise<number>;
    importJsonl(filename: string): Promise<number>;
}

Public members

MemberKindSignatureDescription
appendmethodappend(event: FrameworkEvent): Promise<void>Public method; parameters and return type are shown in the signature.
constructorconstructor(options: SQLiteEventStoreOptions): SQLiteEventStoreCreates an instance of this class.
exportJsonlmethodexportJsonl(filename: string, filter?: EventFilter): Promise<number>Public method; parameters and return type are shown in the signature.
importJsonlmethodimportJsonl(filename: string): Promise<number>Public method; parameters and return type are shown in the signature.
listmethodlist(filter?: EventFilter): Promise<FrameworkEvent[]>Public method; parameters and return type are shown in the signature.
recordmethodrecord(event: FrameworkEvent): Promise<void>Public method; parameters and return type are shown in the signature.

SQLiteStructuredStore

SQLite Structured Store class with 7 public constructor or member entries; its exact declarations are listed below.

  • Kind: class
  • Import: import { SQLiteStructuredStore } from '@codesoul-co/hypha-adapters-local';
  • Source module: index

Declaration

text
export declare class SQLiteStructuredStore implements StructuredStoreProvider {
    constructor(options: SQLiteStructuredStoreOptions);
    get<T>(table: string, id: string): Promise<T | null>;
    insert<T extends {
            id: string;
        }>(table: string, record: T): Promise<void>;
    update<T>(table: string, id: string, patch: Partial<T>): Promise<void>;
    delete(table: string, id: string): Promise<void>;
    query<T>(table: string, query: StructuredQuery): Promise<T[]>;
    transaction<T>(fn: (tx: StructuredStoreProvider) => Promise<T>): Promise<T>;
}

Public members

MemberKindSignatureDescription
constructorconstructor(options: SQLiteStructuredStoreOptions): SQLiteStructuredStoreCreates an instance of this class.
deletemethoddelete(table: string, id: string): Promise<void>Public method; parameters and return type are shown in the signature.
getmethodget<T>(table: string, id: string): Promise<T | null>Public method; parameters and return type are shown in the signature.
insertmethodinsert<T extends { id: string; }>(table: string, record: T): Promise<void>Public method; parameters and return type are shown in the signature.
querymethodquery<T>(table: string, query: StructuredQuery): Promise<T[]>Public method; parameters and return type are shown in the signature.
transactionmethodtransaction<T>(fn: (tx: StructuredStoreProvider) => Promise<T>): Promise<T>Public method; parameters and return type are shown in the signature.
updatemethodupdate<T>(table: string, id: string, patch: Partial<T>): Promise<void>Public method; parameters and return type are shown in the signature.

LOCAL_ADAPTER_TYPES

LOCAL ADAPTER TYPES constant exported by the index module.

  • Kind: constant
  • Import: import { LOCAL_ADAPTER_TYPES } from '@codesoul-co/hypha-adapters-local';
  • Source module: index

Declaration

text
export declare const LOCAL_ADAPTER_TYPES: readonly ["sqlite", "local-vector", "file-artifact"];

createLocalStorageBackbone

Create Local Storage Backbone function with 1 public call signature; parameters and return types are listed below.

  • Kind: function
  • Import: import { createLocalStorageBackbone } from '@codesoul-co/hypha-adapters-local';
  • Source module: index

Declaration

text
export declare function createLocalStorageBackbone(options: LocalStorageBackboneOptions): LocalStorageBackbone;

Call signature

text
createLocalStorageBackbone(options: LocalStorageBackboneOptions): LocalStorageBackbone

Parameters

ParameterTypeRequiredDescription
optionsLocalStorageBackboneOptionsYesRequired parameter; accepted values are defined by the type column.

Returns

  • Type: LocalStorageBackbone
  • Description: The return contract is defined by the type shown above.

createLocalStorageProfiles

Create Local Storage Profiles function with 1 public call signature; parameters and return types are listed below.

  • Kind: function
  • Import: import { createLocalStorageProfiles } from '@codesoul-co/hypha-adapters-local';
  • Source module: index

Declaration

text
export declare function createLocalStorageProfiles(input: {
    eventDbFilename: string;
    structuredDbFilename: string;
    vectorFilename: string;
    artifactRootPath: string;
}): StorageProviderProfile[];

Call signature

text
createLocalStorageProfiles(input: { eventDbFilename: string; structuredDbFilename: string; vectorFilename: string; artifactRootPath: string; }): StorageProviderProfile[]

Parameters

ParameterTypeRequiredDescription
input{ eventDbFilename: string; structuredDbFilename: string; vectorFilename: string; artifactRootPath: string; }YesRequired parameter; accepted values are defined by the type column.

Returns

  • Type: StorageProviderProfile[]
  • Description: The return contract is defined by the type shown above.

FileArtifactStoreOptions

File Artifact Store Options interface with 1 public fields or methods.

  • Kind: interface
  • Import: import type { FileArtifactStoreOptions } from '@codesoul-co/hypha-adapters-local';
  • Source module: index

Declaration

text
export interface FileArtifactStoreOptions {
    rootPath: string;
}

Contract members

MemberKindSignatureDescription
rootPathpropertyrootPath: stringPublic property; its type, readonly modifier and optionality are shown in the signature.

FileToolRuntimeStoreOptions

File Tool Runtime Store Options interface with 1 public fields or methods.

  • Kind: interface
  • Import: import type { FileToolRuntimeStoreOptions } from '@codesoul-co/hypha-adapters-local';
  • Source module: index

Declaration

text
export interface FileToolRuntimeStoreOptions {
    filename: string;
}

Contract members

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

LocalAdapterProfile

Local Adapter Profile interface with 4 public fields or methods.

  • Kind: interface
  • Import: import type { LocalAdapterProfile } from '@codesoul-co/hypha-adapters-local';
  • Source module: index

Declaration

text
export interface LocalAdapterProfile {
    id: string;
    type: 'sqlite' | 'local-vector' | 'file-artifact';
    rootPath?: string;
    options?: Record<string, unknown>;
}

Contract members

MemberKindSignatureDescription
idpropertyid: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
optionspropertyoptions?: Record<string, unknown>Public property; its type, readonly modifier and optionality are shown in the signature.
rootPathpropertyrootPath?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
typepropertytype: "sqlite" | "local-vector" | "file-artifact"Public property; its type, readonly modifier and optionality are shown in the signature.

LocalHashEmbeddingProviderOptions

Local Hash Embedding Provider Options interface with 1 public fields or methods.

  • Kind: interface
  • Import: import type { LocalHashEmbeddingProviderOptions } from '@codesoul-co/hypha-adapters-local';
  • Source module: index

Declaration

text
export interface LocalHashEmbeddingProviderOptions {
    dimensions?: number;
}

Contract members

MemberKindSignatureDescription
dimensionspropertydimensions?: numberPublic property; its type, readonly modifier and optionality are shown in the signature.

LocalStorageBackbone

Local Storage Backbone interface with 7 public fields or methods.

  • Kind: interface
  • Import: import type { LocalStorageBackbone } from '@codesoul-co/hypha-adapters-local';
  • Source module: index

Declaration

text
export interface LocalStorageBackbone {
    profiles: StorageProviderProfile[];
    eventStore: SQLiteEventStore;
    structured: SQLiteStructuredStore;
    vector: LocalVectorIndexProvider;
    artifacts: FileArtifactStore;
    embeddings: EmbeddingProvider;
    memory: HybridMemoryProvider;
}

Contract members

MemberKindSignatureDescription
artifactspropertyartifacts: FileArtifactStorePublic property; its type, readonly modifier and optionality are shown in the signature.
embeddingspropertyembeddings: EmbeddingProviderPublic property; its type, readonly modifier and optionality are shown in the signature.
eventStorepropertyeventStore: SQLiteEventStorePublic property; its type, readonly modifier and optionality are shown in the signature.
memorypropertymemory: HybridMemoryProviderPublic property; its type, readonly modifier and optionality are shown in the signature.
profilespropertyprofiles: StorageProviderProfile[]Public property; its type, readonly modifier and optionality are shown in the signature.
structuredpropertystructured: SQLiteStructuredStorePublic property; its type, readonly modifier and optionality are shown in the signature.
vectorpropertyvector: LocalVectorIndexProviderPublic property; its type, readonly modifier and optionality are shown in the signature.

LocalStorageBackboneOptions

Local Storage Backbone Options interface with 8 public fields or methods.

  • Kind: interface
  • Import: import type { LocalStorageBackboneOptions } from '@codesoul-co/hypha-adapters-local';
  • Source module: index

Declaration

text
export interface LocalStorageBackboneOptions {
    rootPath: string;
    sqliteMode?: SQLiteEventStoreOptions['mode'];
    eventDbFilename?: string;
    structuredDbFilename?: string;
    vectorFilename?: string;
    artifactRootPath?: string;
    memoryTableName?: string;
    embeddings?: EmbeddingProvider;
}

Contract members

MemberKindSignatureDescription
artifactRootPathpropertyartifactRootPath?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
embeddingspropertyembeddings?: EmbeddingProviderPublic property; its type, readonly modifier and optionality are shown in the signature.
eventDbFilenamepropertyeventDbFilename?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
memoryTableNamepropertymemoryTableName?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
rootPathpropertyrootPath: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
sqliteModepropertysqliteMode?: "sqlite" | "json" | "auto" | "node-sqlite"Public property; its type, readonly modifier and optionality are shown in the signature.
structuredDbFilenamepropertystructuredDbFilename?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
vectorFilenamepropertyvectorFilename?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.

LocalVectorIndexProviderOptions

Local Vector Index Provider Options interface with 1 public fields or methods.

  • Kind: interface
  • Import: import type { LocalVectorIndexProviderOptions } from '@codesoul-co/hypha-adapters-local';
  • Source module: index

Declaration

text
export interface LocalVectorIndexProviderOptions {
    filename: string;
}

Contract members

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

SQLiteEventStoreOptions

SQLite Event Store Options interface with 3 public fields or methods.

  • Kind: interface
  • Import: import type { SQLiteEventStoreOptions } from '@codesoul-co/hypha-adapters-local';
  • Source module: index

Declaration

text
export interface SQLiteEventStoreOptions {
    filename: string;
    mode?: 'auto' | 'sqlite' | 'node-sqlite' | 'json';
    jsonFallbackFilename?: string;
}

Contract members

MemberKindSignatureDescription
filenamepropertyfilename: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
jsonFallbackFilenamepropertyjsonFallbackFilename?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
modepropertymode?: "sqlite" | "json" | "auto" | "node-sqlite"Public property; its type, readonly modifier and optionality are shown in the signature.

SQLiteStructuredStoreOptions

SQLite Structured Store Options interface with 3 public fields or methods.

  • Kind: interface
  • Import: import type { SQLiteStructuredStoreOptions } from '@codesoul-co/hypha-adapters-local';
  • Source module: index

Declaration

text
export interface SQLiteStructuredStoreOptions {
    filename: string;
    mode?: 'auto' | 'sqlite' | 'node-sqlite' | 'json';
    jsonFallbackFilename?: string;
}

Contract members

MemberKindSignatureDescription
filenamepropertyfilename: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
jsonFallbackFilenamepropertyjsonFallbackFilename?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
modepropertymode?: "sqlite" | "json" | "auto" | "node-sqlite"Public property; its type, readonly modifier and optionality are shown in the signature.