Skip to main content

Module server

Module server 

Source
Expand description

Shared orchestrator server state.

Wraps ManagedServer + Client + cached model context limits + config.

Structs§

OrchestratorServer
Shared state wrapping the managed OpenCode server and HTTP client.

Constants§

OPENCODE_ORCHESTRATOR_MANAGED_ENV
Environment variable name for the orchestrator-managed recursion guard.
ORCHESTRATOR_MANAGED_GUARD_MESSAGE
User-facing message returned when orchestrator tools are invoked in a nested context.

Functions§

init_with_retry
Retry an async init operation once (2 total attempts) with tracing logs.
managed_guard_enabled
Check if the orchestrator-managed env var is set (guard enabled).

Type Aliases§

ModelKey
Key for looking up model context limits: (provider_id, model_id)