mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-26 12:26:38 -06:00
chore(deadcode): trim doctor alias wrappers
This commit is contained in:
@@ -5,11 +5,9 @@ import { join } from "node:path";
|
||||
import { describe, expect, it } from "vitest";
|
||||
import type { OpenClawConfig } from "../config/config.js";
|
||||
import { withTempHome, writeStateDirDotEnv } from "../config/test-helpers.js";
|
||||
import { shouldRequireGatewayTokenForInstall } from "../gateway/auth-install-policy.js";
|
||||
import { withEnvAsync } from "../test-utils/env.js";
|
||||
import {
|
||||
resolveGatewayAuthTokenForService,
|
||||
shouldRequireGatewayTokenForInstall,
|
||||
} from "./doctor-gateway-auth-token.js";
|
||||
import { resolveGatewayAuthTokenForService } from "./doctor-gateway-auth-token.js";
|
||||
import { resolveGatewayInstallToken } from "./gateway-install-token.js";
|
||||
|
||||
const envVar = (...parts: string[]) => parts.join("_");
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
/** Resolves gateway service auth tokens without leaking exec-backed secrets during install. */
|
||||
import type { OpenClawConfig } from "../config/types.openclaw.js";
|
||||
import { resolveSecretInputRef } from "../config/types.secrets.js";
|
||||
export { shouldRequireGatewayTokenForInstall } from "../gateway/auth-install-policy.js";
|
||||
import { resolveGatewayAuthToken } from "../gateway/auth-token-resolution.js";
|
||||
import { trimToUndefined } from "../gateway/credentials.js";
|
||||
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
// Doctor capability lookup for channel-specific policy and migration behavior.
|
||||
import { getBundledChannelPlugin } from "../../channels/plugins/bundled.js";
|
||||
import type { ChannelDmAllowFromMode } from "../../channels/plugins/dm-access.js";
|
||||
import { getChannelPlugin } from "../../channels/plugins/index.js";
|
||||
import { normalizeAnyChannelId } from "../../channels/registry.js";
|
||||
import type { OpenClawConfig } from "../../config/types.openclaw.js";
|
||||
import { findBundledPackageChannelMetadata } from "../../plugins/bundled-package-channel-metadata.js";
|
||||
import type { PluginPackageChannelDoctorCapabilities } from "../../plugins/manifest.js";
|
||||
import type { AllowFromMode } from "./shared/allow-from-mode.types.js";
|
||||
|
||||
type DoctorGroupModel = "sender" | "route" | "hybrid";
|
||||
|
||||
type DoctorChannelCapabilities = {
|
||||
dmAllowFromMode: AllowFromMode;
|
||||
dmAllowFromMode: ChannelDmAllowFromMode;
|
||||
groupModel: DoctorGroupModel;
|
||||
groupAllowFromFallbackToAllowFrom: boolean;
|
||||
warnOnEmptyGroupSenderAllowlist: boolean;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
// Doctor helper for resolving channel-specific direct-message allowlist semantics.
|
||||
import type { ChannelDmAllowFromMode } from "../../../channels/plugins/dm-access.js";
|
||||
import { getDoctorChannelCapabilities } from "../channel-capabilities.js";
|
||||
import type { AllowFromMode } from "./allow-from-mode.types.js";
|
||||
|
||||
export type { AllowFromMode } from "./allow-from-mode.types.js";
|
||||
export type AllowFromMode = ChannelDmAllowFromMode;
|
||||
|
||||
/** Return the allowFrom interpretation mode advertised by a channel's doctor metadata. */
|
||||
export function resolveAllowFromMode(channelName: string): AllowFromMode {
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
// Shared doctor type alias for channel DM allowFrom interpretation modes.
|
||||
export type { ChannelDmAllowFromMode as AllowFromMode } from "../../../channels/plugins/dm-access.js";
|
||||
Reference in New Issue
Block a user