mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 06:30:42 +00:00
refactor: trim acp config helper types
This commit is contained in:
@@ -31,7 +31,7 @@ export type ResolvedConfiguredAcpBinding = {
|
||||
record: SessionBindingRecord;
|
||||
};
|
||||
|
||||
export type AcpBindingConfigShape = {
|
||||
type AcpBindingConfigShape = {
|
||||
mode?: string;
|
||||
cwd?: string;
|
||||
backend?: string;
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user