Skip to main content

Function: createKernel()

createKernel(config, options?): Promise<Kernel>

Defined in: packages/core/src/composition/kernel.ts:179

Constructs all use cases from the fully-resolved project configuration and returns them grouped into a Kernel.

Shared adapter instances (repositories, git adapter, hook runner, etc.) are built once via createKernelInternals and reused across all use cases, avoiding redundant construction of identical adapters.

Parameters

config

SpecdConfig

The fully-resolved project configuration from ConfigLoader

options?

KernelOptions

Optional kernel construction options

Returns

Promise<Kernel>

A fully-wired kernel with all use cases