chore(deadcode): trim stale facade re-exports · openclaw/openclaw@eea777c
vincentkoc
·
2026-06-22
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +import type { ChannelSetupWizardAdapter } from "../../channels/plugins/setup-wizard-types.js"; |
1 | 2 | // Adapts declarative and imperative channel setup wizards to the command-facing interface. |
2 | 3 | import { buildChannelSetupWizardAdapterFromSetupWizard } from "../../channels/plugins/setup-wizard.js"; |
3 | 4 | import type { ChannelSetupWizard } from "../../channels/plugins/setup-wizard.js"; |
4 | 5 | import type { ChannelPlugin } from "../../channels/plugins/types.plugin.js"; |
5 | | -import type { ChannelSetupWizardAdapter } from "./types.js"; |
6 | 6 | |
7 | 7 | const setupWizardAdapters = new WeakMap<object, ChannelSetupWizardAdapter>(); |
8 | 8 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -10,7 +10,6 @@ import { isLoopbackHost } from "../../gateway/net.js";
|
10 | 10 | import type { GatewayProbeCapability, GatewayProbeResult } from "../../gateway/probe.js"; |
11 | 11 | import { inspectBestEffortPrimaryTailnetIPv4 } from "../../infra/network-discovery-display.js"; |
12 | 12 | import { parseStrictInteger } from "../../infra/parse-finite-number.js"; |
13 | | -import { pickGatewaySelfPresence } from "../gateway-presence.js"; |
14 | 13 | |
15 | 14 | const MISSING_SCOPE_PATTERN = /\bmissing scope:\s*[a-z0-9._-]+/i; |
16 | 15 | |
@@ -183,8 +182,6 @@ export async function resolveAuthForTarget(
|
183 | 182 | }); |
184 | 183 | } |
185 | 184 | |
186 | | -export { pickGatewaySelfPresence }; |
187 | | - |
188 | 185 | /** Extracts the config fields displayed by `openclaw gateway status --deep`. */ |
189 | 186 | export function extractConfigSummary(snapshotUnknown: unknown): GatewayConfigSummary { |
190 | 187 | const snap = snapshotUnknown as Partial<ConfigFileSnapshot> | null; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -10,10 +10,10 @@ import {
|
10 | 10 | type GatewayBonjourBeacon, |
11 | 11 | } from "../../infra/bonjour-discovery.js"; |
12 | 12 | import { formatErrorMessage } from "../../infra/errors.js"; |
| 13 | +import { pickGatewaySelfPresence } from "../gateway-presence.js"; |
13 | 14 | import { pickAutoSshTargetFromDiscovery } from "./discovery.js"; |
14 | 15 | import { |
15 | 16 | extractConfigSummary, |
16 | | -pickGatewaySelfPresence, |
17 | 17 | resolveAuthForTarget, |
18 | 18 | resolveProbeBudgetMs, |
19 | 19 | type GatewayConfigSummary, |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -2,13 +2,9 @@
|
2 | 2 | import { formatCliCommand } from "../../cli/command-format.js"; |
3 | 3 | import { logConfigUpdated } from "../../config/logging.js"; |
4 | 4 | import { type RuntimeEnv, writeRuntimeJson } from "../../runtime.js"; |
| 5 | +import { normalizeAlias } from "./alias-name.js"; |
5 | 6 | import { loadModelsConfig } from "./load-config.js"; |
6 | | -import { |
7 | | -ensureFlagCompatibility, |
8 | | -normalizeAlias, |
9 | | -resolveModelTarget, |
10 | | -updateConfig, |
11 | | -} from "./shared.js"; |
| 7 | +import { ensureFlagCompatibility, resolveModelTarget, updateConfig } from "./shared.js"; |
12 | 8 | |
13 | 9 | /** Lists configured model aliases as JSON, plain pairs, or human-readable rows. */ |
14 | 10 | export async function modelsAliasesListCommand( |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -20,7 +20,7 @@ import {
|
20 | 20 | import type { OpenClawConfig } from "../../config/types.openclaw.js"; |
21 | 21 | import type { ProviderAuthEvidence } from "../../secrets/provider-env-vars.js"; |
22 | 22 | import { shortenHomePath } from "../../utils.js"; |
23 | | -import { maskApiKey } from "./list.format.js"; |
| 23 | +import { maskApiKey } from "../../utils/mask-api-key.js"; |
24 | 24 | import type { ProviderAuthOverview } from "./list.types.js"; |
25 | 25 | |
26 | 26 | function formatMarkerOrSecret(value: string): string { |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | /** Formatting helpers for model-list terminal tables. */ |
2 | 2 | import { isRich as isRichTerminal, theme } from "../../../packages/terminal-core/src/theme.js"; |
3 | | -export { maskApiKey } from "../../utils/mask-api-key.js"; |
4 | 3 | |
5 | 4 | /** Enables rich formatting only for non-machine-readable output. */ |
6 | 5 | export const isRich = (opts?: { json?: boolean; plain?: boolean }) => |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -15,11 +15,12 @@ import type { ProviderRuntimeModel } from "../../plugins/provider-runtime-model.
|
15 | 15 | import { normalizeProviderResolvedModelWithPlugin } from "../../plugins/provider-runtime.js"; |
16 | 16 | import { createLazyImportLoader } from "../../shared/lazy-promise.js"; |
17 | 17 | import type { ModelListAuthIndex } from "./list.auth-index.js"; |
| 18 | +import { isLocalBaseUrl } from "./list.local-url.js"; |
18 | 19 | import type { ListRowModel } from "./list.model-row.js"; |
19 | 20 | import { toModelRow } from "./list.model-row.js"; |
20 | 21 | import type { ConfiguredEntry, ModelRow } from "./list.types.js"; |
21 | 22 | import { canonicalizeModelCatalogProviderAlias } from "./provider-aliases.js"; |
22 | | -import { isLocalBaseUrl, modelKey } from "./shared.js"; |
| 23 | +import { modelKey } from "./shared.js"; |
23 | 24 | |
24 | 25 | type ConfiguredByKey = Map<string, ConfiguredEntry>; |
25 | 26 | type ModelCatalogModule = typeof import("../../agents/model-catalog.js"); |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -19,8 +19,6 @@ import type { AgentModelEntryConfig } from "../../config/types.agent-defaults.js
|
19 | 19 | import type { AgentModelConfig } from "../../config/types.agents-shared.js"; |
20 | 20 | import { normalizeAgentId } from "../../routing/session-key.js"; |
21 | 21 | import { canonicalizeModelCatalogProviderRef } from "./provider-aliases.js"; |
22 | | -export { normalizeAlias } from "./alias-name.js"; |
23 | | -export { isLocalBaseUrl } from "./list.local-url.js"; |
24 | 22 | |
25 | 23 | export const ensureFlagCompatibility = (opts: { json?: boolean; plain?: boolean }) => { |
26 | 24 | if (opts.json && opts.plain) { |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | // Onboard channels e2e tests cover setup wizard adapters, plugin install hooks, and channel picker behavior. |
2 | 2 | import { beforeEach, describe, expect, it, vi } from "vitest"; |
3 | 3 | import type { ChannelPluginCatalogEntry } from "../channels/plugins/catalog.js"; |
| 4 | +import { getChannelSetupPlugin } from "../channels/plugins/setup-registry.js"; |
| 5 | +import type { ChannelSetupWizardAdapter } from "../channels/plugins/setup-wizard-types.js"; |
4 | 6 | import { |
5 | 7 | ensureChannelSetupPluginInstalled, |
6 | 8 | loadChannelSetupPluginRegistrySnapshotForChannel, |
7 | 9 | } from "../commands/channel-setup/plugin-install.js"; |
8 | 10 | import { resolveChannelSetupWizardAdapterForPlugin } from "../commands/channel-setup/registry.js"; |
9 | | -import type { ChannelSetupWizardAdapter } from "../commands/channel-setup/types.js"; |
10 | 11 | import type { OpenClawConfig } from "../config/config.js"; |
11 | | -import { getChannelSetupPlugin } from "../channels/plugins/setup-registry.js"; |
12 | 12 | import { createEmptyPluginRegistry } from "../plugins/registry.js"; |
13 | 13 | import { setActivePluginRegistry } from "../plugins/runtime.js"; |
14 | 14 | import { createChannelTestPluginBase, createTestRegistry } from "../test-utils/channel-plugins.js"; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。