openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
29 lines • 1.14 kB
TypeScript
import "../node-list-types-ZOGoEIdm.js";
import { Command } from "commander";
//#region src/cli/nodes-cli/cli-utils.d.ts
/** Return color helpers that degrade to plain text in non-rich terminals. */
export declare function getNodesTheme(): {
rich: boolean;
heading: (value: string) => string;
ok: (value: string) => string;
warn: (value: string) => string;
muted: (value: string) => string;
error: (value: string) => string;
};
/** Run a node CLI action with standard failure text and authorization hints. */
export declare function runNodesCommand(label: string, action: () => Promise<void>): Promise<void>;
//#endregion
//#region src/cli/nodes-cli/rpc.d.ts
/** Attach shared Gateway connection/json options to a node command. */
export declare const nodesCallOpts: (cmd: Command, defaults?: {
timeoutMs?: number;
}) => Command;
/** Build a node.invoke payload with an idempotency key and optional timeout. */
export declare function buildNodeInvokeParams(params: {
nodeId: string;
command: string;
params?: Record<string, unknown>;
timeoutMs?: number;
idempotencyKey?: string;
}): Record<string, unknown>;
//#endregion