Skip to content

Complete API reference

This reference documents every public export from the current Hypha npm package entrypoints, grouped by package and source module. Each module explains its purpose and entrypoint imports; each symbol entry includes its TypeScript declaration, source location, function parameters and return type, or the public members of its class, interface, or enum.

Source of record: These pages are generated from built TypeScript declarations by npm run docs:api. Functions, classes, interfaces, types and enums retain complete declarations. Compiler-expanded constant types longer than 4,000 characters are compacted for readability and retain a source link.

Package index

PackageAPI scope
@codesoul-co/hypha-coreShared contracts, schemas, Events, policy and runtime ports.
@codesoul-co/hypha-storageProvider-neutral storage topology contracts and profile builders.
@codesoul-co/hypha-fsmFSM specifications, topology analysis, snapshots, transitions and recovery.
@codesoul-co/hypha-kernelReAct Agent specification and kernel composition contracts.
@codesoul-co/hypha-harnessEvent-first execution, tracing, projection, replay and orchestration.
@codesoul-co/hypha-modelsModel provider registry, routing and deterministic mock providers.
@codesoul-co/hypha-inferenceProvider-neutral inference requests, routing, control and streaming.
@codesoul-co/hypha-memoryMemory contracts, pipelines, policy, stores, retrieval and evaluation.
@codesoul-co/hypha-skillsVersioned Skill definitions and progressive-loading registry.
@codesoul-co/hypha-toolsTool contracts, registries, governed execution and workspace boundaries.
@codesoul-co/hypha-mcpMCP integration specs, clients, policy and lifecycle management.
@codesoul-co/hypha-domainDomain Pack validation and compilation into runtime-owned contracts.
@codesoul-co/hypha-adapters-localLocal-first SQLite, vector, artifact and runtime adapters.
@codesoul-co/hypha-serving-cacheServing cache keys, stores, policies and cache coordination.
@codesoul-co/hypha-testingTrace, replay, fixture and deterministic assertion helpers.

Public API boundary

  • Only symbols exported by a package entrypoint are listed; non-exported source implementation is not public API.
  • TypeScript types disappear at runtime; parse untrusted input with the corresponding Zod/spec definition.
  • Tool, MCP, memory, file and external writes must pass through policy, trace and harness hooks.
  • Events are the source of truth; Session and Run are rebuildable product/context views.