Skip to main content

Module cloud

Module cloud 

Source
Expand description

[cloud] configuration.

[cloud]
# enabled = true          # unset: on while this machine is connected
url = "https://cloud.leanctx.com"
# root_key = "<base64>"   # self-hosted Cloud: its root public key
auto_capture = true       # 3.11.5 name `auto_draft` is read as an alias
pull_interval_minutes = 5  # 1..=60
metrics_upload = true
receipts_upload = true
bus = "auto"              # auto | off
vault_labels = true
presence_names = true     # false: no "working on" line for your team

[cloud.worker]             # stricter local caps on the opt-in budget
# max_tasks_per_day = 3
# max_tokens_per_day = 200000
# max_usd_micros_per_day = 2000000

The Cloud connector reads this section and re-exports these types as its own config. It also registers what a config set of a cloud. key applies at once (register_off_switches).

Structs§

CloudConfig
CloudWorkerConfig
[cloud.worker]: stricter local caps on top of the server’s budget.

Enums§

CloudBusMode

Constants§

DEFAULT_PULL_INTERVAL_MINUTES
Default minutes between scheduler passes (SPEC-ENGINE §3.16).
PULL_INTERVAL_BOUNDS
Allowed pull_interval_minutes (SPEC-ENGINE §3.16).

Functions§

register_off_switches
Register what a config set of a cloud. key applies at once (the connector stops its local recording when a switch is off). The first registration wins.
schema_section
[cloud] in lean-ctx config schema / config validate.

Type Aliases§

OffSwitches
Applies the [cloud] off switches to the connector’s local state.