mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-04 16:34:04 +00:00
refactor: move terminal core into package (#88279)
* refactor: move terminal core into package * refactor: move terminal module files * fix: clean terminal package CI followups * test: update lint suppression allowlist * fix: ship terminal core runtime aliases
This commit is contained in:
committed by
GitHub
parent
7b699fddac
commit
de1dfab03e
@@ -43,9 +43,10 @@ vi.mock("../../daemon/runtime-hints.js", () => ({
|
||||
buildPlatformServiceStartHints: () => ["openclaw node install", "openclaw node start"],
|
||||
}));
|
||||
|
||||
vi.mock("../../terminal/theme.js", async () => {
|
||||
const actual =
|
||||
await vi.importActual<typeof import("../../terminal/theme.js")>("../../terminal/theme.js");
|
||||
vi.mock("../../../packages/terminal-core/src/theme.js", async () => {
|
||||
const actual = await vi.importActual<
|
||||
typeof import("../../../packages/terminal-core/src/theme.js")
|
||||
>("../../../packages/terminal-core/src/theme.js");
|
||||
return {
|
||||
...actual,
|
||||
colorize: (_rich: boolean, _theme: unknown, text: string) => text,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { colorize } from "../../../packages/terminal-core/src/theme.js";
|
||||
import { buildNodeInstallPlan } from "../../commands/node-daemon-install-helpers.js";
|
||||
import {
|
||||
DEFAULT_NODE_DAEMON_RUNTIME,
|
||||
@@ -17,7 +18,6 @@ import type { GatewayServiceRuntime } from "../../daemon/service-runtime.js";
|
||||
import { loadNodeHostConfig } from "../../node-host/config.js";
|
||||
import { defaultRuntime } from "../../runtime.js";
|
||||
import { normalizeOptionalString } from "../../shared/string-coerce.js";
|
||||
import { colorize } from "../../terminal/theme.js";
|
||||
import { formatCliCommand } from "../command-format.js";
|
||||
import {
|
||||
runServiceRestart,
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import type { Command } from "commander";
|
||||
import { formatDocsLink } from "../../../packages/terminal-core/src/links.js";
|
||||
import { theme } from "../../../packages/terminal-core/src/theme.js";
|
||||
import { loadNodeHostConfig } from "../../node-host/config.js";
|
||||
import { runNodeHost } from "../../node-host/runner.js";
|
||||
import { defaultRuntime } from "../../runtime.js";
|
||||
import { normalizeOptionalString } from "../../shared/string-coerce.js";
|
||||
import { formatDocsLink } from "../../terminal/links.js";
|
||||
import { theme } from "../../terminal/theme.js";
|
||||
import { parsePort } from "../daemon-cli/shared.js";
|
||||
import { formatInvalidPortOption } from "../error-format.js";
|
||||
import { formatHelpExamples } from "../help-format.js";
|
||||
|
||||
Reference in New Issue
Block a user