refactor: trim gateway mcp node exports

This commit is contained in:
Peter Steinberger
2026-05-01 22:51:29 +01:00
parent dc3e8973c3
commit 5490704599
6 changed files with 10 additions and 10 deletions

View File

@@ -5,7 +5,7 @@ import { normalizeOptionalLowercaseString } from "../shared/string-coerce.js";
const execFileAsync = promisify(execFile);
export type CronListCliResult = {
type CronListCliResult = {
jobs?: Array<{
id?: string;
name?: string;
@@ -18,7 +18,7 @@ export type CronListCliResult = {
export type CronListJob = NonNullable<CronListCliResult["jobs"]>[number];
export type LiveCronProbeSpec = {
type LiveCronProbeSpec = {
nonce: string;
name: string;
message: string;

View File

@@ -2,7 +2,7 @@ export const MCP_LOOPBACK_SERVER_NAME = "openclaw";
export const MCP_LOOPBACK_SERVER_VERSION = "0.1.0";
export const MCP_LOOPBACK_SUPPORTED_PROTOCOL_VERSIONS = ["2025-03-26", "2024-11-05"] as const;
export type JsonRpcId = string | number | null | undefined;
type JsonRpcId = string | number | null | undefined;
export type JsonRpcRequest = {
jsonrpc: "2.0";

View File

@@ -25,7 +25,7 @@ function logMcpLoopbackHttp(step: string, details: Record<string, unknown>): voi
console.error(`[mcp-loopback] ${step} ${JSON.stringify(details)}`);
}
export type McpRequestContext = {
type McpRequestContext = {
sessionKey: string;
messageProvider: string | undefined;
accountId: string | undefined;

View File

@@ -4,7 +4,7 @@ import type { NodeListNode } from "../shared/node-list-types.js";
import { normalizeLowercaseStringOrEmpty } from "../shared/string-coerce.js";
import type { NodeSession } from "./node-registry.js";
export type KnownNodeDevicePairingSource = {
type KnownNodeDevicePairingSource = {
nodeId: string;
displayName?: string;
platform?: string;
@@ -16,7 +16,7 @@ export type KnownNodeDevicePairingSource = {
lastSeenReason?: string;
};
export type KnownNodeApprovedSource = {
type KnownNodeApprovedSource = {
nodeId: string;
displayName?: string;
platform?: string;
@@ -35,7 +35,7 @@ export type KnownNodeApprovedSource = {
lastSeenReason?: string;
};
export type KnownNodeEntry = {
type KnownNodeEntry = {
nodeId: string;
devicePairing?: KnownNodeDevicePairingSource;
nodePairing?: KnownNodeApprovedSource;
@@ -43,7 +43,7 @@ export type KnownNodeEntry = {
effective: NodeListNode;
};
export type KnownNodeCatalog = {
type KnownNodeCatalog = {
entriesById: Map<string, KnownNodeEntry>;
};

View File

@@ -6,7 +6,7 @@ import {
type SystemRunApprovalMatchResult,
} from "../infra/system-run-approval-binding.js";
export type SystemRunApprovalBinding = {
type SystemRunApprovalBinding = {
cwd: string | null;
agentId: string | null;
sessionKey: string | null;

View File

@@ -6,7 +6,7 @@ export type NodePairingAutoApproveReason =
| "scope-upgrade"
| "metadata-upgrade";
export type NodePairingAutoApproveClientIpSource =
type NodePairingAutoApproveClientIpSource =
| "direct"
| "trusted-proxy"
| "loopback-trusted-proxy"