Programmatic API
Every surface the CLI and the extension use is also importable. The umbrella package re-exports the config model + sync runner and every workspace package, so a consumer can import the whole surface from the root or a single package through a subpath.
Where to start
- Umbrella (
@deltabox/toolchain) — the root exports and the namespaced packages. - Subpath exports — the per-package entry points.
- Package reference — every package's public exports.
- Logging — the shared logger.
- Examples — short, copy-pasteable recipes.
- Registering commands — wire
ToolchainCommand[]onto a commander program.
ts
import { defineConfig, loadToolchainConfig, runSync, defaultSyncTasks } from '@deltabox/toolchain';
const { config, tokens, projectType } = await loadToolchainConfig(process.cwd());
await runSync({ tasks: defaultSyncTasks(), cwd: process.cwd(), config, tokens, projectType });