Skip to main content

Module types

Module types 

Source

Modules§

credentials
Credentials type definitions for CLI authentication
project
Project configuration types

Structs§

Credentials
DeviceCodeResponse
EnvironmentConfig
Configuration for a specific environment
EnvironmentsConfig
Per-environment configuration (dev, staging, prod), with the active environment selected via the MECHA10_ENV environment variable or --env flag.
NodeSpec
Parsed node specification from namespaced string format (e.g. @mecha10/listener for a framework node, my-custom for a project node, @someorg/cool-node for a future registry node). The legacy @local/* prefix is no longer supported.
NodesConfig
Map of node identifiers (e.g. @mecha10/listener, my-custom) to their pinned versions.
ProjectConfig
TurnConfig
Resolved TURN server config: relay URL + credentials for a TURN entry in a WebRTC ICE server list. Standalone since mecha10-cli-core doesn’t depend on mecha10-video.

Enums§

AuthError
DeviceCodeStatus
NodeSource
Node source type based on namespace prefix

Functions§

is_local_project_node
Whether name is declared as a local project node (NodeSource::Project) according to the mecha10.json at config_path. Never errors: a missing/unparsable config resolves to false.
load_project_config
Load full project config from mecha10.json
turn_config
Resolve TURN server config: an explicit runtime env var wins, then the build-time-baked default. Returns None when neither is present (including empty), so callers can fall through to a runtime API fetch from mecha10-api.