mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 06:50:43 +00:00
refactor: trim cli shape exports
This commit is contained in:
@@ -10,7 +10,7 @@ type CliContainerParseResult =
|
||||
| { ok: true; container: string | null; argv: string[] }
|
||||
| { ok: false; error: string };
|
||||
|
||||
export type CliContainerTargetResult =
|
||||
type CliContainerTargetResult =
|
||||
| { handled: true; exitCode: number }
|
||||
| { handled: false; argv: string[] };
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
export const LEGACY_DAEMON_CLI_EXPORTS = [
|
||||
const LEGACY_DAEMON_CLI_EXPORTS = [
|
||||
"registerDaemonCli",
|
||||
"runDaemonInstall",
|
||||
"runDaemonRestart",
|
||||
@@ -10,7 +10,7 @@ export const LEGACY_DAEMON_CLI_EXPORTS = [
|
||||
|
||||
type LegacyDaemonCliExport = (typeof LEGACY_DAEMON_CLI_EXPORTS)[number];
|
||||
type LegacyDaemonCliRunnerExport = Exclude<LegacyDaemonCliExport, "registerDaemonCli">;
|
||||
export type LegacyDaemonCliAccessors = {
|
||||
type LegacyDaemonCliAccessors = {
|
||||
registerDaemonCli: string;
|
||||
runDaemonRestart: string;
|
||||
} & Partial<
|
||||
|
||||
@@ -16,7 +16,7 @@ type TimingPayload = {
|
||||
type TimingWriter = (line: string) => void;
|
||||
type NonPromise<T> = T extends PromiseLike<unknown> ? never : T;
|
||||
|
||||
export type CliDebugTiming = {
|
||||
type CliDebugTiming = {
|
||||
enabled: boolean;
|
||||
mark: (phase: string, details?: TimingDetails) => void;
|
||||
time: <T>(
|
||||
|
||||
@@ -3,7 +3,7 @@ import {
|
||||
normalizeOptionalString,
|
||||
} from "../shared/string-coerce.js";
|
||||
|
||||
export type BytesParseOptions = {
|
||||
type BytesParseOptions = {
|
||||
defaultUnit?: "b" | "kb" | "mb" | "gb" | "tb";
|
||||
};
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ import { loadPluginManifest } from "../plugins/manifest.js";
|
||||
import { resolveUserPath } from "../utils.js";
|
||||
import { parseNpmPrefixSpec, resolveFileNpmSpecToLocalPath } from "./plugins-command-helpers.js";
|
||||
|
||||
export type PluginInstallInvalidConfigPolicy = "deny" | "allow-bundled-recovery";
|
||||
type PluginInstallInvalidConfigPolicy = "deny" | "allow-bundled-recovery";
|
||||
|
||||
export type PluginInstallRequestContext = {
|
||||
rawSpec: string;
|
||||
|
||||
@@ -11,7 +11,7 @@ import { isValidProfileName } from "./profile-utils.js";
|
||||
import { scanCliRootOptions } from "./root-option-scan.js";
|
||||
import { takeCliRootOptionValue } from "./root-option-value.js";
|
||||
|
||||
export type CliProfileParseResult =
|
||||
type CliProfileParseResult =
|
||||
| { ok: true; profile: string | null; argv: string[] }
|
||||
| { ok: false; error: string };
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { FLAG_TERMINATOR } from "../infra/cli-root-options.js";
|
||||
import { forwardConsumedCliRootOption } from "./root-option-forward.js";
|
||||
|
||||
export type CliRootOptionScanResult = { ok: true; argv: string[] } | { ok: false; error: string };
|
||||
type CliRootOptionScanResult = { ok: true; argv: string[] } | { ok: false; error: string };
|
||||
|
||||
type CliRootOptionVisitResult =
|
||||
| { kind: "pass" }
|
||||
|
||||
Reference in New Issue
Block a user