Skip to main content

Module cloud_gate

Module cloud_gate 

Source
Expand description

Whether this engine may use LeanCTX | Cloud: the release switch, the preview switch for a loopback Cloud, and the lines printed while Cloud is off. The engine reads it to keep Cloud tools and commands out of every list; the Cloud connector re-exports it.

Constants§

CLOUD_AVAILABLE
Release switch: the connector shipped switched off in 3.12.0 and 3.12.1 (cloud connect/cloud link refused, cloud hidden from help, suggestions and completions). Owner 2026-11-04: LeanCTX | Cloud opens with 3.12.2.
CLOUD_TOOLS
Cloud MCP tools. They ship with the connector but follow its release switch (available_locally, owner 28.10.): while it is off they are in no tool list and every call answers TOOL_NOT_AVAILABLE.
NOT_AVAILABLE
The one line cloud connect/cloud link print while the switch is off.
PREVIEW_ENV
Test switch: LEAN_CTX_CLOUD_PREVIEW=1 opens the connector before the release, for a loopback Cloud only (the FakeCloud of the test suite).
TOOL_NOT_AVAILABLE
The one line a call to a Cloud MCP tool (ctx_tasks) answers while the switch is off; the tools stay out of every tool list.

Functions§

available_for
Whether this engine may connect to the Cloud at origin.
available_locally
Whether Cloud commands that name no origin (cloud link) may run.
is_loopback
Whether origin names this machine (127.0.0.1, localhost, ::1).