@aicr/forge-engine
v0.1.2
Published
FORGE domain builder engine — contracts, ports, bindings
Downloads
29
Readme
@aicr/forge-engine
Core engine for the FORGE domain builder platform. Provides contracts, ports, and bindings for building domain-specific artifact generators.
Install
npm install @aicr/forge-engineMost developers should use
@aicr/forge-sdkinstead, which re-exports engine types and adds the public session API.
Key Exports
| Export | Description |
|--------|------------|
| ForgeEngine | Core engine class — orchestrates pack loading, constraint evaluation, output rendering |
| ForgeEngineConfig | Configuration interface for engine initialization |
| SessionState | Session state contract |
| PackManifest | Pack manifest schema (Zod-validated) |
| OutputRegistry | Registry for output renderers |
| Port interfaces | AIProvider, ForgePackLoader, OutputRenderer, ServiceResolver, SessionManager |
| Synthetic bindings | MockAIProvider, MockRenderer, MemoryPackLoader, MemorySessionManager |
Usage
import { ForgeEngine, MemoryPackLoader, MockAIProvider } from '@aicr/forge-engine'
const engine = new ForgeEngine({
loader: new MemoryPackLoader(packs),
ai: new MockAIProvider(),
})License
MIT
