Metakit / API

@doeixd/metakit/tooling

MetaKit semantic developer tooling (@doeixd/metakit/tooling).

The Effect-native SemanticIndex service over named MetaKit definitions (expressions, transitions, functions, derived operations, machines), their manifest, and semanticDiff of two manifests — standalone with zero Vite, editor, or UI runtime dependencies.

Distinguishes logical DeclarationId (stable across non-semantic edits), DefinitionFingerprint (content identity from @doeixd/metakit/artifact), and SourceOrigin (provenance excluded from semantic fingerprints).

Namespaces

DefinitionConstructors for named MetaKit definitions, indexed by SemanticIndex and listed by manifest.

Functions

layerProvide a SemanticIndex layer built from entries.
makeIndexBuild an in-memory SemanticIndexService from explicit DefinitionEntrys. Rejects duplicate DeclarationIds with DuplicateDeclarationError, and fails with the…
manifestDescribe entries as a Manifest: each definition's executable and contract hashes, kind, references and canonical form, and each name's contract hash. The…
semanticDiffCompare two manifests. Definitions are matched by contract hash first: one hash under a name that is gone and a name that is new is renamed. The names left…

Classes

DuplicateDeclarationErrorTwo definitions claimed the same explicit DeclarationId.
SemanticIndexEffect Context.Service providing semantic analysis over indexed MetaKit definitions.
UnknownDeclarationErrorLookup of a DeclarationId not present in the index.

Interfaces

DefinitionInfo
DefinitionOptions
DependencyReport
ExplainReport
ImpactReport
ManifestA deterministic description of a set of named definitions (manifest).
ManifestDefinitionOne definition of a manifest.
ManifestDiffWhat semanticDiff reports, each list of names sorted.
ManifestUnhashableA named definition with no hash, and why (Artifact.Hash.Unhashable).
Reference
SemanticIndexService
SourceOriginOptional source provenance; excluded from every fingerprint.
ToolingDiagnostic

Types

DeclarationIdLogical declaration identifier (e.g. "Account.canWithdraw"), stable across non-semantic edits.
DefinitionEntry
DefinitionFingerprintA definition's executable hash: Artifact.fingerprint of an expression, or the executable of its kind's hashes.
DefinitionKindWhat a named definition is.