UNPKG

@hotmeshio/hotmesh

Version:

Permanent-Memory Workflows & AI Agents

45 lines (44 loc) 1.81 kB
import { ILogger } from '../logger'; import { StoreService } from '../store'; import { DependencyExport, ExportOptions, JobActionExport, JobExport } from '../../types/exporter'; import { ProviderClient, ProviderTransaction } from '../../types/provider'; import { StringStringType, Symbols } from '../../types/serializer'; /** * Downloads job data and expands process data and * includes dependency list */ declare class ExporterService { appId: string; logger: ILogger; store: StoreService<ProviderClient, ProviderTransaction>; symbols: Promise<Symbols> | Symbols; constructor(appId: string, store: StoreService<ProviderClient, ProviderTransaction>, logger: ILogger); /** * Convert the job hash into a JobExport object. * This object contains various facets that describe the interaction * in terms relevant to narrative storytelling. */ export(jobId: string, options?: ExportOptions): Promise<JobExport>; /** * Inflates the key * into a human-readable JSON path, reflecting the * tree-like structure of the unidimensional Hash */ inflateKey(key: string): string; /** * Inflates the job data into a JobExport object * @param jobHash - the job data * @param dependencyList - the list of dependencies for the job * @returns - the inflated job data */ inflate(jobHash: StringStringType, dependencyList: string[]): JobExport; /** * Inflates the dependency data into a JobExport object by * organizing the dimensional isolate in such a way as to interleave * into a story * @param data - the dependency data * @returns - the organized dependency data */ inflateDependencyData(data: string[], actions: JobActionExport): DependencyExport[]; } export { ExporterService };