mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-19 05:17:26 +00:00
chore: fix CI errors
This commit is contained in:
@@ -1,13 +1,12 @@
|
|||||||
import type { ZodIssue } from "zod";
|
|
||||||
import fs from "node:fs/promises";
|
import fs from "node:fs/promises";
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import type { OpenClawConfig } from "../config/config.js";
|
import type { ZodIssue } from "zod";
|
||||||
import type { DoctorOptions } from "./doctor-prompter.js";
|
|
||||||
import {
|
import {
|
||||||
isNumericTelegramUserId,
|
isNumericTelegramUserId,
|
||||||
normalizeTelegramAllowFromEntry,
|
normalizeTelegramAllowFromEntry,
|
||||||
} from "../channels/telegram/allow-from.js";
|
} from "../channels/telegram/allow-from.js";
|
||||||
import { formatCliCommand } from "../cli/command-format.js";
|
import { formatCliCommand } from "../cli/command-format.js";
|
||||||
|
import type { OpenClawConfig } from "../config/config.js";
|
||||||
import {
|
import {
|
||||||
OpenClawSchema,
|
OpenClawSchema,
|
||||||
CONFIG_PATH,
|
CONFIG_PATH,
|
||||||
@@ -19,6 +18,7 @@ import { listTelegramAccountIds, resolveTelegramAccount } from "../telegram/acco
|
|||||||
import { note } from "../terminal/note.js";
|
import { note } from "../terminal/note.js";
|
||||||
import { isRecord, resolveHomeDir } from "../utils.js";
|
import { isRecord, resolveHomeDir } from "../utils.js";
|
||||||
import { normalizeLegacyConfigValues } from "./doctor-legacy-config.js";
|
import { normalizeLegacyConfigValues } from "./doctor-legacy-config.js";
|
||||||
|
import type { DoctorOptions } from "./doctor-prompter.js";
|
||||||
import { autoMigrateLegacyStateDir } from "./doctor-state-migrations.js";
|
import { autoMigrateLegacyStateDir } from "./doctor-state-migrations.js";
|
||||||
|
|
||||||
type UnrecognizedKeysIssue = ZodIssue & {
|
type UnrecognizedKeysIssue = ZodIssue & {
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
import { intro as clackIntro, outro as clackOutro } from "@clack/prompts";
|
|
||||||
import fs from "node:fs";
|
import fs from "node:fs";
|
||||||
import type { OpenClawConfig } from "../config/config.js";
|
import { intro as clackIntro, outro as clackOutro } from "@clack/prompts";
|
||||||
import type { RuntimeEnv } from "../runtime.js";
|
|
||||||
import { resolveAgentWorkspaceDir, resolveDefaultAgentId } from "../agents/agent-scope.js";
|
import { resolveAgentWorkspaceDir, resolveDefaultAgentId } from "../agents/agent-scope.js";
|
||||||
import { DEFAULT_MODEL, DEFAULT_PROVIDER } from "../agents/defaults.js";
|
import { DEFAULT_MODEL, DEFAULT_PROVIDER } from "../agents/defaults.js";
|
||||||
import { loadModelCatalog } from "../agents/model-catalog.js";
|
import { loadModelCatalog } from "../agents/model-catalog.js";
|
||||||
@@ -11,12 +9,14 @@ import {
|
|||||||
resolveHooksGmailModel,
|
resolveHooksGmailModel,
|
||||||
} from "../agents/model-selection.js";
|
} from "../agents/model-selection.js";
|
||||||
import { formatCliCommand } from "../cli/command-format.js";
|
import { formatCliCommand } from "../cli/command-format.js";
|
||||||
|
import type { OpenClawConfig } from "../config/config.js";
|
||||||
import { CONFIG_PATH, readConfigFileSnapshot, writeConfigFile } from "../config/config.js";
|
import { CONFIG_PATH, readConfigFileSnapshot, writeConfigFile } from "../config/config.js";
|
||||||
import { logConfigUpdated } from "../config/logging.js";
|
import { logConfigUpdated } from "../config/logging.js";
|
||||||
import { resolveGatewayService } from "../daemon/service.js";
|
import { resolveGatewayService } from "../daemon/service.js";
|
||||||
import { resolveGatewayAuth } from "../gateway/auth.js";
|
import { resolveGatewayAuth } from "../gateway/auth.js";
|
||||||
import { buildGatewayConnectionDetails } from "../gateway/call.js";
|
import { buildGatewayConnectionDetails } from "../gateway/call.js";
|
||||||
import { resolveOpenClawPackageRoot } from "../infra/openclaw-root.js";
|
import { resolveOpenClawPackageRoot } from "../infra/openclaw-root.js";
|
||||||
|
import type { RuntimeEnv } from "../runtime.js";
|
||||||
import { defaultRuntime } from "../runtime.js";
|
import { defaultRuntime } from "../runtime.js";
|
||||||
import { note } from "../terminal/note.js";
|
import { note } from "../terminal/note.js";
|
||||||
import { stylePromptTitle } from "../terminal/prompt-style.js";
|
import { stylePromptTitle } from "../terminal/prompt-style.js";
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import fs from "node:fs";
|
import fs from "node:fs";
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import type { ExecAllowlistEntry } from "./exec-approvals.js";
|
|
||||||
import {
|
import {
|
||||||
DEFAULT_SAFE_BINS,
|
DEFAULT_SAFE_BINS,
|
||||||
analyzeShellCommand,
|
analyzeShellCommand,
|
||||||
@@ -12,6 +11,7 @@ import {
|
|||||||
type CommandResolution,
|
type CommandResolution,
|
||||||
type ExecCommandSegment,
|
type ExecCommandSegment,
|
||||||
} from "./exec-approvals-analysis.js";
|
} from "./exec-approvals-analysis.js";
|
||||||
|
import type { ExecAllowlistEntry } from "./exec-approvals.js";
|
||||||
import { isTrustedSafeBinPath } from "./exec-safe-bin-trust.js";
|
import { isTrustedSafeBinPath } from "./exec-safe-bin-trust.js";
|
||||||
|
|
||||||
function isPathLikeToken(value: string): boolean {
|
function isPathLikeToken(value: string): boolean {
|
||||||
|
|||||||
Reference in New Issue
Block a user