Skip to main content

Runtime

@forge/monorepo


@forge/monorepo / backend/src / Runtime

Type Alias: Runtime

Runtime = object

Defined in: backend/src/capabilities/runtime.ts:99

Properties

capabilities

readonly capabilities: CapabilityMap

Defined in: backend/src/capabilities/runtime.ts:100


floor

readonly floor: RuntimeFloor

Defined in: backend/src/capabilities/runtime.ts:102

The floor, always available.


services

readonly services: Required<RuntimeServices>

Defined in: backend/src/capabilities/runtime.ts:110


stores

readonly stores: Required<RuntimeStores>

Defined in: backend/src/capabilities/runtime.ts:109

Capability-governed access. Reading a name whose capability is off throws, naming the capability.

Reading, not calling — so a host cannot get a reference to a store it has turned off and use it later, which is the loophole a require()-style check leaves open.

Methods

enabled()

enabled(capability): boolean

Defined in: backend/src/capabilities/runtime.ts:112

True when the capability is on. For a host that wants to branch rather than be refused.

Parameters

capability

"skills" | "questions" | "history" | "memory" | "compaction" | "citations" | "mcp" | "usage" | "guardrails" | "shell"

Returns

boolean