TOC Toolkit API - v0.1.0
    Preparing search index...

    TOC Toolkit API - v0.1.0

    TOC Toolkit

    TOC Toolkit provides models, algorithms, decision procedures and evidence verification for formal languages and machines. It includes a command line interface and benchmark tools.

    Use Node.js 24 or later and pnpm 11.27.0. From the repository root, install dependencies and run the checks.

    pnpm install --frozen-lockfile
    pnpm check

    The checkout includes compiled ESM and TypeScript declarations for a Git-pinned install. Run pnpm build:check to compare the compiled files with a fresh build. Generative fixture imports use the optional fast-check peer.

    Build the package with pnpm build. The package exports its subjects through the subpaths listed in package.json. The command reference describes the CLI, and the benchmark guide describes benchmark runs. Subject references are in docs/subjects.

    Run pnpm run docs from this checkout and open site/api/index.html to browse the TypeDoc reference. Search works offline. Look up a public import path or search for a type, builder or operation by name. Run pnpm docs:check to verify that every name exported by each public import path has a declaration and a description in the reference.

    Task Start here
    Build a checked model, run a word, convert a model or ask a question Root API and public entry point
    Build, determinize or minimize a finite automaton Automata and regular expressions
    Analyze a grammar or inspect a parse forest Context-free grammars and parsing
    Simulate a machine or inspect a run Machine kernel, pushdown machines and Turing machines
    Resume a decision or check its evidence Decision sessions and verification
    Integrate an asynchronous client Portable engine
    Find an algorithm's assumptions, construction or stopping conditions Algorithm guides

    Use strict TypeScript and describe public values and behavior with types. Use pnpm lint to check code and pnpm lint:size to find functions and files for a readability review. Give a growing unit a separate module when the new name describes an independent responsibility.

    The core subjects use portable code. They import another subject through its public package subpath and follow the dependency map in tools/check-boundaries.mjs. The checker rejects runtime dependency cycles and external imports from core. Fixture subjects may use fast-check. The CLI and benchmarks may use Node builtins. Evidence verification is independent of the decision procedures that produce evidence.

    Run pnpm boundaries to check the source imports and package exports. Run pnpm test for unit tests and pnpm perf for performance tests.