mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 09:30:43 +00:00
refactor: trim gateway mcp node exports
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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>;
|
||||
};
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -6,7 +6,7 @@ export type NodePairingAutoApproveReason =
|
||||
| "scope-upgrade"
|
||||
| "metadata-upgrade";
|
||||
|
||||
export type NodePairingAutoApproveClientIpSource =
|
||||
type NodePairingAutoApproveClientIpSource =
|
||||
| "direct"
|
||||
| "trusted-proxy"
|
||||
| "loopback-trusted-proxy"
|
||||
|
||||
Reference in New Issue
Block a user