Skip to content

v1.0.0-pre.0

Pre-release
Pre-release

Choose a tag to compare

@darko-mijic darko-mijic released this 21 Feb 06:11
· 157 commits to main since this release

Context engineering for AI-assisted codebases.

Turn TypeScript annotations and Gherkin specs into a structured, queryable delivery state — living documentation, architecture graphs, and FSM-enforced workflows that AI agents consume without hallucinating.

Install

npm install @libar-dev/delivery-process@pre

Requires Node.js >= 18.0.0 and ESM ("type": "module").

Highlights

  • 12 subpath exports — granular imports for scanner, extractor, codecs, validation, taxonomy, and more
  • 7 CLI commands — generate-docs, process-api, lint-process, lint-patterns, validate-patterns, lint-steps, generate-tag-taxonomy
  • 27 CLI subcommands via the Data API — typed JSON queries for AI coding sessions (Claude Code, Cursor, Copilot Workspace)
  • FSM-enforced workflows — lint-process --staged validates status transitions at commit time, not weeks later
  • Dual-source architecture — TypeScript annotations own runtime relationships, Gherkin specs own planning constraints
  • Codec-based generation — patterns, roadmaps, architecture decisions, product areas, business rules, and more from a single ReferenceDocConfig
  • 6 Mermaid diagram types — C4Context, sequence, class, state, flowchart, and dependency graphs generated from @docs-uses and @docs-depends-on annotations
  • 3 presets — generic (@docs-*), libar-generic (@libar-docs-*), and ddd-es-cqrs (21 categories for DDD/Event Sourcing)

Proven at Scale

Validated across 422 executable specifications and an 8.8M line monorepo. AI context usage dropped from ~100% to 50-65% during heavy editing sessions. Work completed per session increased 5X. 106 custom ESLint rules replaced with structured specs: 106 → 0.

Quick Start

/** @docs */

/**
 * @docs-pattern UserAuthentication
 * @docs-status roadmap
 * @docs-uses SessionManager, TokenValidator
 */
export class UserAuthentication { /* ... */ }
npx generate-docs -g patterns -i "src/**/*.ts" -o docs -f
npx lint-process --staged

Documentation

Full docs ship with the package and are available in the repo:


npm: https://www.npmjs.com/package/@libar-dev/delivery-process
License: MIT