88 acquireQaCredentialLease ,
99 startQaCredentialLeaseHeartbeat ,
1010} from "../live-transports/shared/credential-lease.runtime.js" ;
11+ import { isTruthyOptIn , trimToValue } from "../mantis-options.runtime.js" ;
12+ import { createPhaseTimer , type MantisPhaseTimings } from "../mantis-phase-timer.runtime.js" ;
1113import {
1214 type CommandRunner ,
1315 type CrabboxInspect ,
@@ -20,7 +22,6 @@ import {
2022 stopCrabbox ,
2123 warmupCrabbox ,
2224} from "./crabbox-runtime.js" ;
23- import { createPhaseTimer , type MantisPhaseTimings } from "../mantis-phase-timer.runtime.js" ;
2425
2526export type MantisTelegramDesktopBuilderOptions = {
2627 commandRunner ?: CommandRunner ;
@@ -126,16 +127,6 @@ const TELEGRAM_PROFILE_ARCHIVE_ENV_NAME_ENV =
126127 "OPENCLAW_MANTIS_TELEGRAM_DESKTOP_PROFILE_ARCHIVE_ENV" ;
127128const TELEGRAM_PROFILE_DIR_ENV = "OPENCLAW_MANTIS_TELEGRAM_DESKTOP_PROFILE_DIR" ;
128129
129- function trimToValue ( value : string | undefined ) {
130- const trimmed = value ?. trim ( ) ;
131- return trimmed && trimmed . length > 0 ? trimmed : undefined ;
132- }
133-
134- function isTruthyOptIn ( value : string | undefined ) {
135- const normalized = value ?. trim ( ) . toLowerCase ( ) ;
136- return normalized === "1" || normalized === "true" || normalized === "yes" ;
137- }
138-
139130function normalizeHydrateMode (
140131 value : string | undefined ,
141132) : MantisTelegramDesktopHydrateMode | undefined {
0 commit comments