runtime

5 modules

  • runtime/deno.ts

    Deno implementation of RuntimeDeps.

    Provides create_deno_runtime(args) — a factory returning a RuntimeDeps backed by Deno APIs. Only imported by Deno entry points (compiled binaries for tx, zzz, etc.).

  • runtime/deps.ts

    Shared dependency interfaces for runtime operations.

    Small composable interfaces that functions accept for only the capabilities they need. Both Deno and Node implementations satisfy all these interfaces via RuntimeDeps.

  • runtime/fs.ts

    File system utilities.

  • runtime/mock.ts

    Mock RuntimeDeps for testing.

    Provides a fully controllable runtime implementation for unit tests. Consumer projects can extend MockRuntime with project-specific helpers (e.g. setup_mock_tx_config) that stay local.

  • runtime/node.ts

    Node.js implementation of RuntimeDeps.

    Provides the same interface as deno.ts but backed by Node.js APIs. Used for running servers in Node.js and for tests (vitest runs in Node).