mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-06 15:18:58 +00:00
refactor: trim exec node local exports
This commit is contained in:
@@ -23,7 +23,7 @@ import type { ExecToolDetails } from "./bash-tools.exec-types.js";
|
||||
import { callGatewayTool } from "./tools/gateway.js";
|
||||
import { listNodes, resolveNodeIdFromList } from "./tools/nodes-utils.js";
|
||||
|
||||
export type NodeExecutionTarget = {
|
||||
type NodeExecutionTarget = {
|
||||
nodeId: string;
|
||||
platform?: string | null;
|
||||
argv: string[];
|
||||
@@ -33,7 +33,7 @@ export type NodeExecutionTarget = {
|
||||
supportsSystemRunPrepare: boolean;
|
||||
};
|
||||
|
||||
export type PreparedNodeRun = {
|
||||
type PreparedNodeRun = {
|
||||
plan: SystemRunApprovalPlan;
|
||||
argv: string[];
|
||||
rawCommand: string;
|
||||
@@ -42,7 +42,7 @@ export type PreparedNodeRun = {
|
||||
sessionKey: string | undefined;
|
||||
};
|
||||
|
||||
export type NodeApprovalAnalysis = {
|
||||
type NodeApprovalAnalysis = {
|
||||
analysisOk: boolean;
|
||||
allowlistSatisfied: boolean;
|
||||
durableApprovalSatisfied: boolean;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
export const EXEC_NO_OUTPUT_PLACEHOLDER = "(no output)";
|
||||
const EXEC_NO_OUTPUT_PLACEHOLDER = "(no output)";
|
||||
|
||||
export function renderExecOutputText(value: string | undefined): string {
|
||||
return value || EXEC_NO_OUTPUT_PLACEHOLDER;
|
||||
|
||||
Reference in New Issue
Block a user