orria-labs/dispatchkit ? reverse-engineered prompt

Reverse engineered prompt

Build me a lightweight TypeScript framework for Bun that helps organize an app around queries, mutations, and actions.

I want to be able to define operations in a src/modules folder, define optional config, logger, infra, and transport modules, then have the app scan everything and build a runtime object with config, logger, infra, bus, and transport. It should enforce simple runtime rules so queries can only call queries, mutations can call queries and mutations, and actions can call everything. Add optional zod validation for operation input and return values, plus helpful context access for module and transport code. Also generate runtime files into src/generated/runtime, including a manifest and type files, and expose a CLI command to generate once or watch for changes. If anything is unclear, look up the current Bun and TypeScript docs online and make it clean and easy to use.