refactor: trim acp config helper types

This commit is contained in:
Peter Steinberger
2026-05-02 03:29:10 +01:00
parent 33b18f543b
commit 5d9053e435
2 changed files with 3 additions and 3 deletions

View File

@@ -31,7 +31,7 @@ export type ResolvedConfiguredAcpBinding = {
record: SessionBindingRecord;
};
export type AcpBindingConfigShape = {
type AcpBindingConfigShape = {
mode?: string;
cwd?: string;
backend?: string;

View File

@@ -2,9 +2,9 @@ import type { SessionId } from "@agentclientprotocol/sdk";
import { normalizeOptionalLowercaseString } from "../shared/string-coerce.js";
import { VERSION } from "../version.js";
export const ACP_PROVENANCE_MODE_VALUES = ["off", "meta", "meta+receipt"] as const;
const ACP_PROVENANCE_MODE_VALUES = ["off", "meta", "meta+receipt"] as const;
export type AcpProvenanceMode = (typeof ACP_PROVENANCE_MODE_VALUES)[number];
type AcpProvenanceMode = (typeof ACP_PROVENANCE_MODE_VALUES)[number];
export function normalizeAcpProvenanceMode(
value: string | undefined,