refactor: trim acp config helper types · openclaw/openclaw@5d9053e
steipete
·
2026-05-02
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -31,7 +31,7 @@ export type ResolvedConfiguredAcpBinding = {
|
31 | 31 | record: SessionBindingRecord; |
32 | 32 | }; |
33 | 33 | |
34 | | -export type AcpBindingConfigShape = { |
| 34 | +type AcpBindingConfigShape = { |
35 | 35 | mode?: string; |
36 | 36 | cwd?: string; |
37 | 37 | backend?: string; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -2,9 +2,9 @@ import type { SessionId } from "@agentclientprotocol/sdk";
|
2 | 2 | import { normalizeOptionalLowercaseString } from "../shared/string-coerce.js"; |
3 | 3 | import { VERSION } from "../version.js"; |
4 | 4 | |
5 | | -export const ACP_PROVENANCE_MODE_VALUES = ["off", "meta", "meta+receipt"] as const; |
| 5 | +const ACP_PROVENANCE_MODE_VALUES = ["off", "meta", "meta+receipt"] as const; |
6 | 6 | |
7 | | -export type AcpProvenanceMode = (typeof ACP_PROVENANCE_MODE_VALUES)[number]; |
| 7 | +type AcpProvenanceMode = (typeof ACP_PROVENANCE_MODE_VALUES)[number]; |
8 | 8 | |
9 | 9 | export function normalizeAcpProvenanceMode( |
10 | 10 | value: string | undefined, |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。