mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 06:10:44 +00:00
refactor: trim acp client exports
This commit is contained in:
@@ -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}`) : () => {};
|
||||
|
||||
@@ -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">;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user