refactor(agents): narrow internal helper exports · openclaw/openclaw@76cd61a
vincentkoc
·
2026-06-17
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -25,10 +25,10 @@ function clampTtl(value: number | undefined) {
|
25 | 25 | let jobTtlMs = clampTtl(readEnvInt("OPENCLAW_BASH_JOB_TTL_MS", "PI_BASH_JOB_TTL_MS")); |
26 | 26 | |
27 | 27 | /** Lifecycle status recorded for background process sessions. */ |
28 | | -export type ProcessStatus = "running" | "completed" | "failed" | "killed"; |
| 28 | +type ProcessStatus = "running" | "completed" | "failed" | "killed"; |
29 | 29 | |
30 | 30 | /** Writable stdin surface shared by child-process and PTY-backed sessions. */ |
31 | | -export type SessionStdin = { |
| 31 | +type SessionStdin = { |
32 | 32 | write: (data: string, cb?: (err?: Error | null) => void) => void; |
33 | 33 | end: () => void; |
34 | 34 | // When backed by a real Node stream (child.stdin), this exists; for PTY wrappers it may not. |
@@ -87,7 +87,7 @@ export interface ProcessSession {
|
87 | 87 | } |
88 | 88 | |
89 | 89 | /** Retained summary for a completed background session. */ |
90 | | -export interface FinishedSession { |
| 90 | +interface FinishedSession { |
91 | 91 | id: string; |
92 | 92 | command: string; |
93 | 93 | scopeKey?: string; |
@@ -306,7 +306,7 @@ function capPendingBuffer(buffer: string[], pendingCharsInput: number, cap: numb
|
306 | 306 | } |
307 | 307 | |
308 | 308 | /** Keeps only the last `max` characters for bounded aggregate output storage. */ |
309 | | -export function trimWithCap(text: string, max: number) { |
| 309 | +function trimWithCap(text: string, max: number) { |
310 | 310 | if (text.length <= max) { |
311 | 311 | return text; |
312 | 312 | } |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。