refactor: extract shared telemetron sidecar installer#54
Conversation
💡 Codex Reviewlowkey/packs/openclaw/install.sh Lines 255 to 256 in eed963c This refactor removes ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
eed963c to
31365c4
Compare
💡 Codex Reviewlowkey/packs/common-telemetron.sh Line 166 in 31365c4 The new shared installer calls ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
31365c4 to
d3a878e
Compare
💡 Codex Reviewlowkey/packs/common-telemetron.sh Lines 166 to 170 in d3a878e Calling ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Move duplicated telemetron logic (~230 lines) from openclaw and roundhouse pack installers into packs/common-telemetron.sh. Each pack now calls: source common-telemetron.sh install_telemetron <mode> The shared helper: - Gates on platform/opt-out checks - Detects AWS account tier (internal/external) - Writes tier files for telemetron to read - Installs binary via sudo (with retry) - Runs 'telemetron detect --mode <mode>' for auto-discovery Uses the modern 'detect' approach (not legacy env vars), which auto-discovers sessions by install directory (v0.5.2+).
d3a878e to
be66929
Compare
Moves ~230 lines of duplicated telemetron logic from openclaw and roundhouse packs into
packs/common-telemetron.sh.Each pack now calls:
Changes:
packs/common-telemetron.sh— singleinstall_telemetron <mode>public APIpacks/openclaw/install.sh— removed 104 lines of inline telemetron codepacks/roundhouse/install.sh— removed 124 lines of inline telemetron codeDesign:
telemetron detect(not legacy env vars) — auto-discovers by install dirsudopreserves SUDO_USER so telemetron resolves correct home dircurl --retry 3for network resilience