refactor(acp): remove stale type re-export shim · openclaw/openclaw@49fac86
vincentkoc
·
2026-06-22
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -8,6 +8,7 @@ import {
|
8 | 8 | PROTOCOL_VERSION, |
9 | 9 | ndJsonStream, |
10 | 10 | } from "@agentclientprotocol/sdk"; |
| 11 | +import type { AcpServerOptions } from "@openclaw/acp-core/types"; |
11 | 12 | import { normalizeOptionalString } from "@openclaw/normalization-core/string-coerce"; |
12 | 13 | import { |
13 | 14 | GATEWAY_CLIENT_CAPS, |
@@ -27,7 +28,7 @@ import {
|
27 | 28 | } from "./event-ledger.js"; |
28 | 29 | import { readSecretFromFile } from "./secret-file.js"; |
29 | 30 | import { AcpGatewayAgent } from "./translator.js"; |
30 | | -import { normalizeAcpProvenanceMode, type AcpServerOptions } from "./types.js"; |
| 31 | +import { normalizeAcpProvenanceMode } from "./types.js"; |
31 | 32 | |
32 | 33 | type AcpStreamMessage = |
33 | 34 | ReturnType<typeof ndJsonStream> extends { |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -33,6 +33,7 @@ import type {
|
33 | 33 | import { readBool, readNonNegativeInteger, readString } from "@openclaw/acp-core/meta"; |
34 | 34 | import { defaultAcpSessionStore, type AcpSessionStore } from "@openclaw/acp-core/session"; |
35 | 35 | import { toAcpSessionLineageMeta } from "@openclaw/acp-core/session-lineage-meta"; |
| 36 | +import type { AcpServerOptions } from "@openclaw/acp-core/types"; |
36 | 37 | import { timestampMsToIsoString } from "@openclaw/normalization-core/number-coercion"; |
37 | 38 | import { |
38 | 39 | normalizeFastMode, |
@@ -101,7 +102,7 @@ import {
|
101 | 102 | resolveListSessionsPageSize, |
102 | 103 | } from "./translator.session-list.js"; |
103 | 104 | import { AcpTranslatorSessionUpdates } from "./translator.session-updates.js"; |
104 | | -import { ACP_AGENT_INFO, type AcpServerOptions } from "./types.js"; |
| 105 | +import { ACP_AGENT_INFO } from "./types.js"; |
105 | 106 | |
106 | 107 | // Maximum allowed prompt size (2MB) to prevent DoS via memory exhaustion (CWE-400, GHSA-cxpw-2g23-2vgw) |
107 | 108 | const MAX_PROMPT_BYTES = 2 * 1024 * 1024; |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | | -/** ACP server option re-exports and OpenClaw agent identity metadata. */ |
2 | | -export type { AcpProvenanceMode, AcpServerOptions, AcpSession } from "@openclaw/acp-core/types"; |
| 1 | +/** ACP protocol helpers and OpenClaw agent identity metadata. */ |
3 | 2 | export { normalizeAcpProvenanceMode } from "@openclaw/acp-core/types"; |
4 | 3 | import { VERSION } from "../version.js"; |
5 | 4 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。