Package map
darkf ships two packages:
@psimona/darkf— everything a workflow author or thedarkfbinary needs (npm publishes the unscopeddarkfname as blocked). One package, four source folders undersrc/, laid out as one strict dependency chain:core/— the shared vocabulary:types.ts(every type on this site’s Core types page),graph.ts(registry-building and target resolution),mermaid.ts(render-only, never parsed back),journal.ts(the JSONL event shape). Zero runtime dependencies — nothing it depends on, by design.engine/— the interpreter.run.tsis the dispatch loop: retries, per-attempt timeouts, thevalidatehook, usage-limit backoff, cycle-limit andmaxStepscircuit breakers, unconditional journaling. Depends only oncore/.kit/— the workflow-authoring library: the two built-inAgentRunneradapters (claudeCodeRunner,opencodeRunner), the handoff contract, and the run registry/status helpers behind CLI commands. Depends oncore/andengine/.cli/— thedarkfbinary itself. Depends on all three.
darkf-opencode-plugin— an experimental OpenCode TUI integration (a live pane showing run status inside the OpenCode editor). No public release yet. Its own package, because its peer dependencies (@opencode-ai/plugin,@opentui/*,solid-js) are real and optional — no other consumer needs them.
A dependency-cruiser rule enforces the one-way chain
core → engine → kit → cli in CI; core/ can never import any of its
own consumers, and engine/ can never import the harness.