@bjelser/core
v3.0.11
Published
docent's default implementation: 29 canonical scene plugins, 6 presets, the Kokoro TTS adapter, and the default narration + audio-rhythm features. Depends on @bjelser/kit; registers everything through the framework's public API.
Readme
@bjelser/core
docent's default implementation. The 29 canonical scene plugins, 6 presets, the Kokoro TTS adapter, and the default narration + audio-rhythm features. Depends on
@bjelser/kit; registers everything through the framework's public API.
There is no private path. If @bjelser/core ever has to reach into
@bjelser/kit internals to register a scene, the API is wrong — fix the
API, not the workaround.
Loading
import {Engine} from '@bjelser/kit';
import * as core from '@bjelser/core';
const engine = new Engine().use(core);core is an array of plugins; engine.use(core) registers every plugin
in one call via the polymorphic use(plugin | plugin[]) dispatch.
Adding a plugin
- Create the plugin's directory under
src/scenes/,src/presets/,src/features/, orsrc/tts/. - Export the plugin from the directory's
index.ts. - The integrator adds the plugin to
src/index.ts'scorePluginsarray.
The integrator owns src/index.ts. Per-plugin agents don't touch it —
they add their plugin to its own directory and the integrator assembles
the manifest at merge time.
