chore: fix reply commands lint
This commit is contained in:
@@ -1,6 +1,10 @@
|
|||||||
import fs from "node:fs";
|
import fs from "node:fs";
|
||||||
|
|
||||||
|
import { getEnvApiKey } from "@mariozechner/pi-ai";
|
||||||
|
import { discoverAuthStorage } from "@mariozechner/pi-coding-agent";
|
||||||
|
import { resolveClawdbotAgentDir } from "../../agents/agent-paths.js";
|
||||||
import type { ClawdbotConfig } from "../../config/config.js";
|
import type { ClawdbotConfig } from "../../config/config.js";
|
||||||
|
import { resolveOAuthPath } from "../../config/paths.js";
|
||||||
import {
|
import {
|
||||||
type SessionEntry,
|
type SessionEntry,
|
||||||
type SessionScope,
|
type SessionScope,
|
||||||
@@ -12,10 +16,6 @@ import { resolveSendPolicy } from "../../sessions/send-policy.js";
|
|||||||
import { normalizeE164 } from "../../utils.js";
|
import { normalizeE164 } from "../../utils.js";
|
||||||
import { resolveHeartbeatSeconds } from "../../web/reconnect.js";
|
import { resolveHeartbeatSeconds } from "../../web/reconnect.js";
|
||||||
import { getWebAuthAgeMs, webAuthExists } from "../../web/session.js";
|
import { getWebAuthAgeMs, webAuthExists } from "../../web/session.js";
|
||||||
import { resolveClawdbotAgentDir } from "../../agents/agent-paths.js";
|
|
||||||
import { resolveOAuthPath } from "../../config/paths.js";
|
|
||||||
import { getEnvApiKey } from "@mariozechner/pi-ai";
|
|
||||||
import { discoverAuthStorage } from "@mariozechner/pi-coding-agent";
|
|
||||||
import {
|
import {
|
||||||
normalizeGroupActivation,
|
normalizeGroupActivation,
|
||||||
parseActivationCommand,
|
parseActivationCommand,
|
||||||
@@ -61,7 +61,8 @@ function hasOAuthCredentials(provider: string): boolean {
|
|||||||
if (!entry) return false;
|
if (!entry) return false;
|
||||||
const refresh =
|
const refresh =
|
||||||
entry.refresh ?? entry.refresh_token ?? entry.refreshToken ?? "";
|
entry.refresh ?? entry.refresh_token ?? entry.refreshToken ?? "";
|
||||||
const access = entry.access ?? entry.access_token ?? entry.accessToken ?? "";
|
const access =
|
||||||
|
entry.access ?? entry.access_token ?? entry.accessToken ?? "";
|
||||||
return Boolean(refresh.trim() && access.trim());
|
return Boolean(refresh.trim() && access.trim());
|
||||||
} catch {
|
} catch {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user