|
15 | 15 | * @author <a href="https://github.com/loong10k">Loong Wan</a> |
16 | 16 | * @since 3.0.0 |
17 | 17 | */ |
| 18 | +@ToString(onlyExplicitlyIncluded = true) |
18 | 19 | @Data |
19 | 20 | public class OpenCliProperties { |
| 21 | + @ToString.Include |
20 | 22 | private OpenCliExecutionTarget executionTarget = OpenCliExecutionTarget.LOCAL_PROCESS; |
21 | 23 | /** Root URL of an opencli-admin compatible Agent. */ |
22 | | - @ToString.Exclude |
23 | 24 | private String remoteAgentBaseUrl; |
24 | 25 | /** Explicit credential header for the configured HTTPS Agent. */ |
25 | | - @ToString.Exclude |
26 | 26 | private OpenCliRemoteAuthentication remoteAuthentication; |
27 | 27 | private String remoteCollectMode = "cdp"; |
28 | 28 | private String remoteOutputFormat = "json"; |
29 | 29 | private String remoteCdpEndpoint = ""; |
30 | 30 | /** Raw HTTP capture is explicitly opt-in and may contain sensitive business data. */ |
| 31 | + @ToString.Include |
31 | 32 | private boolean remoteCaptureRawHttpResponse = false; |
32 | 33 | /** Maximum decoded HTTP response body bytes accepted from a remote Agent. */ |
| 34 | + @ToString.Include |
33 | 35 | private int maxRemoteResponseBytes = 10 * 1024 * 1024; |
34 | 36 | private String executable = "opencli"; |
35 | 37 | /** Defaults applied when dispatching a schema-validated local command. */ |
36 | 38 | private OpenCliInvocationContext invocationDefaults; |
37 | 39 | private String workingDirectory; |
38 | 40 | /** Total local queue and execution budget, or the remote HTTP transport budget. */ |
| 41 | + @ToString.Include |
39 | 42 | private long commandTimeoutMillis = 300_000L; |
40 | 43 | /** Legacy per-stream ceiling; nonpositive values keep the finite stdout/stderr budgets. */ |
| 44 | + @ToString.Include |
41 | 45 | private long maxOutputBytes = 10L * 1024 * 1024; |
42 | 46 | /** Positive per-client capacity, zero for max(2, cores); negative is invalid. Captured at construction. */ |
| 47 | + @ToString.Include |
43 | 48 | private int maxConcurrentExecutions = 0; |
44 | 49 | /** Maximum bytes retained from stdout for one local invocation. */ |
| 50 | + @ToString.Include |
45 | 51 | private int maxStdoutBytes = 8 * 1024 * 1024; |
46 | 52 | /** Maximum bytes retained from stderr for one local invocation. */ |
| 53 | + @ToString.Include |
47 | 54 | private int maxStderrBytes = 2 * 1024 * 1024; |
48 | 55 | /** Independent bounded cleanup grace, in milliseconds. */ |
| 56 | + @ToString.Include |
49 | 57 | private long cleanupGraceMillis = 5_000L; |
| 58 | + @ToString.Include |
50 | 59 | private long startupProbeTimeoutMillis = 30_000L; |
51 | 60 | /** Literal prefix arguments placed before the command identifier. */ |
52 | 61 | private List<String> leadingArguments = new ArrayList<>(); |
|
0 commit comments