1919 * {@link OpenCliExecutionTarget#REMOTE_AGENT_HTTP} 模式下为连接池等待、建连和读取响应共享的总预算。
2020 * </p>
2121 */
22+ @ ToString (onlyExplicitlyIncluded = true )
2223@ Data /**
2324
2425 * OpenCLI runtime configuration POJO with no Spring dependency.
@@ -44,17 +45,16 @@ public class OpenCliProperties {
4445 /**
4546 * 执行目标:本机进程或与 opencli-admin 兼容的远端 Agent。
4647 */
48+ @ ToString .Include
4749 private OpenCliExecutionTarget executionTarget = OpenCliExecutionTarget .LOCAL_PROCESS ;
4850
4951 /**
5052 * 远端 Agent 根 URL(不含尾斜杠),例如 {@code http://192.168.1.10:19823}。
5153 * <p>仅当 {@link #executionTarget} 为 {@link OpenCliExecutionTarget#REMOTE_AGENT_HTTP} 时必填。</p>
5254 */
53- @ ToString .Exclude
5455 private String remoteAgentBaseUrl ;
5556
5657 /** Explicit credential header for the configured HTTPS Agent. */
57- @ ToString .Exclude
5858 private OpenCliRemoteAuthentication remoteAuthentication ;
5959
6060 /**
@@ -77,8 +77,10 @@ public class OpenCliProperties {
7777 * {@code remoteRawHttpBody} 字段;
7878 * 本地模式无效果。大响应时请谨慎开启。
7979 */
80+ @ ToString .Include
8081 private boolean remoteCaptureRawHttpResponse = false ;
8182 /** Maximum decoded HTTP response body bytes accepted from a remote Agent. */
83+ @ ToString .Include
8284 private int maxRemoteResponseBytes = 10 * 1024 * 1024 ;
8385
8486 /**
@@ -96,22 +98,26 @@ public class OpenCliProperties {
9698 /**
9799 * 单次调用超时(毫秒):本地模式用于子进程 Watchdog;远程模式下覆盖 Agent HTTP 传输全过程。
98100 */
101+ @ ToString .Include
99102 private long commandTimeoutMillis = 300_000L ;
100103
101104 /**
102105 * 子进程单流(stdout/stderr 各自计)输出捕获上限(字节)。超过部分丢弃,
103106 * 并在结果字符串尾部追加截断标记;{@code <= 0} 表示不限制。默认 10 MiB。
104107 */
108+ @ ToString .Include
105109 private long maxOutputBytes = 10L * 1024 * 1024 ;
106110
107111 /**
108112 * 本机 CLI 子进程最大并发数;小于等于 0 时使用 CPU 核心数与 2 的较大值。
109113 */
114+ @ ToString .Include
110115 private int maxConcurrentExecutions = 0 ;
111116
112117 /**
113118 * 启动探测({@code opencli list})专用超时(毫秒);小于等于 0 时探测使用 30 秒。
114119 */
120+ @ ToString .Include
115121 private long startupProbeTimeoutMillis = 30_000L ;
116122
117123 /**
@@ -148,9 +154,12 @@ public OpenCliProperties copyForLocalCliExecution() {
148154 }
149155
150156 /** Maximum stdout bytes captured per invocation. */
157+ @ ToString .Include
151158 private int maxStdoutBytes = 8 * 1024 * 1024 ;
152159 /** Maximum stderr bytes captured per invocation. */
160+ @ ToString .Include
153161 private int maxStderrBytes = 2 * 1024 * 1024 ;
154162 /** Maximum time to wait for owned resources after execution ends. */
163+ @ ToString .Include
155164 private long cleanupGraceMillis = 5_000L ;
156165}
0 commit comments