@maka/runtime@maka/runtime is Maka's pure-Node agent runtime. It owns model/backend execution, session sandbox-boundary control flow, event projection, context handling, recovery, and sandbox-aware workspace execution. Product shells compose it; they do not reimplement its loop.
The package root barrel and the subpaths declared in package.json are supported public APIs. Do not import undeclared internal source paths from another package. The main integration points are:
SessionManager for session and turn orchestration.BackendRegistry and AgentBackend for backend selection.AiSdkBackend for the shipped backend implementation. FakeBackend is test-only: it lives under test-only/, is exported as @maka/runtime/test-only/fake-backend, and release packaging drops that directory, so no production module may import it. Tests and the Desktop E2E run reach it through the composition's primaryBackendFactory seam.buildBuiltinTools() and the workspace executor interfaces for tool composition.RuntimeRunner, runtime events, projections, and recovery helpers for invocation lifecycle.Desktop composition lives in apps/desktop/src/main/main.ts. Other clients execute Maka through Runtime Host rather than composing Runtime directly.
AgentBackend and register it through the existing registry.WorkspaceExecutor.packages/core and durable JSONL state in packages/storage.package.json subpath rather than importing internal files from another package.For the system-level model and code-reading map, start with the root ARCHITECTURE.md. Sandbox-specific contracts live in src/sandbox/README.md.