chore: oxfmt doctor platform notes
This commit is contained in:
parent
15b64ebfe8
commit
c46dfc8411
@ -38,7 +38,8 @@ async function launchctlGetenv(name: string): Promise<string | undefined> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function hasConfigGatewayCreds(cfg: ClawdbotConfig): boolean {
|
function hasConfigGatewayCreds(cfg: ClawdbotConfig): boolean {
|
||||||
const localToken = typeof cfg.gateway?.auth?.token === "string" ? cfg.gateway?.auth?.token.trim() : "";
|
const localToken =
|
||||||
|
typeof cfg.gateway?.auth?.token === "string" ? cfg.gateway?.auth?.token.trim() : "";
|
||||||
const localPassword =
|
const localPassword =
|
||||||
typeof cfg.gateway?.auth?.password === "string" ? cfg.gateway?.auth?.password.trim() : "";
|
typeof cfg.gateway?.auth?.password === "string" ? cfg.gateway?.auth?.password.trim() : "";
|
||||||
const remoteToken =
|
const remoteToken =
|
||||||
@ -59,7 +60,9 @@ export async function noteMacLaunchctlGatewayEnvOverrides(cfg: ClawdbotConfig) {
|
|||||||
const lines = [
|
const lines = [
|
||||||
"- launchctl environment overrides detected (can cause confusing unauthorized errors).",
|
"- launchctl environment overrides detected (can cause confusing unauthorized errors).",
|
||||||
envToken ? "- `CLAWDBOT_GATEWAY_TOKEN` is set; it overrides config tokens." : undefined,
|
envToken ? "- `CLAWDBOT_GATEWAY_TOKEN` is set; it overrides config tokens." : undefined,
|
||||||
envPassword ? "- `CLAWDBOT_GATEWAY_PASSWORD` is set; it overrides config passwords." : undefined,
|
envPassword
|
||||||
|
? "- `CLAWDBOT_GATEWAY_PASSWORD` is set; it overrides config passwords."
|
||||||
|
: undefined,
|
||||||
"- Clear overrides and restart the app/gateway:",
|
"- Clear overrides and restart the app/gateway:",
|
||||||
envToken ? " launchctl unsetenv CLAWDBOT_GATEWAY_TOKEN" : undefined,
|
envToken ? " launchctl unsetenv CLAWDBOT_GATEWAY_TOKEN" : undefined,
|
||||||
envPassword ? " launchctl unsetenv CLAWDBOT_GATEWAY_PASSWORD" : undefined,
|
envPassword ? " launchctl unsetenv CLAWDBOT_GATEWAY_PASSWORD" : undefined,
|
||||||
|
|||||||
@ -26,7 +26,10 @@ import {
|
|||||||
maybeScanExtraGatewayServices,
|
maybeScanExtraGatewayServices,
|
||||||
} from "./doctor-gateway-services.js";
|
} from "./doctor-gateway-services.js";
|
||||||
import { noteSourceInstallIssues } from "./doctor-install.js";
|
import { noteSourceInstallIssues } from "./doctor-install.js";
|
||||||
import { noteMacLaunchAgentOverrides, noteMacLaunchctlGatewayEnvOverrides } from "./doctor-platform-notes.js";
|
import {
|
||||||
|
noteMacLaunchAgentOverrides,
|
||||||
|
noteMacLaunchctlGatewayEnvOverrides,
|
||||||
|
} from "./doctor-platform-notes.js";
|
||||||
import { createDoctorPrompter, type DoctorOptions } from "./doctor-prompter.js";
|
import { createDoctorPrompter, type DoctorOptions } from "./doctor-prompter.js";
|
||||||
import { maybeRepairSandboxImages, noteSandboxScopeWarnings } from "./doctor-sandbox.js";
|
import { maybeRepairSandboxImages, noteSandboxScopeWarnings } from "./doctor-sandbox.js";
|
||||||
import { noteSecurityWarnings } from "./doctor-security.js";
|
import { noteSecurityWarnings } from "./doctor-security.js";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user