@0xsarwagya/ontoly-enhancer
v1.3.3
Published
Deterministic Enhancer API for immutable Ontoly Software Graph artifact transformations.
Downloads
541
Maintainers
Readme
@0xsarwagya/ontoly-enhancer
Responsibility
Deterministic Enhancer API for Ontoly.
Enhancers are pure graph transformations. They consume immutable Ontoly artifacts
such as SoftwareGraph and SemanticIndex, then produce versioned artifacts such
as reports, diagrams, validation output, documentation, or SDK inputs.
Enhancers never parse repositories, mutate the Software Graph, or use AI.
Evidence routing is modeled as the EvidencePack artifact and evidence-pack
enhancer so agents, MCP, CLI, and Workbench can share the same deterministic
payload without introducing an ontoly-router package.
See the repository architecture map for package boundaries.
import {
createEnhancerPipeline,
createDefaultEnhancerContext,
defineEnhancer,
} from "@0xsarwagya/ontoly-enhancer";See docs/enhancers.md for the lifecycle, manifest format, caching model, and
CLI usage.
Installation
pnpm add @0xsarwagya/ontoly-enhancerAPI
defineEnhancer()declares deterministic graph artifact transformations.runEnhancerPipeline()executes ordered enhancer DAGs.- Artifact registry, cache contracts, manifests, validation issues, and test helpers.
Example
import { defineEnhancer, runEnhancerPipeline } from "@0xsarwagya/ontoly-enhancer";
const enhancer = defineEnhancer({
id: "example",
name: "Example",
version: "1.0.0",
requires: [],
produces: [],
run: async () => ({ artifacts: [], diagnostics: [] }),
});
await runEnhancerPipeline({ enhancers: [enhancer], context });Status
Stable v1.0.0 package. Public contracts are governed by the Software Graph specification and RFC process.
