refactor: trim acp client exports · openclaw/openclaw@a15ad36
steipete
·
2026-05-02
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -29,15 +29,15 @@ export {
|
29 | 29 | shouldStripProviderAuthEnvVarsForAcpServer, |
30 | 30 | } from "./client-helpers.js"; |
31 | 31 | |
32 | | -export type AcpClientOptions = { |
| 32 | +type AcpClientOptions = { |
33 | 33 | cwd?: string; |
34 | 34 | serverCommand?: string; |
35 | 35 | serverArgs?: string[]; |
36 | 36 | serverVerbose?: boolean; |
37 | 37 | verbose?: boolean; |
38 | 38 | }; |
39 | 39 | |
40 | | -export type AcpClientHandle = { |
| 40 | +type AcpClientHandle = { |
41 | 41 | client: ClientSideConnection; |
42 | 42 | agent: ChildProcess; |
43 | 43 | sessionId: string; |
@@ -112,7 +112,7 @@ function printSessionUpdate(notification: SessionNotification): void {
|
112 | 112 | } |
113 | 113 | } |
114 | 114 | |
115 | | -export async function createAcpClient(opts: AcpClientOptions = {}): Promise<AcpClientHandle> { |
| 115 | +async function createAcpClient(opts: AcpClientOptions = {}): Promise<AcpClientHandle> { |
116 | 116 | const cwd = opts.cwd ?? process.cwd(); |
117 | 117 | const verbose = Boolean(opts.verbose); |
118 | 118 | const log = verbose ? (msg: string) => console.error(`[acp-client] ${msg}`) : () => {}; |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | import type { SessionEntry } from "../config/sessions/types.js"; |
2 | 2 | import { normalizeOptionalString } from "../shared/string-coerce.js"; |
3 | 3 | |
4 | | -export type AcpSessionInteractionMode = "interactive" | "parent-owned-background"; |
| 4 | +type AcpSessionInteractionMode = "interactive" | "parent-owned-background"; |
5 | 5 | |
6 | 6 | type SessionInteractionEntry = Pick<SessionEntry, "spawnedBy" | "parentSessionKey" | "acp">; |
7 | 7 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -2,7 +2,7 @@ import type { GatewayClient } from "../gateway/client.js";
|
2 | 2 | import { readBool, readString } from "./meta.js"; |
3 | 3 | import type { AcpServerOptions } from "./types.js"; |
4 | 4 | |
5 | | -export type AcpSessionMeta = { |
| 5 | +type AcpSessionMeta = { |
6 | 6 | sessionKey?: string; |
7 | 7 | sessionLabel?: string; |
8 | 8 | resetSession?: boolean; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。