refactor: trim acp client exports

This commit is contained in:
Peter Steinberger
2026-05-02 00:26:47 +01:00
parent 076fa5eae6
commit a15ad36221
3 changed files with 5 additions and 5 deletions

View File

@@ -29,7 +29,7 @@ export {
shouldStripProviderAuthEnvVarsForAcpServer,
} from "./client-helpers.js";
export type AcpClientOptions = {
type AcpClientOptions = {
cwd?: string;
serverCommand?: string;
serverArgs?: string[];
@@ -37,7 +37,7 @@ export type AcpClientOptions = {
verbose?: boolean;
};
export type AcpClientHandle = {
type AcpClientHandle = {
client: ClientSideConnection;
agent: ChildProcess;
sessionId: string;
@@ -112,7 +112,7 @@ function printSessionUpdate(notification: SessionNotification): void {
}
}
export async function createAcpClient(opts: AcpClientOptions = {}): Promise<AcpClientHandle> {
async function createAcpClient(opts: AcpClientOptions = {}): Promise<AcpClientHandle> {
const cwd = opts.cwd ?? process.cwd();
const verbose = Boolean(opts.verbose);
const log = verbose ? (msg: string) => console.error(`[acp-client] ${msg}`) : () => {};

View File

@@ -1,7 +1,7 @@
import type { SessionEntry } from "../config/sessions/types.js";
import { normalizeOptionalString } from "../shared/string-coerce.js";
export type AcpSessionInteractionMode = "interactive" | "parent-owned-background";
type AcpSessionInteractionMode = "interactive" | "parent-owned-background";
type SessionInteractionEntry = Pick<SessionEntry, "spawnedBy" | "parentSessionKey" | "acp">;

View File

@@ -2,7 +2,7 @@ import type { GatewayClient } from "../gateway/client.js";
import { readBool, readString } from "./meta.js";
import type { AcpServerOptions } from "./types.js";
export type AcpSessionMeta = {
type AcpSessionMeta = {
sessionKey?: string;
sessionLabel?: string;
resetSession?: boolean;