Skip to content

@codesoul-co/hypha-memory / canonical-runtime-config

Using this module

Use the Canonical runtime config module for executing runtime behavior at this boundary. It exports 1 class, 3 constants, 3 interfaces.

Import from the package entrypoint

ts
import {
  CanonicalMemoryRuntimeLoader,
  canonicalMemoryRuntimeConfigExample,
  canonicalMemoryRuntimeConfigJsonSchema,
  canonicalMemoryRuntimeConfigSchema,
} from '@codesoul-co/hypha-memory';

import type {
  CanonicalMemoryRuntimeConfig,
  LoadedCanonicalMemoryRuntimeConfig,
  MemoryRuntimeReferenceResolver,
} from '@codesoul-co/hypha-memory';

Usage patterns

  • Use the 3 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 1 class as constructable runtime implementations. Each symbol entry lists its constructor and public methods.
  • The 3 constant/enum exports provide stable values, schemas, definitions, or defaults. Reuse these exports instead of copying internal values into an application.

Public exports

SymbolKindSignatureDescription
CanonicalMemoryRuntimeLoaderclassnew CanonicalMemoryRuntimeLoader(resolver: MemoryRuntimeReferenceResolver): CanonicalMemoryRuntimeLoaderCanonical Memory Runtime Loader class with 3 public constructor or member entries; its exact declarations are listed below.
canonicalMemoryRuntimeConfigExampleconstantconst canonicalMemoryRuntimeConfigExample: CanonicalMemoryRuntimeConfigValid example value for Canonical Memory Runtime Config.
canonicalMemoryRuntimeConfigJsonSchemaconstantconst canonicalMemoryRuntimeConfigJsonSchema: JsonSchemaJSON Schema for Canonical Memory Runtime Config.
canonicalMemoryRuntimeConfigSchemaconstantconst canonicalMemoryRuntimeConfigSchema: ZodType<CanonicalMemoryRuntimeConfig, ZodTypeDef, CanonicalMemoryRuntimeConfig>Runtime schema for Canonical Memory Runtime Config.
CanonicalMemoryRuntimeConfiginterfaceinterface CanonicalMemoryRuntimeConfig extends MemoryRuntimeConfigCanonical Memory Runtime Config interface with 3 public fields or methods.
LoadedCanonicalMemoryRuntimeConfiginterfaceinterface LoadedCanonicalMemoryRuntimeConfigLoaded Canonical Memory Runtime Config interface with 2 public fields or methods.
MemoryRuntimeReferenceResolverinterfaceinterface MemoryRuntimeReferenceResolverMemory Runtime Reference Resolver interface with 1 public fields or methods.

CanonicalMemoryRuntimeLoader

Canonical Memory Runtime Loader class with 3 public constructor or member entries; its exact declarations are listed below.

  • Kind: class
  • Import: import { CanonicalMemoryRuntimeLoader } from '@codesoul-co/hypha-memory';
  • Source module: canonical-runtime-config

Declaration

text
export declare class CanonicalMemoryRuntimeLoader {
    constructor(resolver: MemoryRuntimeReferenceResolver);
    load(input: unknown): Promise<LoadedCanonicalMemoryRuntimeConfig>;
    create(factory: MemoryRuntimeFactory, input: unknown): Promise<MemoryRuntime>;
}

Public members

MemberKindSignatureDescription
constructorconstructor(resolver: MemoryRuntimeReferenceResolver): CanonicalMemoryRuntimeLoaderCreates an instance of this class.
createmethodcreate(factory: MemoryRuntimeFactory, input: unknown): Promise<MemoryRuntime>Public method; parameters and return type are shown in the signature.
loadmethodload(input: unknown): Promise<LoadedCanonicalMemoryRuntimeConfig>Public method; parameters and return type are shown in the signature.

canonicalMemoryRuntimeConfigExample

Valid example value for Canonical Memory Runtime Config.

  • Kind: constant
  • Import: import { canonicalMemoryRuntimeConfigExample } from '@codesoul-co/hypha-memory';
  • Source module: canonical-runtime-config

Declaration

text
export declare const canonicalMemoryRuntimeConfigExample: CanonicalMemoryRuntimeConfig;

canonicalMemoryRuntimeConfigJsonSchema

JSON Schema for Canonical Memory Runtime Config.

  • Kind: constant
  • Import: import { canonicalMemoryRuntimeConfigJsonSchema } from '@codesoul-co/hypha-memory';
  • Source module: canonical-runtime-config

Declaration

text
export declare const canonicalMemoryRuntimeConfigJsonSchema: JsonSchema;

canonicalMemoryRuntimeConfigSchema

Runtime schema for Canonical Memory Runtime Config.

  • Kind: constant
  • Import: import { canonicalMemoryRuntimeConfigSchema } from '@codesoul-co/hypha-memory';
  • Source module: canonical-runtime-config

Declaration

text
export declare const canonicalMemoryRuntimeConfigSchema: ZodType<CanonicalMemoryRuntimeConfig, ZodTypeDef, CanonicalMemoryRuntimeConfig>;

CanonicalMemoryRuntimeConfig

Canonical Memory Runtime Config interface with 3 public fields or methods.

  • Kind: interface
  • Import: import type { CanonicalMemoryRuntimeConfig } from '@codesoul-co/hypha-memory';
  • Source module: canonical-runtime-config

Declaration

text
export interface CanonicalMemoryRuntimeConfig extends MemoryRuntimeConfig {
    schemaVersion: '1.0';
}

Contract members

MemberKindSignatureDescription
activeProfilepropertyactiveProfile: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
profilespropertyprofiles: Record<string, MemoryRuntimeProfile>Public property; its type, readonly modifier and optionality are shown in the signature.
schemaVersionpropertyschemaVersion: "1.0"Public property; its type, readonly modifier and optionality are shown in the signature.

LoadedCanonicalMemoryRuntimeConfig

Loaded Canonical Memory Runtime Config interface with 2 public fields or methods.

  • Kind: interface
  • Import: import type { LoadedCanonicalMemoryRuntimeConfig } from '@codesoul-co/hypha-memory';
  • Source module: canonical-runtime-config

Declaration

text
export interface LoadedCanonicalMemoryRuntimeConfig {
    config: MemoryRuntimeConfig;
    references: ReadonlyMap<string, unknown>;
}

Contract members

MemberKindSignatureDescription
configpropertyconfig: MemoryRuntimeConfigPublic property; its type, readonly modifier and optionality are shown in the signature.
referencespropertyreferences: ReadonlyMap<string, unknown>Public property; its type, readonly modifier and optionality are shown in the signature.

MemoryRuntimeReferenceResolver

Memory Runtime Reference Resolver interface with 1 public fields or methods.

  • Kind: interface
  • Import: import type { MemoryRuntimeReferenceResolver } from '@codesoul-co/hypha-memory';
  • Source module: canonical-runtime-config

Declaration

text
export interface MemoryRuntimeReferenceResolver {
    resolve(reference: string, kind: 'connection' | 'secret' | 'environment' | 'dependency'): Promise<unknown>;
}

Contract members

MemberKindSignatureDescription
resolvemethodresolve(reference: string, kind: "connection" | "secret" | "environment" | "dependency"): Promise<unknown>Public method; parameters and return type are shown in the signature.