mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 06:20:43 +00:00
refactor: trim node host exports
This commit is contained in:
@@ -11,7 +11,7 @@ export type NodeHostGatewayConfig = {
|
||||
tlsFingerprint?: string;
|
||||
};
|
||||
|
||||
export type NodeHostConfig = {
|
||||
type NodeHostConfig = {
|
||||
version: 1;
|
||||
nodeId: string;
|
||||
token?: string;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { requiresExecApproval, type ExecAsk, type ExecSecurity } from "../infra/exec-approvals.js";
|
||||
|
||||
export type ExecApprovalDecision = "allow-once" | "allow-always" | null;
|
||||
type ExecApprovalDecision = "allow-once" | "allow-always" | null;
|
||||
|
||||
export type SystemRunPolicyDecision = {
|
||||
type SystemRunPolicyDecision = {
|
||||
analysisOk: boolean;
|
||||
allowlistSatisfied: boolean;
|
||||
shellWrapperBlocked: boolean;
|
||||
|
||||
@@ -12,7 +12,7 @@ import {
|
||||
import { resolveExecSafeBinRuntimePolicy } from "../infra/exec-safe-bin-runtime-policy.js";
|
||||
import type { RunResult } from "./invoke-types.js";
|
||||
|
||||
export type SystemRunAllowlistAnalysis = {
|
||||
type SystemRunAllowlistAnalysis = {
|
||||
analysisOk: boolean;
|
||||
allowlistMatches: ExecAllowlistEntry[];
|
||||
allowlistSatisfied: boolean;
|
||||
|
||||
@@ -60,7 +60,7 @@ type ExecApprovalsSnapshot = {
|
||||
file: ExecApprovalsFile;
|
||||
};
|
||||
|
||||
export type NodeInvokeRequestPayload = {
|
||||
type NodeInvokeRequestPayload = {
|
||||
id: string;
|
||||
nodeId: string;
|
||||
command: string;
|
||||
|
||||
@@ -57,7 +57,7 @@ export function shouldExitNodeHostOnReconnectPaused(detailCode: string | null):
|
||||
return detailCode !== null && NODE_HOST_EXIT_ON_RECONNECT_PAUSE_CODES.has(detailCode);
|
||||
}
|
||||
|
||||
export function formatNodeHostReconnectPausedMessage(
|
||||
function formatNodeHostReconnectPausedMessage(
|
||||
info: GatewayReconnectPausedInfo,
|
||||
params?: { exiting?: boolean },
|
||||
): string {
|
||||
|
||||
Reference in New Issue
Block a user